import{bO as ii,bP as si}from"./Cvzsf6pb.js";var pe={},Ae={exports:{}},je={},Se={},pt;function oi(){if(pt)return Se;pt=1,Se.byteLength=o,Se.toByteArray=B,Se.fromByteArray=g;for(var i=[],f=[],a=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,y=u.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var b=w.indexOf("=");b===-1&&(b=R);var P=b===R?0:4-b%4;return[b,P]}function o(w){var R=l(w),b=R[0],P=R[1];return(b+P)*3/4-P}function p(w,R,b){return(R+b)*3/4-b}function B(w){var R,b=l(w),P=b[0],E=b[1],T=new a(p(w,P,E)),S=0,L=E>0?P-4:P,U;for(U=0;U>16&255,T[S++]=R>>8&255,T[S++]=R&255;return E===2&&(R=f[w.charCodeAt(U)]<<2|f[w.charCodeAt(U+1)]>>4,T[S++]=R&255),E===1&&(R=f[w.charCodeAt(U)]<<10|f[w.charCodeAt(U+1)]<<4|f[w.charCodeAt(U+2)]>>2,T[S++]=R>>8&255,T[S++]=R&255),T}function n(w){return i[w>>18&63]+i[w>>12&63]+i[w>>6&63]+i[w&63]}function h(w,R,b){for(var P,E=[],T=R;TL?L:S+T));return P===1?(R=w[b-1],E.push(i[R>>2]+i[R<<4&63]+"==")):P===2&&(R=(w[b-2]<<8)+w[b-1],E.push(i[R>>10]+i[R>>4&63]+i[R<<2&63]+"=")),E.join("")}return Se}var ve={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var dt;function ai(){return dt||(dt=1,ve.read=function(i,f,a,u,c){var y,l,o=c*8-u-1,p=(1<>1,n=-7,h=a?c-1:0,g=a?-1:1,w=i[f+h];for(h+=g,y=w&(1<<-n)-1,w>>=-n,n+=o;n>0;y=y*256+i[f+h],h+=g,n-=8);for(l=y&(1<<-n)-1,y>>=-n,n+=u;n>0;l=l*256+i[f+h],h+=g,n-=8);if(y===0)y=1-B;else{if(y===p)return l?NaN:(w?-1:1)*(1/0);l=l+Math.pow(2,u),y=y-B}return(w?-1:1)*l*Math.pow(2,y-u)},ve.write=function(i,f,a,u,c,y){var l,o,p,B=y*8-c-1,n=(1<>1,g=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:y-1,R=u?1:-1,b=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(o=isNaN(f)?1:0,l=n):(l=Math.floor(Math.log(f)/Math.LN2),f*(p=Math.pow(2,-l))<1&&(l--,p*=2),l+h>=1?f+=g/p:f+=g*Math.pow(2,1-h),f*p>=2&&(l++,p/=2),l+h>=n?(o=0,l=n):l+h>=1?(o=(f*p-1)*Math.pow(2,c),l=l+h):(o=f*Math.pow(2,h-1)*Math.pow(2,c),l=0));c>=8;i[a+w]=o&255,w+=R,o/=256,c-=8);for(l=l<0;i[a+w]=l&255,w+=R,l/=256,B-=8);i[a+w-R]|=b*128}),ve}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var mt;function $e(){return mt||(mt=1,function(i){const f=oi(),a=ai(),u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=o,i.SlowBuffer=T,i.INSPECT_MAX_BYTES=50;const c=2147483647;i.kMaxLength=c,o.TYPED_ARRAY_SUPPORT=y(),!o.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 y(){try{const 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(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function l(t){if(t>c)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(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 h(t)}return p(t,e,r)}o.poolSize=8192;function p(t,e,r){if(typeof t=="string")return g(t,e);if(ArrayBuffer.isView(t))return R(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(he(t,ArrayBuffer)||t&&he(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(t,SharedArrayBuffer)||t&&he(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');const s=t.valueOf&&t.valueOf();if(s!=null&&s!==t)return o.from(s,e,r);const d=P(t);if(d)return d;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return o.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)}o.from=function(t,e,r){return p(t,e,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function B(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 n(t,e,r){return B(t),t<=0?l(t):e!==void 0?typeof r=="string"?l(t).fill(e,r):l(t).fill(e):l(t)}o.alloc=function(t,e,r){return n(t,e,r)};function h(t){return B(t),l(t<0?0:E(t)|0)}o.allocUnsafe=function(t){return h(t)},o.allocUnsafeSlow=function(t){return h(t)};function g(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=S(t,e)|0;let s=l(r);const d=s.write(t,e);return d!==r&&(s=s.slice(0,d)),s}function w(t){const e=t.length<0?0:E(t.length)|0,r=l(e);for(let s=0;s=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return t|0}function T(t){return+t!=t&&(t=0),o.alloc(+t)}o.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==o.prototype},o.compare=function(e,r){if(he(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),he(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(e)||!o.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let s=e.length,d=r.length;for(let A=0,O=Math.min(s,d);Ad.length?(o.isBuffer(O)||(O=o.from(O)),O.copy(d,A)):Uint8Array.prototype.set.call(d,O,A);else if(o.isBuffer(O))O.copy(d,A);else throw new TypeError('"list" argument must be an Array of Buffers');A+=O.length}return d};function S(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||he(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);const r=t.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&r===0)return 0;let d=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return fe(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ht(t).length;default:if(d)return s?-1:fe(t).length;e=(""+e).toLowerCase(),d=!0}}o.byteLength=S;function L(t,e,r){let s=!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 I(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return C(this,e,r);case"latin1":case"binary":return m(this,e,r);case"base64":return H(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,r);default:if(s)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}o.prototype._isBuffer=!0;function U(t,e,r){const s=t[e];t[e]=t[r],t[r]=s}o.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(e+=" ... "),""},u&&(o.prototype[u]=o.prototype.inspect),o.prototype.compare=function(e,r,s,d,A){if(he(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.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),s===void 0&&(s=e?e.length:0),d===void 0&&(d=0),A===void 0&&(A=this.length),r<0||s>e.length||d<0||A>this.length)throw new RangeError("out of range index");if(d>=A&&r>=s)return 0;if(d>=A)return-1;if(r>=s)return 1;if(r>>>=0,s>>>=0,d>>>=0,A>>>=0,this===e)return 0;let O=A-d,Z=s-r;const te=Math.min(O,Z),re=this.slice(d,A),ne=e.slice(r,s);for(let ee=0;ee2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,qe(r)&&(r=d?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(d)return-1;r=t.length-1}else if(r<0)if(d)r=0;else return-1;if(typeof e=="string"&&(e=o.from(e,s)),o.isBuffer(e))return e.length===0?-1:G(t,e,r,s,d);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?d?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):G(t,[e],r,s,d);throw new TypeError("val must be string, number or Buffer")}function G(t,e,r,s,d){let A=1,O=t.length,Z=e.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(t.length<2||e.length<2)return-1;A=2,O/=2,Z/=2,r/=2}function te(ne,ee){return A===1?ne[ee]:ne.readUInt16BE(ee*A)}let re;if(d){let ne=-1;for(re=r;reO&&(r=O-Z),re=r;re>=0;re--){let ne=!0;for(let ee=0;eed&&(s=d)):s=d;const A=e.length;s>A/2&&(s=A/2);let O;for(O=0;O>>0,isFinite(s)?(s=s>>>0,d===void 0&&(d="utf8")):(d=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const A=this.length-r;if((s===void 0||s>A)&&(s=A),e.length>0&&(s<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");d||(d="utf8");let O=!1;for(;;)switch(d){case"hex":return N(this,e,r,s);case"utf8":case"utf-8":return M(this,e,r,s);case"ascii":case"latin1":case"binary":return W(this,e,r,s);case"base64":return Y(this,e,r,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,r,s);default:if(O)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),O=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(t,e,r){return e===0&&r===t.length?f.fromByteArray(t):f.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);const s=[];let d=e;for(;d239?4:A>223?3:A>191?2:1;if(d+Z<=r){let te,re,ne,ee;switch(Z){case 1:A<128&&(O=A);break;case 2:te=t[d+1],(te&192)===128&&(ee=(A&31)<<6|te&63,ee>127&&(O=ee));break;case 3:te=t[d+1],re=t[d+2],(te&192)===128&&(re&192)===128&&(ee=(A&15)<<12|(te&63)<<6|re&63,ee>2047&&(ee<55296||ee>57343)&&(O=ee));break;case 4:te=t[d+1],re=t[d+2],ne=t[d+3],(te&192)===128&&(re&192)===128&&(ne&192)===128&&(ee=(A&15)<<18|(te&63)<<12|(re&63)<<6|ne&63,ee>65535&&ee<1114112&&(O=ee))}}O===null?(O=65533,Z=1):O>65535&&(O-=65536,s.push(O>>>10&1023|55296),O=56320|O&1023),s.push(O),d+=Z}return q(s)}const v=4096;function q(t){const e=t.length;if(e<=v)return String.fromCharCode.apply(String,t);let r="",s=0;for(;ss)&&(r=s);let d="";for(let A=e;As&&(e=s),r<0?(r+=s,r<0&&(r=0)):r>s&&(r=s),rr)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(e,r,s){e=e>>>0,r=r>>>0,s||D(e,r,this.length);let d=this[e],A=1,O=0;for(;++O>>0,r=r>>>0,s||D(e,r,this.length);let d=this[e+--r],A=1;for(;r>0&&(A*=256);)d+=this[e+--r]*A;return d},o.prototype.readUint8=o.prototype.readUInt8=function(e,r){return e=e>>>0,r||D(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||D(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||D(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||D(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=me(function(e){e=e>>>0,X(e,"offset");const r=this[e],s=this[e+7];(r===void 0||s===void 0)&&z(e,this.length-8);const d=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,A=this[++e]+this[++e]*2**8+this[++e]*2**16+s*2**24;return BigInt(d)+(BigInt(A)<>>0,X(e,"offset");const r=this[e],s=this[e+7];(r===void 0||s===void 0)&&z(e,this.length-8);const d=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],A=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+s;return(BigInt(d)<>>0,r=r>>>0,s||D(e,r,this.length);let d=this[e],A=1,O=0;for(;++O=A&&(d-=Math.pow(2,8*r)),d},o.prototype.readIntBE=function(e,r,s){e=e>>>0,r=r>>>0,s||D(e,r,this.length);let d=r,A=1,O=this[e+--d];for(;d>0&&(A*=256);)O+=this[e+--d]*A;return A*=128,O>=A&&(O-=Math.pow(2,8*r)),O},o.prototype.readInt8=function(e,r){return e=e>>>0,r||D(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},o.prototype.readInt16LE=function(e,r){e=e>>>0,r||D(e,2,this.length);const s=this[e]|this[e+1]<<8;return s&32768?s|4294901760:s},o.prototype.readInt16BE=function(e,r){e=e>>>0,r||D(e,2,this.length);const s=this[e+1]|this[e]<<8;return s&32768?s|4294901760:s},o.prototype.readInt32LE=function(e,r){return e=e>>>0,r||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,r){return e=e>>>0,r||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=me(function(e){e=e>>>0,X(e,"offset");const r=this[e],s=this[e+7];(r===void 0||s===void 0)&&z(e,this.length-8);const d=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(s<<24);return(BigInt(d)<>>0,X(e,"offset");const r=this[e],s=this[e+7];(r===void 0||s===void 0)&&z(e,this.length-8);const d=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(d)<>>0,r||D(e,4,this.length),a.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,r){return e=e>>>0,r||D(e,4,this.length),a.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||D(e,8,this.length),a.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||D(e,8,this.length),a.read(this,e,!1,52,8)};function k(t,e,r,s,d,A){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>d||et.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,r,s,d){if(e=+e,r=r>>>0,s=s>>>0,!d){const Z=Math.pow(2,8*s)-1;k(this,e,r,s,Z,0)}let A=1,O=0;for(this[r]=e&255;++O>>0,s=s>>>0,!d){const Z=Math.pow(2,8*s)-1;k(this,e,r,s,Z,0)}let A=s-1,O=1;for(this[r+A]=e&255;--A>=0&&(O*=256);)this[r+A]=e/O&255;return r+s},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,r,s){return e=+e,r=r>>>0,s||k(this,e,r,1,255,0),this[r]=e&255,r+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,r,s){return e=+e,r=r>>>0,s||k(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,r,s){return e=+e,r=r>>>0,s||k(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,r,s){return e=+e,r=r>>>0,s||k(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},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,r,s){return e=+e,r=r>>>0,s||k(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 V(t,e,r,s,d){$(e,s,d,t,r,7);let A=Number(e&BigInt(4294967295));t[r++]=A,A=A>>8,t[r++]=A,A=A>>8,t[r++]=A,A=A>>8,t[r++]=A;let O=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=O,O=O>>8,t[r++]=O,O=O>>8,t[r++]=O,O=O>>8,t[r++]=O,r}function K(t,e,r,s,d){$(e,s,d,t,r,7);let A=Number(e&BigInt(4294967295));t[r+7]=A,A=A>>8,t[r+6]=A,A=A>>8,t[r+5]=A,A=A>>8,t[r+4]=A;let O=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=O,O=O>>8,t[r+2]=O,O=O>>8,t[r+1]=O,O=O>>8,t[r]=O,r+8}o.prototype.writeBigUInt64LE=me(function(e,r=0){return V(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=me(function(e,r=0){return K(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,r,s,d){if(e=+e,r=r>>>0,!d){const te=Math.pow(2,8*s-1);k(this,e,r,s,te-1,-te)}let A=0,O=1,Z=0;for(this[r]=e&255;++A>0)-Z&255;return r+s},o.prototype.writeIntBE=function(e,r,s,d){if(e=+e,r=r>>>0,!d){const te=Math.pow(2,8*s-1);k(this,e,r,s,te-1,-te)}let A=s-1,O=1,Z=0;for(this[r+A]=e&255;--A>=0&&(O*=256);)e<0&&Z===0&&this[r+A+1]!==0&&(Z=1),this[r+A]=(e/O>>0)-Z&255;return r+s},o.prototype.writeInt8=function(e,r,s){return e=+e,r=r>>>0,s||k(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},o.prototype.writeInt16LE=function(e,r,s){return e=+e,r=r>>>0,s||k(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},o.prototype.writeInt16BE=function(e,r,s){return e=+e,r=r>>>0,s||k(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},o.prototype.writeInt32LE=function(e,r,s){return e=+e,r=r>>>0,s||k(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},o.prototype.writeInt32BE=function(e,r,s){return e=+e,r=r>>>0,s||k(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},o.prototype.writeBigInt64LE=me(function(e,r=0){return V(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=me(function(e,r=0){return K(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(t,e,r,s,d,A){if(r+s>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Q(t,e,r,s,d){return e=+e,r=r>>>0,d||J(t,e,r,4),a.write(t,e,r,s,23,4),r+4}o.prototype.writeFloatLE=function(e,r,s){return Q(this,e,r,!0,s)},o.prototype.writeFloatBE=function(e,r,s){return Q(this,e,r,!1,s)};function ae(t,e,r,s,d){return e=+e,r=r>>>0,d||J(t,e,r,8),a.write(t,e,r,s,52,8),r+8}o.prototype.writeDoubleLE=function(e,r,s){return ae(this,e,r,!0,s)},o.prototype.writeDoubleBE=function(e,r,s){return ae(this,e,r,!1,s)},o.prototype.copy=function(e,r,s,d){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(s||(s=0),!d&&d!==0&&(d=this.length),r>=e.length&&(r=e.length),r||(r=0),d>0&&d=this.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),e.length-r>>0,s=s===void 0?this.length:s>>>0,e||(e=0);let A;if(typeof e=="number")for(A=r;A2**32?d=de(String(r)):typeof r=="bigint"&&(d=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(d=de(d)),d+="n"),s+=` It must be ${e}. Received ${d}`,s},RangeError);function de(t){let e="",r=t.length;const s=t[0]==="-"?1:0;for(;r>=s+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function we(t,e,r){X(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&z(e,t.length-(r+1))}function $(t,e,r,s,d,A){if(t>r||t= 0${O} and < 2${O} ** ${(A+1)*8}${O}`:Z=`>= -(2${O} ** ${(A+1)*8-1}${O}) and < 2 ** ${(A+1)*8-1}${O}`,new ue.ERR_OUT_OF_RANGE("value",Z,t)}we(s,d,A)}function X(t,e){if(typeof t!="number")throw new ue.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,r){throw Math.floor(t)!==t?(X(t,r),new ue.ERR_OUT_OF_RANGE("offset","an integer",t)):e<0?new ue.ERR_BUFFER_OUT_OF_BOUNDS:new ue.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}const ie=/[^+/0-9A-Za-z-_]/g;function oe(t){if(t=t.split("=")[0],t=t.trim().replace(ie,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function fe(t,e){e=e||1/0;let r;const s=t.length;let d=null;const A=[];for(let O=0;O55295&&r<57344){if(!d){if(r>56319){(e-=3)>-1&&A.push(239,191,189);continue}else if(O+1===s){(e-=3)>-1&&A.push(239,191,189);continue}d=r;continue}if(r<56320){(e-=3)>-1&&A.push(239,191,189),d=r;continue}r=(d-55296<<10|r-56320)+65536}else d&&(e-=3)>-1&&A.push(239,191,189);if(d=null,r<128){if((e-=1)<0)break;A.push(r)}else if(r<2048){if((e-=2)<0)break;A.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;A.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;A.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return A}function ei(t){const e=[];for(let r=0;r>8,d=r%256,A.push(d),A.push(s);return A}function ht(t){return f.toByteArray(oe(t))}function be(t,e,r,s){let d;for(d=0;d=e.length||d>=t.length);++d)e[d+r]=t[d];return d}function he(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function qe(t){return t!==t}const ti=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const s=r*16;for(let d=0;d<16;++d)e[s+d]=t[r]+t[d]}return e}();function me(t){return typeof BigInt>"u"?ni:t}function ni(){throw new Error("BigInt not supported")}}(je)),je}/*! safe-buffer. MIT License. Feross Aboukhadijeh */var yt;function Re(){return yt||(yt=1,function(i,f){var a=$e(),u=a.Buffer;function c(l,o){for(var p in l)o[p]=l[p]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?i.exports=a:(c(a,f),f.Buffer=y);function y(l,o,p){return u(l,o,p)}y.prototype=Object.create(u.prototype),c(u,y),y.from=function(l,o,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return u(l,o,p)},y.alloc=function(l,o,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var B=u(l);return o!==void 0?typeof p=="string"?B.fill(o,p):B.fill(o):B.fill(0),B},y.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return u(l)},y.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(l)}}(Ae,Ae.exports)),Ae.exports}const ui={},fi=Object.freeze(Object.defineProperty({__proto__:null,default:ui},Symbol.toStringTag,{value:"Module"})),Ee=ii(fi);var Ce={},Ue,Et;function ci(){return Et||(Et=1,Ue=function(f){return f&&typeof f=="object"&&typeof f.copy=="function"&&typeof f.fill=="function"&&typeof f.readUInt8=="function"}),Ue}var Te={exports:{}},gt;function li(){return gt||(gt=1,typeof Object.create=="function"?Te.exports=function(f,a){f.super_=a,f.prototype=Object.create(a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})}:Te.exports=function(f,a){f.super_=a;var u=function(){};u.prototype=a.prototype,f.prototype=new u,f.prototype.constructor=f}),Te.exports}var wt;function xe(){return wt||(wt=1,function(i){var f={},a=/%[sdj%]/g;i.format=function(m){if(!L(m)){for(var I=[],F=0;F=k)return J;switch(J){case"%s":return String(D[F++]);case"%d":return Number(D[F++]);case"%j":try{return JSON.stringify(D[F++])}catch{return"[Circular]"}default:return J}}),K=D[F];F=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),P(I)?F.showHidden=I:I&&i._extend(F,I),_(F.showHidden)&&(F.showHidden=!1),_(F.depth)&&(F.depth=2),_(F.colors)&&(F.colors=!1),_(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=l),B(F,m,F.depth)}i.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(m,I){var F=y.styles[I];return F?"\x1B["+y.colors[F][0]+"m"+m+"\x1B["+y.colors[F][1]+"m":m}function o(m,I){return m}function p(m){var I={};return m.forEach(function(F,D){I[F]=!0}),I}function B(m,I,F){if(m.customInspect&&I&&Y(I.inspect)&&I.inspect!==i.inspect&&!(I.constructor&&I.constructor.prototype===I)){var D=I.inspect(F,m);return L(D)||(D=B(m,D,F)),D}var k=n(m,I);if(k)return k;var V=Object.keys(I),K=p(V);if(m.showHidden&&(V=Object.getOwnPropertyNames(I)),W(I)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return h(I);if(V.length===0){if(Y(I)){var J=I.name?": "+I.name:"";return m.stylize("[Function"+J+"]","special")}if(G(I))return m.stylize(RegExp.prototype.toString.call(I),"regexp");if(M(I))return m.stylize(Date.prototype.toString.call(I),"date");if(W(I))return h(I)}var Q="",ae=!1,ue=["{","}"];if(b(I)&&(ae=!0,ue=["[","]"]),Y(I)){var ye=I.name?": "+I.name:"";Q=" [Function"+ye+"]"}if(G(I)&&(Q=" "+RegExp.prototype.toString.call(I)),M(I)&&(Q=" "+Date.prototype.toUTCString.call(I)),W(I)&&(Q=" "+h(I)),V.length===0&&(!ae||I.length==0))return ue[0]+Q+ue[1];if(F<0)return G(I)?m.stylize(RegExp.prototype.toString.call(I),"regexp"):m.stylize("[Object]","special");m.seen.push(I);var de;return ae?de=g(m,I,F,K,V):de=V.map(function(we){return w(m,I,F,K,we,ae)}),m.seen.pop(),R(de,Q,ue)}function n(m,I){if(_(I))return m.stylize("undefined","undefined");if(L(I)){var F="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return m.stylize(F,"string")}if(S(I))return m.stylize(""+I,"number");if(P(I))return m.stylize(""+I,"boolean");if(E(I))return m.stylize("null","null")}function h(m){return"["+Error.prototype.toString.call(m)+"]"}function g(m,I,F,D,k){for(var V=[],K=0,J=I.length;K-1&&(V?J=J.split(` `).map(function(ae){return" "+ae}).join(` `).substr(2):J=` `+J.split(` `).map(function(ae){return" "+ae}).join(` `))):J=m.stylize("[Circular]","special")),_(K)){if(V&&k.match(/^\d+$/))return J;K=JSON.stringify(""+k),K.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(K=K.substr(1,K.length-2),K=m.stylize(K,"name")):(K=K.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),K=m.stylize(K,"string"))}return K+": "+J}function R(m,I,F){var D=m.reduce(function(k,V){return V.indexOf(` `)>=0,k+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return D>60?F[0]+(I===""?"":I+` `)+" "+m.join(`, `)+" "+F[1]:F[0]+I+" "+m.join(", ")+" "+F[1]}function b(m){return Array.isArray(m)}i.isArray=b;function P(m){return typeof m=="boolean"}i.isBoolean=P;function E(m){return m===null}i.isNull=E;function T(m){return m==null}i.isNullOrUndefined=T;function S(m){return typeof m=="number"}i.isNumber=S;function L(m){return typeof m=="string"}i.isString=L;function U(m){return typeof m=="symbol"}i.isSymbol=U;function _(m){return m===void 0}i.isUndefined=_;function G(m){return N(m)&&H(m)==="[object RegExp]"}i.isRegExp=G;function N(m){return typeof m=="object"&&m!==null}i.isObject=N;function M(m){return N(m)&&H(m)==="[object Date]"}i.isDate=M;function W(m){return N(m)&&(H(m)==="[object Error]"||m instanceof Error)}i.isError=W;function Y(m){return typeof m=="function"}i.isFunction=Y;function j(m){return m===null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||typeof m=="symbol"||typeof m>"u"}i.isPrimitive=j,i.isBuffer=ci();function H(m){return Object.prototype.toString.call(m)}function x(m){return m<10?"0"+m.toString(10):m.toString(10)}var v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var m=new Date,I=[x(m.getHours()),x(m.getMinutes()),x(m.getSeconds())].join(":");return[m.getDate(),v[m.getMonth()],I].join(" ")}i.log=function(){console.log("%s - %s",q(),i.format.apply(i,arguments))},i.inherits=li(),i._extend=function(m,I){if(!I||!N(I))return m;for(var F=Object.keys(I),D=F.length;D--;)m[F[D]]=I[F[D]];return m};function C(m,I){return Object.prototype.hasOwnProperty.call(m,I)}}(Ce)),Ce}var De,St;function Gn(){if(St)return De;St=1;var i=Re().Buffer,f=Ee,a=xe();function u(c){if(this.buffer=null,this.writable=!0,this.readable=!0,!c)return this.buffer=i.alloc(0),this;if(typeof c.pipe=="function")return this.buffer=i.alloc(0),c.pipe(this),this;if(c.length||typeof c=="object")return this.buffer=c,this.writable=!1,process.nextTick((function(){this.emit("end",c),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof c+")")}return a.inherits(u,f),u.prototype.write=function(y){this.buffer=i.concat([this.buffer,i.from(y)]),this.emit("data",y)},u.prototype.end=function(y){y&&this.write(y),this.emit("end",y),this.emit("close"),this.writable=!1,this.readable=!1},De=u,De}var Ge,Rt;function hi(){if(Rt)return Ge;Rt=1;var i=$e().Buffer,f=$e().SlowBuffer;Ge=a;function a(y,l){if(!i.isBuffer(y)||!i.isBuffer(l)||y.length!==l.length)return!1;for(var o=0,p=0;p=a;return T&&--E,E}function w(R,b){R=n(R);var P=f(b),E=R.length;if(E!==P*2)throw new TypeError('"'+b+'" signatures must be "'+P*2+'" bytes, saw "'+E+'"');var T=g(R,0,P),S=g(R,P,R.length),L=P-T,U=P-S,_=2+L+1+1+U,G=_0)return l(n);if(g==="number"&&isFinite(n))return h.long?p(n):o(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function l(n){if(n=String(n),!(n.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(h){var g=parseFloat(h[1]),w=(h[2]||"ms").toLowerCase();switch(w){case"years":case"year":case"yrs":case"yr":case"y":return g*y;case"weeks":case"week":case"w":return g*c;case"days":case"day":case"d":return g*u;case"hours":case"hour":case"hrs":case"hr":case"h":return g*a;case"minutes":case"minute":case"mins":case"min":case"m":return g*f;case"seconds":case"second":case"secs":case"sec":case"s":return g*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function o(n){var h=Math.abs(n);return h>=u?Math.round(n/u)+"d":h>=a?Math.round(n/a)+"h":h>=f?Math.round(n/f)+"m":h>=i?Math.round(n/i)+"s":n+"ms"}function p(n){var h=Math.abs(n);return h>=u?B(n,h,u,"day"):h>=a?B(n,h,a,"hour"):h>=f?B(n,h,f,"minute"):h>=i?B(n,h,i,"second"):n+" ms"}function B(n,h,g,w){var R=h>=g*1.5;return Math.round(n/g)+" "+w+(R?"s":"")}return Ze}var Qe,Ft;function Kn(){if(Ft)return Qe;Ft=1;var i=Ei();return Qe=function(f,a){var u=a||Math.floor(Date.now()/1e3);if(typeof f=="string"){var c=i(f);return typeof c>"u"?void 0:Math.floor(u+c/1e3)}else return typeof f=="number"?u+f:void 0},Qe}var Be={exports:{}},er,Pt;function Oe(){if(Pt)return er;Pt=1;const i="2.0.0",f=256,a=Number.MAX_SAFE_INTEGER||9007199254740991,u=16,c=f-6;return er={MAX_LENGTH:f,MAX_SAFE_COMPONENT_LENGTH:u,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:a,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:i,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},er}var rr,qt;function Ne(){if(qt)return rr;qt=1;var i={};return rr=typeof process=="object"&&i&&i.NODE_DEBUG&&/\bsemver\b/i.test(i.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{},rr}var jt;function Ie(){return jt||(jt=1,function(i,f){const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:u,MAX_LENGTH:c}=Oe(),y=Ne();f=i.exports={};const l=f.re=[],o=f.safeRe=[],p=f.src=[],B=f.safeSrc=[],n=f.t={};let h=0;const g="[a-zA-Z0-9-]",w=[["\\s",1],["\\d",c],[g,u]],R=P=>{for(const[E,T]of w)P=P.split(`${E}*`).join(`${E}{0,${T}}`).split(`${E}+`).join(`${E}{1,${T}}`);return P},b=(P,E,T)=>{const S=R(E),L=h++;y(P,L,E),n[P]=L,p[L]=E,B[L]=S,l[L]=new RegExp(E,T?"g":void 0),o[L]=new RegExp(S,T?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`),b("MAINVERSION",`(${p[n.NUMERICIDENTIFIER]})\\.(${p[n.NUMERICIDENTIFIER]})\\.(${p[n.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${p[n.NUMERICIDENTIFIERLOOSE]})\\.(${p[n.NUMERICIDENTIFIERLOOSE]})\\.(${p[n.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${p[n.NUMERICIDENTIFIER]}|${p[n.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${p[n.NUMERICIDENTIFIERLOOSE]}|${p[n.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${p[n.PRERELEASEIDENTIFIER]}(?:\\.${p[n.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${p[n.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[n.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${g}+`),b("BUILD",`(?:\\+(${p[n.BUILDIDENTIFIER]}(?:\\.${p[n.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${p[n.MAINVERSION]}${p[n.PRERELEASE]}?${p[n.BUILD]}?`),b("FULL",`^${p[n.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${p[n.MAINVERSIONLOOSE]}${p[n.PRERELEASELOOSE]}?${p[n.BUILD]}?`),b("LOOSE",`^${p[n.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${p[n.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${p[n.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${p[n.XRANGEIDENTIFIER]})(?:\\.(${p[n.XRANGEIDENTIFIER]})(?:\\.(${p[n.XRANGEIDENTIFIER]})(?:${p[n.PRERELEASE]})?${p[n.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${p[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[n.XRANGEIDENTIFIERLOOSE]})(?:${p[n.PRERELEASELOOSE]})?${p[n.BUILD]}?)?)?`),b("XRANGE",`^${p[n.GTLT]}\\s*${p[n.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${p[n.GTLT]}\\s*${p[n.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?`),b("COERCE",`${p[n.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",p[n.COERCEPLAIN]+`(?:${p[n.PRERELEASE]})?(?:${p[n.BUILD]})?(?:$|[^\\d])`),b("COERCERTL",p[n.COERCE],!0),b("COERCERTLFULL",p[n.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${p[n.LONETILDE]}\\s+`,!0),f.tildeTrimReplace="$1~",b("TILDE",`^${p[n.LONETILDE]}${p[n.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${p[n.LONETILDE]}${p[n.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${p[n.LONECARET]}\\s+`,!0),f.caretTrimReplace="$1^",b("CARET",`^${p[n.LONECARET]}${p[n.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${p[n.LONECARET]}${p[n.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${p[n.GTLT]}\\s*(${p[n.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${p[n.GTLT]}\\s*(${p[n.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${p[n.GTLT]}\\s*(${p[n.LOOSEPLAIN]}|${p[n.XRANGEPLAIN]})`,!0),f.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${p[n.XRANGEPLAIN]})\\s+-\\s+(${p[n.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${p[n.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[n.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Be,Be.exports)),Be.exports}var tr,Ct;function st(){if(Ct)return tr;Ct=1;const i=Object.freeze({loose:!0}),f=Object.freeze({});return tr=u=>u?typeof u!="object"?i:u:f,tr}var nr,Ut;function Jn(){if(Ut)return nr;Ut=1;const i=/^[0-9]+$/,f=(u,c)=>{const y=i.test(u),l=i.test(c);return y&&l&&(u=+u,c=+c),u===c?0:y&&!l?-1:l&&!y?1:uf(c,u)},nr}var ir,Dt;function se(){if(Dt)return ir;Dt=1;const i=Ne(),{MAX_LENGTH:f,MAX_SAFE_INTEGER:a}=Oe(),{safeRe:u,safeSrc:c,t:y}=Ie(),l=st(),{compareIdentifiers:o}=Jn();class p{constructor(n,h){if(h=l(h),n instanceof p){if(n.loose===!!h.loose&&n.includePrerelease===!!h.includePrerelease)return n;n=n.version}else if(typeof n!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof n}".`);if(n.length>f)throw new TypeError(`version is longer than ${f} characters`);i("SemVer",n,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;const g=n.trim().match(h.loose?u[y.LOOSE]:u[y.FULL]);if(!g)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+g[1],this.minor=+g[2],this.patch=+g[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");g[4]?this.prerelease=g[4].split(".").map(w=>{if(/^[0-9]+$/.test(w)){const R=+w;if(R>=0&&R=0;)typeof this.prerelease[R]=="number"&&(this.prerelease[R]++,R=-2);if(R===-1){if(h===this.prerelease.join(".")&&g===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(w)}}if(h){let R=[h,w];g===!1&&(R=[h]),o(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=R):this.prerelease=R}break}default:throw new Error(`invalid increment argument: ${n}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ir=p,ir}var sr,Gt;function ge(){if(Gt)return sr;Gt=1;const i=se();return sr=(a,u,c=!1)=>{if(a instanceof i)return a;try{return new i(a,u)}catch(y){if(!c)return null;throw y}},sr}var or,kt;function gi(){if(kt)return or;kt=1;const i=ge();return or=(a,u)=>{const c=i(a,u);return c?c.version:null},or}var ar,Mt;function wi(){if(Mt)return ar;Mt=1;const i=ge();return ar=(a,u)=>{const c=i(a.trim().replace(/^[=v]+/,""),u);return c?c.version:null},ar}var ur,Vt;function Si(){if(Vt)return ur;Vt=1;const i=se();return ur=(a,u,c,y,l)=>{typeof c=="string"&&(l=y,y=c,c=void 0);try{return new i(a instanceof i?a.version:a,c).inc(u,y,l).version}catch{return null}},ur}var fr,Ht;function Ri(){if(Ht)return fr;Ht=1;const i=ge();return fr=(a,u)=>{const c=i(a,null,!0),y=i(u,null,!0),l=c.compare(y);if(l===0)return null;const o=l>0,p=o?c:y,B=o?y:c,n=!!p.prerelease.length;if(!!B.prerelease.length&&!n){if(!B.patch&&!B.minor)return"major";if(B.compareMain(p)===0)return B.minor&&!B.patch?"minor":"patch"}const g=n?"pre":"";return c.major!==y.major?g+"major":c.minor!==y.minor?g+"minor":c.patch!==y.patch?g+"patch":"prerelease"},fr}var cr,Xt;function Ii(){if(Xt)return cr;Xt=1;const i=se();return cr=(a,u)=>new i(a,u).major,cr}var lr,Kt;function bi(){if(Kt)return lr;Kt=1;const i=se();return lr=(a,u)=>new i(a,u).minor,lr}var hr,Jt;function Ai(){if(Jt)return hr;Jt=1;const i=se();return hr=(a,u)=>new i(a,u).patch,hr}var pr,zt;function vi(){if(zt)return pr;zt=1;const i=ge();return pr=(a,u)=>{const c=i(a,u);return c&&c.prerelease.length?c.prerelease:null},pr}var dr,Wt;function ce(){if(Wt)return dr;Wt=1;const i=se();return dr=(a,u,c)=>new i(a,c).compare(new i(u,c)),dr}var mr,Yt;function Ti(){if(Yt)return mr;Yt=1;const i=ce();return mr=(a,u,c)=>i(u,a,c),mr}var yr,Zt;function Bi(){if(Zt)return yr;Zt=1;const i=ce();return yr=(a,u)=>i(a,u,!0),yr}var Er,Qt;function ot(){if(Qt)return Er;Qt=1;const i=se();return Er=(a,u,c)=>{const y=new i(a,c),l=new i(u,c);return y.compare(l)||y.compareBuild(l)},Er}var gr,en;function $i(){if(en)return gr;en=1;const i=ot();return gr=(a,u)=>a.sort((c,y)=>i(c,y,u)),gr}var wr,rn;function xi(){if(rn)return wr;rn=1;const i=ot();return wr=(a,u)=>a.sort((c,y)=>i(y,c,u)),wr}var Sr,tn;function _e(){if(tn)return Sr;tn=1;const i=ce();return Sr=(a,u,c)=>i(a,u,c)>0,Sr}var Rr,nn;function at(){if(nn)return Rr;nn=1;const i=ce();return Rr=(a,u,c)=>i(a,u,c)<0,Rr}var Ir,sn;function zn(){if(sn)return Ir;sn=1;const i=ce();return Ir=(a,u,c)=>i(a,u,c)===0,Ir}var br,on;function Wn(){if(on)return br;on=1;const i=ce();return br=(a,u,c)=>i(a,u,c)!==0,br}var Ar,an;function ut(){if(an)return Ar;an=1;const i=ce();return Ar=(a,u,c)=>i(a,u,c)>=0,Ar}var vr,un;function ft(){if(un)return vr;un=1;const i=ce();return vr=(a,u,c)=>i(a,u,c)<=0,vr}var Tr,fn;function Yn(){if(fn)return Tr;fn=1;const i=zn(),f=Wn(),a=_e(),u=ut(),c=at(),y=ft();return Tr=(o,p,B,n)=>{switch(p){case"===":return typeof o=="object"&&(o=o.version),typeof B=="object"&&(B=B.version),o===B;case"!==":return typeof o=="object"&&(o=o.version),typeof B=="object"&&(B=B.version),o!==B;case"":case"=":case"==":return i(o,B,n);case"!=":return f(o,B,n);case">":return a(o,B,n);case">=":return u(o,B,n);case"<":return c(o,B,n);case"<=":return y(o,B,n);default:throw new TypeError(`Invalid operator: ${p}`)}},Tr}var Br,cn;function Li(){if(cn)return Br;cn=1;const i=se(),f=ge(),{safeRe:a,t:u}=Ie();return Br=(y,l)=>{if(y instanceof i)return y;if(typeof y=="number"&&(y=String(y)),typeof y!="string")return null;l=l||{};let o=null;if(!l.rtl)o=y.match(l.includePrerelease?a[u.COERCEFULL]:a[u.COERCE]);else{const w=l.includePrerelease?a[u.COERCERTLFULL]:a[u.COERCERTL];let R;for(;(R=w.exec(y))&&(!o||o.index+o[0].length!==y.length);)(!o||R.index+R[0].length!==o.index+o[0].length)&&(o=R),w.lastIndex=R.index+R[1].length+R[2].length;w.lastIndex=-1}if(o===null)return null;const p=o[2],B=o[3]||"0",n=o[4]||"0",h=l.includePrerelease&&o[5]?`-${o[5]}`:"",g=l.includePrerelease&&o[6]?`+${o[6]}`:"";return f(`${p}.${B}.${n}${h}${g}`,l)},Br}var $r,ln;function Oi(){if(ln)return $r;ln=1;class i{constructor(){this.max=1e3,this.map=new Map}get(a){const u=this.map.get(a);if(u!==void 0)return this.map.delete(a),this.map.set(a,u),u}delete(a){return this.map.delete(a)}set(a,u){if(!this.delete(a)&&u!==void 0){if(this.map.size>=this.max){const y=this.map.keys().next().value;this.delete(y)}this.map.set(a,u)}return this}}return $r=i,$r}var xr,hn;function le(){if(hn)return xr;hn=1;const i=/\s+/g;class f{constructor(v,q){if(q=c(q),v instanceof f)return v.loose===!!q.loose&&v.includePrerelease===!!q.includePrerelease?v:new f(v.raw,q);if(v instanceof y)return this.raw=v.value,this.set=[[v]],this.formatted=void 0,this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=v.trim().replace(i," "),this.set=this.raw.split("||").map(C=>this.parseRange(C.trim())).filter(C=>C.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const C=this.set[0];if(this.set=this.set.filter(m=>!b(m[0])),this.set.length===0)this.set=[C];else if(this.set.length>1){for(const m of this.set)if(m.length===1&&P(m[0])){this.set=[m];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let v=0;v0&&(this.formatted+="||");const q=this.set[v];for(let C=0;C0&&(this.formatted+=" "),this.formatted+=q[C].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(v){const C=((this.options.includePrerelease&&w)|(this.options.loose&&R))+":"+v,m=u.get(C);if(m)return m;const I=this.options.loose,F=I?p[B.HYPHENRANGELOOSE]:p[B.HYPHENRANGE];v=v.replace(F,j(this.options.includePrerelease)),l("hyphen replace",v),v=v.replace(p[B.COMPARATORTRIM],n),l("comparator trim",v),v=v.replace(p[B.TILDETRIM],h),l("tilde trim",v),v=v.replace(p[B.CARETTRIM],g),l("caret trim",v);let D=v.split(" ").map(J=>T(J,this.options)).join(" ").split(/\s+/).map(J=>Y(J,this.options));I&&(D=D.filter(J=>(l("loose invalid filter",J,this.options),!!J.match(p[B.COMPARATORLOOSE])))),l("range list",D);const k=new Map,V=D.map(J=>new y(J,this.options));for(const J of V){if(b(J))return[J];k.set(J.value,J)}k.size>1&&k.has("")&&k.delete("");const K=[...k.values()];return u.set(C,K),K}intersects(v,q){if(!(v instanceof f))throw new TypeError("a Range is required");return this.set.some(C=>E(C,q)&&v.set.some(m=>E(m,q)&&C.every(I=>m.every(F=>I.intersects(F,q)))))}test(v){if(!v)return!1;if(typeof v=="string")try{v=new o(v,this.options)}catch{return!1}for(let q=0;qx.value==="<0.0.0-0",P=x=>x.value==="",E=(x,v)=>{let q=!0;const C=x.slice();let m=C.pop();for(;q&&C.length;)q=C.every(I=>m.intersects(I,v)),m=C.pop();return q},T=(x,v)=>(l("comp",x,v),x=_(x,v),l("caret",x),x=L(x,v),l("tildes",x),x=N(x,v),l("xrange",x),x=W(x,v),l("stars",x),x),S=x=>!x||x.toLowerCase()==="x"||x==="*",L=(x,v)=>x.trim().split(/\s+/).map(q=>U(q,v)).join(" "),U=(x,v)=>{const q=v.loose?p[B.TILDELOOSE]:p[B.TILDE];return x.replace(q,(C,m,I,F,D)=>{l("tilde",x,C,m,I,F,D);let k;return S(m)?k="":S(I)?k=`>=${m}.0.0 <${+m+1}.0.0-0`:S(F)?k=`>=${m}.${I}.0 <${m}.${+I+1}.0-0`:D?(l("replaceTilde pr",D),k=`>=${m}.${I}.${F}-${D} <${m}.${+I+1}.0-0`):k=`>=${m}.${I}.${F} <${m}.${+I+1}.0-0`,l("tilde return",k),k})},_=(x,v)=>x.trim().split(/\s+/).map(q=>G(q,v)).join(" "),G=(x,v)=>{l("caret",x,v);const q=v.loose?p[B.CARETLOOSE]:p[B.CARET],C=v.includePrerelease?"-0":"";return x.replace(q,(m,I,F,D,k)=>{l("caret",x,m,I,F,D,k);let V;return S(I)?V="":S(F)?V=`>=${I}.0.0${C} <${+I+1}.0.0-0`:S(D)?I==="0"?V=`>=${I}.${F}.0${C} <${I}.${+F+1}.0-0`:V=`>=${I}.${F}.0${C} <${+I+1}.0.0-0`:k?(l("replaceCaret pr",k),I==="0"?F==="0"?V=`>=${I}.${F}.${D}-${k} <${I}.${F}.${+D+1}-0`:V=`>=${I}.${F}.${D}-${k} <${I}.${+F+1}.0-0`:V=`>=${I}.${F}.${D}-${k} <${+I+1}.0.0-0`):(l("no pr"),I==="0"?F==="0"?V=`>=${I}.${F}.${D}${C} <${I}.${F}.${+D+1}-0`:V=`>=${I}.${F}.${D}${C} <${I}.${+F+1}.0-0`:V=`>=${I}.${F}.${D} <${+I+1}.0.0-0`),l("caret return",V),V})},N=(x,v)=>(l("replaceXRanges",x,v),x.split(/\s+/).map(q=>M(q,v)).join(" ")),M=(x,v)=>{x=x.trim();const q=v.loose?p[B.XRANGELOOSE]:p[B.XRANGE];return x.replace(q,(C,m,I,F,D,k)=>{l("xRange",x,C,m,I,F,D,k);const V=S(I),K=V||S(F),J=K||S(D),Q=J;return m==="="&&Q&&(m=""),k=v.includePrerelease?"-0":"",V?m===">"||m==="<"?C="<0.0.0-0":C="*":m&&Q?(K&&(F=0),D=0,m===">"?(m=">=",K?(I=+I+1,F=0,D=0):(F=+F+1,D=0)):m==="<="&&(m="<",K?I=+I+1:F=+F+1),m==="<"&&(k="-0"),C=`${m+I}.${F}.${D}${k}`):K?C=`>=${I}.0.0${k} <${+I+1}.0.0-0`:J&&(C=`>=${I}.${F}.0${k} <${I}.${+F+1}.0-0`),l("xRange return",C),C})},W=(x,v)=>(l("replaceStars",x,v),x.trim().replace(p[B.STAR],"")),Y=(x,v)=>(l("replaceGTE0",x,v),x.trim().replace(p[v.includePrerelease?B.GTE0PRE:B.GTE0],"")),j=x=>(v,q,C,m,I,F,D,k,V,K,J,Q)=>(S(C)?q="":S(m)?q=`>=${C}.0.0${x?"-0":""}`:S(I)?q=`>=${C}.${m}.0${x?"-0":""}`:F?q=`>=${q}`:q=`>=${q}${x?"-0":""}`,S(V)?k="":S(K)?k=`<${+V+1}.0.0-0`:S(J)?k=`<${V}.${+K+1}.0-0`:Q?k=`<=${V}.${K}.${J}-${Q}`:x?k=`<${V}.${K}.${+J+1}-0`:k=`<=${k}`,`${q} ${k}`.trim()),H=(x,v,q)=>{for(let C=0;C0){const m=x[C].semver;if(m.major===v.major&&m.minor===v.minor&&m.patch===v.patch)return!0}return!1}return!0};return xr}var Lr,pn;function Fe(){if(pn)return Lr;pn=1;const i=Symbol("SemVer ANY");class f{static get ANY(){return i}constructor(n,h){if(h=a(h),n instanceof f){if(n.loose===!!h.loose)return n;n=n.value}n=n.trim().split(/\s+/).join(" "),l("comparator",n,h),this.options=h,this.loose=!!h.loose,this.parse(n),this.semver===i?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(n){const h=this.options.loose?u[c.COMPARATORLOOSE]:u[c.COMPARATOR],g=n.match(h);if(!g)throw new TypeError(`Invalid comparator: ${n}`);this.operator=g[1]!==void 0?g[1]:"",this.operator==="="&&(this.operator=""),g[2]?this.semver=new o(g[2],this.options.loose):this.semver=i}toString(){return this.value}test(n){if(l("Comparator.test",n,this.options.loose),this.semver===i||n===i)return!0;if(typeof n=="string")try{n=new o(n,this.options)}catch{return!1}return y(n,this.operator,this.semver,this.options)}intersects(n,h){if(!(n instanceof f))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new p(n.value,h).test(this.value):n.operator===""?n.value===""?!0:new p(this.value,h).test(n.semver):(h=a(h),h.includePrerelease&&(this.value==="<0.0.0-0"||n.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||n.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&n.operator.startsWith(">")||this.operator.startsWith("<")&&n.operator.startsWith("<")||this.semver.version===n.semver.version&&this.operator.includes("=")&&n.operator.includes("=")||y(this.semver,"<",n.semver,h)&&this.operator.startsWith(">")&&n.operator.startsWith("<")||y(this.semver,">",n.semver,h)&&this.operator.startsWith("<")&&n.operator.startsWith(">")))}}Lr=f;const a=st(),{safeRe:u,t:c}=Ie(),y=Yn(),l=Ne(),o=se(),p=le();return Lr}var Or,dn;function Pe(){if(dn)return Or;dn=1;const i=le();return Or=(a,u,c)=>{try{u=new i(u,c)}catch{return!1}return u.test(a)},Or}var Nr,mn;function Ni(){if(mn)return Nr;mn=1;const i=le();return Nr=(a,u)=>new i(a,u).set.map(c=>c.map(y=>y.value).join(" ").trim().split(" ")),Nr}var _r,yn;function _i(){if(yn)return _r;yn=1;const i=se(),f=le();return _r=(u,c,y)=>{let l=null,o=null,p=null;try{p=new f(c,y)}catch{return null}return u.forEach(B=>{p.test(B)&&(!l||o.compare(B)===-1)&&(l=B,o=new i(l,y))}),l},_r}var Fr,En;function Fi(){if(En)return Fr;En=1;const i=se(),f=le();return Fr=(u,c,y)=>{let l=null,o=null,p=null;try{p=new f(c,y)}catch{return null}return u.forEach(B=>{p.test(B)&&(!l||o.compare(B)===1)&&(l=B,o=new i(l,y))}),l},Fr}var Pr,gn;function Pi(){if(gn)return Pr;gn=1;const i=se(),f=le(),a=_e();return Pr=(c,y)=>{c=new f(c,y);let l=new i("0.0.0");if(c.test(l)||(l=new i("0.0.0-0"),c.test(l)))return l;l=null;for(let o=0;o{const h=new i(n.semver.version);switch(n.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!B||a(h,B))&&(B=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${n.operator}`)}}),B&&(!l||a(l,B))&&(l=B)}return l&&c.test(l)?l:null},Pr}var qr,wn;function qi(){if(wn)return qr;wn=1;const i=le();return qr=(a,u)=>{try{return new i(a,u).range||"*"}catch{return null}},qr}var jr,Sn;function ct(){if(Sn)return jr;Sn=1;const i=se(),f=Fe(),{ANY:a}=f,u=le(),c=Pe(),y=_e(),l=at(),o=ft(),p=ut();return jr=(n,h,g,w)=>{n=new i(n,w),h=new u(h,w);let R,b,P,E,T;switch(g){case">":R=y,b=o,P=l,E=">",T=">=";break;case"<":R=l,b=p,P=y,E="<",T="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(c(n,h,w))return!1;for(let S=0;S{G.semver===a&&(G=new f(">=0.0.0")),U=U||G,_=_||G,R(G.semver,U.semver,w)?U=G:P(G.semver,_.semver,w)&&(_=G)}),U.operator===E||U.operator===T||(!_.operator||_.operator===E)&&b(n,_.semver))return!1;if(_.operator===T&&P(n,_.semver))return!1}return!0},jr}var Cr,Rn;function ji(){if(Rn)return Cr;Rn=1;const i=ct();return Cr=(a,u,c)=>i(a,u,">",c),Cr}var Ur,In;function Ci(){if(In)return Ur;In=1;const i=ct();return Ur=(a,u,c)=>i(a,u,"<",c),Ur}var Dr,bn;function Ui(){if(bn)return Dr;bn=1;const i=le();return Dr=(a,u,c)=>(a=new i(a,c),u=new i(u,c),a.intersects(u,c)),Dr}var Gr,An;function Di(){if(An)return Gr;An=1;const i=Pe(),f=ce();return Gr=(a,u,c)=>{const y=[];let l=null,o=null;const p=a.sort((g,w)=>f(g,w,c));for(const g of p)i(g,u,c)?(o=g,l||(l=g)):(o&&y.push([l,o]),o=null,l=null);l&&y.push([l,null]);const B=[];for(const[g,w]of y)g===w?B.push(g):!w&&g===p[0]?B.push("*"):w?g===p[0]?B.push(`<=${w}`):B.push(`${g} - ${w}`):B.push(`>=${g}`);const n=B.join(" || "),h=typeof u.raw=="string"?u.raw:String(u);return n.length{if(h===g)return!0;h=new i(h,w),g=new i(g,w);let R=!1;e:for(const b of h.set){for(const P of g.set){const E=p(b,P,w);if(R=R||E!==null,E)continue e}if(R)return!1}return!0},l=[new f(">=0.0.0-0")],o=[new f(">=0.0.0")],p=(h,g,w)=>{if(h===g)return!0;if(h.length===1&&h[0].semver===a){if(g.length===1&&g[0].semver===a)return!0;w.includePrerelease?h=l:h=o}if(g.length===1&&g[0].semver===a){if(w.includePrerelease)return!0;g=o}const R=new Set;let b,P;for(const N of h)N.operator===">"||N.operator===">="?b=B(b,N,w):N.operator==="<"||N.operator==="<="?P=n(P,N,w):R.add(N.semver);if(R.size>1)return null;let E;if(b&&P){if(E=c(b.semver,P.semver,w),E>0)return null;if(E===0&&(b.operator!==">="||P.operator!=="<="))return null}for(const N of R){if(b&&!u(N,String(b),w)||P&&!u(N,String(P),w))return null;for(const M of g)if(!u(N,String(M),w))return!1;return!0}let T,S,L,U,_=P&&!w.includePrerelease&&P.semver.prerelease.length?P.semver:!1,G=b&&!w.includePrerelease&&b.semver.prerelease.length?b.semver:!1;_&&_.prerelease.length===1&&P.operator==="<"&&_.prerelease[0]===0&&(_=!1);for(const N of g){if(U=U||N.operator===">"||N.operator===">=",L=L||N.operator==="<"||N.operator==="<=",b){if(G&&N.semver.prerelease&&N.semver.prerelease.length&&N.semver.major===G.major&&N.semver.minor===G.minor&&N.semver.patch===G.patch&&(G=!1),N.operator===">"||N.operator===">="){if(T=B(b,N,w),T===N&&T!==b)return!1}else if(b.operator===">="&&!u(b.semver,String(N),w))return!1}if(P){if(_&&N.semver.prerelease&&N.semver.prerelease.length&&N.semver.major===_.major&&N.semver.minor===_.minor&&N.semver.patch===_.patch&&(_=!1),N.operator==="<"||N.operator==="<="){if(S=n(P,N,w),S===N&&S!==P)return!1}else if(P.operator==="<="&&!u(P.semver,String(N),w))return!1}if(!N.operator&&(P||b)&&E!==0)return!1}return!(b&&L&&!P&&E!==0||P&&U&&!b&&E!==0||G||_)},B=(h,g,w)=>{if(!h)return g;const R=c(h.semver,g.semver,w);return R>0?h:R<0||g.operator===">"&&h.operator===">="?g:h},n=(h,g,w)=>{if(!h)return g;const R=c(h.semver,g.semver,w);return R<0?h:R>0||g.operator==="<"&&h.operator==="<="?g:h};return kr=y,kr}var Mr,Tn;function lt(){if(Tn)return Mr;Tn=1;const i=Ie(),f=Oe(),a=se(),u=Jn(),c=ge(),y=gi(),l=wi(),o=Si(),p=Ri(),B=Ii(),n=bi(),h=Ai(),g=vi(),w=ce(),R=Ti(),b=Bi(),P=ot(),E=$i(),T=xi(),S=_e(),L=at(),U=zn(),_=Wn(),G=ut(),N=ft(),M=Yn(),W=Li(),Y=Fe(),j=le(),H=Pe(),x=Ni(),v=_i(),q=Fi(),C=Pi(),m=qi(),I=ct(),F=ji(),D=Ci(),k=Ui(),V=Di(),K=Gi();return Mr={parse:c,valid:y,clean:l,inc:o,diff:p,major:B,minor:n,patch:h,prerelease:g,compare:w,rcompare:R,compareLoose:b,compareBuild:P,sort:E,rsort:T,gt:S,lt:L,eq:U,neq:_,gte:G,lte:N,cmp:M,coerce:W,Comparator:Y,Range:j,satisfies:H,toComparators:x,maxSatisfying:v,minSatisfying:q,minVersion:C,validRange:m,outside:I,gtr:F,ltr:D,intersects:k,simplifyRange:V,subset:K,SemVer:a,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:f.SEMVER_SPEC_VERSION,RELEASE_TYPES:f.RELEASE_TYPES,compareIdentifiers:u.compareIdentifiers,rcompareIdentifiers:u.rcompareIdentifiers},Mr}var Vr,Bn;function ki(){return Bn||(Bn=1,Vr=lt().satisfies(process.version,">=15.7.0")),Vr}var Hr,$n;function Mi(){return $n||($n=1,Hr=lt().satisfies(process.version,">=16.9.0")),Hr}var Xr,xn;function Zn(){if(xn)return Xr;xn=1;const i=ki(),f=Mi(),a={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},u={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return Xr=function(c,y){if(!c||!y)return;const l=y.asymmetricKeyType;if(!l)return;const o=a[l];if(!o)throw new Error(`Unknown key type "${l}".`);if(!o.includes(c))throw new Error(`"alg" parameter for "${l}" key type must be one of: ${o.join(", ")}.`);if(i)switch(l){case"ec":const p=y.asymmetricKeyDetails.namedCurve,B=u[c];if(p!==B)throw new Error(`"alg" parameter "${c}" requires curve "${B}".`);break;case"rsa-pss":if(f){const n=parseInt(c.slice(-3),10),{hashAlgorithm:h,mgf1HashAlgorithm:g,saltLength:w}=y.asymmetricKeyDetails;if(h!==`sha${n}`||g!==h)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${c}.`);if(w!==void 0&&w>n>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${c}.`)}break}},Xr}var Kr,Ln;function Qn(){if(Ln)return Kr;Ln=1;var i=lt();return Kr=i.satisfies(process.version,"^6.12.0 || >=8.0.0"),Kr}var Jr,On;function Vi(){if(On)return Jr;On=1;const i=Le(),f=Hn(),a=Xn(),u=Vn(),c=Kn(),y=Zn(),l=Qn(),o=it(),{KeyObject:p,createSecretKey:B,createPublicKey:n}=Ee,h=["RS256","RS384","RS512"],g=["ES256","ES384","ES512"],w=["RS256","RS384","RS512"],R=["HS256","HS384","HS512"];return l&&(h.splice(h.length,0,"PS256","PS384","PS512"),w.splice(w.length,0,"PS256","PS384","PS512")),Jr=function(b,P,E,T){typeof E=="function"&&!T&&(T=E,E={}),E||(E={}),E=Object.assign({},E);let S;if(T?S=T:S=function(M,W){if(M)throw M;return W},E.clockTimestamp&&typeof E.clockTimestamp!="number")return S(new i("clockTimestamp must be a number"));if(E.nonce!==void 0&&(typeof E.nonce!="string"||E.nonce.trim()===""))return S(new i("nonce must be a non-empty string"));if(E.allowInvalidAsymmetricKeyTypes!==void 0&&typeof E.allowInvalidAsymmetricKeyTypes!="boolean")return S(new i("allowInvalidAsymmetricKeyTypes must be a boolean"));const L=E.clockTimestamp||Math.floor(Date.now()/1e3);if(!b)return S(new i("jwt must be provided"));if(typeof b!="string")return S(new i("jwt must be a string"));const U=b.split(".");if(U.length!==3)return S(new i("jwt malformed"));let _;try{_=u(b,{complete:!0})}catch(M){return S(M)}if(!_)return S(new i("invalid token"));const G=_.header;let N;if(typeof P=="function"){if(!T)return S(new i("verify must be called asynchronous if secret or public key is provided as a callback"));N=P}else N=function(M,W){return W(null,P)};return N(G,function(M,W){if(M)return S(new i("error in secret or public key callback: "+M.message));const Y=U[2].trim()!=="";if(!Y&&W)return S(new i("jwt signature is required"));if(Y&&!W)return S(new i("secret or public key must be provided"));if(!Y&&!E.algorithms)return S(new i('please specify "none" in "algorithms" to verify unsigned tokens'));if(W!=null&&!(W instanceof p))try{W=n(W)}catch{try{W=B(typeof W=="string"?Buffer.from(W):W)}catch{return S(new i("secretOrPublicKey is not valid key material"))}}if(E.algorithms||(W.type==="secret"?E.algorithms=R:["rsa","rsa-pss"].includes(W.asymmetricKeyType)?E.algorithms=w:W.asymmetricKeyType==="ec"?E.algorithms=g:E.algorithms=h),E.algorithms.indexOf(_.header.alg)===-1)return S(new i("invalid algorithm"));if(G.alg.startsWith("HS")&&W.type!=="secret")return S(new i(`secretOrPublicKey must be a symmetric key when using ${G.alg}`));if(/^(?:RS|PS|ES)/.test(G.alg)&&W.type!=="public")return S(new i(`secretOrPublicKey must be an asymmetric key when using ${G.alg}`));if(!E.allowInvalidAsymmetricKeyTypes)try{y(G.alg,W)}catch(x){return S(x)}let j;try{j=o.verify(b,_.header.alg,W)}catch(x){return S(x)}if(!j)return S(new i("invalid signature"));const H=_.payload;if(typeof H.nbf<"u"&&!E.ignoreNotBefore){if(typeof H.nbf!="number")return S(new i("invalid nbf value"));if(H.nbf>L+(E.clockTolerance||0))return S(new f("jwt not active",new Date(H.nbf*1e3)))}if(typeof H.exp<"u"&&!E.ignoreExpiration){if(typeof H.exp!="number")return S(new i("invalid exp value"));if(L>=H.exp+(E.clockTolerance||0))return S(new a("jwt expired",new Date(H.exp*1e3)))}if(E.audience){const x=Array.isArray(E.audience)?E.audience:[E.audience];if(!(Array.isArray(H.aud)?H.aud:[H.aud]).some(function(C){return x.some(function(m){return m instanceof RegExp?m.test(C):m===C})}))return S(new i("jwt audience invalid. expected: "+x.join(" or ")))}if(E.issuer&&(typeof E.issuer=="string"&&H.iss!==E.issuer||Array.isArray(E.issuer)&&E.issuer.indexOf(H.iss)===-1))return S(new i("jwt issuer invalid. expected: "+E.issuer));if(E.subject&&H.sub!==E.subject)return S(new i("jwt subject invalid. expected: "+E.subject));if(E.jwtid&&H.jti!==E.jwtid)return S(new i("jwt jwtid invalid. expected: "+E.jwtid));if(E.nonce&&H.nonce!==E.nonce)return S(new i("jwt nonce invalid. expected: "+E.nonce));if(E.maxAge){if(typeof H.iat!="number")return S(new i("iat required when maxAge is specified"));const x=c(E.maxAge,H.iat);if(typeof x>"u")return S(new i('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(L>=x+(E.clockTolerance||0))return S(new a("maxAge exceeded",new Date(x*1e3)))}if(E.complete===!0){const x=_.signature;return S(null,{header:G,payload:H,signature:x})}return S(null,H)})},Jr}var zr,Nn;function Hi(){if(Nn)return zr;Nn=1;var i=1/0,f=9007199254740991,a=17976931348623157e292,u=NaN,c="[object Arguments]",y="[object Function]",l="[object GeneratorFunction]",o="[object String]",p="[object Symbol]",B=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^0o[0-7]+$/i,w=/^(?:0|[1-9]\d*)$/,R=parseInt;function b($,X){for(var z=-1,ie=$?$.length:0,oe=Array(ie);++z-1&&$%1==0&&$-1:!!oe&&E($,X,z)>-1}function C($){return F($)&&G.call($,"callee")&&(!M.call($,"callee")||N.call($)==c)}var m=Array.isArray;function I($){return $!=null&&k($.length)&&!D($)}function F($){return K($)&&I($)}function D($){var X=V($)?N.call($):"";return X==y||X==l}function k($){return typeof $=="number"&&$>-1&&$%1==0&&$<=f}function V($){var X=typeof $;return!!$&&(X=="object"||X=="function")}function K($){return!!$&&typeof $=="object"}function J($){return typeof $=="string"||!m($)&&K($)&&N.call($)==o}function Q($){return typeof $=="symbol"||K($)&&N.call($)==p}function ae($){if(!$)return $===0?$:0;if($=ye($),$===i||$===-1/0){var X=$<0?-1:1;return X*a}return $===$?$:0}function ue($){var X=ae($),z=X%1;return X===X?z?X-z:X:0}function ye($){if(typeof $=="number")return $;if(Q($))return u;if(V($)){var X=typeof $.valueOf=="function"?$.valueOf():$;$=V(X)?X+"":X}if(typeof $!="string")return $===0?$:+$;$=$.replace(B,"");var z=h.test($);return z||g.test($)?R($.slice(2),z?2:8):n.test($)?u:+$}function de($){return I($)?j($):H($)}function we($){return $?L($,de($)):[]}return zr=q,zr}var Wr,_n;function Xi(){if(_n)return Wr;_n=1;var i="[object Boolean]",f=Object.prototype,a=f.toString;function u(y){return y===!0||y===!1||c(y)&&a.call(y)==i}function c(y){return!!y&&typeof y=="object"}return Wr=u,Wr}var Yr,Fn;function Ki(){if(Fn)return Yr;Fn=1;var i=1/0,f=17976931348623157e292,a=NaN,u="[object Symbol]",c=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,o=/^0o[0-7]+$/i,p=parseInt,B=Object.prototype,n=B.toString;function h(T){return typeof T=="number"&&T==P(T)}function g(T){var S=typeof T;return!!T&&(S=="object"||S=="function")}function w(T){return!!T&&typeof T=="object"}function R(T){return typeof T=="symbol"||w(T)&&n.call(T)==u}function b(T){if(!T)return T===0?T:0;if(T=E(T),T===i||T===-1/0){var S=T<0?-1:1;return S*f}return T===T?T:0}function P(T){var S=b(T),L=S%1;return S===S?L?S-L:S:0}function E(T){if(typeof T=="number")return T;if(R(T))return a;if(g(T)){var S=typeof T.valueOf=="function"?T.valueOf():T;T=g(S)?S+"":S}if(typeof T!="string")return T===0?T:+T;T=T.replace(c,"");var L=l.test(T);return L||o.test(T)?p(T.slice(2),L?2:8):y.test(T)?a:+T}return Yr=h,Yr}var Zr,Pn;function Ji(){if(Pn)return Zr;Pn=1;var i="[object Number]",f=Object.prototype,a=f.toString;function u(y){return!!y&&typeof y=="object"}function c(y){return typeof y=="number"||u(y)&&a.call(y)==i}return Zr=c,Zr}var Qr,qn;function zi(){if(qn)return Qr;qn=1;var i="[object Object]";function f(g){var w=!1;if(g!=null&&typeof g.toString!="function")try{w=!!(g+"")}catch{}return w}function a(g,w){return function(R){return g(w(R))}}var u=Function.prototype,c=Object.prototype,y=u.toString,l=c.hasOwnProperty,o=y.call(Object),p=c.toString,B=a(Object.getPrototypeOf,Object);function n(g){return!!g&&typeof g=="object"}function h(g){if(!n(g)||p.call(g)!=i||f(g))return!1;var w=B(g);if(w===null)return!0;var R=l.call(w,"constructor")&&w.constructor;return typeof R=="function"&&R instanceof R&&y.call(R)==o}return Qr=h,Qr}var et,jn;function Wi(){if(jn)return et;jn=1;var i="[object String]",f=Object.prototype,a=f.toString,u=Array.isArray;function c(l){return!!l&&typeof l=="object"}function y(l){return typeof l=="string"||!u(l)&&c(l)&&a.call(l)==i}return et=y,et}var rt,Cn;function Yi(){if(Cn)return rt;Cn=1;var i="Expected a function",f=1/0,a=17976931348623157e292,u=NaN,c="[object Symbol]",y=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,p=/^0o[0-7]+$/i,B=parseInt,n=Object.prototype,h=n.toString;function g(L,U){var _;if(typeof U!="function")throw new TypeError(i);return L=T(L),function(){return--L>0&&(_=U.apply(this,arguments)),L<=1&&(U=void 0),_}}function w(L){return g(2,L)}function R(L){var U=typeof L;return!!L&&(U=="object"||U=="function")}function b(L){return!!L&&typeof L=="object"}function P(L){return typeof L=="symbol"||b(L)&&h.call(L)==c}function E(L){if(!L)return L===0?L:0;if(L=S(L),L===f||L===-1/0){var U=L<0?-1:1;return U*a}return L===L?L:0}function T(L){var U=E(L),_=U%1;return U===U?_?U-_:U:0}function S(L){if(typeof L=="number")return L;if(P(L))return u;if(R(L)){var U=typeof L.valueOf=="function"?L.valueOf():L;L=R(U)?U+"":U}if(typeof L!="string")return L===0?L:+L;L=L.replace(y,"");var _=o.test(L);return _||p.test(L)?B(L.slice(2),_?2:8):l.test(L)?u:+L}return rt=w,rt}var tt,Un;function Zi(){if(Un)return tt;Un=1;const i=Kn(),f=Qn(),a=Zn(),u=it(),c=Hi(),y=Xi(),l=Ki(),o=Ji(),p=zi(),B=Wi(),n=Yi(),{KeyObject:h,createSecretKey:g,createPrivateKey:w}=Ee,R=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];f&&R.splice(3,0,"PS256","PS384","PS512");const b={expiresIn:{isValid:function(_){return l(_)||B(_)&&_},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(_){return l(_)||B(_)&&_},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(_){return B(_)||Array.isArray(_)},message:'"audience" must be a string or array'},algorithm:{isValid:c.bind(null,R),message:'"algorithm" must be a valid string enum value'},header:{isValid:p,message:'"header" must be an object'},encoding:{isValid:B,message:'"encoding" must be a string'},issuer:{isValid:B,message:'"issuer" must be a string'},subject:{isValid:B,message:'"subject" must be a string'},jwtid:{isValid:B,message:'"jwtid" must be a string'},noTimestamp:{isValid:y,message:'"noTimestamp" must be a boolean'},keyid:{isValid:B,message:'"keyid" must be a string'},mutatePayload:{isValid:y,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:y,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:y,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},P={iat:{isValid:o,message:'"iat" should be a number of seconds'},exp:{isValid:o,message:'"exp" should be a number of seconds'},nbf:{isValid:o,message:'"nbf" should be a number of seconds'}};function E(_,G,N,M){if(!p(N))throw new Error('Expected "'+M+'" to be a plain object.');Object.keys(N).forEach(function(W){const Y=_[W];if(!Y){if(!G)throw new Error('"'+W+'" is not allowed in "'+M+'"');return}if(!Y.isValid(N[W]))throw new Error(Y.message)})}function T(_){return E(b,!1,_,"options")}function S(_){return E(P,!0,_,"payload")}const L={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},U=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return tt=function(_,G,N,M){typeof N=="function"?(M=N,N={}):N=N||{};const W=typeof _=="object"&&!Buffer.isBuffer(_),Y=Object.assign({alg:N.algorithm||"HS256",typ:W?"JWT":void 0,kid:N.keyid},N.header);function j(v){if(M)return M(v);throw v}if(!G&&N.algorithm!=="none")return j(new Error("secretOrPrivateKey must have a value"));if(G!=null&&!(G instanceof h))try{G=w(G)}catch{try{G=g(typeof G=="string"?Buffer.from(G):G)}catch{return j(new Error("secretOrPrivateKey is not valid key material"))}}if(Y.alg.startsWith("HS")&&G.type!=="secret")return j(new Error(`secretOrPrivateKey must be a symmetric key when using ${Y.alg}`));if(/^(?:RS|PS|ES)/.test(Y.alg)){if(G.type!=="private")return j(new Error(`secretOrPrivateKey must be an asymmetric key when using ${Y.alg}`));if(!N.allowInsecureKeySizes&&!Y.alg.startsWith("ES")&&G.asymmetricKeyDetails!==void 0&&G.asymmetricKeyDetails.modulusLength<2048)return j(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`))}if(typeof _>"u")return j(new Error("payload is required"));if(W){try{S(_)}catch(v){return j(v)}N.mutatePayload||(_=Object.assign({},_))}else{const v=U.filter(function(q){return typeof N[q]<"u"});if(v.length>0)return j(new Error("invalid "+v.join(",")+" option for "+typeof _+" payload"))}if(typeof _.exp<"u"&&typeof N.expiresIn<"u")return j(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof _.nbf<"u"&&typeof N.notBefore<"u")return j(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{T(N)}catch(v){return j(v)}if(!N.allowInvalidAsymmetricKeyTypes)try{a(Y.alg,G)}catch(v){return j(v)}const H=_.iat||Math.floor(Date.now()/1e3);if(N.noTimestamp?delete _.iat:W&&(_.iat=H),typeof N.notBefore<"u"){try{_.nbf=i(N.notBefore,H)}catch(v){return j(v)}if(typeof _.nbf>"u")return j(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof N.expiresIn<"u"&&typeof _=="object"){try{_.exp=i(N.expiresIn,H)}catch(v){return j(v)}if(typeof _.exp>"u")return j(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(L).forEach(function(v){const q=L[v];if(typeof N[v]<"u"){if(typeof _[q]<"u")return j(new Error('Bad "options.'+v+'" option. The payload already has an "'+q+'" property.'));_[q]=N[v]}});const x=N.encoding||"utf8";if(typeof M=="function")M=M&&n(M),u.createSign({header:Y,privateKey:G,payload:_,encoding:x}).once("error",M).once("done",function(v){if(!N.allowInsecureKeySizes&&/^(?:RS|PS)/.test(Y.alg)&&v.length<256)return M(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`));M(null,v)});else{let v=u.sign({header:Y,payload:_,secret:G,encoding:x});if(!N.allowInsecureKeySizes&&/^(?:RS|PS)/.test(Y.alg)&&v.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`);return v}},tt}var nt,Dn;function Qi(){return Dn||(Dn=1,nt={decode:Vn(),verify:Vi(),sign:Zi(),JsonWebTokenError:Le(),NotBeforeError:Hn(),TokenExpiredError:Xn()}),nt}Qi();async function ts(i){return!1}export{ts as verify}; //# sourceMappingURL=B27zSGoL.js.map