@umijs/deps
Version:
[](https://packagephobia.now.sh/result?p=@umijs/deps)
1 lines • 103 kB
JavaScript
module.exports=(()=>{var e={9151:(e,i,t)=>{"use strict";const n={enabled:true,visible:true,styles:{},keys:{}};if("FORCE_COLOR"in process.env){n.enabled=process.env.FORCE_COLOR!=="0"}const a=e=>{e.open=`[${e.codes[0]}m`;e.close=`[${e.codes[1]}m`;e.regex=new RegExp(`\\u001b\\[${e.codes[1]}m`,"g");return e};const o=(e,i,t)=>{let{open:n,close:a,regex:o}=e;i=n+(i.includes(a)?i.replace(o,a+n):i)+a;return t?i.replace(/\r?\n/g,`${a}$&${n}`):i};const r=(e,i)=>{if(e===""||e==null)return"";if(n.enabled===false)return e;if(n.visible===false)return"";let t=""+e;let a=t.includes("\n");let r=i.length;while(r-- >0)t=o(n.styles[i[r]],t,a);return t};const l=(e,i,t)=>{n.styles[e]=a({name:e,codes:i});let o=n.keys[t]||(n.keys[t]=[]);o.push(e);Reflect.defineProperty(n,e,{get(){let i=e=>r(e,i.stack);Reflect.setPrototypeOf(i,n);i.stack=this.stack?this.stack.concat(e):[e];return i}})};l("reset",[0,0],"modifier");l("bold",[1,22],"modifier");l("dim",[2,22],"modifier");l("italic",[3,23],"modifier");l("underline",[4,24],"modifier");l("inverse",[7,27],"modifier");l("hidden",[8,28],"modifier");l("strikethrough",[9,29],"modifier");l("black",[30,39],"color");l("red",[31,39],"color");l("green",[32,39],"color");l("yellow",[33,39],"color");l("blue",[34,39],"color");l("magenta",[35,39],"color");l("cyan",[36,39],"color");l("white",[37,39],"color");l("gray",[90,39],"color");l("grey",[90,39],"color");l("bgBlack",[40,49],"bg");l("bgRed",[41,49],"bg");l("bgGreen",[42,49],"bg");l("bgYellow",[43,49],"bg");l("bgBlue",[44,49],"bg");l("bgMagenta",[45,49],"bg");l("bgCyan",[46,49],"bg");l("bgWhite",[47,49],"bg");l("blackBright",[90,39],"bright");l("redBright",[91,39],"bright");l("greenBright",[92,39],"bright");l("yellowBright",[93,39],"bright");l("blueBright",[94,39],"bright");l("magentaBright",[95,39],"bright");l("cyanBright",[96,39],"bright");l("whiteBright",[97,39],"bright");l("bgBlackBright",[100,49],"bgBright");l("bgRedBright",[101,49],"bgBright");l("bgGreenBright",[102,49],"bgBright");l("bgYellowBright",[103,49],"bgBright");l("bgBlueBright",[104,49],"bgBright");l("bgMagentaBright",[105,49],"bgBright");l("bgCyanBright",[106,49],"bgBright");l("bgWhiteBright",[107,49],"bgBright");const p=n.ansiRegex=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g;n.hasColor=n.hasAnsi=(e=>{p.lastIndex=0;return!!e&&typeof e==="string"&&p.test(e)});n.unstyle=(e=>{p.lastIndex=0;return typeof e==="string"?e.replace(p,""):e});n.none=n.clear=n.noop=(e=>e);n.stripColor=n.unstyle;n.symbols=t(2522);n.define=l;e.exports=n},2522:e=>{"use strict";const i=process.platform==="win32";const t=process.platform==="linux";const n={bullet:"•",check:"√",cross:"×",ellipsis:"...",heart:"❤",info:"i",line:"─",middot:"·",minus:"-",plus:"+",question:"?",questionSmall:"﹖",pointer:">",pointerSmall:"»",warning:"‼"};const a={ballotCross:"✘",bullet:"•",check:"✔",cross:"✖",ellipsis:"…",heart:"❤",info:"ℹ",line:"─",middot:"·",minus:"-",plus:"+",question:"?",questionFull:"?",questionSmall:"﹖",pointer:t?"▸":"❯",pointerSmall:t?"‣":"›",warning:"⚠"};e.exports=i?n:a;Reflect.defineProperty(e.exports,"windows",{enumerable:false,value:n});Reflect.defineProperty(e.exports,"other",{enumerable:false,value:a})},5898:(e,i)=>{function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}i.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}i.isBoolean=isBoolean;function isNull(e){return e===null}i.isNull=isNull;function isNullOrUndefined(e){return e==null}i.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}i.isNumber=isNumber;function isString(e){return typeof e==="string"}i.isString=isString;function isSymbol(e){return typeof e==="symbol"}i.isSymbol=isSymbol;function isUndefined(e){return e===void 0}i.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}i.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}i.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}i.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}i.isError=isError;function isFunction(e){return typeof e==="function"}i.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}i.isPrimitive=isPrimitive;i.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},5883:(e,i,t)=>{var n=t(7937);function init(e,i,t){if(!!i&&typeof i!="string"){i=i.message||i.name}n(this,{type:e,name:e,cause:typeof i!="string"?i:t,message:i},"ewr")}function CustomError(e,i){Error.call(this);if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);init.call(this,"CustomError",e,i)}CustomError.prototype=new Error;function createError(e,i,t){var n=function(t,a){init.call(this,i,t,a);if(i=="FilesystemError"){this.code=this.cause.code;this.path=this.cause.path;this.errno=this.cause.errno;this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")}Error.call(this);if(Error.captureStackTrace)Error.captureStackTrace(this,n)};n.prototype=!!t?new t:new CustomError;return n}e.exports=function(e){var i=function(i,t){return createError(e,i,t)};return{CustomError:CustomError,FilesystemError:i("FilesystemError"),createError:i}}},862:(e,i,t)=>{var n=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={};e.exports.code={};n.forEach(function(i){e.exports.errno[i.errno]=i;e.exports.code[i.code]=i});e.exports.custom=t(5883)(e.exports);e.exports.create=e.exports.custom.createError},4124:(e,i,t)=>{try{var n=t(1669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(i){e.exports=t(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,i){if(i){e.super_=i;e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,i){if(i){e.super_=i;var t=function(){};t.prototype=i.prototype;e.prototype=new t;e.prototype.constructor=e}}}},893:e=>{var i={}.toString;e.exports=Array.isArray||function(e){return i.call(e)=="[object Array]"}},2454:(e,i,t)=>{var n=t(8757);var a=t(862);var o=t(1642);var r=o.Readable;var l=o.Writable;function MemoryFileSystemError(e,i){Error.call(this);if(Error.captureStackTrace)Error.captureStackTrace(this,arguments.callee);this.code=e.code;this.errno=e.errno;this.message=e.description;this.path=i}MemoryFileSystemError.prototype=new Error;function MemoryFileSystem(e){this.data=e||{}}e.exports=MemoryFileSystem;function isDir(e){if(typeof e!=="object")return false;return e[""]===true}function isFile(e){if(typeof e!=="object")return false;return!e[""]}function pathToArray(e){e=n(e);var i=/^\//.test(e);if(!i){if(!/^[A-Za-z]:/.test(e)){throw new MemoryFileSystemError(a.code.EINVAL,e)}e=e.replace(/[\\\/]+/g,"\\");e=e.split(/[\\\/]/);e[0]=e[0].toUpperCase()}else{e=e.replace(/\/+/g,"/");e=e.substr(1).split("/")}if(!e[e.length-1])e.pop();return e}function trueFn(){return true}function falseFn(){return false}MemoryFileSystem.prototype.meta=function(e){var i=pathToArray(e);var t=this.data;for(var n=0;n<i.length-1;n++){if(!isDir(t[i[n]]))return;t=t[i[n]]}return t[i[n]]};MemoryFileSystem.prototype.existsSync=function(e){return!!this.meta(e)};MemoryFileSystem.prototype.statSync=function(e){var i=this.meta(e);if(e==="/"||isDir(i)){return{isFile:falseFn,isDirectory:trueFn,isBlockDevice:falseFn,isCharacterDevice:falseFn,isSymbolicLink:falseFn,isFIFO:falseFn,isSocket:falseFn}}else if(isFile(i)){return{isFile:trueFn,isDirectory:falseFn,isBlockDevice:falseFn,isCharacterDevice:falseFn,isSymbolicLink:falseFn,isFIFO:falseFn,isSocket:falseFn}}else{throw new MemoryFileSystemError(a.code.ENOENT,e)}};MemoryFileSystem.prototype.readFileSync=function(e,i){var t=pathToArray(e);var n=this.data;for(var o=0;o<t.length-1;o++){if(!isDir(n[t[o]]))throw new MemoryFileSystemError(a.code.ENOENT,e);n=n[t[o]]}if(!isFile(n[t[o]])){if(isDir(n[t[o]]))throw new MemoryFileSystemError(a.code.EISDIR,e);else throw new MemoryFileSystemError(a.code.ENOENT,e)}n=n[t[o]];return i?n.toString(i):n};MemoryFileSystem.prototype.readdirSync=function(e){if(e==="/")return Object.keys(this.data).filter(Boolean);var i=pathToArray(e);var t=this.data;for(var n=0;n<i.length-1;n++){if(!isDir(t[i[n]]))throw new MemoryFileSystemError(a.code.ENOENT,e);t=t[i[n]]}if(!isDir(t[i[n]])){if(isFile(t[i[n]]))throw new MemoryFileSystemError(a.code.ENOTDIR,e);else throw new MemoryFileSystemError(a.code.ENOENT,e)}return Object.keys(t[i[n]]).filter(Boolean)};MemoryFileSystem.prototype.mkdirpSync=function(e){var i=pathToArray(e);if(i.length===0)return;var t=this.data;for(var n=0;n<i.length;n++){if(isFile(t[i[n]]))throw new MemoryFileSystemError(a.code.ENOTDIR,e);else if(!isDir(t[i[n]]))t[i[n]]={"":true};t=t[i[n]]}return};MemoryFileSystem.prototype.mkdirSync=function(e){var i=pathToArray(e);if(i.length===0)return;var t=this.data;for(var n=0;n<i.length-1;n++){if(!isDir(t[i[n]]))throw new MemoryFileSystemError(a.code.ENOENT,e);t=t[i[n]]}if(isDir(t[i[n]]))throw new MemoryFileSystemError(a.code.EEXIST,e);else if(isFile(t[i[n]]))throw new MemoryFileSystemError(a.code.ENOTDIR,e);t[i[n]]={"":true};return};MemoryFileSystem.prototype._remove=function(e,i,t){var n=pathToArray(e);if(n.length===0){throw new MemoryFileSystemError(a.code.EPERM,e)}var o=this.data;for(var r=0;r<n.length-1;r++){if(!isDir(o[n[r]]))throw new MemoryFileSystemError(a.code.ENOENT,e);o=o[n[r]]}if(!t(o[n[r]]))throw new MemoryFileSystemError(a.code.ENOENT,e);delete o[n[r]];return};MemoryFileSystem.prototype.rmdirSync=function(e){return this._remove(e,"Directory",isDir)};MemoryFileSystem.prototype.unlinkSync=function(e){return this._remove(e,"File",isFile)};MemoryFileSystem.prototype.readlinkSync=function(e){throw new MemoryFileSystemError(a.code.ENOSYS,e)};MemoryFileSystem.prototype.writeFileSync=function(e,i,t){if(!i&&!t)throw new Error("No content");var n=pathToArray(e);if(n.length===0){throw new MemoryFileSystemError(a.code.EISDIR,e)}var o=this.data;for(var r=0;r<n.length-1;r++){if(!isDir(o[n[r]]))throw new MemoryFileSystemError(a.code.ENOENT,e);o=o[n[r]]}if(isDir(o[n[r]]))throw new MemoryFileSystemError(a.code.EISDIR,e);o[n[r]]=t||typeof i==="string"?new Buffer(i,t):i;return};MemoryFileSystem.prototype.join=t(6098);MemoryFileSystem.prototype.pathToArray=pathToArray;MemoryFileSystem.prototype.normalize=n;MemoryFileSystem.prototype.createReadStream=function(e,i){var t=new r;var n=false;var a;try{a=this.readFileSync(e)}catch(e){t._read=function(){if(n){return}n=true;this.emit("error",e);this.push(null)};return t}i=i||{};i.start=i.start||0;i.end=i.end||a.length;t._read=function(){if(n){return}n=true;this.push(a.slice(i.start,i.end));this.push(null)};return t};MemoryFileSystem.prototype.createWriteStream=function(e,i){var t=new l,n=this;try{this.writeFileSync(e,new Buffer(0))}catch(e){t.once("prefinish",function(){t.emit("error",e)});return t}var a=[],o=0;t._write=function(i,t,r){a.push(i);o+=i.length;n.writeFile(e,Buffer.concat(a,o),r)};return t};["stat","readdir","mkdirp","rmdir","unlink","readlink"].forEach(function(e){MemoryFileSystem.prototype[e]=function(i,t){try{var n=this[e+"Sync"](i)}catch(e){setImmediate(function(){t(e)});return}setImmediate(function(){t(null,n)})}});["mkdir","readFile"].forEach(function(e){MemoryFileSystem.prototype[e]=function(i,t,n){if(!n){n=t;t=undefined}try{var a=this[e+"Sync"](i,t)}catch(e){setImmediate(function(){n(e)});return}setImmediate(function(){n(null,a)})}});MemoryFileSystem.prototype.exists=function(e,i){return i(this.existsSync(e))};MemoryFileSystem.prototype.writeFile=function(e,i,t,n){if(!n){n=t;t=undefined}try{this.writeFileSync(e,i,t)}catch(e){return n(e)}return n()}},6098:(e,i,t)=>{var n=t(8757);var a=/^[A-Z]:([\\\/]|$)/i;var o=/^\//i;e.exports=function join(e,i){if(!i)return n(e);if(a.test(i))return n(i.replace(/\//g,"\\"));if(o.test(i))return n(i);if(e=="/")return n(e+i);if(a.test(e))return n(e.replace(/\//g,"\\")+"\\"+i.replace(/\//g,"\\"));if(o.test(e))return n(e+"/"+i);return n(e+"/"+i)}},8757:e=>{e.exports=function normalize(e){var i=e.split(/(\\+|\/+)/);if(i.length===1)return e;var t=[];var n=0;for(var a=0,o=false;a<i.length;a++,o=!o){var r=i[a];if(a===0&&/^([A-Z]:)?$/i.test(r)){t.push(r);n=2}else if(o){t.push(r[0])}else if(r===".."){switch(t.length){case 0:t.push(r);break;case 2:a++;o=!o;t.length=n;break;case 4:if(n===0){t.length-=3}else{a++;o=!o;t.length=2}break;default:t.length-=3;break}}else if(r==="."){switch(t.length){case 0:t.push(r);break;case 2:if(n===0){t.length--}else{a++;o=!o}break;default:t.length--;break}}else if(r){t.push(r)}}if(t.length===1&&/^[A-Za-z]:$/.test(t))return t[0]+"\\";return t.join("")}},7810:e=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,i,t,n){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var a=arguments.length;var o,r;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function afterTickOne(){e.call(null,i)});case 3:return process.nextTick(function afterTickTwo(){e.call(null,i,t)});case 4:return process.nextTick(function afterTickThree(){e.call(null,i,t,n)});default:o=new Array(a-1);r=0;while(r<o.length){o[r++]=arguments[r]}return process.nextTick(function afterTick(){e.apply(null,o)})}}},7937:function(e){(function(i,t,n){if(true&&e.exports)e.exports=n();else t[i]=n()})("prr",this,function(){var e=typeof Object.defineProperty=="function"?function(e,i,t){Object.defineProperty(e,i,t);return e}:function(e,i,t){e[i]=t.value;return e},i=function(e,i){var t=typeof i=="object",n=!t&&typeof i=="string",a=function(e){return t?!!i[e]:n?i.indexOf(e[0])>-1:false};return{enumerable:a("enumerable"),configurable:a("configurable"),writable:a("writable"),value:e}},t=function(t,n,a,o){var r;o=i(a,o);if(typeof n=="object"){for(r in n){if(Object.hasOwnProperty.call(n,r)){o.value=n[r];e(t,r,o)}}return t}return e(t,n,o)};return t})},6435:e=>{"use strict";e.exports=rangeParser;function rangeParser(e,i,t){if(typeof i!=="string"){throw new TypeError("argument str must be a string")}var n=i.indexOf("=");if(n===-1){return-2}var a=i.slice(n+1).split(",");var o=[];o.type=i.slice(0,n);for(var r=0;r<a.length;r++){var l=a[r].split("-");var p=parseInt(l[0],10);var s=parseInt(l[1],10);if(isNaN(p)){p=e-s;s=e-1}else if(isNaN(s)){s=e-1}if(s>e-1){s=e-1}if(isNaN(p)||isNaN(s)||p>s||p<0){continue}o.push({start:p,end:s})}if(o.length<1){return-1}return t&&t.combine?combineRanges(o):o}function combineRanges(e){var i=e.map(mapWithIndex).sort(sortByRangeStart);for(var t=0,n=1;n<i.length;n++){var a=i[n];var o=i[t];if(a.start>o.end+1){i[++t]=a}else if(a.end>o.end){o.end=a.end;o.index=Math.min(o.index,a.index)}}i.length=t+1;var r=i.sort(sortByRangeIndex).map(mapWithoutIndex);r.type=e.type;return r}function mapWithIndex(e,i){return{start:e.start,end:e.end,index:i}}function mapWithoutIndex(e){return{start:e.start,end:e.end}}function sortByRangeIndex(e,i){return e.index-i.index}function sortByRangeStart(e,i){return e.start-i.start}},1359:(e,i,t)=>{"use strict";var n=t(7810);var a=Object.keys||function(e){var i=[];for(var t in e){i.push(t)}return i};e.exports=Duplex;var o=Object.create(t(5898));o.inherits=t(4124);var r=t(1433);var l=t(6993);o.inherits(Duplex,r);{var p=a(l.prototype);for(var s=0;s<p.length;s++){var c=p[s];if(!Duplex.prototype[c])Duplex.prototype[c]=l.prototype[c]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);r.call(this,e);l.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;n.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,i){this.push(null);this.end();n.nextTick(i,e)}},1542:(e,i,t)=>{"use strict";e.exports=PassThrough;var n=t(4415);var a=Object.create(t(5898));a.inherits=t(4124);a.inherits(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,i,t){t(null,e)}},1433:(e,i,t)=>{"use strict";var n=t(7810);e.exports=Readable;var a=t(893);var o;Readable.ReadableState=ReadableState;var r=t(8614).EventEmitter;var l=function(e,i){return e.listeners(i).length};var p=t(2387);var s=t(110).Buffer;var c=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return s.from(e)}function _isUint8Array(e){return s.isBuffer(e)||e instanceof c}var d=Object.create(t(5898));d.inherits=t(4124);var f=t(1669);var u=void 0;if(f&&f.debuglog){u=f.debuglog("stream")}else{u=function(){}}var m=t(7053);var h=t(7049);var v;d.inherits(Readable,p);var g=["error","close","destroy","pause","resume"];function prependListener(e,i,t){if(typeof e.prependListener==="function")return e.prependListener(i,t);if(!e._events||!e._events[i])e.on(i,t);else if(a(e._events[i]))e._events[i].unshift(t);else e._events[i]=[t,e._events[i]]}function ReadableState(e,i){o=o||t(1359);e=e||{};var n=i instanceof o;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;var a=e.highWaterMark;var r=e.readableHighWaterMark;var l=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(r||r===0))this.highWaterMark=r;else this.highWaterMark=l;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new m;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!v)v=t(8536).s;this.decoder=new v(e.encoding);this.encoding=e.encoding}}function Readable(e){o=o||t(1359);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}p.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=h.destroy;Readable.prototype._undestroy=h.undestroy;Readable.prototype._destroy=function(e,i){this.push(null);i(e)};Readable.prototype.push=function(e,i){var t=this._readableState;var n;if(!t.objectMode){if(typeof e==="string"){i=i||t.defaultEncoding;if(i!==t.encoding){e=s.from(e,i);i=""}n=true}}else{n=true}return readableAddChunk(this,e,i,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,i,t,n,a){var o=e._readableState;if(i===null){o.reading=false;onEofChunk(e,o)}else{var r;if(!a)r=chunkInvalid(o,i);if(r){e.emit("error",r)}else if(o.objectMode||i&&i.length>0){if(typeof i!=="string"&&!o.objectMode&&Object.getPrototypeOf(i)!==s.prototype){i=_uint8ArrayToBuffer(i)}if(n){if(o.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,o,i,true)}else if(o.ended){e.emit("error",new Error("stream.push() after EOF"))}else{o.reading=false;if(o.decoder&&!t){i=o.decoder.write(i);if(o.objectMode||i.length!==0)addChunk(e,o,i,false);else maybeReadMore(e,o)}else{addChunk(e,o,i,false)}}}else if(!n){o.reading=false}}return needMoreData(o)}function addChunk(e,i,t,n){if(i.flowing&&i.length===0&&!i.sync){e.emit("data",t);e.read(0)}else{i.length+=i.objectMode?1:t.length;if(n)i.buffer.unshift(t);else i.buffer.push(t);if(i.needReadable)emitReadable(e)}maybeReadMore(e,i)}function chunkInvalid(e,i){var t;if(!_isUint8Array(i)&&typeof i!=="string"&&i!==undefined&&!e.objectMode){t=new TypeError("Invalid non-string/buffer chunk")}return t}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!v)v=t(8536).s;this._readableState.decoder=new v(e);this._readableState.encoding=e;return this};var x=8388608;function computeNewHighWaterMark(e){if(e>=x){e=x}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,i){if(e<=0||i.length===0&&i.ended)return 0;if(i.objectMode)return 1;if(e!==e){if(i.flowing&&i.length)return i.buffer.head.data.length;else return i.length}if(e>i.highWaterMark)i.highWaterMark=computeNewHighWaterMark(e);if(e<=i.length)return e;if(!i.ended){i.needReadable=true;return 0}return i.length}Readable.prototype.read=function(e){u("read",e);e=parseInt(e,10);var i=this._readableState;var t=e;if(e!==0)i.emittedReadable=false;if(e===0&&i.needReadable&&(i.length>=i.highWaterMark||i.ended)){u("read: emitReadable",i.length,i.ended);if(i.length===0&&i.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,i);if(e===0&&i.ended){if(i.length===0)endReadable(this);return null}var n=i.needReadable;u("need readable",n);if(i.length===0||i.length-e<i.highWaterMark){n=true;u("length less than watermark",n)}if(i.ended||i.reading){n=false;u("reading or ended",n)}else if(n){u("do read");i.reading=true;i.sync=true;if(i.length===0)i.needReadable=true;this._read(i.highWaterMark);i.sync=false;if(!i.reading)e=howMuchToRead(t,i)}var a;if(e>0)a=fromList(e,i);else a=null;if(a===null){i.needReadable=true;e=0}else{i.length-=e}if(i.length===0){if(!i.ended)i.needReadable=true;if(t!==e&&i.ended)endReadable(this)}if(a!==null)this.emit("data",a);return a};function onEofChunk(e,i){if(i.ended)return;if(i.decoder){var t=i.decoder.end();if(t&&t.length){i.buffer.push(t);i.length+=i.objectMode?1:t.length}}i.ended=true;emitReadable(e)}function emitReadable(e){var i=e._readableState;i.needReadable=false;if(!i.emittedReadable){u("emitReadable",i.flowing);i.emittedReadable=true;if(i.sync)n.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){u("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,i){if(!i.readingMore){i.readingMore=true;n.nextTick(maybeReadMore_,e,i)}}function maybeReadMore_(e,i){var t=i.length;while(!i.reading&&!i.flowing&&!i.ended&&i.length<i.highWaterMark){u("maybeReadMore read 0");e.read(0);if(t===i.length)break;else t=i.length}i.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,i){var t=this;var a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e);break}a.pipesCount+=1;u("pipe count=%d opts=%j",a.pipesCount,i);var o=(!i||i.end!==false)&&e!==process.stdout&&e!==process.stderr;var r=o?onend:unpipe;if(a.endEmitted)n.nextTick(r);else t.once("end",r);e.on("unpipe",onunpipe);function onunpipe(e,i){u("onunpipe");if(e===t){if(i&&i.hasUnpiped===false){i.hasUnpiped=true;cleanup()}}}function onend(){u("onend");e.end()}var p=pipeOnDrain(t);e.on("drain",p);var s=false;function cleanup(){u("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",p);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);t.removeListener("end",onend);t.removeListener("end",unpipe);t.removeListener("data",ondata);s=true;if(a.awaitDrain&&(!e._writableState||e._writableState.needDrain))p()}var c=false;t.on("data",ondata);function ondata(i){u("ondata");c=false;var n=e.write(i);if(false===n&&!c){if((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&indexOf(a.pipes,e)!==-1)&&!s){u("false write response, pause",t._readableState.awaitDrain);t._readableState.awaitDrain++;c=true}t.pause()}}function onerror(i){u("onerror",i);unpipe();e.removeListener("error",onerror);if(l(e,"error")===0)e.emit("error",i)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){u("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){u("unpipe");t.unpipe(e)}e.emit("pipe",t);if(!a.flowing){u("pipe resume");t.resume()}return e};function pipeOnDrain(e){return function(){var i=e._readableState;u("pipeOnDrain",i.awaitDrain);if(i.awaitDrain)i.awaitDrain--;if(i.awaitDrain===0&&l(e,"data")){i.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var i=this._readableState;var t={hasUnpiped:false};if(i.pipesCount===0)return this;if(i.pipesCount===1){if(e&&e!==i.pipes)return this;if(!e)e=i.pipes;i.pipes=null;i.pipesCount=0;i.flowing=false;if(e)e.emit("unpipe",this,t);return this}if(!e){var n=i.pipes;var a=i.pipesCount;i.pipes=null;i.pipesCount=0;i.flowing=false;for(var o=0;o<a;o++){n[o].emit("unpipe",this,t)}return this}var r=indexOf(i.pipes,e);if(r===-1)return this;i.pipes.splice(r,1);i.pipesCount-=1;if(i.pipesCount===1)i.pipes=i.pipes[0];e.emit("unpipe",this,t);return this};Readable.prototype.on=function(e,i){var t=p.prototype.on.call(this,e,i);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var a=this._readableState;if(!a.endEmitted&&!a.readableListening){a.readableListening=a.needReadable=true;a.emittedReadable=false;if(!a.reading){n.nextTick(nReadingNextTick,this)}else if(a.length){emitReadable(this)}}}return t};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){u("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){u("resume");e.flowing=true;resume(this,e)}return this};function resume(e,i){if(!i.resumeScheduled){i.resumeScheduled=true;n.nextTick(resume_,e,i)}}function resume_(e,i){if(!i.reading){u("resume read 0");e.read(0)}i.resumeScheduled=false;i.awaitDrain=0;e.emit("resume");flow(e);if(i.flowing&&!i.reading)e.read(0)}Readable.prototype.pause=function(){u("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){u("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var i=e._readableState;u("flow",i.flowing);while(i.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var i=this;var t=this._readableState;var n=false;e.on("end",function(){u("wrapped end");if(t.decoder&&!t.ended){var e=t.decoder.end();if(e&&e.length)i.push(e)}i.push(null)});e.on("data",function(a){u("wrapped data");if(t.decoder)a=t.decoder.write(a);if(t.objectMode&&(a===null||a===undefined))return;else if(!t.objectMode&&(!a||!a.length))return;var o=i.push(a);if(!o){n=true;e.pause()}});for(var a in e){if(this[a]===undefined&&typeof e[a]==="function"){this[a]=function(i){return function(){return e[i].apply(e,arguments)}}(a)}}for(var o=0;o<g.length;o++){e.on(g[o],this.emit.bind(this,g[o]))}this._read=function(i){u("wrapped _read",i);if(n){n=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,i){if(i.length===0)return null;var t;if(i.objectMode)t=i.buffer.shift();else if(!e||e>=i.length){if(i.decoder)t=i.buffer.join("");else if(i.buffer.length===1)t=i.buffer.head.data;else t=i.buffer.concat(i.length);i.buffer.clear()}else{t=fromListPartial(e,i.buffer,i.decoder)}return t}function fromListPartial(e,i,t){var n;if(e<i.head.data.length){n=i.head.data.slice(0,e);i.head.data=i.head.data.slice(e)}else if(e===i.head.data.length){n=i.shift()}else{n=t?copyFromBufferString(e,i):copyFromBuffer(e,i)}return n}function copyFromBufferString(e,i){var t=i.head;var n=1;var a=t.data;e-=a.length;while(t=t.next){var o=t.data;var r=e>o.length?o.length:e;if(r===o.length)a+=o;else a+=o.slice(0,e);e-=r;if(e===0){if(r===o.length){++n;if(t.next)i.head=t.next;else i.head=i.tail=null}else{i.head=t;t.data=o.slice(r)}break}++n}i.length-=n;return a}function copyFromBuffer(e,i){var t=s.allocUnsafe(e);var n=i.head;var a=1;n.data.copy(t);e-=n.data.length;while(n=n.next){var o=n.data;var r=e>o.length?o.length:e;o.copy(t,t.length-e,0,r);e-=r;if(e===0){if(r===o.length){++a;if(n.next)i.head=n.next;else i.head=i.tail=null}else{i.head=n;n.data=o.slice(r)}break}++a}i.length-=a;return t}function endReadable(e){var i=e._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!i.endEmitted){i.ended=true;n.nextTick(endReadableNT,i,e)}}function endReadableNT(e,i){if(!e.endEmitted&&e.length===0){e.endEmitted=true;i.readable=false;i.emit("end")}}function indexOf(e,i){for(var t=0,n=e.length;t<n;t++){if(e[t]===i)return t}return-1}},4415:(e,i,t)=>{"use strict";e.exports=Transform;var n=t(1359);var a=Object.create(t(5898));a.inherits=t(4124);a.inherits(Transform,n);function afterTransform(e,i){var t=this._transformState;t.transforming=false;var n=t.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}t.writechunk=null;t.writecb=null;if(i!=null)this.push(i);n(e);var a=this._readableState;a.reading=false;if(a.needReadable||a.length<a.highWaterMark){this._read(a.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);n.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush(function(i,t){done(e,i,t)})}else{done(this,null,null)}}Transform.prototype.push=function(e,i){this._transformState.needTransform=false;return n.prototype.push.call(this,e,i)};Transform.prototype._transform=function(e,i,t){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,i,t){var n=this._transformState;n.writecb=t;n.writechunk=e;n.writeencoding=i;if(!n.transforming){var a=this._readableState;if(n.needTransform||a.needReadable||a.length<a.highWaterMark)this._read(a.highWaterMark)}};Transform.prototype._read=function(e){var i=this._transformState;if(i.writechunk!==null&&i.writecb&&!i.transforming){i.transforming=true;this._transform(i.writechunk,i.writeencoding,i.afterTransform)}else{i.needTransform=true}};Transform.prototype._destroy=function(e,i){var t=this;n.prototype._destroy.call(this,e,function(e){i(e);t.emit("close")})};function done(e,i,t){if(i)return e.emit("error",i);if(t!=null)e.push(t);if(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)}},6993:(e,i,t)=>{"use strict";var n=t(7810);e.exports=Writable;function WriteReq(e,i,t){this.chunk=e;this.encoding=i;this.callback=t;this.next=null}function CorkedRequest(e){var i=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(i,e)}}var a=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;var o;Writable.WritableState=WritableState;var r=Object.create(t(5898));r.inherits=t(4124);var l={deprecate:t(5278)};var p=t(2387);var s=t(110).Buffer;var c=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return s.from(e)}function _isUint8Array(e){return s.isBuffer(e)||e instanceof c}var d=t(7049);r.inherits(Writable,p);function nop(){}function WritableState(e,i){o=o||t(1359);e=e||{};var n=i instanceof o;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var a=e.highWaterMark;var r=e.writableHighWaterMark;var l=this.objectMode?16:16*1024;if(a||a===0)this.highWaterMark=a;else if(n&&(r||r===0))this.highWaterMark=r;else this.highWaterMark=l;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var p=e.decodeStrings===false;this.decodeStrings=!p;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(i,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var i=[];while(e){i.push(e);e=e.next}return i};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var f;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){f=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(f.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{f=function(e){return e instanceof this}}function Writable(e){o=o||t(1359);if(!f.call(Writable,this)&&!(this instanceof o)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}p.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,i){var t=new Error("write after end");e.emit("error",t);n.nextTick(i,t)}function validChunk(e,i,t,a){var o=true;var r=false;if(t===null){r=new TypeError("May not write null values to stream")}else if(typeof t!=="string"&&t!==undefined&&!i.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}if(r){e.emit("error",r);n.nextTick(a,r);o=false}return o}Writable.prototype.write=function(e,i,t){var n=this._writableState;var a=false;var o=!n.objectMode&&_isUint8Array(e);if(o&&!s.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof i==="function"){t=i;i=null}if(o)i="buffer";else if(!i)i=n.defaultEncoding;if(typeof t!=="function")t=nop;if(n.ended)writeAfterEnd(this,t);else if(o||validChunk(this,n,e,t)){n.pendingcb++;a=writeOrBuffer(this,n,o,e,i,t)}return a};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,i,t){if(!e.objectMode&&e.decodeStrings!==false&&typeof i==="string"){i=s.from(i,t)}return i}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,i,t,n,a,o){if(!t){var r=decodeChunk(i,n,a);if(n!==r){t=true;a="buffer";n=r}}var l=i.objectMode?1:n.length;i.length+=l;var p=i.length<i.highWaterMark;if(!p)i.needDrain=true;if(i.writing||i.corked){var s=i.lastBufferedRequest;i.lastBufferedRequest={chunk:n,encoding:a,isBuf:t,callback:o,next:null};if(s){s.next=i.lastBufferedRequest}else{i.bufferedRequest=i.lastBufferedRequest}i.bufferedRequestCount+=1}else{doWrite(e,i,false,l,n,a,o)}return p}function doWrite(e,i,t,n,a,o,r){i.writelen=n;i.writecb=r;i.writing=true;i.sync=true;if(t)e._writev(a,i.onwrite);else e._write(a,o,i.onwrite);i.sync=false}function onwriteError(e,i,t,a,o){--i.pendingcb;if(t){n.nextTick(o,a);n.nextTick(finishMaybe,e,i);e._writableState.errorEmitted=true;e.emit("error",a)}else{o(a);e._writableState.errorEmitted=true;e.emit("error",a);finishMaybe(e,i)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,i){var t=e._writableState;var n=t.sync;var o=t.writecb;onwriteStateUpdate(t);if(i)onwriteError(e,t,n,i,o);else{var r=needFinish(t);if(!r&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest){clearBuffer(e,t)}if(n){a(afterWrite,e,t,r,o)}else{afterWrite(e,t,r,o)}}}function afterWrite(e,i,t,n){if(!t)onwriteDrain(e,i);i.pendingcb--;n();finishMaybe(e,i)}function onwriteDrain(e,i){if(i.length===0&&i.needDrain){i.needDrain=false;e.emit("drain")}}function clearBuffer(e,i){i.bufferProcessing=true;var t=i.bufferedRequest;if(e._writev&&t&&t.next){var n=i.bufferedRequestCount;var a=new Array(n);var o=i.corkedRequestsFree;o.entry=t;var r=0;var l=true;while(t){a[r]=t;if(!t.isBuf)l=false;t=t.next;r+=1}a.allBuffers=l;doWrite(e,i,true,i.length,a,"",o.finish);i.pendingcb++;i.lastBufferedRequest=null;if(o.next){i.corkedRequestsFree=o.next;o.next=null}else{i.corkedRequestsFree=new CorkedRequest(i)}i.bufferedRequestCount=0}else{while(t){var p=t.chunk;var s=t.encoding;var c=t.callback;var d=i.objectMode?1:p.length;doWrite(e,i,false,d,p,s,c);t=t.next;i.bufferedRequestCount--;if(i.writing){break}}if(t===null)i.lastBufferedRequest=null}i.bufferedRequest=t;i.bufferProcessing=false}Writable.prototype._write=function(e,i,t){t(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,i,t){var n=this._writableState;if(typeof e==="function"){t=e;e=null;i=null}else if(typeof i==="function"){t=i;i=null}if(e!==null&&e!==undefined)this.write(e,i);if(n.corked){n.corked=1;this.uncork()}if(!n.ending&&!n.finished)endWritable(this,n,t)};function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,i){e._final(function(t){i.pendingcb--;if(t){e.emit("error",t)}i.prefinished=true;e.emit("prefinish");finishMaybe(e,i)})}function prefinish(e,i){if(!i.prefinished&&!i.finalCalled){if(typeof e._final==="function"){i.pendingcb++;i.finalCalled=true;n.nextTick(callFinal,e,i)}else{i.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,i){var t=needFinish(i);if(t){prefinish(e,i);if(i.pendingcb===0){i.finished=true;e.emit("finish")}}return t}function endWritable(e,i,t){i.ending=true;finishMaybe(e,i);if(t){if(i.finished)n.nextTick(t);else e.once("finish",t)}i.ended=true;e.writable=false}function onCorkedFinish(e,i,t){var n=e.entry;e.entry=null;while(n){var a=n.callback;i.pendingcb--;a(t);n=n.next}if(i.corkedRequestsFree){i.corkedRequestsFree.next=e}else{i.corkedRequestsFree=e}}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=d.destroy;Writable.prototype._undestroy=d.undestroy;Writable.prototype._destroy=function(e,i){this.end();i(e)}},7053:(e,i,t)=>{"use strict";function _classCallCheck(e,i){if(!(e instanceof i)){throw new TypeError("Cannot call a class as a function")}}var n=t(110).Buffer;var a=t(1669);function copyBuffer(e,i,t){e.copy(i,t)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var i={data:e,next:null};if(this.length>0)this.tail.next=i;else this.head=i;this.tail=i;++this.length};BufferList.prototype.unshift=function unshift(e){var i={data:e,next:this.head};if(this.length===0)this.tail=i;this.head=i;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var i=this.head;var t=""+i.data;while(i=i.next){t+=e+i.data}return t};BufferList.prototype.concat=function concat(e){if(this.length===0)return n.alloc(0);if(this.length===1)return this.head.data;var i=n.allocUnsafe(e>>>0);var t=this.head;var a=0;while(t){copyBuffer(t.data,i,a);a+=t.data.length;t=t.next}return i};return BufferList}();if(a&&a.inspect&&a.inspect.custom){e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e}}},7049:(e,i,t)=>{"use strict";var n=t(7810);function destroy(e,i){var t=this;var a=this._readableState&&this._readableState.destroyed;var o=this._writableState&&this._writableState.destroyed;if(a||o){if(i){i(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){n.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,function(e){if(!i&&e){n.nextTick(emitErrorNT,t,e);if(t._writableState){t._writableState.errorEmitted=true}}else if(i){i(e)}});return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,i){e.emit("error",i)}e.exports={destroy:destroy,undestroy:undestroy}},2387:(e,i,t)=>{e.exports=t(2413)},110:(e,i,t)=>{var n=t(4293);var a=n.Buffer;function copyProps(e,i){for(var t in e){i[t]=e[t]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,i);i.Buffer=SafeBuffer}function SafeBuffer(e,i,t){return a(e,i,t)}copyProps(a,SafeBuffer);SafeBuffer.from=function(e,i,t){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,i,t)};SafeBuffer.alloc=function(e,i,t){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(i!==undefined){if(typeof t==="string"){n.fill(i,t)}else{n.fill(i)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},8536:(e,i,t)=>{"use strict";var n=t(110).Buffer;var a=n.isEncoding||function(e){e=""+e;switch(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 true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var i;while(true){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(i)return;e=(""+e).toLowerCase();i=true}}}function normalizeEncoding(e){var i=_normalizeEncoding(e);if(typeof i!=="string"&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return i||e}i.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var i;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;i=4;break;case"utf8":this.fillLast=utf8FillLast;i=4;break;case"base64":this.text=base64Text;this.end=base64End;i=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(i)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var i;var t;if(this.lastNeed){i=this.fillLast(e);if(i===undefined)return"";t=this.lastNeed;this.lastNeed=0}else{t=0}if(t<e.length)return i?i+this.text(e,t):this.text(e,t);return i||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,i,t){var n=i.length-1;if(n<t)return 0;var a=utf8CheckByte(i[n]);if(a>=0){if(a>0)e.lastNeed=a-1;return a}if(--n<t||a===-2)return 0;a=utf8CheckByte(i[n]);if(a>=0){if(a>0)e.lastNeed=a-2;return a}if(--n<t||a===-2)return 0;a=utf8CheckByte(i[n]);if(a>=0){if(a>0){if(a===2)a=0;else e.lastNeed=a-3}return a}return 0}function utf8CheckExtraBytes(e,i,t){if((i[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&i.length>1){if((i[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&i.length>2){if((i[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillL