@serverless-devs/s 2.0.101 → 2.0.102-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean/index.js +1 -1
- package/lib/cli/index.js +1 -1
- package/lib/component/index.js +1 -1
- package/lib/config/add/index.js +1 -1
- package/lib/config/delete/index.js +1 -1
- package/lib/config/get/index.js +1 -1
- package/lib/config/index.js +5 -5
- package/lib/index.js +77 -79
- package/lib/init/index.js +57 -57
- package/lib/init/init-manager.js +9 -39
- package/lib/set/analysis/index.js +1 -1
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +1 -1
- package/lib/set/registry/index.js +1 -1
- package/lib/set/workspace/index.js +1 -1
- package/lib/update-notifier/index.js +1 -1
- package/lib/verify/index.js +1 -1
- package/package.json +2 -2
package/lib/config/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var g=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var st=g((H,it)=>{var $i=require("events").EventEmitter,xe=require("child_process").spawn,j=require("path"),Ne=require("fs"),fe=class{constructor(e,t){this.flags=e,this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=rt(e);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.description=t||"",this.defaultValue=void 0}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return
|
|
1
|
+
"use strict";var g=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var st=g((H,it)=>{var $i=require("events").EventEmitter,xe=require("child_process").spawn,j=require("path"),Ne=require("fs"),fe=class{constructor(e,t){this.flags=e,this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=rt(e);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.description=t||"",this.defaultValue=void 0}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return bi(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}},Z=class extends Error{constructor(e,t,i){super(i);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},K=class extends $i{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._args=[],this.rawArgs=null,this._scriptPath=null,this._name=e||"",this._optionValues={},this._storeOptionsAsProperties=!0,this._storeOptionsAsPropertiesCalled=!1,this._passCommandToAction=!0,this._actionResults=[],this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._hasImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command"}command(e,t,i){let s=t,n=i;typeof s=="object"&&s!==null&&(n=s,s=null),n=n||{};let o=e.split(/ +/),l=this.createCommand(o.shift());return s&&(l.description(s),l._executableHandler=!0),n.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(n.noHelp||n.hidden),l._hasHelpOption=this._hasHelpOption,l._helpFlags=this._helpFlags,l._helpDescription=this._helpDescription,l._helpShortFlag=this._helpShortFlag,l._helpLongFlag=this._helpLongFlag,l._helpCommandName=this._helpCommandName,l._helpCommandnameAndArgs=this._helpCommandnameAndArgs,l._helpCommandDescription=this._helpCommandDescription,l._exitCallback=this._exitCallback,l._storeOptionsAsProperties=this._storeOptionsAsProperties,l._passCommandToAction=this._passCommandToAction,l._combineFlagAndOptionalValue=this._combineFlagAndOptionalValue,l._executableFile=n.executableFile||null,this.commands.push(l),l._parseExpectedArgs(o),l.parent=this,s?this:l}createCommand(e){return new K(e)}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name");function i(s){s.forEach(n=>{if(n._executableHandler&&!n._executableFile)throw new Error(`Must specify executableFile for deeply nested executable: ${n.name()}`);i(n.commands)})}return i(e.commands),t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}arguments(e){return this._parseExpectedArgs(e.split(/ +/))}addHelpCommand(e,t){return e===!1?this._hasImplicitHelpCommand=!1:(this._hasImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=t||this._helpCommandDescription),this}_lazyHasImplicitHelpCommand(){return this._hasImplicitHelpCommand===void 0&&(this._hasImplicitHelpCommand=this.commands.length&&!this._actionHandler&&!this._findCommand("help")),this._hasImplicitHelpCommand}_parseExpectedArgs(e){if(!!e.length)return e.forEach(t=>{let i={required:!1,name:"",variadic:!1};switch(t[0]){case"<":i.required=!0,i.name=t.slice(1,-1);break;case"[":i.name=t.slice(1,-1);break}i.name.length>3&&i.name.slice(-3)==="..."&&(i.variadic=!0,i.name=i.name.slice(0,-3)),i.name&&this._args.push(i)}),this._args.forEach((t,i)=>{if(t.variadic&&i<this._args.length-1)throw new Error(`only the last argument can be variadic '${t.name}'`)}),this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,i){this._exitCallback&&this._exitCallback(new Z(e,t,i)),process.exit(e)}action(e){let t=i=>{let s=this._args.length,n=i.slice(0,s);this._passCommandToAction?n[s]=this:n[s]=this.opts(),i.length>s&&n.push(i.slice(s));let o=e.apply(this,n),l=this;for(;l.parent;)l=l.parent;l._actionResults.push(o)};return this._actionHandler=t,this}_checkForOptionNameClash(e){if(!this._storeOptionsAsProperties||this._storeOptionsAsPropertiesCalled||e.name()==="help"||this._getOptionValue(e.attributeName())===void 0)return;let i=!0;if(e.negate){let s=e.long.replace(/^--no-/,"--");i=!this._findOption(s)}else if(e.long){let s=e.long.replace(/^--/,"--no-");i=!this._findOption(s)}if(i)throw new Error(`option '${e.name()}' clashes with existing property '${e.attributeName()}' on Command
|
|
2
2
|
- call storeOptionsAsProperties(false) to store option values safely,
|
|
3
3
|
- or call storeOptionsAsProperties(true) to suppress this check,
|
|
4
4
|
- or change option name
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
`)}commandHelp(){if(!this.commands.length&&!this._lazyHasImplicitHelpCommand())return"";let e=this.prepareCommands(),t=this.padWidth(),s=(process.stdout.columns||80)-t-4;return["Commands:",e.map(n=>{let o=n[1]?" "+n[1]:"";return(o?Le(n[0],t):n[0])+Ze(o,s,t+2)}).join(`
|
|
11
11
|
`).replace(/^/gm," "),""].join(`
|
|
12
12
|
`)}helpInformation(){if(this._name==="s")return"";let e=[];if(this._description){e=[this._description,""];let c=this._argsDescription;if(c&&this._args.length){let a=this.padWidth(),m=(process.stdout.columns||80)-a-5;e.push("Arguments:"),this._args.forEach(p=>{e.push(" "+Le(p.name,a)+" "+tt(c[p.name]||"",m,a+4))}),e.push("")}}let t=this._name;this._aliases[0]&&(t=t+"|"+this._aliases[0]);let i="";for(let c=this.parent;c;c=c.parent)i=c.name()+" "+i;let s=["Usage: "+i+t+" "+this.usage(),""],n=[],o=this.commandHelp();o&&(n=[o]);let l=[];return(this._hasHelpOption||this.options.length>0)&&(l=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),s.concat(e).concat(l).concat(n).join(`
|
|
13
|
-
`)}outputHelp(e){e||(e=i=>i);let t=e(this.helpInformation());if(typeof t!="string"&&!Buffer.isBuffer(t))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(t),this.emit(this._helpLongFlag)}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let i=rt(this._helpFlags);return this._helpShortFlag=i.shortFlag,this._helpLongFlag=i.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};H=it.exports=new K;H.program=H;H.Command=K;H.Option=fe;H.CommanderError=Z;function
|
|
13
|
+
`)}outputHelp(e){e||(e=i=>i);let t=e(this.helpInformation());if(typeof t!="string"&&!Buffer.isBuffer(t))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(t),this.emit(this._helpLongFlag)}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let i=rt(this._helpFlags);return this._helpShortFlag=i.shortFlag,this._helpLongFlag=i.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};H=it.exports=new K;H.program=H;H.Command=K;H.Option=fe;H.CommanderError=Z;function bi(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Le(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function tt(r,e,t){let i=new RegExp(".{1,"+(e-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(r.match(i)||[]).map((n,o)=>(n.slice(-1)===`
|
|
14
14
|
`&&(n=n.slice(0,n.length-1)),(o>0&&t?Array(t+1).join(" "):"")+n.trimRight())).join(`
|
|
15
|
-
`)}function Ze(r,e,t){return r.match(/[\n]\s+/)||e<40?r:tt(r,e,t)}function Ke(r,e){r._hasHelpOption&&e.find(i=>i===r._helpLongFlag||i===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Qe(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function rt(r){let e,t,i=r.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(e=i.shift()),t=i.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function et(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?t=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=n[1],/^\d+$/.test(n[3])?s=n[3]:i=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=n[1],i=n[3],s=n[4]),t&&s!=="0"?`${t}=${i}:${parseInt(s)+1}`:e})}});var Q=g((Ro,nt)=>{var bi="2.0.0",Ri=Number.MAX_SAFE_INTEGER||9007199254740991,Ii=16;nt.exports={SEMVER_SPEC_VERSION:bi,MAX_LENGTH:256,MAX_SAFE_INTEGER:Ri,MAX_SAFE_COMPONENT_LENGTH:Ii}});var ee=g((Io,ot)=>{var wi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ot.exports=wi});var G=g((D,at)=>{var{MAX_SAFE_COMPONENT_LENGTH:qe}=Q(),Si=ee();D=at.exports={};var Ci=D.re=[],h=D.src=[],f=D.t={},xi=0,v=(r,e,t)=>{let i=xi++;Si(i,e),f[r]=i,h[i]=e,Ci[i]=new RegExp(e,t?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*");v("NUMERICIDENTIFIERLOOSE","[0-9]+");v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");v("MAINVERSION",`(${h[f.NUMERICIDENTIFIER]})\\.(${h[f.NUMERICIDENTIFIER]})\\.(${h[f.NUMERICIDENTIFIER]})`);v("MAINVERSIONLOOSE",`(${h[f.NUMERICIDENTIFIERLOOSE]})\\.(${h[f.NUMERICIDENTIFIERLOOSE]})\\.(${h[f.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASEIDENTIFIER",`(?:${h[f.NUMERICIDENTIFIER]}|${h[f.NONNUMERICIDENTIFIER]})`);v("PRERELEASEIDENTIFIERLOOSE",`(?:${h[f.NUMERICIDENTIFIERLOOSE]}|${h[f.NONNUMERICIDENTIFIER]})`);v("PRERELEASE",`(?:-(${h[f.PRERELEASEIDENTIFIER]}(?:\\.${h[f.PRERELEASEIDENTIFIER]})*))`);v("PRERELEASELOOSE",`(?:-?(${h[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[f.PRERELEASEIDENTIFIERLOOSE]})*))`);v("BUILDIDENTIFIER","[0-9A-Za-z-]+");v("BUILD",`(?:\\+(${h[f.BUILDIDENTIFIER]}(?:\\.${h[f.BUILDIDENTIFIER]})*))`);v("FULLPLAIN",`v?${h[f.MAINVERSION]}${h[f.PRERELEASE]}?${h[f.BUILD]}?`);v("FULL",`^${h[f.FULLPLAIN]}$`);v("LOOSEPLAIN",`[v=\\s]*${h[f.MAINVERSIONLOOSE]}${h[f.PRERELEASELOOSE]}?${h[f.BUILD]}?`);v("LOOSE",`^${h[f.LOOSEPLAIN]}$`);v("GTLT","((?:<|>)?=?)");v("XRANGEIDENTIFIERLOOSE",`${h[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);v("XRANGEIDENTIFIER",`${h[f.NUMERICIDENTIFIER]}|x|X|\\*`);v("XRANGEPLAIN",`[v=\\s]*(${h[f.XRANGEIDENTIFIER]})(?:\\.(${h[f.XRANGEIDENTIFIER]})(?:\\.(${h[f.XRANGEIDENTIFIER]})(?:${h[f.PRERELEASE]})?${h[f.BUILD]}?)?)?`);v("XRANGEPLAINLOOSE",`[v=\\s]*(${h[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[f.XRANGEIDENTIFIERLOOSE]})(?:${h[f.PRERELEASELOOSE]})?${h[f.BUILD]}?)?)?`);v("XRANGE",`^${h[f.GTLT]}\\s*${h[f.XRANGEPLAIN]}$`);v("XRANGELOOSE",`^${h[f.GTLT]}\\s*${h[f.XRANGEPLAINLOOSE]}$`);v("COERCE",`(^|[^\\d])(\\d{1,${qe}})(?:\\.(\\d{1,${qe}}))?(?:\\.(\\d{1,${qe}}))?(?:$|[^\\d])`);v("COERCERTL",h[f.COERCE],!0);v("LONETILDE","(?:~>?)");v("TILDETRIM",`(\\s*)${h[f.LONETILDE]}\\s+`,!0);D.tildeTrimReplace="$1~";v("TILDE",`^${h[f.LONETILDE]}${h[f.XRANGEPLAIN]}$`);v("TILDELOOSE",`^${h[f.LONETILDE]}${h[f.XRANGEPLAINLOOSE]}$`);v("LONECARET","(?:\\^)");v("CARETTRIM",`(\\s*)${h[f.LONECARET]}\\s+`,!0);D.caretTrimReplace="$1^";v("CARET",`^${h[f.LONECARET]}${h[f.XRANGEPLAIN]}$`);v("CARETLOOSE",`^${h[f.LONECARET]}${h[f.XRANGEPLAINLOOSE]}$`);v("COMPARATORLOOSE",`^${h[f.GTLT]}\\s*(${h[f.LOOSEPLAIN]})$|^$`);v("COMPARATOR",`^${h[f.GTLT]}\\s*(${h[f.FULLPLAIN]})$|^$`);v("COMPARATORTRIM",`(\\s*)${h[f.GTLT]}\\s*(${h[f.LOOSEPLAIN]}|${h[f.XRANGEPLAIN]})`,!0);D.comparatorTrimReplace="$1$2$3";v("HYPHENRANGE",`^\\s*(${h[f.XRANGEPLAIN]})\\s+-\\s+(${h[f.XRANGEPLAIN]})\\s*$`);v("HYPHENRANGELOOSE",`^\\s*(${h[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${h[f.XRANGEPLAINLOOSE]})\\s*$`);v("STAR","(<|>)?=?\\s*\\*");v("GTE0","^\\s*>=\\s*0.0.0\\s*$");v("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var te=g((wo,lt)=>{var Ni=["includePrerelease","loose","rtl"],Li=r=>r?typeof r!="object"?{loose:!0}:Ni.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};lt.exports=Li});var pe=g((So,ht)=>{var ct=/^[0-9]+$/,ut=(r,e)=>{let t=ct.test(r),i=ct.test(e);return t&&i&&(r=+r,e=+e),r===e?0:t&&!i?-1:i&&!t?1:r<e?-1:1},qi=(r,e)=>ut(e,r);ht.exports={compareIdentifiers:ut,rcompareIdentifiers:qi}});var A=g((Co,dt)=>{var me=ee(),{MAX_LENGTH:ft,MAX_SAFE_INTEGER:de}=Q(),{re:pt,t:mt}=G(),Ti=te(),{compareIdentifiers:re}=pe(),C=class{constructor(e,t){if(t=Ti(t),e instanceof C){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>ft)throw new TypeError(`version is longer than ${ft} characters`);me("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?pt[mt.LOOSE]:pt[mt.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>de||this.major<0)throw new TypeError("Invalid major version");if(this.minor>de||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>de||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&n<de)return n}return s}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(me("SemVer.compare",this.version,this.options,e),!(e instanceof C)){if(typeof e=="string"&&e===this.version)return 0;e=new C(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof C||(e=new C(e,this.options)),re(this.major,e.major)||re(this.minor,e.minor)||re(this.patch,e.patch)}comparePre(e){if(e instanceof C||(e=new C(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let i=this.prerelease[t],s=e.prerelease[t];if(me("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return re(i,s)}while(++t)}compareBuild(e){e instanceof C||(e=new C(e,this.options));let t=0;do{let i=this.build[t],s=e.build[t];if(me("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return re(i,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};dt.exports=C});var V=g((xo,_t)=>{var{MAX_LENGTH:Pi}=Q(),{re:gt,t:Et}=G(),vt=A(),Di=te(),Fi=(r,e)=>{if(e=Di(e),r instanceof vt)return r;if(typeof r!="string"||r.length>Pi||!(e.loose?gt[Et.LOOSE]:gt[Et.FULL]).test(r))return null;try{return new vt(r,e)}catch{return null}};_t.exports=Fi});var Ot=g((No,yt)=>{var ji=V(),Hi=(r,e)=>{let t=ji(r,e);return t?t.version:null};yt.exports=Hi});var At=g((Lo,$t)=>{var Gi=V(),Vi=(r,e)=>{let t=Gi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};$t.exports=Vi});var Rt=g((qo,bt)=>{var Mi=A(),Ui=(r,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new Mi(r,t).inc(e,i).version}catch{return null}};bt.exports=Ui});var x=g((To,wt)=>{var It=A(),Xi=(r,e,t)=>new It(r,t).compare(new It(e,t));wt.exports=Xi});var ge=g((Po,St)=>{var Bi=x(),Wi=(r,e,t)=>Bi(r,e,t)===0;St.exports=Wi});var Nt=g((Do,xt)=>{var Ct=V(),zi=ge(),ki=(r,e)=>{if(zi(r,e))return null;{let t=Ct(r),i=Ct(e),s=t.prerelease.length||i.prerelease.length,n=s?"pre":"",o=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==i[l])return n+l;return o}};xt.exports=ki});var qt=g((Fo,Lt)=>{var Yi=A(),Ji=(r,e)=>new Yi(r,e).major;Lt.exports=Ji});var Pt=g((jo,Tt)=>{var Zi=A(),Ki=(r,e)=>new Zi(r,e).minor;Tt.exports=Ki});var Ft=g((Ho,Dt)=>{var Qi=A(),es=(r,e)=>new Qi(r,e).patch;Dt.exports=es});var Ht=g((Go,jt)=>{var ts=V(),rs=(r,e)=>{let t=ts(r,e);return t&&t.prerelease.length?t.prerelease:null};jt.exports=rs});var Vt=g((Vo,Gt)=>{var is=x(),ss=(r,e,t)=>is(e,r,t);Gt.exports=ss});var Ut=g((Mo,Mt)=>{var ns=x(),os=(r,e)=>ns(r,e,!0);Mt.exports=os});var Ee=g((Uo,Bt)=>{var Xt=A(),as=(r,e,t)=>{let i=new Xt(r,t),s=new Xt(e,t);return i.compare(s)||i.compareBuild(s)};Bt.exports=as});var zt=g((Xo,Wt)=>{var ls=Ee(),cs=(r,e)=>r.sort((t,i)=>ls(t,i,e));Wt.exports=cs});var Yt=g((Bo,kt)=>{var us=Ee(),hs=(r,e)=>r.sort((t,i)=>us(i,t,e));kt.exports=hs});var ie=g((Wo,Jt)=>{var fs=x(),ps=(r,e,t)=>fs(r,e,t)>0;Jt.exports=ps});var ve=g((zo,Zt)=>{var ms=x(),ds=(r,e,t)=>ms(r,e,t)<0;Zt.exports=ds});var Te=g((ko,Kt)=>{var gs=x(),Es=(r,e,t)=>gs(r,e,t)!==0;Kt.exports=Es});var _e=g((Yo,Qt)=>{var vs=x(),_s=(r,e,t)=>vs(r,e,t)>=0;Qt.exports=_s});var ye=g((Jo,er)=>{var ys=x(),Os=(r,e,t)=>ys(r,e,t)<=0;er.exports=Os});var Pe=g((Zo,tr)=>{var $s=ge(),As=Te(),bs=ie(),Rs=_e(),Is=ve(),ws=ye(),Ss=(r,e,t,i)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return $s(r,t,i);case"!=":return As(r,t,i);case">":return bs(r,t,i);case">=":return Rs(r,t,i);case"<":return Is(r,t,i);case"<=":return ws(r,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};tr.exports=Ss});var ir=g((Ko,rr)=>{var Cs=A(),xs=V(),{re:Oe,t:$e}=G(),Ns=(r,e)=>{if(r instanceof Cs)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Oe[$e.COERCE]);else{let i;for(;(i=Oe[$e.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),Oe[$e.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Oe[$e.COERCERTL].lastIndex=-1}return t===null?null:xs(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};rr.exports=Ns});var nr=g((Qo,sr)=>{"use strict";sr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ar=g((ea,or)=>{"use strict";or.exports=_;_.Node=M;_.create=_;function _(r){var e=this;if(e instanceof _||(e=new _),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,i=arguments.length;t<i;t++)e.push(arguments[t]);return e}_.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};_.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};_.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};_.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)qs(this,arguments[r]);return this.length};_.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)Ts(this,arguments[r]);return this.length};_.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};_.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};_.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,i=0;t!==null;i++)r.call(e,t.value,i,this),t=t.next};_.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,i=this.length-1;t!==null;i--)r.call(e,t.value,i,this),t=t.prev};_.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};_.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};_.prototype.map=function(r,e){e=e||this;for(var t=new _,i=this.head;i!==null;)t.push(r.call(e,i.value,this)),i=i.next;return t};_.prototype.mapReverse=function(r,e){e=e||this;for(var t=new _,i=this.tail;i!==null;)t.push(r.call(e,i.value,this)),i=i.prev;return t};_.prototype.reduce=function(r,e){var t,i=this.head;if(arguments.length>1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)t=r(t,i.value,s),i=i.next;return t};_.prototype.reduceReverse=function(r,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;i!==null;s--)t=r(t,i.value,s),i=i.prev;return t};_.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};_.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};_.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new _;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<r;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)t.push(s.value);return t};_.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new _;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>r;i--,s=s.prev)t.push(s.value);return t};_.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,s=this.head;s!==null&&i<r;i++)s=s.next;for(var n=[],i=0;s&&i<e;i++)n.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<t.length;i++)s=Ls(this,s,t[i]);return n};_.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var i=t.prev;t.prev=t.next,t.next=i}return this.head=e,this.tail=r,this};function Ls(r,e,t){var i=e===r.head?new M(t,null,e,r):new M(t,e,e.next,r);return i.next===null&&(r.tail=i),i.prev===null&&(r.head=i),r.length++,i}function qs(r,e){r.tail=new M(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function Ts(r,e){r.head=new M(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function M(r,e,t,i){if(!(this instanceof M))return new M(r,e,t,i);this.list=i,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{nr()(_)}catch{}});var mr=g((ta,pr)=>{"use strict";var Ps=ar(),U=Symbol("max"),P=Symbol("length"),B=Symbol("lengthCalculator"),ne=Symbol("allowStale"),X=Symbol("maxAge"),T=Symbol("dispose"),lr=Symbol("noDisposeOnSet"),O=Symbol("lruList"),L=Symbol("cache"),ur=Symbol("updateAgeOnGet"),De=()=>1,hr=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[U]=e.max||1/0,i=e.length||De;if(this[B]=typeof i!="function"?De:i,this[ne]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[X]=e.maxAge||0,this[T]=e.dispose,this[lr]=e.noDisposeOnSet||!1,this[ur]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[U]=e||1/0,se(this)}get max(){return this[U]}set allowStale(e){this[ne]=!!e}get allowStale(){return this[ne]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[X]=e,se(this)}get maxAge(){return this[X]}set lengthCalculator(e){typeof e!="function"&&(e=De),e!==this[B]&&(this[B]=e,this[P]=0,this[O].forEach(t=>{t.length=this[B](t.value,t.key),this[P]+=t.length})),se(this)}get lengthCalculator(){return this[B]}get length(){return this[P]}get itemCount(){return this[O].length}rforEach(e,t){t=t||this;for(let i=this[O].tail;i!==null;){let s=i.prev;cr(this,e,i,t),i=s}}forEach(e,t){t=t||this;for(let i=this[O].head;i!==null;){let s=i.next;cr(this,e,i,t),i=s}}keys(){return this[O].toArray().map(e=>e.key)}values(){return this[O].toArray().map(e=>e.value)}reset(){this[T]&&this[O]&&this[O].length&&this[O].forEach(e=>this[T](e.key,e.value)),this[L]=new Map,this[O]=new Ps,this[P]=0}dump(){return this[O].map(e=>Ae(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[O]}set(e,t,i){if(i=i||this[X],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let s=i?Date.now():0,n=this[B](t,e);if(this[L].has(e)){if(n>this[U])return W(this,this[L].get(e)),!1;let c=this[L].get(e).value;return this[T]&&(this[lr]||this[T](e,c.value)),c.now=s,c.maxAge=i,c.value=t,this[P]+=n-c.length,c.length=n,this.get(e),se(this),!0}let o=new fr(e,t,n,s,i);return o.length>this[U]?(this[T]&&this[T](e,t),!1):(this[P]+=o.length,this[O].unshift(o),this[L].set(e,this[O].head),se(this),!0)}has(e){if(!this[L].has(e))return!1;let t=this[L].get(e).value;return!Ae(this,t)}get(e){return Fe(this,e,!0)}peek(e){return Fe(this,e,!1)}pop(){let e=this[O].tail;return e?(W(this,e),e.value):null}del(e){W(this,this[L].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let s=e[i],n=s.e||0;if(n===0)this.set(s.k,s.v);else{let o=n-t;o>0&&this.set(s.k,s.v,o)}}}prune(){this[L].forEach((e,t)=>Fe(this,t,!1))}},Fe=(r,e,t)=>{let i=r[L].get(e);if(i){let s=i.value;if(Ae(r,s)){if(W(r,i),!r[ne])return}else t&&(r[ur]&&(i.value.now=Date.now()),r[O].unshiftNode(i));return s.value}},Ae=(r,e)=>{if(!e||!e.maxAge&&!r[X])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[X]&&t>r[X]},se=r=>{if(r[P]>r[U])for(let e=r[O].tail;r[P]>r[U]&&e!==null;){let t=e.prev;W(r,e),e=t}},W=(r,e)=>{if(e){let t=e.value;r[T]&&r[T](t.key,t.value),r[P]-=t.length,r[L].delete(t.key),r[O].removeNode(e)}},fr=class{constructor(e,t,i,s,n){this.key=e,this.value=t,this.length=i,this.now=s,this.maxAge=n||0}},cr=(r,e,t,i)=>{let s=t.value;Ae(r,s)&&(W(r,t),r[ne]||(s=void 0)),s&&e.call(i,s.value,s.key,r)};pr.exports=hr});var N=g((ra,vr)=>{var z=class{constructor(e,t){if(t=Fs(t),e instanceof z)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new z(e.raw,t);if(e instanceof je)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(s=>!gr(s[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Ms(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=dr.get(i);if(s)return s;let n=this.options.loose,o=n?b[$.HYPHENRANGELOOSE]:b[$.HYPHENRANGE];e=e.replace(o,Ks(this.options.includePrerelease)),y("hyphen replace",e),e=e.replace(b[$.COMPARATORTRIM],Hs),y("comparator trim",e,b[$.COMPARATORTRIM]),e=e.replace(b[$.TILDETRIM],Gs),e=e.replace(b[$.CARETTRIM],Vs),e=e.split(/\s+/).join(" ");let l=n?b[$.COMPARATORLOOSE]:b[$.COMPARATOR],c=e.split(" ").map(p=>Us(p,this.options)).join(" ").split(/\s+/).map(p=>Zs(p,this.options)).filter(this.options.loose?p=>!!p.match(l):()=>!0).map(p=>new je(p,this.options)),a=c.length,u=new Map;for(let p of c){if(gr(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let m=[...u.values()];return dr.set(i,m),m}intersects(e,t){if(!(e instanceof z))throw new TypeError("a Range is required");return this.set.some(i=>Er(i,t)&&e.set.some(s=>Er(s,t)&&i.every(n=>s.every(o=>n.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new js(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Qs(this.set[t],e,this.options))return!0;return!1}};vr.exports=z;var Ds=mr(),dr=new Ds({max:1e3}),Fs=te(),je=oe(),y=ee(),js=A(),{re:b,t:$,comparatorTrimReplace:Hs,tildeTrimReplace:Gs,caretTrimReplace:Vs}=G(),gr=r=>r.value==="<0.0.0-0",Ms=r=>r.value==="",Er=(r,e)=>{let t=!0,i=r.slice(),s=i.pop();for(;t&&i.length;)t=i.every(n=>s.intersects(n,e)),s=i.pop();return t},Us=(r,e)=>(y("comp",r,e),r=Ws(r,e),y("caret",r),r=Xs(r,e),y("tildes",r),r=ks(r,e),y("xrange",r),r=Js(r,e),y("stars",r),r),I=r=>!r||r.toLowerCase()==="x"||r==="*",Xs=(r,e)=>r.trim().split(/\s+/).map(t=>Bs(t,e)).join(" "),Bs=(r,e)=>{let t=e.loose?b[$.TILDELOOSE]:b[$.TILDE];return r.replace(t,(i,s,n,o,l)=>{y("tilde",r,i,s,n,o,l);let c;return I(s)?c="":I(n)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:I(o)?c=`>=${s}.${n}.0 <${s}.${+n+1}.0-0`:l?(y("replaceTilde pr",l),c=`>=${s}.${n}.${o}-${l} <${s}.${+n+1}.0-0`):c=`>=${s}.${n}.${o} <${s}.${+n+1}.0-0`,y("tilde return",c),c})},Ws=(r,e)=>r.trim().split(/\s+/).map(t=>zs(t,e)).join(" "),zs=(r,e)=>{y("caret",r,e);let t=e.loose?b[$.CARETLOOSE]:b[$.CARET],i=e.includePrerelease?"-0":"";return r.replace(t,(s,n,o,l,c)=>{y("caret",r,s,n,o,l,c);let a;return I(n)?a="":I(o)?a=`>=${n}.0.0${i} <${+n+1}.0.0-0`:I(l)?n==="0"?a=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.0${i} <${+n+1}.0.0-0`:c?(y("replaceCaret pr",c),n==="0"?o==="0"?a=`>=${n}.${o}.${l}-${c} <${n}.${o}.${+l+1}-0`:a=`>=${n}.${o}.${l}-${c} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.${l}-${c} <${+n+1}.0.0-0`):(y("no pr"),n==="0"?o==="0"?a=`>=${n}.${o}.${l}${i} <${n}.${o}.${+l+1}-0`:a=`>=${n}.${o}.${l}${i} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.${l} <${+n+1}.0.0-0`),y("caret return",a),a})},ks=(r,e)=>(y("replaceXRanges",r,e),r.split(/\s+/).map(t=>Ys(t,e)).join(" ")),Ys=(r,e)=>{r=r.trim();let t=e.loose?b[$.XRANGELOOSE]:b[$.XRANGE];return r.replace(t,(i,s,n,o,l,c)=>{y("xRange",r,i,s,n,o,l,c);let a=I(n),u=a||I(o),m=u||I(l),p=m;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",a?s===">"||s==="<"?i="<0.0.0-0":i="*":s&&p?(u&&(o=0),l=0,s===">"?(s=">=",u?(n=+n+1,o=0,l=0):(o=+o+1,l=0)):s==="<="&&(s="<",u?n=+n+1:o=+o+1),s==="<"&&(c="-0"),i=`${s+n}.${o}.${l}${c}`):u?i=`>=${n}.0.0${c} <${+n+1}.0.0-0`:m&&(i=`>=${n}.${o}.0${c} <${n}.${+o+1}.0-0`),y("xRange return",i),i})},Js=(r,e)=>(y("replaceStars",r,e),r.trim().replace(b[$.STAR],"")),Zs=(r,e)=>(y("replaceGTE0",r,e),r.trim().replace(b[e.includePrerelease?$.GTE0PRE:$.GTE0],"")),Ks=r=>(e,t,i,s,n,o,l,c,a,u,m,p,d)=>(I(i)?t="":I(s)?t=`>=${i}.0.0${r?"-0":""}`:I(n)?t=`>=${i}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,I(a)?c="":I(u)?c=`<${+a+1}.0.0-0`:I(m)?c=`<${a}.${+u+1}.0-0`:p?c=`<=${a}.${u}.${m}-${p}`:r?c=`<${a}.${u}.${+m+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Qs=(r,e,t)=>{for(let i=0;i<r.length;i++)if(!r[i].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let i=0;i<r.length;i++)if(y(r[i].semver),r[i].semver!==je.ANY&&r[i].semver.prerelease.length>0){let s=r[i].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var oe=g((ia,Ar)=>{var ae=Symbol("SemVer ANY"),le=class{static get ANY(){return ae}constructor(e,t){if(t=en(t),e instanceof le){if(e.loose===!!t.loose)return e;e=e.value}Ge("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,Ge("comp",this)}parse(e){let t=this.options.loose?_r[yr.COMPARATORLOOSE]:_r[yr.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Or(i[2],this.options.loose):this.semver=ae}toString(){return this.value}test(e){if(Ge("Comparator.test",e,this.options.loose),this.semver===ae||e===ae)return!0;if(typeof e=="string")try{e=new Or(e,this.options)}catch{return!1}return He(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof le))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new $r(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new $r(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),n=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=He(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=He(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||s||n&&o||l||c}};Ar.exports=le;var en=te(),{re:_r,t:yr}=G(),He=Pe(),Ge=ee(),Or=A(),$r=N()});var ce=g((sa,br)=>{var tn=N(),rn=(r,e,t)=>{try{e=new tn(e,t)}catch{return!1}return e.test(r)};br.exports=rn});var Ir=g((na,Rr)=>{var sn=N(),nn=(r,e)=>new sn(r,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));Rr.exports=nn});var Sr=g((oa,wr)=>{var on=A(),an=N(),ln=(r,e,t)=>{let i=null,s=null,n=null;try{n=new an(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===-1)&&(i=o,s=new on(i,t))}),i};wr.exports=ln});var xr=g((aa,Cr)=>{var cn=A(),un=N(),hn=(r,e,t)=>{let i=null,s=null,n=null;try{n=new un(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===1)&&(i=o,s=new cn(i,t))}),i};Cr.exports=hn});var qr=g((la,Lr)=>{var Ve=A(),fn=N(),Nr=ie(),pn=(r,e)=>{r=new fn(r,e);let t=new Ve("0.0.0");if(r.test(t)||(t=new Ve("0.0.0-0"),r.test(t)))return t;t=null;for(let i=0;i<r.set.length;++i){let s=r.set[i],n=null;s.forEach(o=>{let l=new Ve(o.semver.version);switch(o.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!n||Nr(l,n))&&(n=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),n&&(!t||Nr(t,n))&&(t=n)}return t&&r.test(t)?t:null};Lr.exports=pn});var Pr=g((ca,Tr)=>{var mn=N(),dn=(r,e)=>{try{return new mn(r,e).range||"*"}catch{return null}};Tr.exports=dn});var be=g((ua,Hr)=>{var gn=A(),jr=oe(),{ANY:En}=jr,vn=N(),_n=ce(),Dr=ie(),Fr=ve(),yn=ye(),On=_e(),$n=(r,e,t,i)=>{r=new gn(r,i),e=new vn(e,i);let s,n,o,l,c;switch(t){case">":s=Dr,n=yn,o=Fr,l=">",c=">=";break;case"<":s=Fr,n=On,o=Dr,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_n(r,e,i))return!1;for(let a=0;a<e.set.length;++a){let u=e.set[a],m=null,p=null;if(u.forEach(d=>{d.semver===En&&(d=new jr(">=0.0.0")),m=m||d,p=p||d,s(d.semver,m.semver,i)?m=d:o(d.semver,p.semver,i)&&(p=d)}),m.operator===l||m.operator===c||(!p.operator||p.operator===l)&&n(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0};Hr.exports=$n});var Vr=g((ha,Gr)=>{var An=be(),bn=(r,e,t)=>An(r,e,">",t);Gr.exports=bn});var Ur=g((fa,Mr)=>{var Rn=be(),In=(r,e,t)=>Rn(r,e,"<",t);Mr.exports=In});var Wr=g((pa,Br)=>{var Xr=N(),wn=(r,e,t)=>(r=new Xr(r,t),e=new Xr(e,t),r.intersects(e));Br.exports=wn});var kr=g((ma,zr)=>{var Sn=ce(),Cn=x();zr.exports=(r,e,t)=>{let i=[],s=null,n=null,o=r.sort((u,m)=>Cn(u,m,t));for(let u of o)Sn(u,e,t)?(n=u,s||(s=u)):(n&&i.push([s,n]),n=null,s=null);s&&i.push([s,null]);let l=[];for(let[u,m]of i)u===m?l.push(u):!m&&u===o[0]?l.push("*"):m?u===o[0]?l.push(`<=${m}`):l.push(`${u} - ${m}`):l.push(`>=${u}`);let c=l.join(" || "),a=typeof e.raw=="string"?e.raw:String(e);return c.length<a.length?c:e}});var Qr=g((da,Kr)=>{var Yr=N(),Re=oe(),{ANY:Me}=Re,ue=ce(),Ue=x(),xn=(r,e,t={})=>{if(r===e)return!0;r=new Yr(r,t),e=new Yr(e,t);let i=!1;e:for(let s of r.set){for(let n of e.set){let o=Nn(s,n,t);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Nn=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Me){if(e.length===1&&e[0].semver===Me)return!0;t.includePrerelease?r=[new Re(">=0.0.0-0")]:r=[new Re(">=0.0.0")]}if(e.length===1&&e[0].semver===Me){if(t.includePrerelease)return!0;e=[new Re(">=0.0.0")]}let i=new Set,s,n;for(let d of r)d.operator===">"||d.operator===">="?s=Jr(s,d,t):d.operator==="<"||d.operator==="<="?n=Zr(n,d,t):i.add(d.semver);if(i.size>1)return null;let o;if(s&&n){if(o=Ue(s.semver,n.semver,t),o>0)return null;if(o===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let d of i){if(s&&!ue(d,String(s),t)||n&&!ue(d,String(n),t))return null;for(let Oi of e)if(!ue(d,String(Oi),t))return!1;return!0}let l,c,a,u,m=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;m&&m.prerelease.length===1&&n.operator==="<"&&m.prerelease[0]===0&&(m=!1);for(let d of e){if(u=u||d.operator===">"||d.operator===">=",a=a||d.operator==="<"||d.operator==="<=",s){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(l=Jr(s,d,t),l===d&&l!==s)return!1}else if(s.operator===">="&&!ue(s.semver,String(d),t))return!1}if(n){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator==="<"||d.operator==="<="){if(c=Zr(n,d,t),c===d&&c!==n)return!1}else if(n.operator==="<="&&!ue(n.semver,String(d),t))return!1}if(!d.operator&&(n||s)&&o!==0)return!1}return!(s&&a&&!n&&o!==0||n&&u&&!s&&o!==0||p||m)},Jr=(r,e,t)=>{if(!r)return e;let i=Ue(r.semver,e.semver,t);return i>0?r:i<0||e.operator===">"&&r.operator===">="?e:r},Zr=(r,e,t)=>{if(!r)return e;let i=Ue(r.semver,e.semver,t);return i<0?r:i>0||e.operator==="<"&&r.operator==="<="?e:r};Kr.exports=xn});var ti=g((ga,ei)=>{var Xe=G();ei.exports={re:Xe.re,src:Xe.src,tokens:Xe.t,SEMVER_SPEC_VERSION:Q().SEMVER_SPEC_VERSION,SemVer:A(),compareIdentifiers:pe().compareIdentifiers,rcompareIdentifiers:pe().rcompareIdentifiers,parse:V(),valid:Ot(),clean:At(),inc:Rt(),diff:Nt(),major:qt(),minor:Pt(),patch:Ft(),prerelease:Ht(),compare:x(),rcompare:Vt(),compareLoose:Ut(),compareBuild:Ee(),sort:zt(),rsort:Yt(),gt:ie(),lt:ve(),eq:ge(),neq:Te(),gte:_e(),lte:ye(),cmp:Pe(),coerce:ir(),Comparator:oe(),Range:N(),satisfies:ce(),toComparators:Ir(),maxSatisfying:Sr(),minSatisfying:xr(),minVersion:qr(),validRange:Pr(),outside:be(),gtr:Vr(),ltr:Ur(),intersects:Wr(),simplifyRange:kr(),subset:Qr()}});var Ie=g(S=>{"use strict";var Ln=S&&S.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,s)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),qn=S&&S.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Tn=S&&S.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Ln(e,r,t);return qn(e,r),e},ri=S&&S.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(S,"__esModule",{value:!0});S.getCoreVersion=void 0;var ii=ri(require("path")),si=ri(require("fs")),Be=Tn(require("@serverless-devs/core")),Pn=ti(),ni=ii.default.join(Be.getRootHome(),"cache","core"),We=ii.default.join(ni,"package.json");function Dn(){if(si.default.existsSync(We)){var r=require("@serverless-devs/core/package.json").version,e=oi();return Pn.gt(e,r)?require(ni):Be}return Be}function oi(){return si.default.existsSync(We)?require(We).version:void 0}S.getCoreVersion=oi;S.default=Dn()});var hi=g(w=>{"use strict";var Fn=w&&w.__awaiter||function(r,e,t,i){function s(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(u){try{a(i.next(u))}catch(m){o(m)}}function c(u){try{a(i.throw(u))}catch(m){o(m)}}function a(u){u.done?n(u.value):s(u.value).then(l,c)}a((i=i.apply(r,e||[])).next())})},jn=w&&w.__generator||function(r,e){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,s,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(a){return function(u){return c([a,u])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(r,t)}catch(u){a=[6,u],s=0}finally{i=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},ai=w&&w.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(w,"__esModule",{value:!0});w.handlerProfileFile=w.getConfig=w.setConfig=void 0;var li=ai(require("path")),ke=ai(Ie()),q=ke.default.fse,we=ke.default.jsyaml,ze=ke.default.getRootHome;function Hn(r){var e=ui();q.writeFileSync(e,we.dump(r))}function ci(){var r=ui();if(!q.existsSync(r))return{};try{var e=we.load(q.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function ui(){var r=li.default.join(ze(),"set-config.yml");return q.existsSync(r)||q.createFileSync(r),r}function Gn(r,e){var t=ci();t[r]=e,Hn(t)}w.setConfig=Gn;function Vn(r,e){var t=ci();return t[r]||e}w.getConfig=Vn;function Mn(r){return Fn(this,void 0,void 0,function(){var e,t,i,s,n,o,l;return jn(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=li.default.join(ze(),e),i=q.existsSync(t),s={},i)return[3,5];n=ze(),c.label=1;case 1:return c.trys.push([1,2,,4]),q.statSync(n),[3,4];case 2:return o=c.sent(),[4,q.mkdirSync(n)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=we.load(q.readFileSync(t,"utf8"))||{}}catch(a){throw a}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,q.writeFileSync(t,we.dump(s))]);case 7:return c.sent(),[2,s]}})})}w.handlerProfileFile=Mn});var fi=g((_a,Un)=>{Un.exports={name:"@serverless-devs/s",version:"2.0.101",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"latest"}}});var _i=g(E=>{"use strict";var Xn=E&&E.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,s)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Bn=E&&E.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Wn=E&&E.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Xn(e,r,t);return Bn(e,r),e},k=E&&E.__awaiter||function(r,e,t,i){function s(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(u){try{a(i.next(u))}catch(m){o(m)}}function c(u){try{a(i.throw(u))}catch(m){o(m)}}function a(u){u.done?n(u.value):s(u.value).then(l,c)}a((i=i.apply(r,e||[])).next())})},Y=E&&E.__generator||function(r,e){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,s,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(a){return function(u){return c([a,u])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(r,t)}catch(u){a=[6,u],s=0}finally{i=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Je=E&&E.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(E,"__esModule",{value:!0});E.specifyServiceHelp=E.getTempCommandStr=E.emoji=E.mark=E.replaceTemplate=E.replaceFun=E.getLang=E.printn=E.getFolderSize=E.getVersion=E.getPid=E.aiRequest=E.getCredentialWithAll=E.getCredentialWithExisted=E.getProcessArgv=E.bgRed=E.yellow=E.red=void 0;var zn=Je(require("path")),he=Je(require("fs")),kn=Je(require("os")),R=Wn(Ie()),Yn=hi(),pi=fi(),J=R.default.colors,Jn=R.default.got,Zn=R.default.getMAC,Kn=R.default.isDocker,Qn=R.default.isCiCdEnv,F=R.default.lodash,mi=R.default.publishHelp,eo=F.get,to=F.trim,ro=F.assign,io=F.filter,di=F.includes,gi=F.omit,so=F.isPlainObject,no=F.isEmpty,oo=J.underline,ao=J.bold;E.red=J.hex("#fd5750");E.yellow=J.hex("#F3F99D");E.bgRed=J.hex("#000").bgHex("#fd5750");var lo=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=R.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),ro({},t,{noHelpArgv:process.argv.slice(0,2).concat(io(t._argsObj,function(i){return!di(["-h","--help"],i)}))})}catch{return{}}};E.getProcessArgv=lo;var co=function(r){return k(void 0,void 0,void 0,function(){var e,t;return Y(this,function(i){switch(i.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:return e=i.sent(),di(e,r)?[4,R.default.getCredential(r)]:[3,3];case 2:return t=i.sent(),[2,gi(t,"Alias")];case 3:return[2]}})})};E.getCredentialWithExisted=co;var uo=function(){return k(void 0,void 0,void 0,function(){var r,e,t,i,s,n;return Y(this,function(o){switch(o.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:if(r=o.sent(),!(r.length>0))return[3,6];e={},t=0,i=r,o.label=2;case 2:return t<i.length?(s=i[t],[4,R.default.getCredential(s)]):[3,5];case 3:n=o.sent(),e[n.Alias]=gi(n,"Alias"),o.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};E.getCredentialWithAll=uo;var ho=function(r,e){return e===void 0&&(e="unknow"),k(void 0,void 0,void 0,function(){var t,i,s,n;return Y(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=(0,Yn.getConfig)("analysis"),t!=="enable"?[2]:Kn()||Qn()?[2]:[4,Jn("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return i=o.sent(),s=eo(i.body,"shorturl"),s&&console.log(`AI Tips:
|
|
15
|
+
`)}function Ze(r,e,t){return r.match(/[\n]\s+/)||e<40?r:tt(r,e,t)}function Ke(r,e){r._hasHelpOption&&e.find(i=>i===r._helpLongFlag||i===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Qe(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function rt(r){let e,t,i=r.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(e=i.shift()),t=i.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function et(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?t=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=n[1],/^\d+$/.test(n[3])?s=n[3]:i=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=n[1],i=n[3],s=n[4]),t&&s!=="0"?`${t}=${i}:${parseInt(s)+1}`:e})}});var Q=g((Ro,nt)=>{var Ai="2.0.0",Ri=Number.MAX_SAFE_INTEGER||9007199254740991,Ii=16;nt.exports={SEMVER_SPEC_VERSION:Ai,MAX_LENGTH:256,MAX_SAFE_INTEGER:Ri,MAX_SAFE_COMPONENT_LENGTH:Ii}});var ee=g((Io,ot)=>{var wi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ot.exports=wi});var G=g((D,at)=>{var{MAX_SAFE_COMPONENT_LENGTH:qe}=Q(),Si=ee();D=at.exports={};var Ci=D.re=[],h=D.src=[],f=D.t={},xi=0,v=(r,e,t)=>{let i=xi++;Si(i,e),f[r]=i,h[i]=e,Ci[i]=new RegExp(e,t?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*");v("NUMERICIDENTIFIERLOOSE","[0-9]+");v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");v("MAINVERSION",`(${h[f.NUMERICIDENTIFIER]})\\.(${h[f.NUMERICIDENTIFIER]})\\.(${h[f.NUMERICIDENTIFIER]})`);v("MAINVERSIONLOOSE",`(${h[f.NUMERICIDENTIFIERLOOSE]})\\.(${h[f.NUMERICIDENTIFIERLOOSE]})\\.(${h[f.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASEIDENTIFIER",`(?:${h[f.NUMERICIDENTIFIER]}|${h[f.NONNUMERICIDENTIFIER]})`);v("PRERELEASEIDENTIFIERLOOSE",`(?:${h[f.NUMERICIDENTIFIERLOOSE]}|${h[f.NONNUMERICIDENTIFIER]})`);v("PRERELEASE",`(?:-(${h[f.PRERELEASEIDENTIFIER]}(?:\\.${h[f.PRERELEASEIDENTIFIER]})*))`);v("PRERELEASELOOSE",`(?:-?(${h[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[f.PRERELEASEIDENTIFIERLOOSE]})*))`);v("BUILDIDENTIFIER","[0-9A-Za-z-]+");v("BUILD",`(?:\\+(${h[f.BUILDIDENTIFIER]}(?:\\.${h[f.BUILDIDENTIFIER]})*))`);v("FULLPLAIN",`v?${h[f.MAINVERSION]}${h[f.PRERELEASE]}?${h[f.BUILD]}?`);v("FULL",`^${h[f.FULLPLAIN]}$`);v("LOOSEPLAIN",`[v=\\s]*${h[f.MAINVERSIONLOOSE]}${h[f.PRERELEASELOOSE]}?${h[f.BUILD]}?`);v("LOOSE",`^${h[f.LOOSEPLAIN]}$`);v("GTLT","((?:<|>)?=?)");v("XRANGEIDENTIFIERLOOSE",`${h[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);v("XRANGEIDENTIFIER",`${h[f.NUMERICIDENTIFIER]}|x|X|\\*`);v("XRANGEPLAIN",`[v=\\s]*(${h[f.XRANGEIDENTIFIER]})(?:\\.(${h[f.XRANGEIDENTIFIER]})(?:\\.(${h[f.XRANGEIDENTIFIER]})(?:${h[f.PRERELEASE]})?${h[f.BUILD]}?)?)?`);v("XRANGEPLAINLOOSE",`[v=\\s]*(${h[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[f.XRANGEIDENTIFIERLOOSE]})(?:${h[f.PRERELEASELOOSE]})?${h[f.BUILD]}?)?)?`);v("XRANGE",`^${h[f.GTLT]}\\s*${h[f.XRANGEPLAIN]}$`);v("XRANGELOOSE",`^${h[f.GTLT]}\\s*${h[f.XRANGEPLAINLOOSE]}$`);v("COERCE",`(^|[^\\d])(\\d{1,${qe}})(?:\\.(\\d{1,${qe}}))?(?:\\.(\\d{1,${qe}}))?(?:$|[^\\d])`);v("COERCERTL",h[f.COERCE],!0);v("LONETILDE","(?:~>?)");v("TILDETRIM",`(\\s*)${h[f.LONETILDE]}\\s+`,!0);D.tildeTrimReplace="$1~";v("TILDE",`^${h[f.LONETILDE]}${h[f.XRANGEPLAIN]}$`);v("TILDELOOSE",`^${h[f.LONETILDE]}${h[f.XRANGEPLAINLOOSE]}$`);v("LONECARET","(?:\\^)");v("CARETTRIM",`(\\s*)${h[f.LONECARET]}\\s+`,!0);D.caretTrimReplace="$1^";v("CARET",`^${h[f.LONECARET]}${h[f.XRANGEPLAIN]}$`);v("CARETLOOSE",`^${h[f.LONECARET]}${h[f.XRANGEPLAINLOOSE]}$`);v("COMPARATORLOOSE",`^${h[f.GTLT]}\\s*(${h[f.LOOSEPLAIN]})$|^$`);v("COMPARATOR",`^${h[f.GTLT]}\\s*(${h[f.FULLPLAIN]})$|^$`);v("COMPARATORTRIM",`(\\s*)${h[f.GTLT]}\\s*(${h[f.LOOSEPLAIN]}|${h[f.XRANGEPLAIN]})`,!0);D.comparatorTrimReplace="$1$2$3";v("HYPHENRANGE",`^\\s*(${h[f.XRANGEPLAIN]})\\s+-\\s+(${h[f.XRANGEPLAIN]})\\s*$`);v("HYPHENRANGELOOSE",`^\\s*(${h[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${h[f.XRANGEPLAINLOOSE]})\\s*$`);v("STAR","(<|>)?=?\\s*\\*");v("GTE0","^\\s*>=\\s*0.0.0\\s*$");v("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var te=g((wo,lt)=>{var Ni=["includePrerelease","loose","rtl"],Li=r=>r?typeof r!="object"?{loose:!0}:Ni.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};lt.exports=Li});var pe=g((So,ht)=>{var ct=/^[0-9]+$/,ut=(r,e)=>{let t=ct.test(r),i=ct.test(e);return t&&i&&(r=+r,e=+e),r===e?0:t&&!i?-1:i&&!t?1:r<e?-1:1},qi=(r,e)=>ut(e,r);ht.exports={compareIdentifiers:ut,rcompareIdentifiers:qi}});var b=g((Co,dt)=>{var me=ee(),{MAX_LENGTH:ft,MAX_SAFE_INTEGER:de}=Q(),{re:pt,t:mt}=G(),Ti=te(),{compareIdentifiers:re}=pe(),C=class{constructor(e,t){if(t=Ti(t),e instanceof C){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>ft)throw new TypeError(`version is longer than ${ft} characters`);me("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?pt[mt.LOOSE]:pt[mt.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>de||this.major<0)throw new TypeError("Invalid major version");if(this.minor>de||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>de||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&n<de)return n}return s}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(me("SemVer.compare",this.version,this.options,e),!(e instanceof C)){if(typeof e=="string"&&e===this.version)return 0;e=new C(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof C||(e=new C(e,this.options)),re(this.major,e.major)||re(this.minor,e.minor)||re(this.patch,e.patch)}comparePre(e){if(e instanceof C||(e=new C(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let i=this.prerelease[t],s=e.prerelease[t];if(me("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return re(i,s)}while(++t)}compareBuild(e){e instanceof C||(e=new C(e,this.options));let t=0;do{let i=this.build[t],s=e.build[t];if(me("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return re(i,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};dt.exports=C});var V=g((xo,_t)=>{var{MAX_LENGTH:Pi}=Q(),{re:gt,t:Et}=G(),vt=b(),Di=te(),Fi=(r,e)=>{if(e=Di(e),r instanceof vt)return r;if(typeof r!="string"||r.length>Pi||!(e.loose?gt[Et.LOOSE]:gt[Et.FULL]).test(r))return null;try{return new vt(r,e)}catch{return null}};_t.exports=Fi});var Ot=g((No,yt)=>{var ji=V(),Hi=(r,e)=>{let t=ji(r,e);return t?t.version:null};yt.exports=Hi});var bt=g((Lo,$t)=>{var Gi=V(),Vi=(r,e)=>{let t=Gi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};$t.exports=Vi});var Rt=g((qo,At)=>{var Mi=b(),Ui=(r,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new Mi(r,t).inc(e,i).version}catch{return null}};At.exports=Ui});var x=g((To,wt)=>{var It=b(),Xi=(r,e,t)=>new It(r,t).compare(new It(e,t));wt.exports=Xi});var ge=g((Po,St)=>{var Bi=x(),Wi=(r,e,t)=>Bi(r,e,t)===0;St.exports=Wi});var Nt=g((Do,xt)=>{var Ct=V(),zi=ge(),ki=(r,e)=>{if(zi(r,e))return null;{let t=Ct(r),i=Ct(e),s=t.prerelease.length||i.prerelease.length,n=s?"pre":"",o=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==i[l])return n+l;return o}};xt.exports=ki});var qt=g((Fo,Lt)=>{var Yi=b(),Ji=(r,e)=>new Yi(r,e).major;Lt.exports=Ji});var Pt=g((jo,Tt)=>{var Zi=b(),Ki=(r,e)=>new Zi(r,e).minor;Tt.exports=Ki});var Ft=g((Ho,Dt)=>{var Qi=b(),es=(r,e)=>new Qi(r,e).patch;Dt.exports=es});var Ht=g((Go,jt)=>{var ts=V(),rs=(r,e)=>{let t=ts(r,e);return t&&t.prerelease.length?t.prerelease:null};jt.exports=rs});var Vt=g((Vo,Gt)=>{var is=x(),ss=(r,e,t)=>is(e,r,t);Gt.exports=ss});var Ut=g((Mo,Mt)=>{var ns=x(),os=(r,e)=>ns(r,e,!0);Mt.exports=os});var Ee=g((Uo,Bt)=>{var Xt=b(),as=(r,e,t)=>{let i=new Xt(r,t),s=new Xt(e,t);return i.compare(s)||i.compareBuild(s)};Bt.exports=as});var zt=g((Xo,Wt)=>{var ls=Ee(),cs=(r,e)=>r.sort((t,i)=>ls(t,i,e));Wt.exports=cs});var Yt=g((Bo,kt)=>{var us=Ee(),hs=(r,e)=>r.sort((t,i)=>us(i,t,e));kt.exports=hs});var ie=g((Wo,Jt)=>{var fs=x(),ps=(r,e,t)=>fs(r,e,t)>0;Jt.exports=ps});var ve=g((zo,Zt)=>{var ms=x(),ds=(r,e,t)=>ms(r,e,t)<0;Zt.exports=ds});var Te=g((ko,Kt)=>{var gs=x(),Es=(r,e,t)=>gs(r,e,t)!==0;Kt.exports=Es});var _e=g((Yo,Qt)=>{var vs=x(),_s=(r,e,t)=>vs(r,e,t)>=0;Qt.exports=_s});var ye=g((Jo,er)=>{var ys=x(),Os=(r,e,t)=>ys(r,e,t)<=0;er.exports=Os});var Pe=g((Zo,tr)=>{var $s=ge(),bs=Te(),As=ie(),Rs=_e(),Is=ve(),ws=ye(),Ss=(r,e,t,i)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return $s(r,t,i);case"!=":return bs(r,t,i);case">":return As(r,t,i);case">=":return Rs(r,t,i);case"<":return Is(r,t,i);case"<=":return ws(r,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};tr.exports=Ss});var ir=g((Ko,rr)=>{var Cs=b(),xs=V(),{re:Oe,t:$e}=G(),Ns=(r,e)=>{if(r instanceof Cs)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Oe[$e.COERCE]);else{let i;for(;(i=Oe[$e.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),Oe[$e.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Oe[$e.COERCERTL].lastIndex=-1}return t===null?null:xs(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};rr.exports=Ns});var nr=g((Qo,sr)=>{"use strict";sr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ar=g((ea,or)=>{"use strict";or.exports=_;_.Node=M;_.create=_;function _(r){var e=this;if(e instanceof _||(e=new _),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,i=arguments.length;t<i;t++)e.push(arguments[t]);return e}_.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};_.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};_.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};_.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)qs(this,arguments[r]);return this.length};_.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)Ts(this,arguments[r]);return this.length};_.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};_.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};_.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,i=0;t!==null;i++)r.call(e,t.value,i,this),t=t.next};_.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,i=this.length-1;t!==null;i--)r.call(e,t.value,i,this),t=t.prev};_.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};_.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};_.prototype.map=function(r,e){e=e||this;for(var t=new _,i=this.head;i!==null;)t.push(r.call(e,i.value,this)),i=i.next;return t};_.prototype.mapReverse=function(r,e){e=e||this;for(var t=new _,i=this.tail;i!==null;)t.push(r.call(e,i.value,this)),i=i.prev;return t};_.prototype.reduce=function(r,e){var t,i=this.head;if(arguments.length>1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)t=r(t,i.value,s),i=i.next;return t};_.prototype.reduceReverse=function(r,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;i!==null;s--)t=r(t,i.value,s),i=i.prev;return t};_.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};_.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};_.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new _;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<r;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)t.push(s.value);return t};_.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new _;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>r;i--,s=s.prev)t.push(s.value);return t};_.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,s=this.head;s!==null&&i<r;i++)s=s.next;for(var n=[],i=0;s&&i<e;i++)n.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<t.length;i++)s=Ls(this,s,t[i]);return n};_.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var i=t.prev;t.prev=t.next,t.next=i}return this.head=e,this.tail=r,this};function Ls(r,e,t){var i=e===r.head?new M(t,null,e,r):new M(t,e,e.next,r);return i.next===null&&(r.tail=i),i.prev===null&&(r.head=i),r.length++,i}function qs(r,e){r.tail=new M(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function Ts(r,e){r.head=new M(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function M(r,e,t,i){if(!(this instanceof M))return new M(r,e,t,i);this.list=i,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{nr()(_)}catch{}});var mr=g((ta,pr)=>{"use strict";var Ps=ar(),U=Symbol("max"),P=Symbol("length"),B=Symbol("lengthCalculator"),ne=Symbol("allowStale"),X=Symbol("maxAge"),T=Symbol("dispose"),lr=Symbol("noDisposeOnSet"),O=Symbol("lruList"),L=Symbol("cache"),ur=Symbol("updateAgeOnGet"),De=()=>1,hr=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[U]=e.max||1/0,i=e.length||De;if(this[B]=typeof i!="function"?De:i,this[ne]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[X]=e.maxAge||0,this[T]=e.dispose,this[lr]=e.noDisposeOnSet||!1,this[ur]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[U]=e||1/0,se(this)}get max(){return this[U]}set allowStale(e){this[ne]=!!e}get allowStale(){return this[ne]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[X]=e,se(this)}get maxAge(){return this[X]}set lengthCalculator(e){typeof e!="function"&&(e=De),e!==this[B]&&(this[B]=e,this[P]=0,this[O].forEach(t=>{t.length=this[B](t.value,t.key),this[P]+=t.length})),se(this)}get lengthCalculator(){return this[B]}get length(){return this[P]}get itemCount(){return this[O].length}rforEach(e,t){t=t||this;for(let i=this[O].tail;i!==null;){let s=i.prev;cr(this,e,i,t),i=s}}forEach(e,t){t=t||this;for(let i=this[O].head;i!==null;){let s=i.next;cr(this,e,i,t),i=s}}keys(){return this[O].toArray().map(e=>e.key)}values(){return this[O].toArray().map(e=>e.value)}reset(){this[T]&&this[O]&&this[O].length&&this[O].forEach(e=>this[T](e.key,e.value)),this[L]=new Map,this[O]=new Ps,this[P]=0}dump(){return this[O].map(e=>be(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[O]}set(e,t,i){if(i=i||this[X],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let s=i?Date.now():0,n=this[B](t,e);if(this[L].has(e)){if(n>this[U])return W(this,this[L].get(e)),!1;let c=this[L].get(e).value;return this[T]&&(this[lr]||this[T](e,c.value)),c.now=s,c.maxAge=i,c.value=t,this[P]+=n-c.length,c.length=n,this.get(e),se(this),!0}let o=new fr(e,t,n,s,i);return o.length>this[U]?(this[T]&&this[T](e,t),!1):(this[P]+=o.length,this[O].unshift(o),this[L].set(e,this[O].head),se(this),!0)}has(e){if(!this[L].has(e))return!1;let t=this[L].get(e).value;return!be(this,t)}get(e){return Fe(this,e,!0)}peek(e){return Fe(this,e,!1)}pop(){let e=this[O].tail;return e?(W(this,e),e.value):null}del(e){W(this,this[L].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let s=e[i],n=s.e||0;if(n===0)this.set(s.k,s.v);else{let o=n-t;o>0&&this.set(s.k,s.v,o)}}}prune(){this[L].forEach((e,t)=>Fe(this,t,!1))}},Fe=(r,e,t)=>{let i=r[L].get(e);if(i){let s=i.value;if(be(r,s)){if(W(r,i),!r[ne])return}else t&&(r[ur]&&(i.value.now=Date.now()),r[O].unshiftNode(i));return s.value}},be=(r,e)=>{if(!e||!e.maxAge&&!r[X])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[X]&&t>r[X]},se=r=>{if(r[P]>r[U])for(let e=r[O].tail;r[P]>r[U]&&e!==null;){let t=e.prev;W(r,e),e=t}},W=(r,e)=>{if(e){let t=e.value;r[T]&&r[T](t.key,t.value),r[P]-=t.length,r[L].delete(t.key),r[O].removeNode(e)}},fr=class{constructor(e,t,i,s,n){this.key=e,this.value=t,this.length=i,this.now=s,this.maxAge=n||0}},cr=(r,e,t,i)=>{let s=t.value;be(r,s)&&(W(r,t),r[ne]||(s=void 0)),s&&e.call(i,s.value,s.key,r)};pr.exports=hr});var N=g((ra,vr)=>{var z=class{constructor(e,t){if(t=Fs(t),e instanceof z)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new z(e.raw,t);if(e instanceof je)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(s=>!gr(s[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Ms(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=dr.get(i);if(s)return s;let n=this.options.loose,o=n?A[$.HYPHENRANGELOOSE]:A[$.HYPHENRANGE];e=e.replace(o,Ks(this.options.includePrerelease)),y("hyphen replace",e),e=e.replace(A[$.COMPARATORTRIM],Hs),y("comparator trim",e,A[$.COMPARATORTRIM]),e=e.replace(A[$.TILDETRIM],Gs),e=e.replace(A[$.CARETTRIM],Vs),e=e.split(/\s+/).join(" ");let l=n?A[$.COMPARATORLOOSE]:A[$.COMPARATOR],c=e.split(" ").map(p=>Us(p,this.options)).join(" ").split(/\s+/).map(p=>Zs(p,this.options)).filter(this.options.loose?p=>!!p.match(l):()=>!0).map(p=>new je(p,this.options)),a=c.length,u=new Map;for(let p of c){if(gr(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let m=[...u.values()];return dr.set(i,m),m}intersects(e,t){if(!(e instanceof z))throw new TypeError("a Range is required");return this.set.some(i=>Er(i,t)&&e.set.some(s=>Er(s,t)&&i.every(n=>s.every(o=>n.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new js(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Qs(this.set[t],e,this.options))return!0;return!1}};vr.exports=z;var Ds=mr(),dr=new Ds({max:1e3}),Fs=te(),je=oe(),y=ee(),js=b(),{re:A,t:$,comparatorTrimReplace:Hs,tildeTrimReplace:Gs,caretTrimReplace:Vs}=G(),gr=r=>r.value==="<0.0.0-0",Ms=r=>r.value==="",Er=(r,e)=>{let t=!0,i=r.slice(),s=i.pop();for(;t&&i.length;)t=i.every(n=>s.intersects(n,e)),s=i.pop();return t},Us=(r,e)=>(y("comp",r,e),r=Ws(r,e),y("caret",r),r=Xs(r,e),y("tildes",r),r=ks(r,e),y("xrange",r),r=Js(r,e),y("stars",r),r),I=r=>!r||r.toLowerCase()==="x"||r==="*",Xs=(r,e)=>r.trim().split(/\s+/).map(t=>Bs(t,e)).join(" "),Bs=(r,e)=>{let t=e.loose?A[$.TILDELOOSE]:A[$.TILDE];return r.replace(t,(i,s,n,o,l)=>{y("tilde",r,i,s,n,o,l);let c;return I(s)?c="":I(n)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:I(o)?c=`>=${s}.${n}.0 <${s}.${+n+1}.0-0`:l?(y("replaceTilde pr",l),c=`>=${s}.${n}.${o}-${l} <${s}.${+n+1}.0-0`):c=`>=${s}.${n}.${o} <${s}.${+n+1}.0-0`,y("tilde return",c),c})},Ws=(r,e)=>r.trim().split(/\s+/).map(t=>zs(t,e)).join(" "),zs=(r,e)=>{y("caret",r,e);let t=e.loose?A[$.CARETLOOSE]:A[$.CARET],i=e.includePrerelease?"-0":"";return r.replace(t,(s,n,o,l,c)=>{y("caret",r,s,n,o,l,c);let a;return I(n)?a="":I(o)?a=`>=${n}.0.0${i} <${+n+1}.0.0-0`:I(l)?n==="0"?a=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.0${i} <${+n+1}.0.0-0`:c?(y("replaceCaret pr",c),n==="0"?o==="0"?a=`>=${n}.${o}.${l}-${c} <${n}.${o}.${+l+1}-0`:a=`>=${n}.${o}.${l}-${c} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.${l}-${c} <${+n+1}.0.0-0`):(y("no pr"),n==="0"?o==="0"?a=`>=${n}.${o}.${l}${i} <${n}.${o}.${+l+1}-0`:a=`>=${n}.${o}.${l}${i} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.${l} <${+n+1}.0.0-0`),y("caret return",a),a})},ks=(r,e)=>(y("replaceXRanges",r,e),r.split(/\s+/).map(t=>Ys(t,e)).join(" ")),Ys=(r,e)=>{r=r.trim();let t=e.loose?A[$.XRANGELOOSE]:A[$.XRANGE];return r.replace(t,(i,s,n,o,l,c)=>{y("xRange",r,i,s,n,o,l,c);let a=I(n),u=a||I(o),m=u||I(l),p=m;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",a?s===">"||s==="<"?i="<0.0.0-0":i="*":s&&p?(u&&(o=0),l=0,s===">"?(s=">=",u?(n=+n+1,o=0,l=0):(o=+o+1,l=0)):s==="<="&&(s="<",u?n=+n+1:o=+o+1),s==="<"&&(c="-0"),i=`${s+n}.${o}.${l}${c}`):u?i=`>=${n}.0.0${c} <${+n+1}.0.0-0`:m&&(i=`>=${n}.${o}.0${c} <${n}.${+o+1}.0-0`),y("xRange return",i),i})},Js=(r,e)=>(y("replaceStars",r,e),r.trim().replace(A[$.STAR],"")),Zs=(r,e)=>(y("replaceGTE0",r,e),r.trim().replace(A[e.includePrerelease?$.GTE0PRE:$.GTE0],"")),Ks=r=>(e,t,i,s,n,o,l,c,a,u,m,p,d)=>(I(i)?t="":I(s)?t=`>=${i}.0.0${r?"-0":""}`:I(n)?t=`>=${i}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,I(a)?c="":I(u)?c=`<${+a+1}.0.0-0`:I(m)?c=`<${a}.${+u+1}.0-0`:p?c=`<=${a}.${u}.${m}-${p}`:r?c=`<${a}.${u}.${+m+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Qs=(r,e,t)=>{for(let i=0;i<r.length;i++)if(!r[i].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let i=0;i<r.length;i++)if(y(r[i].semver),r[i].semver!==je.ANY&&r[i].semver.prerelease.length>0){let s=r[i].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var oe=g((ia,br)=>{var ae=Symbol("SemVer ANY"),le=class{static get ANY(){return ae}constructor(e,t){if(t=en(t),e instanceof le){if(e.loose===!!t.loose)return e;e=e.value}Ge("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,Ge("comp",this)}parse(e){let t=this.options.loose?_r[yr.COMPARATORLOOSE]:_r[yr.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Or(i[2],this.options.loose):this.semver=ae}toString(){return this.value}test(e){if(Ge("Comparator.test",e,this.options.loose),this.semver===ae||e===ae)return!0;if(typeof e=="string")try{e=new Or(e,this.options)}catch{return!1}return He(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof le))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new $r(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new $r(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),n=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=He(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=He(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||s||n&&o||l||c}};br.exports=le;var en=te(),{re:_r,t:yr}=G(),He=Pe(),Ge=ee(),Or=b(),$r=N()});var ce=g((sa,Ar)=>{var tn=N(),rn=(r,e,t)=>{try{e=new tn(e,t)}catch{return!1}return e.test(r)};Ar.exports=rn});var Ir=g((na,Rr)=>{var sn=N(),nn=(r,e)=>new sn(r,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));Rr.exports=nn});var Sr=g((oa,wr)=>{var on=b(),an=N(),ln=(r,e,t)=>{let i=null,s=null,n=null;try{n=new an(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===-1)&&(i=o,s=new on(i,t))}),i};wr.exports=ln});var xr=g((aa,Cr)=>{var cn=b(),un=N(),hn=(r,e,t)=>{let i=null,s=null,n=null;try{n=new un(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===1)&&(i=o,s=new cn(i,t))}),i};Cr.exports=hn});var qr=g((la,Lr)=>{var Ve=b(),fn=N(),Nr=ie(),pn=(r,e)=>{r=new fn(r,e);let t=new Ve("0.0.0");if(r.test(t)||(t=new Ve("0.0.0-0"),r.test(t)))return t;t=null;for(let i=0;i<r.set.length;++i){let s=r.set[i],n=null;s.forEach(o=>{let l=new Ve(o.semver.version);switch(o.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!n||Nr(l,n))&&(n=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),n&&(!t||Nr(t,n))&&(t=n)}return t&&r.test(t)?t:null};Lr.exports=pn});var Pr=g((ca,Tr)=>{var mn=N(),dn=(r,e)=>{try{return new mn(r,e).range||"*"}catch{return null}};Tr.exports=dn});var Ae=g((ua,Hr)=>{var gn=b(),jr=oe(),{ANY:En}=jr,vn=N(),_n=ce(),Dr=ie(),Fr=ve(),yn=ye(),On=_e(),$n=(r,e,t,i)=>{r=new gn(r,i),e=new vn(e,i);let s,n,o,l,c;switch(t){case">":s=Dr,n=yn,o=Fr,l=">",c=">=";break;case"<":s=Fr,n=On,o=Dr,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_n(r,e,i))return!1;for(let a=0;a<e.set.length;++a){let u=e.set[a],m=null,p=null;if(u.forEach(d=>{d.semver===En&&(d=new jr(">=0.0.0")),m=m||d,p=p||d,s(d.semver,m.semver,i)?m=d:o(d.semver,p.semver,i)&&(p=d)}),m.operator===l||m.operator===c||(!p.operator||p.operator===l)&&n(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0};Hr.exports=$n});var Vr=g((ha,Gr)=>{var bn=Ae(),An=(r,e,t)=>bn(r,e,">",t);Gr.exports=An});var Ur=g((fa,Mr)=>{var Rn=Ae(),In=(r,e,t)=>Rn(r,e,"<",t);Mr.exports=In});var Wr=g((pa,Br)=>{var Xr=N(),wn=(r,e,t)=>(r=new Xr(r,t),e=new Xr(e,t),r.intersects(e));Br.exports=wn});var kr=g((ma,zr)=>{var Sn=ce(),Cn=x();zr.exports=(r,e,t)=>{let i=[],s=null,n=null,o=r.sort((u,m)=>Cn(u,m,t));for(let u of o)Sn(u,e,t)?(n=u,s||(s=u)):(n&&i.push([s,n]),n=null,s=null);s&&i.push([s,null]);let l=[];for(let[u,m]of i)u===m?l.push(u):!m&&u===o[0]?l.push("*"):m?u===o[0]?l.push(`<=${m}`):l.push(`${u} - ${m}`):l.push(`>=${u}`);let c=l.join(" || "),a=typeof e.raw=="string"?e.raw:String(e);return c.length<a.length?c:e}});var Qr=g((da,Kr)=>{var Yr=N(),Re=oe(),{ANY:Me}=Re,ue=ce(),Ue=x(),xn=(r,e,t={})=>{if(r===e)return!0;r=new Yr(r,t),e=new Yr(e,t);let i=!1;e:for(let s of r.set){for(let n of e.set){let o=Nn(s,n,t);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Nn=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Me){if(e.length===1&&e[0].semver===Me)return!0;t.includePrerelease?r=[new Re(">=0.0.0-0")]:r=[new Re(">=0.0.0")]}if(e.length===1&&e[0].semver===Me){if(t.includePrerelease)return!0;e=[new Re(">=0.0.0")]}let i=new Set,s,n;for(let d of r)d.operator===">"||d.operator===">="?s=Jr(s,d,t):d.operator==="<"||d.operator==="<="?n=Zr(n,d,t):i.add(d.semver);if(i.size>1)return null;let o;if(s&&n){if(o=Ue(s.semver,n.semver,t),o>0)return null;if(o===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let d of i){if(s&&!ue(d,String(s),t)||n&&!ue(d,String(n),t))return null;for(let Oi of e)if(!ue(d,String(Oi),t))return!1;return!0}let l,c,a,u,m=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;m&&m.prerelease.length===1&&n.operator==="<"&&m.prerelease[0]===0&&(m=!1);for(let d of e){if(u=u||d.operator===">"||d.operator===">=",a=a||d.operator==="<"||d.operator==="<=",s){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(l=Jr(s,d,t),l===d&&l!==s)return!1}else if(s.operator===">="&&!ue(s.semver,String(d),t))return!1}if(n){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator==="<"||d.operator==="<="){if(c=Zr(n,d,t),c===d&&c!==n)return!1}else if(n.operator==="<="&&!ue(n.semver,String(d),t))return!1}if(!d.operator&&(n||s)&&o!==0)return!1}return!(s&&a&&!n&&o!==0||n&&u&&!s&&o!==0||p||m)},Jr=(r,e,t)=>{if(!r)return e;let i=Ue(r.semver,e.semver,t);return i>0?r:i<0||e.operator===">"&&r.operator===">="?e:r},Zr=(r,e,t)=>{if(!r)return e;let i=Ue(r.semver,e.semver,t);return i<0?r:i>0||e.operator==="<"&&r.operator==="<="?e:r};Kr.exports=xn});var ti=g((ga,ei)=>{var Xe=G();ei.exports={re:Xe.re,src:Xe.src,tokens:Xe.t,SEMVER_SPEC_VERSION:Q().SEMVER_SPEC_VERSION,SemVer:b(),compareIdentifiers:pe().compareIdentifiers,rcompareIdentifiers:pe().rcompareIdentifiers,parse:V(),valid:Ot(),clean:bt(),inc:Rt(),diff:Nt(),major:qt(),minor:Pt(),patch:Ft(),prerelease:Ht(),compare:x(),rcompare:Vt(),compareLoose:Ut(),compareBuild:Ee(),sort:zt(),rsort:Yt(),gt:ie(),lt:ve(),eq:ge(),neq:Te(),gte:_e(),lte:ye(),cmp:Pe(),coerce:ir(),Comparator:oe(),Range:N(),satisfies:ce(),toComparators:Ir(),maxSatisfying:Sr(),minSatisfying:xr(),minVersion:qr(),validRange:Pr(),outside:Ae(),gtr:Vr(),ltr:Ur(),intersects:Wr(),simplifyRange:kr(),subset:Qr()}});var Ie=g(S=>{"use strict";var Ln=S&&S.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,s)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),qn=S&&S.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Tn=S&&S.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Ln(e,r,t);return qn(e,r),e},ri=S&&S.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(S,"__esModule",{value:!0});S.getCoreVersion=void 0;var ii=ri(require("path")),si=ri(require("fs")),Be=Tn(require("@serverless-devs/core")),Pn=ti(),ni=ii.default.join(Be.getRootHome(),"cache","core"),We=ii.default.join(ni,"package.json");function Dn(){if(si.default.existsSync(We)){var r=require("@serverless-devs/core/package.json").version,e=oi();return Pn.gt(e,r)?require(ni):Be}return Be}function oi(){return si.default.existsSync(We)?require(We).version:void 0}S.getCoreVersion=oi;S.default=Dn()});var hi=g(w=>{"use strict";var Fn=w&&w.__awaiter||function(r,e,t,i){function s(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(u){try{a(i.next(u))}catch(m){o(m)}}function c(u){try{a(i.throw(u))}catch(m){o(m)}}function a(u){u.done?n(u.value):s(u.value).then(l,c)}a((i=i.apply(r,e||[])).next())})},jn=w&&w.__generator||function(r,e){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,s,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(a){return function(u){return c([a,u])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(r,t)}catch(u){a=[6,u],s=0}finally{i=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},ai=w&&w.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(w,"__esModule",{value:!0});w.handlerProfileFile=w.getConfig=w.setConfig=void 0;var li=ai(require("path")),ke=ai(Ie()),q=ke.default.fse,we=ke.default.jsyaml,ze=ke.default.getRootHome;function Hn(r){var e=ui();q.writeFileSync(e,we.dump(r))}function ci(){var r=ui();if(!q.existsSync(r))return{};try{var e=we.load(q.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function ui(){var r=li.default.join(ze(),"set-config.yml");return q.existsSync(r)||q.createFileSync(r),r}function Gn(r,e){var t=ci();t[r]=e,Hn(t)}w.setConfig=Gn;function Vn(r,e){var t=ci();return t[r]||e}w.getConfig=Vn;function Mn(r){return Fn(this,void 0,void 0,function(){var e,t,i,s,n,o,l;return jn(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=li.default.join(ze(),e),i=q.existsSync(t),s={},i)return[3,5];n=ze(),c.label=1;case 1:return c.trys.push([1,2,,4]),q.statSync(n),[3,4];case 2:return o=c.sent(),[4,q.mkdirSync(n)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=we.load(q.readFileSync(t,"utf8"))||{}}catch(a){throw a}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,q.writeFileSync(t,we.dump(s))]);case 7:return c.sent(),[2,s]}})})}w.handlerProfileFile=Mn});var fi=g((_a,Un)=>{Un.exports={name:"@serverless-devs/s",version:"2.0.102-beta.1",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var _i=g(E=>{"use strict";var Xn=E&&E.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,s)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Bn=E&&E.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Wn=E&&E.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Xn(e,r,t);return Bn(e,r),e},k=E&&E.__awaiter||function(r,e,t,i){function s(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(u){try{a(i.next(u))}catch(m){o(m)}}function c(u){try{a(i.throw(u))}catch(m){o(m)}}function a(u){u.done?n(u.value):s(u.value).then(l,c)}a((i=i.apply(r,e||[])).next())})},Y=E&&E.__generator||function(r,e){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,s,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(a){return function(u){return c([a,u])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(r,t)}catch(u){a=[6,u],s=0}finally{i=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Je=E&&E.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(E,"__esModule",{value:!0});E.specifyServiceHelp=E.getTempCommandStr=E.emoji=E.mark=E.replaceTemplate=E.replaceFun=E.getLang=E.printn=E.getFolderSize=E.getVersion=E.getPid=E.aiRequest=E.getCredentialWithAll=E.getCredentialWithExisted=E.getProcessArgv=E.bgRed=E.yellow=E.red=void 0;var zn=Je(require("path")),he=Je(require("fs")),kn=Je(require("os")),R=Wn(Ie()),Yn=hi(),pi=fi(),J=R.default.colors,Jn=R.default.got,Zn=R.default.getMAC,Kn=R.default.isDocker,Qn=R.default.isCiCdEnv,F=R.default.lodash,mi=R.default.publishHelp,eo=F.get,to=F.trim,ro=F.assign,io=F.filter,di=F.includes,gi=F.omit,so=F.isPlainObject,no=F.isEmpty,oo=J.underline,ao=J.bold;E.red=J.hex("#fd5750");E.yellow=J.hex("#F3F99D");E.bgRed=J.hex("#000").bgHex("#fd5750");var lo=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=R.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),ro({},t,{noHelpArgv:process.argv.slice(0,2).concat(io(t._argsObj,function(i){return!di(["-h","--help"],i)}))})}catch{return{}}};E.getProcessArgv=lo;var co=function(r){return k(void 0,void 0,void 0,function(){var e,t;return Y(this,function(i){switch(i.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:return e=i.sent(),di(e,r)?[4,R.default.getCredential(r)]:[3,3];case 2:return t=i.sent(),[2,gi(t,"Alias")];case 3:return[2]}})})};E.getCredentialWithExisted=co;var uo=function(){return k(void 0,void 0,void 0,function(){var r,e,t,i,s,n;return Y(this,function(o){switch(o.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:if(r=o.sent(),!(r.length>0))return[3,6];e={},t=0,i=r,o.label=2;case 2:return t<i.length?(s=i[t],[4,R.default.getCredential(s)]):[3,5];case 3:n=o.sent(),e[n.Alias]=gi(n,"Alias"),o.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};E.getCredentialWithAll=uo;var ho=function(r,e){return e===void 0&&(e="unknow"),k(void 0,void 0,void 0,function(){var t,i,s,n;return Y(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=(0,Yn.getConfig)("analysis"),t!=="enable"?[2]:Kn()||Qn()?[2]:[4,Jn("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return i=o.sent(),s=eo(i.body,"shorturl"),s&&console.log(`AI Tips:
|
|
16
16
|
You can try to solve the problem through: `.concat(J.underline(s),`
|
|
17
17
|
`)),[3,3];case 2:return n=o.sent(),[3,3];case 3:return[2]}})})};E.aiRequest=ho;var fo=function(){try{return Zn().replace(/:/g,"")}catch{return"unknown"}};E.getPid=fo;function po(){var r=(0,R.getCoreVersion)(),e=["".concat(pi.name,": ").concat(pi.version),r?"core: ".concat(r):void 0,"s-home: ".concat(R.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return e.filter(function(t){return t}).join(", ")}E.getVersion=po;function mo(r){return k(this,void 0,void 0,function(){function e(s){return k(this,void 0,void 0,function(){var n,o;return Y(this,function(l){switch(l.label){case 0:return n=he.default.lstatSync(s),typeof n!="object"?[2]:(t.set(n.ino,n.size),n.isDirectory()?(o=he.default.readdirSync(s),typeof o!="object"?[2]:[4,Promise.all(o.map(function(c){return e(zn.default.join(s,c))}))]):[3,2]);case 1:l.sent(),l.label=2;case 2:return[2]}})})}var t,i;return Y(this,function(s){switch(s.label){case 0:return t=new Map,[4,e(r)];case 1:return s.sent(),i=Array.from(t.values()).reduce(function(n,o){return n+o},0),[2,i]}})})}E.getFolderSize=mo;function go(r,e){e===void 0&&(e=" ");for(var t="",i=0;i<r;i++)t=t+e;return t}E.printn=go;function Eo(){return"en"}E.getLang=Eo;function Ei(r,e){var t=/\{\{(.*?)\}\}/g,i=r.match(t);if(i)for(var s=0;s<i.length;s++){var n=i[s].replace(/{{|}}/g,""),o=to(n.split("|")[0]);e[o]&&(r=r.replace(i[s],e[o]))}return r}E.replaceFun=Ei;function vo(r,e){r.forEach(function(t){if(he.default.existsSync(t)){var i=he.default.readFileSync(t,"utf-8"),s=Ei(i,e);he.default.writeFileSync(t,s,"utf-8")}})}E.replaceTemplate=vo;function _o(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}E.mark=_o;function Ye(r,e){return kn.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}E.emoji=Ye;function vi(r,e){var t=r.length,i=new Array(e-t).fill(" ");return"".concat(r).concat(i.join("")," : ")}E.getTempCommandStr=vi;function yo(r){return k(this,void 0,void 0,function(){var e,t,i,s,n,l,o,l;return Y(this,function(c){switch(c.label){case 0:return[4,R.default.getYamlContent(r)];case 1:if(e=c.sent(),console.log(`
|
|
18
18
|
`.concat(Ye("\u{1F680}")," ").concat(e.Name,"@").concat(e.Version,": ").concat(e.Description,`
|
|
19
19
|
`)),t=e.Commands,t){i=mi.maxLen(t),s=[],n={};for(l in t)o=t[l],so(o)?s.push(mi.helpInfo(o,oo(ao(l)),i,4)):n[l]=o;if(s.length>0&&console.log(s.join(`
|
|
20
20
|
`)),!no(n)){for(l in n)console.log(" ".concat(vi(l,i)," ").concat(n[l]));console.log("")}console.log(e.HomePage?" ".concat(Ye("\u{1F9ED}")," ").concat(R.default.makeUnderLine("More information: "+e.HomePage)," ")+`
|
|
21
|
-
`:"")}return[2]}})})}E.specifyServiceHelp=yo});var yi=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var Oo=yi(st()),Se=_i(),$o=yi(Ie()),Ce=$o.default.colors,
|
|
21
|
+
`:"")}return[2]}})})}E.specifyServiceHelp=yo});var yi=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var Oo=yi(st()),Se=_i(),$o=yi(Ie()),Ce=$o.default.colors,bo=`Configure venders account, including Alibaba Cloud, Baidu Cloud, Huawei Cloud, Tencent Cloud, etc.
|
|
22
22
|
|
|
23
|
-
`.concat((0,Se.emoji)("\u{1F4D6}")," Document: ").concat(Ce.underline("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/config.md"));Oo.default.name("s config").usage("[commands] [options]").helpOption("-h, --help","Display help for command").command("add","".concat((0,Se.emoji)(Ce.bold("+")))+"Add an account").command("get","".concat((0,Se.emoji)(Ce.bold("\u221A")))+"Get accounts").command("delete","".concat((0,Se.emoji)(Ce.bold("\xD7")))+"Delete an account").description(
|
|
23
|
+
`.concat((0,Se.emoji)("\u{1F4D6}")," Document: ").concat(Ce.underline("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/config.md"));Oo.default.name("s config").usage("[commands] [options]").helpOption("-h, --help","Display help for command").command("add","".concat((0,Se.emoji)(Ce.bold("+")))+"Add an account").command("get","".concat((0,Se.emoji)(Ce.bold("\u221A")))+"Get accounts").command("delete","".concat((0,Se.emoji)(Ce.bold("\xD7")))+"Delete an account").description(bo).addHelpCommand(!1).parse(process.argv);
|