/* ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. **************************************************************************** https://mths.be/punycode v1.4.1 by @mathias */ 'use strict';var WasmFs=function(Ya){function Yc(c,a,b,d){return new (b||(b=Promise))(function(e,f){function g(c){try{l(d.next(c))}catch(m){f(m)}}function h(c){try{l(d["throw"](c))}catch(m){f(m)}}function l(c){c.done?e(c.value):(new b(function(a){a(c.value)})).then(g,h)}l((d=d.apply(c,a||[])).next())})}function Zc(c,a){function b(c){return function(a){return d([c,a])}}function d(b){if(f)throw new TypeError("Generator is already executing.");for(;e;)try{if(f=1,g&&(h=b[0]&2?g["return"]:b[0]?g["throw"]|| ((h=g["return"])&&h.call(g),0):g.next)&&!(h=h.call(g,b[1])).done)return h;if(g=0,h)b=[b[0]&2,h.value];switch(b[0]){case 0:case 1:h=b;break;case 4:return e.label++,{value:b[1],done:!1};case 5:e.label++;g=b[1];b=[0];continue;case 7:b=e.ops.pop();e.trys.pop();continue;default:if(!(h=e.trys,h=0h[0]&&b[1]=c.length&&(c=void 0); return{value:c&&c[b++],done:!c}}}}function $c(c,a){var b="function"===typeof Symbol&&c[Symbol.iterator];if(!b)return c;c=b.call(c);var d,e=[];try{for(;(void 0===a||0c;++c)J[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[c],S["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(c)]=c;S[45]=62;S[95]=63}function bd(c,a,b){for(var d=[],e=a;e>18&63]+J[a>>12&63]+J[a>>6&63]+J[a&63]);return d.join("")}function Eb(c){$a||Db();for(var a=c.length,b=a%3,d="",e=[], f=0,g=a-b;fg?g:f+16383));1===b?(c=c[a-1],d+=J[c>>2],d+=J[c<<4&63],d+="=="):2===b&&(c=(c[a-2]<<8)+c[a-1],d+=J[c>>10],d+=J[c>>4&63],d+=J[c<<2&63],d+="=");e.push(d);return e.join("")}function Ba(c,a,b,d,e){var f=8*e-d-1;var g=(1<>1,l=-7;e=b?e-1:0;var u=b?-1:1,m=c[a+e];e+=u;b=m&(1<<-l)-1;m>>=-l;for(l+=f;0>=-l;for(l+=d;0>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0;f=d?0:f-1;var p=d?1:-1,Ka=0>a||0===a&&0>1/a?1:0;a=Math.abs(a);isNaN(a)||Infinity===a?(a=isNaN(a)?1:0,d=l):(d=Math.floor(Math.log(a)/Math.LN2),1>a*(g=Math.pow(2,-d))&&(d--,g*=2),a=1<=d+u?a+m/g:a+m*Math.pow(2,1-u),2<=a*g&&(d++,g/=2),d+u>=l?(a=0,d=l):1<=d+u?(a=(a*g-1)*Math.pow(2,e),d+=u):(a=a*Math.pow(2,u-1)*Math.pow(2,e),d=0));for(;8<=e;c[b+f]=a&255,f+=p,a/= 256,e-=8);d=d<b||a.byteLengthc)throw new RangeError('"size" argument must not be negative');}function ab(c,a){Hb(a);c=I(c,0>a?0:cb(a)|0);if(!k.TYPED_ARRAY_SUPPORT)for(var b= 0;ba.length?0:cb(a.length)|0;c=I(c,b);for(var d=0;d=(k.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(k.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+" bytes");return c|0}function T(c){return!(null==c||!c._isBuffer)}function Gb(c,a){if(T(c))return c.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(c)||c instanceof ArrayBuffer))return c.byteLength;"string"!==typeof c&&(c=""+c);var b=c.length; if(0===b)return 0;for(var d=!1;;)switch(a){case "ascii":case "latin1":case "binary":return b;case "utf8":case "utf-8":case void 0:return Oa(c).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*b;case "hex":return b>>>1;case "base64":return Jb(c).length;default:if(d)return Oa(c).length;a=(""+a).toLowerCase();d=!0}}function dd(c,a,b){var d=!1;if(void 0===a||0>a)a=0;if(a>this.length)return"";if(void 0===b||b>this.length)b=this.length;if(0>=b)return"";b>>>=0;a>>>=0;if(b<=a)return""; for(c||(c="utf8");;)switch(c){case "hex":c=a;a=b;b=this.length;if(!c||0>c)c=0;if(!a||0>a||a>b)a=b;d="";for(b=c;bd?"0"+d.toString(16):d.toString(16),d=c+d;return d;case "utf8":case "utf-8":return Kb(this,a,b);case "ascii":c="";for(b=Math.min(this.length,b);ab&&(b=-2147483648);b=+b;isNaN(b)&&(b=e?0:c.length-1);0>b&&(b=c.length+b);if(b>= c.length){if(e)return-1;b=c.length-1}else if(0>b)if(e)b=0;else return-1;"string"===typeof a&&(a=k.from(a,d));if(T(a))return 0===a.length?-1:Mb(c,a,b,d,e);if("number"===typeof a)return a&=255,k.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(c,a,b):Uint8Array.prototype.lastIndexOf.call(c,a,b):Mb(c,[a],b,d,e);throw new TypeError("val must be string, number or Buffer");}function Mb(c,a,b,d,e){function f(c,a){return 1===g?c[a]:c.readUInt16BE(a* g)}var g=1,h=c.length,l=a.length;if(void 0!==d&&(d=String(d).toLowerCase(),"ucs2"===d||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(2>c.length||2>a.length)return-1;g=2;h/=2;l/=2;b/=2}if(e)for(d=-1;bh&&(b=h-l);0<=b;b--){h=!0;for(d=0;de&&(f=e);break;case 2:var h=c[a+1];128===(h&192)&&(e=(e&31)<<6|h&63,127e||57343e&&(f=e))}null===f?(f=65533,g=1):65535>>10&1023|55296),f=56320|f&1023); d.push(f);a+=g}c=d.length;if(c<=Nb)d=String.fromCharCode.apply(String,d);else{b="";for(a=0;ac)throw new RangeError("offset is not uint");if(c+a>b)throw new RangeError("Trying to access beyond buffer length");}function F(c,a,b,d,e,f){if(!T(c))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>e||ac.length)throw new RangeError("Index out of range"); }function Pa(c,a,b,d){0>a&&(a=65535+a+1);for(var e=0,f=Math.min(c.length-b,2);e>>8*(d?e:1-e)}function Qa(c,a,b,d){0>a&&(a=4294967295+a+1);for(var e=0,f=Math.min(c.length-b,4);e>>8*(d?e:3-e)&255}function Ra(c,a,b,d,e,f){if(b+d>c.length)throw new RangeError("Index out of range");if(0>b)throw new RangeError("Index out of range");}function Oa(c,a){a=a||Infinity;for(var b,d=c.length,e=null,f=[],g=0;gb){if(!e){if(56319< b){-1<(a-=3)&&f.push(239,191,189);continue}else if(g+1===d){-1<(a-=3)&&f.push(239,191,189);continue}e=b;continue}if(56320>b){-1<(a-=3)&&f.push(239,191,189);e=b;continue}b=(e-55296<<10|b-56320)+65536}else e&&-1<(a-=3)&&f.push(239,191,189);e=null;if(128>b){if(0>--a)break;f.push(b)}else if(2048>b){if(0>(a-=2))break;f.push(b>>6|192,b&63|128)}else if(65536>b){if(0>(a-=3))break;f.push(b>>12|224,b>>6&63|128,b&63|128)}else if(1114112>b){if(0>(a-=4))break;f.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw Error("Invalid code point"); }return f}function Ob(c){for(var a=[],b=0;bc.length)c="";else for(;0!==c.length%4;)c+="=";$a||Db();var a=c.length;if(0>16&255;d[f++]=g>>8&255;d[f++]=g&255}2===b?(g=S[c.charCodeAt(a)]<<2|S[c.charCodeAt(a+1)]>>4,d[f++]=g&255):1===b&&(g=S[c.charCodeAt(a)]<<10|S[c.charCodeAt(a+1)]<<4|S[c.charCodeAt(a+2)]>>2,d[f++]=g>>8&255,d[f++]=g&255);return d}function ya(c,a,b,d){for(var e=0;e=a.length||e>=c.length);++e)a[e+b]=c[e];return e}function U(c){return null!=c&&(!!c._isBuffer||Pb(c)||"function"===typeof c.readFloatLE&&"function"===typeof c.slice&&Pb(c.slice(0,0)))}function Pb(c){return!!c.constructor&& "function"===typeof c.constructor.isBuffer&&c.constructor.isBuffer(c)}function Qb(){throw Error("setTimeout has not been defined");}function Rb(){throw Error("clearTimeout has not been defined");}function Sb(c){if(aa===setTimeout)return setTimeout(c,0);if((aa===Qb||!aa)&&setTimeout)return aa=setTimeout,setTimeout(c,0);try{return aa(c,0)}catch(a){try{return aa.call(null,c,0)}catch(b){return aa.call(this,c,0)}}}function gd(c){if(fa===clearTimeout)return clearTimeout(c);if((fa===Rb||!fa)&&clearTimeout)return fa= clearTimeout,clearTimeout(c);try{return fa(c)}catch(a){try{return fa.call(null,c)}catch(b){return fa.call(this,c)}}}function hd(){oa&&N&&(oa=!1,N.length?O=N.concat(O):Sa=-1,O.length&&Tb())}function Tb(){if(!oa){var c=Sb(hd);oa=!0;for(var a=O.length;a;){N=O;for(O=[];++Sa=e)return c;switch(c){case "%s":return String(d[b++]);case "%d":return Number(d[b++]);case "%j":try{return JSON.stringify(d[b++])}catch(h){return"[Circular]"}default:return c}});for(var f=d[b];bb)return qa(a)?c.stylize(RegExp.prototype.toString.call(a),"regexp"):c.stylize("[Object]","special");c.seen.push(a);e=g? nd(c,a,b,f,e):e.map(function(d){return ib(c,a,b,f,d,g)});c.seen.pop();return od(e,d,h)}function md(c,a){if(P(a))return c.stylize("undefined","undefined");if(ha(a))return a="'"+JSON.stringify(a).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",c.stylize(a,"string");if(Yb(a))return c.stylize(""+a,"number");if(gb(a))return c.stylize(""+a,"boolean");if(null===a)return c.stylize("null","null")}function hb(c){return"["+Error.prototype.toString.call(c)+"]"}function nd(c,a,b,d,e){for(var f= [],g=0,h=a.length;gc.seen.indexOf(a.value)?(h=null=== b?Ua(c,a.value,null):Ua(c,a.value,b-1),-1c?"0"+c.toString(10):c.toString(10)}function pd(){var c=new Date,a=[kb(c.getHours()),kb(c.getMinutes()), kb(c.getSeconds())].join(":");return[c.getDate(),qd[c.getMonth()],a].join(" ")}function Wb(c,a){if(!a||!ba(a))return c;for(var b=Object.keys(a),d=b.length;d--;)c[b[d]]=a[b[d]];return c}function Zb(c,a){if(c===a)return 0;for(var b=c.length,d=a.length,e=0,f=Math.min(b,d);eb?[]:c.slice(a,b-a+1)}c=ob(c).substr(1);a=ob(a).substr(1);c=b(c.split("/"));a=b(a.split("/"));for(var d=Math.min(c.length,a.length),e=d,f=0;fb&&(f.warned=!0,b=Error("Possible EventEmitter memory leak detected. "+f.length+" "+a+" listeners added. Use emitter.setMaxListeners() to increase limit"),b.name="MaxListenersExceededWarning",b.emitter=c,b.type=a,b.count=f.length,"function"===typeof console.warn?console.warn(b):console.log(b))):(e[a]=b,++c._eventsCount);return c}function sc(c, a,b){function d(){c.removeListener(a,d);e||(e=!0,b.apply(c,arguments))}var e=!1;d.listener=b;return d}function tc(c){var a=this._events;if(a){c=a[c];if("function"===typeof c)return 1;if(c)return c.length}return 0}function ca(c,a){for(var b=Array(a);a--;)b[a]=c[a];return b}function ka(){this.tail=this.head=null;this.length=0}function ra(c){this.encoding=(c||"utf8").toLowerCase().replace(/[-_]/,"");if(c&&!vd(c))throw Error("Unknown encoding: "+c);switch(this.encoding){case "utf8":this.surrogateSize= 3;break;case "ucs2":case "utf16le":this.surrogateSize=2;this.detectIncompleteChar=wd;break;case "base64":this.surrogateSize=3;this.detectIncompleteChar=xd;break;default:this.write=yd;return}this.charBuffer=new k(6);this.charLength=this.charReceived=0}function yd(c){return c.toString(this.encoding)}function wd(c){this.charLength=(this.charReceived=c.length%2)?2:0}function xd(c){this.charLength=(this.charReceived=c.length%3)?3:0}function zd(c,a,b){if("function"===typeof c.prependListener)return c.prependListener(a, b);if(c._events&&c._events[a])Array.isArray(c._events[a])?c._events[a].unshift(b):c._events[a]=[b,c._events[a]];else c.on(a,b)}function uc(c,a){c=c||{};this.objectMode=!!c.objectMode;a instanceof B&&(this.objectMode=this.objectMode||!!c.readableObjectMode);a=c.highWaterMark;var b=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:b;this.highWaterMark=~~this.highWaterMark;this.buffer=new ka;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.reading=this.endEmitted=this.ended= !1;this.sync=!0;this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1;this.defaultEncoding=c.defaultEncoding||"utf8";this.ranOut=!1;this.awaitDrain=0;this.readingMore=!1;this.encoding=this.decoder=null;c.encoding&&(this.decoder=new ra(c.encoding),this.encoding=c.encoding)}function y(c){if(!(this instanceof y))return new y(c);this._readableState=new uc(c,this);this.readable=!0;c&&"function"===typeof c.read&&(this._read=c.read);t.call(this)}function vc(c,a,b,d,e){var f= b;var g=null;U(f)||"string"===typeof f||null===f||void 0===f||a.objectMode||(g=new TypeError("Invalid non-string/buffer chunk"));if(f=g)c.emit("error",f);else if(null===b)a.reading=!1,a.ended||(a.decoder&&(b=a.decoder.end())&&b.length&&(a.buffer.push(b),a.length+=a.objectMode?1:b.length),a.ended=!0,Wa(c));else if(a.objectMode||b&&0=c||0===a.length&&a.ended)return 0;if(a.objectMode)return 1;if(c!==c)return a.flowing&&a.length? a.buffer.head.data.length:a.length;if(c>a.highWaterMark){var b=c;8388608<=b?b=8388608:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++);a.highWaterMark=b}return c<=a.length?c:a.ended?a.length:(a.needReadable=!0,0)}function Wa(c){var a=c._readableState;a.needReadable=!1;a.emittedReadable||(v("emitReadable",a.flowing),a.emittedReadable=!0,a.sync?A(xc,c):xc(c))}function xc(c){v("emit readable");c.emit("readable");pb(c)}function Ad(c,a){for(var b=a.length;!a.reading&&!a.flowing&&!a.ended&&a.length< a.highWaterMark&&(v("maybeReadMore read 0"),c.read(0),b!==a.length);)b=a.length;a.readingMore=!1}function Bd(c){return function(){var a=c._readableState;v("pipeOnDrain",a.awaitDrain);a.awaitDrain&&a.awaitDrain--;0===a.awaitDrain&&c.listeners("data").length&&(a.flowing=!0,pb(c))}}function Cd(c){v("readable nexttick read 0");c.read(0)}function Dd(c,a){a.reading||(v("resume read 0"),c.read(0));a.resumeScheduled=!1;a.awaitDrain=0;c.emit("resume");pb(c);a.flowing&&!a.reading&&c.read(0)}function pb(c){var a= c._readableState;for(v("flow",a.flowing);a.flowing&&null!==c.read(););}function yc(c,a){if(0===a.length)return null;if(a.objectMode)var b=a.buffer.shift();else if(!c||c>=a.length)b=a.decoder?a.buffer.join(""):1===a.buffer.length?a.buffer.head.data:a.buffer.concat(a.length),a.buffer.clear();else{b=a.buffer;a=a.decoder;if(cf.length?f.length:c;e=g===f.length?e+f:e+f.slice(0,c);c-=g;if(0===c){g===f.length?(++d,b.head=a.next?a.next:b.tail=null):(b.head=a,a.data=f.slice(g));break}++d}b.length-=d;b=e}else{a=k.allocUnsafe(c);d=b.head;e=1;d.data.copy(a);for(c-=d.data.length;d=d.next;){f=d.data;g=c>f.length?f.length:c;f.copy(a,a.length-c,0,g);c-=g;if(0===c){g===f.length?(++e,b.head=d.next?d.next:b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}b.length-=e;b=a}a=b}b=a}return b}function qb(c){var a=c._readableState; if(0c)-((0!=a)<<5)}function Nd(c){return Ld(c,function(c){if(Od.test(c)){var a;var d=[];var e=[];var f=0;for(a=c.length;f=g&&fm&&d.push(tb(m))}for((f=a=d.length)&&d.push("-");f=e&&msa((2147483647-l)/Ka))throw new RangeError(Hc.overflow);l+=(p-e)*Ka;e=p;for(g=0;g=u+26?26:p-u;if(k< m)break;var ta=k-m;k=36-m;d.push(tb(Gc(m+ta%k,0)));k=sa(ta/k)}d.push(tb(Gc(k,0)));u=Ka;p=0;l=f==a?sa(l/700):l>>1;for(l+=sa(l/u);455a&&(d=a);for(a=0;aUd?"":c.hostname.toLowerCase();g||(c.hostname=Nd(c.hostname));d=c.port?":"+c.port:"";c.host=(c.hostname||"")+d;c.href+=c.host;g&&(c.hostname=c.hostname.substr(1, c.hostname.length-2),"/"!==e[0]&&(e="/"+e))}if(!Vd[f])for(d=0,a=vb.length;d=c?I(null,c):void 0!==a?"string"===typeof b?I(null,c).fill(a,b):I(null,c).fill(a):I(null,c);return c};k.allocUnsafe=function(c){return ab(null,c)};k.allocUnsafeSlow=function(c){return ab(null,c)};k.isBuffer=U;k.compare=function(c,a){if(!T(c)||!T(a))throw new TypeError("Arguments must be Buffers"); if(c===a)return 0;for(var b=c.length,d=a.length,e=0,f=Math.min(b,d);e"};k.prototype.compare=function(c,a,b,d,e){if(!T(c))throw new TypeError("Argument must be a Buffer");void 0===a&&(a=0);void 0===b&&(b=c?c.length:0);void 0===d&&(d=0);void 0===e&&(e=this.length);if(0>a||b>c.length||0>d||e>this.length)throw new RangeError("out of range index"); if(d>=e&&a>=b)return 0;if(d>=e)return-1;if(a>=b)return 1;a>>>=0;b>>>=0;d>>>=0;e>>>=0;if(this===c)return 0;var f=e-d,g=b-a,h=Math.min(f,g);d=this.slice(d,e);c=c.slice(a,b);for(a=0;ae)b=e;if(0b||0>a)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");d||(d="utf8");for(e=!1;;)switch(d){case "hex":a:{a=Number(a)||0;d=this.length-a;b?(b=Number(b),b>d&& (b=d)):b=d;d=c.length;if(0!==d%2)throw new TypeError("Invalid hex string");b>d/2&&(b=d/2);for(d=0;d(e-=2));++g){var h= d.charCodeAt(g);c=h>>8;h%=256;f.push(h);f.push(c)}return ya(f,this,a,b);default:if(e)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase();e=!0}};k.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Nb=4096;k.prototype.slice=function(c,a){var b=this.length;c=~~c;a=void 0===a?b:~~a;0>c?(c+=b,0>c&&(c=0)):c>b&&(c=b);0>a?(a+=b,0>a&&(a=0)):a>b&&(a=b);a=128*d&&(b-=Math.pow(2,8* a));return b};k.prototype.readIntBE=function(c,a,b){c|=0;a|=0;b||w(c,a,this.length);b=a;for(var d=1,e=this[c+--b];0=128*d&&(e-=Math.pow(2,8*a));return e};k.prototype.readInt8=function(c,a){a||w(c,1,this.length);return this[c]&128?-1*(255-this[c]+1):this[c]};k.prototype.readInt16LE=function(c,a){a||w(c,2,this.length);c=this[c]|this[c+1]<<8;return c&32768?c|4294901760:c};k.prototype.readInt16BE=function(c,a){a||w(c,2,this.length);c=this[c+1]|this[c]<<8;return c&32768? c|4294901760:c};k.prototype.readInt32LE=function(c,a){a||w(c,4,this.length);return this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24};k.prototype.readInt32BE=function(c,a){a||w(c,4,this.length);return this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]};k.prototype.readFloatLE=function(c,a){a||w(c,4,this.length);return Ba(this,c,!0,23,4)};k.prototype.readFloatBE=function(c,a){a||w(c,4,this.length);return Ba(this,c,!1,23,4)};k.prototype.readDoubleLE=function(c,a){a||w(c,8,this.length);return Ba(this,c, !0,52,8)};k.prototype.readDoubleBE=function(c,a){a||w(c,8,this.length);return Ba(this,c,!1,52,8)};k.prototype.writeUIntLE=function(c,a,b,d){c=+c;a|=0;b|=0;d||F(this,c,a,b,Math.pow(2,8*b)-1,0);d=1;var e=0;for(this[a]=c&255;++e>>8):Pa(this,c,a,!0);return a+2};k.prototype.writeUInt16BE=function(c,a,b){c=+c;a|=0;b||F(this,c,a,2,65535,0);k.TYPED_ARRAY_SUPPORT?(this[a]=c>>>8,this[a+1]=c&255):Pa(this,c,a,!1);return a+2};k.prototype.writeUInt32LE=function(c,a,b){c=+c;a|=0;b||F(this,c,a,4,4294967295,0);k.TYPED_ARRAY_SUPPORT? (this[a+3]=c>>>24,this[a+2]=c>>>16,this[a+1]=c>>>8,this[a]=c&255):Qa(this,c,a,!0);return a+4};k.prototype.writeUInt32BE=function(c,a,b){c=+c;a|=0;b||F(this,c,a,4,4294967295,0);k.TYPED_ARRAY_SUPPORT?(this[a]=c>>>24,this[a+1]=c>>>16,this[a+2]=c>>>8,this[a+3]=c&255):Qa(this,c,a,!1);return a+4};k.prototype.writeIntLE=function(c,a,b,d){c=+c;a|=0;d||(d=Math.pow(2,8*b-1),F(this,c,a,b,d-1,-d));d=0;var e=1,f=0;for(this[a]=c&255;++dc&&0===f&&0!==this[a+d-1]&&(f=1),this[a+d]=(c/e>>0)-f&255;return a+ b};k.prototype.writeIntBE=function(c,a,b,d){c=+c;a|=0;d||(d=Math.pow(2,8*b-1),F(this,c,a,b,d-1,-d));d=b-1;var e=1,f=0;for(this[a+d]=c&255;0<=--d&&(e*=256);)0>c&&0===f&&0!==this[a+d+1]&&(f=1),this[a+d]=(c/e>>0)-f&255;return a+b};k.prototype.writeInt8=function(c,a,b){c=+c;a|=0;b||F(this,c,a,1,127,-128);k.TYPED_ARRAY_SUPPORT||(c=Math.floor(c));0>c&&(c=255+c+1);this[a]=c&255;return a+1};k.prototype.writeInt16LE=function(c,a,b){c=+c;a|=0;b||F(this,c,a,2,32767,-32768);k.TYPED_ARRAY_SUPPORT?(this[a]=c&255, this[a+1]=c>>>8):Pa(this,c,a,!0);return a+2};k.prototype.writeInt16BE=function(c,a,b){c=+c;a|=0;b||F(this,c,a,2,32767,-32768);k.TYPED_ARRAY_SUPPORT?(this[a]=c>>>8,this[a+1]=c&255):Pa(this,c,a,!1);return a+2};k.prototype.writeInt32LE=function(c,a,b){c=+c;a|=0;b||F(this,c,a,4,2147483647,-2147483648);k.TYPED_ARRAY_SUPPORT?(this[a]=c&255,this[a+1]=c>>>8,this[a+2]=c>>>16,this[a+3]=c>>>24):Qa(this,c,a,!0);return a+4};k.prototype.writeInt32BE=function(c,a,b){c=+c;a|=0;b||F(this,c,a,4,2147483647,-2147483648); 0>c&&(c=4294967295+c+1);k.TYPED_ARRAY_SUPPORT?(this[a]=c>>>24,this[a+1]=c>>>16,this[a+2]=c>>>8,this[a+3]=c&255):Qa(this,c,a,!1);return a+4};k.prototype.writeFloatLE=function(c,a,b){b||Ra(this,c,a,4);Ca(this,c,a,!0,23,4);return a+4};k.prototype.writeFloatBE=function(c,a,b){b||Ra(this,c,a,4);Ca(this,c,a,!1,23,4);return a+4};k.prototype.writeDoubleLE=function(c,a,b){b||Ra(this,c,a,8);Ca(this,c,a,!0,52,8);return a+8};k.prototype.writeDoubleBE=function(c,a,b){b||Ra(this,c,a,8);Ca(this,c,a,!1,52,8);return a+ 8};k.prototype.copy=function(c,a,b,d){b||(b=0);d||0===d||(d=this.length);a>=c.length&&(a=c.length);a||(a=0);0a)throw new RangeError("targetStart out of bounds");if(0>b||b>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length);c.length-a e||!k.TYPED_ARRAY_SUPPORT)for(d=0;de&&(c=e)}if(void 0!==d&&"string"!==typeof d)throw new TypeError("encoding must be a string");if("string"===typeof d&&!k.isEncoding(d))throw new TypeError("Unknown encoding: "+d);}else"number"=== typeof c&&(c&=255);if(0>a||this.length>>=0;b=void 0===b?this.length:b>>>0;c||(c=0);if("number"===typeof c)for(d=a;da&&(b--,a+=1E9));return[b,a]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-ae)/1E3}},ma="function"===typeof Object.create?function(c,a){c.super_=a;c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}})}: function(c,a){c.super_=a;var b=function(){};b.prototype=a.prototype;c.prototype=new b;c.prototype.constructor=c},id=/%[sdj%]/g,Ta={},fb;G.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]};G.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};var qd="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), La={inherits:ma,_extend:Wb,log:function(){console.log("%s - %s",pd(),db.apply(null,arguments))},isBuffer:function(c){return U(c)},isPrimitive:jb,isFunction:za,isError:Da,isDate:Ea,isObject:ba,isRegExp:qa,isUndefined:P,isSymbol:function(c){return"symbol"===typeof c},isString:ha,isNumber:Yb,isNullOrUndefined:function(c){return null==c},isNull:function(c){return null===c},isBoolean:gb,isArray:Xb,inspect:G,deprecate:eb,format:db,debuglog:Vb},be=Object.prototype.hasOwnProperty,kc=Object.keys||function(c){var a= [],b;for(b in c)be.call(c,b)&&a.push(b);return a},jc=Array.prototype.slice,lb,rd=/\s*function\s+([^\(\s]*)\s*/;x.AssertionError=nb;ma(nb,Error);x.fail=M;x.ok=mb;x.equal=ec;x.notEqual=fc;x.deepEqual=gc;x.deepStrictEqual=hc;x.notDeepEqual=lc;x.notDeepStrictEqual=mc;x.strictEqual=nc;x.notStrictEqual=oc;x.throws=function(c,a,b){qc(!0,c,a,b)};x.doesNotThrow=function(c,a,b){qc(!1,c,a,b)};x.ifError=function(c){if(c)throw c;};var Ma=E(function(c,a){function b(c){return function(c){function a(a){for(var b= [],e=1;e 0 and < 65536");e("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6");e("ERR_SOCKET_CANNOT_SEND","Unable to send data");e("ERR_SOCKET_CLOSED", "Socket is closed");e("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running");e("ERR_STDERR_CLOSE","process.stderr cannot be closed");e("ERR_STDOUT_CLOSE","process.stdout cannot be closed");e("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode");e("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s");e("ERR_TLS_DH_PARAM_SIZE",function(c){return"DH parameter size "+c+" is less than 2048"});e("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout");e("ERR_TLS_RENEGOTIATION_FAILED", "Failed to renegotiate");e("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext');e("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected");e("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming");e("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0");e("ERR_UNKNOWN_ENCODING","Unknown encoding: %s");e("ERR_UNKNOWN_SIGNAL","Unknown signal: %s");e("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type"); e("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type");e("ERR_V8BREAKITERATOR","Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl")});D(Ma);var Y=E(function(c,a){Object.defineProperty(a,"__esModule",{value:!0});a.ENCODING_UTF8="utf8";a.assertEncoding=function(c){if(c&&!C.Buffer.isEncoding(c))throw new Ma.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",c);};a.strToEncoding=function(c,d){return d&&d!==a.ENCODING_UTF8?"buffer"===d?new C.Buffer(c):(new C.Buffer(c)).toString(d):c}}); D(Y);var yb=E(function(c,a){Object.defineProperty(a,"__esModule",{value:!0});var b=r.constants.S_IFMT,d=r.constants.S_IFDIR,e=r.constants.S_IFREG,f=r.constants.S_IFBLK,g=r.constants.S_IFCHR,h=r.constants.S_IFLNK,l=r.constants.S_IFIFO,u=r.constants.S_IFSOCK;c=function(){function c(){this.name="";this.mode=0}c.build=function(a,b){var d=new c,e=a.getNode().mode;d.name=Y.strToEncoding(a.getName(),b);d.mode=e;return d};c.prototype._checkModeProperty=function(c){return(this.mode&b)===c};c.prototype.isDirectory= function(){return this._checkModeProperty(d)};c.prototype.isFile=function(){return this._checkModeProperty(e)};c.prototype.isBlockDevice=function(){return this._checkModeProperty(f)};c.prototype.isCharacterDevice=function(){return this._checkModeProperty(g)};c.prototype.isSymbolicLink=function(){return this._checkModeProperty(h)};c.prototype.isFIFO=function(){return this._checkModeProperty(l)};c.prototype.isSocket=function(){return this._checkModeProperty(u)};return c}();a.Dirent=c;a.default=c}); D(yb);"ab".substr(-1);var Ja=E(function(c,a){Object.defineProperty(a,"__esModule",{value:!0});c="function"===typeof setImmediate?setImmediate.bind(H):setTimeout.bind(H);a.default=c});D(Ja);var R=E(function(c,a){function b(){var c=pa;c=c||{};c.getuid||(c.getuid=function(){return 0});c.getgid||(c.getgid=function(){return 0});c.cwd||(c.cwd=function(){return"/"});c.nextTick||(c.nextTick=Ja.default);c.emitWarning||(c.emitWarning=function(c,a){console.warn(""+a+(a?": ":"")+c)});c.env||(c.env={});return c} Object.defineProperty(a,"__esModule",{value:!0});a.createProcess=b;a.default=b()});D(R);ja.prototype=Object.create(null);t.EventEmitter=t;t.usingDomains=!1;t.prototype.domain=void 0;t.prototype._events=void 0;t.prototype._maxListeners=void 0;t.defaultMaxListeners=10;t.init=function(){this.domain=null;this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ja,this._eventsCount=0);this._maxListeners=this._maxListeners||void 0};t.prototype.setMaxListeners=function(c){if("number"!== typeof c||0>c||isNaN(c))throw new TypeError('"n" argument must be a positive number');this._maxListeners=c;return this};t.prototype.getMaxListeners=function(){return void 0===this._maxListeners?t.defaultMaxListeners:this._maxListeners};t.prototype.emit=function(c){var a,b;var d="error"===c;if(a=this._events)d=d&&null==a.error;else if(!d)return!1;var e=this.domain;if(d){a=arguments[1];if(e)a||(a=Error('Uncaught, unspecified "error" event')),a.domainEmitter=this,a.domain=e,a.domainThrown=!1,e.emit("error", a);else{if(a instanceof Error)throw a;e=Error('Uncaught, unspecified "error" event. ('+a+")");e.context=a;throw e;}return!1}e=a[c];if(!e)return!1;a="function"===typeof e;var f=arguments.length;switch(f){case 1:if(a)e.call(this);else for(a=e.length,e=ca(e,a),d=0;df)return this;if(1===e.length){e[0]=void 0;if(0===--this._eventsCount)return this._events=new ja,this;delete d[c]}else{b=f+1;for(var h=e.length;bthis.buf.length){var e=C.bufferAllocUnsafe(d+b);this.buf.copy(e,0,0,this.buf.length);this.buf=e}c.copy(this.buf, d,a,a+b);this.touch();return b};a.prototype.read=function(c,a,b,d){void 0===a&&(a=0);void 0===b&&(b=c.byteLength);void 0===d&&(d=0);this.buf||(this.buf=C.bufferAllocUnsafe(0));b>c.byteLength&&(b=c.byteLength);b+d>this.buf.length&&(b=this.buf.length-d);this.buf.copy(c,a,d,d+b);return b};a.prototype.truncate=function(c){void 0===c&&(c=0);if(c)if(this.buf||(this.buf=C.bufferAllocUnsafe(0)),c<=this.buf.length)this.buf=this.buf.slice(0,c);else{var a=C.bufferAllocUnsafe(0);this.buf.copy(a);a.fill(0,c)}else this.buf= C.bufferAllocUnsafe(0);this.touch()};a.prototype.chmod=function(c){this.perm=c;this.mode=this.mode&-512|c;this.touch()};a.prototype.chown=function(c,a){this.uid=c;this.gid=a;this.touch()};a.prototype.touch=function(){this.mtime=new Date;this.emit("change",this)};a.prototype.canRead=function(c,a){void 0===c&&(c=R.default.getuid());void 0===a&&(a=R.default.getgid());return this.perm&4||a===this.gid&&this.perm&32||c===this.uid&&this.perm&256?!0:!1};a.prototype.canWrite=function(c,a){void 0===c&&(c=R.default.getuid()); void 0===a&&(a=R.default.getgid());return this.perm&2||a===this.gid&&this.perm&16||c===this.uid&&this.perm&128?!0:!1};a.prototype.del=function(){this.emit("delete",this)};a.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}};return a}(t.EventEmitter);a.Node=c;c=function(c){function d(a,b,d){var e=c.call(this)|| this;e.children={};e.steps=[];e.ino=0;e.length=0;e.vol=a;e.parent=b;e.steps=b?b.steps.concat([d]):[d];return e}b(d,c);d.prototype.setNode=function(c){this.node=c;this.ino=c.ino};d.prototype.getNode=function(){return this.node};d.prototype.createChild=function(c,a){void 0===a&&(a=this.vol.createNode());var b=new d(this.vol,this,c);b.setNode(a);a.isDirectory();this.setChild(c,b);return b};d.prototype.setChild=function(c,a){void 0===a&&(a=new d(this.vol,this,c));this.children[c]=a;a.parent=this;this.length++; this.emit("child:add",a,this);return a};d.prototype.deleteChild=function(c){delete this.children[c.getName()];this.length--;this.emit("child:delete",c,this)};d.prototype.getChild=function(c){if(Object.hasOwnProperty.call(this.children,c))return this.children[c]};d.prototype.getPath=function(){return this.steps.join(a.SEP)};d.prototype.getName=function(){return this.steps[this.steps.length-1]};d.prototype.walk=function(c,a,b){void 0===a&&(a=c.length);void 0===b&&(b=0);if(b>=c.length||b>=a)return this; var d=this.getChild(c[b]);return d?d.walk(c,a,b+1):null};d.prototype.toJSON=function(){return{steps:this.steps,ino:this.ino,children:Object.keys(this.children)}};return d}(t.EventEmitter);a.Link=c;c=function(){function c(c,a,b,d){this.position=0;this.link=c;this.node=a;this.flags=b;this.fd=d}c.prototype.getString=function(c){return this.node.getString()};c.prototype.setString=function(c){this.node.setString(c)};c.prototype.getBuffer=function(){return this.node.getBuffer()};c.prototype.setBuffer=function(c){this.node.setBuffer(c)}; c.prototype.getSize=function(){return this.node.getSize()};c.prototype.truncate=function(c){this.node.truncate(c)};c.prototype.seekTo=function(c){this.position=c};c.prototype.stats=function(){return Ia.default.build(this.node)};c.prototype.write=function(c,a,b,d){void 0===a&&(a=0);void 0===b&&(b=c.length);"number"!==typeof d&&(d=this.position);this.flags&h&&(d=this.getSize());c=this.node.write(c,a,b,d);this.position=d+c;return c};c.prototype.read=function(c,a,b,d){void 0===a&&(a=0);void 0===b&&(b= c.byteLength);"number"!==typeof d&&(d=this.position);c=this.node.read(c,a,b,d);this.position=d+c;return c};c.prototype.chmod=function(c){this.node.chmod(c)};c.prototype.chown=function(c,a){this.node.chown(c,a)};return c}();a.File=c});D(Na);var ce=Na.Node,Qc=E(function(c,a){Object.defineProperty(a,"__esModule",{value:!0});a.default=function(c,a,e){var b=setTimeout.apply(null,arguments);b&&"object"===typeof b&&"function"===typeof b.unref&&b.unref();return b}});D(Qc);ka.prototype.push=function(c){c= {data:c,next:null};0>>0);for(var a=this.head,b=0;a;)a.data.copy(c,b),b+=a.data.length,a=a.next;return c};var vd=k.isEncoding||function(c){switch(c&&c.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}};ra.prototype.write= function(c){for(var a="";this.charLength;){a=c.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:c.length;c.copy(this.charBuffer,this.charReceived,0,a);this.charReceived+=a;if(this.charReceived=b)this.charLength+=this.surrogateSize,a="";else{this.charReceived=this.charLength=0;if(0===c.length)return a;break}}this.detectIncompleteChar(c); var d=c.length;this.charLength&&(c.copy(this.charBuffer,0,c.length-this.charReceived,d),d-=this.charReceived);a+=c.toString(this.encoding,0,d);d=a.length-1;b=a.charCodeAt(d);return 55296<=b&&56319>=b?(b=this.surrogateSize,this.charLength+=b,this.charReceived+=b,this.charBuffer.copy(this.charBuffer,b,0,b),c.copy(this.charBuffer,0,0,b),a.substring(0,d)):a};ra.prototype.detectIncompleteChar=function(c){for(var a=3<=c.length?3:c.length;0>5){this.charLength=2; break}if(2>=a&&14==b>>4){this.charLength=3;break}if(3>=a&&30==b>>3){this.charLength=4;break}}this.charReceived=a};ra.prototype.end=function(c){var a="";c&&c.length&&(a=this.write(c));this.charReceived&&(c=this.encoding,a+=this.charBuffer.slice(0,this.charReceived).toString(c));return a};y.ReadableState=uc;var v=Vb("stream");ma(y,t);y.prototype.push=function(c,a){var b=this._readableState;b.objectMode||"string"!==typeof c||(a=a||b.defaultEncoding,a!==b.encoding&&(c=k.from(c,a),a=""));return vc(this, b,c,a,!1)};y.prototype.unshift=function(c){return vc(this,this._readableState,c,"",!0)};y.prototype.isPaused=function(){return!1===this._readableState.flowing};y.prototype.setEncoding=function(c){this._readableState.decoder=new ra(c);this._readableState.encoding=c;return this};y.prototype.read=function(c){v("read",c);c=parseInt(c,10);var a=this._readableState,b=c;0!==c&&(a.emittedReadable=!1);if(0===c&&a.needReadable&&(a.length>=a.highWaterMark||a.ended))return v("read: emitReadable",a.length,a.ended), 0===a.length&&a.ended?qb(this):Wa(this),null;c=wc(c,a);if(0===c&&a.ended)return 0===a.length&&qb(this),null;var d=a.needReadable;v("need readable",d);if(0===a.length||a.length-carguments.length?a:d.apply(null,[a].concat(de.call(arguments,2)))},Sc=E(function(a,b){function d(a,b,d){void 0===d&&(d=function(a){return a});return function(){for(var f=[],g=0;g= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sa=Math.floor,tb=String.fromCharCode,Jc=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},Qd=Object.keys||function(a){var b=[],d;for(d in a)Object.prototype.hasOwnProperty.call(a, d)&&b.push(d);return b},fe={parse:Xa,resolve:function(a,b){return Xa(a,!1,!0).resolve(b)},resolveObject:function(a,b){return a?Xa(a,!1,!0).resolveObject(b):b},format:function(a){ha(a)&&(a=Lc({},a));return wb(a)},Url:K},Sd=/^([a-z0-9.+-]+:)/i,Wd=/:[0-9]*$/,Rd=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ge="{}|\\^`".split("").concat('<>"` \r\n\t'.split("")),vb=["'"].concat(ge),Nc=["%","/","?",";","#"].concat(vb),Mc=["/","?","#"],Ud=255,Pc=/^[+a-z0-9A-Z_-]{0,63}$/,Td=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Vd={javascript:!0, "javascript:":!0},ub={javascript:!0,"javascript:":!0},ua={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};K.prototype.parse=function(a,b,d){return Lc(this,a,b,d)};K.prototype.format=function(){return wb(this)};K.prototype.resolve=function(a){return this.resolveObject(Xa(a,!1,!0)).format()};K.prototype.resolveObject=function(a){if(ha(a)){var b=new K;b.parse(a,!1,!0);a=b}b=new K;for(var d=Object.keys(this),e=0;eg.length&&g.unshift("");b.pathname=g.join("/")}b.search=a.search;b.query=a.query;b.host=a.host||"";b.auth=a.auth;b.hostname=a.hostname||a.host;b.port=a.port;if(b.pathname||b.search)b.path=(b.pathname||"")+(b.search||"");b.slashes=b.slashes||a.slashes;b.href=b.format();return b}d=b.pathname&&"/"===b.pathname.charAt(0);var h=a.host||a.pathname&&"/"===a.pathname.charAt(0),l=d=h||d||b.host&&a.pathname;e=b.pathname&& b.pathname.split("/")||[];f=b.protocol&&!ua[b.protocol];g=a.pathname&&a.pathname.split("/")||[];f&&(b.hostname="",b.port=null,b.host&&(""===e[0]?e[0]=b.host:e.unshift(b.host)),b.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===g[0]?g[0]=a.host:g.unshift(a.host)),a.host=null),d=d&&(""===g[0]||""===e[0]));if(h)b.host=a.host||""===a.host?a.host:b.host,b.hostname=a.hostname||""===a.hostname?a.hostname:b.hostname,b.search=a.search,b.query=a.query,e=g;else if(g.length)e||(e=[]),e.pop(),e= e.concat(g),b.search=a.search,b.query=a.query;else if(null!=a.search){f&&(b.hostname=b.host=e.shift(),f=b.host&&0e)e=b;else{for(;d(b,e);)e--;e=b.substr(0,e+1)}return e.replace(/^([a-zA-Z]+:|\.\/)/,"")}return a}Object.defineProperty(b,"__esModule",{value:!0});b.unixify=e;b.correctPath=function(a){return e(a.replace(/^\\\\\?\\.:\\/,"\\"))};var f="win32"===pa.platform});D(Tc);var na=E(function(a,b){function d(a,b,d,e){void 0===b&&(b="");void 0===d&&(d="");void 0===e&&(e="");var n="";d&&(n=" '"+d+"'");e&&(n+=" -> '"+e+"'");switch(a){case "ENOENT":return"ENOENT: no such file or directory, "+ b+n;case "EBADF":return"EBADF: bad file descriptor, "+b+n;case "EINVAL":return"EINVAL: invalid argument, "+b+n;case "EPERM":return"EPERM: operation not permitted, "+b+n;case "EPROTO":return"EPROTO: protocol error, "+b+n;case "EEXIST":return"EEXIST: file already exists, "+b+n;case "ENOTDIR":return"ENOTDIR: not a directory, "+b+n;case "EISDIR":return"EISDIR: illegal operation on a directory, "+b+n;case "EACCES":return"EACCES: permission denied, "+b+n;case "ENOTEMPTY":return"ENOTEMPTY: directory not empty, "+ b+n;case "EMFILE":return"EMFILE: too many open files, "+b+n;case "ENOSYS":return"ENOSYS: function not implemented, "+b+n;default:return a+": error occurred, "+b+n}}function e(a,b,e,L,f){void 0===b&&(b="");void 0===e&&(e="");void 0===L&&(L="");void 0===f&&(f=Error);b=new f(d(a,b,e,L));b.code=a;return b}function f(a){if("number"===typeof a)return a;if("string"===typeof a){var b=N[a];if("undefined"!==typeof b)return b}throw new Ma.TypeError("ERR_INVALID_OPT_VALUE","flags",a);}function g(a,b){if(b){var d= typeof b;switch(d){case "string":a=G({},a,{encoding:b});break;case "object":a=G({},a,b);break;default:throw TypeError("Expected options to be either an object or a string, but got "+d+" instead");}}else return a;"buffer"!==a.encoding&&Y.assertEncoding(a.encoding);return a}function h(a){return function(b){return g(a,b)}}function l(a){if("function"!==typeof a)throw TypeError(wa.CB);return a}function k(a){return function(b,d){return"function"===typeof b?[a(),b]:[a(b),l(d)]}}function m(a){if("string"!== typeof a&&!C.Buffer.isBuffer(a)){try{if(!(a instanceof fe.URL))throw new TypeError(wa.PATH_STR);}catch(L){throw new TypeError(wa.PATH_STR);}if(""!==a.hostname)throw new Ma.TypeError("ERR_INVALID_FILE_URL_HOST",R.default.platform);a=a.pathname;for(var b=0;b>>0!==a)throw TypeError(wa.FD);}function z(a){if("string"===typeof a&&+a==a)return+a;if(a instanceof Date)return a.getTime()/1E3;if(isFinite(a))return 0>a?Date.now()/1E3:a;throw Error("Cannot parse time: "+a);}function D(a){if("number"!==typeof a)throw TypeError(wa.UID);}function F(a){if("number"!==typeof a)throw TypeError(wa.GID);}function M(a){a.emit("stop")}function A(a, b,d){if(!(this instanceof A))return new A(a,b,d);this._vol=a;d=G({},g(d,{}));void 0===d.highWaterMark&&(d.highWaterMark=65536);V.Readable.call(this,d);this.path=m(b);this.fd=void 0===d.fd?null:d.fd;this.flags=void 0===d.flags?"r":d.flags;this.mode=void 0===d.mode?438:d.mode;this.start=d.start;this.end=d.end;this.autoClose=void 0===d.autoClose?!0:d.autoClose;this.pos=void 0;this.bytesRead=0;if(void 0!==this.start){if("number"!==typeof this.start)throw new TypeError('"start" option must be a Number'); if(void 0===this.end)this.end=Infinity;else if("number"!==typeof this.end)throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw Error('"start" option must be <= "end" option');this.pos=this.start}"number"!==typeof this.fd&&this.open();this.on("end",function(){this.autoClose&&this.destroy&&this.destroy()})}function S(a){this.close()}function B(a,b,d){if(!(this instanceof B))return new B(a,b,d);this._vol=a;d=G({},g(d,{}));V.Writable.call(this,d);this.path=m(b);this.fd=void 0=== d.fd?null:d.fd;this.flags=void 0===d.flags?"w":d.flags;this.mode=void 0===d.mode?438:d.mode;this.start=d.start;this.autoClose=void 0===d.autoClose?!0:!!d.autoClose;this.pos=void 0;this.bytesWritten=0;if(void 0!==this.start){if("number"!==typeof this.start)throw new TypeError('"start" option must be a Number');if(0>this.start)throw Error('"start" must be >= zero');this.pos=this.start}d.encoding&&this.setDefaultEncoding(d.encoding);"number"!==typeof this.fd&&this.open();this.once("finish",function(){this.autoClose&& this.close()})}var J=H&&H.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),T=H&&H.__spreadArrays||function(){for(var a=0,b=0,d=arguments.length;b>>0!==a)throw TypeError(wa.FD);a=this.getFileByFd(a);if(!a)throw e("EBADF",b);return a};a.prototype.getNodeByIdOrCreate= function(a,b,d){if("number"===typeof a){a=this.getFileByFd(a);if(!a)throw Error("File nto found");return a.node}var n=v(a),q=this.getLink(n);if(q)return q.getNode();if(b&ea&&(b=this.getLinkParent(n)))return q=this.createLink(b,n[n.length-1],!1,d),q.getNode();throw e("ENOENT","getNodeByIdOrCreate",m(a));};a.prototype.wrapAsync=function(a,b,d){var e=this;l(d);Ja.default(function(){try{d(null,a.apply(e,b))}catch(xa){d(xa)}})};a.prototype._toJSON=function(a,b,d){var e;void 0===a&&(a=this.root);void 0=== b&&(b={});var n=!0,q=a.children;a.getNode().isFile()&&(q=(e={},e[a.getName()]=a.parent.getChild(a.getName()),e),a=a.parent);for(var L in q){n=!1;q=a.getChild(L);if(!q)throw Error("_toJSON: unexpected undefined");e=q.getNode();e.isFile()?(q=q.getPath(),d&&(q=Va(d,q)),b[q]=e.getString()):e.isDirectory()&&this._toJSON(q,b,d)}a=a.getPath();d&&(a=Va(d,a));a&&n&&(b[a]=null);return b};a.prototype.toJSON=function(a,b,d){void 0===b&&(b={});void 0===d&&(d=!1);var e=[];if(a){a instanceof Array||(a=[a]);for(var n= 0;n=this.maxFiles)throw e("EMFILE","open",a.getPath());var n=a;d&&(n=this.resolveSymlinks(a));if(!n)throw e("ENOENT","open",a.getPath());d=n.getNode();if(d.isDirectory()){if((b&(Q|I|K))!==Q)throw e("EISDIR","open",a.getPath());}else if(b& fa)throw e("ENOTDIR","open",a.getPath());if(!(b&K||d.canRead()))throw e("EACCES","open",a.getPath());a=new this.props.File(a,d,b,this.newFdNumber());this.fds[a.fd]=a;this.openFiles++;b&O&&a.truncate();return a};a.prototype.openFile=function(a,b,d,f){void 0===f&&(f=!0);var n=p(a),q=f?this.getResolvedLink(n):this.getLink(n);if(!q&&b&ea){var L=this.getResolvedLink(n.slice(0,n.length-1));if(!L)throw e("ENOENT","open",da+n.join(da));b&ea&&"number"===typeof d&&(q=this.createLink(L,n[n.length-1],!1,d))}if(q)return this.openLink(q, b,f);throw e("ENOENT","open",a);};a.prototype.openBase=function(a,b,d,f){void 0===f&&(f=!0);b=this.openFile(a,b,d,f);if(!b)throw e("ENOENT","open",a);return b.fd};a.prototype.openSync=function(a,b,d){void 0===d&&(d=438);d=w(d);a=m(a);b=f(b);return this.openBase(a,b,d)};a.prototype.open=function(a,b,d,e){var n=d;"function"===typeof d&&(n=438,e=d);d=w(n||438);a=m(a);b=f(b);this.wrapAsync(this.openBase,[a,b,d],e)};a.prototype.closeFile=function(a){this.fds[a.fd]&&(this.openFiles--,delete this.fds[a.fd], this.releasedFds.push(a.fd))};a.prototype.closeSync=function(a){E(a);a=this.getFileByFdOrThrow(a,"close");this.closeFile(a)};a.prototype.close=function(a,b){E(a);this.wrapAsync(this.closeSync,[a],b)};a.prototype.openFileOrGetById=function(a,b,d){if("number"===typeof a){a=this.fds[a];if(!a)throw e("ENOENT");return a}return this.openFile(m(a),b,d)};a.prototype.readBase=function(a,b,d,e,f){return this.getFileByFdOrThrow(a).read(b,Number(d),Number(e),f)};a.prototype.readSync=function(a,b,d,e,f){E(a); return this.readBase(a,b,d,e,f)};a.prototype.read=function(a,b,d,e,f,g){var n=this;l(g);if(0===e)return R.default.nextTick(function(){g&&g(null,0,b)});Ja.default(function(){try{var q=n.readBase(a,b,d,e,f);g(null,q,b)}catch(he){g(he)}})};a.prototype.readFileBase=function(a,b,d){var n="number"===typeof a&&a>>>0===a;if(!n){var q=m(a);q=p(q);if((q=this.getResolvedLink(q))&&q.getNode().isDirectory())throw e("EISDIR","open",q.getPath());a=this.openSync(a,b)}try{var f=ta(this.getFileByFdOrThrow(a).getBuffer(), d)}finally{n||this.closeSync(a)}return f};a.prototype.readFileSync=function(a,b){b=ia(b);var d=f(b.flag);return this.readFileBase(a,d,b.encoding)};a.prototype.readFile=function(a,b,d){d=k(ia)(b,d);b=d[0];d=d[1];var e=f(b.flag);this.wrapAsync(this.readFileBase,[a,e,b.encoding],d)};a.prototype.writeBase=function(a,b,d,e,f){return this.getFileByFdOrThrow(a,"write").write(b,d,e,f)};a.prototype.writeSync=function(a,b,d,e,f){E(a);var n="string"!==typeof b;if(n){var q=(d||0)|0;var L=e;d=f}else var g=e;b= x(b,g);n?"undefined"===typeof L&&(L=b.length):(q=0,L=b.length);return this.writeBase(a,b,q,L,d)};a.prototype.write=function(a,b,d,e,f,g){var n=this;E(a);var q=typeof b,L=typeof d,h=typeof e,k=typeof f;if("string"!==q)if("function"===L)var Ha=d;else if("function"===h){var m=d|0;Ha=e}else if("function"===k){m=d|0;var p=e;Ha=f}else{m=d|0;p=e;var xa=f;Ha=g}else if("function"===L)Ha=d;else if("function"===h)xa=d,Ha=e;else if("function"===k){xa=d;var u=e;Ha=f}var r=x(b,u);"string"!==q?"undefined"===typeof p&& (p=r.length):(m=0,p=r.length);var t=l(Ha);Ja.default(function(){try{var d=n.writeBase(a,r,m,p,xa);"string"!==q?t(null,d,r):t(null,d,b)}catch(ie){t(ie)}})};a.prototype.writeFileBase=function(a,b,d,e){var n="number"===typeof a;a=n?a:this.openBase(m(a),d,e);e=0;var q=b.length;d=d&P?void 0:0;try{for(;0=a.nlink&&this.deleteNode(a)};a.prototype.unlinkSync=function(a){a=m(a);this.unlinkBase(a)};a.prototype.unlink=function(a,b){a=m(a);this.wrapAsync(this.unlinkBase,[a],b)};a.prototype.symlinkBase=function(a,b){var d=p(b),n=this.getLinkParent(d);if(!n)throw e("ENOENT", "symlink",a,b);d=d[d.length-1];if(n.getChild(d))throw e("EEXIST","symlink",a,b);b=n.createChild(d);b.getNode().makeSymlink(p(a));return b};a.prototype.symlinkSync=function(a,b,d){a=m(a);b=m(b);this.symlinkBase(a,b)};a.prototype.symlink=function(a,b,d,e){d=l("function"===typeof d?d:e);a=m(a);b=m(b);this.wrapAsync(this.symlinkBase,[a,b],d)};a.prototype.realpathBase=function(a,b){var d=p(a);d=this.getResolvedLink(d);if(!d)throw e("ENOENT","realpath",a);return Y.strToEncoding(d.getPath(),b)};a.prototype.realpathSync= function(a,b){return this.realpathBase(m(a),qa(b).encoding)};a.prototype.realpath=function(a,b,d){d=Aa(b,d);b=d[0];d=d[1];a=m(a);this.wrapAsync(this.realpathBase,[a,b.encoding],d)};a.prototype.lstatBase=function(a,b){void 0===b&&(b=!1);var d=this.getLink(p(a));if(!d)throw e("ENOENT","lstat",a);return Ia.default.build(d.getNode(),b)};a.prototype.lstatSync=function(a,b){return this.lstatBase(m(a),ca(b).bigint)};a.prototype.lstat=function(a,b,d){d=ra(b,d);b=d[0];d=d[1];this.wrapAsync(this.lstatBase, [m(a),b.bigint],d)};a.prototype.statBase=function(a,b){void 0===b&&(b=!1);var d=this.getResolvedLink(p(a));if(!d)throw e("ENOENT","stat",a);return Ia.default.build(d.getNode(),b)};a.prototype.statSync=function(a,b){return this.statBase(m(a),ca(b).bigint)};a.prototype.stat=function(a,b,d){d=ra(b,d);b=d[0];d=d[1];this.wrapAsync(this.statBase,[m(a),b.bigint],d)};a.prototype.fstatBase=function(a,b){void 0===b&&(b=!1);a=this.getFileByFd(a);if(!a)throw e("EBADF","fstat");return Ia.default.build(a.node, b)};a.prototype.fstatSync=function(a,b){return this.fstatBase(a,ca(b).bigint)};a.prototype.fstat=function(a,b,d){b=ra(b,d);this.wrapAsync(this.fstatBase,[a,b[0].bigint],b[1])};a.prototype.renameBase=function(a,b){var d=this.getLink(p(a));if(!d)throw e("ENOENT","rename",a,b);var f=p(b),n=this.getLinkParent(f);if(!n)throw e("ENOENT","rename",a,b);(a=d.parent)&&a.deleteChild(d);d.steps=T(n.steps,[f[f.length-1]]);n.setChild(d.getName(),d)};a.prototype.renameSync=function(a,b){a=m(a);b=m(b);this.renameBase(a, b)};a.prototype.rename=function(a,b,d){a=m(a);b=m(b);this.wrapAsync(this.renameBase,[a,b],d)};a.prototype.existsBase=function(a){return!!this.statBase(a)};a.prototype.existsSync=function(a){try{return this.existsBase(m(a))}catch(q){return!1}};a.prototype.exists=function(a,b){var d=this,e=m(a);if("function"!==typeof b)throw Error(wa.CB);Ja.default(function(){try{b(d.existsBase(e))}catch(xa){b(!1)}})};a.prototype.accessBase=function(a,b){this.getLinkOrThrow(a,"access")};a.prototype.accessSync=function(a, b){void 0===b&&(b=ba);a=m(a);this.accessBase(a,b|0)};a.prototype.access=function(a,b,d){var e=ba;"function"!==typeof b&&(e=b|0,b=l(d));a=m(a);this.wrapAsync(this.accessBase,[a,e],b)};a.prototype.appendFileSync=function(a,b,d){void 0===d&&(d=oa);d=pa(d);d.flag&&a>>>0!==a||(d.flag="a");this.writeFileSync(a,b,d)};a.prototype.appendFile=function(a,b,d,e){e=za(d,e);d=e[0];e=e[1];d.flag&&a>>>0!==a||(d.flag="a");this.writeFile(a,b,d,e)};a.prototype.readdirBase=function(a,b){var d=p(a);d=this.getResolvedLink(d); if(!d)throw e("ENOENT","readdir",a);if(!d.getNode().isDirectory())throw e("ENOTDIR","scandir",a);if(b.withFileTypes){var f=[];for(n in d.children)(a=d.getChild(n))&&f.push(yb.default.build(a,b.encoding));Z||"buffer"===b.encoding||f.sort(function(a,b){return a.nameb.name?1:0});return f}var n=[];for(f in d.children)n.push(Y.strToEncoding(f,b.encoding));Z||"buffer"===b.encoding||n.sort();return n};a.prototype.readdirSync=function(a,b){b=ya(b);a=m(a);return this.readdirBase(a,b)};a.prototype.readdir= function(a,b,d){d=Da(b,d);b=d[0];d=d[1];a=m(a);this.wrapAsync(this.readdirBase,[a,b],d)};a.prototype.readlinkBase=function(a,b){var d=this.getLinkOrThrow(a,"readlink").getNode();if(!d.isSymlink())throw e("EINVAL","readlink",a);a=da+d.symlink.join(da);return Y.strToEncoding(a,b)};a.prototype.readlinkSync=function(a,b){b=X(b);a=m(a);return this.readlinkBase(a,b.encoding)};a.prototype.readlink=function(a,b,d){d=ha(b,d);b=d[0];d=d[1];a=m(a);this.wrapAsync(this.readlinkBase,[a,b.encoding],d)};a.prototype.fsyncBase= function(a){this.getFileByFdOrThrow(a,"fsync")};a.prototype.fsyncSync=function(a){this.fsyncBase(a)};a.prototype.fsync=function(a,b){this.wrapAsync(this.fsyncBase,[a],b)};a.prototype.fdatasyncBase=function(a){this.getFileByFdOrThrow(a,"fdatasync")};a.prototype.fdatasyncSync=function(a){this.fdatasyncBase(a)};a.prototype.fdatasync=function(a,b){this.wrapAsync(this.fdatasyncBase,[a],b)};a.prototype.ftruncateBase=function(a,b){this.getFileByFdOrThrow(a,"ftruncate").truncate(b)};a.prototype.ftruncateSync= function(a,b){this.ftruncateBase(a,b)};a.prototype.ftruncate=function(a,b,d){var e="number"===typeof b?b:0;b=l("number"===typeof b?d:b);this.wrapAsync(this.ftruncateBase,[a,e],b)};a.prototype.truncateBase=function(a,b){a=this.openSync(a,"r+");try{this.ftruncateSync(a,b)}finally{this.closeSync(a)}};a.prototype.truncateSync=function(a,b){if(a>>>0===a)return this.ftruncateSync(a,b);this.truncateBase(a,b)};a.prototype.truncate=function(a,b,d){var e="number"===typeof b?b:0;b=l("number"===typeof b?d:b); if(a>>>0===a)return this.ftruncate(a,e,b);this.wrapAsync(this.truncateBase,[a,e],b)};a.prototype.futimesBase=function(a,b,d){a=this.getFileByFdOrThrow(a,"futimes").node;a.atime=new Date(1E3*b);a.mtime=new Date(1E3*d)};a.prototype.futimesSync=function(a,b,d){this.futimesBase(a,z(b),z(d))};a.prototype.futimes=function(a,b,d,e){this.wrapAsync(this.futimesBase,[a,z(b),z(d)],e)};a.prototype.utimesBase=function(a,b,d){a=this.openSync(a,"r+");try{this.futimesBase(a,b,d)}finally{this.closeSync(a)}};a.prototype.utimesSync= function(a,b,d){this.utimesBase(m(a),z(b),z(d))};a.prototype.utimes=function(a,b,d,e){this.wrapAsync(this.utimesBase,[m(a),z(b),z(d)],e)};a.prototype.mkdirBase=function(a,b){var d=p(a);if(!d.length)throw e("EISDIR","mkdir",a);var f=this.getLinkParentAsDirOrThrow(a,"mkdir");d=d[d.length-1];if(f.getChild(d))throw e("EEXIST","mkdir",a);f.createChild(d,this.createNode(!0,b))};a.prototype.mkdirpBase=function(a,b){a=p(a);for(var d=this.root,f=0;fthis.prev.mtimeMs||a.nlink!==this.prev.nlink?!0:!1};b.prototype.start=function(a,b,d){void 0===b&&(b=!0);void 0===d&&(d=5007);this.filename=m(a);this.setTimeout=b?setTimeout:Qc.default;this.interval=d;this.prev=this.vol.statSync(this.filename);this.loop()};b.prototype.stop=function(){clearTimeout(this.timeoutRef);R.default.nextTick(M,this)};return b}(t.EventEmitter);b.StatWatcher= Ba;var W;La.inherits(A,V.Readable);b.ReadStream=A;A.prototype.open=function(){var a=this;this._vol.open(this.path,this.flags,this.mode,function(b,d){b?(a.autoClose&&a.destroy&&a.destroy(),a.emit("error",b)):(a.fd=d,a.emit("open",d),a.read())})};A.prototype._read=function(a){if("number"!==typeof this.fd)return this.once("open",function(){this._read(a)});if(!this.destroyed){if(!W||128>W.length-W.used)W=C.bufferAllocUnsafe(this._readableState.highWaterMark),W.used=0;var b=W,d=Math.min(W.length-W.used, a),e=W.used;void 0!==this.pos&&(d=Math.min(this.end-this.pos+1,d));if(0>=d)return this.push(null);var f=this;this._vol.read(this.fd,W,W.used,d,this.pos,function(a,d){a?(f.autoClose&&f.destroy&&f.destroy(),f.emit("error",a)):(a=null,0