create-cloudflare 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1307 -942
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -5
- package/templates/chatgptPlugin/ts/__dot__gitignore +171 -0
- package/templates/chatgptPlugin/ts/package.json +1 -0
- package/templates/common/js/__dot__gitignore +172 -0
- package/templates/common/js/package.json +1 -0
- package/templates/common/ts/__dot__gitignore +172 -0
- package/templates/common/ts/package.json +1 -0
- package/templates/hello-world/js/__dot__gitignore +172 -0
- package/templates/hello-world/js/package.json +1 -0
- package/templates/hello-world/ts/__dot__gitignore +172 -0
- package/templates/hello-world/ts/package.json +1 -0
- package/templates/openapi/ts/__dot__gitignore +171 -0
- package/templates/openapi/ts/package.json +1 -0
- package/templates/queues/js/__dot__gitignore +172 -0
- package/templates/queues/js/package.json +1 -0
- package/templates/queues/ts/__dot__gitignore +172 -0
- package/templates/queues/ts/package.json +1 -0
- package/templates/scheduled/js/__dot__gitignore +172 -0
- package/templates/scheduled/js/package.json +1 -0
- package/templates/scheduled/js/wrangler.toml +1 -1
- package/templates/scheduled/ts/__dot__gitignore +172 -0
- package/templates/scheduled/ts/package.json +1 -0
package/dist/cli.js
CHANGED
|
@@ -93,23 +93,23 @@ var require_random_seed = __commonJS({
|
|
|
93
93
|
};
|
|
94
94
|
var uheprng = function(seed) {
|
|
95
95
|
return function() {
|
|
96
|
-
var
|
|
96
|
+
var o = 48;
|
|
97
97
|
var c2 = 1;
|
|
98
|
-
var
|
|
99
|
-
var s = new Array(
|
|
98
|
+
var p2 = o;
|
|
99
|
+
var s = new Array(o);
|
|
100
100
|
var i;
|
|
101
101
|
var j2;
|
|
102
|
-
var
|
|
102
|
+
var k2 = 0;
|
|
103
103
|
var mash = new Mash();
|
|
104
|
-
for (i = 0; i <
|
|
104
|
+
for (i = 0; i < o; i++) {
|
|
105
105
|
s[i] = mash(Math.random());
|
|
106
106
|
}
|
|
107
107
|
var rawprng = function() {
|
|
108
|
-
if (++
|
|
109
|
-
|
|
108
|
+
if (++p2 >= o) {
|
|
109
|
+
p2 = 0;
|
|
110
110
|
}
|
|
111
|
-
var t = 1768863 * s[
|
|
112
|
-
return s[
|
|
111
|
+
var t = 1768863 * s[p2] + c2 * 23283064365386963e-26;
|
|
112
|
+
return s[p2] = t - (c2 = t | 0);
|
|
113
113
|
};
|
|
114
114
|
var random = function(range) {
|
|
115
115
|
return Math.floor(range * (rawprng() + (rawprng() * 2097152 | 0) * 11102230246251565e-32));
|
|
@@ -125,7 +125,7 @@ var require_random_seed = __commonJS({
|
|
|
125
125
|
var hash = function() {
|
|
126
126
|
var args = Array.prototype.slice.call(arguments);
|
|
127
127
|
for (i = 0; i < args.length; i++) {
|
|
128
|
-
for (j2 = 0; j2 <
|
|
128
|
+
for (j2 = 0; j2 < o; j2++) {
|
|
129
129
|
s[j2] -= mash(args[i]);
|
|
130
130
|
if (s[j2] < 0) {
|
|
131
131
|
s[j2] += 1;
|
|
@@ -143,9 +143,9 @@ var require_random_seed = __commonJS({
|
|
|
143
143
|
inStr = random.cleanString(inStr);
|
|
144
144
|
mash(inStr);
|
|
145
145
|
for (i = 0; i < inStr.length; i++) {
|
|
146
|
-
|
|
147
|
-
for (j2 = 0; j2 <
|
|
148
|
-
s[j2] -= mash(
|
|
146
|
+
k2 = inStr.charCodeAt(i);
|
|
147
|
+
for (j2 = 0; j2 < o; j2++) {
|
|
148
|
+
s[j2] -= mash(k2);
|
|
149
149
|
if (s[j2] < 0) {
|
|
150
150
|
s[j2] += 1;
|
|
151
151
|
}
|
|
@@ -172,15 +172,15 @@ var require_random_seed = __commonJS({
|
|
|
172
172
|
for (i = 0; i < arguments.length; i++) {
|
|
173
173
|
args.push(arguments[i]);
|
|
174
174
|
}
|
|
175
|
-
hash(
|
|
175
|
+
hash(k2++ + (/* @__PURE__ */ new Date()).getTime() + args.join("") + Math.random());
|
|
176
176
|
};
|
|
177
177
|
random.initState = function() {
|
|
178
178
|
mash();
|
|
179
|
-
for (i = 0; i <
|
|
179
|
+
for (i = 0; i < o; i++) {
|
|
180
180
|
s[i] = mash(" ");
|
|
181
181
|
}
|
|
182
182
|
c2 = 1;
|
|
183
|
-
|
|
183
|
+
p2 = o;
|
|
184
184
|
};
|
|
185
185
|
random.done = function() {
|
|
186
186
|
mash = null;
|
|
@@ -494,14 +494,14 @@ var require_is_docker = __commonJS({
|
|
|
494
494
|
try {
|
|
495
495
|
fs2.statSync("/.dockerenv");
|
|
496
496
|
return true;
|
|
497
|
-
} catch (
|
|
497
|
+
} catch (_2) {
|
|
498
498
|
return false;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
function hasDockerCGroup() {
|
|
502
502
|
try {
|
|
503
503
|
return fs2.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
504
|
-
} catch (
|
|
504
|
+
} catch (_2) {
|
|
505
505
|
return false;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
@@ -533,7 +533,7 @@ var require_is_wsl = __commonJS({
|
|
|
533
533
|
}
|
|
534
534
|
try {
|
|
535
535
|
return fs2.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
|
|
536
|
-
} catch (
|
|
536
|
+
} catch (_2) {
|
|
537
537
|
return false;
|
|
538
538
|
}
|
|
539
539
|
};
|
|
@@ -824,8 +824,8 @@ var require_windows = __commonJS({
|
|
|
824
824
|
return true;
|
|
825
825
|
}
|
|
826
826
|
for (var i = 0; i < pathext.length; i++) {
|
|
827
|
-
var
|
|
828
|
-
if (
|
|
827
|
+
var p2 = pathext[i].toLowerCase();
|
|
828
|
+
if (p2 && path3.substr(-p2.length).toLowerCase() === p2) {
|
|
829
829
|
return true;
|
|
830
830
|
}
|
|
831
831
|
}
|
|
@@ -871,11 +871,11 @@ var require_mode = __commonJS({
|
|
|
871
871
|
var gid = stat.gid;
|
|
872
872
|
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
873
873
|
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
874
|
-
var
|
|
874
|
+
var u = parseInt("100", 8);
|
|
875
875
|
var g2 = parseInt("010", 8);
|
|
876
|
-
var
|
|
877
|
-
var ug =
|
|
878
|
-
var ret = mod &
|
|
876
|
+
var o = parseInt("001", 8);
|
|
877
|
+
var ug = u | g2;
|
|
878
|
+
var ret = mod & o || mod & g2 && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
879
879
|
return ret;
|
|
880
880
|
}
|
|
881
881
|
}
|
|
@@ -939,22 +939,22 @@ var require_isexe = __commonJS({
|
|
|
939
939
|
// ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
940
940
|
var require_which = __commonJS({
|
|
941
941
|
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) {
|
|
942
|
-
var
|
|
942
|
+
var isWindows2 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
943
943
|
var path3 = require("path");
|
|
944
|
-
var COLON =
|
|
944
|
+
var COLON = isWindows2 ? ";" : ":";
|
|
945
945
|
var isexe = require_isexe();
|
|
946
946
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
947
947
|
var getPathInfo = (cmd, opt) => {
|
|
948
948
|
const colon = opt.colon || COLON;
|
|
949
|
-
const pathEnv = cmd.match(/\//) ||
|
|
949
|
+
const pathEnv = cmd.match(/\//) || isWindows2 && cmd.match(/\\/) ? [""] : [
|
|
950
950
|
// windows always checks the cwd first
|
|
951
|
-
...
|
|
951
|
+
...isWindows2 ? [process.cwd()] : [],
|
|
952
952
|
...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
953
953
|
"").split(colon)
|
|
954
954
|
];
|
|
955
|
-
const pathExtExe =
|
|
956
|
-
const pathExt =
|
|
957
|
-
if (
|
|
955
|
+
const pathExtExe = isWindows2 ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
956
|
+
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
957
|
+
if (isWindows2) {
|
|
958
958
|
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
959
959
|
pathExt.unshift("");
|
|
960
960
|
}
|
|
@@ -979,21 +979,21 @@ var require_which = __commonJS({
|
|
|
979
979
|
const ppRaw = pathEnv[i];
|
|
980
980
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
981
981
|
const pCmd = path3.join(pathPart, cmd);
|
|
982
|
-
const
|
|
983
|
-
resolve9(subStep(
|
|
982
|
+
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
983
|
+
resolve9(subStep(p2, i, 0));
|
|
984
984
|
});
|
|
985
|
-
const subStep = (
|
|
985
|
+
const subStep = (p2, i, ii) => new Promise((resolve9, reject) => {
|
|
986
986
|
if (ii === pathExt.length)
|
|
987
987
|
return resolve9(step(i + 1));
|
|
988
988
|
const ext = pathExt[ii];
|
|
989
|
-
isexe(
|
|
989
|
+
isexe(p2 + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
990
990
|
if (!er && is) {
|
|
991
991
|
if (opt.all)
|
|
992
|
-
found.push(
|
|
992
|
+
found.push(p2 + ext);
|
|
993
993
|
else
|
|
994
|
-
return resolve9(
|
|
994
|
+
return resolve9(p2 + ext);
|
|
995
995
|
}
|
|
996
|
-
return resolve9(subStep(
|
|
996
|
+
return resolve9(subStep(p2, i, ii + 1));
|
|
997
997
|
});
|
|
998
998
|
});
|
|
999
999
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -1006,9 +1006,9 @@ var require_which = __commonJS({
|
|
|
1006
1006
|
const ppRaw = pathEnv[i];
|
|
1007
1007
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
1008
1008
|
const pCmd = path3.join(pathPart, cmd);
|
|
1009
|
-
const
|
|
1009
|
+
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
1010
1010
|
for (let j2 = 0; j2 < pathExt.length; j2++) {
|
|
1011
|
-
const cur =
|
|
1011
|
+
const cur = p2 + pathExt[j2];
|
|
1012
1012
|
try {
|
|
1013
1013
|
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
1014
1014
|
if (is) {
|
|
@@ -1205,7 +1205,7 @@ var require_parse = __commonJS({
|
|
|
1205
1205
|
}
|
|
1206
1206
|
return parsed;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function parse3(command2, args, options) {
|
|
1209
1209
|
if (args && !Array.isArray(args)) {
|
|
1210
1210
|
options = args;
|
|
1211
1211
|
args = null;
|
|
@@ -1224,7 +1224,7 @@ var require_parse = __commonJS({
|
|
|
1224
1224
|
};
|
|
1225
1225
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
1226
1226
|
}
|
|
1227
|
-
module2.exports =
|
|
1227
|
+
module2.exports = parse3;
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
1230
|
|
|
@@ -1283,16 +1283,16 @@ var require_cross_spawn = __commonJS({
|
|
|
1283
1283
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module2) {
|
|
1284
1284
|
"use strict";
|
|
1285
1285
|
var cp3 = require("child_process");
|
|
1286
|
-
var
|
|
1286
|
+
var parse3 = require_parse();
|
|
1287
1287
|
var enoent = require_enoent();
|
|
1288
1288
|
function spawn2(command2, args, options) {
|
|
1289
|
-
const parsed =
|
|
1289
|
+
const parsed = parse3(command2, args, options);
|
|
1290
1290
|
const spawned = cp3.spawn(parsed.command, parsed.args, parsed.options);
|
|
1291
1291
|
enoent.hookChildProcess(spawned, parsed);
|
|
1292
1292
|
return spawned;
|
|
1293
1293
|
}
|
|
1294
1294
|
function spawnSync(command2, args, options) {
|
|
1295
|
-
const parsed =
|
|
1295
|
+
const parsed = parse3(command2, args, options);
|
|
1296
1296
|
const result = cp3.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
1297
1297
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
1298
1298
|
return result;
|
|
@@ -1300,7 +1300,7 @@ var require_cross_spawn = __commonJS({
|
|
|
1300
1300
|
module2.exports = spawn2;
|
|
1301
1301
|
module2.exports.spawn = spawn2;
|
|
1302
1302
|
module2.exports.sync = spawnSync;
|
|
1303
|
-
module2.exports._parse =
|
|
1303
|
+
module2.exports._parse = parse3;
|
|
1304
1304
|
module2.exports._enoent = enoent;
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
@@ -1309,25 +1309,25 @@ var require_cross_spawn = __commonJS({
|
|
|
1309
1309
|
var require_src = __commonJS({
|
|
1310
1310
|
"../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module2) {
|
|
1311
1311
|
"use strict";
|
|
1312
|
-
var
|
|
1313
|
-
var CSI = `${
|
|
1312
|
+
var ESC3 = "\x1B";
|
|
1313
|
+
var CSI = `${ESC3}[`;
|
|
1314
1314
|
var beep = "\x07";
|
|
1315
1315
|
var cursor = {
|
|
1316
|
-
to(x2,
|
|
1317
|
-
if (!
|
|
1316
|
+
to(x2, y2) {
|
|
1317
|
+
if (!y2)
|
|
1318
1318
|
return `${CSI}${x2 + 1}G`;
|
|
1319
|
-
return `${CSI}${
|
|
1319
|
+
return `${CSI}${y2 + 1};${x2 + 1}H`;
|
|
1320
1320
|
},
|
|
1321
|
-
move(x2,
|
|
1321
|
+
move(x2, y2) {
|
|
1322
1322
|
let ret = "";
|
|
1323
1323
|
if (x2 < 0)
|
|
1324
1324
|
ret += `${CSI}${-x2}D`;
|
|
1325
1325
|
else if (x2 > 0)
|
|
1326
1326
|
ret += `${CSI}${x2}C`;
|
|
1327
|
-
if (
|
|
1328
|
-
ret += `${CSI}${-
|
|
1329
|
-
else if (
|
|
1330
|
-
ret += `${CSI}${
|
|
1327
|
+
if (y2 < 0)
|
|
1328
|
+
ret += `${CSI}${-y2}A`;
|
|
1329
|
+
else if (y2 > 0)
|
|
1330
|
+
ret += `${CSI}${y2}B`;
|
|
1331
1331
|
return ret;
|
|
1332
1332
|
},
|
|
1333
1333
|
up: (count = 1) => `${CSI}${count}A`,
|
|
@@ -1339,8 +1339,8 @@ var require_src = __commonJS({
|
|
|
1339
1339
|
left: `${CSI}G`,
|
|
1340
1340
|
hide: `${CSI}?25l`,
|
|
1341
1341
|
show: `${CSI}?25h`,
|
|
1342
|
-
save: `${
|
|
1343
|
-
restore: `${
|
|
1342
|
+
save: `${ESC3}7`,
|
|
1343
|
+
restore: `${ESC3}8`
|
|
1344
1344
|
};
|
|
1345
1345
|
var scroll = {
|
|
1346
1346
|
up: (count = 1) => `${CSI}S`.repeat(count),
|
|
@@ -1508,11 +1508,11 @@ var require_signals = __commonJS({
|
|
|
1508
1508
|
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
1509
1509
|
var require_signal_exit = __commonJS({
|
|
1510
1510
|
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
|
|
1511
|
-
var
|
|
1512
|
-
var processOk = function(
|
|
1513
|
-
return
|
|
1511
|
+
var process7 = global.process;
|
|
1512
|
+
var processOk = function(process8) {
|
|
1513
|
+
return process8 && typeof process8 === "object" && typeof process8.removeListener === "function" && typeof process8.emit === "function" && typeof process8.reallyExit === "function" && typeof process8.listeners === "function" && typeof process8.kill === "function" && typeof process8.pid === "number" && typeof process8.on === "function";
|
|
1514
1514
|
};
|
|
1515
|
-
if (!processOk(
|
|
1515
|
+
if (!processOk(process7)) {
|
|
1516
1516
|
module2.exports = function() {
|
|
1517
1517
|
return function() {
|
|
1518
1518
|
};
|
|
@@ -1520,15 +1520,15 @@ var require_signal_exit = __commonJS({
|
|
|
1520
1520
|
} else {
|
|
1521
1521
|
assert = require("assert");
|
|
1522
1522
|
signals = require_signals();
|
|
1523
|
-
isWin = /^win/i.test(
|
|
1523
|
+
isWin = /^win/i.test(process7.platform);
|
|
1524
1524
|
EE = require("events");
|
|
1525
1525
|
if (typeof EE !== "function") {
|
|
1526
1526
|
EE = EE.EventEmitter;
|
|
1527
1527
|
}
|
|
1528
|
-
if (
|
|
1529
|
-
emitter =
|
|
1528
|
+
if (process7.__signal_exit_emitter__) {
|
|
1529
|
+
emitter = process7.__signal_exit_emitter__;
|
|
1530
1530
|
} else {
|
|
1531
|
-
emitter =
|
|
1531
|
+
emitter = process7.__signal_exit_emitter__ = new EE();
|
|
1532
1532
|
emitter.count = 0;
|
|
1533
1533
|
emitter.emitted = {};
|
|
1534
1534
|
}
|
|
@@ -1565,12 +1565,12 @@ var require_signal_exit = __commonJS({
|
|
|
1565
1565
|
loaded = false;
|
|
1566
1566
|
signals.forEach(function(sig) {
|
|
1567
1567
|
try {
|
|
1568
|
-
|
|
1568
|
+
process7.removeListener(sig, sigListeners[sig]);
|
|
1569
1569
|
} catch (er) {
|
|
1570
1570
|
}
|
|
1571
1571
|
});
|
|
1572
|
-
|
|
1573
|
-
|
|
1572
|
+
process7.emit = originalProcessEmit;
|
|
1573
|
+
process7.reallyExit = originalProcessReallyExit;
|
|
1574
1574
|
emitter.count -= 1;
|
|
1575
1575
|
};
|
|
1576
1576
|
module2.exports.unload = unload;
|
|
@@ -1587,7 +1587,7 @@ var require_signal_exit = __commonJS({
|
|
|
1587
1587
|
if (!processOk(global.process)) {
|
|
1588
1588
|
return;
|
|
1589
1589
|
}
|
|
1590
|
-
var listeners =
|
|
1590
|
+
var listeners = process7.listeners(sig);
|
|
1591
1591
|
if (listeners.length === emitter.count) {
|
|
1592
1592
|
unload();
|
|
1593
1593
|
emit("exit", null, sig);
|
|
@@ -1595,7 +1595,7 @@ var require_signal_exit = __commonJS({
|
|
|
1595
1595
|
if (isWin && sig === "SIGHUP") {
|
|
1596
1596
|
sig = "SIGINT";
|
|
1597
1597
|
}
|
|
1598
|
-
|
|
1598
|
+
process7.kill(process7.pid, sig);
|
|
1599
1599
|
}
|
|
1600
1600
|
};
|
|
1601
1601
|
});
|
|
@@ -1611,36 +1611,36 @@ var require_signal_exit = __commonJS({
|
|
|
1611
1611
|
emitter.count += 1;
|
|
1612
1612
|
signals = signals.filter(function(sig) {
|
|
1613
1613
|
try {
|
|
1614
|
-
|
|
1614
|
+
process7.on(sig, sigListeners[sig]);
|
|
1615
1615
|
return true;
|
|
1616
1616
|
} catch (er) {
|
|
1617
1617
|
return false;
|
|
1618
1618
|
}
|
|
1619
1619
|
});
|
|
1620
|
-
|
|
1621
|
-
|
|
1620
|
+
process7.emit = processEmit;
|
|
1621
|
+
process7.reallyExit = processReallyExit;
|
|
1622
1622
|
};
|
|
1623
1623
|
module2.exports.load = load;
|
|
1624
|
-
originalProcessReallyExit =
|
|
1624
|
+
originalProcessReallyExit = process7.reallyExit;
|
|
1625
1625
|
processReallyExit = function processReallyExit2(code) {
|
|
1626
1626
|
if (!processOk(global.process)) {
|
|
1627
1627
|
return;
|
|
1628
1628
|
}
|
|
1629
|
-
|
|
1629
|
+
process7.exitCode = code || /* istanbul ignore next */
|
|
1630
1630
|
0;
|
|
1631
|
-
emit("exit",
|
|
1632
|
-
emit("afterexit",
|
|
1633
|
-
originalProcessReallyExit.call(
|
|
1631
|
+
emit("exit", process7.exitCode, null);
|
|
1632
|
+
emit("afterexit", process7.exitCode, null);
|
|
1633
|
+
originalProcessReallyExit.call(process7, process7.exitCode);
|
|
1634
1634
|
};
|
|
1635
|
-
originalProcessEmit =
|
|
1635
|
+
originalProcessEmit = process7.emit;
|
|
1636
1636
|
processEmit = function processEmit2(ev, arg) {
|
|
1637
1637
|
if (ev === "exit" && processOk(global.process)) {
|
|
1638
1638
|
if (arg !== void 0) {
|
|
1639
|
-
|
|
1639
|
+
process7.exitCode = arg;
|
|
1640
1640
|
}
|
|
1641
1641
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
1642
|
-
emit("exit",
|
|
1643
|
-
emit("afterexit",
|
|
1642
|
+
emit("exit", process7.exitCode, null);
|
|
1643
|
+
emit("afterexit", process7.exitCode, null);
|
|
1644
1644
|
return ret;
|
|
1645
1645
|
} else {
|
|
1646
1646
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -1675,12 +1675,12 @@ var require_eastasianwidth = __commonJS({
|
|
|
1675
1675
|
}
|
|
1676
1676
|
eaw.eastAsianWidth = function(character) {
|
|
1677
1677
|
var x2 = character.charCodeAt(0);
|
|
1678
|
-
var
|
|
1678
|
+
var y2 = character.length == 2 ? character.charCodeAt(1) : 0;
|
|
1679
1679
|
var codePoint = x2;
|
|
1680
|
-
if (55296 <= x2 && x2 <= 56319 && (56320 <=
|
|
1680
|
+
if (55296 <= x2 && x2 <= 56319 && (56320 <= y2 && y2 <= 57343)) {
|
|
1681
1681
|
x2 &= 1023;
|
|
1682
|
-
|
|
1683
|
-
codePoint = x2 << 10 |
|
|
1682
|
+
y2 &= 1023;
|
|
1683
|
+
codePoint = x2 << 10 | y2;
|
|
1684
1684
|
codePoint += 65536;
|
|
1685
1685
|
}
|
|
1686
1686
|
if (12288 == codePoint || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
|
|
@@ -1806,9 +1806,9 @@ var require_re = __commonJS({
|
|
|
1806
1806
|
var re = exports.re = [];
|
|
1807
1807
|
var src = exports.src = [];
|
|
1808
1808
|
var t = exports.t = {};
|
|
1809
|
-
var
|
|
1809
|
+
var R2 = 0;
|
|
1810
1810
|
var createToken = (name2, value, isGlobal) => {
|
|
1811
|
-
const index =
|
|
1811
|
+
const index = R2++;
|
|
1812
1812
|
debug2(name2, index, value);
|
|
1813
1813
|
t[name2] = index;
|
|
1814
1814
|
src[index] = value;
|
|
@@ -1882,16 +1882,16 @@ var require_parse_options = __commonJS({
|
|
|
1882
1882
|
var require_identifiers = __commonJS({
|
|
1883
1883
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/internal/identifiers.js"(exports, module2) {
|
|
1884
1884
|
var numeric = /^[0-9]+$/;
|
|
1885
|
-
var compareIdentifiers = (
|
|
1886
|
-
const anum = numeric.test(
|
|
1885
|
+
var compareIdentifiers = (a, b2) => {
|
|
1886
|
+
const anum = numeric.test(a);
|
|
1887
1887
|
const bnum = numeric.test(b2);
|
|
1888
1888
|
if (anum && bnum) {
|
|
1889
|
-
|
|
1889
|
+
a = +a;
|
|
1890
1890
|
b2 = +b2;
|
|
1891
1891
|
}
|
|
1892
|
-
return
|
|
1892
|
+
return a === b2 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b2 ? -1 : 1;
|
|
1893
1893
|
};
|
|
1894
|
-
var rcompareIdentifiers = (
|
|
1894
|
+
var rcompareIdentifiers = (a, b2) => compareIdentifiers(b2, a);
|
|
1895
1895
|
module2.exports = {
|
|
1896
1896
|
compareIdentifiers,
|
|
1897
1897
|
rcompareIdentifiers
|
|
@@ -2003,19 +2003,19 @@ var require_semver = __commonJS({
|
|
|
2003
2003
|
}
|
|
2004
2004
|
let i = 0;
|
|
2005
2005
|
do {
|
|
2006
|
-
const
|
|
2006
|
+
const a = this.prerelease[i];
|
|
2007
2007
|
const b2 = other.prerelease[i];
|
|
2008
|
-
debug2("prerelease compare", i,
|
|
2009
|
-
if (
|
|
2008
|
+
debug2("prerelease compare", i, a, b2);
|
|
2009
|
+
if (a === void 0 && b2 === void 0) {
|
|
2010
2010
|
return 0;
|
|
2011
2011
|
} else if (b2 === void 0) {
|
|
2012
2012
|
return 1;
|
|
2013
|
-
} else if (
|
|
2013
|
+
} else if (a === void 0) {
|
|
2014
2014
|
return -1;
|
|
2015
|
-
} else if (
|
|
2015
|
+
} else if (a === b2) {
|
|
2016
2016
|
continue;
|
|
2017
2017
|
} else {
|
|
2018
|
-
return compareIdentifiers(
|
|
2018
|
+
return compareIdentifiers(a, b2);
|
|
2019
2019
|
}
|
|
2020
2020
|
} while (++i);
|
|
2021
2021
|
}
|
|
@@ -2025,19 +2025,19 @@ var require_semver = __commonJS({
|
|
|
2025
2025
|
}
|
|
2026
2026
|
let i = 0;
|
|
2027
2027
|
do {
|
|
2028
|
-
const
|
|
2028
|
+
const a = this.build[i];
|
|
2029
2029
|
const b2 = other.build[i];
|
|
2030
|
-
debug2("prerelease compare", i,
|
|
2031
|
-
if (
|
|
2030
|
+
debug2("prerelease compare", i, a, b2);
|
|
2031
|
+
if (a === void 0 && b2 === void 0) {
|
|
2032
2032
|
return 0;
|
|
2033
2033
|
} else if (b2 === void 0) {
|
|
2034
2034
|
return 1;
|
|
2035
|
-
} else if (
|
|
2035
|
+
} else if (a === void 0) {
|
|
2036
2036
|
return -1;
|
|
2037
|
-
} else if (
|
|
2037
|
+
} else if (a === b2) {
|
|
2038
2038
|
continue;
|
|
2039
2039
|
} else {
|
|
2040
|
-
return compareIdentifiers(
|
|
2040
|
+
return compareIdentifiers(a, b2);
|
|
2041
2041
|
}
|
|
2042
2042
|
} while (++i);
|
|
2043
2043
|
}
|
|
@@ -2143,7 +2143,7 @@ var require_semver = __commonJS({
|
|
|
2143
2143
|
var require_parse2 = __commonJS({
|
|
2144
2144
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/parse.js"(exports, module2) {
|
|
2145
2145
|
var SemVer = require_semver();
|
|
2146
|
-
var
|
|
2146
|
+
var parse3 = (version3, options, throwErrors = false) => {
|
|
2147
2147
|
if (version3 instanceof SemVer) {
|
|
2148
2148
|
return version3;
|
|
2149
2149
|
}
|
|
@@ -2156,16 +2156,16 @@ var require_parse2 = __commonJS({
|
|
|
2156
2156
|
throw er;
|
|
2157
2157
|
}
|
|
2158
2158
|
};
|
|
2159
|
-
module2.exports =
|
|
2159
|
+
module2.exports = parse3;
|
|
2160
2160
|
}
|
|
2161
2161
|
});
|
|
2162
2162
|
|
|
2163
2163
|
// ../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/valid.js
|
|
2164
2164
|
var require_valid = __commonJS({
|
|
2165
2165
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/valid.js"(exports, module2) {
|
|
2166
|
-
var
|
|
2166
|
+
var parse3 = require_parse2();
|
|
2167
2167
|
var valid = (version3, options) => {
|
|
2168
|
-
const v2 =
|
|
2168
|
+
const v2 = parse3(version3, options);
|
|
2169
2169
|
return v2 ? v2.version : null;
|
|
2170
2170
|
};
|
|
2171
2171
|
module2.exports = valid;
|
|
@@ -2175,9 +2175,9 @@ var require_valid = __commonJS({
|
|
|
2175
2175
|
// ../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/clean.js
|
|
2176
2176
|
var require_clean = __commonJS({
|
|
2177
2177
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/clean.js"(exports, module2) {
|
|
2178
|
-
var
|
|
2178
|
+
var parse3 = require_parse2();
|
|
2179
2179
|
var clean = (version3, options) => {
|
|
2180
|
-
const s =
|
|
2180
|
+
const s = parse3(version3.trim().replace(/^[=v]+/, ""), options);
|
|
2181
2181
|
return s ? s.version : null;
|
|
2182
2182
|
};
|
|
2183
2183
|
module2.exports = clean;
|
|
@@ -2210,10 +2210,10 @@ var require_inc = __commonJS({
|
|
|
2210
2210
|
// ../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/diff.js
|
|
2211
2211
|
var require_diff = __commonJS({
|
|
2212
2212
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/diff.js"(exports, module2) {
|
|
2213
|
-
var
|
|
2213
|
+
var parse3 = require_parse2();
|
|
2214
2214
|
var diff = (version1, version22) => {
|
|
2215
|
-
const v1 =
|
|
2216
|
-
const v2 =
|
|
2215
|
+
const v1 = parse3(version1, null, true);
|
|
2216
|
+
const v2 = parse3(version22, null, true);
|
|
2217
2217
|
const comparison = v1.compare(v2);
|
|
2218
2218
|
if (comparison === 0) {
|
|
2219
2219
|
return null;
|
|
@@ -2251,7 +2251,7 @@ var require_diff = __commonJS({
|
|
|
2251
2251
|
var require_major = __commonJS({
|
|
2252
2252
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/major.js"(exports, module2) {
|
|
2253
2253
|
var SemVer = require_semver();
|
|
2254
|
-
var major = (
|
|
2254
|
+
var major = (a, loose) => new SemVer(a, loose).major;
|
|
2255
2255
|
module2.exports = major;
|
|
2256
2256
|
}
|
|
2257
2257
|
});
|
|
@@ -2260,7 +2260,7 @@ var require_major = __commonJS({
|
|
|
2260
2260
|
var require_minor = __commonJS({
|
|
2261
2261
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/minor.js"(exports, module2) {
|
|
2262
2262
|
var SemVer = require_semver();
|
|
2263
|
-
var minor = (
|
|
2263
|
+
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
2264
2264
|
module2.exports = minor;
|
|
2265
2265
|
}
|
|
2266
2266
|
});
|
|
@@ -2269,7 +2269,7 @@ var require_minor = __commonJS({
|
|
|
2269
2269
|
var require_patch = __commonJS({
|
|
2270
2270
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/patch.js"(exports, module2) {
|
|
2271
2271
|
var SemVer = require_semver();
|
|
2272
|
-
var patch = (
|
|
2272
|
+
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
2273
2273
|
module2.exports = patch;
|
|
2274
2274
|
}
|
|
2275
2275
|
});
|
|
@@ -2277,9 +2277,9 @@ var require_patch = __commonJS({
|
|
|
2277
2277
|
// ../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/prerelease.js
|
|
2278
2278
|
var require_prerelease = __commonJS({
|
|
2279
2279
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/prerelease.js"(exports, module2) {
|
|
2280
|
-
var
|
|
2280
|
+
var parse3 = require_parse2();
|
|
2281
2281
|
var prerelease = (version3, options) => {
|
|
2282
|
-
const parsed =
|
|
2282
|
+
const parsed = parse3(version3, options);
|
|
2283
2283
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
2284
2284
|
};
|
|
2285
2285
|
module2.exports = prerelease;
|
|
@@ -2290,7 +2290,7 @@ var require_prerelease = __commonJS({
|
|
|
2290
2290
|
var require_compare = __commonJS({
|
|
2291
2291
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/compare.js"(exports, module2) {
|
|
2292
2292
|
var SemVer = require_semver();
|
|
2293
|
-
var compare = (
|
|
2293
|
+
var compare = (a, b2, loose) => new SemVer(a, loose).compare(new SemVer(b2, loose));
|
|
2294
2294
|
module2.exports = compare;
|
|
2295
2295
|
}
|
|
2296
2296
|
});
|
|
@@ -2299,7 +2299,7 @@ var require_compare = __commonJS({
|
|
|
2299
2299
|
var require_rcompare = __commonJS({
|
|
2300
2300
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/rcompare.js"(exports, module2) {
|
|
2301
2301
|
var compare = require_compare();
|
|
2302
|
-
var rcompare = (
|
|
2302
|
+
var rcompare = (a, b2, loose) => compare(b2, a, loose);
|
|
2303
2303
|
module2.exports = rcompare;
|
|
2304
2304
|
}
|
|
2305
2305
|
});
|
|
@@ -2308,7 +2308,7 @@ var require_rcompare = __commonJS({
|
|
|
2308
2308
|
var require_compare_loose = __commonJS({
|
|
2309
2309
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/compare-loose.js"(exports, module2) {
|
|
2310
2310
|
var compare = require_compare();
|
|
2311
|
-
var compareLoose = (
|
|
2311
|
+
var compareLoose = (a, b2) => compare(a, b2, true);
|
|
2312
2312
|
module2.exports = compareLoose;
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
@@ -2317,8 +2317,8 @@ var require_compare_loose = __commonJS({
|
|
|
2317
2317
|
var require_compare_build = __commonJS({
|
|
2318
2318
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/compare-build.js"(exports, module2) {
|
|
2319
2319
|
var SemVer = require_semver();
|
|
2320
|
-
var compareBuild = (
|
|
2321
|
-
const versionA = new SemVer(
|
|
2320
|
+
var compareBuild = (a, b2, loose) => {
|
|
2321
|
+
const versionA = new SemVer(a, loose);
|
|
2322
2322
|
const versionB = new SemVer(b2, loose);
|
|
2323
2323
|
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
2324
2324
|
};
|
|
@@ -2330,7 +2330,7 @@ var require_compare_build = __commonJS({
|
|
|
2330
2330
|
var require_sort = __commonJS({
|
|
2331
2331
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/sort.js"(exports, module2) {
|
|
2332
2332
|
var compareBuild = require_compare_build();
|
|
2333
|
-
var sort = (list, loose) => list.sort((
|
|
2333
|
+
var sort = (list, loose) => list.sort((a, b2) => compareBuild(a, b2, loose));
|
|
2334
2334
|
module2.exports = sort;
|
|
2335
2335
|
}
|
|
2336
2336
|
});
|
|
@@ -2339,7 +2339,7 @@ var require_sort = __commonJS({
|
|
|
2339
2339
|
var require_rsort = __commonJS({
|
|
2340
2340
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/rsort.js"(exports, module2) {
|
|
2341
2341
|
var compareBuild = require_compare_build();
|
|
2342
|
-
var rsort = (list, loose) => list.sort((
|
|
2342
|
+
var rsort = (list, loose) => list.sort((a, b2) => compareBuild(b2, a, loose));
|
|
2343
2343
|
module2.exports = rsort;
|
|
2344
2344
|
}
|
|
2345
2345
|
});
|
|
@@ -2348,7 +2348,7 @@ var require_rsort = __commonJS({
|
|
|
2348
2348
|
var require_gt = __commonJS({
|
|
2349
2349
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/gt.js"(exports, module2) {
|
|
2350
2350
|
var compare = require_compare();
|
|
2351
|
-
var gt = (
|
|
2351
|
+
var gt = (a, b2, loose) => compare(a, b2, loose) > 0;
|
|
2352
2352
|
module2.exports = gt;
|
|
2353
2353
|
}
|
|
2354
2354
|
});
|
|
@@ -2357,7 +2357,7 @@ var require_gt = __commonJS({
|
|
|
2357
2357
|
var require_lt = __commonJS({
|
|
2358
2358
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/lt.js"(exports, module2) {
|
|
2359
2359
|
var compare = require_compare();
|
|
2360
|
-
var lt = (
|
|
2360
|
+
var lt = (a, b2, loose) => compare(a, b2, loose) < 0;
|
|
2361
2361
|
module2.exports = lt;
|
|
2362
2362
|
}
|
|
2363
2363
|
});
|
|
@@ -2366,7 +2366,7 @@ var require_lt = __commonJS({
|
|
|
2366
2366
|
var require_eq = __commonJS({
|
|
2367
2367
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/eq.js"(exports, module2) {
|
|
2368
2368
|
var compare = require_compare();
|
|
2369
|
-
var eq = (
|
|
2369
|
+
var eq = (a, b2, loose) => compare(a, b2, loose) === 0;
|
|
2370
2370
|
module2.exports = eq;
|
|
2371
2371
|
}
|
|
2372
2372
|
});
|
|
@@ -2375,7 +2375,7 @@ var require_eq = __commonJS({
|
|
|
2375
2375
|
var require_neq = __commonJS({
|
|
2376
2376
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/neq.js"(exports, module2) {
|
|
2377
2377
|
var compare = require_compare();
|
|
2378
|
-
var neq = (
|
|
2378
|
+
var neq = (a, b2, loose) => compare(a, b2, loose) !== 0;
|
|
2379
2379
|
module2.exports = neq;
|
|
2380
2380
|
}
|
|
2381
2381
|
});
|
|
@@ -2384,7 +2384,7 @@ var require_neq = __commonJS({
|
|
|
2384
2384
|
var require_gte = __commonJS({
|
|
2385
2385
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/gte.js"(exports, module2) {
|
|
2386
2386
|
var compare = require_compare();
|
|
2387
|
-
var gte = (
|
|
2387
|
+
var gte = (a, b2, loose) => compare(a, b2, loose) >= 0;
|
|
2388
2388
|
module2.exports = gte;
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
@@ -2393,7 +2393,7 @@ var require_gte = __commonJS({
|
|
|
2393
2393
|
var require_lte = __commonJS({
|
|
2394
2394
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/lte.js"(exports, module2) {
|
|
2395
2395
|
var compare = require_compare();
|
|
2396
|
-
var lte = (
|
|
2396
|
+
var lte = (a, b2, loose) => compare(a, b2, loose) <= 0;
|
|
2397
2397
|
module2.exports = lte;
|
|
2398
2398
|
}
|
|
2399
2399
|
});
|
|
@@ -2407,38 +2407,38 @@ var require_cmp = __commonJS({
|
|
|
2407
2407
|
var gte = require_gte();
|
|
2408
2408
|
var lt = require_lt();
|
|
2409
2409
|
var lte = require_lte();
|
|
2410
|
-
var cmp = (
|
|
2410
|
+
var cmp = (a, op, b2, loose) => {
|
|
2411
2411
|
switch (op) {
|
|
2412
2412
|
case "===":
|
|
2413
|
-
if (typeof
|
|
2414
|
-
|
|
2413
|
+
if (typeof a === "object") {
|
|
2414
|
+
a = a.version;
|
|
2415
2415
|
}
|
|
2416
2416
|
if (typeof b2 === "object") {
|
|
2417
2417
|
b2 = b2.version;
|
|
2418
2418
|
}
|
|
2419
|
-
return
|
|
2419
|
+
return a === b2;
|
|
2420
2420
|
case "!==":
|
|
2421
|
-
if (typeof
|
|
2422
|
-
|
|
2421
|
+
if (typeof a === "object") {
|
|
2422
|
+
a = a.version;
|
|
2423
2423
|
}
|
|
2424
2424
|
if (typeof b2 === "object") {
|
|
2425
2425
|
b2 = b2.version;
|
|
2426
2426
|
}
|
|
2427
|
-
return
|
|
2427
|
+
return a !== b2;
|
|
2428
2428
|
case "":
|
|
2429
2429
|
case "=":
|
|
2430
2430
|
case "==":
|
|
2431
|
-
return eq(
|
|
2431
|
+
return eq(a, b2, loose);
|
|
2432
2432
|
case "!=":
|
|
2433
|
-
return neq(
|
|
2433
|
+
return neq(a, b2, loose);
|
|
2434
2434
|
case ">":
|
|
2435
|
-
return gt(
|
|
2435
|
+
return gt(a, b2, loose);
|
|
2436
2436
|
case ">=":
|
|
2437
|
-
return gte(
|
|
2437
|
+
return gte(a, b2, loose);
|
|
2438
2438
|
case "<":
|
|
2439
|
-
return lt(
|
|
2439
|
+
return lt(a, b2, loose);
|
|
2440
2440
|
case "<=":
|
|
2441
|
-
return lte(
|
|
2441
|
+
return lte(a, b2, loose);
|
|
2442
2442
|
default:
|
|
2443
2443
|
throw new TypeError(`Invalid operator: ${op}`);
|
|
2444
2444
|
}
|
|
@@ -2451,7 +2451,7 @@ var require_cmp = __commonJS({
|
|
|
2451
2451
|
var require_coerce = __commonJS({
|
|
2452
2452
|
"../../node_modules/.pnpm/semver@7.5.1/node_modules/semver/functions/coerce.js"(exports, module2) {
|
|
2453
2453
|
var SemVer = require_semver();
|
|
2454
|
-
var
|
|
2454
|
+
var parse3 = require_parse2();
|
|
2455
2455
|
var { re, t } = require_re();
|
|
2456
2456
|
var coerce = (version3, options) => {
|
|
2457
2457
|
if (version3 instanceof SemVer) {
|
|
@@ -2480,7 +2480,7 @@ var require_coerce = __commonJS({
|
|
|
2480
2480
|
if (match === null) {
|
|
2481
2481
|
return null;
|
|
2482
2482
|
}
|
|
2483
|
-
return
|
|
2483
|
+
return parse3(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options);
|
|
2484
2484
|
};
|
|
2485
2485
|
module2.exports = coerce;
|
|
2486
2486
|
}
|
|
@@ -2810,9 +2810,9 @@ var require_yallist = __commonJS({
|
|
|
2810
2810
|
var head = this.head;
|
|
2811
2811
|
var tail = this.tail;
|
|
2812
2812
|
for (var walker = head; walker !== null; walker = walker.prev) {
|
|
2813
|
-
var
|
|
2813
|
+
var p2 = walker.prev;
|
|
2814
2814
|
walker.prev = walker.next;
|
|
2815
|
-
walker.next =
|
|
2815
|
+
walker.next = p2;
|
|
2816
2816
|
}
|
|
2817
2817
|
this.head = tail;
|
|
2818
2818
|
this.tail = head;
|
|
@@ -2970,10 +2970,10 @@ var require_lru_cache = __commonJS({
|
|
|
2970
2970
|
}
|
|
2971
2971
|
}
|
|
2972
2972
|
keys() {
|
|
2973
|
-
return this[LRU_LIST].toArray().map((
|
|
2973
|
+
return this[LRU_LIST].toArray().map((k2) => k2.key);
|
|
2974
2974
|
}
|
|
2975
2975
|
values() {
|
|
2976
|
-
return this[LRU_LIST].toArray().map((
|
|
2976
|
+
return this[LRU_LIST].toArray().map((k2) => k2.value);
|
|
2977
2977
|
}
|
|
2978
2978
|
reset() {
|
|
2979
2979
|
if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
|
|
@@ -3312,20 +3312,20 @@ var require_range = __commonJS({
|
|
|
3312
3312
|
}).join(" ");
|
|
3313
3313
|
var replaceTilde = (comp, options) => {
|
|
3314
3314
|
const r2 = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
3315
|
-
return comp.replace(r2, (
|
|
3316
|
-
debug2("tilde", comp,
|
|
3315
|
+
return comp.replace(r2, (_2, M2, m2, p2, pr) => {
|
|
3316
|
+
debug2("tilde", comp, _2, M2, m2, p2, pr);
|
|
3317
3317
|
let ret;
|
|
3318
3318
|
if (isX(M2)) {
|
|
3319
3319
|
ret = "";
|
|
3320
3320
|
} else if (isX(m2)) {
|
|
3321
3321
|
ret = `>=${M2}.0.0 <${+M2 + 1}.0.0-0`;
|
|
3322
|
-
} else if (isX(
|
|
3322
|
+
} else if (isX(p2)) {
|
|
3323
3323
|
ret = `>=${M2}.${m2}.0 <${M2}.${+m2 + 1}.0-0`;
|
|
3324
3324
|
} else if (pr) {
|
|
3325
3325
|
debug2("replaceTilde pr", pr);
|
|
3326
|
-
ret = `>=${M2}.${m2}.${
|
|
3326
|
+
ret = `>=${M2}.${m2}.${p2}-${pr} <${M2}.${+m2 + 1}.0-0`;
|
|
3327
3327
|
} else {
|
|
3328
|
-
ret = `>=${M2}.${m2}.${
|
|
3328
|
+
ret = `>=${M2}.${m2}.${p2} <${M2}.${+m2 + 1}.0-0`;
|
|
3329
3329
|
}
|
|
3330
3330
|
debug2("tilde return", ret);
|
|
3331
3331
|
return ret;
|
|
@@ -3337,41 +3337,41 @@ var require_range = __commonJS({
|
|
|
3337
3337
|
var replaceCaret = (comp, options) => {
|
|
3338
3338
|
debug2("caret", comp, options);
|
|
3339
3339
|
const r2 = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
3340
|
-
const
|
|
3341
|
-
return comp.replace(r2, (
|
|
3342
|
-
debug2("caret", comp,
|
|
3340
|
+
const z2 = options.includePrerelease ? "-0" : "";
|
|
3341
|
+
return comp.replace(r2, (_2, M2, m2, p2, pr) => {
|
|
3342
|
+
debug2("caret", comp, _2, M2, m2, p2, pr);
|
|
3343
3343
|
let ret;
|
|
3344
3344
|
if (isX(M2)) {
|
|
3345
3345
|
ret = "";
|
|
3346
3346
|
} else if (isX(m2)) {
|
|
3347
|
-
ret = `>=${M2}.0.0${
|
|
3348
|
-
} else if (isX(
|
|
3347
|
+
ret = `>=${M2}.0.0${z2} <${+M2 + 1}.0.0-0`;
|
|
3348
|
+
} else if (isX(p2)) {
|
|
3349
3349
|
if (M2 === "0") {
|
|
3350
|
-
ret = `>=${M2}.${m2}.0${
|
|
3350
|
+
ret = `>=${M2}.${m2}.0${z2} <${M2}.${+m2 + 1}.0-0`;
|
|
3351
3351
|
} else {
|
|
3352
|
-
ret = `>=${M2}.${m2}.0${
|
|
3352
|
+
ret = `>=${M2}.${m2}.0${z2} <${+M2 + 1}.0.0-0`;
|
|
3353
3353
|
}
|
|
3354
3354
|
} else if (pr) {
|
|
3355
3355
|
debug2("replaceCaret pr", pr);
|
|
3356
3356
|
if (M2 === "0") {
|
|
3357
3357
|
if (m2 === "0") {
|
|
3358
|
-
ret = `>=${M2}.${m2}.${
|
|
3358
|
+
ret = `>=${M2}.${m2}.${p2}-${pr} <${M2}.${m2}.${+p2 + 1}-0`;
|
|
3359
3359
|
} else {
|
|
3360
|
-
ret = `>=${M2}.${m2}.${
|
|
3360
|
+
ret = `>=${M2}.${m2}.${p2}-${pr} <${M2}.${+m2 + 1}.0-0`;
|
|
3361
3361
|
}
|
|
3362
3362
|
} else {
|
|
3363
|
-
ret = `>=${M2}.${m2}.${
|
|
3363
|
+
ret = `>=${M2}.${m2}.${p2}-${pr} <${+M2 + 1}.0.0-0`;
|
|
3364
3364
|
}
|
|
3365
3365
|
} else {
|
|
3366
3366
|
debug2("no pr");
|
|
3367
3367
|
if (M2 === "0") {
|
|
3368
3368
|
if (m2 === "0") {
|
|
3369
|
-
ret = `>=${M2}.${m2}.${
|
|
3369
|
+
ret = `>=${M2}.${m2}.${p2}${z2} <${M2}.${m2}.${+p2 + 1}-0`;
|
|
3370
3370
|
} else {
|
|
3371
|
-
ret = `>=${M2}.${m2}.${
|
|
3371
|
+
ret = `>=${M2}.${m2}.${p2}${z2} <${M2}.${+m2 + 1}.0-0`;
|
|
3372
3372
|
}
|
|
3373
3373
|
} else {
|
|
3374
|
-
ret = `>=${M2}.${m2}.${
|
|
3374
|
+
ret = `>=${M2}.${m2}.${p2} <${+M2 + 1}.0.0-0`;
|
|
3375
3375
|
}
|
|
3376
3376
|
}
|
|
3377
3377
|
debug2("caret return", ret);
|
|
@@ -3387,11 +3387,11 @@ var require_range = __commonJS({
|
|
|
3387
3387
|
var replaceXRange = (comp, options) => {
|
|
3388
3388
|
comp = comp.trim();
|
|
3389
3389
|
const r2 = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
3390
|
-
return comp.replace(r2, (ret, gtlt, M2, m2,
|
|
3391
|
-
debug2("xRange", comp, ret, gtlt, M2, m2,
|
|
3390
|
+
return comp.replace(r2, (ret, gtlt, M2, m2, p2, pr) => {
|
|
3391
|
+
debug2("xRange", comp, ret, gtlt, M2, m2, p2, pr);
|
|
3392
3392
|
const xM = isX(M2);
|
|
3393
3393
|
const xm = xM || isX(m2);
|
|
3394
|
-
const xp = xm || isX(
|
|
3394
|
+
const xp = xm || isX(p2);
|
|
3395
3395
|
const anyX = xp;
|
|
3396
3396
|
if (gtlt === "=" && anyX) {
|
|
3397
3397
|
gtlt = "";
|
|
@@ -3407,16 +3407,16 @@ var require_range = __commonJS({
|
|
|
3407
3407
|
if (xm) {
|
|
3408
3408
|
m2 = 0;
|
|
3409
3409
|
}
|
|
3410
|
-
|
|
3410
|
+
p2 = 0;
|
|
3411
3411
|
if (gtlt === ">") {
|
|
3412
3412
|
gtlt = ">=";
|
|
3413
3413
|
if (xm) {
|
|
3414
3414
|
M2 = +M2 + 1;
|
|
3415
3415
|
m2 = 0;
|
|
3416
|
-
|
|
3416
|
+
p2 = 0;
|
|
3417
3417
|
} else {
|
|
3418
3418
|
m2 = +m2 + 1;
|
|
3419
|
-
|
|
3419
|
+
p2 = 0;
|
|
3420
3420
|
}
|
|
3421
3421
|
} else if (gtlt === "<=") {
|
|
3422
3422
|
gtlt = "<";
|
|
@@ -3429,7 +3429,7 @@ var require_range = __commonJS({
|
|
|
3429
3429
|
if (gtlt === "<") {
|
|
3430
3430
|
pr = "-0";
|
|
3431
3431
|
}
|
|
3432
|
-
ret = `${gtlt + M2}.${m2}.${
|
|
3432
|
+
ret = `${gtlt + M2}.${m2}.${p2}${pr}`;
|
|
3433
3433
|
} else if (xm) {
|
|
3434
3434
|
ret = `>=${M2}.0.0${pr} <${+M2 + 1}.0.0-0`;
|
|
3435
3435
|
} else if (xp) {
|
|
@@ -3871,7 +3871,7 @@ var require_simplify = __commonJS({
|
|
|
3871
3871
|
const set = [];
|
|
3872
3872
|
let first = null;
|
|
3873
3873
|
let prev = null;
|
|
3874
|
-
const v2 = versions.sort((
|
|
3874
|
+
const v2 = versions.sort((a, b2) => compare(a, b2, options));
|
|
3875
3875
|
for (const version3 of v2) {
|
|
3876
3876
|
const included = satisfies(version3, range, options);
|
|
3877
3877
|
if (included) {
|
|
@@ -4055,19 +4055,19 @@ var require_subset = __commonJS({
|
|
|
4055
4055
|
}
|
|
4056
4056
|
return true;
|
|
4057
4057
|
};
|
|
4058
|
-
var higherGT = (
|
|
4059
|
-
if (!
|
|
4058
|
+
var higherGT = (a, b2, options) => {
|
|
4059
|
+
if (!a) {
|
|
4060
4060
|
return b2;
|
|
4061
4061
|
}
|
|
4062
|
-
const comp = compare(
|
|
4063
|
-
return comp > 0 ?
|
|
4062
|
+
const comp = compare(a.semver, b2.semver, options);
|
|
4063
|
+
return comp > 0 ? a : comp < 0 ? b2 : b2.operator === ">" && a.operator === ">=" ? b2 : a;
|
|
4064
4064
|
};
|
|
4065
|
-
var lowerLT = (
|
|
4066
|
-
if (!
|
|
4065
|
+
var lowerLT = (a, b2, options) => {
|
|
4066
|
+
if (!a) {
|
|
4067
4067
|
return b2;
|
|
4068
4068
|
}
|
|
4069
|
-
const comp = compare(
|
|
4070
|
-
return comp < 0 ?
|
|
4069
|
+
const comp = compare(a.semver, b2.semver, options);
|
|
4070
|
+
return comp < 0 ? a : comp > 0 ? b2 : b2.operator === "<" && a.operator === "<=" ? b2 : a;
|
|
4071
4071
|
};
|
|
4072
4072
|
module2.exports = subset;
|
|
4073
4073
|
}
|
|
@@ -4080,7 +4080,7 @@ var require_semver2 = __commonJS({
|
|
|
4080
4080
|
var constants = require_constants();
|
|
4081
4081
|
var SemVer = require_semver();
|
|
4082
4082
|
var identifiers = require_identifiers();
|
|
4083
|
-
var
|
|
4083
|
+
var parse3 = require_parse2();
|
|
4084
4084
|
var valid = require_valid();
|
|
4085
4085
|
var clean = require_clean();
|
|
4086
4086
|
var inc = require_inc();
|
|
@@ -4118,7 +4118,7 @@ var require_semver2 = __commonJS({
|
|
|
4118
4118
|
var simplifyRange = require_simplify();
|
|
4119
4119
|
var subset = require_subset();
|
|
4120
4120
|
module2.exports = {
|
|
4121
|
-
parse:
|
|
4121
|
+
parse: parse3,
|
|
4122
4122
|
valid,
|
|
4123
4123
|
clean,
|
|
4124
4124
|
inc,
|
|
@@ -4189,6 +4189,233 @@ var require_which_pm_runs = __commonJS({
|
|
|
4189
4189
|
}
|
|
4190
4190
|
});
|
|
4191
4191
|
|
|
4192
|
+
// ../../node_modules/.pnpm/shell-quote@1.8.1/node_modules/shell-quote/quote.js
|
|
4193
|
+
var require_quote = __commonJS({
|
|
4194
|
+
"../../node_modules/.pnpm/shell-quote@1.8.1/node_modules/shell-quote/quote.js"(exports, module2) {
|
|
4195
|
+
"use strict";
|
|
4196
|
+
module2.exports = function quote2(xs) {
|
|
4197
|
+
return xs.map(function(s) {
|
|
4198
|
+
if (s && typeof s === "object") {
|
|
4199
|
+
return s.op.replace(/(.)/g, "\\$1");
|
|
4200
|
+
}
|
|
4201
|
+
if (/["\s]/.test(s) && !/'/.test(s)) {
|
|
4202
|
+
return "'" + s.replace(/(['\\])/g, "\\$1") + "'";
|
|
4203
|
+
}
|
|
4204
|
+
if (/["'\s]/.test(s)) {
|
|
4205
|
+
return '"' + s.replace(/(["\\$`!])/g, "\\$1") + '"';
|
|
4206
|
+
}
|
|
4207
|
+
return String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, "$1\\$2");
|
|
4208
|
+
}).join(" ");
|
|
4209
|
+
};
|
|
4210
|
+
}
|
|
4211
|
+
});
|
|
4212
|
+
|
|
4213
|
+
// ../../node_modules/.pnpm/shell-quote@1.8.1/node_modules/shell-quote/parse.js
|
|
4214
|
+
var require_parse3 = __commonJS({
|
|
4215
|
+
"../../node_modules/.pnpm/shell-quote@1.8.1/node_modules/shell-quote/parse.js"(exports, module2) {
|
|
4216
|
+
"use strict";
|
|
4217
|
+
var CONTROL = "(?:" + [
|
|
4218
|
+
"\\|\\|",
|
|
4219
|
+
"\\&\\&",
|
|
4220
|
+
";;",
|
|
4221
|
+
"\\|\\&",
|
|
4222
|
+
"\\<\\(",
|
|
4223
|
+
"\\<\\<\\<",
|
|
4224
|
+
">>",
|
|
4225
|
+
">\\&",
|
|
4226
|
+
"<\\&",
|
|
4227
|
+
"[&;()|<>]"
|
|
4228
|
+
].join("|") + ")";
|
|
4229
|
+
var controlRE = new RegExp("^" + CONTROL + "$");
|
|
4230
|
+
var META = "|&;()<> \\t";
|
|
4231
|
+
var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
|
|
4232
|
+
var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
|
|
4233
|
+
var hash = /^#$/;
|
|
4234
|
+
var SQ = "'";
|
|
4235
|
+
var DQ = '"';
|
|
4236
|
+
var DS = "$";
|
|
4237
|
+
var TOKEN = "";
|
|
4238
|
+
var mult = 4294967296;
|
|
4239
|
+
for (i = 0; i < 4; i++) {
|
|
4240
|
+
TOKEN += (mult * Math.random()).toString(16);
|
|
4241
|
+
}
|
|
4242
|
+
var i;
|
|
4243
|
+
var startsWithToken = new RegExp("^" + TOKEN);
|
|
4244
|
+
function matchAll(s, r2) {
|
|
4245
|
+
var origIndex = r2.lastIndex;
|
|
4246
|
+
var matches = [];
|
|
4247
|
+
var matchObj;
|
|
4248
|
+
while (matchObj = r2.exec(s)) {
|
|
4249
|
+
matches.push(matchObj);
|
|
4250
|
+
if (r2.lastIndex === matchObj.index) {
|
|
4251
|
+
r2.lastIndex += 1;
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4254
|
+
r2.lastIndex = origIndex;
|
|
4255
|
+
return matches;
|
|
4256
|
+
}
|
|
4257
|
+
function getVar(env3, pre, key) {
|
|
4258
|
+
var r2 = typeof env3 === "function" ? env3(key) : env3[key];
|
|
4259
|
+
if (typeof r2 === "undefined" && key != "") {
|
|
4260
|
+
r2 = "";
|
|
4261
|
+
} else if (typeof r2 === "undefined") {
|
|
4262
|
+
r2 = "$";
|
|
4263
|
+
}
|
|
4264
|
+
if (typeof r2 === "object") {
|
|
4265
|
+
return pre + TOKEN + JSON.stringify(r2) + TOKEN;
|
|
4266
|
+
}
|
|
4267
|
+
return pre + r2;
|
|
4268
|
+
}
|
|
4269
|
+
function parseInternal(string, env3, opts) {
|
|
4270
|
+
if (!opts) {
|
|
4271
|
+
opts = {};
|
|
4272
|
+
}
|
|
4273
|
+
var BS = opts.escape || "\\";
|
|
4274
|
+
var BAREWORD = "(\\" + BS + `['"` + META + `]|[^\\s'"` + META + "])+";
|
|
4275
|
+
var chunker = new RegExp([
|
|
4276
|
+
"(" + CONTROL + ")",
|
|
4277
|
+
// control chars
|
|
4278
|
+
"(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"
|
|
4279
|
+
].join("|"), "g");
|
|
4280
|
+
var matches = matchAll(string, chunker);
|
|
4281
|
+
if (matches.length === 0) {
|
|
4282
|
+
return [];
|
|
4283
|
+
}
|
|
4284
|
+
if (!env3) {
|
|
4285
|
+
env3 = {};
|
|
4286
|
+
}
|
|
4287
|
+
var commented = false;
|
|
4288
|
+
return matches.map(function(match) {
|
|
4289
|
+
var s = match[0];
|
|
4290
|
+
if (!s || commented) {
|
|
4291
|
+
return void 0;
|
|
4292
|
+
}
|
|
4293
|
+
if (controlRE.test(s)) {
|
|
4294
|
+
return { op: s };
|
|
4295
|
+
}
|
|
4296
|
+
var quote2 = false;
|
|
4297
|
+
var esc = false;
|
|
4298
|
+
var out = "";
|
|
4299
|
+
var isGlob = false;
|
|
4300
|
+
var i2;
|
|
4301
|
+
function parseEnvVar() {
|
|
4302
|
+
i2 += 1;
|
|
4303
|
+
var varend;
|
|
4304
|
+
var varname;
|
|
4305
|
+
var char = s.charAt(i2);
|
|
4306
|
+
if (char === "{") {
|
|
4307
|
+
i2 += 1;
|
|
4308
|
+
if (s.charAt(i2) === "}") {
|
|
4309
|
+
throw new Error("Bad substitution: " + s.slice(i2 - 2, i2 + 1));
|
|
4310
|
+
}
|
|
4311
|
+
varend = s.indexOf("}", i2);
|
|
4312
|
+
if (varend < 0) {
|
|
4313
|
+
throw new Error("Bad substitution: " + s.slice(i2));
|
|
4314
|
+
}
|
|
4315
|
+
varname = s.slice(i2, varend);
|
|
4316
|
+
i2 = varend;
|
|
4317
|
+
} else if (/[*@#?$!_-]/.test(char)) {
|
|
4318
|
+
varname = char;
|
|
4319
|
+
i2 += 1;
|
|
4320
|
+
} else {
|
|
4321
|
+
var slicedFromI = s.slice(i2);
|
|
4322
|
+
varend = slicedFromI.match(/[^\w\d_]/);
|
|
4323
|
+
if (!varend) {
|
|
4324
|
+
varname = slicedFromI;
|
|
4325
|
+
i2 = s.length;
|
|
4326
|
+
} else {
|
|
4327
|
+
varname = slicedFromI.slice(0, varend.index);
|
|
4328
|
+
i2 += varend.index - 1;
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
return getVar(env3, "", varname);
|
|
4332
|
+
}
|
|
4333
|
+
for (i2 = 0; i2 < s.length; i2++) {
|
|
4334
|
+
var c2 = s.charAt(i2);
|
|
4335
|
+
isGlob = isGlob || !quote2 && (c2 === "*" || c2 === "?");
|
|
4336
|
+
if (esc) {
|
|
4337
|
+
out += c2;
|
|
4338
|
+
esc = false;
|
|
4339
|
+
} else if (quote2) {
|
|
4340
|
+
if (c2 === quote2) {
|
|
4341
|
+
quote2 = false;
|
|
4342
|
+
} else if (quote2 == SQ) {
|
|
4343
|
+
out += c2;
|
|
4344
|
+
} else {
|
|
4345
|
+
if (c2 === BS) {
|
|
4346
|
+
i2 += 1;
|
|
4347
|
+
c2 = s.charAt(i2);
|
|
4348
|
+
if (c2 === DQ || c2 === BS || c2 === DS) {
|
|
4349
|
+
out += c2;
|
|
4350
|
+
} else {
|
|
4351
|
+
out += BS + c2;
|
|
4352
|
+
}
|
|
4353
|
+
} else if (c2 === DS) {
|
|
4354
|
+
out += parseEnvVar();
|
|
4355
|
+
} else {
|
|
4356
|
+
out += c2;
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
} else if (c2 === DQ || c2 === SQ) {
|
|
4360
|
+
quote2 = c2;
|
|
4361
|
+
} else if (controlRE.test(c2)) {
|
|
4362
|
+
return { op: s };
|
|
4363
|
+
} else if (hash.test(c2)) {
|
|
4364
|
+
commented = true;
|
|
4365
|
+
var commentObj = { comment: string.slice(match.index + i2 + 1) };
|
|
4366
|
+
if (out.length) {
|
|
4367
|
+
return [out, commentObj];
|
|
4368
|
+
}
|
|
4369
|
+
return [commentObj];
|
|
4370
|
+
} else if (c2 === BS) {
|
|
4371
|
+
esc = true;
|
|
4372
|
+
} else if (c2 === DS) {
|
|
4373
|
+
out += parseEnvVar();
|
|
4374
|
+
} else {
|
|
4375
|
+
out += c2;
|
|
4376
|
+
}
|
|
4377
|
+
}
|
|
4378
|
+
if (isGlob) {
|
|
4379
|
+
return { op: "glob", pattern: out };
|
|
4380
|
+
}
|
|
4381
|
+
return out;
|
|
4382
|
+
}).reduce(function(prev, arg) {
|
|
4383
|
+
return typeof arg === "undefined" ? prev : prev.concat(arg);
|
|
4384
|
+
}, []);
|
|
4385
|
+
}
|
|
4386
|
+
module2.exports = function parse3(s, env3, opts) {
|
|
4387
|
+
var mapped = parseInternal(s, env3, opts);
|
|
4388
|
+
if (typeof env3 !== "function") {
|
|
4389
|
+
return mapped;
|
|
4390
|
+
}
|
|
4391
|
+
return mapped.reduce(function(acc, s2) {
|
|
4392
|
+
if (typeof s2 === "object") {
|
|
4393
|
+
return acc.concat(s2);
|
|
4394
|
+
}
|
|
4395
|
+
var xs = s2.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
|
|
4396
|
+
if (xs.length === 1) {
|
|
4397
|
+
return acc.concat(xs[0]);
|
|
4398
|
+
}
|
|
4399
|
+
return acc.concat(xs.filter(Boolean).map(function(x2) {
|
|
4400
|
+
if (startsWithToken.test(x2)) {
|
|
4401
|
+
return JSON.parse(x2.split(TOKEN)[1]);
|
|
4402
|
+
}
|
|
4403
|
+
return x2;
|
|
4404
|
+
}));
|
|
4405
|
+
}, []);
|
|
4406
|
+
};
|
|
4407
|
+
}
|
|
4408
|
+
});
|
|
4409
|
+
|
|
4410
|
+
// ../../node_modules/.pnpm/shell-quote@1.8.1/node_modules/shell-quote/index.js
|
|
4411
|
+
var require_shell_quote = __commonJS({
|
|
4412
|
+
"../../node_modules/.pnpm/shell-quote@1.8.1/node_modules/shell-quote/index.js"(exports) {
|
|
4413
|
+
"use strict";
|
|
4414
|
+
exports.quote = require_quote();
|
|
4415
|
+
exports.parse = require_parse3();
|
|
4416
|
+
}
|
|
4417
|
+
});
|
|
4418
|
+
|
|
4192
4419
|
// ../../node_modules/.pnpm/tslib@2.5.3/node_modules/tslib/tslib.es6.mjs
|
|
4193
4420
|
var tslib_es6_exports = {};
|
|
4194
4421
|
__export(tslib_es6_exports, {
|
|
@@ -4223,35 +4450,35 @@ __export(tslib_es6_exports, {
|
|
|
4223
4450
|
__values: () => __values,
|
|
4224
4451
|
default: () => tslib_es6_default
|
|
4225
4452
|
});
|
|
4226
|
-
function __extends(
|
|
4453
|
+
function __extends(d2, b2) {
|
|
4227
4454
|
if (typeof b2 !== "function" && b2 !== null)
|
|
4228
4455
|
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
4229
|
-
extendStatics(
|
|
4456
|
+
extendStatics(d2, b2);
|
|
4230
4457
|
function __() {
|
|
4231
|
-
this.constructor =
|
|
4458
|
+
this.constructor = d2;
|
|
4232
4459
|
}
|
|
4233
|
-
|
|
4460
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
4234
4461
|
}
|
|
4235
4462
|
function __rest(s, e) {
|
|
4236
4463
|
var t = {};
|
|
4237
|
-
for (var
|
|
4238
|
-
if (Object.prototype.hasOwnProperty.call(s,
|
|
4239
|
-
t[
|
|
4464
|
+
for (var p2 in s)
|
|
4465
|
+
if (Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0)
|
|
4466
|
+
t[p2] = s[p2];
|
|
4240
4467
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
4241
|
-
for (var i = 0,
|
|
4242
|
-
if (e.indexOf(
|
|
4243
|
-
t[
|
|
4468
|
+
for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++) {
|
|
4469
|
+
if (e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]))
|
|
4470
|
+
t[p2[i]] = s[p2[i]];
|
|
4244
4471
|
}
|
|
4245
4472
|
return t;
|
|
4246
4473
|
}
|
|
4247
4474
|
function __decorate(decorators, target, key, desc) {
|
|
4248
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
4475
|
+
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
|
|
4249
4476
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4250
4477
|
r2 = Reflect.decorate(decorators, target, key, desc);
|
|
4251
4478
|
else
|
|
4252
4479
|
for (var i = decorators.length - 1; i >= 0; i--)
|
|
4253
|
-
if (
|
|
4254
|
-
r2 = (c2 < 3 ?
|
|
4480
|
+
if (d2 = decorators[i])
|
|
4481
|
+
r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
|
|
4255
4482
|
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
4256
4483
|
}
|
|
4257
4484
|
function __param(paramIndex, decorator) {
|
|
@@ -4260,25 +4487,25 @@ function __param(paramIndex, decorator) {
|
|
|
4260
4487
|
};
|
|
4261
4488
|
}
|
|
4262
4489
|
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4263
|
-
function accept(
|
|
4264
|
-
if (
|
|
4490
|
+
function accept(f) {
|
|
4491
|
+
if (f !== void 0 && typeof f !== "function")
|
|
4265
4492
|
throw new TypeError("Function expected");
|
|
4266
|
-
return
|
|
4493
|
+
return f;
|
|
4267
4494
|
}
|
|
4268
4495
|
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4269
4496
|
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
4270
4497
|
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
4271
|
-
var
|
|
4498
|
+
var _2, done = false;
|
|
4272
4499
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
4273
4500
|
var context = {};
|
|
4274
|
-
for (var
|
|
4275
|
-
context[
|
|
4276
|
-
for (var
|
|
4277
|
-
context.access[
|
|
4278
|
-
context.addInitializer = function(
|
|
4501
|
+
for (var p2 in contextIn)
|
|
4502
|
+
context[p2] = p2 === "access" ? {} : contextIn[p2];
|
|
4503
|
+
for (var p2 in contextIn.access)
|
|
4504
|
+
context.access[p2] = contextIn.access[p2];
|
|
4505
|
+
context.addInitializer = function(f) {
|
|
4279
4506
|
if (done)
|
|
4280
4507
|
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
4281
|
-
extraInitializers.push(accept(
|
|
4508
|
+
extraInitializers.push(accept(f || null));
|
|
4282
4509
|
};
|
|
4283
4510
|
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
4284
4511
|
if (kind === "accessor") {
|
|
@@ -4286,17 +4513,17 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
|
|
4286
4513
|
continue;
|
|
4287
4514
|
if (result === null || typeof result !== "object")
|
|
4288
4515
|
throw new TypeError("Object expected");
|
|
4289
|
-
if (
|
|
4290
|
-
descriptor.get =
|
|
4291
|
-
if (
|
|
4292
|
-
descriptor.set =
|
|
4293
|
-
if (
|
|
4294
|
-
initializers.unshift(
|
|
4295
|
-
} else if (
|
|
4516
|
+
if (_2 = accept(result.get))
|
|
4517
|
+
descriptor.get = _2;
|
|
4518
|
+
if (_2 = accept(result.set))
|
|
4519
|
+
descriptor.set = _2;
|
|
4520
|
+
if (_2 = accept(result.init))
|
|
4521
|
+
initializers.unshift(_2);
|
|
4522
|
+
} else if (_2 = accept(result)) {
|
|
4296
4523
|
if (kind === "field")
|
|
4297
|
-
initializers.unshift(
|
|
4524
|
+
initializers.unshift(_2);
|
|
4298
4525
|
else
|
|
4299
|
-
descriptor[key] =
|
|
4526
|
+
descriptor[key] = _2;
|
|
4300
4527
|
}
|
|
4301
4528
|
}
|
|
4302
4529
|
if (target)
|
|
@@ -4313,10 +4540,10 @@ function __runInitializers(thisArg, initializers, value) {
|
|
|
4313
4540
|
function __propKey(x2) {
|
|
4314
4541
|
return typeof x2 === "symbol" ? x2 : "".concat(x2);
|
|
4315
4542
|
}
|
|
4316
|
-
function __setFunctionName(
|
|
4543
|
+
function __setFunctionName(f, name2, prefix) {
|
|
4317
4544
|
if (typeof name2 === "symbol")
|
|
4318
4545
|
name2 = name2.description ? "[".concat(name2.description, "]") : "";
|
|
4319
|
-
return Object.defineProperty(
|
|
4546
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name2) : name2 });
|
|
4320
4547
|
}
|
|
4321
4548
|
function __metadata(metadataKey, metadataValue) {
|
|
4322
4549
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
@@ -4350,11 +4577,11 @@ function __awaiter(thisArg, _arguments, P2, generator) {
|
|
|
4350
4577
|
});
|
|
4351
4578
|
}
|
|
4352
4579
|
function __generator(thisArg, body) {
|
|
4353
|
-
var
|
|
4580
|
+
var _2 = { label: 0, sent: function() {
|
|
4354
4581
|
if (t[0] & 1)
|
|
4355
4582
|
throw t[1];
|
|
4356
4583
|
return t[1];
|
|
4357
|
-
}, trys: [], ops: [] },
|
|
4584
|
+
}, trys: [], ops: [] }, f, y2, t, g2;
|
|
4358
4585
|
return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
4359
4586
|
return this;
|
|
4360
4587
|
}), g2;
|
|
@@ -4364,13 +4591,13 @@ function __generator(thisArg, body) {
|
|
|
4364
4591
|
};
|
|
4365
4592
|
}
|
|
4366
4593
|
function step(op) {
|
|
4367
|
-
if (
|
|
4594
|
+
if (f)
|
|
4368
4595
|
throw new TypeError("Generator is already executing.");
|
|
4369
|
-
while (g2 && (g2 = 0, op[0] && (
|
|
4596
|
+
while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
|
|
4370
4597
|
try {
|
|
4371
|
-
if (
|
|
4598
|
+
if (f = 1, y2 && (t = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t = y2["return"]) && t.call(y2), 0) : y2.next) && !(t = t.call(y2, op[1])).done)
|
|
4372
4599
|
return t;
|
|
4373
|
-
if (
|
|
4600
|
+
if (y2 = 0, t)
|
|
4374
4601
|
op = [op[0] & 2, t.value];
|
|
4375
4602
|
switch (op[0]) {
|
|
4376
4603
|
case 0:
|
|
@@ -4378,77 +4605,77 @@ function __generator(thisArg, body) {
|
|
|
4378
4605
|
t = op;
|
|
4379
4606
|
break;
|
|
4380
4607
|
case 4:
|
|
4381
|
-
|
|
4608
|
+
_2.label++;
|
|
4382
4609
|
return { value: op[1], done: false };
|
|
4383
4610
|
case 5:
|
|
4384
|
-
|
|
4385
|
-
|
|
4611
|
+
_2.label++;
|
|
4612
|
+
y2 = op[1];
|
|
4386
4613
|
op = [0];
|
|
4387
4614
|
continue;
|
|
4388
4615
|
case 7:
|
|
4389
|
-
op =
|
|
4390
|
-
|
|
4616
|
+
op = _2.ops.pop();
|
|
4617
|
+
_2.trys.pop();
|
|
4391
4618
|
continue;
|
|
4392
4619
|
default:
|
|
4393
|
-
if (!(t =
|
|
4394
|
-
|
|
4620
|
+
if (!(t = _2.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
4621
|
+
_2 = 0;
|
|
4395
4622
|
continue;
|
|
4396
4623
|
}
|
|
4397
4624
|
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
4398
|
-
|
|
4625
|
+
_2.label = op[1];
|
|
4399
4626
|
break;
|
|
4400
4627
|
}
|
|
4401
|
-
if (op[0] === 6 &&
|
|
4402
|
-
|
|
4628
|
+
if (op[0] === 6 && _2.label < t[1]) {
|
|
4629
|
+
_2.label = t[1];
|
|
4403
4630
|
t = op;
|
|
4404
4631
|
break;
|
|
4405
4632
|
}
|
|
4406
|
-
if (t &&
|
|
4407
|
-
|
|
4408
|
-
|
|
4633
|
+
if (t && _2.label < t[2]) {
|
|
4634
|
+
_2.label = t[2];
|
|
4635
|
+
_2.ops.push(op);
|
|
4409
4636
|
break;
|
|
4410
4637
|
}
|
|
4411
4638
|
if (t[2])
|
|
4412
|
-
|
|
4413
|
-
|
|
4639
|
+
_2.ops.pop();
|
|
4640
|
+
_2.trys.pop();
|
|
4414
4641
|
continue;
|
|
4415
4642
|
}
|
|
4416
|
-
op = body.call(thisArg,
|
|
4643
|
+
op = body.call(thisArg, _2);
|
|
4417
4644
|
} catch (e) {
|
|
4418
4645
|
op = [6, e];
|
|
4419
|
-
|
|
4646
|
+
y2 = 0;
|
|
4420
4647
|
} finally {
|
|
4421
|
-
|
|
4648
|
+
f = t = 0;
|
|
4422
4649
|
}
|
|
4423
4650
|
if (op[0] & 5)
|
|
4424
4651
|
throw op[1];
|
|
4425
4652
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
4426
4653
|
}
|
|
4427
4654
|
}
|
|
4428
|
-
function __exportStar(m2,
|
|
4429
|
-
for (var
|
|
4430
|
-
if (
|
|
4431
|
-
__createBinding(
|
|
4655
|
+
function __exportStar(m2, o) {
|
|
4656
|
+
for (var p2 in m2)
|
|
4657
|
+
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o, p2))
|
|
4658
|
+
__createBinding(o, m2, p2);
|
|
4432
4659
|
}
|
|
4433
|
-
function __values(
|
|
4434
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s &&
|
|
4660
|
+
function __values(o) {
|
|
4661
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s && o[s], i = 0;
|
|
4435
4662
|
if (m2)
|
|
4436
|
-
return m2.call(
|
|
4437
|
-
if (
|
|
4663
|
+
return m2.call(o);
|
|
4664
|
+
if (o && typeof o.length === "number")
|
|
4438
4665
|
return {
|
|
4439
4666
|
next: function() {
|
|
4440
|
-
if (
|
|
4441
|
-
|
|
4442
|
-
return { value:
|
|
4667
|
+
if (o && i >= o.length)
|
|
4668
|
+
o = void 0;
|
|
4669
|
+
return { value: o && o[i++], done: !o };
|
|
4443
4670
|
}
|
|
4444
4671
|
};
|
|
4445
4672
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4446
4673
|
}
|
|
4447
|
-
function __read(
|
|
4448
|
-
var m2 = typeof Symbol === "function" &&
|
|
4674
|
+
function __read(o, n) {
|
|
4675
|
+
var m2 = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4449
4676
|
if (!m2)
|
|
4450
|
-
return
|
|
4451
|
-
var i = m2.call(
|
|
4677
|
+
return o;
|
|
4678
|
+
var i = m2.call(o), r2, ar = [], e;
|
|
4452
4679
|
try {
|
|
4453
4680
|
while ((n === void 0 || n-- > 0) && !(r2 = i.next()).done)
|
|
4454
4681
|
ar.push(r2.value);
|
|
@@ -4473,9 +4700,9 @@ function __spread() {
|
|
|
4473
4700
|
function __spreadArrays() {
|
|
4474
4701
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
4475
4702
|
s += arguments[i].length;
|
|
4476
|
-
for (var r2 = Array(s),
|
|
4477
|
-
for (var
|
|
4478
|
-
r2[
|
|
4703
|
+
for (var r2 = Array(s), k2 = 0, i = 0; i < il; i++)
|
|
4704
|
+
for (var a = arguments[i], j2 = 0, jl = a.length; j2 < jl; j2++, k2++)
|
|
4705
|
+
r2[k2] = a[j2];
|
|
4479
4706
|
return r2;
|
|
4480
4707
|
}
|
|
4481
4708
|
function __spreadArray(to, from, pack) {
|
|
@@ -4495,15 +4722,15 @@ function __await(v2) {
|
|
|
4495
4722
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
4496
4723
|
if (!Symbol.asyncIterator)
|
|
4497
4724
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
4498
|
-
var g2 = generator.apply(thisArg, _arguments || []), i,
|
|
4725
|
+
var g2 = generator.apply(thisArg, _arguments || []), i, q2 = [];
|
|
4499
4726
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
4500
4727
|
return this;
|
|
4501
4728
|
}, i;
|
|
4502
4729
|
function verb(n) {
|
|
4503
4730
|
if (g2[n])
|
|
4504
4731
|
i[n] = function(v2) {
|
|
4505
|
-
return new Promise(function(
|
|
4506
|
-
|
|
4732
|
+
return new Promise(function(a, b2) {
|
|
4733
|
+
q2.push([n, v2, a, b2]) > 1 || resume(n, v2);
|
|
4507
4734
|
});
|
|
4508
4735
|
};
|
|
4509
4736
|
}
|
|
@@ -4511,11 +4738,11 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
4511
4738
|
try {
|
|
4512
4739
|
step(g2[n](v2));
|
|
4513
4740
|
} catch (e) {
|
|
4514
|
-
settle(
|
|
4741
|
+
settle(q2[0][3], e);
|
|
4515
4742
|
}
|
|
4516
4743
|
}
|
|
4517
4744
|
function step(r2) {
|
|
4518
|
-
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(
|
|
4745
|
+
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
|
|
4519
4746
|
}
|
|
4520
4747
|
function fulfill(value) {
|
|
4521
4748
|
resume("next", value);
|
|
@@ -4523,41 +4750,41 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
4523
4750
|
function reject(value) {
|
|
4524
4751
|
resume("throw", value);
|
|
4525
4752
|
}
|
|
4526
|
-
function settle(
|
|
4527
|
-
if (
|
|
4528
|
-
resume(
|
|
4753
|
+
function settle(f, v2) {
|
|
4754
|
+
if (f(v2), q2.shift(), q2.length)
|
|
4755
|
+
resume(q2[0][0], q2[0][1]);
|
|
4529
4756
|
}
|
|
4530
4757
|
}
|
|
4531
|
-
function __asyncDelegator(
|
|
4532
|
-
var i,
|
|
4758
|
+
function __asyncDelegator(o) {
|
|
4759
|
+
var i, p2;
|
|
4533
4760
|
return i = {}, verb("next"), verb("throw", function(e) {
|
|
4534
4761
|
throw e;
|
|
4535
4762
|
}), verb("return"), i[Symbol.iterator] = function() {
|
|
4536
4763
|
return this;
|
|
4537
4764
|
}, i;
|
|
4538
|
-
function verb(n,
|
|
4539
|
-
i[n] =
|
|
4540
|
-
return (
|
|
4541
|
-
} :
|
|
4765
|
+
function verb(n, f) {
|
|
4766
|
+
i[n] = o[n] ? function(v2) {
|
|
4767
|
+
return (p2 = !p2) ? { value: __await(o[n](v2)), done: false } : f ? f(v2) : v2;
|
|
4768
|
+
} : f;
|
|
4542
4769
|
}
|
|
4543
4770
|
}
|
|
4544
|
-
function __asyncValues(
|
|
4771
|
+
function __asyncValues(o) {
|
|
4545
4772
|
if (!Symbol.asyncIterator)
|
|
4546
4773
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
4547
|
-
var m2 =
|
|
4548
|
-
return m2 ? m2.call(
|
|
4774
|
+
var m2 = o[Symbol.asyncIterator], i;
|
|
4775
|
+
return m2 ? m2.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
4549
4776
|
return this;
|
|
4550
4777
|
}, i);
|
|
4551
4778
|
function verb(n) {
|
|
4552
|
-
i[n] =
|
|
4779
|
+
i[n] = o[n] && function(v2) {
|
|
4553
4780
|
return new Promise(function(resolve9, reject) {
|
|
4554
|
-
v2 =
|
|
4781
|
+
v2 = o[n](v2), settle(resolve9, reject, v2.done, v2.value);
|
|
4555
4782
|
});
|
|
4556
4783
|
};
|
|
4557
4784
|
}
|
|
4558
|
-
function settle(resolve9, reject,
|
|
4785
|
+
function settle(resolve9, reject, d2, v2) {
|
|
4559
4786
|
Promise.resolve(v2).then(function(v3) {
|
|
4560
|
-
resolve9({ value: v3, done:
|
|
4787
|
+
resolve9({ value: v3, done: d2 });
|
|
4561
4788
|
}, reject);
|
|
4562
4789
|
}
|
|
4563
4790
|
}
|
|
@@ -4574,9 +4801,9 @@ function __importStar(mod) {
|
|
|
4574
4801
|
return mod;
|
|
4575
4802
|
var result = {};
|
|
4576
4803
|
if (mod != null) {
|
|
4577
|
-
for (var
|
|
4578
|
-
if (
|
|
4579
|
-
__createBinding(result, mod,
|
|
4804
|
+
for (var k2 in mod)
|
|
4805
|
+
if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
|
|
4806
|
+
__createBinding(result, mod, k2);
|
|
4580
4807
|
}
|
|
4581
4808
|
__setModuleDefault(result, mod);
|
|
4582
4809
|
return result;
|
|
@@ -4584,21 +4811,21 @@ function __importStar(mod) {
|
|
|
4584
4811
|
function __importDefault(mod) {
|
|
4585
4812
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
4586
4813
|
}
|
|
4587
|
-
function __classPrivateFieldGet2(receiver, state, kind,
|
|
4588
|
-
if (kind === "a" && !
|
|
4814
|
+
function __classPrivateFieldGet2(receiver, state, kind, f) {
|
|
4815
|
+
if (kind === "a" && !f)
|
|
4589
4816
|
throw new TypeError("Private accessor was defined without a getter");
|
|
4590
|
-
if (typeof state === "function" ? receiver !== state || !
|
|
4817
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
4591
4818
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4592
|
-
return kind === "m" ?
|
|
4819
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
4593
4820
|
}
|
|
4594
|
-
function __classPrivateFieldSet2(receiver, state, value, kind,
|
|
4821
|
+
function __classPrivateFieldSet2(receiver, state, value, kind, f) {
|
|
4595
4822
|
if (kind === "m")
|
|
4596
4823
|
throw new TypeError("Private method is not writable");
|
|
4597
|
-
if (kind === "a" && !
|
|
4824
|
+
if (kind === "a" && !f)
|
|
4598
4825
|
throw new TypeError("Private accessor was defined without a setter");
|
|
4599
|
-
if (typeof state === "function" ? receiver !== state || !
|
|
4826
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
4600
4827
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
4601
|
-
return kind === "a" ?
|
|
4828
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
4602
4829
|
}
|
|
4603
4830
|
function __classPrivateFieldIn(state, receiver) {
|
|
4604
4831
|
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
@@ -4608,47 +4835,47 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
4608
4835
|
var extendStatics, __assign, __createBinding, __setModuleDefault, tslib_es6_default;
|
|
4609
4836
|
var init_tslib_es6 = __esm({
|
|
4610
4837
|
"../../node_modules/.pnpm/tslib@2.5.3/node_modules/tslib/tslib.es6.mjs"() {
|
|
4611
|
-
extendStatics = function(
|
|
4612
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4613
|
-
|
|
4614
|
-
} || function(
|
|
4615
|
-
for (var
|
|
4616
|
-
if (Object.prototype.hasOwnProperty.call(b3,
|
|
4617
|
-
|
|
4838
|
+
extendStatics = function(d2, b2) {
|
|
4839
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
4840
|
+
d3.__proto__ = b3;
|
|
4841
|
+
} || function(d3, b3) {
|
|
4842
|
+
for (var p2 in b3)
|
|
4843
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
4844
|
+
d3[p2] = b3[p2];
|
|
4618
4845
|
};
|
|
4619
|
-
return extendStatics(
|
|
4846
|
+
return extendStatics(d2, b2);
|
|
4620
4847
|
};
|
|
4621
4848
|
__assign = function() {
|
|
4622
4849
|
__assign = Object.assign || function __assign2(t) {
|
|
4623
4850
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4624
4851
|
s = arguments[i];
|
|
4625
|
-
for (var
|
|
4626
|
-
if (Object.prototype.hasOwnProperty.call(s,
|
|
4627
|
-
t[
|
|
4852
|
+
for (var p2 in s)
|
|
4853
|
+
if (Object.prototype.hasOwnProperty.call(s, p2))
|
|
4854
|
+
t[p2] = s[p2];
|
|
4628
4855
|
}
|
|
4629
4856
|
return t;
|
|
4630
4857
|
};
|
|
4631
4858
|
return __assign.apply(this, arguments);
|
|
4632
4859
|
};
|
|
4633
|
-
__createBinding = Object.create ? function(
|
|
4860
|
+
__createBinding = Object.create ? function(o, m2, k2, k22) {
|
|
4634
4861
|
if (k22 === void 0)
|
|
4635
|
-
k22 =
|
|
4636
|
-
var desc = Object.getOwnPropertyDescriptor(m2,
|
|
4862
|
+
k22 = k2;
|
|
4863
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
4637
4864
|
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
4638
4865
|
desc = { enumerable: true, get: function() {
|
|
4639
|
-
return m2[
|
|
4866
|
+
return m2[k2];
|
|
4640
4867
|
} };
|
|
4641
4868
|
}
|
|
4642
|
-
Object.defineProperty(
|
|
4643
|
-
} : function(
|
|
4869
|
+
Object.defineProperty(o, k22, desc);
|
|
4870
|
+
} : function(o, m2, k2, k22) {
|
|
4644
4871
|
if (k22 === void 0)
|
|
4645
|
-
k22 =
|
|
4646
|
-
|
|
4872
|
+
k22 = k2;
|
|
4873
|
+
o[k22] = m2[k2];
|
|
4647
4874
|
};
|
|
4648
|
-
__setModuleDefault = Object.create ? function(
|
|
4649
|
-
Object.defineProperty(
|
|
4650
|
-
} : function(
|
|
4651
|
-
|
|
4875
|
+
__setModuleDefault = Object.create ? function(o, v2) {
|
|
4876
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
4877
|
+
} : function(o, v2) {
|
|
4878
|
+
o["default"] = v2;
|
|
4652
4879
|
};
|
|
4653
4880
|
tslib_es6_default = {
|
|
4654
4881
|
__extends,
|
|
@@ -5021,9 +5248,9 @@ var require_types = __commonJS({
|
|
|
5021
5248
|
if (value && typeof value === "object") {
|
|
5022
5249
|
var type = value.type;
|
|
5023
5250
|
if (typeof type === "string" && hasOwn.call(defCache, type)) {
|
|
5024
|
-
var
|
|
5025
|
-
if (
|
|
5026
|
-
return
|
|
5251
|
+
var d2 = defCache[type];
|
|
5252
|
+
if (d2.finalized) {
|
|
5253
|
+
return d2;
|
|
5027
5254
|
}
|
|
5028
5255
|
}
|
|
5029
5256
|
}
|
|
@@ -5201,11 +5428,11 @@ var require_types = __commonJS({
|
|
|
5201
5428
|
if (!hasOwn.call(defCache, typeName)) {
|
|
5202
5429
|
throw new Error("");
|
|
5203
5430
|
}
|
|
5204
|
-
var
|
|
5205
|
-
if (
|
|
5431
|
+
var d2 = defCache[typeName];
|
|
5432
|
+
if (d2.finalized !== true) {
|
|
5206
5433
|
throw new Error("");
|
|
5207
5434
|
}
|
|
5208
|
-
return
|
|
5435
|
+
return d2.supertypeList.slice(1);
|
|
5209
5436
|
}
|
|
5210
5437
|
function computeSupertypeLookupTable(candidates) {
|
|
5211
5438
|
var table = {};
|
|
@@ -5213,12 +5440,12 @@ var require_types = __commonJS({
|
|
|
5213
5440
|
var typeNameCount = typeNames.length;
|
|
5214
5441
|
for (var i = 0; i < typeNameCount; ++i) {
|
|
5215
5442
|
var typeName = typeNames[i];
|
|
5216
|
-
var
|
|
5217
|
-
if (
|
|
5443
|
+
var d2 = defCache[typeName];
|
|
5444
|
+
if (d2.finalized !== true) {
|
|
5218
5445
|
throw new Error("" + typeName);
|
|
5219
5446
|
}
|
|
5220
|
-
for (var j2 = 0; j2 <
|
|
5221
|
-
var superTypeName =
|
|
5447
|
+
for (var j2 = 0; j2 < d2.supertypeList.length; ++j2) {
|
|
5448
|
+
var superTypeName = d2.supertypeList[j2];
|
|
5222
5449
|
if (hasOwn.call(candidates, superTypeName)) {
|
|
5223
5450
|
table[typeName] = superTypeName;
|
|
5224
5451
|
break;
|
|
@@ -5262,9 +5489,9 @@ var require_types = __commonJS({
|
|
|
5262
5489
|
}
|
|
5263
5490
|
var namedTypes = {};
|
|
5264
5491
|
function getFieldNames(object) {
|
|
5265
|
-
var
|
|
5266
|
-
if (
|
|
5267
|
-
return
|
|
5492
|
+
var d2 = defFromValue(object);
|
|
5493
|
+
if (d2) {
|
|
5494
|
+
return d2.fieldNames.slice(0);
|
|
5268
5495
|
}
|
|
5269
5496
|
if ("type" in object) {
|
|
5270
5497
|
throw new Error("did not recognize object of type " + JSON.stringify(object.type));
|
|
@@ -5272,9 +5499,9 @@ var require_types = __commonJS({
|
|
|
5272
5499
|
return Object.keys(object);
|
|
5273
5500
|
}
|
|
5274
5501
|
function getFieldValue(object, fieldName) {
|
|
5275
|
-
var
|
|
5276
|
-
if (
|
|
5277
|
-
var field =
|
|
5502
|
+
var d2 = defFromValue(object);
|
|
5503
|
+
if (d2) {
|
|
5504
|
+
var field = d2.allFields[fieldName];
|
|
5278
5505
|
if (field) {
|
|
5279
5506
|
return field.getValue(object);
|
|
5280
5507
|
}
|
|
@@ -5320,15 +5547,15 @@ var require_types = __commonJS({
|
|
|
5320
5547
|
var lastSeen = /* @__PURE__ */ Object.create(null);
|
|
5321
5548
|
for (var pos = 0; pos < list.length; ++pos) {
|
|
5322
5549
|
typeName = list[pos];
|
|
5323
|
-
var
|
|
5324
|
-
if (
|
|
5550
|
+
var d2 = defCache[typeName];
|
|
5551
|
+
if (d2.finalized !== true) {
|
|
5325
5552
|
throw new Error("");
|
|
5326
5553
|
}
|
|
5327
5554
|
if (hasOwn.call(lastSeen, typeName)) {
|
|
5328
5555
|
delete list[lastSeen[typeName]];
|
|
5329
5556
|
}
|
|
5330
5557
|
lastSeen[typeName] = pos;
|
|
5331
|
-
list.push.apply(list,
|
|
5558
|
+
list.push.apply(list, d2.baseNames);
|
|
5332
5559
|
}
|
|
5333
5560
|
for (var to = 0, from = to, len = list.length; from < len; ++from) {
|
|
5334
5561
|
if (hasOwn.call(list, from)) {
|
|
@@ -6624,19 +6851,19 @@ var require_equiv = __commonJS({
|
|
|
6624
6851
|
var isDate = types.builtInTypes.Date;
|
|
6625
6852
|
var isRegExp = types.builtInTypes.RegExp;
|
|
6626
6853
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
6627
|
-
function astNodesAreEquivalent(
|
|
6854
|
+
function astNodesAreEquivalent(a, b2, problemPath) {
|
|
6628
6855
|
if (isArray.check(problemPath)) {
|
|
6629
6856
|
problemPath.length = 0;
|
|
6630
6857
|
} else {
|
|
6631
6858
|
problemPath = null;
|
|
6632
6859
|
}
|
|
6633
|
-
return areEquivalent(
|
|
6860
|
+
return areEquivalent(a, b2, problemPath);
|
|
6634
6861
|
}
|
|
6635
|
-
astNodesAreEquivalent.assert = function(
|
|
6862
|
+
astNodesAreEquivalent.assert = function(a, b2) {
|
|
6636
6863
|
var problemPath = [];
|
|
6637
|
-
if (!astNodesAreEquivalent(
|
|
6864
|
+
if (!astNodesAreEquivalent(a, b2, problemPath)) {
|
|
6638
6865
|
if (problemPath.length === 0) {
|
|
6639
|
-
if (
|
|
6866
|
+
if (a !== b2) {
|
|
6640
6867
|
throw new Error("Nodes must be equal");
|
|
6641
6868
|
}
|
|
6642
6869
|
} else {
|
|
@@ -6650,27 +6877,27 @@ var require_equiv = __commonJS({
|
|
|
6650
6877
|
}
|
|
6651
6878
|
return "[" + JSON.stringify(property) + "]";
|
|
6652
6879
|
}
|
|
6653
|
-
function areEquivalent(
|
|
6654
|
-
if (
|
|
6880
|
+
function areEquivalent(a, b2, problemPath) {
|
|
6881
|
+
if (a === b2) {
|
|
6655
6882
|
return true;
|
|
6656
6883
|
}
|
|
6657
|
-
if (isArray.check(
|
|
6658
|
-
return arraysAreEquivalent(
|
|
6884
|
+
if (isArray.check(a)) {
|
|
6885
|
+
return arraysAreEquivalent(a, b2, problemPath);
|
|
6659
6886
|
}
|
|
6660
|
-
if (isObject.check(
|
|
6661
|
-
return objectsAreEquivalent(
|
|
6887
|
+
if (isObject.check(a)) {
|
|
6888
|
+
return objectsAreEquivalent(a, b2, problemPath);
|
|
6662
6889
|
}
|
|
6663
|
-
if (isDate.check(
|
|
6664
|
-
return isDate.check(b2) && +
|
|
6890
|
+
if (isDate.check(a)) {
|
|
6891
|
+
return isDate.check(b2) && +a === +b2;
|
|
6665
6892
|
}
|
|
6666
|
-
if (isRegExp.check(
|
|
6667
|
-
return isRegExp.check(b2) && (
|
|
6893
|
+
if (isRegExp.check(a)) {
|
|
6894
|
+
return isRegExp.check(b2) && (a.source === b2.source && a.global === b2.global && a.multiline === b2.multiline && a.ignoreCase === b2.ignoreCase);
|
|
6668
6895
|
}
|
|
6669
|
-
return
|
|
6896
|
+
return a == b2;
|
|
6670
6897
|
}
|
|
6671
|
-
function arraysAreEquivalent(
|
|
6672
|
-
isArray.assert(
|
|
6673
|
-
var aLength =
|
|
6898
|
+
function arraysAreEquivalent(a, b2, problemPath) {
|
|
6899
|
+
isArray.assert(a);
|
|
6900
|
+
var aLength = a.length;
|
|
6674
6901
|
if (!isArray.check(b2) || b2.length !== aLength) {
|
|
6675
6902
|
if (problemPath) {
|
|
6676
6903
|
problemPath.push("length");
|
|
@@ -6681,10 +6908,10 @@ var require_equiv = __commonJS({
|
|
|
6681
6908
|
if (problemPath) {
|
|
6682
6909
|
problemPath.push(i);
|
|
6683
6910
|
}
|
|
6684
|
-
if (i in
|
|
6911
|
+
if (i in a !== i in b2) {
|
|
6685
6912
|
return false;
|
|
6686
6913
|
}
|
|
6687
|
-
if (!areEquivalent(
|
|
6914
|
+
if (!areEquivalent(a[i], b2[i], problemPath)) {
|
|
6688
6915
|
return false;
|
|
6689
6916
|
}
|
|
6690
6917
|
if (problemPath) {
|
|
@@ -6696,25 +6923,25 @@ var require_equiv = __commonJS({
|
|
|
6696
6923
|
}
|
|
6697
6924
|
return true;
|
|
6698
6925
|
}
|
|
6699
|
-
function objectsAreEquivalent(
|
|
6700
|
-
isObject.assert(
|
|
6926
|
+
function objectsAreEquivalent(a, b2, problemPath) {
|
|
6927
|
+
isObject.assert(a);
|
|
6701
6928
|
if (!isObject.check(b2)) {
|
|
6702
6929
|
return false;
|
|
6703
6930
|
}
|
|
6704
|
-
if (
|
|
6931
|
+
if (a.type !== b2.type) {
|
|
6705
6932
|
if (problemPath) {
|
|
6706
6933
|
problemPath.push("type");
|
|
6707
6934
|
}
|
|
6708
6935
|
return false;
|
|
6709
6936
|
}
|
|
6710
|
-
var aNames = getFieldNames(
|
|
6937
|
+
var aNames = getFieldNames(a);
|
|
6711
6938
|
var aNameCount = aNames.length;
|
|
6712
6939
|
var bNames = getFieldNames(b2);
|
|
6713
6940
|
var bNameCount = bNames.length;
|
|
6714
6941
|
if (aNameCount === bNameCount) {
|
|
6715
6942
|
for (var i = 0; i < aNameCount; ++i) {
|
|
6716
6943
|
var name2 = aNames[i];
|
|
6717
|
-
var aChild = getFieldValue(
|
|
6944
|
+
var aChild = getFieldValue(a, name2);
|
|
6718
6945
|
var bChild = getFieldValue(b2, name2);
|
|
6719
6946
|
if (problemPath) {
|
|
6720
6947
|
problemPath.push(name2);
|
|
@@ -8867,30 +9094,30 @@ var require_binary_search = __commonJS({
|
|
|
8867
9094
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js
|
|
8868
9095
|
var require_quick_sort = __commonJS({
|
|
8869
9096
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(exports) {
|
|
8870
|
-
function swap(ary, x2,
|
|
9097
|
+
function swap(ary, x2, y2) {
|
|
8871
9098
|
var temp = ary[x2];
|
|
8872
|
-
ary[x2] = ary[
|
|
8873
|
-
ary[
|
|
9099
|
+
ary[x2] = ary[y2];
|
|
9100
|
+
ary[y2] = temp;
|
|
8874
9101
|
}
|
|
8875
9102
|
function randomIntInRange(low, high) {
|
|
8876
9103
|
return Math.round(low + Math.random() * (high - low));
|
|
8877
9104
|
}
|
|
8878
|
-
function doQuickSort(ary, comparator,
|
|
8879
|
-
if (
|
|
8880
|
-
var pivotIndex = randomIntInRange(
|
|
8881
|
-
var i =
|
|
9105
|
+
function doQuickSort(ary, comparator, p2, r2) {
|
|
9106
|
+
if (p2 < r2) {
|
|
9107
|
+
var pivotIndex = randomIntInRange(p2, r2);
|
|
9108
|
+
var i = p2 - 1;
|
|
8882
9109
|
swap(ary, pivotIndex, r2);
|
|
8883
9110
|
var pivot = ary[r2];
|
|
8884
|
-
for (var j2 =
|
|
9111
|
+
for (var j2 = p2; j2 < r2; j2++) {
|
|
8885
9112
|
if (comparator(ary[j2], pivot) <= 0) {
|
|
8886
9113
|
i += 1;
|
|
8887
9114
|
swap(ary, i, j2);
|
|
8888
9115
|
}
|
|
8889
9116
|
}
|
|
8890
9117
|
swap(ary, i + 1, j2);
|
|
8891
|
-
var
|
|
8892
|
-
doQuickSort(ary, comparator,
|
|
8893
|
-
doQuickSort(ary, comparator,
|
|
9118
|
+
var q2 = i + 1;
|
|
9119
|
+
doQuickSort(ary, comparator, p2, q2 - 1);
|
|
9120
|
+
doQuickSort(ary, comparator, q2 + 1, r2);
|
|
8894
9121
|
}
|
|
8895
9122
|
}
|
|
8896
9123
|
exports.quickSort = function(ary, comparator) {
|
|
@@ -9790,13 +10017,13 @@ var require_util2 = __commonJS({
|
|
|
9790
10017
|
var SourceMapGenerator = source_map_1.default.SourceMapGenerator;
|
|
9791
10018
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
9792
10019
|
function getLineTerminator() {
|
|
9793
|
-
return
|
|
10020
|
+
return isBrowser2() ? "\n" : require("os").EOL || "\n";
|
|
9794
10021
|
}
|
|
9795
10022
|
exports.getLineTerminator = getLineTerminator;
|
|
9796
|
-
function
|
|
10023
|
+
function isBrowser2() {
|
|
9797
10024
|
return typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
9798
10025
|
}
|
|
9799
|
-
exports.isBrowser =
|
|
10026
|
+
exports.isBrowser = isBrowser2;
|
|
9800
10027
|
function getOption(options, key, defaultValue) {
|
|
9801
10028
|
if (options && hasOwn.call(options, key)) {
|
|
9802
10029
|
return options[key];
|
|
@@ -10102,7 +10329,7 @@ var require_esprima2 = __commonJS({
|
|
|
10102
10329
|
var jsx_parser_1 = __webpack_require__(3);
|
|
10103
10330
|
var parser_1 = __webpack_require__(8);
|
|
10104
10331
|
var tokenizer_1 = __webpack_require__(15);
|
|
10105
|
-
function
|
|
10332
|
+
function parse3(code, options, delegate) {
|
|
10106
10333
|
var commentHandler = null;
|
|
10107
10334
|
var proxyDelegate = function(node, metadata) {
|
|
10108
10335
|
if (delegate) {
|
|
@@ -10147,17 +10374,17 @@ var require_esprima2 = __commonJS({
|
|
|
10147
10374
|
}
|
|
10148
10375
|
return ast;
|
|
10149
10376
|
}
|
|
10150
|
-
exports2.parse =
|
|
10377
|
+
exports2.parse = parse3;
|
|
10151
10378
|
function parseModule(code, options, delegate) {
|
|
10152
10379
|
var parsingOptions = options || {};
|
|
10153
10380
|
parsingOptions.sourceType = "module";
|
|
10154
|
-
return
|
|
10381
|
+
return parse3(code, parsingOptions, delegate);
|
|
10155
10382
|
}
|
|
10156
10383
|
exports2.parseModule = parseModule;
|
|
10157
10384
|
function parseScript(code, options, delegate) {
|
|
10158
10385
|
var parsingOptions = options || {};
|
|
10159
10386
|
parsingOptions.sourceType = "script";
|
|
10160
|
-
return
|
|
10387
|
+
return parse3(code, parsingOptions, delegate);
|
|
10161
10388
|
}
|
|
10162
10389
|
exports2.parseScript = parseScript;
|
|
10163
10390
|
function tokenize(code, options, delegate) {
|
|
@@ -10415,19 +10642,19 @@ var require_esprima2 = __commonJS({
|
|
|
10415
10642
|
function(module3, exports2, __webpack_require__) {
|
|
10416
10643
|
"use strict";
|
|
10417
10644
|
var __extends2 = this && this.__extends || function() {
|
|
10418
|
-
var extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
10419
|
-
|
|
10420
|
-
} || function(
|
|
10421
|
-
for (var
|
|
10422
|
-
if (b2.hasOwnProperty(
|
|
10423
|
-
|
|
10645
|
+
var extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
10646
|
+
d2.__proto__ = b2;
|
|
10647
|
+
} || function(d2, b2) {
|
|
10648
|
+
for (var p2 in b2)
|
|
10649
|
+
if (b2.hasOwnProperty(p2))
|
|
10650
|
+
d2[p2] = b2[p2];
|
|
10424
10651
|
};
|
|
10425
|
-
return function(
|
|
10426
|
-
extendStatics2(
|
|
10652
|
+
return function(d2, b2) {
|
|
10653
|
+
extendStatics2(d2, b2);
|
|
10427
10654
|
function __() {
|
|
10428
|
-
this.constructor =
|
|
10655
|
+
this.constructor = d2;
|
|
10429
10656
|
}
|
|
10430
|
-
|
|
10657
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
10431
10658
|
};
|
|
10432
10659
|
}();
|
|
10433
10660
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -10504,7 +10731,7 @@ var require_esprima2 = __commonJS({
|
|
|
10504
10731
|
column: this.scanner.index - this.scanner.lineStart
|
|
10505
10732
|
};
|
|
10506
10733
|
};
|
|
10507
|
-
JSXParser2.prototype.scanXHTMLEntity = function(
|
|
10734
|
+
JSXParser2.prototype.scanXHTMLEntity = function(quote2) {
|
|
10508
10735
|
var result = "&";
|
|
10509
10736
|
var valid = true;
|
|
10510
10737
|
var terminated = false;
|
|
@@ -10512,7 +10739,7 @@ var require_esprima2 = __commonJS({
|
|
|
10512
10739
|
var hex = false;
|
|
10513
10740
|
while (!this.scanner.eof() && valid && !terminated) {
|
|
10514
10741
|
var ch = this.scanner.source[this.scanner.index];
|
|
10515
|
-
if (ch ===
|
|
10742
|
+
if (ch === quote2) {
|
|
10516
10743
|
break;
|
|
10517
10744
|
}
|
|
10518
10745
|
terminated = ch === ";";
|
|
@@ -10564,14 +10791,14 @@ var require_esprima2 = __commonJS({
|
|
|
10564
10791
|
}
|
|
10565
10792
|
if (cp3 === 34 || cp3 === 39) {
|
|
10566
10793
|
var start = this.scanner.index;
|
|
10567
|
-
var
|
|
10794
|
+
var quote2 = this.scanner.source[this.scanner.index++];
|
|
10568
10795
|
var str = "";
|
|
10569
10796
|
while (!this.scanner.eof()) {
|
|
10570
10797
|
var ch = this.scanner.source[this.scanner.index++];
|
|
10571
|
-
if (ch ===
|
|
10798
|
+
if (ch === quote2) {
|
|
10572
10799
|
break;
|
|
10573
10800
|
} else if (ch === "&") {
|
|
10574
|
-
str += this.scanXHTMLEntity(
|
|
10801
|
+
str += this.scanXHTMLEntity(quote2);
|
|
10575
10802
|
} else {
|
|
10576
10803
|
str += ch;
|
|
10577
10804
|
}
|
|
@@ -15418,15 +15645,15 @@ var require_esprima2 = __commonJS({
|
|
|
15418
15645
|
};
|
|
15419
15646
|
Scanner2.prototype.scanStringLiteral = function() {
|
|
15420
15647
|
var start = this.index;
|
|
15421
|
-
var
|
|
15422
|
-
assert_1.assert(
|
|
15648
|
+
var quote2 = this.source[start];
|
|
15649
|
+
assert_1.assert(quote2 === "'" || quote2 === '"', "String literal must starts with a quote");
|
|
15423
15650
|
++this.index;
|
|
15424
15651
|
var octal = false;
|
|
15425
15652
|
var str = "";
|
|
15426
15653
|
while (!this.eof()) {
|
|
15427
15654
|
var ch = this.source[this.index++];
|
|
15428
|
-
if (ch ===
|
|
15429
|
-
|
|
15655
|
+
if (ch === quote2) {
|
|
15656
|
+
quote2 = "";
|
|
15430
15657
|
break;
|
|
15431
15658
|
} else if (ch === "\\") {
|
|
15432
15659
|
ch = this.source[this.index++];
|
|
@@ -15497,7 +15724,7 @@ var require_esprima2 = __commonJS({
|
|
|
15497
15724
|
str += ch;
|
|
15498
15725
|
}
|
|
15499
15726
|
}
|
|
15500
|
-
if (
|
|
15727
|
+
if (quote2 !== "") {
|
|
15501
15728
|
this.index = start;
|
|
15502
15729
|
this.throwUnexpectedToken();
|
|
15503
15730
|
}
|
|
@@ -16298,7 +16525,7 @@ var require_esprima3 = __commonJS({
|
|
|
16298
16525
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16299
16526
|
exports.parse = void 0;
|
|
16300
16527
|
var util_1 = require_util2();
|
|
16301
|
-
function
|
|
16528
|
+
function parse3(source, options) {
|
|
16302
16529
|
var comments = [];
|
|
16303
16530
|
var ast = require_esprima2().parse(source, {
|
|
16304
16531
|
loc: true,
|
|
@@ -16316,7 +16543,7 @@ var require_esprima3 = __commonJS({
|
|
|
16316
16543
|
}
|
|
16317
16544
|
return ast;
|
|
16318
16545
|
}
|
|
16319
|
-
exports.parse =
|
|
16546
|
+
exports.parse = parse3;
|
|
16320
16547
|
}
|
|
16321
16548
|
});
|
|
16322
16549
|
|
|
@@ -17450,7 +17677,7 @@ var require_parser = __commonJS({
|
|
|
17450
17677
|
var lines_1 = require_lines();
|
|
17451
17678
|
var comments_1 = require_comments();
|
|
17452
17679
|
var util = tslib_1.__importStar(require_util2());
|
|
17453
|
-
function
|
|
17680
|
+
function parse3(source, options) {
|
|
17454
17681
|
options = options_1.normalize(options);
|
|
17455
17682
|
var lines = lines_1.fromString(source, options);
|
|
17456
17683
|
var sourceWithoutTabs = lines.toString({
|
|
@@ -17522,7 +17749,7 @@ var require_parser = __commonJS({
|
|
|
17522
17749
|
comments_1.attach(comments, program.body.length ? file.program : file, lines);
|
|
17523
17750
|
return new TreeCopier(lines, tokens).copy(file);
|
|
17524
17751
|
}
|
|
17525
|
-
exports.parse =
|
|
17752
|
+
exports.parse = parse3;
|
|
17526
17753
|
var TreeCopier = function TreeCopier2(lines, tokens) {
|
|
17527
17754
|
assert_1.default.ok(this instanceof TreeCopier2);
|
|
17528
17755
|
this.lines = lines;
|
|
@@ -18100,8 +18327,8 @@ var require_patcher = __commonJS({
|
|
|
18100
18327
|
assert_1.default.ok(util_1.comparePos(from, to) <= 0);
|
|
18101
18328
|
toConcat.push(lines.slice(from, to));
|
|
18102
18329
|
}
|
|
18103
|
-
replacements.sort(function(
|
|
18104
|
-
return util_1.comparePos(
|
|
18330
|
+
replacements.sort(function(a, b2) {
|
|
18331
|
+
return util_1.comparePos(a.start, b2.start);
|
|
18105
18332
|
}).forEach(function(rep) {
|
|
18106
18333
|
if (util_1.comparePos(sliceFrom, rep.start) > 0) {
|
|
18107
18334
|
} else {
|
|
@@ -18350,12 +18577,12 @@ var require_patcher = __commonJS({
|
|
|
18350
18577
|
}
|
|
18351
18578
|
delete keys.loc;
|
|
18352
18579
|
var originalReprintCount = reprints.length;
|
|
18353
|
-
for (var
|
|
18354
|
-
if (
|
|
18580
|
+
for (var k2 in keys) {
|
|
18581
|
+
if (k2.charAt(0) === "_") {
|
|
18355
18582
|
continue;
|
|
18356
18583
|
}
|
|
18357
|
-
newPath.stack.push(
|
|
18358
|
-
oldPath.stack.push(
|
|
18584
|
+
newPath.stack.push(k2, types.getFieldValue(newNode, k2));
|
|
18585
|
+
oldPath.stack.push(k2, types.getFieldValue(oldNode, k2));
|
|
18359
18586
|
var canReprint = findAnyReprints(newPath, oldPath, reprints);
|
|
18360
18587
|
newPath.stack.length -= 2;
|
|
18361
18588
|
oldPath.stack.length -= 2;
|
|
@@ -20312,9 +20539,9 @@ var require_printer = __commonJS({
|
|
|
20312
20539
|
if (fun.defaults) {
|
|
20313
20540
|
path3.each(function(defExprPath) {
|
|
20314
20541
|
var i = defExprPath.getName();
|
|
20315
|
-
var
|
|
20316
|
-
if (
|
|
20317
|
-
printed[i] = lines_1.concat([
|
|
20542
|
+
var p2 = printed[i];
|
|
20543
|
+
if (p2 && defExprPath.getValue()) {
|
|
20544
|
+
printed[i] = lines_1.concat([p2, " = ", print2(defExprPath)]);
|
|
20318
20545
|
}
|
|
20319
20546
|
}, "defaults");
|
|
20320
20547
|
}
|
|
@@ -21139,7 +21366,7 @@ var require_lib = __commonJS({
|
|
|
21139
21366
|
}
|
|
21140
21367
|
parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) {
|
|
21141
21368
|
super.parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse);
|
|
21142
|
-
const directiveStatements = node.directives.map((
|
|
21369
|
+
const directiveStatements = node.directives.map((d2) => this.directiveToStmt(d2));
|
|
21143
21370
|
node.body = directiveStatements.concat(node.body);
|
|
21144
21371
|
delete node.directives;
|
|
21145
21372
|
}
|
|
@@ -23784,13 +24011,13 @@ var require_lib = __commonJS({
|
|
|
23784
24011
|
this.state.pos = pos;
|
|
23785
24012
|
return code;
|
|
23786
24013
|
}
|
|
23787
|
-
readString(
|
|
24014
|
+
readString(quote2) {
|
|
23788
24015
|
const {
|
|
23789
24016
|
str,
|
|
23790
24017
|
pos,
|
|
23791
24018
|
curLine,
|
|
23792
24019
|
lineStart
|
|
23793
|
-
} = readStringContents(
|
|
24020
|
+
} = readStringContents(quote2 === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string);
|
|
23794
24021
|
this.state.pos = pos + 1;
|
|
23795
24022
|
this.state.lineStart = lineStart;
|
|
23796
24023
|
this.state.curLine = curLine;
|
|
@@ -25944,14 +26171,14 @@ var require_lib = __commonJS({
|
|
|
25944
26171
|
super.checkParams(node, false, true);
|
|
25945
26172
|
this.scope.exit();
|
|
25946
26173
|
}
|
|
25947
|
-
forwardNoArrowParamsConversionAt(node,
|
|
26174
|
+
forwardNoArrowParamsConversionAt(node, parse4) {
|
|
25948
26175
|
let result;
|
|
25949
26176
|
if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
|
|
25950
26177
|
this.state.noArrowParamsConversionAt.push(this.state.start);
|
|
25951
|
-
result =
|
|
26178
|
+
result = parse4();
|
|
25952
26179
|
this.state.noArrowParamsConversionAt.pop();
|
|
25953
26180
|
} else {
|
|
25954
|
-
result =
|
|
26181
|
+
result = parse4();
|
|
25955
26182
|
}
|
|
25956
26183
|
return result;
|
|
25957
26184
|
}
|
|
@@ -27373,7 +27600,7 @@ var require_lib = __commonJS({
|
|
|
27373
27600
|
this.state.lineStart = this.state.pos;
|
|
27374
27601
|
return out;
|
|
27375
27602
|
}
|
|
27376
|
-
jsxReadString(
|
|
27603
|
+
jsxReadString(quote2) {
|
|
27377
27604
|
let out = "";
|
|
27378
27605
|
let chunkStart = ++this.state.pos;
|
|
27379
27606
|
for (; ; ) {
|
|
@@ -27383,7 +27610,7 @@ var require_lib = __commonJS({
|
|
|
27383
27610
|
});
|
|
27384
27611
|
}
|
|
27385
27612
|
const ch = this.input.charCodeAt(this.state.pos);
|
|
27386
|
-
if (ch ===
|
|
27613
|
+
if (ch === quote2)
|
|
27387
27614
|
break;
|
|
27388
27615
|
if (ch === 38) {
|
|
27389
27616
|
out += this.input.slice(chunkStart, this.state.pos);
|
|
@@ -29562,23 +29789,23 @@ var require_lib = __commonJS({
|
|
|
29562
29789
|
this.sawUnambiguousESM = true;
|
|
29563
29790
|
return this.finishNode(node, "TSExternalModuleReference");
|
|
29564
29791
|
}
|
|
29565
|
-
tsLookAhead(
|
|
29792
|
+
tsLookAhead(f) {
|
|
29566
29793
|
const state = this.state.clone();
|
|
29567
|
-
const res =
|
|
29794
|
+
const res = f();
|
|
29568
29795
|
this.state = state;
|
|
29569
29796
|
return res;
|
|
29570
29797
|
}
|
|
29571
|
-
tsTryParseAndCatch(
|
|
29572
|
-
const result = this.tryParse((abort) =>
|
|
29798
|
+
tsTryParseAndCatch(f) {
|
|
29799
|
+
const result = this.tryParse((abort) => f() || abort());
|
|
29573
29800
|
if (result.aborted || !result.node)
|
|
29574
29801
|
return;
|
|
29575
29802
|
if (result.error)
|
|
29576
29803
|
this.state = result.failState;
|
|
29577
29804
|
return result.node;
|
|
29578
29805
|
}
|
|
29579
|
-
tsTryParse(
|
|
29806
|
+
tsTryParse(f) {
|
|
29580
29807
|
const state = this.state.clone();
|
|
29581
|
-
const result =
|
|
29808
|
+
const result = f();
|
|
29582
29809
|
if (result !== void 0 && result !== false) {
|
|
29583
29810
|
return result;
|
|
29584
29811
|
}
|
|
@@ -31132,11 +31359,11 @@ var require_lib = __commonJS({
|
|
|
31132
31359
|
const [expectedName, expectedOptions] = typeof expectedConfig === "string" ? [expectedConfig, {}] : expectedConfig;
|
|
31133
31360
|
const expectedKeys = Object.keys(expectedOptions);
|
|
31134
31361
|
const expectedOptionsIsEmpty = expectedKeys.length === 0;
|
|
31135
|
-
return plugins.some((
|
|
31136
|
-
if (typeof
|
|
31137
|
-
return expectedOptionsIsEmpty &&
|
|
31362
|
+
return plugins.some((p2) => {
|
|
31363
|
+
if (typeof p2 === "string") {
|
|
31364
|
+
return expectedOptionsIsEmpty && p2 === expectedName;
|
|
31138
31365
|
} else {
|
|
31139
|
-
const [pluginName, pluginOptions] =
|
|
31366
|
+
const [pluginName, pluginOptions] = p2;
|
|
31140
31367
|
if (pluginName !== expectedName) {
|
|
31141
31368
|
return false;
|
|
31142
31369
|
}
|
|
@@ -31188,7 +31415,7 @@ var require_lib = __commonJS({
|
|
|
31188
31415
|
if (hasPlugin(plugins, "pipelineOperator")) {
|
|
31189
31416
|
const proposal = getPluginOption(plugins, "pipelineOperator", "proposal");
|
|
31190
31417
|
if (!PIPELINE_PROPOSALS.includes(proposal)) {
|
|
31191
|
-
const proposalList = PIPELINE_PROPOSALS.map((
|
|
31418
|
+
const proposalList = PIPELINE_PROPOSALS.map((p2) => `"${p2}"`).join(", ");
|
|
31192
31419
|
throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`);
|
|
31193
31420
|
}
|
|
31194
31421
|
const tupleSyntaxIsHash = hasPlugin(plugins, ["recordAndTuple", {
|
|
@@ -31228,7 +31455,7 @@ var require_lib = __commonJS({
|
|
|
31228
31455
|
throw new Error("Cannot combine importAssertions and importAttributes plugins.");
|
|
31229
31456
|
}
|
|
31230
31457
|
if (hasPlugin(plugins, "recordAndTuple") && getPluginOption(plugins, "recordAndTuple", "syntaxType") != null && !RECORD_AND_TUPLE_SYNTAX_TYPES.includes(getPluginOption(plugins, "recordAndTuple", "syntaxType"))) {
|
|
31231
|
-
throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + RECORD_AND_TUPLE_SYNTAX_TYPES.map((
|
|
31458
|
+
throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + RECORD_AND_TUPLE_SYNTAX_TYPES.map((p2) => `'${p2}'`).join(", "));
|
|
31232
31459
|
}
|
|
31233
31460
|
if (hasPlugin(plugins, "asyncDoExpressions") && !hasPlugin(plugins, "doExpressions")) {
|
|
31234
31461
|
const error = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
|
|
@@ -35119,7 +35346,7 @@ var require_lib = __commonJS({
|
|
|
35119
35346
|
}
|
|
35120
35347
|
return pluginMap;
|
|
35121
35348
|
}
|
|
35122
|
-
function
|
|
35349
|
+
function parse3(input, options) {
|
|
35123
35350
|
var _options;
|
|
35124
35351
|
if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
|
|
35125
35352
|
options = Object.assign({}, options);
|
|
@@ -35189,7 +35416,7 @@ var require_lib = __commonJS({
|
|
|
35189
35416
|
}
|
|
35190
35417
|
return cls;
|
|
35191
35418
|
}
|
|
35192
|
-
exports.parse =
|
|
35419
|
+
exports.parse = parse3;
|
|
35193
35420
|
exports.parseExpression = parseExpression;
|
|
35194
35421
|
exports.tokTypes = tokTypes;
|
|
35195
35422
|
}
|
|
@@ -35214,12 +35441,12 @@ var require_babel2 = __commonJS({
|
|
|
35214
35441
|
}
|
|
35215
35442
|
}
|
|
35216
35443
|
}();
|
|
35217
|
-
function
|
|
35444
|
+
function parse3(source, options) {
|
|
35218
35445
|
var babelOptions = _babel_options_1.default(options);
|
|
35219
35446
|
babelOptions.plugins.push("jsx", "flow");
|
|
35220
35447
|
return exports.parser.parse(source, babelOptions);
|
|
35221
35448
|
}
|
|
35222
|
-
exports.parse =
|
|
35449
|
+
exports.parse = parse3;
|
|
35223
35450
|
}
|
|
35224
35451
|
});
|
|
35225
35452
|
|
|
@@ -35232,12 +35459,12 @@ var require_typescript2 = __commonJS({
|
|
|
35232
35459
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
35233
35460
|
var babel_1 = require_babel2();
|
|
35234
35461
|
var _babel_options_1 = tslib_1.__importDefault(require_babel_options());
|
|
35235
|
-
function
|
|
35462
|
+
function parse3(source, options) {
|
|
35236
35463
|
var babelOptions = _babel_options_1.default(options);
|
|
35237
35464
|
babelOptions.plugins.push("typescript");
|
|
35238
35465
|
return babel_1.parser.parse(source, babelOptions);
|
|
35239
35466
|
}
|
|
35240
|
-
exports.parse =
|
|
35467
|
+
exports.parse = parse3;
|
|
35241
35468
|
}
|
|
35242
35469
|
});
|
|
35243
35470
|
|
|
@@ -35250,7 +35477,7 @@ var require_reader = __commonJS({
|
|
|
35250
35477
|
return this;
|
|
35251
35478
|
}
|
|
35252
35479
|
BufferReader.read = function(buffer, offset, length) {
|
|
35253
|
-
let
|
|
35480
|
+
let a = [];
|
|
35254
35481
|
let c2 = Math.ceil(length / 8);
|
|
35255
35482
|
let l2 = Math.floor(offset / 8);
|
|
35256
35483
|
const m2 = offset % 8;
|
|
@@ -35259,20 +35486,20 @@ var require_reader = __commonJS({
|
|
|
35259
35486
|
for (let i = 7; i >= 0; i--) {
|
|
35260
35487
|
r2[7 - i] = n & Math.pow(2, i) ? 1 : 0;
|
|
35261
35488
|
}
|
|
35262
|
-
|
|
35489
|
+
a = a.concat(r2);
|
|
35263
35490
|
}
|
|
35264
|
-
function
|
|
35491
|
+
function p2(a2) {
|
|
35265
35492
|
let n = 0;
|
|
35266
|
-
const
|
|
35267
|
-
for (let i =
|
|
35268
|
-
if (
|
|
35493
|
+
const f = a2.length - 1;
|
|
35494
|
+
for (let i = f; i >= 0; i--) {
|
|
35495
|
+
if (a2[f - i])
|
|
35269
35496
|
n += Math.pow(2, i);
|
|
35270
35497
|
}
|
|
35271
35498
|
return n;
|
|
35272
35499
|
}
|
|
35273
35500
|
while (c2--)
|
|
35274
35501
|
t(buffer.readUInt8(l2++));
|
|
35275
|
-
return
|
|
35502
|
+
return p2(a.slice(m2, m2 + length));
|
|
35276
35503
|
};
|
|
35277
35504
|
BufferReader.prototype.read = function(size) {
|
|
35278
35505
|
const val = BufferReader.read(this.buffer, this.offset, size);
|
|
@@ -35289,9 +35516,9 @@ var require_writer = __commonJS({
|
|
|
35289
35516
|
function BufferWriter() {
|
|
35290
35517
|
this.buffer = [];
|
|
35291
35518
|
}
|
|
35292
|
-
BufferWriter.prototype.write = function(
|
|
35519
|
+
BufferWriter.prototype.write = function(d2, size) {
|
|
35293
35520
|
for (let i = 0; i < size; i++) {
|
|
35294
|
-
this.buffer.push(
|
|
35521
|
+
this.buffer.push(d2 & Math.pow(2, size - i - 1) ? 1 : 0);
|
|
35295
35522
|
}
|
|
35296
35523
|
};
|
|
35297
35524
|
BufferWriter.prototype.writeBuffer = function(b2) {
|
|
@@ -35474,8 +35701,8 @@ var require_packet = __commonJS({
|
|
|
35474
35701
|
this.qdcount = 0;
|
|
35475
35702
|
this.nscount = 0;
|
|
35476
35703
|
this.arcount = 0;
|
|
35477
|
-
for (const
|
|
35478
|
-
this[
|
|
35704
|
+
for (const k2 in header) {
|
|
35705
|
+
this[k2] = header[k2];
|
|
35479
35706
|
}
|
|
35480
35707
|
return this;
|
|
35481
35708
|
};
|
|
@@ -35522,8 +35749,8 @@ var require_packet = __commonJS({
|
|
|
35522
35749
|
class: Packet.CLASS.ANY
|
|
35523
35750
|
};
|
|
35524
35751
|
if (typeof name2 === "object") {
|
|
35525
|
-
for (const
|
|
35526
|
-
this[
|
|
35752
|
+
for (const k2 in name2) {
|
|
35753
|
+
this[k2] = name2[k2] || defaults[k2];
|
|
35527
35754
|
}
|
|
35528
35755
|
} else {
|
|
35529
35756
|
this.name = name2;
|
|
@@ -35622,15 +35849,15 @@ var require_packet = __commonJS({
|
|
|
35622
35849
|
reader = new Packet.Reader(reader);
|
|
35623
35850
|
}
|
|
35624
35851
|
const name2 = [];
|
|
35625
|
-
let
|
|
35852
|
+
let o;
|
|
35626
35853
|
let len = reader.read(8);
|
|
35627
35854
|
while (len) {
|
|
35628
35855
|
if ((len & Packet.Name.COPY) === Packet.Name.COPY) {
|
|
35629
35856
|
len -= Packet.Name.COPY;
|
|
35630
35857
|
len = len << 8;
|
|
35631
35858
|
const pos = len + reader.read(8);
|
|
35632
|
-
if (!
|
|
35633
|
-
|
|
35859
|
+
if (!o)
|
|
35860
|
+
o = reader.offset;
|
|
35634
35861
|
reader.offset = pos * 8;
|
|
35635
35862
|
len = reader.read(8);
|
|
35636
35863
|
continue;
|
|
@@ -35642,8 +35869,8 @@ var require_packet = __commonJS({
|
|
|
35642
35869
|
len = reader.read(8);
|
|
35643
35870
|
}
|
|
35644
35871
|
}
|
|
35645
|
-
if (
|
|
35646
|
-
reader.offset =
|
|
35872
|
+
if (o)
|
|
35873
|
+
reader.offset = o;
|
|
35647
35874
|
return name2.join(".");
|
|
35648
35875
|
},
|
|
35649
35876
|
encode: function(domain, writer) {
|
|
@@ -35877,11 +36104,11 @@ var require_packet = __commonJS({
|
|
|
35877
36104
|
return rdata.ednsCode === Packet.EDNS_OPTION_CODE[type];
|
|
35878
36105
|
})[0];
|
|
35879
36106
|
if (encoder in Packet.Resource.EDNS && Packet.Resource.EDNS[encoder].encode) {
|
|
35880
|
-
const
|
|
35881
|
-
Packet.Resource.EDNS[encoder].encode(rdata,
|
|
36107
|
+
const w2 = new Packet.Writer();
|
|
36108
|
+
Packet.Resource.EDNS[encoder].encode(rdata, w2);
|
|
35882
36109
|
rdataWriter.write(rdata.ednsCode, 16);
|
|
35883
|
-
rdataWriter.write(
|
|
35884
|
-
rdataWriter.writeBuffer(
|
|
36110
|
+
rdataWriter.write(w2.buffer.length / 8, 16);
|
|
36111
|
+
rdataWriter.writeBuffer(w2);
|
|
35885
36112
|
} else {
|
|
35886
36113
|
debug2("node-dns > unknown EDNS rdata encoder %s(%j)", encoder, rdata.ednsCode);
|
|
35887
36114
|
}
|
|
@@ -41396,7 +41623,7 @@ var require_util4 = __commonJS({
|
|
|
41396
41623
|
if (parsedMetadata.length === 0) {
|
|
41397
41624
|
return true;
|
|
41398
41625
|
}
|
|
41399
|
-
const list = parsedMetadata.sort((c2,
|
|
41626
|
+
const list = parsedMetadata.sort((c2, d2) => d2.algo.localeCompare(c2.algo));
|
|
41400
41627
|
const strongest = list[0].algo;
|
|
41401
41628
|
const metadata = list.filter((item) => item.algo === strongest);
|
|
41402
41629
|
for (const item of metadata) {
|
|
@@ -41432,8 +41659,8 @@ var require_util4 = __commonJS({
|
|
|
41432
41659
|
}
|
|
41433
41660
|
function tryUpgradeRequestToAPotentiallyTrustworthyURL(request2) {
|
|
41434
41661
|
}
|
|
41435
|
-
function sameOrigin(
|
|
41436
|
-
if (
|
|
41662
|
+
function sameOrigin(A, B) {
|
|
41663
|
+
if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
|
|
41437
41664
|
return true;
|
|
41438
41665
|
}
|
|
41439
41666
|
return false;
|
|
@@ -42273,7 +42500,7 @@ var require_file = __commonJS({
|
|
|
42273
42500
|
options = webidl.converters.FilePropertyBag(options);
|
|
42274
42501
|
const n = fileName;
|
|
42275
42502
|
let t = options.type;
|
|
42276
|
-
let
|
|
42503
|
+
let d2;
|
|
42277
42504
|
substep: {
|
|
42278
42505
|
if (t) {
|
|
42279
42506
|
t = parseMIMEType(t);
|
|
@@ -42283,12 +42510,12 @@ var require_file = __commonJS({
|
|
|
42283
42510
|
}
|
|
42284
42511
|
t = serializeAMimeType(t).toLowerCase();
|
|
42285
42512
|
}
|
|
42286
|
-
|
|
42513
|
+
d2 = options.lastModified;
|
|
42287
42514
|
}
|
|
42288
42515
|
super(processBlobParts(fileBits, options), { type: t });
|
|
42289
42516
|
this[kState] = {
|
|
42290
42517
|
name: n,
|
|
42291
|
-
lastModified:
|
|
42518
|
+
lastModified: d2,
|
|
42292
42519
|
type: t
|
|
42293
42520
|
};
|
|
42294
42521
|
}
|
|
@@ -42309,12 +42536,12 @@ var require_file = __commonJS({
|
|
|
42309
42536
|
constructor(blobLike, fileName, options = {}) {
|
|
42310
42537
|
const n = fileName;
|
|
42311
42538
|
const t = options.type;
|
|
42312
|
-
const
|
|
42539
|
+
const d2 = options.lastModified ?? Date.now();
|
|
42313
42540
|
this[kState] = {
|
|
42314
42541
|
blobLike,
|
|
42315
42542
|
name: n,
|
|
42316
42543
|
type: t,
|
|
42317
|
-
lastModified:
|
|
42544
|
+
lastModified: d2
|
|
42318
42545
|
};
|
|
42319
42546
|
}
|
|
42320
42547
|
stream(...args) {
|
|
@@ -44380,39 +44607,39 @@ var require_client = __commonJS({
|
|
|
44380
44607
|
return await WebAssembly.instantiate(mod, {
|
|
44381
44608
|
env: {
|
|
44382
44609
|
/* eslint-disable camelcase */
|
|
44383
|
-
wasm_on_url: (
|
|
44610
|
+
wasm_on_url: (p2, at, len) => {
|
|
44384
44611
|
return 0;
|
|
44385
44612
|
},
|
|
44386
|
-
wasm_on_status: (
|
|
44387
|
-
assert.strictEqual(currentParser.ptr,
|
|
44613
|
+
wasm_on_status: (p2, at, len) => {
|
|
44614
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44388
44615
|
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
44389
44616
|
return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
|
|
44390
44617
|
},
|
|
44391
|
-
wasm_on_message_begin: (
|
|
44392
|
-
assert.strictEqual(currentParser.ptr,
|
|
44618
|
+
wasm_on_message_begin: (p2) => {
|
|
44619
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44393
44620
|
return currentParser.onMessageBegin() || 0;
|
|
44394
44621
|
},
|
|
44395
|
-
wasm_on_header_field: (
|
|
44396
|
-
assert.strictEqual(currentParser.ptr,
|
|
44622
|
+
wasm_on_header_field: (p2, at, len) => {
|
|
44623
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44397
44624
|
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
44398
44625
|
return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
|
|
44399
44626
|
},
|
|
44400
|
-
wasm_on_header_value: (
|
|
44401
|
-
assert.strictEqual(currentParser.ptr,
|
|
44627
|
+
wasm_on_header_value: (p2, at, len) => {
|
|
44628
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44402
44629
|
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
44403
44630
|
return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
|
|
44404
44631
|
},
|
|
44405
|
-
wasm_on_headers_complete: (
|
|
44406
|
-
assert.strictEqual(currentParser.ptr,
|
|
44632
|
+
wasm_on_headers_complete: (p2, statusCode, upgrade, shouldKeepAlive) => {
|
|
44633
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44407
44634
|
return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0;
|
|
44408
44635
|
},
|
|
44409
|
-
wasm_on_body: (
|
|
44410
|
-
assert.strictEqual(currentParser.ptr,
|
|
44636
|
+
wasm_on_body: (p2, at, len) => {
|
|
44637
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44411
44638
|
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
44412
44639
|
return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
|
|
44413
44640
|
},
|
|
44414
|
-
wasm_on_message_complete: (
|
|
44415
|
-
assert.strictEqual(currentParser.ptr,
|
|
44641
|
+
wasm_on_message_complete: (p2) => {
|
|
44642
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44416
44643
|
return currentParser.onMessageComplete() || 0;
|
|
44417
44644
|
}
|
|
44418
44645
|
/* eslint-enable camelcase */
|
|
@@ -45775,10 +46002,10 @@ var require_balanced_pool = __commonJS({
|
|
|
45775
46002
|
var kWeight = Symbol("kWeight");
|
|
45776
46003
|
var kMaxWeightPerServer = Symbol("kMaxWeightPerServer");
|
|
45777
46004
|
var kErrorPenalty = Symbol("kErrorPenalty");
|
|
45778
|
-
function getGreatestCommonDivisor(
|
|
46005
|
+
function getGreatestCommonDivisor(a, b2) {
|
|
45779
46006
|
if (b2 === 0)
|
|
45780
|
-
return
|
|
45781
|
-
return getGreatestCommonDivisor(b2,
|
|
46007
|
+
return a;
|
|
46008
|
+
return getGreatestCommonDivisor(b2, a % b2);
|
|
45782
46009
|
}
|
|
45783
46010
|
function defaultFactory(origin, opts) {
|
|
45784
46011
|
return new Pool(origin, opts);
|
|
@@ -45832,7 +46059,7 @@ var require_balanced_pool = __commonJS({
|
|
|
45832
46059
|
return this;
|
|
45833
46060
|
}
|
|
45834
46061
|
_updateBalancedPoolStats() {
|
|
45835
|
-
this[kGreatestCommonDivisor] = this[kClients].map((
|
|
46062
|
+
this[kGreatestCommonDivisor] = this[kClients].map((p2) => p2[kWeight]).reduce(getGreatestCommonDivisor, 0);
|
|
45836
46063
|
}
|
|
45837
46064
|
removeUpstream(upstream) {
|
|
45838
46065
|
const upstreamOrigin = parseOrigin(upstream).origin;
|
|
@@ -45843,7 +46070,7 @@ var require_balanced_pool = __commonJS({
|
|
|
45843
46070
|
return this;
|
|
45844
46071
|
}
|
|
45845
46072
|
get upstreams() {
|
|
45846
|
-
return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((
|
|
46073
|
+
return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p2) => p2[kUrl].origin);
|
|
45847
46074
|
}
|
|
45848
46075
|
[kGetDispatcher]() {
|
|
45849
46076
|
if (this[kClients].length === 0) {
|
|
@@ -45853,7 +46080,7 @@ var require_balanced_pool = __commonJS({
|
|
|
45853
46080
|
if (!dispatcher) {
|
|
45854
46081
|
return;
|
|
45855
46082
|
}
|
|
45856
|
-
const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((
|
|
46083
|
+
const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a, b2) => a && b2, true);
|
|
45857
46084
|
if (allClientsBusy) {
|
|
45858
46085
|
return;
|
|
45859
46086
|
}
|
|
@@ -48280,7 +48507,7 @@ var require_headers = __commonJS({
|
|
|
48280
48507
|
return this[kHeadersList][kHeadersSortedMap];
|
|
48281
48508
|
}
|
|
48282
48509
|
const headers = [];
|
|
48283
|
-
const names = [...this[kHeadersList]].sort((
|
|
48510
|
+
const names = [...this[kHeadersList]].sort((a, b2) => a[0] < b2[0] ? -1 : 1);
|
|
48284
48511
|
const cookies = this[kHeadersList].cookies;
|
|
48285
48512
|
for (const [name2, value] of names) {
|
|
48286
48513
|
if (name2 === "set-cookie") {
|
|
@@ -48658,12 +48885,12 @@ var require_response = __commonJS({
|
|
|
48658
48885
|
...state
|
|
48659
48886
|
};
|
|
48660
48887
|
return new Proxy(response, {
|
|
48661
|
-
get(target,
|
|
48662
|
-
return
|
|
48888
|
+
get(target, p2) {
|
|
48889
|
+
return p2 in state ? state[p2] : target[p2];
|
|
48663
48890
|
},
|
|
48664
|
-
set(target,
|
|
48665
|
-
assert(!(
|
|
48666
|
-
target[
|
|
48891
|
+
set(target, p2, value) {
|
|
48892
|
+
assert(!(p2 in state));
|
|
48893
|
+
target[p2] = value;
|
|
48667
48894
|
return true;
|
|
48668
48895
|
}
|
|
48669
48896
|
});
|
|
@@ -49513,18 +49740,18 @@ var require_fetch = __commonJS({
|
|
|
49513
49740
|
};
|
|
49514
49741
|
async function fetch(input, init = {}) {
|
|
49515
49742
|
webidl.argumentLengthCheck(arguments, 1, { header: "globalThis.fetch" });
|
|
49516
|
-
const
|
|
49743
|
+
const p2 = createDeferredPromise();
|
|
49517
49744
|
let requestObject;
|
|
49518
49745
|
try {
|
|
49519
49746
|
requestObject = new Request(input, init);
|
|
49520
49747
|
} catch (e) {
|
|
49521
|
-
|
|
49522
|
-
return
|
|
49748
|
+
p2.reject(e);
|
|
49749
|
+
return p2.promise;
|
|
49523
49750
|
}
|
|
49524
49751
|
const request2 = requestObject[kState];
|
|
49525
49752
|
if (requestObject.signal.aborted) {
|
|
49526
|
-
abortFetch(
|
|
49527
|
-
return
|
|
49753
|
+
abortFetch(p2, request2, null, requestObject.signal.reason);
|
|
49754
|
+
return p2.promise;
|
|
49528
49755
|
}
|
|
49529
49756
|
const globalObject = request2.client.globalObject;
|
|
49530
49757
|
if (globalObject?.constructor?.name === "ServiceWorkerGlobalScope") {
|
|
@@ -49538,7 +49765,7 @@ var require_fetch = __commonJS({
|
|
|
49538
49765
|
"abort",
|
|
49539
49766
|
() => {
|
|
49540
49767
|
locallyAborted = true;
|
|
49541
|
-
abortFetch(
|
|
49768
|
+
abortFetch(p2, request2, responseObject, requestObject.signal.reason);
|
|
49542
49769
|
if (controller != null) {
|
|
49543
49770
|
controller.abort();
|
|
49544
49771
|
}
|
|
@@ -49551,11 +49778,11 @@ var require_fetch = __commonJS({
|
|
|
49551
49778
|
return;
|
|
49552
49779
|
}
|
|
49553
49780
|
if (response.aborted) {
|
|
49554
|
-
abortFetch(
|
|
49781
|
+
abortFetch(p2, request2, responseObject, controller.serializedAbortReason);
|
|
49555
49782
|
return;
|
|
49556
49783
|
}
|
|
49557
49784
|
if (response.type === "error") {
|
|
49558
|
-
|
|
49785
|
+
p2.reject(
|
|
49559
49786
|
Object.assign(new TypeError("fetch failed"), { cause: response.error })
|
|
49560
49787
|
);
|
|
49561
49788
|
return;
|
|
@@ -49566,7 +49793,7 @@ var require_fetch = __commonJS({
|
|
|
49566
49793
|
responseObject[kHeaders][kHeadersList] = response.headersList;
|
|
49567
49794
|
responseObject[kHeaders][kGuard] = "immutable";
|
|
49568
49795
|
responseObject[kHeaders][kRealm] = relevantRealm;
|
|
49569
|
-
|
|
49796
|
+
p2.resolve(responseObject);
|
|
49570
49797
|
};
|
|
49571
49798
|
controller = fetching({
|
|
49572
49799
|
request: request2,
|
|
@@ -49575,7 +49802,7 @@ var require_fetch = __commonJS({
|
|
|
49575
49802
|
dispatcher: init.dispatcher ?? getGlobalDispatcher()
|
|
49576
49803
|
// undici
|
|
49577
49804
|
});
|
|
49578
|
-
return
|
|
49805
|
+
return p2.promise;
|
|
49579
49806
|
}
|
|
49580
49807
|
function finalizeAndReportTiming(response, initiatorType = "other") {
|
|
49581
49808
|
if (response.type === "error" && response.aborted) {
|
|
@@ -49614,11 +49841,11 @@ var require_fetch = __commonJS({
|
|
|
49614
49841
|
performance.markResourceTiming(timingInfo, originalURL, initiatorType, globalThis2, cacheState);
|
|
49615
49842
|
}
|
|
49616
49843
|
}
|
|
49617
|
-
function abortFetch(
|
|
49844
|
+
function abortFetch(p2, request2, responseObject, error) {
|
|
49618
49845
|
if (!error) {
|
|
49619
49846
|
error = new DOMException("The operation was aborted.", "AbortError");
|
|
49620
49847
|
}
|
|
49621
|
-
|
|
49848
|
+
p2.reject(error);
|
|
49622
49849
|
if (request2.body != null && isReadable(request2.body?.stream)) {
|
|
49623
49850
|
request2.body.stream.cancel(error).catch((err) => {
|
|
49624
49851
|
if (err.code === "ERR_INVALID_STATE") {
|
|
@@ -50947,25 +51174,25 @@ var require_util5 = __commonJS({
|
|
|
50947
51174
|
return new TextDecoder(encoding).decode(sliced);
|
|
50948
51175
|
}
|
|
50949
51176
|
function BOMSniffing(ioQueue) {
|
|
50950
|
-
const [
|
|
50951
|
-
if (
|
|
51177
|
+
const [a, b2, c2] = ioQueue;
|
|
51178
|
+
if (a === 239 && b2 === 187 && c2 === 191) {
|
|
50952
51179
|
return "UTF-8";
|
|
50953
|
-
} else if (
|
|
51180
|
+
} else if (a === 254 && b2 === 255) {
|
|
50954
51181
|
return "UTF-16BE";
|
|
50955
|
-
} else if (
|
|
51182
|
+
} else if (a === 255 && b2 === 254) {
|
|
50956
51183
|
return "UTF-16LE";
|
|
50957
51184
|
}
|
|
50958
51185
|
return null;
|
|
50959
51186
|
}
|
|
50960
51187
|
function combineByteSequences(sequences) {
|
|
50961
|
-
const size = sequences.reduce((
|
|
50962
|
-
return
|
|
51188
|
+
const size = sequences.reduce((a, b2) => {
|
|
51189
|
+
return a + b2.byteLength;
|
|
50963
51190
|
}, 0);
|
|
50964
51191
|
let offset = 0;
|
|
50965
|
-
return sequences.reduce((
|
|
50966
|
-
|
|
51192
|
+
return sequences.reduce((a, b2) => {
|
|
51193
|
+
a.set(b2, offset);
|
|
50967
51194
|
offset += b2.byteLength;
|
|
50968
|
-
return
|
|
51195
|
+
return a;
|
|
50969
51196
|
}, new Uint8Array(size));
|
|
50970
51197
|
}
|
|
50971
51198
|
module2.exports = {
|
|
@@ -51408,7 +51635,7 @@ var require_util6 = __commonJS({
|
|
|
51408
51635
|
});
|
|
51409
51636
|
|
|
51410
51637
|
// ../../node_modules/.pnpm/undici@5.20.0/node_modules/undici/lib/cookies/parse.js
|
|
51411
|
-
var
|
|
51638
|
+
var require_parse4 = __commonJS({
|
|
51412
51639
|
"../../node_modules/.pnpm/undici@5.20.0/node_modules/undici/lib/cookies/parse.js"(exports, module2) {
|
|
51413
51640
|
"use strict";
|
|
51414
51641
|
var { maxNameValuePairSize, maxAttributeValueSize } = require_constants4();
|
|
@@ -51551,7 +51778,7 @@ var require_parse3 = __commonJS({
|
|
|
51551
51778
|
var require_cookies = __commonJS({
|
|
51552
51779
|
"../../node_modules/.pnpm/undici@5.20.0/node_modules/undici/lib/cookies/index.js"(exports, module2) {
|
|
51553
51780
|
"use strict";
|
|
51554
|
-
var { parseSetCookie } =
|
|
51781
|
+
var { parseSetCookie } = require_parse4();
|
|
51555
51782
|
var { stringify, getHeadersList } = require_util6();
|
|
51556
51783
|
var { webidl } = require_webidl();
|
|
51557
51784
|
var { Headers } = require_headers();
|
|
@@ -52152,7 +52379,7 @@ var require_receiver = __commonJS({
|
|
|
52152
52379
|
* @param {Buffer} chunk
|
|
52153
52380
|
* @param {() => void} callback
|
|
52154
52381
|
*/
|
|
52155
|
-
_write(chunk,
|
|
52382
|
+
_write(chunk, _2, callback) {
|
|
52156
52383
|
this.#buffers.push(chunk);
|
|
52157
52384
|
this.#byteOffset += chunk.length;
|
|
52158
52385
|
this.run(callback);
|
|
@@ -52589,10 +52816,10 @@ var require_websocket = __commonJS({
|
|
|
52589
52816
|
if (typeof protocols === "string") {
|
|
52590
52817
|
protocols = [protocols];
|
|
52591
52818
|
}
|
|
52592
|
-
if (protocols.length !== new Set(protocols.map((
|
|
52819
|
+
if (protocols.length !== new Set(protocols.map((p2) => p2.toLowerCase())).size) {
|
|
52593
52820
|
throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
|
|
52594
52821
|
}
|
|
52595
|
-
if (protocols.length > 0 && !protocols.every((
|
|
52822
|
+
if (protocols.length > 0 && !protocols.every((p2) => isValidSubprotocol(p2))) {
|
|
52596
52823
|
throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
|
|
52597
52824
|
}
|
|
52598
52825
|
this[kWebSocketURL] = urlRecord;
|
|
@@ -53207,11 +53434,11 @@ var UI = class {
|
|
|
53207
53434
|
return void 0;
|
|
53208
53435
|
});
|
|
53209
53436
|
const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
|
|
53210
|
-
return widths.map((
|
|
53211
|
-
if (
|
|
53437
|
+
return widths.map((w2, i) => {
|
|
53438
|
+
if (w2 === void 0) {
|
|
53212
53439
|
return Math.max(unsetWidth, _minWidth(row[i]));
|
|
53213
53440
|
}
|
|
53214
|
-
return
|
|
53441
|
+
return w2;
|
|
53215
53442
|
});
|
|
53216
53443
|
}
|
|
53217
53444
|
};
|
|
@@ -53729,7 +53956,7 @@ var YargsParser = class {
|
|
|
53729
53956
|
}
|
|
53730
53957
|
if (configuration["strip-aliased"]) {
|
|
53731
53958
|
;
|
|
53732
|
-
[].concat(...Object.keys(aliases).map((
|
|
53959
|
+
[].concat(...Object.keys(aliases).map((k2) => aliases[k2])).forEach((alias) => {
|
|
53733
53960
|
if (configuration["camel-case-expansion"] && alias.includes("-")) {
|
|
53734
53961
|
delete argv[alias.split(".").map((prop) => camelCase(prop)).join(".")];
|
|
53735
53962
|
}
|
|
@@ -53830,9 +54057,9 @@ var YargsParser = class {
|
|
|
53830
54057
|
;
|
|
53831
54058
|
(flags.aliases[splitKey[0]] || []).forEach(function(x2) {
|
|
53832
54059
|
let keyProperties = x2.split(".");
|
|
53833
|
-
const
|
|
53834
|
-
|
|
53835
|
-
keyProperties = keyProperties.concat(
|
|
54060
|
+
const a = [].concat(splitKey);
|
|
54061
|
+
a.shift();
|
|
54062
|
+
keyProperties = keyProperties.concat(a);
|
|
53836
54063
|
if (!(flags.aliases[key] || []).includes(keyProperties.join("."))) {
|
|
53837
54064
|
setKey(argv, keyProperties, value);
|
|
53838
54065
|
}
|
|
@@ -54013,36 +54240,36 @@ var YargsParser = class {
|
|
|
54013
54240
|
});
|
|
54014
54241
|
}
|
|
54015
54242
|
function hasKey(obj, keys) {
|
|
54016
|
-
let
|
|
54243
|
+
let o = obj;
|
|
54017
54244
|
if (!configuration["dot-notation"])
|
|
54018
54245
|
keys = [keys.join(".")];
|
|
54019
54246
|
keys.slice(0, -1).forEach(function(key2) {
|
|
54020
|
-
|
|
54247
|
+
o = o[key2] || {};
|
|
54021
54248
|
});
|
|
54022
54249
|
const key = keys[keys.length - 1];
|
|
54023
|
-
if (typeof
|
|
54250
|
+
if (typeof o !== "object")
|
|
54024
54251
|
return false;
|
|
54025
54252
|
else
|
|
54026
|
-
return key in
|
|
54253
|
+
return key in o;
|
|
54027
54254
|
}
|
|
54028
54255
|
function setKey(obj, keys, value) {
|
|
54029
|
-
let
|
|
54256
|
+
let o = obj;
|
|
54030
54257
|
if (!configuration["dot-notation"])
|
|
54031
54258
|
keys = [keys.join(".")];
|
|
54032
54259
|
keys.slice(0, -1).forEach(function(key2) {
|
|
54033
54260
|
key2 = sanitizeKey(key2);
|
|
54034
|
-
if (typeof
|
|
54035
|
-
|
|
54261
|
+
if (typeof o === "object" && o[key2] === void 0) {
|
|
54262
|
+
o[key2] = {};
|
|
54036
54263
|
}
|
|
54037
|
-
if (typeof
|
|
54038
|
-
if (Array.isArray(
|
|
54039
|
-
|
|
54264
|
+
if (typeof o[key2] !== "object" || Array.isArray(o[key2])) {
|
|
54265
|
+
if (Array.isArray(o[key2])) {
|
|
54266
|
+
o[key2].push({});
|
|
54040
54267
|
} else {
|
|
54041
|
-
|
|
54268
|
+
o[key2] = [o[key2], {}];
|
|
54042
54269
|
}
|
|
54043
|
-
|
|
54270
|
+
o = o[key2][o[key2].length - 1];
|
|
54044
54271
|
} else {
|
|
54045
|
-
|
|
54272
|
+
o = o[key2];
|
|
54046
54273
|
}
|
|
54047
54274
|
});
|
|
54048
54275
|
const key = sanitizeKey(keys[keys.length - 1]);
|
|
@@ -54051,26 +54278,26 @@ var YargsParser = class {
|
|
|
54051
54278
|
let duplicate = configuration["duplicate-arguments-array"];
|
|
54052
54279
|
if (!duplicate && checkAllAliases(key, flags.nargs)) {
|
|
54053
54280
|
duplicate = true;
|
|
54054
|
-
if (!isUndefined(
|
|
54055
|
-
|
|
54281
|
+
if (!isUndefined(o[key]) && flags.nargs[key] === 1 || Array.isArray(o[key]) && o[key].length === flags.nargs[key]) {
|
|
54282
|
+
o[key] = void 0;
|
|
54056
54283
|
}
|
|
54057
54284
|
}
|
|
54058
54285
|
if (value === increment()) {
|
|
54059
|
-
|
|
54060
|
-
} else if (Array.isArray(
|
|
54286
|
+
o[key] = increment(o[key]);
|
|
54287
|
+
} else if (Array.isArray(o[key])) {
|
|
54061
54288
|
if (duplicate && isTypeArray && isValueArray) {
|
|
54062
|
-
|
|
54289
|
+
o[key] = configuration["flatten-duplicate-arrays"] ? o[key].concat(value) : (Array.isArray(o[key][0]) ? o[key] : [o[key]]).concat([value]);
|
|
54063
54290
|
} else if (!duplicate && Boolean(isTypeArray) === Boolean(isValueArray)) {
|
|
54064
|
-
|
|
54291
|
+
o[key] = value;
|
|
54065
54292
|
} else {
|
|
54066
|
-
|
|
54293
|
+
o[key] = o[key].concat([value]);
|
|
54067
54294
|
}
|
|
54068
|
-
} else if (
|
|
54069
|
-
|
|
54070
|
-
} else if (duplicate && !(
|
|
54071
|
-
|
|
54295
|
+
} else if (o[key] === void 0 && isTypeArray) {
|
|
54296
|
+
o[key] = isValueArray ? value : [value];
|
|
54297
|
+
} else if (duplicate && !(o[key] === void 0 || checkAllAliases(key, flags.counts) || checkAllAliases(key, flags.bools))) {
|
|
54298
|
+
o[key] = [o[key], value];
|
|
54072
54299
|
} else {
|
|
54073
|
-
|
|
54300
|
+
o[key] = value;
|
|
54074
54301
|
}
|
|
54075
54302
|
}
|
|
54076
54303
|
function extendAliases(...args2) {
|
|
@@ -54098,8 +54325,8 @@ var YargsParser = class {
|
|
|
54098
54325
|
}
|
|
54099
54326
|
});
|
|
54100
54327
|
flags.aliases[key].forEach(function(x2) {
|
|
54101
|
-
flags.aliases[x2] = [key].concat(flags.aliases[key].filter(function(
|
|
54102
|
-
return x2 !==
|
|
54328
|
+
flags.aliases[x2] = [key].concat(flags.aliases[key].filter(function(y2) {
|
|
54329
|
+
return x2 !== y2;
|
|
54103
54330
|
}));
|
|
54104
54331
|
});
|
|
54105
54332
|
});
|
|
@@ -54113,7 +54340,7 @@ var YargsParser = class {
|
|
|
54113
54340
|
}
|
|
54114
54341
|
function hasAnyFlag(key) {
|
|
54115
54342
|
const flagsKeys = Object.keys(flags);
|
|
54116
|
-
const toCheck = [].concat(flagsKeys.map((
|
|
54343
|
+
const toCheck = [].concat(flagsKeys.map((k2) => flags[k2]));
|
|
54117
54344
|
return toCheck.some(function(flag) {
|
|
54118
54345
|
return Array.isArray(flag) ? flag.includes(key) : flag[key];
|
|
54119
54346
|
});
|
|
@@ -54822,7 +55049,7 @@ var CommandInstance = class {
|
|
|
54822
55049
|
opts.recurse = false;
|
|
54823
55050
|
if (!Array.isArray(opts.extensions))
|
|
54824
55051
|
opts.extensions = ["js"];
|
|
54825
|
-
const parentVisit = typeof opts.visit === "function" ? opts.visit : (
|
|
55052
|
+
const parentVisit = typeof opts.visit === "function" ? opts.visit : (o) => o;
|
|
54826
55053
|
opts.visit = (obj, joined, filename) => {
|
|
54827
55054
|
const visited = parentVisit(obj, joined, filename);
|
|
54828
55055
|
if (visited) {
|
|
@@ -55025,7 +55252,7 @@ var CommandInstance = class {
|
|
|
55025
55252
|
const maybe = optional.shift();
|
|
55026
55253
|
this.populatePositional(maybe, argv, positionalMap);
|
|
55027
55254
|
}
|
|
55028
|
-
argv._ = context.commands.concat(argv._.map((
|
|
55255
|
+
argv._ = context.commands.concat(argv._.map((a) => "" + a));
|
|
55029
55256
|
this.postProcessPositionals(argv, positionalMap, this.cmdToParseOptions(commandHandler.original), yargs);
|
|
55030
55257
|
return positionalMap;
|
|
55031
55258
|
}
|
|
@@ -55046,18 +55273,18 @@ var CommandInstance = class {
|
|
|
55046
55273
|
demand: {}
|
|
55047
55274
|
};
|
|
55048
55275
|
const parsed = parseCommand(cmdString);
|
|
55049
|
-
parsed.demanded.forEach((
|
|
55050
|
-
const [cmd, ...aliases] =
|
|
55051
|
-
if (
|
|
55276
|
+
parsed.demanded.forEach((d2) => {
|
|
55277
|
+
const [cmd, ...aliases] = d2.cmd;
|
|
55278
|
+
if (d2.variadic) {
|
|
55052
55279
|
parseOptions.array.push(cmd);
|
|
55053
55280
|
parseOptions.default[cmd] = [];
|
|
55054
55281
|
}
|
|
55055
55282
|
parseOptions.alias[cmd] = aliases;
|
|
55056
55283
|
parseOptions.demand[cmd] = true;
|
|
55057
55284
|
});
|
|
55058
|
-
parsed.optional.forEach((
|
|
55059
|
-
const [cmd, ...aliases] =
|
|
55060
|
-
if (
|
|
55285
|
+
parsed.optional.forEach((o) => {
|
|
55286
|
+
const [cmd, ...aliases] = o.cmd;
|
|
55287
|
+
if (o.variadic) {
|
|
55061
55288
|
parseOptions.array.push(cmd);
|
|
55062
55289
|
parseOptions.default[cmd] = [];
|
|
55063
55290
|
}
|
|
@@ -55226,8 +55453,8 @@ function usage(yargs, shim3) {
|
|
|
55226
55453
|
const __ = shim3.y18n.__;
|
|
55227
55454
|
const self = {};
|
|
55228
55455
|
const fails = [];
|
|
55229
|
-
self.failFn = function failFn(
|
|
55230
|
-
fails.push(
|
|
55456
|
+
self.failFn = function failFn(f) {
|
|
55457
|
+
fails.push(f);
|
|
55231
55458
|
};
|
|
55232
55459
|
let failMessage = null;
|
|
55233
55460
|
let globalFailMessage = null;
|
|
@@ -55323,12 +55550,12 @@ function usage(yargs, shim3) {
|
|
|
55323
55550
|
let descriptions = {};
|
|
55324
55551
|
self.describe = function describe(keyOrKeys, desc) {
|
|
55325
55552
|
if (Array.isArray(keyOrKeys)) {
|
|
55326
|
-
keyOrKeys.forEach((
|
|
55327
|
-
self.describe(
|
|
55553
|
+
keyOrKeys.forEach((k2) => {
|
|
55554
|
+
self.describe(k2, desc);
|
|
55328
55555
|
});
|
|
55329
55556
|
} else if (typeof keyOrKeys === "object") {
|
|
55330
|
-
Object.keys(keyOrKeys).forEach((
|
|
55331
|
-
self.describe(
|
|
55557
|
+
Object.keys(keyOrKeys).forEach((k2) => {
|
|
55558
|
+
self.describe(k2, keyOrKeys[k2]);
|
|
55332
55559
|
});
|
|
55333
55560
|
} else {
|
|
55334
55561
|
descriptions[keyOrKeys] = desc;
|
|
@@ -55393,15 +55620,15 @@ function usage(yargs, shim3) {
|
|
|
55393
55620
|
});
|
|
55394
55621
|
ui2.div();
|
|
55395
55622
|
} else if (commands.length) {
|
|
55396
|
-
let
|
|
55623
|
+
let u = null;
|
|
55397
55624
|
if (demandedCommands._) {
|
|
55398
|
-
|
|
55625
|
+
u = `${base$0} <${__("command")}>
|
|
55399
55626
|
`;
|
|
55400
55627
|
} else {
|
|
55401
|
-
|
|
55628
|
+
u = `${base$0} [${__("command")}]
|
|
55402
55629
|
`;
|
|
55403
55630
|
}
|
|
55404
|
-
ui2.div(`${
|
|
55631
|
+
ui2.div(`${u}`);
|
|
55405
55632
|
}
|
|
55406
55633
|
}
|
|
55407
55634
|
if (commands.length > 1 || commands.length === 1 && !commands[0][2]) {
|
|
@@ -55409,7 +55636,7 @@ function usage(yargs, shim3) {
|
|
|
55409
55636
|
const context = yargs.getInternalMethods().getContext();
|
|
55410
55637
|
const parentCommands = context.commands.length ? `${context.commands.join(" ")} ` : "";
|
|
55411
55638
|
if (yargs.getInternalMethods().getParserConfiguration()["sort-commands"] === true) {
|
|
55412
|
-
commands = commands.sort((
|
|
55639
|
+
commands = commands.sort((a, b2) => a[0].localeCompare(b2[0]));
|
|
55413
55640
|
}
|
|
55414
55641
|
const prefix = base$0 ? `${base$0} ` : "";
|
|
55415
55642
|
commands.forEach((command2) => {
|
|
@@ -55610,7 +55837,7 @@ function usage(yargs, shim3) {
|
|
|
55610
55837
|
});
|
|
55611
55838
|
keys.forEach((key) => {
|
|
55612
55839
|
toCheck = [key].concat(aliases[key]);
|
|
55613
|
-
if (!toCheck.some((
|
|
55840
|
+
if (!toCheck.some((k2) => groupedKeys.indexOf(k2) !== -1)) {
|
|
55614
55841
|
groups[defaultGroup].push(key);
|
|
55615
55842
|
}
|
|
55616
55843
|
});
|
|
@@ -55690,7 +55917,7 @@ function usage(yargs, shim3) {
|
|
|
55690
55917
|
epilogs = [];
|
|
55691
55918
|
examples = [];
|
|
55692
55919
|
commands = [];
|
|
55693
|
-
descriptions = objFilter(descriptions, (
|
|
55920
|
+
descriptions = objFilter(descriptions, (k2) => !localLookup[k2]);
|
|
55694
55921
|
return self;
|
|
55695
55922
|
};
|
|
55696
55923
|
const frozens = [];
|
|
@@ -55816,9 +56043,9 @@ var Completion = class {
|
|
|
55816
56043
|
const builder = handlers[args[i]].builder;
|
|
55817
56044
|
if (isCommandBuilderCallback(builder)) {
|
|
55818
56045
|
this.indexAfterLastReset = i + 1;
|
|
55819
|
-
const
|
|
55820
|
-
builder(
|
|
55821
|
-
return
|
|
56046
|
+
const y2 = this.yargs.getInternalMethods().reset();
|
|
56047
|
+
builder(y2, true);
|
|
56048
|
+
return y2.argv;
|
|
55822
56049
|
}
|
|
55823
56050
|
}
|
|
55824
56051
|
}
|
|
@@ -56008,26 +56235,26 @@ function isFallbackCompletionFunction(completionFunction) {
|
|
|
56008
56235
|
}
|
|
56009
56236
|
|
|
56010
56237
|
// ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/levenshtein.js
|
|
56011
|
-
function levenshtein(
|
|
56012
|
-
if (
|
|
56238
|
+
function levenshtein(a, b2) {
|
|
56239
|
+
if (a.length === 0)
|
|
56013
56240
|
return b2.length;
|
|
56014
56241
|
if (b2.length === 0)
|
|
56015
|
-
return
|
|
56242
|
+
return a.length;
|
|
56016
56243
|
const matrix = [];
|
|
56017
56244
|
let i;
|
|
56018
56245
|
for (i = 0; i <= b2.length; i++) {
|
|
56019
56246
|
matrix[i] = [i];
|
|
56020
56247
|
}
|
|
56021
56248
|
let j2;
|
|
56022
|
-
for (j2 = 0; j2 <=
|
|
56249
|
+
for (j2 = 0; j2 <= a.length; j2++) {
|
|
56023
56250
|
matrix[0][j2] = j2;
|
|
56024
56251
|
}
|
|
56025
56252
|
for (i = 1; i <= b2.length; i++) {
|
|
56026
|
-
for (j2 = 1; j2 <=
|
|
56027
|
-
if (b2.charAt(i - 1) ===
|
|
56253
|
+
for (j2 = 1; j2 <= a.length; j2++) {
|
|
56254
|
+
if (b2.charAt(i - 1) === a.charAt(j2 - 1)) {
|
|
56028
56255
|
matrix[i][j2] = matrix[i - 1][j2 - 1];
|
|
56029
56256
|
} else {
|
|
56030
|
-
if (i > 1 && j2 > 1 && b2.charAt(i - 2) ===
|
|
56257
|
+
if (i > 1 && j2 > 1 && b2.charAt(i - 2) === a.charAt(j2 - 1) && b2.charAt(i - 1) === a.charAt(j2 - 2)) {
|
|
56031
56258
|
matrix[i][j2] = matrix[i - 2][j2 - 2] + 1;
|
|
56032
56259
|
} else {
|
|
56033
56260
|
matrix[i][j2] = Math.min(matrix[i - 1][j2 - 1] + 1, Math.min(matrix[i][j2 - 1] + 1, matrix[i - 1][j2] + 1));
|
|
@@ -56035,7 +56262,7 @@ function levenshtein(a2, b2) {
|
|
|
56035
56262
|
}
|
|
56036
56263
|
}
|
|
56037
56264
|
}
|
|
56038
|
-
return matrix[b2.length][
|
|
56265
|
+
return matrix[b2.length][a.length];
|
|
56039
56266
|
}
|
|
56040
56267
|
|
|
56041
56268
|
// ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/validation.js
|
|
@@ -56147,7 +56374,7 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56147
56374
|
return false;
|
|
56148
56375
|
}
|
|
56149
56376
|
const newAliases = yargs.parsed.newAliases;
|
|
56150
|
-
return [key, ...aliases[key]].some((
|
|
56377
|
+
return [key, ...aliases[key]].some((a) => !Object.prototype.hasOwnProperty.call(newAliases, a) || !newAliases[key]);
|
|
56151
56378
|
};
|
|
56152
56379
|
self.limitedChoices = function limitedChoices(argv) {
|
|
56153
56380
|
const options = yargs.getOptions();
|
|
@@ -56177,8 +56404,8 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56177
56404
|
self.implies = function implies(key, value) {
|
|
56178
56405
|
argsert("<string|object> [array|number|string]", [key, value], arguments.length);
|
|
56179
56406
|
if (typeof key === "object") {
|
|
56180
|
-
Object.keys(key).forEach((
|
|
56181
|
-
self.implies(
|
|
56407
|
+
Object.keys(key).forEach((k2) => {
|
|
56408
|
+
self.implies(k2, key[k2]);
|
|
56182
56409
|
});
|
|
56183
56410
|
} else {
|
|
56184
56411
|
yargs.global(key);
|
|
@@ -56236,8 +56463,8 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56236
56463
|
self.conflicts = function conflicts(key, value) {
|
|
56237
56464
|
argsert("<string|object> [array|string]", [key, value], arguments.length);
|
|
56238
56465
|
if (typeof key === "object") {
|
|
56239
|
-
Object.keys(key).forEach((
|
|
56240
|
-
self.conflicts(
|
|
56466
|
+
Object.keys(key).forEach((k2) => {
|
|
56467
|
+
self.conflicts(k2, key[k2]);
|
|
56241
56468
|
});
|
|
56242
56469
|
} else {
|
|
56243
56470
|
yargs.global(key);
|
|
@@ -56274,13 +56501,13 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56274
56501
|
};
|
|
56275
56502
|
self.recommendCommands = function recommendCommands(cmd, potentialCommands) {
|
|
56276
56503
|
const threshold = 3;
|
|
56277
|
-
potentialCommands = potentialCommands.sort((
|
|
56504
|
+
potentialCommands = potentialCommands.sort((a, b2) => b2.length - a.length);
|
|
56278
56505
|
let recommended = null;
|
|
56279
56506
|
let bestDistance = Infinity;
|
|
56280
56507
|
for (let i = 0, candidate; (candidate = potentialCommands[i]) !== void 0; i++) {
|
|
56281
|
-
const
|
|
56282
|
-
if (
|
|
56283
|
-
bestDistance =
|
|
56508
|
+
const d2 = levenshtein(cmd, candidate);
|
|
56509
|
+
if (d2 <= threshold && d2 < bestDistance) {
|
|
56510
|
+
bestDistance = d2;
|
|
56284
56511
|
recommended = candidate;
|
|
56285
56512
|
}
|
|
56286
56513
|
}
|
|
@@ -56288,8 +56515,8 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56288
56515
|
usage2.fail(__("Did you mean %s?", recommended));
|
|
56289
56516
|
};
|
|
56290
56517
|
self.reset = function reset(localLookup) {
|
|
56291
|
-
implied = objFilter(implied, (
|
|
56292
|
-
conflicting = objFilter(conflicting, (
|
|
56518
|
+
implied = objFilter(implied, (k2) => !localLookup[k2]);
|
|
56519
|
+
conflicting = objFilter(conflicting, (k2) => !localLookup[k2]);
|
|
56293
56520
|
return self;
|
|
56294
56521
|
};
|
|
56295
56522
|
const frozens = [];
|
|
@@ -56361,21 +56588,21 @@ function mergeDeep(config1, config22) {
|
|
|
56361
56588
|
}
|
|
56362
56589
|
|
|
56363
56590
|
// ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/yargs-factory.js
|
|
56364
|
-
var __classPrivateFieldSet = function(receiver, state, value, kind,
|
|
56591
|
+
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
56365
56592
|
if (kind === "m")
|
|
56366
56593
|
throw new TypeError("Private method is not writable");
|
|
56367
|
-
if (kind === "a" && !
|
|
56594
|
+
if (kind === "a" && !f)
|
|
56368
56595
|
throw new TypeError("Private accessor was defined without a setter");
|
|
56369
|
-
if (typeof state === "function" ? receiver !== state || !
|
|
56596
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
56370
56597
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
56371
|
-
return kind === "a" ?
|
|
56598
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
56372
56599
|
};
|
|
56373
|
-
var __classPrivateFieldGet = function(receiver, state, kind,
|
|
56374
|
-
if (kind === "a" && !
|
|
56600
|
+
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
56601
|
+
if (kind === "a" && !f)
|
|
56375
56602
|
throw new TypeError("Private accessor was defined without a getter");
|
|
56376
|
-
if (typeof state === "function" ? receiver !== state || !
|
|
56603
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
56377
56604
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
56378
|
-
return kind === "m" ?
|
|
56605
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
56379
56606
|
};
|
|
56380
56607
|
var _YargsInstance_command;
|
|
56381
56608
|
var _YargsInstance_cwd;
|
|
@@ -56562,14 +56789,14 @@ var YargsInstance = class {
|
|
|
56562
56789
|
this[kTrackManuallySetKeys](keys);
|
|
56563
56790
|
return this;
|
|
56564
56791
|
}
|
|
56565
|
-
check(
|
|
56566
|
-
argsert("<function> [boolean]", [
|
|
56792
|
+
check(f, global2) {
|
|
56793
|
+
argsert("<function> [boolean]", [f, global2], arguments.length);
|
|
56567
56794
|
this.middleware((argv, _yargs) => {
|
|
56568
56795
|
return maybeAsyncResult(() => {
|
|
56569
|
-
return
|
|
56796
|
+
return f(argv, _yargs.getOptions());
|
|
56570
56797
|
}, (result) => {
|
|
56571
56798
|
if (!result) {
|
|
56572
|
-
__classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(__classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__("Argument check failed: %s",
|
|
56799
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(__classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__("Argument check failed: %s", f.toString()));
|
|
56573
56800
|
} else if (typeof result === "string" || result instanceof Error) {
|
|
56574
56801
|
__classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(result.toString(), result);
|
|
56575
56802
|
}
|
|
@@ -56647,8 +56874,8 @@ var YargsInstance = class {
|
|
|
56647
56874
|
msg = void 0;
|
|
56648
56875
|
}
|
|
56649
56876
|
this.describe(key, msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup("Path to JSON config file"));
|
|
56650
|
-
(Array.isArray(key) ? key : [key]).forEach((
|
|
56651
|
-
__classPrivateFieldGet(this, _YargsInstance_options, "f").config[
|
|
56877
|
+
(Array.isArray(key) ? key : [key]).forEach((k2) => {
|
|
56878
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").config[k2] = parseFn || true;
|
|
56652
56879
|
});
|
|
56653
56880
|
return this;
|
|
56654
56881
|
}
|
|
@@ -56805,12 +57032,12 @@ var YargsInstance = class {
|
|
|
56805
57032
|
__classPrivateFieldSet(this, _YargsInstance_exitProcess, enabled, "f");
|
|
56806
57033
|
return this;
|
|
56807
57034
|
}
|
|
56808
|
-
fail(
|
|
56809
|
-
argsert("<function|boolean>", [
|
|
56810
|
-
if (typeof
|
|
57035
|
+
fail(f) {
|
|
57036
|
+
argsert("<function|boolean>", [f], arguments.length);
|
|
57037
|
+
if (typeof f === "boolean" && f !== false) {
|
|
56811
57038
|
throw new YError("Invalid first argument. Expected function or boolean 'false'");
|
|
56812
57039
|
}
|
|
56813
|
-
__classPrivateFieldGet(this, _YargsInstance_usage, "f").failFn(
|
|
57040
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").failFn(f);
|
|
56814
57041
|
return this;
|
|
56815
57042
|
}
|
|
56816
57043
|
getAliases() {
|
|
@@ -56856,9 +57083,9 @@ var YargsInstance = class {
|
|
|
56856
57083
|
__classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f");
|
|
56857
57084
|
if (!__classPrivateFieldGet(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) {
|
|
56858
57085
|
if (!this.parsed) {
|
|
56859
|
-
const
|
|
56860
|
-
if (isPromise(
|
|
56861
|
-
return
|
|
57086
|
+
const parse3 = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet(this, _YargsInstance_processArgs, "f"), void 0, void 0, 0, true);
|
|
57087
|
+
if (isPromise(parse3)) {
|
|
57088
|
+
return parse3.then(() => {
|
|
56862
57089
|
return __classPrivateFieldGet(this, _YargsInstance_usage, "f").help();
|
|
56863
57090
|
});
|
|
56864
57091
|
}
|
|
@@ -56953,8 +57180,8 @@ var YargsInstance = class {
|
|
|
56953
57180
|
option(key, opt) {
|
|
56954
57181
|
argsert("<string|object> [object]", [key, opt], arguments.length);
|
|
56955
57182
|
if (typeof key === "object") {
|
|
56956
|
-
Object.keys(key).forEach((
|
|
56957
|
-
this.options(
|
|
57183
|
+
Object.keys(key).forEach((k2) => {
|
|
57184
|
+
this.options(k2, key[k2]);
|
|
56958
57185
|
});
|
|
56959
57186
|
} else {
|
|
56960
57187
|
if (typeof opt !== "object") {
|
|
@@ -57146,10 +57373,10 @@ var YargsInstance = class {
|
|
|
57146
57373
|
"description",
|
|
57147
57374
|
"alias"
|
|
57148
57375
|
];
|
|
57149
|
-
opts = objFilter(opts, (
|
|
57150
|
-
if (
|
|
57376
|
+
opts = objFilter(opts, (k2, v2) => {
|
|
57377
|
+
if (k2 === "type" && !["string", "number", "boolean"].includes(v2))
|
|
57151
57378
|
return false;
|
|
57152
|
-
return supportedOpts.includes(
|
|
57379
|
+
return supportedOpts.includes(k2);
|
|
57153
57380
|
});
|
|
57154
57381
|
const fullCommand = __classPrivateFieldGet(this, _YargsInstance_context, "f").fullCommands[__classPrivateFieldGet(this, _YargsInstance_context, "f").fullCommands.length - 1];
|
|
57155
57382
|
const parseOptions = fullCommand ? __classPrivateFieldGet(this, _YargsInstance_command, "f").cmdToParseOptions(fullCommand) : {
|
|
@@ -57202,9 +57429,9 @@ var YargsInstance = class {
|
|
|
57202
57429
|
__classPrivateFieldSet(this, _YargsInstance_hasOutput, true, "f");
|
|
57203
57430
|
if (!__classPrivateFieldGet(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) {
|
|
57204
57431
|
if (!this.parsed) {
|
|
57205
|
-
const
|
|
57206
|
-
if (isPromise(
|
|
57207
|
-
|
|
57432
|
+
const parse3 = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet(this, _YargsInstance_processArgs, "f"), void 0, void 0, 0, true);
|
|
57433
|
+
if (isPromise(parse3)) {
|
|
57434
|
+
parse3.then(() => {
|
|
57208
57435
|
__classPrivateFieldGet(this, _YargsInstance_usage, "f").showHelp(level);
|
|
57209
57436
|
});
|
|
57210
57437
|
return this;
|
|
@@ -57484,12 +57711,12 @@ var YargsInstance = class {
|
|
|
57484
57711
|
}
|
|
57485
57712
|
[kPopulateParserHintDictionary](builder, type, key, value, singleKeyHandler) {
|
|
57486
57713
|
if (Array.isArray(key)) {
|
|
57487
|
-
key.forEach((
|
|
57488
|
-
builder(
|
|
57714
|
+
key.forEach((k2) => {
|
|
57715
|
+
builder(k2, value);
|
|
57489
57716
|
});
|
|
57490
57717
|
} else if (((key2) => typeof key2 === "object")(key)) {
|
|
57491
|
-
for (const
|
|
57492
|
-
builder(
|
|
57718
|
+
for (const k2 of objectKeys(key)) {
|
|
57719
|
+
builder(k2, key[k2]);
|
|
57493
57720
|
}
|
|
57494
57721
|
} else {
|
|
57495
57722
|
singleKeyHandler(type, this[kSanitizeKey](key), value);
|
|
@@ -57633,8 +57860,8 @@ var YargsInstance = class {
|
|
|
57633
57860
|
const localLookup = {};
|
|
57634
57861
|
tmpOptions.local.forEach((l2) => {
|
|
57635
57862
|
localLookup[l2] = true;
|
|
57636
|
-
(aliases[l2] || []).forEach((
|
|
57637
|
-
localLookup[
|
|
57863
|
+
(aliases[l2] || []).forEach((a) => {
|
|
57864
|
+
localLookup[a] = true;
|
|
57638
57865
|
});
|
|
57639
57866
|
});
|
|
57640
57867
|
Object.assign(__classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f"), Object.keys(__classPrivateFieldGet(this, _YargsInstance_groups, "f")).reduce((acc, groupName) => {
|
|
@@ -57667,11 +57894,11 @@ var YargsInstance = class {
|
|
|
57667
57894
|
"demandedCommands",
|
|
57668
57895
|
"deprecatedOptions"
|
|
57669
57896
|
];
|
|
57670
|
-
arrayOptions.forEach((
|
|
57671
|
-
tmpOptions[
|
|
57897
|
+
arrayOptions.forEach((k2) => {
|
|
57898
|
+
tmpOptions[k2] = (__classPrivateFieldGet(this, _YargsInstance_options, "f")[k2] || []).filter((k3) => !localLookup[k3]);
|
|
57672
57899
|
});
|
|
57673
|
-
objectOptions.forEach((
|
|
57674
|
-
tmpOptions[
|
|
57900
|
+
objectOptions.forEach((k2) => {
|
|
57901
|
+
tmpOptions[k2] = objFilter(__classPrivateFieldGet(this, _YargsInstance_options, "f")[k2], (k3) => !localLookup[k3]);
|
|
57675
57902
|
});
|
|
57676
57903
|
tmpOptions.envPrefix = __classPrivateFieldGet(this, _YargsInstance_options, "f").envPrefix;
|
|
57677
57904
|
__classPrivateFieldSet(this, _YargsInstance_options, tmpOptions, "f");
|
|
@@ -57726,7 +57953,7 @@ var YargsInstance = class {
|
|
|
57726
57953
|
return this[kPostProcess](argv, populateDoubleDash, !!calledFromCommand, false);
|
|
57727
57954
|
}
|
|
57728
57955
|
if (__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")) {
|
|
57729
|
-
const helpCmds = [__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")].concat(aliases[__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")] || []).filter((
|
|
57956
|
+
const helpCmds = [__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")].concat(aliases[__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")] || []).filter((k2) => k2.length > 1);
|
|
57730
57957
|
if (helpCmds.includes("" + argv._[argv._.length - 1])) {
|
|
57731
57958
|
argv._.pop();
|
|
57732
57959
|
helpOptSet = true;
|
|
@@ -57849,14 +58076,14 @@ var YargsInstance = class {
|
|
|
57849
58076
|
if (typeof keys === "string") {
|
|
57850
58077
|
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[keys] = true;
|
|
57851
58078
|
} else {
|
|
57852
|
-
for (const
|
|
57853
|
-
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[
|
|
58079
|
+
for (const k2 of keys) {
|
|
58080
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[k2] = true;
|
|
57854
58081
|
}
|
|
57855
58082
|
}
|
|
57856
58083
|
}
|
|
57857
58084
|
};
|
|
57858
|
-
function isYargsInstance(
|
|
57859
|
-
return !!
|
|
58085
|
+
function isYargsInstance(y2) {
|
|
58086
|
+
return !!y2 && typeof y2.getInternalMethods === "function";
|
|
57860
58087
|
}
|
|
57861
58088
|
|
|
57862
58089
|
// ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/index.mjs
|
|
@@ -57864,10 +58091,11 @@ var Yargs = YargsFactory(esm_default);
|
|
|
57864
58091
|
var yargs_default = Yargs;
|
|
57865
58092
|
|
|
57866
58093
|
// package.json
|
|
57867
|
-
var version = "2.
|
|
58094
|
+
var version = "2.4.0";
|
|
57868
58095
|
var devDependencies = {
|
|
57869
58096
|
"@babel/parser": "^7.21.3",
|
|
57870
58097
|
"@babel/types": "^7.21.4",
|
|
58098
|
+
"@clack/core": "^0.3.2",
|
|
57871
58099
|
"@clack/prompts": "^0.6.3",
|
|
57872
58100
|
"@cloudflare/eslint-config-worker": "*",
|
|
57873
58101
|
"@cloudflare/workers-tsconfig": "workspace:*",
|
|
@@ -57877,22 +58105,27 @@ var devDependencies = {
|
|
|
57877
58105
|
"@types/dns2": "^2.0.3",
|
|
57878
58106
|
"@types/esprima": "^4.0.3",
|
|
57879
58107
|
"@types/node": "^18.15.3",
|
|
58108
|
+
"@types/semver": "^7.5.1",
|
|
58109
|
+
"@types/shell-quote": "^1.7.2",
|
|
57880
58110
|
"@types/which-pm-runs": "^1.0.0",
|
|
57881
58111
|
"@types/yargs": "^17.0.22",
|
|
57882
58112
|
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
57883
58113
|
"@typescript-eslint/parser": "^5.55.0",
|
|
58114
|
+
"ansi-escapes": "^6.2.0",
|
|
57884
58115
|
chalk: "^5.2.0",
|
|
57885
58116
|
"command-exists": "^1.2.9",
|
|
57886
58117
|
"cross-spawn": "^7.0.3",
|
|
57887
58118
|
dns2: "^2.1.0",
|
|
57888
58119
|
esbuild: "^0.17.12",
|
|
57889
58120
|
execa: "^7.1.1",
|
|
58121
|
+
glob: "^10.3.3",
|
|
57890
58122
|
haikunator: "^2.1.2",
|
|
57891
58123
|
"log-update": "^5.0.1",
|
|
57892
58124
|
open: "^8.4.0",
|
|
57893
58125
|
pnpm: "^8.6.11",
|
|
57894
58126
|
recast: "^0.22.0",
|
|
57895
58127
|
semver: "^7.5.1",
|
|
58128
|
+
"shell-quote": "^1.8.1",
|
|
57896
58129
|
typescript: "^5.0.2",
|
|
57897
58130
|
undici: "5.20.0",
|
|
57898
58131
|
"vite-tsconfig-paths": "^4.0.8",
|
|
@@ -57900,9 +58133,7 @@ var devDependencies = {
|
|
|
57900
58133
|
"which-pm-runs": "^1.1.0",
|
|
57901
58134
|
wrangler: "workspace:*",
|
|
57902
58135
|
yargs: "^17.7.1",
|
|
57903
|
-
yarn: "^1.22.19"
|
|
57904
|
-
"@clack/core": "^0.3.2",
|
|
57905
|
-
"@types/semver": "^7.5.1"
|
|
58136
|
+
yarn: "^1.22.19"
|
|
57906
58137
|
};
|
|
57907
58138
|
|
|
57908
58139
|
// src/pages.ts
|
|
@@ -58504,7 +58735,7 @@ async function openInBrowser(url) {
|
|
|
58504
58735
|
}
|
|
58505
58736
|
var C3_DEFAULTS = {
|
|
58506
58737
|
projectName: new import_haikunator.default().haikunate({ tokenHex: true }),
|
|
58507
|
-
type: "
|
|
58738
|
+
type: "webFramework",
|
|
58508
58739
|
framework: "angular",
|
|
58509
58740
|
autoUpdate: true,
|
|
58510
58741
|
deploy: true,
|
|
@@ -58514,6 +58745,7 @@ var C3_DEFAULTS = {
|
|
|
58514
58745
|
};
|
|
58515
58746
|
var WRANGLER_DEFAULTS = {
|
|
58516
58747
|
...C3_DEFAULTS,
|
|
58748
|
+
type: "hello-world",
|
|
58517
58749
|
deploy: false
|
|
58518
58750
|
};
|
|
58519
58751
|
|
|
@@ -58533,8 +58765,8 @@ var import_node_readline = __toESM(require("node:readline"), 1);
|
|
|
58533
58765
|
var import_node_tty2 = require("node:tty");
|
|
58534
58766
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
58535
58767
|
function z({ onlyFirst: t = false } = {}) {
|
|
58536
|
-
const
|
|
58537
|
-
return new RegExp(
|
|
58768
|
+
const u = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
|
|
58769
|
+
return new RegExp(u, t ? void 0 : "g");
|
|
58538
58770
|
}
|
|
58539
58771
|
function $(t) {
|
|
58540
58772
|
if (typeof t != "string")
|
|
@@ -58548,44 +58780,44 @@ var G = { get exports() {
|
|
|
58548
58780
|
m = t;
|
|
58549
58781
|
} };
|
|
58550
58782
|
(function(t) {
|
|
58551
|
-
var
|
|
58552
|
-
t.exports =
|
|
58553
|
-
var s = e.charCodeAt(0), C = e.length == 2 ? e.charCodeAt(1) : 0,
|
|
58554
|
-
return 55296 <= s && s <= 56319 && 56320 <= C && C <= 57343 && (s &= 1023, C &= 1023,
|
|
58555
|
-
},
|
|
58783
|
+
var u = {};
|
|
58784
|
+
t.exports = u, u.eastAsianWidth = function(e) {
|
|
58785
|
+
var s = e.charCodeAt(0), C = e.length == 2 ? e.charCodeAt(1) : 0, D = s;
|
|
58786
|
+
return 55296 <= s && s <= 56319 && 56320 <= C && C <= 57343 && (s &= 1023, C &= 1023, D = s << 10 | C, D += 65536), D == 12288 || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : D == 8361 || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || D == 172 || D == 175 || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : D == 161 || D == 164 || 167 <= D && D <= 168 || D == 170 || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || D == 198 || D == 208 || 215 <= D && D <= 216 || 222 <= D && D <= 225 || D == 230 || 232 <= D && D <= 234 || 236 <= D && D <= 237 || D == 240 || 242 <= D && D <= 243 || 247 <= D && D <= 250 || D == 252 || D == 254 || D == 257 || D == 273 || D == 275 || D == 283 || 294 <= D && D <= 295 || D == 299 || 305 <= D && D <= 307 || D == 312 || 319 <= D && D <= 322 || D == 324 || 328 <= D && D <= 331 || D == 333 || 338 <= D && D <= 339 || 358 <= D && D <= 359 || D == 363 || D == 462 || D == 464 || D == 466 || D == 468 || D == 470 || D == 472 || D == 474 || D == 476 || D == 593 || D == 609 || D == 708 || D == 711 || 713 <= D && D <= 715 || D == 717 || D == 720 || 728 <= D && D <= 731 || D == 733 || D == 735 || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || D == 1025 || 1040 <= D && D <= 1103 || D == 1105 || D == 8208 || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || D == 8240 || 8242 <= D && D <= 8243 || D == 8245 || D == 8251 || D == 8254 || D == 8308 || D == 8319 || 8321 <= D && D <= 8324 || D == 8364 || D == 8451 || D == 8453 || D == 8457 || D == 8467 || D == 8470 || 8481 <= D && D <= 8482 || D == 8486 || D == 8491 || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || D == 8585 || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || D == 8658 || D == 8660 || D == 8679 || D == 8704 || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || D == 8715 || D == 8719 || D == 8721 || D == 8725 || D == 8730 || 8733 <= D && D <= 8736 || D == 8739 || D == 8741 || 8743 <= D && D <= 8748 || D == 8750 || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || D == 8776 || D == 8780 || D == 8786 || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || D == 8853 || D == 8857 || D == 8869 || D == 8895 || D == 8978 || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || D == 9675 || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || D == 9711 || 9733 <= D && D <= 9734 || D == 9737 || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || D == 9756 || D == 9758 || D == 9792 || D == 9794 || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || D == 9839 || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || D == 9955 || 9960 <= D && D <= 9983 || D == 10045 || D == 10071 || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || D == 65533 || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";
|
|
58787
|
+
}, u.characterLength = function(e) {
|
|
58556
58788
|
var s = this.eastAsianWidth(e);
|
|
58557
58789
|
return s == "F" || s == "W" || s == "A" ? 2 : 1;
|
|
58558
58790
|
};
|
|
58559
|
-
function
|
|
58791
|
+
function F(e) {
|
|
58560
58792
|
return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
|
|
58561
58793
|
}
|
|
58562
|
-
|
|
58563
|
-
for (var s =
|
|
58564
|
-
C = C + this.characterLength(s[
|
|
58794
|
+
u.length = function(e) {
|
|
58795
|
+
for (var s = F(e), C = 0, D = 0; D < s.length; D++)
|
|
58796
|
+
C = C + this.characterLength(s[D]);
|
|
58565
58797
|
return C;
|
|
58566
|
-
},
|
|
58567
|
-
textLen =
|
|
58568
|
-
for (var
|
|
58569
|
-
var
|
|
58798
|
+
}, u.slice = function(e, s, C) {
|
|
58799
|
+
textLen = u.length(e), s = s || 0, C = C || 1, s < 0 && (s = textLen + s), C < 0 && (C = textLen + C);
|
|
58800
|
+
for (var D = "", i = 0, o = F(e), E = 0; E < o.length; E++) {
|
|
58801
|
+
var a = o[E], n = u.length(a);
|
|
58570
58802
|
if (i >= s - (n == 2 ? 1 : 0))
|
|
58571
58803
|
if (i + n <= C)
|
|
58572
|
-
|
|
58804
|
+
D += a;
|
|
58573
58805
|
else
|
|
58574
58806
|
break;
|
|
58575
58807
|
i += n;
|
|
58576
58808
|
}
|
|
58577
|
-
return
|
|
58809
|
+
return D;
|
|
58578
58810
|
};
|
|
58579
58811
|
})(G);
|
|
58580
58812
|
var K = m;
|
|
58581
58813
|
var Y = function() {
|
|
58582
58814
|
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
58583
58815
|
};
|
|
58584
|
-
function c(t,
|
|
58585
|
-
if (typeof t != "string" || t.length === 0 || (
|
|
58816
|
+
function c(t, u = {}) {
|
|
58817
|
+
if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $(t), t.length === 0))
|
|
58586
58818
|
return 0;
|
|
58587
58819
|
t = t.replace(Y(), " ");
|
|
58588
|
-
const
|
|
58820
|
+
const F = u.ambiguousIsNarrow ? 1 : 2;
|
|
58589
58821
|
let e = 0;
|
|
58590
58822
|
for (const s of t) {
|
|
58591
58823
|
const C = s.codePointAt(0);
|
|
@@ -58597,7 +58829,7 @@ function c(t, u2 = {}) {
|
|
|
58597
58829
|
e += 2;
|
|
58598
58830
|
break;
|
|
58599
58831
|
case "A":
|
|
58600
|
-
e +=
|
|
58832
|
+
e += F;
|
|
58601
58833
|
break;
|
|
58602
58834
|
default:
|
|
58603
58835
|
e += 1;
|
|
@@ -58606,9 +58838,9 @@ function c(t, u2 = {}) {
|
|
|
58606
58838
|
return e;
|
|
58607
58839
|
}
|
|
58608
58840
|
var v = 10;
|
|
58609
|
-
var L = (t = 0) => (
|
|
58610
|
-
var M = (t = 0) => (
|
|
58611
|
-
var T = (t = 0) => (
|
|
58841
|
+
var L = (t = 0) => (u) => `\x1B[${u + t}m`;
|
|
58842
|
+
var M = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
|
|
58843
|
+
var T = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;
|
|
58612
58844
|
var r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
|
|
58613
58845
|
Object.keys(r.modifier);
|
|
58614
58846
|
var Z = Object.keys(r.color);
|
|
@@ -58616,38 +58848,38 @@ var H = Object.keys(r.bgColor);
|
|
|
58616
58848
|
[...Z, ...H];
|
|
58617
58849
|
function U() {
|
|
58618
58850
|
const t = /* @__PURE__ */ new Map();
|
|
58619
|
-
for (const [
|
|
58620
|
-
for (const [e, s] of Object.entries(
|
|
58621
|
-
r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` },
|
|
58622
|
-
Object.defineProperty(r,
|
|
58623
|
-
}
|
|
58624
|
-
return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = M(), r.color.ansi16m = T(), r.bgColor.ansi = L(v), r.bgColor.ansi256 = M(v), r.bgColor.ansi16m = T(v), Object.defineProperties(r, { rgbToAnsi256: { value: (
|
|
58625
|
-
const
|
|
58626
|
-
if (!
|
|
58851
|
+
for (const [u, F] of Object.entries(r)) {
|
|
58852
|
+
for (const [e, s] of Object.entries(F))
|
|
58853
|
+
r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);
|
|
58854
|
+
Object.defineProperty(r, u, { value: F, enumerable: false });
|
|
58855
|
+
}
|
|
58856
|
+
return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = M(), r.color.ansi16m = T(), r.bgColor.ansi = L(v), r.bgColor.ansi256 = M(v), r.bgColor.ansi16m = T(v), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F, e) => u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
|
|
58857
|
+
const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
|
|
58858
|
+
if (!F)
|
|
58627
58859
|
return [0, 0, 0];
|
|
58628
|
-
let [e] =
|
|
58860
|
+
let [e] = F;
|
|
58629
58861
|
e.length === 3 && (e = [...e].map((C) => C + C).join(""));
|
|
58630
58862
|
const s = Number.parseInt(e, 16);
|
|
58631
58863
|
return [s >> 16 & 255, s >> 8 & 255, s & 255];
|
|
58632
|
-
}, enumerable: false }, hexToAnsi256: { value: (
|
|
58633
|
-
if (
|
|
58634
|
-
return 30 +
|
|
58635
|
-
if (
|
|
58636
|
-
return 90 + (
|
|
58637
|
-
let
|
|
58638
|
-
if (
|
|
58639
|
-
|
|
58864
|
+
}, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
|
|
58865
|
+
if (u < 8)
|
|
58866
|
+
return 30 + u;
|
|
58867
|
+
if (u < 16)
|
|
58868
|
+
return 90 + (u - 8);
|
|
58869
|
+
let F, e, s;
|
|
58870
|
+
if (u >= 232)
|
|
58871
|
+
F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
|
|
58640
58872
|
else {
|
|
58641
|
-
|
|
58642
|
-
const i =
|
|
58643
|
-
|
|
58873
|
+
u -= 16;
|
|
58874
|
+
const i = u % 36;
|
|
58875
|
+
F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s = i % 6 / 5;
|
|
58644
58876
|
}
|
|
58645
|
-
const C = Math.max(
|
|
58877
|
+
const C = Math.max(F, e, s) * 2;
|
|
58646
58878
|
if (C === 0)
|
|
58647
58879
|
return 30;
|
|
58648
|
-
let
|
|
58649
|
-
return C === 2 && (
|
|
58650
|
-
}, enumerable: false }, rgbToAnsi: { value: (
|
|
58880
|
+
let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
|
|
58881
|
+
return C === 2 && (D += 60), D;
|
|
58882
|
+
}, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
|
|
58651
58883
|
}
|
|
58652
58884
|
var q = U();
|
|
58653
58885
|
var p = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
|
|
@@ -58659,177 +58891,174 @@ var I = "m";
|
|
|
58659
58891
|
var w = `${Q}8;;`;
|
|
58660
58892
|
var N = (t) => `${p.values().next().value}${W}${t}${I}`;
|
|
58661
58893
|
var j = (t) => `${p.values().next().value}${w}${t}${b}`;
|
|
58662
|
-
var X = (t) => t.split(" ").map((
|
|
58663
|
-
var _ = (t,
|
|
58664
|
-
const e = [...
|
|
58665
|
-
let s = false, C = false,
|
|
58666
|
-
for (const [i,
|
|
58667
|
-
const
|
|
58668
|
-
if (
|
|
58669
|
-
C ?
|
|
58894
|
+
var X = (t) => t.split(" ").map((u) => c(u));
|
|
58895
|
+
var _ = (t, u, F) => {
|
|
58896
|
+
const e = [...u];
|
|
58897
|
+
let s = false, C = false, D = c($(t[t.length - 1]));
|
|
58898
|
+
for (const [i, o] of e.entries()) {
|
|
58899
|
+
const E = c(o);
|
|
58900
|
+
if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), p.has(o) && (s = true, C = e.slice(i + 1).join("").startsWith(w)), s) {
|
|
58901
|
+
C ? o === b && (s = false, C = false) : o === I && (s = false);
|
|
58670
58902
|
continue;
|
|
58671
58903
|
}
|
|
58672
|
-
|
|
58904
|
+
D += E, D === F && i < e.length - 1 && (t.push(""), D = 0);
|
|
58673
58905
|
}
|
|
58674
|
-
!
|
|
58906
|
+
!D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
|
|
58675
58907
|
};
|
|
58676
58908
|
var DD = (t) => {
|
|
58677
|
-
const
|
|
58678
|
-
let
|
|
58679
|
-
for (;
|
|
58680
|
-
|
|
58681
|
-
return
|
|
58909
|
+
const u = t.split(" ");
|
|
58910
|
+
let F = u.length;
|
|
58911
|
+
for (; F > 0 && !(c(u[F - 1]) > 0); )
|
|
58912
|
+
F--;
|
|
58913
|
+
return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
|
|
58682
58914
|
};
|
|
58683
|
-
var uD = (t,
|
|
58684
|
-
if (
|
|
58915
|
+
var uD = (t, u, F = {}) => {
|
|
58916
|
+
if (F.trim !== false && t.trim() === "")
|
|
58685
58917
|
return "";
|
|
58686
58918
|
let e = "", s, C;
|
|
58687
|
-
const
|
|
58919
|
+
const D = X(t);
|
|
58688
58920
|
let i = [""];
|
|
58689
|
-
for (const [
|
|
58690
|
-
|
|
58921
|
+
for (const [E, a] of t.split(" ").entries()) {
|
|
58922
|
+
F.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
|
|
58691
58923
|
let n = c(i[i.length - 1]);
|
|
58692
|
-
if (
|
|
58693
|
-
const B =
|
|
58694
|
-
Math.floor((
|
|
58924
|
+
if (E !== 0 && (n >= u && (F.wordWrap === false || F.trim === false) && (i.push(""), n = 0), (n > 0 || F.trim === false) && (i[i.length - 1] += " ", n++)), F.hard && D[E] > u) {
|
|
58925
|
+
const B = u - n, A = 1 + Math.floor((D[E] - B - 1) / u);
|
|
58926
|
+
Math.floor((D[E] - 1) / u) < A && i.push(""), _(i, a, u);
|
|
58695
58927
|
continue;
|
|
58696
58928
|
}
|
|
58697
|
-
if (n +
|
|
58698
|
-
if (
|
|
58699
|
-
_(i,
|
|
58929
|
+
if (n + D[E] > u && n > 0 && D[E] > 0) {
|
|
58930
|
+
if (F.wordWrap === false && n < u) {
|
|
58931
|
+
_(i, a, u);
|
|
58700
58932
|
continue;
|
|
58701
58933
|
}
|
|
58702
58934
|
i.push("");
|
|
58703
58935
|
}
|
|
58704
|
-
if (n +
|
|
58705
|
-
_(i,
|
|
58936
|
+
if (n + D[E] > u && F.wordWrap === false) {
|
|
58937
|
+
_(i, a, u);
|
|
58706
58938
|
continue;
|
|
58707
58939
|
}
|
|
58708
|
-
i[i.length - 1] +=
|
|
58940
|
+
i[i.length - 1] += a;
|
|
58709
58941
|
}
|
|
58710
|
-
|
|
58711
|
-
const
|
|
58942
|
+
F.trim !== false && (i = i.map((E) => DD(E)));
|
|
58943
|
+
const o = [...i.join(`
|
|
58712
58944
|
`)];
|
|
58713
|
-
for (const [
|
|
58714
|
-
if (e +=
|
|
58715
|
-
const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(
|
|
58945
|
+
for (const [E, a] of o.entries()) {
|
|
58946
|
+
if (e += a, p.has(a)) {
|
|
58947
|
+
const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(o.slice(E).join("")) || { groups: {} };
|
|
58716
58948
|
if (B.code !== void 0) {
|
|
58717
|
-
const
|
|
58718
|
-
s =
|
|
58949
|
+
const A = Number.parseFloat(B.code);
|
|
58950
|
+
s = A === J ? void 0 : A;
|
|
58719
58951
|
} else
|
|
58720
58952
|
B.uri !== void 0 && (C = B.uri.length === 0 ? void 0 : B.uri);
|
|
58721
58953
|
}
|
|
58722
58954
|
const n = q.codes.get(Number(s));
|
|
58723
|
-
|
|
58724
|
-
` ? (C && (e += j("")), s && n && (e += N(n))) :
|
|
58955
|
+
o[E + 1] === `
|
|
58956
|
+
` ? (C && (e += j("")), s && n && (e += N(n))) : a === `
|
|
58725
58957
|
` && (s && n && (e += N(s)), C && (e += j(C)));
|
|
58726
58958
|
}
|
|
58727
58959
|
return e;
|
|
58728
58960
|
};
|
|
58729
|
-
function P(t,
|
|
58961
|
+
function P(t, u, F) {
|
|
58730
58962
|
return String(t).normalize().replace(/\r\n/g, `
|
|
58731
58963
|
`).split(`
|
|
58732
|
-
`).map((e) => uD(e,
|
|
58964
|
+
`).map((e) => uD(e, u, F)).join(`
|
|
58733
58965
|
`);
|
|
58734
58966
|
}
|
|
58735
|
-
function FD(t,
|
|
58736
|
-
if (t ===
|
|
58967
|
+
function FD(t, u) {
|
|
58968
|
+
if (t === u)
|
|
58737
58969
|
return;
|
|
58738
|
-
const
|
|
58739
|
-
`), e =
|
|
58970
|
+
const F = t.split(`
|
|
58971
|
+
`), e = u.split(`
|
|
58740
58972
|
`), s = [];
|
|
58741
|
-
for (let C = 0; C < Math.max(
|
|
58742
|
-
|
|
58973
|
+
for (let C = 0; C < Math.max(F.length, e.length); C++)
|
|
58974
|
+
F[C] !== e[C] && s.push(C);
|
|
58743
58975
|
return s;
|
|
58744
58976
|
}
|
|
58745
58977
|
var R = Symbol("clack:cancel");
|
|
58746
|
-
function
|
|
58747
|
-
|
|
58748
|
-
}
|
|
58749
|
-
function g(t, u2) {
|
|
58750
|
-
t.isTTY && t.setRawMode(u2);
|
|
58978
|
+
function g(t, u) {
|
|
58979
|
+
t.isTTY && t.setRawMode(u);
|
|
58751
58980
|
}
|
|
58752
58981
|
var V = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
|
|
58753
58982
|
var tD = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
|
|
58754
58983
|
var h = class {
|
|
58755
|
-
constructor({ render:
|
|
58756
|
-
this._track = false, this._cursor = 0, this.state = "initial", this.error = "", this.subscribers = /* @__PURE__ */ new Map(), this._prevFrame = "", this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render =
|
|
58984
|
+
constructor({ render: u, input: F = import_node_process2.stdin, output: e = import_node_process2.stdout, ...s }, C = true) {
|
|
58985
|
+
this._track = false, this._cursor = 0, this.state = "initial", this.error = "", this.subscribers = /* @__PURE__ */ new Map(), this._prevFrame = "", this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u.bind(this), this._track = C, this.input = F, this.output = e;
|
|
58757
58986
|
}
|
|
58758
58987
|
prompt() {
|
|
58759
|
-
const
|
|
58760
|
-
return
|
|
58988
|
+
const u = new import_node_tty2.WriteStream(0);
|
|
58989
|
+
return u._write = (F, e, s) => {
|
|
58761
58990
|
this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), s();
|
|
58762
|
-
}, this.input.pipe(
|
|
58991
|
+
}, this.input.pipe(u), this.rl = import_node_readline.default.createInterface({ input: this.input, output: u, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), import_node_readline.default.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), g(this.input, true), this.output.on("resize", this.render), this.render(), new Promise((F, e) => {
|
|
58763
58992
|
this.once("submit", () => {
|
|
58764
|
-
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), g(this.input, false),
|
|
58993
|
+
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), g(this.input, false), F(this.value);
|
|
58765
58994
|
}), this.once("cancel", () => {
|
|
58766
|
-
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), g(this.input, false),
|
|
58995
|
+
this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), g(this.input, false), F(R);
|
|
58767
58996
|
});
|
|
58768
58997
|
});
|
|
58769
58998
|
}
|
|
58770
|
-
on(
|
|
58771
|
-
const e = this.subscribers.get(
|
|
58772
|
-
e.push({ cb:
|
|
58999
|
+
on(u, F) {
|
|
59000
|
+
const e = this.subscribers.get(u) ?? [];
|
|
59001
|
+
e.push({ cb: F }), this.subscribers.set(u, e);
|
|
58773
59002
|
}
|
|
58774
|
-
once(
|
|
58775
|
-
const e = this.subscribers.get(
|
|
58776
|
-
e.push({ cb:
|
|
59003
|
+
once(u, F) {
|
|
59004
|
+
const e = this.subscribers.get(u) ?? [];
|
|
59005
|
+
e.push({ cb: F, once: true }), this.subscribers.set(u, e);
|
|
58777
59006
|
}
|
|
58778
|
-
emit(
|
|
58779
|
-
const e = this.subscribers.get(
|
|
59007
|
+
emit(u, ...F) {
|
|
59008
|
+
const e = this.subscribers.get(u) ?? [], s = [];
|
|
58780
59009
|
for (const C of e)
|
|
58781
|
-
C.cb(...
|
|
59010
|
+
C.cb(...F), C.once && s.push(() => e.splice(e.indexOf(C), 1));
|
|
58782
59011
|
for (const C of s)
|
|
58783
59012
|
C();
|
|
58784
59013
|
}
|
|
58785
59014
|
unsubscribe() {
|
|
58786
59015
|
this.subscribers.clear();
|
|
58787
59016
|
}
|
|
58788
|
-
onKeypress(
|
|
58789
|
-
if (this.state === "error" && (this.state = "active"),
|
|
59017
|
+
onKeypress(u, F) {
|
|
59018
|
+
if (this.state === "error" && (this.state = "active"), F?.name && !this._track && V.has(F.name) && this.emit("cursor", V.get(F.name)), F?.name && tD.has(F.name) && this.emit("cursor", F.name), u && (u.toLowerCase() === "y" || u.toLowerCase() === "n") && this.emit("confirm", u.toLowerCase() === "y"), u && this.emit("key", u.toLowerCase()), F?.name === "return") {
|
|
58790
59019
|
if (this.opts.validate) {
|
|
58791
59020
|
const e = this.opts.validate(this.value);
|
|
58792
59021
|
e && (this.error = e, this.state = "error", this.rl.write(this.value));
|
|
58793
59022
|
}
|
|
58794
59023
|
this.state !== "error" && (this.state = "submit");
|
|
58795
59024
|
}
|
|
58796
|
-
|
|
59025
|
+
u === "" && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
|
|
58797
59026
|
}
|
|
58798
59027
|
close() {
|
|
58799
59028
|
this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
|
|
58800
59029
|
`), g(this.input, false), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
|
|
58801
59030
|
}
|
|
58802
59031
|
restoreCursor() {
|
|
58803
|
-
const
|
|
59032
|
+
const u = P(this._prevFrame, process.stdout.columns, { hard: true }).split(`
|
|
58804
59033
|
`).length - 1;
|
|
58805
|
-
this.output.write(import_sisteransi.cursor.move(-999,
|
|
59034
|
+
this.output.write(import_sisteransi.cursor.move(-999, u * -1));
|
|
58806
59035
|
}
|
|
58807
59036
|
render() {
|
|
58808
|
-
const
|
|
58809
|
-
if (
|
|
59037
|
+
const u = P(this._render(this) ?? "", process.stdout.columns, { hard: true });
|
|
59038
|
+
if (u !== this._prevFrame) {
|
|
58810
59039
|
if (this.state === "initial")
|
|
58811
59040
|
this.output.write(import_sisteransi.cursor.hide);
|
|
58812
59041
|
else {
|
|
58813
|
-
const
|
|
58814
|
-
if (this.restoreCursor(),
|
|
58815
|
-
const e =
|
|
59042
|
+
const F = FD(this._prevFrame, u);
|
|
59043
|
+
if (this.restoreCursor(), F && F?.length === 1) {
|
|
59044
|
+
const e = F[0];
|
|
58816
59045
|
this.output.write(import_sisteransi.cursor.move(0, e)), this.output.write(import_sisteransi.erase.lines(1));
|
|
58817
|
-
const s =
|
|
59046
|
+
const s = u.split(`
|
|
58818
59047
|
`);
|
|
58819
|
-
this.output.write(s[e]), this._prevFrame =
|
|
59048
|
+
this.output.write(s[e]), this._prevFrame = u, this.output.write(import_sisteransi.cursor.move(0, s.length - e - 1));
|
|
58820
59049
|
return;
|
|
58821
|
-
} else if (
|
|
58822
|
-
const e =
|
|
59050
|
+
} else if (F && F?.length > 1) {
|
|
59051
|
+
const e = F[0];
|
|
58823
59052
|
this.output.write(import_sisteransi.cursor.move(0, e)), this.output.write(import_sisteransi.erase.down());
|
|
58824
|
-
const C =
|
|
59053
|
+
const C = u.split(`
|
|
58825
59054
|
`).slice(e);
|
|
58826
59055
|
this.output.write(C.join(`
|
|
58827
|
-
`)), this._prevFrame =
|
|
59056
|
+
`)), this._prevFrame = u;
|
|
58828
59057
|
return;
|
|
58829
59058
|
}
|
|
58830
59059
|
this.output.write(import_sisteransi.erase.down());
|
|
58831
59060
|
}
|
|
58832
|
-
this.output.write(
|
|
59061
|
+
this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;
|
|
58833
59062
|
}
|
|
58834
59063
|
}
|
|
58835
59064
|
};
|
|
@@ -58840,20 +59069,20 @@ var sD = class extends h {
|
|
|
58840
59069
|
get _value() {
|
|
58841
59070
|
return this.cursor === 0;
|
|
58842
59071
|
}
|
|
58843
|
-
constructor(
|
|
58844
|
-
super(
|
|
59072
|
+
constructor(u) {
|
|
59073
|
+
super(u, false), this.value = !!u.initialValue, this.on("value", () => {
|
|
58845
59074
|
this.value = this._value;
|
|
58846
|
-
}), this.on("confirm", (
|
|
58847
|
-
this.output.write(import_sisteransi.cursor.move(0, -1)), this.value =
|
|
59075
|
+
}), this.on("confirm", (F) => {
|
|
59076
|
+
this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
|
|
58848
59077
|
}), this.on("cursor", () => {
|
|
58849
59078
|
this.value = !this.value;
|
|
58850
59079
|
});
|
|
58851
59080
|
}
|
|
58852
59081
|
};
|
|
58853
59082
|
var ED = class extends h {
|
|
58854
|
-
constructor(
|
|
58855
|
-
super(
|
|
58856
|
-
switch (
|
|
59083
|
+
constructor(u) {
|
|
59084
|
+
super(u, false), this.cursor = 0, this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
|
|
59085
|
+
switch (F) {
|
|
58857
59086
|
case "left":
|
|
58858
59087
|
case "up":
|
|
58859
59088
|
this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
|
|
@@ -58874,15 +59103,15 @@ var ED = class extends h {
|
|
|
58874
59103
|
}
|
|
58875
59104
|
};
|
|
58876
59105
|
var oD = class extends h {
|
|
58877
|
-
constructor(
|
|
58878
|
-
super(
|
|
58879
|
-
this.value || (this.value =
|
|
59106
|
+
constructor(u) {
|
|
59107
|
+
super(u), this.valueWithCursor = "", this.on("finalize", () => {
|
|
59108
|
+
this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
|
|
58880
59109
|
}), this.on("value", () => {
|
|
58881
59110
|
if (this.cursor >= this.value.length)
|
|
58882
59111
|
this.valueWithCursor = `${this.value}${import_picocolors.default.inverse(import_picocolors.default.hidden("_"))}`;
|
|
58883
59112
|
else {
|
|
58884
|
-
const
|
|
58885
|
-
this.valueWithCursor = `${
|
|
59113
|
+
const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
|
|
59114
|
+
this.valueWithCursor = `${F}${import_picocolors.default.inverse(e[0])}${e.slice(1)}`;
|
|
58886
59115
|
}
|
|
58887
59116
|
});
|
|
58888
59117
|
}
|
|
@@ -58891,56 +59120,29 @@ var oD = class extends h {
|
|
|
58891
59120
|
}
|
|
58892
59121
|
};
|
|
58893
59122
|
|
|
58894
|
-
// ../../node_modules/.pnpm
|
|
59123
|
+
// ../../node_modules/.pnpm/ansi-escapes@6.2.0/node_modules/ansi-escapes/index.js
|
|
58895
59124
|
var import_node_process3 = __toESM(require("node:process"), 1);
|
|
58896
|
-
var import_sisteransi2 = __toESM(require_src(), 1);
|
|
58897
|
-
function N2() {
|
|
58898
|
-
return import_node_process3.default.platform !== "win32" ? import_node_process3.default.env.TERM !== "linux" : Boolean(import_node_process3.default.env.CI) || Boolean(import_node_process3.default.env.WT_SESSION) || Boolean(import_node_process3.default.env.TERMINUS_SUBLIME) || import_node_process3.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process3.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process3.default.env.TERM_PROGRAM === "vscode" || import_node_process3.default.env.TERM === "xterm-256color" || import_node_process3.default.env.TERM === "alacritty" || import_node_process3.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
58899
|
-
}
|
|
58900
|
-
var p2 = N2();
|
|
58901
|
-
var u = (r2, n) => p2 ? r2 : n;
|
|
58902
|
-
var W2 = u("\u25C6", "*");
|
|
58903
|
-
var D = u("\u25A0", "x");
|
|
58904
|
-
var F = u("\u25B2", "x");
|
|
58905
|
-
var f = u("\u25C7", "o");
|
|
58906
|
-
var L2 = u("\u250C", "T");
|
|
58907
|
-
var a = u("\u2502", "|");
|
|
58908
|
-
var o = u("\u2514", "\u2014");
|
|
58909
|
-
var w2 = u("\u25CF", ">");
|
|
58910
|
-
var S2 = u("\u25CB", " ");
|
|
58911
|
-
var _2 = u("\u25FB", "[\u2022]");
|
|
58912
|
-
var y2 = u("\u25FC", "[+]");
|
|
58913
|
-
var A = u("\u25FB", "[ ]");
|
|
58914
|
-
var q2 = u("\u25AA", "\u2022");
|
|
58915
|
-
var R2 = u("\u2500", "-");
|
|
58916
|
-
var G2 = u("\u256E", "+");
|
|
58917
|
-
var H2 = u("\u251C", "+");
|
|
58918
|
-
var K2 = u("\u256F", "+");
|
|
58919
|
-
var U2 = u("\u25CF", "\u2022");
|
|
58920
|
-
var Z2 = u("\u25C6", "*");
|
|
58921
|
-
var z2 = u("\u25B2", "!");
|
|
58922
|
-
var X2 = u("\u25A0", "x");
|
|
58923
|
-
|
|
58924
|
-
// ../../node_modules/.pnpm/log-update@5.0.1/node_modules/log-update/index.js
|
|
58925
|
-
var import_node_process6 = __toESM(require("node:process"), 1);
|
|
58926
|
-
|
|
58927
|
-
// ../../node_modules/.pnpm/ansi-escapes@5.0.0/node_modules/ansi-escapes/index.js
|
|
58928
59125
|
var ESC = "\x1B[";
|
|
58929
59126
|
var OSC = "\x1B]";
|
|
58930
59127
|
var BEL = "\x07";
|
|
58931
59128
|
var SEP = ";";
|
|
58932
|
-
var
|
|
59129
|
+
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
59130
|
+
var isTerminalApp = !isBrowser && import_node_process3.default.env.TERM_PROGRAM === "Apple_Terminal";
|
|
59131
|
+
var isWindows = !isBrowser && import_node_process3.default.platform === "win32";
|
|
59132
|
+
var cwdFunction = isBrowser ? () => {
|
|
59133
|
+
throw new Error("`process.cwd()` only works in Node.js, not the browser.");
|
|
59134
|
+
} : import_node_process3.default.cwd;
|
|
58933
59135
|
var ansiEscapes = {};
|
|
58934
|
-
ansiEscapes.cursorTo = (x2,
|
|
59136
|
+
ansiEscapes.cursorTo = (x2, y2) => {
|
|
58935
59137
|
if (typeof x2 !== "number") {
|
|
58936
59138
|
throw new TypeError("The `x` argument is required");
|
|
58937
59139
|
}
|
|
58938
|
-
if (typeof
|
|
59140
|
+
if (typeof y2 !== "number") {
|
|
58939
59141
|
return ESC + (x2 + 1) + "G";
|
|
58940
59142
|
}
|
|
58941
|
-
return ESC + (
|
|
59143
|
+
return ESC + (y2 + 1) + SEP + (x2 + 1) + "H";
|
|
58942
59144
|
};
|
|
58943
|
-
ansiEscapes.cursorMove = (x2,
|
|
59145
|
+
ansiEscapes.cursorMove = (x2, y2) => {
|
|
58944
59146
|
if (typeof x2 !== "number") {
|
|
58945
59147
|
throw new TypeError("The `x` argument is required");
|
|
58946
59148
|
}
|
|
@@ -58950,10 +59152,10 @@ ansiEscapes.cursorMove = (x2, y3) => {
|
|
|
58950
59152
|
} else if (x2 > 0) {
|
|
58951
59153
|
returnValue += ESC + x2 + "C";
|
|
58952
59154
|
}
|
|
58953
|
-
if (
|
|
58954
|
-
returnValue += ESC + -
|
|
58955
|
-
} else if (
|
|
58956
|
-
returnValue += ESC +
|
|
59155
|
+
if (y2 < 0) {
|
|
59156
|
+
returnValue += ESC + -y2 + "A";
|
|
59157
|
+
} else if (y2 > 0) {
|
|
59158
|
+
returnValue += ESC + y2 + "B";
|
|
58957
59159
|
}
|
|
58958
59160
|
return returnValue;
|
|
58959
59161
|
};
|
|
@@ -58988,32 +59190,151 @@ ansiEscapes.eraseScreen = ESC + "2J";
|
|
|
58988
59190
|
ansiEscapes.scrollUp = ESC + "S";
|
|
58989
59191
|
ansiEscapes.scrollDown = ESC + "T";
|
|
58990
59192
|
ansiEscapes.clearScreen = "\x1Bc";
|
|
58991
|
-
ansiEscapes.clearTerminal =
|
|
59193
|
+
ansiEscapes.clearTerminal = isWindows ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
59194
|
+
ansiEscapes.enterAlternativeScreen = ESC + "?1049h";
|
|
59195
|
+
ansiEscapes.exitAlternativeScreen = ESC + "?1049l";
|
|
59196
|
+
ansiEscapes.beep = BEL;
|
|
59197
|
+
ansiEscapes.link = (text, url) => [
|
|
59198
|
+
OSC,
|
|
59199
|
+
"8",
|
|
59200
|
+
SEP,
|
|
59201
|
+
SEP,
|
|
59202
|
+
url,
|
|
59203
|
+
BEL,
|
|
59204
|
+
text,
|
|
59205
|
+
OSC,
|
|
59206
|
+
"8",
|
|
59207
|
+
SEP,
|
|
59208
|
+
SEP,
|
|
59209
|
+
BEL
|
|
59210
|
+
].join("");
|
|
59211
|
+
ansiEscapes.image = (buffer, options = {}) => {
|
|
59212
|
+
let returnValue = `${OSC}1337;File=inline=1`;
|
|
59213
|
+
if (options.width) {
|
|
59214
|
+
returnValue += `;width=${options.width}`;
|
|
59215
|
+
}
|
|
59216
|
+
if (options.height) {
|
|
59217
|
+
returnValue += `;height=${options.height}`;
|
|
59218
|
+
}
|
|
59219
|
+
if (options.preserveAspectRatio === false) {
|
|
59220
|
+
returnValue += ";preserveAspectRatio=0";
|
|
59221
|
+
}
|
|
59222
|
+
return returnValue + ":" + buffer.toString("base64") + BEL;
|
|
59223
|
+
};
|
|
59224
|
+
ansiEscapes.iTerm = {
|
|
59225
|
+
setCwd: (cwd = cwdFunction()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
59226
|
+
annotation(message, options = {}) {
|
|
59227
|
+
let returnValue = `${OSC}1337;`;
|
|
59228
|
+
const hasX = typeof options.x !== "undefined";
|
|
59229
|
+
const hasY = typeof options.y !== "undefined";
|
|
59230
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
59231
|
+
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
59232
|
+
}
|
|
59233
|
+
message = message.replace(/\|/g, "");
|
|
59234
|
+
returnValue += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
59235
|
+
if (options.length > 0) {
|
|
59236
|
+
returnValue += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
59237
|
+
} else {
|
|
59238
|
+
returnValue += message;
|
|
59239
|
+
}
|
|
59240
|
+
return returnValue + BEL;
|
|
59241
|
+
}
|
|
59242
|
+
};
|
|
59243
|
+
var ansi_escapes_default = ansiEscapes;
|
|
59244
|
+
|
|
59245
|
+
// ../../node_modules/.pnpm/log-update@5.0.1/node_modules/log-update/index.js
|
|
59246
|
+
var import_node_process6 = __toESM(require("node:process"), 1);
|
|
59247
|
+
|
|
59248
|
+
// ../../node_modules/.pnpm/ansi-escapes@5.0.0/node_modules/ansi-escapes/index.js
|
|
59249
|
+
var ESC2 = "\x1B[";
|
|
59250
|
+
var OSC2 = "\x1B]";
|
|
59251
|
+
var BEL2 = "\x07";
|
|
59252
|
+
var SEP2 = ";";
|
|
59253
|
+
var isTerminalApp2 = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
59254
|
+
var ansiEscapes2 = {};
|
|
59255
|
+
ansiEscapes2.cursorTo = (x2, y2) => {
|
|
59256
|
+
if (typeof x2 !== "number") {
|
|
59257
|
+
throw new TypeError("The `x` argument is required");
|
|
59258
|
+
}
|
|
59259
|
+
if (typeof y2 !== "number") {
|
|
59260
|
+
return ESC2 + (x2 + 1) + "G";
|
|
59261
|
+
}
|
|
59262
|
+
return ESC2 + (y2 + 1) + ";" + (x2 + 1) + "H";
|
|
59263
|
+
};
|
|
59264
|
+
ansiEscapes2.cursorMove = (x2, y2) => {
|
|
59265
|
+
if (typeof x2 !== "number") {
|
|
59266
|
+
throw new TypeError("The `x` argument is required");
|
|
59267
|
+
}
|
|
59268
|
+
let returnValue = "";
|
|
59269
|
+
if (x2 < 0) {
|
|
59270
|
+
returnValue += ESC2 + -x2 + "D";
|
|
59271
|
+
} else if (x2 > 0) {
|
|
59272
|
+
returnValue += ESC2 + x2 + "C";
|
|
59273
|
+
}
|
|
59274
|
+
if (y2 < 0) {
|
|
59275
|
+
returnValue += ESC2 + -y2 + "A";
|
|
59276
|
+
} else if (y2 > 0) {
|
|
59277
|
+
returnValue += ESC2 + y2 + "B";
|
|
59278
|
+
}
|
|
59279
|
+
return returnValue;
|
|
59280
|
+
};
|
|
59281
|
+
ansiEscapes2.cursorUp = (count = 1) => ESC2 + count + "A";
|
|
59282
|
+
ansiEscapes2.cursorDown = (count = 1) => ESC2 + count + "B";
|
|
59283
|
+
ansiEscapes2.cursorForward = (count = 1) => ESC2 + count + "C";
|
|
59284
|
+
ansiEscapes2.cursorBackward = (count = 1) => ESC2 + count + "D";
|
|
59285
|
+
ansiEscapes2.cursorLeft = ESC2 + "G";
|
|
59286
|
+
ansiEscapes2.cursorSavePosition = isTerminalApp2 ? "\x1B7" : ESC2 + "s";
|
|
59287
|
+
ansiEscapes2.cursorRestorePosition = isTerminalApp2 ? "\x1B8" : ESC2 + "u";
|
|
59288
|
+
ansiEscapes2.cursorGetPosition = ESC2 + "6n";
|
|
59289
|
+
ansiEscapes2.cursorNextLine = ESC2 + "E";
|
|
59290
|
+
ansiEscapes2.cursorPrevLine = ESC2 + "F";
|
|
59291
|
+
ansiEscapes2.cursorHide = ESC2 + "?25l";
|
|
59292
|
+
ansiEscapes2.cursorShow = ESC2 + "?25h";
|
|
59293
|
+
ansiEscapes2.eraseLines = (count) => {
|
|
59294
|
+
let clear = "";
|
|
59295
|
+
for (let i = 0; i < count; i++) {
|
|
59296
|
+
clear += ansiEscapes2.eraseLine + (i < count - 1 ? ansiEscapes2.cursorUp() : "");
|
|
59297
|
+
}
|
|
59298
|
+
if (count) {
|
|
59299
|
+
clear += ansiEscapes2.cursorLeft;
|
|
59300
|
+
}
|
|
59301
|
+
return clear;
|
|
59302
|
+
};
|
|
59303
|
+
ansiEscapes2.eraseEndLine = ESC2 + "K";
|
|
59304
|
+
ansiEscapes2.eraseStartLine = ESC2 + "1K";
|
|
59305
|
+
ansiEscapes2.eraseLine = ESC2 + "2K";
|
|
59306
|
+
ansiEscapes2.eraseDown = ESC2 + "J";
|
|
59307
|
+
ansiEscapes2.eraseUp = ESC2 + "1J";
|
|
59308
|
+
ansiEscapes2.eraseScreen = ESC2 + "2J";
|
|
59309
|
+
ansiEscapes2.scrollUp = ESC2 + "S";
|
|
59310
|
+
ansiEscapes2.scrollDown = ESC2 + "T";
|
|
59311
|
+
ansiEscapes2.clearScreen = "\x1Bc";
|
|
59312
|
+
ansiEscapes2.clearTerminal = process.platform === "win32" ? `${ansiEscapes2.eraseScreen}${ESC2}0f` : (
|
|
58992
59313
|
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
58993
59314
|
// 2. Erases the whole screen including scrollback buffer
|
|
58994
59315
|
// 3. Moves cursor to the top-left position
|
|
58995
59316
|
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
58996
|
-
`${
|
|
59317
|
+
`${ansiEscapes2.eraseScreen}${ESC2}3J${ESC2}H`
|
|
58997
59318
|
);
|
|
58998
|
-
|
|
58999
|
-
|
|
59319
|
+
ansiEscapes2.beep = BEL2;
|
|
59320
|
+
ansiEscapes2.link = (text, url) => {
|
|
59000
59321
|
return [
|
|
59001
|
-
|
|
59322
|
+
OSC2,
|
|
59002
59323
|
"8",
|
|
59003
|
-
|
|
59004
|
-
|
|
59324
|
+
SEP2,
|
|
59325
|
+
SEP2,
|
|
59005
59326
|
url,
|
|
59006
|
-
|
|
59327
|
+
BEL2,
|
|
59007
59328
|
text,
|
|
59008
|
-
|
|
59329
|
+
OSC2,
|
|
59009
59330
|
"8",
|
|
59010
|
-
|
|
59011
|
-
|
|
59012
|
-
|
|
59331
|
+
SEP2,
|
|
59332
|
+
SEP2,
|
|
59333
|
+
BEL2
|
|
59013
59334
|
].join("");
|
|
59014
59335
|
};
|
|
59015
|
-
|
|
59016
|
-
let returnValue = `${
|
|
59336
|
+
ansiEscapes2.image = (buffer, options = {}) => {
|
|
59337
|
+
let returnValue = `${OSC2}1337;File=inline=1`;
|
|
59017
59338
|
if (options.width) {
|
|
59018
59339
|
returnValue += `;width=${options.width}`;
|
|
59019
59340
|
}
|
|
@@ -59023,12 +59344,12 @@ ansiEscapes.image = (buffer, options = {}) => {
|
|
|
59023
59344
|
if (options.preserveAspectRatio === false) {
|
|
59024
59345
|
returnValue += ";preserveAspectRatio=0";
|
|
59025
59346
|
}
|
|
59026
|
-
return returnValue + ":" + buffer.toString("base64") +
|
|
59347
|
+
return returnValue + ":" + buffer.toString("base64") + BEL2;
|
|
59027
59348
|
};
|
|
59028
|
-
|
|
59029
|
-
setCwd: (cwd = process.cwd()) => `${
|
|
59349
|
+
ansiEscapes2.iTerm = {
|
|
59350
|
+
setCwd: (cwd = process.cwd()) => `${OSC2}50;CurrentDir=${cwd}${BEL2}`,
|
|
59030
59351
|
annotation: (message, options = {}) => {
|
|
59031
|
-
let returnValue = `${
|
|
59352
|
+
let returnValue = `${OSC2}1337;`;
|
|
59032
59353
|
const hasX = typeof options.x !== "undefined";
|
|
59033
59354
|
const hasY = typeof options.y !== "undefined";
|
|
59034
59355
|
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
@@ -59041,10 +59362,10 @@ ansiEscapes.iTerm = {
|
|
|
59041
59362
|
} else {
|
|
59042
59363
|
returnValue += message;
|
|
59043
59364
|
}
|
|
59044
|
-
return returnValue +
|
|
59365
|
+
return returnValue + BEL2;
|
|
59045
59366
|
}
|
|
59046
59367
|
};
|
|
59047
|
-
var
|
|
59368
|
+
var ansi_escapes_default2 = ansiEscapes2;
|
|
59048
59369
|
|
|
59049
59370
|
// ../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
|
|
59050
59371
|
var import_node_process5 = __toESM(require("node:process"), 1);
|
|
@@ -59635,11 +59956,11 @@ function createLogUpdate(stream, { showCursor = false } = {}) {
|
|
|
59635
59956
|
hard: true,
|
|
59636
59957
|
wordWrap: false
|
|
59637
59958
|
});
|
|
59638
|
-
stream.write(
|
|
59959
|
+
stream.write(ansi_escapes_default2.eraseLines(previousLineCount) + output);
|
|
59639
59960
|
previousLineCount = output.split("\n").length;
|
|
59640
59961
|
};
|
|
59641
59962
|
render.clear = () => {
|
|
59642
|
-
stream.write(
|
|
59963
|
+
stream.write(ansi_escapes_default2.eraseLines(previousLineCount));
|
|
59643
59964
|
previousOutput = "";
|
|
59644
59965
|
previousWidth = getWidth(stream);
|
|
59645
59966
|
previousLineCount = 0;
|
|
@@ -59698,10 +60019,6 @@ var inputPrompt = async (promptConfig) => {
|
|
|
59698
60019
|
});
|
|
59699
60020
|
}
|
|
59700
60021
|
const input = await prompt.prompt();
|
|
59701
|
-
if (eD(input)) {
|
|
59702
|
-
cancel("Operation cancelled.");
|
|
59703
|
-
process.exit(0);
|
|
59704
|
-
}
|
|
59705
60022
|
return input;
|
|
59706
60023
|
};
|
|
59707
60024
|
var renderSubmit = (config14, value) => {
|
|
@@ -59710,6 +60027,7 @@ var renderSubmit = (config14, value) => {
|
|
|
59710
60027
|
return [`${leftT} ${question}`, content, `${grayBar}`];
|
|
59711
60028
|
};
|
|
59712
60029
|
var handleCancel = () => {
|
|
60030
|
+
process.stdout.write(ansi_escapes_default.cursorShow);
|
|
59713
60031
|
cancel("Operation cancelled.");
|
|
59714
60032
|
process.exit(0);
|
|
59715
60033
|
};
|
|
@@ -59783,7 +60101,7 @@ var getSelectRenderers = (config14) => {
|
|
|
59783
60101
|
error: defaultRenderer,
|
|
59784
60102
|
submit: ({ value }) => renderSubmit(
|
|
59785
60103
|
config14,
|
|
59786
|
-
options.find((
|
|
60104
|
+
options.find((o) => o.value === value)?.label
|
|
59787
60105
|
),
|
|
59788
60106
|
cancel: handleCancel
|
|
59789
60107
|
};
|
|
@@ -59871,14 +60189,21 @@ var detectPackageManager = () => {
|
|
|
59871
60189
|
case "pnpm":
|
|
59872
60190
|
name2 = "pnpm";
|
|
59873
60191
|
version3 = devDependencies["pnpm"].replace("^", "");
|
|
60192
|
+
process.env.npm_config_user_agent = "pnpm";
|
|
59874
60193
|
break;
|
|
59875
60194
|
case "yarn":
|
|
59876
60195
|
name2 = "yarn";
|
|
59877
60196
|
version3 = devDependencies["yarn"].replace("^", "");
|
|
60197
|
+
process.env.npm_config_user_agent = "yarn";
|
|
60198
|
+
break;
|
|
60199
|
+
case "bun":
|
|
60200
|
+
name2 = "bun";
|
|
60201
|
+
version3 = "1.0.0";
|
|
59878
60202
|
break;
|
|
59879
60203
|
case "npm":
|
|
59880
60204
|
name2 = "npm";
|
|
59881
60205
|
version3 = "0.0.0";
|
|
60206
|
+
process.env.npm_config_user_agent = "npm";
|
|
59882
60207
|
break;
|
|
59883
60208
|
}
|
|
59884
60209
|
}
|
|
@@ -59917,6 +60242,14 @@ var detectPackageManager = () => {
|
|
|
59917
60242
|
npx: "yarn",
|
|
59918
60243
|
dlx: "yarn"
|
|
59919
60244
|
};
|
|
60245
|
+
case "bun":
|
|
60246
|
+
return {
|
|
60247
|
+
name: name2,
|
|
60248
|
+
version: version3,
|
|
60249
|
+
npm: "bun",
|
|
60250
|
+
npx: "bunx",
|
|
60251
|
+
dlx: "bunx"
|
|
60252
|
+
};
|
|
59920
60253
|
case "npm":
|
|
59921
60254
|
default:
|
|
59922
60255
|
return {
|
|
@@ -59929,14 +60262,42 @@ var detectPackageManager = () => {
|
|
|
59929
60262
|
}
|
|
59930
60263
|
};
|
|
59931
60264
|
|
|
60265
|
+
// src/helpers/shell-quote.ts
|
|
60266
|
+
var import_shell_quote = __toESM(require_shell_quote());
|
|
60267
|
+
var quote = import_shell_quote.default.quote;
|
|
60268
|
+
function parse(cmd, env3) {
|
|
60269
|
+
if (process.platform === "win32") {
|
|
60270
|
+
cmd = cmd.replaceAll("\\", "\\\\");
|
|
60271
|
+
}
|
|
60272
|
+
const entries = import_shell_quote.default.parse(cmd, env3);
|
|
60273
|
+
const argv = [];
|
|
60274
|
+
for (const entry of entries) {
|
|
60275
|
+
if (typeof entry === "string") {
|
|
60276
|
+
argv.push(entry);
|
|
60277
|
+
continue;
|
|
60278
|
+
}
|
|
60279
|
+
if ("comment" in entry) {
|
|
60280
|
+
continue;
|
|
60281
|
+
}
|
|
60282
|
+
if (entry.op === "glob") {
|
|
60283
|
+
argv.push(entry.pattern);
|
|
60284
|
+
continue;
|
|
60285
|
+
}
|
|
60286
|
+
throw new Error(
|
|
60287
|
+
`Only simple commands are supported, please don't use the "${entry.op}" operator in "${cmd}".`
|
|
60288
|
+
);
|
|
60289
|
+
}
|
|
60290
|
+
return argv;
|
|
60291
|
+
}
|
|
60292
|
+
|
|
59932
60293
|
// src/helpers/command.ts
|
|
59933
60294
|
var runCommand = async (command2, opts = {}) => {
|
|
59934
60295
|
if (typeof command2 === "string") {
|
|
59935
|
-
command2 = command2
|
|
60296
|
+
command2 = parse(command2);
|
|
59936
60297
|
}
|
|
59937
60298
|
return printAsyncStatus({
|
|
59938
60299
|
useSpinner: opts.useSpinner ?? opts.silent,
|
|
59939
|
-
startText: opts.startText || command2
|
|
60300
|
+
startText: opts.startText || quote(command2),
|
|
59940
60301
|
doneText: opts.doneText,
|
|
59941
60302
|
promise() {
|
|
59942
60303
|
const [executable, ...args] = command2;
|
|
@@ -60034,7 +60395,7 @@ var retry = async (times, fn) => {
|
|
|
60034
60395
|
};
|
|
60035
60396
|
var runFrameworkGenerator = async (ctx, cmd) => {
|
|
60036
60397
|
if (ctx.framework?.args?.length) {
|
|
60037
|
-
cmd = `${cmd} ${ctx.framework.args
|
|
60398
|
+
cmd = `${cmd} ${quote(ctx.framework.args)}`;
|
|
60038
60399
|
}
|
|
60039
60400
|
endSection(
|
|
60040
60401
|
`Continue with ${ctx.framework?.config.displayName}`,
|
|
@@ -60042,19 +60403,23 @@ var runFrameworkGenerator = async (ctx, cmd) => {
|
|
|
60042
60403
|
);
|
|
60043
60404
|
if (process.env.VITEST) {
|
|
60044
60405
|
const flags = ctx.framework?.config.testFlags ?? [];
|
|
60045
|
-
cmd = `${cmd} ${flags
|
|
60406
|
+
cmd = `${cmd} ${quote(flags)}`;
|
|
60046
60407
|
}
|
|
60047
60408
|
await runCommand(cmd);
|
|
60048
60409
|
};
|
|
60049
60410
|
var installPackages = async (packages, config14) => {
|
|
60050
|
-
const { npm:
|
|
60411
|
+
const { npm: npm14 } = detectPackageManager();
|
|
60051
60412
|
let saveFlag;
|
|
60052
60413
|
let cmd;
|
|
60053
|
-
switch (
|
|
60414
|
+
switch (npm14) {
|
|
60054
60415
|
case "yarn":
|
|
60055
60416
|
cmd = "add";
|
|
60056
60417
|
saveFlag = config14.dev ? "-D" : "";
|
|
60057
60418
|
break;
|
|
60419
|
+
case "bun":
|
|
60420
|
+
cmd = "add";
|
|
60421
|
+
saveFlag = config14.dev ? "-d" : "";
|
|
60422
|
+
break;
|
|
60058
60423
|
case "npm":
|
|
60059
60424
|
case "pnpm":
|
|
60060
60425
|
default:
|
|
@@ -60062,36 +60427,36 @@ var installPackages = async (packages, config14) => {
|
|
|
60062
60427
|
saveFlag = config14.dev ? "--save-dev" : "--save";
|
|
60063
60428
|
break;
|
|
60064
60429
|
}
|
|
60065
|
-
await runCommand(`${
|
|
60430
|
+
await runCommand(`${npm14} ${cmd} ${saveFlag} ${quote(packages)}`, {
|
|
60066
60431
|
...config14,
|
|
60067
60432
|
silent: true
|
|
60068
60433
|
});
|
|
60069
60434
|
};
|
|
60070
60435
|
var npmInstall = async () => {
|
|
60071
|
-
const { npm:
|
|
60072
|
-
await runCommand(`${
|
|
60436
|
+
const { npm: npm14 } = detectPackageManager();
|
|
60437
|
+
await runCommand(`${npm14} install`, {
|
|
60073
60438
|
silent: true,
|
|
60074
60439
|
startText: "Installing dependencies",
|
|
60075
|
-
doneText: `${brandColor("installed")} ${dim(`via \`${
|
|
60440
|
+
doneText: `${brandColor("installed")} ${dim(`via \`${npm14} install\``)}`
|
|
60076
60441
|
});
|
|
60077
60442
|
};
|
|
60078
60443
|
var resetPackageManager = async (ctx) => {
|
|
60079
|
-
const { npm:
|
|
60080
|
-
if (
|
|
60444
|
+
const { npm: npm14 } = detectPackageManager();
|
|
60445
|
+
if (npm14 === "npm")
|
|
60081
60446
|
return;
|
|
60082
60447
|
const nodeModulesPath = import_path5.default.join(ctx.project.path, "node_modules");
|
|
60083
60448
|
(0, import_fs5.rmSync)(nodeModulesPath, { recursive: true });
|
|
60084
60449
|
const lockfilePath = import_path5.default.join(ctx.project.path, "package-lock.json");
|
|
60085
60450
|
(0, import_fs5.rmSync)(lockfilePath);
|
|
60086
|
-
await runCommand(`${
|
|
60451
|
+
await runCommand(`${npm14} install`, {
|
|
60087
60452
|
silent: true,
|
|
60088
60453
|
cwd: ctx.project.path,
|
|
60089
60454
|
startText: "Installing dependencies",
|
|
60090
|
-
doneText: `${brandColor("installed")} ${dim(`via \`${
|
|
60455
|
+
doneText: `${brandColor("installed")} ${dim(`via \`${npm14} install\``)}`
|
|
60091
60456
|
});
|
|
60092
60457
|
};
|
|
60093
60458
|
var installWrangler = async () => {
|
|
60094
|
-
const { npm:
|
|
60459
|
+
const { npm: npm14 } = detectPackageManager();
|
|
60095
60460
|
if ((0, import_fs5.existsSync)(import_path5.default.resolve("node_modules", "wrangler"))) {
|
|
60096
60461
|
return;
|
|
60097
60462
|
}
|
|
@@ -60101,7 +60466,7 @@ var installWrangler = async () => {
|
|
|
60101
60466
|
"A command line tool for building Cloudflare Workers"
|
|
60102
60467
|
)}`,
|
|
60103
60468
|
doneText: `${brandColor("installed")} ${dim(
|
|
60104
|
-
`via \`${
|
|
60469
|
+
`via \`${npm14} install wrangler --save-dev\``
|
|
60105
60470
|
)}`
|
|
60106
60471
|
});
|
|
60107
60472
|
};
|
|
@@ -60148,8 +60513,8 @@ var listAccounts = async () => {
|
|
|
60148
60513
|
return accounts;
|
|
60149
60514
|
};
|
|
60150
60515
|
async function getWorkerdCompatibilityDate() {
|
|
60151
|
-
const { npm:
|
|
60152
|
-
return runCommand(`${
|
|
60516
|
+
const { npm: npm14 } = detectPackageManager();
|
|
60517
|
+
return runCommand(`${npm14} info workerd dist-tags.latest`, {
|
|
60153
60518
|
silent: true,
|
|
60154
60519
|
captureOutput: true,
|
|
60155
60520
|
startText: "Retrieving current workerd compatibility date",
|
|
@@ -60359,12 +60724,11 @@ var config2 = {
|
|
|
60359
60724
|
configure: configure2,
|
|
60360
60725
|
displayName: "Astro",
|
|
60361
60726
|
packageScripts: {
|
|
60362
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --
|
|
60727
|
+
"pages:dev": `wrangler pages dev ${compatDateFlag()} -- astro dev`,
|
|
60363
60728
|
"pages:deploy": `astro build && wrangler pages deploy ./dist`
|
|
60364
60729
|
},
|
|
60365
60730
|
testFlags: [
|
|
60366
60731
|
"--skip-houston",
|
|
60367
|
-
"--yes",
|
|
60368
60732
|
"--no-install",
|
|
60369
60733
|
"--no-git",
|
|
60370
60734
|
"--template",
|
|
@@ -60600,10 +60964,14 @@ var config6 = {
|
|
|
60600
60964
|
var next_default = config6;
|
|
60601
60965
|
|
|
60602
60966
|
// src/frameworks/nuxt/index.ts
|
|
60603
|
-
var { dlx: dlx7 } = detectPackageManager();
|
|
60967
|
+
var { npm: npm5, dlx: dlx7 } = detectPackageManager();
|
|
60604
60968
|
var generate7 = async (ctx) => {
|
|
60605
60969
|
const cli = getFrameworkCli(ctx);
|
|
60606
|
-
|
|
60970
|
+
const gitFlag = ctx.args.git ? `--gitInit` : `--no-gitInit`;
|
|
60971
|
+
await runFrameworkGenerator(
|
|
60972
|
+
ctx,
|
|
60973
|
+
`${dlx7} ${cli} init ${ctx.project.name} --packageManager ${npm5} ${gitFlag}`
|
|
60974
|
+
);
|
|
60607
60975
|
logRaw("");
|
|
60608
60976
|
};
|
|
60609
60977
|
var configure4 = async (ctx) => {
|
|
@@ -60617,8 +60985,8 @@ var config7 = {
|
|
|
60617
60985
|
displayName: "Nuxt",
|
|
60618
60986
|
packageScripts: {
|
|
60619
60987
|
build: (cmd) => `NITRO_PRESET=cloudflare-pages ${cmd}`,
|
|
60620
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 --
|
|
60621
|
-
"pages:deploy":
|
|
60988
|
+
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- ${npm5} run dev`,
|
|
60989
|
+
"pages:deploy": `${npm5} run build && wrangler pages deploy ./dist`
|
|
60622
60990
|
}
|
|
60623
60991
|
};
|
|
60624
60992
|
var nuxt_default = config7;
|
|
@@ -60633,15 +61001,15 @@ var package_default = {
|
|
|
60633
61001
|
],
|
|
60634
61002
|
dependencies: {
|
|
60635
61003
|
"@angular/cli": "16.2.2",
|
|
60636
|
-
"create-astro": "4.1
|
|
60637
|
-
"create-docusaurus": "2.4.
|
|
61004
|
+
"create-astro": "4.2.1",
|
|
61005
|
+
"create-docusaurus": "2.4.3",
|
|
60638
61006
|
"create-hono": "0.2.6",
|
|
60639
61007
|
"create-next-app": "13.4.19",
|
|
60640
61008
|
"create-qwik": "1.2.12",
|
|
60641
61009
|
"create-react-app": "5.0.1",
|
|
60642
|
-
"create-remix": "2.0.
|
|
60643
|
-
"create-solid": "0.
|
|
60644
|
-
"create-svelte": "5.0
|
|
61010
|
+
"create-remix": "2.0.1",
|
|
61011
|
+
"create-solid": "0.3.6",
|
|
61012
|
+
"create-svelte": "5.1.0",
|
|
60645
61013
|
"create-vue": "3.7.5",
|
|
60646
61014
|
gatsby: "5.12.4",
|
|
60647
61015
|
nuxi: "3.9.0"
|
|
@@ -60664,7 +61032,7 @@ var package_default = {
|
|
|
60664
61032
|
};
|
|
60665
61033
|
|
|
60666
61034
|
// src/frameworks/qwik/index.ts
|
|
60667
|
-
var { npm:
|
|
61035
|
+
var { npm: npm6, npx: npx4, dlx: dlx8 } = detectPackageManager();
|
|
60668
61036
|
var generate8 = async (ctx) => {
|
|
60669
61037
|
const cli = getFrameworkCli(ctx);
|
|
60670
61038
|
await runFrameworkGenerator(ctx, `${dlx8} ${cli} basic ${ctx.project.name}`);
|
|
@@ -60681,14 +61049,14 @@ var config8 = {
|
|
|
60681
61049
|
configure: configure5,
|
|
60682
61050
|
displayName: "Qwik",
|
|
60683
61051
|
packageScripts: {
|
|
60684
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} -- ${
|
|
60685
|
-
"pages:deploy": `${
|
|
61052
|
+
"pages:dev": `wrangler pages dev ${compatDateFlag()} -- ${npm6} run dev`,
|
|
61053
|
+
"pages:deploy": `${npm6} run build && wrangler pages deploy ./dist`
|
|
60686
61054
|
}
|
|
60687
61055
|
};
|
|
60688
61056
|
var qwik_default = config8;
|
|
60689
61057
|
|
|
60690
61058
|
// src/frameworks/react/index.ts
|
|
60691
|
-
var { npm:
|
|
61059
|
+
var { npm: npm7, dlx: dlx9 } = detectPackageManager();
|
|
60692
61060
|
var generate9 = async (ctx) => {
|
|
60693
61061
|
const cli = getFrameworkCli(ctx);
|
|
60694
61062
|
await runFrameworkGenerator(ctx, `${dlx9} ${cli} ${ctx.project.name}`);
|
|
@@ -60702,14 +61070,14 @@ var config9 = {
|
|
|
60702
61070
|
configure: configure6,
|
|
60703
61071
|
displayName: "React",
|
|
60704
61072
|
packageScripts: {
|
|
60705
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --port 3000 -- ${
|
|
60706
|
-
"pages:deploy": `${
|
|
61073
|
+
"pages:dev": `wrangler pages dev ${compatDateFlag()} --port 3000 -- ${npm7} start`,
|
|
61074
|
+
"pages:deploy": `${npm7} run build && wrangler pages deploy ./build`
|
|
60707
61075
|
}
|
|
60708
61076
|
};
|
|
60709
61077
|
var react_default = config9;
|
|
60710
61078
|
|
|
60711
61079
|
// src/frameworks/remix/index.ts
|
|
60712
|
-
var { npm:
|
|
61080
|
+
var { npm: npm8, dlx: dlx10 } = detectPackageManager();
|
|
60713
61081
|
var generate10 = async (ctx) => {
|
|
60714
61082
|
const cli = getFrameworkCli(ctx);
|
|
60715
61083
|
await runFrameworkGenerator(
|
|
@@ -60722,16 +61090,13 @@ var config10 = {
|
|
|
60722
61090
|
generate: generate10,
|
|
60723
61091
|
displayName: "Remix",
|
|
60724
61092
|
packageScripts: {
|
|
60725
|
-
"pages:deploy": `${
|
|
61093
|
+
"pages:deploy": `${npm8} run build && wrangler pages deploy ./public`
|
|
60726
61094
|
},
|
|
60727
61095
|
devCommand: "dev",
|
|
60728
|
-
testFlags: ["--typescript", "--no-install"]
|
|
61096
|
+
testFlags: ["--typescript", "--no-install", "--no-git-init"]
|
|
60729
61097
|
};
|
|
60730
61098
|
var remix_default = config10;
|
|
60731
61099
|
|
|
60732
|
-
// src/frameworks/solid/index.ts
|
|
60733
|
-
var import_fs8 = require("fs");
|
|
60734
|
-
|
|
60735
61100
|
// src/frameworks/solid/templates.ts
|
|
60736
61101
|
var viteConfig = `
|
|
60737
61102
|
import solid from "solid-start/vite";
|
|
@@ -60744,15 +61109,14 @@ export default defineConfig({
|
|
|
60744
61109
|
`;
|
|
60745
61110
|
|
|
60746
61111
|
// src/frameworks/solid/index.ts
|
|
60747
|
-
var { npm:
|
|
61112
|
+
var { npm: npm9, dlx: dlx11 } = detectPackageManager();
|
|
60748
61113
|
var generate11 = async (ctx) => {
|
|
60749
|
-
(0, import_fs8.mkdirSync)(ctx.project.path);
|
|
60750
|
-
process.chdir(ctx.project.path);
|
|
60751
61114
|
const cli = getFrameworkCli(ctx);
|
|
60752
|
-
await runFrameworkGenerator(ctx, `${dlx11} ${cli}`);
|
|
61115
|
+
await runFrameworkGenerator(ctx, `${dlx11} ${cli} ${ctx.project.name}`);
|
|
60753
61116
|
logRaw("");
|
|
60754
61117
|
};
|
|
60755
|
-
var configure7 = async () => {
|
|
61118
|
+
var configure7 = async (ctx) => {
|
|
61119
|
+
process.chdir(ctx.project.path);
|
|
60756
61120
|
const pkg = "solid-start-cloudflare-pages";
|
|
60757
61121
|
await installPackages([pkg], {
|
|
60758
61122
|
dev: true,
|
|
@@ -60762,7 +61126,7 @@ var configure7 = async () => {
|
|
|
60762
61126
|
const viteConfigPath = usesTypescript() ? `./vite.config.ts` : `./vite.config.js`;
|
|
60763
61127
|
writeFile2(viteConfigPath, viteConfig);
|
|
60764
61128
|
updateStatus(
|
|
60765
|
-
`Adding the Cloudflare Pages adapter to ${blue(
|
|
61129
|
+
`Adding the Cloudflare Pages adapter to ${blue(viteConfigPath)}`
|
|
60766
61130
|
);
|
|
60767
61131
|
};
|
|
60768
61132
|
var config11 = {
|
|
@@ -60770,8 +61134,8 @@ var config11 = {
|
|
|
60770
61134
|
configure: configure7,
|
|
60771
61135
|
displayName: "Solid",
|
|
60772
61136
|
packageScripts: {
|
|
60773
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- ${
|
|
60774
|
-
"pages:deploy": `${
|
|
61137
|
+
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- ${npm9} run dev`,
|
|
61138
|
+
"pages:deploy": `${npm9} run build && wrangler pages deploy ./dist/public`
|
|
60775
61139
|
}
|
|
60776
61140
|
};
|
|
60777
61141
|
var solid_default = config11;
|
|
@@ -60823,7 +61187,7 @@ interface Platform {
|
|
|
60823
61187
|
`;
|
|
60824
61188
|
|
|
60825
61189
|
// src/frameworks/svelte/index.ts
|
|
60826
|
-
var { npm:
|
|
61190
|
+
var { npm: npm10, dlx: dlx12 } = detectPackageManager();
|
|
60827
61191
|
var generate12 = async (ctx) => {
|
|
60828
61192
|
const cli = getFrameworkCli(ctx);
|
|
60829
61193
|
await runFrameworkGenerator(ctx, `${dlx12} ${cli} ${ctx.project.name}`);
|
|
@@ -60867,14 +61231,14 @@ var config12 = {
|
|
|
60867
61231
|
configure: configure8,
|
|
60868
61232
|
displayName: "Svelte",
|
|
60869
61233
|
packageScripts: {
|
|
60870
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 5173 -- ${
|
|
60871
|
-
"pages:deploy": `${
|
|
61234
|
+
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 5173 -- ${npm10} run dev`,
|
|
61235
|
+
"pages:deploy": `${npm10} run build && wrangler pages deploy .svelte-kit/cloudflare`
|
|
60872
61236
|
}
|
|
60873
61237
|
};
|
|
60874
61238
|
var svelte_default = config12;
|
|
60875
61239
|
|
|
60876
61240
|
// src/frameworks/vue/index.ts
|
|
60877
|
-
var { npm:
|
|
61241
|
+
var { npm: npm11, dlx: dlx13 } = detectPackageManager();
|
|
60878
61242
|
var generate13 = async (ctx) => {
|
|
60879
61243
|
const cli = getFrameworkCli(ctx);
|
|
60880
61244
|
await runFrameworkGenerator(ctx, `${dlx13} ${cli} ${ctx.project.name}`);
|
|
@@ -60883,8 +61247,8 @@ var config13 = {
|
|
|
60883
61247
|
generate: generate13,
|
|
60884
61248
|
displayName: "Vue",
|
|
60885
61249
|
packageScripts: {
|
|
60886
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 5173 -- ${
|
|
60887
|
-
"pages:deploy": `${
|
|
61250
|
+
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 5173 -- ${npm11} run dev`,
|
|
61251
|
+
"pages:deploy": `${npm11} run build && wrangler pages deploy ./dist`
|
|
60888
61252
|
},
|
|
60889
61253
|
testFlags: ["--ts"]
|
|
60890
61254
|
};
|
|
@@ -60927,7 +61291,7 @@ var debug = (msg) => {
|
|
|
60927
61291
|
};
|
|
60928
61292
|
|
|
60929
61293
|
// src/common.ts
|
|
60930
|
-
var
|
|
61294
|
+
var import_fs8 = require("fs");
|
|
60931
61295
|
var import_path7 = require("path");
|
|
60932
61296
|
var import_process2 = require("process");
|
|
60933
61297
|
|
|
@@ -61023,14 +61387,14 @@ function secondsSince(start) {
|
|
|
61023
61387
|
}
|
|
61024
61388
|
|
|
61025
61389
|
// ../wrangler/package.json
|
|
61026
|
-
var version2 = "3.
|
|
61390
|
+
var version2 = "3.11.0";
|
|
61027
61391
|
|
|
61028
61392
|
// src/common.ts
|
|
61029
|
-
var { name, npm:
|
|
61393
|
+
var { name, npm: npm12 } = detectPackageManager();
|
|
61030
61394
|
var validateProjectDirectory = (relativePath) => {
|
|
61031
61395
|
const path3 = (0, import_path7.resolve)(relativePath);
|
|
61032
|
-
const existsAlready = (0,
|
|
61033
|
-
const isEmpty = existsAlready && (0,
|
|
61396
|
+
const existsAlready = (0, import_fs8.existsSync)(path3);
|
|
61397
|
+
const isEmpty = existsAlready && (0, import_fs8.readdirSync)(path3).length === 0;
|
|
61034
61398
|
if (existsAlready && !isEmpty) {
|
|
61035
61399
|
return `Directory \`${relativePath}\` already exists and is not empty. Please choose a new name.`;
|
|
61036
61400
|
}
|
|
@@ -61043,13 +61407,13 @@ var setupProjectDirectory = (args) => {
|
|
|
61043
61407
|
}
|
|
61044
61408
|
const directory = (0, import_path7.dirname)(path3);
|
|
61045
61409
|
const pathBasename = (0, import_path7.basename)(path3);
|
|
61046
|
-
(0,
|
|
61410
|
+
(0, import_fs8.mkdirSync)(directory, { recursive: true });
|
|
61047
61411
|
(0, import_process2.chdir)(directory);
|
|
61048
61412
|
return { name: pathBasename, path: path3 };
|
|
61049
61413
|
};
|
|
61050
61414
|
var offerToDeploy = async (ctx) => {
|
|
61051
61415
|
startSection(`Deploy with Cloudflare`, `Step 3 of 3`);
|
|
61052
|
-
const label = `deploy via \`${
|
|
61416
|
+
const label = `deploy via \`${npm12} run ${ctx.framework?.config.deployCommand ?? "deploy"}\``;
|
|
61053
61417
|
ctx.args.deploy = await processArgument(ctx.args, "deploy", {
|
|
61054
61418
|
type: "confirm",
|
|
61055
61419
|
question: "Do you want to deploy your application?",
|
|
@@ -61071,7 +61435,7 @@ var runDeploy = async (ctx) => {
|
|
|
61071
61435
|
return;
|
|
61072
61436
|
}
|
|
61073
61437
|
const baseDeployCmd = [
|
|
61074
|
-
|
|
61438
|
+
npm12,
|
|
61075
61439
|
"run",
|
|
61076
61440
|
ctx.framework?.config.deployCommand ?? "deploy"
|
|
61077
61441
|
];
|
|
@@ -61093,7 +61457,7 @@ var runDeploy = async (ctx) => {
|
|
|
61093
61457
|
env: { CLOUDFLARE_ACCOUNT_ID: ctx.account.id, NODE_ENV: "production" },
|
|
61094
61458
|
startText: "Deploying your application",
|
|
61095
61459
|
doneText: `${brandColor("deployed")} ${dim(
|
|
61096
|
-
`via \`${baseDeployCmd
|
|
61460
|
+
`via \`${quote(baseDeployCmd)}\``
|
|
61097
61461
|
)}`
|
|
61098
61462
|
});
|
|
61099
61463
|
const deployedUrlRegex = /https:\/\/.+\.(pages|workers)\.dev/;
|
|
@@ -61146,11 +61510,11 @@ var printSummary = async (ctx) => {
|
|
|
61146
61510
|
[`Navigate to the new directory`, `cd ${ctx.project.name}`],
|
|
61147
61511
|
[
|
|
61148
61512
|
`Run the development server`,
|
|
61149
|
-
`${
|
|
61513
|
+
`${npm12} run ${ctx.framework?.config.devCommand ?? "start"}`
|
|
61150
61514
|
],
|
|
61151
61515
|
[
|
|
61152
61516
|
`Deploy your application`,
|
|
61153
|
-
`${
|
|
61517
|
+
`${npm12} run ${ctx.framework?.config.deployCommand ?? "deploy"}`
|
|
61154
61518
|
],
|
|
61155
61519
|
[
|
|
61156
61520
|
`Read the documentation`,
|
|
@@ -61172,7 +61536,7 @@ var printSummary = async (ctx) => {
|
|
|
61172
61536
|
`${bgGreen(" APPLICATION CREATED ")}`,
|
|
61173
61537
|
`${dim(`Deploy your application with`)}`,
|
|
61174
61538
|
`${blue(
|
|
61175
|
-
`${
|
|
61539
|
+
`${npm12} run ${ctx.framework?.config.deployCommand ?? "deploy"}`
|
|
61176
61540
|
)}`
|
|
61177
61541
|
].join(" ");
|
|
61178
61542
|
logRaw(msg);
|
|
@@ -61402,7 +61766,7 @@ var updatePackageScripts = async (ctx) => {
|
|
|
61402
61766
|
if (packageScripts) {
|
|
61403
61767
|
const s = spinner();
|
|
61404
61768
|
const updatingScripts = Object.entries(packageScripts).filter(
|
|
61405
|
-
([
|
|
61769
|
+
([_2, cmdOrUpdater]) => typeof cmdOrUpdater === "function"
|
|
61406
61770
|
).length > 0;
|
|
61407
61771
|
s.start(
|
|
61408
61772
|
`${updatingScripts ? "Updating" : "Adding"} command scripts`,
|
|
@@ -61490,6 +61854,12 @@ var runWorkersGenerator = async (args) => {
|
|
|
61490
61854
|
project: { name: name2, path: path3 },
|
|
61491
61855
|
args
|
|
61492
61856
|
};
|
|
61857
|
+
ctx.args.ts = await processArgument(ctx.args, "ts", {
|
|
61858
|
+
type: "confirm",
|
|
61859
|
+
question: "Do you want to use TypeScript?",
|
|
61860
|
+
label: "typescript",
|
|
61861
|
+
defaultValue: C3_DEFAULTS.ts
|
|
61862
|
+
});
|
|
61493
61863
|
await copyFiles(ctx);
|
|
61494
61864
|
await copyExistingWorkerFiles(ctx);
|
|
61495
61865
|
await updateFiles(ctx);
|
|
@@ -61505,12 +61875,6 @@ var runWorkersGenerator = async (args) => {
|
|
|
61505
61875
|
await printSummary(ctx);
|
|
61506
61876
|
};
|
|
61507
61877
|
async function getTemplate(ctx) {
|
|
61508
|
-
ctx.args.ts = await processArgument(ctx.args, "ts", {
|
|
61509
|
-
type: "confirm",
|
|
61510
|
-
question: "Do you want to use TypeScript?",
|
|
61511
|
-
label: "typescript",
|
|
61512
|
-
defaultValue: C3_DEFAULTS.ts
|
|
61513
|
-
});
|
|
61514
61878
|
const preexisting = ctx.args.type === "pre-existing";
|
|
61515
61879
|
const template = preexisting ? "hello-world" : ctx.args.type;
|
|
61516
61880
|
const path3 = (0, import_path9.resolve)(
|
|
@@ -61528,6 +61892,7 @@ async function copyFiles(ctx) {
|
|
|
61528
61892
|
const destdir = ctx.project.path;
|
|
61529
61893
|
updateStatus(`Copying files from "${template}" template`);
|
|
61530
61894
|
await (0, import_promises2.cp)(srcdir, destdir, { recursive: true });
|
|
61895
|
+
await (0, import_promises2.rename)((0, import_path9.join)(destdir, "__dot__gitignore"), (0, import_path9.join)(destdir, ".gitignore"));
|
|
61531
61896
|
}
|
|
61532
61897
|
async function copyExistingWorkerFiles(ctx) {
|
|
61533
61898
|
const { preexisting } = await getTemplate(ctx);
|
|
@@ -61690,7 +62055,7 @@ var processArgument = async (args, name2, promptConfig) => {
|
|
|
61690
62055
|
|
|
61691
62056
|
// src/cli.ts
|
|
61692
62057
|
var import_semver2 = __toESM(require_semver2());
|
|
61693
|
-
var { npm:
|
|
62058
|
+
var { npm: npm13 } = detectPackageManager();
|
|
61694
62059
|
var main = async (argv) => {
|
|
61695
62060
|
const args = await parseArgs(argv);
|
|
61696
62061
|
logRaw("");
|
|
@@ -61717,7 +62082,7 @@ var isUpdateAvailable = async () => {
|
|
|
61717
62082
|
};
|
|
61718
62083
|
var runLatest = async () => {
|
|
61719
62084
|
const args = process.argv.slice(2);
|
|
61720
|
-
await runCommand(`${
|
|
62085
|
+
await runCommand(`${npm13} create cloudflare@latest ${args.join(" ")}`);
|
|
61721
62086
|
};
|
|
61722
62087
|
var runCli = async (args) => {
|
|
61723
62088
|
printBanner();
|
|
@@ -61737,7 +62102,7 @@ var runCli = async (args) => {
|
|
|
61737
62102
|
args.type = "pre-existing";
|
|
61738
62103
|
}
|
|
61739
62104
|
}
|
|
61740
|
-
const templateOptions = Object.entries(templateMap).filter(([
|
|
62105
|
+
const templateOptions = Object.entries(templateMap).filter(([_2, { hidden: hidden2 }]) => !hidden2).map(([value, { label }]) => ({ value, label }));
|
|
61741
62106
|
const type = await processArgument(args, "type", {
|
|
61742
62107
|
type: "select",
|
|
61743
62108
|
question: "What type of application do you want to create?",
|