diff --git a/dist/index.js b/dist/index.js index 6a838b2..e065cb5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -46,7 +46,7 @@ var g=p(43106);var A=p(56118);var w=p(53296);var Tar=function(i){if(!(this insta * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var g=p(41622);var A=p(53296);var Zip=function(i){if(!(this instanceof Zip)){return new Zip(i)}i=this.options=A.defaults(i,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new g(i)};Zip.prototype.append=function(i,u,p){this.engine.entry(i,u,p)};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)};i.exports=Zip},97329:function(i,u){(function(i,p){true?p(u):0})(this,(function(i){"use strict";function apply(i,...u){return(...p)=>i(...u,...p)}function initialParams(i){return function(...u){var p=u.pop();return i.call(this,u,p)}}var u=typeof queueMicrotask==="function"&&queueMicrotask;var p=typeof setImmediate==="function"&&setImmediate;var g=typeof process==="object"&&typeof process.nextTick==="function";function fallback(i){setTimeout(i,0)}function wrap(i){return(u,...p)=>i((()=>u(...p)))}var A;if(u){A=queueMicrotask}else if(p){A=setImmediate}else if(g){A=process.nextTick}else{A=fallback}var w=wrap(A);function asyncify(i){if(isAsync(i)){return function(...u){const p=u.pop();const g=i.apply(this,u);return handlePromise(g,p)}}return initialParams((function(u,p){var g;try{g=i.apply(this,u)}catch(i){return p(i)}if(g&&typeof g.then==="function"){return handlePromise(g,p)}else{p(null,g)}}))}function handlePromise(i,u){return i.then((i=>{invokeCallback(u,null,i)}),(i=>{invokeCallback(u,i&&(i instanceof Error||i.message)?i:new Error(i))}))}function invokeCallback(i,u,p){try{i(u,p)}catch(i){w((i=>{throw i}),i)}}function isAsync(i){return i[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(i){return i[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(i){return typeof i[Symbol.asyncIterator]==="function"}function wrapAsync(i){if(typeof i!=="function")throw new Error("expected a function");return isAsync(i)?asyncify(i):i}function awaitify(i,u){if(!u)u=i.length;if(!u)throw new Error("arity is undefined");function awaitable(...p){if(typeof p[u-1]==="function"){return i.apply(this,p)}return new Promise(((g,A)=>{p[u-1]=(i,...u)=>{if(i)return A(i);g(u.length>1?u:u[0])};i.apply(this,p)}))}return awaitable}function applyEach$1(i){return function applyEach(u,...p){const g=awaitify((function(g){var A=this;return i(u,((i,u)=>{wrapAsync(i).apply(A,p.concat(u))}),g)}));return g}}function _asyncMap(i,u,p,g){u=u||[];var A=[];var w=0;var C=wrapAsync(p);return i(u,((i,u,p)=>{var g=w++;C(i,((i,u)=>{A[g]=u;p(i)}))}),(i=>{g(i,A)}))}function isArrayLike(i){return i&&typeof i.length==="number"&&i.length>=0&&i.length%1===0}const C={};var S=C;function once(i){function wrapper(...u){if(i===null)return;var p=i;i=null;p.apply(this,u)}Object.assign(wrapper,i);return wrapper}function getIterator(i){return i[Symbol.iterator]&&i[Symbol.iterator]()}function createArrayIterator(i){var u=-1;var p=i.length;return function next(){return++u
=u||C||A)return;C=true;i.next().then((({value:i,done:u})=>{if(w||A)return;C=false;if(u){A=true;if(v<=0){g(null)}return}v++;p(i,B,iterateeCallback);B++;replenish()})).catch(handleError)}function iterateeCallback(i,u){v-=1;if(w)return;if(i)return handleError(i);if(i===false){A=true;w=true;return}if(u===S||A&&v<=0){A=true;return g(null)}replenish()}function handleError(i){if(w)return;C=false;A=true;g(i)}replenish()}var eachOfLimit$2=i=>(u,p,g)=>{g=once(g);if(i<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!u){return g(null)}if(isAsyncGenerator(u)){return asyncEachOfLimit(u,i,p,g)}if(isAsyncIterable(u)){return asyncEachOfLimit(u[Symbol.asyncIterator](),i,p,g)}var A=createIterator(u);var w=false;var C=false;var v=0;var B=false;function iterateeCallback(i,u){if(C)return;v-=1;if(i){w=true;g(i)}else if(i===false){w=true;C=true}else if(u===S||w&&v<=0){w=true;return g(null)}else if(!B){replenish()}}function replenish(){B=true;while(v1?g:g[0])}callback[O]=new Promise(((p,g)=>{i=p,u=g}));return callback}function auto(i,u,p){if(typeof u!=="number"){p=u;u=null}p=once(p||promiseCallback());var g=Object.keys(i).length;if(!g){return p(null)}if(!u){u=g}var A={};var w=0;var C=false;var S=false;var v=Object.create(null);var B=[];var _=[];var T={};Object.keys(i).forEach((u=>{var p=i[u];if(!Array.isArray(p)){enqueueTask(u,[p]);_.push(u);return}var g=p.slice(0,p.length-1);var A=g.length;if(A===0){enqueueTask(u,p);_.push(u);return}T[u]=A;g.forEach((w=>{if(!i[w]){throw new Error("async.auto task `"+u+"` has a non-existent dependency `"+w+"` in "+g.join(", "))}addListener(w,(()=>{A--;if(A===0){enqueueTask(u,p)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(i,u){B.push((()=>runTask(i,u)))}function processQueue(){if(C)return;if(B.length===0&&w===0){return p(null,A)}while(B.length&&wi()));processQueue()}function runTask(i,u){if(S)return;var g=onlyOnce(((u,...g)=>{w--;if(u===false){C=true;return}if(g.length<2){[g]=g}if(u){var B={};Object.keys(A).forEach((i=>{B[i]=A[i]}));B[i]=g;S=true;v=Object.create(null);if(C)return;p(u,B)}else{A[i]=g;taskComplete(i)}}));w++;var B=wrapAsync(u[u.length-1]);if(u.length>1){B(A,g)}else{B(g)}}function checkForDeadlocks(){var i;var u=0;while(_.length){i=_.pop();u++;getDependents(i).forEach((i=>{if(--T[i]===0){_.push(i)}}))}if(u!==g){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(u){var p=[];Object.keys(i).forEach((g=>{const A=i[g];if(Array.isArray(A)&&A.indexOf(u)>=0){p.push(g)}}));return p}return p[O]}var D=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var Q=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var P=/,/;var L=/(=.+)?(\s*)$/;function stripComments(i){let u="";let p=0;let g=i.indexOf("*/");while(p {A(u,i,((i,p)=>{u=p;g(i)}))}),(i=>g(i,u)))}var U=awaitify(reduce,4);function seq(...i){var u=i.map(wrapAsync);return function(...i){var p=this;var g=i[i.length-1];if(typeof g=="function"){i.pop()}else{g=promiseCallback()}U(u,i,((i,u,g)=>{u.apply(p,i.concat(((i,...u)=>{g(i,u)})))}),((i,u)=>g(i,...u)));return g[O]}}function compose(...i){return seq(...i.reverse())}function mapLimit(i,u,p,g){return _asyncMap(eachOfLimit$2(u),i,p,g)}var H=awaitify(mapLimit,4);function concatLimit(i,u,p,g){var A=wrapAsync(p);return H(i,u,((i,u)=>{A(i,((i,...p)=>{if(i)return u(i);return u(i,p)}))}),((i,u)=>{var p=[];for(var A=0;A 0){return g}}return[]}shiftLastFrom(i){return this.getFirst(this._lists.slice(i).reverse()).shift()}};var B=v;var _;_=class BottleneckError extends Error{};var T=_;var N,x,k,O,D;O=10;x=5;D=u;N=T;k=class Job{constructor(i,u,p,g,A,w,C,S){this.task=i;this.args=u;this.rejectOnDrop=A;this.Events=w;this._states=C;this.Promise=S;this.options=D.load(p,g);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===g.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((i,u)=>{this._resolve=i;this._reject=u}));this.retryCount=0}_sanitizePriority(i){var u;u=~~i!==i?x:i;if(u<0){return 0}else if(u>O-1){return O-1}else{return u}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:i,message:u="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(i!=null?i:new N(u))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(i){var u;u=this._states.jobStatus(this.options.id);if(!(u===i||i==="DONE"&&u===null)){throw new N(`Invalid job status ${u}, expected ${i}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(i,u){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:i,blocked:u})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(i,u,p,g){var A,w,C;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}w={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",w);try{C=await(i!=null?i.schedule(this.options,this.task,...this.args):this.task(...this.args));if(u()){this.doDone(w);await g(this.options,w);this._assertStatus("DONE");return this._resolve(C)}}catch(i){A=i;return this._onFailure(A,w,u,p,g)}}doExpire(i,u,p){var g,A;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");A={args:this.args,options:this.options,retryCount:this.retryCount};g=new N(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(g,A,i,u,p)}async _onFailure(i,u,p,g,A){var w,C;if(p()){w=await this.Events.trigger("failed",i,u);if(w!=null){C=~~w;this.Events.trigger("retry",`Retrying ${this.options.id} after ${C} ms`,u);this.retryCount++;return g(C)}else{this.doDone(u);await A(this.options,u);this._assertStatus("DONE");return this._reject(i)}}}doDone(i){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",i)}};var Q=k;var P,L,U;U=u;P=T;L=class LocalDatastore{constructor(i,u,p){this.instance=i;this.storeOptions=u;this.clientId=this.instance._randomIndex();U.load(p,p,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var i;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(i=this.heartbeat=setInterval((()=>{var i,u,p,g,A;g=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&g>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=g;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&g>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:i,reservoirIncreaseMaximum:p,reservoir:A}=this.storeOptions);this._lastReservoirIncrease=g;u=p!=null?Math.min(i,p-A):i;if(u>0){this.storeOptions.reservoir+=u;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?i.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(i){await this.yieldLoop();return this.instance.Events.trigger("message",i.toString())}async __disconnect__(i){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(i=0){return new this.Promise((function(u,p){return setTimeout(u,i)}))}computePenalty(){var i;return(i=this.storeOptions.penalty)!=null?i:15*this.storeOptions.minTime||5e3}async __updateSettings__(i){await this.yieldLoop();U.overwrite(i,i,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(i){await this.yieldLoop();return this._nextRequest+this.timeout=i}check(i,u){return this.conditionsCheck(i)&&this._nextRequest-u<=0}async __check__(i){var u;await this.yieldLoop();u=Date.now();return this.check(i,u)}async __register__(i,u,p){var g,A;await this.yieldLoop();g=Date.now();if(this.conditionsCheck(u)){this._running+=u;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=u}A=Math.max(this._nextRequest-g,0);this._nextRequest=g+A+this.storeOptions.minTime;return{success:true,wait:A,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(i,u){var p,g,A;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&u>this.storeOptions.maxConcurrent){throw new P(`Impossible to add a job having a weight of ${u} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}g=Date.now();A=this.storeOptions.highWater!=null&&i===this.storeOptions.highWater&&!this.check(u,g);p=this.strategyIsBlock()&&(A||this.isBlocked(g));if(p){this._unblockTime=g+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:A,blocked:p,strategy:this.storeOptions.strategy}}async __free__(i,u){await this.yieldLoop();this._running-=u;this._done+=u;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var H=L;var j,z;j=T;z=class States{constructor(i){this.status=i;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(i){var u,p;u=this._jobs[i];p=u+1;if(u!=null&&p 0){var x=A.slice();x.unshift(T);x.push(N);p.splice.apply(p,[v,1].concat(x));v+=x.length;A=[]}else{p.splice(v,1,T,N);v+=2}}else{w.push(p[v].slice(B));p[v]=p[v].slice(0,B);v++}}if(A.length>0){p.splice.apply(p,[v,0].concat(A));v+=A.length}while(w.lengththis.length)u=this.length;var g=0;for(var A=0;A =u||C||A)return;C=true;i.next().then((({value:i,done:u})=>{if(w||A)return;C=false;if(u){A=true;if(v<=0){g(null)}return}v++;p(i,B,iterateeCallback);B++;replenish()})).catch(handleError)}function iterateeCallback(i,u){v-=1;if(w)return;if(i)return handleError(i);if(i===false){A=true;w=true;return}if(u===S||A&&v<=0){A=true;return g(null)}replenish()}function handleError(i){if(w)return;C=false;A=true;g(i)}replenish()}var eachOfLimit$2=i=>(u,p,g)=>{g=once(g);if(i<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!u){return g(null)}if(isAsyncGenerator(u)){return asyncEachOfLimit(u,i,p,g)}if(isAsyncIterable(u)){return asyncEachOfLimit(u[Symbol.asyncIterator](),i,p,g)}var A=createIterator(u);var w=false;var C=false;var v=0;var B=false;function iterateeCallback(i,u){if(C)return;v-=1;if(i){w=true;g(i)}else if(i===false){w=true;C=true}else if(u===S||w&&v<=0){w=true;return g(null)}else if(!B){replenish()}}function replenish(){B=true;while(v1?g:g[0])}callback[O]=new Promise(((p,g)=>{i=p,u=g}));return callback}function auto(i,u,p){if(typeof u!=="number"){p=u;u=null}p=once(p||promiseCallback());var g=Object.keys(i).length;if(!g){return p(null)}if(!u){u=g}var A={};var w=0;var C=false;var S=false;var v=Object.create(null);var B=[];var _=[];var T={};Object.keys(i).forEach((u=>{var p=i[u];if(!Array.isArray(p)){enqueueTask(u,[p]);_.push(u);return}var g=p.slice(0,p.length-1);var A=g.length;if(A===0){enqueueTask(u,p);_.push(u);return}T[u]=A;g.forEach((w=>{if(!i[w]){throw new Error("async.auto task `"+u+"` has a non-existent dependency `"+w+"` in "+g.join(", "))}addListener(w,(()=>{A--;if(A===0){enqueueTask(u,p)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(i,u){B.push((()=>runTask(i,u)))}function processQueue(){if(C)return;if(B.length===0&&w===0){return p(null,A)}while(B.length&&wi()));processQueue()}function runTask(i,u){if(S)return;var g=onlyOnce(((u,...g)=>{w--;if(u===false){C=true;return}if(g.length<2){[g]=g}if(u){var B={};Object.keys(A).forEach((i=>{B[i]=A[i]}));B[i]=g;S=true;v=Object.create(null);if(C)return;p(u,B)}else{A[i]=g;taskComplete(i)}}));w++;var B=wrapAsync(u[u.length-1]);if(u.length>1){B(A,g)}else{B(g)}}function checkForDeadlocks(){var i;var u=0;while(_.length){i=_.pop();u++;getDependents(i).forEach((i=>{if(--T[i]===0){_.push(i)}}))}if(u!==g){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(u){var p=[];Object.keys(i).forEach((g=>{const A=i[g];if(Array.isArray(A)&&A.indexOf(u)>=0){p.push(g)}}));return p}return p[O]}var D=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var Q=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var P=/,/;var L=/(=.+)?(\s*)$/;function stripComments(i){let u="";let p=0;let g=i.indexOf("*/");while(p {A(u,i,((i,p)=>{u=p;g(i)}))}),(i=>g(i,u)))}var U=awaitify(reduce,4);function seq(...i){var u=i.map(wrapAsync);return function(...i){var p=this;var g=i[i.length-1];if(typeof g=="function"){i.pop()}else{g=promiseCallback()}U(u,i,((i,u,g)=>{u.apply(p,i.concat(((i,...u)=>{g(i,u)})))}),((i,u)=>g(i,...u)));return g[O]}}function compose(...i){return seq(...i.reverse())}function mapLimit(i,u,p,g){return _asyncMap(eachOfLimit$2(u),i,p,g)}var H=awaitify(mapLimit,4);function concatLimit(i,u,p,g){var A=wrapAsync(p);return H(i,u,((i,u)=>{A(i,((i,...p)=>{if(i)return u(i);return u(i,p)}))}),((i,u)=>{var p=[];for(var A=0;A 0){return g}}return[]}shiftLastFrom(i){return this.getFirst(this._lists.slice(i).reverse()).shift()}};var B=v;var _;_=class BottleneckError extends Error{};var T=_;var N,x,k,O,D;O=10;x=5;D=u;N=T;k=class Job{constructor(i,u,p,g,A,w,C,S){this.task=i;this.args=u;this.rejectOnDrop=A;this.Events=w;this._states=C;this.Promise=S;this.options=D.load(p,g);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===g.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((i,u)=>{this._resolve=i;this._reject=u}));this.retryCount=0}_sanitizePriority(i){var u;u=~~i!==i?x:i;if(u<0){return 0}else if(u>O-1){return O-1}else{return u}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:i,message:u="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(i!=null?i:new N(u))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(i){var u;u=this._states.jobStatus(this.options.id);if(!(u===i||i==="DONE"&&u===null)){throw new N(`Invalid job status ${u}, expected ${i}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(i,u){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:i,blocked:u})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(i,u,p,g){var A,w,C;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}w={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",w);try{C=await(i!=null?i.schedule(this.options,this.task,...this.args):this.task(...this.args));if(u()){this.doDone(w);await g(this.options,w);this._assertStatus("DONE");return this._resolve(C)}}catch(i){A=i;return this._onFailure(A,w,u,p,g)}}doExpire(i,u,p){var g,A;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");A={args:this.args,options:this.options,retryCount:this.retryCount};g=new N(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(g,A,i,u,p)}async _onFailure(i,u,p,g,A){var w,C;if(p()){w=await this.Events.trigger("failed",i,u);if(w!=null){C=~~w;this.Events.trigger("retry",`Retrying ${this.options.id} after ${C} ms`,u);this.retryCount++;return g(C)}else{this.doDone(u);await A(this.options,u);this._assertStatus("DONE");return this._reject(i)}}}doDone(i){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",i)}};var Q=k;var P,L,U;U=u;P=T;L=class LocalDatastore{constructor(i,u,p){this.instance=i;this.storeOptions=u;this.clientId=this.instance._randomIndex();U.load(p,p,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var i;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(i=this.heartbeat=setInterval((()=>{var i,u,p,g,A;g=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&g>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=g;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&g>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:i,reservoirIncreaseMaximum:p,reservoir:A}=this.storeOptions);this._lastReservoirIncrease=g;u=p!=null?Math.min(i,p-A):i;if(u>0){this.storeOptions.reservoir+=u;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?i.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(i){await this.yieldLoop();return this.instance.Events.trigger("message",i.toString())}async __disconnect__(i){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(i=0){return new this.Promise((function(u,p){return setTimeout(u,i)}))}computePenalty(){var i;return(i=this.storeOptions.penalty)!=null?i:15*this.storeOptions.minTime||5e3}async __updateSettings__(i){await this.yieldLoop();U.overwrite(i,i,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(i){await this.yieldLoop();return this._nextRequest+this.timeout=i}check(i,u){return this.conditionsCheck(i)&&this._nextRequest-u<=0}async __check__(i){var u;await this.yieldLoop();u=Date.now();return this.check(i,u)}async __register__(i,u,p){var g,A;await this.yieldLoop();g=Date.now();if(this.conditionsCheck(u)){this._running+=u;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=u}A=Math.max(this._nextRequest-g,0);this._nextRequest=g+A+this.storeOptions.minTime;return{success:true,wait:A,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(i,u){var p,g,A;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&u>this.storeOptions.maxConcurrent){throw new P(`Impossible to add a job having a weight of ${u} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}g=Date.now();A=this.storeOptions.highWater!=null&&i===this.storeOptions.highWater&&!this.check(u,g);p=this.strategyIsBlock()&&(A||this.isBlocked(g));if(p){this._unblockTime=g+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:A,blocked:p,strategy:this.storeOptions.strategy}}async __free__(i,u){await this.yieldLoop();this._running-=u;this._done+=u;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var H=L;var j,z;j=T;z=class States{constructor(i){this.status=i;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(i){var u,p;u=this._jobs[i];p=u+1;if(u!=null&&p 0){var x=A.slice();x.unshift(T);x.push(N);p.splice.apply(p,[v,1].concat(x));v+=x.length;A=[]}else{p.splice(v,1,T,N);v+=2}}else{w.push(p[v].slice(B));p[v]=p[v].slice(0,B);v++}}if(A.length>0){p.splice.apply(p,[v,0].concat(A));v+=A.length}while(w.lengththis.length)u=this.length;var g=0;for(var A=0;A {if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){i.exports=p(6110)}else{i.exports=p(95108)}},95108:(i,u,p)=>{const g=p(52018);const A=p(39023);u.init=init;u.log=log;u.formatArgs=formatArgs;u.save=save;u.load=load;u.useColors=useColors;u.destroy=A.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");u.colors=[6,2,3,4,5,1];try{const i=p(21450);if(i&&(i.stderr||i).level>=2){u.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(i){}u.inspectOpts=Object.keys(process.env).filter((i=>/^debug_/i.test(i))).reduce(((i,u)=>{const p=u.substring(6).toLowerCase().replace(/_([a-z])/g,((i,u)=>u.toUpperCase()));let g=process.env[u];if(/^(yes|on|true|enabled)$/i.test(g)){g=true}else if(/^(no|off|false|disabled)$/i.test(g)){g=false}else if(g==="null"){g=null}else{g=Number(g)}i[p]=g;return i}),{});function useColors(){return"colors"in u.inspectOpts?Boolean(u.inspectOpts.colors):g.isatty(process.stderr.fd)}function formatArgs(u){const{namespace:p,useColors:g}=this;if(g){const g=this.color;const A="[3"+(g<8?g:"8;5;"+g);const w=` ${A};1m${p} [0m`;u[0]=w+u[0].split("\n").join("\n"+w);u.push(A+"m+"+i.exports.humanize(this.diff)+"[0m")}else{u[0]=getDate()+p+" "+u[0]}}function getDate(){if(u.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...i){return process.stderr.write(A.format(...i)+"\n")}function save(i){if(i){process.env.DEBUG=i}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(i){i.inspectOpts={};const p=Object.keys(u.inspectOpts);for(let g=0;g g)throw new H(u,`>= ${p} && <= ${g}`,i)}));const Z=Q(((i,u,p=-2147483648,g=2147483647)=>{if(typeof i!=="number"){throw new L(u,"number",i)}if(!S(i)){throw new H(u,"an integer",i)}if(i g){throw new H(u,`>= ${p} && <= ${g}`,i)}}));const X=Q(((i,u,p=false)=>{if(typeof i!=="number"){throw new L(u,"number",i)}if(!S(i)){throw new H(u,"an integer",i)}const g=p?1:0;const A=4294967295;if(i g||(p!=null||g!=null)&&v(i)){throw new H(u,`${p!=null?`>= ${p}`:""}${p!=null&&g!=null?" && ":""}${g!=null?`<= ${g}`:""}`,i)}}const ee=Q(((i,u,p)=>{if(!A(p,i)){const g=w(C(p,(i=>typeof i==="string"?`'${i}'`:k(i))),", ");const A="must be one of: "+g;throw new U(u,i,A)}}));function validateBoolean(i,u){if(typeof i!=="boolean")throw new L(u,"boolean",i)}function getOwnPropertyValueOrDefault(i,u,p){return i==null||!N(i,u)?p:i[u]}const te=Q(((i,u,p=null)=>{const A=getOwnPropertyValueOrDefault(p,"allowArray",false);const w=getOwnPropertyValueOrDefault(p,"allowFunction",false);const C=getOwnPropertyValueOrDefault(p,"nullable",false);if(!C&&i===null||!A&&g(i)||typeof i!=="object"&&(!w||typeof i!=="function")){throw new L(u,"Object",i)}}));const re=Q(((i,u)=>{if(i!=null&&typeof i!=="object"&&typeof i!=="function"){throw new L(u,"a dictionary",i)}}));const ne=Q(((i,u,p=0)=>{if(!g(i)){throw new L(u,"Array",i)}if(i.length {if(!$(i)){throw new L(u,["Buffer","TypedArray","DataView"],i)}}));function validateEncoding(i,u){const p=z(u);const g=i.length;if(p==="hex"&&g%2!==0){throw new U("encoding",u,`is invalid for data of length ${g}`)}}function validatePort(i,u="Port",p=true){if(typeof i!=="number"&&typeof i!=="string"||typeof i==="string"&&D(i).length===0||+i!==+i>>>0||i>65535||i===0&&!p){throw new P(u,i,p)}return i|0}const se=Q(((i,u)=>{if(i!==undefined&&(i===null||typeof i!=="object"||!("aborted"in i))){throw new L(u,"AbortSignal",i)}}));const oe=Q(((i,u)=>{if(typeof i!=="function")throw new L(u,"Function",i)}));const ae=Q(((i,u)=>{if(typeof i!=="function"||q(i))throw new L(u,"Function",i)}));const le=Q(((i,u)=>{if(i!==undefined)throw new L(u,"undefined",i)}));function validateUnion(i,u,p){if(!A(p,i)){throw new L(u,`('${w(p,"|")}')`,i)}}const ue=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(i,u){if(typeof i==="undefined"||!x(ue,i)){throw new U(u,i,'must be an array or string of format "; rel=preload; as=style"')}}function validateLinkHeaderValue(i){if(typeof i==="string"){validateLinkHeaderFormat(i,"hints");return i}else if(g(i)){const u=i.length;let p="";if(u===0){return p}for(let g=0;g; rel=preload; as=style"')}i.exports={isInt32:isInt32,isUint32:isUint32,parseFileMode:parseFileMode,validateArray:ne,validateStringArray:validateStringArray,validateBooleanArray:validateBooleanArray,validateAbortSignalArray:validateAbortSignalArray,validateBoolean:validateBoolean,validateBuffer:ie,validateDictionary:re,validateEncoding:validateEncoding,validateFunction:oe,validateInt32:Z,validateInteger:K,validateNumber:validateNumber,validateObject:te,validateOneOf:ee,validatePlainFunction:ae,validatePort:validatePort,validateSignalName:validateSignalName,validateString:validateString,validateUint32:X,validateUndefined:le,validateUnion:validateUnion,validateAbortSignal:se,validateLinkHeaderValue:validateLinkHeaderValue}},69220:(i,u,p)=>{const{format:g,inspect:A,AggregateError:w}=p(23539);const C=globalThis.AggregateError||w;const S=Symbol("kIsNodeError");const v=["string","function","number","object","Function","Object","boolean","bigint","symbol"];const B=/^([A-Z][a-z0-9]*)+$/;const _="__node_internal_";const T={};function assert(i,u){if(!i){throw new T.ERR_INTERNAL_ASSERTION(u)}}function addNumericalSeparator(i){let u="";let p=i.length;const g=i[0]==="-"?1:0;for(;p>=g+4;p-=3){u=`_${i.slice(p-3,p)}${u}`}return`${i.slice(0,p)}${u}`}function getMessage(i,u,p){if(typeof u==="function"){assert(u.length<=p.length,`Code: ${i}; The provided arguments length (${p.length}) does not match the required ones (${u.length}).`);return u(...p)}const A=(u.match(/%[dfijoOs]/g)||[]).length;assert(A===p.length,`Code: ${i}; The provided arguments length (${p.length}) does not match the required ones (${A}).`);if(p.length===0){return u}return g(u,...p)}function E(i,u,p){if(!p){p=Error}class NodeError extends p{constructor(...p){super(getMessage(i,u,p))}toString(){return`${this.name} [${i}]: ${this.message}`}}Object.defineProperties(NodeError.prototype,{name:{value:p.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${i}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});NodeError.prototype.code=i;NodeError.prototype[S]=true;T[i]=NodeError}function hideStackFrames(i){const u=_+i.name;Object.defineProperty(i,"name",{value:u});return i}function aggregateTwoErrors(i,u){if(i&&u&&i!==u){if(Array.isArray(u.errors)){u.errors.push(i);return u}const p=new C([u,i],u.message);p.code=u.code;return p}return i||u}class AbortError extends Error{constructor(i="The operation was aborted",u=undefined){if(u!==undefined&&typeof u!=="object"){throw new T.ERR_INVALID_ARG_TYPE("options","Object",u)}super(i,u);this.code="ABORT_ERR";this.name="AbortError"}}E("ERR_ASSERTION","%s",Error);E("ERR_INVALID_ARG_TYPE",((i,u,p)=>{assert(typeof i==="string","'name' must be a string");if(!Array.isArray(u)){u=[u]}let g="The ";if(i.endsWith(" argument")){g+=`${i} `}else{g+=`"${i}" ${i.includes(".")?"property":"argument"} `}g+="must be ";const w=[];const C=[];const S=[];for(const i of u){assert(typeof i==="string","All expected entries have to be of type string");if(v.includes(i)){w.push(i.toLowerCase())}else if(B.test(i)){C.push(i)}else{assert(i!=="object",'The value "object" should be written as "Object"');S.push(i)}}if(C.length>0){const i=w.indexOf("object");if(i!==-1){w.splice(w,i,1);C.push("Object")}}if(w.length>0){switch(w.length){case 1:g+=`of type ${w[0]}`;break;case 2:g+=`one of type ${w[0]} or ${w[1]}`;break;default:{const i=w.pop();g+=`one of type ${w.join(", ")}, or ${i}`}}if(C.length>0||S.length>0){g+=" or "}}if(C.length>0){switch(C.length){case 1:g+=`an instance of ${C[0]}`;break;case 2:g+=`an instance of ${C[0]} or ${C[1]}`;break;default:{const i=C.pop();g+=`an instance of ${C.join(", ")}, or ${i}`}}if(S.length>0){g+=" or "}}switch(S.length){case 0:break;case 1:if(S[0].toLowerCase()!==S[0]){g+="an "}g+=`${S[0]}`;break;case 2:g+=`one of ${S[0]} or ${S[1]}`;break;default:{const i=S.pop();g+=`one of ${S.join(", ")}, or ${i}`}}if(p==null){g+=`. Received ${p}`}else if(typeof p==="function"&&p.name){g+=`. Received function ${p.name}`}else if(typeof p==="object"){var _;if((_=p.constructor)!==null&&_!==undefined&&_.name){g+=`. Received an instance of ${p.constructor.name}`}else{const i=A(p,{depth:-1});g+=`. Received ${i}`}}else{let i=A(p,{colors:false});if(i.length>25){i=`${i.slice(0,25)}...`}g+=`. Received type ${typeof p} (${i})`}return g}),TypeError);E("ERR_INVALID_ARG_VALUE",((i,u,p="is invalid")=>{let g=A(u);if(g.length>128){g=g.slice(0,128)+"..."}const w=i.includes(".")?"property":"argument";return`The ${w} '${i}' ${p}. Received ${g}`}),TypeError);E("ERR_INVALID_RETURN_VALUE",((i,u,p)=>{var g;const A=p!==null&&p!==undefined&&(g=p.constructor)!==null&&g!==undefined&&g.name?`instance of ${p.constructor.name}`:`type ${typeof p}`;return`Expected ${i} to be returned from the "${u}"`+` function but got ${A}.`}),TypeError);E("ERR_MISSING_ARGS",((...i)=>{assert(i.length>0,"At least one arg needs to be specified");let u;const p=i.length;i=(Array.isArray(i)?i:[i]).map((i=>`"${i}"`)).join(" or ");switch(p){case 1:u+=`The ${i[0]} argument`;break;case 2:u+=`The ${i[0]} and ${i[1]} arguments`;break;default:{const p=i.pop();u+=`The ${i.join(", ")}, and ${p} arguments`}break}return`${u} must be specified`}),TypeError);E("ERR_OUT_OF_RANGE",((i,u,p)=>{assert(u,'Missing "range" argument');let g;if(Number.isInteger(p)&&Math.abs(p)>2**32){g=addNumericalSeparator(String(p))}else if(typeof p==="bigint"){g=String(p);if(p>2n**32n||p<-(2n**32n)){g=addNumericalSeparator(g)}g+="n"}else{g=A(p)}return`The value of "${i}" is out of range. It must be ${u}. Received ${g}`}),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);i.exports={AbortError:AbortError,aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames:hideStackFrames,codes:T}},29963:(i,u,p)=>{const g=p(2203);if(g&&process.env.READABLE_STREAM==="disable"){const u=g.promises;i.exports._uint8ArrayToBuffer=g._uint8ArrayToBuffer;i.exports._isUint8Array=g._isUint8Array;i.exports.isDisturbed=g.isDisturbed;i.exports.isErrored=g.isErrored;i.exports.isReadable=g.isReadable;i.exports.Readable=g.Readable;i.exports.Writable=g.Writable;i.exports.Duplex=g.Duplex;i.exports.Transform=g.Transform;i.exports.PassThrough=g.PassThrough;i.exports.addAbortSignal=g.addAbortSignal;i.exports.finished=g.finished;i.exports.destroy=g.destroy;i.exports.pipeline=g.pipeline;i.exports.compose=g.compose;Object.defineProperty(g,"promises",{configurable:true,enumerable:true,get(){return u}});i.exports.Stream=g.Stream}else{const u=p(12375);const g=p(65904);const A=u.Readable.destroy;i.exports=u.Readable;i.exports._uint8ArrayToBuffer=u._uint8ArrayToBuffer;i.exports._isUint8Array=u._isUint8Array;i.exports.isDisturbed=u.isDisturbed;i.exports.isErrored=u.isErrored;i.exports.isReadable=u.isReadable;i.exports.Readable=u.Readable;i.exports.Writable=u.Writable;i.exports.Duplex=u.Duplex;i.exports.Transform=u.Transform;i.exports.PassThrough=u.PassThrough;i.exports.addAbortSignal=u.addAbortSignal;i.exports.finished=u.finished;i.exports.destroy=u.destroy;i.exports.destroy=A;i.exports.pipeline=u.pipeline;i.exports.compose=u.compose;Object.defineProperty(u,"promises",{configurable:true,enumerable:true,get(){return g}});i.exports.Stream=u.Stream}i.exports["default"]=i.exports},50999:i=>{i.exports={ArrayIsArray(i){return Array.isArray(i)},ArrayPrototypeIncludes(i,u){return i.includes(u)},ArrayPrototypeIndexOf(i,u){return i.indexOf(u)},ArrayPrototypeJoin(i,u){return i.join(u)},ArrayPrototypeMap(i,u){return i.map(u)},ArrayPrototypePop(i,u){return i.pop(u)},ArrayPrototypePush(i,u){return i.push(u)},ArrayPrototypeSlice(i,u,p){return i.slice(u,p)},Error:Error,FunctionPrototypeCall(i,u,...p){return i.call(u,...p)},FunctionPrototypeSymbolHasInstance(i,u){return Function.prototype[Symbol.hasInstance].call(i,u)},MathFloor:Math.floor,Number: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(i,u){return Object.defineProperties(i,u)},ObjectDefineProperty(i,u,p){return Object.defineProperty(i,u,p)},ObjectGetOwnPropertyDescriptor(i,u){return Object.getOwnPropertyDescriptor(i,u)},ObjectKeys(i){return Object.keys(i)},ObjectSetPrototypeOf(i,u){return Object.setPrototypeOf(i,u)},Promise:Promise,PromisePrototypeCatch(i,u){return i.catch(u)},PromisePrototypeThen(i,u,p){return i.then(u,p)},PromiseReject(i){return Promise.reject(i)},PromiseResolve(i){return Promise.resolve(i)},ReflectApply:Reflect.apply,RegExpPrototypeTest(i,u){return i.test(u)},SafeSet:Set,String:String,StringPrototypeSlice(i,u,p){return i.slice(u,p)},StringPrototypeToLowerCase(i){return i.toLowerCase()},StringPrototypeToUpperCase(i){return i.toUpperCase()},StringPrototypeTrim(i){return i.trim()},Symbol: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(i,u,p){return i.set(u,p)},Boolean:Boolean,Uint8Array:Uint8Array}},23539:(i,u,p)=>{const g=p(20181);const{kResistStopPropagation:A,SymbolDispose:w}=p(50999);const C=globalThis.AbortSignal||p(17413).AbortSignal;const S=globalThis.AbortController||p(17413).AbortController;const v=Object.getPrototypeOf((async function(){})).constructor;const B=globalThis.Blob||g.Blob;const _=typeof B!=="undefined"?function isBlob(i){return i instanceof B}:function isBlob(i){return false};const validateAbortSignal=(i,u)=>{if(i!==undefined&&(i===null||typeof i!=="object"||!("aborted"in i))){throw new ERR_INVALID_ARG_TYPE(u,"AbortSignal",i)}};const validateFunction=(i,u)=>{if(typeof i!=="function")throw new ERR_INVALID_ARG_TYPE(u,"Function",i)};class AggregateError extends Error{constructor(i){if(!Array.isArray(i)){throw new TypeError(`Expected input to be an Array, got ${typeof i}`)}let u="";for(let p=0;p compareIdentifiers(u,i);i.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},61383:i=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(i){const u=this.map.get(i);if(u===undefined){return undefined}else{this.map.delete(i);this.map.set(i,u);return u}}delete(i){return this.map.delete(i)}set(i,u){const p=this.delete(i);if(!p&&u!==undefined){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(i,u)}return this}}i.exports=LRUCache},70356:i=>{const u=Object.freeze({loose:true});const p=Object.freeze({});const parseOptions=i=>{if(!i){return p}if(typeof i!=="object"){return u}return i};i.exports=parseOptions},95471:(i,u,p)=>{const{MAX_SAFE_COMPONENT_LENGTH:g,MAX_SAFE_BUILD_LENGTH:A,MAX_LENGTH:w}=p(45101);const C=p(1159);u=i.exports={};const S=u.re=[];const v=u.safeRe=[];const B=u.src=[];const _=u.safeSrc=[];const T=u.t={};let N=0;const x="[a-zA-Z0-9-]";const k=[["\\s",1],["\\d",w],[x,A]];const makeSafeRegex=i=>{for(const[u,p]of k){i=i.split(`${u}*`).join(`${u}{0,${p}}`).split(`${u}+`).join(`${u}{1,${p}}`)}return i};const createToken=(i,u,p)=>{const g=makeSafeRegex(u);const A=N++;C(i,A,u);T[i]=A;B[A]=u;_[A]=g;S[A]=new RegExp(u,p?"g":undefined);v[A]=new RegExp(g,p?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${x}*`);createToken("MAINVERSION",`(${B[T.NUMERICIDENTIFIER]})\\.`+`(${B[T.NUMERICIDENTIFIER]})\\.`+`(${B[T.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${B[T.NUMERICIDENTIFIERLOOSE]})\\.`+`(${B[T.NUMERICIDENTIFIERLOOSE]})\\.`+`(${B[T.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${B[T.NONNUMERICIDENTIFIER]}|${B[T.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${B[T.NONNUMERICIDENTIFIER]}|${B[T.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${B[T.PRERELEASEIDENTIFIER]}(?:\\.${B[T.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${B[T.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${B[T.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${x}+`);createToken("BUILD",`(?:\\+(${B[T.BUILDIDENTIFIER]}(?:\\.${B[T.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${B[T.MAINVERSION]}${B[T.PRERELEASE]}?${B[T.BUILD]}?`);createToken("FULL",`^${B[T.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${B[T.MAINVERSIONLOOSE]}${B[T.PRERELEASELOOSE]}?${B[T.BUILD]}?`);createToken("LOOSE",`^${B[T.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${B[T.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${B[T.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${B[T.XRANGEIDENTIFIER]})`+`(?:\\.(${B[T.XRANGEIDENTIFIER]})`+`(?:\\.(${B[T.XRANGEIDENTIFIER]})`+`(?:${B[T.PRERELEASE]})?${B[T.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${B[T.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${B[T.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${B[T.XRANGEIDENTIFIERLOOSE]})`+`(?:${B[T.PRERELEASELOOSE]})?${B[T.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${B[T.GTLT]}\\s*${B[T.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${B[T.GTLT]}\\s*${B[T.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${g}})`+`(?:\\.(\\d{1,${g}}))?`+`(?:\\.(\\d{1,${g}}))?`);createToken("COERCE",`${B[T.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",B[T.COERCEPLAIN]+`(?:${B[T.PRERELEASE]})?`+`(?:${B[T.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",B[T.COERCE],true);createToken("COERCERTLFULL",B[T.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${B[T.LONETILDE]}\\s+`,true);u.tildeTrimReplace="$1~";createToken("TILDE",`^${B[T.LONETILDE]}${B[T.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${B[T.LONETILDE]}${B[T.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${B[T.LONECARET]}\\s+`,true);u.caretTrimReplace="$1^";createToken("CARET",`^${B[T.LONECARET]}${B[T.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${B[T.LONECARET]}${B[T.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${B[T.GTLT]}\\s*(${B[T.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${B[T.GTLT]}\\s*(${B[T.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${B[T.GTLT]}\\s*(${B[T.LOOSEPLAIN]}|${B[T.XRANGEPLAIN]})`,true);u.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${B[T.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${B[T.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${B[T.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${B[T.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},12276:(i,u,p)=>{const g=p(10280);const gtr=(i,u,p)=>g(i,u,">",p);i.exports=gtr},23465:(i,u,p)=>{const g=p(96782);const intersects=(i,u,p)=>{i=new g(i,p);u=new g(u,p);return i.intersects(u,p)};i.exports=intersects},15213:(i,u,p)=>{const g=p(10280);const ltr=(i,u,p)=>g(i,u,"<",p);i.exports=ltr},73193:(i,u,p)=>{const g=p(7163);const A=p(96782);const maxSatisfying=(i,u,p)=>{let w=null;let C=null;let S=null;try{S=new A(u,p)}catch(i){return null}i.forEach((i=>{if(S.test(i)){if(!w||C.compare(i)===-1){w=i;C=new g(w,p)}}}));return w};i.exports=maxSatisfying},68595:(i,u,p)=>{const g=p(7163);const A=p(96782);const minSatisfying=(i,u,p)=>{let w=null;let C=null;let S=null;try{S=new A(u,p)}catch(i){return null}i.forEach((i=>{if(S.test(i)){if(!w||C.compare(i)===1){w=i;C=new g(w,p)}}}));return w};i.exports=minSatisfying},51866:(i,u,p)=>{const g=p(7163);const A=p(96782);const w=p(16599);const minVersion=(i,u)=>{i=new A(i,u);let p=new g("0.0.0");if(i.test(p)){return p}p=new g("0.0.0-0");if(i.test(p)){return p}p=null;for(let u=0;u =0){if(A>0)i.lastNeed=A-1;return A}if(--g =0){if(A>0)i.lastNeed=A-2;return A}if(--g =0){if(A>0){if(A===2)A=0;else i.lastNeed=A-3}return A}return 0}function utf8CheckExtraBytes(i,u,p){if((u[0]&192)!==128){i.lastNeed=0;return"�"}if(i.lastNeed>1&&u.length>1){if((u[1]&192)!==128){i.lastNeed=1;return"�"}if(i.lastNeed>2&&u.length>2){if((u[2]&192)!==128){i.lastNeed=2;return"�"}}}}function utf8FillLast(i){var u=this.lastTotal-this.lastNeed;var p=utf8CheckExtraBytes(this,i,u);if(p!==undefined)return p;if(this.lastNeed<=i.length){i.copy(this.lastChar,u,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}i.copy(this.lastChar,u,0,i.length);this.lastNeed-=i.length}function utf8Text(i,u){var p=utf8CheckIncomplete(this,i,u);if(!this.lastNeed)return i.toString("utf8",u);this.lastTotal=p;var g=i.length-(p-this.lastNeed);i.copy(this.lastChar,0,g);return i.toString("utf8",u,g)}function utf8End(i){var u=i&&i.length?this.write(i):"";if(this.lastNeed)return u+"�";return u}function utf16Text(i,u){if((i.length-u)%2===0){var p=i.toString("utf16le",u);if(p){var g=p.charCodeAt(p.length-1);if(g>=55296&&g<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=i[i.length-2];this.lastChar[1]=i[i.length-1];return p.slice(0,-1)}}return p}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=i[i.length-1];return i.toString("utf16le",u,i.length-1)}function utf16End(i){var u=i&&i.length?this.write(i):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return u+this.lastChar.toString("utf16le",0,p)}return u}function base64Text(i,u){var p=(i.length-u)%3;if(p===0)return i.toString("base64",u);this.lastNeed=3-p;this.lastTotal=3;if(p===1){this.lastChar[0]=i[i.length-1]}else{this.lastChar[0]=i[i.length-2];this.lastChar[1]=i[i.length-1]}return i.toString("base64",u,i.length-p)}function base64End(i){var u=i&&i.length?this.write(i):"";if(this.lastNeed)return u+this.lastChar.toString("base64",0,3-this.lastNeed);return u}function simpleWrite(i){return i.toString(this.encoding)}function simpleEnd(i){return i&&i.length?this.write(i):""}},21450:(i,u,p)=>{const g=p(70857);const A=p(52018);const w=p(83813);const{env:C}=process;let S;if(w("no-color")||w("no-colors")||w("color=false")||w("color=never")){S=0}else if(w("color")||w("colors")||w("color=true")||w("color=always")){S=1}if("FORCE_COLOR"in C){if(C.FORCE_COLOR==="true"){S=1}else if(C.FORCE_COLOR==="false"){S=0}else{S=C.FORCE_COLOR.length===0?1:Math.min(parseInt(C.FORCE_COLOR,10),3)}}function translateLevel(i){if(i===0){return false}return{level:i,hasBasic:true,has256:i>=2,has16m:i>=3}}function supportsColor(i,u){if(S===0){return 0}if(w("color=16m")||w("color=full")||w("color=truecolor")){return 3}if(w("color=256")){return 2}if(i&&!u&&S===undefined){return 0}const p=S||0;if(C.TERM==="dumb"){return p}if(process.platform==="win32"){const i=g.release().split(".");if(Number(i[0])>=10&&Number(i[2])>=10586){return Number(i[2])>=14931?3:2}return 1}if("CI"in C){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((i=>i in C))||C.CI_NAME==="codeship"){return 1}return p}if("TEAMCITY_VERSION"in C){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0}if(C.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in C){const i=parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(C.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)){return 1}if("COLORTERM"in C){return 1}return p}function getSupportLevel(i){const u=supportsColor(i,i&&i.isTTY);return translateLevel(u)}i.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,A.isatty(1))),stderr:translateLevel(supportsColor(true,A.isatty(2)))}},20775:(i,u,p)=>{const g={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{i.exports=p(79896).constants||g}catch{i.exports=g}},35763:(i,u,p)=>{const{Writable:g,Readable:A,getStreamError:w}=p(36204);const C=p(83867);const S=p(73057);const v=p(88428);const B=S.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new C;this._offset=0}push(i){this.buffered+=i.byteLength;this.queue.push(i)}shiftFirst(i){return this._buffered===0?null:this._next(i)}shift(i){if(i>this.buffered)return null;if(i===0)return B;let u=this._next(i);if(i===u.byteLength)return u;const p=[u];while((i-=u.byteLength)>0){u=this._next(i);p.push(u)}return S.concat(p)}_next(i){const u=this.queue.peek();const p=u.byteLength-this._offset;if(i>=p){const i=this._offset?u.subarray(this._offset,u.byteLength):u;this.queue.shift();this._offset=0;this.buffered-=p;this.shifted+=p;return i}this.buffered-=i;this.shifted+=i;return u.subarray(this._offset,this._offset+=i)}}class Source extends A{constructor(i,u,p){super();this.header=u;this.offset=p;this._parent=i}_read(i){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}i(null)}_predestroy(){this._parent.destroy(w(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(i){this._detach();i(null)}}class Extract extends g{constructor(i){super(i);if(!i)i={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=i.filenameEncoding||"utf-8";this._allowUnknownFormat=!!i.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(i){this._locked=false;if(i){this.destroy(i);this._continueWrite(i);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=v.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(i){this._continueWrite(i);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(i){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=v.decodeLongPath(i,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=v.decodeLongPath(i,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=v.decodePax(i);break;case"pax-header":this._pax=this._paxGlobal===null?v.decodePax(i):Object.assign({},this._paxGlobal,v.decodePax(i));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const i=this._buffer.shift(this._header.size);try{this._decodeLongHeader(i)}catch(i){this._continueWrite(i);return false}return true}_consumeStream(){const i=this._buffer.shiftFirst(this._missing);if(i===null)return false;this._missing-=i.byteLength;const u=this._stream.push(i);if(this._missing===0){this._stream.push(null);if(u)this._stream._detach();return u&&this._locked===false}return u}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const i=this._buffer.shiftFirst(this._missing);if(i!==null)this._missing-=i.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(i){const u=this._callback;this._callback=noop;u(i)}_write(i,u){this._callback=u;this._buffer.push(i);this._update()}_final(i){this._finished=this._missing===0&&this._buffer.buffered===0;i(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(i){if(this._stream)this._stream.destroy(w(this));i(null)}[Symbol.asyncIterator](){let i=null;let u=null;let p=null;let g=null;let A=null;const w=this;this.on("entry",onentry);this.on("error",(u=>{i=u}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(i){return destroy(i)}};function consumeCallback(i){if(!A)return;const u=A;A=null;u(i)}function onnext(A,C){if(i){return C(i)}if(g){A({value:g,done:false});g=null;return}u=A;p=C;consumeCallback(null);if(w._finished&&u){u({value:undefined,done:true});u=p=null}}function onentry(i,w,C){A=C;w.on("error",noop);if(u){u({value:w,done:false});u=p=null}else{g=w}}function onclose(){consumeCallback(i);if(!u)return;if(i)p(i);else u({value:undefined,done:true});u=p=null}function destroy(i){w.destroy(i);consumeCallback(i);return new Promise(((u,p)=>{if(w.destroyed)return u({value:undefined,done:true});w.once("close",(function(){if(i)p(i);else u({value:undefined,done:true})}))}))}}}i.exports=function extract(i){return new Extract(i)};function noop(){}function overflow(i){i&=511;return i&&512-i}},88428:(i,u,p)=>{const g=p(73057);const A="0000000000000000000";const w="7777777777777777777";const C="0".charCodeAt(0);const S=g.from([117,115,116,97,114,0]);const v=g.from([C,C]);const B=g.from([117,115,116,97,114,32]);const _=g.from([32,0]);const T=4095;const N=257;const x=263;u.decodeLongPath=function decodeLongPath(i,u){return decodeStr(i,0,i.length,u)};u.encodePax=function encodePax(i){let u="";if(i.name)u+=addLength(" path="+i.name+"\n");if(i.linkname)u+=addLength(" linkpath="+i.linkname+"\n");const p=i.pax;if(p){for(const i in p){u+=addLength(" "+i+"="+p[i]+"\n")}}return g.from(u)};u.decodePax=function decodePax(i){const u={};while(i.length){let p=0;while(p g)throw new H(u,`>= ${p} && <= ${g}`,i)}));const Z=Q(((i,u,p=-2147483648,g=2147483647)=>{if(typeof i!=="number"){throw new L(u,"number",i)}if(!S(i)){throw new H(u,"an integer",i)}if(i g){throw new H(u,`>= ${p} && <= ${g}`,i)}}));const X=Q(((i,u,p=false)=>{if(typeof i!=="number"){throw new L(u,"number",i)}if(!S(i)){throw new H(u,"an integer",i)}const g=p?1:0;const A=4294967295;if(i g||(p!=null||g!=null)&&v(i)){throw new H(u,`${p!=null?`>= ${p}`:""}${p!=null&&g!=null?" && ":""}${g!=null?`<= ${g}`:""}`,i)}}const ee=Q(((i,u,p)=>{if(!A(p,i)){const g=w(C(p,(i=>typeof i==="string"?`'${i}'`:k(i))),", ");const A="must be one of: "+g;throw new U(u,i,A)}}));function validateBoolean(i,u){if(typeof i!=="boolean")throw new L(u,"boolean",i)}function getOwnPropertyValueOrDefault(i,u,p){return i==null||!N(i,u)?p:i[u]}const te=Q(((i,u,p=null)=>{const A=getOwnPropertyValueOrDefault(p,"allowArray",false);const w=getOwnPropertyValueOrDefault(p,"allowFunction",false);const C=getOwnPropertyValueOrDefault(p,"nullable",false);if(!C&&i===null||!A&&g(i)||typeof i!=="object"&&(!w||typeof i!=="function")){throw new L(u,"Object",i)}}));const re=Q(((i,u)=>{if(i!=null&&typeof i!=="object"&&typeof i!=="function"){throw new L(u,"a dictionary",i)}}));const ne=Q(((i,u,p=0)=>{if(!g(i)){throw new L(u,"Array",i)}if(i.length {if(!$(i)){throw new L(u,["Buffer","TypedArray","DataView"],i)}}));function validateEncoding(i,u){const p=z(u);const g=i.length;if(p==="hex"&&g%2!==0){throw new U("encoding",u,`is invalid for data of length ${g}`)}}function validatePort(i,u="Port",p=true){if(typeof i!=="number"&&typeof i!=="string"||typeof i==="string"&&D(i).length===0||+i!==+i>>>0||i>65535||i===0&&!p){throw new P(u,i,p)}return i|0}const se=Q(((i,u)=>{if(i!==undefined&&(i===null||typeof i!=="object"||!("aborted"in i))){throw new L(u,"AbortSignal",i)}}));const oe=Q(((i,u)=>{if(typeof i!=="function")throw new L(u,"Function",i)}));const ae=Q(((i,u)=>{if(typeof i!=="function"||q(i))throw new L(u,"Function",i)}));const le=Q(((i,u)=>{if(i!==undefined)throw new L(u,"undefined",i)}));function validateUnion(i,u,p){if(!A(p,i)){throw new L(u,`('${w(p,"|")}')`,i)}}const ue=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(i,u){if(typeof i==="undefined"||!x(ue,i)){throw new U(u,i,'must be an array or string of format "; rel=preload; as=style"')}}function validateLinkHeaderValue(i){if(typeof i==="string"){validateLinkHeaderFormat(i,"hints");return i}else if(g(i)){const u=i.length;let p="";if(u===0){return p}for(let g=0;g; rel=preload; as=style"')}i.exports={isInt32:isInt32,isUint32:isUint32,parseFileMode:parseFileMode,validateArray:ne,validateStringArray:validateStringArray,validateBooleanArray:validateBooleanArray,validateAbortSignalArray:validateAbortSignalArray,validateBoolean:validateBoolean,validateBuffer:ie,validateDictionary:re,validateEncoding:validateEncoding,validateFunction:oe,validateInt32:Z,validateInteger:K,validateNumber:validateNumber,validateObject:te,validateOneOf:ee,validatePlainFunction:ae,validatePort:validatePort,validateSignalName:validateSignalName,validateString:validateString,validateUint32:X,validateUndefined:le,validateUnion:validateUnion,validateAbortSignal:se,validateLinkHeaderValue:validateLinkHeaderValue}},69220:(i,u,p)=>{const{format:g,inspect:A,AggregateError:w}=p(23539);const C=globalThis.AggregateError||w;const S=Symbol("kIsNodeError");const v=["string","function","number","object","Function","Object","boolean","bigint","symbol"];const B=/^([A-Z][a-z0-9]*)+$/;const _="__node_internal_";const T={};function assert(i,u){if(!i){throw new T.ERR_INTERNAL_ASSERTION(u)}}function addNumericalSeparator(i){let u="";let p=i.length;const g=i[0]==="-"?1:0;for(;p>=g+4;p-=3){u=`_${i.slice(p-3,p)}${u}`}return`${i.slice(0,p)}${u}`}function getMessage(i,u,p){if(typeof u==="function"){assert(u.length<=p.length,`Code: ${i}; The provided arguments length (${p.length}) does not match the required ones (${u.length}).`);return u(...p)}const A=(u.match(/%[dfijoOs]/g)||[]).length;assert(A===p.length,`Code: ${i}; The provided arguments length (${p.length}) does not match the required ones (${A}).`);if(p.length===0){return u}return g(u,...p)}function E(i,u,p){if(!p){p=Error}class NodeError extends p{constructor(...p){super(getMessage(i,u,p))}toString(){return`${this.name} [${i}]: ${this.message}`}}Object.defineProperties(NodeError.prototype,{name:{value:p.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${i}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});NodeError.prototype.code=i;NodeError.prototype[S]=true;T[i]=NodeError}function hideStackFrames(i){const u=_+i.name;Object.defineProperty(i,"name",{value:u});return i}function aggregateTwoErrors(i,u){if(i&&u&&i!==u){if(Array.isArray(u.errors)){u.errors.push(i);return u}const p=new C([u,i],u.message);p.code=u.code;return p}return i||u}class AbortError extends Error{constructor(i="The operation was aborted",u=undefined){if(u!==undefined&&typeof u!=="object"){throw new T.ERR_INVALID_ARG_TYPE("options","Object",u)}super(i,u);this.code="ABORT_ERR";this.name="AbortError"}}E("ERR_ASSERTION","%s",Error);E("ERR_INVALID_ARG_TYPE",((i,u,p)=>{assert(typeof i==="string","'name' must be a string");if(!Array.isArray(u)){u=[u]}let g="The ";if(i.endsWith(" argument")){g+=`${i} `}else{g+=`"${i}" ${i.includes(".")?"property":"argument"} `}g+="must be ";const w=[];const C=[];const S=[];for(const i of u){assert(typeof i==="string","All expected entries have to be of type string");if(v.includes(i)){w.push(i.toLowerCase())}else if(B.test(i)){C.push(i)}else{assert(i!=="object",'The value "object" should be written as "Object"');S.push(i)}}if(C.length>0){const i=w.indexOf("object");if(i!==-1){w.splice(w,i,1);C.push("Object")}}if(w.length>0){switch(w.length){case 1:g+=`of type ${w[0]}`;break;case 2:g+=`one of type ${w[0]} or ${w[1]}`;break;default:{const i=w.pop();g+=`one of type ${w.join(", ")}, or ${i}`}}if(C.length>0||S.length>0){g+=" or "}}if(C.length>0){switch(C.length){case 1:g+=`an instance of ${C[0]}`;break;case 2:g+=`an instance of ${C[0]} or ${C[1]}`;break;default:{const i=C.pop();g+=`an instance of ${C.join(", ")}, or ${i}`}}if(S.length>0){g+=" or "}}switch(S.length){case 0:break;case 1:if(S[0].toLowerCase()!==S[0]){g+="an "}g+=`${S[0]}`;break;case 2:g+=`one of ${S[0]} or ${S[1]}`;break;default:{const i=S.pop();g+=`one of ${S.join(", ")}, or ${i}`}}if(p==null){g+=`. Received ${p}`}else if(typeof p==="function"&&p.name){g+=`. Received function ${p.name}`}else if(typeof p==="object"){var _;if((_=p.constructor)!==null&&_!==undefined&&_.name){g+=`. Received an instance of ${p.constructor.name}`}else{const i=A(p,{depth:-1});g+=`. Received ${i}`}}else{let i=A(p,{colors:false});if(i.length>25){i=`${i.slice(0,25)}...`}g+=`. Received type ${typeof p} (${i})`}return g}),TypeError);E("ERR_INVALID_ARG_VALUE",((i,u,p="is invalid")=>{let g=A(u);if(g.length>128){g=g.slice(0,128)+"..."}const w=i.includes(".")?"property":"argument";return`The ${w} '${i}' ${p}. Received ${g}`}),TypeError);E("ERR_INVALID_RETURN_VALUE",((i,u,p)=>{var g;const A=p!==null&&p!==undefined&&(g=p.constructor)!==null&&g!==undefined&&g.name?`instance of ${p.constructor.name}`:`type ${typeof p}`;return`Expected ${i} to be returned from the "${u}"`+` function but got ${A}.`}),TypeError);E("ERR_MISSING_ARGS",((...i)=>{assert(i.length>0,"At least one arg needs to be specified");let u;const p=i.length;i=(Array.isArray(i)?i:[i]).map((i=>`"${i}"`)).join(" or ");switch(p){case 1:u+=`The ${i[0]} argument`;break;case 2:u+=`The ${i[0]} and ${i[1]} arguments`;break;default:{const p=i.pop();u+=`The ${i.join(", ")}, and ${p} arguments`}break}return`${u} must be specified`}),TypeError);E("ERR_OUT_OF_RANGE",((i,u,p)=>{assert(u,'Missing "range" argument');let g;if(Number.isInteger(p)&&Math.abs(p)>2**32){g=addNumericalSeparator(String(p))}else if(typeof p==="bigint"){g=String(p);if(p>2n**32n||p<-(2n**32n)){g=addNumericalSeparator(g)}g+="n"}else{g=A(p)}return`The value of "${i}" is out of range. It must be ${u}. Received ${g}`}),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);i.exports={AbortError:AbortError,aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames:hideStackFrames,codes:T}},29963:(i,u,p)=>{const g=p(2203);if(g&&process.env.READABLE_STREAM==="disable"){const u=g.promises;i.exports._uint8ArrayToBuffer=g._uint8ArrayToBuffer;i.exports._isUint8Array=g._isUint8Array;i.exports.isDisturbed=g.isDisturbed;i.exports.isErrored=g.isErrored;i.exports.isReadable=g.isReadable;i.exports.Readable=g.Readable;i.exports.Writable=g.Writable;i.exports.Duplex=g.Duplex;i.exports.Transform=g.Transform;i.exports.PassThrough=g.PassThrough;i.exports.addAbortSignal=g.addAbortSignal;i.exports.finished=g.finished;i.exports.destroy=g.destroy;i.exports.pipeline=g.pipeline;i.exports.compose=g.compose;Object.defineProperty(g,"promises",{configurable:true,enumerable:true,get(){return u}});i.exports.Stream=g.Stream}else{const u=p(12375);const g=p(65904);const A=u.Readable.destroy;i.exports=u.Readable;i.exports._uint8ArrayToBuffer=u._uint8ArrayToBuffer;i.exports._isUint8Array=u._isUint8Array;i.exports.isDisturbed=u.isDisturbed;i.exports.isErrored=u.isErrored;i.exports.isReadable=u.isReadable;i.exports.Readable=u.Readable;i.exports.Writable=u.Writable;i.exports.Duplex=u.Duplex;i.exports.Transform=u.Transform;i.exports.PassThrough=u.PassThrough;i.exports.addAbortSignal=u.addAbortSignal;i.exports.finished=u.finished;i.exports.destroy=u.destroy;i.exports.destroy=A;i.exports.pipeline=u.pipeline;i.exports.compose=u.compose;Object.defineProperty(u,"promises",{configurable:true,enumerable:true,get(){return g}});i.exports.Stream=u.Stream}i.exports["default"]=i.exports},50999:i=>{i.exports={ArrayIsArray(i){return Array.isArray(i)},ArrayPrototypeIncludes(i,u){return i.includes(u)},ArrayPrototypeIndexOf(i,u){return i.indexOf(u)},ArrayPrototypeJoin(i,u){return i.join(u)},ArrayPrototypeMap(i,u){return i.map(u)},ArrayPrototypePop(i,u){return i.pop(u)},ArrayPrototypePush(i,u){return i.push(u)},ArrayPrototypeSlice(i,u,p){return i.slice(u,p)},Error:Error,FunctionPrototypeCall(i,u,...p){return i.call(u,...p)},FunctionPrototypeSymbolHasInstance(i,u){return Function.prototype[Symbol.hasInstance].call(i,u)},MathFloor:Math.floor,Number: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(i,u){return Object.defineProperties(i,u)},ObjectDefineProperty(i,u,p){return Object.defineProperty(i,u,p)},ObjectGetOwnPropertyDescriptor(i,u){return Object.getOwnPropertyDescriptor(i,u)},ObjectKeys(i){return Object.keys(i)},ObjectSetPrototypeOf(i,u){return Object.setPrototypeOf(i,u)},Promise:Promise,PromisePrototypeCatch(i,u){return i.catch(u)},PromisePrototypeThen(i,u,p){return i.then(u,p)},PromiseReject(i){return Promise.reject(i)},PromiseResolve(i){return Promise.resolve(i)},ReflectApply:Reflect.apply,RegExpPrototypeTest(i,u){return i.test(u)},SafeSet:Set,String:String,StringPrototypeSlice(i,u,p){return i.slice(u,p)},StringPrototypeToLowerCase(i){return i.toLowerCase()},StringPrototypeToUpperCase(i){return i.toUpperCase()},StringPrototypeTrim(i){return i.trim()},Symbol: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(i,u,p){return i.set(u,p)},Boolean:Boolean,Uint8Array:Uint8Array}},23539:(i,u,p)=>{const g=p(20181);const{kResistStopPropagation:A,SymbolDispose:w}=p(50999);const C=globalThis.AbortSignal||p(17413).AbortSignal;const S=globalThis.AbortController||p(17413).AbortController;const v=Object.getPrototypeOf((async function(){})).constructor;const B=globalThis.Blob||g.Blob;const _=typeof B!=="undefined"?function isBlob(i){return i instanceof B}:function isBlob(i){return false};const validateAbortSignal=(i,u)=>{if(i!==undefined&&(i===null||typeof i!=="object"||!("aborted"in i))){throw new ERR_INVALID_ARG_TYPE(u,"AbortSignal",i)}};const validateFunction=(i,u)=>{if(typeof i!=="function")throw new ERR_INVALID_ARG_TYPE(u,"Function",i)};class AggregateError extends Error{constructor(i){if(!Array.isArray(i)){throw new TypeError(`Expected input to be an Array, got ${typeof i}`)}let u="";for(let p=0;p compareIdentifiers(u,i);i.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},61383:i=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(i){const u=this.map.get(i);if(u===undefined){return undefined}else{this.map.delete(i);this.map.set(i,u);return u}}delete(i){return this.map.delete(i)}set(i,u){const p=this.delete(i);if(!p&&u!==undefined){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(i,u)}return this}}i.exports=LRUCache},70356:i=>{const u=Object.freeze({loose:true});const p=Object.freeze({});const parseOptions=i=>{if(!i){return p}if(typeof i!=="object"){return u}return i};i.exports=parseOptions},95471:(i,u,p)=>{const{MAX_SAFE_COMPONENT_LENGTH:g,MAX_SAFE_BUILD_LENGTH:A,MAX_LENGTH:w}=p(45101);const C=p(1159);u=i.exports={};const S=u.re=[];const v=u.safeRe=[];const B=u.src=[];const _=u.safeSrc=[];const T=u.t={};let N=0;const x="[a-zA-Z0-9-]";const k=[["\\s",1],["\\d",w],[x,A]];const makeSafeRegex=i=>{for(const[u,p]of k){i=i.split(`${u}*`).join(`${u}{0,${p}}`).split(`${u}+`).join(`${u}{1,${p}}`)}return i};const createToken=(i,u,p)=>{const g=makeSafeRegex(u);const A=N++;C(i,A,u);T[i]=A;B[A]=u;_[A]=g;S[A]=new RegExp(u,p?"g":undefined);v[A]=new RegExp(g,p?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${x}*`);createToken("MAINVERSION",`(${B[T.NUMERICIDENTIFIER]})\\.`+`(${B[T.NUMERICIDENTIFIER]})\\.`+`(${B[T.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${B[T.NUMERICIDENTIFIERLOOSE]})\\.`+`(${B[T.NUMERICIDENTIFIERLOOSE]})\\.`+`(${B[T.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${B[T.NONNUMERICIDENTIFIER]}|${B[T.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${B[T.NONNUMERICIDENTIFIER]}|${B[T.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${B[T.PRERELEASEIDENTIFIER]}(?:\\.${B[T.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${B[T.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${B[T.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${x}+`);createToken("BUILD",`(?:\\+(${B[T.BUILDIDENTIFIER]}(?:\\.${B[T.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${B[T.MAINVERSION]}${B[T.PRERELEASE]}?${B[T.BUILD]}?`);createToken("FULL",`^${B[T.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${B[T.MAINVERSIONLOOSE]}${B[T.PRERELEASELOOSE]}?${B[T.BUILD]}?`);createToken("LOOSE",`^${B[T.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${B[T.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${B[T.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${B[T.XRANGEIDENTIFIER]})`+`(?:\\.(${B[T.XRANGEIDENTIFIER]})`+`(?:\\.(${B[T.XRANGEIDENTIFIER]})`+`(?:${B[T.PRERELEASE]})?${B[T.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${B[T.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${B[T.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${B[T.XRANGEIDENTIFIERLOOSE]})`+`(?:${B[T.PRERELEASELOOSE]})?${B[T.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${B[T.GTLT]}\\s*${B[T.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${B[T.GTLT]}\\s*${B[T.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${g}})`+`(?:\\.(\\d{1,${g}}))?`+`(?:\\.(\\d{1,${g}}))?`);createToken("COERCE",`${B[T.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",B[T.COERCEPLAIN]+`(?:${B[T.PRERELEASE]})?`+`(?:${B[T.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",B[T.COERCE],true);createToken("COERCERTLFULL",B[T.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${B[T.LONETILDE]}\\s+`,true);u.tildeTrimReplace="$1~";createToken("TILDE",`^${B[T.LONETILDE]}${B[T.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${B[T.LONETILDE]}${B[T.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${B[T.LONECARET]}\\s+`,true);u.caretTrimReplace="$1^";createToken("CARET",`^${B[T.LONECARET]}${B[T.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${B[T.LONECARET]}${B[T.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${B[T.GTLT]}\\s*(${B[T.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${B[T.GTLT]}\\s*(${B[T.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${B[T.GTLT]}\\s*(${B[T.LOOSEPLAIN]}|${B[T.XRANGEPLAIN]})`,true);u.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${B[T.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${B[T.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${B[T.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${B[T.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},12276:(i,u,p)=>{const g=p(10280);const gtr=(i,u,p)=>g(i,u,">",p);i.exports=gtr},23465:(i,u,p)=>{const g=p(96782);const intersects=(i,u,p)=>{i=new g(i,p);u=new g(u,p);return i.intersects(u,p)};i.exports=intersects},15213:(i,u,p)=>{const g=p(10280);const ltr=(i,u,p)=>g(i,u,"<",p);i.exports=ltr},73193:(i,u,p)=>{const g=p(7163);const A=p(96782);const maxSatisfying=(i,u,p)=>{let w=null;let C=null;let S=null;try{S=new A(u,p)}catch(i){return null}i.forEach((i=>{if(S.test(i)){if(!w||C.compare(i)===-1){w=i;C=new g(w,p)}}}));return w};i.exports=maxSatisfying},68595:(i,u,p)=>{const g=p(7163);const A=p(96782);const minSatisfying=(i,u,p)=>{let w=null;let C=null;let S=null;try{S=new A(u,p)}catch(i){return null}i.forEach((i=>{if(S.test(i)){if(!w||C.compare(i)===1){w=i;C=new g(w,p)}}}));return w};i.exports=minSatisfying},51866:(i,u,p)=>{const g=p(7163);const A=p(96782);const w=p(16599);const minVersion=(i,u)=>{i=new A(i,u);let p=new g("0.0.0");if(i.test(p)){return p}p=new g("0.0.0-0");if(i.test(p)){return p}p=null;for(let u=0;u =0){if(A>0)i.lastNeed=A-1;return A}if(--g =0){if(A>0)i.lastNeed=A-2;return A}if(--g =0){if(A>0){if(A===2)A=0;else i.lastNeed=A-3}return A}return 0}function utf8CheckExtraBytes(i,u,p){if((u[0]&192)!==128){i.lastNeed=0;return"�"}if(i.lastNeed>1&&u.length>1){if((u[1]&192)!==128){i.lastNeed=1;return"�"}if(i.lastNeed>2&&u.length>2){if((u[2]&192)!==128){i.lastNeed=2;return"�"}}}}function utf8FillLast(i){var u=this.lastTotal-this.lastNeed;var p=utf8CheckExtraBytes(this,i,u);if(p!==undefined)return p;if(this.lastNeed<=i.length){i.copy(this.lastChar,u,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}i.copy(this.lastChar,u,0,i.length);this.lastNeed-=i.length}function utf8Text(i,u){var p=utf8CheckIncomplete(this,i,u);if(!this.lastNeed)return i.toString("utf8",u);this.lastTotal=p;var g=i.length-(p-this.lastNeed);i.copy(this.lastChar,0,g);return i.toString("utf8",u,g)}function utf8End(i){var u=i&&i.length?this.write(i):"";if(this.lastNeed)return u+"�";return u}function utf16Text(i,u){if((i.length-u)%2===0){var p=i.toString("utf16le",u);if(p){var g=p.charCodeAt(p.length-1);if(g>=55296&&g<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=i[i.length-2];this.lastChar[1]=i[i.length-1];return p.slice(0,-1)}}return p}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=i[i.length-1];return i.toString("utf16le",u,i.length-1)}function utf16End(i){var u=i&&i.length?this.write(i):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return u+this.lastChar.toString("utf16le",0,p)}return u}function base64Text(i,u){var p=(i.length-u)%3;if(p===0)return i.toString("base64",u);this.lastNeed=3-p;this.lastTotal=3;if(p===1){this.lastChar[0]=i[i.length-1]}else{this.lastChar[0]=i[i.length-2];this.lastChar[1]=i[i.length-1]}return i.toString("base64",u,i.length-p)}function base64End(i){var u=i&&i.length?this.write(i):"";if(this.lastNeed)return u+this.lastChar.toString("base64",0,3-this.lastNeed);return u}function simpleWrite(i){return i.toString(this.encoding)}function simpleEnd(i){return i&&i.length?this.write(i):""}},21450:(i,u,p)=>{const g=p(70857);const A=p(52018);const w=p(83813);const{env:C}=process;let S;if(w("no-color")||w("no-colors")||w("color=false")||w("color=never")){S=0}else if(w("color")||w("colors")||w("color=true")||w("color=always")){S=1}if("FORCE_COLOR"in C){if(C.FORCE_COLOR==="true"){S=1}else if(C.FORCE_COLOR==="false"){S=0}else{S=C.FORCE_COLOR.length===0?1:Math.min(parseInt(C.FORCE_COLOR,10),3)}}function translateLevel(i){if(i===0){return false}return{level:i,hasBasic:true,has256:i>=2,has16m:i>=3}}function supportsColor(i,u){if(S===0){return 0}if(w("color=16m")||w("color=full")||w("color=truecolor")){return 3}if(w("color=256")){return 2}if(i&&!u&&S===undefined){return 0}const p=S||0;if(C.TERM==="dumb"){return p}if(process.platform==="win32"){const i=g.release().split(".");if(Number(i[0])>=10&&Number(i[2])>=10586){return Number(i[2])>=14931?3:2}return 1}if("CI"in C){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((i=>i in C))||C.CI_NAME==="codeship"){return 1}return p}if("TEAMCITY_VERSION"in C){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0}if(C.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in C){const i=parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(C.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)){return 1}if("COLORTERM"in C){return 1}return p}function getSupportLevel(i){const u=supportsColor(i,i&&i.isTTY);return translateLevel(u)}i.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,A.isatty(1))),stderr:translateLevel(supportsColor(true,A.isatty(2)))}},20775:(i,u,p)=>{const g={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{i.exports=p(79896).constants||g}catch{i.exports=g}},35763:(i,u,p)=>{const{Writable:g,Readable:A,getStreamError:w}=p(36204);const C=p(83867);const S=p(73057);const v=p(88428);const B=S.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new C;this._offset=0}push(i){this.buffered+=i.byteLength;this.queue.push(i)}shiftFirst(i){return this._buffered===0?null:this._next(i)}shift(i){if(i>this.buffered)return null;if(i===0)return B;let u=this._next(i);if(i===u.byteLength)return u;const p=[u];while((i-=u.byteLength)>0){u=this._next(i);p.push(u)}return S.concat(p)}_next(i){const u=this.queue.peek();const p=u.byteLength-this._offset;if(i>=p){const i=this._offset?u.subarray(this._offset,u.byteLength):u;this.queue.shift();this._offset=0;this.buffered-=p;this.shifted+=p;return i}this.buffered-=i;this.shifted+=i;return u.subarray(this._offset,this._offset+=i)}}class Source extends A{constructor(i,u,p){super();this.header=u;this.offset=p;this._parent=i}_read(i){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}i(null)}_predestroy(){this._parent.destroy(w(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(i){this._detach();i(null)}}class Extract extends g{constructor(i){super(i);if(!i)i={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=i.filenameEncoding||"utf-8";this._allowUnknownFormat=!!i.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(i){this._locked=false;if(i){this.destroy(i);this._continueWrite(i);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=v.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(i){this._continueWrite(i);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(i){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=v.decodeLongPath(i,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=v.decodeLongPath(i,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=v.decodePax(i);break;case"pax-header":this._pax=this._paxGlobal===null?v.decodePax(i):Object.assign({},this._paxGlobal,v.decodePax(i));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const i=this._buffer.shift(this._header.size);try{this._decodeLongHeader(i)}catch(i){this._continueWrite(i);return false}return true}_consumeStream(){const i=this._buffer.shiftFirst(this._missing);if(i===null)return false;this._missing-=i.byteLength;const u=this._stream.push(i);if(this._missing===0){this._stream.push(null);if(u)this._stream._detach();return u&&this._locked===false}return u}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const i=this._buffer.shiftFirst(this._missing);if(i!==null)this._missing-=i.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(i){const u=this._callback;this._callback=noop;u(i)}_write(i,u){this._callback=u;this._buffer.push(i);this._update()}_final(i){this._finished=this._missing===0&&this._buffer.buffered===0;i(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(i){if(this._stream)this._stream.destroy(w(this));i(null)}[Symbol.asyncIterator](){let i=null;let u=null;let p=null;let g=null;let A=null;const w=this;this.on("entry",onentry);this.on("error",(u=>{i=u}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(i){return destroy(i)}};function consumeCallback(i){if(!A)return;const u=A;A=null;u(i)}function onnext(A,C){if(i){return C(i)}if(g){A({value:g,done:false});g=null;return}u=A;p=C;consumeCallback(null);if(w._finished&&u){u({value:undefined,done:true});u=p=null}}function onentry(i,w,C){A=C;w.on("error",noop);if(u){u({value:w,done:false});u=p=null}else{g=w}}function onclose(){consumeCallback(i);if(!u)return;if(i)p(i);else u({value:undefined,done:true});u=p=null}function destroy(i){w.destroy(i);consumeCallback(i);return new Promise(((u,p)=>{if(w.destroyed)return u({value:undefined,done:true});w.once("close",(function(){if(i)p(i);else u({value:undefined,done:true})}))}))}}}i.exports=function extract(i){return new Extract(i)};function noop(){}function overflow(i){i&=511;return i&&512-i}},88428:(i,u,p)=>{const g=p(73057);const A="0000000000000000000";const w="7777777777777777777";const C="0".charCodeAt(0);const S=g.from([117,115,116,97,114,0]);const v=g.from([C,C]);const B=g.from([117,115,116,97,114,32]);const _=g.from([32,0]);const T=4095;const N=257;const x=263;u.decodeLongPath=function decodeLongPath(i,u){return decodeStr(i,0,i.length,u)};u.encodePax=function encodePax(i){let u="";if(i.name)u+=addLength(" path="+i.name+"\n");if(i.linkname)u+=addLength(" linkpath="+i.linkname+"\n");const p=i.pax;if(p){for(const i in p){u+=addLength(" "+i+"="+p[i]+"\n")}}return g.from(u)};u.decodePax=function decodePax(i){const u={};while(i.length){let p=0;while(pp[i].find((i=>u.digest===i.digest))))){throw new Error("hashes do not match, cannot update integrity")}}else{this[i]=p[i]}}}match(i,u){const p=parse(i,u);if(!p){return false}const g=p.pickAlgorithm(u,Object.keys(this));return!!g&&this[g].find((i=>p[g].find((u=>i.digest===u.digest))))||false}pickAlgorithm(i,u){const p=i?.pickAlgorithm||getPrioritizedHash;let g=Object.keys(this);if(u?.length){g=g.filter((i=>u.includes(i)))}if(g.length){return g.reduce(((i,u)=>p(i,u)||i))}return null}}i.exports.parse=parse;function parse(i,u){if(!i){return null}if(typeof i==="string"){return _parse(i,u)}else if(i.algorithm&&i.digest){const p=new Integrity;p[i.algorithm]=[i];return _parse(stringify(p,u),u)}else{return _parse(stringify(i,u),u)}}function _parse(i,u){if(u?.single){return new Hash(i,u)}const p=i.trim().split(/\s+/).reduce(((i,p)=>{const g=new Hash(p,u);if(g.algorithm&&g.digest){const u=g.algorithm;if(!Object.keys(i).includes(u)){i[u]=[]}i[u].push(g)}return i}),new Integrity);return p.isEmpty()?null:p}i.exports.stringify=stringify;function stringify(i,u){if(i.algorithm&&i.digest){return Hash.prototype.toString.call(i,u)}else if(typeof i==="string"){return stringify(parse(i,u),u)}else{return Integrity.prototype.toString.call(i,u)}}i.exports.fromHex=fromHex;function fromHex(i,u,p){const g=getOptString(p?.options);return parse(`${u}-${Buffer.from(i,"hex").toString("base64")}${g}`,p)}i.exports.fromData=fromData;function fromData(i,u){const p=u?.algorithms||[...C];const A=getOptString(u?.options);return p.reduce(((p,w)=>{const C=g.createHash(w).update(i).digest("base64");const S=new Hash(`${w}-${C}${A}`,u);if(S.algorithm&&S.digest){const i=S.algorithm;if(!p[i]){p[i]=[]}p[i].push(S)}return p}),new Integrity)}i.exports.fromStream=fromStream;function fromStream(i,u){const p=integrityStream(u);return new Promise(((u,g)=>{i.pipe(p);i.on("error",g);p.on("error",g);let A;p.on("integrity",(i=>{A=i}));p.on("end",(()=>u(A)));p.resume()}))}i.exports.checkData=checkData;function checkData(i,u,p){u=parse(u,p);if(!u||!Object.keys(u).length){if(p?.error){throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"})}else{return false}}const A=u.pickAlgorithm(p);const w=g.createHash(A).update(i).digest("base64");const C=parse({algorithm:A,digest:w});const S=C.match(u,p);p=p||{};if(S||!p.error){return S}else if(typeof p.size==="number"&&i.length!==p.size){const g=new Error(`data size mismatch when checking ${u}.\n Wanted: ${p.size}\n Found: ${i.length}`);g.code="EBADSIZE";g.found=i.length;g.expected=p.size;g.sri=u;throw g}else{const p=new Error(`Integrity checksum failed when using ${A}: Wanted ${u}, but got ${C}. (${i.length} bytes)`);p.code="EINTEGRITY";p.found=C;p.expected=u;p.algorithm=A;p.sri=u;throw p}}i.exports.checkStream=checkStream;function checkStream(i,u,p){p=p||Object.create(null);p.integrity=u;u=parse(u,p);if(!u||!Object.keys(u).length){return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}))}const g=integrityStream(p);return new Promise(((u,p)=>{i.pipe(g);i.on("error",p);g.on("error",p);let A;g.on("verified",(i=>{A=i}));g.on("end",(()=>u(A)));g.resume()}))}i.exports.integrityStream=integrityStream;function integrityStream(i=Object.create(null)){return new IntegrityStream(i)}i.exports.create=createIntegrity;function createIntegrity(i){const u=i?.algorithms||[...C];const p=getOptString(i?.options);const A=u.map(g.createHash);return{update:function(i,u){A.forEach((p=>p.update(i,u)));return this},digest:function(){const g=u.reduce(((u,g)=>{const w=A.shift().digest("base64");const C=new Hash(`${g}-${w}${p}`,i);if(!u[C.algorithm]){u[C.algorithm]=[]}u[C.algorithm].push(C);return u}),new Integrity);return g}}}function getPrioritizedHash(i,u){return N.indexOf(i.toLowerCase())>=N.indexOf(u.toLowerCase())?i:u}},36204:(i,u,p)=>{const{EventEmitter:g}=p(24434);const A=new Error("Stream was destroyed");const w=new Error("Premature close");const C=p(5506);const S=p(83867);const v=(1<<28)-1;const B=1;const _=2;const T=4;const N=8;const x=v^B;const k=v^_;const O=1<<4;const D=2<<4;const Q=4<<4;const P=8<<4;const L=16<<4;const U=32<<4;const H=64<<4;const j=128<<4;const z=256<<4;const q=512<<4;const $=1024<<4;const W=2048<<4;const J=4096<<4;const Y=8192<<4;const K=L|U;const Z=O|J;const X=Q|O;const ee=z|P;const te=L|Y;const re=v^O;const ne=v^Q;const ie=v^(Q|J);const se=v^J;const oe=v^L;const ae=v^(P|q);const le=v^H;const ue=v^K;const de=v^W;const he=v^D;const fe=v^Y;const pe=v^te;const ge=1<<18;const me=2<<18;const Ae=4<<18;const ye=8<<18;const be=16<<18;const Ee=32<<18;const we=64<<18;const Ce=128<<18;const Se=256<<18;const ve=512<<18;const _e=v^(ge|Se);const Re=v^Ae;const Ne=v^ve;const xe=v^be;const ke=v^ye;const Oe=v^Ce;const De=v^me;const Qe=O|ge;const Pe=v^Qe;const Me=$|Ee;const Fe=T|N|_;const Ue=Fe|B;const He=Fe|Me;const Ge=Re≠const je=Ce|W;const ze=je&Pe;const qe=Ue|ze;const $e=Ue|H|$;const Je=Ue|$|P;const Ke=Ue|H|P;const Xe=Ue|z|P|q;const et=Ue|O|H|$|J|Y;const tt=Fe|H|$;const rt=D|Ue|W|Q;const nt=Ue|ve|Ee;const it=ye|be;const st=ye|ge;const ct=ye|be|Ue|ge;const ut=Ue|ge|ye;const dt=Ae|ge;const pt=ge|Se;const mt=Ue|ve|st|Ee;const At=be|Fe|ve|Ee;const yt=me|Ue|Ce|Ae;const bt=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(i,{highWaterMark:u=16384,map:p=null,mapWritable:g,byteLength:A,byteLengthWritable:w}={}){this.stream=i;this.queue=new S;this.highWaterMark=u;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=w||A||defaultByteLength;this.map=g||p;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&Ee)!==0}push(i){if(this.map!==null)i=this.map(i);this.buffered+=this.byteLength(i);this.queue.push(i);if(this.bufferedp[i].find((i=>u.digest===i.digest))))){throw new Error("hashes do not match, cannot update integrity")}}else{this[i]=p[i]}}}match(i,u){const p=parse(i,u);if(!p){return false}const g=p.pickAlgorithm(u,Object.keys(this));return!!g&&this[g].find((i=>p[g].find((u=>i.digest===u.digest))))||false}pickAlgorithm(i,u){const p=i?.pickAlgorithm||getPrioritizedHash;let g=Object.keys(this);if(u?.length){g=g.filter((i=>u.includes(i)))}if(g.length){return g.reduce(((i,u)=>p(i,u)||i))}return null}}i.exports.parse=parse;function parse(i,u){if(!i){return null}if(typeof i==="string"){return _parse(i,u)}else if(i.algorithm&&i.digest){const p=new Integrity;p[i.algorithm]=[i];return _parse(stringify(p,u),u)}else{return _parse(stringify(i,u),u)}}function _parse(i,u){if(u?.single){return new Hash(i,u)}const p=i.trim().split(/\s+/).reduce(((i,p)=>{const g=new Hash(p,u);if(g.algorithm&&g.digest){const u=g.algorithm;if(!Object.keys(i).includes(u)){i[u]=[]}i[u].push(g)}return i}),new Integrity);return p.isEmpty()?null:p}i.exports.stringify=stringify;function stringify(i,u){if(i.algorithm&&i.digest){return Hash.prototype.toString.call(i,u)}else if(typeof i==="string"){return stringify(parse(i,u),u)}else{return Integrity.prototype.toString.call(i,u)}}i.exports.fromHex=fromHex;function fromHex(i,u,p){const g=getOptString(p?.options);return parse(`${u}-${Buffer.from(i,"hex").toString("base64")}${g}`,p)}i.exports.fromData=fromData;function fromData(i,u){const p=u?.algorithms||[...C];const A=getOptString(u?.options);return p.reduce(((p,w)=>{const C=g.createHash(w).update(i).digest("base64");const S=new Hash(`${w}-${C}${A}`,u);if(S.algorithm&&S.digest){const i=S.algorithm;if(!p[i]){p[i]=[]}p[i].push(S)}return p}),new Integrity)}i.exports.fromStream=fromStream;function fromStream(i,u){const p=integrityStream(u);return new Promise(((u,g)=>{i.pipe(p);i.on("error",g);p.on("error",g);let A;p.on("integrity",(i=>{A=i}));p.on("end",(()=>u(A)));p.resume()}))}i.exports.checkData=checkData;function checkData(i,u,p){u=parse(u,p);if(!u||!Object.keys(u).length){if(p?.error){throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"})}else{return false}}const A=u.pickAlgorithm(p);const w=g.createHash(A).update(i).digest("base64");const C=parse({algorithm:A,digest:w});const S=C.match(u,p);p=p||{};if(S||!p.error){return S}else if(typeof p.size==="number"&&i.length!==p.size){const g=new Error(`data size mismatch when checking ${u}.\n Wanted: ${p.size}\n Found: ${i.length}`);g.code="EBADSIZE";g.found=i.length;g.expected=p.size;g.sri=u;throw g}else{const p=new Error(`Integrity checksum failed when using ${A}: Wanted ${u}, but got ${C}. (${i.length} bytes)`);p.code="EINTEGRITY";p.found=C;p.expected=u;p.algorithm=A;p.sri=u;throw p}}i.exports.checkStream=checkStream;function checkStream(i,u,p){p=p||Object.create(null);p.integrity=u;u=parse(u,p);if(!u||!Object.keys(u).length){return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}))}const g=integrityStream(p);return new Promise(((u,p)=>{i.pipe(g);i.on("error",p);g.on("error",p);let A;g.on("verified",(i=>{A=i}));g.on("end",(()=>u(A)));g.resume()}))}i.exports.integrityStream=integrityStream;function integrityStream(i=Object.create(null)){return new IntegrityStream(i)}i.exports.create=createIntegrity;function createIntegrity(i){const u=i?.algorithms||[...C];const p=getOptString(i?.options);const A=u.map(g.createHash);return{update:function(i,u){A.forEach((p=>p.update(i,u)));return this},digest:function(){const g=u.reduce(((u,g)=>{const w=A.shift().digest("base64");const C=new Hash(`${g}-${w}${p}`,i);if(!u[C.algorithm]){u[C.algorithm]=[]}u[C.algorithm].push(C);return u}),new Integrity);return g}}}function getPrioritizedHash(i,u){return N.indexOf(i.toLowerCase())>=N.indexOf(u.toLowerCase())?i:u}},36204:(i,u,p)=>{const{EventEmitter:g}=p(24434);const A=new Error("Stream was destroyed");const w=new Error("Premature close");const C=p(5506);const S=p(83867);const v=(1<<28)-1;const B=1;const _=2;const T=4;const N=8;const x=v^B;const k=v^_;const O=1<<4;const D=2<<4;const Q=4<<4;const P=8<<4;const L=16<<4;const U=32<<4;const H=64<<4;const j=128<<4;const z=256<<4;const q=512<<4;const $=1024<<4;const W=2048<<4;const J=4096<<4;const Y=8192<<4;const K=L|U;const Z=O|J;const X=Q|O;const ee=z|P;const te=L|Y;const re=v^O;const ne=v^Q;const ie=v^(Q|J);const se=v^J;const oe=v^L;const ae=v^(P|q);const le=v^H;const ue=v^K;const de=v^W;const he=v^D;const fe=v^Y;const pe=v^te;const ge=1<<18;const me=2<<18;const Ae=4<<18;const ye=8<<18;const be=16<<18;const Ee=32<<18;const we=64<<18;const Ce=128<<18;const Se=256<<18;const ve=512<<18;const _e=v^(ge|Se);const Re=v^Ae;const Ne=v^ve;const xe=v^be;const ke=v^ye;const Oe=v^Ce;const De=v^me;const Qe=O|ge;const Pe=v^Qe;const Me=$|Ee;const Fe=T|N|_;const Ue=Fe|B;const He=Fe|Me;const Ge=Re≠const je=Ce|W;const ze=je&Pe;const qe=Ue|ze;const $e=Ue|H|$;const Je=Ue|$|P;const Ke=Ue|H|P;const Xe=Ue|z|P|q;const et=Ue|O|H|$|J|Y;const tt=Fe|H|$;const rt=D|Ue|W|Q;const nt=Ue|ve|Ee;const it=ye|be;const st=ye|ge;const ct=ye|be|Ue|ge;const ut=Ue|ge|ye;const dt=Ae|ge;const pt=ge|Se;const mt=Ue|ve|st|Ee;const At=be|Fe|ve|Ee;const yt=me|Ue|Ce|Ae;const bt=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(i,{highWaterMark:u=16384,map:p=null,mapWritable:g,byteLength:A,byteLengthWritable:w}={}){this.stream=i;this.queue=new S;this.highWaterMark=u;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=w||A||defaultByteLength;this.map=g||p;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&Ee)!==0}push(i){if(this.map!==null)i=this.map(i);this.buffered+=this.byteLength(i);this.queue.push(i);if(this.buffered