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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,7 +40,7 @@ function print() { __p += __j.call(arguments, '') }
40
40
  `))}return i}();Fn.HumanWarning=pw});var nh=T(te=>{"use strict";var dw=te&&te.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(S){try{d(o.next(S))}catch(b){_(b)}}function w(S){try{d(o.throw(S))}catch(b){_(b)}}function d(S){S.done?f(S.value):l(S.value).then(y,w)}d((o=o.apply(i,r||[])).next())})},gw=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(S){return w([d,S])}}function w(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},_w=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var th=Pn(),vw=Du(),$u=_w(lt()),mw=Pn(),un=$u.default.colors,yw=$u.default.report,Ew=$u.default.getMAC,ww=zc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return ww.CommandError}});var xw=Vc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return xw.ConfigDeleteError}});var Aw=Yc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return Aw.ConfigError}});var Ow=Kc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return Ow.ConfigGetError}});var Sw=Zc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return Sw.InitError}});var Rw=sn();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return Rw.ServerlessError}});var Iw=Jc();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return Iw.HumanError}});var bw=eh();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return bw.HumanWarning}});function Cw(){try{return Ew().replace(/:/g,"")}catch{return"unknown"}}function Nu(i,r){return"".concat(un.gray(i)).concat(un.gray.underline(r))}var Tw=function(){function i(r){var s=r.error,o=r.prefix,l=o===void 0?"Message:":o;this.traceId="".concat(Cw()).concat(Date.now()),console.log((0,th.red)("\u2716 ".concat(l,`
41
41
  `)));var f=(0,vw.getConfig)("analysis");f!=="disable"&&console.log(un.gray("TraceId: ".concat(this.traceId))),console.log(un.gray("Environment: ".concat((0,th.getVersion)()))),console.log(Nu("Documents: ","https://www.serverless-devs.com")),console.log(Nu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(Nu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
42
  `)),(0,mw.getErrorMessage)(s),f!=="disable"&&console.log(un.gray("Please copy traceId: ".concat(this.traceId," and join Dingding group: 33947367 for consultation."))),console.log(un.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(un.gray(`And run again with the '--debug' option or 's -h' to get more logs.
43
- `))}return i.prototype.report=function(r){return dw(this,void 0,void 0,function(){return gw(this,function(s){switch(s.label){case 0:return[4,yw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();te.HandleError=Tw});var rh=T((fA,Lw)=>{Lw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"latest"}}});var Pn=T(H=>{"use strict";var Dw=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),$w=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Nw=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&Dw(r,i,s);return $w(r,i),r},ih=H&&H.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(S){try{d(o.next(S))}catch(b){_(b)}}function w(S){try{d(o.throw(S))}catch(b){_(b)}}function d(S){S.done?f(S.value):l(S.value).then(y,w)}d((o=o.apply(i,r||[])).next())})},sh=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(S){return w([d,S])}}function w(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Wi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var de=Wi(require("path")),Me=Wi(require("fs")),qu=Wi(Nc()),qw=Wi(require("os")),Pw=nh(),Mn=Nw(lt()),Ui=Mn.default.colors,Fw=Mn.default.jsyaml,Mw=Mn.default.makeUnderLine,uh=Mn.default.isDebugMode,oh=rh();H.red=Ui.hex("#fd5750");H.yellow=Ui.hex("#F3F99D");H.bgRed=Ui.hex("#000").bgHex("#fd5750");var Hw=function(i){var r=uh?uh():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
43
+ `))}return i.prototype.report=function(r){return dw(this,void 0,void 0,function(){return gw(this,function(s){switch(s.label){case 0:return[4,yw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();te.HandleError=Tw});var rh=T((fA,Lw)=>{Lw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.6",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"beta"}}});var Pn=T(H=>{"use strict";var Dw=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),$w=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Nw=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&Dw(r,i,s);return $w(r,i),r},ih=H&&H.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(S){try{d(o.next(S))}catch(b){_(b)}}function w(S){try{d(o.throw(S))}catch(b){_(b)}}function d(S){S.done?f(S.value):l(S.value).then(y,w)}d((o=o.apply(i,r||[])).next())})},sh=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(S){return w([d,S])}}function w(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(S){d=[6,S],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Wi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var de=Wi(require("path")),Me=Wi(require("fs")),qu=Wi(Nc()),qw=Wi(require("os")),Pw=nh(),Mn=Nw(lt()),Ui=Mn.default.colors,Fw=Mn.default.jsyaml,Mw=Mn.default.makeUnderLine,uh=Mn.default.isDebugMode,oh=rh();H.red=Ui.hex("#fd5750");H.yellow=Ui.hex("#F3F99D");H.bgRed=Ui.hex("#000").bgHex("#fd5750");var Hw=function(i){var r=uh?uh():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var o=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
44
44
  `).concat(o.message,`
45
45
  `)),o.tips&&console.log("".concat((0,H.yellow)(Mw(o.tips)),`
46
46
  `))}catch{console.log("".concat((0,H.bgRed)("ERROR:"),`
package/lib/cli/index.js CHANGED
@@ -31,7 +31,7 @@ __p += '`),J&&(A+=`' +
31
31
  function print() { __p += __j.call(arguments, '') }
32
32
  `:`;
33
33
  `)+A+`return __p
34
- }`;var W=Cl(function(){return ee(d,q+"return "+A).apply(i,m)});if(W.source=A,qo(W))throw W;return W}function Sy(e){return te(e).toLowerCase()}function Cy(e){return te(e).toUpperCase()}function Oy(e,t,s){if(e=te(e),e&&(s||t===i))return Na(e);if(!e||!(t=Xe(t)))return e;var c=pt(e),f=pt(t),d=Da(c,f),m=qa(c,f)+1;return tn(c,d,m).join("")}function xy(e,t,s){if(e=te(e),e&&(s||t===i))return e.slice(0,Fa(e)+1);if(!e||!(t=Xe(t)))return e;var c=pt(e),f=qa(c,pt(t))+1;return tn(c,0,f).join("")}function Ay(e,t,s){if(e=te(e),e&&(s||t===i))return e.replace(Ds,"");if(!e||!(t=Xe(t)))return e;var c=pt(e),f=Da(c,pt(t));return tn(c,f).join("")}function Ry(e,t){var s=wd,c=bd;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?B(t.length):s,c="omission"in t?Xe(t.omission):c}e=te(e);var d=e.length;if(qn(e)){var m=pt(e);d=m.length}if(s>=d)return e;var y=s-$n(c);if(y<1)return c;var w=m?tn(m,0,y).join(""):e.slice(0,y);if(f===i)return w+c;if(m&&(y+=w.length-y),$o(f)){if(e.slice(y).search(f)){var O,x=w;for(f.global||(f=Js(f.source,te(ta.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;w=w.slice(0,A===i?y:A)}}else if(e.indexOf(Xe(f),y)!=y){var T=w.lastIndexOf(f);T>-1&&(w=w.slice(0,T))}return w+c}function Iy(e){return e=te(e),e&&Hd.test(e)?e.replace(Zu,im):e}var Py=Gn(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),jo=Oc("toUpperCase");function Sl(e,t,s){return e=te(e),t=s?i:t,t===i?Qg(e)?um(e):Wg(e):e.match(t)||[]}var Cl=V(function(e,t){try{return Ve(e,i,t)}catch(s){return qo(s)?s:new U(s)}}),Ty=$t(function(e,t){return tt(t,function(s){s=wt(s),Dt(e,s,No(e[s],e))}),e});function Ly(e){var t=e==null?0:e.length,s=$();return e=t?le(e,function(c){if(typeof c[1]!="function")throw new nt(a);return[s(c[0]),c[1]]}):[],V(function(c){for(var f=-1;++f<t;){var d=e[f];if(Ve(d[0],this,c))return Ve(d[1],this,c)}})}function Ny(e){return iv(it(e,l))}function Ho(e){return function(){return e}}function Dy(e,t){return e==null||e!==e?t:e}var qy=Ac(),$y=Ac(!0);function Be(e){return e}function Uo(e){return rc(typeof e=="function"?e:it(e,l))}function Fy(e){return sc(it(e,l))}function My(e,t){return oc(e,it(t,l))}var jy=V(function(e,t){return function(s){return Or(s,e,t)}}),Hy=V(function(e,t){return function(s){return Or(e,s,t)}});function Go(e,t,s){var c=Ee(t),f=Ti(t,c);s==null&&!(fe(t)&&(f.length||!c.length))&&(s=t,t=e,e=this,f=Ti(t,Ee(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Mt(e);return tt(f,function(y){var w=t[y];e[y]=w,m&&(e.prototype[y]=function(){var O=this.__chain__;if(d||O){var x=e(this.__wrapped__),A=x.__actions__=He(this.__actions__);return A.push({func:w,args:arguments,thisArg:e}),x.__chain__=O,x}return w.apply(e,Xt([this.value()],arguments))})}),e}function Uy(){return ye._===this&&(ye._=pm),this}function Bo(){}function Gy(e){return e=B(e),V(function(t){return uc(t,e)})}var By=Eo(le),Wy=Eo(Ra),ky=Eo(Ws);function Ol(e){return Ao(e)?ks(wt(e)):wv(e)}function Vy(e){return function(t){return e==null?i:dn(e,t)}}var zy=Ic(),Xy=Ic(!0);function Wo(){return[]}function ko(){return!1}function Yy(){return{}}function Ky(){return""}function Jy(){return!0}function Zy(e,t){if(e=B(e),e<1||e>Vt)return[];var s=_t,c=Ie(e,_t);t=$(t),e-=_t;for(var f=Xs(c,t);++s<e;)t(s);return f}function Qy(e){return G(e)?le(e,wt):Ye(e)?[e]:He(kc(te(e)))}function eE(e){var t=++fm;return te(e)+t}var tE=Fi(function(e,t){return e+t},0),nE=wo("ceil"),rE=Fi(function(e,t){return e/t},1),iE=wo("floor");function sE(e){return e&&e.length?Pi(e,Be,so):i}function oE(e,t){return e&&e.length?Pi(e,$(t,2),so):i}function uE(e){return Ta(e,Be)}function aE(e,t){return Ta(e,$(t,2))}function cE(e){return e&&e.length?Pi(e,Be,co):i}function lE(e,t){return e&&e.length?Pi(e,$(t,2),co):i}var fE=Fi(function(e,t){return e*t},1),hE=wo("round"),pE=Fi(function(e,t){return e-t},0);function dE(e){return e&&e.length?zs(e,Be):0}function gE(e,t){return e&&e.length?zs(e,$(t,2)):0}return p.after=F0,p.ary=nl,p.assign=C1,p.assignIn=ml,p.assignInWith=Ki,p.assignWith=O1,p.at=x1,p.before=rl,p.bind=No,p.bindAll=Ty,p.bindKey=il,p.castArray=Y0,p.chain=Qc,p.chunk=i_,p.compact=s_,p.concat=o_,p.cond=Ly,p.conforms=Ny,p.constant=Ho,p.countBy=d0,p.create=A1,p.curry=sl,p.curryRight=ol,p.debounce=ul,p.defaults=R1,p.defaultsDeep=I1,p.defer=M0,p.delay=j0,p.difference=u_,p.differenceBy=a_,p.differenceWith=c_,p.drop=l_,p.dropRight=f_,p.dropRightWhile=h_,p.dropWhile=p_,p.fill=d_,p.filter=m0,p.flatMap=y0,p.flatMapDeep=E0,p.flatMapDepth=w0,p.flatten=Yc,p.flattenDeep=g_,p.flattenDepth=m_,p.flip=H0,p.flow=qy,p.flowRight=$y,p.fromPairs=v_,p.functions=$1,p.functionsIn=F1,p.groupBy=b0,p.initial=y_,p.intersection=E_,p.intersectionBy=w_,p.intersectionWith=b_,p.invert=j1,p.invertBy=H1,p.invokeMap=C0,p.iteratee=Uo,p.keyBy=O0,p.keys=Ee,p.keysIn=Ge,p.map=Wi,p.mapKeys=G1,p.mapValues=B1,p.matches=Fy,p.matchesProperty=My,p.memoize=Vi,p.merge=W1,p.mergeWith=vl,p.method=jy,p.methodOf=Hy,p.mixin=Go,p.negate=zi,p.nthArg=Gy,p.omit=k1,p.omitBy=V1,p.once=U0,p.orderBy=x0,p.over=By,p.overArgs=G0,p.overEvery=Wy,p.overSome=ky,p.partial=Do,p.partialRight=al,p.partition=A0,p.pick=z1,p.pickBy=_l,p.property=Ol,p.propertyOf=Vy,p.pull=x_,p.pullAll=Jc,p.pullAllBy=A_,p.pullAllWith=R_,p.pullAt=I_,p.range=zy,p.rangeRight=Xy,p.rearg=B0,p.reject=P0,p.remove=P_,p.rest=W0,p.reverse=To,p.sampleSize=L0,p.set=Y1,p.setWith=K1,p.shuffle=N0,p.slice=T_,p.sortBy=$0,p.sortedUniq=M_,p.sortedUniqBy=j_,p.split=yy,p.spread=k0,p.tail=H_,p.take=U_,p.takeRight=G_,p.takeRightWhile=B_,p.takeWhile=W_,p.tap=s0,p.throttle=V0,p.thru=Bi,p.toArray=pl,p.toPairs=yl,p.toPairsIn=El,p.toPath=Qy,p.toPlainObject=gl,p.transform=J1,p.unary=z0,p.union=k_,p.unionBy=V_,p.unionWith=z_,p.uniq=X_,p.uniqBy=Y_,p.uniqWith=K_,p.unset=Z1,p.unzip=Lo,p.unzipWith=Zc,p.update=Q1,p.updateWith=ey,p.values=kn,p.valuesIn=ty,p.without=J_,p.words=Sl,p.wrap=X0,p.xor=Z_,p.xorBy=Q_,p.xorWith=e0,p.zip=t0,p.zipObject=n0,p.zipObjectDeep=r0,p.zipWith=i0,p.entries=yl,p.entriesIn=El,p.extend=ml,p.extendWith=Ki,Go(p,p),p.add=tE,p.attempt=Cl,p.camelCase=sy,p.capitalize=wl,p.ceil=nE,p.clamp=ny,p.clone=K0,p.cloneDeep=Z0,p.cloneDeepWith=Q0,p.cloneWith=J0,p.conformsTo=e1,p.deburr=bl,p.defaultTo=Dy,p.divide=rE,p.endsWith=oy,p.eq=gt,p.escape=uy,p.escapeRegExp=ay,p.every=g0,p.find=v0,p.findIndex=zc,p.findKey=P1,p.findLast=_0,p.findLastIndex=Xc,p.findLastKey=T1,p.floor=iE,p.forEach=el,p.forEachRight=tl,p.forIn=L1,p.forInRight=N1,p.forOwn=D1,p.forOwnRight=q1,p.get=Fo,p.gt=t1,p.gte=n1,p.has=M1,p.hasIn=Mo,p.head=Kc,p.identity=Be,p.includes=S0,p.indexOf=__,p.inRange=ry,p.invoke=U1,p.isArguments=vn,p.isArray=G,p.isArrayBuffer=r1,p.isArrayLike=Ue,p.isArrayLikeObject=pe,p.isBoolean=i1,p.isBuffer=nn,p.isDate=s1,p.isElement=o1,p.isEmpty=u1,p.isEqual=a1,p.isEqualWith=c1,p.isError=qo,p.isFinite=l1,p.isFunction=Mt,p.isInteger=cl,p.isLength=Xi,p.isMap=ll,p.isMatch=f1,p.isMatchWith=h1,p.isNaN=p1,p.isNative=d1,p.isNil=m1,p.isNull=g1,p.isNumber=fl,p.isObject=fe,p.isObjectLike=he,p.isPlainObject=Tr,p.isRegExp=$o,p.isSafeInteger=v1,p.isSet=hl,p.isString=Yi,p.isSymbol=Ye,p.isTypedArray=Wn,p.isUndefined=_1,p.isWeakMap=y1,p.isWeakSet=E1,p.join=S_,p.kebabCase=cy,p.last=ot,p.lastIndexOf=C_,p.lowerCase=ly,p.lowerFirst=fy,p.lt=w1,p.lte=b1,p.max=sE,p.maxBy=oE,p.mean=uE,p.meanBy=aE,p.min=cE,p.minBy=lE,p.stubArray=Wo,p.stubFalse=ko,p.stubObject=Yy,p.stubString=Ky,p.stubTrue=Jy,p.multiply=fE,p.nth=O_,p.noConflict=Uy,p.noop=Bo,p.now=ki,p.pad=hy,p.padEnd=py,p.padStart=dy,p.parseInt=gy,p.random=iy,p.reduce=R0,p.reduceRight=I0,p.repeat=my,p.replace=vy,p.result=X1,p.round=hE,p.runInContext=E,p.sample=T0,p.size=D0,p.snakeCase=_y,p.some=q0,p.sortedIndex=L_,p.sortedIndexBy=N_,p.sortedIndexOf=D_,p.sortedLastIndex=q_,p.sortedLastIndexBy=$_,p.sortedLastIndexOf=F_,p.startCase=Ey,p.startsWith=wy,p.subtract=pE,p.sum=dE,p.sumBy=gE,p.template=by,p.times=Zy,p.toFinite=jt,p.toInteger=B,p.toLength=dl,p.toLower=Sy,p.toNumber=ut,p.toSafeInteger=S1,p.toString=te,p.toUpper=Cy,p.trim=Oy,p.trimEnd=xy,p.trimStart=Ay,p.truncate=Ry,p.unescape=Iy,p.uniqueId=eE,p.upperCase=Py,p.upperFirst=jo,p.each=el,p.eachRight=tl,p.first=Kc,Go(p,function(){var e={};return yt(p,function(t,s){ne.call(p.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),p.VERSION=n,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),tt(["drop","take"],function(e,t){Y.prototype[e]=function(s){s=s===i?1:_e(B(s),0);var c=this.__filtered__&&!t?new Y(this):this.clone();return c.__filtered__?c.__takeCount__=Ie(s,c.__takeCount__):c.__views__.push({size:Ie(s,_t),type:e+(c.__dir__<0?"Right":"")}),c},Y.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var s=t+1,c=s==Yu||s==xd;Y.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:$(f,3),type:s}),d.__filtered__=d.__filtered__||c,d}}),tt(["head","last"],function(e,t){var s="take"+(t?"Right":"");Y.prototype[e]=function(){return this[s](1).value()[0]}}),tt(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[s](1)}}),Y.prototype.compact=function(){return this.filter(Be)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new Y(this):this.map(function(s){return Or(s,e,t)})}),Y.prototype.reject=function(e){return this.filter(zi($(e)))},Y.prototype.slice=function(e,t){e=B(e);var s=this;return s.__filtered__&&(e>0||t<0)?new Y(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=B(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(_t)},yt(Y.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),f=p[c?"take"+(t=="last"?"Right":""):t],d=c||/^find/.test(t);!f||(p.prototype[t]=function(){var m=this.__wrapped__,y=c?[1]:arguments,w=m instanceof Y,O=y[0],x=w||G(m),A=function(z){var J=f.apply(p,Xt([z],y));return c&&T?J[0]:J};x&&s&&typeof O=="function"&&O.length!=1&&(w=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,W=w&&!q;if(!d&&x){m=W?m:new Y(this);var M=e.apply(m,y);return M.__actions__.push({func:Bi,args:[A],thisArg:i}),new rt(M,T)}return F&&W?e.apply(this,y):(M=this.thru(A),F?c?M.value()[0]:M.value():M)})}),tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=gi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var f=arguments;if(c&&!this.__chain__){var d=this.value();return t.apply(G(d)?d:[],f)}return this[s](function(m){return t.apply(G(m)?m:[],f)})}}),yt(Y.prototype,function(e,t){var s=p[t];if(s){var c=s.name+"";ne.call(jn,c)||(jn[c]=[]),jn[c].push({name:t,func:s})}}),jn[$i(i,re).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Im,Y.prototype.reverse=Pm,Y.prototype.value=Tm,p.prototype.at=o0,p.prototype.chain=u0,p.prototype.commit=a0,p.prototype.next=c0,p.prototype.plant=f0,p.prototype.reverse=h0,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=p0,p.prototype.first=p.prototype.head,_r&&(p.prototype[_r]=l0),p},Kt=am();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ye._=Kt,define(function(){return Kt})):cn?((cn.exports=Kt)._=Kt,Hs._=Kt):ye._=Kt}).call(Vn)});var qr=P((PO,Dl)=>{var _E="2.0.0",yE=256,EE=Number.MAX_SAFE_INTEGER||9007199254740991,wE=16;Dl.exports={SEMVER_SPEC_VERSION:_E,MAX_LENGTH:yE,MAX_SAFE_INTEGER:EE,MAX_SAFE_COMPONENT_LENGTH:wE}});var $r=P((TO,ql)=>{var bE=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};ql.exports=bE});var En=P((rn,$l)=>{var{MAX_SAFE_COMPONENT_LENGTH:Ko}=qr(),SE=$r();rn=$l.exports={};var CE=rn.re=[],N=rn.src=[],D=rn.t={},OE=0,k=(i,n,r)=>{let u=OE++;SE(u,n),D[i]=u,N[u]=n,CE[u]=new RegExp(n,r?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","[0-9]+");k("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");k("MAINVERSION",`(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${N[D.NUMERICIDENTIFIER]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${N[D.NUMERICIDENTIFIERLOOSE]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASE",`(?:-(${N[D.PRERELEASEIDENTIFIER]}(?:\\.${N[D.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${N[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${N[D.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER","[0-9A-Za-z-]+");k("BUILD",`(?:\\+(${N[D.BUILDIDENTIFIER]}(?:\\.${N[D.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${N[D.MAINVERSION]}${N[D.PRERELEASE]}?${N[D.BUILD]}?`);k("FULL",`^${N[D.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${N[D.MAINVERSIONLOOSE]}${N[D.PRERELEASELOOSE]}?${N[D.BUILD]}?`);k("LOOSE",`^${N[D.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${N[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${N[D.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:${N[D.PRERELEASE]})?${N[D.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:${N[D.PRERELEASELOOSE]})?${N[D.BUILD]}?)?)?`);k("XRANGE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAINLOOSE]}$`);k("COERCE",`(^|[^\\d])(\\d{1,${Ko}})(?:\\.(\\d{1,${Ko}}))?(?:\\.(\\d{1,${Ko}}))?(?:$|[^\\d])`);k("COERCERTL",N[D.COERCE],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${N[D.LONETILDE]}\\s+`,!0);rn.tildeTrimReplace="$1~";k("TILDE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${N[D.LONECARET]}\\s+`,!0);rn.caretTrimReplace="$1^";k("CARET",`^${N[D.LONECARET]}${N[D.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${N[D.LONECARET]}${N[D.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${N[D.GTLT]}\\s*(${N[D.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]}|${N[D.XRANGEPLAIN]})`,!0);rn.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${N[D.XRANGEPLAIN]})\\s+-\\s+(${N[D.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${N[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${N[D.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0.0.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Fr=P((LO,Fl)=>{var xE=["includePrerelease","loose","rtl"],AE=i=>i?typeof i!="object"?{loose:!0}:xE.filter(n=>i[n]).reduce((n,r)=>(n[r]=!0,n),{}):{};Fl.exports=AE});var Zi=P((NO,Hl)=>{var Ml=/^[0-9]+$/,jl=(i,n)=>{let r=Ml.test(i),u=Ml.test(n);return r&&u&&(i=+i,n=+n),i===n?0:r&&!u?-1:u&&!r?1:i<n?-1:1},RE=(i,n)=>jl(n,i);Hl.exports={compareIdentifiers:jl,rcompareIdentifiers:RE}});var Te=P((DO,Wl)=>{var Qi=$r(),{MAX_LENGTH:Ul,MAX_SAFE_INTEGER:es}=qr(),{re:Gl,t:Bl}=En(),IE=Fr(),{compareIdentifiers:Mr}=Zi(),at=class{constructor(n,r){if(r=IE(r),n instanceof at){if(n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease)return n;n=n.version}else if(typeof n!="string")throw new TypeError(`Invalid Version: ${n}`);if(n.length>Ul)throw new TypeError(`version is longer than ${Ul} characters`);Qi("SemVer",n,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let u=n.trim().match(r.loose?Gl[Bl.LOOSE]:Gl[Bl.FULL]);if(!u)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>es||this.major<0)throw new TypeError("Invalid major version");if(this.minor>es||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>es||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o<es)return o}return a}):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(n){if(Qi("SemVer.compare",this.version,this.options,n),!(n instanceof at)){if(typeof n=="string"&&n===this.version)return 0;n=new at(n,this.options)}return n.version===this.version?0:this.compareMain(n)||this.comparePre(n)}compareMain(n){return n instanceof at||(n=new at(n,this.options)),Mr(this.major,n.major)||Mr(this.minor,n.minor)||Mr(this.patch,n.patch)}comparePre(n){if(n instanceof at||(n=new at(n,this.options)),this.prerelease.length&&!n.prerelease.length)return-1;if(!this.prerelease.length&&n.prerelease.length)return 1;if(!this.prerelease.length&&!n.prerelease.length)return 0;let r=0;do{let u=this.prerelease[r],a=n.prerelease[r];if(Qi("prerelease compare",r,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Mr(u,a)}while(++r)}compareBuild(n){n instanceof at||(n=new at(n,this.options));let r=0;do{let u=this.build[r],a=n.build[r];if(Qi("prerelease compare",r,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Mr(u,a)}while(++r)}inc(n,r){switch(n){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);u===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${n}`)}return this.format(),this.raw=this.version,this}};Wl.exports=at});var wn=P((qO,Xl)=>{var{MAX_LENGTH:PE}=qr(),{re:kl,t:Vl}=En(),zl=Te(),TE=Fr(),LE=(i,n)=>{if(n=TE(n),i instanceof zl)return i;if(typeof i!="string"||i.length>PE||!(n.loose?kl[Vl.LOOSE]:kl[Vl.FULL]).test(i))return null;try{return new zl(i,n)}catch{return null}};Xl.exports=LE});var Kl=P(($O,Yl)=>{var NE=wn(),DE=(i,n)=>{let r=NE(i,n);return r?r.version:null};Yl.exports=DE});var Zl=P((FO,Jl)=>{var qE=wn(),$E=(i,n)=>{let r=qE(i.trim().replace(/^[=v]+/,""),n);return r?r.version:null};Jl.exports=$E});var ef=P((MO,Ql)=>{var FE=Te(),ME=(i,n,r,u)=>{typeof r=="string"&&(u=r,r=void 0);try{return new FE(i,r).inc(n,u).version}catch{return null}};Ql.exports=ME});var ct=P((jO,nf)=>{var tf=Te(),jE=(i,n,r)=>new tf(i,r).compare(new tf(n,r));nf.exports=jE});var ts=P((HO,rf)=>{var HE=ct(),UE=(i,n,r)=>HE(i,n,r)===0;rf.exports=UE});var uf=P((UO,of)=>{var sf=wn(),GE=ts(),BE=(i,n)=>{if(GE(i,n))return null;{let r=sf(i),u=sf(n),a=r.prerelease.length||u.prerelease.length,o=a?"pre":"",h=a?"prerelease":"";for(let g in r)if((g==="major"||g==="minor"||g==="patch")&&r[g]!==u[g])return o+g;return h}};of.exports=BE});var cf=P((GO,af)=>{var WE=Te(),kE=(i,n)=>new WE(i,n).major;af.exports=kE});var ff=P((BO,lf)=>{var VE=Te(),zE=(i,n)=>new VE(i,n).minor;lf.exports=zE});var pf=P((WO,hf)=>{var XE=Te(),YE=(i,n)=>new XE(i,n).patch;hf.exports=YE});var gf=P((kO,df)=>{var KE=wn(),JE=(i,n)=>{let r=KE(i,n);return r&&r.prerelease.length?r.prerelease:null};df.exports=JE});var vf=P((VO,mf)=>{var ZE=ct(),QE=(i,n,r)=>ZE(n,i,r);mf.exports=QE});var yf=P((zO,_f)=>{var ew=ct(),tw=(i,n)=>ew(i,n,!0);_f.exports=tw});var ns=P((XO,wf)=>{var Ef=Te(),nw=(i,n,r)=>{let u=new Ef(i,r),a=new Ef(n,r);return u.compare(a)||u.compareBuild(a)};wf.exports=nw});var Sf=P((YO,bf)=>{var rw=ns(),iw=(i,n)=>i.sort((r,u)=>rw(r,u,n));bf.exports=iw});var Of=P((KO,Cf)=>{var sw=ns(),ow=(i,n)=>i.sort((r,u)=>sw(u,r,n));Cf.exports=ow});var jr=P((JO,xf)=>{var uw=ct(),aw=(i,n,r)=>uw(i,n,r)>0;xf.exports=aw});var rs=P((ZO,Af)=>{var cw=ct(),lw=(i,n,r)=>cw(i,n,r)<0;Af.exports=lw});var Jo=P((QO,Rf)=>{var fw=ct(),hw=(i,n,r)=>fw(i,n,r)!==0;Rf.exports=hw});var is=P((ex,If)=>{var pw=ct(),dw=(i,n,r)=>pw(i,n,r)>=0;If.exports=dw});var ss=P((tx,Pf)=>{var gw=ct(),mw=(i,n,r)=>gw(i,n,r)<=0;Pf.exports=mw});var Zo=P((nx,Tf)=>{var vw=ts(),_w=Jo(),yw=jr(),Ew=is(),ww=rs(),bw=ss(),Sw=(i,n,r,u)=>{switch(n){case"===":return typeof i=="object"&&(i=i.version),typeof r=="object"&&(r=r.version),i===r;case"!==":return typeof i=="object"&&(i=i.version),typeof r=="object"&&(r=r.version),i!==r;case"":case"=":case"==":return vw(i,r,u);case"!=":return _w(i,r,u);case">":return yw(i,r,u);case">=":return Ew(i,r,u);case"<":return ww(i,r,u);case"<=":return bw(i,r,u);default:throw new TypeError(`Invalid operator: ${n}`)}};Tf.exports=Sw});var Nf=P((rx,Lf)=>{var Cw=Te(),Ow=wn(),{re:os,t:us}=En(),xw=(i,n)=>{if(i instanceof Cw)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;n=n||{};let r=null;if(!n.rtl)r=i.match(os[us.COERCE]);else{let u;for(;(u=os[us.COERCERTL].exec(i))&&(!r||r.index+r[0].length!==i.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),os[us.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;os[us.COERCERTL].lastIndex=-1}return r===null?null:Ow(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,n)};Lf.exports=xw});var qf=P((ix,Df)=>{"use strict";Df.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}});var Ff=P((sx,$f)=>{"use strict";$f.exports=Z;Z.Node=bn;Z.create=Z;function Z(i){var n=this;if(n instanceof Z||(n=new Z),n.tail=null,n.head=null,n.length=0,i&&typeof i.forEach=="function")i.forEach(function(a){n.push(a)});else if(arguments.length>0)for(var r=0,u=arguments.length;r<u;r++)n.push(arguments[r]);return n}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var n=i.next,r=i.prev;return n&&(n.prev=r),r&&(r.next=n),i===this.head&&(this.head=n),i===this.tail&&(this.tail=r),i.list.length--,i.next=null,i.prev=null,i.list=null,n};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var n=this.head;i.list=this,i.next=n,n&&(n.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var n=this.tail;i.list=this,i.prev=n,n&&(n.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,n=arguments.length;i<n;i++)Rw(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,n=arguments.length;i<n;i++)Iw(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,n){n=n||this;for(var r=this.head,u=0;r!==null;u++)i.call(n,r.value,u,this),r=r.next};Z.prototype.forEachReverse=function(i,n){n=n||this;for(var r=this.tail,u=this.length-1;r!==null;u--)i.call(n,r.value,u,this),r=r.prev};Z.prototype.get=function(i){for(var n=0,r=this.head;r!==null&&n<i;n++)r=r.next;if(n===i&&r!==null)return r.value};Z.prototype.getReverse=function(i){for(var n=0,r=this.tail;r!==null&&n<i;n++)r=r.prev;if(n===i&&r!==null)return r.value};Z.prototype.map=function(i,n){n=n||this;for(var r=new Z,u=this.head;u!==null;)r.push(i.call(n,u.value,this)),u=u.next;return r};Z.prototype.mapReverse=function(i,n){n=n||this;for(var r=new Z,u=this.tail;u!==null;)r.push(i.call(n,u.value,this)),u=u.prev;return r};Z.prototype.reduce=function(i,n){var r,u=this.head;if(arguments.length>1)r=n;else if(this.head)u=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;u!==null;a++)r=i(r,u.value,a),u=u.next;return r};Z.prototype.reduceReverse=function(i,n){var r,u=this.tail;if(arguments.length>1)r=n;else if(this.tail)u=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;u!==null;a--)r=i(r,u.value,a),u=u.prev;return r};Z.prototype.toArray=function(){for(var i=new Array(this.length),n=0,r=this.head;r!==null;n++)i[n]=r.value,r=r.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),n=0,r=this.tail;r!==null;n++)i[n]=r.value,r=r.prev;return i};Z.prototype.slice=function(i,n){n=n||this.length,n<0&&(n+=this.length),i=i||0,i<0&&(i+=this.length);var r=new Z;if(n<i||n<0)return r;i<0&&(i=0),n>this.length&&(n=this.length);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(;a!==null&&u<n;u++,a=a.next)r.push(a.value);return r};Z.prototype.sliceReverse=function(i,n){n=n||this.length,n<0&&(n+=this.length),i=i||0,i<0&&(i+=this.length);var r=new Z;if(n<i||n<0)return r;i<0&&(i=0),n>this.length&&(n=this.length);for(var u=this.length,a=this.tail;a!==null&&u>n;u--)a=a.prev;for(;a!==null&&u>i;u--,a=a.prev)r.push(a.value);return r};Z.prototype.splice=function(i,n,...r){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(var o=[],u=0;a&&u<n;u++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var u=0;u<r.length;u++)a=Aw(this,a,r[u]);return o};Z.prototype.reverse=function(){for(var i=this.head,n=this.tail,r=i;r!==null;r=r.prev){var u=r.prev;r.prev=r.next,r.next=u}return this.head=n,this.tail=i,this};function Aw(i,n,r){var u=n===i.head?new bn(r,null,n,i):new bn(r,n,n.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function Rw(i,n){i.tail=new bn(n,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function Iw(i,n){i.head=new bn(n,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function bn(i,n,r,u){if(!(this instanceof bn))return new bn(i,n,r,u);this.list=u,this.value=i,n?(n.next=this,this.prev=n):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{qf()(Z)}catch{}});var Wf=P((ox,Bf)=>{"use strict";var Pw=Ff(),Sn=Symbol("max"),Ut=Symbol("length"),Xn=Symbol("lengthCalculator"),Hr=Symbol("allowStale"),Cn=Symbol("maxAge"),Gt=Symbol("dispose"),Mf=Symbol("noDisposeOnSet"),we=Symbol("lruList"),vt=Symbol("cache"),jf=Symbol("updateAgeOnGet"),Qo=()=>1,Hf=class{constructor(n){if(typeof n=="number"&&(n={max:n}),n||(n={}),n.max&&(typeof n.max!="number"||n.max<0))throw new TypeError("max must be a non-negative number");let r=this[Sn]=n.max||1/0,u=n.length||Qo;if(this[Xn]=typeof u!="function"?Qo:u,this[Hr]=n.stale||!1,n.maxAge&&typeof n.maxAge!="number")throw new TypeError("maxAge must be a number");this[Cn]=n.maxAge||0,this[Gt]=n.dispose,this[Mf]=n.noDisposeOnSet||!1,this[jf]=n.updateAgeOnGet||!1,this.reset()}set max(n){if(typeof n!="number"||n<0)throw new TypeError("max must be a non-negative number");this[Sn]=n||1/0,Ur(this)}get max(){return this[Sn]}set allowStale(n){this[Hr]=!!n}get allowStale(){return this[Hr]}set maxAge(n){if(typeof n!="number")throw new TypeError("maxAge must be a non-negative number");this[Cn]=n,Ur(this)}get maxAge(){return this[Cn]}set lengthCalculator(n){typeof n!="function"&&(n=Qo),n!==this[Xn]&&(this[Xn]=n,this[Ut]=0,this[we].forEach(r=>{r.length=this[Xn](r.value,r.key),this[Ut]+=r.length})),Ur(this)}get lengthCalculator(){return this[Xn]}get length(){return this[Ut]}get itemCount(){return this[we].length}rforEach(n,r){r=r||this;for(let u=this[we].tail;u!==null;){let a=u.prev;Gf(this,n,u,r),u=a}}forEach(n,r){r=r||this;for(let u=this[we].head;u!==null;){let a=u.next;Gf(this,n,u,r),u=a}}keys(){return this[we].toArray().map(n=>n.key)}values(){return this[we].toArray().map(n=>n.value)}reset(){this[Gt]&&this[we]&&this[we].length&&this[we].forEach(n=>this[Gt](n.key,n.value)),this[vt]=new Map,this[we]=new Pw,this[Ut]=0}dump(){return this[we].map(n=>as(this,n)?!1:{k:n.key,v:n.value,e:n.now+(n.maxAge||0)}).toArray().filter(n=>n)}dumpLru(){return this[we]}set(n,r,u){if(u=u||this[Cn],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Xn](r,n);if(this[vt].has(n)){if(o>this[Sn])return Yn(this,this[vt].get(n)),!1;let _=this[vt].get(n).value;return this[Gt]&&(this[Mf]||this[Gt](n,_.value)),_.now=a,_.maxAge=u,_.value=r,this[Ut]+=o-_.length,_.length=o,this.get(n),Ur(this),!0}let h=new Uf(n,r,o,a,u);return h.length>this[Sn]?(this[Gt]&&this[Gt](n,r),!1):(this[Ut]+=h.length,this[we].unshift(h),this[vt].set(n,this[we].head),Ur(this),!0)}has(n){if(!this[vt].has(n))return!1;let r=this[vt].get(n).value;return!as(this,r)}get(n){return eu(this,n,!0)}peek(n){return eu(this,n,!1)}pop(){let n=this[we].tail;return n?(Yn(this,n),n.value):null}del(n){Yn(this,this[vt].get(n))}load(n){this.reset();let r=Date.now();for(let u=n.length-1;u>=0;u--){let a=n[u],o=a.e||0;if(o===0)this.set(a.k,a.v);else{let h=o-r;h>0&&this.set(a.k,a.v,h)}}}prune(){this[vt].forEach((n,r)=>eu(this,r,!1))}},eu=(i,n,r)=>{let u=i[vt].get(n);if(u){let a=u.value;if(as(i,a)){if(Yn(i,u),!i[Hr])return}else r&&(i[jf]&&(u.value.now=Date.now()),i[we].unshiftNode(u));return a.value}},as=(i,n)=>{if(!n||!n.maxAge&&!i[Cn])return!1;let r=Date.now()-n.now;return n.maxAge?r>n.maxAge:i[Cn]&&r>i[Cn]},Ur=i=>{if(i[Ut]>i[Sn])for(let n=i[we].tail;i[Ut]>i[Sn]&&n!==null;){let r=n.prev;Yn(i,n),n=r}},Yn=(i,n)=>{if(n){let r=n.value;i[Gt]&&i[Gt](r.key,r.value),i[Ut]-=r.length,i[vt].delete(r.key),i[we].removeNode(n)}},Uf=class{constructor(n,r,u,a,o){this.key=n,this.value=r,this.length=u,this.now=a,this.maxAge=o||0}},Gf=(i,n,r,u)=>{let a=r.value;as(i,a)&&(Yn(i,r),i[Hr]||(a=void 0)),a&&n.call(u,a.value,a.key,i)};Bf.exports=Hf});var lt=P((ux,Xf)=>{var Kn=class{constructor(n,r){if(r=Lw(r),n instanceof Kn)return n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease?n:new Kn(n.raw,r);if(n instanceof tu)return this.raw=n.value,this.set=[[n]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=n,this.set=n.split(/\s*\|\|\s*/).map(u=>this.parseRange(u.trim())).filter(u=>u.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${n}`);if(this.set.length>1){let u=this.set[0];if(this.set=this.set.filter(a=>!Vf(a[0])),this.set.length===0)this.set=[u];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&Fw(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(n=>n.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(n){n=n.trim();let u=`parseRange:${Object.keys(this.options).join(",")}:${n}`,a=kf.get(u);if(a)return a;let o=this.options.loose,h=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];n=n.replace(h,zw(this.options.includePrerelease)),ge("hyphen replace",n),n=n.replace(Le[xe.COMPARATORTRIM],Dw),ge("comparator trim",n,Le[xe.COMPARATORTRIM]),n=n.replace(Le[xe.TILDETRIM],qw),n=n.replace(Le[xe.CARETTRIM],$w),n=n.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],_=n.split(" ").map(I=>Mw(I,this.options)).join(" ").split(/\s+/).map(I=>Vw(I,this.options)).filter(this.options.loose?I=>!!I.match(g):()=>!0).map(I=>new tu(I,this.options)),l=_.length,v=new Map;for(let I of _){if(Vf(I))return[I];v.set(I.value,I)}v.size>1&&v.has("")&&v.delete("");let b=[...v.values()];return kf.set(u,b),b}intersects(n,r){if(!(n instanceof Kn))throw new TypeError("a Range is required");return this.set.some(u=>zf(u,r)&&n.set.some(a=>zf(a,r)&&u.every(o=>a.every(h=>o.intersects(h,r)))))}test(n){if(!n)return!1;if(typeof n=="string")try{n=new Nw(n,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Xw(this.set[r],n,this.options))return!0;return!1}};Xf.exports=Kn;var Tw=Wf(),kf=new Tw({max:1e3}),Lw=Fr(),tu=Gr(),ge=$r(),Nw=Te(),{re:Le,t:xe,comparatorTrimReplace:Dw,tildeTrimReplace:qw,caretTrimReplace:$w}=En(),Vf=i=>i.value==="<0.0.0-0",Fw=i=>i.value==="",zf=(i,n)=>{let r=!0,u=i.slice(),a=u.pop();for(;r&&u.length;)r=u.every(o=>a.intersects(o,n)),a=u.pop();return r},Mw=(i,n)=>(ge("comp",i,n),i=Uw(i,n),ge("caret",i),i=jw(i,n),ge("tildes",i),i=Bw(i,n),ge("xrange",i),i=kw(i,n),ge("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",jw=(i,n)=>i.trim().split(/\s+/).map(r=>Hw(r,n)).join(" "),Hw=(i,n)=>{let r=n.loose?Le[xe.TILDELOOSE]:Le[xe.TILDE];return i.replace(r,(u,a,o,h,g)=>{ge("tilde",i,u,a,o,h,g);let _;return Fe(a)?_="":Fe(o)?_=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(h)?_=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(ge("replaceTilde pr",g),_=`>=${a}.${o}.${h}-${g} <${a}.${+o+1}.0-0`):_=`>=${a}.${o}.${h} <${a}.${+o+1}.0-0`,ge("tilde return",_),_})},Uw=(i,n)=>i.trim().split(/\s+/).map(r=>Gw(r,n)).join(" "),Gw=(i,n)=>{ge("caret",i,n);let r=n.loose?Le[xe.CARETLOOSE]:Le[xe.CARET],u=n.includePrerelease?"-0":"";return i.replace(r,(a,o,h,g,_)=>{ge("caret",i,a,o,h,g,_);let l;return Fe(o)?l="":Fe(h)?l=`>=${o}.0.0${u} <${+o+1}.0.0-0`:Fe(g)?o==="0"?l=`>=${o}.${h}.0${u} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.0${u} <${+o+1}.0.0-0`:_?(ge("replaceCaret pr",_),o==="0"?h==="0"?l=`>=${o}.${h}.${g}-${_} <${o}.${h}.${+g+1}-0`:l=`>=${o}.${h}.${g}-${_} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.${g}-${_} <${+o+1}.0.0-0`):(ge("no pr"),o==="0"?h==="0"?l=`>=${o}.${h}.${g}${u} <${o}.${h}.${+g+1}-0`:l=`>=${o}.${h}.${g}${u} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.${g} <${+o+1}.0.0-0`),ge("caret return",l),l})},Bw=(i,n)=>(ge("replaceXRanges",i,n),i.split(/\s+/).map(r=>Ww(r,n)).join(" ")),Ww=(i,n)=>{i=i.trim();let r=n.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(r,(u,a,o,h,g,_)=>{ge("xRange",i,u,a,o,h,g,_);let l=Fe(o),v=l||Fe(h),b=v||Fe(g),I=b;return a==="="&&I&&(a=""),_=n.includePrerelease?"-0":"",l?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&I?(v&&(h=0),g=0,a===">"?(a=">=",v?(o=+o+1,h=0,g=0):(h=+h+1,g=0)):a==="<="&&(a="<",v?o=+o+1:h=+h+1),a==="<"&&(_="-0"),u=`${a+o}.${h}.${g}${_}`):v?u=`>=${o}.0.0${_} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${h}.0${_} <${o}.${+h+1}.0-0`),ge("xRange return",u),u})},kw=(i,n)=>(ge("replaceStars",i,n),i.trim().replace(Le[xe.STAR],"")),Vw=(i,n)=>(ge("replaceGTE0",i,n),i.trim().replace(Le[n.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),zw=i=>(n,r,u,a,o,h,g,_,l,v,b,I,R)=>(Fe(u)?r="":Fe(a)?r=`>=${u}.0.0${i?"-0":""}`:Fe(o)?r=`>=${u}.${a}.0${i?"-0":""}`:h?r=`>=${r}`:r=`>=${r}${i?"-0":""}`,Fe(l)?_="":Fe(v)?_=`<${+l+1}.0.0-0`:Fe(b)?_=`<${l}.${+v+1}.0-0`:I?_=`<=${l}.${v}.${b}-${I}`:i?_=`<${l}.${v}.${+b+1}-0`:_=`<=${_}`,`${r} ${_}`.trim()),Xw=(i,n,r)=>{for(let u=0;u<i.length;u++)if(!i[u].test(n))return!1;if(n.prerelease.length&&!r.includePrerelease){for(let u=0;u<i.length;u++)if(ge(i[u].semver),i[u].semver!==tu.ANY&&i[u].semver.prerelease.length>0){let a=i[u].semver;if(a.major===n.major&&a.minor===n.minor&&a.patch===n.patch)return!0}return!1}return!0}});var Gr=P((ax,Qf)=>{var Br=Symbol("SemVer ANY"),Wr=class{static get ANY(){return Br}constructor(n,r){if(r=Yw(r),n instanceof Wr){if(n.loose===!!r.loose)return n;n=n.value}ru("comparator",n,r),this.options=r,this.loose=!!r.loose,this.parse(n),this.semver===Br?this.value="":this.value=this.operator+this.semver.version,ru("comp",this)}parse(n){let r=this.options.loose?Yf[Kf.COMPARATORLOOSE]:Yf[Kf.COMPARATOR],u=n.match(r);if(!u)throw new TypeError(`Invalid comparator: ${n}`);this.operator=u[1]!==void 0?u[1]:"",this.operator==="="&&(this.operator=""),u[2]?this.semver=new Jf(u[2],this.options.loose):this.semver=Br}toString(){return this.value}test(n){if(ru("Comparator.test",n,this.options.loose),this.semver===Br||n===Br)return!0;if(typeof n=="string")try{n=new Jf(n,this.options)}catch{return!1}return nu(n,this.operator,this.semver,this.options)}intersects(n,r){if(!(n instanceof Wr))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Zf(n.value,r).test(this.value);if(n.operator==="")return n.value===""?!0:new Zf(this.value,r).test(n.semver);let u=(this.operator===">="||this.operator===">")&&(n.operator===">="||n.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(n.operator==="<="||n.operator==="<"),o=this.semver.version===n.semver.version,h=(this.operator===">="||this.operator==="<=")&&(n.operator===">="||n.operator==="<="),g=nu(this.semver,"<",n.semver,r)&&(this.operator===">="||this.operator===">")&&(n.operator==="<="||n.operator==="<"),_=nu(this.semver,">",n.semver,r)&&(this.operator==="<="||this.operator==="<")&&(n.operator===">="||n.operator===">");return u||a||o&&h||g||_}};Qf.exports=Wr;var Yw=Fr(),{re:Yf,t:Kf}=En(),nu=Zo(),ru=$r(),Jf=Te(),Zf=lt()});var kr=P((cx,eh)=>{var Kw=lt(),Jw=(i,n,r)=>{try{n=new Kw(n,r)}catch{return!1}return n.test(i)};eh.exports=Jw});var nh=P((lx,th)=>{var Zw=lt(),Qw=(i,n)=>new Zw(i,n).set.map(r=>r.map(u=>u.value).join(" ").trim().split(" "));th.exports=Qw});var ih=P((fx,rh)=>{var eb=Te(),tb=lt(),nb=(i,n,r)=>{let u=null,a=null,o=null;try{o=new tb(n,r)}catch{return null}return i.forEach(h=>{o.test(h)&&(!u||a.compare(h)===-1)&&(u=h,a=new eb(u,r))}),u};rh.exports=nb});var oh=P((hx,sh)=>{var rb=Te(),ib=lt(),sb=(i,n,r)=>{let u=null,a=null,o=null;try{o=new ib(n,r)}catch{return null}return i.forEach(h=>{o.test(h)&&(!u||a.compare(h)===1)&&(u=h,a=new rb(u,r))}),u};sh.exports=sb});var ch=P((px,ah)=>{var iu=Te(),ob=lt(),uh=jr(),ub=(i,n)=>{i=new ob(i,n);let r=new iu("0.0.0");if(i.test(r)||(r=new iu("0.0.0-0"),i.test(r)))return r;r=null;for(let u=0;u<i.set.length;++u){let a=i.set[u],o=null;a.forEach(h=>{let g=new iu(h.semver.version);switch(h.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||uh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),o&&(!r||uh(r,o))&&(r=o)}return r&&i.test(r)?r:null};ah.exports=ub});var fh=P((dx,lh)=>{var ab=lt(),cb=(i,n)=>{try{return new ab(i,n).range||"*"}catch{return null}};lh.exports=cb});var cs=P((gx,gh)=>{var lb=Te(),hh=Gr(),{ANY:fb}=hh,hb=lt(),pb=kr(),ph=jr(),dh=rs(),db=ss(),gb=is(),mb=(i,n,r,u)=>{i=new lb(i,u),n=new hb(n,u);let a,o,h,g,_;switch(r){case">":a=ph,o=db,h=dh,g=">",_=">=";break;case"<":a=dh,o=gb,h=ph,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pb(i,n,u))return!1;for(let l=0;l<n.set.length;++l){let v=n.set[l],b=null,I=null;if(v.forEach(R=>{R.semver===fb&&(R=new hh(">=0.0.0")),b=b||R,I=I||R,a(R.semver,b.semver,u)?b=R:h(R.semver,I.semver,u)&&(I=R)}),b.operator===g||b.operator===_||(!I.operator||I.operator===g)&&o(i,I.semver))return!1;if(I.operator===_&&h(i,I.semver))return!1}return!0};gh.exports=mb});var vh=P((mx,mh)=>{var vb=cs(),_b=(i,n,r)=>vb(i,n,">",r);mh.exports=_b});var yh=P((vx,_h)=>{var yb=cs(),Eb=(i,n,r)=>yb(i,n,"<",r);_h.exports=Eb});var bh=P((_x,wh)=>{var Eh=lt(),wb=(i,n,r)=>(i=new Eh(i,r),n=new Eh(n,r),i.intersects(n));wh.exports=wb});var Ch=P((yx,Sh)=>{var bb=kr(),Sb=ct();Sh.exports=(i,n,r)=>{let u=[],a=null,o=null,h=i.sort((v,b)=>Sb(v,b,r));for(let v of h)bb(v,n,r)?(o=v,a||(a=v)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[v,b]of u)v===b?g.push(v):!b&&v===h[0]?g.push("*"):b?v===h[0]?g.push(`<=${b}`):g.push(`${v} - ${b}`):g.push(`>=${v}`);let _=g.join(" || "),l=typeof n.raw=="string"?n.raw:String(n);return _.length<l.length?_:n}});var Ih=P((Ex,Rh)=>{var Oh=lt(),ls=Gr(),{ANY:su}=ls,Vr=kr(),ou=ct(),Cb=(i,n,r={})=>{if(i===n)return!0;i=new Oh(i,r),n=new Oh(n,r);let u=!1;e:for(let a of i.set){for(let o of n.set){let h=Ob(a,o,r);if(u=u||h!==null,h)continue e}if(u)return!1}return!0},Ob=(i,n,r)=>{if(i===n)return!0;if(i.length===1&&i[0].semver===su){if(n.length===1&&n[0].semver===su)return!0;r.includePrerelease?i=[new ls(">=0.0.0-0")]:i=[new ls(">=0.0.0")]}if(n.length===1&&n[0].semver===su){if(r.includePrerelease)return!0;n=[new ls(">=0.0.0")]}let u=new Set,a,o;for(let R of i)R.operator===">"||R.operator===">="?a=xh(a,R,r):R.operator==="<"||R.operator==="<="?o=Ah(o,R,r):u.add(R.semver);if(u.size>1)return null;let h;if(a&&o){if(h=ou(a.semver,o.semver,r),h>0)return null;if(h===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let R of u){if(a&&!Vr(R,String(a),r)||o&&!Vr(R,String(o),r))return null;for(let H of n)if(!Vr(R,String(H),r))return!1;return!0}let g,_,l,v,b=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,I=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1;b&&b.prerelease.length===1&&o.operator==="<"&&b.prerelease[0]===0&&(b=!1);for(let R of n){if(v=v||R.operator===">"||R.operator===">=",l=l||R.operator==="<"||R.operator==="<=",a){if(I&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===I.major&&R.semver.minor===I.minor&&R.semver.patch===I.patch&&(I=!1),R.operator===">"||R.operator===">="){if(g=xh(a,R,r),g===R&&g!==a)return!1}else if(a.operator===">="&&!Vr(a.semver,String(R),r))return!1}if(o){if(b&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===b.major&&R.semver.minor===b.minor&&R.semver.patch===b.patch&&(b=!1),R.operator==="<"||R.operator==="<="){if(_=Ah(o,R,r),_===R&&_!==o)return!1}else if(o.operator==="<="&&!Vr(o.semver,String(R),r))return!1}if(!R.operator&&(o||a)&&h!==0)return!1}return!(a&&l&&!o&&h!==0||o&&v&&!a&&h!==0||I||b)},xh=(i,n,r)=>{if(!i)return n;let u=ou(i.semver,n.semver,r);return u>0?i:u<0||n.operator===">"&&i.operator===">="?n:i},Ah=(i,n,r)=>{if(!i)return n;let u=ou(i.semver,n.semver,r);return u<0?i:u>0||n.operator==="<"&&i.operator==="<="?n:i};Rh.exports=Cb});var Th=P((wx,Ph)=>{var uu=En();Ph.exports={re:uu.re,src:uu.src,tokens:uu.t,SEMVER_SPEC_VERSION:qr().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Zi().compareIdentifiers,rcompareIdentifiers:Zi().rcompareIdentifiers,parse:wn(),valid:Kl(),clean:Zl(),inc:ef(),diff:uf(),major:cf(),minor:ff(),patch:pf(),prerelease:gf(),compare:ct(),rcompare:vf(),compareLoose:yf(),compareBuild:ns(),sort:Sf(),rsort:Of(),gt:jr(),lt:rs(),eq:ts(),neq:Jo(),gte:is(),lte:ss(),cmp:Zo(),coerce:Nf(),Comparator:Gr(),Range:lt(),satisfies:kr(),toComparators:nh(),maxSatisfying:ih(),minSatisfying:oh(),minVersion:ch(),validRange:fh(),outside:cs(),gtr:vh(),ltr:yh(),intersects:bh(),simplifyRange:Ch(),subset:Ih()}});var Ae=P(On=>{"use strict";var Lh=On&&On.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(On,"__esModule",{value:!0});On.getCoreVersion=void 0;var Nh=Lh(require("path")),Dh=Lh(require("fs")),xb=Th(),Ab=require("@serverless-devs/core"),au=Nh.default.join(Ab.getRootHome(),"cache","core"),qh=Nh.default.join(au,"package.json");function Rb(){if(Dh.default.existsSync(qh)){var i=require("@serverless-devs/core/package.json").version,n=$h();return xb.gt(n,i)?require(au):require("@serverless-devs/core")}return require("@serverless-devs/core")}function $h(){return Dh.default.existsSync(au)?require(qh).version:void 0}On.getCoreVersion=$h;On.default=Rb()});var Fh=P((Sx,Ib)=>{Ib.exports={name:"@serverless-devs/s",version:"2.0.97-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"latest"}}});var bt=P(j=>{"use strict";var Pb=j&&j.__createBinding||(Object.create?function(i,n,r,u){u===void 0&&(u=r),Object.defineProperty(i,u,{enumerable:!0,get:function(){return n[r]}})}:function(i,n,r,u){u===void 0&&(u=r),i[u]=n[r]}),Tb=j&&j.__setModuleDefault||(Object.create?function(i,n){Object.defineProperty(i,"default",{enumerable:!0,value:n})}:function(i,n){i.default=n}),Lb=j&&j.__importStar||function(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)r!=="default"&&Object.prototype.hasOwnProperty.call(i,r)&&Pb(n,i,r);return Tb(n,i),n},Mh=j&&j.__awaiter||function(i,n,r,u){function a(o){return o instanceof r?o:new r(function(h){h(o)})}return new(r||(r=Promise))(function(o,h){function g(v){try{l(u.next(v))}catch(b){h(b)}}function _(v){try{l(u.throw(v))}catch(b){h(b)}}function l(v){v.done?o(v.value):a(v.value).then(g,_)}l((u=u.apply(i,n||[])).next())})},jh=j&&j.__generator||function(i,n){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,h;return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(l){return function(v){return _([l,v])}}function _(l){if(u)throw new TypeError("Generator is already executing.");for(;r;)try{if(u=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(i,r)}catch(v){l=[6,v],a=0}finally{u=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fs=j&&j.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(j,"__esModule",{value:!0});j.emoji=j.mark=j.replaceTemplate=j.getTemplatekey=j.replaceFun=j.getLang=j.printn=j.checkTemplateFile=j.checkAndReturnTemplateFile=j.yamlLoad=j.getFolderSize=j.getVersion=j.getErrorMessage=j.bgRed=j.yellow=j.red=void 0;var be=fs(require("path")),Ze=fs(require("fs")),cu=fs(zn()),Nb=fs(require("os")),Db=xn(),Jn=Lb(Ae()),hs=Jn.default.colors,qb=Jn.default.jsyaml,$b=Jn.default.makeUnderLine,Hh=Jn.default.isDebugMode,Uh=Fh();j.red=hs.hex("#fd5750");j.yellow=hs.hex("#F3F99D");j.bgRed=hs.hex("#000").bgHex("#fd5750");var Fb=function(i){var n=Hh?Hh():void 0;if(n){console.log(i);return}var r=i.message?i.message:"";try{var u=JSON.parse(r);console.log("".concat((0,j.bgRed)("ERROR:"),`
34
+ }`;var W=Cl(function(){return ee(d,q+"return "+A).apply(i,m)});if(W.source=A,qo(W))throw W;return W}function Sy(e){return te(e).toLowerCase()}function Cy(e){return te(e).toUpperCase()}function Oy(e,t,s){if(e=te(e),e&&(s||t===i))return Na(e);if(!e||!(t=Xe(t)))return e;var c=pt(e),f=pt(t),d=Da(c,f),m=qa(c,f)+1;return tn(c,d,m).join("")}function xy(e,t,s){if(e=te(e),e&&(s||t===i))return e.slice(0,Fa(e)+1);if(!e||!(t=Xe(t)))return e;var c=pt(e),f=qa(c,pt(t))+1;return tn(c,0,f).join("")}function Ay(e,t,s){if(e=te(e),e&&(s||t===i))return e.replace(Ds,"");if(!e||!(t=Xe(t)))return e;var c=pt(e),f=Da(c,pt(t));return tn(c,f).join("")}function Ry(e,t){var s=wd,c=bd;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?B(t.length):s,c="omission"in t?Xe(t.omission):c}e=te(e);var d=e.length;if(qn(e)){var m=pt(e);d=m.length}if(s>=d)return e;var y=s-$n(c);if(y<1)return c;var w=m?tn(m,0,y).join(""):e.slice(0,y);if(f===i)return w+c;if(m&&(y+=w.length-y),$o(f)){if(e.slice(y).search(f)){var O,x=w;for(f.global||(f=Js(f.source,te(ta.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;w=w.slice(0,A===i?y:A)}}else if(e.indexOf(Xe(f),y)!=y){var T=w.lastIndexOf(f);T>-1&&(w=w.slice(0,T))}return w+c}function Iy(e){return e=te(e),e&&Hd.test(e)?e.replace(Zu,im):e}var Py=Gn(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),jo=Oc("toUpperCase");function Sl(e,t,s){return e=te(e),t=s?i:t,t===i?Qg(e)?um(e):Wg(e):e.match(t)||[]}var Cl=V(function(e,t){try{return Ve(e,i,t)}catch(s){return qo(s)?s:new U(s)}}),Ty=$t(function(e,t){return tt(t,function(s){s=wt(s),Dt(e,s,No(e[s],e))}),e});function Ly(e){var t=e==null?0:e.length,s=$();return e=t?le(e,function(c){if(typeof c[1]!="function")throw new nt(a);return[s(c[0]),c[1]]}):[],V(function(c){for(var f=-1;++f<t;){var d=e[f];if(Ve(d[0],this,c))return Ve(d[1],this,c)}})}function Ny(e){return iv(it(e,l))}function Ho(e){return function(){return e}}function Dy(e,t){return e==null||e!==e?t:e}var qy=Ac(),$y=Ac(!0);function Be(e){return e}function Uo(e){return rc(typeof e=="function"?e:it(e,l))}function Fy(e){return sc(it(e,l))}function My(e,t){return oc(e,it(t,l))}var jy=V(function(e,t){return function(s){return Or(s,e,t)}}),Hy=V(function(e,t){return function(s){return Or(e,s,t)}});function Go(e,t,s){var c=Ee(t),f=Ti(t,c);s==null&&!(fe(t)&&(f.length||!c.length))&&(s=t,t=e,e=this,f=Ti(t,Ee(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Mt(e);return tt(f,function(y){var w=t[y];e[y]=w,m&&(e.prototype[y]=function(){var O=this.__chain__;if(d||O){var x=e(this.__wrapped__),A=x.__actions__=He(this.__actions__);return A.push({func:w,args:arguments,thisArg:e}),x.__chain__=O,x}return w.apply(e,Xt([this.value()],arguments))})}),e}function Uy(){return ye._===this&&(ye._=pm),this}function Bo(){}function Gy(e){return e=B(e),V(function(t){return uc(t,e)})}var By=Eo(le),Wy=Eo(Ra),ky=Eo(Ws);function Ol(e){return Ao(e)?ks(wt(e)):wv(e)}function Vy(e){return function(t){return e==null?i:dn(e,t)}}var zy=Ic(),Xy=Ic(!0);function Wo(){return[]}function ko(){return!1}function Yy(){return{}}function Ky(){return""}function Jy(){return!0}function Zy(e,t){if(e=B(e),e<1||e>Vt)return[];var s=_t,c=Ie(e,_t);t=$(t),e-=_t;for(var f=Xs(c,t);++s<e;)t(s);return f}function Qy(e){return G(e)?le(e,wt):Ye(e)?[e]:He(kc(te(e)))}function eE(e){var t=++fm;return te(e)+t}var tE=Fi(function(e,t){return e+t},0),nE=wo("ceil"),rE=Fi(function(e,t){return e/t},1),iE=wo("floor");function sE(e){return e&&e.length?Pi(e,Be,so):i}function oE(e,t){return e&&e.length?Pi(e,$(t,2),so):i}function uE(e){return Ta(e,Be)}function aE(e,t){return Ta(e,$(t,2))}function cE(e){return e&&e.length?Pi(e,Be,co):i}function lE(e,t){return e&&e.length?Pi(e,$(t,2),co):i}var fE=Fi(function(e,t){return e*t},1),hE=wo("round"),pE=Fi(function(e,t){return e-t},0);function dE(e){return e&&e.length?zs(e,Be):0}function gE(e,t){return e&&e.length?zs(e,$(t,2)):0}return p.after=F0,p.ary=nl,p.assign=C1,p.assignIn=ml,p.assignInWith=Ki,p.assignWith=O1,p.at=x1,p.before=rl,p.bind=No,p.bindAll=Ty,p.bindKey=il,p.castArray=Y0,p.chain=Qc,p.chunk=i_,p.compact=s_,p.concat=o_,p.cond=Ly,p.conforms=Ny,p.constant=Ho,p.countBy=d0,p.create=A1,p.curry=sl,p.curryRight=ol,p.debounce=ul,p.defaults=R1,p.defaultsDeep=I1,p.defer=M0,p.delay=j0,p.difference=u_,p.differenceBy=a_,p.differenceWith=c_,p.drop=l_,p.dropRight=f_,p.dropRightWhile=h_,p.dropWhile=p_,p.fill=d_,p.filter=m0,p.flatMap=y0,p.flatMapDeep=E0,p.flatMapDepth=w0,p.flatten=Yc,p.flattenDeep=g_,p.flattenDepth=m_,p.flip=H0,p.flow=qy,p.flowRight=$y,p.fromPairs=v_,p.functions=$1,p.functionsIn=F1,p.groupBy=b0,p.initial=y_,p.intersection=E_,p.intersectionBy=w_,p.intersectionWith=b_,p.invert=j1,p.invertBy=H1,p.invokeMap=C0,p.iteratee=Uo,p.keyBy=O0,p.keys=Ee,p.keysIn=Ge,p.map=Wi,p.mapKeys=G1,p.mapValues=B1,p.matches=Fy,p.matchesProperty=My,p.memoize=Vi,p.merge=W1,p.mergeWith=vl,p.method=jy,p.methodOf=Hy,p.mixin=Go,p.negate=zi,p.nthArg=Gy,p.omit=k1,p.omitBy=V1,p.once=U0,p.orderBy=x0,p.over=By,p.overArgs=G0,p.overEvery=Wy,p.overSome=ky,p.partial=Do,p.partialRight=al,p.partition=A0,p.pick=z1,p.pickBy=_l,p.property=Ol,p.propertyOf=Vy,p.pull=x_,p.pullAll=Jc,p.pullAllBy=A_,p.pullAllWith=R_,p.pullAt=I_,p.range=zy,p.rangeRight=Xy,p.rearg=B0,p.reject=P0,p.remove=P_,p.rest=W0,p.reverse=To,p.sampleSize=L0,p.set=Y1,p.setWith=K1,p.shuffle=N0,p.slice=T_,p.sortBy=$0,p.sortedUniq=M_,p.sortedUniqBy=j_,p.split=yy,p.spread=k0,p.tail=H_,p.take=U_,p.takeRight=G_,p.takeRightWhile=B_,p.takeWhile=W_,p.tap=s0,p.throttle=V0,p.thru=Bi,p.toArray=pl,p.toPairs=yl,p.toPairsIn=El,p.toPath=Qy,p.toPlainObject=gl,p.transform=J1,p.unary=z0,p.union=k_,p.unionBy=V_,p.unionWith=z_,p.uniq=X_,p.uniqBy=Y_,p.uniqWith=K_,p.unset=Z1,p.unzip=Lo,p.unzipWith=Zc,p.update=Q1,p.updateWith=ey,p.values=kn,p.valuesIn=ty,p.without=J_,p.words=Sl,p.wrap=X0,p.xor=Z_,p.xorBy=Q_,p.xorWith=e0,p.zip=t0,p.zipObject=n0,p.zipObjectDeep=r0,p.zipWith=i0,p.entries=yl,p.entriesIn=El,p.extend=ml,p.extendWith=Ki,Go(p,p),p.add=tE,p.attempt=Cl,p.camelCase=sy,p.capitalize=wl,p.ceil=nE,p.clamp=ny,p.clone=K0,p.cloneDeep=Z0,p.cloneDeepWith=Q0,p.cloneWith=J0,p.conformsTo=e1,p.deburr=bl,p.defaultTo=Dy,p.divide=rE,p.endsWith=oy,p.eq=gt,p.escape=uy,p.escapeRegExp=ay,p.every=g0,p.find=v0,p.findIndex=zc,p.findKey=P1,p.findLast=_0,p.findLastIndex=Xc,p.findLastKey=T1,p.floor=iE,p.forEach=el,p.forEachRight=tl,p.forIn=L1,p.forInRight=N1,p.forOwn=D1,p.forOwnRight=q1,p.get=Fo,p.gt=t1,p.gte=n1,p.has=M1,p.hasIn=Mo,p.head=Kc,p.identity=Be,p.includes=S0,p.indexOf=__,p.inRange=ry,p.invoke=U1,p.isArguments=vn,p.isArray=G,p.isArrayBuffer=r1,p.isArrayLike=Ue,p.isArrayLikeObject=pe,p.isBoolean=i1,p.isBuffer=nn,p.isDate=s1,p.isElement=o1,p.isEmpty=u1,p.isEqual=a1,p.isEqualWith=c1,p.isError=qo,p.isFinite=l1,p.isFunction=Mt,p.isInteger=cl,p.isLength=Xi,p.isMap=ll,p.isMatch=f1,p.isMatchWith=h1,p.isNaN=p1,p.isNative=d1,p.isNil=m1,p.isNull=g1,p.isNumber=fl,p.isObject=fe,p.isObjectLike=he,p.isPlainObject=Tr,p.isRegExp=$o,p.isSafeInteger=v1,p.isSet=hl,p.isString=Yi,p.isSymbol=Ye,p.isTypedArray=Wn,p.isUndefined=_1,p.isWeakMap=y1,p.isWeakSet=E1,p.join=S_,p.kebabCase=cy,p.last=ot,p.lastIndexOf=C_,p.lowerCase=ly,p.lowerFirst=fy,p.lt=w1,p.lte=b1,p.max=sE,p.maxBy=oE,p.mean=uE,p.meanBy=aE,p.min=cE,p.minBy=lE,p.stubArray=Wo,p.stubFalse=ko,p.stubObject=Yy,p.stubString=Ky,p.stubTrue=Jy,p.multiply=fE,p.nth=O_,p.noConflict=Uy,p.noop=Bo,p.now=ki,p.pad=hy,p.padEnd=py,p.padStart=dy,p.parseInt=gy,p.random=iy,p.reduce=R0,p.reduceRight=I0,p.repeat=my,p.replace=vy,p.result=X1,p.round=hE,p.runInContext=E,p.sample=T0,p.size=D0,p.snakeCase=_y,p.some=q0,p.sortedIndex=L_,p.sortedIndexBy=N_,p.sortedIndexOf=D_,p.sortedLastIndex=q_,p.sortedLastIndexBy=$_,p.sortedLastIndexOf=F_,p.startCase=Ey,p.startsWith=wy,p.subtract=pE,p.sum=dE,p.sumBy=gE,p.template=by,p.times=Zy,p.toFinite=jt,p.toInteger=B,p.toLength=dl,p.toLower=Sy,p.toNumber=ut,p.toSafeInteger=S1,p.toString=te,p.toUpper=Cy,p.trim=Oy,p.trimEnd=xy,p.trimStart=Ay,p.truncate=Ry,p.unescape=Iy,p.uniqueId=eE,p.upperCase=Py,p.upperFirst=jo,p.each=el,p.eachRight=tl,p.first=Kc,Go(p,function(){var e={};return yt(p,function(t,s){ne.call(p.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),p.VERSION=n,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),tt(["drop","take"],function(e,t){Y.prototype[e]=function(s){s=s===i?1:_e(B(s),0);var c=this.__filtered__&&!t?new Y(this):this.clone();return c.__filtered__?c.__takeCount__=Ie(s,c.__takeCount__):c.__views__.push({size:Ie(s,_t),type:e+(c.__dir__<0?"Right":"")}),c},Y.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var s=t+1,c=s==Yu||s==xd;Y.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:$(f,3),type:s}),d.__filtered__=d.__filtered__||c,d}}),tt(["head","last"],function(e,t){var s="take"+(t?"Right":"");Y.prototype[e]=function(){return this[s](1).value()[0]}}),tt(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[s](1)}}),Y.prototype.compact=function(){return this.filter(Be)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new Y(this):this.map(function(s){return Or(s,e,t)})}),Y.prototype.reject=function(e){return this.filter(zi($(e)))},Y.prototype.slice=function(e,t){e=B(e);var s=this;return s.__filtered__&&(e>0||t<0)?new Y(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=B(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(_t)},yt(Y.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),f=p[c?"take"+(t=="last"?"Right":""):t],d=c||/^find/.test(t);!f||(p.prototype[t]=function(){var m=this.__wrapped__,y=c?[1]:arguments,w=m instanceof Y,O=y[0],x=w||G(m),A=function(z){var J=f.apply(p,Xt([z],y));return c&&T?J[0]:J};x&&s&&typeof O=="function"&&O.length!=1&&(w=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,W=w&&!q;if(!d&&x){m=W?m:new Y(this);var M=e.apply(m,y);return M.__actions__.push({func:Bi,args:[A],thisArg:i}),new rt(M,T)}return F&&W?e.apply(this,y):(M=this.thru(A),F?c?M.value()[0]:M.value():M)})}),tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=gi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var f=arguments;if(c&&!this.__chain__){var d=this.value();return t.apply(G(d)?d:[],f)}return this[s](function(m){return t.apply(G(m)?m:[],f)})}}),yt(Y.prototype,function(e,t){var s=p[t];if(s){var c=s.name+"";ne.call(jn,c)||(jn[c]=[]),jn[c].push({name:t,func:s})}}),jn[$i(i,re).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Im,Y.prototype.reverse=Pm,Y.prototype.value=Tm,p.prototype.at=o0,p.prototype.chain=u0,p.prototype.commit=a0,p.prototype.next=c0,p.prototype.plant=f0,p.prototype.reverse=h0,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=p0,p.prototype.first=p.prototype.head,_r&&(p.prototype[_r]=l0),p},Kt=am();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ye._=Kt,define(function(){return Kt})):cn?((cn.exports=Kt)._=Kt,Hs._=Kt):ye._=Kt}).call(Vn)});var qr=P((PO,Dl)=>{var _E="2.0.0",yE=256,EE=Number.MAX_SAFE_INTEGER||9007199254740991,wE=16;Dl.exports={SEMVER_SPEC_VERSION:_E,MAX_LENGTH:yE,MAX_SAFE_INTEGER:EE,MAX_SAFE_COMPONENT_LENGTH:wE}});var $r=P((TO,ql)=>{var bE=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};ql.exports=bE});var En=P((rn,$l)=>{var{MAX_SAFE_COMPONENT_LENGTH:Ko}=qr(),SE=$r();rn=$l.exports={};var CE=rn.re=[],N=rn.src=[],D=rn.t={},OE=0,k=(i,n,r)=>{let u=OE++;SE(u,n),D[i]=u,N[u]=n,CE[u]=new RegExp(n,r?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","[0-9]+");k("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");k("MAINVERSION",`(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${N[D.NUMERICIDENTIFIER]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${N[D.NUMERICIDENTIFIERLOOSE]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASE",`(?:-(${N[D.PRERELEASEIDENTIFIER]}(?:\\.${N[D.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${N[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${N[D.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER","[0-9A-Za-z-]+");k("BUILD",`(?:\\+(${N[D.BUILDIDENTIFIER]}(?:\\.${N[D.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${N[D.MAINVERSION]}${N[D.PRERELEASE]}?${N[D.BUILD]}?`);k("FULL",`^${N[D.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${N[D.MAINVERSIONLOOSE]}${N[D.PRERELEASELOOSE]}?${N[D.BUILD]}?`);k("LOOSE",`^${N[D.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${N[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${N[D.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:${N[D.PRERELEASE]})?${N[D.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:${N[D.PRERELEASELOOSE]})?${N[D.BUILD]}?)?)?`);k("XRANGE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAINLOOSE]}$`);k("COERCE",`(^|[^\\d])(\\d{1,${Ko}})(?:\\.(\\d{1,${Ko}}))?(?:\\.(\\d{1,${Ko}}))?(?:$|[^\\d])`);k("COERCERTL",N[D.COERCE],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${N[D.LONETILDE]}\\s+`,!0);rn.tildeTrimReplace="$1~";k("TILDE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${N[D.LONECARET]}\\s+`,!0);rn.caretTrimReplace="$1^";k("CARET",`^${N[D.LONECARET]}${N[D.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${N[D.LONECARET]}${N[D.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${N[D.GTLT]}\\s*(${N[D.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]}|${N[D.XRANGEPLAIN]})`,!0);rn.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${N[D.XRANGEPLAIN]})\\s+-\\s+(${N[D.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${N[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${N[D.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0.0.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Fr=P((LO,Fl)=>{var xE=["includePrerelease","loose","rtl"],AE=i=>i?typeof i!="object"?{loose:!0}:xE.filter(n=>i[n]).reduce((n,r)=>(n[r]=!0,n),{}):{};Fl.exports=AE});var Zi=P((NO,Hl)=>{var Ml=/^[0-9]+$/,jl=(i,n)=>{let r=Ml.test(i),u=Ml.test(n);return r&&u&&(i=+i,n=+n),i===n?0:r&&!u?-1:u&&!r?1:i<n?-1:1},RE=(i,n)=>jl(n,i);Hl.exports={compareIdentifiers:jl,rcompareIdentifiers:RE}});var Te=P((DO,Wl)=>{var Qi=$r(),{MAX_LENGTH:Ul,MAX_SAFE_INTEGER:es}=qr(),{re:Gl,t:Bl}=En(),IE=Fr(),{compareIdentifiers:Mr}=Zi(),at=class{constructor(n,r){if(r=IE(r),n instanceof at){if(n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease)return n;n=n.version}else if(typeof n!="string")throw new TypeError(`Invalid Version: ${n}`);if(n.length>Ul)throw new TypeError(`version is longer than ${Ul} characters`);Qi("SemVer",n,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let u=n.trim().match(r.loose?Gl[Bl.LOOSE]:Gl[Bl.FULL]);if(!u)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>es||this.major<0)throw new TypeError("Invalid major version");if(this.minor>es||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>es||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o<es)return o}return a}):this.prerelease=[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(n){if(Qi("SemVer.compare",this.version,this.options,n),!(n instanceof at)){if(typeof n=="string"&&n===this.version)return 0;n=new at(n,this.options)}return n.version===this.version?0:this.compareMain(n)||this.comparePre(n)}compareMain(n){return n instanceof at||(n=new at(n,this.options)),Mr(this.major,n.major)||Mr(this.minor,n.minor)||Mr(this.patch,n.patch)}comparePre(n){if(n instanceof at||(n=new at(n,this.options)),this.prerelease.length&&!n.prerelease.length)return-1;if(!this.prerelease.length&&n.prerelease.length)return 1;if(!this.prerelease.length&&!n.prerelease.length)return 0;let r=0;do{let u=this.prerelease[r],a=n.prerelease[r];if(Qi("prerelease compare",r,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Mr(u,a)}while(++r)}compareBuild(n){n instanceof at||(n=new at(n,this.options));let r=0;do{let u=this.build[r],a=n.build[r];if(Qi("prerelease compare",r,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Mr(u,a)}while(++r)}inc(n,r){switch(n){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);u===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${n}`)}return this.format(),this.raw=this.version,this}};Wl.exports=at});var wn=P((qO,Xl)=>{var{MAX_LENGTH:PE}=qr(),{re:kl,t:Vl}=En(),zl=Te(),TE=Fr(),LE=(i,n)=>{if(n=TE(n),i instanceof zl)return i;if(typeof i!="string"||i.length>PE||!(n.loose?kl[Vl.LOOSE]:kl[Vl.FULL]).test(i))return null;try{return new zl(i,n)}catch{return null}};Xl.exports=LE});var Kl=P(($O,Yl)=>{var NE=wn(),DE=(i,n)=>{let r=NE(i,n);return r?r.version:null};Yl.exports=DE});var Zl=P((FO,Jl)=>{var qE=wn(),$E=(i,n)=>{let r=qE(i.trim().replace(/^[=v]+/,""),n);return r?r.version:null};Jl.exports=$E});var ef=P((MO,Ql)=>{var FE=Te(),ME=(i,n,r,u)=>{typeof r=="string"&&(u=r,r=void 0);try{return new FE(i,r).inc(n,u).version}catch{return null}};Ql.exports=ME});var ct=P((jO,nf)=>{var tf=Te(),jE=(i,n,r)=>new tf(i,r).compare(new tf(n,r));nf.exports=jE});var ts=P((HO,rf)=>{var HE=ct(),UE=(i,n,r)=>HE(i,n,r)===0;rf.exports=UE});var uf=P((UO,of)=>{var sf=wn(),GE=ts(),BE=(i,n)=>{if(GE(i,n))return null;{let r=sf(i),u=sf(n),a=r.prerelease.length||u.prerelease.length,o=a?"pre":"",h=a?"prerelease":"";for(let g in r)if((g==="major"||g==="minor"||g==="patch")&&r[g]!==u[g])return o+g;return h}};of.exports=BE});var cf=P((GO,af)=>{var WE=Te(),kE=(i,n)=>new WE(i,n).major;af.exports=kE});var ff=P((BO,lf)=>{var VE=Te(),zE=(i,n)=>new VE(i,n).minor;lf.exports=zE});var pf=P((WO,hf)=>{var XE=Te(),YE=(i,n)=>new XE(i,n).patch;hf.exports=YE});var gf=P((kO,df)=>{var KE=wn(),JE=(i,n)=>{let r=KE(i,n);return r&&r.prerelease.length?r.prerelease:null};df.exports=JE});var vf=P((VO,mf)=>{var ZE=ct(),QE=(i,n,r)=>ZE(n,i,r);mf.exports=QE});var yf=P((zO,_f)=>{var ew=ct(),tw=(i,n)=>ew(i,n,!0);_f.exports=tw});var ns=P((XO,wf)=>{var Ef=Te(),nw=(i,n,r)=>{let u=new Ef(i,r),a=new Ef(n,r);return u.compare(a)||u.compareBuild(a)};wf.exports=nw});var Sf=P((YO,bf)=>{var rw=ns(),iw=(i,n)=>i.sort((r,u)=>rw(r,u,n));bf.exports=iw});var Of=P((KO,Cf)=>{var sw=ns(),ow=(i,n)=>i.sort((r,u)=>sw(u,r,n));Cf.exports=ow});var jr=P((JO,xf)=>{var uw=ct(),aw=(i,n,r)=>uw(i,n,r)>0;xf.exports=aw});var rs=P((ZO,Af)=>{var cw=ct(),lw=(i,n,r)=>cw(i,n,r)<0;Af.exports=lw});var Jo=P((QO,Rf)=>{var fw=ct(),hw=(i,n,r)=>fw(i,n,r)!==0;Rf.exports=hw});var is=P((ex,If)=>{var pw=ct(),dw=(i,n,r)=>pw(i,n,r)>=0;If.exports=dw});var ss=P((tx,Pf)=>{var gw=ct(),mw=(i,n,r)=>gw(i,n,r)<=0;Pf.exports=mw});var Zo=P((nx,Tf)=>{var vw=ts(),_w=Jo(),yw=jr(),Ew=is(),ww=rs(),bw=ss(),Sw=(i,n,r,u)=>{switch(n){case"===":return typeof i=="object"&&(i=i.version),typeof r=="object"&&(r=r.version),i===r;case"!==":return typeof i=="object"&&(i=i.version),typeof r=="object"&&(r=r.version),i!==r;case"":case"=":case"==":return vw(i,r,u);case"!=":return _w(i,r,u);case">":return yw(i,r,u);case">=":return Ew(i,r,u);case"<":return ww(i,r,u);case"<=":return bw(i,r,u);default:throw new TypeError(`Invalid operator: ${n}`)}};Tf.exports=Sw});var Nf=P((rx,Lf)=>{var Cw=Te(),Ow=wn(),{re:os,t:us}=En(),xw=(i,n)=>{if(i instanceof Cw)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;n=n||{};let r=null;if(!n.rtl)r=i.match(os[us.COERCE]);else{let u;for(;(u=os[us.COERCERTL].exec(i))&&(!r||r.index+r[0].length!==i.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),os[us.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;os[us.COERCERTL].lastIndex=-1}return r===null?null:Ow(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,n)};Lf.exports=xw});var qf=P((ix,Df)=>{"use strict";Df.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}});var Ff=P((sx,$f)=>{"use strict";$f.exports=Z;Z.Node=bn;Z.create=Z;function Z(i){var n=this;if(n instanceof Z||(n=new Z),n.tail=null,n.head=null,n.length=0,i&&typeof i.forEach=="function")i.forEach(function(a){n.push(a)});else if(arguments.length>0)for(var r=0,u=arguments.length;r<u;r++)n.push(arguments[r]);return n}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var n=i.next,r=i.prev;return n&&(n.prev=r),r&&(r.next=n),i===this.head&&(this.head=n),i===this.tail&&(this.tail=r),i.list.length--,i.next=null,i.prev=null,i.list=null,n};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var n=this.head;i.list=this,i.next=n,n&&(n.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var n=this.tail;i.list=this,i.prev=n,n&&(n.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,n=arguments.length;i<n;i++)Rw(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,n=arguments.length;i<n;i++)Iw(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,n){n=n||this;for(var r=this.head,u=0;r!==null;u++)i.call(n,r.value,u,this),r=r.next};Z.prototype.forEachReverse=function(i,n){n=n||this;for(var r=this.tail,u=this.length-1;r!==null;u--)i.call(n,r.value,u,this),r=r.prev};Z.prototype.get=function(i){for(var n=0,r=this.head;r!==null&&n<i;n++)r=r.next;if(n===i&&r!==null)return r.value};Z.prototype.getReverse=function(i){for(var n=0,r=this.tail;r!==null&&n<i;n++)r=r.prev;if(n===i&&r!==null)return r.value};Z.prototype.map=function(i,n){n=n||this;for(var r=new Z,u=this.head;u!==null;)r.push(i.call(n,u.value,this)),u=u.next;return r};Z.prototype.mapReverse=function(i,n){n=n||this;for(var r=new Z,u=this.tail;u!==null;)r.push(i.call(n,u.value,this)),u=u.prev;return r};Z.prototype.reduce=function(i,n){var r,u=this.head;if(arguments.length>1)r=n;else if(this.head)u=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;u!==null;a++)r=i(r,u.value,a),u=u.next;return r};Z.prototype.reduceReverse=function(i,n){var r,u=this.tail;if(arguments.length>1)r=n;else if(this.tail)u=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;u!==null;a--)r=i(r,u.value,a),u=u.prev;return r};Z.prototype.toArray=function(){for(var i=new Array(this.length),n=0,r=this.head;r!==null;n++)i[n]=r.value,r=r.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),n=0,r=this.tail;r!==null;n++)i[n]=r.value,r=r.prev;return i};Z.prototype.slice=function(i,n){n=n||this.length,n<0&&(n+=this.length),i=i||0,i<0&&(i+=this.length);var r=new Z;if(n<i||n<0)return r;i<0&&(i=0),n>this.length&&(n=this.length);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(;a!==null&&u<n;u++,a=a.next)r.push(a.value);return r};Z.prototype.sliceReverse=function(i,n){n=n||this.length,n<0&&(n+=this.length),i=i||0,i<0&&(i+=this.length);var r=new Z;if(n<i||n<0)return r;i<0&&(i=0),n>this.length&&(n=this.length);for(var u=this.length,a=this.tail;a!==null&&u>n;u--)a=a.prev;for(;a!==null&&u>i;u--,a=a.prev)r.push(a.value);return r};Z.prototype.splice=function(i,n,...r){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(var o=[],u=0;a&&u<n;u++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var u=0;u<r.length;u++)a=Aw(this,a,r[u]);return o};Z.prototype.reverse=function(){for(var i=this.head,n=this.tail,r=i;r!==null;r=r.prev){var u=r.prev;r.prev=r.next,r.next=u}return this.head=n,this.tail=i,this};function Aw(i,n,r){var u=n===i.head?new bn(r,null,n,i):new bn(r,n,n.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function Rw(i,n){i.tail=new bn(n,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function Iw(i,n){i.head=new bn(n,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function bn(i,n,r,u){if(!(this instanceof bn))return new bn(i,n,r,u);this.list=u,this.value=i,n?(n.next=this,this.prev=n):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{qf()(Z)}catch{}});var Wf=P((ox,Bf)=>{"use strict";var Pw=Ff(),Sn=Symbol("max"),Ut=Symbol("length"),Xn=Symbol("lengthCalculator"),Hr=Symbol("allowStale"),Cn=Symbol("maxAge"),Gt=Symbol("dispose"),Mf=Symbol("noDisposeOnSet"),we=Symbol("lruList"),vt=Symbol("cache"),jf=Symbol("updateAgeOnGet"),Qo=()=>1,Hf=class{constructor(n){if(typeof n=="number"&&(n={max:n}),n||(n={}),n.max&&(typeof n.max!="number"||n.max<0))throw new TypeError("max must be a non-negative number");let r=this[Sn]=n.max||1/0,u=n.length||Qo;if(this[Xn]=typeof u!="function"?Qo:u,this[Hr]=n.stale||!1,n.maxAge&&typeof n.maxAge!="number")throw new TypeError("maxAge must be a number");this[Cn]=n.maxAge||0,this[Gt]=n.dispose,this[Mf]=n.noDisposeOnSet||!1,this[jf]=n.updateAgeOnGet||!1,this.reset()}set max(n){if(typeof n!="number"||n<0)throw new TypeError("max must be a non-negative number");this[Sn]=n||1/0,Ur(this)}get max(){return this[Sn]}set allowStale(n){this[Hr]=!!n}get allowStale(){return this[Hr]}set maxAge(n){if(typeof n!="number")throw new TypeError("maxAge must be a non-negative number");this[Cn]=n,Ur(this)}get maxAge(){return this[Cn]}set lengthCalculator(n){typeof n!="function"&&(n=Qo),n!==this[Xn]&&(this[Xn]=n,this[Ut]=0,this[we].forEach(r=>{r.length=this[Xn](r.value,r.key),this[Ut]+=r.length})),Ur(this)}get lengthCalculator(){return this[Xn]}get length(){return this[Ut]}get itemCount(){return this[we].length}rforEach(n,r){r=r||this;for(let u=this[we].tail;u!==null;){let a=u.prev;Gf(this,n,u,r),u=a}}forEach(n,r){r=r||this;for(let u=this[we].head;u!==null;){let a=u.next;Gf(this,n,u,r),u=a}}keys(){return this[we].toArray().map(n=>n.key)}values(){return this[we].toArray().map(n=>n.value)}reset(){this[Gt]&&this[we]&&this[we].length&&this[we].forEach(n=>this[Gt](n.key,n.value)),this[vt]=new Map,this[we]=new Pw,this[Ut]=0}dump(){return this[we].map(n=>as(this,n)?!1:{k:n.key,v:n.value,e:n.now+(n.maxAge||0)}).toArray().filter(n=>n)}dumpLru(){return this[we]}set(n,r,u){if(u=u||this[Cn],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Xn](r,n);if(this[vt].has(n)){if(o>this[Sn])return Yn(this,this[vt].get(n)),!1;let _=this[vt].get(n).value;return this[Gt]&&(this[Mf]||this[Gt](n,_.value)),_.now=a,_.maxAge=u,_.value=r,this[Ut]+=o-_.length,_.length=o,this.get(n),Ur(this),!0}let h=new Uf(n,r,o,a,u);return h.length>this[Sn]?(this[Gt]&&this[Gt](n,r),!1):(this[Ut]+=h.length,this[we].unshift(h),this[vt].set(n,this[we].head),Ur(this),!0)}has(n){if(!this[vt].has(n))return!1;let r=this[vt].get(n).value;return!as(this,r)}get(n){return eu(this,n,!0)}peek(n){return eu(this,n,!1)}pop(){let n=this[we].tail;return n?(Yn(this,n),n.value):null}del(n){Yn(this,this[vt].get(n))}load(n){this.reset();let r=Date.now();for(let u=n.length-1;u>=0;u--){let a=n[u],o=a.e||0;if(o===0)this.set(a.k,a.v);else{let h=o-r;h>0&&this.set(a.k,a.v,h)}}}prune(){this[vt].forEach((n,r)=>eu(this,r,!1))}},eu=(i,n,r)=>{let u=i[vt].get(n);if(u){let a=u.value;if(as(i,a)){if(Yn(i,u),!i[Hr])return}else r&&(i[jf]&&(u.value.now=Date.now()),i[we].unshiftNode(u));return a.value}},as=(i,n)=>{if(!n||!n.maxAge&&!i[Cn])return!1;let r=Date.now()-n.now;return n.maxAge?r>n.maxAge:i[Cn]&&r>i[Cn]},Ur=i=>{if(i[Ut]>i[Sn])for(let n=i[we].tail;i[Ut]>i[Sn]&&n!==null;){let r=n.prev;Yn(i,n),n=r}},Yn=(i,n)=>{if(n){let r=n.value;i[Gt]&&i[Gt](r.key,r.value),i[Ut]-=r.length,i[vt].delete(r.key),i[we].removeNode(n)}},Uf=class{constructor(n,r,u,a,o){this.key=n,this.value=r,this.length=u,this.now=a,this.maxAge=o||0}},Gf=(i,n,r,u)=>{let a=r.value;as(i,a)&&(Yn(i,r),i[Hr]||(a=void 0)),a&&n.call(u,a.value,a.key,i)};Bf.exports=Hf});var lt=P((ux,Xf)=>{var Kn=class{constructor(n,r){if(r=Lw(r),n instanceof Kn)return n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease?n:new Kn(n.raw,r);if(n instanceof tu)return this.raw=n.value,this.set=[[n]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=n,this.set=n.split(/\s*\|\|\s*/).map(u=>this.parseRange(u.trim())).filter(u=>u.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${n}`);if(this.set.length>1){let u=this.set[0];if(this.set=this.set.filter(a=>!Vf(a[0])),this.set.length===0)this.set=[u];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&Fw(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(n=>n.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(n){n=n.trim();let u=`parseRange:${Object.keys(this.options).join(",")}:${n}`,a=kf.get(u);if(a)return a;let o=this.options.loose,h=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];n=n.replace(h,zw(this.options.includePrerelease)),ge("hyphen replace",n),n=n.replace(Le[xe.COMPARATORTRIM],Dw),ge("comparator trim",n,Le[xe.COMPARATORTRIM]),n=n.replace(Le[xe.TILDETRIM],qw),n=n.replace(Le[xe.CARETTRIM],$w),n=n.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],_=n.split(" ").map(I=>Mw(I,this.options)).join(" ").split(/\s+/).map(I=>Vw(I,this.options)).filter(this.options.loose?I=>!!I.match(g):()=>!0).map(I=>new tu(I,this.options)),l=_.length,v=new Map;for(let I of _){if(Vf(I))return[I];v.set(I.value,I)}v.size>1&&v.has("")&&v.delete("");let b=[...v.values()];return kf.set(u,b),b}intersects(n,r){if(!(n instanceof Kn))throw new TypeError("a Range is required");return this.set.some(u=>zf(u,r)&&n.set.some(a=>zf(a,r)&&u.every(o=>a.every(h=>o.intersects(h,r)))))}test(n){if(!n)return!1;if(typeof n=="string")try{n=new Nw(n,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Xw(this.set[r],n,this.options))return!0;return!1}};Xf.exports=Kn;var Tw=Wf(),kf=new Tw({max:1e3}),Lw=Fr(),tu=Gr(),ge=$r(),Nw=Te(),{re:Le,t:xe,comparatorTrimReplace:Dw,tildeTrimReplace:qw,caretTrimReplace:$w}=En(),Vf=i=>i.value==="<0.0.0-0",Fw=i=>i.value==="",zf=(i,n)=>{let r=!0,u=i.slice(),a=u.pop();for(;r&&u.length;)r=u.every(o=>a.intersects(o,n)),a=u.pop();return r},Mw=(i,n)=>(ge("comp",i,n),i=Uw(i,n),ge("caret",i),i=jw(i,n),ge("tildes",i),i=Bw(i,n),ge("xrange",i),i=kw(i,n),ge("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",jw=(i,n)=>i.trim().split(/\s+/).map(r=>Hw(r,n)).join(" "),Hw=(i,n)=>{let r=n.loose?Le[xe.TILDELOOSE]:Le[xe.TILDE];return i.replace(r,(u,a,o,h,g)=>{ge("tilde",i,u,a,o,h,g);let _;return Fe(a)?_="":Fe(o)?_=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(h)?_=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(ge("replaceTilde pr",g),_=`>=${a}.${o}.${h}-${g} <${a}.${+o+1}.0-0`):_=`>=${a}.${o}.${h} <${a}.${+o+1}.0-0`,ge("tilde return",_),_})},Uw=(i,n)=>i.trim().split(/\s+/).map(r=>Gw(r,n)).join(" "),Gw=(i,n)=>{ge("caret",i,n);let r=n.loose?Le[xe.CARETLOOSE]:Le[xe.CARET],u=n.includePrerelease?"-0":"";return i.replace(r,(a,o,h,g,_)=>{ge("caret",i,a,o,h,g,_);let l;return Fe(o)?l="":Fe(h)?l=`>=${o}.0.0${u} <${+o+1}.0.0-0`:Fe(g)?o==="0"?l=`>=${o}.${h}.0${u} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.0${u} <${+o+1}.0.0-0`:_?(ge("replaceCaret pr",_),o==="0"?h==="0"?l=`>=${o}.${h}.${g}-${_} <${o}.${h}.${+g+1}-0`:l=`>=${o}.${h}.${g}-${_} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.${g}-${_} <${+o+1}.0.0-0`):(ge("no pr"),o==="0"?h==="0"?l=`>=${o}.${h}.${g}${u} <${o}.${h}.${+g+1}-0`:l=`>=${o}.${h}.${g}${u} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.${g} <${+o+1}.0.0-0`),ge("caret return",l),l})},Bw=(i,n)=>(ge("replaceXRanges",i,n),i.split(/\s+/).map(r=>Ww(r,n)).join(" ")),Ww=(i,n)=>{i=i.trim();let r=n.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(r,(u,a,o,h,g,_)=>{ge("xRange",i,u,a,o,h,g,_);let l=Fe(o),v=l||Fe(h),b=v||Fe(g),I=b;return a==="="&&I&&(a=""),_=n.includePrerelease?"-0":"",l?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&I?(v&&(h=0),g=0,a===">"?(a=">=",v?(o=+o+1,h=0,g=0):(h=+h+1,g=0)):a==="<="&&(a="<",v?o=+o+1:h=+h+1),a==="<"&&(_="-0"),u=`${a+o}.${h}.${g}${_}`):v?u=`>=${o}.0.0${_} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${h}.0${_} <${o}.${+h+1}.0-0`),ge("xRange return",u),u})},kw=(i,n)=>(ge("replaceStars",i,n),i.trim().replace(Le[xe.STAR],"")),Vw=(i,n)=>(ge("replaceGTE0",i,n),i.trim().replace(Le[n.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),zw=i=>(n,r,u,a,o,h,g,_,l,v,b,I,R)=>(Fe(u)?r="":Fe(a)?r=`>=${u}.0.0${i?"-0":""}`:Fe(o)?r=`>=${u}.${a}.0${i?"-0":""}`:h?r=`>=${r}`:r=`>=${r}${i?"-0":""}`,Fe(l)?_="":Fe(v)?_=`<${+l+1}.0.0-0`:Fe(b)?_=`<${l}.${+v+1}.0-0`:I?_=`<=${l}.${v}.${b}-${I}`:i?_=`<${l}.${v}.${+b+1}-0`:_=`<=${_}`,`${r} ${_}`.trim()),Xw=(i,n,r)=>{for(let u=0;u<i.length;u++)if(!i[u].test(n))return!1;if(n.prerelease.length&&!r.includePrerelease){for(let u=0;u<i.length;u++)if(ge(i[u].semver),i[u].semver!==tu.ANY&&i[u].semver.prerelease.length>0){let a=i[u].semver;if(a.major===n.major&&a.minor===n.minor&&a.patch===n.patch)return!0}return!1}return!0}});var Gr=P((ax,Qf)=>{var Br=Symbol("SemVer ANY"),Wr=class{static get ANY(){return Br}constructor(n,r){if(r=Yw(r),n instanceof Wr){if(n.loose===!!r.loose)return n;n=n.value}ru("comparator",n,r),this.options=r,this.loose=!!r.loose,this.parse(n),this.semver===Br?this.value="":this.value=this.operator+this.semver.version,ru("comp",this)}parse(n){let r=this.options.loose?Yf[Kf.COMPARATORLOOSE]:Yf[Kf.COMPARATOR],u=n.match(r);if(!u)throw new TypeError(`Invalid comparator: ${n}`);this.operator=u[1]!==void 0?u[1]:"",this.operator==="="&&(this.operator=""),u[2]?this.semver=new Jf(u[2],this.options.loose):this.semver=Br}toString(){return this.value}test(n){if(ru("Comparator.test",n,this.options.loose),this.semver===Br||n===Br)return!0;if(typeof n=="string")try{n=new Jf(n,this.options)}catch{return!1}return nu(n,this.operator,this.semver,this.options)}intersects(n,r){if(!(n instanceof Wr))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Zf(n.value,r).test(this.value);if(n.operator==="")return n.value===""?!0:new Zf(this.value,r).test(n.semver);let u=(this.operator===">="||this.operator===">")&&(n.operator===">="||n.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(n.operator==="<="||n.operator==="<"),o=this.semver.version===n.semver.version,h=(this.operator===">="||this.operator==="<=")&&(n.operator===">="||n.operator==="<="),g=nu(this.semver,"<",n.semver,r)&&(this.operator===">="||this.operator===">")&&(n.operator==="<="||n.operator==="<"),_=nu(this.semver,">",n.semver,r)&&(this.operator==="<="||this.operator==="<")&&(n.operator===">="||n.operator===">");return u||a||o&&h||g||_}};Qf.exports=Wr;var Yw=Fr(),{re:Yf,t:Kf}=En(),nu=Zo(),ru=$r(),Jf=Te(),Zf=lt()});var kr=P((cx,eh)=>{var Kw=lt(),Jw=(i,n,r)=>{try{n=new Kw(n,r)}catch{return!1}return n.test(i)};eh.exports=Jw});var nh=P((lx,th)=>{var Zw=lt(),Qw=(i,n)=>new Zw(i,n).set.map(r=>r.map(u=>u.value).join(" ").trim().split(" "));th.exports=Qw});var ih=P((fx,rh)=>{var eb=Te(),tb=lt(),nb=(i,n,r)=>{let u=null,a=null,o=null;try{o=new tb(n,r)}catch{return null}return i.forEach(h=>{o.test(h)&&(!u||a.compare(h)===-1)&&(u=h,a=new eb(u,r))}),u};rh.exports=nb});var oh=P((hx,sh)=>{var rb=Te(),ib=lt(),sb=(i,n,r)=>{let u=null,a=null,o=null;try{o=new ib(n,r)}catch{return null}return i.forEach(h=>{o.test(h)&&(!u||a.compare(h)===1)&&(u=h,a=new rb(u,r))}),u};sh.exports=sb});var ch=P((px,ah)=>{var iu=Te(),ob=lt(),uh=jr(),ub=(i,n)=>{i=new ob(i,n);let r=new iu("0.0.0");if(i.test(r)||(r=new iu("0.0.0-0"),i.test(r)))return r;r=null;for(let u=0;u<i.set.length;++u){let a=i.set[u],o=null;a.forEach(h=>{let g=new iu(h.semver.version);switch(h.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||uh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),o&&(!r||uh(r,o))&&(r=o)}return r&&i.test(r)?r:null};ah.exports=ub});var fh=P((dx,lh)=>{var ab=lt(),cb=(i,n)=>{try{return new ab(i,n).range||"*"}catch{return null}};lh.exports=cb});var cs=P((gx,gh)=>{var lb=Te(),hh=Gr(),{ANY:fb}=hh,hb=lt(),pb=kr(),ph=jr(),dh=rs(),db=ss(),gb=is(),mb=(i,n,r,u)=>{i=new lb(i,u),n=new hb(n,u);let a,o,h,g,_;switch(r){case">":a=ph,o=db,h=dh,g=">",_=">=";break;case"<":a=dh,o=gb,h=ph,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pb(i,n,u))return!1;for(let l=0;l<n.set.length;++l){let v=n.set[l],b=null,I=null;if(v.forEach(R=>{R.semver===fb&&(R=new hh(">=0.0.0")),b=b||R,I=I||R,a(R.semver,b.semver,u)?b=R:h(R.semver,I.semver,u)&&(I=R)}),b.operator===g||b.operator===_||(!I.operator||I.operator===g)&&o(i,I.semver))return!1;if(I.operator===_&&h(i,I.semver))return!1}return!0};gh.exports=mb});var vh=P((mx,mh)=>{var vb=cs(),_b=(i,n,r)=>vb(i,n,">",r);mh.exports=_b});var yh=P((vx,_h)=>{var yb=cs(),Eb=(i,n,r)=>yb(i,n,"<",r);_h.exports=Eb});var bh=P((_x,wh)=>{var Eh=lt(),wb=(i,n,r)=>(i=new Eh(i,r),n=new Eh(n,r),i.intersects(n));wh.exports=wb});var Ch=P((yx,Sh)=>{var bb=kr(),Sb=ct();Sh.exports=(i,n,r)=>{let u=[],a=null,o=null,h=i.sort((v,b)=>Sb(v,b,r));for(let v of h)bb(v,n,r)?(o=v,a||(a=v)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[v,b]of u)v===b?g.push(v):!b&&v===h[0]?g.push("*"):b?v===h[0]?g.push(`<=${b}`):g.push(`${v} - ${b}`):g.push(`>=${v}`);let _=g.join(" || "),l=typeof n.raw=="string"?n.raw:String(n);return _.length<l.length?_:n}});var Ih=P((Ex,Rh)=>{var Oh=lt(),ls=Gr(),{ANY:su}=ls,Vr=kr(),ou=ct(),Cb=(i,n,r={})=>{if(i===n)return!0;i=new Oh(i,r),n=new Oh(n,r);let u=!1;e:for(let a of i.set){for(let o of n.set){let h=Ob(a,o,r);if(u=u||h!==null,h)continue e}if(u)return!1}return!0},Ob=(i,n,r)=>{if(i===n)return!0;if(i.length===1&&i[0].semver===su){if(n.length===1&&n[0].semver===su)return!0;r.includePrerelease?i=[new ls(">=0.0.0-0")]:i=[new ls(">=0.0.0")]}if(n.length===1&&n[0].semver===su){if(r.includePrerelease)return!0;n=[new ls(">=0.0.0")]}let u=new Set,a,o;for(let R of i)R.operator===">"||R.operator===">="?a=xh(a,R,r):R.operator==="<"||R.operator==="<="?o=Ah(o,R,r):u.add(R.semver);if(u.size>1)return null;let h;if(a&&o){if(h=ou(a.semver,o.semver,r),h>0)return null;if(h===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let R of u){if(a&&!Vr(R,String(a),r)||o&&!Vr(R,String(o),r))return null;for(let H of n)if(!Vr(R,String(H),r))return!1;return!0}let g,_,l,v,b=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,I=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1;b&&b.prerelease.length===1&&o.operator==="<"&&b.prerelease[0]===0&&(b=!1);for(let R of n){if(v=v||R.operator===">"||R.operator===">=",l=l||R.operator==="<"||R.operator==="<=",a){if(I&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===I.major&&R.semver.minor===I.minor&&R.semver.patch===I.patch&&(I=!1),R.operator===">"||R.operator===">="){if(g=xh(a,R,r),g===R&&g!==a)return!1}else if(a.operator===">="&&!Vr(a.semver,String(R),r))return!1}if(o){if(b&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===b.major&&R.semver.minor===b.minor&&R.semver.patch===b.patch&&(b=!1),R.operator==="<"||R.operator==="<="){if(_=Ah(o,R,r),_===R&&_!==o)return!1}else if(o.operator==="<="&&!Vr(o.semver,String(R),r))return!1}if(!R.operator&&(o||a)&&h!==0)return!1}return!(a&&l&&!o&&h!==0||o&&v&&!a&&h!==0||I||b)},xh=(i,n,r)=>{if(!i)return n;let u=ou(i.semver,n.semver,r);return u>0?i:u<0||n.operator===">"&&i.operator===">="?n:i},Ah=(i,n,r)=>{if(!i)return n;let u=ou(i.semver,n.semver,r);return u<0?i:u>0||n.operator==="<"&&i.operator==="<="?n:i};Rh.exports=Cb});var Th=P((wx,Ph)=>{var uu=En();Ph.exports={re:uu.re,src:uu.src,tokens:uu.t,SEMVER_SPEC_VERSION:qr().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Zi().compareIdentifiers,rcompareIdentifiers:Zi().rcompareIdentifiers,parse:wn(),valid:Kl(),clean:Zl(),inc:ef(),diff:uf(),major:cf(),minor:ff(),patch:pf(),prerelease:gf(),compare:ct(),rcompare:vf(),compareLoose:yf(),compareBuild:ns(),sort:Sf(),rsort:Of(),gt:jr(),lt:rs(),eq:ts(),neq:Jo(),gte:is(),lte:ss(),cmp:Zo(),coerce:Nf(),Comparator:Gr(),Range:lt(),satisfies:kr(),toComparators:nh(),maxSatisfying:ih(),minSatisfying:oh(),minVersion:ch(),validRange:fh(),outside:cs(),gtr:vh(),ltr:yh(),intersects:bh(),simplifyRange:Ch(),subset:Ih()}});var Ae=P(On=>{"use strict";var Lh=On&&On.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(On,"__esModule",{value:!0});On.getCoreVersion=void 0;var Nh=Lh(require("path")),Dh=Lh(require("fs")),xb=Th(),Ab=require("@serverless-devs/core"),au=Nh.default.join(Ab.getRootHome(),"cache","core"),qh=Nh.default.join(au,"package.json");function Rb(){if(Dh.default.existsSync(qh)){var i=require("@serverless-devs/core/package.json").version,n=$h();return xb.gt(n,i)?require(au):require("@serverless-devs/core")}return require("@serverless-devs/core")}function $h(){return Dh.default.existsSync(au)?require(qh).version:void 0}On.getCoreVersion=$h;On.default=Rb()});var Fh=P((Sx,Ib)=>{Ib.exports={name:"@serverless-devs/s",version:"2.0.97-beta.6",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"beta"}}});var bt=P(j=>{"use strict";var Pb=j&&j.__createBinding||(Object.create?function(i,n,r,u){u===void 0&&(u=r),Object.defineProperty(i,u,{enumerable:!0,get:function(){return n[r]}})}:function(i,n,r,u){u===void 0&&(u=r),i[u]=n[r]}),Tb=j&&j.__setModuleDefault||(Object.create?function(i,n){Object.defineProperty(i,"default",{enumerable:!0,value:n})}:function(i,n){i.default=n}),Lb=j&&j.__importStar||function(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)r!=="default"&&Object.prototype.hasOwnProperty.call(i,r)&&Pb(n,i,r);return Tb(n,i),n},Mh=j&&j.__awaiter||function(i,n,r,u){function a(o){return o instanceof r?o:new r(function(h){h(o)})}return new(r||(r=Promise))(function(o,h){function g(v){try{l(u.next(v))}catch(b){h(b)}}function _(v){try{l(u.throw(v))}catch(b){h(b)}}function l(v){v.done?o(v.value):a(v.value).then(g,_)}l((u=u.apply(i,n||[])).next())})},jh=j&&j.__generator||function(i,n){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,h;return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(l){return function(v){return _([l,v])}}function _(l){if(u)throw new TypeError("Generator is already executing.");for(;r;)try{if(u=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(i,r)}catch(v){l=[6,v],a=0}finally{u=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fs=j&&j.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(j,"__esModule",{value:!0});j.emoji=j.mark=j.replaceTemplate=j.getTemplatekey=j.replaceFun=j.getLang=j.printn=j.checkTemplateFile=j.checkAndReturnTemplateFile=j.yamlLoad=j.getFolderSize=j.getVersion=j.getErrorMessage=j.bgRed=j.yellow=j.red=void 0;var be=fs(require("path")),Ze=fs(require("fs")),cu=fs(zn()),Nb=fs(require("os")),Db=xn(),Jn=Lb(Ae()),hs=Jn.default.colors,qb=Jn.default.jsyaml,$b=Jn.default.makeUnderLine,Hh=Jn.default.isDebugMode,Uh=Fh();j.red=hs.hex("#fd5750");j.yellow=hs.hex("#F3F99D");j.bgRed=hs.hex("#000").bgHex("#fd5750");var Fb=function(i){var n=Hh?Hh():void 0;if(n){console.log(i);return}var r=i.message?i.message:"";try{var u=JSON.parse(r);console.log("".concat((0,j.bgRed)("ERROR:"),`
35
35
  `).concat(u.message,`
36
36
  `)),u.tips&&console.log("".concat((0,j.yellow)($b(u.tips)),`
37
37
  `))}catch{console.log("".concat((0,j.bgRed)("ERROR:"),`
@@ -40,7 +40,7 @@ function print() { __p += __j.call(arguments, '') }
40
40
  `))}return i}();Gn.HumanWarning=aw});var qo=L(re=>{"use strict";var lw=re&&re.__awaiter||function(i,r,s,u){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(x){try{p(u.next(x))}catch(R){_(R)}}function E(x){try{p(u.throw(x))}catch(R){_(R)}}function p(x){x.done?a(x.value):f(x.value).then(y,E)}p((u=u.apply(i,r||[])).next())})},fw=re&&re.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},u,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(x){return E([p,x])}}function E(p){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=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(x){p=[6,x],f=0}finally{u=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},cw=re&&re.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(re,"__esModule",{value:!0});re.HandleError=re.HumanWarning=re.HumanError=re.ServerlessError=re.InitError=re.ConfigGetError=re.ConfigError=re.ConfigDeleteError=re.CommandError=void 0;var Zc=cn(),hw=$o(),Po=cw(dt()),pw=cn(),hn=Po.default.colors,dw=Po.default.report,gw=Po.default.getMAC,_w=Uc();Object.defineProperty(re,"CommandError",{enumerable:!0,get:function(){return _w.CommandError}});var mw=Bc();Object.defineProperty(re,"ConfigDeleteError",{enumerable:!0,get:function(){return mw.ConfigDeleteError}});var vw=jc();Object.defineProperty(re,"ConfigError",{enumerable:!0,get:function(){return vw.ConfigError}});var yw=zc();Object.defineProperty(re,"ConfigGetError",{enumerable:!0,get:function(){return yw.ConfigGetError}});var Ew=Xc();Object.defineProperty(re,"InitError",{enumerable:!0,get:function(){return Ew.InitError}});var ww=fn();Object.defineProperty(re,"ServerlessError",{enumerable:!0,get:function(){return ww.ServerlessError}});var xw=Yc();Object.defineProperty(re,"HumanError",{enumerable:!0,get:function(){return xw.HumanError}});var Sw=kc();Object.defineProperty(re,"HumanWarning",{enumerable:!0,get:function(){return Sw.HumanWarning}});function Aw(){try{return gw().replace(/:/g,"")}catch{return"unknown"}}function No(i,r){return"".concat(hn.gray(i)).concat(hn.gray.underline(r))}var Ow=function(){function i(r){var s=r.error,u=r.prefix,f=u===void 0?"Message:":u;this.traceId="".concat(Aw()).concat(Date.now()),console.log((0,Zc.red)("\u2716 ".concat(f,`
41
41
  `)));var a=(0,hw.getConfig)("analysis");a!=="disable"&&console.log(hn.gray("TraceId: ".concat(this.traceId))),console.log(hn.gray("Environment: ".concat((0,Zc.getVersion)()))),console.log(No("Documents: ","https://www.serverless-devs.com")),console.log(No("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(No("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
42
42
  `)),(0,pw.getErrorMessage)(s),a!=="disable"&&console.log(hn.gray("Please copy traceId: ".concat(this.traceId," and join Dingding group: 33947367 for consultation."))),console.log(hn.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(hn.gray(`And run again with the '--debug' option or 's -h' to get more logs.
43
- `))}return i.prototype.report=function(r){return lw(this,void 0,void 0,function(){return fw(this,function(s){switch(s.label){case 0:return[4,dw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();re.HandleError=Ow});var Jc=L((uS,bw)=>{bw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.4",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"latest"}}});var cn=L(H=>{"use strict";var Rw=H&&H.__createBinding||(Object.create?function(i,r,s,u){u===void 0&&(u=s),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,u){u===void 0&&(u=s),i[u]=r[s]}),Iw=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Cw=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&Rw(r,i,s);return Iw(r,i),r},Qc=H&&H.__awaiter||function(i,r,s,u){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(x){try{p(u.next(x))}catch(R){_(R)}}function E(x){try{p(u.throw(x))}catch(R){_(R)}}function p(x){x.done?a(x.value):f(x.value).then(y,E)}p((u=u.apply(i,r||[])).next())})},eh=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},u,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(x){return E([p,x])}}function E(p){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=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(x){p=[6,x],f=0}finally{u=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Wi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var me=Wi(require("path")),je=Wi(require("fs")),Fo=Wi(Co()),Tw=Wi(require("os")),Lw=qo(),Un=Cw(dt()),Gi=Un.default.colors,Dw=Un.default.jsyaml,$w=Un.default.makeUnderLine,th=Un.default.isDebugMode,nh=Jc();H.red=Gi.hex("#fd5750");H.yellow=Gi.hex("#F3F99D");H.bgRed=Gi.hex("#000").bgHex("#fd5750");var Pw=function(i){var r=th?th():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var u=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
43
+ `))}return i.prototype.report=function(r){return lw(this,void 0,void 0,function(){return fw(this,function(s){switch(s.label){case 0:return[4,dw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:this.traceId})];case 1:return s.sent(),[2]}})})},i}();re.HandleError=Ow});var Jc=L((uS,bw)=>{bw.exports={name:"@serverless-devs/s",version:"2.0.97-beta.6",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.1.0","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"beta"}}});var cn=L(H=>{"use strict";var Rw=H&&H.__createBinding||(Object.create?function(i,r,s,u){u===void 0&&(u=s),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,u){u===void 0&&(u=s),i[u]=r[s]}),Iw=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Cw=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&Rw(r,i,s);return Iw(r,i),r},Qc=H&&H.__awaiter||function(i,r,s,u){function f(a){return a instanceof s?a:new s(function(_){_(a)})}return new(s||(s=Promise))(function(a,_){function y(x){try{p(u.next(x))}catch(R){_(R)}}function E(x){try{p(u.throw(x))}catch(R){_(R)}}function p(x){x.done?a(x.value):f(x.value).then(y,E)}p((u=u.apply(i,r||[])).next())})},eh=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},u,f,a,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(p){return function(x){return E([p,x])}}function E(p){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=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(x){p=[6,x],f=0}finally{u=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Wi=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var me=Wi(require("path")),je=Wi(require("fs")),Fo=Wi(Co()),Tw=Wi(require("os")),Lw=qo(),Un=Cw(dt()),Gi=Un.default.colors,Dw=Un.default.jsyaml,$w=Un.default.makeUnderLine,th=Un.default.isDebugMode,nh=Jc();H.red=Gi.hex("#fd5750");H.yellow=Gi.hex("#F3F99D");H.bgRed=Gi.hex("#000").bgHex("#fd5750");var Pw=function(i){var r=th?th():void 0;if(r){console.log(i);return}var s=i.message?i.message:"";try{var u=JSON.parse(s);console.log("".concat((0,H.bgRed)("ERROR:"),`
44
44
  `).concat(u.message,`
45
45
  `)),u.tips&&console.log("".concat((0,H.yellow)($w(u.tips)),`
46
46
  `))}catch{console.log("".concat((0,H.bgRed)("ERROR:"),`