@serverless-devs/s3 0.0.10 → 0.0.11

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/index.js CHANGED
@@ -320,7 +320,7 @@ ${" ".repeat(u)}`))}this._progressContent=`${t.join(`
320
320
  ${zvt("ERROR:")}`),At.write(`
321
321
  ${t}
322
322
  `),r&&At.write(`${gt.gray(r)}
323
- `)}},JO=nEe});var QO=j((ICu,Ahn)=>{Ahn.exports={name:"@serverless-devs/s3",version:"0.0.10",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:"Apache 2.0",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",test:"jest --testTimeout 10000","test:watch":"jest --testTimeout 10000 --watchAll",format:"prettier --write src/ __tests__/**/*.test.ts",watch:"npm run build -- --watch",prebuild:"rm -rf node_modules && npm install",build:"node ./scripts/build.js",prepkg:"npm run build",pkg:"pkg bin/s",prepublishOnly:"npm run build",beta:"npm publish --tag=beta",pub:"npm publish"},main:"./lib/index.js",bin:{s:"bin/s"},engines:{node:">=14.14.0"},devDependencies:{"@serverless-devs/core":"^0.1.66-beta.1","@serverless-devs/credential":"^0.0.2-beta.4","@serverless-devs/engine":"^0.0.6","@serverless-devs/load-application":"^0.0.7","@serverless-devs/load-component":"^0.0.2","@serverless-devs/logger":"^0.0.2-beta.15","@serverless-devs/parse-spec":"^0.0.6","@serverless-devs/registry":"^0.0.3","@serverless-devs/utils":"^0.0.10","@types/fs-extra":"^11.0.3","@types/inquirer":"^9.0.6","@types/jest":"^29.5.6","@types/js-yaml":"^4.0.8","@types/lodash":"^4.14.200","@types/node":"^20.8.9","@types/semver":"^7.5.4",axios:"^1.6.0",boxen:"^7.1.1",chalk:"^5.3.0",commander:"^11.1.0",dotenv:"^16.3.1","dotenv-expand":"^10.0.0",esbuild:"^0.19.5","fs-extra":"^11.1.1","global-agent":"^3.0.0",inquirer:"^9.2.11","inquirer-autocomplete-prompt":"^3.0.1","is-docker":"^3.0.0",jest:"^29.7.0","js-yaml":"^4.1.0","latest-version":"^7.0.0",leven:"^4.0.0",lodash:"^4.17.21",pkg:"^5.8.1",prettier:"^3.0.3",prettyjson:"^1.2.5",rimraf:"^5.0.5",semver:"^7.5.4","semver-diff":"^4.0.0","table-layout":"^3.0.2","ts-jest":"^29.1.1","ts-node":"^10.9.1",typescript:"^5.2.2"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"}}});var Mh,PY,ZO,qb,Hvt,Fhn,Kvt,_hn,Yvt,eT,tT=bt(()=>{Mh=ut(Zr());In();jr();PY=ut(require("path")),ZO=ut(Gu());yn();qb=ut(Jt());Vvt();Hvt=QO(),Fhn=async e=>{let t=PY.default.join((0,Mh.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json");ZO.default.ensureFileSync(t),ZO.default.writeJSONSync(t,[],{spaces:2});let r=1;if((0,qb.isArray)(e))for(let n of e){Kvt(n);let u=(0,qb.get)(n,"exitCode");u&&(r=u)}else{Kvt(e);let n=(0,qb.get)(e,"exitCode");n&&(r=n)}At.write(" "),At.write(Xvt([{key:"Env:",value:`${Hvt.name}: ${Hvt.version}, ${process.platform}-${process.arch} node-${process.version}`},{key:"Logs:",value:gt.underline(PY.default.join((0,Mh.getRootHome)(),"logs",process.env.serverless_devs_traceid))},{key:"Get Help:",value:"DingTalk: 33947367"},{key:"Feedback:",value:gt.cyan.underline("https://github.com/Serverless-Devs/Serverless-Devs/issues")}])),process.exitCode=r},Kvt=e=>{_hn(e),At.write(" ");let t=e;if(t.CODE===Mh.DevsError.CODE){let u=t.prefix?[`${gt.red("\u2716")} ${t.prefix}`,"===================="]:[];u.push(gt.red("Error Message:"),gt.red((0,Mh.isDebugMode)()?t.stack:t.message)),t.tips&&u.push(`
323
+ `)}},JO=nEe});var QO=j((ICu,Ahn)=>{Ahn.exports={name:"@serverless-devs/s3",version:"0.0.11",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:"Apache 2.0",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",test:"jest --testTimeout 10000","test:watch":"jest --testTimeout 10000 --watchAll",format:"prettier --write src/ __tests__/**/*.test.ts",watch:"npm run build -- --watch",prebuild:"rm -rf node_modules && npm install",build:"node ./scripts/build.js",prepkg:"npm run build",pkg:"pkg bin/s",prepublishOnly:"npm run build",beta:"npm publish --tag=beta",pub:"npm publish"},main:"./lib/index.js",bin:{s:"bin/s"},engines:{node:">=14.14.0"},devDependencies:{"@serverless-devs/core":"^0.1.66-beta.1","@serverless-devs/credential":"^0.0.2-beta.4","@serverless-devs/engine":"^0.0.6","@serverless-devs/load-application":"^0.0.7","@serverless-devs/load-component":"^0.0.2","@serverless-devs/logger":"^0.0.2-beta.15","@serverless-devs/parse-spec":"^0.0.6","@serverless-devs/registry":"^0.0.3","@serverless-devs/utils":"^0.0.10","@types/fs-extra":"^11.0.3","@types/inquirer":"^9.0.6","@types/jest":"^29.5.6","@types/js-yaml":"^4.0.8","@types/lodash":"^4.14.200","@types/node":"^20.8.9","@types/semver":"^7.5.4",axios:"^1.6.0",boxen:"^7.1.1",chalk:"^5.3.0",commander:"^11.1.0",dotenv:"^16.3.1","dotenv-expand":"^10.0.0",esbuild:"^0.19.5","fs-extra":"^11.1.1","global-agent":"^3.0.0",inquirer:"^9.2.11","inquirer-autocomplete-prompt":"^3.0.1","is-docker":"^3.0.0",jest:"^29.7.0","js-yaml":"^4.1.0","latest-version":"^7.0.0",leven:"^4.0.0",lodash:"^4.17.21",pkg:"^5.8.1",prettier:"^3.0.3",prettyjson:"^1.2.5",rimraf:"^5.0.5",semver:"^7.5.4","semver-diff":"^4.0.0","table-layout":"^3.0.2","ts-jest":"^29.1.1","ts-node":"^10.9.1",typescript:"^5.2.2"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"}}});var Mh,PY,ZO,qb,Hvt,Fhn,Kvt,_hn,Yvt,eT,tT=bt(()=>{Mh=ut(Zr());In();jr();PY=ut(require("path")),ZO=ut(Gu());yn();qb=ut(Jt());Vvt();Hvt=QO(),Fhn=async e=>{let t=PY.default.join((0,Mh.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json");ZO.default.ensureFileSync(t),ZO.default.writeJSONSync(t,[],{spaces:2});let r=1;if((0,qb.isArray)(e))for(let n of e){Kvt(n);let u=(0,qb.get)(n,"exitCode");u&&(r=u)}else{Kvt(e);let n=(0,qb.get)(e,"exitCode");n&&(r=n)}At.write(" "),At.write(Xvt([{key:"Env:",value:`${Hvt.name}: ${Hvt.version}, ${process.platform}-${process.arch} node-${process.version}`},{key:"Logs:",value:gt.underline(PY.default.join((0,Mh.getRootHome)(),"logs",process.env.serverless_devs_traceid))},{key:"Get Help:",value:"DingTalk: 33947367"},{key:"Feedback:",value:gt.cyan.underline("https://github.com/Serverless-Devs/Serverless-Devs/issues")}])),process.exitCode=r},Kvt=e=>{_hn(e),At.write(" ");let t=e;if(t.CODE===Mh.DevsError.CODE){let u=t.prefix?[`${gt.red("\u2716")} ${t.prefix}`,"===================="]:[];u.push(gt.red("Error Message:"),gt.red((0,Mh.isDebugMode)()?t.stack:t.message)),t.tips&&u.push(`
324
324
  \u{1F37C} Tips`,"====================",gt.yellow(`${t.tips}`)),At.write(u.join(`
325
325
  `)),Yvt(t.stack);return}let r=e,n=[gt.red("Error Message:"),gt.red((0,Mh.isDebugMode)()?r.stack:r.message)];At.write(n.join(`
326
326
  `)),Yvt(r.stack)},_hn=e=>{let t=u=>{let i=(0,qb.get)(u,"data");if(i)return i;let o=u;return o.CODE===Mh.DevsError.CODE?{prefix:o.prefix,message:o.message,exitCode:o.exitCode,tips:o.tips}:{message:o.message}},r=PY.default.join((0,Mh.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json"),n=ZO.default.readJSONSync(r);n.push(t(e)),ZO.default.writeJSONSync(r,n,{spaces:2})},Yvt=e=>{(0,Mh.isDebugMode)()||At.debug(e)},eT=Fhn});var rT=j((UCu,Jvt)=>{var Bhn="2.0.0",whn=Number.MAX_SAFE_INTEGER||9007199254740991,Shn=16,Ohn=256-6,Thn=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Jvt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Shn,MAX_SAFE_BUILD_LENGTH:Ohn,MAX_SAFE_INTEGER:whn,RELEASE_TYPES:Thn,SEMVER_SPEC_VERSION:Bhn,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var nT=j(($Cu,Qvt)=>{var Phn=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Qvt.exports=Phn});var Mb=j((Bm,Zvt)=>{var{MAX_SAFE_COMPONENT_LENGTH:uEe,MAX_SAFE_BUILD_LENGTH:khn,MAX_LENGTH:Rhn}=rT(),Ihn=nT();Bm=Zvt.exports={};var Lhn=Bm.re=[],jhn=Bm.safeRe=[],lr=Bm.src=[],fr=Bm.t={},Nhn=0,iEe="[a-zA-Z0-9-]",qhn=[["\\s",1],["\\d",Rhn],[iEe,khn]],Mhn=e=>{for(let[t,r]of qhn)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},xn=(e,t,r)=>{let n=Mhn(t),u=Nhn++;Ihn(e,u,t),fr[e]=u,lr[u]=t,Lhn[u]=new RegExp(t,r?"g":void 0),jhn[u]=new RegExp(n,r?"g":void 0)};xn("NUMERICIDENTIFIER","0|[1-9]\\d*");xn("NUMERICIDENTIFIERLOOSE","\\d+");xn("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${iEe}*`);xn("MAINVERSION",`(${lr[fr.NUMERICIDENTIFIER]})\\.(${lr[fr.NUMERICIDENTIFIER]})\\.(${lr[fr.NUMERICIDENTIFIER]})`);xn("MAINVERSIONLOOSE",`(${lr[fr.NUMERICIDENTIFIERLOOSE]})\\.(${lr[fr.NUMERICIDENTIFIERLOOSE]})\\.(${lr[fr.NUMERICIDENTIFIERLOOSE]})`);xn("PRERELEASEIDENTIFIER",`(?:${lr[fr.NUMERICIDENTIFIER]}|${lr[fr.NONNUMERICIDENTIFIER]})`);xn("PRERELEASEIDENTIFIERLOOSE",`(?:${lr[fr.NUMERICIDENTIFIERLOOSE]}|${lr[fr.NONNUMERICIDENTIFIER]})`);xn("PRERELEASE",`(?:-(${lr[fr.PRERELEASEIDENTIFIER]}(?:\\.${lr[fr.PRERELEASEIDENTIFIER]})*))`);xn("PRERELEASELOOSE",`(?:-?(${lr[fr.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${lr[fr.PRERELEASEIDENTIFIERLOOSE]})*))`);xn("BUILDIDENTIFIER",`${iEe}+`);xn("BUILD",`(?:\\+(${lr[fr.BUILDIDENTIFIER]}(?:\\.${lr[fr.BUILDIDENTIFIER]})*))`);xn("FULLPLAIN",`v?${lr[fr.MAINVERSION]}${lr[fr.PRERELEASE]}?${lr[fr.BUILD]}?`);xn("FULL",`^${lr[fr.FULLPLAIN]}$`);xn("LOOSEPLAIN",`[v=\\s]*${lr[fr.MAINVERSIONLOOSE]}${lr[fr.PRERELEASELOOSE]}?${lr[fr.BUILD]}?`);xn("LOOSE",`^${lr[fr.LOOSEPLAIN]}$`);xn("GTLT","((?:<|>)?=?)");xn("XRANGEIDENTIFIERLOOSE",`${lr[fr.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);xn("XRANGEIDENTIFIER",`${lr[fr.NUMERICIDENTIFIER]}|x|X|\\*`);xn("XRANGEPLAIN",`[v=\\s]*(${lr[fr.XRANGEIDENTIFIER]})(?:\\.(${lr[fr.XRANGEIDENTIFIER]})(?:\\.(${lr[fr.XRANGEIDENTIFIER]})(?:${lr[fr.PRERELEASE]})?${lr[fr.BUILD]}?)?)?`);xn("XRANGEPLAINLOOSE",`[v=\\s]*(${lr[fr.XRANGEIDENTIFIERLOOSE]})(?:\\.(${lr[fr.XRANGEIDENTIFIERLOOSE]})(?:\\.(${lr[fr.XRANGEIDENTIFIERLOOSE]})(?:${lr[fr.PRERELEASELOOSE]})?${lr[fr.BUILD]}?)?)?`);xn("XRANGE",`^${lr[fr.GTLT]}\\s*${lr[fr.XRANGEPLAIN]}$`);xn("XRANGELOOSE",`^${lr[fr.GTLT]}\\s*${lr[fr.XRANGEPLAINLOOSE]}$`);xn("COERCE",`(^|[^\\d])(\\d{1,${uEe}})(?:\\.(\\d{1,${uEe}}))?(?:\\.(\\d{1,${uEe}}))?(?:$|[^\\d])`);xn("COERCERTL",lr[fr.COERCE],!0);xn("LONETILDE","(?:~>?)");xn("TILDETRIM",`(\\s*)${lr[fr.LONETILDE]}\\s+`,!0);Bm.tildeTrimReplace="$1~";xn("TILDE",`^${lr[fr.LONETILDE]}${lr[fr.XRANGEPLAIN]}$`);xn("TILDELOOSE",`^${lr[fr.LONETILDE]}${lr[fr.XRANGEPLAINLOOSE]}$`);xn("LONECARET","(?:\\^)");xn("CARETTRIM",`(\\s*)${lr[fr.LONECARET]}\\s+`,!0);Bm.caretTrimReplace="$1^";xn("CARET",`^${lr[fr.LONECARET]}${lr[fr.XRANGEPLAIN]}$`);xn("CARETLOOSE",`^${lr[fr.LONECARET]}${lr[fr.XRANGEPLAINLOOSE]}$`);xn("COMPARATORLOOSE",`^${lr[fr.GTLT]}\\s*(${lr[fr.LOOSEPLAIN]})$|^$`);xn("COMPARATOR",`^${lr[fr.GTLT]}\\s*(${lr[fr.FULLPLAIN]})$|^$`);xn("COMPARATORTRIM",`(\\s*)${lr[fr.GTLT]}\\s*(${lr[fr.LOOSEPLAIN]}|${lr[fr.XRANGEPLAIN]})`,!0);Bm.comparatorTrimReplace="$1$2$3";xn("HYPHENRANGE",`^\\s*(${lr[fr.XRANGEPLAIN]})\\s+-\\s+(${lr[fr.XRANGEPLAIN]})\\s*$`);xn("HYPHENRANGELOOSE",`^\\s*(${lr[fr.XRANGEPLAINLOOSE]})\\s+-\\s+(${lr[fr.XRANGEPLAINLOOSE]})\\s*$`);xn("STAR","(<|>)?=?\\s*\\*");xn("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");xn("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var kY=j((zCu,eDt)=>{var Uhn=Object.freeze({loose:!0}),$hn=Object.freeze({}),zhn=e=>e?typeof e!="object"?Uhn:e:$hn;eDt.exports=zhn});var oEe=j((WCu,nDt)=>{var tDt=/^[0-9]+$/,rDt=(e,t)=>{let r=tDt.test(e),n=tDt.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Whn=(e,t)=>rDt(t,e);nDt.exports={compareIdentifiers:rDt,rcompareIdentifiers:Whn}});var tc=j((GCu,sDt)=>{var RY=nT(),{MAX_LENGTH:uDt,MAX_SAFE_INTEGER:IY}=rT(),{safeRe:iDt,t:oDt}=Mb(),Ghn=kY(),{compareIdentifiers:Ub}=oEe(),sEe=class e{constructor(t,r){if(r=Ghn(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>uDt)throw new TypeError(`version is longer than ${uDt} characters`);RY("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?iDt[oDt.LOOSE]:iDt[oDt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>IY||this.major<0)throw new TypeError("Invalid major version");if(this.minor>IY||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>IY||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(u=>{if(/^[0-9]+$/.test(u)){let i=+u;if(i>=0&&i<IY)return i}return u}):this.prerelease=[],this.build=n[5]?n[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(t){if(RY("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Ub(this.major,t.major)||Ub(this.minor,t.minor)||Ub(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],u=t.prerelease[r];if(RY("prerelease compare",r,n,u),n===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(n===void 0)return-1;if(n===u)continue;return Ub(n,u)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],u=t.build[r];if(RY("prerelease compare",r,n,u),n===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(n===void 0)return-1;if(n===u)continue;return Ub(n,u)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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":{let u=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[u];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(u)}}if(r){let i=[r,u];n===!1&&(i=[r]),Ub(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};sDt.exports=sEe});var Sy=j((VCu,cDt)=>{var aDt=tc(),Vhn=(e,t,r=!1)=>{if(e instanceof aDt)return e;try{return new aDt(e,t)}catch(n){if(!r)return null;throw n}};cDt.exports=Vhn});var fDt=j((HCu,lDt)=>{var Hhn=Sy(),Khn=(e,t)=>{let r=Hhn(e,t);return r?r.version:null};lDt.exports=Khn});var hDt=j((KCu,pDt)=>{var Yhn=Sy(),Xhn=(e,t)=>{let r=Yhn(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};pDt.exports=Xhn});var gDt=j((YCu,mDt)=>{var dDt=tc(),Jhn=(e,t,r,n,u)=>{typeof r=="string"&&(u=n,n=r,r=void 0);try{return new dDt(e instanceof dDt?e.version:e,r).inc(t,n,u).version}catch{return null}};mDt.exports=Jhn});var yDt=j((XCu,DDt)=>{var vDt=Sy(),Qhn=(e,t)=>{let r=vDt(e,null,!0),n=vDt(t,null,!0),u=r.compare(n);if(u===0)return null;let i=u>0,o=i?r:n,s=i?n:r,a=!!o.prerelease.length;if(!!s.prerelease.length&&!a)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";let l=a?"pre":"";return r.major!==n.major?l+"major":r.minor!==n.minor?l+"minor":r.patch!==n.patch?l+"patch":"prerelease"};DDt.exports=Qhn});var bDt=j((JCu,EDt)=>{var Zhn=tc(),edn=(e,t)=>new Zhn(e,t).major;EDt.exports=edn});var xDt=j((QCu,CDt)=>{var tdn=tc(),rdn=(e,t)=>new tdn(e,t).minor;CDt.exports=rdn});var FDt=j((ZCu,ADt)=>{var ndn=tc(),udn=(e,t)=>new ndn(e,t).patch;ADt.exports=udn});var BDt=j((exu,_Dt)=>{var idn=Sy(),odn=(e,t)=>{let r=idn(e,t);return r&&r.prerelease.length?r.prerelease:null};_Dt.exports=odn});var pp=j((txu,SDt)=>{var wDt=tc(),sdn=(e,t,r)=>new wDt(e,r).compare(new wDt(t,r));SDt.exports=sdn});var TDt=j((rxu,ODt)=>{var adn=pp(),cdn=(e,t,r)=>adn(t,e,r);ODt.exports=cdn});var kDt=j((nxu,PDt)=>{var ldn=pp(),fdn=(e,t)=>ldn(e,t,!0);PDt.exports=fdn});var LY=j((uxu,IDt)=>{var RDt=tc(),pdn=(e,t,r)=>{let n=new RDt(e,r),u=new RDt(t,r);return n.compare(u)||n.compareBuild(u)};IDt.exports=pdn});var jDt=j((ixu,LDt)=>{var hdn=LY(),ddn=(e,t)=>e.sort((r,n)=>hdn(r,n,t));LDt.exports=ddn});var qDt=j((oxu,NDt)=>{var mdn=LY(),gdn=(e,t)=>e.sort((r,n)=>mdn(n,r,t));NDt.exports=gdn});var uT=j((sxu,MDt)=>{var vdn=pp(),Ddn=(e,t,r)=>vdn(e,t,r)>0;MDt.exports=Ddn});var jY=j((axu,UDt)=>{var ydn=pp(),Edn=(e,t,r)=>ydn(e,t,r)<0;UDt.exports=Edn});var aEe=j((cxu,$Dt)=>{var bdn=pp(),Cdn=(e,t,r)=>bdn(e,t,r)===0;$Dt.exports=Cdn});var cEe=j((lxu,zDt)=>{var xdn=pp(),Adn=(e,t,r)=>xdn(e,t,r)!==0;zDt.exports=Adn});var NY=j((fxu,WDt)=>{var Fdn=pp(),_dn=(e,t,r)=>Fdn(e,t,r)>=0;WDt.exports=_dn});var qY=j((pxu,GDt)=>{var Bdn=pp(),wdn=(e,t,r)=>Bdn(e,t,r)<=0;GDt.exports=wdn});var lEe=j((hxu,VDt)=>{var Sdn=aEe(),Odn=cEe(),Tdn=uT(),Pdn=NY(),kdn=jY(),Rdn=qY(),Idn=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Sdn(e,r,n);case"!=":return Odn(e,r,n);case">":return Tdn(e,r,n);case">=":return Pdn(e,r,n);case"<":return kdn(e,r,n);case"<=":return Rdn(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};VDt.exports=Idn});var KDt=j((dxu,HDt)=>{var Ldn=tc(),jdn=Sy(),{safeRe:MY,t:UY}=Mb(),Ndn=(e,t)=>{if(e instanceof Ldn)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(MY[UY.COERCE]);else{let n;for(;(n=MY[UY.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),MY[UY.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;MY[UY.COERCERTL].lastIndex=-1}return r===null?null:jdn(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};HDt.exports=Ndn});var XDt=j((mxu,YDt)=>{"use strict";YDt.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var QDt=j((gxu,JDt)=>{"use strict";JDt.exports=su;su.Node=Oy;su.create=su;function su(e){var t=this;if(t instanceof su||(t=new su),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(u){t.push(u)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}su.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};su.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};su.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};su.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Mdn(this,arguments[e]);return this.length};su.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Udn(this,arguments[e]);return this.length};su.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};su.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};su.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};su.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};su.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};su.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};su.prototype.map=function(e,t){t=t||this;for(var r=new su,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};su.prototype.mapReverse=function(e,t){t=t||this;for(var r=new su,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};su.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=0;n!==null;u++)r=e(r,n.value,u),n=n.next;return r};su.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=this.length-1;n!==null;u--)r=e(r,n.value,u),n=n.prev;return r};su.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};su.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};su.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new su;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,u=this.head;u!==null&&n<e;n++)u=u.next;for(;u!==null&&n<t;n++,u=u.next)r.push(u.value);return r};su.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new su;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,u=this.tail;u!==null&&n>t;n--)u=u.prev;for(;u!==null&&n>e;n--,u=u.prev)r.push(u.value);return r};su.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,u=this.head;u!==null&&n<e;n++)u=u.next;for(var i=[],n=0;u&&n<t;n++)i.push(u.value),u=this.removeNode(u);u===null&&(u=this.tail),u!==this.head&&u!==this.tail&&(u=u.prev);for(var n=0;n<r.length;n++)u=qdn(this,u,r[n]);return i};su.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function qdn(e,t,r){var n=t===e.head?new Oy(r,null,t,e):new Oy(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function Mdn(e,t){e.tail=new Oy(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function Udn(e,t){e.head=new Oy(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Oy(e,t,r,n){if(!(this instanceof Oy))return new Oy(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{XDt()(su)}catch{}});var nyt=j((vxu,ryt)=>{"use strict";var $dn=QDt(),Ty=Symbol("max"),Sm=Symbol("length"),$b=Symbol("lengthCalculator"),oT=Symbol("allowStale"),Py=Symbol("maxAge"),wm=Symbol("dispose"),ZDt=Symbol("noDisposeOnSet"),Bs=Symbol("lruList"),Uh=Symbol("cache"),tyt=Symbol("updateAgeOnGet"),fEe=()=>1,hEe=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let r=this[Ty]=t.max||1/0,n=t.length||fEe;if(this[$b]=typeof n!="function"?fEe:n,this[oT]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Py]=t.maxAge||0,this[wm]=t.dispose,this[ZDt]=t.noDisposeOnSet||!1,this[tyt]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Ty]=t||1/0,iT(this)}get max(){return this[Ty]}set allowStale(t){this[oT]=!!t}get allowStale(){return this[oT]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Py]=t,iT(this)}get maxAge(){return this[Py]}set lengthCalculator(t){typeof t!="function"&&(t=fEe),t!==this[$b]&&(this[$b]=t,this[Sm]=0,this[Bs].forEach(r=>{r.length=this[$b](r.value,r.key),this[Sm]+=r.length})),iT(this)}get lengthCalculator(){return this[$b]}get length(){return this[Sm]}get itemCount(){return this[Bs].length}rforEach(t,r){r=r||this;for(let n=this[Bs].tail;n!==null;){let u=n.prev;eyt(this,t,n,r),n=u}}forEach(t,r){r=r||this;for(let n=this[Bs].head;n!==null;){let u=n.next;eyt(this,t,n,r),n=u}}keys(){return this[Bs].toArray().map(t=>t.key)}values(){return this[Bs].toArray().map(t=>t.value)}reset(){this[wm]&&this[Bs]&&this[Bs].length&&this[Bs].forEach(t=>this[wm](t.key,t.value)),this[Uh]=new Map,this[Bs]=new $dn,this[Sm]=0}dump(){return this[Bs].map(t=>$Y(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Bs]}set(t,r,n){if(n=n||this[Py],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let u=n?Date.now():0,i=this[$b](r,t);if(this[Uh].has(t)){if(i>this[Ty])return zb(this,this[Uh].get(t)),!1;let a=this[Uh].get(t).value;return this[wm]&&(this[ZDt]||this[wm](t,a.value)),a.now=u,a.maxAge=n,a.value=r,this[Sm]+=i-a.length,a.length=i,this.get(t),iT(this),!0}let o=new dEe(t,r,i,u,n);return o.length>this[Ty]?(this[wm]&&this[wm](t,r),!1):(this[Sm]+=o.length,this[Bs].unshift(o),this[Uh].set(t,this[Bs].head),iT(this),!0)}has(t){if(!this[Uh].has(t))return!1;let r=this[Uh].get(t).value;return!$Y(this,r)}get(t){return pEe(this,t,!0)}peek(t){return pEe(this,t,!1)}pop(){let t=this[Bs].tail;return t?(zb(this,t),t.value):null}del(t){zb(this,this[Uh].get(t))}load(t){this.reset();let r=Date.now();for(let n=t.length-1;n>=0;n--){let u=t[n],i=u.e||0;if(i===0)this.set(u.k,u.v);else{let o=i-r;o>0&&this.set(u.k,u.v,o)}}}prune(){this[Uh].forEach((t,r)=>pEe(this,r,!1))}},pEe=(e,t,r)=>{let n=e[Uh].get(t);if(n){let u=n.value;if($Y(e,u)){if(zb(e,n),!e[oT])return}else r&&(e[tyt]&&(n.value.now=Date.now()),e[Bs].unshiftNode(n));return u.value}},$Y=(e,t)=>{if(!t||!t.maxAge&&!e[Py])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Py]&&r>e[Py]},iT=e=>{if(e[Sm]>e[Ty])for(let t=e[Bs].tail;e[Sm]>e[Ty]&&t!==null;){let r=t.prev;zb(e,t),t=r}},zb=(e,t)=>{if(t){let r=t.value;e[wm]&&e[wm](r.key,r.value),e[Sm]-=r.length,e[Uh].delete(r.key),e[Bs].removeNode(t)}},dEe=class{constructor(t,r,n,u,i){this.key=t,this.value=r,this.length=n,this.now=u,this.maxAge=i||0}},eyt=(e,t,r,n)=>{let u=r.value;$Y(e,u)&&(zb(e,r),e[oT]||(u=void 0)),u&&t.call(n,u.value,u.key,e)};ryt.exports=hEe});var hp=j((Dxu,syt)=>{var mEe=class e{constructor(t,r){if(r=Wdn(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof gEe)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(u=>!iyt(u[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let u of this.set)if(u.length===1&&Jdn(u[0])){this.set=[u];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&Ydn)|(this.options.loose&&Xdn))+":"+t,u=uyt.get(n);if(u)return u;let i=this.options.loose,o=i?Kl[$c.HYPHENRANGELOOSE]:Kl[$c.HYPHENRANGE];t=t.replace(o,s1n(this.options.includePrerelease)),ci("hyphen replace",t),t=t.replace(Kl[$c.COMPARATORTRIM],Vdn),ci("comparator trim",t),t=t.replace(Kl[$c.TILDETRIM],Hdn),ci("tilde trim",t),t=t.replace(Kl[$c.CARETTRIM],Kdn),ci("caret trim",t);let s=t.split(" ").map(f=>Qdn(f,this.options)).join(" ").split(/\s+/).map(f=>o1n(f,this.options));i&&(s=s.filter(f=>(ci("loose invalid filter",f,this.options),!!f.match(Kl[$c.COMPARATORLOOSE])))),ci("range list",s);let a=new Map,c=s.map(f=>new gEe(f,this.options));for(let f of c){if(iyt(f))return[f];a.set(f.value,f)}a.size>1&&a.has("")&&a.delete("");let l=[...a.values()];return uyt.set(n,l),l}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>oyt(n,r)&&t.set.some(u=>oyt(u,r)&&n.every(i=>u.every(o=>i.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Gdn(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(a1n(this.set[r],t,this.options))return!0;return!1}};syt.exports=mEe;var zdn=nyt(),uyt=new zdn({max:1e3}),Wdn=kY(),gEe=sT(),ci=nT(),Gdn=tc(),{safeRe:Kl,t:$c,comparatorTrimReplace:Vdn,tildeTrimReplace:Hdn,caretTrimReplace:Kdn}=Mb(),{FLAG_INCLUDE_PRERELEASE:Ydn,FLAG_LOOSE:Xdn}=rT(),iyt=e=>e.value==="<0.0.0-0",Jdn=e=>e.value==="",oyt=(e,t)=>{let r=!0,n=e.slice(),u=n.pop();for(;r&&n.length;)r=n.every(i=>u.intersects(i,t)),u=n.pop();return r},Qdn=(e,t)=>(ci("comp",e,t),e=t1n(e,t),ci("caret",e),e=Zdn(e,t),ci("tildes",e),e=n1n(e,t),ci("xrange",e),e=i1n(e,t),ci("stars",e),e),zc=e=>!e||e.toLowerCase()==="x"||e==="*",Zdn=(e,t)=>e.trim().split(/\s+/).map(r=>e1n(r,t)).join(" "),e1n=(e,t)=>{let r=t.loose?Kl[$c.TILDELOOSE]:Kl[$c.TILDE];return e.replace(r,(n,u,i,o,s)=>{ci("tilde",e,n,u,i,o,s);let a;return zc(u)?a="":zc(i)?a=`>=${u}.0.0 <${+u+1}.0.0-0`:zc(o)?a=`>=${u}.${i}.0 <${u}.${+i+1}.0-0`:s?(ci("replaceTilde pr",s),a=`>=${u}.${i}.${o}-${s} <${u}.${+i+1}.0-0`):a=`>=${u}.${i}.${o} <${u}.${+i+1}.0-0`,ci("tilde return",a),a})},t1n=(e,t)=>e.trim().split(/\s+/).map(r=>r1n(r,t)).join(" "),r1n=(e,t)=>{ci("caret",e,t);let r=t.loose?Kl[$c.CARETLOOSE]:Kl[$c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(u,i,o,s,a)=>{ci("caret",e,u,i,o,s,a);let c;return zc(i)?c="":zc(o)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:zc(s)?i==="0"?c=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:a?(ci("replaceCaret pr",a),i==="0"?o==="0"?c=`>=${i}.${o}.${s}-${a} <${i}.${o}.${+s+1}-0`:c=`>=${i}.${o}.${s}-${a} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${s}-${a} <${+i+1}.0.0-0`):(ci("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${s}${n} <${i}.${o}.${+s+1}-0`:c=`>=${i}.${o}.${s}${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${s} <${+i+1}.0.0-0`),ci("caret return",c),c})},n1n=(e,t)=>(ci("replaceXRanges",e,t),e.split(/\s+/).map(r=>u1n(r,t)).join(" ")),u1n=(e,t)=>{e=e.trim();let r=t.loose?Kl[$c.XRANGELOOSE]:Kl[$c.XRANGE];return e.replace(r,(n,u,i,o,s,a)=>{ci("xRange",e,n,u,i,o,s,a);let c=zc(i),l=c||zc(o),f=l||zc(s),p=f;return u==="="&&p&&(u=""),a=t.includePrerelease?"-0":"",c?u===">"||u==="<"?n="<0.0.0-0":n="*":u&&p?(l&&(o=0),s=0,u===">"?(u=">=",l?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):u==="<="&&(u="<",l?i=+i+1:o=+o+1),u==="<"&&(a="-0"),n=`${u+i}.${o}.${s}${a}`):l?n=`>=${i}.0.0${a} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),ci("xRange return",n),n})},i1n=(e,t)=>(ci("replaceStars",e,t),e.trim().replace(Kl[$c.STAR],"")),o1n=(e,t)=>(ci("replaceGTE0",e,t),e.trim().replace(Kl[t.includePrerelease?$c.GTE0PRE:$c.GTE0],"")),s1n=e=>(t,r,n,u,i,o,s,a,c,l,f,p,h)=>(zc(n)?r="":zc(u)?r=`>=${n}.0.0${e?"-0":""}`:zc(i)?r=`>=${n}.${u}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,zc(c)?a="":zc(l)?a=`<${+c+1}.0.0-0`:zc(f)?a=`<${c}.${+l+1}.0-0`:p?a=`<=${c}.${l}.${f}-${p}`:e?a=`<${c}.${l}.${+f+1}-0`:a=`<=${a}`,`${r} ${a}`.trim()),a1n=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(ci(e[n].semver),e[n].semver!==gEe.ANY&&e[n].semver.prerelease.length>0){let u=e[n].semver;if(u.major===t.major&&u.minor===t.minor&&u.patch===t.patch)return!0}return!1}return!0}});var sT=j((yxu,hyt)=>{var aT=Symbol("SemVer ANY"),yEe=class e{static get ANY(){return aT}constructor(t,r){if(r=ayt(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),DEe("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===aT?this.value="":this.value=this.operator+this.semver.version,DEe("comp",this)}parse(t){let r=this.options.loose?cyt[lyt.COMPARATORLOOSE]:cyt[lyt.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new fyt(n[2],this.options.loose):this.semver=aT}toString(){return this.value}test(t){if(DEe("Comparator.test",t,this.options.loose),this.semver===aT||t===aT)return!0;if(typeof t=="string")try{t=new fyt(t,this.options)}catch{return!1}return vEe(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new pyt(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new pyt(this.value,r).test(t.semver):(r=ayt(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||vEe(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||vEe(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};hyt.exports=yEe;var ayt=kY(),{safeRe:cyt,t:lyt}=Mb(),vEe=lEe(),DEe=nT(),fyt=tc(),pyt=hp()});var cT=j((Exu,dyt)=>{var c1n=hp(),l1n=(e,t,r)=>{try{t=new c1n(t,r)}catch{return!1}return t.test(e)};dyt.exports=l1n});var gyt=j((bxu,myt)=>{var f1n=hp(),p1n=(e,t)=>new f1n(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));myt.exports=p1n});var Dyt=j((Cxu,vyt)=>{var h1n=tc(),d1n=hp(),m1n=(e,t,r)=>{let n=null,u=null,i=null;try{i=new d1n(t,r)}catch{return null}return e.forEach(o=>{i.test(o)&&(!n||u.compare(o)===-1)&&(n=o,u=new h1n(n,r))}),n};vyt.exports=m1n});var Eyt=j((xxu,yyt)=>{var g1n=tc(),v1n=hp(),D1n=(e,t,r)=>{let n=null,u=null,i=null;try{i=new v1n(t,r)}catch{return null}return e.forEach(o=>{i.test(o)&&(!n||u.compare(o)===1)&&(n=o,u=new g1n(n,r))}),n};yyt.exports=D1n});var xyt=j((Axu,Cyt)=>{var EEe=tc(),y1n=hp(),byt=uT(),E1n=(e,t)=>{e=new y1n(e,t);let r=new EEe("0.0.0");if(e.test(r)||(r=new EEe("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let u=e.set[n],i=null;u.forEach(o=>{let s=new EEe(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!i||byt(s,i))&&(i=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!r||byt(r,i))&&(r=i)}return r&&e.test(r)?r:null};Cyt.exports=E1n});var Fyt=j((Fxu,Ayt)=>{var b1n=hp(),C1n=(e,t)=>{try{return new b1n(e,t).range||"*"}catch{return null}};Ayt.exports=C1n});var zY=j((_xu,Syt)=>{var x1n=tc(),wyt=sT(),{ANY:A1n}=wyt,F1n=hp(),_1n=cT(),_yt=uT(),Byt=jY(),B1n=qY(),w1n=NY(),S1n=(e,t,r,n)=>{e=new x1n(e,n),t=new F1n(t,n);let u,i,o,s,a;switch(r){case">":u=_yt,i=B1n,o=Byt,s=">",a=">=";break;case"<":u=Byt,i=w1n,o=_yt,s="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_1n(e,t,n))return!1;for(let c=0;c<t.set.length;++c){let l=t.set[c],f=null,p=null;if(l.forEach(h=>{h.semver===A1n&&(h=new wyt(">=0.0.0")),f=f||h,p=p||h,u(h.semver,f.semver,n)?f=h:o(h.semver,p.semver,n)&&(p=h)}),f.operator===s||f.operator===a||(!p.operator||p.operator===s)&&i(e,p.semver))return!1;if(p.operator===a&&o(e,p.semver))return!1}return!0};Syt.exports=S1n});var Tyt=j((Bxu,Oyt)=>{var O1n=zY(),T1n=(e,t,r)=>O1n(e,t,">",r);Oyt.exports=T1n});var kyt=j((wxu,Pyt)=>{var P1n=zY(),k1n=(e,t,r)=>P1n(e,t,"<",r);Pyt.exports=k1n});var Lyt=j((Sxu,Iyt)=>{var Ryt=hp(),R1n=(e,t,r)=>(e=new Ryt(e,r),t=new Ryt(t,r),e.intersects(t,r));Iyt.exports=R1n});var Nyt=j((Oxu,jyt)=>{var I1n=cT(),L1n=pp();jyt.exports=(e,t,r)=>{let n=[],u=null,i=null,o=e.sort((l,f)=>L1n(l,f,r));for(let l of o)I1n(l,t,r)?(i=l,u||(u=l)):(i&&n.push([u,i]),i=null,u=null);u&&n.push([u,null]);let s=[];for(let[l,f]of n)l===f?s.push(l):!f&&l===o[0]?s.push("*"):f?l===o[0]?s.push(`<=${f}`):s.push(`${l} - ${f}`):s.push(`>=${l}`);let a=s.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return a.length<c.length?a:t}});var Wyt=j((Txu,zyt)=>{var qyt=hp(),CEe=sT(),{ANY:bEe}=CEe,lT=cT(),xEe=pp(),j1n=(e,t,r={})=>{if(e===t)return!0;e=new qyt(e,r),t=new qyt(t,r);let n=!1;e:for(let u of e.set){for(let i of t.set){let o=q1n(u,i,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},N1n=[new CEe(">=0.0.0-0")],Myt=[new CEe(">=0.0.0")],q1n=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===bEe){if(t.length===1&&t[0].semver===bEe)return!0;r.includePrerelease?e=N1n:e=Myt}if(t.length===1&&t[0].semver===bEe){if(r.includePrerelease)return!0;t=Myt}let n=new Set,u,i;for(let h of e)h.operator===">"||h.operator===">="?u=Uyt(u,h,r):h.operator==="<"||h.operator==="<="?i=$yt(i,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(u&&i){if(o=xEe(u.semver,i.semver,r),o>0)return null;if(o===0&&(u.operator!==">="||i.operator!=="<="))return null}for(let h of n){if(u&&!lT(h,String(u),r)||i&&!lT(h,String(i),r))return null;for(let d of t)if(!lT(h,String(d),r))return!1;return!0}let s,a,c,l,f=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=u&&!r.includePrerelease&&u.semver.prerelease.length?u.semver:!1;f&&f.prerelease.length===1&&i.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let h of t){if(l=l||h.operator===">"||h.operator===">=",c=c||h.operator==="<"||h.operator==="<=",u){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator===">"||h.operator===">="){if(s=Uyt(u,h,r),s===h&&s!==u)return!1}else if(u.operator===">="&&!lT(u.semver,String(h),r))return!1}if(i){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator==="<"||h.operator==="<="){if(a=$yt(i,h,r),a===h&&a!==i)return!1}else if(i.operator==="<="&&!lT(i.semver,String(h),r))return!1}if(!h.operator&&(i||u)&&o!==0)return!1}return!(u&&c&&!i&&o!==0||i&&l&&!u&&o!==0||p||f)},Uyt=(e,t,r)=>{if(!e)return t;let n=xEe(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},$yt=(e,t,r)=>{if(!e)return t;let n=xEe(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};zyt.exports=j1n});var ky=j((Pxu,Hyt)=>{var AEe=Mb(),Gyt=rT(),M1n=tc(),Vyt=oEe(),U1n=Sy(),$1n=fDt(),z1n=hDt(),W1n=gDt(),G1n=yDt(),V1n=bDt(),H1n=xDt(),K1n=FDt(),Y1n=BDt(),X1n=pp(),J1n=TDt(),Q1n=kDt(),Z1n=LY(),e2n=jDt(),t2n=qDt(),r2n=uT(),n2n=jY(),u2n=aEe(),i2n=cEe(),o2n=NY(),s2n=qY(),a2n=lEe(),c2n=KDt(),l2n=sT(),f2n=hp(),p2n=cT(),h2n=gyt(),d2n=Dyt(),m2n=Eyt(),g2n=xyt(),v2n=Fyt(),D2n=zY(),y2n=Tyt(),E2n=kyt(),b2n=Lyt(),C2n=Nyt(),x2n=Wyt();Hyt.exports={parse:U1n,valid:$1n,clean:z1n,inc:W1n,diff:G1n,major:V1n,minor:H1n,patch:K1n,prerelease:Y1n,compare:X1n,rcompare:J1n,compareLoose:Q1n,compareBuild:Z1n,sort:e2n,rsort:t2n,gt:r2n,lt:n2n,eq:u2n,neq:i2n,gte:o2n,lte:s2n,cmp:a2n,coerce:c2n,Comparator:l2n,Range:f2n,satisfies:p2n,toComparators:h2n,maxSatisfying:d2n,minSatisfying:m2n,minVersion:g2n,validRange:v2n,outside:D2n,gtr:y2n,ltr:E2n,intersects:b2n,simplifyRange:C2n,subset:x2n,SemVer:M1n,re:AEe.re,src:AEe.src,tokens:AEe.t,SEMVER_SPEC_VERSION:Gyt.SEMVER_SPEC_VERSION,RELEASE_TYPES:Gyt.RELEASE_TYPES,compareIdentifiers:Vyt.compareIdentifiers,rcompareIdentifiers:Vyt.rcompareIdentifiers}});function F2n(){let{version:e}=FEe.default.minVersion(A2n.engines.node);FEe.default.gte(process.versions.node,e)||(new JO(`Node.js version must be greater than or equal to ${e}`,`Your current Node.js version is ${process.versions.node}, please upgrade your Node.js version at ${gt.underline("https://nodejs.org/en")}.`),process.exit(1))}var FEe,A2n,_Ee,Kyt=bt(()=>{tT();jr();FEe=ut(ky()),A2n=QO();_Ee=F2n});var Yyt=j(WY=>{"use strict";Object.defineProperty(WY,"__esModule",{value:!0});WY.boolean=void 0;var _2n=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1"].includes(e.trim().toLowerCase());case"[object Number]":return e.valueOf()===1;case"[object Boolean]":return e.valueOf();default:return!1}};WY.boolean=_2n});var Xyt=j(GY=>{"use strict";Object.defineProperty(GY,"__esModule",{value:!0});GY.isBooleanable=void 0;var B2n=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(e.trim().toLowerCase());case"[object Number]":return[0,1].includes(e.valueOf());case"[object Boolean]":return!0;default:return!1}};GY.isBooleanable=B2n});var VY=j(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});Wb.isBooleanable=Wb.boolean=void 0;var w2n=Yyt();Object.defineProperty(Wb,"boolean",{enumerable:!0,get:function(){return w2n.boolean}});var S2n=Xyt();Object.defineProperty(Wb,"isBooleanable",{enumerable:!0,get:function(){return S2n.isBooleanable}})});var HY=j((qxu,Jyt)=>{Jyt.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var BEe=j((Mxu,Zyt)=>{"use strict";var Qyt=Object.prototype.toString;Zyt.exports=function(t){var r=Qyt.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Qyt.call(t.callee)==="[object Function]"),n}});var aEt=j((Uxu,sEt)=>{"use strict";var oEt;Object.keys||(fT=Object.prototype.hasOwnProperty,wEe=Object.prototype.toString,eEt=BEe(),SEe=Object.prototype.propertyIsEnumerable,tEt=!SEe.call({toString:null},"toString"),rEt=SEe.call(function(){},"prototype"),pT=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],KY=function(e){var t=e.constructor;return t&&t.prototype===e},nEt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},uEt=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!nEt["$"+e]&&fT.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{KY(window[e])}catch{return!0}}catch{return!0}return!1}(),iEt=function(e){if(typeof window>"u"||!uEt)return KY(e);try{return KY(e)}catch{return!1}},oEt=function(t){var r=t!==null&&typeof t=="object",n=wEe.call(t)==="[object Function]",u=eEt(t),i=r&&wEe.call(t)==="[object String]",o=[];if(!r&&!n&&!u)throw new TypeError("Object.keys called on a non-object");var s=rEt&&n;if(i&&t.length>0&&!fT.call(t,0))for(var a=0;a<t.length;++a)o.push(String(a));if(u&&t.length>0)for(var c=0;c<t.length;++c)o.push(String(c));else for(var l in t)!(s&&l==="prototype")&&fT.call(t,l)&&o.push(String(l));if(tEt)for(var f=iEt(t),p=0;p<pT.length;++p)!(f&&pT[p]==="constructor")&&fT.call(t,pT[p])&&o.push(pT[p]);return o});var fT,wEe,eEt,SEe,tEt,rEt,pT,KY,nEt,uEt,iEt;sEt.exports=oEt});var pEt=j(($xu,fEt)=>{"use strict";var O2n=Array.prototype.slice,T2n=BEe(),cEt=Object.keys,YY=cEt?function(t){return cEt(t)}:aEt(),lEt=Object.keys;YY.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return T2n(n)?lEt(O2n.call(n)):lEt(n)})}else Object.keys=YY;return Object.keys||YY};fEt.exports=YY});var dEt=j((zxu,hEt)=>{"use strict";hEt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var u=42;t[r]=u;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==u||o.enumerable!==!0)return!1}return!0}});var vEt=j((Wxu,gEt)=>{"use strict";var mEt=typeof Symbol<"u"&&Symbol,P2n=dEt();gEt.exports=function(){return typeof mEt!="function"||typeof Symbol!="function"||typeof mEt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:P2n()}});var EEt=j((Gxu,yEt)=>{"use strict";var DEt={foo:{}},k2n=Object;yEt.exports=function(){return{__proto__:DEt}.foo===DEt.foo&&!({__proto__:null}instanceof k2n)}});var xEt=j((Vxu,CEt)=>{"use strict";var R2n="Function.prototype.bind called on incompatible ",I2n=Object.prototype.toString,L2n=Math.max,j2n="[object Function]",bEt=function(t,r){for(var n=[],u=0;u<t.length;u+=1)n[u]=t[u];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},N2n=function(t,r){for(var n=[],u=r||0,i=0;u<t.length;u+=1,i+=1)n[i]=t[u];return n},q2n=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};CEt.exports=function(t){var r=this;if(typeof r!="function"||I2n.apply(r)!==j2n)throw new TypeError(R2n+r);for(var n=N2n(arguments,1),u,i=function(){if(this instanceof u){var l=r.apply(this,bEt(n,arguments));return Object(l)===l?l:this}return r.apply(t,bEt(n,arguments))},o=L2n(0,r.length-n.length),s=[],a=0;a<o;a++)s[a]="$"+a;if(u=Function("binder","return function ("+q2n(s,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,u.prototype=new c,c.prototype=null}return u}});var XY=j((Hxu,AEt)=>{"use strict";var M2n=xEt();AEt.exports=Function.prototype.bind||M2n});var _Et=j((Kxu,FEt)=>{"use strict";var U2n=Function.prototype.call,$2n=Object.prototype.hasOwnProperty,z2n=XY();FEt.exports=z2n.call(U2n,$2n)});var Yb=j((Yxu,TEt)=>{"use strict";var qn,Kb=SyntaxError,OEt=Function,Hb=TypeError,OEe=function(e){try{return OEt('"use strict"; return ('+e+").constructor;")()}catch{}},Ry=Object.getOwnPropertyDescriptor;if(Ry)try{Ry({},"")}catch{Ry=null}var TEe=function(){throw new Hb},W2n=Ry?function(){try{return arguments.callee,TEe}catch{try{return Ry(arguments,"callee").get}catch{return TEe}}}():TEe,Gb=vEt()(),G2n=EEt()(),ws=Object.getPrototypeOf||(G2n?function(e){return e.__proto__}:null),Vb={},V2n=typeof Uint8Array>"u"||!ws?qn:ws(Uint8Array),Iy={"%AggregateError%":typeof AggregateError>"u"?qn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?qn:ArrayBuffer,"%ArrayIteratorPrototype%":Gb&&ws?ws([][Symbol.iterator]()):qn,"%AsyncFromSyncIteratorPrototype%":qn,"%AsyncFunction%":Vb,"%AsyncGenerator%":Vb,"%AsyncGeneratorFunction%":Vb,"%AsyncIteratorPrototype%":Vb,"%Atomics%":typeof Atomics>"u"?qn:Atomics,"%BigInt%":typeof BigInt>"u"?qn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?qn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?qn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?qn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?qn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?qn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?qn:FinalizationRegistry,"%Function%":OEt,"%GeneratorFunction%":Vb,"%Int8Array%":typeof Int8Array>"u"?qn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?qn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?qn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gb&&ws?ws(ws([][Symbol.iterator]())):qn,"%JSON%":typeof JSON=="object"?JSON:qn,"%Map%":typeof Map>"u"?qn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Gb||!ws?qn:ws(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?qn:Promise,"%Proxy%":typeof Proxy>"u"?qn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?qn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?qn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Gb||!ws?qn:ws(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?qn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gb&&ws?ws(""[Symbol.iterator]()):qn,"%Symbol%":Gb?Symbol:qn,"%SyntaxError%":Kb,"%ThrowTypeError%":W2n,"%TypedArray%":V2n,"%TypeError%":Hb,"%Uint8Array%":typeof Uint8Array>"u"?qn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?qn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?qn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?qn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?qn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?qn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?qn:WeakSet};if(ws)try{null.error}catch(e){BEt=ws(ws(e)),Iy["%Error.prototype%"]=BEt}var BEt,H2n=function e(t){var r;if(t==="%AsyncFunction%")r=OEe("async function () {}");else if(t==="%GeneratorFunction%")r=OEe("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=OEe("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var u=e("%AsyncGenerator%");u&&ws&&(r=ws(u.prototype))}return Iy[t]=r,r},wEt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},hT=XY(),JY=_Et(),K2n=hT.call(Function.call,Array.prototype.concat),Y2n=hT.call(Function.apply,Array.prototype.splice),SEt=hT.call(Function.call,String.prototype.replace),QY=hT.call(Function.call,String.prototype.slice),X2n=hT.call(Function.call,RegExp.prototype.exec),J2n=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q2n=/\\(\\)?/g,Z2n=function(t){var r=QY(t,0,1),n=QY(t,-1);if(r==="%"&&n!=="%")throw new Kb("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Kb("invalid intrinsic syntax, expected opening `%`");var u=[];return SEt(t,J2n,function(i,o,s,a){u[u.length]=s?SEt(a,Q2n,"$1"):o||i}),u},emn=function(t,r){var n=t,u;if(JY(wEt,n)&&(u=wEt[n],n="%"+u[0]+"%"),JY(Iy,n)){var i=Iy[n];if(i===Vb&&(i=H2n(n)),typeof i>"u"&&!r)throw new Hb("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:u,name:n,value:i}}throw new Kb("intrinsic "+t+" does not exist!")};TEt.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Hb("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Hb('"allowMissing" argument must be a boolean');if(X2n(/^%?[^%]*%?$/,t)===null)throw new Kb("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Z2n(t),u=n.length>0?n[0]:"",i=emn("%"+u+"%",r),o=i.name,s=i.value,a=!1,c=i.alias;c&&(u=c[0],Y2n(n,K2n([0,1],c)));for(var l=1,f=!0;l<n.length;l+=1){var p=n[l],h=QY(p,0,1),d=QY(p,-1);if((h==='"'||h==="'"||h==="`"||d==='"'||d==="'"||d==="`")&&h!==d)throw new Kb("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(a=!0),u+="."+p,o="%"+u+"%",JY(Iy,o))s=Iy[o];else if(s!=null){if(!(p in s)){if(!r)throw new Hb("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ry&&l+1>=n.length){var m=Ry(s,p);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[p]}else f=JY(s,p),s=s[p];f&&!a&&(Iy[o]=s)}}return s}});var ZY=j((Xxu,PEt)=>{"use strict";var tmn=Yb(),PEe=tmn("%Object.defineProperty%",!0),kEe=function(){if(PEe)try{return PEe({},"a",{value:1}),!0}catch{return!1}return!1};kEe.hasArrayLengthDefineBug=function(){if(!kEe())return null;try{return PEe([],"length",{value:1}).length!==1}catch{return!0}};PEt.exports=kEe});var REe=j((Jxu,kEt)=>{"use strict";var rmn=Yb(),eX=rmn("%Object.getOwnPropertyDescriptor%",!0);if(eX)try{eX([],"length")}catch{eX=null}kEt.exports=eX});var LEe=j((Qxu,IEt)=>{"use strict";var nmn=ZY()(),IEe=Yb(),dT=nmn&&IEe("%Object.defineProperty%",!0);if(dT)try{dT({},"a",{value:1})}catch{dT=!1}var umn=IEe("%SyntaxError%"),Xb=IEe("%TypeError%"),REt=REe();IEt.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Xb("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Xb("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Xb("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Xb("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Xb("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Xb("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,a=!!REt&&REt(t,r);if(dT)dT(t,r,{configurable:o===null&&a?a.configurable:!o,enumerable:u===null&&a?a.enumerable:!u,value:n,writable:i===null&&a?a.writable:!i});else if(s||!u&&!i&&!o)t[r]=n;else throw new umn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var jEe=j((Zxu,qEt)=>{"use strict";var imn=pEt(),omn=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",smn=Object.prototype.toString,amn=Array.prototype.concat,LEt=LEe(),cmn=function(e){return typeof e=="function"&&smn.call(e)==="[object Function]"},jEt=ZY()(),lmn=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!cmn(n)||!n())return}jEt?LEt(e,t,r,!0):LEt(e,t,r)},NEt=function(e,t){var r=arguments.length>2?arguments[2]:{},n=imn(t);omn&&(n=amn.call(n,Object.getOwnPropertySymbols(t)));for(var u=0;u<n.length;u+=1)lmn(e,n[u],t[n[u]],r[n[u]])};NEt.supportsDescriptors=!!jEt;qEt.exports=NEt});var NEe=j((eAu,MEt)=>{"use strict";MEt.exports=global});var qEe=j((tAu,UEt)=>{"use strict";var fmn=NEe();UEt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?fmn:global}});var zEt=j((rAu,$Et)=>{"use strict";var pmn=jEe(),hmn=qEe();$Et.exports=function(){var t=hmn();if(pmn.supportsDescriptors){var r=Object.getOwnPropertyDescriptor(t,"globalThis");(!r||r.configurable&&(r.enumerable||!r.writable||globalThis!==t))&&Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!0})}else(typeof globalThis!="object"||globalThis!==t)&&(t.globalThis=t);return t}});var MEe=j((nAu,VEt)=>{"use strict";var dmn=jEe(),mmn=NEe(),WEt=qEe(),gmn=zEt(),vmn=WEt(),GEt=function(){return vmn};dmn(GEt,{getPolyfill:WEt,implementation:mmn,shim:gmn});VEt.exports=GEt});var YEt=j((UEe,KEt)=>{UEe=KEt.exports=Dmn;UEe.getSerialize=HEt;function Dmn(e,t,r,n){return JSON.stringify(e,HEt(t,n),r)}function HEt(e,t){var r=[],n=[];return t==null&&(t=function(u,i){return r[0]===i?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(i)).join(".")+"]"}),function(u,i){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,u):n.push(u),~r.indexOf(i)&&(i=t.call(this,u,i))}else r.push(i);return e==null?i:e.call(this,u,i)}}});var XEt=j(tX=>{(function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function t(o){return n(i(o),arguments)}function r(o,s){return t.apply(null,[o].concat(s||[]))}function n(o,s){var a=1,c=o.length,l,f="",p,h,d,m,v,y,g,D;for(p=0;p<c;p++)if(typeof o[p]=="string")f+=o[p];else if(typeof o[p]=="object"){if(d=o[p],d.keys)for(l=s[a],h=0;h<d.keys.length;h++){if(l==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',d.keys[h],d.keys[h-1]));l=l[d.keys[h]]}else d.param_no?l=s[d.param_no]:l=s[a++];if(e.not_type.test(d.type)&&e.not_primitive.test(d.type)&&l instanceof Function&&(l=l()),e.numeric_arg.test(d.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(t("[sprintf] expecting number but found %T",l));switch(e.number.test(d.type)&&(g=l>=0),d.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,d.width?parseInt(d.width):0);break;case"e":l=d.precision?parseFloat(l).toExponential(d.precision):parseFloat(l).toExponential();break;case"f":l=d.precision?parseFloat(l).toFixed(d.precision):parseFloat(l);break;case"g":l=d.precision?String(Number(l.toPrecision(d.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=d.precision?l.substring(0,d.precision):l;break;case"t":l=String(!!l),l=d.precision?l.substring(0,d.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=d.precision?l.substring(0,d.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=d.precision?l.substring(0,d.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}e.json.test(d.type)?f+=l:(e.number.test(d.type)&&(!g||d.sign)?(D=g?"+":"-",l=l.toString().replace(e.sign,"")):D="",v=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",y=d.width-(D+l).length,m=d.width&&y>0?v.repeat(y):"",f+=d.align?D+l+m:v==="0"?D+m+l:m+D+l)}return f}var u=Object.create(null);function i(o){if(u[o])return u[o];for(var s=o,a,c=[],l=0;s;){if((a=e.text.exec(s))!==null)c.push(a[0]);else if((a=e.modulo.exec(s))!==null)c.push("%");else if((a=e.placeholder.exec(s))!==null){if(a[2]){l|=1;var f=[],p=a[2],h=[];if((h=e.key.exec(p))!==null)for(f.push(h[1]);(p=p.substring(h[0].length))!=="";)if((h=e.key_access.exec(p))!==null)f.push(h[1]);else if((h=e.index_access.exec(p))!==null)f.push(h[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");a[2]=f}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");c.push({placeholder:a[0],param_no:a[1],keys:a[2],sign:a[3],pad_char:a[4],align:a[5],width:a[6],precision:a[7],type:a[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");s=s.substring(a[0].length)}return u[o]=c}typeof tX<"u"&&(tX.sprintf=t,tX.vsprintf=r),typeof window<"u"&&(window.sprintf=t,window.vsprintf=r,typeof define=="function"&&define.amd&&define(function(){return{sprintf:t,vsprintf:r}}))})()});var $Ee=j(rX=>{"use strict";Object.defineProperty(rX,"__esModule",{value:!0});rX.logLevels=void 0;var ymn={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};rX.logLevels=ymn});var ZEt=j(uX=>{"use strict";Object.defineProperty(uX,"__esModule",{value:!0});uX.default=void 0;var Emn=VEe(HY()),bmn=VEe(MEe()),Cmn=VEe(YEt()),zEe=XEt(),JEt=$Ee();function VEe(e){return e&&e.__esModule?e:{default:e}}function WEe(){return WEe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WEe.apply(this,arguments)}function QEt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,n)}return r}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QEt(Object(r),!0).forEach(function(n){xmn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QEt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xmn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Amn=(0,bmn.default)(),mT;Emn.default&&(mT=require("domain"));var Fmn=()=>{if(!mT)return{};let e=[],t=process.domain;if(!t||!t.parentDomain)return{};for(;t&&t.parentDomain;)t=t.parentDomain,t.roarr&&t.roarr.context&&e.push(t.roarr.context);let r={};for(let n of e)r=Yl(Yl({},r),n);return r},nX=()=>{if(!mT)return{};let e=process.domain;if(e&&e.roarr&&e.roarr.context)return e.roarr.context;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)if(e=e.parentDomain,e.roarr&&e.roarr.context)return e.roarr.context;return{}},GEe=(e,t)=>{let r=(n,u,i,o,s,a,c,l,f,p)=>{let h=Date.now(),d=Amn.ROARR.sequence++,m,v;if(typeof n=="string"){m=Yl(Yl({},nX()),t||{});let y=WEe({},{a:n,b:u,c:i,d:o,e:s,f:a,g:c,h:l,i:f,k:p});v=Object.keys(y).map(E=>y[E]).reduce((E,b)=>E+=typeof b>"u"?0:1,0)===1?(0,zEe.sprintf)("%s",n):(0,zEe.sprintf)(n,u,i,o,s,a,c,l,f,p)}else{if(typeof u!="string")throw new TypeError("Message must be a string.");m=JSON.parse((0,Cmn.default)(Yl(Yl(Yl({},nX()),t||{}),n))),v=(0,zEe.sprintf)(u,i,o,s,a,c,l,f,p)}e({context:m,message:v,sequence:d,time:h,version:"1.0.0"})};r.child=n=>typeof n=="function"?GEe(u=>{if(typeof n!="function")throw new TypeError("Unexpected state.");e(n(u))},t):GEe(e,Yl(Yl(Yl({},nX()),t),n)),r.getContext=()=>Yl(Yl({},nX()),t||{}),r.adopt=async(n,u)=>{if(!mT)return n();let i=mT.create();return i.run(()=>(i.roarr={context:Yl(Yl({},Fmn()),u)},n()))};for(let n of Object.keys(JEt.logLevels))r[n]=(u,i,o,s,a,c,l,f,p,h)=>r.child({logLevel:JEt.logLevels[n]})(u,i,o,s,a,c,l,f,p,h);return r},_mn=GEe;uX.default=_mn});var r3t=j(iX=>{"use strict";Object.defineProperty(iX,"__esModule",{value:!0});iX.default=void 0;var e3t=$Ee(),t3t=(e,t)=>{let r=(n,u,i,o,s,a,c,l,f,p)=>{};r.adopt=async n=>n(),r.child=n=>t3t(e,t),r.getContext=()=>({});for(let n of Object.keys(e3t.logLevels))r[n]=(u,i,o,s,a,c,l,f,p,h)=>r.child({logLevel:e3t.logLevels[n]})(u,i,o,s,a,c,l,f,p,h);return r},Bmn=t3t;iX.default=Bmn});var u3t=j((aAu,n3t)=>{n3t.exports=function(t,r){for(var n=t.split("."),u=r.split("."),i=0;i<3;i++){var o=Number(n[i]),s=Number(u[i]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0}});var i3t=j((cAu,wmn)=>{wmn.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var o3t=j(oX=>{"use strict";Object.defineProperty(oX,"__esModule",{value:!0});oX.default=void 0;var Smn=e=>({write:t=>{e.write(t+`
@@ -855,7 +855,7 @@ Example:
855
855
  ${(0,wt.emoji)("\u{1F4D6}")} Document: ${gt.underline("https://serverless.help/s/registry#list")}`,JVt=e=>{e.command("list").usage("[options]").description(pHn).summary(`${(0,wt.emoji)("\u{1F435}")} List the packages you have published`).option("--category <category>","category ID").option("--tag <tag>","Tag ID").option("--search <search>","Search keyword").option("--page <number>","Page number","1").helpOption("-h, --help","Display help for command").action(async t=>{let n=await new XVt.default({logger:At}).list(t);At.output(n)})}});var ZVt,hHn,eHt,tHt=bt(()=>{jr();ZVt=ut(nF());yn();In();hHn=`View application details.
856
856
 
857
857
  Example:
858
- $ s registry detail --name fc
858
+ $ s registry detail --package-name fc3
859
859
 
860
860
  ${(0,wt.emoji)("\u{1F4D6}")} Document: ${gt.underline("https://serverless.help/s/registry#detail")}`,eHt=e=>{e.command("detail").usage("[options]").description(hHn).summary(`${(0,wt.emoji)("\u{1F331}")} View specific package details`).option("--package-name <name>","Serverless Package name").option("--page <number>","Page number","1").helpOption("-h, --help","Display help for command").action(async t=>{let{packageName:r,page:n}=t,i=await new ZVt.default({logger:At}).detail(r,n);At.output(i)})}});var rHt,dHn,nHt,uHt=bt(()=>{jr();rHt=ut(nF());yn();In();dHn=`Delete application version.
861
861
 
@@ -1280,7 +1280,7 @@ Event: `).concat(JSON.stringify(event)));else if(this.status!==gi.InterpreterSta
1280
1280
  `,u)}while(n!==-1);return i+=e.substr(u),i};Qer.exports={stringReplaceAll:llu,stringEncaseCRLFWithFirstIndex:flu}});var utr=j((RKu,ntr)=>{"use strict";var plu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,etr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,hlu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,dlu=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,mlu=new Map([["n",`
1281
1281
  `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function rtr(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):mlu.get(e)||e}function glu(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),u;for(let i of n){let o=Number(i);if(!Number.isNaN(o))r.push(o);else if(u=i.match(hlu))r.push(u[2].replace(dlu,(s,a,c)=>a?rtr(a):c));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return r}function vlu(e){etr.lastIndex=0;let t=[],r;for(;(r=etr.exec(e))!==null;){let n=r[1];if(r[2]){let u=glu(n,r[2]);t.push([n].concat(u))}else t.push([n])}return t}function ttr(e,t){let r={};for(let u of t)for(let i of u.styles)r[i[0]]=u.inverse?null:i.slice(1);let n=e;for(let[u,i]of Object.entries(r))if(Array.isArray(i)){if(!(u in n))throw new Error(`Unknown Chalk style: ${u}`);n=i.length>0?n[u](...i):n[u]}return n}ntr.exports=(e,t)=>{let r=[],n=[],u=[];if(t.replace(plu,(i,o,s,a,c,l)=>{if(o)u.push(rtr(o));else if(a){let f=u.join("");u=[],n.push(r.length===0?f:ttr(e,r)(f)),r.push({inverse:s,styles:vlu(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(ttr(e,r)(u.join(""))),u=[],r.pop()}else u.push(l)}),n.push(u.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var zPe=j((IKu,ltr)=>{"use strict";var vj=Jer(),{stdout:qPe,stderr:MPe}=qf(),{stringReplaceAll:Dlu,stringEncaseCRLFWithFirstIndex:ylu}=Zer(),{isArray:eie}=Array,otr=["ansi","ansi","ansi256","ansi16m"],RF=Object.create(null),Elu=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=qPe?qPe.level:0;e.level=t.level===void 0?r:t.level},UPe=class{constructor(t){return str(t)}},str=e=>{let t={};return Elu(t,e),t.template=(...r)=>ctr(t.template,...r),Object.setPrototypeOf(t,tie.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=UPe,t.template};function tie(e){return str(e)}for(let[e,t]of Object.entries(vj))RF[e]={get(){let r=rie(this,$Pe(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};RF.visible={get(){let e=rie(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var atr=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of atr)RF[e]={get(){let{level:t}=this;return function(...r){let n=$Pe(vj.color[otr[t]][e](...r),vj.color.close,this._styler);return rie(this,n,this._isEmpty)}}};for(let e of atr){let t="bg"+e[0].toUpperCase()+e.slice(1);RF[t]={get(){let{level:r}=this;return function(...n){let u=$Pe(vj.bgColor[otr[r]][e](...n),vj.bgColor.close,this._styler);return rie(this,u,this._isEmpty)}}}}var blu=Object.defineProperties(()=>{},{...RF,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),$Pe=(e,t,r)=>{let n,u;return r===void 0?(n=e,u=t):(n=r.openAll+e,u=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:u,parent:r}},rie=(e,t,r)=>{let n=(...u)=>eie(u[0])&&eie(u[0].raw)?itr(n,ctr(n,...u)):itr(n,u.length===1?""+u[0]:u.join(" "));return Object.setPrototypeOf(n,blu),n._generator=e,n._styler=t,n._isEmpty=r,n},itr=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:u}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=Dlu(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
1282
1282
  `);return i!==-1&&(t=ylu(t,u,n,i)),n+t+u},NPe,ctr=(e,...t)=>{let[r]=t;if(!eie(r)||!eie(r.raw))return t.join(" ");let n=t.slice(1),u=[r.raw[0]];for(let i=1;i<r.length;i++)u.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return NPe===void 0&&(NPe=utr()),NPe(e,u.join(""))};Object.defineProperties(tie.prototype,RF);var nie=tie();nie.supportsColor=qPe;nie.stderr=tie({level:MPe?MPe.level:0});nie.stderr.supportsColor=MPe;ltr.exports=nie});var ptr=j(Dj=>{"use strict";Dj.__esModule=!0;Dj.parseArgsStringToArgv=void 0;function ftr(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,u=e,i=[];t&&i.push(t),r&&i.push(r);var o;do o=n.exec(u),o!==null&&i.push(Clu(o[1],o[6],o[0]));while(o!==null);return i}Dj.default=ftr;Dj.parseArgsStringToArgv=ftr;function Clu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++){var n=e[r];if(typeof n=="string")return n}}});var WPe=j(uie=>{"use strict";Object.defineProperty(uie,"__esModule",{value:!0});uie.EXIT_CODE=void 0;uie.EXIT_CODE={DEVS:100,COMPONENT:101,PLUGIN:101,RUN:101}});var gtr=j(F0=>{"use strict";var xlu=F0&&F0.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var u=Object.getOwnPropertyDescriptor(t,r);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,u)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Alu=F0&&F0.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Flu=F0&&F0.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&xlu(t,e,r);return Alu(t,e),t},yj=F0&&F0.__awaiter||function(e,t,r,n){function u(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function a(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?i(l.value):u(l.value).then(s,a)}c((n=n.apply(e,t||[])).next())})},iie=F0&&F0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(F0,"__esModule",{value:!0});var Ip=RPe(),p2=Jt(),htr=Flu(Zr()),Ej=Zr(),dtr=iie(Gu()),_lu=require("child_process"),mtr=iie(mg()),Blu=iie(ptr()),hv=DPe(),bj=iie(zPe()),h2=WPe(),GPe=Wl()("serverless-devs:engine"),VPe=class{constructor(t=[],r={}){this.actions=t,this.option=r,this.record={},this.inputs={},this.logger=r.logger}setValue(t,r){this.option.skipActions||(0,p2.set)(this.record,t,r)}start(t,r={}){return yj(this,void 0,void 0,function*(){try{return yield this.afterStart(t,r)}catch(n){let u=n;throw this.option.hookLevel===Ip.IActionLevel.GLOBAL&&this.logger.write(`${bj.default.red("\u2716")} ${bj.default.gray(`${Ip.IActionLevel.GLOBAL} ${t}-action failed to [${this.record.command}] (${(0,hv.getProcessTime)(this.record.startTime)}s)`)}`),n}})}afterStart(t,r={}){return yj(this,void 0,void 0,function*(){if(this.option.skipActions)return{};this.inputs=r;let n=(0,p2.filter)(this.actions,i=>i.hookType===t);if((0,p2.isEmpty)(n))return{};this.record.startTime=Date.now(),this.record.lable=this.option.hookLevel===Ip.IActionLevel.PROJECT?`[${this.option.projectName}]`:Ip.IActionLevel.GLOBAL,this.logger.debug(`Start executing the ${t}-action in ${this.record.lable}`);let u=(0,Ip.getInputs)(n,this.record.magic);t!==Ip.IHookType.PRE&&(this.record.pluginOutput={});for(let i of u)GPe(`${i.level} action item: ${(0,hv.stringify)(i)}`),this.record.allowFailure=this.record.step&&"allow_failure"in this.record.step?(0,p2.get)(this.record,"step.allow_failure"):i.allow_failure,i.actionType===Ip.IActionType.RUN&&(yield this.run(i)),i.actionType===Ip.IActionType.PLUGIN&&(yield this.plugin(i)),i.actionType===Ip.IActionType.COMPONENT&&i.level===Ip.IActionLevel.PROJECT&&(yield this.component(i));return this.logger.debug(`The ${t}-action successfully to execute in ${this.record.lable}`),this.option.hookLevel===Ip.IActionLevel.GLOBAL&&this.logger.write(`${bj.default.green("\u2714")} ${bj.default.gray(`${Ip.IActionLevel.GLOBAL} ${t}-action completed (${(0,hv.getProcessTime)(this.record.startTime)})`)}`),this.record})}onFinish(t){return new Promise((r,n)=>{let u=[],i=[];t.stdout.on("data",o=>{this.logger.append(o.toString()),u.push(o)}),t.stderr.on("data",o=>{this.logger.append(o.toString()),i.push(o)}),t.on("exit",o=>{o===0?r({}):n(new Error(Buffer.concat(i).toString()))})})}run(t){return yj(this,void 0,void 0,function*(){if(dtr.default.existsSync(t.path)&&dtr.default.lstatSync(t.path).isDirectory()){try{let n=(0,_lu.spawn)(t.value,{cwd:t.path,shell:!0});yield this.onFinish(n)}catch(n){let u=n;if(htr.isWindow()&&(GPe("Command run execution environment\uFF1ACMD"),GPe("Please check whether the actions section of yaml can be executed in the current environment.")),(0,hv.getAllowFailure)(this.record.allowFailure,{exitCode:h2.EXIT_CODE.RUN,command:this.record.command}))return;throw new Ej.DevsError(u.message,{data:(0,p2.get)(n,"data"),stack:u.stack,exitCode:h2.EXIT_CODE.RUN,prefix:`${this.record.lable} ${t.hookType}-action failed to [${this.record.command}]:`})}return}if(!(0,hv.getAllowFailure)(this.record.allowFailure,{exitCode:h2.EXIT_CODE.DEVS,command:this.record.command}))throw new Ej.DevsError(`The ${t.path} directory does not exist.`,{exitCode:h2.EXIT_CODE.DEVS,prefix:`${this.record.lable} ${t.hookType}-action failed to [${this.record.command}]:`})})}plugin(t){return yj(this,void 0,void 0,function*(){try{let r=yield(0,mtr.default)(t.value),n=(0,p2.isEmpty)(this.record.pluginOutput)?this.inputs:this.record.pluginOutput;this.record.pluginOutput=yield r(n,t.args,this.logger)}catch(r){let n=r;if((0,hv.getAllowFailure)(this.record.allowFailure,{exitCode:h2.EXIT_CODE.PLUGIN,command:this.record.command}))return;throw new Ej.DevsError(n.message,{data:(0,p2.get)(r,"data"),stack:n.stack,exitCode:h2.EXIT_CODE.PLUGIN,prefix:`${this.record.lable} ${t.hookType}-action failed to [${this.record.command}]:`})}})}component(t){return yj(this,void 0,void 0,function*(){let r=(0,Blu.default)(t.value),{_:n}=htr.parseArgv(r),[u,i]=n,o=yield(0,mtr.default)(u,{logger:this.logger});if(o[i]){let a=Object.assign(Object.assign({},this.record.componentProps),{argv:(0,p2.filter)(r.slice(2),c=>!(0,p2.includes)([u,i],c))});try{return yield o[i](a)}catch(c){let l=c;if((0,hv.getAllowFailure)(this.record.allowFailure,{exitCode:h2.EXIT_CODE.COMPONENT,command:this.record.command}))return;throw new Ej.DevsError(l.message,{data:(0,p2.get)(c,"data"),stack:l.stack,exitCode:h2.EXIT_CODE.COMPONENT,prefix:`${this.record.lable} ${t.hookType}-action failed to [${this.record.command}]:`})}}if(!(0,hv.getAllowFailure)(this.record.allowFailure,{exitCode:h2.EXIT_CODE.DEVS,command:this.record.command}))throw new Ej.DevsError(`The [${i}] command was not found.`,{exitCode:h2.EXIT_CODE.DEVS,prefix:`${this.record.lable} ${t.hookType}-action failed to [${this.record.command}]:`,tips:`Please check the component ${u} has the ${i} command. Serverless Devs documents\uFF1A${bj.default.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command")}`})})}};F0.default=VPe});var xtr=j(mc=>{"use strict";var Ctr=mc&&mc.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var u=Object.getOwnPropertyDescriptor(t,r);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,u)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),wlu=mc&&mc.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Slu=mc&&mc.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Ctr(t,e,r);return wlu(t,e),t},Olu=mc&&mc.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ctr(t,e,r)},_0=mc&&mc.__awaiter||function(e,t,r,n){function u(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function a(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?i(l.value):u(l.value).then(s,a)}c((n=n.apply(e,t||[])).next())})},B3=mc&&mc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mc,"__esModule",{value:!0});var vtr=cer(),En=Jt(),_u=vPe(),d2=DPe(),B0=Slu(RPe()),Dtr=B3(require("path")),IF=B3(zPe()),ytr=B3(gtr()),Tlu=B3(Ic()),Plu=B3(mg()),Etr=B3(jye()),_3=Zr(),LF=WPe(),btr=B3(require("assert"));Olu(vPe(),mc);var m2=Wl()("serverless-devs:engine"),HPe=class{constructor(t){this.options=t,this.context={status:_u.STEP_STATUS.PENDING,completed:!1,error:[]},this.record={status:_u.STEP_STATUS.PENDING,editStatusAble:!0},this.spec={},m2("engine start"),this.options.args=(0,En.get)(this.options,"args",process.argv.slice(2)),this.options.cwd=(0,En.get)(this.options,"cwd",process.cwd()),this.options.template=(0,_3.getAbsolutePath)((0,En.get)(this.options,"template"),this.options.cwd),m2(`engine options: ${(0,d2.stringify)(t)}`)}beforeStart(){return _0(this,void 0,void 0,function*(){this.glog=this.getLogger(),this.logger=this.glog.__generate("engine"),this.parseSpecInstance=new B0.default((0,En.get)(this.options,"template"),{argv:this.options.args,logger:this.logger}),this.spec=yield this.parseSpecInstance.start(),(0,En.each)(this.options.env,(r,n)=>{process.env[n]=r});let{steps:t}=this.spec;this.validate(),this.context.steps=yield this.download(t)})}start(){return _0(this,void 0,void 0,function*(){this.context.status=_u.STEP_STATUS.RUNNING,this.record.status=_u.STEP_STATUS.RUNNING;try{yield this.beforeStart()}catch(s){return this.context.status=_u.STEP_STATUS.FAILURE,this.context.completed=!0,this.context.error.push(s),this.context}let{steps:t,yaml:r,command:n,access:u=r.access}=this.spec;this.logger.write(`${(0,_3.emoji)("\u231B")} Steps for [${n}] of [${(0,En.get)(this.spec,"yaml.appName")}]
1283
- ${IF.default.gray("====================")}`),this.globalActionInstance=new ytr.default(r.actions,{hookLevel:B0.IActionLevel.GLOBAL,logger:this.logger,skipActions:this.spec.skipActions});let i=yield(0,d2.getCredential)(u,this.logger);this.context.credential=i;try{this.globalActionInstance.setValue("magic",this.getFilterContext()),this.globalActionInstance.setValue("command",n),yield this.globalActionInstance.start(B0.IHookType.PRE,{access:u,credential:i})}catch(s){return this.context.error.push(s),this.context.status=_u.STEP_STATUS.FAILURE,yield this.doCompleted(),this.context}this.context.steps=(0,En.map)(this.context.steps,s=>Object.assign(Object.assign({},s),{stepCount:(0,En.uniqueId)(),status:_u.STEP_STATUS.PENDING,done:!1}));let o=yield new Promise(s=>_0(this,void 0,void 0,function*(){let a={init:{on:{INIT:this.context.steps.length===0?"final":(0,En.get)(this.context.steps,"[0].stepCount")}},final:{type:"final",invoke:{src:()=>_0(this,void 0,void 0,function*(){let f=this.record.status===_u.STEP_STATUS.ERROR_WITH_CONTINUE?_u.STEP_STATUS.SUCCESS:this.record.status;this.context.status=f,yield this.doCompleted(),this.context.steps=(0,En.map)(this.context.steps,p=>(0,En.omit)(p,["instance"])),this.context.output=this.getOutput(),m2(`context: ${(0,d2.stringify)(this.context)}`),m2("engine end"),s(this.context)})}}};(0,En.each)(this.context.steps,(f,p)=>{let h=this.context.steps[p+1]?(0,En.get)(this.context.steps,`[${p+1}].stepCount`):"final",d=r.useFlow?(0,En.filter)(this.context.steps,m=>m.flowId===f.flowId):[f];a[f.stepCount]={invoke:{id:f.stepCount,src:()=>_0(this,void 0,void 0,function*(){if(!f.done)return this.record.startTime=Date.now(),this.recordContext(f,{status:_u.STEP_STATUS.RUNNING}),this.record.status===_u.STEP_STATUS.FAILURE?yield Promise.all((0,En.map)(d,m=>this.doSkip(m))):yield Promise.all((0,En.map)(d,m=>this.handleSrc(m)))}),onDone:{target:h},onError:h}}});let c=(0,vtr.createMachine)({predictableActionArguments:!0,id:"step",initial:"init",states:a});(0,vtr.interpret)(c).onTransition(f=>f.value).start().send("INIT")}));return this.glog.__clear(),o})}getOutput(){let t={};return(0,En.each)(this.context.steps,r=>{(0,En.isNil)(r.output)||(0,En.set)(t,r.projectName,r.output)}),t}validate(){let{steps:t,command:r}=this.spec;(0,btr.default)(!(0,En.isEmpty)(t),"steps is required"),(0,btr.default)(r,"command is required")}download(t){return _0(this,void 0,void 0,function*(){let{command:r}=this.spec,n=[];for(let u of t){let i=this.glog.__generate(u.projectName),o=yield(0,Plu.default)(u.component,{logger:i,engineLogger:this.logger}),s=(0,En.get)(o,`commands.${r}.verify`);n.push(Object.assign(Object.assign({},u),{instance:o,logger:i,verify:(0,En.isUndefined)(s)?!0:s}))}return n})}getLogger(){let t=(0,En.get)(this.options,"logConfig.customLogger");if(t){if(m2("use custom logger"),(t==null?void 0:t.CODE)===Etr.default.CODE)return t;throw new Error("customLogger must be instance of Logger")}return new Etr.default(Object.assign(Object.assign({traceId:(0,_3.traceid)(),logDir:Dtr.default.join((0,_3.getRootHome)(),"logs")},this.options.logConfig),{level:(0,En.get)(this.options,"logConfig.level",this.spec.debug?"DEBUG":void 0)}))}recordContext(t,r={}){let{status:n,error:u,output:i,process_time:o,props:s,done:a}=r;this.context.stepCount=t.stepCount,this.context.steps=(0,En.map)(this.context.steps,c=>(c.stepCount===t.stepCount&&(n&&(c.status=n),u&&(c.error=u,this.context.error.push(u)),s&&(c.props=s),i&&(c.output=i),a&&(c.done=a),(0,En.has)(r,"process_time")&&(c.process_time=o)),c))}getFilterContext(t){let r={cwd:Dtr.default.dirname(this.spec.yaml.path),vars:this.spec.yaml.vars,resources:{},__runtime:this.options.verify?"enigne":"parse",__steps:this.context.steps};for(let n of this.context.steps)r.resources[n.projectName]={output:n.output||{},props:n.props||{}};return t&&(r.credential=t.credential,r.that={name:t.projectName,access:t.access,component:t.component,props:r.resources[t.projectName].props,output:r.resources[t.projectName].output}),r}doCompleted(){return _0(this,void 0,void 0,function*(){if(this.context.completed=!0,this.context.status===_u.STEP_STATUS.FAILURE)try{yield this.globalActionInstance.start(B0.IHookType.FAIL,this.context)}catch(t){this.context.status=_u.STEP_STATUS.FAILURE,this.context.error.push(t)}if(this.context.status===_u.STEP_STATUS.SUCCESS)try{yield this.globalActionInstance.start(B0.IHookType.SUCCESS,this.context)}catch(t){this.context.status=_u.STEP_STATUS.FAILURE,this.context.error.push(t)}try{yield this.globalActionInstance.start(B0.IHookType.COMPLETE,this.context)}catch(t){this.context.status=_u.STEP_STATUS.FAILURE,this.context.error.push(t)}})}handleSrc(t){var r,n,u;return _0(this,void 0,void 0,function*(){let{command:i}=this.spec;try{yield this.handleAfterSrc(t)}catch{try{let a=yield(r=this.actionInstance)===null||r===void 0?void 0:r.start(B0.IHookType.FAIL,this.record.componentProps);this.recordContext(t,(0,En.get)(a,"pluginOutput",{}))}catch(a){this.record.status=_u.STEP_STATUS.FAILURE,this.recordContext(t,{error:a})}}if(this.record.status===_u.STEP_STATUS.SUCCESS)try{this.actionInstance.setValue("magic",this.getFilterContext(t));let s=yield(n=this.actionInstance)===null||n===void 0?void 0:n.start(B0.IHookType.SUCCESS,Object.assign(Object.assign({},this.record.componentProps),{output:(0,En.get)(t,"output",{})}));this.recordContext(t,(0,En.get)(s,"pluginOutput",{}))}catch(s){this.record.status=_u.STEP_STATUS.FAILURE,this.recordContext(t,{error:s})}try{let s=yield(u=this.actionInstance)===null||u===void 0?void 0:u.start(B0.IHookType.COMPLETE,Object.assign(Object.assign({},this.record.componentProps),{output:(0,En.get)(t,"output",{})}));this.recordContext(t,(0,En.get)(s,"pluginOutput",{}))}catch(s){this.record.status=_u.STEP_STATUS.FAILURE,this.recordContext(t,{error:s})}let o=(0,d2.getProcessTime)(this.record.startTime);this.recordContext(t,{done:!0,process_time:o}),this.record.status===_u.STEP_STATUS.SUCCESS&&this.logger.write(`${IF.default.green("\u2714")} ${IF.default.gray(`[${t.projectName}] completed (${o}s)`)}`),this.record.status===_u.STEP_STATUS.FAILURE&&this.logger.write(`${IF.default.red("\u2716")} ${IF.default.gray(`[${t.projectName}] failed to [${i}] (${o}s)`)}`),this.glog.__unset(t.projectName)})}handleAfterSrc(t){var r;return _0(this,void 0,void 0,function*(){try{m2(`project item: ${(0,d2.stringify)(t)}`);let{command:n}=this.spec;t.credential=yield(0,d2.getCredential)(t.access,this.logger);let{AccessKeyID:u,AccessKeySecret:i}=t.credential;this.glog.__setSecret([u,i]);let o=this.parseSpecInstance.parseActions(t.actions,B0.IActionLevel.PROJECT);m2(`project actions: ${JSON.stringify(o)}`),this.actionInstance=new ytr.default(o,{hookLevel:B0.IActionLevel.PROJECT,projectName:t.projectName,logger:t.logger,skipActions:this.spec.skipActions}),this.actionInstance.setValue("magic",this.getFilterContext(t)),this.actionInstance.setValue("step",t),this.actionInstance.setValue("command",n);let s=yield this.getProps(t);this.actionInstance.setValue("componentProps",s);let a=yield(r=this.actionInstance)===null||r===void 0?void 0:r.start(B0.IHookType.PRE,s),c=yield this.doSrc(t,a);this.record.editStatusAble&&(this.record.status=_u.STEP_STATUS.SUCCESS),t.id&&(this.record.steps=Object.assign(Object.assign({},this.record.steps),{[t.id]:{status:_u.STEP_STATUS.SUCCESS,output:c}})),this.recordContext(t,{status:_u.STEP_STATUS.SUCCESS,output:c})}catch(n){let u=n,i=t["continue-on-error"]===!0?_u.STEP_STATUS.ERROR_WITH_CONTINUE:_u.STEP_STATUS.FAILURE;if(this.record.editStatusAble&&(this.record.status=i),i===_u.STEP_STATUS.FAILURE&&(this.record.editStatusAble=!1),t.id&&(this.record.steps=Object.assign(Object.assign({},this.record.steps),{[t.id]:{status:i}})),t["continue-on-error"])this.recordContext(t,{status:i});else throw this.recordContext(t,{status:i,error:u}),u}})}getProps(t){return _0(this,void 0,void 0,function*(){let r=this.getFilterContext(t);m2(`magic context: ${JSON.stringify(r)}`);let n=(0,B0.getInputs)(t.props,r),{projectName:u,command:i}=this.spec,o={cwd:this.options.cwd,name:(0,En.get)(this.spec,"yaml.appName"),props:n,command:i,args:(0,En.filter)(this.options.args,s=>!(0,En.includes)([u,i],s)),yaml:{path:(0,En.get)(this.spec,"yaml.path")},resource:{name:t.projectName,component:t.component,access:t.access},outputs:this.getOutput(),getCredential:()=>_0(this,void 0,void 0,function*(){let s=yield new Tlu.default({logger:this.logger}).get(t.access);return(0,En.get)(s,"credential",{})})};return this.recordContext(t,{props:n}),m2(`get props: ${JSON.stringify(o)}`),o})}doSrc(t,r={}){return _0(this,void 0,void 0,function*(){let{command:n="",projectName:u}=this.spec,i=yield this.getProps(t);if(this.record.componentProps=(0,En.isEmpty)(r.pluginOutput)?i:r.pluginOutput,m2(`component props: ${(0,d2.stringify)(this.record.componentProps)}`),this.actionInstance.setValue("componentProps",this.record.componentProps),u){if((0,En.isFunction)(t.instance[n]))try{return yield t.instance[n](this.record.componentProps)}catch(s){if((0,d2.getAllowFailure)(t.allow_failure,{exitCode:LF.EXIT_CODE.COMPONENT,command:n}))return;let c=s;throw new _3.DevsError(c.message,{data:(0,En.get)(s,"data"),stack:c.stack,exitCode:LF.EXIT_CODE.COMPONENT,prefix:`[${t.projectName}] failed to [${n}]:`})}if((0,d2.getAllowFailure)(t.allow_failure,{exitCode:LF.EXIT_CODE.DEVS,command:n}))return;throw new _3.DevsError(`The [${n}] command was not found.`,{exitCode:LF.EXIT_CODE.DEVS,tips:`Please check the component ${t.component} has the ${n} command. Serverless Devs documents\uFF1A${IF.default.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command")}`,prefix:`[${t.projectName}] failed to [${n}]:`})}if((0,En.isFunction)(t.instance[n]))try{return yield t.instance[n](this.record.componentProps)}catch(o){if((0,d2.getAllowFailure)(t.allow_failure,{exitCode:LF.EXIT_CODE.COMPONENT,command:n}))return;let a=o;throw new _3.DevsError(a.message,{data:(0,En.get)(o,"data"),stack:a.stack,exitCode:LF.EXIT_CODE.COMPONENT,prefix:`[${t.projectName}] failed to [${n}]:`})}this.logger.tips(`The [${n}] command was not found.`,`Please check the component ${t.component} has the ${n} command. Serverless Devs documents\uFF1Ahttps://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command`)})}doSkip(t){return _0(this,void 0,void 0,function*(){return t.id&&(this.record.steps=Object.assign(Object.assign({},this.record.steps),{[t.id]:{status:_u.STEP_STATUS.SKIP}})),this.recordContext(t,{status:_u.STEP_STATUS.SKIP,process_time:0}),Promise.resolve()})}};mc.default=HPe});var G5,XPe,JPe,gc,KPe,Atr,YPe,Ftr,klu,_tr,Btr=bt(()=>{G5=ut(Oue()),XPe=ut(require("path")),JPe=ut(Zr()),gc=ut(Jt());jr();yn();KPe=ut(Zr()),Atr=ut(Oue()),YPe=class{constructor(t,r={}){this.program=t;this.spec=r}async init(){let t=process.argv.slice(2),{_:r,help:n}=(0,KPe.parseArgv)(t);if(r.length===0&&n)return await this.showSimpleHelp();if(r.length===1&&(this.customProgram=this.program.command(r[0]).allowUnknownOption(),n))return await this.showHelp();if(r.length>1&&(this.customProgram=this.program.command(r[0]).allowUnknownOption(),n))return await this.showComflexHelp();this.customProgram.action(async()=>{await this.doExecCommand()})}async doExecCommand(){let t=process.argv.slice(2),{template:r,help:n,access:u,skipActions:i,debug:o,output:s}=(0,KPe.parseArgv)(t),a=await Atr.execCommand({syaml:r,serverName:this.spec.projectName,method:this.spec.command,args:process.argv.slice(2),globalArgs:{access:u,skipActions:i,debug:o,help:n,output:s}});$h(a)}async showSimpleHelp(){let{steps:t,components:r}=this.spec;if((0,gc.isEmpty)(t))return;let n=["Custom Commands"," Can be used in projects with Serverless Devs Yaml. Usage\uFF1A"," - s <component_command>\uFF1AOperate on the project, E.x: s deploy"," - s <project_name> <component_command>\uFF1AOperate on the resource, E.x: s website deploy"," More information: https://serverless.help/custom"];if(r.length===1)return(await Ftr((0,gc.first)(r))).join(`
1283
+ ${IF.default.gray("====================")}`),this.globalActionInstance=new ytr.default(r.actions,{hookLevel:B0.IActionLevel.GLOBAL,logger:this.logger,skipActions:this.spec.skipActions});let i=yield(0,d2.getCredential)(u,this.logger);this.context.credential=i;try{this.globalActionInstance.setValue("magic",this.getFilterContext()),this.globalActionInstance.setValue("command",n),yield this.globalActionInstance.start(B0.IHookType.PRE,{access:u,credential:i})}catch(s){return this.context.error.push(s),this.context.status=_u.STEP_STATUS.FAILURE,yield this.doCompleted(),this.context}this.context.steps=(0,En.map)(this.context.steps,s=>Object.assign(Object.assign({},s),{stepCount:(0,En.uniqueId)(),status:_u.STEP_STATUS.PENDING,done:!1}));let o=yield new Promise(s=>_0(this,void 0,void 0,function*(){let a={init:{on:{INIT:this.context.steps.length===0?"final":(0,En.get)(this.context.steps,"[0].stepCount")}},final:{type:"final",invoke:{src:()=>_0(this,void 0,void 0,function*(){let f=this.record.status===_u.STEP_STATUS.ERROR_WITH_CONTINUE?_u.STEP_STATUS.SUCCESS:this.record.status;this.context.status=f,yield this.doCompleted(),this.context.steps=(0,En.map)(this.context.steps,p=>(0,En.omit)(p,["instance"])),this.context.output=this.getOutput(),m2(`context: ${(0,d2.stringify)(this.context)}`),m2("engine end"),s(this.context)})}}};(0,En.each)(this.context.steps,(f,p)=>{let h=this.context.steps[p+1]?(0,En.get)(this.context.steps,`[${p+1}].stepCount`):"final",d=r.useFlow?(0,En.filter)(this.context.steps,m=>m.flowId===f.flowId):[f];a[f.stepCount]={invoke:{id:f.stepCount,src:()=>_0(this,void 0,void 0,function*(){if(!f.done)return this.record.startTime=Date.now(),this.recordContext(f,{status:_u.STEP_STATUS.RUNNING}),this.record.status===_u.STEP_STATUS.FAILURE?yield Promise.all((0,En.map)(d,m=>this.doSkip(m))):yield Promise.all((0,En.map)(d,m=>this.handleSrc(m)))}),onDone:{target:h},onError:h}}});let c=(0,vtr.createMachine)({predictableActionArguments:!0,id:"step",initial:"init",states:a});(0,vtr.interpret)(c).onTransition(f=>f.value).start().send("INIT")}));return this.glog.__clear(),o})}getOutput(){let t={};return(0,En.each)(this.context.steps,r=>{(0,En.isNil)(r.output)||(0,En.set)(t,r.projectName,r.output)}),t}validate(){let{steps:t,command:r}=this.spec;(0,btr.default)(!(0,En.isEmpty)(t),"steps is required"),(0,btr.default)(r,"command is required")}download(t){return _0(this,void 0,void 0,function*(){let{command:r}=this.spec,n=[];for(let u of t){let i=this.glog.__generate(u.projectName),o=yield(0,Plu.default)(u.component,{logger:i,engineLogger:this.logger}),s=(0,En.get)(o,`commands.${r}.verify`);n.push(Object.assign(Object.assign({},u),{instance:o,logger:i,verify:(0,En.isUndefined)(s)?!0:s}))}return n})}getLogger(){let t=(0,En.get)(this.options,"logConfig.customLogger");if(t){if(m2("use custom logger"),(t==null?void 0:t.CODE)===Etr.default.CODE)return t;throw new Error("customLogger must be instance of Logger")}return new Etr.default(Object.assign(Object.assign({traceId:(0,_3.traceid)(),logDir:Dtr.default.join((0,_3.getRootHome)(),"logs")},this.options.logConfig),{level:(0,En.get)(this.options,"logConfig.level",this.spec.debug?"DEBUG":void 0)}))}recordContext(t,r={}){let{status:n,error:u,output:i,process_time:o,props:s,done:a}=r;this.context.stepCount=t.stepCount,this.context.steps=(0,En.map)(this.context.steps,c=>(c.stepCount===t.stepCount&&(n&&(c.status=n),u&&(c.error=u,this.context.error.push(u)),s&&(c.props=s),i&&(c.output=i),a&&(c.done=a),(0,En.has)(r,"process_time")&&(c.process_time=o)),c))}getFilterContext(t){let r={cwd:Dtr.default.dirname(this.spec.yaml.path),vars:this.spec.yaml.vars,resources:{},__runtime:this.options.verify?"enigne":"parse",__steps:this.context.steps};for(let n of this.context.steps)r.resources[n.projectName]={output:n.output||{},props:n.props||{}};return t&&(r.credential=t.credential,r.that={name:t.projectName,access:t.access,component:t.component,props:r.resources[t.projectName].props,output:r.resources[t.projectName].output}),r}doCompleted(){return _0(this,void 0,void 0,function*(){if(this.context.completed=!0,this.context.status===_u.STEP_STATUS.FAILURE)try{yield this.globalActionInstance.start(B0.IHookType.FAIL,this.context)}catch(t){this.context.status=_u.STEP_STATUS.FAILURE,this.context.error.push(t)}if(this.context.status===_u.STEP_STATUS.SUCCESS)try{yield this.globalActionInstance.start(B0.IHookType.SUCCESS,this.context)}catch(t){this.context.status=_u.STEP_STATUS.FAILURE,this.context.error.push(t)}try{yield this.globalActionInstance.start(B0.IHookType.COMPLETE,this.context)}catch(t){this.context.status=_u.STEP_STATUS.FAILURE,this.context.error.push(t)}})}handleSrc(t){var r,n,u;return _0(this,void 0,void 0,function*(){let{command:i}=this.spec;try{yield this.handleAfterSrc(t)}catch{try{let a=yield(r=this.actionInstance)===null||r===void 0?void 0:r.start(B0.IHookType.FAIL,this.record.componentProps);this.recordContext(t,(0,En.get)(a,"pluginOutput",{}))}catch(a){this.record.status=_u.STEP_STATUS.FAILURE,this.recordContext(t,{error:a})}}if(this.record.status===_u.STEP_STATUS.SUCCESS)try{this.actionInstance.setValue("magic",this.getFilterContext(t));let s=yield(n=this.actionInstance)===null||n===void 0?void 0:n.start(B0.IHookType.SUCCESS,Object.assign(Object.assign({},this.record.componentProps),{output:(0,En.get)(t,"output",{})}));this.recordContext(t,(0,En.get)(s,"pluginOutput",{}))}catch(s){this.record.status=_u.STEP_STATUS.FAILURE,this.recordContext(t,{error:s})}try{let s=yield(u=this.actionInstance)===null||u===void 0?void 0:u.start(B0.IHookType.COMPLETE,Object.assign(Object.assign({},this.record.componentProps),{output:(0,En.get)(t,"output",{})}));this.recordContext(t,(0,En.get)(s,"pluginOutput",{}))}catch(s){this.record.status=_u.STEP_STATUS.FAILURE,this.recordContext(t,{error:s})}let o=(0,d2.getProcessTime)(this.record.startTime);this.recordContext(t,{done:!0,process_time:o}),this.record.status===_u.STEP_STATUS.SUCCESS&&this.logger.write(`${IF.default.green("\u2714")} ${IF.default.gray(`[${t.projectName}] completed (${o}s)`)}`),this.record.status===_u.STEP_STATUS.FAILURE&&this.logger.write(`${IF.default.red("\u2716")} ${IF.default.gray(`[${t.projectName}] failed to [${i}] (${o}s)`)}`),this.glog.__unset(t.projectName)})}handleAfterSrc(t){var r;return _0(this,void 0,void 0,function*(){try{m2(`project item: ${(0,d2.stringify)(t)}`);let{command:n}=this.spec;t.credential=yield(0,d2.getCredential)(t.access,this.logger);let{AccessKeyID:u,AccessKeySecret:i}=t.credential;this.glog.__setSecret([u,i]);let o=this.parseSpecInstance.parseActions(t.actions,B0.IActionLevel.PROJECT);m2(`project actions: ${JSON.stringify(o)}`),this.actionInstance=new ytr.default(o,{hookLevel:B0.IActionLevel.PROJECT,projectName:t.projectName,logger:t.logger,skipActions:this.spec.skipActions}),this.actionInstance.setValue("magic",this.getFilterContext(t)),this.actionInstance.setValue("step",t),this.actionInstance.setValue("command",n);let s=yield this.getProps(t);this.actionInstance.setValue("componentProps",s);let a=yield(r=this.actionInstance)===null||r===void 0?void 0:r.start(B0.IHookType.PRE,s),c=yield this.doSrc(t,a);this.record.editStatusAble&&(this.record.status=_u.STEP_STATUS.SUCCESS),t.id&&(this.record.steps=Object.assign(Object.assign({},this.record.steps),{[t.id]:{status:_u.STEP_STATUS.SUCCESS,output:c}})),this.recordContext(t,{status:_u.STEP_STATUS.SUCCESS,output:c})}catch(n){let u=n,i=t["continue-on-error"]===!0?_u.STEP_STATUS.ERROR_WITH_CONTINUE:_u.STEP_STATUS.FAILURE;if(this.record.editStatusAble&&(this.record.status=i),i===_u.STEP_STATUS.FAILURE&&(this.record.editStatusAble=!1),t.id&&(this.record.steps=Object.assign(Object.assign({},this.record.steps),{[t.id]:{status:i}})),t["continue-on-error"])this.recordContext(t,{status:i});else throw this.recordContext(t,{status:i,error:u}),u}})}getProps(t){return _0(this,void 0,void 0,function*(){let r=this.getFilterContext(t);m2(`magic context: ${JSON.stringify(r)}`);let n=(0,B0.getInputs)(t.props,r),{projectName:u,command:i}=this.spec,o={cwd:this.options.cwd,name:(0,En.get)(this.spec,"yaml.appName"),props:n,command:i,args:(0,En.filter)(this.options.args,s=>!(0,En.includes)([u,i],s)),yaml:{path:(0,En.get)(this.spec,"yaml.path")},resource:{name:t.projectName,component:t.component,access:t.access},outputs:this.getOutput(),getCredential:()=>_0(this,void 0,void 0,function*(){let s=yield new Tlu.default({logger:this.logger}).get(t.access);return(0,En.get)(s,"credential",{})})};return this.recordContext(t,{props:n}),m2(`get props: ${JSON.stringify(o)}`),o})}doSrc(t,r={}){return _0(this,void 0,void 0,function*(){let{command:n="",projectName:u}=this.spec,i=yield this.getProps(t);if(this.record.componentProps=(0,En.isEmpty)(r.pluginOutput)?i:r.pluginOutput,m2(`component props: ${(0,d2.stringify)(this.record.componentProps)}`),this.actionInstance.setValue("componentProps",this.record.componentProps),u){if((0,En.isFunction)(t.instance[n]))try{return yield t.instance[n](this.record.componentProps)}catch(s){if((0,d2.getAllowFailure)(t.allow_failure,{exitCode:LF.EXIT_CODE.COMPONENT,command:n}))return;let c=s;throw new _3.DevsError(c.message,{data:(0,En.get)(s,"data"),stack:c.stack,exitCode:LF.EXIT_CODE.COMPONENT,prefix:`[${t.projectName}] failed to [${n}]:`})}if((0,d2.getAllowFailure)(t.allow_failure,{exitCode:LF.EXIT_CODE.DEVS,command:n}))return;throw new _3.DevsError(`The [${n}] command was not found.`,{exitCode:LF.EXIT_CODE.DEVS,tips:`Please check the component ${t.component} has the ${n} command. Serverless Devs documents\uFF1A${IF.default.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command")}`,prefix:`[${t.projectName}] failed to [${n}]:`})}if((0,En.isFunction)(t.instance[n]))try{return yield t.instance[n](this.record.componentProps)}catch(o){if((0,d2.getAllowFailure)(t.allow_failure,{exitCode:LF.EXIT_CODE.COMPONENT,command:n}))return;let a=o;throw new _3.DevsError(a.message,{data:(0,En.get)(o,"data"),stack:a.stack,exitCode:LF.EXIT_CODE.COMPONENT,prefix:`[${t.projectName}] failed to [${n}]:`})}this.logger.tips(`The [${n}] command was not found.`,`Please check the component ${t.component} has the ${n} command. Serverless Devs documents\uFF1Ahttps://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command`)})}doSkip(t){return _0(this,void 0,void 0,function*(){return t.id&&(this.record.steps=Object.assign(Object.assign({},this.record.steps),{[t.id]:{status:_u.STEP_STATUS.SKIP}})),this.recordContext(t,{status:_u.STEP_STATUS.SKIP,process_time:0}),Promise.resolve()})}};mc.default=HPe});var G5,XPe,JPe,gc,KPe,Atr,YPe,Ftr,klu,_tr,Btr=bt(()=>{G5=ut(Oue()),XPe=ut(require("path")),JPe=ut(Zr()),gc=ut(Jt());jr();yn();KPe=ut(Zr()),Atr=ut(Oue()),YPe=class{constructor(t,r={}){this.program=t;this.spec=r}async init(){let t=process.argv.slice(2),{_:r,help:n}=(0,KPe.parseArgv)(t);if(r.length===0&&n)return await this.showSimpleHelp();if(r.length===1&&(this.customProgram=this.program.command(r[0]).allowUnknownOption(),n))return await this.showHelp();if(r.length>1&&(this.customProgram=this.program.command(r[0]).allowUnknownOption(),n))return await this.showComflexHelp();this.customProgram.action(async()=>{await this.doExecCommand()})}async doExecCommand(){let t=process.argv.slice(2),{template:r,help:n,access:u,debug:i,output:o,...s}=(0,KPe.parseArgv)(t),a=await Atr.execCommand({syaml:r,serverName:this.spec.projectName,method:this.spec.command,args:process.argv.slice(2),globalArgs:{access:u,skipActions:s["skip-actions"],debug:i,help:n,output:o}});$h(a)}async showSimpleHelp(){let{steps:t,components:r}=this.spec;if((0,gc.isEmpty)(t))return;let n=["Custom Commands"," Can be used in projects with Serverless Devs Yaml. Usage\uFF1A"," - s <component_command>\uFF1AOperate on the project, E.x: s deploy"," - s <project_name> <component_command>\uFF1AOperate on the resource, E.x: s website deploy"," More information: https://serverless.help/custom"];if(r.length===1)return(await Ftr((0,gc.first)(r))).join(`
1284
1284
  `);let u={};return(0,gc.each)(t,i=>{u[`${i.projectName} [options]`]=`Please use [s ${i.projectName} -h] obtain the documentation.`}),n.push(G5.publishHelp.helpInfo(u,"",27)),n.join(`
1285
1285
  `)}async showHelp(){var n;let{projectName:t,steps:r}=this.spec;if(this.customProgram.helpInformation=()=>"",t){let u=(n=(0,gc.find)(r,o=>o.projectName===t))==null?void 0:n.component,i=await klu(u);return this.customProgram.helpInformation=()=>i}return await this.doExecCommand()}async showComflexHelp(){return this.customProgram.helpInformation=()=>"",await this.doExecCommand()}},Ftr=async e=>{let t=[],r=await(0,G5.loadComponent)(e),n=XPe.default.join(r.__path,"publish.yaml"),i=(0,JPe.getYamlContent)(n).Commands;if(i)for(let a in i)t.push({[a]:i[a]});let o=(0,gc.isPlainObject)((0,gc.first)((0,gc.values)((0,gc.get)(t,"[0]")))),s=[];if(o){s.push(gt.underline(gt.bold(`Custom Commands
1286
1286
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serverless-devs/s3",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",
5
5
  "homepage": "https://www.serverless-devs.com",
6
6
  "keywords": [