@smartledger/bsv 7.12.0 → 7.13.0

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/bsv-didweb.min.js CHANGED
@@ -1,12 +1,12 @@
1
- var bsvDIDWeb=(()=>{var ch=Object.create;var ko=Object.defineProperty;var hh=Object.getOwnPropertyDescriptor;var dh=Object.getOwnPropertyNames;var ph=Object.getPrototypeOf,yh=Object.prototype.hasOwnProperty;var bh=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(n){throw t=[n],n}};var d=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var gh=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of dh(r))!yh.call(e,i)&&i!==t&&ko(e,i,{get:()=>r[i],enumerable:!(n=hh(r,i))||n.enumerable});return e};var Uo=(e,r,t)=>(t=e!=null?ch(ph(e)):{},gh(r||!e||!e.__esModule?ko(t,"default",{value:e,enumerable:!0}):t,e));var Wo=d((qv,No)=>{u();var M=No.exports={},re,te;function qn(){throw new Error("setTimeout has not been defined")}function Mn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?re=setTimeout:re=qn}catch{re=qn}try{typeof clearTimeout=="function"?te=clearTimeout:te=Mn}catch{te=Mn}})();function Lo(e){if(re===setTimeout)return setTimeout(e,0);if((re===qn||!re)&&setTimeout)return re=setTimeout,setTimeout(e,0);try{return re(e,0)}catch{try{return re.call(null,e,0)}catch{return re.call(this,e,0)}}}function wh(e){if(te===clearTimeout)return clearTimeout(e);if((te===Mn||!te)&&clearTimeout)return te=clearTimeout,clearTimeout(e);try{return te(e)}catch{try{return te.call(null,e)}catch{return te.call(this,e)}}}var le=[],Je=!1,Oe,st=-1;function vh(){!Je||!Oe||(Je=!1,Oe.length?le=Oe.concat(le):st=-1,le.length&&Do())}function Do(){if(!Je){var e=Lo(vh);Je=!0;for(var r=le.length;r;){for(Oe=le,le=[];++st<r;)Oe&&Oe[st].run();st=-1,r=le.length}Oe=null,Je=!1,wh(e)}}M.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];le.push(new jo(e,r)),le.length===1&&!Je&&Lo(Do)};function jo(e,r){this.fun=e,this.array=r}jo.prototype.run=function(){this.fun.apply(null,this.array)};M.title="browser";M.browser=!0;M.env={};M.argv=[];M.version="";M.versions={};function ce(){}M.on=ce;M.addListener=ce;M.once=ce;M.off=ce;M.removeListener=ce;M.removeAllListeners=ce;M.emit=ce;M.prependListener=ce;M.prependOnceListener=ce;M.listeners=function(e){return[]};M.binding=function(e){throw new Error("process.binding is not supported")};M.cwd=function(){return"/"};M.chdir=function(e){throw new Error("process.chdir is not supported")};M.umask=function(){return 0}});var Go=d(lt=>{"use strict";u();lt.byteLength=mh;lt.toByteArray=Eh;lt.fromByteArray=Bh;var ne=[],K=[],_h=typeof Uint8Array<"u"?Uint8Array:Array,Pn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ie=0,$o=Pn.length;Ie<$o;++Ie)ne[Ie]=Pn[Ie],K[Pn.charCodeAt(Ie)]=Ie;var Ie,$o;K[45]=62;K[95]=63;function Ho(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function mh(e){var r=Ho(e),t=r[0],n=r[1];return(t+n)*3/4-n}function xh(e,r,t){return(r+t)*3/4-t}function Eh(e){var r,t=Ho(e),n=t[0],i=t[1],o=new _h(xh(e,n,i)),a=0,f=i>0?n-4:n,l;for(l=0;l<f;l+=4)r=K[e.charCodeAt(l)]<<18|K[e.charCodeAt(l+1)]<<12|K[e.charCodeAt(l+2)]<<6|K[e.charCodeAt(l+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return i===2&&(r=K[e.charCodeAt(l)]<<2|K[e.charCodeAt(l+1)]>>4,o[a++]=r&255),i===1&&(r=K[e.charCodeAt(l)]<<10|K[e.charCodeAt(l+1)]<<4|K[e.charCodeAt(l+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function Sh(e){return ne[e>>18&63]+ne[e>>12&63]+ne[e>>6&63]+ne[e&63]}function Ah(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Sh(n));return i.join("")}function Bh(e){for(var r,t=e.length,n=t%3,i=[],o=16383,a=0,f=t-n;a<f;a+=o)i.push(Ah(e,a,a+o>f?f:a+o));return n===1?(r=e[t-1],i.push(ne[r>>2]+ne[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(ne[r>>10]+ne[r>>4&63]+ne[r<<2&63]+"=")),i.join("")}});var Vo=d(Fn=>{u();Fn.read=function(e,r,t,n,i){var o,a,f=i*8-n-1,l=(1<<f)-1,h=l>>1,p=-7,b=t?i-1:0,g=t?-1:1,w=e[r+b];for(b+=g,o=w&(1<<-p)-1,w>>=-p,p+=f;p>0;o=o*256+e[r+b],b+=g,p-=8);for(a=o&(1<<-p)-1,o>>=-p,p+=n;p>0;a=a*256+e[r+b],b+=g,p-=8);if(o===0)o=1-h;else{if(o===l)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-h}return(w?-1:1)*a*Math.pow(2,o-n)};Fn.write=function(e,r,t,n,i,o){var a,f,l,h=o*8-i-1,p=(1<<h)-1,b=p>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,v=n?1:-1,O=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,a=p):(a=Math.floor(Math.log(r)/Math.LN2),r*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+b>=1?r+=g/l:r+=g*Math.pow(2,1-b),r*l>=2&&(a++,l/=2),a+b>=p?(f=0,a=p):a+b>=1?(f=(r*l-1)*Math.pow(2,i),a=a+b):(f=r*Math.pow(2,b-1)*Math.pow(2,i),a=0));i>=8;e[t+w]=f&255,w+=v,f/=256,i-=8);for(a=a<<i|f,h+=i;h>0;e[t+w]=a&255,w+=v,a/=256,h-=8);e[t+w-v]|=O*128}});var oe=d(er=>{"use strict";u();var Cn=Go(),Ze=Vo(),Ko=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;er.Buffer=c;er.SlowBuffer=Mh;er.INSPECT_MAX_BYTES=50;var ct=2147483647;er.kMaxLength=ct;c.TYPED_ARRAY_SUPPORT=Rh();!c.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 Rh(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function he(e){if(e>ct)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,c.prototype),r}function c(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Dn(e)}return Xo(e,r,t)}c.poolSize=8192;function Xo(e,r,t){if(typeof e=="string")return Oh(e,r);if(ArrayBuffer.isView(e))return Ih(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return Un(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return c.from(n,r,t);let i=qh(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return c.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}c.from=function(e,r,t){return Xo(e,r,t)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Zo(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Th(e,r,t){return Zo(e),e<=0?he(e):r!==void 0?typeof t=="string"?he(e).fill(r,t):he(e).fill(r):he(e)}c.alloc=function(e,r,t){return Th(e,r,t)};function Dn(e){return Zo(e),he(e<0?0:jn(e)|0)}c.allocUnsafe=function(e){return Dn(e)};c.allocUnsafeSlow=function(e){return Dn(e)};function Oh(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=Qo(e,r)|0,n=he(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function kn(e){let r=e.length<0?0:jn(e.length)|0,t=he(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Ih(e){if(ie(e,Uint8Array)){let r=new Uint8Array(e);return Un(r.buffer,r.byteOffset,r.byteLength)}return kn(e)}function Un(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,c.prototype),n}function qh(e){if(c.isBuffer(e)){let r=jn(e.length)|0,t=he(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||Wn(e.length)?he(0):kn(e);if(e.type==="Buffer"&&Array.isArray(e.data))return kn(e.data)}function jn(e){if(e>=ct)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ct.toString(16)+" bytes");return e|0}function Mh(e){return+e!=e&&(e=0),c.alloc(+e)}c.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==c.prototype};c.compare=function(r,t){if(ie(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),ie(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(r)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};c.isEncoding=function(r){switch(String(r).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}};c.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return c.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=c.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){let a=r[n];if(ie(a,Uint8Array))o+a.length>i.length?(c.isBuffer(a)||(a=c.from(a)),a.copy(i,o)):Uint8Array.prototype.set.call(i,a,o);else if(c.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function Qo(e,r){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Ln(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return ua(e).length;default:if(i)return n?-1:Ln(e).length;r=(""+r).toLowerCase(),i=!0}}c.byteLength=Qo;function Ph(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return $h(this,r,t);case"utf8":case"utf-8":return ra(this,r,t);case"ascii":return Nh(this,r,t);case"latin1":case"binary":return Wh(this,r,t);case"base64":return Dh(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hh(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function qe(e,r,t){let n=e[r];e[r]=e[t],e[t]=n}c.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)qe(this,t,t+1);return this};c.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)qe(this,t,t+3),qe(this,t+1,t+2);return this};c.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)qe(this,t,t+7),qe(this,t+1,t+6),qe(this,t+2,t+5),qe(this,t+3,t+4);return this};c.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?ra(this,0,r):Ph.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(r){if(!c.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:c.compare(this,r)===0};c.prototype.inspect=function(){let r="",t=er.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Ko&&(c.prototype[Ko]=c.prototype.inspect);c.prototype.compare=function(r,t,n,i,o){if(ie(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;let a=o-i,f=n-t,l=Math.min(a,f),h=this.slice(i,o),p=r.slice(t,n);for(let b=0;b<l;++b)if(h[b]!==p[b]){a=h[b],f=p[b];break}return a<f?-1:f<a?1:0};function ea(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Wn(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=c.from(r,n)),c.isBuffer(r))return r.length===0?-1:zo(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):zo(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function zo(e,r,t,n,i){let o=1,a=e.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,a/=2,f/=2,t/=2}function l(p,b){return o===1?p[b]:p.readUInt16BE(b*o)}let h;if(i){let p=-1;for(h=t;h<a;h++)if(l(e,h)===l(r,p===-1?0:h-p)){if(p===-1&&(p=h),h-p+1===f)return p*o}else p!==-1&&(h-=h-p),p=-1}else for(t+f>a&&(t=a-f),h=t;h>=0;h--){let p=!0;for(let b=0;b<f;b++)if(l(e,h+b)!==l(r,b)){p=!1;break}if(p)return h}return-1}c.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};c.prototype.indexOf=function(r,t,n){return ea(this,r,t,n,!0)};c.prototype.lastIndexOf=function(r,t,n){return ea(this,r,t,n,!1)};function Fh(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let o=r.length;n>o/2&&(n=o/2);let a;for(a=0;a<n;++a){let f=parseInt(r.substr(a*2,2),16);if(Wn(f))return a;e[t+a]=f}return a}function Ch(e,r,t,n){return ht(Ln(r,e.length-t),e,t,n)}function kh(e,r,t,n){return ht(zh(r),e,t,n)}function Uh(e,r,t,n){return ht(ua(r),e,t,n)}function Lh(e,r,t,n){return ht(Yh(r,e.length-t),e,t,n)}c.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return Fh(this,r,t,n);case"utf8":case"utf-8":return Ch(this,r,t,n);case"ascii":case"latin1":case"binary":return kh(this,r,t,n);case"base64":return Uh(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lh(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Dh(e,r,t){return r===0&&t===e.length?Cn.fromByteArray(e):Cn.fromByteArray(e.slice(r,t))}function ra(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let o=e[i],a=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=t){let l,h,p,b;switch(f){case 1:o<128&&(a=o);break;case 2:l=e[i+1],(l&192)===128&&(b=(o&31)<<6|l&63,b>127&&(a=b));break;case 3:l=e[i+1],h=e[i+2],(l&192)===128&&(h&192)===128&&(b=(o&15)<<12|(l&63)<<6|h&63,b>2047&&(b<55296||b>57343)&&(a=b));break;case 4:l=e[i+1],h=e[i+2],p=e[i+3],(l&192)===128&&(h&192)===128&&(p&192)===128&&(b=(o&15)<<18|(l&63)<<12|(h&63)<<6|p&63,b>65535&&b<1114112&&(a=b))}}a===null?(a=65533,f=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=f}return jh(n)}var Yo=4096;function jh(e){let r=e.length;if(r<=Yo)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Yo));return t}function Nh(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Wh(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function $h(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let o=r;o<t;++o)i+=Jh[e[o]];return i}function Hh(e,r,t){let n=e.slice(r,t),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}c.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,c.prototype),i};function k(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||k(r,t,this.length);let i=this[r],o=1,a=0;for(;++a<t&&(o*=256);)i+=this[r+a]*o;return i};c.prototype.readUintBE=c.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||k(r,t,this.length);let i=this[r+--t],o=1;for(;t>0&&(o*=256);)i+=this[r+--t]*o;return i};c.prototype.readUint8=c.prototype.readUInt8=function(r,t){return r=r>>>0,t||k(r,1,this.length),this[r]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||k(r,2,this.length),this[r]|this[r+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||k(r,2,this.length),this[r]<<8|this[r+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||k(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||k(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};c.prototype.readBigUInt64LE=_e(function(r){r=r>>>0,Qe(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&Br(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,o=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))});c.prototype.readBigUInt64BE=_e(function(r){r=r>>>0,Qe(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&Br(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],o=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});c.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||k(r,t,this.length);let i=this[r],o=1,a=0;for(;++a<t&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};c.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||k(r,t,this.length);let i=t,o=1,a=this[r+--i];for(;i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a};c.prototype.readInt8=function(r,t){return r=r>>>0,t||k(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};c.prototype.readInt16LE=function(r,t){r=r>>>0,t||k(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(r,t){r=r>>>0,t||k(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(r,t){return r=r>>>0,t||k(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};c.prototype.readInt32BE=function(r,t){return r=r>>>0,t||k(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};c.prototype.readBigInt64LE=_e(function(r){r=r>>>0,Qe(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&Br(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)});c.prototype.readBigInt64BE=_e(function(r){r=r>>>0,Qe(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&Br(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)});c.prototype.readFloatLE=function(r,t){return r=r>>>0,t||k(r,4,this.length),Ze.read(this,r,!0,23,4)};c.prototype.readFloatBE=function(r,t){return r=r>>>0,t||k(r,4,this.length),Ze.read(this,r,!1,23,4)};c.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||k(r,8,this.length),Ze.read(this,r,!0,52,8)};c.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||k(r,8,this.length),Ze.read(this,r,!1,52,8)};function G(e,r,t,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;G(this,r,t,n,f,0)}let o=1,a=0;for(this[t]=r&255;++a<n&&(o*=256);)this[t+a]=r/o&255;return t+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;G(this,r,t,n,f,0)}let o=n-1,a=1;for(this[t+o]=r&255;--o>=0&&(a*=256);)this[t+o]=r/a&255;return t+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,1,255,0),this[t]=r&255,t+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function ta(e,r,t,n,i){fa(r,n,i,e,t,7);let o=Number(r&BigInt(4294967295));e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function na(e,r,t,n,i){fa(r,n,i,e,t,7);let o=Number(r&BigInt(4294967295));e[t+7]=o,o=o>>8,e[t+6]=o,o=o>>8,e[t+5]=o,o=o>>8,e[t+4]=o;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}c.prototype.writeBigUInt64LE=_e(function(r,t=0){return ta(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});c.prototype.writeBigUInt64BE=_e(function(r,t=0){return na(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});c.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let l=Math.pow(2,8*n-1);G(this,r,t,n,l-1,-l)}let o=0,a=1,f=0;for(this[t]=r&255;++o<n&&(a*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/a>>0)-f&255;return t+n};c.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let l=Math.pow(2,8*n-1);G(this,r,t,n,l-1,-l)}let o=n-1,a=1,f=0;for(this[t+o]=r&255;--o>=0&&(a*=256);)r<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(r/a>>0)-f&255;return t+n};c.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};c.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};c.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};c.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};c.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};c.prototype.writeBigInt64LE=_e(function(r,t=0){return ta(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});c.prototype.writeBigInt64BE=_e(function(r,t=0){return na(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ia(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function oa(e,r,t,n,i){return r=+r,t=t>>>0,i||ia(e,r,t,4,34028234663852886e22,-34028234663852886e22),Ze.write(e,r,t,n,23,4),t+4}c.prototype.writeFloatLE=function(r,t,n){return oa(this,r,t,!0,n)};c.prototype.writeFloatBE=function(r,t,n){return oa(this,r,t,!1,n)};function aa(e,r,t,n,i){return r=+r,t=t>>>0,i||ia(e,r,t,8,17976931348623157e292,-17976931348623157e292),Ze.write(e,r,t,n,52,8),t+8}c.prototype.writeDoubleLE=function(r,t,n){return aa(this,r,t,!0,n)};c.prototype.writeDoubleBE=function(r,t,n){return aa(this,r,t,!1,n)};c.prototype.copy=function(r,t,n,i){if(!c.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};c.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let o;if(typeof r=="number")for(o=t;o<n;++o)this[o]=r;else{let a=c.isBuffer(r)?r:c.from(r,i),f=a.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%f]}return this};var Xe={};function Nn(e,r,t){Xe[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}Nn("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Nn("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError);Nn("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=Jo(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=Jo(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function Jo(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function Gh(e,r,t){Qe(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Br(r,e.length-(t+1))}function fa(e,r,t,n,i,o){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",f;throw o>3?r===0||r===BigInt(0)?f=`>= 0${a} and < 2${a} ** ${(o+1)*8}${a}`:f=`>= -(2${a} ** ${(o+1)*8-1}${a}) and < 2 ** ${(o+1)*8-1}${a}`:f=`>= ${r}${a} and <= ${t}${a}`,new Xe.ERR_OUT_OF_RANGE("value",f,e)}Gh(n,i,o)}function Qe(e,r){if(typeof e!="number")throw new Xe.ERR_INVALID_ARG_TYPE(r,"number",e)}function Br(e,r,t){throw Math.floor(e)!==e?(Qe(e,t),new Xe.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new Xe.ERR_BUFFER_OUT_OF_BOUNDS:new Xe.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var Vh=/[^+/0-9A-Za-z-_]/g;function Kh(e){if(e=e.split("=")[0],e=e.trim().replace(Vh,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ln(e,r){r=r||1/0;let t,n=e.length,i=null,o=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function zh(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Yh(e,r){let t,n,i,o=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function ua(e){return Cn.toByteArray(Kh(e))}function ht(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function ie(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function Wn(e){return e!==e}var Jh=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i]}return r})();function _e(e){return typeof BigInt>"u"?Xh:e}function Xh(){throw new Error("BigInt not supported")}});var s,y,u=bh(()=>{s=Uo(Wo()),y=Uo(oe())});var R=d((Nv,$n)=>{u();typeof Object.create=="function"?$n.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:$n.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var D=d((Hn,la)=>{u();var dt=oe(),ae=dt.Buffer;function sa(e,r){for(var t in e)r[t]=e[t]}ae.from&&ae.alloc&&ae.allocUnsafe&&ae.allocUnsafeSlow?la.exports=dt:(sa(dt,Hn),Hn.Buffer=Me);function Me(e,r,t){return ae(e,r,t)}Me.prototype=Object.create(ae.prototype);sa(ae,Me);Me.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ae(e,r,t)};Me.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ae(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};Me.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ae(e)};Me.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return dt.SlowBuffer(e)}});var tr=d((Hv,Gn)=>{"use strict";u();var rr=typeof Reflect=="object"?Reflect:null,ca=rr&&typeof rr.apply=="function"?rr.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},pt;rr&&typeof rr.ownKeys=="function"?pt=rr.ownKeys:Object.getOwnPropertySymbols?pt=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:pt=function(r){return Object.getOwnPropertyNames(r)};function Zh(e){console&&console.warn&&console.warn(e)}var da=Number.isNaN||function(r){return r!==r};function B(){B.init.call(this)}Gn.exports=B;Gn.exports.once=td;B.EventEmitter=B;B.prototype._events=void 0;B.prototype._eventsCount=0;B.prototype._maxListeners=void 0;var ha=10;function yt(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(B,"defaultMaxListeners",{enumerable:!0,get:function(){return ha},set:function(e){if(typeof e!="number"||e<0||da(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ha=e}});B.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};B.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||da(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function pa(e){return e._maxListeners===void 0?B.defaultMaxListeners:e._maxListeners}B.prototype.getMaxListeners=function(){return pa(this)};B.prototype.emit=function(r){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=r==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var f=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw f.context=a,f}var l=o[r];if(l===void 0)return!1;if(typeof l=="function")ca(l,this,t);else for(var h=l.length,p=va(l,h),n=0;n<h;++n)ca(p[n],this,t);return!0};function ya(e,r,t,n){var i,o,a;if(yt(t),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),o=e._events),a=o[r]),a===void 0)a=o[r]=t,++e._eventsCount;else if(typeof a=="function"?a=o[r]=n?[t,a]:[a,t]:n?a.unshift(t):a.push(t),i=pa(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=r,f.count=a.length,Zh(f)}return e}B.prototype.addListener=function(r,t){return ya(this,r,t,!1)};B.prototype.on=B.prototype.addListener;B.prototype.prependListener=function(r,t){return ya(this,r,t,!0)};function Qh(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ba(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},i=Qh.bind(n);return i.listener=t,n.wrapFn=i,i}B.prototype.once=function(r,t){return yt(t),this.on(r,ba(this,r,t)),this};B.prototype.prependOnceListener=function(r,t){return yt(t),this.prependListener(r,ba(this,r,t)),this};B.prototype.removeListener=function(r,t){var n,i,o,a,f;if(yt(t),i=this._events,i===void 0)return this;if(n=i[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete i[r],i.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){f=n[a].listener,o=a;break}if(o<0)return this;o===0?n.shift():ed(n,o),n.length===1&&(i[r]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",r,f||t)}return this};B.prototype.off=B.prototype.removeListener;B.prototype.removeAllListeners=function(r){var t,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),a;for(i=0;i<o.length;++i)a=o[i],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(i=t.length-1;i>=0;i--)this.removeListener(r,t[i]);return this};function ga(e,r,t){var n=e._events;if(n===void 0)return[];var i=n[r];return i===void 0?[]:typeof i=="function"?t?[i.listener||i]:[i]:t?rd(i):va(i,i.length)}B.prototype.listeners=function(r){return ga(this,r,!0)};B.prototype.rawListeners=function(r){return ga(this,r,!1)};B.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):wa.call(e,r)};B.prototype.listenerCount=wa;function wa(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}B.prototype.eventNames=function(){return this._eventsCount>0?pt(this._events):[]};function va(e,r){for(var t=new Array(r),n=0;n<r;++n)t[n]=e[n];return t}function ed(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function rd(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function td(e,r){return new Promise(function(t,n){function i(a){e.removeListener(r,o),n(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),t([].slice.call(arguments))}_a(e,r,o,{once:!0}),r!=="error"&&nd(e,i,{once:!0})})}function nd(e,r,t){typeof e.on=="function"&&_a(e,"error",r,t)}function _a(e,r,t,n){if(typeof e.on=="function")n.once?e.once(r,t):e.on(r,t);else if(typeof e.addEventListener=="function")e.addEventListener(r,function i(o){n.once&&e.removeEventListener(r,i),t(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Vn=d((Vv,ma)=>{u();ma.exports=tr().EventEmitter});var Kn=d((zv,xa)=>{"use strict";u();xa.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;r[t]=i;for(var o in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(r,t);if(f.value!==i||f.enumerable!==!0)return!1}return!0}});var Rr=d((Jv,Ea)=>{"use strict";u();var id=Kn();Ea.exports=function(){return id()&&!!Symbol.toStringTag}});var zn=d((Zv,Sa)=>{"use strict";u();Sa.exports=Object});var Ba=d((e_,Aa)=>{"use strict";u();Aa.exports=Error});var Ta=d((t_,Ra)=>{"use strict";u();Ra.exports=EvalError});var Ia=d((i_,Oa)=>{"use strict";u();Oa.exports=RangeError});var Ma=d((a_,qa)=>{"use strict";u();qa.exports=ReferenceError});var Yn=d((u_,Pa)=>{"use strict";u();Pa.exports=SyntaxError});var Pe=d((l_,Fa)=>{"use strict";u();Fa.exports=TypeError});var ka=d((h_,Ca)=>{"use strict";u();Ca.exports=URIError});var La=d((p_,Ua)=>{"use strict";u();Ua.exports=Math.abs});var ja=d((b_,Da)=>{"use strict";u();Da.exports=Math.floor});var Wa=d((w_,Na)=>{"use strict";u();Na.exports=Math.max});var Ha=d((__,$a)=>{"use strict";u();$a.exports=Math.min});var Va=d((x_,Ga)=>{"use strict";u();Ga.exports=Math.pow});var za=d((S_,Ka)=>{"use strict";u();Ka.exports=Math.round});var Ja=d((B_,Ya)=>{"use strict";u();Ya.exports=Number.isNaN||function(r){return r!==r}});var Za=d((T_,Xa)=>{"use strict";u();var od=Ja();Xa.exports=function(r){return od(r)||r===0?r:r<0?-1:1}});var ef=d((I_,Qa)=>{"use strict";u();Qa.exports=Object.getOwnPropertyDescriptor});var Fe=d((M_,rf)=>{"use strict";u();var bt=ef();if(bt)try{bt([],"length")}catch{bt=null}rf.exports=bt});var Tr=d((F_,tf)=>{"use strict";u();var gt=Object.defineProperty||!1;if(gt)try{gt({},"a",{value:1})}catch{gt=!1}tf.exports=gt});var af=d((k_,of)=>{"use strict";u();var nf=typeof Symbol<"u"&&Symbol,ad=Kn();of.exports=function(){return typeof nf!="function"||typeof Symbol!="function"||typeof nf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ad()}});var Jn=d((L_,ff)=>{"use strict";u();ff.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Xn=d((j_,uf)=>{"use strict";u();var fd=zn();uf.exports=fd.getPrototypeOf||null});var cf=d((W_,lf)=>{"use strict";u();var ud="Function.prototype.bind called on incompatible ",sd=Object.prototype.toString,ld=Math.max,cd="[object Function]",sf=function(r,t){for(var n=[],i=0;i<r.length;i+=1)n[i]=r[i];for(var o=0;o<t.length;o+=1)n[o+r.length]=t[o];return n},hd=function(r,t){for(var n=[],i=t||0,o=0;i<r.length;i+=1,o+=1)n[o]=r[i];return n},dd=function(e,r){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=r);return t};lf.exports=function(r){var t=this;if(typeof t!="function"||sd.apply(t)!==cd)throw new TypeError(ud+t);for(var n=hd(arguments,1),i,o=function(){if(this instanceof i){var p=t.apply(this,sf(n,arguments));return Object(p)===p?p:this}return t.apply(r,sf(n,arguments))},a=ld(0,t.length-n.length),f=[],l=0;l<a;l++)f[l]="$"+l;if(i=Function("binder","return function ("+dd(f,",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var h=function(){};h.prototype=t.prototype,i.prototype=new h,h.prototype=null}return i}});var nr=d((H_,hf)=>{"use strict";u();var pd=cf();hf.exports=Function.prototype.bind||pd});var wt=d((V_,df)=>{"use strict";u();df.exports=Function.prototype.call});var vt=d((z_,pf)=>{"use strict";u();pf.exports=Function.prototype.apply});var bf=d((J_,yf)=>{"use strict";u();yf.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Zn=d((Z_,gf)=>{"use strict";u();var yd=nr(),bd=vt(),gd=wt(),wd=bf();gf.exports=wd||yd.call(gd,bd)});var _t=d((e1,wf)=>{"use strict";u();var vd=nr(),_d=Pe(),md=wt(),xd=Zn();wf.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new _d("a function is required");return xd(vd,md,r)}});var Sf=d((t1,Ef)=>{"use strict";u();var Ed=_t(),vf=Fe(),mf;try{mf=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Qn=!!mf&&vf&&vf(Object.prototype,"__proto__"),xf=Object,_f=xf.getPrototypeOf;Ef.exports=Qn&&typeof Qn.get=="function"?Ed([Qn.get]):typeof _f=="function"?function(r){return _f(r==null?r:xf(r))}:!1});var mt=d((i1,Tf)=>{"use strict";u();var Af=Jn(),Bf=Xn(),Rf=Sf();Tf.exports=Af?function(r){return Af(r)}:Bf?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Bf(r)}:Rf?function(r){return Rf(r)}:null});var ei=d((a1,Of)=>{"use strict";u();var Sd=Function.prototype.call,Ad=Object.prototype.hasOwnProperty,Bd=nr();Of.exports=Bd.call(Sd,Ad)});var ni=d((u1,Cf)=>{"use strict";u();var m,Rd=zn(),Td=Ba(),Od=Ta(),Id=Ia(),qd=Ma(),fr=Yn(),ar=Pe(),Md=ka(),Pd=La(),Fd=ja(),Cd=Wa(),kd=Ha(),Ud=Va(),Ld=za(),Dd=Za(),Pf=Function,ri=function(e){try{return Pf('"use strict"; return ('+e+").constructor;")()}catch{}},Or=Fe(),jd=Tr(),ti=function(){throw new ar},Nd=Or?(function(){try{return arguments.callee,ti}catch{try{return Or(arguments,"callee").get}catch{return ti}}})():ti,ir=af()(),U=mt(),Wd=Xn(),$d=Jn(),Ff=vt(),Ir=wt(),or={},Hd=typeof Uint8Array>"u"||!U?m:U(Uint8Array),Ce={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&U?U([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Td,"%eval%":eval,"%EvalError%":Od,"%Float16Array%":typeof Float16Array>"u"?m:Float16Array,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":Pf,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&U?U(U([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!U?m:U(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Rd,"%Object.getOwnPropertyDescriptor%":Or,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":Id,"%ReferenceError%":qd,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ir||!U?m:U(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&U?U(""[Symbol.iterator]()):m,"%Symbol%":ir?Symbol:m,"%SyntaxError%":fr,"%ThrowTypeError%":Nd,"%TypedArray%":Hd,"%TypeError%":ar,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":Md,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet,"%Function.prototype.call%":Ir,"%Function.prototype.apply%":Ff,"%Object.defineProperty%":jd,"%Object.getPrototypeOf%":Wd,"%Math.abs%":Pd,"%Math.floor%":Fd,"%Math.max%":Cd,"%Math.min%":kd,"%Math.pow%":Ud,"%Math.round%":Ld,"%Math.sign%":Dd,"%Reflect.getPrototypeOf%":$d};if(U)try{null.error}catch(e){If=U(U(e)),Ce["%Error.prototype%"]=If}var If,Gd=function e(r){var t;if(r==="%AsyncFunction%")t=ri("async function () {}");else if(r==="%GeneratorFunction%")t=ri("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=ri("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&U&&(t=U(i.prototype))}return Ce[r]=t,t},qf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},qr=nr(),xt=ei(),Vd=qr.call(Ir,Array.prototype.concat),Kd=qr.call(Ff,Array.prototype.splice),Mf=qr.call(Ir,String.prototype.replace),Et=qr.call(Ir,String.prototype.slice),zd=qr.call(Ir,RegExp.prototype.exec),Yd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Jd=/\\(\\)?/g,Xd=function(r){var t=Et(r,0,1),n=Et(r,-1);if(t==="%"&&n!=="%")throw new fr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new fr("invalid intrinsic syntax, expected opening `%`");var i=[];return Mf(r,Yd,function(o,a,f,l){i[i.length]=f?Mf(l,Jd,"$1"):a||o}),i},Zd=function(r,t){var n=r,i;if(xt(qf,n)&&(i=qf[n],n="%"+i[0]+"%"),xt(Ce,n)){var o=Ce[n];if(o===or&&(o=Gd(n)),typeof o>"u"&&!t)throw new ar("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new fr("intrinsic "+r+" does not exist!")};Cf.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ar('"allowMissing" argument must be a boolean');if(zd(/^%?[^%]*%?$/,r)===null)throw new fr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Xd(r),i=n.length>0?n[0]:"",o=Zd("%"+i+"%",t),a=o.name,f=o.value,l=!1,h=o.alias;h&&(i=h[0],Kd(n,Vd([0,1],h)));for(var p=1,b=!0;p<n.length;p+=1){var g=n[p],w=Et(g,0,1),v=Et(g,-1);if((w==='"'||w==="'"||w==="`"||v==='"'||v==="'"||v==="`")&&w!==v)throw new fr("property names with quotes must have matching quotes");if((g==="constructor"||!b)&&(l=!0),i+="."+g,a="%"+i+"%",xt(Ce,a))f=Ce[a];else if(f!=null){if(!(g in f)){if(!t)throw new ar("base intrinsic for "+r+" exists, but the property is not available.");return}if(Or&&p+1>=n.length){var O=Or(f,g);b=!!O,b&&"get"in O&&!("originalValue"in O.get)?f=O.get:f=f[g]}else b=xt(f,g),f=f[g];b&&!l&&(Ce[a]=f)}}return f}});var ke=d((l1,Lf)=>{"use strict";u();var kf=ni(),Uf=_t(),Qd=Uf([kf("%String.prototype.indexOf%")]);Lf.exports=function(r,t){var n=kf(r,!!t);return typeof n=="function"&&Qd(r,".prototype.")>-1?Uf([n]):n}});var Nf=d((h1,jf)=>{"use strict";u();var ep=Rr()(),rp=ke(),ii=rp("Object.prototype.toString"),St=function(r){return ep&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:ii(r)==="[object Arguments]"},Df=function(r){return St(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&ii(r)!=="[object Array]"&&"callee"in r&&ii(r.callee)==="[object Function]"},tp=(function(){return St(arguments)})();St.isLegacyArguments=Df;jf.exports=tp?St:Df});var Kf=d((p1,Vf)=>{"use strict";u();var Wf=ke(),np=Rr()(),ip=ei(),op=Fe(),fi;np?($f=Wf("RegExp.prototype.exec"),oi={},At=function(){throw oi},ai={toString:At,valueOf:At},typeof Symbol.toPrimitive=="symbol"&&(ai[Symbol.toPrimitive]=At),fi=function(r){if(!r||typeof r!="object")return!1;var t=op(r,"lastIndex"),n=t&&ip(t,"value");if(!n)return!1;try{$f(r,ai)}catch(i){return i===oi}}):(Hf=Wf("Object.prototype.toString"),Gf="[object RegExp]",fi=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Hf(r)===Gf});var $f,oi,At,ai,Hf,Gf;Vf.exports=fi});var Yf=d((b1,zf)=>{"use strict";u();var ap=ke(),fp=Kf(),up=ap("RegExp.prototype.exec"),sp=Pe();zf.exports=function(r){if(!fp(r))throw new sp("`regex` must be a RegExp");return function(n){return up(r,n)!==null}}});var Xf=d((w1,Jf)=>{"use strict";u();var lp=function*(){}.constructor;Jf.exports=()=>lp});var ru=d((_1,eu)=>{"use strict";u();var Qf=ke(),cp=Yf(),hp=cp(/^\s*(?:function)?\*/),dp=Rr()(),Zf=mt(),pp=Qf("Object.prototype.toString"),yp=Qf("Function.prototype.toString"),bp=Xf();eu.exports=function(r){if(typeof r!="function")return!1;if(hp(yp(r)))return!0;if(!dp){var t=pp(r);return t==="[object GeneratorFunction]"}if(!Zf)return!1;var n=bp();return n&&Zf(r)===n.prototype}});var ou=d((x1,iu)=>{"use strict";u();var nu=Function.prototype.toString,ur=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,si,Bt;if(typeof ur=="function"&&typeof Object.defineProperty=="function")try{si=Object.defineProperty({},"length",{get:function(){throw Bt}}),Bt={},ur(function(){throw 42},null,si)}catch(e){e!==Bt&&(ur=null)}else ur=null;var gp=/^\s*class\b/,li=function(r){try{var t=nu.call(r);return gp.test(t)}catch{return!1}},ui=function(r){try{return li(r)?!1:(nu.call(r),!0)}catch{return!1}},Rt=Object.prototype.toString,wp="[object Object]",vp="[object Function]",_p="[object GeneratorFunction]",mp="[object HTMLAllCollection]",xp="[object HTML document.all class]",Ep="[object HTMLCollection]",Sp=typeof Symbol=="function"&&!!Symbol.toStringTag,Ap=!(0 in[,]),ci=function(){return!1};typeof document=="object"&&(tu=document.all,Rt.call(tu)===Rt.call(document.all)&&(ci=function(r){if((Ap||!r)&&(typeof r>"u"||typeof r=="object"))try{var t=Rt.call(r);return(t===mp||t===xp||t===Ep||t===wp)&&r("")==null}catch{}return!1}));var tu;iu.exports=ur?function(r){if(ci(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{ur(r,null,si)}catch(t){if(t!==Bt)return!1}return!li(r)&&ui(r)}:function(r){if(ci(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(Sp)return ui(r);if(li(r))return!1;var t=Rt.call(r);return t!==vp&&t!==_p&&!/^\[object HTML/.test(t)?!1:ui(r)}});var uu=d((S1,fu)=>{"use strict";u();var Bp=ou(),Rp=Object.prototype.toString,au=Object.prototype.hasOwnProperty,Tp=function(r,t,n){for(var i=0,o=r.length;i<o;i++)au.call(r,i)&&(n==null?t(r[i],i,r):t.call(n,r[i],i,r))},Op=function(r,t,n){for(var i=0,o=r.length;i<o;i++)n==null?t(r.charAt(i),i,r):t.call(n,r.charAt(i),i,r)},Ip=function(r,t,n){for(var i in r)au.call(r,i)&&(n==null?t(r[i],i,r):t.call(n,r[i],i,r))};function qp(e){return Rp.call(e)==="[object Array]"}fu.exports=function(r,t,n){if(!Bp(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),qp(r)?Tp(r,t,i):typeof r=="string"?Op(r,t,i):Ip(r,t,i)}});var lu=d((B1,su)=>{"use strict";u();su.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var hu=d((T1,cu)=>{"use strict";u();var hi=lu(),Mp=globalThis;cu.exports=function(){for(var r=[],t=0;t<hi.length;t++)typeof Mp[hi[t]]=="function"&&(r[r.length]=hi[t]);return r}});var bu=d((I1,yu)=>{"use strict";u();var du=Tr(),Pp=Yn(),sr=Pe(),pu=Fe();yu.exports=function(r,t,n){if(!r||typeof r!="object"&&typeof r!="function")throw new sr("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new sr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new sr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new sr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new sr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new sr("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,l=!!pu&&pu(r,t);if(du)du(r,t,{configurable:a===null&&l?l.configurable:!a,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(f||!i&&!o&&!a)r[t]=n;else throw new Pp("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var vu=d((M1,wu)=>{"use strict";u();var di=Tr(),gu=function(){return!!di};gu.hasArrayLengthDefineBug=function(){if(!di)return null;try{return di([],"length",{value:1}).length!==1}catch{return!0}};wu.exports=gu});var Su=d((F1,Eu)=>{"use strict";u();var Fp=ni(),_u=bu(),Cp=vu()(),mu=Fe(),xu=Pe(),kp=Fp("%Math.floor%");Eu.exports=function(r,t){if(typeof r!="function")throw new xu("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||kp(t)!==t)throw new xu("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in r&&mu){var a=mu(r,"length");a&&!a.configurable&&(i=!1),a&&!a.writable&&(o=!1)}return(i||o||!n)&&(Cp?_u(r,"length",t,!0,!0):_u(r,"length",t)),r}});var Bu=d((k1,Au)=>{"use strict";u();var Up=nr(),Lp=vt(),Dp=Zn();Au.exports=function(){return Dp(Up,Lp,arguments)}});var Ou=d((L1,Tt)=>{"use strict";u();var jp=Su(),Ru=Tr(),Np=_t(),Tu=Bu();Tt.exports=function(r){var t=Np(arguments),n=1+r.length-(arguments.length-1);return jp(t,n>0?n:0,!0)};Ru?Ru(Tt.exports,"apply",{value:Tu}):Tt.exports.apply=Tu});var gi=d((j1,Pu)=>{"use strict";u();var qt=uu(),Wp=hu(),Iu=Ou(),yi=ke(),It=Fe(),Ot=mt(),$p=yi("Object.prototype.toString"),Mu=Rr()(),qu=globalThis,pi=Wp(),bi=yi("String.prototype.slice"),Hp=yi("Array.prototype.indexOf",!0)||function(r,t){for(var n=0;n<r.length;n+=1)if(r[n]===t)return n;return-1},Mt={__proto__:null};Mu&&It&&Ot?qt(pi,function(e){var r=new qu[e];if(Symbol.toStringTag in r&&Ot){var t=Ot(r),n=It(t,Symbol.toStringTag);if(!n&&t){var i=Ot(t);n=It(i,Symbol.toStringTag)}if(n&&n.get){var o=Iu(n.get);Mt["$"+e]=o}}}):qt(pi,function(e){var r=new qu[e],t=r.slice||r.set;if(t){var n=Iu(t);Mt["$"+e]=n}});var Gp=function(r){var t=!1;return qt(Mt,function(n,i){if(!t)try{"$"+n(r)===i&&(t=bi(i,1))}catch{}}),t},Vp=function(r){var t=!1;return qt(Mt,function(n,i){if(!t)try{n(r),t=bi(i,1)}catch{}}),t};Pu.exports=function(r){if(!r||typeof r!="object")return!1;if(!Mu){var t=bi($p(r),8,-1);return Hp(pi,t)>-1?t:t!=="Object"?!1:Vp(r)}return It?Gp(r):null}});var wi=d((W1,Fu)=>{"use strict";u();var Kp=gi();Fu.exports=function(r){return!!Kp(r)}});var zu=d(x=>{"use strict";u();var zp=Nf(),Yp=ru(),Z=gi(),Cu=wi();function lr(e){return e.call.bind(e)}var ku=typeof BigInt<"u",Uu=typeof Symbol<"u",z=lr(Object.prototype.toString),Jp=lr(Number.prototype.valueOf),Xp=lr(String.prototype.valueOf),Zp=lr(Boolean.prototype.valueOf);ku&&(Lu=lr(BigInt.prototype.valueOf));var Lu;Uu&&(Du=lr(Symbol.prototype.valueOf));var Du;function Pr(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch{return!1}}x.isArgumentsObject=zp;x.isGeneratorFunction=Yp;x.isTypedArray=Cu;function Qp(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}x.isPromise=Qp;function e0(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Cu(e)||Nu(e)}x.isArrayBufferView=e0;function r0(e){return Z(e)==="Uint8Array"}x.isUint8Array=r0;function t0(e){return Z(e)==="Uint8ClampedArray"}x.isUint8ClampedArray=t0;function n0(e){return Z(e)==="Uint16Array"}x.isUint16Array=n0;function i0(e){return Z(e)==="Uint32Array"}x.isUint32Array=i0;function o0(e){return Z(e)==="Int8Array"}x.isInt8Array=o0;function a0(e){return Z(e)==="Int16Array"}x.isInt16Array=a0;function f0(e){return Z(e)==="Int32Array"}x.isInt32Array=f0;function u0(e){return Z(e)==="Float32Array"}x.isFloat32Array=u0;function s0(e){return Z(e)==="Float64Array"}x.isFloat64Array=s0;function l0(e){return Z(e)==="BigInt64Array"}x.isBigInt64Array=l0;function c0(e){return Z(e)==="BigUint64Array"}x.isBigUint64Array=c0;function Pt(e){return z(e)==="[object Map]"}Pt.working=typeof Map<"u"&&Pt(new Map);function h0(e){return typeof Map>"u"?!1:Pt.working?Pt(e):e instanceof Map}x.isMap=h0;function Ft(e){return z(e)==="[object Set]"}Ft.working=typeof Set<"u"&&Ft(new Set);function d0(e){return typeof Set>"u"?!1:Ft.working?Ft(e):e instanceof Set}x.isSet=d0;function Ct(e){return z(e)==="[object WeakMap]"}Ct.working=typeof WeakMap<"u"&&Ct(new WeakMap);function p0(e){return typeof WeakMap>"u"?!1:Ct.working?Ct(e):e instanceof WeakMap}x.isWeakMap=p0;function _i(e){return z(e)==="[object WeakSet]"}_i.working=typeof WeakSet<"u"&&_i(new WeakSet);function y0(e){return _i(e)}x.isWeakSet=y0;function kt(e){return z(e)==="[object ArrayBuffer]"}kt.working=typeof ArrayBuffer<"u"&&kt(new ArrayBuffer);function ju(e){return typeof ArrayBuffer>"u"?!1:kt.working?kt(e):e instanceof ArrayBuffer}x.isArrayBuffer=ju;function Ut(e){return z(e)==="[object DataView]"}Ut.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Ut(new DataView(new ArrayBuffer(1),0,1));function Nu(e){return typeof DataView>"u"?!1:Ut.working?Ut(e):e instanceof DataView}x.isDataView=Nu;var vi=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Mr(e){return z(e)==="[object SharedArrayBuffer]"}function Wu(e){return typeof vi>"u"?!1:(typeof Mr.working>"u"&&(Mr.working=Mr(new vi)),Mr.working?Mr(e):e instanceof vi)}x.isSharedArrayBuffer=Wu;function b0(e){return z(e)==="[object AsyncFunction]"}x.isAsyncFunction=b0;function g0(e){return z(e)==="[object Map Iterator]"}x.isMapIterator=g0;function w0(e){return z(e)==="[object Set Iterator]"}x.isSetIterator=w0;function v0(e){return z(e)==="[object Generator]"}x.isGeneratorObject=v0;function _0(e){return z(e)==="[object WebAssembly.Module]"}x.isWebAssemblyCompiledModule=_0;function $u(e){return Pr(e,Jp)}x.isNumberObject=$u;function Hu(e){return Pr(e,Xp)}x.isStringObject=Hu;function Gu(e){return Pr(e,Zp)}x.isBooleanObject=Gu;function Vu(e){return ku&&Pr(e,Lu)}x.isBigIntObject=Vu;function Ku(e){return Uu&&Pr(e,Du)}x.isSymbolObject=Ku;function m0(e){return $u(e)||Hu(e)||Gu(e)||Vu(e)||Ku(e)}x.isBoxedPrimitive=m0;function x0(e){return typeof Uint8Array<"u"&&(ju(e)||Wu(e))}x.isAnyArrayBuffer=x0;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(x,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Ju=d((V1,Yu)=>{u();Yu.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var kr=d(E=>{u();var Xu=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),n={},i=0;i<t.length;i++)n[t[i]]=Object.getOwnPropertyDescriptor(r,t[i]);return n},E0=/%[sdj%]/g;E.format=function(e){if(!Ht(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(me(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,i=n.length,o=String(e).replace(E0,function(f){if(f==="%%")return"%";if(t>=i)return f;switch(f){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return f}}),a=n[t];t<i;a=n[++t])$t(a)||!cr(a)?o+=" "+a:o+=" "+me(a);return o};E.deprecate=function(e,r){if(typeof s.default<"u"&&s.default.noDeprecation===!0)return e;if(typeof s.default>"u")return function(){return E.deprecate(e,r).apply(this,arguments)};var t=!1;function n(){if(!t){if(s.default.throwDeprecation)throw new Error(r);s.default.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n};var Lt={},Zu=/^$/;s.default.env.NODE_DEBUG&&(Dt=s.default.env.NODE_DEBUG,Dt=Dt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Zu=new RegExp("^"+Dt+"$","i"));var Dt;E.debuglog=function(e){if(e=e.toUpperCase(),!Lt[e])if(Zu.test(e)){var r=s.default.pid;Lt[e]=function(){var t=E.format.apply(E,arguments);console.error("%s %d: %s",e,r,t)}}else Lt[e]=function(){};return Lt[e]};function me(e,r){var t={seen:[],stylize:A0};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Si(r)?t.showHidden=r:r&&E._extend(t,r),Le(t.showHidden)&&(t.showHidden=!1),Le(t.depth)&&(t.depth=2),Le(t.colors)&&(t.colors=!1),Le(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=S0),Nt(t,e,t.depth)}E.inspect=me;me.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]};me.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function S0(e,r){var t=me.styles[r];return t?"\x1B["+me.colors[t][0]+"m"+e+"\x1B["+me.colors[t][1]+"m":e}function A0(e,r){return e}function B0(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function Nt(e,r,t){if(e.customInspect&&r&&jt(r.inspect)&&r.inspect!==E.inspect&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return Ht(n)||(n=Nt(e,n,t)),n}var i=R0(e,r);if(i)return i;var o=Object.keys(r),a=B0(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),Cr(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return mi(r);if(o.length===0){if(jt(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(Fr(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Wt(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Cr(r))return mi(r)}var l="",h=!1,p=["{","}"];if(Qu(r)&&(h=!0,p=["[","]"]),jt(r)){var b=r.name?": "+r.name:"";l=" [Function"+b+"]"}if(Fr(r)&&(l=" "+RegExp.prototype.toString.call(r)),Wt(r)&&(l=" "+Date.prototype.toUTCString.call(r)),Cr(r)&&(l=" "+mi(r)),o.length===0&&(!h||r.length==0))return p[0]+l+p[1];if(t<0)return Fr(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var g;return h?g=T0(e,r,t,a,o):g=o.map(function(w){return Ei(e,r,t,a,w,h)}),e.seen.pop(),O0(g,l,p)}function R0(e,r){if(Le(r))return e.stylize("undefined","undefined");if(Ht(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(es(r))return e.stylize(""+r,"number");if(Si(r))return e.stylize(""+r,"boolean");if($t(r))return e.stylize("null","null")}function mi(e){return"["+Error.prototype.toString.call(e)+"]"}function T0(e,r,t,n,i){for(var o=[],a=0,f=r.length;a<f;++a)rs(r,String(a))?o.push(Ei(e,r,t,n,String(a),!0)):o.push("");return i.forEach(function(l){l.match(/^\d+$/)||o.push(Ei(e,r,t,n,l,!0))}),o}function Ei(e,r,t,n,i,o){var a,f,l;if(l=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]},l.get?l.set?f=e.stylize("[Getter/Setter]","special"):f=e.stylize("[Getter]","special"):l.set&&(f=e.stylize("[Setter]","special")),rs(n,i)||(a="["+i+"]"),f||(e.seen.indexOf(l.value)<0?($t(t)?f=Nt(e,l.value,null):f=Nt(e,l.value,t-1),f.indexOf(`
1
+ var bsvDIDWeb=(()=>{var dh=Object.create;var Uo=Object.defineProperty;var ph=Object.getOwnPropertyDescriptor;var yh=Object.getOwnPropertyNames;var bh=Object.getPrototypeOf,gh=Object.prototype.hasOwnProperty;var wh=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(n){throw t=[n],n}};var p=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var vh=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of yh(r))!gh.call(e,i)&&i!==t&&Uo(e,i,{get:()=>r[i],enumerable:!(n=ph(r,i))||n.enumerable});return e};var Do=(e,r,t)=>(t=e!=null?dh(bh(e)):{},vh(r||!e||!e.__esModule?Uo(t,"default",{value:e,enumerable:!0}):t,e));var Ho=p((Fv,$o)=>{u();var M=$o.exports={},re,te;function Mn(){throw new Error("setTimeout has not been defined")}function Pn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?re=setTimeout:re=Mn}catch{re=Mn}try{typeof clearTimeout=="function"?te=clearTimeout:te=Pn}catch{te=Pn}})();function jo(e){if(re===setTimeout)return setTimeout(e,0);if((re===Mn||!re)&&setTimeout)return re=setTimeout,setTimeout(e,0);try{return re(e,0)}catch{try{return re.call(null,e,0)}catch{return re.call(this,e,0)}}}function _h(e){if(te===clearTimeout)return clearTimeout(e);if((te===Pn||!te)&&clearTimeout)return te=clearTimeout,clearTimeout(e);try{return te(e)}catch{try{return te.call(null,e)}catch{return te.call(this,e)}}}var le=[],Je=!1,Oe,lt=-1;function mh(){!Je||!Oe||(Je=!1,Oe.length?le=Oe.concat(le):lt=-1,le.length&&No())}function No(){if(!Je){var e=jo(mh);Je=!0;for(var r=le.length;r;){for(Oe=le,le=[];++lt<r;)Oe&&Oe[lt].run();lt=-1,r=le.length}Oe=null,Je=!1,_h(e)}}M.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];le.push(new Wo(e,r)),le.length===1&&!Je&&jo(No)};function Wo(e,r){this.fun=e,this.array=r}Wo.prototype.run=function(){this.fun.apply(null,this.array)};M.title="browser";M.browser=!0;M.env={};M.argv=[];M.version="";M.versions={};function ce(){}M.on=ce;M.addListener=ce;M.once=ce;M.off=ce;M.removeListener=ce;M.removeAllListeners=ce;M.emit=ce;M.prependListener=ce;M.prependOnceListener=ce;M.listeners=function(e){return[]};M.binding=function(e){throw new Error("process.binding is not supported")};M.cwd=function(){return"/"};M.chdir=function(e){throw new Error("process.chdir is not supported")};M.umask=function(){return 0}});var Ko=p(ct=>{"use strict";u();ct.byteLength=Eh;ct.toByteArray=Ah;ct.fromByteArray=Th;var ne=[],K=[],xh=typeof Uint8Array<"u"?Uint8Array:Array,Fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ie=0,Go=Fn.length;Ie<Go;++Ie)ne[Ie]=Fn[Ie],K[Fn.charCodeAt(Ie)]=Ie;var Ie,Go;K[45]=62;K[95]=63;function Vo(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function Eh(e){var r=Vo(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Sh(e,r,t){return(r+t)*3/4-t}function Ah(e){var r,t=Vo(e),n=t[0],i=t[1],o=new xh(Sh(e,n,i)),a=0,f=i>0?n-4:n,s;for(s=0;s<f;s+=4)r=K[e.charCodeAt(s)]<<18|K[e.charCodeAt(s+1)]<<12|K[e.charCodeAt(s+2)]<<6|K[e.charCodeAt(s+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return i===2&&(r=K[e.charCodeAt(s)]<<2|K[e.charCodeAt(s+1)]>>4,o[a++]=r&255),i===1&&(r=K[e.charCodeAt(s)]<<10|K[e.charCodeAt(s+1)]<<4|K[e.charCodeAt(s+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function Bh(e){return ne[e>>18&63]+ne[e>>12&63]+ne[e>>6&63]+ne[e&63]}function Rh(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Bh(n));return i.join("")}function Th(e){for(var r,t=e.length,n=t%3,i=[],o=16383,a=0,f=t-n;a<f;a+=o)i.push(Rh(e,a,a+o>f?f:a+o));return n===1?(r=e[t-1],i.push(ne[r>>2]+ne[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(ne[r>>10]+ne[r>>4&63]+ne[r<<2&63]+"=")),i.join("")}});var zo=p(Cn=>{u();Cn.read=function(e,r,t,n,i){var o,a,f=i*8-n-1,s=(1<<f)-1,d=s>>1,h=-7,b=t?i-1:0,g=t?-1:1,w=e[r+b];for(b+=g,o=w&(1<<-h)-1,w>>=-h,h+=f;h>0;o=o*256+e[r+b],b+=g,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+e[r+b],b+=g,h-=8);if(o===0)o=1-d;else{if(o===s)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(w?-1:1)*a*Math.pow(2,o-n)};Cn.write=function(e,r,t,n,i,o){var a,f,s,d=o*8-i-1,h=(1<<d)-1,b=h>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,v=n?1:-1,O=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+b>=1?r+=g/s:r+=g*Math.pow(2,1-b),r*s>=2&&(a++,s/=2),a+b>=h?(f=0,a=h):a+b>=1?(f=(r*s-1)*Math.pow(2,i),a=a+b):(f=r*Math.pow(2,b-1)*Math.pow(2,i),a=0));i>=8;e[t+w]=f&255,w+=v,f/=256,i-=8);for(a=a<<i|f,d+=i;d>0;e[t+w]=a&255,w+=v,a/=256,d-=8);e[t+w-v]|=O*128}});var oe=p(er=>{"use strict";u();var kn=Ko(),Ze=zo(),Yo=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;er.Buffer=c;er.SlowBuffer=Fh;er.INSPECT_MAX_BYTES=50;var ht=2147483647;er.kMaxLength=ht;c.TYPED_ARRAY_SUPPORT=Oh();!c.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 Oh(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function he(e){if(e>ht)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,c.prototype),r}function c(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return jn(e)}return Qo(e,r,t)}c.poolSize=8192;function Qo(e,r,t){if(typeof e=="string")return qh(e,r);if(ArrayBuffer.isView(e))return Mh(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ie(e,ArrayBuffer)||e&&ie(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(e,SharedArrayBuffer)||e&&ie(e.buffer,SharedArrayBuffer)))return Un(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return c.from(n,r,t);let i=Ph(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return c.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}c.from=function(e,r,t){return Qo(e,r,t)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function ea(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Ih(e,r,t){return ea(e),e<=0?he(e):r!==void 0?typeof t=="string"?he(e).fill(r,t):he(e).fill(r):he(e)}c.alloc=function(e,r,t){return Ih(e,r,t)};function jn(e){return ea(e),he(e<0?0:Nn(e)|0)}c.allocUnsafe=function(e){return jn(e)};c.allocUnsafeSlow=function(e){return jn(e)};function qh(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=ra(e,r)|0,n=he(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function Ln(e){let r=e.length<0?0:Nn(e.length)|0,t=he(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Mh(e){if(ie(e,Uint8Array)){let r=new Uint8Array(e);return Un(r.buffer,r.byteOffset,r.byteLength)}return Ln(e)}function Un(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,c.prototype),n}function Ph(e){if(c.isBuffer(e)){let r=Nn(e.length)|0,t=he(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||$n(e.length)?he(0):Ln(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ln(e.data)}function Nn(e){if(e>=ht)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ht.toString(16)+" bytes");return e|0}function Fh(e){return+e!=e&&(e=0),c.alloc(+e)}c.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==c.prototype};c.compare=function(r,t){if(ie(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),ie(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(r)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};c.isEncoding=function(r){switch(String(r).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}};c.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return c.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=c.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){let a=r[n];if(ie(a,Uint8Array))o+a.length>i.length?(c.isBuffer(a)||(a=c.from(a)),a.copy(i,o)):Uint8Array.prototype.set.call(i,a,o);else if(c.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function ra(e,r){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ie(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Dn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return la(e).length;default:if(i)return n?-1:Dn(e).length;r=(""+r).toLowerCase(),i=!0}}c.byteLength=ra;function Ch(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Gh(this,r,t);case"utf8":case"utf-8":return na(this,r,t);case"ascii":return $h(this,r,t);case"latin1":case"binary":return Hh(this,r,t);case"base64":return Nh(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vh(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function qe(e,r,t){let n=e[r];e[r]=e[t],e[t]=n}c.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)qe(this,t,t+1);return this};c.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)qe(this,t,t+3),qe(this,t+1,t+2);return this};c.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)qe(this,t,t+7),qe(this,t+1,t+6),qe(this,t+2,t+5),qe(this,t+3,t+4);return this};c.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?na(this,0,r):Ch.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(r){if(!c.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:c.compare(this,r)===0};c.prototype.inspect=function(){let r="",t=er.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};Yo&&(c.prototype[Yo]=c.prototype.inspect);c.prototype.compare=function(r,t,n,i,o){if(ie(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;let a=o-i,f=n-t,s=Math.min(a,f),d=this.slice(i,o),h=r.slice(t,n);for(let b=0;b<s;++b)if(d[b]!==h[b]){a=d[b],f=h[b];break}return a<f?-1:f<a?1:0};function ta(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,$n(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=c.from(r,n)),c.isBuffer(r))return r.length===0?-1:Jo(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Jo(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Jo(e,r,t,n,i){let o=1,a=e.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,a/=2,f/=2,t/=2}function s(h,b){return o===1?h[b]:h.readUInt16BE(b*o)}let d;if(i){let h=-1;for(d=t;d<a;d++)if(s(e,d)===s(r,h===-1?0:d-h)){if(h===-1&&(h=d),d-h+1===f)return h*o}else h!==-1&&(d-=d-h),h=-1}else for(t+f>a&&(t=a-f),d=t;d>=0;d--){let h=!0;for(let b=0;b<f;b++)if(s(e,d+b)!==s(r,b)){h=!1;break}if(h)return d}return-1}c.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};c.prototype.indexOf=function(r,t,n){return ta(this,r,t,n,!0)};c.prototype.lastIndexOf=function(r,t,n){return ta(this,r,t,n,!1)};function kh(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let o=r.length;n>o/2&&(n=o/2);let a;for(a=0;a<n;++a){let f=parseInt(r.substr(a*2,2),16);if($n(f))return a;e[t+a]=f}return a}function Lh(e,r,t,n){return dt(Dn(r,e.length-t),e,t,n)}function Uh(e,r,t,n){return dt(Jh(r),e,t,n)}function Dh(e,r,t,n){return dt(la(r),e,t,n)}function jh(e,r,t,n){return dt(Xh(r,e.length-t),e,t,n)}c.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return kh(this,r,t,n);case"utf8":case"utf-8":return Lh(this,r,t,n);case"ascii":case"latin1":case"binary":return Uh(this,r,t,n);case"base64":return Dh(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jh(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nh(e,r,t){return r===0&&t===e.length?kn.fromByteArray(e):kn.fromByteArray(e.slice(r,t))}function na(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let o=e[i],a=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=t){let s,d,h,b;switch(f){case 1:o<128&&(a=o);break;case 2:s=e[i+1],(s&192)===128&&(b=(o&31)<<6|s&63,b>127&&(a=b));break;case 3:s=e[i+1],d=e[i+2],(s&192)===128&&(d&192)===128&&(b=(o&15)<<12|(s&63)<<6|d&63,b>2047&&(b<55296||b>57343)&&(a=b));break;case 4:s=e[i+1],d=e[i+2],h=e[i+3],(s&192)===128&&(d&192)===128&&(h&192)===128&&(b=(o&15)<<18|(s&63)<<12|(d&63)<<6|h&63,b>65535&&b<1114112&&(a=b))}}a===null?(a=65533,f=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=f}return Wh(n)}var Xo=4096;function Wh(e){let r=e.length;if(r<=Xo)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Xo));return t}function $h(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Hh(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function Gh(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let o=r;o<t;++o)i+=Zh[e[o]];return i}function Vh(e,r,t){let n=e.slice(r,t),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}c.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,c.prototype),i};function k(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||k(r,t,this.length);let i=this[r],o=1,a=0;for(;++a<t&&(o*=256);)i+=this[r+a]*o;return i};c.prototype.readUintBE=c.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||k(r,t,this.length);let i=this[r+--t],o=1;for(;t>0&&(o*=256);)i+=this[r+--t]*o;return i};c.prototype.readUint8=c.prototype.readUInt8=function(r,t){return r=r>>>0,t||k(r,1,this.length),this[r]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||k(r,2,this.length),this[r]|this[r+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||k(r,2,this.length),this[r]<<8|this[r+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||k(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||k(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};c.prototype.readBigUInt64LE=_e(function(r){r=r>>>0,Qe(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&Br(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,o=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))});c.prototype.readBigUInt64BE=_e(function(r){r=r>>>0,Qe(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&Br(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],o=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});c.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||k(r,t,this.length);let i=this[r],o=1,a=0;for(;++a<t&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};c.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||k(r,t,this.length);let i=t,o=1,a=this[r+--i];for(;i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a};c.prototype.readInt8=function(r,t){return r=r>>>0,t||k(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};c.prototype.readInt16LE=function(r,t){r=r>>>0,t||k(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(r,t){r=r>>>0,t||k(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(r,t){return r=r>>>0,t||k(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};c.prototype.readInt32BE=function(r,t){return r=r>>>0,t||k(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};c.prototype.readBigInt64LE=_e(function(r){r=r>>>0,Qe(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&Br(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)});c.prototype.readBigInt64BE=_e(function(r){r=r>>>0,Qe(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&Br(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)});c.prototype.readFloatLE=function(r,t){return r=r>>>0,t||k(r,4,this.length),Ze.read(this,r,!0,23,4)};c.prototype.readFloatBE=function(r,t){return r=r>>>0,t||k(r,4,this.length),Ze.read(this,r,!1,23,4)};c.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||k(r,8,this.length),Ze.read(this,r,!0,52,8)};c.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||k(r,8,this.length),Ze.read(this,r,!1,52,8)};function G(e,r,t,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;G(this,r,t,n,f,0)}let o=1,a=0;for(this[t]=r&255;++a<n&&(o*=256);)this[t+a]=r/o&255;return t+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;G(this,r,t,n,f,0)}let o=n-1,a=1;for(this[t+o]=r&255;--o>=0&&(a*=256);)this[t+o]=r/a&255;return t+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,1,255,0),this[t]=r&255,t+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function ia(e,r,t,n,i){sa(r,n,i,e,t,7);let o=Number(r&BigInt(4294967295));e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function oa(e,r,t,n,i){sa(r,n,i,e,t,7);let o=Number(r&BigInt(4294967295));e[t+7]=o,o=o>>8,e[t+6]=o,o=o>>8,e[t+5]=o,o=o>>8,e[t+4]=o;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}c.prototype.writeBigUInt64LE=_e(function(r,t=0){return ia(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});c.prototype.writeBigUInt64BE=_e(function(r,t=0){return oa(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});c.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let s=Math.pow(2,8*n-1);G(this,r,t,n,s-1,-s)}let o=0,a=1,f=0;for(this[t]=r&255;++o<n&&(a*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/a>>0)-f&255;return t+n};c.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let s=Math.pow(2,8*n-1);G(this,r,t,n,s-1,-s)}let o=n-1,a=1,f=0;for(this[t+o]=r&255;--o>=0&&(a*=256);)r<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(r/a>>0)-f&255;return t+n};c.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};c.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};c.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};c.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};c.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||G(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};c.prototype.writeBigInt64LE=_e(function(r,t=0){return ia(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});c.prototype.writeBigInt64BE=_e(function(r,t=0){return oa(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function aa(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function fa(e,r,t,n,i){return r=+r,t=t>>>0,i||aa(e,r,t,4,34028234663852886e22,-34028234663852886e22),Ze.write(e,r,t,n,23,4),t+4}c.prototype.writeFloatLE=function(r,t,n){return fa(this,r,t,!0,n)};c.prototype.writeFloatBE=function(r,t,n){return fa(this,r,t,!1,n)};function ua(e,r,t,n,i){return r=+r,t=t>>>0,i||aa(e,r,t,8,17976931348623157e292,-17976931348623157e292),Ze.write(e,r,t,n,52,8),t+8}c.prototype.writeDoubleLE=function(r,t,n){return ua(this,r,t,!0,n)};c.prototype.writeDoubleBE=function(r,t,n){return ua(this,r,t,!1,n)};c.prototype.copy=function(r,t,n,i){if(!c.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};c.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let o;if(typeof r=="number")for(o=t;o<n;++o)this[o]=r;else{let a=c.isBuffer(r)?r:c.from(r,i),f=a.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%f]}return this};var Xe={};function Wn(e,r,t){Xe[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}Wn("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Wn("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError);Wn("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=Zo(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=Zo(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function Zo(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function Kh(e,r,t){Qe(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Br(r,e.length-(t+1))}function sa(e,r,t,n,i,o){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",f;throw o>3?r===0||r===BigInt(0)?f=`>= 0${a} and < 2${a} ** ${(o+1)*8}${a}`:f=`>= -(2${a} ** ${(o+1)*8-1}${a}) and < 2 ** ${(o+1)*8-1}${a}`:f=`>= ${r}${a} and <= ${t}${a}`,new Xe.ERR_OUT_OF_RANGE("value",f,e)}Kh(n,i,o)}function Qe(e,r){if(typeof e!="number")throw new Xe.ERR_INVALID_ARG_TYPE(r,"number",e)}function Br(e,r,t){throw Math.floor(e)!==e?(Qe(e,t),new Xe.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new Xe.ERR_BUFFER_OUT_OF_BOUNDS:new Xe.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var zh=/[^+/0-9A-Za-z-_]/g;function Yh(e){if(e=e.split("=")[0],e=e.trim().replace(zh,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Dn(e,r){r=r||1/0;let t,n=e.length,i=null,o=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function Jh(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Xh(e,r){let t,n,i,o=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function la(e){return kn.toByteArray(Yh(e))}function dt(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function ie(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function $n(e){return e!==e}var Zh=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i]}return r})();function _e(e){return typeof BigInt>"u"?Qh:e}function Qh(){throw new Error("BigInt not supported")}});var l,y,u=wh(()=>{l=Do(Ho()),y=Do(oe())});var R=p((Hv,Hn)=>{u();typeof Object.create=="function"?Hn.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Hn.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var D=p((Gn,ha)=>{u();var pt=oe(),ae=pt.Buffer;function ca(e,r){for(var t in e)r[t]=e[t]}ae.from&&ae.alloc&&ae.allocUnsafe&&ae.allocUnsafeSlow?ha.exports=pt:(ca(pt,Gn),Gn.Buffer=Me);function Me(e,r,t){return ae(e,r,t)}Me.prototype=Object.create(ae.prototype);ca(ae,Me);Me.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ae(e,r,t)};Me.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ae(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};Me.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ae(e)};Me.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return pt.SlowBuffer(e)}});var tr=p((Kv,Vn)=>{"use strict";u();var rr=typeof Reflect=="object"?Reflect:null,da=rr&&typeof rr.apply=="function"?rr.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},yt;rr&&typeof rr.ownKeys=="function"?yt=rr.ownKeys:Object.getOwnPropertySymbols?yt=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:yt=function(r){return Object.getOwnPropertyNames(r)};function ed(e){console&&console.warn&&console.warn(e)}var ya=Number.isNaN||function(r){return r!==r};function B(){B.init.call(this)}Vn.exports=B;Vn.exports.once=id;B.EventEmitter=B;B.prototype._events=void 0;B.prototype._eventsCount=0;B.prototype._maxListeners=void 0;var pa=10;function bt(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(B,"defaultMaxListeners",{enumerable:!0,get:function(){return pa},set:function(e){if(typeof e!="number"||e<0||ya(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");pa=e}});B.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};B.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||ya(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function ba(e){return e._maxListeners===void 0?B.defaultMaxListeners:e._maxListeners}B.prototype.getMaxListeners=function(){return ba(this)};B.prototype.emit=function(r){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=r==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var f=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw f.context=a,f}var s=o[r];if(s===void 0)return!1;if(typeof s=="function")da(s,this,t);else for(var d=s.length,h=ma(s,d),n=0;n<d;++n)da(h[n],this,t);return!0};function ga(e,r,t,n){var i,o,a;if(bt(t),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),o=e._events),a=o[r]),a===void 0)a=o[r]=t,++e._eventsCount;else if(typeof a=="function"?a=o[r]=n?[t,a]:[a,t]:n?a.unshift(t):a.push(t),i=ba(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=r,f.count=a.length,ed(f)}return e}B.prototype.addListener=function(r,t){return ga(this,r,t,!1)};B.prototype.on=B.prototype.addListener;B.prototype.prependListener=function(r,t){return ga(this,r,t,!0)};function rd(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wa(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},i=rd.bind(n);return i.listener=t,n.wrapFn=i,i}B.prototype.once=function(r,t){return bt(t),this.on(r,wa(this,r,t)),this};B.prototype.prependOnceListener=function(r,t){return bt(t),this.prependListener(r,wa(this,r,t)),this};B.prototype.removeListener=function(r,t){var n,i,o,a,f;if(bt(t),i=this._events,i===void 0)return this;if(n=i[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete i[r],i.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){f=n[a].listener,o=a;break}if(o<0)return this;o===0?n.shift():td(n,o),n.length===1&&(i[r]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",r,f||t)}return this};B.prototype.off=B.prototype.removeListener;B.prototype.removeAllListeners=function(r){var t,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),a;for(i=0;i<o.length;++i)a=o[i],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(i=t.length-1;i>=0;i--)this.removeListener(r,t[i]);return this};function va(e,r,t){var n=e._events;if(n===void 0)return[];var i=n[r];return i===void 0?[]:typeof i=="function"?t?[i.listener||i]:[i]:t?nd(i):ma(i,i.length)}B.prototype.listeners=function(r){return va(this,r,!0)};B.prototype.rawListeners=function(r){return va(this,r,!1)};B.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):_a.call(e,r)};B.prototype.listenerCount=_a;function _a(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}B.prototype.eventNames=function(){return this._eventsCount>0?yt(this._events):[]};function ma(e,r){for(var t=new Array(r),n=0;n<r;++n)t[n]=e[n];return t}function td(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function nd(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function id(e,r){return new Promise(function(t,n){function i(a){e.removeListener(r,o),n(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),t([].slice.call(arguments))}xa(e,r,o,{once:!0}),r!=="error"&&od(e,i,{once:!0})})}function od(e,r,t){typeof e.on=="function"&&xa(e,"error",r,t)}function xa(e,r,t,n){if(typeof e.on=="function")n.once?e.once(r,t):e.on(r,t);else if(typeof e.addEventListener=="function")e.addEventListener(r,function i(o){n.once&&e.removeEventListener(r,i),t(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Kn=p((Yv,Ea)=>{u();Ea.exports=tr().EventEmitter});var zn=p((Xv,Sa)=>{"use strict";u();Sa.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;r[t]=i;for(var o in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(r,t);if(f.value!==i||f.enumerable!==!0)return!1}return!0}});var Rr=p((Qv,Aa)=>{"use strict";u();var ad=zn();Aa.exports=function(){return ad()&&!!Symbol.toStringTag}});var Yn=p((r_,Ba)=>{"use strict";u();Ba.exports=Object});var Ta=p((n_,Ra)=>{"use strict";u();Ra.exports=Error});var Ia=p((o_,Oa)=>{"use strict";u();Oa.exports=EvalError});var Ma=p((f_,qa)=>{"use strict";u();qa.exports=RangeError});var Fa=p((s_,Pa)=>{"use strict";u();Pa.exports=ReferenceError});var Jn=p((c_,Ca)=>{"use strict";u();Ca.exports=SyntaxError});var Pe=p((d_,ka)=>{"use strict";u();ka.exports=TypeError});var Ua=p((y_,La)=>{"use strict";u();La.exports=URIError});var ja=p((g_,Da)=>{"use strict";u();Da.exports=Math.abs});var Wa=p((v_,Na)=>{"use strict";u();Na.exports=Math.floor});var Ha=p((m_,$a)=>{"use strict";u();$a.exports=Math.max});var Va=p((E_,Ga)=>{"use strict";u();Ga.exports=Math.min});var za=p((A_,Ka)=>{"use strict";u();Ka.exports=Math.pow});var Ja=p((R_,Ya)=>{"use strict";u();Ya.exports=Math.round});var Za=p((O_,Xa)=>{"use strict";u();Xa.exports=Number.isNaN||function(r){return r!==r}});var ef=p((q_,Qa)=>{"use strict";u();var fd=Za();Qa.exports=function(r){return fd(r)||r===0?r:r<0?-1:1}});var tf=p((P_,rf)=>{"use strict";u();rf.exports=Object.getOwnPropertyDescriptor});var Fe=p((C_,nf)=>{"use strict";u();var gt=tf();if(gt)try{gt([],"length")}catch{gt=null}nf.exports=gt});var Tr=p((L_,of)=>{"use strict";u();var wt=Object.defineProperty||!1;if(wt)try{wt({},"a",{value:1})}catch{wt=!1}of.exports=wt});var uf=p((D_,ff)=>{"use strict";u();var af=typeof Symbol<"u"&&Symbol,ud=zn();ff.exports=function(){return typeof af!="function"||typeof Symbol!="function"||typeof af("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ud()}});var Xn=p((N_,sf)=>{"use strict";u();sf.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Zn=p(($_,lf)=>{"use strict";u();var sd=Yn();lf.exports=sd.getPrototypeOf||null});var df=p((G_,hf)=>{"use strict";u();var ld="Function.prototype.bind called on incompatible ",cd=Object.prototype.toString,hd=Math.max,dd="[object Function]",cf=function(r,t){for(var n=[],i=0;i<r.length;i+=1)n[i]=r[i];for(var o=0;o<t.length;o+=1)n[o+r.length]=t[o];return n},pd=function(r,t){for(var n=[],i=t||0,o=0;i<r.length;i+=1,o+=1)n[o]=r[i];return n},yd=function(e,r){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=r);return t};hf.exports=function(r){var t=this;if(typeof t!="function"||cd.apply(t)!==dd)throw new TypeError(ld+t);for(var n=pd(arguments,1),i,o=function(){if(this instanceof i){var h=t.apply(this,cf(n,arguments));return Object(h)===h?h:this}return t.apply(r,cf(n,arguments))},a=hd(0,t.length-n.length),f=[],s=0;s<a;s++)f[s]="$"+s;if(i=Function("binder","return function ("+yd(f,",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var d=function(){};d.prototype=t.prototype,i.prototype=new d,d.prototype=null}return i}});var nr=p((K_,pf)=>{"use strict";u();var bd=df();pf.exports=Function.prototype.bind||bd});var vt=p((Y_,yf)=>{"use strict";u();yf.exports=Function.prototype.call});var _t=p((X_,bf)=>{"use strict";u();bf.exports=Function.prototype.apply});var wf=p((Q_,gf)=>{"use strict";u();gf.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Qn=p((r1,vf)=>{"use strict";u();var gd=nr(),wd=_t(),vd=vt(),_d=wf();vf.exports=_d||gd.call(vd,wd)});var mt=p((n1,_f)=>{"use strict";u();var md=nr(),xd=Pe(),Ed=vt(),Sd=Qn();_f.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new xd("a function is required");return Sd(md,Ed,r)}});var Bf=p((o1,Af)=>{"use strict";u();var Ad=mt(),mf=Fe(),Ef;try{Ef=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var ei=!!Ef&&mf&&mf(Object.prototype,"__proto__"),Sf=Object,xf=Sf.getPrototypeOf;Af.exports=ei&&typeof ei.get=="function"?Ad([ei.get]):typeof xf=="function"?function(r){return xf(r==null?r:Sf(r))}:!1});var xt=p((f1,If)=>{"use strict";u();var Rf=Xn(),Tf=Zn(),Of=Bf();If.exports=Rf?function(r){return Rf(r)}:Tf?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Tf(r)}:Of?function(r){return Of(r)}:null});var ri=p((s1,qf)=>{"use strict";u();var Bd=Function.prototype.call,Rd=Object.prototype.hasOwnProperty,Td=nr();qf.exports=Td.call(Bd,Rd)});var ii=p((c1,Lf)=>{"use strict";u();var m,Od=Yn(),Id=Ta(),qd=Ia(),Md=Ma(),Pd=Fa(),fr=Jn(),ar=Pe(),Fd=Ua(),Cd=ja(),kd=Wa(),Ld=Ha(),Ud=Va(),Dd=za(),jd=Ja(),Nd=ef(),Cf=Function,ti=function(e){try{return Cf('"use strict"; return ('+e+").constructor;")()}catch{}},Or=Fe(),Wd=Tr(),ni=function(){throw new ar},$d=Or?(function(){try{return arguments.callee,ni}catch{try{return Or(arguments,"callee").get}catch{return ni}}})():ni,ir=uf()(),L=xt(),Hd=Zn(),Gd=Xn(),kf=_t(),Ir=vt(),or={},Vd=typeof Uint8Array>"u"||!L?m:L(Uint8Array),Ce={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&L?L([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Id,"%eval%":eval,"%EvalError%":qd,"%Float16Array%":typeof Float16Array>"u"?m:Float16Array,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":Cf,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&L?L(L([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!L?m:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Od,"%Object.getOwnPropertyDescriptor%":Or,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":Md,"%ReferenceError%":Pd,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ir||!L?m:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&L?L(""[Symbol.iterator]()):m,"%Symbol%":ir?Symbol:m,"%SyntaxError%":fr,"%ThrowTypeError%":$d,"%TypedArray%":Vd,"%TypeError%":ar,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":Fd,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet,"%Function.prototype.call%":Ir,"%Function.prototype.apply%":kf,"%Object.defineProperty%":Wd,"%Object.getPrototypeOf%":Hd,"%Math.abs%":Cd,"%Math.floor%":kd,"%Math.max%":Ld,"%Math.min%":Ud,"%Math.pow%":Dd,"%Math.round%":jd,"%Math.sign%":Nd,"%Reflect.getPrototypeOf%":Gd};if(L)try{null.error}catch(e){Mf=L(L(e)),Ce["%Error.prototype%"]=Mf}var Mf,Kd=function e(r){var t;if(r==="%AsyncFunction%")t=ti("async function () {}");else if(r==="%GeneratorFunction%")t=ti("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=ti("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&L&&(t=L(i.prototype))}return Ce[r]=t,t},Pf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},qr=nr(),Et=ri(),zd=qr.call(Ir,Array.prototype.concat),Yd=qr.call(kf,Array.prototype.splice),Ff=qr.call(Ir,String.prototype.replace),St=qr.call(Ir,String.prototype.slice),Jd=qr.call(Ir,RegExp.prototype.exec),Xd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zd=/\\(\\)?/g,Qd=function(r){var t=St(r,0,1),n=St(r,-1);if(t==="%"&&n!=="%")throw new fr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new fr("invalid intrinsic syntax, expected opening `%`");var i=[];return Ff(r,Xd,function(o,a,f,s){i[i.length]=f?Ff(s,Zd,"$1"):a||o}),i},ep=function(r,t){var n=r,i;if(Et(Pf,n)&&(i=Pf[n],n="%"+i[0]+"%"),Et(Ce,n)){var o=Ce[n];if(o===or&&(o=Kd(n)),typeof o>"u"&&!t)throw new ar("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new fr("intrinsic "+r+" does not exist!")};Lf.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ar('"allowMissing" argument must be a boolean');if(Jd(/^%?[^%]*%?$/,r)===null)throw new fr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Qd(r),i=n.length>0?n[0]:"",o=ep("%"+i+"%",t),a=o.name,f=o.value,s=!1,d=o.alias;d&&(i=d[0],Yd(n,zd([0,1],d)));for(var h=1,b=!0;h<n.length;h+=1){var g=n[h],w=St(g,0,1),v=St(g,-1);if((w==='"'||w==="'"||w==="`"||v==='"'||v==="'"||v==="`")&&w!==v)throw new fr("property names with quotes must have matching quotes");if((g==="constructor"||!b)&&(s=!0),i+="."+g,a="%"+i+"%",Et(Ce,a))f=Ce[a];else if(f!=null){if(!(g in f)){if(!t)throw new ar("base intrinsic for "+r+" exists, but the property is not available.");return}if(Or&&h+1>=n.length){var O=Or(f,g);b=!!O,b&&"get"in O&&!("originalValue"in O.get)?f=O.get:f=f[g]}else b=Et(f,g),f=f[g];b&&!s&&(Ce[a]=f)}}return f}});var ke=p((d1,jf)=>{"use strict";u();var Uf=ii(),Df=mt(),rp=Df([Uf("%String.prototype.indexOf%")]);jf.exports=function(r,t){var n=Uf(r,!!t);return typeof n=="function"&&rp(r,".prototype.")>-1?Df([n]):n}});var $f=p((y1,Wf)=>{"use strict";u();var tp=Rr()(),np=ke(),oi=np("Object.prototype.toString"),At=function(r){return tp&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:oi(r)==="[object Arguments]"},Nf=function(r){return At(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&oi(r)!=="[object Array]"&&"callee"in r&&oi(r.callee)==="[object Function]"},ip=(function(){return At(arguments)})();At.isLegacyArguments=Nf;Wf.exports=ip?At:Nf});var Yf=p((g1,zf)=>{"use strict";u();var Hf=ke(),op=Rr()(),ap=ri(),fp=Fe(),ui;op?(Gf=Hf("RegExp.prototype.exec"),ai={},Bt=function(){throw ai},fi={toString:Bt,valueOf:Bt},typeof Symbol.toPrimitive=="symbol"&&(fi[Symbol.toPrimitive]=Bt),ui=function(r){if(!r||typeof r!="object")return!1;var t=fp(r,"lastIndex"),n=t&&ap(t,"value");if(!n)return!1;try{Gf(r,fi)}catch(i){return i===ai}}):(Vf=Hf("Object.prototype.toString"),Kf="[object RegExp]",ui=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Vf(r)===Kf});var Gf,ai,Bt,fi,Vf,Kf;zf.exports=ui});var Xf=p((v1,Jf)=>{"use strict";u();var up=ke(),sp=Yf(),lp=up("RegExp.prototype.exec"),cp=Pe();Jf.exports=function(r){if(!sp(r))throw new cp("`regex` must be a RegExp");return function(n){return lp(r,n)!==null}}});var Qf=p((m1,Zf)=>{"use strict";u();var hp=function*(){}.constructor;Zf.exports=()=>hp});var nu=p((E1,tu)=>{"use strict";u();var ru=ke(),dp=Xf(),pp=dp(/^\s*(?:function)?\*/),yp=Rr()(),eu=xt(),bp=ru("Object.prototype.toString"),gp=ru("Function.prototype.toString"),wp=Qf();tu.exports=function(r){if(typeof r!="function")return!1;if(pp(gp(r)))return!0;if(!yp){var t=bp(r);return t==="[object GeneratorFunction]"}if(!eu)return!1;var n=wp();return n&&eu(r)===n.prototype}});var fu=p((A1,au)=>{"use strict";u();var ou=Function.prototype.toString,ur=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,li,Rt;if(typeof ur=="function"&&typeof Object.defineProperty=="function")try{li=Object.defineProperty({},"length",{get:function(){throw Rt}}),Rt={},ur(function(){throw 42},null,li)}catch(e){e!==Rt&&(ur=null)}else ur=null;var vp=/^\s*class\b/,ci=function(r){try{var t=ou.call(r);return vp.test(t)}catch{return!1}},si=function(r){try{return ci(r)?!1:(ou.call(r),!0)}catch{return!1}},Tt=Object.prototype.toString,_p="[object Object]",mp="[object Function]",xp="[object GeneratorFunction]",Ep="[object HTMLAllCollection]",Sp="[object HTML document.all class]",Ap="[object HTMLCollection]",Bp=typeof Symbol=="function"&&!!Symbol.toStringTag,Rp=!(0 in[,]),hi=function(){return!1};typeof document=="object"&&(iu=document.all,Tt.call(iu)===Tt.call(document.all)&&(hi=function(r){if((Rp||!r)&&(typeof r>"u"||typeof r=="object"))try{var t=Tt.call(r);return(t===Ep||t===Sp||t===Ap||t===_p)&&r("")==null}catch{}return!1}));var iu;au.exports=ur?function(r){if(hi(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{ur(r,null,li)}catch(t){if(t!==Rt)return!1}return!ci(r)&&si(r)}:function(r){if(hi(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(Bp)return si(r);if(ci(r))return!1;var t=Tt.call(r);return t!==mp&&t!==xp&&!/^\[object HTML/.test(t)?!1:si(r)}});var lu=p((R1,su)=>{"use strict";u();var Tp=fu(),Op=Object.prototype.toString,uu=Object.prototype.hasOwnProperty,Ip=function(r,t,n){for(var i=0,o=r.length;i<o;i++)uu.call(r,i)&&(n==null?t(r[i],i,r):t.call(n,r[i],i,r))},qp=function(r,t,n){for(var i=0,o=r.length;i<o;i++)n==null?t(r.charAt(i),i,r):t.call(n,r.charAt(i),i,r)},Mp=function(r,t,n){for(var i in r)uu.call(r,i)&&(n==null?t(r[i],i,r):t.call(n,r[i],i,r))};function Pp(e){return Op.call(e)==="[object Array]"}su.exports=function(r,t,n){if(!Tp(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Pp(r)?Ip(r,t,i):typeof r=="string"?qp(r,t,i):Mp(r,t,i)}});var hu=p((O1,cu)=>{"use strict";u();cu.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var pu=p((q1,du)=>{"use strict";u();var di=hu(),Fp=globalThis;du.exports=function(){for(var r=[],t=0;t<di.length;t++)typeof Fp[di[t]]=="function"&&(r[r.length]=di[t]);return r}});var wu=p((P1,gu)=>{"use strict";u();var yu=Tr(),Cp=Jn(),sr=Pe(),bu=Fe();gu.exports=function(r,t,n){if(!r||typeof r!="object"&&typeof r!="function")throw new sr("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new sr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new sr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new sr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new sr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new sr("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,s=!!bu&&bu(r,t);if(yu)yu(r,t,{configurable:a===null&&s?s.configurable:!a,enumerable:i===null&&s?s.enumerable:!i,value:n,writable:o===null&&s?s.writable:!o});else if(f||!i&&!o&&!a)r[t]=n;else throw new Cp("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var mu=p((C1,_u)=>{"use strict";u();var pi=Tr(),vu=function(){return!!pi};vu.hasArrayLengthDefineBug=function(){if(!pi)return null;try{return pi([],"length",{value:1}).length!==1}catch{return!0}};_u.exports=vu});var Bu=p((L1,Au)=>{"use strict";u();var kp=ii(),xu=wu(),Lp=mu()(),Eu=Fe(),Su=Pe(),Up=kp("%Math.floor%");Au.exports=function(r,t){if(typeof r!="function")throw new Su("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Up(t)!==t)throw new Su("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in r&&Eu){var a=Eu(r,"length");a&&!a.configurable&&(i=!1),a&&!a.writable&&(o=!1)}return(i||o||!n)&&(Lp?xu(r,"length",t,!0,!0):xu(r,"length",t)),r}});var Tu=p((D1,Ru)=>{"use strict";u();var Dp=nr(),jp=_t(),Np=Qn();Ru.exports=function(){return Np(Dp,jp,arguments)}});var qu=p((N1,Ot)=>{"use strict";u();var Wp=Bu(),Ou=Tr(),$p=mt(),Iu=Tu();Ot.exports=function(r){var t=$p(arguments),n=1+r.length-(arguments.length-1);return Wp(t,n>0?n:0,!0)};Ou?Ou(Ot.exports,"apply",{value:Iu}):Ot.exports.apply=Iu});var wi=p(($1,Cu)=>{"use strict";u();var Mt=lu(),Hp=pu(),Mu=qu(),bi=ke(),qt=Fe(),It=xt(),Gp=bi("Object.prototype.toString"),Fu=Rr()(),Pu=globalThis,yi=Hp(),gi=bi("String.prototype.slice"),Vp=bi("Array.prototype.indexOf",!0)||function(r,t){for(var n=0;n<r.length;n+=1)if(r[n]===t)return n;return-1},Pt={__proto__:null};Fu&&qt&&It?Mt(yi,function(e){var r=new Pu[e];if(Symbol.toStringTag in r&&It){var t=It(r),n=qt(t,Symbol.toStringTag);if(!n&&t){var i=It(t);n=qt(i,Symbol.toStringTag)}if(n&&n.get){var o=Mu(n.get);Pt["$"+e]=o}}}):Mt(yi,function(e){var r=new Pu[e],t=r.slice||r.set;if(t){var n=Mu(t);Pt["$"+e]=n}});var Kp=function(r){var t=!1;return Mt(Pt,function(n,i){if(!t)try{"$"+n(r)===i&&(t=gi(i,1))}catch{}}),t},zp=function(r){var t=!1;return Mt(Pt,function(n,i){if(!t)try{n(r),t=gi(i,1)}catch{}}),t};Cu.exports=function(r){if(!r||typeof r!="object")return!1;if(!Fu){var t=gi(Gp(r),8,-1);return Vp(yi,t)>-1?t:t!=="Object"?!1:zp(r)}return qt?Kp(r):null}});var vi=p((G1,ku)=>{"use strict";u();var Yp=wi();ku.exports=function(r){return!!Yp(r)}});var Ju=p(x=>{"use strict";u();var Jp=$f(),Xp=nu(),Z=wi(),Lu=vi();function lr(e){return e.call.bind(e)}var Uu=typeof BigInt<"u",Du=typeof Symbol<"u",z=lr(Object.prototype.toString),Zp=lr(Number.prototype.valueOf),Qp=lr(String.prototype.valueOf),e0=lr(Boolean.prototype.valueOf);Uu&&(ju=lr(BigInt.prototype.valueOf));var ju;Du&&(Nu=lr(Symbol.prototype.valueOf));var Nu;function Pr(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch{return!1}}x.isArgumentsObject=Jp;x.isGeneratorFunction=Xp;x.isTypedArray=Lu;function r0(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}x.isPromise=r0;function t0(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Lu(e)||$u(e)}x.isArrayBufferView=t0;function n0(e){return Z(e)==="Uint8Array"}x.isUint8Array=n0;function i0(e){return Z(e)==="Uint8ClampedArray"}x.isUint8ClampedArray=i0;function o0(e){return Z(e)==="Uint16Array"}x.isUint16Array=o0;function a0(e){return Z(e)==="Uint32Array"}x.isUint32Array=a0;function f0(e){return Z(e)==="Int8Array"}x.isInt8Array=f0;function u0(e){return Z(e)==="Int16Array"}x.isInt16Array=u0;function s0(e){return Z(e)==="Int32Array"}x.isInt32Array=s0;function l0(e){return Z(e)==="Float32Array"}x.isFloat32Array=l0;function c0(e){return Z(e)==="Float64Array"}x.isFloat64Array=c0;function h0(e){return Z(e)==="BigInt64Array"}x.isBigInt64Array=h0;function d0(e){return Z(e)==="BigUint64Array"}x.isBigUint64Array=d0;function Ft(e){return z(e)==="[object Map]"}Ft.working=typeof Map<"u"&&Ft(new Map);function p0(e){return typeof Map>"u"?!1:Ft.working?Ft(e):e instanceof Map}x.isMap=p0;function Ct(e){return z(e)==="[object Set]"}Ct.working=typeof Set<"u"&&Ct(new Set);function y0(e){return typeof Set>"u"?!1:Ct.working?Ct(e):e instanceof Set}x.isSet=y0;function kt(e){return z(e)==="[object WeakMap]"}kt.working=typeof WeakMap<"u"&&kt(new WeakMap);function b0(e){return typeof WeakMap>"u"?!1:kt.working?kt(e):e instanceof WeakMap}x.isWeakMap=b0;function mi(e){return z(e)==="[object WeakSet]"}mi.working=typeof WeakSet<"u"&&mi(new WeakSet);function g0(e){return mi(e)}x.isWeakSet=g0;function Lt(e){return z(e)==="[object ArrayBuffer]"}Lt.working=typeof ArrayBuffer<"u"&&Lt(new ArrayBuffer);function Wu(e){return typeof ArrayBuffer>"u"?!1:Lt.working?Lt(e):e instanceof ArrayBuffer}x.isArrayBuffer=Wu;function Ut(e){return z(e)==="[object DataView]"}Ut.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Ut(new DataView(new ArrayBuffer(1),0,1));function $u(e){return typeof DataView>"u"?!1:Ut.working?Ut(e):e instanceof DataView}x.isDataView=$u;var _i=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Mr(e){return z(e)==="[object SharedArrayBuffer]"}function Hu(e){return typeof _i>"u"?!1:(typeof Mr.working>"u"&&(Mr.working=Mr(new _i)),Mr.working?Mr(e):e instanceof _i)}x.isSharedArrayBuffer=Hu;function w0(e){return z(e)==="[object AsyncFunction]"}x.isAsyncFunction=w0;function v0(e){return z(e)==="[object Map Iterator]"}x.isMapIterator=v0;function _0(e){return z(e)==="[object Set Iterator]"}x.isSetIterator=_0;function m0(e){return z(e)==="[object Generator]"}x.isGeneratorObject=m0;function x0(e){return z(e)==="[object WebAssembly.Module]"}x.isWebAssemblyCompiledModule=x0;function Gu(e){return Pr(e,Zp)}x.isNumberObject=Gu;function Vu(e){return Pr(e,Qp)}x.isStringObject=Vu;function Ku(e){return Pr(e,e0)}x.isBooleanObject=Ku;function zu(e){return Uu&&Pr(e,ju)}x.isBigIntObject=zu;function Yu(e){return Du&&Pr(e,Nu)}x.isSymbolObject=Yu;function E0(e){return Gu(e)||Vu(e)||Ku(e)||zu(e)||Yu(e)}x.isBoxedPrimitive=E0;function S0(e){return typeof Uint8Array<"u"&&(Wu(e)||Hu(e))}x.isAnyArrayBuffer=S0;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(x,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Zu=p((Y1,Xu)=>{u();Xu.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var kr=p(E=>{u();var Qu=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),n={},i=0;i<t.length;i++)n[t[i]]=Object.getOwnPropertyDescriptor(r,t[i]);return n},A0=/%[sdj%]/g;E.format=function(e){if(!Gt(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(me(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,i=n.length,o=String(e).replace(A0,function(f){if(f==="%%")return"%";if(t>=i)return f;switch(f){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return f}}),a=n[t];t<i;a=n[++t])Ht(a)||!cr(a)?o+=" "+a:o+=" "+me(a);return o};E.deprecate=function(e,r){if(typeof l.default<"u"&&l.default.noDeprecation===!0)return e;if(typeof l.default>"u")return function(){return E.deprecate(e,r).apply(this,arguments)};var t=!1;function n(){if(!t){if(l.default.throwDeprecation)throw new Error(r);l.default.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n};var Dt={},es=/^$/;l.default.env.NODE_DEBUG&&(jt=l.default.env.NODE_DEBUG,jt=jt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),es=new RegExp("^"+jt+"$","i"));var jt;E.debuglog=function(e){if(e=e.toUpperCase(),!Dt[e])if(es.test(e)){var r=l.default.pid;Dt[e]=function(){var t=E.format.apply(E,arguments);console.error("%s %d: %s",e,r,t)}}else Dt[e]=function(){};return Dt[e]};function me(e,r){var t={seen:[],stylize:R0};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Ai(r)?t.showHidden=r:r&&E._extend(t,r),Ue(t.showHidden)&&(t.showHidden=!1),Ue(t.depth)&&(t.depth=2),Ue(t.colors)&&(t.colors=!1),Ue(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=B0),Wt(t,e,t.depth)}E.inspect=me;me.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]};me.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function B0(e,r){var t=me.styles[r];return t?"\x1B["+me.colors[t][0]+"m"+e+"\x1B["+me.colors[t][1]+"m":e}function R0(e,r){return e}function T0(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function Wt(e,r,t){if(e.customInspect&&r&&Nt(r.inspect)&&r.inspect!==E.inspect&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return Gt(n)||(n=Wt(e,n,t)),n}var i=O0(e,r);if(i)return i;var o=Object.keys(r),a=T0(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),Cr(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return xi(r);if(o.length===0){if(Nt(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(Fr(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if($t(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Cr(r))return xi(r)}var s="",d=!1,h=["{","}"];if(rs(r)&&(d=!0,h=["[","]"]),Nt(r)){var b=r.name?": "+r.name:"";s=" [Function"+b+"]"}if(Fr(r)&&(s=" "+RegExp.prototype.toString.call(r)),$t(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Cr(r)&&(s=" "+xi(r)),o.length===0&&(!d||r.length==0))return h[0]+s+h[1];if(t<0)return Fr(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var g;return d?g=I0(e,r,t,a,o):g=o.map(function(w){return Si(e,r,t,a,w,d)}),e.seen.pop(),q0(g,s,h)}function O0(e,r){if(Ue(r))return e.stylize("undefined","undefined");if(Gt(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(ts(r))return e.stylize(""+r,"number");if(Ai(r))return e.stylize(""+r,"boolean");if(Ht(r))return e.stylize("null","null")}function xi(e){return"["+Error.prototype.toString.call(e)+"]"}function I0(e,r,t,n,i){for(var o=[],a=0,f=r.length;a<f;++a)ns(r,String(a))?o.push(Si(e,r,t,n,String(a),!0)):o.push("");return i.forEach(function(s){s.match(/^\d+$/)||o.push(Si(e,r,t,n,s,!0))}),o}function Si(e,r,t,n,i,o){var a,f,s;if(s=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]},s.get?s.set?f=e.stylize("[Getter/Setter]","special"):f=e.stylize("[Getter]","special"):s.set&&(f=e.stylize("[Setter]","special")),ns(n,i)||(a="["+i+"]"),f||(e.seen.indexOf(s.value)<0?(Ht(t)?f=Wt(e,s.value,null):f=Wt(e,s.value,t-1),f.indexOf(`
2
2
  `)>-1&&(o?f=f.split(`
3
- `).map(function(h){return" "+h}).join(`
3
+ `).map(function(d){return" "+d}).join(`
4
4
  `).slice(2):f=`
5
5
  `+f.split(`
6
- `).map(function(h){return" "+h}).join(`
7
- `))):f=e.stylize("[Circular]","special")),Le(a)){if(o&&i.match(/^\d+$/))return f;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+f}function O0(e,r,t){var n=0,i=e.reduce(function(o,a){return n++,a.indexOf(`
6
+ `).map(function(d){return" "+d}).join(`
7
+ `))):f=e.stylize("[Circular]","special")),Ue(a)){if(o&&i.match(/^\d+$/))return f;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+f}function q0(e,r,t){var n=0,i=e.reduce(function(o,a){return n++,a.indexOf(`
8
8
  `)>=0&&n++,o+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?t[0]+(r===""?"":r+`
9
9
  `)+" "+e.join(`,
10
- `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}E.types=zu();function Qu(e){return Array.isArray(e)}E.isArray=Qu;function Si(e){return typeof e=="boolean"}E.isBoolean=Si;function $t(e){return e===null}E.isNull=$t;function I0(e){return e==null}E.isNullOrUndefined=I0;function es(e){return typeof e=="number"}E.isNumber=es;function Ht(e){return typeof e=="string"}E.isString=Ht;function q0(e){return typeof e=="symbol"}E.isSymbol=q0;function Le(e){return e===void 0}E.isUndefined=Le;function Fr(e){return cr(e)&&Ai(e)==="[object RegExp]"}E.isRegExp=Fr;E.types.isRegExp=Fr;function cr(e){return typeof e=="object"&&e!==null}E.isObject=cr;function Wt(e){return cr(e)&&Ai(e)==="[object Date]"}E.isDate=Wt;E.types.isDate=Wt;function Cr(e){return cr(e)&&(Ai(e)==="[object Error]"||e instanceof Error)}E.isError=Cr;E.types.isNativeError=Cr;function jt(e){return typeof e=="function"}E.isFunction=jt;function M0(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}E.isPrimitive=M0;E.isBuffer=Ju();function Ai(e){return Object.prototype.toString.call(e)}function xi(e){return e<10?"0"+e.toString(10):e.toString(10)}var P0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F0(){var e=new Date,r=[xi(e.getHours()),xi(e.getMinutes()),xi(e.getSeconds())].join(":");return[e.getDate(),P0[e.getMonth()],r].join(" ")}E.log=function(){console.log("%s - %s",F0(),E.format.apply(E,arguments))};E.inherits=R();E._extend=function(e,r){if(!r||!cr(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e};function rs(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Ue=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;E.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(Ue&&r[Ue]){var t=r[Ue];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Ue,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,i,o=new Promise(function(l,h){n=l,i=h}),a=[],f=0;f<arguments.length;f++)a.push(arguments[f]);a.push(function(l,h){l?i(l):n(h)});try{r.apply(this,a)}catch(l){i(l)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(r)),Ue&&Object.defineProperty(t,Ue,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Xu(r))};E.promisify.custom=Ue;function C0(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function k0(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function r(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(f){s.default.nextTick(a.bind(null,null,f))},function(f){s.default.nextTick(C0.bind(null,f,a))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Xu(e)),r}E.callbackify=k0});var fs=d((J1,as)=>{"use strict";u();function ts(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function ns(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ts(Object(t),!0).forEach(function(n){U0(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ts(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function U0(e,r,t){return r=os(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function L0(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function is(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,os(n.key),n)}}function D0(e,r,t){return r&&is(e.prototype,r),t&&is(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function os(e){var r=j0(e,"string");return typeof r=="symbol"?r:String(r)}function j0(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var N0=oe(),Gt=N0.Buffer,W0=kr(),Bi=W0.inspect,$0=Bi&&Bi.custom||"inspect";function H0(e,r,t){Gt.prototype.copy.call(e,r,t)}as.exports=(function(){function e(){L0(this,e),this.head=null,this.tail=null,this.length=0}return D0(e,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return Gt.alloc(0);for(var n=Gt.allocUnsafe(t>>>0),i=this.head,o=0;i;)H0(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,o=n.data;for(t-=o.length;n=n.next;){var a=n.data,f=t>a.length?a.length:t;if(f===a.length?o+=a:o+=a.slice(0,t),t-=f,t===0){f===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(f));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(t){var n=Gt.allocUnsafe(t),i=this.head,o=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var a=i.data,f=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,f),t-=f,t===0){f===a.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(f));break}++o}return this.length-=o,n}},{key:$0,value:function(t,n){return Bi(this,ns(ns({},n),{},{depth:0,customInspect:!1}))}}]),e})()});var Ti=d((Z1,ss)=>{"use strict";u();function G0(e,r){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,s.default.nextTick(Ri,this,e)):s.default.nextTick(Ri,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!r&&o?t._writableState?t._writableState.errorEmitted?s.default.nextTick(Vt,t):(t._writableState.errorEmitted=!0,s.default.nextTick(us,t,o)):s.default.nextTick(us,t,o):r?(s.default.nextTick(Vt,t),r(o)):s.default.nextTick(Vt,t)}),this)}function us(e,r){Ri(e,r),Vt(e)}function Vt(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function V0(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ri(e,r){e.emit("error",r)}function K0(e,r){var t=e._readableState,n=e._writableState;t&&t.autoDestroy||n&&n.autoDestroy?e.destroy(r):e.emit("error",r)}ss.exports={destroy:G0,undestroy:V0,errorOrDestroy:K0}});var De=d((em,hs)=>{"use strict";u();function z0(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var cs={};function Y(e,r,t){t||(t=Error);function n(o,a,f){return typeof r=="string"?r:r(o,a,f)}var i=(function(o){z0(a,o);function a(f,l,h){return o.call(this,n(f,l,h))||this}return a})(t);i.prototype.name=t.name,i.prototype.code=e,cs[e]=i}function ls(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(n){return String(n)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function Y0(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function J0(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function X0(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Y("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Y("ERR_INVALID_ARG_TYPE",function(e,r,t){var n;typeof r=="string"&&Y0(r,"not ")?(n="must not be",r=r.replace(/^not /,"")):n="must be";var i;if(J0(e," argument"))i="The ".concat(e," ").concat(n," ").concat(ls(r,"type"));else{var o=X0(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(o," ").concat(n," ").concat(ls(r,"type"))}return i+=". Received type ".concat(typeof t),i},TypeError);Y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y("ERR_STREAM_WRITE_AFTER_END","write after end");Y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");hs.exports.codes=cs});var Oi=d((tm,ds)=>{"use strict";u();var Z0=De().codes.ERR_INVALID_OPT_VALUE;function Q0(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function ey(e,r,t,n){var i=Q0(r,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?t:"highWaterMark";throw new Z0(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}ds.exports={getHighWaterMark:ey}});var qi=d((im,ps)=>{u();ps.exports=ry;function ry(e,r){if(Ii("noDeprecation"))return e;var t=!1;function n(){if(!t){if(Ii("throwDeprecation"))throw new Error(r);Ii("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return n}function Ii(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var Fi=d((am,_s)=>{"use strict";u();_s.exports=q;function bs(e){var r=this;this.next=null,this.entry=null,this.finish=function(){Ty(r,e)}}var hr;q.WritableState=Lr;var ty={deprecate:qi()},gs=Vn(),zt=oe().Buffer,ny=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function iy(e){return zt.from(e)}function oy(e){return zt.isBuffer(e)||e instanceof ny}var Pi=Ti(),ay=Oi(),fy=ay.getHighWaterMark,xe=De().codes,uy=xe.ERR_INVALID_ARG_TYPE,sy=xe.ERR_METHOD_NOT_IMPLEMENTED,ly=xe.ERR_MULTIPLE_CALLBACK,cy=xe.ERR_STREAM_CANNOT_PIPE,hy=xe.ERR_STREAM_DESTROYED,dy=xe.ERR_STREAM_NULL_VALUES,py=xe.ERR_STREAM_WRITE_AFTER_END,yy=xe.ERR_UNKNOWN_ENCODING,dr=Pi.errorOrDestroy;R()(q,gs);function by(){}function Lr(e,r,t){hr=hr||je(),e=e||{},typeof t!="boolean"&&(t=r instanceof hr),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=fy(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Ey(r,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new bs(this)}Lr.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(Lr.prototype,"buffer",{get:ty.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Kt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Kt=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:function(r){return Kt.call(this,r)?!0:this!==q?!1:r&&r._writableState instanceof Lr}})):Kt=function(r){return r instanceof this};function q(e){hr=hr||je();var r=this instanceof hr;if(!r&&!Kt.call(q,this))return new q(e);this._writableState=new Lr(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),gs.call(this)}q.prototype.pipe=function(){dr(this,new cy)};function gy(e,r){var t=new py;dr(e,t),s.default.nextTick(r,t)}function wy(e,r,t,n){var i;return t===null?i=new dy:typeof t!="string"&&!r.objectMode&&(i=new uy("chunk",["string","Buffer"],t)),i?(dr(e,i),s.default.nextTick(n,i),!1):!0}q.prototype.write=function(e,r,t){var n=this._writableState,i=!1,o=!n.objectMode&&oy(e);return o&&!zt.isBuffer(e)&&(e=iy(e)),typeof r=="function"&&(t=r,r=null),o?r="buffer":r||(r=n.defaultEncoding),typeof t!="function"&&(t=by),n.ending?gy(this,t):(o||wy(this,n,e,t))&&(n.pendingcb++,i=_y(this,n,o,e,r,t)),i};q.prototype.cork=function(){this._writableState.corked++};q.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ws(this,e))};q.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new yy(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function vy(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=zt.from(r,t)),r}Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _y(e,r,t,n,i,o){if(!t){var a=vy(r,n,i);n!==a&&(t=!0,i="buffer",n=a)}var f=r.objectMode?1:n.length;r.length+=f;var l=r.length<r.highWaterMark;if(l||(r.needDrain=!0),r.writing||r.corked){var h=r.lastBufferedRequest;r.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:o,next:null},h?h.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else Mi(e,r,!1,f,n,i,o);return l}function Mi(e,r,t,n,i,o,a){r.writelen=n,r.writecb=a,r.writing=!0,r.sync=!0,r.destroyed?r.onwrite(new hy("write")):t?e._writev(i,r.onwrite):e._write(i,o,r.onwrite),r.sync=!1}function my(e,r,t,n,i){--r.pendingcb,t?(s.default.nextTick(i,n),s.default.nextTick(Ur,e,r),e._writableState.errorEmitted=!0,dr(e,n)):(i(n),e._writableState.errorEmitted=!0,dr(e,n),Ur(e,r))}function xy(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Ey(e,r){var t=e._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new ly;if(xy(t),r)my(e,t,n,r,i);else{var o=vs(t)||e.destroyed;!o&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&ws(e,t),n?s.default.nextTick(ys,e,t,o,i):ys(e,t,o,i)}}function ys(e,r,t,n){t||Sy(e,r),r.pendingcb--,n(),Ur(e,r)}function Sy(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function ws(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var n=r.bufferedRequestCount,i=new Array(n),o=r.corkedRequestsFree;o.entry=t;for(var a=0,f=!0;t;)i[a]=t,t.isBuf||(f=!1),t=t.next,a+=1;i.allBuffers=f,Mi(e,r,!0,r.length,i,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new bs(r),r.bufferedRequestCount=0}else{for(;t;){var l=t.chunk,h=t.encoding,p=t.callback,b=r.objectMode?1:l.length;if(Mi(e,r,!1,b,l,h,p),t=t.next,r.bufferedRequestCount--,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=t,r.bufferProcessing=!1}q.prototype._write=function(e,r,t){t(new sy("_write()"))};q.prototype._writev=null;q.prototype.end=function(e,r,t){var n=this._writableState;return typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),n.corked&&(n.corked=1,this.uncork()),n.ending||Ry(this,n,t),this};Object.defineProperty(q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function vs(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Ay(e,r){e._final(function(t){r.pendingcb--,t&&dr(e,t),r.prefinished=!0,e.emit("prefinish"),Ur(e,r)})}function By(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"&&!r.destroyed?(r.pendingcb++,r.finalCalled=!0,s.default.nextTick(Ay,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function Ur(e,r){var t=vs(r);if(t&&(By(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return t}function Ry(e,r,t){r.ending=!0,Ur(e,r),t&&(r.finished?s.default.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function Ty(e,r,t){var n=e.entry;for(e.entry=null;n;){var i=n.callback;r.pendingcb--,i(t),n=n.next}r.corkedRequestsFree.next=e}Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}});q.prototype.destroy=Pi.destroy;q.prototype._undestroy=Pi.undestroy;q.prototype._destroy=function(e,r){r(e)}});var je=d((um,xs)=>{"use strict";u();var Oy=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};xs.exports=fe;var ms=Ui(),ki=Fi();R()(fe,ms);for(Ci=Oy(ki.prototype),Yt=0;Yt<Ci.length;Yt++)Jt=Ci[Yt],fe.prototype[Jt]||(fe.prototype[Jt]=ki.prototype[Jt]);var Ci,Jt,Yt;function fe(e){if(!(this instanceof fe))return new fe(e);ms.call(this,e),ki.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Iy)))}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(fe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(fe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Iy(){this._writableState.ended||s.default.nextTick(qy,this)}function qy(e){e.end()}Object.defineProperty(fe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(r){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=r,this._writableState.destroyed=r)}})});var As=d((Li,Ss)=>{u();var Xt=oe(),de=Xt.Buffer;function Es(e,r){for(var t in e)r[t]=e[t]}de.from&&de.alloc&&de.allocUnsafe&&de.allocUnsafeSlow?Ss.exports=Xt:(Es(Xt,Li),Li.Buffer=pr);function pr(e,r,t){return de(e,r,t)}Es(de,pr);pr.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return de(e,r,t)};pr.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=de(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};pr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return de(e)};pr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xt.SlowBuffer(e)}});var yr=d(Rs=>{"use strict";u();var ji=As().Buffer,Bs=ji.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function My(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function Py(e){var r=My(e);if(typeof r!="string"&&(ji.isEncoding===Bs||!Bs(e)))throw new Error("Unknown encoding: "+e);return r||e}Rs.StringDecoder=Dr;function Dr(e){this.encoding=Py(e);var r;switch(this.encoding){case"utf16le":this.text=Dy,this.end=jy,r=4;break;case"utf8":this.fillLast=ky,r=4;break;case"base64":this.text=Ny,this.end=Wy,r=3;break;default:this.write=$y,this.end=Hy;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ji.allocUnsafe(r)}Dr.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<e.length?r?r+this.text(e,t):this.text(e,t):r||""};Dr.prototype.end=Ly;Dr.prototype.text=Uy;Dr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Di(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Fy(e,r,t){var n=r.length-1;if(n<t)return 0;var i=Di(r[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<t||i===-2?0:(i=Di(r[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<t||i===-2?0:(i=Di(r[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Cy(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function ky(e){var r=this.lastTotal-this.lastNeed,t=Cy(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function Uy(e,r){var t=Fy(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",r,n)}function Ly(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function Dy(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function jy(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function Ny(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function Wy(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function $y(e){return e.toString(this.encoding)}function Hy(e){return e&&e.length?this.write(e):""}});var Zt=d((dm,Is)=>{"use strict";u();var Ts=De().codes.ERR_STREAM_PREMATURE_CLOSE;function Gy(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];e.apply(this,n)}}}function Vy(){}function Ky(e){return e.setHeader&&typeof e.abort=="function"}function Os(e,r,t){if(typeof r=="function")return Os(e,null,r);r||(r={}),t=Gy(t||Vy);var n=r.readable||r.readable!==!1&&e.readable,i=r.writable||r.writable!==!1&&e.writable,o=function(){e.writable||f()},a=e._writableState&&e._writableState.finished,f=function(){i=!1,a=!0,n||t.call(e)},l=e._readableState&&e._readableState.endEmitted,h=function(){n=!1,l=!0,i||t.call(e)},p=function(v){t.call(e,v)},b=function(){var v;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(v=new Ts),t.call(e,v);if(i&&!a)return(!e._writableState||!e._writableState.ended)&&(v=new Ts),t.call(e,v)},g=function(){e.req.on("finish",f)};return Ky(e)?(e.on("complete",f),e.on("abort",b),e.req?g():e.on("request",g)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",h),e.on("finish",f),r.error!==!1&&e.on("error",p),e.on("close",b),function(){e.removeListener("complete",f),e.removeListener("abort",b),e.removeListener("request",g),e.req&&e.req.removeListener("finish",f),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",f),e.removeListener("end",h),e.removeListener("error",p),e.removeListener("close",b)}}Is.exports=Os});var Ms=d((ym,qs)=>{"use strict";u();var Qt;function Ee(e,r,t){return r=zy(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function zy(e){var r=Yy(e,"string");return typeof r=="symbol"?r:String(r)}function Yy(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Jy=Zt(),Se=Symbol("lastResolve"),Ne=Symbol("lastReject"),jr=Symbol("error"),en=Symbol("ended"),We=Symbol("lastPromise"),Ni=Symbol("handlePromise"),$e=Symbol("stream");function Ae(e,r){return{value:e,done:r}}function Xy(e){var r=e[Se];if(r!==null){var t=e[$e].read();t!==null&&(e[We]=null,e[Se]=null,e[Ne]=null,r(Ae(t,!1)))}}function Zy(e){s.default.nextTick(Xy,e)}function Qy(e,r){return function(t,n){e.then(function(){if(r[en]){t(Ae(void 0,!0));return}r[Ni](t,n)},n)}}var eb=Object.getPrototypeOf(function(){}),rb=Object.setPrototypeOf((Qt={get stream(){return this[$e]},next:function(){var r=this,t=this[jr];if(t!==null)return Promise.reject(t);if(this[en])return Promise.resolve(Ae(void 0,!0));if(this[$e].destroyed)return new Promise(function(a,f){s.default.nextTick(function(){r[jr]?f(r[jr]):a(Ae(void 0,!0))})});var n=this[We],i;if(n)i=new Promise(Qy(n,this));else{var o=this[$e].read();if(o!==null)return Promise.resolve(Ae(o,!1));i=new Promise(this[Ni])}return this[We]=i,i}},Ee(Qt,Symbol.asyncIterator,function(){return this}),Ee(Qt,"return",function(){var r=this;return new Promise(function(t,n){r[$e].destroy(null,function(i){if(i){n(i);return}t(Ae(void 0,!0))})})}),Qt),eb),tb=function(r){var t,n=Object.create(rb,(t={},Ee(t,$e,{value:r,writable:!0}),Ee(t,Se,{value:null,writable:!0}),Ee(t,Ne,{value:null,writable:!0}),Ee(t,jr,{value:null,writable:!0}),Ee(t,en,{value:r._readableState.endEmitted,writable:!0}),Ee(t,Ni,{value:function(o,a){var f=n[$e].read();f?(n[We]=null,n[Se]=null,n[Ne]=null,o(Ae(f,!1))):(n[Se]=o,n[Ne]=a)},writable:!0}),t));return n[We]=null,Jy(r,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ne];o!==null&&(n[We]=null,n[Se]=null,n[Ne]=null,o(i)),n[jr]=i;return}var a=n[Se];a!==null&&(n[We]=null,n[Se]=null,n[Ne]=null,a(Ae(void 0,!0))),n[en]=!0}),r.on("readable",Zy.bind(null,n)),n};qs.exports=tb});var Fs=d((gm,Ps)=>{u();Ps.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Ui=d((_m,Hs)=>{"use strict";u();Hs.exports=S;var br;S.ReadableState=Ls;var vm=tr().EventEmitter,Us=function(r,t){return r.listeners(t).length},Wr=Vn(),rn=oe().Buffer,nb=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ib(e){return rn.from(e)}function ob(e){return rn.isBuffer(e)||e instanceof nb}var Wi=kr(),_;Wi&&Wi.debuglog?_=Wi.debuglog("stream"):_=function(){};var ab=fs(),Yi=Ti(),fb=Oi(),ub=fb.getHighWaterMark,tn=De().codes,sb=tn.ERR_INVALID_ARG_TYPE,lb=tn.ERR_STREAM_PUSH_AFTER_EOF,cb=tn.ERR_METHOD_NOT_IMPLEMENTED,hb=tn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,gr,$i,Hi;R()(S,Wr);var Nr=Yi.errorOrDestroy,Gi=["error","close","destroy","pause","resume"];function db(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function Ls(e,r,t){br=br||je(),e=e||{},typeof t!="boolean"&&(t=r instanceof br),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=ub(this,e,"readableHighWaterMark",t),this.buffer=new ab,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(gr||(gr=yr().StringDecoder),this.decoder=new gr(e.encoding),this.encoding=e.encoding)}function S(e){if(br=br||je(),!(this instanceof S))return new S(e);var r=this instanceof br;this._readableState=new Ls(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Wr.call(this)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});S.prototype.destroy=Yi.destroy;S.prototype._undestroy=Yi.undestroy;S.prototype._destroy=function(e,r){r(e)};S.prototype.push=function(e,r){var t=this._readableState,n;return t.objectMode?n=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=rn.from(e,r),r=""),n=!0),Ds(this,e,r,!1,n)};S.prototype.unshift=function(e){return Ds(this,e,null,!0,!1)};function Ds(e,r,t,n,i){_("readableAddChunk",r);var o=e._readableState;if(r===null)o.reading=!1,bb(e,o);else{var a;if(i||(a=pb(o,r)),a)Nr(e,a);else if(o.objectMode||r&&r.length>0)if(typeof r!="string"&&!o.objectMode&&Object.getPrototypeOf(r)!==rn.prototype&&(r=ib(r)),n)o.endEmitted?Nr(e,new hb):Vi(e,o,r,!0);else if(o.ended)Nr(e,new lb);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!t?(r=o.decoder.write(r),o.objectMode||r.length!==0?Vi(e,o,r,!1):zi(e,o)):Vi(e,o,r,!1)}else n||(o.reading=!1,zi(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Vi(e,r,t,n){r.flowing&&r.length===0&&!r.sync?(r.awaitDrain=0,e.emit("data",t)):(r.length+=r.objectMode?1:t.length,n?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&nn(e)),zi(e,r)}function pb(e,r){var t;return!ob(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new sb("chunk",["string","Buffer","Uint8Array"],r)),t}S.prototype.isPaused=function(){return this._readableState.flowing===!1};S.prototype.setEncoding=function(e){gr||(gr=yr().StringDecoder);var r=new gr(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=r.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Cs=1073741824;function yb(e){return e>=Cs?e=Cs:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function ks(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=yb(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}S.prototype.read=function(e){_("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return _("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?Ki(this):nn(this),null;if(e=ks(e,r),e===0&&r.ended)return r.length===0&&Ki(this),null;var n=r.needReadable;_("need readable",n),(r.length===0||r.length-e<r.highWaterMark)&&(n=!0,_("length less than watermark",n)),r.ended||r.reading?(n=!1,_("reading or ended",n)):n&&(_("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=ks(t,r)));var i;return e>0?i=Ws(e,r):i=null,i===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&Ki(this)),i!==null&&this.emit("data",i),i};function bb(e,r){if(_("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?nn(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,js(e)))}}function nn(e){var r=e._readableState;_("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(_("emitReadable",r.flowing),r.emittedReadable=!0,s.default.nextTick(js,e))}function js(e){var r=e._readableState;_("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,Ji(e)}function zi(e,r){r.readingMore||(r.readingMore=!0,s.default.nextTick(gb,e,r))}function gb(e,r){for(;!r.reading&&!r.ended&&(r.length<r.highWaterMark||r.flowing&&r.length===0);){var t=r.length;if(_("maybeReadMore read 0"),e.read(0),t===r.length)break}r.readingMore=!1}S.prototype._read=function(e){Nr(this,new cb("_read()"))};S.prototype.pipe=function(e,r){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,_("pipe count=%d opts=%j",n.pipesCount,r);var i=(!r||r.end!==!1)&&e!==s.default.stdout&&e!==s.default.stderr,o=i?f:O;n.endEmitted?s.default.nextTick(o):t.once("end",o),e.on("unpipe",a);function a(C,F){_("onunpipe"),C===t&&F&&F.hasUnpiped===!1&&(F.hasUnpiped=!0,p())}function f(){_("onend"),e.end()}var l=wb(t);e.on("drain",l);var h=!1;function p(){_("cleanup"),e.removeListener("close",w),e.removeListener("finish",v),e.removeListener("drain",l),e.removeListener("error",g),e.removeListener("unpipe",a),t.removeListener("end",f),t.removeListener("end",O),t.removeListener("data",b),h=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}t.on("data",b);function b(C){_("ondata");var F=e.write(C);_("dest.write",F),F===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&$s(n.pipes,e)!==-1)&&!h&&(_("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function g(C){_("onerror",C),O(),e.removeListener("error",g),Us(e,"error")===0&&Nr(e,C)}db(e,"error",g);function w(){e.removeListener("finish",v),O()}e.once("close",w);function v(){_("onfinish"),e.removeListener("close",w),O()}e.once("finish",v);function O(){_("unpipe"),t.unpipe(e)}return e.emit("pipe",t),n.flowing||(_("pipe resume"),t.resume()),e};function wb(e){return function(){var t=e._readableState;_("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Us(e,"data")&&(t.flowing=!0,Ji(e))}}S.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=r.pipes,i=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=$s(r.pipes,e);return a===-1?this:(r.pipes.splice(a,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};S.prototype.on=function(e,r){var t=Wr.prototype.on.call(this,e,r),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,_("on readable",n.length,n.reading),n.length?nn(this):n.reading||s.default.nextTick(vb,this)),t};S.prototype.addListener=S.prototype.on;S.prototype.removeListener=function(e,r){var t=Wr.prototype.removeListener.call(this,e,r);return e==="readable"&&s.default.nextTick(Ns,this),t};S.prototype.removeAllListeners=function(e){var r=Wr.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&s.default.nextTick(Ns,this),r};function Ns(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function vb(e){_("readable nexttick read 0"),e.read(0)}S.prototype.resume=function(){var e=this._readableState;return e.flowing||(_("resume"),e.flowing=!e.readableListening,_b(this,e)),e.paused=!1,this};function _b(e,r){r.resumeScheduled||(r.resumeScheduled=!0,s.default.nextTick(mb,e,r))}function mb(e,r){_("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),Ji(e),r.flowing&&!r.reading&&e.read(0)}S.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ji(e){var r=e._readableState;for(_("flow",r.flowing);r.flowing&&e.read()!==null;);}S.prototype.wrap=function(e){var r=this,t=this._readableState,n=!1;e.on("end",function(){if(_("wrapped end"),t.decoder&&!t.ended){var a=t.decoder.end();a&&a.length&&r.push(a)}r.push(null)}),e.on("data",function(a){if(_("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!(t.objectMode&&a==null)&&!(!t.objectMode&&(!a||!a.length))){var f=r.push(a);f||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(f){return function(){return e[f].apply(e,arguments)}})(i));for(var o=0;o<Gi.length;o++)e.on(Gi[o],this.emit.bind(this,Gi[o]));return this._read=function(a){_("wrapped _read",a),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(S.prototype[Symbol.asyncIterator]=function(){return $i===void 0&&($i=Ms()),$i(this)});Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(r){this._readableState&&(this._readableState.flowing=r)}});S._fromList=Ws;Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ws(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function Ki(e){var r=e._readableState;_("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,s.default.nextTick(xb,r,e))}function xb(e,r){if(_("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(S.from=function(e,r){return Hi===void 0&&(Hi=Fs()),Hi(S,e,r)});function $s(e,r){for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}});var Xi=d((xm,Vs)=>{"use strict";u();Vs.exports=pe;var on=De().codes,Eb=on.ERR_METHOD_NOT_IMPLEMENTED,Sb=on.ERR_MULTIPLE_CALLBACK,Ab=on.ERR_TRANSFORM_ALREADY_TRANSFORMING,Bb=on.ERR_TRANSFORM_WITH_LENGTH_0,an=je();R()(pe,an);function Rb(e,r){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new Sb);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function pe(e){if(!(this instanceof pe))return new pe(e);an.call(this,e),this._transformState={afterTransform:Rb.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Tb)}function Tb(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(r,t){Gs(e,r,t)}):Gs(this,null,null)}pe.prototype.push=function(e,r){return this._transformState.needTransform=!1,an.prototype.push.call(this,e,r)};pe.prototype._transform=function(e,r,t){t(new Eb("_transform()"))};pe.prototype._write=function(e,r,t){var n=this._transformState;if(n.writecb=t,n.writechunk=e,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};pe.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};pe.prototype._destroy=function(e,r){an.prototype._destroy.call(this,e,function(t){r(t)})};function Gs(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new Bb;if(e._transformState.transforming)throw new Ab;return e.push(null)}});var Ys=d((Sm,zs)=>{"use strict";u();zs.exports=$r;var Ks=Xi();R()($r,Ks);function $r(e){if(!(this instanceof $r))return new $r(e);Ks.call(this,e)}$r.prototype._transform=function(e,r,t){t(null,e)}});var el=d((Bm,Qs)=>{"use strict";u();var Zi;function Ob(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var Zs=De().codes,Ib=Zs.ERR_MISSING_ARGS,qb=Zs.ERR_STREAM_DESTROYED;function Js(e){if(e)throw e}function Mb(e){return e.setHeader&&typeof e.abort=="function"}function Pb(e,r,t,n){n=Ob(n);var i=!1;e.on("close",function(){i=!0}),Zi===void 0&&(Zi=Zt()),Zi(e,{readable:r,writable:t},function(a){if(a)return n(a);i=!0,n()});var o=!1;return function(a){if(!i&&!o){if(o=!0,Mb(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(a||new qb("pipe"))}}}function Xs(e){e()}function Fb(e,r){return e.pipe(r)}function Cb(e){return!e.length||typeof e[e.length-1]!="function"?Js:e.pop()}function kb(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Cb(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new Ib("streams");var i,o=r.map(function(a,f){var l=f<r.length-1,h=f>0;return Pb(a,l,h,function(p){i||(i=p),p&&o.forEach(Xs),!l&&(o.forEach(Xs),n(i))})});return r.reduce(Fb)}Qs.exports=kb});var eo=d((Tm,rl)=>{u();rl.exports=J;var Qi=tr().EventEmitter,Ub=R();Ub(J,Qi);J.Readable=Ui();J.Writable=Fi();J.Duplex=je();J.Transform=Xi();J.PassThrough=Ys();J.finished=Zt();J.pipeline=el();J.Stream=J;function J(){Qi.call(this)}J.prototype.pipe=function(e,r){var t=this;function n(p){e.writable&&e.write(p)===!1&&t.pause&&t.pause()}t.on("data",n);function i(){t.readable&&t.resume&&t.resume()}e.on("drain",i),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",a),t.on("close",f));var o=!1;function a(){o||(o=!0,e.end())}function f(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function l(p){if(h(),Qi.listenerCount(this,"error")===0)throw p}t.on("error",l),e.on("error",l);function h(){t.removeListener("data",n),e.removeListener("drain",i),t.removeListener("end",a),t.removeListener("close",f),t.removeListener("error",l),e.removeListener("error",l),t.removeListener("end",h),t.removeListener("close",h),e.removeListener("close",h)}return t.on("end",h),t.on("close",h),e.on("close",h),e.emit("pipe",t),e}});var il=d((Im,nl)=>{"use strict";u();var ue=D().Buffer,tl=eo().Transform,Lb=R();function Be(e){tl.call(this),this._block=ue.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Lb(Be,tl);Be.prototype._transform=function(e,r,t){var n=null;try{this.update(e,r)}catch(i){n=i}t(n)};Be.prototype._flush=function(e){var r=null;try{this.push(this.digest())}catch(t){r=t}e(r)};var Db=typeof Uint8Array<"u",jb=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(ue.prototype instanceof Uint8Array||ue.TYPED_ARRAY_SUPPORT);function Nb(e,r){if(e instanceof ue)return e;if(typeof e=="string")return ue.from(e,r);if(jb&&ArrayBuffer.isView(e)){if(e.byteLength===0)return ue.alloc(0);var t=ue.from(e.buffer,e.byteOffset,e.byteLength);if(t.byteLength===e.byteLength)return t}if(Db&&e instanceof Uint8Array||ue.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return ue.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Be.prototype.update=function(e,r){if(this._finalized)throw new Error("Digest already called");e=Nb(e,r);for(var t=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)t[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)t[this._blockOffset++]=e[n++];for(var o=0,a=e.length*8;a>0;++o)this._length[o]+=a,a=this._length[o]/4294967296|0,a>0&&(this._length[o]-=4294967296*a);return this};Be.prototype._update=function(){throw new Error("_update is not implemented")};Be.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var r=this._digest();e!==void 0&&(r=r.toString(e)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return r};Be.prototype._digest=function(){throw new Error("_digest is not implemented")};nl.exports=Be});var ro=d((Mm,al)=>{"use strict";u();var Wb=R(),ol=il(),$b=D().Buffer,Hb=new Array(16);function fn(){ol.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Wb(fn,ol);fn.prototype._update=function(){for(var e=Hb,r=0;r<16;++r)e[r]=this._block.readInt32LE(r*4);var t=this._a,n=this._b,i=this._c,o=this._d;t=j(t,n,i,o,e[0],3614090360,7),o=j(o,t,n,i,e[1],3905402710,12),i=j(i,o,t,n,e[2],606105819,17),n=j(n,i,o,t,e[3],3250441966,22),t=j(t,n,i,o,e[4],4118548399,7),o=j(o,t,n,i,e[5],1200080426,12),i=j(i,o,t,n,e[6],2821735955,17),n=j(n,i,o,t,e[7],4249261313,22),t=j(t,n,i,o,e[8],1770035416,7),o=j(o,t,n,i,e[9],2336552879,12),i=j(i,o,t,n,e[10],4294925233,17),n=j(n,i,o,t,e[11],2304563134,22),t=j(t,n,i,o,e[12],1804603682,7),o=j(o,t,n,i,e[13],4254626195,12),i=j(i,o,t,n,e[14],2792965006,17),n=j(n,i,o,t,e[15],1236535329,22),t=N(t,n,i,o,e[1],4129170786,5),o=N(o,t,n,i,e[6],3225465664,9),i=N(i,o,t,n,e[11],643717713,14),n=N(n,i,o,t,e[0],3921069994,20),t=N(t,n,i,o,e[5],3593408605,5),o=N(o,t,n,i,e[10],38016083,9),i=N(i,o,t,n,e[15],3634488961,14),n=N(n,i,o,t,e[4],3889429448,20),t=N(t,n,i,o,e[9],568446438,5),o=N(o,t,n,i,e[14],3275163606,9),i=N(i,o,t,n,e[3],4107603335,14),n=N(n,i,o,t,e[8],1163531501,20),t=N(t,n,i,o,e[13],2850285829,5),o=N(o,t,n,i,e[2],4243563512,9),i=N(i,o,t,n,e[7],1735328473,14),n=N(n,i,o,t,e[12],2368359562,20),t=W(t,n,i,o,e[5],4294588738,4),o=W(o,t,n,i,e[8],2272392833,11),i=W(i,o,t,n,e[11],1839030562,16),n=W(n,i,o,t,e[14],4259657740,23),t=W(t,n,i,o,e[1],2763975236,4),o=W(o,t,n,i,e[4],1272893353,11),i=W(i,o,t,n,e[7],4139469664,16),n=W(n,i,o,t,e[10],3200236656,23),t=W(t,n,i,o,e[13],681279174,4),o=W(o,t,n,i,e[0],3936430074,11),i=W(i,o,t,n,e[3],3572445317,16),n=W(n,i,o,t,e[6],76029189,23),t=W(t,n,i,o,e[9],3654602809,4),o=W(o,t,n,i,e[12],3873151461,11),i=W(i,o,t,n,e[15],530742520,16),n=W(n,i,o,t,e[2],3299628645,23),t=$(t,n,i,o,e[0],4096336452,6),o=$(o,t,n,i,e[7],1126891415,10),i=$(i,o,t,n,e[14],2878612391,15),n=$(n,i,o,t,e[5],4237533241,21),t=$(t,n,i,o,e[12],1700485571,6),o=$(o,t,n,i,e[3],2399980690,10),i=$(i,o,t,n,e[10],4293915773,15),n=$(n,i,o,t,e[1],2240044497,21),t=$(t,n,i,o,e[8],1873313359,6),o=$(o,t,n,i,e[15],4264355552,10),i=$(i,o,t,n,e[6],2734768916,15),n=$(n,i,o,t,e[13],1309151649,21),t=$(t,n,i,o,e[4],4149444226,6),o=$(o,t,n,i,e[11],3174756917,10),i=$(i,o,t,n,e[2],718787259,15),n=$(n,i,o,t,e[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0};fn.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=$b.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function un(e,r){return e<<r|e>>>32-r}function j(e,r,t,n,i,o,a){return un(e+(r&t|~r&n)+i+o|0,a)+r|0}function N(e,r,t,n,i,o,a){return un(e+(r&n|t&~n)+i+o|0,a)+r|0}function W(e,r,t,n,i,o,a){return un(e+(r^t^n)+i+o|0,a)+r|0}function $(e,r,t,n,i,o,a){return un(e+(t^(r|~n))+i+o|0,a)+r|0}al.exports=fn});var ul=d((Fm,fl)=>{u();var Gb={}.toString;fl.exports=Array.isArray||function(e){return Gb.call(e)=="[object Array]"}});var ll=d((km,sl)=>{"use strict";u();var Vb=Pe(),Kb=ke(),zb=Kb("TypedArray.prototype.buffer",!0),Yb=wi();sl.exports=zb||function(r){if(!Yb(r))throw new Vb("Not a Typed Array");return r.buffer}});var sn=d((Lm,hl)=>{"use strict";u();var Q=D().Buffer,Jb=ul(),Xb=ll(),Zb=ArrayBuffer.isView||function(r){try{return Xb(r),!0}catch{return!1}},Qb=typeof Uint8Array<"u",cl=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",eg=cl&&(Q.prototype instanceof Uint8Array||Q.TYPED_ARRAY_SUPPORT);hl.exports=function(r,t){if(Q.isBuffer(r))return r.constructor&&!("isBuffer"in r)?Q.from(r):r;if(typeof r=="string")return Q.from(r,t);if(cl&&Zb(r)){if(r.byteLength===0)return Q.alloc(0);if(eg){var n=Q.from(r.buffer,r.byteOffset,r.byteLength);if(n.byteLength===r.byteLength)return n}var i=r instanceof Uint8Array?r:new Uint8Array(r.buffer,r.byteOffset,r.byteLength),o=Q.from(i);if(o.length===r.byteLength)return o}if(Qb&&r instanceof Uint8Array)return Q.from(r);var a=Jb(r);if(a)for(var f=0;f<r.length;f+=1){var l=r[f];if(typeof l!="number"||l<0||l>255||~~l!==l)throw new RangeError("Array items must be numbers in the range 0-255.")}if(a||Q.isBuffer(r)&&r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))return Q.from(r);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var bl=d((jm,yl)=>{"use strict";u();var rg=D().Buffer,tg=sn(),pl=typeof Uint8Array<"u",ng=pl&&typeof ArrayBuffer<"u",dl=ng&&ArrayBuffer.isView;yl.exports=function(e,r){if(typeof e=="string"||rg.isBuffer(e)||pl&&e instanceof Uint8Array||dl&&dl(e))return tg(e,r);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Hr=d((Wm,to)=>{"use strict";u();typeof s.default>"u"||!s.default.version||s.default.version.indexOf("v0.")===0||s.default.version.indexOf("v1.")===0&&s.default.version.indexOf("v1.8.")!==0?to.exports={nextTick:ig}:to.exports=s.default;function ig(e,r,t,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,o,a;switch(i){case 0:case 1:return s.default.nextTick(e);case 2:return s.default.nextTick(function(){e.call(null,r)});case 3:return s.default.nextTick(function(){e.call(null,r,t)});case 4:return s.default.nextTick(function(){e.call(null,r,t,n)});default:for(o=new Array(i-1),a=0;a<o.length;)o[a++]=arguments[a];return s.default.nextTick(function(){e.apply(null,o)})}}});var wl=d((Hm,gl)=>{u();var og={}.toString;gl.exports=Array.isArray||function(e){return og.call(e)=="[object Array]"}});var no=d((Vm,vl)=>{u();vl.exports=tr().EventEmitter});var cn=d((io,ml)=>{u();var ln=oe(),ye=ln.Buffer;function _l(e,r){for(var t in e)r[t]=e[t]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?ml.exports=ln:(_l(ln,io),io.Buffer=wr);function wr(e,r,t){return ye(e,r,t)}_l(ye,wr);wr.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ye(e,r,t)};wr.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ye(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};wr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ye(e)};wr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ln.SlowBuffer(e)}});var vr=d(H=>{u();function ag(e){return Array.isArray?Array.isArray(e):hn(e)==="[object Array]"}H.isArray=ag;function fg(e){return typeof e=="boolean"}H.isBoolean=fg;function ug(e){return e===null}H.isNull=ug;function sg(e){return e==null}H.isNullOrUndefined=sg;function lg(e){return typeof e=="number"}H.isNumber=lg;function cg(e){return typeof e=="string"}H.isString=cg;function hg(e){return typeof e=="symbol"}H.isSymbol=hg;function dg(e){return e===void 0}H.isUndefined=dg;function pg(e){return hn(e)==="[object RegExp]"}H.isRegExp=pg;function yg(e){return typeof e=="object"&&e!==null}H.isObject=yg;function bg(e){return hn(e)==="[object Date]"}H.isDate=bg;function gg(e){return hn(e)==="[object Error]"||e instanceof Error}H.isError=gg;function wg(e){return typeof e=="function"}H.isFunction=wg;function vg(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}H.isPrimitive=vg;H.isBuffer=oe().Buffer.isBuffer;function hn(e){return Object.prototype.toString.call(e)}});var El=d((Xm,oo)=>{"use strict";u();function _g(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var xl=cn().Buffer,Gr=kr();function mg(e,r,t){e.copy(r,t)}oo.exports=(function(){function e(){_g(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i},e.prototype.concat=function(t){if(this.length===0)return xl.alloc(0);for(var n=xl.allocUnsafe(t>>>0),i=this.head,o=0;i;)mg(i.data,n,o),o+=i.data.length,i=i.next;return n},e})();Gr&&Gr.inspect&&Gr.inspect.custom&&(oo.exports.prototype[Gr.inspect.custom]=function(){var e=Gr.inspect({length:this.length});return this.constructor.name+" "+e})});var ao=d((Qm,Sl)=>{"use strict";u();var dn=Hr();function xg(e,r){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,dn.nextTick(pn,this,e)):dn.nextTick(pn,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!r&&o?t._writableState?t._writableState.errorEmitted||(t._writableState.errorEmitted=!0,dn.nextTick(pn,t,o)):dn.nextTick(pn,t,o):r&&r(o)}),this)}function Eg(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function pn(e,r){e.emit("error",r)}Sl.exports={destroy:xg,undestroy:Eg}});var uo=d((rx,Ml)=>{"use strict";u();var He=Hr();Ml.exports=P;function Bl(e){var r=this;this.next=null,this.entry=null,this.finish=function(){Ng(r,e)}}var Sg=!s.default.browser&&["v0.10","v0.9."].indexOf(s.default.version.slice(0,5))>-1?setImmediate:He.nextTick,_r;P.WritableState=Kr;var Rl=Object.create(vr());Rl.inherits=R();var Ag={deprecate:qi()},Tl=no(),bn=cn().Buffer,Bg=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Rg(e){return bn.from(e)}function Tg(e){return bn.isBuffer(e)||e instanceof Bg}var Ol=ao();Rl.inherits(P,Tl);function Og(){}function Kr(e,r){_r=_r||Ge(),e=e||{};var t=r instanceof _r;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(f){kg(r,f)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Bl(this)}Kr.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(Kr.prototype,"buffer",{get:Ag.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var yn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yn=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return yn.call(this,e)?!0:this!==P?!1:e&&e._writableState instanceof Kr}})):yn=function(e){return e instanceof this};function P(e){if(_r=_r||Ge(),!yn.call(P,this)&&!(this instanceof _r))return new P(e);this._writableState=new Kr(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Tl.call(this)}P.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Ig(e,r){var t=new Error("write after end");e.emit("error",t),He.nextTick(r,t)}function qg(e,r,t,n){var i=!0,o=!1;return t===null?o=new TypeError("May not write null values to stream"):typeof t!="string"&&t!==void 0&&!r.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),He.nextTick(n,o),i=!1),i}P.prototype.write=function(e,r,t){var n=this._writableState,i=!1,o=!n.objectMode&&Tg(e);return o&&!bn.isBuffer(e)&&(e=Rg(e)),typeof r=="function"&&(t=r,r=null),o?r="buffer":r||(r=n.defaultEncoding),typeof t!="function"&&(t=Og),n.ended?Ig(this,t):(o||qg(this,n,e,t))&&(n.pendingcb++,i=Pg(this,n,o,e,r,t)),i};P.prototype.cork=function(){var e=this._writableState;e.corked++};P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Il(this,e))};P.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);return this._writableState.defaultEncoding=r,this};function Mg(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=bn.from(r,t)),r}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Pg(e,r,t,n,i,o){if(!t){var a=Mg(r,n,i);n!==a&&(t=!0,i="buffer",n=a)}var f=r.objectMode?1:n.length;r.length+=f;var l=r.length<r.highWaterMark;if(l||(r.needDrain=!0),r.writing||r.corked){var h=r.lastBufferedRequest;r.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:o,next:null},h?h.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else fo(e,r,!1,f,n,i,o);return l}function fo(e,r,t,n,i,o,a){r.writelen=n,r.writecb=a,r.writing=!0,r.sync=!0,t?e._writev(i,r.onwrite):e._write(i,o,r.onwrite),r.sync=!1}function Fg(e,r,t,n,i){--r.pendingcb,t?(He.nextTick(i,n),He.nextTick(Vr,e,r),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),Vr(e,r))}function Cg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function kg(e,r){var t=e._writableState,n=t.sync,i=t.writecb;if(Cg(t),r)Fg(e,t,n,r,i);else{var o=ql(t);!o&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Il(e,t),n?Sg(Al,e,t,o,i):Al(e,t,o,i)}}function Al(e,r,t,n){t||Ug(e,r),r.pendingcb--,n(),Vr(e,r)}function Ug(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function Il(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var n=r.bufferedRequestCount,i=new Array(n),o=r.corkedRequestsFree;o.entry=t;for(var a=0,f=!0;t;)i[a]=t,t.isBuf||(f=!1),t=t.next,a+=1;i.allBuffers=f,fo(e,r,!0,r.length,i,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new Bl(r),r.bufferedRequestCount=0}else{for(;t;){var l=t.chunk,h=t.encoding,p=t.callback,b=r.objectMode?1:l.length;if(fo(e,r,!1,b,l,h,p),t=t.next,r.bufferedRequestCount--,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=t,r.bufferProcessing=!1}P.prototype._write=function(e,r,t){t(new Error("_write() is not implemented"))};P.prototype._writev=null;P.prototype.end=function(e,r,t){var n=this._writableState;typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),n.corked&&(n.corked=1,this.uncork()),n.ending||jg(this,n,t)};function ql(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Lg(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),Vr(e,r)})}function Dg(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"?(r.pendingcb++,r.finalCalled=!0,He.nextTick(Lg,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function Vr(e,r){var t=ql(r);return t&&(Dg(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"))),t}function jg(e,r,t){r.ending=!0,Vr(e,r),t&&(r.finished?He.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function Ng(e,r,t){var n=e.entry;for(e.entry=null;n;){var i=n.callback;r.pendingcb--,i(t),n=n.next}r.corkedRequestsFree.next=e}Object.defineProperty(P.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});P.prototype.destroy=Ol.destroy;P.prototype._undestroy=Ol.undestroy;P.prototype._destroy=function(e,r){this.end(),r(e)}});var Ge=d((nx,kl)=>{"use strict";u();var Pl=Hr(),Wg=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};kl.exports=be;var Fl=Object.create(vr());Fl.inherits=R();var Cl=co(),lo=uo();Fl.inherits(be,Cl);for(so=Wg(lo.prototype),gn=0;gn<so.length;gn++)wn=so[gn],be.prototype[wn]||(be.prototype[wn]=lo.prototype[wn]);var so,wn,gn;function be(e){if(!(this instanceof be))return new be(e);Cl.call(this,e),lo.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",$g)}Object.defineProperty(be.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function $g(){this.allowHalfOpen||this._writableState.ended||Pl.nextTick(Hg,this)}function Hg(e){e.end()}Object.defineProperty(be.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});be.prototype._destroy=function(e,r){this.push(null),this.end(),Pl.nextTick(r,e)}});var co=d((ax,zl)=>{"use strict";u();var xr=Hr();zl.exports=T;var Gg=wl(),zr;T.ReadableState=$l;var ox=tr().EventEmitter,jl=function(e,r){return e.listeners(r).length},go=no(),Yr=cn().Buffer,Vg=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Kg(e){return Yr.from(e)}function zg(e){return Yr.isBuffer(e)||e instanceof Vg}var Nl=Object.create(vr());Nl.inherits=R();var ho=kr(),A=void 0;ho&&ho.debuglog?A=ho.debuglog("stream"):A=function(){};var Yg=El(),Wl=ao(),mr;Nl.inherits(T,go);var po=["error","close","destroy","pause","resume"];function Jg(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Gg(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function $l(e,r){zr=zr||Ge(),e=e||{};var t=r instanceof zr;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Yg,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(mr||(mr=yr().StringDecoder),this.decoder=new mr(e.encoding),this.encoding=e.encoding)}function T(e){if(zr=zr||Ge(),!(this instanceof T))return new T(e);this._readableState=new $l(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),go.call(this)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});T.prototype.destroy=Wl.destroy;T.prototype._undestroy=Wl.undestroy;T.prototype._destroy=function(e,r){this.push(null),r(e)};T.prototype.push=function(e,r){var t=this._readableState,n;return t.objectMode?n=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=Yr.from(e,r),r=""),n=!0),Hl(this,e,r,!1,n)};T.prototype.unshift=function(e){return Hl(this,e,null,!0,!1)};function Hl(e,r,t,n,i){var o=e._readableState;if(r===null)o.reading=!1,ew(e,o);else{var a;i||(a=Xg(o,r)),a?e.emit("error",a):o.objectMode||r&&r.length>0?(typeof r!="string"&&!o.objectMode&&Object.getPrototypeOf(r)!==Yr.prototype&&(r=Kg(r)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):yo(e,o,r,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!t?(r=o.decoder.write(r),o.objectMode||r.length!==0?yo(e,o,r,!1):Gl(e,o)):yo(e,o,r,!1))):n||(o.reading=!1)}return Zg(o)}function yo(e,r,t,n){r.flowing&&r.length===0&&!r.sync?(e.emit("data",t),e.read(0)):(r.length+=r.objectMode?1:t.length,n?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&vn(e)),Gl(e,r)}function Xg(e,r){var t;return!zg(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new TypeError("Invalid non-string/buffer chunk")),t}function Zg(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}T.prototype.isPaused=function(){return this._readableState.flowing===!1};T.prototype.setEncoding=function(e){return mr||(mr=yr().StringDecoder),this._readableState.decoder=new mr(e),this._readableState.encoding=e,this};var Ul=8388608;function Qg(e){return e>=Ul?e=Ul:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Ll(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=Qg(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}T.prototype.read=function(e){A("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return A("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?bo(this):vn(this),null;if(e=Ll(e,r),e===0&&r.ended)return r.length===0&&bo(this),null;var n=r.needReadable;A("need readable",n),(r.length===0||r.length-e<r.highWaterMark)&&(n=!0,A("length less than watermark",n)),r.ended||r.reading?(n=!1,A("reading or ended",n)):n&&(A("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=Ll(t,r)));var i;return e>0?i=Vl(e,r):i=null,i===null?(r.needReadable=!0,e=0):r.length-=e,r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&bo(this)),i!==null&&this.emit("data",i),i};function ew(e,r){if(!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,vn(e)}}function vn(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(A("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?xr.nextTick(Dl,e):Dl(e))}function Dl(e){A("emit readable"),e.emit("readable"),wo(e)}function Gl(e,r){r.readingMore||(r.readingMore=!0,xr.nextTick(rw,e,r))}function rw(e,r){for(var t=r.length;!r.reading&&!r.flowing&&!r.ended&&r.length<r.highWaterMark&&(A("maybeReadMore read 0"),e.read(0),t!==r.length);)t=r.length;r.readingMore=!1}T.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};T.prototype.pipe=function(e,r){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,A("pipe count=%d opts=%j",n.pipesCount,r);var i=(!r||r.end!==!1)&&e!==s.default.stdout&&e!==s.default.stderr,o=i?f:C;n.endEmitted?xr.nextTick(o):t.once("end",o),e.on("unpipe",a);function a(F,I){A("onunpipe"),F===t&&I&&I.hasUnpiped===!1&&(I.hasUnpiped=!0,p())}function f(){A("onend"),e.end()}var l=tw(t);e.on("drain",l);var h=!1;function p(){A("cleanup"),e.removeListener("close",v),e.removeListener("finish",O),e.removeListener("drain",l),e.removeListener("error",w),e.removeListener("unpipe",a),t.removeListener("end",f),t.removeListener("end",C),t.removeListener("data",g),h=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}var b=!1;t.on("data",g);function g(F){A("ondata"),b=!1;var I=e.write(F);I===!1&&!b&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Kl(n.pipes,e)!==-1)&&!h&&(A("false write response, pause",n.awaitDrain),n.awaitDrain++,b=!0),t.pause())}function w(F){A("onerror",F),C(),e.removeListener("error",w),jl(e,"error")===0&&e.emit("error",F)}Jg(e,"error",w);function v(){e.removeListener("finish",O),C()}e.once("close",v);function O(){A("onfinish"),e.removeListener("close",v),C()}e.once("finish",O);function C(){A("unpipe"),t.unpipe(e)}return e.emit("pipe",t),n.flowing||(A("pipe resume"),t.resume()),e};function tw(e){return function(){var r=e._readableState;A("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&jl(e,"data")&&(r.flowing=!0,wo(e))}}T.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=r.pipes,i=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Kl(r.pipes,e);return a===-1?this:(r.pipes.splice(a,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};T.prototype.on=function(e,r){var t=go.prototype.on.call(this,e,r);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&vn(this):xr.nextTick(nw,this))}return t};T.prototype.addListener=T.prototype.on;function nw(e){A("readable nexttick read 0"),e.read(0)}T.prototype.resume=function(){var e=this._readableState;return e.flowing||(A("resume"),e.flowing=!0,iw(this,e)),this};function iw(e,r){r.resumeScheduled||(r.resumeScheduled=!0,xr.nextTick(ow,e,r))}function ow(e,r){r.reading||(A("resume read 0"),e.read(0)),r.resumeScheduled=!1,r.awaitDrain=0,e.emit("resume"),wo(e),r.flowing&&!r.reading&&e.read(0)}T.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function wo(e){var r=e._readableState;for(A("flow",r.flowing);r.flowing&&e.read()!==null;);}T.prototype.wrap=function(e){var r=this,t=this._readableState,n=!1;e.on("end",function(){if(A("wrapped end"),t.decoder&&!t.ended){var a=t.decoder.end();a&&a.length&&r.push(a)}r.push(null)}),e.on("data",function(a){if(A("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!(t.objectMode&&a==null)&&!(!t.objectMode&&(!a||!a.length))){var f=r.push(a);f||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(a){return function(){return e[a].apply(e,arguments)}})(i));for(var o=0;o<po.length;o++)e.on(po[o],this.emit.bind(this,po[o]));return this._read=function(a){A("wrapped _read",a),n&&(n=!1,e.resume())},this};Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});T._fromList=Vl;function Vl(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.head.data:t=r.buffer.concat(r.length),r.buffer.clear()):t=aw(e,r.buffer,r.decoder),t}function aw(e,r,t){var n;return e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):e===r.head.data.length?n=r.shift():n=t?fw(e,r):uw(e,r),n}function fw(e,r){var t=r.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var o=t.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,e===0){a===o.length?(++n,t.next?r.head=t.next:r.head=r.tail=null):(r.head=t,t.data=o.slice(a));break}++n}return r.length-=n,i}function uw(e,r){var t=Yr.allocUnsafe(e),n=r.head,i=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),e-=a,e===0){a===o.length?(++i,n.next?r.head=n.next:r.head=r.tail=null):(r.head=n,n.data=o.slice(a));break}++i}return r.length-=i,t}function bo(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,xr.nextTick(sw,r,e))}function sw(e,r){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"))}function Kl(e,r){for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}});var vo=d((ux,Xl)=>{"use strict";u();Xl.exports=ge;var _n=Ge(),Jl=Object.create(vr());Jl.inherits=R();Jl.inherits(ge,_n);function lw(e,r){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,r!=null&&this.push(r),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ge(e){if(!(this instanceof ge))return new ge(e);_n.call(this,e),this._transformState={afterTransform:lw.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",cw)}function cw(){var e=this;typeof this._flush=="function"?this._flush(function(r,t){Yl(e,r,t)}):Yl(this,null,null)}ge.prototype.push=function(e,r){return this._transformState.needTransform=!1,_n.prototype.push.call(this,e,r)};ge.prototype._transform=function(e,r,t){throw new Error("_transform() is not implemented")};ge.prototype._write=function(e,r,t){var n=this._transformState;if(n.writecb=t,n.writechunk=e,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ge.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};ge.prototype._destroy=function(e,r){var t=this;_n.prototype._destroy.call(this,e,function(n){r(n),t.emit("close")})};function Yl(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var rc=d((lx,ec)=>{"use strict";u();ec.exports=Jr;var Zl=vo(),Ql=Object.create(vr());Ql.inherits=R();Ql.inherits(Jr,Zl);function Jr(e){if(!(this instanceof Jr))return new Jr(e);Zl.call(this,e)}Jr.prototype._transform=function(e,r,t){t(null,e)}});var nc=d((se,tc)=>{u();se=tc.exports=co();se.Stream=se;se.Readable=se;se.Writable=uo();se.Duplex=Ge();se.Transform=vo();se.PassThrough=rc()});var ac=d((dx,oc)=>{"use strict";u();var hw=D().Buffer,dw=bl(),ic=nc().Transform,pw=R();function Re(e){ic.call(this),this._block=hw.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}pw(Re,ic);Re.prototype._transform=function(e,r,t){var n=null;try{this.update(e,r)}catch(i){n=i}t(n)};Re.prototype._flush=function(e){var r=null;try{this.push(this.digest())}catch(t){r=t}e(r)};Re.prototype.update=function(e,r){if(this._finalized)throw new Error("Digest already called");for(var t=dw(e,r),n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o]=t[i],o+=1,i+=1;this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset]=t[i],this._blockOffset+=1,i+=1;for(var a=0,f=t.length*8;f>0;++a)this._length[a]+=f,f=this._length[a]/4294967296|0,f>0&&(this._length[a]-=4294967296*f);return this};Re.prototype._update=function(){throw new Error("_update is not implemented")};Re.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var r=this._digest();e!==void 0&&(r=r.toString(e)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return r};Re.prototype._digest=function(){throw new Error("_digest is not implemented")};oc.exports=Re});var mo=d((yx,dc)=>{"use strict";u();var _o=oe().Buffer,yw=R(),hc=ac(),bw=new Array(16),Xr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Qr=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],et=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],rt=[0,1518500249,1859775393,2400959708,2840853838],tt=[1352829926,1548603684,1836072691,2053994217,0];function Ve(e,r){return e<<r|e>>>32-r}function fc(e,r,t,n,i,o,a,f){return Ve(e+(r^t^n)+o+a|0,f)+i|0}function uc(e,r,t,n,i,o,a,f){return Ve(e+(r&t|~r&n)+o+a|0,f)+i|0}function sc(e,r,t,n,i,o,a,f){return Ve(e+((r|~t)^n)+o+a|0,f)+i|0}function lc(e,r,t,n,i,o,a,f){return Ve(e+(r&n|t&~n)+o+a|0,f)+i|0}function cc(e,r,t,n,i,o,a,f){return Ve(e+(r^(t|~n))+o+a|0,f)+i|0}function mn(){hc.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}yw(mn,hc);mn.prototype._update=function(){for(var e=bw,r=0;r<16;++r)e[r]=this._block.readInt32LE(r*4);for(var t=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,a=this._e|0,f=this._a|0,l=this._b|0,h=this._c|0,p=this._d|0,b=this._e|0,g=0;g<80;g+=1){var w,v;g<16?(w=fc(t,n,i,o,a,e[Xr[g]],rt[0],Qr[g]),v=cc(f,l,h,p,b,e[Zr[g]],tt[0],et[g])):g<32?(w=uc(t,n,i,o,a,e[Xr[g]],rt[1],Qr[g]),v=lc(f,l,h,p,b,e[Zr[g]],tt[1],et[g])):g<48?(w=sc(t,n,i,o,a,e[Xr[g]],rt[2],Qr[g]),v=sc(f,l,h,p,b,e[Zr[g]],tt[2],et[g])):g<64?(w=lc(t,n,i,o,a,e[Xr[g]],rt[3],Qr[g]),v=uc(f,l,h,p,b,e[Zr[g]],tt[3],et[g])):(w=cc(t,n,i,o,a,e[Xr[g]],rt[4],Qr[g]),v=fc(f,l,h,p,b,e[Zr[g]],tt[4],et[g])),t=a,a=o,o=Ve(i,10),i=n,n=w,f=b,b=p,p=Ve(h,10),h=l,l=v}var O=this._b+i+p|0;this._b=this._c+o+b|0,this._c=this._d+a+f|0,this._d=this._e+t+l|0,this._e=this._a+n+h|0,this._a=O};mn.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=_o.alloc?_o.alloc(20):new _o(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};dc.exports=mn});var Ke=d((gx,pc)=>{"use strict";u();var gw=D().Buffer,ww=sn();function xn(e,r){this._block=gw.alloc(e),this._finalSize=r,this._blockSize=e,this._len=0}xn.prototype.update=function(e,r){e=ww(e,r||"utf8");for(var t=this._block,n=this._blockSize,i=e.length,o=this._len,a=0;a<i;){for(var f=o%n,l=Math.min(i-a,n-f),h=0;h<l;h++)t[f+h]=e[a+h];o+=l,a+=l,o%n===0&&this._update(t)}return this._len+=i,this};xn.prototype.digest=function(e){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,i=(t-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o};xn.prototype._update=function(){throw new Error("_update must be implemented by subclass")};pc.exports=xn});var gc=d((vx,bc)=>{"use strict";u();var vw=R(),yc=Ke(),_w=D().Buffer,mw=[1518500249,1859775393,-1894007588,-899497514],xw=new Array(80);function nt(){this.init(),this._w=xw,yc.call(this,64,56)}vw(nt,yc);nt.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Ew(e){return e<<5|e>>>27}function Sw(e){return e<<30|e>>>2}function Aw(e,r,t,n){return e===0?r&t|~r&n:e===2?r&t|r&n|t&n:r^t^n}nt.prototype._update=function(e){for(var r=this._w,t=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,a=this._e|0,f=0;f<16;++f)r[f]=e.readInt32BE(f*4);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var l=0;l<80;++l){var h=~~(l/20),p=Ew(t)+Aw(h,n,i,o)+a+r[l]+mw[h]|0;a=o,o=i,i=Sw(n),n=t,t=p}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0};nt.prototype._hash=function(){var e=_w.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};bc.exports=nt});var _c=d((mx,vc)=>{"use strict";u();var Bw=R(),wc=Ke(),Rw=D().Buffer,Tw=[1518500249,1859775393,-1894007588,-899497514],Ow=new Array(80);function it(){this.init(),this._w=Ow,wc.call(this,64,56)}Bw(it,wc);it.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Iw(e){return e<<1|e>>>31}function qw(e){return e<<5|e>>>27}function Mw(e){return e<<30|e>>>2}function Pw(e,r,t,n){return e===0?r&t|~r&n:e===2?r&t|r&n|t&n:r^t^n}it.prototype._update=function(e){for(var r=this._w,t=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,a=this._e|0,f=0;f<16;++f)r[f]=e.readInt32BE(f*4);for(;f<80;++f)r[f]=Iw(r[f-3]^r[f-8]^r[f-14]^r[f-16]);for(var l=0;l<80;++l){var h=~~(l/20),p=qw(t)+Pw(h,n,i,o)+a+r[l]+Tw[h]|0;a=o,o=i,i=Mw(n),n=t,t=p}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0};it.prototype._hash=function(){var e=Rw.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};vc.exports=it});var xo=d((Ex,xc)=>{"use strict";u();var Fw=R(),mc=Ke(),Cw=D().Buffer,kw=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Uw=new Array(64);function ot(){this.init(),this._w=Uw,mc.call(this,64,56)}Fw(ot,mc);ot.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Lw(e,r,t){return t^e&(r^t)}function Dw(e,r,t){return e&r|t&(e|r)}function jw(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function Nw(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Ww(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function $w(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}ot.prototype._update=function(e){for(var r=this._w,t=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,a=this._e|0,f=this._f|0,l=this._g|0,h=this._h|0,p=0;p<16;++p)r[p]=e.readInt32BE(p*4);for(;p<64;++p)r[p]=$w(r[p-2])+r[p-7]+Ww(r[p-15])+r[p-16]|0;for(var b=0;b<64;++b){var g=h+Nw(a)+Lw(a,f,l)+kw[b]+r[b]|0,w=jw(t)+Dw(t,n,i)|0;h=l,l=f,f=a,a=o+g|0,o=i,i=n,n=t,t=g+w|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=f+this._f|0,this._g=l+this._g|0,this._h=h+this._h|0};ot.prototype._hash=function(){var e=Cw.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};xc.exports=ot});var Sc=d((Ax,Ec)=>{"use strict";u();var Hw=R(),Gw=xo(),Vw=Ke(),Kw=D().Buffer,zw=new Array(64);function En(){this.init(),this._w=zw,Vw.call(this,64,56)}Hw(En,Gw);En.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};En.prototype._hash=function(){var e=Kw.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};Ec.exports=En});var Eo=d((Rx,qc)=>{"use strict";u();var Yw=R(),Ic=Ke(),Jw=D().Buffer,Ac=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Xw=new Array(160);function at(){this.init(),this._w=Xw,Ic.call(this,128,112)}Yw(at,Ic);at.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Bc(e,r,t){return t^e&(r^t)}function Rc(e,r,t){return e&r|t&(e|r)}function Tc(e,r){return(e>>>28|r<<4)^(r>>>2|e<<30)^(r>>>7|e<<25)}function Oc(e,r){return(e>>>14|r<<18)^(e>>>18|r<<14)^(r>>>9|e<<23)}function Zw(e,r){return(e>>>1|r<<31)^(e>>>8|r<<24)^e>>>7}function Qw(e,r){return(e>>>1|r<<31)^(e>>>8|r<<24)^(e>>>7|r<<25)}function ev(e,r){return(e>>>19|r<<13)^(r>>>29|e<<3)^e>>>6}function rv(e,r){return(e>>>19|r<<13)^(r>>>29|e<<3)^(e>>>6|r<<26)}function L(e,r){return e>>>0<r>>>0?1:0}at.prototype._update=function(e){for(var r=this._w,t=this._ah|0,n=this._bh|0,i=this._ch|0,o=this._dh|0,a=this._eh|0,f=this._fh|0,l=this._gh|0,h=this._hh|0,p=this._al|0,b=this._bl|0,g=this._cl|0,w=this._dl|0,v=this._el|0,O=this._fl|0,C=this._gl|0,F=this._hl|0,I=0;I<32;I+=2)r[I]=e.readInt32BE(I*4),r[I+1]=e.readInt32BE(I*4+4);for(;I<160;I+=2){var Sr=r[I-30],Ar=r[I-30+1],Zc=Zw(Sr,Ar),Oo=Qw(Ar,Sr);Sr=r[I-4],Ar=r[I-4+1];var Qc=ev(Sr,Ar),Io=rv(Ar,Sr),eh=r[I-14],rh=r[I-14+1],th=r[I-32],qo=r[I-32+1],X=Oo+rh|0,Te=Zc+eh+L(X,Oo)|0;X=X+Io|0,Te=Te+Qc+L(X,Io)|0,X=X+qo|0,Te=Te+th+L(X,qo)|0,r[I]=Te,r[I+1]=X}for(var Ye=0;Ye<160;Ye+=2){Te=r[Ye],X=r[Ye+1];var nh=Rc(t,n,i),ih=Rc(p,b,g),oh=Tc(t,p),Mo=Tc(p,t),ah=Oc(a,v),fh=Oc(v,a),uh=Ac[Ye],Po=Ac[Ye+1],sh=Bc(a,f,l),Fo=Bc(v,O,C),V=F+fh|0,ve=h+ah+L(V,F)|0;V=V+Fo|0,ve=ve+sh+L(V,Fo)|0,V=V+Po|0,ve=ve+uh+L(V,Po)|0,V=V+X|0,ve=ve+Te+L(V,X)|0;var Co=Mo+ih|0,lh=oh+nh+L(Co,Mo)|0;h=l,F=C,l=f,C=O,f=a,O=v,v=w+V|0,a=o+ve+L(v,w)|0,o=i,w=g,i=n,g=b,n=t,b=p,p=V+Co|0,t=ve+lh+L(p,V)|0}this._al=this._al+p|0,this._bl=this._bl+b|0,this._cl=this._cl+g|0,this._dl=this._dl+w|0,this._el=this._el+v|0,this._fl=this._fl+O|0,this._gl=this._gl+C|0,this._hl=this._hl+F|0,this._ah=this._ah+t+L(this._al,p)|0,this._bh=this._bh+n+L(this._bl,b)|0,this._ch=this._ch+i+L(this._cl,g)|0,this._dh=this._dh+o+L(this._dl,w)|0,this._eh=this._eh+a+L(this._el,v)|0,this._fh=this._fh+f+L(this._fl,O)|0,this._gh=this._gh+l+L(this._gl,C)|0,this._hh=this._hh+h+L(this._hl,F)|0};at.prototype._hash=function(){var e=Jw.allocUnsafe(64);function r(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return r(this._ah,this._al,0),r(this._bh,this._bl,8),r(this._ch,this._cl,16),r(this._dh,this._dl,24),r(this._eh,this._el,32),r(this._fh,this._fl,40),r(this._gh,this._gl,48),r(this._hh,this._hl,56),e};qc.exports=at});var Pc=d((Ox,Mc)=>{"use strict";u();var tv=R(),nv=Eo(),iv=Ke(),ov=D().Buffer,av=new Array(160);function Sn(){this.init(),this._w=av,iv.call(this,128,112)}tv(Sn,nv);Sn.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sn.prototype._hash=function(){var e=ov.allocUnsafe(48);function r(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return r(this._ah,this._al,0),r(this._bh,this._bl,8),r(this._ch,this._cl,16),r(this._dh,this._dl,24),r(this._eh,this._el,32),r(this._fh,this._fl,40),e};Mc.exports=Sn});var So=d((qx,we)=>{"use strict";u();we.exports=function(r){var t=r.toLowerCase(),n=we.exports[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};we.exports.sha=gc();we.exports.sha1=_c();we.exports.sha224=Sc();we.exports.sha256=xo();we.exports.sha384=Pc();we.exports.sha512=Eo()});var An=d((Px,Cc)=>{"use strict";u();var fv=D().Buffer,Fc=eo().Transform,uv=yr().StringDecoder,sv=R(),lv=sn();function ee(e){Fc.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}sv(ee,Fc);ee.prototype.update=function(e,r,t){var n=lv(e,r),i=this._update(n);return this.hashMode?this:(t&&(i=this._toString(i,t)),i)};ee.prototype.setAutoPadding=function(){};ee.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};ee.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};ee.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};ee.prototype._transform=function(e,r,t){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{t(n)}};ee.prototype._flush=function(e){var r;try{this.push(this.__final())}catch(t){r=t}e(r)};ee.prototype._finalOrDigest=function(e){var r=this.__final()||fv.alloc(0);return e&&(r=this._toString(r,e,!0)),r};ee.prototype._toString=function(e,r,t){if(this._decoder||(this._decoder=new uv(r),this._encoding=r),this._encoding!==r)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(e);return t&&(n+=this._decoder.end()),n};Cc.exports=ee});var Lc=d((Cx,Uc)=>{"use strict";u();var cv=R(),hv=ro(),dv=mo(),pv=So(),kc=An();function Bn(e){kc.call(this,"digest"),this._hash=e}cv(Bn,kc);Bn.prototype._update=function(e){this._hash.update(e)};Bn.prototype._final=function(){return this._hash.digest()};Uc.exports=function(r){return r=r.toLowerCase(),r==="md5"?new hv:r==="rmd160"||r==="ripemd160"?new dv:new Bn(pv(r))}});var Nc=d((Ux,jc)=>{"use strict";u();var yv=R(),ze=D().Buffer,Dc=An(),bv=ze.alloc(128),Er=64;function Rn(e,r){Dc.call(this,"digest"),typeof r=="string"&&(r=ze.from(r)),this._alg=e,this._key=r,r.length>Er?r=e(r):r.length<Er&&(r=ze.concat([r,bv],Er));for(var t=this._ipad=ze.allocUnsafe(Er),n=this._opad=ze.allocUnsafe(Er),i=0;i<Er;i++)t[i]=r[i]^54,n[i]=r[i]^92;this._hash=[t]}yv(Rn,Dc);Rn.prototype._update=function(e){this._hash.push(e)};Rn.prototype._final=function(){var e=this._alg(ze.concat(this._hash));return this._alg(ze.concat([this._opad,e]))};jc.exports=Rn});var $c=d((Dx,Wc)=>{u();var gv=ro();Wc.exports=function(e){return new gv().update(e).digest()}});var Vc=d((Nx,Gc)=>{"use strict";u();var wv=R(),vv=Nc(),Hc=An(),ft=D().Buffer,_v=$c(),Ao=mo(),Bo=So(),mv=ft.alloc(128);function ut(e,r){Hc.call(this,"digest"),typeof r=="string"&&(r=ft.from(r));var t=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=r,r.length>t){var n=e==="rmd160"?new Ao:Bo(e);r=n.update(r).digest()}else r.length<t&&(r=ft.concat([r,mv],t));for(var i=this._ipad=ft.allocUnsafe(t),o=this._opad=ft.allocUnsafe(t),a=0;a<t;a++)i[a]=r[a]^54,o[a]=r[a]^92;this._hash=e==="rmd160"?new Ao:Bo(e),this._hash.update(i)}wv(ut,Hc);ut.prototype._update=function(e){this._hash.update(e)};ut.prototype._final=function(){var e=this._hash.digest(),r=this._alg==="rmd160"?new Ao:Bo(this._alg);return r.update(this._opad).update(e).digest()};Gc.exports=function(r,t){return r=r.toLowerCase(),r==="rmd160"||r==="ripemd160"?new ut("rmd160",t):r==="md5"?new vv(_v,t):new ut(r,t)}});var Kc=d(($x,To)=>{"use strict";u();var Ro=65536,xv=4294967295;function Ev(){throw new Error(`Secure random number generation is not supported by this browser.
11
- Use Chrome, Firefox or Internet Explorer 11`)}var Sv=D().Buffer,Tn=globalThis.crypto||globalThis.msCrypto;Tn&&Tn.getRandomValues?To.exports=Av:To.exports=Ev;function Av(e,r){if(e>xv)throw new RangeError("requested too many random bytes");var t=Sv.allocUnsafe(e);if(e>0)if(e>Ro)for(var n=0;n<e;n+=Ro)Tn.getRandomValues(t.slice(n,n+Ro));else Tn.getRandomValues(t);return typeof r=="function"?s.default.nextTick(function(){r(null,t)}):t}});var zc=d(On=>{"use strict";u();On.createHash=Lc();On.createHmac=Vc();On.randomBytes=Kc()});var Jc=d((Kx,Yc)=>{"use strict";u();var In=zc();async function Bv(e){e=e||{};var r=e.alg||"ES256",t=e.kid||"key-"+Date.now();if(r!=="ES256"&&r!=="ES256K")throw new Error("Invalid algorithm. Must be ES256 or ES256K");var n;r==="ES256"?n=In.generateKeyPairSync("ec",{namedCurve:"P-256",publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}):n=In.generateKeyPairSync("ec",{namedCurve:"secp256k1",publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});var i=In.createPublicKey(n.publicKey).export({format:"jwk"}),o=In.createPrivateKey(n.privateKey).export({format:"jwk"});return i.kid=t,i.alg=r,i.use="sig",i.kty="EC",o.kid=t,o.alg=r,o.use="sig",o.kty="EC",{privateJwk:o,publicJwk:i,kid:t,alg:r}}function Rv(e){if(!e.domain)throw new Error("domain is required");var r=e.domain,t="did:web:"+r.replace(/:/g,"%3A"),n=[],i=[];if(e.p256){var o={id:t+"#"+e.p256.kid,type:"JsonWebKey2020",controller:t,publicKeyJwk:e.p256.jwk};n.push(o),i.push(e.p256.jwk)}if(e.k1){var a={id:t+"#"+e.k1.kid,type:"JsonWebKey2020",controller:t,publicKeyJwk:e.k1.jwk};n.push(a),i.push(e.k1.jwk)}if(n.length===0)throw new Error("At least one key (p256 or k1) must be provided");var f={"@context":["https://www.w3.org/ns/did/v1","https://w3id.org/security/suites/jws-2020/v1"],id:t,verificationMethod:n,authentication:n.map(function(h){return h.id}),assertionMethod:n.map(function(h){return h.id})};e.controllerName&&(f.controller=e.controllerName);var l={keys:i};return{did:t,didDocument:f,jwks:l}}function Tv(e){if(!e.domain||!e.newKey)throw new Error("domain and newKey are required");var r=e.domain,t="did:web:"+r.replace(/:/g,"%3A"),n=e.keepOldForDays||30,i={id:t+"#"+e.newKey.kid,type:"JsonWebKey2020",controller:t,publicKeyJwk:e.newKey.jwk},o={"@context":["https://www.w3.org/ns/did/v1","https://w3id.org/security/suites/jws-2020/v1"],id:t,verificationMethod:[i],authentication:[i.id],assertionMethod:[i.id],rotationInfo:{rotatedAt:new Date().toISOString(),gracePeriodDays:n}},a={keys:[e.newKey.jwk]};return{didDocument:o,jwks:a}}Yc.exports={generateIssuerKeys:Bv,buildDidWebDocuments:Rv,rotateIssuerKey:Tv}});var Ov=d((Yx,Xc)=>{u();Xc.exports=Jc()});return Ov();})();
10
+ `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}E.types=Ju();function rs(e){return Array.isArray(e)}E.isArray=rs;function Ai(e){return typeof e=="boolean"}E.isBoolean=Ai;function Ht(e){return e===null}E.isNull=Ht;function M0(e){return e==null}E.isNullOrUndefined=M0;function ts(e){return typeof e=="number"}E.isNumber=ts;function Gt(e){return typeof e=="string"}E.isString=Gt;function P0(e){return typeof e=="symbol"}E.isSymbol=P0;function Ue(e){return e===void 0}E.isUndefined=Ue;function Fr(e){return cr(e)&&Bi(e)==="[object RegExp]"}E.isRegExp=Fr;E.types.isRegExp=Fr;function cr(e){return typeof e=="object"&&e!==null}E.isObject=cr;function $t(e){return cr(e)&&Bi(e)==="[object Date]"}E.isDate=$t;E.types.isDate=$t;function Cr(e){return cr(e)&&(Bi(e)==="[object Error]"||e instanceof Error)}E.isError=Cr;E.types.isNativeError=Cr;function Nt(e){return typeof e=="function"}E.isFunction=Nt;function F0(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}E.isPrimitive=F0;E.isBuffer=Zu();function Bi(e){return Object.prototype.toString.call(e)}function Ei(e){return e<10?"0"+e.toString(10):e.toString(10)}var C0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k0(){var e=new Date,r=[Ei(e.getHours()),Ei(e.getMinutes()),Ei(e.getSeconds())].join(":");return[e.getDate(),C0[e.getMonth()],r].join(" ")}E.log=function(){console.log("%s - %s",k0(),E.format.apply(E,arguments))};E.inherits=R();E._extend=function(e,r){if(!r||!cr(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e};function ns(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Le=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;E.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(Le&&r[Le]){var t=r[Le];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Le,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,i,o=new Promise(function(s,d){n=s,i=d}),a=[],f=0;f<arguments.length;f++)a.push(arguments[f]);a.push(function(s,d){s?i(s):n(d)});try{r.apply(this,a)}catch(s){i(s)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(r)),Le&&Object.defineProperty(t,Le,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Qu(r))};E.promisify.custom=Le;function L0(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function U0(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function r(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(f){l.default.nextTick(a.bind(null,null,f))},function(f){l.default.nextTick(L0.bind(null,f,a))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Qu(e)),r}E.callbackify=U0});var ss=p((Q1,us)=>{"use strict";u();function is(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function os(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?is(Object(t),!0).forEach(function(n){D0(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):is(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function D0(e,r,t){return r=fs(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function j0(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function as(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fs(n.key),n)}}function N0(e,r,t){return r&&as(e.prototype,r),t&&as(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fs(e){var r=W0(e,"string");return typeof r=="symbol"?r:String(r)}function W0(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var $0=oe(),Vt=$0.Buffer,H0=kr(),Ri=H0.inspect,G0=Ri&&Ri.custom||"inspect";function V0(e,r,t){Vt.prototype.copy.call(e,r,t)}us.exports=(function(){function e(){j0(this,e),this.head=null,this.tail=null,this.length=0}return N0(e,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return Vt.alloc(0);for(var n=Vt.allocUnsafe(t>>>0),i=this.head,o=0;i;)V0(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,o=n.data;for(t-=o.length;n=n.next;){var a=n.data,f=t>a.length?a.length:t;if(f===a.length?o+=a:o+=a.slice(0,t),t-=f,t===0){f===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(f));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(t){var n=Vt.allocUnsafe(t),i=this.head,o=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var a=i.data,f=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,f),t-=f,t===0){f===a.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(f));break}++o}return this.length-=o,n}},{key:G0,value:function(t,n){return Ri(this,os(os({},n),{},{depth:0,customInspect:!1}))}}]),e})()});var Oi=p((rm,cs)=>{"use strict";u();function K0(e,r){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,l.default.nextTick(Ti,this,e)):l.default.nextTick(Ti,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!r&&o?t._writableState?t._writableState.errorEmitted?l.default.nextTick(Kt,t):(t._writableState.errorEmitted=!0,l.default.nextTick(ls,t,o)):l.default.nextTick(ls,t,o):r?(l.default.nextTick(Kt,t),r(o)):l.default.nextTick(Kt,t)}),this)}function ls(e,r){Ti(e,r),Kt(e)}function Kt(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function z0(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ti(e,r){e.emit("error",r)}function Y0(e,r){var t=e._readableState,n=e._writableState;t&&t.autoDestroy||n&&n.autoDestroy?e.destroy(r):e.emit("error",r)}cs.exports={destroy:K0,undestroy:z0,errorOrDestroy:Y0}});var De=p((nm,ps)=>{"use strict";u();function J0(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var ds={};function Y(e,r,t){t||(t=Error);function n(o,a,f){return typeof r=="string"?r:r(o,a,f)}var i=(function(o){J0(a,o);function a(f,s,d){return o.call(this,n(f,s,d))||this}return a})(t);i.prototype.name=t.name,i.prototype.code=e,ds[e]=i}function hs(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(n){return String(n)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function X0(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function Z0(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function Q0(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Y("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Y("ERR_INVALID_ARG_TYPE",function(e,r,t){var n;typeof r=="string"&&X0(r,"not ")?(n="must not be",r=r.replace(/^not /,"")):n="must be";var i;if(Z0(e," argument"))i="The ".concat(e," ").concat(n," ").concat(hs(r,"type"));else{var o=Q0(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(o," ").concat(n," ").concat(hs(r,"type"))}return i+=". Received type ".concat(typeof t),i},TypeError);Y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y("ERR_STREAM_WRITE_AFTER_END","write after end");Y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ps.exports.codes=ds});var Ii=p((om,ys)=>{"use strict";u();var ey=De().codes.ERR_INVALID_OPT_VALUE;function ry(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function ty(e,r,t,n){var i=ry(r,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?t:"highWaterMark";throw new ey(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}ys.exports={getHighWaterMark:ty}});var Mi=p((fm,bs)=>{u();bs.exports=ny;function ny(e,r){if(qi("noDeprecation"))return e;var t=!1;function n(){if(!t){if(qi("throwDeprecation"))throw new Error(r);qi("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return n}function qi(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var Ci=p((sm,xs)=>{"use strict";u();xs.exports=q;function ws(e){var r=this;this.next=null,this.entry=null,this.finish=function(){Iy(r,e)}}var hr;q.WritableState=Ur;var iy={deprecate:Mi()},vs=Kn(),Yt=oe().Buffer,oy=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ay(e){return Yt.from(e)}function fy(e){return Yt.isBuffer(e)||e instanceof oy}var Fi=Oi(),uy=Ii(),sy=uy.getHighWaterMark,xe=De().codes,ly=xe.ERR_INVALID_ARG_TYPE,cy=xe.ERR_METHOD_NOT_IMPLEMENTED,hy=xe.ERR_MULTIPLE_CALLBACK,dy=xe.ERR_STREAM_CANNOT_PIPE,py=xe.ERR_STREAM_DESTROYED,yy=xe.ERR_STREAM_NULL_VALUES,by=xe.ERR_STREAM_WRITE_AFTER_END,gy=xe.ERR_UNKNOWN_ENCODING,dr=Fi.errorOrDestroy;R()(q,vs);function wy(){}function Ur(e,r,t){hr=hr||je(),e=e||{},typeof t!="boolean"&&(t=r instanceof hr),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=sy(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Ay(r,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ws(this)}Ur.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(Ur.prototype,"buffer",{get:iy.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var zt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zt=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:function(r){return zt.call(this,r)?!0:this!==q?!1:r&&r._writableState instanceof Ur}})):zt=function(r){return r instanceof this};function q(e){hr=hr||je();var r=this instanceof hr;if(!r&&!zt.call(q,this))return new q(e);this._writableState=new Ur(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),vs.call(this)}q.prototype.pipe=function(){dr(this,new dy)};function vy(e,r){var t=new by;dr(e,t),l.default.nextTick(r,t)}function _y(e,r,t,n){var i;return t===null?i=new yy:typeof t!="string"&&!r.objectMode&&(i=new ly("chunk",["string","Buffer"],t)),i?(dr(e,i),l.default.nextTick(n,i),!1):!0}q.prototype.write=function(e,r,t){var n=this._writableState,i=!1,o=!n.objectMode&&fy(e);return o&&!Yt.isBuffer(e)&&(e=ay(e)),typeof r=="function"&&(t=r,r=null),o?r="buffer":r||(r=n.defaultEncoding),typeof t!="function"&&(t=wy),n.ending?vy(this,t):(o||_y(this,n,e,t))&&(n.pendingcb++,i=xy(this,n,o,e,r,t)),i};q.prototype.cork=function(){this._writableState.corked++};q.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&_s(this,e))};q.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new gy(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function my(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=Yt.from(r,t)),r}Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function xy(e,r,t,n,i,o){if(!t){var a=my(r,n,i);n!==a&&(t=!0,i="buffer",n=a)}var f=r.objectMode?1:n.length;r.length+=f;var s=r.length<r.highWaterMark;if(s||(r.needDrain=!0),r.writing||r.corked){var d=r.lastBufferedRequest;r.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:o,next:null},d?d.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else Pi(e,r,!1,f,n,i,o);return s}function Pi(e,r,t,n,i,o,a){r.writelen=n,r.writecb=a,r.writing=!0,r.sync=!0,r.destroyed?r.onwrite(new py("write")):t?e._writev(i,r.onwrite):e._write(i,o,r.onwrite),r.sync=!1}function Ey(e,r,t,n,i){--r.pendingcb,t?(l.default.nextTick(i,n),l.default.nextTick(Lr,e,r),e._writableState.errorEmitted=!0,dr(e,n)):(i(n),e._writableState.errorEmitted=!0,dr(e,n),Lr(e,r))}function Sy(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Ay(e,r){var t=e._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new hy;if(Sy(t),r)Ey(e,t,n,r,i);else{var o=ms(t)||e.destroyed;!o&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&_s(e,t),n?l.default.nextTick(gs,e,t,o,i):gs(e,t,o,i)}}function gs(e,r,t,n){t||By(e,r),r.pendingcb--,n(),Lr(e,r)}function By(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function _s(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var n=r.bufferedRequestCount,i=new Array(n),o=r.corkedRequestsFree;o.entry=t;for(var a=0,f=!0;t;)i[a]=t,t.isBuf||(f=!1),t=t.next,a+=1;i.allBuffers=f,Pi(e,r,!0,r.length,i,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new ws(r),r.bufferedRequestCount=0}else{for(;t;){var s=t.chunk,d=t.encoding,h=t.callback,b=r.objectMode?1:s.length;if(Pi(e,r,!1,b,s,d,h),t=t.next,r.bufferedRequestCount--,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=t,r.bufferProcessing=!1}q.prototype._write=function(e,r,t){t(new cy("_write()"))};q.prototype._writev=null;q.prototype.end=function(e,r,t){var n=this._writableState;return typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),n.corked&&(n.corked=1,this.uncork()),n.ending||Oy(this,n,t),this};Object.defineProperty(q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ms(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Ry(e,r){e._final(function(t){r.pendingcb--,t&&dr(e,t),r.prefinished=!0,e.emit("prefinish"),Lr(e,r)})}function Ty(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"&&!r.destroyed?(r.pendingcb++,r.finalCalled=!0,l.default.nextTick(Ry,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function Lr(e,r){var t=ms(r);if(t&&(Ty(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return t}function Oy(e,r,t){r.ending=!0,Lr(e,r),t&&(r.finished?l.default.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function Iy(e,r,t){var n=e.entry;for(e.entry=null;n;){var i=n.callback;r.pendingcb--,i(t),n=n.next}r.corkedRequestsFree.next=e}Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}});q.prototype.destroy=Fi.destroy;q.prototype._undestroy=Fi.undestroy;q.prototype._destroy=function(e,r){r(e)}});var je=p((cm,Ss)=>{"use strict";u();var qy=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Ss.exports=fe;var Es=Ui(),Li=Ci();R()(fe,Es);for(ki=qy(Li.prototype),Jt=0;Jt<ki.length;Jt++)Xt=ki[Jt],fe.prototype[Xt]||(fe.prototype[Xt]=Li.prototype[Xt]);var ki,Xt,Jt;function fe(e){if(!(this instanceof fe))return new fe(e);Es.call(this,e),Li.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",My)))}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(fe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(fe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function My(){this._writableState.ended||l.default.nextTick(Py,this)}function Py(e){e.end()}Object.defineProperty(fe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(r){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=r,this._writableState.destroyed=r)}})});var Rs=p((Di,Bs)=>{u();var Zt=oe(),de=Zt.Buffer;function As(e,r){for(var t in e)r[t]=e[t]}de.from&&de.alloc&&de.allocUnsafe&&de.allocUnsafeSlow?Bs.exports=Zt:(As(Zt,Di),Di.Buffer=pr);function pr(e,r,t){return de(e,r,t)}As(de,pr);pr.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return de(e,r,t)};pr.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=de(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};pr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return de(e)};pr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Zt.SlowBuffer(e)}});var yr=p(Os=>{"use strict";u();var Ni=Rs().Buffer,Ts=Ni.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Fy(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function Cy(e){var r=Fy(e);if(typeof r!="string"&&(Ni.isEncoding===Ts||!Ts(e)))throw new Error("Unknown encoding: "+e);return r||e}Os.StringDecoder=Dr;function Dr(e){this.encoding=Cy(e);var r;switch(this.encoding){case"utf16le":this.text=Ny,this.end=Wy,r=4;break;case"utf8":this.fillLast=Uy,r=4;break;case"base64":this.text=$y,this.end=Hy,r=3;break;default:this.write=Gy,this.end=Vy;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ni.allocUnsafe(r)}Dr.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<e.length?r?r+this.text(e,t):this.text(e,t):r||""};Dr.prototype.end=jy;Dr.prototype.text=Dy;Dr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function ji(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function ky(e,r,t){var n=r.length-1;if(n<t)return 0;var i=ji(r[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<t||i===-2?0:(i=ji(r[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<t||i===-2?0:(i=ji(r[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Ly(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Uy(e){var r=this.lastTotal-this.lastNeed,t=Ly(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function Dy(e,r){var t=ky(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",r,n)}function jy(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function Ny(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function Wy(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function $y(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function Hy(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function Gy(e){return e.toString(this.encoding)}function Vy(e){return e&&e.length?this.write(e):""}});var Qt=p((bm,Ms)=>{"use strict";u();var Is=De().codes.ERR_STREAM_PREMATURE_CLOSE;function Ky(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];e.apply(this,n)}}}function zy(){}function Yy(e){return e.setHeader&&typeof e.abort=="function"}function qs(e,r,t){if(typeof r=="function")return qs(e,null,r);r||(r={}),t=Ky(t||zy);var n=r.readable||r.readable!==!1&&e.readable,i=r.writable||r.writable!==!1&&e.writable,o=function(){e.writable||f()},a=e._writableState&&e._writableState.finished,f=function(){i=!1,a=!0,n||t.call(e)},s=e._readableState&&e._readableState.endEmitted,d=function(){n=!1,s=!0,i||t.call(e)},h=function(v){t.call(e,v)},b=function(){var v;if(n&&!s)return(!e._readableState||!e._readableState.ended)&&(v=new Is),t.call(e,v);if(i&&!a)return(!e._writableState||!e._writableState.ended)&&(v=new Is),t.call(e,v)},g=function(){e.req.on("finish",f)};return Yy(e)?(e.on("complete",f),e.on("abort",b),e.req?g():e.on("request",g)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",d),e.on("finish",f),r.error!==!1&&e.on("error",h),e.on("close",b),function(){e.removeListener("complete",f),e.removeListener("abort",b),e.removeListener("request",g),e.req&&e.req.removeListener("finish",f),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",f),e.removeListener("end",d),e.removeListener("error",h),e.removeListener("close",b)}}Ms.exports=qs});var Fs=p((wm,Ps)=>{"use strict";u();var en;function Ee(e,r,t){return r=Jy(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Jy(e){var r=Xy(e,"string");return typeof r=="symbol"?r:String(r)}function Xy(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Zy=Qt(),Se=Symbol("lastResolve"),Ne=Symbol("lastReject"),jr=Symbol("error"),rn=Symbol("ended"),We=Symbol("lastPromise"),Wi=Symbol("handlePromise"),$e=Symbol("stream");function Ae(e,r){return{value:e,done:r}}function Qy(e){var r=e[Se];if(r!==null){var t=e[$e].read();t!==null&&(e[We]=null,e[Se]=null,e[Ne]=null,r(Ae(t,!1)))}}function eb(e){l.default.nextTick(Qy,e)}function rb(e,r){return function(t,n){e.then(function(){if(r[rn]){t(Ae(void 0,!0));return}r[Wi](t,n)},n)}}var tb=Object.getPrototypeOf(function(){}),nb=Object.setPrototypeOf((en={get stream(){return this[$e]},next:function(){var r=this,t=this[jr];if(t!==null)return Promise.reject(t);if(this[rn])return Promise.resolve(Ae(void 0,!0));if(this[$e].destroyed)return new Promise(function(a,f){l.default.nextTick(function(){r[jr]?f(r[jr]):a(Ae(void 0,!0))})});var n=this[We],i;if(n)i=new Promise(rb(n,this));else{var o=this[$e].read();if(o!==null)return Promise.resolve(Ae(o,!1));i=new Promise(this[Wi])}return this[We]=i,i}},Ee(en,Symbol.asyncIterator,function(){return this}),Ee(en,"return",function(){var r=this;return new Promise(function(t,n){r[$e].destroy(null,function(i){if(i){n(i);return}t(Ae(void 0,!0))})})}),en),tb),ib=function(r){var t,n=Object.create(nb,(t={},Ee(t,$e,{value:r,writable:!0}),Ee(t,Se,{value:null,writable:!0}),Ee(t,Ne,{value:null,writable:!0}),Ee(t,jr,{value:null,writable:!0}),Ee(t,rn,{value:r._readableState.endEmitted,writable:!0}),Ee(t,Wi,{value:function(o,a){var f=n[$e].read();f?(n[We]=null,n[Se]=null,n[Ne]=null,o(Ae(f,!1))):(n[Se]=o,n[Ne]=a)},writable:!0}),t));return n[We]=null,Zy(r,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ne];o!==null&&(n[We]=null,n[Se]=null,n[Ne]=null,o(i)),n[jr]=i;return}var a=n[Se];a!==null&&(n[We]=null,n[Se]=null,n[Ne]=null,a(Ae(void 0,!0))),n[rn]=!0}),r.on("readable",eb.bind(null,n)),n};Ps.exports=ib});var ks=p((_m,Cs)=>{u();Cs.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Ui=p((Em,Vs)=>{"use strict";u();Vs.exports=S;var br;S.ReadableState=js;var xm=tr().EventEmitter,Ds=function(r,t){return r.listeners(t).length},Wr=Kn(),tn=oe().Buffer,ob=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ab(e){return tn.from(e)}function fb(e){return tn.isBuffer(e)||e instanceof ob}var $i=kr(),_;$i&&$i.debuglog?_=$i.debuglog("stream"):_=function(){};var ub=ss(),Ji=Oi(),sb=Ii(),lb=sb.getHighWaterMark,nn=De().codes,cb=nn.ERR_INVALID_ARG_TYPE,hb=nn.ERR_STREAM_PUSH_AFTER_EOF,db=nn.ERR_METHOD_NOT_IMPLEMENTED,pb=nn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,gr,Hi,Gi;R()(S,Wr);var Nr=Ji.errorOrDestroy,Vi=["error","close","destroy","pause","resume"];function yb(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function js(e,r,t){br=br||je(),e=e||{},typeof t!="boolean"&&(t=r instanceof br),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=lb(this,e,"readableHighWaterMark",t),this.buffer=new ub,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(gr||(gr=yr().StringDecoder),this.decoder=new gr(e.encoding),this.encoding=e.encoding)}function S(e){if(br=br||je(),!(this instanceof S))return new S(e);var r=this instanceof br;this._readableState=new js(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Wr.call(this)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});S.prototype.destroy=Ji.destroy;S.prototype._undestroy=Ji.undestroy;S.prototype._destroy=function(e,r){r(e)};S.prototype.push=function(e,r){var t=this._readableState,n;return t.objectMode?n=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=tn.from(e,r),r=""),n=!0),Ns(this,e,r,!1,n)};S.prototype.unshift=function(e){return Ns(this,e,null,!0,!1)};function Ns(e,r,t,n,i){_("readableAddChunk",r);var o=e._readableState;if(r===null)o.reading=!1,wb(e,o);else{var a;if(i||(a=bb(o,r)),a)Nr(e,a);else if(o.objectMode||r&&r.length>0)if(typeof r!="string"&&!o.objectMode&&Object.getPrototypeOf(r)!==tn.prototype&&(r=ab(r)),n)o.endEmitted?Nr(e,new pb):Ki(e,o,r,!0);else if(o.ended)Nr(e,new hb);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!t?(r=o.decoder.write(r),o.objectMode||r.length!==0?Ki(e,o,r,!1):Yi(e,o)):Ki(e,o,r,!1)}else n||(o.reading=!1,Yi(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Ki(e,r,t,n){r.flowing&&r.length===0&&!r.sync?(r.awaitDrain=0,e.emit("data",t)):(r.length+=r.objectMode?1:t.length,n?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&on(e)),Yi(e,r)}function bb(e,r){var t;return!fb(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new cb("chunk",["string","Buffer","Uint8Array"],r)),t}S.prototype.isPaused=function(){return this._readableState.flowing===!1};S.prototype.setEncoding=function(e){gr||(gr=yr().StringDecoder);var r=new gr(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=r.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Ls=1073741824;function gb(e){return e>=Ls?e=Ls:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Us(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=gb(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}S.prototype.read=function(e){_("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return _("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?zi(this):on(this),null;if(e=Us(e,r),e===0&&r.ended)return r.length===0&&zi(this),null;var n=r.needReadable;_("need readable",n),(r.length===0||r.length-e<r.highWaterMark)&&(n=!0,_("length less than watermark",n)),r.ended||r.reading?(n=!1,_("reading or ended",n)):n&&(_("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=Us(t,r)));var i;return e>0?i=Hs(e,r):i=null,i===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&zi(this)),i!==null&&this.emit("data",i),i};function wb(e,r){if(_("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?on(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,Ws(e)))}}function on(e){var r=e._readableState;_("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(_("emitReadable",r.flowing),r.emittedReadable=!0,l.default.nextTick(Ws,e))}function Ws(e){var r=e._readableState;_("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,Xi(e)}function Yi(e,r){r.readingMore||(r.readingMore=!0,l.default.nextTick(vb,e,r))}function vb(e,r){for(;!r.reading&&!r.ended&&(r.length<r.highWaterMark||r.flowing&&r.length===0);){var t=r.length;if(_("maybeReadMore read 0"),e.read(0),t===r.length)break}r.readingMore=!1}S.prototype._read=function(e){Nr(this,new db("_read()"))};S.prototype.pipe=function(e,r){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,_("pipe count=%d opts=%j",n.pipesCount,r);var i=(!r||r.end!==!1)&&e!==l.default.stdout&&e!==l.default.stderr,o=i?f:O;n.endEmitted?l.default.nextTick(o):t.once("end",o),e.on("unpipe",a);function a(C,F){_("onunpipe"),C===t&&F&&F.hasUnpiped===!1&&(F.hasUnpiped=!0,h())}function f(){_("onend"),e.end()}var s=_b(t);e.on("drain",s);var d=!1;function h(){_("cleanup"),e.removeListener("close",w),e.removeListener("finish",v),e.removeListener("drain",s),e.removeListener("error",g),e.removeListener("unpipe",a),t.removeListener("end",f),t.removeListener("end",O),t.removeListener("data",b),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s()}t.on("data",b);function b(C){_("ondata");var F=e.write(C);_("dest.write",F),F===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Gs(n.pipes,e)!==-1)&&!d&&(_("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function g(C){_("onerror",C),O(),e.removeListener("error",g),Ds(e,"error")===0&&Nr(e,C)}yb(e,"error",g);function w(){e.removeListener("finish",v),O()}e.once("close",w);function v(){_("onfinish"),e.removeListener("close",w),O()}e.once("finish",v);function O(){_("unpipe"),t.unpipe(e)}return e.emit("pipe",t),n.flowing||(_("pipe resume"),t.resume()),e};function _b(e){return function(){var t=e._readableState;_("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Ds(e,"data")&&(t.flowing=!0,Xi(e))}}S.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=r.pipes,i=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Gs(r.pipes,e);return a===-1?this:(r.pipes.splice(a,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};S.prototype.on=function(e,r){var t=Wr.prototype.on.call(this,e,r),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,_("on readable",n.length,n.reading),n.length?on(this):n.reading||l.default.nextTick(mb,this)),t};S.prototype.addListener=S.prototype.on;S.prototype.removeListener=function(e,r){var t=Wr.prototype.removeListener.call(this,e,r);return e==="readable"&&l.default.nextTick($s,this),t};S.prototype.removeAllListeners=function(e){var r=Wr.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&l.default.nextTick($s,this),r};function $s(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function mb(e){_("readable nexttick read 0"),e.read(0)}S.prototype.resume=function(){var e=this._readableState;return e.flowing||(_("resume"),e.flowing=!e.readableListening,xb(this,e)),e.paused=!1,this};function xb(e,r){r.resumeScheduled||(r.resumeScheduled=!0,l.default.nextTick(Eb,e,r))}function Eb(e,r){_("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),Xi(e),r.flowing&&!r.reading&&e.read(0)}S.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Xi(e){var r=e._readableState;for(_("flow",r.flowing);r.flowing&&e.read()!==null;);}S.prototype.wrap=function(e){var r=this,t=this._readableState,n=!1;e.on("end",function(){if(_("wrapped end"),t.decoder&&!t.ended){var a=t.decoder.end();a&&a.length&&r.push(a)}r.push(null)}),e.on("data",function(a){if(_("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!(t.objectMode&&a==null)&&!(!t.objectMode&&(!a||!a.length))){var f=r.push(a);f||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(f){return function(){return e[f].apply(e,arguments)}})(i));for(var o=0;o<Vi.length;o++)e.on(Vi[o],this.emit.bind(this,Vi[o]));return this._read=function(a){_("wrapped _read",a),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(S.prototype[Symbol.asyncIterator]=function(){return Hi===void 0&&(Hi=Fs()),Hi(this)});Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(r){this._readableState&&(this._readableState.flowing=r)}});S._fromList=Hs;Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Hs(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function zi(e){var r=e._readableState;_("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,l.default.nextTick(Sb,r,e))}function Sb(e,r){if(_("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(S.from=function(e,r){return Gi===void 0&&(Gi=ks()),Gi(S,e,r)});function Gs(e,r){for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}});var Zi=p((Am,zs)=>{"use strict";u();zs.exports=pe;var an=De().codes,Ab=an.ERR_METHOD_NOT_IMPLEMENTED,Bb=an.ERR_MULTIPLE_CALLBACK,Rb=an.ERR_TRANSFORM_ALREADY_TRANSFORMING,Tb=an.ERR_TRANSFORM_WITH_LENGTH_0,fn=je();R()(pe,fn);function Ob(e,r){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new Bb);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function pe(e){if(!(this instanceof pe))return new pe(e);fn.call(this,e),this._transformState={afterTransform:Ob.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Ib)}function Ib(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(r,t){Ks(e,r,t)}):Ks(this,null,null)}pe.prototype.push=function(e,r){return this._transformState.needTransform=!1,fn.prototype.push.call(this,e,r)};pe.prototype._transform=function(e,r,t){t(new Ab("_transform()"))};pe.prototype._write=function(e,r,t){var n=this._transformState;if(n.writecb=t,n.writechunk=e,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};pe.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};pe.prototype._destroy=function(e,r){fn.prototype._destroy.call(this,e,function(t){r(t)})};function Ks(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new Tb;if(e._transformState.transforming)throw new Rb;return e.push(null)}});var Xs=p((Rm,Js)=>{"use strict";u();Js.exports=$r;var Ys=Zi();R()($r,Ys);function $r(e){if(!(this instanceof $r))return new $r(e);Ys.call(this,e)}$r.prototype._transform=function(e,r,t){t(null,e)}});var tl=p((Om,rl)=>{"use strict";u();var Qi;function qb(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var el=De().codes,Mb=el.ERR_MISSING_ARGS,Pb=el.ERR_STREAM_DESTROYED;function Zs(e){if(e)throw e}function Fb(e){return e.setHeader&&typeof e.abort=="function"}function Cb(e,r,t,n){n=qb(n);var i=!1;e.on("close",function(){i=!0}),Qi===void 0&&(Qi=Qt()),Qi(e,{readable:r,writable:t},function(a){if(a)return n(a);i=!0,n()});var o=!1;return function(a){if(!i&&!o){if(o=!0,Fb(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(a||new Pb("pipe"))}}}function Qs(e){e()}function kb(e,r){return e.pipe(r)}function Lb(e){return!e.length||typeof e[e.length-1]!="function"?Zs:e.pop()}function Ub(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Lb(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new Mb("streams");var i,o=r.map(function(a,f){var s=f<r.length-1,d=f>0;return Cb(a,s,d,function(h){i||(i=h),h&&o.forEach(Qs),!s&&(o.forEach(Qs),n(i))})});return r.reduce(kb)}rl.exports=Ub});var ro=p((qm,nl)=>{u();nl.exports=J;var eo=tr().EventEmitter,Db=R();Db(J,eo);J.Readable=Ui();J.Writable=Ci();J.Duplex=je();J.Transform=Zi();J.PassThrough=Xs();J.finished=Qt();J.pipeline=tl();J.Stream=J;function J(){eo.call(this)}J.prototype.pipe=function(e,r){var t=this;function n(h){e.writable&&e.write(h)===!1&&t.pause&&t.pause()}t.on("data",n);function i(){t.readable&&t.resume&&t.resume()}e.on("drain",i),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",a),t.on("close",f));var o=!1;function a(){o||(o=!0,e.end())}function f(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function s(h){if(d(),eo.listenerCount(this,"error")===0)throw h}t.on("error",s),e.on("error",s);function d(){t.removeListener("data",n),e.removeListener("drain",i),t.removeListener("end",a),t.removeListener("close",f),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",d),t.removeListener("close",d),e.removeListener("close",d)}return t.on("end",d),t.on("close",d),e.on("close",d),e.emit("pipe",t),e}});var al=p((Pm,ol)=>{"use strict";u();var ue=D().Buffer,il=ro().Transform,jb=R();function Be(e){il.call(this),this._block=ue.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}jb(Be,il);Be.prototype._transform=function(e,r,t){var n=null;try{this.update(e,r)}catch(i){n=i}t(n)};Be.prototype._flush=function(e){var r=null;try{this.push(this.digest())}catch(t){r=t}e(r)};var Nb=typeof Uint8Array<"u",Wb=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(ue.prototype instanceof Uint8Array||ue.TYPED_ARRAY_SUPPORT);function $b(e,r){if(e instanceof ue)return e;if(typeof e=="string")return ue.from(e,r);if(Wb&&ArrayBuffer.isView(e)){if(e.byteLength===0)return ue.alloc(0);var t=ue.from(e.buffer,e.byteOffset,e.byteLength);if(t.byteLength===e.byteLength)return t}if(Nb&&e instanceof Uint8Array||ue.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return ue.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Be.prototype.update=function(e,r){if(this._finalized)throw new Error("Digest already called");e=$b(e,r);for(var t=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)t[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)t[this._blockOffset++]=e[n++];for(var o=0,a=e.length*8;a>0;++o)this._length[o]+=a,a=this._length[o]/4294967296|0,a>0&&(this._length[o]-=4294967296*a);return this};Be.prototype._update=function(){throw new Error("_update is not implemented")};Be.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var r=this._digest();e!==void 0&&(r=r.toString(e)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return r};Be.prototype._digest=function(){throw new Error("_digest is not implemented")};ol.exports=Be});var to=p((Cm,ul)=>{"use strict";u();var Hb=R(),fl=al(),Gb=D().Buffer,Vb=new Array(16);function un(){fl.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Hb(un,fl);un.prototype._update=function(){for(var e=Vb,r=0;r<16;++r)e[r]=this._block.readInt32LE(r*4);var t=this._a,n=this._b,i=this._c,o=this._d;t=j(t,n,i,o,e[0],3614090360,7),o=j(o,t,n,i,e[1],3905402710,12),i=j(i,o,t,n,e[2],606105819,17),n=j(n,i,o,t,e[3],3250441966,22),t=j(t,n,i,o,e[4],4118548399,7),o=j(o,t,n,i,e[5],1200080426,12),i=j(i,o,t,n,e[6],2821735955,17),n=j(n,i,o,t,e[7],4249261313,22),t=j(t,n,i,o,e[8],1770035416,7),o=j(o,t,n,i,e[9],2336552879,12),i=j(i,o,t,n,e[10],4294925233,17),n=j(n,i,o,t,e[11],2304563134,22),t=j(t,n,i,o,e[12],1804603682,7),o=j(o,t,n,i,e[13],4254626195,12),i=j(i,o,t,n,e[14],2792965006,17),n=j(n,i,o,t,e[15],1236535329,22),t=N(t,n,i,o,e[1],4129170786,5),o=N(o,t,n,i,e[6],3225465664,9),i=N(i,o,t,n,e[11],643717713,14),n=N(n,i,o,t,e[0],3921069994,20),t=N(t,n,i,o,e[5],3593408605,5),o=N(o,t,n,i,e[10],38016083,9),i=N(i,o,t,n,e[15],3634488961,14),n=N(n,i,o,t,e[4],3889429448,20),t=N(t,n,i,o,e[9],568446438,5),o=N(o,t,n,i,e[14],3275163606,9),i=N(i,o,t,n,e[3],4107603335,14),n=N(n,i,o,t,e[8],1163531501,20),t=N(t,n,i,o,e[13],2850285829,5),o=N(o,t,n,i,e[2],4243563512,9),i=N(i,o,t,n,e[7],1735328473,14),n=N(n,i,o,t,e[12],2368359562,20),t=W(t,n,i,o,e[5],4294588738,4),o=W(o,t,n,i,e[8],2272392833,11),i=W(i,o,t,n,e[11],1839030562,16),n=W(n,i,o,t,e[14],4259657740,23),t=W(t,n,i,o,e[1],2763975236,4),o=W(o,t,n,i,e[4],1272893353,11),i=W(i,o,t,n,e[7],4139469664,16),n=W(n,i,o,t,e[10],3200236656,23),t=W(t,n,i,o,e[13],681279174,4),o=W(o,t,n,i,e[0],3936430074,11),i=W(i,o,t,n,e[3],3572445317,16),n=W(n,i,o,t,e[6],76029189,23),t=W(t,n,i,o,e[9],3654602809,4),o=W(o,t,n,i,e[12],3873151461,11),i=W(i,o,t,n,e[15],530742520,16),n=W(n,i,o,t,e[2],3299628645,23),t=$(t,n,i,o,e[0],4096336452,6),o=$(o,t,n,i,e[7],1126891415,10),i=$(i,o,t,n,e[14],2878612391,15),n=$(n,i,o,t,e[5],4237533241,21),t=$(t,n,i,o,e[12],1700485571,6),o=$(o,t,n,i,e[3],2399980690,10),i=$(i,o,t,n,e[10],4293915773,15),n=$(n,i,o,t,e[1],2240044497,21),t=$(t,n,i,o,e[8],1873313359,6),o=$(o,t,n,i,e[15],4264355552,10),i=$(i,o,t,n,e[6],2734768916,15),n=$(n,i,o,t,e[13],1309151649,21),t=$(t,n,i,o,e[4],4149444226,6),o=$(o,t,n,i,e[11],3174756917,10),i=$(i,o,t,n,e[2],718787259,15),n=$(n,i,o,t,e[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0};un.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Gb.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function sn(e,r){return e<<r|e>>>32-r}function j(e,r,t,n,i,o,a){return sn(e+(r&t|~r&n)+i+o|0,a)+r|0}function N(e,r,t,n,i,o,a){return sn(e+(r&n|t&~n)+i+o|0,a)+r|0}function W(e,r,t,n,i,o,a){return sn(e+(r^t^n)+i+o|0,a)+r|0}function $(e,r,t,n,i,o,a){return sn(e+(t^(r|~n))+i+o|0,a)+r|0}ul.exports=un});var ll=p((Lm,sl)=>{u();var Kb={}.toString;sl.exports=Array.isArray||function(e){return Kb.call(e)=="[object Array]"}});var hl=p((Dm,cl)=>{"use strict";u();var zb=Pe(),Yb=ke(),Jb=Yb("TypedArray.prototype.buffer",!0),Xb=vi();cl.exports=Jb||function(r){if(!Xb(r))throw new zb("Not a Typed Array");return r.buffer}});var ln=p((Nm,pl)=>{"use strict";u();var Q=D().Buffer,Zb=ll(),Qb=hl(),eg=ArrayBuffer.isView||function(r){try{return Qb(r),!0}catch{return!1}},rg=typeof Uint8Array<"u",dl=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",tg=dl&&(Q.prototype instanceof Uint8Array||Q.TYPED_ARRAY_SUPPORT);pl.exports=function(r,t){if(Q.isBuffer(r))return r.constructor&&!("isBuffer"in r)?Q.from(r):r;if(typeof r=="string")return Q.from(r,t);if(dl&&eg(r)){if(r.byteLength===0)return Q.alloc(0);if(tg){var n=Q.from(r.buffer,r.byteOffset,r.byteLength);if(n.byteLength===r.byteLength)return n}var i=r instanceof Uint8Array?r:new Uint8Array(r.buffer,r.byteOffset,r.byteLength),o=Q.from(i);if(o.length===r.byteLength)return o}if(rg&&r instanceof Uint8Array)return Q.from(r);var a=Zb(r);if(a)for(var f=0;f<r.length;f+=1){var s=r[f];if(typeof s!="number"||s<0||s>255||~~s!==s)throw new RangeError("Array items must be numbers in the range 0-255.")}if(a||Q.isBuffer(r)&&r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))return Q.from(r);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var wl=p(($m,gl)=>{"use strict";u();var ng=D().Buffer,ig=ln(),bl=typeof Uint8Array<"u",og=bl&&typeof ArrayBuffer<"u",yl=og&&ArrayBuffer.isView;gl.exports=function(e,r){if(typeof e=="string"||ng.isBuffer(e)||bl&&e instanceof Uint8Array||yl&&yl(e))return ig(e,r);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Hr=p((Gm,no)=>{"use strict";u();typeof l.default>"u"||!l.default.version||l.default.version.indexOf("v0.")===0||l.default.version.indexOf("v1.")===0&&l.default.version.indexOf("v1.8.")!==0?no.exports={nextTick:ag}:no.exports=l.default;function ag(e,r,t,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,o,a;switch(i){case 0:case 1:return l.default.nextTick(e);case 2:return l.default.nextTick(function(){e.call(null,r)});case 3:return l.default.nextTick(function(){e.call(null,r,t)});case 4:return l.default.nextTick(function(){e.call(null,r,t,n)});default:for(o=new Array(i-1),a=0;a<o.length;)o[a++]=arguments[a];return l.default.nextTick(function(){e.apply(null,o)})}}});var _l=p((Km,vl)=>{u();var fg={}.toString;vl.exports=Array.isArray||function(e){return fg.call(e)=="[object Array]"}});var io=p((Ym,ml)=>{u();ml.exports=tr().EventEmitter});var hn=p((oo,El)=>{u();var cn=oe(),ye=cn.Buffer;function xl(e,r){for(var t in e)r[t]=e[t]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?El.exports=cn:(xl(cn,oo),oo.Buffer=wr);function wr(e,r,t){return ye(e,r,t)}xl(ye,wr);wr.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ye(e,r,t)};wr.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ye(e);return r!==void 0?typeof t=="string"?n.fill(r,t):n.fill(r):n.fill(0),n};wr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ye(e)};wr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return cn.SlowBuffer(e)}});var vr=p(H=>{u();function ug(e){return Array.isArray?Array.isArray(e):dn(e)==="[object Array]"}H.isArray=ug;function sg(e){return typeof e=="boolean"}H.isBoolean=sg;function lg(e){return e===null}H.isNull=lg;function cg(e){return e==null}H.isNullOrUndefined=cg;function hg(e){return typeof e=="number"}H.isNumber=hg;function dg(e){return typeof e=="string"}H.isString=dg;function pg(e){return typeof e=="symbol"}H.isSymbol=pg;function yg(e){return e===void 0}H.isUndefined=yg;function bg(e){return dn(e)==="[object RegExp]"}H.isRegExp=bg;function gg(e){return typeof e=="object"&&e!==null}H.isObject=gg;function wg(e){return dn(e)==="[object Date]"}H.isDate=wg;function vg(e){return dn(e)==="[object Error]"||e instanceof Error}H.isError=vg;function _g(e){return typeof e=="function"}H.isFunction=_g;function mg(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}H.isPrimitive=mg;H.isBuffer=oe().Buffer.isBuffer;function dn(e){return Object.prototype.toString.call(e)}});var Al=p((ex,ao)=>{"use strict";u();function xg(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Sl=hn().Buffer,Gr=kr();function Eg(e,r,t){e.copy(r,t)}ao.exports=(function(){function e(){xg(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i},e.prototype.concat=function(t){if(this.length===0)return Sl.alloc(0);for(var n=Sl.allocUnsafe(t>>>0),i=this.head,o=0;i;)Eg(i.data,n,o),o+=i.data.length,i=i.next;return n},e})();Gr&&Gr.inspect&&Gr.inspect.custom&&(ao.exports.prototype[Gr.inspect.custom]=function(){var e=Gr.inspect({length:this.length});return this.constructor.name+" "+e})});var fo=p((tx,Bl)=>{"use strict";u();var pn=Hr();function Sg(e,r){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pn.nextTick(yn,this,e)):pn.nextTick(yn,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!r&&o?t._writableState?t._writableState.errorEmitted||(t._writableState.errorEmitted=!0,pn.nextTick(yn,t,o)):pn.nextTick(yn,t,o):r&&r(o)}),this)}function Ag(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function yn(e,r){e.emit("error",r)}Bl.exports={destroy:Sg,undestroy:Ag}});var so=p((ix,Fl)=>{"use strict";u();var He=Hr();Fl.exports=P;function Tl(e){var r=this;this.next=null,this.entry=null,this.finish=function(){$g(r,e)}}var Bg=!l.default.browser&&["v0.10","v0.9."].indexOf(l.default.version.slice(0,5))>-1?setImmediate:He.nextTick,_r;P.WritableState=Kr;var Ol=Object.create(vr());Ol.inherits=R();var Rg={deprecate:Mi()},Il=io(),gn=hn().Buffer,Tg=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Og(e){return gn.from(e)}function Ig(e){return gn.isBuffer(e)||e instanceof Tg}var ql=fo();Ol.inherits(P,Il);function qg(){}function Kr(e,r){_r=_r||Ge(),e=e||{};var t=r instanceof _r;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(f){Ug(r,f)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Tl(this)}Kr.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(Kr.prototype,"buffer",{get:Rg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var bn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(bn=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return bn.call(this,e)?!0:this!==P?!1:e&&e._writableState instanceof Kr}})):bn=function(e){return e instanceof this};function P(e){if(_r=_r||Ge(),!bn.call(P,this)&&!(this instanceof _r))return new P(e);this._writableState=new Kr(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Il.call(this)}P.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Mg(e,r){var t=new Error("write after end");e.emit("error",t),He.nextTick(r,t)}function Pg(e,r,t,n){var i=!0,o=!1;return t===null?o=new TypeError("May not write null values to stream"):typeof t!="string"&&t!==void 0&&!r.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),He.nextTick(n,o),i=!1),i}P.prototype.write=function(e,r,t){var n=this._writableState,i=!1,o=!n.objectMode&&Ig(e);return o&&!gn.isBuffer(e)&&(e=Og(e)),typeof r=="function"&&(t=r,r=null),o?r="buffer":r||(r=n.defaultEncoding),typeof t!="function"&&(t=qg),n.ended?Mg(this,t):(o||Pg(this,n,e,t))&&(n.pendingcb++,i=Cg(this,n,o,e,r,t)),i};P.prototype.cork=function(){var e=this._writableState;e.corked++};P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Ml(this,e))};P.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);return this._writableState.defaultEncoding=r,this};function Fg(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=gn.from(r,t)),r}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Cg(e,r,t,n,i,o){if(!t){var a=Fg(r,n,i);n!==a&&(t=!0,i="buffer",n=a)}var f=r.objectMode?1:n.length;r.length+=f;var s=r.length<r.highWaterMark;if(s||(r.needDrain=!0),r.writing||r.corked){var d=r.lastBufferedRequest;r.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:o,next:null},d?d.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else uo(e,r,!1,f,n,i,o);return s}function uo(e,r,t,n,i,o,a){r.writelen=n,r.writecb=a,r.writing=!0,r.sync=!0,t?e._writev(i,r.onwrite):e._write(i,o,r.onwrite),r.sync=!1}function kg(e,r,t,n,i){--r.pendingcb,t?(He.nextTick(i,n),He.nextTick(Vr,e,r),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),Vr(e,r))}function Lg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Ug(e,r){var t=e._writableState,n=t.sync,i=t.writecb;if(Lg(t),r)kg(e,t,n,r,i);else{var o=Pl(t);!o&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Ml(e,t),n?Bg(Rl,e,t,o,i):Rl(e,t,o,i)}}function Rl(e,r,t,n){t||Dg(e,r),r.pendingcb--,n(),Vr(e,r)}function Dg(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function Ml(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var n=r.bufferedRequestCount,i=new Array(n),o=r.corkedRequestsFree;o.entry=t;for(var a=0,f=!0;t;)i[a]=t,t.isBuf||(f=!1),t=t.next,a+=1;i.allBuffers=f,uo(e,r,!0,r.length,i,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new Tl(r),r.bufferedRequestCount=0}else{for(;t;){var s=t.chunk,d=t.encoding,h=t.callback,b=r.objectMode?1:s.length;if(uo(e,r,!1,b,s,d,h),t=t.next,r.bufferedRequestCount--,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=t,r.bufferProcessing=!1}P.prototype._write=function(e,r,t){t(new Error("_write() is not implemented"))};P.prototype._writev=null;P.prototype.end=function(e,r,t){var n=this._writableState;typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),n.corked&&(n.corked=1,this.uncork()),n.ending||Wg(this,n,t)};function Pl(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function jg(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),Vr(e,r)})}function Ng(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"?(r.pendingcb++,r.finalCalled=!0,He.nextTick(jg,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function Vr(e,r){var t=Pl(r);return t&&(Ng(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"))),t}function Wg(e,r,t){r.ending=!0,Vr(e,r),t&&(r.finished?He.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function $g(e,r,t){var n=e.entry;for(e.entry=null;n;){var i=n.callback;r.pendingcb--,i(t),n=n.next}r.corkedRequestsFree.next=e}Object.defineProperty(P.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});P.prototype.destroy=ql.destroy;P.prototype._undestroy=ql.undestroy;P.prototype._destroy=function(e,r){this.end(),r(e)}});var Ge=p((ax,Ul)=>{"use strict";u();var Cl=Hr(),Hg=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Ul.exports=be;var kl=Object.create(vr());kl.inherits=R();var Ll=ho(),co=so();kl.inherits(be,Ll);for(lo=Hg(co.prototype),wn=0;wn<lo.length;wn++)vn=lo[wn],be.prototype[vn]||(be.prototype[vn]=co.prototype[vn]);var lo,vn,wn;function be(e){if(!(this instanceof be))return new be(e);Ll.call(this,e),co.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Gg)}Object.defineProperty(be.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Gg(){this.allowHalfOpen||this._writableState.ended||Cl.nextTick(Vg,this)}function Vg(e){e.end()}Object.defineProperty(be.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});be.prototype._destroy=function(e,r){this.push(null),this.end(),Cl.nextTick(r,e)}});var ho=p((sx,Jl)=>{"use strict";u();var xr=Hr();Jl.exports=T;var Kg=_l(),zr;T.ReadableState=Gl;var ux=tr().EventEmitter,Wl=function(e,r){return e.listeners(r).length},wo=io(),Yr=hn().Buffer,zg=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Yg(e){return Yr.from(e)}function Jg(e){return Yr.isBuffer(e)||e instanceof zg}var $l=Object.create(vr());$l.inherits=R();var po=kr(),A=void 0;po&&po.debuglog?A=po.debuglog("stream"):A=function(){};var Xg=Al(),Hl=fo(),mr;$l.inherits(T,wo);var yo=["error","close","destroy","pause","resume"];function Zg(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Kg(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function Gl(e,r){zr=zr||Ge(),e=e||{};var t=r instanceof zr;this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:t&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Xg,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(mr||(mr=yr().StringDecoder),this.decoder=new mr(e.encoding),this.encoding=e.encoding)}function T(e){if(zr=zr||Ge(),!(this instanceof T))return new T(e);this._readableState=new Gl(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),wo.call(this)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});T.prototype.destroy=Hl.destroy;T.prototype._undestroy=Hl.undestroy;T.prototype._destroy=function(e,r){this.push(null),r(e)};T.prototype.push=function(e,r){var t=this._readableState,n;return t.objectMode?n=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=Yr.from(e,r),r=""),n=!0),Vl(this,e,r,!1,n)};T.prototype.unshift=function(e){return Vl(this,e,null,!0,!1)};function Vl(e,r,t,n,i){var o=e._readableState;if(r===null)o.reading=!1,tw(e,o);else{var a;i||(a=Qg(o,r)),a?e.emit("error",a):o.objectMode||r&&r.length>0?(typeof r!="string"&&!o.objectMode&&Object.getPrototypeOf(r)!==Yr.prototype&&(r=Yg(r)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):bo(e,o,r,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!t?(r=o.decoder.write(r),o.objectMode||r.length!==0?bo(e,o,r,!1):Kl(e,o)):bo(e,o,r,!1))):n||(o.reading=!1)}return ew(o)}function bo(e,r,t,n){r.flowing&&r.length===0&&!r.sync?(e.emit("data",t),e.read(0)):(r.length+=r.objectMode?1:t.length,n?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&_n(e)),Kl(e,r)}function Qg(e,r){var t;return!Jg(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new TypeError("Invalid non-string/buffer chunk")),t}function ew(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}T.prototype.isPaused=function(){return this._readableState.flowing===!1};T.prototype.setEncoding=function(e){return mr||(mr=yr().StringDecoder),this._readableState.decoder=new mr(e),this._readableState.encoding=e,this};var Dl=8388608;function rw(e){return e>=Dl?e=Dl:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function jl(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=rw(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}T.prototype.read=function(e){A("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return A("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?go(this):_n(this),null;if(e=jl(e,r),e===0&&r.ended)return r.length===0&&go(this),null;var n=r.needReadable;A("need readable",n),(r.length===0||r.length-e<r.highWaterMark)&&(n=!0,A("length less than watermark",n)),r.ended||r.reading?(n=!1,A("reading or ended",n)):n&&(A("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=jl(t,r)));var i;return e>0?i=zl(e,r):i=null,i===null?(r.needReadable=!0,e=0):r.length-=e,r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&go(this)),i!==null&&this.emit("data",i),i};function tw(e,r){if(!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,_n(e)}}function _n(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(A("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?xr.nextTick(Nl,e):Nl(e))}function Nl(e){A("emit readable"),e.emit("readable"),vo(e)}function Kl(e,r){r.readingMore||(r.readingMore=!0,xr.nextTick(nw,e,r))}function nw(e,r){for(var t=r.length;!r.reading&&!r.flowing&&!r.ended&&r.length<r.highWaterMark&&(A("maybeReadMore read 0"),e.read(0),t!==r.length);)t=r.length;r.readingMore=!1}T.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};T.prototype.pipe=function(e,r){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,A("pipe count=%d opts=%j",n.pipesCount,r);var i=(!r||r.end!==!1)&&e!==l.default.stdout&&e!==l.default.stderr,o=i?f:C;n.endEmitted?xr.nextTick(o):t.once("end",o),e.on("unpipe",a);function a(F,I){A("onunpipe"),F===t&&I&&I.hasUnpiped===!1&&(I.hasUnpiped=!0,h())}function f(){A("onend"),e.end()}var s=iw(t);e.on("drain",s);var d=!1;function h(){A("cleanup"),e.removeListener("close",v),e.removeListener("finish",O),e.removeListener("drain",s),e.removeListener("error",w),e.removeListener("unpipe",a),t.removeListener("end",f),t.removeListener("end",C),t.removeListener("data",g),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s()}var b=!1;t.on("data",g);function g(F){A("ondata"),b=!1;var I=e.write(F);I===!1&&!b&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Yl(n.pipes,e)!==-1)&&!d&&(A("false write response, pause",n.awaitDrain),n.awaitDrain++,b=!0),t.pause())}function w(F){A("onerror",F),C(),e.removeListener("error",w),Wl(e,"error")===0&&e.emit("error",F)}Zg(e,"error",w);function v(){e.removeListener("finish",O),C()}e.once("close",v);function O(){A("onfinish"),e.removeListener("close",v),C()}e.once("finish",O);function C(){A("unpipe"),t.unpipe(e)}return e.emit("pipe",t),n.flowing||(A("pipe resume"),t.resume()),e};function iw(e){return function(){var r=e._readableState;A("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Wl(e,"data")&&(r.flowing=!0,vo(e))}}T.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=r.pipes,i=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Yl(r.pipes,e);return a===-1?this:(r.pipes.splice(a,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};T.prototype.on=function(e,r){var t=wo.prototype.on.call(this,e,r);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&_n(this):xr.nextTick(ow,this))}return t};T.prototype.addListener=T.prototype.on;function ow(e){A("readable nexttick read 0"),e.read(0)}T.prototype.resume=function(){var e=this._readableState;return e.flowing||(A("resume"),e.flowing=!0,aw(this,e)),this};function aw(e,r){r.resumeScheduled||(r.resumeScheduled=!0,xr.nextTick(fw,e,r))}function fw(e,r){r.reading||(A("resume read 0"),e.read(0)),r.resumeScheduled=!1,r.awaitDrain=0,e.emit("resume"),vo(e),r.flowing&&!r.reading&&e.read(0)}T.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function vo(e){var r=e._readableState;for(A("flow",r.flowing);r.flowing&&e.read()!==null;);}T.prototype.wrap=function(e){var r=this,t=this._readableState,n=!1;e.on("end",function(){if(A("wrapped end"),t.decoder&&!t.ended){var a=t.decoder.end();a&&a.length&&r.push(a)}r.push(null)}),e.on("data",function(a){if(A("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!(t.objectMode&&a==null)&&!(!t.objectMode&&(!a||!a.length))){var f=r.push(a);f||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(a){return function(){return e[a].apply(e,arguments)}})(i));for(var o=0;o<yo.length;o++)e.on(yo[o],this.emit.bind(this,yo[o]));return this._read=function(a){A("wrapped _read",a),n&&(n=!1,e.resume())},this};Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});T._fromList=zl;function zl(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.head.data:t=r.buffer.concat(r.length),r.buffer.clear()):t=uw(e,r.buffer,r.decoder),t}function uw(e,r,t){var n;return e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):e===r.head.data.length?n=r.shift():n=t?sw(e,r):lw(e,r),n}function sw(e,r){var t=r.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var o=t.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,e===0){a===o.length?(++n,t.next?r.head=t.next:r.head=r.tail=null):(r.head=t,t.data=o.slice(a));break}++n}return r.length-=n,i}function lw(e,r){var t=Yr.allocUnsafe(e),n=r.head,i=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),e-=a,e===0){a===o.length?(++i,n.next?r.head=n.next:r.head=r.tail=null):(r.head=n,n.data=o.slice(a));break}++i}return r.length-=i,t}function go(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,xr.nextTick(cw,r,e))}function cw(e,r){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"))}function Yl(e,r){for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}});var _o=p((cx,Ql)=>{"use strict";u();Ql.exports=ge;var mn=Ge(),Zl=Object.create(vr());Zl.inherits=R();Zl.inherits(ge,mn);function hw(e,r){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,r!=null&&this.push(r),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ge(e){if(!(this instanceof ge))return new ge(e);mn.call(this,e),this._transformState={afterTransform:hw.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",dw)}function dw(){var e=this;typeof this._flush=="function"?this._flush(function(r,t){Xl(e,r,t)}):Xl(this,null,null)}ge.prototype.push=function(e,r){return this._transformState.needTransform=!1,mn.prototype.push.call(this,e,r)};ge.prototype._transform=function(e,r,t){throw new Error("_transform() is not implemented")};ge.prototype._write=function(e,r,t){var n=this._transformState;if(n.writecb=t,n.writechunk=e,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ge.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};ge.prototype._destroy=function(e,r){var t=this;mn.prototype._destroy.call(this,e,function(n){r(n),t.emit("close")})};function Xl(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var nc=p((dx,tc)=>{"use strict";u();tc.exports=Jr;var ec=_o(),rc=Object.create(vr());rc.inherits=R();rc.inherits(Jr,ec);function Jr(e){if(!(this instanceof Jr))return new Jr(e);ec.call(this,e)}Jr.prototype._transform=function(e,r,t){t(null,e)}});var oc=p((se,ic)=>{u();se=ic.exports=ho();se.Stream=se;se.Readable=se;se.Writable=so();se.Duplex=Ge();se.Transform=_o();se.PassThrough=nc()});var uc=p((bx,fc)=>{"use strict";u();var pw=D().Buffer,yw=wl(),ac=oc().Transform,bw=R();function Re(e){ac.call(this),this._block=pw.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}bw(Re,ac);Re.prototype._transform=function(e,r,t){var n=null;try{this.update(e,r)}catch(i){n=i}t(n)};Re.prototype._flush=function(e){var r=null;try{this.push(this.digest())}catch(t){r=t}e(r)};Re.prototype.update=function(e,r){if(this._finalized)throw new Error("Digest already called");for(var t=yw(e,r),n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o]=t[i],o+=1,i+=1;this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset]=t[i],this._blockOffset+=1,i+=1;for(var a=0,f=t.length*8;f>0;++a)this._length[a]+=f,f=this._length[a]/4294967296|0,f>0&&(this._length[a]-=4294967296*f);return this};Re.prototype._update=function(){throw new Error("_update is not implemented")};Re.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var r=this._digest();e!==void 0&&(r=r.toString(e)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return r};Re.prototype._digest=function(){throw new Error("_digest is not implemented")};fc.exports=Re});var xo=p((wx,yc)=>{"use strict";u();var mo=oe().Buffer,gw=R(),pc=uc(),ww=new Array(16),Xr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Qr=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],et=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],rt=[0,1518500249,1859775393,2400959708,2840853838],tt=[1352829926,1548603684,1836072691,2053994217,0];function Ve(e,r){return e<<r|e>>>32-r}function sc(e,r,t,n,i,o,a,f){return Ve(e+(r^t^n)+o+a|0,f)+i|0}function lc(e,r,t,n,i,o,a,f){return Ve(e+(r&t|~r&n)+o+a|0,f)+i|0}function cc(e,r,t,n,i,o,a,f){return Ve(e+((r|~t)^n)+o+a|0,f)+i|0}function hc(e,r,t,n,i,o,a,f){return Ve(e+(r&n|t&~n)+o+a|0,f)+i|0}function dc(e,r,t,n,i,o,a,f){return Ve(e+(r^(t|~n))+o+a|0,f)+i|0}function xn(){pc.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}gw(xn,pc);xn.prototype._update=function(){for(var e=ww,r=0;r<16;++r)e[r]=this._block.readInt32LE(r*4);for(var t=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,a=this._e|0,f=this._a|0,s=this._b|0,d=this._c|0,h=this._d|0,b=this._e|0,g=0;g<80;g+=1){var w,v;g<16?(w=sc(t,n,i,o,a,e[Xr[g]],rt[0],Qr[g]),v=dc(f,s,d,h,b,e[Zr[g]],tt[0],et[g])):g<32?(w=lc(t,n,i,o,a,e[Xr[g]],rt[1],Qr[g]),v=hc(f,s,d,h,b,e[Zr[g]],tt[1],et[g])):g<48?(w=cc(t,n,i,o,a,e[Xr[g]],rt[2],Qr[g]),v=cc(f,s,d,h,b,e[Zr[g]],tt[2],et[g])):g<64?(w=hc(t,n,i,o,a,e[Xr[g]],rt[3],Qr[g]),v=lc(f,s,d,h,b,e[Zr[g]],tt[3],et[g])):(w=dc(t,n,i,o,a,e[Xr[g]],rt[4],Qr[g]),v=sc(f,s,d,h,b,e[Zr[g]],tt[4],et[g])),t=a,a=o,o=Ve(i,10),i=n,n=w,f=b,b=h,h=Ve(d,10),d=s,s=v}var O=this._b+i+h|0;this._b=this._c+o+b|0,this._c=this._d+a+f|0,this._d=this._e+t+s|0,this._e=this._a+n+d|0,this._a=O};xn.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=mo.alloc?mo.alloc(20):new mo(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};yc.exports=xn});var Ke=p((_x,bc)=>{"use strict";u();var vw=D().Buffer,_w=ln();function En(e,r){this._block=vw.alloc(e),this._finalSize=r,this._blockSize=e,this._len=0}En.prototype.update=function(e,r){e=_w(e,r||"utf8");for(var t=this._block,n=this._blockSize,i=e.length,o=this._len,a=0;a<i;){for(var f=o%n,s=Math.min(i-a,n-f),d=0;d<s;d++)t[f+d]=e[a+d];o+=s,a+=s,o%n===0&&this._update(t)}return this._len+=i,this};En.prototype.digest=function(e){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,i=(t-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o};En.prototype._update=function(){throw new Error("_update must be implemented by subclass")};bc.exports=En});var vc=p((xx,wc)=>{"use strict";u();var mw=R(),gc=Ke(),xw=D().Buffer,Ew=[1518500249,1859775393,-1894007588,-899497514],Sw=new Array(80);function nt(){this.init(),this._w=Sw,gc.call(this,64,56)}mw(nt,gc);nt.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Aw(e){return e<<5|e>>>27}function Bw(e){return e<<30|e>>>2}function Rw(e,r,t,n){return e===0?r&t|~r&n:e===2?r&t|r&n|t&n:r^t^n}nt.prototype._update=function(e){for(var r=this._w,t=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,a=this._e|0,f=0;f<16;++f)r[f]=e.readInt32BE(f*4);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var s=0;s<80;++s){var d=~~(s/20),h=Aw(t)+Rw(d,n,i,o)+a+r[s]+Ew[d]|0;a=o,o=i,i=Bw(n),n=t,t=h}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0};nt.prototype._hash=function(){var e=xw.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};wc.exports=nt});var xc=p((Sx,mc)=>{"use strict";u();var Tw=R(),_c=Ke(),Ow=D().Buffer,Iw=[1518500249,1859775393,-1894007588,-899497514],qw=new Array(80);function it(){this.init(),this._w=qw,_c.call(this,64,56)}Tw(it,_c);it.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Mw(e){return e<<1|e>>>31}function Pw(e){return e<<5|e>>>27}function Fw(e){return e<<30|e>>>2}function Cw(e,r,t,n){return e===0?r&t|~r&n:e===2?r&t|r&n|t&n:r^t^n}it.prototype._update=function(e){for(var r=this._w,t=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,a=this._e|0,f=0;f<16;++f)r[f]=e.readInt32BE(f*4);for(;f<80;++f)r[f]=Mw(r[f-3]^r[f-8]^r[f-14]^r[f-16]);for(var s=0;s<80;++s){var d=~~(s/20),h=Pw(t)+Cw(d,n,i,o)+a+r[s]+Iw[d]|0;a=o,o=i,i=Fw(n),n=t,t=h}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0};it.prototype._hash=function(){var e=Ow.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};mc.exports=it});var Eo=p((Bx,Sc)=>{"use strict";u();var kw=R(),Ec=Ke(),Lw=D().Buffer,Uw=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Dw=new Array(64);function ot(){this.init(),this._w=Dw,Ec.call(this,64,56)}kw(ot,Ec);ot.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function jw(e,r,t){return t^e&(r^t)}function Nw(e,r,t){return e&r|t&(e|r)}function Ww(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function $w(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Hw(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function Gw(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}ot.prototype._update=function(e){for(var r=this._w,t=this._a|0,n=this._b|0,i=this._c|0,o=this._d|0,a=this._e|0,f=this._f|0,s=this._g|0,d=this._h|0,h=0;h<16;++h)r[h]=e.readInt32BE(h*4);for(;h<64;++h)r[h]=Gw(r[h-2])+r[h-7]+Hw(r[h-15])+r[h-16]|0;for(var b=0;b<64;++b){var g=d+$w(a)+jw(a,f,s)+Uw[b]+r[b]|0,w=Ww(t)+Nw(t,n,i)|0;d=s,s=f,f=a,a=o+g|0,o=i,i=n,n=t,t=g+w|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=f+this._f|0,this._g=s+this._g|0,this._h=d+this._h|0};ot.prototype._hash=function(){var e=Lw.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};Sc.exports=ot});var Bc=p((Tx,Ac)=>{"use strict";u();var Vw=R(),Kw=Eo(),zw=Ke(),Yw=D().Buffer,Jw=new Array(64);function Sn(){this.init(),this._w=Jw,zw.call(this,64,56)}Vw(Sn,Kw);Sn.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sn.prototype._hash=function(){var e=Yw.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};Ac.exports=Sn});var So=p((Ix,Pc)=>{"use strict";u();var Xw=R(),Mc=Ke(),Zw=D().Buffer,Rc=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Qw=new Array(160);function at(){this.init(),this._w=Qw,Mc.call(this,128,112)}Xw(at,Mc);at.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Tc(e,r,t){return t^e&(r^t)}function Oc(e,r,t){return e&r|t&(e|r)}function Ic(e,r){return(e>>>28|r<<4)^(r>>>2|e<<30)^(r>>>7|e<<25)}function qc(e,r){return(e>>>14|r<<18)^(e>>>18|r<<14)^(r>>>9|e<<23)}function ev(e,r){return(e>>>1|r<<31)^(e>>>8|r<<24)^e>>>7}function rv(e,r){return(e>>>1|r<<31)^(e>>>8|r<<24)^(e>>>7|r<<25)}function tv(e,r){return(e>>>19|r<<13)^(r>>>29|e<<3)^e>>>6}function nv(e,r){return(e>>>19|r<<13)^(r>>>29|e<<3)^(e>>>6|r<<26)}function U(e,r){return e>>>0<r>>>0?1:0}at.prototype._update=function(e){for(var r=this._w,t=this._ah|0,n=this._bh|0,i=this._ch|0,o=this._dh|0,a=this._eh|0,f=this._fh|0,s=this._gh|0,d=this._hh|0,h=this._al|0,b=this._bl|0,g=this._cl|0,w=this._dl|0,v=this._el|0,O=this._fl|0,C=this._gl|0,F=this._hl|0,I=0;I<32;I+=2)r[I]=e.readInt32BE(I*4),r[I+1]=e.readInt32BE(I*4+4);for(;I<160;I+=2){var Sr=r[I-30],Ar=r[I-30+1],eh=ev(Sr,Ar),qo=rv(Ar,Sr);Sr=r[I-4],Ar=r[I-4+1];var rh=tv(Sr,Ar),Mo=nv(Ar,Sr),th=r[I-14],nh=r[I-14+1],ih=r[I-32],Po=r[I-32+1],X=qo+nh|0,Te=eh+th+U(X,qo)|0;X=X+Mo|0,Te=Te+rh+U(X,Mo)|0,X=X+Po|0,Te=Te+ih+U(X,Po)|0,r[I]=Te,r[I+1]=X}for(var Ye=0;Ye<160;Ye+=2){Te=r[Ye],X=r[Ye+1];var oh=Oc(t,n,i),ah=Oc(h,b,g),fh=Ic(t,h),Fo=Ic(h,t),uh=qc(a,v),sh=qc(v,a),lh=Rc[Ye],Co=Rc[Ye+1],ch=Tc(a,f,s),ko=Tc(v,O,C),V=F+sh|0,ve=d+uh+U(V,F)|0;V=V+ko|0,ve=ve+ch+U(V,ko)|0,V=V+Co|0,ve=ve+lh+U(V,Co)|0,V=V+X|0,ve=ve+Te+U(V,X)|0;var Lo=Fo+ah|0,hh=fh+oh+U(Lo,Fo)|0;d=s,F=C,s=f,C=O,f=a,O=v,v=w+V|0,a=o+ve+U(v,w)|0,o=i,w=g,i=n,g=b,n=t,b=h,h=V+Lo|0,t=ve+hh+U(h,V)|0}this._al=this._al+h|0,this._bl=this._bl+b|0,this._cl=this._cl+g|0,this._dl=this._dl+w|0,this._el=this._el+v|0,this._fl=this._fl+O|0,this._gl=this._gl+C|0,this._hl=this._hl+F|0,this._ah=this._ah+t+U(this._al,h)|0,this._bh=this._bh+n+U(this._bl,b)|0,this._ch=this._ch+i+U(this._cl,g)|0,this._dh=this._dh+o+U(this._dl,w)|0,this._eh=this._eh+a+U(this._el,v)|0,this._fh=this._fh+f+U(this._fl,O)|0,this._gh=this._gh+s+U(this._gl,C)|0,this._hh=this._hh+d+U(this._hl,F)|0};at.prototype._hash=function(){var e=Zw.allocUnsafe(64);function r(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return r(this._ah,this._al,0),r(this._bh,this._bl,8),r(this._ch,this._cl,16),r(this._dh,this._dl,24),r(this._eh,this._el,32),r(this._fh,this._fl,40),r(this._gh,this._gl,48),r(this._hh,this._hl,56),e};Pc.exports=at});var Cc=p((Mx,Fc)=>{"use strict";u();var iv=R(),ov=So(),av=Ke(),fv=D().Buffer,uv=new Array(160);function An(){this.init(),this._w=uv,av.call(this,128,112)}iv(An,ov);An.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};An.prototype._hash=function(){var e=fv.allocUnsafe(48);function r(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return r(this._ah,this._al,0),r(this._bh,this._bl,8),r(this._ch,this._cl,16),r(this._dh,this._dl,24),r(this._eh,this._el,32),r(this._fh,this._fl,40),e};Fc.exports=An});var Ao=p((Fx,we)=>{"use strict";u();we.exports=function(r){var t=r.toLowerCase(),n=we.exports[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};we.exports.sha=vc();we.exports.sha1=xc();we.exports.sha224=Bc();we.exports.sha256=Eo();we.exports.sha384=Cc();we.exports.sha512=So()});var Bn=p((kx,Lc)=>{"use strict";u();var sv=D().Buffer,kc=ro().Transform,lv=yr().StringDecoder,cv=R(),hv=ln();function ee(e){kc.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}cv(ee,kc);ee.prototype.update=function(e,r,t){var n=hv(e,r),i=this._update(n);return this.hashMode?this:(t&&(i=this._toString(i,t)),i)};ee.prototype.setAutoPadding=function(){};ee.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};ee.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};ee.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};ee.prototype._transform=function(e,r,t){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{t(n)}};ee.prototype._flush=function(e){var r;try{this.push(this.__final())}catch(t){r=t}e(r)};ee.prototype._finalOrDigest=function(e){var r=this.__final()||sv.alloc(0);return e&&(r=this._toString(r,e,!0)),r};ee.prototype._toString=function(e,r,t){if(this._decoder||(this._decoder=new lv(r),this._encoding=r),this._encoding!==r)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(e);return t&&(n+=this._decoder.end()),n};Lc.exports=ee});var jc=p((Ux,Dc)=>{"use strict";u();var dv=R(),pv=to(),yv=xo(),bv=Ao(),Uc=Bn();function Rn(e){Uc.call(this,"digest"),this._hash=e}dv(Rn,Uc);Rn.prototype._update=function(e){this._hash.update(e)};Rn.prototype._final=function(){return this._hash.digest()};Dc.exports=function(r){return r=r.toLowerCase(),r==="md5"?new pv:r==="rmd160"||r==="ripemd160"?new yv:new Rn(bv(r))}});var $c=p((jx,Wc)=>{"use strict";u();var gv=R(),ze=D().Buffer,Nc=Bn(),wv=ze.alloc(128),Er=64;function Tn(e,r){Nc.call(this,"digest"),typeof r=="string"&&(r=ze.from(r)),this._alg=e,this._key=r,r.length>Er?r=e(r):r.length<Er&&(r=ze.concat([r,wv],Er));for(var t=this._ipad=ze.allocUnsafe(Er),n=this._opad=ze.allocUnsafe(Er),i=0;i<Er;i++)t[i]=r[i]^54,n[i]=r[i]^92;this._hash=[t]}gv(Tn,Nc);Tn.prototype._update=function(e){this._hash.push(e)};Tn.prototype._final=function(){var e=this._alg(ze.concat(this._hash));return this._alg(ze.concat([this._opad,e]))};Wc.exports=Tn});var Gc=p((Wx,Hc)=>{u();var vv=to();Hc.exports=function(e){return new vv().update(e).digest()}});var zc=p((Hx,Kc)=>{"use strict";u();var _v=R(),mv=$c(),Vc=Bn(),ft=D().Buffer,xv=Gc(),Bo=xo(),Ro=Ao(),Ev=ft.alloc(128);function ut(e,r){Vc.call(this,"digest"),typeof r=="string"&&(r=ft.from(r));var t=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=r,r.length>t){var n=e==="rmd160"?new Bo:Ro(e);r=n.update(r).digest()}else r.length<t&&(r=ft.concat([r,Ev],t));for(var i=this._ipad=ft.allocUnsafe(t),o=this._opad=ft.allocUnsafe(t),a=0;a<t;a++)i[a]=r[a]^54,o[a]=r[a]^92;this._hash=e==="rmd160"?new Bo:Ro(e),this._hash.update(i)}_v(ut,Vc);ut.prototype._update=function(e){this._hash.update(e)};ut.prototype._final=function(){var e=this._hash.digest(),r=this._alg==="rmd160"?new Bo:Ro(this._alg);return r.update(this._opad).update(e).digest()};Kc.exports=function(r,t){return r=r.toLowerCase(),r==="rmd160"||r==="ripemd160"?new ut("rmd160",t):r==="md5"?new mv(xv,t):new ut(r,t)}});var Yc=p((Vx,Oo)=>{"use strict";u();var To=65536,Sv=4294967295;function Av(){throw new Error(`Secure random number generation is not supported by this browser.
11
+ Use Chrome, Firefox or Internet Explorer 11`)}var Bv=D().Buffer,On=globalThis.crypto||globalThis.msCrypto;On&&On.getRandomValues?Oo.exports=Rv:Oo.exports=Av;function Rv(e,r){if(e>Sv)throw new RangeError("requested too many random bytes");var t=Bv.allocUnsafe(e);if(e>0)if(e>To)for(var n=0;n<e;n+=To)On.getRandomValues(t.slice(n,n+To));else On.getRandomValues(t);return typeof r=="function"?l.default.nextTick(function(){r(null,t)}):t}});var Jc=p(In=>{"use strict";u();In.createHash=jc();In.createHmac=zc();In.randomBytes=Yc()});var Zc=p((Jx,Xc)=>{"use strict";u();var qn=Jc();async function Tv(e){e=e||{};var r=e.alg||"ES256",t=e.kid||"key-"+Date.now();if(r!=="ES256"&&r!=="ES256K")throw new Error("Invalid algorithm. Must be ES256 or ES256K");var n;r==="ES256"?n=qn.generateKeyPairSync("ec",{namedCurve:"P-256",publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}):n=qn.generateKeyPairSync("ec",{namedCurve:"secp256k1",publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});var i=qn.createPublicKey(n.publicKey).export({format:"jwk"}),o=qn.createPrivateKey(n.privateKey).export({format:"jwk"});return i.kid=t,i.alg=r,i.use="sig",i.kty="EC",o.kid=t,o.alg=r,o.use="sig",o.kty="EC",{privateJwk:o,publicJwk:i,kid:t,alg:r}}var st=["authentication","assertionMethod","keyAgreement","capabilityInvocation","capabilityDelegation"],Ov=["authentication","assertionMethod"];function Io(e){var r=e.relationships||Ov;if(!Array.isArray(r)||r.length===0)throw new Error("relationships must be a non-empty array of DID Core verification relationships");return r.forEach(function(t){if(st.indexOf(t)===-1)throw new Error("unknown verification relationship: "+t+" (expected one of "+st.join(", ")+")")}),r}function Iv(e){if(!e.domain)throw new Error("domain is required");var r=e.domain,t="did:web:"+r.replace(/:/g,"%3A"),n=[],i=[],o=[];if(e.p256){var a={id:t+"#"+e.p256.kid,type:"JsonWebKey2020",controller:t,publicKeyJwk:e.p256.jwk};n.push(a),i.push(Io(e.p256)),o.push(e.p256.jwk)}if(e.k1){var f={id:t+"#"+e.k1.kid,type:"JsonWebKey2020",controller:t,publicKeyJwk:e.k1.jwk};n.push(f),i.push(Io(e.k1)),o.push(e.k1.jwk)}if(n.length===0)throw new Error("At least one key (p256 or k1) must be provided");var s={"@context":["https://www.w3.org/ns/did/v1","https://w3id.org/security/suites/jws-2020/v1"],id:t,verificationMethod:n};st.forEach(function(h){var b=n.filter(function(g,w){return i[w].indexOf(h)!==-1}).map(function(g){return g.id});b.length&&(s[h]=b)}),e.controllerName&&(s.controller=e.controllerName);var d={keys:o};return{did:t,didDocument:s,jwks:d}}function qv(e){if(!e.domain||!e.newKey)throw new Error("domain and newKey are required");var r=e.domain,t="did:web:"+r.replace(/:/g,"%3A"),n=e.keepOldForDays||30,i={id:t+"#"+e.newKey.kid,type:"JsonWebKey2020",controller:t,publicKeyJwk:e.newKey.jwk},o=Io(e.newKey),a=e.currentDocument||null,f={"@context":["https://www.w3.org/ns/did/v1","https://w3id.org/security/suites/jws-2020/v1"],id:t,verificationMethod:[i]};if(st.forEach(function(h){o.indexOf(h)!==-1?f[h]=[i.id]:a&&Array.isArray(a[h])&&a[h].length&&(f[h]=a[h].slice())}),a&&Array.isArray(a.verificationMethod)){var s={};st.forEach(function(h){(f[h]||[]).forEach(function(b){s[b]=!0})}),a.verificationMethod.forEach(function(h){s[h.id]&&h.id!==i.id&&f.verificationMethod.push(h)})}f.rotationInfo={rotatedAt:new Date().toISOString(),gracePeriodDays:n};var d={keys:[e.newKey.jwk]};return{didDocument:f,jwks:d}}Xc.exports={generateIssuerKeys:Tv,buildDidWebDocuments:Iv,rotateIssuerKey:qv}});var Mv=p((Zx,Qc)=>{u();Qc.exports=Zc()});return Mv();})();
12
12
  if(typeof module!=="undefined"&&module.exports){module.exports=bsvDIDWeb}else if(typeof define==="function"&&define.amd){define([],function(){return bsvDIDWeb})}