@serverless-devs/s 2.0.97-beta.5 → 2.0.97-beta.6

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.
@@ -31,7 +31,7 @@ __p += '`),V&&(I+=`' +
31
31
  function print() { __p += __j.call(arguments, '') }
32
32
  `:`;
33
33
  `)+I+`return __p
34
- }`;var B=il(function(){return j(h,N+"return "+I).apply(i,d)});if(B.source=I,ks(B))throw B;return B}function im(e){return Z(e).toLowerCase()}function sm(e){return Z(e).toUpperCase()}function um(e,t,n){if(e=Z(e),e&&(n||t===i))return ho(e);if(!e||!(t=Pe(t)))return e;var u=et(e),f=et(t),h=po(u,f),d=go(u,f)+1;return Ft(u,h,d).join("")}function om(e,t,n){if(e=Z(e),e&&(n||t===i))return e.slice(0,vo(e)+1);if(!e||!(t=Pe(t)))return e;var u=et(e),f=go(u,et(t))+1;return Ft(u,0,f).join("")}function am(e,t,n){if(e=Z(e),e&&(n||t===i))return e.replace(ki,"");if(!e||!(t=Pe(t)))return e;var u=et(e),f=po(u,et(t));return Ft(u,f).join("")}function lm(e,t){var n=nh,u=rh;if(ie(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,u="omission"in t?Pe(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?Ft(d,0,g).join(""):e.slice(0,g);if(f===i)return m+u;if(d&&(g+=m.length-g),zs(f)){if(e.slice(g).search(f)){var S,O=m;for(f.global||(f=ls(f.source,Z(Pu.exec(f))+"g")),f.lastIndex=0;S=f.exec(O);)var I=S.index;m=m.slice(0,I===i?g:I)}}else if(e.indexOf(Pe(f),g)!=g){var b=m.lastIndexOf(f);b>-1&&(m=m.slice(0,b))}return m+u}function fm(e){return e=Z(e),e&&wh.test(e)?e.replace(Lu,Hp):e}var cm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),js=sa("toUpperCase");function rl(e,t,n){return e=Z(e),t=n?i:t,t===i?Pp(e)?Gp(e):Op(e):e.match(t)||[]}var il=X(function(e,t){try{return $e(e,i,t)}catch(n){return ks(n)?n:new U(n)}}),hm=mt(function(e,t){return We(t,function(n){n=lt(n),_t(e,n,Ks(e[n],e))}),e});function pm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new Ge(l);return[n(u[0]),u[1]]}):[],X(function(u){for(var f=-1;++f<t;){var h=e[f];if($e(h[0],this,u))return $e(h[1],this,u)}})}function dm(e){return Hd(Ke(e,p))}function Zs(e){return function(){return e}}function gm(e,t){return e==null||e!==e?t:e}var _m=oa(),vm=oa(!0);function Le(e){return e}function Js(e){return Fo(typeof e=="function"?e:Ke(e,p))}function mm(e){return Ho(Ke(e,p))}function ym(e,t){return Uo(e,Ke(t,p))}var Em=X(function(e,t){return function(n){return Jn(n,e,t)}}),wm=X(function(e,t){return function(n){return Jn(e,n,t)}});function Qs(e,t,n){var u=pe(t),f=Yr(t,u);n==null&&!(ie(t)&&(f.length||!u.length))&&(n=t,t=e,e=this,f=Yr(t,pe(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,d=Et(e);return We(f,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__=be(this.__actions__);return I.push({func:m,args:arguments,thisArg:e}),O.__chain__=S,O}return m.apply(e,Tt([this.value()],arguments))})}),e}function Am(){return he._===this&&(he._=Vp),this}function eu(){}function xm(e){return e=G(e),X(function(t){return Wo(t,e)})}var Sm=Ls(re),Om=Ls(oo),Im=Ls(ns);function sl(e){return Ms(e)?rs(lt(e)):ng(e)}function Rm(e){return function(t){return e==null?i:zt(e,t)}}var bm=la(),Cm=la(!0);function tu(){return[]}function nu(){return!1}function Tm(){return{}}function Lm(){return""}function $m(){return!0}function Dm(e,t){if(e=G(e),e<1||e>bt)return[];var n=ut,u=me(e,ut);t=q(t),e-=ut;for(var f=us(u,t);++n<e;)t(n);return f}function Pm(e){return W(e)?re(e,lt):Ne(e)?[e]:be(Oa(Z(e)))}function Nm(e){var t=++kp;return Z(e)+t}var qm=ti(function(e,t){return e+t},0),Fm=$s("ceil"),Mm=ti(function(e,t){return e/t},1),Hm=$s("floor");function Um(e){return e&&e.length?Vr(e,Le,vs):i}function Wm(e,t){return e&&e.length?Vr(e,q(t,2),vs):i}function Gm(e){return fo(e,Le)}function Bm(e,t){return fo(e,q(t,2))}function Km(e){return e&&e.length?Vr(e,Le,ws):i}function Xm(e,t){return e&&e.length?Vr(e,q(t,2),ws):i}var km=ti(function(e,t){return e*t},1),zm=$s("round"),Vm=ti(function(e,t){return e-t},0);function Ym(e){return e&&e.length?ss(e,Le):0}function jm(e,t){return e&&e.length?ss(e,q(t,2)):0}return c.after=mv,c.ary=qa,c.assign=s0,c.assignIn=ja,c.assignInWith=di,c.assignWith=u0,c.at=o0,c.before=Fa,c.bind=Ks,c.bindAll=hm,c.bindKey=Ma,c.castArray=Tv,c.chain=Da,c.chunk=Hg,c.compact=Ug,c.concat=Wg,c.cond=pm,c.conforms=dm,c.constant=Zs,c.countBy=Y_,c.create=a0,c.curry=Ha,c.curryRight=Ua,c.debounce=Wa,c.defaults=l0,c.defaultsDeep=f0,c.defer=yv,c.delay=Ev,c.difference=Gg,c.differenceBy=Bg,c.differenceWith=Kg,c.drop=Xg,c.dropRight=kg,c.dropRightWhile=zg,c.dropWhile=Vg,c.fill=Yg,c.filter=Z_,c.flatMap=ev,c.flatMapDeep=tv,c.flatMapDepth=nv,c.flatten=Ca,c.flattenDeep=jg,c.flattenDepth=Zg,c.flip=wv,c.flow=_m,c.flowRight=vm,c.fromPairs=Jg,c.functions=v0,c.functionsIn=m0,c.groupBy=rv,c.initial=e_,c.intersection=t_,c.intersectionBy=n_,c.intersectionWith=r_,c.invert=E0,c.invertBy=w0,c.invokeMap=sv,c.iteratee=Js,c.keyBy=uv,c.keys=pe,c.keysIn=Te,c.map=ai,c.mapKeys=x0,c.mapValues=S0,c.matches=mm,c.matchesProperty=ym,c.memoize=fi,c.merge=O0,c.mergeWith=Za,c.method=Em,c.methodOf=wm,c.mixin=Qs,c.negate=ci,c.nthArg=xm,c.omit=I0,c.omitBy=R0,c.once=Av,c.orderBy=ov,c.over=Sm,c.overArgs=xv,c.overEvery=Om,c.overSome=Im,c.partial=Xs,c.partialRight=Ga,c.partition=av,c.pick=b0,c.pickBy=Ja,c.property=sl,c.propertyOf=Rm,c.pull=o_,c.pullAll=La,c.pullAllBy=a_,c.pullAllWith=l_,c.pullAt=f_,c.range=bm,c.rangeRight=Cm,c.rearg=Sv,c.reject=cv,c.remove=c_,c.rest=Ov,c.reverse=Gs,c.sampleSize=pv,c.set=T0,c.setWith=L0,c.shuffle=dv,c.slice=h_,c.sortBy=vv,c.sortedUniq=y_,c.sortedUniqBy=E_,c.split=em,c.spread=Iv,c.tail=w_,c.take=A_,c.takeRight=x_,c.takeRightWhile=S_,c.takeWhile=O_,c.tap=U_,c.throttle=Rv,c.thru=oi,c.toArray=za,c.toPairs=Qa,c.toPairsIn=el,c.toPath=Pm,c.toPlainObject=Ya,c.transform=$0,c.unary=bv,c.union=I_,c.unionBy=R_,c.unionWith=b_,c.uniq=C_,c.uniqBy=T_,c.uniqWith=L_,c.unset=D0,c.unzip=Bs,c.unzipWith=$a,c.update=P0,c.updateWith=N0,c.values=xn,c.valuesIn=q0,c.without=$_,c.words=rl,c.wrap=Cv,c.xor=D_,c.xorBy=P_,c.xorWith=N_,c.zip=q_,c.zipObject=F_,c.zipObjectDeep=M_,c.zipWith=H_,c.entries=Qa,c.entriesIn=el,c.extend=ja,c.extendWith=di,Qs(c,c),c.add=qm,c.attempt=il,c.camelCase=U0,c.capitalize=tl,c.ceil=Fm,c.clamp=F0,c.clone=Lv,c.cloneDeep=Dv,c.cloneDeepWith=Pv,c.cloneWith=$v,c.conformsTo=Nv,c.deburr=nl,c.defaultTo=gm,c.divide=Mm,c.endsWith=W0,c.eq=nt,c.escape=G0,c.escapeRegExp=B0,c.every=j_,c.find=J_,c.findIndex=Ra,c.findKey=c0,c.findLast=Q_,c.findLastIndex=ba,c.findLastKey=h0,c.floor=Hm,c.forEach=Pa,c.forEachRight=Na,c.forIn=p0,c.forInRight=d0,c.forOwn=g0,c.forOwnRight=_0,c.get=Vs,c.gt=qv,c.gte=Fv,c.has=y0,c.hasIn=Ys,c.head=Ta,c.identity=Le,c.includes=iv,c.indexOf=Qg,c.inRange=M0,c.invoke=A0,c.isArguments=jt,c.isArray=W,c.isArrayBuffer=Mv,c.isArrayLike=Ce,c.isArrayLikeObject=ue,c.isBoolean=Hv,c.isBuffer=Mt,c.isDate=Uv,c.isElement=Wv,c.isEmpty=Gv,c.isEqual=Bv,c.isEqualWith=Kv,c.isError=ks,c.isFinite=Xv,c.isFunction=Et,c.isInteger=Ba,c.isLength=hi,c.isMap=Ka,c.isMatch=kv,c.isMatchWith=zv,c.isNaN=Vv,c.isNative=Yv,c.isNil=Zv,c.isNull=jv,c.isNumber=Xa,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=ir,c.isRegExp=zs,c.isSafeInteger=Jv,c.isSet=ka,c.isString=pi,c.isSymbol=Ne,c.isTypedArray=An,c.isUndefined=Qv,c.isWeakMap=e0,c.isWeakSet=t0,c.join=i_,c.kebabCase=K0,c.last=ke,c.lastIndexOf=s_,c.lowerCase=X0,c.lowerFirst=k0,c.lt=n0,c.lte=r0,c.max=Um,c.maxBy=Wm,c.mean=Gm,c.meanBy=Bm,c.min=Km,c.minBy=Xm,c.stubArray=tu,c.stubFalse=nu,c.stubObject=Tm,c.stubString=Lm,c.stubTrue=$m,c.multiply=km,c.nth=u_,c.noConflict=Am,c.noop=eu,c.now=li,c.pad=z0,c.padEnd=V0,c.padStart=Y0,c.parseInt=j0,c.random=H0,c.reduce=lv,c.reduceRight=fv,c.repeat=Z0,c.replace=J0,c.result=C0,c.round=zm,c.runInContext=v,c.sample=hv,c.size=gv,c.snakeCase=Q0,c.some=_v,c.sortedIndex=p_,c.sortedIndexBy=d_,c.sortedIndexOf=g_,c.sortedLastIndex=__,c.sortedLastIndexBy=v_,c.sortedLastIndexOf=m_,c.startCase=tm,c.startsWith=nm,c.subtract=Vm,c.sum=Ym,c.sumBy=jm,c.template=rm,c.times=Dm,c.toFinite=wt,c.toInteger=G,c.toLength=Va,c.toLower=im,c.toNumber=ze,c.toSafeInteger=i0,c.toString=Z,c.toUpper=sm,c.trim=um,c.trimEnd=om,c.trimStart=am,c.truncate=lm,c.unescape=fm,c.uniqueId=Nm,c.upperCase=cm,c.upperFirst=js,c.each=Pa,c.eachRight=Na,c.first=Ta,Qs(c,function(){var e={};return ot(c,function(t,n){J.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,We(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),We(["drop","take"],function(e,t){z.prototype[e]=function(n){n=n===i?1:ce(G(n),0);var u=this.__filtered__&&!t?new z(this):this.clone();return u.__filtered__?u.__takeCount__=me(n,u.__takeCount__):u.__views__.push({size:me(n,ut),type:e+(u.__dir__<0?"Right":"")}),u},z.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),We(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==bu||n==oh;z.prototype[e]=function(f){var h=this.clone();return h.__iteratees__.push({iteratee:q(f,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),We(["head","last"],function(e,t){var n="take"+(t?"Right":"");z.prototype[e]=function(){return this[n](1).value()[0]}}),We(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");z.prototype[e]=function(){return this.__filtered__?new z(this):this[n](1)}}),z.prototype.compact=function(){return this.filter(Le)},z.prototype.find=function(e){return this.filter(e).head()},z.prototype.findLast=function(e){return this.reverse().find(e)},z.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new z(this):this.map(function(n){return Jn(n,e,t)})}),z.prototype.reject=function(e){return this.filter(ci(q(e)))},z.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},z.prototype.toArray=function(){return this.take(ut)},ot(z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),f=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!f||(c.prototype[t]=function(){var d=this.__wrapped__,g=u?[1]:arguments,m=d instanceof z,S=g[0],O=m||W(d),I=function(k){var V=f.apply(c,Tt([k],g));return u&&b?V[0]:V};O&&n&&typeof S=="function"&&S.length!=1&&(m=O=!1);var b=this.__chain__,N=!!this.__actions__.length,F=h&&!b,B=m&&!N;if(!h&&O){d=B?d:new z(this);var M=e.apply(d,g);return M.__actions__.push({func:oi,args:[I],thisArg:i}),new Be(M,b)}return F&&B?e.apply(this,g):(M=this.thru(I),F?u?M.value()[0]:M.value():M)})}),We(["pop","push","shift","sort","splice","unshift"],function(e){var t=Dr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var f=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(W(h)?h:[],f)}return this[n](function(d){return t.apply(W(d)?d:[],f)})}}),ot(z.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";J.call(vn,u)||(vn[u]=[]),vn[u].push({name:t,func:n})}}),vn[ei(i,Ze).name]=[{name:"wrapper",func:i}],z.prototype.clone=fd,z.prototype.reverse=cd,z.prototype.value=hd,c.prototype.at=W_,c.prototype.chain=G_,c.prototype.commit=B_,c.prototype.next=K_,c.prototype.plant=k_,c.prototype.reverse=z_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=V_,c.prototype.first=c.prototype.head,Xn&&(c.prototype[Xn]=X_),c},$t=Bp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(he._=$t,define(function(){return $t})):Gt?((Gt.exports=$t)._=$t,Ji._=$t):he._=$t}).call(Sn)});var ar=$((Rw,_l)=>{var Qm="2.0.0",e1=256,t1=Number.MAX_SAFE_INTEGER||9007199254740991,n1=16;_l.exports={SEMVER_SPEC_VERSION:Qm,MAX_LENGTH:e1,MAX_SAFE_INTEGER:t1,MAX_SAFE_COMPONENT_LENGTH:n1}});var lr=$((bw,vl)=>{var r1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};vl.exports=r1});var Qt=$((Ht,ml)=>{var{MAX_SAFE_COMPONENT_LENGTH:uu}=ar(),i1=lr();Ht=ml.exports={};var s1=Ht.re=[],D=Ht.src=[],P=Ht.t={},u1=0,K=(i,r,s)=>{let o=u1++;i1(o,r),P[i]=o,D[o]=r,s1[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[P.NUMERICIDENTIFIER]})\\.(${D[P.NUMERICIDENTIFIER]})\\.(${D[P.NUMERICIDENTIFIER]})`);K("MAINVERSIONLOOSE",`(${D[P.NUMERICIDENTIFIERLOOSE]})\\.(${D[P.NUMERICIDENTIFIERLOOSE]})\\.(${D[P.NUMERICIDENTIFIERLOOSE]})`);K("PRERELEASEIDENTIFIER",`(?:${D[P.NUMERICIDENTIFIER]}|${D[P.NONNUMERICIDENTIFIER]})`);K("PRERELEASEIDENTIFIERLOOSE",`(?:${D[P.NUMERICIDENTIFIERLOOSE]}|${D[P.NONNUMERICIDENTIFIER]})`);K("PRERELEASE",`(?:-(${D[P.PRERELEASEIDENTIFIER]}(?:\\.${D[P.PRERELEASEIDENTIFIER]})*))`);K("PRERELEASELOOSE",`(?:-?(${D[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${D[P.PRERELEASEIDENTIFIERLOOSE]})*))`);K("BUILDIDENTIFIER","[0-9A-Za-z-]+");K("BUILD",`(?:\\+(${D[P.BUILDIDENTIFIER]}(?:\\.${D[P.BUILDIDENTIFIER]})*))`);K("FULLPLAIN",`v?${D[P.MAINVERSION]}${D[P.PRERELEASE]}?${D[P.BUILD]}?`);K("FULL",`^${D[P.FULLPLAIN]}$`);K("LOOSEPLAIN",`[v=\\s]*${D[P.MAINVERSIONLOOSE]}${D[P.PRERELEASELOOSE]}?${D[P.BUILD]}?`);K("LOOSE",`^${D[P.LOOSEPLAIN]}$`);K("GTLT","((?:<|>)?=?)");K("XRANGEIDENTIFIERLOOSE",`${D[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);K("XRANGEIDENTIFIER",`${D[P.NUMERICIDENTIFIER]}|x|X|\\*`);K("XRANGEPLAIN",`[v=\\s]*(${D[P.XRANGEIDENTIFIER]})(?:\\.(${D[P.XRANGEIDENTIFIER]})(?:\\.(${D[P.XRANGEIDENTIFIER]})(?:${D[P.PRERELEASE]})?${D[P.BUILD]}?)?)?`);K("XRANGEPLAINLOOSE",`[v=\\s]*(${D[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${D[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${D[P.XRANGEIDENTIFIERLOOSE]})(?:${D[P.PRERELEASELOOSE]})?${D[P.BUILD]}?)?)?`);K("XRANGE",`^${D[P.GTLT]}\\s*${D[P.XRANGEPLAIN]}$`);K("XRANGELOOSE",`^${D[P.GTLT]}\\s*${D[P.XRANGEPLAINLOOSE]}$`);K("COERCE",`(^|[^\\d])(\\d{1,${uu}})(?:\\.(\\d{1,${uu}}))?(?:\\.(\\d{1,${uu}}))?(?:$|[^\\d])`);K("COERCERTL",D[P.COERCE],!0);K("LONETILDE","(?:~>?)");K("TILDETRIM",`(\\s*)${D[P.LONETILDE]}\\s+`,!0);Ht.tildeTrimReplace="$1~";K("TILDE",`^${D[P.LONETILDE]}${D[P.XRANGEPLAIN]}$`);K("TILDELOOSE",`^${D[P.LONETILDE]}${D[P.XRANGEPLAINLOOSE]}$`);K("LONECARET","(?:\\^)");K("CARETTRIM",`(\\s*)${D[P.LONECARET]}\\s+`,!0);Ht.caretTrimReplace="$1^";K("CARET",`^${D[P.LONECARET]}${D[P.XRANGEPLAIN]}$`);K("CARETLOOSE",`^${D[P.LONECARET]}${D[P.XRANGEPLAINLOOSE]}$`);K("COMPARATORLOOSE",`^${D[P.GTLT]}\\s*(${D[P.LOOSEPLAIN]})$|^$`);K("COMPARATOR",`^${D[P.GTLT]}\\s*(${D[P.FULLPLAIN]})$|^$`);K("COMPARATORTRIM",`(\\s*)${D[P.GTLT]}\\s*(${D[P.LOOSEPLAIN]}|${D[P.XRANGEPLAIN]})`,!0);Ht.comparatorTrimReplace="$1$2$3";K("HYPHENRANGE",`^\\s*(${D[P.XRANGEPLAIN]})\\s+-\\s+(${D[P.XRANGEPLAIN]})\\s*$`);K("HYPHENRANGELOOSE",`^\\s*(${D[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${D[P.XRANGEPLAINLOOSE]})\\s*$`);K("STAR","(<|>)?=?\\s*\\*");K("GTE0","^\\s*>=\\s*0.0.0\\s*$");K("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var fr=$((Cw,yl)=>{var o1=["includePrerelease","loose","rtl"],a1=i=>i?typeof i!="object"?{loose:!0}:o1.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};yl.exports=a1});var _i=$((Tw,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},l1=(i,r)=>wl(r,i);Al.exports={compareIdentifiers:wl,rcompareIdentifiers:l1}});var Ee=$((Lw,Il)=>{var vi=lr(),{MAX_LENGTH:xl,MAX_SAFE_INTEGER:mi}=ar(),{re:Sl,t:Ol}=Qt(),f1=fr(),{compareIdentifiers:cr}=_i(),Ve=class{constructor(r,s){if(s=f1(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`);vi("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>mi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>mi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>mi||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(l=>{if(/^[0-9]+$/.test(l)){let a=+l;if(a>=0&&a<mi)return a}return l}):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(vi("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)),cr(this.major,r.major)||cr(this.minor,r.minor)||cr(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],l=r.prerelease[s];if(vi("prerelease compare",s,o,l),o===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(o===void 0)return-1;if(o===l)continue;return cr(o,l)}while(++s)}compareBuild(r){r instanceof Ve||(r=new Ve(r,this.options));let s=0;do{let o=this.build[s],l=r.build[s];if(vi("prerelease compare",s,o,l),o===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(o===void 0)return-1;if(o===l)continue;return cr(o,l)}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 en=$(($w,Tl)=>{var{MAX_LENGTH:c1}=ar(),{re:Rl,t:bl}=Qt(),Cl=Ee(),h1=fr(),p1=(i,r)=>{if(r=h1(r),i instanceof Cl)return i;if(typeof i!="string"||i.length>c1||!(r.loose?Rl[bl.LOOSE]:Rl[bl.FULL]).test(i))return null;try{return new Cl(i,r)}catch{return null}};Tl.exports=p1});var $l=$((Dw,Ll)=>{var d1=en(),g1=(i,r)=>{let s=d1(i,r);return s?s.version:null};Ll.exports=g1});var Pl=$((Pw,Dl)=>{var _1=en(),v1=(i,r)=>{let s=_1(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};Dl.exports=v1});var ql=$((Nw,Nl)=>{var m1=Ee(),y1=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new m1(i,s).inc(r,o).version}catch{return null}};Nl.exports=y1});var Ye=$((qw,Ml)=>{var Fl=Ee(),E1=(i,r,s)=>new Fl(i,s).compare(new Fl(r,s));Ml.exports=E1});var yi=$((Fw,Hl)=>{var w1=Ye(),A1=(i,r,s)=>w1(i,r,s)===0;Hl.exports=A1});var Gl=$((Mw,Wl)=>{var Ul=en(),x1=yi(),S1=(i,r)=>{if(x1(i,r))return null;{let s=Ul(i),o=Ul(r),l=s.prerelease.length||o.prerelease.length,a=l?"pre":"",_=l?"prerelease":"";for(let y in s)if((y==="major"||y==="minor"||y==="patch")&&s[y]!==o[y])return a+y;return _}};Wl.exports=S1});var Kl=$((Hw,Bl)=>{var O1=Ee(),I1=(i,r)=>new O1(i,r).major;Bl.exports=I1});var kl=$((Uw,Xl)=>{var R1=Ee(),b1=(i,r)=>new R1(i,r).minor;Xl.exports=b1});var Vl=$((Ww,zl)=>{var C1=Ee(),T1=(i,r)=>new C1(i,r).patch;zl.exports=T1});var jl=$((Gw,Yl)=>{var L1=en(),$1=(i,r)=>{let s=L1(i,r);return s&&s.prerelease.length?s.prerelease:null};Yl.exports=$1});var Jl=$((Bw,Zl)=>{var D1=Ye(),P1=(i,r,s)=>D1(r,i,s);Zl.exports=P1});var ef=$((Kw,Ql)=>{var N1=Ye(),q1=(i,r)=>N1(i,r,!0);Ql.exports=q1});var Ei=$((Xw,nf)=>{var tf=Ee(),F1=(i,r,s)=>{let o=new tf(i,s),l=new tf(r,s);return o.compare(l)||o.compareBuild(l)};nf.exports=F1});var sf=$((kw,rf)=>{var M1=Ei(),H1=(i,r)=>i.sort((s,o)=>M1(s,o,r));rf.exports=H1});var of=$((zw,uf)=>{var U1=Ei(),W1=(i,r)=>i.sort((s,o)=>U1(o,s,r));uf.exports=W1});var hr=$((Vw,af)=>{var G1=Ye(),B1=(i,r,s)=>G1(i,r,s)>0;af.exports=B1});var wi=$((Yw,lf)=>{var K1=Ye(),X1=(i,r,s)=>K1(i,r,s)<0;lf.exports=X1});var ou=$((jw,ff)=>{var k1=Ye(),z1=(i,r,s)=>k1(i,r,s)!==0;ff.exports=z1});var Ai=$((Zw,cf)=>{var V1=Ye(),Y1=(i,r,s)=>V1(i,r,s)>=0;cf.exports=Y1});var xi=$((Jw,hf)=>{var j1=Ye(),Z1=(i,r,s)=>j1(i,r,s)<=0;hf.exports=Z1});var au=$((Qw,pf)=>{var J1=yi(),Q1=ou(),ey=hr(),ty=Ai(),ny=wi(),ry=xi(),iy=(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 J1(i,s,o);case"!=":return Q1(i,s,o);case">":return ey(i,s,o);case">=":return ty(i,s,o);case"<":return ny(i,s,o);case"<=":return ry(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};pf.exports=iy});var gf=$((eA,df)=>{var sy=Ee(),uy=en(),{re:Si,t:Oi}=Qt(),oy=(i,r)=>{if(i instanceof sy)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(Si[Oi.COERCE]);else{let o;for(;(o=Si[Oi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),Si[Oi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;Si[Oi.COERCERTL].lastIndex=-1}return s===null?null:uy(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};df.exports=oy});var vf=$((tA,_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=$((nA,mf)=>{"use strict";mf.exports=Y;Y.Node=tn;Y.create=Y;function Y(i){var r=this;if(r instanceof Y||(r=new Y),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(l){r.push(l)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Y.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};Y.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++}};Y.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++}};Y.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)ly(this,arguments[i]);return this.length};Y.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)fy(this,arguments[i]);return this.length};Y.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}};Y.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}};Y.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};Y.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};Y.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};Y.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};Y.prototype.map=function(i,r){r=r||this;for(var s=new Y,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Y.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Y,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Y.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 l=0;o!==null;l++)s=i(s,o.value,l),o=o.next;return s};Y.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 l=this.length-1;o!==null;l--)s=i(s,o.value,l),o=o.prev;return s};Y.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};Y.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};Y.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 Y;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,l=this.head;l!==null&&o<i;o++)l=l.next;for(;l!==null&&o<r;o++,l=l.next)s.push(l.value);return s};Y.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 Y;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,l=this.tail;l!==null&&o>r;o--)l=l.prev;for(;l!==null&&o>i;o--,l=l.prev)s.push(l.value);return s};Y.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,l=this.head;l!==null&&o<i;o++)l=l.next;for(var a=[],o=0;l&&o<r;o++)a.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var o=0;o<s.length;o++)l=ay(this,l,s[o]);return a};Y.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 ay(i,r,s){var o=r===i.head?new tn(s,null,r,i):new tn(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function ly(i,r){i.tail=new tn(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function fy(i,r){i.head=new tn(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function tn(i,r,s,o){if(!(this instanceof tn))return new tn(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()(Y)}catch{}});var If=$((rA,Of)=>{"use strict";var cy=yf(),nn=Symbol("max"),xt=Symbol("length"),On=Symbol("lengthCalculator"),pr=Symbol("allowStale"),rn=Symbol("maxAge"),St=Symbol("dispose"),Ef=Symbol("noDisposeOnSet"),de=Symbol("lruList"),it=Symbol("cache"),wf=Symbol("updateAgeOnGet"),lu=()=>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[nn]=r.max||1/0,o=r.length||lu;if(this[On]=typeof o!="function"?lu:o,this[pr]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[rn]=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[nn]=r||1/0,dr(this)}get max(){return this[nn]}set allowStale(r){this[pr]=!!r}get allowStale(){return this[pr]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[rn]=r,dr(this)}get maxAge(){return this[rn]}set lengthCalculator(r){typeof r!="function"&&(r=lu),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})),dr(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 l=o.prev;Sf(this,r,o,s),o=l}}forEach(r,s){s=s||this;for(let o=this[de].head;o!==null;){let l=o.next;Sf(this,r,o,s),o=l}}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 cy,this[xt]=0}dump(){return this[de].map(r=>Ii(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[rn],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let l=o?Date.now():0,a=this[On](s,r);if(this[it].has(r)){if(a>this[nn])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=l,E.maxAge=o,E.value=s,this[xt]+=a-E.length,E.length=a,this.get(r),dr(this),!0}let _=new xf(r,s,a,l,o);return _.length>this[nn]?(this[St]&&this[St](r,s),!1):(this[xt]+=_.length,this[de].unshift(_),this[it].set(r,this[de].head),dr(this),!0)}has(r){if(!this[it].has(r))return!1;let s=this[it].get(r).value;return!Ii(this,s)}get(r){return fu(this,r,!0)}peek(r){return fu(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 l=r[o],a=l.e||0;if(a===0)this.set(l.k,l.v);else{let _=a-s;_>0&&this.set(l.k,l.v,_)}}}prune(){this[it].forEach((r,s)=>fu(this,s,!1))}},fu=(i,r,s)=>{let o=i[it].get(r);if(o){let l=o.value;if(Ii(i,l)){if(In(i,o),!i[pr])return}else s&&(i[wf]&&(o.value.now=Date.now()),i[de].unshiftNode(o));return l.value}},Ii=(i,r)=>{if(!r||!r.maxAge&&!i[rn])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[rn]&&s>i[rn]},dr=i=>{if(i[xt]>i[nn])for(let r=i[de].tail;i[xt]>i[nn]&&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,l,a){this.key=r,this.value=s,this.length=o,this.now=l,this.maxAge=a||0}},Sf=(i,r,s,o)=>{let l=s.value;Ii(i,l)&&(In(i,s),i[pr]||(l=void 0)),l&&r.call(o,l.value,l.key,i)};Of.exports=Af});var je=$((iA,Tf)=>{var Rn=class{constructor(r,s){if(s=py(s),r instanceof Rn)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new Rn(r.raw,s);if(r instanceof cu)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(l=>!bf(l[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let l of this.set)if(l.length===1&&my(l[0])){this.set=[l];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}`,l=Rf.get(o);if(l)return l;let a=this.options.loose,_=a?we[ve.HYPHENRANGELOOSE]:we[ve.HYPHENRANGE];r=r.replace(_,by(this.options.includePrerelease)),ae("hyphen replace",r),r=r.replace(we[ve.COMPARATORTRIM],gy),ae("comparator trim",r,we[ve.COMPARATORTRIM]),r=r.replace(we[ve.TILDETRIM],_y),r=r.replace(we[ve.CARETTRIM],vy),r=r.split(/\s+/).join(" ");let y=a?we[ve.COMPARATORLOOSE]:we[ve.COMPARATOR],E=r.split(" ").map(L=>yy(L,this.options)).join(" ").split(/\s+/).map(L=>Ry(L,this.options)).filter(this.options.loose?L=>!!L.match(y):()=>!0).map(L=>new cu(L,this.options)),p=E.length,A=new Map;for(let L of E){if(bf(L))return[L];A.set(L.value,L)}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=>Cf(o,s)&&r.set.some(l=>Cf(l,s)&&o.every(a=>l.every(_=>a.intersects(_,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new dy(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(Cy(this.set[s],r,this.options))return!0;return!1}};Tf.exports=Rn;var hy=If(),Rf=new hy({max:1e3}),py=fr(),cu=gr(),ae=lr(),dy=Ee(),{re:we,t:ve,comparatorTrimReplace:gy,tildeTrimReplace:_y,caretTrimReplace:vy}=Qt(),bf=i=>i.value==="<0.0.0-0",my=i=>i.value==="",Cf=(i,r)=>{let s=!0,o=i.slice(),l=o.pop();for(;s&&o.length;)s=o.every(a=>l.intersects(a,r)),l=o.pop();return s},yy=(i,r)=>(ae("comp",i,r),i=Ay(i,r),ae("caret",i),i=Ey(i,r),ae("tildes",i),i=Sy(i,r),ae("xrange",i),i=Iy(i,r),ae("stars",i),i),Oe=i=>!i||i.toLowerCase()==="x"||i==="*",Ey=(i,r)=>i.trim().split(/\s+/).map(s=>wy(s,r)).join(" "),wy=(i,r)=>{let s=r.loose?we[ve.TILDELOOSE]:we[ve.TILDE];return i.replace(s,(o,l,a,_,y)=>{ae("tilde",i,o,l,a,_,y);let E;return Oe(l)?E="":Oe(a)?E=`>=${l}.0.0 <${+l+1}.0.0-0`:Oe(_)?E=`>=${l}.${a}.0 <${l}.${+a+1}.0-0`:y?(ae("replaceTilde pr",y),E=`>=${l}.${a}.${_}-${y} <${l}.${+a+1}.0-0`):E=`>=${l}.${a}.${_} <${l}.${+a+1}.0-0`,ae("tilde return",E),E})},Ay=(i,r)=>i.trim().split(/\s+/).map(s=>xy(s,r)).join(" "),xy=(i,r)=>{ae("caret",i,r);let s=r.loose?we[ve.CARETLOOSE]:we[ve.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(l,a,_,y,E)=>{ae("caret",i,l,a,_,y,E);let p;return Oe(a)?p="":Oe(_)?p=`>=${a}.0.0${o} <${+a+1}.0.0-0`:Oe(y)?a==="0"?p=`>=${a}.${_}.0${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.0${o} <${+a+1}.0.0-0`:E?(ae("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`):(ae("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`),ae("caret return",p),p})},Sy=(i,r)=>(ae("replaceXRanges",i,r),i.split(/\s+/).map(s=>Oy(s,r)).join(" ")),Oy=(i,r)=>{i=i.trim();let s=r.loose?we[ve.XRANGELOOSE]:we[ve.XRANGE];return i.replace(s,(o,l,a,_,y,E)=>{ae("xRange",i,o,l,a,_,y,E);let p=Oe(a),A=p||Oe(_),R=A||Oe(y),L=R;return l==="="&&L&&(l=""),E=r.includePrerelease?"-0":"",p?l===">"||l==="<"?o="<0.0.0-0":o="*":l&&L?(A&&(_=0),y=0,l===">"?(l=">=",A?(a=+a+1,_=0,y=0):(_=+_+1,y=0)):l==="<="&&(l="<",A?a=+a+1:_=+_+1),l==="<"&&(E="-0"),o=`${l+a}.${_}.${y}${E}`):A?o=`>=${a}.0.0${E} <${+a+1}.0.0-0`:R&&(o=`>=${a}.${_}.0${E} <${a}.${+_+1}.0-0`),ae("xRange return",o),o})},Iy=(i,r)=>(ae("replaceStars",i,r),i.trim().replace(we[ve.STAR],"")),Ry=(i,r)=>(ae("replaceGTE0",i,r),i.trim().replace(we[r.includePrerelease?ve.GTE0PRE:ve.GTE0],"")),by=i=>(r,s,o,l,a,_,y,E,p,A,R,L,C)=>(Oe(o)?s="":Oe(l)?s=`>=${o}.0.0${i?"-0":""}`:Oe(a)?s=`>=${o}.${l}.0${i?"-0":""}`:_?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Oe(p)?E="":Oe(A)?E=`<${+p+1}.0.0-0`:Oe(R)?E=`<${p}.${+A+1}.0-0`:L?E=`<=${p}.${A}.${R}-${L}`:i?E=`<${p}.${A}.${+R+1}-0`:E=`<=${E}`,`${s} ${E}`.trim()),Cy=(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(ae(i[o].semver),i[o].semver!==cu.ANY&&i[o].semver.prerelease.length>0){let l=i[o].semver;if(l.major===r.major&&l.minor===r.minor&&l.patch===r.patch)return!0}return!1}return!0}});var gr=$((sA,Nf)=>{var _r=Symbol("SemVer ANY"),vr=class{static get ANY(){return _r}constructor(r,s){if(s=Ty(s),r instanceof vr){if(r.loose===!!s.loose)return r;r=r.value}pu("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===_r?this.value="":this.value=this.operator+this.semver.version,pu("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=_r}toString(){return this.value}test(r){if(pu("Comparator.test",r,this.options.loose),this.semver===_r||r===_r)return!0;if(typeof r=="string")try{r=new Df(r,this.options)}catch{return!1}return hu(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof vr))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===">"),l=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),a=this.semver.version===r.semver.version,_=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),y=hu(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),E=hu(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||l||a&&_||y||E}};Nf.exports=vr;var Ty=fr(),{re:Lf,t:$f}=Qt(),hu=au(),pu=lr(),Df=Ee(),Pf=je()});var mr=$((uA,qf)=>{var Ly=je(),$y=(i,r,s)=>{try{r=new Ly(r,s)}catch{return!1}return r.test(i)};qf.exports=$y});var Mf=$((oA,Ff)=>{var Dy=je(),Py=(i,r)=>new Dy(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));Ff.exports=Py});var Uf=$((aA,Hf)=>{var Ny=Ee(),qy=je(),Fy=(i,r,s)=>{let o=null,l=null,a=null;try{a=new qy(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||l.compare(_)===-1)&&(o=_,l=new Ny(o,s))}),o};Hf.exports=Fy});var Gf=$((lA,Wf)=>{var My=Ee(),Hy=je(),Uy=(i,r,s)=>{let o=null,l=null,a=null;try{a=new Hy(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||l.compare(_)===1)&&(o=_,l=new My(o,s))}),o};Wf.exports=Uy});var Xf=$((fA,Kf)=>{var du=Ee(),Wy=je(),Bf=hr(),Gy=(i,r)=>{i=new Wy(i,r);let s=new du("0.0.0");if(i.test(s)||(s=new du("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let l=i.set[o],a=null;l.forEach(_=>{let y=new du(_.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=Gy});var zf=$((cA,kf)=>{var By=je(),Ky=(i,r)=>{try{return new By(i,r).range||"*"}catch{return null}};kf.exports=Ky});var Ri=$((hA,Zf)=>{var Xy=Ee(),Vf=gr(),{ANY:ky}=Vf,zy=je(),Vy=mr(),Yf=hr(),jf=wi(),Yy=xi(),jy=Ai(),Zy=(i,r,s,o)=>{i=new Xy(i,o),r=new zy(r,o);let l,a,_,y,E;switch(s){case">":l=Yf,a=Yy,_=jf,y=">",E=">=";break;case"<":l=jf,a=jy,_=Yf,y="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Vy(i,r,o))return!1;for(let p=0;p<r.set.length;++p){let A=r.set[p],R=null,L=null;if(A.forEach(C=>{C.semver===ky&&(C=new Vf(">=0.0.0")),R=R||C,L=L||C,l(C.semver,R.semver,o)?R=C:_(C.semver,L.semver,o)&&(L=C)}),R.operator===y||R.operator===E||(!L.operator||L.operator===y)&&a(i,L.semver))return!1;if(L.operator===E&&_(i,L.semver))return!1}return!0};Zf.exports=Zy});var Qf=$((pA,Jf)=>{var Jy=Ri(),Qy=(i,r,s)=>Jy(i,r,">",s);Jf.exports=Qy});var tc=$((dA,ec)=>{var eE=Ri(),tE=(i,r,s)=>eE(i,r,"<",s);ec.exports=tE});var ic=$((gA,rc)=>{var nc=je(),nE=(i,r,s)=>(i=new nc(i,s),r=new nc(r,s),i.intersects(r));rc.exports=nE});var uc=$((_A,sc)=>{var rE=mr(),iE=Ye();sc.exports=(i,r,s)=>{let o=[],l=null,a=null,_=i.sort((A,R)=>iE(A,R,s));for(let A of _)rE(A,r,s)?(a=A,l||(l=A)):(a&&o.push([l,a]),a=null,l=null);l&&o.push([l,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=$((vA,fc)=>{var oc=je(),bi=gr(),{ANY:gu}=bi,yr=mr(),_u=Ye(),sE=(i,r,s={})=>{if(i===r)return!0;i=new oc(i,s),r=new oc(r,s);let o=!1;e:for(let l of i.set){for(let a of r.set){let _=uE(l,a,s);if(o=o||_!==null,_)continue e}if(o)return!1}return!0},uE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===gu){if(r.length===1&&r[0].semver===gu)return!0;s.includePrerelease?i=[new bi(">=0.0.0-0")]:i=[new bi(">=0.0.0")]}if(r.length===1&&r[0].semver===gu){if(s.includePrerelease)return!0;r=[new bi(">=0.0.0")]}let o=new Set,l,a;for(let C of i)C.operator===">"||C.operator===">="?l=ac(l,C,s):C.operator==="<"||C.operator==="<="?a=lc(a,C,s):o.add(C.semver);if(o.size>1)return null;let _;if(l&&a){if(_=_u(l.semver,a.semver,s),_>0)return null;if(_===0&&(l.operator!==">="||a.operator!=="<="))return null}for(let C of o){if(l&&!yr(C,String(l),s)||a&&!yr(C,String(a),s))return null;for(let le of r)if(!yr(C,String(le),s))return!1;return!0}let y,E,p,A,R=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:!1,L=l&&!s.includePrerelease&&l.semver.prerelease.length?l.semver:!1;R&&R.prerelease.length===1&&a.operator==="<"&&R.prerelease[0]===0&&(R=!1);for(let C of r){if(A=A||C.operator===">"||C.operator===">=",p=p||C.operator==="<"||C.operator==="<=",l){if(L&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===L.major&&C.semver.minor===L.minor&&C.semver.patch===L.patch&&(L=!1),C.operator===">"||C.operator===">="){if(y=ac(l,C,s),y===C&&y!==l)return!1}else if(l.operator===">="&&!yr(l.semver,String(C),s))return!1}if(a){if(R&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===R.major&&C.semver.minor===R.minor&&C.semver.patch===R.patch&&(R=!1),C.operator==="<"||C.operator==="<="){if(E=lc(a,C,s),E===C&&E!==a)return!1}else if(a.operator==="<="&&!yr(a.semver,String(C),s))return!1}if(!C.operator&&(a||l)&&_!==0)return!1}return!(l&&p&&!a&&_!==0||a&&A&&!l&&_!==0||L||R)},ac=(i,r,s)=>{if(!i)return r;let o=_u(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=_u(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};fc.exports=sE});var pc=$((mA,hc)=>{var vu=Qt();hc.exports={re:vu.re,src:vu.src,tokens:vu.t,SEMVER_SPEC_VERSION:ar().SEMVER_SPEC_VERSION,SemVer:Ee(),compareIdentifiers:_i().compareIdentifiers,rcompareIdentifiers:_i().rcompareIdentifiers,parse:en(),valid:$l(),clean:Pl(),inc:ql(),diff:Gl(),major:Kl(),minor:kl(),patch:Vl(),prerelease:jl(),compare:Ye(),rcompare:Jl(),compareLoose:ef(),compareBuild:Ei(),sort:sf(),rsort:of(),gt:hr(),lt:wi(),eq:yi(),neq:ou(),gte:Ai(),lte:xi(),cmp:au(),coerce:gf(),Comparator:gr(),Range:je(),satisfies:mr(),toComparators:Mf(),maxSatisfying:Uf(),minSatisfying:Gf(),minVersion:Xf(),validRange:zf(),outside:Ri(),gtr:Qf(),ltr:tc(),intersects:ic(),simplifyRange:uc(),subset:cc()}});var Ot=$(sn=>{"use strict";var dc=sn&&sn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(sn,"__esModule",{value:!0});sn.getCoreVersion=void 0;var gc=dc(require("path")),_c=dc(require("fs")),oE=pc(),aE=require("@serverless-devs/core"),mu=gc.default.join(aE.getRootHome(),"cache","core"),vc=gc.default.join(mu,"package.json");function lE(){if(_c.default.existsSync(vc)){var i=require("@serverless-devs/core/package.json").version,r=mc();return oE.gt(r,i)?require(mu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function mc(){return _c.default.existsSync(mu)?require(vc).version:void 0}sn.getCoreVersion=mc;sn.default=lE()});var yc=$((EA,fE)=>{fE.exports={name:"@serverless-devs/s",version:"2.0.97-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 wr=$(H=>{"use strict";var cE=H&&H.__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]}),hE=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),pE=H&&H.__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)&&cE(r,i,s);return hE(r,i),r},Ec=H&&H.__awaiter||function(i,r,s,o){function l(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):l(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},wc=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,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,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=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++,l=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],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ci=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ge=Ci(require("path")),Me=Ci(require("fs")),yu=Ci(gl()),dE=Ci(require("os")),gE=Li(),bn=pE(Ot()),Ti=bn.default.colors,_E=bn.default.jsyaml,vE=bn.default.makeUnderLine,Ac=bn.default.isDebugMode,xc=yc();H.red=Ti.hex("#fd5750");H.yellow=Ti.hex("#F3F99D");H.bgRed=Ti.hex("#000").bgHex("#fd5750");var mE=function(i){var r=Ac?Ac():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
34
+ }`;var B=il(function(){return j(h,N+"return "+I).apply(i,d)});if(B.source=I,ks(B))throw B;return B}function im(e){return Z(e).toLowerCase()}function sm(e){return Z(e).toUpperCase()}function um(e,t,n){if(e=Z(e),e&&(n||t===i))return ho(e);if(!e||!(t=Pe(t)))return e;var u=et(e),f=et(t),h=po(u,f),d=go(u,f)+1;return Ft(u,h,d).join("")}function om(e,t,n){if(e=Z(e),e&&(n||t===i))return e.slice(0,vo(e)+1);if(!e||!(t=Pe(t)))return e;var u=et(e),f=go(u,et(t))+1;return Ft(u,0,f).join("")}function am(e,t,n){if(e=Z(e),e&&(n||t===i))return e.replace(ki,"");if(!e||!(t=Pe(t)))return e;var u=et(e),f=po(u,et(t));return Ft(u,f).join("")}function lm(e,t){var n=nh,u=rh;if(ie(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,u="omission"in t?Pe(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?Ft(d,0,g).join(""):e.slice(0,g);if(f===i)return m+u;if(d&&(g+=m.length-g),zs(f)){if(e.slice(g).search(f)){var S,O=m;for(f.global||(f=ls(f.source,Z(Pu.exec(f))+"g")),f.lastIndex=0;S=f.exec(O);)var I=S.index;m=m.slice(0,I===i?g:I)}}else if(e.indexOf(Pe(f),g)!=g){var b=m.lastIndexOf(f);b>-1&&(m=m.slice(0,b))}return m+u}function fm(e){return e=Z(e),e&&wh.test(e)?e.replace(Lu,Hp):e}var cm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),js=sa("toUpperCase");function rl(e,t,n){return e=Z(e),t=n?i:t,t===i?Pp(e)?Gp(e):Op(e):e.match(t)||[]}var il=X(function(e,t){try{return $e(e,i,t)}catch(n){return ks(n)?n:new U(n)}}),hm=mt(function(e,t){return We(t,function(n){n=lt(n),_t(e,n,Ks(e[n],e))}),e});function pm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new Ge(l);return[n(u[0]),u[1]]}):[],X(function(u){for(var f=-1;++f<t;){var h=e[f];if($e(h[0],this,u))return $e(h[1],this,u)}})}function dm(e){return Hd(Ke(e,p))}function Zs(e){return function(){return e}}function gm(e,t){return e==null||e!==e?t:e}var _m=oa(),vm=oa(!0);function Le(e){return e}function Js(e){return Fo(typeof e=="function"?e:Ke(e,p))}function mm(e){return Ho(Ke(e,p))}function ym(e,t){return Uo(e,Ke(t,p))}var Em=X(function(e,t){return function(n){return Jn(n,e,t)}}),wm=X(function(e,t){return function(n){return Jn(e,n,t)}});function Qs(e,t,n){var u=pe(t),f=Yr(t,u);n==null&&!(ie(t)&&(f.length||!u.length))&&(n=t,t=e,e=this,f=Yr(t,pe(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,d=Et(e);return We(f,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__=be(this.__actions__);return I.push({func:m,args:arguments,thisArg:e}),O.__chain__=S,O}return m.apply(e,Tt([this.value()],arguments))})}),e}function Am(){return he._===this&&(he._=Vp),this}function eu(){}function xm(e){return e=G(e),X(function(t){return Wo(t,e)})}var Sm=Ls(re),Om=Ls(oo),Im=Ls(ns);function sl(e){return Ms(e)?rs(lt(e)):ng(e)}function Rm(e){return function(t){return e==null?i:zt(e,t)}}var bm=la(),Cm=la(!0);function tu(){return[]}function nu(){return!1}function Tm(){return{}}function Lm(){return""}function $m(){return!0}function Dm(e,t){if(e=G(e),e<1||e>bt)return[];var n=ut,u=me(e,ut);t=q(t),e-=ut;for(var f=us(u,t);++n<e;)t(n);return f}function Pm(e){return W(e)?re(e,lt):Ne(e)?[e]:be(Oa(Z(e)))}function Nm(e){var t=++kp;return Z(e)+t}var qm=ti(function(e,t){return e+t},0),Fm=$s("ceil"),Mm=ti(function(e,t){return e/t},1),Hm=$s("floor");function Um(e){return e&&e.length?Vr(e,Le,vs):i}function Wm(e,t){return e&&e.length?Vr(e,q(t,2),vs):i}function Gm(e){return fo(e,Le)}function Bm(e,t){return fo(e,q(t,2))}function Km(e){return e&&e.length?Vr(e,Le,ws):i}function Xm(e,t){return e&&e.length?Vr(e,q(t,2),ws):i}var km=ti(function(e,t){return e*t},1),zm=$s("round"),Vm=ti(function(e,t){return e-t},0);function Ym(e){return e&&e.length?ss(e,Le):0}function jm(e,t){return e&&e.length?ss(e,q(t,2)):0}return c.after=mv,c.ary=qa,c.assign=s0,c.assignIn=ja,c.assignInWith=di,c.assignWith=u0,c.at=o0,c.before=Fa,c.bind=Ks,c.bindAll=hm,c.bindKey=Ma,c.castArray=Tv,c.chain=Da,c.chunk=Hg,c.compact=Ug,c.concat=Wg,c.cond=pm,c.conforms=dm,c.constant=Zs,c.countBy=Y_,c.create=a0,c.curry=Ha,c.curryRight=Ua,c.debounce=Wa,c.defaults=l0,c.defaultsDeep=f0,c.defer=yv,c.delay=Ev,c.difference=Gg,c.differenceBy=Bg,c.differenceWith=Kg,c.drop=Xg,c.dropRight=kg,c.dropRightWhile=zg,c.dropWhile=Vg,c.fill=Yg,c.filter=Z_,c.flatMap=ev,c.flatMapDeep=tv,c.flatMapDepth=nv,c.flatten=Ca,c.flattenDeep=jg,c.flattenDepth=Zg,c.flip=wv,c.flow=_m,c.flowRight=vm,c.fromPairs=Jg,c.functions=v0,c.functionsIn=m0,c.groupBy=rv,c.initial=e_,c.intersection=t_,c.intersectionBy=n_,c.intersectionWith=r_,c.invert=E0,c.invertBy=w0,c.invokeMap=sv,c.iteratee=Js,c.keyBy=uv,c.keys=pe,c.keysIn=Te,c.map=ai,c.mapKeys=x0,c.mapValues=S0,c.matches=mm,c.matchesProperty=ym,c.memoize=fi,c.merge=O0,c.mergeWith=Za,c.method=Em,c.methodOf=wm,c.mixin=Qs,c.negate=ci,c.nthArg=xm,c.omit=I0,c.omitBy=R0,c.once=Av,c.orderBy=ov,c.over=Sm,c.overArgs=xv,c.overEvery=Om,c.overSome=Im,c.partial=Xs,c.partialRight=Ga,c.partition=av,c.pick=b0,c.pickBy=Ja,c.property=sl,c.propertyOf=Rm,c.pull=o_,c.pullAll=La,c.pullAllBy=a_,c.pullAllWith=l_,c.pullAt=f_,c.range=bm,c.rangeRight=Cm,c.rearg=Sv,c.reject=cv,c.remove=c_,c.rest=Ov,c.reverse=Gs,c.sampleSize=pv,c.set=T0,c.setWith=L0,c.shuffle=dv,c.slice=h_,c.sortBy=vv,c.sortedUniq=y_,c.sortedUniqBy=E_,c.split=em,c.spread=Iv,c.tail=w_,c.take=A_,c.takeRight=x_,c.takeRightWhile=S_,c.takeWhile=O_,c.tap=U_,c.throttle=Rv,c.thru=oi,c.toArray=za,c.toPairs=Qa,c.toPairsIn=el,c.toPath=Pm,c.toPlainObject=Ya,c.transform=$0,c.unary=bv,c.union=I_,c.unionBy=R_,c.unionWith=b_,c.uniq=C_,c.uniqBy=T_,c.uniqWith=L_,c.unset=D0,c.unzip=Bs,c.unzipWith=$a,c.update=P0,c.updateWith=N0,c.values=xn,c.valuesIn=q0,c.without=$_,c.words=rl,c.wrap=Cv,c.xor=D_,c.xorBy=P_,c.xorWith=N_,c.zip=q_,c.zipObject=F_,c.zipObjectDeep=M_,c.zipWith=H_,c.entries=Qa,c.entriesIn=el,c.extend=ja,c.extendWith=di,Qs(c,c),c.add=qm,c.attempt=il,c.camelCase=U0,c.capitalize=tl,c.ceil=Fm,c.clamp=F0,c.clone=Lv,c.cloneDeep=Dv,c.cloneDeepWith=Pv,c.cloneWith=$v,c.conformsTo=Nv,c.deburr=nl,c.defaultTo=gm,c.divide=Mm,c.endsWith=W0,c.eq=nt,c.escape=G0,c.escapeRegExp=B0,c.every=j_,c.find=J_,c.findIndex=Ra,c.findKey=c0,c.findLast=Q_,c.findLastIndex=ba,c.findLastKey=h0,c.floor=Hm,c.forEach=Pa,c.forEachRight=Na,c.forIn=p0,c.forInRight=d0,c.forOwn=g0,c.forOwnRight=_0,c.get=Vs,c.gt=qv,c.gte=Fv,c.has=y0,c.hasIn=Ys,c.head=Ta,c.identity=Le,c.includes=iv,c.indexOf=Qg,c.inRange=M0,c.invoke=A0,c.isArguments=jt,c.isArray=W,c.isArrayBuffer=Mv,c.isArrayLike=Ce,c.isArrayLikeObject=ue,c.isBoolean=Hv,c.isBuffer=Mt,c.isDate=Uv,c.isElement=Wv,c.isEmpty=Gv,c.isEqual=Bv,c.isEqualWith=Kv,c.isError=ks,c.isFinite=Xv,c.isFunction=Et,c.isInteger=Ba,c.isLength=hi,c.isMap=Ka,c.isMatch=kv,c.isMatchWith=zv,c.isNaN=Vv,c.isNative=Yv,c.isNil=Zv,c.isNull=jv,c.isNumber=Xa,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=ir,c.isRegExp=zs,c.isSafeInteger=Jv,c.isSet=ka,c.isString=pi,c.isSymbol=Ne,c.isTypedArray=An,c.isUndefined=Qv,c.isWeakMap=e0,c.isWeakSet=t0,c.join=i_,c.kebabCase=K0,c.last=ke,c.lastIndexOf=s_,c.lowerCase=X0,c.lowerFirst=k0,c.lt=n0,c.lte=r0,c.max=Um,c.maxBy=Wm,c.mean=Gm,c.meanBy=Bm,c.min=Km,c.minBy=Xm,c.stubArray=tu,c.stubFalse=nu,c.stubObject=Tm,c.stubString=Lm,c.stubTrue=$m,c.multiply=km,c.nth=u_,c.noConflict=Am,c.noop=eu,c.now=li,c.pad=z0,c.padEnd=V0,c.padStart=Y0,c.parseInt=j0,c.random=H0,c.reduce=lv,c.reduceRight=fv,c.repeat=Z0,c.replace=J0,c.result=C0,c.round=zm,c.runInContext=v,c.sample=hv,c.size=gv,c.snakeCase=Q0,c.some=_v,c.sortedIndex=p_,c.sortedIndexBy=d_,c.sortedIndexOf=g_,c.sortedLastIndex=__,c.sortedLastIndexBy=v_,c.sortedLastIndexOf=m_,c.startCase=tm,c.startsWith=nm,c.subtract=Vm,c.sum=Ym,c.sumBy=jm,c.template=rm,c.times=Dm,c.toFinite=wt,c.toInteger=G,c.toLength=Va,c.toLower=im,c.toNumber=ze,c.toSafeInteger=i0,c.toString=Z,c.toUpper=sm,c.trim=um,c.trimEnd=om,c.trimStart=am,c.truncate=lm,c.unescape=fm,c.uniqueId=Nm,c.upperCase=cm,c.upperFirst=js,c.each=Pa,c.eachRight=Na,c.first=Ta,Qs(c,function(){var e={};return ot(c,function(t,n){J.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,We(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),We(["drop","take"],function(e,t){z.prototype[e]=function(n){n=n===i?1:ce(G(n),0);var u=this.__filtered__&&!t?new z(this):this.clone();return u.__filtered__?u.__takeCount__=me(n,u.__takeCount__):u.__views__.push({size:me(n,ut),type:e+(u.__dir__<0?"Right":"")}),u},z.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),We(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==bu||n==oh;z.prototype[e]=function(f){var h=this.clone();return h.__iteratees__.push({iteratee:q(f,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),We(["head","last"],function(e,t){var n="take"+(t?"Right":"");z.prototype[e]=function(){return this[n](1).value()[0]}}),We(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");z.prototype[e]=function(){return this.__filtered__?new z(this):this[n](1)}}),z.prototype.compact=function(){return this.filter(Le)},z.prototype.find=function(e){return this.filter(e).head()},z.prototype.findLast=function(e){return this.reverse().find(e)},z.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new z(this):this.map(function(n){return Jn(n,e,t)})}),z.prototype.reject=function(e){return this.filter(ci(q(e)))},z.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},z.prototype.toArray=function(){return this.take(ut)},ot(z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),f=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!f||(c.prototype[t]=function(){var d=this.__wrapped__,g=u?[1]:arguments,m=d instanceof z,S=g[0],O=m||W(d),I=function(k){var V=f.apply(c,Tt([k],g));return u&&b?V[0]:V};O&&n&&typeof S=="function"&&S.length!=1&&(m=O=!1);var b=this.__chain__,N=!!this.__actions__.length,F=h&&!b,B=m&&!N;if(!h&&O){d=B?d:new z(this);var M=e.apply(d,g);return M.__actions__.push({func:oi,args:[I],thisArg:i}),new Be(M,b)}return F&&B?e.apply(this,g):(M=this.thru(I),F?u?M.value()[0]:M.value():M)})}),We(["pop","push","shift","sort","splice","unshift"],function(e){var t=Dr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var f=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(W(h)?h:[],f)}return this[n](function(d){return t.apply(W(d)?d:[],f)})}}),ot(z.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";J.call(vn,u)||(vn[u]=[]),vn[u].push({name:t,func:n})}}),vn[ei(i,Ze).name]=[{name:"wrapper",func:i}],z.prototype.clone=fd,z.prototype.reverse=cd,z.prototype.value=hd,c.prototype.at=W_,c.prototype.chain=G_,c.prototype.commit=B_,c.prototype.next=K_,c.prototype.plant=k_,c.prototype.reverse=z_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=V_,c.prototype.first=c.prototype.head,Xn&&(c.prototype[Xn]=X_),c},$t=Bp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(he._=$t,define(function(){return $t})):Gt?((Gt.exports=$t)._=$t,Ji._=$t):he._=$t}).call(Sn)});var ar=$((Rw,_l)=>{var Qm="2.0.0",e1=256,t1=Number.MAX_SAFE_INTEGER||9007199254740991,n1=16;_l.exports={SEMVER_SPEC_VERSION:Qm,MAX_LENGTH:e1,MAX_SAFE_INTEGER:t1,MAX_SAFE_COMPONENT_LENGTH:n1}});var lr=$((bw,vl)=>{var r1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};vl.exports=r1});var Qt=$((Ht,ml)=>{var{MAX_SAFE_COMPONENT_LENGTH:uu}=ar(),i1=lr();Ht=ml.exports={};var s1=Ht.re=[],D=Ht.src=[],P=Ht.t={},u1=0,K=(i,r,s)=>{let o=u1++;i1(o,r),P[i]=o,D[o]=r,s1[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[P.NUMERICIDENTIFIER]})\\.(${D[P.NUMERICIDENTIFIER]})\\.(${D[P.NUMERICIDENTIFIER]})`);K("MAINVERSIONLOOSE",`(${D[P.NUMERICIDENTIFIERLOOSE]})\\.(${D[P.NUMERICIDENTIFIERLOOSE]})\\.(${D[P.NUMERICIDENTIFIERLOOSE]})`);K("PRERELEASEIDENTIFIER",`(?:${D[P.NUMERICIDENTIFIER]}|${D[P.NONNUMERICIDENTIFIER]})`);K("PRERELEASEIDENTIFIERLOOSE",`(?:${D[P.NUMERICIDENTIFIERLOOSE]}|${D[P.NONNUMERICIDENTIFIER]})`);K("PRERELEASE",`(?:-(${D[P.PRERELEASEIDENTIFIER]}(?:\\.${D[P.PRERELEASEIDENTIFIER]})*))`);K("PRERELEASELOOSE",`(?:-?(${D[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${D[P.PRERELEASEIDENTIFIERLOOSE]})*))`);K("BUILDIDENTIFIER","[0-9A-Za-z-]+");K("BUILD",`(?:\\+(${D[P.BUILDIDENTIFIER]}(?:\\.${D[P.BUILDIDENTIFIER]})*))`);K("FULLPLAIN",`v?${D[P.MAINVERSION]}${D[P.PRERELEASE]}?${D[P.BUILD]}?`);K("FULL",`^${D[P.FULLPLAIN]}$`);K("LOOSEPLAIN",`[v=\\s]*${D[P.MAINVERSIONLOOSE]}${D[P.PRERELEASELOOSE]}?${D[P.BUILD]}?`);K("LOOSE",`^${D[P.LOOSEPLAIN]}$`);K("GTLT","((?:<|>)?=?)");K("XRANGEIDENTIFIERLOOSE",`${D[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);K("XRANGEIDENTIFIER",`${D[P.NUMERICIDENTIFIER]}|x|X|\\*`);K("XRANGEPLAIN",`[v=\\s]*(${D[P.XRANGEIDENTIFIER]})(?:\\.(${D[P.XRANGEIDENTIFIER]})(?:\\.(${D[P.XRANGEIDENTIFIER]})(?:${D[P.PRERELEASE]})?${D[P.BUILD]}?)?)?`);K("XRANGEPLAINLOOSE",`[v=\\s]*(${D[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${D[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${D[P.XRANGEIDENTIFIERLOOSE]})(?:${D[P.PRERELEASELOOSE]})?${D[P.BUILD]}?)?)?`);K("XRANGE",`^${D[P.GTLT]}\\s*${D[P.XRANGEPLAIN]}$`);K("XRANGELOOSE",`^${D[P.GTLT]}\\s*${D[P.XRANGEPLAINLOOSE]}$`);K("COERCE",`(^|[^\\d])(\\d{1,${uu}})(?:\\.(\\d{1,${uu}}))?(?:\\.(\\d{1,${uu}}))?(?:$|[^\\d])`);K("COERCERTL",D[P.COERCE],!0);K("LONETILDE","(?:~>?)");K("TILDETRIM",`(\\s*)${D[P.LONETILDE]}\\s+`,!0);Ht.tildeTrimReplace="$1~";K("TILDE",`^${D[P.LONETILDE]}${D[P.XRANGEPLAIN]}$`);K("TILDELOOSE",`^${D[P.LONETILDE]}${D[P.XRANGEPLAINLOOSE]}$`);K("LONECARET","(?:\\^)");K("CARETTRIM",`(\\s*)${D[P.LONECARET]}\\s+`,!0);Ht.caretTrimReplace="$1^";K("CARET",`^${D[P.LONECARET]}${D[P.XRANGEPLAIN]}$`);K("CARETLOOSE",`^${D[P.LONECARET]}${D[P.XRANGEPLAINLOOSE]}$`);K("COMPARATORLOOSE",`^${D[P.GTLT]}\\s*(${D[P.LOOSEPLAIN]})$|^$`);K("COMPARATOR",`^${D[P.GTLT]}\\s*(${D[P.FULLPLAIN]})$|^$`);K("COMPARATORTRIM",`(\\s*)${D[P.GTLT]}\\s*(${D[P.LOOSEPLAIN]}|${D[P.XRANGEPLAIN]})`,!0);Ht.comparatorTrimReplace="$1$2$3";K("HYPHENRANGE",`^\\s*(${D[P.XRANGEPLAIN]})\\s+-\\s+(${D[P.XRANGEPLAIN]})\\s*$`);K("HYPHENRANGELOOSE",`^\\s*(${D[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${D[P.XRANGEPLAINLOOSE]})\\s*$`);K("STAR","(<|>)?=?\\s*\\*");K("GTE0","^\\s*>=\\s*0.0.0\\s*$");K("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var fr=$((Cw,yl)=>{var o1=["includePrerelease","loose","rtl"],a1=i=>i?typeof i!="object"?{loose:!0}:o1.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};yl.exports=a1});var _i=$((Tw,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},l1=(i,r)=>wl(r,i);Al.exports={compareIdentifiers:wl,rcompareIdentifiers:l1}});var Ee=$((Lw,Il)=>{var vi=lr(),{MAX_LENGTH:xl,MAX_SAFE_INTEGER:mi}=ar(),{re:Sl,t:Ol}=Qt(),f1=fr(),{compareIdentifiers:cr}=_i(),Ve=class{constructor(r,s){if(s=f1(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`);vi("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>mi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>mi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>mi||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(l=>{if(/^[0-9]+$/.test(l)){let a=+l;if(a>=0&&a<mi)return a}return l}):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(vi("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)),cr(this.major,r.major)||cr(this.minor,r.minor)||cr(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],l=r.prerelease[s];if(vi("prerelease compare",s,o,l),o===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(o===void 0)return-1;if(o===l)continue;return cr(o,l)}while(++s)}compareBuild(r){r instanceof Ve||(r=new Ve(r,this.options));let s=0;do{let o=this.build[s],l=r.build[s];if(vi("prerelease compare",s,o,l),o===void 0&&l===void 0)return 0;if(l===void 0)return 1;if(o===void 0)return-1;if(o===l)continue;return cr(o,l)}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 en=$(($w,Tl)=>{var{MAX_LENGTH:c1}=ar(),{re:Rl,t:bl}=Qt(),Cl=Ee(),h1=fr(),p1=(i,r)=>{if(r=h1(r),i instanceof Cl)return i;if(typeof i!="string"||i.length>c1||!(r.loose?Rl[bl.LOOSE]:Rl[bl.FULL]).test(i))return null;try{return new Cl(i,r)}catch{return null}};Tl.exports=p1});var $l=$((Dw,Ll)=>{var d1=en(),g1=(i,r)=>{let s=d1(i,r);return s?s.version:null};Ll.exports=g1});var Pl=$((Pw,Dl)=>{var _1=en(),v1=(i,r)=>{let s=_1(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};Dl.exports=v1});var ql=$((Nw,Nl)=>{var m1=Ee(),y1=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new m1(i,s).inc(r,o).version}catch{return null}};Nl.exports=y1});var Ye=$((qw,Ml)=>{var Fl=Ee(),E1=(i,r,s)=>new Fl(i,s).compare(new Fl(r,s));Ml.exports=E1});var yi=$((Fw,Hl)=>{var w1=Ye(),A1=(i,r,s)=>w1(i,r,s)===0;Hl.exports=A1});var Gl=$((Mw,Wl)=>{var Ul=en(),x1=yi(),S1=(i,r)=>{if(x1(i,r))return null;{let s=Ul(i),o=Ul(r),l=s.prerelease.length||o.prerelease.length,a=l?"pre":"",_=l?"prerelease":"";for(let y in s)if((y==="major"||y==="minor"||y==="patch")&&s[y]!==o[y])return a+y;return _}};Wl.exports=S1});var Kl=$((Hw,Bl)=>{var O1=Ee(),I1=(i,r)=>new O1(i,r).major;Bl.exports=I1});var kl=$((Uw,Xl)=>{var R1=Ee(),b1=(i,r)=>new R1(i,r).minor;Xl.exports=b1});var Vl=$((Ww,zl)=>{var C1=Ee(),T1=(i,r)=>new C1(i,r).patch;zl.exports=T1});var jl=$((Gw,Yl)=>{var L1=en(),$1=(i,r)=>{let s=L1(i,r);return s&&s.prerelease.length?s.prerelease:null};Yl.exports=$1});var Jl=$((Bw,Zl)=>{var D1=Ye(),P1=(i,r,s)=>D1(r,i,s);Zl.exports=P1});var ef=$((Kw,Ql)=>{var N1=Ye(),q1=(i,r)=>N1(i,r,!0);Ql.exports=q1});var Ei=$((Xw,nf)=>{var tf=Ee(),F1=(i,r,s)=>{let o=new tf(i,s),l=new tf(r,s);return o.compare(l)||o.compareBuild(l)};nf.exports=F1});var sf=$((kw,rf)=>{var M1=Ei(),H1=(i,r)=>i.sort((s,o)=>M1(s,o,r));rf.exports=H1});var of=$((zw,uf)=>{var U1=Ei(),W1=(i,r)=>i.sort((s,o)=>U1(o,s,r));uf.exports=W1});var hr=$((Vw,af)=>{var G1=Ye(),B1=(i,r,s)=>G1(i,r,s)>0;af.exports=B1});var wi=$((Yw,lf)=>{var K1=Ye(),X1=(i,r,s)=>K1(i,r,s)<0;lf.exports=X1});var ou=$((jw,ff)=>{var k1=Ye(),z1=(i,r,s)=>k1(i,r,s)!==0;ff.exports=z1});var Ai=$((Zw,cf)=>{var V1=Ye(),Y1=(i,r,s)=>V1(i,r,s)>=0;cf.exports=Y1});var xi=$((Jw,hf)=>{var j1=Ye(),Z1=(i,r,s)=>j1(i,r,s)<=0;hf.exports=Z1});var au=$((Qw,pf)=>{var J1=yi(),Q1=ou(),ey=hr(),ty=Ai(),ny=wi(),ry=xi(),iy=(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 J1(i,s,o);case"!=":return Q1(i,s,o);case">":return ey(i,s,o);case">=":return ty(i,s,o);case"<":return ny(i,s,o);case"<=":return ry(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};pf.exports=iy});var gf=$((eA,df)=>{var sy=Ee(),uy=en(),{re:Si,t:Oi}=Qt(),oy=(i,r)=>{if(i instanceof sy)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(Si[Oi.COERCE]);else{let o;for(;(o=Si[Oi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),Si[Oi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;Si[Oi.COERCERTL].lastIndex=-1}return s===null?null:uy(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};df.exports=oy});var vf=$((tA,_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=$((nA,mf)=>{"use strict";mf.exports=Y;Y.Node=tn;Y.create=Y;function Y(i){var r=this;if(r instanceof Y||(r=new Y),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(l){r.push(l)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Y.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};Y.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++}};Y.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++}};Y.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)ly(this,arguments[i]);return this.length};Y.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)fy(this,arguments[i]);return this.length};Y.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}};Y.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}};Y.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};Y.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};Y.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};Y.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};Y.prototype.map=function(i,r){r=r||this;for(var s=new Y,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Y.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Y,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Y.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 l=0;o!==null;l++)s=i(s,o.value,l),o=o.next;return s};Y.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 l=this.length-1;o!==null;l--)s=i(s,o.value,l),o=o.prev;return s};Y.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};Y.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};Y.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 Y;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,l=this.head;l!==null&&o<i;o++)l=l.next;for(;l!==null&&o<r;o++,l=l.next)s.push(l.value);return s};Y.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 Y;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,l=this.tail;l!==null&&o>r;o--)l=l.prev;for(;l!==null&&o>i;o--,l=l.prev)s.push(l.value);return s};Y.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,l=this.head;l!==null&&o<i;o++)l=l.next;for(var a=[],o=0;l&&o<r;o++)a.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var o=0;o<s.length;o++)l=ay(this,l,s[o]);return a};Y.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 ay(i,r,s){var o=r===i.head?new tn(s,null,r,i):new tn(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function ly(i,r){i.tail=new tn(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function fy(i,r){i.head=new tn(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function tn(i,r,s,o){if(!(this instanceof tn))return new tn(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()(Y)}catch{}});var If=$((rA,Of)=>{"use strict";var cy=yf(),nn=Symbol("max"),xt=Symbol("length"),On=Symbol("lengthCalculator"),pr=Symbol("allowStale"),rn=Symbol("maxAge"),St=Symbol("dispose"),Ef=Symbol("noDisposeOnSet"),de=Symbol("lruList"),it=Symbol("cache"),wf=Symbol("updateAgeOnGet"),lu=()=>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[nn]=r.max||1/0,o=r.length||lu;if(this[On]=typeof o!="function"?lu:o,this[pr]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[rn]=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[nn]=r||1/0,dr(this)}get max(){return this[nn]}set allowStale(r){this[pr]=!!r}get allowStale(){return this[pr]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[rn]=r,dr(this)}get maxAge(){return this[rn]}set lengthCalculator(r){typeof r!="function"&&(r=lu),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})),dr(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 l=o.prev;Sf(this,r,o,s),o=l}}forEach(r,s){s=s||this;for(let o=this[de].head;o!==null;){let l=o.next;Sf(this,r,o,s),o=l}}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 cy,this[xt]=0}dump(){return this[de].map(r=>Ii(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[rn],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let l=o?Date.now():0,a=this[On](s,r);if(this[it].has(r)){if(a>this[nn])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=l,E.maxAge=o,E.value=s,this[xt]+=a-E.length,E.length=a,this.get(r),dr(this),!0}let _=new xf(r,s,a,l,o);return _.length>this[nn]?(this[St]&&this[St](r,s),!1):(this[xt]+=_.length,this[de].unshift(_),this[it].set(r,this[de].head),dr(this),!0)}has(r){if(!this[it].has(r))return!1;let s=this[it].get(r).value;return!Ii(this,s)}get(r){return fu(this,r,!0)}peek(r){return fu(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 l=r[o],a=l.e||0;if(a===0)this.set(l.k,l.v);else{let _=a-s;_>0&&this.set(l.k,l.v,_)}}}prune(){this[it].forEach((r,s)=>fu(this,s,!1))}},fu=(i,r,s)=>{let o=i[it].get(r);if(o){let l=o.value;if(Ii(i,l)){if(In(i,o),!i[pr])return}else s&&(i[wf]&&(o.value.now=Date.now()),i[de].unshiftNode(o));return l.value}},Ii=(i,r)=>{if(!r||!r.maxAge&&!i[rn])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[rn]&&s>i[rn]},dr=i=>{if(i[xt]>i[nn])for(let r=i[de].tail;i[xt]>i[nn]&&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,l,a){this.key=r,this.value=s,this.length=o,this.now=l,this.maxAge=a||0}},Sf=(i,r,s,o)=>{let l=s.value;Ii(i,l)&&(In(i,s),i[pr]||(l=void 0)),l&&r.call(o,l.value,l.key,i)};Of.exports=Af});var je=$((iA,Tf)=>{var Rn=class{constructor(r,s){if(s=py(s),r instanceof Rn)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new Rn(r.raw,s);if(r instanceof cu)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(l=>!bf(l[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let l of this.set)if(l.length===1&&my(l[0])){this.set=[l];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}`,l=Rf.get(o);if(l)return l;let a=this.options.loose,_=a?we[ve.HYPHENRANGELOOSE]:we[ve.HYPHENRANGE];r=r.replace(_,by(this.options.includePrerelease)),ae("hyphen replace",r),r=r.replace(we[ve.COMPARATORTRIM],gy),ae("comparator trim",r,we[ve.COMPARATORTRIM]),r=r.replace(we[ve.TILDETRIM],_y),r=r.replace(we[ve.CARETTRIM],vy),r=r.split(/\s+/).join(" ");let y=a?we[ve.COMPARATORLOOSE]:we[ve.COMPARATOR],E=r.split(" ").map(L=>yy(L,this.options)).join(" ").split(/\s+/).map(L=>Ry(L,this.options)).filter(this.options.loose?L=>!!L.match(y):()=>!0).map(L=>new cu(L,this.options)),p=E.length,A=new Map;for(let L of E){if(bf(L))return[L];A.set(L.value,L)}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=>Cf(o,s)&&r.set.some(l=>Cf(l,s)&&o.every(a=>l.every(_=>a.intersects(_,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new dy(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(Cy(this.set[s],r,this.options))return!0;return!1}};Tf.exports=Rn;var hy=If(),Rf=new hy({max:1e3}),py=fr(),cu=gr(),ae=lr(),dy=Ee(),{re:we,t:ve,comparatorTrimReplace:gy,tildeTrimReplace:_y,caretTrimReplace:vy}=Qt(),bf=i=>i.value==="<0.0.0-0",my=i=>i.value==="",Cf=(i,r)=>{let s=!0,o=i.slice(),l=o.pop();for(;s&&o.length;)s=o.every(a=>l.intersects(a,r)),l=o.pop();return s},yy=(i,r)=>(ae("comp",i,r),i=Ay(i,r),ae("caret",i),i=Ey(i,r),ae("tildes",i),i=Sy(i,r),ae("xrange",i),i=Iy(i,r),ae("stars",i),i),Oe=i=>!i||i.toLowerCase()==="x"||i==="*",Ey=(i,r)=>i.trim().split(/\s+/).map(s=>wy(s,r)).join(" "),wy=(i,r)=>{let s=r.loose?we[ve.TILDELOOSE]:we[ve.TILDE];return i.replace(s,(o,l,a,_,y)=>{ae("tilde",i,o,l,a,_,y);let E;return Oe(l)?E="":Oe(a)?E=`>=${l}.0.0 <${+l+1}.0.0-0`:Oe(_)?E=`>=${l}.${a}.0 <${l}.${+a+1}.0-0`:y?(ae("replaceTilde pr",y),E=`>=${l}.${a}.${_}-${y} <${l}.${+a+1}.0-0`):E=`>=${l}.${a}.${_} <${l}.${+a+1}.0-0`,ae("tilde return",E),E})},Ay=(i,r)=>i.trim().split(/\s+/).map(s=>xy(s,r)).join(" "),xy=(i,r)=>{ae("caret",i,r);let s=r.loose?we[ve.CARETLOOSE]:we[ve.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(l,a,_,y,E)=>{ae("caret",i,l,a,_,y,E);let p;return Oe(a)?p="":Oe(_)?p=`>=${a}.0.0${o} <${+a+1}.0.0-0`:Oe(y)?a==="0"?p=`>=${a}.${_}.0${o} <${a}.${+_+1}.0-0`:p=`>=${a}.${_}.0${o} <${+a+1}.0.0-0`:E?(ae("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`):(ae("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`),ae("caret return",p),p})},Sy=(i,r)=>(ae("replaceXRanges",i,r),i.split(/\s+/).map(s=>Oy(s,r)).join(" ")),Oy=(i,r)=>{i=i.trim();let s=r.loose?we[ve.XRANGELOOSE]:we[ve.XRANGE];return i.replace(s,(o,l,a,_,y,E)=>{ae("xRange",i,o,l,a,_,y,E);let p=Oe(a),A=p||Oe(_),R=A||Oe(y),L=R;return l==="="&&L&&(l=""),E=r.includePrerelease?"-0":"",p?l===">"||l==="<"?o="<0.0.0-0":o="*":l&&L?(A&&(_=0),y=0,l===">"?(l=">=",A?(a=+a+1,_=0,y=0):(_=+_+1,y=0)):l==="<="&&(l="<",A?a=+a+1:_=+_+1),l==="<"&&(E="-0"),o=`${l+a}.${_}.${y}${E}`):A?o=`>=${a}.0.0${E} <${+a+1}.0.0-0`:R&&(o=`>=${a}.${_}.0${E} <${a}.${+_+1}.0-0`),ae("xRange return",o),o})},Iy=(i,r)=>(ae("replaceStars",i,r),i.trim().replace(we[ve.STAR],"")),Ry=(i,r)=>(ae("replaceGTE0",i,r),i.trim().replace(we[r.includePrerelease?ve.GTE0PRE:ve.GTE0],"")),by=i=>(r,s,o,l,a,_,y,E,p,A,R,L,C)=>(Oe(o)?s="":Oe(l)?s=`>=${o}.0.0${i?"-0":""}`:Oe(a)?s=`>=${o}.${l}.0${i?"-0":""}`:_?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Oe(p)?E="":Oe(A)?E=`<${+p+1}.0.0-0`:Oe(R)?E=`<${p}.${+A+1}.0-0`:L?E=`<=${p}.${A}.${R}-${L}`:i?E=`<${p}.${A}.${+R+1}-0`:E=`<=${E}`,`${s} ${E}`.trim()),Cy=(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(ae(i[o].semver),i[o].semver!==cu.ANY&&i[o].semver.prerelease.length>0){let l=i[o].semver;if(l.major===r.major&&l.minor===r.minor&&l.patch===r.patch)return!0}return!1}return!0}});var gr=$((sA,Nf)=>{var _r=Symbol("SemVer ANY"),vr=class{static get ANY(){return _r}constructor(r,s){if(s=Ty(s),r instanceof vr){if(r.loose===!!s.loose)return r;r=r.value}pu("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===_r?this.value="":this.value=this.operator+this.semver.version,pu("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=_r}toString(){return this.value}test(r){if(pu("Comparator.test",r,this.options.loose),this.semver===_r||r===_r)return!0;if(typeof r=="string")try{r=new Df(r,this.options)}catch{return!1}return hu(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof vr))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===">"),l=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),a=this.semver.version===r.semver.version,_=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),y=hu(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),E=hu(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||l||a&&_||y||E}};Nf.exports=vr;var Ty=fr(),{re:Lf,t:$f}=Qt(),hu=au(),pu=lr(),Df=Ee(),Pf=je()});var mr=$((uA,qf)=>{var Ly=je(),$y=(i,r,s)=>{try{r=new Ly(r,s)}catch{return!1}return r.test(i)};qf.exports=$y});var Mf=$((oA,Ff)=>{var Dy=je(),Py=(i,r)=>new Dy(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));Ff.exports=Py});var Uf=$((aA,Hf)=>{var Ny=Ee(),qy=je(),Fy=(i,r,s)=>{let o=null,l=null,a=null;try{a=new qy(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||l.compare(_)===-1)&&(o=_,l=new Ny(o,s))}),o};Hf.exports=Fy});var Gf=$((lA,Wf)=>{var My=Ee(),Hy=je(),Uy=(i,r,s)=>{let o=null,l=null,a=null;try{a=new Hy(r,s)}catch{return null}return i.forEach(_=>{a.test(_)&&(!o||l.compare(_)===1)&&(o=_,l=new My(o,s))}),o};Wf.exports=Uy});var Xf=$((fA,Kf)=>{var du=Ee(),Wy=je(),Bf=hr(),Gy=(i,r)=>{i=new Wy(i,r);let s=new du("0.0.0");if(i.test(s)||(s=new du("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let l=i.set[o],a=null;l.forEach(_=>{let y=new du(_.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=Gy});var zf=$((cA,kf)=>{var By=je(),Ky=(i,r)=>{try{return new By(i,r).range||"*"}catch{return null}};kf.exports=Ky});var Ri=$((hA,Zf)=>{var Xy=Ee(),Vf=gr(),{ANY:ky}=Vf,zy=je(),Vy=mr(),Yf=hr(),jf=wi(),Yy=xi(),jy=Ai(),Zy=(i,r,s,o)=>{i=new Xy(i,o),r=new zy(r,o);let l,a,_,y,E;switch(s){case">":l=Yf,a=Yy,_=jf,y=">",E=">=";break;case"<":l=jf,a=jy,_=Yf,y="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Vy(i,r,o))return!1;for(let p=0;p<r.set.length;++p){let A=r.set[p],R=null,L=null;if(A.forEach(C=>{C.semver===ky&&(C=new Vf(">=0.0.0")),R=R||C,L=L||C,l(C.semver,R.semver,o)?R=C:_(C.semver,L.semver,o)&&(L=C)}),R.operator===y||R.operator===E||(!L.operator||L.operator===y)&&a(i,L.semver))return!1;if(L.operator===E&&_(i,L.semver))return!1}return!0};Zf.exports=Zy});var Qf=$((pA,Jf)=>{var Jy=Ri(),Qy=(i,r,s)=>Jy(i,r,">",s);Jf.exports=Qy});var tc=$((dA,ec)=>{var eE=Ri(),tE=(i,r,s)=>eE(i,r,"<",s);ec.exports=tE});var ic=$((gA,rc)=>{var nc=je(),nE=(i,r,s)=>(i=new nc(i,s),r=new nc(r,s),i.intersects(r));rc.exports=nE});var uc=$((_A,sc)=>{var rE=mr(),iE=Ye();sc.exports=(i,r,s)=>{let o=[],l=null,a=null,_=i.sort((A,R)=>iE(A,R,s));for(let A of _)rE(A,r,s)?(a=A,l||(l=A)):(a&&o.push([l,a]),a=null,l=null);l&&o.push([l,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=$((vA,fc)=>{var oc=je(),bi=gr(),{ANY:gu}=bi,yr=mr(),_u=Ye(),sE=(i,r,s={})=>{if(i===r)return!0;i=new oc(i,s),r=new oc(r,s);let o=!1;e:for(let l of i.set){for(let a of r.set){let _=uE(l,a,s);if(o=o||_!==null,_)continue e}if(o)return!1}return!0},uE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===gu){if(r.length===1&&r[0].semver===gu)return!0;s.includePrerelease?i=[new bi(">=0.0.0-0")]:i=[new bi(">=0.0.0")]}if(r.length===1&&r[0].semver===gu){if(s.includePrerelease)return!0;r=[new bi(">=0.0.0")]}let o=new Set,l,a;for(let C of i)C.operator===">"||C.operator===">="?l=ac(l,C,s):C.operator==="<"||C.operator==="<="?a=lc(a,C,s):o.add(C.semver);if(o.size>1)return null;let _;if(l&&a){if(_=_u(l.semver,a.semver,s),_>0)return null;if(_===0&&(l.operator!==">="||a.operator!=="<="))return null}for(let C of o){if(l&&!yr(C,String(l),s)||a&&!yr(C,String(a),s))return null;for(let le of r)if(!yr(C,String(le),s))return!1;return!0}let y,E,p,A,R=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:!1,L=l&&!s.includePrerelease&&l.semver.prerelease.length?l.semver:!1;R&&R.prerelease.length===1&&a.operator==="<"&&R.prerelease[0]===0&&(R=!1);for(let C of r){if(A=A||C.operator===">"||C.operator===">=",p=p||C.operator==="<"||C.operator==="<=",l){if(L&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===L.major&&C.semver.minor===L.minor&&C.semver.patch===L.patch&&(L=!1),C.operator===">"||C.operator===">="){if(y=ac(l,C,s),y===C&&y!==l)return!1}else if(l.operator===">="&&!yr(l.semver,String(C),s))return!1}if(a){if(R&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===R.major&&C.semver.minor===R.minor&&C.semver.patch===R.patch&&(R=!1),C.operator==="<"||C.operator==="<="){if(E=lc(a,C,s),E===C&&E!==a)return!1}else if(a.operator==="<="&&!yr(a.semver,String(C),s))return!1}if(!C.operator&&(a||l)&&_!==0)return!1}return!(l&&p&&!a&&_!==0||a&&A&&!l&&_!==0||L||R)},ac=(i,r,s)=>{if(!i)return r;let o=_u(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=_u(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};fc.exports=sE});var pc=$((mA,hc)=>{var vu=Qt();hc.exports={re:vu.re,src:vu.src,tokens:vu.t,SEMVER_SPEC_VERSION:ar().SEMVER_SPEC_VERSION,SemVer:Ee(),compareIdentifiers:_i().compareIdentifiers,rcompareIdentifiers:_i().rcompareIdentifiers,parse:en(),valid:$l(),clean:Pl(),inc:ql(),diff:Gl(),major:Kl(),minor:kl(),patch:Vl(),prerelease:jl(),compare:Ye(),rcompare:Jl(),compareLoose:ef(),compareBuild:Ei(),sort:sf(),rsort:of(),gt:hr(),lt:wi(),eq:yi(),neq:ou(),gte:Ai(),lte:xi(),cmp:au(),coerce:gf(),Comparator:gr(),Range:je(),satisfies:mr(),toComparators:Mf(),maxSatisfying:Uf(),minSatisfying:Gf(),minVersion:Xf(),validRange:zf(),outside:Ri(),gtr:Qf(),ltr:tc(),intersects:ic(),simplifyRange:uc(),subset:cc()}});var Ot=$(sn=>{"use strict";var dc=sn&&sn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(sn,"__esModule",{value:!0});sn.getCoreVersion=void 0;var gc=dc(require("path")),_c=dc(require("fs")),oE=pc(),aE=require("@serverless-devs/core"),mu=gc.default.join(aE.getRootHome(),"cache","core"),vc=gc.default.join(mu,"package.json");function lE(){if(_c.default.existsSync(vc)){var i=require("@serverless-devs/core/package.json").version,r=mc();return oE.gt(r,i)?require(mu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function mc(){return _c.default.existsSync(mu)?require(vc).version:void 0}sn.getCoreVersion=mc;sn.default=lE()});var yc=$((EA,fE)=>{fE.exports={name:"@serverless-devs/s",version:"2.0.97-beta.6",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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":"beta"}}});var wr=$(H=>{"use strict";var cE=H&&H.__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]}),hE=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),pE=H&&H.__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)&&cE(r,i,s);return hE(r,i),r},Ec=H&&H.__awaiter||function(i,r,s,o){function l(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):l(A.value).then(y,E)}p((o=o.apply(i,r||[])).next())})},wc=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,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,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=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++,l=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],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ci=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ge=Ci(require("path")),Me=Ci(require("fs")),yu=Ci(gl()),dE=Ci(require("os")),gE=Li(),bn=pE(Ot()),Ti=bn.default.colors,_E=bn.default.jsyaml,vE=bn.default.makeUnderLine,Ac=bn.default.isDebugMode,xc=yc();H.red=Ti.hex("#fd5750");H.yellow=Ti.hex("#F3F99D");H.bgRed=Ti.hex("#000").bgHex("#fd5750");var mE=function(i){var r=Ac?Ac():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
35
35
  `).concat(o.message,`
36
36
  `)),o.tips&&console.log("".concat((0,H.yellow)(vE(o.tips)),`
37
37
  `))}catch{console.log("".concat((0,H.bgRed)("ERROR:"),`
@@ -40,7 +40,7 @@ function print() { __p += __j.call(arguments, '') }
40
40
  `))}return r}();tr.HumanWarning=iS});var nr=P(ie=>{"use strict";var sS=ie&&ie.__awaiter||function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(r,n||[])).next())})},oS=ie&&ie.__generator||function(r,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(_){return m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(r,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},uS=ie&&ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ie,"__esModule",{value:!0});ie.HandleError=ie.HumanWarning=ie.HumanError=ie.ServerlessError=ie.InitError=ie.ConfigGetError=ie.ConfigError=ie.ConfigDeleteError=ie.CommandError=void 0;var Yh=Wt(),aS=au(),lu=uS(Ie()),lS=Wt(),xn=lu.default.colors,cS=lu.default.report,fS=lu.default.getMAC,hS=Hh();Object.defineProperty(ie,"CommandError",{enumerable:!0,get:function(){return hS.CommandError}});var pS=Uh();Object.defineProperty(ie,"ConfigDeleteError",{enumerable:!0,get:function(){return pS.ConfigDeleteError}});var dS=Gh();Object.defineProperty(ie,"ConfigError",{enumerable:!0,get:function(){return dS.ConfigError}});var gS=Wh();Object.defineProperty(ie,"ConfigGetError",{enumerable:!0,get:function(){return gS.ConfigGetError}});var vS=Bh();Object.defineProperty(ie,"InitError",{enumerable:!0,get:function(){return vS.InitError}});var mS=On();Object.defineProperty(ie,"ServerlessError",{enumerable:!0,get:function(){return mS.ServerlessError}});var _S=Vh();Object.defineProperty(ie,"HumanError",{enumerable:!0,get:function(){return _S.HumanError}});var yS=Xh();Object.defineProperty(ie,"HumanWarning",{enumerable:!0,get:function(){return yS.HumanWarning}});function ES(){try{return fS().replace(/:/g,"")}catch{return"unknown"}}function cu(r,n){return"".concat(xn.gray(r)).concat(xn.gray.underline(n))}var wS=function(){function r(n){var i=n.error,o=n.prefix,a=o===void 0?"Message:":o;this.traceId="".concat(ES()).concat(Date.now()),console.log((0,Yh.red)("\u2716 ".concat(a,`
41
41
  `)));var u=(0,aS.getConfig)("analysis");u!=="disable"&&console.log(xn.gray("TraceId: ".concat(this.traceId))),console.log(xn.gray("Environment: ".concat((0,Yh.getVersion)()))),console.log(cu("Documents: ","https://www.serverless-devs.com")),console.log(cu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(cu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
42
  `)),(0,lS.getErrorMessage)(i),u!=="disable"&&console.log(xn.gray("Please copy traceId: ".concat(this.traceId," and join Dingding group: 33947367 for consultation."))),console.log(xn.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(xn.gray(`And run again with the '--debug' option or 's -h' to get more logs.
43
- `))}return r.prototype.report=function(n){return sS(this,void 0,void 0,function(){return oS(this,function(i){switch(i.label){case 0:return[4,cS({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:this.traceId})];case 1:return i.sent(),[2]}})})},r}();ie.HandleError=wS});var Kh=P((dx,bS)=>{bS.exports={name:"@serverless-devs/s",version:"2.0.97-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 Wt=P(j=>{"use strict";var SS=j&&j.__createBinding||(Object.create?function(r,n,i,o){o===void 0&&(o=i),Object.defineProperty(r,o,{enumerable:!0,get:function(){return n[i]}})}:function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]}),CS=j&&j.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),OS=j&&j.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&SS(n,r,i);return CS(n,r),n},Zh=j&&j.__awaiter||function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(r,n||[])).next())})},Jh=j&&j.__generator||function(r,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(_){return m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(r,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cs=j&&j.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(j,"__esModule",{value:!0});j.emoji=j.mark=j.replaceTemplate=j.getTemplatekey=j.replaceFun=j.getLang=j.printn=j.checkTemplateFile=j.checkAndReturnTemplateFile=j.yamlLoad=j.getFolderSize=j.getVersion=j.getErrorMessage=j.bgRed=j.yellow=j.red=void 0;var we=cs(require("path")),Ke=cs(require("fs")),fu=cs(Xn()),xS=cs(require("os")),AS=nr(),rr=OS(Ie()),fs=rr.default.colors,IS=rr.default.jsyaml,RS=rr.default.makeUnderLine,Qh=rr.default.isDebugMode,ep=Kh();j.red=fs.hex("#fd5750");j.yellow=fs.hex("#F3F99D");j.bgRed=fs.hex("#000").bgHex("#fd5750");var PS=function(r){var n=Qh?Qh():void 0;if(n){console.log(r);return}var i=r.message?r.message:"";try{var o=JSON.parse(i);console.log("".concat((0,j.bgRed)("ERROR:"),`
43
+ `))}return r.prototype.report=function(n){return sS(this,void 0,void 0,function(){return oS(this,function(i){switch(i.label){case 0:return[4,cS({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:this.traceId})];case 1:return i.sent(),[2]}})})},r}();ie.HandleError=wS});var Kh=P((dx,bS)=>{bS.exports={name:"@serverless-devs/s",version:"2.0.97-beta.6",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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":"beta"}}});var Wt=P(j=>{"use strict";var SS=j&&j.__createBinding||(Object.create?function(r,n,i,o){o===void 0&&(o=i),Object.defineProperty(r,o,{enumerable:!0,get:function(){return n[i]}})}:function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]}),CS=j&&j.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),OS=j&&j.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&SS(n,r,i);return CS(n,r),n},Zh=j&&j.__awaiter||function(r,n,i,o){function a(u){return u instanceof i?u:new i(function(p){p(u)})}return new(i||(i=Promise))(function(u,p){function g(_){try{c(o.next(_))}catch(C){p(C)}}function m(_){try{c(o.throw(_))}catch(C){p(C)}}function c(_){_.done?u(_.value):a(_.value).then(g,m)}c((o=o.apply(r,n||[])).next())})},Jh=j&&j.__generator||function(r,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,a,u,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(_){return m([c,_])}}function m(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(u=c[0]&2?a.return:c[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,c[1])).done)return u;switch(a=0,u&&(c=[c[0]&2,u.value]),c[0]){case 0:case 1:u=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){i.label=c[1];break}if(c[0]===6&&i.label<u[1]){i.label=u[1],u=c;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(c);break}u[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(r,i)}catch(_){c=[6,_],a=0}finally{o=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cs=j&&j.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(j,"__esModule",{value:!0});j.emoji=j.mark=j.replaceTemplate=j.getTemplatekey=j.replaceFun=j.getLang=j.printn=j.checkTemplateFile=j.checkAndReturnTemplateFile=j.yamlLoad=j.getFolderSize=j.getVersion=j.getErrorMessage=j.bgRed=j.yellow=j.red=void 0;var we=cs(require("path")),Ke=cs(require("fs")),fu=cs(Xn()),xS=cs(require("os")),AS=nr(),rr=OS(Ie()),fs=rr.default.colors,IS=rr.default.jsyaml,RS=rr.default.makeUnderLine,Qh=rr.default.isDebugMode,ep=Kh();j.red=fs.hex("#fd5750");j.yellow=fs.hex("#F3F99D");j.bgRed=fs.hex("#000").bgHex("#fd5750");var PS=function(r){var n=Qh?Qh():void 0;if(n){console.log(r);return}var i=r.message?r.message:"";try{var o=JSON.parse(i);console.log("".concat((0,j.bgRed)("ERROR:"),`
44
44
  `).concat(o.message,`
45
45
  `)),o.tips&&console.log("".concat((0,j.yellow)(RS(o.tips)),`
46
46
  `))}catch{console.log("".concat((0,j.bgRed)("ERROR:"),`
@@ -40,7 +40,7 @@ function print() { __p += __j.call(arguments, '') }
40
40
  `))}return i}();Dn.HumanWarning=nw});var Ru=$(te=>{"use strict";var rw=te&&te.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},iw=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=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++,l=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(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},sw=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var zc=wr(),uw=qc(),Ou=sw(at()),ow=wr(),un=Ou.default.colors,aw=Ou.default.report,lw=Ou.default.getMAC,fw=Fc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return fw.CommandError}});var cw=Mc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return cw.ConfigDeleteError}});var hw=Hc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return hw.ConfigError}});var pw=Uc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return pw.ConfigGetError}});var gw=Wc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return gw.InitError}});var dw=sn();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return dw.ServerlessError}});var _w=Bc();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return _w.HumanError}});var vw=jc();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return vw.HumanWarning}});function mw(){try{return lw().replace(/:/g,"")}catch{return"unknown"}}function Su(i,r){return"".concat(un.gray(i)).concat(un.gray.underline(r))}var Ew=function(){function i(r){var s=r.error,o=r.prefix,l=o===void 0?"Message:":o;this.traceId="".concat(mw()).concat(Date.now()),console.log((0,zc.red)("\u2716 ".concat(l,`
41
41
  `)));var a=(0,uw.getConfig)("analysis");a!=="disable"&&console.log(un.gray("TraceId: ".concat(this.traceId))),console.log(un.gray("Environment: ".concat((0,zc.getVersion)()))),console.log(Su("Documents: ","https://www.serverless-devs.com")),console.log(Su("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(Su("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
42
  `)),(0,ow.getErrorMessage)(s),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.
43
- `))}return i.prototype.report=function(r){return rw(this,void 0,void 0,function(){return iw(this,function(s){switch(s.label){case 0:return[4,aw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();te.HandleError=Ew});var Yc=$((jx,yw)=>{yw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 wr=$(H=>{"use strict";var ww=H&&H.__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]}),xw=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Aw=H&&H.__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)&&ww(r,i,s);return xw(r,i),r},Vc=H&&H.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Kc=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=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++,l=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(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},$i=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ge=$i(require("path")),Fe=$i(require("fs")),Iu=$i(Oc()),Ow=$i(require("os")),Sw=Ru(),Pn=Aw(at()),Ni=Pn.default.colors,Rw=Pn.default.jsyaml,Iw=Pn.default.makeUnderLine,Zc=Pn.default.isDebugMode,Jc=Yc();H.red=Ni.hex("#fd5750");H.yellow=Ni.hex("#F3F99D");H.bgRed=Ni.hex("#000").bgHex("#fd5750");var bw=function(i){var r=Zc?Zc():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
43
+ `))}return i.prototype.report=function(r){return rw(this,void 0,void 0,function(){return iw(this,function(s){switch(s.label){case 0:return[4,aw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();te.HandleError=Ew});var Yc=$((jx,yw)=>{yw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.6",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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":"beta"}}});var wr=$(H=>{"use strict";var ww=H&&H.__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]}),xw=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Aw=H&&H.__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)&&ww(r,i,s);return xw(r,i),r},Vc=H&&H.__awaiter||function(i,r,s,o){function l(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function E(x){try{p(o.next(x))}catch(I){_(I)}}function y(x){try{p(o.throw(x))}catch(I){_(I)}}function p(x){x.done?a(x.value):l(x.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Kc=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,a,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(p){return function(x){return y([p,x])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=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++,l=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(x){p=[6,x],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},$i=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ge=$i(require("path")),Fe=$i(require("fs")),Iu=$i(Oc()),Ow=$i(require("os")),Sw=Ru(),Pn=Aw(at()),Ni=Pn.default.colors,Rw=Pn.default.jsyaml,Iw=Pn.default.makeUnderLine,Zc=Pn.default.isDebugMode,Jc=Yc();H.red=Ni.hex("#fd5750");H.yellow=Ni.hex("#F3F99D");H.bgRed=Ni.hex("#000").bgHex("#fd5750");var bw=function(i){var r=Zc?Zc():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
44
44
  `).concat(o.message,`
45
45
  `)),o.tips&&console.log("".concat((0,H.yellow)(Iw(o.tips)),`
46
46
  `))}catch{console.log("".concat((0,H.bgRed)("ERROR:"),`
@@ -40,7 +40,7 @@ function print() { __p += __j.call(arguments, '') }
40
40
  `))}return i}();$n.HumanWarning=Wy});var Mc=T(te=>{"use strict";var Gy=te&&te.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function E(S){try{d(o.next(S))}catch(C){_(C)}}function w(S){try{d(o.throw(S))}catch(C){_(C)}}function d(S){S.done?f(S.value):l(S.value).then(E,w)}d((o=o.apply(i,r||[])).next())})},By=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(d){return function(S){return w([d,S])}}function w(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Xy=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var Fc=mr(),zy=Ic(),yu=Xy(At()),Vy=mr(),rn=yu.default.colors,jy=yu.default.report,Yy=yu.default.getMAC,Ky=Cc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return Ky.CommandError}});var Zy=bc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return Zy.ConfigDeleteError}});var Jy=Tc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return Jy.ConfigError}});var ky=Lc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return ky.ConfigGetError}});var Qy=$c();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return Qy.InitError}});var ew=nn();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return ew.ServerlessError}});var tw=Pc();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return tw.HumanError}});var nw=qc();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return nw.HumanWarning}});function rw(){try{return Yy().replace(/:/g,"")}catch{return"unknown"}}function wu(i,r){return"".concat(rn.gray(i)).concat(rn.gray.underline(r))}var iw=function(){function i(r){var s=r.error,o=r.prefix,l=o===void 0?"Message:":o;this.traceId="".concat(rw()).concat(Date.now()),console.log((0,Fc.red)("\u2716 ".concat(l,`
41
41
  `)));var f=(0,zy.getConfig)("analysis");f!=="disable"&&console.log(rn.gray("TraceId: ".concat(this.traceId))),console.log(rn.gray("Environment: ".concat((0,Fc.getVersion)()))),console.log(wu("Documents: ","https://www.serverless-devs.com")),console.log(wu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(wu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
42
  `)),(0,Vy.getErrorMessage)(s),f!=="disable"&&console.log(rn.gray("Please copy traceId: ".concat(this.traceId," and join Dingding group: 33947367 for consultation."))),console.log(rn.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(rn.gray(`And run again with the '--debug' option or 's -h' to get more logs.
43
- `))}return i.prototype.report=function(r){return Gy(this,void 0,void 0,function(){return By(this,function(s){switch(s.label){case 0:return[4,jy({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();te.HandleError=iw});var Hc=T((Sx,sw)=>{sw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 mr=T(H=>{"use strict";var uw=H&&H.__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]}),ow=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),aw=H&&H.__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)&&uw(r,i,s);return ow(r,i),r},Uc=H&&H.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function E(S){try{d(o.next(S))}catch(C){_(C)}}function w(S){try{d(o.throw(S))}catch(C){_(C)}}function d(S){S.done?f(S.value):l(S.value).then(E,w)}d((o=o.apply(i,r||[])).next())})},Wc=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(d){return function(S){return w([d,S])}}function w(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},bi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var de=bi(require("path")),Fe=bi(require("fs")),xu=bi(hl()),lw=bi(require("os")),fw=Mc(),Nn=aw(At()),Ti=Nn.default.colors,cw=Nn.default.jsyaml,hw=Nn.default.makeUnderLine,Gc=Nn.default.isDebugMode,Bc=Hc();H.red=Ti.hex("#fd5750");H.yellow=Ti.hex("#F3F99D");H.bgRed=Ti.hex("#000").bgHex("#fd5750");var pw=function(i){var r=Gc?Gc():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
43
+ `))}return i.prototype.report=function(r){return Gy(this,void 0,void 0,function(){return By(this,function(s){switch(s.label){case 0:return[4,jy({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();te.HandleError=iw});var Hc=T((Sx,sw)=>{sw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.6",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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":"beta"}}});var mr=T(H=>{"use strict";var uw=H&&H.__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]}),ow=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),aw=H&&H.__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)&&uw(r,i,s);return ow(r,i),r},Uc=H&&H.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function E(S){try{d(o.next(S))}catch(C){_(C)}}function w(S){try{d(o.throw(S))}catch(C){_(C)}}function d(S){S.done?f(S.value):l(S.value).then(E,w)}d((o=o.apply(i,r||[])).next())})},Wc=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(d){return function(S){return w([d,S])}}function w(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},bi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var de=bi(require("path")),Fe=bi(require("fs")),xu=bi(hl()),lw=bi(require("os")),fw=Mc(),Nn=aw(At()),Ti=Nn.default.colors,cw=Nn.default.jsyaml,hw=Nn.default.makeUnderLine,Gc=Nn.default.isDebugMode,Bc=Hc();H.red=Ti.hex("#fd5750");H.yellow=Ti.hex("#F3F99D");H.bgRed=Ti.hex("#000").bgHex("#fd5750");var pw=function(i){var r=Gc?Gc():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
44
44
  `).concat(o.message,`
45
45
  `)),o.tips&&console.log("".concat((0,H.yellow)(hw(o.tips)),`
46
46
  `))}catch{console.log("".concat((0,H.bgRed)("ERROR:"),`