@modern-js/utils 2.69.5 → 3.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/alias.js +76 -70
- package/dist/cjs/cli/applyOptionsChain.js +44 -45
- package/dist/cjs/cli/babel.js +100 -119
- package/dist/cjs/cli/commands.js +61 -59
- package/dist/cjs/cli/common.js +45 -37
- package/dist/cjs/cli/config.js +36 -30
- package/dist/cjs/cli/constants.js +124 -161
- package/dist/cjs/cli/ensure.js +52 -45
- package/dist/cjs/cli/fs.js +41 -38
- package/dist/cjs/cli/get/config.js +43 -38
- package/dist/cjs/cli/get/data.js +108 -125
- package/dist/cjs/cli/get/index.js +109 -58
- package/dist/cjs/cli/index.js +202 -63
- package/dist/cjs/cli/is/config.js +75 -71
- package/dist/cjs/cli/is/env.js +49 -37
- package/dist/cjs/cli/is/index.js +76 -25
- package/dist/cjs/cli/is/project.js +139 -135
- package/dist/cjs/cli/is/type.js +65 -49
- package/dist/cjs/cli/logger.js +36 -27
- package/dist/cjs/cli/monorepo.js +100 -96
- package/dist/cjs/cli/package.js +85 -82
- package/dist/cjs/cli/path.js +101 -82
- package/dist/cjs/cli/port.js +71 -74
- package/dist/cjs/cli/prettyInstructions.js +106 -116
- package/dist/cjs/cli/require.js +116 -136
- package/dist/cjs/cli/route.js +67 -77
- package/dist/cjs/cli/runtimeExports.js +16 -70
- package/dist/cjs/cli/version.js +53 -42
- package/dist/cjs/cli/watch.js +79 -72
- package/dist/cjs/compiled.js +199 -128
- package/dist/cjs/import.js +58 -33
- package/dist/cjs/index.js +69 -23
- package/dist/cjs/universal/constants.js +77 -67
- package/dist/cjs/universal/index.js +33 -25
- package/dist/cjs/universal/path.js +33 -27
- package/dist/cjs/universal/pluginDagSort.js +69 -68
- package/dist/compiled/address/index.js +171 -1
- package/dist/compiled/browserslist/index.js +1329 -1
- package/dist/compiled/chalk/index.js +2368 -1
- package/dist/compiled/chokidar/index.js +4138 -16
- package/dist/compiled/chokidar/index.js.LICENSE.txt +41 -0
- package/dist/compiled/commander/index.js +1540 -1
- package/dist/compiled/debug/index.js +621 -1
- package/dist/compiled/dotenv/index.js +101 -1
- package/dist/compiled/dotenv-expand/index.js +54 -1
- package/dist/compiled/execa/index.js +1738 -1
- package/dist/compiled/fast-glob/index.js +4645 -17
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +38 -0
- package/dist/compiled/filesize/index.js +193 -4
- package/dist/compiled/filesize/index.js.LICENSE.txt +7 -0
- package/dist/compiled/fs-extra/index.js +2222 -1
- package/dist/compiled/glob/index.js +2011 -1
- package/dist/compiled/globby/index.js +690 -1
- package/dist/compiled/gzip-size/index.js +157 -1
- package/dist/compiled/import-lazy/index.js +45 -1
- package/dist/compiled/inquirer/index.js +20162 -4
- package/dist/compiled/inquirer/index.js.LICENSE.txt +7 -0
- package/dist/compiled/js-yaml/index.js +2188 -1
- package/dist/compiled/json5/index.js +983 -1
- package/dist/compiled/lodash/index.js +0 -4
- package/dist/compiled/mime-types/index.js +108 -6
- package/dist/compiled/mime-types/index.js.LICENSE.txt +13 -0
- package/dist/compiled/minimist/index.js +202 -1
- package/dist/compiled/nanoid/index.js +83 -1
- package/dist/compiled/ora/index.js +3936 -3
- package/dist/compiled/ora/index.js.LICENSE.txt +1 -0
- package/dist/compiled/pkg-up/index.js +177 -1
- package/dist/compiled/semver/index.js +1779 -1
- package/dist/compiled/signale/index.js +1704 -1
- package/dist/compiled/slash/index.js +32 -1
- package/dist/compiled/strip-ansi/index.js +34 -1
- package/dist/compiled/tsconfig-paths/index.js +629 -1
- package/dist/compiled/upath/index.js +135 -1
- package/dist/compiled/url-join/index.js +61 -1
- package/dist/compiled/webpack-chain/index.js +1475 -1
- package/dist/esm/cli/alias.mjs +31 -0
- package/dist/esm/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm/cli/babel.mjs +76 -0
- package/dist/esm/cli/commands.mjs +23 -0
- package/dist/esm/cli/common.mjs +11 -0
- package/dist/esm/cli/config.mjs +5 -0
- package/dist/esm/cli/constants.mjs +29 -0
- package/dist/esm/cli/ensure.mjs +9 -0
- package/dist/esm/cli/fs.mjs +9 -0
- package/dist/esm/cli/get/config.mjs +14 -0
- package/dist/esm/cli/get/data.mjs +57 -0
- package/dist/esm/cli/get/index.mjs +18 -0
- package/dist/{esm-node/cli/index.js → esm/cli/index.mjs} +0 -1
- package/dist/esm/cli/is/config.mjs +34 -0
- package/dist/esm/cli/is/env.mjs +6 -0
- package/dist/esm/cli/is/project.mjs +104 -0
- package/dist/esm/cli/is/type.mjs +26 -0
- package/dist/esm/cli/logger.mjs +2 -0
- package/dist/esm/cli/monorepo.mjs +50 -0
- package/dist/esm/cli/package.mjs +51 -0
- package/dist/esm/cli/path.mjs +35 -0
- package/dist/esm/cli/port.mjs +35 -0
- package/dist/esm/cli/prettyInstructions.mjs +68 -0
- package/dist/esm/cli/require.mjs +79 -0
- package/dist/esm/cli/route.mjs +36 -0
- package/dist/esm/cli/runtimeExports.mjs +0 -0
- package/dist/esm/cli/version.mjs +21 -0
- package/dist/esm/cli/watch.mjs +40 -0
- package/dist/esm/compiled.mjs +115 -0
- package/dist/esm/import.mjs +25 -0
- package/dist/esm/universal/constants.mjs +13 -0
- package/dist/{esm-node/universal/index.js → esm/universal/index.mjs} +1 -3
- package/dist/esm/universal/path.mjs +2 -0
- package/dist/esm/universal/pluginDagSort.mjs +41 -0
- package/dist/esm-node/cli/alias.mjs +31 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm-node/cli/babel.mjs +76 -0
- package/dist/esm-node/cli/commands.mjs +23 -0
- package/dist/esm-node/cli/common.mjs +11 -0
- package/dist/esm-node/cli/config.mjs +5 -0
- package/dist/esm-node/cli/constants.mjs +29 -0
- package/dist/esm-node/cli/ensure.mjs +9 -0
- package/dist/esm-node/cli/fs.mjs +9 -0
- package/dist/esm-node/cli/get/config.mjs +14 -0
- package/dist/esm-node/cli/get/data.mjs +57 -0
- package/dist/esm-node/cli/get/index.mjs +18 -0
- package/dist/esm-node/cli/index.mjs +22 -0
- package/dist/esm-node/cli/is/config.mjs +34 -0
- package/dist/esm-node/cli/is/env.mjs +6 -0
- package/dist/esm-node/cli/is/index.mjs +4 -0
- package/dist/esm-node/cli/is/project.mjs +104 -0
- package/dist/esm-node/cli/is/type.mjs +26 -0
- package/dist/esm-node/cli/logger.mjs +2 -0
- package/dist/esm-node/cli/monorepo.mjs +50 -0
- package/dist/esm-node/cli/package.mjs +51 -0
- package/dist/esm-node/cli/path.mjs +35 -0
- package/dist/esm-node/cli/port.mjs +35 -0
- package/dist/esm-node/cli/prettyInstructions.mjs +68 -0
- package/dist/esm-node/cli/require.mjs +79 -0
- package/dist/esm-node/cli/route.mjs +36 -0
- package/dist/esm-node/cli/runtimeExports.mjs +0 -0
- package/dist/esm-node/cli/version.mjs +21 -0
- package/dist/esm-node/cli/watch.mjs +40 -0
- package/dist/esm-node/compiled.mjs +115 -0
- package/dist/esm-node/import.mjs +25 -0
- package/dist/esm-node/index.mjs +3 -0
- package/dist/esm-node/universal/constants.mjs +13 -0
- package/dist/esm-node/universal/index.mjs +2 -0
- package/dist/esm-node/universal/path.mjs +2 -0
- package/dist/esm-node/universal/pluginDagSort.mjs +41 -0
- package/dist/types/cli/constants.d.ts +2 -26
- package/dist/types/cli/get/data.d.ts +0 -1
- package/dist/types/cli/index.d.ts +0 -1
- package/dist/types/cli/is/config.d.ts +1 -1
- package/dist/types/cli/runtimeExports.d.ts +1 -4
- package/dist/types/cli/watch.d.ts +1 -1
- package/dist/types/compiled.d.ts +0 -5
- package/dist/types/universal/constants.d.ts +4 -7
- package/package.json +27 -27
- package/rslib.config.mts +140 -0
- package/dist/cjs/cli/action.js +0 -55
- package/dist/cjs/universal/formatWebpack.js +0 -127
- package/dist/esm/cli/action.js +0 -68
- package/dist/esm/cli/alias.js +0 -43
- package/dist/esm/cli/applyOptionsChain.js +0 -29
- package/dist/esm/cli/babel.js +0 -122
- package/dist/esm/cli/commands.js +0 -39
- package/dist/esm/cli/common.js +0 -20
- package/dist/esm/cli/config.js +0 -11
- package/dist/esm/cli/constants.js +0 -114
- package/dist/esm/cli/ensure.js +0 -16
- package/dist/esm/cli/fs.js +0 -65
- package/dist/esm/cli/get/config.js +0 -19
- package/dist/esm/cli/get/data.js +0 -143
- package/dist/esm/cli/get/index.js +0 -38
- package/dist/esm/cli/index.js +0 -23
- package/dist/esm/cli/is/config.js +0 -70
- package/dist/esm/cli/is/env.js +0 -22
- package/dist/esm/cli/is/index.js +0 -4
- package/dist/esm/cli/is/project.js +0 -146
- package/dist/esm/cli/is/type.js +0 -39
- package/dist/esm/cli/logger.js +0 -5
- package/dist/esm/cli/monorepo.js +0 -82
- package/dist/esm/cli/package.js +0 -203
- package/dist/esm/cli/path.js +0 -66
- package/dist/esm/cli/port.js +0 -97
- package/dist/esm/cli/prettyInstructions.js +0 -102
- package/dist/esm/cli/require.js +0 -235
- package/dist/esm/cli/route.js +0 -64
- package/dist/esm/cli/runtimeExports.js +0 -44
- package/dist/esm/cli/version.js +0 -26
- package/dist/esm/cli/watch.js +0 -112
- package/dist/esm/compiled.js +0 -66
- package/dist/esm/import.js +0 -11
- package/dist/esm/index.js +0 -3
- package/dist/esm/universal/constants.js +0 -32
- package/dist/esm/universal/formatWebpack.js +0 -95
- package/dist/esm/universal/index.js +0 -4
- package/dist/esm/universal/path.js +0 -6
- package/dist/esm/universal/pluginDagSort.js +0 -73
- package/dist/esm-node/cli/action.js +0 -30
- package/dist/esm-node/cli/alias.js +0 -40
- package/dist/esm-node/cli/applyOptionsChain.js +0 -27
- package/dist/esm-node/cli/babel.js +0 -107
- package/dist/esm-node/cli/commands.js +0 -39
- package/dist/esm-node/cli/common.js +0 -15
- package/dist/esm-node/cli/config.js +0 -9
- package/dist/esm-node/cli/constants.js +0 -114
- package/dist/esm-node/cli/ensure.js +0 -14
- package/dist/esm-node/cli/fs.js +0 -18
- package/dist/esm-node/cli/get/config.js +0 -19
- package/dist/esm-node/cli/get/data.js +0 -96
- package/dist/esm-node/cli/get/index.js +0 -22
- package/dist/esm-node/cli/is/config.js +0 -50
- package/dist/esm-node/cli/is/env.js +0 -12
- package/dist/esm-node/cli/is/project.js +0 -105
- package/dist/esm-node/cli/is/type.js +0 -36
- package/dist/esm-node/cli/logger.js +0 -5
- package/dist/esm-node/cli/monorepo.js +0 -67
- package/dist/esm-node/cli/package.js +0 -66
- package/dist/esm-node/cli/path.js +0 -48
- package/dist/esm-node/cli/port.js +0 -48
- package/dist/esm-node/cli/prettyInstructions.js +0 -90
- package/dist/esm-node/cli/require.js +0 -111
- package/dist/esm-node/cli/route.js +0 -60
- package/dist/esm-node/cli/runtimeExports.js +0 -38
- package/dist/esm-node/cli/version.js +0 -26
- package/dist/esm-node/cli/watch.js +0 -45
- package/dist/esm-node/compiled.js +0 -66
- package/dist/esm-node/import.js +0 -11
- package/dist/esm-node/universal/constants.js +0 -32
- package/dist/esm-node/universal/formatWebpack.js +0 -102
- package/dist/esm-node/universal/path.js +0 -6
- package/dist/esm-node/universal/pluginDagSort.js +0 -50
- package/dist/types/cli/action.d.ts +0 -2
- package/dist/types/universal/formatWebpack.d.ts +0 -26
- /package/dist/{esm-node/cli/is/index.js → esm/cli/is/index.mjs} +0 -0
- /package/dist/{esm-node/index.js → esm/index.mjs} +0 -0
|
@@ -1,3 +1,3936 @@
|
|
|
1
|
-
(()=>{var e={695:(e,t,r)=>{"use strict";const{Buffer:i}=r(300);const n=Symbol.for("BufferList");function BufferList(e){if(!(this instanceof BufferList)){return new BufferList(e)}BufferList._init.call(this,e)}BufferList._init=function _init(e){Object.defineProperty(this,n,{value:true});this._bufs=[];this.length=0;if(e){this.append(e)}};BufferList.prototype._new=function _new(e){return new BufferList(e)};BufferList.prototype._offset=function _offset(e){if(e===0){return[0,0]}let t=0;for(let r=0;r<this._bufs.length;r++){const i=t+this._bufs[r].length;if(e<i||r===this._bufs.length-1){return[r,e-t]}t=i}};BufferList.prototype._reverseOffset=function(e){const t=e[0];let r=e[1];for(let e=0;e<t;e++){r+=this._bufs[e].length}return r};BufferList.prototype.get=function get(e){if(e>this.length||e<0){return undefined}const t=this._offset(e);return this._bufs[t[0]][t[1]]};BufferList.prototype.slice=function slice(e,t){if(typeof e==="number"&&e<0){e+=this.length}if(typeof t==="number"&&t<0){t+=this.length}return this.copy(null,0,e,t)};BufferList.prototype.copy=function copy(e,t,r,n){if(typeof r!=="number"||r<0){r=0}if(typeof n!=="number"||n>this.length){n=this.length}if(r>=this.length){return e||i.alloc(0)}if(n<=0){return e||i.alloc(0)}const copy=!!e;const s=this._offset(r);const a=n-r;let o=a;let f=copy&&t||0;let l=s[1];if(r===0&&n===this.length){if(!copy){return this._bufs.length===1?this._bufs[0]:i.concat(this._bufs,this.length)}for(let t=0;t<this._bufs.length;t++){this._bufs[t].copy(e,f);f+=this._bufs[t].length}return e}if(o<=this._bufs[s[0]].length-l){return copy?this._bufs[s[0]].copy(e,t,l,l+o):this._bufs[s[0]].slice(l,l+o)}if(!copy){e=i.allocUnsafe(a)}for(let t=s[0];t<this._bufs.length;t++){const r=this._bufs[t].length-l;if(o>r){this._bufs[t].copy(e,f,l);f+=r}else{this._bufs[t].copy(e,f,l,l+o);f+=r;break}o-=r;if(l){l=0}}if(e.length>f)return e.slice(0,f);return e};BufferList.prototype.shallowSlice=function shallowSlice(e,t){e=e||0;t=typeof t!=="number"?this.length:t;if(e<0){e+=this.length}if(t<0){t+=this.length}if(e===t){return this._new()}const r=this._offset(e);const i=this._offset(t);const n=this._bufs.slice(r[0],i[0]+1);if(i[1]===0){n.pop()}else{n[n.length-1]=n[n.length-1].slice(0,i[1])}if(r[1]!==0){n[0]=n[0].slice(r[1])}return this._new(n)};BufferList.prototype.toString=function toString(e,t,r){return this.slice(t,r).toString(e)};BufferList.prototype.consume=function consume(e){e=Math.trunc(e);if(Number.isNaN(e)||e<=0)return this;while(this._bufs.length){if(e>=this._bufs[0].length){e-=this._bufs[0].length;this.length-=this._bufs[0].length;this._bufs.shift()}else{this._bufs[0]=this._bufs[0].slice(e);this.length-=e;break}}return this};BufferList.prototype.duplicate=function duplicate(){const e=this._new();for(let t=0;t<this._bufs.length;t++){e.append(this._bufs[t])}return e};BufferList.prototype.append=function append(e){if(e==null){return this}if(e.buffer){this._appendBuffer(i.from(e.buffer,e.byteOffset,e.byteLength))}else if(Array.isArray(e)){for(let t=0;t<e.length;t++){this.append(e[t])}}else if(this._isBufferList(e)){for(let t=0;t<e._bufs.length;t++){this.append(e._bufs[t])}}else{if(typeof e==="number"){e=e.toString()}this._appendBuffer(i.from(e))}return this};BufferList.prototype._appendBuffer=function appendBuffer(e){this._bufs.push(e);this.length+=e.length};BufferList.prototype.indexOf=function(e,t,r){if(r===undefined&&typeof t==="string"){r=t;t=undefined}if(typeof e==="function"||Array.isArray(e)){throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.')}else if(typeof e==="number"){e=i.from([e])}else if(typeof e==="string"){e=i.from(e,r)}else if(this._isBufferList(e)){e=e.slice()}else if(Array.isArray(e.buffer)){e=i.from(e.buffer,e.byteOffset,e.byteLength)}else if(!i.isBuffer(e)){e=i.from(e)}t=Number(t||0);if(isNaN(t)){t=0}if(t<0){t=this.length+t}if(t<0){t=0}if(e.length===0){return t>this.length?this.length:t}const n=this._offset(t);let s=n[0];let a=n[1];for(;s<this._bufs.length;s++){const t=this._bufs[s];while(a<t.length){const r=t.length-a;if(r>=e.length){const r=t.indexOf(e,a);if(r!==-1){return this._reverseOffset([s,r])}a=t.length-e.length+1}else{const t=this._reverseOffset([s,a]);if(this._match(t,e)){return t}a++}}a=0}return-1};BufferList.prototype._match=function(e,t){if(this.length-e<t.length){return false}for(let r=0;r<t.length;r++){if(this.get(e+r)!==t[r]){return false}}return true};(function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e){(function(t){if(e[t]===null){BufferList.prototype[t]=function(e,r){return this.slice(e,e+r)[t](0,r)}}else{BufferList.prototype[t]=function(r=0){return this.slice(r,r+e[t])[t](0)}}})(t)}})();BufferList.prototype._isBufferList=function _isBufferList(e){return e instanceof BufferList||BufferList.isBufferList(e)};BufferList.isBufferList=function isBufferList(e){return e!=null&&e[n]};e.exports=BufferList},49:(e,t,r)=>{"use strict";const i=r(505).Duplex;const n=r(315);const s=r(695);function BufferListStream(e){if(!(this instanceof BufferListStream)){return new BufferListStream(e)}if(typeof e==="function"){this._callback=e;const t=function piper(e){if(this._callback){this._callback(e);this._callback=null}}.bind(this);this.on("pipe",(function onPipe(e){e.on("error",t)}));this.on("unpipe",(function onUnpipe(e){e.removeListener("error",t)}));e=null}s._init.call(this,e);i.call(this)}n(BufferListStream,i);Object.assign(BufferListStream.prototype,s.prototype);BufferListStream.prototype._new=function _new(e){return new BufferListStream(e)};BufferListStream.prototype._write=function _write(e,t,r){this._appendBuffer(e);if(typeof r==="function"){r()}};BufferListStream.prototype._read=function _read(e){if(!this.length){return this.push(null)}e=Math.min(e,this.length);this.push(this.slice(0,e));this.consume(e)};BufferListStream.prototype.end=function end(e){i.prototype.end.call(this,e);if(this._callback){this._callback(null,this.slice());this._callback=null}};BufferListStream.prototype._destroy=function _destroy(e,t){this._bufs.length=0;this.length=0;t(e)};BufferListStream.prototype._isBufferList=function _isBufferList(e){return e instanceof BufferListStream||e instanceof s||BufferListStream.isBufferList(e)};BufferListStream.isBufferList=s.isBufferList;e.exports=BufferListStream;e.exports.BufferListStream=BufferListStream;e.exports.BufferList=s},805:(e,t,r)=>{"use strict";const i=r(598);let n=false;t.show=(e=process.stderr)=>{if(!e.isTTY){return}n=false;e.write("[?25h")};t.hide=(e=process.stderr)=>{if(!e.isTTY){return}i();n=true;e.write("[?25l")};t.toggle=(e,r)=>{if(e!==undefined){n=e}if(n){t.show(r)}else{t.hide(r)}}},414:(e,t,r)=>{"use strict";const i=Object.assign({},r(32));const n=Object.keys(i);Object.defineProperty(i,"random",{get(){const e=Math.floor(Math.random()*n.length);const t=n[e];return i[t]}});e.exports=i},332:e=>{var t=function(){"use strict";function clone(e,t,r,i){var n;if(typeof t==="object"){r=t.depth;i=t.prototype;n=t.filter;t=t.circular}var s=[];var a=[];var o=typeof Buffer!="undefined";if(typeof t=="undefined")t=true;if(typeof r=="undefined")r=Infinity;function _clone(e,r){if(e===null)return null;if(r==0)return e;var n;var f;if(typeof e!="object"){return e}if(clone.__isArray(e)){n=[]}else if(clone.__isRegExp(e)){n=new RegExp(e.source,__getRegExpFlags(e));if(e.lastIndex)n.lastIndex=e.lastIndex}else if(clone.__isDate(e)){n=new Date(e.getTime())}else if(o&&Buffer.isBuffer(e)){if(Buffer.allocUnsafe){n=Buffer.allocUnsafe(e.length)}else{n=new Buffer(e.length)}e.copy(n);return n}else{if(typeof i=="undefined"){f=Object.getPrototypeOf(e);n=Object.create(f)}else{n=Object.create(i);f=i}}if(t){var l=s.indexOf(e);if(l!=-1){return a[l]}s.push(e);a.push(n)}for(var u in e){var h;if(f){h=Object.getOwnPropertyDescriptor(f,u)}if(h&&h.set==null){continue}n[u]=_clone(e[u],r-1)}return n}return _clone(e,r)}clone.clonePrototype=function clonePrototype(e){if(e===null)return null;var c=function(){};c.prototype=e;return new c};function __objToStr(e){return Object.prototype.toString.call(e)}clone.__objToStr=__objToStr;function __isDate(e){return typeof e==="object"&&__objToStr(e)==="[object Date]"}clone.__isDate=__isDate;function __isArray(e){return typeof e==="object"&&__objToStr(e)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(e){return typeof e==="object"&&__objToStr(e)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(e){var t="";if(e.global)t+="g";if(e.ignoreCase)t+="i";if(e.multiline)t+="m";return t}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(true&&e.exports){e.exports=t}},906:(e,t,r)=>{var i=r(332);e.exports=function(e,t){e=e||{};Object.keys(t).forEach((function(r){if(typeof e[r]==="undefined"){e[r]=i(t[r])}}));return e}},315:(e,t,r)=>{try{var i=r(837);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(494)}},494:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},520:e=>{"use strict";e.exports=({stream:e=process.stdout}={})=>Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))},457:e=>{"use strict";e.exports=()=>{if(process.platform!=="win32"){return true}return Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"}},59:(e,t,r)=>{"use strict";const i=r(234);const n=r(457);const s={info:i.blue("ℹ"),success:i.green("✔"),warning:i.yellow("⚠"),error:i.red("✖")};const a={info:i.blue("i"),success:i.green("√"),warning:i.yellow("‼"),error:i.red("×")};e.exports=n()?s:a},693:e=>{"use strict";const mimicFn=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=mimicFn;e.exports["default"]=mimicFn},591:(e,t,r)=>{"use strict";const i=r(693);const n=new WeakMap;const onetime=(e,t={})=>{if(typeof e!=="function"){throw new TypeError("Expected a function")}let r;let s=0;const a=e.displayName||e.name||"<anonymous>";const onetime=function(...i){n.set(onetime,++s);if(s===1){r=e.apply(this,i);e=null}else if(t.throw===true){throw new Error(`Function \`${a}\` can only be called once`)}return r};i(onetime,e);n.set(onetime,s);return onetime};e.exports=onetime;e.exports["default"]=onetime;e.exports.callCount=e=>{if(!n.has(e)){throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)}return n.get(e)}},942:(e,t,r)=>{"use strict";const i=r(521);const n=r(234);const s=r(805);const a=r(414);const o=r(59);const f=r(286);const l=r(74);const u=r(520);const h=r(457);const{BufferListStream:d}=r(49);const p=Symbol("text");const _=Symbol("prefixText");const b=3;class StdinDiscarder{constructor(){this.requests=0;this.mutedStream=new d;this.mutedStream.pipe(process.stdout);const e=this;this.ourEmit=function(t,r,...i){const{stdin:n}=process;if(e.requests>0||n.emit===e.ourEmit){if(t==="keypress"){return}if(t==="data"&&r.includes(b)){process.emit("SIGINT")}Reflect.apply(e.oldEmit,this,[t,r,...i])}else{Reflect.apply(process.stdin.emit,this,[t,r,...i])}}}start(){this.requests++;if(this.requests===1){this.realStart()}}stop(){if(this.requests<=0){throw new Error("`stop` called more times than `start`")}this.requests--;if(this.requests===0){this.realStop()}}realStart(){if(process.platform==="win32"){return}this.rl=i.createInterface({input:process.stdin,output:this.mutedStream});this.rl.on("SIGINT",(()=>{if(process.listenerCount("SIGINT")===0){process.emit("SIGINT")}else{this.rl.close();process.kill(process.pid,"SIGINT")}}))}realStop(){if(process.platform==="win32"){return}this.rl.close();this.rl=undefined}}let g;class Ora{constructor(e){if(!g){g=new StdinDiscarder}if(typeof e==="string"){e={text:e}}this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:true,...e};this.spinner=this.options.spinner;this.color=this.options.color;this.hideCursor=this.options.hideCursor!==false;this.interval=this.options.interval||this.spinner.interval||100;this.stream=this.options.stream;this.id=undefined;this.isEnabled=typeof this.options.isEnabled==="boolean"?this.options.isEnabled:u({stream:this.stream});this.isSilent=typeof this.options.isSilent==="boolean"?this.options.isSilent:false;this.text=this.options.text;this.prefixText=this.options.prefixText;this.linesToClear=0;this.indent=this.options.indent;this.discardStdin=this.options.discardStdin;this.isDiscardingStdin=false}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e))){throw new Error("The `indent` option must be an integer from 0 and up")}this._indent=e}_updateInterval(e){if(e!==undefined){this.interval=e}}get spinner(){return this._spinner}set spinner(e){this.frameIndex=0;if(typeof e==="object"){if(e.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this._spinner=e}else if(!h()){this._spinner=a.line}else if(e===undefined){this._spinner=a.dots}else if(e!=="default"&&a[e]){this._spinner=a[e]}else{throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}this._updateInterval(this._spinner.interval)}get text(){return this[p]}set text(e){this[p]=e;this.updateLineCount()}get prefixText(){return this[_]}set prefixText(e){this[_]=e;this.updateLineCount()}get isSpinning(){return this.id!==undefined}getFullPrefixText(e=this[_],t=" "){if(typeof e==="string"){return e+t}if(typeof e==="function"){return e()+t}return""}updateLineCount(){const e=this.stream.columns||80;const t=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(const r of f(t+"--"+this[p]).split("\n")){this.lineCount+=Math.max(1,Math.ceil(l(r)/e))}}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if(typeof e!=="boolean"){throw new TypeError("The `isEnabled` option must be a boolean")}this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if(typeof e!=="boolean"){throw new TypeError("The `isSilent` option must be a boolean")}this._isSilent=e}frame(){const{frames:e}=this.spinner;let t=e[this.frameIndex];if(this.color){t=n[this.color](t)}this.frameIndex=++this.frameIndex%e.length;const r=typeof this.prefixText==="string"&&this.prefixText!==""?this.prefixText+" ":"";const i=typeof this.text==="string"?" "+this.text:"";return r+t+i}clear(){if(!this.isEnabled||!this.stream.isTTY){return this}for(let e=0;e<this.linesToClear;e++){if(e>0){this.stream.moveCursor(0,-1)}this.stream.clearLine();this.stream.cursorTo(this.indent)}this.linesToClear=0;return this}render(){if(this.isSilent){return this}this.clear();this.stream.write(this.frame());this.linesToClear=this.lineCount;return this}start(e){if(e){this.text=e}if(this.isSilent){return this}if(!this.isEnabled){if(this.text){this.stream.write(`- ${this.text}\n`)}return this}if(this.isSpinning){return this}if(this.hideCursor){s.hide(this.stream)}if(this.discardStdin&&process.stdin.isTTY){this.isDiscardingStdin=true;g.start()}this.render();this.id=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.isEnabled){return this}clearInterval(this.id);this.id=undefined;this.frameIndex=0;this.clear();if(this.hideCursor){s.show(this.stream)}if(this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin){g.stop();this.isDiscardingStdin=false}return this}succeed(e){return this.stopAndPersist({symbol:o.success,text:e})}fail(e){return this.stopAndPersist({symbol:o.error,text:e})}warn(e){return this.stopAndPersist({symbol:o.warning,text:e})}info(e){return this.stopAndPersist({symbol:o.info,text:e})}stopAndPersist(e={}){if(this.isSilent){return this}const t=e.prefixText||this.prefixText;const r=e.text||this.text;const i=typeof r==="string"?" "+r:"";this.stop();this.stream.write(`${this.getFullPrefixText(t," ")}${e.symbol||" "}${i}\n`);return this}}const oraFactory=function(e){return new Ora(e)};e.exports=oraFactory;e.exports.promise=(e,t)=>{if(typeof e.then!=="function"){throw new TypeError("Parameter `action` must be a Promise")}const r=new Ora(t);r.start();(async()=>{try{await e;r.succeed()}catch{r.fail()}})();return r}},959:e=>{"use strict";const t={};function createErrorType(e,r,i){if(!i){i=Error}function getMessage(e,t,i){if(typeof r==="string"){return r}else{return r(e,t,i)}}class NodeError extends i{constructor(e,t,r){super(getMessage(e,t,r))}}NodeError.prototype.name=i.name;NodeError.prototype.code=e;t[e]=NodeError}function oneOf(e,t){if(Array.isArray(e)){const r=e.length;e=e.map((e=>String(e)));if(r>2){return`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]}else if(r===2){return`one of ${t} ${e[0]} or ${e[1]}`}else{return`of ${t} ${e[0]}`}}else{return`of ${t} ${String(e)}`}}function startsWith(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function endsWith(e,t,r){if(r===undefined||r>e.length){r=e.length}return e.substring(r-t.length,r)===t}function includes(e,t,r){if(typeof r!=="number"){r=0}if(r+t.length>e.length){return false}else{return e.indexOf(t,r)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError);createErrorType("ERR_INVALID_ARG_TYPE",(function(e,t,r){let i;if(typeof t==="string"&&startsWith(t,"not ")){i="must not be";t=t.replace(/^not /,"")}else{i="must be"}let n;if(endsWith(e," argument")){n=`The ${e} ${i} ${oneOf(t,"type")}`}else{const r=includes(e,".")?"property":"argument";n=`The "${e}" ${r} ${i} ${oneOf(t,"type")}`}n+=`. Received type ${typeof r}`;return n}),TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"}));createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"}));createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");e.exports.q=t},548:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var n=r(852);var s=r(379);r(315)(Duplex,n);{var a=i(s.prototype);for(var o=0;o<a.length;o++){var f=a[o];if(!Duplex.prototype[f])Duplex.prototype[f]=s.prototype[f]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);n.call(this,e);s.call(this,e);this.allowHalfOpen=true;if(e){if(e.readable===false)this.readable=false;if(e.writable===false)this.writable=false;if(e.allowHalfOpen===false){this.allowHalfOpen=false;this.once("end",onend)}}}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:false,get:function get(){return this._writableState.length}});function onend(){if(this._writableState.ended)return;process.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function set(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}})},184:(e,t,r)=>{"use strict";e.exports=PassThrough;var i=r(770);r(315)(PassThrough,i);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},852:(e,t,r)=>{"use strict";e.exports=Readable;var i;Readable.ReadableState=ReadableState;var n=r(361).EventEmitter;var s=function EElistenerCount(e,t){return e.listeners(t).length};var a=r(604);var o=r(300).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return o.from(e)}function _isUint8Array(e){return o.isBuffer(e)||e instanceof f}var l=r(837);var u;if(l&&l.debuglog){u=l.debuglog("stream")}else{u=function debug(){}}var h=r(706);var d=r(97);var p=r(841),_=p.getHighWaterMark;var b=r(959).q,g=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,m=b.ERR_METHOD_NOT_IMPLEMENTED,v=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var w;var S;var R;r(315)(Readable,a);var E=d.errorOrDestroy;var x=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(Array.isArray(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t,n){i=i||r(548);e=e||{};if(typeof n!=="boolean")n=t instanceof i;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=_(this,e,"readableHighWaterMark",n);this.buffer=new h;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.paused=true;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!w)w=r(259).s;this.decoder=new w(e.encoding);this.encoding=e.encoding}}function Readable(e){i=i||r(548);if(!(this instanceof Readable))return new Readable(e);var t=this instanceof i;this._readableState=new ReadableState(e,this,t);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}a.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function set(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=d.destroy;Readable.prototype._undestroy=d.undestroy;Readable.prototype._destroy=function(e,t){t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var i;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=o.from(e,t);t=""}i=true}}else{i=true}return readableAddChunk(this,e,t,false,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,i,n){u("readableAddChunk",t);var s=e._readableState;if(t===null){s.reading=false;onEofChunk(e,s)}else{var a;if(!n)a=chunkInvalid(s,t);if(a){E(e,a)}else if(s.objectMode||t&&t.length>0){if(typeof t!=="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==o.prototype){t=_uint8ArrayToBuffer(t)}if(i){if(s.endEmitted)E(e,new v);else addChunk(e,s,t,true)}else if(s.ended){E(e,new y)}else if(s.destroyed){return false}else{s.reading=false;if(s.decoder&&!r){t=s.decoder.write(t);if(s.objectMode||t.length!==0)addChunk(e,s,t,false);else maybeReadMore(e,s)}else{addChunk(e,s,t,false)}}}else if(!i){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function addChunk(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync){t.awaitDrain=0;e.emit("data",r)}else{t.length+=t.objectMode?1:r.length;if(i)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new g("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!w)w=r(259).s;var t=new w(e);this._readableState.decoder=t;this._readableState.encoding=this._readableState.decoder.encoding;var i=this._readableState.buffer.head;var n="";while(i!==null){n+=t.write(i.data);i=i.next}this._readableState.buffer.clear();if(n!=="")this._readableState.buffer.push(n);this._readableState.length=n.length;return this};var T=1073741824;function computeNewHighWaterMark(e){if(e>=T){e=T}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){u("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){u("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var i=t.needReadable;u("need readable",i);if(t.length===0||t.length-e<t.highWaterMark){i=true;u("length less than watermark",i)}if(t.ended||t.reading){i=false;u("reading or ended",i)}else if(i){u("do read");t.reading=true;t.sync=true;if(t.length===0)t.needReadable=true;this._read(t.highWaterMark);t.sync=false;if(!t.reading)e=howMuchToRead(r,t)}var n;if(e>0)n=fromList(e,t);else n=null;if(n===null){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;t.awaitDrain=0}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(n!==null)this.emit("data",n);return n};function onEofChunk(e,t){u("onEofChunk");if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;if(t.sync){emitReadable(e)}else{t.needReadable=false;if(!t.emittedReadable){t.emittedReadable=true;emitReadable_(e)}}}function emitReadable(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){u("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;process.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){var r=t.length;u("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){E(this,new m("_read()"))};Readable.prototype.pipe=function(e,t){var r=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1;u("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var a=n?onend:unpipe;if(i.endEmitted)process.nextTick(a);else r.once("end",a);e.on("unpipe",onunpipe);function onunpipe(e,t){u("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){u("onend");e.end()}var o=pipeOnDrain(r);e.on("drain",o);var f=false;function cleanup(){u("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",o);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);r.removeListener("end",onend);r.removeListener("end",unpipe);r.removeListener("data",ondata);f=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))o()}r.on("data",ondata);function ondata(t){u("ondata");var n=e.write(t);u("dest.write",n);if(n===false){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&indexOf(i.pipes,e)!==-1)&&!f){u("false write response, pause",i.awaitDrain);i.awaitDrain++}r.pause()}}function onerror(t){u("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)E(e,t)}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");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){u("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var i=t.pipes;var n=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var s=0;s<n;s++){i[s].emit("unpipe",this,{hasUnpiped:false})}return this}var a=indexOf(t.pipes,e);if(a===-1)return this;t.pipes.splice(a,1);t.pipesCount-=1;if(t.pipesCount===1)t.pipes=t.pipes[0];e.emit("unpipe",this,r);return this};Readable.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t);var i=this._readableState;if(e==="data"){i.readableListening=this.listenerCount("readable")>0;if(i.flowing!==false)this.resume()}else if(e==="readable"){if(!i.endEmitted&&!i.readableListening){i.readableListening=i.needReadable=true;i.flowing=false;i.emittedReadable=false;u("on readable",i.length,i.reading);if(i.length){emitReadable(this)}else if(!i.reading){process.nextTick(nReadingNextTick,this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){process.nextTick(updateReadableListening,this)}return t};function updateReadableListening(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&!t.paused){t.flowing=true}else if(e.listenerCount("data")>0){e.resume()}}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=!e.readableListening;resume(this,e)}e.paused=false;return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;process.nextTick(resume_,e,t)}}function resume_(e,t){u("resume",t.reading);if(!t.reading){e.read(0)}t.resumeScheduled=false;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){u("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){u("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;u("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var i=false;e.on("end",(function(){u("wrapped end");if(r.decoder&&!r.ended){var e=r.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(n){u("wrapped data");if(r.decoder)n=r.decoder.write(n);if(r.objectMode&&(n===null||n===undefined))return;else if(!r.objectMode&&(!n||!n.length))return;var s=t.push(n);if(!s){i=true;e.pause()}}));for(var n in e){if(this[n]===undefined&&typeof e[n]==="function"){this[n]=function methodWrap(t){return function methodWrapReturnFunction(){return e[t].apply(e,arguments)}}(n)}}for(var s=0;s<x.length;s++){e.on(x[s],this.emit.bind(this,x[s]))}this._read=function(t){u("wrapped _read",t);if(i){i=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(S===undefined){S=r(87)}return S(this)}}Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function get(){return this._readableState.highWaterMark}});Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:false,get:function get(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:false,get:function get(){return this._readableState.flowing},set:function set(e){if(this._readableState){this._readableState.flowing=e}}});Readable._fromList=fromList;Object.defineProperty(Readable.prototype,"readableLength",{enumerable:false,get:function get(){return this._readableState.length}});function fromList(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.first();else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=t.buffer.consume(e,t.decoder)}return r}function endReadable(e){var t=e._readableState;u("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){u("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end");if(e.autoDestroy){var r=t._writableState;if(!r||r.autoDestroy&&r.finished){t.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(e,t){if(R===undefined){R=r(668)}return R(Readable,e,t)}}function indexOf(e,t){for(var r=0,i=e.length;r<i;r++){if(e[r]===t)return r}return-1}},770:(e,t,r)=>{"use strict";e.exports=Transform;var i=r(959).q,n=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=i.ERR_TRANSFORM_WITH_LENGTH_0;var f=r(548);r(315)(Transform,f);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var i=r.writecb;if(i===null){return this.emit("error",new s)}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);i(e);var n=this._readableState;n.reading=false;if(n.needReadable||n.length<n.highWaterMark){this._read(n.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);f.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._readableState.destroyed){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return f.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){r(new n("_transform()"))};Transform.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r;i.writechunk=e;i.writeencoding=t;if(!i.transforming){var n=this._readableState;if(i.needTransform||n.needReadable||n.length<n.highWaterMark)this._read(n.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){f.prototype._destroy.call(this,e,(function(e){t(e)}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}},379:(e,t,r)=>{"use strict";e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var i;Writable.WritableState=WritableState;var n={deprecate:r(125)};var s=r(604);var a=r(300).Buffer;var o=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof o}var f=r(97);var l=r(841),u=l.getHighWaterMark;var h=r(959).q,d=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,_=h.ERR_MULTIPLE_CALLBACK,b=h.ERR_STREAM_CANNOT_PIPE,g=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,m=h.ERR_STREAM_WRITE_AFTER_END,v=h.ERR_UNKNOWN_ENCODING;var w=f.errorOrDestroy;r(315)(Writable,s);function nop(){}function WritableState(e,t,n){i=i||r(548);e=e||{};if(typeof n!=="boolean")n=t instanceof i;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=u(this,e,"writableHighWaterMark",n);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;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(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:n.deprecate((function writableStateBufferGetter(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var S;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){S=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(S.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{S=function realHasInstance(e){return e instanceof this}}function Writable(e){i=i||r(548);var t=this instanceof i;if(!t&&!S.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t);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}s.call(this)}Writable.prototype.pipe=function(){w(this,new b)};function writeAfterEnd(e,t){var r=new m;w(e,r);process.nextTick(t,r)}function validChunk(e,t,r,i){var n;if(r===null){n=new y}else if(typeof r!=="string"&&!t.objectMode){n=new d("chunk",["string","Buffer"],r)}if(n){w(e,n);process.nextTick(i,n);return false}return true}Writable.prototype.write=function(e,t,r){var i=this._writableState;var n=false;var s=!i.objectMode&&_isUint8Array(e);if(s&&!a.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(s)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof r!=="function")r=nop;if(i.ending)writeAfterEnd(this,r);else if(s||validChunk(this,i,e,r)){i.pendingcb++;n=writeOrBuffer(this,i,s,e,t,r)}return n};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!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 v(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=a.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,i,n,s){if(!r){var a=decodeChunk(t,i,n);if(i!==a){r=true;n="buffer";i=a}}var o=t.objectMode?1:i.length;t.length+=o;var f=t.length<t.highWaterMark;if(!f)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,o,i,n,s)}return f}function doWrite(e,t,r,i,n,s,a){t.writelen=i;t.writecb=a;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new g("write"));else if(r)e._writev(n,t.onwrite);else e._write(n,s,t.onwrite);t.sync=false}function onwriteError(e,t,r,i,n){--t.pendingcb;if(r){process.nextTick(n,i);process.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;w(e,i)}else{n(i);e._writableState.errorEmitted=true;w(e,i);finishMaybe(e,t)}}function onwriteStateUpdate(e){e.writing=false;e.writecb=null;e.length-=e.writelen;e.writelen=0}function onwrite(e,t){var r=e._writableState;var i=r.sync;var n=r.writecb;if(typeof n!=="function")throw new _;onwriteStateUpdate(r);if(t)onwriteError(e,r,i,t,n);else{var s=needFinish(r)||e.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(i){process.nextTick(afterWrite,e,r,s,n)}else{afterWrite(e,r,s,n)}}}function afterWrite(e,t,r,i){if(!r)onwriteDrain(e,t);t.pendingcb--;i();finishMaybe(e,t)}function onwriteDrain(e,t){if(t.length===0&&t.needDrain){t.needDrain=false;e.emit("drain")}}function clearBuffer(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount;var n=new Array(i);var s=t.corkedRequestsFree;s.entry=r;var a=0;var o=true;while(r){n[a]=r;if(!r.isBuf)o=false;r=r.next;a+=1}n.allBuffers=o;doWrite(e,t,true,t.length,n,"",s.finish);t.pendingcb++;t.lastBufferedRequest=null;if(s.next){t.corkedRequestsFree=s.next;s.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var f=r.chunk;var l=r.encoding;var u=r.callback;var h=t.objectMode?1:f.length;doWrite(e,t,false,h,f,l,u);r=r.next;t.bufferedRequestCount--;if(t.writing){break}}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r;t.bufferProcessing=false}Writable.prototype._write=function(e,t,r){r(new p("_write()"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var i=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}if(e!==null&&e!==undefined)this.write(e,t);if(i.corked){i.corked=1;this.uncork()}if(!i.ending)endWritable(this,i,r);return this};Object.defineProperty(Writable.prototype,"writableLength",{enumerable:false,get:function get(){return this._writableState.length}});function needFinish(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function callFinal(e,t){e._final((function(r){t.pendingcb--;if(r){w(e,r)}t.prefinished=true;e.emit("prefinish");finishMaybe(e,t)}))}function prefinish(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"&&!t.destroyed){t.pendingcb++;t.finalCalled=true;process.nextTick(callFinal,e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function finishMaybe(e,t){var r=needFinish(t);if(r){prefinish(e,t);if(t.pendingcb===0){t.finished=true;e.emit("finish");if(t.autoDestroy){var i=e._readableState;if(!i||i.autoDestroy&&i.endEmitted){e.destroy()}}}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)process.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var i=e.entry;e.entry=null;while(i){var n=i.callback;t.pendingcb--;n(r);i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function set(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=f.destroy;Writable.prototype._undestroy=f.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},87:(e,t,r)=>{"use strict";var i;function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var n=r(641);var s=Symbol("lastResolve");var a=Symbol("lastReject");var o=Symbol("error");var f=Symbol("ended");var l=Symbol("lastPromise");var u=Symbol("handlePromise");var h=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[s];if(t!==null){var r=e[h].read();if(r!==null){e[l]=null;e[s]=null;e[a]=null;t(createIterResult(r,false))}}}function onReadable(e){process.nextTick(readAndResolve,e)}function wrapForNext(e,t){return function(r,i){e.then((function(){if(t[f]){r(createIterResult(undefined,true));return}t[u](r,i)}),i)}}var d=Object.getPrototypeOf((function(){}));var p=Object.setPrototypeOf((i={get stream(){return this[h]},next:function next(){var e=this;var t=this[o];if(t!==null){return Promise.reject(t)}if(this[f]){return Promise.resolve(createIterResult(undefined,true))}if(this[h].destroyed){return new Promise((function(t,r){process.nextTick((function(){if(e[o]){r(e[o])}else{t(createIterResult(undefined,true))}}))}))}var r=this[l];var i;if(r){i=new Promise(wrapForNext(r,this))}else{var n=this[h].read();if(n!==null){return Promise.resolve(createIterResult(n,false))}i=new Promise(this[u])}this[l]=i;return i}},_defineProperty(i,Symbol.asyncIterator,(function(){return this})),_defineProperty(i,"return",(function _return(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){if(e){r(e);return}t(createIterResult(undefined,true))}))}))})),i),d);var _=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(p,(t={},_defineProperty(t,h,{value:e,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,a,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,f,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,u,{value:function value(e,t){var i=r[h].read();if(i){r[l]=null;r[s]=null;r[a]=null;e(createIterResult(i,false))}else{r[s]=e;r[a]=t}},writable:true}),t));r[l]=null;n(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[a];if(t!==null){r[l]=null;r[s]=null;r[a]=null;t(e)}r[o]=e;return}var i=r[s];if(i!==null){r[l]=null;r[s]=null;r[a]=null;i(createIterResult(undefined,true))}r[f]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=_},706:(e,t,r)=>{"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t)i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,i)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(r),true).forEach((function(t){_defineProperty(e,t,r[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function _createClass(e,t,r){if(t)_defineProperties(e.prototype,t);if(r)_defineProperties(e,r);return e}var i=r(300),n=i.Buffer;var s=r(837),a=s.inspect;var o=a&&a.custom||"inspect";function copyBuffer(e,t,r){n.prototype.copy.call(e,t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}_createClass(BufferList,[{key:"push",value:function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length}},{key:"unshift",value:function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length}},{key:"shift",value: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}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r}},{key:"concat",value:function concat(e){if(this.length===0)return n.alloc(0);var t=n.allocUnsafe(e>>>0);var r=this.head;var i=0;while(r){copyBuffer(r.data,t,i);i+=r.data.length;r=r.next}return t}},{key:"consume",value:function consume(e,t){var r;if(e<this.head.data.length){r=this.head.data.slice(0,e);this.head.data=this.head.data.slice(e)}else if(e===this.head.data.length){r=this.shift()}else{r=t?this._getString(e):this._getBuffer(e)}return r}},{key:"first",value:function first(){return this.head.data}},{key:"_getString",value:function _getString(e){var t=this.head;var r=1;var i=t.data;e-=i.length;while(t=t.next){var n=t.data;var s=e>n.length?n.length:e;if(s===n.length)i+=n;else i+=n.slice(0,e);e-=s;if(e===0){if(s===n.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=n.slice(s)}break}++r}this.length-=r;return i}},{key:"_getBuffer",value:function _getBuffer(e){var t=n.allocUnsafe(e);var r=this.head;var i=1;r.data.copy(t);e-=r.data.length;while(r=r.next){var s=r.data;var a=e>s.length?s.length:e;s.copy(t,t.length-e,0,a);e-=a;if(e===0){if(a===s.length){++i;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(a)}break}++i}this.length-=i;return t}},{key:o,value:function value(e,t){return a(this,_objectSpread({},t,{depth:0,customInspect:false}))}}]);return BufferList}()},97:e=>{"use strict";function destroy(e,t){var r=this;var i=this._readableState&&this._readableState.destroyed;var n=this._writableState&&this._writableState.destroyed;if(i||n){if(t){t(e)}else if(e){if(!this._writableState){process.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.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(!t&&e){if(!r._writableState){process.nextTick(emitErrorAndCloseNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,r,e)}else{process.nextTick(emitCloseNT,r)}}else if(t){process.nextTick(emitCloseNT,r);t(e)}else{process.nextTick(emitCloseNT,r)}}));return this}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t);emitCloseNT(e)}function emitCloseNT(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}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.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var r=e._readableState;var i=e._writableState;if(r&&r.autoDestroy||i&&i.autoDestroy)e.destroy(t);else e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},641:(e,t,r)=>{"use strict";var i=r(959).q.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=false;return function(){if(t)return;t=true;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++){i[n]=arguments[n]}e.apply(this,i)}}function noop(){}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function eos(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=once(r||noop);var n=t.readable||t.readable!==false&&e.readable;var s=t.writable||t.writable!==false&&e.writable;var a=function onlegacyfinish(){if(!e.writable)f()};var o=e._writableState&&e._writableState.finished;var f=function onfinish(){s=false;o=true;if(!n)r.call(e)};var l=e._readableState&&e._readableState.endEmitted;var u=function onend(){n=false;l=true;if(!s)r.call(e)};var h=function onerror(t){r.call(e,t)};var d=function onclose(){var t;if(n&&!l){if(!e._readableState||!e._readableState.ended)t=new i;return r.call(e,t)}if(s&&!o){if(!e._writableState||!e._writableState.ended)t=new i;return r.call(e,t)}};var p=function onrequest(){e.req.on("finish",f)};if(isRequest(e)){e.on("complete",f);e.on("abort",d);if(e.req)p();else e.on("request",p)}else if(s&&!e._writableState){e.on("end",a);e.on("close",a)}e.on("end",u);e.on("finish",f);if(t.error!==false)e.on("error",h);e.on("close",d);return function(){e.removeListener("complete",f);e.removeListener("abort",d);e.removeListener("request",p);if(e.req)e.req.removeListener("finish",f);e.removeListener("end",a);e.removeListener("close",a);e.removeListener("finish",f);e.removeListener("end",u);e.removeListener("error",h);e.removeListener("close",d)}}e.exports=eos},668:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,i,n,s,a){try{var o=e[s](a);var f=o.value}catch(e){r(e);return}if(o.done){t(f)}else{Promise.resolve(f).then(i,n)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(i,n){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,i,n,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,i,n,_next,_throw,"throw",e)}_next(undefined)}))}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t)i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,i)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(r),true).forEach((function(t){_defineProperty(e,t,r[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var i=r(959).q.ERR_INVALID_ARG_TYPE;function from(e,t,r){var n;if(t&&typeof t.next==="function"){n=t}else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new i("iterable",["Iterable"],t);var s=new e(_objectSpread({objectMode:true},r));var a=false;s._read=function(){if(!a){a=true;next()}};function next(){return _next2.apply(this,arguments)}function _next2(){_next2=_asyncToGenerator((function*(){try{var e=yield n.next(),t=e.value,r=e.done;if(r){s.push(null)}else if(s.push(yield t)){next()}else{a=false}}catch(e){s.destroy(e)}}));return _next2.apply(this,arguments)}return s}e.exports=from},899:(e,t,r)=>{"use strict";var i;function once(e){var t=false;return function(){if(t)return;t=true;e.apply(void 0,arguments)}}var n=r(959).q,s=n.ERR_MISSING_ARGS,a=n.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,t,n,s){s=once(s);var o=false;e.on("close",(function(){o=true}));if(i===undefined)i=r(641);i(e,{readable:t,writable:n},(function(e){if(e)return s(e);o=true;s()}));var f=false;return function(t){if(o)return;if(f)return;f=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(t||new a("pipe"))}}function call(e){e()}function pipe(e,t){return e.pipe(t)}function popCallback(e){if(!e.length)return noop;if(typeof e[e.length-1]!=="function")return noop;return e.pop()}function pipeline(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}var i=popCallback(t);if(Array.isArray(t[0]))t=t[0];if(t.length<2){throw new s("streams")}var n;var a=t.map((function(e,r){var s=r<t.length-1;var o=r>0;return destroyer(e,s,o,(function(e){if(!n)n=e;if(e)a.forEach(call);if(s)return;a.forEach(call);i(n)}))}));return t.reduce(pipe)}e.exports=pipeline},841:(e,t,r)=>{"use strict";var i=r(959).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function getHighWaterMark(e,t,r,n){var s=highWaterMarkFrom(t,n,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var a=n?r:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},604:(e,t,r)=>{e.exports=r(781)},505:(e,t,r)=>{var i=r(781);if(process.env.READABLE_STREAM==="disable"&&i){e.exports=i.Readable;Object.assign(e.exports,i);e.exports.Stream=i}else{t=e.exports=r(852);t.Stream=i||t;t.Readable=t;t.Writable=r(379);t.Duplex=r(548);t.Transform=r(770);t.PassThrough=r(184);t.finished=r(641);t.pipeline=r(899)}},598:(e,t,r)=>{"use strict";const i=r(591);const n=r(580);e.exports=i((()=>{n((()=>{process.stderr.write("[?25h")}),{alwaysLast:true})}))},105:(e,t,r)=>{
|
|
2
|
-
|
|
3
|
-
var i=r(300);var n=i.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}SafeBuffer.prototype=Object.create(n.prototype);copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=n(e);if(t!==undefined){if(typeof r==="string"){i.fill(t,r)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},580:(e,t,r)=>{var i=global.process;const processOk=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!processOk(i)){e.exports=function(){return function(){}}}else{var n=r(491);var s=r(357);var a=/^win/i.test(i.platform);var o=r(361);if(typeof o!=="function"){o=o.EventEmitter}var f;if(i.__signal_exit_emitter__){f=i.__signal_exit_emitter__}else{f=i.__signal_exit_emitter__=new o;f.count=0;f.emitted={}}if(!f.infinite){f.setMaxListeners(Infinity);f.infinite=true}e.exports=function(e,t){if(!processOk(global.process)){return function(){}}n.equal(typeof e,"function","a callback must be provided for exit handler");if(d===false){p()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){f.removeListener(r,e);if(f.listeners("exit").length===0&&f.listeners("afterexit").length===0){l()}};f.on(r,e);return remove};var l=function unload(){if(!d||!processOk(global.process)){return}d=false;s.forEach((function(e){try{i.removeListener(e,h[e])}catch(e){}}));i.emit=g;i.reallyExit=_;f.count-=1};e.exports.unload=l;var u=function emit(e,t,r){if(f.emitted[e]){return}f.emitted[e]=true;f.emit(e,t,r)};var h={};s.forEach((function(e){h[e]=function listener(){if(!processOk(global.process)){return}var t=i.listeners(e);if(t.length===f.count){l();u("exit",null,e);u("afterexit",null,e);if(a&&e==="SIGHUP"){e="SIGINT"}i.kill(i.pid,e)}}}));e.exports.signals=function(){return s};var d=false;var p=function load(){if(d||!processOk(global.process)){return}d=true;f.count+=1;s=s.filter((function(e){try{i.on(e,h[e]);return true}catch(e){return false}}));i.emit=y;i.reallyExit=b};e.exports.load=p;var _=i.reallyExit;var b=function processReallyExit(e){if(!processOk(global.process)){return}i.exitCode=e||0;u("exit",i.exitCode,null);u("afterexit",i.exitCode,null);_.call(i,i.exitCode)};var g=i.emit;var y=function processEmit(e,t){if(e==="exit"&&processOk(global.process)){if(t!==undefined){i.exitCode=t}var r=g.apply(this,arguments);u("exit",i.exitCode,null);u("afterexit",i.exitCode,null);return r}else{return g.apply(this,arguments)}}}},357:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},259:(e,t,r)=>{"use strict";var i=r(105).Buffer;var n=i.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 t;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(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};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,t,r){var i=t.length-1;if(i<r)return 0;var n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-1;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0)e.lastNeed=n-2;return n}if(--i<r||n===-2)return 0;n=utf8CheckByte(t[i]);if(n>=0){if(n>0){if(n===2)n=0;else e.lastNeed=n-3}return n}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},125:(e,t,r)=>{e.exports=r(837).deprecate},70:e=>{e.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},74:(e,t,r)=>{"use strict";var i=r(906);var n=r(70);var s={nul:0,control:0};e.exports=function wcwidth(e){return wcswidth(e,s)};e.exports.config=function(e){e=i(e||{},s);return function wcwidth(t){return wcswidth(t,e)}};function wcswidth(e,t){if(typeof e!=="string")return wcwidth(e,t);var r=0;for(var i=0;i<e.length;i++){var n=wcwidth(e.charCodeAt(i),t);if(n<0)return-1;r+=n}return r}function wcwidth(e,t){if(e===0)return t.nul;if(e<32||e>=127&&e<160)return t.control;if(bisearch(e))return 0;return 1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function bisearch(e){var t=0;var r=n.length-1;var i;if(e<n[0][0]||e>n[r][1])return false;while(r>=t){i=Math.floor((t+r)/2);if(e>n[i][1])t=i+1;else if(e<n[i][0])r=i-1;else return true}return false}},234:e=>{"use strict";e.exports=require("../chalk")},286:e=>{"use strict";e.exports=require("../strip-ansi")},491:e=>{"use strict";e.exports=require("assert")},300:e=>{"use strict";e.exports=require("buffer")},361:e=>{"use strict";e.exports=require("events")},521:e=>{"use strict";e.exports=require("readline")},781:e=>{"use strict";e.exports=require("stream")},837:e=>{"use strict";e.exports=require("util")},32:e=>{"use strict";e.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}')}};var t={};function __nccwpck_require__(r){var i=t[r];if(i!==undefined){return i.exports}var n=t[r]={exports:{}};var s=true;try{e[r](n,n.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(942);module.exports=r})();
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
(()=>{
|
|
3
|
+
var e = {
|
|
4
|
+
695: (e, t, r)=>{
|
|
5
|
+
"use strict";
|
|
6
|
+
const { Buffer: i } = r(300);
|
|
7
|
+
const n = Symbol.for("BufferList");
|
|
8
|
+
function BufferList(e) {
|
|
9
|
+
if (!(this instanceof BufferList)) return new BufferList(e);
|
|
10
|
+
BufferList._init.call(this, e);
|
|
11
|
+
}
|
|
12
|
+
BufferList._init = function(e) {
|
|
13
|
+
Object.defineProperty(this, n, {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
this._bufs = [];
|
|
17
|
+
this.length = 0;
|
|
18
|
+
if (e) this.append(e);
|
|
19
|
+
};
|
|
20
|
+
BufferList.prototype._new = function(e) {
|
|
21
|
+
return new BufferList(e);
|
|
22
|
+
};
|
|
23
|
+
BufferList.prototype._offset = function(e) {
|
|
24
|
+
if (0 === e) return [
|
|
25
|
+
0,
|
|
26
|
+
0
|
|
27
|
+
];
|
|
28
|
+
let t = 0;
|
|
29
|
+
for(let r = 0; r < this._bufs.length; r++){
|
|
30
|
+
const i = t + this._bufs[r].length;
|
|
31
|
+
if (e < i || r === this._bufs.length - 1) return [
|
|
32
|
+
r,
|
|
33
|
+
e - t
|
|
34
|
+
];
|
|
35
|
+
t = i;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
BufferList.prototype._reverseOffset = function(e) {
|
|
39
|
+
const t = e[0];
|
|
40
|
+
let r = e[1];
|
|
41
|
+
for(let e = 0; e < t; e++)r += this._bufs[e].length;
|
|
42
|
+
return r;
|
|
43
|
+
};
|
|
44
|
+
BufferList.prototype.get = function(e) {
|
|
45
|
+
if (e > this.length || e < 0) return;
|
|
46
|
+
const t = this._offset(e);
|
|
47
|
+
return this._bufs[t[0]][t[1]];
|
|
48
|
+
};
|
|
49
|
+
BufferList.prototype.slice = function(e, t) {
|
|
50
|
+
if ("number" == typeof e && e < 0) e += this.length;
|
|
51
|
+
if ("number" == typeof t && t < 0) t += this.length;
|
|
52
|
+
return this.copy(null, 0, e, t);
|
|
53
|
+
};
|
|
54
|
+
BufferList.prototype.copy = function(e, t, r, n) {
|
|
55
|
+
if ("number" != typeof r || r < 0) r = 0;
|
|
56
|
+
if ("number" != typeof n || n > this.length) n = this.length;
|
|
57
|
+
if (r >= this.length) return e || i.alloc(0);
|
|
58
|
+
if (n <= 0) return e || i.alloc(0);
|
|
59
|
+
const copy = !!e;
|
|
60
|
+
const s = this._offset(r);
|
|
61
|
+
const a = n - r;
|
|
62
|
+
let o = a;
|
|
63
|
+
let f = copy && t || 0;
|
|
64
|
+
let l = s[1];
|
|
65
|
+
if (0 === r && n === this.length) {
|
|
66
|
+
if (!copy) return 1 === this._bufs.length ? this._bufs[0] : i.concat(this._bufs, this.length);
|
|
67
|
+
for(let t = 0; t < this._bufs.length; t++){
|
|
68
|
+
this._bufs[t].copy(e, f);
|
|
69
|
+
f += this._bufs[t].length;
|
|
70
|
+
}
|
|
71
|
+
return e;
|
|
72
|
+
}
|
|
73
|
+
if (o <= this._bufs[s[0]].length - l) return copy ? this._bufs[s[0]].copy(e, t, l, l + o) : this._bufs[s[0]].slice(l, l + o);
|
|
74
|
+
if (!copy) e = i.allocUnsafe(a);
|
|
75
|
+
for(let t = s[0]; t < this._bufs.length; t++){
|
|
76
|
+
const r = this._bufs[t].length - l;
|
|
77
|
+
if (o > r) {
|
|
78
|
+
this._bufs[t].copy(e, f, l);
|
|
79
|
+
f += r;
|
|
80
|
+
} else {
|
|
81
|
+
this._bufs[t].copy(e, f, l, l + o);
|
|
82
|
+
f += r;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
o -= r;
|
|
86
|
+
if (l) l = 0;
|
|
87
|
+
}
|
|
88
|
+
if (e.length > f) return e.slice(0, f);
|
|
89
|
+
return e;
|
|
90
|
+
};
|
|
91
|
+
BufferList.prototype.shallowSlice = function(e, t) {
|
|
92
|
+
e = e || 0;
|
|
93
|
+
t = "number" != typeof t ? this.length : t;
|
|
94
|
+
if (e < 0) e += this.length;
|
|
95
|
+
if (t < 0) t += this.length;
|
|
96
|
+
if (e === t) return this._new();
|
|
97
|
+
const r = this._offset(e);
|
|
98
|
+
const i = this._offset(t);
|
|
99
|
+
const n = this._bufs.slice(r[0], i[0] + 1);
|
|
100
|
+
if (0 === i[1]) n.pop();
|
|
101
|
+
else n[n.length - 1] = n[n.length - 1].slice(0, i[1]);
|
|
102
|
+
if (0 !== r[1]) n[0] = n[0].slice(r[1]);
|
|
103
|
+
return this._new(n);
|
|
104
|
+
};
|
|
105
|
+
BufferList.prototype.toString = function(e, t, r) {
|
|
106
|
+
return this.slice(t, r).toString(e);
|
|
107
|
+
};
|
|
108
|
+
BufferList.prototype.consume = function(e) {
|
|
109
|
+
e = Math.trunc(e);
|
|
110
|
+
if (Number.isNaN(e) || e <= 0) return this;
|
|
111
|
+
while(this._bufs.length)if (e >= this._bufs[0].length) {
|
|
112
|
+
e -= this._bufs[0].length;
|
|
113
|
+
this.length -= this._bufs[0].length;
|
|
114
|
+
this._bufs.shift();
|
|
115
|
+
} else {
|
|
116
|
+
this._bufs[0] = this._bufs[0].slice(e);
|
|
117
|
+
this.length -= e;
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
return this;
|
|
121
|
+
};
|
|
122
|
+
BufferList.prototype.duplicate = function() {
|
|
123
|
+
const e = this._new();
|
|
124
|
+
for(let t = 0; t < this._bufs.length; t++)e.append(this._bufs[t]);
|
|
125
|
+
return e;
|
|
126
|
+
};
|
|
127
|
+
BufferList.prototype.append = function(e) {
|
|
128
|
+
if (null == e) return this;
|
|
129
|
+
if (e.buffer) this._appendBuffer(i.from(e.buffer, e.byteOffset, e.byteLength));
|
|
130
|
+
else if (Array.isArray(e)) for(let t = 0; t < e.length; t++)this.append(e[t]);
|
|
131
|
+
else if (this._isBufferList(e)) for(let t = 0; t < e._bufs.length; t++)this.append(e._bufs[t]);
|
|
132
|
+
else {
|
|
133
|
+
if ("number" == typeof e) e = e.toString();
|
|
134
|
+
this._appendBuffer(i.from(e));
|
|
135
|
+
}
|
|
136
|
+
return this;
|
|
137
|
+
};
|
|
138
|
+
BufferList.prototype._appendBuffer = function(e) {
|
|
139
|
+
this._bufs.push(e);
|
|
140
|
+
this.length += e.length;
|
|
141
|
+
};
|
|
142
|
+
BufferList.prototype.indexOf = function(e, t, r) {
|
|
143
|
+
if (void 0 === r && "string" == typeof t) {
|
|
144
|
+
r = t;
|
|
145
|
+
t = void 0;
|
|
146
|
+
}
|
|
147
|
+
if ("function" == typeof e || Array.isArray(e)) throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');
|
|
148
|
+
if ("number" == typeof e) e = i.from([
|
|
149
|
+
e
|
|
150
|
+
]);
|
|
151
|
+
else if ("string" == typeof e) e = i.from(e, r);
|
|
152
|
+
else if (this._isBufferList(e)) e = e.slice();
|
|
153
|
+
else if (Array.isArray(e.buffer)) e = i.from(e.buffer, e.byteOffset, e.byteLength);
|
|
154
|
+
else if (!i.isBuffer(e)) e = i.from(e);
|
|
155
|
+
t = Number(t || 0);
|
|
156
|
+
if (isNaN(t)) t = 0;
|
|
157
|
+
if (t < 0) t = this.length + t;
|
|
158
|
+
if (t < 0) t = 0;
|
|
159
|
+
if (0 === e.length) return t > this.length ? this.length : t;
|
|
160
|
+
const n = this._offset(t);
|
|
161
|
+
let s = n[0];
|
|
162
|
+
let a = n[1];
|
|
163
|
+
for(; s < this._bufs.length; s++){
|
|
164
|
+
const t = this._bufs[s];
|
|
165
|
+
while(a < t.length){
|
|
166
|
+
const r = t.length - a;
|
|
167
|
+
if (r >= e.length) {
|
|
168
|
+
const r = t.indexOf(e, a);
|
|
169
|
+
if (-1 !== r) return this._reverseOffset([
|
|
170
|
+
s,
|
|
171
|
+
r
|
|
172
|
+
]);
|
|
173
|
+
a = t.length - e.length + 1;
|
|
174
|
+
} else {
|
|
175
|
+
const t = this._reverseOffset([
|
|
176
|
+
s,
|
|
177
|
+
a
|
|
178
|
+
]);
|
|
179
|
+
if (this._match(t, e)) return t;
|
|
180
|
+
a++;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
a = 0;
|
|
184
|
+
}
|
|
185
|
+
return -1;
|
|
186
|
+
};
|
|
187
|
+
BufferList.prototype._match = function(e, t) {
|
|
188
|
+
if (this.length - e < t.length) return false;
|
|
189
|
+
for(let r = 0; r < t.length; r++)if (this.get(e + r) !== t[r]) return false;
|
|
190
|
+
return true;
|
|
191
|
+
};
|
|
192
|
+
(function() {
|
|
193
|
+
const e = {
|
|
194
|
+
readDoubleBE: 8,
|
|
195
|
+
readDoubleLE: 8,
|
|
196
|
+
readFloatBE: 4,
|
|
197
|
+
readFloatLE: 4,
|
|
198
|
+
readInt32BE: 4,
|
|
199
|
+
readInt32LE: 4,
|
|
200
|
+
readUInt32BE: 4,
|
|
201
|
+
readUInt32LE: 4,
|
|
202
|
+
readInt16BE: 2,
|
|
203
|
+
readInt16LE: 2,
|
|
204
|
+
readUInt16BE: 2,
|
|
205
|
+
readUInt16LE: 2,
|
|
206
|
+
readInt8: 1,
|
|
207
|
+
readUInt8: 1,
|
|
208
|
+
readIntBE: null,
|
|
209
|
+
readIntLE: null,
|
|
210
|
+
readUIntBE: null,
|
|
211
|
+
readUIntLE: null
|
|
212
|
+
};
|
|
213
|
+
for(const t in e)(function(t) {
|
|
214
|
+
if (null === e[t]) BufferList.prototype[t] = function(e, r) {
|
|
215
|
+
return this.slice(e, e + r)[t](0, r);
|
|
216
|
+
};
|
|
217
|
+
else BufferList.prototype[t] = function(r = 0) {
|
|
218
|
+
return this.slice(r, r + e[t])[t](0);
|
|
219
|
+
};
|
|
220
|
+
})(t);
|
|
221
|
+
})();
|
|
222
|
+
BufferList.prototype._isBufferList = function(e) {
|
|
223
|
+
return e instanceof BufferList || BufferList.isBufferList(e);
|
|
224
|
+
};
|
|
225
|
+
BufferList.isBufferList = function(e) {
|
|
226
|
+
return null != e && e[n];
|
|
227
|
+
};
|
|
228
|
+
e.exports = BufferList;
|
|
229
|
+
},
|
|
230
|
+
49: (e, t, r)=>{
|
|
231
|
+
"use strict";
|
|
232
|
+
const i = r(505).Duplex;
|
|
233
|
+
const n = r(315);
|
|
234
|
+
const s = r(695);
|
|
235
|
+
function BufferListStream(e) {
|
|
236
|
+
if (!(this instanceof BufferListStream)) return new BufferListStream(e);
|
|
237
|
+
if ("function" == typeof e) {
|
|
238
|
+
this._callback = e;
|
|
239
|
+
const t = (function(e) {
|
|
240
|
+
if (this._callback) {
|
|
241
|
+
this._callback(e);
|
|
242
|
+
this._callback = null;
|
|
243
|
+
}
|
|
244
|
+
}).bind(this);
|
|
245
|
+
this.on("pipe", function(e) {
|
|
246
|
+
e.on("error", t);
|
|
247
|
+
});
|
|
248
|
+
this.on("unpipe", function(e) {
|
|
249
|
+
e.removeListener("error", t);
|
|
250
|
+
});
|
|
251
|
+
e = null;
|
|
252
|
+
}
|
|
253
|
+
s._init.call(this, e);
|
|
254
|
+
i.call(this);
|
|
255
|
+
}
|
|
256
|
+
n(BufferListStream, i);
|
|
257
|
+
Object.assign(BufferListStream.prototype, s.prototype);
|
|
258
|
+
BufferListStream.prototype._new = function(e) {
|
|
259
|
+
return new BufferListStream(e);
|
|
260
|
+
};
|
|
261
|
+
BufferListStream.prototype._write = function(e, t, r) {
|
|
262
|
+
this._appendBuffer(e);
|
|
263
|
+
if ("function" == typeof r) r();
|
|
264
|
+
};
|
|
265
|
+
BufferListStream.prototype._read = function(e) {
|
|
266
|
+
if (!this.length) return this.push(null);
|
|
267
|
+
e = Math.min(e, this.length);
|
|
268
|
+
this.push(this.slice(0, e));
|
|
269
|
+
this.consume(e);
|
|
270
|
+
};
|
|
271
|
+
BufferListStream.prototype.end = function(e) {
|
|
272
|
+
i.prototype.end.call(this, e);
|
|
273
|
+
if (this._callback) {
|
|
274
|
+
this._callback(null, this.slice());
|
|
275
|
+
this._callback = null;
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
BufferListStream.prototype._destroy = function(e, t) {
|
|
279
|
+
this._bufs.length = 0;
|
|
280
|
+
this.length = 0;
|
|
281
|
+
t(e);
|
|
282
|
+
};
|
|
283
|
+
BufferListStream.prototype._isBufferList = function(e) {
|
|
284
|
+
return e instanceof BufferListStream || e instanceof s || BufferListStream.isBufferList(e);
|
|
285
|
+
};
|
|
286
|
+
BufferListStream.isBufferList = s.isBufferList;
|
|
287
|
+
e.exports = BufferListStream;
|
|
288
|
+
e.exports.BufferListStream = BufferListStream;
|
|
289
|
+
e.exports.BufferList = s;
|
|
290
|
+
},
|
|
291
|
+
805: (e, t, r)=>{
|
|
292
|
+
"use strict";
|
|
293
|
+
const i = r(598);
|
|
294
|
+
let n = false;
|
|
295
|
+
t.show = (e = process.stderr)=>{
|
|
296
|
+
if (!e.isTTY) return;
|
|
297
|
+
n = false;
|
|
298
|
+
e.write("[?25h");
|
|
299
|
+
};
|
|
300
|
+
t.hide = (e = process.stderr)=>{
|
|
301
|
+
if (!e.isTTY) return;
|
|
302
|
+
i();
|
|
303
|
+
n = true;
|
|
304
|
+
e.write("[?25l");
|
|
305
|
+
};
|
|
306
|
+
t.toggle = (e, r)=>{
|
|
307
|
+
if (void 0 !== e) n = e;
|
|
308
|
+
if (n) t.show(r);
|
|
309
|
+
else t.hide(r);
|
|
310
|
+
};
|
|
311
|
+
},
|
|
312
|
+
414: (e, t, r)=>{
|
|
313
|
+
"use strict";
|
|
314
|
+
const i = Object.assign({}, r(32));
|
|
315
|
+
const n = Object.keys(i);
|
|
316
|
+
Object.defineProperty(i, "random", {
|
|
317
|
+
get () {
|
|
318
|
+
const e = Math.floor(Math.random() * n.length);
|
|
319
|
+
const t = n[e];
|
|
320
|
+
return i[t];
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
e.exports = i;
|
|
324
|
+
},
|
|
325
|
+
332: (e)=>{
|
|
326
|
+
var t = function() {
|
|
327
|
+
"use strict";
|
|
328
|
+
function clone(e, t, r, i) {
|
|
329
|
+
if ("object" == typeof t) {
|
|
330
|
+
r = t.depth;
|
|
331
|
+
i = t.prototype;
|
|
332
|
+
t.filter;
|
|
333
|
+
t = t.circular;
|
|
334
|
+
}
|
|
335
|
+
var s = [];
|
|
336
|
+
var a = [];
|
|
337
|
+
var o = "u" > typeof Buffer;
|
|
338
|
+
if (void 0 === t) t = true;
|
|
339
|
+
if (void 0 === r) r = 1 / 0;
|
|
340
|
+
function _clone(e, r) {
|
|
341
|
+
if (null === e) return null;
|
|
342
|
+
if (0 == r) return e;
|
|
343
|
+
var n;
|
|
344
|
+
var f;
|
|
345
|
+
if ("object" != typeof e) return e;
|
|
346
|
+
if (clone.__isArray(e)) n = [];
|
|
347
|
+
else if (clone.__isRegExp(e)) {
|
|
348
|
+
n = new RegExp(e.source, __getRegExpFlags(e));
|
|
349
|
+
if (e.lastIndex) n.lastIndex = e.lastIndex;
|
|
350
|
+
} else if (clone.__isDate(e)) n = new Date(e.getTime());
|
|
351
|
+
else if (o && Buffer.isBuffer(e)) {
|
|
352
|
+
n = Buffer.allocUnsafe ? Buffer.allocUnsafe(e.length) : new Buffer(e.length);
|
|
353
|
+
e.copy(n);
|
|
354
|
+
return n;
|
|
355
|
+
} else if (void 0 === i) {
|
|
356
|
+
f = Object.getPrototypeOf(e);
|
|
357
|
+
n = Object.create(f);
|
|
358
|
+
} else {
|
|
359
|
+
n = Object.create(i);
|
|
360
|
+
f = i;
|
|
361
|
+
}
|
|
362
|
+
if (t) {
|
|
363
|
+
var l = s.indexOf(e);
|
|
364
|
+
if (-1 != l) return a[l];
|
|
365
|
+
s.push(e);
|
|
366
|
+
a.push(n);
|
|
367
|
+
}
|
|
368
|
+
for(var u in e){
|
|
369
|
+
var h;
|
|
370
|
+
if (f) h = Object.getOwnPropertyDescriptor(f, u);
|
|
371
|
+
if (!h || null != h.set) n[u] = _clone(e[u], r - 1);
|
|
372
|
+
}
|
|
373
|
+
return n;
|
|
374
|
+
}
|
|
375
|
+
return _clone(e, r);
|
|
376
|
+
}
|
|
377
|
+
clone.clonePrototype = function(e) {
|
|
378
|
+
if (null === e) return null;
|
|
379
|
+
var c = function() {};
|
|
380
|
+
c.prototype = e;
|
|
381
|
+
return new c;
|
|
382
|
+
};
|
|
383
|
+
function __objToStr(e) {
|
|
384
|
+
return Object.prototype.toString.call(e);
|
|
385
|
+
}
|
|
386
|
+
clone.__objToStr = __objToStr;
|
|
387
|
+
function __isDate(e) {
|
|
388
|
+
return "object" == typeof e && "[object Date]" === __objToStr(e);
|
|
389
|
+
}
|
|
390
|
+
clone.__isDate = __isDate;
|
|
391
|
+
function __isArray(e) {
|
|
392
|
+
return "object" == typeof e && "[object Array]" === __objToStr(e);
|
|
393
|
+
}
|
|
394
|
+
clone.__isArray = __isArray;
|
|
395
|
+
function __isRegExp(e) {
|
|
396
|
+
return "object" == typeof e && "[object RegExp]" === __objToStr(e);
|
|
397
|
+
}
|
|
398
|
+
clone.__isRegExp = __isRegExp;
|
|
399
|
+
function __getRegExpFlags(e) {
|
|
400
|
+
var t = "";
|
|
401
|
+
if (e.global) t += "g";
|
|
402
|
+
if (e.ignoreCase) t += "i";
|
|
403
|
+
if (e.multiline) t += "m";
|
|
404
|
+
return t;
|
|
405
|
+
}
|
|
406
|
+
clone.__getRegExpFlags = __getRegExpFlags;
|
|
407
|
+
return clone;
|
|
408
|
+
}();
|
|
409
|
+
if (e.exports) e.exports = t;
|
|
410
|
+
},
|
|
411
|
+
906: (e, t, r)=>{
|
|
412
|
+
var i = r(332);
|
|
413
|
+
e.exports = function(e, t) {
|
|
414
|
+
e = e || {};
|
|
415
|
+
Object.keys(t).forEach(function(r) {
|
|
416
|
+
if (void 0 === e[r]) e[r] = i(t[r]);
|
|
417
|
+
});
|
|
418
|
+
return e;
|
|
419
|
+
};
|
|
420
|
+
},
|
|
421
|
+
315: (e, t, r)=>{
|
|
422
|
+
try {
|
|
423
|
+
var i = r(837);
|
|
424
|
+
if ("function" != typeof i.inherits) throw "";
|
|
425
|
+
e.exports = i.inherits;
|
|
426
|
+
} catch (t) {
|
|
427
|
+
e.exports = r(494);
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
494: (e)=>{
|
|
431
|
+
if ("function" == typeof Object.create) e.exports = function(e, t) {
|
|
432
|
+
if (t) {
|
|
433
|
+
e.super_ = t;
|
|
434
|
+
e.prototype = Object.create(t.prototype, {
|
|
435
|
+
constructor: {
|
|
436
|
+
value: e,
|
|
437
|
+
enumerable: false,
|
|
438
|
+
writable: true,
|
|
439
|
+
configurable: true
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
else e.exports = function(e, t) {
|
|
445
|
+
if (t) {
|
|
446
|
+
e.super_ = t;
|
|
447
|
+
var TempCtor = function() {};
|
|
448
|
+
TempCtor.prototype = t.prototype;
|
|
449
|
+
e.prototype = new TempCtor;
|
|
450
|
+
e.prototype.constructor = e;
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
},
|
|
454
|
+
520: (e)=>{
|
|
455
|
+
"use strict";
|
|
456
|
+
e.exports = ({ stream: e = process.stdout } = {})=>Boolean(e && e.isTTY && "dumb" !== process.env.TERM && !("CI" in process.env));
|
|
457
|
+
},
|
|
458
|
+
457: (e)=>{
|
|
459
|
+
"use strict";
|
|
460
|
+
e.exports = ()=>{
|
|
461
|
+
if ("win32" !== process.platform) return true;
|
|
462
|
+
return Boolean(process.env.CI) || Boolean(process.env.WT_SESSION) || "vscode" === process.env.TERM_PROGRAM || "xterm-256color" === process.env.TERM || "alacritty" === process.env.TERM;
|
|
463
|
+
};
|
|
464
|
+
},
|
|
465
|
+
59: (e, t, r)=>{
|
|
466
|
+
"use strict";
|
|
467
|
+
const i = r(234);
|
|
468
|
+
const n = r(457);
|
|
469
|
+
const s = {
|
|
470
|
+
info: i.blue("ℹ"),
|
|
471
|
+
success: i.green("✔"),
|
|
472
|
+
warning: i.yellow("⚠"),
|
|
473
|
+
error: i.red("✖")
|
|
474
|
+
};
|
|
475
|
+
const a = {
|
|
476
|
+
info: i.blue("i"),
|
|
477
|
+
success: i.green("√"),
|
|
478
|
+
warning: i.yellow("‼"),
|
|
479
|
+
error: i.red("×")
|
|
480
|
+
};
|
|
481
|
+
e.exports = n() ? s : a;
|
|
482
|
+
},
|
|
483
|
+
693: (e)=>{
|
|
484
|
+
"use strict";
|
|
485
|
+
const mimicFn = (e, t)=>{
|
|
486
|
+
for (const r of Reflect.ownKeys(t))Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
487
|
+
return e;
|
|
488
|
+
};
|
|
489
|
+
e.exports = mimicFn;
|
|
490
|
+
e.exports["default"] = mimicFn;
|
|
491
|
+
},
|
|
492
|
+
591: (e, t, r)=>{
|
|
493
|
+
"use strict";
|
|
494
|
+
const i = r(693);
|
|
495
|
+
const n = new WeakMap;
|
|
496
|
+
const onetime = (e, t = {})=>{
|
|
497
|
+
if ("function" != typeof e) throw new TypeError("Expected a function");
|
|
498
|
+
let r;
|
|
499
|
+
let s = 0;
|
|
500
|
+
const a = e.displayName || e.name || "<anonymous>";
|
|
501
|
+
const onetime = function(...i) {
|
|
502
|
+
n.set(onetime, ++s);
|
|
503
|
+
if (1 === s) {
|
|
504
|
+
r = e.apply(this, i);
|
|
505
|
+
e = null;
|
|
506
|
+
} else if (true === t.throw) throw new Error(`Function \`${a}\` can only be called once`);
|
|
507
|
+
return r;
|
|
508
|
+
};
|
|
509
|
+
i(onetime, e);
|
|
510
|
+
n.set(onetime, s);
|
|
511
|
+
return onetime;
|
|
512
|
+
};
|
|
513
|
+
e.exports = onetime;
|
|
514
|
+
e.exports["default"] = onetime;
|
|
515
|
+
e.exports.callCount = (e)=>{
|
|
516
|
+
if (!n.has(e)) throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);
|
|
517
|
+
return n.get(e);
|
|
518
|
+
};
|
|
519
|
+
},
|
|
520
|
+
942: (e, t, r)=>{
|
|
521
|
+
"use strict";
|
|
522
|
+
const i = r(521);
|
|
523
|
+
const n = r(234);
|
|
524
|
+
const s = r(805);
|
|
525
|
+
const a = r(414);
|
|
526
|
+
const o = r(59);
|
|
527
|
+
const f = r(286);
|
|
528
|
+
const l = r(74);
|
|
529
|
+
const u = r(520);
|
|
530
|
+
const h = r(457);
|
|
531
|
+
const { BufferListStream: d } = r(49);
|
|
532
|
+
const p = Symbol("text");
|
|
533
|
+
const _ = Symbol("prefixText");
|
|
534
|
+
const b = 3;
|
|
535
|
+
class StdinDiscarder {
|
|
536
|
+
constructor(){
|
|
537
|
+
this.requests = 0;
|
|
538
|
+
this.mutedStream = new d;
|
|
539
|
+
this.mutedStream.pipe(process.stdout);
|
|
540
|
+
const e = this;
|
|
541
|
+
this.ourEmit = function(t, r, ...i) {
|
|
542
|
+
const { stdin: n } = process;
|
|
543
|
+
if (e.requests > 0 || n.emit === e.ourEmit) {
|
|
544
|
+
if ("keypress" === t) return;
|
|
545
|
+
if ("data" === t && r.includes(b)) process.emit("SIGINT");
|
|
546
|
+
Reflect.apply(e.oldEmit, this, [
|
|
547
|
+
t,
|
|
548
|
+
r,
|
|
549
|
+
...i
|
|
550
|
+
]);
|
|
551
|
+
} else Reflect.apply(process.stdin.emit, this, [
|
|
552
|
+
t,
|
|
553
|
+
r,
|
|
554
|
+
...i
|
|
555
|
+
]);
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
start() {
|
|
559
|
+
this.requests++;
|
|
560
|
+
if (1 === this.requests) this.realStart();
|
|
561
|
+
}
|
|
562
|
+
stop() {
|
|
563
|
+
if (this.requests <= 0) throw new Error("`stop` called more times than `start`");
|
|
564
|
+
this.requests--;
|
|
565
|
+
if (0 === this.requests) this.realStop();
|
|
566
|
+
}
|
|
567
|
+
realStart() {
|
|
568
|
+
if ("win32" === process.platform) return;
|
|
569
|
+
this.rl = i.createInterface({
|
|
570
|
+
input: process.stdin,
|
|
571
|
+
output: this.mutedStream
|
|
572
|
+
});
|
|
573
|
+
this.rl.on("SIGINT", ()=>{
|
|
574
|
+
if (0 === process.listenerCount("SIGINT")) process.emit("SIGINT");
|
|
575
|
+
else {
|
|
576
|
+
this.rl.close();
|
|
577
|
+
process.kill(process.pid, "SIGINT");
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
realStop() {
|
|
582
|
+
if ("win32" === process.platform) return;
|
|
583
|
+
this.rl.close();
|
|
584
|
+
this.rl = void 0;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
let g;
|
|
588
|
+
class Ora {
|
|
589
|
+
constructor(e){
|
|
590
|
+
if (!g) g = new StdinDiscarder;
|
|
591
|
+
if ("string" == typeof e) e = {
|
|
592
|
+
text: e
|
|
593
|
+
};
|
|
594
|
+
this.options = {
|
|
595
|
+
text: "",
|
|
596
|
+
color: "cyan",
|
|
597
|
+
stream: process.stderr,
|
|
598
|
+
discardStdin: true,
|
|
599
|
+
...e
|
|
600
|
+
};
|
|
601
|
+
this.spinner = this.options.spinner;
|
|
602
|
+
this.color = this.options.color;
|
|
603
|
+
this.hideCursor = false !== this.options.hideCursor;
|
|
604
|
+
this.interval = this.options.interval || this.spinner.interval || 100;
|
|
605
|
+
this.stream = this.options.stream;
|
|
606
|
+
this.id = void 0;
|
|
607
|
+
this.isEnabled = "boolean" == typeof this.options.isEnabled ? this.options.isEnabled : u({
|
|
608
|
+
stream: this.stream
|
|
609
|
+
});
|
|
610
|
+
this.isSilent = "boolean" == typeof this.options.isSilent ? this.options.isSilent : false;
|
|
611
|
+
this.text = this.options.text;
|
|
612
|
+
this.prefixText = this.options.prefixText;
|
|
613
|
+
this.linesToClear = 0;
|
|
614
|
+
this.indent = this.options.indent;
|
|
615
|
+
this.discardStdin = this.options.discardStdin;
|
|
616
|
+
this.isDiscardingStdin = false;
|
|
617
|
+
}
|
|
618
|
+
get indent() {
|
|
619
|
+
return this._indent;
|
|
620
|
+
}
|
|
621
|
+
set indent(e = 0) {
|
|
622
|
+
if (!(e >= 0 && Number.isInteger(e))) throw new Error("The `indent` option must be an integer from 0 and up");
|
|
623
|
+
this._indent = e;
|
|
624
|
+
}
|
|
625
|
+
_updateInterval(e) {
|
|
626
|
+
if (void 0 !== e) this.interval = e;
|
|
627
|
+
}
|
|
628
|
+
get spinner() {
|
|
629
|
+
return this._spinner;
|
|
630
|
+
}
|
|
631
|
+
set spinner(e) {
|
|
632
|
+
this.frameIndex = 0;
|
|
633
|
+
if ("object" == typeof e) {
|
|
634
|
+
if (void 0 === e.frames) throw new Error("The given spinner must have a `frames` property");
|
|
635
|
+
this._spinner = e;
|
|
636
|
+
} else if (h()) if (void 0 === e) this._spinner = a.dots;
|
|
637
|
+
else if ("default" !== e && a[e]) this._spinner = a[e];
|
|
638
|
+
else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);
|
|
639
|
+
else this._spinner = a.line;
|
|
640
|
+
this._updateInterval(this._spinner.interval);
|
|
641
|
+
}
|
|
642
|
+
get text() {
|
|
643
|
+
return this[p];
|
|
644
|
+
}
|
|
645
|
+
set text(e) {
|
|
646
|
+
this[p] = e;
|
|
647
|
+
this.updateLineCount();
|
|
648
|
+
}
|
|
649
|
+
get prefixText() {
|
|
650
|
+
return this[_];
|
|
651
|
+
}
|
|
652
|
+
set prefixText(e) {
|
|
653
|
+
this[_] = e;
|
|
654
|
+
this.updateLineCount();
|
|
655
|
+
}
|
|
656
|
+
get isSpinning() {
|
|
657
|
+
return void 0 !== this.id;
|
|
658
|
+
}
|
|
659
|
+
getFullPrefixText(e = this[_], t = " ") {
|
|
660
|
+
if ("string" == typeof e) return e + t;
|
|
661
|
+
if ("function" == typeof e) return e() + t;
|
|
662
|
+
return "";
|
|
663
|
+
}
|
|
664
|
+
updateLineCount() {
|
|
665
|
+
const e = this.stream.columns || 80;
|
|
666
|
+
const t = this.getFullPrefixText(this.prefixText, "-");
|
|
667
|
+
this.lineCount = 0;
|
|
668
|
+
for (const r of f(t + "--" + this[p]).split("\n"))this.lineCount += Math.max(1, Math.ceil(l(r) / e));
|
|
669
|
+
}
|
|
670
|
+
get isEnabled() {
|
|
671
|
+
return this._isEnabled && !this.isSilent;
|
|
672
|
+
}
|
|
673
|
+
set isEnabled(e) {
|
|
674
|
+
if ("boolean" != typeof e) throw new TypeError("The `isEnabled` option must be a boolean");
|
|
675
|
+
this._isEnabled = e;
|
|
676
|
+
}
|
|
677
|
+
get isSilent() {
|
|
678
|
+
return this._isSilent;
|
|
679
|
+
}
|
|
680
|
+
set isSilent(e) {
|
|
681
|
+
if ("boolean" != typeof e) throw new TypeError("The `isSilent` option must be a boolean");
|
|
682
|
+
this._isSilent = e;
|
|
683
|
+
}
|
|
684
|
+
frame() {
|
|
685
|
+
const { frames: e } = this.spinner;
|
|
686
|
+
let t = e[this.frameIndex];
|
|
687
|
+
if (this.color) t = n[this.color](t);
|
|
688
|
+
this.frameIndex = ++this.frameIndex % e.length;
|
|
689
|
+
const r = "string" == typeof this.prefixText && "" !== this.prefixText ? this.prefixText + " " : "";
|
|
690
|
+
const i = "string" == typeof this.text ? " " + this.text : "";
|
|
691
|
+
return r + t + i;
|
|
692
|
+
}
|
|
693
|
+
clear() {
|
|
694
|
+
if (!this.isEnabled || !this.stream.isTTY) return this;
|
|
695
|
+
for(let e = 0; e < this.linesToClear; e++){
|
|
696
|
+
if (e > 0) this.stream.moveCursor(0, -1);
|
|
697
|
+
this.stream.clearLine();
|
|
698
|
+
this.stream.cursorTo(this.indent);
|
|
699
|
+
}
|
|
700
|
+
this.linesToClear = 0;
|
|
701
|
+
return this;
|
|
702
|
+
}
|
|
703
|
+
render() {
|
|
704
|
+
if (this.isSilent) return this;
|
|
705
|
+
this.clear();
|
|
706
|
+
this.stream.write(this.frame());
|
|
707
|
+
this.linesToClear = this.lineCount;
|
|
708
|
+
return this;
|
|
709
|
+
}
|
|
710
|
+
start(e) {
|
|
711
|
+
if (e) this.text = e;
|
|
712
|
+
if (this.isSilent) return this;
|
|
713
|
+
if (!this.isEnabled) {
|
|
714
|
+
if (this.text) this.stream.write(`- ${this.text}\n`);
|
|
715
|
+
return this;
|
|
716
|
+
}
|
|
717
|
+
if (this.isSpinning) return this;
|
|
718
|
+
if (this.hideCursor) s.hide(this.stream);
|
|
719
|
+
if (this.discardStdin && process.stdin.isTTY) {
|
|
720
|
+
this.isDiscardingStdin = true;
|
|
721
|
+
g.start();
|
|
722
|
+
}
|
|
723
|
+
this.render();
|
|
724
|
+
this.id = setInterval(this.render.bind(this), this.interval);
|
|
725
|
+
return this;
|
|
726
|
+
}
|
|
727
|
+
stop() {
|
|
728
|
+
if (!this.isEnabled) return this;
|
|
729
|
+
clearInterval(this.id);
|
|
730
|
+
this.id = void 0;
|
|
731
|
+
this.frameIndex = 0;
|
|
732
|
+
this.clear();
|
|
733
|
+
if (this.hideCursor) s.show(this.stream);
|
|
734
|
+
if (this.discardStdin && process.stdin.isTTY && this.isDiscardingStdin) {
|
|
735
|
+
g.stop();
|
|
736
|
+
this.isDiscardingStdin = false;
|
|
737
|
+
}
|
|
738
|
+
return this;
|
|
739
|
+
}
|
|
740
|
+
succeed(e) {
|
|
741
|
+
return this.stopAndPersist({
|
|
742
|
+
symbol: o.success,
|
|
743
|
+
text: e
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
fail(e) {
|
|
747
|
+
return this.stopAndPersist({
|
|
748
|
+
symbol: o.error,
|
|
749
|
+
text: e
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
warn(e) {
|
|
753
|
+
return this.stopAndPersist({
|
|
754
|
+
symbol: o.warning,
|
|
755
|
+
text: e
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
info(e) {
|
|
759
|
+
return this.stopAndPersist({
|
|
760
|
+
symbol: o.info,
|
|
761
|
+
text: e
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
stopAndPersist(e = {}) {
|
|
765
|
+
if (this.isSilent) return this;
|
|
766
|
+
const t = e.prefixText || this.prefixText;
|
|
767
|
+
const r = e.text || this.text;
|
|
768
|
+
const i = "string" == typeof r ? " " + r : "";
|
|
769
|
+
this.stop();
|
|
770
|
+
this.stream.write(`${this.getFullPrefixText(t, " ")}${e.symbol || " "}${i}\n`);
|
|
771
|
+
return this;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
const oraFactory = function(e) {
|
|
775
|
+
return new Ora(e);
|
|
776
|
+
};
|
|
777
|
+
e.exports = oraFactory;
|
|
778
|
+
e.exports.promise = (e, t)=>{
|
|
779
|
+
if ("function" != typeof e.then) throw new TypeError("Parameter `action` must be a Promise");
|
|
780
|
+
const r = new Ora(t);
|
|
781
|
+
r.start();
|
|
782
|
+
(async ()=>{
|
|
783
|
+
try {
|
|
784
|
+
await e;
|
|
785
|
+
r.succeed();
|
|
786
|
+
} catch {
|
|
787
|
+
r.fail();
|
|
788
|
+
}
|
|
789
|
+
})();
|
|
790
|
+
return r;
|
|
791
|
+
};
|
|
792
|
+
},
|
|
793
|
+
959: (e)=>{
|
|
794
|
+
"use strict";
|
|
795
|
+
const t = {};
|
|
796
|
+
function createErrorType(e, r, i) {
|
|
797
|
+
if (!i) i = Error;
|
|
798
|
+
function getMessage(e, t, i) {
|
|
799
|
+
if ("string" == typeof r) return r;
|
|
800
|
+
return r(e, t, i);
|
|
801
|
+
}
|
|
802
|
+
class NodeError extends i {
|
|
803
|
+
constructor(e, t, r){
|
|
804
|
+
super(getMessage(e, t, r));
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
NodeError.prototype.name = i.name;
|
|
808
|
+
NodeError.prototype.code = e;
|
|
809
|
+
t[e] = NodeError;
|
|
810
|
+
}
|
|
811
|
+
function oneOf(e, t) {
|
|
812
|
+
if (!Array.isArray(e)) return `of ${t} ${String(e)}`;
|
|
813
|
+
{
|
|
814
|
+
const r = e.length;
|
|
815
|
+
e = e.map((e)=>String(e));
|
|
816
|
+
if (r > 2) return `one of ${t} ${e.slice(0, r - 1).join(", ")}, or ` + e[r - 1];
|
|
817
|
+
if (2 === r) return `one of ${t} ${e[0]} or ${e[1]}`;
|
|
818
|
+
return `of ${t} ${e[0]}`;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
function startsWith(e, t, r) {
|
|
822
|
+
return e.substr(!r || r < 0 ? 0 : +r, t.length) === t;
|
|
823
|
+
}
|
|
824
|
+
function endsWith(e, t, r) {
|
|
825
|
+
if (void 0 === r || r > e.length) r = e.length;
|
|
826
|
+
return e.substring(r - t.length, r) === t;
|
|
827
|
+
}
|
|
828
|
+
function includes(e, t, r) {
|
|
829
|
+
if ("number" != typeof r) r = 0;
|
|
830
|
+
if (r + t.length > e.length) return false;
|
|
831
|
+
return -1 !== e.indexOf(t, r);
|
|
832
|
+
}
|
|
833
|
+
createErrorType("ERR_INVALID_OPT_VALUE", function(e, t) {
|
|
834
|
+
return 'The value "' + t + '" is invalid for option "' + e + '"';
|
|
835
|
+
}, TypeError);
|
|
836
|
+
createErrorType("ERR_INVALID_ARG_TYPE", function(e, t, r) {
|
|
837
|
+
let i;
|
|
838
|
+
if ("string" == typeof t && startsWith(t, "not ")) {
|
|
839
|
+
i = "must not be";
|
|
840
|
+
t = t.replace(/^not /, "");
|
|
841
|
+
} else i = "must be";
|
|
842
|
+
let n;
|
|
843
|
+
if (endsWith(e, " argument")) n = `The ${e} ${i} ${oneOf(t, "type")}`;
|
|
844
|
+
else {
|
|
845
|
+
const r = includes(e, ".") ? "property" : "argument";
|
|
846
|
+
n = `The "${e}" ${r} ${i} ${oneOf(t, "type")}`;
|
|
847
|
+
}
|
|
848
|
+
n += `. Received type ${typeof r}`;
|
|
849
|
+
return n;
|
|
850
|
+
}, TypeError);
|
|
851
|
+
createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
852
|
+
createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
|
|
853
|
+
return "The " + e + " method is not implemented";
|
|
854
|
+
});
|
|
855
|
+
createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
856
|
+
createErrorType("ERR_STREAM_DESTROYED", function(e) {
|
|
857
|
+
return "Cannot call " + e + " after a stream was destroyed";
|
|
858
|
+
});
|
|
859
|
+
createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
860
|
+
createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
861
|
+
createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
862
|
+
createErrorType("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
863
|
+
createErrorType("ERR_UNKNOWN_ENCODING", function(e) {
|
|
864
|
+
return "Unknown encoding: " + e;
|
|
865
|
+
}, TypeError);
|
|
866
|
+
createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
867
|
+
e.exports.q = t;
|
|
868
|
+
},
|
|
869
|
+
548: (e, t, r)=>{
|
|
870
|
+
"use strict";
|
|
871
|
+
var i = Object.keys || function(e) {
|
|
872
|
+
var t = [];
|
|
873
|
+
for(var r in e)t.push(r);
|
|
874
|
+
return t;
|
|
875
|
+
};
|
|
876
|
+
e.exports = Duplex;
|
|
877
|
+
var n = r(852);
|
|
878
|
+
var s = r(379);
|
|
879
|
+
r(315)(Duplex, n);
|
|
880
|
+
var a = i(s.prototype);
|
|
881
|
+
for(var o = 0; o < a.length; o++){
|
|
882
|
+
var f = a[o];
|
|
883
|
+
if (!Duplex.prototype[f]) Duplex.prototype[f] = s.prototype[f];
|
|
884
|
+
}
|
|
885
|
+
function Duplex(e) {
|
|
886
|
+
if (!(this instanceof Duplex)) return new Duplex(e);
|
|
887
|
+
n.call(this, e);
|
|
888
|
+
s.call(this, e);
|
|
889
|
+
this.allowHalfOpen = true;
|
|
890
|
+
if (e) {
|
|
891
|
+
if (false === e.readable) this.readable = false;
|
|
892
|
+
if (false === e.writable) this.writable = false;
|
|
893
|
+
if (false === e.allowHalfOpen) {
|
|
894
|
+
this.allowHalfOpen = false;
|
|
895
|
+
this.once("end", onend);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
Object.defineProperty(Duplex.prototype, "writableHighWaterMark", {
|
|
900
|
+
enumerable: false,
|
|
901
|
+
get: function() {
|
|
902
|
+
return this._writableState.highWaterMark;
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
Object.defineProperty(Duplex.prototype, "writableBuffer", {
|
|
906
|
+
enumerable: false,
|
|
907
|
+
get: function() {
|
|
908
|
+
return this._writableState && this._writableState.getBuffer();
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
Object.defineProperty(Duplex.prototype, "writableLength", {
|
|
912
|
+
enumerable: false,
|
|
913
|
+
get: function() {
|
|
914
|
+
return this._writableState.length;
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
function onend() {
|
|
918
|
+
if (this._writableState.ended) return;
|
|
919
|
+
process.nextTick(onEndNT, this);
|
|
920
|
+
}
|
|
921
|
+
function onEndNT(e) {
|
|
922
|
+
e.end();
|
|
923
|
+
}
|
|
924
|
+
Object.defineProperty(Duplex.prototype, "destroyed", {
|
|
925
|
+
enumerable: false,
|
|
926
|
+
get: function() {
|
|
927
|
+
if (void 0 === this._readableState || void 0 === this._writableState) return false;
|
|
928
|
+
return this._readableState.destroyed && this._writableState.destroyed;
|
|
929
|
+
},
|
|
930
|
+
set: function(e) {
|
|
931
|
+
if (void 0 === this._readableState || void 0 === this._writableState) return;
|
|
932
|
+
this._readableState.destroyed = e;
|
|
933
|
+
this._writableState.destroyed = e;
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
},
|
|
937
|
+
184: (e, t, r)=>{
|
|
938
|
+
"use strict";
|
|
939
|
+
e.exports = PassThrough;
|
|
940
|
+
var i = r(770);
|
|
941
|
+
r(315)(PassThrough, i);
|
|
942
|
+
function PassThrough(e) {
|
|
943
|
+
if (!(this instanceof PassThrough)) return new PassThrough(e);
|
|
944
|
+
i.call(this, e);
|
|
945
|
+
}
|
|
946
|
+
PassThrough.prototype._transform = function(e, t, r) {
|
|
947
|
+
r(null, e);
|
|
948
|
+
};
|
|
949
|
+
},
|
|
950
|
+
852: (e, t, r)=>{
|
|
951
|
+
"use strict";
|
|
952
|
+
e.exports = Readable;
|
|
953
|
+
var i;
|
|
954
|
+
Readable.ReadableState = ReadableState;
|
|
955
|
+
r(361).EventEmitter;
|
|
956
|
+
var s = function(e, t) {
|
|
957
|
+
return e.listeners(t).length;
|
|
958
|
+
};
|
|
959
|
+
var a = r(604);
|
|
960
|
+
var o = r(300).Buffer;
|
|
961
|
+
var f = global.Uint8Array || function() {};
|
|
962
|
+
function _uint8ArrayToBuffer(e) {
|
|
963
|
+
return o.from(e);
|
|
964
|
+
}
|
|
965
|
+
function _isUint8Array(e) {
|
|
966
|
+
return o.isBuffer(e) || e instanceof f;
|
|
967
|
+
}
|
|
968
|
+
var l = r(837);
|
|
969
|
+
var u;
|
|
970
|
+
u = l && l.debuglog ? l.debuglog("stream") : function() {};
|
|
971
|
+
var h = r(706);
|
|
972
|
+
var d = r(97);
|
|
973
|
+
var p = r(841), _ = p.getHighWaterMark;
|
|
974
|
+
var b = r(959).q, g = b.ERR_INVALID_ARG_TYPE, y = b.ERR_STREAM_PUSH_AFTER_EOF, m = b.ERR_METHOD_NOT_IMPLEMENTED, v = b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
975
|
+
var w;
|
|
976
|
+
var S;
|
|
977
|
+
var R;
|
|
978
|
+
r(315)(Readable, a);
|
|
979
|
+
var E = d.errorOrDestroy;
|
|
980
|
+
var x = [
|
|
981
|
+
"error",
|
|
982
|
+
"close",
|
|
983
|
+
"destroy",
|
|
984
|
+
"pause",
|
|
985
|
+
"resume"
|
|
986
|
+
];
|
|
987
|
+
function prependListener(e, t, r) {
|
|
988
|
+
if ("function" == typeof e.prependListener) return e.prependListener(t, r);
|
|
989
|
+
if (e._events && e._events[t]) if (Array.isArray(e._events[t])) e._events[t].unshift(r);
|
|
990
|
+
else e._events[t] = [
|
|
991
|
+
r,
|
|
992
|
+
e._events[t]
|
|
993
|
+
];
|
|
994
|
+
else e.on(t, r);
|
|
995
|
+
}
|
|
996
|
+
function ReadableState(e, t, n) {
|
|
997
|
+
i = i || r(548);
|
|
998
|
+
e = e || {};
|
|
999
|
+
if ("boolean" != typeof n) n = t instanceof i;
|
|
1000
|
+
this.objectMode = !!e.objectMode;
|
|
1001
|
+
if (n) this.objectMode = this.objectMode || !!e.readableObjectMode;
|
|
1002
|
+
this.highWaterMark = _(this, e, "readableHighWaterMark", n);
|
|
1003
|
+
this.buffer = new h;
|
|
1004
|
+
this.length = 0;
|
|
1005
|
+
this.pipes = null;
|
|
1006
|
+
this.pipesCount = 0;
|
|
1007
|
+
this.flowing = null;
|
|
1008
|
+
this.ended = false;
|
|
1009
|
+
this.endEmitted = false;
|
|
1010
|
+
this.reading = false;
|
|
1011
|
+
this.sync = true;
|
|
1012
|
+
this.needReadable = false;
|
|
1013
|
+
this.emittedReadable = false;
|
|
1014
|
+
this.readableListening = false;
|
|
1015
|
+
this.resumeScheduled = false;
|
|
1016
|
+
this.paused = true;
|
|
1017
|
+
this.emitClose = false !== e.emitClose;
|
|
1018
|
+
this.autoDestroy = !!e.autoDestroy;
|
|
1019
|
+
this.destroyed = false;
|
|
1020
|
+
this.defaultEncoding = e.defaultEncoding || "utf8";
|
|
1021
|
+
this.awaitDrain = 0;
|
|
1022
|
+
this.readingMore = false;
|
|
1023
|
+
this.decoder = null;
|
|
1024
|
+
this.encoding = null;
|
|
1025
|
+
if (e.encoding) {
|
|
1026
|
+
if (!w) w = r(259).s;
|
|
1027
|
+
this.decoder = new w(e.encoding);
|
|
1028
|
+
this.encoding = e.encoding;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
function Readable(e) {
|
|
1032
|
+
i = i || r(548);
|
|
1033
|
+
if (!(this instanceof Readable)) return new Readable(e);
|
|
1034
|
+
var t = this instanceof i;
|
|
1035
|
+
this._readableState = new ReadableState(e, this, t);
|
|
1036
|
+
this.readable = true;
|
|
1037
|
+
if (e) {
|
|
1038
|
+
if ("function" == typeof e.read) this._read = e.read;
|
|
1039
|
+
if ("function" == typeof e.destroy) this._destroy = e.destroy;
|
|
1040
|
+
}
|
|
1041
|
+
a.call(this);
|
|
1042
|
+
}
|
|
1043
|
+
Object.defineProperty(Readable.prototype, "destroyed", {
|
|
1044
|
+
enumerable: false,
|
|
1045
|
+
get: function() {
|
|
1046
|
+
if (void 0 === this._readableState) return false;
|
|
1047
|
+
return this._readableState.destroyed;
|
|
1048
|
+
},
|
|
1049
|
+
set: function(e) {
|
|
1050
|
+
if (!this._readableState) return;
|
|
1051
|
+
this._readableState.destroyed = e;
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
Readable.prototype.destroy = d.destroy;
|
|
1055
|
+
Readable.prototype._undestroy = d.undestroy;
|
|
1056
|
+
Readable.prototype._destroy = function(e, t) {
|
|
1057
|
+
t(e);
|
|
1058
|
+
};
|
|
1059
|
+
Readable.prototype.push = function(e, t) {
|
|
1060
|
+
var r = this._readableState;
|
|
1061
|
+
var i;
|
|
1062
|
+
if (r.objectMode) i = true;
|
|
1063
|
+
else if ("string" == typeof e) {
|
|
1064
|
+
t = t || r.defaultEncoding;
|
|
1065
|
+
if (t !== r.encoding) {
|
|
1066
|
+
e = o.from(e, t);
|
|
1067
|
+
t = "";
|
|
1068
|
+
}
|
|
1069
|
+
i = true;
|
|
1070
|
+
}
|
|
1071
|
+
return readableAddChunk(this, e, t, false, i);
|
|
1072
|
+
};
|
|
1073
|
+
Readable.prototype.unshift = function(e) {
|
|
1074
|
+
return readableAddChunk(this, e, null, true, false);
|
|
1075
|
+
};
|
|
1076
|
+
function readableAddChunk(e, t, r, i, n) {
|
|
1077
|
+
u("readableAddChunk", t);
|
|
1078
|
+
var s = e._readableState;
|
|
1079
|
+
if (null === t) {
|
|
1080
|
+
s.reading = false;
|
|
1081
|
+
onEofChunk(e, s);
|
|
1082
|
+
} else {
|
|
1083
|
+
var a;
|
|
1084
|
+
if (!n) a = chunkInvalid(s, t);
|
|
1085
|
+
if (a) E(e, a);
|
|
1086
|
+
else if (s.objectMode || t && t.length > 0) {
|
|
1087
|
+
if ("string" != typeof t && !s.objectMode && Object.getPrototypeOf(t) !== o.prototype) t = _uint8ArrayToBuffer(t);
|
|
1088
|
+
if (i) if (s.endEmitted) E(e, new v);
|
|
1089
|
+
else addChunk(e, s, t, true);
|
|
1090
|
+
else if (s.ended) E(e, new y);
|
|
1091
|
+
else {
|
|
1092
|
+
if (s.destroyed) return false;
|
|
1093
|
+
s.reading = false;
|
|
1094
|
+
if (s.decoder && !r) {
|
|
1095
|
+
t = s.decoder.write(t);
|
|
1096
|
+
if (s.objectMode || 0 !== t.length) addChunk(e, s, t, false);
|
|
1097
|
+
else maybeReadMore(e, s);
|
|
1098
|
+
} else addChunk(e, s, t, false);
|
|
1099
|
+
}
|
|
1100
|
+
} else if (!i) {
|
|
1101
|
+
s.reading = false;
|
|
1102
|
+
maybeReadMore(e, s);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
return !s.ended && (s.length < s.highWaterMark || 0 === s.length);
|
|
1106
|
+
}
|
|
1107
|
+
function addChunk(e, t, r, i) {
|
|
1108
|
+
if (t.flowing && 0 === t.length && !t.sync) {
|
|
1109
|
+
t.awaitDrain = 0;
|
|
1110
|
+
e.emit("data", r);
|
|
1111
|
+
} else {
|
|
1112
|
+
t.length += t.objectMode ? 1 : r.length;
|
|
1113
|
+
if (i) t.buffer.unshift(r);
|
|
1114
|
+
else t.buffer.push(r);
|
|
1115
|
+
if (t.needReadable) emitReadable(e);
|
|
1116
|
+
}
|
|
1117
|
+
maybeReadMore(e, t);
|
|
1118
|
+
}
|
|
1119
|
+
function chunkInvalid(e, t) {
|
|
1120
|
+
var r;
|
|
1121
|
+
if (!_isUint8Array(t) && "string" != typeof t && void 0 !== t && !e.objectMode) r = new g("chunk", [
|
|
1122
|
+
"string",
|
|
1123
|
+
"Buffer",
|
|
1124
|
+
"Uint8Array"
|
|
1125
|
+
], t);
|
|
1126
|
+
return r;
|
|
1127
|
+
}
|
|
1128
|
+
Readable.prototype.isPaused = function() {
|
|
1129
|
+
return false === this._readableState.flowing;
|
|
1130
|
+
};
|
|
1131
|
+
Readable.prototype.setEncoding = function(e) {
|
|
1132
|
+
if (!w) w = r(259).s;
|
|
1133
|
+
var t = new w(e);
|
|
1134
|
+
this._readableState.decoder = t;
|
|
1135
|
+
this._readableState.encoding = this._readableState.decoder.encoding;
|
|
1136
|
+
var i = this._readableState.buffer.head;
|
|
1137
|
+
var n = "";
|
|
1138
|
+
while(null !== i){
|
|
1139
|
+
n += t.write(i.data);
|
|
1140
|
+
i = i.next;
|
|
1141
|
+
}
|
|
1142
|
+
this._readableState.buffer.clear();
|
|
1143
|
+
if ("" !== n) this._readableState.buffer.push(n);
|
|
1144
|
+
this._readableState.length = n.length;
|
|
1145
|
+
return this;
|
|
1146
|
+
};
|
|
1147
|
+
var T = 1073741824;
|
|
1148
|
+
function computeNewHighWaterMark(e) {
|
|
1149
|
+
if (e >= T) e = T;
|
|
1150
|
+
else {
|
|
1151
|
+
e--;
|
|
1152
|
+
e |= e >>> 1;
|
|
1153
|
+
e |= e >>> 2;
|
|
1154
|
+
e |= e >>> 4;
|
|
1155
|
+
e |= e >>> 8;
|
|
1156
|
+
e |= e >>> 16;
|
|
1157
|
+
e++;
|
|
1158
|
+
}
|
|
1159
|
+
return e;
|
|
1160
|
+
}
|
|
1161
|
+
function howMuchToRead(e, t) {
|
|
1162
|
+
if (e <= 0 || 0 === t.length && t.ended) return 0;
|
|
1163
|
+
if (t.objectMode) return 1;
|
|
1164
|
+
if (e !== e) if (t.flowing && t.length) return t.buffer.head.data.length;
|
|
1165
|
+
else return t.length;
|
|
1166
|
+
if (e > t.highWaterMark) t.highWaterMark = computeNewHighWaterMark(e);
|
|
1167
|
+
if (e <= t.length) return e;
|
|
1168
|
+
if (!t.ended) {
|
|
1169
|
+
t.needReadable = true;
|
|
1170
|
+
return 0;
|
|
1171
|
+
}
|
|
1172
|
+
return t.length;
|
|
1173
|
+
}
|
|
1174
|
+
Readable.prototype.read = function(e) {
|
|
1175
|
+
u("read", e);
|
|
1176
|
+
e = parseInt(e, 10);
|
|
1177
|
+
var t = this._readableState;
|
|
1178
|
+
var r = e;
|
|
1179
|
+
if (0 !== e) t.emittedReadable = false;
|
|
1180
|
+
if (0 === e && t.needReadable && ((0 !== t.highWaterMark ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) {
|
|
1181
|
+
u("read: emitReadable", t.length, t.ended);
|
|
1182
|
+
if (0 === t.length && t.ended) endReadable(this);
|
|
1183
|
+
else emitReadable(this);
|
|
1184
|
+
return null;
|
|
1185
|
+
}
|
|
1186
|
+
e = howMuchToRead(e, t);
|
|
1187
|
+
if (0 === e && t.ended) {
|
|
1188
|
+
if (0 === t.length) endReadable(this);
|
|
1189
|
+
return null;
|
|
1190
|
+
}
|
|
1191
|
+
var i = t.needReadable;
|
|
1192
|
+
u("need readable", i);
|
|
1193
|
+
if (0 === t.length || t.length - e < t.highWaterMark) {
|
|
1194
|
+
i = true;
|
|
1195
|
+
u("length less than watermark", i);
|
|
1196
|
+
}
|
|
1197
|
+
if (t.ended || t.reading) {
|
|
1198
|
+
i = false;
|
|
1199
|
+
u("reading or ended", i);
|
|
1200
|
+
} else if (i) {
|
|
1201
|
+
u("do read");
|
|
1202
|
+
t.reading = true;
|
|
1203
|
+
t.sync = true;
|
|
1204
|
+
if (0 === t.length) t.needReadable = true;
|
|
1205
|
+
this._read(t.highWaterMark);
|
|
1206
|
+
t.sync = false;
|
|
1207
|
+
if (!t.reading) e = howMuchToRead(r, t);
|
|
1208
|
+
}
|
|
1209
|
+
var n;
|
|
1210
|
+
n = e > 0 ? fromList(e, t) : null;
|
|
1211
|
+
if (null === n) {
|
|
1212
|
+
t.needReadable = t.length <= t.highWaterMark;
|
|
1213
|
+
e = 0;
|
|
1214
|
+
} else {
|
|
1215
|
+
t.length -= e;
|
|
1216
|
+
t.awaitDrain = 0;
|
|
1217
|
+
}
|
|
1218
|
+
if (0 === t.length) {
|
|
1219
|
+
if (!t.ended) t.needReadable = true;
|
|
1220
|
+
if (r !== e && t.ended) endReadable(this);
|
|
1221
|
+
}
|
|
1222
|
+
if (null !== n) this.emit("data", n);
|
|
1223
|
+
return n;
|
|
1224
|
+
};
|
|
1225
|
+
function onEofChunk(e, t) {
|
|
1226
|
+
u("onEofChunk");
|
|
1227
|
+
if (t.ended) return;
|
|
1228
|
+
if (t.decoder) {
|
|
1229
|
+
var r = t.decoder.end();
|
|
1230
|
+
if (r && r.length) {
|
|
1231
|
+
t.buffer.push(r);
|
|
1232
|
+
t.length += t.objectMode ? 1 : r.length;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
t.ended = true;
|
|
1236
|
+
if (t.sync) emitReadable(e);
|
|
1237
|
+
else {
|
|
1238
|
+
t.needReadable = false;
|
|
1239
|
+
if (!t.emittedReadable) {
|
|
1240
|
+
t.emittedReadable = true;
|
|
1241
|
+
emitReadable_(e);
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
function emitReadable(e) {
|
|
1246
|
+
var t = e._readableState;
|
|
1247
|
+
u("emitReadable", t.needReadable, t.emittedReadable);
|
|
1248
|
+
t.needReadable = false;
|
|
1249
|
+
if (!t.emittedReadable) {
|
|
1250
|
+
u("emitReadable", t.flowing);
|
|
1251
|
+
t.emittedReadable = true;
|
|
1252
|
+
process.nextTick(emitReadable_, e);
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
function emitReadable_(e) {
|
|
1256
|
+
var t = e._readableState;
|
|
1257
|
+
u("emitReadable_", t.destroyed, t.length, t.ended);
|
|
1258
|
+
if (!t.destroyed && (t.length || t.ended)) {
|
|
1259
|
+
e.emit("readable");
|
|
1260
|
+
t.emittedReadable = false;
|
|
1261
|
+
}
|
|
1262
|
+
t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark;
|
|
1263
|
+
flow(e);
|
|
1264
|
+
}
|
|
1265
|
+
function maybeReadMore(e, t) {
|
|
1266
|
+
if (!t.readingMore) {
|
|
1267
|
+
t.readingMore = true;
|
|
1268
|
+
process.nextTick(maybeReadMore_, e, t);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
function maybeReadMore_(e, t) {
|
|
1272
|
+
while(!t.reading && !t.ended && (t.length < t.highWaterMark || t.flowing && 0 === t.length)){
|
|
1273
|
+
var r = t.length;
|
|
1274
|
+
u("maybeReadMore read 0");
|
|
1275
|
+
e.read(0);
|
|
1276
|
+
if (r === t.length) break;
|
|
1277
|
+
}
|
|
1278
|
+
t.readingMore = false;
|
|
1279
|
+
}
|
|
1280
|
+
Readable.prototype._read = function(e) {
|
|
1281
|
+
E(this, new m("_read()"));
|
|
1282
|
+
};
|
|
1283
|
+
Readable.prototype.pipe = function(e, t) {
|
|
1284
|
+
var r = this;
|
|
1285
|
+
var i = this._readableState;
|
|
1286
|
+
switch(i.pipesCount){
|
|
1287
|
+
case 0:
|
|
1288
|
+
i.pipes = e;
|
|
1289
|
+
break;
|
|
1290
|
+
case 1:
|
|
1291
|
+
i.pipes = [
|
|
1292
|
+
i.pipes,
|
|
1293
|
+
e
|
|
1294
|
+
];
|
|
1295
|
+
break;
|
|
1296
|
+
default:
|
|
1297
|
+
i.pipes.push(e);
|
|
1298
|
+
break;
|
|
1299
|
+
}
|
|
1300
|
+
i.pipesCount += 1;
|
|
1301
|
+
u("pipe count=%d opts=%j", i.pipesCount, t);
|
|
1302
|
+
var n = (!t || false !== t.end) && e !== process.stdout && e !== process.stderr;
|
|
1303
|
+
var a = n ? onend : unpipe;
|
|
1304
|
+
if (i.endEmitted) process.nextTick(a);
|
|
1305
|
+
else r.once("end", a);
|
|
1306
|
+
e.on("unpipe", onunpipe);
|
|
1307
|
+
function onunpipe(e, t) {
|
|
1308
|
+
u("onunpipe");
|
|
1309
|
+
if (e === r) {
|
|
1310
|
+
if (t && false === t.hasUnpiped) {
|
|
1311
|
+
t.hasUnpiped = true;
|
|
1312
|
+
cleanup();
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
function onend() {
|
|
1317
|
+
u("onend");
|
|
1318
|
+
e.end();
|
|
1319
|
+
}
|
|
1320
|
+
var o = pipeOnDrain(r);
|
|
1321
|
+
e.on("drain", o);
|
|
1322
|
+
var f = false;
|
|
1323
|
+
function cleanup() {
|
|
1324
|
+
u("cleanup");
|
|
1325
|
+
e.removeListener("close", onclose);
|
|
1326
|
+
e.removeListener("finish", onfinish);
|
|
1327
|
+
e.removeListener("drain", o);
|
|
1328
|
+
e.removeListener("error", onerror);
|
|
1329
|
+
e.removeListener("unpipe", onunpipe);
|
|
1330
|
+
r.removeListener("end", onend);
|
|
1331
|
+
r.removeListener("end", unpipe);
|
|
1332
|
+
r.removeListener("data", ondata);
|
|
1333
|
+
f = true;
|
|
1334
|
+
if (i.awaitDrain && (!e._writableState || e._writableState.needDrain)) o();
|
|
1335
|
+
}
|
|
1336
|
+
r.on("data", ondata);
|
|
1337
|
+
function ondata(t) {
|
|
1338
|
+
u("ondata");
|
|
1339
|
+
var n = e.write(t);
|
|
1340
|
+
u("dest.write", n);
|
|
1341
|
+
if (false === n) {
|
|
1342
|
+
if ((1 === i.pipesCount && i.pipes === e || i.pipesCount > 1 && -1 !== indexOf(i.pipes, e)) && !f) {
|
|
1343
|
+
u("false write response, pause", i.awaitDrain);
|
|
1344
|
+
i.awaitDrain++;
|
|
1345
|
+
}
|
|
1346
|
+
r.pause();
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
function onerror(t) {
|
|
1350
|
+
u("onerror", t);
|
|
1351
|
+
unpipe();
|
|
1352
|
+
e.removeListener("error", onerror);
|
|
1353
|
+
if (0 === s(e, "error")) E(e, t);
|
|
1354
|
+
}
|
|
1355
|
+
prependListener(e, "error", onerror);
|
|
1356
|
+
function onclose() {
|
|
1357
|
+
e.removeListener("finish", onfinish);
|
|
1358
|
+
unpipe();
|
|
1359
|
+
}
|
|
1360
|
+
e.once("close", onclose);
|
|
1361
|
+
function onfinish() {
|
|
1362
|
+
u("onfinish");
|
|
1363
|
+
e.removeListener("close", onclose);
|
|
1364
|
+
unpipe();
|
|
1365
|
+
}
|
|
1366
|
+
e.once("finish", onfinish);
|
|
1367
|
+
function unpipe() {
|
|
1368
|
+
u("unpipe");
|
|
1369
|
+
r.unpipe(e);
|
|
1370
|
+
}
|
|
1371
|
+
e.emit("pipe", r);
|
|
1372
|
+
if (!i.flowing) {
|
|
1373
|
+
u("pipe resume");
|
|
1374
|
+
r.resume();
|
|
1375
|
+
}
|
|
1376
|
+
return e;
|
|
1377
|
+
};
|
|
1378
|
+
function pipeOnDrain(e) {
|
|
1379
|
+
return function() {
|
|
1380
|
+
var t = e._readableState;
|
|
1381
|
+
u("pipeOnDrain", t.awaitDrain);
|
|
1382
|
+
if (t.awaitDrain) t.awaitDrain--;
|
|
1383
|
+
if (0 === t.awaitDrain && s(e, "data")) {
|
|
1384
|
+
t.flowing = true;
|
|
1385
|
+
flow(e);
|
|
1386
|
+
}
|
|
1387
|
+
};
|
|
1388
|
+
}
|
|
1389
|
+
Readable.prototype.unpipe = function(e) {
|
|
1390
|
+
var t = this._readableState;
|
|
1391
|
+
var r = {
|
|
1392
|
+
hasUnpiped: false
|
|
1393
|
+
};
|
|
1394
|
+
if (0 === t.pipesCount) return this;
|
|
1395
|
+
if (1 === t.pipesCount) {
|
|
1396
|
+
if (e && e !== t.pipes) return this;
|
|
1397
|
+
if (!e) e = t.pipes;
|
|
1398
|
+
t.pipes = null;
|
|
1399
|
+
t.pipesCount = 0;
|
|
1400
|
+
t.flowing = false;
|
|
1401
|
+
if (e) e.emit("unpipe", this, r);
|
|
1402
|
+
return this;
|
|
1403
|
+
}
|
|
1404
|
+
if (!e) {
|
|
1405
|
+
var i = t.pipes;
|
|
1406
|
+
var n = t.pipesCount;
|
|
1407
|
+
t.pipes = null;
|
|
1408
|
+
t.pipesCount = 0;
|
|
1409
|
+
t.flowing = false;
|
|
1410
|
+
for(var s = 0; s < n; s++)i[s].emit("unpipe", this, {
|
|
1411
|
+
hasUnpiped: false
|
|
1412
|
+
});
|
|
1413
|
+
return this;
|
|
1414
|
+
}
|
|
1415
|
+
var a = indexOf(t.pipes, e);
|
|
1416
|
+
if (-1 === a) return this;
|
|
1417
|
+
t.pipes.splice(a, 1);
|
|
1418
|
+
t.pipesCount -= 1;
|
|
1419
|
+
if (1 === t.pipesCount) t.pipes = t.pipes[0];
|
|
1420
|
+
e.emit("unpipe", this, r);
|
|
1421
|
+
return this;
|
|
1422
|
+
};
|
|
1423
|
+
Readable.prototype.on = function(e, t) {
|
|
1424
|
+
var r = a.prototype.on.call(this, e, t);
|
|
1425
|
+
var i = this._readableState;
|
|
1426
|
+
if ("data" === e) {
|
|
1427
|
+
i.readableListening = this.listenerCount("readable") > 0;
|
|
1428
|
+
if (false !== i.flowing) this.resume();
|
|
1429
|
+
} else if ("readable" === e) {
|
|
1430
|
+
if (!i.endEmitted && !i.readableListening) {
|
|
1431
|
+
i.readableListening = i.needReadable = true;
|
|
1432
|
+
i.flowing = false;
|
|
1433
|
+
i.emittedReadable = false;
|
|
1434
|
+
u("on readable", i.length, i.reading);
|
|
1435
|
+
if (i.length) emitReadable(this);
|
|
1436
|
+
else if (!i.reading) process.nextTick(nReadingNextTick, this);
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
return r;
|
|
1440
|
+
};
|
|
1441
|
+
Readable.prototype.addListener = Readable.prototype.on;
|
|
1442
|
+
Readable.prototype.removeListener = function(e, t) {
|
|
1443
|
+
var r = a.prototype.removeListener.call(this, e, t);
|
|
1444
|
+
if ("readable" === e) process.nextTick(updateReadableListening, this);
|
|
1445
|
+
return r;
|
|
1446
|
+
};
|
|
1447
|
+
Readable.prototype.removeAllListeners = function(e) {
|
|
1448
|
+
var t = a.prototype.removeAllListeners.apply(this, arguments);
|
|
1449
|
+
if ("readable" === e || void 0 === e) process.nextTick(updateReadableListening, this);
|
|
1450
|
+
return t;
|
|
1451
|
+
};
|
|
1452
|
+
function updateReadableListening(e) {
|
|
1453
|
+
var t = e._readableState;
|
|
1454
|
+
t.readableListening = e.listenerCount("readable") > 0;
|
|
1455
|
+
if (t.resumeScheduled && !t.paused) t.flowing = true;
|
|
1456
|
+
else if (e.listenerCount("data") > 0) e.resume();
|
|
1457
|
+
}
|
|
1458
|
+
function nReadingNextTick(e) {
|
|
1459
|
+
u("readable nexttick read 0");
|
|
1460
|
+
e.read(0);
|
|
1461
|
+
}
|
|
1462
|
+
Readable.prototype.resume = function() {
|
|
1463
|
+
var e = this._readableState;
|
|
1464
|
+
if (!e.flowing) {
|
|
1465
|
+
u("resume");
|
|
1466
|
+
e.flowing = !e.readableListening;
|
|
1467
|
+
resume(this, e);
|
|
1468
|
+
}
|
|
1469
|
+
e.paused = false;
|
|
1470
|
+
return this;
|
|
1471
|
+
};
|
|
1472
|
+
function resume(e, t) {
|
|
1473
|
+
if (!t.resumeScheduled) {
|
|
1474
|
+
t.resumeScheduled = true;
|
|
1475
|
+
process.nextTick(resume_, e, t);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
function resume_(e, t) {
|
|
1479
|
+
u("resume", t.reading);
|
|
1480
|
+
if (!t.reading) e.read(0);
|
|
1481
|
+
t.resumeScheduled = false;
|
|
1482
|
+
e.emit("resume");
|
|
1483
|
+
flow(e);
|
|
1484
|
+
if (t.flowing && !t.reading) e.read(0);
|
|
1485
|
+
}
|
|
1486
|
+
Readable.prototype.pause = function() {
|
|
1487
|
+
u("call pause flowing=%j", this._readableState.flowing);
|
|
1488
|
+
if (false !== this._readableState.flowing) {
|
|
1489
|
+
u("pause");
|
|
1490
|
+
this._readableState.flowing = false;
|
|
1491
|
+
this.emit("pause");
|
|
1492
|
+
}
|
|
1493
|
+
this._readableState.paused = true;
|
|
1494
|
+
return this;
|
|
1495
|
+
};
|
|
1496
|
+
function flow(e) {
|
|
1497
|
+
var t = e._readableState;
|
|
1498
|
+
u("flow", t.flowing);
|
|
1499
|
+
while(t.flowing && null !== e.read());
|
|
1500
|
+
}
|
|
1501
|
+
Readable.prototype.wrap = function(e) {
|
|
1502
|
+
var t = this;
|
|
1503
|
+
var r = this._readableState;
|
|
1504
|
+
var i = false;
|
|
1505
|
+
e.on("end", function() {
|
|
1506
|
+
u("wrapped end");
|
|
1507
|
+
if (r.decoder && !r.ended) {
|
|
1508
|
+
var e = r.decoder.end();
|
|
1509
|
+
if (e && e.length) t.push(e);
|
|
1510
|
+
}
|
|
1511
|
+
t.push(null);
|
|
1512
|
+
});
|
|
1513
|
+
e.on("data", function(n) {
|
|
1514
|
+
u("wrapped data");
|
|
1515
|
+
if (r.decoder) n = r.decoder.write(n);
|
|
1516
|
+
if (r.objectMode && null == n) return;
|
|
1517
|
+
if (!r.objectMode && (!n || !n.length)) return;
|
|
1518
|
+
var s = t.push(n);
|
|
1519
|
+
if (!s) {
|
|
1520
|
+
i = true;
|
|
1521
|
+
e.pause();
|
|
1522
|
+
}
|
|
1523
|
+
});
|
|
1524
|
+
for(var n in e)if (void 0 === this[n] && "function" == typeof e[n]) this[n] = function(t) {
|
|
1525
|
+
return function() {
|
|
1526
|
+
return e[t].apply(e, arguments);
|
|
1527
|
+
};
|
|
1528
|
+
}(n);
|
|
1529
|
+
for(var s = 0; s < x.length; s++)e.on(x[s], this.emit.bind(this, x[s]));
|
|
1530
|
+
this._read = function(t) {
|
|
1531
|
+
u("wrapped _read", t);
|
|
1532
|
+
if (i) {
|
|
1533
|
+
i = false;
|
|
1534
|
+
e.resume();
|
|
1535
|
+
}
|
|
1536
|
+
};
|
|
1537
|
+
return this;
|
|
1538
|
+
};
|
|
1539
|
+
if ("function" == typeof Symbol) Readable.prototype[Symbol.asyncIterator] = function() {
|
|
1540
|
+
if (void 0 === S) S = r(87);
|
|
1541
|
+
return S(this);
|
|
1542
|
+
};
|
|
1543
|
+
Object.defineProperty(Readable.prototype, "readableHighWaterMark", {
|
|
1544
|
+
enumerable: false,
|
|
1545
|
+
get: function() {
|
|
1546
|
+
return this._readableState.highWaterMark;
|
|
1547
|
+
}
|
|
1548
|
+
});
|
|
1549
|
+
Object.defineProperty(Readable.prototype, "readableBuffer", {
|
|
1550
|
+
enumerable: false,
|
|
1551
|
+
get: function() {
|
|
1552
|
+
return this._readableState && this._readableState.buffer;
|
|
1553
|
+
}
|
|
1554
|
+
});
|
|
1555
|
+
Object.defineProperty(Readable.prototype, "readableFlowing", {
|
|
1556
|
+
enumerable: false,
|
|
1557
|
+
get: function() {
|
|
1558
|
+
return this._readableState.flowing;
|
|
1559
|
+
},
|
|
1560
|
+
set: function(e) {
|
|
1561
|
+
if (this._readableState) this._readableState.flowing = e;
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
Readable._fromList = fromList;
|
|
1565
|
+
Object.defineProperty(Readable.prototype, "readableLength", {
|
|
1566
|
+
enumerable: false,
|
|
1567
|
+
get: function() {
|
|
1568
|
+
return this._readableState.length;
|
|
1569
|
+
}
|
|
1570
|
+
});
|
|
1571
|
+
function fromList(e, t) {
|
|
1572
|
+
if (0 === t.length) return null;
|
|
1573
|
+
var r;
|
|
1574
|
+
if (t.objectMode) r = t.buffer.shift();
|
|
1575
|
+
else if (!e || e >= t.length) {
|
|
1576
|
+
r = t.decoder ? t.buffer.join("") : 1 === t.buffer.length ? t.buffer.first() : t.buffer.concat(t.length);
|
|
1577
|
+
t.buffer.clear();
|
|
1578
|
+
} else r = t.buffer.consume(e, t.decoder);
|
|
1579
|
+
return r;
|
|
1580
|
+
}
|
|
1581
|
+
function endReadable(e) {
|
|
1582
|
+
var t = e._readableState;
|
|
1583
|
+
u("endReadable", t.endEmitted);
|
|
1584
|
+
if (!t.endEmitted) {
|
|
1585
|
+
t.ended = true;
|
|
1586
|
+
process.nextTick(endReadableNT, t, e);
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
function endReadableNT(e, t) {
|
|
1590
|
+
u("endReadableNT", e.endEmitted, e.length);
|
|
1591
|
+
if (!e.endEmitted && 0 === e.length) {
|
|
1592
|
+
e.endEmitted = true;
|
|
1593
|
+
t.readable = false;
|
|
1594
|
+
t.emit("end");
|
|
1595
|
+
if (e.autoDestroy) {
|
|
1596
|
+
var r = t._writableState;
|
|
1597
|
+
if (!r || r.autoDestroy && r.finished) t.destroy();
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
if ("function" == typeof Symbol) Readable.from = function(e, t) {
|
|
1602
|
+
if (void 0 === R) R = r(668);
|
|
1603
|
+
return R(Readable, e, t);
|
|
1604
|
+
};
|
|
1605
|
+
function indexOf(e, t) {
|
|
1606
|
+
for(var r = 0, i = e.length; r < i; r++)if (e[r] === t) return r;
|
|
1607
|
+
return -1;
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
770: (e, t, r)=>{
|
|
1611
|
+
"use strict";
|
|
1612
|
+
e.exports = Transform;
|
|
1613
|
+
var i = r(959).q, n = i.ERR_METHOD_NOT_IMPLEMENTED, s = i.ERR_MULTIPLE_CALLBACK, a = i.ERR_TRANSFORM_ALREADY_TRANSFORMING, o = i.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
1614
|
+
var f = r(548);
|
|
1615
|
+
r(315)(Transform, f);
|
|
1616
|
+
function afterTransform(e, t) {
|
|
1617
|
+
var r = this._transformState;
|
|
1618
|
+
r.transforming = false;
|
|
1619
|
+
var i = r.writecb;
|
|
1620
|
+
if (null === i) return this.emit("error", new s);
|
|
1621
|
+
r.writechunk = null;
|
|
1622
|
+
r.writecb = null;
|
|
1623
|
+
if (null != t) this.push(t);
|
|
1624
|
+
i(e);
|
|
1625
|
+
var n = this._readableState;
|
|
1626
|
+
n.reading = false;
|
|
1627
|
+
if (n.needReadable || n.length < n.highWaterMark) this._read(n.highWaterMark);
|
|
1628
|
+
}
|
|
1629
|
+
function Transform(e) {
|
|
1630
|
+
if (!(this instanceof Transform)) return new Transform(e);
|
|
1631
|
+
f.call(this, e);
|
|
1632
|
+
this._transformState = {
|
|
1633
|
+
afterTransform: afterTransform.bind(this),
|
|
1634
|
+
needTransform: false,
|
|
1635
|
+
transforming: false,
|
|
1636
|
+
writecb: null,
|
|
1637
|
+
writechunk: null,
|
|
1638
|
+
writeencoding: null
|
|
1639
|
+
};
|
|
1640
|
+
this._readableState.needReadable = true;
|
|
1641
|
+
this._readableState.sync = false;
|
|
1642
|
+
if (e) {
|
|
1643
|
+
if ("function" == typeof e.transform) this._transform = e.transform;
|
|
1644
|
+
if ("function" == typeof e.flush) this._flush = e.flush;
|
|
1645
|
+
}
|
|
1646
|
+
this.on("prefinish", prefinish);
|
|
1647
|
+
}
|
|
1648
|
+
function prefinish() {
|
|
1649
|
+
var e = this;
|
|
1650
|
+
if ("function" != typeof this._flush || this._readableState.destroyed) done(this, null, null);
|
|
1651
|
+
else this._flush(function(t, r) {
|
|
1652
|
+
done(e, t, r);
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
Transform.prototype.push = function(e, t) {
|
|
1656
|
+
this._transformState.needTransform = false;
|
|
1657
|
+
return f.prototype.push.call(this, e, t);
|
|
1658
|
+
};
|
|
1659
|
+
Transform.prototype._transform = function(e, t, r) {
|
|
1660
|
+
r(new n("_transform()"));
|
|
1661
|
+
};
|
|
1662
|
+
Transform.prototype._write = function(e, t, r) {
|
|
1663
|
+
var i = this._transformState;
|
|
1664
|
+
i.writecb = r;
|
|
1665
|
+
i.writechunk = e;
|
|
1666
|
+
i.writeencoding = t;
|
|
1667
|
+
if (!i.transforming) {
|
|
1668
|
+
var n = this._readableState;
|
|
1669
|
+
if (i.needTransform || n.needReadable || n.length < n.highWaterMark) this._read(n.highWaterMark);
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1672
|
+
Transform.prototype._read = function(e) {
|
|
1673
|
+
var t = this._transformState;
|
|
1674
|
+
if (null === t.writechunk || t.transforming) t.needTransform = true;
|
|
1675
|
+
else {
|
|
1676
|
+
t.transforming = true;
|
|
1677
|
+
this._transform(t.writechunk, t.writeencoding, t.afterTransform);
|
|
1678
|
+
}
|
|
1679
|
+
};
|
|
1680
|
+
Transform.prototype._destroy = function(e, t) {
|
|
1681
|
+
f.prototype._destroy.call(this, e, function(e) {
|
|
1682
|
+
t(e);
|
|
1683
|
+
});
|
|
1684
|
+
};
|
|
1685
|
+
function done(e, t, r) {
|
|
1686
|
+
if (t) return e.emit("error", t);
|
|
1687
|
+
if (null != r) e.push(r);
|
|
1688
|
+
if (e._writableState.length) throw new o;
|
|
1689
|
+
if (e._transformState.transforming) throw new a;
|
|
1690
|
+
return e.push(null);
|
|
1691
|
+
}
|
|
1692
|
+
},
|
|
1693
|
+
379: (e, t, r)=>{
|
|
1694
|
+
"use strict";
|
|
1695
|
+
e.exports = Writable;
|
|
1696
|
+
function CorkedRequest(e) {
|
|
1697
|
+
var t = this;
|
|
1698
|
+
this.next = null;
|
|
1699
|
+
this.entry = null;
|
|
1700
|
+
this.finish = function() {
|
|
1701
|
+
onCorkedFinish(t, e);
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
var i;
|
|
1705
|
+
Writable.WritableState = WritableState;
|
|
1706
|
+
var n = {
|
|
1707
|
+
deprecate: r(125)
|
|
1708
|
+
};
|
|
1709
|
+
var s = r(604);
|
|
1710
|
+
var a = r(300).Buffer;
|
|
1711
|
+
var o = global.Uint8Array || function() {};
|
|
1712
|
+
function _uint8ArrayToBuffer(e) {
|
|
1713
|
+
return a.from(e);
|
|
1714
|
+
}
|
|
1715
|
+
function _isUint8Array(e) {
|
|
1716
|
+
return a.isBuffer(e) || e instanceof o;
|
|
1717
|
+
}
|
|
1718
|
+
var f = r(97);
|
|
1719
|
+
var l = r(841), u = l.getHighWaterMark;
|
|
1720
|
+
var h = r(959).q, d = h.ERR_INVALID_ARG_TYPE, p = h.ERR_METHOD_NOT_IMPLEMENTED, _ = h.ERR_MULTIPLE_CALLBACK, b = h.ERR_STREAM_CANNOT_PIPE, g = h.ERR_STREAM_DESTROYED, y = h.ERR_STREAM_NULL_VALUES, m = h.ERR_STREAM_WRITE_AFTER_END, v = h.ERR_UNKNOWN_ENCODING;
|
|
1721
|
+
var w = f.errorOrDestroy;
|
|
1722
|
+
r(315)(Writable, s);
|
|
1723
|
+
function nop() {}
|
|
1724
|
+
function WritableState(e, t, n) {
|
|
1725
|
+
i = i || r(548);
|
|
1726
|
+
e = e || {};
|
|
1727
|
+
if ("boolean" != typeof n) n = t instanceof i;
|
|
1728
|
+
this.objectMode = !!e.objectMode;
|
|
1729
|
+
if (n) this.objectMode = this.objectMode || !!e.writableObjectMode;
|
|
1730
|
+
this.highWaterMark = u(this, e, "writableHighWaterMark", n);
|
|
1731
|
+
this.finalCalled = false;
|
|
1732
|
+
this.needDrain = false;
|
|
1733
|
+
this.ending = false;
|
|
1734
|
+
this.ended = false;
|
|
1735
|
+
this.finished = false;
|
|
1736
|
+
this.destroyed = false;
|
|
1737
|
+
var s = false === e.decodeStrings;
|
|
1738
|
+
this.decodeStrings = !s;
|
|
1739
|
+
this.defaultEncoding = e.defaultEncoding || "utf8";
|
|
1740
|
+
this.length = 0;
|
|
1741
|
+
this.writing = false;
|
|
1742
|
+
this.corked = 0;
|
|
1743
|
+
this.sync = true;
|
|
1744
|
+
this.bufferProcessing = false;
|
|
1745
|
+
this.onwrite = function(e) {
|
|
1746
|
+
onwrite(t, e);
|
|
1747
|
+
};
|
|
1748
|
+
this.writecb = null;
|
|
1749
|
+
this.writelen = 0;
|
|
1750
|
+
this.bufferedRequest = null;
|
|
1751
|
+
this.lastBufferedRequest = null;
|
|
1752
|
+
this.pendingcb = 0;
|
|
1753
|
+
this.prefinished = false;
|
|
1754
|
+
this.errorEmitted = false;
|
|
1755
|
+
this.emitClose = false !== e.emitClose;
|
|
1756
|
+
this.autoDestroy = !!e.autoDestroy;
|
|
1757
|
+
this.bufferedRequestCount = 0;
|
|
1758
|
+
this.corkedRequestsFree = new CorkedRequest(this);
|
|
1759
|
+
}
|
|
1760
|
+
WritableState.prototype.getBuffer = function() {
|
|
1761
|
+
var e = this.bufferedRequest;
|
|
1762
|
+
var t = [];
|
|
1763
|
+
while(e){
|
|
1764
|
+
t.push(e);
|
|
1765
|
+
e = e.next;
|
|
1766
|
+
}
|
|
1767
|
+
return t;
|
|
1768
|
+
};
|
|
1769
|
+
(function() {
|
|
1770
|
+
try {
|
|
1771
|
+
Object.defineProperty(WritableState.prototype, "buffer", {
|
|
1772
|
+
get: n.deprecate(function() {
|
|
1773
|
+
return this.getBuffer();
|
|
1774
|
+
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
1775
|
+
});
|
|
1776
|
+
} catch (e) {}
|
|
1777
|
+
})();
|
|
1778
|
+
var S;
|
|
1779
|
+
if ("function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance]) {
|
|
1780
|
+
S = Function.prototype[Symbol.hasInstance];
|
|
1781
|
+
Object.defineProperty(Writable, Symbol.hasInstance, {
|
|
1782
|
+
value: function(e) {
|
|
1783
|
+
if (S.call(this, e)) return true;
|
|
1784
|
+
if (this !== Writable) return false;
|
|
1785
|
+
return e && e._writableState instanceof WritableState;
|
|
1786
|
+
}
|
|
1787
|
+
});
|
|
1788
|
+
} else S = function(e) {
|
|
1789
|
+
return e instanceof this;
|
|
1790
|
+
};
|
|
1791
|
+
function Writable(e) {
|
|
1792
|
+
i = i || r(548);
|
|
1793
|
+
var t = this instanceof i;
|
|
1794
|
+
if (!t && !S.call(Writable, this)) return new Writable(e);
|
|
1795
|
+
this._writableState = new WritableState(e, this, t);
|
|
1796
|
+
this.writable = true;
|
|
1797
|
+
if (e) {
|
|
1798
|
+
if ("function" == typeof e.write) this._write = e.write;
|
|
1799
|
+
if ("function" == typeof e.writev) this._writev = e.writev;
|
|
1800
|
+
if ("function" == typeof e.destroy) this._destroy = e.destroy;
|
|
1801
|
+
if ("function" == typeof e.final) this._final = e.final;
|
|
1802
|
+
}
|
|
1803
|
+
s.call(this);
|
|
1804
|
+
}
|
|
1805
|
+
Writable.prototype.pipe = function() {
|
|
1806
|
+
w(this, new b);
|
|
1807
|
+
};
|
|
1808
|
+
function writeAfterEnd(e, t) {
|
|
1809
|
+
var r = new m;
|
|
1810
|
+
w(e, r);
|
|
1811
|
+
process.nextTick(t, r);
|
|
1812
|
+
}
|
|
1813
|
+
function validChunk(e, t, r, i) {
|
|
1814
|
+
var n;
|
|
1815
|
+
if (null === r) n = new y;
|
|
1816
|
+
else if ("string" != typeof r && !t.objectMode) n = new d("chunk", [
|
|
1817
|
+
"string",
|
|
1818
|
+
"Buffer"
|
|
1819
|
+
], r);
|
|
1820
|
+
if (n) {
|
|
1821
|
+
w(e, n);
|
|
1822
|
+
process.nextTick(i, n);
|
|
1823
|
+
return false;
|
|
1824
|
+
}
|
|
1825
|
+
return true;
|
|
1826
|
+
}
|
|
1827
|
+
Writable.prototype.write = function(e, t, r) {
|
|
1828
|
+
var i = this._writableState;
|
|
1829
|
+
var n = false;
|
|
1830
|
+
var s = !i.objectMode && _isUint8Array(e);
|
|
1831
|
+
if (s && !a.isBuffer(e)) e = _uint8ArrayToBuffer(e);
|
|
1832
|
+
if ("function" == typeof t) {
|
|
1833
|
+
r = t;
|
|
1834
|
+
t = null;
|
|
1835
|
+
}
|
|
1836
|
+
if (s) t = "buffer";
|
|
1837
|
+
else if (!t) t = i.defaultEncoding;
|
|
1838
|
+
if ("function" != typeof r) r = nop;
|
|
1839
|
+
if (i.ending) writeAfterEnd(this, r);
|
|
1840
|
+
else if (s || validChunk(this, i, e, r)) {
|
|
1841
|
+
i.pendingcb++;
|
|
1842
|
+
n = writeOrBuffer(this, i, s, e, t, r);
|
|
1843
|
+
}
|
|
1844
|
+
return n;
|
|
1845
|
+
};
|
|
1846
|
+
Writable.prototype.cork = function() {
|
|
1847
|
+
this._writableState.corked++;
|
|
1848
|
+
};
|
|
1849
|
+
Writable.prototype.uncork = function() {
|
|
1850
|
+
var e = this._writableState;
|
|
1851
|
+
if (e.corked) {
|
|
1852
|
+
e.corked--;
|
|
1853
|
+
if (!e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest) clearBuffer(this, e);
|
|
1854
|
+
}
|
|
1855
|
+
};
|
|
1856
|
+
Writable.prototype.setDefaultEncoding = function(e) {
|
|
1857
|
+
if ("string" == typeof e) e = e.toLowerCase();
|
|
1858
|
+
if (!([
|
|
1859
|
+
"hex",
|
|
1860
|
+
"utf8",
|
|
1861
|
+
"utf-8",
|
|
1862
|
+
"ascii",
|
|
1863
|
+
"binary",
|
|
1864
|
+
"base64",
|
|
1865
|
+
"ucs2",
|
|
1866
|
+
"ucs-2",
|
|
1867
|
+
"utf16le",
|
|
1868
|
+
"utf-16le",
|
|
1869
|
+
"raw"
|
|
1870
|
+
].indexOf((e + "").toLowerCase()) > -1)) throw new v(e);
|
|
1871
|
+
this._writableState.defaultEncoding = e;
|
|
1872
|
+
return this;
|
|
1873
|
+
};
|
|
1874
|
+
Object.defineProperty(Writable.prototype, "writableBuffer", {
|
|
1875
|
+
enumerable: false,
|
|
1876
|
+
get: function() {
|
|
1877
|
+
return this._writableState && this._writableState.getBuffer();
|
|
1878
|
+
}
|
|
1879
|
+
});
|
|
1880
|
+
function decodeChunk(e, t, r) {
|
|
1881
|
+
if (!e.objectMode && false !== e.decodeStrings && "string" == typeof t) t = a.from(t, r);
|
|
1882
|
+
return t;
|
|
1883
|
+
}
|
|
1884
|
+
Object.defineProperty(Writable.prototype, "writableHighWaterMark", {
|
|
1885
|
+
enumerable: false,
|
|
1886
|
+
get: function() {
|
|
1887
|
+
return this._writableState.highWaterMark;
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
function writeOrBuffer(e, t, r, i, n, s) {
|
|
1891
|
+
if (!r) {
|
|
1892
|
+
var a = decodeChunk(t, i, n);
|
|
1893
|
+
if (i !== a) {
|
|
1894
|
+
r = true;
|
|
1895
|
+
n = "buffer";
|
|
1896
|
+
i = a;
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
var o = t.objectMode ? 1 : i.length;
|
|
1900
|
+
t.length += o;
|
|
1901
|
+
var f = t.length < t.highWaterMark;
|
|
1902
|
+
if (!f) t.needDrain = true;
|
|
1903
|
+
if (t.writing || t.corked) {
|
|
1904
|
+
var l = t.lastBufferedRequest;
|
|
1905
|
+
t.lastBufferedRequest = {
|
|
1906
|
+
chunk: i,
|
|
1907
|
+
encoding: n,
|
|
1908
|
+
isBuf: r,
|
|
1909
|
+
callback: s,
|
|
1910
|
+
next: null
|
|
1911
|
+
};
|
|
1912
|
+
if (l) l.next = t.lastBufferedRequest;
|
|
1913
|
+
else t.bufferedRequest = t.lastBufferedRequest;
|
|
1914
|
+
t.bufferedRequestCount += 1;
|
|
1915
|
+
} else doWrite(e, t, false, o, i, n, s);
|
|
1916
|
+
return f;
|
|
1917
|
+
}
|
|
1918
|
+
function doWrite(e, t, r, i, n, s, a) {
|
|
1919
|
+
t.writelen = i;
|
|
1920
|
+
t.writecb = a;
|
|
1921
|
+
t.writing = true;
|
|
1922
|
+
t.sync = true;
|
|
1923
|
+
if (t.destroyed) t.onwrite(new g("write"));
|
|
1924
|
+
else if (r) e._writev(n, t.onwrite);
|
|
1925
|
+
else e._write(n, s, t.onwrite);
|
|
1926
|
+
t.sync = false;
|
|
1927
|
+
}
|
|
1928
|
+
function onwriteError(e, t, r, i, n) {
|
|
1929
|
+
--t.pendingcb;
|
|
1930
|
+
if (r) {
|
|
1931
|
+
process.nextTick(n, i);
|
|
1932
|
+
process.nextTick(finishMaybe, e, t);
|
|
1933
|
+
e._writableState.errorEmitted = true;
|
|
1934
|
+
w(e, i);
|
|
1935
|
+
} else {
|
|
1936
|
+
n(i);
|
|
1937
|
+
e._writableState.errorEmitted = true;
|
|
1938
|
+
w(e, i);
|
|
1939
|
+
finishMaybe(e, t);
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
function onwriteStateUpdate(e) {
|
|
1943
|
+
e.writing = false;
|
|
1944
|
+
e.writecb = null;
|
|
1945
|
+
e.length -= e.writelen;
|
|
1946
|
+
e.writelen = 0;
|
|
1947
|
+
}
|
|
1948
|
+
function onwrite(e, t) {
|
|
1949
|
+
var r = e._writableState;
|
|
1950
|
+
var i = r.sync;
|
|
1951
|
+
var n = r.writecb;
|
|
1952
|
+
if ("function" != typeof n) throw new _;
|
|
1953
|
+
onwriteStateUpdate(r);
|
|
1954
|
+
if (t) onwriteError(e, r, i, t, n);
|
|
1955
|
+
else {
|
|
1956
|
+
var s = needFinish(r) || e.destroyed;
|
|
1957
|
+
if (!s && !r.corked && !r.bufferProcessing && r.bufferedRequest) clearBuffer(e, r);
|
|
1958
|
+
if (i) process.nextTick(afterWrite, e, r, s, n);
|
|
1959
|
+
else afterWrite(e, r, s, n);
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
function afterWrite(e, t, r, i) {
|
|
1963
|
+
if (!r) onwriteDrain(e, t);
|
|
1964
|
+
t.pendingcb--;
|
|
1965
|
+
i();
|
|
1966
|
+
finishMaybe(e, t);
|
|
1967
|
+
}
|
|
1968
|
+
function onwriteDrain(e, t) {
|
|
1969
|
+
if (0 === t.length && t.needDrain) {
|
|
1970
|
+
t.needDrain = false;
|
|
1971
|
+
e.emit("drain");
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
function clearBuffer(e, t) {
|
|
1975
|
+
t.bufferProcessing = true;
|
|
1976
|
+
var r = t.bufferedRequest;
|
|
1977
|
+
if (e._writev && r && r.next) {
|
|
1978
|
+
var i = t.bufferedRequestCount;
|
|
1979
|
+
var n = new Array(i);
|
|
1980
|
+
var s = t.corkedRequestsFree;
|
|
1981
|
+
s.entry = r;
|
|
1982
|
+
var a = 0;
|
|
1983
|
+
var o = true;
|
|
1984
|
+
while(r){
|
|
1985
|
+
n[a] = r;
|
|
1986
|
+
if (!r.isBuf) o = false;
|
|
1987
|
+
r = r.next;
|
|
1988
|
+
a += 1;
|
|
1989
|
+
}
|
|
1990
|
+
n.allBuffers = o;
|
|
1991
|
+
doWrite(e, t, true, t.length, n, "", s.finish);
|
|
1992
|
+
t.pendingcb++;
|
|
1993
|
+
t.lastBufferedRequest = null;
|
|
1994
|
+
if (s.next) {
|
|
1995
|
+
t.corkedRequestsFree = s.next;
|
|
1996
|
+
s.next = null;
|
|
1997
|
+
} else t.corkedRequestsFree = new CorkedRequest(t);
|
|
1998
|
+
t.bufferedRequestCount = 0;
|
|
1999
|
+
} else {
|
|
2000
|
+
while(r){
|
|
2001
|
+
var f = r.chunk;
|
|
2002
|
+
var l = r.encoding;
|
|
2003
|
+
var u = r.callback;
|
|
2004
|
+
var h = t.objectMode ? 1 : f.length;
|
|
2005
|
+
doWrite(e, t, false, h, f, l, u);
|
|
2006
|
+
r = r.next;
|
|
2007
|
+
t.bufferedRequestCount--;
|
|
2008
|
+
if (t.writing) break;
|
|
2009
|
+
}
|
|
2010
|
+
if (null === r) t.lastBufferedRequest = null;
|
|
2011
|
+
}
|
|
2012
|
+
t.bufferedRequest = r;
|
|
2013
|
+
t.bufferProcessing = false;
|
|
2014
|
+
}
|
|
2015
|
+
Writable.prototype._write = function(e, t, r) {
|
|
2016
|
+
r(new p("_write()"));
|
|
2017
|
+
};
|
|
2018
|
+
Writable.prototype._writev = null;
|
|
2019
|
+
Writable.prototype.end = function(e, t, r) {
|
|
2020
|
+
var i = this._writableState;
|
|
2021
|
+
if ("function" == typeof e) {
|
|
2022
|
+
r = e;
|
|
2023
|
+
e = null;
|
|
2024
|
+
t = null;
|
|
2025
|
+
} else if ("function" == typeof t) {
|
|
2026
|
+
r = t;
|
|
2027
|
+
t = null;
|
|
2028
|
+
}
|
|
2029
|
+
if (null != e) this.write(e, t);
|
|
2030
|
+
if (i.corked) {
|
|
2031
|
+
i.corked = 1;
|
|
2032
|
+
this.uncork();
|
|
2033
|
+
}
|
|
2034
|
+
if (!i.ending) endWritable(this, i, r);
|
|
2035
|
+
return this;
|
|
2036
|
+
};
|
|
2037
|
+
Object.defineProperty(Writable.prototype, "writableLength", {
|
|
2038
|
+
enumerable: false,
|
|
2039
|
+
get: function() {
|
|
2040
|
+
return this._writableState.length;
|
|
2041
|
+
}
|
|
2042
|
+
});
|
|
2043
|
+
function needFinish(e) {
|
|
2044
|
+
return e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing;
|
|
2045
|
+
}
|
|
2046
|
+
function callFinal(e, t) {
|
|
2047
|
+
e._final(function(r) {
|
|
2048
|
+
t.pendingcb--;
|
|
2049
|
+
if (r) w(e, r);
|
|
2050
|
+
t.prefinished = true;
|
|
2051
|
+
e.emit("prefinish");
|
|
2052
|
+
finishMaybe(e, t);
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
2055
|
+
function prefinish(e, t) {
|
|
2056
|
+
if (!t.prefinished && !t.finalCalled) if ("function" != typeof e._final || t.destroyed) {
|
|
2057
|
+
t.prefinished = true;
|
|
2058
|
+
e.emit("prefinish");
|
|
2059
|
+
} else {
|
|
2060
|
+
t.pendingcb++;
|
|
2061
|
+
t.finalCalled = true;
|
|
2062
|
+
process.nextTick(callFinal, e, t);
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
function finishMaybe(e, t) {
|
|
2066
|
+
var r = needFinish(t);
|
|
2067
|
+
if (r) {
|
|
2068
|
+
prefinish(e, t);
|
|
2069
|
+
if (0 === t.pendingcb) {
|
|
2070
|
+
t.finished = true;
|
|
2071
|
+
e.emit("finish");
|
|
2072
|
+
if (t.autoDestroy) {
|
|
2073
|
+
var i = e._readableState;
|
|
2074
|
+
if (!i || i.autoDestroy && i.endEmitted) e.destroy();
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
return r;
|
|
2079
|
+
}
|
|
2080
|
+
function endWritable(e, t, r) {
|
|
2081
|
+
t.ending = true;
|
|
2082
|
+
finishMaybe(e, t);
|
|
2083
|
+
if (r) if (t.finished) process.nextTick(r);
|
|
2084
|
+
else e.once("finish", r);
|
|
2085
|
+
t.ended = true;
|
|
2086
|
+
e.writable = false;
|
|
2087
|
+
}
|
|
2088
|
+
function onCorkedFinish(e, t, r) {
|
|
2089
|
+
var i = e.entry;
|
|
2090
|
+
e.entry = null;
|
|
2091
|
+
while(i){
|
|
2092
|
+
var n = i.callback;
|
|
2093
|
+
t.pendingcb--;
|
|
2094
|
+
n(r);
|
|
2095
|
+
i = i.next;
|
|
2096
|
+
}
|
|
2097
|
+
t.corkedRequestsFree.next = e;
|
|
2098
|
+
}
|
|
2099
|
+
Object.defineProperty(Writable.prototype, "destroyed", {
|
|
2100
|
+
enumerable: false,
|
|
2101
|
+
get: function() {
|
|
2102
|
+
if (void 0 === this._writableState) return false;
|
|
2103
|
+
return this._writableState.destroyed;
|
|
2104
|
+
},
|
|
2105
|
+
set: function(e) {
|
|
2106
|
+
if (!this._writableState) return;
|
|
2107
|
+
this._writableState.destroyed = e;
|
|
2108
|
+
}
|
|
2109
|
+
});
|
|
2110
|
+
Writable.prototype.destroy = f.destroy;
|
|
2111
|
+
Writable.prototype._undestroy = f.undestroy;
|
|
2112
|
+
Writable.prototype._destroy = function(e, t) {
|
|
2113
|
+
t(e);
|
|
2114
|
+
};
|
|
2115
|
+
},
|
|
2116
|
+
87: (e, t, r)=>{
|
|
2117
|
+
"use strict";
|
|
2118
|
+
var i;
|
|
2119
|
+
function _defineProperty(e, t, r) {
|
|
2120
|
+
if (t in e) Object.defineProperty(e, t, {
|
|
2121
|
+
value: r,
|
|
2122
|
+
enumerable: true,
|
|
2123
|
+
configurable: true,
|
|
2124
|
+
writable: true
|
|
2125
|
+
});
|
|
2126
|
+
else e[t] = r;
|
|
2127
|
+
return e;
|
|
2128
|
+
}
|
|
2129
|
+
var n = r(641);
|
|
2130
|
+
var s = Symbol("lastResolve");
|
|
2131
|
+
var a = Symbol("lastReject");
|
|
2132
|
+
var o = Symbol("error");
|
|
2133
|
+
var f = Symbol("ended");
|
|
2134
|
+
var l = Symbol("lastPromise");
|
|
2135
|
+
var u = Symbol("handlePromise");
|
|
2136
|
+
var h = Symbol("stream");
|
|
2137
|
+
function createIterResult(e, t) {
|
|
2138
|
+
return {
|
|
2139
|
+
value: e,
|
|
2140
|
+
done: t
|
|
2141
|
+
};
|
|
2142
|
+
}
|
|
2143
|
+
function readAndResolve(e) {
|
|
2144
|
+
var t = e[s];
|
|
2145
|
+
if (null !== t) {
|
|
2146
|
+
var r = e[h].read();
|
|
2147
|
+
if (null !== r) {
|
|
2148
|
+
e[l] = null;
|
|
2149
|
+
e[s] = null;
|
|
2150
|
+
e[a] = null;
|
|
2151
|
+
t(createIterResult(r, false));
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
function onReadable(e) {
|
|
2156
|
+
process.nextTick(readAndResolve, e);
|
|
2157
|
+
}
|
|
2158
|
+
function wrapForNext(e, t) {
|
|
2159
|
+
return function(r, i) {
|
|
2160
|
+
e.then(function() {
|
|
2161
|
+
if (t[f]) return void r(createIterResult(void 0, true));
|
|
2162
|
+
t[u](r, i);
|
|
2163
|
+
}, i);
|
|
2164
|
+
};
|
|
2165
|
+
}
|
|
2166
|
+
var d = Object.getPrototypeOf(function() {});
|
|
2167
|
+
var p = Object.setPrototypeOf((i = {
|
|
2168
|
+
get stream () {
|
|
2169
|
+
return this[h];
|
|
2170
|
+
},
|
|
2171
|
+
next: function() {
|
|
2172
|
+
var e = this;
|
|
2173
|
+
var t = this[o];
|
|
2174
|
+
if (null !== t) return Promise.reject(t);
|
|
2175
|
+
if (this[f]) return Promise.resolve(createIterResult(void 0, true));
|
|
2176
|
+
if (this[h].destroyed) return new Promise(function(t, r) {
|
|
2177
|
+
process.nextTick(function() {
|
|
2178
|
+
if (e[o]) r(e[o]);
|
|
2179
|
+
else t(createIterResult(void 0, true));
|
|
2180
|
+
});
|
|
2181
|
+
});
|
|
2182
|
+
var r = this[l];
|
|
2183
|
+
var i;
|
|
2184
|
+
if (r) i = new Promise(wrapForNext(r, this));
|
|
2185
|
+
else {
|
|
2186
|
+
var n = this[h].read();
|
|
2187
|
+
if (null !== n) return Promise.resolve(createIterResult(n, false));
|
|
2188
|
+
i = new Promise(this[u]);
|
|
2189
|
+
}
|
|
2190
|
+
this[l] = i;
|
|
2191
|
+
return i;
|
|
2192
|
+
}
|
|
2193
|
+
}, _defineProperty(i, Symbol.asyncIterator, function() {
|
|
2194
|
+
return this;
|
|
2195
|
+
}), _defineProperty(i, "return", function() {
|
|
2196
|
+
var e = this;
|
|
2197
|
+
return new Promise(function(t, r) {
|
|
2198
|
+
e[h].destroy(null, function(e) {
|
|
2199
|
+
if (e) return void r(e);
|
|
2200
|
+
t(createIterResult(void 0, true));
|
|
2201
|
+
});
|
|
2202
|
+
});
|
|
2203
|
+
}), i), d);
|
|
2204
|
+
var _ = function(e) {
|
|
2205
|
+
var t;
|
|
2206
|
+
var r = Object.create(p, (t = {}, _defineProperty(t, h, {
|
|
2207
|
+
value: e,
|
|
2208
|
+
writable: true
|
|
2209
|
+
}), _defineProperty(t, s, {
|
|
2210
|
+
value: null,
|
|
2211
|
+
writable: true
|
|
2212
|
+
}), _defineProperty(t, a, {
|
|
2213
|
+
value: null,
|
|
2214
|
+
writable: true
|
|
2215
|
+
}), _defineProperty(t, o, {
|
|
2216
|
+
value: null,
|
|
2217
|
+
writable: true
|
|
2218
|
+
}), _defineProperty(t, f, {
|
|
2219
|
+
value: e._readableState.endEmitted,
|
|
2220
|
+
writable: true
|
|
2221
|
+
}), _defineProperty(t, u, {
|
|
2222
|
+
value: function(e, t) {
|
|
2223
|
+
var i = r[h].read();
|
|
2224
|
+
if (i) {
|
|
2225
|
+
r[l] = null;
|
|
2226
|
+
r[s] = null;
|
|
2227
|
+
r[a] = null;
|
|
2228
|
+
e(createIterResult(i, false));
|
|
2229
|
+
} else {
|
|
2230
|
+
r[s] = e;
|
|
2231
|
+
r[a] = t;
|
|
2232
|
+
}
|
|
2233
|
+
},
|
|
2234
|
+
writable: true
|
|
2235
|
+
}), t));
|
|
2236
|
+
r[l] = null;
|
|
2237
|
+
n(e, function(e) {
|
|
2238
|
+
if (e && "ERR_STREAM_PREMATURE_CLOSE" !== e.code) {
|
|
2239
|
+
var t = r[a];
|
|
2240
|
+
if (null !== t) {
|
|
2241
|
+
r[l] = null;
|
|
2242
|
+
r[s] = null;
|
|
2243
|
+
r[a] = null;
|
|
2244
|
+
t(e);
|
|
2245
|
+
}
|
|
2246
|
+
r[o] = e;
|
|
2247
|
+
return;
|
|
2248
|
+
}
|
|
2249
|
+
var i = r[s];
|
|
2250
|
+
if (null !== i) {
|
|
2251
|
+
r[l] = null;
|
|
2252
|
+
r[s] = null;
|
|
2253
|
+
r[a] = null;
|
|
2254
|
+
i(createIterResult(void 0, true));
|
|
2255
|
+
}
|
|
2256
|
+
r[f] = true;
|
|
2257
|
+
});
|
|
2258
|
+
e.on("readable", onReadable.bind(null, r));
|
|
2259
|
+
return r;
|
|
2260
|
+
};
|
|
2261
|
+
e.exports = _;
|
|
2262
|
+
},
|
|
2263
|
+
706: (e, t, r)=>{
|
|
2264
|
+
"use strict";
|
|
2265
|
+
function ownKeys(e, t) {
|
|
2266
|
+
var r = Object.keys(e);
|
|
2267
|
+
if (Object.getOwnPropertySymbols) {
|
|
2268
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
2269
|
+
if (t) i = i.filter(function(t) {
|
|
2270
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
2271
|
+
});
|
|
2272
|
+
r.push.apply(r, i);
|
|
2273
|
+
}
|
|
2274
|
+
return r;
|
|
2275
|
+
}
|
|
2276
|
+
function _objectSpread(e) {
|
|
2277
|
+
for(var t = 1; t < arguments.length; t++){
|
|
2278
|
+
var r = null != arguments[t] ? arguments[t] : {};
|
|
2279
|
+
if (t % 2) ownKeys(Object(r), true).forEach(function(t) {
|
|
2280
|
+
_defineProperty(e, t, r[t]);
|
|
2281
|
+
});
|
|
2282
|
+
else if (Object.getOwnPropertyDescriptors) Object.defineProperties(e, Object.getOwnPropertyDescriptors(r));
|
|
2283
|
+
else ownKeys(Object(r)).forEach(function(t) {
|
|
2284
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2287
|
+
return e;
|
|
2288
|
+
}
|
|
2289
|
+
function _defineProperty(e, t, r) {
|
|
2290
|
+
if (t in e) Object.defineProperty(e, t, {
|
|
2291
|
+
value: r,
|
|
2292
|
+
enumerable: true,
|
|
2293
|
+
configurable: true,
|
|
2294
|
+
writable: true
|
|
2295
|
+
});
|
|
2296
|
+
else e[t] = r;
|
|
2297
|
+
return e;
|
|
2298
|
+
}
|
|
2299
|
+
function _classCallCheck(e, t) {
|
|
2300
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2301
|
+
}
|
|
2302
|
+
function _defineProperties(e, t) {
|
|
2303
|
+
for(var r = 0; r < t.length; r++){
|
|
2304
|
+
var i = t[r];
|
|
2305
|
+
i.enumerable = i.enumerable || false;
|
|
2306
|
+
i.configurable = true;
|
|
2307
|
+
if ("value" in i) i.writable = true;
|
|
2308
|
+
Object.defineProperty(e, i.key, i);
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
function _createClass(e, t, r) {
|
|
2312
|
+
if (t) _defineProperties(e.prototype, t);
|
|
2313
|
+
if (r) _defineProperties(e, r);
|
|
2314
|
+
return e;
|
|
2315
|
+
}
|
|
2316
|
+
var i = r(300), n = i.Buffer;
|
|
2317
|
+
var s = r(837), a = s.inspect;
|
|
2318
|
+
var o = a && a.custom || "inspect";
|
|
2319
|
+
function copyBuffer(e, t, r) {
|
|
2320
|
+
n.prototype.copy.call(e, t, r);
|
|
2321
|
+
}
|
|
2322
|
+
e.exports = function() {
|
|
2323
|
+
function BufferList() {
|
|
2324
|
+
_classCallCheck(this, BufferList);
|
|
2325
|
+
this.head = null;
|
|
2326
|
+
this.tail = null;
|
|
2327
|
+
this.length = 0;
|
|
2328
|
+
}
|
|
2329
|
+
_createClass(BufferList, [
|
|
2330
|
+
{
|
|
2331
|
+
key: "push",
|
|
2332
|
+
value: function(e) {
|
|
2333
|
+
var t = {
|
|
2334
|
+
data: e,
|
|
2335
|
+
next: null
|
|
2336
|
+
};
|
|
2337
|
+
if (this.length > 0) this.tail.next = t;
|
|
2338
|
+
else this.head = t;
|
|
2339
|
+
this.tail = t;
|
|
2340
|
+
++this.length;
|
|
2341
|
+
}
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
key: "unshift",
|
|
2345
|
+
value: function(e) {
|
|
2346
|
+
var t = {
|
|
2347
|
+
data: e,
|
|
2348
|
+
next: this.head
|
|
2349
|
+
};
|
|
2350
|
+
if (0 === this.length) this.tail = t;
|
|
2351
|
+
this.head = t;
|
|
2352
|
+
++this.length;
|
|
2353
|
+
}
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
key: "shift",
|
|
2357
|
+
value: function() {
|
|
2358
|
+
if (0 === this.length) return;
|
|
2359
|
+
var e = this.head.data;
|
|
2360
|
+
if (1 === this.length) this.head = this.tail = null;
|
|
2361
|
+
else this.head = this.head.next;
|
|
2362
|
+
--this.length;
|
|
2363
|
+
return e;
|
|
2364
|
+
}
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
key: "clear",
|
|
2368
|
+
value: function() {
|
|
2369
|
+
this.head = this.tail = null;
|
|
2370
|
+
this.length = 0;
|
|
2371
|
+
}
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
key: "join",
|
|
2375
|
+
value: function(e) {
|
|
2376
|
+
if (0 === this.length) return "";
|
|
2377
|
+
var t = this.head;
|
|
2378
|
+
var r = "" + t.data;
|
|
2379
|
+
while(t = t.next)r += e + t.data;
|
|
2380
|
+
return r;
|
|
2381
|
+
}
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
key: "concat",
|
|
2385
|
+
value: function(e) {
|
|
2386
|
+
if (0 === this.length) return n.alloc(0);
|
|
2387
|
+
var t = n.allocUnsafe(e >>> 0);
|
|
2388
|
+
var r = this.head;
|
|
2389
|
+
var i = 0;
|
|
2390
|
+
while(r){
|
|
2391
|
+
copyBuffer(r.data, t, i);
|
|
2392
|
+
i += r.data.length;
|
|
2393
|
+
r = r.next;
|
|
2394
|
+
}
|
|
2395
|
+
return t;
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
key: "consume",
|
|
2400
|
+
value: function(e, t) {
|
|
2401
|
+
var r;
|
|
2402
|
+
if (e < this.head.data.length) {
|
|
2403
|
+
r = this.head.data.slice(0, e);
|
|
2404
|
+
this.head.data = this.head.data.slice(e);
|
|
2405
|
+
} else r = e === this.head.data.length ? this.shift() : t ? this._getString(e) : this._getBuffer(e);
|
|
2406
|
+
return r;
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
key: "first",
|
|
2411
|
+
value: function() {
|
|
2412
|
+
return this.head.data;
|
|
2413
|
+
}
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
key: "_getString",
|
|
2417
|
+
value: function(e) {
|
|
2418
|
+
var t = this.head;
|
|
2419
|
+
var r = 1;
|
|
2420
|
+
var i = t.data;
|
|
2421
|
+
e -= i.length;
|
|
2422
|
+
while(t = t.next){
|
|
2423
|
+
var n = t.data;
|
|
2424
|
+
var s = e > n.length ? n.length : e;
|
|
2425
|
+
if (s === n.length) i += n;
|
|
2426
|
+
else i += n.slice(0, e);
|
|
2427
|
+
e -= s;
|
|
2428
|
+
if (0 === e) {
|
|
2429
|
+
if (s === n.length) {
|
|
2430
|
+
++r;
|
|
2431
|
+
if (t.next) this.head = t.next;
|
|
2432
|
+
else this.head = this.tail = null;
|
|
2433
|
+
} else {
|
|
2434
|
+
this.head = t;
|
|
2435
|
+
t.data = n.slice(s);
|
|
2436
|
+
}
|
|
2437
|
+
break;
|
|
2438
|
+
}
|
|
2439
|
+
++r;
|
|
2440
|
+
}
|
|
2441
|
+
this.length -= r;
|
|
2442
|
+
return i;
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
key: "_getBuffer",
|
|
2447
|
+
value: function(e) {
|
|
2448
|
+
var t = n.allocUnsafe(e);
|
|
2449
|
+
var r = this.head;
|
|
2450
|
+
var i = 1;
|
|
2451
|
+
r.data.copy(t);
|
|
2452
|
+
e -= r.data.length;
|
|
2453
|
+
while(r = r.next){
|
|
2454
|
+
var s = r.data;
|
|
2455
|
+
var a = e > s.length ? s.length : e;
|
|
2456
|
+
s.copy(t, t.length - e, 0, a);
|
|
2457
|
+
e -= a;
|
|
2458
|
+
if (0 === e) {
|
|
2459
|
+
if (a === s.length) {
|
|
2460
|
+
++i;
|
|
2461
|
+
if (r.next) this.head = r.next;
|
|
2462
|
+
else this.head = this.tail = null;
|
|
2463
|
+
} else {
|
|
2464
|
+
this.head = r;
|
|
2465
|
+
r.data = s.slice(a);
|
|
2466
|
+
}
|
|
2467
|
+
break;
|
|
2468
|
+
}
|
|
2469
|
+
++i;
|
|
2470
|
+
}
|
|
2471
|
+
this.length -= i;
|
|
2472
|
+
return t;
|
|
2473
|
+
}
|
|
2474
|
+
},
|
|
2475
|
+
{
|
|
2476
|
+
key: o,
|
|
2477
|
+
value: function(e, t) {
|
|
2478
|
+
return a(this, _objectSpread({}, t, {
|
|
2479
|
+
depth: 0,
|
|
2480
|
+
customInspect: false
|
|
2481
|
+
}));
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
]);
|
|
2485
|
+
return BufferList;
|
|
2486
|
+
}();
|
|
2487
|
+
},
|
|
2488
|
+
97: (e)=>{
|
|
2489
|
+
"use strict";
|
|
2490
|
+
function destroy(e, t) {
|
|
2491
|
+
var r = this;
|
|
2492
|
+
var i = this._readableState && this._readableState.destroyed;
|
|
2493
|
+
var n = this._writableState && this._writableState.destroyed;
|
|
2494
|
+
if (i || n) {
|
|
2495
|
+
if (t) t(e);
|
|
2496
|
+
else if (e) if (this._writableState) {
|
|
2497
|
+
if (!this._writableState.errorEmitted) {
|
|
2498
|
+
this._writableState.errorEmitted = true;
|
|
2499
|
+
process.nextTick(emitErrorNT, this, e);
|
|
2500
|
+
}
|
|
2501
|
+
} else process.nextTick(emitErrorNT, this, e);
|
|
2502
|
+
return this;
|
|
2503
|
+
}
|
|
2504
|
+
if (this._readableState) this._readableState.destroyed = true;
|
|
2505
|
+
if (this._writableState) this._writableState.destroyed = true;
|
|
2506
|
+
this._destroy(e || null, function(e) {
|
|
2507
|
+
if (!t && e) if (r._writableState) if (r._writableState.errorEmitted) process.nextTick(emitCloseNT, r);
|
|
2508
|
+
else {
|
|
2509
|
+
r._writableState.errorEmitted = true;
|
|
2510
|
+
process.nextTick(emitErrorAndCloseNT, r, e);
|
|
2511
|
+
}
|
|
2512
|
+
else process.nextTick(emitErrorAndCloseNT, r, e);
|
|
2513
|
+
else if (t) {
|
|
2514
|
+
process.nextTick(emitCloseNT, r);
|
|
2515
|
+
t(e);
|
|
2516
|
+
} else process.nextTick(emitCloseNT, r);
|
|
2517
|
+
});
|
|
2518
|
+
return this;
|
|
2519
|
+
}
|
|
2520
|
+
function emitErrorAndCloseNT(e, t) {
|
|
2521
|
+
emitErrorNT(e, t);
|
|
2522
|
+
emitCloseNT(e);
|
|
2523
|
+
}
|
|
2524
|
+
function emitCloseNT(e) {
|
|
2525
|
+
if (e._writableState && !e._writableState.emitClose) return;
|
|
2526
|
+
if (e._readableState && !e._readableState.emitClose) return;
|
|
2527
|
+
e.emit("close");
|
|
2528
|
+
}
|
|
2529
|
+
function undestroy() {
|
|
2530
|
+
if (this._readableState) {
|
|
2531
|
+
this._readableState.destroyed = false;
|
|
2532
|
+
this._readableState.reading = false;
|
|
2533
|
+
this._readableState.ended = false;
|
|
2534
|
+
this._readableState.endEmitted = false;
|
|
2535
|
+
}
|
|
2536
|
+
if (this._writableState) {
|
|
2537
|
+
this._writableState.destroyed = false;
|
|
2538
|
+
this._writableState.ended = false;
|
|
2539
|
+
this._writableState.ending = false;
|
|
2540
|
+
this._writableState.finalCalled = false;
|
|
2541
|
+
this._writableState.prefinished = false;
|
|
2542
|
+
this._writableState.finished = false;
|
|
2543
|
+
this._writableState.errorEmitted = false;
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
function emitErrorNT(e, t) {
|
|
2547
|
+
e.emit("error", t);
|
|
2548
|
+
}
|
|
2549
|
+
function errorOrDestroy(e, t) {
|
|
2550
|
+
var r = e._readableState;
|
|
2551
|
+
var i = e._writableState;
|
|
2552
|
+
if (r && r.autoDestroy || i && i.autoDestroy) e.destroy(t);
|
|
2553
|
+
else e.emit("error", t);
|
|
2554
|
+
}
|
|
2555
|
+
e.exports = {
|
|
2556
|
+
destroy: destroy,
|
|
2557
|
+
undestroy: undestroy,
|
|
2558
|
+
errorOrDestroy: errorOrDestroy
|
|
2559
|
+
};
|
|
2560
|
+
},
|
|
2561
|
+
641: (e, t, r)=>{
|
|
2562
|
+
"use strict";
|
|
2563
|
+
var i = r(959).q.ERR_STREAM_PREMATURE_CLOSE;
|
|
2564
|
+
function once(e) {
|
|
2565
|
+
var t = false;
|
|
2566
|
+
return function() {
|
|
2567
|
+
if (t) return;
|
|
2568
|
+
t = true;
|
|
2569
|
+
for(var r = arguments.length, i = new Array(r), n = 0; n < r; n++)i[n] = arguments[n];
|
|
2570
|
+
e.apply(this, i);
|
|
2571
|
+
};
|
|
2572
|
+
}
|
|
2573
|
+
function noop() {}
|
|
2574
|
+
function isRequest(e) {
|
|
2575
|
+
return e.setHeader && "function" == typeof e.abort;
|
|
2576
|
+
}
|
|
2577
|
+
function eos(e, t, r) {
|
|
2578
|
+
if ("function" == typeof t) return eos(e, null, t);
|
|
2579
|
+
if (!t) t = {};
|
|
2580
|
+
r = once(r || noop);
|
|
2581
|
+
var n = t.readable || false !== t.readable && e.readable;
|
|
2582
|
+
var s = t.writable || false !== t.writable && e.writable;
|
|
2583
|
+
var a = function() {
|
|
2584
|
+
if (!e.writable) f();
|
|
2585
|
+
};
|
|
2586
|
+
var o = e._writableState && e._writableState.finished;
|
|
2587
|
+
var f = function() {
|
|
2588
|
+
s = false;
|
|
2589
|
+
o = true;
|
|
2590
|
+
if (!n) r.call(e);
|
|
2591
|
+
};
|
|
2592
|
+
var l = e._readableState && e._readableState.endEmitted;
|
|
2593
|
+
var u = function() {
|
|
2594
|
+
n = false;
|
|
2595
|
+
l = true;
|
|
2596
|
+
if (!s) r.call(e);
|
|
2597
|
+
};
|
|
2598
|
+
var h = function(t) {
|
|
2599
|
+
r.call(e, t);
|
|
2600
|
+
};
|
|
2601
|
+
var d = function() {
|
|
2602
|
+
var t;
|
|
2603
|
+
if (n && !l) {
|
|
2604
|
+
if (!e._readableState || !e._readableState.ended) t = new i;
|
|
2605
|
+
return r.call(e, t);
|
|
2606
|
+
}
|
|
2607
|
+
if (s && !o) {
|
|
2608
|
+
if (!e._writableState || !e._writableState.ended) t = new i;
|
|
2609
|
+
return r.call(e, t);
|
|
2610
|
+
}
|
|
2611
|
+
};
|
|
2612
|
+
var p = function() {
|
|
2613
|
+
e.req.on("finish", f);
|
|
2614
|
+
};
|
|
2615
|
+
if (isRequest(e)) {
|
|
2616
|
+
e.on("complete", f);
|
|
2617
|
+
e.on("abort", d);
|
|
2618
|
+
if (e.req) p();
|
|
2619
|
+
else e.on("request", p);
|
|
2620
|
+
} else if (s && !e._writableState) {
|
|
2621
|
+
e.on("end", a);
|
|
2622
|
+
e.on("close", a);
|
|
2623
|
+
}
|
|
2624
|
+
e.on("end", u);
|
|
2625
|
+
e.on("finish", f);
|
|
2626
|
+
if (false !== t.error) e.on("error", h);
|
|
2627
|
+
e.on("close", d);
|
|
2628
|
+
return function() {
|
|
2629
|
+
e.removeListener("complete", f);
|
|
2630
|
+
e.removeListener("abort", d);
|
|
2631
|
+
e.removeListener("request", p);
|
|
2632
|
+
if (e.req) e.req.removeListener("finish", f);
|
|
2633
|
+
e.removeListener("end", a);
|
|
2634
|
+
e.removeListener("close", a);
|
|
2635
|
+
e.removeListener("finish", f);
|
|
2636
|
+
e.removeListener("end", u);
|
|
2637
|
+
e.removeListener("error", h);
|
|
2638
|
+
e.removeListener("close", d);
|
|
2639
|
+
};
|
|
2640
|
+
}
|
|
2641
|
+
e.exports = eos;
|
|
2642
|
+
},
|
|
2643
|
+
668: (e, t, r)=>{
|
|
2644
|
+
"use strict";
|
|
2645
|
+
function asyncGeneratorStep(e, t, r, i, n, s, a) {
|
|
2646
|
+
try {
|
|
2647
|
+
var o = e[s](a);
|
|
2648
|
+
var f = o.value;
|
|
2649
|
+
} catch (e) {
|
|
2650
|
+
r(e);
|
|
2651
|
+
return;
|
|
2652
|
+
}
|
|
2653
|
+
if (o.done) t(f);
|
|
2654
|
+
else Promise.resolve(f).then(i, n);
|
|
2655
|
+
}
|
|
2656
|
+
function _asyncToGenerator(e) {
|
|
2657
|
+
return function() {
|
|
2658
|
+
var t = this, r = arguments;
|
|
2659
|
+
return new Promise(function(i, n) {
|
|
2660
|
+
var s = e.apply(t, r);
|
|
2661
|
+
function _next(e) {
|
|
2662
|
+
asyncGeneratorStep(s, i, n, _next, _throw, "next", e);
|
|
2663
|
+
}
|
|
2664
|
+
function _throw(e) {
|
|
2665
|
+
asyncGeneratorStep(s, i, n, _next, _throw, "throw", e);
|
|
2666
|
+
}
|
|
2667
|
+
_next(void 0);
|
|
2668
|
+
});
|
|
2669
|
+
};
|
|
2670
|
+
}
|
|
2671
|
+
function ownKeys(e, t) {
|
|
2672
|
+
var r = Object.keys(e);
|
|
2673
|
+
if (Object.getOwnPropertySymbols) {
|
|
2674
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
2675
|
+
if (t) i = i.filter(function(t) {
|
|
2676
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
2677
|
+
});
|
|
2678
|
+
r.push.apply(r, i);
|
|
2679
|
+
}
|
|
2680
|
+
return r;
|
|
2681
|
+
}
|
|
2682
|
+
function _objectSpread(e) {
|
|
2683
|
+
for(var t = 1; t < arguments.length; t++){
|
|
2684
|
+
var r = null != arguments[t] ? arguments[t] : {};
|
|
2685
|
+
if (t % 2) ownKeys(Object(r), true).forEach(function(t) {
|
|
2686
|
+
_defineProperty(e, t, r[t]);
|
|
2687
|
+
});
|
|
2688
|
+
else if (Object.getOwnPropertyDescriptors) Object.defineProperties(e, Object.getOwnPropertyDescriptors(r));
|
|
2689
|
+
else ownKeys(Object(r)).forEach(function(t) {
|
|
2690
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
2691
|
+
});
|
|
2692
|
+
}
|
|
2693
|
+
return e;
|
|
2694
|
+
}
|
|
2695
|
+
function _defineProperty(e, t, r) {
|
|
2696
|
+
if (t in e) Object.defineProperty(e, t, {
|
|
2697
|
+
value: r,
|
|
2698
|
+
enumerable: true,
|
|
2699
|
+
configurable: true,
|
|
2700
|
+
writable: true
|
|
2701
|
+
});
|
|
2702
|
+
else e[t] = r;
|
|
2703
|
+
return e;
|
|
2704
|
+
}
|
|
2705
|
+
var i = r(959).q.ERR_INVALID_ARG_TYPE;
|
|
2706
|
+
function from(e, t, r) {
|
|
2707
|
+
var n;
|
|
2708
|
+
if (t && "function" == typeof t.next) n = t;
|
|
2709
|
+
else if (t && t[Symbol.asyncIterator]) n = t[Symbol.asyncIterator]();
|
|
2710
|
+
else if (t && t[Symbol.iterator]) n = t[Symbol.iterator]();
|
|
2711
|
+
else throw new i("iterable", [
|
|
2712
|
+
"Iterable"
|
|
2713
|
+
], t);
|
|
2714
|
+
var s = new e(_objectSpread({
|
|
2715
|
+
objectMode: true
|
|
2716
|
+
}, r));
|
|
2717
|
+
var a = false;
|
|
2718
|
+
s._read = function() {
|
|
2719
|
+
if (!a) {
|
|
2720
|
+
a = true;
|
|
2721
|
+
next();
|
|
2722
|
+
}
|
|
2723
|
+
};
|
|
2724
|
+
function next() {
|
|
2725
|
+
return _next2.apply(this, arguments);
|
|
2726
|
+
}
|
|
2727
|
+
function _next2() {
|
|
2728
|
+
_next2 = _asyncToGenerator(function*() {
|
|
2729
|
+
try {
|
|
2730
|
+
var e = yield n.next(), t = e.value, r = e.done;
|
|
2731
|
+
if (r) s.push(null);
|
|
2732
|
+
else if (s.push((yield t))) next();
|
|
2733
|
+
else a = false;
|
|
2734
|
+
} catch (e) {
|
|
2735
|
+
s.destroy(e);
|
|
2736
|
+
}
|
|
2737
|
+
});
|
|
2738
|
+
return _next2.apply(this, arguments);
|
|
2739
|
+
}
|
|
2740
|
+
return s;
|
|
2741
|
+
}
|
|
2742
|
+
e.exports = from;
|
|
2743
|
+
},
|
|
2744
|
+
899: (e, t, r)=>{
|
|
2745
|
+
"use strict";
|
|
2746
|
+
var i;
|
|
2747
|
+
function once(e) {
|
|
2748
|
+
var t = false;
|
|
2749
|
+
return function() {
|
|
2750
|
+
if (t) return;
|
|
2751
|
+
t = true;
|
|
2752
|
+
e.apply(void 0, arguments);
|
|
2753
|
+
};
|
|
2754
|
+
}
|
|
2755
|
+
var n = r(959).q, s = n.ERR_MISSING_ARGS, a = n.ERR_STREAM_DESTROYED;
|
|
2756
|
+
function noop(e) {
|
|
2757
|
+
if (e) throw e;
|
|
2758
|
+
}
|
|
2759
|
+
function isRequest(e) {
|
|
2760
|
+
return e.setHeader && "function" == typeof e.abort;
|
|
2761
|
+
}
|
|
2762
|
+
function destroyer(e, t, n, s) {
|
|
2763
|
+
s = once(s);
|
|
2764
|
+
var o = false;
|
|
2765
|
+
e.on("close", function() {
|
|
2766
|
+
o = true;
|
|
2767
|
+
});
|
|
2768
|
+
if (void 0 === i) i = r(641);
|
|
2769
|
+
i(e, {
|
|
2770
|
+
readable: t,
|
|
2771
|
+
writable: n
|
|
2772
|
+
}, function(e) {
|
|
2773
|
+
if (e) return s(e);
|
|
2774
|
+
o = true;
|
|
2775
|
+
s();
|
|
2776
|
+
});
|
|
2777
|
+
var f = false;
|
|
2778
|
+
return function(t) {
|
|
2779
|
+
if (o) return;
|
|
2780
|
+
if (f) return;
|
|
2781
|
+
f = true;
|
|
2782
|
+
if (isRequest(e)) return e.abort();
|
|
2783
|
+
if ("function" == typeof e.destroy) return e.destroy();
|
|
2784
|
+
s(t || new a("pipe"));
|
|
2785
|
+
};
|
|
2786
|
+
}
|
|
2787
|
+
function call(e) {
|
|
2788
|
+
e();
|
|
2789
|
+
}
|
|
2790
|
+
function pipe(e, t) {
|
|
2791
|
+
return e.pipe(t);
|
|
2792
|
+
}
|
|
2793
|
+
function popCallback(e) {
|
|
2794
|
+
if (!e.length) return noop;
|
|
2795
|
+
if ("function" != typeof e[e.length - 1]) return noop;
|
|
2796
|
+
return e.pop();
|
|
2797
|
+
}
|
|
2798
|
+
function pipeline() {
|
|
2799
|
+
for(var e = arguments.length, t = new Array(e), r = 0; r < e; r++)t[r] = arguments[r];
|
|
2800
|
+
var i = popCallback(t);
|
|
2801
|
+
if (Array.isArray(t[0])) t = t[0];
|
|
2802
|
+
if (t.length < 2) throw new s("streams");
|
|
2803
|
+
var n;
|
|
2804
|
+
var a = t.map(function(e, r) {
|
|
2805
|
+
var s = r < t.length - 1;
|
|
2806
|
+
var o = r > 0;
|
|
2807
|
+
return destroyer(e, s, o, function(e) {
|
|
2808
|
+
if (!n) n = e;
|
|
2809
|
+
if (e) a.forEach(call);
|
|
2810
|
+
if (s) return;
|
|
2811
|
+
a.forEach(call);
|
|
2812
|
+
i(n);
|
|
2813
|
+
});
|
|
2814
|
+
});
|
|
2815
|
+
return t.reduce(pipe);
|
|
2816
|
+
}
|
|
2817
|
+
e.exports = pipeline;
|
|
2818
|
+
},
|
|
2819
|
+
841: (e, t, r)=>{
|
|
2820
|
+
"use strict";
|
|
2821
|
+
var i = r(959).q.ERR_INVALID_OPT_VALUE;
|
|
2822
|
+
function highWaterMarkFrom(e, t, r) {
|
|
2823
|
+
return null != e.highWaterMark ? e.highWaterMark : t ? e[r] : null;
|
|
2824
|
+
}
|
|
2825
|
+
function getHighWaterMark(e, t, r, n) {
|
|
2826
|
+
var s = highWaterMarkFrom(t, n, r);
|
|
2827
|
+
if (null != s) {
|
|
2828
|
+
if (!(isFinite(s) && Math.floor(s) === s) || s < 0) {
|
|
2829
|
+
var a = n ? r : "highWaterMark";
|
|
2830
|
+
throw new i(a, s);
|
|
2831
|
+
}
|
|
2832
|
+
return Math.floor(s);
|
|
2833
|
+
}
|
|
2834
|
+
return e.objectMode ? 16 : 16384;
|
|
2835
|
+
}
|
|
2836
|
+
e.exports = {
|
|
2837
|
+
getHighWaterMark: getHighWaterMark
|
|
2838
|
+
};
|
|
2839
|
+
},
|
|
2840
|
+
604: (e, t, r)=>{
|
|
2841
|
+
e.exports = r(781);
|
|
2842
|
+
},
|
|
2843
|
+
505: (e, t, r)=>{
|
|
2844
|
+
var i = r(781);
|
|
2845
|
+
if ("disable" === process.env.READABLE_STREAM && i) {
|
|
2846
|
+
e.exports = i.Readable;
|
|
2847
|
+
Object.assign(e.exports, i);
|
|
2848
|
+
e.exports.Stream = i;
|
|
2849
|
+
} else {
|
|
2850
|
+
t = e.exports = r(852);
|
|
2851
|
+
t.Stream = i || t;
|
|
2852
|
+
t.Readable = t;
|
|
2853
|
+
t.Writable = r(379);
|
|
2854
|
+
t.Duplex = r(548);
|
|
2855
|
+
t.Transform = r(770);
|
|
2856
|
+
t.PassThrough = r(184);
|
|
2857
|
+
t.finished = r(641);
|
|
2858
|
+
t.pipeline = r(899);
|
|
2859
|
+
}
|
|
2860
|
+
},
|
|
2861
|
+
598: (e, t, r)=>{
|
|
2862
|
+
"use strict";
|
|
2863
|
+
const i = r(591);
|
|
2864
|
+
const n = r(580);
|
|
2865
|
+
e.exports = i(()=>{
|
|
2866
|
+
n(()=>{
|
|
2867
|
+
process.stderr.write("[?25h");
|
|
2868
|
+
}, {
|
|
2869
|
+
alwaysLast: true
|
|
2870
|
+
});
|
|
2871
|
+
});
|
|
2872
|
+
},
|
|
2873
|
+
105: (e, t, r)=>{
|
|
2874
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ var i = r(300);
|
|
2875
|
+
var n = i.Buffer;
|
|
2876
|
+
function copyProps(e, t) {
|
|
2877
|
+
for(var r in e)t[r] = e[r];
|
|
2878
|
+
}
|
|
2879
|
+
if (n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow) e.exports = i;
|
|
2880
|
+
else {
|
|
2881
|
+
copyProps(i, t);
|
|
2882
|
+
t.Buffer = SafeBuffer;
|
|
2883
|
+
}
|
|
2884
|
+
function SafeBuffer(e, t, r) {
|
|
2885
|
+
return n(e, t, r);
|
|
2886
|
+
}
|
|
2887
|
+
SafeBuffer.prototype = Object.create(n.prototype);
|
|
2888
|
+
copyProps(n, SafeBuffer);
|
|
2889
|
+
SafeBuffer.from = function(e, t, r) {
|
|
2890
|
+
if ("number" == typeof e) throw new TypeError("Argument must not be a number");
|
|
2891
|
+
return n(e, t, r);
|
|
2892
|
+
};
|
|
2893
|
+
SafeBuffer.alloc = function(e, t, r) {
|
|
2894
|
+
if ("number" != typeof e) throw new TypeError("Argument must be a number");
|
|
2895
|
+
var i = n(e);
|
|
2896
|
+
if (void 0 !== t) if ("string" == typeof r) i.fill(t, r);
|
|
2897
|
+
else i.fill(t);
|
|
2898
|
+
else i.fill(0);
|
|
2899
|
+
return i;
|
|
2900
|
+
};
|
|
2901
|
+
SafeBuffer.allocUnsafe = function(e) {
|
|
2902
|
+
if ("number" != typeof e) throw new TypeError("Argument must be a number");
|
|
2903
|
+
return n(e);
|
|
2904
|
+
};
|
|
2905
|
+
SafeBuffer.allocUnsafeSlow = function(e) {
|
|
2906
|
+
if ("number" != typeof e) throw new TypeError("Argument must be a number");
|
|
2907
|
+
return i.SlowBuffer(e);
|
|
2908
|
+
};
|
|
2909
|
+
},
|
|
2910
|
+
580: (e, t, r)=>{
|
|
2911
|
+
var i = global.process;
|
|
2912
|
+
const processOk = function(e) {
|
|
2913
|
+
return e && "object" == typeof e && "function" == typeof e.removeListener && "function" == typeof e.emit && "function" == typeof e.reallyExit && "function" == typeof e.listeners && "function" == typeof e.kill && "number" == typeof e.pid && "function" == typeof e.on;
|
|
2914
|
+
};
|
|
2915
|
+
if (processOk(i)) {
|
|
2916
|
+
var n = r(491);
|
|
2917
|
+
var s = r(357);
|
|
2918
|
+
var a = /^win/i.test(i.platform);
|
|
2919
|
+
var o = r(361);
|
|
2920
|
+
if ("function" != typeof o) o = o.EventEmitter;
|
|
2921
|
+
var f;
|
|
2922
|
+
if (i.__signal_exit_emitter__) f = i.__signal_exit_emitter__;
|
|
2923
|
+
else {
|
|
2924
|
+
f = i.__signal_exit_emitter__ = new o;
|
|
2925
|
+
f.count = 0;
|
|
2926
|
+
f.emitted = {};
|
|
2927
|
+
}
|
|
2928
|
+
if (!f.infinite) {
|
|
2929
|
+
f.setMaxListeners(1 / 0);
|
|
2930
|
+
f.infinite = true;
|
|
2931
|
+
}
|
|
2932
|
+
e.exports = function(e, t) {
|
|
2933
|
+
if (!processOk(global.process)) return function() {};
|
|
2934
|
+
n.equal(typeof e, "function", "a callback must be provided for exit handler");
|
|
2935
|
+
if (false === d) p();
|
|
2936
|
+
var r = "exit";
|
|
2937
|
+
if (t && t.alwaysLast) r = "afterexit";
|
|
2938
|
+
var remove = function() {
|
|
2939
|
+
f.removeListener(r, e);
|
|
2940
|
+
if (0 === f.listeners("exit").length && 0 === f.listeners("afterexit").length) l();
|
|
2941
|
+
};
|
|
2942
|
+
f.on(r, e);
|
|
2943
|
+
return remove;
|
|
2944
|
+
};
|
|
2945
|
+
var l = function() {
|
|
2946
|
+
if (!d || !processOk(global.process)) return;
|
|
2947
|
+
d = false;
|
|
2948
|
+
s.forEach(function(e) {
|
|
2949
|
+
try {
|
|
2950
|
+
i.removeListener(e, h[e]);
|
|
2951
|
+
} catch (e) {}
|
|
2952
|
+
});
|
|
2953
|
+
i.emit = g;
|
|
2954
|
+
i.reallyExit = _;
|
|
2955
|
+
f.count -= 1;
|
|
2956
|
+
};
|
|
2957
|
+
e.exports.unload = l;
|
|
2958
|
+
var u = function(e, t, r) {
|
|
2959
|
+
if (f.emitted[e]) return;
|
|
2960
|
+
f.emitted[e] = true;
|
|
2961
|
+
f.emit(e, t, r);
|
|
2962
|
+
};
|
|
2963
|
+
var h = {};
|
|
2964
|
+
s.forEach(function(e) {
|
|
2965
|
+
h[e] = function() {
|
|
2966
|
+
if (!processOk(global.process)) return;
|
|
2967
|
+
var t = i.listeners(e);
|
|
2968
|
+
if (t.length === f.count) {
|
|
2969
|
+
l();
|
|
2970
|
+
u("exit", null, e);
|
|
2971
|
+
u("afterexit", null, e);
|
|
2972
|
+
if (a && "SIGHUP" === e) e = "SIGINT";
|
|
2973
|
+
i.kill(i.pid, e);
|
|
2974
|
+
}
|
|
2975
|
+
};
|
|
2976
|
+
});
|
|
2977
|
+
e.exports.signals = function() {
|
|
2978
|
+
return s;
|
|
2979
|
+
};
|
|
2980
|
+
var d = false;
|
|
2981
|
+
var p = function() {
|
|
2982
|
+
if (d || !processOk(global.process)) return;
|
|
2983
|
+
d = true;
|
|
2984
|
+
f.count += 1;
|
|
2985
|
+
s = s.filter(function(e) {
|
|
2986
|
+
try {
|
|
2987
|
+
i.on(e, h[e]);
|
|
2988
|
+
return true;
|
|
2989
|
+
} catch (e) {
|
|
2990
|
+
return false;
|
|
2991
|
+
}
|
|
2992
|
+
});
|
|
2993
|
+
i.emit = y;
|
|
2994
|
+
i.reallyExit = b;
|
|
2995
|
+
};
|
|
2996
|
+
e.exports.load = p;
|
|
2997
|
+
var _ = i.reallyExit;
|
|
2998
|
+
var b = function(e) {
|
|
2999
|
+
if (!processOk(global.process)) return;
|
|
3000
|
+
i.exitCode = e || 0;
|
|
3001
|
+
u("exit", i.exitCode, null);
|
|
3002
|
+
u("afterexit", i.exitCode, null);
|
|
3003
|
+
_.call(i, i.exitCode);
|
|
3004
|
+
};
|
|
3005
|
+
var g = i.emit;
|
|
3006
|
+
var y = function(e, t) {
|
|
3007
|
+
if (!("exit" === e && processOk(global.process))) return g.apply(this, arguments);
|
|
3008
|
+
if (void 0 !== t) i.exitCode = t;
|
|
3009
|
+
var r = g.apply(this, arguments);
|
|
3010
|
+
u("exit", i.exitCode, null);
|
|
3011
|
+
u("afterexit", i.exitCode, null);
|
|
3012
|
+
return r;
|
|
3013
|
+
};
|
|
3014
|
+
} else e.exports = function() {
|
|
3015
|
+
return function() {};
|
|
3016
|
+
};
|
|
3017
|
+
},
|
|
3018
|
+
357: (e)=>{
|
|
3019
|
+
e.exports = [
|
|
3020
|
+
"SIGABRT",
|
|
3021
|
+
"SIGALRM",
|
|
3022
|
+
"SIGHUP",
|
|
3023
|
+
"SIGINT",
|
|
3024
|
+
"SIGTERM"
|
|
3025
|
+
];
|
|
3026
|
+
if ("win32" !== process.platform) e.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
3027
|
+
if ("linux" === process.platform) e.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
|
|
3028
|
+
},
|
|
3029
|
+
259: (e, t, r)=>{
|
|
3030
|
+
"use strict";
|
|
3031
|
+
var i = r(105).Buffer;
|
|
3032
|
+
var n = i.isEncoding || function(e) {
|
|
3033
|
+
e = "" + e;
|
|
3034
|
+
switch(e && e.toLowerCase()){
|
|
3035
|
+
case "hex":
|
|
3036
|
+
case "utf8":
|
|
3037
|
+
case "utf-8":
|
|
3038
|
+
case "ascii":
|
|
3039
|
+
case "binary":
|
|
3040
|
+
case "base64":
|
|
3041
|
+
case "ucs2":
|
|
3042
|
+
case "ucs-2":
|
|
3043
|
+
case "utf16le":
|
|
3044
|
+
case "utf-16le":
|
|
3045
|
+
case "raw":
|
|
3046
|
+
return true;
|
|
3047
|
+
default:
|
|
3048
|
+
return false;
|
|
3049
|
+
}
|
|
3050
|
+
};
|
|
3051
|
+
function _normalizeEncoding(e) {
|
|
3052
|
+
if (!e) return "utf8";
|
|
3053
|
+
var t;
|
|
3054
|
+
while(true)switch(e){
|
|
3055
|
+
case "utf8":
|
|
3056
|
+
case "utf-8":
|
|
3057
|
+
return "utf8";
|
|
3058
|
+
case "ucs2":
|
|
3059
|
+
case "ucs-2":
|
|
3060
|
+
case "utf16le":
|
|
3061
|
+
case "utf-16le":
|
|
3062
|
+
return "utf16le";
|
|
3063
|
+
case "latin1":
|
|
3064
|
+
case "binary":
|
|
3065
|
+
return "latin1";
|
|
3066
|
+
case "base64":
|
|
3067
|
+
case "ascii":
|
|
3068
|
+
case "hex":
|
|
3069
|
+
return e;
|
|
3070
|
+
default:
|
|
3071
|
+
if (t) return;
|
|
3072
|
+
e = ("" + e).toLowerCase();
|
|
3073
|
+
t = true;
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
function normalizeEncoding(e) {
|
|
3077
|
+
var t = _normalizeEncoding(e);
|
|
3078
|
+
if ("string" != typeof t && (i.isEncoding === n || !n(e))) throw new Error("Unknown encoding: " + e);
|
|
3079
|
+
return t || e;
|
|
3080
|
+
}
|
|
3081
|
+
t.s = StringDecoder;
|
|
3082
|
+
function StringDecoder(e) {
|
|
3083
|
+
this.encoding = normalizeEncoding(e);
|
|
3084
|
+
var t;
|
|
3085
|
+
switch(this.encoding){
|
|
3086
|
+
case "utf16le":
|
|
3087
|
+
this.text = utf16Text;
|
|
3088
|
+
this.end = utf16End;
|
|
3089
|
+
t = 4;
|
|
3090
|
+
break;
|
|
3091
|
+
case "utf8":
|
|
3092
|
+
this.fillLast = utf8FillLast;
|
|
3093
|
+
t = 4;
|
|
3094
|
+
break;
|
|
3095
|
+
case "base64":
|
|
3096
|
+
this.text = base64Text;
|
|
3097
|
+
this.end = base64End;
|
|
3098
|
+
t = 3;
|
|
3099
|
+
break;
|
|
3100
|
+
default:
|
|
3101
|
+
this.write = simpleWrite;
|
|
3102
|
+
this.end = simpleEnd;
|
|
3103
|
+
return;
|
|
3104
|
+
}
|
|
3105
|
+
this.lastNeed = 0;
|
|
3106
|
+
this.lastTotal = 0;
|
|
3107
|
+
this.lastChar = i.allocUnsafe(t);
|
|
3108
|
+
}
|
|
3109
|
+
StringDecoder.prototype.write = function(e) {
|
|
3110
|
+
if (0 === e.length) return "";
|
|
3111
|
+
var t;
|
|
3112
|
+
var r;
|
|
3113
|
+
if (this.lastNeed) {
|
|
3114
|
+
t = this.fillLast(e);
|
|
3115
|
+
if (void 0 === t) return "";
|
|
3116
|
+
r = this.lastNeed;
|
|
3117
|
+
this.lastNeed = 0;
|
|
3118
|
+
} else r = 0;
|
|
3119
|
+
if (r < e.length) return t ? t + this.text(e, r) : this.text(e, r);
|
|
3120
|
+
return t || "";
|
|
3121
|
+
};
|
|
3122
|
+
StringDecoder.prototype.end = utf8End;
|
|
3123
|
+
StringDecoder.prototype.text = utf8Text;
|
|
3124
|
+
StringDecoder.prototype.fillLast = function(e) {
|
|
3125
|
+
if (this.lastNeed <= e.length) {
|
|
3126
|
+
e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
|
|
3127
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
3128
|
+
}
|
|
3129
|
+
e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length);
|
|
3130
|
+
this.lastNeed -= e.length;
|
|
3131
|
+
};
|
|
3132
|
+
function utf8CheckByte(e) {
|
|
3133
|
+
if (e <= 127) return 0;
|
|
3134
|
+
if (e >> 5 === 6) return 2;
|
|
3135
|
+
if (e >> 4 === 14) return 3;
|
|
3136
|
+
if (e >> 3 === 30) return 4;
|
|
3137
|
+
return e >> 6 === 2 ? -1 : -2;
|
|
3138
|
+
}
|
|
3139
|
+
function utf8CheckIncomplete(e, t, r) {
|
|
3140
|
+
var i = t.length - 1;
|
|
3141
|
+
if (i < r) return 0;
|
|
3142
|
+
var n = utf8CheckByte(t[i]);
|
|
3143
|
+
if (n >= 0) {
|
|
3144
|
+
if (n > 0) e.lastNeed = n - 1;
|
|
3145
|
+
return n;
|
|
3146
|
+
}
|
|
3147
|
+
if (--i < r || -2 === n) return 0;
|
|
3148
|
+
n = utf8CheckByte(t[i]);
|
|
3149
|
+
if (n >= 0) {
|
|
3150
|
+
if (n > 0) e.lastNeed = n - 2;
|
|
3151
|
+
return n;
|
|
3152
|
+
}
|
|
3153
|
+
if (--i < r || -2 === n) return 0;
|
|
3154
|
+
n = utf8CheckByte(t[i]);
|
|
3155
|
+
if (n >= 0) {
|
|
3156
|
+
if (n > 0) if (2 === n) n = 0;
|
|
3157
|
+
else e.lastNeed = n - 3;
|
|
3158
|
+
return n;
|
|
3159
|
+
}
|
|
3160
|
+
return 0;
|
|
3161
|
+
}
|
|
3162
|
+
function utf8CheckExtraBytes(e, t, r) {
|
|
3163
|
+
if ((192 & t[0]) !== 128) {
|
|
3164
|
+
e.lastNeed = 0;
|
|
3165
|
+
return "�";
|
|
3166
|
+
}
|
|
3167
|
+
if (e.lastNeed > 1 && t.length > 1) {
|
|
3168
|
+
if ((192 & t[1]) !== 128) {
|
|
3169
|
+
e.lastNeed = 1;
|
|
3170
|
+
return "�";
|
|
3171
|
+
}
|
|
3172
|
+
if (e.lastNeed > 2 && t.length > 2) {
|
|
3173
|
+
if ((192 & t[2]) !== 128) {
|
|
3174
|
+
e.lastNeed = 2;
|
|
3175
|
+
return "�";
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
function utf8FillLast(e) {
|
|
3181
|
+
var t = this.lastTotal - this.lastNeed;
|
|
3182
|
+
var r = utf8CheckExtraBytes(this, e, t);
|
|
3183
|
+
if (void 0 !== r) return r;
|
|
3184
|
+
if (this.lastNeed <= e.length) {
|
|
3185
|
+
e.copy(this.lastChar, t, 0, this.lastNeed);
|
|
3186
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
3187
|
+
}
|
|
3188
|
+
e.copy(this.lastChar, t, 0, e.length);
|
|
3189
|
+
this.lastNeed -= e.length;
|
|
3190
|
+
}
|
|
3191
|
+
function utf8Text(e, t) {
|
|
3192
|
+
var r = utf8CheckIncomplete(this, e, t);
|
|
3193
|
+
if (!this.lastNeed) return e.toString("utf8", t);
|
|
3194
|
+
this.lastTotal = r;
|
|
3195
|
+
var i = e.length - (r - this.lastNeed);
|
|
3196
|
+
e.copy(this.lastChar, 0, i);
|
|
3197
|
+
return e.toString("utf8", t, i);
|
|
3198
|
+
}
|
|
3199
|
+
function utf8End(e) {
|
|
3200
|
+
var t = e && e.length ? this.write(e) : "";
|
|
3201
|
+
if (this.lastNeed) return t + "�";
|
|
3202
|
+
return t;
|
|
3203
|
+
}
|
|
3204
|
+
function utf16Text(e, t) {
|
|
3205
|
+
if ((e.length - t) % 2 === 0) {
|
|
3206
|
+
var r = e.toString("utf16le", t);
|
|
3207
|
+
if (r) {
|
|
3208
|
+
var i = r.charCodeAt(r.length - 1);
|
|
3209
|
+
if (i >= 55296 && i <= 56319) {
|
|
3210
|
+
this.lastNeed = 2;
|
|
3211
|
+
this.lastTotal = 4;
|
|
3212
|
+
this.lastChar[0] = e[e.length - 2];
|
|
3213
|
+
this.lastChar[1] = e[e.length - 1];
|
|
3214
|
+
return r.slice(0, -1);
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
return r;
|
|
3218
|
+
}
|
|
3219
|
+
this.lastNeed = 1;
|
|
3220
|
+
this.lastTotal = 2;
|
|
3221
|
+
this.lastChar[0] = e[e.length - 1];
|
|
3222
|
+
return e.toString("utf16le", t, e.length - 1);
|
|
3223
|
+
}
|
|
3224
|
+
function utf16End(e) {
|
|
3225
|
+
var t = e && e.length ? this.write(e) : "";
|
|
3226
|
+
if (this.lastNeed) {
|
|
3227
|
+
var r = this.lastTotal - this.lastNeed;
|
|
3228
|
+
return t + this.lastChar.toString("utf16le", 0, r);
|
|
3229
|
+
}
|
|
3230
|
+
return t;
|
|
3231
|
+
}
|
|
3232
|
+
function base64Text(e, t) {
|
|
3233
|
+
var r = (e.length - t) % 3;
|
|
3234
|
+
if (0 === r) return e.toString("base64", t);
|
|
3235
|
+
this.lastNeed = 3 - r;
|
|
3236
|
+
this.lastTotal = 3;
|
|
3237
|
+
if (1 === r) this.lastChar[0] = e[e.length - 1];
|
|
3238
|
+
else {
|
|
3239
|
+
this.lastChar[0] = e[e.length - 2];
|
|
3240
|
+
this.lastChar[1] = e[e.length - 1];
|
|
3241
|
+
}
|
|
3242
|
+
return e.toString("base64", t, e.length - r);
|
|
3243
|
+
}
|
|
3244
|
+
function base64End(e) {
|
|
3245
|
+
var t = e && e.length ? this.write(e) : "";
|
|
3246
|
+
if (this.lastNeed) return t + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
|
|
3247
|
+
return t;
|
|
3248
|
+
}
|
|
3249
|
+
function simpleWrite(e) {
|
|
3250
|
+
return e.toString(this.encoding);
|
|
3251
|
+
}
|
|
3252
|
+
function simpleEnd(e) {
|
|
3253
|
+
return e && e.length ? this.write(e) : "";
|
|
3254
|
+
}
|
|
3255
|
+
},
|
|
3256
|
+
125: (e, t, r)=>{
|
|
3257
|
+
e.exports = r(837).deprecate;
|
|
3258
|
+
},
|
|
3259
|
+
70: (e)=>{
|
|
3260
|
+
e.exports = [
|
|
3261
|
+
[
|
|
3262
|
+
768,
|
|
3263
|
+
879
|
|
3264
|
+
],
|
|
3265
|
+
[
|
|
3266
|
+
1155,
|
|
3267
|
+
1158
|
|
3268
|
+
],
|
|
3269
|
+
[
|
|
3270
|
+
1160,
|
|
3271
|
+
1161
|
|
3272
|
+
],
|
|
3273
|
+
[
|
|
3274
|
+
1425,
|
|
3275
|
+
1469
|
|
3276
|
+
],
|
|
3277
|
+
[
|
|
3278
|
+
1471,
|
|
3279
|
+
1471
|
|
3280
|
+
],
|
|
3281
|
+
[
|
|
3282
|
+
1473,
|
|
3283
|
+
1474
|
|
3284
|
+
],
|
|
3285
|
+
[
|
|
3286
|
+
1476,
|
|
3287
|
+
1477
|
|
3288
|
+
],
|
|
3289
|
+
[
|
|
3290
|
+
1479,
|
|
3291
|
+
1479
|
|
3292
|
+
],
|
|
3293
|
+
[
|
|
3294
|
+
1536,
|
|
3295
|
+
1539
|
|
3296
|
+
],
|
|
3297
|
+
[
|
|
3298
|
+
1552,
|
|
3299
|
+
1557
|
|
3300
|
+
],
|
|
3301
|
+
[
|
|
3302
|
+
1611,
|
|
3303
|
+
1630
|
|
3304
|
+
],
|
|
3305
|
+
[
|
|
3306
|
+
1648,
|
|
3307
|
+
1648
|
|
3308
|
+
],
|
|
3309
|
+
[
|
|
3310
|
+
1750,
|
|
3311
|
+
1764
|
|
3312
|
+
],
|
|
3313
|
+
[
|
|
3314
|
+
1767,
|
|
3315
|
+
1768
|
|
3316
|
+
],
|
|
3317
|
+
[
|
|
3318
|
+
1770,
|
|
3319
|
+
1773
|
|
3320
|
+
],
|
|
3321
|
+
[
|
|
3322
|
+
1807,
|
|
3323
|
+
1807
|
|
3324
|
+
],
|
|
3325
|
+
[
|
|
3326
|
+
1809,
|
|
3327
|
+
1809
|
|
3328
|
+
],
|
|
3329
|
+
[
|
|
3330
|
+
1840,
|
|
3331
|
+
1866
|
|
3332
|
+
],
|
|
3333
|
+
[
|
|
3334
|
+
1958,
|
|
3335
|
+
1968
|
|
3336
|
+
],
|
|
3337
|
+
[
|
|
3338
|
+
2027,
|
|
3339
|
+
2035
|
|
3340
|
+
],
|
|
3341
|
+
[
|
|
3342
|
+
2305,
|
|
3343
|
+
2306
|
|
3344
|
+
],
|
|
3345
|
+
[
|
|
3346
|
+
2364,
|
|
3347
|
+
2364
|
|
3348
|
+
],
|
|
3349
|
+
[
|
|
3350
|
+
2369,
|
|
3351
|
+
2376
|
|
3352
|
+
],
|
|
3353
|
+
[
|
|
3354
|
+
2381,
|
|
3355
|
+
2381
|
|
3356
|
+
],
|
|
3357
|
+
[
|
|
3358
|
+
2385,
|
|
3359
|
+
2388
|
|
3360
|
+
],
|
|
3361
|
+
[
|
|
3362
|
+
2402,
|
|
3363
|
+
2403
|
|
3364
|
+
],
|
|
3365
|
+
[
|
|
3366
|
+
2433,
|
|
3367
|
+
2433
|
|
3368
|
+
],
|
|
3369
|
+
[
|
|
3370
|
+
2492,
|
|
3371
|
+
2492
|
|
3372
|
+
],
|
|
3373
|
+
[
|
|
3374
|
+
2497,
|
|
3375
|
+
2500
|
|
3376
|
+
],
|
|
3377
|
+
[
|
|
3378
|
+
2509,
|
|
3379
|
+
2509
|
|
3380
|
+
],
|
|
3381
|
+
[
|
|
3382
|
+
2530,
|
|
3383
|
+
2531
|
|
3384
|
+
],
|
|
3385
|
+
[
|
|
3386
|
+
2561,
|
|
3387
|
+
2562
|
|
3388
|
+
],
|
|
3389
|
+
[
|
|
3390
|
+
2620,
|
|
3391
|
+
2620
|
|
3392
|
+
],
|
|
3393
|
+
[
|
|
3394
|
+
2625,
|
|
3395
|
+
2626
|
|
3396
|
+
],
|
|
3397
|
+
[
|
|
3398
|
+
2631,
|
|
3399
|
+
2632
|
|
3400
|
+
],
|
|
3401
|
+
[
|
|
3402
|
+
2635,
|
|
3403
|
+
2637
|
|
3404
|
+
],
|
|
3405
|
+
[
|
|
3406
|
+
2672,
|
|
3407
|
+
2673
|
|
3408
|
+
],
|
|
3409
|
+
[
|
|
3410
|
+
2689,
|
|
3411
|
+
2690
|
|
3412
|
+
],
|
|
3413
|
+
[
|
|
3414
|
+
2748,
|
|
3415
|
+
2748
|
|
3416
|
+
],
|
|
3417
|
+
[
|
|
3418
|
+
2753,
|
|
3419
|
+
2757
|
|
3420
|
+
],
|
|
3421
|
+
[
|
|
3422
|
+
2759,
|
|
3423
|
+
2760
|
|
3424
|
+
],
|
|
3425
|
+
[
|
|
3426
|
+
2765,
|
|
3427
|
+
2765
|
|
3428
|
+
],
|
|
3429
|
+
[
|
|
3430
|
+
2786,
|
|
3431
|
+
2787
|
|
3432
|
+
],
|
|
3433
|
+
[
|
|
3434
|
+
2817,
|
|
3435
|
+
2817
|
|
3436
|
+
],
|
|
3437
|
+
[
|
|
3438
|
+
2876,
|
|
3439
|
+
2876
|
|
3440
|
+
],
|
|
3441
|
+
[
|
|
3442
|
+
2879,
|
|
3443
|
+
2879
|
|
3444
|
+
],
|
|
3445
|
+
[
|
|
3446
|
+
2881,
|
|
3447
|
+
2883
|
|
3448
|
+
],
|
|
3449
|
+
[
|
|
3450
|
+
2893,
|
|
3451
|
+
2893
|
|
3452
|
+
],
|
|
3453
|
+
[
|
|
3454
|
+
2902,
|
|
3455
|
+
2902
|
|
3456
|
+
],
|
|
3457
|
+
[
|
|
3458
|
+
2946,
|
|
3459
|
+
2946
|
|
3460
|
+
],
|
|
3461
|
+
[
|
|
3462
|
+
3008,
|
|
3463
|
+
3008
|
|
3464
|
+
],
|
|
3465
|
+
[
|
|
3466
|
+
3021,
|
|
3467
|
+
3021
|
|
3468
|
+
],
|
|
3469
|
+
[
|
|
3470
|
+
3134,
|
|
3471
|
+
3136
|
|
3472
|
+
],
|
|
3473
|
+
[
|
|
3474
|
+
3142,
|
|
3475
|
+
3144
|
|
3476
|
+
],
|
|
3477
|
+
[
|
|
3478
|
+
3146,
|
|
3479
|
+
3149
|
|
3480
|
+
],
|
|
3481
|
+
[
|
|
3482
|
+
3157,
|
|
3483
|
+
3158
|
|
3484
|
+
],
|
|
3485
|
+
[
|
|
3486
|
+
3260,
|
|
3487
|
+
3260
|
|
3488
|
+
],
|
|
3489
|
+
[
|
|
3490
|
+
3263,
|
|
3491
|
+
3263
|
|
3492
|
+
],
|
|
3493
|
+
[
|
|
3494
|
+
3270,
|
|
3495
|
+
3270
|
|
3496
|
+
],
|
|
3497
|
+
[
|
|
3498
|
+
3276,
|
|
3499
|
+
3277
|
|
3500
|
+
],
|
|
3501
|
+
[
|
|
3502
|
+
3298,
|
|
3503
|
+
3299
|
|
3504
|
+
],
|
|
3505
|
+
[
|
|
3506
|
+
3393,
|
|
3507
|
+
3395
|
|
3508
|
+
],
|
|
3509
|
+
[
|
|
3510
|
+
3405,
|
|
3511
|
+
3405
|
|
3512
|
+
],
|
|
3513
|
+
[
|
|
3514
|
+
3530,
|
|
3515
|
+
3530
|
|
3516
|
+
],
|
|
3517
|
+
[
|
|
3518
|
+
3538,
|
|
3519
|
+
3540
|
|
3520
|
+
],
|
|
3521
|
+
[
|
|
3522
|
+
3542,
|
|
3523
|
+
3542
|
|
3524
|
+
],
|
|
3525
|
+
[
|
|
3526
|
+
3633,
|
|
3527
|
+
3633
|
|
3528
|
+
],
|
|
3529
|
+
[
|
|
3530
|
+
3636,
|
|
3531
|
+
3642
|
|
3532
|
+
],
|
|
3533
|
+
[
|
|
3534
|
+
3655,
|
|
3535
|
+
3662
|
|
3536
|
+
],
|
|
3537
|
+
[
|
|
3538
|
+
3761,
|
|
3539
|
+
3761
|
|
3540
|
+
],
|
|
3541
|
+
[
|
|
3542
|
+
3764,
|
|
3543
|
+
3769
|
|
3544
|
+
],
|
|
3545
|
+
[
|
|
3546
|
+
3771,
|
|
3547
|
+
3772
|
|
3548
|
+
],
|
|
3549
|
+
[
|
|
3550
|
+
3784,
|
|
3551
|
+
3789
|
|
3552
|
+
],
|
|
3553
|
+
[
|
|
3554
|
+
3864,
|
|
3555
|
+
3865
|
|
3556
|
+
],
|
|
3557
|
+
[
|
|
3558
|
+
3893,
|
|
3559
|
+
3893
|
|
3560
|
+
],
|
|
3561
|
+
[
|
|
3562
|
+
3895,
|
|
3563
|
+
3895
|
|
3564
|
+
],
|
|
3565
|
+
[
|
|
3566
|
+
3897,
|
|
3567
|
+
3897
|
|
3568
|
+
],
|
|
3569
|
+
[
|
|
3570
|
+
3953,
|
|
3571
|
+
3966
|
|
3572
|
+
],
|
|
3573
|
+
[
|
|
3574
|
+
3968,
|
|
3575
|
+
3972
|
|
3576
|
+
],
|
|
3577
|
+
[
|
|
3578
|
+
3974,
|
|
3579
|
+
3975
|
|
3580
|
+
],
|
|
3581
|
+
[
|
|
3582
|
+
3984,
|
|
3583
|
+
3991
|
|
3584
|
+
],
|
|
3585
|
+
[
|
|
3586
|
+
3993,
|
|
3587
|
+
4028
|
|
3588
|
+
],
|
|
3589
|
+
[
|
|
3590
|
+
4038,
|
|
3591
|
+
4038
|
|
3592
|
+
],
|
|
3593
|
+
[
|
|
3594
|
+
4141,
|
|
3595
|
+
4144
|
|
3596
|
+
],
|
|
3597
|
+
[
|
|
3598
|
+
4146,
|
|
3599
|
+
4146
|
|
3600
|
+
],
|
|
3601
|
+
[
|
|
3602
|
+
4150,
|
|
3603
|
+
4151
|
|
3604
|
+
],
|
|
3605
|
+
[
|
|
3606
|
+
4153,
|
|
3607
|
+
4153
|
|
3608
|
+
],
|
|
3609
|
+
[
|
|
3610
|
+
4184,
|
|
3611
|
+
4185
|
|
3612
|
+
],
|
|
3613
|
+
[
|
|
3614
|
+
4448,
|
|
3615
|
+
4607
|
|
3616
|
+
],
|
|
3617
|
+
[
|
|
3618
|
+
4959,
|
|
3619
|
+
4959
|
|
3620
|
+
],
|
|
3621
|
+
[
|
|
3622
|
+
5906,
|
|
3623
|
+
5908
|
|
3624
|
+
],
|
|
3625
|
+
[
|
|
3626
|
+
5938,
|
|
3627
|
+
5940
|
|
3628
|
+
],
|
|
3629
|
+
[
|
|
3630
|
+
5970,
|
|
3631
|
+
5971
|
|
3632
|
+
],
|
|
3633
|
+
[
|
|
3634
|
+
6002,
|
|
3635
|
+
6003
|
|
3636
|
+
],
|
|
3637
|
+
[
|
|
3638
|
+
6068,
|
|
3639
|
+
6069
|
|
3640
|
+
],
|
|
3641
|
+
[
|
|
3642
|
+
6071,
|
|
3643
|
+
6077
|
|
3644
|
+
],
|
|
3645
|
+
[
|
|
3646
|
+
6086,
|
|
3647
|
+
6086
|
|
3648
|
+
],
|
|
3649
|
+
[
|
|
3650
|
+
6089,
|
|
3651
|
+
6099
|
|
3652
|
+
],
|
|
3653
|
+
[
|
|
3654
|
+
6109,
|
|
3655
|
+
6109
|
|
3656
|
+
],
|
|
3657
|
+
[
|
|
3658
|
+
6155,
|
|
3659
|
+
6157
|
|
3660
|
+
],
|
|
3661
|
+
[
|
|
3662
|
+
6313,
|
|
3663
|
+
6313
|
|
3664
|
+
],
|
|
3665
|
+
[
|
|
3666
|
+
6432,
|
|
3667
|
+
6434
|
|
3668
|
+
],
|
|
3669
|
+
[
|
|
3670
|
+
6439,
|
|
3671
|
+
6440
|
|
3672
|
+
],
|
|
3673
|
+
[
|
|
3674
|
+
6450,
|
|
3675
|
+
6450
|
|
3676
|
+
],
|
|
3677
|
+
[
|
|
3678
|
+
6457,
|
|
3679
|
+
6459
|
|
3680
|
+
],
|
|
3681
|
+
[
|
|
3682
|
+
6679,
|
|
3683
|
+
6680
|
|
3684
|
+
],
|
|
3685
|
+
[
|
|
3686
|
+
6912,
|
|
3687
|
+
6915
|
|
3688
|
+
],
|
|
3689
|
+
[
|
|
3690
|
+
6964,
|
|
3691
|
+
6964
|
|
3692
|
+
],
|
|
3693
|
+
[
|
|
3694
|
+
6966,
|
|
3695
|
+
6970
|
|
3696
|
+
],
|
|
3697
|
+
[
|
|
3698
|
+
6972,
|
|
3699
|
+
6972
|
|
3700
|
+
],
|
|
3701
|
+
[
|
|
3702
|
+
6978,
|
|
3703
|
+
6978
|
|
3704
|
+
],
|
|
3705
|
+
[
|
|
3706
|
+
7019,
|
|
3707
|
+
7027
|
|
3708
|
+
],
|
|
3709
|
+
[
|
|
3710
|
+
7616,
|
|
3711
|
+
7626
|
|
3712
|
+
],
|
|
3713
|
+
[
|
|
3714
|
+
7678,
|
|
3715
|
+
7679
|
|
3716
|
+
],
|
|
3717
|
+
[
|
|
3718
|
+
8203,
|
|
3719
|
+
8207
|
|
3720
|
+
],
|
|
3721
|
+
[
|
|
3722
|
+
8234,
|
|
3723
|
+
8238
|
|
3724
|
+
],
|
|
3725
|
+
[
|
|
3726
|
+
8288,
|
|
3727
|
+
8291
|
|
3728
|
+
],
|
|
3729
|
+
[
|
|
3730
|
+
8298,
|
|
3731
|
+
8303
|
|
3732
|
+
],
|
|
3733
|
+
[
|
|
3734
|
+
8400,
|
|
3735
|
+
8431
|
|
3736
|
+
],
|
|
3737
|
+
[
|
|
3738
|
+
12330,
|
|
3739
|
+
12335
|
|
3740
|
+
],
|
|
3741
|
+
[
|
|
3742
|
+
12441,
|
|
3743
|
+
12442
|
|
3744
|
+
],
|
|
3745
|
+
[
|
|
3746
|
+
43014,
|
|
3747
|
+
43014
|
|
3748
|
+
],
|
|
3749
|
+
[
|
|
3750
|
+
43019,
|
|
3751
|
+
43019
|
|
3752
|
+
],
|
|
3753
|
+
[
|
|
3754
|
+
43045,
|
|
3755
|
+
43046
|
|
3756
|
+
],
|
|
3757
|
+
[
|
|
3758
|
+
64286,
|
|
3759
|
+
64286
|
|
3760
|
+
],
|
|
3761
|
+
[
|
|
3762
|
+
65024,
|
|
3763
|
+
65039
|
|
3764
|
+
],
|
|
3765
|
+
[
|
|
3766
|
+
65056,
|
|
3767
|
+
65059
|
|
3768
|
+
],
|
|
3769
|
+
[
|
|
3770
|
+
65279,
|
|
3771
|
+
65279
|
|
3772
|
+
],
|
|
3773
|
+
[
|
|
3774
|
+
65529,
|
|
3775
|
+
65531
|
|
3776
|
+
],
|
|
3777
|
+
[
|
|
3778
|
+
68097,
|
|
3779
|
+
68099
|
|
3780
|
+
],
|
|
3781
|
+
[
|
|
3782
|
+
68101,
|
|
3783
|
+
68102
|
|
3784
|
+
],
|
|
3785
|
+
[
|
|
3786
|
+
68108,
|
|
3787
|
+
68111
|
|
3788
|
+
],
|
|
3789
|
+
[
|
|
3790
|
+
68152,
|
|
3791
|
+
68154
|
|
3792
|
+
],
|
|
3793
|
+
[
|
|
3794
|
+
68159,
|
|
3795
|
+
68159
|
|
3796
|
+
],
|
|
3797
|
+
[
|
|
3798
|
+
119143,
|
|
3799
|
+
119145
|
|
3800
|
+
],
|
|
3801
|
+
[
|
|
3802
|
+
119155,
|
|
3803
|
+
119170
|
|
3804
|
+
],
|
|
3805
|
+
[
|
|
3806
|
+
119173,
|
|
3807
|
+
119179
|
|
3808
|
+
],
|
|
3809
|
+
[
|
|
3810
|
+
119210,
|
|
3811
|
+
119213
|
|
3812
|
+
],
|
|
3813
|
+
[
|
|
3814
|
+
119362,
|
|
3815
|
+
119364
|
|
3816
|
+
],
|
|
3817
|
+
[
|
|
3818
|
+
917505,
|
|
3819
|
+
917505
|
|
3820
|
+
],
|
|
3821
|
+
[
|
|
3822
|
+
917536,
|
|
3823
|
+
917631
|
|
3824
|
+
],
|
|
3825
|
+
[
|
|
3826
|
+
917760,
|
|
3827
|
+
917999
|
|
3828
|
+
]
|
|
3829
|
+
];
|
|
3830
|
+
},
|
|
3831
|
+
74: (e, t, r)=>{
|
|
3832
|
+
"use strict";
|
|
3833
|
+
var i = r(906);
|
|
3834
|
+
var n = r(70);
|
|
3835
|
+
var s = {
|
|
3836
|
+
nul: 0,
|
|
3837
|
+
control: 0
|
|
3838
|
+
};
|
|
3839
|
+
e.exports = function(e) {
|
|
3840
|
+
return wcswidth(e, s);
|
|
3841
|
+
};
|
|
3842
|
+
e.exports.config = function(e) {
|
|
3843
|
+
e = i(e || {}, s);
|
|
3844
|
+
return function(t) {
|
|
3845
|
+
return wcswidth(t, e);
|
|
3846
|
+
};
|
|
3847
|
+
};
|
|
3848
|
+
function wcswidth(e, t) {
|
|
3849
|
+
if ("string" != typeof e) return wcwidth(e, t);
|
|
3850
|
+
var r = 0;
|
|
3851
|
+
for(var i = 0; i < e.length; i++){
|
|
3852
|
+
var n = wcwidth(e.charCodeAt(i), t);
|
|
3853
|
+
if (n < 0) return -1;
|
|
3854
|
+
r += n;
|
|
3855
|
+
}
|
|
3856
|
+
return r;
|
|
3857
|
+
}
|
|
3858
|
+
function wcwidth(e, t) {
|
|
3859
|
+
if (0 === e) return t.nul;
|
|
3860
|
+
if (e < 32 || e >= 127 && e < 160) return t.control;
|
|
3861
|
+
if (bisearch(e)) return 0;
|
|
3862
|
+
return 1 + (e >= 4352 && (e <= 4447 || 9001 == e || 9002 == e || e >= 11904 && e <= 42191 && 12351 != e || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65135 || e >= 65280 && e <= 65376 || e >= 65504 && e <= 65510 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141));
|
|
3863
|
+
}
|
|
3864
|
+
function bisearch(e) {
|
|
3865
|
+
var t = 0;
|
|
3866
|
+
var r = n.length - 1;
|
|
3867
|
+
var i;
|
|
3868
|
+
if (e < n[0][0] || e > n[r][1]) return false;
|
|
3869
|
+
while(r >= t){
|
|
3870
|
+
i = Math.floor((t + r) / 2);
|
|
3871
|
+
if (e > n[i][1]) t = i + 1;
|
|
3872
|
+
else {
|
|
3873
|
+
if (!(e < n[i][0])) return true;
|
|
3874
|
+
r = i - 1;
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
return false;
|
|
3878
|
+
}
|
|
3879
|
+
},
|
|
3880
|
+
234: (e)=>{
|
|
3881
|
+
"use strict";
|
|
3882
|
+
e.exports = require("../chalk");
|
|
3883
|
+
},
|
|
3884
|
+
286: (e)=>{
|
|
3885
|
+
"use strict";
|
|
3886
|
+
e.exports = require("../strip-ansi");
|
|
3887
|
+
},
|
|
3888
|
+
491: (e)=>{
|
|
3889
|
+
"use strict";
|
|
3890
|
+
e.exports = require("assert");
|
|
3891
|
+
},
|
|
3892
|
+
300: (e)=>{
|
|
3893
|
+
"use strict";
|
|
3894
|
+
e.exports = require("buffer");
|
|
3895
|
+
},
|
|
3896
|
+
361: (e)=>{
|
|
3897
|
+
"use strict";
|
|
3898
|
+
e.exports = require("events");
|
|
3899
|
+
},
|
|
3900
|
+
521: (e)=>{
|
|
3901
|
+
"use strict";
|
|
3902
|
+
e.exports = require("readline");
|
|
3903
|
+
},
|
|
3904
|
+
781: (e)=>{
|
|
3905
|
+
"use strict";
|
|
3906
|
+
e.exports = require("stream");
|
|
3907
|
+
},
|
|
3908
|
+
837: (e)=>{
|
|
3909
|
+
"use strict";
|
|
3910
|
+
e.exports = require("util");
|
|
3911
|
+
},
|
|
3912
|
+
32: (e)=>{
|
|
3913
|
+
"use strict";
|
|
3914
|
+
e.exports = JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}');
|
|
3915
|
+
}
|
|
3916
|
+
};
|
|
3917
|
+
var t = {};
|
|
3918
|
+
function __nccwpck_require__(r) {
|
|
3919
|
+
var i = t[r];
|
|
3920
|
+
if (void 0 !== i) return i.exports;
|
|
3921
|
+
var n = t[r] = {
|
|
3922
|
+
exports: {}
|
|
3923
|
+
};
|
|
3924
|
+
var s = true;
|
|
3925
|
+
try {
|
|
3926
|
+
e[r](n, n.exports, __nccwpck_require__);
|
|
3927
|
+
s = false;
|
|
3928
|
+
} finally{
|
|
3929
|
+
if (s) delete t[r];
|
|
3930
|
+
}
|
|
3931
|
+
return n.exports;
|
|
3932
|
+
}
|
|
3933
|
+
if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
|
|
3934
|
+
var r = __nccwpck_require__(942);
|
|
3935
|
+
module.exports = r;
|
|
3936
|
+
})();
|