@serverless-devs/s 2.0.100-beta.7 → 2.0.100-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean/index.js +1 -1
- package/lib/cli/index.js +1 -1
- package/lib/component/index.js +1 -1
- package/lib/config/add/index.js +1 -1
- package/lib/config/delete/index.js +1 -1
- package/lib/config/get/index.js +1 -1
- package/lib/config/index.js +1 -1
- package/lib/index.js +60 -60
- package/lib/init/index.js +42 -42
- package/lib/init/init-manager.js +10 -27
- package/lib/onboarding/index.js +16 -8
- package/lib/set/analysis/index.js +1 -1
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +1 -1
- package/lib/set/registry/index.js +1 -1
- package/lib/set/workspace/index.js +1 -1
- package/lib/update-notifier/index.js +1 -1
- package/lib/verify/index.js +1 -1
- package/package.json +1 -1
package/lib/init/init-manager.js
CHANGED
|
@@ -115,7 +115,7 @@ var InitManager = /** @class */ (function () {
|
|
|
115
115
|
};
|
|
116
116
|
InitManager.prototype.executeInitWithForceCreation = function (name, dir) {
|
|
117
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
-
var projectName, registry, appPath
|
|
118
|
+
var projectName, registry, appPath;
|
|
119
119
|
return __generator(this, function (_a) {
|
|
120
120
|
switch (_a.label) {
|
|
121
121
|
case 0:
|
|
@@ -127,31 +127,14 @@ var InitManager = /** @class */ (function () {
|
|
|
127
127
|
return [4 /*yield*/, loadApplication({ registry: registry, target: './', source: name, name: projectName })];
|
|
128
128
|
case 1:
|
|
129
129
|
appPath = _a.sent();
|
|
130
|
-
if (
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
baseChildComponent = _a.sent();
|
|
139
|
-
return [4 /*yield*/, baseChildComponent.postInit(tempObj)];
|
|
140
|
-
case 4:
|
|
141
|
-
_a.sent();
|
|
142
|
-
_a.label = 5;
|
|
143
|
-
case 5: return [3 /*break*/, 7];
|
|
144
|
-
case 6:
|
|
145
|
-
e_1 = _a.sent();
|
|
146
|
-
return [3 /*break*/, 7];
|
|
147
|
-
case 7:
|
|
148
|
-
utils_1.logger.success("\n".concat((0, common_1.emoji)('🏄'), " Thanks for using Serverless-Devs"));
|
|
149
|
-
console.log("".concat((0, common_1.emoji)('👉'), " You could [cd ").concat(appPath, "] and enjoy your serverless journey!"));
|
|
150
|
-
console.log("".concat((0, common_1.emoji)('🧭️'), " If you need help for this example, you can use [s -h] after you enter folder."));
|
|
151
|
-
console.log("".concat((0, common_1.emoji)('💞'), " Document \u2764 Star:") +
|
|
152
|
-
colors.cyan.underline('https://github.com/Serverless-Devs/Serverless-Devs' + '\n'));
|
|
153
|
-
_a.label = 8;
|
|
154
|
-
case 8: return [2 /*return*/, { appPath: appPath }];
|
|
130
|
+
if (appPath) {
|
|
131
|
+
utils_1.logger.success("\n".concat((0, common_1.emoji)('🏄'), " Thanks for using Serverless-Devs"));
|
|
132
|
+
console.log("".concat((0, common_1.emoji)('👉'), " You could [cd ").concat(appPath, "] and enjoy your serverless journey!"));
|
|
133
|
+
console.log("".concat((0, common_1.emoji)('🧭️'), " If you need help for this example, you can use [s -h] after you enter folder."));
|
|
134
|
+
console.log("".concat((0, common_1.emoji)('💞'), " Document \u2764 Star:") +
|
|
135
|
+
colors.cyan.underline('https://github.com/Serverless-Devs/Serverless-Devs' + '\n'));
|
|
136
|
+
}
|
|
137
|
+
return [2 /*return*/, { appPath: appPath }];
|
|
155
138
|
}
|
|
156
139
|
});
|
|
157
140
|
});
|
|
@@ -246,4 +229,4 @@ var InitManager = /** @class */ (function () {
|
|
|
246
229
|
return InitManager;
|
|
247
230
|
}());
|
|
248
231
|
exports.InitManager = InitManager;
|
|
249
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
232
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdC1tYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2luaXQvaW5pdC1tYW5hZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxjQUFjOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVkLDhDQUF3QjtBQUN4QixpQ0FBcUQ7QUFDckQsK0NBQWlEO0FBQ2pELGtDQUFvRTtBQUNwRSx3Q0FBZ0Q7QUFDaEQsNkNBQXVGO0FBQ3ZGLDBDQUF3QztBQUN4Qyx1REFBaUM7QUFDekIsSUFBQSxlQUFlLEdBQStCLGNBQUksZ0JBQW5DLEVBQUUsTUFBTSxHQUF1QixjQUFJLE9BQTNCLEVBQUUsTUFBTSxHQUFlLGNBQUksT0FBbkIsRUFBRSxRQUFRLEdBQUssY0FBSSxTQUFULENBQVU7QUFFM0QsUUFBUSxDQUFDLGNBQWMsQ0FBQyxjQUFjLEVBQUUsT0FBTyxDQUFDLDhCQUE4QixDQUFDLENBQUMsQ0FBQztBQUNqRjtJQUVFO1FBRFUsV0FBTSxHQUFRLEVBQUUsQ0FBQztJQUNaLENBQUM7SUFDVix3Q0FBa0IsR0FBeEIsVUFBeUIsT0FBTyxFQUFFLEVBQXdCO1lBQXRCLFdBQVcsaUJBQUEsRUFBRSxPQUFPLGFBQUE7Ozs7Z0JBQ3RELElBQUksT0FBTyxLQUFLLGlCQUFpQixJQUFJLE9BQU8sS0FBSyx5QkFBeUIsRUFBRTtvQkFDcEUsZUFBZSxHQUFHLGNBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLGNBQWMsQ0FBQyxDQUFDO29CQUNyRCxlQUFlLEdBQUcsY0FBSSxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsY0FBYyxDQUFDLENBQUM7b0JBQzNELElBQUEsdUJBQWUsRUFBQyxDQUFDLGVBQWUsRUFBRSxlQUFlLENBQUMsRUFBRSxFQUFFLFdBQVcsYUFBQSxFQUFFLENBQUMsQ0FBQztpQkFDdEU7Ozs7S0FDRjtJQUNLLGlDQUFXLEdBQWpCLFVBQWtCLElBQVksRUFBRSxHQUFZLEVBQUUsV0FBcUI7Ozs7Ozt3QkFDN0QsV0FBVyxHQUFHLEdBQUcsQ0FBQzs2QkFDbEIsQ0FBQyxXQUFXLEVBQVosd0JBQVk7d0JBQ0UscUJBQU0sUUFBUSxDQUFDLE1BQU0sQ0FBQyx1QkFBTSxnQ0FBa0IsS0FBRSxPQUFPLEVBQUUsSUFBQSxhQUFJLEVBQUMsSUFBQSxjQUFLLEVBQUMsSUFBSSxFQUFFLEdBQUcsQ0FBQyxDQUFDLElBQUcsQ0FBQyxFQUFBOzt3QkFBN0YsT0FBTyxHQUFHLFNBQW1GO3dCQUNuRyxXQUFXLEdBQUcsT0FBTyxDQUFDLFdBQVcsQ0FBQzs7O3dCQUU5QixRQUFRLEdBQUcsV0FBVyxDQUFDLENBQUMsQ0FBQyxXQUFXLENBQUMsQ0FBQyxDQUFDLElBQUEsaUJBQVMsRUFBQyxVQUFVLENBQUMsSUFBSSw0QkFBaUIsQ0FBQzt3QkFFeEUscUJBQU0sZUFBZSxDQUFDLEVBQUUsUUFBUSxVQUFBLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxXQUFXLEVBQUUsQ0FBQyxFQUFBOzt3QkFBNUYsT0FBTyxHQUFHLFNBQWtGOzZCQUM5RixPQUFPLEVBQVAsd0JBQU87d0JBQ1QscUJBQU0sSUFBSSxDQUFDLGtCQUFrQixDQUFDLElBQUksRUFBRSxFQUFFLFdBQVcsYUFBQSxFQUFFLE9BQU8sU0FBQSxFQUFFLENBQUMsRUFBQTs7d0JBQTdELFNBQTZELENBQUMsQ0FBQyxnQ0FBZ0M7d0JBQy9GLGNBQU0sQ0FBQyxPQUFPLENBQUMsWUFBSyxJQUFBLGNBQUssRUFBQyxLQUFLLENBQUMsc0NBQW1DLENBQUMsQ0FBQzt3QkFDckUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxVQUFHLElBQUEsY0FBSyxFQUFDLElBQUksQ0FBQyw0QkFBa0IsT0FBTyx5Q0FBc0MsQ0FBQyxDQUFDO3dCQUMzRixPQUFPLENBQUMsR0FBRyxDQUFDLFVBQUcsSUFBQSxjQUFLLEVBQUMsS0FBSyxDQUFDLG1GQUFnRixDQUFDLENBQUM7d0JBQzdHLE9BQU8sQ0FBQyxHQUFHLENBQ1QsVUFBRyxJQUFBLGNBQUssRUFBQyxJQUFJLENBQUMsMkJBQW1COzRCQUMvQixNQUFNLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxvREFBb0QsR0FBRyxJQUFJLENBQUMsQ0FDckYsQ0FBQzs7NEJBR0osc0JBQU8sRUFBRSxPQUFPLFNBQUEsRUFBRSxFQUFDOzs7O0tBQ3BCO0lBQ0ssa0RBQTRCLEdBQWxDLFVBQW1DLElBQVksRUFBRSxHQUFZOzs7Ozs7d0JBQ3ZELFdBQVcsR0FBRyxHQUFHLENBQUM7d0JBQ3RCLElBQUksQ0FBQyxXQUFXLEVBQUU7NEJBQ2hCLFdBQVcsR0FBRyxJQUFBLGFBQUksRUFBQyxJQUFBLGNBQUssRUFBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQzt5QkFDdEM7d0JBQ0ssUUFBUSxHQUFHLElBQUEsaUJBQVMsRUFBQyxVQUFVLENBQUMsSUFBSSw0QkFBaUIsQ0FBQzt3QkFFNUMscUJBQU0sZUFBZSxDQUFDLEVBQUUsUUFBUSxVQUFBLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxXQUFXLEVBQUUsQ0FBQyxFQUFBOzt3QkFBNUYsT0FBTyxHQUFHLFNBQWtGO3dCQUNsRyxJQUFJLE9BQU8sRUFBRTs0QkFDWCxjQUFNLENBQUMsT0FBTyxDQUFDLFlBQUssSUFBQSxjQUFLLEVBQUMsS0FBSyxDQUFDLHNDQUFtQyxDQUFDLENBQUM7NEJBQ3JFLE9BQU8sQ0FBQyxHQUFHLENBQUMsVUFBRyxJQUFBLGNBQUssRUFBQyxJQUFJLENBQUMsNEJBQWtCLE9BQU8seUNBQXNDLENBQUMsQ0FBQzs0QkFDM0YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxVQUFHLElBQUEsY0FBSyxFQUFDLEtBQUssQ0FBQyxtRkFBZ0YsQ0FBQyxDQUFDOzRCQUM3RyxPQUFPLENBQUMsR0FBRyxDQUNULFVBQUcsSUFBQSxjQUFLLEVBQUMsSUFBSSxDQUFDLDJCQUFtQjtnQ0FDL0IsTUFBTSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsb0RBQW9ELEdBQUcsSUFBSSxDQUFDLENBQ3JGLENBQUM7eUJBQ0g7d0JBQ0Qsc0JBQU8sRUFBRSxPQUFPLFNBQUEsRUFBRSxFQUFDOzs7O0tBQ3BCO0lBQ0sscUNBQWUsR0FBckIsVUFBc0IsSUFBWSxFQUFFLEdBQVk7OztnQkFDOUMsc0JBQU8sSUFBSSxPQUFPLENBQUMsVUFBQSxPQUFPO3dCQUN4QixJQUFNLE1BQU0sR0FBRyxJQUFBLHFCQUFLLEVBQUMsS0FBSyxFQUFFLENBQUMsT0FBTyxFQUFFLElBQUksQ0FBQyxFQUFFOzRCQUMzQyxLQUFLLEVBQUUsSUFBSTs0QkFDWCxHQUFHLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLElBQUk7NEJBQ3JCLEtBQUssRUFBRSxDQUFDLFFBQVEsRUFBRSxTQUFTLEVBQUUsU0FBUyxDQUFDO3lCQUN4QyxDQUFDLENBQUM7d0JBQ0gsTUFBTSxDQUFDLEVBQUUsQ0FBQyxPQUFPLEVBQUUsVUFBQSxJQUFJOzRCQUNyQixPQUFPLENBQUMsRUFBRSxJQUFJLE1BQUEsRUFBRSxDQUFDLENBQUM7d0JBQ3BCLENBQUMsQ0FBQyxDQUFDO29CQUNMLENBQUMsQ0FBQyxFQUFDOzs7S0FDSjtJQUVLLDRCQUFNLEdBQVosVUFBYSxPQUFlOzs7Ozs0QkFDTCxxQkFBTSxRQUFRLENBQUMsTUFBTSxDQUFDOzRCQUN6QztnQ0FDRSxJQUFJLEVBQUUsU0FBUztnQ0FDZixJQUFJLEVBQUUsTUFBTTtnQ0FDWixPQUFPLEVBQUUsR0FBRztnQ0FDWixPQUFPLEVBQUUsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFBLFlBQUksRUFBQywwQkFBMEIsQ0FBQyxDQUFDOzZCQUN6RDt5QkFDRixDQUFDLEVBQUE7O3dCQVBJLE9BQU8sR0FBUSxTQU9uQjt3QkFFRixJQUFJLE9BQU8sQ0FBQyxJQUFJLEVBQUU7NEJBQ2hCLElBQUEseUJBQVMsRUFBQyxVQUFVLEVBQUUsRUFBRSxHQUFHLEVBQUUsT0FBTyxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxDQUFDLENBQUM7eUJBQ3hFOzs7OztLQUNGO0lBRUssMEJBQUksR0FBVixVQUFXLElBQWEsRUFBRSxHQUFZOzs7Ozs7d0JBQ3BDLE9BQU8sQ0FBQyxHQUFHLENBQ1QsWUFBSyxJQUFBLGNBQUssRUFBQyxJQUFJLENBQUMsa0NBQXdCLE1BQU0sQ0FBQyxTQUFTLENBQ3RELG1GQUFtRixDQUNwRixPQUFJLENBQ04sQ0FBQzs2QkFDRSxDQUFDLElBQUksRUFBTCx3QkFBSzt3QkFDYyxxQkFBTSxRQUFRLENBQUMsTUFBTSxDQUFDLGtDQUFvQixDQUFDLEVBQUE7O3dCQUExRCxPQUFPLEdBQVEsU0FBMkM7d0JBQzFELGdCQUFjLE9BQU8sQ0FBQyxRQUFRLElBQUksT0FBTyxDQUFDLFVBQVUsQ0FBQzt3QkFDM0QsT0FBTyxDQUFDLEdBQUcsQ0FBQyxZQUFLLElBQUEsY0FBSyxFQUFDLElBQUksQ0FBQyxrREFBd0MsYUFBVyxRQUFLLENBQUMsQ0FBQzt3QkFDbEUscUJBQU0sSUFBSSxDQUFDLFdBQVcsQ0FBQyxhQUFXLEVBQUUsR0FBRyxDQUFDLEVBQUE7O3dCQUFwRCxPQUFPLEdBQUssQ0FBQSxTQUF3QyxDQUFBLFFBQTdDO3dCQUNmLE1BQU0sQ0FBQyxFQUFFLElBQUksRUFBRSxjQUFjLEVBQUUsT0FBTyxFQUFFLGFBQVcsRUFBRSxDQUFDLENBQUM7d0JBQ2pELE9BQU8sR0FBUSxJQUFBLGFBQUksRUFBQywwQkFBWSxFQUFFLFVBQUEsSUFBSSxJQUFJLE9BQUEsSUFBSSxDQUFDLEtBQUssS0FBSyxhQUFXLEVBQTFCLENBQTBCLENBQUMsQ0FBQzs2QkFDeEUsQ0FBQSxPQUFPLElBQUksT0FBTyxDQUFDLFFBQVEsQ0FBQSxFQUEzQix3QkFBMkI7d0JBQzdCLHFCQUFNLElBQUksQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLEVBQUE7O3dCQUExQixTQUEwQixDQUFDOzs7OzZCQUVwQixDQUFBLElBQUksQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUEsRUFBL0Isd0JBQStCO3dCQUN4QyxxQkFBTSxJQUFJLENBQUMsZUFBZSxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsRUFBQTs7d0JBQXJDLFNBQXFDLENBQUM7Ozs2QkFFbEMsSUFBQSxhQUFJLEVBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxVQUFBLENBQUMsSUFBSSxPQUFBLENBQUMsS0FBSyxrQkFBa0IsRUFBeEIsQ0FBd0IsQ0FBQyxFQUFqRCx3QkFBaUQ7d0JBQzVDLHFCQUFNLElBQUksQ0FBQyw0QkFBNEIsQ0FBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLEVBQUE7NEJBQXpELHNCQUFPLFNBQWtELEVBQUM7NEJBRXhDLHFCQUFNLElBQUksQ0FBQyxXQUFXLENBQUMsSUFBSSxFQUFFLEdBQUcsQ0FBQyxFQUFBOzt3QkFBN0MsT0FBTyxHQUFLLENBQUEsU0FBaUMsQ0FBQSxRQUF0Qzt3QkFDVCxPQUFPLEdBQVEsSUFBQSxhQUFJLEVBQUMsMEJBQVksRUFBRSxVQUFBLElBQUksSUFBSSxPQUFBLElBQUEsaUJBQVEsRUFBQyxJQUFJLENBQUMsS0FBSyxFQUFFLElBQUksQ0FBQyxFQUExQixDQUEwQixDQUFDLENBQUM7NkJBQ3hFLENBQUEsT0FBTyxJQUFJLE9BQU8sQ0FBQyxRQUFRLENBQUEsRUFBM0IseUJBQTJCO3dCQUM3QixxQkFBTSxJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxFQUFBOzt3QkFBMUIsU0FBMEIsQ0FBQzs7Ozs7O0tBR2hDO0lBQ0gsa0JBQUM7QUFBRCxDQUFDLEFBNUdELElBNEdDO0FBNUdZLGtDQUFXIn0=
|
package/lib/onboarding/index.js
CHANGED
|
@@ -43,19 +43,27 @@ var init_manager_1 = require("../init/init-manager");
|
|
|
43
43
|
var utils_1 = require("../utils");
|
|
44
44
|
var common_1 = require("../utils/common");
|
|
45
45
|
var core_1 = __importDefault(require("../utils/core"));
|
|
46
|
-
var colors = core_1.default.colors, inquirer = core_1.default.inquirer, fs = core_1.default.fse;
|
|
46
|
+
var colors = core_1.default.colors, inquirer = core_1.default.inquirer, fs = core_1.default.fse, getTemplatePath = core_1.default.getTemplatePath;
|
|
47
47
|
function onboarding() {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function () {
|
|
49
|
-
var templateFile;
|
|
49
|
+
var templateFile, error_1;
|
|
50
50
|
return __generator(this, function (_a) {
|
|
51
51
|
switch (_a.label) {
|
|
52
52
|
case 0:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
_a.trys.push([0, 2, , 3]);
|
|
54
|
+
return [4 /*yield*/, getTemplatePath()];
|
|
55
|
+
case 1:
|
|
56
|
+
templateFile = _a.sent();
|
|
57
|
+
return [3 /*break*/, 3];
|
|
58
|
+
case 2:
|
|
59
|
+
error_1 = _a.sent();
|
|
60
|
+
return [3 /*break*/, 3];
|
|
58
61
|
case 3:
|
|
62
|
+
if (!fs.existsSync(templateFile)) return [3 /*break*/, 5];
|
|
63
|
+
return [4 /*yield*/, projectWithDevs()];
|
|
64
|
+
case 4: return [2 /*return*/, _a.sent()];
|
|
65
|
+
case 5: return [4 /*yield*/, projectWithNoDevs()];
|
|
66
|
+
case 6:
|
|
59
67
|
_a.sent();
|
|
60
68
|
return [2 /*return*/];
|
|
61
69
|
}
|
|
@@ -100,4 +108,4 @@ function projectWithNoDevs() {
|
|
|
100
108
|
});
|
|
101
109
|
}
|
|
102
110
|
exports.default = onboarding;
|
|
103
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
111
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb25ib2FyZGluZy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHFEQUFtRDtBQUNuRCxrQ0FBZ0M7QUFDaEMsMENBQTZDO0FBQzdDLHVEQUFpQztBQUN6QixJQUFBLE1BQU0sR0FBeUMsY0FBSSxPQUE3QyxFQUFFLFFBQVEsR0FBK0IsY0FBSSxTQUFuQyxFQUFPLEVBQUUsR0FBc0IsY0FBSSxJQUExQixFQUFFLGVBQWUsR0FBSyxjQUFJLGdCQUFULENBQVU7QUFFNUQsU0FBZSxVQUFVOzs7Ozs7O29CQUdOLHFCQUFNLGVBQWUsRUFBRSxFQUFBOztvQkFBdEMsWUFBWSxHQUFHLFNBQXVCLENBQUM7Ozs7Ozt5QkFFckMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxZQUFZLENBQUMsRUFBM0Isd0JBQTJCO29CQUN0QixxQkFBTSxlQUFlLEVBQUUsRUFBQTt3QkFBOUIsc0JBQU8sU0FBdUIsRUFBQzt3QkFFakMscUJBQU0saUJBQWlCLEVBQUUsRUFBQTs7b0JBQXpCLFNBQXlCLENBQUM7Ozs7O0NBQzNCO0FBRUQsU0FBZSxlQUFlOzs7WUFDNUIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxJQUFBLFlBQUcsRUFBQyxVQUFHLElBQUEsWUFBSSxFQUFDLDhCQUE4QixDQUFDLE1BQUcsQ0FBQyxDQUFDLENBQUM7WUFFN0QsT0FBTyxDQUFDLEdBQUcsQ0FBQyxZQUFLLElBQUEsY0FBSyxFQUFDLElBQUksQ0FBQyxjQUFJLElBQUEsWUFBRyxFQUFDLGFBQWEsQ0FBQyxTQUFHLFlBQUcsQ0FBQyxTQUFTLENBQUMsaUNBQWlDLENBQUMsQ0FBRSxDQUFDLENBQUM7WUFDekcsT0FBTyxDQUFDLEdBQUcsQ0FDVCxVQUFHLElBQUEsY0FBSyxFQUFDLElBQUksQ0FBQyxjQUFJLElBQUEsWUFBRyxFQUFDLGVBQWUsQ0FBQyxTQUFHLFlBQUcsQ0FBQyxTQUFTLENBQ3BELGdFQUFnRSxDQUNqRSxDQUFFLENBQ0osQ0FBQztZQUNGLE9BQU8sQ0FBQyxHQUFHLENBQ1QsVUFBRyxJQUFBLGNBQUssRUFBQyxHQUFHLENBQUMsY0FBSSxJQUFBLFlBQUcsRUFBQyxVQUFVLENBQUMsU0FBRyxZQUFHLENBQUMsU0FBUyxDQUFDLDJEQUEyRCxDQUFDLENBQUUsQ0FDaEgsQ0FBQzs7OztDQUNIO0FBRUQsU0FBZSxpQkFBaUI7Ozs7O3dCQUNmLHFCQUFNLFFBQVEsQ0FBQyxNQUFNLENBQUM7d0JBQ25DOzRCQUNFLElBQUksRUFBRSxTQUFTOzRCQUNmLE9BQU8sRUFBRSxHQUFHOzRCQUNaLElBQUksRUFBRSxNQUFNOzRCQUNaLE9BQU8sRUFBRSxNQUFNLENBQUMsTUFBTSxDQUFDLElBQUEsWUFBSSxFQUFDLHNCQUFzQixDQUFDLENBQUM7eUJBQ3JEO3FCQUNGLENBQUMsRUFBQTs7b0JBUEksTUFBTSxHQUFHLFNBT2I7eUJBQ0UsTUFBTSxDQUFDLElBQUksRUFBWCx3QkFBVztvQkFDUCxXQUFXLEdBQUcsSUFBSSwwQkFBVyxFQUFFLENBQUM7b0JBQ3RDLHFCQUFNLFdBQVcsQ0FBQyxJQUFJLEVBQUUsRUFBQTs7b0JBQXhCLFNBQXdCLENBQUM7Ozs7OztDQUU1QjtBQUVELGtCQUFlLFVBQVUsQ0FBQyJ9
|
|
@@ -31,7 +31,7 @@ __p += '`),Y&&(S+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+S+`return __p
|
|
34
|
-
}`;var B=cl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ys(B))throw B;return B}function nm(e){return J(e).toLowerCase()}function rm(e){return J(e).toUpperCase()}function im(e,t,n){if(e=J(e),e&&(n||t===i))return yo(e);if(!e||!(t=De(t)))return e;var u=Je(e),l=Je(t),h=wo(u,l),g=xo(u,l)+1;return Nt(u,h,g).join("")}function sm(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,Oo(e)+1);if(!e||!(t=De(t)))return e;var u=Je(e),l=xo(u,Je(t))+1;return Nt(u,0,l).join("")}function um(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(Yi,"");if(!e||!(t=De(t)))return e;var u=Je(e),l=wo(u,Je(t));return Nt(u,l).join("")}function om(e,t){var n=eh,u=th;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?De(t.omission):u}e=J(e);var h=e.length;if(hn(e)){var g=Je(e);h=g.length}if(n>=h)return e;var _=n-pn(u);if(_<1)return u;var m=g?Nt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Ks(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=cs(l.source,J(Gu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(De(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function am(e){return e=J(e),e&&Eh.test(e)?e.replace(Mu,Fp):e}var lm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ks=ha("toUpperCase");function fl(e,t,n){return e=J(e),t=n?i:t,t===i?$p(e)?Wp(e):Ap(e):e.match(t)||[]}var cl=X(function(e,t){try{return Te(e,i,t)}catch(n){return Ys(n)?n:new W(n)}}),fm=mt(function(e,t){return He(t,function(n){n=ot(n),_t(e,n,zs(e[n],e))}),e});function cm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(Te(h[0],this,u))return Te(h[1],this,u)}})}function hm(e){return Fg(Ue(e,p))}function Qs(e){return function(){return e}}function pm(e,t){return e==null||e!==e?t:e}var gm=ga(),dm=ga(!0);function Ce(e){return e}function eu(e){return jo(typeof e=="function"?e:Ue(e,p))}function _m(e){return zo(Ue(e,p))}function vm(e,t){return Vo(e,Ue(t,p))}var mm=X(function(e,t){return function(n){return Zn(n,e,t)}}),Em=X(function(e,t){return function(n){return Zn(e,n,t)}});function tu(e,t,n){var u=he(t),l=Jr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=Jr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=yt(e);return He(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,It([this.value()],arguments))})}),e}function ym(){return ce._===this&&(ce._=zp),this}function nu(){}function wm(e){return e=U(e),X(function(t){return Yo(t,e)})}var xm=Ds(re),Am=Ds(go),Om=Ds(is);function hl(e){return Ws(e)?ss(ot(e)):ed(e)}function bm(e){return function(t){return e==null?i:Vt(e,t)}}var Sm=_a(),Rm=_a(!0);function ru(){return[]}function iu(){return!1}function Im(){return{}}function Cm(){return""}function Lm(){return!0}function Tm(e,t){if(e=U(e),e<1||e>St)return[];var n=it,u=_e(e,it);t=q(t),e-=it;for(var l=as(u,t);++n<e;)t(n);return l}function $m(e){return G(e)?re(e,ot):Pe(e)?[e]:Se($a(J(e)))}function Dm(e){var t=++jp;return J(e)+t}var Pm=ri(function(e,t){return e+t},0),Nm=Ps("ceil"),qm=ri(function(e,t){return e/t},1),Fm=Ps("floor");function Mm(e){return e&&e.length?Zr(e,Ce,Es):i}function Hm(e,t){return e&&e.length?Zr(e,q(t,2),Es):i}function Wm(e){return mo(e,Ce)}function Gm(e,t){return mo(e,q(t,2))}function Um(e){return e&&e.length?Zr(e,Ce,As):i}function Bm(e,t){return e&&e.length?Zr(e,q(t,2),As):i}var jm=ri(function(e,t){return e*t},1),Xm=Ps("round"),zm=ri(function(e,t){return e-t},0);function Vm(e){return e&&e.length?os(e,Ce):0}function Ym(e,t){return e&&e.length?os(e,q(t,2)):0}return c.after=_0,c.ary=Ba,c.assign=rv,c.assignIn=rl,c.assignInWith=_i,c.assignWith=iv,c.at=sv,c.before=ja,c.bind=zs,c.bindAll=fm,c.bindKey=Xa,c.castArray=I0,c.chain=Wa,c.chunk=Fd,c.compact=Md,c.concat=Hd,c.cond=cm,c.conforms=hm,c.constant=Qs,c.countBy=V_,c.create=uv,c.curry=za,c.curryRight=Va,c.debounce=Ya,c.defaults=ov,c.defaultsDeep=av,c.defer=v0,c.delay=m0,c.difference=Wd,c.differenceBy=Gd,c.differenceWith=Ud,c.drop=Bd,c.dropRight=jd,c.dropRightWhile=Xd,c.dropWhile=zd,c.fill=Vd,c.filter=K_,c.flatMap=k_,c.flatMapDeep=Q_,c.flatMapDepth=e0,c.flatten=qa,c.flattenDeep=Yd,c.flattenDepth=Kd,c.flip=E0,c.flow=gm,c.flowRight=dm,c.fromPairs=Zd,c.functions=dv,c.functionsIn=_v,c.groupBy=t0,c.initial=kd,c.intersection=Qd,c.intersectionBy=e_,c.intersectionWith=t_,c.invert=mv,c.invertBy=Ev,c.invokeMap=r0,c.iteratee=eu,c.keyBy=i0,c.keys=he,c.keysIn=Ie,c.map=fi,c.mapKeys=wv,c.mapValues=xv,c.matches=_m,c.matchesProperty=vm,c.memoize=hi,c.merge=Av,c.mergeWith=il,c.method=mm,c.methodOf=Em,c.mixin=tu,c.negate=pi,c.nthArg=wm,c.omit=Ov,c.omitBy=bv,c.once=y0,c.orderBy=s0,c.over=xm,c.overArgs=w0,c.overEvery=Am,c.overSome=Om,c.partial=Vs,c.partialRight=Ka,c.partition=u0,c.pick=Sv,c.pickBy=sl,c.property=hl,c.propertyOf=bm,c.pull=s_,c.pullAll=Ma,c.pullAllBy=u_,c.pullAllWith=o_,c.pullAt=a_,c.range=Sm,c.rangeRight=Rm,c.rearg=x0,c.reject=l0,c.remove=l_,c.rest=A0,c.reverse=js,c.sampleSize=c0,c.set=Iv,c.setWith=Cv,c.shuffle=h0,c.slice=f_,c.sortBy=d0,c.sortedUniq=v_,c.sortedUniqBy=m_,c.split=kv,c.spread=O0,c.tail=E_,c.take=y_,c.takeRight=w_,c.takeRightWhile=x_,c.takeWhile=A_,c.tap=M_,c.throttle=b0,c.thru=li,c.toArray=el,c.toPairs=ul,c.toPairsIn=ol,c.toPath=$m,c.toPlainObject=nl,c.transform=Lv,c.unary=S0,c.union=O_,c.unionBy=b_,c.unionWith=S_,c.uniq=R_,c.uniqBy=I_,c.uniqWith=C_,c.unset=Tv,c.unzip=Xs,c.unzipWith=Ha,c.update=$v,c.updateWith=Dv,c.values=xn,c.valuesIn=Pv,c.without=L_,c.words=fl,c.wrap=R0,c.xor=T_,c.xorBy=$_,c.xorWith=D_,c.zip=P_,c.zipObject=N_,c.zipObjectDeep=q_,c.zipWith=F_,c.entries=ul,c.entriesIn=ol,c.extend=rl,c.extendWith=_i,tu(c,c),c.add=Pm,c.attempt=cl,c.camelCase=Mv,c.capitalize=al,c.ceil=Nm,c.clamp=Nv,c.clone=C0,c.cloneDeep=T0,c.cloneDeepWith=$0,c.cloneWith=L0,c.conformsTo=D0,c.deburr=ll,c.defaultTo=pm,c.divide=qm,c.endsWith=Hv,c.eq=Qe,c.escape=Wv,c.escapeRegExp=Gv,c.every=Y_,c.find=Z_,c.findIndex=Pa,c.findKey=lv,c.findLast=J_,c.findLastIndex=Na,c.findLastKey=fv,c.floor=Fm,c.forEach=Ga,c.forEachRight=Ua,c.forIn=cv,c.forInRight=hv,c.forOwn=pv,c.forOwnRight=gv,c.get=Zs,c.gt=P0,c.gte=N0,c.has=vv,c.hasIn=Js,c.head=Fa,c.identity=Ce,c.includes=n0,c.indexOf=Jd,c.inRange=qv,c.invoke=yv,c.isArguments=Zt,c.isArray=G,c.isArrayBuffer=q0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=F0,c.isBuffer=qt,c.isDate=M0,c.isElement=H0,c.isEmpty=W0,c.isEqual=G0,c.isEqualWith=U0,c.isError=Ys,c.isFinite=B0,c.isFunction=yt,c.isInteger=Za,c.isLength=gi,c.isMap=Ja,c.isMatch=j0,c.isMatchWith=X0,c.isNaN=z0,c.isNative=V0,c.isNil=K0,c.isNull=Y0,c.isNumber=ka,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=nr,c.isRegExp=Ks,c.isSafeInteger=Z0,c.isSet=Qa,c.isString=di,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=J0,c.isWeakMap=k0,c.isWeakSet=Q0,c.join=n_,c.kebabCase=Uv,c.last=je,c.lastIndexOf=r_,c.lowerCase=Bv,c.lowerFirst=jv,c.lt=ev,c.lte=tv,c.max=Mm,c.maxBy=Hm,c.mean=Wm,c.meanBy=Gm,c.min=Um,c.minBy=Bm,c.stubArray=ru,c.stubFalse=iu,c.stubObject=Im,c.stubString=Cm,c.stubTrue=Lm,c.multiply=jm,c.nth=i_,c.noConflict=ym,c.noop=nu,c.now=ci,c.pad=Xv,c.padEnd=zv,c.padStart=Vv,c.parseInt=Yv,c.random=Fv,c.reduce=o0,c.reduceRight=a0,c.repeat=Kv,c.replace=Zv,c.result=Rv,c.round=Xm,c.runInContext=v,c.sample=f0,c.size=p0,c.snakeCase=Jv,c.some=g0,c.sortedIndex=c_,c.sortedIndexBy=h_,c.sortedIndexOf=p_,c.sortedLastIndex=g_,c.sortedLastIndexBy=d_,c.sortedLastIndexOf=__,c.startCase=Qv,c.startsWith=em,c.subtract=zm,c.sum=Vm,c.sumBy=Ym,c.template=tm,c.times=Tm,c.toFinite=wt,c.toInteger=U,c.toLength=tl,c.toLower=nm,c.toNumber=Xe,c.toSafeInteger=nv,c.toString=J,c.toUpper=rm,c.trim=im,c.trimEnd=sm,c.trimStart=um,c.truncate=om,c.unescape=am,c.uniqueId=Dm,c.upperCase=lm,c.upperFirst=ks,c.each=Ga,c.eachRight=Ua,c.first=Fa,tu(c,function(){var e={};return st(c,function(t,n){k.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){V.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new V(this):this.clone();return u.__filtered__?u.__takeCount__=_e(n,u.__takeCount__):u.__views__.push({size:_e(n,it),type:e+(u.__dir__<0?"Right":"")}),u},V.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Nu||n==sh;V.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:q(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");V.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");V.prototype[e]=function(){return this.__filtered__?new V(this):this[n](1)}}),V.prototype.compact=function(){return this.filter(Ce)},V.prototype.find=function(e){return this.filter(e).head()},V.prototype.findLast=function(e){return this.reverse().find(e)},V.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new V(this):this.map(function(n){return Zn(n,e,t)})}),V.prototype.reject=function(e){return this.filter(pi(q(e)))},V.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new V(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},V.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},V.prototype.toArray=function(){return this.take(it)},st(V.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof V,O=_[0],b=m||G(g),S=function(z){var Y=l.apply(c,It([z],_));return u&&R?Y[0]:Y};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,F=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new V(this);var M=e.apply(g,_);return M.__actions__.push({func:li,args:[S],thisArg:i}),new Ge(M,R)}return F&&B?e.apply(this,_):(M=this.thru(S),F?u?M.value()[0]:M.value():M)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),st(V.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";k.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ni(i,Wt).name]=[{name:"wrapper",func:i}],V.prototype.clone=ag,V.prototype.reverse=lg,V.prototype.value=fg,c.prototype.at=H_,c.prototype.chain=W_,c.prototype.commit=G_,c.prototype.next=U_,c.prototype.plant=j_,c.prototype.reverse=X_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=z_,c.prototype.first=c.prototype.head,Bn&&(c.prototype[Bn]=B_),c},Lt=Gp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=Lt,define(function(){return Lt})):Ut?((Ut.exports=Lt)._=Lt,es._=Lt):ce._=Lt}).call(Sn)});var Di=L(Le=>{"use strict";var hy=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},py=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Rc=Sc(require("path")),Ou=Sc(bt()),at=Ou.default.fse,$i=Ou.default.jsyaml,Au=Ou.default.getRootHome;function gy(i){var r=Cc();at.writeFileSync(r,$i.dump(i))}function Ic(){var i=Cc();if(!at.existsSync(i))return{};try{var r=$i.load(at.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Cc(){var i=Rc.default.join(Au(),"set-config.yml");return at.existsSync(i)||at.createFileSync(i),i}function dy(i,r){var s=Ic();s[i]=r,gy(s)}Le.setConfig=dy;function _y(i,r){var s=Ic();return s[i]||r}Le.getConfig=_y;function vy(i){return hy(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return py(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Rc.default.join(Au(),r),o=at.existsSync(s),f={},o)return[3,5];a=Au(),y.label=1;case 1:return y.trys.push([1,2,,4]),at.statSync(a),[3,4];case 2:return d=y.sent(),[4,at.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=$i.load(at.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,at.writeFileSync(s,$i.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=vy});var Lc=L((Bx,my)=>{my.exports={name:"@serverless-devs/s",version:"2.0.100-beta.7",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var xr=L(H=>{"use strict";var Ey=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]}),yy=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),wy=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)&&Ey(r,i,s);return yy(r,i),r},yr=H&&H.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},wr=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},bu=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.replaceFun=H.getLang=H.printn=H.getFolderSize=H.getVersion=H.getPid=H.aiRequest=H.getCredentialWithAll=H.getCredentialWithExisted=H.getProcessArgv=H.bgRed=H.yellow=H.red=void 0;var xy=bu(require("path")),Er=bu(require("fs")),Mt=bc(),Ay=bu(require("os")),lt=wy(bt()),Oy=Di(),Tc=Lc(),Pi=lt.default.colors,by=lt.default.got,Sy=lt.default.getMAC,Ry=lt.default.isDocker,Iy=lt.default.isCiCdEnv,Cy=lt.default.getGlobalArgs,$c=lt.default.getCredential,Dc=lt.default.getCredentialAliasList;H.red=Pi.hex("#fd5750");H.yellow=Pi.hex("#F3F99D");H.bgRed=Pi.hex("#000").bgHex("#fd5750");var Ly=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=Cy(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Mt.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Mt.filter)(s._argsObj,function(o){return!(0,Mt.includes)(["-h","--help"],o)}))})}catch{return{}}};H.getProcessArgv=Ly;var Ty=function(i){return yr(void 0,void 0,void 0,function(){var r,s;return wr(this,function(o){switch(o.label){case 0:return[4,Dc()];case 1:return r=o.sent(),(0,Mt.includes)(r,i)?[4,$c(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Mt.omit)(s,"Alias")];case 3:return[2]}})})};H.getCredentialWithExisted=Ty;var $y=function(){return yr(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return wr(this,function(d){switch(d.label){case 0:return[4,Dc()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,$c(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Mt.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};H.getCredentialWithAll=$y;var Dy=function(i,r){return r===void 0&&(r="unknow"),yr(void 0,void 0,void 0,function(){var s,o,f,a;return wr(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Oy.getConfig)("analysis"),s!=="enable"?[2]:Ry()||Iy()?[2]:[4,by("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Mt.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=cl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ys(B))throw B;return B}function nm(e){return J(e).toLowerCase()}function rm(e){return J(e).toUpperCase()}function im(e,t,n){if(e=J(e),e&&(n||t===i))return yo(e);if(!e||!(t=De(t)))return e;var u=Je(e),l=Je(t),h=wo(u,l),g=xo(u,l)+1;return Nt(u,h,g).join("")}function sm(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,Oo(e)+1);if(!e||!(t=De(t)))return e;var u=Je(e),l=xo(u,Je(t))+1;return Nt(u,0,l).join("")}function um(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(Yi,"");if(!e||!(t=De(t)))return e;var u=Je(e),l=wo(u,Je(t));return Nt(u,l).join("")}function om(e,t){var n=eh,u=th;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?De(t.omission):u}e=J(e);var h=e.length;if(hn(e)){var g=Je(e);h=g.length}if(n>=h)return e;var _=n-pn(u);if(_<1)return u;var m=g?Nt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Ks(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=cs(l.source,J(Gu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(De(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function am(e){return e=J(e),e&&Eh.test(e)?e.replace(Mu,Fp):e}var lm=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ks=ha("toUpperCase");function fl(e,t,n){return e=J(e),t=n?i:t,t===i?$p(e)?Wp(e):Ap(e):e.match(t)||[]}var cl=X(function(e,t){try{return Te(e,i,t)}catch(n){return Ys(n)?n:new W(n)}}),fm=mt(function(e,t){return He(t,function(n){n=ot(n),_t(e,n,zs(e[n],e))}),e});function cm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(Te(h[0],this,u))return Te(h[1],this,u)}})}function hm(e){return Fg(Ue(e,p))}function Qs(e){return function(){return e}}function pm(e,t){return e==null||e!==e?t:e}var gm=ga(),dm=ga(!0);function Ce(e){return e}function eu(e){return jo(typeof e=="function"?e:Ue(e,p))}function _m(e){return zo(Ue(e,p))}function vm(e,t){return Vo(e,Ue(t,p))}var mm=X(function(e,t){return function(n){return Zn(n,e,t)}}),Em=X(function(e,t){return function(n){return Zn(e,n,t)}});function tu(e,t,n){var u=he(t),l=Jr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=Jr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=yt(e);return He(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,It([this.value()],arguments))})}),e}function ym(){return ce._===this&&(ce._=zp),this}function nu(){}function wm(e){return e=U(e),X(function(t){return Yo(t,e)})}var xm=Ds(re),Am=Ds(go),Om=Ds(is);function hl(e){return Ws(e)?ss(ot(e)):ed(e)}function bm(e){return function(t){return e==null?i:Vt(e,t)}}var Sm=_a(),Rm=_a(!0);function ru(){return[]}function iu(){return!1}function Im(){return{}}function Cm(){return""}function Lm(){return!0}function Tm(e,t){if(e=U(e),e<1||e>St)return[];var n=it,u=_e(e,it);t=q(t),e-=it;for(var l=as(u,t);++n<e;)t(n);return l}function $m(e){return G(e)?re(e,ot):Pe(e)?[e]:Se($a(J(e)))}function Dm(e){var t=++jp;return J(e)+t}var Pm=ri(function(e,t){return e+t},0),Nm=Ps("ceil"),qm=ri(function(e,t){return e/t},1),Fm=Ps("floor");function Mm(e){return e&&e.length?Zr(e,Ce,Es):i}function Hm(e,t){return e&&e.length?Zr(e,q(t,2),Es):i}function Wm(e){return mo(e,Ce)}function Gm(e,t){return mo(e,q(t,2))}function Um(e){return e&&e.length?Zr(e,Ce,As):i}function Bm(e,t){return e&&e.length?Zr(e,q(t,2),As):i}var jm=ri(function(e,t){return e*t},1),Xm=Ps("round"),zm=ri(function(e,t){return e-t},0);function Vm(e){return e&&e.length?os(e,Ce):0}function Ym(e,t){return e&&e.length?os(e,q(t,2)):0}return c.after=_0,c.ary=Ba,c.assign=rv,c.assignIn=rl,c.assignInWith=_i,c.assignWith=iv,c.at=sv,c.before=ja,c.bind=zs,c.bindAll=fm,c.bindKey=Xa,c.castArray=I0,c.chain=Wa,c.chunk=Fd,c.compact=Md,c.concat=Hd,c.cond=cm,c.conforms=hm,c.constant=Qs,c.countBy=V_,c.create=uv,c.curry=za,c.curryRight=Va,c.debounce=Ya,c.defaults=ov,c.defaultsDeep=av,c.defer=v0,c.delay=m0,c.difference=Wd,c.differenceBy=Gd,c.differenceWith=Ud,c.drop=Bd,c.dropRight=jd,c.dropRightWhile=Xd,c.dropWhile=zd,c.fill=Vd,c.filter=K_,c.flatMap=k_,c.flatMapDeep=Q_,c.flatMapDepth=e0,c.flatten=qa,c.flattenDeep=Yd,c.flattenDepth=Kd,c.flip=E0,c.flow=gm,c.flowRight=dm,c.fromPairs=Zd,c.functions=dv,c.functionsIn=_v,c.groupBy=t0,c.initial=kd,c.intersection=Qd,c.intersectionBy=e_,c.intersectionWith=t_,c.invert=mv,c.invertBy=Ev,c.invokeMap=r0,c.iteratee=eu,c.keyBy=i0,c.keys=he,c.keysIn=Ie,c.map=fi,c.mapKeys=wv,c.mapValues=xv,c.matches=_m,c.matchesProperty=vm,c.memoize=hi,c.merge=Av,c.mergeWith=il,c.method=mm,c.methodOf=Em,c.mixin=tu,c.negate=pi,c.nthArg=wm,c.omit=Ov,c.omitBy=bv,c.once=y0,c.orderBy=s0,c.over=xm,c.overArgs=w0,c.overEvery=Am,c.overSome=Om,c.partial=Vs,c.partialRight=Ka,c.partition=u0,c.pick=Sv,c.pickBy=sl,c.property=hl,c.propertyOf=bm,c.pull=s_,c.pullAll=Ma,c.pullAllBy=u_,c.pullAllWith=o_,c.pullAt=a_,c.range=Sm,c.rangeRight=Rm,c.rearg=x0,c.reject=l0,c.remove=l_,c.rest=A0,c.reverse=js,c.sampleSize=c0,c.set=Iv,c.setWith=Cv,c.shuffle=h0,c.slice=f_,c.sortBy=d0,c.sortedUniq=v_,c.sortedUniqBy=m_,c.split=kv,c.spread=O0,c.tail=E_,c.take=y_,c.takeRight=w_,c.takeRightWhile=x_,c.takeWhile=A_,c.tap=M_,c.throttle=b0,c.thru=li,c.toArray=el,c.toPairs=ul,c.toPairsIn=ol,c.toPath=$m,c.toPlainObject=nl,c.transform=Lv,c.unary=S0,c.union=O_,c.unionBy=b_,c.unionWith=S_,c.uniq=R_,c.uniqBy=I_,c.uniqWith=C_,c.unset=Tv,c.unzip=Xs,c.unzipWith=Ha,c.update=$v,c.updateWith=Dv,c.values=xn,c.valuesIn=Pv,c.without=L_,c.words=fl,c.wrap=R0,c.xor=T_,c.xorBy=$_,c.xorWith=D_,c.zip=P_,c.zipObject=N_,c.zipObjectDeep=q_,c.zipWith=F_,c.entries=ul,c.entriesIn=ol,c.extend=rl,c.extendWith=_i,tu(c,c),c.add=Pm,c.attempt=cl,c.camelCase=Mv,c.capitalize=al,c.ceil=Nm,c.clamp=Nv,c.clone=C0,c.cloneDeep=T0,c.cloneDeepWith=$0,c.cloneWith=L0,c.conformsTo=D0,c.deburr=ll,c.defaultTo=pm,c.divide=qm,c.endsWith=Hv,c.eq=Qe,c.escape=Wv,c.escapeRegExp=Gv,c.every=Y_,c.find=Z_,c.findIndex=Pa,c.findKey=lv,c.findLast=J_,c.findLastIndex=Na,c.findLastKey=fv,c.floor=Fm,c.forEach=Ga,c.forEachRight=Ua,c.forIn=cv,c.forInRight=hv,c.forOwn=pv,c.forOwnRight=gv,c.get=Zs,c.gt=P0,c.gte=N0,c.has=vv,c.hasIn=Js,c.head=Fa,c.identity=Ce,c.includes=n0,c.indexOf=Jd,c.inRange=qv,c.invoke=yv,c.isArguments=Zt,c.isArray=G,c.isArrayBuffer=q0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=F0,c.isBuffer=qt,c.isDate=M0,c.isElement=H0,c.isEmpty=W0,c.isEqual=G0,c.isEqualWith=U0,c.isError=Ys,c.isFinite=B0,c.isFunction=yt,c.isInteger=Za,c.isLength=gi,c.isMap=Ja,c.isMatch=j0,c.isMatchWith=X0,c.isNaN=z0,c.isNative=V0,c.isNil=K0,c.isNull=Y0,c.isNumber=ka,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=nr,c.isRegExp=Ks,c.isSafeInteger=Z0,c.isSet=Qa,c.isString=di,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=J0,c.isWeakMap=k0,c.isWeakSet=Q0,c.join=n_,c.kebabCase=Uv,c.last=je,c.lastIndexOf=r_,c.lowerCase=Bv,c.lowerFirst=jv,c.lt=ev,c.lte=tv,c.max=Mm,c.maxBy=Hm,c.mean=Wm,c.meanBy=Gm,c.min=Um,c.minBy=Bm,c.stubArray=ru,c.stubFalse=iu,c.stubObject=Im,c.stubString=Cm,c.stubTrue=Lm,c.multiply=jm,c.nth=i_,c.noConflict=ym,c.noop=nu,c.now=ci,c.pad=Xv,c.padEnd=zv,c.padStart=Vv,c.parseInt=Yv,c.random=Fv,c.reduce=o0,c.reduceRight=a0,c.repeat=Kv,c.replace=Zv,c.result=Rv,c.round=Xm,c.runInContext=v,c.sample=f0,c.size=p0,c.snakeCase=Jv,c.some=g0,c.sortedIndex=c_,c.sortedIndexBy=h_,c.sortedIndexOf=p_,c.sortedLastIndex=g_,c.sortedLastIndexBy=d_,c.sortedLastIndexOf=__,c.startCase=Qv,c.startsWith=em,c.subtract=zm,c.sum=Vm,c.sumBy=Ym,c.template=tm,c.times=Tm,c.toFinite=wt,c.toInteger=U,c.toLength=tl,c.toLower=nm,c.toNumber=Xe,c.toSafeInteger=nv,c.toString=J,c.toUpper=rm,c.trim=im,c.trimEnd=sm,c.trimStart=um,c.truncate=om,c.unescape=am,c.uniqueId=Dm,c.upperCase=lm,c.upperFirst=ks,c.each=Ga,c.eachRight=Ua,c.first=Fa,tu(c,function(){var e={};return st(c,function(t,n){k.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){V.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new V(this):this.clone();return u.__filtered__?u.__takeCount__=_e(n,u.__takeCount__):u.__views__.push({size:_e(n,it),type:e+(u.__dir__<0?"Right":"")}),u},V.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Nu||n==sh;V.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:q(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");V.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");V.prototype[e]=function(){return this.__filtered__?new V(this):this[n](1)}}),V.prototype.compact=function(){return this.filter(Ce)},V.prototype.find=function(e){return this.filter(e).head()},V.prototype.findLast=function(e){return this.reverse().find(e)},V.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new V(this):this.map(function(n){return Zn(n,e,t)})}),V.prototype.reject=function(e){return this.filter(pi(q(e)))},V.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new V(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},V.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},V.prototype.toArray=function(){return this.take(it)},st(V.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof V,O=_[0],b=m||G(g),S=function(z){var Y=l.apply(c,It([z],_));return u&&R?Y[0]:Y};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,F=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new V(this);var M=e.apply(g,_);return M.__actions__.push({func:li,args:[S],thisArg:i}),new Ge(M,R)}return F&&B?e.apply(this,_):(M=this.thru(S),F?u?M.value()[0]:M.value():M)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),st(V.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";k.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ni(i,Wt).name]=[{name:"wrapper",func:i}],V.prototype.clone=ag,V.prototype.reverse=lg,V.prototype.value=fg,c.prototype.at=H_,c.prototype.chain=W_,c.prototype.commit=G_,c.prototype.next=U_,c.prototype.plant=j_,c.prototype.reverse=X_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=z_,c.prototype.first=c.prototype.head,Bn&&(c.prototype[Bn]=B_),c},Lt=Gp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=Lt,define(function(){return Lt})):Ut?((Ut.exports=Lt)._=Lt,es._=Lt):ce._=Lt}).call(Sn)});var Di=L(Le=>{"use strict";var hy=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},py=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Rc=Sc(require("path")),Ou=Sc(bt()),at=Ou.default.fse,$i=Ou.default.jsyaml,Au=Ou.default.getRootHome;function gy(i){var r=Cc();at.writeFileSync(r,$i.dump(i))}function Ic(){var i=Cc();if(!at.existsSync(i))return{};try{var r=$i.load(at.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Cc(){var i=Rc.default.join(Au(),"set-config.yml");return at.existsSync(i)||at.createFileSync(i),i}function dy(i,r){var s=Ic();s[i]=r,gy(s)}Le.setConfig=dy;function _y(i,r){var s=Ic();return s[i]||r}Le.getConfig=_y;function vy(i){return hy(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return py(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Rc.default.join(Au(),r),o=at.existsSync(s),f={},o)return[3,5];a=Au(),y.label=1;case 1:return y.trys.push([1,2,,4]),at.statSync(a),[3,4];case 2:return d=y.sent(),[4,at.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=$i.load(at.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,at.writeFileSync(s,$i.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=vy});var Lc=L((Bx,my)=>{my.exports={name:"@serverless-devs/s",version:"2.0.100-beta.8",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var xr=L(H=>{"use strict";var Ey=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]}),yy=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),wy=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)&&Ey(r,i,s);return yy(r,i),r},yr=H&&H.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},wr=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},bu=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.replaceFun=H.getLang=H.printn=H.getFolderSize=H.getVersion=H.getPid=H.aiRequest=H.getCredentialWithAll=H.getCredentialWithExisted=H.getProcessArgv=H.bgRed=H.yellow=H.red=void 0;var xy=bu(require("path")),Er=bu(require("fs")),Mt=bc(),Ay=bu(require("os")),lt=wy(bt()),Oy=Di(),Tc=Lc(),Pi=lt.default.colors,by=lt.default.got,Sy=lt.default.getMAC,Ry=lt.default.isDocker,Iy=lt.default.isCiCdEnv,Cy=lt.default.getGlobalArgs,$c=lt.default.getCredential,Dc=lt.default.getCredentialAliasList;H.red=Pi.hex("#fd5750");H.yellow=Pi.hex("#F3F99D");H.bgRed=Pi.hex("#000").bgHex("#fd5750");var Ly=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=Cy(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Mt.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Mt.filter)(s._argsObj,function(o){return!(0,Mt.includes)(["-h","--help"],o)}))})}catch{return{}}};H.getProcessArgv=Ly;var Ty=function(i){return yr(void 0,void 0,void 0,function(){var r,s;return wr(this,function(o){switch(o.label){case 0:return[4,Dc()];case 1:return r=o.sent(),(0,Mt.includes)(r,i)?[4,$c(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Mt.omit)(s,"Alias")];case 3:return[2]}})})};H.getCredentialWithExisted=Ty;var $y=function(){return yr(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return wr(this,function(d){switch(d.label){case 0:return[4,Dc()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,$c(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Mt.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};H.getCredentialWithAll=$y;var Dy=function(i,r){return r===void 0&&(r="unknow"),yr(void 0,void 0,void 0,function(){var s,o,f,a;return wr(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Oy.getConfig)("analysis"),s!=="enable"?[2]:Ry()||Iy()?[2]:[4,by("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Mt.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(Pi.underline(f),`
|
|
36
36
|
`)),[3,3];case 2:return a=d.sent(),[3,3];case 3:return[2]}})})};H.aiRequest=Dy;var Py=function(){try{return Sy().replace(/:/g,"")}catch{return"unknown"}};H.getPid=Py;function Ny(){var i=(0,lt.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(lt.default.getRootHome()),a="".concat(Tc.name,": ").concat(Tc.version);return i?"".concat(a,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(a,", ").concat(f,", ").concat(r,", ").concat(s)}H.getVersion=Ny;function qy(i){return yr(this,void 0,void 0,function(){function r(f){return yr(this,void 0,void 0,function(){var a,d;return wr(this,function(E){switch(E.label){case 0:return a=Er.default.lstatSync(f),typeof a!="object"?[2]:(s.set(a.ino,a.size),a.isDirectory()?(d=Er.default.readdirSync(f),typeof d!="object"?[2]:[4,Promise.all(d.map(function(y){return r(xy.default.join(f,y))}))]):[3,2]);case 1:E.sent(),E.label=2;case 2:return[2]}})})}var s,o;return wr(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(a,d){return a+d},0),[2,o]}})})}H.getFolderSize=qy;function Fy(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}H.printn=Fy;function My(){return"en"}H.getLang=My;function Pc(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var a=o[f].replace(/{{|}}/g,""),d=(0,Mt.trim)(a.split("|")[0]);r[d]&&(i=i.replace(o[f],r[d]))}return i}H.replaceFun=Pc;function Hy(i,r){i.forEach(function(s){if(Er.default.existsSync(s)){var o=Er.default.readFileSync(s,"utf-8"),f=Pc(o,r);Er.default.writeFileSync(s,f,"utf-8")}})}H.replaceTemplate=Hy;function Wy(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}H.mark=Wy;function Gy(i,r){return Ay.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}H.emoji=Gy});var Nc=L(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var qc=L(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Mc=L(Ar=>{"use strict";var Fc=Ar&&Ar.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ar,"__esModule",{value:!0});var Uy=xr(),By=Fc(Nc()),jy=Fc(qc()),Iu={en:jy.default,zh:By.default},Xy=function(i){var r=(0,Uy.getLang)(),s=Iu[r]?Iu[r][i]:Iu.en[i];return s||i};Ar.default=Xy});var Wc=L(ye=>{"use strict";var zy=ye&&ye.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),Hc=ye&&ye.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&zy(r,i,s)},Cu=ye&&ye.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ye,"__esModule",{value:!0});ye.registerCommandChecker=ye.i18n=ye.logger=void 0;var Vy=Cu(Ti());Hc(xr(),ye);Hc(Di(),ye);var Yy=Ti();Object.defineProperty(ye,"logger",{enumerable:!0,get:function(){return Cu(Yy).default}});var Ky=Mc();Object.defineProperty(ye,"i18n",{enumerable:!0,get:function(){return Cu(Ky).default}});function Zy(i){i.on("command:*",function(r){var s=i.commands.map(function(o){return o.name()});s.includes(r[0])||(Vy.default.error(" error: unknown command ".concat(r[0])),i.help())})}ye.registerCommandChecker=Zy});var sn=L(Rn=>{"use strict";var Jy=Rn&&Rn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ServerlessError=void 0;var ky=Jy(bt()),Qy=ky.default.Logger,ew=new Qy("S-CLI-ERROR"),tw=function(){function i(r,s,o){ew.error(r+": "+s,o),process.exit(1)}return i}();Rn.ServerlessError=tw});var Gc=L(In=>{"use strict";var nw=In&&In.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(In,"__esModule",{value:!0});In.CommandError=void 0;var rw=sn(),iw=function(i){nw(r,i);function r(s,o){return i.call(this,"Error",s,o)||this}return r}(rw.ServerlessError);In.CommandError=iw});var Uc=L(Cn=>{"use strict";var sw=Cn&&Cn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ConfigDeleteError=void 0;var uw=sn(),ow=function(i){sw(r,i);function r(s,o){return i.call(this,"Deletion failed",s,o)||this}return r}(uw.ServerlessError);Cn.ConfigDeleteError=ow});var Bc=L(Ln=>{"use strict";var aw=Ln&&Ln.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.ConfigError=void 0;var lw=sn(),fw=function(i){aw(r,i);function r(s,o){return i.call(this,"Config failed",s,o)||this}return r}(lw.ServerlessError);Ln.ConfigError=fw});var jc=L(Tn=>{"use strict";var cw=Tn&&Tn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ConfigGetError=void 0;var hw=sn(),pw=function(i){cw(r,i);function r(s,o){return i.call(this,"Get failed",s,o)||this}return r}(hw.ServerlessError);Tn.ConfigGetError=pw});var Xc=L($n=>{"use strict";var gw=$n&&$n.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.InitError=void 0;var dw=sn(),_w=function(i){gw(r,i);function r(s,o){return i.call(this,"Initialization failed",s,o)||this}return r}(dw.ServerlessError);$n.InitError=_w});var Vc=L(ft=>{"use strict";var vw=ft&&ft.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},mw=ft&&ft.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ew=ft&&ft.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ft,"__esModule",{value:!0});ft.HumanError=void 0;var zc=Ew(bt()),yw=xr(),ww=zc.default.colors,xw=function(){function i(r){var s=r.errorMessage,o=r.tips;this.errorMessage=s,console.log(`
|
|
37
37
|
`.concat((0,yw.bgRed)("ERROR:"))),console.log("TypeError: ".concat(s,`
|
package/lib/set/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __p += '`),K&&(O+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+O+`return __p
|
|
34
|
-
}`;var B=Da(function(){return J(c,N+"return "+O).apply(i,p)});if(B.source=O,Ls(B))throw B;return B}function hm(e){return Q(e).toLowerCase()}function pm(e){return Q(e).toUpperCase()}function gm(e,t,n){if(e=Q(e),e&&(n||t===i))return zu(e);if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Ze(t),c=Vu(u,a),p=Yu(u,a)+1;return bt(u,c,p).join("")}function dm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Zu(e)+1);if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Yu(u,Ze(t))+1;return bt(u,0,a).join("")}function _m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Li,"");if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Vu(u,Ze(t));return bt(u,a).join("")}function mm(e,t){var n=fc,u=cc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?G(t.length):n,u="omission"in t?Te(t.omission):u}e=Q(e);var c=e.length;if(sn(e)){var p=Ze(e);c=p.length}if(n>=c)return e;var g=n-un(u);if(g<1)return u;var _=p?bt(p,0,g).join(""):e.slice(0,g);if(a===i)return _+u;if(p&&(g+=_.length-g),bs(a)){if(e.slice(g).search(a)){var y,R=_;for(a.global||(a=Vi(a.source,Q(pu.exec(a))+"g")),a.lastIndex=0;y=a.exec(R);)var O=y.index;_=_.slice(0,O===i?g:O)}}else if(e.indexOf(Te(a),g)!=g){var S=_.lastIndexOf(a);S>-1&&(_=_.slice(0,S))}return _+u}function vm(e){return e=Q(e),e&&Lc.test(e)?e.replace(fu,Yh):e}var Em=hn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ns=Mo("toUpperCase");function qa(e,t,n){return e=Q(e),t=n?i:t,t===i?Gh(e)?Jh(e):Nh(e):e.match(t)||[]}var Da=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ls(n)?n:new H(n)}}),wm=gt(function(e,t){return De(t,function(n){n=st(n),ht(e,n,Ss(e[n],e))}),e});function xm(e){var t=e==null?0:e.length,n=q();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new Me(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function Am(e){return Yp(He(e,v))}function Ps(e){return function(){return e}}function ym(e,t){return e==null||e!==e?t:e}var Rm=Ho(),Om=Ho(!0);function Se(e){return e}function Fs(e){return _o(typeof e=="function"?e:He(e,v))}function Im(e){return vo(He(e,v))}function Sm(e,t){return Eo(e,He(t,v))}var Cm=z(function(e,t){return function(n){return qn(n,e,t)}}),Lm=z(function(e,t){return function(n){return qn(e,n,t)}});function qs(e,t,n){var u=ce(t),a=Pr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=Pr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=_t(e);return De(a,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var y=this.__chain__;if(c||y){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=y,R}return _.apply(e,yt([this.value()],arguments))})}),e}function bm(){return fe._===this&&(fe._=np),this}function Ds(){}function Tm(e){return e=G(e),z(function(t){return wo(t,e)})}var $m=gs(ne),Nm=gs(Hu),Pm=gs(Ui);function Ma(e){return xs(e)?Hi(st(e)):fg(e)}function Fm(e){return function(t){return e==null?i:Wt(e,t)}}var qm=Go(),Dm=Go(!0);function Ms(){return[]}function Us(){return!1}function Mm(){return{}}function Um(){return""}function Hm(){return!0}function Wm(e,t){if(e=G(e),e<1||e>xt)return[];var n=nt,u=de(e,nt);t=q(t),e-=nt;for(var a=Bi(u,t);++n<e;)t(n);return a}function Gm(e){return W(e)?ne(e,st):$e(e)?[e]:Re(ia(Q(e)))}function Bm(e){var t=++ep;return Q(e)+t}var Xm=Hr(function(e,t){return e+t},0),zm=ds("ceil"),Vm=Hr(function(e,t){return e/t},1),Ym=ds("floor");function Km(e){return e&&e.length?Nr(e,Se,es):i}function Zm(e,t){return e&&e.length?Nr(e,q(t,2),es):i}function Jm(e){return Bu(e,Se)}function Qm(e,t){return Bu(e,q(t,2))}function jm(e){return e&&e.length?Nr(e,Se,is):i}function km(e,t){return e&&e.length?Nr(e,q(t,2),is):i}var ev=Hr(function(e,t){return e*t},1),tv=ds("round"),nv=Hr(function(e,t){return e-t},0);function rv(e){return e&&e.length?Gi(e,Se):0}function iv(e,t){return e&&e.length?Gi(e,q(t,2)):0}return l.after=I0,l.ary=da,l.assign=p_,l.assignIn=La,l.assignInWith=kr,l.assignWith=g_,l.at=d_,l.before=_a,l.bind=Ss,l.bindAll=wm,l.bindKey=ma,l.castArray=M0,l.chain=ha,l.chunk=Yg,l.compact=Kg,l.concat=Zg,l.cond=xm,l.conforms=Am,l.constant=Ps,l.countBy=r0,l.create=__,l.curry=va,l.curryRight=Ea,l.debounce=wa,l.defaults=m_,l.defaultsDeep=v_,l.defer=S0,l.delay=C0,l.difference=Jg,l.differenceBy=Qg,l.differenceWith=jg,l.drop=kg,l.dropRight=ed,l.dropRightWhile=td,l.dropWhile=nd,l.fill=rd,l.filter=s0,l.flatMap=a0,l.flatMapDeep=l0,l.flatMapDepth=f0,l.flatten=aa,l.flattenDeep=id,l.flattenDepth=sd,l.flip=L0,l.flow=Rm,l.flowRight=Om,l.fromPairs=ud,l.functions=O_,l.functionsIn=I_,l.groupBy=c0,l.initial=ad,l.intersection=ld,l.intersectionBy=fd,l.intersectionWith=cd,l.invert=C_,l.invertBy=L_,l.invokeMap=p0,l.iteratee=Fs,l.keyBy=g0,l.keys=ce,l.keysIn=Ie,l.map=Yr,l.mapKeys=T_,l.mapValues=$_,l.matches=Im,l.matchesProperty=Sm,l.memoize=Zr,l.merge=N_,l.mergeWith=ba,l.method=Cm,l.methodOf=Lm,l.mixin=qs,l.negate=Jr,l.nthArg=Tm,l.omit=P_,l.omitBy=F_,l.once=b0,l.orderBy=d0,l.over=$m,l.overArgs=T0,l.overEvery=Nm,l.overSome=Pm,l.partial=Cs,l.partialRight=xa,l.partition=_0,l.pick=q_,l.pickBy=Ta,l.property=Ma,l.propertyOf=Fm,l.pull=dd,l.pullAll=fa,l.pullAllBy=_d,l.pullAllWith=md,l.pullAt=vd,l.range=qm,l.rangeRight=Dm,l.rearg=$0,l.reject=E0,l.remove=Ed,l.rest=N0,l.reverse=Os,l.sampleSize=x0,l.set=M_,l.setWith=U_,l.shuffle=A0,l.slice=wd,l.sortBy=O0,l.sortedUniq=Sd,l.sortedUniqBy=Cd,l.split=am,l.spread=P0,l.tail=Ld,l.take=bd,l.takeRight=Td,l.takeRightWhile=$d,l.takeWhile=Nd,l.tap=Kd,l.throttle=F0,l.thru=Vr,l.toArray=Ia,l.toPairs=$a,l.toPairsIn=Na,l.toPath=Gm,l.toPlainObject=Ca,l.transform=H_,l.unary=q0,l.union=Pd,l.unionBy=Fd,l.unionWith=qd,l.uniq=Dd,l.uniqBy=Md,l.uniqWith=Ud,l.unset=W_,l.unzip=Is,l.unzipWith=ca,l.update=G_,l.updateWith=B_,l.values=dn,l.valuesIn=X_,l.without=Hd,l.words=qa,l.wrap=D0,l.xor=Wd,l.xorBy=Gd,l.xorWith=Bd,l.zip=Xd,l.zipObject=zd,l.zipObjectDeep=Vd,l.zipWith=Yd,l.entries=$a,l.entriesIn=Na,l.extend=La,l.extendWith=kr,qs(l,l),l.add=Xm,l.attempt=Da,l.camelCase=K_,l.capitalize=Pa,l.ceil=zm,l.clamp=z_,l.clone=U0,l.cloneDeep=W0,l.cloneDeepWith=G0,l.cloneWith=H0,l.conformsTo=B0,l.deburr=Fa,l.defaultTo=ym,l.divide=Vm,l.endsWith=Z_,l.eq=Qe,l.escape=J_,l.escapeRegExp=Q_,l.every=i0,l.find=u0,l.findIndex=ua,l.findKey=E_,l.findLast=o0,l.findLastIndex=oa,l.findLastKey=w_,l.floor=Ym,l.forEach=pa,l.forEachRight=ga,l.forIn=x_,l.forInRight=A_,l.forOwn=y_,l.forOwnRight=R_,l.get=Ts,l.gt=X0,l.gte=z0,l.has=S_,l.hasIn=$s,l.head=la,l.identity=Se,l.includes=h0,l.indexOf=od,l.inRange=V_,l.invoke=b_,l.isArguments=Xt,l.isArray=W,l.isArrayBuffer=V0,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=Y0,l.isBuffer=Tt,l.isDate=K0,l.isElement=Z0,l.isEmpty=J0,l.isEqual=Q0,l.isEqualWith=j0,l.isError=Ls,l.isFinite=k0,l.isFunction=_t,l.isInteger=Aa,l.isLength=Qr,l.isMap=ya,l.isMatch=e_,l.isMatchWith=t_,l.isNaN=n_,l.isNative=r_,l.isNil=s_,l.isNull=i_,l.isNumber=Ra,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=Gn,l.isRegExp=bs,l.isSafeInteger=u_,l.isSet=Oa,l.isString=jr,l.isSymbol=$e,l.isTypedArray=gn,l.isUndefined=o_,l.isWeakMap=a_,l.isWeakSet=l_,l.join=hd,l.kebabCase=j_,l.last=Ge,l.lastIndexOf=pd,l.lowerCase=k_,l.lowerFirst=em,l.lt=f_,l.lte=c_,l.max=Km,l.maxBy=Zm,l.mean=Jm,l.meanBy=Qm,l.min=jm,l.minBy=km,l.stubArray=Ms,l.stubFalse=Us,l.stubObject=Mm,l.stubString=Um,l.stubTrue=Hm,l.multiply=ev,l.nth=gd,l.noConflict=bm,l.noop=Ds,l.now=Kr,l.pad=tm,l.padEnd=nm,l.padStart=rm,l.parseInt=im,l.random=Y_,l.reduce=m0,l.reduceRight=v0,l.repeat=sm,l.replace=um,l.result=D_,l.round=tv,l.runInContext=d,l.sample=w0,l.size=y0,l.snakeCase=om,l.some=R0,l.sortedIndex=xd,l.sortedIndexBy=Ad,l.sortedIndexOf=yd,l.sortedLastIndex=Rd,l.sortedLastIndexBy=Od,l.sortedLastIndexOf=Id,l.startCase=lm,l.startsWith=fm,l.subtract=nv,l.sum=rv,l.sumBy=iv,l.template=cm,l.times=Wm,l.toFinite=mt,l.toInteger=G,l.toLength=Sa,l.toLower=hm,l.toNumber=Be,l.toSafeInteger=h_,l.toString=Q,l.toUpper=pm,l.trim=gm,l.trimEnd=dm,l.trimStart=_m,l.truncate=mm,l.unescape=vm,l.uniqueId=Bm,l.upperCase=Em,l.upperFirst=Ns,l.each=pa,l.eachRight=ga,l.first=la,qs(l,function(){var e={};return rt(l,function(t,n){j.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:le(G(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=de(n,u.__takeCount__):u.__views__.push({size:de(n,nt),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==ou||n==dc;Y.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:q(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),De(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),De(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Se)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Jr(q(e)))},Y.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(nt)},rt(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,g=u?[1]:arguments,_=p instanceof Y,y=g[0],R=_||W(p),O=function(V){var K=a.apply(l,yt([V],g));return u&&S?K[0]:K};R&&n&&typeof y=="function"&&y.length!=1&&(_=R=!1);var S=this.__chain__,N=!!this.__actions__.length,D=c&&!S,B=_&&!N;if(!c&&R){p=B?p:new Y(this);var M=e.apply(p,g);return M.__actions__.push({func:Vr,args:[O],thisArg:i}),new Ue(M,S)}return D&&B?e.apply(this,g):(M=this.thru(O),D?u?M.value()[0]:M.value():M)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),rt(Y.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";j.call(ln,u)||(ln[u]=[]),ln[u].push({name:t,func:n})}}),ln[Ur(i,Pt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=vp,Y.prototype.reverse=Ep,Y.prototype.value=wp,l.prototype.at=Zd,l.prototype.chain=Jd,l.prototype.commit=Qd,l.prototype.next=jd,l.prototype.plant=e0,l.prototype.reverse=t0,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=n0,l.prototype.first=l.prototype.head,Ln&&(l.prototype[Ln]=kd),l},Ot=Qh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=Ot,define(function(){return Ot})):qt?((qt.exports=Ot)._=Ot,Fi._=Ot):fe._=Ot}).call(_n)});var Vn=F((ew,Za)=>{var ov="2.0.0",av=Number.MAX_SAFE_INTEGER||9007199254740991,lv=16;Za.exports={SEMVER_SPEC_VERSION:ov,MAX_LENGTH:256,MAX_SAFE_INTEGER:av,MAX_SAFE_COMPONENT_LENGTH:lv}});var Yn=F((tw,Ja)=>{var fv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Ja.exports=fv});var Yt=F(($t,Qa)=>{var{MAX_SAFE_COMPONENT_LENGTH:Bs}=Vn(),cv=Yn();$t=Qa.exports={};var hv=$t.re=[],L=$t.src=[],b=$t.t={},pv=0,X=(i,r,s)=>{let o=pv++;cv(o,r),b[i]=o,L[o]=r,hv[o]=new RegExp(r,s?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","[0-9]+");X("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");X("MAINVERSION",`(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[b.NUMERICIDENTIFIER]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[b.NUMERICIDENTIFIERLOOSE]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[b.PRERELEASEIDENTIFIER]}(?:\\.${L[b.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[b.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[b.BUILDIDENTIFIER]}(?:\\.${L[b.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[b.MAINVERSION]}${L[b.PRERELEASE]}?${L[b.BUILD]}?`);X("FULL",`^${L[b.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[b.MAINVERSIONLOOSE]}${L[b.PRERELEASELOOSE]}?${L[b.BUILD]}?`);X("LOOSE",`^${L[b.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[b.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:${L[b.PRERELEASE]})?${L[b.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:${L[b.PRERELEASELOOSE]})?${L[b.BUILD]}?)?)?`);X("XRANGE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${Bs}})(?:\\.(\\d{1,${Bs}}))?(?:\\.(\\d{1,${Bs}}))?(?:$|[^\\d])`);X("COERCERTL",L[b.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[b.LONETILDE]}\\s+`,!0);$t.tildeTrimReplace="$1~";X("TILDE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[b.LONECARET]}\\s+`,!0);$t.caretTrimReplace="$1^";X("CARET",`^${L[b.LONECARET]}${L[b.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[b.LONECARET]}${L[b.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[b.GTLT]}\\s*(${L[b.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]}|${L[b.XRANGEPLAIN]})`,!0);$t.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[b.XRANGEPLAIN]})\\s+-\\s+(${L[b.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[b.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Kn=F((nw,ja)=>{var gv=["includePrerelease","loose","rtl"],dv=i=>i?typeof i!="object"?{loose:!0}:gv.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};ja.exports=dv});var ti=F((rw,tl)=>{var ka=/^[0-9]+$/,el=(i,r)=>{let s=ka.test(i),o=ka.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},_v=(i,r)=>el(r,i);tl.exports={compareIdentifiers:el,rcompareIdentifiers:_v}});var me=F((iw,sl)=>{var ni=Yn(),{MAX_LENGTH:nl,MAX_SAFE_INTEGER:ri}=Vn(),{re:rl,t:il}=Yt(),mv=Kn(),{compareIdentifiers:Zn}=ti(),Xe=class{constructor(r,s){if(s=mv(s),r instanceof Xe){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>nl)throw new TypeError(`version is longer than ${nl} characters`);ni("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?rl[il.LOOSE]:rl[il.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ri||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let h=+f;if(h>=0&&h<ri)return h}return f}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(ni("SemVer.compare",this.version,this.options,r),!(r instanceof Xe)){if(typeof r=="string"&&r===this.version)return 0;r=new Xe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Xe||(r=new Xe(r,this.options)),Zn(this.major,r.major)||Zn(this.minor,r.minor)||Zn(this.patch,r.patch)}comparePre(r){if(r instanceof Xe||(r=new Xe(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}compareBuild(r){r instanceof Xe||(r=new Xe(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};sl.exports=Xe});var Kt=F((sw,ll)=>{var{MAX_LENGTH:vv}=Vn(),{re:ul,t:ol}=Yt(),al=me(),Ev=Kn(),wv=(i,r)=>{if(r=Ev(r),i instanceof al)return i;if(typeof i!="string"||i.length>vv||!(r.loose?ul[ol.LOOSE]:ul[ol.FULL]).test(i))return null;try{return new al(i,r)}catch{return null}};ll.exports=wv});var cl=F((uw,fl)=>{var xv=Kt(),Av=(i,r)=>{let s=xv(i,r);return s?s.version:null};fl.exports=Av});var pl=F((ow,hl)=>{var yv=Kt(),Rv=(i,r)=>{let s=yv(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};hl.exports=Rv});var dl=F((aw,gl)=>{var Ov=me(),Iv=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new Ov(i,s).inc(r,o).version}catch{return null}};gl.exports=Iv});var ze=F((lw,ml)=>{var _l=me(),Sv=(i,r,s)=>new _l(i,s).compare(new _l(r,s));ml.exports=Sv});var ii=F((fw,vl)=>{var Cv=ze(),Lv=(i,r,s)=>Cv(i,r,s)===0;vl.exports=Lv});var xl=F((cw,wl)=>{var El=Kt(),bv=ii(),Tv=(i,r)=>{if(bv(i,r))return null;{let s=El(i),o=El(r),f=s.prerelease.length||o.prerelease.length,h=f?"pre":"",m=f?"prerelease":"";for(let x in s)if((x==="major"||x==="minor"||x==="patch")&&s[x]!==o[x])return h+x;return m}};wl.exports=Tv});var yl=F((hw,Al)=>{var $v=me(),Nv=(i,r)=>new $v(i,r).major;Al.exports=Nv});var Ol=F((pw,Rl)=>{var Pv=me(),Fv=(i,r)=>new Pv(i,r).minor;Rl.exports=Fv});var Sl=F((gw,Il)=>{var qv=me(),Dv=(i,r)=>new qv(i,r).patch;Il.exports=Dv});var Ll=F((dw,Cl)=>{var Mv=Kt(),Uv=(i,r)=>{let s=Mv(i,r);return s&&s.prerelease.length?s.prerelease:null};Cl.exports=Uv});var Tl=F((_w,bl)=>{var Hv=ze(),Wv=(i,r,s)=>Hv(r,i,s);bl.exports=Wv});var Nl=F((mw,$l)=>{var Gv=ze(),Bv=(i,r)=>Gv(i,r,!0);$l.exports=Bv});var si=F((vw,Fl)=>{var Pl=me(),Xv=(i,r,s)=>{let o=new Pl(i,s),f=new Pl(r,s);return o.compare(f)||o.compareBuild(f)};Fl.exports=Xv});var Dl=F((Ew,ql)=>{var zv=si(),Vv=(i,r)=>i.sort((s,o)=>zv(s,o,r));ql.exports=Vv});var Ul=F((ww,Ml)=>{var Yv=si(),Kv=(i,r)=>i.sort((s,o)=>Yv(o,s,r));Ml.exports=Kv});var Jn=F((xw,Hl)=>{var Zv=ze(),Jv=(i,r,s)=>Zv(i,r,s)>0;Hl.exports=Jv});var ui=F((Aw,Wl)=>{var Qv=ze(),jv=(i,r,s)=>Qv(i,r,s)<0;Wl.exports=jv});var Xs=F((yw,Gl)=>{var kv=ze(),e1=(i,r,s)=>kv(i,r,s)!==0;Gl.exports=e1});var oi=F((Rw,Bl)=>{var t1=ze(),n1=(i,r,s)=>t1(i,r,s)>=0;Bl.exports=n1});var ai=F((Ow,Xl)=>{var r1=ze(),i1=(i,r,s)=>r1(i,r,s)<=0;Xl.exports=i1});var zs=F((Iw,zl)=>{var s1=ii(),u1=Xs(),o1=Jn(),a1=oi(),l1=ui(),f1=ai(),c1=(i,r,s,o)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i===s;case"!==":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i!==s;case"":case"=":case"==":return s1(i,s,o);case"!=":return u1(i,s,o);case">":return o1(i,s,o);case">=":return a1(i,s,o);case"<":return l1(i,s,o);case"<=":return f1(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};zl.exports=c1});var Yl=F((Sw,Vl)=>{var h1=me(),p1=Kt(),{re:li,t:fi}=Yt(),g1=(i,r)=>{if(i instanceof h1)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let s=null;if(!r.rtl)s=i.match(li[fi.COERCE]);else{let o;for(;(o=li[fi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),li[fi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;li[fi.COERCERTL].lastIndex=-1}return s===null?null:p1(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};Vl.exports=g1});var Zl=F((Cw,Kl)=>{"use strict";Kl.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Ql=F((Lw,Jl)=>{"use strict";Jl.exports=Z;Z.Node=Zt;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)_1(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)m1(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};Z.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};Z.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};Z.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};Z.prototype.map=function(i,r){r=r||this;for(var s=new Z,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Z.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Z,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Z.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};Z.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};Z.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};Z.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};Z.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};Z.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var h=[],o=0;f&&o<r;o++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=d1(this,f,s[o]);return h};Z.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function d1(i,r,s){var o=r===i.head?new Zt(s,null,r,i):new Zt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function _1(i,r){i.tail=new Zt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function m1(i,r){i.head=new Zt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Zt(i,r,s,o){if(!(this instanceof Zt))return new Zt(i,r,s,o);this.list=o,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{Zl()(Z)}catch{}});var sf=F((bw,rf)=>{"use strict";var v1=Ql(),Jt=Symbol("max"),wt=Symbol("length"),mn=Symbol("lengthCalculator"),jn=Symbol("allowStale"),Qt=Symbol("maxAge"),Et=Symbol("dispose"),jl=Symbol("noDisposeOnSet"),he=Symbol("lruList"),ke=Symbol("cache"),ef=Symbol("updateAgeOnGet"),Vs=()=>1,tf=class{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");let s=this[Jt]=r.max||1/0,o=r.length||Vs;if(this[mn]=typeof o!="function"?Vs:o,this[jn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Qt]=r.maxAge||0,this[Et]=r.dispose,this[jl]=r.noDisposeOnSet||!1,this[ef]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[Jt]=r||1/0,Qn(this)}get max(){return this[Jt]}set allowStale(r){this[jn]=!!r}get allowStale(){return this[jn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Qt]=r,Qn(this)}get maxAge(){return this[Qt]}set lengthCalculator(r){typeof r!="function"&&(r=Vs),r!==this[mn]&&(this[mn]=r,this[wt]=0,this[he].forEach(s=>{s.length=this[mn](s.value,s.key),this[wt]+=s.length})),Qn(this)}get lengthCalculator(){return this[mn]}get length(){return this[wt]}get itemCount(){return this[he].length}rforEach(r,s){s=s||this;for(let o=this[he].tail;o!==null;){let f=o.prev;kl(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[he].head;o!==null;){let f=o.next;kl(this,r,o,s),o=f}}keys(){return this[he].toArray().map(r=>r.key)}values(){return this[he].toArray().map(r=>r.value)}reset(){this[Et]&&this[he]&&this[he].length&&this[he].forEach(r=>this[Et](r.key,r.value)),this[ke]=new Map,this[he]=new v1,this[wt]=0}dump(){return this[he].map(r=>ci(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[he]}set(r,s,o){if(o=o||this[Qt],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,h=this[mn](s,r);if(this[ke].has(r)){if(h>this[Jt])return vn(this,this[ke].get(r)),!1;let w=this[ke].get(r).value;return this[Et]&&(this[jl]||this[Et](r,w.value)),w.now=f,w.maxAge=o,w.value=s,this[wt]+=h-w.length,w.length=h,this.get(r),Qn(this),!0}let m=new nf(r,s,h,f,o);return m.length>this[Jt]?(this[Et]&&this[Et](r,s),!1):(this[wt]+=m.length,this[he].unshift(m),this[ke].set(r,this[he].head),Qn(this),!0)}has(r){if(!this[ke].has(r))return!1;let s=this[ke].get(r).value;return!ci(this,s)}get(r){return Ys(this,r,!0)}peek(r){return Ys(this,r,!1)}pop(){let r=this[he].tail;return r?(vn(this,r),r.value):null}del(r){vn(this,this[ke].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],h=f.e||0;if(h===0)this.set(f.k,f.v);else{let m=h-s;m>0&&this.set(f.k,f.v,m)}}}prune(){this[ke].forEach((r,s)=>Ys(this,s,!1))}},Ys=(i,r,s)=>{let o=i[ke].get(r);if(o){let f=o.value;if(ci(i,f)){if(vn(i,o),!i[jn])return}else s&&(i[ef]&&(o.value.now=Date.now()),i[he].unshiftNode(o));return f.value}},ci=(i,r)=>{if(!r||!r.maxAge&&!i[Qt])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[Qt]&&s>i[Qt]},Qn=i=>{if(i[wt]>i[Jt])for(let r=i[he].tail;i[wt]>i[Jt]&&r!==null;){let s=r.prev;vn(i,r),r=s}},vn=(i,r)=>{if(r){let s=r.value;i[Et]&&i[Et](s.key,s.value),i[wt]-=s.length,i[ke].delete(s.key),i[he].removeNode(r)}},nf=class{constructor(r,s,o,f,h){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=h||0}},kl=(i,r,s,o)=>{let f=s.value;ci(i,f)&&(vn(i,s),i[jn]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};rf.exports=tf});var Ve=F((Tw,lf)=>{var En=class{constructor(r,s){if(s=w1(s),r instanceof En)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new En(r.raw,s);if(r instanceof Ks)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(f=>!of(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&O1(f[0])){this.set=[f];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,f=uf.get(o);if(f)return f;let h=this.options.loose,m=h?ve[ge.HYPHENRANGELOOSE]:ve[ge.HYPHENRANGE];r=r.replace(m,F1(this.options.includePrerelease)),oe("hyphen replace",r),r=r.replace(ve[ge.COMPARATORTRIM],A1),oe("comparator trim",r,ve[ge.COMPARATORTRIM]),r=r.replace(ve[ge.TILDETRIM],y1),r=r.replace(ve[ge.CARETTRIM],R1),r=r.split(/\s+/).join(" ");let x=h?ve[ge.COMPARATORLOOSE]:ve[ge.COMPARATOR],w=r.split(" ").map(T=>I1(T,this.options)).join(" ").split(/\s+/).map(T=>P1(T,this.options)).filter(this.options.loose?T=>!!T.match(x):()=>!0).map(T=>new Ks(T,this.options)),v=w.length,I=new Map;for(let T of w){if(of(T))return[T];I.set(T.value,T)}I.size>1&&I.has("")&&I.delete("");let $=[...I.values()];return uf.set(o,$),$}intersects(r,s){if(!(r instanceof En))throw new TypeError("a Range is required");return this.set.some(o=>af(o,s)&&r.set.some(f=>af(f,s)&&o.every(h=>f.every(m=>h.intersects(m,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new x1(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(q1(this.set[s],r,this.options))return!0;return!1}};lf.exports=En;var E1=sf(),uf=new E1({max:1e3}),w1=Kn(),Ks=kn(),oe=Yn(),x1=me(),{re:ve,t:ge,comparatorTrimReplace:A1,tildeTrimReplace:y1,caretTrimReplace:R1}=Yt(),of=i=>i.value==="<0.0.0-0",O1=i=>i.value==="",af=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(h=>f.intersects(h,r)),f=o.pop();return s},I1=(i,r)=>(oe("comp",i,r),i=L1(i,r),oe("caret",i),i=S1(i,r),oe("tildes",i),i=T1(i,r),oe("xrange",i),i=N1(i,r),oe("stars",i),i),Ae=i=>!i||i.toLowerCase()==="x"||i==="*",S1=(i,r)=>i.trim().split(/\s+/).map(s=>C1(s,r)).join(" "),C1=(i,r)=>{let s=r.loose?ve[ge.TILDELOOSE]:ve[ge.TILDE];return i.replace(s,(o,f,h,m,x)=>{oe("tilde",i,o,f,h,m,x);let w;return Ae(f)?w="":Ae(h)?w=`>=${f}.0.0 <${+f+1}.0.0-0`:Ae(m)?w=`>=${f}.${h}.0 <${f}.${+h+1}.0-0`:x?(oe("replaceTilde pr",x),w=`>=${f}.${h}.${m}-${x} <${f}.${+h+1}.0-0`):w=`>=${f}.${h}.${m} <${f}.${+h+1}.0-0`,oe("tilde return",w),w})},L1=(i,r)=>i.trim().split(/\s+/).map(s=>b1(s,r)).join(" "),b1=(i,r)=>{oe("caret",i,r);let s=r.loose?ve[ge.CARETLOOSE]:ve[ge.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,h,m,x,w)=>{oe("caret",i,f,h,m,x,w);let v;return Ae(h)?v="":Ae(m)?v=`>=${h}.0.0${o} <${+h+1}.0.0-0`:Ae(x)?h==="0"?v=`>=${h}.${m}.0${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.0${o} <${+h+1}.0.0-0`:w?(oe("replaceCaret pr",w),h==="0"?m==="0"?v=`>=${h}.${m}.${x}-${w} <${h}.${m}.${+x+1}-0`:v=`>=${h}.${m}.${x}-${w} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${x}-${w} <${+h+1}.0.0-0`):(oe("no pr"),h==="0"?m==="0"?v=`>=${h}.${m}.${x}${o} <${h}.${m}.${+x+1}-0`:v=`>=${h}.${m}.${x}${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${x} <${+h+1}.0.0-0`),oe("caret return",v),v})},T1=(i,r)=>(oe("replaceXRanges",i,r),i.split(/\s+/).map(s=>$1(s,r)).join(" ")),$1=(i,r)=>{i=i.trim();let s=r.loose?ve[ge.XRANGELOOSE]:ve[ge.XRANGE];return i.replace(s,(o,f,h,m,x,w)=>{oe("xRange",i,o,f,h,m,x,w);let v=Ae(h),I=v||Ae(m),$=I||Ae(x),T=$;return f==="="&&T&&(f=""),w=r.includePrerelease?"-0":"",v?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(I&&(m=0),x=0,f===">"?(f=">=",I?(h=+h+1,m=0,x=0):(m=+m+1,x=0)):f==="<="&&(f="<",I?h=+h+1:m=+m+1),f==="<"&&(w="-0"),o=`${f+h}.${m}.${x}${w}`):I?o=`>=${h}.0.0${w} <${+h+1}.0.0-0`:$&&(o=`>=${h}.${m}.0${w} <${h}.${+m+1}.0-0`),oe("xRange return",o),o})},N1=(i,r)=>(oe("replaceStars",i,r),i.trim().replace(ve[ge.STAR],"")),P1=(i,r)=>(oe("replaceGTE0",i,r),i.trim().replace(ve[r.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),F1=i=>(r,s,o,f,h,m,x,w,v,I,$,T,P)=>(Ae(o)?s="":Ae(f)?s=`>=${o}.0.0${i?"-0":""}`:Ae(h)?s=`>=${o}.${f}.0${i?"-0":""}`:m?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Ae(v)?w="":Ae(I)?w=`<${+v+1}.0.0-0`:Ae($)?w=`<${v}.${+I+1}.0-0`:T?w=`<=${v}.${I}.${$}-${T}`:i?w=`<${v}.${I}.${+$+1}-0`:w=`<=${w}`,`${s} ${w}`.trim()),q1=(i,r,s)=>{for(let o=0;o<i.length;o++)if(!i[o].test(r))return!1;if(r.prerelease.length&&!s.includePrerelease){for(let o=0;o<i.length;o++)if(oe(i[o].semver),i[o].semver!==Ks.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var kn=F(($w,gf)=>{var er=Symbol("SemVer ANY"),tr=class{static get ANY(){return er}constructor(r,s){if(s=D1(s),r instanceof tr){if(r.loose===!!s.loose)return r;r=r.value}Js("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===er?this.value="":this.value=this.operator+this.semver.version,Js("comp",this)}parse(r){let s=this.options.loose?ff[cf.COMPARATORLOOSE]:ff[cf.COMPARATOR],o=r.match(s);if(!o)throw new TypeError(`Invalid comparator: ${r}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new hf(o[2],this.options.loose):this.semver=er}toString(){return this.value}test(r){if(Js("Comparator.test",r,this.options.loose),this.semver===er||r===er)return!0;if(typeof r=="string")try{r=new hf(r,this.options)}catch{return!1}return Zs(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof tr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new pf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new pf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),h=this.semver.version===r.semver.version,m=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),x=Zs(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),w=Zs(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||h&&m||x||w}};gf.exports=tr;var D1=Kn(),{re:ff,t:cf}=Yt(),Zs=zs(),Js=Yn(),hf=me(),pf=Ve()});var nr=F((Nw,df)=>{var M1=Ve(),U1=(i,r,s)=>{try{r=new M1(r,s)}catch{return!1}return r.test(i)};df.exports=U1});var mf=F((Pw,_f)=>{var H1=Ve(),W1=(i,r)=>new H1(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));_f.exports=W1});var Ef=F((Fw,vf)=>{var G1=me(),B1=Ve(),X1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new B1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===-1)&&(o=m,f=new G1(o,s))}),o};vf.exports=X1});var xf=F((qw,wf)=>{var z1=me(),V1=Ve(),Y1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new V1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===1)&&(o=m,f=new z1(o,s))}),o};wf.exports=Y1});var Rf=F((Dw,yf)=>{var Qs=me(),K1=Ve(),Af=Jn(),Z1=(i,r)=>{i=new K1(i,r);let s=new Qs("0.0.0");if(i.test(s)||(s=new Qs("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],h=null;f.forEach(m=>{let x=new Qs(m.semver.version);switch(m.operator){case">":x.prerelease.length===0?x.patch++:x.prerelease.push(0),x.raw=x.format();case"":case">=":(!h||Af(x,h))&&(h=x);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${m.operator}`)}}),h&&(!s||Af(s,h))&&(s=h)}return s&&i.test(s)?s:null};yf.exports=Z1});var If=F((Mw,Of)=>{var J1=Ve(),Q1=(i,r)=>{try{return new J1(i,r).range||"*"}catch{return null}};Of.exports=Q1});var hi=F((Uw,bf)=>{var j1=me(),Lf=kn(),{ANY:k1}=Lf,eE=Ve(),tE=nr(),Sf=Jn(),Cf=ui(),nE=ai(),rE=oi(),iE=(i,r,s,o)=>{i=new j1(i,o),r=new eE(r,o);let f,h,m,x,w;switch(s){case">":f=Sf,h=nE,m=Cf,x=">",w=">=";break;case"<":f=Cf,h=rE,m=Sf,x="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(tE(i,r,o))return!1;for(let v=0;v<r.set.length;++v){let I=r.set[v],$=null,T=null;if(I.forEach(P=>{P.semver===k1&&(P=new Lf(">=0.0.0")),$=$||P,T=T||P,f(P.semver,$.semver,o)?$=P:m(P.semver,T.semver,o)&&(T=P)}),$.operator===x||$.operator===w||(!T.operator||T.operator===x)&&h(i,T.semver))return!1;if(T.operator===w&&m(i,T.semver))return!1}return!0};bf.exports=iE});var $f=F((Hw,Tf)=>{var sE=hi(),uE=(i,r,s)=>sE(i,r,">",s);Tf.exports=uE});var Pf=F((Ww,Nf)=>{var oE=hi(),aE=(i,r,s)=>oE(i,r,"<",s);Nf.exports=aE});var Df=F((Gw,qf)=>{var Ff=Ve(),lE=(i,r,s)=>(i=new Ff(i,s),r=new Ff(r,s),i.intersects(r));qf.exports=lE});var Uf=F((Bw,Mf)=>{var fE=nr(),cE=ze();Mf.exports=(i,r,s)=>{let o=[],f=null,h=null,m=i.sort((I,$)=>cE(I,$,s));for(let I of m)fE(I,r,s)?(h=I,f||(f=I)):(h&&o.push([f,h]),h=null,f=null);f&&o.push([f,null]);let x=[];for(let[I,$]of o)I===$?x.push(I):!$&&I===m[0]?x.push("*"):$?I===m[0]?x.push(`<=${$}`):x.push(`${I} - ${$}`):x.push(`>=${I}`);let w=x.join(" || "),v=typeof r.raw=="string"?r.raw:String(r);return w.length<v.length?w:r}});var Xf=F((Xw,Bf)=>{var Hf=Ve(),pi=kn(),{ANY:js}=pi,rr=nr(),ks=ze(),hE=(i,r,s={})=>{if(i===r)return!0;i=new Hf(i,s),r=new Hf(r,s);let o=!1;e:for(let f of i.set){for(let h of r.set){let m=pE(f,h,s);if(o=o||m!==null,m)continue e}if(o)return!1}return!0},pE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===js){if(r.length===1&&r[0].semver===js)return!0;s.includePrerelease?i=[new pi(">=0.0.0-0")]:i=[new pi(">=0.0.0")]}if(r.length===1&&r[0].semver===js){if(s.includePrerelease)return!0;r=[new pi(">=0.0.0")]}let o=new Set,f,h;for(let P of i)P.operator===">"||P.operator===">="?f=Wf(f,P,s):P.operator==="<"||P.operator==="<="?h=Gf(h,P,s):o.add(P.semver);if(o.size>1)return null;let m;if(f&&h){if(m=ks(f.semver,h.semver,s),m>0)return null;if(m===0&&(f.operator!==">="||h.operator!=="<="))return null}for(let P of o){if(f&&!rr(P,String(f),s)||h&&!rr(P,String(h),s))return null;for(let ye of r)if(!rr(P,String(ye),s))return!1;return!0}let x,w,v,I,$=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;$&&$.prerelease.length===1&&h.operator==="<"&&$.prerelease[0]===0&&($=!1);for(let P of r){if(I=I||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(x=Wf(f,P,s),x===P&&x!==f)return!1}else if(f.operator===">="&&!rr(f.semver,String(P),s))return!1}if(h){if($&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===$.major&&P.semver.minor===$.minor&&P.semver.patch===$.patch&&($=!1),P.operator==="<"||P.operator==="<="){if(w=Gf(h,P,s),w===P&&w!==h)return!1}else if(h.operator==="<="&&!rr(h.semver,String(P),s))return!1}if(!P.operator&&(h||f)&&m!==0)return!1}return!(f&&v&&!h&&m!==0||h&&I&&!f&&m!==0||T||$)},Wf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},Gf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};Bf.exports=hE});var Vf=F((zw,zf)=>{var eu=Yt();zf.exports={re:eu.re,src:eu.src,tokens:eu.t,SEMVER_SPEC_VERSION:Vn().SEMVER_SPEC_VERSION,SemVer:me(),compareIdentifiers:ti().compareIdentifiers,rcompareIdentifiers:ti().rcompareIdentifiers,parse:Kt(),valid:cl(),clean:pl(),inc:dl(),diff:xl(),major:yl(),minor:Ol(),patch:Sl(),prerelease:Ll(),compare:ze(),rcompare:Tl(),compareLoose:Nl(),compareBuild:si(),sort:Dl(),rsort:Ul(),gt:Jn(),lt:ui(),eq:ii(),neq:Xs(),gte:oi(),lte:ai(),cmp:zs(),coerce:Yl(),Comparator:kn(),Range:Ve(),satisfies:nr(),toComparators:mf(),maxSatisfying:Ef(),minSatisfying:xf(),minVersion:Rf(),validRange:If(),outside:hi(),gtr:$f(),ltr:Pf(),intersects:Df(),simplifyRange:Uf(),subset:Xf()}});var gi=F(Fe=>{"use strict";var gE=Fe&&Fe.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),dE=Fe&&Fe.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),_E=Fe&&Fe.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&gE(r,i,s);return dE(r,i),r},Yf=Fe&&Fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCoreVersion=void 0;var Kf=Yf(require("path")),Zf=Yf(require("fs")),tu=_E(require("@serverless-devs/core")),mE=Vf(),Jf=Kf.default.join(tu.getRootHome(),"cache","core"),nu=Kf.default.join(Jf,"package.json");function vE(){if(Zf.default.existsSync(nu)){var i=require("@serverless-devs/core/package.json").version,r=Qf();return mE.gt(r,i)?require(Jf):tu}return tu}function Qf(){return Zf.default.existsSync(nu)?require(nu).version:void 0}Fe.getCoreVersion=Qf;Fe.default=vE()});var nc=F(Ce=>{"use strict";var EE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function x(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(x,w)}v((o=o.apply(i,r||[])).next())})},wE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},jf=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var kf=jf(require("path")),iu=jf(gi()),ut=iu.default.fse,di=iu.default.jsyaml,ru=iu.default.getRootHome;function xE(i){var r=tc();ut.writeFileSync(r,di.dump(i))}function ec(){var i=tc();if(!ut.existsSync(i))return{};try{var r=di.load(ut.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function tc(){var i=kf.default.join(ru(),"set-config.yml");return ut.existsSync(i)||ut.createFileSync(i),i}function AE(i,r){var s=ec();s[i]=r,xE(s)}Ce.setConfig=AE;function yE(i,r){var s=ec();return s[i]||r}Ce.getConfig=yE;function RE(i){return EE(this,void 0,void 0,function(){var r,s,o,f,h,m,x;return wE(this,function(w){switch(w.label){case 0:if(r=i.filePath||"set-config.yml",s=kf.default.join(ru(),r),o=ut.existsSync(s),f={},o)return[3,5];h=ru(),w.label=1;case 1:return w.trys.push([1,2,,4]),ut.statSync(h),[3,4];case 2:return m=w.sent(),[4,ut.mkdirSync(h)];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:try{f=di.load(ut.readFileSync(s,"utf8"))||{}}catch(v){throw v}w.label=6;case 6:return i.read?[2,f]:(x=i.configKey||"",f[x]=i.data,[4,ut.writeFileSync(s,di.dump(f))]);case 7:return w.sent(),[2,f]}})})}Ce.handlerProfileFile=RE});var rc=F((Kw,OE)=>{OE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.7",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var ac=F(U=>{"use strict";var IE=U&&U.__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]}),SE=U&&U.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),CE=U&&U.__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)&&IE(r,i,s);return SE(r,i),r},sr=U&&U.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function x(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(x,w)}v((o=o.apply(i,r||[])).next())})},ur=U&&U.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},su=U&&U.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(U,"__esModule",{value:!0});U.emoji=U.mark=U.replaceTemplate=U.replaceFun=U.getLang=U.printn=U.getFolderSize=U.getVersion=U.getPid=U.aiRequest=U.getCredentialWithAll=U.getCredentialWithExisted=U.getProcessArgv=U.bgRed=U.yellow=U.red=void 0;var LE=su(require("path")),ir=su(require("fs")),Nt=Ka(),bE=su(require("os")),ot=CE(gi()),TE=nc(),ic=rc(),_i=ot.default.colors,$E=ot.default.got,NE=ot.default.getMAC,PE=ot.default.isDocker,FE=ot.default.isCiCdEnv,qE=ot.default.getGlobalArgs,sc=ot.default.getCredential,uc=ot.default.getCredentialAliasList;U.red=_i.hex("#fd5750");U.yellow=_i.hex("#F3F99D");U.bgRed=_i.hex("#000").bgHex("#fd5750");var DE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=qE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Nt.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Nt.filter)(s._argsObj,function(o){return!(0,Nt.includes)(["-h","--help"],o)}))})}catch{return{}}};U.getProcessArgv=DE;var ME=function(i){return sr(void 0,void 0,void 0,function(){var r,s;return ur(this,function(o){switch(o.label){case 0:return[4,uc()];case 1:return r=o.sent(),(0,Nt.includes)(r,i)?[4,sc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Nt.omit)(s,"Alias")];case 3:return[2]}})})};U.getCredentialWithExisted=ME;var UE=function(){return sr(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return ur(this,function(m){switch(m.label){case 0:return[4,uc()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,sc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Nt.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};U.getCredentialWithAll=UE;var HE=function(i,r){return r===void 0&&(r="unknow"),sr(void 0,void 0,void 0,function(){var s,o,f,h;return ur(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),s=(0,TE.getConfig)("analysis"),s!=="enable"?[2]:PE()||FE()?[2]:[4,$E("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=m.sent(),f=(0,Nt.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=Da(function(){return J(c,N+"return "+O).apply(i,p)});if(B.source=O,Ls(B))throw B;return B}function hm(e){return Q(e).toLowerCase()}function pm(e){return Q(e).toUpperCase()}function gm(e,t,n){if(e=Q(e),e&&(n||t===i))return zu(e);if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Ze(t),c=Vu(u,a),p=Yu(u,a)+1;return bt(u,c,p).join("")}function dm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Zu(e)+1);if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Yu(u,Ze(t))+1;return bt(u,0,a).join("")}function _m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Li,"");if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Vu(u,Ze(t));return bt(u,a).join("")}function mm(e,t){var n=fc,u=cc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?G(t.length):n,u="omission"in t?Te(t.omission):u}e=Q(e);var c=e.length;if(sn(e)){var p=Ze(e);c=p.length}if(n>=c)return e;var g=n-un(u);if(g<1)return u;var _=p?bt(p,0,g).join(""):e.slice(0,g);if(a===i)return _+u;if(p&&(g+=_.length-g),bs(a)){if(e.slice(g).search(a)){var y,R=_;for(a.global||(a=Vi(a.source,Q(pu.exec(a))+"g")),a.lastIndex=0;y=a.exec(R);)var O=y.index;_=_.slice(0,O===i?g:O)}}else if(e.indexOf(Te(a),g)!=g){var S=_.lastIndexOf(a);S>-1&&(_=_.slice(0,S))}return _+u}function vm(e){return e=Q(e),e&&Lc.test(e)?e.replace(fu,Yh):e}var Em=hn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ns=Mo("toUpperCase");function qa(e,t,n){return e=Q(e),t=n?i:t,t===i?Gh(e)?Jh(e):Nh(e):e.match(t)||[]}var Da=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ls(n)?n:new H(n)}}),wm=gt(function(e,t){return De(t,function(n){n=st(n),ht(e,n,Ss(e[n],e))}),e});function xm(e){var t=e==null?0:e.length,n=q();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new Me(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function Am(e){return Yp(He(e,v))}function Ps(e){return function(){return e}}function ym(e,t){return e==null||e!==e?t:e}var Rm=Ho(),Om=Ho(!0);function Se(e){return e}function Fs(e){return _o(typeof e=="function"?e:He(e,v))}function Im(e){return vo(He(e,v))}function Sm(e,t){return Eo(e,He(t,v))}var Cm=z(function(e,t){return function(n){return qn(n,e,t)}}),Lm=z(function(e,t){return function(n){return qn(e,n,t)}});function qs(e,t,n){var u=ce(t),a=Pr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=Pr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=_t(e);return De(a,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var y=this.__chain__;if(c||y){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=y,R}return _.apply(e,yt([this.value()],arguments))})}),e}function bm(){return fe._===this&&(fe._=np),this}function Ds(){}function Tm(e){return e=G(e),z(function(t){return wo(t,e)})}var $m=gs(ne),Nm=gs(Hu),Pm=gs(Ui);function Ma(e){return xs(e)?Hi(st(e)):fg(e)}function Fm(e){return function(t){return e==null?i:Wt(e,t)}}var qm=Go(),Dm=Go(!0);function Ms(){return[]}function Us(){return!1}function Mm(){return{}}function Um(){return""}function Hm(){return!0}function Wm(e,t){if(e=G(e),e<1||e>xt)return[];var n=nt,u=de(e,nt);t=q(t),e-=nt;for(var a=Bi(u,t);++n<e;)t(n);return a}function Gm(e){return W(e)?ne(e,st):$e(e)?[e]:Re(ia(Q(e)))}function Bm(e){var t=++ep;return Q(e)+t}var Xm=Hr(function(e,t){return e+t},0),zm=ds("ceil"),Vm=Hr(function(e,t){return e/t},1),Ym=ds("floor");function Km(e){return e&&e.length?Nr(e,Se,es):i}function Zm(e,t){return e&&e.length?Nr(e,q(t,2),es):i}function Jm(e){return Bu(e,Se)}function Qm(e,t){return Bu(e,q(t,2))}function jm(e){return e&&e.length?Nr(e,Se,is):i}function km(e,t){return e&&e.length?Nr(e,q(t,2),is):i}var ev=Hr(function(e,t){return e*t},1),tv=ds("round"),nv=Hr(function(e,t){return e-t},0);function rv(e){return e&&e.length?Gi(e,Se):0}function iv(e,t){return e&&e.length?Gi(e,q(t,2)):0}return l.after=I0,l.ary=da,l.assign=p_,l.assignIn=La,l.assignInWith=kr,l.assignWith=g_,l.at=d_,l.before=_a,l.bind=Ss,l.bindAll=wm,l.bindKey=ma,l.castArray=M0,l.chain=ha,l.chunk=Yg,l.compact=Kg,l.concat=Zg,l.cond=xm,l.conforms=Am,l.constant=Ps,l.countBy=r0,l.create=__,l.curry=va,l.curryRight=Ea,l.debounce=wa,l.defaults=m_,l.defaultsDeep=v_,l.defer=S0,l.delay=C0,l.difference=Jg,l.differenceBy=Qg,l.differenceWith=jg,l.drop=kg,l.dropRight=ed,l.dropRightWhile=td,l.dropWhile=nd,l.fill=rd,l.filter=s0,l.flatMap=a0,l.flatMapDeep=l0,l.flatMapDepth=f0,l.flatten=aa,l.flattenDeep=id,l.flattenDepth=sd,l.flip=L0,l.flow=Rm,l.flowRight=Om,l.fromPairs=ud,l.functions=O_,l.functionsIn=I_,l.groupBy=c0,l.initial=ad,l.intersection=ld,l.intersectionBy=fd,l.intersectionWith=cd,l.invert=C_,l.invertBy=L_,l.invokeMap=p0,l.iteratee=Fs,l.keyBy=g0,l.keys=ce,l.keysIn=Ie,l.map=Yr,l.mapKeys=T_,l.mapValues=$_,l.matches=Im,l.matchesProperty=Sm,l.memoize=Zr,l.merge=N_,l.mergeWith=ba,l.method=Cm,l.methodOf=Lm,l.mixin=qs,l.negate=Jr,l.nthArg=Tm,l.omit=P_,l.omitBy=F_,l.once=b0,l.orderBy=d0,l.over=$m,l.overArgs=T0,l.overEvery=Nm,l.overSome=Pm,l.partial=Cs,l.partialRight=xa,l.partition=_0,l.pick=q_,l.pickBy=Ta,l.property=Ma,l.propertyOf=Fm,l.pull=dd,l.pullAll=fa,l.pullAllBy=_d,l.pullAllWith=md,l.pullAt=vd,l.range=qm,l.rangeRight=Dm,l.rearg=$0,l.reject=E0,l.remove=Ed,l.rest=N0,l.reverse=Os,l.sampleSize=x0,l.set=M_,l.setWith=U_,l.shuffle=A0,l.slice=wd,l.sortBy=O0,l.sortedUniq=Sd,l.sortedUniqBy=Cd,l.split=am,l.spread=P0,l.tail=Ld,l.take=bd,l.takeRight=Td,l.takeRightWhile=$d,l.takeWhile=Nd,l.tap=Kd,l.throttle=F0,l.thru=Vr,l.toArray=Ia,l.toPairs=$a,l.toPairsIn=Na,l.toPath=Gm,l.toPlainObject=Ca,l.transform=H_,l.unary=q0,l.union=Pd,l.unionBy=Fd,l.unionWith=qd,l.uniq=Dd,l.uniqBy=Md,l.uniqWith=Ud,l.unset=W_,l.unzip=Is,l.unzipWith=ca,l.update=G_,l.updateWith=B_,l.values=dn,l.valuesIn=X_,l.without=Hd,l.words=qa,l.wrap=D0,l.xor=Wd,l.xorBy=Gd,l.xorWith=Bd,l.zip=Xd,l.zipObject=zd,l.zipObjectDeep=Vd,l.zipWith=Yd,l.entries=$a,l.entriesIn=Na,l.extend=La,l.extendWith=kr,qs(l,l),l.add=Xm,l.attempt=Da,l.camelCase=K_,l.capitalize=Pa,l.ceil=zm,l.clamp=z_,l.clone=U0,l.cloneDeep=W0,l.cloneDeepWith=G0,l.cloneWith=H0,l.conformsTo=B0,l.deburr=Fa,l.defaultTo=ym,l.divide=Vm,l.endsWith=Z_,l.eq=Qe,l.escape=J_,l.escapeRegExp=Q_,l.every=i0,l.find=u0,l.findIndex=ua,l.findKey=E_,l.findLast=o0,l.findLastIndex=oa,l.findLastKey=w_,l.floor=Ym,l.forEach=pa,l.forEachRight=ga,l.forIn=x_,l.forInRight=A_,l.forOwn=y_,l.forOwnRight=R_,l.get=Ts,l.gt=X0,l.gte=z0,l.has=S_,l.hasIn=$s,l.head=la,l.identity=Se,l.includes=h0,l.indexOf=od,l.inRange=V_,l.invoke=b_,l.isArguments=Xt,l.isArray=W,l.isArrayBuffer=V0,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=Y0,l.isBuffer=Tt,l.isDate=K0,l.isElement=Z0,l.isEmpty=J0,l.isEqual=Q0,l.isEqualWith=j0,l.isError=Ls,l.isFinite=k0,l.isFunction=_t,l.isInteger=Aa,l.isLength=Qr,l.isMap=ya,l.isMatch=e_,l.isMatchWith=t_,l.isNaN=n_,l.isNative=r_,l.isNil=s_,l.isNull=i_,l.isNumber=Ra,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=Gn,l.isRegExp=bs,l.isSafeInteger=u_,l.isSet=Oa,l.isString=jr,l.isSymbol=$e,l.isTypedArray=gn,l.isUndefined=o_,l.isWeakMap=a_,l.isWeakSet=l_,l.join=hd,l.kebabCase=j_,l.last=Ge,l.lastIndexOf=pd,l.lowerCase=k_,l.lowerFirst=em,l.lt=f_,l.lte=c_,l.max=Km,l.maxBy=Zm,l.mean=Jm,l.meanBy=Qm,l.min=jm,l.minBy=km,l.stubArray=Ms,l.stubFalse=Us,l.stubObject=Mm,l.stubString=Um,l.stubTrue=Hm,l.multiply=ev,l.nth=gd,l.noConflict=bm,l.noop=Ds,l.now=Kr,l.pad=tm,l.padEnd=nm,l.padStart=rm,l.parseInt=im,l.random=Y_,l.reduce=m0,l.reduceRight=v0,l.repeat=sm,l.replace=um,l.result=D_,l.round=tv,l.runInContext=d,l.sample=w0,l.size=y0,l.snakeCase=om,l.some=R0,l.sortedIndex=xd,l.sortedIndexBy=Ad,l.sortedIndexOf=yd,l.sortedLastIndex=Rd,l.sortedLastIndexBy=Od,l.sortedLastIndexOf=Id,l.startCase=lm,l.startsWith=fm,l.subtract=nv,l.sum=rv,l.sumBy=iv,l.template=cm,l.times=Wm,l.toFinite=mt,l.toInteger=G,l.toLength=Sa,l.toLower=hm,l.toNumber=Be,l.toSafeInteger=h_,l.toString=Q,l.toUpper=pm,l.trim=gm,l.trimEnd=dm,l.trimStart=_m,l.truncate=mm,l.unescape=vm,l.uniqueId=Bm,l.upperCase=Em,l.upperFirst=Ns,l.each=pa,l.eachRight=ga,l.first=la,qs(l,function(){var e={};return rt(l,function(t,n){j.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:le(G(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=de(n,u.__takeCount__):u.__views__.push({size:de(n,nt),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==ou||n==dc;Y.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:q(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),De(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),De(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Se)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Jr(q(e)))},Y.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(nt)},rt(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,g=u?[1]:arguments,_=p instanceof Y,y=g[0],R=_||W(p),O=function(V){var K=a.apply(l,yt([V],g));return u&&S?K[0]:K};R&&n&&typeof y=="function"&&y.length!=1&&(_=R=!1);var S=this.__chain__,N=!!this.__actions__.length,D=c&&!S,B=_&&!N;if(!c&&R){p=B?p:new Y(this);var M=e.apply(p,g);return M.__actions__.push({func:Vr,args:[O],thisArg:i}),new Ue(M,S)}return D&&B?e.apply(this,g):(M=this.thru(O),D?u?M.value()[0]:M.value():M)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),rt(Y.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";j.call(ln,u)||(ln[u]=[]),ln[u].push({name:t,func:n})}}),ln[Ur(i,Pt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=vp,Y.prototype.reverse=Ep,Y.prototype.value=wp,l.prototype.at=Zd,l.prototype.chain=Jd,l.prototype.commit=Qd,l.prototype.next=jd,l.prototype.plant=e0,l.prototype.reverse=t0,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=n0,l.prototype.first=l.prototype.head,Ln&&(l.prototype[Ln]=kd),l},Ot=Qh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=Ot,define(function(){return Ot})):qt?((qt.exports=Ot)._=Ot,Fi._=Ot):fe._=Ot}).call(_n)});var Vn=F((ew,Za)=>{var ov="2.0.0",av=Number.MAX_SAFE_INTEGER||9007199254740991,lv=16;Za.exports={SEMVER_SPEC_VERSION:ov,MAX_LENGTH:256,MAX_SAFE_INTEGER:av,MAX_SAFE_COMPONENT_LENGTH:lv}});var Yn=F((tw,Ja)=>{var fv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Ja.exports=fv});var Yt=F(($t,Qa)=>{var{MAX_SAFE_COMPONENT_LENGTH:Bs}=Vn(),cv=Yn();$t=Qa.exports={};var hv=$t.re=[],L=$t.src=[],b=$t.t={},pv=0,X=(i,r,s)=>{let o=pv++;cv(o,r),b[i]=o,L[o]=r,hv[o]=new RegExp(r,s?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","[0-9]+");X("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");X("MAINVERSION",`(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[b.NUMERICIDENTIFIER]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[b.NUMERICIDENTIFIERLOOSE]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[b.PRERELEASEIDENTIFIER]}(?:\\.${L[b.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[b.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[b.BUILDIDENTIFIER]}(?:\\.${L[b.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[b.MAINVERSION]}${L[b.PRERELEASE]}?${L[b.BUILD]}?`);X("FULL",`^${L[b.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[b.MAINVERSIONLOOSE]}${L[b.PRERELEASELOOSE]}?${L[b.BUILD]}?`);X("LOOSE",`^${L[b.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[b.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:${L[b.PRERELEASE]})?${L[b.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:${L[b.PRERELEASELOOSE]})?${L[b.BUILD]}?)?)?`);X("XRANGE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${Bs}})(?:\\.(\\d{1,${Bs}}))?(?:\\.(\\d{1,${Bs}}))?(?:$|[^\\d])`);X("COERCERTL",L[b.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[b.LONETILDE]}\\s+`,!0);$t.tildeTrimReplace="$1~";X("TILDE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[b.LONECARET]}\\s+`,!0);$t.caretTrimReplace="$1^";X("CARET",`^${L[b.LONECARET]}${L[b.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[b.LONECARET]}${L[b.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[b.GTLT]}\\s*(${L[b.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]}|${L[b.XRANGEPLAIN]})`,!0);$t.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[b.XRANGEPLAIN]})\\s+-\\s+(${L[b.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[b.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Kn=F((nw,ja)=>{var gv=["includePrerelease","loose","rtl"],dv=i=>i?typeof i!="object"?{loose:!0}:gv.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};ja.exports=dv});var ti=F((rw,tl)=>{var ka=/^[0-9]+$/,el=(i,r)=>{let s=ka.test(i),o=ka.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},_v=(i,r)=>el(r,i);tl.exports={compareIdentifiers:el,rcompareIdentifiers:_v}});var me=F((iw,sl)=>{var ni=Yn(),{MAX_LENGTH:nl,MAX_SAFE_INTEGER:ri}=Vn(),{re:rl,t:il}=Yt(),mv=Kn(),{compareIdentifiers:Zn}=ti(),Xe=class{constructor(r,s){if(s=mv(s),r instanceof Xe){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>nl)throw new TypeError(`version is longer than ${nl} characters`);ni("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?rl[il.LOOSE]:rl[il.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ri||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let h=+f;if(h>=0&&h<ri)return h}return f}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(ni("SemVer.compare",this.version,this.options,r),!(r instanceof Xe)){if(typeof r=="string"&&r===this.version)return 0;r=new Xe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Xe||(r=new Xe(r,this.options)),Zn(this.major,r.major)||Zn(this.minor,r.minor)||Zn(this.patch,r.patch)}comparePre(r){if(r instanceof Xe||(r=new Xe(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}compareBuild(r){r instanceof Xe||(r=new Xe(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};sl.exports=Xe});var Kt=F((sw,ll)=>{var{MAX_LENGTH:vv}=Vn(),{re:ul,t:ol}=Yt(),al=me(),Ev=Kn(),wv=(i,r)=>{if(r=Ev(r),i instanceof al)return i;if(typeof i!="string"||i.length>vv||!(r.loose?ul[ol.LOOSE]:ul[ol.FULL]).test(i))return null;try{return new al(i,r)}catch{return null}};ll.exports=wv});var cl=F((uw,fl)=>{var xv=Kt(),Av=(i,r)=>{let s=xv(i,r);return s?s.version:null};fl.exports=Av});var pl=F((ow,hl)=>{var yv=Kt(),Rv=(i,r)=>{let s=yv(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};hl.exports=Rv});var dl=F((aw,gl)=>{var Ov=me(),Iv=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new Ov(i,s).inc(r,o).version}catch{return null}};gl.exports=Iv});var ze=F((lw,ml)=>{var _l=me(),Sv=(i,r,s)=>new _l(i,s).compare(new _l(r,s));ml.exports=Sv});var ii=F((fw,vl)=>{var Cv=ze(),Lv=(i,r,s)=>Cv(i,r,s)===0;vl.exports=Lv});var xl=F((cw,wl)=>{var El=Kt(),bv=ii(),Tv=(i,r)=>{if(bv(i,r))return null;{let s=El(i),o=El(r),f=s.prerelease.length||o.prerelease.length,h=f?"pre":"",m=f?"prerelease":"";for(let x in s)if((x==="major"||x==="minor"||x==="patch")&&s[x]!==o[x])return h+x;return m}};wl.exports=Tv});var yl=F((hw,Al)=>{var $v=me(),Nv=(i,r)=>new $v(i,r).major;Al.exports=Nv});var Ol=F((pw,Rl)=>{var Pv=me(),Fv=(i,r)=>new Pv(i,r).minor;Rl.exports=Fv});var Sl=F((gw,Il)=>{var qv=me(),Dv=(i,r)=>new qv(i,r).patch;Il.exports=Dv});var Ll=F((dw,Cl)=>{var Mv=Kt(),Uv=(i,r)=>{let s=Mv(i,r);return s&&s.prerelease.length?s.prerelease:null};Cl.exports=Uv});var Tl=F((_w,bl)=>{var Hv=ze(),Wv=(i,r,s)=>Hv(r,i,s);bl.exports=Wv});var Nl=F((mw,$l)=>{var Gv=ze(),Bv=(i,r)=>Gv(i,r,!0);$l.exports=Bv});var si=F((vw,Fl)=>{var Pl=me(),Xv=(i,r,s)=>{let o=new Pl(i,s),f=new Pl(r,s);return o.compare(f)||o.compareBuild(f)};Fl.exports=Xv});var Dl=F((Ew,ql)=>{var zv=si(),Vv=(i,r)=>i.sort((s,o)=>zv(s,o,r));ql.exports=Vv});var Ul=F((ww,Ml)=>{var Yv=si(),Kv=(i,r)=>i.sort((s,o)=>Yv(o,s,r));Ml.exports=Kv});var Jn=F((xw,Hl)=>{var Zv=ze(),Jv=(i,r,s)=>Zv(i,r,s)>0;Hl.exports=Jv});var ui=F((Aw,Wl)=>{var Qv=ze(),jv=(i,r,s)=>Qv(i,r,s)<0;Wl.exports=jv});var Xs=F((yw,Gl)=>{var kv=ze(),e1=(i,r,s)=>kv(i,r,s)!==0;Gl.exports=e1});var oi=F((Rw,Bl)=>{var t1=ze(),n1=(i,r,s)=>t1(i,r,s)>=0;Bl.exports=n1});var ai=F((Ow,Xl)=>{var r1=ze(),i1=(i,r,s)=>r1(i,r,s)<=0;Xl.exports=i1});var zs=F((Iw,zl)=>{var s1=ii(),u1=Xs(),o1=Jn(),a1=oi(),l1=ui(),f1=ai(),c1=(i,r,s,o)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i===s;case"!==":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i!==s;case"":case"=":case"==":return s1(i,s,o);case"!=":return u1(i,s,o);case">":return o1(i,s,o);case">=":return a1(i,s,o);case"<":return l1(i,s,o);case"<=":return f1(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};zl.exports=c1});var Yl=F((Sw,Vl)=>{var h1=me(),p1=Kt(),{re:li,t:fi}=Yt(),g1=(i,r)=>{if(i instanceof h1)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let s=null;if(!r.rtl)s=i.match(li[fi.COERCE]);else{let o;for(;(o=li[fi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),li[fi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;li[fi.COERCERTL].lastIndex=-1}return s===null?null:p1(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};Vl.exports=g1});var Zl=F((Cw,Kl)=>{"use strict";Kl.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Ql=F((Lw,Jl)=>{"use strict";Jl.exports=Z;Z.Node=Zt;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)_1(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)m1(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};Z.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};Z.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};Z.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};Z.prototype.map=function(i,r){r=r||this;for(var s=new Z,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Z.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Z,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Z.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};Z.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};Z.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};Z.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};Z.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};Z.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var h=[],o=0;f&&o<r;o++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=d1(this,f,s[o]);return h};Z.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function d1(i,r,s){var o=r===i.head?new Zt(s,null,r,i):new Zt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function _1(i,r){i.tail=new Zt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function m1(i,r){i.head=new Zt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Zt(i,r,s,o){if(!(this instanceof Zt))return new Zt(i,r,s,o);this.list=o,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{Zl()(Z)}catch{}});var sf=F((bw,rf)=>{"use strict";var v1=Ql(),Jt=Symbol("max"),wt=Symbol("length"),mn=Symbol("lengthCalculator"),jn=Symbol("allowStale"),Qt=Symbol("maxAge"),Et=Symbol("dispose"),jl=Symbol("noDisposeOnSet"),he=Symbol("lruList"),ke=Symbol("cache"),ef=Symbol("updateAgeOnGet"),Vs=()=>1,tf=class{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");let s=this[Jt]=r.max||1/0,o=r.length||Vs;if(this[mn]=typeof o!="function"?Vs:o,this[jn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Qt]=r.maxAge||0,this[Et]=r.dispose,this[jl]=r.noDisposeOnSet||!1,this[ef]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[Jt]=r||1/0,Qn(this)}get max(){return this[Jt]}set allowStale(r){this[jn]=!!r}get allowStale(){return this[jn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Qt]=r,Qn(this)}get maxAge(){return this[Qt]}set lengthCalculator(r){typeof r!="function"&&(r=Vs),r!==this[mn]&&(this[mn]=r,this[wt]=0,this[he].forEach(s=>{s.length=this[mn](s.value,s.key),this[wt]+=s.length})),Qn(this)}get lengthCalculator(){return this[mn]}get length(){return this[wt]}get itemCount(){return this[he].length}rforEach(r,s){s=s||this;for(let o=this[he].tail;o!==null;){let f=o.prev;kl(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[he].head;o!==null;){let f=o.next;kl(this,r,o,s),o=f}}keys(){return this[he].toArray().map(r=>r.key)}values(){return this[he].toArray().map(r=>r.value)}reset(){this[Et]&&this[he]&&this[he].length&&this[he].forEach(r=>this[Et](r.key,r.value)),this[ke]=new Map,this[he]=new v1,this[wt]=0}dump(){return this[he].map(r=>ci(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[he]}set(r,s,o){if(o=o||this[Qt],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,h=this[mn](s,r);if(this[ke].has(r)){if(h>this[Jt])return vn(this,this[ke].get(r)),!1;let w=this[ke].get(r).value;return this[Et]&&(this[jl]||this[Et](r,w.value)),w.now=f,w.maxAge=o,w.value=s,this[wt]+=h-w.length,w.length=h,this.get(r),Qn(this),!0}let m=new nf(r,s,h,f,o);return m.length>this[Jt]?(this[Et]&&this[Et](r,s),!1):(this[wt]+=m.length,this[he].unshift(m),this[ke].set(r,this[he].head),Qn(this),!0)}has(r){if(!this[ke].has(r))return!1;let s=this[ke].get(r).value;return!ci(this,s)}get(r){return Ys(this,r,!0)}peek(r){return Ys(this,r,!1)}pop(){let r=this[he].tail;return r?(vn(this,r),r.value):null}del(r){vn(this,this[ke].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],h=f.e||0;if(h===0)this.set(f.k,f.v);else{let m=h-s;m>0&&this.set(f.k,f.v,m)}}}prune(){this[ke].forEach((r,s)=>Ys(this,s,!1))}},Ys=(i,r,s)=>{let o=i[ke].get(r);if(o){let f=o.value;if(ci(i,f)){if(vn(i,o),!i[jn])return}else s&&(i[ef]&&(o.value.now=Date.now()),i[he].unshiftNode(o));return f.value}},ci=(i,r)=>{if(!r||!r.maxAge&&!i[Qt])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[Qt]&&s>i[Qt]},Qn=i=>{if(i[wt]>i[Jt])for(let r=i[he].tail;i[wt]>i[Jt]&&r!==null;){let s=r.prev;vn(i,r),r=s}},vn=(i,r)=>{if(r){let s=r.value;i[Et]&&i[Et](s.key,s.value),i[wt]-=s.length,i[ke].delete(s.key),i[he].removeNode(r)}},nf=class{constructor(r,s,o,f,h){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=h||0}},kl=(i,r,s,o)=>{let f=s.value;ci(i,f)&&(vn(i,s),i[jn]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};rf.exports=tf});var Ve=F((Tw,lf)=>{var En=class{constructor(r,s){if(s=w1(s),r instanceof En)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new En(r.raw,s);if(r instanceof Ks)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(f=>!of(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&O1(f[0])){this.set=[f];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,f=uf.get(o);if(f)return f;let h=this.options.loose,m=h?ve[ge.HYPHENRANGELOOSE]:ve[ge.HYPHENRANGE];r=r.replace(m,F1(this.options.includePrerelease)),oe("hyphen replace",r),r=r.replace(ve[ge.COMPARATORTRIM],A1),oe("comparator trim",r,ve[ge.COMPARATORTRIM]),r=r.replace(ve[ge.TILDETRIM],y1),r=r.replace(ve[ge.CARETTRIM],R1),r=r.split(/\s+/).join(" ");let x=h?ve[ge.COMPARATORLOOSE]:ve[ge.COMPARATOR],w=r.split(" ").map(T=>I1(T,this.options)).join(" ").split(/\s+/).map(T=>P1(T,this.options)).filter(this.options.loose?T=>!!T.match(x):()=>!0).map(T=>new Ks(T,this.options)),v=w.length,I=new Map;for(let T of w){if(of(T))return[T];I.set(T.value,T)}I.size>1&&I.has("")&&I.delete("");let $=[...I.values()];return uf.set(o,$),$}intersects(r,s){if(!(r instanceof En))throw new TypeError("a Range is required");return this.set.some(o=>af(o,s)&&r.set.some(f=>af(f,s)&&o.every(h=>f.every(m=>h.intersects(m,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new x1(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(q1(this.set[s],r,this.options))return!0;return!1}};lf.exports=En;var E1=sf(),uf=new E1({max:1e3}),w1=Kn(),Ks=kn(),oe=Yn(),x1=me(),{re:ve,t:ge,comparatorTrimReplace:A1,tildeTrimReplace:y1,caretTrimReplace:R1}=Yt(),of=i=>i.value==="<0.0.0-0",O1=i=>i.value==="",af=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(h=>f.intersects(h,r)),f=o.pop();return s},I1=(i,r)=>(oe("comp",i,r),i=L1(i,r),oe("caret",i),i=S1(i,r),oe("tildes",i),i=T1(i,r),oe("xrange",i),i=N1(i,r),oe("stars",i),i),Ae=i=>!i||i.toLowerCase()==="x"||i==="*",S1=(i,r)=>i.trim().split(/\s+/).map(s=>C1(s,r)).join(" "),C1=(i,r)=>{let s=r.loose?ve[ge.TILDELOOSE]:ve[ge.TILDE];return i.replace(s,(o,f,h,m,x)=>{oe("tilde",i,o,f,h,m,x);let w;return Ae(f)?w="":Ae(h)?w=`>=${f}.0.0 <${+f+1}.0.0-0`:Ae(m)?w=`>=${f}.${h}.0 <${f}.${+h+1}.0-0`:x?(oe("replaceTilde pr",x),w=`>=${f}.${h}.${m}-${x} <${f}.${+h+1}.0-0`):w=`>=${f}.${h}.${m} <${f}.${+h+1}.0-0`,oe("tilde return",w),w})},L1=(i,r)=>i.trim().split(/\s+/).map(s=>b1(s,r)).join(" "),b1=(i,r)=>{oe("caret",i,r);let s=r.loose?ve[ge.CARETLOOSE]:ve[ge.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,h,m,x,w)=>{oe("caret",i,f,h,m,x,w);let v;return Ae(h)?v="":Ae(m)?v=`>=${h}.0.0${o} <${+h+1}.0.0-0`:Ae(x)?h==="0"?v=`>=${h}.${m}.0${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.0${o} <${+h+1}.0.0-0`:w?(oe("replaceCaret pr",w),h==="0"?m==="0"?v=`>=${h}.${m}.${x}-${w} <${h}.${m}.${+x+1}-0`:v=`>=${h}.${m}.${x}-${w} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${x}-${w} <${+h+1}.0.0-0`):(oe("no pr"),h==="0"?m==="0"?v=`>=${h}.${m}.${x}${o} <${h}.${m}.${+x+1}-0`:v=`>=${h}.${m}.${x}${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${x} <${+h+1}.0.0-0`),oe("caret return",v),v})},T1=(i,r)=>(oe("replaceXRanges",i,r),i.split(/\s+/).map(s=>$1(s,r)).join(" ")),$1=(i,r)=>{i=i.trim();let s=r.loose?ve[ge.XRANGELOOSE]:ve[ge.XRANGE];return i.replace(s,(o,f,h,m,x,w)=>{oe("xRange",i,o,f,h,m,x,w);let v=Ae(h),I=v||Ae(m),$=I||Ae(x),T=$;return f==="="&&T&&(f=""),w=r.includePrerelease?"-0":"",v?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(I&&(m=0),x=0,f===">"?(f=">=",I?(h=+h+1,m=0,x=0):(m=+m+1,x=0)):f==="<="&&(f="<",I?h=+h+1:m=+m+1),f==="<"&&(w="-0"),o=`${f+h}.${m}.${x}${w}`):I?o=`>=${h}.0.0${w} <${+h+1}.0.0-0`:$&&(o=`>=${h}.${m}.0${w} <${h}.${+m+1}.0-0`),oe("xRange return",o),o})},N1=(i,r)=>(oe("replaceStars",i,r),i.trim().replace(ve[ge.STAR],"")),P1=(i,r)=>(oe("replaceGTE0",i,r),i.trim().replace(ve[r.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),F1=i=>(r,s,o,f,h,m,x,w,v,I,$,T,P)=>(Ae(o)?s="":Ae(f)?s=`>=${o}.0.0${i?"-0":""}`:Ae(h)?s=`>=${o}.${f}.0${i?"-0":""}`:m?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Ae(v)?w="":Ae(I)?w=`<${+v+1}.0.0-0`:Ae($)?w=`<${v}.${+I+1}.0-0`:T?w=`<=${v}.${I}.${$}-${T}`:i?w=`<${v}.${I}.${+$+1}-0`:w=`<=${w}`,`${s} ${w}`.trim()),q1=(i,r,s)=>{for(let o=0;o<i.length;o++)if(!i[o].test(r))return!1;if(r.prerelease.length&&!s.includePrerelease){for(let o=0;o<i.length;o++)if(oe(i[o].semver),i[o].semver!==Ks.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var kn=F(($w,gf)=>{var er=Symbol("SemVer ANY"),tr=class{static get ANY(){return er}constructor(r,s){if(s=D1(s),r instanceof tr){if(r.loose===!!s.loose)return r;r=r.value}Js("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===er?this.value="":this.value=this.operator+this.semver.version,Js("comp",this)}parse(r){let s=this.options.loose?ff[cf.COMPARATORLOOSE]:ff[cf.COMPARATOR],o=r.match(s);if(!o)throw new TypeError(`Invalid comparator: ${r}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new hf(o[2],this.options.loose):this.semver=er}toString(){return this.value}test(r){if(Js("Comparator.test",r,this.options.loose),this.semver===er||r===er)return!0;if(typeof r=="string")try{r=new hf(r,this.options)}catch{return!1}return Zs(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof tr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new pf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new pf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),h=this.semver.version===r.semver.version,m=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),x=Zs(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),w=Zs(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||h&&m||x||w}};gf.exports=tr;var D1=Kn(),{re:ff,t:cf}=Yt(),Zs=zs(),Js=Yn(),hf=me(),pf=Ve()});var nr=F((Nw,df)=>{var M1=Ve(),U1=(i,r,s)=>{try{r=new M1(r,s)}catch{return!1}return r.test(i)};df.exports=U1});var mf=F((Pw,_f)=>{var H1=Ve(),W1=(i,r)=>new H1(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));_f.exports=W1});var Ef=F((Fw,vf)=>{var G1=me(),B1=Ve(),X1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new B1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===-1)&&(o=m,f=new G1(o,s))}),o};vf.exports=X1});var xf=F((qw,wf)=>{var z1=me(),V1=Ve(),Y1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new V1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===1)&&(o=m,f=new z1(o,s))}),o};wf.exports=Y1});var Rf=F((Dw,yf)=>{var Qs=me(),K1=Ve(),Af=Jn(),Z1=(i,r)=>{i=new K1(i,r);let s=new Qs("0.0.0");if(i.test(s)||(s=new Qs("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],h=null;f.forEach(m=>{let x=new Qs(m.semver.version);switch(m.operator){case">":x.prerelease.length===0?x.patch++:x.prerelease.push(0),x.raw=x.format();case"":case">=":(!h||Af(x,h))&&(h=x);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${m.operator}`)}}),h&&(!s||Af(s,h))&&(s=h)}return s&&i.test(s)?s:null};yf.exports=Z1});var If=F((Mw,Of)=>{var J1=Ve(),Q1=(i,r)=>{try{return new J1(i,r).range||"*"}catch{return null}};Of.exports=Q1});var hi=F((Uw,bf)=>{var j1=me(),Lf=kn(),{ANY:k1}=Lf,eE=Ve(),tE=nr(),Sf=Jn(),Cf=ui(),nE=ai(),rE=oi(),iE=(i,r,s,o)=>{i=new j1(i,o),r=new eE(r,o);let f,h,m,x,w;switch(s){case">":f=Sf,h=nE,m=Cf,x=">",w=">=";break;case"<":f=Cf,h=rE,m=Sf,x="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(tE(i,r,o))return!1;for(let v=0;v<r.set.length;++v){let I=r.set[v],$=null,T=null;if(I.forEach(P=>{P.semver===k1&&(P=new Lf(">=0.0.0")),$=$||P,T=T||P,f(P.semver,$.semver,o)?$=P:m(P.semver,T.semver,o)&&(T=P)}),$.operator===x||$.operator===w||(!T.operator||T.operator===x)&&h(i,T.semver))return!1;if(T.operator===w&&m(i,T.semver))return!1}return!0};bf.exports=iE});var $f=F((Hw,Tf)=>{var sE=hi(),uE=(i,r,s)=>sE(i,r,">",s);Tf.exports=uE});var Pf=F((Ww,Nf)=>{var oE=hi(),aE=(i,r,s)=>oE(i,r,"<",s);Nf.exports=aE});var Df=F((Gw,qf)=>{var Ff=Ve(),lE=(i,r,s)=>(i=new Ff(i,s),r=new Ff(r,s),i.intersects(r));qf.exports=lE});var Uf=F((Bw,Mf)=>{var fE=nr(),cE=ze();Mf.exports=(i,r,s)=>{let o=[],f=null,h=null,m=i.sort((I,$)=>cE(I,$,s));for(let I of m)fE(I,r,s)?(h=I,f||(f=I)):(h&&o.push([f,h]),h=null,f=null);f&&o.push([f,null]);let x=[];for(let[I,$]of o)I===$?x.push(I):!$&&I===m[0]?x.push("*"):$?I===m[0]?x.push(`<=${$}`):x.push(`${I} - ${$}`):x.push(`>=${I}`);let w=x.join(" || "),v=typeof r.raw=="string"?r.raw:String(r);return w.length<v.length?w:r}});var Xf=F((Xw,Bf)=>{var Hf=Ve(),pi=kn(),{ANY:js}=pi,rr=nr(),ks=ze(),hE=(i,r,s={})=>{if(i===r)return!0;i=new Hf(i,s),r=new Hf(r,s);let o=!1;e:for(let f of i.set){for(let h of r.set){let m=pE(f,h,s);if(o=o||m!==null,m)continue e}if(o)return!1}return!0},pE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===js){if(r.length===1&&r[0].semver===js)return!0;s.includePrerelease?i=[new pi(">=0.0.0-0")]:i=[new pi(">=0.0.0")]}if(r.length===1&&r[0].semver===js){if(s.includePrerelease)return!0;r=[new pi(">=0.0.0")]}let o=new Set,f,h;for(let P of i)P.operator===">"||P.operator===">="?f=Wf(f,P,s):P.operator==="<"||P.operator==="<="?h=Gf(h,P,s):o.add(P.semver);if(o.size>1)return null;let m;if(f&&h){if(m=ks(f.semver,h.semver,s),m>0)return null;if(m===0&&(f.operator!==">="||h.operator!=="<="))return null}for(let P of o){if(f&&!rr(P,String(f),s)||h&&!rr(P,String(h),s))return null;for(let ye of r)if(!rr(P,String(ye),s))return!1;return!0}let x,w,v,I,$=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;$&&$.prerelease.length===1&&h.operator==="<"&&$.prerelease[0]===0&&($=!1);for(let P of r){if(I=I||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(x=Wf(f,P,s),x===P&&x!==f)return!1}else if(f.operator===">="&&!rr(f.semver,String(P),s))return!1}if(h){if($&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===$.major&&P.semver.minor===$.minor&&P.semver.patch===$.patch&&($=!1),P.operator==="<"||P.operator==="<="){if(w=Gf(h,P,s),w===P&&w!==h)return!1}else if(h.operator==="<="&&!rr(h.semver,String(P),s))return!1}if(!P.operator&&(h||f)&&m!==0)return!1}return!(f&&v&&!h&&m!==0||h&&I&&!f&&m!==0||T||$)},Wf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},Gf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};Bf.exports=hE});var Vf=F((zw,zf)=>{var eu=Yt();zf.exports={re:eu.re,src:eu.src,tokens:eu.t,SEMVER_SPEC_VERSION:Vn().SEMVER_SPEC_VERSION,SemVer:me(),compareIdentifiers:ti().compareIdentifiers,rcompareIdentifiers:ti().rcompareIdentifiers,parse:Kt(),valid:cl(),clean:pl(),inc:dl(),diff:xl(),major:yl(),minor:Ol(),patch:Sl(),prerelease:Ll(),compare:ze(),rcompare:Tl(),compareLoose:Nl(),compareBuild:si(),sort:Dl(),rsort:Ul(),gt:Jn(),lt:ui(),eq:ii(),neq:Xs(),gte:oi(),lte:ai(),cmp:zs(),coerce:Yl(),Comparator:kn(),Range:Ve(),satisfies:nr(),toComparators:mf(),maxSatisfying:Ef(),minSatisfying:xf(),minVersion:Rf(),validRange:If(),outside:hi(),gtr:$f(),ltr:Pf(),intersects:Df(),simplifyRange:Uf(),subset:Xf()}});var gi=F(Fe=>{"use strict";var gE=Fe&&Fe.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),dE=Fe&&Fe.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),_E=Fe&&Fe.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&gE(r,i,s);return dE(r,i),r},Yf=Fe&&Fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCoreVersion=void 0;var Kf=Yf(require("path")),Zf=Yf(require("fs")),tu=_E(require("@serverless-devs/core")),mE=Vf(),Jf=Kf.default.join(tu.getRootHome(),"cache","core"),nu=Kf.default.join(Jf,"package.json");function vE(){if(Zf.default.existsSync(nu)){var i=require("@serverless-devs/core/package.json").version,r=Qf();return mE.gt(r,i)?require(Jf):tu}return tu}function Qf(){return Zf.default.existsSync(nu)?require(nu).version:void 0}Fe.getCoreVersion=Qf;Fe.default=vE()});var nc=F(Ce=>{"use strict";var EE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function x(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(x,w)}v((o=o.apply(i,r||[])).next())})},wE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},jf=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var kf=jf(require("path")),iu=jf(gi()),ut=iu.default.fse,di=iu.default.jsyaml,ru=iu.default.getRootHome;function xE(i){var r=tc();ut.writeFileSync(r,di.dump(i))}function ec(){var i=tc();if(!ut.existsSync(i))return{};try{var r=di.load(ut.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function tc(){var i=kf.default.join(ru(),"set-config.yml");return ut.existsSync(i)||ut.createFileSync(i),i}function AE(i,r){var s=ec();s[i]=r,xE(s)}Ce.setConfig=AE;function yE(i,r){var s=ec();return s[i]||r}Ce.getConfig=yE;function RE(i){return EE(this,void 0,void 0,function(){var r,s,o,f,h,m,x;return wE(this,function(w){switch(w.label){case 0:if(r=i.filePath||"set-config.yml",s=kf.default.join(ru(),r),o=ut.existsSync(s),f={},o)return[3,5];h=ru(),w.label=1;case 1:return w.trys.push([1,2,,4]),ut.statSync(h),[3,4];case 2:return m=w.sent(),[4,ut.mkdirSync(h)];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:try{f=di.load(ut.readFileSync(s,"utf8"))||{}}catch(v){throw v}w.label=6;case 6:return i.read?[2,f]:(x=i.configKey||"",f[x]=i.data,[4,ut.writeFileSync(s,di.dump(f))]);case 7:return w.sent(),[2,f]}})})}Ce.handlerProfileFile=RE});var rc=F((Kw,OE)=>{OE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.8",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var ac=F(U=>{"use strict";var IE=U&&U.__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]}),SE=U&&U.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),CE=U&&U.__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)&&IE(r,i,s);return SE(r,i),r},sr=U&&U.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function x(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(x,w)}v((o=o.apply(i,r||[])).next())})},ur=U&&U.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},su=U&&U.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(U,"__esModule",{value:!0});U.emoji=U.mark=U.replaceTemplate=U.replaceFun=U.getLang=U.printn=U.getFolderSize=U.getVersion=U.getPid=U.aiRequest=U.getCredentialWithAll=U.getCredentialWithExisted=U.getProcessArgv=U.bgRed=U.yellow=U.red=void 0;var LE=su(require("path")),ir=su(require("fs")),Nt=Ka(),bE=su(require("os")),ot=CE(gi()),TE=nc(),ic=rc(),_i=ot.default.colors,$E=ot.default.got,NE=ot.default.getMAC,PE=ot.default.isDocker,FE=ot.default.isCiCdEnv,qE=ot.default.getGlobalArgs,sc=ot.default.getCredential,uc=ot.default.getCredentialAliasList;U.red=_i.hex("#fd5750");U.yellow=_i.hex("#F3F99D");U.bgRed=_i.hex("#000").bgHex("#fd5750");var DE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=qE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Nt.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Nt.filter)(s._argsObj,function(o){return!(0,Nt.includes)(["-h","--help"],o)}))})}catch{return{}}};U.getProcessArgv=DE;var ME=function(i){return sr(void 0,void 0,void 0,function(){var r,s;return ur(this,function(o){switch(o.label){case 0:return[4,uc()];case 1:return r=o.sent(),(0,Nt.includes)(r,i)?[4,sc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Nt.omit)(s,"Alias")];case 3:return[2]}})})};U.getCredentialWithExisted=ME;var UE=function(){return sr(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return ur(this,function(m){switch(m.label){case 0:return[4,uc()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,sc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Nt.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};U.getCredentialWithAll=UE;var HE=function(i,r){return r===void 0&&(r="unknow"),sr(void 0,void 0,void 0,function(){var s,o,f,h;return ur(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),s=(0,TE.getConfig)("analysis"),s!=="enable"?[2]:PE()||FE()?[2]:[4,$E("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=m.sent(),f=(0,Nt.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(_i.underline(f),`
|
|
36
36
|
`)),[3,3];case 2:return h=m.sent(),[3,3];case 3:return[2]}})})};U.aiRequest=HE;var WE=function(){try{return NE().replace(/:/g,"")}catch{return"unknown"}};U.getPid=WE;function GE(){var i=(0,ot.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(ot.default.getRootHome()),h="".concat(ic.name,": ").concat(ic.version);return i?"".concat(h,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(h,", ").concat(f,", ").concat(r,", ").concat(s)}U.getVersion=GE;function BE(i){return sr(this,void 0,void 0,function(){function r(f){return sr(this,void 0,void 0,function(){var h,m;return ur(this,function(x){switch(x.label){case 0:return h=ir.default.lstatSync(f),typeof h!="object"?[2]:(s.set(h.ino,h.size),h.isDirectory()?(m=ir.default.readdirSync(f),typeof m!="object"?[2]:[4,Promise.all(m.map(function(w){return r(LE.default.join(f,w))}))]):[3,2]);case 1:x.sent(),x.label=2;case 2:return[2]}})})}var s,o;return ur(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(h,m){return h+m},0),[2,o]}})})}U.getFolderSize=BE;function XE(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}U.printn=XE;function zE(){return"en"}U.getLang=zE;function oc(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var h=o[f].replace(/{{|}}/g,""),m=(0,Nt.trim)(h.split("|")[0]);r[m]&&(i=i.replace(o[f],r[m]))}return i}U.replaceFun=oc;function VE(i,r){i.forEach(function(s){if(ir.default.existsSync(s)){var o=ir.default.readFileSync(s,"utf-8"),f=oc(o,r);ir.default.writeFileSync(s,f,"utf-8")}})}U.replaceTemplate=VE;function YE(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}U.mark=YE;function KE(i,r){return bE.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}U.emoji=KE});var lc=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var ZE=lc(Ya()),mi=ac(),JE=lc(gi()),QE=JE.default.colors,jE=`You can make some default settings for the tool here.
|
|
37
37
|
|