@serverless-devs/s 2.0.94 → 2.0.95-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/lib/clean/index.js +12 -12
  2. package/lib/cli/cli-manager.js +9 -9
  3. package/lib/cli/index.js +42 -42
  4. package/lib/component/index.js +81 -81
  5. package/lib/config/add/index.js +13 -13
  6. package/lib/config/delete/index.js +34 -34
  7. package/lib/config/get/index.js +20 -20
  8. package/lib/config/index.js +12 -12
  9. package/lib/core/command/command-manager.js +4 -4
  10. package/lib/core/component/hook.js +4 -4
  11. package/lib/core/component/index.js +9 -9
  12. package/lib/error/human-error.js +5 -5
  13. package/lib/error/human-warning.js +4 -4
  14. package/lib/error/index.js +9 -9
  15. package/lib/index.js +121 -101
  16. package/lib/init/index.js +97 -82
  17. package/lib/init/init-manager.js +11 -11
  18. package/lib/onboarding/index.js +5 -5
  19. package/lib/set/analysis/index.js +15 -15
  20. package/lib/set/index.js +12 -12
  21. package/lib/set/locale/index.js +26 -26
  22. package/lib/set/registry/index.js +26 -26
  23. package/lib/set/workspace/index.js +15 -15
  24. package/lib/specification/parse.js +10 -10
  25. package/lib/update-notifier/index.js +19 -19
  26. package/lib/utils/command-util.js +9 -9
  27. package/lib/utils/common.js +6 -6
  28. package/lib/utils/index.js +3 -3
  29. package/package.json +2 -2
  30. package/spec/zh/0.0.1/serverless_registry_model/2.overview_and_terminology.md +1 -1
  31. package/spec/zh/0.0.1/serverless_registry_model/3.registry_model.md +2 -2
  32. package/spec/zh/0.0.1/serverless_registry_model/5.design_principles.md +1 -1
  33. package/test/ci.sh +33 -0
  34. package/test/start-fc-http-nodejs12/code/index.js +47 -0
  35. package/test/start-fc-http-nodejs12/s.yaml +38 -0
@@ -31,18 +31,18 @@ __p += '`),z&&(I+=`' +
31
31
  function print() { __p += __j.call(arguments, '') }
32
32
  `:`;
33
33
  `)+I+`return __p
34
- }`;var B=il(function(){return Y(h,N+"return "+I).apply(i,d)});if(B.source=I,Ks(B))throw B;return B}function t0(e){return Z(e).toLowerCase()}function n0(e){return Z(e).toUpperCase()}function r0(e,t,n){if(e=Z(e),e&&(n||t===i))return ho(e);if(!e||!(t=Ne(t)))return e;var u=et(e),l=et(t),h=po(u,l),d=go(u,l)+1;return qt(u,h,d).join("")}function i0(e,t,n){if(e=Z(e),e&&(n||t===i))return e.slice(0,vo(e)+1);if(!e||!(t=Ne(t)))return e;var u=et(e),l=go(u,et(t))+1;return qt(u,0,l).join("")}function s0(e,t,n){if(e=Z(e),e&&(n||t===i))return e.replace(Ki,"");if(!e||!(t=Ne(t)))return e;var u=et(e),l=po(u,et(t));return qt(u,l).join("")}function u0(e,t){var n=Qc,u=eh;if(se(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?Ne(t.omission):u}e=Z(e);var h=e.length;if(pn(e)){var d=et(e);h=d.length}if(n>=h)return e;var g=n-dn(u);if(g<1)return u;var m=d?qt(d,0,g).join(""):e.slice(0,g);if(l===i)return m+u;if(d&&(g+=m.length-g),Xs(l)){if(e.slice(g).search(l)){var S,O=m;for(l.global||(l=os(l.source,Z(Pu.exec(l))+"g")),l.lastIndex=0;S=l.exec(O);)var I=S.index;m=m.slice(0,I===i?g:I)}}else if(e.indexOf(Ne(l),g)!=g){var C=m.lastIndexOf(l);C>-1&&(m=m.slice(0,C))}return m+u}function o0(e){return e=Z(e),e&&mh.test(e)?e.replace(Lu,qp):e}var a0=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),zs=sa("toUpperCase");function rl(e,t,n){return e=Z(e),t=n?i:t,t===i?Lp(e)?Hp(e):Ap(e):e.match(t)||[]}var il=X(function(e,t){try{return De(e,i,t)}catch(n){return Ks(n)?n:new H(n)}}),l0=mt(function(e,t){return Ue(t,function(n){n=lt(n),_t(e,n,Us(e[n],e))}),e});function f0(e){var t=e==null?0:e.length,n=q();return e=t?ie(e,function(u){if(typeof u[1]!="function")throw new Be(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(De(h[0],this,u))return De(h[1],this,u)}})}function c0(e){return qd(Xe(e,p))}function Vs(e){return function(){return e}}function h0(e,t){return e==null||e!==e?t:e}var p0=oa(),d0=oa(!0);function Le(e){return e}function Ys(e){return Fo(typeof e=="function"?e:Xe(e,p))}function g0(e){return Ho(Xe(e,p))}function _0(e,t){return Go(e,Xe(t,p))}var v0=X(function(e,t){return function(n){return Zn(n,e,t)}}),m0=X(function(e,t){return function(n){return Zn(e,n,t)}});function Zs(e,t,n){var u=pe(t),l=kr(t,u);n==null&&!(se(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=kr(t,pe(t)));var h=!(se(n)&&"chain"in n)||!!n.chain,d=Et(e);return Ue(l,function(g){var m=t[g];e[g]=m,d&&(e.prototype[g]=function(){var S=this.__chain__;if(h||S){var O=e(this.__wrapped__),I=O.__actions__=Ce(this.__actions__);return I.push({func:m,args:arguments,thisArg:e}),O.__chain__=S,O}return m.apply(e,bt([this.value()],arguments))})}),e}function y0(){return he._===this&&(he._=Xp),this}function Js(){}function E0(e){return e=U(e),X(function(t){return Wo(t,e)})}var w0=bs(ie),A0=bs(oo),x0=bs(es);function sl(e){return qs(e)?ts(lt(e)):Qd(e)}function S0(e){return function(t){return e==null?i:jt(e,t)}}var O0=la(),I0=la(!0);function Qs(){return[]}function eu(){return!1}function R0(){return{}}function C0(){return""}function b0(){return!0}function T0(e,t){if(e=U(e),e<1||e>Rt)return[];var n=ut,u=ye(e,ut);t=q(t),e-=ut;for(var l=is(u,t);++n<e;)t(n);return l}function L0(e){return G(e)?ie(e,lt):qe(e)?[e]:Ce(Oa(Z(e)))}function $0(e){var t=++Bp;return Z(e)+t}var D0=Qr(function(e,t){return e+t},0),P0=Ts("ceil"),N0=Qr(function(e,t){return e/t},1),q0=Ts("floor");function F0(e){return e&&e.length?jr(e,Le,gs):i}function M0(e,t){return e&&e.length?jr(e,q(t,2),gs):i}function H0(e){return fo(e,Le)}function G0(e,t){return fo(e,q(t,2))}function W0(e){return e&&e.length?jr(e,Le,ys):i}function U0(e,t){return e&&e.length?jr(e,q(t,2),ys):i}var B0=Qr(function(e,t){return e*t},1),K0=Ts("round"),X0=Qr(function(e,t){return e-t},0);function j0(e){return e&&e.length?rs(e,Le):0}function k0(e,t){return e&&e.length?rs(e,q(t,2)):0}return c.after=gv,c.ary=qa,c.assign=nm,c.assignIn=Ya,c.assignInWith=hi,c.assignWith=rm,c.at=im,c.before=Fa,c.bind=Us,c.bindAll=l0,c.bindKey=Ma,c.castArray=Rv,c.chain=Da,c.chunk=qg,c.compact=Fg,c.concat=Mg,c.cond=f0,c.conforms=c0,c.constant=Vs,c.countBy=j_,c.create=sm,c.curry=Ha,c.curryRight=Ga,c.debounce=Wa,c.defaults=um,c.defaultsDeep=om,c.defer=_v,c.delay=vv,c.difference=Hg,c.differenceBy=Gg,c.differenceWith=Wg,c.drop=Ug,c.dropRight=Bg,c.dropRightWhile=Kg,c.dropWhile=Xg,c.fill=jg,c.filter=z_,c.flatMap=Z_,c.flatMapDeep=J_,c.flatMapDepth=Q_,c.flatten=ba,c.flattenDeep=kg,c.flattenDepth=zg,c.flip=mv,c.flow=p0,c.flowRight=d0,c.fromPairs=Vg,c.functions=dm,c.functionsIn=gm,c.groupBy=ev,c.initial=Zg,c.intersection=Jg,c.intersectionBy=Qg,c.intersectionWith=e_,c.invert=vm,c.invertBy=mm,c.invokeMap=nv,c.iteratee=Ys,c.keyBy=rv,c.keys=pe,c.keysIn=Te,c.map=ui,c.mapKeys=Em,c.mapValues=wm,c.matches=g0,c.matchesProperty=_0,c.memoize=ai,c.merge=Am,c.mergeWith=Za,c.method=v0,c.methodOf=m0,c.mixin=Zs,c.negate=li,c.nthArg=E0,c.omit=xm,c.omitBy=Sm,c.once=yv,c.orderBy=iv,c.over=w0,c.overArgs=Ev,c.overEvery=A0,c.overSome=x0,c.partial=Bs,c.partialRight=Ua,c.partition=sv,c.pick=Om,c.pickBy=Ja,c.property=sl,c.propertyOf=S0,c.pull=i_,c.pullAll=La,c.pullAllBy=s_,c.pullAllWith=u_,c.pullAt=o_,c.range=O0,c.rangeRight=I0,c.rearg=wv,c.reject=av,c.remove=a_,c.rest=Av,c.reverse=Gs,c.sampleSize=fv,c.set=Rm,c.setWith=Cm,c.shuffle=cv,c.slice=l_,c.sortBy=dv,c.sortedUniq=__,c.sortedUniqBy=v_,c.split=Zm,c.spread=xv,c.tail=m_,c.take=y_,c.takeRight=E_,c.takeRightWhile=w_,c.takeWhile=A_,c.tap=F_,c.throttle=Sv,c.thru=si,c.toArray=ka,c.toPairs=Qa,c.toPairsIn=el,c.toPath=L0,c.toPlainObject=Va,c.transform=bm,c.unary=Ov,c.union=x_,c.unionBy=S_,c.unionWith=O_,c.uniq=I_,c.uniqBy=R_,c.uniqWith=C_,c.unset=Tm,c.unzip=Ws,c.unzipWith=$a,c.update=Lm,c.updateWith=$m,c.values=xn,c.valuesIn=Dm,c.without=b_,c.words=rl,c.wrap=Iv,c.xor=T_,c.xorBy=L_,c.xorWith=$_,c.zip=D_,c.zipObject=P_,c.zipObjectDeep=N_,c.zipWith=q_,c.entries=Qa,c.entriesIn=el,c.extend=Ya,c.extendWith=hi,Zs(c,c),c.add=D0,c.attempt=il,c.camelCase=Fm,c.capitalize=tl,c.ceil=P0,c.clamp=Pm,c.clone=Cv,c.cloneDeep=Tv,c.cloneDeepWith=Lv,c.cloneWith=bv,c.conformsTo=$v,c.deburr=nl,c.defaultTo=h0,c.divide=N0,c.endsWith=Mm,c.eq=nt,c.escape=Hm,c.escapeRegExp=Gm,c.every=k_,c.find=V_,c.findIndex=Ra,c.findKey=am,c.findLast=Y_,c.findLastIndex=Ca,c.findLastKey=lm,c.floor=q0,c.forEach=Pa,c.forEachRight=Na,c.forIn=fm,c.forInRight=cm,c.forOwn=hm,c.forOwnRight=pm,c.get=js,c.gt=Dv,c.gte=Pv,c.has=_m,c.hasIn=ks,c.head=Ta,c.identity=Le,c.includes=tv,c.indexOf=Yg,c.inRange=Nm,c.invoke=ym,c.isArguments=Vt,c.isArray=G,c.isArrayBuffer=Nv,c.isArrayLike=be,c.isArrayLikeObject=oe,c.isBoolean=qv,c.isBuffer=Ft,c.isDate=Fv,c.isElement=Mv,c.isEmpty=Hv,c.isEqual=Gv,c.isEqualWith=Wv,c.isError=Ks,c.isFinite=Uv,c.isFunction=Et,c.isInteger=Ba,c.isLength=fi,c.isMap=Ka,c.isMatch=Bv,c.isMatchWith=Kv,c.isNaN=Xv,c.isNative=jv,c.isNil=zv,c.isNull=kv,c.isNumber=Xa,c.isObject=se,c.isObjectLike=ue,c.isPlainObject=rr,c.isRegExp=Xs,c.isSafeInteger=Vv,c.isSet=ja,c.isString=ci,c.isSymbol=qe,c.isTypedArray=An,c.isUndefined=Yv,c.isWeakMap=Zv,c.isWeakSet=Jv,c.join=t_,c.kebabCase=Wm,c.last=ke,c.lastIndexOf=n_,c.lowerCase=Um,c.lowerFirst=Bm,c.lt=Qv,c.lte=em,c.max=F0,c.maxBy=M0,c.mean=H0,c.meanBy=G0,c.min=W0,c.minBy=U0,c.stubArray=Qs,c.stubFalse=eu,c.stubObject=R0,c.stubString=C0,c.stubTrue=b0,c.multiply=B0,c.nth=r_,c.noConflict=y0,c.noop=Js,c.now=oi,c.pad=Km,c.padEnd=Xm,c.padStart=jm,c.parseInt=km,c.random=qm,c.reduce=uv,c.reduceRight=ov,c.repeat=zm,c.replace=Vm,c.result=Im,c.round=K0,c.runInContext=v,c.sample=lv,c.size=hv,c.snakeCase=Ym,c.some=pv,c.sortedIndex=f_,c.sortedIndexBy=c_,c.sortedIndexOf=h_,c.sortedLastIndex=p_,c.sortedLastIndexBy=d_,c.sortedLastIndexOf=g_,c.startCase=Jm,c.startsWith=Qm,c.subtract=X0,c.sum=j0,c.sumBy=k0,c.template=e0,c.times=T0,c.toFinite=wt,c.toInteger=U,c.toLength=za,c.toLower=t0,c.toNumber=ze,c.toSafeInteger=tm,c.toString=Z,c.toUpper=n0,c.trim=r0,c.trimEnd=i0,c.trimStart=s0,c.truncate=u0,c.unescape=o0,c.uniqueId=$0,c.upperCase=a0,c.upperFirst=zs,c.each=Pa,c.eachRight=Na,c.first=Ta,Zs(c,function(){var e={};return ot(c,function(t,n){Q.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,Ue(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),Ue(["drop","take"],function(e,t){k.prototype[e]=function(n){n=n===i?1:ce(U(n),0);var u=this.__filtered__&&!t?new k(this):this.clone();return u.__filtered__?u.__takeCount__=ye(n,u.__takeCount__):u.__views__.push({size:ye(n,ut),type:e+(u.__dir__<0?"Right":"")}),u},k.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Ue(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Cu||n==ih;k.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:q(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),Ue(["head","last"],function(e,t){var n="take"+(t?"Right":"");k.prototype[e]=function(){return this[n](1).value()[0]}}),Ue(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");k.prototype[e]=function(){return this.__filtered__?new k(this):this[n](1)}}),k.prototype.compact=function(){return this.filter(Le)},k.prototype.find=function(e){return this.filter(e).head()},k.prototype.findLast=function(e){return this.reverse().find(e)},k.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new k(this):this.map(function(n){return Zn(n,e,t)})}),k.prototype.reject=function(e){return this.filter(li(q(e)))},k.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new k(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},k.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},k.prototype.toArray=function(){return this.take(ut)},ot(k.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var d=this.__wrapped__,g=u?[1]:arguments,m=d instanceof k,S=g[0],O=m||G(d),I=function(j){var z=l.apply(c,bt([j],g));return u&&C?z[0]:z};O&&n&&typeof S=="function"&&S.length!=1&&(m=O=!1);var C=this.__chain__,N=!!this.__actions__.length,F=h&&!C,B=m&&!N;if(!h&&O){d=B?d:new k(this);var M=e.apply(d,g);return M.__actions__.push({func:si,args:[I],thisArg:i}),new Ke(M,C)}return F&&B?e.apply(this,g):(M=this.thru(I),F?u?M.value()[0]:M.value():M)})}),Ue(["pop","push","shift","sort","splice","unshift"],function(e){var t=Lr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(d){return t.apply(G(d)?d:[],l)})}}),ot(k.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";Q.call(vn,u)||(vn[u]=[]),vn[u].push({name:t,func:n})}}),vn[Jr(i,Ge).name]=[{name:"wrapper",func:i}],k.prototype.clone=od,k.prototype.reverse=ad,k.prototype.value=ld,c.prototype.at=M_,c.prototype.chain=H_,c.prototype.commit=G_,c.prototype.next=W_,c.prototype.plant=B_,c.prototype.reverse=K_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=X_,c.prototype.first=c.prototype.head,Kn&&(c.prototype[Kn]=U_),c},Lt=Gp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(he._=Lt,define(function(){return Lt})):Wt?((Wt.exports=Lt)._=Lt,Yi._=Lt):he._=Lt}).call(Sn)});var or=L((Aw,_l)=>{var Y0="2.0.0",Z0=256,J0=Number.MAX_SAFE_INTEGER||9007199254740991,Q0=16;_l.exports={SEMVER_SPEC_VERSION:Y0,MAX_LENGTH:Z0,MAX_SAFE_INTEGER:J0,MAX_SAFE_COMPONENT_LENGTH:Q0}});var ar=L((xw,vl)=>{var e1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};vl.exports=e1});var Jt=L((Mt,ml)=>{var{MAX_SAFE_COMPONENT_LENGTH:iu}=or(),t1=ar();Mt=ml.exports={};var n1=Mt.re=[],$=Mt.src=[],D=Mt.t={},r1=0,K=(i,r,s)=>{let o=r1++;t1(o,r),D[i]=o,$[o]=r,n1[o]=new RegExp(r,s?"g":void 0)};K("NUMERICIDENTIFIER","0|[1-9]\\d*");K("NUMERICIDENTIFIERLOOSE","[0-9]+");K("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");K("MAINVERSION",`(${$[D.NUMERICIDENTIFIER]})\\.(${$[D.NUMERICIDENTIFIER]})\\.(${$[D.NUMERICIDENTIFIER]})`);K("MAINVERSIONLOOSE",`(${$[D.NUMERICIDENTIFIERLOOSE]})\\.(${$[D.NUMERICIDENTIFIERLOOSE]})\\.(${$[D.NUMERICIDENTIFIERLOOSE]})`);K("PRERELEASEIDENTIFIER",`(?:${$[D.NUMERICIDENTIFIER]}|${$[D.NONNUMERICIDENTIFIER]})`);K("PRERELEASEIDENTIFIERLOOSE",`(?:${$[D.NUMERICIDENTIFIERLOOSE]}|${$[D.NONNUMERICIDENTIFIER]})`);K("PRERELEASE",`(?:-(${$[D.PRERELEASEIDENTIFIER]}(?:\\.${$[D.PRERELEASEIDENTIFIER]})*))`);K("PRERELEASELOOSE",`(?:-?(${$[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[D.PRERELEASEIDENTIFIERLOOSE]})*))`);K("BUILDIDENTIFIER","[0-9A-Za-z-]+");K("BUILD",`(?:\\+(${$[D.BUILDIDENTIFIER]}(?:\\.${$[D.BUILDIDENTIFIER]})*))`);K("FULLPLAIN",`v?${$[D.MAINVERSION]}${$[D.PRERELEASE]}?${$[D.BUILD]}?`);K("FULL",`^${$[D.FULLPLAIN]}$`);K("LOOSEPLAIN",`[v=\\s]*${$[D.MAINVERSIONLOOSE]}${$[D.PRERELEASELOOSE]}?${$[D.BUILD]}?`);K("LOOSE",`^${$[D.LOOSEPLAIN]}$`);K("GTLT","((?:<|>)?=?)");K("XRANGEIDENTIFIERLOOSE",`${$[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);K("XRANGEIDENTIFIER",`${$[D.NUMERICIDENTIFIER]}|x|X|\\*`);K("XRANGEPLAIN",`[v=\\s]*(${$[D.XRANGEIDENTIFIER]})(?:\\.(${$[D.XRANGEIDENTIFIER]})(?:\\.(${$[D.XRANGEIDENTIFIER]})(?:${$[D.PRERELEASE]})?${$[D.BUILD]}?)?)?`);K("XRANGEPLAINLOOSE",`[v=\\s]*(${$[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[D.XRANGEIDENTIFIERLOOSE]})(?:${$[D.PRERELEASELOOSE]})?${$[D.BUILD]}?)?)?`);K("XRANGE",`^${$[D.GTLT]}\\s*${$[D.XRANGEPLAIN]}$`);K("XRANGELOOSE",`^${$[D.GTLT]}\\s*${$[D.XRANGEPLAINLOOSE]}$`);K("COERCE",`(^|[^\\d])(\\d{1,${iu}})(?:\\.(\\d{1,${iu}}))?(?:\\.(\\d{1,${iu}}))?(?:$|[^\\d])`);K("COERCERTL",$[D.COERCE],!0);K("LONETILDE","(?:~>?)");K("TILDETRIM",`(\\s*)${$[D.LONETILDE]}\\s+`,!0);Mt.tildeTrimReplace="$1~";K("TILDE",`^${$[D.LONETILDE]}${$[D.XRANGEPLAIN]}$`);K("TILDELOOSE",`^${$[D.LONETILDE]}${$[D.XRANGEPLAINLOOSE]}$`);K("LONECARET","(?:\\^)");K("CARETTRIM",`(\\s*)${$[D.LONECARET]}\\s+`,!0);Mt.caretTrimReplace="$1^";K("CARET",`^${$[D.LONECARET]}${$[D.XRANGEPLAIN]}$`);K("CARETLOOSE",`^${$[D.LONECARET]}${$[D.XRANGEPLAINLOOSE]}$`);K("COMPARATORLOOSE",`^${$[D.GTLT]}\\s*(${$[D.LOOSEPLAIN]})$|^$`);K("COMPARATOR",`^${$[D.GTLT]}\\s*(${$[D.FULLPLAIN]})$|^$`);K("COMPARATORTRIM",`(\\s*)${$[D.GTLT]}\\s*(${$[D.LOOSEPLAIN]}|${$[D.XRANGEPLAIN]})`,!0);Mt.comparatorTrimReplace="$1$2$3";K("HYPHENRANGE",`^\\s*(${$[D.XRANGEPLAIN]})\\s+-\\s+(${$[D.XRANGEPLAIN]})\\s*$`);K("HYPHENRANGELOOSE",`^\\s*(${$[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[D.XRANGEPLAINLOOSE]})\\s*$`);K("STAR","(<|>)?=?\\s*\\*");K("GTE0","^\\s*>=\\s*0.0.0\\s*$");K("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var lr=L((Sw,yl)=>{var i1=["includePrerelease","loose","rtl"],s1=i=>i?typeof i!="object"?{loose:!0}:i1.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};yl.exports=s1});var di=L((Ow,Al)=>{var El=/^[0-9]+$/,wl=(i,r)=>{let s=El.test(i),o=El.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},u1=(i,r)=>wl(r,i);Al.exports={compareIdentifiers:wl,rcompareIdentifiers:u1}});var we=L((Iw,Il)=>{var gi=ar(),{MAX_LENGTH:xl,MAX_SAFE_INTEGER:_i}=or(),{re:Sl,t:Ol}=Jt(),o1=lr(),{compareIdentifiers:fr}=di(),Ve=class{constructor(r,s){if(s=o1(s),r instanceof Ve){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>xl)throw new TypeError(`version is longer than ${xl} characters`);gi("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?Sl[Ol.LOOSE]:Sl[Ol.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>_i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let a=+f;if(a>=0&&a<_i)return a}return f}):this.prerelease=[],this.build=o[5]?o[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(r){if(gi("SemVer.compare",this.version,this.options,r),!(r instanceof Ve)){if(typeof r=="string"&&r===this.version)return 0;r=new Ve(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Ve||(r=new Ve(r,this.options)),fr(this.major,r.major)||fr(this.minor,r.minor)||fr(this.patch,r.patch)}comparePre(r){if(r instanceof Ve||(r=new Ve(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(gi("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return fr(o,f)}while(++s)}compareBuild(r){r instanceof Ve||(r=new Ve(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(gi("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return fr(o,f)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};Il.exports=Ve});var Qt=L((Rw,Tl)=>{var{MAX_LENGTH:a1}=or(),{re:Rl,t:Cl}=Jt(),bl=we(),l1=lr(),f1=(i,r)=>{if(r=l1(r),i instanceof bl)return i;if(typeof i!="string"||i.length>a1||!(r.loose?Rl[Cl.LOOSE]:Rl[Cl.FULL]).test(i))return null;try{return new bl(i,r)}catch{return null}};Tl.exports=f1});var $l=L((Cw,Ll)=>{var c1=Qt(),h1=(i,r)=>{let s=c1(i,r);return s?s.version:null};Ll.exports=h1});var Pl=L((bw,Dl)=>{var p1=Qt(),d1=(i,r)=>{let s=p1(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};Dl.exports=d1});var ql=L((Tw,Nl)=>{var g1=we(),_1=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new g1(i,s).inc(r,o).version}catch{return null}};Nl.exports=_1});var Ye=L((Lw,Ml)=>{var Fl=we(),v1=(i,r,s)=>new Fl(i,s).compare(new Fl(r,s));Ml.exports=v1});var vi=L(($w,Hl)=>{var m1=Ye(),y1=(i,r,s)=>m1(i,r,s)===0;Hl.exports=y1});var Ul=L((Dw,Wl)=>{var Gl=Qt(),E1=vi(),w1=(i,r)=>{if(E1(i,r))return null;{let s=Gl(i),o=Gl(r),f=s.prerelease.length||o.prerelease.length,a=f?"pre":"",_=f?"prerelease":"";for(let y in s)if((y==="major"||y==="minor"||y==="patch")&&s[y]!==o[y])return a+y;return _}};Wl.exports=w1});var Kl=L((Pw,Bl)=>{var A1=we(),x1=(i,r)=>new A1(i,r).major;Bl.exports=x1});var jl=L((Nw,Xl)=>{var S1=we(),O1=(i,r)=>new S1(i,r).minor;Xl.exports=O1});var zl=L((qw,kl)=>{var I1=we(),R1=(i,r)=>new I1(i,r).patch;kl.exports=R1});var Yl=L((Fw,Vl)=>{var C1=Qt(),b1=(i,r)=>{let s=C1(i,r);return s&&s.prerelease.length?s.prerelease:null};Vl.exports=b1});var Jl=L((Mw,Zl)=>{var T1=Ye(),L1=(i,r,s)=>T1(r,i,s);Zl.exports=L1});var ef=L((Hw,Ql)=>{var $1=Ye(),D1=(i,r)=>$1(i,r,!0);Ql.exports=D1});var mi=L((Gw,nf)=>{var tf=we(),P1=(i,r,s)=>{let o=new tf(i,s),f=new tf(r,s);return o.compare(f)||o.compareBuild(f)};nf.exports=P1});var sf=L((Ww,rf)=>{var N1=mi(),q1=(i,r)=>i.sort((s,o)=>N1(s,o,r));rf.exports=q1});var of=L((Uw,uf)=>{var F1=mi(),M1=(i,r)=>i.sort((s,o)=>F1(o,s,r));uf.exports=M1});var cr=L((Bw,af)=>{var H1=Ye(),G1=(i,r,s)=>H1(i,r,s)>0;af.exports=G1});var yi=L((Kw,lf)=>{var W1=Ye(),U1=(i,r,s)=>W1(i,r,s)<0;lf.exports=U1});var su=L((Xw,ff)=>{var B1=Ye(),K1=(i,r,s)=>B1(i,r,s)!==0;ff.exports=K1});var Ei=L((jw,cf)=>{var X1=Ye(),j1=(i,r,s)=>X1(i,r,s)>=0;cf.exports=j1});var wi=L((kw,hf)=>{var k1=Ye(),z1=(i,r,s)=>k1(i,r,s)<=0;hf.exports=z1});var uu=L((zw,pf)=>{var V1=vi(),Y1=su(),Z1=cr(),J1=Ei(),Q1=yi(),ey=wi(),ty=(i,r,s,o)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i===s;case"!==":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i!==s;case"":case"=":case"==":return V1(i,s,o);case"!=":return Y1(i,s,o);case">":return Z1(i,s,o);case">=":return J1(i,s,o);case"<":return Q1(i,s,o);case"<=":return ey(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};pf.exports=ty});var gf=L((Vw,df)=>{var ny=we(),ry=Qt(),{re:Ai,t:xi}=Jt(),iy=(i,r)=>{if(i instanceof ny)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let s=null;if(!r.rtl)s=i.match(Ai[xi.COERCE]);else{let o;for(;(o=Ai[xi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),Ai[xi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;Ai[xi.COERCERTL].lastIndex=-1}return s===null?null:ry(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};df.exports=iy});var vf=L((Yw,_f)=>{"use strict";_f.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var yf=L((Zw,mf)=>{"use strict";mf.exports=V;V.Node=en;V.create=V;function V(i){var r=this;if(r instanceof V||(r=new V),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}V.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};V.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};V.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};V.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)uy(this,arguments[i]);return this.length};V.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)oy(this,arguments[i]);return this.length};V.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};V.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};V.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};V.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};V.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};V.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};V.prototype.map=function(i,r){r=r||this;for(var s=new V,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};V.prototype.mapReverse=function(i,r){r=r||this;for(var s=new V,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};V.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};V.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};V.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};V.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};V.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new V;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};V.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new V;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};V.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var a=[],o=0;f&&o<r;o++)a.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=sy(this,f,s[o]);return a};V.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function sy(i,r,s){var o=r===i.head?new en(s,null,r,i):new en(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function uy(i,r){i.tail=new en(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function oy(i,r){i.head=new en(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function en(i,r,s,o){if(!(this instanceof en))return new en(i,r,s,o);this.list=o,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{vf()(V)}catch{}});var If=L((Jw,Of)=>{"use strict";var ay=yf(),tn=Symbol("max"),xt=Symbol("length"),On=Symbol("lengthCalculator"),hr=Symbol("allowStale"),nn=Symbol("maxAge"),St=Symbol("dispose"),Ef=Symbol("noDisposeOnSet"),de=Symbol("lruList"),it=Symbol("cache"),wf=Symbol("updateAgeOnGet"),ou=()=>1,Af=class{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");let s=this[tn]=r.max||1/0,o=r.length||ou;if(this[On]=typeof o!="function"?ou:o,this[hr]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[nn]=r.maxAge||0,this[St]=r.dispose,this[Ef]=r.noDisposeOnSet||!1,this[wf]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[tn]=r||1/0,pr(this)}get max(){return this[tn]}set allowStale(r){this[hr]=!!r}get allowStale(){return this[hr]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[nn]=r,pr(this)}get maxAge(){return this[nn]}set lengthCalculator(r){typeof r!="function"&&(r=ou),r!==this[On]&&(this[On]=r,this[xt]=0,this[de].forEach(s=>{s.length=this[On](s.value,s.key),this[xt]+=s.length})),pr(this)}get lengthCalculator(){return this[On]}get length(){return this[xt]}get itemCount(){return this[de].length}rforEach(r,s){s=s||this;for(let o=this[de].tail;o!==null;){let f=o.prev;Sf(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[de].head;o!==null;){let f=o.next;Sf(this,r,o,s),o=f}}keys(){return this[de].toArray().map(r=>r.key)}values(){return this[de].toArray().map(r=>r.value)}reset(){this[St]&&this[de]&&this[de].length&&this[de].forEach(r=>this[St](r.key,r.value)),this[it]=new Map,this[de]=new ay,this[xt]=0}dump(){return this[de].map(r=>Si(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[de]}set(r,s,o){if(o=o||this[nn],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,a=this[On](s,r);if(this[it].has(r)){if(a>this[tn])return In(this,this[it].get(r)),!1;let E=this[it].get(r).value;return this[St]&&(this[Ef]||this[St](r,E.value)),E.now=f,E.maxAge=o,E.value=s,this[xt]+=a-E.length,E.length=a,this.get(r),pr(this),!0}let _=new xf(r,s,a,f,o);return _.length>this[tn]?(this[St]&&this[St](r,s),!1):(this[xt]+=_.length,this[de].unshift(_),this[it].set(r,this[de].head),pr(this),!0)}has(r){if(!this[it].has(r))return!1;let s=this[it].get(r).value;return!Si(this,s)}get(r){return au(this,r,!0)}peek(r){return au(this,r,!1)}pop(){let r=this[de].tail;return r?(In(this,r),r.value):null}del(r){In(this,this[it].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],a=f.e||0;if(a===0)this.set(f.k,f.v);else{let _=a-s;_>0&&this.set(f.k,f.v,_)}}}prune(){this[it].forEach((r,s)=>au(this,s,!1))}},au=(i,r,s)=>{let o=i[it].get(r);if(o){let f=o.value;if(Si(i,f)){if(In(i,o),!i[hr])return}else s&&(i[wf]&&(o.value.now=Date.now()),i[de].unshiftNode(o));return f.value}},Si=(i,r)=>{if(!r||!r.maxAge&&!i[nn])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[nn]&&s>i[nn]},pr=i=>{if(i[xt]>i[tn])for(let r=i[de].tail;i[xt]>i[tn]&&r!==null;){let s=r.prev;In(i,r),r=s}},In=(i,r)=>{if(r){let s=r.value;i[St]&&i[St](s.key,s.value),i[xt]-=s.length,i[it].delete(s.key),i[de].removeNode(r)}},xf=class{constructor(r,s,o,f,a){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=a||0}},Sf=(i,r,s,o)=>{let f=s.value;Si(i,f)&&(In(i,s),i[hr]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};Of.exports=Af});var Ze=L((Qw,Tf)=>{var Rn=class{constructor(r,s){if(s=fy(s),r instanceof Rn)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new Rn(r.raw,s);if(r instanceof lu)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(f=>!Cf(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&gy(f[0])){this.set=[f];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,f=Rf.get(o);if(f)return f;let a=this.options.loose,_=a?Ae[ve.HYPHENRANGELOOSE]:Ae[ve.HYPHENRANGE];r=r.replace(_,Oy(this.options.includePrerelease)),le("hyphen replace",r),r=r.replace(Ae[ve.COMPARATORTRIM],hy),le("comparator trim",r,Ae[ve.COMPARATORTRIM]),r=r.replace(Ae[ve.TILDETRIM],py),r=r.replace(Ae[ve.CARETTRIM],dy),r=r.split(/\s+/).join(" ");let y=a?Ae[ve.COMPARATORLOOSE]:Ae[ve.COMPARATOR],E=r.split(" ").map(T=>_y(T,this.options)).join(" ").split(/\s+/).map(T=>Sy(T,this.options)).filter(this.options.loose?T=>!!T.match(y):()=>!0).map(T=>new lu(T,this.options)),p=E.length,A=new Map;for(let T of E){if(Cf(T))return[T];A.set(T.value,T)}A.size>1&&A.has("")&&A.delete("");let R=[...A.values()];return Rf.set(o,R),R}intersects(r,s){if(!(r instanceof Rn))throw new TypeError("a Range is required");return this.set.some(o=>bf(o,s)&&r.set.some(f=>bf(f,s)&&o.every(a=>f.every(_=>a.intersects(_,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new cy(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(Iy(this.set[s],r,this.options))return!0;return!1}};Tf.exports=Rn;var ly=If(),Rf=new ly({max:1e3}),fy=lr(),lu=dr(),le=ar(),cy=we(),{re:Ae,t:ve,comparatorTrimReplace:hy,tildeTrimReplace:py,caretTrimReplace:dy}=Jt(),Cf=i=>i.value==="<0.0.0-0",gy=i=>i.value==="",bf=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(a=>f.intersects(a,r)),f=o.pop();return s},_y=(i,r)=>(le("comp",i,r),i=yy(i,r),le("caret",i),i=vy(i,r),le("tildes",i),i=wy(i,r),le("xrange",i),i=xy(i,r),le("stars",i),i),Ie=i=>!i||i.toLowerCase()==="x"||i==="*",vy=(i,r)=>i.trim().split(/\s+/).map(s=>my(s,r)).join(" "),my=(i,r)=>{let s=r.loose?Ae[ve.TILDELOOSE]:Ae[ve.TILDE];return i.replace(s,(o,f,a,_,y)=>{le("tilde",i,o,f,a,_,y);let E;return Ie(f)?E="":Ie(a)?E=`>=${f}.0.0 <${+f+1}.0.0-0`:Ie(_)?E=`>=${f}.${a}.0 <${f}.${+a+1}.0-0`:y?(le("replaceTilde pr",y),E=`>=${f}.${a}.${_}-${y} <${f}.${+a+1}.0-0`):E=`>=${f}.${a}.${_} <${f}.${+a+1}.0-0`,le("tilde return",E),E})},yy=(i,r)=>i.trim().split(/\s+/).map(s=>Ey(s,r)).join(" "),Ey=(i,r)=>{le("caret",i,r);let s=r.loose?Ae[ve.CARETLOOSE]:Ae[ve.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,a,_,y,E)=>{le("caret",i,f,a,_,y,E);let p;return Ie(a)?p="":Ie(_)?p=`>=${a}.0.0${o} <${+a+1}.0.0-0`:Ie(y)?a==="0"?p=`>=${a}.${_}.0${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.0${o} <${+a+1}.0.0-0`:E?(le("replaceCaret pr",E),a==="0"?_==="0"?p=`>=${a}.${_}.${y}-${E} <${a}.${_}.${+y+1}-0`:p=`>=${a}.${_}.${y}-${E} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${y}-${E} <${+a+1}.0.0-0`):(le("no pr"),a==="0"?_==="0"?p=`>=${a}.${_}.${y}${o} <${a}.${_}.${+y+1}-0`:p=`>=${a}.${_}.${y}${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${y} <${+a+1}.0.0-0`),le("caret return",p),p})},wy=(i,r)=>(le("replaceXRanges",i,r),i.split(/\s+/).map(s=>Ay(s,r)).join(" ")),Ay=(i,r)=>{i=i.trim();let s=r.loose?Ae[ve.XRANGELOOSE]:Ae[ve.XRANGE];return i.replace(s,(o,f,a,_,y,E)=>{le("xRange",i,o,f,a,_,y,E);let p=Ie(a),A=p||Ie(_),R=A||Ie(y),T=R;return f==="="&&T&&(f=""),E=r.includePrerelease?"-0":"",p?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(A&&(_=0),y=0,f===">"?(f=">=",A?(a=+a+1,_=0,y=0):(_=+_+1,y=0)):f==="<="&&(f="<",A?a=+a+1:_=+_+1),f==="<"&&(E="-0"),o=`${f+a}.${_}.${y}${E}`):A?o=`>=${a}.0.0${E} <${+a+1}.0.0-0`:R&&(o=`>=${a}.${_}.0${E} <${a}.${+_+1}.0-0`),le("xRange return",o),o})},xy=(i,r)=>(le("replaceStars",i,r),i.trim().replace(Ae[ve.STAR],"")),Sy=(i,r)=>(le("replaceGTE0",i,r),i.trim().replace(Ae[r.includePrerelease?ve.GTE0PRE:ve.GTE0],"")),Oy=i=>(r,s,o,f,a,_,y,E,p,A,R,T,P)=>(Ie(o)?s="":Ie(f)?s=`>=${o}.0.0${i?"-0":""}`:Ie(a)?s=`>=${o}.${f}.0${i?"-0":""}`:_?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Ie(p)?E="":Ie(A)?E=`<${+p+1}.0.0-0`:Ie(R)?E=`<${p}.${+A+1}.0-0`:T?E=`<=${p}.${A}.${R}-${T}`:i?E=`<${p}.${A}.${+R+1}-0`:E=`<=${E}`,`${s} ${E}`.trim()),Iy=(i,r,s)=>{for(let o=0;o<i.length;o++)if(!i[o].test(r))return!1;if(r.prerelease.length&&!s.includePrerelease){for(let o=0;o<i.length;o++)if(le(i[o].semver),i[o].semver!==lu.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var dr=L((eA,Nf)=>{var gr=Symbol("SemVer ANY"),_r=class{static get ANY(){return gr}constructor(r,s){if(s=Ry(s),r instanceof _r){if(r.loose===!!s.loose)return r;r=r.value}cu("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===gr?this.value="":this.value=this.operator+this.semver.version,cu("comp",this)}parse(r){let s=this.options.loose?Lf[$f.COMPARATORLOOSE]:Lf[$f.COMPARATOR],o=r.match(s);if(!o)throw new TypeError(`Invalid comparator: ${r}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new Df(o[2],this.options.loose):this.semver=gr}toString(){return this.value}test(r){if(cu("Comparator.test",r,this.options.loose),this.semver===gr||r===gr)return!0;if(typeof r=="string")try{r=new Df(r,this.options)}catch{return!1}return fu(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof _r))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Pf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new Pf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),a=this.semver.version===r.semver.version,_=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),y=fu(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),E=fu(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||a&&_||y||E}};Nf.exports=_r;var Ry=lr(),{re:Lf,t:$f}=Jt(),fu=uu(),cu=ar(),Df=we(),Pf=Ze()});var vr=L((tA,qf)=>{var Cy=Ze(),by=(i,r,s)=>{try{r=new Cy(r,s)}catch{return!1}return r.test(i)};qf.exports=by});var Mf=L((nA,Ff)=>{var Ty=Ze(),Ly=(i,r)=>new Ty(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));Ff.exports=Ly});var Gf=L((rA,Hf)=>{var $y=we(),Dy=Ze(),Py=(i,r,s)=>{let o=null,f=null,a=null;try{a=new Dy(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||f.compare(_)===-1)&&(o=_,f=new $y(o,s))}),o};Hf.exports=Py});var Uf=L((iA,Wf)=>{var Ny=we(),qy=Ze(),Fy=(i,r,s)=>{let o=null,f=null,a=null;try{a=new qy(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||f.compare(_)===1)&&(o=_,f=new Ny(o,s))}),o};Wf.exports=Fy});var Xf=L((sA,Kf)=>{var hu=we(),My=Ze(),Bf=cr(),Hy=(i,r)=>{i=new My(i,r);let s=new hu("0.0.0");if(i.test(s)||(s=new hu("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],a=null;f.forEach(_=>{let y=new hu(_.semver.version);switch(_.operator){case">":y.prerelease.length===0?y.patch++:y.prerelease.push(0),y.raw=y.format();case"":case">=":(!a||Bf(y,a))&&(a=y);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${_.operator}`)}}),a&&(!s||Bf(s,a))&&(s=a)}return s&&i.test(s)?s:null};Kf.exports=Hy});var kf=L((uA,jf)=>{var Gy=Ze(),Wy=(i,r)=>{try{return new Gy(i,r).range||"*"}catch{return null}};jf.exports=Wy});var Oi=L((oA,Zf)=>{var Uy=we(),zf=dr(),{ANY:By}=zf,Ky=Ze(),Xy=vr(),Vf=cr(),Yf=yi(),jy=wi(),ky=Ei(),zy=(i,r,s,o)=>{i=new Uy(i,o),r=new Ky(r,o);let f,a,_,y,E;switch(s){case">":f=Vf,a=jy,_=Yf,y=">",E=">=";break;case"<":f=Yf,a=ky,_=Vf,y="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Xy(i,r,o))return!1;for(let p=0;p<r.set.length;++p){let A=r.set[p],R=null,T=null;if(A.forEach(P=>{P.semver===By&&(P=new zf(">=0.0.0")),R=R||P,T=T||P,f(P.semver,R.semver,o)?R=P:_(P.semver,T.semver,o)&&(T=P)}),R.operator===y||R.operator===E||(!T.operator||T.operator===y)&&a(i,T.semver))return!1;if(T.operator===E&&_(i,T.semver))return!1}return!0};Zf.exports=zy});var Qf=L((aA,Jf)=>{var Vy=Oi(),Yy=(i,r,s)=>Vy(i,r,">",s);Jf.exports=Yy});var tc=L((lA,ec)=>{var Zy=Oi(),Jy=(i,r,s)=>Zy(i,r,"<",s);ec.exports=Jy});var ic=L((fA,rc)=>{var nc=Ze(),Qy=(i,r,s)=>(i=new nc(i,s),r=new nc(r,s),i.intersects(r));rc.exports=Qy});var uc=L((cA,sc)=>{var eE=vr(),tE=Ye();sc.exports=(i,r,s)=>{let o=[],f=null,a=null,_=i.sort((A,R)=>tE(A,R,s));for(let A of _)eE(A,r,s)?(a=A,f||(f=A)):(a&&o.push([f,a]),a=null,f=null);f&&o.push([f,null]);let y=[];for(let[A,R]of o)A===R?y.push(A):!R&&A===_[0]?y.push("*"):R?A===_[0]?y.push(`<=${R}`):y.push(`${A} - ${R}`):y.push(`>=${A}`);let E=y.join(" || "),p=typeof r.raw=="string"?r.raw:String(r);return E.length<p.length?E:r}});var cc=L((hA,fc)=>{var oc=Ze(),Ii=dr(),{ANY:pu}=Ii,mr=vr(),du=Ye(),nE=(i,r,s={})=>{if(i===r)return!0;i=new oc(i,s),r=new oc(r,s);let o=!1;e:for(let f of i.set){for(let a of r.set){let _=rE(f,a,s);if(o=o||_!==null,_)continue e}if(o)return!1}return!0},rE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===pu){if(r.length===1&&r[0].semver===pu)return!0;s.includePrerelease?i=[new Ii(">=0.0.0-0")]:i=[new Ii(">=0.0.0")]}if(r.length===1&&r[0].semver===pu){if(s.includePrerelease)return!0;r=[new Ii(">=0.0.0")]}let o=new Set,f,a;for(let P of i)P.operator===">"||P.operator===">="?f=ac(f,P,s):P.operator==="<"||P.operator==="<="?a=lc(a,P,s):o.add(P.semver);if(o.size>1)return null;let _;if(f&&a){if(_=du(f.semver,a.semver,s),_>0)return null;if(_===0&&(f.operator!==">="||a.operator!=="<="))return null}for(let P of o){if(f&&!mr(P,String(f),s)||a&&!mr(P,String(a),s))return null;for(let J of r)if(!mr(P,String(J),s))return!1;return!0}let y,E,p,A,R=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;R&&R.prerelease.length===1&&a.operator==="<"&&R.prerelease[0]===0&&(R=!1);for(let P of r){if(A=A||P.operator===">"||P.operator===">=",p=p||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(y=ac(f,P,s),y===P&&y!==f)return!1}else if(f.operator===">="&&!mr(f.semver,String(P),s))return!1}if(a){if(R&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===R.major&&P.semver.minor===R.minor&&P.semver.patch===R.patch&&(R=!1),P.operator==="<"||P.operator==="<="){if(E=lc(a,P,s),E===P&&E!==a)return!1}else if(a.operator==="<="&&!mr(a.semver,String(P),s))return!1}if(!P.operator&&(a||f)&&_!==0)return!1}return!(f&&p&&!a&&_!==0||a&&A&&!f&&_!==0||T||R)},ac=(i,r,s)=>{if(!i)return r;let o=du(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},lc=(i,r,s)=>{if(!i)return r;let o=du(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};fc.exports=nE});var pc=L((pA,hc)=>{var gu=Jt();hc.exports={re:gu.re,src:gu.src,tokens:gu.t,SEMVER_SPEC_VERSION:or().SEMVER_SPEC_VERSION,SemVer:we(),compareIdentifiers:di().compareIdentifiers,rcompareIdentifiers:di().rcompareIdentifiers,parse:Qt(),valid:$l(),clean:Pl(),inc:ql(),diff:Ul(),major:Kl(),minor:jl(),patch:zl(),prerelease:Yl(),compare:Ye(),rcompare:Jl(),compareLoose:ef(),compareBuild:mi(),sort:sf(),rsort:of(),gt:cr(),lt:yi(),eq:vi(),neq:su(),gte:Ei(),lte:wi(),cmp:uu(),coerce:gf(),Comparator:dr(),Range:Ze(),satisfies:vr(),toComparators:Mf(),maxSatisfying:Gf(),minSatisfying:Uf(),minVersion:Xf(),validRange:kf(),outside:Oi(),gtr:Qf(),ltr:tc(),intersects:ic(),simplifyRange:uc(),subset:cc()}});var Ot=L(rn=>{"use strict";var dc=rn&&rn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rn,"__esModule",{value:!0});rn.getCoreVersion=void 0;var gc=dc(require("path")),_c=dc(require("fs")),iE=pc(),sE=require("@serverless-devs/core"),_u=gc.default.join(sE.getRootHome(),"cache","core"),vc=gc.default.join(_u,"package.json");function uE(){if(_c.default.existsSync(vc)){var i=require("@serverless-devs/core/package.json").version,r=mc();return iE.gt(r,i)?require(_u):require("@serverless-devs/core")}return require("@serverless-devs/core")}function mc(){return _c.default.existsSync(_u)?require(vc).version:void 0}rn.getCoreVersion=mc;rn.default=uE()});var yc=L((gA,oE)=>{oE.exports={name:"@serverless-devs/s",version:"2.0.94",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",commander:"^6.0.0",dotenv:"^10.0.0",esbuild:"^0.13.6",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"latest"}}});var Ti=L(W=>{"use strict";var aE=W&&W.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),lE=W&&W.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),fE=W&&W.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&aE(r,i,s);return lE(r,i),r},Ec=W&&W.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},wc=W&&W.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ri=W&&W.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(W,"__esModule",{value:!0});W.emoji=W.mark=W.replaceTemplate=W.getTemplatekey=W.replaceFun=W.getLang=W.printn=W.checkTemplateFile=W.checkAndReturnTemplateFile=W.yamlLoad=W.getFolderSize=W.getVersion=W.bgRed=W.red=void 0;var ge=Ri(require("path")),He=Ri(require("fs")),vu=Ri(gl()),cE=Ri(require("os")),hE=Eu(),Ci=fE(Ot()),mu=Ci.default.colors,pE=Ci.default.jsyaml,bi=yc();W.red=mu.hex("#fd5750");W.bgRed=mu.hex("#000").bgHex("#fd5750");function dE(){return(0,Ci.getCoreVersion)()?"".concat(bi.name,": ").concat(bi.version,", @serverless-devs/core: ").concat((0,Ci.getCoreVersion)(),", ").concat(process.platform,"-").concat(process.arch,", node-").concat(process.version):"".concat(bi.name,": ").concat(bi.version,", ").concat(process.platform,"-").concat(process.arch,", node-").concat(process.version)}W.getVersion=dE;function gE(i){return Ec(this,void 0,void 0,function(){function r(f){return Ec(this,void 0,void 0,function(){var a,_;return wc(this,function(y){switch(y.label){case 0:return a=He.default.lstatSync(f),typeof a!="object"?[2]:(s.set(a.ino,a.size),a.isDirectory()?(_=He.default.readdirSync(f),typeof _!="object"?[2]:[4,Promise.all(_.map(function(E){return r(ge.default.join(f,E))}))]):[3,2]);case 1:y.sent(),y.label=2;case 2:return[2]}})})}var s,o;return wc(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(a,_){return a+_},0),[2,o]}})})}W.getFolderSize=gE;function Ac(i){var r=He.default.readFileSync(i,"utf8");try{return pE.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var s=ge.default.basename(i);new hE.HumanError({errorMessage:"".concat(s," format is incorrect"),tips:"Please check the configuration of ".concat(s,", Serverless Devs' Yaml specification document can refer to\uFF1A").concat(mu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md"))}),process.exit(1)}}W.yamlLoad=Ac;function yr(i,r){r===void 0&&(r=!1);var s=He.default.readFileSync(i,"utf8"),o=r?JSON.parse(s):Ac(i);if(!o)return!1;for(var f in o)if(o[f].Component&&o[f].Provider&&o[f].Properties)return!0;return o.hasOwnProperty("edition")}function xc(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var i=process.cwd(),r=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,s=r?process.argv.indexOf(r):-1;if(s!==-1){var o=s+1,f=process.argv[o];if(f&&(f.endsWith(".yaml")||f.endsWith(".yml")||f.endsWith(".json"))){var a=!!f.endsWith(".json");if(He.default.existsSync(ge.default.join(i,f))&&yr(ge.default.join(i,f),a)){process.argv.splice(s,2);var _=JSON.parse(process.env.serverless_devs_temp_argv);return _.splice(_.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(_),process.env.serverless_devs_temp_template=ge.default.join(i,f),ge.default.join(i,f)}else if(He.default.existsSync(f)&&yr(f,a)){process.argv.splice(s,2);var _=JSON.parse(process.env.serverless_devs_temp_argv);return _.splice(_.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(_),process.env.serverless_devs_temp_template=f,f}}}return He.default.existsSync(ge.default.join(i,"s.yaml"))&&yr(ge.default.join(i,"s.yaml"))?(process.env.serverless_devs_temp_template=ge.default.join(i,"s.yaml"),ge.default.join(i,"s.yaml")):He.default.existsSync(ge.default.join(i,"s.yml"))&&yr(ge.default.join(i,"s.yml"))?(process.env.serverless_devs_temp_template=ge.default.join(i,"s.yml"),ge.default.join(i,"s.yml")):He.default.existsSync(ge.default.join(i,"s.json"))&&yr(ge.default.join(i,"s.json"),!0)?(process.env.serverless_devs_temp_template=ge.default.join(i,"s.json"),ge.default.join(i,"s.json")):null}W.checkAndReturnTemplateFile=xc;function Sc(i){return He.default.existsSync(i)?i:null}W.checkTemplateFile=Sc;function Oc(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}W.printn=Oc;function Ic(){return"en"}W.getLang=Ic;function yu(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var a=o[f].replace(/{{|}}/g,""),_=vu.default.trim(a.split("|")[0]);r[_]&&(i=i.replace(o[f],r[_]))}return i}W.replaceFun=yu;function Rc(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var f=o.replace(/{{|}}/g,""),a=f.split("|");return{name:vu.default.trim(a[0]),desc:vu.default.trim(a[1])}}):[]}W.getTemplatekey=Rc;function Cc(i,r){i.forEach(function(s){if(He.default.existsSync(s)){var o=He.default.readFileSync(s,"utf-8"),f=yu(o,r);He.default.writeFileSync(s,f,"utf-8")}})}W.replaceTemplate=Cc;function bc(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}W.mark=bc;function _E(i){return cE.default.platform()==="win32"?"":i}W.emoji=_E;W.default={checkAndReturnTemplateFile:xc,checkTemplateFile:Sc,printn:Oc,mark:bc,getLang:Ic,replaceTemplate:Cc,replaceFun:yu,getTemplatekey:Rc}});var Dc=L(It=>{"use strict";var Tc=It&&It.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(It,"__esModule",{value:!0});It.getHistoryFile=It.getHomeDir=void 0;var vE=Tc(require("path")),Lc=Tc(Ot()),Li=Lc.default.fse,mE=Lc.default.getRootHome;function wu(){var i=mE();return Li.existsSync(i)||Li.mkdirSync(i),i}It.getHomeDir=wu;function $c(){var i=vE.default.join(wu(),"history");return Li.existsSync(i)||Li.createFileSync(i),i}It.getHistoryFile=$c;It.default={getHomeDir:wu,getHistoryFile:$c}});var Wc=L(Re=>{"use strict";var yE=Re&&Re.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},EE=Re&&Re.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Au=Re&&Re.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Re,"__esModule",{value:!0});Re.handlerProfileFile=Re.getConfig=Re.setConfig=void 0;var Pc=Au(require("path")),wE=Au(Dc()),xu=Au(Ot()),ft=xu.default.fse,$i=xu.default.jsyaml,Nc=xu.default.getRootHome;function AE(i){var r=Fc();ft.writeFileSync(r,$i.dump(i))}function qc(){var i=Fc();if(!ft.existsSync(i))return{};try{var r=$i.load(ft.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Fc(){var i=Pc.default.join(wE.default.getHomeDir(),"set-config.yml");return ft.existsSync(i)||ft.createFileSync(i),i}function Mc(i,r){var s=qc();s[i]=r,AE(s)}Re.setConfig=Mc;function Hc(i,r){var s=qc();return s[i]||r}Re.getConfig=Hc;function Gc(i){return yE(this,void 0,void 0,function(){var r,s,o,f,a,_,y;return EE(this,function(E){switch(E.label){case 0:if(r=i.filePath||"set-config.yml",s=Pc.default.join(Nc(),r),o=ft.existsSync(s),f={},o)return[3,5];a=Nc(),E.label=1;case 1:return E.trys.push([1,2,,4]),ft.statSync(a),[3,4];case 2:return _=E.sent(),[4,ft.mkdirSync(a)];case 3:return E.sent(),[3,4];case 4:return[3,6];case 5:try{f=$i.load(ft.readFileSync(s,"utf8"))||{}}catch(p){throw p}E.label=6;case 6:return i.read?[2,f]:(y=i.configKey||"",f[y]=i.data,[4,ft.writeFileSync(s,$i.dump(f))]);case 7:return E.sent(),[2,f]}})})}Re.handlerProfileFile=Gc;Re.default={setConfig:Mc,getConfig:Hc,handlerProfileFile:Gc}});var sn=L(Cn=>{"use strict";var xE=Cn&&Cn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ServerlessError=void 0;var SE=xE(Ot()),OE=SE.default.Logger,IE=new OE("S-CLI-ERROR"),RE=function(){function i(r,s,o){IE.error(r+": "+s,o),process.exit(1)}return i}();Cn.ServerlessError=RE});var Uc=L(bn=>{"use strict";var CE=bn&&bn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(bn,"__esModule",{value:!0});bn.CommandError=void 0;var bE=sn(),TE=function(i){CE(r,i);function r(s,o){return i.call(this,"Error",s,o)||this}return r}(bE.ServerlessError);bn.CommandError=TE});var Bc=L(Tn=>{"use strict";var LE=Tn&&Tn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ConfigDeleteError=void 0;var $E=sn(),DE=function(i){LE(r,i);function r(s,o){return i.call(this,"Deletion failed",s,o)||this}return r}($E.ServerlessError);Tn.ConfigDeleteError=DE});var Kc=L(Ln=>{"use strict";var PE=Ln&&Ln.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.ConfigError=void 0;var NE=sn(),qE=function(i){PE(r,i);function r(s,o){return i.call(this,"Config failed",s,o)||this}return r}(NE.ServerlessError);Ln.ConfigError=qE});var Xc=L($n=>{"use strict";var FE=$n&&$n.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.ConfigGetError=void 0;var ME=sn(),HE=function(i){FE(r,i);function r(s,o){return i.call(this,"Get failed",s,o)||this}return r}(ME.ServerlessError);$n.ConfigGetError=HE});var jc=L(Dn=>{"use strict";var GE=Dn&&Dn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.InitError=void 0;var WE=sn(),UE=function(i){GE(r,i);function r(s,o){return i.call(this,"Initialization failed",s,o)||this}return r}(WE.ServerlessError);Dn.InitError=UE});var zc=L(ct=>{"use strict";var BE=ct&&ct.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},KE=ct&&ct.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},XE=ct&&ct.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ct,"__esModule",{value:!0});ct.HumanError=void 0;var kc=XE(Ot()),jE=Ti(),kE=kc.default.colors,zE=function(){function i(r){var s=r.errorMessage,o=r.tips;this.errorMessage=s,console.log(`
35
- `.concat((0,jE.bgRed)("ERROR:"))),console.log("TypeError: ".concat(s,`
36
- `)),console.log("".concat(kE.gray(o),`
37
- `))}return i.prototype.report=function(r){return BE(this,void 0,void 0,function(){var s;return KE(this,function(o){switch(o.label){case 0:return s=r.error,[4,kc.default.report({type:"jsError",content:"".concat(this.errorMessage,"||").concat(s.stack)})];case 1:return o.sent(),[2]}})})},i}();ct.HumanError=zE});var Yc=L(Pn=>{"use strict";var VE=Pn&&Pn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.HumanWarning=void 0;var YE=VE(Ot()),Vc=YE.default.colors,ZE=function(){function i(r){var s=r.warningMessage,o=r.tips;console.log(`
38
- `.concat(Vc.hex("#000").bgYellow("WARNING:"))),console.log("".concat(s,`
39
- `)),o&&console.log("".concat(Vc.gray(o),`
40
- `))}return i}();Pn.HumanWarning=ZE});var Eu=L(ne=>{"use strict";var JE=ne&&ne.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},QE=ne&&ne.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ew=ne&&ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ne,"__esModule",{value:!0});ne.HandleError=ne.HumanWarning=ne.HumanError=ne.ServerlessError=ne.InitError=ne.ConfigGetError=ne.ConfigError=ne.ConfigDeleteError=ne.CommandError=void 0;var Su=Ti(),tw=Wc(),Ou=ew(Ot()),un=Ou.default.colors,nw=Ou.default.report,rw=Ou.default.getMAC,iw=Uc();Object.defineProperty(ne,"CommandError",{enumerable:!0,get:function(){return iw.CommandError}});var sw=Bc();Object.defineProperty(ne,"ConfigDeleteError",{enumerable:!0,get:function(){return sw.ConfigDeleteError}});var uw=Kc();Object.defineProperty(ne,"ConfigError",{enumerable:!0,get:function(){return uw.ConfigError}});var ow=Xc();Object.defineProperty(ne,"ConfigGetError",{enumerable:!0,get:function(){return ow.ConfigGetError}});var aw=jc();Object.defineProperty(ne,"InitError",{enumerable:!0,get:function(){return aw.InitError}});var lw=sn();Object.defineProperty(ne,"ServerlessError",{enumerable:!0,get:function(){return lw.ServerlessError}});var fw=zc();Object.defineProperty(ne,"HumanError",{enumerable:!0,get:function(){return fw.HumanError}});var cw=Yc();Object.defineProperty(ne,"HumanWarning",{enumerable:!0,get:function(){return cw.HumanWarning}});function hw(){try{return rw().replace(/:/g,"")}catch{return"unknown"}}function Iu(i,r){return"".concat(un.gray(i)).concat(un.gray.underline(r))}var pw=function(){function i(r){var s=r.error,o=r.prefix,f=o===void 0?"Message:":o;this.traceId="".concat(hw()).concat(Date.now()),console.log((0,Su.red)("\u2716 ".concat(f,`
41
- `)));var a=(0,tw.getConfig)("analysis");a!=="disable"&&console.log(un.gray("TraceId: ".concat(this.traceId))),console.log(un.gray("Environment: ".concat((0,Su.getVersion)()))),console.log(Iu("Documents: ","https://www.serverless-devs.com")),console.log(Iu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(Iu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
- `)),console.log("".concat((0,Su.bgRed)("ERROR:"),`
43
- `).concat(s,`
44
- `)),a!=="disable"&&console.log(un.gray("Please copy traceId: ".concat(this.traceId," and join Dingding group: 33947367 for consultation."))),console.log(un.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(un.gray(`And run again with the '--debug' option or 's -h' to get more logs.
45
- `))}return i.prototype.report=function(r){return JE(this,void 0,void 0,function(){return QE(this,function(s){return nw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId}),[2]})})},i}();ne.HandleError=pw});"use strict";var dw=exports&&exports.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},gw=exports&&exports.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Zc=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var $e=Zc(dl()),Jc=Eu(),_w=Ti(),Ru=Zc(Ot()),vw=Ru.default.setCredential,mw=Ru.default.setKnownCredential,yw=Ru.default.colors,Ew=`You can add an account
34
+ }`;var B=il(function(){return Y(h,N+"return "+I).apply(i,d)});if(B.source=I,Ks(B))throw B;return B}function t0(e){return Z(e).toLowerCase()}function n0(e){return Z(e).toUpperCase()}function r0(e,t,n){if(e=Z(e),e&&(n||t===i))return ho(e);if(!e||!(t=Ne(t)))return e;var u=et(e),l=et(t),h=po(u,l),d=go(u,l)+1;return qt(u,h,d).join("")}function i0(e,t,n){if(e=Z(e),e&&(n||t===i))return e.slice(0,vo(e)+1);if(!e||!(t=Ne(t)))return e;var u=et(e),l=go(u,et(t))+1;return qt(u,0,l).join("")}function s0(e,t,n){if(e=Z(e),e&&(n||t===i))return e.replace(Ki,"");if(!e||!(t=Ne(t)))return e;var u=et(e),l=po(u,et(t));return qt(u,l).join("")}function u0(e,t){var n=Qc,u=eh;if(se(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?Ne(t.omission):u}e=Z(e);var h=e.length;if(pn(e)){var d=et(e);h=d.length}if(n>=h)return e;var g=n-dn(u);if(g<1)return u;var m=d?qt(d,0,g).join(""):e.slice(0,g);if(l===i)return m+u;if(d&&(g+=m.length-g),Xs(l)){if(e.slice(g).search(l)){var S,O=m;for(l.global||(l=os(l.source,Z(Pu.exec(l))+"g")),l.lastIndex=0;S=l.exec(O);)var I=S.index;m=m.slice(0,I===i?g:I)}}else if(e.indexOf(Ne(l),g)!=g){var C=m.lastIndexOf(l);C>-1&&(m=m.slice(0,C))}return m+u}function o0(e){return e=Z(e),e&&mh.test(e)?e.replace(Lu,qp):e}var a0=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),zs=sa("toUpperCase");function rl(e,t,n){return e=Z(e),t=n?i:t,t===i?Lp(e)?Hp(e):Ap(e):e.match(t)||[]}var il=X(function(e,t){try{return De(e,i,t)}catch(n){return Ks(n)?n:new H(n)}}),l0=mt(function(e,t){return Ue(t,function(n){n=lt(n),_t(e,n,Us(e[n],e))}),e});function f0(e){var t=e==null?0:e.length,n=q();return e=t?ie(e,function(u){if(typeof u[1]!="function")throw new Be(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(De(h[0],this,u))return De(h[1],this,u)}})}function c0(e){return qd(Xe(e,p))}function Vs(e){return function(){return e}}function h0(e,t){return e==null||e!==e?t:e}var p0=oa(),d0=oa(!0);function Le(e){return e}function Ys(e){return Fo(typeof e=="function"?e:Xe(e,p))}function g0(e){return Ho(Xe(e,p))}function _0(e,t){return Go(e,Xe(t,p))}var v0=X(function(e,t){return function(n){return Zn(n,e,t)}}),m0=X(function(e,t){return function(n){return Zn(e,n,t)}});function Zs(e,t,n){var u=pe(t),l=kr(t,u);n==null&&!(se(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=kr(t,pe(t)));var h=!(se(n)&&"chain"in n)||!!n.chain,d=Et(e);return Ue(l,function(g){var m=t[g];e[g]=m,d&&(e.prototype[g]=function(){var S=this.__chain__;if(h||S){var O=e(this.__wrapped__),I=O.__actions__=Ce(this.__actions__);return I.push({func:m,args:arguments,thisArg:e}),O.__chain__=S,O}return m.apply(e,bt([this.value()],arguments))})}),e}function y0(){return he._===this&&(he._=Xp),this}function Js(){}function E0(e){return e=U(e),X(function(t){return Wo(t,e)})}var w0=bs(ie),A0=bs(oo),x0=bs(es);function sl(e){return qs(e)?ts(lt(e)):Qd(e)}function S0(e){return function(t){return e==null?i:jt(e,t)}}var O0=la(),I0=la(!0);function Qs(){return[]}function eu(){return!1}function R0(){return{}}function C0(){return""}function b0(){return!0}function T0(e,t){if(e=U(e),e<1||e>Rt)return[];var n=ut,u=ye(e,ut);t=q(t),e-=ut;for(var l=is(u,t);++n<e;)t(n);return l}function L0(e){return G(e)?ie(e,lt):qe(e)?[e]:Ce(Oa(Z(e)))}function $0(e){var t=++Bp;return Z(e)+t}var D0=Qr(function(e,t){return e+t},0),P0=Ts("ceil"),N0=Qr(function(e,t){return e/t},1),q0=Ts("floor");function F0(e){return e&&e.length?jr(e,Le,gs):i}function M0(e,t){return e&&e.length?jr(e,q(t,2),gs):i}function H0(e){return fo(e,Le)}function G0(e,t){return fo(e,q(t,2))}function W0(e){return e&&e.length?jr(e,Le,ys):i}function U0(e,t){return e&&e.length?jr(e,q(t,2),ys):i}var B0=Qr(function(e,t){return e*t},1),K0=Ts("round"),X0=Qr(function(e,t){return e-t},0);function j0(e){return e&&e.length?rs(e,Le):0}function k0(e,t){return e&&e.length?rs(e,q(t,2)):0}return c.after=gv,c.ary=qa,c.assign=nm,c.assignIn=Ya,c.assignInWith=hi,c.assignWith=rm,c.at=im,c.before=Fa,c.bind=Us,c.bindAll=l0,c.bindKey=Ma,c.castArray=Rv,c.chain=Da,c.chunk=qg,c.compact=Fg,c.concat=Mg,c.cond=f0,c.conforms=c0,c.constant=Vs,c.countBy=j_,c.create=sm,c.curry=Ha,c.curryRight=Ga,c.debounce=Wa,c.defaults=um,c.defaultsDeep=om,c.defer=_v,c.delay=vv,c.difference=Hg,c.differenceBy=Gg,c.differenceWith=Wg,c.drop=Ug,c.dropRight=Bg,c.dropRightWhile=Kg,c.dropWhile=Xg,c.fill=jg,c.filter=z_,c.flatMap=Z_,c.flatMapDeep=J_,c.flatMapDepth=Q_,c.flatten=ba,c.flattenDeep=kg,c.flattenDepth=zg,c.flip=mv,c.flow=p0,c.flowRight=d0,c.fromPairs=Vg,c.functions=dm,c.functionsIn=gm,c.groupBy=ev,c.initial=Zg,c.intersection=Jg,c.intersectionBy=Qg,c.intersectionWith=e_,c.invert=vm,c.invertBy=mm,c.invokeMap=nv,c.iteratee=Ys,c.keyBy=rv,c.keys=pe,c.keysIn=Te,c.map=ui,c.mapKeys=Em,c.mapValues=wm,c.matches=g0,c.matchesProperty=_0,c.memoize=ai,c.merge=Am,c.mergeWith=Za,c.method=v0,c.methodOf=m0,c.mixin=Zs,c.negate=li,c.nthArg=E0,c.omit=xm,c.omitBy=Sm,c.once=yv,c.orderBy=iv,c.over=w0,c.overArgs=Ev,c.overEvery=A0,c.overSome=x0,c.partial=Bs,c.partialRight=Ua,c.partition=sv,c.pick=Om,c.pickBy=Ja,c.property=sl,c.propertyOf=S0,c.pull=i_,c.pullAll=La,c.pullAllBy=s_,c.pullAllWith=u_,c.pullAt=o_,c.range=O0,c.rangeRight=I0,c.rearg=wv,c.reject=av,c.remove=a_,c.rest=Av,c.reverse=Gs,c.sampleSize=fv,c.set=Rm,c.setWith=Cm,c.shuffle=cv,c.slice=l_,c.sortBy=dv,c.sortedUniq=__,c.sortedUniqBy=v_,c.split=Zm,c.spread=xv,c.tail=m_,c.take=y_,c.takeRight=E_,c.takeRightWhile=w_,c.takeWhile=A_,c.tap=F_,c.throttle=Sv,c.thru=si,c.toArray=ka,c.toPairs=Qa,c.toPairsIn=el,c.toPath=L0,c.toPlainObject=Va,c.transform=bm,c.unary=Ov,c.union=x_,c.unionBy=S_,c.unionWith=O_,c.uniq=I_,c.uniqBy=R_,c.uniqWith=C_,c.unset=Tm,c.unzip=Ws,c.unzipWith=$a,c.update=Lm,c.updateWith=$m,c.values=xn,c.valuesIn=Dm,c.without=b_,c.words=rl,c.wrap=Iv,c.xor=T_,c.xorBy=L_,c.xorWith=$_,c.zip=D_,c.zipObject=P_,c.zipObjectDeep=N_,c.zipWith=q_,c.entries=Qa,c.entriesIn=el,c.extend=Ya,c.extendWith=hi,Zs(c,c),c.add=D0,c.attempt=il,c.camelCase=Fm,c.capitalize=tl,c.ceil=P0,c.clamp=Pm,c.clone=Cv,c.cloneDeep=Tv,c.cloneDeepWith=Lv,c.cloneWith=bv,c.conformsTo=$v,c.deburr=nl,c.defaultTo=h0,c.divide=N0,c.endsWith=Mm,c.eq=nt,c.escape=Hm,c.escapeRegExp=Gm,c.every=k_,c.find=V_,c.findIndex=Ra,c.findKey=am,c.findLast=Y_,c.findLastIndex=Ca,c.findLastKey=lm,c.floor=q0,c.forEach=Pa,c.forEachRight=Na,c.forIn=fm,c.forInRight=cm,c.forOwn=hm,c.forOwnRight=pm,c.get=js,c.gt=Dv,c.gte=Pv,c.has=_m,c.hasIn=ks,c.head=Ta,c.identity=Le,c.includes=tv,c.indexOf=Yg,c.inRange=Nm,c.invoke=ym,c.isArguments=Vt,c.isArray=G,c.isArrayBuffer=Nv,c.isArrayLike=be,c.isArrayLikeObject=oe,c.isBoolean=qv,c.isBuffer=Ft,c.isDate=Fv,c.isElement=Mv,c.isEmpty=Hv,c.isEqual=Gv,c.isEqualWith=Wv,c.isError=Ks,c.isFinite=Uv,c.isFunction=Et,c.isInteger=Ba,c.isLength=fi,c.isMap=Ka,c.isMatch=Bv,c.isMatchWith=Kv,c.isNaN=Xv,c.isNative=jv,c.isNil=zv,c.isNull=kv,c.isNumber=Xa,c.isObject=se,c.isObjectLike=ue,c.isPlainObject=rr,c.isRegExp=Xs,c.isSafeInteger=Vv,c.isSet=ja,c.isString=ci,c.isSymbol=qe,c.isTypedArray=An,c.isUndefined=Yv,c.isWeakMap=Zv,c.isWeakSet=Jv,c.join=t_,c.kebabCase=Wm,c.last=ke,c.lastIndexOf=n_,c.lowerCase=Um,c.lowerFirst=Bm,c.lt=Qv,c.lte=em,c.max=F0,c.maxBy=M0,c.mean=H0,c.meanBy=G0,c.min=W0,c.minBy=U0,c.stubArray=Qs,c.stubFalse=eu,c.stubObject=R0,c.stubString=C0,c.stubTrue=b0,c.multiply=B0,c.nth=r_,c.noConflict=y0,c.noop=Js,c.now=oi,c.pad=Km,c.padEnd=Xm,c.padStart=jm,c.parseInt=km,c.random=qm,c.reduce=uv,c.reduceRight=ov,c.repeat=zm,c.replace=Vm,c.result=Im,c.round=K0,c.runInContext=v,c.sample=lv,c.size=hv,c.snakeCase=Ym,c.some=pv,c.sortedIndex=f_,c.sortedIndexBy=c_,c.sortedIndexOf=h_,c.sortedLastIndex=p_,c.sortedLastIndexBy=d_,c.sortedLastIndexOf=g_,c.startCase=Jm,c.startsWith=Qm,c.subtract=X0,c.sum=j0,c.sumBy=k0,c.template=e0,c.times=T0,c.toFinite=wt,c.toInteger=U,c.toLength=za,c.toLower=t0,c.toNumber=ze,c.toSafeInteger=tm,c.toString=Z,c.toUpper=n0,c.trim=r0,c.trimEnd=i0,c.trimStart=s0,c.truncate=u0,c.unescape=o0,c.uniqueId=$0,c.upperCase=a0,c.upperFirst=zs,c.each=Pa,c.eachRight=Na,c.first=Ta,Zs(c,function(){var e={};return ot(c,function(t,n){Q.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,Ue(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),Ue(["drop","take"],function(e,t){k.prototype[e]=function(n){n=n===i?1:ce(U(n),0);var u=this.__filtered__&&!t?new k(this):this.clone();return u.__filtered__?u.__takeCount__=ye(n,u.__takeCount__):u.__views__.push({size:ye(n,ut),type:e+(u.__dir__<0?"Right":"")}),u},k.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Ue(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Cu||n==ih;k.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:q(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),Ue(["head","last"],function(e,t){var n="take"+(t?"Right":"");k.prototype[e]=function(){return this[n](1).value()[0]}}),Ue(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");k.prototype[e]=function(){return this.__filtered__?new k(this):this[n](1)}}),k.prototype.compact=function(){return this.filter(Le)},k.prototype.find=function(e){return this.filter(e).head()},k.prototype.findLast=function(e){return this.reverse().find(e)},k.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new k(this):this.map(function(n){return Zn(n,e,t)})}),k.prototype.reject=function(e){return this.filter(li(q(e)))},k.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new k(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},k.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},k.prototype.toArray=function(){return this.take(ut)},ot(k.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var d=this.__wrapped__,g=u?[1]:arguments,m=d instanceof k,S=g[0],O=m||G(d),I=function(j){var z=l.apply(c,bt([j],g));return u&&C?z[0]:z};O&&n&&typeof S=="function"&&S.length!=1&&(m=O=!1);var C=this.__chain__,N=!!this.__actions__.length,F=h&&!C,B=m&&!N;if(!h&&O){d=B?d:new k(this);var M=e.apply(d,g);return M.__actions__.push({func:si,args:[I],thisArg:i}),new Ke(M,C)}return F&&B?e.apply(this,g):(M=this.thru(I),F?u?M.value()[0]:M.value():M)})}),Ue(["pop","push","shift","sort","splice","unshift"],function(e){var t=Lr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(d){return t.apply(G(d)?d:[],l)})}}),ot(k.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";Q.call(vn,u)||(vn[u]=[]),vn[u].push({name:t,func:n})}}),vn[Jr(i,Ge).name]=[{name:"wrapper",func:i}],k.prototype.clone=od,k.prototype.reverse=ad,k.prototype.value=ld,c.prototype.at=M_,c.prototype.chain=H_,c.prototype.commit=G_,c.prototype.next=W_,c.prototype.plant=B_,c.prototype.reverse=K_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=X_,c.prototype.first=c.prototype.head,Kn&&(c.prototype[Kn]=U_),c},Lt=Gp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(he._=Lt,define(function(){return Lt})):Wt?((Wt.exports=Lt)._=Lt,Yi._=Lt):he._=Lt}).call(Sn)});var or=L((Aw,_l)=>{var Y0="2.0.0",Z0=256,J0=Number.MAX_SAFE_INTEGER||9007199254740991,Q0=16;_l.exports={SEMVER_SPEC_VERSION:Y0,MAX_LENGTH:Z0,MAX_SAFE_INTEGER:J0,MAX_SAFE_COMPONENT_LENGTH:Q0}});var ar=L((xw,vl)=>{var e1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};vl.exports=e1});var Jt=L((Mt,ml)=>{var{MAX_SAFE_COMPONENT_LENGTH:iu}=or(),t1=ar();Mt=ml.exports={};var n1=Mt.re=[],$=Mt.src=[],D=Mt.t={},r1=0,K=(i,r,s)=>{let o=r1++;t1(o,r),D[i]=o,$[o]=r,n1[o]=new RegExp(r,s?"g":void 0)};K("NUMERICIDENTIFIER","0|[1-9]\\d*");K("NUMERICIDENTIFIERLOOSE","[0-9]+");K("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");K("MAINVERSION",`(${$[D.NUMERICIDENTIFIER]})\\.(${$[D.NUMERICIDENTIFIER]})\\.(${$[D.NUMERICIDENTIFIER]})`);K("MAINVERSIONLOOSE",`(${$[D.NUMERICIDENTIFIERLOOSE]})\\.(${$[D.NUMERICIDENTIFIERLOOSE]})\\.(${$[D.NUMERICIDENTIFIERLOOSE]})`);K("PRERELEASEIDENTIFIER",`(?:${$[D.NUMERICIDENTIFIER]}|${$[D.NONNUMERICIDENTIFIER]})`);K("PRERELEASEIDENTIFIERLOOSE",`(?:${$[D.NUMERICIDENTIFIERLOOSE]}|${$[D.NONNUMERICIDENTIFIER]})`);K("PRERELEASE",`(?:-(${$[D.PRERELEASEIDENTIFIER]}(?:\\.${$[D.PRERELEASEIDENTIFIER]})*))`);K("PRERELEASELOOSE",`(?:-?(${$[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[D.PRERELEASEIDENTIFIERLOOSE]})*))`);K("BUILDIDENTIFIER","[0-9A-Za-z-]+");K("BUILD",`(?:\\+(${$[D.BUILDIDENTIFIER]}(?:\\.${$[D.BUILDIDENTIFIER]})*))`);K("FULLPLAIN",`v?${$[D.MAINVERSION]}${$[D.PRERELEASE]}?${$[D.BUILD]}?`);K("FULL",`^${$[D.FULLPLAIN]}$`);K("LOOSEPLAIN",`[v=\\s]*${$[D.MAINVERSIONLOOSE]}${$[D.PRERELEASELOOSE]}?${$[D.BUILD]}?`);K("LOOSE",`^${$[D.LOOSEPLAIN]}$`);K("GTLT","((?:<|>)?=?)");K("XRANGEIDENTIFIERLOOSE",`${$[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);K("XRANGEIDENTIFIER",`${$[D.NUMERICIDENTIFIER]}|x|X|\\*`);K("XRANGEPLAIN",`[v=\\s]*(${$[D.XRANGEIDENTIFIER]})(?:\\.(${$[D.XRANGEIDENTIFIER]})(?:\\.(${$[D.XRANGEIDENTIFIER]})(?:${$[D.PRERELEASE]})?${$[D.BUILD]}?)?)?`);K("XRANGEPLAINLOOSE",`[v=\\s]*(${$[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[D.XRANGEIDENTIFIERLOOSE]})(?:${$[D.PRERELEASELOOSE]})?${$[D.BUILD]}?)?)?`);K("XRANGE",`^${$[D.GTLT]}\\s*${$[D.XRANGEPLAIN]}$`);K("XRANGELOOSE",`^${$[D.GTLT]}\\s*${$[D.XRANGEPLAINLOOSE]}$`);K("COERCE",`(^|[^\\d])(\\d{1,${iu}})(?:\\.(\\d{1,${iu}}))?(?:\\.(\\d{1,${iu}}))?(?:$|[^\\d])`);K("COERCERTL",$[D.COERCE],!0);K("LONETILDE","(?:~>?)");K("TILDETRIM",`(\\s*)${$[D.LONETILDE]}\\s+`,!0);Mt.tildeTrimReplace="$1~";K("TILDE",`^${$[D.LONETILDE]}${$[D.XRANGEPLAIN]}$`);K("TILDELOOSE",`^${$[D.LONETILDE]}${$[D.XRANGEPLAINLOOSE]}$`);K("LONECARET","(?:\\^)");K("CARETTRIM",`(\\s*)${$[D.LONECARET]}\\s+`,!0);Mt.caretTrimReplace="$1^";K("CARET",`^${$[D.LONECARET]}${$[D.XRANGEPLAIN]}$`);K("CARETLOOSE",`^${$[D.LONECARET]}${$[D.XRANGEPLAINLOOSE]}$`);K("COMPARATORLOOSE",`^${$[D.GTLT]}\\s*(${$[D.LOOSEPLAIN]})$|^$`);K("COMPARATOR",`^${$[D.GTLT]}\\s*(${$[D.FULLPLAIN]})$|^$`);K("COMPARATORTRIM",`(\\s*)${$[D.GTLT]}\\s*(${$[D.LOOSEPLAIN]}|${$[D.XRANGEPLAIN]})`,!0);Mt.comparatorTrimReplace="$1$2$3";K("HYPHENRANGE",`^\\s*(${$[D.XRANGEPLAIN]})\\s+-\\s+(${$[D.XRANGEPLAIN]})\\s*$`);K("HYPHENRANGELOOSE",`^\\s*(${$[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[D.XRANGEPLAINLOOSE]})\\s*$`);K("STAR","(<|>)?=?\\s*\\*");K("GTE0","^\\s*>=\\s*0.0.0\\s*$");K("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var lr=L((Sw,yl)=>{var i1=["includePrerelease","loose","rtl"],s1=i=>i?typeof i!="object"?{loose:!0}:i1.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};yl.exports=s1});var di=L((Ow,Al)=>{var El=/^[0-9]+$/,wl=(i,r)=>{let s=El.test(i),o=El.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},u1=(i,r)=>wl(r,i);Al.exports={compareIdentifiers:wl,rcompareIdentifiers:u1}});var we=L((Iw,Il)=>{var gi=ar(),{MAX_LENGTH:xl,MAX_SAFE_INTEGER:_i}=or(),{re:Sl,t:Ol}=Jt(),o1=lr(),{compareIdentifiers:fr}=di(),Ve=class{constructor(r,s){if(s=o1(s),r instanceof Ve){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>xl)throw new TypeError(`version is longer than ${xl} characters`);gi("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?Sl[Ol.LOOSE]:Sl[Ol.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>_i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let a=+f;if(a>=0&&a<_i)return a}return f}):this.prerelease=[],this.build=o[5]?o[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(r){if(gi("SemVer.compare",this.version,this.options,r),!(r instanceof Ve)){if(typeof r=="string"&&r===this.version)return 0;r=new Ve(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Ve||(r=new Ve(r,this.options)),fr(this.major,r.major)||fr(this.minor,r.minor)||fr(this.patch,r.patch)}comparePre(r){if(r instanceof Ve||(r=new Ve(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(gi("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return fr(o,f)}while(++s)}compareBuild(r){r instanceof Ve||(r=new Ve(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(gi("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return fr(o,f)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};Il.exports=Ve});var Qt=L((Rw,Tl)=>{var{MAX_LENGTH:a1}=or(),{re:Rl,t:Cl}=Jt(),bl=we(),l1=lr(),f1=(i,r)=>{if(r=l1(r),i instanceof bl)return i;if(typeof i!="string"||i.length>a1||!(r.loose?Rl[Cl.LOOSE]:Rl[Cl.FULL]).test(i))return null;try{return new bl(i,r)}catch{return null}};Tl.exports=f1});var $l=L((Cw,Ll)=>{var c1=Qt(),h1=(i,r)=>{let s=c1(i,r);return s?s.version:null};Ll.exports=h1});var Pl=L((bw,Dl)=>{var p1=Qt(),d1=(i,r)=>{let s=p1(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};Dl.exports=d1});var ql=L((Tw,Nl)=>{var g1=we(),_1=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new g1(i,s).inc(r,o).version}catch{return null}};Nl.exports=_1});var Ye=L((Lw,Ml)=>{var Fl=we(),v1=(i,r,s)=>new Fl(i,s).compare(new Fl(r,s));Ml.exports=v1});var vi=L(($w,Hl)=>{var m1=Ye(),y1=(i,r,s)=>m1(i,r,s)===0;Hl.exports=y1});var Ul=L((Dw,Wl)=>{var Gl=Qt(),E1=vi(),w1=(i,r)=>{if(E1(i,r))return null;{let s=Gl(i),o=Gl(r),f=s.prerelease.length||o.prerelease.length,a=f?"pre":"",_=f?"prerelease":"";for(let y in s)if((y==="major"||y==="minor"||y==="patch")&&s[y]!==o[y])return a+y;return _}};Wl.exports=w1});var Kl=L((Pw,Bl)=>{var A1=we(),x1=(i,r)=>new A1(i,r).major;Bl.exports=x1});var jl=L((Nw,Xl)=>{var S1=we(),O1=(i,r)=>new S1(i,r).minor;Xl.exports=O1});var zl=L((qw,kl)=>{var I1=we(),R1=(i,r)=>new I1(i,r).patch;kl.exports=R1});var Yl=L((Fw,Vl)=>{var C1=Qt(),b1=(i,r)=>{let s=C1(i,r);return s&&s.prerelease.length?s.prerelease:null};Vl.exports=b1});var Jl=L((Mw,Zl)=>{var T1=Ye(),L1=(i,r,s)=>T1(r,i,s);Zl.exports=L1});var ef=L((Hw,Ql)=>{var $1=Ye(),D1=(i,r)=>$1(i,r,!0);Ql.exports=D1});var mi=L((Gw,nf)=>{var tf=we(),P1=(i,r,s)=>{let o=new tf(i,s),f=new tf(r,s);return o.compare(f)||o.compareBuild(f)};nf.exports=P1});var sf=L((Ww,rf)=>{var N1=mi(),q1=(i,r)=>i.sort((s,o)=>N1(s,o,r));rf.exports=q1});var of=L((Uw,uf)=>{var F1=mi(),M1=(i,r)=>i.sort((s,o)=>F1(o,s,r));uf.exports=M1});var cr=L((Bw,af)=>{var H1=Ye(),G1=(i,r,s)=>H1(i,r,s)>0;af.exports=G1});var yi=L((Kw,lf)=>{var W1=Ye(),U1=(i,r,s)=>W1(i,r,s)<0;lf.exports=U1});var su=L((Xw,ff)=>{var B1=Ye(),K1=(i,r,s)=>B1(i,r,s)!==0;ff.exports=K1});var Ei=L((jw,cf)=>{var X1=Ye(),j1=(i,r,s)=>X1(i,r,s)>=0;cf.exports=j1});var wi=L((kw,hf)=>{var k1=Ye(),z1=(i,r,s)=>k1(i,r,s)<=0;hf.exports=z1});var uu=L((zw,pf)=>{var V1=vi(),Y1=su(),Z1=cr(),J1=Ei(),Q1=yi(),ey=wi(),ty=(i,r,s,o)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i===s;case"!==":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i!==s;case"":case"=":case"==":return V1(i,s,o);case"!=":return Y1(i,s,o);case">":return Z1(i,s,o);case">=":return J1(i,s,o);case"<":return Q1(i,s,o);case"<=":return ey(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};pf.exports=ty});var gf=L((Vw,df)=>{var ny=we(),ry=Qt(),{re:Ai,t:xi}=Jt(),iy=(i,r)=>{if(i instanceof ny)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let s=null;if(!r.rtl)s=i.match(Ai[xi.COERCE]);else{let o;for(;(o=Ai[xi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),Ai[xi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;Ai[xi.COERCERTL].lastIndex=-1}return s===null?null:ry(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};df.exports=iy});var vf=L((Yw,_f)=>{"use strict";_f.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var yf=L((Zw,mf)=>{"use strict";mf.exports=V;V.Node=en;V.create=V;function V(i){var r=this;if(r instanceof V||(r=new V),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}V.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};V.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};V.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};V.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)uy(this,arguments[i]);return this.length};V.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)oy(this,arguments[i]);return this.length};V.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};V.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};V.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};V.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};V.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};V.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};V.prototype.map=function(i,r){r=r||this;for(var s=new V,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};V.prototype.mapReverse=function(i,r){r=r||this;for(var s=new V,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};V.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};V.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};V.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};V.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};V.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new V;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};V.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new V;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};V.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var a=[],o=0;f&&o<r;o++)a.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=sy(this,f,s[o]);return a};V.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function sy(i,r,s){var o=r===i.head?new en(s,null,r,i):new en(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function uy(i,r){i.tail=new en(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function oy(i,r){i.head=new en(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function en(i,r,s,o){if(!(this instanceof en))return new en(i,r,s,o);this.list=o,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{vf()(V)}catch{}});var If=L((Jw,Of)=>{"use strict";var ay=yf(),tn=Symbol("max"),xt=Symbol("length"),On=Symbol("lengthCalculator"),hr=Symbol("allowStale"),nn=Symbol("maxAge"),St=Symbol("dispose"),Ef=Symbol("noDisposeOnSet"),de=Symbol("lruList"),it=Symbol("cache"),wf=Symbol("updateAgeOnGet"),ou=()=>1,Af=class{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");let s=this[tn]=r.max||1/0,o=r.length||ou;if(this[On]=typeof o!="function"?ou:o,this[hr]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[nn]=r.maxAge||0,this[St]=r.dispose,this[Ef]=r.noDisposeOnSet||!1,this[wf]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[tn]=r||1/0,pr(this)}get max(){return this[tn]}set allowStale(r){this[hr]=!!r}get allowStale(){return this[hr]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[nn]=r,pr(this)}get maxAge(){return this[nn]}set lengthCalculator(r){typeof r!="function"&&(r=ou),r!==this[On]&&(this[On]=r,this[xt]=0,this[de].forEach(s=>{s.length=this[On](s.value,s.key),this[xt]+=s.length})),pr(this)}get lengthCalculator(){return this[On]}get length(){return this[xt]}get itemCount(){return this[de].length}rforEach(r,s){s=s||this;for(let o=this[de].tail;o!==null;){let f=o.prev;Sf(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[de].head;o!==null;){let f=o.next;Sf(this,r,o,s),o=f}}keys(){return this[de].toArray().map(r=>r.key)}values(){return this[de].toArray().map(r=>r.value)}reset(){this[St]&&this[de]&&this[de].length&&this[de].forEach(r=>this[St](r.key,r.value)),this[it]=new Map,this[de]=new ay,this[xt]=0}dump(){return this[de].map(r=>Si(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[de]}set(r,s,o){if(o=o||this[nn],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,a=this[On](s,r);if(this[it].has(r)){if(a>this[tn])return In(this,this[it].get(r)),!1;let E=this[it].get(r).value;return this[St]&&(this[Ef]||this[St](r,E.value)),E.now=f,E.maxAge=o,E.value=s,this[xt]+=a-E.length,E.length=a,this.get(r),pr(this),!0}let _=new xf(r,s,a,f,o);return _.length>this[tn]?(this[St]&&this[St](r,s),!1):(this[xt]+=_.length,this[de].unshift(_),this[it].set(r,this[de].head),pr(this),!0)}has(r){if(!this[it].has(r))return!1;let s=this[it].get(r).value;return!Si(this,s)}get(r){return au(this,r,!0)}peek(r){return au(this,r,!1)}pop(){let r=this[de].tail;return r?(In(this,r),r.value):null}del(r){In(this,this[it].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],a=f.e||0;if(a===0)this.set(f.k,f.v);else{let _=a-s;_>0&&this.set(f.k,f.v,_)}}}prune(){this[it].forEach((r,s)=>au(this,s,!1))}},au=(i,r,s)=>{let o=i[it].get(r);if(o){let f=o.value;if(Si(i,f)){if(In(i,o),!i[hr])return}else s&&(i[wf]&&(o.value.now=Date.now()),i[de].unshiftNode(o));return f.value}},Si=(i,r)=>{if(!r||!r.maxAge&&!i[nn])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[nn]&&s>i[nn]},pr=i=>{if(i[xt]>i[tn])for(let r=i[de].tail;i[xt]>i[tn]&&r!==null;){let s=r.prev;In(i,r),r=s}},In=(i,r)=>{if(r){let s=r.value;i[St]&&i[St](s.key,s.value),i[xt]-=s.length,i[it].delete(s.key),i[de].removeNode(r)}},xf=class{constructor(r,s,o,f,a){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=a||0}},Sf=(i,r,s,o)=>{let f=s.value;Si(i,f)&&(In(i,s),i[hr]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};Of.exports=Af});var Ze=L((Qw,Tf)=>{var Rn=class{constructor(r,s){if(s=fy(s),r instanceof Rn)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new Rn(r.raw,s);if(r instanceof lu)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(f=>!Cf(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&gy(f[0])){this.set=[f];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,f=Rf.get(o);if(f)return f;let a=this.options.loose,_=a?Ae[ve.HYPHENRANGELOOSE]:Ae[ve.HYPHENRANGE];r=r.replace(_,Oy(this.options.includePrerelease)),le("hyphen replace",r),r=r.replace(Ae[ve.COMPARATORTRIM],hy),le("comparator trim",r,Ae[ve.COMPARATORTRIM]),r=r.replace(Ae[ve.TILDETRIM],py),r=r.replace(Ae[ve.CARETTRIM],dy),r=r.split(/\s+/).join(" ");let y=a?Ae[ve.COMPARATORLOOSE]:Ae[ve.COMPARATOR],E=r.split(" ").map(T=>_y(T,this.options)).join(" ").split(/\s+/).map(T=>Sy(T,this.options)).filter(this.options.loose?T=>!!T.match(y):()=>!0).map(T=>new lu(T,this.options)),p=E.length,A=new Map;for(let T of E){if(Cf(T))return[T];A.set(T.value,T)}A.size>1&&A.has("")&&A.delete("");let R=[...A.values()];return Rf.set(o,R),R}intersects(r,s){if(!(r instanceof Rn))throw new TypeError("a Range is required");return this.set.some(o=>bf(o,s)&&r.set.some(f=>bf(f,s)&&o.every(a=>f.every(_=>a.intersects(_,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new cy(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(Iy(this.set[s],r,this.options))return!0;return!1}};Tf.exports=Rn;var ly=If(),Rf=new ly({max:1e3}),fy=lr(),lu=dr(),le=ar(),cy=we(),{re:Ae,t:ve,comparatorTrimReplace:hy,tildeTrimReplace:py,caretTrimReplace:dy}=Jt(),Cf=i=>i.value==="<0.0.0-0",gy=i=>i.value==="",bf=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(a=>f.intersects(a,r)),f=o.pop();return s},_y=(i,r)=>(le("comp",i,r),i=yy(i,r),le("caret",i),i=vy(i,r),le("tildes",i),i=wy(i,r),le("xrange",i),i=xy(i,r),le("stars",i),i),Ie=i=>!i||i.toLowerCase()==="x"||i==="*",vy=(i,r)=>i.trim().split(/\s+/).map(s=>my(s,r)).join(" "),my=(i,r)=>{let s=r.loose?Ae[ve.TILDELOOSE]:Ae[ve.TILDE];return i.replace(s,(o,f,a,_,y)=>{le("tilde",i,o,f,a,_,y);let E;return Ie(f)?E="":Ie(a)?E=`>=${f}.0.0 <${+f+1}.0.0-0`:Ie(_)?E=`>=${f}.${a}.0 <${f}.${+a+1}.0-0`:y?(le("replaceTilde pr",y),E=`>=${f}.${a}.${_}-${y} <${f}.${+a+1}.0-0`):E=`>=${f}.${a}.${_} <${f}.${+a+1}.0-0`,le("tilde return",E),E})},yy=(i,r)=>i.trim().split(/\s+/).map(s=>Ey(s,r)).join(" "),Ey=(i,r)=>{le("caret",i,r);let s=r.loose?Ae[ve.CARETLOOSE]:Ae[ve.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,a,_,y,E)=>{le("caret",i,f,a,_,y,E);let p;return Ie(a)?p="":Ie(_)?p=`>=${a}.0.0${o} <${+a+1}.0.0-0`:Ie(y)?a==="0"?p=`>=${a}.${_}.0${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.0${o} <${+a+1}.0.0-0`:E?(le("replaceCaret pr",E),a==="0"?_==="0"?p=`>=${a}.${_}.${y}-${E} <${a}.${_}.${+y+1}-0`:p=`>=${a}.${_}.${y}-${E} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${y}-${E} <${+a+1}.0.0-0`):(le("no pr"),a==="0"?_==="0"?p=`>=${a}.${_}.${y}${o} <${a}.${_}.${+y+1}-0`:p=`>=${a}.${_}.${y}${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.${y} <${+a+1}.0.0-0`),le("caret return",p),p})},wy=(i,r)=>(le("replaceXRanges",i,r),i.split(/\s+/).map(s=>Ay(s,r)).join(" ")),Ay=(i,r)=>{i=i.trim();let s=r.loose?Ae[ve.XRANGELOOSE]:Ae[ve.XRANGE];return i.replace(s,(o,f,a,_,y,E)=>{le("xRange",i,o,f,a,_,y,E);let p=Ie(a),A=p||Ie(_),R=A||Ie(y),T=R;return f==="="&&T&&(f=""),E=r.includePrerelease?"-0":"",p?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(A&&(_=0),y=0,f===">"?(f=">=",A?(a=+a+1,_=0,y=0):(_=+_+1,y=0)):f==="<="&&(f="<",A?a=+a+1:_=+_+1),f==="<"&&(E="-0"),o=`${f+a}.${_}.${y}${E}`):A?o=`>=${a}.0.0${E} <${+a+1}.0.0-0`:R&&(o=`>=${a}.${_}.0${E} <${a}.${+_+1}.0-0`),le("xRange return",o),o})},xy=(i,r)=>(le("replaceStars",i,r),i.trim().replace(Ae[ve.STAR],"")),Sy=(i,r)=>(le("replaceGTE0",i,r),i.trim().replace(Ae[r.includePrerelease?ve.GTE0PRE:ve.GTE0],"")),Oy=i=>(r,s,o,f,a,_,y,E,p,A,R,T,P)=>(Ie(o)?s="":Ie(f)?s=`>=${o}.0.0${i?"-0":""}`:Ie(a)?s=`>=${o}.${f}.0${i?"-0":""}`:_?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Ie(p)?E="":Ie(A)?E=`<${+p+1}.0.0-0`:Ie(R)?E=`<${p}.${+A+1}.0-0`:T?E=`<=${p}.${A}.${R}-${T}`:i?E=`<${p}.${A}.${+R+1}-0`:E=`<=${E}`,`${s} ${E}`.trim()),Iy=(i,r,s)=>{for(let o=0;o<i.length;o++)if(!i[o].test(r))return!1;if(r.prerelease.length&&!s.includePrerelease){for(let o=0;o<i.length;o++)if(le(i[o].semver),i[o].semver!==lu.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var dr=L((eA,Nf)=>{var gr=Symbol("SemVer ANY"),_r=class{static get ANY(){return gr}constructor(r,s){if(s=Ry(s),r instanceof _r){if(r.loose===!!s.loose)return r;r=r.value}cu("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===gr?this.value="":this.value=this.operator+this.semver.version,cu("comp",this)}parse(r){let s=this.options.loose?Lf[$f.COMPARATORLOOSE]:Lf[$f.COMPARATOR],o=r.match(s);if(!o)throw new TypeError(`Invalid comparator: ${r}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new Df(o[2],this.options.loose):this.semver=gr}toString(){return this.value}test(r){if(cu("Comparator.test",r,this.options.loose),this.semver===gr||r===gr)return!0;if(typeof r=="string")try{r=new Df(r,this.options)}catch{return!1}return fu(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof _r))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Pf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new Pf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),a=this.semver.version===r.semver.version,_=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),y=fu(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),E=fu(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||a&&_||y||E}};Nf.exports=_r;var Ry=lr(),{re:Lf,t:$f}=Jt(),fu=uu(),cu=ar(),Df=we(),Pf=Ze()});var vr=L((tA,qf)=>{var Cy=Ze(),by=(i,r,s)=>{try{r=new Cy(r,s)}catch{return!1}return r.test(i)};qf.exports=by});var Mf=L((nA,Ff)=>{var Ty=Ze(),Ly=(i,r)=>new Ty(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));Ff.exports=Ly});var Gf=L((rA,Hf)=>{var $y=we(),Dy=Ze(),Py=(i,r,s)=>{let o=null,f=null,a=null;try{a=new Dy(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||f.compare(_)===-1)&&(o=_,f=new $y(o,s))}),o};Hf.exports=Py});var Uf=L((iA,Wf)=>{var Ny=we(),qy=Ze(),Fy=(i,r,s)=>{let o=null,f=null,a=null;try{a=new qy(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||f.compare(_)===1)&&(o=_,f=new Ny(o,s))}),o};Wf.exports=Fy});var Xf=L((sA,Kf)=>{var hu=we(),My=Ze(),Bf=cr(),Hy=(i,r)=>{i=new My(i,r);let s=new hu("0.0.0");if(i.test(s)||(s=new hu("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],a=null;f.forEach(_=>{let y=new hu(_.semver.version);switch(_.operator){case">":y.prerelease.length===0?y.patch++:y.prerelease.push(0),y.raw=y.format();case"":case">=":(!a||Bf(y,a))&&(a=y);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${_.operator}`)}}),a&&(!s||Bf(s,a))&&(s=a)}return s&&i.test(s)?s:null};Kf.exports=Hy});var kf=L((uA,jf)=>{var Gy=Ze(),Wy=(i,r)=>{try{return new Gy(i,r).range||"*"}catch{return null}};jf.exports=Wy});var Oi=L((oA,Zf)=>{var Uy=we(),zf=dr(),{ANY:By}=zf,Ky=Ze(),Xy=vr(),Vf=cr(),Yf=yi(),jy=wi(),ky=Ei(),zy=(i,r,s,o)=>{i=new Uy(i,o),r=new Ky(r,o);let f,a,_,y,E;switch(s){case">":f=Vf,a=jy,_=Yf,y=">",E=">=";break;case"<":f=Yf,a=ky,_=Vf,y="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Xy(i,r,o))return!1;for(let p=0;p<r.set.length;++p){let A=r.set[p],R=null,T=null;if(A.forEach(P=>{P.semver===By&&(P=new zf(">=0.0.0")),R=R||P,T=T||P,f(P.semver,R.semver,o)?R=P:_(P.semver,T.semver,o)&&(T=P)}),R.operator===y||R.operator===E||(!T.operator||T.operator===y)&&a(i,T.semver))return!1;if(T.operator===E&&_(i,T.semver))return!1}return!0};Zf.exports=zy});var Qf=L((aA,Jf)=>{var Vy=Oi(),Yy=(i,r,s)=>Vy(i,r,">",s);Jf.exports=Yy});var tc=L((lA,ec)=>{var Zy=Oi(),Jy=(i,r,s)=>Zy(i,r,"<",s);ec.exports=Jy});var ic=L((fA,rc)=>{var nc=Ze(),Qy=(i,r,s)=>(i=new nc(i,s),r=new nc(r,s),i.intersects(r));rc.exports=Qy});var uc=L((cA,sc)=>{var eE=vr(),tE=Ye();sc.exports=(i,r,s)=>{let o=[],f=null,a=null,_=i.sort((A,R)=>tE(A,R,s));for(let A of _)eE(A,r,s)?(a=A,f||(f=A)):(a&&o.push([f,a]),a=null,f=null);f&&o.push([f,null]);let y=[];for(let[A,R]of o)A===R?y.push(A):!R&&A===_[0]?y.push("*"):R?A===_[0]?y.push(`<=${R}`):y.push(`${A} - ${R}`):y.push(`>=${A}`);let E=y.join(" || "),p=typeof r.raw=="string"?r.raw:String(r);return E.length<p.length?E:r}});var cc=L((hA,fc)=>{var oc=Ze(),Ii=dr(),{ANY:pu}=Ii,mr=vr(),du=Ye(),nE=(i,r,s={})=>{if(i===r)return!0;i=new oc(i,s),r=new oc(r,s);let o=!1;e:for(let f of i.set){for(let a of r.set){let _=rE(f,a,s);if(o=o||_!==null,_)continue e}if(o)return!1}return!0},rE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===pu){if(r.length===1&&r[0].semver===pu)return!0;s.includePrerelease?i=[new Ii(">=0.0.0-0")]:i=[new Ii(">=0.0.0")]}if(r.length===1&&r[0].semver===pu){if(s.includePrerelease)return!0;r=[new Ii(">=0.0.0")]}let o=new Set,f,a;for(let P of i)P.operator===">"||P.operator===">="?f=ac(f,P,s):P.operator==="<"||P.operator==="<="?a=lc(a,P,s):o.add(P.semver);if(o.size>1)return null;let _;if(f&&a){if(_=du(f.semver,a.semver,s),_>0)return null;if(_===0&&(f.operator!==">="||a.operator!=="<="))return null}for(let P of o){if(f&&!mr(P,String(f),s)||a&&!mr(P,String(a),s))return null;for(let J of r)if(!mr(P,String(J),s))return!1;return!0}let y,E,p,A,R=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;R&&R.prerelease.length===1&&a.operator==="<"&&R.prerelease[0]===0&&(R=!1);for(let P of r){if(A=A||P.operator===">"||P.operator===">=",p=p||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(y=ac(f,P,s),y===P&&y!==f)return!1}else if(f.operator===">="&&!mr(f.semver,String(P),s))return!1}if(a){if(R&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===R.major&&P.semver.minor===R.minor&&P.semver.patch===R.patch&&(R=!1),P.operator==="<"||P.operator==="<="){if(E=lc(a,P,s),E===P&&E!==a)return!1}else if(a.operator==="<="&&!mr(a.semver,String(P),s))return!1}if(!P.operator&&(a||f)&&_!==0)return!1}return!(f&&p&&!a&&_!==0||a&&A&&!f&&_!==0||T||R)},ac=(i,r,s)=>{if(!i)return r;let o=du(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},lc=(i,r,s)=>{if(!i)return r;let o=du(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};fc.exports=nE});var pc=L((pA,hc)=>{var gu=Jt();hc.exports={re:gu.re,src:gu.src,tokens:gu.t,SEMVER_SPEC_VERSION:or().SEMVER_SPEC_VERSION,SemVer:we(),compareIdentifiers:di().compareIdentifiers,rcompareIdentifiers:di().rcompareIdentifiers,parse:Qt(),valid:$l(),clean:Pl(),inc:ql(),diff:Ul(),major:Kl(),minor:jl(),patch:zl(),prerelease:Yl(),compare:Ye(),rcompare:Jl(),compareLoose:ef(),compareBuild:mi(),sort:sf(),rsort:of(),gt:cr(),lt:yi(),eq:vi(),neq:su(),gte:Ei(),lte:wi(),cmp:uu(),coerce:gf(),Comparator:dr(),Range:Ze(),satisfies:vr(),toComparators:Mf(),maxSatisfying:Gf(),minSatisfying:Uf(),minVersion:Xf(),validRange:kf(),outside:Oi(),gtr:Qf(),ltr:tc(),intersects:ic(),simplifyRange:uc(),subset:cc()}});var Ot=L(rn=>{"use strict";var dc=rn&&rn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rn,"__esModule",{value:!0});rn.getCoreVersion=void 0;var gc=dc(require("path")),_c=dc(require("fs")),iE=pc(),sE=require("@serverless-devs/core"),_u=gc.default.join(sE.getRootHome(),"cache","core"),vc=gc.default.join(_u,"package.json");function uE(){if(_c.default.existsSync(vc)){var i=require("@serverless-devs/core/package.json").version,r=mc();return iE.gt(r,i)?require(_u):require("@serverless-devs/core")}return require("@serverless-devs/core")}function mc(){return _c.default.existsSync(_u)?require(vc).version:void 0}rn.getCoreVersion=mc;rn.default=uE()});var yc=L((gA,oE)=>{oE.exports={name:"@serverless-devs/s",version:"2.0.95-beta.1",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",commander:"^6.0.0",dotenv:"^10.0.0",esbuild:"^0.13.6",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"^0.1.15-beta.2"}}});var Ti=L(W=>{"use strict";var aE=W&&W.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),lE=W&&W.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),fE=W&&W.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&aE(r,i,s);return lE(r,i),r},Ec=W&&W.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},wc=W&&W.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ri=W&&W.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(W,"__esModule",{value:!0});W.emoji=W.mark=W.replaceTemplate=W.getTemplatekey=W.replaceFun=W.getLang=W.printn=W.checkTemplateFile=W.checkAndReturnTemplateFile=W.yamlLoad=W.getFolderSize=W.getVersion=W.bgRed=W.red=void 0;var ge=Ri(require("path")),He=Ri(require("fs")),vu=Ri(gl()),cE=Ri(require("os")),hE=Eu(),Ci=fE(Ot()),mu=Ci.default.colors,pE=Ci.default.jsyaml,bi=yc();W.red=mu.hex("#fd5750");W.bgRed=mu.hex("#000").bgHex("#fd5750");function dE(){return(0,Ci.getCoreVersion)()?bi.name+": "+bi.version+", @serverless-devs/core: "+(0,Ci.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:bi.name+": "+bi.version+", "+process.platform+"-"+process.arch+", node-"+process.version}W.getVersion=dE;function gE(i){return Ec(this,void 0,void 0,function(){function r(f){return Ec(this,void 0,void 0,function(){var a,_;return wc(this,function(y){switch(y.label){case 0:return a=He.default.lstatSync(f),typeof a!="object"?[2]:(s.set(a.ino,a.size),a.isDirectory()?(_=He.default.readdirSync(f),typeof _!="object"?[2]:[4,Promise.all(_.map(function(E){return r(ge.default.join(f,E))}))]):[3,2]);case 1:y.sent(),y.label=2;case 2:return[2]}})})}var s,o;return wc(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(a,_){return a+_},0),[2,o]}})})}W.getFolderSize=gE;function Ac(i){var r=He.default.readFileSync(i,"utf8");try{return pE.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var s=ge.default.basename(i);new hE.HumanError({errorMessage:s+" format is incorrect",tips:"Please check the configuration of "+s+", Serverless Devs' Yaml specification document can refer to\uFF1A"+mu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}W.yamlLoad=Ac;function yr(i,r){r===void 0&&(r=!1);var s=He.default.readFileSync(i,"utf8"),o=r?JSON.parse(s):Ac(i);if(!o)return!1;for(var f in o)if(o[f].Component&&o[f].Provider&&o[f].Properties)return!0;return o.hasOwnProperty("edition")}function xc(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var i=process.cwd(),r=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,s=r?process.argv.indexOf(r):-1;if(s!==-1){var o=s+1,f=process.argv[o];if(f&&(f.endsWith(".yaml")||f.endsWith(".yml")||f.endsWith(".json"))){var a=!!f.endsWith(".json");if(He.default.existsSync(ge.default.join(i,f))&&yr(ge.default.join(i,f),a)){process.argv.splice(s,2);var _=JSON.parse(process.env.serverless_devs_temp_argv);return _.splice(_.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(_),process.env.serverless_devs_temp_template=ge.default.join(i,f),ge.default.join(i,f)}else if(He.default.existsSync(f)&&yr(f,a)){process.argv.splice(s,2);var _=JSON.parse(process.env.serverless_devs_temp_argv);return _.splice(_.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(_),process.env.serverless_devs_temp_template=f,f}}}return He.default.existsSync(ge.default.join(i,"s.yaml"))&&yr(ge.default.join(i,"s.yaml"))?(process.env.serverless_devs_temp_template=ge.default.join(i,"s.yaml"),ge.default.join(i,"s.yaml")):He.default.existsSync(ge.default.join(i,"s.yml"))&&yr(ge.default.join(i,"s.yml"))?(process.env.serverless_devs_temp_template=ge.default.join(i,"s.yml"),ge.default.join(i,"s.yml")):He.default.existsSync(ge.default.join(i,"s.json"))&&yr(ge.default.join(i,"s.json"),!0)?(process.env.serverless_devs_temp_template=ge.default.join(i,"s.json"),ge.default.join(i,"s.json")):null}W.checkAndReturnTemplateFile=xc;function Sc(i){return He.default.existsSync(i)?i:null}W.checkTemplateFile=Sc;function Oc(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}W.printn=Oc;function Ic(){return"en"}W.getLang=Ic;function yu(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var a=o[f].replace(/{{|}}/g,""),_=vu.default.trim(a.split("|")[0]);r[_]&&(i=i.replace(o[f],r[_]))}return i}W.replaceFun=yu;function Rc(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var f=o.replace(/{{|}}/g,""),a=f.split("|");return{name:vu.default.trim(a[0]),desc:vu.default.trim(a[1])}}):[]}W.getTemplatekey=Rc;function Cc(i,r){i.forEach(function(s){if(He.default.existsSync(s)){var o=He.default.readFileSync(s,"utf-8"),f=yu(o,r);He.default.writeFileSync(s,f,"utf-8")}})}W.replaceTemplate=Cc;function bc(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}W.mark=bc;function _E(i){return cE.default.platform()==="win32"?"":i}W.emoji=_E;W.default={checkAndReturnTemplateFile:xc,checkTemplateFile:Sc,printn:Oc,mark:bc,getLang:Ic,replaceTemplate:Cc,replaceFun:yu,getTemplatekey:Rc}});var Dc=L(It=>{"use strict";var Tc=It&&It.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(It,"__esModule",{value:!0});It.getHistoryFile=It.getHomeDir=void 0;var vE=Tc(require("path")),Lc=Tc(Ot()),Li=Lc.default.fse,mE=Lc.default.getRootHome;function wu(){var i=mE();return Li.existsSync(i)||Li.mkdirSync(i),i}It.getHomeDir=wu;function $c(){var i=vE.default.join(wu(),"history");return Li.existsSync(i)||Li.createFileSync(i),i}It.getHistoryFile=$c;It.default={getHomeDir:wu,getHistoryFile:$c}});var Wc=L(Re=>{"use strict";var yE=Re&&Re.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},EE=Re&&Re.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Au=Re&&Re.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Re,"__esModule",{value:!0});Re.handlerProfileFile=Re.getConfig=Re.setConfig=void 0;var Pc=Au(require("path")),wE=Au(Dc()),xu=Au(Ot()),ft=xu.default.fse,$i=xu.default.jsyaml,Nc=xu.default.getRootHome;function AE(i){var r=Fc();ft.writeFileSync(r,$i.dump(i))}function qc(){var i=Fc();if(!ft.existsSync(i))return{};try{var r=$i.load(ft.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Fc(){var i=Pc.default.join(wE.default.getHomeDir(),"set-config.yml");return ft.existsSync(i)||ft.createFileSync(i),i}function Mc(i,r){var s=qc();s[i]=r,AE(s)}Re.setConfig=Mc;function Hc(i,r){var s=qc();return s[i]||r}Re.getConfig=Hc;function Gc(i){return yE(this,void 0,void 0,function(){var r,s,o,f,a,_,y;return EE(this,function(E){switch(E.label){case 0:if(r=i.filePath||"set-config.yml",s=Pc.default.join(Nc(),r),o=ft.existsSync(s),f={},o)return[3,5];a=Nc(),E.label=1;case 1:return E.trys.push([1,2,,4]),ft.statSync(a),[3,4];case 2:return _=E.sent(),[4,ft.mkdirSync(a)];case 3:return E.sent(),[3,4];case 4:return[3,6];case 5:try{f=$i.load(ft.readFileSync(s,"utf8"))||{}}catch(p){throw p}E.label=6;case 6:return i.read?[2,f]:(y=i.configKey||"",f[y]=i.data,[4,ft.writeFileSync(s,$i.dump(f))]);case 7:return E.sent(),[2,f]}})})}Re.handlerProfileFile=Gc;Re.default={setConfig:Mc,getConfig:Hc,handlerProfileFile:Gc}});var sn=L(Cn=>{"use strict";var xE=Cn&&Cn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ServerlessError=void 0;var SE=xE(Ot()),OE=SE.default.Logger,IE=new OE("S-CLI-ERROR"),RE=function(){function i(r,s,o){IE.error(r+": "+s,o),process.exit(1)}return i}();Cn.ServerlessError=RE});var Uc=L(bn=>{"use strict";var CE=bn&&bn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(bn,"__esModule",{value:!0});bn.CommandError=void 0;var bE=sn(),TE=function(i){CE(r,i);function r(s,o){return i.call(this,"Error",s,o)||this}return r}(bE.ServerlessError);bn.CommandError=TE});var Bc=L(Tn=>{"use strict";var LE=Tn&&Tn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ConfigDeleteError=void 0;var $E=sn(),DE=function(i){LE(r,i);function r(s,o){return i.call(this,"Deletion failed",s,o)||this}return r}($E.ServerlessError);Tn.ConfigDeleteError=DE});var Kc=L(Ln=>{"use strict";var PE=Ln&&Ln.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.ConfigError=void 0;var NE=sn(),qE=function(i){PE(r,i);function r(s,o){return i.call(this,"Config failed",s,o)||this}return r}(NE.ServerlessError);Ln.ConfigError=qE});var Xc=L($n=>{"use strict";var FE=$n&&$n.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.ConfigGetError=void 0;var ME=sn(),HE=function(i){FE(r,i);function r(s,o){return i.call(this,"Get failed",s,o)||this}return r}(ME.ServerlessError);$n.ConfigGetError=HE});var jc=L(Dn=>{"use strict";var GE=Dn&&Dn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.InitError=void 0;var WE=sn(),UE=function(i){GE(r,i);function r(s,o){return i.call(this,"Initialization failed",s,o)||this}return r}(WE.ServerlessError);Dn.InitError=UE});var zc=L(ct=>{"use strict";var BE=ct&&ct.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},KE=ct&&ct.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},XE=ct&&ct.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ct,"__esModule",{value:!0});ct.HumanError=void 0;var kc=XE(Ot()),jE=Ti(),kE=kc.default.colors,zE=function(){function i(r){var s=r.errorMessage,o=r.tips;this.errorMessage=s,console.log(`
35
+ `+(0,jE.bgRed)("ERROR:")),console.log("TypeError: "+s+`
36
+ `),console.log(kE.gray(o)+`
37
+ `)}return i.prototype.report=function(r){return BE(this,void 0,void 0,function(){var s;return KE(this,function(o){switch(o.label){case 0:return s=r.error,[4,kc.default.report({type:"jsError",content:this.errorMessage+"||"+s.stack})];case 1:return o.sent(),[2]}})})},i}();ct.HumanError=zE});var Yc=L(Pn=>{"use strict";var VE=Pn&&Pn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.HumanWarning=void 0;var YE=VE(Ot()),Vc=YE.default.colors,ZE=function(){function i(r){var s=r.warningMessage,o=r.tips;console.log(`
38
+ `+Vc.hex("#000").bgYellow("WARNING:")),console.log(s+`
39
+ `),o&&console.log(Vc.gray(o)+`
40
+ `)}return i}();Pn.HumanWarning=ZE});var Eu=L(ne=>{"use strict";var JE=ne&&ne.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},QE=ne&&ne.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ew=ne&&ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ne,"__esModule",{value:!0});ne.HandleError=ne.HumanWarning=ne.HumanError=ne.ServerlessError=ne.InitError=ne.ConfigGetError=ne.ConfigError=ne.ConfigDeleteError=ne.CommandError=void 0;var Su=Ti(),tw=Wc(),Ou=ew(Ot()),un=Ou.default.colors,nw=Ou.default.report,rw=Ou.default.getMAC,iw=Uc();Object.defineProperty(ne,"CommandError",{enumerable:!0,get:function(){return iw.CommandError}});var sw=Bc();Object.defineProperty(ne,"ConfigDeleteError",{enumerable:!0,get:function(){return sw.ConfigDeleteError}});var uw=Kc();Object.defineProperty(ne,"ConfigError",{enumerable:!0,get:function(){return uw.ConfigError}});var ow=Xc();Object.defineProperty(ne,"ConfigGetError",{enumerable:!0,get:function(){return ow.ConfigGetError}});var aw=jc();Object.defineProperty(ne,"InitError",{enumerable:!0,get:function(){return aw.InitError}});var lw=sn();Object.defineProperty(ne,"ServerlessError",{enumerable:!0,get:function(){return lw.ServerlessError}});var fw=zc();Object.defineProperty(ne,"HumanError",{enumerable:!0,get:function(){return fw.HumanError}});var cw=Yc();Object.defineProperty(ne,"HumanWarning",{enumerable:!0,get:function(){return cw.HumanWarning}});function hw(){try{return rw().replace(/:/g,"")}catch{return"unknown"}}function Iu(i,r){return""+un.gray(i)+un.gray.underline(r)}var pw=function(){function i(r){var s=r.error,o=r.prefix,f=o===void 0?"Message:":o;this.traceId=""+hw()+Date.now(),console.log((0,Su.red)("\u2716 "+f+`
41
+ `));var a=(0,tw.getConfig)("analysis");a!=="disable"&&console.log(un.gray("TraceId: "+this.traceId)),console.log(un.gray("Environment: "+(0,Su.getVersion)())),console.log(Iu("Documents: ","https://www.serverless-devs.com")),console.log(Iu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(Iu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
+ `)),console.log((0,Su.bgRed)("ERROR:")+`
43
+ `+s+`
44
+ `),a!=="disable"&&console.log(un.gray("Please copy traceId: "+this.traceId+" and join Dingding group: 33947367 for consultation.")),console.log(un.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(un.gray(`And run again with the '--debug' option or 's -h' to get more logs.
45
+ `))}return i.prototype.report=function(r){return JE(this,void 0,void 0,function(){return QE(this,function(s){return nw({type:"jsError",content:r.message+"||"+r.stack,traceId:this.traceId}),[2]})})},i}();ne.HandleError=pw});"use strict";var dw=exports&&exports.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(A){try{p(o.next(A))}catch(R){_(R)}}function E(A){try{p(o.throw(A))}catch(R){_(R)}}function p(A){A.done?a(A.value):f(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},gw=exports&&exports.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(A){return E([p,A])}}function E(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Zc=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var $e=Zc(dl()),Jc=Eu(),_w=Ti(),Ru=Zc(Ot()),vw=Ru.default.setCredential,mw=Ru.default.setKnownCredential,yw=Ru.default.colors,Ew=`You can add an account
46
46
 
47
47
  Example:
48
48
  $ s config add
@@ -58,7 +58,7 @@ function print() { __p += __j.call(arguments, '') }
58
58
  google: PrivateKeyData
59
59
  tencent: AccountID, SecretID, SecretKey
60
60
 
61
- `.concat((0,_w.emoji)("\u{1F9ED}")," How to get the key: ").concat(yw.underline("https://github.com/Serverless-Devs/docs/tree/master/zh/others/provider-config"));$e.default.name("s config add").usage("[commands] [name]").option("--AccountID [AccountID]","AccountID of key information").option("--AccessKeyID [AccessKeyID]","AccessKeyID of key information").option("--AccessKeySecret [AccessKeySecret]","AccessKeySecret of key information").option("--SecurityToken [SecurityToken]","SecurityToken of key information").option("--SecretAccessKey [SecretAccessKey]","SecretAccessKey of key information").option("--AccessKey [AccessKey]","AccessKey of key information").option("--SecretKey [SecretKey]","SecretKey of key information").option("--SecretID [SecretID]","SecretID of key information").option("--PrivateKeyData [PrivateKeyData]","PrivateKeyData of key information").option("-kl , --keyList [keyList]","Keys of key information, like: -kl key1,key2,key3").option("-il , --infoList [infoList]","Values of key information, like: -il info1,info2,info3").option("-a , --aliasName [name]","Key pair alias, if the alias is not set, use default instead").option("-f","Mandatory overwrite key information").helpOption("-h, --help","Display help for command").description(Ew).addHelpCommand(!1).parse(process.argv);(function(){return dw(void 0,void 0,void 0,function(){var i,r,s,o,f,a,_,y,E,p,A,R,T,P,J,Ge,on,me;return gw(this,function(Ht){if(i=$e.default.AccountID,r=$e.default.AccessKeyID,s=$e.default.AccessKeySecret,o=$e.default.SecretAccessKey,f=$e.default.AccessKey,a=$e.default.SecretKey,_=$e.default.PrivateKeyData,y=$e.default.SecretID,E=$e.default.keyList,p=$e.default.infoList,A=$e.default.aliasName,R=A===void 0?process.env.serverless_devs_temp_access:A,T=$e.default.SecurityToken,P=$e.default.f,process.env.Temp_Params=JSON.stringify({f:P}),J={},E&&p)if(Ge=E.split(","),on=p.split(","),Ge.length===on.length)for(me=0;me<Ge.length;me++)J[Ge[me]]=on[me];else throw new Jc.CommandError("Please make sure -kl/--keyList is as long as -il/--infoList");return i&&(J.AccountID=i),r&&(J.AccessKeyID=r),s&&(J.AccessKeySecret=s),T&&(J.SecurityToken=T),o&&(J.SecretAccessKey=o),f&&(J.AccessKey=f),a&&(J.SecretKey=a),a&&(J.SecretKey=a),y&&(J.SecretID=y),_&&(J.PrivateKeyData=_),Object.keys(J).length>0?mw(J,R):vw(),[2]})})})().catch(function(i){throw new Jc.CommandError(i.message)});
61
+ `+(0,_w.emoji)("\u{1F9ED}")+" How to get the key: "+yw.underline("https://github.com/Serverless-Devs/docs/tree/master/zh/others/provider-config");$e.default.name("s config add").usage("[commands] [name]").option("--AccountID [AccountID]","AccountID of key information").option("--AccessKeyID [AccessKeyID]","AccessKeyID of key information").option("--AccessKeySecret [AccessKeySecret]","AccessKeySecret of key information").option("--SecurityToken [SecurityToken]","SecurityToken of key information").option("--SecretAccessKey [SecretAccessKey]","SecretAccessKey of key information").option("--AccessKey [AccessKey]","AccessKey of key information").option("--SecretKey [SecretKey]","SecretKey of key information").option("--SecretID [SecretID]","SecretID of key information").option("--PrivateKeyData [PrivateKeyData]","PrivateKeyData of key information").option("-kl , --keyList [keyList]","Keys of key information, like: -kl key1,key2,key3").option("-il , --infoList [infoList]","Values of key information, like: -il info1,info2,info3").option("-a , --aliasName [name]","Key pair alias, if the alias is not set, use default instead").option("-f","Mandatory overwrite key information").helpOption("-h, --help","Display help for command").description(Ew).addHelpCommand(!1).parse(process.argv);(function(){return dw(void 0,void 0,void 0,function(){var i,r,s,o,f,a,_,y,E,p,A,R,T,P,J,Ge,on,me;return gw(this,function(Ht){if(i=$e.default.AccountID,r=$e.default.AccessKeyID,s=$e.default.AccessKeySecret,o=$e.default.SecretAccessKey,f=$e.default.AccessKey,a=$e.default.SecretKey,_=$e.default.PrivateKeyData,y=$e.default.SecretID,E=$e.default.keyList,p=$e.default.infoList,A=$e.default.aliasName,R=A===void 0?process.env.serverless_devs_temp_access:A,T=$e.default.SecurityToken,P=$e.default.f,process.env.Temp_Params=JSON.stringify({f:P}),J={},E&&p)if(Ge=E.split(","),on=p.split(","),Ge.length===on.length)for(me=0;me<Ge.length;me++)J[Ge[me]]=on[me];else throw new Jc.CommandError("Please make sure -kl/--keyList is as long as -il/--infoList");return i&&(J.AccountID=i),r&&(J.AccessKeyID=r),s&&(J.AccessKeySecret=s),T&&(J.SecurityToken=T),o&&(J.SecretAccessKey=o),f&&(J.AccessKey=f),a&&(J.SecretKey=a),a&&(J.SecretKey=a),y&&(J.SecretID=y),_&&(J.PrivateKeyData=_),Object.keys(J).length>0?mw(J,R):vw(),[2]})})})().catch(function(i){throw new Jc.CommandError(i.message)});
62
62
  /**
63
63
  * @license
64
64
  * Lodash <https://lodash.com/>