@live-codes/browser-compilers 0.22.7 → 0.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dotenv/dotenv.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var dotenv=(()=>{var Jt=Object.create;var ge=Object.defineProperty;var Zt=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var rn=Object.getPrototypeOf,tn=Object.prototype.hasOwnProperty;var z=(o,c)=>()=>(o&&(c=o(o=0)),c);var Te=(o,c)=>()=>(c||o((c={exports:{}}).exports,c),c.exports),fe=(o,c)=>{for(var m in c)ge(o,m,{get:c[m],enumerable:!0})},He=(o,c,m,w)=>{if(c&&typeof c=="object"||typeof c=="function")for(let g of en(c))!tn.call(o,g)&&g!==m&&ge(o,g,{get:()=>c[g],enumerable:!(w=Zt(c,g))||w.enumerable});return o};var Je=(o,c,m)=>(m=o!=null?Jt(rn(o)):{},He(c||!o||!o.__esModule?ge(m,"default",{value:o,enumerable:!0}):m,o)),he=o=>He(ge({},"__esModule",{value:!0}),o);var D=z(()=>{});var $={};fe($,{_debugEnd:()=>Vr,_debugProcess:()=>Pr,_events:()=>rt,_eventsCount:()=>tt,_exiting:()=>Er,_fatalExceptions:()=>Sr,_getActiveHandles:()=>_r,_getActiveRequests:()=>Ar,_kill:()=>Tr,_linkedBinding:()=>wr,_maxListeners:()=>et,_preload_modules:()=>Jr,_rawDebug:()=>gr,_startProfilerIdleNotifier:()=>Fr,_stopProfilerIdleNotifier:()=>jr,_tickCallback:()=>Mr,abort:()=>Kr,addListener:()=>nt,allowedNodeEnvironmentFlags:()=>Cr,arch:()=>nr,argv:()=>ur,argv0:()=>Hr,assert:()=>Dr,binding:()=>fr,chdir:()=>dr,config:()=>Br,cpuUsage:()=>ve,cwd:()=>pr,debugPort:()=>Xr,default:()=>ht,dlopen:()=>Ir,domain:()=>vr,emit:()=>st,emitWarning:()=>lr,env:()=>or,execArgv:()=>ar,execPath:()=>Qr,exit:()=>kr,features:()=>Rr,hasUncaughtExceptionCaptureCallback:()=>Or,hrtime:()=>we,kill:()=>Nr,listeners:()=>ft,memoryUsage:()=>Ur,moduleLoadList:()=>yr,nextTick:()=>er,off:()=>ot,on:()=>H,once:()=>it,openStdin:()=>Lr,pid:()=>Wr,platform:()=>ir,ppid:()=>zr,prependListener:()=>ct,prependOnceListener:()=>lt,reallyExit:()=>br,release:()=>mr,removeAllListeners:()=>at,removeListener:()=>ut,resourceUsage:()=>xr,setSourceMapsEnabled:()=>Zr,setUncaughtExceptionCaptureCallback:()=>$r,stderr:()=>qr,stdin:()=>Gr,stdout:()=>Yr,title:()=>tr,umask:()=>hr,uptime:()=>ae,version:()=>sr,versions:()=>cr});function Ne(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}function nn(){!ue||!re||(ue=!1,re.length?Q=re.concat(Q):ye=-1,Q.length&&Ze())}function Ze(){if(!ue){var o=setTimeout(nn,0);ue=!0;for(var c=Q.length;c;){for(re=Q,Q=[];++ye<c;)re&&re[ye].run();ye=-1,c=Q.length}re=null,ue=!1,clearTimeout(o)}}function er(o){var c=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)c[m-1]=arguments[m];Q.push(new rr(o,c)),Q.length===1&&!ue&&setTimeout(Ze,0)}function rr(o,c){this.fun=o,this.array=c}function j(){}function wr(o){Ne("_linkedBinding")}function Ir(o){Ne("dlopen")}function Ar(){return[]}function _r(){return[]}function Dr(o,c){if(!o)throw new Error(c||"assertion error")}function Or(){return!1}function ae(){return ee.now()/1e3}function we(o){var c=Math.floor((Date.now()-ee.now())*.001),m=ee.now()*.001,w=Math.floor(m)+c,g=Math.floor(m%1*1e9);return o&&(w=w-o[0],g=g-o[1],g<0&&(w--,g+=Ue)),[w,g]}function H(){return ht}function ft(o){return[]}var Q,ue,re,ye,tr,nr,ir,or,ur,ar,sr,cr,lr,fr,hr,pr,dr,mr,gr,yr,vr,Er,Br,br,Tr,ve,xr,Ur,Nr,kr,Lr,Cr,Rr,Sr,$r,Mr,Pr,Vr,Fr,jr,Yr,qr,Gr,Kr,Wr,zr,Qr,Xr,Hr,Jr,Zr,ee,xe,Ue,et,rt,tt,nt,it,ot,ut,at,st,ct,lt,ht,Ee=z(()=>{D();S();R();Q=[],ue=!1,ye=-1;rr.prototype.run=function(){this.fun.apply(null,this.array)};tr="browser",nr="x64",ir="browser",or={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},ur=["/usr/bin/node"],ar=[],sr="v16.8.0",cr={},lr=function(o,c){console.warn((c?c+": ":"")+o)},fr=function(o){Ne("binding")},hr=function(o){return 0},pr=function(){return"/"},dr=function(o){},mr={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};gr=j,yr=[];vr={},Er=!1,Br={};br=j,Tr=j,ve=function(){return{}},xr=ve,Ur=ve,Nr=j,kr=j,Lr=j,Cr={};Rr={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Sr=j,$r=j;Mr=j,Pr=j,Vr=j,Fr=j,jr=j,Yr=void 0,qr=void 0,Gr=void 0,Kr=j,Wr=2,zr=1,Qr="/bin/usr/node",Xr=9229,Hr="node",Jr=[],Zr=j,ee={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};ee.now===void 0&&(xe=Date.now(),ee.timing&&ee.timing.navigationStart&&(xe=ee.timing.navigationStart),ee.now=()=>Date.now()-xe);Ue=1e9;we.bigint=function(o){var c=we(o);return typeof BigInt>"u"?c[0]*Ue+c[1]:BigInt(c[0]*Ue)+BigInt(c[1])};et=10,rt={},tt=0;nt=H,it=H,ot=H,ut=H,at=H,st=j,ct=H,lt=H;ht={version:sr,versions:cr,arch:nr,platform:ir,release:mr,_rawDebug:gr,moduleLoadList:yr,binding:fr,_linkedBinding:wr,_events:rt,_eventsCount:tt,_maxListeners:et,on:H,addListener:nt,once:it,off:ot,removeListener:ut,removeAllListeners:at,emit:st,prependListener:ct,prependOnceListener:lt,listeners:ft,domain:vr,_exiting:Er,config:Br,dlopen:Ir,uptime:ae,_getActiveRequests:Ar,_getActiveHandles:_r,reallyExit:br,_kill:Tr,cpuUsage:ve,resourceUsage:xr,memoryUsage:Ur,kill:Nr,exit:kr,openStdin:Lr,allowedNodeEnvironmentFlags:Cr,assert:Dr,features:Rr,_fatalExceptions:Sr,setUncaughtExceptionCaptureCallback:$r,hasUncaughtExceptionCaptureCallback:Or,emitWarning:lr,nextTick:er,_tickCallback:Mr,_debugProcess:Pr,_debugEnd:Vr,_startProfilerIdleNotifier:Fr,_stopProfilerIdleNotifier:jr,stdout:Yr,stdin:Gr,stderr:qr,abort:Kr,umask:hr,chdir:dr,cwd:pr,env:or,title:tr,argv:ur,execArgv:ar,pid:Wr,ppid:zr,execPath:Qr,debugPort:Xr,hrtime:we,argv0:Hr,_preload_modules:Jr,setSourceMapsEnabled:Zr}});var R=z(()=>{Ee()});function on(){if(pt)return pe;pt=!0,pe.byteLength=a,pe.toByteArray=v,pe.fromByteArray=A;for(var o=[],c=[],m=typeof Uint8Array<"u"?Uint8Array:Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,f=w.length;g<f;++g)o[g]=w[g],c[w.charCodeAt(g)]=g;c[45]=62,c[95]=63;function n(d){var B=d.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=d.indexOf("=");E===-1&&(E=B);var I=E===B?0:4-E%4;return[E,I]}function a(d){var B=n(d),E=B[0],I=B[1];return(E+I)*3/4-I}function h(d,B,E){return(B+E)*3/4-E}function v(d){var B,E=n(d),I=E[0],T=E[1],U=new m(h(d,I,T)),O=0,G=T>0?I-4:I,Y;for(Y=0;Y<G;Y+=4)B=c[d.charCodeAt(Y)]<<18|c[d.charCodeAt(Y+1)]<<12|c[d.charCodeAt(Y+2)]<<6|c[d.charCodeAt(Y+3)],U[O++]=B>>16&255,U[O++]=B>>8&255,U[O++]=B&255;return T===2&&(B=c[d.charCodeAt(Y)]<<2|c[d.charCodeAt(Y+1)]>>4,U[O++]=B&255),T===1&&(B=c[d.charCodeAt(Y)]<<10|c[d.charCodeAt(Y+1)]<<4|c[d.charCodeAt(Y+2)]>>2,U[O++]=B>>8&255,U[O++]=B&255),U}function y(d){return o[d>>18&63]+o[d>>12&63]+o[d>>6&63]+o[d&63]}function p(d,B,E){for(var I,T=[],U=B;U<E;U+=3)I=(d[U]<<16&16711680)+(d[U+1]<<8&65280)+(d[U+2]&255),T.push(y(I));return T.join("")}function A(d){for(var B,E=d.length,I=E%3,T=[],U=16383,O=0,G=E-I;O<G;O+=U)T.push(p(d,O,O+U>G?G:O+U));return I===1?(B=d[E-1],T.push(o[B>>2]+o[B<<4&63]+"==")):I===2&&(B=(d[E-2]<<8)+d[E-1],T.push(o[B>>10]+o[B>>4&63]+o[B<<2&63]+"=")),T.join("")}return pe}function un(){if(dt)return Be;dt=!0;return Be.read=function(o,c,m,w,g){var f,n,a=g*8-w-1,h=(1<<a)-1,v=h>>1,y=-7,p=m?g-1:0,A=m?-1:1,d=o[c+p];for(p+=A,f=d&(1<<-y)-1,d>>=-y,y+=a;y>0;f=f*256+o[c+p],p+=A,y-=8);for(n=f&(1<<-y)-1,f>>=-y,y+=w;y>0;n=n*256+o[c+p],p+=A,y-=8);if(f===0)f=1-v;else{if(f===h)return n?NaN:(d?-1:1)*(1/0);n=n+Math.pow(2,w),f=f-v}return(d?-1:1)*n*Math.pow(2,f-w)},Be.write=function(o,c,m,w,g,f){var n,a,h,v=f*8-g-1,y=(1<<v)-1,p=y>>1,A=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=w?0:f-1,B=w?1:-1,E=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(a=isNaN(c)?1:0,n=y):(n=Math.floor(Math.log(c)/Math.LN2),c*(h=Math.pow(2,-n))<1&&(n--,h*=2),n+p>=1?c+=A/h:c+=A*Math.pow(2,1-p),c*h>=2&&(n++,h/=2),n+p>=y?(a=0,n=y):n+p>=1?(a=(c*h-1)*Math.pow(2,g),n=n+p):(a=c*Math.pow(2,p-1)*Math.pow(2,g),n=0));g>=8;o[m+d]=a&255,d+=B,a/=256,g-=8);for(n=n<<g|a,v+=g;v>0;o[m+d]=n&255,d+=B,n/=256,v-=8);o[m+d-B]|=E*128},Be}function an(){if(mt)return te;mt=!0;let o=on(),c=un(),m=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;te.Buffer=n,te.SlowBuffer=T,te.INSPECT_MAX_BYTES=50;let w=2147483647;te.kMaxLength=w,n.TYPED_ARRAY_SUPPORT=g(),!n.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function g(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function f(t){if(t>w)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,n.prototype),e}function n(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(t)}return a(t,e,r)}n.poolSize=8192;function a(t,e,r){if(typeof t=="string")return p(t,e);if(ArrayBuffer.isView(t))return d(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(W(t,ArrayBuffer)||t&&W(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(W(t,SharedArrayBuffer)||t&&W(t.buffer,SharedArrayBuffer)))return B(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return n.from(i,e,r);let u=E(t);if(u)return u;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return n.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}n.from=function(t,e,r){return a(t,e,r)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function h(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function v(t,e,r){return h(t),t<=0?f(t):e!==void 0?typeof r=="string"?f(t).fill(e,r):f(t).fill(e):f(t)}n.alloc=function(t,e,r){return v(t,e,r)};function y(t){return h(t),f(t<0?0:I(t)|0)}n.allocUnsafe=function(t){return y(t)},n.allocUnsafeSlow=function(t){return y(t)};function p(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!n.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=U(t,e)|0,i=f(r),u=i.write(t,e);return u!==r&&(i=i.slice(0,u)),i}function A(t){let e=t.length<0?0:I(t.length)|0,r=f(e);for(let i=0;i<e;i+=1)r[i]=t[i]&255;return r}function d(t){if(W(t,Uint8Array)){let e=new Uint8Array(t);return B(e.buffer,e.byteOffset,e.byteLength)}return A(t)}function B(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&r===void 0?i=new Uint8Array(t):r===void 0?i=new Uint8Array(t,e):i=new Uint8Array(t,e,r),Object.setPrototypeOf(i,n.prototype),i}function E(t){if(n.isBuffer(t)){let e=I(t.length)|0,r=f(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||be(t.length)?f(0):A(t);if(t.type==="Buffer"&&Array.isArray(t.data))return A(t.data)}function I(t){if(t>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return t|0}function T(t){return+t!=t&&(t=0),n.alloc(+t)}n.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==n.prototype},n.compare=function(e,r){if(W(e,Uint8Array)&&(e=n.from(e,e.offset,e.byteLength)),W(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),!n.isBuffer(e)||!n.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,u=r.length;for(let s=0,l=Math.min(i,u);s<l;++s)if(e[s]!==r[s]){i=e[s],u=r[s];break}return i<u?-1:u<i?1:0},n.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return n.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;let u=n.allocUnsafe(r),s=0;for(i=0;i<e.length;++i){let l=e[i];if(W(l,Uint8Array))s+l.length>u.length?(n.isBuffer(l)||(l=n.from(l)),l.copy(u,s)):Uint8Array.prototype.set.call(u,l,s);else if(n.isBuffer(l))l.copy(u,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=l.length}return u};function U(t,e){if(n.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||W(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let u=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _e(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Xe(t).length;default:if(u)return i?-1:_e(t).length;e=(""+e).toLowerCase(),u=!0}}n.byteLength=U;function O(t,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Yt(this,e,r);case"utf8":case"utf-8":return Fe(this,e,r);case"ascii":return Ft(this,e,r);case"latin1":case"binary":return jt(this,e,r);case"base64":return Pt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}n.prototype._isBuffer=!0;function G(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}n.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)G(this,r,r+1);return this},n.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)G(this,r,r+3),G(this,r+1,r+2);return this},n.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)G(this,r,r+7),G(this,r+1,r+6),G(this,r+2,r+5),G(this,r+3,r+4);return this},n.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Fe(this,0,e):O.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:n.compare(this,e)===0},n.prototype.inspect=function(){let e="",r=te.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},m&&(n.prototype[m]=n.prototype.inspect),n.prototype.compare=function(e,r,i,u,s){if(W(e,Uint8Array)&&(e=n.from(e,e.offset,e.byteLength)),!n.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),u===void 0&&(u=0),s===void 0&&(s=this.length),r<0||i>e.length||u<0||s>this.length)throw new RangeError("out of range index");if(u>=s&&r>=i)return 0;if(u>=s)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,u>>>=0,s>>>=0,this===e)return 0;let l=s-u,b=i-r,L=Math.min(l,b),N=this.slice(u,s),C=e.slice(r,i);for(let x=0;x<L;++x)if(N[x]!==C[x]){l=N[x],b=C[x];break}return l<b?-1:b<l?1:0};function Y(t,e,r,i,u){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,be(r)&&(r=u?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(u)return-1;r=t.length-1}else if(r<0)if(u)r=0;else return-1;if(typeof e=="string"&&(e=n.from(e,i)),n.isBuffer(e))return e.length===0?-1:Ve(t,e,r,i,u);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?u?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ve(t,[e],r,i,u);throw new TypeError("val must be string, number or Buffer")}function Ve(t,e,r,i,u){let s=1,l=t.length,b=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;s=2,l/=2,b/=2,r/=2}function L(C,x){return s===1?C[x]:C.readUInt16BE(x*s)}let N;if(u){let C=-1;for(N=r;N<l;N++)if(L(t,N)===L(e,C===-1?0:N-C)){if(C===-1&&(C=N),N-C+1===b)return C*s}else C!==-1&&(N-=N-C),C=-1}else for(r+b>l&&(r=l-b),N=r;N>=0;N--){let C=!0;for(let x=0;x<b;x++)if(L(t,N+x)!==L(e,x)){C=!1;break}if(C)return N}return-1}n.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1},n.prototype.indexOf=function(e,r,i){return Y(this,e,r,i,!0)},n.prototype.lastIndexOf=function(e,r,i){return Y(this,e,r,i,!1)};function Rt(t,e,r,i){r=Number(r)||0;let u=t.length-r;i?(i=Number(i),i>u&&(i=u)):i=u;let s=e.length;i>s/2&&(i=s/2);let l;for(l=0;l<i;++l){let b=parseInt(e.substr(l*2,2),16);if(be(b))return l;t[r+l]=b}return l}function St(t,e,r,i){return me(_e(e,t.length-r),t,r,i)}function $t(t,e,r,i){return me(zt(e),t,r,i)}function Ot(t,e,r,i){return me(Xe(e),t,r,i)}function Mt(t,e,r,i){return me(Qt(e,t.length-r),t,r,i)}n.prototype.write=function(e,r,i,u){if(r===void 0)u="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")u=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,u===void 0&&(u="utf8")):(u=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-r;if((i===void 0||i>s)&&(i=s),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");let l=!1;for(;;)switch(u){case"hex":return Rt(this,e,r,i);case"utf8":case"utf-8":return St(this,e,r,i);case"ascii":case"latin1":case"binary":return $t(this,e,r,i);case"base64":return Ot(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,e,r,i);default:if(l)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),l=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pt(t,e,r){return e===0&&r===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,r))}function Fe(t,e,r){r=Math.min(t.length,r);let i=[],u=e;for(;u<r;){let s=t[u],l=null,b=s>239?4:s>223?3:s>191?2:1;if(u+b<=r){let L,N,C,x;switch(b){case 1:s<128&&(l=s);break;case 2:L=t[u+1],(L&192)===128&&(x=(s&31)<<6|L&63,x>127&&(l=x));break;case 3:L=t[u+1],N=t[u+2],(L&192)===128&&(N&192)===128&&(x=(s&15)<<12|(L&63)<<6|N&63,x>2047&&(x<55296||x>57343)&&(l=x));break;case 4:L=t[u+1],N=t[u+2],C=t[u+3],(L&192)===128&&(N&192)===128&&(C&192)===128&&(x=(s&15)<<18|(L&63)<<12|(N&63)<<6|C&63,x>65535&&x<1114112&&(l=x))}}l===null?(l=65533,b=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|l&1023),i.push(l),u+=b}return Vt(i)}let je=4096;function Vt(t){let e=t.length;if(e<=je)return String.fromCharCode.apply(String,t);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=je));return r}function Ft(t,e,r){let i="";r=Math.min(t.length,r);for(let u=e;u<r;++u)i+=String.fromCharCode(t[u]&127);return i}function jt(t,e,r){let i="";r=Math.min(t.length,r);for(let u=e;u<r;++u)i+=String.fromCharCode(t[u]);return i}function Yt(t,e,r){let i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let u="";for(let s=e;s<r;++s)u+=Xt[t[s]];return u}function qt(t,e,r){let i=t.slice(e,r),u="";for(let s=0;s<i.length-1;s+=2)u+=String.fromCharCode(i[s]+i[s+1]*256);return u}n.prototype.slice=function(e,r){let i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);let u=this.subarray(e,r);return Object.setPrototypeOf(u,n.prototype),u};function V(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||V(e,r,this.length);let u=this[e],s=1,l=0;for(;++l<r&&(s*=256);)u+=this[e+l]*s;return u},n.prototype.readUintBE=n.prototype.readUIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||V(e,r,this.length);let u=this[e+--r],s=1;for(;r>0&&(s*=256);)u+=this[e+--r]*s;return u},n.prototype.readUint8=n.prototype.readUInt8=function(e,r){return e=e>>>0,r||V(e,1,this.length),this[e]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||V(e,2,this.length),this[e]|this[e+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||V(e,2,this.length),this[e]<<8|this[e+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||V(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||V(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},n.prototype.readBigUInt64LE=Z(function(e){e=e>>>0,oe(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&le(e,this.length-8);let u=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(u)+(BigInt(s)<<BigInt(32))}),n.prototype.readBigUInt64BE=Z(function(e){e=e>>>0,oe(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&le(e,this.length-8);let u=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(u)<<BigInt(32))+BigInt(s)}),n.prototype.readIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||V(e,r,this.length);let u=this[e],s=1,l=0;for(;++l<r&&(s*=256);)u+=this[e+l]*s;return s*=128,u>=s&&(u-=Math.pow(2,8*r)),u},n.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||V(e,r,this.length);let u=r,s=1,l=this[e+--u];for(;u>0&&(s*=256);)l+=this[e+--u]*s;return s*=128,l>=s&&(l-=Math.pow(2,8*r)),l},n.prototype.readInt8=function(e,r){return e=e>>>0,r||V(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},n.prototype.readInt16LE=function(e,r){e=e>>>0,r||V(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i},n.prototype.readInt16BE=function(e,r){e=e>>>0,r||V(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i},n.prototype.readInt32LE=function(e,r){return e=e>>>0,r||V(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},n.prototype.readInt32BE=function(e,r){return e=e>>>0,r||V(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},n.prototype.readBigInt64LE=Z(function(e){e=e>>>0,oe(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&le(e,this.length-8);let u=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(u)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),n.prototype.readBigInt64BE=Z(function(e){e=e>>>0,oe(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&le(e,this.length-8);let u=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(u)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)}),n.prototype.readFloatLE=function(e,r){return e=e>>>0,r||V(e,4,this.length),c.read(this,e,!0,23,4)},n.prototype.readFloatBE=function(e,r){return e=e>>>0,r||V(e,4,this.length),c.read(this,e,!1,23,4)},n.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||V(e,8,this.length),c.read(this,e,!0,52,8)},n.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||V(e,8,this.length),c.read(this,e,!1,52,8)};function q(t,e,r,i,u,s){if(!n.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>u||e<s)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(e,r,i,u){if(e=+e,r=r>>>0,i=i>>>0,!u){let b=Math.pow(2,8*i)-1;q(this,e,r,i,b,0)}let s=1,l=0;for(this[r]=e&255;++l<i&&(s*=256);)this[r+l]=e/s&255;return r+i},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(e,r,i,u){if(e=+e,r=r>>>0,i=i>>>0,!u){let b=Math.pow(2,8*i)-1;q(this,e,r,i,b,0)}let s=i-1,l=1;for(this[r+s]=e&255;--s>=0&&(l*=256);)this[r+s]=e/l&255;return r+i},n.prototype.writeUint8=n.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,1,255,0),this[r]=e&255,r+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ye(t,e,r,i,u){Qe(e,i,u,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s;let l=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=l,l=l>>8,t[r++]=l,l=l>>8,t[r++]=l,l=l>>8,t[r++]=l,r}function qe(t,e,r,i,u){Qe(e,i,u,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s=s>>8,t[r+6]=s,s=s>>8,t[r+5]=s,s=s>>8,t[r+4]=s;let l=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=l,l=l>>8,t[r+2]=l,l=l>>8,t[r+1]=l,l=l>>8,t[r]=l,r+8}n.prototype.writeBigUInt64LE=Z(function(e,r=0){return Ye(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=Z(function(e,r=0){return qe(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(e,r,i,u){if(e=+e,r=r>>>0,!u){let L=Math.pow(2,8*i-1);q(this,e,r,i,L-1,-L)}let s=0,l=1,b=0;for(this[r]=e&255;++s<i&&(l*=256);)e<0&&b===0&&this[r+s-1]!==0&&(b=1),this[r+s]=(e/l>>0)-b&255;return r+i},n.prototype.writeIntBE=function(e,r,i,u){if(e=+e,r=r>>>0,!u){let L=Math.pow(2,8*i-1);q(this,e,r,i,L-1,-L)}let s=i-1,l=1,b=0;for(this[r+s]=e&255;--s>=0&&(l*=256);)e<0&&b===0&&this[r+s+1]!==0&&(b=1),this[r+s]=(e/l>>0)-b&255;return r+i},n.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},n.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},n.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},n.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4},n.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4},n.prototype.writeBigInt64LE=Z(function(e,r=0){return Ye(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=Z(function(e,r=0){return qe(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ge(t,e,r,i,u,s){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ke(t,e,r,i,u){return e=+e,r=r>>>0,u||Ge(t,e,r,4),c.write(t,e,r,i,23,4),r+4}n.prototype.writeFloatLE=function(e,r,i){return Ke(this,e,r,!0,i)},n.prototype.writeFloatBE=function(e,r,i){return Ke(this,e,r,!1,i)};function We(t,e,r,i,u){return e=+e,r=r>>>0,u||Ge(t,e,r,8),c.write(t,e,r,i,52,8),r+8}n.prototype.writeDoubleLE=function(e,r,i){return We(this,e,r,!0,i)},n.prototype.writeDoubleBE=function(e,r,i){return We(this,e,r,!1,i)},n.prototype.copy=function(e,r,i,u){if(!n.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!u&&u!==0&&(u=this.length),r>=e.length&&(r=e.length),r||(r=0),u>0&&u<i&&(u=i),u===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),e.length-r<u-i&&(u=e.length-r+i);let s=u-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,u):Uint8Array.prototype.set.call(e,this.subarray(i,u),r),s},n.prototype.fill=function(e,r,i,u){if(typeof e=="string"){if(typeof r=="string"?(u=r,r=0,i=this.length):typeof i=="string"&&(u=i,i=this.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!n.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(e.length===1){let l=e.charCodeAt(0);(u==="utf8"&&l<128||u==="latin1")&&(e=l)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{let l=n.isBuffer(e)?e:n.from(e,u),b=l.length;if(b===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<i-r;++s)this[s+r]=l[s%b]}return this};let ie={};function Ae(t,e,r){ie[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(u){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:u,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Ae("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ae("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),Ae("ERR_OUT_OF_RANGE",function(t,e,r){let i=`The value of "${t}" is out of range.`,u=r;return Number.isInteger(r)&&Math.abs(r)>2**32?u=ze(String(r)):typeof r=="bigint"&&(u=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(u=ze(u)),u+="n"),i+=` It must be ${e}. Received ${u}`,i},RangeError);function ze(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Gt(t,e,r){oe(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&le(e,t.length-(r+1))}function Qe(t,e,r,i,u,s){if(t>r||t<e){let l=typeof e=="bigint"?"n":"",b;throw s>3?e===0||e===BigInt(0)?b=`>= 0${l} and < 2${l} ** ${(s+1)*8}${l}`:b=`>= -(2${l} ** ${(s+1)*8-1}${l}) and < 2 ** ${(s+1)*8-1}${l}`:b=`>= ${e}${l} and <= ${r}${l}`,new ie.ERR_OUT_OF_RANGE("value",b,t)}Gt(i,u,s)}function oe(t,e){if(typeof t!="number")throw new ie.ERR_INVALID_ARG_TYPE(e,"number",t)}function le(t,e,r){throw Math.floor(t)!==t?(oe(t,r),new ie.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new ie.ERR_BUFFER_OUT_OF_BOUNDS:new ie.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}let Kt=/[^+/0-9A-Za-z-_]/g;function Wt(t){if(t=t.split("=")[0],t=t.trim().replace(Kt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function _e(t,e){e=e||1/0;let r,i=t.length,u=null,s=[];for(let l=0;l<i;++l){if(r=t.charCodeAt(l),r>55295&&r<57344){if(!u){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(l+1===i){(e-=3)>-1&&s.push(239,191,189);continue}u=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),u=r;continue}r=(u-55296<<10|r-56320)+65536}else u&&(e-=3)>-1&&s.push(239,191,189);if(u=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function zt(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Qt(t,e){let r,i,u,s=[];for(let l=0;l<t.length&&!((e-=2)<0);++l)r=t.charCodeAt(l),i=r>>8,u=r%256,s.push(u),s.push(i);return s}function Xe(t){return o.toByteArray(Wt(t))}function me(t,e,r,i){let u;for(u=0;u<i&&!(u+r>=e.length||u>=t.length);++u)e[u+r]=t[u];return u}function W(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function be(t){return t!==t}let Xt=(function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let u=0;u<16;++u)e[i+u]=t[r]+t[u]}return e})();function Z(t){return typeof BigInt>"u"?Ht:t}function Ht(){throw new Error("BigInt not supported")}return te}var pe,pt,Be,dt,te,mt,ne,K,Ei,Bi,gt=z(()=>{D();S();R();pe={},pt=!1;Be={},dt=!1;te={},mt=!1;ne=an();ne.Buffer;ne.SlowBuffer;ne.INSPECT_MAX_BYTES;ne.kMaxLength;K=ne.Buffer,Ei=ne.INSPECT_MAX_BYTES,Bi=ne.kMaxLength});var S=z(()=>{gt()});var ke={};fe(ke,{default:()=>sn});var sn,Le=z(()=>{D();S();R();sn={}});function cn(){if(yt)return Ce;yt=!0;var o=Ce={},c,m;function w(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?c=setTimeout:c=w}catch{c=w}try{typeof clearTimeout=="function"?m=clearTimeout:m=g}catch{m=g}})();function f(E){if(c===setTimeout)return setTimeout(E,0);if((c===w||!c)&&setTimeout)return c=setTimeout,setTimeout(E,0);try{return c(E,0)}catch{try{return c.call(null,E,0)}catch{return c.call(this||se,E,0)}}}function n(E){if(m===clearTimeout)return clearTimeout(E);if((m===g||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(E);try{return m(E)}catch{try{return m.call(null,E)}catch{return m.call(this||se,E)}}}var a=[],h=!1,v,y=-1;function p(){!h||!v||(h=!1,v.length?a=v.concat(a):y=-1,a.length&&A())}function A(){if(!h){var E=f(p);h=!0;for(var I=a.length;I;){for(v=a,a=[];++y<I;)v&&v[y].run();y=-1,I=a.length}v=null,h=!1,n(E)}}o.nextTick=function(E){var I=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)I[T-1]=arguments[T];a.push(new d(E,I)),a.length===1&&!h&&f(A)};function d(E,I){(this||se).fun=E,(this||se).array=I}d.prototype.run=function(){(this||se).fun.apply(null,(this||se).array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function B(){}return o.on=B,o.addListener=B,o.once=B,o.off=B,o.removeListener=B,o.removeAllListeners=B,o.emit=B,o.prependListener=B,o.prependOnceListener=B,o.listeners=function(E){return[]},o.binding=function(E){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(E){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},Ce}var Ce,yt,se,k,De=z(()=>{D();S();R();Ce={},yt=!1,se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window;k=cn();k.platform="browser";k.addListener;k.argv;k.binding;k.browser;k.chdir;k.cwd;k.emit;k.env;k.listeners;k.nextTick;k.off;k.on;k.once;k.prependListener;k.prependOnceListener;k.removeAllListeners;k.removeListener;k.title;k.umask;k.version;k.versions});function ln(){if(wt)return Re;wt=!0;var o=k;function c(f){if(typeof f!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(f))}function m(f,n){for(var a="",h=0,v=-1,y=0,p,A=0;A<=f.length;++A){if(A<f.length)p=f.charCodeAt(A);else{if(p===47)break;p=47}if(p===47){if(!(v===A-1||y===1))if(v!==A-1&&y===2){if(a.length<2||h!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var d=a.lastIndexOf("/");if(d!==a.length-1){d===-1?(a="",h=0):(a=a.slice(0,d),h=a.length-1-a.lastIndexOf("/")),v=A,y=0;continue}}else if(a.length===2||a.length===1){a="",h=0,v=A,y=0;continue}}n&&(a.length>0?a+="/..":a="..",h=2)}else a.length>0?a+="/"+f.slice(v+1,A):a=f.slice(v+1,A),h=A-v-1;v=A,y=0}else p===46&&y!==-1?++y:y=-1}return a}function w(f,n){var a=n.dir||n.root,h=n.base||(n.name||"")+(n.ext||"");return a?a===n.root?a+h:a+f+h:h}var g={resolve:function(){for(var n="",a=!1,h,v=arguments.length-1;v>=-1&&!a;v--){var y;v>=0?y=arguments[v]:(h===void 0&&(h=o.cwd()),y=h),c(y),y.length!==0&&(n=y+"/"+n,a=y.charCodeAt(0)===47)}return n=m(n,!a),a?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(n){if(c(n),n.length===0)return".";var a=n.charCodeAt(0)===47,h=n.charCodeAt(n.length-1)===47;return n=m(n,!a),n.length===0&&!a&&(n="."),n.length>0&&h&&(n+="/"),a?"/"+n:n},isAbsolute:function(n){return c(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,a=0;a<arguments.length;++a){var h=arguments[a];c(h),h.length>0&&(n===void 0?n=h:n+="/"+h)}return n===void 0?".":g.normalize(n)},relative:function(n,a){if(c(n),c(a),n===a||(n=g.resolve(n),a=g.resolve(a),n===a))return"";for(var h=1;h<n.length&&n.charCodeAt(h)===47;++h);for(var v=n.length,y=v-h,p=1;p<a.length&&a.charCodeAt(p)===47;++p);for(var A=a.length,d=A-p,B=y<d?y:d,E=-1,I=0;I<=B;++I){if(I===B){if(d>B){if(a.charCodeAt(p+I)===47)return a.slice(p+I+1);if(I===0)return a.slice(p+I)}else y>B&&(n.charCodeAt(h+I)===47?E=I:I===0&&(E=0));break}var T=n.charCodeAt(h+I),U=a.charCodeAt(p+I);if(T!==U)break;T===47&&(E=I)}var O="";for(I=h+E+1;I<=v;++I)(I===v||n.charCodeAt(I)===47)&&(O.length===0?O+="..":O+="/..");return O.length>0?O+a.slice(p+E):(p+=E,a.charCodeAt(p)===47&&++p,a.slice(p))},_makeLong:function(n){return n},dirname:function(n){if(c(n),n.length===0)return".";for(var a=n.charCodeAt(0),h=a===47,v=-1,y=!0,p=n.length-1;p>=1;--p)if(a=n.charCodeAt(p),a===47){if(!y){v=p;break}}else y=!1;return v===-1?h?"/":".":h&&v===1?"//":n.slice(0,v)},basename:function(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');c(n);var h=0,v=-1,y=!0,p;if(a!==void 0&&a.length>0&&a.length<=n.length){if(a.length===n.length&&a===n)return"";var A=a.length-1,d=-1;for(p=n.length-1;p>=0;--p){var B=n.charCodeAt(p);if(B===47){if(!y){h=p+1;break}}else d===-1&&(y=!1,d=p+1),A>=0&&(B===a.charCodeAt(A)?--A===-1&&(v=p):(A=-1,v=d))}return h===v?v=d:v===-1&&(v=n.length),n.slice(h,v)}else{for(p=n.length-1;p>=0;--p)if(n.charCodeAt(p)===47){if(!y){h=p+1;break}}else v===-1&&(y=!1,v=p+1);return v===-1?"":n.slice(h,v)}},extname:function(n){c(n);for(var a=-1,h=0,v=-1,y=!0,p=0,A=n.length-1;A>=0;--A){var d=n.charCodeAt(A);if(d===47){if(!y){h=A+1;break}continue}v===-1&&(y=!1,v=A+1),d===46?a===-1?a=A:p!==1&&(p=1):a!==-1&&(p=-1)}return a===-1||v===-1||p===0||p===1&&a===v-1&&a===h+1?"":n.slice(a,v)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return w("/",n)},parse:function(n){c(n);var a={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return a;var h=n.charCodeAt(0),v=h===47,y;v?(a.root="/",y=1):y=0;for(var p=-1,A=0,d=-1,B=!0,E=n.length-1,I=0;E>=y;--E){if(h=n.charCodeAt(E),h===47){if(!B){A=E+1;break}continue}d===-1&&(B=!1,d=E+1),h===46?p===-1?p=E:I!==1&&(I=1):p!==-1&&(I=-1)}return p===-1||d===-1||I===0||I===1&&p===d-1&&p===A+1?d!==-1&&(A===0&&v?a.base=a.name=n.slice(1,d):a.base=a.name=n.slice(A,d)):(A===0&&v?(a.name=n.slice(1,p),a.base=n.slice(1,d)):(a.name=n.slice(A,p),a.base=n.slice(A,d)),a.ext=n.slice(p,d)),A>0?a.dir=n.slice(0,A-1):v&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return g.posix=g,Re=g,Re}var Re,wt,F,Se=z(()=>{D();S();R();De();Re={},wt=!1;F=ln()});var vt={};fe(vt,{_makeLong:()=>fn,basename:()=>hn,default:()=>F,delimiter:()=>pn,dirname:()=>dn,extname:()=>mn,format:()=>gn,isAbsolute:()=>yn,join:()=>wn,normalize:()=>vn,parse:()=>En,posix:()=>Bn,relative:()=>In,resolve:()=>An,sep:()=>_n,win32:()=>bn});var fn,hn,pn,dn,mn,gn,yn,wn,vn,En,Bn,In,An,_n,bn,Et=z(()=>{D();S();R();Se();Se();De();fn=F._makeLong,hn=F.basename,pn=F.delimiter,dn=F.dirname,mn=F.extname,gn=F.format,yn=F.isAbsolute,wn=F.join,vn=F.normalize,En=F.parse,Bn=F.posix,In=F.relative,An=F.resolve,_n=F.sep,bn=F.win32});var It={};fe(It,{EOL:()=>kn,arch:()=>Ln,constants:()=>Nn,cpus:()=>Cn,default:()=>_,endianness:()=>Dn,freemem:()=>Rn,getNetworkInterfaces:()=>Sn,homedir:()=>$n,hostname:()=>On,loadavg:()=>Mn,networkInterfaces:()=>Pn,platform:()=>Vn,release:()=>Fn,tmpDir:()=>jn,tmpdir:()=>Yn,totalmem:()=>qn,type:()=>Gn,uptime:()=>ae,version:()=>Un});function Tn(){return Bt||(Bt=!0,M.endianness=function(){return"LE"},M.hostname=function(){return typeof location<"u"?location.hostname:""},M.loadavg=function(){return[]},M.uptime=function(){return 0},M.freemem=function(){return Number.MAX_VALUE},M.totalmem=function(){return Number.MAX_VALUE},M.cpus=function(){return[]},M.type=function(){return"Browser"},M.release=function(){return typeof navigator<"u"?navigator.appVersion:""},M.networkInterfaces=M.getNetworkInterfaces=function(){return{}},M.arch=function(){return"javascript"},M.platform=function(){return"browser"},M.tmpdir=M.tmpDir=function(){return"/tmp"},M.EOL=`
|
|
2
|
-
`,M.homedir=function(){return"/"}),M}var M,
|
|
1
|
+
"use strict";var dotenv=(()=>{var Jt=Object.create;var ge=Object.defineProperty;var Zt=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var rn=Object.getPrototypeOf,tn=Object.prototype.hasOwnProperty;var z=(o,c)=>()=>(o&&(c=o(o=0)),c);var xe=(o,c)=>()=>(c||o((c={exports:{}}).exports,c),c.exports),fe=(o,c)=>{for(var m in c)ge(o,m,{get:c[m],enumerable:!0})},Xe=(o,c,m,w)=>{if(c&&typeof c=="object"||typeof c=="function")for(let g of en(c))!tn.call(o,g)&&g!==m&&ge(o,g,{get:()=>c[g],enumerable:!(w=Zt(c,g))||w.enumerable});return o};var He=(o,c,m)=>(m=o!=null?Jt(rn(o)):{},Xe(c||!o||!o.__esModule?ge(m,"default",{value:o,enumerable:!0}):m,o)),he=o=>Xe(ge({},"__esModule",{value:!0}),o);var D=z(()=>{});var $={};fe($,{_debugEnd:()=>Pr,_debugProcess:()=>Mr,_events:()=>et,_eventsCount:()=>rt,_exiting:()=>vr,_fatalExceptions:()=>Rr,_getActiveHandles:()=>Ar,_getActiveRequests:()=>Ir,_kill:()=>br,_linkedBinding:()=>yr,_maxListeners:()=>Zr,_preload_modules:()=>Hr,_rawDebug:()=>mr,_startProfilerIdleNotifier:()=>Vr,_stopProfilerIdleNotifier:()=>Fr,_tickCallback:()=>Or,abort:()=>Gr,addListener:()=>tt,allowedNodeEnvironmentFlags:()=>Lr,arch:()=>tr,argv:()=>or,argv0:()=>Xr,assert:()=>Cr,binding:()=>lr,chdir:()=>pr,config:()=>Er,cpuUsage:()=>ve,cwd:()=>hr,debugPort:()=>Qr,default:()=>ft,dlopen:()=>Br,domain:()=>wr,emit:()=>at,emitWarning:()=>cr,env:()=>ir,execArgv:()=>ur,execPath:()=>zr,exit:()=>Nr,features:()=>Dr,hasUncaughtExceptionCaptureCallback:()=>$r,hrtime:()=>we,kill:()=>Ur,listeners:()=>lt,memoryUsage:()=>xr,moduleLoadList:()=>gr,nextTick:()=>Ze,off:()=>it,on:()=>H,once:()=>nt,openStdin:()=>kr,pid:()=>Kr,platform:()=>nr,ppid:()=>Wr,prependListener:()=>st,prependOnceListener:()=>ct,reallyExit:()=>_r,release:()=>dr,removeAllListeners:()=>ut,removeListener:()=>ot,resourceUsage:()=>Tr,setSourceMapsEnabled:()=>Jr,setUncaughtExceptionCaptureCallback:()=>Sr,stderr:()=>Yr,stdin:()=>qr,stdout:()=>jr,title:()=>rr,umask:()=>fr,uptime:()=>ae,version:()=>ar,versions:()=>sr});function ke(o){throw new Error("Node.js process "+o+" is not supported by JSPM core outside of Node.js")}function nn(){!ue||!re||(ue=!1,re.length?Q=re.concat(Q):ye=-1,Q.length&&Je())}function Je(){if(!ue){var o=setTimeout(nn,0);ue=!0;for(var c=Q.length;c;){for(re=Q,Q=[];++ye<c;)re&&re[ye].run();ye=-1,c=Q.length}re=null,ue=!1,clearTimeout(o)}}function Ze(o){var c=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)c[m-1]=arguments[m];Q.push(new er(o,c)),Q.length===1&&!ue&&setTimeout(Je,0)}function er(o,c){this.fun=o,this.array=c}function j(){}function yr(o){ke("_linkedBinding")}function Br(o){ke("dlopen")}function Ir(){return[]}function Ar(){return[]}function Cr(o,c){if(!o)throw new Error(c||"assertion error")}function $r(){return!1}function ae(){return ee.now()/1e3}function we(o){var c=Math.floor((Date.now()-ee.now())*.001),m=ee.now()*.001,w=Math.floor(m)+c,g=Math.floor(m%1*1e9);return o&&(w=w-o[0],g=g-o[1],g<0&&(w--,g+=Ne)),[w,g]}function H(){return ft}function lt(o){return[]}var Q,ue,re,ye,rr,tr,nr,ir,or,ur,ar,sr,cr,lr,fr,hr,pr,dr,mr,gr,wr,vr,Er,_r,br,ve,Tr,xr,Ur,Nr,kr,Lr,Dr,Rr,Sr,Or,Mr,Pr,Vr,Fr,jr,Yr,qr,Gr,Kr,Wr,zr,Qr,Xr,Hr,Jr,ee,Ue,Ne,Zr,et,rt,tt,nt,it,ot,ut,at,st,ct,ft,Ee=z(()=>{D();S();R();Q=[],ue=!1,ye=-1;er.prototype.run=function(){this.fun.apply(null,this.array)};rr="browser",tr="x64",nr="browser",ir={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},or=["/usr/bin/node"],ur=[],ar="v16.8.0",sr={},cr=function(o,c){console.warn((c?c+": ":"")+o)},lr=function(o){ke("binding")},fr=function(o){return 0},hr=function(){return"/"},pr=function(o){},dr={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};mr=j,gr=[];wr={},vr=!1,Er={};_r=j,br=j,ve=function(){return{}},Tr=ve,xr=ve,Ur=j,Nr=j,kr=j,Lr={};Dr={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Rr=j,Sr=j;Or=j,Mr=j,Pr=j,Vr=j,Fr=j,jr=void 0,Yr=void 0,qr=void 0,Gr=j,Kr=2,Wr=1,zr="/bin/usr/node",Qr=9229,Xr="node",Hr=[],Jr=j,ee={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};ee.now===void 0&&(Ue=Date.now(),ee.timing&&ee.timing.navigationStart&&(Ue=ee.timing.navigationStart),ee.now=()=>Date.now()-Ue);Ne=1e9;we.bigint=function(o){var c=we(o);return typeof BigInt>"u"?c[0]*Ne+c[1]:BigInt(c[0]*Ne)+BigInt(c[1])};Zr=10,et={},rt=0;tt=H,nt=H,it=H,ot=H,ut=H,at=j,st=H,ct=H;ft={version:ar,versions:sr,arch:tr,platform:nr,release:dr,_rawDebug:mr,moduleLoadList:gr,binding:lr,_linkedBinding:yr,_events:et,_eventsCount:rt,_maxListeners:Zr,on:H,addListener:tt,once:nt,off:it,removeListener:ot,removeAllListeners:ut,emit:at,prependListener:st,prependOnceListener:ct,listeners:lt,domain:wr,_exiting:vr,config:Er,dlopen:Br,uptime:ae,_getActiveRequests:Ir,_getActiveHandles:Ar,reallyExit:_r,_kill:br,cpuUsage:ve,resourceUsage:Tr,memoryUsage:xr,kill:Ur,exit:Nr,openStdin:kr,allowedNodeEnvironmentFlags:Lr,assert:Cr,features:Dr,_fatalExceptions:Rr,setUncaughtExceptionCaptureCallback:Sr,hasUncaughtExceptionCaptureCallback:$r,emitWarning:cr,nextTick:Ze,_tickCallback:Or,_debugProcess:Mr,_debugEnd:Pr,_startProfilerIdleNotifier:Vr,_stopProfilerIdleNotifier:Fr,stdout:jr,stdin:qr,stderr:Yr,abort:Gr,umask:fr,chdir:pr,cwd:hr,env:ir,title:rr,argv:or,execArgv:ur,pid:Kr,ppid:Wr,execPath:zr,debugPort:Qr,hrtime:we,argv0:Xr,_preload_modules:Hr,setSourceMapsEnabled:Jr}});var R=z(()=>{Ee()});function on(){if(ht)return pe;ht=!0,pe.byteLength=a,pe.toByteArray=v,pe.fromByteArray=A;for(var o=[],c=[],m=typeof Uint8Array<"u"?Uint8Array:Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,f=w.length;g<f;++g)o[g]=w[g],c[w.charCodeAt(g)]=g;c[45]=62,c[95]=63;function n(d){var B=d.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=d.indexOf("=");E===-1&&(E=B);var I=E===B?0:4-E%4;return[E,I]}function a(d){var B=n(d),E=B[0],I=B[1];return(E+I)*3/4-I}function h(d,B,E){return(B+E)*3/4-E}function v(d){var B,E=n(d),I=E[0],T=E[1],U=new m(h(d,I,T)),O=0,G=T>0?I-4:I,Y;for(Y=0;Y<G;Y+=4)B=c[d.charCodeAt(Y)]<<18|c[d.charCodeAt(Y+1)]<<12|c[d.charCodeAt(Y+2)]<<6|c[d.charCodeAt(Y+3)],U[O++]=B>>16&255,U[O++]=B>>8&255,U[O++]=B&255;return T===2&&(B=c[d.charCodeAt(Y)]<<2|c[d.charCodeAt(Y+1)]>>4,U[O++]=B&255),T===1&&(B=c[d.charCodeAt(Y)]<<10|c[d.charCodeAt(Y+1)]<<4|c[d.charCodeAt(Y+2)]>>2,U[O++]=B>>8&255,U[O++]=B&255),U}function y(d){return o[d>>18&63]+o[d>>12&63]+o[d>>6&63]+o[d&63]}function p(d,B,E){for(var I,T=[],U=B;U<E;U+=3)I=(d[U]<<16&16711680)+(d[U+1]<<8&65280)+(d[U+2]&255),T.push(y(I));return T.join("")}function A(d){for(var B,E=d.length,I=E%3,T=[],U=16383,O=0,G=E-I;O<G;O+=U)T.push(p(d,O,O+U>G?G:O+U));return I===1?(B=d[E-1],T.push(o[B>>2]+o[B<<4&63]+"==")):I===2&&(B=(d[E-2]<<8)+d[E-1],T.push(o[B>>10]+o[B>>4&63]+o[B<<2&63]+"=")),T.join("")}return pe}function un(){if(pt)return Be;pt=!0;return Be.read=function(o,c,m,w,g){var f,n,a=g*8-w-1,h=(1<<a)-1,v=h>>1,y=-7,p=m?g-1:0,A=m?-1:1,d=o[c+p];for(p+=A,f=d&(1<<-y)-1,d>>=-y,y+=a;y>0;f=f*256+o[c+p],p+=A,y-=8);for(n=f&(1<<-y)-1,f>>=-y,y+=w;y>0;n=n*256+o[c+p],p+=A,y-=8);if(f===0)f=1-v;else{if(f===h)return n?NaN:(d?-1:1)*(1/0);n=n+Math.pow(2,w),f=f-v}return(d?-1:1)*n*Math.pow(2,f-w)},Be.write=function(o,c,m,w,g,f){var n,a,h,v=f*8-g-1,y=(1<<v)-1,p=y>>1,A=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=w?0:f-1,B=w?1:-1,E=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(a=isNaN(c)?1:0,n=y):(n=Math.floor(Math.log(c)/Math.LN2),c*(h=Math.pow(2,-n))<1&&(n--,h*=2),n+p>=1?c+=A/h:c+=A*Math.pow(2,1-p),c*h>=2&&(n++,h/=2),n+p>=y?(a=0,n=y):n+p>=1?(a=(c*h-1)*Math.pow(2,g),n=n+p):(a=c*Math.pow(2,p-1)*Math.pow(2,g),n=0));g>=8;o[m+d]=a&255,d+=B,a/=256,g-=8);for(n=n<<g|a,v+=g;v>0;o[m+d]=n&255,d+=B,n/=256,v-=8);o[m+d-B]|=E*128},Be}function an(){if(dt)return te;dt=!0;let o=on(),c=un(),m=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;te.Buffer=n,te.SlowBuffer=T,te.INSPECT_MAX_BYTES=50;let w=2147483647;te.kMaxLength=w,n.TYPED_ARRAY_SUPPORT=g(),!n.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function g(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function f(t){if(t>w)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,n.prototype),e}function n(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(t)}return a(t,e,r)}n.poolSize=8192;function a(t,e,r){if(typeof t=="string")return p(t,e);if(ArrayBuffer.isView(t))return d(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(W(t,ArrayBuffer)||t&&W(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(W(t,SharedArrayBuffer)||t&&W(t.buffer,SharedArrayBuffer)))return B(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return n.from(i,e,r);let u=E(t);if(u)return u;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return n.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}n.from=function(t,e,r){return a(t,e,r)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function h(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function v(t,e,r){return h(t),t<=0?f(t):e!==void 0?typeof r=="string"?f(t).fill(e,r):f(t).fill(e):f(t)}n.alloc=function(t,e,r){return v(t,e,r)};function y(t){return h(t),f(t<0?0:I(t)|0)}n.allocUnsafe=function(t){return y(t)},n.allocUnsafeSlow=function(t){return y(t)};function p(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!n.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=U(t,e)|0,i=f(r),u=i.write(t,e);return u!==r&&(i=i.slice(0,u)),i}function A(t){let e=t.length<0?0:I(t.length)|0,r=f(e);for(let i=0;i<e;i+=1)r[i]=t[i]&255;return r}function d(t){if(W(t,Uint8Array)){let e=new Uint8Array(t);return B(e.buffer,e.byteOffset,e.byteLength)}return A(t)}function B(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&r===void 0?i=new Uint8Array(t):r===void 0?i=new Uint8Array(t,e):i=new Uint8Array(t,e,r),Object.setPrototypeOf(i,n.prototype),i}function E(t){if(n.isBuffer(t)){let e=I(t.length)|0,r=f(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Te(t.length)?f(0):A(t);if(t.type==="Buffer"&&Array.isArray(t.data))return A(t.data)}function I(t){if(t>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return t|0}function T(t){return+t!=t&&(t=0),n.alloc(+t)}n.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==n.prototype},n.compare=function(e,r){if(W(e,Uint8Array)&&(e=n.from(e,e.offset,e.byteLength)),W(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),!n.isBuffer(e)||!n.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,u=r.length;for(let s=0,l=Math.min(i,u);s<l;++s)if(e[s]!==r[s]){i=e[s],u=r[s];break}return i<u?-1:u<i?1:0},n.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return n.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;let u=n.allocUnsafe(r),s=0;for(i=0;i<e.length;++i){let l=e[i];if(W(l,Uint8Array))s+l.length>u.length?(n.isBuffer(l)||(l=n.from(l)),l.copy(u,s)):Uint8Array.prototype.set.call(u,l,s);else if(n.isBuffer(l))l.copy(u,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=l.length}return u};function U(t,e){if(n.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||W(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let u=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return be(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Qe(t).length;default:if(u)return i?-1:be(t).length;e=(""+e).toLowerCase(),u=!0}}n.byteLength=U;function O(t,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Yt(this,e,r);case"utf8":case"utf-8":return Ve(this,e,r);case"ascii":return Ft(this,e,r);case"latin1":case"binary":return jt(this,e,r);case"base64":return Pt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}n.prototype._isBuffer=!0;function G(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}n.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)G(this,r,r+1);return this},n.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)G(this,r,r+3),G(this,r+1,r+2);return this},n.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)G(this,r,r+7),G(this,r+1,r+6),G(this,r+2,r+5),G(this,r+3,r+4);return this},n.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Ve(this,0,e):O.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(e){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:n.compare(this,e)===0},n.prototype.inspect=function(){let e="",r=te.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},m&&(n.prototype[m]=n.prototype.inspect),n.prototype.compare=function(e,r,i,u,s){if(W(e,Uint8Array)&&(e=n.from(e,e.offset,e.byteLength)),!n.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),u===void 0&&(u=0),s===void 0&&(s=this.length),r<0||i>e.length||u<0||s>this.length)throw new RangeError("out of range index");if(u>=s&&r>=i)return 0;if(u>=s)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,u>>>=0,s>>>=0,this===e)return 0;let l=s-u,b=i-r,L=Math.min(l,b),N=this.slice(u,s),C=e.slice(r,i);for(let x=0;x<L;++x)if(N[x]!==C[x]){l=N[x],b=C[x];break}return l<b?-1:b<l?1:0};function Y(t,e,r,i,u){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Te(r)&&(r=u?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(u)return-1;r=t.length-1}else if(r<0)if(u)r=0;else return-1;if(typeof e=="string"&&(e=n.from(e,i)),n.isBuffer(e))return e.length===0?-1:Pe(t,e,r,i,u);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?u?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Pe(t,[e],r,i,u);throw new TypeError("val must be string, number or Buffer")}function Pe(t,e,r,i,u){let s=1,l=t.length,b=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;s=2,l/=2,b/=2,r/=2}function L(C,x){return s===1?C[x]:C.readUInt16BE(x*s)}let N;if(u){let C=-1;for(N=r;N<l;N++)if(L(t,N)===L(e,C===-1?0:N-C)){if(C===-1&&(C=N),N-C+1===b)return C*s}else C!==-1&&(N-=N-C),C=-1}else for(r+b>l&&(r=l-b),N=r;N>=0;N--){let C=!0;for(let x=0;x<b;x++)if(L(t,N+x)!==L(e,x)){C=!1;break}if(C)return N}return-1}n.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1},n.prototype.indexOf=function(e,r,i){return Y(this,e,r,i,!0)},n.prototype.lastIndexOf=function(e,r,i){return Y(this,e,r,i,!1)};function Rt(t,e,r,i){r=Number(r)||0;let u=t.length-r;i?(i=Number(i),i>u&&(i=u)):i=u;let s=e.length;i>s/2&&(i=s/2);let l;for(l=0;l<i;++l){let b=parseInt(e.substr(l*2,2),16);if(Te(b))return l;t[r+l]=b}return l}function St(t,e,r,i){return me(be(e,t.length-r),t,r,i)}function $t(t,e,r,i){return me(zt(e),t,r,i)}function Ot(t,e,r,i){return me(Qe(e),t,r,i)}function Mt(t,e,r,i){return me(Qt(e,t.length-r),t,r,i)}n.prototype.write=function(e,r,i,u){if(r===void 0)u="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")u=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,u===void 0&&(u="utf8")):(u=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-r;if((i===void 0||i>s)&&(i=s),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");let l=!1;for(;;)switch(u){case"hex":return Rt(this,e,r,i);case"utf8":case"utf-8":return St(this,e,r,i);case"ascii":case"latin1":case"binary":return $t(this,e,r,i);case"base64":return Ot(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,e,r,i);default:if(l)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),l=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pt(t,e,r){return e===0&&r===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,r))}function Ve(t,e,r){r=Math.min(t.length,r);let i=[],u=e;for(;u<r;){let s=t[u],l=null,b=s>239?4:s>223?3:s>191?2:1;if(u+b<=r){let L,N,C,x;switch(b){case 1:s<128&&(l=s);break;case 2:L=t[u+1],(L&192)===128&&(x=(s&31)<<6|L&63,x>127&&(l=x));break;case 3:L=t[u+1],N=t[u+2],(L&192)===128&&(N&192)===128&&(x=(s&15)<<12|(L&63)<<6|N&63,x>2047&&(x<55296||x>57343)&&(l=x));break;case 4:L=t[u+1],N=t[u+2],C=t[u+3],(L&192)===128&&(N&192)===128&&(C&192)===128&&(x=(s&15)<<18|(L&63)<<12|(N&63)<<6|C&63,x>65535&&x<1114112&&(l=x))}}l===null?(l=65533,b=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|l&1023),i.push(l),u+=b}return Vt(i)}let Fe=4096;function Vt(t){let e=t.length;if(e<=Fe)return String.fromCharCode.apply(String,t);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=Fe));return r}function Ft(t,e,r){let i="";r=Math.min(t.length,r);for(let u=e;u<r;++u)i+=String.fromCharCode(t[u]&127);return i}function jt(t,e,r){let i="";r=Math.min(t.length,r);for(let u=e;u<r;++u)i+=String.fromCharCode(t[u]);return i}function Yt(t,e,r){let i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let u="";for(let s=e;s<r;++s)u+=Xt[t[s]];return u}function qt(t,e,r){let i=t.slice(e,r),u="";for(let s=0;s<i.length-1;s+=2)u+=String.fromCharCode(i[s]+i[s+1]*256);return u}n.prototype.slice=function(e,r){let i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);let u=this.subarray(e,r);return Object.setPrototypeOf(u,n.prototype),u};function V(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||V(e,r,this.length);let u=this[e],s=1,l=0;for(;++l<r&&(s*=256);)u+=this[e+l]*s;return u},n.prototype.readUintBE=n.prototype.readUIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||V(e,r,this.length);let u=this[e+--r],s=1;for(;r>0&&(s*=256);)u+=this[e+--r]*s;return u},n.prototype.readUint8=n.prototype.readUInt8=function(e,r){return e=e>>>0,r||V(e,1,this.length),this[e]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||V(e,2,this.length),this[e]|this[e+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||V(e,2,this.length),this[e]<<8|this[e+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||V(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||V(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},n.prototype.readBigUInt64LE=Z(function(e){e=e>>>0,oe(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&le(e,this.length-8);let u=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(u)+(BigInt(s)<<BigInt(32))}),n.prototype.readBigUInt64BE=Z(function(e){e=e>>>0,oe(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&le(e,this.length-8);let u=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(u)<<BigInt(32))+BigInt(s)}),n.prototype.readIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||V(e,r,this.length);let u=this[e],s=1,l=0;for(;++l<r&&(s*=256);)u+=this[e+l]*s;return s*=128,u>=s&&(u-=Math.pow(2,8*r)),u},n.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||V(e,r,this.length);let u=r,s=1,l=this[e+--u];for(;u>0&&(s*=256);)l+=this[e+--u]*s;return s*=128,l>=s&&(l-=Math.pow(2,8*r)),l},n.prototype.readInt8=function(e,r){return e=e>>>0,r||V(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},n.prototype.readInt16LE=function(e,r){e=e>>>0,r||V(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i},n.prototype.readInt16BE=function(e,r){e=e>>>0,r||V(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i},n.prototype.readInt32LE=function(e,r){return e=e>>>0,r||V(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},n.prototype.readInt32BE=function(e,r){return e=e>>>0,r||V(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},n.prototype.readBigInt64LE=Z(function(e){e=e>>>0,oe(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&le(e,this.length-8);let u=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(u)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),n.prototype.readBigInt64BE=Z(function(e){e=e>>>0,oe(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&le(e,this.length-8);let u=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(u)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)}),n.prototype.readFloatLE=function(e,r){return e=e>>>0,r||V(e,4,this.length),c.read(this,e,!0,23,4)},n.prototype.readFloatBE=function(e,r){return e=e>>>0,r||V(e,4,this.length),c.read(this,e,!1,23,4)},n.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||V(e,8,this.length),c.read(this,e,!0,52,8)},n.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||V(e,8,this.length),c.read(this,e,!1,52,8)};function q(t,e,r,i,u,s){if(!n.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>u||e<s)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(e,r,i,u){if(e=+e,r=r>>>0,i=i>>>0,!u){let b=Math.pow(2,8*i)-1;q(this,e,r,i,b,0)}let s=1,l=0;for(this[r]=e&255;++l<i&&(s*=256);)this[r+l]=e/s&255;return r+i},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(e,r,i,u){if(e=+e,r=r>>>0,i=i>>>0,!u){let b=Math.pow(2,8*i)-1;q(this,e,r,i,b,0)}let s=i-1,l=1;for(this[r+s]=e&255;--s>=0&&(l*=256);)this[r+s]=e/l&255;return r+i},n.prototype.writeUint8=n.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,1,255,0),this[r]=e&255,r+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function je(t,e,r,i,u){ze(e,i,u,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s;let l=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=l,l=l>>8,t[r++]=l,l=l>>8,t[r++]=l,l=l>>8,t[r++]=l,r}function Ye(t,e,r,i,u){ze(e,i,u,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s=s>>8,t[r+6]=s,s=s>>8,t[r+5]=s,s=s>>8,t[r+4]=s;let l=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=l,l=l>>8,t[r+2]=l,l=l>>8,t[r+1]=l,l=l>>8,t[r]=l,r+8}n.prototype.writeBigUInt64LE=Z(function(e,r=0){return je(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=Z(function(e,r=0){return Ye(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(e,r,i,u){if(e=+e,r=r>>>0,!u){let L=Math.pow(2,8*i-1);q(this,e,r,i,L-1,-L)}let s=0,l=1,b=0;for(this[r]=e&255;++s<i&&(l*=256);)e<0&&b===0&&this[r+s-1]!==0&&(b=1),this[r+s]=(e/l>>0)-b&255;return r+i},n.prototype.writeIntBE=function(e,r,i,u){if(e=+e,r=r>>>0,!u){let L=Math.pow(2,8*i-1);q(this,e,r,i,L-1,-L)}let s=i-1,l=1,b=0;for(this[r+s]=e&255;--s>=0&&(l*=256);)e<0&&b===0&&this[r+s+1]!==0&&(b=1),this[r+s]=(e/l>>0)-b&255;return r+i},n.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},n.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},n.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},n.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4},n.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||q(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4},n.prototype.writeBigInt64LE=Z(function(e,r=0){return je(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=Z(function(e,r=0){return Ye(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(t,e,r,i,u,s){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ge(t,e,r,i,u){return e=+e,r=r>>>0,u||qe(t,e,r,4),c.write(t,e,r,i,23,4),r+4}n.prototype.writeFloatLE=function(e,r,i){return Ge(this,e,r,!0,i)},n.prototype.writeFloatBE=function(e,r,i){return Ge(this,e,r,!1,i)};function Ke(t,e,r,i,u){return e=+e,r=r>>>0,u||qe(t,e,r,8),c.write(t,e,r,i,52,8),r+8}n.prototype.writeDoubleLE=function(e,r,i){return Ke(this,e,r,!0,i)},n.prototype.writeDoubleBE=function(e,r,i){return Ke(this,e,r,!1,i)},n.prototype.copy=function(e,r,i,u){if(!n.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!u&&u!==0&&(u=this.length),r>=e.length&&(r=e.length),r||(r=0),u>0&&u<i&&(u=i),u===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),e.length-r<u-i&&(u=e.length-r+i);let s=u-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,u):Uint8Array.prototype.set.call(e,this.subarray(i,u),r),s},n.prototype.fill=function(e,r,i,u){if(typeof e=="string"){if(typeof r=="string"?(u=r,r=0,i=this.length):typeof i=="string"&&(u=i,i=this.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!n.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(e.length===1){let l=e.charCodeAt(0);(u==="utf8"&&l<128||u==="latin1")&&(e=l)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{let l=n.isBuffer(e)?e:n.from(e,u),b=l.length;if(b===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<i-r;++s)this[s+r]=l[s%b]}return this};let ie={};function _e(t,e,r){ie[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(u){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:u,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}_e("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_e("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),_e("ERR_OUT_OF_RANGE",function(t,e,r){let i=`The value of "${t}" is out of range.`,u=r;return Number.isInteger(r)&&Math.abs(r)>2**32?u=We(String(r)):typeof r=="bigint"&&(u=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(u=We(u)),u+="n"),i+=` It must be ${e}. Received ${u}`,i},RangeError);function We(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Gt(t,e,r){oe(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&le(e,t.length-(r+1))}function ze(t,e,r,i,u,s){if(t>r||t<e){let l=typeof e=="bigint"?"n":"",b;throw s>3?e===0||e===BigInt(0)?b=`>= 0${l} and < 2${l} ** ${(s+1)*8}${l}`:b=`>= -(2${l} ** ${(s+1)*8-1}${l}) and < 2 ** ${(s+1)*8-1}${l}`:b=`>= ${e}${l} and <= ${r}${l}`,new ie.ERR_OUT_OF_RANGE("value",b,t)}Gt(i,u,s)}function oe(t,e){if(typeof t!="number")throw new ie.ERR_INVALID_ARG_TYPE(e,"number",t)}function le(t,e,r){throw Math.floor(t)!==t?(oe(t,r),new ie.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new ie.ERR_BUFFER_OUT_OF_BOUNDS:new ie.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}let Kt=/[^+/0-9A-Za-z-_]/g;function Wt(t){if(t=t.split("=")[0],t=t.trim().replace(Kt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function be(t,e){e=e||1/0;let r,i=t.length,u=null,s=[];for(let l=0;l<i;++l){if(r=t.charCodeAt(l),r>55295&&r<57344){if(!u){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(l+1===i){(e-=3)>-1&&s.push(239,191,189);continue}u=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),u=r;continue}r=(u-55296<<10|r-56320)+65536}else u&&(e-=3)>-1&&s.push(239,191,189);if(u=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function zt(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Qt(t,e){let r,i,u,s=[];for(let l=0;l<t.length&&!((e-=2)<0);++l)r=t.charCodeAt(l),i=r>>8,u=r%256,s.push(u),s.push(i);return s}function Qe(t){return o.toByteArray(Wt(t))}function me(t,e,r,i){let u;for(u=0;u<i&&!(u+r>=e.length||u>=t.length);++u)e[u+r]=t[u];return u}function W(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Te(t){return t!==t}let Xt=(function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let u=0;u<16;++u)e[i+u]=t[r]+t[u]}return e})();function Z(t){return typeof BigInt>"u"?Ht:t}function Ht(){throw new Error("BigInt not supported")}return te}var pe,ht,Be,pt,te,dt,ne,K,vi,Ei,mt=z(()=>{D();S();R();pe={},ht=!1;Be={},pt=!1;te={},dt=!1;ne=an();ne.Buffer;ne.SlowBuffer;ne.INSPECT_MAX_BYTES;ne.kMaxLength;K=ne.Buffer,vi=ne.INSPECT_MAX_BYTES,Ei=ne.kMaxLength});var S=z(()=>{mt()});var Le={};fe(Le,{default:()=>sn});var sn,Ce=z(()=>{D();S();R();sn={}});function cn(){if(gt)return De;gt=!0;var o=De={},c,m;function w(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?c=setTimeout:c=w}catch{c=w}try{typeof clearTimeout=="function"?m=clearTimeout:m=g}catch{m=g}})();function f(E){if(c===setTimeout)return setTimeout(E,0);if((c===w||!c)&&setTimeout)return c=setTimeout,setTimeout(E,0);try{return c(E,0)}catch{try{return c.call(null,E,0)}catch{return c.call(this||se,E,0)}}}function n(E){if(m===clearTimeout)return clearTimeout(E);if((m===g||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(E);try{return m(E)}catch{try{return m.call(null,E)}catch{return m.call(this||se,E)}}}var a=[],h=!1,v,y=-1;function p(){!h||!v||(h=!1,v.length?a=v.concat(a):y=-1,a.length&&A())}function A(){if(!h){var E=f(p);h=!0;for(var I=a.length;I;){for(v=a,a=[];++y<I;)v&&v[y].run();y=-1,I=a.length}v=null,h=!1,n(E)}}o.nextTick=function(E){var I=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)I[T-1]=arguments[T];a.push(new d(E,I)),a.length===1&&!h&&f(A)};function d(E,I){(this||se).fun=E,(this||se).array=I}d.prototype.run=function(){(this||se).fun.apply(null,(this||se).array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function B(){}return o.on=B,o.addListener=B,o.once=B,o.off=B,o.removeListener=B,o.removeAllListeners=B,o.emit=B,o.prependListener=B,o.prependOnceListener=B,o.listeners=function(E){return[]},o.binding=function(E){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(E){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},De}var De,gt,se,k,Re=z(()=>{D();S();R();De={},gt=!1,se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window;k=cn();k.platform="browser";k.addListener;k.argv;k.binding;k.browser;k.chdir;k.cwd;k.emit;k.env;k.listeners;k.nextTick;k.off;k.on;k.once;k.prependListener;k.prependOnceListener;k.removeAllListeners;k.removeListener;k.title;k.umask;k.version;k.versions});function ln(){if(yt)return Se;yt=!0;var o=k;function c(f){if(typeof f!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(f))}function m(f,n){for(var a="",h=0,v=-1,y=0,p,A=0;A<=f.length;++A){if(A<f.length)p=f.charCodeAt(A);else{if(p===47)break;p=47}if(p===47){if(!(v===A-1||y===1))if(v!==A-1&&y===2){if(a.length<2||h!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var d=a.lastIndexOf("/");if(d!==a.length-1){d===-1?(a="",h=0):(a=a.slice(0,d),h=a.length-1-a.lastIndexOf("/")),v=A,y=0;continue}}else if(a.length===2||a.length===1){a="",h=0,v=A,y=0;continue}}n&&(a.length>0?a+="/..":a="..",h=2)}else a.length>0?a+="/"+f.slice(v+1,A):a=f.slice(v+1,A),h=A-v-1;v=A,y=0}else p===46&&y!==-1?++y:y=-1}return a}function w(f,n){var a=n.dir||n.root,h=n.base||(n.name||"")+(n.ext||"");return a?a===n.root?a+h:a+f+h:h}var g={resolve:function(){for(var n="",a=!1,h,v=arguments.length-1;v>=-1&&!a;v--){var y;v>=0?y=arguments[v]:(h===void 0&&(h=o.cwd()),y=h),c(y),y.length!==0&&(n=y+"/"+n,a=y.charCodeAt(0)===47)}return n=m(n,!a),a?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(n){if(c(n),n.length===0)return".";var a=n.charCodeAt(0)===47,h=n.charCodeAt(n.length-1)===47;return n=m(n,!a),n.length===0&&!a&&(n="."),n.length>0&&h&&(n+="/"),a?"/"+n:n},isAbsolute:function(n){return c(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,a=0;a<arguments.length;++a){var h=arguments[a];c(h),h.length>0&&(n===void 0?n=h:n+="/"+h)}return n===void 0?".":g.normalize(n)},relative:function(n,a){if(c(n),c(a),n===a||(n=g.resolve(n),a=g.resolve(a),n===a))return"";for(var h=1;h<n.length&&n.charCodeAt(h)===47;++h);for(var v=n.length,y=v-h,p=1;p<a.length&&a.charCodeAt(p)===47;++p);for(var A=a.length,d=A-p,B=y<d?y:d,E=-1,I=0;I<=B;++I){if(I===B){if(d>B){if(a.charCodeAt(p+I)===47)return a.slice(p+I+1);if(I===0)return a.slice(p+I)}else y>B&&(n.charCodeAt(h+I)===47?E=I:I===0&&(E=0));break}var T=n.charCodeAt(h+I),U=a.charCodeAt(p+I);if(T!==U)break;T===47&&(E=I)}var O="";for(I=h+E+1;I<=v;++I)(I===v||n.charCodeAt(I)===47)&&(O.length===0?O+="..":O+="/..");return O.length>0?O+a.slice(p+E):(p+=E,a.charCodeAt(p)===47&&++p,a.slice(p))},_makeLong:function(n){return n},dirname:function(n){if(c(n),n.length===0)return".";for(var a=n.charCodeAt(0),h=a===47,v=-1,y=!0,p=n.length-1;p>=1;--p)if(a=n.charCodeAt(p),a===47){if(!y){v=p;break}}else y=!1;return v===-1?h?"/":".":h&&v===1?"//":n.slice(0,v)},basename:function(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');c(n);var h=0,v=-1,y=!0,p;if(a!==void 0&&a.length>0&&a.length<=n.length){if(a.length===n.length&&a===n)return"";var A=a.length-1,d=-1;for(p=n.length-1;p>=0;--p){var B=n.charCodeAt(p);if(B===47){if(!y){h=p+1;break}}else d===-1&&(y=!1,d=p+1),A>=0&&(B===a.charCodeAt(A)?--A===-1&&(v=p):(A=-1,v=d))}return h===v?v=d:v===-1&&(v=n.length),n.slice(h,v)}else{for(p=n.length-1;p>=0;--p)if(n.charCodeAt(p)===47){if(!y){h=p+1;break}}else v===-1&&(y=!1,v=p+1);return v===-1?"":n.slice(h,v)}},extname:function(n){c(n);for(var a=-1,h=0,v=-1,y=!0,p=0,A=n.length-1;A>=0;--A){var d=n.charCodeAt(A);if(d===47){if(!y){h=A+1;break}continue}v===-1&&(y=!1,v=A+1),d===46?a===-1?a=A:p!==1&&(p=1):a!==-1&&(p=-1)}return a===-1||v===-1||p===0||p===1&&a===v-1&&a===h+1?"":n.slice(a,v)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return w("/",n)},parse:function(n){c(n);var a={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return a;var h=n.charCodeAt(0),v=h===47,y;v?(a.root="/",y=1):y=0;for(var p=-1,A=0,d=-1,B=!0,E=n.length-1,I=0;E>=y;--E){if(h=n.charCodeAt(E),h===47){if(!B){A=E+1;break}continue}d===-1&&(B=!1,d=E+1),h===46?p===-1?p=E:I!==1&&(I=1):p!==-1&&(I=-1)}return p===-1||d===-1||I===0||I===1&&p===d-1&&p===A+1?d!==-1&&(A===0&&v?a.base=a.name=n.slice(1,d):a.base=a.name=n.slice(A,d)):(A===0&&v?(a.name=n.slice(1,p),a.base=n.slice(1,d)):(a.name=n.slice(A,p),a.base=n.slice(A,d)),a.ext=n.slice(p,d)),A>0?a.dir=n.slice(0,A-1):v&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return g.posix=g,Se=g,Se}var Se,yt,F,$e=z(()=>{D();S();R();Re();Se={},yt=!1;F=ln()});var wt={};fe(wt,{_makeLong:()=>fn,basename:()=>hn,default:()=>F,delimiter:()=>pn,dirname:()=>dn,extname:()=>mn,format:()=>gn,isAbsolute:()=>yn,join:()=>wn,normalize:()=>vn,parse:()=>En,posix:()=>Bn,relative:()=>In,resolve:()=>An,sep:()=>_n,win32:()=>bn});var fn,hn,pn,dn,mn,gn,yn,wn,vn,En,Bn,In,An,_n,bn,vt=z(()=>{D();S();R();$e();$e();Re();fn=F._makeLong,hn=F.basename,pn=F.delimiter,dn=F.dirname,mn=F.extname,gn=F.format,yn=F.isAbsolute,wn=F.join,vn=F.normalize,En=F.parse,Bn=F.posix,In=F.relative,An=F.resolve,_n=F.sep,bn=F.win32});var Bt={};fe(Bt,{EOL:()=>kn,arch:()=>Ln,constants:()=>Nn,cpus:()=>Cn,default:()=>_,endianness:()=>Dn,freemem:()=>Rn,getNetworkInterfaces:()=>Sn,homedir:()=>$n,hostname:()=>On,loadavg:()=>Mn,networkInterfaces:()=>Pn,platform:()=>Vn,release:()=>Fn,tmpDir:()=>jn,tmpdir:()=>Yn,totalmem:()=>qn,type:()=>Gn,uptime:()=>ae,version:()=>Un});function Tn(){return Et||(Et=!0,M.endianness=function(){return"LE"},M.hostname=function(){return typeof location<"u"?location.hostname:""},M.loadavg=function(){return[]},M.uptime=function(){return 0},M.freemem=function(){return Number.MAX_VALUE},M.totalmem=function(){return Number.MAX_VALUE},M.cpus=function(){return[]},M.type=function(){return"Browser"},M.release=function(){return typeof navigator<"u"?navigator.appVersion:""},M.networkInterfaces=M.getNetworkInterfaces=function(){return{}},M.arch=function(){return"javascript"},M.platform=function(){return"browser"},M.tmpdir=M.tmpDir=function(){return"/tmp"},M.EOL=`
|
|
2
|
+
`,M.homedir=function(){return"/"}),M}var M,Et,_,xn,Un,Nn,kn,Ln,Cn,Dn,Rn,Sn,$n,On,Mn,Pn,Vn,Fn,jn,Yn,qn,Gn,It=z(()=>{D();S();R();Ee();Ee();M={},Et=!1;_=Tn();_.endianness;_.hostname;_.loadavg;_.uptime;_.freemem;_.totalmem;_.cpus;_.type;_.release;_.networkInterfaces;_.getNetworkInterfaces;_.arch;_.platform;_.tmpdir;_.tmpDir;_.EOL;_.homedir;xn=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?"LE":"BE";_.endianness=function(){return xn};_.homedir=function(){return"/home"};_.version=function(){return""};_.arch=function(){return"x64"};_.totalmem=function(){return navigator.deviceMemory!==void 0?navigator.deviceMemory*(1<<30):2*(1<<30)};_.cpus=function(){return Array(navigator.hardwareConcurrency||0).fill({model:"",times:{}})};_.uptime=ae;_.constants={};Un=_.version,Nn=_.constants,kn=_.EOL,Ln=_.arch,Cn=_.cpus,Dn=_.endianness,Rn=_.freemem,Sn=_.getNetworkInterfaces,$n=_.homedir,On=_.hostname,Mn=_.loadavg,Pn=_.networkInterfaces,Vn=_.platform,Fn=_.release,jn=_.tmpDir,Yn=_.tmpdir,qn=_.totalmem,Gn=_.type});var At=xe((Xi,Kn)=>{Kn.exports={name:"dotenv",version:"17.3.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var Nt=xe((Hi,J)=>{D();S();R();var Oe=(Ce(),he(Le)),Ie=(vt(),he(wt)),Wn=(It(),he(Bt)),zn=(Ce(),he(Le)),Qn=At(),Me=Qn.version,_t=["\u{1F510} encrypt with Dotenvx: https://dotenvx.com","\u{1F510} prevent committing .env to code: https://dotenvx.com/precommit","\u{1F510} prevent building .env in docker: https://dotenvx.com/prebuild","\u{1F916} agentic secret storage: https://dotenvx.com/as2","\u26A1\uFE0F secrets for agents: https://dotenvx.com/as2","\u{1F6E1}\uFE0F auth for agents: https://vestauth.com","\u{1F6E0}\uFE0F run anywhere with `dotenvx run -- yourcommand`","\u2699\uFE0F specify custom .env file path with { path: '/custom/path/.env' }","\u2699\uFE0F enable debug logging with { debug: true }","\u2699\uFE0F override existing env vars with { override: true }","\u2699\uFE0F suppress all logs with { quiet: true }","\u2699\uFE0F write to custom object with { processEnv: myObject }","\u2699\uFE0F load multiple .env files with { path: ['.env.local', '.env'] }"];function Xn(){return _t[Math.floor(Math.random()*_t.length)]}function ce(o){return typeof o=="string"?!["false","0","no","off",""].includes(o.toLowerCase()):!!o}function Hn(){return $.stdout.isTTY}function Jn(o){return Hn()?`\x1B[2m${o}\x1B[0m`:o}var Zn=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function ei(o){let c={},m=o.toString();m=m.replace(/\r\n?/mg,`
|
|
3
3
|
`);let w;for(;(w=Zn.exec(m))!=null;){let g=w[1],f=w[2]||"";f=f.trim();let n=f[0];f=f.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(f=f.replace(/\\n/g,`
|
|
4
|
-
`),f=f.replace(/\\r/g,"\r")),c[g]=f}return c}function ri(o){o=o||{};let c=
|
|
4
|
+
`),f=f.replace(/\\r/g,"\r")),c[g]=f}return c}function ri(o){o=o||{};let c=Ut(o);o.path=c;let m=P.configDotenv(o);if(!m.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${c} for an unknown reason`);throw n.code="MISSING_DATA",n}let w=xt(o).split(","),g=w.length,f;for(let n=0;n<g;n++)try{let a=w[n].trim(),h=ni(m,a);f=P.decrypt(h.ciphertext,h.key);break}catch(a){if(n+1>=g)throw a}return P.parse(f)}function ti(o){console.error(`[dotenv@${Me}][WARN] ${o}`)}function de(o){console.log(`[dotenv@${Me}][DEBUG] ${o}`)}function Tt(o){console.log(`[dotenv@${Me}] ${o}`)}function xt(o){return o&&o.DOTENV_KEY&&o.DOTENV_KEY.length>0?o.DOTENV_KEY:$.env.DOTENV_KEY&&$.env.DOTENV_KEY.length>0?$.env.DOTENV_KEY:""}function ni(o,c){let m;try{m=new URL(c)}catch(a){if(a.code==="ERR_INVALID_URL"){let h=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw h.code="INVALID_DOTENV_KEY",h}throw a}let w=m.password;if(!w){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let g=m.searchParams.get("environment");if(!g){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let f=`DOTENV_VAULT_${g.toUpperCase()}`,n=o.parsed[f];if(!n){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${f} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:n,key:w}}function Ut(o){let c=null;if(o&&o.path&&o.path.length>0)if(Array.isArray(o.path))for(let m of o.path)Oe.existsSync(m)&&(c=m.endsWith(".vault")?m:`${m}.vault`);else c=o.path.endsWith(".vault")?o.path:`${o.path}.vault`;else c=Ie.resolve($.cwd(),".env.vault");return Oe.existsSync(c)?c:null}function bt(o){return o[0]==="~"?Ie.join(Wn.homedir(),o.slice(1)):o}function ii(o){let c=ce($.env.DOTENV_CONFIG_DEBUG||o&&o.debug),m=ce($.env.DOTENV_CONFIG_QUIET||o&&o.quiet);(c||!m)&&Tt("Loading env from encrypted .env.vault");let w=P._parseVault(o),g=$.env;return o&&o.processEnv!=null&&(g=o.processEnv),P.populate(g,w,o),{parsed:w}}function oi(o){let c=Ie.resolve($.cwd(),".env"),m="utf8",w=$.env;o&&o.processEnv!=null&&(w=o.processEnv);let g=ce(w.DOTENV_CONFIG_DEBUG||o&&o.debug),f=ce(w.DOTENV_CONFIG_QUIET||o&&o.quiet);o&&o.encoding?m=o.encoding:g&&de("No encoding is specified. UTF-8 is used by default");let n=[c];if(o&&o.path)if(!Array.isArray(o.path))n=[bt(o.path)];else{n=[];for(let y of o.path)n.push(bt(y))}let a,h={};for(let y of n)try{let p=P.parse(Oe.readFileSync(y,{encoding:m}));P.populate(h,p,o)}catch(p){g&&de(`Failed to load ${y} ${p.message}`),a=p}let v=P.populate(w,h,o);if(g=ce(w.DOTENV_CONFIG_DEBUG||g),f=ce(w.DOTENV_CONFIG_QUIET||f),g||!f){let y=Object.keys(v).length,p=[];for(let A of n)try{let d=Ie.relative($.cwd(),A);p.push(d)}catch(d){g&&de(`Failed to load ${A} ${d.message}`),a=d}Tt(`injecting env (${y}) from ${p.join(",")} ${Jn(`-- tip: ${Xn()}`)}`)}return a?{parsed:h,error:a}:{parsed:h}}function ui(o){if(xt(o).length===0)return P.configDotenv(o);let c=Ut(o);return c?P._configVault(o):(ti(`You set DOTENV_KEY but you are missing a .env.vault file at ${c}. Did you forget to build it?`),P.configDotenv(o))}function ai(o,c){let m=K.from(c.slice(-64),"hex"),w=K.from(o,"base64"),g=w.subarray(0,12),f=w.subarray(-16);w=w.subarray(12,-16);try{let n=zn.createDecipheriv("aes-256-gcm",m,g);return n.setAuthTag(f),`${n.update(w)}${n.final()}`}catch(n){let a=n instanceof RangeError,h=n.message==="Invalid key length",v=n.message==="Unsupported state or unable to authenticate data";if(a||h){let y=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw y.code="INVALID_DOTENV_KEY",y}else if(v){let y=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw y.code="DECRYPTION_FAILED",y}else throw n}}function si(o,c,m={}){let w=!!(m&&m.debug),g=!!(m&&m.override),f={};if(typeof c!="object"){let n=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw n.code="OBJECT_REQUIRED",n}for(let n of Object.keys(c))Object.prototype.hasOwnProperty.call(o,n)?(g===!0&&(o[n]=c[n],f[n]=c[n]),w&&de(g===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):(o[n]=c[n],f[n]=c[n]);return f}var P={configDotenv:oi,_configVault:ii,_parseVault:ri,config:ui,decrypt:ai,parse:ei,populate:si};J.exports.configDotenv=P.configDotenv;J.exports._configVault=P._configVault;J.exports._parseVault=P._parseVault;J.exports.config=P.config;J.exports.decrypt=P.decrypt;J.exports.parse=P.parse;J.exports.populate=P.populate;J.exports=P});var Ct=xe((ro,Lt)=>{"use strict";D();S();R();function kt(o){return o.replace(/\\\$/g,"$")}function ci(o,c,m){let w={...m,...c},g=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g,f=o,n,a=new Set;for(;(n=g.exec(f))!==null;){a.add(f);let[h,v,y]=n,p=v||y,A=/(:\+|\+|:-|-)/,d=p.match(A),B=d?d[0]:null,E=p.split(B),I,T,U=E.shift();if([":+","+"].includes(B)?(I=w[U]?E.join(B):"",T=null):(I=E.join(B),T=w[U]),T?a.has(T)?f=f.replace(h,I):f=f.replace(h,T):f=f.replace(h,I),f===m[U])break;g.lastIndex=0}return f}function li(o){let c={},m=$.env;o&&o.processEnv!=null&&(m=o.processEnv);for(let w in o.parsed){let g=o.parsed[w];m[w]&&m[w]!==g?g=m[w]:g=ci(g,m,c),o.parsed[w]=kt(g),c[w]=kt(g)}for(let w in o.parsed)m[w]=o.parsed[w];return o}Lt.exports.expand=li});var fi={};fe(fi,{config:()=>Ae.config,expand:()=>Dt.expand,parse:()=>Ae.parse});D();S();R();var Ae=He(Nt()),Dt=He(Ct());return he(fi);})();
|
|
5
5
|
/*! Bundled license information:
|
|
6
6
|
|
|
7
7
|
@jspm/core/nodelibs/browser/buffer.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { parse, expand };
|
|
5
|
-
export const parseAndExpand = (/** @type {string} */ env) =>
|
|
6
|
-
expand({ parsed: parse(env || '') }).parsed;
|
|
1
|
+
export { config, parse } from 'dotenv';
|
|
2
|
+
export { expand } from 'dotenv-expand';
|