From 9e49f1dfe39fc6f426204452124a8dc598ee3d86 Mon Sep 17 00:00:00 2001 From: "GitHub Actions (pmd-bot)" Date: Sat, 8 Jul 2023 07:43:24 +0000 Subject: [PATCH] Updated dist --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index dd0984e..0f53c6d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4,7 +4,7 @@ * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},7129:(e,t,r)=>{"use strict";const a=r(665);const s=Symbol("max");const o=Symbol("length");const i=Symbol("lengthCalculator");const p=Symbol("allowStale");const n=Symbol("maxAge");const d=Symbol("dispose");const l=Symbol("noDisposeOnSet");const c=Symbol("lruList");const m=Symbol("cache");const u=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[s]=e.max||Infinity;const r=e.length||naiveLength;this[i]=typeof r!=="function"?naiveLength:r;this[p]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[n]=e.maxAge||0;this[d]=e.dispose;this[l]=e.noDisposeOnSet||false;this[u]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||Infinity;trim(this)}get max(){return this[s]}set allowStale(e){this[p]=!!e}get allowStale(){return this[p]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[n]=e;trim(this)}get maxAge(){return this[n]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[i]){this[i]=e;this[o]=0;this[c].forEach((e=>{e.length=this[i](e.value,e.key);this[o]+=e.length}))}trim(this)}get lengthCalculator(){return this[i]}get length(){return this[o]}get itemCount(){return this[c].length}rforEach(e,t){t=t||this;for(let r=this[c].tail;r!==null;){const a=r.prev;forEachStep(this,e,r,t);r=a}}forEach(e,t){t=t||this;for(let r=this[c].head;r!==null;){const a=r.next;forEachStep(this,e,r,t);r=a}}keys(){return this[c].toArray().map((e=>e.key))}values(){return this[c].toArray().map((e=>e.value))}reset(){if(this[d]&&this[c]&&this[c].length){this[c].forEach((e=>this[d](e.key,e.value)))}this[m]=new Map;this[c]=new a;this[o]=0}dump(){return this[c].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[c]}set(e,t,r){r=r||this[n];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const a=r?Date.now():0;const p=this[i](t,e);if(this[m].has(e)){if(p>this[s]){del(this,this[m].get(e));return false}const i=this[m].get(e);const n=i.value;if(this[d]){if(!this[l])this[d](e,n.value)}n.now=a;n.maxAge=r;n.value=t;this[o]+=p-n.length;n.length=p;this.get(e);trim(this);return true}const u=new Entry(e,t,p,a,r);if(u.length>this[s]){if(this[d])this[d](e,t);return false}this[o]+=u.length;this[c].unshift(u);this[m].set(e,this[c].head);trim(this);return true}has(e){if(!this[m].has(e))return false;const t=this[m].get(e).value;return!isStale(this,t)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[c].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[m].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const a=e[r];const s=a.e||0;if(s===0)this.set(a.k,a.v);else{const e=s-t;if(e>0){this.set(a.k,a.v,e)}}}}prune(){this[m].forEach(((e,t)=>get(this,t,false)))}}const get=(e,t,r)=>{const a=e[m].get(t);if(a){const t=a.value;if(isStale(e,t)){del(e,a);if(!e[p])return undefined}else{if(r){if(e[u])a.value.now=Date.now();e[c].unshiftNode(a)}}return t.value}};const isStale=(e,t)=>{if(!t||!t.maxAge&&!e[n])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[n]&&r>e[n]};const trim=e=>{if(e[o]>e[s]){for(let t=e[c].tail;e[o]>e[s]&&t!==null;){const r=t.prev;del(e,t);t=r}}};const del=(e,t)=>{if(t){const r=t.value;if(e[d])e[d](r.key,r.value);e[o]-=r.length;e[m].delete(r.key);e[c].removeNode(t)}};class Entry{constructor(e,t,r,a,s){this.key=e;this.value=t;this.length=r;this.now=a;this.maxAge=s||0}}const forEachStep=(e,t,r,a)=>{let s=r.value;if(isStale(e,s)){del(e,r);if(!e[p])s=undefined}if(s)t.call(a,s.value,s.key,e)};e.exports=LRUCache},3973:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var a=function(){try{return r(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=a.sep;var s=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var o=r(3717);var i={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var p="[^/]";var n=p+"*?";var d="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var c=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var m=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,a,s){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,a,s){return t(r,a,ext(e,s))};r.Minimatch=function Minimatch(r,a){return new t.Minimatch(r,ext(e,a))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,a){return t.filter(r,ext(e,a))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,a){return t.makeRe(r,ext(e,a))};r.braceExpand=function braceExpand(r,a){return t.braceExpand(r,ext(e,a))};r.match=function(r,a,s){return t.match(r,a,ext(e,s))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&a.sep!=="/"){e=e.split(a.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(m)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var a=0;if(r.nonegate)return;for(var s=0,o=e.length;su){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var h={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";var a="";var o=!!r.nocase;var d=false;var l=[];var m=[];var u;var g=false;var v=-1;var E=-1;var w=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var T=this;function clearStateChar(){if(u){switch(u){case"*":a+=n;o=true;break;case"?":a+=p;o=true;break;default:a+="\\"+u;break}T.debug("clearStateChar %j %j",u,a);u=false}}for(var _=0,b=e.length,y;_-1;k--){var C=m[k];var G=a.slice(0,C.reStart);var F=a.slice(C.reStart,C.reEnd-8);var N=a.slice(C.reEnd-8,C.reEnd);var I=a.slice(C.reEnd);N+=I;var x=G.split("(").length-1;var U=I;for(_=0;_=0;i--){o=e[i];if(o)break}for(i=0;i>> no match, partial?",e,c,t,m);if(c===p)return true}return false}var h;if(typeof d==="string"){h=l===d;this.debug("string match",d,l,h)}else{h=l.match(d);this.debug("pattern match",d,l,h)}if(!h)return false}if(o===p&&i===n){return true}else if(o===p){return r}else if(i===n){return o===p-1&&e[o]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var a=_interopDefault(r(2781));var s=_interopDefault(r(3685));var o=_interopDefault(r(7310));var i=_interopDefault(r(3323));var p=_interopDefault(r(5687));var n=_interopDefault(r(9796));const d=a.Readable;const l=Symbol("buffer");const c=Symbol("type");class Blob{constructor(){this[c]="";const e=arguments[0];const t=arguments[1];const r=[];let a=0;if(e){const t=e;const s=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},s=r.size;let o=s===undefined?0:s;var i=r.timeout;let p=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof a);else{e=Buffer.from(String(e))}this[u]={body:e,disturbed:false,error:null};this.size=o;this.timeout=p;if(e instanceof a){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[u].error=r}))}}Body.prototype={get body(){return this[u].body},get bodyUsed(){return this[u].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[l]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[u].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[u].disturbed=true;if(this[u].error){return Body.Promise.reject(this[u].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof a)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let s=0;let o=false;return new Body.Promise((function(a,i){let p;if(e.timeout){p=setTimeout((function(){o=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){o=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(o||t===null){return}if(e.size&&s+t.length>e.size){o=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=t.length;r.push(t)}));t.on("end",(function(){if(o){return}clearTimeout(p);try{a(Buffer.concat(r,s))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof m!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let a="utf-8";let s,o;if(r){s=/charset=([^;]*)/i.exec(r)}o=e.slice(0,1024).toString();if(!s&&o){s=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[E]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[E],e);if(t===undefined){return null}return this[E][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let a=0;while(a1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[E]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[E][t].join(", ")}:function(t){return[t.toLowerCase(),e[E][t].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(T);r[w]={target:e,kind:t,index:0};return r}const T=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==T){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[w];const t=e.target,r=e.kind,a=e.index;const s=getHeaders(t,r);const o=s.length;if(a>=o){return{value:undefined,done:true}}this[w].index=a+1;return{value:s[a],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(T,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[E]);const r=find(e[E],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(g.test(r)){continue}if(Array.isArray(e[r])){for(const a of e[r]){if(v.test(a)){continue}if(t[E][r]===undefined){t[E][r]=[a]}else{t[E][r].push(a)}}}else if(!v.test(e[r])){t[E][r]=[e[r]]}}return t}const _=Symbol("Response internals");const b=s.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const a=new Headers(t.headers);if(e!=null&&!a.has("Content-Type")){const t=extractContentType(e);if(t){a.append("Content-Type",t)}}this[_]={url:t.url,status:r,statusText:t.statusText||b[r],headers:a,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const y=Symbol("Request internals");const S=o.URL||i.URL;const A=o.parse;const O=o.format;function parseURL(e){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)){e=new S(e).toString()}return A(e)}const R="destroy"in a.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[y]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=parseURL(e.href)}else{r=parseURL(`${e}`)}e={}}else{r=parseURL(e.url)}let a=t.method||e.method||"GET";a=a.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(a==="GET"||a==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let s=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,s,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(s!=null&&!o.has("Content-Type")){const e=extractContentType(s);if(e){o.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[y]={method:a,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[y].method}get url(){return O(this[y].parsedURL)}get headers(){return this[y].headers}get redirect(){return this[y].redirect}get signal(){return this[y].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[y].parsedURL;const r=new Headers(e[y].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof a.Readable&&!R){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let s=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){s="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){s=String(t)}}if(s){r.set("Content-Length",s)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!r.has("Connection")&&!o){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const D=o.URL||i.URL;const P=a.PassThrough;const k=function isDomainOrSubdomain(e,t){const r=new D(t).hostname;const a=new D(e).hostname;return r===a||r[r.length-a.length-1]==="."&&r.endsWith(a)};function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,o){const i=new Request(e,t);const d=getNodeRequestOptions(i);const l=(d.protocol==="https:"?p:s).request;const c=i.signal;let m=null;const u=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(i.body&&i.body instanceof a.Readable){i.body.destroy(e)}if(!m||!m.body)return;m.body.emit("error",e)};if(c&&c.aborted){u();return}const h=function abortAndFinalize(){u();finalize()};const g=l(d);let v;if(c){c.addEventListener("abort",h)}function finalize(){g.abort();if(c)c.removeEventListener("abort",h);clearTimeout(v)}if(i.timeout){g.once("socket",(function(e){v=setTimeout((function(){o(new FetchError(`network timeout at: ${i.url}`,"request-timeout"));finalize()}),i.timeout)}))}g.on("error",(function(e){o(new FetchError(`request to ${i.url} failed, reason: ${e.message}`,"system",e));finalize()}));g.on("response",(function(e){clearTimeout(v);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const a=t.get("Location");let s=null;try{s=a===null?null:new D(a,i.url).toString()}catch(e){if(i.redirect!=="manual"){o(new FetchError(`uri requested responds with an invalid redirect URL: ${a}`,"invalid-redirect"));finalize();return}}switch(i.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{t.set("Location",s)}catch(e){o(e)}}break;case"follow":if(s===null){break}if(i.counter>=i.follow){o(new FetchError(`maximum redirect reached at: ${i.url}`,"max-redirect"));finalize();return}const a={headers:new Headers(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};if(!k(i.url,s)){for(const e of["authorization","www-authenticate","cookie","cookie2"]){a.headers.delete(e)}}if(e.statusCode!==303&&i.body&&getTotalBytes(i)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&i.method==="POST"){a.method="GET";a.body=undefined;a.headers.delete("content-length")}r(fetch(new Request(s,a)));finalize();return}}e.once("end",(function(){if(c)c.removeEventListener("abort",h)}));let a=e.pipe(new P);const s={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:i.size,timeout:i.timeout,counter:i.counter};const p=t.get("Content-Encoding");if(!i.compress||i.method==="HEAD"||p===null||e.statusCode===204||e.statusCode===304){m=new Response(a,s);r(m);return}const d={flush:n.Z_SYNC_FLUSH,finishFlush:n.Z_SYNC_FLUSH};if(p=="gzip"||p=="x-gzip"){a=a.pipe(n.createGunzip(d));m=new Response(a,s);r(m);return}if(p=="deflate"||p=="x-deflate"){const t=e.pipe(new P);t.once("data",(function(e){if((e[0]&15)===8){a=a.pipe(n.createInflate())}else{a=a.pipe(n.createInflateRaw())}m=new Response(a,s);r(m)}));return}if(p=="br"&&typeof n.createBrotliDecompress==="function"){a=a.pipe(n.createBrotliDecompress());m=new Response(a,s);r(m);return}m=new Response(a,s);r(m)}));writeToStream(g,i)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t["default"]=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},2299:(e,t,r)=>{"use strict";var a=r(5477);var s=r(1907);var o={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function findStatus(e){var t=0;var r=s.length-1;while(t<=r){var a=Math.floor((t+r)/2);var o=s[a];if(o[0][0]<=e&&o[0][1]>=e){return o}else if(o[0][0]>e){r=a-1}else{t=a+1}}return null}var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(e){return e.replace(i,"_").length}function mapChars(e,t,r){var a=false;var s="";var i=countSymbols(e);for(var p=0;p253||p.length===0){o.error=true}for(var n=0;n63||i.length===0){o.error=true;break}}}if(o.error)return null;return i.join(".")};e.exports.toUnicode=function(e,t){var r=processing(e,t,o.NONTRANSITIONAL);return{domain:r.string,error:r.error}};e.exports.PROCESSING_OPTIONS=o},5871:e=>{"use strict";var t={};e.exports=t;function sign(e){return e<0?-1:1}function evenRound(e){if(e%1===.5&&(e&1)===0){return Math.floor(e)}else{return Math.round(e)}}function createNumberConversion(e,t){if(!t.unsigned){--e}const r=t.unsigned?0:-Math.pow(2,e);const a=Math.pow(2,e)-1;const s=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e);const o=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,i){if(!i)i={};let p=+e;if(i.enforceRange){if(!Number.isFinite(p)){throw new TypeError("Argument is not a finite number")}p=sign(p)*Math.floor(Math.abs(p));if(pa){throw new TypeError("Argument is not in byte range")}return p}if(!isNaN(p)&&i.clamp){p=evenRound(p);if(pa)p=a;return p}if(!Number.isFinite(p)||p===0){return 0}p=sign(p)*Math.floor(Math.abs(p));p=p%s;if(!t.unsigned&&p>=o){return p-s}else if(t.unsigned){if(p<0){p+=s}else if(p===-0){return 0}}return p}}t["void"]=function(){return undefined};t["boolean"]=function(e){return!!e};t["byte"]=createNumberConversion(8,{unsigned:false});t["octet"]=createNumberConversion(8,{unsigned:true});t["short"]=createNumberConversion(16,{unsigned:false});t["unsigned short"]=createNumberConversion(16,{unsigned:true});t["long"]=createNumberConversion(32,{unsigned:false});t["unsigned long"]=createNumberConversion(32,{unsigned:true});t["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});t["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});t["double"]=function(e){const t=+e;if(!Number.isFinite(t)){throw new TypeError("Argument is not a finite floating-point value")}return t};t["unrestricted double"]=function(e){const t=+e;if(isNaN(t)){throw new TypeError("Argument is NaN")}return t};t["float"]=t["double"];t["unrestricted float"]=t["unrestricted double"];t["DOMString"]=function(e,t){if(!t)t={};if(t.treatNullAsEmptyString&&e===null){return""}return String(e)};t["ByteString"]=function(e,t){const r=String(e);let a=undefined;for(let e=0;(a=r.codePointAt(e))!==undefined;++e){if(a>255){throw new TypeError("Argument is not a valid bytestring")}}return r};t["USVString"]=function(e){const t=String(e);const r=t.length;const a=[];for(let e=0;e57343){a.push(String.fromCodePoint(s))}else if(56320<=s&&s<=57343){a.push(String.fromCodePoint(65533))}else{if(e===r-1){a.push(String.fromCodePoint(65533))}else{const r=t.charCodeAt(e+1);if(56320<=r&&r<=57343){const t=s&1023;const o=r&1023;a.push(String.fromCodePoint((2<<15)+(2<<9)*t+o));++e}else{a.push(String.fromCodePoint(65533))}}}}return a.join("")};t["Date"]=function(e,t){if(!(e instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(e)){return undefined}return e};t["RegExp"]=function(e,t){if(!(e instanceof RegExp)){e=new RegExp(e)}return e}},8262:(e,t,r)=>{"use strict";const a=r(33);t.implementation=class URLImpl{constructor(e){const t=e[0];const r=e[1];let s=null;if(r!==undefined){s=a.basicURLParse(r);if(s==="failure"){throw new TypeError("Invalid base URL")}}const o=a.basicURLParse(t,{baseURL:s});if(o==="failure"){throw new TypeError("Invalid URL")}this._url=o}get href(){return a.serializeURL(this._url)}set href(e){const t=a.basicURLParse(e);if(t==="failure"){throw new TypeError("Invalid URL")}this._url=t}get origin(){return a.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){a.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setThePassword(this._url,e)}get host(){const e=this._url;if(e.host===null){return""}if(e.port===null){return a.serializeHost(e.host)}return a.serializeHost(e.host)+":"+a.serializeInteger(e.port)}set host(e){if(this._url.cannotBeABaseURL){return}a.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return a.serializeHost(this._url.host)}set hostname(e){if(this._url.cannotBeABaseURL){return}a.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return a.serializeInteger(this._url.port)}set port(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}if(e===""){this._url.port=null}else{a.basicURLParse(e,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(e){if(this._url.cannotBeABaseURL){return}this._url.path=[];a.basicURLParse(e,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(e){const t=this._url;if(e===""){t.query=null;return}const r=e[0]==="?"?e.substring(1):e;t.query="";a.basicURLParse(r,{url:t,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(e){if(e===""){this._url.fragment=null;return}const t=e[0]==="#"?e.substring(1):e;this._url.fragment="";a.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},653:(e,t,r)=>{"use strict";const a=r(5871);const s=r(276);const o=r(8262);const i=s.implSymbol;function URL(t){if(!this||this[i]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const r=[];for(let e=0;e{"use strict";t.URL=r(653)["interface"];t.serializeURL=r(33).serializeURL;t.serializeURLOrigin=r(33).serializeURLOrigin;t.basicURLParse=r(33).basicURLParse;t.setTheUsername=r(33).setTheUsername;t.setThePassword=r(33).setThePassword;t.serializeHost=r(33).serializeHost;t.serializeInteger=r(33).serializeInteger;t.parseURL=r(33).parseURL},33:(e,t,r)=>{"use strict";const a=r(5477);const s=r(2299);const o={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const i=Symbol("failure");function countSymbols(e){return a.ucs2.decode(e).length}function at(e,t){const r=e[t];return isNaN(r)?undefined:String.fromCodePoint(r)}function isASCIIDigit(e){return e>=48&&e<=57}function isASCIIAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}function isASCIIAlphanumeric(e){return isASCIIAlpha(e)||isASCIIDigit(e)}function isASCIIHex(e){return isASCIIDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isSingleDot(e){return e==="."||e.toLowerCase()==="%2e"}function isDoubleDot(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"}function isWindowsDriveLetterCodePoints(e,t){return isASCIIAlpha(e)&&(t===58||t===124)}function isWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&(e[1]===":"||e[1]==="|")}function isNormalizedWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&e[1]===":"}function containsForbiddenHostCodePoint(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(e){return o[e]!==undefined}function isSpecial(e){return isSpecialScheme(e.scheme)}function defaultPort(e){return o[e]}function percentEncode(e){let t=e.toString(16).toUpperCase();if(t.length===1){t="0"+t}return"%"+t}function utf8PercentEncode(e){const t=new Buffer(e);let r="";for(let e=0;e126}const p=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(e){return isC0ControlPercentEncode(e)||p.has(e)}const n=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(e){return isPathPercentEncode(e)||n.has(e)}function percentEncodeChar(e,t){const r=String.fromCodePoint(e);if(t(e)){return utf8PercentEncode(r)}return r}function parseIPv4Number(e){let t=10;if(e.length>=2&&e.charAt(0)==="0"&&e.charAt(1).toLowerCase()==="x"){e=e.substring(2);t=16}else if(e.length>=2&&e.charAt(0)==="0"){e=e.substring(1);t=8}if(e===""){return 0}const r=t===10?/[^0-9]/:t===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(r.test(e)){return i}return parseInt(e,t)}function parseIPv4(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length>1){t.pop()}}if(t.length>4){return e}const r=[];for(const a of t){if(a===""){return e}const t=parseIPv4Number(a);if(t===i){return e}r.push(t)}for(let e=0;e255){return i}}if(r[r.length-1]>=Math.pow(256,5-r.length)){return i}let a=r.pop();let s=0;for(const e of r){a+=e*Math.pow(256,3-s);++s}return a}function serializeIPv4(e){let t="";let r=e;for(let e=1;e<=4;++e){t=String(r%256)+t;if(e!==4){t="."+t}r=Math.floor(r/256)}return t}function parseIPv6(e){const t=[0,0,0,0,0,0,0,0];let r=0;let s=null;let o=0;e=a.ucs2.decode(e);if(e[o]===58){if(e[o+1]!==58){return i}o+=2;++r;s=r}while(o6){return i}let a=0;while(e[o]!==undefined){let s=null;if(a>0){if(e[o]===46&&a<4){++o}else{return i}}if(!isASCIIDigit(e[o])){return i}while(isASCIIDigit(e[o])){const t=parseInt(at(e,o));if(s===null){s=t}else if(s===0){return i}else{s=s*10+t}if(s>255){return i}++o}t[r]=t[r]*256+s;++a;if(a===2||a===4){++r}}if(a!==4){return i}break}else if(e[o]===58){++o;if(e[o]===undefined){return i}}else if(e[o]!==undefined){return i}t[r]=a;++r}if(s!==null){let e=r-s;r=7;while(r!==0&&e>0){const a=t[s+e-1];t[s+e-1]=t[r];t[r]=a;--r;--e}}else if(s===null&&r!==8){return i}return t}function serializeIPv6(e){let t="";const r=findLongestZeroSequence(e);const a=r.idx;let s=false;for(let r=0;r<=7;++r){if(s&&e[r]===0){continue}else if(s){s=false}if(a===r){const e=r===0?"::":":";t+=e;s=true;continue}t+=e[r].toString(16);if(r!==7){t+=":"}}return t}function parseHost(e,t){if(e[0]==="["){if(e[e.length-1]!=="]"){return i}return parseIPv6(e.substring(1,e.length-1))}if(!t){return parseOpaqueHost(e)}const r=utf8PercentDecode(e);const a=s.toASCII(r,false,s.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(a===null){return i}if(containsForbiddenHostCodePoint(a)){return i}const o=parseIPv4(a);if(typeof o==="number"||o===i){return o}return a}function parseOpaqueHost(e){if(containsForbiddenHostCodePointExcludingPercent(e)){return i}let t="";const r=a.ucs2.decode(e);for(let e=0;er){t=a;r=s}a=null;s=0}else{if(a===null){a=o}++s}}if(s>r){t=a;r=s}return{idx:t,len:r}}function serializeHost(e){if(typeof e==="number"){return serializeIPv4(e)}if(e instanceof Array){return"["+serializeIPv6(e)+"]"}return e}function trimControlChars(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(e){const t=e.path;if(t.length===0){return}if(e.scheme==="file"&&t.length===1&&isNormalizedWindowsDriveLetter(t[0])){return}t.pop()}function includesCredentials(e){return e.username!==""||e.password!==""}function cannotHaveAUsernamePasswordPort(e){return e.host===null||e.host===""||e.cannotBeABaseURL||e.scheme==="file"}function isNormalizedWindowsDriveLetter(e){return/^[A-Za-z]:$/.test(e)}function URLStateMachine(e,t,r,s,o){this.pointer=0;this.input=e;this.base=t||null;this.encodingOverride=r||"utf-8";this.stateOverride=o;this.url=s;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const e=trimControlChars(this.input);if(e!==this.input){this.parseError=true}this.input=e}const p=trimTabAndNewline(this.input);if(p!==this.input){this.parseError=true}this.input=p;this.state=o||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=a.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer];const t=isNaN(e)?undefined:String.fromCodePoint(e);const r=this["parse "+this.state](e,t);if(!r){break}else if(r===i){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(e,t){if(isASCIIAlpha(e)){this.buffer+=t.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return i}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(e,t){if(isASCIIAlphanumeric(e)||e===43||e===45||e===46){this.buffer+=t.toLowerCase()}else if(e===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return i}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(e){if(this.base===null||this.base.cannotBeABaseURL&&e!==35){return i}else if(this.base.cannotBeABaseURL&&e===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(e){if(e===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(e){this.url.scheme=this.base.scheme;if(isNaN(e)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===47){this.state="relative slash"}else if(e===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&e===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(e){if(isSpecial(this.url)&&(e===47||e===92)){if(e===92){this.parseError=true}this.state="special authority ignore slashes"}else if(e===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(e){if(e!==47&&e!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(e,t){if(e===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const e=countSymbols(this.buffer);for(let t=0;tMath.pow(2,16)-1){this.parseError=true;return i}this.url.port=e===defaultPort(this.url.scheme)?null:e;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return i}return true};const d=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(e){this.url.scheme="file";if(e===47||e===92){if(e===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(e)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(e,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!d.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(e){if(e===47||e===92){if(e===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(e,t){if(isNaN(e)||e===47||e===92||e===63||e===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let e=parseHost(this.buffer,isSpecial(this.url));if(e===i){return i}if(e==="localhost"){e=""}this.url.host=e;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=t}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(e){if(isSpecial(this.url)){if(e===92){this.parseError=true}this.state="path";if(e!==47&&e!==92){--this.pointer}}else if(!this.stateOverride&&e===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&e===35){this.url.fragment="";this.state="fragment"}else if(e!==undefined){this.state="path";if(e!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(e){if(isNaN(e)||e===47||isSpecial(this.url)&&e===92||!this.stateOverride&&(e===63||e===35)){if(isSpecial(this.url)&&e===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(e===undefined||e===63||e===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(e===63){this.url.query="";this.state="query"}if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(e,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(e){if(e===63){this.url.query="";this.state="query"}else if(e===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(e)&&e!==37){this.parseError=true}if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(e)){this.url.path[0]=this.url.path[0]+percentEncodeChar(e,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(e,t){if(isNaN(e)||!this.stateOverride&&e===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const t=new Buffer(this.buffer);for(let e=0;e126||t[e]===34||t[e]===35||t[e]===60||t[e]===62){this.url.query+=percentEncode(t[e])}else{this.url.query+=String.fromCodePoint(t[e])}}this.buffer="";if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=t}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(e){if(isNaN(e)){}else if(e===0){this.parseError=true}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(e,isC0ControlPercentEncode)}return true};function serializeURL(e,t){let r=e.scheme+":";if(e.host!==null){r+="//";if(e.username!==""||e.password!==""){r+=e.username;if(e.password!==""){r+=":"+e.password}r+="@"}r+=serializeHost(e.host);if(e.port!==null){r+=":"+e.port}}else if(e.host===null&&e.scheme==="file"){r+="//"}if(e.cannotBeABaseURL){r+=e.path[0]}else{for(const t of e.path){r+="/"+t}}if(e.query!==null){r+="?"+e.query}if(!t&&e.fragment!==null){r+="#"+e.fragment}return r}function serializeOrigin(e){let t=e.scheme+"://";t+=serializeHost(e.host);if(e.port!==null){t+=":"+e.port}return t}e.exports.serializeURL=serializeURL;e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}};e.exports.basicURLParse=function(e,t){if(t===undefined){t={}}const r=new URLStateMachine(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);if(r.failure){return"failure"}return r.url};e.exports.setTheUsername=function(e,t){e.username="";const r=a.ucs2.decode(t);for(let t=0;t{"use strict";e.exports.mixin=function mixin(e,t){const r=Object.getOwnPropertyNames(t);for(let a=0;a{var a=r(2940);e.exports=a(once);e.exports.strict=a(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},8714:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var a=r[1]||"";var s=Boolean(a&&a.charAt(1)!==":");return Boolean(r[2]||s)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},4959:(e,t,r)=>{const a=r(9491);const s=r(1017);const o=r(7147);let i=undefined;try{i=r(1957)}catch(e){}const p={nosort:true,silent:true};let n=0;const d=process.platform==="win32";const defaults=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||o[t];t=t+"Sync";e[t]=e[t]||o[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&i===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||p};const rimraf=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}a(e,"rimraf: missing path");a.equal(typeof e,"string","rimraf: path should be a string");a.equal(typeof r,"function","rimraf: callback function required");a(t,"rimraf: invalid options argument provided");a.equal(typeof t,"object","rimraf: options should be object");defaults(t);let s=0;let o=null;let p=0;const next=e=>{o=o||e;if(--p===0)r(o)};const afterGlob=(e,a)=>{if(e)return r(e);p=a.length;if(p===0)return r();a.forEach((e=>{const CB=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&srimraf_(e,t,CB)),s*100)}if(r.code==="EMFILE"&&nrimraf_(e,t,CB)),n++)}if(r.code==="ENOENT")r=null}n=0;next(r)};rimraf_(e,t,CB)}))};if(t.disableGlob||!i.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,((r,a)=>{if(!r)return afterGlob(null,[e]);i(e,t.glob,afterGlob)}))};const rimraf_=(e,t,r)=>{a(e);a(t);a(typeof r==="function");t.lstat(e,((a,s)=>{if(a&&a.code==="ENOENT")return r(null);if(a&&a.code==="EPERM"&&d)fixWinEPERM(e,t,a,r);if(s&&s.isDirectory())return rmdir(e,t,a,r);t.unlink(e,(a=>{if(a){if(a.code==="ENOENT")return r(null);if(a.code==="EPERM")return d?fixWinEPERM(e,t,a,r):rmdir(e,t,a,r);if(a.code==="EISDIR")return rmdir(e,t,a,r)}return r(a)}))}))};const fixWinEPERM=(e,t,r,s)=>{a(e);a(t);a(typeof s==="function");t.chmod(e,438,(a=>{if(a)s(a.code==="ENOENT"?null:r);else t.stat(e,((a,o)=>{if(a)s(a.code==="ENOENT"?null:r);else if(o.isDirectory())rmdir(e,t,r,s);else t.unlink(e,s)}))}))};const fixWinEPERMSync=(e,t,r)=>{a(e);a(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let s;try{s=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(s.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)};const rmdir=(e,t,r,s)=>{a(e);a(t);a(typeof s==="function");t.rmdir(e,(a=>{if(a&&(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM"))rmkids(e,t,s);else if(a&&a.code==="ENOTDIR")s(r);else s(a)}))};const rmkids=(e,t,r)=>{a(e);a(t);a(typeof r==="function");t.readdir(e,((a,o)=>{if(a)return r(a);let i=o.length;if(i===0)return t.rmdir(e,r);let p;o.forEach((a=>{rimraf(s.join(e,a),t,(a=>{if(p)return;if(a)return r(p=a);if(--i===0)t.rmdir(e,r)}))}))}))};const rimrafSync=(e,t)=>{t=t||{};defaults(t);a(e,"rimraf: missing path");a.equal(typeof e,"string","rimraf: path should be a string");a(t,"rimraf: missing options");a.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!i.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(a){r=i.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e{a(e);a(t);try{t.rmdirSync(e)}catch(a){if(a.code==="ENOENT")return;if(a.code==="ENOTDIR")throw r;if(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM")rmkidsSync(e,t)}};const rmkidsSync=(e,t)=>{a(e);a(t);t.readdirSync(e).forEach((r=>rimrafSync(s.join(e,r),t)));const r=d?100:1;let o=0;do{let a=true;try{const s=t.rmdirSync(e,t);a=false;return s}finally{if(++o{const a=Symbol("SemVer ANY");class Comparator{static get ANY(){return a}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===a){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}parse(e){const t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=a}else{this.semver=new d(r[2],this.options.loose)}}toString(){return this.value}test(e){n("Comparator.test",e,this.options.loose);if(this.semver===a||e===a){return true}if(typeof e==="string"){try{e=new d(e,this.options)}catch(e){return false}}return p(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}t=s(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(p(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(p(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const s=r(785);const{safeRe:o,t:i}=r(9523);const p=r(5098);const n=r(106);const d=r(8088);const l=r(9828)},9828:(e,t,r)=>{class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof i){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((e=>this.parseRange(e))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&h)|(this.options.loose&&g);const r=t+":"+e;const a=s.get(r);if(a){return a}const o=this.options.loose;const n=o?d[l.HYPHENRANGELOOSE]:d[l.HYPHENRANGE];e=e.replace(n,hyphenReplace(this.options.includePrerelease));p("hyphen replace",e);e=e.replace(d[l.COMPARATORTRIM],c);p("comparator trim",e);e=e.replace(d[l.TILDETRIM],m);p("tilde trim",e);e=e.replace(d[l.CARETTRIM],u);p("caret trim",e);let v=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(o){v=v.filter((e=>{p("loose invalid filter",e,this.options);return!!e.match(d[l.COMPARATORLOOSE])}))}p("range list",v);const E=new Map;const w=v.map((e=>new i(e,this.options)));for(const e of w){if(isNullSet(e)){return[e]}E.set(e.value,e)}if(E.size>1&&E.has("")){E.delete("")}const T=[...E.values()];s.set(r,T);return T}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new n(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const a=e.slice();let s=a.pop();while(r&&a.length){r=a.every((e=>s.intersects(e,t)));s=a.pop()}return r};const parseComparator=(e,t)=>{p("comp",e,t);e=replaceCarets(e,t);p("caret",e);e=replaceTildes(e,t);p("tildes",e);e=replaceXRanges(e,t);p("xrange",e);e=replaceStars(e,t);p("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?d[l.TILDELOOSE]:d[l.TILDE];return e.replace(r,((t,r,a,s,o)=>{p("tilde",e,t,r,a,s,o);let i;if(isX(r)){i=""}else if(isX(a)){i=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){i=`>=${r}.${a}.0 <${r}.${+a+1}.0-0`}else if(o){p("replaceTilde pr",o);i=`>=${r}.${a}.${s}-${o} <${r}.${+a+1}.0-0`}else{i=`>=${r}.${a}.${s} <${r}.${+a+1}.0-0`}p("tilde return",i);return i}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{p("caret",e,t);const r=t.loose?d[l.CARETLOOSE]:d[l.CARET];const a=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,o,i)=>{p("caret",e,t,r,s,o,i);let n;if(isX(r)){n=""}else if(isX(s)){n=`>=${r}.0.0${a} <${+r+1}.0.0-0`}else if(isX(o)){if(r==="0"){n=`>=${r}.${s}.0${a} <${r}.${+s+1}.0-0`}else{n=`>=${r}.${s}.0${a} <${+r+1}.0.0-0`}}else if(i){p("replaceCaret pr",i);if(r==="0"){if(s==="0"){n=`>=${r}.${s}.${o}-${i} <${r}.${s}.${+o+1}-0`}else{n=`>=${r}.${s}.${o}-${i} <${r}.${+s+1}.0-0`}}else{n=`>=${r}.${s}.${o}-${i} <${+r+1}.0.0-0`}}else{p("no pr");if(r==="0"){if(s==="0"){n=`>=${r}.${s}.${o}${a} <${r}.${s}.${+o+1}-0`}else{n=`>=${r}.${s}.${o}${a} <${r}.${+s+1}.0-0`}}else{n=`>=${r}.${s}.${o} <${+r+1}.0.0-0`}}p("caret return",n);return n}))};const replaceXRanges=(e,t)=>{p("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?d[l.XRANGELOOSE]:d[l.XRANGE];return e.replace(r,((r,a,s,o,i,n)=>{p("xRange",e,r,a,s,o,i,n);const d=isX(s);const l=d||isX(o);const c=l||isX(i);const m=c;if(a==="="&&m){a=""}n=t.includePrerelease?"-0":"";if(d){if(a===">"||a==="<"){r="<0.0.0-0"}else{r="*"}}else if(a&&m){if(l){o=0}i=0;if(a===">"){a=">=";if(l){s=+s+1;o=0;i=0}else{o=+o+1;i=0}}else if(a==="<="){a="<";if(l){s=+s+1}else{o=+o+1}}if(a==="<"){n="-0"}r=`${a+s}.${o}.${i}${n}`}else if(l){r=`>=${s}.0.0${n} <${+s+1}.0.0-0`}else if(c){r=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`}p("xRange return",r);return r}))};const replaceStars=(e,t)=>{p("replaceStars",e,t);return e.trim().replace(d[l.STAR],"")};const replaceGTE0=(e,t)=>{p("replaceGTE0",e,t);return e.trim().replace(d[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};const hyphenReplace=e=>(t,r,a,s,o,i,p,n,d,l,c,m,u)=>{if(isX(a)){r=""}else if(isX(s)){r=`>=${a}.0.0${e?"-0":""}`}else if(isX(o)){r=`>=${a}.${s}.0${e?"-0":""}`}else if(i){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(d)){n=""}else if(isX(l)){n=`<${+d+1}.0.0-0`}else if(isX(c)){n=`<${d}.${+l+1}.0-0`}else if(m){n=`<=${d}.${l}.${c}-${m}`}else if(e){n=`<${d}.${l}.${+c+1}-0`}else{n=`<=${n}`}return`${r} ${n}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const a=e[r].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch){return true}}}return false}return true}},8088:(e,t,r)=>{const a=r(106);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=r(2293);const{safeRe:i,t:p}=r(9523);const n=r(785);const{compareIdentifiers:d}=r(2463);class SemVer{constructor(e,t){t=n(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}a("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[p.LOOSE]:i[p.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[a]==="number"){this.prerelease[a]++;a=-2}}if(a===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let a=[t,e];if(r===false){a=[t]}if(d(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=a}}else{this.prerelease=a}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},8848:(e,t,r)=>{const a=r(5925);const clean=(e,t)=>{const r=a(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},5098:(e,t,r)=>{const a=r(1898);const s=r(6017);const o=r(4123);const i=r(5522);const p=r(194);const n=r(7520);const cmp=(e,t,r,d)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return a(e,r,d);case"!=":return s(e,r,d);case">":return o(e,r,d);case">=":return i(e,r,d);case"<":return p(e,r,d);case"<=":return n(e,r,d);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},3466:(e,t,r)=>{const a=r(8088);const s=r(5925);const{safeRe:o,t:i}=r(9523);const coerce=(e,t)=>{if(e instanceof a){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(o[i.COERCE])}else{let t;while((t=o[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}o[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}o[i.COERCERTL].lastIndex=-1}if(r===null){return null}return s(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=coerce},2156:(e,t,r)=>{const a=r(8088);const compareBuild=(e,t,r)=>{const s=new a(e,r);const o=new a(t,r);return s.compare(o)||s.compareBuild(o)};e.exports=compareBuild},2804:(e,t,r)=>{const a=r(4309);const compareLoose=(e,t)=>a(e,t,true);e.exports=compareLoose},4309:(e,t,r)=>{const a=r(8088);const compare=(e,t,r)=>new a(e,r).compare(new a(t,r));e.exports=compare},4297:(e,t,r)=>{const a=r(5925);const diff=(e,t)=>{const r=a(e,null,true);const s=a(t,null,true);const o=r.compare(s);if(o===0){return null}const i=o>0;const p=i?r:s;const n=i?s:r;const d=!!p.prerelease.length;const l=!!n.prerelease.length;if(l&&!d){if(!n.patch&&!n.minor){return"major"}if(p.patch){return"patch"}if(p.minor){return"minor"}return"major"}const c=d?"pre":"";if(r.major!==s.major){return c+"major"}if(r.minor!==s.minor){return c+"minor"}if(r.patch!==s.patch){return c+"patch"}return"prerelease"};e.exports=diff},1898:(e,t,r)=>{const a=r(4309);const eq=(e,t,r)=>a(e,t,r)===0;e.exports=eq},4123:(e,t,r)=>{const a=r(4309);const gt=(e,t,r)=>a(e,t,r)>0;e.exports=gt},5522:(e,t,r)=>{const a=r(4309);const gte=(e,t,r)=>a(e,t,r)>=0;e.exports=gte},900:(e,t,r)=>{const a=r(8088);const inc=(e,t,r,s,o)=>{if(typeof r==="string"){o=s;s=r;r=undefined}try{return new a(e instanceof a?e.version:e,r).inc(t,s,o).version}catch(e){return null}};e.exports=inc},194:(e,t,r)=>{const a=r(4309);const lt=(e,t,r)=>a(e,t,r)<0;e.exports=lt},7520:(e,t,r)=>{const a=r(4309);const lte=(e,t,r)=>a(e,t,r)<=0;e.exports=lte},6688:(e,t,r)=>{const a=r(8088);const major=(e,t)=>new a(e,t).major;e.exports=major},8447:(e,t,r)=>{const a=r(8088);const minor=(e,t)=>new a(e,t).minor;e.exports=minor},6017:(e,t,r)=>{const a=r(4309);const neq=(e,t,r)=>a(e,t,r)!==0;e.exports=neq},5925:(e,t,r)=>{const a=r(8088);const parse=(e,t,r=false)=>{if(e instanceof a){return e}try{return new a(e,t)}catch(e){if(!r){return null}throw e}};e.exports=parse},2866:(e,t,r)=>{const a=r(8088);const patch=(e,t)=>new a(e,t).patch;e.exports=patch},4016:(e,t,r)=>{const a=r(5925);const prerelease=(e,t)=>{const r=a(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},6417:(e,t,r)=>{const a=r(4309);const rcompare=(e,t,r)=>a(t,e,r);e.exports=rcompare},8701:(e,t,r)=>{const a=r(2156);const rsort=(e,t)=>e.sort(((e,r)=>a(r,e,t)));e.exports=rsort},6055:(e,t,r)=>{const a=r(9828);const satisfies=(e,t,r)=>{try{t=new a(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},1426:(e,t,r)=>{const a=r(2156);const sort=(e,t)=>e.sort(((e,r)=>a(e,r,t)));e.exports=sort},9601:(e,t,r)=>{const a=r(5925);const valid=(e,t)=>{const r=a(e,t);return r?r.version:null};e.exports=valid},1383:(e,t,r)=>{const a=r(9523);const s=r(2293);const o=r(8088);const i=r(2463);const p=r(5925);const n=r(9601);const d=r(8848);const l=r(900);const c=r(4297);const m=r(6688);const u=r(8447);const h=r(2866);const g=r(4016);const v=r(4309);const E=r(6417);const w=r(2804);const T=r(2156);const _=r(1426);const b=r(8701);const y=r(4123);const S=r(194);const A=r(1898);const O=r(6017);const R=r(5522);const D=r(7520);const P=r(5098);const k=r(3466);const C=r(1532);const G=r(9828);const F=r(6055);const N=r(2706);const I=r(579);const x=r(832);const U=r(4179);const B=r(2098);const L=r(420);const j=r(9380);const V=r(8726);const $=r(7008);const M=r(5297);const q=r(7863);e.exports={parse:p,valid:n,clean:d,inc:l,diff:c,major:m,minor:u,patch:h,prerelease:g,compare:v,rcompare:E,compareLoose:w,compareBuild:T,sort:_,rsort:b,gt:y,lt:S,eq:A,neq:O,gte:R,lte:D,cmp:P,coerce:k,Comparator:C,Range:G,satisfies:F,toComparators:N,maxSatisfying:I,minSatisfying:x,minVersion:U,validRange:B,outside:L,gtr:j,ltr:V,intersects:$,simplifyRange:M,subset:q,SemVer:o,re:a.re,src:a.src,tokens:a.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},2293:e=>{const t="2.0.0";const r=256;const a=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;const o=r-6;const i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:a,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},106:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},2463:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const a=t.test(e);const s=t.test(r);if(a&&s){e=+e;r=+r}return e===r?0:a&&!s?-1:s&&!a?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const parseOptions=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},9523:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:s}=r(2293);const o=r(106);t=e.exports={};const i=t.re=[];const p=t.safeRe=[];const n=t.src=[];const d=t.t={};let l=0;const c="[a-zA-Z0-9-]";const m=[["\\s",1],["\\d",a],[c,s]];const makeSafeRegex=e=>{for(const[t,r]of m){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const createToken=(e,t,r)=>{const a=makeSafeRegex(t);const s=l++;o(e,s,t);d[e]=s;n[s]=t;i[s]=new RegExp(t,r?"g":undefined);p[s]=new RegExp(a,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`);createToken("MAINVERSION",`(${n[d.NUMERICIDENTIFIER]})\\.`+`(${n[d.NUMERICIDENTIFIER]})\\.`+`(${n[d.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${n[d.NUMERICIDENTIFIERLOOSE]})\\.`+`(${n[d.NUMERICIDENTIFIERLOOSE]})\\.`+`(${n[d.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${n[d.NUMERICIDENTIFIER]}|${n[d.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${n[d.NUMERICIDENTIFIERLOOSE]}|${n[d.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${n[d.PRERELEASEIDENTIFIER]}(?:\\.${n[d.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${n[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[d.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${c}+`);createToken("BUILD",`(?:\\+(${n[d.BUILDIDENTIFIER]}(?:\\.${n[d.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${n[d.MAINVERSION]}${n[d.PRERELEASE]}?${n[d.BUILD]}?`);createToken("FULL",`^${n[d.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${n[d.MAINVERSIONLOOSE]}${n[d.PRERELEASELOOSE]}?${n[d.BUILD]}?`);createToken("LOOSE",`^${n[d.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${n[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${n[d.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${n[d.XRANGEIDENTIFIER]})`+`(?:\\.(${n[d.XRANGEIDENTIFIER]})`+`(?:\\.(${n[d.XRANGEIDENTIFIER]})`+`(?:${n[d.PRERELEASE]})?${n[d.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${n[d.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${n[d.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${n[d.XRANGEIDENTIFIERLOOSE]})`+`(?:${n[d.PRERELEASELOOSE]})?${n[d.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${n[d.GTLT]}\\s*${n[d.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${n[d.GTLT]}\\s*${n[d.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${a}})`+`(?:\\.(\\d{1,${a}}))?`+`(?:\\.(\\d{1,${a}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",n[d.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${n[d.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${n[d.LONETILDE]}${n[d.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${n[d.LONETILDE]}${n[d.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${n[d.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${n[d.LONECARET]}${n[d.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${n[d.LONECARET]}${n[d.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${n[d.GTLT]}\\s*(${n[d.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${n[d.GTLT]}\\s*(${n[d.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${n[d.GTLT]}\\s*(${n[d.LOOSEPLAIN]}|${n[d.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${n[d.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${n[d.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${n[d.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${n[d.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9380:(e,t,r)=>{const a=r(420);const gtr=(e,t,r)=>a(e,t,">",r);e.exports=gtr},7008:(e,t,r)=>{const a=r(9828);const intersects=(e,t,r)=>{e=new a(e,r);t=new a(t,r);return e.intersects(t,r)};e.exports=intersects},8726:(e,t,r)=>{const a=r(420);const ltr=(e,t,r)=>a(e,t,"<",r);e.exports=ltr},579:(e,t,r)=>{const a=r(8088);const s=r(9828);const maxSatisfying=(e,t,r)=>{let o=null;let i=null;let p=null;try{p=new s(t,r)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!o||i.compare(e)===-1){o=e;i=new a(o,r)}}}));return o};e.exports=maxSatisfying},832:(e,t,r)=>{const a=r(8088);const s=r(9828);const minSatisfying=(e,t,r)=>{let o=null;let i=null;let p=null;try{p=new s(t,r)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!o||i.compare(e)===1){o=e;i=new a(o,r)}}}));return o};e.exports=minSatisfying},4179:(e,t,r)=>{const a=r(8088);const s=r(9828);const o=r(4123);const minVersion=(e,t)=>{e=new s(e,t);let r=new a("0.0.0");if(e.test(r)){return r}r=new a("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new a(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!i||o(t,i)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(i&&(!r||o(r,i))){r=i}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},420:(e,t,r)=>{const a=r(8088);const s=r(1532);const{ANY:o}=s;const i=r(9828);const p=r(6055);const n=r(4123);const d=r(194);const l=r(7520);const c=r(5522);const outside=(e,t,r,m)=>{e=new a(e,m);t=new i(t,m);let u,h,g,v,E;switch(r){case">":u=n;h=l;g=d;v=">";E=">=";break;case"<":u=d;h=c;g=n;v="<";E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(e,t,m)){return false}for(let r=0;r{if(e.semver===o){e=new s(">=0.0.0")}i=i||e;p=p||e;if(u(e.semver,i.semver,m)){i=e}else if(g(e.semver,p.semver,m)){p=e}}));if(i.operator===v||i.operator===E){return false}if((!p.operator||p.operator===v)&&h(e,p.semver)){return false}else if(p.operator===E&&g(e,p.semver)){return false}}return true};e.exports=outside},5297:(e,t,r)=>{const a=r(6055);const s=r(4309);e.exports=(e,t,r)=>{const o=[];let i=null;let p=null;const n=e.sort(((e,t)=>s(e,t,r)));for(const e of n){const s=a(e,t,r);if(s){p=e;if(!i){i=e}}else{if(p){o.push([i,p])}p=null;i=null}}if(i){o.push([i,null])}const d=[];for(const[e,t]of o){if(e===t){d.push(e)}else if(!t&&e===n[0]){d.push("*")}else if(!t){d.push(`>=${e}`)}else if(e===n[0]){d.push(`<=${t}`)}else{d.push(`${e} - ${t}`)}}const l=d.join(" || ");const c=typeof t.raw==="string"?t.raw:String(t);return l.length{const a=r(9828);const s=r(1532);const{ANY:o}=s;const i=r(6055);const p=r(4309);const subset=(e,t,r={})=>{if(e===t){return true}e=new a(e,r);t=new a(t,r);let s=false;e:for(const a of e.set){for(const e of t.set){const t=simpleSubset(a,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const n=[new s(">=0.0.0-0")];const d=[new s(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o){return true}else if(r.includePrerelease){e=n}else{e=d}}if(t.length===1&&t[0].semver===o){if(r.includePrerelease){return true}else{t=d}}const a=new Set;let s,l;for(const t of e){if(t.operator===">"||t.operator===">="){s=higherGT(s,t,r)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,r)}else{a.add(t.semver)}}if(a.size>1){return null}let c;if(s&&l){c=p(s.semver,l.semver,r);if(c>0){return null}else if(c===0&&(s.operator!==">="||l.operator!=="<=")){return null}}for(const e of a){if(s&&!i(e,String(s),r)){return null}if(l&&!i(e,String(l),r)){return null}for(const a of t){if(!i(e,String(a),r)){return false}}return true}let m,u;let h,g;let v=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let E=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:false;if(v&&v.prerelease.length===1&&l.operator==="<"&&v.prerelease[0]===0){v=false}for(const e of t){g=g||e.operator===">"||e.operator===">=";h=h||e.operator==="<"||e.operator==="<=";if(s){if(E){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch){E=false}}if(e.operator===">"||e.operator===">="){m=higherGT(s,e,r);if(m===e&&m!==s){return false}}else if(s.operator===">="&&!i(s.semver,String(e),r)){return false}}if(l){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator==="<"||e.operator==="<="){u=lowerLT(l,e,r);if(u===e&&u!==l){return false}}else if(l.operator==="<="&&!i(l.semver,String(e),r)){return false}}if(!e.operator&&(l||s)&&c!==0){return false}}if(s&&h&&!l&&c!==0){return false}if(l&&g&&!s&&c!==0){return false}if(E||v){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const a=p(e.semver,t.semver,r);return a>0?e:a<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const a=p(e.semver,t.semver,r);return a<0?e:a>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},2706:(e,t,r)=>{const a=r(9828);const toComparators=(e,t)=>new a(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},2098:(e,t,r)=>{const a=r(9828);const validRange=(e,t)=>{try{return new a(e,t).range||"*"}catch(e){return null}};e.exports=validRange},8065:(e,t,r)=>{"use strict";const{promisify:a}=r(3837);const s=r(8517);e.exports.fileSync=s.fileSync;const o=a(((e,t)=>s.file(e,((e,r,s,o)=>e?t(e):t(undefined,{path:r,fd:s,cleanup:a(o)})))));e.exports.file=async e=>o(e);e.exports.withFile=async function withFile(t,r){const{path:a,fd:s,cleanup:o}=await e.exports.file(r);try{return await t({path:a,fd:s})}finally{await o()}};e.exports.dirSync=s.dirSync;const i=a(((e,t)=>s.dir(e,((e,r,s)=>e?t(e):t(undefined,{path:r,cleanup:a(s)})))));e.exports.dir=async e=>i(e);e.exports.withDir=async function withDir(t,r){const{path:a,cleanup:s}=await e.exports.dir(r);try{return await t({path:a})}finally{await s()}};e.exports.tmpNameSync=s.tmpNameSync;e.exports.tmpName=a(s.tmpName);e.exports.tmpdir=s.tmpdir;e.exports.setGracefulCleanup=s.setGracefulCleanup},8517:(e,t,r)=>{ + */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},7129:(e,t,r)=>{"use strict";const a=r(665);const s=Symbol("max");const o=Symbol("length");const i=Symbol("lengthCalculator");const p=Symbol("allowStale");const n=Symbol("maxAge");const d=Symbol("dispose");const l=Symbol("noDisposeOnSet");const c=Symbol("lruList");const m=Symbol("cache");const u=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[s]=e.max||Infinity;const r=e.length||naiveLength;this[i]=typeof r!=="function"?naiveLength:r;this[p]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[n]=e.maxAge||0;this[d]=e.dispose;this[l]=e.noDisposeOnSet||false;this[u]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||Infinity;trim(this)}get max(){return this[s]}set allowStale(e){this[p]=!!e}get allowStale(){return this[p]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[n]=e;trim(this)}get maxAge(){return this[n]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[i]){this[i]=e;this[o]=0;this[c].forEach((e=>{e.length=this[i](e.value,e.key);this[o]+=e.length}))}trim(this)}get lengthCalculator(){return this[i]}get length(){return this[o]}get itemCount(){return this[c].length}rforEach(e,t){t=t||this;for(let r=this[c].tail;r!==null;){const a=r.prev;forEachStep(this,e,r,t);r=a}}forEach(e,t){t=t||this;for(let r=this[c].head;r!==null;){const a=r.next;forEachStep(this,e,r,t);r=a}}keys(){return this[c].toArray().map((e=>e.key))}values(){return this[c].toArray().map((e=>e.value))}reset(){if(this[d]&&this[c]&&this[c].length){this[c].forEach((e=>this[d](e.key,e.value)))}this[m]=new Map;this[c]=new a;this[o]=0}dump(){return this[c].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[c]}set(e,t,r){r=r||this[n];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const a=r?Date.now():0;const p=this[i](t,e);if(this[m].has(e)){if(p>this[s]){del(this,this[m].get(e));return false}const i=this[m].get(e);const n=i.value;if(this[d]){if(!this[l])this[d](e,n.value)}n.now=a;n.maxAge=r;n.value=t;this[o]+=p-n.length;n.length=p;this.get(e);trim(this);return true}const u=new Entry(e,t,p,a,r);if(u.length>this[s]){if(this[d])this[d](e,t);return false}this[o]+=u.length;this[c].unshift(u);this[m].set(e,this[c].head);trim(this);return true}has(e){if(!this[m].has(e))return false;const t=this[m].get(e).value;return!isStale(this,t)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[c].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[m].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const a=e[r];const s=a.e||0;if(s===0)this.set(a.k,a.v);else{const e=s-t;if(e>0){this.set(a.k,a.v,e)}}}}prune(){this[m].forEach(((e,t)=>get(this,t,false)))}}const get=(e,t,r)=>{const a=e[m].get(t);if(a){const t=a.value;if(isStale(e,t)){del(e,a);if(!e[p])return undefined}else{if(r){if(e[u])a.value.now=Date.now();e[c].unshiftNode(a)}}return t.value}};const isStale=(e,t)=>{if(!t||!t.maxAge&&!e[n])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[n]&&r>e[n]};const trim=e=>{if(e[o]>e[s]){for(let t=e[c].tail;e[o]>e[s]&&t!==null;){const r=t.prev;del(e,t);t=r}}};const del=(e,t)=>{if(t){const r=t.value;if(e[d])e[d](r.key,r.value);e[o]-=r.length;e[m].delete(r.key);e[c].removeNode(t)}};class Entry{constructor(e,t,r,a,s){this.key=e;this.value=t;this.length=r;this.now=a;this.maxAge=s||0}}const forEachStep=(e,t,r,a)=>{let s=r.value;if(isStale(e,s)){del(e,r);if(!e[p])s=undefined}if(s)t.call(a,s.value,s.key,e)};e.exports=LRUCache},3973:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var a=function(){try{return r(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=a.sep;var s=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var o=r(3717);var i={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var p="[^/]";var n=p+"*?";var d="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var c=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var m=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,a,s){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,a,s){return t(r,a,ext(e,s))};r.Minimatch=function Minimatch(r,a){return new t.Minimatch(r,ext(e,a))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,a){return t.filter(r,ext(e,a))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,a){return t.makeRe(r,ext(e,a))};r.braceExpand=function braceExpand(r,a){return t.braceExpand(r,ext(e,a))};r.match=function(r,a,s){return t.match(r,a,ext(e,s))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&a.sep!=="/"){e=e.split(a.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(m)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var a=0;if(r.nonegate)return;for(var s=0,o=e.length;su){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var h={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";var a="";var o=!!r.nocase;var d=false;var l=[];var m=[];var u;var g=false;var v=-1;var E=-1;var w=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var T=this;function clearStateChar(){if(u){switch(u){case"*":a+=n;o=true;break;case"?":a+=p;o=true;break;default:a+="\\"+u;break}T.debug("clearStateChar %j %j",u,a);u=false}}for(var _=0,b=e.length,y;_-1;k--){var C=m[k];var G=a.slice(0,C.reStart);var F=a.slice(C.reStart,C.reEnd-8);var N=a.slice(C.reEnd-8,C.reEnd);var I=a.slice(C.reEnd);N+=I;var x=G.split("(").length-1;var U=I;for(_=0;_=0;i--){o=e[i];if(o)break}for(i=0;i>> no match, partial?",e,c,t,m);if(c===p)return true}return false}var h;if(typeof d==="string"){h=l===d;this.debug("string match",d,l,h)}else{h=l.match(d);this.debug("pattern match",d,l,h)}if(!h)return false}if(o===p&&i===n){return true}else if(o===p){return r}else if(i===n){return o===p-1&&e[o]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var a=_interopDefault(r(2781));var s=_interopDefault(r(3685));var o=_interopDefault(r(7310));var i=_interopDefault(r(3323));var p=_interopDefault(r(5687));var n=_interopDefault(r(9796));const d=a.Readable;const l=Symbol("buffer");const c=Symbol("type");class Blob{constructor(){this[c]="";const e=arguments[0];const t=arguments[1];const r=[];let a=0;if(e){const t=e;const s=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},s=r.size;let o=s===undefined?0:s;var i=r.timeout;let p=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof a);else{e=Buffer.from(String(e))}this[u]={body:e,disturbed:false,error:null};this.size=o;this.timeout=p;if(e instanceof a){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[u].error=r}))}}Body.prototype={get body(){return this[u].body},get bodyUsed(){return this[u].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[l]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[u].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[u].disturbed=true;if(this[u].error){return Body.Promise.reject(this[u].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof a)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let s=0;let o=false;return new Body.Promise((function(a,i){let p;if(e.timeout){p=setTimeout((function(){o=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){o=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(o||t===null){return}if(e.size&&s+t.length>e.size){o=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=t.length;r.push(t)}));t.on("end",(function(){if(o){return}clearTimeout(p);try{a(Buffer.concat(r,s))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof m!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let a="utf-8";let s,o;if(r){s=/charset=([^;]*)/i.exec(r)}o=e.slice(0,1024).toString();if(!s&&o){s=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[E]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[E],e);if(t===undefined){return null}return this[E][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let a=0;while(a1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[E]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[E][t].join(", ")}:function(t){return[t.toLowerCase(),e[E][t].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(T);r[w]={target:e,kind:t,index:0};return r}const T=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==T){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[w];const t=e.target,r=e.kind,a=e.index;const s=getHeaders(t,r);const o=s.length;if(a>=o){return{value:undefined,done:true}}this[w].index=a+1;return{value:s[a],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(T,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[E]);const r=find(e[E],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(g.test(r)){continue}if(Array.isArray(e[r])){for(const a of e[r]){if(v.test(a)){continue}if(t[E][r]===undefined){t[E][r]=[a]}else{t[E][r].push(a)}}}else if(!v.test(e[r])){t[E][r]=[e[r]]}}return t}const _=Symbol("Response internals");const b=s.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const a=new Headers(t.headers);if(e!=null&&!a.has("Content-Type")){const t=extractContentType(e);if(t){a.append("Content-Type",t)}}this[_]={url:t.url,status:r,statusText:t.statusText||b[r],headers:a,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const y=Symbol("Request internals");const S=o.URL||i.URL;const A=o.parse;const O=o.format;function parseURL(e){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)){e=new S(e).toString()}return A(e)}const R="destroy"in a.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[y]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=parseURL(e.href)}else{r=parseURL(`${e}`)}e={}}else{r=parseURL(e.url)}let a=t.method||e.method||"GET";a=a.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(a==="GET"||a==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let s=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,s,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(s!=null&&!o.has("Content-Type")){const e=extractContentType(s);if(e){o.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[y]={method:a,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[y].method}get url(){return O(this[y].parsedURL)}get headers(){return this[y].headers}get redirect(){return this[y].redirect}get signal(){return this[y].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[y].parsedURL;const r=new Headers(e[y].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof a.Readable&&!R){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let s=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){s="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){s=String(t)}}if(s){r.set("Content-Length",s)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!r.has("Connection")&&!o){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const D=o.URL||i.URL;const P=a.PassThrough;const k=function isDomainOrSubdomain(e,t){const r=new D(t).hostname;const a=new D(e).hostname;return r===a||r[r.length-a.length-1]==="."&&r.endsWith(a)};function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,o){const i=new Request(e,t);const d=getNodeRequestOptions(i);const l=(d.protocol==="https:"?p:s).request;const c=i.signal;let m=null;const u=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(i.body&&i.body instanceof a.Readable){i.body.destroy(e)}if(!m||!m.body)return;m.body.emit("error",e)};if(c&&c.aborted){u();return}const h=function abortAndFinalize(){u();finalize()};const g=l(d);let v;if(c){c.addEventListener("abort",h)}function finalize(){g.abort();if(c)c.removeEventListener("abort",h);clearTimeout(v)}if(i.timeout){g.once("socket",(function(e){v=setTimeout((function(){o(new FetchError(`network timeout at: ${i.url}`,"request-timeout"));finalize()}),i.timeout)}))}g.on("error",(function(e){o(new FetchError(`request to ${i.url} failed, reason: ${e.message}`,"system",e));finalize()}));g.on("response",(function(e){clearTimeout(v);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const a=t.get("Location");let s=null;try{s=a===null?null:new D(a,i.url).toString()}catch(e){if(i.redirect!=="manual"){o(new FetchError(`uri requested responds with an invalid redirect URL: ${a}`,"invalid-redirect"));finalize();return}}switch(i.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{t.set("Location",s)}catch(e){o(e)}}break;case"follow":if(s===null){break}if(i.counter>=i.follow){o(new FetchError(`maximum redirect reached at: ${i.url}`,"max-redirect"));finalize();return}const a={headers:new Headers(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};if(!k(i.url,s)){for(const e of["authorization","www-authenticate","cookie","cookie2"]){a.headers.delete(e)}}if(e.statusCode!==303&&i.body&&getTotalBytes(i)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&i.method==="POST"){a.method="GET";a.body=undefined;a.headers.delete("content-length")}r(fetch(new Request(s,a)));finalize();return}}e.once("end",(function(){if(c)c.removeEventListener("abort",h)}));let a=e.pipe(new P);const s={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:i.size,timeout:i.timeout,counter:i.counter};const p=t.get("Content-Encoding");if(!i.compress||i.method==="HEAD"||p===null||e.statusCode===204||e.statusCode===304){m=new Response(a,s);r(m);return}const d={flush:n.Z_SYNC_FLUSH,finishFlush:n.Z_SYNC_FLUSH};if(p=="gzip"||p=="x-gzip"){a=a.pipe(n.createGunzip(d));m=new Response(a,s);r(m);return}if(p=="deflate"||p=="x-deflate"){const t=e.pipe(new P);t.once("data",(function(e){if((e[0]&15)===8){a=a.pipe(n.createInflate())}else{a=a.pipe(n.createInflateRaw())}m=new Response(a,s);r(m)}));return}if(p=="br"&&typeof n.createBrotliDecompress==="function"){a=a.pipe(n.createBrotliDecompress());m=new Response(a,s);r(m);return}m=new Response(a,s);r(m)}));writeToStream(g,i)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t["default"]=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},2299:(e,t,r)=>{"use strict";var a=r(5477);var s=r(1907);var o={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function findStatus(e){var t=0;var r=s.length-1;while(t<=r){var a=Math.floor((t+r)/2);var o=s[a];if(o[0][0]<=e&&o[0][1]>=e){return o}else if(o[0][0]>e){r=a-1}else{t=a+1}}return null}var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(e){return e.replace(i,"_").length}function mapChars(e,t,r){var a=false;var s="";var i=countSymbols(e);for(var p=0;p253||p.length===0){o.error=true}for(var n=0;n63||i.length===0){o.error=true;break}}}if(o.error)return null;return i.join(".")};e.exports.toUnicode=function(e,t){var r=processing(e,t,o.NONTRANSITIONAL);return{domain:r.string,error:r.error}};e.exports.PROCESSING_OPTIONS=o},5871:e=>{"use strict";var t={};e.exports=t;function sign(e){return e<0?-1:1}function evenRound(e){if(e%1===.5&&(e&1)===0){return Math.floor(e)}else{return Math.round(e)}}function createNumberConversion(e,t){if(!t.unsigned){--e}const r=t.unsigned?0:-Math.pow(2,e);const a=Math.pow(2,e)-1;const s=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e);const o=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,i){if(!i)i={};let p=+e;if(i.enforceRange){if(!Number.isFinite(p)){throw new TypeError("Argument is not a finite number")}p=sign(p)*Math.floor(Math.abs(p));if(pa){throw new TypeError("Argument is not in byte range")}return p}if(!isNaN(p)&&i.clamp){p=evenRound(p);if(pa)p=a;return p}if(!Number.isFinite(p)||p===0){return 0}p=sign(p)*Math.floor(Math.abs(p));p=p%s;if(!t.unsigned&&p>=o){return p-s}else if(t.unsigned){if(p<0){p+=s}else if(p===-0){return 0}}return p}}t["void"]=function(){return undefined};t["boolean"]=function(e){return!!e};t["byte"]=createNumberConversion(8,{unsigned:false});t["octet"]=createNumberConversion(8,{unsigned:true});t["short"]=createNumberConversion(16,{unsigned:false});t["unsigned short"]=createNumberConversion(16,{unsigned:true});t["long"]=createNumberConversion(32,{unsigned:false});t["unsigned long"]=createNumberConversion(32,{unsigned:true});t["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});t["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});t["double"]=function(e){const t=+e;if(!Number.isFinite(t)){throw new TypeError("Argument is not a finite floating-point value")}return t};t["unrestricted double"]=function(e){const t=+e;if(isNaN(t)){throw new TypeError("Argument is NaN")}return t};t["float"]=t["double"];t["unrestricted float"]=t["unrestricted double"];t["DOMString"]=function(e,t){if(!t)t={};if(t.treatNullAsEmptyString&&e===null){return""}return String(e)};t["ByteString"]=function(e,t){const r=String(e);let a=undefined;for(let e=0;(a=r.codePointAt(e))!==undefined;++e){if(a>255){throw new TypeError("Argument is not a valid bytestring")}}return r};t["USVString"]=function(e){const t=String(e);const r=t.length;const a=[];for(let e=0;e57343){a.push(String.fromCodePoint(s))}else if(56320<=s&&s<=57343){a.push(String.fromCodePoint(65533))}else{if(e===r-1){a.push(String.fromCodePoint(65533))}else{const r=t.charCodeAt(e+1);if(56320<=r&&r<=57343){const t=s&1023;const o=r&1023;a.push(String.fromCodePoint((2<<15)+(2<<9)*t+o));++e}else{a.push(String.fromCodePoint(65533))}}}}return a.join("")};t["Date"]=function(e,t){if(!(e instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(e)){return undefined}return e};t["RegExp"]=function(e,t){if(!(e instanceof RegExp)){e=new RegExp(e)}return e}},8262:(e,t,r)=>{"use strict";const a=r(33);t.implementation=class URLImpl{constructor(e){const t=e[0];const r=e[1];let s=null;if(r!==undefined){s=a.basicURLParse(r);if(s==="failure"){throw new TypeError("Invalid base URL")}}const o=a.basicURLParse(t,{baseURL:s});if(o==="failure"){throw new TypeError("Invalid URL")}this._url=o}get href(){return a.serializeURL(this._url)}set href(e){const t=a.basicURLParse(e);if(t==="failure"){throw new TypeError("Invalid URL")}this._url=t}get origin(){return a.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){a.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setThePassword(this._url,e)}get host(){const e=this._url;if(e.host===null){return""}if(e.port===null){return a.serializeHost(e.host)}return a.serializeHost(e.host)+":"+a.serializeInteger(e.port)}set host(e){if(this._url.cannotBeABaseURL){return}a.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return a.serializeHost(this._url.host)}set hostname(e){if(this._url.cannotBeABaseURL){return}a.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return a.serializeInteger(this._url.port)}set port(e){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}if(e===""){this._url.port=null}else{a.basicURLParse(e,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(e){if(this._url.cannotBeABaseURL){return}this._url.path=[];a.basicURLParse(e,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(e){const t=this._url;if(e===""){t.query=null;return}const r=e[0]==="?"?e.substring(1):e;t.query="";a.basicURLParse(r,{url:t,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(e){if(e===""){this._url.fragment=null;return}const t=e[0]==="#"?e.substring(1):e;this._url.fragment="";a.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},653:(e,t,r)=>{"use strict";const a=r(5871);const s=r(276);const o=r(8262);const i=s.implSymbol;function URL(t){if(!this||this[i]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const r=[];for(let e=0;e{"use strict";t.URL=r(653)["interface"];t.serializeURL=r(33).serializeURL;t.serializeURLOrigin=r(33).serializeURLOrigin;t.basicURLParse=r(33).basicURLParse;t.setTheUsername=r(33).setTheUsername;t.setThePassword=r(33).setThePassword;t.serializeHost=r(33).serializeHost;t.serializeInteger=r(33).serializeInteger;t.parseURL=r(33).parseURL},33:(e,t,r)=>{"use strict";const a=r(5477);const s=r(2299);const o={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const i=Symbol("failure");function countSymbols(e){return a.ucs2.decode(e).length}function at(e,t){const r=e[t];return isNaN(r)?undefined:String.fromCodePoint(r)}function isASCIIDigit(e){return e>=48&&e<=57}function isASCIIAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}function isASCIIAlphanumeric(e){return isASCIIAlpha(e)||isASCIIDigit(e)}function isASCIIHex(e){return isASCIIDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isSingleDot(e){return e==="."||e.toLowerCase()==="%2e"}function isDoubleDot(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"}function isWindowsDriveLetterCodePoints(e,t){return isASCIIAlpha(e)&&(t===58||t===124)}function isWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&(e[1]===":"||e[1]==="|")}function isNormalizedWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&e[1]===":"}function containsForbiddenHostCodePoint(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(e){return o[e]!==undefined}function isSpecial(e){return isSpecialScheme(e.scheme)}function defaultPort(e){return o[e]}function percentEncode(e){let t=e.toString(16).toUpperCase();if(t.length===1){t="0"+t}return"%"+t}function utf8PercentEncode(e){const t=new Buffer(e);let r="";for(let e=0;e126}const p=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(e){return isC0ControlPercentEncode(e)||p.has(e)}const n=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(e){return isPathPercentEncode(e)||n.has(e)}function percentEncodeChar(e,t){const r=String.fromCodePoint(e);if(t(e)){return utf8PercentEncode(r)}return r}function parseIPv4Number(e){let t=10;if(e.length>=2&&e.charAt(0)==="0"&&e.charAt(1).toLowerCase()==="x"){e=e.substring(2);t=16}else if(e.length>=2&&e.charAt(0)==="0"){e=e.substring(1);t=8}if(e===""){return 0}const r=t===10?/[^0-9]/:t===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(r.test(e)){return i}return parseInt(e,t)}function parseIPv4(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length>1){t.pop()}}if(t.length>4){return e}const r=[];for(const a of t){if(a===""){return e}const t=parseIPv4Number(a);if(t===i){return e}r.push(t)}for(let e=0;e255){return i}}if(r[r.length-1]>=Math.pow(256,5-r.length)){return i}let a=r.pop();let s=0;for(const e of r){a+=e*Math.pow(256,3-s);++s}return a}function serializeIPv4(e){let t="";let r=e;for(let e=1;e<=4;++e){t=String(r%256)+t;if(e!==4){t="."+t}r=Math.floor(r/256)}return t}function parseIPv6(e){const t=[0,0,0,0,0,0,0,0];let r=0;let s=null;let o=0;e=a.ucs2.decode(e);if(e[o]===58){if(e[o+1]!==58){return i}o+=2;++r;s=r}while(o6){return i}let a=0;while(e[o]!==undefined){let s=null;if(a>0){if(e[o]===46&&a<4){++o}else{return i}}if(!isASCIIDigit(e[o])){return i}while(isASCIIDigit(e[o])){const t=parseInt(at(e,o));if(s===null){s=t}else if(s===0){return i}else{s=s*10+t}if(s>255){return i}++o}t[r]=t[r]*256+s;++a;if(a===2||a===4){++r}}if(a!==4){return i}break}else if(e[o]===58){++o;if(e[o]===undefined){return i}}else if(e[o]!==undefined){return i}t[r]=a;++r}if(s!==null){let e=r-s;r=7;while(r!==0&&e>0){const a=t[s+e-1];t[s+e-1]=t[r];t[r]=a;--r;--e}}else if(s===null&&r!==8){return i}return t}function serializeIPv6(e){let t="";const r=findLongestZeroSequence(e);const a=r.idx;let s=false;for(let r=0;r<=7;++r){if(s&&e[r]===0){continue}else if(s){s=false}if(a===r){const e=r===0?"::":":";t+=e;s=true;continue}t+=e[r].toString(16);if(r!==7){t+=":"}}return t}function parseHost(e,t){if(e[0]==="["){if(e[e.length-1]!=="]"){return i}return parseIPv6(e.substring(1,e.length-1))}if(!t){return parseOpaqueHost(e)}const r=utf8PercentDecode(e);const a=s.toASCII(r,false,s.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(a===null){return i}if(containsForbiddenHostCodePoint(a)){return i}const o=parseIPv4(a);if(typeof o==="number"||o===i){return o}return a}function parseOpaqueHost(e){if(containsForbiddenHostCodePointExcludingPercent(e)){return i}let t="";const r=a.ucs2.decode(e);for(let e=0;er){t=a;r=s}a=null;s=0}else{if(a===null){a=o}++s}}if(s>r){t=a;r=s}return{idx:t,len:r}}function serializeHost(e){if(typeof e==="number"){return serializeIPv4(e)}if(e instanceof Array){return"["+serializeIPv6(e)+"]"}return e}function trimControlChars(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(e){const t=e.path;if(t.length===0){return}if(e.scheme==="file"&&t.length===1&&isNormalizedWindowsDriveLetter(t[0])){return}t.pop()}function includesCredentials(e){return e.username!==""||e.password!==""}function cannotHaveAUsernamePasswordPort(e){return e.host===null||e.host===""||e.cannotBeABaseURL||e.scheme==="file"}function isNormalizedWindowsDriveLetter(e){return/^[A-Za-z]:$/.test(e)}function URLStateMachine(e,t,r,s,o){this.pointer=0;this.input=e;this.base=t||null;this.encodingOverride=r||"utf-8";this.stateOverride=o;this.url=s;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const e=trimControlChars(this.input);if(e!==this.input){this.parseError=true}this.input=e}const p=trimTabAndNewline(this.input);if(p!==this.input){this.parseError=true}this.input=p;this.state=o||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=a.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer];const t=isNaN(e)?undefined:String.fromCodePoint(e);const r=this["parse "+this.state](e,t);if(!r){break}else if(r===i){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(e,t){if(isASCIIAlpha(e)){this.buffer+=t.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return i}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(e,t){if(isASCIIAlphanumeric(e)||e===43||e===45||e===46){this.buffer+=t.toLowerCase()}else if(e===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return i}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(e){if(this.base===null||this.base.cannotBeABaseURL&&e!==35){return i}else if(this.base.cannotBeABaseURL&&e===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(e){if(e===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(e){this.url.scheme=this.base.scheme;if(isNaN(e)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===47){this.state="relative slash"}else if(e===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&e===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(e){if(isSpecial(this.url)&&(e===47||e===92)){if(e===92){this.parseError=true}this.state="special authority ignore slashes"}else if(e===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(e){if(e!==47&&e!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(e,t){if(e===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const e=countSymbols(this.buffer);for(let t=0;tMath.pow(2,16)-1){this.parseError=true;return i}this.url.port=e===defaultPort(this.url.scheme)?null:e;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return i}return true};const d=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(e){this.url.scheme="file";if(e===47||e===92){if(e===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(e)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(e,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!d.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(e){if(e===47||e===92){if(e===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(e,t){if(isNaN(e)||e===47||e===92||e===63||e===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let e=parseHost(this.buffer,isSpecial(this.url));if(e===i){return i}if(e==="localhost"){e=""}this.url.host=e;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=t}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(e){if(isSpecial(this.url)){if(e===92){this.parseError=true}this.state="path";if(e!==47&&e!==92){--this.pointer}}else if(!this.stateOverride&&e===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&e===35){this.url.fragment="";this.state="fragment"}else if(e!==undefined){this.state="path";if(e!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(e){if(isNaN(e)||e===47||isSpecial(this.url)&&e===92||!this.stateOverride&&(e===63||e===35)){if(isSpecial(this.url)&&e===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(e===undefined||e===63||e===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(e===63){this.url.query="";this.state="query"}if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(e,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(e){if(e===63){this.url.query="";this.state="query"}else if(e===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(e)&&e!==37){this.parseError=true}if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(e)){this.url.path[0]=this.url.path[0]+percentEncodeChar(e,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(e,t){if(isNaN(e)||!this.stateOverride&&e===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const t=new Buffer(this.buffer);for(let e=0;e126||t[e]===34||t[e]===35||t[e]===60||t[e]===62){this.url.query+=percentEncode(t[e])}else{this.url.query+=String.fromCodePoint(t[e])}}this.buffer="";if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=t}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(e){if(isNaN(e)){}else if(e===0){this.parseError=true}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(e,isC0ControlPercentEncode)}return true};function serializeURL(e,t){let r=e.scheme+":";if(e.host!==null){r+="//";if(e.username!==""||e.password!==""){r+=e.username;if(e.password!==""){r+=":"+e.password}r+="@"}r+=serializeHost(e.host);if(e.port!==null){r+=":"+e.port}}else if(e.host===null&&e.scheme==="file"){r+="//"}if(e.cannotBeABaseURL){r+=e.path[0]}else{for(const t of e.path){r+="/"+t}}if(e.query!==null){r+="?"+e.query}if(!t&&e.fragment!==null){r+="#"+e.fragment}return r}function serializeOrigin(e){let t=e.scheme+"://";t+=serializeHost(e.host);if(e.port!==null){t+=":"+e.port}return t}e.exports.serializeURL=serializeURL;e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}};e.exports.basicURLParse=function(e,t){if(t===undefined){t={}}const r=new URLStateMachine(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);if(r.failure){return"failure"}return r.url};e.exports.setTheUsername=function(e,t){e.username="";const r=a.ucs2.decode(t);for(let t=0;t{"use strict";e.exports.mixin=function mixin(e,t){const r=Object.getOwnPropertyNames(t);for(let a=0;a{var a=r(2940);e.exports=a(once);e.exports.strict=a(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},8714:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var a=r[1]||"";var s=Boolean(a&&a.charAt(1)!==":");return Boolean(r[2]||s)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},4959:(e,t,r)=>{const a=r(9491);const s=r(1017);const o=r(7147);let i=undefined;try{i=r(1957)}catch(e){}const p={nosort:true,silent:true};let n=0;const d=process.platform==="win32";const defaults=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||o[t];t=t+"Sync";e[t]=e[t]||o[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&i===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||p};const rimraf=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}a(e,"rimraf: missing path");a.equal(typeof e,"string","rimraf: path should be a string");a.equal(typeof r,"function","rimraf: callback function required");a(t,"rimraf: invalid options argument provided");a.equal(typeof t,"object","rimraf: options should be object");defaults(t);let s=0;let o=null;let p=0;const next=e=>{o=o||e;if(--p===0)r(o)};const afterGlob=(e,a)=>{if(e)return r(e);p=a.length;if(p===0)return r();a.forEach((e=>{const CB=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&srimraf_(e,t,CB)),s*100)}if(r.code==="EMFILE"&&nrimraf_(e,t,CB)),n++)}if(r.code==="ENOENT")r=null}n=0;next(r)};rimraf_(e,t,CB)}))};if(t.disableGlob||!i.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,((r,a)=>{if(!r)return afterGlob(null,[e]);i(e,t.glob,afterGlob)}))};const rimraf_=(e,t,r)=>{a(e);a(t);a(typeof r==="function");t.lstat(e,((a,s)=>{if(a&&a.code==="ENOENT")return r(null);if(a&&a.code==="EPERM"&&d)fixWinEPERM(e,t,a,r);if(s&&s.isDirectory())return rmdir(e,t,a,r);t.unlink(e,(a=>{if(a){if(a.code==="ENOENT")return r(null);if(a.code==="EPERM")return d?fixWinEPERM(e,t,a,r):rmdir(e,t,a,r);if(a.code==="EISDIR")return rmdir(e,t,a,r)}return r(a)}))}))};const fixWinEPERM=(e,t,r,s)=>{a(e);a(t);a(typeof s==="function");t.chmod(e,438,(a=>{if(a)s(a.code==="ENOENT"?null:r);else t.stat(e,((a,o)=>{if(a)s(a.code==="ENOENT"?null:r);else if(o.isDirectory())rmdir(e,t,r,s);else t.unlink(e,s)}))}))};const fixWinEPERMSync=(e,t,r)=>{a(e);a(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let s;try{s=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(s.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)};const rmdir=(e,t,r,s)=>{a(e);a(t);a(typeof s==="function");t.rmdir(e,(a=>{if(a&&(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM"))rmkids(e,t,s);else if(a&&a.code==="ENOTDIR")s(r);else s(a)}))};const rmkids=(e,t,r)=>{a(e);a(t);a(typeof r==="function");t.readdir(e,((a,o)=>{if(a)return r(a);let i=o.length;if(i===0)return t.rmdir(e,r);let p;o.forEach((a=>{rimraf(s.join(e,a),t,(a=>{if(p)return;if(a)return r(p=a);if(--i===0)t.rmdir(e,r)}))}))}))};const rimrafSync=(e,t)=>{t=t||{};defaults(t);a(e,"rimraf: missing path");a.equal(typeof e,"string","rimraf: path should be a string");a(t,"rimraf: missing options");a.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!i.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(a){r=i.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e{a(e);a(t);try{t.rmdirSync(e)}catch(a){if(a.code==="ENOENT")return;if(a.code==="ENOTDIR")throw r;if(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM")rmkidsSync(e,t)}};const rmkidsSync=(e,t)=>{a(e);a(t);t.readdirSync(e).forEach((r=>rimrafSync(s.join(e,r),t)));const r=d?100:1;let o=0;do{let a=true;try{const s=t.rmdirSync(e,t);a=false;return s}finally{if(++o{const a=Symbol("SemVer ANY");class Comparator{static get ANY(){return a}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===a){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}parse(e){const t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=a}else{this.semver=new d(r[2],this.options.loose)}}toString(){return this.value}test(e){n("Comparator.test",e,this.options.loose);if(this.semver===a||e===a){return true}if(typeof e==="string"){try{e=new d(e,this.options)}catch(e){return false}}return p(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}t=s(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(p(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(p(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const s=r(785);const{safeRe:o,t:i}=r(9523);const p=r(5098);const n=r(106);const d=r(8088);const l=r(9828)},9828:(e,t,r)=>{class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof i){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&h)|(this.options.loose&&g);const r=t+":"+e;const a=s.get(r);if(a){return a}const o=this.options.loose;const n=o?d[l.HYPHENRANGELOOSE]:d[l.HYPHENRANGE];e=e.replace(n,hyphenReplace(this.options.includePrerelease));p("hyphen replace",e);e=e.replace(d[l.COMPARATORTRIM],c);p("comparator trim",e);e=e.replace(d[l.TILDETRIM],m);p("tilde trim",e);e=e.replace(d[l.CARETTRIM],u);p("caret trim",e);let v=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(o){v=v.filter((e=>{p("loose invalid filter",e,this.options);return!!e.match(d[l.COMPARATORLOOSE])}))}p("range list",v);const E=new Map;const w=v.map((e=>new i(e,this.options)));for(const e of w){if(isNullSet(e)){return[e]}E.set(e.value,e)}if(E.size>1&&E.has("")){E.delete("")}const T=[...E.values()];s.set(r,T);return T}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new n(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const a=e.slice();let s=a.pop();while(r&&a.length){r=a.every((e=>s.intersects(e,t)));s=a.pop()}return r};const parseComparator=(e,t)=>{p("comp",e,t);e=replaceCarets(e,t);p("caret",e);e=replaceTildes(e,t);p("tildes",e);e=replaceXRanges(e,t);p("xrange",e);e=replaceStars(e,t);p("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?d[l.TILDELOOSE]:d[l.TILDE];return e.replace(r,((t,r,a,s,o)=>{p("tilde",e,t,r,a,s,o);let i;if(isX(r)){i=""}else if(isX(a)){i=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){i=`>=${r}.${a}.0 <${r}.${+a+1}.0-0`}else if(o){p("replaceTilde pr",o);i=`>=${r}.${a}.${s}-${o} <${r}.${+a+1}.0-0`}else{i=`>=${r}.${a}.${s} <${r}.${+a+1}.0-0`}p("tilde return",i);return i}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{p("caret",e,t);const r=t.loose?d[l.CARETLOOSE]:d[l.CARET];const a=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,o,i)=>{p("caret",e,t,r,s,o,i);let n;if(isX(r)){n=""}else if(isX(s)){n=`>=${r}.0.0${a} <${+r+1}.0.0-0`}else if(isX(o)){if(r==="0"){n=`>=${r}.${s}.0${a} <${r}.${+s+1}.0-0`}else{n=`>=${r}.${s}.0${a} <${+r+1}.0.0-0`}}else if(i){p("replaceCaret pr",i);if(r==="0"){if(s==="0"){n=`>=${r}.${s}.${o}-${i} <${r}.${s}.${+o+1}-0`}else{n=`>=${r}.${s}.${o}-${i} <${r}.${+s+1}.0-0`}}else{n=`>=${r}.${s}.${o}-${i} <${+r+1}.0.0-0`}}else{p("no pr");if(r==="0"){if(s==="0"){n=`>=${r}.${s}.${o}${a} <${r}.${s}.${+o+1}-0`}else{n=`>=${r}.${s}.${o}${a} <${r}.${+s+1}.0-0`}}else{n=`>=${r}.${s}.${o} <${+r+1}.0.0-0`}}p("caret return",n);return n}))};const replaceXRanges=(e,t)=>{p("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?d[l.XRANGELOOSE]:d[l.XRANGE];return e.replace(r,((r,a,s,o,i,n)=>{p("xRange",e,r,a,s,o,i,n);const d=isX(s);const l=d||isX(o);const c=l||isX(i);const m=c;if(a==="="&&m){a=""}n=t.includePrerelease?"-0":"";if(d){if(a===">"||a==="<"){r="<0.0.0-0"}else{r="*"}}else if(a&&m){if(l){o=0}i=0;if(a===">"){a=">=";if(l){s=+s+1;o=0;i=0}else{o=+o+1;i=0}}else if(a==="<="){a="<";if(l){s=+s+1}else{o=+o+1}}if(a==="<"){n="-0"}r=`${a+s}.${o}.${i}${n}`}else if(l){r=`>=${s}.0.0${n} <${+s+1}.0.0-0`}else if(c){r=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`}p("xRange return",r);return r}))};const replaceStars=(e,t)=>{p("replaceStars",e,t);return e.trim().replace(d[l.STAR],"")};const replaceGTE0=(e,t)=>{p("replaceGTE0",e,t);return e.trim().replace(d[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};const hyphenReplace=e=>(t,r,a,s,o,i,p,n,d,l,c,m,u)=>{if(isX(a)){r=""}else if(isX(s)){r=`>=${a}.0.0${e?"-0":""}`}else if(isX(o)){r=`>=${a}.${s}.0${e?"-0":""}`}else if(i){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(d)){n=""}else if(isX(l)){n=`<${+d+1}.0.0-0`}else if(isX(c)){n=`<${d}.${+l+1}.0-0`}else if(m){n=`<=${d}.${l}.${c}-${m}`}else if(e){n=`<${d}.${l}.${+c+1}-0`}else{n=`<=${n}`}return`${r} ${n}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const a=e[r].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch){return true}}}return false}return true}},8088:(e,t,r)=>{const a=r(106);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=r(2293);const{safeRe:i,t:p}=r(9523);const n=r(785);const{compareIdentifiers:d}=r(2463);class SemVer{constructor(e,t){t=n(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}a("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[p.LOOSE]:i[p.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[a]==="number"){this.prerelease[a]++;a=-2}}if(a===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let a=[t,e];if(r===false){a=[t]}if(d(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=a}}else{this.prerelease=a}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},8848:(e,t,r)=>{const a=r(5925);const clean=(e,t)=>{const r=a(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},5098:(e,t,r)=>{const a=r(1898);const s=r(6017);const o=r(4123);const i=r(5522);const p=r(194);const n=r(7520);const cmp=(e,t,r,d)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return a(e,r,d);case"!=":return s(e,r,d);case">":return o(e,r,d);case">=":return i(e,r,d);case"<":return p(e,r,d);case"<=":return n(e,r,d);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},3466:(e,t,r)=>{const a=r(8088);const s=r(5925);const{safeRe:o,t:i}=r(9523);const coerce=(e,t)=>{if(e instanceof a){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(o[i.COERCE])}else{let t;while((t=o[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}o[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}o[i.COERCERTL].lastIndex=-1}if(r===null){return null}return s(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=coerce},2156:(e,t,r)=>{const a=r(8088);const compareBuild=(e,t,r)=>{const s=new a(e,r);const o=new a(t,r);return s.compare(o)||s.compareBuild(o)};e.exports=compareBuild},2804:(e,t,r)=>{const a=r(4309);const compareLoose=(e,t)=>a(e,t,true);e.exports=compareLoose},4309:(e,t,r)=>{const a=r(8088);const compare=(e,t,r)=>new a(e,r).compare(new a(t,r));e.exports=compare},4297:(e,t,r)=>{const a=r(5925);const diff=(e,t)=>{const r=a(e,null,true);const s=a(t,null,true);const o=r.compare(s);if(o===0){return null}const i=o>0;const p=i?r:s;const n=i?s:r;const d=!!p.prerelease.length;const l=!!n.prerelease.length;if(l&&!d){if(!n.patch&&!n.minor){return"major"}if(p.patch){return"patch"}if(p.minor){return"minor"}return"major"}const c=d?"pre":"";if(r.major!==s.major){return c+"major"}if(r.minor!==s.minor){return c+"minor"}if(r.patch!==s.patch){return c+"patch"}return"prerelease"};e.exports=diff},1898:(e,t,r)=>{const a=r(4309);const eq=(e,t,r)=>a(e,t,r)===0;e.exports=eq},4123:(e,t,r)=>{const a=r(4309);const gt=(e,t,r)=>a(e,t,r)>0;e.exports=gt},5522:(e,t,r)=>{const a=r(4309);const gte=(e,t,r)=>a(e,t,r)>=0;e.exports=gte},900:(e,t,r)=>{const a=r(8088);const inc=(e,t,r,s,o)=>{if(typeof r==="string"){o=s;s=r;r=undefined}try{return new a(e instanceof a?e.version:e,r).inc(t,s,o).version}catch(e){return null}};e.exports=inc},194:(e,t,r)=>{const a=r(4309);const lt=(e,t,r)=>a(e,t,r)<0;e.exports=lt},7520:(e,t,r)=>{const a=r(4309);const lte=(e,t,r)=>a(e,t,r)<=0;e.exports=lte},6688:(e,t,r)=>{const a=r(8088);const major=(e,t)=>new a(e,t).major;e.exports=major},8447:(e,t,r)=>{const a=r(8088);const minor=(e,t)=>new a(e,t).minor;e.exports=minor},6017:(e,t,r)=>{const a=r(4309);const neq=(e,t,r)=>a(e,t,r)!==0;e.exports=neq},5925:(e,t,r)=>{const a=r(8088);const parse=(e,t,r=false)=>{if(e instanceof a){return e}try{return new a(e,t)}catch(e){if(!r){return null}throw e}};e.exports=parse},2866:(e,t,r)=>{const a=r(8088);const patch=(e,t)=>new a(e,t).patch;e.exports=patch},4016:(e,t,r)=>{const a=r(5925);const prerelease=(e,t)=>{const r=a(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},6417:(e,t,r)=>{const a=r(4309);const rcompare=(e,t,r)=>a(t,e,r);e.exports=rcompare},8701:(e,t,r)=>{const a=r(2156);const rsort=(e,t)=>e.sort(((e,r)=>a(r,e,t)));e.exports=rsort},6055:(e,t,r)=>{const a=r(9828);const satisfies=(e,t,r)=>{try{t=new a(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},1426:(e,t,r)=>{const a=r(2156);const sort=(e,t)=>e.sort(((e,r)=>a(e,r,t)));e.exports=sort},9601:(e,t,r)=>{const a=r(5925);const valid=(e,t)=>{const r=a(e,t);return r?r.version:null};e.exports=valid},1383:(e,t,r)=>{const a=r(9523);const s=r(2293);const o=r(8088);const i=r(2463);const p=r(5925);const n=r(9601);const d=r(8848);const l=r(900);const c=r(4297);const m=r(6688);const u=r(8447);const h=r(2866);const g=r(4016);const v=r(4309);const E=r(6417);const w=r(2804);const T=r(2156);const _=r(1426);const b=r(8701);const y=r(4123);const S=r(194);const A=r(1898);const O=r(6017);const R=r(5522);const D=r(7520);const P=r(5098);const k=r(3466);const C=r(1532);const G=r(9828);const F=r(6055);const N=r(2706);const I=r(579);const x=r(832);const U=r(4179);const B=r(2098);const L=r(420);const j=r(9380);const V=r(8726);const $=r(7008);const M=r(5297);const q=r(7863);e.exports={parse:p,valid:n,clean:d,inc:l,diff:c,major:m,minor:u,patch:h,prerelease:g,compare:v,rcompare:E,compareLoose:w,compareBuild:T,sort:_,rsort:b,gt:y,lt:S,eq:A,neq:O,gte:R,lte:D,cmp:P,coerce:k,Comparator:C,Range:G,satisfies:F,toComparators:N,maxSatisfying:I,minSatisfying:x,minVersion:U,validRange:B,outside:L,gtr:j,ltr:V,intersects:$,simplifyRange:M,subset:q,SemVer:o,re:a.re,src:a.src,tokens:a.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},2293:e=>{const t="2.0.0";const r=256;const a=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;const o=r-6;const i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:a,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},106:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},2463:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const a=t.test(e);const s=t.test(r);if(a&&s){e=+e;r=+r}return e===r?0:a&&!s?-1:s&&!a?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const parseOptions=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},9523:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=r(2293);const i=r(106);t=e.exports={};const p=t.re=[];const n=t.safeRe=[];const d=t.src=[];const l=t.t={};let c=0;const m="[a-zA-Z0-9-]";const u=[["\\s",1],["\\d",o],[m,s]];const makeSafeRegex=e=>{for(const[t,r]of u){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const createToken=(e,t,r)=>{const a=makeSafeRegex(t);const s=c++;i(e,s,t);l[e]=s;d[s]=t;p[s]=new RegExp(t,r?"g":undefined);n[s]=new RegExp(a,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`);createToken("MAINVERSION",`(${d[l.NUMERICIDENTIFIER]})\\.`+`(${d[l.NUMERICIDENTIFIER]})\\.`+`(${d[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${d[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${d[l.NUMERICIDENTIFIER]}|${d[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${d[l.NUMERICIDENTIFIERLOOSE]}|${d[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${d[l.PRERELEASEIDENTIFIER]}(?:\\.${d[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${d[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${m}+`);createToken("BUILD",`(?:\\+(${d[l.BUILDIDENTIFIER]}(?:\\.${d[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${d[l.MAINVERSION]}${d[l.PRERELEASE]}?${d[l.BUILD]}?`);createToken("FULL",`^${d[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${d[l.MAINVERSIONLOOSE]}${d[l.PRERELEASELOOSE]}?${d[l.BUILD]}?`);createToken("LOOSE",`^${d[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${d[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${d[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${d[l.XRANGEIDENTIFIER]})`+`(?:\\.(${d[l.XRANGEIDENTIFIER]})`+`(?:\\.(${d[l.XRANGEIDENTIFIER]})`+`(?:${d[l.PRERELEASE]})?${d[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${d[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${d[l.PRERELEASELOOSE]})?${d[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${d[l.GTLT]}\\s*${d[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${d[l.GTLT]}\\s*${d[l.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${a}})`+`(?:\\.(\\d{1,${a}}))?`+`(?:\\.(\\d{1,${a}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",d[l.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${d[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${d[l.LONETILDE]}${d[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${d[l.LONETILDE]}${d[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${d[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${d[l.LONECARET]}${d[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${d[l.LONECARET]}${d[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${d[l.GTLT]}\\s*(${d[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${d[l.GTLT]}\\s*(${d[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${d[l.GTLT]}\\s*(${d[l.LOOSEPLAIN]}|${d[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${d[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${d[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${d[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${d[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9380:(e,t,r)=>{const a=r(420);const gtr=(e,t,r)=>a(e,t,">",r);e.exports=gtr},7008:(e,t,r)=>{const a=r(9828);const intersects=(e,t,r)=>{e=new a(e,r);t=new a(t,r);return e.intersects(t,r)};e.exports=intersects},8726:(e,t,r)=>{const a=r(420);const ltr=(e,t,r)=>a(e,t,"<",r);e.exports=ltr},579:(e,t,r)=>{const a=r(8088);const s=r(9828);const maxSatisfying=(e,t,r)=>{let o=null;let i=null;let p=null;try{p=new s(t,r)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!o||i.compare(e)===-1){o=e;i=new a(o,r)}}}));return o};e.exports=maxSatisfying},832:(e,t,r)=>{const a=r(8088);const s=r(9828);const minSatisfying=(e,t,r)=>{let o=null;let i=null;let p=null;try{p=new s(t,r)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!o||i.compare(e)===1){o=e;i=new a(o,r)}}}));return o};e.exports=minSatisfying},4179:(e,t,r)=>{const a=r(8088);const s=r(9828);const o=r(4123);const minVersion=(e,t)=>{e=new s(e,t);let r=new a("0.0.0");if(e.test(r)){return r}r=new a("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new a(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!i||o(t,i)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(i&&(!r||o(r,i))){r=i}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},420:(e,t,r)=>{const a=r(8088);const s=r(1532);const{ANY:o}=s;const i=r(9828);const p=r(6055);const n=r(4123);const d=r(194);const l=r(7520);const c=r(5522);const outside=(e,t,r,m)=>{e=new a(e,m);t=new i(t,m);let u,h,g,v,E;switch(r){case">":u=n;h=l;g=d;v=">";E=">=";break;case"<":u=d;h=c;g=n;v="<";E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(e,t,m)){return false}for(let r=0;r{if(e.semver===o){e=new s(">=0.0.0")}i=i||e;p=p||e;if(u(e.semver,i.semver,m)){i=e}else if(g(e.semver,p.semver,m)){p=e}}));if(i.operator===v||i.operator===E){return false}if((!p.operator||p.operator===v)&&h(e,p.semver)){return false}else if(p.operator===E&&g(e,p.semver)){return false}}return true};e.exports=outside},5297:(e,t,r)=>{const a=r(6055);const s=r(4309);e.exports=(e,t,r)=>{const o=[];let i=null;let p=null;const n=e.sort(((e,t)=>s(e,t,r)));for(const e of n){const s=a(e,t,r);if(s){p=e;if(!i){i=e}}else{if(p){o.push([i,p])}p=null;i=null}}if(i){o.push([i,null])}const d=[];for(const[e,t]of o){if(e===t){d.push(e)}else if(!t&&e===n[0]){d.push("*")}else if(!t){d.push(`>=${e}`)}else if(e===n[0]){d.push(`<=${t}`)}else{d.push(`${e} - ${t}`)}}const l=d.join(" || ");const c=typeof t.raw==="string"?t.raw:String(t);return l.length{const a=r(9828);const s=r(1532);const{ANY:o}=s;const i=r(6055);const p=r(4309);const subset=(e,t,r={})=>{if(e===t){return true}e=new a(e,r);t=new a(t,r);let s=false;e:for(const a of e.set){for(const e of t.set){const t=simpleSubset(a,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const n=[new s(">=0.0.0-0")];const d=[new s(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o){return true}else if(r.includePrerelease){e=n}else{e=d}}if(t.length===1&&t[0].semver===o){if(r.includePrerelease){return true}else{t=d}}const a=new Set;let s,l;for(const t of e){if(t.operator===">"||t.operator===">="){s=higherGT(s,t,r)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,r)}else{a.add(t.semver)}}if(a.size>1){return null}let c;if(s&&l){c=p(s.semver,l.semver,r);if(c>0){return null}else if(c===0&&(s.operator!==">="||l.operator!=="<=")){return null}}for(const e of a){if(s&&!i(e,String(s),r)){return null}if(l&&!i(e,String(l),r)){return null}for(const a of t){if(!i(e,String(a),r)){return false}}return true}let m,u;let h,g;let v=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let E=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:false;if(v&&v.prerelease.length===1&&l.operator==="<"&&v.prerelease[0]===0){v=false}for(const e of t){g=g||e.operator===">"||e.operator===">=";h=h||e.operator==="<"||e.operator==="<=";if(s){if(E){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch){E=false}}if(e.operator===">"||e.operator===">="){m=higherGT(s,e,r);if(m===e&&m!==s){return false}}else if(s.operator===">="&&!i(s.semver,String(e),r)){return false}}if(l){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator==="<"||e.operator==="<="){u=lowerLT(l,e,r);if(u===e&&u!==l){return false}}else if(l.operator==="<="&&!i(l.semver,String(e),r)){return false}}if(!e.operator&&(l||s)&&c!==0){return false}}if(s&&h&&!l&&c!==0){return false}if(l&&g&&!s&&c!==0){return false}if(E||v){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const a=p(e.semver,t.semver,r);return a>0?e:a<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const a=p(e.semver,t.semver,r);return a<0?e:a>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},2706:(e,t,r)=>{const a=r(9828);const toComparators=(e,t)=>new a(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},2098:(e,t,r)=>{const a=r(9828);const validRange=(e,t)=>{try{return new a(e,t).range||"*"}catch(e){return null}};e.exports=validRange},8065:(e,t,r)=>{"use strict";const{promisify:a}=r(3837);const s=r(8517);e.exports.fileSync=s.fileSync;const o=a(((e,t)=>s.file(e,((e,r,s,o)=>e?t(e):t(undefined,{path:r,fd:s,cleanup:a(o)})))));e.exports.file=async e=>o(e);e.exports.withFile=async function withFile(t,r){const{path:a,fd:s,cleanup:o}=await e.exports.file(r);try{return await t({path:a,fd:s})}finally{await o()}};e.exports.dirSync=s.dirSync;const i=a(((e,t)=>s.dir(e,((e,r,s)=>e?t(e):t(undefined,{path:r,cleanup:a(s)})))));e.exports.dir=async e=>i(e);e.exports.withDir=async function withDir(t,r){const{path:a,cleanup:s}=await e.exports.dir(r);try{return await t({path:a})}finally{await s()}};e.exports.tmpNameSync=s.tmpNameSync;e.exports.tmpName=a(s.tmpName);e.exports.tmpdir=s.tmpdir;e.exports.setGracefulCleanup=s.setGracefulCleanup},8517:(e,t,r)=>{ /*! * Tmp *