@tachybase/module-backup 0.23.8
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/.turbo/turbo-build.log +12 -0
- package/README.md +118 -0
- package/README.zh-CN.md +118 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/Configuration.d.ts +2 -0
- package/dist/client/DuplicatorProvider.d.ts +5 -0
- package/dist/client/index.d.ts +5 -0
- package/dist/client/index.js +1 -0
- package/dist/client/locale/index.d.ts +4 -0
- package/dist/externalVersion.js +14 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/locale/en-US.json +44 -0
- package/dist/locale/ja-JP.d.ts +25 -0
- package/dist/locale/ja-JP.js +46 -0
- package/dist/locale/ko_KR.json +50 -0
- package/dist/locale/pt-BR.d.ts +26 -0
- package/dist/locale/pt-BR.js +48 -0
- package/dist/locale/zh-CN.json +50 -0
- package/dist/node_modules/@hapi/topo/lib/index.d.ts +60 -0
- package/dist/node_modules/@hapi/topo/lib/index.js +1 -0
- package/dist/node_modules/@hapi/topo/package.json +1 -0
- package/dist/node_modules/archiver/LICENSE +22 -0
- package/dist/node_modules/archiver/index.js +68 -0
- package/dist/node_modules/archiver/lib/core.js +974 -0
- package/dist/node_modules/archiver/lib/error.js +40 -0
- package/dist/node_modules/archiver/lib/plugins/json.js +110 -0
- package/dist/node_modules/archiver/lib/plugins/tar.js +167 -0
- package/dist/node_modules/archiver/lib/plugins/zip.js +120 -0
- package/dist/node_modules/archiver/package.json +1 -0
- package/dist/node_modules/decompress/index.js +16 -0
- package/dist/node_modules/decompress/license +9 -0
- package/dist/node_modules/decompress/package.json +1 -0
- package/dist/node_modules/mkdirp/LICENSE +21 -0
- package/dist/node_modules/mkdirp/bin/cmd.js +68 -0
- package/dist/node_modules/mkdirp/index.js +1 -0
- package/dist/node_modules/mkdirp/lib/find-made.js +29 -0
- package/dist/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- package/dist/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- package/dist/node_modules/mkdirp/lib/opts-arg.js +23 -0
- package/dist/node_modules/mkdirp/lib/path-arg.js +29 -0
- package/dist/node_modules/mkdirp/lib/use-native.js +10 -0
- package/dist/node_modules/mkdirp/package.json +1 -0
- package/dist/node_modules/mkdirp/readme.markdown +266 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/bin/semver.js +188 -0
- package/dist/node_modules/semver/classes/comparator.js +141 -0
- package/dist/node_modules/semver/classes/index.js +5 -0
- package/dist/node_modules/semver/classes/range.js +554 -0
- package/dist/node_modules/semver/classes/semver.js +302 -0
- package/dist/node_modules/semver/functions/clean.js +6 -0
- package/dist/node_modules/semver/functions/cmp.js +52 -0
- package/dist/node_modules/semver/functions/coerce.js +60 -0
- package/dist/node_modules/semver/functions/compare-build.js +7 -0
- package/dist/node_modules/semver/functions/compare-loose.js +3 -0
- package/dist/node_modules/semver/functions/compare.js +5 -0
- package/dist/node_modules/semver/functions/diff.js +65 -0
- package/dist/node_modules/semver/functions/eq.js +3 -0
- package/dist/node_modules/semver/functions/gt.js +3 -0
- package/dist/node_modules/semver/functions/gte.js +3 -0
- package/dist/node_modules/semver/functions/inc.js +19 -0
- package/dist/node_modules/semver/functions/lt.js +3 -0
- package/dist/node_modules/semver/functions/lte.js +3 -0
- package/dist/node_modules/semver/functions/major.js +3 -0
- package/dist/node_modules/semver/functions/minor.js +3 -0
- package/dist/node_modules/semver/functions/neq.js +3 -0
- package/dist/node_modules/semver/functions/parse.js +16 -0
- package/dist/node_modules/semver/functions/patch.js +3 -0
- package/dist/node_modules/semver/functions/prerelease.js +6 -0
- package/dist/node_modules/semver/functions/rcompare.js +3 -0
- package/dist/node_modules/semver/functions/rsort.js +3 -0
- package/dist/node_modules/semver/functions/satisfies.js +10 -0
- package/dist/node_modules/semver/functions/sort.js +3 -0
- package/dist/node_modules/semver/functions/valid.js +6 -0
- package/dist/node_modules/semver/index.js +1 -0
- package/dist/node_modules/semver/internal/constants.js +35 -0
- package/dist/node_modules/semver/internal/debug.js +9 -0
- package/dist/node_modules/semver/internal/identifiers.js +23 -0
- package/dist/node_modules/semver/internal/lrucache.js +40 -0
- package/dist/node_modules/semver/internal/parse-options.js +15 -0
- package/dist/node_modules/semver/internal/re.js +217 -0
- package/dist/node_modules/semver/package.json +1 -0
- package/dist/node_modules/semver/preload.js +2 -0
- package/dist/node_modules/semver/range.bnf +16 -0
- package/dist/node_modules/semver/ranges/gtr.js +4 -0
- package/dist/node_modules/semver/ranges/intersects.js +7 -0
- package/dist/node_modules/semver/ranges/ltr.js +4 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/dist/node_modules/semver/ranges/min-version.js +61 -0
- package/dist/node_modules/semver/ranges/outside.js +80 -0
- package/dist/node_modules/semver/ranges/simplify.js +47 -0
- package/dist/node_modules/semver/ranges/subset.js +247 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +8 -0
- package/dist/node_modules/semver/ranges/valid.js +11 -0
- package/dist/server/app-migrator.d.ts +16 -0
- package/dist/server/app-migrator.js +61 -0
- package/dist/server/collection-group-manager.d.ts +4 -0
- package/dist/server/collection-group-manager.js +29 -0
- package/dist/server/commands/restore-command.d.ts +2 -0
- package/dist/server/commands/restore-command.js +67 -0
- package/dist/server/dumper.d.ts +71 -0
- package/dist/server/dumper.js +421 -0
- package/dist/server/errors/restore-check-error.d.ts +3 -0
- package/dist/server/errors/restore-check-error.js +32 -0
- package/dist/server/field-value-writer.d.ts +9 -0
- package/dist/server/field-value-writer.js +99 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +33 -0
- package/dist/server/locale/zh-CN.d.ts +9 -0
- package/dist/server/locale/zh-CN.js +30 -0
- package/dist/server/resourcers/backup-files.d.ts +25 -0
- package/dist/server/resourcers/backup-files.js +206 -0
- package/dist/server/restorer.d.ts +35 -0
- package/dist/server/restorer.js +320 -0
- package/dist/server/server.d.ts +8 -0
- package/dist/server/server.js +52 -0
- package/dist/server/utils.d.ts +5 -0
- package/dist/server/utils.js +78 -0
- package/dist/swagger/index.d.ts +392 -0
- package/dist/swagger/index.js +447 -0
- package/package.json +48 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
(function(){var e={3745:function(e,t,r){var n=r(7551);var i=r(6928);var a=r(6502);var s=r(7467);var o=r(2516);var u=r(5520);var l=r(4908);var c=e.exports={};var h=/[\/\\]/g;var processPatterns=function(e,t){var r=[];a(e).forEach((function(e){var n=e.indexOf("!")===0;if(n){e=e.slice(1)}var i=t(e);if(n){r=s(r,i)}else{r=o(r,i)}}));return r};c.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)};c.expand=function(...e){var t=u(e[0])?e.shift():{};var r=Array.isArray(e[0])?e[0]:e;if(r.length===0){return[]}var a=processPatterns(r,(function(e){return l.sync(e,t)}));if(t.filter){a=a.filter((function(e){e=i.join(t.cwd||"",e);try{if(typeof t.filter==="function"){return t.filter(e)}else{return n.statSync(e)[t.filter]()}}catch(e){return false}}))}return a};c.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[];var a={};c.expand(r,e).forEach((function(e){var s=e;if(r.flatten){s=i.basename(s)}if(r.ext){s=s.replace(/(\.[^\/]*)?$/,r.ext)}var o=r.rename(t,s,r);if(r.cwd){e=i.join(r.cwd,e)}o=o.replace(h,"/");e=e.replace(h,"/");if(a[o]){a[o].src.push(e)}else{n.push({src:[e],dest:o});a[o]=n[n.length-1]}}));return n};c.normalizeFilesArray=function(e){var t=[];e.forEach((function(e){var r;if("src"in e||"dest"in e){t.push(e)}}));if(t.length===0){return[]}t=_(t).chain().forEach((function(e){if(!("src"in e)||!e.src){return}if(Array.isArray(e.src)){e.src=a(e.src)}else{e.src=[e.src]}})).map((function(e){var t=Object.assign({},e);delete t.src;delete t.dest;if(e.expand){return c.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);r.orig=Object.assign({},e);r.src=t.src;r.dest=t.dest;["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]}));return r}))}var r=Object.assign({},e);r.orig=Object.assign({},e);if("src"in r){Object.defineProperty(r,"src",{enumerable:true,get:function fn(){var r;if(!("result"in fn)){r=e.src;r=Array.isArray(r)?a(r):[r];fn.result=c.expand(t,r)}return fn.result}})}if("dest"in r){r.dest=e.dest}return r})).flatten().value();return t}},4587:function(e,t,r){var n=r(7551);var i=r(6928);var a=r(9023);var s=r(2186);var o=r(4527);var u=r(4242);var l=r(2203).Stream;var c=r(1397).PassThrough;var h=e.exports={};h.file=r(3745);function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+nutils.inspect(e))}}h.collectStream=function(e,t){var r=[];var n=0;e.on("error",t);e.on("data",(function(e){r.push(e);n+=e.length}));e.on("end",(function(){var e=new Buffer(n);var i=0;r.forEach((function(t){t.copy(e,i);i+=t.length}));t(null,e)}))};h.dateify=function(e){e=e||new Date;if(e instanceof Date){e=e}else if(typeof e==="string"){e=new Date(e)}else{e=new Date}return e};h.defaults=function(e,t,r){var n=arguments;n[0]=n[0]||{};return u(...n)};h.isStream=function(e){return e instanceof l};h.lazyReadStream=function(e){return new s.Readable((function(){return n.createReadStream(e)}))};h.normalizeInputSource=function(e){if(e===null){return new Buffer(0)}else if(typeof e==="string"){return new Buffer(e)}else if(h.isStream(e)&&!e._readableState){var t=new c;e.pipe(t);return t}return e};h.sanitizePath=function(e){return o(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};h.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};h.unixifyPath=function(e){return o(e,false).replace(/^\w+:/,"")};h.walkdir=function(e,t,r){var a=[];if(typeof t==="function"){r=t;t=e}n.readdir(e,(function(s,o){var u=0;var l;var c;if(s){return r(s)}(function next(){l=o[u++];if(!l){return r(null,a)}c=i.join(e,l);n.stat(c,(function(e,r){a.push({path:c,relative:i.relative(t,c).replace(/\\/g,"/"),stats:r});if(r&&r.isDirectory()){h.walkdir(c,t,(function(e,t){t.forEach((function(e){a.push(e)}));next()}))}else{next()}}))})()}))}},8145:function(e,t,r){var n=r(7551);var i=r(6928);var a=r(6502);var s=r(7467);var o=r(2516);var u=r(5520);var l=r(4908);var c=e.exports={};var h=/[\/\\]/g;var processPatterns=function(e,t){var r=[];a(e).forEach((function(e){var n=e.indexOf("!")===0;if(n){e=e.slice(1)}var i=t(e);if(n){r=s(r,i)}else{r=o(r,i)}}));return r};c.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)};c.expand=function(...e){var t=u(e[0])?e.shift():{};var r=Array.isArray(e[0])?e[0]:e;if(r.length===0){return[]}var a=processPatterns(r,(function(e){return l.sync(e,t)}));if(t.filter){a=a.filter((function(e){e=i.join(t.cwd||"",e);try{if(typeof t.filter==="function"){return t.filter(e)}else{return n.statSync(e)[t.filter]()}}catch(e){return false}}))}return a};c.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[];var a={};c.expand(r,e).forEach((function(e){var s=e;if(r.flatten){s=i.basename(s)}if(r.ext){s=s.replace(/(\.[^\/]*)?$/,r.ext)}var o=r.rename(t,s,r);if(r.cwd){e=i.join(r.cwd,e)}o=o.replace(h,"/");e=e.replace(h,"/");if(a[o]){a[o].src.push(e)}else{n.push({src:[e],dest:o});a[o]=n[n.length-1]}}));return n};c.normalizeFilesArray=function(e){var t=[];e.forEach((function(e){var r;if("src"in e||"dest"in e){t.push(e)}}));if(t.length===0){return[]}t=_(t).chain().forEach((function(e){if(!("src"in e)||!e.src){return}if(Array.isArray(e.src)){e.src=a(e.src)}else{e.src=[e.src]}})).map((function(e){var t=Object.assign({},e);delete t.src;delete t.dest;if(e.expand){return c.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);r.orig=Object.assign({},e);r.src=t.src;r.dest=t.dest;["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]}));return r}))}var r=Object.assign({},e);r.orig=Object.assign({},e);if("src"in r){Object.defineProperty(r,"src",{enumerable:true,get:function fn(){var r;if(!("result"in fn)){r=e.src;r=Array.isArray(r)?a(r):[r];fn.result=c.expand(t,r)}return fn.result}})}if("dest"in r){r.dest=e.dest}return r})).flatten().value();return t}},7819:function(e,t,r){var n=r(7551);var i=r(6928);var a=r(2186);var s=r(4527);var o=r(4242);var u=r(2203).Stream;var l=r(1643).PassThrough;var c=e.exports={};c.file=r(8145);c.collectStream=function(e,t){var r=[];var n=0;e.on("error",t);e.on("data",(function(e){r.push(e);n+=e.length}));e.on("end",(function(){var e=Buffer.alloc(n);var i=0;r.forEach((function(t){t.copy(e,i);i+=t.length}));t(null,e)}))};c.dateify=function(e){e=e||new Date;if(e instanceof Date){e=e}else if(typeof e==="string"){e=new Date(e)}else{e=new Date}return e};c.defaults=function(e,t,r){var n=arguments;n[0]=n[0]||{};return o(...n)};c.isStream=function(e){return e instanceof u};c.lazyReadStream=function(e){return new a.Readable((function(){return n.createReadStream(e)}))};c.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(c.isStream(e)){return e.pipe(new l)}return e};c.sanitizePath=function(e){return s(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};c.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};c.unixifyPath=function(e){return s(e,false).replace(/^\w+:/,"")};c.walkdir=function(e,t,r){var a=[];if(typeof t==="function"){r=t;t=e}n.readdir(e,(function(s,o){var u=0;var l;var h;if(s){return r(s)}(function next(){l=o[u++];if(!l){return r(null,a)}h=i.join(e,l);n.stat(h,(function(e,r){a.push({path:h,relative:i.relative(t,h).replace(/\\/g,"/"),stats:r});if(r&&r.isDirectory()){c.walkdir(h,t,(function(e,t){t.forEach((function(e){a.push(e)}));next()}))}else{next()}}))})()}))}},1538:function(e,t,r){
|
|
2
|
+
/**
|
|
3
|
+
* Archiver Vending
|
|
4
|
+
*
|
|
5
|
+
* @ignore
|
|
6
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
7
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
8
|
+
*/
|
|
9
|
+
var n=r(6379);var i={};var vending=function(e,t){return vending.create(e,t)};vending.create=function(e,t){if(i[e]){var r=new n(e,t);r.setFormat(e);r.setModule(new i[e](t));return r}else{throw new Error("create("+e+"): format not registered")}};vending.registerFormat=function(e,t){if(i[e]){throw new Error("register("+e+"): format already registered")}if(typeof t!=="function"){throw new Error("register("+e+"): format module invalid")}if(typeof t.prototype.append!=="function"||typeof t.prototype.finalize!=="function"){throw new Error("register("+e+"): format module missing methods")}i[e]=t};vending.isRegisteredFormat=function(e){if(i[e]){return true}return false};vending.registerFormat("zip",r(3598));vending.registerFormat("tar",r(9238));vending.registerFormat("json",r(1839));e.exports=vending},6379:function(e,t,r){
|
|
10
|
+
/**
|
|
11
|
+
* Archiver Core
|
|
12
|
+
*
|
|
13
|
+
* @ignore
|
|
14
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
15
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
16
|
+
*/
|
|
17
|
+
var n=r(9896);var i=r(8975);var a=r(4299);var s=r(6928);var o=r(4587);var u=r(9023).inherits;var l=r(9524);var c=r(1643).Transform;var h=process.platform==="win32";var Archiver=function(e,t){if(!(this instanceof Archiver)){return new Archiver(e,t)}if(typeof e!=="string"){t=e;e="zip"}t=this.options=o.defaults(t,{highWaterMark:1024*1024,statConcurrency:4});c.call(this,t);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=a.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=a.queue(this._onStatQueueTask.bind(this),t.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};u(Archiver,c);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(e,t){t=t||{};var r={source:null,filepath:e};if(!t.name){t.name=e}t.sourcePath=e;r.data=t;this._entriesCount++;if(t.stats&&t.stats instanceof n.Stats){r=this._updateQueueTaskWithStats(r,t.stats);if(r){if(t.stats.size){this._fsEntriesTotalBytes+=t.stats.size}this._queue.push(r)}}else{this._statQueue.push(r)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(e,t,r){if(this._state.aborted){r();return}this._module.append(e,t,function(e){this._task=null;if(this._state.aborted){this._shutdown();return}if(e){this.emit("error",e);setImmediate(r);return}this.emit("entry",t);this._entriesProcessedCount++;if(t.stats&&t.stats.size){this._fsEntriesProcessedBytes+=t.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(r)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new l("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(e){if(!this._module.supports||!this._module.supports[e]){return false}return this._module.supports[e]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(e,t){e=o.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(t&&e.stats===false){e.stats=t}var r=e.type==="directory";if(e.name){if(typeof e.prefix==="string"&&""!==e.prefix){e.name=e.prefix+"/"+e.name;e.prefix=null}e.name=o.sanitizePath(e.name);if(e.type!=="symlink"&&e.name.slice(-1)==="/"){r=true;e.type="directory"}else if(r){e.name+="/"}}if(typeof e.mode==="number"){if(h){e.mode&=511}else{e.mode&=4095}}else if(e.stats&&e.mode===null){if(h){e.mode=e.stats.mode&511}else{e.mode=e.stats.mode&4095}if(h&&r){e.mode=493}}else if(e.mode===null){e.mode=r?493:420}if(e.stats&&e.date===null){e.date=e.stats.mtime}else{e.date=o.dateify(e.date)}return e};Archiver.prototype._onModuleError=function(e){this.emit("error",e)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(e,t){var fullCallback=()=>{if(e.data.callback){e.data.callback()}t()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=e;this._moduleAppend(e.source,e.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}n.lstat(e.filepath,function(r,n){if(this._state.aborted){setImmediate(t);return}if(r){this._entriesCount--;this.emit("warning",r);setImmediate(t);return}e=this._updateQueueTaskWithStats(e,n);if(e){if(n.size){this._fsEntriesTotalBytes+=n.size}this._queue.push(e)}setImmediate(t)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(e,t,r){if(e){this._pointer+=e.length}r(null,e)};Archiver.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile()){e.data.type="file";e.data.sourceType="stream";e.source=o.lazyReadStream(e.filepath)}else if(t.isDirectory()&&this._moduleSupports("directory")){e.data.name=o.trailingSlashIt(e.data.name);e.data.type="directory";e.data.sourcePath=o.trailingSlashIt(e.filepath);e.data.sourceType="buffer";e.source=Buffer.concat([])}else if(t.isSymbolicLink()&&this._moduleSupports("symlink")){var r=n.readlinkSync(e.filepath);var i=s.dirname(e.filepath);e.data.type="symlink";e.data.linkname=s.relative(i,s.resolve(i,r));e.data.sourceType="buffer";e.source=Buffer.concat([])}else{if(t.isDirectory()){this.emit("warning",new l("DIRECTORYNOTSUPPORTED",e.data))}else if(t.isSymbolicLink()){this.emit("warning",new l("SYMLINKNOTSUPPORTED",e.data))}else{this.emit("warning",new l("ENTRYNOTSUPPORTED",e.data))}return null}e.data=this._normalizeEntryData(e.data,t);return e};Archiver.prototype.abort=function(){if(this._state.aborted||this._state.finalized){return this}this._abort();return this};Archiver.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted){this.emit("error",new l("QUEUECLOSED"));return this}t=this._normalizeEntryData(t);if(typeof t.name!=="string"||t.name.length===0){this.emit("error",new l("ENTRYNAMEREQUIRED"));return this}if(t.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new l("DIRECTORYNOTSUPPORTED",{name:t.name}));return this}e=o.normalizeInputSource(e);if(Buffer.isBuffer(e)){t.sourceType="buffer"}else if(o.isStream(e)){t.sourceType="stream"}else{this.emit("error",new l("INPUTSTEAMBUFFERREQUIRED",{name:t.name}));return this}this._entriesCount++;this._queue.push({data:t,source:e});return this};Archiver.prototype.directory=function(e,t,r){if(this._state.finalize||this._state.aborted){this.emit("error",new l("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new l("DIRECTORYDIRPATHREQUIRED"));return this}this._pending++;if(t===false){t=""}else if(typeof t!=="string"){t=e}var n=false;if(typeof r==="function"){n=r;r={}}else if(typeof r!=="object"){r={}}var a={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(i){s.pause();var a=false;var o=Object.assign({},r);o.name=i.relative;o.prefix=t;o.stats=i.stat;o.callback=s.resume.bind(s);try{if(n){o=n(o);if(o===false){a=true}else if(typeof o!=="object"){throw new l("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}}catch(e){this.emit("error",e);return}if(a){s.resume();return}this._append(i.absolute,o)}var s=i(e,a);s.on("error",onGlobError.bind(this));s.on("match",onGlobMatch.bind(this));s.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(e,t){if(this._state.finalize||this._state.aborted){this.emit("error",new l("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new l("FILEFILEPATHREQUIRED"));return this}this._append(e,t);return this};Archiver.prototype.glob=function(e,t,r){this._pending++;t=o.defaults(t,{stat:true,pattern:e});function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(e){n.pause();var t=Object.assign({},r);t.callback=n.resume.bind(n);t.stats=e.stat;t.name=e.relative;this._append(e.absolute,t)}var n=i(t.cwd||".",t);n.on("error",onGlobError.bind(this));n.on("match",onGlobMatch.bind(this));n.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.finalize=function(){if(this._state.aborted){var e=new l("ABORTED");this.emit("error",e);return Promise.reject(e)}if(this._state.finalize){var t=new l("FINALIZING");this.emit("error",t);return Promise.reject(t)}this._state.finalize=true;if(this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}var r=this;return new Promise((function(e,t){var n;r._module.on("end",(function(){if(!n){e()}}));r._module.on("error",(function(e){n=true;t(e)}))}))};Archiver.prototype.setFormat=function(e){if(this._format){this.emit("error",new l("FORMATSET"));return this}this._format=e;return this};Archiver.prototype.setModule=function(e){if(this._state.aborted){this.emit("error",new l("ABORTED"));return this}if(this._state.module){this.emit("error",new l("MODULESET"));return this}this._module=e;this._modulePipe();return this};Archiver.prototype.symlink=function(e,t,r){if(this._state.finalize||this._state.aborted){this.emit("error",new l("QUEUECLOSED"));return this}if(typeof e!=="string"||e.length===0){this.emit("error",new l("SYMLINKFILEPATHREQUIRED"));return this}if(typeof t!=="string"||t.length===0){this.emit("error",new l("SYMLINKTARGETREQUIRED",{filepath:e}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new l("SYMLINKNOTSUPPORTED",{filepath:e}));return this}var n={};n.type="symlink";n.name=e.replace(/\\/g,"/");n.linkname=t.replace(/\\/g,"/");n.sourceType="buffer";if(typeof r==="number"){n.mode=r}this._entriesCount++;this._queue.push({data:n,source:Buffer.concat([])});return this};Archiver.prototype.pointer=function(){return this._pointer};Archiver.prototype.use=function(e){this._streams.push(e);return this};e.exports=Archiver},9524:function(e,t,r){
|
|
18
|
+
/**
|
|
19
|
+
* Archiver Core
|
|
20
|
+
*
|
|
21
|
+
* @ignore
|
|
22
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
23
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
24
|
+
*/
|
|
25
|
+
var n=r(9023);const i={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(e,t){Error.captureStackTrace(this,this.constructor);this.message=i[e]||e;this.code=e;this.data=t}n.inherits(ArchiverError,Error);t=e.exports=ArchiverError},1839:function(e,t,r){
|
|
26
|
+
/**
|
|
27
|
+
* JSON Format Plugin
|
|
28
|
+
*
|
|
29
|
+
* @module plugins/json
|
|
30
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
31
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
32
|
+
*/
|
|
33
|
+
var n=r(9023).inherits;var i=r(1643).Transform;var a=r(7064);var s=r(4587);var Json=function(e){if(!(this instanceof Json)){return new Json(e)}e=this.options=s.defaults(e,{});i.call(this,e);this.supports={directory:true,symlink:true};this.files=[]};n(Json,i);Json.prototype._transform=function(e,t,r){r(null,e)};Json.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)};Json.prototype.append=function(e,t,r){var n=this;t.crc32=0;function onend(e,i){if(e){r(e);return}t.size=i.length||0;t.crc32=a.unsigned(i);n.files.push(t);r(null,t)}if(t.sourceType==="buffer"){onend(null,e)}else if(t.sourceType==="stream"){s.collectStream(e,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};e.exports=Json},9238:function(e,t,r){
|
|
34
|
+
/**
|
|
35
|
+
* TAR Format Plugin
|
|
36
|
+
*
|
|
37
|
+
* @module plugins/tar
|
|
38
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
39
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
40
|
+
*/
|
|
41
|
+
var n=r(3106);var i=r(2454);var a=r(4587);var Tar=function(e){if(!(this instanceof Tar)){return new Tar(e)}e=this.options=a.defaults(e,{gzip:false});if(typeof e.gzipOptions!=="object"){e.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=i.pack(e);this.compressor=false;if(e.gzip){this.compressor=n.createGzip(e.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(e){this.engine.emit("error",e)};Tar.prototype.append=function(e,t,r){var n=this;t.mtime=t.date;function append(e,i){if(e){r(e);return}n.engine.entry(t,i,(function(e){r(e,t)}))}if(t.sourceType==="buffer"){append(null,e)}else if(t.sourceType==="stream"&&t.stats){t.size=t.stats.size;var i=n.engine.entry(t,(function(e){r(e,t)}));e.pipe(i)}else if(t.sourceType==="stream"){a.collectStream(e,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(e,t){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};e.exports=Tar},3598:function(e,t,r){
|
|
42
|
+
/**
|
|
43
|
+
* ZIP Format Plugin
|
|
44
|
+
*
|
|
45
|
+
* @module plugins/zip
|
|
46
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
47
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
48
|
+
*/
|
|
49
|
+
var n=r(3974);var i=r(4587);var Zip=function(e){if(!(this instanceof Zip)){return new Zip(e)}e=this.options=i.defaults(e,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new n(e)};Zip.prototype.append=function(e,t,r){this.engine.entry(e,t,r)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};e.exports=Zip},4299:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";function apply(e,...t){return(...r)=>e(...t,...r)}function initialParams(e){return function(...t){var r=t.pop();return e.call(this,t,r)}}var t=typeof queueMicrotask==="function"&&queueMicrotask;var r=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return(t,...r)=>e((()=>t(...r)))}var i;if(t){i=queueMicrotask}else if(r){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var a=wrap(i);function asyncify(e){if(isAsync(e)){return function(...t){const r=t.pop();const n=e.apply(this,t);return handlePromise(n,r)}}return initialParams((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&typeof n.then==="function"){return handlePromise(n,r)}else{r(null,n)}}))}function handlePromise(e,t){return e.then((e=>{invokeCallback(t,null,e)}),(e=>{invokeCallback(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function invokeCallback(e,t,r){try{e(t,r)}catch(e){a((e=>{throw e}),e)}}function isAsync(e){return e[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(e){return typeof e[Symbol.asyncIterator]==="function"}function wrapAsync(e){if(typeof e!=="function")throw new Error("expected a function");return isAsync(e)?asyncify(e):e}function awaitify(e,t){if(!t)t=e.length;if(!t)throw new Error("arity is undefined");function awaitable(...r){if(typeof r[t-1]==="function"){return e.apply(this,r)}return new Promise(((n,i)=>{r[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])};e.apply(this,r)}))}return awaitable}function applyEach$1(e){return function applyEach(t,...r){const n=awaitify((function(n){var i=this;return e(t,((e,t)=>{wrapAsync(e).apply(i,r.concat(t))}),n)}));return n}}function _asyncMap(e,t,r,n){t=t||[];var i=[];var a=0;var s=wrapAsync(r);return e(t,((e,t,r)=>{var n=a++;s(e,((e,t)=>{i[n]=t;r(e)}))}),(e=>{n(e,i)}))}function isArrayLike(e){return e&&typeof e.length==="number"&&e.length>=0&&e.length%1===0}const s={};var o=s;function once(e){function wrapper(...t){if(e===null)return;var r=e;e=null;r.apply(this,t)}Object.assign(wrapper,e);return wrapper}function getIterator(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function createArrayIterator(e){var t=-1;var r=e.length;return function next(){return++t<r?{value:e[t],key:t}:null}}function createES2015Iterator(e){var t=-1;return function next(){var r=e.next();if(r.done)return null;t++;return{value:r.value,key:t}}}function createObjectIterator(e){var t=e?Object.keys(e):[];var r=-1;var n=t.length;return function next(){var i=t[++r];if(i==="__proto__"){return next()}return r<n?{value:e[i],key:i}:null}}function createIterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var t=getIterator(e);return t?createES2015Iterator(t):createObjectIterator(e)}function onlyOnce(e){return function(...t){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,t)}}function asyncEachOfLimit(e,t,r,n){let i=false;let a=false;let s=false;let u=0;let l=0;function replenish(){if(u>=t||s||i)return;s=true;e.next().then((({value:e,done:t})=>{if(a||i)return;s=false;if(t){i=true;if(u<=0){n(null)}return}u++;r(e,l,iterateeCallback);l++;replenish()})).catch(handleError)}function iterateeCallback(e,t){u-=1;if(a)return;if(e)return handleError(e);if(e===false){i=true;a=true;return}if(t===o||i&&u<=0){i=true;return n(null)}replenish()}function handleError(e){if(a)return;s=false;i=true;n(e)}replenish()}var eachOfLimit$2=e=>(t,r,n)=>{n=once(n);if(e<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!t){return n(null)}if(isAsyncGenerator(t)){return asyncEachOfLimit(t,e,r,n)}if(isAsyncIterable(t)){return asyncEachOfLimit(t[Symbol.asyncIterator](),e,r,n)}var i=createIterator(t);var a=false;var s=false;var u=0;var l=false;function iterateeCallback(e,t){if(s)return;u-=1;if(e){a=true;n(e)}else if(e===false){a=true;s=true}else if(t===o||a&&u<=0){a=true;return n(null)}else if(!l){replenish()}}function replenish(){l=true;while(u<e&&!a){var t=i();if(t===null){a=true;if(u<=0){n(null)}return}u+=1;r(t.value,t.key,onlyOnce(iterateeCallback))}l=false}replenish()};function eachOfLimit(e,t,r,n){return eachOfLimit$2(t)(e,wrapAsync(r),n)}var u=awaitify(eachOfLimit,4);function eachOfArrayLike(e,t,r){r=once(r);var n=0,i=0,{length:a}=e,s=false;if(a===0){r(null)}function iteratorCallback(e,t){if(e===false){s=true}if(s===true)return;if(e){r(e)}else if(++i===a||t===o){r(null)}}for(;n<a;n++){t(e[n],n,onlyOnce(iteratorCallback))}}function eachOfGeneric(e,t,r){return u(e,Infinity,t,r)}function eachOf(e,t,r){var n=isArrayLike(e)?eachOfArrayLike:eachOfGeneric;return n(e,wrapAsync(t),r)}var l=awaitify(eachOf,3);function map(e,t,r){return _asyncMap(l,e,t,r)}var c=awaitify(map,3);var h=applyEach$1(c);function eachOfSeries(e,t,r){return u(e,1,t,r)}var p=awaitify(eachOfSeries,3);function mapSeries(e,t,r){return _asyncMap(p,e,t,r)}var d=awaitify(mapSeries,3);var y=applyEach$1(d);const g=Symbol("promiseCallback");function promiseCallback(){let e,t;function callback(r,...n){if(r)return t(r);e(n.length>1?n:n[0])}callback[g]=new Promise(((r,n)=>{e=r,t=n}));return callback}function auto(e,t,r){if(typeof t!=="number"){r=t;t=null}r=once(r||promiseCallback());var n=Object.keys(e).length;if(!n){return r(null)}if(!t){t=n}var i={};var a=0;var s=false;var o=false;var u=Object.create(null);var l=[];var c=[];var h={};Object.keys(e).forEach((t=>{var r=e[t];if(!Array.isArray(r)){enqueueTask(t,[r]);c.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);c.push(t);return}h[t]=i;n.forEach((a=>{if(!e[a]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+n.join(", "))}addListener(a,(()=>{i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,t){l.push((()=>runTask(e,t)))}function processQueue(){if(s)return;if(l.length===0&&a===0){return r(null,i)}while(l.length&&a<t){var e=l.shift();e()}}function addListener(e,t){var r=u[e];if(!r){r=u[e]=[]}r.push(t)}function taskComplete(e){var t=u[e]||[];t.forEach((e=>e()));processQueue()}function runTask(e,t){if(o)return;var n=onlyOnce(((t,...n)=>{a--;if(t===false){s=true;return}if(n.length<2){[n]=n}if(t){var l={};Object.keys(i).forEach((e=>{l[e]=i[e]}));l[e]=n;o=true;u=Object.create(null);if(s)return;r(t,l)}else{i[e]=n;taskComplete(e)}}));a++;var l=wrapAsync(t[t.length-1]);if(t.length>1){l(i,n)}else{l(n)}}function checkForDeadlocks(){var e;var t=0;while(c.length){e=c.pop();t++;getDependents(e).forEach((e=>{if(--h[e]===0){c.push(e)}}))}if(t!==n){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(t){var r=[];Object.keys(e).forEach((n=>{const i=e[n];if(Array.isArray(i)&&i.indexOf(t)>=0){r.push(n)}}));return r}return r[g]}var v=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var b=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var _=/,/;var w=/(=.+)?(\s*)$/;function stripComments(e){let t="";let r=0;let n=e.indexOf("*/");while(r<e.length){if(e[r]==="/"&&e[r+1]==="/"){let t=e.indexOf("\n",r);r=t===-1?e.length:t}else if(n!==-1&&e[r]==="/"&&e[r+1]==="*"){let i=e.indexOf("*/",r);if(i!==-1){r=i+2;n=e.indexOf("*/",r)}else{t+=e[r];r++}}else{t+=e[r];r++}}return t}function parseParams(e){const t=stripComments(e.toString());let r=t.match(v);if(!r){r=t.match(b)}if(!r)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,n]=r;return n.replace(/\s/g,"").split(_).map((e=>e.replace(w,"").trim()))}function autoInject(e,t){var r={};Object.keys(e).forEach((t=>{var n=e[t];var i;var a=isAsync(n);var s=!a&&n.length===1||a&&n.length===0;if(Array.isArray(n)){i=[...n];n=i.pop();r[t]=i.concat(i.length>0?newTask:n)}else if(s){r[t]=n}else{i=parseParams(n);if(n.length===0&&!a&&i.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!a)i.pop();r[t]=i.concat(newTask)}function newTask(e,t){var r=i.map((t=>e[t]));r.push(t);wrapAsync(n)(...r)}}));return auto(r,t)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e}empty(){while(this.head)this.shift();return this}insertAfter(e,t){t.prev=e;t.next=e.next;if(e.next)e.next.prev=t;else this.tail=t;e.next=t;this.length+=1}insertBefore(e,t){t.prev=e.prev;t.next=e;if(e.prev)e.prev.next=t;else this.head=t;e.prev=t;this.length+=1}unshift(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)}push(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var e=this.head;while(e){yield e.data;e=e.next}}remove(e){var t=this.head;while(t){var{next:r}=t;if(e(t)){this.removeLink(t)}t=r}return this}}function setInitial(e,t){e.length=1;e.head=e.tail=t}function queue$1(e,t,r){if(t==null){t=1}else if(t===0){throw new RangeError("Concurrency must not be zero")}var n=wrapAsync(e);var i=0;var s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(e,t){o[e].push(t)}function once(e,t){const handleAndRemove=(...r)=>{off(e,handleAndRemove);t(...r)};o[e].push(handleAndRemove)}function off(e,t){if(!e)return Object.keys(o).forEach((e=>o[e]=[]));if(!t)return o[e]=[];o[e]=o[e].filter((e=>e!==t))}function trigger(e,...t){o[e].forEach((e=>e(...t)))}var u=false;function _insert(e,t,r,n){if(n!=null&&typeof n!=="function"){throw new Error("task callback must be a function")}c.started=true;var i,s;function promiseCallback(e,...t){if(e)return r?s(e):i();if(t.length<=1)return i(t[0]);i(t)}var o=c._createTaskItem(e,r?promiseCallback:n||promiseCallback);if(t){c._tasks.unshift(o)}else{c._tasks.push(o)}if(!u){u=true;a((()=>{u=false;c.process()}))}if(r||!n){return new Promise(((e,t)=>{i=e;s=t}))}}function _createCB(e){return function(t,...r){i-=1;for(var n=0,a=e.length;n<a;n++){var o=e[n];var u=s.indexOf(o);if(u===0){s.shift()}else if(u>0){s.splice(u,1)}o.callback(t,...r);if(t!=null){trigger("error",t,o.data)}}if(i<=c.concurrency-c.buffer){trigger("unsaturated")}if(c.idle()){trigger("drain")}c.process()}}function _maybeDrain(e){if(e.length===0&&c.idle()){a((()=>trigger("drain")));return true}return false}const eventMethod=e=>t=>{if(!t){return new Promise(((t,r)=>{once(e,((e,n)=>{if(e)return r(e);t(n)}))}))}off(e);on(e,t)};var l=false;var c={_tasks:new DLL,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*c._tasks[Symbol.iterator]()},concurrency:t,payload:r,buffer:t/4,started:false,paused:false,push(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,false,false,t)))}return _insert(e,false,false,t)},pushAsync(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,false,true,t)))}return _insert(e,false,true,t)},kill(){off();c._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,true,false,t)))}return _insert(e,true,false,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(_maybeDrain(e))return;return e.map((e=>_insert(e,true,true,t)))}return _insert(e,true,true,t)},remove(e){c._tasks.remove(e)},process(){if(l){return}l=true;while(!c.paused&&i<c.concurrency&&c._tasks.length){var e=[],t=[];var r=c._tasks.length;if(c.payload)r=Math.min(r,c.payload);for(var a=0;a<r;a++){var o=c._tasks.shift();e.push(o);s.push(o);t.push(o.data)}i+=1;if(c._tasks.length===0){trigger("empty")}if(i===c.concurrency){trigger("saturated")}var u=onlyOnce(_createCB(e));n(t,u)}l=false},length(){return c._tasks.length},running(){return i},workersList(){return s},idle(){return c._tasks.length+i===0},pause(){c.paused=true},resume(){if(c.paused===false){return}c.paused=false;a(c.process)}};Object.defineProperties(c,{saturated:{writable:false,value:eventMethod("saturated")},unsaturated:{writable:false,value:eventMethod("unsaturated")},empty:{writable:false,value:eventMethod("empty")},drain:{writable:false,value:eventMethod("drain")},error:{writable:false,value:eventMethod("error")}});return c}function cargo$1(e,t){return queue$1(e,1,t)}function cargo(e,t,r){return queue$1(e,t,r)}function reduce(e,t,r,n){n=once(n);var i=wrapAsync(r);return p(e,((e,r,n)=>{i(t,e,((e,r)=>{t=r;n(e)}))}),(e=>n(e,t)))}var S=awaitify(reduce,4);function seq(...e){var t=e.map(wrapAsync);return function(...e){var r=this;var n=e[e.length-1];if(typeof n=="function"){e.pop()}else{n=promiseCallback()}S(t,e,((e,t,n)=>{t.apply(r,e.concat(((e,...t)=>{n(e,t)})))}),((e,t)=>n(e,...t)));return n[g]}}function compose(...e){return seq(...e.reverse())}function mapLimit(e,t,r,n){return _asyncMap(eachOfLimit$2(t),e,r,n)}var E=awaitify(mapLimit,4);function concatLimit(e,t,r,n){var i=wrapAsync(r);return E(e,t,((e,t)=>{i(e,((e,...r)=>{if(e)return t(e);return t(e,r)}))}),((e,t)=>{var r=[];for(var i=0;i<t.length;i++){if(t[i]){r=r.concat(...t[i])}}return n(e,r)}))}var k=awaitify(concatLimit,4);function concat(e,t,r){return k(e,Infinity,t,r)}var O=awaitify(concat,3);function concatSeries(e,t,r){return k(e,1,t,r)}var x=awaitify(concatSeries,3);function constant$1(...e){return function(...t){var r=t.pop();return r(null,...e)}}function _createTester(e,t){return(r,n,i,a)=>{var s=false;var u;const l=wrapAsync(i);r(n,((r,n,i)=>{l(r,((n,a)=>{if(n||n===false)return i(n);if(e(a)&&!u){s=true;u=t(true,r);return i(null,o)}i()}))}),(e=>{if(e)return a(e);a(null,s?u:t(false))}))}}function detect(e,t,r){return _createTester((e=>e),((e,t)=>t))(l,e,t,r)}var R=awaitify(detect,3);function detectLimit(e,t,r,n){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(t),e,r,n)}var T=awaitify(detectLimit,4);function detectSeries(e,t,r){return _createTester((e=>e),((e,t)=>t))(eachOfLimit$2(1),e,t,r)}var L=awaitify(detectSeries,3);function consoleFunc(e){return(t,...r)=>wrapAsync(t)(...r,((t,...r)=>{if(typeof console==="object"){if(t){if(console.error){console.error(t)}}else if(console[e]){r.forEach((t=>console[e](t)))}}}))}var A=consoleFunc("dir");function doWhilst(e,t,r){r=onlyOnce(r);var n=wrapAsync(e);var i=wrapAsync(t);var a;function next(e,...t){if(e)return r(e);if(e===false)return;a=t;i(...t,check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...a);n(next)}return check(null,true)}var C=awaitify(doWhilst,3);function doUntil(e,t,r){const n=wrapAsync(t);return C(e,((...e)=>{const t=e.pop();n(...e,((e,r)=>t(e,!r)))}),r)}function _withoutIndex(e){return(t,r,n)=>e(t,n)}function eachLimit$2(e,t,r){return l(e,_withoutIndex(wrapAsync(t)),r)}var I=awaitify(eachLimit$2,3);function eachLimit(e,t,r,n){return eachOfLimit$2(t)(e,_withoutIndex(wrapAsync(r)),n)}var M=awaitify(eachLimit,4);function eachSeries(e,t,r){return M(e,1,t,r)}var j=awaitify(eachSeries,3);function ensureAsync(e){if(isAsync(e))return e;return function(...t){var r=t.pop();var n=true;t.push(((...e)=>{if(n){a((()=>r(...e)))}else{r(...e)}}));e.apply(this,t);n=false}}function every(e,t,r){return _createTester((e=>!e),(e=>!e))(l,e,t,r)}var D=awaitify(every,3);function everyLimit(e,t,r,n){return _createTester((e=>!e),(e=>!e))(eachOfLimit$2(t),e,r,n)}var B=awaitify(everyLimit,4);function everySeries(e,t,r){return _createTester((e=>!e),(e=>!e))(p,e,t,r)}var P=awaitify(everySeries,3);function filterArray(e,t,r,n){var i=new Array(t.length);e(t,((e,t,n)=>{r(e,((e,r)=>{i[t]=!!r;n(e)}))}),(e=>{if(e)return n(e);var r=[];for(var a=0;a<t.length;a++){if(i[a])r.push(t[a])}n(null,r)}))}function filterGeneric(e,t,r,n){var i=[];e(t,((e,t,n)=>{r(e,((r,a)=>{if(r)return n(r);if(a){i.push({index:t,value:e})}n(r)}))}),(e=>{if(e)return n(e);n(null,i.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function _filter(e,t,r,n){var i=isArrayLike(t)?filterArray:filterGeneric;return i(e,t,wrapAsync(r),n)}function filter(e,t,r){return _filter(l,e,t,r)}var N=awaitify(filter,3);function filterLimit(e,t,r,n){return _filter(eachOfLimit$2(t),e,r,n)}var F=awaitify(filterLimit,4);function filterSeries(e,t,r){return _filter(p,e,t,r)}var W=awaitify(filterSeries,3);function forever(e,t){var r=onlyOnce(t);var n=wrapAsync(ensureAsync(e));function next(e){if(e)return r(e);if(e===false)return;n(next)}return next()}var z=awaitify(forever,2);function groupByLimit(e,t,r,n){var i=wrapAsync(r);return E(e,t,((e,t)=>{i(e,((r,n)=>{if(r)return t(r);return t(r,{key:n,val:e})}))}),((e,t)=>{var r={};var{hasOwnProperty:i}=Object.prototype;for(var a=0;a<t.length;a++){if(t[a]){var{key:s}=t[a];var{val:o}=t[a];if(i.call(r,s)){r[s].push(o)}else{r[s]=[o]}}}return n(e,r)}))}var G=awaitify(groupByLimit,4);function groupBy(e,t,r){return G(e,Infinity,t,r)}function groupBySeries(e,t,r){return G(e,1,t,r)}var U=consoleFunc("log");function mapValuesLimit(e,t,r,n){n=once(n);var i={};var a=wrapAsync(r);return eachOfLimit$2(t)(e,((e,t,r)=>{a(e,t,((e,n)=>{if(e)return r(e);i[t]=n;r(e)}))}),(e=>n(e,i)))}var q=awaitify(mapValuesLimit,4);function mapValues(e,t,r){return q(e,Infinity,t,r)}function mapValuesSeries(e,t,r){return q(e,1,t,r)}function memoize(e,t=e=>e){var r=Object.create(null);var n=Object.create(null);var i=wrapAsync(e);var s=initialParams(((e,s)=>{var o=t(...e);if(o in r){a((()=>s(null,...r[o])))}else if(o in n){n[o].push(s)}else{n[o]=[s];i(...e,((e,...t)=>{if(!e){r[o]=t}var i=n[o];delete n[o];for(var a=0,s=i.length;a<s;a++){i[a](e,...t)}}))}}));s.memo=r;s.unmemoized=e;return s}var H;if(n){H=process.nextTick}else if(r){H=setImmediate}else{H=fallback}var $=wrap(H);var Z=awaitify(((e,t,r)=>{var n=isArrayLike(t)?[]:{};e(t,((e,t,r)=>{wrapAsync(e)(((e,...i)=>{if(i.length<2){[i]=i}n[t]=i;r(e)}))}),(e=>r(e,n)))}),3);function parallel(e,t){return Z(l,e,t)}function parallelLimit(e,t,r){return Z(eachOfLimit$2(t),e,r)}function queue(e,t){var r=wrapAsync(e);return queue$1(((e,t)=>{r(e[0],t)}),t,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(e){let t;while(e>0&&smaller(this.heap[e],this.heap[t=parent(e)])){let r=this.heap[e];this.heap[e]=this.heap[t];this.heap[t]=r;e=t}}percDown(e){let t;while((t=leftChi(e))<this.heap.length){if(t+1<this.heap.length&&smaller(this.heap[t+1],this.heap[t])){t=t+1}if(smaller(this.heap[e],this.heap[t])){break}let r=this.heap[e];this.heap[e]=this.heap[t];this.heap[t]=r;e=t}}push(e){e.pushCount=++this.pushCount;this.heap.push(e);this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;this.heap[0]=this.heap[this.heap.length-1];this.heap.pop();this.percDown(0);return e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++){yield this.heap[e].data}}remove(e){let t=0;for(let r=0;r<this.heap.length;r++){if(!e(this.heap[r])){this.heap[t]=this.heap[r];t++}}this.heap.splice(t);for(let e=parent(this.heap.length-1);e>=0;e--){this.percDown(e)}return this}}function leftChi(e){return(e<<1)+1}function parent(e){return(e+1>>1)-1}function smaller(e,t){if(e.priority!==t.priority){return e.priority<t.priority}else{return e.pushCount<t.pushCount}}function priorityQueue(e,t){var r=queue(e,t);var{push:n,pushAsync:i}=r;r._tasks=new Heap;r._createTaskItem=({data:e,priority:t},r)=>({data:e,priority:t,callback:r});function createDataItems(e,t){if(!Array.isArray(e)){return{data:e,priority:t}}return e.map((e=>({data:e,priority:t})))}r.push=function(e,t=0,r){return n(createDataItems(e,t),r)};r.pushAsync=function(e,t=0,r){return i(createDataItems(e,t),r)};delete r.unshift;delete r.unshiftAsync;return r}function race(e,t){t=once(t);if(!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var r=0,n=e.length;r<n;r++){wrapAsync(e[r])(t)}}var Q=awaitify(race,2);function reduceRight(e,t,r,n){var i=[...e].reverse();return S(i,t,r,n)}function reflect(e){var t=wrapAsync(e);return initialParams((function reflectOn(e,r){e.push(((e,...t)=>{let n={};if(e){n.error=e}if(t.length>0){var i=t;if(t.length<=1){[i]=t}n.value=i}r(null,n)}));return t.apply(this,e)}))}function reflectAll(e){var t;if(Array.isArray(e)){t=e.map(reflect)}else{t={};Object.keys(e).forEach((r=>{t[r]=reflect.call(this,e[r])}))}return t}function reject$2(e,t,r,n){const i=wrapAsync(r);return _filter(e,t,((e,t)=>{i(e,((e,r)=>{t(e,!r)}))}),n)}function reject(e,t,r){return reject$2(l,e,t,r)}var V=awaitify(reject,3);function rejectLimit(e,t,r,n){return reject$2(eachOfLimit$2(t),e,r,n)}var K=awaitify(rejectLimit,4);function rejectSeries(e,t,r){return reject$2(p,e,t,r)}var Y=awaitify(rejectSeries,3);function constant(e){return function(){return e}}const X=5;const J=0;function retry(e,t,r){var n={times:X,intervalFunc:constant(J)};if(arguments.length<3&&typeof e==="function"){r=t||promiseCallback();t=e}else{parseTimes(n,e);r=r||promiseCallback()}if(typeof t!=="function"){throw new Error("Invalid arguments for async.retry")}var i=wrapAsync(t);var a=1;function retryAttempt(){i(((e,...t)=>{if(e===false)return;if(e&&a++<n.times&&(typeof n.errorFilter!="function"||n.errorFilter(e))){setTimeout(retryAttempt,n.intervalFunc(a-1))}else{r(e,...t)}}))}retryAttempt();return r[g]}function parseTimes(e,t){if(typeof t==="object"){e.times=+t.times||X;e.intervalFunc=typeof t.interval==="function"?t.interval:constant(+t.interval||J);e.errorFilter=t.errorFilter}else if(typeof t==="number"||typeof t==="string"){e.times=+t||X}else{throw new Error("Invalid arguments for async.retry")}}function retryable(e,t){if(!t){t=e;e=null}let r=e&&e.arity||t.length;if(isAsync(t)){r+=1}var n=wrapAsync(t);return initialParams(((t,i)=>{if(t.length<r-1||i==null){t.push(i);i=promiseCallback()}function taskFn(e){n(...t,e)}if(e)retry(e,taskFn,i);else retry(taskFn,i);return i[g]}))}function series(e,t){return Z(p,e,t)}function some(e,t,r){return _createTester(Boolean,(e=>e))(l,e,t,r)}var ee=awaitify(some,3);function someLimit(e,t,r,n){return _createTester(Boolean,(e=>e))(eachOfLimit$2(t),e,r,n)}var te=awaitify(someLimit,4);function someSeries(e,t,r){return _createTester(Boolean,(e=>e))(p,e,t,r)}var re=awaitify(someSeries,3);function sortBy(e,t,r){var n=wrapAsync(t);return c(e,((e,t)=>{n(e,((r,n)=>{if(r)return t(r);t(r,{value:e,criteria:n})}))}),((e,t)=>{if(e)return r(e);r(null,t.sort(comparator).map((e=>e.value)))}));function comparator(e,t){var r=e.criteria,n=t.criteria;return r<n?-1:r>n?1:0}}var ne=awaitify(sortBy,3);function timeout(e,t,r){var n=wrapAsync(e);return initialParams(((i,a)=>{var s=false;var o;function timeoutCallback(){var t=e.name||"anonymous";var n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT";if(r){n.info=r}s=true;a(n)}i.push(((...e)=>{if(!s){a(...e);clearTimeout(o)}}));o=setTimeout(timeoutCallback,t);n(...i)}))}function range(e){var t=Array(e);while(e--){t[e]=e}return t}function timesLimit(e,t,r,n){var i=wrapAsync(r);return E(range(e),t,i,n)}function times(e,t,r){return timesLimit(e,Infinity,t,r)}function timesSeries(e,t,r){return timesLimit(e,1,t,r)}function transform(e,t,r,n){if(arguments.length<=3&&typeof t==="function"){n=r;r=t;t=Array.isArray(e)?[]:{}}n=once(n||promiseCallback());var i=wrapAsync(r);l(e,((e,r,n)=>{i(t,e,r,n)}),(e=>n(e,t)));return n[g]}function tryEach(e,t){var r=null;var n;return j(e,((e,t)=>{wrapAsync(e)(((e,...i)=>{if(e===false)return t(e);if(i.length<2){[n]=i}else{n=i}r=e;t(e?null:{})}))}),(()=>t(r,n)))}var ie=awaitify(tryEach);function unmemoize(e){return(...t)=>(e.unmemoized||e)(...t)}function whilst(e,t,r){r=onlyOnce(r);var n=wrapAsync(t);var i=wrapAsync(e);var a=[];function next(e,...t){if(e)return r(e);a=t;if(e===false)return;i(check)}function check(e,t){if(e)return r(e);if(e===false)return;if(!t)return r(null,...a);n(next)}return i(check)}var ae=awaitify(whilst,3);function until(e,t,r){const n=wrapAsync(e);return ae((e=>n(((t,r)=>e(t,!r)))),t,r)}function waterfall(e,t){t=once(t);if(!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function nextTask(t){var n=wrapAsync(e[r++]);n(...t,onlyOnce(next))}function next(n,...i){if(n===false)return;if(n||r===e.length){return t(n,...i)}nextTask(i)}nextTask([])}var se=awaitify(waterfall);var oe={apply:apply,applyEach:h,applyEachSeries:y,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:O,concatLimit:k,concatSeries:x,constant:constant$1,detect:R,detectLimit:T,detectSeries:L,dir:A,doUntil:doUntil,doWhilst:C,each:I,eachLimit:M,eachOf:l,eachOfLimit:u,eachOfSeries:p,eachSeries:j,ensureAsync:ensureAsync,every:D,everyLimit:B,everySeries:P,filter:N,filterLimit:F,filterSeries:W,forever:z,groupBy:groupBy,groupByLimit:G,groupBySeries:groupBySeries,log:U,map:c,mapLimit:E,mapSeries:d,mapValues:mapValues,mapValuesLimit:q,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:$,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:Q,reduce:S,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:V,rejectLimit:K,rejectSeries:Y,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:a,some:ee,someLimit:te,someSeries:re,sortBy:ne,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:ie,unmemoize:unmemoize,until:until,waterfall:se,whilst:ae,all:D,allLimit:B,allSeries:P,any:ee,anyLimit:te,anySeries:re,find:R,findLimit:T,findSeries:L,flatMap:O,flatMapLimit:k,flatMapSeries:x,forEach:I,forEachSeries:j,forEachLimit:M,forEachOf:l,forEachOfSeries:p,forEachOfLimit:u,inject:S,foldl:S,foldr:reduceRight,select:N,selectLimit:F,selectSeries:W,wrapSync:asyncify,during:ae,doDuring:C};e.all=D;e.allLimit=B;e.allSeries=P;e.any=ee;e.anyLimit=te;e.anySeries=re;e.apply=apply;e.applyEach=h;e.applyEachSeries=y;e.asyncify=asyncify;e.auto=auto;e.autoInject=autoInject;e.cargo=cargo$1;e.cargoQueue=cargo;e.compose=compose;e.concat=O;e.concatLimit=k;e.concatSeries=x;e.constant=constant$1;e.default=oe;e.detect=R;e.detectLimit=T;e.detectSeries=L;e.dir=A;e.doDuring=C;e.doUntil=doUntil;e.doWhilst=C;e.during=ae;e.each=I;e.eachLimit=M;e.eachOf=l;e.eachOfLimit=u;e.eachOfSeries=p;e.eachSeries=j;e.ensureAsync=ensureAsync;e.every=D;e.everyLimit=B;e.everySeries=P;e.filter=N;e.filterLimit=F;e.filterSeries=W;e.find=R;e.findLimit=T;e.findSeries=L;e.flatMap=O;e.flatMapLimit=k;e.flatMapSeries=x;e.foldl=S;e.foldr=reduceRight;e.forEach=I;e.forEachLimit=M;e.forEachOf=l;e.forEachOfLimit=u;e.forEachOfSeries=p;e.forEachSeries=j;e.forever=z;e.groupBy=groupBy;e.groupByLimit=G;e.groupBySeries=groupBySeries;e.inject=S;e.log=U;e.map=c;e.mapLimit=E;e.mapSeries=d;e.mapValues=mapValues;e.mapValuesLimit=q;e.mapValuesSeries=mapValuesSeries;e.memoize=memoize;e.nextTick=$;e.parallel=parallel;e.parallelLimit=parallelLimit;e.priorityQueue=priorityQueue;e.queue=queue;e.race=Q;e.reduce=S;e.reduceRight=reduceRight;e.reflect=reflect;e.reflectAll=reflectAll;e.reject=V;e.rejectLimit=K;e.rejectSeries=Y;e.retry=retry;e.retryable=retryable;e.select=N;e.selectLimit=F;e.selectSeries=W;e.seq=seq;e.series=series;e.setImmediate=a;e.some=ee;e.someLimit=te;e.someSeries=re;e.sortBy=ne;e.timeout=timeout;e.times=times;e.timesLimit=timesLimit;e.timesSeries=timesSeries;e.transform=transform;e.tryEach=ie;e.unmemoize=unmemoize;e.until=until;e.waterfall=se;e.whilst=ae;e.wrapSync=asyncify;Object.defineProperty(e,"__esModule",{value:true})}))},127:function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,a,s,o;var u=r.indexOf(e);var l=r.indexOf(t,u+1);var c=u;if(u>=0&&l>0){if(e===t){return[u,l]}n=[];a=r.length;while(c>=0&&!o){if(c==u){n.push(c);u=r.indexOf(e,c+1)}else if(n.length==1){o=[n.pop(),l]}else{i=n.pop();if(i<a){a=i;s=l}l=r.indexOf(t,c+1)}c=u<l&&u>=0?u:l}if(n.length){o=[a,s]}}return o}},6411:function(e,t,r){"use strict";const{Buffer:n}=r(181);const i=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,i,{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 n=t+this._bufs[r].length;if(e<n||r===this._bufs.length-1){return[r,e-t]}t=n}};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,i){if(typeof r!=="number"||r<0){r=0}if(typeof i!=="number"||i>this.length){i=this.length}if(r>=this.length){return e||n.alloc(0)}if(i<=0){return e||n.alloc(0)}const copy=!!e;const a=this._offset(r);const s=i-r;let o=s;let u=copy&&t||0;let l=a[1];if(r===0&&i===this.length){if(!copy){return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length)}for(let t=0;t<this._bufs.length;t++){this._bufs[t].copy(e,u);u+=this._bufs[t].length}return e}if(o<=this._bufs[a[0]].length-l){return copy?this._bufs[a[0]].copy(e,t,l,l+o):this._bufs[a[0]].slice(l,l+o)}if(!copy){e=n.allocUnsafe(s)}for(let t=a[0];t<this._bufs.length;t++){const r=this._bufs[t].length-l;if(o>r){this._bufs[t].copy(e,u,l);u+=r}else{this._bufs[t].copy(e,u,l,l+o);u+=r;break}o-=r;if(l){l=0}}if(e.length>u)return e.slice(0,u);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 n=this._offset(t);const i=this._bufs.slice(r[0],n[0]+1);if(n[1]===0){i.pop()}else{i[i.length-1]=i[i.length-1].slice(0,n[1])}if(r[1]!==0){i[0]=i[0].slice(r[1])}return this._new(i)};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(n.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(n.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=n.from([e])}else if(typeof e==="string"){e=n.from(e,r)}else if(this._isBufferList(e)){e=e.slice()}else if(Array.isArray(e.buffer)){e=n.from(e.buffer,e.byteOffset,e.byteLength)}else if(!n.isBuffer(e)){e=n.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 i=this._offset(t);let a=i[0];let s=i[1];for(;a<this._bufs.length;a++){const t=this._bufs[a];while(s<t.length){const r=t.length-s;if(r>=e.length){const r=t.indexOf(e,s);if(r!==-1){return this._reverseOffset([a,r])}s=t.length-e.length+1}else{const t=this._reverseOffset([a,s]);if(this._match(t,e)){return t}s++}}s=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[i]};e.exports=BufferList},739:function(e,t,r){"use strict";const n=r(1643).Duplex;const i=r(4070);const a=r(6411);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}a._init.call(this,e);n.call(this)}i(BufferListStream,n);Object.assign(BufferListStream.prototype,a.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){n.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 a||BufferListStream.isBufferList(e)};BufferListStream.isBufferList=a.isBufferList;e.exports=BufferListStream;e.exports.BufferListStream=BufferListStream;e.exports.BufferList=a},5612:function(e,t,r){var n=r(8401);var i=r(127);e.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var u="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(a).split("\\{").join(s).split("\\}").join(o).split("\\,").join(u).split("\\.").join(l)}function unescapeBraces(e){return e.split(a).join("\\").split(s).join("{").split(o).join("}").split(u).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var a=r.body;var s=r.post;var o=n.split(",");o[o.length-1]+="{"+a+"}";var u=parseCommaParts(s);if(s.length){o[o.length-1]+=u.shift();o.push.apply(o,u)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var l=s||u;var c=a.body.indexOf(",")>=0;if(!l&&!c){if(a.post.match(/,.*\}/)){e=a.pre+"{"+a.body+o+a.post;return expand(e)}return[e]}var h;if(l){h=a.body.split(/\.\./)}else{h=parseCommaParts(a.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var p=a.post.length?expand(a.post,false):[""];return p.map((function(e){return a.pre+h[0]+e}))}}}var d=a.pre;var p=a.post.length?expand(a.post,false):[""];var y;if(l){var g=numeric(h[0]);var v=numeric(h[1]);var b=Math.max(h[0].length,h[1].length);var _=h.length==3?Math.abs(numeric(h[2])):1;var w=lte;var S=v<g;if(S){_*=-1;w=gte}var E=h.some(isPadded);y=[];for(var k=g;w(k,v);k+=_){var O;if(u){O=String.fromCharCode(k);if(O==="\\")O=""}else{O=String(k);if(E){var x=b-O.length;if(x>0){var R=new Array(x+1).join("0");if(k<0)O="-"+R+O.slice(1);else O=R+O}}}y.push(O)}}else{y=n(h,(function(e){return expand(e,false)}))}for(var T=0;T<y.length;T++){for(var L=0;L<p.length;L++){var A=d+y[T]+p[L];if(!t||l||A)r.push(A)}}return r}},6083:function(e,t,r){var n=r(127);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var s="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(a).split("\\}").join(s).split("\\,").join(o).split("\\.").join(u)}function unescapeBraces(e){return e.split(i).join("\\").split(a).join("{").split(s).join("}").split(o).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var a=r.body;var s=r.post;var o=i.split(",");o[o.length-1]+="{"+a+"}";var u=parseCommaParts(s);if(s.length){o[o.length-1]+=u.shift();o.push.apply(o,u)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=n("{","}",e);if(!i)return[e];var a=i.pre;var o=i.post.length?expand(i.post,false):[""];if(/\$$/.test(i.pre)){for(var u=0;u<o.length;u++){var l=a+"{"+i.body+"}"+o[u];r.push(l)}}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var p=c||h;var d=i.body.indexOf(",")>=0;if(!p&&!d){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+s+i.post;return expand(e)}return[e]}var y;if(p){y=i.body.split(/\.\./)}else{y=parseCommaParts(i.body);if(y.length===1){y=expand(y[0],false).map(embrace);if(y.length===1){return o.map((function(e){return i.pre+y[0]+e}))}}}var g;if(p){var v=numeric(y[0]);var b=numeric(y[1]);var _=Math.max(y[0].length,y[1].length);var w=y.length==3?Math.abs(numeric(y[2])):1;var S=lte;var E=b<v;if(E){w*=-1;S=gte}var k=y.some(isPadded);g=[];for(var O=v;S(O,b);O+=w){var x;if(h){x=String.fromCharCode(O);if(x==="\\")x=""}else{x=String(O);if(k){var R=_-x.length;if(R>0){var T=new Array(R+1).join("0");if(O<0)x="-"+T+x.slice(1);else x=T+x}}}g.push(x)}}else{g=[];for(var L=0;L<y.length;L++){g.push.apply(g,expand(y[L],false))}}for(var L=0;L<g.length;L++){for(var u=0;u<o.length;u++){var l=a+g[L]+o[u];if(!t||p||l)r.push(l)}}}return r}},7064:function(e,t,r){var n=r(181).Buffer;var i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){i=new Int32Array(i)}function ensureBuffer(e){if(n.isBuffer(e)){return e}var t=typeof n.alloc==="function"&&typeof n.from==="function";if(typeof e==="number"){return t?n.alloc(e):new n(e)}else if(typeof e==="string"){return t?n.from(e):new n(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,t){e=ensureBuffer(e);if(n.isBuffer(t)){t=t.readUInt32BE(0)}var r=~~t^-1;for(var a=0;a<e.length;a++){r=i[(r^e[a])&255]^r>>>8}return r^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},2806:function(e){var t=e.exports=function(){};t.prototype.getName=function(){};t.prototype.getSize=function(){};t.prototype.getLastModifiedDate=function(){};t.prototype.isDirectory=function(){}},9682:function(e,t,r){var n=r(9023).inherits;var i=r(1643).Transform;var a=r(2806);var s=r(9244);var o=e.exports=function(e){if(!(this instanceof o)){return new o(e)}i.call(this,e);this.offset=0;this._archive={finish:false,finished:false,processing:false}};n(o,i);o.prototype._appendBuffer=function(e,t,r){};o.prototype._appendStream=function(e,t,r){};o.prototype._emitErrorCallback=function(e){if(e){this.emit("error",e)}};o.prototype._finish=function(e){};o.prototype._normalizeEntry=function(e){};o.prototype._transform=function(e,t,r){r(null,e)};o.prototype.entry=function(e,t,r){t=t||null;if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}if(!(e instanceof a)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(e);this._entry=e;t=s.normalizeInputSource(t);if(Buffer.isBuffer(t)){this._appendBuffer(e,t,r)}else if(s.isStream(t)){this._appendStream(e,t,r)}else{this._archive.processing=false;r(new Error("input source must be valid Stream or Buffer instance"));return}return this};o.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};o.prototype.getBytesWritten=function(){return this.offset};o.prototype.write=function(e,t){if(e){this.offset+=e.length}return i.prototype.write.call(this,e,t)}},3468:function(e){e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},4032:function(e,t,r){var n=r(4885);var i=1<<3;var a=1<<0;var s=1<<2;var o=1<<1;var u=1<<6;var l=1<<11;var c=e.exports=function(){if(!(this instanceof c)){return new c}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};c.prototype.encode=function(){return n.getShortBytes((this.descriptor?i:0)|(this.utf8?l:0)|(this.encryption?a:0)|(this.strongEncryption?u:0))};c.prototype.parse=function(e,t){var r=n.getShortBytesValue(e,t);var h=new c;h.useDataDescriptor((r&i)!==0);h.useUTF8ForNames((r&l)!==0);h.useStrongEncryption((r&u)!==0);h.useEncryption((r&a)!==0);h.setSlidingDictionarySize((r&o)!==0?8192:4096);h.setNumberOfShannonFanoTrees((r&s)!==0?3:2);return h};c.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e};c.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};c.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e};c.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};c.prototype.useDataDescriptor=function(e){this.descriptor=e};c.prototype.usesDataDescriptor=function(){return this.descriptor};c.prototype.useEncryption=function(e){this.encryption=e};c.prototype.usesEncryption=function(){return this.encryption};c.prototype.useStrongEncryption=function(e){this.strongEncryption=e};c.prototype.usesStrongEncryption=function(){return this.strongEncryption};c.prototype.useUTF8ForNames=function(e){this.utf8=e};c.prototype.usesUTF8ForNames=function(){return this.utf8}},8050:function(e){e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},4885:function(e){var t=e.exports={};t.dateToDos=function(e,t){t=t||false;var r=t?e.getFullYear():e.getUTCFullYear();if(r<1980){return 2162688}else if(r>=2044){return 2141175677}var n={year:r,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return n.year-1980<<25|n.month+1<<21|n.date<<16|n.hours<<11|n.minutes<<5|n.seconds/2};t.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)};t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))};t.getEightBytes=function(e){var t=Buffer.alloc(8);t.writeUInt32LE(e%4294967296,0);t.writeUInt32LE(e/4294967296|0,4);return t};t.getShortBytes=function(e){var t=Buffer.alloc(2);t.writeUInt16LE((e&65535)>>>0,0);return t};t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)};t.getLongBytes=function(e){var t=Buffer.alloc(4);t.writeUInt32LE((e&4294967295)>>>0,0);return t};t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)};t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},6580:function(e,t,r){var n=r(9023).inherits;var i=r(4527);var a=r(2806);var s=r(4032);var o=r(8050);var u=r(3468);var l=r(4885);var c=e.exports=function(e){if(!(this instanceof c)){return new c(e)}a.call(this);this.platform=u.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new s;this.crc=0;this.time=-1;this.minver=u.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(e){this.setName(e)}};n(c,a);c.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};c.prototype.getComment=function(){return this.comment!==null?this.comment:""};c.prototype.getCompressedSize=function(){return this.csize};c.prototype.getCrc=function(){return this.crc};c.prototype.getExternalAttributes=function(){return this.exattr};c.prototype.getExtra=function(){return this.extra!==null?this.extra:u.EMPTY};c.prototype.getGeneralPurposeBit=function(){return this.gpb};c.prototype.getInternalAttributes=function(){return this.inattr};c.prototype.getLastModifiedDate=function(){return this.getTime()};c.prototype.getLocalFileDataExtra=function(){return this.getExtra()};c.prototype.getMethod=function(){return this.method};c.prototype.getName=function(){return this.name};c.prototype.getPlatform=function(){return this.platform};c.prototype.getSize=function(){return this.size};c.prototype.getTime=function(){return this.time!==-1?l.dosToDate(this.time):-1};c.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};c.prototype.getUnixMode=function(){return this.platform!==u.PLATFORM_UNIX?0:this.getExternalAttributes()>>u.SHORT_SHIFT&u.SHORT_MASK};c.prototype.getVersionNeededToExtract=function(){return this.minver};c.prototype.setComment=function(e){if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=e};c.prototype.setCompressedSize=function(e){if(e<0){throw new Error("invalid entry compressed size")}this.csize=e};c.prototype.setCrc=function(e){if(e<0){throw new Error("invalid entry crc32")}this.crc=e};c.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};c.prototype.setExtra=function(e){this.extra=e};c.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof s)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=e};c.prototype.setInternalAttributes=function(e){this.inattr=e};c.prototype.setMethod=function(e){if(e<0){throw new Error("invalid entry compression method")}this.method=e};c.prototype.setName=function(e,t=false){e=i(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(t){e=`/${e}`}if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=e};c.prototype.setPlatform=function(e){this.platform=e};c.prototype.setSize=function(e){if(e<0){throw new Error("invalid entry size")}this.size=e};c.prototype.setTime=function(e,t){if(!(e instanceof Date)){throw new Error("invalid entry time")}this.time=l.dateToDos(e,t)};c.prototype.setUnixMode=function(e){e|=this.isDirectory()?u.S_IFDIR:u.S_IFREG;var t=0;t|=e<<u.SHORT_SHIFT|(this.isDirectory()?u.S_DOS_D:u.S_DOS_A);this.setExternalAttributes(t);this.mode=e&u.MODE_MASK;this.platform=u.PLATFORM_UNIX};c.prototype.setVersionNeededToExtract=function(e){this.minver=e};c.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};c.prototype.isUnixSymlink=function(){return(this.getUnixMode()&o.FILE_TYPE_FLAG)===o.LINK_FLAG};c.prototype.isZip64=function(){return this.csize>u.ZIP64_MAGIC||this.size>u.ZIP64_MAGIC}},4724:function(e,t,r){var n=r(9023).inherits;var i=r(7064);var{CRC32Stream:a}=r(655);var{DeflateCRC32Stream:s}=r(655);var o=r(9682);var u=r(6580);var l=r(4032);var c=r(3468);var h=r(9244);var p=r(4885);var d=e.exports=function(e){if(!(this instanceof d)){return new d(e)}e=this.options=this._defaults(e);o.call(this,e);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};n(d,o);d.prototype._afterAppend=function(e){this._entries.push(e);if(e.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(e)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};d.prototype._appendBuffer=function(e,t,r){if(t.length===0){e.setMethod(c.METHOD_STORED)}var n=e.getMethod();if(n===c.METHOD_STORED){e.setSize(t.length);e.setCompressedSize(t.length);e.setCrc(i.unsigned(t))}this._writeLocalFileHeader(e);if(n===c.METHOD_STORED){this.write(t);this._afterAppend(e);r(null,e);return}else if(n===c.METHOD_DEFLATED){this._smartStream(e,r).end(t);return}else{r(new Error("compression method "+n+" not implemented"));return}};d.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(e);var n=this._smartStream(e,r);t.once("error",(function(e){n.emit("error",e);n.end()}));t.pipe(n)};d.prototype._defaults=function(e){if(typeof e!=="object"){e={}}if(typeof e.zlib!=="object"){e.zlib={}}if(typeof e.zlib.level!=="number"){e.zlib.level=c.ZLIB_BEST_SPEED}e.forceZip64=!!e.forceZip64;e.forceLocalTime=!!e.forceLocalTime;return e};d.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};d.prototype._normalizeEntry=function(e){if(e.getMethod()===-1){e.setMethod(c.METHOD_DEFLATED)}if(e.getMethod()===c.METHOD_DEFLATED){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR)}if(e.getTime()===-1){e.setTime(new Date,this._archive.forceLocalTime)}e._offsets={file:0,data:0,contents:0}};d.prototype._smartStream=function(e,t){var r=e.getMethod()===c.METHOD_DEFLATED;var n=r?new s(this.options.zlib):new a;var i=null;function handleStuff(){var r=n.digest().readUInt32BE(0);e.setCrc(r);e.setSize(n.size());e.setCompressedSize(n.size(true));this._afterAppend(e);t(i,e)}n.once("end",handleStuff.bind(this));n.once("error",(function(e){i=e}));n.pipe(this,{end:false});return n};d.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length;var t=this._archive.centralLength;var r=this._archive.centralOffset;if(this.isZip64()){e=c.ZIP64_MAGIC_SHORT;t=c.ZIP64_MAGIC;r=c.ZIP64_MAGIC}this.write(p.getLongBytes(c.SIG_EOCD));this.write(c.SHORT_ZERO);this.write(c.SHORT_ZERO);this.write(p.getShortBytes(e));this.write(p.getShortBytes(e));this.write(p.getLongBytes(t));this.write(p.getLongBytes(r));var n=this.getComment();var i=Buffer.byteLength(n);this.write(p.getShortBytes(i));this.write(n)};d.prototype._writeCentralDirectoryZip64=function(){this.write(p.getLongBytes(c.SIG_ZIP64_EOCD));this.write(p.getEightBytes(44));this.write(p.getShortBytes(c.MIN_VERSION_ZIP64));this.write(p.getShortBytes(c.MIN_VERSION_ZIP64));this.write(c.LONG_ZERO);this.write(c.LONG_ZERO);this.write(p.getEightBytes(this._entries.length));this.write(p.getEightBytes(this._entries.length));this.write(p.getEightBytes(this._archive.centralLength));this.write(p.getEightBytes(this._archive.centralOffset));this.write(p.getLongBytes(c.SIG_ZIP64_EOCD_LOC));this.write(c.LONG_ZERO);this.write(p.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(p.getLongBytes(1))};d.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var n=e._offsets;var i=e.getSize();var a=e.getCompressedSize();if(e.isZip64()||n.file>c.ZIP64_MAGIC){i=c.ZIP64_MAGIC;a=c.ZIP64_MAGIC;e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64);var s=Buffer.concat([p.getShortBytes(c.ZIP64_EXTRA_ID),p.getShortBytes(24),p.getEightBytes(e.getSize()),p.getEightBytes(e.getCompressedSize()),p.getEightBytes(n.file)],28);e.setExtra(s)}this.write(p.getLongBytes(c.SIG_CFH));this.write(p.getShortBytes(e.getPlatform()<<8|c.VERSION_MADEBY));this.write(p.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(p.getShortBytes(r));this.write(p.getLongBytes(e.getTimeDos()));this.write(p.getLongBytes(e.getCrc()));this.write(p.getLongBytes(a));this.write(p.getLongBytes(i));var o=e.getName();var u=e.getComment();var l=e.getCentralDirectoryExtra();if(t.usesUTF8ForNames()){o=Buffer.from(o);u=Buffer.from(u)}this.write(p.getShortBytes(o.length));this.write(p.getShortBytes(l.length));this.write(p.getShortBytes(u.length));this.write(c.SHORT_ZERO);this.write(p.getShortBytes(e.getInternalAttributes()));this.write(p.getLongBytes(e.getExternalAttributes()));if(n.file>c.ZIP64_MAGIC){this.write(p.getLongBytes(c.ZIP64_MAGIC))}else{this.write(p.getLongBytes(n.file))}this.write(o);this.write(l);this.write(u)};d.prototype._writeDataDescriptor=function(e){this.write(p.getLongBytes(c.SIG_DD));this.write(p.getLongBytes(e.getCrc()));if(e.isZip64()){this.write(p.getEightBytes(e.getCompressedSize()));this.write(p.getEightBytes(e.getSize()))}else{this.write(p.getLongBytes(e.getCompressedSize()));this.write(p.getLongBytes(e.getSize()))}};d.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit();var r=e.getMethod();var n=e.getName();var i=e.getLocalFileDataExtra();if(e.isZip64()){t.useDataDescriptor(true);e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64)}if(t.usesUTF8ForNames()){n=Buffer.from(n)}e._offsets.file=this.offset;this.write(p.getLongBytes(c.SIG_LFH));this.write(p.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(p.getShortBytes(r));this.write(p.getLongBytes(e.getTimeDos()));e._offsets.data=this.offset;if(t.usesDataDescriptor()){this.write(c.LONG_ZERO);this.write(c.LONG_ZERO);this.write(c.LONG_ZERO)}else{this.write(p.getLongBytes(e.getCrc()));this.write(p.getLongBytes(e.getCompressedSize()));this.write(p.getLongBytes(e.getSize()))}this.write(p.getShortBytes(n.length));this.write(p.getShortBytes(i.length));this.write(n);this.write(i);e._offsets.contents=this.offset};d.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};d.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>c.ZIP64_MAGIC_SHORT||this._archive.centralLength>c.ZIP64_MAGIC||this._archive.centralOffset>c.ZIP64_MAGIC};d.prototype.setComment=function(e){this._archive.comment=e}},7288:function(e,t,r){e.exports={ArchiveEntry:r(2806),ZipArchiveEntry:r(6580),ArchiveOutputStream:r(9682),ZipArchiveOutputStream:r(4724)}},9244:function(e,t,r){var n=r(2203).Stream;var i=r(1643).PassThrough;var a=e.exports={};a.isStream=function(e){return e instanceof n};a.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(a.isStream(e)&&!e._readableState){var t=new i;e.pipe(t);return t}return e}},8401:function(e){e.exports=function(e,r){var n=[];for(var i=0;i<e.length;i++){var a=r(e[i],i);if(t(a))n.push.apply(n,a);else n.push(a)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},9810:function(e,t,r){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=r(181).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},3778:function(e,t){
|
|
50
|
+
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
|
51
|
+
var r;(function(e){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){e(t)}else{}}else{e(r={})}})((function(e){e.version="1.2.2";function signed_crc_table(){var e=0,t=new Array(256);for(var r=0;r!=256;++r){e=r;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;t[r]=e}return typeof Int32Array!=="undefined"?new Int32Array(t):t}var t=signed_crc_table();function slice_by_16_tables(e){var t=0,r=0,n=0,i=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(n=0;n!=256;++n)i[n]=e[n];for(n=0;n!=256;++n){r=e[n];for(t=256+n;t<4096;t+=256)r=i[t]=r>>>8^e[r&255]}var a=[];for(n=1;n!=16;++n)a[n-1]=typeof Int32Array!=="undefined"?i.subarray(n*256,n*256+256):i.slice(n*256,n*256+256);return a}var r=slice_by_16_tables(t);var n=r[0],i=r[1],a=r[2],s=r[3],o=r[4];var u=r[5],l=r[6],c=r[7],h=r[8],p=r[9];var d=r[10],y=r[11],g=r[12],v=r[13],b=r[14];function crc32_bstr(e,r){var n=r^-1;for(var i=0,a=e.length;i<a;)n=n>>>8^t[(n^e.charCodeAt(i++))&255];return~n}function crc32_buf(e,r){var _=r^-1,w=e.length-15,S=0;for(;S<w;)_=b[e[S++]^_&255]^v[e[S++]^_>>8&255]^g[e[S++]^_>>16&255]^y[e[S++]^_>>>24]^d[e[S++]]^p[e[S++]]^h[e[S++]]^c[e[S++]]^l[e[S++]]^u[e[S++]]^o[e[S++]]^s[e[S++]]^a[e[S++]]^i[e[S++]]^n[e[S++]]^t[e[S++]];w+=15;while(S<w)_=_>>>8^t[(_^e[S++])&255];return~_}function crc32_str(e,r){var n=r^-1;for(var i=0,a=e.length,s=0,o=0;i<a;){s=e.charCodeAt(i++);if(s<128){n=n>>>8^t[(n^s)&255]}else if(s<2048){n=n>>>8^t[(n^(192|s>>6&31))&255];n=n>>>8^t[(n^(128|s&63))&255]}else if(s>=55296&&s<57344){s=(s&1023)+64;o=e.charCodeAt(i++)&1023;n=n>>>8^t[(n^(240|s>>8&7))&255];n=n>>>8^t[(n^(128|s>>2&63))&255];n=n>>>8^t[(n^(128|o>>6&15|(s&3)<<4))&255];n=n>>>8^t[(n^(128|o&63))&255]}else{n=n>>>8^t[(n^(224|s>>12&15))&255];n=n>>>8^t[(n^(128|s>>6&63))&255];n=n>>>8^t[(n^(128|s&63))&255]}}return~n}e.table=t;e.bstr=crc32_bstr;e.buf=crc32_buf;e.str=crc32_str}))},8341:function(e,t,r){"use strict";const{Transform:n}=r(1643);const i=r(3778);class CRC32Stream extends n{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(e,t,r){if(e){this.checksum=i.buf(e,this.checksum)>>>0;this.rawSize+=e.length}r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}e.exports=CRC32Stream},559:function(e,t,r){"use strict";const{DeflateRaw:n}=r(3106);const i=r(3778);class DeflateCRC32Stream extends n{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(e,t){if(e){this.compressedSize+=e.length}return super.push(e,t)}_transform(e,t,r){if(e){this.checksum=i.buf(e,this.checksum)>>>0;this.rawSize+=e.length}super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=false){if(e){return this.compressedSize}else{return this.rawSize}}}e.exports=DeflateCRC32Stream},655:function(e,t,r){"use strict";e.exports={CRC32Stream:r(8341),DeflateCRC32Stream:r(559)}},5859:function(e,t,r){var n=r(8068);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=n(r||noop);var i=e._writableState;var a=e._readableState;var s=t.readable||t.readable!==false&&e.readable;var o=t.writable||t.writable!==false&&e.writable;var u=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){o=false;if(!s)r.call(e)};var onend=function(){s=false;if(!o)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(u)return;if(s&&!(a&&(a.ended&&!a.destroyed)))return r.call(e,new Error("premature close"));if(o&&!(i&&(i.ended&&!i.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(o&&!i){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){u=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},9033:function(e,t,r){e.exports=r(9896).constants||r(9140)},1931:function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(9896);var i=n.realpath;var a=n.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var u=r(5022);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(o){return i(e,t,r)}if(typeof t==="function"){r=t;t=null}i(e,t,(function(n,i){if(newError(n)){u.realpath(e,t,r)}else{r(n,i)}}))}function realpathSync(e,t){if(o){return a(e,t)}try{return a(e,t)}catch(r){if(newError(r)){return u.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=a}},5022:function(e,t,r){var n=r(6928);var i=process.platform==="win32";var a=r(9896);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var o=n.normalize;if(i){var u=/(.*?)(?:[\/\\]+|$)/g}else{var u=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},o={};var c;var h;var p;var d;start();function start(){var t=l.exec(e);c=t[0].length;h=t[0];p=t[0];d="";if(i&&!o[p]){a.lstatSync(p);o[p]=true}}while(c<e.length){u.lastIndex=c;var y=u.exec(e);d=h;h+=y[0];p=d+y[1];c=u.lastIndex;if(o[p]||t&&t[p]===p){continue}var g;if(t&&Object.prototype.hasOwnProperty.call(t,p)){g=t[p]}else{var v=a.lstatSync(p);if(!v.isSymbolicLink()){o[p]=true;if(t)t[p]=p;continue}var b=null;if(!i){var _=v.dev.toString(32)+":"+v.ino.toString(32);if(s.hasOwnProperty(_)){b=s[_]}}if(b===null){a.statSync(p);b=a.readlinkSync(p)}g=n.resolve(d,b);if(t)t[p]=g;if(!i)s[_]=b}e=n.resolve(g,e.slice(c));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var s=e,o={},c={};var h;var p;var d;var y;start();function start(){var t=l.exec(e);h=t[0].length;p=t[0];d=t[0];y="";if(i&&!c[d]){a.lstat(d,(function(e){if(e)return r(e);c[d]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(h>=e.length){if(t)t[s]=e;return r(null,e)}u.lastIndex=h;var n=u.exec(e);y=p;p+=n[0];d=y+n[1];h=u.lastIndex;if(c[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return a.lstat(d,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){c[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],d)}}a.stat(d,(function(e){if(e)return r(e);a.readlink(d,(function(e,t){if(!i)o[s]=t;gotTarget(e,t)}))}))}function gotTarget(e,i,a){if(e)return r(e);var s=n.resolve(y,i);if(t)t[a]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(h));start()}}},8959:function(e,t,r){t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(9896);var i=r(6928);var a=r(6274);var s=r(2106);var o=a.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new o(r,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||n;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var a=process.cwd();if(!ownProp(r,"cwd"))e.cwd=a;else{e.cwd=i.resolve(r.cwd);e.changedCwd=e.cwd!==a}e.root=r.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=s(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=false;e.minimatch=new o(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(!a||Object.keys(a).length===0){if(e.nonull){var s=e.minimatch.globSet[n];if(t)r.push(s);else r[s]=true}}else{var o=Object.keys(a);if(t)r.push.apply(r,o);else o.forEach((function(e){r[e]=true}))}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(alphasort);if(e.mark){for(var n=0;n<r.length;n++){r[n]=e._mark(r[n])}if(e.nodir){r=r.filter((function(t){var r=!/\/$/.test(t);var n=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&n)r=n!=="DIR"&&!Array.isArray(n);return r}))}}if(e.ignore.length)r=r.filter((function(t){return!isIgnored(e,t)}));e.found=r}function mark(e,t){var r=makeAbs(e,t);var n=e.cache[r];var i=t;if(n){var a=n==="DIR"||Array.isArray(n);var s=t.slice(-1)==="/";if(a&&!s)i+="/";else if(!a&&s)i=i.slice(0,-1);if(i!==t){var o=makeAbs(e,i);e.statCache[o]=e.statCache[r];e.cache[o]=e.cache[r]}}return i}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=i.join(e.root,t)}else if(s(t)||t===""){r=t}else if(e.changedCwd){r=i.resolve(e.cwd,t)}else{r=i.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}))}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}))}},4908:function(e,t,r){e.exports=glob;var n=r(1931);var i=r(6274);var a=i.Minimatch;var s=r(4070);var o=r(4434).EventEmitter;var u=r(6928);var l=r(2613);var c=r(2106);var h=r(9521);var p=r(8959);var d=p.setopts;var y=p.ownProp;var g=r(5678);var v=r(9023);var b=p.childrenIgnored;var _=p.isIgnored;var w=r(8068);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return h(e,t)}return new Glob(e,t,r)}glob.sync=h;var S=glob.GlobSync=h.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var a=0;a<i[0].length;a++){if(typeof i[0][a]!=="string")return true}return false};glob.Glob=Glob;s(Glob,o);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new S(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);d(this,e,t);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof r==="function"){r=w(r);this.on("error",r);this.on("end",(function(e){r(null,e)}))}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var a=true;for(var s=0;s<n;s++){this._process(this.minimatch.set[s],s,false,done)}a=false;function done(){--i._processing;if(i._processing<=0){if(a){process.nextTick((function(){i._finish()}))}else{i._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r);var a=this;var s=i.length;if(s===0)return t();var o=this.matches[e]=Object.create(null);i.forEach((function(r,i){r=a._makeAbs(r);n.realpath(r,a.realpathCache,(function(n,i){if(!n)o[i]=true;else if(n.syscall==="stat")o[r]=true;else a.emit("error",n);if(--s===0){a.matches[e]=o;t()}}))}))};Glob.prototype._mark=function(e){return p.mark(this,e)};Glob.prototype._makeAbs=function(e){return p.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(e,t,r,n){l(this instanceof Glob);l(typeof n==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,n]);return}var a=0;while(typeof e[a]==="string"){a++}var s;switch(a){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,a).join("/");break}var o=e.slice(a);var u;if(s===null)u=".";else if(c(s)||c(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!s||!c(s))s="/"+s;u=s}else u=s;var h=this._makeAbs(u);if(b(this,u))return n();var p=o[0]===i.GLOBSTAR;if(p)this._processGlobStar(s,u,h,o,t,r,n);else this._processReaddir(s,u,h,o,t,r,n)};Glob.prototype._processReaddir=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,(function(u,l){return o._processReaddir2(e,t,r,n,i,a,l,s)}))};Glob.prototype._processReaddir2=function(e,t,r,n,i,a,s,o){if(!s)return o();var l=n[0];var c=!!this.minimatch.negate;var h=l._glob;var p=this.dot||h.charAt(0)===".";var d=[];for(var y=0;y<s.length;y++){var g=s[y];if(g.charAt(0)!=="."||p){var v;if(c&&!e){v=!g.match(l)}else{v=g.match(l)}if(v)d.push(g)}}var b=d.length;if(b===0)return o();if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var y=0;y<b;y++){var g=d[y];if(e){if(e!=="/")g=e+"/"+g;else g=e+g}if(g.charAt(0)==="/"&&!this.nomount){g=u.join(this.root,g)}this._emitMatch(i,g)}return o()}n.shift();for(var y=0;y<b;y++){var g=d[y];var _;if(e){if(e!=="/")g=e+"/"+g;else g=e+g}this._process([g].concat(n),i,a,o)}o()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(_(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=c(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;var i=this.statCache[r];if(i)this.emit("stat",t,i);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var n=this;var i=g(r,lstatcb_);if(i)n.fs.lstat(e,i);function lstatcb_(r,i){if(r&&r.code==="ENOENT")return t();var a=i&&i.isSymbolicLink();n.symlinks[e]=a;if(!a&&i&&!i.isDirectory()){n.cache[e]="FILE";t()}else n._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=g("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!y(this.symlinks,e))return this._readdirInGlobStar(e,r);if(y(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(n,i){if(n)e._readdirError(t,n,r);else e._readdirEntries(t,i,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var n=0;n<t.length;n++){var i=t[n];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);this.cache[n]="FILE";if(n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,(function(u,l){o._processGlobStar2(e,t,r,n,i,a,l,s)}))};Glob.prototype._processGlobStar2=function(e,t,r,n,i,a,s,o){if(!s)return o();var u=n.slice(1);var l=e?[e]:[];var c=l.concat(u);this._process(c,i,false,o);var h=this.symlinks[r];var p=s.length;if(h&&a)return o();for(var d=0;d<p;d++){var y=s[d];if(y.charAt(0)==="."&&!this.dot)continue;var g=l.concat(s[d],u);this._process(g,i,true,o);var v=l.concat(s[d],n);this._process(v,i,true,o)}o()};Glob.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,a){n._processSimple2(e,t,i,a,r)}))};Glob.prototype._processSimple2=function(e,t,r,n,i){if(!this.matches[t])this.matches[t]=Object.create(null);if(!n)return i();if(e&&c(e)&&!this.nomount){var a=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=u.join(this.root,e)}else{e=u.resolve(this.root,e);if(a)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);i()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&y(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var a;var s=this.statCache[r];if(s!==undefined){if(s===false)return t(null,s);else{var o=s.isDirectory()?"DIR":"FILE";if(n&&o==="FILE")return t();else return t(null,o,s)}}var u=this;var l=g("stat\0"+r,lstatcb_);if(l)u.fs.lstat(r,l);function lstatcb_(n,i){if(i&&i.isSymbolicLink()){return u.fs.stat(r,(function(n,a){if(n)u._stat2(e,r,null,i,t);else u._stat2(e,r,n,a,t)}))}else{u._stat2(e,r,n,i,t)}}};Glob.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return i()}var a=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(a&&s==="FILE")return i();return i(null,s,n)}},9521:function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(1931);var i=r(6274);var a=i.Minimatch;var s=r(4908).Glob;var o=r(9023);var u=r(6928);var l=r(2613);var c=r(2106);var h=r(8959);var p=h.setopts;var d=h.ownProp;var y=h.childrenIgnored;var g=h.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);p(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++){this._process(this.minimatch.set[n],n,false)}this._finish()}GlobSync.prototype._finish=function(){l.ok(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach((function(t,r){var i=e.matches[r]=Object.create(null);for(var a in t){try{a=e._makeAbs(a);var s=n.realpathSync(a,e.realpathCache);i[s]=true}catch(t){if(t.syscall==="stat")i[e._makeAbs(a)]=true;else throw t}}}))}h.finish(this)};GlobSync.prototype._process=function(e,t,r){l.ok(this instanceof GlobSync);var n=0;while(typeof e[n]==="string"){n++}var a;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:a=null;break;default:a=e.slice(0,n).join("/");break}var s=e.slice(n);var o;if(a===null)o=".";else if(c(a)||c(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!a||!c(a))a="/"+a;o=a}else o=a;var u=this._makeAbs(o);if(y(this,o))return;var h=s[0]===i.GLOBSTAR;if(h)this._processGlobStar(a,o,u,s,t,r);else this._processReaddir(a,o,u,s,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(!s)return;var o=n[0];var l=!!this.minimatch.negate;var c=o._glob;var h=this.dot||c.charAt(0)===".";var p=[];for(var d=0;d<s.length;d++){var y=s[d];if(y.charAt(0)!=="."||h){var g;if(l&&!e){g=!y.match(o)}else{g=y.match(o)}if(g)p.push(y)}}var v=p.length;if(v===0)return;if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<v;d++){var y=p[d];if(e){if(e.slice(-1)!=="/")y=e+"/"+y;else y=e+y}if(y.charAt(0)==="/"&&!this.nomount){y=u.join(this.root,y)}this._emitMatch(i,y)}return}n.shift();for(var d=0;d<v;d++){var y=p[d];var b;if(e)b=[e,y];else b=[y];this._process(b.concat(n),i,a)}};GlobSync.prototype._emitMatch=function(e,t){if(g(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var n;try{r=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var i=r&&r.isSymbolicLink();this.symlinks[e]=i;if(!i&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e);if(d(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var n=t[r];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;throw n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(!s)return;var o=n.slice(1);var u=e?[e]:[];var l=u.concat(o);this._process(l,i,false);var c=s.length;var h=this.symlinks[r];if(h&&a)return;for(var p=0;p<c;p++){var d=s[p];if(d.charAt(0)==="."&&!this.dot)continue;var y=u.concat(s[p],o);this._process(y,i,true);var g=u.concat(s[p],n);this._process(g,i,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&c(e)&&!this.nomount){var n=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=u.join(this.root,e)}else{e=u.resolve(this.root,e);if(n)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&d(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var i;var a=this.statCache[t];if(!a){var s;try{s=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(s&&s.isSymbolicLink()){try{a=this.fs.statSync(t)}catch(e){a=s}}else{a=s}}this.statCache[t]=a;var n=true;if(a)n=a.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return h.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return h.makeAbs(this,e)}},1403:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7551:function(e,t,r){var n=r(9896);var i=r(4538);var a=r(2611);var s=r(1403);var o=r(9023);var u;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var c=noop;if(o.debuglog)c=o.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[u]){var h=global[u]||[];publishQueue(n,h);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,l,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,l,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(n[u]);r(2613).equal(n[u].length,0)}))}}if(!global[u]){publishQueue(global,n[u])}e.exports=patch(s(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,a){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,a||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,a){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,a||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var s=e.copyFile;if(s)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return s(e,t,r,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],a,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var o=e.readdir;e.readdir=readdir;var u=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=u.test(process.version)?function go$readdir(e,t,r,n){return o(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return o(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(a,s){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([n,[e,t,r],a,i||Date.now(),Date.now()]);else{if(s&&s.sort)s.sort();if(typeof r==="function")r.call(this,a,s)}}}}if(process.version.substr(0,4)==="v0.8"){var l=a(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var h=e.WriteStream;if(h){WriteStream.prototype=Object.create(h.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return h.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var y=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return y(e,t,r,(function(a,s){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$open,[e,t,r,n],a,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);n[u].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var t=0;t<n[u].length;++t){if(n[u][t].length>2){n[u][t][3]=e;n[u][t][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(n[u].length===0)return;var e=n[u].shift();var t=e[0];var r=e[1];var i=e[2];var a=e[3];var s=e[4];if(a===undefined){c("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-a>=6e4){c("TIMEOUT",t.name,r);var o=r.pop();if(typeof o==="function")o.call(null,i)}else{var l=Date.now()-s;var h=Math.max(s-a,1);var d=Math.min(h*1.2,100);if(l>=d){c("RETRY",t.name,r);t.apply(null,r.concat([a]))}else{n[u].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},2611:function(e,t,r){var n=r(2203).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var a=Object.keys(r);for(var s=0,o=a.length;s<o;s++){var u=a[s];this[u]=r[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var a=0,s=i.length;a<s;a++){var o=i[a];this[o]=r[o]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},4538:function(e,t,r){var n=r(9140);var i=process.cwd;var a=null;var s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!a)a=i.call(process);return a};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var o=process.chdir;process.chdir=function(e){a=null;o.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,o)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(s==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,i){var a=Date.now();var s=0;t(r,n,(function CB(o){if(o&&(o.code==="EACCES"||o.code==="EPERM"||o.code==="EBUSY")&&Date.now()-a<6e4){setTimeout((function(){e.stat(n,(function(e,a){if(e&&e.code==="ENOENT")t(r,n,CB);else i(o)}))}),s);if(s<100)s+=10;return}if(i)i(o)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,i,a,s,o){var u;if(o&&typeof o==="function"){var l=0;u=function(c,h,p){if(c&&c.code==="EAGAIN"&&l<10){l++;return t.call(e,r,n,i,a,s,u)}o.apply(this,arguments)}}return t.call(e,r,n,i,a,s,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,i,a,s){var o=0;while(true){try{return t.call(e,r,n,i,a,s)}catch(e){if(e.code==="EAGAIN"&&o<10){o++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var a=true;var s;try{s=e.fchmodSync(i,r);a=false}finally{if(a){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return s}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,i,a){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(a)a(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(a)a(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var a=e.openSync(t,n.O_SYMLINK);var s;var o=true;try{s=e.futimesSync(a,r,i);o=false}finally{if(o){try{e.closeSync(a)}catch(e){}}else{e.closeSync(a)}}return s}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,a){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(a)a.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},5678:function(e,t,r){var n=r(8092);var i=Object.create(null);var a=r(8068);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return a((function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var a=0;a<r;a++){t[a].apply(null,n)}}finally{if(t.length>r){t.splice(0,r);process.nextTick((function(){RES.apply(null,n)}))}else{delete i[e]}}}))}function slice(e){var t=e.length;var r=[];for(var n=0;n<t;n++)r[n]=e[n];return r}},4070:function(e,t,r){try{var n=r(9023);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(6005)}},6005:function(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}}}},4057:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},2186:function(e,t,r){var n=r(9023);var i=r(3627);e.exports={Readable:Readable,Writable:Writable};n.inherits(Readable,i);n.inherits(Writable,i);function beforeFirstCall(e,t,r){e[t]=function(){delete e[t];r.apply(this,arguments);return this[t].apply(this,arguments)}}function Readable(e,t){if(!(this instanceof Readable))return new Readable(e,t);i.call(this,t);beforeFirstCall(this,"_read",(function(){var r=e.call(this,t);var n=this.emit.bind(this,"error");r.on("error",n);r.pipe(this)}));this.emit("readable")}function Writable(e,t){if(!(this instanceof Writable))return new Writable(e,t);i.call(this,t);beforeFirstCall(this,"_write",(function(){var r=e.call(this,t);var n=this.emit.bind(this,"error");r.on("error",n);this.pipe(r)}));this.emit("writable")}},4242:function(e){var t=9007199254740991;var r="[object Arguments]",n="[object Function]",i="[object GeneratorFunction]";var a=/^(?:0|[1-9]\d*)$/;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function baseTimes(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}var s=Object.prototype;var o=s.hasOwnProperty;var u=s.toString;var l=s.propertyIsEnumerable;var c=Math.max;function arrayLikeKeys(e,t){var r=h(e)||isArguments(e)?baseTimes(e.length,String):[];var n=r.length,i=!!n;for(var a in e){if((t||o.call(e,a))&&!(i&&(a=="length"||isIndex(a,n)))){r.push(a)}}return r}function assignInDefaults(e,t,r,n){if(e===undefined||eq(e,s[r])&&!o.call(n,r)){return t}return e}function assignValue(e,t,r){var n=e[t];if(!(o.call(e,t)&&eq(n,r))||r===undefined&&!(t in e)){e[t]=r}}function baseKeysIn(e){if(!isObject(e)){return nativeKeysIn(e)}var t=isPrototype(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!o.call(e,n)))){r.push(n)}}return r}function baseRest(e,t){t=c(t===undefined?e.length-1:t,0);return function(){var r=arguments,n=-1,i=c(r.length-t,0),a=Array(i);while(++n<i){a[n]=r[t+n]}n=-1;var s=Array(t+1);while(++n<t){s[n]=r[n]}s[t]=a;return apply(e,this,s)}}function copyObject(e,t,r,n){r||(r={});var i=-1,a=t.length;while(++i<a){var s=t[i];var o=n?n(r[s],e[s],s,r,e):undefined;assignValue(r,s,o===undefined?e[s]:o)}return r}function createAssigner(e){return baseRest((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:undefined,s=i>2?r[2]:undefined;a=e.length>3&&typeof a=="function"?(i--,a):undefined;if(s&&isIterateeCall(r[0],r[1],s)){a=i<3?undefined:a;i=1}t=Object(t);while(++n<i){var o=r[n];if(o){e(t,o,n,a)}}return t}))}function isIndex(e,r){r=r==null?t:r;return!!r&&(typeof e=="number"||a.test(e))&&(e>-1&&e%1==0&&e<r)}function isIterateeCall(e,t,r){if(!isObject(r)){return false}var n=typeof t;if(n=="number"?isArrayLike(r)&&isIndex(t,r.length):n=="string"&&t in r){return eq(r[t],e)}return false}function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||s;return e===r}function nativeKeysIn(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&o.call(e,"callee")&&(!l.call(e,"callee")||u.call(e)==r)}var h=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?u.call(e):"";return t==n||t==i}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}var p=createAssigner((function(e,t,r,n){copyObject(t,keysIn(t),e,n)}));var d=baseRest((function(e){e.push(undefined,assignInDefaults);return apply(p,undefined,e)}));function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,true):baseKeysIn(e)}e.exports=d},7467:function(e){var t=200;var r="__lodash_hash_undefined__";var n=9007199254740991;var i="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var l=typeof global=="object"&&global&&global.Object===Object&&global;var c=typeof self=="object"&&self&&self.Object===Object&&self;var h=l||c||Function("return this")();function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e?e.length:0;while(++n<i){if(r(t,e[n])){return true}}return false}function arrayMap(e,t){var r=-1,n=e?e.length:0,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function baseFindIndex(e,t,r,n){var i=e.length,a=r+(n?1:-1);while(n?a--:++a<i){if(t(e[a],a,e)){return a}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function baseIsNaN(e){return e!==e}function baseUnary(e){return function(t){return e(t)}}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var p=Array.prototype,d=Function.prototype,y=Object.prototype;var g=h["__core-js_shared__"];var v=function(){var e=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var b=d.toString;var _=y.hasOwnProperty;var w=y.toString;var S=RegExp("^"+b.call(_).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var E=h.Symbol,k=y.propertyIsEnumerable,O=p.splice,x=E?E.isConcatSpreadable:undefined;var R=Math.max;var T=getNative(h,"Map"),L=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function hashClear(){this.__data__=L?L(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(L){var n=t[e];return n===r?undefined:n}return _.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return L?t[e]!==undefined:_.call(t,e)}function hashSet(e,t){var n=this.__data__;n[e]=L&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{O.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(T||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseDifference(e,r,n,i){var a=-1,s=arrayIncludes,o=true,u=e.length,l=[],c=r.length;if(!u){return l}if(n){r=arrayMap(r,baseUnary(n))}if(i){s=arrayIncludesWith;o=false}else if(r.length>=t){s=cacheHas;o=false;r=new SetCache(r)}e:while(++a<u){var h=e[a],p=n?n(h):h;h=i||h!==0?h:0;if(o&&p===p){var d=c;while(d--){if(r[d]===p){continue e}}l.push(h)}else if(!s(r,p,i)){l.push(h)}}return l}function baseFlatten(e,t,r,n,i){var a=-1,s=e.length;r||(r=isFlattenable);i||(i=[]);while(++a<s){var o=e[a];if(t>0&&r(o)){if(t>1){baseFlatten(o,t-1,r,n,i)}else{arrayPush(i,o)}}else if(!n){i[i.length]=o}}return i}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?S:u;return t.test(toSource(e))}function baseRest(e,t){t=R(t===undefined?e.length-1:t,0);return function(){var r=arguments,n=-1,i=R(r.length-t,0),a=Array(i);while(++n<i){a[n]=r[t+n]}n=-1;var s=Array(t+1);while(++n<t){s[n]=r[n]}s[t]=a;return apply(e,this,s)}}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isFlattenable(e){return C(e)||isArguments(e)||!!(x&&e&&e[x])}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!v&&v in e}function toSource(e){if(e!=null){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var A=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,true)):[]}));function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&_.call(e,"callee")&&(!k.call(e,"callee")||w.call(e)==i)}var C=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?w.call(e):"";return t==a||t==s}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=n}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=A},6502:function(e){var t=9007199254740991;var r="[object Arguments]",n="[object Function]",i="[object GeneratorFunction]";var a=typeof global=="object"&&global&&global.Object===Object&&global;var s=typeof self=="object"&&self&&self.Object===Object&&self;var o=a||s||Function("return this")();function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}var u=Object.prototype;var l=u.hasOwnProperty;var c=u.toString;var h=o.Symbol,p=u.propertyIsEnumerable,d=h?h.isConcatSpreadable:undefined;function baseFlatten(e,t,r,n,i){var a=-1,s=e.length;r||(r=isFlattenable);i||(i=[]);while(++a<s){var o=e[a];if(t>0&&r(o)){if(t>1){baseFlatten(o,t-1,r,n,i)}else{arrayPush(i,o)}}else if(!n){i[i.length]=o}}return i}function isFlattenable(e){return y(e)||isArguments(e)||!!(d&&e&&e[d])}function flatten(e){var t=e?e.length:0;return t?baseFlatten(e,1):[]}function isArguments(e){return isArrayLikeObject(e)&&l.call(e,"callee")&&(!p.call(e,"callee")||c.call(e)==r)}var y=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?c.call(e):"";return t==n||t==i}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=flatten},5520:function(e){var t="[object Object]";function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function overArg(e,t){return function(r){return e(t(r))}}var r=Function.prototype,n=Object.prototype;var i=r.toString;var a=n.hasOwnProperty;var s=i.call(Object);var o=n.toString;var u=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return!!e&&typeof e=="object"}function isPlainObject(e){if(!isObjectLike(e)||o.call(e)!=t||isHostObject(e)){return false}var r=u(e);if(r===null){return true}var n=a.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&i.call(n)==s}e.exports=isPlainObject},2516:function(e){var t=200;var r="__lodash_hash_undefined__";var n=1/0,i=9007199254740991;var a="[object Arguments]",s="[object Function]",o="[object GeneratorFunction]";var u=/[\\^$.*+?()[\]{}|]/g;var l=/^\[object .+?Constructor\]$/;var c=typeof global=="object"&&global&&global.Object===Object&&global;var h=typeof self=="object"&&self&&self.Object===Object&&self;var p=c||h||Function("return this")();function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e?e.length:0;while(++n<i){if(r(t,e[n])){return true}}return false}function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function baseFindIndex(e,t,r,n){var i=e.length,a=r+(n?1:-1);while(n?a--:++a<i){if(t(e[a],a,e)){return a}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function baseIsNaN(e){return e!==e}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var d=Array.prototype,y=Function.prototype,g=Object.prototype;var v=p["__core-js_shared__"];var b=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var _=y.toString;var w=g.hasOwnProperty;var S=g.toString;var E=RegExp("^"+_.call(w).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var k=p.Symbol,O=g.propertyIsEnumerable,x=d.splice,R=k?k.isConcatSpreadable:undefined;var T=Math.max;var L=getNative(p,"Map"),A=getNative(p,"Set"),C=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function hashClear(){this.__data__=C?C(null):{}}function hashDelete(e){return this.has(e)&&delete this.__data__[e]}function hashGet(e){var t=this.__data__;if(C){var n=t[e];return n===r?undefined:n}return w.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.__data__;return C?t[e]!==undefined:w.call(t,e)}function hashSet(e,t){var n=this.__data__;n[e]=C&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function listCacheClear(){this.__data__=[]}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{x.call(t,r,1)}return true}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function mapCacheClear(){this.__data__={hash:new Hash,map:new(L||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)["delete"](e)}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,r);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseFlatten(e,t,r,n,i){var a=-1,s=e.length;r||(r=isFlattenable);i||(i=[]);while(++a<s){var o=e[a];if(t>0&&r(o)){if(t>1){baseFlatten(o,t-1,r,n,i)}else{arrayPush(i,o)}}else if(!n){i[i.length]=o}}return i}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?E:l;return t.test(toSource(e))}function baseRest(e,t){t=T(t===undefined?e.length-1:t,0);return function(){var r=arguments,n=-1,i=T(r.length-t,0),a=Array(i);while(++n<i){a[n]=r[t+n]}n=-1;var s=Array(t+1);while(++n<t){s[n]=r[n]}s[t]=a;return apply(e,this,s)}}function baseUniq(e,r,n){var i=-1,a=arrayIncludes,s=e.length,o=true,u=[],l=u;if(n){o=false;a=arrayIncludesWith}else if(s>=t){var c=r?null:I(e);if(c){return setToArray(c)}o=false;a=cacheHas;l=new SetCache}else{l=r?[]:u}e:while(++i<s){var h=e[i],p=r?r(h):h;h=n||h!==0?h:0;if(o&&p===p){var d=l.length;while(d--){if(l[d]===p){continue e}}if(r){l.push(p)}u.push(h)}else if(!a(l,p,n)){if(l!==u){l.push(p)}u.push(h)}}return u}var I=!(A&&1/setToArray(new A([,-0]))[1]==n)?noop:function(e){return new A(e)};function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isFlattenable(e){return j(e)||isArguments(e)||!!(R&&e&&e[R])}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isMasked(e){return!!b&&b in e}function toSource(e){if(e!=null){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var M=baseRest((function(e){return baseUniq(baseFlatten(e,1,isArrayLikeObject,true))}));function eq(e,t){return e===t||e!==e&&t!==t}function isArguments(e){return isArrayLikeObject(e)&&w.call(e,"callee")&&(!O.call(e,"callee")||S.call(e)==a)}var j=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?S.call(e):"";return t==s||t==o}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=i}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function noop(){}e.exports=M},6274:function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var a=r(5612);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var u=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var c="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,i){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,i){return t(r,n,ext(e,i))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,i){return t.match(r,n,ext(e,i))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(p)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return a(e)}var d=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>d){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var y={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return i;else e="*"}if(e==="")return"";var n="";var a=!!r.nocase;var l=false;var c=[];var p=[];var d;var g=false;var v=-1;var b=-1;var _=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var w=this;function clearStateChar(){if(d){switch(d){case"*":n+=u;a=true;break;case"?":n+=o;a=true;break;default:n+="\\"+d;break}w.debug("clearStateChar %j %j",d,n);d=false}}for(var S=0,E=e.length,k;S<E&&(k=e.charAt(S));S++){this.debug("%s\t%s %s %j",e,S,n,k);if(l&&h[k]){n+="\\"+k;l=false;continue}switch(k){case"/":{return false}case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,S,n,k);if(g){this.debug(" in class");if(k==="!"&&S===b+1)k="^";n+=k;continue}w.debug("call clearStateChar %j",d);clearStateChar();d=k;if(r.noext)clearStateChar();continue;case"(":if(g){n+="(";continue}if(!d){n+="\\(";continue}c.push({type:d,start:S-1,reStart:n.length,open:s[d].open,close:s[d].close});n+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,n);d=false;continue;case")":if(g||!c.length){n+="\\)";continue}clearStateChar();a=true;var O=c.pop();n+=O.close;if(O.type==="!"){p.push(O)}O.reEnd=n.length;continue;case"|":if(g||!c.length||l){n+="\\|";l=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(g){n+="\\"+k;continue}g=true;b=S;v=n.length;n+=k;continue;case"]":if(S===b+1||!g){n+="\\"+k;l=false;continue}var x=e.substring(b+1,S);try{RegExp("["+x+"]")}catch(e){var R=this.parse(x,y);n=n.substr(0,v)+"\\["+R[0]+"\\]";a=a||R[1];g=false;continue}a=true;g=false;n+=k;continue;default:clearStateChar();if(l){l=false}else if(h[k]&&!(k==="^"&&g)){n+="\\"}n+=k}}if(g){x=e.substr(b+1);R=this.parse(x,y);n=n.substr(0,v)+"\\["+R[0];a=a||R[1]}for(O=c.pop();O;O=c.pop()){var T=n.slice(O.reStart+O.open.length);this.debug("setting tail",n,O);T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",T,T,O,n);var L=O.type==="*"?u:O.type==="?"?o:"\\"+O.type;a=true;n=n.slice(0,O.reStart)+L+"\\("+T}clearStateChar();if(l){n+="\\\\"}var A=false;switch(n.charAt(0)){case"[":case".":case"(":A=true}for(var C=p.length-1;C>-1;C--){var I=p[C];var M=n.slice(0,I.reStart);var j=n.slice(I.reStart,I.reEnd-8);var D=n.slice(I.reEnd-8,I.reEnd);var B=n.slice(I.reEnd);D+=B;var P=M.split("(").length-1;var N=B;for(S=0;S<P;S++){N=N.replace(/\)[+*?]?/,"")}B=N;var F="";if(B===""&&t!==y){F="$"}var W=M+j+B+F+D;n=W}if(n!==""&&a){n="(?=.)"+n}if(A){n=_+n}if(t===y){return[n,a]}if(!a){return globUnescape(e)}var z=r.nocase?"i":"";try{var G=new RegExp("^"+n+"$",z)}catch(e){return new RegExp("$.")}G._glob=e;G._src=n;return G}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?u:t.dot?l:c;var n=t.nocase?"i":"";var a=e.map((function(e){return e.map((function(e){return e===i?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");a="^(?:"+a+")$";if(this.negate)a="^(?!"+a+").*$";try{this.regexp=new RegExp(a,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter((function(e){return n.match(e)}));if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var a;var s;for(s=e.length-1;s>=0;s--){a=e[s];if(a)break}for(s=0;s<i.length;s++){var o=i[s];var u=e;if(r.matchBase&&o.length===1){u=[a]}var l=this.matchOne(u,o,t);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var a=0,s=0,o=e.length,u=t.length;a<o&&s<u;a++,s++){this.debug("matchOne loop");var l=t[s];var c=e[a];this.debug(t,l,c);if(l===false)return false;if(l===i){this.debug("GLOBSTAR",[t,l,c]);var h=a;var p=s+1;if(p===u){this.debug("** at the end");for(;a<o;a++){if(e[a]==="."||e[a]===".."||!n.dot&&e[a].charAt(0)===".")return false}return true}while(h<o){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,o,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===o)return true}return false}var y;if(typeof l==="string"){y=c===l;this.debug("string match",l,c,y)}else{y=c.match(l);this.debug("pattern match",l,c,y)}if(!y)return false}if(a===o&&s===u){return true}else if(a===o){return r}else if(s===u){return a===o-1&&e[a]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},3697:function(e){const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},1388:function(e,t,r){const n=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=n;const i=r(3697);n.sep=i.sep;const a=Symbol("globstar **");n.GLOBSTAR=a;const s=r(6083);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const u="[^/]";const l=u+"*?";const c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const h="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const p=charSet("().*{}+?[]^$\\!");const d=charSet("[.(");const y=/\/+/;n.filter=(e,t={})=>(r,i,a)=>n(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};n.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return n}const t=n;const m=(r,n,i)=>t(r,n,ext(e,i));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,n)=>t.filter(r,ext(e,n));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,n)=>t.makeRe(r,ext(e,n));m.braceExpand=(r,n)=>t.braceExpand(r,ext(e,n));m.match=(r,n,i)=>t.match(r,n,ext(e,i));return m};n.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)};const g=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>g){throw new TypeError("pattern is too long")}};const v=Symbol("subparse");n.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();n.match=(e,t,r={})=>{const n=new Minimatch(t,r);e=e.filter((e=>n.match(e)));if(n.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const charUnescape=e=>e.replace(/\\([^-\]])/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(y)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++){t=!t;r++}if(r)this.pattern=e.slice(r);this.negate=t}matchOne(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var i=0,s=0,o=e.length,u=t.length;i<o&&s<u;i++,s++){this.debug("matchOne loop");var l=t[s];var c=e[i];this.debug(t,l,c);if(l===false)return false;if(l===a){this.debug("GLOBSTAR",[t,l,c]);var h=i;var p=s+1;if(p===u){this.debug("** at the end");for(;i<o;i++){if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return false}return true}while(h<o){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,o,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===o)return true}return false}var y;if(typeof l==="string"){y=c===l;this.debug("string match",l,c,y)}else{y=c.match(l);this.debug("pattern match",l,c,y)}if(!y)return false}if(i===o&&s===u){return true}else if(i===o){return r}else if(s===u){return i===o-1&&e[i]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return a;else e="*"}if(e==="")return"";let n="";let i=false;let s=false;const c=[];const h=[];let y;let g=false;let b=-1;let _=-1;let w;let S;let E;let k=e.charAt(0)===".";let O=r.dot||k;const patternStart=()=>k?"":O?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=e=>e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(y){switch(y){case"*":n+=l;i=true;break;case"?":n+=u;i=true;break;default:n+="\\"+y;break}this.debug("clearStateChar %j %j",y,n);y=false}};for(let t=0,a;t<e.length&&(a=e.charAt(t));t++){this.debug("%s\t%s %s %j",e,t,n,a);if(s){if(a==="/"){return false}if(p[a]){n+="\\"}n+=a;s=false;continue}switch(a){case"/":{return false}case"\\":if(g&&e.charAt(t+1)==="-"){n+=a;continue}clearStateChar();s=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,t,n,a);if(g){this.debug(" in class");if(a==="!"&&t===_+1)a="^";n+=a;continue}this.debug("call clearStateChar %j",y);clearStateChar();y=a;if(r.noext)clearStateChar();continue;case"(":{if(g){n+="(";continue}if(!y){n+="\\(";continue}const r={type:y,start:t-1,reStart:n.length,open:o[y].open,close:o[y].close};this.debug(this.pattern,"\t",r);c.push(r);n+=r.open;if(r.start===0&&r.type!=="!"){k=true;n+=subPatternStart(e.slice(t+1))}this.debug("plType %j %j",y,n);y=false;continue}case")":{const e=c[c.length-1];if(g||!e){n+="\\)";continue}c.pop();clearStateChar();i=true;S=e;n+=S.close;if(S.type==="!"){h.push(Object.assign(S,{reEnd:n.length}))}continue}case"|":{const r=c[c.length-1];if(g||!r){n+="\\|";continue}clearStateChar();n+="|";if(r.start===0&&r.type!=="!"){k=true;n+=subPatternStart(e.slice(t+1))}continue}case"[":clearStateChar();if(g){n+="\\"+a;continue}g=true;_=t;b=n.length;n+=a;continue;case"]":if(t===_+1||!g){n+="\\"+a;continue}w=e.substring(_+1,t);try{RegExp("["+braExpEscape(charUnescape(w))+"]");n+=a}catch(e){n=n.substring(0,b)+"(?:$.)"}i=true;g=false;continue;default:clearStateChar();if(p[a]&&!(a==="^"&&g)){n+="\\"}n+=a;break}}if(g){w=e.slice(_+1);E=this.parse(w,v);n=n.substring(0,b)+"\\["+E[0];i=i||E[1]}for(S=c.pop();S;S=c.pop()){let e;e=n.slice(S.reStart+S.open.length);this.debug("setting tail",n,S);e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",e,e,S,n);const t=S.type==="*"?l:S.type==="?"?u:"\\"+S.type;i=true;n=n.slice(0,S.reStart)+t+"\\("+e}clearStateChar();if(s){n+="\\\\"}const x=d[n.charAt(0)];for(let e=h.length-1;e>-1;e--){const r=h[e];const i=n.slice(0,r.reStart);const a=n.slice(r.reStart,r.reEnd-8);let s=n.slice(r.reEnd);const o=n.slice(r.reEnd-8,r.reEnd)+s;const u=i.split(")").length;const l=i.split("(").length-u;let c=s;for(let e=0;e<l;e++){c=c.replace(/\)[+*?]?/,"")}s=c;const p=s===""&&t!==v?"(?:$|\\/)":"";n=i+a+s+p+o}if(n!==""&&i){n="(?=.)"+n}if(x){n=patternStart()+n}if(t===v){return[n,i]}if(r.nocase&&!i){i=e.toUpperCase()!==e.toLowerCase()}if(!i){return globUnescape(e)}const R=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",R),{_glob:e,_src:n})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const r=t.noglobstar?l:t.dot?c:h;const n=t.nocase?"i":"";let i=e.map((e=>{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===a?a:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===a&&t===a)){e.push(t)}return e}),[]);e.forEach(((t,n)=>{if(t!==a||e[n-1]===a){return}if(n===0){if(e.length>1){e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]}else{e[n]=r}}else if(n===e.length-1){e[n-1]+="(?:\\/|"+r+")?"}else{e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1];e[n+1]=a}}));return e.filter((e=>e!==a)).join("/")})).join("|");i="^(?:"+i+")$";if(this.negate)i="^(?!"+i+").*$";try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(i.sep!=="/"){e=e.split(i.sep).join("/")}e=e.split(y);this.debug(this.pattern,"split",e);const n=this.set;this.debug(this.pattern,"set",n);let a;for(let t=e.length-1;t>=0;t--){a=e[t];if(a)break}for(let i=0;i<n.length;i++){const s=n[i];let o=e;if(r.matchBase&&s.length===1){o=[a]}const u=this.matchOne(o,s,t);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(e){return n.defaults(e).Minimatch}}n.Minimatch=Minimatch},4527:function(e){
|
|
52
|
+
/*!
|
|
53
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
54
|
+
*
|
|
55
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
56
|
+
* Released under the MIT License.
|
|
57
|
+
*/
|
|
58
|
+
e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];if((i==="?"||i===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);n="//"}}var a=e.split(/[/\\]+/);if(t!==false&&a[a.length-1]===""){a.pop()}return n+a.join("/")}},8068:function(e,t,r){var n=r(8092);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},2106:function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},1847:function(e){"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,n){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var i=arguments.length;var a,s;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,n)}));default:a=new Array(i-1);s=0;while(s<a.length){a[s++]=arguments[s]}return process.nextTick((function afterTick(){e.apply(null,a)}))}}},7561:function(e,t,r){"use strict";var n=r(1847);var i=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var a=Object.create(r(9810));a.inherits=r(4070);var s=r(6319);var o=r(227);a.inherits(Duplex,s);{var u=i(o.prototype);for(var l=0;l<u.length;l++){var c=u[l];if(!Duplex.prototype[c])Duplex.prototype[c]=o.prototype[c]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);s.call(this,e);o.call(this,e);if(e&&e.readable===false)this.readable=false;if(e&&e.writable===false)this.writable=false;this.allowHalfOpen=true;if(e&&e.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;n.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=e;this._writableState.destroyed=e}});Duplex.prototype._destroy=function(e,t){this.push(null);this.end();n.nextTick(t,e)}},7741:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(5167);var i=Object.create(r(9810));i.inherits=r(4070);i.inherits(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},6319:function(e,t,r){"use strict";var n=r(1847);e.exports=Readable;var i=r(4057);var a;Readable.ReadableState=ReadableState;var s=r(4434).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var o=r(8705);var u=r(6912).Buffer;var l=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof l}var c=Object.create(r(9810));c.inherits=r(4070);var h=r(9023);var p=void 0;if(h&&h.debuglog){p=h.debuglog("stream")}else{p=function(){}}var d=r(6271);var y=r(3383);var g;c.inherits(Readable,o);var v=["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(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){a=a||r(7561);e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;var i=e.highWaterMark;var s=e.readableHighWaterMark;var o=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(n&&(s||s===0))this.highWaterMark=s;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new d;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!g)g=r(8927).I;this.decoder=new g(e.encoding);this.encoding=e.encoding}}function Readable(e){a=a||r(7561);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}o.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=y.destroy;Readable.prototype._undestroy=y.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=u.from(e,t);t=""}n=true}}else{n=true}return readableAddChunk(this,e,t,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,n,i){var a=e._readableState;if(t===null){a.reading=false;onEofChunk(e,a)}else{var s;if(!i)s=chunkInvalid(a,t);if(s){e.emit("error",s)}else if(a.objectMode||t&&t.length>0){if(typeof t!=="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==u.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(a.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,a,t,true)}else if(a.ended){e.emit("error",new Error("stream.push() after EOF"))}else{a.reading=false;if(a.decoder&&!r){t=a.decoder.write(t);if(a.objectMode||t.length!==0)addChunk(e,a,t,false);else maybeReadMore(e,a)}else{addChunk(e,a,t,false)}}}else if(!n){a.reading=false}}return needMoreData(a)}function addChunk(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(n)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 TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!g)g=r(8927).I;this._readableState.decoder=new g(e);this._readableState.encoding=e;return this};var b=8388608;function computeNewHighWaterMark(e){if(e>=b){e=b}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){p("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.length>=t.highWaterMark||t.ended)){p("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 n=t.needReadable;p("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;p("length less than watermark",n)}if(t.ended||t.reading){n=false;p("reading or ended",n)}else if(n){p("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 i;if(e>0)i=fromList(e,t);else i=null;if(i===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(i!==null)this.emit("data",i);return i};function onEofChunk(e,t){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;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){p("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)n.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){p("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;n.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){p("maybeReadMore read 0");e.read(0);if(r===t.length)break;else r=t.length}t.readingMore=false}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};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;p("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var s=a?onend:unpipe;if(i.endEmitted)n.nextTick(s);else r.once("end",s);e.on("unpipe",onunpipe);function onunpipe(e,t){p("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){p("onend");e.end()}var o=pipeOnDrain(r);e.on("drain",o);var u=false;function cleanup(){p("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);u=true;if(i.awaitDrain&&(!e._writableState||e._writableState.needDrain))o()}var l=false;r.on("data",ondata);function ondata(t){p("ondata");l=false;var n=e.write(t);if(false===n&&!l){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&indexOf(i.pipes,e)!==-1)&&!u){p("false write response, pause",i.awaitDrain);i.awaitDrain++;l=true}r.pause()}}function onerror(t){p("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){p("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){p("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){p("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(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 n=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var a=0;a<i;a++){n[a].emit("unpipe",this,{hasUnpiped:false})}return this}var s=indexOf(t.pipes,e);if(s===-1)return this;t.pipes.splice(s,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=o.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==false)this.resume()}else if(e==="readable"){var i=this._readableState;if(!i.endEmitted&&!i.readableListening){i.readableListening=i.needReadable=true;i.emittedReadable=false;if(!i.reading){n.nextTick(nReadingNextTick,this)}else if(i.length){emitReadable(this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){p("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){p("resume");e.flowing=true;resume(this,e)}return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;n.nextTick(resume_,e,t)}}function resume_(e,t){if(!t.reading){p("resume read 0");e.read(0)}t.resumeScheduled=false;t.awaitDrain=0;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){p("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){p("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(e){var t=e._readableState;p("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){p("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(i){p("wrapped data");if(r.decoder)i=r.decoder.write(i);if(r.objectMode&&(i===null||i===undefined))return;else if(!r.objectMode&&(!i||!i.length))return;var a=t.push(i);if(!a){n=true;e.pause()}}));for(var i in e){if(this[i]===undefined&&typeof e[i]==="function"){this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)}}for(var a=0;a<v.length;a++){e.on(v[a],this.emit.bind(this,v[a]))}this._read=function(t){p("wrapped _read",t);if(n){n=false;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,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.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var n;if(e<t.head.data.length){n=t.head.data.slice(0,e);t.head.data=t.head.data.slice(e)}else if(e===t.head.data.length){n=t.shift()}else{n=r?copyFromBufferString(e,t):copyFromBuffer(e,t)}return n}function copyFromBufferString(e,t){var r=t.head;var n=1;var i=r.data;e-=i.length;while(r=r.next){var a=r.data;var s=e>a.length?a.length:e;if(s===a.length)i+=a;else i+=a.slice(0,e);e-=s;if(e===0){if(s===a.length){++n;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=a.slice(s)}break}++n}t.length-=n;return i}function copyFromBuffer(e,t){var r=u.allocUnsafe(e);var n=t.head;var i=1;n.data.copy(r);e-=n.data.length;while(n=n.next){var a=n.data;var s=e>a.length?a.length:e;a.copy(r,r.length-e,0,s);e-=s;if(e===0){if(s===a.length){++i;if(n.next)t.head=n.next;else t.head=t.tail=null}else{t.head=n;n.data=a.slice(s)}break}++i}t.length-=i;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;n.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,n=e.length;r<n;r++){if(e[r]===t)return r}return-1}},5167:function(e,t,r){"use strict";e.exports=Transform;var n=r(7561);var i=Object.create(r(9810));i.inherits=r(4070);i.inherits(Transform,n);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length<i.highWaterMark){this._read(i.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);n.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",prefinish)}function prefinish(){var e=this;if(typeof this._flush==="function"){this._flush((function(t,r){done(e,t,r)}))}else{done(this,null,null)}}Transform.prototype.push=function(e,t){this._transformState.needTransform=false;return n.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var i=this._readableState;if(n.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}};Transform.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming){t.transforming=true;this._transform(t.writechunk,t.writeencoding,t.afterTransform)}else{t.needTransform=true}};Transform.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e);r.emit("close")}))};function done(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},227:function(e,t,r){"use strict";var n=r(1847);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=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;var a;Writable.WritableState=WritableState;var s=Object.create(r(9810));s.inherits=r(4070);var o={deprecate:r(9987)};var u=r(8705);var l=r(6912).Buffer;var c=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof c}var h=r(3383);s.inherits(Writable,u);function nop(){}function WritableState(e,t){a=a||r(7561);e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var i=e.highWaterMark;var s=e.writableHighWaterMark;var o=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(n&&(s||s===0))this.highWaterMark=s;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;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.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:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var p;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){p=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(p.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{p=function(e){return e instanceof this}}function Writable(e){a=a||r(7561);if(!p.call(Writable,this)&&!(this instanceof a)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);n.nextTick(t,r)}function validChunk(e,t,r,i){var a=true;var s=false;if(r===null){s=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}if(s){e.emit("error",s);n.nextTick(i,s);a=false}return a}Writable.prototype.write=function(e,t,r){var n=this._writableState;var i=false;var a=!n.objectMode&&_isUint8Array(e);if(a&&!l.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(a)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ended)writeAfterEnd(this,r);else if(a||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,a,e,t,r)}return i};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=l.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,n,i,a){if(!r){var s=decodeChunk(t,n,i);if(n!==s){r=true;i="buffer";n=s}}var o=t.objectMode?1:n.length;t.length+=o;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,o,n,i,a)}return u}function doWrite(e,t,r,n,i,a,s){t.writelen=n;t.writecb=s;t.writing=true;t.sync=true;if(r)e._writev(i,t.onwrite);else e._write(i,a,t.onwrite);t.sync=false}function onwriteError(e,t,r,i,a){--t.pendingcb;if(r){n.nextTick(a,i);n.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;e.emit("error",i)}else{a(i);e._writableState.errorEmitted=true;e.emit("error",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 n=r.sync;var a=r.writecb;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,a);else{var s=needFinish(r);if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){i(afterWrite,e,r,s,a)}else{afterWrite(e,r,s,a)}}}function afterWrite(e,t,r,n){if(!r)onwriteDrain(e,t);t.pendingcb--;n();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 n=t.bufferedRequestCount;var i=new Array(n);var a=t.corkedRequestsFree;a.entry=r;var s=0;var o=true;while(r){i[s]=r;if(!r.isBuf)o=false;r=r.next;s+=1}i.allBuffers=o;doWrite(e,t,true,t.length,i,"",a.finish);t.pendingcb++;t.lastBufferedRequest=null;if(a.next){t.corkedRequestsFree=a.next;a.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var u=r.chunk;var l=r.encoding;var c=r.callback;var h=t.objectMode?1:u.length;doWrite(e,t,false,h,u,l,c);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 Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var n=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(n.corked){n.corked=1;this.uncork()}if(!n.ending)endWritable(this,n,r)};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){e.emit("error",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.pendingcb++;t.finalCalled=true;n.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")}}return r}function endWritable(e,t,r){t.ending=true;finishMaybe(e,t);if(r){if(t.finished)n.nextTick(r);else e.once("finish",r)}t.ended=true;e.writable=false}function onCorkedFinish(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--;i(r);n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(e){if(!this._writableState){return}this._writableState.destroyed=e}});Writable.prototype.destroy=h.destroy;Writable.prototype._undestroy=h.undestroy;Writable.prototype._destroy=function(e,t){this.end();t(e)}},6271:function(e,t,r){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var n=r(6912).Buffer;var i=r(9023);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=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};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=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};return BufferList}();if(i&&i.inspect&&i.inspect.custom){e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e}}},3383:function(e,t,r){"use strict";var n=r(1847);function destroy(e,t){var r=this;var i=this._readableState&&this._readableState.destroyed;var a=this._writableState&&this._writableState.destroyed;if(i||a){if(t){t(e)}else if(e){if(!this._writableState){n.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;n.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!r._writableState){n.nextTick(emitErrorNT,r,e)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;n.nextTick(emitErrorNT,r,e)}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},8705:function(e,t,r){e.exports=r(2203)},3627:function(e,t,r){e.exports=r(1397).PassThrough},1397:function(e,t,r){var n=r(2203);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n;t=e.exports=n.Readable;t.Readable=n.Readable;t.Writable=n.Writable;t.Duplex=n.Duplex;t.Transform=n.Transform;t.PassThrough=n.PassThrough;t.Stream=n}else{t=e.exports=r(6319);t.Stream=n||t;t.Readable=t;t.Writable=r(227);t.Duplex=r(7561);t.Transform=r(5167);t.PassThrough=r(7741)}},4804:function(e){"use strict";const t={};function createErrorType(e,r,n){if(!n){n=Error}function getMessage(e,t,n){if(typeof r==="string"){return r}else{return r(e,t,n)}}class NodeError extends n{constructor(e,t,r){super(getMessage(e,t,r))}}NodeError.prototype.name=n.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 n;if(typeof t==="string"&&startsWith(t,"not ")){n="must not be";t=t.replace(/^not /,"")}else{n="must be"}let i;if(endsWith(e," argument")){i=`The ${e} ${n} ${oneOf(t,"type")}`}else{const r=includes(e,".")?"property":"argument";i=`The "${e}" ${r} ${n} ${oneOf(t,"type")}`}i+=`. Received type ${typeof r}`;return i}),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.F=t},7591:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=Duplex;var i=r(6437);var a=r(8709);r(4070)(Duplex,i);{var s=n(a.prototype);for(var o=0;o<s.length;o++){var u=s[o];if(!Duplex.prototype[u])Duplex.prototype[u]=a.prototype[u]}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);i.call(this,e);a.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}})},5643:function(e,t,r){"use strict";e.exports=PassThrough;var n=r(1625);r(4070)(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},6437:function(e,t,r){"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var i=r(4434).EventEmitter;var a=function EElistenerCount(e,t){return e.listeners(t).length};var s=r(5451);var o=r(181).Buffer;var u=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return o.from(e)}function _isUint8Array(e){return o.isBuffer(e)||e instanceof u}var l=r(9023);var c;if(l&&l.debuglog){c=l.debuglog("stream")}else{c=function debug(){}}var h=r(5344);var p=r(345);var d=r(6562),y=d.getHighWaterMark;var g=r(4804).F,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,_=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var S;var E;var k;r(4070)(Readable,s);var O=p.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,i){n=n||r(7591);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=y(this,e,"readableHighWaterMark",i);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(!S)S=r(3252).I;this.decoder=new S(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(7591);if(!(this instanceof Readable))return new Readable(e);var t=this instanceof n;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}s.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=p.destroy;Readable.prototype._undestroy=p.undestroy;Readable.prototype._destroy=function(e,t){t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=o.from(e,t);t=""}n=true}}else{n=true}return readableAddChunk(this,e,t,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,n,i){c("readableAddChunk",t);var a=e._readableState;if(t===null){a.reading=false;onEofChunk(e,a)}else{var s;if(!i)s=chunkInvalid(a,t);if(s){O(e,s)}else if(a.objectMode||t&&t.length>0){if(typeof t!=="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==o.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(a.endEmitted)O(e,new w);else addChunk(e,a,t,true)}else if(a.ended){O(e,new b)}else if(a.destroyed){return false}else{a.reading=false;if(a.decoder&&!r){t=a.decoder.write(t);if(a.objectMode||t.length!==0)addChunk(e,a,t,false);else maybeReadMore(e,a)}else{addChunk(e,a,t,false)}}}else if(!n){a.reading=false;maybeReadMore(e,a)}}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function addChunk(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){t.awaitDrain=0;e.emit("data",r)}else{t.length+=t.objectMode?1:r.length;if(n)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 v("chunk",["string","Buffer","Uint8Array"],t)}return r}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(e){if(!S)S=r(3252).I;var t=new S(e);this._readableState.decoder=t;this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head;var i="";while(n!==null){i+=t.write(n.data);n=n.next}this._readableState.buffer.clear();if(i!=="")this._readableState.buffer.push(i);this._readableState.length=i.length;return this};var R=1073741824;function computeNewHighWaterMark(e){if(e>=R){e=R}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){c("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)){c("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 n=t.needReadable;c("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;c("length less than watermark",n)}if(t.ended||t.reading){n=false;c("reading or ended",n)}else if(n){c("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 i;if(e>0)i=fromList(e,t);else i=null;if(i===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(i!==null)this.emit("data",i);return i};function onEofChunk(e,t){c("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;c("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){c("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;c("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;c("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}Readable.prototype._read=function(e){O(this,new _("_read()"))};Readable.prototype.pipe=function(e,t){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1;c("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr;var s=i?onend:unpipe;if(n.endEmitted)process.nextTick(s);else r.once("end",s);e.on("unpipe",onunpipe);function onunpipe(e,t){c("onunpipe");if(e===r){if(t&&t.hasUnpiped===false){t.hasUnpiped=true;cleanup()}}}function onend(){c("onend");e.end()}var o=pipeOnDrain(r);e.on("drain",o);var u=false;function cleanup(){c("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);u=true;if(n.awaitDrain&&(!e._writableState||e._writableState.needDrain))o()}r.on("data",ondata);function ondata(t){c("ondata");var i=e.write(t);c("dest.write",i);if(i===false){if((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&indexOf(n.pipes,e)!==-1)&&!u){c("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}function onerror(t){c("onerror",t);unpipe();e.removeListener("error",onerror);if(a(e,"error")===0)O(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){c("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){c("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!n.flowing){c("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&a(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 n=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:false});return this}var s=indexOf(t.pipes,e);if(s===-1)return this;t.pipes.splice(s,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=s.prototype.on.call(this,e,t);var n=this._readableState;if(e==="data"){n.readableListening=this.listenerCount("readable")>0;if(n.flowing!==false)this.resume()}else if(e==="readable"){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;c("on readable",n.length,n.reading);if(n.length){emitReadable(this)}else if(!n.reading){process.nextTick(nReadingNextTick,this)}}}return r};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return r};Readable.prototype.removeAllListeners=function(e){var t=s.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){c("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){c("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){c("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(){c("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){c("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;c("flow",t.flowing);while(t.flowing&&e.read()!==null);}Readable.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=false;e.on("end",(function(){c("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(i){c("wrapped data");if(r.decoder)i=r.decoder.write(i);if(r.objectMode&&(i===null||i===undefined))return;else if(!r.objectMode&&(!i||!i.length))return;var a=t.push(i);if(!a){n=true;e.pause()}}));for(var i in e){if(this[i]===undefined&&typeof e[i]==="function"){this[i]=function methodWrap(t){return function methodWrapReturnFunction(){return e[t].apply(e,arguments)}}(i)}}for(var a=0;a<x.length;a++){e.on(x[a],this.emit.bind(this,x[a]))}this._read=function(t){c("wrapped _read",t);if(n){n=false;e.resume()}};return this};if(typeof Symbol==="function"){Readable.prototype[Symbol.asyncIterator]=function(){if(E===undefined){E=r(9756)}return E(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;c("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){c("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(k===undefined){k=r(9995)}return k(Readable,e,t)}}function indexOf(e,t){for(var r=0,n=e.length;r<n;r++){if(e[r]===t)return r}return-1}},1625:function(e,t,r){"use strict";e.exports=Transform;var n=r(4804).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0;var u=r(7591);r(4070)(Transform,u);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new a)}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length<i.highWaterMark){this._read(i.highWaterMark)}}function Transform(e){if(!(this instanceof Transform))return new Transform(e);u.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 u.prototype.push.call(this,e,t)};Transform.prototype._transform=function(e,t,r){r(new i("_transform()"))};Transform.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r;n.writechunk=e;n.writeencoding=t;if(!n.transforming){var i=this._readableState;if(n.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.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){u.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 s;return e.push(null)}},8709:function(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 n;Writable.WritableState=WritableState;var i={deprecate:r(9987)};var a=r(5451);var s=r(181).Buffer;var o=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return s.from(e)}function _isUint8Array(e){return s.isBuffer(e)||e instanceof o}var u=r(345);var l=r(6562),c=l.getHighWaterMark;var h=r(4804).F,p=h.ERR_INVALID_ARG_TYPE,d=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,_=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING;var S=u.errorOrDestroy;r(4070)(Writable,a);function nop(){}function WritableState(e,t,i){n=n||r(7591);e=e||{};if(typeof i!=="boolean")i=t instanceof n;this.objectMode=!!e.objectMode;if(i)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=c(this,e,"writableHighWaterMark",i);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var a=e.decodeStrings===false;this.decodeStrings=!a;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:i.deprecate((function writableStateBufferGetter(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var E;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){E=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(E.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{E=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||r(7591);var t=this instanceof n;if(!t&&!E.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}a.call(this)}Writable.prototype.pipe=function(){S(this,new g)};function writeAfterEnd(e,t){var r=new _;S(e,r);process.nextTick(t,r)}function validChunk(e,t,r,n){var i;if(r===null){i=new b}else if(typeof r!=="string"&&!t.objectMode){i=new p("chunk",["string","Buffer"],r)}if(i){S(e,i);process.nextTick(n,i);return false}return true}Writable.prototype.write=function(e,t,r){var n=this._writableState;var i=false;var a=!n.objectMode&&_isUint8Array(e);if(a&&!s.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(a)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ending)writeAfterEnd(this,r);else if(a||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,a,e,t,r)}return i};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 w(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=s.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,n,i,a){if(!r){var s=decodeChunk(t,n,i);if(n!==s){r=true;i="buffer";n=s}}var o=t.objectMode?1:n.length;t.length+=o;var u=t.length<t.highWaterMark;if(!u)t.needDrain=true;if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null};if(l){l.next=t.lastBufferedRequest}else{t.bufferedRequest=t.lastBufferedRequest}t.bufferedRequestCount+=1}else{doWrite(e,t,false,o,n,i,a)}return u}function doWrite(e,t,r,n,i,a,s){t.writelen=n;t.writecb=s;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new v("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,a,t.onwrite);t.sync=false}function onwriteError(e,t,r,n,i){--t.pendingcb;if(r){process.nextTick(i,n);process.nextTick(finishMaybe,e,t);e._writableState.errorEmitted=true;S(e,n)}else{i(n);e._writableState.errorEmitted=true;S(e,n);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 n=r.sync;var i=r.writecb;if(typeof i!=="function")throw new y;onwriteStateUpdate(r);if(t)onwriteError(e,r,n,t,i);else{var a=needFinish(r)||e.destroyed;if(!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){clearBuffer(e,r)}if(n){process.nextTick(afterWrite,e,r,a,i)}else{afterWrite(e,r,a,i)}}}function afterWrite(e,t,r,n){if(!r)onwriteDrain(e,t);t.pendingcb--;n();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 n=t.bufferedRequestCount;var i=new Array(n);var a=t.corkedRequestsFree;a.entry=r;var s=0;var o=true;while(r){i[s]=r;if(!r.isBuf)o=false;r=r.next;s+=1}i.allBuffers=o;doWrite(e,t,true,t.length,i,"",a.finish);t.pendingcb++;t.lastBufferedRequest=null;if(a.next){t.corkedRequestsFree=a.next;a.next=null}else{t.corkedRequestsFree=new CorkedRequest(t)}t.bufferedRequestCount=0}else{while(r){var u=r.chunk;var l=r.encoding;var c=r.callback;var h=t.objectMode?1:u.length;doWrite(e,t,false,h,u,l,c);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 d("_write()"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,t,r){var n=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(n.corked){n.corked=1;this.uncork()}if(!n.ending)endWritable(this,n,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){S(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 n=e._readableState;if(!n||n.autoDestroy&&n.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 n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--;i(r);n=n.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=u.destroy;Writable.prototype._undestroy=u.undestroy;Writable.prototype._destroy=function(e,t){t(e)}},9756:function(e,t,r){"use strict";var n;function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=r(8951);var a=Symbol("lastResolve");var s=Symbol("lastReject");var o=Symbol("error");var u=Symbol("ended");var l=Symbol("lastPromise");var c=Symbol("handlePromise");var h=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[a];if(t!==null){var r=e[h].read();if(r!==null){e[l]=null;e[a]=null;e[s]=null;t(createIterResult(r,false))}}}function onReadable(e){process.nextTick(readAndResolve,e)}function wrapForNext(e,t){return function(r,n){e.then((function(){if(t[u]){r(createIterResult(undefined,true));return}t[c](r,n)}),n)}}var p=Object.getPrototypeOf((function(){}));var d=Object.setPrototypeOf((n={get stream(){return this[h]},next:function next(){var e=this;var t=this[o];if(t!==null){return Promise.reject(t)}if(this[u]){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 n;if(r){n=new Promise(wrapForNext(r,this))}else{var i=this[h].read();if(i!==null){return Promise.resolve(createIterResult(i,false))}n=new Promise(this[c])}this[l]=n;return n}},_defineProperty(n,Symbol.asyncIterator,(function(){return this})),_defineProperty(n,"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))}))}))})),n),p);var y=function createReadableStreamAsyncIterator(e){var t;var r=Object.create(d,(t={},_defineProperty(t,h,{value:e,writable:true}),_defineProperty(t,a,{value:null,writable:true}),_defineProperty(t,s,{value:null,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,u,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,c,{value:function value(e,t){var n=r[h].read();if(n){r[l]=null;r[a]=null;r[s]=null;e(createIterResult(n,false))}else{r[a]=e;r[s]=t}},writable:true}),t));r[l]=null;i(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=r[s];if(t!==null){r[l]=null;r[a]=null;r[s]=null;t(e)}r[o]=e;return}var n=r[a];if(n!==null){r[l]=null;r[a]=null;r[s]=null;n(createIterResult(undefined,true))}r[u]=true}));e.on("readable",onReadable.bind(null,r));return r};e.exports=y},5344:function(e,t,r){"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){t=_toPropertyKey(t);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 n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){if(t)_defineProperties(e.prototype,t);if(r)_defineProperties(e,r);Object.defineProperty(e,"prototype",{writable:false});return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n=r(181),i=n.Buffer;var a=r(9023),s=a.inspect;var o=s&&s.custom||"inspect";function copyBuffer(e,t,r){i.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 i.alloc(0);var t=i.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r){copyBuffer(r.data,t,n);n+=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 n=t.data;e-=n.length;while(t=t.next){var i=t.data;var a=e>i.length?i.length:e;if(a===i.length)n+=i;else n+=i.slice(0,e);e-=a;if(e===0){if(a===i.length){++r;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=i.slice(a)}break}++r}this.length-=r;return n}},{key:"_getBuffer",value:function _getBuffer(e){var t=i.allocUnsafe(e);var r=this.head;var n=1;r.data.copy(t);e-=r.data.length;while(r=r.next){var a=r.data;var s=e>a.length?a.length:e;a.copy(t,t.length-e,0,s);e-=s;if(e===0){if(s===a.length){++n;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=a.slice(s)}break}++n}this.length-=n;return t}},{key:o,value:function value(e,t){return s(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:false}))}}]);return BufferList}()},345:function(e){"use strict";function destroy(e,t){var r=this;var n=this._readableState&&this._readableState.destroyed;var i=this._writableState&&this._writableState.destroyed;if(n||i){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 n=e._writableState;if(r&&r.autoDestroy||n&&n.autoDestroy)e.destroy(t);else e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},8951:function(e,t,r){"use strict";var n=r(4804).F.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=false;return function(){if(t)return;t=true;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}e.apply(this,n)}}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 i=t.readable||t.readable!==false&&e.readable;var a=t.writable||t.writable!==false&&e.writable;var s=function onlegacyfinish(){if(!e.writable)u()};var o=e._writableState&&e._writableState.finished;var u=function onfinish(){a=false;o=true;if(!i)r.call(e)};var l=e._readableState&&e._readableState.endEmitted;var c=function onend(){i=false;l=true;if(!a)r.call(e)};var h=function onerror(t){r.call(e,t)};var p=function onclose(){var t;if(i&&!l){if(!e._readableState||!e._readableState.ended)t=new n;return r.call(e,t)}if(a&&!o){if(!e._writableState||!e._writableState.ended)t=new n;return r.call(e,t)}};var d=function onrequest(){e.req.on("finish",u)};if(isRequest(e)){e.on("complete",u);e.on("abort",p);if(e.req)d();else e.on("request",d)}else if(a&&!e._writableState){e.on("end",s);e.on("close",s)}e.on("end",c);e.on("finish",u);if(t.error!==false)e.on("error",h);e.on("close",p);return function(){e.removeListener("complete",u);e.removeListener("abort",p);e.removeListener("request",d);if(e.req)e.req.removeListener("finish",u);e.removeListener("end",s);e.removeListener("close",s);e.removeListener("finish",u);e.removeListener("end",c);e.removeListener("error",h);e.removeListener("close",p)}}e.exports=eos},9995:function(e,t,r){"use strict";function asyncGeneratorStep(e,t,r,n,i,a,s){try{var o=e[a](s);var u=o.value}catch(e){r(e);return}if(o.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function _next(e){asyncGeneratorStep(a,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){t=_toPropertyKey(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t==="symbol"?t:String(t)}function _toPrimitive(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n=r(4804).F.ERR_INVALID_ARG_TYPE;function from(e,t,r){var i;if(t&&typeof t.next==="function"){i=t}else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new n("iterable",["Iterable"],t);var a=new e(_objectSpread({objectMode:true},r));var s=false;a._read=function(){if(!s){s=true;next()}};function next(){return _next2.apply(this,arguments)}function _next2(){_next2=_asyncToGenerator((function*(){try{var e=yield i.next(),t=e.value,r=e.done;if(r){a.push(null)}else if(a.push(yield t)){next()}else{s=false}}catch(e){a.destroy(e)}}));return _next2.apply(this,arguments)}return a}e.exports=from},2165:function(e,t,r){"use strict";var n;function once(e){var t=false;return function(){if(t)return;t=true;e.apply(void 0,arguments)}}var i=r(4804).F,a=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,t,i,a){a=once(a);var o=false;e.on("close",(function(){o=true}));if(n===undefined)n=r(8951);n(e,{readable:t,writable:i},(function(e){if(e)return a(e);o=true;a()}));var u=false;return function(t){if(o)return;if(u)return;u=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();a(t||new s("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 n=popCallback(t);if(Array.isArray(t[0]))t=t[0];if(t.length<2){throw new a("streams")}var i;var s=t.map((function(e,r){var a=r<t.length-1;var o=r>0;return destroyer(e,a,o,(function(e){if(!i)i=e;if(e)s.forEach(call);if(a)return;s.forEach(call);n(i)}))}));return t.reduce(pipe)}e.exports=pipeline},6562:function(e,t,r){"use strict";var n=r(4804).F.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function getHighWaterMark(e,t,r,i){var a=highWaterMarkFrom(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?r:"highWaterMark";throw new n(s,a)}return Math.floor(a)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},5451:function(e,t,r){e.exports=r(2203)},1643:function(e,t,r){var n=r(2203);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n.Readable;Object.assign(e.exports,n);e.exports.Stream=n}else{t=e.exports=r(6437);t.Stream=n||t;t.Readable=t;t.Writable=r(8709);t.Duplex=r(7591);t.Transform=r(1625);t.PassThrough=r(5643);t.finished=r(8951);t.pipeline=r(2165)}},8975:function(e,t,r){e.exports=readdirGlob;const n=r(9896);const{EventEmitter:i}=r(4434);const{Minimatch:a}=r(1388);const{resolve:s}=r(6928);function readdir(e,t){return new Promise(((r,i)=>{n.readdir(e,{withFileTypes:true},((e,n)=>{if(e){switch(e.code){case"ENOTDIR":if(t){i(e)}else{r([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;case"ELOOP":default:i(e);break}}else{r(n)}}))}))}function stat(e,t){return new Promise(((r,i)=>{const a=t?n.stat:n.lstat;a(e,((n,i)=>{if(n){switch(n.code){case"ENOENT":if(t){r(stat(e,false))}else{r(null)}break;default:r(null);break}}else{r(i)}}))}))}async function*exploreWalkAsync(e,t,r,n,i,a){let s=await readdir(t+e,a);for(const a of s){let s=a.name;if(s===undefined){s=a;n=true}const o=e+"/"+s;const u=o.slice(1);const l=t+"/"+u;let c=null;if(n||r){c=await stat(l,r)}if(!c&&a.name!==undefined){c=a}if(c===null){c={isDirectory:()=>false}}if(c.isDirectory()){if(!i(u)){yield{relative:u,absolute:l,stats:c};yield*exploreWalkAsync(o,t,r,n,i,false)}}else{yield{relative:u,absolute:l,stats:c}}}}async function*explore(e,t,r,n){yield*exploreWalkAsync("",e,t,r,n,true)}function readOptions(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}class ReaddirGlob extends i{constructor(e,t,r){super();if(typeof t==="function"){r=t;t=null}this.options=readOptions(t||{});this.matchers=[];if(this.options.pattern){const e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map((e=>new a(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map((e=>new a(e,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map((e=>new a(e,{dot:true})))}this.iterator=explore(s(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(r){this._matches=[];this.on("match",(e=>this._matches.push(this.options.absolute?e.absolute:e.relative)));this.on("error",(e=>r(e)));this.on("end",(()=>r(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(e){return this.skipMatchers.some((t=>t.match(e)))}_fileMatches(e,t){const r=e+(t?"/":"");return(this.matchers.length===0||this.matchers.some((e=>e.match(r))))&&!this.ignoreMatchers.some((e=>e.match(r)))&&(!this.options.nodir||!t)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((e=>{if(!e.done){const t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let r=e.value.relative;let n=e.value.absolute;if(this.options.mark&&t){r+="/";n+="/"}if(this.options.stat){this.emit("match",{relative:r,absolute:n,stat:e.value.stats})}else{this.emit("match",{relative:r,absolute:n})}}this._next(this.iterator)}else{this.emit("end")}})).catch((e=>{this.abort();this.emit("error",e);if(!e.code&&!this.options.silent){console.error(e)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(e,t,r){return new ReaddirGlob(e,t,r)}readdirGlob.ReaddirGlob=ReaddirGlob},6912:function(e,t,r){var n=r(181);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},3476:function(e,t,r){
|
|
59
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
60
|
+
var n=r(181);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},8927:function(e,t,r){"use strict";var n=r(6912).Buffer;var i=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var 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"&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=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=n.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 n=t.length-1;if(n<r)return 0;var i=utf8CheckByte(t[n]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--n<r||i===-2)return 0;i=utf8CheckByte(t[n]);if(i>=0){if(i>0)e.lastNeed=i-2;return i}if(--n<r||i===-2)return 0;i=utf8CheckByte(t[n]);if(i>=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}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 n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}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 n=r.charCodeAt(r.length-1);if(n>=55296&&n<=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):""}},3252:function(e,t,r){"use strict";var n=r(3476).Buffer;var i=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var 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"&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}t.I=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=n.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 n=t.length-1;if(n<r)return 0;var i=utf8CheckByte(t[n]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--n<r||i===-2)return 0;i=utf8CheckByte(t[n]);if(i>=0){if(i>0)e.lastNeed=i-2;return i}if(--n<r||i===-2)return 0;i=utf8CheckByte(t[n]);if(i>=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}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 n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}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 n=r.charCodeAt(r.length-1);if(n>=55296&&n<=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):""}},5763:function(e,t,r){var n=r(9023);var i=r(739);var a=r(6940);var s=r(1643).Writable;var o=r(1643).PassThrough;var noop=function(){};var overflow=function(e){e&=511;return e&&512-e};var emptyStream=function(e,t){var r=new Source(e,t);r.end();return r};var mixinPax=function(e,t){if(t.path)e.name=t.path;if(t.linkpath)e.linkname=t.linkpath;if(t.size)e.size=parseInt(t.size,10);e.pax=t;return e};var Source=function(e,t){this._parent=e;this.offset=t;o.call(this,{autoDestroy:false})};n.inherits(Source,o);Source.prototype.destroy=function(e){this._parent.destroy(e)};var Extract=function(e){if(!(this instanceof Extract))return new Extract(e);s.call(this,e);e=e||{};this._offset=0;this._buffer=i();this._missing=0;this._partial=false;this._onparse=noop;this._header=null;this._stream=null;this._overflow=null;this._cb=null;this._locked=false;this._destroyed=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;var t=this;var r=t._buffer;var oncontinue=function(){t._continue()};var onunlock=function(e){t._locked=false;if(e)return t.destroy(e);if(!t._stream)oncontinue()};var onstreamend=function(){t._stream=null;var e=overflow(t._header.size);if(e)t._parse(e,ondrain);else t._parse(512,onheader);if(!t._locked)oncontinue()};var ondrain=function(){t._buffer.consume(overflow(t._header.size));t._parse(512,onheader);oncontinue()};var onpaxglobalheader=function(){var e=t._header.size;t._paxGlobal=a.decodePax(r.slice(0,e));r.consume(e);onstreamend()};var onpaxheader=function(){var e=t._header.size;t._pax=a.decodePax(r.slice(0,e));if(t._paxGlobal)t._pax=Object.assign({},t._paxGlobal,t._pax);r.consume(e);onstreamend()};var ongnulongpath=function(){var n=t._header.size;this._gnuLongPath=a.decodeLongPath(r.slice(0,n),e.filenameEncoding);r.consume(n);onstreamend()};var ongnulonglinkpath=function(){var n=t._header.size;this._gnuLongLinkPath=a.decodeLongPath(r.slice(0,n),e.filenameEncoding);r.consume(n);onstreamend()};var onheader=function(){var n=t._offset;var i;try{i=t._header=a.decode(r.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit("error",e)}r.consume(512);if(!i){t._parse(512,onheader);oncontinue();return}if(i.type==="gnu-long-path"){t._parse(i.size,ongnulongpath);oncontinue();return}if(i.type==="gnu-long-link-path"){t._parse(i.size,ongnulonglinkpath);oncontinue();return}if(i.type==="pax-global-header"){t._parse(i.size,onpaxglobalheader);oncontinue();return}if(i.type==="pax-header"){t._parse(i.size,onpaxheader);oncontinue();return}if(t._gnuLongPath){i.name=t._gnuLongPath;t._gnuLongPath=null}if(t._gnuLongLinkPath){i.linkname=t._gnuLongLinkPath;t._gnuLongLinkPath=null}if(t._pax){t._header=i=mixinPax(i,t._pax);t._pax=null}t._locked=true;if(!i.size||i.type==="directory"){t._parse(512,onheader);t.emit("entry",i,emptyStream(t,n),onunlock);return}t._stream=new Source(t,n);t.emit("entry",i,t._stream,onunlock);t._parse(i.size,onstreamend);oncontinue()};this._onheader=onheader;this._parse(512,onheader)};n.inherits(Extract,s);Extract.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream)this._stream.emit("close")};Extract.prototype._parse=function(e,t){if(this._destroyed)return;this._offset+=e;this._missing=e;if(t===this._onheader)this._partial=false;this._onparse=t};Extract.prototype._continue=function(){if(this._destroyed)return;var e=this._cb;this._cb=noop;if(this._overflow)this._write(this._overflow,undefined,e);else e()};Extract.prototype._write=function(e,t,r){if(this._destroyed)return;var n=this._stream;var i=this._buffer;var a=this._missing;if(e.length)this._partial=true;if(e.length<a){this._missing-=e.length;this._overflow=null;if(n)return n.write(e,r);i.append(e);return r()}this._cb=r;this._missing=0;var s=null;if(e.length>a){s=e.slice(a);e=e.slice(0,a)}if(n)n.end(e);else i.append(e);this._overflow=s;this._onparse()};Extract.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};e.exports=Extract},6940:function(e,t){var r=Buffer.alloc;var n="0000000000000000000";var i="7777777777777777777";var a="0".charCodeAt(0);var s=Buffer.from("ustar\0","binary");var o=Buffer.from("00","binary");var u=Buffer.from("ustar ","binary");var l=Buffer.from(" \0","binary");var c=parseInt("7777",8);var h=257;var p=263;var clamp=function(e,t,r){if(typeof e!=="number")return r;e=~~e;if(e>=t)return t;if(e>=0)return e;e+=t;if(e>=0)return e;return 0};var toType=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null};var toTypeflag=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0};var indexOf=function(e,t,r,n){for(;r<n;r++){if(e[r]===t)return r}return n};var cksum=function(e){var t=8*32;for(var r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t};var encodeOct=function(e,t){e=e.toString(8);if(e.length>t)return i.slice(0,t)+" ";else return n.slice(0,t-e.length)+e+" "};function parse256(e){var t;if(e[0]===128)t=true;else if(e[0]===255)t=false;else return null;var r=[];for(var n=e.length-1;n>0;n--){var i=e[n];if(t)r.push(i);else r.push(255-i)}var a=0;var s=r.length;for(n=0;n<s;n++){a+=r[n]*Math.pow(256,n)}return t?a:-1*a}var decodeOct=function(e,t,r){e=e.slice(t,t+r);t=0;if(e[t]&128){return parse256(e)}else{while(t<e.length&&e[t]===32)t++;var n=clamp(indexOf(e,32,t,e.length),e.length,e.length);while(t<n&&e[t]===0)t++;if(n===t)return 0;return parseInt(e.slice(t,n).toString(),8)}};var decodeStr=function(e,t,r,n){return e.slice(t,indexOf(e,0,t,t+r)).toString(n)};var addLength=function(e){var t=Buffer.byteLength(e);var r=Math.floor(Math.log(t)/Math.log(10))+1;if(t+r>=Math.pow(10,r))r++;return t+r+e};t.decodeLongPath=function(e,t){return decodeStr(e,0,e.length,t)};t.encodePax=function(e){var t="";if(e.name)t+=addLength(" path="+e.name+"\n");if(e.linkname)t+=addLength(" linkpath="+e.linkname+"\n");var r=e.pax;if(r){for(var n in r){t+=addLength(" "+n+"="+r[n]+"\n")}}return Buffer.from(t)};t.decodePax=function(e){var t={};while(e.length){var r=0;while(r<e.length&&e[r]!==32)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString();var a=i.indexOf("=");if(a===-1)return t;t[i.slice(0,a)]=i.slice(a+1);e=e.slice(n)}return t};t.encode=function(e){var t=r(512);var n=e.name;var i="";if(e.typeflag===5&&n[n.length-1]!=="/")n+="/";if(Buffer.byteLength(n)!==n.length)return null;while(Buffer.byteLength(n)>100){var u=n.indexOf("/");if(u===-1)return null;i+=i?"/"+n.slice(0,u):n.slice(0,u);n=n.slice(u+1)}if(Buffer.byteLength(n)>100||Buffer.byteLength(i)>155)return null;if(e.linkname&&Buffer.byteLength(e.linkname)>100)return null;t.write(n);t.write(encodeOct(e.mode&c,6),100);t.write(encodeOct(e.uid,6),108);t.write(encodeOct(e.gid,6),116);t.write(encodeOct(e.size,11),124);t.write(encodeOct(e.mtime.getTime()/1e3|0,11),136);t[156]=a+toTypeflag(e.type);if(e.linkname)t.write(e.linkname,157);s.copy(t,h);o.copy(t,p);if(e.uname)t.write(e.uname,265);if(e.gname)t.write(e.gname,297);t.write(encodeOct(e.devmajor||0,6),329);t.write(encodeOct(e.devminor||0,6),337);if(i)t.write(i,345);t.write(encodeOct(cksum(t),6),148);return t};t.decode=function(e,t,r){var n=e[156]===0?0:e[156]-a;var i=decodeStr(e,0,100,t);var o=decodeOct(e,100,8);var c=decodeOct(e,108,8);var d=decodeOct(e,116,8);var y=decodeOct(e,124,12);var g=decodeOct(e,136,12);var v=toType(n);var b=e[157]===0?null:decodeStr(e,157,100,t);var _=decodeStr(e,265,32);var w=decodeStr(e,297,32);var S=decodeOct(e,329,8);var E=decodeOct(e,337,8);var k=cksum(e);if(k===8*32)return null;if(k!==decodeOct(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(s.compare(e,h,h+6)===0){if(e[345])i=decodeStr(e,345,155,t)+"/"+i}else if(u.compare(e,h,h+6)===0&&l.compare(e,p,p+2)===0){}else{if(!r){throw new Error("Invalid tar header: unknown format.")}}if(n===0&&i&&i[i.length-1]==="/")n=5;return{name:i,mode:o,uid:c,gid:d,size:y,mtime:new Date(1e3*g),type:v,linkname:b,uname:_,gname:w,devmajor:S,devminor:E}}},2454:function(e,t,r){t.extract=r(5763);t.pack=r(3709)},3709:function(e,t,r){var n=r(9033);var i=r(5859);var a=r(4070);var s=Buffer.alloc;var o=r(1643).Readable;var u=r(1643).Writable;var l=r(3193).StringDecoder;var c=r(6940);var h=parseInt("755",8);var p=parseInt("644",8);var d=s(1024);var noop=function(){};var overflow=function(e,t){t&=511;if(t)e.push(d.slice(0,512-t))};function modeToType(e){switch(e&n.S_IFMT){case n.S_IFBLK:return"block-device";case n.S_IFCHR:return"character-device";case n.S_IFDIR:return"directory";case n.S_IFIFO:return"fifo";case n.S_IFLNK:return"symlink"}return"file"}var Sink=function(e){u.call(this);this.written=0;this._to=e;this._destroyed=false};a(Sink,u);Sink.prototype._write=function(e,t,r){this.written+=e.length;if(this._to.push(e))return r();this._to._drain=r};Sink.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var LinkSink=function(){u.call(this);this.linkname="";this._decoder=new l("utf-8");this._destroyed=false};a(LinkSink,u);LinkSink.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e);r()};LinkSink.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var Void=function(){u.call(this);this._destroyed=false};a(Void,u);Void.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Void.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var Pack=function(e){if(!(this instanceof Pack))return new Pack(e);o.call(this,e);this._drain=noop;this._finalized=false;this._finalizing=false;this._destroyed=false;this._stream=null};a(Pack,o);Pack.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(this._finalized||this._destroyed)return;if(typeof t==="function"){r=t;t=null}if(!r)r=noop;var n=this;if(!e.size||e.type==="symlink")e.size=0;if(!e.type)e.type=modeToType(e.mode);if(!e.mode)e.mode=e.type==="directory"?h:p;if(!e.uid)e.uid=0;if(!e.gid)e.gid=0;if(!e.mtime)e.mtime=new Date;if(typeof t==="string")t=Buffer.from(t);if(Buffer.isBuffer(t)){e.size=t.length;this._encode(e);var a=this.push(t);overflow(n,e.size);if(a)process.nextTick(r);else this._drain=r;return new Void}if(e.type==="symlink"&&!e.linkname){var s=new LinkSink;i(s,(function(t){if(t){n.destroy();return r(t)}e.linkname=s.linkname;n._encode(e);r()}));return s}this._encode(e);if(e.type!=="file"&&e.type!=="contiguous-file"){process.nextTick(r);return new Void}var o=new Sink(this);this._stream=o;i(o,(function(t){n._stream=null;if(t){n.destroy();return r(t)}if(o.written!==e.size){n.destroy();return r(new Error("size mismatch"))}overflow(n,e.size);if(n._finalizing)n.finalize();r()}));return o};Pack.prototype.finalize=function(){if(this._stream){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(d);this.push(null)};Pack.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream&&this._stream.destroy)this._stream.destroy()};Pack.prototype._encode=function(e){if(!e.pax){var t=c.encode(e);if(t){this.push(t);return}}this._encodePax(e)};Pack.prototype._encodePax=function(e){var t=c.encodePax({name:e.name,linkname:e.linkname,pax:e.pax});var r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(c.encode(r));this.push(t);overflow(this,t.length);r.size=e.size;r.type=e.type;this.push(c.encode(r))};Pack.prototype._read=function(e){var t=this._drain;this._drain=noop;t()};e.exports=Pack},9987:function(e,t,r){e.exports=r(9023).deprecate},8092:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var i=t[t.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n}}},3974:function(e,t,r){
|
|
61
|
+
/**
|
|
62
|
+
* ZipStream
|
|
63
|
+
*
|
|
64
|
+
* @ignore
|
|
65
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
|
66
|
+
* @copyright (c) 2014 Chris Talkington, contributors.
|
|
67
|
+
*/
|
|
68
|
+
var n=r(9023).inherits;var i=r(7288).ZipArchiveOutputStream;var a=r(7288).ZipArchiveEntry;var s=r(7819);var o=e.exports=function(e){if(!(this instanceof o)){return new o(e)}e=this.options=e||{};e.zlib=e.zlib||{};i.call(this,e);if(typeof e.level==="number"&&e.level>=0){e.zlib.level=e.level;delete e.level}if(!e.forceZip64&&typeof e.zlib.level==="number"&&e.zlib.level===0){e.store=true}e.namePrependSlash=e.namePrependSlash||false;if(e.comment&&e.comment.length>0){this.setComment(e.comment)}};n(o,i);o.prototype._normalizeFileData=function(e){e=s.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory";var r=e.type==="symlink";if(e.name){e.name=s.sanitizePath(e.name);if(!r&&e.name.slice(-1)==="/"){t=true;e.type="directory"}else if(t){e.name+="/"}}if(t||r){e.store=true}e.date=s.dateify(e.date);return e};o.prototype.entry=function(e,t,r){if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}t=this._normalizeFileData(t);if(t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){r(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!=="string"||t.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!=="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new a(t.name);n.setTime(t.date,this.options.forceLocalTime);if(t.namePrependSlash){n.setName(t.name,true)}if(t.store){n.setMethod(0)}if(t.comment.length>0){n.setComment(t.comment)}if(t.type==="symlink"&&typeof t.mode!=="number"){t.mode=40960}if(typeof t.mode==="number"){if(t.type==="symlink"){t.mode|=40960}n.setUnixMode(t.mode)}if(t.type==="symlink"&&typeof t.linkname==="string"){e=Buffer.from(t.linkname)}return i.prototype.entry.call(this,n,e,r)};o.prototype.finalize=function(){this.finish()}},2613:function(e){"use strict";e.exports=require("assert")},181:function(e){"use strict";e.exports=require("buffer")},9140:function(e){"use strict";e.exports=require("constants")},4434:function(e){"use strict";e.exports=require("events")},9896:function(e){"use strict";e.exports=require("fs")},6928:function(e){"use strict";e.exports=require("path")},2203:function(e){"use strict";e.exports=require("stream")},3193:function(e){"use strict";e.exports=require("string_decoder")},9023:function(e){"use strict";e.exports=require("util")},3106:function(e){"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var a=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(1538);module.exports=r})();
|