@modern-js/repo-generator 3.3.8 → 3.3.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +506 -456
- package/package.json +13 -13
package/dist/index.js
CHANGED
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __esm = (fn, res) => function __init() {
|
9
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
10
|
-
};
|
11
8
|
var __commonJS = (cb, mod) => function __require() {
|
12
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
13
10
|
};
|
@@ -17560,11 +17557,11 @@ var require_ms = __commonJS({
|
|
17560
17557
|
}
|
17561
17558
|
});
|
17562
17559
|
|
17563
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
17560
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js
|
17564
17561
|
var require_common2 = __commonJS({
|
17565
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
17562
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
|
17566
17563
|
"use strict";
|
17567
|
-
function setup(
|
17564
|
+
function setup(env) {
|
17568
17565
|
createDebug.debug = createDebug;
|
17569
17566
|
createDebug.default = createDebug;
|
17570
17567
|
createDebug.coerce = coerce;
|
@@ -17573,8 +17570,8 @@ var require_common2 = __commonJS({
|
|
17573
17570
|
createDebug.enabled = enabled;
|
17574
17571
|
createDebug.humanize = require_ms();
|
17575
17572
|
createDebug.destroy = destroy2;
|
17576
|
-
Object.keys(
|
17577
|
-
createDebug[key] =
|
17573
|
+
Object.keys(env).forEach((key) => {
|
17574
|
+
createDebug[key] = env[key];
|
17578
17575
|
});
|
17579
17576
|
createDebug.names = [];
|
17580
17577
|
createDebug.skips = [];
|
@@ -17724,9 +17721,9 @@ var require_common2 = __commonJS({
|
|
17724
17721
|
}
|
17725
17722
|
});
|
17726
17723
|
|
17727
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
17724
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js
|
17728
17725
|
var require_browser = __commonJS({
|
17729
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
17726
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
|
17730
17727
|
"use strict";
|
17731
17728
|
exports.formatArgs = formatArgs;
|
17732
17729
|
exports.save = save;
|
@@ -17894,147 +17891,120 @@ var require_browser = __commonJS({
|
|
17894
17891
|
}
|
17895
17892
|
});
|
17896
17893
|
|
17897
|
-
// ../../../../node_modules/.pnpm/
|
17898
|
-
var
|
17899
|
-
|
17900
|
-
|
17901
|
-
|
17902
|
-
|
17903
|
-
|
17904
|
-
|
17905
|
-
|
17906
|
-
|
17907
|
-
|
17908
|
-
}
|
17909
|
-
function envForceColor() {
|
17910
|
-
if ("FORCE_COLOR" in env) {
|
17911
|
-
if (env.FORCE_COLOR === "true") {
|
17912
|
-
return 1;
|
17913
|
-
}
|
17914
|
-
if (env.FORCE_COLOR === "false") {
|
17915
|
-
return 0;
|
17916
|
-
}
|
17917
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
17918
|
-
}
|
17919
|
-
}
|
17920
|
-
function translateLevel(level) {
|
17921
|
-
if (level === 0) {
|
17922
|
-
return false;
|
17923
|
-
}
|
17924
|
-
return {
|
17925
|
-
level,
|
17926
|
-
hasBasic: true,
|
17927
|
-
has256: level >= 2,
|
17928
|
-
has16m: level >= 3
|
17929
|
-
};
|
17930
|
-
}
|
17931
|
-
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
17932
|
-
const noFlagForceColor = envForceColor();
|
17933
|
-
if (noFlagForceColor !== void 0) {
|
17934
|
-
flagForceColor = noFlagForceColor;
|
17935
|
-
}
|
17936
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
17937
|
-
if (forceColor === 0) {
|
17938
|
-
return 0;
|
17939
|
-
}
|
17940
|
-
if (sniffFlags) {
|
17941
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
17942
|
-
return 3;
|
17943
|
-
}
|
17944
|
-
if (hasFlag("color=256")) {
|
17945
|
-
return 2;
|
17946
|
-
}
|
17947
|
-
}
|
17948
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
17949
|
-
return 1;
|
17950
|
-
}
|
17951
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
17952
|
-
return 0;
|
17953
|
-
}
|
17954
|
-
const min = forceColor || 0;
|
17955
|
-
if (env.TERM === "dumb") {
|
17956
|
-
return min;
|
17894
|
+
// ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
|
17895
|
+
var require_has_flag = __commonJS({
|
17896
|
+
"../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
17897
|
+
"use strict";
|
17898
|
+
module2.exports = (flag, argv) => {
|
17899
|
+
argv = argv || process.argv;
|
17900
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
17901
|
+
const pos = argv.indexOf(prefix + flag);
|
17902
|
+
const terminatorPos = argv.indexOf("--");
|
17903
|
+
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
17904
|
+
};
|
17957
17905
|
}
|
17958
|
-
|
17959
|
-
|
17960
|
-
|
17961
|
-
|
17906
|
+
});
|
17907
|
+
|
17908
|
+
// ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
17909
|
+
var require_supports_color = __commonJS({
|
17910
|
+
"../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
17911
|
+
"use strict";
|
17912
|
+
var os2 = require("os");
|
17913
|
+
var hasFlag = require_has_flag();
|
17914
|
+
var env = process.env;
|
17915
|
+
var forceColor;
|
17916
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
17917
|
+
forceColor = false;
|
17918
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
17919
|
+
forceColor = true;
|
17962
17920
|
}
|
17963
|
-
|
17964
|
-
|
17965
|
-
if ("CI" in env) {
|
17966
|
-
if ("GITHUB_ACTIONS" in env) {
|
17967
|
-
return 3;
|
17921
|
+
if ("FORCE_COLOR" in env) {
|
17922
|
+
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
17968
17923
|
}
|
17969
|
-
|
17970
|
-
|
17924
|
+
function translateLevel(level) {
|
17925
|
+
if (level === 0) {
|
17926
|
+
return false;
|
17927
|
+
}
|
17928
|
+
return {
|
17929
|
+
level,
|
17930
|
+
hasBasic: true,
|
17931
|
+
has256: level >= 2,
|
17932
|
+
has16m: level >= 3
|
17933
|
+
};
|
17971
17934
|
}
|
17972
|
-
|
17973
|
-
|
17974
|
-
|
17975
|
-
|
17976
|
-
|
17977
|
-
|
17978
|
-
return 3;
|
17979
|
-
}
|
17980
|
-
if (env.TERM === "xterm-kitty") {
|
17981
|
-
return 3;
|
17982
|
-
}
|
17983
|
-
if ("TERM_PROGRAM" in env) {
|
17984
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
17985
|
-
switch (env.TERM_PROGRAM) {
|
17986
|
-
case "iTerm.app": {
|
17987
|
-
return version >= 3 ? 3 : 2;
|
17935
|
+
function supportsColor(stream4) {
|
17936
|
+
if (forceColor === false) {
|
17937
|
+
return 0;
|
17938
|
+
}
|
17939
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
17940
|
+
return 3;
|
17988
17941
|
}
|
17989
|
-
|
17942
|
+
if (hasFlag("color=256")) {
|
17990
17943
|
return 2;
|
17991
17944
|
}
|
17945
|
+
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
17946
|
+
return 0;
|
17947
|
+
}
|
17948
|
+
const min = forceColor ? 1 : 0;
|
17949
|
+
if (process.platform === "win32") {
|
17950
|
+
const osRelease = os2.release().split(".");
|
17951
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
17952
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
17953
|
+
}
|
17954
|
+
return 1;
|
17955
|
+
}
|
17956
|
+
if ("CI" in env) {
|
17957
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
17958
|
+
return 1;
|
17959
|
+
}
|
17960
|
+
return min;
|
17961
|
+
}
|
17962
|
+
if ("TEAMCITY_VERSION" in env) {
|
17963
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
17964
|
+
}
|
17965
|
+
if (env.COLORTERM === "truecolor") {
|
17966
|
+
return 3;
|
17967
|
+
}
|
17968
|
+
if ("TERM_PROGRAM" in env) {
|
17969
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
17970
|
+
switch (env.TERM_PROGRAM) {
|
17971
|
+
case "iTerm.app":
|
17972
|
+
return version >= 3 ? 3 : 2;
|
17973
|
+
case "Apple_Terminal":
|
17974
|
+
return 2;
|
17975
|
+
}
|
17976
|
+
}
|
17977
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
17978
|
+
return 2;
|
17979
|
+
}
|
17980
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
17981
|
+
return 1;
|
17982
|
+
}
|
17983
|
+
if ("COLORTERM" in env) {
|
17984
|
+
return 1;
|
17985
|
+
}
|
17986
|
+
if (env.TERM === "dumb") {
|
17987
|
+
return min;
|
17988
|
+
}
|
17989
|
+
return min;
|
17992
17990
|
}
|
17993
|
-
|
17994
|
-
|
17995
|
-
|
17996
|
-
}
|
17997
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
17998
|
-
return 1;
|
17999
|
-
}
|
18000
|
-
if ("COLORTERM" in env) {
|
18001
|
-
return 1;
|
18002
|
-
}
|
18003
|
-
return min;
|
18004
|
-
}
|
18005
|
-
function createSupportsColor(stream4, options = {}) {
|
18006
|
-
const level = _supportsColor(stream4, {
|
18007
|
-
streamIsTTY: stream4 && stream4.isTTY,
|
18008
|
-
...options
|
18009
|
-
});
|
18010
|
-
return translateLevel(level);
|
18011
|
-
}
|
18012
|
-
var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
|
18013
|
-
var init_supports_color = __esm({
|
18014
|
-
"../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
|
18015
|
-
"use strict";
|
18016
|
-
import_node_process = __toESM(require("process"));
|
18017
|
-
import_node_os = __toESM(require("os"));
|
18018
|
-
import_node_tty = __toESM(require("tty"));
|
18019
|
-
({ env } = import_node_process.default);
|
18020
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
18021
|
-
flagForceColor = 0;
|
18022
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
18023
|
-
flagForceColor = 1;
|
17991
|
+
function getSupportLevel(stream4) {
|
17992
|
+
const level = supportsColor(stream4);
|
17993
|
+
return translateLevel(level);
|
18024
17994
|
}
|
18025
|
-
|
18026
|
-
|
18027
|
-
|
17995
|
+
module2.exports = {
|
17996
|
+
supportsColor: getSupportLevel,
|
17997
|
+
stdout: getSupportLevel(process.stdout),
|
17998
|
+
stderr: getSupportLevel(process.stderr)
|
18028
17999
|
};
|
18029
|
-
supports_color_default = supportsColor;
|
18030
18000
|
}
|
18031
18001
|
});
|
18032
18002
|
|
18033
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
18003
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js
|
18034
18004
|
var require_node = __commonJS({
|
18035
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
18005
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
|
18036
18006
|
"use strict";
|
18037
|
-
var
|
18007
|
+
var tty = require("tty");
|
18038
18008
|
var util2 = require("util");
|
18039
18009
|
exports.init = init;
|
18040
18010
|
exports.log = log;
|
@@ -18049,8 +18019,8 @@ var require_node = __commonJS({
|
|
18049
18019
|
);
|
18050
18020
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
18051
18021
|
try {
|
18052
|
-
const
|
18053
|
-
if (
|
18022
|
+
const supportsColor = require_supports_color();
|
18023
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
18054
18024
|
exports.colors = [
|
18055
18025
|
20,
|
18056
18026
|
21,
|
@@ -18152,7 +18122,7 @@ var require_node = __commonJS({
|
|
18152
18122
|
return obj;
|
18153
18123
|
}, {});
|
18154
18124
|
function useColors() {
|
18155
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
18125
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
18156
18126
|
}
|
18157
18127
|
function formatArgs(args) {
|
18158
18128
|
const { namespace: name, useColors: useColors2 } = this;
|
@@ -18205,9 +18175,9 @@ var require_node = __commonJS({
|
|
18205
18175
|
}
|
18206
18176
|
});
|
18207
18177
|
|
18208
|
-
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
18178
|
+
// ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js
|
18209
18179
|
var require_src3 = __commonJS({
|
18210
|
-
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
18180
|
+
"../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
|
18211
18181
|
"use strict";
|
18212
18182
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
18213
18183
|
module2.exports = require_browser();
|
@@ -18217,9 +18187,9 @@ var require_src3 = __commonJS({
|
|
18217
18187
|
}
|
18218
18188
|
});
|
18219
18189
|
|
18220
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.15.
|
18190
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/debug.js
|
18221
18191
|
var require_debug = __commonJS({
|
18222
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.15.
|
18192
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/debug.js"(exports, module2) {
|
18223
18193
|
"use strict";
|
18224
18194
|
var debug;
|
18225
18195
|
module2.exports = function() {
|
@@ -18238,9 +18208,9 @@ var require_debug = __commonJS({
|
|
18238
18208
|
}
|
18239
18209
|
});
|
18240
18210
|
|
18241
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.15.
|
18211
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/index.js
|
18242
18212
|
var require_follow_redirects = __commonJS({
|
18243
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.15.
|
18213
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/index.js"(exports, module2) {
|
18244
18214
|
"use strict";
|
18245
18215
|
var url2 = require("url");
|
18246
18216
|
var URL2 = url2.URL;
|
@@ -18249,6 +18219,25 @@ var require_follow_redirects = __commonJS({
|
|
18249
18219
|
var Writable = require("stream").Writable;
|
18250
18220
|
var assert = require("assert");
|
18251
18221
|
var debug = require_debug();
|
18222
|
+
var useNativeURL = false;
|
18223
|
+
try {
|
18224
|
+
assert(new URL2());
|
18225
|
+
} catch (error) {
|
18226
|
+
useNativeURL = error.code === "ERR_INVALID_URL";
|
18227
|
+
}
|
18228
|
+
var preservedUrlFields = [
|
18229
|
+
"auth",
|
18230
|
+
"host",
|
18231
|
+
"hostname",
|
18232
|
+
"href",
|
18233
|
+
"path",
|
18234
|
+
"pathname",
|
18235
|
+
"port",
|
18236
|
+
"protocol",
|
18237
|
+
"query",
|
18238
|
+
"search",
|
18239
|
+
"hash"
|
18240
|
+
];
|
18252
18241
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
18253
18242
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
18254
18243
|
events.forEach(function(event) {
|
@@ -18256,13 +18245,19 @@ var require_follow_redirects = __commonJS({
|
|
18256
18245
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
18257
18246
|
};
|
18258
18247
|
});
|
18248
|
+
var InvalidUrlError = createErrorType(
|
18249
|
+
"ERR_INVALID_URL",
|
18250
|
+
"Invalid URL",
|
18251
|
+
TypeError
|
18252
|
+
);
|
18259
18253
|
var RedirectionError = createErrorType(
|
18260
18254
|
"ERR_FR_REDIRECTION_FAILURE",
|
18261
18255
|
"Redirected request failed"
|
18262
18256
|
);
|
18263
18257
|
var TooManyRedirectsError = createErrorType(
|
18264
18258
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
18265
|
-
"Maximum number of redirects exceeded"
|
18259
|
+
"Maximum number of redirects exceeded",
|
18260
|
+
RedirectionError
|
18266
18261
|
);
|
18267
18262
|
var MaxBodyLengthExceededError = createErrorType(
|
18268
18263
|
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
@@ -18272,6 +18267,7 @@ var require_follow_redirects = __commonJS({
|
|
18272
18267
|
"ERR_STREAM_WRITE_AFTER_END",
|
18273
18268
|
"write after end"
|
18274
18269
|
);
|
18270
|
+
var destroy2 = Writable.prototype.destroy || noop2;
|
18275
18271
|
function RedirectableRequest(options, responseCallback) {
|
18276
18272
|
Writable.call(this);
|
18277
18273
|
this._sanitizeOptions(options);
|
@@ -18287,23 +18283,33 @@ var require_follow_redirects = __commonJS({
|
|
18287
18283
|
}
|
18288
18284
|
var self3 = this;
|
18289
18285
|
this._onNativeResponse = function(response) {
|
18290
|
-
|
18286
|
+
try {
|
18287
|
+
self3._processResponse(response);
|
18288
|
+
} catch (cause) {
|
18289
|
+
self3.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
18290
|
+
}
|
18291
18291
|
};
|
18292
18292
|
this._performRequest();
|
18293
18293
|
}
|
18294
18294
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
18295
18295
|
RedirectableRequest.prototype.abort = function() {
|
18296
|
-
|
18296
|
+
destroyRequest(this._currentRequest);
|
18297
|
+
this._currentRequest.abort();
|
18297
18298
|
this.emit("abort");
|
18298
18299
|
};
|
18300
|
+
RedirectableRequest.prototype.destroy = function(error) {
|
18301
|
+
destroyRequest(this._currentRequest, error);
|
18302
|
+
destroy2.call(this, error);
|
18303
|
+
return this;
|
18304
|
+
};
|
18299
18305
|
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
18300
18306
|
if (this._ending) {
|
18301
18307
|
throw new WriteAfterEndError();
|
18302
18308
|
}
|
18303
|
-
if (!(
|
18309
|
+
if (!isString5(data) && !isBuffer2(data)) {
|
18304
18310
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
18305
18311
|
}
|
18306
|
-
if (
|
18312
|
+
if (isFunction5(encoding)) {
|
18307
18313
|
callback = encoding;
|
18308
18314
|
encoding = null;
|
18309
18315
|
}
|
@@ -18323,10 +18329,10 @@ var require_follow_redirects = __commonJS({
|
|
18323
18329
|
}
|
18324
18330
|
};
|
18325
18331
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
18326
|
-
if (
|
18332
|
+
if (isFunction5(data)) {
|
18327
18333
|
callback = data;
|
18328
18334
|
data = encoding = null;
|
18329
|
-
} else if (
|
18335
|
+
} else if (isFunction5(encoding)) {
|
18330
18336
|
callback = encoding;
|
18331
18337
|
encoding = null;
|
18332
18338
|
}
|
@@ -18376,6 +18382,7 @@ var require_follow_redirects = __commonJS({
|
|
18376
18382
|
self3.removeListener("abort", clearTimer);
|
18377
18383
|
self3.removeListener("error", clearTimer);
|
18378
18384
|
self3.removeListener("response", clearTimer);
|
18385
|
+
self3.removeListener("close", clearTimer);
|
18379
18386
|
if (callback) {
|
18380
18387
|
self3.removeListener("timeout", callback);
|
18381
18388
|
}
|
@@ -18395,6 +18402,7 @@ var require_follow_redirects = __commonJS({
|
|
18395
18402
|
this.on("abort", clearTimer);
|
18396
18403
|
this.on("error", clearTimer);
|
18397
18404
|
this.on("response", clearTimer);
|
18405
|
+
this.on("close", clearTimer);
|
18398
18406
|
return this;
|
18399
18407
|
};
|
18400
18408
|
[
|
@@ -18438,8 +18446,7 @@ var require_follow_redirects = __commonJS({
|
|
18438
18446
|
var protocol = this._options.protocol;
|
18439
18447
|
var nativeProtocol = this._options.nativeProtocols[protocol];
|
18440
18448
|
if (!nativeProtocol) {
|
18441
|
-
|
18442
|
-
return;
|
18449
|
+
throw new TypeError("Unsupported protocol " + protocol);
|
18443
18450
|
}
|
18444
18451
|
if (this._options.agents) {
|
18445
18452
|
var scheme = protocol.slice(0, -1);
|
@@ -18453,7 +18460,7 @@ var require_follow_redirects = __commonJS({
|
|
18453
18460
|
this._currentUrl = /^\//.test(this._options.path) ? url2.format(this._options) : (
|
18454
18461
|
// When making a request to a proxy, […]
|
18455
18462
|
// a client MUST send the target URI in absolute-form […].
|
18456
|
-
this.
|
18463
|
+
this._options.path
|
18457
18464
|
);
|
18458
18465
|
if (this._isRedirect) {
|
18459
18466
|
var i = 0;
|
@@ -18492,11 +18499,10 @@ var require_follow_redirects = __commonJS({
|
|
18492
18499
|
this._requestBodyBuffers = [];
|
18493
18500
|
return;
|
18494
18501
|
}
|
18495
|
-
|
18502
|
+
destroyRequest(this._currentRequest);
|
18496
18503
|
response.destroy();
|
18497
18504
|
if (++this._redirectCount > this._options.maxRedirects) {
|
18498
|
-
|
18499
|
-
return;
|
18505
|
+
throw new TooManyRedirectsError();
|
18500
18506
|
}
|
18501
18507
|
var requestHeaders;
|
18502
18508
|
var beforeRedirect = this._options.beforeRedirect;
|
@@ -18517,24 +18523,17 @@ var require_follow_redirects = __commonJS({
|
|
18517
18523
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
18518
18524
|
}
|
18519
18525
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
18520
|
-
var currentUrlParts =
|
18526
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
18521
18527
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
18522
18528
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
18523
|
-
var redirectUrl;
|
18524
|
-
|
18525
|
-
redirectUrl = url2.resolve(currentUrl, location);
|
18526
|
-
} catch (cause) {
|
18527
|
-
this.emit("error", new RedirectionError(cause));
|
18528
|
-
return;
|
18529
|
-
}
|
18530
|
-
debug("redirecting to", redirectUrl);
|
18529
|
+
var redirectUrl = resolveUrl(location, currentUrl);
|
18530
|
+
debug("redirecting to", redirectUrl.href);
|
18531
18531
|
this._isRedirect = true;
|
18532
|
-
|
18533
|
-
|
18534
|
-
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
18532
|
+
spreadUrlObject(redirectUrl, this._options);
|
18533
|
+
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
18535
18534
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
18536
18535
|
}
|
18537
|
-
if (
|
18536
|
+
if (isFunction5(beforeRedirect)) {
|
18538
18537
|
var responseDetails = {
|
18539
18538
|
headers: response.headers,
|
18540
18539
|
statusCode
|
@@ -18544,19 +18543,10 @@ var require_follow_redirects = __commonJS({
|
|
18544
18543
|
method,
|
18545
18544
|
headers: requestHeaders
|
18546
18545
|
};
|
18547
|
-
|
18548
|
-
beforeRedirect(this._options, responseDetails, requestDetails);
|
18549
|
-
} catch (err) {
|
18550
|
-
this.emit("error", err);
|
18551
|
-
return;
|
18552
|
-
}
|
18546
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
18553
18547
|
this._sanitizeOptions(this._options);
|
18554
18548
|
}
|
18555
|
-
|
18556
|
-
this._performRequest();
|
18557
|
-
} catch (cause) {
|
18558
|
-
this.emit("error", new RedirectionError(cause));
|
18559
|
-
}
|
18549
|
+
this._performRequest();
|
18560
18550
|
};
|
18561
18551
|
function wrap(protocols) {
|
18562
18552
|
var exports2 = {
|
@@ -18569,21 +18559,16 @@ var require_follow_redirects = __commonJS({
|
|
18569
18559
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
18570
18560
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
18571
18561
|
function request(input, options, callback) {
|
18572
|
-
if (
|
18573
|
-
|
18574
|
-
|
18575
|
-
|
18576
|
-
} catch (err) {
|
18577
|
-
input = url2.parse(urlStr);
|
18578
|
-
}
|
18579
|
-
} else if (URL2 && input instanceof URL2) {
|
18580
|
-
input = urlToOptions(input);
|
18562
|
+
if (isURL(input)) {
|
18563
|
+
input = spreadUrlObject(input);
|
18564
|
+
} else if (isString5(input)) {
|
18565
|
+
input = spreadUrlObject(parseUrl(input));
|
18581
18566
|
} else {
|
18582
18567
|
callback = options;
|
18583
|
-
options = input;
|
18568
|
+
options = validateUrl(input);
|
18584
18569
|
input = { protocol };
|
18585
18570
|
}
|
18586
|
-
if (
|
18571
|
+
if (isFunction5(options)) {
|
18587
18572
|
callback = options;
|
18588
18573
|
options = null;
|
18589
18574
|
}
|
@@ -18592,6 +18577,9 @@ var require_follow_redirects = __commonJS({
|
|
18592
18577
|
maxBodyLength: exports2.maxBodyLength
|
18593
18578
|
}, input, options);
|
18594
18579
|
options.nativeProtocols = nativeProtocols;
|
18580
|
+
if (!isString5(options.host) && !isString5(options.hostname)) {
|
18581
|
+
options.hostname = "::1";
|
18582
|
+
}
|
18595
18583
|
assert.equal(options.protocol, protocol, "protocol mismatch");
|
18596
18584
|
debug("options", options);
|
18597
18585
|
return new RedirectableRequest(options, callback);
|
@@ -18610,23 +18598,43 @@ var require_follow_redirects = __commonJS({
|
|
18610
18598
|
}
|
18611
18599
|
function noop2() {
|
18612
18600
|
}
|
18613
|
-
function
|
18614
|
-
var
|
18615
|
-
|
18616
|
-
|
18617
|
-
|
18618
|
-
|
18619
|
-
)
|
18620
|
-
|
18621
|
-
|
18622
|
-
pathname: urlObject.pathname,
|
18623
|
-
path: urlObject.pathname + urlObject.search,
|
18624
|
-
href: urlObject.href
|
18625
|
-
};
|
18626
|
-
if (urlObject.port !== "") {
|
18627
|
-
options.port = Number(urlObject.port);
|
18601
|
+
function parseUrl(input) {
|
18602
|
+
var parsed;
|
18603
|
+
if (useNativeURL) {
|
18604
|
+
parsed = new URL2(input);
|
18605
|
+
} else {
|
18606
|
+
parsed = validateUrl(url2.parse(input));
|
18607
|
+
if (!isString5(parsed.protocol)) {
|
18608
|
+
throw new InvalidUrlError({ input });
|
18609
|
+
}
|
18628
18610
|
}
|
18629
|
-
return
|
18611
|
+
return parsed;
|
18612
|
+
}
|
18613
|
+
function resolveUrl(relative, base) {
|
18614
|
+
return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
|
18615
|
+
}
|
18616
|
+
function validateUrl(input) {
|
18617
|
+
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
18618
|
+
throw new InvalidUrlError({ input: input.href || input });
|
18619
|
+
}
|
18620
|
+
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
18621
|
+
throw new InvalidUrlError({ input: input.href || input });
|
18622
|
+
}
|
18623
|
+
return input;
|
18624
|
+
}
|
18625
|
+
function spreadUrlObject(urlObject, target) {
|
18626
|
+
var spread3 = target || {};
|
18627
|
+
for (var key of preservedUrlFields) {
|
18628
|
+
spread3[key] = urlObject[key];
|
18629
|
+
}
|
18630
|
+
if (spread3.hostname.startsWith("[")) {
|
18631
|
+
spread3.hostname = spread3.hostname.slice(1, -1);
|
18632
|
+
}
|
18633
|
+
if (spread3.port !== "") {
|
18634
|
+
spread3.port = Number(spread3.port);
|
18635
|
+
}
|
18636
|
+
spread3.path = spread3.search ? spread3.pathname + spread3.search : spread3.pathname;
|
18637
|
+
return spread3;
|
18630
18638
|
}
|
18631
18639
|
function removeMatchingHeaders(regex2, headers) {
|
18632
18640
|
var lastValue;
|
@@ -18638,33 +18646,50 @@ var require_follow_redirects = __commonJS({
|
|
18638
18646
|
}
|
18639
18647
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
18640
18648
|
}
|
18641
|
-
function createErrorType(code,
|
18642
|
-
function CustomError(
|
18649
|
+
function createErrorType(code, message, baseClass) {
|
18650
|
+
function CustomError(properties) {
|
18643
18651
|
Error.captureStackTrace(this, this.constructor);
|
18644
|
-
|
18645
|
-
|
18646
|
-
|
18647
|
-
this.message = defaultMessage + ": " + cause.message;
|
18648
|
-
this.cause = cause;
|
18649
|
-
}
|
18652
|
+
Object.assign(this, properties || {});
|
18653
|
+
this.code = code;
|
18654
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
18650
18655
|
}
|
18651
|
-
CustomError.prototype = new Error();
|
18652
|
-
CustomError.prototype
|
18653
|
-
|
18654
|
-
|
18656
|
+
CustomError.prototype = new (baseClass || Error)();
|
18657
|
+
Object.defineProperties(CustomError.prototype, {
|
18658
|
+
constructor: {
|
18659
|
+
value: CustomError,
|
18660
|
+
enumerable: false
|
18661
|
+
},
|
18662
|
+
name: {
|
18663
|
+
value: "Error [" + code + "]",
|
18664
|
+
enumerable: false
|
18665
|
+
}
|
18666
|
+
});
|
18655
18667
|
return CustomError;
|
18656
18668
|
}
|
18657
|
-
function
|
18669
|
+
function destroyRequest(request, error) {
|
18658
18670
|
for (var event of events) {
|
18659
18671
|
request.removeListener(event, eventHandlers[event]);
|
18660
18672
|
}
|
18661
18673
|
request.on("error", noop2);
|
18662
|
-
request.
|
18674
|
+
request.destroy(error);
|
18663
18675
|
}
|
18664
18676
|
function isSubdomain(subdomain, domain) {
|
18665
|
-
|
18677
|
+
assert(isString5(subdomain) && isString5(domain));
|
18678
|
+
var dot = subdomain.length - domain.length - 1;
|
18666
18679
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
18667
18680
|
}
|
18681
|
+
function isString5(value) {
|
18682
|
+
return typeof value === "string" || value instanceof String;
|
18683
|
+
}
|
18684
|
+
function isFunction5(value) {
|
18685
|
+
return typeof value === "function";
|
18686
|
+
}
|
18687
|
+
function isBuffer2(value) {
|
18688
|
+
return typeof value === "object" && "length" in value;
|
18689
|
+
}
|
18690
|
+
function isURL(value) {
|
18691
|
+
return URL2 && value instanceof URL2;
|
18692
|
+
}
|
18668
18693
|
module2.exports = wrap({ http: http2, https: https2 });
|
18669
18694
|
module2.exports.wrap = wrap;
|
18670
18695
|
}
|
@@ -25664,15 +25689,15 @@ var require_runtime = __commonJS({
|
|
25664
25689
|
throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ").");
|
25665
25690
|
}
|
25666
25691
|
}
|
25667
|
-
function template(templateSpec,
|
25668
|
-
if (!
|
25692
|
+
function template(templateSpec, env) {
|
25693
|
+
if (!env) {
|
25669
25694
|
throw new _exception2["default"]("No environment passed to template");
|
25670
25695
|
}
|
25671
25696
|
if (!templateSpec || !templateSpec.main) {
|
25672
25697
|
throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
|
25673
25698
|
}
|
25674
25699
|
templateSpec.main.decorator = templateSpec.main_d;
|
25675
|
-
|
25700
|
+
env.VM.checkRevision(templateSpec.compiler);
|
25676
25701
|
var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
|
25677
25702
|
function invokePartialWrapper(partial, context, options) {
|
25678
25703
|
if (options.hash) {
|
@@ -25681,14 +25706,14 @@ var require_runtime = __commonJS({
|
|
25681
25706
|
options.ids[0] = true;
|
25682
25707
|
}
|
25683
25708
|
}
|
25684
|
-
partial =
|
25709
|
+
partial = env.VM.resolvePartial.call(this, partial, context, options);
|
25685
25710
|
var extendedOptions = Utils.extend({}, options, {
|
25686
25711
|
hooks: this.hooks,
|
25687
25712
|
protoAccessControl: this.protoAccessControl
|
25688
25713
|
});
|
25689
|
-
var result =
|
25690
|
-
if (result == null &&
|
25691
|
-
options.partials[options.name] =
|
25714
|
+
var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
|
25715
|
+
if (result == null && env.compile) {
|
25716
|
+
options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
|
25692
25717
|
result = options.partials[options.name](context, extendedOptions);
|
25693
25718
|
}
|
25694
25719
|
if (result != null) {
|
@@ -25773,7 +25798,7 @@ var require_runtime = __commonJS({
|
|
25773
25798
|
},
|
25774
25799
|
// An empty object to use as replacement for null-contexts
|
25775
25800
|
nullContext: Object.seal({}),
|
25776
|
-
noop:
|
25801
|
+
noop: env.VM.noop,
|
25777
25802
|
compilerInfo: templateSpec.compiler
|
25778
25803
|
};
|
25779
25804
|
function ret(context) {
|
@@ -25800,14 +25825,14 @@ var require_runtime = __commonJS({
|
|
25800
25825
|
ret.isTop = true;
|
25801
25826
|
ret._setup = function(options) {
|
25802
25827
|
if (!options.partial) {
|
25803
|
-
var mergedHelpers = Utils.extend({},
|
25828
|
+
var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
|
25804
25829
|
wrapHelpersToPassLookupProperty(mergedHelpers, container);
|
25805
25830
|
container.helpers = mergedHelpers;
|
25806
25831
|
if (templateSpec.usePartial) {
|
25807
|
-
container.partials = container.mergeIfNeeded(options.partials,
|
25832
|
+
container.partials = container.mergeIfNeeded(options.partials, env.partials);
|
25808
25833
|
}
|
25809
25834
|
if (templateSpec.usePartial || templateSpec.useDecorators) {
|
25810
|
-
container.decorators = Utils.extend({},
|
25835
|
+
container.decorators = Utils.extend({}, env.decorators, options.decorators);
|
25811
25836
|
}
|
25812
25837
|
container.hooks = {};
|
25813
25838
|
container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
|
@@ -27609,7 +27634,7 @@ var require_compiler = __commonJS({
|
|
27609
27634
|
}
|
27610
27635
|
}
|
27611
27636
|
};
|
27612
|
-
function precompile(input, options,
|
27637
|
+
function precompile(input, options, env) {
|
27613
27638
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
27614
27639
|
throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
|
27615
27640
|
}
|
@@ -27620,10 +27645,10 @@ var require_compiler = __commonJS({
|
|
27620
27645
|
if (options.compat) {
|
27621
27646
|
options.useDepths = true;
|
27622
27647
|
}
|
27623
|
-
var ast =
|
27624
|
-
return new
|
27648
|
+
var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
|
27649
|
+
return new env.JavaScriptCompiler().compile(environment, options);
|
27625
27650
|
}
|
27626
|
-
function compile3(input, options,
|
27651
|
+
function compile3(input, options, env) {
|
27627
27652
|
if (options === void 0)
|
27628
27653
|
options = {};
|
27629
27654
|
if (input == null || typeof input !== "string" && input.type !== "Program") {
|
@@ -27638,8 +27663,8 @@ var require_compiler = __commonJS({
|
|
27638
27663
|
}
|
27639
27664
|
var compiled = void 0;
|
27640
27665
|
function compileInput() {
|
27641
|
-
var ast =
|
27642
|
-
return
|
27666
|
+
var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
|
27667
|
+
return env.template(templateSpec);
|
27643
27668
|
}
|
27644
27669
|
function ret(context, execOptions) {
|
27645
27670
|
if (!compiled) {
|
@@ -32565,13 +32590,13 @@ var require_chalk = __commonJS({
|
|
32565
32590
|
c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
32566
32591
|
}
|
32567
32592
|
}
|
32568
|
-
function
|
32593
|
+
function translateLevel(e3) {
|
32569
32594
|
if (e3 === 0) {
|
32570
32595
|
return false;
|
32571
32596
|
}
|
32572
32597
|
return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
|
32573
32598
|
}
|
32574
|
-
function
|
32599
|
+
function supportsColor(e3, t3) {
|
32575
32600
|
if (c === 0) {
|
32576
32601
|
return 0;
|
32577
32602
|
}
|
@@ -32628,10 +32653,10 @@ var require_chalk = __commonJS({
|
|
32628
32653
|
return n3;
|
32629
32654
|
}
|
32630
32655
|
function getSupportLevel(e3) {
|
32631
|
-
const t3 =
|
32632
|
-
return
|
32656
|
+
const t3 = supportsColor(e3, e3 && e3.isTTY);
|
32657
|
+
return translateLevel(t3);
|
32633
32658
|
}
|
32634
|
-
e2.exports = { supportsColor: getSupportLevel, stdout:
|
32659
|
+
e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
|
32635
32660
|
}, 37: (e2) => {
|
32636
32661
|
"use strict";
|
32637
32662
|
e2.exports = require("os");
|
@@ -37557,7 +37582,7 @@ var require_innerFrom = __commonJS({
|
|
37557
37582
|
exports.fromIterable = fromIterable;
|
37558
37583
|
function fromAsyncIterable(asyncIterable) {
|
37559
37584
|
return new Observable_1.Observable(function(subscriber) {
|
37560
|
-
|
37585
|
+
process2(asyncIterable, subscriber).catch(function(err) {
|
37561
37586
|
return subscriber.error(err);
|
37562
37587
|
});
|
37563
37588
|
});
|
@@ -37567,7 +37592,7 @@ var require_innerFrom = __commonJS({
|
|
37567
37592
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
37568
37593
|
}
|
37569
37594
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
37570
|
-
function
|
37595
|
+
function process2(asyncIterable, subscriber) {
|
37571
37596
|
var asyncIterable_1, asyncIterable_1_1;
|
37572
37597
|
var e_2, _a2;
|
37573
37598
|
return __awaiter6(this, void 0, void 0, function() {
|
@@ -44848,11 +44873,11 @@ var require_signals = __commonJS({
|
|
44848
44873
|
var require_signal_exit = __commonJS({
|
44849
44874
|
"../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
44850
44875
|
"use strict";
|
44851
|
-
var
|
44852
|
-
var processOk = function(
|
44853
|
-
return
|
44876
|
+
var process2 = global.process;
|
44877
|
+
var processOk = function(process3) {
|
44878
|
+
return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
44854
44879
|
};
|
44855
|
-
if (!processOk(
|
44880
|
+
if (!processOk(process2)) {
|
44856
44881
|
module2.exports = function() {
|
44857
44882
|
return function() {
|
44858
44883
|
};
|
@@ -44860,15 +44885,15 @@ var require_signal_exit = __commonJS({
|
|
44860
44885
|
} else {
|
44861
44886
|
assert = require("assert");
|
44862
44887
|
signals = require_signals();
|
44863
|
-
isWin = /^win/i.test(
|
44888
|
+
isWin = /^win/i.test(process2.platform);
|
44864
44889
|
EE = require("events");
|
44865
44890
|
if (typeof EE !== "function") {
|
44866
44891
|
EE = EE.EventEmitter;
|
44867
44892
|
}
|
44868
|
-
if (
|
44869
|
-
emitter =
|
44893
|
+
if (process2.__signal_exit_emitter__) {
|
44894
|
+
emitter = process2.__signal_exit_emitter__;
|
44870
44895
|
} else {
|
44871
|
-
emitter =
|
44896
|
+
emitter = process2.__signal_exit_emitter__ = new EE();
|
44872
44897
|
emitter.count = 0;
|
44873
44898
|
emitter.emitted = {};
|
44874
44899
|
}
|
@@ -44905,12 +44930,12 @@ var require_signal_exit = __commonJS({
|
|
44905
44930
|
loaded = false;
|
44906
44931
|
signals.forEach(function(sig) {
|
44907
44932
|
try {
|
44908
|
-
|
44933
|
+
process2.removeListener(sig, sigListeners[sig]);
|
44909
44934
|
} catch (er) {
|
44910
44935
|
}
|
44911
44936
|
});
|
44912
|
-
|
44913
|
-
|
44937
|
+
process2.emit = originalProcessEmit;
|
44938
|
+
process2.reallyExit = originalProcessReallyExit;
|
44914
44939
|
emitter.count -= 1;
|
44915
44940
|
};
|
44916
44941
|
module2.exports.unload = unload;
|
@@ -44927,7 +44952,7 @@ var require_signal_exit = __commonJS({
|
|
44927
44952
|
if (!processOk(global.process)) {
|
44928
44953
|
return;
|
44929
44954
|
}
|
44930
|
-
var listeners =
|
44955
|
+
var listeners = process2.listeners(sig);
|
44931
44956
|
if (listeners.length === emitter.count) {
|
44932
44957
|
unload();
|
44933
44958
|
emit("exit", null, sig);
|
@@ -44935,7 +44960,7 @@ var require_signal_exit = __commonJS({
|
|
44935
44960
|
if (isWin && sig === "SIGHUP") {
|
44936
44961
|
sig = "SIGINT";
|
44937
44962
|
}
|
44938
|
-
|
44963
|
+
process2.kill(process2.pid, sig);
|
44939
44964
|
}
|
44940
44965
|
};
|
44941
44966
|
});
|
@@ -44951,36 +44976,36 @@ var require_signal_exit = __commonJS({
|
|
44951
44976
|
emitter.count += 1;
|
44952
44977
|
signals = signals.filter(function(sig) {
|
44953
44978
|
try {
|
44954
|
-
|
44979
|
+
process2.on(sig, sigListeners[sig]);
|
44955
44980
|
return true;
|
44956
44981
|
} catch (er) {
|
44957
44982
|
return false;
|
44958
44983
|
}
|
44959
44984
|
});
|
44960
|
-
|
44961
|
-
|
44985
|
+
process2.emit = processEmit;
|
44986
|
+
process2.reallyExit = processReallyExit;
|
44962
44987
|
};
|
44963
44988
|
module2.exports.load = load;
|
44964
|
-
originalProcessReallyExit =
|
44989
|
+
originalProcessReallyExit = process2.reallyExit;
|
44965
44990
|
processReallyExit = function processReallyExit2(code) {
|
44966
44991
|
if (!processOk(global.process)) {
|
44967
44992
|
return;
|
44968
44993
|
}
|
44969
|
-
|
44994
|
+
process2.exitCode = code || /* istanbul ignore next */
|
44970
44995
|
0;
|
44971
|
-
emit("exit",
|
44972
|
-
emit("afterexit",
|
44973
|
-
originalProcessReallyExit.call(
|
44996
|
+
emit("exit", process2.exitCode, null);
|
44997
|
+
emit("afterexit", process2.exitCode, null);
|
44998
|
+
originalProcessReallyExit.call(process2, process2.exitCode);
|
44974
44999
|
};
|
44975
|
-
originalProcessEmit =
|
45000
|
+
originalProcessEmit = process2.emit;
|
44976
45001
|
processEmit = function processEmit2(ev, arg) {
|
44977
45002
|
if (ev === "exit" && processOk(global.process)) {
|
44978
45003
|
if (arg !== void 0) {
|
44979
|
-
|
45004
|
+
process2.exitCode = arg;
|
44980
45005
|
}
|
44981
45006
|
var ret = originalProcessEmit.apply(this, arguments);
|
44982
|
-
emit("exit",
|
44983
|
-
emit("afterexit",
|
45007
|
+
emit("exit", process2.exitCode, null);
|
45008
|
+
emit("afterexit", process2.exitCode, null);
|
44984
45009
|
return ret;
|
44985
45010
|
} else {
|
44986
45011
|
return originalProcessEmit.apply(this, arguments);
|
@@ -68831,12 +68856,12 @@ function _define_property(obj, key, value) {
|
|
68831
68856
|
return obj;
|
68832
68857
|
}
|
68833
68858
|
|
68834
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
68859
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
68835
68860
|
var import_utils46 = require("@modern-js/utils");
|
68836
68861
|
var import_lodash6 = require("@modern-js/utils/lodash");
|
68837
68862
|
var import_comment_json = __toESM(require_src2());
|
68838
68863
|
|
68839
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
68864
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
68840
68865
|
var import_utils = require("@modern-js/utils");
|
68841
68866
|
async function canUseNvm() {
|
68842
68867
|
try {
|
@@ -68886,7 +68911,7 @@ async function canUsePnpm() {
|
|
68886
68911
|
}
|
68887
68912
|
}
|
68888
68913
|
|
68889
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
68914
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
68890
68915
|
var import_utils2 = require("@modern-js/utils");
|
68891
68916
|
function execaWithStreamLog(command, args, options) {
|
68892
68917
|
const promise = (0, import_utils2.execa)(command, args, {
|
@@ -68982,7 +69007,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
68982
69007
|
throw new Error("please install pnpm first");
|
68983
69008
|
}
|
68984
69009
|
|
68985
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
69010
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
68986
69011
|
var NpmAPI = class {
|
68987
69012
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
68988
69013
|
return npmInstall({
|
@@ -69011,7 +69036,7 @@ var NpmAPI = class {
|
|
69011
69036
|
}
|
69012
69037
|
};
|
69013
69038
|
|
69014
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
69039
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
69015
69040
|
var import_utils4 = require("@modern-js/utils");
|
69016
69041
|
async function canUseGit() {
|
69017
69042
|
try {
|
@@ -69086,7 +69111,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
69086
69111
|
});
|
69087
69112
|
}
|
69088
69113
|
|
69089
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
69114
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
69090
69115
|
var GitAPI = class {
|
69091
69116
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
69092
69117
|
const canUse = await canUseGit();
|
@@ -69138,7 +69163,7 @@ var GitAPI = class {
|
|
69138
69163
|
}
|
69139
69164
|
};
|
69140
69165
|
|
69141
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69166
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
|
69142
69167
|
var LoggerLevel;
|
69143
69168
|
(function(LoggerLevel2) {
|
69144
69169
|
LoggerLevel2["Error"] = "error";
|
@@ -69159,7 +69184,7 @@ var LevelPriority = [
|
|
69159
69184
|
LoggerLevel.Stream
|
69160
69185
|
];
|
69161
69186
|
|
69162
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69187
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
|
69163
69188
|
var import_utils6 = require("@modern-js/utils");
|
69164
69189
|
var Logger = class {
|
69165
69190
|
get currentLevelIndex() {
|
@@ -69220,23 +69245,23 @@ var Logger = class {
|
|
69220
69245
|
}
|
69221
69246
|
};
|
69222
69247
|
|
69223
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69248
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
69224
69249
|
var import_path7 = __toESM(require("path"));
|
69225
69250
|
|
69226
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69251
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
69227
69252
|
var import_path4 = __toESM(require("path"));
|
69228
69253
|
var import_events = require("events");
|
69229
69254
|
var import_utils11 = require("@modern-js/utils");
|
69230
69255
|
|
69231
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69256
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
69232
69257
|
var import_path2 = __toESM(require("path"));
|
69233
69258
|
var import_utils8 = require("@modern-js/utils");
|
69234
69259
|
|
69235
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69260
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
69236
69261
|
var import_path = __toESM(require("path"));
|
69237
69262
|
var import_utils7 = require("@modern-js/utils");
|
69238
69263
|
|
69239
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69264
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
|
69240
69265
|
var IMAGE_EXT_LIST = [
|
69241
69266
|
".jpg",
|
69242
69267
|
".jpeg",
|
@@ -69250,7 +69275,7 @@ var IMAGE_EXT_LIST = [
|
|
69250
69275
|
".wmf"
|
69251
69276
|
];
|
69252
69277
|
|
69253
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69278
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
69254
69279
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
69255
69280
|
var FsResource = class {
|
69256
69281
|
async value() {
|
@@ -69276,7 +69301,7 @@ var FsResource = class {
|
|
69276
69301
|
}
|
69277
69302
|
};
|
69278
69303
|
|
69279
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69304
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
69280
69305
|
var promisifyGlob = function(pattern, options) {
|
69281
69306
|
return new Promise((resolve, reject) => {
|
69282
69307
|
(0, import_utils8.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
|
@@ -69304,7 +69329,7 @@ var FsMaterial = class {
|
|
69304
69329
|
}
|
69305
69330
|
};
|
69306
69331
|
|
69307
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69332
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
69308
69333
|
var nodeRequire = (path18) => {
|
69309
69334
|
try {
|
69310
69335
|
const module2 = __non_webpack_require__(path18);
|
@@ -69321,11 +69346,11 @@ var nodeRequire = (path18) => {
|
|
69321
69346
|
}
|
69322
69347
|
};
|
69323
69348
|
|
69324
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69349
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
69325
69350
|
var import_path3 = __toESM(require("path"));
|
69326
69351
|
var import_utils10 = require("@modern-js/utils");
|
69327
69352
|
|
69328
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69353
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
69329
69354
|
var import_utils9 = require("@modern-js/utils");
|
69330
69355
|
async function fsExists(path18) {
|
69331
69356
|
try {
|
@@ -69336,7 +69361,7 @@ async function fsExists(path18) {
|
|
69336
69361
|
}
|
69337
69362
|
}
|
69338
69363
|
|
69339
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69364
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
69340
69365
|
var MaxTimes = 5;
|
69341
69366
|
async function getGeneratorDir(generator) {
|
69342
69367
|
let result = generator;
|
@@ -69355,7 +69380,7 @@ async function getGeneratorDir(generator) {
|
|
69355
69380
|
return result;
|
69356
69381
|
}
|
69357
69382
|
|
69358
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69383
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
69359
69384
|
var GeneratorCore = class {
|
69360
69385
|
get lifeCycleMethod() {
|
69361
69386
|
return {
|
@@ -69560,10 +69585,10 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
69560
69585
|
}
|
69561
69586
|
};
|
69562
69587
|
|
69563
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69588
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
69564
69589
|
var import_path6 = __toESM(require("path"));
|
69565
69590
|
|
69566
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69591
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
69567
69592
|
var import_path5 = __toESM(require("path"));
|
69568
69593
|
var import_utils12 = require("@modern-js/utils");
|
69569
69594
|
async function canUseYarn2() {
|
@@ -69644,7 +69669,7 @@ async function runInstall(targetDir, registryUrl) {
|
|
69644
69669
|
}
|
69645
69670
|
}
|
69646
69671
|
|
69647
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69672
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
69648
69673
|
async function timeoutPromise(promise, ms, reason = "Operation") {
|
69649
69674
|
let timeoutId = null;
|
69650
69675
|
const delayPromise = (ms2) => new Promise((resolve) => {
|
@@ -69666,18 +69691,18 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
|
|
69666
69691
|
}
|
69667
69692
|
}
|
69668
69693
|
|
69669
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
69694
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
69670
69695
|
var import_os = __toESM(require("os"));
|
69671
69696
|
var import_utils38 = require("@modern-js/utils");
|
69672
69697
|
|
69673
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
69698
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/bind.js
|
69674
69699
|
function bind(fn, thisArg) {
|
69675
69700
|
return function wrap() {
|
69676
69701
|
return fn.apply(thisArg, arguments);
|
69677
69702
|
};
|
69678
69703
|
}
|
69679
69704
|
|
69680
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
69705
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/utils.js
|
69681
69706
|
var { toString } = Object.prototype;
|
69682
69707
|
var { getPrototypeOf } = Object;
|
69683
69708
|
var kindOf = ((cache) => (thing) => {
|
@@ -70036,7 +70061,7 @@ var utils_default = {
|
|
70036
70061
|
isThenable
|
70037
70062
|
};
|
70038
70063
|
|
70039
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70064
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosError.js
|
70040
70065
|
function AxiosError(message, code, config, request, response) {
|
70041
70066
|
Error.call(this);
|
70042
70067
|
if (Error.captureStackTrace) {
|
@@ -70108,11 +70133,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
70108
70133
|
};
|
70109
70134
|
var AxiosError_default = AxiosError;
|
70110
70135
|
|
70111
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70136
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/classes/FormData.js
|
70112
70137
|
var import_form_data = __toESM(require_form_data());
|
70113
70138
|
var FormData_default = import_form_data.default;
|
70114
70139
|
|
70115
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70140
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toFormData.js
|
70116
70141
|
function isVisitable(thing) {
|
70117
70142
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
70118
70143
|
}
|
@@ -70227,7 +70252,7 @@ function toFormData(obj, formData, options) {
|
|
70227
70252
|
}
|
70228
70253
|
var toFormData_default = toFormData;
|
70229
70254
|
|
70230
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70255
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
70231
70256
|
function encode(str) {
|
70232
70257
|
const charMap = {
|
70233
70258
|
"!": "%21",
|
@@ -70260,7 +70285,7 @@ prototype2.toString = function toString2(encoder) {
|
|
70260
70285
|
};
|
70261
70286
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
70262
70287
|
|
70263
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70288
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/buildURL.js
|
70264
70289
|
function encode2(val) {
|
70265
70290
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
70266
70291
|
}
|
@@ -70286,7 +70311,7 @@ function buildURL(url2, params, options) {
|
|
70286
70311
|
return url2;
|
70287
70312
|
}
|
70288
70313
|
|
70289
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70314
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/InterceptorManager.js
|
70290
70315
|
var InterceptorManager = class {
|
70291
70316
|
constructor() {
|
70292
70317
|
this.handlers = [];
|
@@ -70350,18 +70375,18 @@ var InterceptorManager = class {
|
|
70350
70375
|
};
|
70351
70376
|
var InterceptorManager_default = InterceptorManager;
|
70352
70377
|
|
70353
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70378
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/defaults/transitional.js
|
70354
70379
|
var transitional_default = {
|
70355
70380
|
silentJSONParsing: true,
|
70356
70381
|
forcedJSONParsing: true,
|
70357
70382
|
clarifyTimeoutError: false
|
70358
70383
|
};
|
70359
70384
|
|
70360
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70385
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
70361
70386
|
var import_url = __toESM(require("url"));
|
70362
70387
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
70363
70388
|
|
70364
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70389
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/index.js
|
70365
70390
|
var node_default = {
|
70366
70391
|
isNode: true,
|
70367
70392
|
classes: {
|
@@ -70372,11 +70397,33 @@ var node_default = {
|
|
70372
70397
|
protocols: ["http", "https", "file", "data"]
|
70373
70398
|
};
|
70374
70399
|
|
70375
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70400
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/common/utils.js
|
70401
|
+
var utils_exports = {};
|
70402
|
+
__export(utils_exports, {
|
70403
|
+
hasBrowserEnv: () => hasBrowserEnv,
|
70404
|
+
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
70405
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
|
70406
|
+
});
|
70407
|
+
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
70408
|
+
var hasStandardBrowserEnv = ((product) => {
|
70409
|
+
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
70410
|
+
})(typeof navigator !== "undefined" && navigator.product);
|
70411
|
+
var hasStandardBrowserWebWorkerEnv = (() => {
|
70412
|
+
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
70413
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
70414
|
+
})();
|
70415
|
+
|
70416
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/index.js
|
70417
|
+
var platform_default = {
|
70418
|
+
...utils_exports,
|
70419
|
+
...node_default
|
70420
|
+
};
|
70421
|
+
|
70422
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
70376
70423
|
function toURLEncodedForm(data, options) {
|
70377
|
-
return toFormData_default(data, new
|
70424
|
+
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
70378
70425
|
visitor: function(value, key, path18, helpers) {
|
70379
|
-
if (
|
70426
|
+
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
70380
70427
|
this.append(key, value.toString("base64"));
|
70381
70428
|
return false;
|
70382
70429
|
}
|
@@ -70385,7 +70432,7 @@ function toURLEncodedForm(data, options) {
|
|
70385
70432
|
}, options));
|
70386
70433
|
}
|
70387
70434
|
|
70388
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70435
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToJSON.js
|
70389
70436
|
function parsePropPath(name) {
|
70390
70437
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
70391
70438
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
@@ -70406,6 +70453,8 @@ function arrayToObject(arr) {
|
|
70406
70453
|
function formDataToJSON(formData) {
|
70407
70454
|
function buildPath(path18, value, target, index) {
|
70408
70455
|
let name = path18[index++];
|
70456
|
+
if (name === "__proto__")
|
70457
|
+
return true;
|
70409
70458
|
const isNumericKey = Number.isFinite(+name);
|
70410
70459
|
const isLast = index >= path18.length;
|
70411
70460
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
@@ -70437,7 +70486,7 @@ function formDataToJSON(formData) {
|
|
70437
70486
|
}
|
70438
70487
|
var formDataToJSON_default = formDataToJSON;
|
70439
70488
|
|
70440
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70489
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/defaults/index.js
|
70441
70490
|
function stringifySafely(rawValue, parser, encoder) {
|
70442
70491
|
if (utils_default.isString(rawValue)) {
|
70443
70492
|
try {
|
@@ -70463,9 +70512,6 @@ var defaults = {
|
|
70463
70512
|
}
|
70464
70513
|
const isFormData2 = utils_default.isFormData(data);
|
70465
70514
|
if (isFormData2) {
|
70466
|
-
if (!hasJSONContentType) {
|
70467
|
-
return data;
|
70468
|
-
}
|
70469
70515
|
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
70470
70516
|
}
|
70471
70517
|
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
|
@@ -70528,8 +70574,8 @@ var defaults = {
|
|
70528
70574
|
maxContentLength: -1,
|
70529
70575
|
maxBodyLength: -1,
|
70530
70576
|
env: {
|
70531
|
-
FormData:
|
70532
|
-
Blob:
|
70577
|
+
FormData: platform_default.classes.FormData,
|
70578
|
+
Blob: platform_default.classes.Blob
|
70533
70579
|
},
|
70534
70580
|
validateStatus: function validateStatus(status) {
|
70535
70581
|
return status >= 200 && status < 300;
|
@@ -70546,7 +70592,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
|
|
70546
70592
|
});
|
70547
70593
|
var defaults_default = defaults;
|
70548
70594
|
|
70549
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70595
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/parseHeaders.js
|
70550
70596
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
70551
70597
|
"age",
|
70552
70598
|
"authorization",
|
@@ -70591,7 +70637,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
70591
70637
|
return parsed;
|
70592
70638
|
};
|
70593
70639
|
|
70594
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70640
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosHeaders.js
|
70595
70641
|
var $internals = Symbol("internals");
|
70596
70642
|
function normalizeHeader(header) {
|
70597
70643
|
return header && String(header).trim().toLowerCase();
|
@@ -70809,7 +70855,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
70809
70855
|
utils_default.freezeMethods(AxiosHeaders);
|
70810
70856
|
var AxiosHeaders_default = AxiosHeaders;
|
70811
70857
|
|
70812
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70858
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/transformData.js
|
70813
70859
|
function transformData(fns, response) {
|
70814
70860
|
const config = this || defaults_default;
|
70815
70861
|
const context = response || config;
|
@@ -70822,12 +70868,12 @@ function transformData(fns, response) {
|
|
70822
70868
|
return data;
|
70823
70869
|
}
|
70824
70870
|
|
70825
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70871
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/isCancel.js
|
70826
70872
|
function isCancel(value) {
|
70827
70873
|
return !!(value && value.__CANCEL__);
|
70828
70874
|
}
|
70829
70875
|
|
70830
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70876
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/CanceledError.js
|
70831
70877
|
function CanceledError(message, config, request) {
|
70832
70878
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
70833
70879
|
this.name = "CanceledError";
|
@@ -70837,7 +70883,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
70837
70883
|
});
|
70838
70884
|
var CanceledError_default = CanceledError;
|
70839
70885
|
|
70840
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70886
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/settle.js
|
70841
70887
|
function settle(resolve, reject, response) {
|
70842
70888
|
const validateStatus2 = response.config.validateStatus;
|
70843
70889
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
@@ -70853,17 +70899,17 @@ function settle(resolve, reject, response) {
|
|
70853
70899
|
}
|
70854
70900
|
}
|
70855
70901
|
|
70856
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70902
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
70857
70903
|
function isAbsoluteURL(url2) {
|
70858
70904
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
70859
70905
|
}
|
70860
70906
|
|
70861
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70907
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/combineURLs.js
|
70862
70908
|
function combineURLs(baseURL, relativeURL) {
|
70863
|
-
return relativeURL ? baseURL.replace(
|
70909
|
+
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
70864
70910
|
}
|
70865
70911
|
|
70866
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70912
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/buildFullPath.js
|
70867
70913
|
function buildFullPath(baseURL, requestedURL) {
|
70868
70914
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
70869
70915
|
return combineURLs(baseURL, requestedURL);
|
@@ -70871,7 +70917,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
70871
70917
|
return requestedURL;
|
70872
70918
|
}
|
70873
70919
|
|
70874
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70920
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
|
70875
70921
|
var import_proxy_from_env = __toESM(require_proxy_from_env());
|
70876
70922
|
var import_http = __toESM(require("http"));
|
70877
70923
|
var import_https = __toESM(require("https"));
|
@@ -70879,19 +70925,19 @@ var import_util2 = __toESM(require("util"));
|
|
70879
70925
|
var import_follow_redirects = __toESM(require_follow_redirects());
|
70880
70926
|
var import_zlib = __toESM(require("zlib"));
|
70881
70927
|
|
70882
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70883
|
-
var VERSION = "1.6.
|
70928
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/env/data.js
|
70929
|
+
var VERSION = "1.6.7";
|
70884
70930
|
|
70885
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70931
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/parseProtocol.js
|
70886
70932
|
function parseProtocol(url2) {
|
70887
70933
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
70888
70934
|
return match && match[1] || "";
|
70889
70935
|
}
|
70890
70936
|
|
70891
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70937
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/fromDataURI.js
|
70892
70938
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
70893
70939
|
function fromDataURI(uri, asBlob, options) {
|
70894
|
-
const _Blob = options && options.Blob ||
|
70940
|
+
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
70895
70941
|
const protocol = parseProtocol(uri);
|
70896
70942
|
if (asBlob === void 0 && _Blob) {
|
70897
70943
|
asBlob = true;
|
@@ -70917,13 +70963,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
70917
70963
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
70918
70964
|
}
|
70919
70965
|
|
70920
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70966
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
|
70921
70967
|
var import_stream4 = __toESM(require("stream"));
|
70922
70968
|
|
70923
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70969
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
70924
70970
|
var import_stream = __toESM(require("stream"));
|
70925
70971
|
|
70926
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70972
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/throttle.js
|
70927
70973
|
function throttle(fn, freq) {
|
70928
70974
|
let timestamp = 0;
|
70929
70975
|
const threshold = 1e3 / freq;
|
@@ -70949,7 +70995,7 @@ function throttle(fn, freq) {
|
|
70949
70995
|
}
|
70950
70996
|
var throttle_default = throttle;
|
70951
70997
|
|
70952
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
70998
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/speedometer.js
|
70953
70999
|
function speedometer(samplesCount, min) {
|
70954
71000
|
samplesCount = samplesCount || 10;
|
70955
71001
|
const bytes = new Array(samplesCount);
|
@@ -70985,7 +71031,7 @@ function speedometer(samplesCount, min) {
|
|
70985
71031
|
}
|
70986
71032
|
var speedometer_default = speedometer;
|
70987
71033
|
|
70988
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71034
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
70989
71035
|
var kInternals = Symbol("internals");
|
70990
71036
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
70991
71037
|
constructor(options) {
|
@@ -71135,14 +71181,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
71135
71181
|
};
|
71136
71182
|
var AxiosTransformStream_default = AxiosTransformStream;
|
71137
71183
|
|
71138
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71184
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
|
71139
71185
|
var import_events2 = __toESM(require("events"));
|
71140
71186
|
|
71141
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71187
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToStream.js
|
71142
71188
|
var import_util = require("util");
|
71143
71189
|
var import_stream2 = require("stream");
|
71144
71190
|
|
71145
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71191
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/readBlob.js
|
71146
71192
|
var { asyncIterator } = Symbol;
|
71147
71193
|
var readBlob = async function* (blob) {
|
71148
71194
|
if (blob.stream) {
|
@@ -71157,7 +71203,7 @@ var readBlob = async function* (blob) {
|
|
71157
71203
|
};
|
71158
71204
|
var readBlob_default = readBlob;
|
71159
71205
|
|
71160
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71206
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToStream.js
|
71161
71207
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
71162
71208
|
var textEncoder = new import_util.TextEncoder();
|
71163
71209
|
var CRLF = "\r\n";
|
@@ -71236,7 +71282,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
71236
71282
|
};
|
71237
71283
|
var formDataToStream_default = formDataToStream;
|
71238
71284
|
|
71239
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71285
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
71240
71286
|
var import_stream3 = __toESM(require("stream"));
|
71241
71287
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
71242
71288
|
__transform(chunk, encoding, callback) {
|
@@ -71258,7 +71304,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
71258
71304
|
};
|
71259
71305
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
71260
71306
|
|
71261
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71307
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/callbackify.js
|
71262
71308
|
var callbackify = (fn, reducer) => {
|
71263
71309
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
71264
71310
|
const cb = args.pop();
|
@@ -71273,7 +71319,7 @@ var callbackify = (fn, reducer) => {
|
|
71273
71319
|
};
|
71274
71320
|
var callbackify_default = callbackify;
|
71275
71321
|
|
71276
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71322
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
|
71277
71323
|
var zlibOptions = {
|
71278
71324
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
71279
71325
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
@@ -71285,15 +71331,15 @@ var brotliOptions = {
|
|
71285
71331
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
71286
71332
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
71287
71333
|
var isHttps = /https:?/;
|
71288
|
-
var supportedProtocols =
|
71334
|
+
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
71289
71335
|
return protocol + ":";
|
71290
71336
|
});
|
71291
|
-
function dispatchBeforeRedirect(options) {
|
71337
|
+
function dispatchBeforeRedirect(options, responseDetails) {
|
71292
71338
|
if (options.beforeRedirects.proxy) {
|
71293
71339
|
options.beforeRedirects.proxy(options);
|
71294
71340
|
}
|
71295
71341
|
if (options.beforeRedirects.config) {
|
71296
|
-
options.beforeRedirects.config(options);
|
71342
|
+
options.beforeRedirects.config(options, responseDetails);
|
71297
71343
|
}
|
71298
71344
|
}
|
71299
71345
|
function setProxy(options, configProxy, location) {
|
@@ -71373,6 +71419,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
71373
71419
|
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
71374
71420
|
lookup = (hostname, opt, cb) => {
|
71375
71421
|
_lookup(hostname, opt, (err, arg0, arg1) => {
|
71422
|
+
if (err) {
|
71423
|
+
return cb(err);
|
71424
|
+
}
|
71376
71425
|
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
71377
71426
|
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
71378
71427
|
});
|
@@ -71769,57 +71818,44 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
71769
71818
|
});
|
71770
71819
|
};
|
71771
71820
|
|
71772
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71773
|
-
var cookies_default =
|
71821
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/cookies.js
|
71822
|
+
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
71774
71823
|
// Standard browser envs support document.cookie
|
71775
|
-
|
71776
|
-
|
71777
|
-
|
71778
|
-
|
71779
|
-
|
71780
|
-
|
71781
|
-
|
71782
|
-
|
71783
|
-
|
71784
|
-
|
71785
|
-
|
71786
|
-
|
71787
|
-
|
71788
|
-
|
71789
|
-
|
71790
|
-
|
71791
|
-
|
71792
|
-
document.cookie = cookie.join("; ");
|
71793
|
-
},
|
71794
|
-
read: function read(name) {
|
71795
|
-
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
71796
|
-
return match ? decodeURIComponent(match[3]) : null;
|
71797
|
-
},
|
71798
|
-
remove: function remove(name) {
|
71799
|
-
this.write(name, "", Date.now() - 864e5);
|
71800
|
-
}
|
71801
|
-
};
|
71802
|
-
}()
|
71824
|
+
{
|
71825
|
+
write(name, value, expires, path18, domain, secure) {
|
71826
|
+
const cookie = [name + "=" + encodeURIComponent(value)];
|
71827
|
+
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
71828
|
+
utils_default.isString(path18) && cookie.push("path=" + path18);
|
71829
|
+
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
71830
|
+
secure === true && cookie.push("secure");
|
71831
|
+
document.cookie = cookie.join("; ");
|
71832
|
+
},
|
71833
|
+
read(name) {
|
71834
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
71835
|
+
return match ? decodeURIComponent(match[3]) : null;
|
71836
|
+
},
|
71837
|
+
remove(name) {
|
71838
|
+
this.write(name, "", Date.now() - 864e5);
|
71839
|
+
}
|
71840
|
+
}
|
71803
71841
|
) : (
|
71804
|
-
// Non
|
71805
|
-
|
71806
|
-
|
71807
|
-
|
71808
|
-
|
71809
|
-
|
71810
|
-
|
71811
|
-
|
71812
|
-
|
71813
|
-
|
71814
|
-
};
|
71815
|
-
}()
|
71842
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
71843
|
+
{
|
71844
|
+
write() {
|
71845
|
+
},
|
71846
|
+
read() {
|
71847
|
+
return null;
|
71848
|
+
},
|
71849
|
+
remove() {
|
71850
|
+
}
|
71851
|
+
}
|
71816
71852
|
);
|
71817
71853
|
|
71818
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71819
|
-
var isURLSameOrigin_default =
|
71854
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
71855
|
+
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
|
71820
71856
|
// Standard browser envs have full support of the APIs needed to test
|
71821
71857
|
// whether the request URL is of the same origin as current location.
|
71822
|
-
function
|
71858
|
+
function standardBrowserEnv() {
|
71823
71859
|
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
71824
71860
|
const urlParsingNode = document.createElement("a");
|
71825
71861
|
let originURL;
|
@@ -71849,14 +71885,14 @@ var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
|
|
71849
71885
|
}()
|
71850
71886
|
) : (
|
71851
71887
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
71852
|
-
function
|
71888
|
+
function nonStandardBrowserEnv() {
|
71853
71889
|
return function isURLSameOrigin() {
|
71854
71890
|
return true;
|
71855
71891
|
};
|
71856
71892
|
}()
|
71857
71893
|
);
|
71858
71894
|
|
71859
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
71895
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/xhr.js
|
71860
71896
|
function progressEventReducer(listener, isDownloadStream) {
|
71861
71897
|
let bytesNotified = 0;
|
71862
71898
|
const _speedometer = speedometer_default(50, 250);
|
@@ -71885,7 +71921,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
71885
71921
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
71886
71922
|
let requestData = config.data;
|
71887
71923
|
const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
|
71888
|
-
|
71924
|
+
let { responseType, withXSRFToken } = config;
|
71889
71925
|
let onCanceled;
|
71890
71926
|
function done() {
|
71891
71927
|
if (config.cancelToken) {
|
@@ -71897,12 +71933,11 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
71897
71933
|
}
|
71898
71934
|
let contentType;
|
71899
71935
|
if (utils_default.isFormData(requestData)) {
|
71900
|
-
if (
|
71936
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
71901
71937
|
requestHeaders.setContentType(false);
|
71902
|
-
} else if (
|
71903
|
-
|
71904
|
-
|
71905
|
-
requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
|
71938
|
+
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
71939
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
71940
|
+
requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
71906
71941
|
}
|
71907
71942
|
}
|
71908
71943
|
let request = new XMLHttpRequest();
|
@@ -71977,10 +72012,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
71977
72012
|
));
|
71978
72013
|
request = null;
|
71979
72014
|
};
|
71980
|
-
if (
|
71981
|
-
|
71982
|
-
if (
|
71983
|
-
|
72015
|
+
if (platform_default.hasStandardBrowserEnv) {
|
72016
|
+
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
|
72017
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
|
72018
|
+
const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
|
72019
|
+
if (xsrfValue) {
|
72020
|
+
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
72021
|
+
}
|
71984
72022
|
}
|
71985
72023
|
}
|
71986
72024
|
requestData === void 0 && requestHeaders.setContentType(null);
|
@@ -72016,7 +72054,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
72016
72054
|
}
|
72017
72055
|
}
|
72018
72056
|
const protocol = parseProtocol(fullPath);
|
72019
|
-
if (protocol &&
|
72057
|
+
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
72020
72058
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
72021
72059
|
return;
|
72022
72060
|
}
|
@@ -72024,7 +72062,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
72024
72062
|
});
|
72025
72063
|
};
|
72026
72064
|
|
72027
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72065
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/adapters.js
|
72028
72066
|
var knownAdapters = {
|
72029
72067
|
http: http_default,
|
72030
72068
|
xhr: xhr_default
|
@@ -72077,7 +72115,7 @@ var adapters_default = {
|
|
72077
72115
|
adapters: knownAdapters
|
72078
72116
|
};
|
72079
72117
|
|
72080
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72118
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/dispatchRequest.js
|
72081
72119
|
function throwIfCancellationRequested(config) {
|
72082
72120
|
if (config.cancelToken) {
|
72083
72121
|
config.cancelToken.throwIfRequested();
|
@@ -72122,7 +72160,7 @@ function dispatchRequest(config) {
|
|
72122
72160
|
});
|
72123
72161
|
}
|
72124
72162
|
|
72125
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72163
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/mergeConfig.js
|
72126
72164
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
|
72127
72165
|
function mergeConfig(config1, config2) {
|
72128
72166
|
config2 = config2 || {};
|
@@ -72174,6 +72212,7 @@ function mergeConfig(config1, config2) {
|
|
72174
72212
|
timeout: defaultToConfig2,
|
72175
72213
|
timeoutMessage: defaultToConfig2,
|
72176
72214
|
withCredentials: defaultToConfig2,
|
72215
|
+
withXSRFToken: defaultToConfig2,
|
72177
72216
|
adapter: defaultToConfig2,
|
72178
72217
|
responseType: defaultToConfig2,
|
72179
72218
|
xsrfCookieName: defaultToConfig2,
|
@@ -72201,7 +72240,7 @@ function mergeConfig(config1, config2) {
|
|
72201
72240
|
return config;
|
72202
72241
|
}
|
72203
72242
|
|
72204
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72243
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/validator.js
|
72205
72244
|
var validators = {};
|
72206
72245
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
72207
72246
|
validators[type] = function validator(thing) {
|
@@ -72259,7 +72298,7 @@ var validator_default = {
|
|
72259
72298
|
validators
|
72260
72299
|
};
|
72261
72300
|
|
72262
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72301
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/Axios.js
|
72263
72302
|
var validators2 = validator_default.validators;
|
72264
72303
|
var Axios = class {
|
72265
72304
|
constructor(instanceConfig) {
|
@@ -72277,7 +72316,24 @@ var Axios = class {
|
|
72277
72316
|
*
|
72278
72317
|
* @returns {Promise} The Promise to be fulfilled
|
72279
72318
|
*/
|
72280
|
-
request(configOrUrl, config) {
|
72319
|
+
async request(configOrUrl, config) {
|
72320
|
+
try {
|
72321
|
+
return await this._request(configOrUrl, config);
|
72322
|
+
} catch (err) {
|
72323
|
+
if (err instanceof Error) {
|
72324
|
+
let dummy;
|
72325
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
|
72326
|
+
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
72327
|
+
if (!err.stack) {
|
72328
|
+
err.stack = stack;
|
72329
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
72330
|
+
err.stack += "\n" + stack;
|
72331
|
+
}
|
72332
|
+
}
|
72333
|
+
throw err;
|
72334
|
+
}
|
72335
|
+
}
|
72336
|
+
_request(configOrUrl, config) {
|
72281
72337
|
if (typeof configOrUrl === "string") {
|
72282
72338
|
config = config || {};
|
72283
72339
|
config.url = configOrUrl;
|
@@ -72402,7 +72458,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
72402
72458
|
});
|
72403
72459
|
var Axios_default = Axios;
|
72404
72460
|
|
72405
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72461
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/CancelToken.js
|
72406
72462
|
var CancelToken = class _CancelToken {
|
72407
72463
|
constructor(executor) {
|
72408
72464
|
if (typeof executor !== "function") {
|
@@ -72492,19 +72548,19 @@ var CancelToken = class _CancelToken {
|
|
72492
72548
|
};
|
72493
72549
|
var CancelToken_default = CancelToken;
|
72494
72550
|
|
72495
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72551
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/spread.js
|
72496
72552
|
function spread(callback) {
|
72497
72553
|
return function wrap(arr) {
|
72498
72554
|
return callback.apply(null, arr);
|
72499
72555
|
};
|
72500
72556
|
}
|
72501
72557
|
|
72502
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72558
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isAxiosError.js
|
72503
72559
|
function isAxiosError(payload) {
|
72504
72560
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
72505
72561
|
}
|
72506
72562
|
|
72507
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72563
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/HttpStatusCode.js
|
72508
72564
|
var HttpStatusCode = {
|
72509
72565
|
Continue: 100,
|
72510
72566
|
SwitchingProtocols: 101,
|
@@ -72575,7 +72631,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
72575
72631
|
});
|
72576
72632
|
var HttpStatusCode_default = HttpStatusCode;
|
72577
72633
|
|
72578
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72634
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/axios.js
|
72579
72635
|
function createInstance(defaultConfig) {
|
72580
72636
|
const context = new Axios_default(defaultConfig);
|
72581
72637
|
const instance = bind(Axios_default.prototype.request, context);
|
@@ -72608,7 +72664,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
72608
72664
|
axios.default = axios;
|
72609
72665
|
var axios_default = axios;
|
72610
72666
|
|
72611
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
72667
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/index.js
|
72612
72668
|
var {
|
72613
72669
|
Axios: Axios2,
|
72614
72670
|
AxiosError: AxiosError2,
|
@@ -72628,17 +72684,17 @@ var {
|
|
72628
72684
|
mergeConfig: mergeConfig2
|
72629
72685
|
} = axios_default;
|
72630
72686
|
|
72631
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72687
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
72632
72688
|
var import_tar = __toESM(require_tar());
|
72633
72689
|
|
72634
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72690
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
72635
72691
|
var import_utils36 = require("@modern-js/utils");
|
72636
72692
|
|
72637
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72693
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
72638
72694
|
var NPM_API_TIMEOUT = 3e4;
|
72639
72695
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
72640
72696
|
|
72641
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72697
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
72642
72698
|
async function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
72643
72699
|
const { registryUrl } = options || {};
|
72644
72700
|
const params = [
|
@@ -72661,7 +72717,7 @@ async function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
72661
72717
|
}
|
72662
72718
|
}
|
72663
72719
|
|
72664
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72720
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
72665
72721
|
var import_utils37 = require("@modern-js/utils");
|
72666
72722
|
async function getNpmVersion(packageName, options) {
|
72667
72723
|
const { version, registryUrl } = options || {};
|
@@ -72683,7 +72739,7 @@ async function getNpmVersion(packageName, options) {
|
|
72683
72739
|
return stdout;
|
72684
72740
|
}
|
72685
72741
|
|
72686
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72742
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
72687
72743
|
async function isValidCache(cacheDir) {
|
72688
72744
|
if (await fsExists(`${cacheDir}/.codesmith.completed`)) {
|
72689
72745
|
const preCacheTimeStr = await import_utils38.fs.readFile(`${cacheDir}/.codesmith.completed`, {
|
@@ -72763,7 +72819,7 @@ async function downloadPackage(pkgName, pkgVersion = "latest", options = {}) {
|
|
72763
72819
|
return targetDir;
|
72764
72820
|
}
|
72765
72821
|
|
72766
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72822
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
72767
72823
|
var import_utils39 = require("@modern-js/utils");
|
72768
72824
|
function getPackageInfo(packageName) {
|
72769
72825
|
if (!packageName) {
|
@@ -72788,7 +72844,7 @@ function getPackageInfo(packageName) {
|
|
72788
72844
|
};
|
72789
72845
|
}
|
72790
72846
|
|
72791
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72847
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
72792
72848
|
var MaterialsManager = class {
|
72793
72849
|
loadLocalGenerator(generator) {
|
72794
72850
|
if (!import_path6.default.isAbsolute(generator)) {
|
@@ -72819,7 +72875,7 @@ var MaterialsManager = class {
|
|
72819
72875
|
}
|
72820
72876
|
};
|
72821
72877
|
|
72822
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
72878
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
72823
72879
|
var CodeSmith = class {
|
72824
72880
|
async forge({ tasks, pwd }) {
|
72825
72881
|
var _this_logger_timing, _this_logger;
|
@@ -72863,7 +72919,7 @@ var CodeSmith = class {
|
|
72863
72919
|
}
|
72864
72920
|
};
|
72865
72921
|
|
72866
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
72922
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
72867
72923
|
var import_handlebars = __toESM(require_lib());
|
72868
72924
|
function renderString(template, fullData, registers) {
|
72869
72925
|
const helpers = {
|
@@ -72877,7 +72933,7 @@ function renderString(template, fullData, registers) {
|
|
72877
72933
|
return import_handlebars.default.compile(template)(fullData) || "";
|
72878
72934
|
}
|
72879
72935
|
|
72880
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
72936
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
72881
72937
|
var HandlebarsAPI = class {
|
72882
72938
|
async registerHelp(helpers) {
|
72883
72939
|
this.registers.helpers = {
|
@@ -72927,13 +72983,13 @@ var HandlebarsAPI = class {
|
|
72927
72983
|
}
|
72928
72984
|
};
|
72929
72985
|
|
72930
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
72986
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
72931
72987
|
var import_ejs = __toESM(require_ejs());
|
72932
72988
|
function renderString2(template, fullData) {
|
72933
72989
|
return import_ejs.default.render(template, fullData) || "";
|
72934
72990
|
}
|
72935
72991
|
|
72936
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
72992
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
72937
72993
|
var EjsAPI = class {
|
72938
72994
|
async renderTemplate(templateResource, target, parameters = {}) {
|
72939
72995
|
if (templateResource._type !== FS_RESOURCE) {
|
@@ -72966,7 +73022,7 @@ var EjsAPI = class {
|
|
72966
73022
|
}
|
72967
73023
|
};
|
72968
73024
|
|
72969
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
73025
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
72970
73026
|
var import_path8 = __toESM(require("path"));
|
72971
73027
|
var import_utils43 = require("@modern-js/utils");
|
72972
73028
|
var FsAPI = class {
|
@@ -72994,7 +73050,7 @@ var FsAPI = class {
|
|
72994
73050
|
}
|
72995
73051
|
};
|
72996
73052
|
|
72997
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
73053
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
|
72998
73054
|
var import_lodash2 = require("@modern-js/utils/lodash");
|
72999
73055
|
|
73000
73056
|
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
@@ -82629,10 +82685,10 @@ var Schema = (
|
|
82629
82685
|
}()
|
82630
82686
|
);
|
82631
82687
|
|
82632
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
82688
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
82633
82689
|
var import_inquirer = __toESM(require_inquirer());
|
82634
82690
|
|
82635
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
82691
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
82636
82692
|
var import_lodash = require("@modern-js/utils/lodash");
|
82637
82693
|
function validateSchema(schema) {
|
82638
82694
|
const { type, properties } = schema;
|
@@ -82724,7 +82780,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
82724
82780
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
82725
82781
|
}
|
82726
82782
|
|
82727
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
82783
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
82728
82784
|
var compileRule = (rule, scope) => {
|
82729
82785
|
const state = Schema.compile(rule, {
|
82730
82786
|
$self: {},
|
@@ -82828,7 +82884,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
82828
82884
|
return answers;
|
82829
82885
|
}
|
82830
82886
|
|
82831
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
82887
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
82832
82888
|
var CLIReader = class {
|
82833
82889
|
getAnswers() {
|
82834
82890
|
return this.answers;
|
@@ -82859,7 +82915,7 @@ var CLIReader = class {
|
|
82859
82915
|
}
|
82860
82916
|
};
|
82861
82917
|
|
82862
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
82918
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
|
82863
82919
|
var FormilyAPI = class {
|
82864
82920
|
mergeAnswers(answers, configValue) {
|
82865
82921
|
const inputData = (0, import_lodash2.merge)(answers, configValue);
|
@@ -82882,7 +82938,7 @@ var FormilyAPI = class {
|
|
82882
82938
|
}
|
82883
82939
|
};
|
82884
82940
|
|
82885
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
82941
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
82886
82942
|
var import_inquirer3 = __toESM(require_inquirer2());
|
82887
82943
|
|
82888
82944
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
@@ -82948,7 +83004,7 @@ var I18n = class {
|
|
82948
83004
|
}
|
82949
83005
|
};
|
82950
83006
|
|
82951
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
83007
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
82952
83008
|
var ZH_LOCALE = {
|
82953
83009
|
environment: {
|
82954
83010
|
node_version: "请升级 Node 版本至 LIS",
|
@@ -82975,7 +83031,7 @@ var ZH_LOCALE = {
|
|
82975
83031
|
}
|
82976
83032
|
};
|
82977
83033
|
|
82978
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
83034
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
82979
83035
|
var EN_LOCALE = {
|
82980
83036
|
environment: {
|
82981
83037
|
node_version: "please upgrade node to lts version",
|
@@ -83002,14 +83058,14 @@ var EN_LOCALE = {
|
|
83002
83058
|
}
|
83003
83059
|
};
|
83004
83060
|
|
83005
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
83061
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
83006
83062
|
var i18n = new I18n();
|
83007
83063
|
var localeKeys = i18n.init("zh", {
|
83008
83064
|
zh: ZH_LOCALE,
|
83009
83065
|
en: EN_LOCALE
|
83010
83066
|
});
|
83011
83067
|
|
83012
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
83068
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
83013
83069
|
var import_lodash5 = require("@modern-js/utils/lodash");
|
83014
83070
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
83015
83071
|
for (const question of questions) {
|
@@ -83037,7 +83093,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
83037
83093
|
return questions;
|
83038
83094
|
}
|
83039
83095
|
|
83040
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
83096
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
83041
83097
|
var import_path10 = __toESM(require("path"));
|
83042
83098
|
var import_utils45 = require("@modern-js/utils");
|
83043
83099
|
var NODE_MAJOR_VERSION_MAP = {
|
@@ -83085,7 +83141,7 @@ async function checkUseNvm(cwd, logger2) {
|
|
83085
83141
|
}
|
83086
83142
|
}
|
83087
83143
|
|
83088
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
83144
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
83089
83145
|
var AppAPI = class {
|
83090
83146
|
async checkEnvironment(nodeVersion) {
|
83091
83147
|
if (import_utils46.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
@@ -83434,7 +83490,6 @@ var ZH_LOCALE2 = {
|
|
83434
83490
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
83435
83491
|
proxy: "启用「全局代理」",
|
83436
83492
|
swc: "启用「SWC 编译」",
|
83437
|
-
rspack: "启用「Rspack 构建」(实验性)",
|
83438
83493
|
module_doc: "启动「模块文档」功能"
|
83439
83494
|
},
|
83440
83495
|
element: {
|
@@ -83533,7 +83588,6 @@ var EN_LOCALE2 = {
|
|
83533
83588
|
polyfill: "Enable UA-based Polyfill Feature",
|
83534
83589
|
proxy: "Enable Global Proxy",
|
83535
83590
|
swc: "Enable SWC Compile",
|
83536
|
-
rspack: "Enable Rspack Build (experimental)",
|
83537
83591
|
module_doc: "Enable Module Doc"
|
83538
83592
|
},
|
83539
83593
|
element: {
|
@@ -83926,7 +83980,6 @@ var ActionFunction;
|
|
83926
83980
|
ActionFunction2["Polyfill"] = "polyfill";
|
83927
83981
|
ActionFunction2["Proxy"] = "proxy";
|
83928
83982
|
ActionFunction2["SWC"] = "swc";
|
83929
|
-
ActionFunction2["Rspack"] = "rspack";
|
83930
83983
|
ActionFunction2["ModuleDoc"] = "module_doc";
|
83931
83984
|
})(ActionFunction || (ActionFunction = {}));
|
83932
83985
|
var ActionRefactor;
|
@@ -83961,7 +84014,6 @@ var ActionFunctionText = {
|
|
83961
84014
|
["polyfill"]: () => i18n2.t(localeKeys2.action.function.polyfill),
|
83962
84015
|
["proxy"]: () => i18n2.t(localeKeys2.action.function.proxy),
|
83963
84016
|
["swc"]: () => i18n2.t(localeKeys2.action.function.swc),
|
83964
|
-
["rspack"]: () => i18n2.t(localeKeys2.action.function.rspack),
|
83965
84017
|
["module_doc"]: () => i18n2.t(localeKeys2.action.function.module_doc)
|
83966
84018
|
};
|
83967
84019
|
var ActionRefactorText = {
|
@@ -83975,7 +84027,6 @@ var MWAActionTypes = [
|
|
83975
84027
|
ActionType.Refactor
|
83976
84028
|
];
|
83977
84029
|
var MWAActionFunctions = [
|
83978
|
-
ActionFunction.Rspack,
|
83979
84030
|
ActionFunction.TailwindCSS,
|
83980
84031
|
ActionFunction.BFF,
|
83981
84032
|
ActionFunction.SSG,
|
@@ -84120,8 +84171,7 @@ var MWANewActionGenerators = {
|
|
84120
84171
|
[ActionFunction.SSG]: "@modern-js/ssg-generator",
|
84121
84172
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
84122
84173
|
[ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
84123
|
-
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
84124
|
-
[ActionFunction.Rspack]: "@modern-js/rspack-generator"
|
84174
|
+
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
84125
84175
|
},
|
84126
84176
|
[ActionType.Refactor]: {
|
84127
84177
|
[ActionRefactor.ReactRouter5]: "@modern-js/router-v5-generator"
|
@@ -84684,11 +84734,11 @@ var import_lodash14 = require("@modern-js/utils/lodash");
|
|
84684
84734
|
// ../../generator-plugin/dist/esm/context/file.js
|
84685
84735
|
var import_path13 = __toESM(require("path"));
|
84686
84736
|
|
84687
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
84737
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
84688
84738
|
var import_comment_json2 = __toESM(require_src2());
|
84689
84739
|
var declarationUpdate = __toESM(require_dist());
|
84690
84740
|
|
84691
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
84741
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
84692
84742
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
84693
84743
|
const originJsonValue = await resource.value();
|
84694
84744
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
@@ -84701,7 +84751,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
84701
84751
|
return newJsonString;
|
84702
84752
|
}
|
84703
84753
|
|
84704
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
84754
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
84705
84755
|
var JsonAPI = class {
|
84706
84756
|
async get(resource) {
|
84707
84757
|
const originJsonValue = await resource.value();
|