@serverless-devs/s 2.0.100-beta.4 → 2.0.100-beta.5

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/init/index.js CHANGED
@@ -31,7 +31,7 @@ __p += '`),se&&(M+=`' +
31
31
  function print() { __p += __j.call(arguments, '') }
32
32
  `:`;
33
33
  `)+M+`return __p
34
- }`;var te=fx(function(){return he(m,V+"return "+M).apply(t,w)});if(te.source=M,ry(te))throw te;return te}function ZV(o){return pe(o).toLowerCase()}function QV(o){return pe(o).toUpperCase()}function JV(o,s,c){if(o=pe(o),o&&(c||s===t))return gD(o);if(!o||!(s=Et(s)))return o;var d=Jt(o),v=Jt(s),m=wD(d,v),w=OD(d,v)+1;return un(d,m,w).join("")}function eG(o,s,c){if(o=pe(o),o&&(c||s===t))return o.slice(0,DD(o)+1);if(!o||!(s=Et(s)))return o;var d=Jt(o),v=OD(d,Jt(s))+1;return un(d,0,v).join("")}function tG(o,s,c){if(o=pe(o),o&&(c||s===t))return o.replace(rb,"");if(!o||!(s=Et(s)))return o;var d=Jt(o),v=wD(d,Jt(s));return un(d,v).join("")}function rG(o,s){var c=Kk,d=Xk;if(Te(s)){var v="separator"in s?s.separator:v;c="length"in s?ee(s.length):c,d="omission"in s?Et(s.omission):d}o=pe(o);var m=o.length;if(ou(o)){var w=Jt(o);m=w.length}if(c>=m)return o;var D=c-su(d);if(D<1)return d;var x=w?un(w,0,D).join(""):o.slice(0,D);if(v===t)return x+d;if(w&&(D+=x.length-D),ny(v)){if(o.slice(D).search(v)){var T,F=x;for(v.global||(v=mb(v.source,pe(US.exec(v))+"g")),v.lastIndex=0;T=v.exec(F);)var M=T.index;x=x.slice(0,M===t?D:M)}}else if(o.indexOf(Et(v),D)!=D){var N=x.lastIndexOf(v);N>-1&&(x=x.slice(0,N))}return x+d}function nG(o){return o=pe(o),o&&dW.test(o)?o.replace(BS,T4):o}var iG=pu(function(o,s,c){return o+(c?" ":"")+s.toUpperCase()}),oy=hE("toUpperCase");function lx(o,s,c){return o=pe(o),s=c?t:s,s===t?q4(o)?M4(o):y4(o):o.match(s)||[]}var fx=ne(function(o,s){try{return St(o,t,s)}catch(c){return ry(c)?c:new Z(c)}}),uG=Fr(function(o,s){return Ft(s,function(c){c=pr(c),jr(o,c,ey(o[c],o))}),o});function oG(o){var s=o==null?0:o.length,c=z();return o=s?Ce(o,function(d){if(typeof d[1]!="function")throw new It(i);return[c(d[0]),d[1]]}):[],ne(function(d){for(var v=-1;++v<s;){var m=o[v];if(St(m[0],this,d))return St(m[1],this,d)}})}function sG(o){return T7(Rt(o,f))}function sy(o){return function(){return o}}function aG(o,s){return o==null||o!==o?s:o}var cG=dE(),lG=dE(!0);function dt(o){return o}function ay(o){return VD(typeof o=="function"?o:Rt(o,f))}function fG(o){return HD(Rt(o,f))}function hG(o,s){return zD(o,Rt(s,f))}var pG=ne(function(o,s){return function(c){return Fs(c,o,s)}}),dG=ne(function(o,s){return function(c){return Fs(o,c,s)}});function cy(o,s,c){var d=$e(s),v=Yl(s,d);c==null&&!(Te(s)&&(v.length||!d.length))&&(c=s,s=o,o=this,v=Yl(s,$e(s)));var m=!(Te(c)&&"chain"in c)||!!c.chain,w=Mr(o);return Ft(v,function(D){var x=s[D];o[D]=x,w&&(o.prototype[D]=function(){var T=this.__chain__;if(m||T){var F=o(this.__wrapped__),M=F.__actions__=ft(this.__actions__);return M.push({func:x,args:arguments,thisArg:o}),F.__chain__=T,F}return x.apply(o,Zr([this.value()],arguments))})}),o}function vG(){return Ue._===this&&(Ue._=W4),this}function ly(){}function _G(o){return o=ee(o),ne(function(s){return YD(s,o)})}var bG=Wb(Ce),yG=Wb(vD),mG=Wb(hb);function hx(o){return Yb(o)?pb(pr(o)):K7(o)}function gG(o){return function(s){return o==null?t:ai(o,s)}}var wG=_E(),OG=_E(!0);function fy(){return[]}function hy(){return!1}function SG(){return{}}function DG(){return""}function EG(){return!0}function xG(o,s){if(o=ee(o),o<1||o>Kr)return[];var c=lr,d=Je(o,lr);s=z(s),o-=lr;for(var v=_b(d,s);++c<o;)s(c);return v}function qG(o){return Q(o)?Ce(o,pr):xt(o)?[o]:ft(TE(pe(o)))}function AG(o){var s=++B4;return pe(o)+s}var CG=ef(function(o,s){return o+s},0),PG=Ub("ceil"),jG=ef(function(o,s){return o/s},1),TG=Ub("floor");function FG(o){return o&&o.length?zl(o,dt,qb):t}function IG(o,s){return o&&o.length?zl(o,z(s,2),qb):t}function MG(o){return yD(o,dt)}function RG(o,s){return yD(o,z(s,2))}function LG(o){return o&&o.length?zl(o,dt,jb):t}function NG(o,s){return o&&o.length?zl(o,z(s,2),jb):t}var BG=ef(function(o,s){return o*s},1),kG=Ub("round"),WG=ef(function(o,s){return o-s},0);function UG(o){return o&&o.length?vb(o,dt):0}function $G(o,s){return o&&o.length?vb(o,z(s,2)):0}return y.after=f$,y.ary=$E,y.assign=Q$,y.assignIn=nx,y.assignInWith=df,y.assignWith=J$,y.at=eV,y.before=VE,y.bind=ey,y.bindAll=uG,y.bindKey=GE,y.castArray=S$,y.chain=kE,y.chunk=TU,y.compact=FU,y.concat=IU,y.cond=oG,y.conforms=sG,y.constant=sy,y.countBy=U9,y.create=tV,y.curry=HE,y.curryRight=zE,y.debounce=YE,y.defaults=rV,y.defaultsDeep=nV,y.defer=h$,y.delay=p$,y.difference=MU,y.differenceBy=RU,y.differenceWith=LU,y.drop=NU,y.dropRight=BU,y.dropRightWhile=kU,y.dropWhile=WU,y.fill=UU,y.filter=V9,y.flatMap=z9,y.flatMapDeep=Y9,y.flatMapDepth=K9,y.flatten=RE,y.flattenDeep=$U,y.flattenDepth=VU,y.flip=d$,y.flow=cG,y.flowRight=lG,y.fromPairs=GU,y.functions=lV,y.functionsIn=fV,y.groupBy=X9,y.initial=zU,y.intersection=YU,y.intersectionBy=KU,y.intersectionWith=XU,y.invert=pV,y.invertBy=dV,y.invokeMap=Q9,y.iteratee=ay,y.keyBy=J9,y.keys=$e,y.keysIn=pt,y.map=af,y.mapKeys=_V,y.mapValues=bV,y.matches=fG,y.matchesProperty=hG,y.memoize=lf,y.merge=yV,y.mergeWith=ix,y.method=pG,y.methodOf=dG,y.mixin=cy,y.negate=ff,y.nthArg=_G,y.omit=mV,y.omitBy=gV,y.once=v$,y.orderBy=e$,y.over=bG,y.overArgs=_$,y.overEvery=yG,y.overSome=mG,y.partial=ty,y.partialRight=KE,y.partition=t$,y.pick=wV,y.pickBy=ux,y.property=hx,y.propertyOf=gG,y.pull=e9,y.pullAll=NE,y.pullAllBy=t9,y.pullAllWith=r9,y.pullAt=n9,y.range=wG,y.rangeRight=OG,y.rearg=b$,y.reject=i$,y.remove=i9,y.rest=y$,y.reverse=Qb,y.sampleSize=o$,y.set=SV,y.setWith=DV,y.shuffle=s$,y.slice=u9,y.sortBy=l$,y.sortedUniq=h9,y.sortedUniqBy=p9,y.split=zV,y.spread=m$,y.tail=d9,y.take=v9,y.takeRight=_9,y.takeRightWhile=b9,y.takeWhile=y9,y.tap=F9,y.throttle=g$,y.thru=sf,y.toArray=ex,y.toPairs=ox,y.toPairsIn=sx,y.toPath=qG,y.toPlainObject=rx,y.transform=EV,y.unary=w$,y.union=m9,y.unionBy=g9,y.unionWith=w9,y.uniq=O9,y.uniqBy=S9,y.uniqWith=D9,y.unset=xV,y.unzip=Jb,y.unzipWith=BE,y.update=qV,y.updateWith=AV,y.values=_u,y.valuesIn=CV,y.without=E9,y.words=lx,y.wrap=O$,y.xor=x9,y.xorBy=q9,y.xorWith=A9,y.zip=C9,y.zipObject=P9,y.zipObjectDeep=j9,y.zipWith=T9,y.entries=ox,y.entriesIn=sx,y.extend=nx,y.extendWith=df,cy(y,y),y.add=CG,y.attempt=fx,y.camelCase=FV,y.capitalize=ax,y.ceil=PG,y.clamp=PV,y.clone=D$,y.cloneDeep=x$,y.cloneDeepWith=q$,y.cloneWith=E$,y.conformsTo=A$,y.deburr=cx,y.defaultTo=aG,y.divide=jG,y.endsWith=IV,y.eq=tr,y.escape=MV,y.escapeRegExp=RV,y.every=$9,y.find=G9,y.findIndex=IE,y.findKey=iV,y.findLast=H9,y.findLastIndex=ME,y.findLastKey=uV,y.floor=TG,y.forEach=WE,y.forEachRight=UE,y.forIn=oV,y.forInRight=sV,y.forOwn=aV,y.forOwnRight=cV,y.get=iy,y.gt=C$,y.gte=P$,y.has=hV,y.hasIn=uy,y.head=LE,y.identity=dt,y.includes=Z9,y.indexOf=HU,y.inRange=jV,y.invoke=vV,y.isArguments=fi,y.isArray=Q,y.isArrayBuffer=j$,y.isArrayLike=ht,y.isArrayLikeObject=Re,y.isBoolean=T$,y.isBuffer=on,y.isDate=F$,y.isElement=I$,y.isEmpty=M$,y.isEqual=R$,y.isEqualWith=L$,y.isError=ry,y.isFinite=N$,y.isFunction=Mr,y.isInteger=XE,y.isLength=hf,y.isMap=ZE,y.isMatch=B$,y.isMatchWith=k$,y.isNaN=W$,y.isNative=U$,y.isNil=V$,y.isNull=$$,y.isNumber=QE,y.isObject=Te,y.isObjectLike=Ie,y.isPlainObject=Bs,y.isRegExp=ny,y.isSafeInteger=G$,y.isSet=JE,y.isString=pf,y.isSymbol=xt,y.isTypedArray=vu,y.isUndefined=H$,y.isWeakMap=z$,y.isWeakSet=Y$,y.join=ZU,y.kebabCase=LV,y.last=Nt,y.lastIndexOf=QU,y.lowerCase=NV,y.lowerFirst=BV,y.lt=K$,y.lte=X$,y.max=FG,y.maxBy=IG,y.mean=MG,y.meanBy=RG,y.min=LG,y.minBy=NG,y.stubArray=fy,y.stubFalse=hy,y.stubObject=SG,y.stubString=DG,y.stubTrue=EG,y.multiply=BG,y.nth=JU,y.noConflict=vG,y.noop=ly,y.now=cf,y.pad=kV,y.padEnd=WV,y.padStart=UV,y.parseInt=$V,y.random=TV,y.reduce=r$,y.reduceRight=n$,y.repeat=VV,y.replace=GV,y.result=OV,y.round=kG,y.runInContext=E,y.sample=u$,y.size=a$,y.snakeCase=HV,y.some=c$,y.sortedIndex=o9,y.sortedIndexBy=s9,y.sortedIndexOf=a9,y.sortedLastIndex=c9,y.sortedLastIndexBy=l9,y.sortedLastIndexOf=f9,y.startCase=YV,y.startsWith=KV,y.subtract=WG,y.sum=UG,y.sumBy=$G,y.template=XV,y.times=xG,y.toFinite=Rr,y.toInteger=ee,y.toLength=tx,y.toLower=ZV,y.toNumber=Bt,y.toSafeInteger=Z$,y.toString=pe,y.toUpper=QV,y.trim=JV,y.trimEnd=eG,y.trimStart=tG,y.truncate=rG,y.unescape=nG,y.uniqueId=AG,y.upperCase=iG,y.upperFirst=oy,y.each=WE,y.eachRight=UE,y.first=LE,cy(y,function(){var o={};return fr(y,function(s,c){ve.call(y.prototype,c)||(o[c]=s)}),o}(),{chain:!1}),y.VERSION=e,Ft(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),Ft(["drop","take"],function(o,s){oe.prototype[o]=function(c){c=c===t?1:ke(ee(c),0);var d=this.__filtered__&&!s?new oe(this):this.clone();return d.__filtered__?d.__takeCount__=Je(c,d.__takeCount__):d.__views__.push({size:Je(c,lr),type:o+(d.__dir__<0?"Right":"")}),d},oe.prototype[o+"Right"]=function(c){return this.reverse()[o](c).reverse()}}),Ft(["filter","map","takeWhile"],function(o,s){var c=s+1,d=c==RS||c==eW;oe.prototype[o]=function(v){var m=this.clone();return m.__iteratees__.push({iteratee:z(v,3),type:c}),m.__filtered__=m.__filtered__||d,m}}),Ft(["head","last"],function(o,s){var c="take"+(s?"Right":"");oe.prototype[o]=function(){return this[c](1).value()[0]}}),Ft(["initial","tail"],function(o,s){var c="drop"+(s?"":"Right");oe.prototype[o]=function(){return this.__filtered__?new oe(this):this[c](1)}}),oe.prototype.compact=function(){return this.filter(dt)},oe.prototype.find=function(o){return this.filter(o).head()},oe.prototype.findLast=function(o){return this.reverse().find(o)},oe.prototype.invokeMap=ne(function(o,s){return typeof o=="function"?new oe(this):this.map(function(c){return Fs(c,o,s)})}),oe.prototype.reject=function(o){return this.filter(ff(z(o)))},oe.prototype.slice=function(o,s){o=ee(o);var c=this;return c.__filtered__&&(o>0||s<0)?new oe(c):(o<0?c=c.takeRight(-o):o&&(c=c.drop(o)),s!==t&&(s=ee(s),c=s<0?c.dropRight(-s):c.take(s-o)),c)},oe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},oe.prototype.toArray=function(){return this.take(lr)},fr(oe.prototype,function(o,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),d=/^(?:head|last)$/.test(s),v=y[d?"take"+(s=="last"?"Right":""):s],m=d||/^find/.test(s);!v||(y.prototype[s]=function(){var w=this.__wrapped__,D=d?[1]:arguments,x=w instanceof oe,T=D[0],F=x||Q(w),M=function(ue){var se=v.apply(y,Zr([ue],D));return d&&N?se[0]:se};F&&c&&typeof T=="function"&&T.length!=1&&(x=F=!1);var N=this.__chain__,V=!!this.__actions__.length,Y=m&&!N,te=x&&!V;if(!m&&F){w=te?w:new oe(this);var K=o.apply(w,D);return K.__actions__.push({func:sf,args:[M],thisArg:t}),new Mt(K,N)}return Y&&te?o.apply(this,D):(K=this.thru(M),Y?d?K.value()[0]:K.value():K)})}),Ft(["pop","push","shift","sort","splice","unshift"],function(o){var s=Tl[o],c=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",d=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var v=arguments;if(d&&!this.__chain__){var m=this.value();return s.apply(Q(m)?m:[],v)}return this[c](function(w){return s.apply(Q(w)?w:[],v)})}}),fr(oe.prototype,function(o,s){var c=y[s];if(c){var d=c.name+"";ve.call(lu,d)||(lu[d]=[]),lu[d].push({name:s,func:c})}}),lu[Jl(t,P).name]=[{name:"wrapper",func:t}],oe.prototype.clone=n7,oe.prototype.reverse=i7,oe.prototype.value=u7,y.prototype.at=I9,y.prototype.chain=M9,y.prototype.commit=R9,y.prototype.next=L9,y.prototype.plant=B9,y.prototype.reverse=k9,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=W9,y.prototype.first=y.prototype.head,xs&&(y.prototype[xs]=N9),y},Jr=R4();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ue._=Jr,define(function(){return Jr})):ni?((ni.exports=Jr)._=Jr,ab._=Jr):Ue._=Jr}).call(gu)});var Iy=h(vt=>{"use strict";var pY=vt&&vt.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function l(_){try{f(n.next(_))}catch(g){a(g)}}function p(_){try{f(n.throw(_))}catch(g){a(g)}}function f(_){_.done?u(_.value):i(_.value).then(l,p)}f((n=n.apply(t,e||[])).next())})},dY=vt&&vt.__generator||function(t,e){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(f){return function(_){return p([f,_])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=f[0]&2?i.return:f[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,f[1])).done)return u;switch(i=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){r.label=f[1];break}if(f[0]===6&&r.label<u[1]){r.label=u[1],u=f;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(f);break}u[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(_){f=[6,_],i=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},qA=vt&&vt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vt,"__esModule",{value:!0});vt.handlerProfileFile=vt.getConfig=vt.setConfig=void 0;var AA=qA(require("path")),Ty=qA(ir()),dr=Ty.default.fse,jf=Ty.default.jsyaml,Fy=Ty.default.getRootHome;function vY(t){var e=PA();dr.writeFileSync(e,jf.dump(t))}function CA(){var t=PA();if(!dr.existsSync(t))return{};try{var e=jf.load(dr.readFileSync(t,"utf8"))||{};return e}catch(r){throw r}}function PA(){var t=AA.default.join(Fy(),"set-config.yml");return dr.existsSync(t)||dr.createFileSync(t),t}function _Y(t,e){var r=CA();r[t]=e,vY(r)}vt.setConfig=_Y;function bY(t,e){var r=CA();return r[t]||e}vt.getConfig=bY;function yY(t){return pY(this,void 0,void 0,function(){var e,r,n,i,u,a,l;return dY(this,function(p){switch(p.label){case 0:if(e=t.filePath||"set-config.yml",r=AA.default.join(Fy(),e),n=dr.existsSync(r),i={},n)return[3,5];u=Fy(),p.label=1;case 1:return p.trys.push([1,2,,4]),dr.statSync(u),[3,4];case 2:return a=p.sent(),[4,dr.mkdirSync(u)];case 3:return p.sent(),[3,4];case 4:return[3,6];case 5:try{i=jf.load(dr.readFileSync(r,"utf8"))||{}}catch(f){throw f}p.label=6;case 6:return t.read?[2,i]:(l=t.configKey||"",i[l]=t.data,[4,dr.writeFileSync(r,jf.dump(i))]);case 7:return p.sent(),[2,i]}})})}vt.handlerProfileFile=yY});var jA=h((i6e,mY)=>{mY.exports={name:"@serverless-devs/s",version:"2.0.100-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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 Su=h(H=>{"use strict";var gY=H&&H.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),wY=H&&H.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),OY=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gY(e,t,r);return wY(e,t),e},wu=H&&H.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function l(_){try{f(n.next(_))}catch(g){a(g)}}function p(_){try{f(n.throw(_))}catch(g){a(g)}}function f(_){_.done?u(_.value):i(_.value).then(l,p)}f((n=n.apply(t,e||[])).next())})},Ou=H&&H.__generator||function(t,e){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(f){return function(_){return p([f,_])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=f[0]&2?i.return:f[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,f[1])).done)return u;switch(i=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){r.label=f[1];break}if(f[0]===6&&r.label<u[1]){r.label=u[1],u=f;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(f);break}u[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(_){f=[6,_],i=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},My=H&&H.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.getFolderSize=H.getVersion=H.getPid=H.aiRequest=H.getCredentialWithAll=H.getCredentialWithExisted=H.getCredentialAliasList=H.getProcessArgv=H.bgRed=H.yellow=H.red=void 0;var TA=My(require("path")),ra=My(require("fs")),$t=Pf(),SY=My(require("os")),Vt=OY(ir()),DY=Iy(),FA=jA(),Tf=Vt.default.colors,EY=Vt.default.got,xY=Vt.default.getMAC,qY=Vt.default.isDocker,AY=Vt.default.isCiCdEnv,CY=Vt.default.getGlobalArgs,PY=Vt.default.getYamlContent,jY=Vt.default.getRootHome,IA=Vt.default.getCredential,TY=Vt.default.getCredentialFromEnv;H.red=Tf.hex("#fd5750");H.yellow=Tf.hex("#F3F99D");H.bgRed=Tf.hex("#000").bgHex("#fd5750");var FY=function(){var t=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(t),r=CY(e);return process.argv=process.argv.slice(0,2).concat(r._argsObj),(0,$t.assign)({},r,{noHelpArgv:process.argv.slice(0,2).concat((0,$t.filter)(r._argsObj,function(n){return!(0,$t.includes)(["-h","--help"],n)}))})}catch{return{}}};H.getProcessArgv=FY;var IY=function(){return wu(void 0,void 0,void 0,function(){var t,e,r;return Ou(this,function(n){switch(n.label){case 0:return t=[],[4,PY(TA.default.join(jY(),"access.yaml"))];case 1:return e=n.sent(),e&&(t=(0,$t.keys)(e)),[4,TY()];case 2:return r=n.sent(),r&&(t=(0,$t.filter)(t,function(i){return i!==r.Alias}),t.push(r.Alias)),[2,t]}})})};H.getCredentialAliasList=IY;var MY=function(t){return wu(void 0,void 0,void 0,function(){var e,r;return Ou(this,function(n){switch(n.label){case 0:return[4,(0,H.getCredentialAliasList)()];case 1:return e=n.sent(),(0,$t.includes)(e,t)?[4,IA(t)]:[3,3];case 2:return r=n.sent(),[2,(0,$t.omit)(r,"Alias")];case 3:return[2]}})})};H.getCredentialWithExisted=MY;var RY=function(){return wu(void 0,void 0,void 0,function(){var t,e,r,n,i,u;return Ou(this,function(a){switch(a.label){case 0:return[4,(0,H.getCredentialAliasList)()];case 1:if(t=a.sent(),!(t.length>0))return[3,6];e={},r=0,n=t,a.label=2;case 2:return r<n.length?(i=n[r],[4,IA(i)]):[3,5];case 3:u=a.sent(),e[u.Alias]=(0,$t.omit)(u,"Alias"),a.label=4;case 4:return r++,[3,2];case 5:return[2,e];case 6:return[2]}})})};H.getCredentialWithAll=RY;var LY=function(t,e){return e===void 0&&(e="unknow"),wu(void 0,void 0,void 0,function(){var r,n,i,u;return Ou(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),r=(0,DY.getConfig)("analysis"),r!=="enable"?[2]:qY()||AY()?[2]:[4,EY("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(t),{timeout:2e3,json:!0})];case 1:return n=a.sent(),i=(0,$t.get)(n.body,"shorturl"),i&&console.log(`AI Tips:
34
+ }`;var te=fx(function(){return he(m,V+"return "+M).apply(t,w)});if(te.source=M,ry(te))throw te;return te}function ZV(o){return pe(o).toLowerCase()}function QV(o){return pe(o).toUpperCase()}function JV(o,s,c){if(o=pe(o),o&&(c||s===t))return gD(o);if(!o||!(s=Et(s)))return o;var d=Jt(o),v=Jt(s),m=wD(d,v),w=OD(d,v)+1;return un(d,m,w).join("")}function eG(o,s,c){if(o=pe(o),o&&(c||s===t))return o.slice(0,DD(o)+1);if(!o||!(s=Et(s)))return o;var d=Jt(o),v=OD(d,Jt(s))+1;return un(d,0,v).join("")}function tG(o,s,c){if(o=pe(o),o&&(c||s===t))return o.replace(rb,"");if(!o||!(s=Et(s)))return o;var d=Jt(o),v=wD(d,Jt(s));return un(d,v).join("")}function rG(o,s){var c=Kk,d=Xk;if(Te(s)){var v="separator"in s?s.separator:v;c="length"in s?ee(s.length):c,d="omission"in s?Et(s.omission):d}o=pe(o);var m=o.length;if(ou(o)){var w=Jt(o);m=w.length}if(c>=m)return o;var D=c-su(d);if(D<1)return d;var x=w?un(w,0,D).join(""):o.slice(0,D);if(v===t)return x+d;if(w&&(D+=x.length-D),ny(v)){if(o.slice(D).search(v)){var T,F=x;for(v.global||(v=mb(v.source,pe(US.exec(v))+"g")),v.lastIndex=0;T=v.exec(F);)var M=T.index;x=x.slice(0,M===t?D:M)}}else if(o.indexOf(Et(v),D)!=D){var N=x.lastIndexOf(v);N>-1&&(x=x.slice(0,N))}return x+d}function nG(o){return o=pe(o),o&&dW.test(o)?o.replace(BS,T4):o}var iG=pu(function(o,s,c){return o+(c?" ":"")+s.toUpperCase()}),oy=hE("toUpperCase");function lx(o,s,c){return o=pe(o),s=c?t:s,s===t?q4(o)?M4(o):y4(o):o.match(s)||[]}var fx=ne(function(o,s){try{return St(o,t,s)}catch(c){return ry(c)?c:new Z(c)}}),uG=Fr(function(o,s){return Ft(s,function(c){c=pr(c),jr(o,c,ey(o[c],o))}),o});function oG(o){var s=o==null?0:o.length,c=z();return o=s?Ce(o,function(d){if(typeof d[1]!="function")throw new It(i);return[c(d[0]),d[1]]}):[],ne(function(d){for(var v=-1;++v<s;){var m=o[v];if(St(m[0],this,d))return St(m[1],this,d)}})}function sG(o){return T7(Rt(o,f))}function sy(o){return function(){return o}}function aG(o,s){return o==null||o!==o?s:o}var cG=dE(),lG=dE(!0);function dt(o){return o}function ay(o){return VD(typeof o=="function"?o:Rt(o,f))}function fG(o){return HD(Rt(o,f))}function hG(o,s){return zD(o,Rt(s,f))}var pG=ne(function(o,s){return function(c){return Fs(c,o,s)}}),dG=ne(function(o,s){return function(c){return Fs(o,c,s)}});function cy(o,s,c){var d=$e(s),v=Yl(s,d);c==null&&!(Te(s)&&(v.length||!d.length))&&(c=s,s=o,o=this,v=Yl(s,$e(s)));var m=!(Te(c)&&"chain"in c)||!!c.chain,w=Mr(o);return Ft(v,function(D){var x=s[D];o[D]=x,w&&(o.prototype[D]=function(){var T=this.__chain__;if(m||T){var F=o(this.__wrapped__),M=F.__actions__=ft(this.__actions__);return M.push({func:x,args:arguments,thisArg:o}),F.__chain__=T,F}return x.apply(o,Zr([this.value()],arguments))})}),o}function vG(){return Ue._===this&&(Ue._=W4),this}function ly(){}function _G(o){return o=ee(o),ne(function(s){return YD(s,o)})}var bG=Wb(Ce),yG=Wb(vD),mG=Wb(hb);function hx(o){return Yb(o)?pb(pr(o)):K7(o)}function gG(o){return function(s){return o==null?t:ai(o,s)}}var wG=_E(),OG=_E(!0);function fy(){return[]}function hy(){return!1}function SG(){return{}}function DG(){return""}function EG(){return!0}function xG(o,s){if(o=ee(o),o<1||o>Kr)return[];var c=lr,d=Je(o,lr);s=z(s),o-=lr;for(var v=_b(d,s);++c<o;)s(c);return v}function qG(o){return Q(o)?Ce(o,pr):xt(o)?[o]:ft(TE(pe(o)))}function AG(o){var s=++B4;return pe(o)+s}var CG=ef(function(o,s){return o+s},0),PG=Ub("ceil"),jG=ef(function(o,s){return o/s},1),TG=Ub("floor");function FG(o){return o&&o.length?zl(o,dt,qb):t}function IG(o,s){return o&&o.length?zl(o,z(s,2),qb):t}function MG(o){return yD(o,dt)}function RG(o,s){return yD(o,z(s,2))}function LG(o){return o&&o.length?zl(o,dt,jb):t}function NG(o,s){return o&&o.length?zl(o,z(s,2),jb):t}var BG=ef(function(o,s){return o*s},1),kG=Ub("round"),WG=ef(function(o,s){return o-s},0);function UG(o){return o&&o.length?vb(o,dt):0}function $G(o,s){return o&&o.length?vb(o,z(s,2)):0}return y.after=f$,y.ary=$E,y.assign=Q$,y.assignIn=nx,y.assignInWith=df,y.assignWith=J$,y.at=eV,y.before=VE,y.bind=ey,y.bindAll=uG,y.bindKey=GE,y.castArray=S$,y.chain=kE,y.chunk=TU,y.compact=FU,y.concat=IU,y.cond=oG,y.conforms=sG,y.constant=sy,y.countBy=U9,y.create=tV,y.curry=HE,y.curryRight=zE,y.debounce=YE,y.defaults=rV,y.defaultsDeep=nV,y.defer=h$,y.delay=p$,y.difference=MU,y.differenceBy=RU,y.differenceWith=LU,y.drop=NU,y.dropRight=BU,y.dropRightWhile=kU,y.dropWhile=WU,y.fill=UU,y.filter=V9,y.flatMap=z9,y.flatMapDeep=Y9,y.flatMapDepth=K9,y.flatten=RE,y.flattenDeep=$U,y.flattenDepth=VU,y.flip=d$,y.flow=cG,y.flowRight=lG,y.fromPairs=GU,y.functions=lV,y.functionsIn=fV,y.groupBy=X9,y.initial=zU,y.intersection=YU,y.intersectionBy=KU,y.intersectionWith=XU,y.invert=pV,y.invertBy=dV,y.invokeMap=Q9,y.iteratee=ay,y.keyBy=J9,y.keys=$e,y.keysIn=pt,y.map=af,y.mapKeys=_V,y.mapValues=bV,y.matches=fG,y.matchesProperty=hG,y.memoize=lf,y.merge=yV,y.mergeWith=ix,y.method=pG,y.methodOf=dG,y.mixin=cy,y.negate=ff,y.nthArg=_G,y.omit=mV,y.omitBy=gV,y.once=v$,y.orderBy=e$,y.over=bG,y.overArgs=_$,y.overEvery=yG,y.overSome=mG,y.partial=ty,y.partialRight=KE,y.partition=t$,y.pick=wV,y.pickBy=ux,y.property=hx,y.propertyOf=gG,y.pull=e9,y.pullAll=NE,y.pullAllBy=t9,y.pullAllWith=r9,y.pullAt=n9,y.range=wG,y.rangeRight=OG,y.rearg=b$,y.reject=i$,y.remove=i9,y.rest=y$,y.reverse=Qb,y.sampleSize=o$,y.set=SV,y.setWith=DV,y.shuffle=s$,y.slice=u9,y.sortBy=l$,y.sortedUniq=h9,y.sortedUniqBy=p9,y.split=zV,y.spread=m$,y.tail=d9,y.take=v9,y.takeRight=_9,y.takeRightWhile=b9,y.takeWhile=y9,y.tap=F9,y.throttle=g$,y.thru=sf,y.toArray=ex,y.toPairs=ox,y.toPairsIn=sx,y.toPath=qG,y.toPlainObject=rx,y.transform=EV,y.unary=w$,y.union=m9,y.unionBy=g9,y.unionWith=w9,y.uniq=O9,y.uniqBy=S9,y.uniqWith=D9,y.unset=xV,y.unzip=Jb,y.unzipWith=BE,y.update=qV,y.updateWith=AV,y.values=_u,y.valuesIn=CV,y.without=E9,y.words=lx,y.wrap=O$,y.xor=x9,y.xorBy=q9,y.xorWith=A9,y.zip=C9,y.zipObject=P9,y.zipObjectDeep=j9,y.zipWith=T9,y.entries=ox,y.entriesIn=sx,y.extend=nx,y.extendWith=df,cy(y,y),y.add=CG,y.attempt=fx,y.camelCase=FV,y.capitalize=ax,y.ceil=PG,y.clamp=PV,y.clone=D$,y.cloneDeep=x$,y.cloneDeepWith=q$,y.cloneWith=E$,y.conformsTo=A$,y.deburr=cx,y.defaultTo=aG,y.divide=jG,y.endsWith=IV,y.eq=tr,y.escape=MV,y.escapeRegExp=RV,y.every=$9,y.find=G9,y.findIndex=IE,y.findKey=iV,y.findLast=H9,y.findLastIndex=ME,y.findLastKey=uV,y.floor=TG,y.forEach=WE,y.forEachRight=UE,y.forIn=oV,y.forInRight=sV,y.forOwn=aV,y.forOwnRight=cV,y.get=iy,y.gt=C$,y.gte=P$,y.has=hV,y.hasIn=uy,y.head=LE,y.identity=dt,y.includes=Z9,y.indexOf=HU,y.inRange=jV,y.invoke=vV,y.isArguments=fi,y.isArray=Q,y.isArrayBuffer=j$,y.isArrayLike=ht,y.isArrayLikeObject=Re,y.isBoolean=T$,y.isBuffer=on,y.isDate=F$,y.isElement=I$,y.isEmpty=M$,y.isEqual=R$,y.isEqualWith=L$,y.isError=ry,y.isFinite=N$,y.isFunction=Mr,y.isInteger=XE,y.isLength=hf,y.isMap=ZE,y.isMatch=B$,y.isMatchWith=k$,y.isNaN=W$,y.isNative=U$,y.isNil=V$,y.isNull=$$,y.isNumber=QE,y.isObject=Te,y.isObjectLike=Ie,y.isPlainObject=Bs,y.isRegExp=ny,y.isSafeInteger=G$,y.isSet=JE,y.isString=pf,y.isSymbol=xt,y.isTypedArray=vu,y.isUndefined=H$,y.isWeakMap=z$,y.isWeakSet=Y$,y.join=ZU,y.kebabCase=LV,y.last=Nt,y.lastIndexOf=QU,y.lowerCase=NV,y.lowerFirst=BV,y.lt=K$,y.lte=X$,y.max=FG,y.maxBy=IG,y.mean=MG,y.meanBy=RG,y.min=LG,y.minBy=NG,y.stubArray=fy,y.stubFalse=hy,y.stubObject=SG,y.stubString=DG,y.stubTrue=EG,y.multiply=BG,y.nth=JU,y.noConflict=vG,y.noop=ly,y.now=cf,y.pad=kV,y.padEnd=WV,y.padStart=UV,y.parseInt=$V,y.random=TV,y.reduce=r$,y.reduceRight=n$,y.repeat=VV,y.replace=GV,y.result=OV,y.round=kG,y.runInContext=E,y.sample=u$,y.size=a$,y.snakeCase=HV,y.some=c$,y.sortedIndex=o9,y.sortedIndexBy=s9,y.sortedIndexOf=a9,y.sortedLastIndex=c9,y.sortedLastIndexBy=l9,y.sortedLastIndexOf=f9,y.startCase=YV,y.startsWith=KV,y.subtract=WG,y.sum=UG,y.sumBy=$G,y.template=XV,y.times=xG,y.toFinite=Rr,y.toInteger=ee,y.toLength=tx,y.toLower=ZV,y.toNumber=Bt,y.toSafeInteger=Z$,y.toString=pe,y.toUpper=QV,y.trim=JV,y.trimEnd=eG,y.trimStart=tG,y.truncate=rG,y.unescape=nG,y.uniqueId=AG,y.upperCase=iG,y.upperFirst=oy,y.each=WE,y.eachRight=UE,y.first=LE,cy(y,function(){var o={};return fr(y,function(s,c){ve.call(y.prototype,c)||(o[c]=s)}),o}(),{chain:!1}),y.VERSION=e,Ft(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),Ft(["drop","take"],function(o,s){oe.prototype[o]=function(c){c=c===t?1:ke(ee(c),0);var d=this.__filtered__&&!s?new oe(this):this.clone();return d.__filtered__?d.__takeCount__=Je(c,d.__takeCount__):d.__views__.push({size:Je(c,lr),type:o+(d.__dir__<0?"Right":"")}),d},oe.prototype[o+"Right"]=function(c){return this.reverse()[o](c).reverse()}}),Ft(["filter","map","takeWhile"],function(o,s){var c=s+1,d=c==RS||c==eW;oe.prototype[o]=function(v){var m=this.clone();return m.__iteratees__.push({iteratee:z(v,3),type:c}),m.__filtered__=m.__filtered__||d,m}}),Ft(["head","last"],function(o,s){var c="take"+(s?"Right":"");oe.prototype[o]=function(){return this[c](1).value()[0]}}),Ft(["initial","tail"],function(o,s){var c="drop"+(s?"":"Right");oe.prototype[o]=function(){return this.__filtered__?new oe(this):this[c](1)}}),oe.prototype.compact=function(){return this.filter(dt)},oe.prototype.find=function(o){return this.filter(o).head()},oe.prototype.findLast=function(o){return this.reverse().find(o)},oe.prototype.invokeMap=ne(function(o,s){return typeof o=="function"?new oe(this):this.map(function(c){return Fs(c,o,s)})}),oe.prototype.reject=function(o){return this.filter(ff(z(o)))},oe.prototype.slice=function(o,s){o=ee(o);var c=this;return c.__filtered__&&(o>0||s<0)?new oe(c):(o<0?c=c.takeRight(-o):o&&(c=c.drop(o)),s!==t&&(s=ee(s),c=s<0?c.dropRight(-s):c.take(s-o)),c)},oe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},oe.prototype.toArray=function(){return this.take(lr)},fr(oe.prototype,function(o,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),d=/^(?:head|last)$/.test(s),v=y[d?"take"+(s=="last"?"Right":""):s],m=d||/^find/.test(s);!v||(y.prototype[s]=function(){var w=this.__wrapped__,D=d?[1]:arguments,x=w instanceof oe,T=D[0],F=x||Q(w),M=function(ue){var se=v.apply(y,Zr([ue],D));return d&&N?se[0]:se};F&&c&&typeof T=="function"&&T.length!=1&&(x=F=!1);var N=this.__chain__,V=!!this.__actions__.length,Y=m&&!N,te=x&&!V;if(!m&&F){w=te?w:new oe(this);var K=o.apply(w,D);return K.__actions__.push({func:sf,args:[M],thisArg:t}),new Mt(K,N)}return Y&&te?o.apply(this,D):(K=this.thru(M),Y?d?K.value()[0]:K.value():K)})}),Ft(["pop","push","shift","sort","splice","unshift"],function(o){var s=Tl[o],c=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",d=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var v=arguments;if(d&&!this.__chain__){var m=this.value();return s.apply(Q(m)?m:[],v)}return this[c](function(w){return s.apply(Q(w)?w:[],v)})}}),fr(oe.prototype,function(o,s){var c=y[s];if(c){var d=c.name+"";ve.call(lu,d)||(lu[d]=[]),lu[d].push({name:s,func:c})}}),lu[Jl(t,P).name]=[{name:"wrapper",func:t}],oe.prototype.clone=n7,oe.prototype.reverse=i7,oe.prototype.value=u7,y.prototype.at=I9,y.prototype.chain=M9,y.prototype.commit=R9,y.prototype.next=L9,y.prototype.plant=B9,y.prototype.reverse=k9,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=W9,y.prototype.first=y.prototype.head,xs&&(y.prototype[xs]=N9),y},Jr=R4();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ue._=Jr,define(function(){return Jr})):ni?((ni.exports=Jr)._=Jr,ab._=Jr):Ue._=Jr}).call(gu)});var Iy=h(vt=>{"use strict";var pY=vt&&vt.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function l(_){try{f(n.next(_))}catch(g){a(g)}}function p(_){try{f(n.throw(_))}catch(g){a(g)}}function f(_){_.done?u(_.value):i(_.value).then(l,p)}f((n=n.apply(t,e||[])).next())})},dY=vt&&vt.__generator||function(t,e){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(f){return function(_){return p([f,_])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=f[0]&2?i.return:f[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,f[1])).done)return u;switch(i=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){r.label=f[1];break}if(f[0]===6&&r.label<u[1]){r.label=u[1],u=f;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(f);break}u[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(_){f=[6,_],i=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},qA=vt&&vt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vt,"__esModule",{value:!0});vt.handlerProfileFile=vt.getConfig=vt.setConfig=void 0;var AA=qA(require("path")),Ty=qA(ir()),dr=Ty.default.fse,jf=Ty.default.jsyaml,Fy=Ty.default.getRootHome;function vY(t){var e=PA();dr.writeFileSync(e,jf.dump(t))}function CA(){var t=PA();if(!dr.existsSync(t))return{};try{var e=jf.load(dr.readFileSync(t,"utf8"))||{};return e}catch(r){throw r}}function PA(){var t=AA.default.join(Fy(),"set-config.yml");return dr.existsSync(t)||dr.createFileSync(t),t}function _Y(t,e){var r=CA();r[t]=e,vY(r)}vt.setConfig=_Y;function bY(t,e){var r=CA();return r[t]||e}vt.getConfig=bY;function yY(t){return pY(this,void 0,void 0,function(){var e,r,n,i,u,a,l;return dY(this,function(p){switch(p.label){case 0:if(e=t.filePath||"set-config.yml",r=AA.default.join(Fy(),e),n=dr.existsSync(r),i={},n)return[3,5];u=Fy(),p.label=1;case 1:return p.trys.push([1,2,,4]),dr.statSync(u),[3,4];case 2:return a=p.sent(),[4,dr.mkdirSync(u)];case 3:return p.sent(),[3,4];case 4:return[3,6];case 5:try{i=jf.load(dr.readFileSync(r,"utf8"))||{}}catch(f){throw f}p.label=6;case 6:return t.read?[2,i]:(l=t.configKey||"",i[l]=t.data,[4,dr.writeFileSync(r,jf.dump(i))]);case 7:return p.sent(),[2,i]}})})}vt.handlerProfileFile=yY});var jA=h((i6e,mY)=>{mY.exports={name:"@serverless-devs/s",version:"2.0.100-beta.5",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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 Su=h(H=>{"use strict";var gY=H&&H.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),wY=H&&H.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),OY=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gY(e,t,r);return wY(e,t),e},wu=H&&H.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function l(_){try{f(n.next(_))}catch(g){a(g)}}function p(_){try{f(n.throw(_))}catch(g){a(g)}}function f(_){_.done?u(_.value):i(_.value).then(l,p)}f((n=n.apply(t,e||[])).next())})},Ou=H&&H.__generator||function(t,e){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(f){return function(_){return p([f,_])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=f[0]&2?i.return:f[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,f[1])).done)return u;switch(i=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){r.label=f[1];break}if(f[0]===6&&r.label<u[1]){r.label=u[1],u=f;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(f);break}u[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(_){f=[6,_],i=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},My=H&&H.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.getFolderSize=H.getVersion=H.getPid=H.aiRequest=H.getCredentialWithAll=H.getCredentialWithExisted=H.getCredentialAliasList=H.getProcessArgv=H.bgRed=H.yellow=H.red=void 0;var TA=My(require("path")),ra=My(require("fs")),$t=Pf(),SY=My(require("os")),Vt=OY(ir()),DY=Iy(),FA=jA(),Tf=Vt.default.colors,EY=Vt.default.got,xY=Vt.default.getMAC,qY=Vt.default.isDocker,AY=Vt.default.isCiCdEnv,CY=Vt.default.getGlobalArgs,PY=Vt.default.getYamlContent,jY=Vt.default.getRootHome,IA=Vt.default.getCredential,TY=Vt.default.getCredentialFromEnv;H.red=Tf.hex("#fd5750");H.yellow=Tf.hex("#F3F99D");H.bgRed=Tf.hex("#000").bgHex("#fd5750");var FY=function(){var t=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(t),r=CY(e);return process.argv=process.argv.slice(0,2).concat(r._argsObj),(0,$t.assign)({},r,{noHelpArgv:process.argv.slice(0,2).concat((0,$t.filter)(r._argsObj,function(n){return!(0,$t.includes)(["-h","--help"],n)}))})}catch{return{}}};H.getProcessArgv=FY;var IY=function(){return wu(void 0,void 0,void 0,function(){var t,e,r;return Ou(this,function(n){switch(n.label){case 0:return t=[],[4,PY(TA.default.join(jY(),"access.yaml"))];case 1:return e=n.sent(),e&&(t=(0,$t.keys)(e)),[4,TY()];case 2:return r=n.sent(),r&&(t=(0,$t.filter)(t,function(i){return i!==r.Alias}),t.push(r.Alias)),[2,t]}})})};H.getCredentialAliasList=IY;var MY=function(t){return wu(void 0,void 0,void 0,function(){var e,r;return Ou(this,function(n){switch(n.label){case 0:return[4,(0,H.getCredentialAliasList)()];case 1:return e=n.sent(),(0,$t.includes)(e,t)?[4,IA(t)]:[3,3];case 2:return r=n.sent(),[2,(0,$t.omit)(r,"Alias")];case 3:return[2]}})})};H.getCredentialWithExisted=MY;var RY=function(){return wu(void 0,void 0,void 0,function(){var t,e,r,n,i,u;return Ou(this,function(a){switch(a.label){case 0:return[4,(0,H.getCredentialAliasList)()];case 1:if(t=a.sent(),!(t.length>0))return[3,6];e={},r=0,n=t,a.label=2;case 2:return r<n.length?(i=n[r],[4,IA(i)]):[3,5];case 3:u=a.sent(),e[u.Alias]=(0,$t.omit)(u,"Alias"),a.label=4;case 4:return r++,[3,2];case 5:return[2,e];case 6:return[2]}})})};H.getCredentialWithAll=RY;var LY=function(t,e){return e===void 0&&(e="unknow"),wu(void 0,void 0,void 0,function(){var r,n,i,u;return Ou(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),r=(0,DY.getConfig)("analysis"),r!=="enable"?[2]:qY()||AY()?[2]:[4,EY("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(t),{timeout:2e3,json:!0})];case 1:return n=a.sent(),i=(0,$t.get)(n.body,"shorturl"),i&&console.log(`AI Tips:
35
35
  You can try to solve the problem through: `.concat(Tf.underline(i),`
36
36
  `)),[3,3];case 2:return u=a.sent(),[3,3];case 3:return[2]}})})};H.aiRequest=LY;var NY=function(){try{return xY().replace(/:/g,"")}catch{return"unknown"}};H.getPid=NY;function BY(){var t=(0,Vt.getCoreVersion)(),e="".concat(process.platform,"-").concat(process.arch),r="node-".concat(process.version),n="core: ".concat(t),i="s-home: ".concat(Vt.default.getRootHome()),u="".concat(FA.name,": ").concat(FA.version);return t?"".concat(u,", ").concat(n,", ").concat(i,", ").concat(e,", ").concat(r):"".concat(u,", ").concat(i,", ").concat(e,", ").concat(r)}H.getVersion=BY;function kY(t){return wu(this,void 0,void 0,function(){function e(i){return wu(this,void 0,void 0,function(){var u,a;return Ou(this,function(l){switch(l.label){case 0:return u=ra.default.lstatSync(i),typeof u!="object"?[2]:(r.set(u.ino,u.size),u.isDirectory()?(a=ra.default.readdirSync(i),typeof a!="object"?[2]:[4,Promise.all(a.map(function(p){return e(TA.default.join(i,p))}))]):[3,2]);case 1:l.sent(),l.label=2;case 2:return[2]}})})}var r,n;return Ou(this,function(i){switch(i.label){case 0:return r=new Map,[4,e(t)];case 1:return i.sent(),n=Array.from(r.values()).reduce(function(u,a){return u+a},0),[2,n]}})})}H.getFolderSize=kY;function WY(t,e){e===void 0&&(e=" ");for(var r="",n=0;n<t;n++)r=r+e;return r}H.printn=WY;function UY(){return"en"}H.getLang=UY;function MA(t,e){var r=/\{\{(.*?)\}\}/g,n=t.match(r);if(n)for(var i=0;i<n.length;i++){var u=n[i].replace(/{{|}}/g,""),a=(0,$t.trim)(u.split("|")[0]);e[a]&&(t=t.replace(n[i],e[a]))}return t}H.replaceFun=MA;function $Y(t){var e=/\{\{(.*?)\}\}/g,r=t.match(e);return r?r.filter(function(n){return n}).map(function(n){var i=n.replace(/{{|}}/g,""),u=i.split("|");return{name:(0,$t.trim)(u[0]),desc:(0,$t.trim)(u[1])}}):[]}H.getTemplatekey=$Y;function VY(t,e){t.forEach(function(r){if(ra.default.existsSync(r)){var n=ra.default.readFileSync(r,"utf-8"),i=MA(n,e);ra.default.writeFileSync(r,i,"utf-8")}})}H.replaceTemplate=VY;function GY(t){if(!t)return t;var e=t.slice(-4);return"***********".concat(e)}H.mark=GY;function HY(t,e){return SY.default.platform()==="win32"?e||"\u25C6":"".concat(t," ")}H.emoji=HY});var RA=h(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var LA=h(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var BA=h(na=>{"use strict";var NA=na&&na.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(na,"__esModule",{value:!0});var zY=Su(),YY=NA(RA()),KY=NA(LA()),Ny={en:KY.default,zh:YY.default},XY=function(t){var e=(0,zY.getLang)(),r=Ny[e]?Ny[e][t]:Ny.en[t];return r||t};na.default=XY});var ua=h(Ge=>{"use strict";var ZY=Ge&&Ge.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),kA=Ge&&Ge.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ZY(e,t,r)},ia=Ge&&Ge.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.registerCommandChecker=Ge.getYamlPath=Ge.i18n=Ge.logger=void 0;var WA=ia(require("path")),QY=ia(jy()),JY=ia(ir()),UA=JY.default.fse;kA(Su(),Ge);kA(Iy(),Ge);var eK=jy();Object.defineProperty(Ge,"logger",{enumerable:!0,get:function(){return ia(eK).default}});var tK=BA();Object.defineProperty(Ge,"i18n",{enumerable:!0,get:function(){return ia(tK).default}});var rK=function(t,e){var r=WA.default.join(t,"".concat(e,".yaml")),n=WA.default.join(t,"".concat(e,".yml")),i=UA.existsSync(r)?r:UA.existsSync(n)?n:void 0;return i};Ge.getYamlPath=rK;function nK(t){t.on("command:*",function(e){var r=t.commands.map(function(n){return n.name()});r.includes(e[0])||(QY.default.error(" error: unknown command ".concat(e[0])),t.help())})}Ge.registerCommandChecker=nK});var $A=h(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.COMMAND_LIST=an.UPDATE_CHECK_INTERVAL=an.DEFAULT_REGIRSTRY=void 0;an.DEFAULT_REGIRSTRY="http://registry.devsapp.cn/simple";an.UPDATE_CHECK_INTERVAL=1e3*60*60*12;an.COMMAND_LIST=["clean","cli","component","config","init","set"]});var GA=h(Pt=>{"use strict";var cn=Pt&&Pt.__awaiter||function(t,e,r,n){function i(u){return u instanceof r?u:new r(function(a){a(u)})}return new(r||(r=Promise))(function(u,a){function l(_){try{f(n.next(_))}catch(g){a(g)}}function p(_){try{f(n.throw(_))}catch(g){a(g)}}function f(_){_.done?u(_.value):i(_.value).then(l,p)}f((n=n.apply(t,e||[])).next())})},ln=Pt&&Pt.__generator||function(t,e){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(f){return function(_){return p([f,_])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(u=f[0]&2?i.return:f[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,f[1])).done)return u;switch(i=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){r.label=f[1];break}if(f[0]===6&&r.label<u[1]){r.label=u[1],u=f;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(f);break}u[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(_){f=[6,_],i=0}finally{n=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.PROJECT_NAME_INPUT=Pt.APPLICATION_TEMPLATE=Pt.ALL_TEMPLATE=void 0;var mi=ua(),Oe=Pf(),By=[{name:"Alibaba Cloud Serverless",value:"Alibaba_Cloud_Serverless"},{name:"AWS Cloud Serverless",value:"devscomp/start-lambda"},{name:"Tencent Cloud Serverless",value:"devscomp/start-scf"},{name:"Huawei Cloud Serverless",value:"xinwuyun/start-fg"},{name:"Baidu Cloud Serverless",value:"xinwuyun/start-cfc"},{name:"Dev Template for Serverless Devs",value:"Dev_Template_for_Serverless_Devs"}],Ff=[{name:"Application Scaffolding",value:"devsapp/start-application"},{name:"Component Scaffolding",value:"devsapp/start-component"}],ky=[{name:"Quick start [Deploy a Hello World function to FaaS]",value:"quick_start"},{name:"Container example [Deploy function to FaaS with custom-container]",value:"container_example"},{name:"Web Framework [Deploy a web framework to FaaS]",value:"web_framework"},{name:"Static website [Deploy a static website]",value:"static_website"},{name:"Best practice [Experience serverless project]",value:"best_practice"}],If=[{name:"[HTTP] Node.js 12",value:"devsapp/start-fc-http-nodejs12",isDeploy:!0},{name:"[HTTP] Python3",value:"devsapp/start-fc-http-python3",isDeploy:!0},{name:"[HTTP] Java8",value:"devsapp/start-fc-http-java8"},{name:"[HTTP] PHP7",value:"devsapp/start-fc-http-php7",isDeploy:!0},{name:"[HTTP] C++ (custom)",value:"devsapp/fc-custom-cpp-http",isDeploy:!0},{name:"[Event] Node.js 12",value:"devsapp/start-fc-event-nodejs12",isDeploy:!0},{name:"[Event] Python3",value:"devsapp/start-fc-event-python3",isDeploy:!0},{name:"[Event] Java8",value:"devsapp/start-fc-event-java8"},{name:"[Event] PHP7",value:"devsapp/start-fc-event-php7",isDeploy:!0},{name:"[Event] Go (custom)",value:"devsapp/fc-custom-golang-event"},{name:"[Event] Powershell (custom)",value:"devsapp/fc-custom-powershell-event"},{name:"[Event] Typescript (custom)",value:"devsapp/fc-custom-typescript-event"},{name:"[Event] Lua (custom)",value:"devsapp/fc-custom-lua-event"},{name:"[Event] Ruby (custom)",value:"devsapp/fc-custom-ruby-event"},{name:"[Event] Rust (custom)",value:"devsapp/fc-custom-rust-event"},{name:"[Event] Dart (custom)",value:"devsapp/fc-custom-dart-event"}],Mf=[{name:"[HTTP] C++",value:"devsapp/start-fc-custom-container-http-cpp"},{name:"[HTTP] Java (Springboot)",value:"devsapp/start-fc-custom-container-http-springboot"},{name:"[HTTP] ASP.NET Core",value:"devsapp/start-fc-custom-container-http-aspdotnetcore"},{name:"[Event] Node.js 14",value:"devsapp/start-fc-custom-container-event-nodejs14",isDeploy:!0},{name:"[Event] Python3.9",value:"devsapp/start-fc-custom-container-event-python3.9"},{name:"[Event] C++",value:"devsapp/start-fc-custom-container-event-cpp"}],Rf=[{name:"Express.js",value:"devsapp/start-express",isDeploy:!0},{name:"Egg.js",value:"devsapp/start-egg",isDeploy:!0},{name:"Koa.js",value:"devsapp/start-koa"},{name:"Nuxt.js (SSR)",value:"devsapp/start-nuxt-ssr",isDeploy:!0},{name:"Next.js (SSR)",value:"devsapp/start-next-ssr",isDeploy:!0},{name:"Django",value:"devsapp/start-django",isDeploy:!0},{name:"Flask",value:"devsapp/start-flask",isDeploy:!0},{name:"Tornado",value:"devsapp/start-tornado",isDeploy:!0},{name:"Springboot",value:"devsapp/start-springboot"},{name:"ThinkPHP",value:"devsapp/start-thinkphp"},{name:"Laravel",value:"devsapp/start-laravel"}],Lf=[{name:"Vue.js",value:"devsapp/website-vue",isDeploy:!0},{name:"React.js",value:"devsapp/website-react",isDeploy:!0},{name:"Docusaurus",value:"devsapp/website-docusaurus",isDeploy:!0},{name:"Hexo",value:"devsapp/website-hexo",isDeploy:!0},{name:"Vuepress",value:"devsapp/website-vuepress",isDeploy:!0}],Nf=[{name:"[AI] PyTorch",value:"devsapp/start-pytorch",isDeploy:!0},{name:"[AI] Tensorflow",value:"devsapp/start-tensorflow",isDeploy:!0},{name:"[AI] Image Prediction",value:"devsapp/image-prediction-app",isDeploy:!0},{name:"[DB] MySQL Example",value:"devsapp/start-fc-mysql-python"},{name:"[DB] MongoDB Example",value:"devsapp/start-fc-mongodb-python"},{name:"[DB] Redis Example",value:"devsapp start-fc-redis-python"},{name:"Puppeteer Example",value:"devsapp/puppeteer-nodejs"},{name:"FFmpeg Example",value:"devsapp/ffmpeg-app"},{name:"Mall admin Example",value:"devsapp/start-fc-mall-admin"}],VA=(0,Oe.concat)(ky,If,Mf,Rf,Lf,Nf);Pt.ALL_TEMPLATE=(0,Oe.concat)(By,VA,Ff);Pt.APPLICATION_TEMPLATE=[{type:"autocomplete",name:"firstLevel",loop:!0,message:"Hello Serverless for Cloud Vendors",default:(0,Oe.first)(By).value,source:function(t,e){return cn(this,void 0,void 0,function(){return ln(this,function(r){return[2,e?Pt.ALL_TEMPLATE.filter(function(n){return(0,Oe.lowerCase)(n.name).indexOf((0,Oe.lowerCase)(e))!==-1}):By]})})}},{type:"autocomplete",name:"template",message:(0,mi.i18n)("template-tip"),default:(0,Oe.first)(Ff).value,loop:!0,when:function(t){return t.firstLevel==="Dev_Template_for_Serverless_Devs"},source:function(t,e){return cn(this,void 0,void 0,function(){return ln(this,function(r){return[2,e?Ff.filter(function(n){return(0,Oe.lowerCase)(n.name).indexOf((0,Oe.lowerCase)(e))!==-1}):Ff]})})}},{type:"autocomplete",name:"ali_template",when:function(t){return t.firstLevel==="Alibaba_Cloud_Serverless"},default:(0,Oe.first)(ky).value,message:(0,mi.i18n)("app-tip"),source:function(t,e){return cn(this,void 0,void 0,function(){return ln(this,function(r){return[2,e?VA.filter(function(n){return(0,Oe.lowerCase)(n.name).indexOf((0,Oe.lowerCase)(e))!==-1}):ky]})})}},{type:"autocomplete",name:"template",loop:!0,when:function(t){return t.ali_template==="quick_start"},message:(0,mi.i18n)("template-tip"),default:(0,Oe.first)(If).value,source:function(t,e){return cn(this,void 0,void 0,function(){return ln(this,function(r){return[2,e?If.filter(function(n){return(0,Oe.lowerCase)(n.name).indexOf((0,Oe.lowerCase)(e))!==-1}):If]})})}},{type:"autocomplete",name:"template",loop:!0,when:function(t){return t.ali_template==="container_example"},message:(0,mi.i18n)("template-tip"),default:(0,Oe.first)(Mf).value,source:function(t,e){return cn(this,void 0,void 0,function(){return ln(this,function(r){return[2,e?Mf.filter(function(n){return(0,Oe.lowerCase)(n.name).indexOf((0,Oe.lowerCase)(e))!==-1}):Mf]})})}},{type:"autocomplete",name:"template",loop:!0,when:function(t){return t.ali_template==="web_framework"},message:(0,mi.i18n)("template-tip"),default:(0,Oe.first)(Rf).value,source:function(t,e){return cn(this,void 0,void 0,function(){return ln(this,function(r){return[2,e?Rf.filter(function(n){return(0,Oe.lowerCase)(n.name).indexOf((0,Oe.lowerCase)(e))!==-1}):Rf]})})}},{type:"autocomplete",name:"template",loop:!0,when:function(t){return t.ali_template==="static_website"},message:(0,mi.i18n)("template-tip"),default:(0,Oe.first)(Lf).value,source:function(t,e){return cn(this,void 0,void 0,function(){return ln(this,function(r){return[2,e?Lf.filter(function(n){return(0,Oe.lowerCase)(n.name).indexOf((0,Oe.lowerCase)(e))!==-1}):Lf]})})}},{type:"autocomplete",name:"template",loop:!0,when:function(t){return t.ali_template==="best_practice"},message:(0,mi.i18n)("template-tip"),default:(0,Oe.first)(Nf).value,source:function(t,e){return cn(this,void 0,void 0,function(){return ln(this,function(r){return[2,e?Nf.filter(function(n){return(0,Oe.lowerCase)(n.name).indexOf((0,Oe.lowerCase)(e))!==-1}):Nf]})})}}];Pt.PROJECT_NAME_INPUT={type:"input",name:"projectName",message:"Please input your project name (init dir)",validate:function(t){return t.length>0?!0:"You must provide a project name"}}});var Uy=h((h6e,Wy)=>{"use strict";var ae=Wy.exports;Wy.exports.default=ae;var _e="\x1B[",oa="\x1B]",Du="\x07",Bf=";",HA=process.env.TERM_PROGRAM==="Apple_Terminal";ae.cursorTo=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?_e+(t+1)+"G":_e+(e+1)+";"+(t+1)+"H"};ae.cursorMove=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let r="";return t<0?r+=_e+-t+"D":t>0&&(r+=_e+t+"C"),e<0?r+=_e+-e+"A":e>0&&(r+=_e+e+"B"),r};ae.cursorUp=(t=1)=>_e+t+"A";ae.cursorDown=(t=1)=>_e+t+"B";ae.cursorForward=(t=1)=>_e+t+"C";ae.cursorBackward=(t=1)=>_e+t+"D";ae.cursorLeft=_e+"G";ae.cursorSavePosition=HA?"\x1B7":_e+"s";ae.cursorRestorePosition=HA?"\x1B8":_e+"u";ae.cursorGetPosition=_e+"6n";ae.cursorNextLine=_e+"E";ae.cursorPrevLine=_e+"F";ae.cursorHide=_e+"?25l";ae.cursorShow=_e+"?25h";ae.eraseLines=t=>{let e="";for(let r=0;r<t;r++)e+=ae.eraseLine+(r<t-1?ae.cursorUp():"");return t&&(e+=ae.cursorLeft),e};ae.eraseEndLine=_e+"K";ae.eraseStartLine=_e+"1K";ae.eraseLine=_e+"2K";ae.eraseDown=_e+"J";ae.eraseUp=_e+"1J";ae.eraseScreen=_e+"2J";ae.scrollUp=_e+"S";ae.scrollDown=_e+"T";ae.clearScreen="\x1Bc";ae.clearTerminal=process.platform==="win32"?`${ae.eraseScreen}${_e}0f`:`${ae.eraseScreen}${_e}3J${_e}H`;ae.beep=Du;ae.link=(t,e)=>[oa,"8",Bf,Bf,e,Du,t,oa,"8",Bf,Bf,Du].join("");ae.image=(t,e={})=>{let r=`${oa}1337;File=inline=1`;return e.width&&(r+=`;width=${e.width}`),e.height&&(r+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+t.toString("base64")+Du};ae.iTerm={setCwd:(t=process.cwd())=>`${oa}50;CurrentDir=${t}${Du}`,annotation:(t,e={})=>{let r=`${oa}1337;`,n=typeof e.x!="undefined",i=typeof e.y!="undefined";if((n||i)&&!(n&&i&&typeof e.length!="undefined"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replace(/\|/g,""),r+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?r+=(n?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):r+=t,r+Du}}});var YA=h((p6e,zA)=>{"use strict";zA.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var $y=h((d6e,XA)=>{var sa=YA(),KA={};for(let t of Object.keys(sa))KA[sa[t]]=t;var $={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};XA.exports=$;for(let t of Object.keys($)){if(!("channels"in $[t]))throw new Error("missing channels property: "+t);if(!("labels"in $[t]))throw new Error("missing channel labels property: "+t);if($[t].labels.length!==$[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=$[t];delete $[t].channels,delete $[t].labels,Object.defineProperty($[t],"channels",{value:e}),Object.defineProperty($[t],"labels",{value:r})}$.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),u=Math.max(e,r,n),a=u-i,l,p;u===i?l=0:e===u?l=(r-n)/a:r===u?l=2+(n-e)/a:n===u&&(l=4+(e-r)/a),l=Math.min(l*60,360),l<0&&(l+=360);let f=(i+u)/2;return u===i?p=0:f<=.5?p=a/(u+i):p=a/(2-u-i),[l,p*100,f*100]};$.rgb.hsv=function(t){let e,r,n,i,u,a=t[0]/255,l=t[1]/255,p=t[2]/255,f=Math.max(a,l,p),_=f-Math.min(a,l,p),g=function(S){return(f-S)/6/_+1/2};return _===0?(i=0,u=0):(u=_/f,e=g(a),r=g(l),n=g(p),a===f?i=n-r:l===f?i=1/3+e-n:p===f&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,u*100,f*100]};$.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=$.rgb.hsl(t)[0],u=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,u*100,n*100]};$.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),u=(1-e-i)/(1-i)||0,a=(1-r-i)/(1-i)||0,l=(1-n-i)/(1-i)||0;return[u*100,a*100,l*100,i*100]};function iK(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}$.rgb.keyword=function(t){let e=KA[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(sa)){let u=sa[i],a=iK(t,u);a<r&&(r=a,n=i)}return n};$.keyword.rgb=function(t){return sa[t]};$.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,u=e*.2126+r*.7152+n*.0722,a=e*.0193+r*.1192+n*.9505;return[i*100,u*100,a*100]};$.rgb.lab=function(t){let e=$.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let u=116*n-16,a=500*(r-n),l=200*(n-i);return[u,a,l]};$.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,u,a;if(r===0)return a=n*255,[a,a,a];n<.5?i=n*(1+r):i=n+r-n*r;let l=2*n-i,p=[0,0,0];for(let f=0;f<3;f++)u=e+1/3*-(f-1),u<0&&u++,u>1&&u--,6*u<1?a=l+(i-l)*6*u:2*u<1?a=i:3*u<2?a=l+(i-l)*(2/3-u)*6:a=l,p[f]=a*255;return p};$.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,u=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=u<=1?u:2-u;let a=(n+r)/2,l=n===0?2*i/(u+i):2*r/(n+r);return[e,l*100,a*100]};$.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,u=e-Math.floor(e),a=255*n*(1-r),l=255*n*(1-r*u),p=255*n*(1-r*(1-u));switch(n*=255,i){case 0:return[n,p,a];case 1:return[l,n,a];case 2:return[a,n,p];case 3:return[a,l,n];case 4:return[p,a,n];case 5:return[n,a,l]}};$.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),u,a;a=(2-r)*n;let l=(2-r)*i;return u=r*i,u/=l<=1?l:2-l,u=u||0,a/=2,[e,u*100,a*100]};$.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,u;i>1&&(r/=i,n/=i);let a=Math.floor(6*e),l=1-n;u=6*e-a,(a&1)!==0&&(u=1-u);let p=r+u*(l-r),f,_,g;switch(a){default:case 6:case 0:f=l,_=p,g=r;break;case 1:f=p,_=l,g=r;break;case 2:f=r,_=l,g=p;break;case 3:f=r,_=p,g=l;break;case 4:f=p,_=r,g=l;break;case 5:f=l,_=r,g=p;break}return[f*255,_*255,g*255]};$.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,u=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),l=1-Math.min(1,n*(1-i)+i);return[u*255,a*255,l*255]};$.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,u,a;return i=e*3.2406+r*-1.5372+n*-.4986,u=e*-.9689+r*1.8758+n*.0415,a=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),[i*255,u*255,a*255]};$.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,u=500*(e-r),a=200*(r-n);return[i,u,a]};$.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,u,a;u=(e+16)/116,i=r/500+u,a=u-n/200;let l=u**3,p=i**3,f=a**3;return u=l>.008856?l:(u-16/116)/7.787,i=p>.008856?p:(i-16/116)/7.787,a=f>.008856?f:(a-16/116)/7.787,i*=95.047,u*=100,a*=108.883,[i,u,a]};$.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let a=Math.sqrt(r*r+n*n);return[e,a,i]};$.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,u=r*Math.cos(i),a=r*Math.sin(i);return[e,u,a]};$.rgb.ansi16=function(t,e=null){let[r,n,i]=t,u=e===null?$.rgb.hsv(t)[2]:e;if(u=Math.round(u/50),u===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return u===2&&(a+=60),a};$.hsv.ansi16=function(t){return $.rgb.ansi16($.hsv.rgb(t),t[2])};$.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};$.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,u=(e>>2&1)*r*255;return[n,i,u]};$.ansi256.rgb=function(t){if(t>=232){let u=(t-232)*10+8;return[u,u,u]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};$.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};$.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(l=>l+l).join(""));let n=parseInt(r,16),i=n>>16&255,u=n>>8&255,a=n&255;return[i,u,a]};$.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),u=Math.min(Math.min(e,r),n),a=i-u,l,p;return a<1?l=u/(1-a):l=0,a<=0?p=0:i===e?p=(r-n)/a%6:i===r?p=2+(n-e)/a:p=4+(e-r)/a,p/=6,p%=1,[p*360,a*100,l*100]};$.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};$.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};$.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],u=e%1*6,a=u%1,l=1-a,p=0;switch(Math.floor(u)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return p=(1-r)*n,[(r*i[0]+p)*255,(r*i[1]+p)*255,(r*i[2]+p)*255]};$.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};$.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};$.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};$.hwb.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,u=0;return i<1&&(u=(n-i)/(1-i)),[t[0],i*100,u*100]};$.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};$.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};$.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};$.gray.hsl=function(t){return[0,0,t[0]]};$.gray.hsv=$.gray.hsl;$.gray.hwb=function(t){return[0,100,t[0]]};$.gray.cmyk=function(t){return[0,0,0,t[0]]};$.gray.lab=function(t){return[t[0],0,0]};$.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};$.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var QA=h((v6e,ZA)=>{var kf=$y();function uK(){let t={},e=Object.keys(kf);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function oK(t){let e=uK(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(kf[n]);for(let u=i.length,a=0;a<u;a++){let l=i[a],p=e[l];p.distance===-1&&(p.distance=e[n].distance+1,p.parent=n,r.unshift(l))}}return e}function sK(t,e){return function(r){return e(t(r))}}function aK(t,e){let r=[e[t].parent,t],n=kf[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=sK(kf[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}ZA.exports=function(t){let e=oK(t),r={},n=Object.keys(e);for(let i=n.length,u=0;u<i;u++){let a=n[u];e[a].parent!==null&&(r[a]=aK(a,e))}return r}});var eC=h((_6e,JA)=>{var Vy=$y(),cK=QA(),Eu={},lK=Object.keys(Vy);function fK(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function hK(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let u=i.length,a=0;a<u;a++)i[a]=Math.round(i[a]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}lK.forEach(t=>{Eu[t]={},Object.defineProperty(Eu[t],"channels",{value:Vy[t].channels}),Object.defineProperty(Eu[t],"labels",{value:Vy[t].labels});let e=cK(t);Object.keys(e).forEach(n=>{let i=e[n];Eu[t][n]=hK(i),Eu[t][n].raw=fK(i)})});JA.exports=Eu});var oC=h((b6e,uC)=>{"use strict";var tC=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,rC=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},nC=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Wf=t=>t,iC=(t,e,r)=>[t,e,r],xu=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Gy,qu=(t,e,r,n)=>{Gy===void 0&&(Gy=eC());let i=n?10:0,u={};for(let[a,l]of Object.entries(Gy)){let p=a==="ansi16"?"ansi":a;a===e?u[p]=t(r,i):typeof l=="object"&&(u[p]=t(l[e],i))}return u};function pK(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,u]of Object.entries(n))e[i]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},n[i]=e[i],t.set(u[0],u[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",xu(e.color,"ansi",()=>qu(tC,"ansi16",Wf,!1)),xu(e.color,"ansi256",()=>qu(rC,"ansi256",Wf,!1)),xu(e.color,"ansi16m",()=>qu(nC,"rgb",iC,!1)),xu(e.bgColor,"ansi",()=>qu(tC,"ansi16",Wf,!0)),xu(e.bgColor,"ansi256",()=>qu(rC,"ansi256",Wf,!0)),xu(e.bgColor,"ansi16m",()=>qu(nC,"rgb",iC,!0)),e}Object.defineProperty(uC,"exports",{enumerable:!0,get:pK})});var aC=h((y6e,sC)=>{"use strict";sC.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var fC=h((m6e,lC)=>{"use strict";var dK=require("os"),cC=require("tty"),Gt=aC(),{env:He}=process,fn;Gt("no-color")||Gt("no-colors")||Gt("color=false")||Gt("color=never")?fn=0:(Gt("color")||Gt("colors")||Gt("color=true")||Gt("color=always"))&&(fn=1);"FORCE_COLOR"in He&&(He.FORCE_COLOR==="true"?fn=1:He.FORCE_COLOR==="false"?fn=0:fn=He.FORCE_COLOR.length===0?1:Math.min(parseInt(He.FORCE_COLOR,10),3));function Hy(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function zy(t,e){if(fn===0)return 0;if(Gt("color=16m")||Gt("color=full")||Gt("color=truecolor"))return 3;if(Gt("color=256"))return 2;if(t&&!e&&fn===void 0)return 0;let r=fn||0;if(He.TERM==="dumb")return r;if(process.platform==="win32"){let n=dK.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in He)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in He)||He.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in He)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(He.TEAMCITY_VERSION)?1:0;if(He.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in He){let n=parseInt((He.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(He.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(He.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(He.TERM)||"COLORTERM"in He?1:r}function vK(t){let e=zy(t,t&&t.isTTY);return Hy(e)}lC.exports={supportsColor:vK,stdout:Hy(zy(!0,cC.isatty(1))),stderr:Hy(zy(!0,cC.isatty(2)))}});var pC=h((g6e,hC)=>{"use strict";var _K=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,u=0,a="";do a+=t.substr(u,n-u)+e+r,u=n+i,n=t.indexOf(e,u);while(n!==-1);return a+=t.substr(u),a},bK=(t,e,r,n)=>{let i=0,u="";do{let a=t[n-1]==="\r";u+=t.substr(i,(a?n-1:n)-i)+e+(a?`\r
37
37
  `:`
@@ -31,7 +31,7 @@ __p += '`),Y&&(S+=`' +
31
31
  function print() { __p += __j.call(arguments, '') }
32
32
  `:`;
33
33
  `)+S+`return __p
34
- }`;var B=cl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ks(B))throw B;return B}function im(e){return J(e).toLowerCase()}function sm(e){return J(e).toUpperCase()}function um(e,t,n){if(e=J(e),e&&(n||t===i))return yo(e);if(!e||!(t=De(t)))return e;var u=Qe(e),l=Qe(t),h=wo(u,l),g=xo(u,l)+1;return qt(u,h,g).join("")}function om(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,Oo(e)+1);if(!e||!(t=De(t)))return e;var u=Qe(e),l=xo(u,Qe(t))+1;return qt(u,0,l).join("")}function am(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(Ki,"");if(!e||!(t=De(t)))return e;var u=Qe(e),l=wo(u,Qe(t));return qt(u,l).join("")}function lm(e,t){var n=nh,u=rh;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?De(t.omission):u}e=J(e);var h=e.length;if(hn(e)){var g=Qe(e);h=g.length}if(n>=h)return e;var _=n-pn(u);if(_<1)return u;var m=g?qt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Zs(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=hs(l.source,J(Gu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(De(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function fm(e){return e=J(e),e&&wh.test(e)?e.replace(Mu,Hp):e}var cm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=ha("toUpperCase");function fl(e,t,n){return e=J(e),t=n?i:t,t===i?Pp(e)?Up(e):bp(e):e.match(t)||[]}var cl=X(function(e,t){try{return Te(e,i,t)}catch(n){return Ks(n)?n:new W(n)}}),hm=yt(function(e,t){return He(t,function(n){n=lt(n),mt(e,n,Vs(e[n],e))}),e});function pm(e){var t=e==null?0:e.length,n=F();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(Te(h[0],this,u))return Te(h[1],this,u)}})}function gm(e){return Hg(Ue(e,p))}function eu(e){return function(){return e}}function dm(e,t){return e==null||e!==e?t:e}var _m=ga(),vm=ga(!0);function Ie(e){return e}function tu(e){return jo(typeof e=="function"?e:Ue(e,p))}function mm(e){return zo(Ue(e,p))}function Em(e,t){return Vo(e,Ue(t,p))}var ym=X(function(e,t){return function(n){return kn(n,e,t)}}),wm=X(function(e,t){return function(n){return kn(e,n,t)}});function nu(e,t,n){var u=he(t),l=kr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=kr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=xt(e);return He(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,It([this.value()],arguments))})}),e}function xm(){return ce._===this&&(ce._=Yp),this}function ru(){}function Am(e){return e=U(e),X(function(t){return Yo(t,e)})}var Om=Ps(re),bm=Ps(go),Sm=Ps(ss);function hl(e){return Gs(e)?us(lt(e)):nd(e)}function Rm(e){return function(t){return e==null?i:Vt(e,t)}}var Cm=_a(),Im=_a(!0);function iu(){return[]}function su(){return!1}function Lm(){return{}}function Tm(){return""}function $m(){return!0}function Dm(e,t){if(e=U(e),e<1||e>Rt)return[];var n=ut,u=ve(e,ut);t=F(t),e-=ut;for(var l=ls(u,t);++n<e;)t(n);return l}function Pm(e){return G(e)?re(e,lt):Pe(e)?[e]:Se($a(J(e)))}function Nm(e){var t=++zp;return J(e)+t}var qm=ii(function(e,t){return e+t},0),Fm=Ns("ceil"),Mm=ii(function(e,t){return e/t},1),Hm=Ns("floor");function Wm(e){return e&&e.length?Jr(e,Ie,ys):i}function Gm(e,t){return e&&e.length?Jr(e,F(t,2),ys):i}function Um(e){return mo(e,Ie)}function Bm(e,t){return mo(e,F(t,2))}function jm(e){return e&&e.length?Jr(e,Ie,Os):i}function Xm(e,t){return e&&e.length?Jr(e,F(t,2),Os):i}var zm=ii(function(e,t){return e*t},1),Vm=Ns("round"),Ym=ii(function(e,t){return e-t},0);function Km(e){return e&&e.length?as(e,Ie):0}function Zm(e,t){return e&&e.length?as(e,F(t,2)):0}return c.after=m0,c.ary=Ba,c.assign=sv,c.assignIn=rl,c.assignInWith=vi,c.assignWith=uv,c.at=ov,c.before=ja,c.bind=Vs,c.bindAll=hm,c.bindKey=Xa,c.castArray=L0,c.chain=Wa,c.chunk=Hd,c.compact=Wd,c.concat=Gd,c.cond=pm,c.conforms=gm,c.constant=eu,c.countBy=K_,c.create=av,c.curry=za,c.curryRight=Va,c.debounce=Ya,c.defaults=lv,c.defaultsDeep=fv,c.defer=E0,c.delay=y0,c.difference=Ud,c.differenceBy=Bd,c.differenceWith=jd,c.drop=Xd,c.dropRight=zd,c.dropRightWhile=Vd,c.dropWhile=Yd,c.fill=Kd,c.filter=J_,c.flatMap=e0,c.flatMapDeep=t0,c.flatMapDepth=n0,c.flatten=qa,c.flattenDeep=Zd,c.flattenDepth=Jd,c.flip=w0,c.flow=_m,c.flowRight=vm,c.fromPairs=kd,c.functions=vv,c.functionsIn=mv,c.groupBy=r0,c.initial=e_,c.intersection=t_,c.intersectionBy=n_,c.intersectionWith=r_,c.invert=yv,c.invertBy=wv,c.invokeMap=s0,c.iteratee=tu,c.keyBy=u0,c.keys=he,c.keysIn=Ce,c.map=ci,c.mapKeys=Av,c.mapValues=Ov,c.matches=mm,c.matchesProperty=Em,c.memoize=pi,c.merge=bv,c.mergeWith=il,c.method=ym,c.methodOf=wm,c.mixin=nu,c.negate=gi,c.nthArg=Am,c.omit=Sv,c.omitBy=Rv,c.once=x0,c.orderBy=o0,c.over=Om,c.overArgs=A0,c.overEvery=bm,c.overSome=Sm,c.partial=Ys,c.partialRight=Ka,c.partition=a0,c.pick=Cv,c.pickBy=sl,c.property=hl,c.propertyOf=Rm,c.pull=o_,c.pullAll=Ma,c.pullAllBy=a_,c.pullAllWith=l_,c.pullAt=f_,c.range=Cm,c.rangeRight=Im,c.rearg=O0,c.reject=c0,c.remove=c_,c.rest=b0,c.reverse=Xs,c.sampleSize=p0,c.set=Lv,c.setWith=Tv,c.shuffle=g0,c.slice=h_,c.sortBy=v0,c.sortedUniq=E_,c.sortedUniqBy=y_,c.split=em,c.spread=S0,c.tail=w_,c.take=x_,c.takeRight=A_,c.takeRightWhile=O_,c.takeWhile=b_,c.tap=W_,c.throttle=R0,c.thru=fi,c.toArray=el,c.toPairs=ul,c.toPairsIn=ol,c.toPath=Pm,c.toPlainObject=nl,c.transform=$v,c.unary=C0,c.union=S_,c.unionBy=R_,c.unionWith=C_,c.uniq=I_,c.uniqBy=L_,c.uniqWith=T_,c.unset=Dv,c.unzip=zs,c.unzipWith=Ha,c.update=Pv,c.updateWith=Nv,c.values=xn,c.valuesIn=qv,c.without=$_,c.words=fl,c.wrap=I0,c.xor=D_,c.xorBy=P_,c.xorWith=N_,c.zip=q_,c.zipObject=F_,c.zipObjectDeep=M_,c.zipWith=H_,c.entries=ul,c.entriesIn=ol,c.extend=rl,c.extendWith=vi,nu(c,c),c.add=qm,c.attempt=cl,c.camelCase=Wv,c.capitalize=al,c.ceil=Fm,c.clamp=Fv,c.clone=T0,c.cloneDeep=D0,c.cloneDeepWith=P0,c.cloneWith=$0,c.conformsTo=N0,c.deburr=ll,c.defaultTo=dm,c.divide=Mm,c.endsWith=Gv,c.eq=tt,c.escape=Uv,c.escapeRegExp=Bv,c.every=Z_,c.find=k_,c.findIndex=Pa,c.findKey=cv,c.findLast=Q_,c.findLastIndex=Na,c.findLastKey=hv,c.floor=Hm,c.forEach=Ga,c.forEachRight=Ua,c.forIn=pv,c.forInRight=gv,c.forOwn=dv,c.forOwnRight=_v,c.get=Js,c.gt=q0,c.gte=F0,c.has=Ev,c.hasIn=ks,c.head=Fa,c.identity=Ie,c.includes=i0,c.indexOf=Qd,c.inRange=Mv,c.invoke=xv,c.isArguments=Zt,c.isArray=G,c.isArrayBuffer=M0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=H0,c.isBuffer=Ft,c.isDate=W0,c.isElement=G0,c.isEmpty=U0,c.isEqual=B0,c.isEqualWith=j0,c.isError=Ks,c.isFinite=X0,c.isFunction=xt,c.isInteger=Za,c.isLength=di,c.isMap=Ja,c.isMatch=z0,c.isMatchWith=V0,c.isNaN=Y0,c.isNative=K0,c.isNil=J0,c.isNull=Z0,c.isNumber=ka,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=ir,c.isRegExp=Zs,c.isSafeInteger=k0,c.isSet=Qa,c.isString=_i,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=Q0,c.isWeakMap=ev,c.isWeakSet=tv,c.join=i_,c.kebabCase=jv,c.last=je,c.lastIndexOf=s_,c.lowerCase=Xv,c.lowerFirst=zv,c.lt=nv,c.lte=rv,c.max=Wm,c.maxBy=Gm,c.mean=Um,c.meanBy=Bm,c.min=jm,c.minBy=Xm,c.stubArray=iu,c.stubFalse=su,c.stubObject=Lm,c.stubString=Tm,c.stubTrue=$m,c.multiply=zm,c.nth=u_,c.noConflict=xm,c.noop=ru,c.now=hi,c.pad=Vv,c.padEnd=Yv,c.padStart=Kv,c.parseInt=Zv,c.random=Hv,c.reduce=l0,c.reduceRight=f0,c.repeat=Jv,c.replace=kv,c.result=Iv,c.round=Vm,c.runInContext=v,c.sample=h0,c.size=d0,c.snakeCase=Qv,c.some=_0,c.sortedIndex=p_,c.sortedIndexBy=g_,c.sortedIndexOf=d_,c.sortedLastIndex=__,c.sortedLastIndexBy=v_,c.sortedLastIndexOf=m_,c.startCase=tm,c.startsWith=nm,c.subtract=Ym,c.sum=Km,c.sumBy=Zm,c.template=rm,c.times=Dm,c.toFinite=At,c.toInteger=U,c.toLength=tl,c.toLower=im,c.toNumber=Xe,c.toSafeInteger=iv,c.toString=J,c.toUpper=sm,c.trim=um,c.trimEnd=om,c.trimStart=am,c.truncate=lm,c.unescape=fm,c.uniqueId=Nm,c.upperCase=cm,c.upperFirst=Qs,c.each=Ga,c.eachRight=Ua,c.first=Fa,nu(c,function(){var e={};return ot(c,function(t,n){k.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){V.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new V(this):this.clone();return u.__filtered__?u.__takeCount__=ve(n,u.__takeCount__):u.__views__.push({size:ve(n,ut),type:e+(u.__dir__<0?"Right":"")}),u},V.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Nu||n==oh;V.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:F(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");V.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");V.prototype[e]=function(){return this.__filtered__?new V(this):this[n](1)}}),V.prototype.compact=function(){return this.filter(Ie)},V.prototype.find=function(e){return this.filter(e).head()},V.prototype.findLast=function(e){return this.reverse().find(e)},V.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new V(this):this.map(function(n){return kn(n,e,t)})}),V.prototype.reject=function(e){return this.filter(gi(F(e)))},V.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new V(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},V.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},V.prototype.toArray=function(){return this.take(ut)},ot(V.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof V,O=_[0],b=m||G(g),S=function(z){var Y=l.apply(c,It([z],_));return u&&R?Y[0]:Y};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,M=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new V(this);var H=e.apply(g,_);return H.__actions__.push({func:fi,args:[S],thisArg:i}),new Ge(H,R)}return M&&B?e.apply(this,_):(H=this.thru(S),M?u?H.value()[0]:H.value():H)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=qr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),ot(V.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";k.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ri(i,Wt).name]=[{name:"wrapper",func:i}],V.prototype.clone=fg,V.prototype.reverse=cg,V.prototype.value=hg,c.prototype.at=G_,c.prototype.chain=U_,c.prototype.commit=B_,c.prototype.next=j_,c.prototype.plant=z_,c.prototype.reverse=V_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=Y_,c.prototype.first=c.prototype.head,Xn&&(c.prototype[Xn]=X_),c},Tt=Bp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=Tt,define(function(){return Tt})):Ut?((Ut.exports=Tt)._=Tt,ts._=Tt):ce._=Tt}).call(Sn)});var Pi=L(Le=>{"use strict";var dy=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(C){d(C)}}function y(A){try{p(o.throw(A))}catch(C){d(C)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},_y=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Rc=Sc(require("path")),Ou=Sc(ft()),ct=Ou.default.fse,Di=Ou.default.jsyaml,bu=Ou.default.getRootHome;function vy(i){var r=Ic();ct.writeFileSync(r,Di.dump(i))}function Cc(){var i=Ic();if(!ct.existsSync(i))return{};try{var r=Di.load(ct.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Ic(){var i=Rc.default.join(bu(),"set-config.yml");return ct.existsSync(i)||ct.createFileSync(i),i}function my(i,r){var s=Cc();s[i]=r,vy(s)}Le.setConfig=my;function Ey(i,r){var s=Cc();return s[i]||r}Le.getConfig=Ey;function yy(i){return dy(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return _y(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Rc.default.join(bu(),r),o=ct.existsSync(s),f={},o)return[3,5];a=bu(),y.label=1;case 1:return y.trys.push([1,2,,4]),ct.statSync(a),[3,4];case 2:return d=y.sent(),[4,ct.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=Di.load(ct.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,ct.writeFileSync(s,Di.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=yy});var Lc=L((kx,wy)=>{wy.exports={name:"@serverless-devs/s",version:"2.0.100-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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 xr=L(q=>{"use strict";var xy=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]}),Ay=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Oy=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)&&xy(r,i,s);return Ay(r,i),r},Rn=q&&q.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(C){d(C)}}function y(A){try{p(o.throw(A))}catch(C){d(C)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Cn=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},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 Tc=Su(require("path")),wr=Su(require("fs")),Ke=bc(),by=Su(require("os")),Ze=Oy(ft()),Sy=Pi(),$c=Lc(),Ni=Ze.default.colors,Ry=Ze.default.got,Cy=Ze.default.getMAC,Iy=Ze.default.isDocker,Ly=Ze.default.isCiCdEnv,Ty=Ze.default.getGlobalArgs,$y=Ze.default.getYamlContent,Dy=Ze.default.getRootHome,Dc=Ze.default.getCredential,Py=Ze.default.getCredentialFromEnv;q.red=Ni.hex("#fd5750");q.yellow=Ni.hex("#F3F99D");q.bgRed=Ni.hex("#000").bgHex("#fd5750");var Ny=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=Ty(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ke.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ke.filter)(s._argsObj,function(o){return!(0,Ke.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=Ny;var qy=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s;return Cn(this,function(o){switch(o.label){case 0:return i=[],[4,$y(Tc.default.join(Dy(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ke.keys)(r)),[4,Py()];case 2:return s=o.sent(),s&&(i=(0,Ke.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=qy;var Fy=function(i){return Rn(void 0,void 0,void 0,function(){var r,s;return Cn(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ke.includes)(r,i)?[4,Dc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ke.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=Fy;var My=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return Cn(this,function(d){switch(d.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,Dc(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Ke.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=My;var Hy=function(i,r){return r===void 0&&(r="unknow"),Rn(void 0,void 0,void 0,function(){var s,o,f,a;return Cn(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Sy.getConfig)("analysis"),s!=="enable"?[2]:Iy()||Ly()?[2]:[4,Ry("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Ke.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
34
+ }`;var B=cl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ks(B))throw B;return B}function im(e){return J(e).toLowerCase()}function sm(e){return J(e).toUpperCase()}function um(e,t,n){if(e=J(e),e&&(n||t===i))return yo(e);if(!e||!(t=De(t)))return e;var u=Qe(e),l=Qe(t),h=wo(u,l),g=xo(u,l)+1;return qt(u,h,g).join("")}function om(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,Oo(e)+1);if(!e||!(t=De(t)))return e;var u=Qe(e),l=xo(u,Qe(t))+1;return qt(u,0,l).join("")}function am(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(Ki,"");if(!e||!(t=De(t)))return e;var u=Qe(e),l=wo(u,Qe(t));return qt(u,l).join("")}function lm(e,t){var n=nh,u=rh;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?De(t.omission):u}e=J(e);var h=e.length;if(hn(e)){var g=Qe(e);h=g.length}if(n>=h)return e;var _=n-pn(u);if(_<1)return u;var m=g?qt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Zs(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=hs(l.source,J(Gu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(De(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function fm(e){return e=J(e),e&&wh.test(e)?e.replace(Mu,Hp):e}var cm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=ha("toUpperCase");function fl(e,t,n){return e=J(e),t=n?i:t,t===i?Pp(e)?Up(e):bp(e):e.match(t)||[]}var cl=X(function(e,t){try{return Te(e,i,t)}catch(n){return Ks(n)?n:new W(n)}}),hm=yt(function(e,t){return He(t,function(n){n=lt(n),mt(e,n,Vs(e[n],e))}),e});function pm(e){var t=e==null?0:e.length,n=F();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(Te(h[0],this,u))return Te(h[1],this,u)}})}function gm(e){return Hg(Ue(e,p))}function eu(e){return function(){return e}}function dm(e,t){return e==null||e!==e?t:e}var _m=ga(),vm=ga(!0);function Ie(e){return e}function tu(e){return jo(typeof e=="function"?e:Ue(e,p))}function mm(e){return zo(Ue(e,p))}function Em(e,t){return Vo(e,Ue(t,p))}var ym=X(function(e,t){return function(n){return kn(n,e,t)}}),wm=X(function(e,t){return function(n){return kn(e,n,t)}});function nu(e,t,n){var u=he(t),l=kr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=kr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=xt(e);return He(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,It([this.value()],arguments))})}),e}function xm(){return ce._===this&&(ce._=Yp),this}function ru(){}function Am(e){return e=U(e),X(function(t){return Yo(t,e)})}var Om=Ps(re),bm=Ps(go),Sm=Ps(ss);function hl(e){return Gs(e)?us(lt(e)):nd(e)}function Rm(e){return function(t){return e==null?i:Vt(e,t)}}var Cm=_a(),Im=_a(!0);function iu(){return[]}function su(){return!1}function Lm(){return{}}function Tm(){return""}function $m(){return!0}function Dm(e,t){if(e=U(e),e<1||e>Rt)return[];var n=ut,u=ve(e,ut);t=F(t),e-=ut;for(var l=ls(u,t);++n<e;)t(n);return l}function Pm(e){return G(e)?re(e,lt):Pe(e)?[e]:Se($a(J(e)))}function Nm(e){var t=++zp;return J(e)+t}var qm=ii(function(e,t){return e+t},0),Fm=Ns("ceil"),Mm=ii(function(e,t){return e/t},1),Hm=Ns("floor");function Wm(e){return e&&e.length?Jr(e,Ie,ys):i}function Gm(e,t){return e&&e.length?Jr(e,F(t,2),ys):i}function Um(e){return mo(e,Ie)}function Bm(e,t){return mo(e,F(t,2))}function jm(e){return e&&e.length?Jr(e,Ie,Os):i}function Xm(e,t){return e&&e.length?Jr(e,F(t,2),Os):i}var zm=ii(function(e,t){return e*t},1),Vm=Ns("round"),Ym=ii(function(e,t){return e-t},0);function Km(e){return e&&e.length?as(e,Ie):0}function Zm(e,t){return e&&e.length?as(e,F(t,2)):0}return c.after=m0,c.ary=Ba,c.assign=sv,c.assignIn=rl,c.assignInWith=vi,c.assignWith=uv,c.at=ov,c.before=ja,c.bind=Vs,c.bindAll=hm,c.bindKey=Xa,c.castArray=L0,c.chain=Wa,c.chunk=Hd,c.compact=Wd,c.concat=Gd,c.cond=pm,c.conforms=gm,c.constant=eu,c.countBy=K_,c.create=av,c.curry=za,c.curryRight=Va,c.debounce=Ya,c.defaults=lv,c.defaultsDeep=fv,c.defer=E0,c.delay=y0,c.difference=Ud,c.differenceBy=Bd,c.differenceWith=jd,c.drop=Xd,c.dropRight=zd,c.dropRightWhile=Vd,c.dropWhile=Yd,c.fill=Kd,c.filter=J_,c.flatMap=e0,c.flatMapDeep=t0,c.flatMapDepth=n0,c.flatten=qa,c.flattenDeep=Zd,c.flattenDepth=Jd,c.flip=w0,c.flow=_m,c.flowRight=vm,c.fromPairs=kd,c.functions=vv,c.functionsIn=mv,c.groupBy=r0,c.initial=e_,c.intersection=t_,c.intersectionBy=n_,c.intersectionWith=r_,c.invert=yv,c.invertBy=wv,c.invokeMap=s0,c.iteratee=tu,c.keyBy=u0,c.keys=he,c.keysIn=Ce,c.map=ci,c.mapKeys=Av,c.mapValues=Ov,c.matches=mm,c.matchesProperty=Em,c.memoize=pi,c.merge=bv,c.mergeWith=il,c.method=ym,c.methodOf=wm,c.mixin=nu,c.negate=gi,c.nthArg=Am,c.omit=Sv,c.omitBy=Rv,c.once=x0,c.orderBy=o0,c.over=Om,c.overArgs=A0,c.overEvery=bm,c.overSome=Sm,c.partial=Ys,c.partialRight=Ka,c.partition=a0,c.pick=Cv,c.pickBy=sl,c.property=hl,c.propertyOf=Rm,c.pull=o_,c.pullAll=Ma,c.pullAllBy=a_,c.pullAllWith=l_,c.pullAt=f_,c.range=Cm,c.rangeRight=Im,c.rearg=O0,c.reject=c0,c.remove=c_,c.rest=b0,c.reverse=Xs,c.sampleSize=p0,c.set=Lv,c.setWith=Tv,c.shuffle=g0,c.slice=h_,c.sortBy=v0,c.sortedUniq=E_,c.sortedUniqBy=y_,c.split=em,c.spread=S0,c.tail=w_,c.take=x_,c.takeRight=A_,c.takeRightWhile=O_,c.takeWhile=b_,c.tap=W_,c.throttle=R0,c.thru=fi,c.toArray=el,c.toPairs=ul,c.toPairsIn=ol,c.toPath=Pm,c.toPlainObject=nl,c.transform=$v,c.unary=C0,c.union=S_,c.unionBy=R_,c.unionWith=C_,c.uniq=I_,c.uniqBy=L_,c.uniqWith=T_,c.unset=Dv,c.unzip=zs,c.unzipWith=Ha,c.update=Pv,c.updateWith=Nv,c.values=xn,c.valuesIn=qv,c.without=$_,c.words=fl,c.wrap=I0,c.xor=D_,c.xorBy=P_,c.xorWith=N_,c.zip=q_,c.zipObject=F_,c.zipObjectDeep=M_,c.zipWith=H_,c.entries=ul,c.entriesIn=ol,c.extend=rl,c.extendWith=vi,nu(c,c),c.add=qm,c.attempt=cl,c.camelCase=Wv,c.capitalize=al,c.ceil=Fm,c.clamp=Fv,c.clone=T0,c.cloneDeep=D0,c.cloneDeepWith=P0,c.cloneWith=$0,c.conformsTo=N0,c.deburr=ll,c.defaultTo=dm,c.divide=Mm,c.endsWith=Gv,c.eq=tt,c.escape=Uv,c.escapeRegExp=Bv,c.every=Z_,c.find=k_,c.findIndex=Pa,c.findKey=cv,c.findLast=Q_,c.findLastIndex=Na,c.findLastKey=hv,c.floor=Hm,c.forEach=Ga,c.forEachRight=Ua,c.forIn=pv,c.forInRight=gv,c.forOwn=dv,c.forOwnRight=_v,c.get=Js,c.gt=q0,c.gte=F0,c.has=Ev,c.hasIn=ks,c.head=Fa,c.identity=Ie,c.includes=i0,c.indexOf=Qd,c.inRange=Mv,c.invoke=xv,c.isArguments=Zt,c.isArray=G,c.isArrayBuffer=M0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=H0,c.isBuffer=Ft,c.isDate=W0,c.isElement=G0,c.isEmpty=U0,c.isEqual=B0,c.isEqualWith=j0,c.isError=Ks,c.isFinite=X0,c.isFunction=xt,c.isInteger=Za,c.isLength=di,c.isMap=Ja,c.isMatch=z0,c.isMatchWith=V0,c.isNaN=Y0,c.isNative=K0,c.isNil=J0,c.isNull=Z0,c.isNumber=ka,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=ir,c.isRegExp=Zs,c.isSafeInteger=k0,c.isSet=Qa,c.isString=_i,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=Q0,c.isWeakMap=ev,c.isWeakSet=tv,c.join=i_,c.kebabCase=jv,c.last=je,c.lastIndexOf=s_,c.lowerCase=Xv,c.lowerFirst=zv,c.lt=nv,c.lte=rv,c.max=Wm,c.maxBy=Gm,c.mean=Um,c.meanBy=Bm,c.min=jm,c.minBy=Xm,c.stubArray=iu,c.stubFalse=su,c.stubObject=Lm,c.stubString=Tm,c.stubTrue=$m,c.multiply=zm,c.nth=u_,c.noConflict=xm,c.noop=ru,c.now=hi,c.pad=Vv,c.padEnd=Yv,c.padStart=Kv,c.parseInt=Zv,c.random=Hv,c.reduce=l0,c.reduceRight=f0,c.repeat=Jv,c.replace=kv,c.result=Iv,c.round=Vm,c.runInContext=v,c.sample=h0,c.size=d0,c.snakeCase=Qv,c.some=_0,c.sortedIndex=p_,c.sortedIndexBy=g_,c.sortedIndexOf=d_,c.sortedLastIndex=__,c.sortedLastIndexBy=v_,c.sortedLastIndexOf=m_,c.startCase=tm,c.startsWith=nm,c.subtract=Ym,c.sum=Km,c.sumBy=Zm,c.template=rm,c.times=Dm,c.toFinite=At,c.toInteger=U,c.toLength=tl,c.toLower=im,c.toNumber=Xe,c.toSafeInteger=iv,c.toString=J,c.toUpper=sm,c.trim=um,c.trimEnd=om,c.trimStart=am,c.truncate=lm,c.unescape=fm,c.uniqueId=Nm,c.upperCase=cm,c.upperFirst=Qs,c.each=Ga,c.eachRight=Ua,c.first=Fa,nu(c,function(){var e={};return ot(c,function(t,n){k.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){V.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new V(this):this.clone();return u.__filtered__?u.__takeCount__=ve(n,u.__takeCount__):u.__views__.push({size:ve(n,ut),type:e+(u.__dir__<0?"Right":"")}),u},V.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Nu||n==oh;V.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:F(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");V.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");V.prototype[e]=function(){return this.__filtered__?new V(this):this[n](1)}}),V.prototype.compact=function(){return this.filter(Ie)},V.prototype.find=function(e){return this.filter(e).head()},V.prototype.findLast=function(e){return this.reverse().find(e)},V.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new V(this):this.map(function(n){return kn(n,e,t)})}),V.prototype.reject=function(e){return this.filter(gi(F(e)))},V.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new V(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},V.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},V.prototype.toArray=function(){return this.take(ut)},ot(V.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof V,O=_[0],b=m||G(g),S=function(z){var Y=l.apply(c,It([z],_));return u&&R?Y[0]:Y};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,M=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new V(this);var H=e.apply(g,_);return H.__actions__.push({func:fi,args:[S],thisArg:i}),new Ge(H,R)}return M&&B?e.apply(this,_):(H=this.thru(S),M?u?H.value()[0]:H.value():H)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=qr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),ot(V.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";k.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ri(i,Wt).name]=[{name:"wrapper",func:i}],V.prototype.clone=fg,V.prototype.reverse=cg,V.prototype.value=hg,c.prototype.at=G_,c.prototype.chain=U_,c.prototype.commit=B_,c.prototype.next=j_,c.prototype.plant=z_,c.prototype.reverse=V_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=Y_,c.prototype.first=c.prototype.head,Xn&&(c.prototype[Xn]=X_),c},Tt=Bp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=Tt,define(function(){return Tt})):Ut?((Ut.exports=Tt)._=Tt,ts._=Tt):ce._=Tt}).call(Sn)});var Pi=L(Le=>{"use strict";var dy=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(C){d(C)}}function y(A){try{p(o.throw(A))}catch(C){d(C)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},_y=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Rc=Sc(require("path")),Ou=Sc(ft()),ct=Ou.default.fse,Di=Ou.default.jsyaml,bu=Ou.default.getRootHome;function vy(i){var r=Ic();ct.writeFileSync(r,Di.dump(i))}function Cc(){var i=Ic();if(!ct.existsSync(i))return{};try{var r=Di.load(ct.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Ic(){var i=Rc.default.join(bu(),"set-config.yml");return ct.existsSync(i)||ct.createFileSync(i),i}function my(i,r){var s=Cc();s[i]=r,vy(s)}Le.setConfig=my;function Ey(i,r){var s=Cc();return s[i]||r}Le.getConfig=Ey;function yy(i){return dy(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return _y(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Rc.default.join(bu(),r),o=ct.existsSync(s),f={},o)return[3,5];a=bu(),y.label=1;case 1:return y.trys.push([1,2,,4]),ct.statSync(a),[3,4];case 2:return d=y.sent(),[4,ct.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=Di.load(ct.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,ct.writeFileSync(s,Di.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=yy});var Lc=L((kx,wy)=>{wy.exports={name:"@serverless-devs/s",version:"2.0.100-beta.5",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/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 xr=L(q=>{"use strict";var xy=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]}),Ay=q&&q.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Oy=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)&&xy(r,i,s);return Ay(r,i),r},Rn=q&&q.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(C){d(C)}}function y(A){try{p(o.throw(A))}catch(C){d(C)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Cn=q&&q.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},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 Tc=Su(require("path")),wr=Su(require("fs")),Ke=bc(),by=Su(require("os")),Ze=Oy(ft()),Sy=Pi(),$c=Lc(),Ni=Ze.default.colors,Ry=Ze.default.got,Cy=Ze.default.getMAC,Iy=Ze.default.isDocker,Ly=Ze.default.isCiCdEnv,Ty=Ze.default.getGlobalArgs,$y=Ze.default.getYamlContent,Dy=Ze.default.getRootHome,Dc=Ze.default.getCredential,Py=Ze.default.getCredentialFromEnv;q.red=Ni.hex("#fd5750");q.yellow=Ni.hex("#F3F99D");q.bgRed=Ni.hex("#000").bgHex("#fd5750");var Ny=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=Ty(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ke.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ke.filter)(s._argsObj,function(o){return!(0,Ke.includes)(["-h","--help"],o)}))})}catch{return{}}};q.getProcessArgv=Ny;var qy=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s;return Cn(this,function(o){switch(o.label){case 0:return i=[],[4,$y(Tc.default.join(Dy(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ke.keys)(r)),[4,Py()];case 2:return s=o.sent(),s&&(i=(0,Ke.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};q.getCredentialAliasList=qy;var Fy=function(i){return Rn(void 0,void 0,void 0,function(){var r,s;return Cn(this,function(o){switch(o.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ke.includes)(r,i)?[4,Dc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ke.omit)(s,"Alias")];case 3:return[2]}})})};q.getCredentialWithExisted=Fy;var My=function(){return Rn(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return Cn(this,function(d){switch(d.label){case 0:return[4,(0,q.getCredentialAliasList)()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,Dc(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Ke.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};q.getCredentialWithAll=My;var Hy=function(i,r){return r===void 0&&(r="unknow"),Rn(void 0,void 0,void 0,function(){var s,o,f,a;return Cn(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Sy.getConfig)("analysis"),s!=="enable"?[2]:Iy()||Ly()?[2]:[4,Ry("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Ke.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
35
35
  You can try to solve the problem through: `.concat(Ni.underline(f),`
36
36
  `)),[3,3];case 2:return a=d.sent(),[3,3];case 3:return[2]}})})};q.aiRequest=Hy;var Wy=function(){try{return Cy().replace(/:/g,"")}catch{return"unknown"}};q.getPid=Wy;function Gy(){var i=(0,Ze.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(Ze.default.getRootHome()),a="".concat($c.name,": ").concat($c.version);return i?"".concat(a,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(a,", ").concat(f,", ").concat(r,", ").concat(s)}q.getVersion=Gy;function Uy(i){return Rn(this,void 0,void 0,function(){function r(f){return Rn(this,void 0,void 0,function(){var a,d;return Cn(this,function(E){switch(E.label){case 0:return a=wr.default.lstatSync(f),typeof a!="object"?[2]:(s.set(a.ino,a.size),a.isDirectory()?(d=wr.default.readdirSync(f),typeof d!="object"?[2]:[4,Promise.all(d.map(function(y){return r(Tc.default.join(f,y))}))]):[3,2]);case 1:E.sent(),E.label=2;case 2:return[2]}})})}var s,o;return Cn(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(a,d){return a+d},0),[2,o]}})})}q.getFolderSize=Uy;function By(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}q.printn=By;function jy(){return"en"}q.getLang=jy;function Pc(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var a=o[f].replace(/{{|}}/g,""),d=(0,Ke.trim)(a.split("|")[0]);r[d]&&(i=i.replace(o[f],r[d]))}return i}q.replaceFun=Pc;function Xy(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var f=o.replace(/{{|}}/g,""),a=f.split("|");return{name:(0,Ke.trim)(a[0]),desc:(0,Ke.trim)(a[1])}}):[]}q.getTemplatekey=Xy;function zy(i,r){i.forEach(function(s){if(wr.default.existsSync(s)){var o=wr.default.readFileSync(s,"utf-8"),f=Pc(o,r);wr.default.writeFileSync(s,f,"utf-8")}})}q.replaceTemplate=zy;function Vy(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}q.mark=Vy;function Yy(i,r){return by.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}q.emoji=Yy});var Nc=L(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var qc=L(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Mc=L(Ar=>{"use strict";var Fc=Ar&&Ar.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ar,"__esModule",{value:!0});var Ky=xr(),Zy=Fc(Nc()),Jy=Fc(qc()),Iu={en:Jy.default,zh:Zy.default},ky=function(i){var r=(0,Ky.getLang)(),s=Iu[r]?Iu[r][i]:Iu.en[i];return s||i};Ar.default=ky});var Uc=L(ge=>{"use strict";var Qy=ge&&ge.__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]}),Hc=ge&&ge.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&Qy(r,i,s)},Or=ge&&ge.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ge,"__esModule",{value:!0});ge.registerCommandChecker=ge.getYamlPath=ge.i18n=ge.logger=void 0;var Wc=Or(require("path")),ew=Or($i()),tw=Or(ft()),Gc=tw.default.fse;Hc(xr(),ge);Hc(Pi(),ge);var nw=$i();Object.defineProperty(ge,"logger",{enumerable:!0,get:function(){return Or(nw).default}});var rw=Mc();Object.defineProperty(ge,"i18n",{enumerable:!0,get:function(){return Or(rw).default}});var iw=function(i,r){var s=Wc.default.join(i,"".concat(r,".yaml")),o=Wc.default.join(i,"".concat(r,".yml")),f=Gc.existsSync(s)?s:Gc.existsSync(o)?o:void 0;return f};ge.getYamlPath=iw;function sw(i){i.on("command:*",function(r){var s=i.commands.map(function(o){return o.name()});s.includes(r[0])||(ew.default.error(" error: unknown command ".concat(r[0])),i.help())})}ge.registerCommandChecker=sw});var sn=L(In=>{"use strict";var uw=In&&In.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(In,"__esModule",{value:!0});In.ServerlessError=void 0;var ow=uw(ft()),aw=ow.default.Logger,lw=new aw("S-CLI-ERROR"),fw=function(){function i(r,s,o){lw.error(r+": "+s,o),process.exit(1)}return i}();In.ServerlessError=fw});var Bc=L(Ln=>{"use strict";var cw=Ln&&Ln.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.CommandError=void 0;var hw=sn(),pw=function(i){cw(r,i);function r(s,o){return i.call(this,"Error",s,o)||this}return r}(hw.ServerlessError);Ln.CommandError=pw});var jc=L(Tn=>{"use strict";var gw=Tn&&Tn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ConfigDeleteError=void 0;var dw=sn(),_w=function(i){gw(r,i);function r(s,o){return i.call(this,"Deletion failed",s,o)||this}return r}(dw.ServerlessError);Tn.ConfigDeleteError=_w});var Xc=L($n=>{"use strict";var vw=$n&&$n.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.ConfigError=void 0;var mw=sn(),Ew=function(i){vw(r,i);function r(s,o){return i.call(this,"Config failed",s,o)||this}return r}(mw.ServerlessError);$n.ConfigError=Ew});var zc=L(Dn=>{"use strict";var yw=Dn&&Dn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ConfigGetError=void 0;var ww=sn(),xw=function(i){yw(r,i);function r(s,o){return i.call(this,"Get failed",s,o)||this}return r}(ww.ServerlessError);Dn.ConfigGetError=xw});var Vc=L(Pn=>{"use strict";var Aw=Pn&&Pn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.InitError=void 0;var Ow=sn(),bw=function(i){Aw(r,i);function r(s,o){return i.call(this,"Initialization failed",s,o)||this}return r}(Ow.ServerlessError);Pn.InitError=bw});var Kc=L(ht=>{"use strict";var Sw=ht&&ht.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(C){d(C)}}function y(A){try{p(o.throw(A))}catch(C){d(C)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},Rw=ht&&ht.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Cw=ht&&ht.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ht,"__esModule",{value:!0});ht.HumanError=void 0;var Yc=Cw(ft()),Iw=xr(),Lw=Yc.default.colors,Tw=function(){function i(r){var s=r.errorMessage,o=r.tips;this.errorMessage=s,console.log(`
37
37
  `.concat((0,Iw.bgRed)("ERROR:"))),console.log("TypeError: ".concat(s,`