coze-coding-dev-sdk 0.7.21 → 0.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/index.js +18 -18
- package/dist/cjs/index.js +11 -11
- package/dist/esm/131.mjs +18 -18
- package/dist/esm/1~398.mjs +2 -2
- package/dist/esm/cli/index.mjs +3 -3
- package/dist/esm/index.mjs +1 -1
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/url-utils.d.ts +43 -0
- package/dist/types/core/url-utils.d.ts.map +1 -0
- package/dist/types/fetch/client.d.ts.map +1 -1
- package/dist/types/image/client.d.ts.map +1 -1
- package/dist/types/llm/client.d.ts.map +1 -1
- package/dist/types/supabase/client.d.ts +3 -1
- package/dist/types/supabase/client.d.ts.map +1 -1
- package/dist/types/supabase/models.d.ts +24 -1
- package/dist/types/supabase/models.d.ts.map +1 -1
- package/dist/types/video/client.d.ts.map +1 -1
- package/dist/types/video_edit/client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/cli/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ let e,t,r,n;import*as i from"assert";import*as s from"constants";import*as o fro
|
|
|
2
2
|
`;super(t),this.name="AggregateError",this.errors=e}},ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},"./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/util.js"(e,t,r){let n=r("buffer"),{format:i,inspect:s}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/util/inspect.js"),{codes:{ERR_INVALID_ARG_TYPE:o}}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/errors.js"),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:d}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/primordials.js"),u=globalThis.AbortSignal||r("./node_modules/abort-controller/dist/abort-controller.mjs").h8,c=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,h=Object.getPrototypeOf(async function(){}).constructor,f=globalThis.Blob||n.Blob,validateAbortSignal=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new o(t,"AbortSignal",e)};e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}},promisify:e=>new Promise((t,r)=>{e((e,...n)=>e?r(e):t(...n))}),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:e=>e instanceof h,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:void 0!==f?function(e){return e instanceof f}:function(e){return!1},deprecate:(e,t)=>e,addAbortListener:r("events").addAbortListener||function(e,t){let r;if(void 0===e)throw new o("signal","AbortSignal",e);validateAbortSignal(e,"signal");if("function"!=typeof t)throw new o("listener","Function",t);return e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[d](){var e;null==(e=r)||e()}}},AbortSignalAny:u.any||function(e){if(1===e.length)return e[0];let t=new c,abort=()=>t.abort();return e.forEach(e=>{validateAbortSignal(e,"signals"),e.addEventListener("abort",abort,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",abort))},{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},"./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/util/inspect.js"(e){e.exports={format:(e,...t)=>e.replace(/%([sdifj])/g,function(...[e,r]){let n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"!==r||"object"!=typeof n)return n.toString();{let e=n.constructor!==Object?n.constructor.name:"";return`${e} {}`.trim()}}),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;else if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}},"./node_modules/archiver-utils/node_modules/readable-stream/lib/stream.js"(e,t,r){let{Buffer:n}=r("buffer"),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/primordials.js"),{promisify:{custom:a}}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/util.js"),{streamReturningOperators:l,promiseReturningOperators:d}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/operators.js"),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/errors.js"),c=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/compose.js"),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:f}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/state.js"),{pipeline:p}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{destroyer:b}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/destroy.js"),g=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),y=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/stream/promises.js"),w=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/utils.js"),v=e.exports=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/legacy.js").Stream;for(let e of(v.isDestroyed=w.isDestroyed,v.isDisturbed=w.isDisturbed,v.isErrored=w.isErrored,v.isReadable=w.isReadable,v.isWritable=w.isWritable,v.Readable=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/readable.js"),s(l))){let t=l[e];function fn(...e){if(new.target)throw u();return v.Readable.from(o(t,this,e))}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}for(let e of s(d)){let t=d[e];function fn(...e){if(new.target)throw u();return o(t,this,e)}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}v.Writable=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/writable.js"),v.Duplex=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/duplex.js"),v.Transform=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/transform.js"),v.PassThrough=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/passthrough.js"),v.pipeline=p;let{addAbortSignal:S}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js");v.addAbortSignal=S,v.finished=g,v.destroy=b,v.compose=c,v.setDefaultHighWaterMark=h,v.getDefaultHighWaterMark=f,i(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(g,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),v.Stream=v,v._isUint8Array=function(e){return e instanceof Uint8Array},v._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},"./node_modules/archiver-utils/node_modules/readable-stream/lib/stream/promises.js"(e,t,r){let{ArrayPrototypePop:n,Promise:i}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/ours/primordials.js"),{isIterable:s,isNodeStream:o,isWebStream:a}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/utils.js"),{pipelineImpl:l}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{finished:d}=r("./node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/end-of-stream.js");r("./node_modules/archiver-utils/node_modules/readable-stream/lib/stream.js"),e.exports={finished:d,pipeline:function(...e){return new i((t,r)=>{let i,d,u=e[e.length-1];if(u&&"object"==typeof u&&!o(u)&&!s(u)&&!a(u)){let t=n(e);i=t.signal,d=t.end}l(e,(e,n)=>{e?r(e):t(n)},{signal:i,end:d})})}}},"./node_modules/archiver/index.js"(e,t,r){var n=r("./node_modules/archiver/lib/core.js"),i={},vending=function(e,t){return vending.create(e,t)};vending.create=function(e,t){if(i[e]){var r=new n(e,t);return r.setFormat(e),r.setModule(new i[e](t)),r}throw Error("create("+e+"): format not registered")},vending.registerFormat=function(e,t){if(i[e])throw Error("register("+e+"): format already registered");if("function"!=typeof t)throw Error("register("+e+"): format module invalid");if("function"!=typeof t.prototype.append||"function"!=typeof t.prototype.finalize)throw Error("register("+e+"): format module missing methods");i[e]=t},vending.isRegisteredFormat=function(e){return!!i[e]},vending.registerFormat("zip",r("./node_modules/archiver/lib/plugins/zip.js")),vending.registerFormat("tar",r("./node_modules/archiver/lib/plugins/tar.js")),vending.registerFormat("json",r("./node_modules/archiver/lib/plugins/json.js")),e.exports=vending},"./node_modules/archiver/lib/core.js"(e,t,r){var n=r("fs"),i=r("./node_modules/readdir-glob/index.js"),s=r("./node_modules/async/dist/async.mjs"),o=r("path"),a=r("./node_modules/archiver-utils/index.js"),l=r("util").inherits,d=r("./node_modules/archiver/lib/error.js"),u=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/index.js").Transform,c="win32"===process.platform,Archiver=function(e,t){if(!(this instanceof Archiver))return new Archiver(e,t);"string"!=typeof e&&(t=e,e="zip"),t=this.options=a.defaults(t,{highWaterMark:1048576,statConcurrency:4}),u.call(this,t),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=s.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=s.queue(this._onStatQueueTask.bind(this),t.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};l(Archiver,u),Archiver.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},Archiver.prototype._append=function(e,t){var r={source:null,filepath:e};(t=t||{}).name||(t.name=e),t.sourcePath=e,r.data=t,this._entriesCount++,t.stats&&t.stats instanceof n.Stats?(r=this._updateQueueTaskWithStats(r,t.stats))&&(t.stats.size&&(this._fsEntriesTotalBytes+=t.stats.size),this._queue.push(r)):this._statQueue.push(r)},Archiver.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},Archiver.prototype._maybeFinalize=function(){return!this._state.finalizing&&!this._state.finalized&&!this._state.aborted&&!!(this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle())&&(this._finalize(),!0)},Archiver.prototype._moduleAppend=function(e,t,r){this._state.aborted?r():this._module.append(e,t,(function(e){if(this._task=null,this._state.aborted)return void this._shutdown();if(e){this.emit("error",e),setImmediate(r);return}this.emit("entry",t),this._entriesProcessedCount++,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(){"function"==typeof this._module.finalize?this._module.finalize():"function"==typeof this._module.end?this._module.end():this.emit("error",new d("NOENDMETHOD"))},Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},Archiver.prototype._moduleSupports=function(e){return!!this._module.supports&&!!this._module.supports[e]&&this._module.supports[e]},Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},Archiver.prototype._normalizeEntryData=function(e,t){e=a.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),t&&!1===e.stats&&(e.stats=t);var r="directory"===e.type;return e.name&&("string"==typeof e.prefix&&""!==e.prefix&&(e.name=e.prefix+"/"+e.name,e.prefix=null),e.name=a.sanitizePath(e.name),"symlink"!==e.type&&"/"===e.name.slice(-1)?(r=!0,e.type="directory"):r&&(e.name+="/")),"number"==typeof e.mode?c?e.mode&=511:e.mode&=4095:e.stats&&null===e.mode?(c?e.mode=511&e.stats.mode:e.mode=4095&e.stats.mode,c&&r&&(e.mode=493)):null===e.mode&&(e.mode=r?493:420),e.stats&&null===e.date?e.date=e.stats.mtime:e.date=a.dateify(e.date),e},Archiver.prototype._onModuleError=function(e){this.emit("error",e)},Archiver.prototype._onQueueDrain=function(){!this._state.finalizing&&!this._state.finalized&&!this._state.aborted&&this._state.finalize&&0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},Archiver.prototype._onQueueTask=function(e,t){var fullCallback=()=>{e.data.callback&&e.data.callback(),t()};this._state.finalizing||this._state.finalized||this._state.aborted?fullCallback():(this._task=e,this._moduleAppend(e.source,e.data,fullCallback))},Archiver.prototype._onStatQueueTask=function(e,t){this._state.finalizing||this._state.finalized||this._state.aborted?t():n.lstat(e.filepath,(function(r,n){if(this._state.aborted)return void setImmediate(t);if(r){this._entriesCount--,this.emit("warning",r),setImmediate(t);return}(e=this._updateQueueTaskWithStats(e,n))&&(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){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=a.lazyReadStream(e.filepath);else if(t.isDirectory()&&this._moduleSupports("directory"))e.data.name=a.trailingSlashIt(e.data.name),e.data.type="directory",e.data.sourcePath=a.trailingSlashIt(e.filepath),e.data.sourceType="buffer",e.source=Buffer.concat([]);else{if(!(t.isSymbolicLink()&&this._moduleSupports("symlink")))return t.isDirectory()?this.emit("warning",new d("DIRECTORYNOTSUPPORTED",e.data)):t.isSymbolicLink()?this.emit("warning",new d("SYMLINKNOTSUPPORTED",e.data)):this.emit("warning",new d("ENTRYNOTSUPPORTED",e.data)),null;var r=n.readlinkSync(e.filepath),i=o.dirname(e.filepath);e.data.type="symlink",e.data.linkname=o.relative(i,o.resolve(i,r)),e.data.sourceType="buffer",e.source=Buffer.concat([])}return e.data=this._normalizeEntryData(e.data,t),e},Archiver.prototype.abort=function(){return this._state.aborted||this._state.finalized||this._abort(),this},Archiver.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted)return this.emit("error",new d("QUEUECLOSED")),this;if("string"!=typeof(t=this._normalizeEntryData(t)).name||0===t.name.length)return this.emit("error",new d("ENTRYNAMEREQUIRED")),this;if("directory"===t.type&&!this._moduleSupports("directory"))return this.emit("error",new d("DIRECTORYNOTSUPPORTED",{name:t.name})),this;if(e=a.normalizeInputSource(e),Buffer.isBuffer(e))t.sourceType="buffer";else{if(!a.isStream(e))return this.emit("error",new d("INPUTSTEAMBUFFERREQUIRED",{name:t.name})),this;t.sourceType="stream"}return this._entriesCount++,this._queue.push({data:t,source:e}),this},Archiver.prototype.directory=function(e,t,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new d("QUEUECLOSED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new d("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,!1===t?t="":"string"!=typeof t&&(t=e);var n=!1;function onGlobEnd(){this._pending--,this._maybeFinalize()}function onGlobError(e){this.emit("error",e)}function onGlobMatch(i){s.pause();var o=!1,a=Object.assign({},r);a.name=i.relative,a.prefix=t,a.stats=i.stat,a.callback=s.resume.bind(s);try{if(n){if(a=n(a),!1===a)o=!0;else if("object"!=typeof a)throw new d("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}catch(e){this.emit("error",e);return}o?s.resume():this._append(i.absolute,a)}"function"==typeof r?(n=r,r={}):"object"!=typeof r&&(r={});var s=i(e,{stat:!0,dot:!0});return s.on("error",onGlobError.bind(this)),s.on("match",onGlobMatch.bind(this)),s.on("end",onGlobEnd.bind(this)),this},Archiver.prototype.file=function(e,t){return this._state.finalize||this._state.aborted?this.emit("error",new d("QUEUECLOSED")):"string"!=typeof e||0===e.length?this.emit("error",new d("FILEFILEPATHREQUIRED")):this._append(e,t),this},Archiver.prototype.glob=function(e,t,r){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)}this._pending++;var n=i((t=a.defaults(t,{stat:!0,pattern:e})).cwd||".",t);return n.on("error",onGlobError.bind(this)),n.on("match",onGlobMatch.bind(this)),n.on("end",onGlobEnd.bind(this)),this},Archiver.prototype.finalize=function(){if(this._state.aborted){var e=new d("ABORTED");return this.emit("error",e),Promise.reject(e)}if(this._state.finalize){var t=new d("FINALIZING");return this.emit("error",t),Promise.reject(t)}this._state.finalize=!0,0===this._pending&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(e,t){var n;r._module.on("end",function(){n||e()}),r._module.on("error",function(e){n=!0,t(e)})})},Archiver.prototype.setFormat=function(e){return this._format?this.emit("error",new d("FORMATSET")):this._format=e,this},Archiver.prototype.setModule=function(e){return this._state.aborted?this.emit("error",new d("ABORTED")):this._state.module?this.emit("error",new d("MODULESET")):(this._module=e,this._modulePipe()),this},Archiver.prototype.symlink=function(e,t,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new d("QUEUECLOSED")),this;if("string"!=typeof e||0===e.length)return this.emit("error",new d("SYMLINKFILEPATHREQUIRED")),this;if("string"!=typeof t||0===t.length)return this.emit("error",new d("SYMLINKTARGETREQUIRED",{filepath:e})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new d("SYMLINKNOTSUPPORTED",{filepath:e})),this;var n={};return n.type="symlink",n.name=e.replace(/\\/g,"/"),n.linkname=t.replace(/\\/g,"/"),n.sourceType="buffer","number"==typeof r&&(n.mode=r),this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this},Archiver.prototype.pointer=function(){return this._pointer},Archiver.prototype.use=function(e){return this._streams.push(e),this},e.exports=Archiver},"./node_modules/archiver/lib/error.js"(e,t,r){var n=r("util");let 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),e.exports=ArchiverError},"./node_modules/archiver/lib/plugins/json.js"(e,t,r){var n=r("util").inherits,i=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/index.js").Transform,s=r("./node_modules/buffer-crc32/dist/index.cjs"),o=r("./node_modules/archiver-utils/index.js"),Json=function(e){if(!(this instanceof Json))return new Json(e);e=this.options=o.defaults(e,{}),i.call(this,e),this.supports={directory:!0,symlink:!0},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;function onend(e,i){e?r(e):(t.size=i.length||0,t.crc32=s.unsigned(i),n.files.push(t),r(null,t))}t.crc32=0,"buffer"===t.sourceType?onend(null,e):"stream"===t.sourceType&&o.collectStream(e,onend)},Json.prototype.finalize=function(){this._writeStringified(),this.end()},e.exports=Json},"./node_modules/archiver/lib/plugins/tar.js"(e,t,r){var n=r("zlib"),i=r("./node_modules/tar-stream/index.js"),s=r("./node_modules/archiver-utils/index.js"),Tar=function(e){if(!(this instanceof Tar))return new Tar(e);"object"!=typeof(e=this.options=s.defaults(e,{gzip:!1})).gzipOptions&&(e.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=i.pack(e),this.compressor=!1,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;function append(e,i){e?r(e):n.engine.entry(t,i,function(e){r(e,t)})}if(t.mtime=t.date,"buffer"===t.sourceType)append(null,e);else if("stream"===t.sourceType&&t.stats){t.size=t.stats.size;var i=n.engine.entry(t,function(e){r(e,t)});e.pipe(i)}else"stream"===t.sourceType&&s.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){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t):this.engine.pipe.apply(this.engine,arguments)},Tar.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},e.exports=Tar},"./node_modules/archiver/lib/plugins/zip.js"(e,t,r){var n=r("./node_modules/zip-stream/index.js"),i=r("./node_modules/archiver-utils/index.js"),Zip=function(e){if(!(this instanceof Zip))return new Zip(e);e=this.options=i.defaults(e,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},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},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(e,t,r){let n,{SymbolDispose:i}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{AbortError:s,codes:o}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{isNodeStream:a,isWebStream:l,kControllerErrorFunction:d}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"),u=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{ERR_INVALID_ARG_TYPE:c}=o;e.exports.addAbortSignal=function(t,r){if("object"!=typeof t||!("aborted"in t))throw new c("signal","AbortSignal",t);if(!a(r)&&!l(r))throw new c("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;let o=a(t)?()=>{t.destroy(new s(void 0,{cause:e.reason}))}:()=>{t[d](new s(void 0,{cause:e.reason}))};return e.aborted?o():u(t,(n=n||r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(e,o)[i]),t}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(e,t,r){let{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{Buffer:a}=r("buffer"),{inspect:l}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js");e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;let e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);let t=a.allocUnsafe(e>>>0),r=this.head,n=0;for(;r;)s(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){let r=this.head.data;if(e<r.length){let t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{let s=r.data;if(e>s.length)t+=s,e-=s.length;else{e===s.length?(t+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(s,0,e),this.head=r,r.data=n(s,e));break}++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){let t=a.allocUnsafe(e),r=e,n=this.head,i=0;do{let a=n.data;if(e>a.length)s(t,a,r-e),e-=a.length;else{e===a.length?(s(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(t,new o(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:!1})}}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/compose.js"(e,t,r){let{pipeline:n}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/pipeline.js"),i=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js"),{destroyer:s}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js"),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:d,isTransformStream:u,isWritableStream:c,isReadableStream:h}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),g=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js");e.exports=function(...e){let t,r,y,w,v;if(0===e.length)throw new b("streams");if(1===e.length)return i.from(e[0]);let S=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){let t=e.length-1;e[t]=i.from(e[t])}for(let t=0;t<e.length;++t)if(o(e[t])||d(e[t])){if(t<e.length-1&&!(a(e[t])||h(e[t])||u(e[t])))throw new p(`streams[${t}]`,S[t],"must be readable");if(t>0&&!(l(e[t])||c(e[t])||u(e[t])))throw new p(`streams[${t}]`,S[t],"must be writable")}function onfinished(e){let t=w;w=null,t?t(e):e?v.destroy(e):T||k||v.destroy()}let x=e[0],j=n(e,onfinished),k=!!(l(x)||c(x)||u(x)),T=!!(a(j)||h(j)||u(j));if(v=new i({writableObjectMode:!!(null!=x&&x.writableObjectMode),readableObjectMode:!!(null!=j&&j.readableObjectMode),writable:k,readable:T}),k){if(o(x))v._write=function(e,r,n){x.write(e,r)?n():t=n},v._final=function(e){x.end(),r=e},x.on("drain",function(){if(t){let e=t;t=null,e()}});else if(d(x)){let e=(u(x)?x.writable:x).getWriter();v._write=async function(t,r,n){try{await e.ready,e.write(t).catch(()=>{}),n()}catch(e){n(e)}},v._final=async function(t){try{await e.ready,e.close().catch(()=>{}),r=t}catch(e){t(e)}}}g(u(j)?j.readable:j,()=>{if(r){let e=r;r=null,e()}})}if(T){if(o(j))j.on("readable",function(){if(y){let e=y;y=null,e()}}),j.on("end",function(){v.push(null)}),v._read=function(){for(;;){let e=j.read();if(null===e){y=v._read;return}if(!v.push(e))return}};else if(d(j)){let e=(u(j)?j.readable:j).getReader();v._read=async function(){for(;;)try{let{value:t,done:r}=await e.read();if(!v.push(t))return;if(r)return void v.push(null)}catch{return}}}}return v._destroy=function(e,n){e||null===w||(e=new f),y=null,t=null,r=null,null===w?n(e):(w=n,o(j)&&s(j,e))},v}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js"(e,t,r){let n=r("./node_modules/process/index.js"),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{Symbol:a}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{kIsDestroyed:l,isDestroyed:d,isFinished:u,isServerRequest:c}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"),h=a("kDestroy"),f=a("kConstruct");function checkError(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function _destroy(e,t,r){let i=!1;function onDestroy(t){if(i)return;i=!0;let s=e._readableState,o=e._writableState;checkError(t,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(emitErrorCloseNT,e,t):n.nextTick(emitCloseNT,e)}try{e._destroy(t||null,onDestroy)}catch(e){onDestroy(e)}}function emitErrorCloseNT(e,t){emitErrorNT(e,t),emitCloseNT(e)}function emitCloseNT(e){let t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function emitErrorNT(e,t){let r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function errorOrDestroy(e,t,r){let i=e._readableState,s=e._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?e.destroy(t):t&&(t.stack,s&&!s.errored&&(s.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(emitErrorNT,e,t):emitErrorNT(e,t))}function constructNT(e){let t=!1;function onConstruct(r){if(t)return void errorOrDestroy(e,null!=r?r:new s);t=!0;let i=e._readableState,o=e._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?e.emit(h,r):r?errorOrDestroy(e,r,!0):n.nextTick(emitConstructNT,e)}try{e._construct(e=>{n.nextTick(onConstruct,e)})}catch(e){n.nextTick(onConstruct,e)}}function emitConstructNT(e){e.emit(f)}function isRequest(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function emitCloseLegacy(e){e.emit("close")}function emitErrorCloseLegacy(e,t){e.emit("error",t),n.nextTick(emitCloseLegacy,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(f,t),e.listenerCount(f)>1||n.nextTick(constructNT,e)},destroyer:function(e,t){!(!e||d(e))&&(t||u(e)||(t=new o),c(e)?(e.socket=null,e.destroy(t)):isRequest(e)?e.abort():isRequest(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(emitErrorCloseLegacy,e,t):n.nextTick(emitCloseLegacy,e),e.destroyed||(e[l]=!0))},destroy:function(e,t){let r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?"function"==typeof t&&t():(checkError(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?_destroy(this,e,t):this.once(h,function(r){_destroy(this,i(r,e),t)})),this},undestroy:function(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js"(e,t,r){let n,i,{ObjectDefineProperties:s,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:a,ObjectSetPrototypeOf:l}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Duplex;let d=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/readable.js"),u=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/writable.js");l(Duplex.prototype,d.prototype),l(Duplex,d);{let e=a(u.prototype);for(let t=0;t<e.length;t++){let r=e[t];Duplex.prototype[r]||(Duplex.prototype[r]=u.prototype[r])}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);d.call(this,e),u.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}function lazyWebStreams(){return void 0===n&&(n={}),n}s(Duplex.prototype,{writable:{__proto__:null,...o(u.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(u.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(u.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(u.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(u.prototype,"writableLength")},writableFinished:{__proto__:null,...o(u.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(u.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(u.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(u.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),Duplex.fromWeb=function(e,t){return lazyWebStreams().newStreamDuplexFromReadableWritablePair(e,t)},Duplex.toWeb=function(e){return lazyWebStreams().newReadableWritablePairFromDuplex(e)},Duplex.from=function(e){return i||(i=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplexify.js")),i(e,"body")}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplexify.js"(e,t,r){"use strict";let n=r("./node_modules/process/index.js"),i=r("buffer"),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:d,isWritableNodeStream:u,isDuplexNodeStream:c,isReadableStream:h,isWritableStream:f}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"),p=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:y}}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{destroyer:w}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js"),v=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js"),S=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/readable.js"),x=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/writable.js"),{createDeferredPromise:j}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js"),k=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from.js"),T=globalThis.Blob||i.Blob,R=void 0!==T?function(e){return e instanceof T}:function(e){return!1},A=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,{FunctionPrototypeCall:O}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js");class C extends v{constructor(e){super(e),(null==e?void 0:e.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(null==e?void 0:e.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function fromAsyncGen(e){let{promise:t,resolve:r}=j(),i=new A,s=i.signal;return{value:e(async function*(){for(;;){let e=t;t=null;let{chunk:i,done:o,cb:a}=await e;if(n.nextTick(a),o)return;if(s.aborted)throw new b(void 0,{cause:s.reason});({promise:t,resolve:r}=j()),yield i}}(),{signal:s}),write(e,t,n){let i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){let t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}function _duplexify(e){let t,r,n,i,a,l=e.readable&&"function"!=typeof e.readable.read?S.wrap(e.readable):e.readable,d=e.writable,u=!!s(l),c=!!o(d);function onfinished(e){let t=i;i=null,t?t(e):e&&a.destroy(e)}return a=new C({readableObjectMode:!!(null!=l&&l.readableObjectMode),writableObjectMode:!!(null!=d&&d.writableObjectMode),readable:u,writable:c}),c&&(p(d,e=>{c=!1,e&&w(l,e),onfinished(e)}),a._write=function(e,r,n){d.write(e,r)?n():t=n},a._final=function(e){d.end(),r=e},d.on("drain",function(){if(t){let e=t;t=null,e()}}),d.on("finish",function(){if(r){let e=r;r=null,e()}})),u&&(p(l,e=>{u=!1,e&&w(l,e),onfinished(e)}),l.on("readable",function(){if(n){let e=n;n=null,e()}}),l.on("end",function(){a.push(null)}),a._read=function(){for(;;){let e=l.read();if(null===e){n=a._read;return}if(!a.push(e))return}}),a._destroy=function(e,s){e||null===i||(e=new b),n=null,t=null,r=null,null===i?s(e):(i=s,w(d,e),w(l,e))},a}e.exports=function duplexify(e,t){if(c(e))return e;if(d(e))return _duplexify({readable:e});if(u(e))return _duplexify({writable:e});if(l(e))return _duplexify({writable:!1,readable:!1});if(h(e))return _duplexify({readable:S.fromWeb(e)});if(f(e))return _duplexify({writable:x.fromWeb(e)});if("function"==typeof e){let{value:r,write:i,final:s,destroy:o}=fromAsyncGen(e);if(a(r))return k(C,r,{objectMode:!0,write:i,final:s,destroy:o});let l=null==r?void 0:r.then;if("function"==typeof l){let e,t=O(l,r,e=>{if(null!=e)throw new y("nully","body",e)},t=>{w(e,t)});return e=new C({objectMode:!0,readable:!1,write:i,final(e){s(async()=>{try{await t,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}})},destroy:o})}throw new y("Iterable, AsyncIterable or AsyncFunction",t,r)}if(R(e))return duplexify(e.arrayBuffer());if(a(e))return k(C,e,{objectMode:!0,writable:!1});if(h(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return C.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable))return _duplexify({readable:null!=e&&e.readable?d(null==e?void 0:e.readable)?null==e?void 0:e.readable:duplexify(e.readable):void 0,writable:null!=e&&e.writable?u(null==e?void 0:e.writable)?null==e?void 0:e.writable:duplexify(e.writable):void 0});let r=null==e?void 0:e.then;if("function"==typeof r){let t;return O(r,e,e=>{null!=e&&t.push(e),t.push(null)},e=>{w(t,e)}),t=new C({objectMode:!0,writable:!1,read(){}})}throw new g(t,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{AbortError:s,codes:o}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=o,{kEmptyObject:d,once:u}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js"),{validateAbortSignal:c,validateFunction:h,validateObject:f,validateBoolean:p}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/validators.js"),{Promise:b,PromisePrototypeThen:g,SymbolDispose:y}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{isClosed:w,isReadable:v,isReadableNodeStream:S,isReadableStream:x,isReadableFinished:j,isReadableErrored:k,isWritable:T,isWritableNodeStream:R,isWritableStream:A,isWritableFinished:O,isWritableErrored:C,isNodeStream:M,willEmitClose:L,kIsClosedPromise:D}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js");function isRequest(e){return e.setHeader&&"function"==typeof e.abort}let nop=()=>{};function eos(e,t,o){var p,b;if(2==arguments.length?(o=t,t=d):null==t?t=d:f(t,"options"),h(o,"callback"),c(t.signal,"options.signal"),o=u(o),x(e)||A(e))return eosWeb(e,t,o);if(!M(e))throw new a("stream",["ReadableStream","WritableStream","Stream"],e);let g=null!=(p=t.readable)?p:S(e),D=null!=(b=t.writable)?b:R(e),I=e._writableState,P=e._readableState,onlegacyfinish=()=>{e.writable||onfinish()},W=L(e)&&S(e)===g&&R(e)===D,N=O(e,!1),onfinish=()=>{N=!0,e.destroyed&&(W=!1),W&&(!e.readable||g)||(!g||F)&&o.call(e)},F=j(e,!1),onend=()=>{F=!0,e.destroyed&&(W=!1),W&&(!e.writable||D)||(!D||N)&&o.call(e)},onerror=t=>{o.call(e,t)},B=w(e),onclose=()=>{B=!0;let t=C(e)||k(e);return t&&"boolean"!=typeof t?o.call(e,t):g&&!F&&S(e,!0)&&!j(e,!1)||D&&!N&&!O(e,!1)?o.call(e,new l):void o.call(e)},onclosed=()=>{B=!0;let t=C(e)||k(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},onrequest=()=>{e.req.on("finish",onfinish)};isRequest(e)?(e.on("complete",onfinish),W||e.on("abort",onclose),e.req?onrequest():e.on("request",onrequest)):D&&!I&&(e.on("end",onlegacyfinish),e.on("close",onlegacyfinish)),W||"boolean"!=typeof e.aborted||e.on("aborted",onclose),e.on("end",onend),e.on("finish",onfinish),!1!==t.error&&e.on("error",onerror),e.on("close",onclose),B?i.nextTick(onclose):null!=I&&I.errorEmitted||null!=P&&P.errorEmitted?W||i.nextTick(onclosed):!g&&(!W||v(e))&&(N||!1===T(e))||!D&&(!W||T(e))&&(F||!1===v(e))?i.nextTick(onclosed):P&&e.req&&e.aborted&&i.nextTick(onclosed);let cleanup=()=>{o=nop,e.removeListener("aborted",onclose),e.removeListener("complete",onfinish),e.removeListener("abort",onclose),e.removeListener("request",onrequest),e.req&&e.req.removeListener("finish",onfinish),e.removeListener("end",onlegacyfinish),e.removeListener("close",onlegacyfinish),e.removeListener("finish",onfinish),e.removeListener("end",onend),e.removeListener("error",onerror),e.removeListener("close",onclose)};if(t.signal&&!B){let abort=()=>{let r=o;cleanup(),r.call(e,new s(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)i.nextTick(abort);else{let i=(n=n||r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(t.signal,abort),s=o;o=u((...t)=>{i[y](),s.apply(e,t)})}}return cleanup}function eosWeb(e,t,o){let a=!1,l=nop;if(t.signal)if(l=()=>{a=!0,o.call(e,new s(void 0,{cause:t.signal.reason}))},t.signal.aborted)i.nextTick(l);else{let i=(n=n||r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(t.signal,l),s=o;o=u((...t)=>{i[y](),s.apply(e,t)})}let resolverFn=(...t)=>{a||i.nextTick(()=>o.apply(e,t))};return g(e[D].promise,resolverFn,resolverFn),nop}function finished(e,t){var r;let n=!1;return null===t&&(t=d),null!=(r=t)&&r.cleanup&&(p(t.cleanup,"cleanup"),n=t.cleanup),new b((r,i)=>{let s=eos(e,t,e=>{n&&s(),e?i(e):r()})})}e.exports=eos,e.exports.finished=finished},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from.js"(e,t,r){let n=r("./node_modules/process/index.js"),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{Buffer:a}=r("buffer"),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:d}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js").codes;e.exports=function(e,t,r){let u,c;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[s])c=!0,u=t[s]();else if(t&&t[o])c=!1,u=t[o]();else throw new l("iterable",["Iterable"],t);let h=new e({objectMode:!0,highWaterMark:1,...r}),f=!1;async function close(e){let t=null!=e,r="function"==typeof u.throw;if(t&&r){let{value:t,done:r}=await u.throw(e);if(await t,r)return}if("function"==typeof u.return){let{value:e}=await u.return();await e}}async function next(){for(;;){try{let{value:e,done:t}=c?await u.next():u.next();if(t)h.push(null);else{let t=e&&"function"==typeof e.then?await e:e;if(null===t)throw f=!1,new d;if(h.push(t))continue;f=!1}}catch(e){h.destroy(e)}break}}return h._read=function(){f||(f=!0,next())},h._destroy=function(e,t){i(close(e),()=>n.nextTick(t,e),r=>n.nextTick(t,r||e))},h}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/legacy.js"(e,t,r){let{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{EventEmitter:s}=r("events");function Stream(e){s.call(this,e)}function prependListener(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(Stream.prototype,s.prototype),i(Stream,s),Stream.prototype.pipe=function(e,t){let r=this;function ondata(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function ondrain(){r.readable&&r.resume&&r.resume()}r.on("data",ondata),e.on("drain",ondrain),e._isStdio||t&&!1===t.end||(r.on("end",onend),r.on("close",onclose));let n=!1;function onend(){n||(n=!0,e.end())}function onclose(){n||(n=!0,"function"==typeof e.destroy&&e.destroy())}function onerror(e){cleanup(),0===s.listenerCount(this,"error")&&this.emit("error",e)}function cleanup(){r.removeListener("data",ondata),e.removeListener("drain",ondrain),r.removeListener("end",onend),r.removeListener("close",onclose),r.removeListener("error",onerror),e.removeListener("error",onerror),r.removeListener("end",cleanup),r.removeListener("close",cleanup),e.removeListener("close",cleanup)}return prependListener(r,"error",onerror),prependListener(e,"error",onerror),r.on("end",cleanup),r.on("close",cleanup),e.on("close",cleanup),e.emit("pipe",r),e},e.exports={Stream,prependListener}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/operators.js"(e,t,r){let n=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{validateAbortSignal:d,validateInteger:u,validateObject:c}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/validators.js"),h=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js").Symbol("kWeak"),f=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js").Symbol("kResistStopPropagation"),{finished:p}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),b=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/compose.js"),{addAbortSignalNoValidate:g}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),{isWritable:y,isNodeStream:w}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"),{deprecate:v}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js"),{ArrayPrototypePush:S,Boolean:x,MathFloor:j,Number:k,NumberIsNaN:T,Promise:R,PromiseReject:A,PromiseResolve:O,PromisePrototypeThen:C,Symbol:M}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),L=M("kEmpty"),D=M("kEof");function compose(e,t){if(null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),w(e)&&!y(e))throw new i("stream",e,"must be writable");let r=b(this,e);return null!=t&&t.signal&&g(t.signal,r),r}function map(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal");let n=1;(null==t?void 0:t.concurrency)!=null&&(n=j(t.concurrency));let i=n-1;return(null==t?void 0:t.highWaterMark)!=null&&(i=j(t.highWaterMark)),u(n,"options.concurrency",1),u(i,"options.highWaterMark",0),i+=n,(async function*(){let s,o,a=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js").AbortSignalAny([null==t?void 0:t.signal].filter(x)),d=this,u=[],c={signal:a},h=!1,f=0;function onCatch(){h=!0,afterItemProcessed()}function afterItemProcessed(){f-=1,maybeResume()}function maybeResume(){o&&!h&&f<n&&u.length<i&&(o(),o=null)}!async function(){try{for await(let t of d){if(h)return;if(a.aborted)throw new l;try{if((t=e(t,c))===L)continue;t=O(t)}catch(e){t=A(e)}f+=1,C(t,afterItemProcessed,onCatch),u.push(t),s&&(s(),s=null),!h&&(u.length>=i||f>=n)&&await new R(e=>{o=e})}u.push(D)}catch(t){let e=A(t);C(e,afterItemProcessed,onCatch),u.push(e)}finally{h=!0,s&&(s(),s=null)}}();try{for(;;){for(;u.length>0;){let e=await u[0];if(e===D)return;if(a.aborted)throw new l;e!==L&&(yield e),u.shift(),maybeResume()}await new R(e=>{s=e})}}finally{h=!0,o&&(o(),o=null)}}).call(this)}function asIndexedPairs(e){return null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&d(e.signal,"options.signal"),(async function*(){let t=0;for await(let n of this){var r;if(null!=e&&null!=(r=e.signal)&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}).call(this)}async function some(e,t){for await(let r of filter.call(this,e,t))return!0;return!1}async function every(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);return!await some.call(this,async(...t)=>!await e(...t),t)}async function find(e,t){for await(let r of filter.call(this,e,t))return r}async function forEach(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);async function forEachFn(t,r){return await e(t,r),L}for await(let e of map.call(this,forEachFn,t));}function filter(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);async function filterFn(t,r){return await e(t,r)?t:L}return map.call(this,filterFn,t)}class I extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function reduce(e,t,r){var i,o;if("function"!=typeof e)throw new s("reducer",["Function","AsyncFunction"],e);null!=r&&c(r,"options"),(null==r?void 0:r.signal)!=null&&d(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!=(i=r.signal)&&i.aborted){let e=new l(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(e)),e}let u=new n,b=u.signal;null!=r&&r.signal&&r.signal.addEventListener("abort",()=>u.abort(),{once:!0,[h]:this,[f]:!0});let g=!1;try{for await(let n of this){if(g=!0,null!=r&&null!=(o=r.signal)&&o.aborted)throw new l;a?t=await e(t,n,{signal:b}):(t=n,a=!0)}if(!g&&!a)throw new I}finally{u.abort()}return t}async function toArray(e){null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&d(e.signal,"options.signal");let t=[];for await(let n of this){var r;if(null!=e&&null!=(r=e.signal)&&r.aborted)throw new l(void 0,{cause:e.signal.reason});S(t,n)}return t}function flatMap(e,t){let r=map.call(this,e,t);return(async function*(){for await(let e of r)yield*e}).call(this)}function toIntegerOrInfinity(e){if(T(e=k(e)))return 0;if(e<0)throw new a("number",">= 0",e);return e}function drop(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),e=toIntegerOrInfinity(e),(async function*(){var r,n;if(null!=t&&null!=(r=t.signal)&&r.aborted)throw new l;for await(let r of this){if(null!=t&&null!=(n=t.signal)&&n.aborted)throw new l;e--<=0&&(yield r)}}).call(this)}function take(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),e=toIntegerOrInfinity(e),(async function*(){var r,n;if(null!=t&&null!=(r=t.signal)&&r.aborted)throw new l;for await(let r of this){if(null!=t&&null!=(n=t.signal)&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}).call(this)}e.exports.streamReturningOperators={asIndexedPairs:v(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop,filter,flatMap,map,take,compose},e.exports.promiseReturningOperators={every,forEach,reduce,toArray,some,find}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/passthrough.js"(e,t,r){let{ObjectSetPrototypeOf:n}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js");e.exports=PassThrough;let i=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/transform.js");function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}n(PassThrough.prototype,i.prototype),n(PassThrough,i),PassThrough.prototype._transform=function(e,t,r){r(null,e)}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/pipeline.js"(e,t,r){"use strict";let n,i,s,o=r("./node_modules/process/index.js"),{ArrayIsArray:a,Promise:l,SymbolAsyncIterator:d,SymbolDispose:u}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),c=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{once:h}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js"),f=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js"),p=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js"),{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:y,ERR_MISSING_ARGS:w,ERR_STREAM_DESTROYED:v,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:x}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{validateFunction:j,validateAbortSignal:k}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/validators.js"),{isIterable:T,isReadable:R,isReadableNodeStream:A,isNodeStream:O,isTransformStream:C,isWebStream:M,isReadableStream:L,isReadableFinished:D}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"),I=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1;function destroyer(e,t,r){let n=!1;return e.on("close",()=>{n=!0}),{destroy:t=>{n||(n=!0,f.destroyer(e,t||new v("pipe")))},cleanup:c(e,{readable:t,writable:r},e=>{n=!e})}}function popCallback(e){return j(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function makeAsyncIterable(e){if(T(e))return e;if(A(e))return fromReadable(e);throw new g("val",["Readable","Iterable","AsyncIterable"],e)}async function*fromReadable(e){i||(i=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/readable.js")),yield*i.prototype[d].call(e)}async function pumpToNode(e,t,r,{end:n}){let i,s=null,resume=e=>{if(e&&(i=e),s){let e=s;s=null,e()}},wait=()=>new l((e,t)=>{i?t(i):s=()=>{i?t(i):e()}});t.on("drain",resume);let o=c(t,{readable:!1},resume);try{for await(let r of(t.writableNeedDrain&&await wait(),e))t.write(r)||await wait();n&&(t.end(),await wait()),r()}catch(e){r(i!==e?b(i,e):e)}finally{o(),t.off("drain",resume)}}async function pumpToWeb(e,t,r,{end:n}){C(t)&&(t=t.writable);let i=t.getWriter();try{for await(let t of e)await i.ready,i.write(t).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function pipeline(...e){return pipelineImpl(e,h(popCallback(e)))}function pipelineImpl(e,t,i){let l,d,c,h;if(1===e.length&&a(e[0])&&(e=e[0]),e.length<2)throw new w("streams");let f=new I,b=f.signal,v=null==i?void 0:i.signal,S=[];function abort(){finishImpl(new x)}k(v,"options.signal"),s=s||r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js").addAbortListener,v&&(l=s(v,abort));let j=[],D=0;function finish(e){finishImpl(e,0==--D)}function finishImpl(e,r){var n;if(e&&(!d||"ERR_STREAM_PREMATURE_CLOSE"===d.code)&&(d=e),d||r){for(;j.length;)j.shift()(d);null==(n=l)||n[u](),f.abort(),r&&(d||S.forEach(e=>e()),o.nextTick(t,d,c))}}for(let t=0;t<e.length;t++){let s=e[t],a=t<e.length-1,l=t>0,d=a||(null==i?void 0:i.end)!==!1,u=t===e.length-1;if(O(s)){if(d){let{destroy:e,cleanup:t}=destroyer(s,a,l);j.push(e),R(s)&&u&&S.push(t)}function onError(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&finish(e)}s.on("error",onError),R(s)&&u&&S.push(()=>{s.removeListener("error",onError)})}if(0===t)if("function"==typeof s){if(!T(h=s({signal:b})))throw new y("Iterable, AsyncIterable or Stream","source",h)}else h=T(s)||A(s)||C(s)?s:p.from(s);else if("function"==typeof s){var P,W;if(h=s(h=C(h)?makeAsyncIterable(null==(P=h)?void 0:P.readable):makeAsyncIterable(h),{signal:b}),a){if(!T(h,!0))throw new y("AsyncIterable",`transform[${t-1}]`,h)}else{n||(n=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/passthrough.js"));let e=new n({objectMode:!0}),t=null==(W=h)?void 0:W.then;if("function"==typeof t)D++,t.call(h,t=>{c=t,null!=t&&e.write(t),d&&e.end(),o.nextTick(finish)},t=>{e.destroy(t),o.nextTick(finish,t)});else if(T(h,!0))D++,pumpToNode(h,e,finish,{end:d});else if(L(h)||C(h)){let t=h.readable||h;D++,pumpToNode(t,e,finish,{end:d})}else throw new y("AsyncIterable or Promise","destination",h);let{destroy:i,cleanup:s}=destroyer(h=e,!1,!0);j.push(i),u&&S.push(s)}}else if(O(s)){if(A(h)){D+=2;let e=pipe(h,s,finish,{end:d});R(s)&&u&&S.push(e)}else if(C(h)||L(h)){let e=h.readable||h;D++,pumpToNode(e,s,finish,{end:d})}else if(T(h))D++,pumpToNode(h,s,finish,{end:d});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=s}else if(M(s)){if(A(h))D++,pumpToWeb(makeAsyncIterable(h),s,finish,{end:d});else if(L(h)||T(h))D++,pumpToWeb(h,s,finish,{end:d});else if(C(h))D++,pumpToWeb(h.readable,s,finish,{end:d});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=s}else h=p.from(s)}return(null!=b&&b.aborted||null!=v&&v.aborted)&&o.nextTick(abort),h}function pipe(e,t,r,{end:n}){let i=!1;if(t.on("close",()=>{i||r(new S)}),e.pipe(t,{end:!1}),n){function endFn(){i=!0,t.end()}D(e)?o.nextTick(endFn):e.once("end",endFn)}else r();return c(e,{readable:!0,writable:!1},t=>{let n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)}),c(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl,pipeline}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/readable.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{ArrayPrototypeIndexOf:s,NumberIsInteger:o,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:d,ObjectKeys:u,ObjectSetPrototypeOf:c,Promise:h,SafeSet:f,SymbolAsyncDispose:p,SymbolAsyncIterator:b,Symbol:g}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Readable,Readable.ReadableState=ReadableState;let{EventEmitter:y}=r("events"),{Stream:w,prependListener:v}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/legacy.js"),{Buffer:S}=r("buffer"),{addAbortSignal:x}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),j=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),k=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js").debuglog("stream",e=>{k=e}),T=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/buffer_list.js"),R=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js"),{getHighWaterMark:A,getDefaultHighWaterMark:O}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js"),{aggregateTwoErrors:C,codes:{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:D,ERR_STREAM_PUSH_AFTER_EOF:I,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:P},AbortError:W}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{validateObject:N}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/validators.js"),F=g("kPaused"),{StringDecoder:B}=r("./node_modules/string_decoder/lib/string_decoder.js"),$=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from.js");c(Readable.prototype,w.prototype),c(Readable,w);let nop=()=>{},{errorOrDestroy:z}=R;function makeBitMapDescriptor(e){return{enumerable:!1,get(){return(this.state&e)!=0},set(t){t?this.state|=e:this.state&=~e}}}function ReadableState(e,t,n){"boolean"!=typeof n&&(n=t instanceof r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js")),this.state=6192,e&&e.objectMode&&(this.state|=1),n&&e&&e.readableObjectMode&&(this.state|=1),this.highWaterMark=e?A(this,e,"readableHighWaterMark",n):O(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this[F]=null,e&&!1===e.emitClose&&(this.state&=-2049),e&&!1===e.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new B(e.encoding),this.encoding=e.encoding)}function Readable(e){if(!(this instanceof Readable))return new Readable(e);let t=this instanceof r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js");this._readableState=new ReadableState(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&x(e.signal,this)),w.call(this,e),R.construct(this,()=>{this._readableState.needReadable&&maybeReadMore(this,this._readableState)})}function readableAddChunk(e,t,r,n){let i;k("readableAddChunk",t);let s=e._readableState;if((1&s.state)==0&&("string"==typeof t?(r=r||s.defaultEncoding,s.encoding!==r&&(n&&s.encoding?t=S.from(t,r).toString(s.encoding):(t=S.from(t,r),r=""))):t instanceof S?r="":w._isUint8Array(t)?(t=w._uint8ArrayToBuffer(t),r=""):null!=t&&(i=new M("chunk",["string","Buffer","Uint8Array"],t))),i)z(e,i);else if(null===t)s.state&=-9,onEofChunk(e,s);else if((1&s.state)!=0||t&&t.length>0)if(n)if((4&s.state)!=0)z(e,new P);else{if(s.destroyed||s.errored)return!1;addChunk(e,s,t,!0)}else if(s.ended)z(e,new I);else{if(s.destroyed||s.errored)return!1;s.state&=-9,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?addChunk(e,s,t,!1):maybeReadMore(e,s)):addChunk(e,s,t,!1)}else n||(s.state&=-9,maybeReadMore(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function addChunk(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?((65536&t.state)!=0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),(64&t.state)!=0&&emitReadable(e)),maybeReadMore(e,t)}function computeNewHighWaterMark(e){if(e>0x40000000)throw new D("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}function howMuchToRead(e,t){return e<=0||0===t.length&&t.ended?0:(1&t.state)!=0?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function onEofChunk(e,t){if(k("onEofChunk"),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?emitReadable(e):(t.needReadable=!1,t.emittedReadable=!0,emitReadable_(e))}}function emitReadable(e){let t=e._readableState;k("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(k("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(emitReadable_,e))}function emitReadable_(e){let t=e._readableState;k("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,flow(e)}function maybeReadMore(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,i.nextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){let r=t.length;if(k("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function pipeOnDrain(e,t){return function(){let r=e._readableState;r.awaitDrainWriters===t?(k("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(k("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||0===r.awaitDrainWriters.size)&&e.listenerCount("data")&&e.resume()}}function updateReadableListening(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[F]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function nReadingNextTick(e){k("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(resume_,e,t))}function resume_(e,t){k("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){let t=e._readableState;for(k("flow",t.flowing);t.flowing&&null!==e.read(););}function streamToAsyncIterator(e,t){"function"!=typeof e.read&&(e=Readable.wrap(e,{objectMode:!0}));let r=createAsyncIterator(e,t);return r.stream=e,r}async function*createAsyncIterator(e,t){let r,n=nop;function next(t){this===e?(n(),n=nop):n=t}e.on("readable",next);let i=j(e,{writable:!1},e=>{r=e?C(r,e):null,n(),n=nop});try{for(;;){let t=e.destroyed?null:e.read();if(null!==t)yield t;else if(r)throw r;else{if(null===r)return;await new h(next)}}}catch(e){throw r=C(r,e)}finally{(r||(null==t?void 0:t.destroyOnReturn)!==!1)&&(void 0===r||e._readableState.autoDestroy)?R.destroyer(e,null):(e.off("readable",next),i())}}function fromList(e,t){let r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function endReadable(e){let t=e._readableState;k("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){if(k("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length){if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)i.nextTick(endWritableNT,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}}function endWritableNT(e){!e.writable||e.writableEnded||e.destroyed||e.end()}function lazyWebStreams(){return void 0===n&&(n={}),n}d(ReadableState.prototype,{objectMode:makeBitMapDescriptor(1),ended:makeBitMapDescriptor(2),endEmitted:makeBitMapDescriptor(4),reading:makeBitMapDescriptor(8),constructed:makeBitMapDescriptor(16),sync:makeBitMapDescriptor(32),needReadable:makeBitMapDescriptor(64),emittedReadable:makeBitMapDescriptor(128),readableListening:makeBitMapDescriptor(256),resumeScheduled:makeBitMapDescriptor(512),errorEmitted:makeBitMapDescriptor(1024),emitClose:makeBitMapDescriptor(2048),autoDestroy:makeBitMapDescriptor(4096),destroyed:makeBitMapDescriptor(8192),closed:makeBitMapDescriptor(16384),closeEmitted:makeBitMapDescriptor(32768),multiAwaitDrain:makeBitMapDescriptor(65536),readingMore:makeBitMapDescriptor(131072),dataEmitted:makeBitMapDescriptor(262144)}),Readable.prototype.destroy=R.destroy,Readable.prototype._undestroy=R.undestroy,Readable.prototype._destroy=function(e,t){t(e)},Readable.prototype[y.captureRejectionSymbol]=function(e){this.destroy(e)},Readable.prototype[p]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new W,this.destroy(e)),new h((t,r)=>j(this,n=>n&&n!==e?r(n):t(null)))},Readable.prototype.push=function(e,t){return readableAddChunk(this,e,t,!1)},Readable.prototype.unshift=function(e,t){return readableAddChunk(this,e,t,!0)},Readable.prototype.isPaused=function(){let e=this._readableState;return!0===e[F]||!1===e.flowing},Readable.prototype.setEncoding=function(e){let t=new B(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this},Readable.prototype.read=function(e){let t;k("read",e),void 0===e?e=NaN:o(e)||(e=l(e,10));let r=this._readableState,n=e;if(e>r.highWaterMark&&(r.highWaterMark=computeNewHighWaterMark(e)),0!==e&&(r.state&=-129),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return k("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,r))&&r.ended)return 0===r.length&&endReadable(this),null;let i=(64&r.state)!=0;if(k("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&k("length less than watermark",i=!0),r.ended||r.reading||r.destroyed||r.errored||!r.constructed)k("reading, ended or constructing",i=!1);else if(i){k("do read"),r.state|=40,0===r.length&&(r.state|=64);try{this._read(r.highWaterMark)}catch(e){z(this,e)}r.state&=-33,r.reading||(e=howMuchToRead(n,r))}return null===(t=e>0?fromList(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.multiAwaitDrain?r.awaitDrainWriters.clear():r.awaitDrainWriters=null),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&endReadable(this)),null===t||r.errorEmitted||r.closeEmitted||(r.dataEmitted=!0,this.emit("data",t)),t},Readable.prototype._read=function(e){throw new L("_read()")},Readable.prototype.pipe=function(e,t){let r,n=this,s=this._readableState;1!==s.pipes.length||s.multiAwaitDrain||(s.multiAwaitDrain=!0,s.awaitDrainWriters=new f(s.awaitDrainWriters?[s.awaitDrainWriters]:[])),s.pipes.push(e),k("pipe count=%d opts=%j",s.pipes.length,t);let o=t&&!1===t.end||e===i.stdout||e===i.stderr?unpipe:onend;function onunpipe(e,t){k("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,cleanup())}function onend(){k("onend"),e.end()}s.endEmitted?i.nextTick(o):n.once("end",o),e.on("unpipe",onunpipe);let a=!1;function cleanup(){k("cleanup"),e.removeListener("close",onclose),e.removeListener("finish",onfinish),r&&e.removeListener("drain",r),e.removeListener("error",onerror),e.removeListener("unpipe",onunpipe),n.removeListener("end",onend),n.removeListener("end",unpipe),n.removeListener("data",ondata),a=!0,r&&s.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&r()}function pause(){a||(1===s.pipes.length&&s.pipes[0]===e?(k("false write response, pause",0),s.awaitDrainWriters=e,s.multiAwaitDrain=!1):s.pipes.length>1&&s.pipes.includes(e)&&(k("false write response, pause",s.awaitDrainWriters.size),s.awaitDrainWriters.add(e)),n.pause()),r||(r=pipeOnDrain(n,e),e.on("drain",r))}function ondata(t){k("ondata");let r=e.write(t);k("dest.write",r),!1===r&&pause()}function onerror(t){if(k("onerror",t),unpipe(),e.removeListener("error",onerror),0===e.listenerCount("error")){let r=e._writableState||e._readableState;r&&!r.errorEmitted?z(e,t):e.emit("error",t)}}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){k("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){k("unpipe"),n.unpipe(e)}return n.on("data",ondata),v(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",n),!0===e.writableNeedDrain?pause():s.flowing||(k("pipe resume"),n.resume()),e},Readable.prototype.unpipe=function(e){let t=this._readableState;if(0===t.pipes.length)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}let r=s(t.pipes,e);return -1===r||(t.pipes.splice(r,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},Readable.prototype.on=function(e,t){let r=w.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,k("on readable",n.length,n.reading),n.length?emitReadable(this):n.reading||i.nextTick(nReadingNextTick,this)),r},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(e,t){let r=w.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(updateReadableListening,this),r},Readable.prototype.off=Readable.prototype.removeListener,Readable.prototype.removeAllListeners=function(e){let t=w.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(updateReadableListening,this),t},Readable.prototype.resume=function(){let e=this._readableState;return e.flowing||(k("resume"),e.flowing=!e.readableListening,resume(this,e)),e[F]=!1,this},Readable.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[F]=!0,this},Readable.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",e=>{z(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=u(e);for(let t=1;t<r.length;t++){let n=r[t];void 0===this[n]&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},Readable.prototype[b]=function(){return streamToAsyncIterator(this)},Readable.prototype.iterator=function(e){return void 0!==e&&N(e,"options"),streamToAsyncIterator(this,e)},d(Readable.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&!1!==e.readable&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._readableState.readable&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),d(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[F]},set(e){this[F]=!!e}}}),Readable._fromList=fromList,Readable.from=function(e,t){return $(Readable,e,t)},Readable.fromWeb=function(e,t){return lazyWebStreams().newStreamReadableFromReadableStream(e,t)},Readable.toWeb=function(e,t){return lazyWebStreams().newReadableStreamFromStreamReadable(e,t)},Readable.wrap=function(e,t){var r,n;return new Readable({objectMode:null==(r=null!=(n=e.readableObjectMode)?n:e.objectMode)||r,...t,destroy(t,r){R.destroyer(e,t),r(t)}}).wrap(e)}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js"(e,t,r){let{MathFloor:n,NumberIsInteger:i}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{validateInteger:s}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/validators.js"),{ERR_INVALID_ARG_VALUE:o}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js").codes,a=16384,l=16;function highWaterMarkFrom(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function getDefaultHighWaterMark(e){return e?l:a}e.exports={getHighWaterMark:function(e,t,r,s){let a=highWaterMarkFrom(t,s,r);if(null!=a){if(!i(a)||a<0)throw new o(s?`options.${r}`:"options.highWaterMark",a);return n(a)}return getDefaultHighWaterMark(e.objectMode)},getDefaultHighWaterMark,setDefaultHighWaterMark:function(e,t){s(t,"value",0),e?l=t:a=t}}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/transform.js"(e,t,r){let{ObjectSetPrototypeOf:n,Symbol:i}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Transform;let{ERR_METHOD_NOT_IMPLEMENTED:s}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js").codes,o=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js"),{getHighWaterMark:a}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js");n(Transform.prototype,o.prototype),n(Transform,o);let l=i("kCallback");function Transform(e){if(!(this instanceof Transform))return new Transform(e);let t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),o.call(this,e),this._readableState.sync=!1,this[l]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function final(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{t?e?e(t):this.destroy(t):(null!=r&&this.push(r),this.push(null),e&&e())})}function prefinish(){this._final!==final&&final.call(this)}Transform.prototype._final=final,Transform.prototype._transform=function(e,t,r){throw new s("_transform()")},Transform.prototype._write=function(e,t,r){let n=this._readableState,i=this._writableState,s=n.length;this._transform(e,t,(e,t)=>{e?r(e):(null!=t&&this.push(t),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)})},Transform.prototype._read=function(){if(this[l]){let e=this[l];this[l]=null,e()}}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"(e,t,r){let{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),d=s("nodejs.stream.writable"),u=s("nodejs.stream.disturbed");function isReadableNodeStream(e,t=!1){var r;return!!(e&&"function"==typeof e.pipe&&"function"==typeof e.on&&(!t||"function"==typeof e.pause&&"function"==typeof e.resume)&&(!e._writableState||(null==(r=e._readableState)?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function isWritableNodeStream(e){var t;return!!(e&&"function"==typeof e.write&&"function"==typeof e.on&&(!e._readableState||(null==(t=e._writableState)?void 0:t.writable)!==!1))}function isDuplexNodeStream(e){return!!(e&&"function"==typeof e.pipe&&e._readableState&&"function"==typeof e.on&&"function"==typeof e.write)}function isNodeStream(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function isReadableStream(e){return!!(e&&!isNodeStream(e)&&"function"==typeof e.pipeThrough&&"function"==typeof e.getReader&&"function"==typeof e.cancel)}function isWritableStream(e){return!!(e&&!isNodeStream(e)&&"function"==typeof e.getWriter&&"function"==typeof e.abort)}function isTransformStream(e){return!!(e&&!isNodeStream(e)&&"object"==typeof e.readable&&"object"==typeof e.writable)}function isWebStream(e){return isReadableStream(e)||isWritableStream(e)||isTransformStream(e)}function isIterable(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])}function isDestroyed(e){if(!isNodeStream(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[o]||null!=n&&n.destroyed)}function isWritableEnded(e){if(!isWritableNodeStream(e))return null;if(!0===e.writableEnded)return!0;let t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function isWritableFinished(e,t){if(!isWritableNodeStream(e))return null;if(!0===e.writableFinished)return!0;let r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))}function isReadableEnded(e){if(!isReadableNodeStream(e))return null;if(!0===e.readableEnded)return!0;let t=e._readableState;return!!t&&!t.errored&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function isReadableFinished(e,t){if(!isReadableNodeStream(e))return null;let r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function isReadable(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!isDestroyed(e)&&isReadableNodeStream(e)&&e.readable&&!isReadableFinished(e)}function isWritable(e){return e&&null!=e[d]?e[d]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!isDestroyed(e)&&isWritableNodeStream(e)&&e.writable&&!isWritableEnded(e)}function isFinished(e,t){return isNodeStream(e)?!!isDestroyed(e)||!((null==t?void 0:t.readable)!==!1&&isReadable(e)||(null==t?void 0:t.writable)!==!1&&isWritable(e)):null}function isWritableErrored(e){var t,r;return isNodeStream(e)?e.writableErrored?e.writableErrored:null!=(t=null==(r=e._writableState)?void 0:r.errored)?t:null:null}function isReadableErrored(e){var t,r;return isNodeStream(e)?e.readableErrored?e.readableErrored:null!=(t=null==(r=e._readableState)?void 0:r.errored)?t:null:null}function isClosed(e){if(!isNodeStream(e))return null;if("boolean"==typeof e.closed)return e.closed;let t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&isOutgoingMessage(e)?e._closed:null}function isOutgoingMessage(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function isServerResponse(e){return"boolean"==typeof e._sent100&&isOutgoingMessage(e)}function isServerRequest(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&(null==(t=e.req)?void 0:t.upgradeOrConnect)===void 0}function willEmitClose(e){if(!isNodeStream(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!n&&isServerResponse(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)}e.exports={isDestroyed,kIsDestroyed:o,isDisturbed:function(e){var t;return!!(e&&(null!=(t=e[u])?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,r,n,i,s,o,l,d,u,c;return!!(e&&(null!=(t=null!=(r=null!=(n=null!=(i=null!=(s=null!=(o=e[a])?o:e.readableErrored)?s:e.writableErrored)?i:null==(l=e._readableState)?void 0:l.errorEmitted)?n:null==(d=e._writableState)?void 0:d.errorEmitted)?r:null==(u=e._readableState)?void 0:u.errored)?t:null==(c=e._writableState)?void 0:c.errored))},kIsErrored:a,isReadable,kIsReadable:l,kIsClosedPromise:s("nodejs.webstream.isClosedPromise"),kControllerErrorFunction:s("nodejs.webstream.controllerErrorFunction"),kIsWritable:d,isClosed,isDuplexNodeStream,isFinished,isIterable,isReadableNodeStream,isReadableStream,isReadableEnded,isReadableFinished,isReadableErrored,isNodeStream,isWebStream,isWritable,isWritableNodeStream,isWritableStream,isWritableEnded,isWritableFinished,isWritableErrored,isServerRequest,isServerResponse,willEmitClose,isTransformStream}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/writable.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{ArrayPrototypeSlice:s,Error:o,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:d,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:c,Symbol:h,SymbolHasInstance:f}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Writable,Writable.WritableState=WritableState;let{EventEmitter:p}=r("events"),b=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/legacy.js").Stream,{Buffer:g}=r("buffer"),y=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js"),{addAbortSignal:w}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),{getHighWaterMark:v,getDefaultHighWaterMark:S}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js"),{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:j,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:R,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:O,ERR_STREAM_WRITE_AFTER_END:C,ERR_UNKNOWN_ENCODING:M}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js").codes,{errorOrDestroy:L}=y;function nop(){}u(Writable.prototype,b.prototype),u(Writable,b);let D=h("kOnFinished");function WritableState(e,t,n){"boolean"!=typeof n&&(n=t instanceof r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js")),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?v(this,e,"writableHighWaterMark",n):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(e&&!1===e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=onwrite.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,resetBuffer(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function resetBuffer(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function Writable(e){let t=this instanceof r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js");if(!t&&!a(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&w(e.signal,this)),b.call(this,e),y.construct(this,()=>{let e=this._writableState;e.writing||clearBuffer(this,e),finishMaybe(this,e)})}function _write(e,t,r,n){let s,o=e._writableState;if("function"==typeof r)n=r,r=o.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new M(r)}else r=o.defaultEncoding;"function"!=typeof n&&(n=nop)}if(null===t)throw new O;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=g.from(t,r),r="buffer");else if(t instanceof g)r="buffer";else if(b._isUint8Array(t))t=b._uint8ArrayToBuffer(t),r="buffer";else throw new x("chunk",["string","Buffer","Uint8Array"],t);return(o.ending?s=new C:o.destroyed&&(s=new R("write")),s)?(i.nextTick(n,s),L(e,s,!0),s):(o.pendingcb++,writeOrBuffer(e,o,t,r,n))}function writeOrBuffer(e,t,r,n,i){let s=t.objectMode?1:r.length;t.length+=s;let o=t.length<t.highWaterMark;return o||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==nop&&(t.allNoop=!1)):(t.writelen=s,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1),o&&!t.errored&&!t.destroyed}function doWrite(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new R("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function onwriteError(e,t,r,n){--t.pendingcb,n(r),errorBuffer(t),L(e,r)}function onwrite(e,t){let r=e._writableState,n=r.sync,s=r.writecb;"function"!=typeof s?L(e,new k):(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),n?i.nextTick(onwriteError,e,r,t,s):onwriteError(e,r,t,s)):(r.buffered.length>r.bufferedIndex&&clearBuffer(e,r),n?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:e,state:r},i.nextTick(afterWriteTick,r.afterWriteTickInfo)):afterWrite(e,r,1,s)))}function afterWriteTick({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,afterWrite(e,t,r,n)}function afterWrite(e,t,r,n){for(t.ending||e.destroyed||0!==t.length||!t.needDrain||(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&errorBuffer(t),finishMaybe(e,t)}function errorBuffer(e){var t,r;if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){let{chunk:n,callback:i}=e.buffered[r],s=e.objectMode?1:n.length;e.length-=s,i(null!=(t=e.errored)?t:new R("write"))}let n=e[D].splice(0);for(let t=0;t<n.length;t++)n[t](null!=(r=e.errored)?r:new R("end"));resetBuffer(e)}function clearBuffer(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:r,bufferedIndex:n,objectMode:i}=t,o=r.length-n;if(!o)return;let a=n;if(t.bufferProcessing=!0,o>1&&e._writev){t.pendingcb-=o-1;let n=t.allNoop?nop:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},i=t.allNoop&&0===a?r:s(r,a);i.allBuffers=t.allBuffers,doWrite(e,t,!0,t.length,i,"",n),resetBuffer(t)}else{do{let{chunk:n,encoding:s,callback:o}=r[a];r[a++]=null,doWrite(e,t,!1,i?1:n.length,n,s,o)}while(a<r.length&&!t.writing);a===r.length?resetBuffer(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function needFinish(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function callFinal(e,t){let r=!1;function onFinish(n){if(r)return void L(e,null!=n?n:k());if(r=!0,t.pendingcb--,n){let r=t[D].splice(0);for(let e=0;e<r.length;e++)r[e](n);L(e,n,t.sync)}else needFinish(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,i.nextTick(finish,e,t))}t.sync=!0,t.pendingcb++;try{e._final(onFinish)}catch(e){onFinish(e)}t.sync=!1}function prefinish(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,callFinal(e,t)))}function finishMaybe(e,t,r){needFinish(t)&&(prefinish(e,t),0===t.pendingcb&&(r?(t.pendingcb++,i.nextTick((e,t)=>{needFinish(t)?finish(e,t):t.pendingcb--},e,t)):needFinish(t)&&(t.pendingcb++,finish(e,t))))}function finish(e,t){t.pendingcb--,t.finished=!0;let r=t[D].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}WritableState.prototype.getBuffer=function(){return s(this.buffered,this.bufferedIndex)},l(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),l(Writable,f,{__proto__:null,value:function(e){return!!a(this,e)||this===Writable&&e&&e._writableState instanceof WritableState}}),Writable.prototype.pipe=function(){L(this,new T)},Writable.prototype.write=function(e,t,r){return!0===_write(this,e,t,r)},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||clearBuffer(this,e))},Writable.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=c(e)),!g.isEncoding(e))throw new M(e);return this._writableState.defaultEncoding=e,this},Writable.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new j("_write()")},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,r){let n,s=this._writableState;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){let r=_write(this,e,t);r instanceof o&&(n=r)}return s.corked&&(s.corked=1,this.uncork()),n||(s.errored||s.ending?s.finished?n=new A("end"):s.destroyed&&(n=new R("end")):(s.ending=!0,finishMaybe(this,s,!0),s.ended=!0)),"function"==typeof r&&(n||s.finished?i.nextTick(r,n):s[D].push(r)),this},d(Writable.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&!1!==e.writable&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._writableState.writable&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});let I=y.destroy;function lazyWebStreams(){return void 0===n&&(n={}),n}Writable.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[D].length)&&i.nextTick(errorBuffer,r),I.call(this,e,t),this},Writable.prototype._undestroy=y.undestroy,Writable.prototype._destroy=function(e,t){t(e)},Writable.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},Writable.fromWeb=function(e,t){return lazyWebStreams().newStreamWritableFromWritableStream(e,t)},Writable.toWeb=function(e){return lazyWebStreams().newWritableStreamFromStreamWritable(e)}},"./node_modules/archiver/node_modules/readable-stream/lib/internal/validators.js"(e,t,r){let{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:d,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:g}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:S,ERR_OUT_OF_RANGE:x,ERR_UNKNOWN_SIGNAL:j}}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{normalizeEncoding:k}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js"),{isAsyncFunction:T,isArrayBufferView:R}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js").types,A={};function isInt32(e){return e===(0|e)}function isUint32(e){return e===e>>>0}let O=/^[0-7]+$/;function parseFileMode(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===f(O,e))throw new S(t,e,"must be a 32-bit unsigned integer or an octal string");e=c(e,8)}return L(e,t),e}let C=y((e,t,r=u,n=d)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);if(e<r||e>n)throw new x(t,`>= ${r} && <= ${n}`,e)}),M=y((e,t,r=-0x80000000,n=0x7fffffff)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);if(e<r||e>n)throw new x(t,`>= ${r} && <= ${n}`,e)}),L=y((e,t,r=!1)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);let n=+!!r;if(e<n||e>0xffffffff)throw new x(t,`>= ${n} && <= 4294967295`,e)});function validateString(e,t){if("string"!=typeof e)throw new v(t,"string",e)}function validateNumber(e,t,r,n){if("number"!=typeof e)throw new v(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&l(e))throw new x(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)}let D=y((e,t,r)=>{if(!i(r,e))throw new S(t,e,"must be one of: "+s(o(r,e=>"string"==typeof e?`'${e}'`:p(e)),", "))});function validateBoolean(e,t){if("boolean"!=typeof e)throw new v(t,"boolean",e)}function getOwnPropertyValueOrDefault(e,t,r){return null!=e&&h(e,t)?e[t]:r}let I=y((e,t,r=null)=>{let i=getOwnPropertyValueOrDefault(r,"allowArray",!1),s=getOwnPropertyValueOrDefault(r,"allowFunction",!1);if(!getOwnPropertyValueOrDefault(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!s||"function"!=typeof e))throw new v(t,"Object",e)}),P=y((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new v(t,"a dictionary",e)}),W=y((e,t,r=0)=>{if(!n(e))throw new v(t,"Array",e);if(e.length<r)throw new S(t,e,`must be longer than ${r}`)});function validateStringArray(e,t){W(e,t);for(let r=0;r<e.length;r++)validateString(e[r],`${t}[${r}]`)}function validateBooleanArray(e,t){W(e,t);for(let r=0;r<e.length;r++)validateBoolean(e[r],`${t}[${r}]`)}function validateAbortSignalArray(e,t){W(e,t);for(let r=0;r<e.length;r++){let n=e[r],i=`${t}[${r}]`;if(null==n)throw new v(i,"AbortSignal",n);F(n,i)}}function validateSignalName(e,t="signal"){if(validateString(e,t),void 0===A[e]){if(void 0!==A[b(e)])throw new j(e+" (signals must use all capital letters)");throw new j(e)}}let N=y((e,t="buffer")=>{if(!R(e))throw new v(t,["Buffer","TypedArray","DataView"],e)});function validateEncoding(e,t){let r=k(t),n=e.length;if("hex"===r&&n%2!=0)throw new S("encoding",t,`is invalid for data of length ${n}`)}function validatePort(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===g(e).length||+e!=e>>>0||e>65535||0===e&&!r)throw new w(t,e,r);return 0|e}let F=y((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new v(t,"AbortSignal",e)}),B=y((e,t)=>{if("function"!=typeof e)throw new v(t,"Function",e)}),$=y((e,t)=>{if("function"!=typeof e||T(e))throw new v(t,"Function",e)}),z=y((e,t)=>{if(void 0!==e)throw new v(t,"undefined",e)}),U=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(e,t){if(void 0===e||!f(U,e))throw new S(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32,isUint32,parseFileMode,validateArray:W,validateStringArray,validateBooleanArray,validateAbortSignalArray,validateBoolean,validateBuffer:N,validateDictionary:P,validateEncoding,validateFunction:B,validateInt32:M,validateInteger:C,validateNumber,validateObject:I,validateOneOf:D,validatePlainFunction:$,validatePort,validateSignalName,validateString,validateUint32:L,validateUndefined:z,validateUnion:function(e,t,r){if(!i(r,e))throw new v(t,`('${s(r,"|")}')`,e)},validateAbortSignal:F,validateLinkHeaderValue:function(e){if("string"==typeof e)return validateLinkHeaderFormat(e,"hints"),e;if(n(e)){let t=e.length,r="";if(0===t)return r;for(let n=0;n<t;n++){let i=e[n];validateLinkHeaderFormat(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new S("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},"./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"(e,t,r){let{format:n,inspect:i}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util/inspect.js"),{AggregateError:s}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],d=/^([A-Z][a-z0-9]*)+$/,u={};function assert(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function addNumericalSeparator(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function getMessage(e,t,r){if("function"==typeof t)return assert(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return(assert(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length)?t:n(t,...r)}function E(e,t,r){r||(r=Error);class n extends r{constructor(...r){super(getMessage(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[a]=!0,u[e]=n}function hideStackFrames(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}function aggregateTwoErrors(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new o([t,e],t.message);return r.code=t.code,r}return e||t}E("ERR_ASSERTION","%s",Error),E("ERR_INVALID_ARG_TYPE",(e,t,r)=>{assert("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";let s=[],o=[],a=[];for(let e of t)assert("string"==typeof e,"All expected entries have to be of type string"),l.includes(e)?s.push(e.toLowerCase()):d.test(e)?o.push(e):(assert("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(o.length>0){let e=s.indexOf("object");-1!==e&&(s.splice(s,e,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{let e=s.pop();n+=`one of type ${s.join(", ")}, or ${e}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();n+=`an instance of ${o.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var u;if(null!=(u=r.constructor)&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{let e=i(r,{depth:-1});n+=`. Received ${e}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n},TypeError),E("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");let s=e.includes(".")?"property":"argument";return`The ${s} '${e}' ${r}. Received ${n}`},TypeError),E("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;let i=null!=r&&null!=(n=r.constructor)&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${i}.`},TypeError),E("ERR_MISSING_ARGS",(...e)=>{let t;assert(e.length>0,"At least one arg needs to be specified");let r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`},TypeError),E("ERR_OUT_OF_RANGE",(e,t,r)=>{let n;if(assert(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>0x100000000)n=addNumericalSeparator(String(r));else if("bigint"==typeof r){n=String(r);let e=BigInt(2)**BigInt(32);(r>e||r<-e)&&(n=addNumericalSeparator(n)),n+="n"}else n=i(r);return`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError),E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),E("ERR_STREAM_WRITE_AFTER_END","write after end",Error),E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:class extends Error{constructor(e="The operation was aborted",t){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}},aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames,codes:u}},"./node_modules/archiver/node_modules/readable-stream/lib/ours/index.js"(e,t,r){let n=r("stream");if(n&&"disable"===process.env.READABLE_STREAM){let t=n.promises;e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>t}),e.exports.Stream=n.Stream}else{let t=r("./node_modules/archiver/node_modules/readable-stream/lib/stream.js"),n=r("./node_modules/archiver/node_modules/readable-stream/lib/stream/promises.js"),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get:()=>n}),e.exports.Stream=t.Stream}e.exports.default=e.exports},"./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"(e){e.exports={AggregateError:class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack}
|
|
3
3
|
`;super(t),this.name="AggregateError",this.errors=e}},ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},"./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js"(e,t,r){let n=r("buffer"),{format:i,inspect:s}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util/inspect.js"),{codes:{ERR_INVALID_ARG_TYPE:o}}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:d}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),u=globalThis.AbortSignal||r("./node_modules/abort-controller/dist/abort-controller.mjs").h8,c=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,h=Object.getPrototypeOf(async function(){}).constructor,f=globalThis.Blob||n.Blob,validateAbortSignal=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new o(t,"AbortSignal",e)};e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}},promisify:e=>new Promise((t,r)=>{e((e,...n)=>e?r(e):t(...n))}),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:e=>e instanceof h,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:void 0!==f?function(e){return e instanceof f}:function(e){return!1},deprecate:(e,t)=>e,addAbortListener:r("events").addAbortListener||function(e,t){let r;if(void 0===e)throw new o("signal","AbortSignal",e);validateAbortSignal(e,"signal");if("function"!=typeof t)throw new o("listener","Function",t);return e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[d](){var e;null==(e=r)||e()}}},AbortSignalAny:u.any||function(e){if(1===e.length)return e[0];let t=new c,abort=()=>t.abort();return e.forEach(e=>{validateAbortSignal(e,"signals"),e.addEventListener("abort",abort,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",abort))},{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},"./node_modules/archiver/node_modules/readable-stream/lib/ours/util/inspect.js"(e){e.exports={format:(e,...t)=>e.replace(/%([sdifj])/g,function(...[e,r]){let n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"!==r||"object"!=typeof n)return n.toString();{let e=n.constructor!==Object?n.constructor.name:"";return`${e} {}`.trim()}}),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;else if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}},"./node_modules/archiver/node_modules/readable-stream/lib/stream.js"(e,t,r){let{Buffer:n}=r("buffer"),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{promisify:{custom:a}}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/util.js"),{streamReturningOperators:l,promiseReturningOperators:d}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/operators.js"),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/errors.js"),c=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/compose.js"),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:f}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js"),{pipeline:p}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{destroyer:b}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js"),g=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),y=r("./node_modules/archiver/node_modules/readable-stream/lib/stream/promises.js"),w=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"),v=e.exports=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/legacy.js").Stream;for(let e of(v.isDestroyed=w.isDestroyed,v.isDisturbed=w.isDisturbed,v.isErrored=w.isErrored,v.isReadable=w.isReadable,v.isWritable=w.isWritable,v.Readable=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/readable.js"),s(l))){let t=l[e];function fn(...e){if(new.target)throw u();return v.Readable.from(o(t,this,e))}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}for(let e of s(d)){let t=d[e];function fn(...e){if(new.target)throw u();return o(t,this,e)}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}v.Writable=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/writable.js"),v.Duplex=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/duplex.js"),v.Transform=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/transform.js"),v.PassThrough=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/passthrough.js"),v.pipeline=p;let{addAbortSignal:S}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js");v.addAbortSignal=S,v.finished=g,v.destroy=b,v.compose=c,v.setDefaultHighWaterMark=h,v.getDefaultHighWaterMark=f,i(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(g,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),v.Stream=v,v._isUint8Array=function(e){return e instanceof Uint8Array},v._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},"./node_modules/archiver/node_modules/readable-stream/lib/stream/promises.js"(e,t,r){let{ArrayPrototypePop:n,Promise:i}=r("./node_modules/archiver/node_modules/readable-stream/lib/ours/primordials.js"),{isIterable:s,isNodeStream:o,isWebStream:a}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/utils.js"),{pipelineImpl:l}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{finished:d}=r("./node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js");r("./node_modules/archiver/node_modules/readable-stream/lib/stream.js"),e.exports={finished:d,pipeline:function(...e){return new i((t,r)=>{let i,d,u=e[e.length-1];if(u&&"object"==typeof u&&!o(u)&&!s(u)&&!a(u)){let t=n(e);i=t.signal,d=t.end}l(e,(e,n)=>{e?r(e):t(n)},{signal:i,end:d})})}}},"./node_modules/b4a/index.js"(e){function toBuffer(e){return Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function toString(e,t,r,n){return toBuffer(e).toString(t,r,n)}function write(e,t,r,n,i){return toBuffer(e).write(t,r,n,i)}function readDoubleBE(e,t){return toBuffer(e).readDoubleBE(t)}function readDoubleLE(e,t){return toBuffer(e).readDoubleLE(t)}function readFloatBE(e,t){return toBuffer(e).readFloatBE(t)}function readFloatLE(e,t){return toBuffer(e).readFloatLE(t)}function readInt32BE(e,t){return toBuffer(e).readInt32BE(t)}function readInt32LE(e,t){return toBuffer(e).readInt32LE(t)}function readUInt32BE(e,t){return toBuffer(e).readUInt32BE(t)}function readUInt32LE(e,t){return toBuffer(e).readUInt32LE(t)}function writeDoubleBE(e,t,r){return toBuffer(e).writeDoubleBE(t,r)}function writeDoubleLE(e,t,r){return toBuffer(e).writeDoubleLE(t,r)}function writeFloatBE(e,t,r){return toBuffer(e).writeFloatBE(t,r)}function writeFloatLE(e,t,r){return toBuffer(e).writeFloatLE(t,r)}function writeInt32BE(e,t,r){return toBuffer(e).writeInt32BE(t,r)}function writeInt32LE(e,t,r){return toBuffer(e).writeInt32LE(t,r)}function writeUInt32BE(e,t,r){return toBuffer(e).writeUInt32BE(t,r)}function writeUInt32LE(e,t,r){return toBuffer(e).writeUInt32LE(t,r)}e.exports={isBuffer:function(e){return Buffer.isBuffer(e)||e instanceof Uint8Array},isEncoding:function(e){return Buffer.isEncoding(e)},alloc:function(e,t,r){return Buffer.alloc(e,t,r)},allocUnsafe:function(e){return Buffer.allocUnsafe(e)},allocUnsafeSlow:function(e){return Buffer.allocUnsafeSlow(e)},byteLength:function(e,t){return Buffer.byteLength(e,t)},compare:function(e,t){return Buffer.compare(e,t)},concat:function(e,t){return Buffer.concat(e,t)},copy:function(e,t,r,n,i){return toBuffer(e).copy(t,r,n,i)},equals:function(e,t){return toBuffer(e).equals(t)},fill:function(e,t,r,n,i){return toBuffer(e).fill(t,r,n,i)},from:function(e,t,r){return Buffer.from(e,t,r)},includes:function(e,t,r,n){return toBuffer(e).includes(t,r,n)},indexOf:function(e,t,r,n){return toBuffer(e).indexOf(t,r,n)},lastIndexOf:function(e,t,r,n){return toBuffer(e).lastIndexOf(t,r,n)},swap16:function(e){return toBuffer(e).swap16()},swap32:function(e){return toBuffer(e).swap32()},swap64:function(e){return toBuffer(e).swap64()},toBuffer,toString,write,readDoubleBE,readDoubleLE,readFloatBE,readFloatLE,readInt32BE,readInt32LE,readUInt32BE,readUInt32LE,writeDoubleBE,writeDoubleLE,writeFloatBE,writeFloatLE,writeInt32BE,writeInt32LE,writeUInt32BE,writeUInt32LE}},"./node_modules/balanced-match/index.js"(e){function balanced(e,t,r){e instanceof RegExp&&(e=maybeMatch(e,r)),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}function range(e,t,r){var n,i,s,o,a,l=r.indexOf(e),d=r.indexOf(t,l+1),u=l;if(l>=0&&d>0){if(e===t)return[l,d];for(n=[],s=r.length;u>=0&&!a;)u==l?(n.push(u),l=r.indexOf(e,u+1)):1==n.length?a=[n.pop(),d]:((i=n.pop())<s&&(s=i,o=d),d=r.indexOf(t,u+1)),u=l<d&&l>=0?l:d;n.length&&(a=[s,o])}return a}e.exports=balanced,balanced.range=range},"./node_modules/brace-expansion/index.js"(e,t,r){var n=r("./node_modules/balanced-match/index.js");e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",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(i).split("\\{").join(s).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)}function unescapeBraces(e){return e.split(i).join("\\").split(s).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[],r=n("{","}",e);if(!r)return e.split(",");var i=r.pre,s=r.body,o=r.post,a=i.split(",");a[a.length-1]+="{"+s+"}";var l=parseCommaParts(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),t.push.apply(t,a),t}function expandTop(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),expand(escapeBraces(e),!0).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=[],i=n("{","}",e);if(!i)return[e];var s=i.pre,a=i.post.length?expand(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<a.length;l++){var d=s+"{"+i.body+"}"+a[l];r.push(d)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=u||c,f=i.body.indexOf(",")>=0;if(!h&&!f)return i.post.match(/,(?!,).*\}/)?expand(e=i.pre+"{"+i.body+o+i.post):[e];if(h)p=i.body.split(/\.\./);else if(1===(p=parseCommaParts(i.body)).length&&1===(p=expand(p[0],!1).map(embrace)).length)return a.map(function(e){return i.pre+p[0]+e});if(h){var p,b,g,y=numeric(p[0]),w=numeric(p[1]),v=Math.max(p[0].length,p[1].length),S=3==p.length?Math.abs(numeric(p[2])):1,x=lte;w<y&&(S*=-1,x=gte);var j=p.some(isPadded);b=[];for(var k=y;x(k,w);k+=S){if(c)"\\"===(g=String.fromCharCode(k))&&(g="");else if(g=String(k),j){var T=v-g.length;if(T>0){var R=Array(T+1).join("0");g=k<0?"-"+R+g.slice(1):R+g}}b.push(g)}}else{b=[];for(var A=0;A<p.length;A++)b.push.apply(b,expand(p[A],!1))}for(var A=0;A<b.length;A++)for(var l=0;l<a.length;l++){var d=s+b[A]+a[l];(!t||h||d)&&r.push(d)}}return r}},"./node_modules/compress-commons/lib/archivers/archive-entry.js"(e){var t=e.exports=function(){};t.prototype.getName=function(){},t.prototype.getSize=function(){},t.prototype.getLastModifiedDate=function(){},t.prototype.isDirectory=function(){}},"./node_modules/compress-commons/lib/archivers/archive-output-stream.js"(e,t,r){var n=r("util").inherits,i=r("./node_modules/is-stream/index.js"),s=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/index.js").Transform,o=r("./node_modules/compress-commons/lib/archivers/archive-entry.js"),a=r("./node_modules/compress-commons/lib/util/index.js"),l=e.exports=function(e){if(!(this instanceof l))return new l(e);s.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};n(l,s),l.prototype._appendBuffer=function(e,t,r){},l.prototype._appendStream=function(e,t,r){},l.prototype._emitErrorCallback=function(e){e&&this.emit("error",e)},l.prototype._finish=function(e){},l.prototype._normalizeEntry=function(e){},l.prototype._transform=function(e,t,r){r(null,e)},l.prototype.entry=function(e,t,r){if(t=t||null,"function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),!(e instanceof o))return void r(Error("not a valid instance of ArchiveEntry"));if(this._archive.finish||this._archive.finished)return void r(Error("unacceptable entry after finish"));if(this._archive.processing)return void r(Error("already processing an entry"));if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=a.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,r);else if(i(t))this._appendStream(e,t,r);else{this._archive.processing=!1,r(Error("input source must be valid Stream or Buffer instance"));return}return this},l.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()},l.prototype.getBytesWritten=function(){return this.offset},l.prototype.write=function(e,t){return e&&(this.offset+=e.length),s.prototype.write.call(this,e,t)}},"./node_modules/compress-commons/lib/archivers/zip/constants.js"(e){e.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from([,,]),LONG:4,LONG_ZERO:Buffer.from([,,,,]),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:0x4034b50,SIG_DD:0x8074b50,SIG_CFH:0x2014b50,SIG_EOCD:0x6054b50,SIG_ZIP64_EOCD:0x6064b50,SIG_ZIP64_EOCD_LOC:0x7064b50,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:0xffffffff,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:0x41ed0010,EXT_FILE_ATTR_FILE:0x81a40020,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}},"./node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js"(e,t,r){var n=r("./node_modules/compress-commons/lib/archivers/zip/util.js"),i=e.exports=function(){return this instanceof i?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new i};i.prototype.encode=function(){return n.getShortBytes(8*!!this.descriptor|2048*!!this.utf8|!!this.encryption|64*!!this.strongEncryption)},i.prototype.parse=function(e,t){var r=n.getShortBytesValue(e,t),s=new i;return s.useDataDescriptor((8&r)!=0),s.useUTF8ForNames((2048&r)!=0),s.useStrongEncryption((64&r)!=0),s.useEncryption((1&r)!=0),s.setSlidingDictionarySize((2&r)!=0?8192:4096),s.setNumberOfShannonFanoTrees((4&r)!=0?3:2),s},i.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e},i.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},i.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e},i.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},i.prototype.useDataDescriptor=function(e){this.descriptor=e},i.prototype.usesDataDescriptor=function(){return this.descriptor},i.prototype.useEncryption=function(e){this.encryption=e},i.prototype.usesEncryption=function(){return this.encryption},i.prototype.useStrongEncryption=function(e){this.strongEncryption=e},i.prototype.usesStrongEncryption=function(){return this.strongEncryption},i.prototype.useUTF8ForNames=function(e){this.utf8=e},i.prototype.usesUTF8ForNames=function(){return this.utf8}},"./node_modules/compress-commons/lib/archivers/zip/unix-stat.js"(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}},"./node_modules/compress-commons/lib/archivers/zip/util.js"(e){var t=e.exports={};t.dateToDos=function(e,t){var r=(t=t||!1)?e.getFullYear():e.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 0x7f9fbf7d;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,(31&e)<<1)},t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))},t.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%0x100000000,0),t.writeUInt32LE(e/0x100000000|0,4),t},t.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((65535&e)>>>0,0),t},t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)},t.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE(e>>>0,0),t},t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)},t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},"./node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js"(e,t,r){var n=r("util").inherits,i=r("./node_modules/normalize-path/index.js"),s=r("./node_modules/compress-commons/lib/archivers/archive-entry.js"),o=r("./node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js"),a=r("./node_modules/compress-commons/lib/archivers/zip/unix-stat.js"),l=r("./node_modules/compress-commons/lib/archivers/zip/constants.js"),d=r("./node_modules/compress-commons/lib/archivers/zip/util.js"),u=e.exports=function(e){if(!(this instanceof u))return new u(e);s.call(this),this.platform=l.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new o,this.crc=0,this.time=-1,this.minver=l.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};n(u,s),u.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},u.prototype.getComment=function(){return null!==this.comment?this.comment:""},u.prototype.getCompressedSize=function(){return this.csize},u.prototype.getCrc=function(){return this.crc},u.prototype.getExternalAttributes=function(){return this.exattr},u.prototype.getExtra=function(){return null!==this.extra?this.extra:l.EMPTY},u.prototype.getGeneralPurposeBit=function(){return this.gpb},u.prototype.getInternalAttributes=function(){return this.inattr},u.prototype.getLastModifiedDate=function(){return this.getTime()},u.prototype.getLocalFileDataExtra=function(){return this.getExtra()},u.prototype.getMethod=function(){return this.method},u.prototype.getName=function(){return this.name},u.prototype.getPlatform=function(){return this.platform},u.prototype.getSize=function(){return this.size},u.prototype.getTime=function(){return -1!==this.time?d.dosToDate(this.time):-1},u.prototype.getTimeDos=function(){return -1!==this.time?this.time:0},u.prototype.getUnixMode=function(){return this.platform!==l.PLATFORM_UNIX?0:this.getExternalAttributes()>>l.SHORT_SHIFT&l.SHORT_MASK},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e},u.prototype.setCompressedSize=function(e){if(e<0)throw Error("invalid entry compressed size");this.csize=e},u.prototype.setCrc=function(e){if(e<0)throw Error("invalid entry crc32");this.crc=e},u.prototype.setExternalAttributes=function(e){this.exattr=e>>>0},u.prototype.setExtra=function(e){this.extra=e},u.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof o))throw Error("invalid entry GeneralPurposeBit");this.gpb=e},u.prototype.setInternalAttributes=function(e){this.inattr=e},u.prototype.setMethod=function(e){if(e<0)throw Error("invalid entry compression method");this.method=e},u.prototype.setName=function(e,t=!1){e=i(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e},u.prototype.setPlatform=function(e){this.platform=e},u.prototype.setSize=function(e){if(e<0)throw Error("invalid entry size");this.size=e},u.prototype.setTime=function(e,t){if(!(e instanceof Date))throw Error("invalid entry time");this.time=d.dateToDos(e,t)},u.prototype.setUnixMode=function(e){var t;e|=this.isDirectory()?l.S_IFDIR:l.S_IFREG,t=e<<l.SHORT_SHIFT|(this.isDirectory()?l.S_DOS_D:l.S_DOS_A),this.setExternalAttributes(t),this.mode=e&l.MODE_MASK,this.platform=l.PLATFORM_UNIX},u.prototype.setVersionNeededToExtract=function(e){this.minver=e},u.prototype.isDirectory=function(){return"/"===this.getName().slice(-1)},u.prototype.isUnixSymlink=function(){return(this.getUnixMode()&a.FILE_TYPE_FLAG)===a.LINK_FLAG},u.prototype.isZip64=function(){return this.csize>l.ZIP64_MAGIC||this.size>l.ZIP64_MAGIC}},"./node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js"(e,t,r){var n=r("util").inherits,i=r("./node_modules/crc-32/crc32.js"),{CRC32Stream:s}=r("./node_modules/crc32-stream/lib/index.js"),{DeflateCRC32Stream:o}=r("./node_modules/crc32-stream/lib/index.js"),a=r("./node_modules/compress-commons/lib/archivers/archive-output-stream.js");r("./node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js"),r("./node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js");var l=r("./node_modules/compress-commons/lib/archivers/zip/constants.js");r("./node_modules/compress-commons/lib/util/index.js");var d=r("./node_modules/compress-commons/lib/archivers/zip/util.js"),u=e.exports=function(e){if(!(this instanceof u))return new u(e);e=this.options=this._defaults(e),a.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};n(u,a),u.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},u.prototype._appendBuffer=function(e,t,r){0===t.length&&e.setMethod(l.METHOD_STORED);var n=e.getMethod();if(n===l.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(i.buf(t)>>>0)),this._writeLocalFileHeader(e),n===l.METHOD_STORED){this.write(t),this._afterAppend(e),r(null,e);return}n===l.METHOD_DEFLATED?this._smartStream(e,r).end(t):r(Error("compression method "+n+" not implemented"))},u.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(l.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)},u.prototype._defaults=function(e){return"object"!=typeof e&&(e={}),"object"!=typeof e.zlib&&(e.zlib={}),"number"!=typeof e.zlib.level&&(e.zlib.level=l.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e},u.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,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},u.prototype._normalizeEntry=function(e){-1===e.getMethod()&&e.setMethod(l.METHOD_DEFLATED),e.getMethod()===l.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(l.MIN_VERSION_DATA_DESCRIPTOR)),-1===e.getTime()&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}},u.prototype._smartStream=function(e,t){var r=e.getMethod()===l.METHOD_DEFLATED?new o(this.options.zlib):new s,n=null;function handleStuff(){var i=r.digest().readUInt32BE(0);e.setCrc(i),e.setSize(r.size()),e.setCompressedSize(r.size(!0)),this._afterAppend(e),t(n,e)}return r.once("end",handleStuff.bind(this)),r.once("error",function(e){n=e}),r.pipe(this,{end:!1}),r},u.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(e=l.ZIP64_MAGIC_SHORT,t=l.ZIP64_MAGIC,r=l.ZIP64_MAGIC),this.write(d.getLongBytes(l.SIG_EOCD)),this.write(l.SHORT_ZERO),this.write(l.SHORT_ZERO),this.write(d.getShortBytes(e)),this.write(d.getShortBytes(e)),this.write(d.getLongBytes(t)),this.write(d.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(d.getShortBytes(i)),this.write(n)},u.prototype._writeCentralDirectoryZip64=function(){this.write(d.getLongBytes(l.SIG_ZIP64_EOCD)),this.write(d.getEightBytes(44)),this.write(d.getShortBytes(l.MIN_VERSION_ZIP64)),this.write(d.getShortBytes(l.MIN_VERSION_ZIP64)),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(d.getEightBytes(this._entries.length)),this.write(d.getEightBytes(this._entries.length)),this.write(d.getEightBytes(this._archive.centralLength)),this.write(d.getEightBytes(this._archive.centralOffset)),this.write(d.getLongBytes(l.SIG_ZIP64_EOCD_LOC)),this.write(l.LONG_ZERO),this.write(d.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(d.getLongBytes(1))},u.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e._offsets.file,i=e.getSize(),s=e.getCompressedSize();if(e.isZip64()||n>l.ZIP64_MAGIC){i=l.ZIP64_MAGIC,s=l.ZIP64_MAGIC,n=l.ZIP64_MAGIC,e.setVersionNeededToExtract(l.MIN_VERSION_ZIP64);var o=Buffer.concat([d.getShortBytes(l.ZIP64_EXTRA_ID),d.getShortBytes(24),d.getEightBytes(e.getSize()),d.getEightBytes(e.getCompressedSize()),d.getEightBytes(e._offsets.file)],28);e.setExtra(o)}this.write(d.getLongBytes(l.SIG_CFH)),this.write(d.getShortBytes(e.getPlatform()<<8|l.VERSION_MADEBY)),this.write(d.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(d.getShortBytes(r)),this.write(d.getLongBytes(e.getTimeDos())),this.write(d.getLongBytes(e.getCrc())),this.write(d.getLongBytes(s)),this.write(d.getLongBytes(i));var a=e.getName(),u=e.getComment(),c=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(a=Buffer.from(a),u=Buffer.from(u)),this.write(d.getShortBytes(a.length)),this.write(d.getShortBytes(c.length)),this.write(d.getShortBytes(u.length)),this.write(l.SHORT_ZERO),this.write(d.getShortBytes(e.getInternalAttributes())),this.write(d.getLongBytes(e.getExternalAttributes())),this.write(d.getLongBytes(n)),this.write(a),this.write(c),this.write(u)},u.prototype._writeDataDescriptor=function(e){this.write(d.getLongBytes(l.SIG_DD)),this.write(d.getLongBytes(e.getCrc())),e.isZip64()?(this.write(d.getEightBytes(e.getCompressedSize())),this.write(d.getEightBytes(e.getSize()))):(this.write(d.getLongBytes(e.getCompressedSize())),this.write(d.getLongBytes(e.getSize())))},u.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(l.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(n=Buffer.from(n)),e._offsets.file=this.offset,this.write(d.getLongBytes(l.SIG_LFH)),this.write(d.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(d.getShortBytes(r)),this.write(d.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO)):(this.write(d.getLongBytes(e.getCrc())),this.write(d.getLongBytes(e.getCompressedSize())),this.write(d.getLongBytes(e.getSize()))),this.write(d.getShortBytes(n.length)),this.write(d.getShortBytes(i.length)),this.write(n),this.write(i),e._offsets.contents=this.offset},u.prototype.getComment=function(e){return null!==this._archive.comment?this._archive.comment:""},u.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>l.ZIP64_MAGIC_SHORT||this._archive.centralLength>l.ZIP64_MAGIC||this._archive.centralOffset>l.ZIP64_MAGIC},u.prototype.setComment=function(e){this._archive.comment=e}},"./node_modules/compress-commons/lib/compress-commons.js"(e,t,r){e.exports={ArchiveEntry:r("./node_modules/compress-commons/lib/archivers/archive-entry.js"),ZipArchiveEntry:r("./node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js"),ArchiveOutputStream:r("./node_modules/compress-commons/lib/archivers/archive-output-stream.js"),ZipArchiveOutputStream:r("./node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js")}},"./node_modules/compress-commons/lib/util/index.js"(e,t,r){r("stream").Stream;var n=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/index.js").PassThrough,i=r("./node_modules/is-stream/index.js");(e.exports={}).normalizeInputSource=function(e){if(null===e)return Buffer.alloc(0);if("string"==typeof e)return Buffer.from(e);if(i(e)&&!e._readableState){var t=new n;return e.pipe(t),t}return e}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(e,t,r){let n,{SymbolDispose:i}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{AbortError:s,codes:o}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{isNodeStream:a,isWebStream:l,kControllerErrorFunction:d}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"),u=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{ERR_INVALID_ARG_TYPE:c}=o;e.exports.addAbortSignal=function(t,r){if("object"!=typeof t||!("aborted"in t))throw new c("signal","AbortSignal",t);if(!a(r)&&!l(r))throw new c("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;let o=a(t)?()=>{t.destroy(new s(void 0,{cause:e.reason}))}:()=>{t[d](new s(void 0,{cause:e.reason}))};return e.aborted?o():u(t,(n=n||r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(e,o)[i]),t}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(e,t,r){let{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{Buffer:a}=r("buffer"),{inspect:l}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js");e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;let e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);let t=a.allocUnsafe(e>>>0),r=this.head,n=0;for(;r;)s(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){let r=this.head.data;if(e<r.length){let t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{let s=r.data;if(e>s.length)t+=s,e-=s.length;else{e===s.length?(t+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(s,0,e),this.head=r,r.data=n(s,e));break}++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){let t=a.allocUnsafe(e),r=e,n=this.head,i=0;do{let a=n.data;if(e>a.length)s(t,a,r-e),e-=a.length;else{e===a.length?(s(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(t,new o(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:!1})}}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/compose.js"(e,t,r){let{pipeline:n}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/pipeline.js"),i=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js"),{destroyer:s}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js"),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:d,isTransformStream:u,isWritableStream:c,isReadableStream:h}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),g=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js");e.exports=function(...e){let t,r,y,w,v;if(0===e.length)throw new b("streams");if(1===e.length)return i.from(e[0]);let S=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){let t=e.length-1;e[t]=i.from(e[t])}for(let t=0;t<e.length;++t)if(o(e[t])||d(e[t])){if(t<e.length-1&&!(a(e[t])||h(e[t])||u(e[t])))throw new p(`streams[${t}]`,S[t],"must be readable");if(t>0&&!(l(e[t])||c(e[t])||u(e[t])))throw new p(`streams[${t}]`,S[t],"must be writable")}function onfinished(e){let t=w;w=null,t?t(e):e?v.destroy(e):T||k||v.destroy()}let x=e[0],j=n(e,onfinished),k=!!(l(x)||c(x)||u(x)),T=!!(a(j)||h(j)||u(j));if(v=new i({writableObjectMode:!!(null!=x&&x.writableObjectMode),readableObjectMode:!!(null!=j&&j.readableObjectMode),writable:k,readable:T}),k){if(o(x))v._write=function(e,r,n){x.write(e,r)?n():t=n},v._final=function(e){x.end(),r=e},x.on("drain",function(){if(t){let e=t;t=null,e()}});else if(d(x)){let e=(u(x)?x.writable:x).getWriter();v._write=async function(t,r,n){try{await e.ready,e.write(t).catch(()=>{}),n()}catch(e){n(e)}},v._final=async function(t){try{await e.ready,e.close().catch(()=>{}),r=t}catch(e){t(e)}}}g(u(j)?j.readable:j,()=>{if(r){let e=r;r=null,e()}})}if(T){if(o(j))j.on("readable",function(){if(y){let e=y;y=null,e()}}),j.on("end",function(){v.push(null)}),v._read=function(){for(;;){let e=j.read();if(null===e){y=v._read;return}if(!v.push(e))return}};else if(d(j)){let e=(u(j)?j.readable:j).getReader();v._read=async function(){for(;;)try{let{value:t,done:r}=await e.read();if(!v.push(t))return;if(r)return void v.push(null)}catch{return}}}}return v._destroy=function(e,n){e||null===w||(e=new f),y=null,t=null,r=null,null===w?n(e):(w=n,o(j)&&s(j,e))},v}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js"(e,t,r){let n=r("./node_modules/process/index.js"),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{Symbol:a}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{kIsDestroyed:l,isDestroyed:d,isFinished:u,isServerRequest:c}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"),h=a("kDestroy"),f=a("kConstruct");function checkError(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function _destroy(e,t,r){let i=!1;function onDestroy(t){if(i)return;i=!0;let s=e._readableState,o=e._writableState;checkError(t,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(emitErrorCloseNT,e,t):n.nextTick(emitCloseNT,e)}try{e._destroy(t||null,onDestroy)}catch(e){onDestroy(e)}}function emitErrorCloseNT(e,t){emitErrorNT(e,t),emitCloseNT(e)}function emitCloseNT(e){let t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function emitErrorNT(e,t){let r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function errorOrDestroy(e,t,r){let i=e._readableState,s=e._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?e.destroy(t):t&&(t.stack,s&&!s.errored&&(s.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(emitErrorNT,e,t):emitErrorNT(e,t))}function constructNT(e){let t=!1;function onConstruct(r){if(t)return void errorOrDestroy(e,null!=r?r:new s);t=!0;let i=e._readableState,o=e._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?e.emit(h,r):r?errorOrDestroy(e,r,!0):n.nextTick(emitConstructNT,e)}try{e._construct(e=>{n.nextTick(onConstruct,e)})}catch(e){n.nextTick(onConstruct,e)}}function emitConstructNT(e){e.emit(f)}function isRequest(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function emitCloseLegacy(e){e.emit("close")}function emitErrorCloseLegacy(e,t){e.emit("error",t),n.nextTick(emitCloseLegacy,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(f,t),e.listenerCount(f)>1||n.nextTick(constructNT,e)},destroyer:function(e,t){!(!e||d(e))&&(t||u(e)||(t=new o),c(e)?(e.socket=null,e.destroy(t)):isRequest(e)?e.abort():isRequest(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(emitErrorCloseLegacy,e,t):n.nextTick(emitCloseLegacy,e),e.destroyed||(e[l]=!0))},destroy:function(e,t){let r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?"function"==typeof t&&t():(checkError(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?_destroy(this,e,t):this.once(h,function(r){_destroy(this,i(r,e),t)})),this},undestroy:function(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js"(e,t,r){let n,i,{ObjectDefineProperties:s,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:a,ObjectSetPrototypeOf:l}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Duplex;let d=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/readable.js"),u=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/writable.js");l(Duplex.prototype,d.prototype),l(Duplex,d);{let e=a(u.prototype);for(let t=0;t<e.length;t++){let r=e[t];Duplex.prototype[r]||(Duplex.prototype[r]=u.prototype[r])}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);d.call(this,e),u.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}function lazyWebStreams(){return void 0===n&&(n={}),n}s(Duplex.prototype,{writable:{__proto__:null,...o(u.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(u.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(u.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(u.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(u.prototype,"writableLength")},writableFinished:{__proto__:null,...o(u.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(u.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(u.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(u.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),Duplex.fromWeb=function(e,t){return lazyWebStreams().newStreamDuplexFromReadableWritablePair(e,t)},Duplex.toWeb=function(e){return lazyWebStreams().newReadableWritablePairFromDuplex(e)},Duplex.from=function(e){return i||(i=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplexify.js")),i(e,"body")}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplexify.js"(e,t,r){"use strict";let n=r("./node_modules/process/index.js"),i=r("buffer"),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:d,isWritableNodeStream:u,isDuplexNodeStream:c,isReadableStream:h,isWritableStream:f}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"),p=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:y}}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{destroyer:w}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js"),v=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js"),S=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/readable.js"),x=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/writable.js"),{createDeferredPromise:j}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js"),k=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/from.js"),T=globalThis.Blob||i.Blob,R=void 0!==T?function(e){return e instanceof T}:function(e){return!1},A=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,{FunctionPrototypeCall:O}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js");class C extends v{constructor(e){super(e),(null==e?void 0:e.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(null==e?void 0:e.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function fromAsyncGen(e){let{promise:t,resolve:r}=j(),i=new A,s=i.signal;return{value:e(async function*(){for(;;){let e=t;t=null;let{chunk:i,done:o,cb:a}=await e;if(n.nextTick(a),o)return;if(s.aborted)throw new b(void 0,{cause:s.reason});({promise:t,resolve:r}=j()),yield i}}(),{signal:s}),write(e,t,n){let i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){let t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}function _duplexify(e){let t,r,n,i,a,l=e.readable&&"function"!=typeof e.readable.read?S.wrap(e.readable):e.readable,d=e.writable,u=!!s(l),c=!!o(d);function onfinished(e){let t=i;i=null,t?t(e):e&&a.destroy(e)}return a=new C({readableObjectMode:!!(null!=l&&l.readableObjectMode),writableObjectMode:!!(null!=d&&d.writableObjectMode),readable:u,writable:c}),c&&(p(d,e=>{c=!1,e&&w(l,e),onfinished(e)}),a._write=function(e,r,n){d.write(e,r)?n():t=n},a._final=function(e){d.end(),r=e},d.on("drain",function(){if(t){let e=t;t=null,e()}}),d.on("finish",function(){if(r){let e=r;r=null,e()}})),u&&(p(l,e=>{u=!1,e&&w(l,e),onfinished(e)}),l.on("readable",function(){if(n){let e=n;n=null,e()}}),l.on("end",function(){a.push(null)}),a._read=function(){for(;;){let e=l.read();if(null===e){n=a._read;return}if(!a.push(e))return}}),a._destroy=function(e,s){e||null===i||(e=new b),n=null,t=null,r=null,null===i?s(e):(i=s,w(d,e),w(l,e))},a}e.exports=function duplexify(e,t){if(c(e))return e;if(d(e))return _duplexify({readable:e});if(u(e))return _duplexify({writable:e});if(l(e))return _duplexify({writable:!1,readable:!1});if(h(e))return _duplexify({readable:S.fromWeb(e)});if(f(e))return _duplexify({writable:x.fromWeb(e)});if("function"==typeof e){let{value:r,write:i,final:s,destroy:o}=fromAsyncGen(e);if(a(r))return k(C,r,{objectMode:!0,write:i,final:s,destroy:o});let l=null==r?void 0:r.then;if("function"==typeof l){let e,t=O(l,r,e=>{if(null!=e)throw new y("nully","body",e)},t=>{w(e,t)});return e=new C({objectMode:!0,readable:!1,write:i,final(e){s(async()=>{try{await t,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}})},destroy:o})}throw new y("Iterable, AsyncIterable or AsyncFunction",t,r)}if(R(e))return duplexify(e.arrayBuffer());if(a(e))return k(C,e,{objectMode:!0,writable:!1});if(h(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return C.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable))return _duplexify({readable:null!=e&&e.readable?d(null==e?void 0:e.readable)?null==e?void 0:e.readable:duplexify(e.readable):void 0,writable:null!=e&&e.writable?u(null==e?void 0:e.writable)?null==e?void 0:e.writable:duplexify(e.writable):void 0});let r=null==e?void 0:e.then;if("function"==typeof r){let t;return O(r,e,e=>{null!=e&&t.push(e),t.push(null)},e=>{w(t,e)}),t=new C({objectMode:!0,writable:!1,read(){}})}throw new g(t,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{AbortError:s,codes:o}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=o,{kEmptyObject:d,once:u}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js"),{validateAbortSignal:c,validateFunction:h,validateObject:f,validateBoolean:p}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js"),{Promise:b,PromisePrototypeThen:g,SymbolDispose:y}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{isClosed:w,isReadable:v,isReadableNodeStream:S,isReadableStream:x,isReadableFinished:j,isReadableErrored:k,isWritable:T,isWritableNodeStream:R,isWritableStream:A,isWritableFinished:O,isWritableErrored:C,isNodeStream:M,willEmitClose:L,kIsClosedPromise:D}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js");function isRequest(e){return e.setHeader&&"function"==typeof e.abort}let nop=()=>{};function eos(e,t,o){var p,b;if(2==arguments.length?(o=t,t=d):null==t?t=d:f(t,"options"),h(o,"callback"),c(t.signal,"options.signal"),o=u(o),x(e)||A(e))return eosWeb(e,t,o);if(!M(e))throw new a("stream",["ReadableStream","WritableStream","Stream"],e);let g=null!=(p=t.readable)?p:S(e),D=null!=(b=t.writable)?b:R(e),I=e._writableState,P=e._readableState,onlegacyfinish=()=>{e.writable||onfinish()},W=L(e)&&S(e)===g&&R(e)===D,N=O(e,!1),onfinish=()=>{N=!0,e.destroyed&&(W=!1),W&&(!e.readable||g)||(!g||F)&&o.call(e)},F=j(e,!1),onend=()=>{F=!0,e.destroyed&&(W=!1),W&&(!e.writable||D)||(!D||N)&&o.call(e)},onerror=t=>{o.call(e,t)},B=w(e),onclose=()=>{B=!0;let t=C(e)||k(e);return t&&"boolean"!=typeof t?o.call(e,t):g&&!F&&S(e,!0)&&!j(e,!1)||D&&!N&&!O(e,!1)?o.call(e,new l):void o.call(e)},onclosed=()=>{B=!0;let t=C(e)||k(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},onrequest=()=>{e.req.on("finish",onfinish)};isRequest(e)?(e.on("complete",onfinish),W||e.on("abort",onclose),e.req?onrequest():e.on("request",onrequest)):D&&!I&&(e.on("end",onlegacyfinish),e.on("close",onlegacyfinish)),W||"boolean"!=typeof e.aborted||e.on("aborted",onclose),e.on("end",onend),e.on("finish",onfinish),!1!==t.error&&e.on("error",onerror),e.on("close",onclose),B?i.nextTick(onclose):null!=I&&I.errorEmitted||null!=P&&P.errorEmitted?W||i.nextTick(onclosed):!g&&(!W||v(e))&&(N||!1===T(e))||!D&&(!W||T(e))&&(F||!1===v(e))?i.nextTick(onclosed):P&&e.req&&e.aborted&&i.nextTick(onclosed);let cleanup=()=>{o=nop,e.removeListener("aborted",onclose),e.removeListener("complete",onfinish),e.removeListener("abort",onclose),e.removeListener("request",onrequest),e.req&&e.req.removeListener("finish",onfinish),e.removeListener("end",onlegacyfinish),e.removeListener("close",onlegacyfinish),e.removeListener("finish",onfinish),e.removeListener("end",onend),e.removeListener("error",onerror),e.removeListener("close",onclose)};if(t.signal&&!B){let abort=()=>{let r=o;cleanup(),r.call(e,new s(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)i.nextTick(abort);else{let i=(n=n||r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(t.signal,abort),s=o;o=u((...t)=>{i[y](),s.apply(e,t)})}}return cleanup}function eosWeb(e,t,o){let a=!1,l=nop;if(t.signal)if(l=()=>{a=!0,o.call(e,new s(void 0,{cause:t.signal.reason}))},t.signal.aborted)i.nextTick(l);else{let i=(n=n||r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(t.signal,l),s=o;o=u((...t)=>{i[y](),s.apply(e,t)})}let resolverFn=(...t)=>{a||i.nextTick(()=>o.apply(e,t))};return g(e[D].promise,resolverFn,resolverFn),nop}function finished(e,t){var r;let n=!1;return null===t&&(t=d),null!=(r=t)&&r.cleanup&&(p(t.cleanup,"cleanup"),n=t.cleanup),new b((r,i)=>{let s=eos(e,t,e=>{n&&s(),e?i(e):r()})})}e.exports=eos,e.exports.finished=finished},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/from.js"(e,t,r){let n=r("./node_modules/process/index.js"),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{Buffer:a}=r("buffer"),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:d}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js").codes;e.exports=function(e,t,r){let u,c;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[s])c=!0,u=t[s]();else if(t&&t[o])c=!1,u=t[o]();else throw new l("iterable",["Iterable"],t);let h=new e({objectMode:!0,highWaterMark:1,...r}),f=!1;async function close(e){let t=null!=e,r="function"==typeof u.throw;if(t&&r){let{value:t,done:r}=await u.throw(e);if(await t,r)return}if("function"==typeof u.return){let{value:e}=await u.return();await e}}async function next(){for(;;){try{let{value:e,done:t}=c?await u.next():u.next();if(t)h.push(null);else{let t=e&&"function"==typeof e.then?await e:e;if(null===t)throw f=!1,new d;if(h.push(t))continue;f=!1}}catch(e){h.destroy(e)}break}}return h._read=function(){f||(f=!0,next())},h._destroy=function(e,t){i(close(e),()=>n.nextTick(t,e),r=>n.nextTick(t,r||e))},h}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/legacy.js"(e,t,r){let{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{EventEmitter:s}=r("events");function Stream(e){s.call(this,e)}function prependListener(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(Stream.prototype,s.prototype),i(Stream,s),Stream.prototype.pipe=function(e,t){let r=this;function ondata(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function ondrain(){r.readable&&r.resume&&r.resume()}r.on("data",ondata),e.on("drain",ondrain),e._isStdio||t&&!1===t.end||(r.on("end",onend),r.on("close",onclose));let n=!1;function onend(){n||(n=!0,e.end())}function onclose(){n||(n=!0,"function"==typeof e.destroy&&e.destroy())}function onerror(e){cleanup(),0===s.listenerCount(this,"error")&&this.emit("error",e)}function cleanup(){r.removeListener("data",ondata),e.removeListener("drain",ondrain),r.removeListener("end",onend),r.removeListener("close",onclose),r.removeListener("error",onerror),e.removeListener("error",onerror),r.removeListener("end",cleanup),r.removeListener("close",cleanup),e.removeListener("close",cleanup)}return prependListener(r,"error",onerror),prependListener(e,"error",onerror),r.on("end",cleanup),r.on("close",cleanup),e.on("close",cleanup),e.emit("pipe",r),e},e.exports={Stream,prependListener}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/operators.js"(e,t,r){let n=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{validateAbortSignal:d,validateInteger:u,validateObject:c}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js"),h=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js").Symbol("kWeak"),f=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js").Symbol("kResistStopPropagation"),{finished:p}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),b=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/compose.js"),{addAbortSignalNoValidate:g}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),{isWritable:y,isNodeStream:w}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"),{deprecate:v}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js"),{ArrayPrototypePush:S,Boolean:x,MathFloor:j,Number:k,NumberIsNaN:T,Promise:R,PromiseReject:A,PromiseResolve:O,PromisePrototypeThen:C,Symbol:M}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),L=M("kEmpty"),D=M("kEof");function compose(e,t){if(null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),w(e)&&!y(e))throw new i("stream",e,"must be writable");let r=b(this,e);return null!=t&&t.signal&&g(t.signal,r),r}function map(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal");let n=1;(null==t?void 0:t.concurrency)!=null&&(n=j(t.concurrency));let i=n-1;return(null==t?void 0:t.highWaterMark)!=null&&(i=j(t.highWaterMark)),u(n,"options.concurrency",1),u(i,"options.highWaterMark",0),i+=n,(async function*(){let s,o,a=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js").AbortSignalAny([null==t?void 0:t.signal].filter(x)),d=this,u=[],c={signal:a},h=!1,f=0;function onCatch(){h=!0,afterItemProcessed()}function afterItemProcessed(){f-=1,maybeResume()}function maybeResume(){o&&!h&&f<n&&u.length<i&&(o(),o=null)}!async function(){try{for await(let t of d){if(h)return;if(a.aborted)throw new l;try{if((t=e(t,c))===L)continue;t=O(t)}catch(e){t=A(e)}f+=1,C(t,afterItemProcessed,onCatch),u.push(t),s&&(s(),s=null),!h&&(u.length>=i||f>=n)&&await new R(e=>{o=e})}u.push(D)}catch(t){let e=A(t);C(e,afterItemProcessed,onCatch),u.push(e)}finally{h=!0,s&&(s(),s=null)}}();try{for(;;){for(;u.length>0;){let e=await u[0];if(e===D)return;if(a.aborted)throw new l;e!==L&&(yield e),u.shift(),maybeResume()}await new R(e=>{s=e})}}finally{h=!0,o&&(o(),o=null)}}).call(this)}function asIndexedPairs(e){return null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&d(e.signal,"options.signal"),(async function*(){let t=0;for await(let n of this){var r;if(null!=e&&null!=(r=e.signal)&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}).call(this)}async function some(e,t){for await(let r of filter.call(this,e,t))return!0;return!1}async function every(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);return!await some.call(this,async(...t)=>!await e(...t),t)}async function find(e,t){for await(let r of filter.call(this,e,t))return r}async function forEach(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);async function forEachFn(t,r){return await e(t,r),L}for await(let e of map.call(this,forEachFn,t));}function filter(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);async function filterFn(t,r){return await e(t,r)?t:L}return map.call(this,filterFn,t)}class I extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function reduce(e,t,r){var i,o;if("function"!=typeof e)throw new s("reducer",["Function","AsyncFunction"],e);null!=r&&c(r,"options"),(null==r?void 0:r.signal)!=null&&d(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!=(i=r.signal)&&i.aborted){let e=new l(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(e)),e}let u=new n,b=u.signal;null!=r&&r.signal&&r.signal.addEventListener("abort",()=>u.abort(),{once:!0,[h]:this,[f]:!0});let g=!1;try{for await(let n of this){if(g=!0,null!=r&&null!=(o=r.signal)&&o.aborted)throw new l;a?t=await e(t,n,{signal:b}):(t=n,a=!0)}if(!g&&!a)throw new I}finally{u.abort()}return t}async function toArray(e){null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&d(e.signal,"options.signal");let t=[];for await(let n of this){var r;if(null!=e&&null!=(r=e.signal)&&r.aborted)throw new l(void 0,{cause:e.signal.reason});S(t,n)}return t}function flatMap(e,t){let r=map.call(this,e,t);return(async function*(){for await(let e of r)yield*e}).call(this)}function toIntegerOrInfinity(e){if(T(e=k(e)))return 0;if(e<0)throw new a("number",">= 0",e);return e}function drop(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),e=toIntegerOrInfinity(e),(async function*(){var r,n;if(null!=t&&null!=(r=t.signal)&&r.aborted)throw new l;for await(let r of this){if(null!=t&&null!=(n=t.signal)&&n.aborted)throw new l;e--<=0&&(yield r)}}).call(this)}function take(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),e=toIntegerOrInfinity(e),(async function*(){var r,n;if(null!=t&&null!=(r=t.signal)&&r.aborted)throw new l;for await(let r of this){if(null!=t&&null!=(n=t.signal)&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}).call(this)}e.exports.streamReturningOperators={asIndexedPairs:v(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop,filter,flatMap,map,take,compose},e.exports.promiseReturningOperators={every,forEach,reduce,toArray,some,find}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/passthrough.js"(e,t,r){let{ObjectSetPrototypeOf:n}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js");e.exports=PassThrough;let i=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/transform.js");function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}n(PassThrough.prototype,i.prototype),n(PassThrough,i),PassThrough.prototype._transform=function(e,t,r){r(null,e)}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/pipeline.js"(e,t,r){"use strict";let n,i,s,o=r("./node_modules/process/index.js"),{ArrayIsArray:a,Promise:l,SymbolAsyncIterator:d,SymbolDispose:u}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),c=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{once:h}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js"),f=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js"),p=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js"),{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:y,ERR_MISSING_ARGS:w,ERR_STREAM_DESTROYED:v,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:x}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{validateFunction:j,validateAbortSignal:k}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js"),{isIterable:T,isReadable:R,isReadableNodeStream:A,isNodeStream:O,isTransformStream:C,isWebStream:M,isReadableStream:L,isReadableFinished:D}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"),I=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1;function destroyer(e,t,r){let n=!1;return e.on("close",()=>{n=!0}),{destroy:t=>{n||(n=!0,f.destroyer(e,t||new v("pipe")))},cleanup:c(e,{readable:t,writable:r},e=>{n=!e})}}function popCallback(e){return j(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function makeAsyncIterable(e){if(T(e))return e;if(A(e))return fromReadable(e);throw new g("val",["Readable","Iterable","AsyncIterable"],e)}async function*fromReadable(e){i||(i=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/readable.js")),yield*i.prototype[d].call(e)}async function pumpToNode(e,t,r,{end:n}){let i,s=null,resume=e=>{if(e&&(i=e),s){let e=s;s=null,e()}},wait=()=>new l((e,t)=>{i?t(i):s=()=>{i?t(i):e()}});t.on("drain",resume);let o=c(t,{readable:!1},resume);try{for await(let r of(t.writableNeedDrain&&await wait(),e))t.write(r)||await wait();n&&(t.end(),await wait()),r()}catch(e){r(i!==e?b(i,e):e)}finally{o(),t.off("drain",resume)}}async function pumpToWeb(e,t,r,{end:n}){C(t)&&(t=t.writable);let i=t.getWriter();try{for await(let t of e)await i.ready,i.write(t).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function pipeline(...e){return pipelineImpl(e,h(popCallback(e)))}function pipelineImpl(e,t,i){let l,d,c,h;if(1===e.length&&a(e[0])&&(e=e[0]),e.length<2)throw new w("streams");let f=new I,b=f.signal,v=null==i?void 0:i.signal,S=[];function abort(){finishImpl(new x)}k(v,"options.signal"),s=s||r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js").addAbortListener,v&&(l=s(v,abort));let j=[],D=0;function finish(e){finishImpl(e,0==--D)}function finishImpl(e,r){var n;if(e&&(!d||"ERR_STREAM_PREMATURE_CLOSE"===d.code)&&(d=e),d||r){for(;j.length;)j.shift()(d);null==(n=l)||n[u](),f.abort(),r&&(d||S.forEach(e=>e()),o.nextTick(t,d,c))}}for(let t=0;t<e.length;t++){let s=e[t],a=t<e.length-1,l=t>0,d=a||(null==i?void 0:i.end)!==!1,u=t===e.length-1;if(O(s)){if(d){let{destroy:e,cleanup:t}=destroyer(s,a,l);j.push(e),R(s)&&u&&S.push(t)}function onError(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&finish(e)}s.on("error",onError),R(s)&&u&&S.push(()=>{s.removeListener("error",onError)})}if(0===t)if("function"==typeof s){if(!T(h=s({signal:b})))throw new y("Iterable, AsyncIterable or Stream","source",h)}else h=T(s)||A(s)||C(s)?s:p.from(s);else if("function"==typeof s){var P,W;if(h=s(h=C(h)?makeAsyncIterable(null==(P=h)?void 0:P.readable):makeAsyncIterable(h),{signal:b}),a){if(!T(h,!0))throw new y("AsyncIterable",`transform[${t-1}]`,h)}else{n||(n=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/passthrough.js"));let e=new n({objectMode:!0}),t=null==(W=h)?void 0:W.then;if("function"==typeof t)D++,t.call(h,t=>{c=t,null!=t&&e.write(t),d&&e.end(),o.nextTick(finish)},t=>{e.destroy(t),o.nextTick(finish,t)});else if(T(h,!0))D++,pumpToNode(h,e,finish,{end:d});else if(L(h)||C(h)){let t=h.readable||h;D++,pumpToNode(t,e,finish,{end:d})}else throw new y("AsyncIterable or Promise","destination",h);let{destroy:i,cleanup:s}=destroyer(h=e,!1,!0);j.push(i),u&&S.push(s)}}else if(O(s)){if(A(h)){D+=2;let e=pipe(h,s,finish,{end:d});R(s)&&u&&S.push(e)}else if(C(h)||L(h)){let e=h.readable||h;D++,pumpToNode(e,s,finish,{end:d})}else if(T(h))D++,pumpToNode(h,s,finish,{end:d});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=s}else if(M(s)){if(A(h))D++,pumpToWeb(makeAsyncIterable(h),s,finish,{end:d});else if(L(h)||T(h))D++,pumpToWeb(h,s,finish,{end:d});else if(C(h))D++,pumpToWeb(h.readable,s,finish,{end:d});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=s}else h=p.from(s)}return(null!=b&&b.aborted||null!=v&&v.aborted)&&o.nextTick(abort),h}function pipe(e,t,r,{end:n}){let i=!1;if(t.on("close",()=>{i||r(new S)}),e.pipe(t,{end:!1}),n){function endFn(){i=!0,t.end()}D(e)?o.nextTick(endFn):e.once("end",endFn)}else r();return c(e,{readable:!0,writable:!1},t=>{let n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)}),c(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl,pipeline}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/readable.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{ArrayPrototypeIndexOf:s,NumberIsInteger:o,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:d,ObjectKeys:u,ObjectSetPrototypeOf:c,Promise:h,SafeSet:f,SymbolAsyncDispose:p,SymbolAsyncIterator:b,Symbol:g}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Readable,Readable.ReadableState=ReadableState;let{EventEmitter:y}=r("events"),{Stream:w,prependListener:v}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/legacy.js"),{Buffer:S}=r("buffer"),{addAbortSignal:x}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),j=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),k=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js").debuglog("stream",e=>{k=e}),T=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/buffer_list.js"),R=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js"),{getHighWaterMark:A,getDefaultHighWaterMark:O}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/state.js"),{aggregateTwoErrors:C,codes:{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:D,ERR_STREAM_PUSH_AFTER_EOF:I,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:P},AbortError:W}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{validateObject:N}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js"),F=g("kPaused"),{StringDecoder:B}=r("./node_modules/string_decoder/lib/string_decoder.js"),$=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/from.js");c(Readable.prototype,w.prototype),c(Readable,w);let nop=()=>{},{errorOrDestroy:z}=R;function makeBitMapDescriptor(e){return{enumerable:!1,get(){return(this.state&e)!=0},set(t){t?this.state|=e:this.state&=~e}}}function ReadableState(e,t,n){"boolean"!=typeof n&&(n=t instanceof r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js")),this.state=6192,e&&e.objectMode&&(this.state|=1),n&&e&&e.readableObjectMode&&(this.state|=1),this.highWaterMark=e?A(this,e,"readableHighWaterMark",n):O(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this[F]=null,e&&!1===e.emitClose&&(this.state&=-2049),e&&!1===e.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new B(e.encoding),this.encoding=e.encoding)}function Readable(e){if(!(this instanceof Readable))return new Readable(e);let t=this instanceof r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js");this._readableState=new ReadableState(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&x(e.signal,this)),w.call(this,e),R.construct(this,()=>{this._readableState.needReadable&&maybeReadMore(this,this._readableState)})}function readableAddChunk(e,t,r,n){let i;k("readableAddChunk",t);let s=e._readableState;if((1&s.state)==0&&("string"==typeof t?(r=r||s.defaultEncoding,s.encoding!==r&&(n&&s.encoding?t=S.from(t,r).toString(s.encoding):(t=S.from(t,r),r=""))):t instanceof S?r="":w._isUint8Array(t)?(t=w._uint8ArrayToBuffer(t),r=""):null!=t&&(i=new M("chunk",["string","Buffer","Uint8Array"],t))),i)z(e,i);else if(null===t)s.state&=-9,onEofChunk(e,s);else if((1&s.state)!=0||t&&t.length>0)if(n)if((4&s.state)!=0)z(e,new P);else{if(s.destroyed||s.errored)return!1;addChunk(e,s,t,!0)}else if(s.ended)z(e,new I);else{if(s.destroyed||s.errored)return!1;s.state&=-9,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?addChunk(e,s,t,!1):maybeReadMore(e,s)):addChunk(e,s,t,!1)}else n||(s.state&=-9,maybeReadMore(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function addChunk(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?((65536&t.state)!=0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),(64&t.state)!=0&&emitReadable(e)),maybeReadMore(e,t)}function computeNewHighWaterMark(e){if(e>0x40000000)throw new D("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}function howMuchToRead(e,t){return e<=0||0===t.length&&t.ended?0:(1&t.state)!=0?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function onEofChunk(e,t){if(k("onEofChunk"),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?emitReadable(e):(t.needReadable=!1,t.emittedReadable=!0,emitReadable_(e))}}function emitReadable(e){let t=e._readableState;k("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(k("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(emitReadable_,e))}function emitReadable_(e){let t=e._readableState;k("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,flow(e)}function maybeReadMore(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,i.nextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){let r=t.length;if(k("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function pipeOnDrain(e,t){return function(){let r=e._readableState;r.awaitDrainWriters===t?(k("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(k("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||0===r.awaitDrainWriters.size)&&e.listenerCount("data")&&e.resume()}}function updateReadableListening(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[F]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function nReadingNextTick(e){k("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(resume_,e,t))}function resume_(e,t){k("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){let t=e._readableState;for(k("flow",t.flowing);t.flowing&&null!==e.read(););}function streamToAsyncIterator(e,t){"function"!=typeof e.read&&(e=Readable.wrap(e,{objectMode:!0}));let r=createAsyncIterator(e,t);return r.stream=e,r}async function*createAsyncIterator(e,t){let r,n=nop;function next(t){this===e?(n(),n=nop):n=t}e.on("readable",next);let i=j(e,{writable:!1},e=>{r=e?C(r,e):null,n(),n=nop});try{for(;;){let t=e.destroyed?null:e.read();if(null!==t)yield t;else if(r)throw r;else{if(null===r)return;await new h(next)}}}catch(e){throw r=C(r,e)}finally{(r||(null==t?void 0:t.destroyOnReturn)!==!1)&&(void 0===r||e._readableState.autoDestroy)?R.destroyer(e,null):(e.off("readable",next),i())}}function fromList(e,t){let r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function endReadable(e){let t=e._readableState;k("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){if(k("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length){if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)i.nextTick(endWritableNT,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}}function endWritableNT(e){!e.writable||e.writableEnded||e.destroyed||e.end()}function lazyWebStreams(){return void 0===n&&(n={}),n}d(ReadableState.prototype,{objectMode:makeBitMapDescriptor(1),ended:makeBitMapDescriptor(2),endEmitted:makeBitMapDescriptor(4),reading:makeBitMapDescriptor(8),constructed:makeBitMapDescriptor(16),sync:makeBitMapDescriptor(32),needReadable:makeBitMapDescriptor(64),emittedReadable:makeBitMapDescriptor(128),readableListening:makeBitMapDescriptor(256),resumeScheduled:makeBitMapDescriptor(512),errorEmitted:makeBitMapDescriptor(1024),emitClose:makeBitMapDescriptor(2048),autoDestroy:makeBitMapDescriptor(4096),destroyed:makeBitMapDescriptor(8192),closed:makeBitMapDescriptor(16384),closeEmitted:makeBitMapDescriptor(32768),multiAwaitDrain:makeBitMapDescriptor(65536),readingMore:makeBitMapDescriptor(131072),dataEmitted:makeBitMapDescriptor(262144)}),Readable.prototype.destroy=R.destroy,Readable.prototype._undestroy=R.undestroy,Readable.prototype._destroy=function(e,t){t(e)},Readable.prototype[y.captureRejectionSymbol]=function(e){this.destroy(e)},Readable.prototype[p]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new W,this.destroy(e)),new h((t,r)=>j(this,n=>n&&n!==e?r(n):t(null)))},Readable.prototype.push=function(e,t){return readableAddChunk(this,e,t,!1)},Readable.prototype.unshift=function(e,t){return readableAddChunk(this,e,t,!0)},Readable.prototype.isPaused=function(){let e=this._readableState;return!0===e[F]||!1===e.flowing},Readable.prototype.setEncoding=function(e){let t=new B(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this},Readable.prototype.read=function(e){let t;k("read",e),void 0===e?e=NaN:o(e)||(e=l(e,10));let r=this._readableState,n=e;if(e>r.highWaterMark&&(r.highWaterMark=computeNewHighWaterMark(e)),0!==e&&(r.state&=-129),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return k("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,r))&&r.ended)return 0===r.length&&endReadable(this),null;let i=(64&r.state)!=0;if(k("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&k("length less than watermark",i=!0),r.ended||r.reading||r.destroyed||r.errored||!r.constructed)k("reading, ended or constructing",i=!1);else if(i){k("do read"),r.state|=40,0===r.length&&(r.state|=64);try{this._read(r.highWaterMark)}catch(e){z(this,e)}r.state&=-33,r.reading||(e=howMuchToRead(n,r))}return null===(t=e>0?fromList(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.multiAwaitDrain?r.awaitDrainWriters.clear():r.awaitDrainWriters=null),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&endReadable(this)),null===t||r.errorEmitted||r.closeEmitted||(r.dataEmitted=!0,this.emit("data",t)),t},Readable.prototype._read=function(e){throw new L("_read()")},Readable.prototype.pipe=function(e,t){let r,n=this,s=this._readableState;1!==s.pipes.length||s.multiAwaitDrain||(s.multiAwaitDrain=!0,s.awaitDrainWriters=new f(s.awaitDrainWriters?[s.awaitDrainWriters]:[])),s.pipes.push(e),k("pipe count=%d opts=%j",s.pipes.length,t);let o=t&&!1===t.end||e===i.stdout||e===i.stderr?unpipe:onend;function onunpipe(e,t){k("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,cleanup())}function onend(){k("onend"),e.end()}s.endEmitted?i.nextTick(o):n.once("end",o),e.on("unpipe",onunpipe);let a=!1;function cleanup(){k("cleanup"),e.removeListener("close",onclose),e.removeListener("finish",onfinish),r&&e.removeListener("drain",r),e.removeListener("error",onerror),e.removeListener("unpipe",onunpipe),n.removeListener("end",onend),n.removeListener("end",unpipe),n.removeListener("data",ondata),a=!0,r&&s.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&r()}function pause(){a||(1===s.pipes.length&&s.pipes[0]===e?(k("false write response, pause",0),s.awaitDrainWriters=e,s.multiAwaitDrain=!1):s.pipes.length>1&&s.pipes.includes(e)&&(k("false write response, pause",s.awaitDrainWriters.size),s.awaitDrainWriters.add(e)),n.pause()),r||(r=pipeOnDrain(n,e),e.on("drain",r))}function ondata(t){k("ondata");let r=e.write(t);k("dest.write",r),!1===r&&pause()}function onerror(t){if(k("onerror",t),unpipe(),e.removeListener("error",onerror),0===e.listenerCount("error")){let r=e._writableState||e._readableState;r&&!r.errorEmitted?z(e,t):e.emit("error",t)}}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){k("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){k("unpipe"),n.unpipe(e)}return n.on("data",ondata),v(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",n),!0===e.writableNeedDrain?pause():s.flowing||(k("pipe resume"),n.resume()),e},Readable.prototype.unpipe=function(e){let t=this._readableState;if(0===t.pipes.length)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}let r=s(t.pipes,e);return -1===r||(t.pipes.splice(r,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},Readable.prototype.on=function(e,t){let r=w.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,k("on readable",n.length,n.reading),n.length?emitReadable(this):n.reading||i.nextTick(nReadingNextTick,this)),r},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(e,t){let r=w.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(updateReadableListening,this),r},Readable.prototype.off=Readable.prototype.removeListener,Readable.prototype.removeAllListeners=function(e){let t=w.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(updateReadableListening,this),t},Readable.prototype.resume=function(){let e=this._readableState;return e.flowing||(k("resume"),e.flowing=!e.readableListening,resume(this,e)),e[F]=!1,this},Readable.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[F]=!0,this},Readable.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",e=>{z(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=u(e);for(let t=1;t<r.length;t++){let n=r[t];void 0===this[n]&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},Readable.prototype[b]=function(){return streamToAsyncIterator(this)},Readable.prototype.iterator=function(e){return void 0!==e&&N(e,"options"),streamToAsyncIterator(this,e)},d(Readable.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&!1!==e.readable&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._readableState.readable&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),d(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[F]},set(e){this[F]=!!e}}}),Readable._fromList=fromList,Readable.from=function(e,t){return $(Readable,e,t)},Readable.fromWeb=function(e,t){return lazyWebStreams().newStreamReadableFromReadableStream(e,t)},Readable.toWeb=function(e,t){return lazyWebStreams().newReadableStreamFromStreamReadable(e,t)},Readable.wrap=function(e,t){var r,n;return new Readable({objectMode:null==(r=null!=(n=e.readableObjectMode)?n:e.objectMode)||r,...t,destroy(t,r){R.destroyer(e,t),r(t)}}).wrap(e)}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/state.js"(e,t,r){let{MathFloor:n,NumberIsInteger:i}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{validateInteger:s}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js"),{ERR_INVALID_ARG_VALUE:o}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js").codes,a=16384,l=16;function highWaterMarkFrom(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function getDefaultHighWaterMark(e){return e?l:a}e.exports={getHighWaterMark:function(e,t,r,s){let a=highWaterMarkFrom(t,s,r);if(null!=a){if(!i(a)||a<0)throw new o(s?`options.${r}`:"options.highWaterMark",a);return n(a)}return getDefaultHighWaterMark(e.objectMode)},getDefaultHighWaterMark,setDefaultHighWaterMark:function(e,t){s(t,"value",0),e?l=t:a=t}}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/transform.js"(e,t,r){let{ObjectSetPrototypeOf:n,Symbol:i}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Transform;let{ERR_METHOD_NOT_IMPLEMENTED:s}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js").codes,o=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js"),{getHighWaterMark:a}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/state.js");n(Transform.prototype,o.prototype),n(Transform,o);let l=i("kCallback");function Transform(e){if(!(this instanceof Transform))return new Transform(e);let t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),o.call(this,e),this._readableState.sync=!1,this[l]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function final(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{t?e?e(t):this.destroy(t):(null!=r&&this.push(r),this.push(null),e&&e())})}function prefinish(){this._final!==final&&final.call(this)}Transform.prototype._final=final,Transform.prototype._transform=function(e,t,r){throw new s("_transform()")},Transform.prototype._write=function(e,t,r){let n=this._readableState,i=this._writableState,s=n.length;this._transform(e,t,(e,t)=>{e?r(e):(null!=t&&this.push(t),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)})},Transform.prototype._read=function(){if(this[l]){let e=this[l];this[l]=null,e()}}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"(e,t,r){let{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),d=s("nodejs.stream.writable"),u=s("nodejs.stream.disturbed");function isReadableNodeStream(e,t=!1){var r;return!!(e&&"function"==typeof e.pipe&&"function"==typeof e.on&&(!t||"function"==typeof e.pause&&"function"==typeof e.resume)&&(!e._writableState||(null==(r=e._readableState)?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function isWritableNodeStream(e){var t;return!!(e&&"function"==typeof e.write&&"function"==typeof e.on&&(!e._readableState||(null==(t=e._writableState)?void 0:t.writable)!==!1))}function isDuplexNodeStream(e){return!!(e&&"function"==typeof e.pipe&&e._readableState&&"function"==typeof e.on&&"function"==typeof e.write)}function isNodeStream(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function isReadableStream(e){return!!(e&&!isNodeStream(e)&&"function"==typeof e.pipeThrough&&"function"==typeof e.getReader&&"function"==typeof e.cancel)}function isWritableStream(e){return!!(e&&!isNodeStream(e)&&"function"==typeof e.getWriter&&"function"==typeof e.abort)}function isTransformStream(e){return!!(e&&!isNodeStream(e)&&"object"==typeof e.readable&&"object"==typeof e.writable)}function isWebStream(e){return isReadableStream(e)||isWritableStream(e)||isTransformStream(e)}function isIterable(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])}function isDestroyed(e){if(!isNodeStream(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[o]||null!=n&&n.destroyed)}function isWritableEnded(e){if(!isWritableNodeStream(e))return null;if(!0===e.writableEnded)return!0;let t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function isWritableFinished(e,t){if(!isWritableNodeStream(e))return null;if(!0===e.writableFinished)return!0;let r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))}function isReadableEnded(e){if(!isReadableNodeStream(e))return null;if(!0===e.readableEnded)return!0;let t=e._readableState;return!!t&&!t.errored&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function isReadableFinished(e,t){if(!isReadableNodeStream(e))return null;let r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function isReadable(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!isDestroyed(e)&&isReadableNodeStream(e)&&e.readable&&!isReadableFinished(e)}function isWritable(e){return e&&null!=e[d]?e[d]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!isDestroyed(e)&&isWritableNodeStream(e)&&e.writable&&!isWritableEnded(e)}function isFinished(e,t){return isNodeStream(e)?!!isDestroyed(e)||!((null==t?void 0:t.readable)!==!1&&isReadable(e)||(null==t?void 0:t.writable)!==!1&&isWritable(e)):null}function isWritableErrored(e){var t,r;return isNodeStream(e)?e.writableErrored?e.writableErrored:null!=(t=null==(r=e._writableState)?void 0:r.errored)?t:null:null}function isReadableErrored(e){var t,r;return isNodeStream(e)?e.readableErrored?e.readableErrored:null!=(t=null==(r=e._readableState)?void 0:r.errored)?t:null:null}function isClosed(e){if(!isNodeStream(e))return null;if("boolean"==typeof e.closed)return e.closed;let t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&isOutgoingMessage(e)?e._closed:null}function isOutgoingMessage(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function isServerResponse(e){return"boolean"==typeof e._sent100&&isOutgoingMessage(e)}function isServerRequest(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&(null==(t=e.req)?void 0:t.upgradeOrConnect)===void 0}function willEmitClose(e){if(!isNodeStream(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!n&&isServerResponse(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)}e.exports={isDestroyed,kIsDestroyed:o,isDisturbed:function(e){var t;return!!(e&&(null!=(t=e[u])?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,r,n,i,s,o,l,d,u,c;return!!(e&&(null!=(t=null!=(r=null!=(n=null!=(i=null!=(s=null!=(o=e[a])?o:e.readableErrored)?s:e.writableErrored)?i:null==(l=e._readableState)?void 0:l.errorEmitted)?n:null==(d=e._writableState)?void 0:d.errorEmitted)?r:null==(u=e._readableState)?void 0:u.errored)?t:null==(c=e._writableState)?void 0:c.errored))},kIsErrored:a,isReadable,kIsReadable:l,kIsClosedPromise:s("nodejs.webstream.isClosedPromise"),kControllerErrorFunction:s("nodejs.webstream.controllerErrorFunction"),kIsWritable:d,isClosed,isDuplexNodeStream,isFinished,isIterable,isReadableNodeStream,isReadableStream,isReadableEnded,isReadableFinished,isReadableErrored,isNodeStream,isWebStream,isWritable,isWritableNodeStream,isWritableStream,isWritableEnded,isWritableFinished,isWritableErrored,isServerRequest,isServerResponse,willEmitClose,isTransformStream}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/writable.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{ArrayPrototypeSlice:s,Error:o,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:d,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:c,Symbol:h,SymbolHasInstance:f}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Writable,Writable.WritableState=WritableState;let{EventEmitter:p}=r("events"),b=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/legacy.js").Stream,{Buffer:g}=r("buffer"),y=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js"),{addAbortSignal:w}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),{getHighWaterMark:v,getDefaultHighWaterMark:S}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/state.js"),{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:j,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:R,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:O,ERR_STREAM_WRITE_AFTER_END:C,ERR_UNKNOWN_ENCODING:M}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js").codes,{errorOrDestroy:L}=y;function nop(){}u(Writable.prototype,b.prototype),u(Writable,b);let D=h("kOnFinished");function WritableState(e,t,n){"boolean"!=typeof n&&(n=t instanceof r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js")),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?v(this,e,"writableHighWaterMark",n):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(e&&!1===e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=onwrite.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,resetBuffer(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function resetBuffer(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function Writable(e){let t=this instanceof r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js");if(!t&&!a(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&w(e.signal,this)),b.call(this,e),y.construct(this,()=>{let e=this._writableState;e.writing||clearBuffer(this,e),finishMaybe(this,e)})}function _write(e,t,r,n){let s,o=e._writableState;if("function"==typeof r)n=r,r=o.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new M(r)}else r=o.defaultEncoding;"function"!=typeof n&&(n=nop)}if(null===t)throw new O;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=g.from(t,r),r="buffer");else if(t instanceof g)r="buffer";else if(b._isUint8Array(t))t=b._uint8ArrayToBuffer(t),r="buffer";else throw new x("chunk",["string","Buffer","Uint8Array"],t);return(o.ending?s=new C:o.destroyed&&(s=new R("write")),s)?(i.nextTick(n,s),L(e,s,!0),s):(o.pendingcb++,writeOrBuffer(e,o,t,r,n))}function writeOrBuffer(e,t,r,n,i){let s=t.objectMode?1:r.length;t.length+=s;let o=t.length<t.highWaterMark;return o||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==nop&&(t.allNoop=!1)):(t.writelen=s,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1),o&&!t.errored&&!t.destroyed}function doWrite(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new R("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function onwriteError(e,t,r,n){--t.pendingcb,n(r),errorBuffer(t),L(e,r)}function onwrite(e,t){let r=e._writableState,n=r.sync,s=r.writecb;"function"!=typeof s?L(e,new k):(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),n?i.nextTick(onwriteError,e,r,t,s):onwriteError(e,r,t,s)):(r.buffered.length>r.bufferedIndex&&clearBuffer(e,r),n?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:e,state:r},i.nextTick(afterWriteTick,r.afterWriteTickInfo)):afterWrite(e,r,1,s)))}function afterWriteTick({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,afterWrite(e,t,r,n)}function afterWrite(e,t,r,n){for(t.ending||e.destroyed||0!==t.length||!t.needDrain||(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&errorBuffer(t),finishMaybe(e,t)}function errorBuffer(e){var t,r;if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){let{chunk:n,callback:i}=e.buffered[r],s=e.objectMode?1:n.length;e.length-=s,i(null!=(t=e.errored)?t:new R("write"))}let n=e[D].splice(0);for(let t=0;t<n.length;t++)n[t](null!=(r=e.errored)?r:new R("end"));resetBuffer(e)}function clearBuffer(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:r,bufferedIndex:n,objectMode:i}=t,o=r.length-n;if(!o)return;let a=n;if(t.bufferProcessing=!0,o>1&&e._writev){t.pendingcb-=o-1;let n=t.allNoop?nop:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},i=t.allNoop&&0===a?r:s(r,a);i.allBuffers=t.allBuffers,doWrite(e,t,!0,t.length,i,"",n),resetBuffer(t)}else{do{let{chunk:n,encoding:s,callback:o}=r[a];r[a++]=null,doWrite(e,t,!1,i?1:n.length,n,s,o)}while(a<r.length&&!t.writing);a===r.length?resetBuffer(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function needFinish(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function callFinal(e,t){let r=!1;function onFinish(n){if(r)return void L(e,null!=n?n:k());if(r=!0,t.pendingcb--,n){let r=t[D].splice(0);for(let e=0;e<r.length;e++)r[e](n);L(e,n,t.sync)}else needFinish(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,i.nextTick(finish,e,t))}t.sync=!0,t.pendingcb++;try{e._final(onFinish)}catch(e){onFinish(e)}t.sync=!1}function prefinish(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,callFinal(e,t)))}function finishMaybe(e,t,r){needFinish(t)&&(prefinish(e,t),0===t.pendingcb&&(r?(t.pendingcb++,i.nextTick((e,t)=>{needFinish(t)?finish(e,t):t.pendingcb--},e,t)):needFinish(t)&&(t.pendingcb++,finish(e,t))))}function finish(e,t){t.pendingcb--,t.finished=!0;let r=t[D].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}WritableState.prototype.getBuffer=function(){return s(this.buffered,this.bufferedIndex)},l(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),l(Writable,f,{__proto__:null,value:function(e){return!!a(this,e)||this===Writable&&e&&e._writableState instanceof WritableState}}),Writable.prototype.pipe=function(){L(this,new T)},Writable.prototype.write=function(e,t,r){return!0===_write(this,e,t,r)},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||clearBuffer(this,e))},Writable.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=c(e)),!g.isEncoding(e))throw new M(e);return this._writableState.defaultEncoding=e,this},Writable.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new j("_write()")},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,r){let n,s=this._writableState;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){let r=_write(this,e,t);r instanceof o&&(n=r)}return s.corked&&(s.corked=1,this.uncork()),n||(s.errored||s.ending?s.finished?n=new A("end"):s.destroyed&&(n=new R("end")):(s.ending=!0,finishMaybe(this,s,!0),s.ended=!0)),"function"==typeof r&&(n||s.finished?i.nextTick(r,n):s[D].push(r)),this},d(Writable.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&!1!==e.writable&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._writableState.writable&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});let I=y.destroy;function lazyWebStreams(){return void 0===n&&(n={}),n}Writable.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[D].length)&&i.nextTick(errorBuffer,r),I.call(this,e,t),this},Writable.prototype._undestroy=y.undestroy,Writable.prototype._destroy=function(e,t){t(e)},Writable.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},Writable.fromWeb=function(e,t){return lazyWebStreams().newStreamWritableFromWritableStream(e,t)},Writable.toWeb=function(e){return lazyWebStreams().newWritableStreamFromStreamWritable(e)}},"./node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js"(e,t,r){let{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:d,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:g}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:S,ERR_OUT_OF_RANGE:x,ERR_UNKNOWN_SIGNAL:j}}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{normalizeEncoding:k}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js"),{isAsyncFunction:T,isArrayBufferView:R}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js").types,A={};function isInt32(e){return e===(0|e)}function isUint32(e){return e===e>>>0}let O=/^[0-7]+$/;function parseFileMode(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===f(O,e))throw new S(t,e,"must be a 32-bit unsigned integer or an octal string");e=c(e,8)}return L(e,t),e}let C=y((e,t,r=u,n=d)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);if(e<r||e>n)throw new x(t,`>= ${r} && <= ${n}`,e)}),M=y((e,t,r=-0x80000000,n=0x7fffffff)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);if(e<r||e>n)throw new x(t,`>= ${r} && <= ${n}`,e)}),L=y((e,t,r=!1)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);let n=+!!r;if(e<n||e>0xffffffff)throw new x(t,`>= ${n} && <= 4294967295`,e)});function validateString(e,t){if("string"!=typeof e)throw new v(t,"string",e)}function validateNumber(e,t,r,n){if("number"!=typeof e)throw new v(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&l(e))throw new x(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)}let D=y((e,t,r)=>{if(!i(r,e))throw new S(t,e,"must be one of: "+s(o(r,e=>"string"==typeof e?`'${e}'`:p(e)),", "))});function validateBoolean(e,t){if("boolean"!=typeof e)throw new v(t,"boolean",e)}function getOwnPropertyValueOrDefault(e,t,r){return null!=e&&h(e,t)?e[t]:r}let I=y((e,t,r=null)=>{let i=getOwnPropertyValueOrDefault(r,"allowArray",!1),s=getOwnPropertyValueOrDefault(r,"allowFunction",!1);if(!getOwnPropertyValueOrDefault(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!s||"function"!=typeof e))throw new v(t,"Object",e)}),P=y((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new v(t,"a dictionary",e)}),W=y((e,t,r=0)=>{if(!n(e))throw new v(t,"Array",e);if(e.length<r)throw new S(t,e,`must be longer than ${r}`)});function validateStringArray(e,t){W(e,t);for(let r=0;r<e.length;r++)validateString(e[r],`${t}[${r}]`)}function validateBooleanArray(e,t){W(e,t);for(let r=0;r<e.length;r++)validateBoolean(e[r],`${t}[${r}]`)}function validateAbortSignalArray(e,t){W(e,t);for(let r=0;r<e.length;r++){let n=e[r],i=`${t}[${r}]`;if(null==n)throw new v(i,"AbortSignal",n);F(n,i)}}function validateSignalName(e,t="signal"){if(validateString(e,t),void 0===A[e]){if(void 0!==A[b(e)])throw new j(e+" (signals must use all capital letters)");throw new j(e)}}let N=y((e,t="buffer")=>{if(!R(e))throw new v(t,["Buffer","TypedArray","DataView"],e)});function validateEncoding(e,t){let r=k(t),n=e.length;if("hex"===r&&n%2!=0)throw new S("encoding",t,`is invalid for data of length ${n}`)}function validatePort(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===g(e).length||+e!=e>>>0||e>65535||0===e&&!r)throw new w(t,e,r);return 0|e}let F=y((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new v(t,"AbortSignal",e)}),B=y((e,t)=>{if("function"!=typeof e)throw new v(t,"Function",e)}),$=y((e,t)=>{if("function"!=typeof e||T(e))throw new v(t,"Function",e)}),z=y((e,t)=>{if(void 0!==e)throw new v(t,"undefined",e)}),U=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(e,t){if(void 0===e||!f(U,e))throw new S(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32,isUint32,parseFileMode,validateArray:W,validateStringArray,validateBooleanArray,validateAbortSignalArray,validateBoolean,validateBuffer:N,validateDictionary:P,validateEncoding,validateFunction:B,validateInt32:M,validateInteger:C,validateNumber,validateObject:I,validateOneOf:D,validatePlainFunction:$,validatePort,validateSignalName,validateString,validateUint32:L,validateUndefined:z,validateUnion:function(e,t,r){if(!i(r,e))throw new v(t,`('${s(r,"|")}')`,e)},validateAbortSignal:F,validateLinkHeaderValue:function(e){if("string"==typeof e)return validateLinkHeaderFormat(e,"hints"),e;if(n(e)){let t=e.length,r="";if(0===t)return r;for(let n=0;n<t;n++){let i=e[n];validateLinkHeaderFormat(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new S("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},"./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"(e,t,r){let{format:n,inspect:i}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util/inspect.js"),{AggregateError:s}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],d=/^([A-Z][a-z0-9]*)+$/,u={};function assert(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function addNumericalSeparator(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function getMessage(e,t,r){if("function"==typeof t)return assert(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return(assert(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length)?t:n(t,...r)}function E(e,t,r){r||(r=Error);class n extends r{constructor(...r){super(getMessage(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[a]=!0,u[e]=n}function hideStackFrames(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}function aggregateTwoErrors(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new o([t,e],t.message);return r.code=t.code,r}return e||t}E("ERR_ASSERTION","%s",Error),E("ERR_INVALID_ARG_TYPE",(e,t,r)=>{assert("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";let s=[],o=[],a=[];for(let e of t)assert("string"==typeof e,"All expected entries have to be of type string"),l.includes(e)?s.push(e.toLowerCase()):d.test(e)?o.push(e):(assert("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(o.length>0){let e=s.indexOf("object");-1!==e&&(s.splice(s,e,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{let e=s.pop();n+=`one of type ${s.join(", ")}, or ${e}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();n+=`an instance of ${o.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var u;if(null!=(u=r.constructor)&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{let e=i(r,{depth:-1});n+=`. Received ${e}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n},TypeError),E("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");let s=e.includes(".")?"property":"argument";return`The ${s} '${e}' ${r}. Received ${n}`},TypeError),E("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;let i=null!=r&&null!=(n=r.constructor)&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${i}.`},TypeError),E("ERR_MISSING_ARGS",(...e)=>{let t;assert(e.length>0,"At least one arg needs to be specified");let r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`},TypeError),E("ERR_OUT_OF_RANGE",(e,t,r)=>{let n;if(assert(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>0x100000000)n=addNumericalSeparator(String(r));else if("bigint"==typeof r){n=String(r);let e=BigInt(2)**BigInt(32);(r>e||r<-e)&&(n=addNumericalSeparator(n)),n+="n"}else n=i(r);return`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError),E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),E("ERR_STREAM_WRITE_AFTER_END","write after end",Error),E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:class extends Error{constructor(e="The operation was aborted",t){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}},aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames,codes:u}},"./node_modules/compress-commons/node_modules/readable-stream/lib/ours/index.js"(e,t,r){let n=r("stream");if(n&&"disable"===process.env.READABLE_STREAM){let t=n.promises;e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>t}),e.exports.Stream=n.Stream}else{let t=r("./node_modules/compress-commons/node_modules/readable-stream/lib/stream.js"),n=r("./node_modules/compress-commons/node_modules/readable-stream/lib/stream/promises.js"),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get:()=>n}),e.exports.Stream=t.Stream}e.exports.default=e.exports},"./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"(e){e.exports={AggregateError:class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack}
|
|
4
4
|
`;super(t),this.name="AggregateError",this.errors=e}},ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},"./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js"(e,t,r){let n=r("buffer"),{format:i,inspect:s}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util/inspect.js"),{codes:{ERR_INVALID_ARG_TYPE:o}}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:d}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),u=globalThis.AbortSignal||r("./node_modules/abort-controller/dist/abort-controller.mjs").h8,c=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,h=Object.getPrototypeOf(async function(){}).constructor,f=globalThis.Blob||n.Blob,validateAbortSignal=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new o(t,"AbortSignal",e)};e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}},promisify:e=>new Promise((t,r)=>{e((e,...n)=>e?r(e):t(...n))}),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:e=>e instanceof h,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:void 0!==f?function(e){return e instanceof f}:function(e){return!1},deprecate:(e,t)=>e,addAbortListener:r("events").addAbortListener||function(e,t){let r;if(void 0===e)throw new o("signal","AbortSignal",e);validateAbortSignal(e,"signal");if("function"!=typeof t)throw new o("listener","Function",t);return e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[d](){var e;null==(e=r)||e()}}},AbortSignalAny:u.any||function(e){if(1===e.length)return e[0];let t=new c,abort=()=>t.abort();return e.forEach(e=>{validateAbortSignal(e,"signals"),e.addEventListener("abort",abort,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",abort))},{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},"./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util/inspect.js"(e){e.exports={format:(e,...t)=>e.replace(/%([sdifj])/g,function(...[e,r]){let n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"!==r||"object"!=typeof n)return n.toString();{let e=n.constructor!==Object?n.constructor.name:"";return`${e} {}`.trim()}}),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;else if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}},"./node_modules/compress-commons/node_modules/readable-stream/lib/stream.js"(e,t,r){let{Buffer:n}=r("buffer"),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{promisify:{custom:a}}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js"),{streamReturningOperators:l,promiseReturningOperators:d}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/operators.js"),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js"),c=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/compose.js"),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:f}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/state.js"),{pipeline:p}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{destroyer:b}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js"),g=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),y=r("./node_modules/compress-commons/node_modules/readable-stream/lib/stream/promises.js"),w=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"),v=e.exports=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/legacy.js").Stream;for(let e of(v.isDestroyed=w.isDestroyed,v.isDisturbed=w.isDisturbed,v.isErrored=w.isErrored,v.isReadable=w.isReadable,v.isWritable=w.isWritable,v.Readable=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/readable.js"),s(l))){let t=l[e];function fn(...e){if(new.target)throw u();return v.Readable.from(o(t,this,e))}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}for(let e of s(d)){let t=d[e];function fn(...e){if(new.target)throw u();return o(t,this,e)}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}v.Writable=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/writable.js"),v.Duplex=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js"),v.Transform=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/transform.js"),v.PassThrough=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/passthrough.js"),v.pipeline=p;let{addAbortSignal:S}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js");v.addAbortSignal=S,v.finished=g,v.destroy=b,v.compose=c,v.setDefaultHighWaterMark=h,v.getDefaultHighWaterMark=f,i(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(g,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),v.Stream=v,v._isUint8Array=function(e){return e instanceof Uint8Array},v._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},"./node_modules/compress-commons/node_modules/readable-stream/lib/stream/promises.js"(e,t,r){let{ArrayPrototypePop:n,Promise:i}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js"),{isIterable:s,isNodeStream:o,isWebStream:a}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js"),{pipelineImpl:l}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{finished:d}=r("./node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js");r("./node_modules/compress-commons/node_modules/readable-stream/lib/stream.js"),e.exports={finished:d,pipeline:function(...e){return new i((t,r)=>{let i,d,u=e[e.length-1];if(u&&"object"==typeof u&&!o(u)&&!s(u)&&!a(u)){let t=n(e);i=t.signal,d=t.end}l(e,(e,n)=>{e?r(e):t(n)},{signal:i,end:d})})}}},"./node_modules/core-util-is/lib/util.js"(e,t,r){function objectToString(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===objectToString(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===objectToString(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===objectToString(e)},t.isError=function(e){return"[object Error]"===objectToString(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r("buffer").Buffer.isBuffer},"./node_modules/crc-32/crc32.js"(e,t){var r;r=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1)?-0x12477ce0^e>>>1:e>>>1,t[r]=e;return"u">typeof Int32Array?new Int32Array(t):t}(),r=function(e){var t=0,r=0,n=0,i="u">typeof Int32Array?new Int32Array(4096):Array(4096);for(n=0;256!=n;++n)i[n]=e[n];for(n=0;256!=n;++n)for(r=e[n],t=256+n;t<4096;t+=256)r=i[t]=r>>>8^e[255&r];var s=[];for(n=1;16!=n;++n)s[n-1]="u">typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return s}(t),n=r[0],i=r[1],s=r[2],o=r[3],a=r[4],l=r[5],d=r[6],u=r[7],c=r[8],h=r[9],f=r[10],p=r[11],b=r[12],g=r[13],y=r[14];function crc32_bstr(e,r){for(var n=-1^r,i=0,s=e.length;i<s;)n=n>>>8^t[(n^e.charCodeAt(i++))&255];return~n}function crc32_buf(e,r){for(var w=-1^r,v=e.length-15,S=0;S<v;)w=y[e[S++]^255&w]^g[e[S++]^w>>8&255]^b[e[S++]^w>>16&255]^p[e[S++]^w>>>24]^f[e[S++]]^h[e[S++]]^c[e[S++]]^u[e[S++]]^d[e[S++]]^l[e[S++]]^a[e[S++]]^o[e[S++]]^s[e[S++]]^i[e[S++]]^n[e[S++]]^t[e[S++]];for(v+=15;S<v;)w=w>>>8^t[(w^e[S++])&255];return~w}function crc32_str(e,r){for(var n=-1^r,i=0,s=e.length,o=0,a=0;i<s;)(o=e.charCodeAt(i++))<128?n=n>>>8^t[(n^o)&255]:o<2048?n=(n=n>>>8^t[(n^(192|o>>6&31))&255])>>>8^t[(n^(128|63&o))&255]:o>=55296&&o<57344?(o=(1023&o)+64,a=1023&e.charCodeAt(i++),n=(n=(n=(n=n>>>8^t[(n^(240|o>>8&7))&255])>>>8^t[(n^(128|o>>2&63))&255])>>>8^t[(n^(128|a>>6&15|(3&o)<<4))&255])>>>8^t[(n^(128|63&a))&255]):n=(n=(n=n>>>8^t[(n^(224|o>>12&15))&255])>>>8^t[(n^(128|o>>6&63))&255])>>>8^t[(n^(128|63&o))&255];return~n}e.table=t,e.bstr=crc32_bstr,e.buf=crc32_buf,e.str=crc32_str},"u"<typeof DO_NOT_EXPORT_CRC?r(t):r({})},"./node_modules/crc32-stream/lib/crc32-stream.js"(e,t,r){let{Transform:n}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/index.js"),i=r("./node_modules/crc-32/crc32.js");e.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,t,r){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),r(null,e)}digest(e){let t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}},"./node_modules/crc32-stream/lib/deflate-crc32-stream.js"(e,t,r){let{DeflateRaw:n}=r("zlib"),i=r("./node_modules/crc-32/crc32.js");e.exports=class 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){return e&&(this.compressedSize+=e.length),super.push(e,t)}_transform(e,t,r){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,t,r)}digest(e){let t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}}},"./node_modules/crc32-stream/lib/index.js"(e,t,r){e.exports={CRC32Stream:r("./node_modules/crc32-stream/lib/crc32-stream.js"),DeflateCRC32Stream:r("./node_modules/crc32-stream/lib/deflate-crc32-stream.js")}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(e,t,r){let n,{SymbolDispose:i}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{AbortError:s,codes:o}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{isNodeStream:a,isWebStream:l,kControllerErrorFunction:d}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),u=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{ERR_INVALID_ARG_TYPE:c}=o;e.exports.addAbortSignal=function(t,r){if("object"!=typeof t||!("aborted"in t))throw new c("signal","AbortSignal",t);if(!a(r)&&!l(r))throw new c("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;let o=a(t)?()=>{t.destroy(new s(void 0,{cause:e.reason}))}:()=>{t[d](new s(void 0,{cause:e.reason}))};return e.aborted?o():u(t,(n=n||r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(e,o)[i]),t}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(e,t,r){let{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:s,Uint8Array:o}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{Buffer:a}=r("buffer"),{inspect:l}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js");e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;let e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);let t=a.allocUnsafe(e>>>0),r=this.head,n=0;for(;r;)s(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){let r=this.head.data;if(e<r.length){let t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{let s=r.data;if(e>s.length)t+=s,e-=s.length;else{e===s.length?(t+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(s,0,e),this.head=r,r.data=n(s,e));break}++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){let t=a.allocUnsafe(e),r=e,n=this.head,i=0;do{let a=n.data;if(e>a.length)s(t,a,r-e),e-=a.length;else{e===a.length?(s(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(s(t,new o(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:!1})}}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/compose.js"(e,t,r){let{pipeline:n}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"),i=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js"),{destroyer:s}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"),{isNodeStream:o,isReadable:a,isWritable:l,isWebStream:d,isTransformStream:u,isWritableStream:c,isReadableStream:h}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),g=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js");e.exports=function(...e){let t,r,y,w,v;if(0===e.length)throw new b("streams");if(1===e.length)return i.from(e[0]);let S=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){let t=e.length-1;e[t]=i.from(e[t])}for(let t=0;t<e.length;++t)if(o(e[t])||d(e[t])){if(t<e.length-1&&!(a(e[t])||h(e[t])||u(e[t])))throw new p(`streams[${t}]`,S[t],"must be readable");if(t>0&&!(l(e[t])||c(e[t])||u(e[t])))throw new p(`streams[${t}]`,S[t],"must be writable")}function onfinished(e){let t=w;w=null,t?t(e):e?v.destroy(e):T||k||v.destroy()}let x=e[0],j=n(e,onfinished),k=!!(l(x)||c(x)||u(x)),T=!!(a(j)||h(j)||u(j));if(v=new i({writableObjectMode:!!(null!=x&&x.writableObjectMode),readableObjectMode:!!(null!=j&&j.readableObjectMode),writable:k,readable:T}),k){if(o(x))v._write=function(e,r,n){x.write(e,r)?n():t=n},v._final=function(e){x.end(),r=e},x.on("drain",function(){if(t){let e=t;t=null,e()}});else if(d(x)){let e=(u(x)?x.writable:x).getWriter();v._write=async function(t,r,n){try{await e.ready,e.write(t).catch(()=>{}),n()}catch(e){n(e)}},v._final=async function(t){try{await e.ready,e.close().catch(()=>{}),r=t}catch(e){t(e)}}}g(u(j)?j.readable:j,()=>{if(r){let e=r;r=null,e()}})}if(T){if(o(j))j.on("readable",function(){if(y){let e=y;y=null,e()}}),j.on("end",function(){v.push(null)}),v._read=function(){for(;;){let e=j.read();if(null===e){y=v._read;return}if(!v.push(e))return}};else if(d(j)){let e=(u(j)?j.readable:j).getReader();v._read=async function(){for(;;)try{let{value:t,done:r}=await e.read();if(!v.push(t))return;if(r)return void v.push(null)}catch{return}}}}return v._destroy=function(e,n){e||null===w||(e=new f),y=null,t=null,r=null,null===w?n(e):(w=n,o(j)&&s(j,e))},v}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"(e,t,r){let n=r("./node_modules/process/index.js"),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:s},AbortError:o}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{Symbol:a}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{kIsDestroyed:l,isDestroyed:d,isFinished:u,isServerRequest:c}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),h=a("kDestroy"),f=a("kConstruct");function checkError(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function _destroy(e,t,r){let i=!1;function onDestroy(t){if(i)return;i=!0;let s=e._readableState,o=e._writableState;checkError(t,o,s),o&&(o.closed=!0),s&&(s.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(emitErrorCloseNT,e,t):n.nextTick(emitCloseNT,e)}try{e._destroy(t||null,onDestroy)}catch(e){onDestroy(e)}}function emitErrorCloseNT(e,t){emitErrorNT(e,t),emitCloseNT(e)}function emitCloseNT(e){let t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function emitErrorNT(e,t){let r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function errorOrDestroy(e,t,r){let i=e._readableState,s=e._writableState;if(null!=s&&s.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=s&&s.autoDestroy?e.destroy(t):t&&(t.stack,s&&!s.errored&&(s.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(emitErrorNT,e,t):emitErrorNT(e,t))}function constructNT(e){let t=!1;function onConstruct(r){if(t)return void errorOrDestroy(e,null!=r?r:new s);t=!0;let i=e._readableState,o=e._writableState,a=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),a.destroyed?e.emit(h,r):r?errorOrDestroy(e,r,!0):n.nextTick(emitConstructNT,e)}try{e._construct(e=>{n.nextTick(onConstruct,e)})}catch(e){n.nextTick(onConstruct,e)}}function emitConstructNT(e){e.emit(f)}function isRequest(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function emitCloseLegacy(e){e.emit("close")}function emitErrorCloseLegacy(e,t){e.emit("error",t),n.nextTick(emitCloseLegacy,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(f,t),e.listenerCount(f)>1||n.nextTick(constructNT,e)},destroyer:function(e,t){!(!e||d(e))&&(t||u(e)||(t=new o),c(e)?(e.socket=null,e.destroy(t)):isRequest(e)?e.abort():isRequest(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(emitErrorCloseLegacy,e,t):n.nextTick(emitCloseLegacy,e),e.destroyed||(e[l]=!0))},destroy:function(e,t){let r=this._readableState,n=this._writableState,s=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?"function"==typeof t&&t():(checkError(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),s.constructed?_destroy(this,e,t):this.once(h,function(r){_destroy(this,i(r,e),t)})),this},undestroy:function(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js"(e,t,r){let n,i,{ObjectDefineProperties:s,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:a,ObjectSetPrototypeOf:l}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Duplex;let d=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js"),u=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/writable.js");l(Duplex.prototype,d.prototype),l(Duplex,d);{let e=a(u.prototype);for(let t=0;t<e.length;t++){let r=e[t];Duplex.prototype[r]||(Duplex.prototype[r]=u.prototype[r])}}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);d.call(this,e),u.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}function lazyWebStreams(){return void 0===n&&(n={}),n}s(Duplex.prototype,{writable:{__proto__:null,...o(u.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(u.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(u.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(u.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(u.prototype,"writableLength")},writableFinished:{__proto__:null,...o(u.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(u.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(u.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(u.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),Duplex.fromWeb=function(e,t){return lazyWebStreams().newStreamDuplexFromReadableWritablePair(e,t)},Duplex.toWeb=function(e){return lazyWebStreams().newReadableWritablePairFromDuplex(e)},Duplex.from=function(e){return i||(i=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplexify.js")),i(e,"body")}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplexify.js"(e,t,r){"use strict";let n=r("./node_modules/process/index.js"),i=r("buffer"),{isReadable:s,isWritable:o,isIterable:a,isNodeStream:l,isReadableNodeStream:d,isWritableNodeStream:u,isDuplexNodeStream:c,isReadableStream:h,isWritableStream:f}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),p=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:y}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{destroyer:w}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"),v=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js"),S=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js"),x=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/writable.js"),{createDeferredPromise:j}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"),k=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/from.js"),T=globalThis.Blob||i.Blob,R=void 0!==T?function(e){return e instanceof T}:function(e){return!1},A=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,{FunctionPrototypeCall:O}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js");class C extends v{constructor(e){super(e),(null==e?void 0:e.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(null==e?void 0:e.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function fromAsyncGen(e){let{promise:t,resolve:r}=j(),i=new A,s=i.signal;return{value:e(async function*(){for(;;){let e=t;t=null;let{chunk:i,done:o,cb:a}=await e;if(n.nextTick(a),o)return;if(s.aborted)throw new b(void 0,{cause:s.reason});({promise:t,resolve:r}=j()),yield i}}(),{signal:s}),write(e,t,n){let i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){let t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}function _duplexify(e){let t,r,n,i,a,l=e.readable&&"function"!=typeof e.readable.read?S.wrap(e.readable):e.readable,d=e.writable,u=!!s(l),c=!!o(d);function onfinished(e){let t=i;i=null,t?t(e):e&&a.destroy(e)}return a=new C({readableObjectMode:!!(null!=l&&l.readableObjectMode),writableObjectMode:!!(null!=d&&d.writableObjectMode),readable:u,writable:c}),c&&(p(d,e=>{c=!1,e&&w(l,e),onfinished(e)}),a._write=function(e,r,n){d.write(e,r)?n():t=n},a._final=function(e){d.end(),r=e},d.on("drain",function(){if(t){let e=t;t=null,e()}}),d.on("finish",function(){if(r){let e=r;r=null,e()}})),u&&(p(l,e=>{u=!1,e&&w(l,e),onfinished(e)}),l.on("readable",function(){if(n){let e=n;n=null,e()}}),l.on("end",function(){a.push(null)}),a._read=function(){for(;;){let e=l.read();if(null===e){n=a._read;return}if(!a.push(e))return}}),a._destroy=function(e,s){e||null===i||(e=new b),n=null,t=null,r=null,null===i?s(e):(i=s,w(d,e),w(l,e))},a}e.exports=function duplexify(e,t){if(c(e))return e;if(d(e))return _duplexify({readable:e});if(u(e))return _duplexify({writable:e});if(l(e))return _duplexify({writable:!1,readable:!1});if(h(e))return _duplexify({readable:S.fromWeb(e)});if(f(e))return _duplexify({writable:x.fromWeb(e)});if("function"==typeof e){let{value:r,write:i,final:s,destroy:o}=fromAsyncGen(e);if(a(r))return k(C,r,{objectMode:!0,write:i,final:s,destroy:o});let l=null==r?void 0:r.then;if("function"==typeof l){let e,t=O(l,r,e=>{if(null!=e)throw new y("nully","body",e)},t=>{w(e,t)});return e=new C({objectMode:!0,readable:!1,write:i,final(e){s(async()=>{try{await t,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}})},destroy:o})}throw new y("Iterable, AsyncIterable or AsyncFunction",t,r)}if(R(e))return duplexify(e.arrayBuffer());if(a(e))return k(C,e,{objectMode:!0,writable:!1});if(h(null==e?void 0:e.readable)&&f(null==e?void 0:e.writable))return C.fromWeb(e);if("object"==typeof(null==e?void 0:e.writable)||"object"==typeof(null==e?void 0:e.readable))return _duplexify({readable:null!=e&&e.readable?d(null==e?void 0:e.readable)?null==e?void 0:e.readable:duplexify(e.readable):void 0,writable:null!=e&&e.writable?u(null==e?void 0:e.writable)?null==e?void 0:e.writable:duplexify(e.writable):void 0});let r=null==e?void 0:e.then;if("function"==typeof r){let t;return O(r,e,e=>{null!=e&&t.push(e),t.push(null)},e=>{w(t,e)}),t=new C({objectMode:!0,writable:!1,read(){}})}throw new g(t,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{AbortError:s,codes:o}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=o,{kEmptyObject:d,once:u}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"),{validateAbortSignal:c,validateFunction:h,validateObject:f,validateBoolean:p}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js"),{Promise:b,PromisePrototypeThen:g,SymbolDispose:y}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{isClosed:w,isReadable:v,isReadableNodeStream:S,isReadableStream:x,isReadableFinished:j,isReadableErrored:k,isWritable:T,isWritableNodeStream:R,isWritableStream:A,isWritableFinished:O,isWritableErrored:C,isNodeStream:M,willEmitClose:L,kIsClosedPromise:D}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js");function isRequest(e){return e.setHeader&&"function"==typeof e.abort}let nop=()=>{};function eos(e,t,o){var p,b;if(2==arguments.length?(o=t,t=d):null==t?t=d:f(t,"options"),h(o,"callback"),c(t.signal,"options.signal"),o=u(o),x(e)||A(e))return eosWeb(e,t,o);if(!M(e))throw new a("stream",["ReadableStream","WritableStream","Stream"],e);let g=null!=(p=t.readable)?p:S(e),D=null!=(b=t.writable)?b:R(e),I=e._writableState,P=e._readableState,onlegacyfinish=()=>{e.writable||onfinish()},W=L(e)&&S(e)===g&&R(e)===D,N=O(e,!1),onfinish=()=>{N=!0,e.destroyed&&(W=!1),W&&(!e.readable||g)||(!g||F)&&o.call(e)},F=j(e,!1),onend=()=>{F=!0,e.destroyed&&(W=!1),W&&(!e.writable||D)||(!D||N)&&o.call(e)},onerror=t=>{o.call(e,t)},B=w(e),onclose=()=>{B=!0;let t=C(e)||k(e);return t&&"boolean"!=typeof t?o.call(e,t):g&&!F&&S(e,!0)&&!j(e,!1)||D&&!N&&!O(e,!1)?o.call(e,new l):void o.call(e)},onclosed=()=>{B=!0;let t=C(e)||k(e);if(t&&"boolean"!=typeof t)return o.call(e,t);o.call(e)},onrequest=()=>{e.req.on("finish",onfinish)};isRequest(e)?(e.on("complete",onfinish),W||e.on("abort",onclose),e.req?onrequest():e.on("request",onrequest)):D&&!I&&(e.on("end",onlegacyfinish),e.on("close",onlegacyfinish)),W||"boolean"!=typeof e.aborted||e.on("aborted",onclose),e.on("end",onend),e.on("finish",onfinish),!1!==t.error&&e.on("error",onerror),e.on("close",onclose),B?i.nextTick(onclose):null!=I&&I.errorEmitted||null!=P&&P.errorEmitted?W||i.nextTick(onclosed):!g&&(!W||v(e))&&(N||!1===T(e))||!D&&(!W||T(e))&&(F||!1===v(e))?i.nextTick(onclosed):P&&e.req&&e.aborted&&i.nextTick(onclosed);let cleanup=()=>{o=nop,e.removeListener("aborted",onclose),e.removeListener("complete",onfinish),e.removeListener("abort",onclose),e.removeListener("request",onrequest),e.req&&e.req.removeListener("finish",onfinish),e.removeListener("end",onlegacyfinish),e.removeListener("close",onlegacyfinish),e.removeListener("finish",onfinish),e.removeListener("end",onend),e.removeListener("error",onerror),e.removeListener("close",onclose)};if(t.signal&&!B){let abort=()=>{let r=o;cleanup(),r.call(e,new s(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)i.nextTick(abort);else{let i=(n=n||r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(t.signal,abort),s=o;o=u((...t)=>{i[y](),s.apply(e,t)})}}return cleanup}function eosWeb(e,t,o){let a=!1,l=nop;if(t.signal)if(l=()=>{a=!0,o.call(e,new s(void 0,{cause:t.signal.reason}))},t.signal.aborted)i.nextTick(l);else{let i=(n=n||r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js").addAbortListener)(t.signal,l),s=o;o=u((...t)=>{i[y](),s.apply(e,t)})}let resolverFn=(...t)=>{a||i.nextTick(()=>o.apply(e,t))};return g(e[D].promise,resolverFn,resolverFn),nop}function finished(e,t){var r;let n=!1;return null===t&&(t=d),null!=(r=t)&&r.cleanup&&(p(t.cleanup,"cleanup"),n=t.cleanup),new b((r,i)=>{let s=eos(e,t,e=>{n&&s(),e?i(e):r()})})}e.exports=eos,e.exports.finished=finished},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/from.js"(e,t,r){let n=r("./node_modules/process/index.js"),{PromisePrototypeThen:i,SymbolAsyncIterator:s,SymbolIterator:o}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{Buffer:a}=r("buffer"),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:d}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js").codes;e.exports=function(e,t,r){let u,c;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[s])c=!0,u=t[s]();else if(t&&t[o])c=!1,u=t[o]();else throw new l("iterable",["Iterable"],t);let h=new e({objectMode:!0,highWaterMark:1,...r}),f=!1;async function close(e){let t=null!=e,r="function"==typeof u.throw;if(t&&r){let{value:t,done:r}=await u.throw(e);if(await t,r)return}if("function"==typeof u.return){let{value:e}=await u.return();await e}}async function next(){for(;;){try{let{value:e,done:t}=c?await u.next():u.next();if(t)h.push(null);else{let t=e&&"function"==typeof e.then?await e:e;if(null===t)throw f=!1,new d;if(h.push(t))continue;f=!1}}catch(e){h.destroy(e)}break}}return h._read=function(){f||(f=!0,next())},h._destroy=function(e,t){i(close(e),()=>n.nextTick(t,e),r=>n.nextTick(t,r||e))},h}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/legacy.js"(e,t,r){let{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{EventEmitter:s}=r("events");function Stream(e){s.call(this,e)}function prependListener(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(Stream.prototype,s.prototype),i(Stream,s),Stream.prototype.pipe=function(e,t){let r=this;function ondata(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function ondrain(){r.readable&&r.resume&&r.resume()}r.on("data",ondata),e.on("drain",ondrain),e._isStdio||t&&!1===t.end||(r.on("end",onend),r.on("close",onclose));let n=!1;function onend(){n||(n=!0,e.end())}function onclose(){n||(n=!0,"function"==typeof e.destroy&&e.destroy())}function onerror(e){cleanup(),0===s.listenerCount(this,"error")&&this.emit("error",e)}function cleanup(){r.removeListener("data",ondata),e.removeListener("drain",ondrain),r.removeListener("end",onend),r.removeListener("close",onclose),r.removeListener("error",onerror),e.removeListener("error",onerror),r.removeListener("end",cleanup),r.removeListener("close",cleanup),e.removeListener("close",cleanup)}return prependListener(r,"error",onerror),prependListener(e,"error",onerror),r.on("end",cleanup),r.on("close",cleanup),e.on("close",cleanup),e.emit("pipe",r),e},e.exports={Stream,prependListener}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/operators.js"(e,t,r){let n=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:s,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:l}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{validateAbortSignal:d,validateInteger:u,validateObject:c}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js"),h=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js").Symbol("kWeak"),f=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js").Symbol("kResistStopPropagation"),{finished:p}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),b=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/compose.js"),{addAbortSignalNoValidate:g}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),{isWritable:y,isNodeStream:w}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),{deprecate:v}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"),{ArrayPrototypePush:S,Boolean:x,MathFloor:j,Number:k,NumberIsNaN:T,Promise:R,PromiseReject:A,PromiseResolve:O,PromisePrototypeThen:C,Symbol:M}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),L=M("kEmpty"),D=M("kEof");function compose(e,t){if(null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),w(e)&&!y(e))throw new i("stream",e,"must be writable");let r=b(this,e);return null!=t&&t.signal&&g(t.signal,r),r}function map(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal");let n=1;(null==t?void 0:t.concurrency)!=null&&(n=j(t.concurrency));let i=n-1;return(null==t?void 0:t.highWaterMark)!=null&&(i=j(t.highWaterMark)),u(n,"options.concurrency",1),u(i,"options.highWaterMark",0),i+=n,(async function*(){let s,o,a=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js").AbortSignalAny([null==t?void 0:t.signal].filter(x)),d=this,u=[],c={signal:a},h=!1,f=0;function onCatch(){h=!0,afterItemProcessed()}function afterItemProcessed(){f-=1,maybeResume()}function maybeResume(){o&&!h&&f<n&&u.length<i&&(o(),o=null)}!async function(){try{for await(let t of d){if(h)return;if(a.aborted)throw new l;try{if((t=e(t,c))===L)continue;t=O(t)}catch(e){t=A(e)}f+=1,C(t,afterItemProcessed,onCatch),u.push(t),s&&(s(),s=null),!h&&(u.length>=i||f>=n)&&await new R(e=>{o=e})}u.push(D)}catch(t){let e=A(t);C(e,afterItemProcessed,onCatch),u.push(e)}finally{h=!0,s&&(s(),s=null)}}();try{for(;;){for(;u.length>0;){let e=await u[0];if(e===D)return;if(a.aborted)throw new l;e!==L&&(yield e),u.shift(),maybeResume()}await new R(e=>{s=e})}}finally{h=!0,o&&(o(),o=null)}}).call(this)}function asIndexedPairs(e){return null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&d(e.signal,"options.signal"),(async function*(){let t=0;for await(let n of this){var r;if(null!=e&&null!=(r=e.signal)&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,n]}}).call(this)}async function some(e,t){for await(let r of filter.call(this,e,t))return!0;return!1}async function every(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);return!await some.call(this,async(...t)=>!await e(...t),t)}async function find(e,t){for await(let r of filter.call(this,e,t))return r}async function forEach(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);async function forEachFn(t,r){return await e(t,r),L}for await(let e of map.call(this,forEachFn,t));}function filter(e,t){if("function"!=typeof e)throw new s("fn",["Function","AsyncFunction"],e);async function filterFn(t,r){return await e(t,r)?t:L}return map.call(this,filterFn,t)}class I extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function reduce(e,t,r){var i,o;if("function"!=typeof e)throw new s("reducer",["Function","AsyncFunction"],e);null!=r&&c(r,"options"),(null==r?void 0:r.signal)!=null&&d(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!=(i=r.signal)&&i.aborted){let e=new l(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(e)),e}let u=new n,b=u.signal;null!=r&&r.signal&&r.signal.addEventListener("abort",()=>u.abort(),{once:!0,[h]:this,[f]:!0});let g=!1;try{for await(let n of this){if(g=!0,null!=r&&null!=(o=r.signal)&&o.aborted)throw new l;a?t=await e(t,n,{signal:b}):(t=n,a=!0)}if(!g&&!a)throw new I}finally{u.abort()}return t}async function toArray(e){null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&d(e.signal,"options.signal");let t=[];for await(let n of this){var r;if(null!=e&&null!=(r=e.signal)&&r.aborted)throw new l(void 0,{cause:e.signal.reason});S(t,n)}return t}function flatMap(e,t){let r=map.call(this,e,t);return(async function*(){for await(let e of r)yield*e}).call(this)}function toIntegerOrInfinity(e){if(T(e=k(e)))return 0;if(e<0)throw new a("number",">= 0",e);return e}function drop(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),e=toIntegerOrInfinity(e),(async function*(){var r,n;if(null!=t&&null!=(r=t.signal)&&r.aborted)throw new l;for await(let r of this){if(null!=t&&null!=(n=t.signal)&&n.aborted)throw new l;e--<=0&&(yield r)}}).call(this)}function take(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&d(t.signal,"options.signal"),e=toIntegerOrInfinity(e),(async function*(){var r,n;if(null!=t&&null!=(r=t.signal)&&r.aborted)throw new l;for await(let r of this){if(null!=t&&null!=(n=t.signal)&&n.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}).call(this)}e.exports.streamReturningOperators={asIndexedPairs:v(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop,filter,flatMap,map,take,compose},e.exports.promiseReturningOperators={every,forEach,reduce,toArray,some,find}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/passthrough.js"(e,t,r){let{ObjectSetPrototypeOf:n}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js");e.exports=PassThrough;let i=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/transform.js");function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}n(PassThrough.prototype,i.prototype),n(PassThrough,i),PassThrough.prototype._transform=function(e,t,r){r(null,e)}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"(e,t,r){"use strict";let n,i,s,o=r("./node_modules/process/index.js"),{ArrayIsArray:a,Promise:l,SymbolAsyncIterator:d,SymbolDispose:u}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),c=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),{once:h}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"),f=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"),p=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js"),{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:y,ERR_MISSING_ARGS:w,ERR_STREAM_DESTROYED:v,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:x}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{validateFunction:j,validateAbortSignal:k}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js"),{isIterable:T,isReadable:R,isReadableNodeStream:A,isNodeStream:O,isTransformStream:C,isWebStream:M,isReadableStream:L,isReadableFinished:D}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),I=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1;function destroyer(e,t,r){let n=!1;return e.on("close",()=>{n=!0}),{destroy:t=>{n||(n=!0,f.destroyer(e,t||new v("pipe")))},cleanup:c(e,{readable:t,writable:r},e=>{n=!e})}}function popCallback(e){return j(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function makeAsyncIterable(e){if(T(e))return e;if(A(e))return fromReadable(e);throw new g("val",["Readable","Iterable","AsyncIterable"],e)}async function*fromReadable(e){i||(i=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js")),yield*i.prototype[d].call(e)}async function pumpToNode(e,t,r,{end:n}){let i,s=null,resume=e=>{if(e&&(i=e),s){let e=s;s=null,e()}},wait=()=>new l((e,t)=>{i?t(i):s=()=>{i?t(i):e()}});t.on("drain",resume);let o=c(t,{readable:!1},resume);try{for await(let r of(t.writableNeedDrain&&await wait(),e))t.write(r)||await wait();n&&(t.end(),await wait()),r()}catch(e){r(i!==e?b(i,e):e)}finally{o(),t.off("drain",resume)}}async function pumpToWeb(e,t,r,{end:n}){C(t)&&(t=t.writable);let i=t.getWriter();try{for await(let t of e)await i.ready,i.write(t).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function pipeline(...e){return pipelineImpl(e,h(popCallback(e)))}function pipelineImpl(e,t,i){let l,d,c,h;if(1===e.length&&a(e[0])&&(e=e[0]),e.length<2)throw new w("streams");let f=new I,b=f.signal,v=null==i?void 0:i.signal,S=[];function abort(){finishImpl(new x)}k(v,"options.signal"),s=s||r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js").addAbortListener,v&&(l=s(v,abort));let j=[],D=0;function finish(e){finishImpl(e,0==--D)}function finishImpl(e,r){var n;if(e&&(!d||"ERR_STREAM_PREMATURE_CLOSE"===d.code)&&(d=e),d||r){for(;j.length;)j.shift()(d);null==(n=l)||n[u](),f.abort(),r&&(d||S.forEach(e=>e()),o.nextTick(t,d,c))}}for(let t=0;t<e.length;t++){let s=e[t],a=t<e.length-1,l=t>0,d=a||(null==i?void 0:i.end)!==!1,u=t===e.length-1;if(O(s)){if(d){let{destroy:e,cleanup:t}=destroyer(s,a,l);j.push(e),R(s)&&u&&S.push(t)}function onError(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&finish(e)}s.on("error",onError),R(s)&&u&&S.push(()=>{s.removeListener("error",onError)})}if(0===t)if("function"==typeof s){if(!T(h=s({signal:b})))throw new y("Iterable, AsyncIterable or Stream","source",h)}else h=T(s)||A(s)||C(s)?s:p.from(s);else if("function"==typeof s){var P,W;if(h=s(h=C(h)?makeAsyncIterable(null==(P=h)?void 0:P.readable):makeAsyncIterable(h),{signal:b}),a){if(!T(h,!0))throw new y("AsyncIterable",`transform[${t-1}]`,h)}else{n||(n=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/passthrough.js"));let e=new n({objectMode:!0}),t=null==(W=h)?void 0:W.then;if("function"==typeof t)D++,t.call(h,t=>{c=t,null!=t&&e.write(t),d&&e.end(),o.nextTick(finish)},t=>{e.destroy(t),o.nextTick(finish,t)});else if(T(h,!0))D++,pumpToNode(h,e,finish,{end:d});else if(L(h)||C(h)){let t=h.readable||h;D++,pumpToNode(t,e,finish,{end:d})}else throw new y("AsyncIterable or Promise","destination",h);let{destroy:i,cleanup:s}=destroyer(h=e,!1,!0);j.push(i),u&&S.push(s)}}else if(O(s)){if(A(h)){D+=2;let e=pipe(h,s,finish,{end:d});R(s)&&u&&S.push(e)}else if(C(h)||L(h)){let e=h.readable||h;D++,pumpToNode(e,s,finish,{end:d})}else if(T(h))D++,pumpToNode(h,s,finish,{end:d});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=s}else if(M(s)){if(A(h))D++,pumpToWeb(makeAsyncIterable(h),s,finish,{end:d});else if(L(h)||T(h))D++,pumpToWeb(h,s,finish,{end:d});else if(C(h))D++,pumpToWeb(h.readable,s,finish,{end:d});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=s}else h=p.from(s)}return(null!=b&&b.aborted||null!=v&&v.aborted)&&o.nextTick(abort),h}function pipe(e,t,r,{end:n}){let i=!1;if(t.on("close",()=>{i||r(new S)}),e.pipe(t,{end:!1}),n){function endFn(){i=!0,t.end()}D(e)?o.nextTick(endFn):e.once("end",endFn)}else r();return c(e,{readable:!0,writable:!1},t=>{let n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)}),c(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl,pipeline}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{ArrayPrototypeIndexOf:s,NumberIsInteger:o,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:d,ObjectKeys:u,ObjectSetPrototypeOf:c,Promise:h,SafeSet:f,SymbolAsyncDispose:p,SymbolAsyncIterator:b,Symbol:g}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Readable,Readable.ReadableState=ReadableState;let{EventEmitter:y}=r("events"),{Stream:w,prependListener:v}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/legacy.js"),{Buffer:S}=r("buffer"),{addAbortSignal:x}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),j=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),k=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js").debuglog("stream",e=>{k=e}),T=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js"),R=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"),{getHighWaterMark:A,getDefaultHighWaterMark:O}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js"),{aggregateTwoErrors:C,codes:{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:D,ERR_STREAM_PUSH_AFTER_EOF:I,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:P},AbortError:W}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{validateObject:N}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js"),F=g("kPaused"),{StringDecoder:B}=r("./node_modules/string_decoder/lib/string_decoder.js"),$=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/from.js");c(Readable.prototype,w.prototype),c(Readable,w);let nop=()=>{},{errorOrDestroy:z}=R;function makeBitMapDescriptor(e){return{enumerable:!1,get(){return(this.state&e)!=0},set(t){t?this.state|=e:this.state&=~e}}}function ReadableState(e,t,n){"boolean"!=typeof n&&(n=t instanceof r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js")),this.state=6192,e&&e.objectMode&&(this.state|=1),n&&e&&e.readableObjectMode&&(this.state|=1),this.highWaterMark=e?A(this,e,"readableHighWaterMark",n):O(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this[F]=null,e&&!1===e.emitClose&&(this.state&=-2049),e&&!1===e.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new B(e.encoding),this.encoding=e.encoding)}function Readable(e){if(!(this instanceof Readable))return new Readable(e);let t=this instanceof r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js");this._readableState=new ReadableState(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&x(e.signal,this)),w.call(this,e),R.construct(this,()=>{this._readableState.needReadable&&maybeReadMore(this,this._readableState)})}function readableAddChunk(e,t,r,n){let i;k("readableAddChunk",t);let s=e._readableState;if((1&s.state)==0&&("string"==typeof t?(r=r||s.defaultEncoding,s.encoding!==r&&(n&&s.encoding?t=S.from(t,r).toString(s.encoding):(t=S.from(t,r),r=""))):t instanceof S?r="":w._isUint8Array(t)?(t=w._uint8ArrayToBuffer(t),r=""):null!=t&&(i=new M("chunk",["string","Buffer","Uint8Array"],t))),i)z(e,i);else if(null===t)s.state&=-9,onEofChunk(e,s);else if((1&s.state)!=0||t&&t.length>0)if(n)if((4&s.state)!=0)z(e,new P);else{if(s.destroyed||s.errored)return!1;addChunk(e,s,t,!0)}else if(s.ended)z(e,new I);else{if(s.destroyed||s.errored)return!1;s.state&=-9,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?addChunk(e,s,t,!1):maybeReadMore(e,s)):addChunk(e,s,t,!1)}else n||(s.state&=-9,maybeReadMore(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function addChunk(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?((65536&t.state)!=0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),(64&t.state)!=0&&emitReadable(e)),maybeReadMore(e,t)}function computeNewHighWaterMark(e){if(e>0x40000000)throw new D("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}function howMuchToRead(e,t){return e<=0||0===t.length&&t.ended?0:(1&t.state)!=0?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function onEofChunk(e,t){if(k("onEofChunk"),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?emitReadable(e):(t.needReadable=!1,t.emittedReadable=!0,emitReadable_(e))}}function emitReadable(e){let t=e._readableState;k("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(k("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(emitReadable_,e))}function emitReadable_(e){let t=e._readableState;k("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,flow(e)}function maybeReadMore(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,i.nextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){let r=t.length;if(k("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function pipeOnDrain(e,t){return function(){let r=e._readableState;r.awaitDrainWriters===t?(k("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(k("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||0===r.awaitDrainWriters.size)&&e.listenerCount("data")&&e.resume()}}function updateReadableListening(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[F]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function nReadingNextTick(e){k("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(resume_,e,t))}function resume_(e,t){k("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){let t=e._readableState;for(k("flow",t.flowing);t.flowing&&null!==e.read(););}function streamToAsyncIterator(e,t){"function"!=typeof e.read&&(e=Readable.wrap(e,{objectMode:!0}));let r=createAsyncIterator(e,t);return r.stream=e,r}async function*createAsyncIterator(e,t){let r,n=nop;function next(t){this===e?(n(),n=nop):n=t}e.on("readable",next);let i=j(e,{writable:!1},e=>{r=e?C(r,e):null,n(),n=nop});try{for(;;){let t=e.destroyed?null:e.read();if(null!==t)yield t;else if(r)throw r;else{if(null===r)return;await new h(next)}}}catch(e){throw r=C(r,e)}finally{(r||(null==t?void 0:t.destroyOnReturn)!==!1)&&(void 0===r||e._readableState.autoDestroy)?R.destroyer(e,null):(e.off("readable",next),i())}}function fromList(e,t){let r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function endReadable(e){let t=e._readableState;k("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){if(k("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length){if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)i.nextTick(endWritableNT,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}}function endWritableNT(e){!e.writable||e.writableEnded||e.destroyed||e.end()}function lazyWebStreams(){return void 0===n&&(n={}),n}d(ReadableState.prototype,{objectMode:makeBitMapDescriptor(1),ended:makeBitMapDescriptor(2),endEmitted:makeBitMapDescriptor(4),reading:makeBitMapDescriptor(8),constructed:makeBitMapDescriptor(16),sync:makeBitMapDescriptor(32),needReadable:makeBitMapDescriptor(64),emittedReadable:makeBitMapDescriptor(128),readableListening:makeBitMapDescriptor(256),resumeScheduled:makeBitMapDescriptor(512),errorEmitted:makeBitMapDescriptor(1024),emitClose:makeBitMapDescriptor(2048),autoDestroy:makeBitMapDescriptor(4096),destroyed:makeBitMapDescriptor(8192),closed:makeBitMapDescriptor(16384),closeEmitted:makeBitMapDescriptor(32768),multiAwaitDrain:makeBitMapDescriptor(65536),readingMore:makeBitMapDescriptor(131072),dataEmitted:makeBitMapDescriptor(262144)}),Readable.prototype.destroy=R.destroy,Readable.prototype._undestroy=R.undestroy,Readable.prototype._destroy=function(e,t){t(e)},Readable.prototype[y.captureRejectionSymbol]=function(e){this.destroy(e)},Readable.prototype[p]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new W,this.destroy(e)),new h((t,r)=>j(this,n=>n&&n!==e?r(n):t(null)))},Readable.prototype.push=function(e,t){return readableAddChunk(this,e,t,!1)},Readable.prototype.unshift=function(e,t){return readableAddChunk(this,e,t,!0)},Readable.prototype.isPaused=function(){let e=this._readableState;return!0===e[F]||!1===e.flowing},Readable.prototype.setEncoding=function(e){let t=new B(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this},Readable.prototype.read=function(e){let t;k("read",e),void 0===e?e=NaN:o(e)||(e=l(e,10));let r=this._readableState,n=e;if(e>r.highWaterMark&&(r.highWaterMark=computeNewHighWaterMark(e)),0!==e&&(r.state&=-129),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return k("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,r))&&r.ended)return 0===r.length&&endReadable(this),null;let i=(64&r.state)!=0;if(k("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&k("length less than watermark",i=!0),r.ended||r.reading||r.destroyed||r.errored||!r.constructed)k("reading, ended or constructing",i=!1);else if(i){k("do read"),r.state|=40,0===r.length&&(r.state|=64);try{this._read(r.highWaterMark)}catch(e){z(this,e)}r.state&=-33,r.reading||(e=howMuchToRead(n,r))}return null===(t=e>0?fromList(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.multiAwaitDrain?r.awaitDrainWriters.clear():r.awaitDrainWriters=null),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&endReadable(this)),null===t||r.errorEmitted||r.closeEmitted||(r.dataEmitted=!0,this.emit("data",t)),t},Readable.prototype._read=function(e){throw new L("_read()")},Readable.prototype.pipe=function(e,t){let r,n=this,s=this._readableState;1!==s.pipes.length||s.multiAwaitDrain||(s.multiAwaitDrain=!0,s.awaitDrainWriters=new f(s.awaitDrainWriters?[s.awaitDrainWriters]:[])),s.pipes.push(e),k("pipe count=%d opts=%j",s.pipes.length,t);let o=t&&!1===t.end||e===i.stdout||e===i.stderr?unpipe:onend;function onunpipe(e,t){k("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,cleanup())}function onend(){k("onend"),e.end()}s.endEmitted?i.nextTick(o):n.once("end",o),e.on("unpipe",onunpipe);let a=!1;function cleanup(){k("cleanup"),e.removeListener("close",onclose),e.removeListener("finish",onfinish),r&&e.removeListener("drain",r),e.removeListener("error",onerror),e.removeListener("unpipe",onunpipe),n.removeListener("end",onend),n.removeListener("end",unpipe),n.removeListener("data",ondata),a=!0,r&&s.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&r()}function pause(){a||(1===s.pipes.length&&s.pipes[0]===e?(k("false write response, pause",0),s.awaitDrainWriters=e,s.multiAwaitDrain=!1):s.pipes.length>1&&s.pipes.includes(e)&&(k("false write response, pause",s.awaitDrainWriters.size),s.awaitDrainWriters.add(e)),n.pause()),r||(r=pipeOnDrain(n,e),e.on("drain",r))}function ondata(t){k("ondata");let r=e.write(t);k("dest.write",r),!1===r&&pause()}function onerror(t){if(k("onerror",t),unpipe(),e.removeListener("error",onerror),0===e.listenerCount("error")){let r=e._writableState||e._readableState;r&&!r.errorEmitted?z(e,t):e.emit("error",t)}}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){k("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){k("unpipe"),n.unpipe(e)}return n.on("data",ondata),v(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",n),!0===e.writableNeedDrain?pause():s.flowing||(k("pipe resume"),n.resume()),e},Readable.prototype.unpipe=function(e){let t=this._readableState;if(0===t.pipes.length)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}let r=s(t.pipes,e);return -1===r||(t.pipes.splice(r,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},Readable.prototype.on=function(e,t){let r=w.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,k("on readable",n.length,n.reading),n.length?emitReadable(this):n.reading||i.nextTick(nReadingNextTick,this)),r},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(e,t){let r=w.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(updateReadableListening,this),r},Readable.prototype.off=Readable.prototype.removeListener,Readable.prototype.removeAllListeners=function(e){let t=w.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(updateReadableListening,this),t},Readable.prototype.resume=function(){let e=this._readableState;return e.flowing||(k("resume"),e.flowing=!e.readableListening,resume(this,e)),e[F]=!1,this},Readable.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[F]=!0,this},Readable.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",e=>{z(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=u(e);for(let t=1;t<r.length;t++){let n=r[t];void 0===this[n]&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},Readable.prototype[b]=function(){return streamToAsyncIterator(this)},Readable.prototype.iterator=function(e){return void 0!==e&&N(e,"options"),streamToAsyncIterator(this,e)},d(Readable.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&!1!==e.readable&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._readableState.readable&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),d(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[F]},set(e){this[F]=!!e}}}),Readable._fromList=fromList,Readable.from=function(e,t){return $(Readable,e,t)},Readable.fromWeb=function(e,t){return lazyWebStreams().newStreamReadableFromReadableStream(e,t)},Readable.toWeb=function(e,t){return lazyWebStreams().newReadableStreamFromStreamReadable(e,t)},Readable.wrap=function(e,t){var r,n;return new Readable({objectMode:null==(r=null!=(n=e.readableObjectMode)?n:e.objectMode)||r,...t,destroy(t,r){R.destroyer(e,t),r(t)}}).wrap(e)}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js"(e,t,r){let{MathFloor:n,NumberIsInteger:i}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{validateInteger:s}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js"),{ERR_INVALID_ARG_VALUE:o}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js").codes,a=16384,l=16;function highWaterMarkFrom(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function getDefaultHighWaterMark(e){return e?l:a}e.exports={getHighWaterMark:function(e,t,r,s){let a=highWaterMarkFrom(t,s,r);if(null!=a){if(!i(a)||a<0)throw new o(s?`options.${r}`:"options.highWaterMark",a);return n(a)}return getDefaultHighWaterMark(e.objectMode)},getDefaultHighWaterMark,setDefaultHighWaterMark:function(e,t){s(t,"value",0),e?l=t:a=t}}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/transform.js"(e,t,r){let{ObjectSetPrototypeOf:n,Symbol:i}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Transform;let{ERR_METHOD_NOT_IMPLEMENTED:s}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js").codes,o=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js"),{getHighWaterMark:a}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js");n(Transform.prototype,o.prototype),n(Transform,o);let l=i("kCallback");function Transform(e){if(!(this instanceof Transform))return new Transform(e);let t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),o.call(this,e),this._readableState.sync=!1,this[l]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function final(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{t?e?e(t):this.destroy(t):(null!=r&&this.push(r),this.push(null),e&&e())})}function prefinish(){this._final!==final&&final.call(this)}Transform.prototype._final=final,Transform.prototype._transform=function(e,t,r){throw new s("_transform()")},Transform.prototype._write=function(e,t,r){let n=this._readableState,i=this._writableState,s=n.length;this._transform(e,t,(e,t)=>{e?r(e):(null!=t&&this.push(t),i.ended||s===n.length||n.length<n.highWaterMark?r():this[l]=r)})},Transform.prototype._read=function(){if(this[l]){let e=this[l];this[l]=null,e()}}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"(e,t,r){let{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:s}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),o=s("nodejs.stream.destroyed"),a=s("nodejs.stream.errored"),l=s("nodejs.stream.readable"),d=s("nodejs.stream.writable"),u=s("nodejs.stream.disturbed");function isReadableNodeStream(e,t=!1){var r;return!!(e&&"function"==typeof e.pipe&&"function"==typeof e.on&&(!t||"function"==typeof e.pause&&"function"==typeof e.resume)&&(!e._writableState||(null==(r=e._readableState)?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function isWritableNodeStream(e){var t;return!!(e&&"function"==typeof e.write&&"function"==typeof e.on&&(!e._readableState||(null==(t=e._writableState)?void 0:t.writable)!==!1))}function isDuplexNodeStream(e){return!!(e&&"function"==typeof e.pipe&&e._readableState&&"function"==typeof e.on&&"function"==typeof e.write)}function isNodeStream(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function isReadableStream(e){return!!(e&&!isNodeStream(e)&&"function"==typeof e.pipeThrough&&"function"==typeof e.getReader&&"function"==typeof e.cancel)}function isWritableStream(e){return!!(e&&!isNodeStream(e)&&"function"==typeof e.getWriter&&"function"==typeof e.abort)}function isTransformStream(e){return!!(e&&!isNodeStream(e)&&"object"==typeof e.readable&&"object"==typeof e.writable)}function isWebStream(e){return isReadableStream(e)||isWritableStream(e)||isTransformStream(e)}function isIterable(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])}function isDestroyed(e){if(!isNodeStream(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[o]||null!=n&&n.destroyed)}function isWritableEnded(e){if(!isWritableNodeStream(e))return null;if(!0===e.writableEnded)return!0;let t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function isWritableFinished(e,t){if(!isWritableNodeStream(e))return null;if(!0===e.writableFinished)return!0;let r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))}function isReadableEnded(e){if(!isReadableNodeStream(e))return null;if(!0===e.readableEnded)return!0;let t=e._readableState;return!!t&&!t.errored&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function isReadableFinished(e,t){if(!isReadableNodeStream(e))return null;let r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function isReadable(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!isDestroyed(e)&&isReadableNodeStream(e)&&e.readable&&!isReadableFinished(e)}function isWritable(e){return e&&null!=e[d]?e[d]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!isDestroyed(e)&&isWritableNodeStream(e)&&e.writable&&!isWritableEnded(e)}function isFinished(e,t){return isNodeStream(e)?!!isDestroyed(e)||!((null==t?void 0:t.readable)!==!1&&isReadable(e)||(null==t?void 0:t.writable)!==!1&&isWritable(e)):null}function isWritableErrored(e){var t,r;return isNodeStream(e)?e.writableErrored?e.writableErrored:null!=(t=null==(r=e._writableState)?void 0:r.errored)?t:null:null}function isReadableErrored(e){var t,r;return isNodeStream(e)?e.readableErrored?e.readableErrored:null!=(t=null==(r=e._readableState)?void 0:r.errored)?t:null:null}function isClosed(e){if(!isNodeStream(e))return null;if("boolean"==typeof e.closed)return e.closed;let t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&isOutgoingMessage(e)?e._closed:null}function isOutgoingMessage(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function isServerResponse(e){return"boolean"==typeof e._sent100&&isOutgoingMessage(e)}function isServerRequest(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&(null==(t=e.req)?void 0:t.upgradeOrConnect)===void 0}function willEmitClose(e){if(!isNodeStream(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!n&&isServerResponse(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)}e.exports={isDestroyed,kIsDestroyed:o,isDisturbed:function(e){var t;return!!(e&&(null!=(t=e[u])?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,r,n,i,s,o,l,d,u,c;return!!(e&&(null!=(t=null!=(r=null!=(n=null!=(i=null!=(s=null!=(o=e[a])?o:e.readableErrored)?s:e.writableErrored)?i:null==(l=e._readableState)?void 0:l.errorEmitted)?n:null==(d=e._writableState)?void 0:d.errorEmitted)?r:null==(u=e._readableState)?void 0:u.errored)?t:null==(c=e._writableState)?void 0:c.errored))},kIsErrored:a,isReadable,kIsReadable:l,kIsClosedPromise:s("nodejs.webstream.isClosedPromise"),kControllerErrorFunction:s("nodejs.webstream.controllerErrorFunction"),kIsWritable:d,isClosed,isDuplexNodeStream,isFinished,isIterable,isReadableNodeStream,isReadableStream,isReadableEnded,isReadableFinished,isReadableErrored,isNodeStream,isWebStream,isWritable,isWritableNodeStream,isWritableStream,isWritableEnded,isWritableFinished,isWritableErrored,isServerRequest,isServerResponse,willEmitClose,isTransformStream}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/writable.js"(e,t,r){let n,i=r("./node_modules/process/index.js"),{ArrayPrototypeSlice:s,Error:o,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:d,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:c,Symbol:h,SymbolHasInstance:f}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js");e.exports=Writable,Writable.WritableState=WritableState;let{EventEmitter:p}=r("events"),b=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/legacy.js").Stream,{Buffer:g}=r("buffer"),y=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"),{addAbortSignal:w}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"),{getHighWaterMark:v,getDefaultHighWaterMark:S}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js"),{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:j,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:R,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:O,ERR_STREAM_WRITE_AFTER_END:C,ERR_UNKNOWN_ENCODING:M}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js").codes,{errorOrDestroy:L}=y;function nop(){}u(Writable.prototype,b.prototype),u(Writable,b);let D=h("kOnFinished");function WritableState(e,t,n){"boolean"!=typeof n&&(n=t instanceof r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js")),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?v(this,e,"writableHighWaterMark",n):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(e&&!1===e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=onwrite.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,resetBuffer(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function resetBuffer(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function Writable(e){let t=this instanceof r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js");if(!t&&!a(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&w(e.signal,this)),b.call(this,e),y.construct(this,()=>{let e=this._writableState;e.writing||clearBuffer(this,e),finishMaybe(this,e)})}function _write(e,t,r,n){let s,o=e._writableState;if("function"==typeof r)n=r,r=o.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new M(r)}else r=o.defaultEncoding;"function"!=typeof n&&(n=nop)}if(null===t)throw new O;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=g.from(t,r),r="buffer");else if(t instanceof g)r="buffer";else if(b._isUint8Array(t))t=b._uint8ArrayToBuffer(t),r="buffer";else throw new x("chunk",["string","Buffer","Uint8Array"],t);return(o.ending?s=new C:o.destroyed&&(s=new R("write")),s)?(i.nextTick(n,s),L(e,s,!0),s):(o.pendingcb++,writeOrBuffer(e,o,t,r,n))}function writeOrBuffer(e,t,r,n,i){let s=t.objectMode?1:r.length;t.length+=s;let o=t.length<t.highWaterMark;return o||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==nop&&(t.allNoop=!1)):(t.writelen=s,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1),o&&!t.errored&&!t.destroyed}function doWrite(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new R("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function onwriteError(e,t,r,n){--t.pendingcb,n(r),errorBuffer(t),L(e,r)}function onwrite(e,t){let r=e._writableState,n=r.sync,s=r.writecb;"function"!=typeof s?L(e,new k):(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),n?i.nextTick(onwriteError,e,r,t,s):onwriteError(e,r,t,s)):(r.buffered.length>r.bufferedIndex&&clearBuffer(e,r),n?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===s?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:s,stream:e,state:r},i.nextTick(afterWriteTick,r.afterWriteTickInfo)):afterWrite(e,r,1,s)))}function afterWriteTick({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,afterWrite(e,t,r,n)}function afterWrite(e,t,r,n){for(t.ending||e.destroyed||0!==t.length||!t.needDrain||(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&errorBuffer(t),finishMaybe(e,t)}function errorBuffer(e){var t,r;if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){let{chunk:n,callback:i}=e.buffered[r],s=e.objectMode?1:n.length;e.length-=s,i(null!=(t=e.errored)?t:new R("write"))}let n=e[D].splice(0);for(let t=0;t<n.length;t++)n[t](null!=(r=e.errored)?r:new R("end"));resetBuffer(e)}function clearBuffer(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:r,bufferedIndex:n,objectMode:i}=t,o=r.length-n;if(!o)return;let a=n;if(t.bufferProcessing=!0,o>1&&e._writev){t.pendingcb-=o-1;let n=t.allNoop?nop:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},i=t.allNoop&&0===a?r:s(r,a);i.allBuffers=t.allBuffers,doWrite(e,t,!0,t.length,i,"",n),resetBuffer(t)}else{do{let{chunk:n,encoding:s,callback:o}=r[a];r[a++]=null,doWrite(e,t,!1,i?1:n.length,n,s,o)}while(a<r.length&&!t.writing);a===r.length?resetBuffer(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function needFinish(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function callFinal(e,t){let r=!1;function onFinish(n){if(r)return void L(e,null!=n?n:k());if(r=!0,t.pendingcb--,n){let r=t[D].splice(0);for(let e=0;e<r.length;e++)r[e](n);L(e,n,t.sync)}else needFinish(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,i.nextTick(finish,e,t))}t.sync=!0,t.pendingcb++;try{e._final(onFinish)}catch(e){onFinish(e)}t.sync=!1}function prefinish(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,callFinal(e,t)))}function finishMaybe(e,t,r){needFinish(t)&&(prefinish(e,t),0===t.pendingcb&&(r?(t.pendingcb++,i.nextTick((e,t)=>{needFinish(t)?finish(e,t):t.pendingcb--},e,t)):needFinish(t)&&(t.pendingcb++,finish(e,t))))}function finish(e,t){t.pendingcb--,t.finished=!0;let r=t[D].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}WritableState.prototype.getBuffer=function(){return s(this.buffered,this.bufferedIndex)},l(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),l(Writable,f,{__proto__:null,value:function(e){return!!a(this,e)||this===Writable&&e&&e._writableState instanceof WritableState}}),Writable.prototype.pipe=function(){L(this,new T)},Writable.prototype.write=function(e,t,r){return!0===_write(this,e,t,r)},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||clearBuffer(this,e))},Writable.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=c(e)),!g.isEncoding(e))throw new M(e);return this._writableState.defaultEncoding=e,this},Writable.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new j("_write()")},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,r){let n,s=this._writableState;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){let r=_write(this,e,t);r instanceof o&&(n=r)}return s.corked&&(s.corked=1,this.uncork()),n||(s.errored||s.ending?s.finished?n=new A("end"):s.destroyed&&(n=new R("end")):(s.ending=!0,finishMaybe(this,s,!0),s.ended=!0)),"function"==typeof r&&(n||s.finished?i.nextTick(r,n):s[D].push(r)),this},d(Writable.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&!1!==e.writable&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._writableState.writable&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});let I=y.destroy;function lazyWebStreams(){return void 0===n&&(n={}),n}Writable.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[D].length)&&i.nextTick(errorBuffer,r),I.call(this,e,t),this},Writable.prototype._undestroy=y.undestroy,Writable.prototype._destroy=function(e,t){t(e)},Writable.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},Writable.fromWeb=function(e,t){return lazyWebStreams().newStreamWritableFromWritableStream(e,t)},Writable.toWeb=function(e){return lazyWebStreams().newWritableStreamFromStreamWritable(e)}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js"(e,t,r){let{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:s,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:d,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:g}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:S,ERR_OUT_OF_RANGE:x,ERR_UNKNOWN_SIGNAL:j}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{normalizeEncoding:k}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"),{isAsyncFunction:T,isArrayBufferView:R}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js").types,A={};function isInt32(e){return e===(0|e)}function isUint32(e){return e===e>>>0}let O=/^[0-7]+$/;function parseFileMode(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===f(O,e))throw new S(t,e,"must be a 32-bit unsigned integer or an octal string");e=c(e,8)}return L(e,t),e}let C=y((e,t,r=u,n=d)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);if(e<r||e>n)throw new x(t,`>= ${r} && <= ${n}`,e)}),M=y((e,t,r=-0x80000000,n=0x7fffffff)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);if(e<r||e>n)throw new x(t,`>= ${r} && <= ${n}`,e)}),L=y((e,t,r=!1)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new x(t,"an integer",e);let n=+!!r;if(e<n||e>0xffffffff)throw new x(t,`>= ${n} && <= 4294967295`,e)});function validateString(e,t){if("string"!=typeof e)throw new v(t,"string",e)}function validateNumber(e,t,r,n){if("number"!=typeof e)throw new v(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&l(e))throw new x(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)}let D=y((e,t,r)=>{if(!i(r,e))throw new S(t,e,"must be one of: "+s(o(r,e=>"string"==typeof e?`'${e}'`:p(e)),", "))});function validateBoolean(e,t){if("boolean"!=typeof e)throw new v(t,"boolean",e)}function getOwnPropertyValueOrDefault(e,t,r){return null!=e&&h(e,t)?e[t]:r}let I=y((e,t,r=null)=>{let i=getOwnPropertyValueOrDefault(r,"allowArray",!1),s=getOwnPropertyValueOrDefault(r,"allowFunction",!1);if(!getOwnPropertyValueOrDefault(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!s||"function"!=typeof e))throw new v(t,"Object",e)}),P=y((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new v(t,"a dictionary",e)}),W=y((e,t,r=0)=>{if(!n(e))throw new v(t,"Array",e);if(e.length<r)throw new S(t,e,`must be longer than ${r}`)});function validateStringArray(e,t){W(e,t);for(let r=0;r<e.length;r++)validateString(e[r],`${t}[${r}]`)}function validateBooleanArray(e,t){W(e,t);for(let r=0;r<e.length;r++)validateBoolean(e[r],`${t}[${r}]`)}function validateAbortSignalArray(e,t){W(e,t);for(let r=0;r<e.length;r++){let n=e[r],i=`${t}[${r}]`;if(null==n)throw new v(i,"AbortSignal",n);F(n,i)}}function validateSignalName(e,t="signal"){if(validateString(e,t),void 0===A[e]){if(void 0!==A[b(e)])throw new j(e+" (signals must use all capital letters)");throw new j(e)}}let N=y((e,t="buffer")=>{if(!R(e))throw new v(t,["Buffer","TypedArray","DataView"],e)});function validateEncoding(e,t){let r=k(t),n=e.length;if("hex"===r&&n%2!=0)throw new S("encoding",t,`is invalid for data of length ${n}`)}function validatePort(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===g(e).length||+e!=e>>>0||e>65535||0===e&&!r)throw new w(t,e,r);return 0|e}let F=y((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new v(t,"AbortSignal",e)}),B=y((e,t)=>{if("function"!=typeof e)throw new v(t,"Function",e)}),$=y((e,t)=>{if("function"!=typeof e||T(e))throw new v(t,"Function",e)}),z=y((e,t)=>{if(void 0!==e)throw new v(t,"undefined",e)}),U=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(e,t){if(void 0===e||!f(U,e))throw new S(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32,isUint32,parseFileMode,validateArray:W,validateStringArray,validateBooleanArray,validateAbortSignalArray,validateBoolean,validateBuffer:N,validateDictionary:P,validateEncoding,validateFunction:B,validateInt32:M,validateInteger:C,validateNumber,validateObject:I,validateOneOf:D,validatePlainFunction:$,validatePort,validateSignalName,validateString,validateUint32:L,validateUndefined:z,validateUnion:function(e,t,r){if(!i(r,e))throw new v(t,`('${s(r,"|")}')`,e)},validateAbortSignal:F,validateLinkHeaderValue:function(e){if("string"==typeof e)return validateLinkHeaderFormat(e,"hints"),e;if(n(e)){let t=e.length,r="";if(0===t)return r;for(let n=0;n<t;n++){let i=e[n];validateLinkHeaderFormat(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new S("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"(e,t,r){let{format:n,inspect:i}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util/inspect.js"),{AggregateError:s}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),o=globalThis.AggregateError||s,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],d=/^([A-Z][a-z0-9]*)+$/,u={};function assert(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function addNumericalSeparator(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function getMessage(e,t,r){if("function"==typeof t)return assert(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return(assert(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length)?t:n(t,...r)}function E(e,t,r){r||(r=Error);class n extends r{constructor(...r){super(getMessage(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[a]=!0,u[e]=n}function hideStackFrames(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}function aggregateTwoErrors(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new o([t,e],t.message);return r.code=t.code,r}return e||t}E("ERR_ASSERTION","%s",Error),E("ERR_INVALID_ARG_TYPE",(e,t,r)=>{assert("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";let s=[],o=[],a=[];for(let e of t)assert("string"==typeof e,"All expected entries have to be of type string"),l.includes(e)?s.push(e.toLowerCase()):d.test(e)?o.push(e):(assert("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(o.length>0){let e=s.indexOf("object");-1!==e&&(s.splice(s,e,1),o.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{let e=s.pop();n+=`one of type ${s.join(", ")}, or ${e}`}}(o.length>0||a.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();n+=`an instance of ${o.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var u;if(null!=(u=r.constructor)&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{let e=i(r,{depth:-1});n+=`. Received ${e}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n},TypeError),E("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");let s=e.includes(".")?"property":"argument";return`The ${s} '${e}' ${r}. Received ${n}`},TypeError),E("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;let i=null!=r&&null!=(n=r.constructor)&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${i}.`},TypeError),E("ERR_MISSING_ARGS",(...e)=>{let t;assert(e.length>0,"At least one arg needs to be specified");let r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`},TypeError),E("ERR_OUT_OF_RANGE",(e,t,r)=>{let n;if(assert(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>0x100000000)n=addNumericalSeparator(String(r));else if("bigint"==typeof r){n=String(r);let e=BigInt(2)**BigInt(32);(r>e||r<-e)&&(n=addNumericalSeparator(n)),n+="n"}else n=i(r);return`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError),E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),E("ERR_STREAM_WRITE_AFTER_END","write after end",Error),E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:class extends Error{constructor(e="The operation was aborted",t){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}},aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames,codes:u}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/index.js"(e,t,r){let n=r("stream");if(n&&"disable"===process.env.READABLE_STREAM){let t=n.promises;e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>t}),e.exports.Stream=n.Stream}else{let t=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/stream.js"),n=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/stream/promises.js"),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get:()=>n}),e.exports.Stream=t.Stream}e.exports.default=e.exports},"./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"(e){e.exports={AggregateError:class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack}
|
|
5
|
-
`;super(t),this.name="AggregateError",this.errors=e}},ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"(e,t,r){let n=r("buffer"),{format:i,inspect:s}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util/inspect.js"),{codes:{ERR_INVALID_ARG_TYPE:o}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:d}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),u=globalThis.AbortSignal||r("./node_modules/abort-controller/dist/abort-controller.mjs").h8,c=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,h=Object.getPrototypeOf(async function(){}).constructor,f=globalThis.Blob||n.Blob,validateAbortSignal=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new o(t,"AbortSignal",e)};e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}},promisify:e=>new Promise((t,r)=>{e((e,...n)=>e?r(e):t(...n))}),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:e=>e instanceof h,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:void 0!==f?function(e){return e instanceof f}:function(e){return!1},deprecate:(e,t)=>e,addAbortListener:r("events").addAbortListener||function(e,t){let r;if(void 0===e)throw new o("signal","AbortSignal",e);validateAbortSignal(e,"signal");if("function"!=typeof t)throw new o("listener","Function",t);return e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[d](){var e;null==(e=r)||e()}}},AbortSignalAny:u.any||function(e){if(1===e.length)return e[0];let t=new c,abort=()=>t.abort();return e.forEach(e=>{validateAbortSignal(e,"signals"),e.addEventListener("abort",abort,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",abort))},{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},"./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util/inspect.js"(e){e.exports={format:(e,...t)=>e.replace(/%([sdifj])/g,function(...[e,r]){let n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"!==r||"object"!=typeof n)return n.toString();{let e=n.constructor!==Object?n.constructor.name:"";return`${e} {}`.trim()}}),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;else if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/stream.js"(e,t,r){let{Buffer:n}=r("buffer"),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{promisify:{custom:a}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"),{streamReturningOperators:l,promiseReturningOperators:d}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/operators.js"),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),c=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/compose.js"),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:f}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js"),{pipeline:p}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{destroyer:b}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"),g=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),y=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/stream/promises.js"),w=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),v=e.exports=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/legacy.js").Stream;for(let e of(v.isDestroyed=w.isDestroyed,v.isDisturbed=w.isDisturbed,v.isErrored=w.isErrored,v.isReadable=w.isReadable,v.isWritable=w.isWritable,v.Readable=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js"),s(l))){let t=l[e];function fn(...e){if(new.target)throw u();return v.Readable.from(o(t,this,e))}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}for(let e of s(d)){let t=d[e];function fn(...e){if(new.target)throw u();return o(t,this,e)}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}v.Writable=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/writable.js"),v.Duplex=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js"),v.Transform=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/transform.js"),v.PassThrough=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/passthrough.js"),v.pipeline=p;let{addAbortSignal:S}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js");v.addAbortSignal=S,v.finished=g,v.destroy=b,v.compose=c,v.setDefaultHighWaterMark=h,v.getDefaultHighWaterMark=f,i(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(g,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),v.Stream=v,v._isUint8Array=function(e){return e instanceof Uint8Array},v._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/stream/promises.js"(e,t,r){let{ArrayPrototypePop:n,Promise:i}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{isIterable:s,isNodeStream:o,isWebStream:a}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),{pipelineImpl:l}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{finished:d}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js");r("./node_modules/crc32-stream/node_modules/readable-stream/lib/stream.js"),e.exports={finished:d,pipeline:function(...e){return new i((t,r)=>{let i,d,u=e[e.length-1];if(u&&"object"==typeof u&&!o(u)&&!s(u)&&!a(u)){let t=n(e);i=t.signal,d=t.end}l(e,(e,n)=>{e?r(e):t(n)},{signal:i,end:d})})}}},"./node_modules/events-universal/default.js"(e,t,r){e.exports=r("events")},"./node_modules/fast-fifo/fixed-size.js"(e){e.exports=class{constructor(e){if(!(e>0)||(e-1&e)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(void 0!==e)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},"./node_modules/fast-fifo/index.js"(e,t,r){let n=r("./node_modules/fast-fifo/fixed-size.js");e.exports=class{constructor(e){this.hwm=e||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let t=this.head;this.head=t.next=new n(2*this.head.buffer.length),this.head.push(e)}}shift(){0!==this.length&&this.length--;let e=this.tail.shift();if(void 0===e&&this.tail.next){let e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){let e=this.tail.peek();return void 0===e&&this.tail.next?this.tail.next.peek():e}isEmpty(){return 0===this.length}}},"./node_modules/graceful-fs/clone.js"(e){e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}),r}},"./node_modules/graceful-fs/graceful-fs.js"(e,t,r){var n,i,s,o=r("fs"),a=r("./node_modules/graceful-fs/polyfills.js"),l=r("./node_modules/graceful-fs/legacy-streams.js"),d=r("./node_modules/graceful-fs/clone.js"),u=r("util");function publishQueue(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var debug=function(){};function patch(e){a(e),e.gracefulify=patch,e.createReadStream=createReadStream,e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=function readFile(e,r,n){return"function"==typeof r&&(n=r,r=null),go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,function(t){t&&("EMFILE"===t.code||"ENFILE"===t.code)?enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]):"function"==typeof n&&n.apply(this,arguments)})}};var r=e.writeFile;e.writeFile=function writeFile(e,t,n,i){return"function"==typeof n&&(i=n,n=null),go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,s){return r(e,t,n,function(r){r&&("EMFILE"===r.code||"ENFILE"===r.code)?enqueue([go$writeFile,[e,t,n,i],r,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}};var n=e.appendFile;function appendFile(e,t,r,i){return"function"==typeof r&&(i=r,r=null),go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,s){return n(e,t,r,function(n){n&&("EMFILE"===n.code||"ENFILE"===n.code)?enqueue([go$appendFile,[e,t,r,i],n,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}}n&&(e.appendFile=appendFile);var i=e.copyFile;function copyFile(e,t,r,n){return"function"==typeof r&&(n=r,r=0),go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,s){return i(e,t,r,function(i){i&&("EMFILE"===i.code||"ENFILE"===i.code)?enqueue([go$copyFile,[e,t,r,n],i,s||Date.now(),Date.now()]):"function"==typeof n&&n.apply(this,arguments)})}}i&&(e.copyFile=copyFile);var s=e.readdir;e.readdir=readdir;var o=/^v[0-5]\./;function readdir(e,t,r){"function"==typeof t&&(r=t,t=null);var n=o.test(process.version)?function(e,t,r,n){return s(e,fs$readdirCallback(e,t,r,n))}:function(e,t,r,n){return s(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(s,o){s&&("EMFILE"===s.code||"ENFILE"===s.code)?enqueue([n,[e,t,r],s,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,s,o))}}}if("v0.8"===process.version.substr(0,4)){var d=l(e);ReadStream=d.ReadStream,WriteStream=d.WriteStream}var u=e.ReadStream;u&&(ReadStream.prototype=Object.create(u.prototype),ReadStream.prototype.open=ReadStream$open);var c=e.WriteStream;c&&(WriteStream.prototype=Object.create(c.prototype),WriteStream.prototype.open=WriteStream$open),Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:!0,configurable:!0});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var f=WriteStream;function ReadStream(e,t){return this instanceof ReadStream?(u.apply(this,arguments),this):ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})}function WriteStream(e,t){return this instanceof WriteStream?(c.apply(this,arguments),this):WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(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)}Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var p=e.open;function open(e,t,r,n){return"function"==typeof r&&(n=r,r=null),go$open(e,t,r,n);function go$open(e,t,r,n,i){return p(e,t,r,function(s,o){s&&("EMFILE"===s.code||"ENFILE"===s.code)?enqueue([go$open,[e,t,r,n],s,i||Date.now(),Date.now()]):"function"==typeof n&&n.apply(this,arguments)})}}return e.open=open,e}function enqueue(e){debug("ENQUEUE",e[0].name,e[1]),o[n].push(e),retry()}function resetQueue(){for(var e=Date.now(),t=0;t<o[n].length;++t)o[n][t].length>2&&(o[n][t][3]=e,o[n][t][4]=e);retry()}function retry(){if(clearTimeout(s),s=void 0,0!==o[n].length){var e=o[n].shift(),t=e[0],r=e[1],i=e[2],a=e[3],l=e[4];if(void 0===a)debug("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-a>=6e4){debug("TIMEOUT",t.name,r);var d=r.pop();"function"==typeof d&&d.call(null,i)}else Date.now()-l>=Math.min(1.2*Math.max(l-a,1),100)?(debug("RETRY",t.name,r),t.apply(null,r.concat([a]))):o[n].push(e);void 0===s&&(s=setTimeout(retry,0))}}u.debuglog?debug=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(debug=function(){var e=u.format.apply(u,arguments);console.error(e="GFS4: "+e.split(/\n/).join("\nGFS4: "))}),!o[n]&&(publishQueue(o,eo[n]||[]),o.close=function(e){function close(t,r){return e.call(o,t,function(e){e||resetQueue(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(close,i,{value:e}),close}(o.close),o.closeSync=function(e){function closeSync(t){e.apply(o,arguments),resetQueue()}return Object.defineProperty(closeSync,i,{value:e}),closeSync}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){debug(o[n]),r("assert").equal(o[n].length,0)})),eo[n]||publishQueue(eo,o[n]),e.exports=patch(d(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=patch(o),o.__patched=!0)},"./node_modules/graceful-fs/legacy-streams.js"(e,t,r){var n=r("stream").Stream;e.exports=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=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(r=r||{}),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=r[l]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null!==this.fd?process.nextTick(function(){i._read()}):e.open(this.path,this.flags,this.mode,function(e,t){if(e){i.emit("error",e),i.readable=!1;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=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var i=Object.keys(r=r||{}),s=0,o=i.length;s<o;s++){var a=i[s];this[a]=r[a]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}},"./node_modules/graceful-fs/polyfills.js"(e,t,r){var n=r("constants"),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){s=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function patch(e){var t;function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){i&&i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,r){var i,s=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=e.fchmodSync(s,r),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}}function patchLutimes(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,function(t,n){if(t){s&&s(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){s&&s(t||e)})})})},e.lutimesSync=function(t,r,i){var s,o=e.openSync(t,n.O_SYMLINK),a=!0;try{s=e.futimesSync(o,r,i),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return s}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}function chmodFix(t){return t?function(r,n,i){return t.call(e,r,n,function(e){chownErOk(e)&&(e=null),i&&i.apply(this,arguments)})}:t}function chmodFixSync(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}:t}function chownFix(t){return t?function(r,n,i,s){return t.call(e,r,n,i,function(e){chownErOk(e)&&(e=null),s&&s.apply(this,arguments)})}:t}function chownFixSync(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}:t}function statFix(t){return t?function(r,n,i){function callback(e,t){t&&(t.uid<0&&(t.uid+=0x100000000),t.gid<0&&(t.gid+=0x100000000)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,callback):t.call(e,r,callback)}:t}function statFixSync(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=0x100000000),i.gid<0&&(i.gid+=0x100000000)),i}:t}function chownErOk(e){return!e||"ENOSYS"===e.code||(!process.getuid||0!==process.getuid())&&("EINVAL"===e.code||"EPERM"===e.code)}n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&patchLchmod(e),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),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){}),"win32"===o&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function rename(r,n,i){var s=Date.now(),o=0;t(r,n,function CB(a){if(a&&("EACCES"===a.code||"EPERM"===a.code||"EBUSY"===a.code)&&Date.now()-s<6e4){setTimeout(function(){e.stat(n,function(e,s){e&&"ENOENT"===e.code?t(r,n,CB):i(a)})},o),o<100&&(o+=10);return}i&&i(a)})}return Object.setPrototypeOf&&Object.setPrototypeOf(rename,t),rename}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function read(r,n,i,s,o,a){var l;if(a&&"function"==typeof a){var d=0;l=function(u,c,h){if(u&&"EAGAIN"===u.code&&d<10)return d++,t.call(e,r,n,i,s,o,l);a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(read,t),read}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(t=e.readSync,function(r,n,i,s,o){for(var a=0;;)try{return t.call(e,r,n,i,s,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})}},"./node_modules/inherits/inherits.js"(e,t,r){try{var n=r("util");if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r("./node_modules/inherits/inherits_browser.js")}},"./node_modules/inherits/inherits_browser.js"(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype,e.prototype=new TempCtor,e.prototype.constructor=e}}},"./node_modules/is-stream/index.js"(e){let isStream=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;isStream.writable=e=>isStream(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,isStream.readable=e=>isStream(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e),isStream.transform=e=>isStream.duplex(e)&&"function"==typeof e._transform,e.exports=isStream},"./node_modules/isarray/index.js"(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},"./node_modules/lazystream/lib/lazystream.js"(e,t,r){var n=r("util"),i=r("./node_modules/lazystream/node_modules/readable-stream/passthrough.js");function beforeFirstCall(e,t,r){e[t]=function(){return delete e[t],r.apply(this,arguments),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),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),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r)}),this.emit("writable")}e.exports={Readable:Readable,Writable:Writable},n.inherits(Readable,i),n.inherits(Writable,i)},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"(e,t,r){var n=r("./node_modules/process-nextick-args/index.js"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=Duplex;var s=Object.create(r("./node_modules/core-util-is/lib/util.js"));s.inherits=r("./node_modules/inherits/inherits.js");var o=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js"),a=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js");s.inherits(Duplex,o);for(var l=i(a.prototype),d=0;d<l.length;d++){var u=l[d];Duplex.prototype[u]||(Duplex.prototype[u]=a.prototype[u])}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",onend)}function onend(){this.allowHalfOpen||this._writableState.ended||n.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),Duplex.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js"(e,t,r){e.exports=PassThrough;var n=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"),i=Object.create(r("./node_modules/core-util-is/lib/util.js"));function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}i.inherits=r("./node_modules/inherits/inherits.js"),i.inherits(PassThrough,n),PassThrough.prototype._transform=function(e,t,r){r(null,e)}},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js"(e,t,r){var n,i,s=r("./node_modules/process-nextick-args/index.js");e.exports=Readable;var o=r("./node_modules/isarray/index.js");Readable.ReadableState=ReadableState,r("events").EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length},a=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js"),l=r("./node_modules/lazystream/node_modules/safe-buffer/index.js").Buffer,d=(void 0!==eo?eo:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof d}var u=Object.create(r("./node_modules/core-util-is/lib/util.js"));u.inherits=r("./node_modules/inherits/inherits.js");var c=r("util"),h=void 0;h=c&&c.debuglog?c.debuglog("stream"):function(){};var f=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js"),p=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js");u.inherits(Readable,a);var b=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function ReadableState(e,t){n=n||r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),e=e||{};var s=t instanceof n;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,l=this.objectMode?16:16384;o||0===o?this.highWaterMark=o:s&&(a||0===a)?this.highWaterMark=a:this.highWaterMark=l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(i||(i=r("./node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js").StringDecoder),this.decoder=new i(e.encoding),this.encoding=e.encoding)}function Readable(e){if(n=n||r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function readableAddChunk(e,t,r,n,i){var s,o=e._readableState;return null===t?(o.reading=!1,onEofChunk(e,o)):(i||(s=chunkInvalid(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=_uint8ArrayToBuffer(t)),n?o.endEmitted?e.emit("error",Error("stream.unshift() after end event")):addChunk(e,o,t,!0):o.ended?e.emit("error",Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?addChunk(e,o,t,!1):maybeReadMore(e,o)):addChunk(e,o,t,!1))):n||(o.reading=!1)),needMoreData(o)}function addChunk(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&emitReadable(e)),maybeReadMore(e,t)}function chunkInvalid(e,t){var r;return _isUint8Array(t)||"string"==typeof t||void 0===t||e.objectMode||(r=TypeError("Invalid non-string/buffer chunk")),r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function computeNewHighWaterMark(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function howMuchToRead(e,t){if(e<=0||0===t.length&&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;return(e>t.highWaterMark&&(t.highWaterMark=computeNewHighWaterMark(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function onEofChunk(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,emitReadable(e)}}function emitReadable(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?s.nextTick(emitReadable_,e):emitReadable_(e))}function emitReadable_(e){h("emit readable"),e.emit("readable"),flow(e)}function maybeReadMore(e,t){t.readingMore||(t.readingMore=!0,s.nextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function pipeOnDrain(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&EElistenerCount(e,"data")&&(t.flowing=!0,flow(e))}}function nReadingNextTick(e){h("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,s.nextTick(resume_,e,t))}function resume_(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function fromList(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=fromListPartial(e,t.buffer,t.decoder),r)}function fromListPartial(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?copyFromBufferString(e,t):copyFromBuffer(e,t),n}function copyFromBufferString(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0==(e-=o)){o===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++n}return t.length-=n,i}function copyFromBuffer(e,t){var r=l.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),0==(e-=o)){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}function endReadable(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,s.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,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}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),Readable.prototype.destroy=p.destroy,Readable.prototype._undestroy=p.undestroy,Readable.prototype._destroy=function(e,t){this.push(null),t(e)},Readable.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),readableAddChunk(this,e,t,!1,r)},Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,!0,!1)},Readable.prototype.isPaused=function(){return!1===this._readableState.flowing},Readable.prototype.setEncoding=function(e){return i||(i=r("./node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js").StringDecoder),this._readableState.decoder=new i(e),this._readableState.encoding=e,this},Readable.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return h("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,r))&&r.ended)return 0===r.length&&endReadable(this),null;var i=r.needReadable;return h("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&h("length less than watermark",i=!0),r.ended||r.reading?h("reading or ended",i=!1):i&&(h("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=howMuchToRead(n,r))),null===(t=e>0?fromList(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&endReadable(this)),null!==t&&this.emit("data",t),t},Readable.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},Readable.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,h("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===process.stdout||e===process.stderr?unpipe:onend;function onunpipe(e,t){h("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,cleanup())}function onend(){h("onend"),e.end()}n.endEmitted?s.nextTick(i):r.once("end",i),e.on("unpipe",onunpipe);var o=pipeOnDrain(r);e.on("drain",o);var a=!1;function cleanup(){h("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),a=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o()}var l=!1;function ondata(t){h("ondata"),l=!1,!1!==e.write(t)||l||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==indexOf(n.pipes,e))&&!a&&(h("false write response, pause",n.awaitDrain),n.awaitDrain++,l=!0),r.pause())}function onerror(t){h("onerror",t),unpipe(),e.removeListener("error",onerror),0===EElistenerCount(e,"error")&&e.emit("error",t)}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){h("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){h("unpipe"),r.unpipe(e)}return r.on("data",ondata),prependListener(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",r),n.flowing||(h("pipe resume"),r.resume()),e},Readable.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=indexOf(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},Readable.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&emitReadable(this):s.nextTick(nReadingNextTick,this))}return r},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,resume(this,e)),this},Readable.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<b.length;s++)e.on(b[s],this.emit.bind(this,b[s]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Readable._fromList=fromList},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"(e,t,r){e.exports=Transform;var n=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),i=Object.create(r("./node_modules/core-util-is/lib/util.js"));function afterTransform(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(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:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){done(e,t,r)}):done(this,null,null)}function done(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r("./node_modules/inherits/inherits.js"),i.inherits(Transform,n),Transform.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},Transform.prototype._transform=function(e,t,r){throw Error("_transform() is not implemented")},Transform.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Transform.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Transform.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js"(e,t,r){var n,i,s=r("./node_modules/process-nextick-args/index.js");function CorkedRequest(e){var t=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(t,e)}}e.exports=Writable;var o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:s.nextTick;Writable.WritableState=WritableState;var a=Object.create(r("./node_modules/core-util-is/lib/util.js"));a.inherits=r("./node_modules/inherits/inherits.js");var l={deprecate:r("./node_modules/util-deprecate/node.js")},d=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js"),u=r("./node_modules/lazystream/node_modules/safe-buffer/index.js").Buffer,c=(void 0!==eo?eo:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof c}var h=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js");function nop(){}function WritableState(e,t){n=n||r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),e=e||{};var i=t instanceof n;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var s=e.highWaterMark,o=e.writableHighWaterMark,a=this.objectMode?16:16384;s||0===s?this.highWaterMark=s:i&&(o||0===o)?this.highWaterMark=o:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){onwrite(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}a.inherits(Writable,d),WritableState.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(WritableState.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function Writable(e){if(n=n||r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),!i.call(Writable,this)&&!(this instanceof n))return new Writable(e);this._writableState=new WritableState(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function writeAfterEnd(e,t){var r=Error("write after end");e.emit("error",r),s.nextTick(t,r)}function validChunk(e,t,r,n){var i=!0,o=!1;return null===r?o=TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),s.nextTick(n,o),i=!1),i}function decodeChunk(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}function writeOrBuffer(e,t,r,n,i,s){if(!r){var o=decodeChunk(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else doWrite(e,t,!1,a,n,i,s);return l}function doWrite(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function onwriteError(e,t,r,n,i){--t.pendingcb,r?(s.nextTick(i,n),s.nextTick(finishMaybe,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),finishMaybe(e,t))}function onwriteStateUpdate(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function onwrite(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(onwriteStateUpdate(r),t)onwriteError(e,r,n,t,i);else{var s=needFinish(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||clearBuffer(e,r),n?o(afterWrite,e,r,s,i):afterWrite(e,r,s,i)}}function afterWrite(e,t,r,n){r||onwriteDrain(e,t),t.pendingcb--,n(),finishMaybe(e,t)}function onwriteDrain(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function clearBuffer(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var s=0,o=!0;r;)n[s]=r,r.isBuf||(o=!1),r=r.next,s+=1;n.allBuffers=o,doWrite(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new CorkedRequest(t),t.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,l=r.encoding,d=r.callback,u=t.objectMode?1:a.length;if(doWrite(e,t,!1,u,a,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function needFinish(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function callFinal(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),finishMaybe(e,t)})}function prefinish(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,s.nextTick(callFinal,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function finishMaybe(e,t){var r=needFinish(t);return r&&(prefinish(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}function endWritable(e,t,r){t.ending=!0,finishMaybe(e,t),r&&(t.finished?s.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function onCorkedFinish(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===Writable&&e&&e._writableState instanceof WritableState}})):i=function(e){return e instanceof this},Writable.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},Writable.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&_isUint8Array(e);return s&&!u.isBuffer(e)&&(e=_uint8ArrayToBuffer(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=nop),n.ended?writeAfterEnd(this,r):(s||validChunk(this,n,e,r))&&(n.pendingcb++,i=writeOrBuffer(this,n,s,e,t,r)),i},Writable.prototype.cork=function(){var e=this._writableState;e.corked++},Writable.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||clearBuffer(this,e))},Writable.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(e,t,r){r(Error("_write() is not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||endWritable(this,n,r)},Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),Writable.prototype.destroy=h.destroy,Writable.prototype._undestroy=h.undestroy,Writable.prototype._destroy=function(e,t){this.end(),t(e)}},"./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js"(e,t,r){function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var n=r("./node_modules/lazystream/node_modules/safe-buffer/index.js").Buffer,i=r("util");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}return BufferList.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},BufferList.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},BufferList.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},BufferList.prototype.clear=function(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},BufferList.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)copyBuffer(r.data,t,i),i+=r.data.length,r=r.next;return t},BufferList}(),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})},"./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js"(e,t,r){var n=r("./node_modules/process-nextick-args/index.js");function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(emitErrorNT,this,e)):n.nextTick(emitErrorNT,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(emitErrorNT,r,e)):n.nextTick(emitErrorNT,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},"./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js"(e,t,r){e.exports=r("stream")},"./node_modules/lazystream/node_modules/readable-stream/passthrough.js"(e,t,r){e.exports=r("./node_modules/lazystream/node_modules/readable-stream/readable.js").PassThrough},"./node_modules/lazystream/node_modules/readable-stream/readable.js"(e,t,r){var n=r("stream");"disable"===process.env.READABLE_STREAM&&n?(e.exports=n,(t=e.exports=n.Readable).Readable=n.Readable,t.Writable=n.Writable,t.Duplex=n.Duplex,t.Transform=n.Transform,t.PassThrough=n.PassThrough,t.Stream=n):((t=e.exports=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js")).Stream=n||t,t.Readable=t,t.Writable=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js"),t.Duplex=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),t.Transform=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"),t.PassThrough=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js"))},"./node_modules/lazystream/node_modules/safe-buffer/index.js"(e,t,r){var n=r("buffer"),i=n.Buffer;function copyProps(e,t){for(var r in e)t[r]=e[r]}function SafeBuffer(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(copyProps(n,t),t.Buffer=SafeBuffer),copyProps(i,SafeBuffer),SafeBuffer.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},SafeBuffer.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},"./node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js"(e,t,r){var n=r("./node_modules/lazystream/node_modules/safe-buffer/index.js").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(e){var t;if(!e)return"utf8";for(;;)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=!0}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function StringDecoder(e){var t;switch(this.encoding=normalizeEncoding(e),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)}function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4: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]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=utf8CheckByte(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=utf8CheckByte(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function utf8CheckExtraBytes(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed,r=utf8CheckExtraBytes(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(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);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":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)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],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;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function base64End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}t.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"./node_modules/lodash/_Hash.js"(e,t,r){var n=r("./node_modules/lodash/_hashClear.js"),i=r("./node_modules/lodash/_hashDelete.js"),s=r("./node_modules/lodash/_hashGet.js"),o=r("./node_modules/lodash/_hashHas.js"),a=r("./node_modules/lodash/_hashSet.js");function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=n,Hash.prototype.delete=i,Hash.prototype.get=s,Hash.prototype.has=o,Hash.prototype.set=a,e.exports=Hash},"./node_modules/lodash/_ListCache.js"(e,t,r){var n=r("./node_modules/lodash/_listCacheClear.js"),i=r("./node_modules/lodash/_listCacheDelete.js"),s=r("./node_modules/lodash/_listCacheGet.js"),o=r("./node_modules/lodash/_listCacheHas.js"),a=r("./node_modules/lodash/_listCacheSet.js");function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=n,ListCache.prototype.delete=i,ListCache.prototype.get=s,ListCache.prototype.has=o,ListCache.prototype.set=a,e.exports=ListCache},"./node_modules/lodash/_Map.js"(e,t,r){e.exports=r("./node_modules/lodash/_getNative.js")(r("./node_modules/lodash/_root.js"),"Map")},"./node_modules/lodash/_MapCache.js"(e,t,r){var n=r("./node_modules/lodash/_mapCacheClear.js"),i=r("./node_modules/lodash/_mapCacheDelete.js"),s=r("./node_modules/lodash/_mapCacheGet.js"),o=r("./node_modules/lodash/_mapCacheHas.js"),a=r("./node_modules/lodash/_mapCacheSet.js");function MapCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=n,MapCache.prototype.delete=i,MapCache.prototype.get=s,MapCache.prototype.has=o,MapCache.prototype.set=a,e.exports=MapCache},"./node_modules/lodash/_Set.js"(e,t,r){e.exports=r("./node_modules/lodash/_getNative.js")(r("./node_modules/lodash/_root.js"),"Set")},"./node_modules/lodash/_SetCache.js"(e,t,r){var n=r("./node_modules/lodash/_MapCache.js"),i=r("./node_modules/lodash/_setCacheAdd.js"),s=r("./node_modules/lodash/_setCacheHas.js");function SetCache(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=i,SetCache.prototype.has=s,e.exports=SetCache},"./node_modules/lodash/_Symbol.js"(e,t,r){e.exports=r("./node_modules/lodash/_root.js").Symbol},"./node_modules/lodash/_apply.js"(e){e.exports=function(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)}},"./node_modules/lodash/_arrayIncludes.js"(e,t,r){var n=r("./node_modules/lodash/_baseIndexOf.js");e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},"./node_modules/lodash/_arrayIncludesWith.js"(e){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},"./node_modules/lodash/_arrayLikeKeys.js"(e,t,r){var n=r("./node_modules/lodash/_baseTimes.js"),i=r("./node_modules/lodash/isArguments.js"),s=r("./node_modules/lodash/isArray.js"),o=r("./node_modules/lodash/isBuffer.js"),a=r("./node_modules/lodash/_isIndex.js"),l=r("./node_modules/lodash/isTypedArray.js"),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=s(e),u=!r&&i(e),c=!r&&!u&&o(e),h=!r&&!u&&!c&&l(e),f=r||u||c||h,p=f?n(e.length,String):[],b=p.length;for(var g in e)(t||d.call(e,g))&&!(f&&("length"==g||c&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,b)))&&p.push(g);return p}},"./node_modules/lodash/_arrayMap.js"(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},"./node_modules/lodash/_arrayPush.js"(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},"./node_modules/lodash/_assocIndexOf.js"(e,t,r){var n=r("./node_modules/lodash/eq.js");e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},"./node_modules/lodash/_baseDifference.js"(e,t,r){var n=r("./node_modules/lodash/_SetCache.js"),i=r("./node_modules/lodash/_arrayIncludes.js"),s=r("./node_modules/lodash/_arrayIncludesWith.js"),o=r("./node_modules/lodash/_arrayMap.js"),a=r("./node_modules/lodash/_baseUnary.js"),l=r("./node_modules/lodash/_cacheHas.js");e.exports=function(e,t,r,d){var u=-1,c=i,h=!0,f=e.length,p=[],b=t.length;if(!f)return p;r&&(t=o(t,a(r))),d?(c=s,h=!1):t.length>=200&&(c=l,h=!1,t=new n(t));e:for(;++u<f;){var g=e[u],y=null==r?g:r(g);if(g=d||0!==g?g:0,h&&y==y){for(var w=b;w--;)if(t[w]===y)continue e;p.push(g)}else c(t,y,d)||p.push(g)}return p}},"./node_modules/lodash/_baseFindIndex.js"(e){e.exports=function(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return -1}},"./node_modules/lodash/_baseFlatten.js"(e,t,r){var n=r("./node_modules/lodash/_arrayPush.js"),i=r("./node_modules/lodash/_isFlattenable.js");function baseFlatten(e,t,r,s,o){var a=-1,l=e.length;for(r||(r=i),o||(o=[]);++a<l;){var d=e[a];t>0&&r(d)?t>1?baseFlatten(d,t-1,r,s,o):n(o,d):s||(o[o.length]=d)}return o}e.exports=baseFlatten},"./node_modules/lodash/_baseGetTag.js"(e,t,r){var n=r("./node_modules/lodash/_Symbol.js"),i=r("./node_modules/lodash/_getRawTag.js"),s=r("./node_modules/lodash/_objectToString.js"),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},"./node_modules/lodash/_baseIndexOf.js"(e,t,r){var n=r("./node_modules/lodash/_baseFindIndex.js"),i=r("./node_modules/lodash/_baseIsNaN.js"),s=r("./node_modules/lodash/_strictIndexOf.js");e.exports=function(e,t,r){return t==t?s(e,t,r):n(e,i,r)}},"./node_modules/lodash/_baseIsArguments.js"(e,t,r){var n=r("./node_modules/lodash/_baseGetTag.js"),i=r("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},"./node_modules/lodash/_baseIsNaN.js"(e){e.exports=function(e){return e!=e}},"./node_modules/lodash/_baseIsNative.js"(e,t,r){var n=r("./node_modules/lodash/isFunction.js"),i=r("./node_modules/lodash/_isMasked.js"),s=r("./node_modules/lodash/isObject.js"),o=r("./node_modules/lodash/_toSource.js"),a=/^\[object .+?Constructor\]$/,l=Object.prototype,d=Function.prototype.toString,u=l.hasOwnProperty,c=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||i(e))&&(n(e)?c:a).test(o(e))}},"./node_modules/lodash/_baseIsTypedArray.js"(e,t,r){var n=r("./node_modules/lodash/_baseGetTag.js"),i=r("./node_modules/lodash/isLength.js"),s=r("./node_modules/lodash/isObjectLike.js"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&i(e.length)&&!!o[n(e)]}},"./node_modules/lodash/_baseKeysIn.js"(e,t,r){var n=r("./node_modules/lodash/isObject.js"),i=r("./node_modules/lodash/_isPrototype.js"),s=r("./node_modules/lodash/_nativeKeysIn.js"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=i(e),r=[];for(var a in e)"constructor"==a&&(t||!o.call(e,a))||r.push(a);return r}},"./node_modules/lodash/_baseRest.js"(e,t,r){var n=r("./node_modules/lodash/identity.js"),i=r("./node_modules/lodash/_overRest.js"),s=r("./node_modules/lodash/_setToString.js");e.exports=function(e,t){return s(i(e,t,n),e+"")}},"./node_modules/lodash/_baseSetToString.js"(e,t,r){var n=r("./node_modules/lodash/constant.js"),i=r("./node_modules/lodash/_defineProperty.js"),s=r("./node_modules/lodash/identity.js");e.exports=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:s},"./node_modules/lodash/_baseTimes.js"(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},"./node_modules/lodash/_baseUnary.js"(e){e.exports=function(e){return function(t){return e(t)}}},"./node_modules/lodash/_baseUniq.js"(e,t,r){var n=r("./node_modules/lodash/_SetCache.js"),i=r("./node_modules/lodash/_arrayIncludes.js"),s=r("./node_modules/lodash/_arrayIncludesWith.js"),o=r("./node_modules/lodash/_cacheHas.js"),a=r("./node_modules/lodash/_createSet.js"),l=r("./node_modules/lodash/_setToArray.js");e.exports=function(e,t,r){var d=-1,u=i,c=e.length,h=!0,f=[],p=f;if(r)h=!1,u=s;else if(c>=200){var b=t?null:a(e);if(b)return l(b);h=!1,u=o,p=new n}else p=t?[]:f;e:for(;++d<c;){var g=e[d],y=t?t(g):g;if(g=r||0!==g?g:0,h&&y==y){for(var w=p.length;w--;)if(p[w]===y)continue e;t&&p.push(y),f.push(g)}else u(p,y,r)||(p!==f&&p.push(y),f.push(g))}return f}},"./node_modules/lodash/_cacheHas.js"(e){e.exports=function(e,t){return e.has(t)}},"./node_modules/lodash/_coreJsData.js"(e,t,r){e.exports=r("./node_modules/lodash/_root.js")["__core-js_shared__"]},"./node_modules/lodash/_createSet.js"(e,t,r){var n=r("./node_modules/lodash/_Set.js"),i=r("./node_modules/lodash/noop.js"),s=r("./node_modules/lodash/_setToArray.js");e.exports=n&&1/s(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i},"./node_modules/lodash/_defineProperty.js"(e,t,r){var n=r("./node_modules/lodash/_getNative.js");e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},"./node_modules/lodash/_freeGlobal.js"(e){e.exports="object"==typeof eo&&eo&&eo.Object===Object&&eo},"./node_modules/lodash/_getMapData.js"(e,t,r){var n=r("./node_modules/lodash/_isKeyable.js");e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},"./node_modules/lodash/_getNative.js"(e,t,r){var n=r("./node_modules/lodash/_baseIsNative.js"),i=r("./node_modules/lodash/_getValue.js");e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},"./node_modules/lodash/_getPrototype.js"(e,t,r){e.exports=r("./node_modules/lodash/_overArg.js")(Object.getPrototypeOf,Object)},"./node_modules/lodash/_getRawTag.js"(e,t,r){var n=r("./node_modules/lodash/_Symbol.js"),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[a]=r:delete e[a]),i}},"./node_modules/lodash/_getValue.js"(e){e.exports=function(e,t){return null==e?void 0:e[t]}},"./node_modules/lodash/_hashClear.js"(e,t,r){var n=r("./node_modules/lodash/_nativeCreate.js");e.exports=function(){this.__data__=n?n(null):{},this.size=0}},"./node_modules/lodash/_hashDelete.js"(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},"./node_modules/lodash/_hashGet.js"(e,t,r){var n=r("./node_modules/lodash/_nativeCreate.js"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},"./node_modules/lodash/_hashHas.js"(e,t,r){var n=r("./node_modules/lodash/_nativeCreate.js"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},"./node_modules/lodash/_hashSet.js"(e,t,r){var n=r("./node_modules/lodash/_nativeCreate.js");e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},"./node_modules/lodash/_isFlattenable.js"(e,t,r){var n=r("./node_modules/lodash/_Symbol.js"),i=r("./node_modules/lodash/isArguments.js"),s=r("./node_modules/lodash/isArray.js"),o=n?n.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||i(e)||!!(o&&e&&e[o])}},"./node_modules/lodash/_isIndex.js"(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},"./node_modules/lodash/_isIterateeCall.js"(e,t,r){var n=r("./node_modules/lodash/eq.js"),i=r("./node_modules/lodash/isArrayLike.js"),s=r("./node_modules/lodash/_isIndex.js"),o=r("./node_modules/lodash/isObject.js");e.exports=function(e,t,r){if(!o(r))return!1;var a=typeof t;return("number"==a?!!(i(r)&&s(t,r.length)):"string"==a&&t in r)&&n(r[t],e)}},"./node_modules/lodash/_isKeyable.js"(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},"./node_modules/lodash/_isMasked.js"(e,t,r){var n,i=r("./node_modules/lodash/_coreJsData.js"),s=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!s&&s in e}},"./node_modules/lodash/_isPrototype.js"(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},"./node_modules/lodash/_listCacheClear.js"(e){e.exports=function(){this.__data__=[],this.size=0}},"./node_modules/lodash/_listCacheDelete.js"(e,t,r){var n=r("./node_modules/lodash/_assocIndexOf.js"),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},"./node_modules/lodash/_listCacheGet.js"(e,t,r){var n=r("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},"./node_modules/lodash/_listCacheHas.js"(e,t,r){var n=r("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e){return n(this.__data__,e)>-1}},"./node_modules/lodash/_listCacheSet.js"(e,t,r){var n=r("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},"./node_modules/lodash/_mapCacheClear.js"(e,t,r){var n=r("./node_modules/lodash/_Hash.js"),i=r("./node_modules/lodash/_ListCache.js"),s=r("./node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||i),string:new n}}},"./node_modules/lodash/_mapCacheDelete.js"(e,t,r){var n=r("./node_modules/lodash/_getMapData.js");e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},"./node_modules/lodash/_mapCacheGet.js"(e,t,r){var n=r("./node_modules/lodash/_getMapData.js");e.exports=function(e){return n(this,e).get(e)}},"./node_modules/lodash/_mapCacheHas.js"(e,t,r){var n=r("./node_modules/lodash/_getMapData.js");e.exports=function(e){return n(this,e).has(e)}},"./node_modules/lodash/_mapCacheSet.js"(e,t,r){var n=r("./node_modules/lodash/_getMapData.js");e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=+(r.size!=i),this}},"./node_modules/lodash/_nativeCreate.js"(e,t,r){e.exports=r("./node_modules/lodash/_getNative.js")(Object,"create")},"./node_modules/lodash/_nativeKeysIn.js"(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},"./node_modules/lodash/_nodeUtil.js"(e,t,r){e=r.nmd(e);var n=r("./node_modules/lodash/_freeGlobal.js"),i=t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===i&&n.process,a=function(){try{var e=s&&s.require&&s.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},"./node_modules/lodash/_objectToString.js"(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},"./node_modules/lodash/_overArg.js"(e){e.exports=function(e,t){return function(r){return e(t(r))}}},"./node_modules/lodash/_overRest.js"(e,t,r){var n=r("./node_modules/lodash/_apply.js"),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var s=arguments,o=-1,a=i(s.length-t,0),l=Array(a);++o<a;)l[o]=s[t+o];o=-1;for(var d=Array(t+1);++o<t;)d[o]=s[o];return d[t]=r(l),n(e,this,d)}}},"./node_modules/lodash/_root.js"(e,t,r){var n=r("./node_modules/lodash/_freeGlobal.js"),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},"./node_modules/lodash/_setCacheAdd.js"(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},"./node_modules/lodash/_setCacheHas.js"(e){e.exports=function(e){return this.__data__.has(e)}},"./node_modules/lodash/_setToArray.js"(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},"./node_modules/lodash/_setToString.js"(e,t,r){var n=r("./node_modules/lodash/_baseSetToString.js");e.exports=r("./node_modules/lodash/_shortOut.js")(n)},"./node_modules/lodash/_shortOut.js"(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),s=16-(i-n);if(n=i,s>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},"./node_modules/lodash/_strictIndexOf.js"(e){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},"./node_modules/lodash/_toSource.js"(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash/constant.js"(e){e.exports=function(e){return function(){return e}}},"./node_modules/lodash/defaults.js"(e,t,r){var n=r("./node_modules/lodash/_baseRest.js"),i=r("./node_modules/lodash/eq.js"),s=r("./node_modules/lodash/_isIterateeCall.js"),o=r("./node_modules/lodash/keysIn.js"),a=Object.prototype,l=a.hasOwnProperty;e.exports=n(function(e,t){e=Object(e);var r=-1,n=t.length,d=n>2?t[2]:void 0;for(d&&s(t[0],t[1],d)&&(n=1);++r<n;)for(var u=t[r],c=o(u),h=-1,f=c.length;++h<f;){var p=c[h],b=e[p];(void 0===b||i(b,a[p])&&!l.call(e,p))&&(e[p]=u[p])}return e})},"./node_modules/lodash/difference.js"(e,t,r){var n=r("./node_modules/lodash/_baseDifference.js"),i=r("./node_modules/lodash/_baseFlatten.js"),s=r("./node_modules/lodash/_baseRest.js"),o=r("./node_modules/lodash/isArrayLikeObject.js");e.exports=s(function(e,t){return o(e)?n(e,i(t,1,o,!0)):[]})},"./node_modules/lodash/eq.js"(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},"./node_modules/lodash/flatten.js"(e,t,r){var n=r("./node_modules/lodash/_baseFlatten.js");e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},"./node_modules/lodash/identity.js"(e){e.exports=function(e){return e}},"./node_modules/lodash/isArguments.js"(e,t,r){var n=r("./node_modules/lodash/_baseIsArguments.js"),i=r("./node_modules/lodash/isObjectLike.js"),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!a.call(e,"callee")}},"./node_modules/lodash/isArray.js"(e){e.exports=Array.isArray},"./node_modules/lodash/isArrayLike.js"(e,t,r){var n=r("./node_modules/lodash/isFunction.js"),i=r("./node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},"./node_modules/lodash/isArrayLikeObject.js"(e,t,r){var n=r("./node_modules/lodash/isArrayLike.js"),i=r("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return i(e)&&n(e)}},"./node_modules/lodash/isBuffer.js"(e,t,r){e=r.nmd(e);var n=r("./node_modules/lodash/_root.js"),i=r("./node_modules/lodash/stubFalse.js"),s=t&&!t.nodeType&&t,o=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===s?n.Buffer:void 0,l=a?a.isBuffer:void 0;e.exports=l||i},"./node_modules/lodash/isFunction.js"(e,t,r){var n=r("./node_modules/lodash/_baseGetTag.js"),i=r("./node_modules/lodash/isObject.js");e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash/isLength.js"(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},"./node_modules/lodash/isObject.js"(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash/isObjectLike.js"(e){e.exports=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash/isPlainObject.js"(e,t,r){var n=r("./node_modules/lodash/_baseGetTag.js"),i=r("./node_modules/lodash/_getPrototype.js"),s=r("./node_modules/lodash/isObjectLike.js"),o=Object.prototype,a=Function.prototype.toString,l=o.hasOwnProperty,d=a.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&a.call(r)==d}},"./node_modules/lodash/isTypedArray.js"(e,t,r){var n=r("./node_modules/lodash/_baseIsTypedArray.js"),i=r("./node_modules/lodash/_baseUnary.js"),s=r("./node_modules/lodash/_nodeUtil.js"),o=s&&s.isTypedArray;e.exports=o?i(o):n},"./node_modules/lodash/keysIn.js"(e,t,r){var n=r("./node_modules/lodash/_arrayLikeKeys.js"),i=r("./node_modules/lodash/_baseKeysIn.js"),s=r("./node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?n(e,!0):i(e)}},"./node_modules/lodash/noop.js"(e){e.exports=function(){}},"./node_modules/lodash/stubFalse.js"(e){e.exports=function(){return!1}},"./node_modules/lodash/union.js"(e,t,r){var n=r("./node_modules/lodash/_baseFlatten.js"),i=r("./node_modules/lodash/_baseRest.js"),s=r("./node_modules/lodash/_baseUniq.js"),o=r("./node_modules/lodash/isArrayLikeObject.js");e.exports=i(function(e){return s(n(e,1,o,!0))})},"./node_modules/normalize-path/index.js"(e){e.exports=function(e,t){if("string"!=typeof e)throw 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];("?"===i||"."===i)&&"\\\\"===e.slice(0,2)&&(e=e.slice(2),n="//")}var s=e.split(/[/\\]+/);return!1!==t&&""===s[s.length-1]&&s.pop(),n+s.join("/")}},"./node_modules/process-nextick-args/index.js"(e){"u"<typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:nextTick}:e.exports=process;function nextTick(e,t,r,n){if("function"!=typeof e)throw TypeError('"callback" argument must be a function');var i,s,o=arguments.length;switch(o){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(i=Array(o-1),s=0;s<i.length;)i[s++]=arguments[s];return process.nextTick(function(){e.apply(null,i)})}}},"./node_modules/process/index.js"(e){e.exports=eo.process},"./node_modules/readdir-glob/index.js"(e,t,r){e.exports=readdirGlob;let n=r("fs"),{EventEmitter:i}=r("events"),{Minimatch:s}=r("./node_modules/readdir-glob/node_modules/minimatch/minimatch.js"),{resolve:o}=r("path");function readdir(e,t){return new Promise((r,i)=>{n.readdir(e,{withFileTypes:!0},(e,n)=>{if(e)switch(e.code){case"ENOTDIR":t?i(e):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(e)}else r(n)})})}function stat(e,t){return new Promise((r,i)=>{(t?n.stat:n.lstat)(e,(n,i)=>{n?"ENOENT"===n.code&&t?r(stat(e,!1)):r(null):r(i)})})}async function*exploreWalkAsync(e,t,r,n,i,s){for(let o of(await readdir(t+e,s))){let s=o.name;void 0===s&&(s=o,n=!0);let a=e+"/"+s,l=a.slice(1),d=t+"/"+l,u=null;(n||r)&&(u=await stat(d,r)),u||void 0===o.name||(u=o),null===u&&(u={isDirectory:()=>!1}),u.isDirectory()?i(l)||(yield{relative:l,absolute:d,stats:u},yield*exploreWalkAsync(a,t,r,n,i,!1)):yield{relative:l,absolute:d,stats:u}}}async function*explore(e,t,r,n){yield*exploreWalkAsync("",e,t,r,n,!0)}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 a extends i{constructor(e,t,r){if(super(),"function"==typeof t&&(r=t,t=null),this.options=readOptions(t||{}),this.matchers=[],this.options.pattern){let e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map(e=>new s(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map(e=>new s(e,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map(e=>new s(e,{dot:!0}))}this.iterator=explore(o(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,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){let r=e+(t?"/":"");return(0===this.matchers.length||this.matchers.some(e=>e.match(r)))&&!this.ignoreMatchers.some(e=>e.match(r))&&(!this.options.nodir||!t)}_next(){this.paused||this.aborted?this.inactive=!0:this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let r=e.value.relative,n=e.value.absolute;this.options.mark&&t&&(r+="/",n+="/"),this.options.stat?this.emit("match",{relative:r,absolute:n,stat:e.value.stats}):this.emit("match",{relative:r,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),e.code||this.options.silent||console.error(e)})}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}}function readdirGlob(e,t,r){return new a(e,t,r)}readdirGlob.ReaddirGlob=a},"./node_modules/readdir-glob/node_modules/minimatch/lib/path.js"(e){e.exports="object"==typeof process&&process&&"win32"===process.platform?{sep:"\\"}:{sep:"/"}},"./node_modules/readdir-glob/node_modules/minimatch/minimatch.js"(e,t,r){let n=e.exports=(e,t,r={})=>(assertValidPattern(t),(!!r.nocomment||"#"!==t.charAt(0))&&new p(t,r).match(e));e.exports=n;let i=r("./node_modules/readdir-glob/node_modules/minimatch/lib/path.js");n.sep=i.sep;let s=Symbol("globstar **");n.GLOBSTAR=s;let o=r("./node_modules/brace-expansion/index.js"),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",d=l+"*?",charSet=e=>e.split("").reduce((e,t)=>(e[t]=!0,e),{}),u=charSet("().*{}+?[]^$\\!"),c=charSet("[.("),h=/\/+/;n.filter=(e,t={})=>(r,i,s)=>n(r,e,t);let ext=(e,t={})=>{let r={};return Object.keys(e).forEach(t=>r[t]=e[t]),Object.keys(t).forEach(e=>r[e]=t[e]),r};n.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return n;let t=n,m=(r,n,i)=>t(r,n,ext(e,i));return m.Minimatch=class 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)),m},n.braceExpand=(e,t)=>braceExpand(e,t);let braceExpand=(e,t={})=>(assertValidPattern(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:o(e),assertValidPattern=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>65536)throw TypeError("pattern is too long")},f=Symbol("subparse");n.makeRe=(e,t)=>new p(e,t||{}).makeRe(),n.match=(e,t,r={})=>{let n=new p(t,r);return e=e.filter(e=>n.match(e)),n.options.nonull&&!e.length&&e.push(t),e};let charUnescape=e=>e.replace(/\\([^-\]])/g,"$1"),braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class p{constructor(e,t){assertValidPattern(e),t||(t={}),this.options=t,this.maxGlobstarRecursion=void 0!==t.maxGlobstarRecursion?t.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let r=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,r),r=this.globParts=r.map(e=>e.split(h)),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=>-1===e.indexOf(!1)),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r){return -1!==t.indexOf(s)?this._matchGlobstar(e,t,r,0,0):this._matchOne(e,t,r,0,0)}_matchGlobstar(e,t,r,n,i){let o=-1;for(let e=i;e<t.length;e++)if(t[e]===s){o=e;break}let a=-1;for(let e=t.length-1;e>=0;e--)if(t[e]===s){a=e;break}let l=t.slice(i,o),d=r?t.slice(o+1):t.slice(o+1,a),u=r?[]:t.slice(a+1);if(l.length){let t=e.slice(n,n+l.length);if(!this._matchOne(t,l,r,0,0))return!1;n+=l.length}let c=0;if(u.length){if(u.length+n>e.length)return!1;let t=e.length-u.length;if(this._matchOne(e,u,r,t,0))c=u.length;else{if(""!==e[e.length-1]||n+u.length===e.length||!this._matchOne(e,u,r,t-1,0))return!1;c=u.length+1}}if(!d.length){let t=!!c;for(let r=n;r<e.length-c;r++){let n=String(e[r]);if(t=!0,"."===n||".."===n||!this.options.dot&&"."===n.charAt(0))return!1}return r||t}let h=[[[],0]],f=h[0],p=0,b=[0];for(let e of d)e===s?(b.push(p),f=[[],0],h.push(f)):(f[0].push(e),p++);let g=h.length-1,y=e.length-c;for(let e of h)e[1]=y-(b[g--]+e[0].length);return!!this._matchGlobStarBodySections(e,h,n,0,r,0,!!c)}_matchGlobStarBodySections(e,t,r,n,i,s,o){let a=t[n];if(!a){for(let t=r;t<e.length;t++){o=!0;let r=e[t];if("."===r||".."===r||!this.options.dot&&"."===r.charAt(0))return!1}return o}let[l,d]=a;for(;r<=d;){if(this._matchOne(e.slice(0,r+l.length),l,i,r,0)&&s<this.maxGlobstarRecursion){let a=this._matchGlobStarBodySections(e,t,r+l.length,n+1,i,s+1,o);if(!1!==a)return a}let a=e[r];if("."===a||".."===a||!this.options.dot&&"."===a.charAt(0))return!1;r++}return i||null}_matchOne(e,t,r,n,i){let o,a,l,d;for(o=n,a=i,l=e.length,d=t.length;o<l&&a<d;o++,a++){let r;this.debug("matchOne loop");let n=t[a],i=e[o];if(this.debug(t,n,i),!1===n||n===s||("string"==typeof n?(r=i===n,this.debug("string match",n,i,r)):(r=i.match(n),this.debug("pattern match",n,i,r)),!r))return!1}if(o===l&&a===d)return!0;if(o===l)return r;if(a===d)return o===l-1&&""===e[o];throw Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){let r,n,i,o;assertValidPattern(e);let h=this.options;if("**"===e)if(!h.noglobstar)return s;else e="*";if(""===e)return"";let p="",b=!1,g=!1,y=[],w=[],v=!1,S=-1,x=-1,j="."===e.charAt(0),k=h.dot||j,subPatternStart=e=>"."===e.charAt(0)?"":h.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",clearStateChar=()=>{if(r){switch(r){case"*":p+=d,b=!0;break;case"?":p+=l,b=!0;break;default:p+="\\"+r}this.debug("clearStateChar %j %j",r,p),r=!1}};for(let t=0,s;t<e.length&&(s=e.charAt(t));t++){if(this.debug("%s %s %s %j",e,t,p,s),g){if("/"===s)return!1;u[s]&&(p+="\\"),p+=s,g=!1;continue}switch(s){case"/":return!1;case"\\":if(v&&"-"===e.charAt(t+1)){p+=s;continue}clearStateChar(),g=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,t,p,s),v){this.debug(" in class"),"!"===s&&t===x+1&&(s="^"),p+=s;continue}if("*"===s&&"*"===r)continue;this.debug("call clearStateChar %j",r),clearStateChar(),r=s,h.noext&&clearStateChar();continue;case"(":{if(v){p+="(";continue}if(!r){p+="\\(";continue}let n={type:r,start:t-1,reStart:p.length,open:a[r].open,close:a[r].close};this.debug(this.pattern," ",n),y.push(n),p+=n.open,0===n.start&&"!"!==n.type&&(j=!0,p+=subPatternStart(e.slice(t+1))),this.debug("plType %j %j",r,p),r=!1;continue}case")":{let e=y[y.length-1];if(v||!e){p+="\\)";continue}y.pop(),clearStateChar(),b=!0,p+=(i=e).close,"!"===i.type&&w.push(Object.assign(i,{reEnd:p.length}));continue}case"|":{let r=y[y.length-1];if(v||!r){p+="\\|";continue}clearStateChar(),p+="|",0===r.start&&"!"!==r.type&&(j=!0,p+=subPatternStart(e.slice(t+1)));continue}case"[":if(clearStateChar(),v){p+="\\"+s;continue}v=!0,x=t,S=p.length,p+=s;continue;case"]":if(t===x+1||!v){p+="\\"+s;continue}n=e.substring(x+1,t);try{RegExp("["+braExpEscape(charUnescape(n))+"]"),p+=s}catch(e){p=p.substring(0,S)+"(?:$.)"}b=!0,v=!1;continue;default:clearStateChar(),u[s]&&!("^"===s&&v)&&(p+="\\"),p+=s}}for(v&&(n=e.slice(x+1),o=this.parse(n,f),p=p.substring(0,S)+"\\["+o[0],b=b||o[1]),i=y.pop();i;i=y.pop()){let e;e=p.slice(i.reStart+i.open.length),this.debug("setting tail",p,i),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,(e,t,r)=>(r||(r="\\"),t+t+r+"|")),this.debug("tail=%j\n %s",e,e,i,p);let t="*"===i.type?d:"?"===i.type?l:"\\"+i.type;b=!0,p=p.slice(0,i.reStart)+t+"\\("+e}clearStateChar(),g&&(p+="\\\\");let T=c[p.charAt(0)];for(let e=w.length-1;e>-1;e--){let r=w[e],n=p.slice(0,r.reStart),i=p.slice(r.reStart,r.reEnd-8),s=p.slice(r.reEnd),o=p.slice(r.reEnd-8,r.reEnd)+s,a=n.split(")").length,l=n.split("(").length-a,d=s;for(let e=0;e<l;e++)d=d.replace(/\)[+*?]?/,"");let u=""===(s=d)&&t!==f?"(?:$|\\/)":"";p=n+i+s+u+o}if(""!==p&&b&&(p="(?=.)"+p),T&&(p=(j?"":k?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+p),t===f)return[p,b];if(h.nocase&&!b&&(b=e.toUpperCase()!==e.toLowerCase()),!b)return e.replace(/\\(.)/g,"$1");let R=h.nocase?"i":"";try{return Object.assign(RegExp("^"+p+"$",R),{_glob:e,_src:p})}catch(e){return RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?d:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map(e=>((e=e.map(e=>"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===s?s:e._src).reduce((e,t)=>((e[e.length-1]!==s||t!==s)&&e.push(t),e),[])).forEach((t,n)=>{t===s&&e[n-1]!==s&&(0===n?e.length>1?e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]:e[n]=r:n===e.length-1?e[n-1]+="(?:\\/|"+r+")?":(e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1],e[n+1]=s))}),e.filter(e=>e!==s).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp}match(e,t=this.partial){let r;if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let n=this.options;"/"!==i.sep&&(e=e.split(i.sep).join("/")),e=e.split(h),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);for(let t=e.length-1;t>=0&&!(r=e[t]);t--);for(let i=0;i<s.length;i++){let o=s[i],a=e;if(n.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,t)){if(n.flipNegate)return!0;return!this.negate}}return!n.flipNegate&&this.negate}static defaults(e){return n.defaults(e).Minimatch}}n.Minimatch=p},"./node_modules/safe-buffer/index.js"(e,t,r){var n=r("buffer"),i=n.Buffer;function copyProps(e,t){for(var r in e)t[r]=e[r]}function SafeBuffer(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(copyProps(n,t),t.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(i.prototype),copyProps(i,SafeBuffer),SafeBuffer.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},SafeBuffer.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},"./node_modules/streamx/index.js"(e,t,r){let{EventEmitter:n}=r("./node_modules/events-universal/default.js"),i=Error("Stream was destroyed"),s=Error("Premature close"),o=r("./node_modules/fast-fifo/index.js"),a=r("./node_modules/text-decoder/index.js"),l="u"<typeof queueMicrotask?e=>eo.process.nextTick(e):queueMicrotask,d=0x1ffffcff,u=0x1ffdfeff,c=0x200800f,h=17423,f=16527,p=1167,b=12431,g=214047,y=17422,w=32879,v=0x880000f,S=6553615,x=0x1024000f,j=0x8a4000f,k=0x8c0000e,T=0x218000f,R=0x880000e,A=Symbol.asyncIterator||Symbol("asyncIterator");class O{constructor(e,{highWaterMark:t=16384,map:r=null,mapWritable:n,byteLength:i,byteLengthWritable:s}={}){this.stream=e,this.queue=new o,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=s||i||defaultByteLength,this.map=n||r,this.afterWrite=afterWrite.bind(this),this.afterUpdateNextTick=updateWriteNT.bind(this)}get ending(){return(0x8000000&this.stream._duplexState)!=0}get ended(){return(8388608&this.stream._duplexState)!=0}push(e){return(this.stream._duplexState&R)==0&&((null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark)?(this.stream._duplexState|=2097152,!0):(this.stream._duplexState|=6291456,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=0x1fdfffff),e}end(e){"function"==typeof e?this.stream.once("finish",e):null!=e&&this.push(e),this.stream._duplexState=(0x8000000|this.stream._duplexState)&0x1fefffff}autoBatch(e,t){let r=[],n=this.stream;for(r.push(e);(n._duplexState&x)==2359296;)r.push(n._writableState.shift());if((15&n._duplexState)!=0)return t(null);n._writev(r,t)}update(){let e=this.stream;e._duplexState|=524288;do{for(;(e._duplexState&x)==2097152;){let t=this.shift();e._duplexState|=0x4040000,e._write(t,this.afterWrite)}(1310720&e._duplexState)==0&&this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=0x1ff7ffff}updateNonPrimary(){let e=this.stream;if((e._duplexState&j)==0x8000000){e._duplexState=262144|e._duplexState,e._final(afterFinal.bind(this));return}if((14&e._duplexState)==4){(0x2008000&e._duplexState)==0&&(e._duplexState|=262160,e._destroy(afterDestroy.bind(this)));return}(e._duplexState&c)==1&&(e._duplexState=(262160|e._duplexState)&0x1ffffffe,e._open(afterOpen.bind(this)))}continueUpdate(){return(0x2000000&this.stream._duplexState)!=0&&(this.stream._duplexState&=0x1dffffff,!0)}updateCallback(){(this.stream._duplexState&T)==1048576?this.update():this.updateNextTick()}updateNextTick(){(0x2000000&this.stream._duplexState)==0&&(this.stream._duplexState|=0x2000000,(524288&this.stream._duplexState)==0&&l(this.afterUpdateNextTick))}}class C{constructor(e,{highWaterMark:t=16384,map:r=null,mapReadable:n,byteLength:i,byteLengthReadable:s}={}){this.stream=e,this.queue=new o,this.highWaterMark=0===t?1:t,this.buffered=0,this.readAhead=t>0,this.error=null,this.pipeline=null,this.byteLength=s||i||defaultByteLength,this.map=n||r,this.pipeTo=null,this.afterRead=afterRead.bind(this),this.afterUpdateNextTick=updateReadNT.bind(this)}get ending(){return(1024&this.stream._duplexState)!=0}get ended(){return(16384&this.stream._duplexState)!=0}pipe(e,t){if(null!==this.pipeTo)throw Error("Can only pipe to one destination");if("function"!=typeof t&&(t=null),this.stream._duplexState|=512,this.pipeTo=e,this.pipeline=new L(this.stream,e,t),t&&this.stream.on("error",noop),isStreamx(e))e._writableState.pipeline=this.pipeline,t&&e.on("error",noop),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let t=this.pipeline.done.bind(this.pipeline,e),r=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",t),e.on("close",r),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",afterDrain.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let t=this.stream;return null===e?(this.highWaterMark=0,t._duplexState=(1024|t._duplexState)&0x1ffeffbf,!1):null!==this.map&&null===(e=this.map(e))?(t._duplexState&=0x1ffeffff,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),t._duplexState=(128|t._duplexState)&0x1ffeffff,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=0x1fffdf7f),e}unshift(e){let t=[null!==this.map?this.map(e):e];for(;this.buffered>0;)t.push(this.shift());for(let e=0;e<t.length-1;e++){let r=t[e];this.buffered+=this.byteLength(r),this.queue.push(r)}this.push(t[t.length-1])}read(){let e=this.stream;if((e._duplexState&f)==128){let t=this.shift();return null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=d),(2048&e._duplexState)!=0&&e.emit("data",t),t}return!1===this.readAhead&&(e._duplexState|=131072,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&f)==128&&(768&e._duplexState)!=0;){let t=this.shift();null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=d),(2048&e._duplexState)!=0&&e.emit("data",t)}}update(){let e=this.stream;e._duplexState|=32;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&g)==131072;)e._duplexState|=65552,e._read(this.afterRead),this.drain();(e._duplexState&b)==4224&&(e._duplexState|=8192,e.emit("readable")),(80&e._duplexState)==0&&this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=0x1fffffdf}updateNonPrimary(){let e=this.stream;if((e._duplexState&p)==1024&&(e._duplexState=(16384|e._duplexState)&0x1ffffbff,e.emit("end"),(8405006&e._duplexState)==8404992&&(e._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),(14&e._duplexState)==4){(0x2008000&e._duplexState)==0&&(e._duplexState|=262160,e._destroy(afterDestroy.bind(this)));return}(e._duplexState&c)==1&&(e._duplexState=(262160|e._duplexState)&0x1ffffffe,e._open(afterOpen.bind(this)))}continueUpdate(){return(32768&this.stream._duplexState)!=0&&(this.stream._duplexState&=0x1fff7fff,!0)}updateCallback(){(this.stream._duplexState&w)==64?this.update():this.updateNextTick()}updateNextTickIfOpen(){(32769&this.stream._duplexState)==0&&(this.stream._duplexState|=32768,(32&this.stream._duplexState)==0&&l(this.afterUpdateNextTick))}updateNextTick(){(32768&this.stream._duplexState)==0&&(this.stream._duplexState|=32768,(32&this.stream._duplexState)==0&&l(this.afterUpdateNextTick))}}class M{constructor(e){this.data=null,this.afterTransform=afterTransform.bind(e),this.afterFinal=null}}class L{constructor(e,t,r){this.from=e,this.to=t,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,t){if(t&&(this.error=t),e===this.to&&(this.to=null,null!==this.from)){(16384&this.from._duplexState)!=0&&this.pipeToFinished||this.from.destroy(this.error||Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,null!==this.to)){(16384&e._duplexState)==0&&this.to.destroy(this.error||Error("Readable stream closed before ending"));return}null!==this.afterPipe&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}}function afterDrain(){this.stream._duplexState|=512,this.updateCallback()}function afterFinal(e){let t=this.stream;e&&t.destroy(e),(14&t._duplexState)==0&&(t._duplexState|=8388608,t.emit("finish")),(8405006&t._duplexState)==8404992&&(t._duplexState|=4),t._duplexState&=0x17fbffff,(524288&t._duplexState)==0?this.update():this.updateNextTick()}function afterDestroy(e){let t=this.stream;e||this.error===i||(e=this.error),e&&t.emit("error",e),t._duplexState|=8,t.emit("close");let r=t._readableState,n=t._writableState;if(null!==r&&null!==r.pipeline&&r.pipeline.done(t,e),null!==n){for(;null!==n.drains&&n.drains.length>0;)n.drains.shift().resolve(!1);null!==n.pipeline&&n.pipeline.done(t,e)}}function afterWrite(e){let t=this.stream;e&&t.destroy(e),t._duplexState&=0x1bfbffff,null!==this.drains&&tickDrains(this.drains),(t._duplexState&S)==4194304&&(t._duplexState&=0x1fbfffff,(0x1000000&t._duplexState)==0x1000000&&t.emit("drain")),this.updateCallback()}function afterRead(e){e&&this.stream.destroy(e),this.stream._duplexState&=0x1fffffef,!1===this.readAhead&&(256&this.stream._duplexState)==0&&(this.stream._duplexState&=0x1ffdffff),this.updateCallback()}function updateReadNT(){(32&this.stream._duplexState)==0&&(this.stream._duplexState&=0x1fff7fff,this.update())}function updateWriteNT(){(524288&this.stream._duplexState)==0&&(this.stream._duplexState&=0x1dffffff,this.update())}function tickDrains(e){for(let t=0;t<e.length;t++)0==--e[t].writes&&(e.shift().resolve(!0),t--)}function afterOpen(e){let t=this.stream;e&&t.destroy(e),(4&t._duplexState)==0&&((t._duplexState&h)==0&&(t._duplexState|=64),(t._duplexState&v)==0&&(t._duplexState|=1048576),t.emit("open")),t._duplexState&=0x1ffbffef,null!==t._writableState&&t._writableState.updateCallback(),null!==t._readableState&&t._readableState.updateCallback()}function afterTransform(e,t){null!=t&&this.push(t),this._writableState.afterWrite(e)}function newListener(e){null!==this._readableState&&("data"===e&&(this._duplexState|=133376,this._readableState.updateNextTick()),"readable"===e&&(this._duplexState|=4096,this._readableState.updateNextTick())),null!==this._writableState&&"drain"===e&&(this._duplexState|=0x1000000,this._writableState.updateNextTick())}class D extends n{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",abort.bind(this))),this.on("newListener",newListener)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return null!==this._readableState||void 0}get writable(){return null!==this._writableState||void 0}get destroyed(){return(8&this._duplexState)!=0}get destroying(){return(14&this._duplexState)!=0}destroy(e){(14&this._duplexState)==0&&(e||(e=i),this._duplexState=(4|this._duplexState)&0x1fefffbf,null!==this._readableState&&(this._readableState.highWaterMark=0,this._readableState.error=e),null!==this._writableState&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=2,this._predestroy(),this._duplexState&=0x1ffffffd,null!==this._readableState&&this._readableState.updateNextTick(),null!==this._writableState&&this._writableState.updateNextTick())}}class I extends D{constructor(e){super(e),this._duplexState|=8519681,this._readableState=new C(this,e),e&&(!1===this._readableState.readAhead&&(this._duplexState&=0x1ffdffff),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let t=new a(e),r=this._readableState.map||echo;return this._readableState.map=mapOrSkip,this;function mapOrSkip(e){let n=t.push(e);return""===n&&(0!==e.byteLength||t.remaining>0)?null:r(n)}}_read(e){e(null)}pipe(e,t){return this._readableState.updateNextTick(),this._readableState.pipe(e,t),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=131328,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=!1===this._readableState.readAhead?u:0x1ffffeff,this}static _fromAsyncIterator(e,t){let r,n=new I({...t,read(t){e.next().then(push).then(t.bind(null,null)).catch(t)},predestroy(){r=e.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return n;function push(e){e.done?n.push(null):n.push(e.value)}}static from(e,t){if(isReadStreamx(e))return e;if(e[A])return this._fromAsyncIterator(e[A](),t);Array.isArray(e)||(e=void 0===e?[]:[e]);let r=0;return new I({...t,read(t){this.push(r===e.length?null:e[r++]),t(null)}})}static isBackpressured(e){return(e._duplexState&y)!=0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(256&e._duplexState)==0}[A](){let e=this,t=null,r=null,n=null;return this.on("error",e=>{t=e}),this.on("readable",onreadable),this.on("close",onclose),{[A](){return this},next:()=>new Promise(function(t,i){r=t,n=i;let s=e.read();null!==s?ondata(s):(8&e._duplexState)!=0&&ondata(null)}),return:()=>destroy(null),throw:e=>destroy(e)};function onreadable(){null!==r&&ondata(e.read())}function onclose(){null!==r&&ondata(null)}function ondata(s){null!==n&&(t?n(t):null===s&&(16384&e._duplexState)==0?n(i):r({value:s,done:null===s}),n=r=null)}function destroy(t){return e.destroy(t),new Promise((r,n)=>{if(8&e._duplexState)return r({value:void 0,done:!0});e.once("close",function(){t?n(t):r({value:void 0,done:!0})})})}}}class P extends D{constructor(e){super(e),this._duplexState|=16385,this._writableState=new O(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=0x10000000}uncork(){this._duplexState&=0xfffffff,this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&k)!=0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let t=e._writableState,r=(isWritev(e)?Math.min(1,t.queue.length):t.queue.length)+(0x4000000&e._duplexState?1:0);return 0===r?Promise.resolve(!0):(null===t.drains&&(t.drains=[]),new Promise(e=>{t.drains.push({writes:r,resolve:e})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class W extends I{constructor(e){super(e),this._duplexState=1|131072&this._duplexState,this._writableState=new O(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=0x10000000}uncork(){this._duplexState&=0xfffffff,this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class N extends W{constructor(e){super(e),this._transformState=new M(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(null!==this._transformState.data){let t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),null!==this._transformState.data&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(transformAfterFlush.bind(this))}}function transformAfterFlush(e,t){let r=this._transformState.afterFinal;if(e)return r(e);null!=t&&this.push(t),this.push(null),r(null)}function pipelinePromise(...e){return new Promise((t,r)=>pipeline(...e,e=>{if(e)return r(e);t()}))}function pipeline(e,...t){let r=Array.isArray(e)?[...e,...t]:[e,...t],n=r.length&&"function"==typeof r[r.length-1]?r.pop():null;if(r.length<2)throw Error("Pipeline requires at least 2 streams");let i=r[0],o=null,a=null;for(let e=1;e<r.length;e++)o=r[e],isStreamx(i)?i.pipe(o,onerror):(errorHandle(i,!0,e>1,onerror),i.pipe(o)),i=o;if(n){let e=!1,t=isStreamx(o)||!!(o._writableState&&o._writableState.autoDestroy);o.on("error",e=>{null===a&&(a=e)}),o.on("finish",()=>{e=!0,t||n(a)}),t&&o.on("close",()=>n(a||(e?null:s)))}return o;function errorHandle(e,t,r,n){function onclose(){if(t&&e._readableState&&!e._readableState.ended||r&&e._writableState&&!e._writableState.ended)return n(s)}e.on("error",n),e.on("close",onclose)}function onerror(e){if(e&&!a)for(let t of(a=e,r))t.destroy(e)}}function echo(e){return e}function isStream(e){return!!e._readableState||!!e._writableState}function isStreamx(e){return"number"==typeof e._duplexState&&isStream(e)}function isReadStreamx(e){return isStreamx(e)&&e.readable}function isTypedArray(e){return"object"==typeof e&&null!==e&&"number"==typeof e.byteLength}function defaultByteLength(e){return isTypedArray(e)?e.byteLength:1024}function noop(){}function abort(){this.destroy(Error("Stream aborted."))}function isWritev(e){return e._writev!==P.prototype._writev&&e._writev!==W.prototype._writev}e.exports={pipeline,pipelinePromise,isStream,isStreamx,isEnding:function(e){return!!e._readableState&&e._readableState.ending},isEnded:function(e){return!!e._readableState&&e._readableState.ended},isFinishing:function(e){return!!e._writableState&&e._writableState.ending},isFinished:function(e){return!!e._writableState&&e._writableState.ended},isDisturbed:function(e){return(1&e._duplexState)!=1||(4&e._duplexState)==4||(0x2008000&e._duplexState)!=0},getStreamError:function(e,t={}){let r=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return t.all||r!==i?r:null},Stream:D,Writable:P,Readable:I,Duplex:W,Transform:N,PassThrough:class extends N{}}},"./node_modules/string_decoder/lib/string_decoder.js"(e,t,r){var n=r("./node_modules/safe-buffer/index.js").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(e){var t;if(!e)return"utf8";for(;;)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=!0}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function StringDecoder(e){var t;switch(this.encoding=normalizeEncoding(e),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)}function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4: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]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=utf8CheckByte(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=utf8CheckByte(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function utf8CheckExtraBytes(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed,r=utf8CheckExtraBytes(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(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);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":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)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],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;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function base64End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}t.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"./node_modules/tar-stream/constants.js"(e,t,r){let n={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{e.exports=r("fs").constants||n}catch{e.exports=n}},"./node_modules/tar-stream/extract.js"(e,t,r){let{Writable:n,Readable:i,getStreamError:s}=r("./node_modules/streamx/index.js"),o=r("./node_modules/fast-fifo/index.js"),a=r("./node_modules/b4a/index.js"),l=r("./node_modules/tar-stream/headers.js"),d=a.alloc(0);class u{constructor(){this.buffered=0,this.shifted=0,this.queue=new o,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return 0===this._buffered?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(0===e)return d;let t=this._next(e);if(e===t.byteLength)return t;let r=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),r.push(t);return a.concat(r)}_next(e){let t=this.queue.peek(),r=t.byteLength-this._offset;if(e>=r){let e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}}class c extends i{constructor(e,t,r){super(),this.header=t,this.offset=r,this._parent=e}_read(e){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(s(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=overflow(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}}class h extends n{constructor(e){super(e),e||(e={}),this._buffer=new u,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=noop,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=l.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return(this._locked=!0,this._applyLongHeaders(),0===this._header.size||"directory"===this._header.type)?this.emit("entry",this._header,this._createStream(),this._unlockBound):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound)),!0}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=l.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=l.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=l.decodePax(e);break;case"pax-header":this._pax=null===this._paxGlobal?l.decodePax(e):Object.assign({},this._paxGlobal,l.decodePax(e))}}_consumeLongHeader(){this._longHeader=!1,this._missing=overflow(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(null===e)return!1;this._missing-=e.byteLength;let t=this._stream.push(e);return 0===this._missing?(this._stream.push(null),t&&this._stream._detach(),t&&!1===this._locked):t}_createStream(){return new c(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}let e=this._buffer.shiftFirst(this._missing);null!==e&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(e){let t=this._callback;this._callback=noop,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=0===this._missing&&0===this._buffer.buffered,e(this._finished?null:Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(s(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,r=null,n=null,i=null,s=this;return this.on("entry",onentry),this.on("error",t=>{e=t}),this.on("close",onclose),{[Symbol.asyncIterator](){return this},next:()=>new Promise(onnext),return:()=>destroy(null),throw:e=>destroy(e)};function consumeCallback(e){if(!i)return;let t=i;i=null,t(e)}function onnext(i,o){if(e)return o(e);if(n){i({value:n,done:!1}),n=null;return}t=i,r=o,consumeCallback(null),s._finished&&t&&(t({value:void 0,done:!0}),t=r=null)}function onentry(e,s,o){i=o,s.on("error",noop),t?(t({value:s,done:!1}),t=r=null):n=s}function onclose(){consumeCallback(e),t&&(e?r(e):t({value:void 0,done:!0}),t=r=null)}function destroy(e){return s.destroy(e),consumeCallback(e),new Promise((t,r)=>{if(s.destroyed)return t({value:void 0,done:!0});s.once("close",function(){e?r(e):t({value:void 0,done:!0})})})}}}function noop(){}function overflow(e){return(e&=511)&&512-e}e.exports=function(e){return new h(e)}},"./node_modules/tar-stream/headers.js"(e,t,r){let n=r("./node_modules/b4a/index.js"),i=n.from([117,115,116,97,114,0]),s=n.from([48,48]),o=n.from([117,115,116,97,114,32]),a=n.from([32,0]);function isUSTAR(e){return n.equals(i,e.subarray(257,263))}function isGNU(e){return n.equals(o,e.subarray(257,263))&&n.equals(a,e.subarray(263,265))}function clamp(e,t,r){return"number"!=typeof e?r:(e=~~e)>=t?t:e>=0||(e+=t)>=0?e:0}function toType(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}function toTypeflag(e){switch(e){case"file":break;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}function indexOf(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n}function cksum(e){let t=256;for(let r=0;r<148;r++)t+=e[r];for(let r=156;r<512;r++)t+=e[r];return t}function encodeOct(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "}function encodeSizeBin(e,t,r){t[r]=128;for(let n=11;n>0;n--)t[r+n]=255&e,e=Math.floor(e/256)}function encodeSize(e,t,r){e.toString(8).length>11?encodeSizeBin(e,t,r):n.write(t,encodeOct(e,11),r)}function parse256(e){let t,r;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}let n=[];for(r=e.length-1;r>0;r--){let i=e[r];t?n.push(i):n.push(255-i)}let i=0,s=n.length;for(r=0;r<s;r++)i+=n[r]*Math.pow(256,r);return t?i:-1*i}function decodeOct(e,t,r){if(128&(e=e.subarray(t,t+r))[t=0])return parse256(e);{for(;t<e.length&&32===e[t];)t++;let r=clamp(indexOf(e,32,t,e.length),e.length,e.length);for(;t<r&&0===e[t];)t++;return r===t?0:parseInt(n.toString(e.subarray(t,r)),8)}}function decodeStr(e,t,r,i){return n.toString(e.subarray(t,indexOf(e,0,t,t+r)),i)}function addLength(e){let t=n.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e}t.decodeLongPath=function(e,t){return decodeStr(e,0,e.length,t)},t.encodePax=function(e){let t="";e.name&&(t+=addLength(" path="+e.name+"\n")),e.linkname&&(t+=addLength(" linkpath="+e.linkname+"\n"));let r=e.pax;if(r)for(let e in r)t+=addLength(" "+e+"="+r[e]+"\n");return n.from(t)},t.decodePax=function(e){let t={};for(;e.length;){let r=0;for(;r<e.length&&32!==e[r];)r++;let i=parseInt(n.toString(e.subarray(0,r)),10);if(!i)break;let s=n.toString(e.subarray(r+1,i-1)),o=s.indexOf("=");if(-1===o)break;t[s.slice(0,o)]=s.slice(o+1),e=e.subarray(i)}return t},t.encode=function(e){let t=n.alloc(512),r=e.name,o="";if(5===e.typeflag&&"/"!==r[r.length-1]&&(r+="/"),n.byteLength(r)!==r.length)return null;for(;n.byteLength(r)>100;){let e=r.indexOf("/");if(-1===e)return null;o+=o?"/"+r.slice(0,e):r.slice(0,e),r=r.slice(e+1)}return n.byteLength(r)>100||n.byteLength(o)>155||e.linkname&&n.byteLength(e.linkname)>100?null:(n.write(t,r),n.write(t,encodeOct(4095&e.mode,6),100),n.write(t,encodeOct(e.uid,6),108),n.write(t,encodeOct(e.gid,6),116),encodeSize(e.size,t,124),n.write(t,encodeOct(e.mtime.getTime()/1e3|0,11),136),t[156]=48+toTypeflag(e.type),e.linkname&&n.write(t,e.linkname,157),n.copy(i,t,257),n.copy(s,t,263),e.uname&&n.write(t,e.uname,265),e.gname&&n.write(t,e.gname,297),n.write(t,encodeOct(e.devmajor||0,6),329),n.write(t,encodeOct(e.devminor||0,6),337),o&&n.write(t,o,345),n.write(t,encodeOct(cksum(t),6),148),t)},t.decode=function(e,t,r){let n=0===e[156]?0:e[156]-48,i=decodeStr(e,0,100,t),s=decodeOct(e,100,8),o=decodeOct(e,108,8),a=decodeOct(e,116,8),l=decodeOct(e,124,12),d=decodeOct(e,136,12),u=toType(n),c=0===e[157]?null:decodeStr(e,157,100,t),h=decodeStr(e,265,32),f=decodeStr(e,297,32),p=decodeOct(e,329,8),b=decodeOct(e,337,8),g=cksum(e);if(256===g)return null;if(g!==decodeOct(e,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(e))e[345]&&(i=decodeStr(e,345,155,t)+"/"+i);else if(isGNU(e));else if(!r)throw Error("Invalid tar header: unknown format.");return 0===n&&i&&"/"===i[i.length-1]&&(n=5),{name:i,mode:s,uid:o,gid:a,size:l,mtime:new Date(1e3*d),type:u,linkname:c,uname:h,gname:f,devmajor:p,devminor:b,pax:null}}},"./node_modules/tar-stream/index.js"(e,t,r){t.extract=r("./node_modules/tar-stream/extract.js"),t.pack=r("./node_modules/tar-stream/pack.js")},"./node_modules/tar-stream/pack.js"(e,t,r){let{Readable:n,Writable:i,getStreamError:s}=r("./node_modules/streamx/index.js"),o=r("./node_modules/b4a/index.js"),a=r("./node_modules/tar-stream/constants.js"),l=r("./node_modules/tar-stream/headers.js"),d=o.alloc(1024);class u extends i{constructor(e,t,r){super({mapWritable,eagerOpen:!0}),this.written=0,this.header=t,this._callback=r,this._linkname=null,this._isLinkname="symlink"===t.type&&!t.linkname,this._isVoid="file"!==t.type&&"contiguous-file"!==t.type,this._finished=!1,this._pack=e,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(null===this._callback)return;let t=this._callback;this._callback=null,t(e)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,null!==e){if(this._pack.destroying)return e(Error("pack stream destroyed"));if(this._pack._finalized)return e(Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){return this._isLinkname?(this._linkname=this._linkname?o.concat([this._linkname,e]):e,t(null)):this._isVoid?e.byteLength>0?t(Error("No body allowed for this entry")):t():(this.written+=e.byteLength,this._pack.push(e))?t():void(this._pack._drain=t)}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?o.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),overflow(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(Error("Size mismatch"));this._finish(),e(null)}_getError(){return s(this)||Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}}class c extends n{constructor(e){super(e),this._drain=noop,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,r){if(this._finalized||this.destroying)throw Error("already finalized or destroyed");"function"==typeof t&&(r=t,t=null),r||(r=noop),e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=modeToType(e.mode)),e.mode||(e.mode="directory"===e.type?493:420),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=o.from(t));let n=new u(this,e,r);return o.isBuffer(t)?(e.size=t.byteLength,n.write(t),n.end()):n._isVoid,n}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(d),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let t=l.encode(e);if(t)return void this.push(t)}this._encodePax(e)}_encodePax(e){let t=l.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(l.encode(r)),this.push(t),overflow(this,t.byteLength),r.size=e.size,r.type=e.type,this.push(l.encode(r))}_doDrain(){let e=this._drain;this._drain=noop,e()}_predestroy(){let e=s(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}}function modeToType(e){switch(e&a.S_IFMT){case a.S_IFBLK:return"block-device";case a.S_IFCHR:return"character-device";case a.S_IFDIR:return"directory";case a.S_IFIFO:return"fifo";case a.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(e,t){(t&=511)&&e.push(d.subarray(0,512-t))}function mapWritable(e){return o.isBuffer(e)?e:o.from(e)}e.exports=function(e){return new c(e)}},"./node_modules/text-decoder/index.js"(e,t,r){let n=r("./node_modules/text-decoder/lib/pass-through-decoder.js"),i=r("./node_modules/text-decoder/lib/utf8-decoder.js");function normalizeEncoding(e){switch(e=e.toLowerCase()){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:throw Error("Unknown encoding: "+e)}}e.exports=class{constructor(e="utf8"){switch(this.encoding=normalizeEncoding(e),this.encoding){case"utf8":this.decoder=new i;break;case"utf16le":case"base64":throw Error("Unsupported encoding: "+this.encoding);default:this.decoder=new n(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return"string"==typeof e?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let t="";return e&&(t=this.push(e)),t+=this.decoder.flush()}}},"./node_modules/text-decoder/lib/pass-through-decoder.js"(e,t,r){let n=r("./node_modules/b4a/index.js");e.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return n.toString(e,this.encoding)}flush(){return""}}},"./node_modules/text-decoder/lib/utf8-decoder.js"(e,t,r){let n=r("./node_modules/b4a/index.js");function trailingIncomplete(e,t){let r,n=e.byteLength;if(n<=t)return 0;let i=Math.max(t,n-4),s=n-1;for(;s>i&&(192&e[s])==128;)s--;if(s<t)return 0;let o=e[s];if(o<=127)return 0;if(o>=194&&o<=223)r=2;else if(o>=224&&o<=239)r=3;else{if(!(o>=240)||!(o<=244))return 0;r=4}let a=n-s;return a<r?a:0}function trailingBytesSeen(e){let t,r=e.byteLength;if(0===r)return 0;let n=e[r-1];if(n<=127)return 0;if((192&n)!=128)return 1;let i=Math.max(0,r-4),s=r-2;for(;s>=i&&(192&e[s])==128;)s--;if(s<0)return 1;let o=e[s];if(o>=194&&o<=223)t=2;else if(o>=224&&o<=239)t=3;else{if(!(o>=240)||!(o<=244))return 1;t=4}if(r-s!==t)return 1;if(t>=3){let t=e[s+1];if(224===o&&t<160||237===o&&t>159||240===o&&t<144||244===o&&t>143)return 1}return 0}e.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(0===e.byteLength)return"";if(0===this.bytesNeeded&&0===trailingIncomplete(e,0))return this.bytesSeen=trailingBytesSeen(e),n.toString(e,"utf8");let t="",r=0;if(this.bytesNeeded>0){for(;r<e.byteLength;){let n=e[r];if(n<this.lowerBoundary||n>this.upperBoundary){t+="�",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|63&n,this.bytesSeen++,r++,this.bytesSeen===this.bytesNeeded){t+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return t}let i=trailingIncomplete(e,r),s=e.byteLength-i;s>r&&(t+=n.toString(e,"utf8",r,s));for(let r=s;r<e.byteLength;r++){let n=e[r];if(0===this.bytesNeeded){n<=127?(this.bytesSeen=0,t+=String.fromCharCode(n)):n>=194&&n<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=31&n):n>=224&&n<=239?(224===n?this.lowerBoundary=160:237===n&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=15&n):n>=240&&n<=244?(240===n?this.lowerBoundary=144:244===n&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=7&n):(this.bytesSeen=1,t+="�");continue}if(n<this.lowerBoundary||n>this.upperBoundary){t+="�",r--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|63&n,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(t+=String.fromCodePoint(this.codePoint),this._reset())}return t}flush(){let e=this.bytesNeeded>0?"�":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}}},"./node_modules/util-deprecate/node.js"(e,t,r){e.exports=r("util").deprecate},"./node_modules/zip-stream/index.js"(e,t,r){var n=r("util").inherits,i=r("./node_modules/compress-commons/lib/compress-commons.js").ZipArchiveOutputStream,s=r("./node_modules/compress-commons/lib/compress-commons.js").ZipArchiveEntry,o=r("./node_modules/archiver-utils/index.js"),a=e.exports=function(e){if(!(this instanceof a))return new a(e);(e=this.options=e||{}).zlib=e.zlib||{},i.call(this,e),"number"==typeof e.level&&e.level>=0&&(e.zlib.level=e.level,delete e.level),e.forceZip64||"number"!=typeof e.zlib.level||0!==e.zlib.level||(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};n(a,i),a.prototype._normalizeFileData=function(e){var t="directory"===(e=o.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,r="symlink"===e.type;return e.name&&(e.name=o.sanitizePath(e.name),r||"/"!==e.name.slice(-1)?t&&(e.name+="/"):(t=!0,e.type="directory")),(t||r)&&(e.store=!0),e.date=o.dateify(e.date),e},a.prototype.entry=function(e,t,r){if("function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),"file"!==(t=this._normalizeFileData(t)).type&&"directory"!==t.type&&"symlink"!==t.type)return void r(Error(t.type+" entries not currently supported"));if("string"!=typeof t.name||0===t.name.length)return void r(Error("entry name must be a non-empty string value"));if("symlink"===t.type&&"string"!=typeof t.linkname)return void r(Error("entry linkname must be a non-empty string value when type equals symlink"));var n=new s(t.name);return n.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&n.setName(t.name,!0),t.store&&n.setMethod(0),t.comment.length>0&&n.setComment(t.comment),"symlink"===t.type&&"number"!=typeof t.mode&&(t.mode=40960),"number"==typeof t.mode&&("symlink"===t.type&&(t.mode|=40960),n.setUnixMode(t.mode)),"symlink"===t.type&&"string"==typeof t.linkname&&(e=Buffer.from(t.linkname)),i.prototype.entry.call(this,n,e,r)},a.prototype.finalize=function(){this.finish()}},assert(e){e.exports=i},constants(e){e.exports=s},"node:child_process"(e){e.exports=o},"node:events"(e){e.exports=a},"node:process"(e){e.exports=l},"node:string_decoder"(e){e.exports=d},"node:url"(e){e.exports=u},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Glob=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"),i=r("node:url"),s=r("./node_modules/path-scurry/dist/commonjs/index.js"),o=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js"),a=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/walker.js"),l="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class d{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,i.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=!1!==t.includeChildMatches,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&void 0!==this.absolute)throw Error("cannot set absolute and withFileTypes:true");if("string"==typeof e&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(e=e.map(e=>e.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw TypeError("base matching requires globstar");e=e.map(e=>e.includes("/")?e:`./**/${e}`)}if(this.pattern=e,this.platform=t.platform||l,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,void 0!==t.nocase&&t.nocase!==t.scurry.nocase)throw Error("nocase option contradicts provided scurry option")}else{let e="win32"===t.platform?s.PathScurryWin32:"darwin"===t.platform?s.PathScurryDarwin:t.platform?s.PathScurryPosix:s.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let r="darwin"===this.platform||"win32"===this.platform,a={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},[d,u]=this.pattern.map(e=>new n.Minimatch(e,a)).reduce((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e),[[],[]]);this.patterns=d.map((e,t)=>{let r=u[t];if(!r)throw Error("invalid pattern object");return new o.Pattern(e,r,0,this.platform)})}async walk(){return[...await new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=d},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.hasMagic=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js");t.hasMagic=(e,t={})=>{for(let r of(Array.isArray(e)||(e=[e]),e))if(new n.Minimatch(r,t).hasMagic())return!0;return!1}},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Ignore=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"),i=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js"),s="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";t.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:n,noglobstar:i,platform:o=s}){for(let s of(this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:r,noext:n,noglobstar:i,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0},e))this.add(s)}add(e){let t=new n.Minimatch(e,this.mmopts);for(let e=0;e<t.set.length;e++){let r=t.set[e],s=t.globParts[e];if(!r||!s)throw Error("invalid pattern object");for(;"."===r[0]&&"."===s[0];)r.shift(),s.shift();let o=new i.Pattern(r,s,0,this.platform),a=new n.Minimatch(o.globString(),this.mmopts),l="**"===s[s.length-1],d=o.isAbsolute();d?this.absolute.push(a):this.relative.push(a),l&&(d?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let t=e.fullpath(),r=`${t}/`,n=e.relative()||".",i=`${n}/`;for(let e of this.relative)if(e.match(n)||e.match(i))return!0;for(let e of this.absolute)if(e.match(t)||e.match(r))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let e of this.relativeChildren)if(e.match(r))return!0;for(let e of this.absoluteChildren)if(e.match(t))return!0;return!1}}},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/index.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.glob=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.Ignore=t.hasMagic=t.Glob=t.unescape=t.escape=void 0,t.globStreamSync=globStreamSync,t.globStream=globStream,t.globSync=globSync,t.globIterateSync=globIterateSync,t.globIterate=globIterate;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"),i=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js"),s=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js");var o=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js");Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return o.unescape}});var a=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js");Object.defineProperty(t,"Glob",{enumerable:!0,get:function(){return a.Glob}});var l=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js");Object.defineProperty(t,"hasMagic",{enumerable:!0,get:function(){return l.hasMagic}});var d=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js");function globStreamSync(e,t={}){return new i.Glob(e,t).streamSync()}function globStream(e,t={}){return new i.Glob(e,t).stream()}function globSync(e,t={}){return new i.Glob(e,t).walkSync()}async function glob_(e,t={}){return new i.Glob(e,t).walk()}function globIterateSync(e,t={}){return new i.Glob(e,t).iterateSync()}function globIterate(e,t={}){return new i.Glob(e,t).iterate()}Object.defineProperty(t,"Ignore",{enumerable:!0,get:function(){return d.Ignore}}),t.streamSync=globStreamSync,t.stream=Object.assign(globStream,{sync:globStreamSync}),t.iterateSync=globIterateSync,t.iterate=Object.assign(globIterate,{sync:globIterateSync}),t.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync}),t.glob=Object.assign(glob_,{glob:glob_,globSync,sync:t.sync,globStream,stream:t.stream,globStreamSync,streamSync:t.streamSync,globIterate,iterate:t.iterate,globIterateSync,iterateSync:t.iterateSync,Glob:i.Glob,hasMagic:s.hasMagic,escape:n.escape,unescape:n.unescape}),t.glob.glob=t.glob},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js");class i{#e;#t;#r;length;#n;#i;#s;#o;#a;#l;#d=!0;constructor(e,t,r,n){if(!(e.length>=1))throw TypeError("empty pattern list");if(!(t.length>=1))throw TypeError("empty glob list");if(t.length!==e.length)throw TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw TypeError("index out of range");if(this.#e=e,this.#t=t,this.#r=r,this.#n=n,0===this.#r){if(this.isUNC()){let[e,t,r,n,...i]=this.#e,[s,o,a,l,...d]=this.#t;""===i[0]&&(i.shift(),d.shift());let u=[e,t,r,n,""].join("/"),c=[s,o,a,l,""].join("/");this.#e=[u,...i],this.#t=[c,...d],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[e,...t]=this.#e,[r,...n]=this.#t;""===t[0]&&(t.shift(),n.shift()),this.#e=[e+"/",...t],this.#t=[r+"/",...n],this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return"string"==typeof this.#e[this.#r]}isGlobstar(){return this.#e[this.#r]===n.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#s=this.#s||(0===this.#r?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return void 0!==this.#i?this.#i:this.hasMore()?(this.#i=new i(this.#e,this.#t,this.#r+1,this.#n),this.#i.#l=this.#l,this.#i.#a=this.#a,this.#i.#o=this.#o,this.#i):this.#i=null}isUNC(){let e=this.#e;return void 0!==this.#a?this.#a:this.#a="win32"===this.#n&&0===this.#r&&""===e[0]&&""===e[1]&&"string"==typeof e[2]&&!!e[2]&&"string"==typeof e[3]&&!!e[3]}isDrive(){let e=this.#e;return void 0!==this.#o?this.#o:this.#o="win32"===this.#n&&0===this.#r&&this.length>1&&"string"==typeof e[0]&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return void 0!==this.#l?this.#l:this.#l=""===e[0]&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return"string"==typeof e&&this.isAbsolute()&&0===this.#r?e:""}checkFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#d)}markFollowGlobstar(){return 0!==this.#r&&!!this.isGlobstar()&&!!this.#d&&(this.#d=!1,!0)}}t.Pattern=i},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/processor.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js");class i{store;constructor(e=new Map){this.store=e}copy(){return new i(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let r=e.fullpath(),n=this.store.get(r);n?n.add(t.globString()):this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=i;class s{store=new Map;add(e,t,r){let n=2*!!t|!!r,i=this.store.get(e);this.store.set(e,void 0===i?n:n&i)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(2&t),!!(1&t)])}}t.MatchRecord=s;class o{store=new Map;add(e,t){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(e=>e.globString()===t.globString())||r.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}}t.SubWalks=o;class a{hasWalkedCache;matches=new s;subwalks=new o;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new i}processPatterns(e,t){for(let[r,i]of(this.patterns=t,t.map(t=>[e,t]))){let e,t;this.hasWalkedCache.storeWalked(r,i);let s=i.root(),o=i.isAbsolute()&&!1!==this.opts.absolute;if(s){r=r.resolve("/"===s&&void 0!==this.opts.root?this.opts.root:s);let e=i.rest();if(e)i=e;else{this.matches.add(r,!0,!1);continue}}if(r.isENOENT())continue;let a=!1;for(;"string"==typeof(e=i.pattern())&&(t=i.rest());)r=r.resolve(e),i=t,a=!0;if(e=i.pattern(),t=i.rest(),a){if(this.hasWalkedCache.hasWalked(r,i))continue;this.hasWalkedCache.storeWalked(r,i)}if("string"==typeof e){let t=".."===e||""===e||"."===e;this.matches.add(r.resolve(e),o,t);continue}if(e===n.GLOBSTAR){(!r.isSymbolicLink()||this.follow||i.checkFollowGlobstar())&&this.subwalks.add(r,i);let e=t?.pattern(),n=t?.rest();if(t&&(""!==e&&"."!==e||n)){if(".."===e){let e=r.parent||r;n?this.hasWalkedCache.hasWalked(e,n)||this.subwalks.add(e,n):this.matches.add(e,o,!0)}}else this.matches.add(r,o,""===e||"."===e)}else e instanceof RegExp&&this.subwalks.add(r,i)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new a(this.opts,this.hasWalkedCache)}filterEntries(e,t){let r=this.subwalks.get(e),i=this.child();for(let e of t)for(let t of r){let r=t.isAbsolute(),s=t.pattern(),o=t.rest();s===n.GLOBSTAR?i.testGlobstar(e,t,o,r):s instanceof RegExp?i.testRegExp(e,s,o,r):i.testString(e,s,o,r)}return i}testGlobstar(e,t,r,n){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){let t=r.pattern();if("string"==typeof t&&".."!==t&&""!==t&&"."!==t)this.testString(e,t,r.rest(),n);else if(".."===t){let t=e.parent||e;this.subwalks.add(t,r)}else t instanceof RegExp&&this.testRegExp(e,t,r.rest(),n)}}testRegExp(e,t,r,n){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}testString(e,t,r,n){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}}t.Processor=a},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/walker.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;let n=r("./node_modules/minipass/dist/commonjs/index.js"),i=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js"),s=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/processor.js");class o{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#u=[];#c;#h;signal;maxDepth;includeChildMatches;constructor(e,t,r){if(this.patterns=e,this.path=t,this.opts=r,this.#h=r.posix||"win32"!==r.platform?"/":"\\",this.includeChildMatches=!1!==r.includeChildMatches,r.ignore||!this.includeChildMatches){let e;if(this.#c=(e=r.ignore??[],"string"==typeof e?new i.Ignore([e],r):Array.isArray(e)?new i.Ignore(e,r):e),!this.includeChildMatches&&"function"!=typeof this.#c.add)throw Error("cannot ignore child matches, ignore lacks add() method.")}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#u.length=0}))}#f(e){return this.seen.has(e)||!!this.#c?.ignored?.(e)}#p(e){return!!this.#c?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){let e;if(!this.signal?.aborted)for(this.paused=!1;!this.paused&&(e=this.#u.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#u.push(e):e())}async matchCheck(e,t){let r;if(t&&this.opts.nodir)return;if(this.opts.realpath){if(!(r=e.realpathCached()||await e.realpath()))return;e=r}let n=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let e=await n.realpath();e&&(e.isUnknown()||this.opts.stat)&&await e.lstat()}return this.matchCheckTest(n,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#f(e)?e:void 0}matchCheckSync(e,t){let r;if(t&&this.opts.nodir)return;if(this.opts.realpath){if(!(r=e.realpathCached()||e.realpathSync()))return;e=r}let n=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let e=n.realpathSync();e&&(e?.isUnknown()||this.opts.stat)&&e.lstatSync()}return this.matchCheckTest(n,t)}matchFinish(e,t){if(this.#f(e))return;if(!this.includeChildMatches&&this.#c?.add){let t=`${e.relativePosix()}/**`;this.#c.add(t)}let r=void 0===this.opts.absolute?t:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#h:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+n)}else{let t=this.opts.posix?e.relativePosix():e.relative(),r=this.opts.dotRelative&&!t.startsWith(".."+this.#h)?"."+this.#h:"";this.matchEmit(t?r+t+n:"."+n)}}async match(e,t,r){let n=await this.matchCheck(e,r);n&&this.matchFinish(n,t)}matchSync(e,t,r){let n=this.matchCheckSync(e,r);n&&this.matchFinish(n,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new s.Processor(this.opts),r)}walkCB2(e,t,r,n){if(this.#p(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume(()=>this.walkCB2(e,t,r,n));r.processPatterns(e,t);let i=1,next=()=>{0==--i&&n()};for(let[e,t,n]of r.matches.entries())this.#f(e)||(i++,this.match(e,t,n).then(()=>next()));for(let e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;let t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,r,next):e.readdirCB((t,n)=>this.walkCB3(e,n,r,next),!0)}next()}walkCB3(e,t,r,n){r=r.filterEntries(e,t);let i=1,next=()=>{0==--i&&n()};for(let[e,t,n]of r.matches.entries())this.#f(e)||(i++,this.match(e,t,n).then(()=>next()));for(let[e,t]of r.subwalks.entries())i++,this.walkCB2(e,t,r.child(),next);next()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new s.Processor(this.opts),r)}walkCB2Sync(e,t,r,n){if(this.#p(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume(()=>this.walkCB2Sync(e,t,r,n));r.processPatterns(e,t);let i=1,next=()=>{0==--i&&n()};for(let[e,t,n]of r.matches.entries())this.#f(e)||this.matchSync(e,t,n);for(let e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;let t=e.readdirSync();this.walkCB3Sync(e,t,r,next)}next()}walkCB3Sync(e,t,r,n){r=r.filterEntries(e,t);let i=1,next=()=>{0==--i&&n()};for(let[e,t,n]of r.matches.entries())this.#f(e)||this.matchSync(e,t,n);for(let[e,t]of r.subwalks.entries())i++,this.walkCB2Sync(e,t,r.child(),next);next()}}t.GlobUtil=o;class a extends o{matches=new Set;constructor(e,t,r){super(e,t,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}t.GlobWalker=a,t.GlobStream=class extends o{results;constructor(e,t,r){super(e,t,r),this.results=new n.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0,t.assertValidPattern=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>65536)throw TypeError("pattern is too long")}},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js"(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AST=void 0;let i=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/brace-expressions.js"),s=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js"),o=new Set(["!","?","+","*","@"]),isExtglobType=e=>o.has(e),a=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),l=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),d=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),u=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),c="(?!\\.)",h=new Set(["[","."]),f=new Set(["..","."]),p=new Set("().*{}+?[]^$\\!"),regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),b="[^/]",g=b+"*?",y=b+"+?";class w{type;#m;#b;#_=!1;#g=[];#y;#w;#v;#S=!1;#x;#E;#j=!1;constructor(e,t,r={}){this.type=e,e&&(this.#b=!0),this.#y=t,this.#m=this.#y?this.#y.#m:this,this.#x=this.#m===this?r:this.#m.#x,this.#v=this.#m===this?[]:this.#m.#v,"!"!==e||this.#m.#S||this.#v.push(this),this.#w=this.#y?this.#y.#g.length:0}get hasMagic(){if(void 0!==this.#b)return this.#b;for(let e of this.#g)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#b=!0;return this.#b}toString(){return void 0!==this.#E?this.#E:this.type?this.#E=this.type+"("+this.#g.map(e=>String(e)).join("|")+")":this.#E=this.#g.map(e=>String(e)).join("")}#k(){let e;if(this!==this.#m)throw Error("should only call on root");if(this.#S)return this;for(this.toString(),this.#S=!0;e=this.#v.pop();){if("!"!==e.type)continue;let t=e,r=t.#y;for(;r;){for(let n=t.#w+1;!r.type&&n<r.#g.length;n++)for(let t of e.#g){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(r.#g[n])}r=(t=r).#y}}return this}push(...e){for(let t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof n&&t.#y===this))throw Error("invalid part: "+t);this.#g.push(t)}}toJSON(){let e=null===this.type?this.#g.slice().map(e=>"string"==typeof e?e:e.toJSON()):[this.type,...this.#g.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#m||this.#m.#S&&this.#y?.type==="!")&&e.push({}),e}isStart(){if(this.#m===this)return!0;if(!this.#y?.isStart())return!1;if(0===this.#w)return!0;let e=this.#y;for(let t=0;t<this.#w;t++){let r=e.#g[t];if(!(r instanceof n&&"!"===r.type))return!1}return!0}isEnd(){if(this.#m===this||this.#y?.type==="!")return!0;if(!this.#y?.isEnd())return!1;if(!this.type)return this.#y?.isEnd();let e=this.#y?this.#y.#g.length:0;return this.#w===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){let t=new n(this.type,e);for(let e of this.#g)t.copyIn(e);return t}static #T(e,t,r,i,s){let o=i.maxExtglobRecursion??2,a=!1,l=!1,d=-1,u=!1;if(null===t.type){let c=r,h="";for(;c<e.length;){let r=e.charAt(c++);if(a||"\\"===r){a=!a,h+=r;continue}if(l){c===d+1?("^"===r||"!"===r)&&(u=!0):"]"!==r||c===d+2&&u||(l=!1),h+=r;continue}if("["===r){l=!0,d=c,u=!1,h+=r;continue}if(!i.noext&&isExtglobType(r)&&"("===e.charAt(c)&&s<=o){t.push(h),h="";let o=new n(r,t);c=n.#T(e,o,c,i,s+1),t.push(o);continue}h+=r}return t.push(h),c}let c=r+1,h=new n(null,t),f=[],p="";for(;c<e.length;){let r=e.charAt(c++);if(a||"\\"===r){a=!a,p+=r;continue}if(l){c===d+1?("^"===r||"!"===r)&&(u=!0):"]"!==r||c===d+2&&u||(l=!1),p+=r;continue}if("["===r){l=!0,d=c,u=!1,p+=r;continue}if(isExtglobType(r)&&"("===e.charAt(c)&&(s<=o||t&&t.#R(r))){let o=t&&t.#R(r)?0:1;h.push(p),p="";let a=new n(r,h);h.push(a),c=n.#T(e,a,c,i,s+o);continue}if("|"===r){h.push(p),p="",f.push(h),h=new n(null,t);continue}if(")"===r)return""===p&&0===t.#g.length&&(t.#j=!0),h.push(p),p="",t.push(...f,h),c;p+=r}return t.type=null,t.#b=void 0,t.#g=[e.substring(r-1)],c}#A(e){return this.#O(e,l)}#O(e,t=a){if(!e||"object"!=typeof e||null!==e.type||1!==e.#g.length||null===this.type)return!1;let r=e.#g[0];return!!r&&"object"==typeof r&&null!==r.type&&this.#R(r.type,t)}#R(e,t=d){return!!t.get(this.type)?.includes(e)}#C(e,t){let r=e.#g[0],i=new n(null,r,this.options);i.#g.push(""),r.push(i),this.#M(e,t)}#M(e,t){let r=e.#g[0];for(let e of(this.#g.splice(t,1,...r.#g),r.#g))"object"==typeof e&&(e.#y=this);this.#E=void 0}#L(e){let t=u.get(this.type);return!!t?.has(e)}#D(e){if(!e||"object"!=typeof e||null!==e.type||1!==e.#g.length||null===this.type||1!==this.#g.length)return!1;let t=e.#g[0];return!!t&&"object"==typeof t&&null!==t.type&&this.#L(t.type)}#I(e){let t=u.get(this.type),r=e.#g[0],n=t?.get(r.type);if(!n)return!1;for(let e of(this.#g=r.#g,this.#g))"object"==typeof e&&(e.#y=this);this.type=n,this.#E=void 0,this.#j=!1}#P(){if(isExtglobType(this.type)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#g.length;e++){let r=this.#g[e];"object"==typeof r&&(r.#P(),this.#O(r)?(t=!1,this.#M(r,e)):this.#A(r)?(t=!1,this.#C(r,e)):this.#D(r)&&(t=!1,this.#I(r)))}}while(!t&&++e<10)}else for(let e of this.#g)"object"==typeof e&&e.#P();this.#E=void 0}static fromGlob(e,t={}){let r=new n(null,void 0,t);return n.#T(e,r,0,t,0),r}toMMPattern(){if(this!==this.#m)return this.#m.toMMPattern();let e=this.toString(),[t,r,n,i]=this.toRegExpSource();return n||this.#b||this.#x.nocase&&!this.#x.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()?Object.assign(RegExp(`^${t}$`,(this.#x.nocase?"i":"")+(i?"u":"")),{_src:t,_glob:e}):r}get options(){return this.#x}toRegExpSource(e){let t=e??!!this.#x.dot;if(this.#m===this&&(this.#P(),this.#k()),!isExtglobType(this.type)){let r=this.isStart()&&this.isEnd(),i=this.#g.map(t=>{let[i,s,o,a]="string"==typeof t?n.#W(t,this.#b,r):t.toRegExpSource(e);return this.#b=this.#b||o,this.#_=this.#_||a,i}).join(""),o="";if(this.isStart()&&"string"==typeof this.#g[0]&&!(1===this.#g.length&&f.has(this.#g[0]))){let r=t&&h.has(i.charAt(0))||i.startsWith("\\.")&&h.has(i.charAt(2))||i.startsWith("\\.\\.")&&h.has(i.charAt(4)),n=!t&&!e&&h.has(i.charAt(0));o=r?"(?!(?:^|/)\\.\\.?(?:$|/))":n?c:""}let a="";return this.isEnd()&&this.#m.#S&&this.#y?.type==="!"&&(a="(?:$|\\/)"),[o+i+a,(0,s.unescape)(i),this.#b=!!this.#b,this.#_]}let r="*"===this.type||"+"===this.type,i="!"===this.type?"(?:(?!(?:":"(?:",o=this.#N(t);if(this.isStart()&&this.isEnd()&&!o&&"!"!==this.type){let e=this.toString();return this.#g=[e],this.type=null,this.#b=void 0,[e,(0,s.unescape)(this.toString()),!1,!1]}let a=!r||e||t||!c?"":this.#N(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);return["!"===this.type&&this.#j?(this.isStart()&&!t?c:"")+y:i+o+("!"===this.type?"))"+(!this.isStart()||t||e?"":c)+g+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&a?")":"*"===this.type&&a?")?":`)${this.type}`),(0,s.unescape)(o),this.#b=!!this.#b,this.#_]}#N(e){return this.#g.map(t=>{if("string"==typeof t)throw Error("string type in extglob ast??");let[r,n,i,s]=t.toRegExpSource(e);return this.#_=this.#_||s,r}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static #W(e,t,r=!1){let n=!1,o="",a=!1,l=!1;for(let s=0;s<e.length;s++){let d=e.charAt(s);if(n){n=!1,o+=(p.has(d)?"\\":"")+d,l=!1;continue}if("\\"===d){s===e.length-1?o+="\\\\":n=!0;continue}if("["===d){let[r,n,d,u]=(0,i.parseClass)(e,s);if(d){o+=r,a=a||n,s+=d-1,t=t||u,l=!1;continue}}if("*"===d){if(l)continue;l=!0,o+=r&&/^[*]+$/.test(e)?y:g,t=!0;continue}if(l=!1,"?"===d){o+=b,t=!0;continue}o+=regExpEscape(d)}return[o,(0,s.unescape)(e),!!t,a]}}t.AST=w,n=w},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/brace-expressions.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;let r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},braceEscape=e=>e.replace(/[[\]\\-]/g,"\\$&");t.parseClass=(e,t)=>{if("["!==e.charAt(t))throw Error("not in a brace expression");let n=[],i=[],s=t+1,o=!1,a=!1,l=!1,d=!1,u=t,c="";t:for(;s<e.length;){let h=e.charAt(s);if(("!"===h||"^"===h)&&s===t+1){d=!0,s++;continue}if("]"===h&&o&&!l){u=s+1;break}if(o=!0,"\\"===h&&!l){l=!0,s++;continue}if("["===h&&!l){for(let[o,[l,d,u]]of Object.entries(r))if(e.startsWith(o,s)){if(c)return["$.",!1,e.length-t,!0];s+=o.length,u?i.push(l):n.push(l),a=a||d;continue t}}if(l=!1,c){h>c?n.push(braceEscape(c)+"-"+braceEscape(h)):h===c&&n.push(braceEscape(h)),c="",s++;continue}if(e.startsWith("-]",s+1)){n.push(braceEscape(h+"-")),s+=2;continue}if(e.startsWith("-",s+1)){c=h,s+=2;continue}n.push(braceEscape(h)),s++}if(u<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-t,!0];if(0===i.length&&1===n.length&&/^\\?.$/.test(n[0])&&!d)return[(2===n[0].length?n[0].slice(-1):n[0]).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),!1,u-t,!1];let h="["+(d?"^":"")+n.join("")+"]",f="["+(d?"":"^")+i.join("")+"]";return[n.length&&i.length?"("+h+"|"+f+")":n.length?h:f,a,u-t,!0]}},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.escape=void 0,t.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;let i=n(r("./node_modules/brace-expansion/index.js")),s=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"),o=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js"),a=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js"),l=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js");t.minimatch=(e,t,r={})=>((0,s.assertValidPattern)(t),(!!r.nocomment||"#"!==t.charAt(0))&&new g(t,r).match(e));let d=/^\*+([^+@!?\*\[\(]*)$/,u=/^\*+\.\*+$/,starDotStarTest=e=>!e.startsWith(".")&&e.includes("."),starDotStarTestDot=e=>"."!==e&&".."!==e&&e.includes("."),c=/^\.\*+$/,dotStarTest=e=>"."!==e&&".."!==e&&e.startsWith("."),h=/^\*+$/,starTest=e=>0!==e.length&&!e.startsWith("."),starTestDot=e=>0!==e.length&&"."!==e&&".."!==e,f=/^\?+([^+@!?\*\[\(]*)?$/,qmarksTestNoExt=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(".")},qmarksTestNoExtDot=([e])=>{let t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},p="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";t.sep="win32"===p?"\\":"/",t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR;t.filter=(e,r={})=>n=>(0,t.minimatch)(n,e,r),t.minimatch.filter=t.filter;let ext=(e,t={})=>Object.assign({},e,t);t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t.minimatch;let r=t.minimatch;return Object.assign((t,n,i={})=>r(t,n,ext(e,i)),{Minimatch:class extends r.Minimatch{constructor(t,r={}){super(t,ext(e,r))}static defaults(t){return r.defaults(ext(e,t)).Minimatch}},AST:class extends r.AST{constructor(t,r,n={}){super(t,r,ext(e,n))}static fromGlob(t,n={}){return r.AST.fromGlob(t,ext(e,n))}},unescape:(t,n={})=>r.unescape(t,ext(e,n)),escape:(t,n={})=>r.escape(t,ext(e,n)),filter:(t,n={})=>r.filter(t,ext(e,n)),defaults:t=>r.defaults(ext(e,t)),makeRe:(t,n={})=>r.makeRe(t,ext(e,n)),braceExpand:(t,n={})=>r.braceExpand(t,ext(e,n)),match:(t,n,i={})=>r.match(t,n,ext(e,i)),sep:r.sep,GLOBSTAR:t.GLOBSTAR})},t.minimatch.defaults=t.defaults,t.braceExpand=(e,t={})=>((0,s.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:(0,i.default)(e),t.minimatch.braceExpand=t.braceExpand,t.makeRe=(e,t={})=>new g(e,t).makeRe(),t.minimatch.makeRe=t.makeRe,t.match=(e,t,r={})=>{let n=new g(t,r);return e=e.filter(e=>n.match(e)),n.options.nonull&&!e.length&&e.push(t),e},t.minimatch.match=t.match;let b=/[?*]|[+@!]\(.*?\)|\[|\]/;class g{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){(0,s.assertValidPattern)(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||p,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if("string"!=typeof t)return!0;return!1}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map((e,t,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=""===e[0]&&""===e[1]&&("?"===e[2]||!b.test(e[2]))&&!b.test(e[3]),r=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(r)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,n),this.set=n.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let r=0;r<e[t].length;r++)"**"===e[t][r]&&(e[t][r]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let r=t;for(;"**"===e[r+1];)r++;r!==t&&e.splice(t,r-t)}return e})}levelOneOptimize(e){return e.map(e=>0===(e=e.reduce((e,t)=>{let r=e[e.length-1];return"**"===t&&"**"===r||(".."===t&&r&&".."!==r&&"."!==r&&"**"!==r?e.pop():e.push(t)),e},[])).length?[""]:e)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){let n=e[r];(1!==r||""!==n||""!==e[0])&&("."===n||""===n)&&(t=!0,e.splice(r,1),r--)}"."===e[0]&&2===e.length&&("."===e[1]||""===e[1])&&(t=!0,e.pop())}let r=0;for(;-1!==(r=e.indexOf("..",r+1));){let n=e[r-1];n&&"."!==n&&".."!==n&&"**"!==n&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do for(let r of(t=!1,e)){let n=-1;for(;-1!==(n=r.indexOf("**",n+1));){let i=n;for(;"**"===r[i+1];)i++;i>n&&r.splice(n+1,i-n);let s=r[n+1],o=r[n+2],a=r[n+3];if(".."!==s||!o||"."===o||".."===o||!a||"."===a||".."===a)continue;t=!0,r.splice(n,1);let l=r.slice(0);l[n]="**",e.push(l),n--}if(!this.preserveMultipleSlashes){for(let e=1;e<r.length-1;e++){let n=r[e];(1!==e||""!==n||""!==r[0])&&("."===n||""===n)&&(t=!0,r.splice(e,1),e--)}"."===r[0]&&2===r.length&&("."===r[1]||""===r[1])&&(t=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){let e=r[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;let e=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...e),0===r.length&&r.push(""),i-=2}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let n=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(n){e[t]=[],e[r]=n;break}}return e.filter(e=>e.length)}partsMatch(e,t,r=!1){let n=0,i=0,s=[],o="";for(;n<e.length&&i<t.length;)if(e[n]===t[i])s.push("b"===o?t[i]:e[n]),n++,i++;else if(r&&"**"===e[n]&&t[i]===e[n+1])s.push(e[n]),n++;else if(r&&"**"===t[i]&&e[n]===t[i+1])s.push(t[i]),i++;else if("*"===e[n]&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&"**"!==t[i]){if("b"===o)return!1;o="a",s.push(e[n]),n++,i++}else{if("*"!==t[i]||!e[n]||!this.options.dot&&e[n].startsWith(".")||"**"===e[n]||"a"===o)return!1;o="b",s.push(t[i]),n++,i++}return e.length===t.length&&s}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,r,n=!1){let i=0,s=0;if(this.isWindows){let t="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),n=!t&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),o="string"==typeof r[0]&&/^[a-z]:$/i.test(r[0]),a=!o&&""===r[0]&&""===r[1]&&"?"===r[2]&&"string"==typeof r[3]&&/^[a-z]:$/i.test(r[3]),l=n?3:t?0:void 0,d=a?3:o?0:void 0;if("number"==typeof l&&"number"==typeof d){let[t,n]=[e[l],r[d]];t.toLowerCase()===n.toLowerCase()&&(r[d]=t,s=d,i=l)}}let{optimizationLevel:o=1}=this.options;return(o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(t.GLOBSTAR))?this.#F(e,r,n,i,s):this.#B(e,r,n,i,s)}#F(e,r,n,i,s){let o=r.indexOf(t.GLOBSTAR,s),a=r.lastIndexOf(t.GLOBSTAR),[l,d,u]=n?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let t=e.slice(i,i+l.length);if(!this.#B(t,l,n,0,0))return!1;i+=l.length}let c=0;if(u.length){if(u.length+i>e.length)return!1;let t=e.length-u.length;if(this.#B(e,u,n,t,0))c=u.length;else{if(""!==e[e.length-1]||i+u.length===e.length||(t--,!this.#B(e,u,n,t,0)))return!1;c=u.length+1}}if(!d.length){let t=!!c;for(let r=i;r<e.length-c;r++){let n=String(e[r]);if(t=!0,"."===n||".."===n||!this.options.dot&&n.startsWith("."))return!1}return n||t}let h=[[[],0]],f=h[0],p=0,b=[0];for(let e of d)e===t.GLOBSTAR?(b.push(p),f=[[],0],h.push(f)):(f[0].push(e),p++);let g=h.length-1,y=e.length-c;for(let e of h)e[1]=y-(b[g--]+e[0].length);return!!this.#$(e,h,i,0,n,0,!!c)}#$(e,t,r,n,i,s,o){let a=t[n];if(!a){for(let t=r;t<e.length;t++){o=!0;let r=e[t];if("."===r||".."===r||!this.options.dot&&r.startsWith("."))return!1}return o}let[l,d]=a;for(;r<=d;){if(this.#B(e.slice(0,r+l.length),l,i,r,0)&&s<this.maxGlobstarRecursion){let a=this.#$(e,t,r+l.length,n+1,i,s+1,o);if(!1!==a)return a}let a=e[r];if("."===a||".."===a||!this.options.dot&&a.startsWith("."))return!1;r++}return i||null}#B(e,r,n,i,s){let o,a,l,d;for(o=i,a=s,d=e.length,l=r.length;o<d&&a<l;o++,a++){let n;this.debug("matchOne loop");let i=r[a],s=e[o];if(this.debug(r,i,s),!1===i||i===t.GLOBSTAR||("string"==typeof i?(n=s===i,this.debug("string match",i,s,n)):(n=i.test(s),this.debug("pattern match",i,s,n)),!n))return!1}if(o===d&&a===l)return!0;if(o===d)return n;if(a===l)return o===d-1&&""===e[o];throw Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){let r;(0,s.assertValidPattern)(e);let n=this.options;if("**"===e)return t.GLOBSTAR;if(""===e)return"";let i=null;(r=e.match(h))?i=n.dot?starTestDot:starTest:(r=e.match(d))?i=(n.nocase?n.dot?e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)):e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)):n.dot?e=>t=>t.endsWith(e):e=>t=>!t.startsWith(".")&&t.endsWith(e))(r[1]):(r=e.match(f))?i=(n.nocase?n.dot?([e,t=""])=>{let r=qmarksTestNoExtDot([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r}:([e,t=""])=>{let r=qmarksTestNoExt([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r}:n.dot?([e,t=""])=>{let r=qmarksTestNoExtDot([e]);return t?e=>r(e)&&e.endsWith(t):r}:([e,t=""])=>{let r=qmarksTestNoExt([e]);return t?e=>r(e)&&e.endsWith(t):r})(r):(r=e.match(u))?i=n.dot?starDotStarTestDot:starDotStarTest:(r=e.match(c))&&(i=dotStarTest);let a=o.AST.fromGlob(e,this.options).toMMPattern();return i&&"object"==typeof a&&Reflect.defineProperty(a,"test",{value:i}),a}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(r.nocase?["i"]:[]),s=e.map(e=>{let r=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(""))i.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===t.GLOBSTAR?t.GLOBSTAR:e._src});return r.forEach((e,i)=>{let s=r[i+1],o=r[i-1];e===t.GLOBSTAR&&o!==t.GLOBSTAR&&(void 0===o?void 0!==s&&s!==t.GLOBSTAR?r[i+1]="(?:\\/|"+n+"\\/)?"+s:r[i]=n:void 0===s?r[i-1]=o+"(?:\\/|"+n+")?":s!==t.GLOBSTAR&&(r[i-1]=o+"(?:\\/|\\/"+n+"\\/)"+s,r[i+1]=t.GLOBSTAR))}),r.filter(e=>e!==t.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let i=this.set;this.debug(this.pattern,"set",i);let s=n[n.length-1];if(!s)for(let e=n.length-2;!s&&e>=0;e--)s=n[e];for(let e=0;e<i.length;e++){let o=i[e],a=n;if(r.matchBase&&1===o.length&&(a=[s]),this.matchOne(a,o,t)){if(r.flipNegate)return!0;return!this.negate}}return!r.flipNegate&&this.negate}static defaults(e){return t.minimatch.defaults(e).Minimatch}}t.Minimatch=g;var y=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js");Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return y.AST}});var w=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js");Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return w.escape}});var v=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js");Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return v.unescape}}),t.minimatch.AST=o.AST,t.minimatch.Minimatch=g,t.minimatch.escape=a.escape,t.minimatch.unescape=l.unescape},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=void 0,t.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},"./node_modules/buffer-crc32/dist/index.cjs"(e){function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}let t=new Int32Array([0,0x77073096,0xee0e612c,0x990951ba,0x76dc419,0x706af48f,0xe963a535,0x9e6495a3,0xedb8832,0x79dcb8a4,0xe0d5e91e,0x97d2d988,0x9b64c2b,0x7eb17cbd,0xe7b82d07,0x90bf1d91,0x1db71064,0x6ab020f2,0xf3b97148,0x84be41de,0x1adad47d,0x6ddde4eb,0xf4d4b551,0x83d385c7,0x136c9856,0x646ba8c0,0xfd62f97a,0x8a65c9ec,0x14015c4f,0x63066cd9,0xfa0f3d63,0x8d080df5,0x3b6e20c8,0x4c69105e,0xd56041e4,0xa2677172,0x3c03e4d1,0x4b04d447,0xd20d85fd,0xa50ab56b,0x35b5a8fa,0x42b2986c,0xdbbbc9d6,0xacbcf940,0x32d86ce3,0x45df5c75,0xdcd60dcf,0xabd13d59,0x26d930ac,0x51de003a,0xc8d75180,0xbfd06116,0x21b4f4b5,0x56b3c423,0xcfba9599,0xb8bda50f,0x2802b89e,0x5f058808,0xc60cd9b2,0xb10be924,0x2f6f7c87,0x58684c11,0xc1611dab,0xb6662d3d,0x76dc4190,0x1db7106,0x98d220bc,0xefd5102a,0x71b18589,0x6b6b51f,0x9fbfe4a5,0xe8b8d433,0x7807c9a2,0xf00f934,0x9609a88e,0xe10e9818,0x7f6a0dbb,0x86d3d2d,0x91646c97,0xe6635c01,0x6b6b51f4,0x1c6c6162,0x856530d8,0xf262004e,0x6c0695ed,0x1b01a57b,0x8208f4c1,0xf50fc457,0x65b0d9c6,0x12b7e950,0x8bbeb8ea,0xfcb9887c,0x62dd1ddf,0x15da2d49,0x8cd37cf3,0xfbd44c65,0x4db26158,0x3ab551ce,0xa3bc0074,0xd4bb30e2,0x4adfa541,0x3dd895d7,0xa4d1c46d,0xd3d6f4fb,0x4369e96a,0x346ed9fc,0xad678846,0xda60b8d0,0x44042d73,0x33031de5,0xaa0a4c5f,0xdd0d7cc9,0x5005713c,0x270241aa,0xbe0b1010,0xc90c2086,0x5768b525,0x206f85b3,0xb966d409,0xce61e49f,0x5edef90e,0x29d9c998,0xb0d09822,0xc7d7a8b4,0x59b33d17,0x2eb40d81,0xb7bd5c3b,0xc0ba6cad,0xedb88320,0x9abfb3b6,0x3b6e20c,0x74b1d29a,0xead54739,0x9dd277af,0x4db2615,0x73dc1683,0xe3630b12,0x94643b84,0xd6d6a3e,0x7a6a5aa8,0xe40ecf0b,0x9309ff9d,0xa00ae27,0x7d079eb1,0xf00f9344,0x8708a3d2,0x1e01f268,0x6906c2fe,0xf762575d,0x806567cb,0x196c3671,0x6e6b06e7,0xfed41b76,0x89d32be0,0x10da7a5a,0x67dd4acc,0xf9b9df6f,0x8ebeeff9,0x17b7be43,0x60b08ed5,0xd6d6a3e8,0xa1d1937e,0x38d8c2c4,0x4fdff252,0xd1bb67f1,0xa6bc5767,0x3fb506dd,0x48b2364b,0xd80d2bda,0xaf0a1b4c,0x36034af6,0x41047a60,0xdf60efc3,0xa867df55,0x316e8eef,0x4669be79,0xcb61b38c,0xbc66831a,0x256fd2a0,0x5268e236,0xcc0c7795,0xbb0b4703,0x220216b9,0x5505262f,0xc5ba3bbe,0xb2bd0b28,0x2bb45a92,0x5cb36a04,0xc2d7ffa7,0xb5d0cf31,0x2cd99e8b,0x5bdeae1d,0x9b64c2b0,0xec63f226,0x756aa39c,0x26d930a,0x9c0906a9,0xeb0e363f,0x72076785,0x5005713,0x95bf4a82,0xe2b87a14,0x7bb12bae,0xcb61b38,0x92d28e9b,0xe5d5be0d,0x7cdcefb7,0xbdbdf21,0x86d3d2d4,0xf1d4e242,0x68ddb3f8,0x1fda836e,0x81be16cd,0xf6b9265b,0x6fb077e1,0x18b74777,0x88085ae6,0xff0f6a70,0x66063bca,0x11010b5c,0x8f659eff,0xf862ae69,0x616bffd3,0x166ccf45,0xa00ae278,0xd70dd2ee,0x4e048354,0x3903b3c2,0xa7672661,0xd06016f7,0x4969474d,0x3e6e77db,0xaed16a4a,0xd9d65adc,0x40df0b66,936918e3,0xa9bcae53,0xdebb9ec5,0x47b2cf7f,0x30b5ffe9,0xbdbdf21c,0xcabac28a,0x53b39330,0x24b4a3a6,0xbad03605,0xcdd70693,0x54de5729,0x23d967bf,0xb3667a2e,0xc4614ab8,0x5d681b02,0x2a6f2b94,0xb40bbe37,0xc30c8ea1,0x5a05df1b,0x2d02ef8d]);function ensureBuffer(e){if(Buffer.isBuffer(e))return e;if("number"==typeof e)return Buffer.alloc(e);if("string"==typeof e)return Buffer.from(e);throw Error("input must be buffer, number, or string, received "+typeof e)}function bufferizeInt(e){let t=ensureBuffer(4);return t.writeInt32BE(e,0),t}function _crc32(e,r){e=ensureBuffer(e),Buffer.isBuffer(r)&&(r=r.readUInt32BE(0));let n=-1^~~r;for(var i=0;i<e.length;i++)n=t[(n^e[i])&255]^n>>>8;return -1^n}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=getDefaultExportFromCjs(crc32)},"./node_modules/commander/index.js"(e,t,r){let{Argument:n}=r("./node_modules/commander/lib/argument.js"),{Command:i}=r("./node_modules/commander/lib/command.js"),{CommanderError:s,InvalidArgumentError:o}=r("./node_modules/commander/lib/error.js"),{Help:a}=r("./node_modules/commander/lib/help.js"),{Option:l}=r("./node_modules/commander/lib/option.js");t.program=new i,t.createCommand=e=>new i(e),t.createOption=(e,t)=>new l(e,t),t.createArgument=(e,t)=>new n(e,t),t.Command=i,t.Option=l,t.Argument=n,t.Help=a,t.CommanderError=s,t.InvalidArgumentError=o,t.InvalidOptionArgumentError=o},"./node_modules/commander/lib/argument.js"(e,t,r){let{InvalidArgumentError:n}=r("./node_modules/commander/lib/error.js");function humanReadableArgName(e){let t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=humanReadableArgName},"./node_modules/commander/lib/command.js"(e,t,r){let n=r("node:events").EventEmitter,i=r("node:child_process"),s=r("node:path"),o=r("node:fs"),a=r("node:process"),{Argument:l,humanReadableArgName:d}=r("./node_modules/commander/lib/argument.js"),{CommanderError:u}=r("./node_modules/commander/lib/error.js"),{Help:c,stripColor:h}=r("./node_modules/commander/lib/help.js"),{Option:f,DualOptions:p}=r("./node_modules/commander/lib/option.js"),{suggestSimilar:b}=r("./node_modules/commander/lib/suggestSimilar.js");class g extends n{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:void 0,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:void 0,getOutHasColors:()=>useColor()??(a.stdout.isTTY&&a.stdout.hasColors?.()),getErrHasColors:()=>useColor()??(a.stderr.isTTY&&a.stderr.hasColors?.()),stripColor:e=>h(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,r){let n=t,i=r;"object"==typeof n&&null!==n&&(i=n,n=null),i=i||{};let[,s,o]=e.match(/([^ ]+) *(.*)/),a=this.createCommand(s);return(n&&(a.description(n),a._executableHandler=!0),i.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(i.noHelp||i.hidden),a._executableFile=i.executableFile||null,o&&a.arguments(o),this._registerCommand(a),a.parent=this,a.copyInheritedSettings(this),n)?this:a}createCommand(e){return new g(e)}createHelp(){return Object.assign(new c,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
|
|
5
|
+
`;super(t),this.name="AggregateError",this.errors=e}},ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"(e,t,r){let n=r("buffer"),{format:i,inspect:s}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util/inspect.js"),{codes:{ERR_INVALID_ARG_TYPE:o}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),{kResistStopPropagation:a,AggregateError:l,SymbolDispose:d}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),u=globalThis.AbortSignal||r("./node_modules/abort-controller/dist/abort-controller.mjs").h8,c=globalThis.AbortController||r("./node_modules/abort-controller/dist/abort-controller.mjs").z1,h=Object.getPrototypeOf(async function(){}).constructor,f=globalThis.Blob||n.Blob,validateAbortSignal=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new o(t,"AbortSignal",e)};e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}},promisify:e=>new Promise((t,r)=>{e((e,...n)=>e?r(e):t(...n))}),debuglog:()=>function(){},format:i,inspect:s,types:{isAsyncFunction:e=>e instanceof h,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:void 0!==f?function(e){return e instanceof f}:function(e){return!1},deprecate:(e,t)=>e,addAbortListener:r("events").addAbortListener||function(e,t){let r;if(void 0===e)throw new o("signal","AbortSignal",e);validateAbortSignal(e,"signal");if("function"!=typeof t)throw new o("listener","Function",t);return e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[d](){var e;null==(e=r)||e()}}},AbortSignalAny:u.any||function(e){if(1===e.length)return e[0];let t=new c,abort=()=>t.abort();return e.forEach(e=>{validateAbortSignal(e,"signals"),e.addEventListener("abort",abort,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",abort))},{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},"./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util/inspect.js"(e){e.exports={format:(e,...t)=>e.replace(/%([sdifj])/g,function(...[e,r]){let n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"!==r||"object"!=typeof n)return n.toString();{let e=n.constructor!==Object?n.constructor.name:"";return`${e} {}`.trim()}}),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;else if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/stream.js"(e,t,r){let{Buffer:n}=r("buffer"),{ObjectDefineProperty:i,ObjectKeys:s,ReflectApply:o}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{promisify:{custom:a}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js"),{streamReturningOperators:l,promiseReturningOperators:d}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/operators.js"),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js"),c=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/compose.js"),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:f}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js"),{pipeline:p}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{destroyer:b}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"),g=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"),y=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/stream/promises.js"),w=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),v=e.exports=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/legacy.js").Stream;for(let e of(v.isDestroyed=w.isDestroyed,v.isDisturbed=w.isDisturbed,v.isErrored=w.isErrored,v.isReadable=w.isReadable,v.isWritable=w.isWritable,v.Readable=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js"),s(l))){let t=l[e];function fn(...e){if(new.target)throw u();return v.Readable.from(o(t,this,e))}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}for(let e of s(d)){let t=d[e];function fn(...e){if(new.target)throw u();return o(t,this,e)}i(fn,"name",{__proto__:null,value:t.name}),i(fn,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:fn,enumerable:!1,configurable:!0,writable:!0})}v.Writable=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/writable.js"),v.Duplex=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js"),v.Transform=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/transform.js"),v.PassThrough=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/passthrough.js"),v.pipeline=p;let{addAbortSignal:S}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js");v.addAbortSignal=S,v.finished=g,v.destroy=b,v.compose=c,v.setDefaultHighWaterMark=h,v.getDefaultHighWaterMark=f,i(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(g,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),v.Stream=v,v._isUint8Array=function(e){return e instanceof Uint8Array},v._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},"./node_modules/crc32-stream/node_modules/readable-stream/lib/stream/promises.js"(e,t,r){let{ArrayPrototypePop:n,Promise:i}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js"),{isIterable:s,isNodeStream:o,isWebStream:a}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js"),{pipelineImpl:l}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"),{finished:d}=r("./node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js");r("./node_modules/crc32-stream/node_modules/readable-stream/lib/stream.js"),e.exports={finished:d,pipeline:function(...e){return new i((t,r)=>{let i,d,u=e[e.length-1];if(u&&"object"==typeof u&&!o(u)&&!s(u)&&!a(u)){let t=n(e);i=t.signal,d=t.end}l(e,(e,n)=>{e?r(e):t(n)},{signal:i,end:d})})}}},"./node_modules/events-universal/default.js"(e,t,r){e.exports=r("events")},"./node_modules/fast-fifo/fixed-size.js"(e){e.exports=class{constructor(e){if(!(e>0)||(e-1&e)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(void 0!==e)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},"./node_modules/fast-fifo/index.js"(e,t,r){let n=r("./node_modules/fast-fifo/fixed-size.js");e.exports=class{constructor(e){this.hwm=e||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let t=this.head;this.head=t.next=new n(2*this.head.buffer.length),this.head.push(e)}}shift(){0!==this.length&&this.length--;let e=this.tail.shift();if(void 0===e&&this.tail.next){let e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){let e=this.tail.peek();return void 0===e&&this.tail.next?this.tail.next.peek():e}isEmpty(){return 0===this.length}}},"./node_modules/graceful-fs/clone.js"(e){e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}),r}},"./node_modules/graceful-fs/graceful-fs.js"(e,t,r){var n,i,s,o=r("fs"),a=r("./node_modules/graceful-fs/polyfills.js"),l=r("./node_modules/graceful-fs/legacy-streams.js"),d=r("./node_modules/graceful-fs/clone.js"),u=r("util");function publishQueue(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var debug=function(){};function patch(e){a(e),e.gracefulify=patch,e.createReadStream=createReadStream,e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=function readFile(e,r,n){return"function"==typeof r&&(n=r,r=null),go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,function(t){t&&("EMFILE"===t.code||"ENFILE"===t.code)?enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]):"function"==typeof n&&n.apply(this,arguments)})}};var r=e.writeFile;e.writeFile=function writeFile(e,t,n,i){return"function"==typeof n&&(i=n,n=null),go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,s){return r(e,t,n,function(r){r&&("EMFILE"===r.code||"ENFILE"===r.code)?enqueue([go$writeFile,[e,t,n,i],r,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}};var n=e.appendFile;function appendFile(e,t,r,i){return"function"==typeof r&&(i=r,r=null),go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,s){return n(e,t,r,function(n){n&&("EMFILE"===n.code||"ENFILE"===n.code)?enqueue([go$appendFile,[e,t,r,i],n,s||Date.now(),Date.now()]):"function"==typeof i&&i.apply(this,arguments)})}}n&&(e.appendFile=appendFile);var i=e.copyFile;function copyFile(e,t,r,n){return"function"==typeof r&&(n=r,r=0),go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,s){return i(e,t,r,function(i){i&&("EMFILE"===i.code||"ENFILE"===i.code)?enqueue([go$copyFile,[e,t,r,n],i,s||Date.now(),Date.now()]):"function"==typeof n&&n.apply(this,arguments)})}}i&&(e.copyFile=copyFile);var s=e.readdir;e.readdir=readdir;var o=/^v[0-5]\./;function readdir(e,t,r){"function"==typeof t&&(r=t,t=null);var n=o.test(process.version)?function(e,t,r,n){return s(e,fs$readdirCallback(e,t,r,n))}:function(e,t,r,n){return s(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(s,o){s&&("EMFILE"===s.code||"ENFILE"===s.code)?enqueue([n,[e,t,r],s,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,s,o))}}}if("v0.8"===process.version.substr(0,4)){var d=l(e);ReadStream=d.ReadStream,WriteStream=d.WriteStream}var u=e.ReadStream;u&&(ReadStream.prototype=Object.create(u.prototype),ReadStream.prototype.open=ReadStream$open);var c=e.WriteStream;c&&(WriteStream.prototype=Object.create(c.prototype),WriteStream.prototype.open=WriteStream$open),Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:!0,configurable:!0});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var f=WriteStream;function ReadStream(e,t){return this instanceof ReadStream?(u.apply(this,arguments),this):ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})}function WriteStream(e,t){return this instanceof WriteStream?(c.apply(this,arguments),this):WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(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)}Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var p=e.open;function open(e,t,r,n){return"function"==typeof r&&(n=r,r=null),go$open(e,t,r,n);function go$open(e,t,r,n,i){return p(e,t,r,function(s,o){s&&("EMFILE"===s.code||"ENFILE"===s.code)?enqueue([go$open,[e,t,r,n],s,i||Date.now(),Date.now()]):"function"==typeof n&&n.apply(this,arguments)})}}return e.open=open,e}function enqueue(e){debug("ENQUEUE",e[0].name,e[1]),o[n].push(e),retry()}function resetQueue(){for(var e=Date.now(),t=0;t<o[n].length;++t)o[n][t].length>2&&(o[n][t][3]=e,o[n][t][4]=e);retry()}function retry(){if(clearTimeout(s),s=void 0,0!==o[n].length){var e=o[n].shift(),t=e[0],r=e[1],i=e[2],a=e[3],l=e[4];if(void 0===a)debug("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-a>=6e4){debug("TIMEOUT",t.name,r);var d=r.pop();"function"==typeof d&&d.call(null,i)}else Date.now()-l>=Math.min(1.2*Math.max(l-a,1),100)?(debug("RETRY",t.name,r),t.apply(null,r.concat([a]))):o[n].push(e);void 0===s&&(s=setTimeout(retry,0))}}u.debuglog?debug=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(debug=function(){var e=u.format.apply(u,arguments);console.error(e="GFS4: "+e.split(/\n/).join("\nGFS4: "))}),!o[n]&&(publishQueue(o,eo[n]||[]),o.close=function(e){function close(t,r){return e.call(o,t,function(e){e||resetQueue(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(close,i,{value:e}),close}(o.close),o.closeSync=function(e){function closeSync(t){e.apply(o,arguments),resetQueue()}return Object.defineProperty(closeSync,i,{value:e}),closeSync}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){debug(o[n]),r("assert").equal(o[n].length,0)})),eo[n]||publishQueue(eo,o[n]),e.exports=patch(d(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=patch(o),o.__patched=!0)},"./node_modules/graceful-fs/legacy-streams.js"(e,t,r){var n=r("stream").Stream;e.exports=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=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(r=r||{}),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=r[l]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null!==this.fd?process.nextTick(function(){i._read()}):e.open(this.path,this.flags,this.mode,function(e,t){if(e){i.emit("error",e),i.readable=!1;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=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var i=Object.keys(r=r||{}),s=0,o=i.length;s<o;s++){var a=i[s];this[a]=r[a]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}},"./node_modules/graceful-fs/polyfills.js"(e,t,r){var n=r("constants"),i=process.cwd,s=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return s||(s=i.call(process)),s};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(e){s=null,a.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}e.exports=function patch(e){var t;function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){i&&i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,r){var i,s=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),o=!0;try{i=e.fchmodSync(s,r),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}}function patchLutimes(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,function(t,n){if(t){s&&s(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){s&&s(t||e)})})})},e.lutimesSync=function(t,r,i){var s,o=e.openSync(t,n.O_SYMLINK),a=!0;try{s=e.futimesSync(o,r,i),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return s}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}function chmodFix(t){return t?function(r,n,i){return t.call(e,r,n,function(e){chownErOk(e)&&(e=null),i&&i.apply(this,arguments)})}:t}function chmodFixSync(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}:t}function chownFix(t){return t?function(r,n,i,s){return t.call(e,r,n,i,function(e){chownErOk(e)&&(e=null),s&&s.apply(this,arguments)})}:t}function chownFixSync(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}:t}function statFix(t){return t?function(r,n,i){function callback(e,t){t&&(t.uid<0&&(t.uid+=0x100000000),t.gid<0&&(t.gid+=0x100000000)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,callback):t.call(e,r,callback)}:t}function statFixSync(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=0x100000000),i.gid<0&&(i.gid+=0x100000000)),i}:t}function chownErOk(e){return!e||"ENOSYS"===e.code||(!process.getuid||0!==process.getuid())&&("EINVAL"===e.code||"EPERM"===e.code)}n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&patchLchmod(e),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),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){}),"win32"===o&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function rename(r,n,i){var s=Date.now(),o=0;t(r,n,function CB(a){if(a&&("EACCES"===a.code||"EPERM"===a.code||"EBUSY"===a.code)&&Date.now()-s<6e4){setTimeout(function(){e.stat(n,function(e,s){e&&"ENOENT"===e.code?t(r,n,CB):i(a)})},o),o<100&&(o+=10);return}i&&i(a)})}return Object.setPrototypeOf&&Object.setPrototypeOf(rename,t),rename}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function read(r,n,i,s,o,a){var l;if(a&&"function"==typeof a){var d=0;l=function(u,c,h){if(u&&"EAGAIN"===u.code&&d<10)return d++,t.call(e,r,n,i,s,o,l);a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,l)}return Object.setPrototypeOf&&Object.setPrototypeOf(read,t),read}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(t=e.readSync,function(r,n,i,s,o){for(var a=0;;)try{return t.call(e,r,n,i,s,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}})}},"./node_modules/inherits/inherits.js"(e,t,r){try{var n=r("util");if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r("./node_modules/inherits/inherits_browser.js")}},"./node_modules/inherits/inherits_browser.js"(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype,e.prototype=new TempCtor,e.prototype.constructor=e}}},"./node_modules/is-stream/index.js"(e){let isStream=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;isStream.writable=e=>isStream(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,isStream.readable=e=>isStream(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e),isStream.transform=e=>isStream.duplex(e)&&"function"==typeof e._transform,e.exports=isStream},"./node_modules/isarray/index.js"(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},"./node_modules/lazystream/lib/lazystream.js"(e,t,r){var n=r("util"),i=r("./node_modules/lazystream/node_modules/readable-stream/passthrough.js");function beforeFirstCall(e,t,r){e[t]=function(){return delete e[t],r.apply(this,arguments),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),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),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r)}),this.emit("writable")}e.exports={Readable:Readable,Writable:Writable},n.inherits(Readable,i),n.inherits(Writable,i)},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"(e,t,r){var n=r("./node_modules/process-nextick-args/index.js"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=Duplex;var s=Object.create(r("./node_modules/core-util-is/lib/util.js"));s.inherits=r("./node_modules/inherits/inherits.js");var o=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js"),a=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js");s.inherits(Duplex,o);for(var l=i(a.prototype),d=0;d<l.length;d++){var u=l[d];Duplex.prototype[u]||(Duplex.prototype[u]=a.prototype[u])}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",onend)}function onend(){this.allowHalfOpen||this._writableState.ended||n.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),Duplex.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js"(e,t,r){e.exports=PassThrough;var n=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"),i=Object.create(r("./node_modules/core-util-is/lib/util.js"));function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}i.inherits=r("./node_modules/inherits/inherits.js"),i.inherits(PassThrough,n),PassThrough.prototype._transform=function(e,t,r){r(null,e)}},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js"(e,t,r){var n,i,s=r("./node_modules/process-nextick-args/index.js");e.exports=Readable;var o=r("./node_modules/isarray/index.js");Readable.ReadableState=ReadableState,r("events").EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length},a=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js"),l=r("./node_modules/lazystream/node_modules/safe-buffer/index.js").Buffer,d=(void 0!==eo?eo:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof d}var u=Object.create(r("./node_modules/core-util-is/lib/util.js"));u.inherits=r("./node_modules/inherits/inherits.js");var c=r("util"),h=void 0;h=c&&c.debuglog?c.debuglog("stream"):function(){};var f=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js"),p=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js");u.inherits(Readable,a);var b=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function ReadableState(e,t){n=n||r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),e=e||{};var s=t instanceof n;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,l=this.objectMode?16:16384;o||0===o?this.highWaterMark=o:s&&(a||0===a)?this.highWaterMark=a:this.highWaterMark=l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(i||(i=r("./node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js").StringDecoder),this.decoder=new i(e.encoding),this.encoding=e.encoding)}function Readable(e){if(n=n||r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function readableAddChunk(e,t,r,n,i){var s,o=e._readableState;return null===t?(o.reading=!1,onEofChunk(e,o)):(i||(s=chunkInvalid(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=_uint8ArrayToBuffer(t)),n?o.endEmitted?e.emit("error",Error("stream.unshift() after end event")):addChunk(e,o,t,!0):o.ended?e.emit("error",Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?addChunk(e,o,t,!1):maybeReadMore(e,o)):addChunk(e,o,t,!1))):n||(o.reading=!1)),needMoreData(o)}function addChunk(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&emitReadable(e)),maybeReadMore(e,t)}function chunkInvalid(e,t){var r;return _isUint8Array(t)||"string"==typeof t||void 0===t||e.objectMode||(r=TypeError("Invalid non-string/buffer chunk")),r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function computeNewHighWaterMark(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function howMuchToRead(e,t){if(e<=0||0===t.length&&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;return(e>t.highWaterMark&&(t.highWaterMark=computeNewHighWaterMark(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function onEofChunk(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,emitReadable(e)}}function emitReadable(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?s.nextTick(emitReadable_,e):emitReadable_(e))}function emitReadable_(e){h("emit readable"),e.emit("readable"),flow(e)}function maybeReadMore(e,t){t.readingMore||(t.readingMore=!0,s.nextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function pipeOnDrain(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&EElistenerCount(e,"data")&&(t.flowing=!0,flow(e))}}function nReadingNextTick(e){h("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,s.nextTick(resume_,e,t))}function resume_(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function fromList(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=fromListPartial(e,t.buffer,t.decoder),r)}function fromListPartial(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?copyFromBufferString(e,t):copyFromBuffer(e,t),n}function copyFromBufferString(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0==(e-=o)){o===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++n}return t.length-=n,i}function copyFromBuffer(e,t){var r=l.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),0==(e-=o)){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}function endReadable(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,s.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,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}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),Readable.prototype.destroy=p.destroy,Readable.prototype._undestroy=p.undestroy,Readable.prototype._destroy=function(e,t){this.push(null),t(e)},Readable.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),readableAddChunk(this,e,t,!1,r)},Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,!0,!1)},Readable.prototype.isPaused=function(){return!1===this._readableState.flowing},Readable.prototype.setEncoding=function(e){return i||(i=r("./node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js").StringDecoder),this._readableState.decoder=new i(e),this._readableState.encoding=e,this},Readable.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return h("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,r))&&r.ended)return 0===r.length&&endReadable(this),null;var i=r.needReadable;return h("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&h("length less than watermark",i=!0),r.ended||r.reading?h("reading or ended",i=!1):i&&(h("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=howMuchToRead(n,r))),null===(t=e>0?fromList(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&endReadable(this)),null!==t&&this.emit("data",t),t},Readable.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},Readable.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,h("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===process.stdout||e===process.stderr?unpipe:onend;function onunpipe(e,t){h("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,cleanup())}function onend(){h("onend"),e.end()}n.endEmitted?s.nextTick(i):r.once("end",i),e.on("unpipe",onunpipe);var o=pipeOnDrain(r);e.on("drain",o);var a=!1;function cleanup(){h("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),a=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o()}var l=!1;function ondata(t){h("ondata"),l=!1,!1!==e.write(t)||l||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==indexOf(n.pipes,e))&&!a&&(h("false write response, pause",n.awaitDrain),n.awaitDrain++,l=!0),r.pause())}function onerror(t){h("onerror",t),unpipe(),e.removeListener("error",onerror),0===EElistenerCount(e,"error")&&e.emit("error",t)}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){h("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){h("unpipe"),r.unpipe(e)}return r.on("data",ondata),prependListener(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",r),n.flowing||(h("pipe resume"),r.resume()),e},Readable.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=indexOf(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},Readable.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&emitReadable(this):s.nextTick(nReadingNextTick,this))}return r},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,resume(this,e)),this},Readable.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<b.length;s++)e.on(b[s],this.emit.bind(this,b[s]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Readable._fromList=fromList},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"(e,t,r){e.exports=Transform;var n=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),i=Object.create(r("./node_modules/core-util-is/lib/util.js"));function afterTransform(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(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:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){done(e,t,r)}):done(this,null,null)}function done(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r("./node_modules/inherits/inherits.js"),i.inherits(Transform,n),Transform.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},Transform.prototype._transform=function(e,t,r){throw Error("_transform() is not implemented")},Transform.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Transform.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Transform.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},"./node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js"(e,t,r){var n,i,s=r("./node_modules/process-nextick-args/index.js");function CorkedRequest(e){var t=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(t,e)}}e.exports=Writable;var o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:s.nextTick;Writable.WritableState=WritableState;var a=Object.create(r("./node_modules/core-util-is/lib/util.js"));a.inherits=r("./node_modules/inherits/inherits.js");var l={deprecate:r("./node_modules/util-deprecate/node.js")},d=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js"),u=r("./node_modules/lazystream/node_modules/safe-buffer/index.js").Buffer,c=(void 0!==eo?eo:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof c}var h=r("./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js");function nop(){}function WritableState(e,t){n=n||r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),e=e||{};var i=t instanceof n;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var s=e.highWaterMark,o=e.writableHighWaterMark,a=this.objectMode?16:16384;s||0===s?this.highWaterMark=s:i&&(o||0===o)?this.highWaterMark=o:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){onwrite(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}a.inherits(Writable,d),WritableState.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(WritableState.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function Writable(e){if(n=n||r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),!i.call(Writable,this)&&!(this instanceof n))return new Writable(e);this._writableState=new WritableState(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function writeAfterEnd(e,t){var r=Error("write after end");e.emit("error",r),s.nextTick(t,r)}function validChunk(e,t,r,n){var i=!0,o=!1;return null===r?o=TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),s.nextTick(n,o),i=!1),i}function decodeChunk(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}function writeOrBuffer(e,t,r,n,i,s){if(!r){var o=decodeChunk(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else doWrite(e,t,!1,a,n,i,s);return l}function doWrite(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function onwriteError(e,t,r,n,i){--t.pendingcb,r?(s.nextTick(i,n),s.nextTick(finishMaybe,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),finishMaybe(e,t))}function onwriteStateUpdate(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function onwrite(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(onwriteStateUpdate(r),t)onwriteError(e,r,n,t,i);else{var s=needFinish(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||clearBuffer(e,r),n?o(afterWrite,e,r,s,i):afterWrite(e,r,s,i)}}function afterWrite(e,t,r,n){r||onwriteDrain(e,t),t.pendingcb--,n(),finishMaybe(e,t)}function onwriteDrain(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function clearBuffer(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var s=0,o=!0;r;)n[s]=r,r.isBuf||(o=!1),r=r.next,s+=1;n.allBuffers=o,doWrite(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new CorkedRequest(t),t.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,l=r.encoding,d=r.callback,u=t.objectMode?1:a.length;if(doWrite(e,t,!1,u,a,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function needFinish(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function callFinal(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),finishMaybe(e,t)})}function prefinish(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,s.nextTick(callFinal,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function finishMaybe(e,t){var r=needFinish(t);return r&&(prefinish(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}function endWritable(e,t,r){t.ending=!0,finishMaybe(e,t),r&&(t.finished?s.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function onCorkedFinish(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===Writable&&e&&e._writableState instanceof WritableState}})):i=function(e){return e instanceof this},Writable.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},Writable.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&_isUint8Array(e);return s&&!u.isBuffer(e)&&(e=_uint8ArrayToBuffer(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=nop),n.ended?writeAfterEnd(this,r):(s||validChunk(this,n,e,r))&&(n.pendingcb++,i=writeOrBuffer(this,n,s,e,t,r)),i},Writable.prototype.cork=function(){var e=this._writableState;e.corked++},Writable.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||clearBuffer(this,e))},Writable.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(e,t,r){r(Error("_write() is not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||endWritable(this,n,r)},Object.defineProperty(Writable.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),Writable.prototype.destroy=h.destroy,Writable.prototype._undestroy=h.undestroy,Writable.prototype._destroy=function(e,t){this.end(),t(e)}},"./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js"(e,t,r){function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var n=r("./node_modules/lazystream/node_modules/safe-buffer/index.js").Buffer,i=r("util");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}return BufferList.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},BufferList.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},BufferList.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},BufferList.prototype.clear=function(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},BufferList.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)copyBuffer(r.data,t,i),i+=r.data.length,r=r.next;return t},BufferList}(),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})},"./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js"(e,t,r){var n=r("./node_modules/process-nextick-args/index.js");function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(emitErrorNT,this,e)):n.nextTick(emitErrorNT,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(emitErrorNT,r,e)):n.nextTick(emitErrorNT,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},"./node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js"(e,t,r){e.exports=r("stream")},"./node_modules/lazystream/node_modules/readable-stream/passthrough.js"(e,t,r){e.exports=r("./node_modules/lazystream/node_modules/readable-stream/readable.js").PassThrough},"./node_modules/lazystream/node_modules/readable-stream/readable.js"(e,t,r){var n=r("stream");"disable"===process.env.READABLE_STREAM&&n?(e.exports=n,(t=e.exports=n.Readable).Readable=n.Readable,t.Writable=n.Writable,t.Duplex=n.Duplex,t.Transform=n.Transform,t.PassThrough=n.PassThrough,t.Stream=n):((t=e.exports=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js")).Stream=n||t,t.Readable=t,t.Writable=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js"),t.Duplex=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"),t.Transform=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"),t.PassThrough=r("./node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js"))},"./node_modules/lazystream/node_modules/safe-buffer/index.js"(e,t,r){var n=r("buffer"),i=n.Buffer;function copyProps(e,t){for(var r in e)t[r]=e[r]}function SafeBuffer(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(copyProps(n,t),t.Buffer=SafeBuffer),copyProps(i,SafeBuffer),SafeBuffer.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},SafeBuffer.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},"./node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js"(e,t,r){var n=r("./node_modules/lazystream/node_modules/safe-buffer/index.js").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(e){var t;if(!e)return"utf8";for(;;)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=!0}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function StringDecoder(e){var t;switch(this.encoding=normalizeEncoding(e),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)}function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4: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]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=utf8CheckByte(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=utf8CheckByte(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function utf8CheckExtraBytes(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed,r=utf8CheckExtraBytes(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(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);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":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)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],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;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function base64End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}t.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"./node_modules/lodash/_Hash.js"(e,t,r){var n=r("./node_modules/lodash/_hashClear.js"),i=r("./node_modules/lodash/_hashDelete.js"),s=r("./node_modules/lodash/_hashGet.js"),o=r("./node_modules/lodash/_hashHas.js"),a=r("./node_modules/lodash/_hashSet.js");function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=n,Hash.prototype.delete=i,Hash.prototype.get=s,Hash.prototype.has=o,Hash.prototype.set=a,e.exports=Hash},"./node_modules/lodash/_ListCache.js"(e,t,r){var n=r("./node_modules/lodash/_listCacheClear.js"),i=r("./node_modules/lodash/_listCacheDelete.js"),s=r("./node_modules/lodash/_listCacheGet.js"),o=r("./node_modules/lodash/_listCacheHas.js"),a=r("./node_modules/lodash/_listCacheSet.js");function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=n,ListCache.prototype.delete=i,ListCache.prototype.get=s,ListCache.prototype.has=o,ListCache.prototype.set=a,e.exports=ListCache},"./node_modules/lodash/_Map.js"(e,t,r){e.exports=r("./node_modules/lodash/_getNative.js")(r("./node_modules/lodash/_root.js"),"Map")},"./node_modules/lodash/_MapCache.js"(e,t,r){var n=r("./node_modules/lodash/_mapCacheClear.js"),i=r("./node_modules/lodash/_mapCacheDelete.js"),s=r("./node_modules/lodash/_mapCacheGet.js"),o=r("./node_modules/lodash/_mapCacheHas.js"),a=r("./node_modules/lodash/_mapCacheSet.js");function MapCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=n,MapCache.prototype.delete=i,MapCache.prototype.get=s,MapCache.prototype.has=o,MapCache.prototype.set=a,e.exports=MapCache},"./node_modules/lodash/_Set.js"(e,t,r){e.exports=r("./node_modules/lodash/_getNative.js")(r("./node_modules/lodash/_root.js"),"Set")},"./node_modules/lodash/_SetCache.js"(e,t,r){var n=r("./node_modules/lodash/_MapCache.js"),i=r("./node_modules/lodash/_setCacheAdd.js"),s=r("./node_modules/lodash/_setCacheHas.js");function SetCache(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=i,SetCache.prototype.has=s,e.exports=SetCache},"./node_modules/lodash/_Symbol.js"(e,t,r){e.exports=r("./node_modules/lodash/_root.js").Symbol},"./node_modules/lodash/_apply.js"(e){e.exports=function(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)}},"./node_modules/lodash/_arrayIncludes.js"(e,t,r){var n=r("./node_modules/lodash/_baseIndexOf.js");e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},"./node_modules/lodash/_arrayIncludesWith.js"(e){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},"./node_modules/lodash/_arrayLikeKeys.js"(e,t,r){var n=r("./node_modules/lodash/_baseTimes.js"),i=r("./node_modules/lodash/isArguments.js"),s=r("./node_modules/lodash/isArray.js"),o=r("./node_modules/lodash/isBuffer.js"),a=r("./node_modules/lodash/_isIndex.js"),l=r("./node_modules/lodash/isTypedArray.js"),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=s(e),u=!r&&i(e),c=!r&&!u&&o(e),h=!r&&!u&&!c&&l(e),f=r||u||c||h,p=f?n(e.length,String):[],b=p.length;for(var g in e)(t||d.call(e,g))&&!(f&&("length"==g||c&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,b)))&&p.push(g);return p}},"./node_modules/lodash/_arrayMap.js"(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},"./node_modules/lodash/_arrayPush.js"(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},"./node_modules/lodash/_assocIndexOf.js"(e,t,r){var n=r("./node_modules/lodash/eq.js");e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},"./node_modules/lodash/_baseDifference.js"(e,t,r){var n=r("./node_modules/lodash/_SetCache.js"),i=r("./node_modules/lodash/_arrayIncludes.js"),s=r("./node_modules/lodash/_arrayIncludesWith.js"),o=r("./node_modules/lodash/_arrayMap.js"),a=r("./node_modules/lodash/_baseUnary.js"),l=r("./node_modules/lodash/_cacheHas.js");e.exports=function(e,t,r,d){var u=-1,c=i,h=!0,f=e.length,p=[],b=t.length;if(!f)return p;r&&(t=o(t,a(r))),d?(c=s,h=!1):t.length>=200&&(c=l,h=!1,t=new n(t));e:for(;++u<f;){var g=e[u],y=null==r?g:r(g);if(g=d||0!==g?g:0,h&&y==y){for(var w=b;w--;)if(t[w]===y)continue e;p.push(g)}else c(t,y,d)||p.push(g)}return p}},"./node_modules/lodash/_baseFindIndex.js"(e){e.exports=function(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return -1}},"./node_modules/lodash/_baseFlatten.js"(e,t,r){var n=r("./node_modules/lodash/_arrayPush.js"),i=r("./node_modules/lodash/_isFlattenable.js");function baseFlatten(e,t,r,s,o){var a=-1,l=e.length;for(r||(r=i),o||(o=[]);++a<l;){var d=e[a];t>0&&r(d)?t>1?baseFlatten(d,t-1,r,s,o):n(o,d):s||(o[o.length]=d)}return o}e.exports=baseFlatten},"./node_modules/lodash/_baseGetTag.js"(e,t,r){var n=r("./node_modules/lodash/_Symbol.js"),i=r("./node_modules/lodash/_getRawTag.js"),s=r("./node_modules/lodash/_objectToString.js"),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},"./node_modules/lodash/_baseIndexOf.js"(e,t,r){var n=r("./node_modules/lodash/_baseFindIndex.js"),i=r("./node_modules/lodash/_baseIsNaN.js"),s=r("./node_modules/lodash/_strictIndexOf.js");e.exports=function(e,t,r){return t==t?s(e,t,r):n(e,i,r)}},"./node_modules/lodash/_baseIsArguments.js"(e,t,r){var n=r("./node_modules/lodash/_baseGetTag.js"),i=r("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},"./node_modules/lodash/_baseIsNaN.js"(e){e.exports=function(e){return e!=e}},"./node_modules/lodash/_baseIsNative.js"(e,t,r){var n=r("./node_modules/lodash/isFunction.js"),i=r("./node_modules/lodash/_isMasked.js"),s=r("./node_modules/lodash/isObject.js"),o=r("./node_modules/lodash/_toSource.js"),a=/^\[object .+?Constructor\]$/,l=Object.prototype,d=Function.prototype.toString,u=l.hasOwnProperty,c=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||i(e))&&(n(e)?c:a).test(o(e))}},"./node_modules/lodash/_baseIsTypedArray.js"(e,t,r){var n=r("./node_modules/lodash/_baseGetTag.js"),i=r("./node_modules/lodash/isLength.js"),s=r("./node_modules/lodash/isObjectLike.js"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&i(e.length)&&!!o[n(e)]}},"./node_modules/lodash/_baseKeysIn.js"(e,t,r){var n=r("./node_modules/lodash/isObject.js"),i=r("./node_modules/lodash/_isPrototype.js"),s=r("./node_modules/lodash/_nativeKeysIn.js"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=i(e),r=[];for(var a in e)"constructor"==a&&(t||!o.call(e,a))||r.push(a);return r}},"./node_modules/lodash/_baseRest.js"(e,t,r){var n=r("./node_modules/lodash/identity.js"),i=r("./node_modules/lodash/_overRest.js"),s=r("./node_modules/lodash/_setToString.js");e.exports=function(e,t){return s(i(e,t,n),e+"")}},"./node_modules/lodash/_baseSetToString.js"(e,t,r){var n=r("./node_modules/lodash/constant.js"),i=r("./node_modules/lodash/_defineProperty.js"),s=r("./node_modules/lodash/identity.js");e.exports=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:s},"./node_modules/lodash/_baseTimes.js"(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},"./node_modules/lodash/_baseUnary.js"(e){e.exports=function(e){return function(t){return e(t)}}},"./node_modules/lodash/_baseUniq.js"(e,t,r){var n=r("./node_modules/lodash/_SetCache.js"),i=r("./node_modules/lodash/_arrayIncludes.js"),s=r("./node_modules/lodash/_arrayIncludesWith.js"),o=r("./node_modules/lodash/_cacheHas.js"),a=r("./node_modules/lodash/_createSet.js"),l=r("./node_modules/lodash/_setToArray.js");e.exports=function(e,t,r){var d=-1,u=i,c=e.length,h=!0,f=[],p=f;if(r)h=!1,u=s;else if(c>=200){var b=t?null:a(e);if(b)return l(b);h=!1,u=o,p=new n}else p=t?[]:f;e:for(;++d<c;){var g=e[d],y=t?t(g):g;if(g=r||0!==g?g:0,h&&y==y){for(var w=p.length;w--;)if(p[w]===y)continue e;t&&p.push(y),f.push(g)}else u(p,y,r)||(p!==f&&p.push(y),f.push(g))}return f}},"./node_modules/lodash/_cacheHas.js"(e){e.exports=function(e,t){return e.has(t)}},"./node_modules/lodash/_coreJsData.js"(e,t,r){e.exports=r("./node_modules/lodash/_root.js")["__core-js_shared__"]},"./node_modules/lodash/_createSet.js"(e,t,r){var n=r("./node_modules/lodash/_Set.js"),i=r("./node_modules/lodash/noop.js"),s=r("./node_modules/lodash/_setToArray.js");e.exports=n&&1/s(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i},"./node_modules/lodash/_defineProperty.js"(e,t,r){var n=r("./node_modules/lodash/_getNative.js");e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},"./node_modules/lodash/_freeGlobal.js"(e){e.exports="object"==typeof eo&&eo&&eo.Object===Object&&eo},"./node_modules/lodash/_getMapData.js"(e,t,r){var n=r("./node_modules/lodash/_isKeyable.js");e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},"./node_modules/lodash/_getNative.js"(e,t,r){var n=r("./node_modules/lodash/_baseIsNative.js"),i=r("./node_modules/lodash/_getValue.js");e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},"./node_modules/lodash/_getPrototype.js"(e,t,r){e.exports=r("./node_modules/lodash/_overArg.js")(Object.getPrototypeOf,Object)},"./node_modules/lodash/_getRawTag.js"(e,t,r){var n=r("./node_modules/lodash/_Symbol.js"),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[a]=r:delete e[a]),i}},"./node_modules/lodash/_getValue.js"(e){e.exports=function(e,t){return null==e?void 0:e[t]}},"./node_modules/lodash/_hashClear.js"(e,t,r){var n=r("./node_modules/lodash/_nativeCreate.js");e.exports=function(){this.__data__=n?n(null):{},this.size=0}},"./node_modules/lodash/_hashDelete.js"(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},"./node_modules/lodash/_hashGet.js"(e,t,r){var n=r("./node_modules/lodash/_nativeCreate.js"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},"./node_modules/lodash/_hashHas.js"(e,t,r){var n=r("./node_modules/lodash/_nativeCreate.js"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},"./node_modules/lodash/_hashSet.js"(e,t,r){var n=r("./node_modules/lodash/_nativeCreate.js");e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},"./node_modules/lodash/_isFlattenable.js"(e,t,r){var n=r("./node_modules/lodash/_Symbol.js"),i=r("./node_modules/lodash/isArguments.js"),s=r("./node_modules/lodash/isArray.js"),o=n?n.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||i(e)||!!(o&&e&&e[o])}},"./node_modules/lodash/_isIndex.js"(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},"./node_modules/lodash/_isIterateeCall.js"(e,t,r){var n=r("./node_modules/lodash/eq.js"),i=r("./node_modules/lodash/isArrayLike.js"),s=r("./node_modules/lodash/_isIndex.js"),o=r("./node_modules/lodash/isObject.js");e.exports=function(e,t,r){if(!o(r))return!1;var a=typeof t;return("number"==a?!!(i(r)&&s(t,r.length)):"string"==a&&t in r)&&n(r[t],e)}},"./node_modules/lodash/_isKeyable.js"(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},"./node_modules/lodash/_isMasked.js"(e,t,r){var n,i=r("./node_modules/lodash/_coreJsData.js"),s=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!s&&s in e}},"./node_modules/lodash/_isPrototype.js"(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},"./node_modules/lodash/_listCacheClear.js"(e){e.exports=function(){this.__data__=[],this.size=0}},"./node_modules/lodash/_listCacheDelete.js"(e,t,r){var n=r("./node_modules/lodash/_assocIndexOf.js"),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},"./node_modules/lodash/_listCacheGet.js"(e,t,r){var n=r("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},"./node_modules/lodash/_listCacheHas.js"(e,t,r){var n=r("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e){return n(this.__data__,e)>-1}},"./node_modules/lodash/_listCacheSet.js"(e,t,r){var n=r("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},"./node_modules/lodash/_mapCacheClear.js"(e,t,r){var n=r("./node_modules/lodash/_Hash.js"),i=r("./node_modules/lodash/_ListCache.js"),s=r("./node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||i),string:new n}}},"./node_modules/lodash/_mapCacheDelete.js"(e,t,r){var n=r("./node_modules/lodash/_getMapData.js");e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},"./node_modules/lodash/_mapCacheGet.js"(e,t,r){var n=r("./node_modules/lodash/_getMapData.js");e.exports=function(e){return n(this,e).get(e)}},"./node_modules/lodash/_mapCacheHas.js"(e,t,r){var n=r("./node_modules/lodash/_getMapData.js");e.exports=function(e){return n(this,e).has(e)}},"./node_modules/lodash/_mapCacheSet.js"(e,t,r){var n=r("./node_modules/lodash/_getMapData.js");e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=+(r.size!=i),this}},"./node_modules/lodash/_nativeCreate.js"(e,t,r){e.exports=r("./node_modules/lodash/_getNative.js")(Object,"create")},"./node_modules/lodash/_nativeKeysIn.js"(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},"./node_modules/lodash/_nodeUtil.js"(e,t,r){e=r.nmd(e);var n=r("./node_modules/lodash/_freeGlobal.js"),i=t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===i&&n.process,a=function(){try{var e=s&&s.require&&s.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},"./node_modules/lodash/_objectToString.js"(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},"./node_modules/lodash/_overArg.js"(e){e.exports=function(e,t){return function(r){return e(t(r))}}},"./node_modules/lodash/_overRest.js"(e,t,r){var n=r("./node_modules/lodash/_apply.js"),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var s=arguments,o=-1,a=i(s.length-t,0),l=Array(a);++o<a;)l[o]=s[t+o];o=-1;for(var d=Array(t+1);++o<t;)d[o]=s[o];return d[t]=r(l),n(e,this,d)}}},"./node_modules/lodash/_root.js"(e,t,r){var n=r("./node_modules/lodash/_freeGlobal.js"),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},"./node_modules/lodash/_setCacheAdd.js"(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},"./node_modules/lodash/_setCacheHas.js"(e){e.exports=function(e){return this.__data__.has(e)}},"./node_modules/lodash/_setToArray.js"(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},"./node_modules/lodash/_setToString.js"(e,t,r){var n=r("./node_modules/lodash/_baseSetToString.js");e.exports=r("./node_modules/lodash/_shortOut.js")(n)},"./node_modules/lodash/_shortOut.js"(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),s=16-(i-n);if(n=i,s>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},"./node_modules/lodash/_strictIndexOf.js"(e){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},"./node_modules/lodash/_toSource.js"(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash/constant.js"(e){e.exports=function(e){return function(){return e}}},"./node_modules/lodash/defaults.js"(e,t,r){var n=r("./node_modules/lodash/_baseRest.js"),i=r("./node_modules/lodash/eq.js"),s=r("./node_modules/lodash/_isIterateeCall.js"),o=r("./node_modules/lodash/keysIn.js"),a=Object.prototype,l=a.hasOwnProperty;e.exports=n(function(e,t){e=Object(e);var r=-1,n=t.length,d=n>2?t[2]:void 0;for(d&&s(t[0],t[1],d)&&(n=1);++r<n;)for(var u=t[r],c=o(u),h=-1,f=c.length;++h<f;){var p=c[h],b=e[p];(void 0===b||i(b,a[p])&&!l.call(e,p))&&(e[p]=u[p])}return e})},"./node_modules/lodash/difference.js"(e,t,r){var n=r("./node_modules/lodash/_baseDifference.js"),i=r("./node_modules/lodash/_baseFlatten.js"),s=r("./node_modules/lodash/_baseRest.js"),o=r("./node_modules/lodash/isArrayLikeObject.js");e.exports=s(function(e,t){return o(e)?n(e,i(t,1,o,!0)):[]})},"./node_modules/lodash/eq.js"(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},"./node_modules/lodash/flatten.js"(e,t,r){var n=r("./node_modules/lodash/_baseFlatten.js");e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},"./node_modules/lodash/identity.js"(e){e.exports=function(e){return e}},"./node_modules/lodash/isArguments.js"(e,t,r){var n=r("./node_modules/lodash/_baseIsArguments.js"),i=r("./node_modules/lodash/isObjectLike.js"),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!a.call(e,"callee")}},"./node_modules/lodash/isArray.js"(e){e.exports=Array.isArray},"./node_modules/lodash/isArrayLike.js"(e,t,r){var n=r("./node_modules/lodash/isFunction.js"),i=r("./node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},"./node_modules/lodash/isArrayLikeObject.js"(e,t,r){var n=r("./node_modules/lodash/isArrayLike.js"),i=r("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return i(e)&&n(e)}},"./node_modules/lodash/isBuffer.js"(e,t,r){e=r.nmd(e);var n=r("./node_modules/lodash/_root.js"),i=r("./node_modules/lodash/stubFalse.js"),s=t&&!t.nodeType&&t,o=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===s?n.Buffer:void 0,l=a?a.isBuffer:void 0;e.exports=l||i},"./node_modules/lodash/isFunction.js"(e,t,r){var n=r("./node_modules/lodash/_baseGetTag.js"),i=r("./node_modules/lodash/isObject.js");e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash/isLength.js"(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},"./node_modules/lodash/isObject.js"(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash/isObjectLike.js"(e){e.exports=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash/isPlainObject.js"(e,t,r){var n=r("./node_modules/lodash/_baseGetTag.js"),i=r("./node_modules/lodash/_getPrototype.js"),s=r("./node_modules/lodash/isObjectLike.js"),o=Object.prototype,a=Function.prototype.toString,l=o.hasOwnProperty,d=a.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&a.call(r)==d}},"./node_modules/lodash/isTypedArray.js"(e,t,r){var n=r("./node_modules/lodash/_baseIsTypedArray.js"),i=r("./node_modules/lodash/_baseUnary.js"),s=r("./node_modules/lodash/_nodeUtil.js"),o=s&&s.isTypedArray;e.exports=o?i(o):n},"./node_modules/lodash/keysIn.js"(e,t,r){var n=r("./node_modules/lodash/_arrayLikeKeys.js"),i=r("./node_modules/lodash/_baseKeysIn.js"),s=r("./node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?n(e,!0):i(e)}},"./node_modules/lodash/noop.js"(e){e.exports=function(){}},"./node_modules/lodash/stubFalse.js"(e){e.exports=function(){return!1}},"./node_modules/lodash/union.js"(e,t,r){var n=r("./node_modules/lodash/_baseFlatten.js"),i=r("./node_modules/lodash/_baseRest.js"),s=r("./node_modules/lodash/_baseUniq.js"),o=r("./node_modules/lodash/isArrayLikeObject.js");e.exports=i(function(e){return s(n(e,1,o,!0))})},"./node_modules/normalize-path/index.js"(e){e.exports=function(e,t){if("string"!=typeof e)throw 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];("?"===i||"."===i)&&"\\\\"===e.slice(0,2)&&(e=e.slice(2),n="//")}var s=e.split(/[/\\]+/);return!1!==t&&""===s[s.length-1]&&s.pop(),n+s.join("/")}},"./node_modules/process-nextick-args/index.js"(e){"u"<typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:nextTick}:e.exports=process;function nextTick(e,t,r,n){if("function"!=typeof e)throw TypeError('"callback" argument must be a function');var i,s,o=arguments.length;switch(o){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(i=Array(o-1),s=0;s<i.length;)i[s++]=arguments[s];return process.nextTick(function(){e.apply(null,i)})}}},"./node_modules/process/index.js"(e){e.exports=eo.process},"./node_modules/readdir-glob/index.js"(e,t,r){e.exports=readdirGlob;let n=r("fs"),{EventEmitter:i}=r("events"),{Minimatch:s}=r("./node_modules/readdir-glob/node_modules/minimatch/minimatch.js"),{resolve:o}=r("path");function readdir(e,t){return new Promise((r,i)=>{n.readdir(e,{withFileTypes:!0},(e,n)=>{if(e)switch(e.code){case"ENOTDIR":t?i(e):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(e)}else r(n)})})}function stat(e,t){return new Promise((r,i)=>{(t?n.stat:n.lstat)(e,(n,i)=>{n?"ENOENT"===n.code&&t?r(stat(e,!1)):r(null):r(i)})})}async function*exploreWalkAsync(e,t,r,n,i,s){for(let o of(await readdir(t+e,s))){let s=o.name;void 0===s&&(s=o,n=!0);let a=e+"/"+s,l=a.slice(1),d=t+"/"+l,u=null;(n||r)&&(u=await stat(d,r)),u||void 0===o.name||(u=o),null===u&&(u={isDirectory:()=>!1}),u.isDirectory()?i(l)||(yield{relative:l,absolute:d,stats:u},yield*exploreWalkAsync(a,t,r,n,i,!1)):yield{relative:l,absolute:d,stats:u}}}async function*explore(e,t,r,n){yield*exploreWalkAsync("",e,t,r,n,!0)}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 a extends i{constructor(e,t,r){if(super(),"function"==typeof t&&(r=t,t=null),this.options=readOptions(t||{}),this.matchers=[],this.options.pattern){let e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map(e=>new s(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map(e=>new s(e,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map(e=>new s(e,{dot:!0}))}this.iterator=explore(o(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,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){let r=e+(t?"/":"");return(0===this.matchers.length||this.matchers.some(e=>e.match(r)))&&!this.ignoreMatchers.some(e=>e.match(r))&&(!this.options.nodir||!t)}_next(){this.paused||this.aborted?this.inactive=!0:this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let r=e.value.relative,n=e.value.absolute;this.options.mark&&t&&(r+="/",n+="/"),this.options.stat?this.emit("match",{relative:r,absolute:n,stat:e.value.stats}):this.emit("match",{relative:r,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),e.code||this.options.silent||console.error(e)})}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}}function readdirGlob(e,t,r){return new a(e,t,r)}readdirGlob.ReaddirGlob=a},"./node_modules/readdir-glob/node_modules/minimatch/lib/path.js"(e){e.exports="object"==typeof process&&process&&"win32"===process.platform?{sep:"\\"}:{sep:"/"}},"./node_modules/readdir-glob/node_modules/minimatch/minimatch.js"(e,t,r){let n=e.exports=(e,t,r={})=>(assertValidPattern(t),(!!r.nocomment||"#"!==t.charAt(0))&&new p(t,r).match(e));e.exports=n;let i=r("./node_modules/readdir-glob/node_modules/minimatch/lib/path.js");n.sep=i.sep;let s=Symbol("globstar **");n.GLOBSTAR=s;let o=r("./node_modules/brace-expansion/index.js"),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",d=l+"*?",charSet=e=>e.split("").reduce((e,t)=>(e[t]=!0,e),{}),u=charSet("().*{}+?[]^$\\!"),c=charSet("[.("),h=/\/+/;n.filter=(e,t={})=>(r,i,s)=>n(r,e,t);let ext=(e,t={})=>{let r={};return Object.keys(e).forEach(t=>r[t]=e[t]),Object.keys(t).forEach(e=>r[e]=t[e]),r};n.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return n;let t=n,m=(r,n,i)=>t(r,n,ext(e,i));return m.Minimatch=class 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)),m},n.braceExpand=(e,t)=>braceExpand(e,t);let braceExpand=(e,t={})=>(assertValidPattern(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:o(e),assertValidPattern=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>65536)throw TypeError("pattern is too long")},f=Symbol("subparse");n.makeRe=(e,t)=>new p(e,t||{}).makeRe(),n.match=(e,t,r={})=>{let n=new p(t,r);return e=e.filter(e=>n.match(e)),n.options.nonull&&!e.length&&e.push(t),e};let charUnescape=e=>e.replace(/\\([^-\]])/g,"$1"),braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class p{constructor(e,t){assertValidPattern(e),t||(t={}),this.options=t,this.maxGlobstarRecursion=void 0!==t.maxGlobstarRecursion?t.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let r=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,r),r=this.globParts=r.map(e=>e.split(h)),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=>-1===e.indexOf(!1)),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r){return -1!==t.indexOf(s)?this._matchGlobstar(e,t,r,0,0):this._matchOne(e,t,r,0,0)}_matchGlobstar(e,t,r,n,i){let o=-1;for(let e=i;e<t.length;e++)if(t[e]===s){o=e;break}let a=-1;for(let e=t.length-1;e>=0;e--)if(t[e]===s){a=e;break}let l=t.slice(i,o),d=r?t.slice(o+1):t.slice(o+1,a),u=r?[]:t.slice(a+1);if(l.length){let t=e.slice(n,n+l.length);if(!this._matchOne(t,l,r,0,0))return!1;n+=l.length}let c=0;if(u.length){if(u.length+n>e.length)return!1;let t=e.length-u.length;if(this._matchOne(e,u,r,t,0))c=u.length;else{if(""!==e[e.length-1]||n+u.length===e.length||!this._matchOne(e,u,r,t-1,0))return!1;c=u.length+1}}if(!d.length){let t=!!c;for(let r=n;r<e.length-c;r++){let n=String(e[r]);if(t=!0,"."===n||".."===n||!this.options.dot&&"."===n.charAt(0))return!1}return r||t}let h=[[[],0]],f=h[0],p=0,b=[0];for(let e of d)e===s?(b.push(p),f=[[],0],h.push(f)):(f[0].push(e),p++);let g=h.length-1,y=e.length-c;for(let e of h)e[1]=y-(b[g--]+e[0].length);return!!this._matchGlobStarBodySections(e,h,n,0,r,0,!!c)}_matchGlobStarBodySections(e,t,r,n,i,s,o){let a=t[n];if(!a){for(let t=r;t<e.length;t++){o=!0;let r=e[t];if("."===r||".."===r||!this.options.dot&&"."===r.charAt(0))return!1}return o}let[l,d]=a;for(;r<=d;){if(this._matchOne(e.slice(0,r+l.length),l,i,r,0)&&s<this.maxGlobstarRecursion){let a=this._matchGlobStarBodySections(e,t,r+l.length,n+1,i,s+1,o);if(!1!==a)return a}let a=e[r];if("."===a||".."===a||!this.options.dot&&"."===a.charAt(0))return!1;r++}return i||null}_matchOne(e,t,r,n,i){let o,a,l,d;for(o=n,a=i,l=e.length,d=t.length;o<l&&a<d;o++,a++){let r;this.debug("matchOne loop");let n=t[a],i=e[o];if(this.debug(t,n,i),!1===n||n===s||("string"==typeof n?(r=i===n,this.debug("string match",n,i,r)):(r=i.match(n),this.debug("pattern match",n,i,r)),!r))return!1}if(o===l&&a===d)return!0;if(o===l)return r;if(a===d)return o===l-1&&""===e[o];throw Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){let r,n,i,o;assertValidPattern(e);let h=this.options;if("**"===e)if(!h.noglobstar)return s;else e="*";if(""===e)return"";let p="",b=!1,g=!1,y=[],w=[],v=!1,S=-1,x=-1,j="."===e.charAt(0),k=h.dot||j,subPatternStart=e=>"."===e.charAt(0)?"":h.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",clearStateChar=()=>{if(r){switch(r){case"*":p+=d,b=!0;break;case"?":p+=l,b=!0;break;default:p+="\\"+r}this.debug("clearStateChar %j %j",r,p),r=!1}};for(let t=0,s;t<e.length&&(s=e.charAt(t));t++){if(this.debug("%s %s %s %j",e,t,p,s),g){if("/"===s)return!1;u[s]&&(p+="\\"),p+=s,g=!1;continue}switch(s){case"/":return!1;case"\\":if(v&&"-"===e.charAt(t+1)){p+=s;continue}clearStateChar(),g=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,t,p,s),v){this.debug(" in class"),"!"===s&&t===x+1&&(s="^"),p+=s;continue}if("*"===s&&"*"===r)continue;this.debug("call clearStateChar %j",r),clearStateChar(),r=s,h.noext&&clearStateChar();continue;case"(":{if(v){p+="(";continue}if(!r){p+="\\(";continue}let n={type:r,start:t-1,reStart:p.length,open:a[r].open,close:a[r].close};this.debug(this.pattern," ",n),y.push(n),p+=n.open,0===n.start&&"!"!==n.type&&(j=!0,p+=subPatternStart(e.slice(t+1))),this.debug("plType %j %j",r,p),r=!1;continue}case")":{let e=y[y.length-1];if(v||!e){p+="\\)";continue}y.pop(),clearStateChar(),b=!0,p+=(i=e).close,"!"===i.type&&w.push(Object.assign(i,{reEnd:p.length}));continue}case"|":{let r=y[y.length-1];if(v||!r){p+="\\|";continue}clearStateChar(),p+="|",0===r.start&&"!"!==r.type&&(j=!0,p+=subPatternStart(e.slice(t+1)));continue}case"[":if(clearStateChar(),v){p+="\\"+s;continue}v=!0,x=t,S=p.length,p+=s;continue;case"]":if(t===x+1||!v){p+="\\"+s;continue}n=e.substring(x+1,t);try{RegExp("["+braExpEscape(charUnescape(n))+"]"),p+=s}catch(e){p=p.substring(0,S)+"(?:$.)"}b=!0,v=!1;continue;default:clearStateChar(),u[s]&&!("^"===s&&v)&&(p+="\\"),p+=s}}for(v&&(n=e.slice(x+1),o=this.parse(n,f),p=p.substring(0,S)+"\\["+o[0],b=b||o[1]),i=y.pop();i;i=y.pop()){let e;e=p.slice(i.reStart+i.open.length),this.debug("setting tail",p,i),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,(e,t,r)=>(r||(r="\\"),t+t+r+"|")),this.debug("tail=%j\n %s",e,e,i,p);let t="*"===i.type?d:"?"===i.type?l:"\\"+i.type;b=!0,p=p.slice(0,i.reStart)+t+"\\("+e}clearStateChar(),g&&(p+="\\\\");let T=c[p.charAt(0)];for(let e=w.length-1;e>-1;e--){let r=w[e],n=p.slice(0,r.reStart),i=p.slice(r.reStart,r.reEnd-8),s=p.slice(r.reEnd),o=p.slice(r.reEnd-8,r.reEnd)+s,a=n.split(")").length,l=n.split("(").length-a,d=s;for(let e=0;e<l;e++)d=d.replace(/\)[+*?]?/,"");let u=""===(s=d)&&t!==f?"(?:$|\\/)":"";p=n+i+s+u+o}if(""!==p&&b&&(p="(?=.)"+p),T&&(p=(j?"":k?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+p),t===f)return[p,b];if(h.nocase&&!b&&(b=e.toUpperCase()!==e.toLowerCase()),!b)return e.replace(/\\(.)/g,"$1");let R=h.nocase?"i":"";try{return Object.assign(RegExp("^"+p+"$",R),{_glob:e,_src:p})}catch(e){return RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?d:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map(e=>((e=e.map(e=>"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===s?s:e._src).reduce((e,t)=>((e[e.length-1]!==s||t!==s)&&e.push(t),e),[])).forEach((t,n)=>{t===s&&e[n-1]!==s&&(0===n?e.length>1?e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]:e[n]=r:n===e.length-1?e[n-1]+="(?:\\/|"+r+")?":(e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1],e[n+1]=s))}),e.filter(e=>e!==s).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp}match(e,t=this.partial){let r;if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let n=this.options;"/"!==i.sep&&(e=e.split(i.sep).join("/")),e=e.split(h),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);for(let t=e.length-1;t>=0&&!(r=e[t]);t--);for(let i=0;i<s.length;i++){let o=s[i],a=e;if(n.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,t)){if(n.flipNegate)return!0;return!this.negate}}return!n.flipNegate&&this.negate}static defaults(e){return n.defaults(e).Minimatch}}n.Minimatch=p},"./node_modules/safe-buffer/index.js"(e,t,r){var n=r("buffer"),i=n.Buffer;function copyProps(e,t){for(var r in e)t[r]=e[r]}function SafeBuffer(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(copyProps(n,t),t.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(i.prototype),copyProps(i,SafeBuffer),SafeBuffer.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},SafeBuffer.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},"./node_modules/streamx/index.js"(e,t,r){let{EventEmitter:n}=r("./node_modules/events-universal/default.js"),i=Error("Stream was destroyed"),s=Error("Premature close"),o=r("./node_modules/fast-fifo/index.js"),a=r("./node_modules/text-decoder/index.js"),l="u"<typeof queueMicrotask?e=>eo.process.nextTick(e):queueMicrotask,d=0x1ffffcff,u=0x1ffdfeff,c=0x200800f,h=17423,f=16527,p=1167,b=12431,g=214047,y=17422,w=32879,v=0x880000f,S=6553615,x=0x1024000f,j=0x8a4000f,k=0x8c0000e,T=0x218000f,R=0x880000e,A=Symbol.asyncIterator||Symbol("asyncIterator");class O{constructor(e,{highWaterMark:t=16384,map:r=null,mapWritable:n,byteLength:i,byteLengthWritable:s}={}){this.stream=e,this.queue=new o,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=s||i||defaultByteLength,this.map=n||r,this.afterWrite=afterWrite.bind(this),this.afterUpdateNextTick=updateWriteNT.bind(this)}get ending(){return(0x8000000&this.stream._duplexState)!=0}get ended(){return(8388608&this.stream._duplexState)!=0}push(e){return(this.stream._duplexState&R)==0&&((null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark)?(this.stream._duplexState|=2097152,!0):(this.stream._duplexState|=6291456,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=0x1fdfffff),e}end(e){"function"==typeof e?this.stream.once("finish",e):null!=e&&this.push(e),this.stream._duplexState=(0x8000000|this.stream._duplexState)&0x1fefffff}autoBatch(e,t){let r=[],n=this.stream;for(r.push(e);(n._duplexState&x)==2359296;)r.push(n._writableState.shift());if((15&n._duplexState)!=0)return t(null);n._writev(r,t)}update(){let e=this.stream;e._duplexState|=524288;do{for(;(e._duplexState&x)==2097152;){let t=this.shift();e._duplexState|=0x4040000,e._write(t,this.afterWrite)}(1310720&e._duplexState)==0&&this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=0x1ff7ffff}updateNonPrimary(){let e=this.stream;if((e._duplexState&j)==0x8000000){e._duplexState=262144|e._duplexState,e._final(afterFinal.bind(this));return}if((14&e._duplexState)==4){(0x2008000&e._duplexState)==0&&(e._duplexState|=262160,e._destroy(afterDestroy.bind(this)));return}(e._duplexState&c)==1&&(e._duplexState=(262160|e._duplexState)&0x1ffffffe,e._open(afterOpen.bind(this)))}continueUpdate(){return(0x2000000&this.stream._duplexState)!=0&&(this.stream._duplexState&=0x1dffffff,!0)}updateCallback(){(this.stream._duplexState&T)==1048576?this.update():this.updateNextTick()}updateNextTick(){(0x2000000&this.stream._duplexState)==0&&(this.stream._duplexState|=0x2000000,(524288&this.stream._duplexState)==0&&l(this.afterUpdateNextTick))}}class C{constructor(e,{highWaterMark:t=16384,map:r=null,mapReadable:n,byteLength:i,byteLengthReadable:s}={}){this.stream=e,this.queue=new o,this.highWaterMark=0===t?1:t,this.buffered=0,this.readAhead=t>0,this.error=null,this.pipeline=null,this.byteLength=s||i||defaultByteLength,this.map=n||r,this.pipeTo=null,this.afterRead=afterRead.bind(this),this.afterUpdateNextTick=updateReadNT.bind(this)}get ending(){return(1024&this.stream._duplexState)!=0}get ended(){return(16384&this.stream._duplexState)!=0}pipe(e,t){if(null!==this.pipeTo)throw Error("Can only pipe to one destination");if("function"!=typeof t&&(t=null),this.stream._duplexState|=512,this.pipeTo=e,this.pipeline=new L(this.stream,e,t),t&&this.stream.on("error",noop),isStreamx(e))e._writableState.pipeline=this.pipeline,t&&e.on("error",noop),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let t=this.pipeline.done.bind(this.pipeline,e),r=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",t),e.on("close",r),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",afterDrain.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let t=this.stream;return null===e?(this.highWaterMark=0,t._duplexState=(1024|t._duplexState)&0x1ffeffbf,!1):null!==this.map&&null===(e=this.map(e))?(t._duplexState&=0x1ffeffff,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),t._duplexState=(128|t._duplexState)&0x1ffeffff,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=0x1fffdf7f),e}unshift(e){let t=[null!==this.map?this.map(e):e];for(;this.buffered>0;)t.push(this.shift());for(let e=0;e<t.length-1;e++){let r=t[e];this.buffered+=this.byteLength(r),this.queue.push(r)}this.push(t[t.length-1])}read(){let e=this.stream;if((e._duplexState&f)==128){let t=this.shift();return null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=d),(2048&e._duplexState)!=0&&e.emit("data",t),t}return!1===this.readAhead&&(e._duplexState|=131072,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&f)==128&&(768&e._duplexState)!=0;){let t=this.shift();null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=d),(2048&e._duplexState)!=0&&e.emit("data",t)}}update(){let e=this.stream;e._duplexState|=32;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&g)==131072;)e._duplexState|=65552,e._read(this.afterRead),this.drain();(e._duplexState&b)==4224&&(e._duplexState|=8192,e.emit("readable")),(80&e._duplexState)==0&&this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=0x1fffffdf}updateNonPrimary(){let e=this.stream;if((e._duplexState&p)==1024&&(e._duplexState=(16384|e._duplexState)&0x1ffffbff,e.emit("end"),(8405006&e._duplexState)==8404992&&(e._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),(14&e._duplexState)==4){(0x2008000&e._duplexState)==0&&(e._duplexState|=262160,e._destroy(afterDestroy.bind(this)));return}(e._duplexState&c)==1&&(e._duplexState=(262160|e._duplexState)&0x1ffffffe,e._open(afterOpen.bind(this)))}continueUpdate(){return(32768&this.stream._duplexState)!=0&&(this.stream._duplexState&=0x1fff7fff,!0)}updateCallback(){(this.stream._duplexState&w)==64?this.update():this.updateNextTick()}updateNextTickIfOpen(){(32769&this.stream._duplexState)==0&&(this.stream._duplexState|=32768,(32&this.stream._duplexState)==0&&l(this.afterUpdateNextTick))}updateNextTick(){(32768&this.stream._duplexState)==0&&(this.stream._duplexState|=32768,(32&this.stream._duplexState)==0&&l(this.afterUpdateNextTick))}}class M{constructor(e){this.data=null,this.afterTransform=afterTransform.bind(e),this.afterFinal=null}}class L{constructor(e,t,r){this.from=e,this.to=t,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,t){if(t&&(this.error=t),e===this.to&&(this.to=null,null!==this.from)){(16384&this.from._duplexState)!=0&&this.pipeToFinished||this.from.destroy(this.error||Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,null!==this.to)){(16384&e._duplexState)==0&&this.to.destroy(this.error||Error("Readable stream closed before ending"));return}null!==this.afterPipe&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}}function afterDrain(){this.stream._duplexState|=512,this.updateCallback()}function afterFinal(e){let t=this.stream;e&&t.destroy(e),(14&t._duplexState)==0&&(t._duplexState|=8388608,t.emit("finish")),(8405006&t._duplexState)==8404992&&(t._duplexState|=4),t._duplexState&=0x17fbffff,(524288&t._duplexState)==0?this.update():this.updateNextTick()}function afterDestroy(e){let t=this.stream;e||this.error===i||(e=this.error),e&&t.emit("error",e),t._duplexState|=8,t.emit("close");let r=t._readableState,n=t._writableState;if(null!==r&&null!==r.pipeline&&r.pipeline.done(t,e),null!==n){for(;null!==n.drains&&n.drains.length>0;)n.drains.shift().resolve(!1);null!==n.pipeline&&n.pipeline.done(t,e)}}function afterWrite(e){let t=this.stream;e&&t.destroy(e),t._duplexState&=0x1bfbffff,null!==this.drains&&tickDrains(this.drains),(t._duplexState&S)==4194304&&(t._duplexState&=0x1fbfffff,(0x1000000&t._duplexState)==0x1000000&&t.emit("drain")),this.updateCallback()}function afterRead(e){e&&this.stream.destroy(e),this.stream._duplexState&=0x1fffffef,!1===this.readAhead&&(256&this.stream._duplexState)==0&&(this.stream._duplexState&=0x1ffdffff),this.updateCallback()}function updateReadNT(){(32&this.stream._duplexState)==0&&(this.stream._duplexState&=0x1fff7fff,this.update())}function updateWriteNT(){(524288&this.stream._duplexState)==0&&(this.stream._duplexState&=0x1dffffff,this.update())}function tickDrains(e){for(let t=0;t<e.length;t++)0==--e[t].writes&&(e.shift().resolve(!0),t--)}function afterOpen(e){let t=this.stream;e&&t.destroy(e),(4&t._duplexState)==0&&((t._duplexState&h)==0&&(t._duplexState|=64),(t._duplexState&v)==0&&(t._duplexState|=1048576),t.emit("open")),t._duplexState&=0x1ffbffef,null!==t._writableState&&t._writableState.updateCallback(),null!==t._readableState&&t._readableState.updateCallback()}function afterTransform(e,t){null!=t&&this.push(t),this._writableState.afterWrite(e)}function newListener(e){null!==this._readableState&&("data"===e&&(this._duplexState|=133376,this._readableState.updateNextTick()),"readable"===e&&(this._duplexState|=4096,this._readableState.updateNextTick())),null!==this._writableState&&"drain"===e&&(this._duplexState|=0x1000000,this._writableState.updateNextTick())}class D extends n{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",abort.bind(this))),this.on("newListener",newListener)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return null!==this._readableState||void 0}get writable(){return null!==this._writableState||void 0}get destroyed(){return(8&this._duplexState)!=0}get destroying(){return(14&this._duplexState)!=0}destroy(e){(14&this._duplexState)==0&&(e||(e=i),this._duplexState=(4|this._duplexState)&0x1fefffbf,null!==this._readableState&&(this._readableState.highWaterMark=0,this._readableState.error=e),null!==this._writableState&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=2,this._predestroy(),this._duplexState&=0x1ffffffd,null!==this._readableState&&this._readableState.updateNextTick(),null!==this._writableState&&this._writableState.updateNextTick())}}class I extends D{constructor(e){super(e),this._duplexState|=8519681,this._readableState=new C(this,e),e&&(!1===this._readableState.readAhead&&(this._duplexState&=0x1ffdffff),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let t=new a(e),r=this._readableState.map||echo;return this._readableState.map=mapOrSkip,this;function mapOrSkip(e){let n=t.push(e);return""===n&&(0!==e.byteLength||t.remaining>0)?null:r(n)}}_read(e){e(null)}pipe(e,t){return this._readableState.updateNextTick(),this._readableState.pipe(e,t),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=131328,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=!1===this._readableState.readAhead?u:0x1ffffeff,this}static _fromAsyncIterator(e,t){let r,n=new I({...t,read(t){e.next().then(push).then(t.bind(null,null)).catch(t)},predestroy(){r=e.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return n;function push(e){e.done?n.push(null):n.push(e.value)}}static from(e,t){if(isReadStreamx(e))return e;if(e[A])return this._fromAsyncIterator(e[A](),t);Array.isArray(e)||(e=void 0===e?[]:[e]);let r=0;return new I({...t,read(t){this.push(r===e.length?null:e[r++]),t(null)}})}static isBackpressured(e){return(e._duplexState&y)!=0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(256&e._duplexState)==0}[A](){let e=this,t=null,r=null,n=null;return this.on("error",e=>{t=e}),this.on("readable",onreadable),this.on("close",onclose),{[A](){return this},next:()=>new Promise(function(t,i){r=t,n=i;let s=e.read();null!==s?ondata(s):(8&e._duplexState)!=0&&ondata(null)}),return:()=>destroy(null),throw:e=>destroy(e)};function onreadable(){null!==r&&ondata(e.read())}function onclose(){null!==r&&ondata(null)}function ondata(s){null!==n&&(t?n(t):null===s&&(16384&e._duplexState)==0?n(i):r({value:s,done:null===s}),n=r=null)}function destroy(t){return e.destroy(t),new Promise((r,n)=>{if(8&e._duplexState)return r({value:void 0,done:!0});e.once("close",function(){t?n(t):r({value:void 0,done:!0})})})}}}class P extends D{constructor(e){super(e),this._duplexState|=16385,this._writableState=new O(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=0x10000000}uncork(){this._duplexState&=0xfffffff,this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&k)!=0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let t=e._writableState,r=(isWritev(e)?Math.min(1,t.queue.length):t.queue.length)+(0x4000000&e._duplexState?1:0);return 0===r?Promise.resolve(!0):(null===t.drains&&(t.drains=[]),new Promise(e=>{t.drains.push({writes:r,resolve:e})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class W extends I{constructor(e){super(e),this._duplexState=1|131072&this._duplexState,this._writableState=new O(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=0x10000000}uncork(){this._duplexState&=0xfffffff,this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class N extends W{constructor(e){super(e),this._transformState=new M(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(null!==this._transformState.data){let t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),null!==this._transformState.data&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(transformAfterFlush.bind(this))}}function transformAfterFlush(e,t){let r=this._transformState.afterFinal;if(e)return r(e);null!=t&&this.push(t),this.push(null),r(null)}function pipelinePromise(...e){return new Promise((t,r)=>pipeline(...e,e=>{if(e)return r(e);t()}))}function pipeline(e,...t){let r=Array.isArray(e)?[...e,...t]:[e,...t],n=r.length&&"function"==typeof r[r.length-1]?r.pop():null;if(r.length<2)throw Error("Pipeline requires at least 2 streams");let i=r[0],o=null,a=null;for(let e=1;e<r.length;e++)o=r[e],isStreamx(i)?i.pipe(o,onerror):(errorHandle(i,!0,e>1,onerror),i.pipe(o)),i=o;if(n){let e=!1,t=isStreamx(o)||!!(o._writableState&&o._writableState.autoDestroy);o.on("error",e=>{null===a&&(a=e)}),o.on("finish",()=>{e=!0,t||n(a)}),t&&o.on("close",()=>n(a||(e?null:s)))}return o;function errorHandle(e,t,r,n){function onclose(){if(t&&e._readableState&&!e._readableState.ended||r&&e._writableState&&!e._writableState.ended)return n(s)}e.on("error",n),e.on("close",onclose)}function onerror(e){if(e&&!a)for(let t of(a=e,r))t.destroy(e)}}function echo(e){return e}function isStream(e){return!!e._readableState||!!e._writableState}function isStreamx(e){return"number"==typeof e._duplexState&&isStream(e)}function isReadStreamx(e){return isStreamx(e)&&e.readable}function isTypedArray(e){return"object"==typeof e&&null!==e&&"number"==typeof e.byteLength}function defaultByteLength(e){return isTypedArray(e)?e.byteLength:1024}function noop(){}function abort(){this.destroy(Error("Stream aborted."))}function isWritev(e){return e._writev!==P.prototype._writev&&e._writev!==W.prototype._writev}e.exports={pipeline,pipelinePromise,isStream,isStreamx,isEnding:function(e){return!!e._readableState&&e._readableState.ending},isEnded:function(e){return!!e._readableState&&e._readableState.ended},isFinishing:function(e){return!!e._writableState&&e._writableState.ending},isFinished:function(e){return!!e._writableState&&e._writableState.ended},isDisturbed:function(e){return(1&e._duplexState)!=1||(4&e._duplexState)==4||(0x2008000&e._duplexState)!=0},getStreamError:function(e,t={}){let r=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return t.all||r!==i?r:null},Stream:D,Writable:P,Readable:I,Duplex:W,Transform:N,PassThrough:class extends N{}}},"./node_modules/string_decoder/lib/string_decoder.js"(e,t,r){var n=r("./node_modules/safe-buffer/index.js").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(e){var t;if(!e)return"utf8";for(;;)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=!0}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function StringDecoder(e){var t;switch(this.encoding=normalizeEncoding(e),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)}function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4: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]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=utf8CheckByte(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=utf8CheckByte(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function utf8CheckExtraBytes(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed,r=utf8CheckExtraBytes(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(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);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":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)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],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;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function base64End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}t.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"./node_modules/tar-stream/constants.js"(e,t,r){let n={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{e.exports=r("fs").constants||n}catch{e.exports=n}},"./node_modules/tar-stream/extract.js"(e,t,r){let{Writable:n,Readable:i,getStreamError:s}=r("./node_modules/streamx/index.js"),o=r("./node_modules/fast-fifo/index.js"),a=r("./node_modules/b4a/index.js"),l=r("./node_modules/tar-stream/headers.js"),d=a.alloc(0);class u{constructor(){this.buffered=0,this.shifted=0,this.queue=new o,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return 0===this.buffered?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(0===e)return d;let t=this._next(e);if(e===t.byteLength)return t;let r=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),r.push(t);return a.concat(r)}_next(e){let t=this.queue.peek(),r=t.byteLength-this._offset;if(e>=r){let e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}}class c extends i{constructor(e,t,r){super(),this.header=t,this.offset=r,this._parent=e}_read(e){0===this.header.size&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(s(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=overflow(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}}class h extends n{constructor(e){super(e),e||(e={}),this._buffer=new u,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=noop,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=l.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.byteOffset=this._buffer.shifted,this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":if(this._longHeader=!0,this._missing=this._header.size,this._missing>4194304)return this._continueWrite(Error("Header exceeds max size")),!1;return!0}return(this._locked=!0,this._applyLongHeaders(),this._header.size>=0)?(0===this._header.size||"directory"===this._header.type?this.emit("entry",this._header,this._createStream(),this._unlockBound):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound)),!0):(this._continueWrite(Error("Invalid header")),!1)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=l.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=l.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=l.decodePax(e);break;case"pax-header":this._pax=null===this._paxGlobal?l.decodePax(e):Object.assign({},this._paxGlobal,l.decodePax(e))}}_consumeLongHeader(){this._longHeader=!1,this._missing=overflow(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(null===e)return!1;this._missing-=e.byteLength;let t=this._stream.push(e);return 0===this._missing?(this._stream.push(null),t&&this._stream._detach(),t&&!1===this._locked):t}_createStream(){return new c(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(null!==this._stream){if(!1===this._consumeStream())return;continue}if(!0===this._longHeader){if(this._missing>this._buffer.buffered)break;if(!1===this._consumeLongHeader())return!1;continue}let e=this._buffer.shiftFirst(this._missing);null!==e&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(null!==this._stream||!1===this._consumeHeader())return}this._continueWrite(null)}_continueWrite(e){let t=this._callback;this._callback=noop,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=0===this._missing&&0===this._buffer.buffered,e(this._finished?null:Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(s(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,r=null,n=null,i=null,s=this;return this.on("entry",onentry),this.on("error",t=>{e=t}),this.on("close",onclose),{[Symbol.asyncIterator](){return this},next:()=>new Promise(onnext),return:()=>destroy(null),throw:e=>destroy(e)};function consumeCallback(e){if(!i)return;let t=i;i=null,t(e)}function onnext(i,o){if(e)return o(e);if(n){i({value:n,done:!1}),n=null;return}t=i,r=o,consumeCallback(null),s._finished&&t&&(t({value:void 0,done:!0}),t=r=null)}function onentry(e,s,o){i=o,s.on("error",noop),t?(t({value:s,done:!1}),t=r=null):n=s}function onclose(){consumeCallback(e),t&&(e?r(e):t({value:void 0,done:!0}),t=r=null)}function destroy(e){return s.destroy(e),consumeCallback(e),new Promise((t,r)=>{if(s.destroyed)return t({value:void 0,done:!0});s.once("close",function(){e?r(e):t({value:void 0,done:!0})})})}}}function noop(){}function overflow(e){return(e&=511)&&512-e}e.exports=function(e){return new h(e)}},"./node_modules/tar-stream/headers.js"(e,t,r){let n=r("./node_modules/b4a/index.js"),i=n.from([117,115,116,97,114,0]),s=n.from([48,48]),o=n.from([117,115,116,97,114,32]),a=n.from([32,0]);function isUSTAR(e){return n.equals(i,e.subarray(257,263))}function isGNU(e){return n.equals(o,e.subarray(257,263))&&n.equals(a,e.subarray(263,265))}function clamp(e,t,r){return"number"!=typeof e?r:(e=~~e)>=t?t:e>=0||(e+=t)>=0?e:0}function toType(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}function toTypeflag(e){switch(e){case"file":break;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}function indexOf(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n}function cksum(e){let t=256;for(let r=0;r<148;r++)t+=e[r];for(let r=156;r<512;r++)t+=e[r];return t}function encodeOct(e,t){return(e=e.toString(8)).length>t?"7777777777777777777".slice(0,t)+" ":"0000000000000000000".slice(0,t-e.length)+e+" "}function encodeSizeBin(e,t,r){t[r]=128;for(let n=11;n>0;n--)t[r+n]=255&e,e=Math.floor(e/256)}function encodeSize(e,t,r){e.toString(8).length>11?encodeSizeBin(e,t,r):n.write(t,encodeOct(e,11),r)}function parse256(e){let t,r;if(128===e[0])t=!0;else{if(255!==e[0])return null;t=!1}let n=[];for(r=e.length-1;r>0;r--){let i=e[r];t?n.push(i):n.push(255-i)}let i=0,s=n.length;for(r=0;r<s;r++)i+=n[r]*Math.pow(256,r);return t?i:-1*i}function decodeOct(e,t,r){if(128&(e=e.subarray(t,t+r))[t=0])return parse256(e);{for(;t<e.length&&32===e[t];)t++;let r=clamp(indexOf(e,32,t,e.length),e.length,e.length);for(;t<r&&0===e[t];)t++;return r===t?0:parseInt(n.toString(e.subarray(t,r)),8)}}function decodeStr(e,t,r,i){return n.toString(e.subarray(t,indexOf(e,0,t,t+r)),i)}function addLength(e){let t=n.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e}t.decodeLongPath=function(e,t){return decodeStr(e,0,e.length,t)},t.encodePax=function(e){let t="";e.name&&(t+=addLength(" path="+e.name+"\n")),e.linkname&&(t+=addLength(" linkpath="+e.linkname+"\n"));let r=e.pax;if(r)for(let e in r)t+=addLength(" "+e+"="+r[e]+"\n");return n.from(t)},t.decodePax=function(e){let t={};for(;e.length;){let r=0;for(;r<e.length&&32!==e[r];)r++;let i=parseInt(n.toString(e.subarray(0,r)),10);if(!i)break;let s=n.toString(e.subarray(r+1,i-1)),o=s.indexOf("=");if(-1===o)break;t[s.slice(0,o)]=s.slice(o+1),e=e.subarray(i)}return t},t.encode=function(e){let t=n.alloc(512),r=e.name,o="";if(5===e.typeflag&&"/"!==r[r.length-1]&&(r+="/"),n.byteLength(r)!==r.length)return null;for(;n.byteLength(r)>100;){let e=r.indexOf("/");if(-1===e)return null;o+=o?"/"+r.slice(0,e):r.slice(0,e),r=r.slice(e+1)}return n.byteLength(r)>100||n.byteLength(o)>155||e.linkname&&n.byteLength(e.linkname)>100?null:(n.write(t,r),n.write(t,encodeOct(4095&e.mode,6),100),n.write(t,encodeOct(e.uid,6),108),n.write(t,encodeOct(e.gid,6),116),encodeSize(e.size,t,124),n.write(t,encodeOct(e.mtime.getTime()/1e3|0,11),136),t[156]=48+toTypeflag(e.type),e.linkname&&n.write(t,e.linkname,157),n.copy(i,t,257),n.copy(s,t,263),e.uname&&n.write(t,e.uname,265),e.gname&&n.write(t,e.gname,297),n.write(t,encodeOct(e.devmajor||0,6),329),n.write(t,encodeOct(e.devminor||0,6),337),o&&n.write(t,o,345),n.write(t,encodeOct(cksum(t),6),148),t)},t.decode=function(e,t,r){let n=0===e[156]?0:e[156]-48,i=decodeStr(e,0,100,t),s=decodeOct(e,100,8),o=decodeOct(e,108,8),a=decodeOct(e,116,8),l=decodeOct(e,124,12),d=decodeOct(e,136,12),u=toType(n),c=0===e[157]?null:decodeStr(e,157,100,t),h=decodeStr(e,265,32),f=decodeStr(e,297,32),p=decodeOct(e,329,8),b=decodeOct(e,337,8),g=cksum(e);if(256===g)return null;if(g!==decodeOct(e,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(e))e[345]&&(i=decodeStr(e,345,155,t)+"/"+i);else if(isGNU(e));else if(!r)throw Error("Invalid tar header: unknown format.");return 0===n&&i&&"/"===i[i.length-1]&&(n=5),{name:i,mode:s,uid:o,gid:a,size:l,byteOffset:0,mtime:new Date(1e3*d),type:u,linkname:c,uname:h,gname:f,devmajor:p,devminor:b,pax:null}}},"./node_modules/tar-stream/index.js"(e,t,r){t.extract=r("./node_modules/tar-stream/extract.js"),t.pack=r("./node_modules/tar-stream/pack.js")},"./node_modules/tar-stream/pack.js"(e,t,r){let{Readable:n,Writable:i,getStreamError:s}=r("./node_modules/streamx/index.js"),o=r("./node_modules/b4a/index.js"),a=r("./node_modules/tar-stream/constants.js"),l=r("./node_modules/tar-stream/headers.js"),d=o.alloc(1024);class u extends i{constructor(e,t,r){super({mapWritable,eagerOpen:!0}),this.written=0,this.header=t,this._callback=r,this._linkname=null,this._isLinkname="symlink"===t.type&&!t.linkname,this._isVoid="file"!==t.type&&"contiguous-file"!==t.type,this._finished=!1,this._pack=e,this._openCallback=null,null===this._pack._stream?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(null===this._callback)return;let t=this._callback;this._callback=null,t(e)}_continueOpen(){null===this._pack._stream&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,null!==e){if(this._pack.destroying)return e(Error("pack stream destroyed"));if(this._pack._finalized)return e(Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){return this._isLinkname?(this._linkname=this._linkname?o.concat([this._linkname,e]):e,t(null)):this._isVoid?e.byteLength>0?t(Error("No body allowed for this entry")):t():(this.written+=e.byteLength,this._pack.push(e))?t():void(this._pack._drain=t)}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?o.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),overflow(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(Error("Size mismatch"));this._finish(),e(null)}_getError(){return s(this)||Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}}class c extends n{constructor(e){super(e),this._drain=noop,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,r){if(this._finalized||this.destroying)throw Error("already finalized or destroyed");"function"==typeof t&&(r=t,t=null),r||(r=noop),e.size&&"symlink"!==e.type||(e.size=0),e.type||(e.type=modeToType(e.mode)),e.mode||(e.mode="directory"===e.type?493:420),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),"string"==typeof t&&(t=o.from(t));let n=new u(this,e,r);return o.isBuffer(t)?(e.size=t.byteLength,n.write(t),n.end()):n._isVoid,n}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(d),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let t=l.encode(e);if(t)return void this.push(t)}this._encodePax(e)}_encodePax(e){let t=l.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(l.encode(r)),this.push(t),overflow(this,t.byteLength),r.size=e.size,r.type=e.type,this.push(l.encode(r))}_doDrain(){let e=this._drain;this._drain=noop,e()}_predestroy(){let e=s(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}}function modeToType(e){switch(e&a.S_IFMT){case a.S_IFBLK:return"block-device";case a.S_IFCHR:return"character-device";case a.S_IFDIR:return"directory";case a.S_IFIFO:return"fifo";case a.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(e,t){(t&=511)&&e.push(d.subarray(0,512-t))}function mapWritable(e){return o.isBuffer(e)?e:o.from(e)}e.exports=function(e){return new c(e)}},"./node_modules/text-decoder/index.js"(e,t,r){let n=r("./node_modules/text-decoder/lib/pass-through-decoder.js"),i=r("./node_modules/text-decoder/lib/utf8-decoder.js");function normalizeEncoding(e){switch(e=e.toLowerCase()){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:throw Error("Unknown encoding: "+e)}}e.exports=class{constructor(e="utf8"){switch(this.encoding=normalizeEncoding(e),this.encoding){case"utf8":this.decoder=new i;break;case"utf16le":case"base64":throw Error("Unsupported encoding: "+this.encoding);default:this.decoder=new n(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return"string"==typeof e?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let t="";return e&&(t=this.push(e)),t+=this.decoder.flush()}}},"./node_modules/text-decoder/lib/pass-through-decoder.js"(e,t,r){let n=r("./node_modules/b4a/index.js");e.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return n.toString(e,this.encoding)}flush(){return""}}},"./node_modules/text-decoder/lib/utf8-decoder.js"(e,t,r){let n=r("./node_modules/b4a/index.js");function trailingIncomplete(e,t){let r,n=e.byteLength;if(n<=t)return 0;let i=Math.max(t,n-4),s=n-1;for(;s>i&&(192&e[s])==128;)s--;if(s<t)return 0;let o=e[s];if(o<=127)return 0;if(o>=194&&o<=223)r=2;else if(o>=224&&o<=239)r=3;else{if(!(o>=240)||!(o<=244))return 0;r=4}let a=n-s;return a<r?a:0}function trailingBytesSeen(e){let t,r=e.byteLength;if(0===r)return 0;let n=e[r-1];if(n<=127)return 0;if((192&n)!=128)return 1;let i=Math.max(0,r-4),s=r-2;for(;s>=i&&(192&e[s])==128;)s--;if(s<0)return 1;let o=e[s];if(o>=194&&o<=223)t=2;else if(o>=224&&o<=239)t=3;else{if(!(o>=240)||!(o<=244))return 1;t=4}if(r-s!==t)return 1;if(t>=3){let t=e[s+1];if(224===o&&t<160||237===o&&t>159||240===o&&t<144||244===o&&t>143)return 1}return 0}e.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(0===e.byteLength)return"";if(0===this.bytesNeeded&&0===trailingIncomplete(e,0))return this.bytesSeen=trailingBytesSeen(e),n.toString(e,"utf8");let t="",r=0;if(this.bytesNeeded>0){for(;r<e.byteLength;){let n=e[r];if(n<this.lowerBoundary||n>this.upperBoundary){t+="�",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|63&n,this.bytesSeen++,r++,this.bytesSeen===this.bytesNeeded){t+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return t}let i=trailingIncomplete(e,r),s=e.byteLength-i;s>r&&(t+=n.toString(e,"utf8",r,s));for(let r=s;r<e.byteLength;r++){let n=e[r];if(0===this.bytesNeeded){n<=127?(this.bytesSeen=0,t+=String.fromCharCode(n)):n>=194&&n<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=31&n):n>=224&&n<=239?(224===n?this.lowerBoundary=160:237===n&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=15&n):n>=240&&n<=244?(240===n?this.lowerBoundary=144:244===n&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=7&n):(this.bytesSeen=1,t+="�");continue}if(n<this.lowerBoundary||n>this.upperBoundary){t+="�",r--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|63&n,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(t+=String.fromCodePoint(this.codePoint),this._reset())}return t}flush(){let e=this.bytesNeeded>0?"�":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}}},"./node_modules/util-deprecate/node.js"(e,t,r){e.exports=r("util").deprecate},"./node_modules/zip-stream/index.js"(e,t,r){var n=r("util").inherits,i=r("./node_modules/compress-commons/lib/compress-commons.js").ZipArchiveOutputStream,s=r("./node_modules/compress-commons/lib/compress-commons.js").ZipArchiveEntry,o=r("./node_modules/archiver-utils/index.js"),a=e.exports=function(e){if(!(this instanceof a))return new a(e);(e=this.options=e||{}).zlib=e.zlib||{},i.call(this,e),"number"==typeof e.level&&e.level>=0&&(e.zlib.level=e.level,delete e.level),e.forceZip64||"number"!=typeof e.zlib.level||0!==e.zlib.level||(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};n(a,i),a.prototype._normalizeFileData=function(e){var t="directory"===(e=o.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""})).type,r="symlink"===e.type;return e.name&&(e.name=o.sanitizePath(e.name),r||"/"!==e.name.slice(-1)?t&&(e.name+="/"):(t=!0,e.type="directory")),(t||r)&&(e.store=!0),e.date=o.dateify(e.date),e},a.prototype.entry=function(e,t,r){if("function"!=typeof r&&(r=this._emitErrorCallback.bind(this)),"file"!==(t=this._normalizeFileData(t)).type&&"directory"!==t.type&&"symlink"!==t.type)return void r(Error(t.type+" entries not currently supported"));if("string"!=typeof t.name||0===t.name.length)return void r(Error("entry name must be a non-empty string value"));if("symlink"===t.type&&"string"!=typeof t.linkname)return void r(Error("entry linkname must be a non-empty string value when type equals symlink"));var n=new s(t.name);return n.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&n.setName(t.name,!0),t.store&&n.setMethod(0),t.comment.length>0&&n.setComment(t.comment),"symlink"===t.type&&"number"!=typeof t.mode&&(t.mode=40960),"number"==typeof t.mode&&("symlink"===t.type&&(t.mode|=40960),n.setUnixMode(t.mode)),"symlink"===t.type&&"string"==typeof t.linkname&&(e=Buffer.from(t.linkname)),i.prototype.entry.call(this,n,e,r)},a.prototype.finalize=function(){this.finish()}},assert(e){e.exports=i},constants(e){e.exports=s},"node:child_process"(e){e.exports=o},"node:events"(e){e.exports=a},"node:process"(e){e.exports=l},"node:string_decoder"(e){e.exports=d},"node:url"(e){e.exports=u},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Glob=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"),i=r("node:url"),s=r("./node_modules/path-scurry/dist/commonjs/index.js"),o=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js"),a=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/walker.js"),l="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class d{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,i.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=!1!==t.includeChildMatches,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&void 0!==this.absolute)throw Error("cannot set absolute and withFileTypes:true");if("string"==typeof e&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(e=e.map(e=>e.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw TypeError("base matching requires globstar");e=e.map(e=>e.includes("/")?e:`./**/${e}`)}if(this.pattern=e,this.platform=t.platform||l,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,void 0!==t.nocase&&t.nocase!==t.scurry.nocase)throw Error("nocase option contradicts provided scurry option")}else{let e="win32"===t.platform?s.PathScurryWin32:"darwin"===t.platform?s.PathScurryDarwin:t.platform?s.PathScurryPosix:s.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let r="darwin"===this.platform||"win32"===this.platform,a={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},[d,u]=this.pattern.map(e=>new n.Minimatch(e,a)).reduce((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e),[[],[]]);this.patterns=d.map((e,t)=>{let r=u[t];if(!r)throw Error("invalid pattern object");return new o.Pattern(e,r,0,this.platform)})}async walk(){return[...await new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new a.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new a.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=d},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.hasMagic=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js");t.hasMagic=(e,t={})=>{for(let r of(Array.isArray(e)||(e=[e]),e))if(new n.Minimatch(r,t).hasMagic())return!0;return!1}},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Ignore=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"),i=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js"),s="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";t.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:n,noglobstar:i,platform:o=s}){for(let s of(this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:r,noext:n,noglobstar:i,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0},e))this.add(s)}add(e){let t=new n.Minimatch(e,this.mmopts);for(let e=0;e<t.set.length;e++){let r=t.set[e],s=t.globParts[e];if(!r||!s)throw Error("invalid pattern object");for(;"."===r[0]&&"."===s[0];)r.shift(),s.shift();let o=new i.Pattern(r,s,0,this.platform),a=new n.Minimatch(o.globString(),this.mmopts),l="**"===s[s.length-1],d=o.isAbsolute();d?this.absolute.push(a):this.relative.push(a),l&&(d?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let t=e.fullpath(),r=`${t}/`,n=e.relative()||".",i=`${n}/`;for(let e of this.relative)if(e.match(n)||e.match(i))return!0;for(let e of this.absolute)if(e.match(t)||e.match(r))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let e of this.relativeChildren)if(e.match(r))return!0;for(let e of this.absoluteChildren)if(e.match(t))return!0;return!1}}},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/index.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.glob=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.Ignore=t.hasMagic=t.Glob=t.unescape=t.escape=void 0,t.globStreamSync=globStreamSync,t.globStream=globStream,t.globSync=globSync,t.globIterateSync=globIterateSync,t.globIterate=globIterate;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"),i=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js"),s=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js");var o=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js");Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return o.unescape}});var a=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/glob.js");Object.defineProperty(t,"Glob",{enumerable:!0,get:function(){return a.Glob}});var l=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/has-magic.js");Object.defineProperty(t,"hasMagic",{enumerable:!0,get:function(){return l.hasMagic}});var d=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js");function globStreamSync(e,t={}){return new i.Glob(e,t).streamSync()}function globStream(e,t={}){return new i.Glob(e,t).stream()}function globSync(e,t={}){return new i.Glob(e,t).walkSync()}async function glob_(e,t={}){return new i.Glob(e,t).walk()}function globIterateSync(e,t={}){return new i.Glob(e,t).iterateSync()}function globIterate(e,t={}){return new i.Glob(e,t).iterate()}Object.defineProperty(t,"Ignore",{enumerable:!0,get:function(){return d.Ignore}}),t.streamSync=globStreamSync,t.stream=Object.assign(globStream,{sync:globStreamSync}),t.iterateSync=globIterateSync,t.iterate=Object.assign(globIterate,{sync:globIterateSync}),t.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync}),t.glob=Object.assign(glob_,{glob:glob_,globSync,sync:t.sync,globStream,stream:t.stream,globStreamSync,streamSync:t.streamSync,globIterate,iterate:t.iterate,globIterateSync,iterateSync:t.iterateSync,Glob:i.Glob,hasMagic:s.hasMagic,escape:n.escape,unescape:n.unescape}),t.glob.glob=t.glob},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/pattern.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js");class i{#e;#t;#r;length;#n;#i;#s;#o;#a;#l;#d=!0;constructor(e,t,r,n){if(!(e.length>=1))throw TypeError("empty pattern list");if(!(t.length>=1))throw TypeError("empty glob list");if(t.length!==e.length)throw TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw TypeError("index out of range");if(this.#e=e,this.#t=t,this.#r=r,this.#n=n,0===this.#r){if(this.isUNC()){let[e,t,r,n,...i]=this.#e,[s,o,a,l,...d]=this.#t;""===i[0]&&(i.shift(),d.shift());let u=[e,t,r,n,""].join("/"),c=[s,o,a,l,""].join("/");this.#e=[u,...i],this.#t=[c,...d],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[e,...t]=this.#e,[r,...n]=this.#t;""===t[0]&&(t.shift(),n.shift()),this.#e=[e+"/",...t],this.#t=[r+"/",...n],this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return"string"==typeof this.#e[this.#r]}isGlobstar(){return this.#e[this.#r]===n.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#s=this.#s||(0===this.#r?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return void 0!==this.#i?this.#i:this.hasMore()?(this.#i=new i(this.#e,this.#t,this.#r+1,this.#n),this.#i.#l=this.#l,this.#i.#a=this.#a,this.#i.#o=this.#o,this.#i):this.#i=null}isUNC(){let e=this.#e;return void 0!==this.#a?this.#a:this.#a="win32"===this.#n&&0===this.#r&&""===e[0]&&""===e[1]&&"string"==typeof e[2]&&!!e[2]&&"string"==typeof e[3]&&!!e[3]}isDrive(){let e=this.#e;return void 0!==this.#o?this.#o:this.#o="win32"===this.#n&&0===this.#r&&this.length>1&&"string"==typeof e[0]&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return void 0!==this.#l?this.#l:this.#l=""===e[0]&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return"string"==typeof e&&this.isAbsolute()&&0===this.#r?e:""}checkFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#d)}markFollowGlobstar(){return 0!==this.#r&&!!this.isGlobstar()&&!!this.#d&&(this.#d=!1,!0)}}t.Pattern=i},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/processor.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;let n=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js");class i{store;constructor(e=new Map){this.store=e}copy(){return new i(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let r=e.fullpath(),n=this.store.get(r);n?n.add(t.globString()):this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=i;class s{store=new Map;add(e,t,r){let n=2*!!t|!!r,i=this.store.get(e);this.store.set(e,void 0===i?n:n&i)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(2&t),!!(1&t)])}}t.MatchRecord=s;class o{store=new Map;add(e,t){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(e=>e.globString()===t.globString())||r.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}}t.SubWalks=o;class a{hasWalkedCache;matches=new s;subwalks=new o;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new i}processPatterns(e,t){for(let[r,i]of(this.patterns=t,t.map(t=>[e,t]))){let e,t;this.hasWalkedCache.storeWalked(r,i);let s=i.root(),o=i.isAbsolute()&&!1!==this.opts.absolute;if(s){r=r.resolve("/"===s&&void 0!==this.opts.root?this.opts.root:s);let e=i.rest();if(e)i=e;else{this.matches.add(r,!0,!1);continue}}if(r.isENOENT())continue;let a=!1;for(;"string"==typeof(e=i.pattern())&&(t=i.rest());)r=r.resolve(e),i=t,a=!0;if(e=i.pattern(),t=i.rest(),a){if(this.hasWalkedCache.hasWalked(r,i))continue;this.hasWalkedCache.storeWalked(r,i)}if("string"==typeof e){let t=".."===e||""===e||"."===e;this.matches.add(r.resolve(e),o,t);continue}if(e===n.GLOBSTAR){(!r.isSymbolicLink()||this.follow||i.checkFollowGlobstar())&&this.subwalks.add(r,i);let e=t?.pattern(),n=t?.rest();if(t&&(""!==e&&"."!==e||n)){if(".."===e){let e=r.parent||r;n?this.hasWalkedCache.hasWalked(e,n)||this.subwalks.add(e,n):this.matches.add(e,o,!0)}}else this.matches.add(r,o,""===e||"."===e)}else e instanceof RegExp&&this.subwalks.add(r,i)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new a(this.opts,this.hasWalkedCache)}filterEntries(e,t){let r=this.subwalks.get(e),i=this.child();for(let e of t)for(let t of r){let r=t.isAbsolute(),s=t.pattern(),o=t.rest();s===n.GLOBSTAR?i.testGlobstar(e,t,o,r):s instanceof RegExp?i.testRegExp(e,s,o,r):i.testString(e,s,o,r)}return i}testGlobstar(e,t,r,n){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){let t=r.pattern();if("string"==typeof t&&".."!==t&&""!==t&&"."!==t)this.testString(e,t,r.rest(),n);else if(".."===t){let t=e.parent||e;this.subwalks.add(t,r)}else t instanceof RegExp&&this.testRegExp(e,t,r.rest(),n)}}testRegExp(e,t,r,n){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}testString(e,t,r,n){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}}t.Processor=a},"./node_modules/archiver-utils/node_modules/glob/dist/commonjs/walker.js"(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;let n=r("./node_modules/minipass/dist/commonjs/index.js"),i=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/ignore.js"),s=r("./node_modules/archiver-utils/node_modules/glob/dist/commonjs/processor.js");class o{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#u=[];#c;#h;signal;maxDepth;includeChildMatches;constructor(e,t,r){if(this.patterns=e,this.path=t,this.opts=r,this.#h=r.posix||"win32"!==r.platform?"/":"\\",this.includeChildMatches=!1!==r.includeChildMatches,r.ignore||!this.includeChildMatches){let e;if(this.#c=(e=r.ignore??[],"string"==typeof e?new i.Ignore([e],r):Array.isArray(e)?new i.Ignore(e,r):e),!this.includeChildMatches&&"function"!=typeof this.#c.add)throw Error("cannot ignore child matches, ignore lacks add() method.")}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#u.length=0}))}#f(e){return this.seen.has(e)||!!this.#c?.ignored?.(e)}#p(e){return!!this.#c?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){let e;if(!this.signal?.aborted)for(this.paused=!1;!this.paused&&(e=this.#u.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#u.push(e):e())}async matchCheck(e,t){let r;if(t&&this.opts.nodir)return;if(this.opts.realpath){if(!(r=e.realpathCached()||await e.realpath()))return;e=r}let n=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let e=await n.realpath();e&&(e.isUnknown()||this.opts.stat)&&await e.lstat()}return this.matchCheckTest(n,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#f(e)?e:void 0}matchCheckSync(e,t){let r;if(t&&this.opts.nodir)return;if(this.opts.realpath){if(!(r=e.realpathCached()||e.realpathSync()))return;e=r}let n=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let e=n.realpathSync();e&&(e?.isUnknown()||this.opts.stat)&&e.lstatSync()}return this.matchCheckTest(n,t)}matchFinish(e,t){if(this.#f(e))return;if(!this.includeChildMatches&&this.#c?.add){let t=`${e.relativePosix()}/**`;this.#c.add(t)}let r=void 0===this.opts.absolute?t:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#h:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+n)}else{let t=this.opts.posix?e.relativePosix():e.relative(),r=this.opts.dotRelative&&!t.startsWith(".."+this.#h)?"."+this.#h:"";this.matchEmit(t?r+t+n:"."+n)}}async match(e,t,r){let n=await this.matchCheck(e,r);n&&this.matchFinish(n,t)}matchSync(e,t,r){let n=this.matchCheckSync(e,r);n&&this.matchFinish(n,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new s.Processor(this.opts),r)}walkCB2(e,t,r,n){if(this.#p(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume(()=>this.walkCB2(e,t,r,n));r.processPatterns(e,t);let i=1,next=()=>{0==--i&&n()};for(let[e,t,n]of r.matches.entries())this.#f(e)||(i++,this.match(e,t,n).then(()=>next()));for(let e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;let t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,r,next):e.readdirCB((t,n)=>this.walkCB3(e,n,r,next),!0)}next()}walkCB3(e,t,r,n){r=r.filterEntries(e,t);let i=1,next=()=>{0==--i&&n()};for(let[e,t,n]of r.matches.entries())this.#f(e)||(i++,this.match(e,t,n).then(()=>next()));for(let[e,t]of r.subwalks.entries())i++,this.walkCB2(e,t,r.child(),next);next()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new s.Processor(this.opts),r)}walkCB2Sync(e,t,r,n){if(this.#p(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume(()=>this.walkCB2Sync(e,t,r,n));r.processPatterns(e,t);let i=1,next=()=>{0==--i&&n()};for(let[e,t,n]of r.matches.entries())this.#f(e)||this.matchSync(e,t,n);for(let e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;let t=e.readdirSync();this.walkCB3Sync(e,t,r,next)}next()}walkCB3Sync(e,t,r,n){r=r.filterEntries(e,t);let i=1,next=()=>{0==--i&&n()};for(let[e,t,n]of r.matches.entries())this.#f(e)||this.matchSync(e,t,n);for(let[e,t]of r.subwalks.entries())i++,this.walkCB2Sync(e,t,r.child(),next);next()}}t.GlobUtil=o;class a extends o{matches=new Set;constructor(e,t,r){super(e,t,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}t.GlobWalker=a,t.GlobStream=class extends o{results;constructor(e,t,r){super(e,t,r),this.results=new n.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0,t.assertValidPattern=e=>{if("string"!=typeof e)throw TypeError("invalid pattern");if(e.length>65536)throw TypeError("pattern is too long")}},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js"(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AST=void 0;let i=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/brace-expressions.js"),s=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js"),o=new Set(["!","?","+","*","@"]),isExtglobType=e=>o.has(e),a=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),l=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),d=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),u=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),c="(?!\\.)",h=new Set(["[","."]),f=new Set(["..","."]),p=new Set("().*{}+?[]^$\\!"),regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),b="[^/]",g=b+"*?",y=b+"+?";class w{type;#m;#b;#_=!1;#g=[];#y;#w;#v;#S=!1;#x;#E;#j=!1;constructor(e,t,r={}){this.type=e,e&&(this.#b=!0),this.#y=t,this.#m=this.#y?this.#y.#m:this,this.#x=this.#m===this?r:this.#m.#x,this.#v=this.#m===this?[]:this.#m.#v,"!"!==e||this.#m.#S||this.#v.push(this),this.#w=this.#y?this.#y.#g.length:0}get hasMagic(){if(void 0!==this.#b)return this.#b;for(let e of this.#g)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#b=!0;return this.#b}toString(){return void 0!==this.#E?this.#E:this.type?this.#E=this.type+"("+this.#g.map(e=>String(e)).join("|")+")":this.#E=this.#g.map(e=>String(e)).join("")}#k(){let e;if(this!==this.#m)throw Error("should only call on root");if(this.#S)return this;for(this.toString(),this.#S=!0;e=this.#v.pop();){if("!"!==e.type)continue;let t=e,r=t.#y;for(;r;){for(let n=t.#w+1;!r.type&&n<r.#g.length;n++)for(let t of e.#g){if("string"==typeof t)throw Error("string part in extglob AST??");t.copyIn(r.#g[n])}r=(t=r).#y}}return this}push(...e){for(let t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof n&&t.#y===this))throw Error("invalid part: "+t);this.#g.push(t)}}toJSON(){let e=null===this.type?this.#g.slice().map(e=>"string"==typeof e?e:e.toJSON()):[this.type,...this.#g.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#m||this.#m.#S&&this.#y?.type==="!")&&e.push({}),e}isStart(){if(this.#m===this)return!0;if(!this.#y?.isStart())return!1;if(0===this.#w)return!0;let e=this.#y;for(let t=0;t<this.#w;t++){let r=e.#g[t];if(!(r instanceof n&&"!"===r.type))return!1}return!0}isEnd(){if(this.#m===this||this.#y?.type==="!")return!0;if(!this.#y?.isEnd())return!1;if(!this.type)return this.#y?.isEnd();let e=this.#y?this.#y.#g.length:0;return this.#w===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){let t=new n(this.type,e);for(let e of this.#g)t.copyIn(e);return t}static #T(e,t,r,i,s){let o=i.maxExtglobRecursion??2,a=!1,l=!1,d=-1,u=!1;if(null===t.type){let c=r,h="";for(;c<e.length;){let r=e.charAt(c++);if(a||"\\"===r){a=!a,h+=r;continue}if(l){c===d+1?("^"===r||"!"===r)&&(u=!0):"]"!==r||c===d+2&&u||(l=!1),h+=r;continue}if("["===r){l=!0,d=c,u=!1,h+=r;continue}if(!i.noext&&isExtglobType(r)&&"("===e.charAt(c)&&s<=o){t.push(h),h="";let o=new n(r,t);c=n.#T(e,o,c,i,s+1),t.push(o);continue}h+=r}return t.push(h),c}let c=r+1,h=new n(null,t),f=[],p="";for(;c<e.length;){let r=e.charAt(c++);if(a||"\\"===r){a=!a,p+=r;continue}if(l){c===d+1?("^"===r||"!"===r)&&(u=!0):"]"!==r||c===d+2&&u||(l=!1),p+=r;continue}if("["===r){l=!0,d=c,u=!1,p+=r;continue}if(isExtglobType(r)&&"("===e.charAt(c)&&(s<=o||t&&t.#R(r))){let o=t&&t.#R(r)?0:1;h.push(p),p="";let a=new n(r,h);h.push(a),c=n.#T(e,a,c,i,s+o);continue}if("|"===r){h.push(p),p="",f.push(h),h=new n(null,t);continue}if(")"===r)return""===p&&0===t.#g.length&&(t.#j=!0),h.push(p),p="",t.push(...f,h),c;p+=r}return t.type=null,t.#b=void 0,t.#g=[e.substring(r-1)],c}#A(e){return this.#O(e,l)}#O(e,t=a){if(!e||"object"!=typeof e||null!==e.type||1!==e.#g.length||null===this.type)return!1;let r=e.#g[0];return!!r&&"object"==typeof r&&null!==r.type&&this.#R(r.type,t)}#R(e,t=d){return!!t.get(this.type)?.includes(e)}#C(e,t){let r=e.#g[0],i=new n(null,r,this.options);i.#g.push(""),r.push(i),this.#M(e,t)}#M(e,t){let r=e.#g[0];for(let e of(this.#g.splice(t,1,...r.#g),r.#g))"object"==typeof e&&(e.#y=this);this.#E=void 0}#L(e){let t=u.get(this.type);return!!t?.has(e)}#D(e){if(!e||"object"!=typeof e||null!==e.type||1!==e.#g.length||null===this.type||1!==this.#g.length)return!1;let t=e.#g[0];return!!t&&"object"==typeof t&&null!==t.type&&this.#L(t.type)}#I(e){let t=u.get(this.type),r=e.#g[0],n=t?.get(r.type);if(!n)return!1;for(let e of(this.#g=r.#g,this.#g))"object"==typeof e&&(e.#y=this);this.type=n,this.#E=void 0,this.#j=!1}#P(){if(isExtglobType(this.type)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#g.length;e++){let r=this.#g[e];"object"==typeof r&&(r.#P(),this.#O(r)?(t=!1,this.#M(r,e)):this.#A(r)?(t=!1,this.#C(r,e)):this.#D(r)&&(t=!1,this.#I(r)))}}while(!t&&++e<10)}else for(let e of this.#g)"object"==typeof e&&e.#P();this.#E=void 0}static fromGlob(e,t={}){let r=new n(null,void 0,t);return n.#T(e,r,0,t,0),r}toMMPattern(){if(this!==this.#m)return this.#m.toMMPattern();let e=this.toString(),[t,r,n,i]=this.toRegExpSource();return n||this.#b||this.#x.nocase&&!this.#x.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()?Object.assign(RegExp(`^${t}$`,(this.#x.nocase?"i":"")+(i?"u":"")),{_src:t,_glob:e}):r}get options(){return this.#x}toRegExpSource(e){let t=e??!!this.#x.dot;if(this.#m===this&&(this.#P(),this.#k()),!isExtglobType(this.type)){let r=this.isStart()&&this.isEnd(),i=this.#g.map(t=>{let[i,s,o,a]="string"==typeof t?n.#W(t,this.#b,r):t.toRegExpSource(e);return this.#b=this.#b||o,this.#_=this.#_||a,i}).join(""),o="";if(this.isStart()&&"string"==typeof this.#g[0]&&!(1===this.#g.length&&f.has(this.#g[0]))){let r=t&&h.has(i.charAt(0))||i.startsWith("\\.")&&h.has(i.charAt(2))||i.startsWith("\\.\\.")&&h.has(i.charAt(4)),n=!t&&!e&&h.has(i.charAt(0));o=r?"(?!(?:^|/)\\.\\.?(?:$|/))":n?c:""}let a="";return this.isEnd()&&this.#m.#S&&this.#y?.type==="!"&&(a="(?:$|\\/)"),[o+i+a,(0,s.unescape)(i),this.#b=!!this.#b,this.#_]}let r="*"===this.type||"+"===this.type,i="!"===this.type?"(?:(?!(?:":"(?:",o=this.#N(t);if(this.isStart()&&this.isEnd()&&!o&&"!"!==this.type){let e=this.toString();return this.#g=[e],this.type=null,this.#b=void 0,[e,(0,s.unescape)(this.toString()),!1,!1]}let a=!r||e||t||!c?"":this.#N(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);return["!"===this.type&&this.#j?(this.isStart()&&!t?c:"")+y:i+o+("!"===this.type?"))"+(!this.isStart()||t||e?"":c)+g+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&a?")":"*"===this.type&&a?")?":`)${this.type}`),(0,s.unescape)(o),this.#b=!!this.#b,this.#_]}#N(e){return this.#g.map(t=>{if("string"==typeof t)throw Error("string type in extglob ast??");let[r,n,i,s]=t.toRegExpSource(e);return this.#_=this.#_||s,r}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static #W(e,t,r=!1){let n=!1,o="",a=!1,l=!1;for(let s=0;s<e.length;s++){let d=e.charAt(s);if(n){n=!1,o+=(p.has(d)?"\\":"")+d,l=!1;continue}if("\\"===d){s===e.length-1?o+="\\\\":n=!0;continue}if("["===d){let[r,n,d,u]=(0,i.parseClass)(e,s);if(d){o+=r,a=a||n,s+=d-1,t=t||u,l=!1;continue}}if("*"===d){if(l)continue;l=!0,o+=r&&/^[*]+$/.test(e)?y:g,t=!0;continue}if(l=!1,"?"===d){o+=b,t=!0;continue}o+=regExpEscape(d)}return[o,(0,s.unescape)(e),!!t,a]}}t.AST=w,n=w},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/brace-expressions.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;let r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},braceEscape=e=>e.replace(/[[\]\\-]/g,"\\$&");t.parseClass=(e,t)=>{if("["!==e.charAt(t))throw Error("not in a brace expression");let n=[],i=[],s=t+1,o=!1,a=!1,l=!1,d=!1,u=t,c="";t:for(;s<e.length;){let h=e.charAt(s);if(("!"===h||"^"===h)&&s===t+1){d=!0,s++;continue}if("]"===h&&o&&!l){u=s+1;break}if(o=!0,"\\"===h&&!l){l=!0,s++;continue}if("["===h&&!l){for(let[o,[l,d,u]]of Object.entries(r))if(e.startsWith(o,s)){if(c)return["$.",!1,e.length-t,!0];s+=o.length,u?i.push(l):n.push(l),a=a||d;continue t}}if(l=!1,c){h>c?n.push(braceEscape(c)+"-"+braceEscape(h)):h===c&&n.push(braceEscape(h)),c="",s++;continue}if(e.startsWith("-]",s+1)){n.push(braceEscape(h+"-")),s+=2;continue}if(e.startsWith("-",s+1)){c=h,s+=2;continue}n.push(braceEscape(h)),s++}if(u<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-t,!0];if(0===i.length&&1===n.length&&/^\\?.$/.test(n[0])&&!d)return[(2===n[0].length?n[0].slice(-1):n[0]).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),!1,u-t,!1];let h="["+(d?"^":"")+n.join("")+"]",f="["+(d?"":"^")+i.join("")+"]";return[n.length&&i.length?"("+h+"|"+f+")":n.length?h:f,a,u-t,!0]}},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.escape=void 0,t.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/index.js"(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;let i=n(r("./node_modules/brace-expansion/index.js")),s=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"),o=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js"),a=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js"),l=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js");t.minimatch=(e,t,r={})=>((0,s.assertValidPattern)(t),(!!r.nocomment||"#"!==t.charAt(0))&&new g(t,r).match(e));let d=/^\*+([^+@!?\*\[\(]*)$/,u=/^\*+\.\*+$/,starDotStarTest=e=>!e.startsWith(".")&&e.includes("."),starDotStarTestDot=e=>"."!==e&&".."!==e&&e.includes("."),c=/^\.\*+$/,dotStarTest=e=>"."!==e&&".."!==e&&e.startsWith("."),h=/^\*+$/,starTest=e=>0!==e.length&&!e.startsWith("."),starTestDot=e=>0!==e.length&&"."!==e&&".."!==e,f=/^\?+([^+@!?\*\[\(]*)?$/,qmarksTestNoExt=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(".")},qmarksTestNoExtDot=([e])=>{let t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},p="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";t.sep="win32"===p?"\\":"/",t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR;t.filter=(e,r={})=>n=>(0,t.minimatch)(n,e,r),t.minimatch.filter=t.filter;let ext=(e,t={})=>Object.assign({},e,t);t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t.minimatch;let r=t.minimatch;return Object.assign((t,n,i={})=>r(t,n,ext(e,i)),{Minimatch:class extends r.Minimatch{constructor(t,r={}){super(t,ext(e,r))}static defaults(t){return r.defaults(ext(e,t)).Minimatch}},AST:class extends r.AST{constructor(t,r,n={}){super(t,r,ext(e,n))}static fromGlob(t,n={}){return r.AST.fromGlob(t,ext(e,n))}},unescape:(t,n={})=>r.unescape(t,ext(e,n)),escape:(t,n={})=>r.escape(t,ext(e,n)),filter:(t,n={})=>r.filter(t,ext(e,n)),defaults:t=>r.defaults(ext(e,t)),makeRe:(t,n={})=>r.makeRe(t,ext(e,n)),braceExpand:(t,n={})=>r.braceExpand(t,ext(e,n)),match:(t,n,i={})=>r.match(t,n,ext(e,i)),sep:r.sep,GLOBSTAR:t.GLOBSTAR})},t.minimatch.defaults=t.defaults,t.braceExpand=(e,t={})=>((0,s.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))?[e]:(0,i.default)(e),t.minimatch.braceExpand=t.braceExpand,t.makeRe=(e,t={})=>new g(e,t).makeRe(),t.minimatch.makeRe=t.makeRe,t.match=(e,t,r={})=>{let n=new g(t,r);return e=e.filter(e=>n.match(e)),n.options.nonull&&!e.length&&e.push(t),e},t.minimatch.match=t.match;let b=/[?*]|[+@!]\(.*?\)|\[|\]/;class g{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){(0,s.assertValidPattern)(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||p,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if("string"!=typeof t)return!0;return!1}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0)){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map((e,t,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=""===e[0]&&""===e[1]&&("?"===e[2]||!b.test(e[2]))&&!b.test(e[3]),r=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(r)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,n),this.set=n.filter(e=>-1===e.indexOf(!1)),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let r=0;r<e[t].length;r++)"**"===e[t][r]&&(e[t][r]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let r=t;for(;"**"===e[r+1];)r++;r!==t&&e.splice(t,r-t)}return e})}levelOneOptimize(e){return e.map(e=>0===(e=e.reduce((e,t)=>{let r=e[e.length-1];return"**"===t&&"**"===r||(".."===t&&r&&".."!==r&&"."!==r&&"**"!==r?e.pop():e.push(t)),e},[])).length?[""]:e)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){let n=e[r];(1!==r||""!==n||""!==e[0])&&("."===n||""===n)&&(t=!0,e.splice(r,1),r--)}"."===e[0]&&2===e.length&&("."===e[1]||""===e[1])&&(t=!0,e.pop())}let r=0;for(;-1!==(r=e.indexOf("..",r+1));){let n=e[r-1];n&&"."!==n&&".."!==n&&"**"!==n&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do for(let r of(t=!1,e)){let n=-1;for(;-1!==(n=r.indexOf("**",n+1));){let i=n;for(;"**"===r[i+1];)i++;i>n&&r.splice(n+1,i-n);let s=r[n+1],o=r[n+2],a=r[n+3];if(".."!==s||!o||"."===o||".."===o||!a||"."===a||".."===a)continue;t=!0,r.splice(n,1);let l=r.slice(0);l[n]="**",e.push(l),n--}if(!this.preserveMultipleSlashes){for(let e=1;e<r.length-1;e++){let n=r[e];(1!==e||""!==n||""!==r[0])&&("."===n||""===n)&&(t=!0,r.splice(e,1),e--)}"."===r[0]&&2===r.length&&("."===r[1]||""===r[1])&&(t=!0,r.pop())}let i=0;for(;-1!==(i=r.indexOf("..",i+1));){let e=r[i-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;let e=1===i&&"**"===r[i+1]?["."]:[];r.splice(i-1,2,...e),0===r.length&&r.push(""),i-=2}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let n=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(n){e[t]=[],e[r]=n;break}}return e.filter(e=>e.length)}partsMatch(e,t,r=!1){let n=0,i=0,s=[],o="";for(;n<e.length&&i<t.length;)if(e[n]===t[i])s.push("b"===o?t[i]:e[n]),n++,i++;else if(r&&"**"===e[n]&&t[i]===e[n+1])s.push(e[n]),n++;else if(r&&"**"===t[i]&&e[n]===t[i+1])s.push(t[i]),i++;else if("*"===e[n]&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&"**"!==t[i]){if("b"===o)return!1;o="a",s.push(e[n]),n++,i++}else{if("*"!==t[i]||!e[n]||!this.options.dot&&e[n].startsWith(".")||"**"===e[n]||"a"===o)return!1;o="b",s.push(t[i]),n++,i++}return e.length===t.length&&s}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,r,n=!1){let i=0,s=0;if(this.isWindows){let t="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),n=!t&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),o="string"==typeof r[0]&&/^[a-z]:$/i.test(r[0]),a=!o&&""===r[0]&&""===r[1]&&"?"===r[2]&&"string"==typeof r[3]&&/^[a-z]:$/i.test(r[3]),l=n?3:t?0:void 0,d=a?3:o?0:void 0;if("number"==typeof l&&"number"==typeof d){let[t,n]=[e[l],r[d]];t.toLowerCase()===n.toLowerCase()&&(r[d]=t,s=d,i=l)}}let{optimizationLevel:o=1}=this.options;return(o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(t.GLOBSTAR))?this.#F(e,r,n,i,s):this.#B(e,r,n,i,s)}#F(e,r,n,i,s){let o=r.indexOf(t.GLOBSTAR,s),a=r.lastIndexOf(t.GLOBSTAR),[l,d,u]=n?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let t=e.slice(i,i+l.length);if(!this.#B(t,l,n,0,0))return!1;i+=l.length}let c=0;if(u.length){if(u.length+i>e.length)return!1;let t=e.length-u.length;if(this.#B(e,u,n,t,0))c=u.length;else{if(""!==e[e.length-1]||i+u.length===e.length||(t--,!this.#B(e,u,n,t,0)))return!1;c=u.length+1}}if(!d.length){let t=!!c;for(let r=i;r<e.length-c;r++){let n=String(e[r]);if(t=!0,"."===n||".."===n||!this.options.dot&&n.startsWith("."))return!1}return n||t}let h=[[[],0]],f=h[0],p=0,b=[0];for(let e of d)e===t.GLOBSTAR?(b.push(p),f=[[],0],h.push(f)):(f[0].push(e),p++);let g=h.length-1,y=e.length-c;for(let e of h)e[1]=y-(b[g--]+e[0].length);return!!this.#$(e,h,i,0,n,0,!!c)}#$(e,t,r,n,i,s,o){let a=t[n];if(!a){for(let t=r;t<e.length;t++){o=!0;let r=e[t];if("."===r||".."===r||!this.options.dot&&r.startsWith("."))return!1}return o}let[l,d]=a;for(;r<=d;){if(this.#B(e.slice(0,r+l.length),l,i,r,0)&&s<this.maxGlobstarRecursion){let a=this.#$(e,t,r+l.length,n+1,i,s+1,o);if(!1!==a)return a}let a=e[r];if("."===a||".."===a||!this.options.dot&&a.startsWith("."))return!1;r++}return i||null}#B(e,r,n,i,s){let o,a,l,d;for(o=i,a=s,d=e.length,l=r.length;o<d&&a<l;o++,a++){let n;this.debug("matchOne loop");let i=r[a],s=e[o];if(this.debug(r,i,s),!1===i||i===t.GLOBSTAR||("string"==typeof i?(n=s===i,this.debug("string match",i,s,n)):(n=i.test(s),this.debug("pattern match",i,s,n)),!n))return!1}if(o===d&&a===l)return!0;if(o===d)return n;if(a===l)return o===d-1&&""===e[o];throw Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){let r;(0,s.assertValidPattern)(e);let n=this.options;if("**"===e)return t.GLOBSTAR;if(""===e)return"";let i=null;(r=e.match(h))?i=n.dot?starTestDot:starTest:(r=e.match(d))?i=(n.nocase?n.dot?e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)):e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)):n.dot?e=>t=>t.endsWith(e):e=>t=>!t.startsWith(".")&&t.endsWith(e))(r[1]):(r=e.match(f))?i=(n.nocase?n.dot?([e,t=""])=>{let r=qmarksTestNoExtDot([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r}:([e,t=""])=>{let r=qmarksTestNoExt([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r}:n.dot?([e,t=""])=>{let r=qmarksTestNoExtDot([e]);return t?e=>r(e)&&e.endsWith(t):r}:([e,t=""])=>{let r=qmarksTestNoExt([e]);return t?e=>r(e)&&e.endsWith(t):r})(r):(r=e.match(u))?i=n.dot?starDotStarTestDot:starDotStarTest:(r=e.match(c))&&(i=dotStarTest);let a=o.AST.fromGlob(e,this.options).toMMPattern();return i&&"object"==typeof a&&Reflect.defineProperty(a,"test",{value:i}),a}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(r.nocase?["i"]:[]),s=e.map(e=>{let r=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(""))i.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===t.GLOBSTAR?t.GLOBSTAR:e._src});return r.forEach((e,i)=>{let s=r[i+1],o=r[i-1];e===t.GLOBSTAR&&o!==t.GLOBSTAR&&(void 0===o?void 0!==s&&s!==t.GLOBSTAR?r[i+1]="(?:\\/|"+n+"\\/)?"+s:r[i]=n:void 0===s?r[i-1]=o+"(?:\\/|"+n+")?":s!==t.GLOBSTAR&&(r[i-1]=o+"(?:\\/|\\/"+n+"\\/)"+s,r[i+1]=t.GLOBSTAR))}),r.filter(e=>e!==t.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let i=this.set;this.debug(this.pattern,"set",i);let s=n[n.length-1];if(!s)for(let e=n.length-2;!s&&e>=0;e--)s=n[e];for(let e=0;e<i.length;e++){let o=i[e],a=n;if(r.matchBase&&1===o.length&&(a=[s]),this.matchOne(a,o,t)){if(r.flipNegate)return!0;return!this.negate}}return!r.flipNegate&&this.negate}static defaults(e){return t.minimatch.defaults(e).Minimatch}}t.Minimatch=g;var y=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/ast.js");Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return y.AST}});var w=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/escape.js");Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return w.escape}});var v=r("./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js");Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return v.unescape}}),t.minimatch.AST=o.AST,t.minimatch.Minimatch=g,t.minimatch.escape=a.escape,t.minimatch.unescape=l.unescape},"./node_modules/archiver-utils/node_modules/minimatch/dist/commonjs/unescape.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=void 0,t.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},"./node_modules/buffer-crc32/dist/index.cjs"(e){function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}let t=new Int32Array([0,0x77073096,0xee0e612c,0x990951ba,0x76dc419,0x706af48f,0xe963a535,0x9e6495a3,0xedb8832,0x79dcb8a4,0xe0d5e91e,0x97d2d988,0x9b64c2b,0x7eb17cbd,0xe7b82d07,0x90bf1d91,0x1db71064,0x6ab020f2,0xf3b97148,0x84be41de,0x1adad47d,0x6ddde4eb,0xf4d4b551,0x83d385c7,0x136c9856,0x646ba8c0,0xfd62f97a,0x8a65c9ec,0x14015c4f,0x63066cd9,0xfa0f3d63,0x8d080df5,0x3b6e20c8,0x4c69105e,0xd56041e4,0xa2677172,0x3c03e4d1,0x4b04d447,0xd20d85fd,0xa50ab56b,0x35b5a8fa,0x42b2986c,0xdbbbc9d6,0xacbcf940,0x32d86ce3,0x45df5c75,0xdcd60dcf,0xabd13d59,0x26d930ac,0x51de003a,0xc8d75180,0xbfd06116,0x21b4f4b5,0x56b3c423,0xcfba9599,0xb8bda50f,0x2802b89e,0x5f058808,0xc60cd9b2,0xb10be924,0x2f6f7c87,0x58684c11,0xc1611dab,0xb6662d3d,0x76dc4190,0x1db7106,0x98d220bc,0xefd5102a,0x71b18589,0x6b6b51f,0x9fbfe4a5,0xe8b8d433,0x7807c9a2,0xf00f934,0x9609a88e,0xe10e9818,0x7f6a0dbb,0x86d3d2d,0x91646c97,0xe6635c01,0x6b6b51f4,0x1c6c6162,0x856530d8,0xf262004e,0x6c0695ed,0x1b01a57b,0x8208f4c1,0xf50fc457,0x65b0d9c6,0x12b7e950,0x8bbeb8ea,0xfcb9887c,0x62dd1ddf,0x15da2d49,0x8cd37cf3,0xfbd44c65,0x4db26158,0x3ab551ce,0xa3bc0074,0xd4bb30e2,0x4adfa541,0x3dd895d7,0xa4d1c46d,0xd3d6f4fb,0x4369e96a,0x346ed9fc,0xad678846,0xda60b8d0,0x44042d73,0x33031de5,0xaa0a4c5f,0xdd0d7cc9,0x5005713c,0x270241aa,0xbe0b1010,0xc90c2086,0x5768b525,0x206f85b3,0xb966d409,0xce61e49f,0x5edef90e,0x29d9c998,0xb0d09822,0xc7d7a8b4,0x59b33d17,0x2eb40d81,0xb7bd5c3b,0xc0ba6cad,0xedb88320,0x9abfb3b6,0x3b6e20c,0x74b1d29a,0xead54739,0x9dd277af,0x4db2615,0x73dc1683,0xe3630b12,0x94643b84,0xd6d6a3e,0x7a6a5aa8,0xe40ecf0b,0x9309ff9d,0xa00ae27,0x7d079eb1,0xf00f9344,0x8708a3d2,0x1e01f268,0x6906c2fe,0xf762575d,0x806567cb,0x196c3671,0x6e6b06e7,0xfed41b76,0x89d32be0,0x10da7a5a,0x67dd4acc,0xf9b9df6f,0x8ebeeff9,0x17b7be43,0x60b08ed5,0xd6d6a3e8,0xa1d1937e,0x38d8c2c4,0x4fdff252,0xd1bb67f1,0xa6bc5767,0x3fb506dd,0x48b2364b,0xd80d2bda,0xaf0a1b4c,0x36034af6,0x41047a60,0xdf60efc3,0xa867df55,0x316e8eef,0x4669be79,0xcb61b38c,0xbc66831a,0x256fd2a0,0x5268e236,0xcc0c7795,0xbb0b4703,0x220216b9,0x5505262f,0xc5ba3bbe,0xb2bd0b28,0x2bb45a92,0x5cb36a04,0xc2d7ffa7,0xb5d0cf31,0x2cd99e8b,0x5bdeae1d,0x9b64c2b0,0xec63f226,0x756aa39c,0x26d930a,0x9c0906a9,0xeb0e363f,0x72076785,0x5005713,0x95bf4a82,0xe2b87a14,0x7bb12bae,0xcb61b38,0x92d28e9b,0xe5d5be0d,0x7cdcefb7,0xbdbdf21,0x86d3d2d4,0xf1d4e242,0x68ddb3f8,0x1fda836e,0x81be16cd,0xf6b9265b,0x6fb077e1,0x18b74777,0x88085ae6,0xff0f6a70,0x66063bca,0x11010b5c,0x8f659eff,0xf862ae69,0x616bffd3,0x166ccf45,0xa00ae278,0xd70dd2ee,0x4e048354,0x3903b3c2,0xa7672661,0xd06016f7,0x4969474d,0x3e6e77db,0xaed16a4a,0xd9d65adc,0x40df0b66,936918e3,0xa9bcae53,0xdebb9ec5,0x47b2cf7f,0x30b5ffe9,0xbdbdf21c,0xcabac28a,0x53b39330,0x24b4a3a6,0xbad03605,0xcdd70693,0x54de5729,0x23d967bf,0xb3667a2e,0xc4614ab8,0x5d681b02,0x2a6f2b94,0xb40bbe37,0xc30c8ea1,0x5a05df1b,0x2d02ef8d]);function ensureBuffer(e){if(Buffer.isBuffer(e))return e;if("number"==typeof e)return Buffer.alloc(e);if("string"==typeof e)return Buffer.from(e);throw Error("input must be buffer, number, or string, received "+typeof e)}function bufferizeInt(e){let t=ensureBuffer(4);return t.writeInt32BE(e,0),t}function _crc32(e,r){e=ensureBuffer(e),Buffer.isBuffer(r)&&(r=r.readUInt32BE(0));let n=-1^~~r;for(var i=0;i<e.length;i++)n=t[(n^e[i])&255]^n>>>8;return -1^n}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=getDefaultExportFromCjs(crc32)},"./node_modules/commander/index.js"(e,t,r){let{Argument:n}=r("./node_modules/commander/lib/argument.js"),{Command:i}=r("./node_modules/commander/lib/command.js"),{CommanderError:s,InvalidArgumentError:o}=r("./node_modules/commander/lib/error.js"),{Help:a}=r("./node_modules/commander/lib/help.js"),{Option:l}=r("./node_modules/commander/lib/option.js");t.program=new i,t.createCommand=e=>new i(e),t.createOption=(e,t)=>new l(e,t),t.createArgument=(e,t)=>new n(e,t),t.Command=i,t.Option=l,t.Argument=n,t.Help=a,t.CommanderError=s,t.InvalidArgumentError=o,t.InvalidOptionArgumentError=o},"./node_modules/commander/lib/argument.js"(e,t,r){let{InvalidArgumentError:n}=r("./node_modules/commander/lib/error.js");function humanReadableArgName(e){let t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=humanReadableArgName},"./node_modules/commander/lib/command.js"(e,t,r){let n=r("node:events").EventEmitter,i=r("node:child_process"),s=r("node:path"),o=r("node:fs"),a=r("node:process"),{Argument:l,humanReadableArgName:d}=r("./node_modules/commander/lib/argument.js"),{CommanderError:u}=r("./node_modules/commander/lib/error.js"),{Help:c,stripColor:h}=r("./node_modules/commander/lib/help.js"),{Option:f,DualOptions:p}=r("./node_modules/commander/lib/option.js"),{suggestSimilar:b}=r("./node_modules/commander/lib/suggestSimilar.js");class g extends n{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>a.stdout.write(e),writeErr:e=>a.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:void 0,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:void 0,getOutHasColors:()=>useColor()??(a.stdout.isTTY&&a.stdout.hasColors?.()),getErrHasColors:()=>useColor()??(a.stderr.isTTY&&a.stderr.hasColors?.()),stripColor:e=>h(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,r){let n=t,i=r;"object"==typeof n&&null!==n&&(i=n,n=null),i=i||{};let[,s,o]=e.match(/([^ ]+) *(.*)/),a=this.createCommand(s);return(n&&(a.description(n),a._executableHandler=!0),i.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(i.noHelp||i.hidden),a._executableFile=i.executableFile||null,o&&a.arguments(o),this._registerCommand(a),a.parent=this,a.copyInheritedSettings(this),n)?this:a}createCommand(e){return new g(e)}createHelp(){return Object.assign(new c,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
|
|
6
6
|
- specify the name in Command constructor or using .name()`);return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new l(e,t)}argument(e,t,r,n){let i=this.createArgument(e,t);return"function"==typeof r?i.default(n).argParser(r):i.default(r),this.addArgument(i),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if("boolean"==typeof e)return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let[,r,n]=(e??"help [command]").match(/([^ ]+) *(.*)/),i=t??"display help for command",s=this.createCommand(r);return s.helpOption(!1),n&&s.arguments(n),i&&s.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=s,(e||t)&&this._initCommandGroup(s),this}addHelpCommand(e,t){return"object"!=typeof e?this.helpCommand(e,t):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e)),this}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){let r=["preSubcommand","preAction","postAction"];if(!r.includes(e))throw Error(`Unexpected value for event passed to hook : '${e}'.
|
|
7
7
|
Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=e=>{if("commander.executeSubCommandAsync"!==e.code)throw e},this}_exit(e,t,r){this._exitCallback&&this._exitCallback(new u(e,t,r)),a.exit(e)}action(e){let listener=t=>{let r=this.registeredArguments.length,n=t.slice(0,r);return this._storeOptionsAsProperties?n[r]=this:n[r]=this.opts(),n.push(this),e.apply(this,n)};return this._actionHandler=listener,this}createOption(e,t){return new f(e,t)}_callParseArg(e,t,r,n){try{return e.parseArg(t,r)}catch(e){if("commander.invalidArgument"===e.code){let t=`${n} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){let r=e.long&&this._findOption(e.long)?e.long:e.short;throw Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${r}'
|
|
8
8
|
- already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let knownBy=e=>[e.name()].concat(e.aliases()),t=knownBy(e).find(e=>this._findCommand(e));if(t){let r=knownBy(this._findCommand(t)).join("|"),n=knownBy(e).join("|");throw Error(`cannot add command '${n}' as already have command '${r}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),r=e.attributeName();if(e.negate){let t=e.long.replace(/^--no-/,"--");this._findOption(t)||this.setOptionValueWithSource(r,void 0===e.defaultValue||e.defaultValue,"default")}else void 0!==e.defaultValue&&this.setOptionValueWithSource(r,e.defaultValue,"default");let handleOptionValue=(t,n,i)=>{null==t&&void 0!==e.presetArg&&(t=e.presetArg);let s=this.getOptionValue(r);null!==t&&e.parseArg?t=this._callParseArg(e,t,s,n):null!==t&&e.variadic&&(t=e._collectValue(t,s)),null==t&&(t=!e.negate&&(!!e.isBoolean()||!!e.optional||"")),this.setOptionValueWithSource(r,t,i)};return this.on("option:"+t,t=>{let r=`error: option '${e.flags}' argument '${t}' is invalid.`;handleOptionValue(t,r,"cli")}),e.envVar&&this.on("optionEnv:"+t,t=>{let r=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;handleOptionValue(t,r,"env")}),this}_optionEx(e,t,r,n,i){if("object"==typeof t&&t instanceof f)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(t,r);if(s.makeOptionMandatory(!!e.mandatory),"function"==typeof n)s.default(i).argParser(n);else if(n instanceof RegExp){let e=n;n=(t,r)=>{let n=e.exec(t);return n?n[0]:r},s.default(i).argParser(n)}else s.default(n);return this.addOption(s)}option(e,t,r,n){return this._optionEx({},e,t,r,n)}requiredOption(e,t,r,n){return this._optionEx({mandatory:!0},e,t,r,n)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,r){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=r,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(r=>{void 0!==r.getOptionValueSource(e)&&(t=r.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){let r;if(void 0!==e&&!Array.isArray(e))throw Error("first parameter to parse must be array or undefined");if(t=t||{},void 0===e&&void 0===t.from){a.versions?.electron&&(t.from="electron");let e=a.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(t.from="eval")}switch(void 0===e&&(e=a.argv),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],r=e.slice(2);break;case"electron":a.defaultApp?(this._scriptPath=e[1],r=e.slice(2)):r=e.slice(1);break;case"user":r=e.slice(0);break;case"eval":r=e.slice(1);break;default:throw Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(e,t){this._prepareForParse();let r=this._prepareUserArgs(e,t);return this._parseCommand([],r),this}async parseAsync(e,t){this._prepareForParse();let r=this._prepareUserArgs(e,t);return await this._parseCommand([],r),this}_prepareForParse(){null===this._savedState?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
@@ -28,5 +28,5 @@ ${t}`,et=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),er=Objec
|
|
|
28
28
|
Image URL: ${o.data[0].url}`)),e.output)){t.start("Downloading image...");let r=await g.get(o.data[0].url,{responseType:"arraybuffer"}),n=eB.resolve(e.output);eF.writeFileSync(n,r.data),t.succeed(ee.green(`Image saved to ${n}`))}}catch(e){t.fail(ee.red("Failed to generate image")),console.error(ee.red(e.message)),process.exit(1)}});function parseResolution(e){if(!e)return{};let[t,r]=e.split("x"),n=parseInt(t),i=parseInt(r);return n===i?{ratio:"1:1",resolution:n<=1024?"720p":"1080p"}:n>i?{ratio:"16:9",resolution:n<=1440?"720p":"1080p"}:{ratio:"9:16",resolution:i<=1440?"720p":"1080p"}}let ez=new N("video").description("Generate video using AI (synchronous - waits for completion)").option("-p, --prompt <text>","Text prompt").option("-i, --image-url <url>","Image URL (single or comma-separated two URLs)").option("-s, --size <size>","Video resolution (e.g., 1920x1080)").option("-d, --duration <seconds>","Video duration (5-10 seconds)","5").option("-m, --model <model>","Model name","doubao-seedance-1-0-pro-fast-251015").option("--callback-url <url>","Callback URL").option("--return-last-frame","Return last frame image",!1).option("--watermark","Add watermark",!1).option("--seed <number>","Random seed").option("--camerafixed","Fixed camera",!1).option("-o, --output <path>","Output file path (JSON)").option("--mock","Use mock mode (test run)",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=ora("Generating video...").start();try{let r=new f,n={},i=parseHeaders(e.header);i&&Object.assign(n,i),e.mock&&(n[eW]=eN,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let s=new p(r,Object.keys(n).length>0?n:void 0,e.verbose),o=e.imageUrl?e.imageUrl.split(",").map(e=>e.trim()):null,{ratio:a,resolution:l}=parseResolution(e.size),d=[];if(e.prompt&&d.push({type:"text",text:e.prompt}),o)if(1===o.length)d.push({type:"image_url",image_url:{url:o[0]},role:"first_frame"});else if(2===o.length)d.push({type:"image_url",image_url:{url:o[0]},role:"first_frame"}),d.push({type:"image_url",image_url:{url:o[1]},role:"last_frame"});else throw Error("Only 1 or 2 images are supported");if(0===d.length)throw Error("Either --prompt or --image-url must be provided");let u=await s.videoGeneration(d,{model:e.model,resolution:l||"720p",ratio:a||"16:9",duration:parseInt(e.duration),watermark:e.watermark,seed:e.seed?parseInt(e.seed):void 0,camerafixed:e.camerafixed,callbackUrl:e.callbackUrl,returnLastFrame:e.returnLastFrame});t.succeed(ee.green("✓ Video generation completed!")),console.log(ee.cyan("\n=== Video Generation Result ===")),console.log(ee.white("Task ID:"),ee.green(u.response.id)),console.log(ee.white("Status:"),ee.green(u.response.status)),u.videoUrl&&console.log(ee.white("Video URL:"),ee.green(u.videoUrl)),e.returnLastFrame&&u.lastFrameUrl&&console.log(ee.white("Last Frame URL:"),ee.green(u.lastFrameUrl)),u.response.error_message&&console.log(ee.white("Error:"),ee.red(u.response.error_message)),u.videoUrl&&(console.log(ee.cyan("\nComplete Video URL:")),console.log(ee.green(u.videoUrl))),e.returnLastFrame&&u.lastFrameUrl&&(console.log(ee.cyan("\nComplete Last Frame URL:")),console.log(ee.green(u.lastFrameUrl))),e.output&&(eF.writeFileSync(e.output,JSON.stringify(u.response,null,2)),console.log(ee.green(`
|
|
29
29
|
✓ Result saved to: ${e.output}`)))}catch(e){t.fail(ee.red("✗ Video generation failed")),console.error(ee.red(`Error: ${e.message}`)),process.exit(1)}}),eU=new N("search").description("Search the web using AI").requiredOption("-q, --query <text>","Search query").option("--type <type>","Search type (web or image)","web").option("--count <number>","Number of results","10").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=ora("Searching...").start();try{let r,n=new f,i=parseHeaders(e.header),s=new A(n,i,e.verbose);r="image"===e.type?await s.imageSearch(e.query,parseInt(e.count)):await s.webSearch(e.query,parseInt(e.count)),t.succeed(ee.green("Search completed!")),"image"===e.type&&r.image_items?r.image_items.forEach((e,t)=>{console.log(ee.cyan(`
|
|
30
30
|
[${t+1}] ${e.title||"Image"}`)),console.log(ee.gray(e.url||"")),console.log(ee.yellow(`Image URL: ${e.image.url}`))}):r.web_items&&r.web_items.forEach((e,t)=>{console.log(ee.cyan(`
|
|
31
|
-
[${t+1}] ${e.title}`)),console.log(ee.gray(e.url||"")),e.snippet&&console.log(e.snippet)})}catch(e){t.fail(ee.red("Search failed")),console.error(ee.red(e.message)),process.exit(1)}}),eH=new N("tts").description("Text-to-speech conversion").requiredOption("-t, --text <text>","Text to convert to speech").option("--speaker <speaker>","Speaker voice to use","zh_female_xiaohe_uranus_bigtts").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).action(async e=>{let t=ora("Converting text to speech...").start();try{let r=new f,n={},i=parseHeaders(e.header);i&&Object.assign(n,i),e.mock&&(n[eW]=eN,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let s=new S(r,Object.keys(n).length>0?n:void 0),o=await s.synthesize({uid:"cli-user",text:e.text,speaker:e.speaker});t.succeed(ee.green("Text-to-speech conversion completed!")),console.log(ee.cyan(`Audio URL: ${o.audioUri}`)),console.log(ee.cyan(`Audio Size: ${o.audioSize} bytes`))}catch(e){t.fail(ee.red("Text-to-speech conversion failed")),console.error(ee.red(e.message)),process.exit(1)}}),eG=new N("asr").description("Automatic speech recognition").option("-u, --url <url>","Audio file URL").option("-f, --file <path>","Local audio file path (will be base64 encoded)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=ora("Recognizing speech...").start();try{e.url||e.file||(t.fail(ee.red("Please provide either --url or --file")),process.exit(1));let r=new f,n=parseHeaders(e.header),i=new x(r,n,e.verbose),s=e.url?{url:e.url}:{base64Data:eF.readFileSync(eB.resolve(e.file)).toString("base64")},o=await i.recognize(s);t.succeed(ee.green("Speech recognition completed!")),console.log(ee.cyan("\nRecognized text:")),console.log(o.text)}catch(e){t.fail(ee.red("Speech recognition failed")),console.error(ee.red(e.message)),process.exit(1)}}),eq=new N("chat").description("Chat with AI using LLM").requiredOption("-p, --prompt <text>","User prompt").option("-s, --system <text>","System prompt").option("--model <model>","Model to use","doubao-seed-1-6-251015").option("--temperature <number>","Temperature (0-2)","0.7").option("--stream","Enable streaming output",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{try{let t=new f,r=new k(t),n=parseHeaders(e.header),i=[];e.system&&i.push({role:"system",content:e.system}),i.push({role:"user",content:e.prompt});let s={model:e.model,temperature:parseFloat(e.temperature)};if(e.stream){for await(let e of(console.log(ee.cyan("\nAI Response:")),r.stream(i,s,void 0,n)))e.content&&process.stdout.write(e.content.toString());console.log("\n")}else{let e=ora("Generating response...").start(),t=await r.invoke(i,s,void 0,n);e.succeed(ee.green("Response generated!")),console.log(ee.cyan("\nAI Response:")),console.log(t.content)}}catch(e){console.error(ee.red("Chat failed")),console.error(ee.red(e.message)),process.exit(1)}}),eV=process.env.COZE_PROJECT_TYPE,eK="wechat_mini_program"===eV,eZ="app"===eV,eY=(r=process.cwd(),n="server"===eB.basename(r),eK||eZ?n?"src/storage/database/shared/schema.ts":"server/src/storage/database/shared/schema.ts":"src/storage/database/shared/schema.ts"),eJ=new N("db").description("Database operations");eJ.command("generate-models").description("Generate ORM models from database schema").option("-o, --output <path>","Output file path",eY).option("-v, --verbose","Enable verbose output").action(async e=>{let t=ora("Generating models from database...").start();try{let{generateModels:r}=await import("../131.mjs").then(e=>({generateModels:e.generateModels})),n=eB.resolve(e.output);await r({outputPath:n,verbose:e.verbose}),t.succeed(ee.green(`Models generated at ${n}`))}catch(e){t.fail(ee.red("Failed to generate models")),console.error(ee.red(e.message)),process.exit(1)}}),eJ.command("upgrade").description("Push schema changes to database").option("-s, --schema <path>","Schema file path",eY).option("-p, --project <path>","Project root path",process.cwd()).option("-v, --verbose","Enable verbose output").action(async e=>{let t=ora("Pushing schema to database...").start();try{let{upgrade:r}=await import("../131.mjs").then(e=>({upgrade:e.upgrade}));await r({schemaPath:e.schema,projectPath:e.project,verbose:e.verbose}),t.succeed(ee.green("Database schema updated successfully"))}catch(e){t.fail(ee.red("Failed to upgrade database")),console.error(ee.red(e.message)),process.exit(1)}}),eJ.command("diagnose").description("获取数据库运行状态诊断报告").option("-e, --env <env>","目标环境: dev 或 prod,不传则使用 token 中的环境").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/database/diagnose")),e.env&&console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{env:e.env}),t&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(t))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({report:{},mock:!0},null,2));return}let r=ora("Diagnosing database...").start();try{let{Config:n,SupabaseClient:i}=await import("../131.mjs").then(e=>({Config:e.Config,SupabaseClient:e.SupabaseClient})),s=new n,o=new i(s,t),a=await o.diagnoseDatabase(e.env);if(e.verbose&&(r.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),a.code)),0!==a.code){let t=a.msg||"";if(t.toLowerCase().includes("record not found")){let t=e.env||"dev/prod";r.fail(ee.red(`${t} 数据库还未创建,请先创建数据库后再进行诊断`))}else r.fail(ee.red(`Error: ${t}`));process.exit(1)}r.succeed(ee.green("Database diagnosis completed!")),console.log(JSON.stringify(a.report,null,2))}catch(e){r.fail(ee.red("Failed to diagnose database")),console.error(ee.red(e.message)),process.exit(1)}});let eQ=new N("embedding").description("Generate embeddings for text, images, or videos using AI").option("-t, --text <text>","Text to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--image-url <url>","Image URL to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--video-url <url>","Video URL to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-d, --dimensions <number>","Output embedding dimensions",parseInt).option("--instructions <text>","Instructions for embedding generation").option("--multi-embedding","Enable multi-embedding mode").option("--sparse-embedding","Enable sparse embedding mode").option("-o, --output <path>","Output file path for embedding JSON").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=e.text&&e.text.length>0,r=e.imageUrl&&e.imageUrl.length>0,n=e.videoUrl&&e.videoUrl.length>0;t||r||n||(console.error(ee.red("Error: At least one of --text, --image-url, or --video-url is required")),process.exit(1));let i=ora("Generating embeddings...").start();try{let s=new f,o={},a=parseHeaders(e.header);a&&Object.assign(o,a),e.mock&&(o[eW]=eN,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let l=new y(s,Object.keys(o).length>0?o:void 0,e.verbose),d=await l.embed(t?e.text:void 0,r?e.imageUrl:void 0,n?e.videoUrl:void 0,{dimensions:e.dimensions,instructions:e.instructions,multiEmbedding:e.multiEmbedding,sparseEmbedding:e.sparseEmbedding});if(i.succeed(ee.green("Embeddings generated successfully!")),console.log(ee.cyan(`Model: ${d.model}`)),d.data?.embedding&&(console.log(ee.cyan(`Embedding dimensions: ${d.data.embedding.length}`)),console.log(ee.gray(`First 5 values: [${d.data.embedding.slice(0,5).join(", ")}...]`))),d.data?.multi_embedding&&console.log(ee.cyan(`Multi-embedding vectors: ${d.data.multi_embedding.length}`)),d.data?.sparse_embedding&&console.log(ee.cyan(`Sparse embedding items: ${d.data.sparse_embedding.length}`)),d.usage&&console.log(ee.gray(`Tokens used: ${d.usage.total_tokens}`)),e.output){let t=eB.resolve(e.output);eF.writeFileSync(t,JSON.stringify(d,null,2)),console.log(ee.green(`Embedding saved to ${t}`))}}catch(e){i.fail(ee.red("Failed to generate embeddings")),console.error(ee.red(e.message)),process.exit(1)}}),eX=new N("knowledge").description("Knowledge Base tools");eX.command("search").description("Search for knowledge chunks").requiredOption("-q, --query <text>","Search query").option("-d, --dataset <name>","Dataset names (tables) to search in (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-k, --top-k <number>","Number of results to return","5").option("-m, --min-score <number>","Minimum similarity score","0.0").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=ora("Searching...").start();try{let r=new f,n=parseHeaders(e.header),i=new T(r,n,e.verbose),s=await i.search(e.query,e.dataset.length>0?e.dataset:void 0,parseInt(e.topK),parseFloat(e.minScore));if(0!==s.code)return void t.fail(ee.red(`Error ${s.code}: ${s.msg}`));t.succeed(ee.green("Search completed!")),console.log(ee.bold("\nSearch Results:")),console.log("────────────────────────────────────────────────────────────────────────────────"),0===s.chunks.length&&console.log(ee.yellow("No matching chunks found.")),s.chunks.forEach((e,t)=>{console.log(ee.cyan(`[${t+1}] Score: ${e.score.toFixed(4)}`)),e.doc_id&&console.log(ee.dim(`Doc ID: ${e.doc_id}`)),e.chunk_id&&console.log(ee.dim(`Chunk ID: ${e.chunk_id}`)),console.log(ee.green("Content:")),console.log(e.content),console.log("────────────────────────────────────────────────────────────────────────────────")})}catch(e){t.fail(ee.red("Search failed")),console.error(ee.red(e.message)),process.exit(1)}}),eX.command("add").description("Add documents to knowledge base").requiredOption("-d, --dataset <name>","Dataset name (table) to add to").option("-c, --content <text>","Raw text content to add (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-u, --url <url>","Web URL to add (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--chunk-separator <char>","Chunk separator","\\n").option("--max-tokens <number>","Max tokens per chunk","500").option("--remove-extra-spaces","Normalize extra spaces",!1).option("--remove-urls-emails","Strip URLs and emails",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=ora("Adding documents...").start();try{let r=new f,n=parseHeaders(e.header),i=new T(r,n,e.verbose),s=[];if(e.content&&e.content.forEach(e=>{s.push({source:b.TEXT,raw_data:e})}),e.url&&e.url.forEach(e=>{s.push({source:b.URL,url:e})}),0===s.length)return void t.fail(ee.red("No content or URL provided to add."));let o={separator:e.chunkSeparator.replace(/\\n/g,"\n"),max_tokens:parseInt(e.maxTokens),remove_extra_spaces:e.removeExtraSpaces,remove_urls_emails:e.removeUrlsEmails},a=await i.addDocuments(s,e.dataset,o);if(0!==a.code)return void t.fail(ee.red(`Error ${a.code}: ${a.msg}`));t.succeed(ee.green("Documents added successfully!")),a.doc_ids&&a.doc_ids.length>0&&(console.log(ee.cyan(`
|
|
32
|
-
Added ${a.doc_ids.length} documents.`)),console.log(ee.dim(`Doc IDs: ${a.doc_ids.join(", ")}`)))}catch(e){t.fail(ee.red("Add documents failed")),console.error(ee.red(e.message)),process.exit(1)}});let e0=c("os"),e1=c("crypto"),e2=c("./node_modules/archiver/index.js");var e3=c.n(e2);function normalizePrefix(e){return e&&(e=e.replace(/^\/+|\/+$/g,""))?e+"/":""}let e8={".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript",".json":"application/json",".xml":"application/xml",".txt":"text/plain",".csv":"text/csv",".md":"text/markdown",".yaml":"text/yaml",".yml":"text/yaml",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp",".ico":"image/x-icon",".bmp":"image/bmp",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".flac":"audio/flac",".mp4":"video/mp4",".webm":"video/webm",".avi":"video/x-msvideo",".mov":"video/quicktime",".pdf":"application/pdf",".zip":"application/zip",".gz":"application/gzip",".tar":"application/x-tar",".rar":"application/vnd.rar",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".eot":"application/vnd.ms-fontobject"};function guessMimeType(e){return e8[eB.extname(e).toLowerCase()]||"application/octet-stream"}function buildObjectKey(e,t,r,n){let i=n(t);if(r){let e=eB.extname(i),t=i.slice(0,i.length-e.length),r=eB.posix.dirname(t),n=eB.posix.basename(t),s=(0,e1.randomUUID)().replace(/-/g,"").slice(0,8);i="."!==r?`${r}/${n}_${s}${e}`:`${n}_${s}${e}`}return e+i}function walkDirFiles(e){let t=[],r=eB.dirname(e);function walk(e){for(let n of eF.readdirSync(e,{withFileTypes:!0})){let i=eB.join(e,n.name);if(n.isDirectory())walk(i);else if(n.isFile()){let e=eB.relative(r,i).split(eB.sep).join("/");t.push({absolutePath:i,relativeKey:e})}}}return walk(e),t}async function zipDirectory(e){let t=eB.basename(e),r=`${t}.zip`,n=eF.mkdtempSync(eB.join(e0.tmpdir(),"storage-upload-")),i=eB.join(n,r);return new Promise((r,n)=>{let s=eF.createWriteStream(i),o=e3()("zip",{zlib:{level:9}});s.on("close",()=>r(i)),o.on("error",e=>n(e)),o.pipe(s),o.directory(e,t),o.finalize()})}async function uploadFileToS3(e,t,r,n,i){let s=guessMimeType(r);if(eF.statSync(r).size<=i){let i=eF.readFileSync(r);await e.send(new R({Bucket:t,Key:n,Body:i,ContentType:s}))}else{let i=new w({client:e,params:{Bucket:t,Key:n,Body:eF.createReadStream(r),ContentType:s}});await i.done()}}let e6=new N("storage").description("Object storage commands");e6.command("upload").description("Upload files and directories to object storage.\nOutputs JSON with name-to-URL mappings to stdout.\n\nExamples:\n coze-coding-ai storage upload ./data --prefix my-project/\n coze-coding-ai storage upload file1.txt dir1/ dir2/ --prefix uploads/\n coze-coding-ai storage upload report.csv --prefix reports/ --expire 3600").argument("<paths...>","File or directory paths to upload").option("-p, --prefix <prefix>","Target S3 key prefix (virtual directory)","").option("--uuid","Append UUID suffix to filenames to avoid collisions").option("-e, --expire <seconds>","Presigned URL expiration in seconds (default: 86400 = 24h)","86400").option("-t, --threshold <bytes>","Size threshold for streaming upload (default: 5MB)","5242880").option("-c, --max-concurrency <n>","Number of parallel uploads (default: 4)","4").action(async(e,t)=>{let r,n,i,{S3Storage:s}=await import("../131.mjs").then(e=>({S3Storage:e.S3Storage})),o=[],a=[];for(let t of e){let e=eB.resolve(t);if(!eF.existsSync(e)){console.error(`Warning: ${t} does not exist, skipping`);continue}let r=eF.statSync(e);r.isFile()?o.push(e):r.isDirectory()?a.push(e):console.error(`Warning: ${t} is not a file or directory, skipping`)}0===o.length&&0===a.length&&(console.log(JSON.stringify({_error:"No files or directories found to upload."})),process.exit(1));let l=normalizePrefix(t.prefix),d=parseInt(t.expire,10),u=parseInt(t.threshold,10),c=parseInt(t.maxConcurrency,10);try{n=(r=new s).resolveBucket(void 0)}catch(e){console.log(JSON.stringify({_error:`S3 configuration error: ${e.message}`})),process.exit(1)}let sanitizeFn=e=>r.sanitizeFileName(e),h=[];for(let e of o){let r=eB.basename(e),n=buildObjectKey(l,r,!!t.uuid,sanitizeFn);h.push({localPath:e,objectKey:n,displayName:r})}let f=[];for(let e of a)for(let{absolutePath:r,relativeKey:n}of walkDirFiles(e)){let e=buildObjectKey(l,n,!!t.uuid,sanitizeFn);f.push({localPath:r,objectKey:e,displayName:n})}let p=[...h,...f],b=[];for(let e of a){let r=eB.basename(e),n=buildObjectKey(l,`${r}.zip`,!!t.uuid,sanitizeFn);b.push({dirPath:e,objectKey:n,displayName:`${r}/`})}try{i=r.getClient()}catch(e){console.log(JSON.stringify({_error:`Failed to initialize S3 client: ${e.message}`})),process.exit(1)}let g={},y=[],w=new Set(h.map(e=>e.displayName)),v=[...p],S=[];async function processFileTask(e){try{if(await uploadFileToS3(i,n,e.localPath,e.objectKey,u),w.has(e.displayName)){let t=await r.generatePresignedUrl({key:e.objectKey,expireTime:d});g[e.displayName]=t}}catch(t){y.push({name:e.displayName,error:t.message})}}for(;v.length>0||S.length>0;){for(;S.length<c&&v.length>0;){let e=processFileTask(v.shift()).then(()=>{S.splice(S.indexOf(e),1)});S.push(e)}S.length>0&&await Promise.race(S)}for(let e of b){let t=null;try{t=await zipDirectory(e.dirPath),await uploadFileToS3(i,n,t,e.objectKey,u);let s=await r.generatePresignedUrl({key:e.objectKey,expireTime:d});g[e.displayName]=s}catch(t){y.push({name:e.displayName,error:t.message})}finally{if(t)try{eF.unlinkSync(t),eF.rmdirSync(eB.dirname(t))}catch{}}}let x={...g};y.length>0&&(x._failures=y),console.log(JSON.stringify(x,null,2)),y.length>0&&process.exit(1)});let e4=new N("supabase").description("Supabase 管理命令,包括 Edge Functions、Storage Buckets 和 Auth 配置管理"),e9=e4.command("func").description("Edge Functions(边缘函数)管理命令");e9.command("list").description("列出所有 Edge Functions").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/functions/list")),t&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(t))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({functions:[],mock:!0},null,2));return}let r=ora("Fetching functions...").start();try{let n=new f,i=new j(n,t),s=await i.listFunctions();e.verbose&&(r.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),s.code)),0!==s.code&&(r.fail(ee.red(`Error: ${s.msg}`)),process.exit(1)),r.succeed(ee.green("Functions fetched successfully!")),console.log(JSON.stringify(s.functions,null,2))}catch(e){r.fail(ee.red("Failed to fetch functions")),console.error(ee.red(e.message)),process.exit(1)}}),e9.command("get").description("获取 Edge Function 详情和源码").argument("<slug>",'函数标识符,即函数的唯一名称(如 "hello-world"),可通过 "func list" 命令查看').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r=parseHeaders(t.header);if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/functions/get")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{slug:e}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({function:{slug:e},files:[],mock:!0},null,2));return}let n=ora("Fetching function...").start();try{let i=new f,s=new j(i,r),o=await s.getFunction(e);t.verbose&&(n.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code)),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Function fetched successfully!")),console.log(JSON.stringify({function:o.function,files:o.files},null,2))}catch(e){n.fail(ee.red("Failed to fetch function")),console.error(ee.red(e.message)),process.exit(1)}}),e9.command("deploy").description("部署或更新 Edge Function。如果函数已存在则更新,不存在则创建新函数").argument("<slug>",'函数标识符,只能包含小写字母、数字和连字符(如 "hello-world")').option("-c, --code <code>","函数代码字符串(用于单文件函数),与 --file 二选一").option("-f, --file <items...>","文件名和内容对,格式:--file <文件名> <内容>,可多次使用,例如:--file index.ts 'Deno.serve(...)' --file handler.ts 'export ...'").option("-n, --name <name>","函数显示名称,用于在控制台中展示").option("-e, --entrypoint <path>",'入口文件名称,多文件部署时必需,指定主入口文件(如 "index.ts")').option("--verify-jwt","启用 JWT 验证,调用函数需要携带有效的 JWT token").option("--no-verify-jwt","禁用 JWT 验证").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r,n=t.code;if(t.file&&t.file.length>0){t.file.length%2!=0&&(console.error(ee.red("Error: --file requires pairs of <name> <content>")),process.exit(1)),r=[];for(let e=0;e<t.file.length;e+=2)r.push({name:t.file[e],content:t.file[e+1]})}n||r||(console.error(ee.red("Error: Either --code or --file is required")),process.exit(1));let i=parseHeaders(t.header),s={code:n,files:r,name:t.name,entrypoint:t.entrypoint,verify_jwt:t.verifyJwt};if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/functions/deploy")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{slug:e,...s,code:n?`${n.substring(0,50)}...`:void 0}),i&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(i))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,slug:e,version:1,mock:!0},null,2));return}let o=ora("Deploying function...").start();try{let r=new f,n=new j(r,i),a=await n.deployFunction(e,s);t.verbose&&(o.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),a.code)),0!==a.code&&(o.fail(ee.red(`Error: ${a.msg}`)),process.exit(1)),o.succeed(ee.green("Function deployed successfully!")),console.log(JSON.stringify({success:a.success,slug:a.slug,version:a.version},null,2))}catch(e){o.fail(ee.red("Failed to deploy function")),console.error(ee.red(e.message)),process.exit(1)}}),e9.command("delete").description("删除 Edge Function。⚠️ 警告:此操作不可逆,删除后函数将无法恢复").argument("<slug>",'函数标识符,可通过 "func list" 命令查看所有函数的 slug').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r=parseHeaders(t.header);if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/functions/delete")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{slug:e}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,mock:!0},null,2));return}let n=ora("Deleting function...").start();try{let i=new f,s=new j(i,r),o=await s.deleteFunction(e);t.verbose&&(n.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code)),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Function deleted successfully!")),console.log(JSON.stringify({success:o.success},null,2))}catch(e){n.fail(ee.red("Failed to delete function")),console.error(ee.red(e.message)),process.exit(1)}});let e5=e4.command("bucket").description("Storage Buckets(存储桶)管理命令");e5.command("list").description("列出所有 Storage Buckets").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/list")),t&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(t))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({buckets:[],mock:!0},null,2));return}let r=ora("Fetching buckets...").start();try{let n=new f,i=new j(n,t),s=await i.listBuckets();e.verbose&&(r.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),s.code)),0!==s.code&&(r.fail(ee.red(`Error: ${s.msg}`)),process.exit(1)),r.succeed(ee.green("Buckets fetched successfully!")),console.log(JSON.stringify(s.buckets,null,2))}catch(e){r.fail(ee.red("Failed to fetch buckets")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("get").description("获取 Storage Bucket 详情").argument("<bucket_id>",'存储桶 ID,即存储桶的唯一标识符(如 "avatars"),可通过 "bucket list" 命令查看').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r=parseHeaders(t.header);if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/get")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{bucket_id:e}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({bucket:{id:e},mock:!0},null,2));return}let n=ora("Fetching bucket...").start();try{let i=new f,s=new j(i,r),o=await s.getBucket(e);t.verbose&&(n.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code)),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Bucket fetched successfully!")),console.log(JSON.stringify(o.bucket,null,2))}catch(e){n.fail(ee.red("Failed to fetch bucket")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("create").description("创建新的 Storage Bucket").argument("<bucket_id>",'存储桶 ID,只能包含小写字母、数字和连字符(如 "user-avatars")').option("-n, --name <name>","存储桶显示名称,用于在控制台中展示").option("--public","设置为公开存储桶,允许匿名访问").option("--private","设置为私有存储桶,需要认证才能访问").option("--file-size-limit <bytes>","单个文件大小限制(字节),例如 10485760 表示 10MB",parseInt).option("--allowed-mime-types <types>",'允许上传的文件 MIME 类型(逗号分隔),例如 "image/png,image/jpeg"').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r,n=parseHeaders(t.header);t.public?r=!0:t.private&&(r=!1);let i=t.allowedMimeTypes?t.allowedMimeTypes.split(",").map(e=>e.trim()):void 0,s={name:t.name,public:r,file_size_limit:t.fileSizeLimit,allowed_mime_types:i};if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/create")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{bucket_id:e,...s}),n&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(n))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,bucket_id:e,mock:!0},null,2));return}let o=ora("Creating bucket...").start();try{let r=new f,i=new j(r,n),a=await i.createBucket(e,s);t.verbose&&(o.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),a.code)),0!==a.code&&(o.fail(ee.red(`Error: ${a.msg}`)),process.exit(1)),o.succeed(ee.green("Bucket created successfully!")),console.log(JSON.stringify({success:a.success,bucket_id:a.bucket_id},null,2))}catch(e){o.fail(ee.red("Failed to create bucket")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("update").description("更新 Storage Bucket 配置").argument("<bucket_id>",'存储桶 ID,可通过 "bucket list" 命令查看所有存储桶的 ID').option("--public","设置为公开存储桶,允许匿名访问").option("--private","设置为私有存储桶,需要认证才能访问").option("--file-size-limit <bytes>","单个文件大小限制(字节),例如 10485760 表示 10MB",parseInt).option("--allowed-mime-types <types>",'允许上传的文件 MIME 类型(逗号分隔),例如 "image/png,image/jpeg"').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r,n=parseHeaders(t.header);t.public?r=!0:t.private&&(r=!1);let i=t.allowedMimeTypes?t.allowedMimeTypes.split(",").map(e=>e.trim()):void 0,s={public:r,file_size_limit:t.fileSizeLimit,allowed_mime_types:i};if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/update")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{bucket_id:e,...s}),n&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(n))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,mock:!0},null,2));return}let o=ora("Updating bucket...").start();try{let r=new f,i=new j(r,n),a=await i.updateBucket(e,s);t.verbose&&(o.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),a.code)),0!==a.code&&(o.fail(ee.red(`Error: ${a.msg}`)),process.exit(1)),o.succeed(ee.green("Bucket updated successfully!")),console.log(JSON.stringify({success:a.success},null,2))}catch(e){o.fail(ee.red("Failed to update bucket")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("delete").description("删除 Storage Bucket。⚠️ 警告:此操作不可逆,删除后存储桶及其中的所有文件将无法恢复").argument("<bucket_id>",'存储桶 ID,可通过 "bucket list" 命令查看所有存储桶的 ID').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r=parseHeaders(t.header);if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/delete")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{bucket_id:e}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,mock:!0},null,2));return}let n=ora("Deleting bucket...").start();try{let i=new f,s=new j(i,r),o=await s.deleteBucket(e);t.verbose&&(n.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code)),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Bucket deleted successfully!")),console.log(JSON.stringify({success:o.success},null,2))}catch(e){n.fail(ee.red("Failed to delete bucket")),console.error(ee.red(e.message)),process.exit(1)}});let e7=e4.command("auth").description("Auth(认证配置)管理命令");e7.command("get-config").description("获取 Auth 认证配置,包括邮箱认证、SMTP 等设置").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/auth/config/get")),t&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(t))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({config:{},mock:!0},null,2));return}let r=ora("Fetching auth config...").start();try{let n=new f,i=new j(n,t),s=await i.getAuthConfig();e.verbose&&console.log(ee.cyan("\uD83D\uDCE5 Response code:"),s.code),0!==s.code&&(r.fail(ee.red(`Error: ${s.msg}`)),process.exit(1)),r.succeed(ee.green("Auth config fetched successfully!")),console.log(JSON.stringify(s.config,null,2))}catch(e){r.fail(ee.red("Failed to fetch auth config")),console.error(ee.red(e.message)),process.exit(1)}}),e7.command("update-config").description("更新 Auth 认证配置。至少需要提供一个配置项,更新 SMTP 配置后建议测试邮件发送功能").option("--site-url <url>",'站点 URL,用于邮件中的链接跳转地址(如 "https://myapp.com")').option("--disable-signup","禁用用户自助注册功能").option("--enable-signup","启用用户自助注册功能").option("--external-email-enabled","启用邮箱认证方式").option("--external-email-disabled","禁用邮箱认证方式").option("--mailer-autoconfirm","启用邮箱自动确认(跳过邮件验证)").option("--no-mailer-autoconfirm","禁用邮箱自动确认").option("--double-confirm-changes","启用敏感操作的双重确认").option("--no-double-confirm-changes","禁用敏感操作的双重确认").option("--mailer-secure-email-change-enabled","启用安全邮箱更改流程").option("--mailer-secure-email-change-disabled","禁用安全邮箱更改流程").option("--mailer-otp-exp <seconds>","OTP 验证码过期时间(秒),例如 3600 表示 1 小时",parseInt).option("--password-min-length <length>","用户密码最小长度要求,例如 8",parseInt).option("--password-required-characters <chars>",'密码必需包含的字符类型,例如 "abcABC123"').option("--smtp-host <host>",'SMTP 邮件服务器地址,例如 "smtp.sendgrid.net"').option("--smtp-port <port>","SMTP 邮件服务器端口,例如 587",parseInt).option("--smtp-user <user>","SMTP 认证用户名").option("--smtp-pass <pass>","SMTP 认证密码或 API Key").option("--smtp-admin-email <email>",'发件人邮箱地址,例如 "noreply@myapp.com"').option("--smtp-sender-name <name>",'发件人显示名称,例如 "My App"').option("--smtp-max-frequency <seconds>","同一邮箱的最小发送间隔(秒),用于防止滥用",parseInt).option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t={};void 0!==e.siteUrl&&(t.site_url=e.siteUrl),e.disableSignup&&(t.disable_signup=!0),e.enableSignup&&(t.disable_signup=!1),e.externalEmailEnabled&&(t.external_email_enabled=!0),e.externalEmailDisabled&&(t.external_email_enabled=!1),void 0!==e.mailerAutoconfirm&&(t.mailer_autoconfirm=e.mailerAutoconfirm),void 0!==e.doubleConfirmChanges&&(t.double_confirm_changes=e.doubleConfirmChanges),e.mailerSecureEmailChangeEnabled&&(t.mailer_secure_email_change_enabled=!0),e.mailerSecureEmailChangeDisabled&&(t.mailer_secure_email_change_enabled=!1),void 0!==e.mailerOtpExp&&(t.mailer_otp_exp=e.mailerOtpExp),void 0!==e.passwordMinLength&&(t.password_min_length=e.passwordMinLength),void 0!==e.passwordRequiredCharacters&&(t.password_required_characters=e.passwordRequiredCharacters),void 0!==e.smtpHost&&(t.smtp_host=e.smtpHost),void 0!==e.smtpPort&&(t.smtp_port=e.smtpPort),void 0!==e.smtpUser&&(t.smtp_user=e.smtpUser),void 0!==e.smtpPass&&(t.smtp_pass=e.smtpPass),void 0!==e.smtpAdminEmail&&(t.smtp_admin_email=e.smtpAdminEmail),void 0!==e.smtpSenderName&&(t.smtp_sender_name=e.smtpSenderName),void 0!==e.smtpMaxFrequency&&(t.smtp_max_frequency=e.smtpMaxFrequency),0===Object.keys(t).length&&(console.error(ee.red("Error: At least one config option is required")),process.exit(1));let r=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/auth/config/update")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{config:t}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,mock:!0},null,2));return}let n=ora("Updating auth config...").start();try{let i=new f,s=new j(i,r),o=await s.updateAuthConfig(t);e.verbose&&console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Auth config updated successfully!")),console.log(JSON.stringify({success:o.success},null,2))}catch(e){n.fail(ee.red("Failed to update auth config")),console.error(ee.red(e.message)),process.exit(1)}});let te=new N;te.name("coze-coding-ai").description("Coze Coding CLI - AI-powered tools for image generation, video generation, search, voice, chat, embedding, knowledge, and supabase management").version("0.3.0"),te.addCommand(e$),te.addCommand(ez),te.addCommand(eU),te.addCommand(eH),te.addCommand(eG),te.addCommand(eq),te.addCommand(eJ),te.addCommand(eQ),te.addCommand(eX),te.addCommand(e4),te.addCommand(e6),te.parse(process.argv);
|
|
31
|
+
[${t+1}] ${e.title}`)),console.log(ee.gray(e.url||"")),e.snippet&&console.log(e.snippet)})}catch(e){t.fail(ee.red("Search failed")),console.error(ee.red(e.message)),process.exit(1)}}),eH=new N("tts").description("Text-to-speech conversion").requiredOption("-t, --text <text>","Text to convert to speech").option("--speaker <speaker>","Speaker voice to use","zh_female_xiaohe_uranus_bigtts").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).action(async e=>{let t=ora("Converting text to speech...").start();try{let r=new f,n={},i=parseHeaders(e.header);i&&Object.assign(n,i),e.mock&&(n[eW]=eN,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let s=new S(r,Object.keys(n).length>0?n:void 0),o=await s.synthesize({uid:"cli-user",text:e.text,speaker:e.speaker});t.succeed(ee.green("Text-to-speech conversion completed!")),console.log(ee.cyan(`Audio URL: ${o.audioUri}`)),console.log(ee.cyan(`Audio Size: ${o.audioSize} bytes`))}catch(e){t.fail(ee.red("Text-to-speech conversion failed")),console.error(ee.red(e.message)),process.exit(1)}}),eG=new N("asr").description("Automatic speech recognition").option("-u, --url <url>","Audio file URL").option("-f, --file <path>","Local audio file path (will be base64 encoded)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=ora("Recognizing speech...").start();try{e.url||e.file||(t.fail(ee.red("Please provide either --url or --file")),process.exit(1));let r=new f,n=parseHeaders(e.header),i=new x(r,n,e.verbose),s=e.url?{url:e.url}:{base64Data:eF.readFileSync(eB.resolve(e.file)).toString("base64")},o=await i.recognize(s);t.succeed(ee.green("Speech recognition completed!")),console.log(ee.cyan("\nRecognized text:")),console.log(o.text)}catch(e){t.fail(ee.red("Speech recognition failed")),console.error(ee.red(e.message)),process.exit(1)}}),eq=new N("chat").description("Chat with AI using LLM").requiredOption("-p, --prompt <text>","User prompt").option("-s, --system <text>","System prompt").option("--model <model>","Model to use","doubao-seed-1-8-251228").option("--temperature <number>","Temperature (0-2)","0.7").option("--stream","Enable streaming output",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{try{let t=new f,r=new k(t),n=parseHeaders(e.header),i=[];e.system&&i.push({role:"system",content:e.system}),i.push({role:"user",content:e.prompt});let s={model:e.model,temperature:parseFloat(e.temperature)};if(e.stream){for await(let e of(console.log(ee.cyan("\nAI Response:")),r.stream(i,s,void 0,n)))e.content&&process.stdout.write(e.content.toString());console.log("\n")}else{let e=ora("Generating response...").start(),t=await r.invoke(i,s,void 0,n);e.succeed(ee.green("Response generated!")),console.log(ee.cyan("\nAI Response:")),console.log(t.content)}}catch(e){console.error(ee.red("Chat failed")),console.error(ee.red(e.message)),process.exit(1)}}),eV=process.env.COZE_PROJECT_TYPE,eK="wechat_mini_program"===eV,eZ="app"===eV,eY=(r=process.cwd(),n="server"===eB.basename(r),eK||eZ?n?"src/storage/database/shared/schema.ts":"server/src/storage/database/shared/schema.ts":"src/storage/database/shared/schema.ts"),eJ=new N("db").description("Database operations");eJ.command("generate-models").description("Generate ORM models from database schema").option("-o, --output <path>","Output file path",eY).option("-v, --verbose","Enable verbose output").action(async e=>{let t=ora("Generating models from database...").start();try{let{generateModels:r}=await import("../131.mjs").then(e=>({generateModels:e.generateModels})),n=eB.resolve(e.output);await r({outputPath:n,verbose:e.verbose}),t.succeed(ee.green(`Models generated at ${n}`))}catch(e){t.fail(ee.red("Failed to generate models")),console.error(ee.red(e.message)),process.exit(1)}}),eJ.command("upgrade").description("Push schema changes to database").option("-s, --schema <path>","Schema file path",eY).option("-p, --project <path>","Project root path",process.cwd()).option("-v, --verbose","Enable verbose output").action(async e=>{let t=ora("Pushing schema to database...").start();try{let{upgrade:r}=await import("../131.mjs").then(e=>({upgrade:e.upgrade}));await r({schemaPath:e.schema,projectPath:e.project,verbose:e.verbose}),t.succeed(ee.green("Database schema updated successfully"))}catch(e){t.fail(ee.red("Failed to upgrade database")),console.error(ee.red(e.message)),process.exit(1)}}),eJ.command("diagnose").description("获取数据库运行状态诊断报告").option("-e, --env <env>","目标环境: dev 或 prod,不传则使用 token 中的环境").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/database/diagnose")),e.env&&console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{env:e.env}),t&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(t))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({report:{},mock:!0},null,2));return}let r=ora("Diagnosing database...").start();try{let{Config:n,SupabaseClient:i}=await import("../131.mjs").then(e=>({Config:e.Config,SupabaseClient:e.SupabaseClient})),s=new n,o=new i(s,t),a=await o.diagnoseDatabase(e.env);if(e.verbose&&(r.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),a.code)),0!==a.code){let t=a.msg||"";if(t.toLowerCase().includes("record not found")){let t=e.env||"dev/prod";r.fail(ee.red(`${t} 数据库还未创建,请先创建数据库后再进行诊断`))}else r.fail(ee.red(`Error: ${t}`));process.exit(1)}r.succeed(ee.green("Database diagnosis completed!")),console.log(JSON.stringify(a.report,null,2))}catch(e){r.fail(ee.red("Failed to diagnose database")),console.error(ee.red(e.message)),process.exit(1)}});let eQ=new N("embedding").description("Generate embeddings for text, images, or videos using AI").option("-t, --text <text>","Text to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--image-url <url>","Image URL to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--video-url <url>","Video URL to embed (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-d, --dimensions <number>","Output embedding dimensions",parseInt).option("--instructions <text>","Instructions for embedding generation").option("--multi-embedding","Enable multi-embedding mode").option("--sparse-embedding","Enable sparse embedding mode").option("-o, --output <path>","Output file path for embedding JSON").option("--mock","Use mock mode (test run)").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=e.text&&e.text.length>0,r=e.imageUrl&&e.imageUrl.length>0,n=e.videoUrl&&e.videoUrl.length>0;t||r||n||(console.error(ee.red("Error: At least one of --text, --image-url, or --video-url is required")),process.exit(1));let i=ora("Generating embeddings...").start();try{let s=new f,o={},a=parseHeaders(e.header);a&&Object.assign(o,a),e.mock&&(o[eW]=eN,console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled (test run)")));let l=new y(s,Object.keys(o).length>0?o:void 0,e.verbose),d=await l.embed(t?e.text:void 0,r?e.imageUrl:void 0,n?e.videoUrl:void 0,{dimensions:e.dimensions,instructions:e.instructions,multiEmbedding:e.multiEmbedding,sparseEmbedding:e.sparseEmbedding});if(i.succeed(ee.green("Embeddings generated successfully!")),console.log(ee.cyan(`Model: ${d.model}`)),d.data?.embedding&&(console.log(ee.cyan(`Embedding dimensions: ${d.data.embedding.length}`)),console.log(ee.gray(`First 5 values: [${d.data.embedding.slice(0,5).join(", ")}...]`))),d.data?.multi_embedding&&console.log(ee.cyan(`Multi-embedding vectors: ${d.data.multi_embedding.length}`)),d.data?.sparse_embedding&&console.log(ee.cyan(`Sparse embedding items: ${d.data.sparse_embedding.length}`)),d.usage&&console.log(ee.gray(`Tokens used: ${d.usage.total_tokens}`)),e.output){let t=eB.resolve(e.output);eF.writeFileSync(t,JSON.stringify(d,null,2)),console.log(ee.green(`Embedding saved to ${t}`))}}catch(e){i.fail(ee.red("Failed to generate embeddings")),console.error(ee.red(e.message)),process.exit(1)}}),eX=new N("knowledge").description("Knowledge Base tools");eX.command("search").description("Search for knowledge chunks").requiredOption("-q, --query <text>","Search query").option("-d, --dataset <name>","Dataset names (tables) to search in (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-k, --top-k <number>","Number of results to return","5").option("-m, --min-score <number>","Minimum similarity score","0.0").option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=ora("Searching...").start();try{let r=new f,n=parseHeaders(e.header),i=new T(r,n,e.verbose),s=await i.search(e.query,e.dataset.length>0?e.dataset:void 0,parseInt(e.topK),parseFloat(e.minScore));if(0!==s.code)return void t.fail(ee.red(`Error ${s.code}: ${s.msg}`));t.succeed(ee.green("Search completed!")),console.log(ee.bold("\nSearch Results:")),console.log("────────────────────────────────────────────────────────────────────────────────"),0===s.chunks.length&&console.log(ee.yellow("No matching chunks found.")),s.chunks.forEach((e,t)=>{console.log(ee.cyan(`[${t+1}] Score: ${e.score.toFixed(4)}`)),e.doc_id&&console.log(ee.dim(`Doc ID: ${e.doc_id}`)),e.chunk_id&&console.log(ee.dim(`Chunk ID: ${e.chunk_id}`)),console.log(ee.green("Content:")),console.log(e.content),console.log("────────────────────────────────────────────────────────────────────────────────")})}catch(e){t.fail(ee.red("Search failed")),console.error(ee.red(e.message)),process.exit(1)}}),eX.command("add").description("Add documents to knowledge base").requiredOption("-d, --dataset <name>","Dataset name (table) to add to").option("-c, --content <text>","Raw text content to add (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("-u, --url <url>","Web URL to add (can be used multiple times)",(e,t)=>t.concat([e]),[]).option("--chunk-separator <char>","Chunk separator","\\n").option("--max-tokens <number>","Max tokens per chunk","500").option("--remove-extra-spaces","Normalize extra spaces",!1).option("--remove-urls-emails","Strip URLs and emails",!1).option("-H, --header <header>",'Custom HTTP header (format: "Key: Value" or "Key=Value", can be used multiple times)',(e,t)=>t.concat([e]),[]).option("--verbose","Enable verbose logging to print HTTP request details",!1).action(async e=>{let t=ora("Adding documents...").start();try{let r=new f,n=parseHeaders(e.header),i=new T(r,n,e.verbose),s=[];if(e.content&&e.content.forEach(e=>{s.push({source:b.TEXT,raw_data:e})}),e.url&&e.url.forEach(e=>{s.push({source:b.URL,url:e})}),0===s.length)return void t.fail(ee.red("No content or URL provided to add."));let o={separator:e.chunkSeparator.replace(/\\n/g,"\n"),max_tokens:parseInt(e.maxTokens),remove_extra_spaces:e.removeExtraSpaces,remove_urls_emails:e.removeUrlsEmails},a=await i.addDocuments(s,e.dataset,o);if(0!==a.code)return void t.fail(ee.red(`Error ${a.code}: ${a.msg}`));t.succeed(ee.green("Documents added successfully!")),a.doc_ids&&a.doc_ids.length>0&&(console.log(ee.cyan(`
|
|
32
|
+
Added ${a.doc_ids.length} documents.`)),console.log(ee.dim(`Doc IDs: ${a.doc_ids.join(", ")}`)))}catch(e){t.fail(ee.red("Add documents failed")),console.error(ee.red(e.message)),process.exit(1)}});let e0=c("os"),e1=c("crypto"),e2=c("./node_modules/archiver/index.js");var e3=c.n(e2);function normalizePrefix(e){return e&&(e=e.replace(/^\/+|\/+$/g,""))?e+"/":""}let e8={".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript",".json":"application/json",".xml":"application/xml",".txt":"text/plain",".csv":"text/csv",".md":"text/markdown",".yaml":"text/yaml",".yml":"text/yaml",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp",".ico":"image/x-icon",".bmp":"image/bmp",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".flac":"audio/flac",".mp4":"video/mp4",".webm":"video/webm",".avi":"video/x-msvideo",".mov":"video/quicktime",".pdf":"application/pdf",".zip":"application/zip",".gz":"application/gzip",".tar":"application/x-tar",".rar":"application/vnd.rar",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".eot":"application/vnd.ms-fontobject"};function guessMimeType(e){return e8[eB.extname(e).toLowerCase()]||"application/octet-stream"}function buildObjectKey(e,t,r,n){let i=n(t);if(r){let e=eB.extname(i),t=i.slice(0,i.length-e.length),r=eB.posix.dirname(t),n=eB.posix.basename(t),s=(0,e1.randomUUID)().replace(/-/g,"").slice(0,8);i="."!==r?`${r}/${n}_${s}${e}`:`${n}_${s}${e}`}return e+i}function walkDirFiles(e){let t=[],r=eB.dirname(e);function walk(e){for(let n of eF.readdirSync(e,{withFileTypes:!0})){let i=eB.join(e,n.name);if(n.isDirectory())walk(i);else if(n.isFile()){let e=eB.relative(r,i).split(eB.sep).join("/");t.push({absolutePath:i,relativeKey:e})}}}return walk(e),t}async function zipDirectory(e){let t=eB.basename(e),r=`${t}.zip`,n=eF.mkdtempSync(eB.join(e0.tmpdir(),"storage-upload-")),i=eB.join(n,r);return new Promise((r,n)=>{let s=eF.createWriteStream(i),o=e3()("zip",{zlib:{level:9}});s.on("close",()=>r(i)),o.on("error",e=>n(e)),o.pipe(s),o.directory(e,t),o.finalize()})}async function uploadFileToS3(e,t,r,n,i){let s=guessMimeType(r);if(eF.statSync(r).size<=i){let i=eF.readFileSync(r);await e.send(new R({Bucket:t,Key:n,Body:i,ContentType:s}))}else{let i=new w({client:e,params:{Bucket:t,Key:n,Body:eF.createReadStream(r),ContentType:s}});await i.done()}}let e6=new N("storage").description("Object storage commands");e6.command("upload").description("Upload files and directories to object storage.\nOutputs JSON with name-to-URL mappings to stdout.\n\nExamples:\n coze-coding-ai storage upload ./data --prefix my-project/\n coze-coding-ai storage upload file1.txt dir1/ dir2/ --prefix uploads/\n coze-coding-ai storage upload report.csv --prefix reports/ --expire 3600").argument("<paths...>","File or directory paths to upload").option("-p, --prefix <prefix>","Target S3 key prefix (virtual directory)","").option("--uuid","Append UUID suffix to filenames to avoid collisions").option("-e, --expire <seconds>","Presigned URL expiration in seconds (default: 86400 = 24h)","86400").option("-t, --threshold <bytes>","Size threshold for streaming upload (default: 5MB)","5242880").option("-c, --max-concurrency <n>","Number of parallel uploads (default: 4)","4").action(async(e,t)=>{let r,n,i,{S3Storage:s}=await import("../131.mjs").then(e=>({S3Storage:e.S3Storage})),o=[],a=[];for(let t of e){let e=eB.resolve(t);if(!eF.existsSync(e)){console.error(`Warning: ${t} does not exist, skipping`);continue}let r=eF.statSync(e);r.isFile()?o.push(e):r.isDirectory()?a.push(e):console.error(`Warning: ${t} is not a file or directory, skipping`)}0===o.length&&0===a.length&&(console.log(JSON.stringify({_error:"No files or directories found to upload."})),process.exit(1));let l=normalizePrefix(t.prefix),d=parseInt(t.expire,10),u=parseInt(t.threshold,10),c=parseInt(t.maxConcurrency,10);try{n=(r=new s).resolveBucket(void 0)}catch(e){console.log(JSON.stringify({_error:`S3 configuration error: ${e.message}`})),process.exit(1)}let sanitizeFn=e=>r.sanitizeFileName(e),h=[];for(let e of o){let r=eB.basename(e),n=buildObjectKey(l,r,!!t.uuid,sanitizeFn);h.push({localPath:e,objectKey:n,displayName:r})}let f=[];for(let e of a)for(let{absolutePath:r,relativeKey:n}of walkDirFiles(e)){let e=buildObjectKey(l,n,!!t.uuid,sanitizeFn);f.push({localPath:r,objectKey:e,displayName:n})}let p=[...h,...f],b=[];for(let e of a){let r=eB.basename(e),n=buildObjectKey(l,`${r}.zip`,!!t.uuid,sanitizeFn);b.push({dirPath:e,objectKey:n,displayName:`${r}/`})}try{i=r.getClient()}catch(e){console.log(JSON.stringify({_error:`Failed to initialize S3 client: ${e.message}`})),process.exit(1)}let g={},y=[],w=new Set(h.map(e=>e.displayName)),v=[...p],S=[];async function processFileTask(e){try{if(await uploadFileToS3(i,n,e.localPath,e.objectKey,u),w.has(e.displayName)){let t=await r.generatePresignedUrl({key:e.objectKey,expireTime:d});g[e.displayName]=t}}catch(t){y.push({name:e.displayName,error:t.message})}}for(;v.length>0||S.length>0;){for(;S.length<c&&v.length>0;){let e=processFileTask(v.shift()).then(()=>{S.splice(S.indexOf(e),1)});S.push(e)}S.length>0&&await Promise.race(S)}for(let e of b){let t=null;try{t=await zipDirectory(e.dirPath),await uploadFileToS3(i,n,t,e.objectKey,u);let s=await r.generatePresignedUrl({key:e.objectKey,expireTime:d});g[e.displayName]=s}catch(t){y.push({name:e.displayName,error:t.message})}finally{if(t)try{eF.unlinkSync(t),eF.rmdirSync(eB.dirname(t))}catch{}}}let x={...g};y.length>0&&(x._failures=y),console.log(JSON.stringify(x,null,2)),y.length>0&&process.exit(1)});let e4=new N("supabase").description("Supabase 管理命令,包括 Edge Functions、Storage Buckets 和 Auth 配置管理"),e9=e4.command("func").description("Edge Functions(边缘函数)管理命令");e9.command("list").description("列出所有 Edge Functions").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/functions/list")),t&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(t))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({functions:[],mock:!0},null,2));return}let r=ora("Fetching functions...").start();try{let n=new f,i=new j(n,t),s=await i.listFunctions();e.verbose&&(r.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),s.code)),0!==s.code&&(r.fail(ee.red(`Error: ${s.msg}`)),process.exit(1)),r.succeed(ee.green("Functions fetched successfully!")),console.log(JSON.stringify(s.functions,null,2))}catch(e){r.fail(ee.red("Failed to fetch functions")),console.error(ee.red(e.message)),process.exit(1)}}),e9.command("get").description("获取 Edge Function 详情和源码").argument("<slug>",'函数标识符,即函数的唯一名称(如 "hello-world"),可通过 "func list" 命令查看').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r=parseHeaders(t.header);if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/functions/get")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{slug:e}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({function:{slug:e},files:[],mock:!0},null,2));return}let n=ora("Fetching function...").start();try{let i=new f,s=new j(i,r),o=await s.getFunction(e);t.verbose&&(n.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code)),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Function fetched successfully!")),console.log(JSON.stringify({function:o.function,files:o.files},null,2))}catch(e){n.fail(ee.red("Failed to fetch function")),console.error(ee.red(e.message)),process.exit(1)}}),e9.command("deploy").description("部署或更新 Edge Function。如果函数已存在则更新,不存在则创建新函数").argument("<slug>",'函数标识符,只能包含小写字母、数字和连字符(如 "hello-world")').option("-c, --code <code>","函数代码字符串(用于单文件函数),与 --file 二选一").option("-f, --file <items...>","文件名和内容对,格式:--file <文件名> <内容>,可多次使用,例如:--file index.ts 'Deno.serve(...)' --file handler.ts 'export ...'").option("-n, --name <name>","函数显示名称,用于在控制台中展示").option("-e, --entrypoint <path>",'入口文件名称,多文件部署时必需,指定主入口文件(如 "index.ts")').option("--verify-jwt","启用 JWT 验证,调用函数需要携带有效的 JWT token").option("--no-verify-jwt","禁用 JWT 验证").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r,n=t.code;if(t.file&&t.file.length>0){t.file.length%2!=0&&(console.error(ee.red("Error: --file requires pairs of <name> <content>")),process.exit(1)),r=[];for(let e=0;e<t.file.length;e+=2)r.push({name:t.file[e],content:t.file[e+1]})}n||r||(console.error(ee.red("Error: Either --code or --file is required")),process.exit(1));let i=parseHeaders(t.header),s={code:n,files:r,name:t.name,entrypoint:t.entrypoint,verify_jwt:t.verifyJwt};if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/functions/deploy")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{slug:e,...s,code:n?`${n.substring(0,50)}...`:void 0}),i&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(i))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,slug:e,version:1,mock:!0},null,2));return}let o=ora("Deploying function...").start();try{let r=new f,n=new j(r,i),a=await n.deployFunction(e,s);t.verbose&&(o.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),a.code)),0!==a.code&&(o.fail(ee.red(`Error: ${a.msg}`)),process.exit(1)),o.succeed(ee.green("Function deployed successfully!")),console.log(JSON.stringify({success:a.success,slug:a.slug,version:a.version},null,2))}catch(e){o.fail(ee.red("Failed to deploy function")),console.error(ee.red(e.message)),process.exit(1)}}),e9.command("delete").description("删除 Edge Function。⚠️ 警告:此操作不可逆,删除后函数将无法恢复").argument("<slug>",'函数标识符,可通过 "func list" 命令查看所有函数的 slug').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r=parseHeaders(t.header);if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/functions/delete")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{slug:e}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,mock:!0},null,2));return}let n=ora("Deleting function...").start();try{let i=new f,s=new j(i,r),o=await s.deleteFunction(e);t.verbose&&(n.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code)),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Function deleted successfully!")),console.log(JSON.stringify({success:o.success},null,2))}catch(e){n.fail(ee.red("Failed to delete function")),console.error(ee.red(e.message)),process.exit(1)}});let e5=e4.command("bucket").description("Storage Buckets(存储桶)管理命令");e5.command("list").description("列出所有 Storage Buckets").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/list")),t&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(t))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({buckets:[],mock:!0},null,2));return}let r=ora("Fetching buckets...").start();try{let n=new f,i=new j(n,t),s=await i.listBuckets();e.verbose&&(r.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),s.code)),0!==s.code&&(r.fail(ee.red(`Error: ${s.msg}`)),process.exit(1)),r.succeed(ee.green("Buckets fetched successfully!")),console.log(JSON.stringify(s.buckets,null,2))}catch(e){r.fail(ee.red("Failed to fetch buckets")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("get").description("获取 Storage Bucket 详情").argument("<bucket_id>",'存储桶 ID,即存储桶的唯一标识符(如 "avatars"),可通过 "bucket list" 命令查看').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r=parseHeaders(t.header);if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/get")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{bucket_id:e}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({bucket:{id:e},mock:!0},null,2));return}let n=ora("Fetching bucket...").start();try{let i=new f,s=new j(i,r),o=await s.getBucket(e);t.verbose&&(n.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code)),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Bucket fetched successfully!")),console.log(JSON.stringify(o.bucket,null,2))}catch(e){n.fail(ee.red("Failed to fetch bucket")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("create").description("创建新的 Storage Bucket").argument("<bucket_id>",'存储桶 ID,只能包含小写字母、数字和连字符(如 "user-avatars")').option("-n, --name <name>","存储桶显示名称,用于在控制台中展示").option("--public","设置为公开存储桶,允许匿名访问").option("--private","设置为私有存储桶,需要认证才能访问").option("--file-size-limit <bytes>","单个文件大小限制(字节),例如 10485760 表示 10MB",parseInt).option("--allowed-mime-types <types>",'允许上传的文件 MIME 类型(逗号分隔),例如 "image/png,image/jpeg"').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r,n=parseHeaders(t.header);t.public?r=!0:t.private&&(r=!1);let i=t.allowedMimeTypes?t.allowedMimeTypes.split(",").map(e=>e.trim()):void 0,s={name:t.name,public:r,file_size_limit:t.fileSizeLimit,allowed_mime_types:i};if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/create")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{bucket_id:e,...s}),n&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(n))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,bucket_id:e,mock:!0},null,2));return}let o=ora("Creating bucket...").start();try{let r=new f,i=new j(r,n),a=await i.createBucket(e,s);t.verbose&&(o.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),a.code)),0!==a.code&&(o.fail(ee.red(`Error: ${a.msg}`)),process.exit(1)),o.succeed(ee.green("Bucket created successfully!")),console.log(JSON.stringify({success:a.success,bucket_id:a.bucket_id},null,2))}catch(e){o.fail(ee.red("Failed to create bucket")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("update").description("更新 Storage Bucket 配置").argument("<bucket_id>",'存储桶 ID,可通过 "bucket list" 命令查看所有存储桶的 ID').option("--public","设置为公开存储桶,允许匿名访问").option("--private","设置为私有存储桶,需要认证才能访问").option("--file-size-limit <bytes>","单个文件大小限制(字节),例如 10485760 表示 10MB",parseInt).option("--allowed-mime-types <types>",'允许上传的文件 MIME 类型(逗号分隔),例如 "image/png,image/jpeg"').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r,n=parseHeaders(t.header);t.public?r=!0:t.private&&(r=!1);let i=t.allowedMimeTypes?t.allowedMimeTypes.split(",").map(e=>e.trim()):void 0,s={public:r,file_size_limit:t.fileSizeLimit,allowed_mime_types:i};if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/update")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{bucket_id:e,...s}),n&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(n))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,mock:!0},null,2));return}let o=ora("Updating bucket...").start();try{let r=new f,i=new j(r,n),a=await i.updateBucket(e,s);t.verbose&&(o.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),a.code)),0!==a.code&&(o.fail(ee.red(`Error: ${a.msg}`)),process.exit(1)),o.succeed(ee.green("Bucket updated successfully!")),console.log(JSON.stringify({success:a.success},null,2))}catch(e){o.fail(ee.red("Failed to update bucket")),console.error(ee.red(e.message)),process.exit(1)}}),e5.command("delete").description("删除 Storage Bucket。⚠️ 警告:此操作不可逆,删除后存储桶及其中的所有文件将无法恢复").argument("<bucket_id>",'存储桶 ID,可通过 "bucket list" 命令查看所有存储桶的 ID').option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async(e,t)=>{let r=parseHeaders(t.header);if(t.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v1/supabase/buckets/delete")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{bucket_id:e}),r&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(r))),t.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,mock:!0},null,2));return}let n=ora("Deleting bucket...").start();try{let i=new f,s=new j(i,r),o=await s.deleteBucket(e);t.verbose&&(n.stop(),console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code)),0!==o.code&&(n.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),n.succeed(ee.green("Bucket deleted successfully!")),console.log(JSON.stringify({success:o.success},null,2))}catch(e){n.fail(ee.red("Failed to delete bucket")),console.error(ee.red(e.message)),process.exit(1)}});let e7=e4.command("auth").description("Auth(认证配置)管理命令");e7.command("get-config-v2").description("获取 Auth 认证配置,包括邮箱认证、SMTP 等设置").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v2/supabase/auth/config/get")),t&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(t))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({config:{},mock:!0},null,2));return}let r=ora("Fetching auth config...").start();try{let n=new f,i=new j(n,t),s=await i.getAuthConfigV2();e.verbose&&console.log(ee.cyan("\uD83D\uDCE5 Response code:"),s.code),0!==s.code&&(r.fail(ee.red(`Error: ${s.msg}`)),process.exit(1)),1===s.status?(r.fail(ee.red("Error: Auth 尚未初始化,请先初始化 Supabase")),process.exit(1)):2===s.status?(r.fail(ee.red("Error: 当前项目非 Supabase 数据库类型,不支持 Auth 集成配置")),process.exit(1)):4===s.status?(r.fail(ee.red("Error: Auth 功能已被禁用")),process.exit(1)):5===s.status?(r.fail(ee.red("Error: 当前项目类型,不支持 Auth 集成配置")),process.exit(1)):3!==s.status&&(r.fail(ee.red(`Error: Auth 状态异常 (status=${s.status})`)),process.exit(1)),r.succeed(ee.green("Auth config fetched successfully!"));let o=null;s.config&&(o={status:s.status,config:{project_id:s.config.project_id,icon_url:s.config.icon_url,name:s.config.name,email_config:s.config.email_config||null,phone_config:s.config.phone_config||null}}),console.log(JSON.stringify(o,null,2))}catch(e){r.fail(ee.red("Failed to fetch auth config")),console.error(ee.red(e.message)),process.exit(1)}}),e7.command("update-config-v2").description("更新 Auth 认证配置(V2)。至少需要提供一个配置项,更新 SMTP 配置后建议测试邮件发送功能").option("--name <name>","项目名称").option("--site-url <url>",'站点 URL,用于邮件中的链接跳转地址(如 "https://myapp.com")').option("--disable-signup","禁用用户自助注册功能").option("--enable-signup","启用用户自助注册功能").option("--external-email-enabled","启用邮箱认证方式").option("--external-email-disabled","禁用邮箱认证方式").option("--mailer-autoconfirm","启用邮箱自动确认(跳过邮件验证)").option("--no-mailer-autoconfirm","禁用邮箱自动确认").option("--double-confirm-changes","启用敏感操作的双重确认").option("--no-double-confirm-changes","禁用敏感操作的双重确认").option("--mailer-secure-email-change-enabled","启用安全邮箱更改流程").option("--mailer-secure-email-change-disabled","禁用安全邮箱更改流程").option("--mailer-otp-exp <seconds>","OTP 验证码过期时间(秒),例如 3600 表示 1 小时",parseInt).option("--password-min-length <length>","用户密码最小长度要求,例如 8",parseInt).option("--password-required-characters <chars>",'密码必需包含的字符类型,例如 "abcABC123"').option("--smtp-host <host>",'SMTP 邮件服务器地址,例如 "smtp.sendgrid.net"').option("--smtp-port <port>","SMTP 邮件服务器端口,例如 587",parseInt).option("--smtp-user <user>","SMTP 认证用户名").option("--smtp-pass <pass>","SMTP 认证密码或 API Key").option("--smtp-admin-email <email>",'发件人邮箱地址,例如 "noreply@myapp.com"').option("--smtp-sender-name <name>",'发件人显示名称,例如 "My App"').option("--smtp-max-frequency <seconds>","同一邮箱的最小发送间隔(秒),用于防止滥用",parseInt).option("--external-phone-enabled","启用手机号认证方式").option("--external-phone-disabled","禁用手机号认证方式").option("--mock","使用 mock 模式(测试运行,不会真正执行操作)").option("-H, --header <header>",'自定义 HTTP 请求头,格式: "Key: Value" 或 "Key=Value",可多次使用',(e,t)=>t.concat([e]),[]).option("--verbose","显示详细的 HTTP 请求和响应日志",!1).action(async e=>{let t={};void 0!==e.name&&(t.app_name=e.name);let r={};void 0!==e.siteUrl&&(r.site_url=e.siteUrl),e.disableSignup&&(r.disable_signup=!0),e.enableSignup&&(r.disable_signup=!1),e.externalEmailEnabled&&(r.external_email_enabled=!0),e.externalEmailDisabled&&(r.external_email_enabled=!1),void 0!==e.mailerAutoconfirm&&(r.mailer_auto_confirm=e.mailerAutoconfirm),void 0!==e.doubleConfirmChanges&&(r.double_confirm_changes=e.doubleConfirmChanges),e.mailerSecureEmailChangeEnabled&&(r.mailer_secure_email_change_enabled=!0),e.mailerSecureEmailChangeDisabled&&(r.mailer_secure_email_change_enabled=!1),void 0!==e.mailerOtpExp&&(r.mailer_otp_exp=e.mailerOtpExp),void 0!==e.passwordMinLength&&(r.password_min_length=e.passwordMinLength),void 0!==e.passwordRequiredCharacters&&(r.password_required_characters=e.passwordRequiredCharacters),void 0!==e.smtpHost&&(r.smtp_host=e.smtpHost),void 0!==e.smtpPort&&(r.smtp_port=e.smtpPort),void 0!==e.smtpUser&&(r.smtp_user=e.smtpUser),void 0!==e.smtpPass&&(r.smtp_pass=e.smtpPass),void 0!==e.smtpAdminEmail&&(r.smtp_admin_email=e.smtpAdminEmail),void 0!==e.smtpSenderName&&(r.smtp_sender_name=e.smtpSenderName),void 0!==e.smtpMaxFrequency&&(r.smtp_max_frequency=e.smtpMaxFrequency),Object.keys(r).length>0&&(t.email_config=r);let n={};e.externalPhoneEnabled&&(n.external_phone_enabled=!0),e.externalPhoneDisabled&&(n.external_phone_enabled=!1),Object.keys(n).length>0&&(t.phone_config=n),0===Object.keys(t).length&&(console.error(ee.red("Error: 至少需要提供一个配置项")),process.exit(1));let i=parseHeaders(e.header);if(e.verbose&&(console.log(ee.cyan("\uD83D\uDCE4 Request: POST /v2/supabase/auth/config/update")),console.log(ee.cyan("\uD83D\uDCE4 Payload:"),{config:t}),i&&console.log(ee.cyan("\uD83D\uDCE4 Headers:"),sanitizeHeaders(i))),e.mock){console.log(ee.yellow("\uD83E\uDDEA Mock mode enabled - skipping actual request")),console.log(JSON.stringify({success:!0,should_update_ui:!1,mock:!0},null,2));return}let s=ora("Updating auth config...").start();try{let r=new f,n=new j(r,i),o=await n.updateAuthConfigV2(t);e.verbose&&console.log(ee.cyan("\uD83D\uDCE5 Response code:"),o.code),0!==o.code&&(s.fail(ee.red(`Error: ${o.msg}`)),process.exit(1)),s.succeed(ee.green("Auth config updated successfully!")),console.log(JSON.stringify({success:o.success,should_update_ui:o.should_update_ui},null,2))}catch(e){s.fail(ee.red("Failed to update auth config")),console.error(ee.red(e.message)),process.exit(1)}});let te=new N;te.name("coze-coding-ai").description("Coze Coding CLI - AI-powered tools for image generation, video generation, search, voice, chat, embedding, knowledge, and supabase management").version("0.3.0"),te.addCommand(e$),te.addCommand(ez),te.addCommand(eU),te.addCommand(eH),te.addCommand(eG),te.addCommand(eq),te.addCommand(eJ),te.addCommand(eQ),te.addCommand(eX),te.addCommand(e4),te.addCommand(e6),te.parse(process.argv);
|