@serverless-devs/s 2.0.100-beta.2 → 2.0.100-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean/index.js +1 -1
- package/lib/cli/index.js +23 -23
- package/lib/component/index.js +35 -35
- package/lib/config/add/index.js +20 -20
- package/lib/config/delete/index.js +20 -20
- package/lib/config/get/index.js +24 -24
- package/lib/config/index.js +1 -1
- package/lib/error/index.js +4 -3
- package/lib/help/index.js +16 -15
- package/lib/index.js +62 -62
- package/lib/init/index.js +42 -42
- package/lib/set/analysis/index.js +22 -22
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +22 -22
- package/lib/set/registry/index.js +22 -22
- package/lib/set/workspace/index.js +20 -20
- package/lib/update-notifier/index.js +1 -1
- package/package.json +1 -1
package/lib/set/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __p += '`),K&&(O+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+O+`return __p
|
|
34
|
-
}`;var B=Da(function(){return J(c,N+"return "+O).apply(i,p)});if(B.source=O,Ls(B))throw B;return B}function hm(e){return Q(e).toLowerCase()}function pm(e){return Q(e).toUpperCase()}function gm(e,t,n){if(e=Q(e),e&&(n||t===i))return zu(e);if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Qe(t),c=Vu(u,a),p=Yu(u,a)+1;return Tt(u,c,p).join("")}function dm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Zu(e)+1);if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Yu(u,Qe(t))+1;return Tt(u,0,a).join("")}function _m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Li,"");if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Vu(u,Qe(t));return Tt(u,a).join("")}function mm(e,t){var n=fc,u=cc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?G(t.length):n,u="omission"in t?Te(t.omission):u}e=Q(e);var c=e.length;if(sn(e)){var p=Qe(e);c=p.length}if(n>=c)return e;var g=n-un(u);if(g<1)return u;var _=p?Tt(p,0,g).join(""):e.slice(0,g);if(a===i)return _+u;if(p&&(g+=_.length-g),bs(a)){if(e.slice(g).search(a)){var y,R=_;for(a.global||(a=Vi(a.source,Q(pu.exec(a))+"g")),a.lastIndex=0;y=a.exec(R);)var O=y.index;_=_.slice(0,O===i?g:O)}}else if(e.indexOf(Te(a),g)!=g){var S=_.lastIndexOf(a);S>-1&&(_=_.slice(0,S))}return _+u}function vm(e){return e=Q(e),e&&Lc.test(e)?e.replace(fu,Yh):e}var Em=hn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ns=Mo("toUpperCase");function qa(e,t,n){return e=Q(e),t=n?i:t,t===i?Gh(e)?Jh(e):Nh(e):e.match(t)||[]}var Da=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ls(n)?n:new H(n)}}),wm=dt(function(e,t){return De(t,function(n){n=ot(n),pt(e,n,Ss(e[n],e))}),e});function Am(e){var t=e==null?0:e.length,n=D();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new Me(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function xm(e){return Yp(He(e,v))}function Ps(e){return function(){return e}}function ym(e,t){return e==null||e!==e?t:e}var Rm=Ho(),Om=Ho(!0);function Se(e){return e}function Fs(e){return _o(typeof e=="function"?e:He(e,v))}function Im(e){return vo(He(e,v))}function Sm(e,t){return Eo(e,He(t,v))}var Cm=z(function(e,t){return function(n){return qn(n,e,t)}}),Lm=z(function(e,t){return function(n){return qn(e,n,t)}});function qs(e,t,n){var u=ce(t),a=Pr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=Pr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=mt(e);return De(a,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var y=this.__chain__;if(c||y){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=y,R}return _.apply(e,Rt([this.value()],arguments))})}),e}function bm(){return fe._===this&&(fe._=np),this}function Ds(){}function Tm(e){return e=G(e),z(function(t){return wo(t,e)})}var $m=gs(ne),Nm=gs(Hu),Pm=gs(Ui);function Ma(e){return As(e)?Hi(ot(e)):fg(e)}function Fm(e){return function(t){return e==null?i:Wt(e,t)}}var qm=Go(),Dm=Go(!0);function Ms(){return[]}function Us(){return!1}function Mm(){return{}}function Um(){return""}function Hm(){return!0}function Wm(e,t){if(e=G(e),e<1||e>xt)return[];var n=it,u=de(e,it);t=D(t),e-=it;for(var a=Bi(u,t);++n<e;)t(n);return a}function Gm(e){return W(e)?ne(e,ot):$e(e)?[e]:Re(ia(Q(e)))}function Bm(e){var t=++ep;return Q(e)+t}var Xm=Hr(function(e,t){return e+t},0),zm=ds("ceil"),Vm=Hr(function(e,t){return e/t},1),Ym=ds("floor");function Km(e){return e&&e.length?Nr(e,Se,es):i}function Zm(e,t){return e&&e.length?Nr(e,D(t,2),es):i}function Jm(e){return Bu(e,Se)}function Qm(e,t){return Bu(e,D(t,2))}function jm(e){return e&&e.length?Nr(e,Se,is):i}function km(e,t){return e&&e.length?Nr(e,D(t,2),is):i}var ev=Hr(function(e,t){return e*t},1),tv=ds("round"),nv=Hr(function(e,t){return e-t},0);function rv(e){return e&&e.length?Gi(e,Se):0}function iv(e,t){return e&&e.length?Gi(e,D(t,2)):0}return l.after=I0,l.ary=da,l.assign=p_,l.assignIn=La,l.assignInWith=kr,l.assignWith=g_,l.at=d_,l.before=_a,l.bind=Ss,l.bindAll=wm,l.bindKey=ma,l.castArray=M0,l.chain=ha,l.chunk=Yg,l.compact=Kg,l.concat=Zg,l.cond=Am,l.conforms=xm,l.constant=Ps,l.countBy=r0,l.create=__,l.curry=va,l.curryRight=Ea,l.debounce=wa,l.defaults=m_,l.defaultsDeep=v_,l.defer=S0,l.delay=C0,l.difference=Jg,l.differenceBy=Qg,l.differenceWith=jg,l.drop=kg,l.dropRight=ed,l.dropRightWhile=td,l.dropWhile=nd,l.fill=rd,l.filter=s0,l.flatMap=a0,l.flatMapDeep=l0,l.flatMapDepth=f0,l.flatten=aa,l.flattenDeep=id,l.flattenDepth=sd,l.flip=L0,l.flow=Rm,l.flowRight=Om,l.fromPairs=ud,l.functions=O_,l.functionsIn=I_,l.groupBy=c0,l.initial=ad,l.intersection=ld,l.intersectionBy=fd,l.intersectionWith=cd,l.invert=C_,l.invertBy=L_,l.invokeMap=p0,l.iteratee=Fs,l.keyBy=g0,l.keys=ce,l.keysIn=Ie,l.map=Yr,l.mapKeys=T_,l.mapValues=$_,l.matches=Im,l.matchesProperty=Sm,l.memoize=Zr,l.merge=N_,l.mergeWith=ba,l.method=Cm,l.methodOf=Lm,l.mixin=qs,l.negate=Jr,l.nthArg=Tm,l.omit=P_,l.omitBy=F_,l.once=b0,l.orderBy=d0,l.over=$m,l.overArgs=T0,l.overEvery=Nm,l.overSome=Pm,l.partial=Cs,l.partialRight=Aa,l.partition=_0,l.pick=q_,l.pickBy=Ta,l.property=Ma,l.propertyOf=Fm,l.pull=dd,l.pullAll=fa,l.pullAllBy=_d,l.pullAllWith=md,l.pullAt=vd,l.range=qm,l.rangeRight=Dm,l.rearg=$0,l.reject=E0,l.remove=Ed,l.rest=N0,l.reverse=Os,l.sampleSize=A0,l.set=M_,l.setWith=U_,l.shuffle=x0,l.slice=wd,l.sortBy=O0,l.sortedUniq=Sd,l.sortedUniqBy=Cd,l.split=am,l.spread=P0,l.tail=Ld,l.take=bd,l.takeRight=Td,l.takeRightWhile=$d,l.takeWhile=Nd,l.tap=Kd,l.throttle=F0,l.thru=Vr,l.toArray=Ia,l.toPairs=$a,l.toPairsIn=Na,l.toPath=Gm,l.toPlainObject=Ca,l.transform=H_,l.unary=q0,l.union=Pd,l.unionBy=Fd,l.unionWith=qd,l.uniq=Dd,l.uniqBy=Md,l.uniqWith=Ud,l.unset=W_,l.unzip=Is,l.unzipWith=ca,l.update=G_,l.updateWith=B_,l.values=dn,l.valuesIn=X_,l.without=Hd,l.words=qa,l.wrap=D0,l.xor=Wd,l.xorBy=Gd,l.xorWith=Bd,l.zip=Xd,l.zipObject=zd,l.zipObjectDeep=Vd,l.zipWith=Yd,l.entries=$a,l.entriesIn=Na,l.extend=La,l.extendWith=kr,qs(l,l),l.add=Xm,l.attempt=Da,l.camelCase=K_,l.capitalize=Pa,l.ceil=zm,l.clamp=z_,l.clone=U0,l.cloneDeep=W0,l.cloneDeepWith=G0,l.cloneWith=H0,l.conformsTo=B0,l.deburr=Fa,l.defaultTo=ym,l.divide=Vm,l.endsWith=Z_,l.eq=ke,l.escape=J_,l.escapeRegExp=Q_,l.every=i0,l.find=u0,l.findIndex=ua,l.findKey=E_,l.findLast=o0,l.findLastIndex=oa,l.findLastKey=w_,l.floor=Ym,l.forEach=pa,l.forEachRight=ga,l.forIn=A_,l.forInRight=x_,l.forOwn=y_,l.forOwnRight=R_,l.get=Ts,l.gt=X0,l.gte=z0,l.has=S_,l.hasIn=$s,l.head=la,l.identity=Se,l.includes=h0,l.indexOf=od,l.inRange=V_,l.invoke=b_,l.isArguments=Xt,l.isArray=W,l.isArrayBuffer=V0,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=Y0,l.isBuffer=$t,l.isDate=K0,l.isElement=Z0,l.isEmpty=J0,l.isEqual=Q0,l.isEqualWith=j0,l.isError=Ls,l.isFinite=k0,l.isFunction=mt,l.isInteger=xa,l.isLength=Qr,l.isMap=ya,l.isMatch=e_,l.isMatchWith=t_,l.isNaN=n_,l.isNative=r_,l.isNil=s_,l.isNull=i_,l.isNumber=Ra,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=Gn,l.isRegExp=bs,l.isSafeInteger=u_,l.isSet=Oa,l.isString=jr,l.isSymbol=$e,l.isTypedArray=gn,l.isUndefined=o_,l.isWeakMap=a_,l.isWeakSet=l_,l.join=hd,l.kebabCase=j_,l.last=Ge,l.lastIndexOf=pd,l.lowerCase=k_,l.lowerFirst=em,l.lt=f_,l.lte=c_,l.max=Km,l.maxBy=Zm,l.mean=Jm,l.meanBy=Qm,l.min=jm,l.minBy=km,l.stubArray=Ms,l.stubFalse=Us,l.stubObject=Mm,l.stubString=Um,l.stubTrue=Hm,l.multiply=ev,l.nth=gd,l.noConflict=bm,l.noop=Ds,l.now=Kr,l.pad=tm,l.padEnd=nm,l.padStart=rm,l.parseInt=im,l.random=Y_,l.reduce=m0,l.reduceRight=v0,l.repeat=sm,l.replace=um,l.result=D_,l.round=tv,l.runInContext=d,l.sample=w0,l.size=y0,l.snakeCase=om,l.some=R0,l.sortedIndex=Ad,l.sortedIndexBy=xd,l.sortedIndexOf=yd,l.sortedLastIndex=Rd,l.sortedLastIndexBy=Od,l.sortedLastIndexOf=Id,l.startCase=lm,l.startsWith=fm,l.subtract=nv,l.sum=rv,l.sumBy=iv,l.template=cm,l.times=Wm,l.toFinite=vt,l.toInteger=G,l.toLength=Sa,l.toLower=hm,l.toNumber=Be,l.toSafeInteger=h_,l.toString=Q,l.toUpper=pm,l.trim=gm,l.trimEnd=dm,l.trimStart=_m,l.truncate=mm,l.unescape=vm,l.uniqueId=Bm,l.upperCase=Em,l.upperFirst=Ns,l.each=pa,l.eachRight=ga,l.first=la,qs(l,function(){var e={};return st(l,function(t,n){j.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:le(G(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=de(n,u.__takeCount__):u.__views__.push({size:de(n,it),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==ou||n==dc;Y.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:D(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),De(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),De(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Se)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Jr(D(e)))},Y.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(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)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(it)},st(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,g=u?[1]:arguments,_=p instanceof Y,y=g[0],R=_||W(p),O=function(V){var K=a.apply(l,Rt([V],g));return u&&S?K[0]:K};R&&n&&typeof y=="function"&&y.length!=1&&(_=R=!1);var S=this.__chain__,N=!!this.__actions__.length,M=c&&!S,B=_&&!N;if(!c&&R){p=B?p:new Y(this);var U=e.apply(p,g);return U.__actions__.push({func:Vr,args:[O],thisArg:i}),new Ue(U,S)}return M&&B?e.apply(this,g):(U=this.thru(O),M?u?U.value()[0]:U.value():U)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),st(Y.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";j.call(ln,u)||(ln[u]=[]),ln[u].push({name:t,func:n})}}),ln[Ur(i,Pt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=vp,Y.prototype.reverse=Ep,Y.prototype.value=wp,l.prototype.at=Zd,l.prototype.chain=Jd,l.prototype.commit=Qd,l.prototype.next=jd,l.prototype.plant=e0,l.prototype.reverse=t0,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=n0,l.prototype.first=l.prototype.head,Ln&&(l.prototype[Ln]=kd),l},It=Qh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=It,define(function(){return It})):qt?((qt.exports=It)._=It,Fi._=It):fe._=It}).call(_n)});var Vn=F((sw,Za)=>{var ov="2.0.0",av=256,lv=Number.MAX_SAFE_INTEGER||9007199254740991,fv=16;Za.exports={SEMVER_SPEC_VERSION:ov,MAX_LENGTH:av,MAX_SAFE_INTEGER:lv,MAX_SAFE_COMPONENT_LENGTH:fv}});var Yn=F((uw,Ja)=>{var cv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Ja.exports=cv});var Yt=F((Nt,Qa)=>{var{MAX_SAFE_COMPONENT_LENGTH:Bs}=Vn(),hv=Yn();Nt=Qa.exports={};var pv=Nt.re=[],L=Nt.src=[],b=Nt.t={},gv=0,X=(i,r,s)=>{let o=gv++;hv(o,r),b[i]=o,L[o]=r,pv[o]=new RegExp(r,s?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","[0-9]+");X("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");X("MAINVERSION",`(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[b.NUMERICIDENTIFIER]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[b.NUMERICIDENTIFIERLOOSE]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[b.PRERELEASEIDENTIFIER]}(?:\\.${L[b.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[b.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[b.BUILDIDENTIFIER]}(?:\\.${L[b.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[b.MAINVERSION]}${L[b.PRERELEASE]}?${L[b.BUILD]}?`);X("FULL",`^${L[b.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[b.MAINVERSIONLOOSE]}${L[b.PRERELEASELOOSE]}?${L[b.BUILD]}?`);X("LOOSE",`^${L[b.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[b.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:${L[b.PRERELEASE]})?${L[b.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:${L[b.PRERELEASELOOSE]})?${L[b.BUILD]}?)?)?`);X("XRANGE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${Bs}})(?:\\.(\\d{1,${Bs}}))?(?:\\.(\\d{1,${Bs}}))?(?:$|[^\\d])`);X("COERCERTL",L[b.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[b.LONETILDE]}\\s+`,!0);Nt.tildeTrimReplace="$1~";X("TILDE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[b.LONECARET]}\\s+`,!0);Nt.caretTrimReplace="$1^";X("CARET",`^${L[b.LONECARET]}${L[b.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[b.LONECARET]}${L[b.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[b.GTLT]}\\s*(${L[b.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]}|${L[b.XRANGEPLAIN]})`,!0);Nt.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[b.XRANGEPLAIN]})\\s+-\\s+(${L[b.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[b.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Kn=F((ow,ja)=>{var dv=["includePrerelease","loose","rtl"],_v=i=>i?typeof i!="object"?{loose:!0}:dv.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};ja.exports=_v});var ti=F((aw,tl)=>{var ka=/^[0-9]+$/,el=(i,r)=>{let s=ka.test(i),o=ka.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},mv=(i,r)=>el(r,i);tl.exports={compareIdentifiers:el,rcompareIdentifiers:mv}});var me=F((lw,sl)=>{var ni=Yn(),{MAX_LENGTH:nl,MAX_SAFE_INTEGER:ri}=Vn(),{re:rl,t:il}=Yt(),vv=Kn(),{compareIdentifiers:Zn}=ti(),Xe=class{constructor(r,s){if(s=vv(s),r instanceof Xe){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>nl)throw new TypeError(`version is longer than ${nl} characters`);ni("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?rl[il.LOOSE]:rl[il.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>ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ri||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let h=+f;if(h>=0&&h<ri)return h}return f}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(ni("SemVer.compare",this.version,this.options,r),!(r instanceof Xe)){if(typeof r=="string"&&r===this.version)return 0;r=new Xe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Xe||(r=new Xe(r,this.options)),Zn(this.major,r.major)||Zn(this.minor,r.minor)||Zn(this.patch,r.patch)}comparePre(r){if(r instanceof Xe||(r=new Xe(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}compareBuild(r){r instanceof Xe||(r=new Xe(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};sl.exports=Xe});var Kt=F((fw,ll)=>{var{MAX_LENGTH:Ev}=Vn(),{re:ul,t:ol}=Yt(),al=me(),wv=Kn(),Av=(i,r)=>{if(r=wv(r),i instanceof al)return i;if(typeof i!="string"||i.length>Ev||!(r.loose?ul[ol.LOOSE]:ul[ol.FULL]).test(i))return null;try{return new al(i,r)}catch{return null}};ll.exports=Av});var cl=F((cw,fl)=>{var xv=Kt(),yv=(i,r)=>{let s=xv(i,r);return s?s.version:null};fl.exports=yv});var pl=F((hw,hl)=>{var Rv=Kt(),Ov=(i,r)=>{let s=Rv(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};hl.exports=Ov});var dl=F((pw,gl)=>{var Iv=me(),Sv=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new Iv(i,s).inc(r,o).version}catch{return null}};gl.exports=Sv});var ze=F((gw,ml)=>{var _l=me(),Cv=(i,r,s)=>new _l(i,s).compare(new _l(r,s));ml.exports=Cv});var ii=F((dw,vl)=>{var Lv=ze(),bv=(i,r,s)=>Lv(i,r,s)===0;vl.exports=bv});var Al=F((_w,wl)=>{var El=Kt(),Tv=ii(),$v=(i,r)=>{if(Tv(i,r))return null;{let s=El(i),o=El(r),f=s.prerelease.length||o.prerelease.length,h=f?"pre":"",m=f?"prerelease":"";for(let A in s)if((A==="major"||A==="minor"||A==="patch")&&s[A]!==o[A])return h+A;return m}};wl.exports=$v});var yl=F((mw,xl)=>{var Nv=me(),Pv=(i,r)=>new Nv(i,r).major;xl.exports=Pv});var Ol=F((vw,Rl)=>{var Fv=me(),qv=(i,r)=>new Fv(i,r).minor;Rl.exports=qv});var Sl=F((Ew,Il)=>{var Dv=me(),Mv=(i,r)=>new Dv(i,r).patch;Il.exports=Mv});var Ll=F((ww,Cl)=>{var Uv=Kt(),Hv=(i,r)=>{let s=Uv(i,r);return s&&s.prerelease.length?s.prerelease:null};Cl.exports=Hv});var Tl=F((Aw,bl)=>{var Wv=ze(),Gv=(i,r,s)=>Wv(r,i,s);bl.exports=Gv});var Nl=F((xw,$l)=>{var Bv=ze(),Xv=(i,r)=>Bv(i,r,!0);$l.exports=Xv});var si=F((yw,Fl)=>{var Pl=me(),zv=(i,r,s)=>{let o=new Pl(i,s),f=new Pl(r,s);return o.compare(f)||o.compareBuild(f)};Fl.exports=zv});var Dl=F((Rw,ql)=>{var Vv=si(),Yv=(i,r)=>i.sort((s,o)=>Vv(s,o,r));ql.exports=Yv});var Ul=F((Ow,Ml)=>{var Kv=si(),Zv=(i,r)=>i.sort((s,o)=>Kv(o,s,r));Ml.exports=Zv});var Jn=F((Iw,Hl)=>{var Jv=ze(),Qv=(i,r,s)=>Jv(i,r,s)>0;Hl.exports=Qv});var ui=F((Sw,Wl)=>{var jv=ze(),kv=(i,r,s)=>jv(i,r,s)<0;Wl.exports=kv});var Xs=F((Cw,Gl)=>{var e1=ze(),t1=(i,r,s)=>e1(i,r,s)!==0;Gl.exports=t1});var oi=F((Lw,Bl)=>{var n1=ze(),r1=(i,r,s)=>n1(i,r,s)>=0;Bl.exports=r1});var ai=F((bw,Xl)=>{var i1=ze(),s1=(i,r,s)=>i1(i,r,s)<=0;Xl.exports=s1});var zs=F((Tw,zl)=>{var u1=ii(),o1=Xs(),a1=Jn(),l1=oi(),f1=ui(),c1=ai(),h1=(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 u1(i,s,o);case"!=":return o1(i,s,o);case">":return a1(i,s,o);case">=":return l1(i,s,o);case"<":return f1(i,s,o);case"<=":return c1(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};zl.exports=h1});var Yl=F(($w,Vl)=>{var p1=me(),g1=Kt(),{re:li,t:fi}=Yt(),d1=(i,r)=>{if(i instanceof p1)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(li[fi.COERCE]);else{let o;for(;(o=li[fi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),li[fi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;li[fi.COERCERTL].lastIndex=-1}return s===null?null:g1(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};Vl.exports=d1});var Zl=F((Nw,Kl)=>{"use strict";Kl.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Ql=F((Pw,Jl)=>{"use strict";Jl.exports=Z;Z.Node=Zt;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Z.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};Z.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++}};Z.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++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)m1(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)v1(this,arguments[i]);return this.length};Z.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}};Z.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}};Z.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};Z.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};Z.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};Z.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};Z.prototype.map=function(i,r){r=r||this;for(var s=new Z,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Z.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Z,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Z.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};Z.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};Z.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};Z.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};Z.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 Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};Z.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 Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};Z.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var h=[],o=0;f&&o<r;o++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=_1(this,f,s[o]);return h};Z.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 _1(i,r,s){var o=r===i.head?new Zt(s,null,r,i):new Zt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function m1(i,r){i.tail=new Zt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function v1(i,r){i.head=new Zt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Zt(i,r,s,o){if(!(this instanceof Zt))return new Zt(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{Zl()(Z)}catch{}});var sf=F((Fw,rf)=>{"use strict";var E1=Ql(),Jt=Symbol("max"),wt=Symbol("length"),mn=Symbol("lengthCalculator"),Qn=Symbol("allowStale"),Qt=Symbol("maxAge"),At=Symbol("dispose"),jl=Symbol("noDisposeOnSet"),he=Symbol("lruList"),tt=Symbol("cache"),kl=Symbol("updateAgeOnGet"),Vs=()=>1,ef=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[Jt]=r.max||1/0,o=r.length||Vs;if(this[mn]=typeof o!="function"?Vs:o,this[Qn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Qt]=r.maxAge||0,this[At]=r.dispose,this[jl]=r.noDisposeOnSet||!1,this[kl]=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[Jt]=r||1/0,jn(this)}get max(){return this[Jt]}set allowStale(r){this[Qn]=!!r}get allowStale(){return this[Qn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Qt]=r,jn(this)}get maxAge(){return this[Qt]}set lengthCalculator(r){typeof r!="function"&&(r=Vs),r!==this[mn]&&(this[mn]=r,this[wt]=0,this[he].forEach(s=>{s.length=this[mn](s.value,s.key),this[wt]+=s.length})),jn(this)}get lengthCalculator(){return this[mn]}get length(){return this[wt]}get itemCount(){return this[he].length}rforEach(r,s){s=s||this;for(let o=this[he].tail;o!==null;){let f=o.prev;nf(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[he].head;o!==null;){let f=o.next;nf(this,r,o,s),o=f}}keys(){return this[he].toArray().map(r=>r.key)}values(){return this[he].toArray().map(r=>r.value)}reset(){this[At]&&this[he]&&this[he].length&&this[he].forEach(r=>this[At](r.key,r.value)),this[tt]=new Map,this[he]=new E1,this[wt]=0}dump(){return this[he].map(r=>ci(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[he]}set(r,s,o){if(o=o||this[Qt],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,h=this[mn](s,r);if(this[tt].has(r)){if(h>this[Jt])return vn(this,this[tt].get(r)),!1;let w=this[tt].get(r).value;return this[At]&&(this[jl]||this[At](r,w.value)),w.now=f,w.maxAge=o,w.value=s,this[wt]+=h-w.length,w.length=h,this.get(r),jn(this),!0}let m=new tf(r,s,h,f,o);return m.length>this[Jt]?(this[At]&&this[At](r,s),!1):(this[wt]+=m.length,this[he].unshift(m),this[tt].set(r,this[he].head),jn(this),!0)}has(r){if(!this[tt].has(r))return!1;let s=this[tt].get(r).value;return!ci(this,s)}get(r){return Ys(this,r,!0)}peek(r){return Ys(this,r,!1)}pop(){let r=this[he].tail;return r?(vn(this,r),r.value):null}del(r){vn(this,this[tt].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],h=f.e||0;if(h===0)this.set(f.k,f.v);else{let m=h-s;m>0&&this.set(f.k,f.v,m)}}}prune(){this[tt].forEach((r,s)=>Ys(this,s,!1))}},Ys=(i,r,s)=>{let o=i[tt].get(r);if(o){let f=o.value;if(ci(i,f)){if(vn(i,o),!i[Qn])return}else s&&(i[kl]&&(o.value.now=Date.now()),i[he].unshiftNode(o));return f.value}},ci=(i,r)=>{if(!r||!r.maxAge&&!i[Qt])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[Qt]&&s>i[Qt]},jn=i=>{if(i[wt]>i[Jt])for(let r=i[he].tail;i[wt]>i[Jt]&&r!==null;){let s=r.prev;vn(i,r),r=s}},vn=(i,r)=>{if(r){let s=r.value;i[At]&&i[At](s.key,s.value),i[wt]-=s.length,i[tt].delete(s.key),i[he].removeNode(r)}},tf=class{constructor(r,s,o,f,h){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=h||0}},nf=(i,r,s,o)=>{let f=s.value;ci(i,f)&&(vn(i,s),i[Qn]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};rf.exports=ef});var Ve=F((qw,lf)=>{var En=class{constructor(r,s){if(s=A1(s),r instanceof En)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new En(r.raw,s);if(r instanceof Ks)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(f=>!of(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&I1(f[0])){this.set=[f];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,f=uf.get(o);if(f)return f;let h=this.options.loose,m=h?ve[ge.HYPHENRANGELOOSE]:ve[ge.HYPHENRANGE];r=r.replace(m,q1(this.options.includePrerelease)),oe("hyphen replace",r),r=r.replace(ve[ge.COMPARATORTRIM],y1),oe("comparator trim",r,ve[ge.COMPARATORTRIM]),r=r.replace(ve[ge.TILDETRIM],R1),r=r.replace(ve[ge.CARETTRIM],O1),r=r.split(/\s+/).join(" ");let A=h?ve[ge.COMPARATORLOOSE]:ve[ge.COMPARATOR],w=r.split(" ").map(T=>S1(T,this.options)).join(" ").split(/\s+/).map(T=>F1(T,this.options)).filter(this.options.loose?T=>!!T.match(A):()=>!0).map(T=>new Ks(T,this.options)),v=w.length,I=new Map;for(let T of w){if(of(T))return[T];I.set(T.value,T)}I.size>1&&I.has("")&&I.delete("");let $=[...I.values()];return uf.set(o,$),$}intersects(r,s){if(!(r instanceof En))throw new TypeError("a Range is required");return this.set.some(o=>af(o,s)&&r.set.some(f=>af(f,s)&&o.every(h=>f.every(m=>h.intersects(m,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new x1(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(D1(this.set[s],r,this.options))return!0;return!1}};lf.exports=En;var w1=sf(),uf=new w1({max:1e3}),A1=Kn(),Ks=kn(),oe=Yn(),x1=me(),{re:ve,t:ge,comparatorTrimReplace:y1,tildeTrimReplace:R1,caretTrimReplace:O1}=Yt(),of=i=>i.value==="<0.0.0-0",I1=i=>i.value==="",af=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(h=>f.intersects(h,r)),f=o.pop();return s},S1=(i,r)=>(oe("comp",i,r),i=b1(i,r),oe("caret",i),i=C1(i,r),oe("tildes",i),i=$1(i,r),oe("xrange",i),i=P1(i,r),oe("stars",i),i),xe=i=>!i||i.toLowerCase()==="x"||i==="*",C1=(i,r)=>i.trim().split(/\s+/).map(s=>L1(s,r)).join(" "),L1=(i,r)=>{let s=r.loose?ve[ge.TILDELOOSE]:ve[ge.TILDE];return i.replace(s,(o,f,h,m,A)=>{oe("tilde",i,o,f,h,m,A);let w;return xe(f)?w="":xe(h)?w=`>=${f}.0.0 <${+f+1}.0.0-0`:xe(m)?w=`>=${f}.${h}.0 <${f}.${+h+1}.0-0`:A?(oe("replaceTilde pr",A),w=`>=${f}.${h}.${m}-${A} <${f}.${+h+1}.0-0`):w=`>=${f}.${h}.${m} <${f}.${+h+1}.0-0`,oe("tilde return",w),w})},b1=(i,r)=>i.trim().split(/\s+/).map(s=>T1(s,r)).join(" "),T1=(i,r)=>{oe("caret",i,r);let s=r.loose?ve[ge.CARETLOOSE]:ve[ge.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,h,m,A,w)=>{oe("caret",i,f,h,m,A,w);let v;return xe(h)?v="":xe(m)?v=`>=${h}.0.0${o} <${+h+1}.0.0-0`:xe(A)?h==="0"?v=`>=${h}.${m}.0${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.0${o} <${+h+1}.0.0-0`:w?(oe("replaceCaret pr",w),h==="0"?m==="0"?v=`>=${h}.${m}.${A}-${w} <${h}.${m}.${+A+1}-0`:v=`>=${h}.${m}.${A}-${w} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${A}-${w} <${+h+1}.0.0-0`):(oe("no pr"),h==="0"?m==="0"?v=`>=${h}.${m}.${A}${o} <${h}.${m}.${+A+1}-0`:v=`>=${h}.${m}.${A}${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${A} <${+h+1}.0.0-0`),oe("caret return",v),v})},$1=(i,r)=>(oe("replaceXRanges",i,r),i.split(/\s+/).map(s=>N1(s,r)).join(" ")),N1=(i,r)=>{i=i.trim();let s=r.loose?ve[ge.XRANGELOOSE]:ve[ge.XRANGE];return i.replace(s,(o,f,h,m,A,w)=>{oe("xRange",i,o,f,h,m,A,w);let v=xe(h),I=v||xe(m),$=I||xe(A),T=$;return f==="="&&T&&(f=""),w=r.includePrerelease?"-0":"",v?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(I&&(m=0),A=0,f===">"?(f=">=",I?(h=+h+1,m=0,A=0):(m=+m+1,A=0)):f==="<="&&(f="<",I?h=+h+1:m=+m+1),f==="<"&&(w="-0"),o=`${f+h}.${m}.${A}${w}`):I?o=`>=${h}.0.0${w} <${+h+1}.0.0-0`:$&&(o=`>=${h}.${m}.0${w} <${h}.${+m+1}.0-0`),oe("xRange return",o),o})},P1=(i,r)=>(oe("replaceStars",i,r),i.trim().replace(ve[ge.STAR],"")),F1=(i,r)=>(oe("replaceGTE0",i,r),i.trim().replace(ve[r.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),q1=i=>(r,s,o,f,h,m,A,w,v,I,$,T,P)=>(xe(o)?s="":xe(f)?s=`>=${o}.0.0${i?"-0":""}`:xe(h)?s=`>=${o}.${f}.0${i?"-0":""}`:m?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,xe(v)?w="":xe(I)?w=`<${+v+1}.0.0-0`:xe($)?w=`<${v}.${+I+1}.0-0`:T?w=`<=${v}.${I}.${$}-${T}`:i?w=`<${v}.${I}.${+$+1}-0`:w=`<=${w}`,`${s} ${w}`.trim()),D1=(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(oe(i[o].semver),i[o].semver!==Ks.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var kn=F((Dw,gf)=>{var er=Symbol("SemVer ANY"),tr=class{static get ANY(){return er}constructor(r,s){if(s=M1(s),r instanceof tr){if(r.loose===!!s.loose)return r;r=r.value}Js("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===er?this.value="":this.value=this.operator+this.semver.version,Js("comp",this)}parse(r){let s=this.options.loose?ff[cf.COMPARATORLOOSE]:ff[cf.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 hf(o[2],this.options.loose):this.semver=er}toString(){return this.value}test(r){if(Js("Comparator.test",r,this.options.loose),this.semver===er||r===er)return!0;if(typeof r=="string")try{r=new hf(r,this.options)}catch{return!1}return Zs(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof tr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new pf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new pf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),h=this.semver.version===r.semver.version,m=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),A=Zs(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),w=Zs(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||h&&m||A||w}};gf.exports=tr;var M1=Kn(),{re:ff,t:cf}=Yt(),Zs=zs(),Js=Yn(),hf=me(),pf=Ve()});var nr=F((Mw,df)=>{var U1=Ve(),H1=(i,r,s)=>{try{r=new U1(r,s)}catch{return!1}return r.test(i)};df.exports=H1});var mf=F((Uw,_f)=>{var W1=Ve(),G1=(i,r)=>new W1(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));_f.exports=G1});var Ef=F((Hw,vf)=>{var B1=me(),X1=Ve(),z1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new X1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===-1)&&(o=m,f=new B1(o,s))}),o};vf.exports=z1});var Af=F((Ww,wf)=>{var V1=me(),Y1=Ve(),K1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new Y1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===1)&&(o=m,f=new V1(o,s))}),o};wf.exports=K1});var Rf=F((Gw,yf)=>{var Qs=me(),Z1=Ve(),xf=Jn(),J1=(i,r)=>{i=new Z1(i,r);let s=new Qs("0.0.0");if(i.test(s)||(s=new Qs("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],h=null;f.forEach(m=>{let A=new Qs(m.semver.version);switch(m.operator){case">":A.prerelease.length===0?A.patch++:A.prerelease.push(0),A.raw=A.format();case"":case">=":(!h||xf(A,h))&&(h=A);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${m.operator}`)}}),h&&(!s||xf(s,h))&&(s=h)}return s&&i.test(s)?s:null};yf.exports=J1});var If=F((Bw,Of)=>{var Q1=Ve(),j1=(i,r)=>{try{return new Q1(i,r).range||"*"}catch{return null}};Of.exports=j1});var hi=F((Xw,bf)=>{var k1=me(),Sf=kn(),{ANY:eE}=Sf,tE=Ve(),nE=nr(),Cf=Jn(),Lf=ui(),rE=ai(),iE=oi(),sE=(i,r,s,o)=>{i=new k1(i,o),r=new tE(r,o);let f,h,m,A,w;switch(s){case">":f=Cf,h=rE,m=Lf,A=">",w=">=";break;case"<":f=Lf,h=iE,m=Cf,A="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nE(i,r,o))return!1;for(let v=0;v<r.set.length;++v){let I=r.set[v],$=null,T=null;if(I.forEach(P=>{P.semver===eE&&(P=new Sf(">=0.0.0")),$=$||P,T=T||P,f(P.semver,$.semver,o)?$=P:m(P.semver,T.semver,o)&&(T=P)}),$.operator===A||$.operator===w||(!T.operator||T.operator===A)&&h(i,T.semver))return!1;if(T.operator===w&&m(i,T.semver))return!1}return!0};bf.exports=sE});var $f=F((zw,Tf)=>{var uE=hi(),oE=(i,r,s)=>uE(i,r,">",s);Tf.exports=oE});var Pf=F((Vw,Nf)=>{var aE=hi(),lE=(i,r,s)=>aE(i,r,"<",s);Nf.exports=lE});var Df=F((Yw,qf)=>{var Ff=Ve(),fE=(i,r,s)=>(i=new Ff(i,s),r=new Ff(r,s),i.intersects(r));qf.exports=fE});var Uf=F((Kw,Mf)=>{var cE=nr(),hE=ze();Mf.exports=(i,r,s)=>{let o=[],f=null,h=null,m=i.sort((I,$)=>hE(I,$,s));for(let I of m)cE(I,r,s)?(h=I,f||(f=I)):(h&&o.push([f,h]),h=null,f=null);f&&o.push([f,null]);let A=[];for(let[I,$]of o)I===$?A.push(I):!$&&I===m[0]?A.push("*"):$?I===m[0]?A.push(`<=${$}`):A.push(`${I} - ${$}`):A.push(`>=${I}`);let w=A.join(" || "),v=typeof r.raw=="string"?r.raw:String(r);return w.length<v.length?w:r}});var Xf=F((Zw,Bf)=>{var Hf=Ve(),pi=kn(),{ANY:js}=pi,rr=nr(),ks=ze(),pE=(i,r,s={})=>{if(i===r)return!0;i=new Hf(i,s),r=new Hf(r,s);let o=!1;e:for(let f of i.set){for(let h of r.set){let m=gE(f,h,s);if(o=o||m!==null,m)continue e}if(o)return!1}return!0},gE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===js){if(r.length===1&&r[0].semver===js)return!0;s.includePrerelease?i=[new pi(">=0.0.0-0")]:i=[new pi(">=0.0.0")]}if(r.length===1&&r[0].semver===js){if(s.includePrerelease)return!0;r=[new pi(">=0.0.0")]}let o=new Set,f,h;for(let P of i)P.operator===">"||P.operator===">="?f=Wf(f,P,s):P.operator==="<"||P.operator==="<="?h=Gf(h,P,s):o.add(P.semver);if(o.size>1)return null;let m;if(f&&h){if(m=ks(f.semver,h.semver,s),m>0)return null;if(m===0&&(f.operator!==">="||h.operator!=="<="))return null}for(let P of o){if(f&&!rr(P,String(f),s)||h&&!rr(P,String(h),s))return null;for(let ye of r)if(!rr(P,String(ye),s))return!1;return!0}let A,w,v,I,$=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;$&&$.prerelease.length===1&&h.operator==="<"&&$.prerelease[0]===0&&($=!1);for(let P of r){if(I=I||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(A=Wf(f,P,s),A===P&&A!==f)return!1}else if(f.operator===">="&&!rr(f.semver,String(P),s))return!1}if(h){if($&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===$.major&&P.semver.minor===$.minor&&P.semver.patch===$.patch&&($=!1),P.operator==="<"||P.operator==="<="){if(w=Gf(h,P,s),w===P&&w!==h)return!1}else if(h.operator==="<="&&!rr(h.semver,String(P),s))return!1}if(!P.operator&&(h||f)&&m!==0)return!1}return!(f&&v&&!h&&m!==0||h&&I&&!f&&m!==0||T||$)},Wf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},Gf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};Bf.exports=pE});var Vf=F((Jw,zf)=>{var eu=Yt();zf.exports={re:eu.re,src:eu.src,tokens:eu.t,SEMVER_SPEC_VERSION:Vn().SEMVER_SPEC_VERSION,SemVer:me(),compareIdentifiers:ti().compareIdentifiers,rcompareIdentifiers:ti().rcompareIdentifiers,parse:Kt(),valid:cl(),clean:pl(),inc:dl(),diff:Al(),major:yl(),minor:Ol(),patch:Sl(),prerelease:Ll(),compare:ze(),rcompare:Tl(),compareLoose:Nl(),compareBuild:si(),sort:Dl(),rsort:Ul(),gt:Jn(),lt:ui(),eq:ii(),neq:Xs(),gte:oi(),lte:ai(),cmp:zs(),coerce:Yl(),Comparator:kn(),Range:Ve(),satisfies:nr(),toComparators:mf(),maxSatisfying:Ef(),minSatisfying:Af(),minVersion:Rf(),validRange:If(),outside:hi(),gtr:$f(),ltr:Pf(),intersects:Df(),simplifyRange:Uf(),subset:Xf()}});var gi=F(Fe=>{"use strict";var dE=Fe&&Fe.__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]}),_E=Fe&&Fe.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),mE=Fe&&Fe.__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)&&dE(r,i,s);return _E(r,i),r},Yf=Fe&&Fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCoreVersion=void 0;var Kf=Yf(require("path")),Zf=Yf(require("fs")),tu=mE(require("@serverless-devs/core")),vE=Vf(),Jf=Kf.default.join(tu.getRootHome(),"cache","core"),nu=Kf.default.join(Jf,"package.json");function EE(){if(Zf.default.existsSync(nu)){var i=require("@serverless-devs/core/package.json").version,r=Qf();return vE.gt(r,i)?require(Jf):tu}return tu}function Qf(){return Zf.default.existsSync(nu)?require(nu).version:void 0}Fe.getCoreVersion=Qf;Fe.default=EE()});var nc=F(Ce=>{"use strict";var wE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function A(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(A,w)}v((o=o.apply(i,r||[])).next())})},AE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},jf=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var kf=jf(require("path")),ru=jf(gi()),at=ru.default.fse,di=ru.default.jsyaml,iu=ru.default.getRootHome;function xE(i){var r=tc();at.writeFileSync(r,di.dump(i))}function ec(){var i=tc();if(!at.existsSync(i))return{};try{var r=di.load(at.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function tc(){var i=kf.default.join(iu(),"set-config.yml");return at.existsSync(i)||at.createFileSync(i),i}function yE(i,r){var s=ec();s[i]=r,xE(s)}Ce.setConfig=yE;function RE(i,r){var s=ec();return s[i]||r}Ce.getConfig=RE;function OE(i){return wE(this,void 0,void 0,function(){var r,s,o,f,h,m,A;return AE(this,function(w){switch(w.label){case 0:if(r=i.filePath||"set-config.yml",s=kf.default.join(iu(),r),o=at.existsSync(s),f={},o)return[3,5];h=iu(),w.label=1;case 1:return w.trys.push([1,2,,4]),at.statSync(h),[3,4];case 2:return m=w.sent(),[4,at.mkdirSync(h)];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:try{f=di.load(at.readFileSync(s,"utf8"))||{}}catch(v){throw v}w.label=6;case 6:return i.read?[2,f]:(A=i.configKey||"",f[A]=i.data,[4,at.writeFileSync(s,di.dump(f))]);case 7:return w.sent(),[2,f]}})})}Ce.handlerProfileFile=OE});var rc=F((kw,IE)=>{IE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.2",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/help.test.ts",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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.4.7","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.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var ac=F(q=>{"use strict";var SE=q&&q.__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]}),CE=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),LE=q&&q.__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)&&SE(r,i,s);return CE(r,i),r},ir=q&&q.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function A(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(A,w)}v((o=o.apply(i,r||[])).next())})},sr=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},su=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var ic=su(require("path")),ur=su(require("fs")),Ye=Ka(),bE=su(require("os")),Ke=LE(gi()),TE=nc(),sc=rc(),_i=Ke.default.colors,$E=Ke.default.got,NE=Ke.default.getMAC,PE=Ke.default.isDocker,FE=Ke.default.isCiCdEnv,qE=Ke.default.getGlobalArgs,DE=Ke.default.getYamlContent,ME=Ke.default.getRootHome,uc=Ke.default.getCredential,UE=Ke.default.getCredentialFromEnv;q.red=_i.hex("#fd5750");q.yellow=_i.hex("#F3F99D");q.bgRed=_i.hex("#000").bgHex("#fd5750");var HE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=qE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ye.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ye.filter)(s._argsObj,function(o){return!(0,Ye.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=HE;var WE=function(){return ir(void 0,void 0,void 0,function(){var i,r,s;return sr(this,function(o){switch(o.label){case 0:return i=[],[4,DE(ic.default.join(ME(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ye.keys)(r)),[4,UE()];case 2:return s=o.sent(),s&&(i=(0,Ye.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=WE;var GE=function(i){return ir(void 0,void 0,void 0,function(){var r,s;return sr(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ye.includes)(r,i)?[4,uc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ye.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=GE;var BE=function(){return ir(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return sr(this,function(m){switch(m.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,uc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Ye.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=BE;var XE=function(i,r){r===void 0&&(r="unknow");try{var s=(0,TE.getConfig)("analysis");return s!=="enable"||PE()||FE()?void 0:$E("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0}).then(function(o){var f=(0,Ye.get)(o.body,"shorturl");f&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=Da(function(){return J(c,N+"return "+O).apply(i,p)});if(B.source=O,Ls(B))throw B;return B}function hm(e){return Q(e).toLowerCase()}function pm(e){return Q(e).toUpperCase()}function gm(e,t,n){if(e=Q(e),e&&(n||t===i))return zu(e);if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Qe(t),c=Vu(u,a),p=Yu(u,a)+1;return Tt(u,c,p).join("")}function dm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Zu(e)+1);if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Yu(u,Qe(t))+1;return Tt(u,0,a).join("")}function _m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Li,"");if(!e||!(t=Te(t)))return e;var u=Qe(e),a=Vu(u,Qe(t));return Tt(u,a).join("")}function mm(e,t){var n=fc,u=cc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?G(t.length):n,u="omission"in t?Te(t.omission):u}e=Q(e);var c=e.length;if(sn(e)){var p=Qe(e);c=p.length}if(n>=c)return e;var g=n-un(u);if(g<1)return u;var _=p?Tt(p,0,g).join(""):e.slice(0,g);if(a===i)return _+u;if(p&&(g+=_.length-g),bs(a)){if(e.slice(g).search(a)){var y,R=_;for(a.global||(a=Vi(a.source,Q(pu.exec(a))+"g")),a.lastIndex=0;y=a.exec(R);)var O=y.index;_=_.slice(0,O===i?g:O)}}else if(e.indexOf(Te(a),g)!=g){var S=_.lastIndexOf(a);S>-1&&(_=_.slice(0,S))}return _+u}function vm(e){return e=Q(e),e&&Lc.test(e)?e.replace(fu,Yh):e}var Em=hn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ns=Mo("toUpperCase");function qa(e,t,n){return e=Q(e),t=n?i:t,t===i?Gh(e)?Jh(e):Nh(e):e.match(t)||[]}var Da=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ls(n)?n:new H(n)}}),wm=dt(function(e,t){return De(t,function(n){n=ot(n),pt(e,n,Ss(e[n],e))}),e});function Am(e){var t=e==null?0:e.length,n=D();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new Me(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function xm(e){return Yp(He(e,v))}function Ps(e){return function(){return e}}function ym(e,t){return e==null||e!==e?t:e}var Rm=Ho(),Om=Ho(!0);function Se(e){return e}function Fs(e){return _o(typeof e=="function"?e:He(e,v))}function Im(e){return vo(He(e,v))}function Sm(e,t){return Eo(e,He(t,v))}var Cm=z(function(e,t){return function(n){return qn(n,e,t)}}),Lm=z(function(e,t){return function(n){return qn(e,n,t)}});function qs(e,t,n){var u=ce(t),a=Pr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=Pr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=mt(e);return De(a,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var y=this.__chain__;if(c||y){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=y,R}return _.apply(e,Rt([this.value()],arguments))})}),e}function bm(){return fe._===this&&(fe._=np),this}function Ds(){}function Tm(e){return e=G(e),z(function(t){return wo(t,e)})}var $m=gs(ne),Nm=gs(Hu),Pm=gs(Ui);function Ma(e){return As(e)?Hi(ot(e)):fg(e)}function Fm(e){return function(t){return e==null?i:Wt(e,t)}}var qm=Go(),Dm=Go(!0);function Ms(){return[]}function Us(){return!1}function Mm(){return{}}function Um(){return""}function Hm(){return!0}function Wm(e,t){if(e=G(e),e<1||e>xt)return[];var n=it,u=de(e,it);t=D(t),e-=it;for(var a=Bi(u,t);++n<e;)t(n);return a}function Gm(e){return W(e)?ne(e,ot):$e(e)?[e]:Re(ia(Q(e)))}function Bm(e){var t=++ep;return Q(e)+t}var Xm=Hr(function(e,t){return e+t},0),zm=ds("ceil"),Vm=Hr(function(e,t){return e/t},1),Ym=ds("floor");function Km(e){return e&&e.length?Nr(e,Se,es):i}function Zm(e,t){return e&&e.length?Nr(e,D(t,2),es):i}function Jm(e){return Bu(e,Se)}function Qm(e,t){return Bu(e,D(t,2))}function jm(e){return e&&e.length?Nr(e,Se,is):i}function km(e,t){return e&&e.length?Nr(e,D(t,2),is):i}var ev=Hr(function(e,t){return e*t},1),tv=ds("round"),nv=Hr(function(e,t){return e-t},0);function rv(e){return e&&e.length?Gi(e,Se):0}function iv(e,t){return e&&e.length?Gi(e,D(t,2)):0}return l.after=I0,l.ary=da,l.assign=p_,l.assignIn=La,l.assignInWith=kr,l.assignWith=g_,l.at=d_,l.before=_a,l.bind=Ss,l.bindAll=wm,l.bindKey=ma,l.castArray=M0,l.chain=ha,l.chunk=Yg,l.compact=Kg,l.concat=Zg,l.cond=Am,l.conforms=xm,l.constant=Ps,l.countBy=r0,l.create=__,l.curry=va,l.curryRight=Ea,l.debounce=wa,l.defaults=m_,l.defaultsDeep=v_,l.defer=S0,l.delay=C0,l.difference=Jg,l.differenceBy=Qg,l.differenceWith=jg,l.drop=kg,l.dropRight=ed,l.dropRightWhile=td,l.dropWhile=nd,l.fill=rd,l.filter=s0,l.flatMap=a0,l.flatMapDeep=l0,l.flatMapDepth=f0,l.flatten=aa,l.flattenDeep=id,l.flattenDepth=sd,l.flip=L0,l.flow=Rm,l.flowRight=Om,l.fromPairs=ud,l.functions=O_,l.functionsIn=I_,l.groupBy=c0,l.initial=ad,l.intersection=ld,l.intersectionBy=fd,l.intersectionWith=cd,l.invert=C_,l.invertBy=L_,l.invokeMap=p0,l.iteratee=Fs,l.keyBy=g0,l.keys=ce,l.keysIn=Ie,l.map=Yr,l.mapKeys=T_,l.mapValues=$_,l.matches=Im,l.matchesProperty=Sm,l.memoize=Zr,l.merge=N_,l.mergeWith=ba,l.method=Cm,l.methodOf=Lm,l.mixin=qs,l.negate=Jr,l.nthArg=Tm,l.omit=P_,l.omitBy=F_,l.once=b0,l.orderBy=d0,l.over=$m,l.overArgs=T0,l.overEvery=Nm,l.overSome=Pm,l.partial=Cs,l.partialRight=Aa,l.partition=_0,l.pick=q_,l.pickBy=Ta,l.property=Ma,l.propertyOf=Fm,l.pull=dd,l.pullAll=fa,l.pullAllBy=_d,l.pullAllWith=md,l.pullAt=vd,l.range=qm,l.rangeRight=Dm,l.rearg=$0,l.reject=E0,l.remove=Ed,l.rest=N0,l.reverse=Os,l.sampleSize=A0,l.set=M_,l.setWith=U_,l.shuffle=x0,l.slice=wd,l.sortBy=O0,l.sortedUniq=Sd,l.sortedUniqBy=Cd,l.split=am,l.spread=P0,l.tail=Ld,l.take=bd,l.takeRight=Td,l.takeRightWhile=$d,l.takeWhile=Nd,l.tap=Kd,l.throttle=F0,l.thru=Vr,l.toArray=Ia,l.toPairs=$a,l.toPairsIn=Na,l.toPath=Gm,l.toPlainObject=Ca,l.transform=H_,l.unary=q0,l.union=Pd,l.unionBy=Fd,l.unionWith=qd,l.uniq=Dd,l.uniqBy=Md,l.uniqWith=Ud,l.unset=W_,l.unzip=Is,l.unzipWith=ca,l.update=G_,l.updateWith=B_,l.values=dn,l.valuesIn=X_,l.without=Hd,l.words=qa,l.wrap=D0,l.xor=Wd,l.xorBy=Gd,l.xorWith=Bd,l.zip=Xd,l.zipObject=zd,l.zipObjectDeep=Vd,l.zipWith=Yd,l.entries=$a,l.entriesIn=Na,l.extend=La,l.extendWith=kr,qs(l,l),l.add=Xm,l.attempt=Da,l.camelCase=K_,l.capitalize=Pa,l.ceil=zm,l.clamp=z_,l.clone=U0,l.cloneDeep=W0,l.cloneDeepWith=G0,l.cloneWith=H0,l.conformsTo=B0,l.deburr=Fa,l.defaultTo=ym,l.divide=Vm,l.endsWith=Z_,l.eq=ke,l.escape=J_,l.escapeRegExp=Q_,l.every=i0,l.find=u0,l.findIndex=ua,l.findKey=E_,l.findLast=o0,l.findLastIndex=oa,l.findLastKey=w_,l.floor=Ym,l.forEach=pa,l.forEachRight=ga,l.forIn=A_,l.forInRight=x_,l.forOwn=y_,l.forOwnRight=R_,l.get=Ts,l.gt=X0,l.gte=z0,l.has=S_,l.hasIn=$s,l.head=la,l.identity=Se,l.includes=h0,l.indexOf=od,l.inRange=V_,l.invoke=b_,l.isArguments=Xt,l.isArray=W,l.isArrayBuffer=V0,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=Y0,l.isBuffer=$t,l.isDate=K0,l.isElement=Z0,l.isEmpty=J0,l.isEqual=Q0,l.isEqualWith=j0,l.isError=Ls,l.isFinite=k0,l.isFunction=mt,l.isInteger=xa,l.isLength=Qr,l.isMap=ya,l.isMatch=e_,l.isMatchWith=t_,l.isNaN=n_,l.isNative=r_,l.isNil=s_,l.isNull=i_,l.isNumber=Ra,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=Gn,l.isRegExp=bs,l.isSafeInteger=u_,l.isSet=Oa,l.isString=jr,l.isSymbol=$e,l.isTypedArray=gn,l.isUndefined=o_,l.isWeakMap=a_,l.isWeakSet=l_,l.join=hd,l.kebabCase=j_,l.last=Ge,l.lastIndexOf=pd,l.lowerCase=k_,l.lowerFirst=em,l.lt=f_,l.lte=c_,l.max=Km,l.maxBy=Zm,l.mean=Jm,l.meanBy=Qm,l.min=jm,l.minBy=km,l.stubArray=Ms,l.stubFalse=Us,l.stubObject=Mm,l.stubString=Um,l.stubTrue=Hm,l.multiply=ev,l.nth=gd,l.noConflict=bm,l.noop=Ds,l.now=Kr,l.pad=tm,l.padEnd=nm,l.padStart=rm,l.parseInt=im,l.random=Y_,l.reduce=m0,l.reduceRight=v0,l.repeat=sm,l.replace=um,l.result=D_,l.round=tv,l.runInContext=d,l.sample=w0,l.size=y0,l.snakeCase=om,l.some=R0,l.sortedIndex=Ad,l.sortedIndexBy=xd,l.sortedIndexOf=yd,l.sortedLastIndex=Rd,l.sortedLastIndexBy=Od,l.sortedLastIndexOf=Id,l.startCase=lm,l.startsWith=fm,l.subtract=nv,l.sum=rv,l.sumBy=iv,l.template=cm,l.times=Wm,l.toFinite=vt,l.toInteger=G,l.toLength=Sa,l.toLower=hm,l.toNumber=Be,l.toSafeInteger=h_,l.toString=Q,l.toUpper=pm,l.trim=gm,l.trimEnd=dm,l.trimStart=_m,l.truncate=mm,l.unescape=vm,l.uniqueId=Bm,l.upperCase=Em,l.upperFirst=Ns,l.each=pa,l.eachRight=ga,l.first=la,qs(l,function(){var e={};return st(l,function(t,n){j.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:le(G(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=de(n,u.__takeCount__):u.__views__.push({size:de(n,it),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==ou||n==dc;Y.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:D(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),De(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),De(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Se)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Jr(D(e)))},Y.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(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)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(it)},st(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,g=u?[1]:arguments,_=p instanceof Y,y=g[0],R=_||W(p),O=function(V){var K=a.apply(l,Rt([V],g));return u&&S?K[0]:K};R&&n&&typeof y=="function"&&y.length!=1&&(_=R=!1);var S=this.__chain__,N=!!this.__actions__.length,M=c&&!S,B=_&&!N;if(!c&&R){p=B?p:new Y(this);var U=e.apply(p,g);return U.__actions__.push({func:Vr,args:[O],thisArg:i}),new Ue(U,S)}return M&&B?e.apply(this,g):(U=this.thru(O),M?u?U.value()[0]:U.value():U)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),st(Y.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";j.call(ln,u)||(ln[u]=[]),ln[u].push({name:t,func:n})}}),ln[Ur(i,Pt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=vp,Y.prototype.reverse=Ep,Y.prototype.value=wp,l.prototype.at=Zd,l.prototype.chain=Jd,l.prototype.commit=Qd,l.prototype.next=jd,l.prototype.plant=e0,l.prototype.reverse=t0,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=n0,l.prototype.first=l.prototype.head,Ln&&(l.prototype[Ln]=kd),l},It=Qh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=It,define(function(){return It})):qt?((qt.exports=It)._=It,Fi._=It):fe._=It}).call(_n)});var Vn=F((sw,Za)=>{var ov="2.0.0",av=256,lv=Number.MAX_SAFE_INTEGER||9007199254740991,fv=16;Za.exports={SEMVER_SPEC_VERSION:ov,MAX_LENGTH:av,MAX_SAFE_INTEGER:lv,MAX_SAFE_COMPONENT_LENGTH:fv}});var Yn=F((uw,Ja)=>{var cv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Ja.exports=cv});var Yt=F((Nt,Qa)=>{var{MAX_SAFE_COMPONENT_LENGTH:Bs}=Vn(),hv=Yn();Nt=Qa.exports={};var pv=Nt.re=[],L=Nt.src=[],b=Nt.t={},gv=0,X=(i,r,s)=>{let o=gv++;hv(o,r),b[i]=o,L[o]=r,pv[o]=new RegExp(r,s?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","[0-9]+");X("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");X("MAINVERSION",`(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[b.NUMERICIDENTIFIER]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[b.NUMERICIDENTIFIERLOOSE]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[b.PRERELEASEIDENTIFIER]}(?:\\.${L[b.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[b.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[b.BUILDIDENTIFIER]}(?:\\.${L[b.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[b.MAINVERSION]}${L[b.PRERELEASE]}?${L[b.BUILD]}?`);X("FULL",`^${L[b.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[b.MAINVERSIONLOOSE]}${L[b.PRERELEASELOOSE]}?${L[b.BUILD]}?`);X("LOOSE",`^${L[b.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[b.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:${L[b.PRERELEASE]})?${L[b.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:${L[b.PRERELEASELOOSE]})?${L[b.BUILD]}?)?)?`);X("XRANGE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${Bs}})(?:\\.(\\d{1,${Bs}}))?(?:\\.(\\d{1,${Bs}}))?(?:$|[^\\d])`);X("COERCERTL",L[b.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[b.LONETILDE]}\\s+`,!0);Nt.tildeTrimReplace="$1~";X("TILDE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[b.LONECARET]}\\s+`,!0);Nt.caretTrimReplace="$1^";X("CARET",`^${L[b.LONECARET]}${L[b.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[b.LONECARET]}${L[b.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[b.GTLT]}\\s*(${L[b.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]}|${L[b.XRANGEPLAIN]})`,!0);Nt.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[b.XRANGEPLAIN]})\\s+-\\s+(${L[b.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[b.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Kn=F((ow,ja)=>{var dv=["includePrerelease","loose","rtl"],_v=i=>i?typeof i!="object"?{loose:!0}:dv.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};ja.exports=_v});var ti=F((aw,tl)=>{var ka=/^[0-9]+$/,el=(i,r)=>{let s=ka.test(i),o=ka.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},mv=(i,r)=>el(r,i);tl.exports={compareIdentifiers:el,rcompareIdentifiers:mv}});var me=F((lw,sl)=>{var ni=Yn(),{MAX_LENGTH:nl,MAX_SAFE_INTEGER:ri}=Vn(),{re:rl,t:il}=Yt(),vv=Kn(),{compareIdentifiers:Zn}=ti(),Xe=class{constructor(r,s){if(s=vv(s),r instanceof Xe){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>nl)throw new TypeError(`version is longer than ${nl} characters`);ni("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?rl[il.LOOSE]:rl[il.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>ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ri||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let h=+f;if(h>=0&&h<ri)return h}return f}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(ni("SemVer.compare",this.version,this.options,r),!(r instanceof Xe)){if(typeof r=="string"&&r===this.version)return 0;r=new Xe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Xe||(r=new Xe(r,this.options)),Zn(this.major,r.major)||Zn(this.minor,r.minor)||Zn(this.patch,r.patch)}comparePre(r){if(r instanceof Xe||(r=new Xe(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}compareBuild(r){r instanceof Xe||(r=new Xe(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};sl.exports=Xe});var Kt=F((fw,ll)=>{var{MAX_LENGTH:Ev}=Vn(),{re:ul,t:ol}=Yt(),al=me(),wv=Kn(),Av=(i,r)=>{if(r=wv(r),i instanceof al)return i;if(typeof i!="string"||i.length>Ev||!(r.loose?ul[ol.LOOSE]:ul[ol.FULL]).test(i))return null;try{return new al(i,r)}catch{return null}};ll.exports=Av});var cl=F((cw,fl)=>{var xv=Kt(),yv=(i,r)=>{let s=xv(i,r);return s?s.version:null};fl.exports=yv});var pl=F((hw,hl)=>{var Rv=Kt(),Ov=(i,r)=>{let s=Rv(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};hl.exports=Ov});var dl=F((pw,gl)=>{var Iv=me(),Sv=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new Iv(i,s).inc(r,o).version}catch{return null}};gl.exports=Sv});var ze=F((gw,ml)=>{var _l=me(),Cv=(i,r,s)=>new _l(i,s).compare(new _l(r,s));ml.exports=Cv});var ii=F((dw,vl)=>{var Lv=ze(),bv=(i,r,s)=>Lv(i,r,s)===0;vl.exports=bv});var Al=F((_w,wl)=>{var El=Kt(),Tv=ii(),$v=(i,r)=>{if(Tv(i,r))return null;{let s=El(i),o=El(r),f=s.prerelease.length||o.prerelease.length,h=f?"pre":"",m=f?"prerelease":"";for(let A in s)if((A==="major"||A==="minor"||A==="patch")&&s[A]!==o[A])return h+A;return m}};wl.exports=$v});var yl=F((mw,xl)=>{var Nv=me(),Pv=(i,r)=>new Nv(i,r).major;xl.exports=Pv});var Ol=F((vw,Rl)=>{var Fv=me(),qv=(i,r)=>new Fv(i,r).minor;Rl.exports=qv});var Sl=F((Ew,Il)=>{var Dv=me(),Mv=(i,r)=>new Dv(i,r).patch;Il.exports=Mv});var Ll=F((ww,Cl)=>{var Uv=Kt(),Hv=(i,r)=>{let s=Uv(i,r);return s&&s.prerelease.length?s.prerelease:null};Cl.exports=Hv});var Tl=F((Aw,bl)=>{var Wv=ze(),Gv=(i,r,s)=>Wv(r,i,s);bl.exports=Gv});var Nl=F((xw,$l)=>{var Bv=ze(),Xv=(i,r)=>Bv(i,r,!0);$l.exports=Xv});var si=F((yw,Fl)=>{var Pl=me(),zv=(i,r,s)=>{let o=new Pl(i,s),f=new Pl(r,s);return o.compare(f)||o.compareBuild(f)};Fl.exports=zv});var Dl=F((Rw,ql)=>{var Vv=si(),Yv=(i,r)=>i.sort((s,o)=>Vv(s,o,r));ql.exports=Yv});var Ul=F((Ow,Ml)=>{var Kv=si(),Zv=(i,r)=>i.sort((s,o)=>Kv(o,s,r));Ml.exports=Zv});var Jn=F((Iw,Hl)=>{var Jv=ze(),Qv=(i,r,s)=>Jv(i,r,s)>0;Hl.exports=Qv});var ui=F((Sw,Wl)=>{var jv=ze(),kv=(i,r,s)=>jv(i,r,s)<0;Wl.exports=kv});var Xs=F((Cw,Gl)=>{var e1=ze(),t1=(i,r,s)=>e1(i,r,s)!==0;Gl.exports=t1});var oi=F((Lw,Bl)=>{var n1=ze(),r1=(i,r,s)=>n1(i,r,s)>=0;Bl.exports=r1});var ai=F((bw,Xl)=>{var i1=ze(),s1=(i,r,s)=>i1(i,r,s)<=0;Xl.exports=s1});var zs=F((Tw,zl)=>{var u1=ii(),o1=Xs(),a1=Jn(),l1=oi(),f1=ui(),c1=ai(),h1=(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 u1(i,s,o);case"!=":return o1(i,s,o);case">":return a1(i,s,o);case">=":return l1(i,s,o);case"<":return f1(i,s,o);case"<=":return c1(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};zl.exports=h1});var Yl=F(($w,Vl)=>{var p1=me(),g1=Kt(),{re:li,t:fi}=Yt(),d1=(i,r)=>{if(i instanceof p1)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(li[fi.COERCE]);else{let o;for(;(o=li[fi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),li[fi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;li[fi.COERCERTL].lastIndex=-1}return s===null?null:g1(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};Vl.exports=d1});var Zl=F((Nw,Kl)=>{"use strict";Kl.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Ql=F((Pw,Jl)=>{"use strict";Jl.exports=Z;Z.Node=Zt;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Z.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};Z.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++}};Z.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++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)m1(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)v1(this,arguments[i]);return this.length};Z.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}};Z.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}};Z.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};Z.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};Z.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};Z.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};Z.prototype.map=function(i,r){r=r||this;for(var s=new Z,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Z.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Z,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Z.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};Z.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};Z.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};Z.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};Z.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 Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};Z.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 Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};Z.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var h=[],o=0;f&&o<r;o++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=_1(this,f,s[o]);return h};Z.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 _1(i,r,s){var o=r===i.head?new Zt(s,null,r,i):new Zt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function m1(i,r){i.tail=new Zt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function v1(i,r){i.head=new Zt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Zt(i,r,s,o){if(!(this instanceof Zt))return new Zt(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{Zl()(Z)}catch{}});var sf=F((Fw,rf)=>{"use strict";var E1=Ql(),Jt=Symbol("max"),wt=Symbol("length"),mn=Symbol("lengthCalculator"),Qn=Symbol("allowStale"),Qt=Symbol("maxAge"),At=Symbol("dispose"),jl=Symbol("noDisposeOnSet"),he=Symbol("lruList"),tt=Symbol("cache"),kl=Symbol("updateAgeOnGet"),Vs=()=>1,ef=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[Jt]=r.max||1/0,o=r.length||Vs;if(this[mn]=typeof o!="function"?Vs:o,this[Qn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Qt]=r.maxAge||0,this[At]=r.dispose,this[jl]=r.noDisposeOnSet||!1,this[kl]=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[Jt]=r||1/0,jn(this)}get max(){return this[Jt]}set allowStale(r){this[Qn]=!!r}get allowStale(){return this[Qn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Qt]=r,jn(this)}get maxAge(){return this[Qt]}set lengthCalculator(r){typeof r!="function"&&(r=Vs),r!==this[mn]&&(this[mn]=r,this[wt]=0,this[he].forEach(s=>{s.length=this[mn](s.value,s.key),this[wt]+=s.length})),jn(this)}get lengthCalculator(){return this[mn]}get length(){return this[wt]}get itemCount(){return this[he].length}rforEach(r,s){s=s||this;for(let o=this[he].tail;o!==null;){let f=o.prev;nf(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[he].head;o!==null;){let f=o.next;nf(this,r,o,s),o=f}}keys(){return this[he].toArray().map(r=>r.key)}values(){return this[he].toArray().map(r=>r.value)}reset(){this[At]&&this[he]&&this[he].length&&this[he].forEach(r=>this[At](r.key,r.value)),this[tt]=new Map,this[he]=new E1,this[wt]=0}dump(){return this[he].map(r=>ci(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[he]}set(r,s,o){if(o=o||this[Qt],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,h=this[mn](s,r);if(this[tt].has(r)){if(h>this[Jt])return vn(this,this[tt].get(r)),!1;let w=this[tt].get(r).value;return this[At]&&(this[jl]||this[At](r,w.value)),w.now=f,w.maxAge=o,w.value=s,this[wt]+=h-w.length,w.length=h,this.get(r),jn(this),!0}let m=new tf(r,s,h,f,o);return m.length>this[Jt]?(this[At]&&this[At](r,s),!1):(this[wt]+=m.length,this[he].unshift(m),this[tt].set(r,this[he].head),jn(this),!0)}has(r){if(!this[tt].has(r))return!1;let s=this[tt].get(r).value;return!ci(this,s)}get(r){return Ys(this,r,!0)}peek(r){return Ys(this,r,!1)}pop(){let r=this[he].tail;return r?(vn(this,r),r.value):null}del(r){vn(this,this[tt].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],h=f.e||0;if(h===0)this.set(f.k,f.v);else{let m=h-s;m>0&&this.set(f.k,f.v,m)}}}prune(){this[tt].forEach((r,s)=>Ys(this,s,!1))}},Ys=(i,r,s)=>{let o=i[tt].get(r);if(o){let f=o.value;if(ci(i,f)){if(vn(i,o),!i[Qn])return}else s&&(i[kl]&&(o.value.now=Date.now()),i[he].unshiftNode(o));return f.value}},ci=(i,r)=>{if(!r||!r.maxAge&&!i[Qt])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[Qt]&&s>i[Qt]},jn=i=>{if(i[wt]>i[Jt])for(let r=i[he].tail;i[wt]>i[Jt]&&r!==null;){let s=r.prev;vn(i,r),r=s}},vn=(i,r)=>{if(r){let s=r.value;i[At]&&i[At](s.key,s.value),i[wt]-=s.length,i[tt].delete(s.key),i[he].removeNode(r)}},tf=class{constructor(r,s,o,f,h){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=h||0}},nf=(i,r,s,o)=>{let f=s.value;ci(i,f)&&(vn(i,s),i[Qn]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};rf.exports=ef});var Ve=F((qw,lf)=>{var En=class{constructor(r,s){if(s=A1(s),r instanceof En)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new En(r.raw,s);if(r instanceof Ks)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(f=>!of(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&I1(f[0])){this.set=[f];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,f=uf.get(o);if(f)return f;let h=this.options.loose,m=h?ve[ge.HYPHENRANGELOOSE]:ve[ge.HYPHENRANGE];r=r.replace(m,q1(this.options.includePrerelease)),oe("hyphen replace",r),r=r.replace(ve[ge.COMPARATORTRIM],y1),oe("comparator trim",r,ve[ge.COMPARATORTRIM]),r=r.replace(ve[ge.TILDETRIM],R1),r=r.replace(ve[ge.CARETTRIM],O1),r=r.split(/\s+/).join(" ");let A=h?ve[ge.COMPARATORLOOSE]:ve[ge.COMPARATOR],w=r.split(" ").map(T=>S1(T,this.options)).join(" ").split(/\s+/).map(T=>F1(T,this.options)).filter(this.options.loose?T=>!!T.match(A):()=>!0).map(T=>new Ks(T,this.options)),v=w.length,I=new Map;for(let T of w){if(of(T))return[T];I.set(T.value,T)}I.size>1&&I.has("")&&I.delete("");let $=[...I.values()];return uf.set(o,$),$}intersects(r,s){if(!(r instanceof En))throw new TypeError("a Range is required");return this.set.some(o=>af(o,s)&&r.set.some(f=>af(f,s)&&o.every(h=>f.every(m=>h.intersects(m,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new x1(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(D1(this.set[s],r,this.options))return!0;return!1}};lf.exports=En;var w1=sf(),uf=new w1({max:1e3}),A1=Kn(),Ks=kn(),oe=Yn(),x1=me(),{re:ve,t:ge,comparatorTrimReplace:y1,tildeTrimReplace:R1,caretTrimReplace:O1}=Yt(),of=i=>i.value==="<0.0.0-0",I1=i=>i.value==="",af=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(h=>f.intersects(h,r)),f=o.pop();return s},S1=(i,r)=>(oe("comp",i,r),i=b1(i,r),oe("caret",i),i=C1(i,r),oe("tildes",i),i=$1(i,r),oe("xrange",i),i=P1(i,r),oe("stars",i),i),xe=i=>!i||i.toLowerCase()==="x"||i==="*",C1=(i,r)=>i.trim().split(/\s+/).map(s=>L1(s,r)).join(" "),L1=(i,r)=>{let s=r.loose?ve[ge.TILDELOOSE]:ve[ge.TILDE];return i.replace(s,(o,f,h,m,A)=>{oe("tilde",i,o,f,h,m,A);let w;return xe(f)?w="":xe(h)?w=`>=${f}.0.0 <${+f+1}.0.0-0`:xe(m)?w=`>=${f}.${h}.0 <${f}.${+h+1}.0-0`:A?(oe("replaceTilde pr",A),w=`>=${f}.${h}.${m}-${A} <${f}.${+h+1}.0-0`):w=`>=${f}.${h}.${m} <${f}.${+h+1}.0-0`,oe("tilde return",w),w})},b1=(i,r)=>i.trim().split(/\s+/).map(s=>T1(s,r)).join(" "),T1=(i,r)=>{oe("caret",i,r);let s=r.loose?ve[ge.CARETLOOSE]:ve[ge.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,h,m,A,w)=>{oe("caret",i,f,h,m,A,w);let v;return xe(h)?v="":xe(m)?v=`>=${h}.0.0${o} <${+h+1}.0.0-0`:xe(A)?h==="0"?v=`>=${h}.${m}.0${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.0${o} <${+h+1}.0.0-0`:w?(oe("replaceCaret pr",w),h==="0"?m==="0"?v=`>=${h}.${m}.${A}-${w} <${h}.${m}.${+A+1}-0`:v=`>=${h}.${m}.${A}-${w} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${A}-${w} <${+h+1}.0.0-0`):(oe("no pr"),h==="0"?m==="0"?v=`>=${h}.${m}.${A}${o} <${h}.${m}.${+A+1}-0`:v=`>=${h}.${m}.${A}${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${A} <${+h+1}.0.0-0`),oe("caret return",v),v})},$1=(i,r)=>(oe("replaceXRanges",i,r),i.split(/\s+/).map(s=>N1(s,r)).join(" ")),N1=(i,r)=>{i=i.trim();let s=r.loose?ve[ge.XRANGELOOSE]:ve[ge.XRANGE];return i.replace(s,(o,f,h,m,A,w)=>{oe("xRange",i,o,f,h,m,A,w);let v=xe(h),I=v||xe(m),$=I||xe(A),T=$;return f==="="&&T&&(f=""),w=r.includePrerelease?"-0":"",v?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(I&&(m=0),A=0,f===">"?(f=">=",I?(h=+h+1,m=0,A=0):(m=+m+1,A=0)):f==="<="&&(f="<",I?h=+h+1:m=+m+1),f==="<"&&(w="-0"),o=`${f+h}.${m}.${A}${w}`):I?o=`>=${h}.0.0${w} <${+h+1}.0.0-0`:$&&(o=`>=${h}.${m}.0${w} <${h}.${+m+1}.0-0`),oe("xRange return",o),o})},P1=(i,r)=>(oe("replaceStars",i,r),i.trim().replace(ve[ge.STAR],"")),F1=(i,r)=>(oe("replaceGTE0",i,r),i.trim().replace(ve[r.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),q1=i=>(r,s,o,f,h,m,A,w,v,I,$,T,P)=>(xe(o)?s="":xe(f)?s=`>=${o}.0.0${i?"-0":""}`:xe(h)?s=`>=${o}.${f}.0${i?"-0":""}`:m?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,xe(v)?w="":xe(I)?w=`<${+v+1}.0.0-0`:xe($)?w=`<${v}.${+I+1}.0-0`:T?w=`<=${v}.${I}.${$}-${T}`:i?w=`<${v}.${I}.${+$+1}-0`:w=`<=${w}`,`${s} ${w}`.trim()),D1=(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(oe(i[o].semver),i[o].semver!==Ks.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var kn=F((Dw,gf)=>{var er=Symbol("SemVer ANY"),tr=class{static get ANY(){return er}constructor(r,s){if(s=M1(s),r instanceof tr){if(r.loose===!!s.loose)return r;r=r.value}Js("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===er?this.value="":this.value=this.operator+this.semver.version,Js("comp",this)}parse(r){let s=this.options.loose?ff[cf.COMPARATORLOOSE]:ff[cf.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 hf(o[2],this.options.loose):this.semver=er}toString(){return this.value}test(r){if(Js("Comparator.test",r,this.options.loose),this.semver===er||r===er)return!0;if(typeof r=="string")try{r=new hf(r,this.options)}catch{return!1}return Zs(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof tr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new pf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new pf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),h=this.semver.version===r.semver.version,m=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),A=Zs(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),w=Zs(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||h&&m||A||w}};gf.exports=tr;var M1=Kn(),{re:ff,t:cf}=Yt(),Zs=zs(),Js=Yn(),hf=me(),pf=Ve()});var nr=F((Mw,df)=>{var U1=Ve(),H1=(i,r,s)=>{try{r=new U1(r,s)}catch{return!1}return r.test(i)};df.exports=H1});var mf=F((Uw,_f)=>{var W1=Ve(),G1=(i,r)=>new W1(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));_f.exports=G1});var Ef=F((Hw,vf)=>{var B1=me(),X1=Ve(),z1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new X1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===-1)&&(o=m,f=new B1(o,s))}),o};vf.exports=z1});var Af=F((Ww,wf)=>{var V1=me(),Y1=Ve(),K1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new Y1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===1)&&(o=m,f=new V1(o,s))}),o};wf.exports=K1});var Rf=F((Gw,yf)=>{var Qs=me(),Z1=Ve(),xf=Jn(),J1=(i,r)=>{i=new Z1(i,r);let s=new Qs("0.0.0");if(i.test(s)||(s=new Qs("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],h=null;f.forEach(m=>{let A=new Qs(m.semver.version);switch(m.operator){case">":A.prerelease.length===0?A.patch++:A.prerelease.push(0),A.raw=A.format();case"":case">=":(!h||xf(A,h))&&(h=A);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${m.operator}`)}}),h&&(!s||xf(s,h))&&(s=h)}return s&&i.test(s)?s:null};yf.exports=J1});var If=F((Bw,Of)=>{var Q1=Ve(),j1=(i,r)=>{try{return new Q1(i,r).range||"*"}catch{return null}};Of.exports=j1});var hi=F((Xw,bf)=>{var k1=me(),Sf=kn(),{ANY:eE}=Sf,tE=Ve(),nE=nr(),Cf=Jn(),Lf=ui(),rE=ai(),iE=oi(),sE=(i,r,s,o)=>{i=new k1(i,o),r=new tE(r,o);let f,h,m,A,w;switch(s){case">":f=Cf,h=rE,m=Lf,A=">",w=">=";break;case"<":f=Lf,h=iE,m=Cf,A="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nE(i,r,o))return!1;for(let v=0;v<r.set.length;++v){let I=r.set[v],$=null,T=null;if(I.forEach(P=>{P.semver===eE&&(P=new Sf(">=0.0.0")),$=$||P,T=T||P,f(P.semver,$.semver,o)?$=P:m(P.semver,T.semver,o)&&(T=P)}),$.operator===A||$.operator===w||(!T.operator||T.operator===A)&&h(i,T.semver))return!1;if(T.operator===w&&m(i,T.semver))return!1}return!0};bf.exports=sE});var $f=F((zw,Tf)=>{var uE=hi(),oE=(i,r,s)=>uE(i,r,">",s);Tf.exports=oE});var Pf=F((Vw,Nf)=>{var aE=hi(),lE=(i,r,s)=>aE(i,r,"<",s);Nf.exports=lE});var Df=F((Yw,qf)=>{var Ff=Ve(),fE=(i,r,s)=>(i=new Ff(i,s),r=new Ff(r,s),i.intersects(r));qf.exports=fE});var Uf=F((Kw,Mf)=>{var cE=nr(),hE=ze();Mf.exports=(i,r,s)=>{let o=[],f=null,h=null,m=i.sort((I,$)=>hE(I,$,s));for(let I of m)cE(I,r,s)?(h=I,f||(f=I)):(h&&o.push([f,h]),h=null,f=null);f&&o.push([f,null]);let A=[];for(let[I,$]of o)I===$?A.push(I):!$&&I===m[0]?A.push("*"):$?I===m[0]?A.push(`<=${$}`):A.push(`${I} - ${$}`):A.push(`>=${I}`);let w=A.join(" || "),v=typeof r.raw=="string"?r.raw:String(r);return w.length<v.length?w:r}});var Xf=F((Zw,Bf)=>{var Hf=Ve(),pi=kn(),{ANY:js}=pi,rr=nr(),ks=ze(),pE=(i,r,s={})=>{if(i===r)return!0;i=new Hf(i,s),r=new Hf(r,s);let o=!1;e:for(let f of i.set){for(let h of r.set){let m=gE(f,h,s);if(o=o||m!==null,m)continue e}if(o)return!1}return!0},gE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===js){if(r.length===1&&r[0].semver===js)return!0;s.includePrerelease?i=[new pi(">=0.0.0-0")]:i=[new pi(">=0.0.0")]}if(r.length===1&&r[0].semver===js){if(s.includePrerelease)return!0;r=[new pi(">=0.0.0")]}let o=new Set,f,h;for(let P of i)P.operator===">"||P.operator===">="?f=Wf(f,P,s):P.operator==="<"||P.operator==="<="?h=Gf(h,P,s):o.add(P.semver);if(o.size>1)return null;let m;if(f&&h){if(m=ks(f.semver,h.semver,s),m>0)return null;if(m===0&&(f.operator!==">="||h.operator!=="<="))return null}for(let P of o){if(f&&!rr(P,String(f),s)||h&&!rr(P,String(h),s))return null;for(let ye of r)if(!rr(P,String(ye),s))return!1;return!0}let A,w,v,I,$=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;$&&$.prerelease.length===1&&h.operator==="<"&&$.prerelease[0]===0&&($=!1);for(let P of r){if(I=I||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(A=Wf(f,P,s),A===P&&A!==f)return!1}else if(f.operator===">="&&!rr(f.semver,String(P),s))return!1}if(h){if($&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===$.major&&P.semver.minor===$.minor&&P.semver.patch===$.patch&&($=!1),P.operator==="<"||P.operator==="<="){if(w=Gf(h,P,s),w===P&&w!==h)return!1}else if(h.operator==="<="&&!rr(h.semver,String(P),s))return!1}if(!P.operator&&(h||f)&&m!==0)return!1}return!(f&&v&&!h&&m!==0||h&&I&&!f&&m!==0||T||$)},Wf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},Gf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};Bf.exports=pE});var Vf=F((Jw,zf)=>{var eu=Yt();zf.exports={re:eu.re,src:eu.src,tokens:eu.t,SEMVER_SPEC_VERSION:Vn().SEMVER_SPEC_VERSION,SemVer:me(),compareIdentifiers:ti().compareIdentifiers,rcompareIdentifiers:ti().rcompareIdentifiers,parse:Kt(),valid:cl(),clean:pl(),inc:dl(),diff:Al(),major:yl(),minor:Ol(),patch:Sl(),prerelease:Ll(),compare:ze(),rcompare:Tl(),compareLoose:Nl(),compareBuild:si(),sort:Dl(),rsort:Ul(),gt:Jn(),lt:ui(),eq:ii(),neq:Xs(),gte:oi(),lte:ai(),cmp:zs(),coerce:Yl(),Comparator:kn(),Range:Ve(),satisfies:nr(),toComparators:mf(),maxSatisfying:Ef(),minSatisfying:Af(),minVersion:Rf(),validRange:If(),outside:hi(),gtr:$f(),ltr:Pf(),intersects:Df(),simplifyRange:Uf(),subset:Xf()}});var gi=F(Fe=>{"use strict";var dE=Fe&&Fe.__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]}),_E=Fe&&Fe.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),mE=Fe&&Fe.__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)&&dE(r,i,s);return _E(r,i),r},Yf=Fe&&Fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCoreVersion=void 0;var Kf=Yf(require("path")),Zf=Yf(require("fs")),tu=mE(require("@serverless-devs/core")),vE=Vf(),Jf=Kf.default.join(tu.getRootHome(),"cache","core"),nu=Kf.default.join(Jf,"package.json");function EE(){if(Zf.default.existsSync(nu)){var i=require("@serverless-devs/core/package.json").version,r=Qf();return vE.gt(r,i)?require(Jf):tu}return tu}function Qf(){return Zf.default.existsSync(nu)?require(nu).version:void 0}Fe.getCoreVersion=Qf;Fe.default=EE()});var nc=F(Ce=>{"use strict";var wE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function A(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(A,w)}v((o=o.apply(i,r||[])).next())})},AE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},jf=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var kf=jf(require("path")),ru=jf(gi()),at=ru.default.fse,di=ru.default.jsyaml,iu=ru.default.getRootHome;function xE(i){var r=tc();at.writeFileSync(r,di.dump(i))}function ec(){var i=tc();if(!at.existsSync(i))return{};try{var r=di.load(at.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function tc(){var i=kf.default.join(iu(),"set-config.yml");return at.existsSync(i)||at.createFileSync(i),i}function yE(i,r){var s=ec();s[i]=r,xE(s)}Ce.setConfig=yE;function RE(i,r){var s=ec();return s[i]||r}Ce.getConfig=RE;function OE(i){return wE(this,void 0,void 0,function(){var r,s,o,f,h,m,A;return AE(this,function(w){switch(w.label){case 0:if(r=i.filePath||"set-config.yml",s=kf.default.join(iu(),r),o=at.existsSync(s),f={},o)return[3,5];h=iu(),w.label=1;case 1:return w.trys.push([1,2,,4]),at.statSync(h),[3,4];case 2:return m=w.sent(),[4,at.mkdirSync(h)];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:try{f=di.load(at.readFileSync(s,"utf8"))||{}}catch(v){throw v}w.label=6;case 6:return i.read?[2,f]:(A=i.configKey||"",f[A]=i.data,[4,at.writeFileSync(s,di.dump(f))]);case 7:return w.sent(),[2,f]}})})}Ce.handlerProfileFile=OE});var rc=F((kw,IE)=>{IE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.3",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/help.test.ts",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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.4.7","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.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var ac=F(q=>{"use strict";var SE=q&&q.__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]}),CE=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),LE=q&&q.__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)&&SE(r,i,s);return CE(r,i),r},ir=q&&q.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function A(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(A,w)}v((o=o.apply(i,r||[])).next())})},sr=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function A(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},su=q&&q.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q,"__esModule",{value:!0});q.emoji=q.mark=q.replaceTemplate=q.getTemplatekey=q.replaceFun=q.getLang=q.printn=q.getFolderSize=q.getVersion=q.getPid=q.aiRequest=q.getCredentialWithAll=q.getCredentialWithExisted=q.getCredentialAliasList=q.getProcessArgv=q.bgRed=q.yellow=q.red=void 0;var ic=su(require("path")),ur=su(require("fs")),Ye=Ka(),bE=su(require("os")),Ke=LE(gi()),TE=nc(),sc=rc(),_i=Ke.default.colors,$E=Ke.default.got,NE=Ke.default.getMAC,PE=Ke.default.isDocker,FE=Ke.default.isCiCdEnv,qE=Ke.default.getGlobalArgs,DE=Ke.default.getYamlContent,ME=Ke.default.getRootHome,uc=Ke.default.getCredential,UE=Ke.default.getCredentialFromEnv;q.red=_i.hex("#fd5750");q.yellow=_i.hex("#F3F99D");q.bgRed=_i.hex("#000").bgHex("#fd5750");var HE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=qE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ye.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ye.filter)(s._argsObj,function(o){return!(0,Ye.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=HE;var WE=function(){return ir(void 0,void 0,void 0,function(){var i,r,s;return sr(this,function(o){switch(o.label){case 0:return i=[],[4,DE(ic.default.join(ME(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ye.keys)(r)),[4,UE()];case 2:return s=o.sent(),s&&(i=(0,Ye.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=WE;var GE=function(i){return ir(void 0,void 0,void 0,function(){var r,s;return sr(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ye.includes)(r,i)?[4,uc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ye.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=GE;var BE=function(){return ir(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return sr(this,function(m){switch(m.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,uc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Ye.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=BE;var XE=function(i,r){r===void 0&&(r="unknow");try{var s=(0,TE.getConfig)("analysis");return s!=="enable"||PE()||FE()?void 0:$E("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0}).then(function(o){var f=(0,Ye.get)(o.body,"shorturl");f&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(_i.underline(f),`
|
|
36
36
|
`))})}catch{}};q.aiRequest=XE;var zE=function(){try{return NE().replace(/:/g,"")}catch{return"unknown"}};q.getPid=zE;function VE(){var i=(0,Ke.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(Ke.default.getRootHome()),h="".concat(sc.name,": ").concat(sc.version);return i?"".concat(h,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(h,", ").concat(f,", ").concat(r,", ").concat(s)}q.getVersion=VE;function YE(i){return ir(this,void 0,void 0,function(){function r(f){return ir(this,void 0,void 0,function(){var h,m;return sr(this,function(A){switch(A.label){case 0:return h=ur.default.lstatSync(f),typeof h!="object"?[2]:(s.set(h.ino,h.size),h.isDirectory()?(m=ur.default.readdirSync(f),typeof m!="object"?[2]:[4,Promise.all(m.map(function(w){return r(ic.default.join(f,w))}))]):[3,2]);case 1:A.sent(),A.label=2;case 2:return[2]}})})}var s,o;return sr(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(h,m){return h+m},0),[2,o]}})})}q.getFolderSize=YE;function KE(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}q.printn=KE;function ZE(){return"en"}q.getLang=ZE;function oc(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var h=o[f].replace(/{{|}}/g,""),m=(0,Ye.trim)(h.split("|")[0]);r[m]&&(i=i.replace(o[f],r[m]))}return i}q.replaceFun=oc;function JE(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var f=o.replace(/{{|}}/g,""),h=f.split("|");return{name:(0,Ye.trim)(h[0]),desc:(0,Ye.trim)(h[1])}}):[]}q.getTemplatekey=JE;function QE(i,r){i.forEach(function(s){if(ur.default.existsSync(s)){var o=ur.default.readFileSync(s,"utf-8"),f=oc(o,r);ur.default.writeFileSync(s,f,"utf-8")}})}q.replaceTemplate=QE;function jE(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}q.mark=jE;function kE(i,r){return bE.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}q.emoji=kE});var lc=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var ew=lc(Ya()),mi=ac(),tw=lc(gi()),nw=tw.default.colors,rw=`You can make some default settings for the tool here.
|
|
37
37
|
|