create-cloudflare 0.0.0-b54512bc → 0.0.0-b5e62b93
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 +1080 -898
- package/package.json +4 -2
- package/templates/chatgptPlugin/ts/__dot__gitignore +171 -0
- package/templates/common/js/__dot__gitignore +172 -0
- package/templates/common/js/wrangler.toml +1 -1
- package/templates/common/ts/__dot__gitignore +172 -0
- package/templates/common/ts/wrangler.toml +1 -1
- package/templates/hello-world/js/__dot__gitignore +172 -0
- package/templates/hello-world/js/wrangler.toml +1 -1
- package/templates/hello-world/ts/__dot__gitignore +172 -0
- package/templates/hello-world/ts/wrangler.toml +1 -1
- package/templates/openapi/ts/__dot__gitignore +171 -0
- package/templates/queues/js/__dot__gitignore +172 -0
- package/templates/queues/ts/__dot__gitignore +172 -0
- package/templates/scheduled/js/__dot__gitignore +172 -0
- package/templates/scheduled/ts/__dot__gitignore +172 -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) {
|
|
@@ -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
|
}
|
|
@@ -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
|
});
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -4450,35 +4450,35 @@ __export(tslib_es6_exports, {
|
|
|
4450
4450
|
__values: () => __values,
|
|
4451
4451
|
default: () => tslib_es6_default
|
|
4452
4452
|
});
|
|
4453
|
-
function __extends(
|
|
4453
|
+
function __extends(d2, b2) {
|
|
4454
4454
|
if (typeof b2 !== "function" && b2 !== null)
|
|
4455
4455
|
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
4456
|
-
extendStatics(
|
|
4456
|
+
extendStatics(d2, b2);
|
|
4457
4457
|
function __() {
|
|
4458
|
-
this.constructor =
|
|
4458
|
+
this.constructor = d2;
|
|
4459
4459
|
}
|
|
4460
|
-
|
|
4460
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
4461
4461
|
}
|
|
4462
4462
|
function __rest(s, e) {
|
|
4463
4463
|
var t = {};
|
|
4464
|
-
for (var
|
|
4465
|
-
if (Object.prototype.hasOwnProperty.call(s,
|
|
4466
|
-
t[
|
|
4464
|
+
for (var p2 in s)
|
|
4465
|
+
if (Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0)
|
|
4466
|
+
t[p2] = s[p2];
|
|
4467
4467
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
4468
|
-
for (var i = 0,
|
|
4469
|
-
if (e.indexOf(
|
|
4470
|
-
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]];
|
|
4471
4471
|
}
|
|
4472
4472
|
return t;
|
|
4473
4473
|
}
|
|
4474
4474
|
function __decorate(decorators, target, key, desc) {
|
|
4475
|
-
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;
|
|
4476
4476
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4477
4477
|
r2 = Reflect.decorate(decorators, target, key, desc);
|
|
4478
4478
|
else
|
|
4479
4479
|
for (var i = decorators.length - 1; i >= 0; i--)
|
|
4480
|
-
if (
|
|
4481
|
-
r2 = (c2 < 3 ?
|
|
4480
|
+
if (d2 = decorators[i])
|
|
4481
|
+
r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
|
|
4482
4482
|
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
4483
4483
|
}
|
|
4484
4484
|
function __param(paramIndex, decorator) {
|
|
@@ -4487,25 +4487,25 @@ function __param(paramIndex, decorator) {
|
|
|
4487
4487
|
};
|
|
4488
4488
|
}
|
|
4489
4489
|
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4490
|
-
function accept(
|
|
4491
|
-
if (
|
|
4490
|
+
function accept(f) {
|
|
4491
|
+
if (f !== void 0 && typeof f !== "function")
|
|
4492
4492
|
throw new TypeError("Function expected");
|
|
4493
|
-
return
|
|
4493
|
+
return f;
|
|
4494
4494
|
}
|
|
4495
4495
|
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4496
4496
|
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
4497
4497
|
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
4498
|
-
var
|
|
4498
|
+
var _2, done = false;
|
|
4499
4499
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
4500
4500
|
var context = {};
|
|
4501
|
-
for (var
|
|
4502
|
-
context[
|
|
4503
|
-
for (var
|
|
4504
|
-
context.access[
|
|
4505
|
-
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) {
|
|
4506
4506
|
if (done)
|
|
4507
4507
|
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
4508
|
-
extraInitializers.push(accept(
|
|
4508
|
+
extraInitializers.push(accept(f || null));
|
|
4509
4509
|
};
|
|
4510
4510
|
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
4511
4511
|
if (kind === "accessor") {
|
|
@@ -4513,17 +4513,17 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
|
|
4513
4513
|
continue;
|
|
4514
4514
|
if (result === null || typeof result !== "object")
|
|
4515
4515
|
throw new TypeError("Object expected");
|
|
4516
|
-
if (
|
|
4517
|
-
descriptor.get =
|
|
4518
|
-
if (
|
|
4519
|
-
descriptor.set =
|
|
4520
|
-
if (
|
|
4521
|
-
initializers.unshift(
|
|
4522
|
-
} 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)) {
|
|
4523
4523
|
if (kind === "field")
|
|
4524
|
-
initializers.unshift(
|
|
4524
|
+
initializers.unshift(_2);
|
|
4525
4525
|
else
|
|
4526
|
-
descriptor[key] =
|
|
4526
|
+
descriptor[key] = _2;
|
|
4527
4527
|
}
|
|
4528
4528
|
}
|
|
4529
4529
|
if (target)
|
|
@@ -4540,10 +4540,10 @@ function __runInitializers(thisArg, initializers, value) {
|
|
|
4540
4540
|
function __propKey(x2) {
|
|
4541
4541
|
return typeof x2 === "symbol" ? x2 : "".concat(x2);
|
|
4542
4542
|
}
|
|
4543
|
-
function __setFunctionName(
|
|
4543
|
+
function __setFunctionName(f, name2, prefix) {
|
|
4544
4544
|
if (typeof name2 === "symbol")
|
|
4545
4545
|
name2 = name2.description ? "[".concat(name2.description, "]") : "";
|
|
4546
|
-
return Object.defineProperty(
|
|
4546
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name2) : name2 });
|
|
4547
4547
|
}
|
|
4548
4548
|
function __metadata(metadataKey, metadataValue) {
|
|
4549
4549
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
@@ -4577,11 +4577,11 @@ function __awaiter(thisArg, _arguments, P2, generator) {
|
|
|
4577
4577
|
});
|
|
4578
4578
|
}
|
|
4579
4579
|
function __generator(thisArg, body) {
|
|
4580
|
-
var
|
|
4580
|
+
var _2 = { label: 0, sent: function() {
|
|
4581
4581
|
if (t[0] & 1)
|
|
4582
4582
|
throw t[1];
|
|
4583
4583
|
return t[1];
|
|
4584
|
-
}, trys: [], ops: [] },
|
|
4584
|
+
}, trys: [], ops: [] }, f, y2, t, g2;
|
|
4585
4585
|
return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
4586
4586
|
return this;
|
|
4587
4587
|
}), g2;
|
|
@@ -4591,13 +4591,13 @@ function __generator(thisArg, body) {
|
|
|
4591
4591
|
};
|
|
4592
4592
|
}
|
|
4593
4593
|
function step(op) {
|
|
4594
|
-
if (
|
|
4594
|
+
if (f)
|
|
4595
4595
|
throw new TypeError("Generator is already executing.");
|
|
4596
|
-
while (g2 && (g2 = 0, op[0] && (
|
|
4596
|
+
while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
|
|
4597
4597
|
try {
|
|
4598
|
-
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)
|
|
4599
4599
|
return t;
|
|
4600
|
-
if (
|
|
4600
|
+
if (y2 = 0, t)
|
|
4601
4601
|
op = [op[0] & 2, t.value];
|
|
4602
4602
|
switch (op[0]) {
|
|
4603
4603
|
case 0:
|
|
@@ -4605,77 +4605,77 @@ function __generator(thisArg, body) {
|
|
|
4605
4605
|
t = op;
|
|
4606
4606
|
break;
|
|
4607
4607
|
case 4:
|
|
4608
|
-
|
|
4608
|
+
_2.label++;
|
|
4609
4609
|
return { value: op[1], done: false };
|
|
4610
4610
|
case 5:
|
|
4611
|
-
|
|
4612
|
-
|
|
4611
|
+
_2.label++;
|
|
4612
|
+
y2 = op[1];
|
|
4613
4613
|
op = [0];
|
|
4614
4614
|
continue;
|
|
4615
4615
|
case 7:
|
|
4616
|
-
op =
|
|
4617
|
-
|
|
4616
|
+
op = _2.ops.pop();
|
|
4617
|
+
_2.trys.pop();
|
|
4618
4618
|
continue;
|
|
4619
4619
|
default:
|
|
4620
|
-
if (!(t =
|
|
4621
|
-
|
|
4620
|
+
if (!(t = _2.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
4621
|
+
_2 = 0;
|
|
4622
4622
|
continue;
|
|
4623
4623
|
}
|
|
4624
4624
|
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
4625
|
-
|
|
4625
|
+
_2.label = op[1];
|
|
4626
4626
|
break;
|
|
4627
4627
|
}
|
|
4628
|
-
if (op[0] === 6 &&
|
|
4629
|
-
|
|
4628
|
+
if (op[0] === 6 && _2.label < t[1]) {
|
|
4629
|
+
_2.label = t[1];
|
|
4630
4630
|
t = op;
|
|
4631
4631
|
break;
|
|
4632
4632
|
}
|
|
4633
|
-
if (t &&
|
|
4634
|
-
|
|
4635
|
-
|
|
4633
|
+
if (t && _2.label < t[2]) {
|
|
4634
|
+
_2.label = t[2];
|
|
4635
|
+
_2.ops.push(op);
|
|
4636
4636
|
break;
|
|
4637
4637
|
}
|
|
4638
4638
|
if (t[2])
|
|
4639
|
-
|
|
4640
|
-
|
|
4639
|
+
_2.ops.pop();
|
|
4640
|
+
_2.trys.pop();
|
|
4641
4641
|
continue;
|
|
4642
4642
|
}
|
|
4643
|
-
op = body.call(thisArg,
|
|
4643
|
+
op = body.call(thisArg, _2);
|
|
4644
4644
|
} catch (e) {
|
|
4645
4645
|
op = [6, e];
|
|
4646
|
-
|
|
4646
|
+
y2 = 0;
|
|
4647
4647
|
} finally {
|
|
4648
|
-
|
|
4648
|
+
f = t = 0;
|
|
4649
4649
|
}
|
|
4650
4650
|
if (op[0] & 5)
|
|
4651
4651
|
throw op[1];
|
|
4652
4652
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
4653
4653
|
}
|
|
4654
4654
|
}
|
|
4655
|
-
function __exportStar(m2,
|
|
4656
|
-
for (var
|
|
4657
|
-
if (
|
|
4658
|
-
__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);
|
|
4659
4659
|
}
|
|
4660
|
-
function __values(
|
|
4661
|
-
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;
|
|
4662
4662
|
if (m2)
|
|
4663
|
-
return m2.call(
|
|
4664
|
-
if (
|
|
4663
|
+
return m2.call(o);
|
|
4664
|
+
if (o && typeof o.length === "number")
|
|
4665
4665
|
return {
|
|
4666
4666
|
next: function() {
|
|
4667
|
-
if (
|
|
4668
|
-
|
|
4669
|
-
return { value:
|
|
4667
|
+
if (o && i >= o.length)
|
|
4668
|
+
o = void 0;
|
|
4669
|
+
return { value: o && o[i++], done: !o };
|
|
4670
4670
|
}
|
|
4671
4671
|
};
|
|
4672
4672
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4673
4673
|
}
|
|
4674
|
-
function __read(
|
|
4675
|
-
var m2 = typeof Symbol === "function" &&
|
|
4674
|
+
function __read(o, n) {
|
|
4675
|
+
var m2 = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4676
4676
|
if (!m2)
|
|
4677
|
-
return
|
|
4678
|
-
var i = m2.call(
|
|
4677
|
+
return o;
|
|
4678
|
+
var i = m2.call(o), r2, ar = [], e;
|
|
4679
4679
|
try {
|
|
4680
4680
|
while ((n === void 0 || n-- > 0) && !(r2 = i.next()).done)
|
|
4681
4681
|
ar.push(r2.value);
|
|
@@ -4700,9 +4700,9 @@ function __spread() {
|
|
|
4700
4700
|
function __spreadArrays() {
|
|
4701
4701
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
4702
4702
|
s += arguments[i].length;
|
|
4703
|
-
for (var r2 = Array(s),
|
|
4704
|
-
for (var
|
|
4705
|
-
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];
|
|
4706
4706
|
return r2;
|
|
4707
4707
|
}
|
|
4708
4708
|
function __spreadArray(to, from, pack) {
|
|
@@ -4722,15 +4722,15 @@ function __await(v2) {
|
|
|
4722
4722
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
4723
4723
|
if (!Symbol.asyncIterator)
|
|
4724
4724
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
4725
|
-
var g2 = generator.apply(thisArg, _arguments || []), i,
|
|
4725
|
+
var g2 = generator.apply(thisArg, _arguments || []), i, q2 = [];
|
|
4726
4726
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
4727
4727
|
return this;
|
|
4728
4728
|
}, i;
|
|
4729
4729
|
function verb(n) {
|
|
4730
4730
|
if (g2[n])
|
|
4731
4731
|
i[n] = function(v2) {
|
|
4732
|
-
return new Promise(function(
|
|
4733
|
-
|
|
4732
|
+
return new Promise(function(a, b2) {
|
|
4733
|
+
q2.push([n, v2, a, b2]) > 1 || resume(n, v2);
|
|
4734
4734
|
});
|
|
4735
4735
|
};
|
|
4736
4736
|
}
|
|
@@ -4738,11 +4738,11 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
4738
4738
|
try {
|
|
4739
4739
|
step(g2[n](v2));
|
|
4740
4740
|
} catch (e) {
|
|
4741
|
-
settle(
|
|
4741
|
+
settle(q2[0][3], e);
|
|
4742
4742
|
}
|
|
4743
4743
|
}
|
|
4744
4744
|
function step(r2) {
|
|
4745
|
-
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);
|
|
4746
4746
|
}
|
|
4747
4747
|
function fulfill(value) {
|
|
4748
4748
|
resume("next", value);
|
|
@@ -4750,41 +4750,41 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
4750
4750
|
function reject(value) {
|
|
4751
4751
|
resume("throw", value);
|
|
4752
4752
|
}
|
|
4753
|
-
function settle(
|
|
4754
|
-
if (
|
|
4755
|
-
resume(
|
|
4753
|
+
function settle(f, v2) {
|
|
4754
|
+
if (f(v2), q2.shift(), q2.length)
|
|
4755
|
+
resume(q2[0][0], q2[0][1]);
|
|
4756
4756
|
}
|
|
4757
4757
|
}
|
|
4758
|
-
function __asyncDelegator(
|
|
4759
|
-
var i,
|
|
4758
|
+
function __asyncDelegator(o) {
|
|
4759
|
+
var i, p2;
|
|
4760
4760
|
return i = {}, verb("next"), verb("throw", function(e) {
|
|
4761
4761
|
throw e;
|
|
4762
4762
|
}), verb("return"), i[Symbol.iterator] = function() {
|
|
4763
4763
|
return this;
|
|
4764
4764
|
}, i;
|
|
4765
|
-
function verb(n,
|
|
4766
|
-
i[n] =
|
|
4767
|
-
return (
|
|
4768
|
-
} :
|
|
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;
|
|
4769
4769
|
}
|
|
4770
4770
|
}
|
|
4771
|
-
function __asyncValues(
|
|
4771
|
+
function __asyncValues(o) {
|
|
4772
4772
|
if (!Symbol.asyncIterator)
|
|
4773
4773
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
4774
|
-
var m2 =
|
|
4775
|
-
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() {
|
|
4776
4776
|
return this;
|
|
4777
4777
|
}, i);
|
|
4778
4778
|
function verb(n) {
|
|
4779
|
-
i[n] =
|
|
4779
|
+
i[n] = o[n] && function(v2) {
|
|
4780
4780
|
return new Promise(function(resolve9, reject) {
|
|
4781
|
-
v2 =
|
|
4781
|
+
v2 = o[n](v2), settle(resolve9, reject, v2.done, v2.value);
|
|
4782
4782
|
});
|
|
4783
4783
|
};
|
|
4784
4784
|
}
|
|
4785
|
-
function settle(resolve9, reject,
|
|
4785
|
+
function settle(resolve9, reject, d2, v2) {
|
|
4786
4786
|
Promise.resolve(v2).then(function(v3) {
|
|
4787
|
-
resolve9({ value: v3, done:
|
|
4787
|
+
resolve9({ value: v3, done: d2 });
|
|
4788
4788
|
}, reject);
|
|
4789
4789
|
}
|
|
4790
4790
|
}
|
|
@@ -4801,9 +4801,9 @@ function __importStar(mod) {
|
|
|
4801
4801
|
return mod;
|
|
4802
4802
|
var result = {};
|
|
4803
4803
|
if (mod != null) {
|
|
4804
|
-
for (var
|
|
4805
|
-
if (
|
|
4806
|
-
__createBinding(result, mod,
|
|
4804
|
+
for (var k2 in mod)
|
|
4805
|
+
if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2))
|
|
4806
|
+
__createBinding(result, mod, k2);
|
|
4807
4807
|
}
|
|
4808
4808
|
__setModuleDefault(result, mod);
|
|
4809
4809
|
return result;
|
|
@@ -4811,21 +4811,21 @@ function __importStar(mod) {
|
|
|
4811
4811
|
function __importDefault(mod) {
|
|
4812
4812
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
4813
4813
|
}
|
|
4814
|
-
function __classPrivateFieldGet2(receiver, state, kind,
|
|
4815
|
-
if (kind === "a" && !
|
|
4814
|
+
function __classPrivateFieldGet2(receiver, state, kind, f) {
|
|
4815
|
+
if (kind === "a" && !f)
|
|
4816
4816
|
throw new TypeError("Private accessor was defined without a getter");
|
|
4817
|
-
if (typeof state === "function" ? receiver !== state || !
|
|
4817
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
4818
4818
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4819
|
-
return kind === "m" ?
|
|
4819
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
4820
4820
|
}
|
|
4821
|
-
function __classPrivateFieldSet2(receiver, state, value, kind,
|
|
4821
|
+
function __classPrivateFieldSet2(receiver, state, value, kind, f) {
|
|
4822
4822
|
if (kind === "m")
|
|
4823
4823
|
throw new TypeError("Private method is not writable");
|
|
4824
|
-
if (kind === "a" && !
|
|
4824
|
+
if (kind === "a" && !f)
|
|
4825
4825
|
throw new TypeError("Private accessor was defined without a setter");
|
|
4826
|
-
if (typeof state === "function" ? receiver !== state || !
|
|
4826
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
4827
4827
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
4828
|
-
return kind === "a" ?
|
|
4828
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
4829
4829
|
}
|
|
4830
4830
|
function __classPrivateFieldIn(state, receiver) {
|
|
4831
4831
|
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
@@ -4835,47 +4835,47 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
4835
4835
|
var extendStatics, __assign, __createBinding, __setModuleDefault, tslib_es6_default;
|
|
4836
4836
|
var init_tslib_es6 = __esm({
|
|
4837
4837
|
"../../node_modules/.pnpm/tslib@2.5.3/node_modules/tslib/tslib.es6.mjs"() {
|
|
4838
|
-
extendStatics = function(
|
|
4839
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
4840
|
-
|
|
4841
|
-
} || function(
|
|
4842
|
-
for (var
|
|
4843
|
-
if (Object.prototype.hasOwnProperty.call(b3,
|
|
4844
|
-
|
|
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];
|
|
4845
4845
|
};
|
|
4846
|
-
return extendStatics(
|
|
4846
|
+
return extendStatics(d2, b2);
|
|
4847
4847
|
};
|
|
4848
4848
|
__assign = function() {
|
|
4849
4849
|
__assign = Object.assign || function __assign2(t) {
|
|
4850
4850
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4851
4851
|
s = arguments[i];
|
|
4852
|
-
for (var
|
|
4853
|
-
if (Object.prototype.hasOwnProperty.call(s,
|
|
4854
|
-
t[
|
|
4852
|
+
for (var p2 in s)
|
|
4853
|
+
if (Object.prototype.hasOwnProperty.call(s, p2))
|
|
4854
|
+
t[p2] = s[p2];
|
|
4855
4855
|
}
|
|
4856
4856
|
return t;
|
|
4857
4857
|
};
|
|
4858
4858
|
return __assign.apply(this, arguments);
|
|
4859
4859
|
};
|
|
4860
|
-
__createBinding = Object.create ? function(
|
|
4860
|
+
__createBinding = Object.create ? function(o, m2, k2, k22) {
|
|
4861
4861
|
if (k22 === void 0)
|
|
4862
|
-
k22 =
|
|
4863
|
-
var desc = Object.getOwnPropertyDescriptor(m2,
|
|
4862
|
+
k22 = k2;
|
|
4863
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
4864
4864
|
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
4865
4865
|
desc = { enumerable: true, get: function() {
|
|
4866
|
-
return m2[
|
|
4866
|
+
return m2[k2];
|
|
4867
4867
|
} };
|
|
4868
4868
|
}
|
|
4869
|
-
Object.defineProperty(
|
|
4870
|
-
} : function(
|
|
4869
|
+
Object.defineProperty(o, k22, desc);
|
|
4870
|
+
} : function(o, m2, k2, k22) {
|
|
4871
4871
|
if (k22 === void 0)
|
|
4872
|
-
k22 =
|
|
4873
|
-
|
|
4872
|
+
k22 = k2;
|
|
4873
|
+
o[k22] = m2[k2];
|
|
4874
4874
|
};
|
|
4875
|
-
__setModuleDefault = Object.create ? function(
|
|
4876
|
-
Object.defineProperty(
|
|
4877
|
-
} : function(
|
|
4878
|
-
|
|
4875
|
+
__setModuleDefault = Object.create ? function(o, v2) {
|
|
4876
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
4877
|
+
} : function(o, v2) {
|
|
4878
|
+
o["default"] = v2;
|
|
4879
4879
|
};
|
|
4880
4880
|
tslib_es6_default = {
|
|
4881
4881
|
__extends,
|
|
@@ -5248,9 +5248,9 @@ var require_types = __commonJS({
|
|
|
5248
5248
|
if (value && typeof value === "object") {
|
|
5249
5249
|
var type = value.type;
|
|
5250
5250
|
if (typeof type === "string" && hasOwn.call(defCache, type)) {
|
|
5251
|
-
var
|
|
5252
|
-
if (
|
|
5253
|
-
return
|
|
5251
|
+
var d2 = defCache[type];
|
|
5252
|
+
if (d2.finalized) {
|
|
5253
|
+
return d2;
|
|
5254
5254
|
}
|
|
5255
5255
|
}
|
|
5256
5256
|
}
|
|
@@ -5428,11 +5428,11 @@ var require_types = __commonJS({
|
|
|
5428
5428
|
if (!hasOwn.call(defCache, typeName)) {
|
|
5429
5429
|
throw new Error("");
|
|
5430
5430
|
}
|
|
5431
|
-
var
|
|
5432
|
-
if (
|
|
5431
|
+
var d2 = defCache[typeName];
|
|
5432
|
+
if (d2.finalized !== true) {
|
|
5433
5433
|
throw new Error("");
|
|
5434
5434
|
}
|
|
5435
|
-
return
|
|
5435
|
+
return d2.supertypeList.slice(1);
|
|
5436
5436
|
}
|
|
5437
5437
|
function computeSupertypeLookupTable(candidates) {
|
|
5438
5438
|
var table = {};
|
|
@@ -5440,12 +5440,12 @@ var require_types = __commonJS({
|
|
|
5440
5440
|
var typeNameCount = typeNames.length;
|
|
5441
5441
|
for (var i = 0; i < typeNameCount; ++i) {
|
|
5442
5442
|
var typeName = typeNames[i];
|
|
5443
|
-
var
|
|
5444
|
-
if (
|
|
5443
|
+
var d2 = defCache[typeName];
|
|
5444
|
+
if (d2.finalized !== true) {
|
|
5445
5445
|
throw new Error("" + typeName);
|
|
5446
5446
|
}
|
|
5447
|
-
for (var j2 = 0; j2 <
|
|
5448
|
-
var superTypeName =
|
|
5447
|
+
for (var j2 = 0; j2 < d2.supertypeList.length; ++j2) {
|
|
5448
|
+
var superTypeName = d2.supertypeList[j2];
|
|
5449
5449
|
if (hasOwn.call(candidates, superTypeName)) {
|
|
5450
5450
|
table[typeName] = superTypeName;
|
|
5451
5451
|
break;
|
|
@@ -5489,9 +5489,9 @@ var require_types = __commonJS({
|
|
|
5489
5489
|
}
|
|
5490
5490
|
var namedTypes = {};
|
|
5491
5491
|
function getFieldNames(object) {
|
|
5492
|
-
var
|
|
5493
|
-
if (
|
|
5494
|
-
return
|
|
5492
|
+
var d2 = defFromValue(object);
|
|
5493
|
+
if (d2) {
|
|
5494
|
+
return d2.fieldNames.slice(0);
|
|
5495
5495
|
}
|
|
5496
5496
|
if ("type" in object) {
|
|
5497
5497
|
throw new Error("did not recognize object of type " + JSON.stringify(object.type));
|
|
@@ -5499,9 +5499,9 @@ var require_types = __commonJS({
|
|
|
5499
5499
|
return Object.keys(object);
|
|
5500
5500
|
}
|
|
5501
5501
|
function getFieldValue(object, fieldName) {
|
|
5502
|
-
var
|
|
5503
|
-
if (
|
|
5504
|
-
var field =
|
|
5502
|
+
var d2 = defFromValue(object);
|
|
5503
|
+
if (d2) {
|
|
5504
|
+
var field = d2.allFields[fieldName];
|
|
5505
5505
|
if (field) {
|
|
5506
5506
|
return field.getValue(object);
|
|
5507
5507
|
}
|
|
@@ -5547,15 +5547,15 @@ var require_types = __commonJS({
|
|
|
5547
5547
|
var lastSeen = /* @__PURE__ */ Object.create(null);
|
|
5548
5548
|
for (var pos = 0; pos < list.length; ++pos) {
|
|
5549
5549
|
typeName = list[pos];
|
|
5550
|
-
var
|
|
5551
|
-
if (
|
|
5550
|
+
var d2 = defCache[typeName];
|
|
5551
|
+
if (d2.finalized !== true) {
|
|
5552
5552
|
throw new Error("");
|
|
5553
5553
|
}
|
|
5554
5554
|
if (hasOwn.call(lastSeen, typeName)) {
|
|
5555
5555
|
delete list[lastSeen[typeName]];
|
|
5556
5556
|
}
|
|
5557
5557
|
lastSeen[typeName] = pos;
|
|
5558
|
-
list.push.apply(list,
|
|
5558
|
+
list.push.apply(list, d2.baseNames);
|
|
5559
5559
|
}
|
|
5560
5560
|
for (var to = 0, from = to, len = list.length; from < len; ++from) {
|
|
5561
5561
|
if (hasOwn.call(list, from)) {
|
|
@@ -6851,19 +6851,19 @@ var require_equiv = __commonJS({
|
|
|
6851
6851
|
var isDate = types.builtInTypes.Date;
|
|
6852
6852
|
var isRegExp = types.builtInTypes.RegExp;
|
|
6853
6853
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
6854
|
-
function astNodesAreEquivalent(
|
|
6854
|
+
function astNodesAreEquivalent(a, b2, problemPath) {
|
|
6855
6855
|
if (isArray.check(problemPath)) {
|
|
6856
6856
|
problemPath.length = 0;
|
|
6857
6857
|
} else {
|
|
6858
6858
|
problemPath = null;
|
|
6859
6859
|
}
|
|
6860
|
-
return areEquivalent(
|
|
6860
|
+
return areEquivalent(a, b2, problemPath);
|
|
6861
6861
|
}
|
|
6862
|
-
astNodesAreEquivalent.assert = function(
|
|
6862
|
+
astNodesAreEquivalent.assert = function(a, b2) {
|
|
6863
6863
|
var problemPath = [];
|
|
6864
|
-
if (!astNodesAreEquivalent(
|
|
6864
|
+
if (!astNodesAreEquivalent(a, b2, problemPath)) {
|
|
6865
6865
|
if (problemPath.length === 0) {
|
|
6866
|
-
if (
|
|
6866
|
+
if (a !== b2) {
|
|
6867
6867
|
throw new Error("Nodes must be equal");
|
|
6868
6868
|
}
|
|
6869
6869
|
} else {
|
|
@@ -6877,27 +6877,27 @@ var require_equiv = __commonJS({
|
|
|
6877
6877
|
}
|
|
6878
6878
|
return "[" + JSON.stringify(property) + "]";
|
|
6879
6879
|
}
|
|
6880
|
-
function areEquivalent(
|
|
6881
|
-
if (
|
|
6880
|
+
function areEquivalent(a, b2, problemPath) {
|
|
6881
|
+
if (a === b2) {
|
|
6882
6882
|
return true;
|
|
6883
6883
|
}
|
|
6884
|
-
if (isArray.check(
|
|
6885
|
-
return arraysAreEquivalent(
|
|
6884
|
+
if (isArray.check(a)) {
|
|
6885
|
+
return arraysAreEquivalent(a, b2, problemPath);
|
|
6886
6886
|
}
|
|
6887
|
-
if (isObject.check(
|
|
6888
|
-
return objectsAreEquivalent(
|
|
6887
|
+
if (isObject.check(a)) {
|
|
6888
|
+
return objectsAreEquivalent(a, b2, problemPath);
|
|
6889
6889
|
}
|
|
6890
|
-
if (isDate.check(
|
|
6891
|
-
return isDate.check(b2) && +
|
|
6890
|
+
if (isDate.check(a)) {
|
|
6891
|
+
return isDate.check(b2) && +a === +b2;
|
|
6892
6892
|
}
|
|
6893
|
-
if (isRegExp.check(
|
|
6894
|
-
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);
|
|
6895
6895
|
}
|
|
6896
|
-
return
|
|
6896
|
+
return a == b2;
|
|
6897
6897
|
}
|
|
6898
|
-
function arraysAreEquivalent(
|
|
6899
|
-
isArray.assert(
|
|
6900
|
-
var aLength =
|
|
6898
|
+
function arraysAreEquivalent(a, b2, problemPath) {
|
|
6899
|
+
isArray.assert(a);
|
|
6900
|
+
var aLength = a.length;
|
|
6901
6901
|
if (!isArray.check(b2) || b2.length !== aLength) {
|
|
6902
6902
|
if (problemPath) {
|
|
6903
6903
|
problemPath.push("length");
|
|
@@ -6908,10 +6908,10 @@ var require_equiv = __commonJS({
|
|
|
6908
6908
|
if (problemPath) {
|
|
6909
6909
|
problemPath.push(i);
|
|
6910
6910
|
}
|
|
6911
|
-
if (i in
|
|
6911
|
+
if (i in a !== i in b2) {
|
|
6912
6912
|
return false;
|
|
6913
6913
|
}
|
|
6914
|
-
if (!areEquivalent(
|
|
6914
|
+
if (!areEquivalent(a[i], b2[i], problemPath)) {
|
|
6915
6915
|
return false;
|
|
6916
6916
|
}
|
|
6917
6917
|
if (problemPath) {
|
|
@@ -6923,25 +6923,25 @@ var require_equiv = __commonJS({
|
|
|
6923
6923
|
}
|
|
6924
6924
|
return true;
|
|
6925
6925
|
}
|
|
6926
|
-
function objectsAreEquivalent(
|
|
6927
|
-
isObject.assert(
|
|
6926
|
+
function objectsAreEquivalent(a, b2, problemPath) {
|
|
6927
|
+
isObject.assert(a);
|
|
6928
6928
|
if (!isObject.check(b2)) {
|
|
6929
6929
|
return false;
|
|
6930
6930
|
}
|
|
6931
|
-
if (
|
|
6931
|
+
if (a.type !== b2.type) {
|
|
6932
6932
|
if (problemPath) {
|
|
6933
6933
|
problemPath.push("type");
|
|
6934
6934
|
}
|
|
6935
6935
|
return false;
|
|
6936
6936
|
}
|
|
6937
|
-
var aNames = getFieldNames(
|
|
6937
|
+
var aNames = getFieldNames(a);
|
|
6938
6938
|
var aNameCount = aNames.length;
|
|
6939
6939
|
var bNames = getFieldNames(b2);
|
|
6940
6940
|
var bNameCount = bNames.length;
|
|
6941
6941
|
if (aNameCount === bNameCount) {
|
|
6942
6942
|
for (var i = 0; i < aNameCount; ++i) {
|
|
6943
6943
|
var name2 = aNames[i];
|
|
6944
|
-
var aChild = getFieldValue(
|
|
6944
|
+
var aChild = getFieldValue(a, name2);
|
|
6945
6945
|
var bChild = getFieldValue(b2, name2);
|
|
6946
6946
|
if (problemPath) {
|
|
6947
6947
|
problemPath.push(name2);
|
|
@@ -8473,7 +8473,7 @@ var require_util = __commonJS({
|
|
|
8473
8473
|
exports.isAbsolute = function(aPath) {
|
|
8474
8474
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
8475
8475
|
};
|
|
8476
|
-
function
|
|
8476
|
+
function relative3(aRoot, aPath) {
|
|
8477
8477
|
if (aRoot === "") {
|
|
8478
8478
|
aRoot = ".";
|
|
8479
8479
|
}
|
|
@@ -8492,7 +8492,7 @@ var require_util = __commonJS({
|
|
|
8492
8492
|
}
|
|
8493
8493
|
return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
|
|
8494
8494
|
}
|
|
8495
|
-
exports.relative =
|
|
8495
|
+
exports.relative = relative3;
|
|
8496
8496
|
var supportsNullProto = function() {
|
|
8497
8497
|
var obj = /* @__PURE__ */ Object.create(null);
|
|
8498
8498
|
return !("__proto__" in obj);
|
|
@@ -9094,30 +9094,30 @@ var require_binary_search = __commonJS({
|
|
|
9094
9094
|
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js
|
|
9095
9095
|
var require_quick_sort = __commonJS({
|
|
9096
9096
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(exports) {
|
|
9097
|
-
function swap(ary, x2,
|
|
9097
|
+
function swap(ary, x2, y2) {
|
|
9098
9098
|
var temp = ary[x2];
|
|
9099
|
-
ary[x2] = ary[
|
|
9100
|
-
ary[
|
|
9099
|
+
ary[x2] = ary[y2];
|
|
9100
|
+
ary[y2] = temp;
|
|
9101
9101
|
}
|
|
9102
9102
|
function randomIntInRange(low, high) {
|
|
9103
9103
|
return Math.round(low + Math.random() * (high - low));
|
|
9104
9104
|
}
|
|
9105
|
-
function doQuickSort(ary, comparator,
|
|
9106
|
-
if (
|
|
9107
|
-
var pivotIndex = randomIntInRange(
|
|
9108
|
-
var i =
|
|
9105
|
+
function doQuickSort(ary, comparator, p2, r2) {
|
|
9106
|
+
if (p2 < r2) {
|
|
9107
|
+
var pivotIndex = randomIntInRange(p2, r2);
|
|
9108
|
+
var i = p2 - 1;
|
|
9109
9109
|
swap(ary, pivotIndex, r2);
|
|
9110
9110
|
var pivot = ary[r2];
|
|
9111
|
-
for (var j2 =
|
|
9111
|
+
for (var j2 = p2; j2 < r2; j2++) {
|
|
9112
9112
|
if (comparator(ary[j2], pivot) <= 0) {
|
|
9113
9113
|
i += 1;
|
|
9114
9114
|
swap(ary, i, j2);
|
|
9115
9115
|
}
|
|
9116
9116
|
}
|
|
9117
9117
|
swap(ary, i + 1, j2);
|
|
9118
|
-
var
|
|
9119
|
-
doQuickSort(ary, comparator,
|
|
9120
|
-
doQuickSort(ary, comparator,
|
|
9118
|
+
var q2 = i + 1;
|
|
9119
|
+
doQuickSort(ary, comparator, p2, q2 - 1);
|
|
9120
|
+
doQuickSort(ary, comparator, q2 + 1, r2);
|
|
9121
9121
|
}
|
|
9122
9122
|
}
|
|
9123
9123
|
exports.quickSort = function(ary, comparator) {
|
|
@@ -10017,13 +10017,13 @@ var require_util2 = __commonJS({
|
|
|
10017
10017
|
var SourceMapGenerator = source_map_1.default.SourceMapGenerator;
|
|
10018
10018
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
10019
10019
|
function getLineTerminator() {
|
|
10020
|
-
return
|
|
10020
|
+
return isBrowser2() ? "\n" : require("os").EOL || "\n";
|
|
10021
10021
|
}
|
|
10022
10022
|
exports.getLineTerminator = getLineTerminator;
|
|
10023
|
-
function
|
|
10023
|
+
function isBrowser2() {
|
|
10024
10024
|
return typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
10025
10025
|
}
|
|
10026
|
-
exports.isBrowser =
|
|
10026
|
+
exports.isBrowser = isBrowser2;
|
|
10027
10027
|
function getOption(options, key, defaultValue) {
|
|
10028
10028
|
if (options && hasOwn.call(options, key)) {
|
|
10029
10029
|
return options[key];
|
|
@@ -10642,19 +10642,19 @@ var require_esprima2 = __commonJS({
|
|
|
10642
10642
|
function(module3, exports2, __webpack_require__) {
|
|
10643
10643
|
"use strict";
|
|
10644
10644
|
var __extends2 = this && this.__extends || function() {
|
|
10645
|
-
var extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
10646
|
-
|
|
10647
|
-
} || function(
|
|
10648
|
-
for (var
|
|
10649
|
-
if (b2.hasOwnProperty(
|
|
10650
|
-
|
|
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];
|
|
10651
10651
|
};
|
|
10652
|
-
return function(
|
|
10653
|
-
extendStatics2(
|
|
10652
|
+
return function(d2, b2) {
|
|
10653
|
+
extendStatics2(d2, b2);
|
|
10654
10654
|
function __() {
|
|
10655
|
-
this.constructor =
|
|
10655
|
+
this.constructor = d2;
|
|
10656
10656
|
}
|
|
10657
|
-
|
|
10657
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
10658
10658
|
};
|
|
10659
10659
|
}();
|
|
10660
10660
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -18327,8 +18327,8 @@ var require_patcher = __commonJS({
|
|
|
18327
18327
|
assert_1.default.ok(util_1.comparePos(from, to) <= 0);
|
|
18328
18328
|
toConcat.push(lines.slice(from, to));
|
|
18329
18329
|
}
|
|
18330
|
-
replacements.sort(function(
|
|
18331
|
-
return util_1.comparePos(
|
|
18330
|
+
replacements.sort(function(a, b2) {
|
|
18331
|
+
return util_1.comparePos(a.start, b2.start);
|
|
18332
18332
|
}).forEach(function(rep) {
|
|
18333
18333
|
if (util_1.comparePos(sliceFrom, rep.start) > 0) {
|
|
18334
18334
|
} else {
|
|
@@ -18577,12 +18577,12 @@ var require_patcher = __commonJS({
|
|
|
18577
18577
|
}
|
|
18578
18578
|
delete keys.loc;
|
|
18579
18579
|
var originalReprintCount = reprints.length;
|
|
18580
|
-
for (var
|
|
18581
|
-
if (
|
|
18580
|
+
for (var k2 in keys) {
|
|
18581
|
+
if (k2.charAt(0) === "_") {
|
|
18582
18582
|
continue;
|
|
18583
18583
|
}
|
|
18584
|
-
newPath.stack.push(
|
|
18585
|
-
oldPath.stack.push(
|
|
18584
|
+
newPath.stack.push(k2, types.getFieldValue(newNode, k2));
|
|
18585
|
+
oldPath.stack.push(k2, types.getFieldValue(oldNode, k2));
|
|
18586
18586
|
var canReprint = findAnyReprints(newPath, oldPath, reprints);
|
|
18587
18587
|
newPath.stack.length -= 2;
|
|
18588
18588
|
oldPath.stack.length -= 2;
|
|
@@ -20539,9 +20539,9 @@ var require_printer = __commonJS({
|
|
|
20539
20539
|
if (fun.defaults) {
|
|
20540
20540
|
path3.each(function(defExprPath) {
|
|
20541
20541
|
var i = defExprPath.getName();
|
|
20542
|
-
var
|
|
20543
|
-
if (
|
|
20544
|
-
printed[i] = lines_1.concat([
|
|
20542
|
+
var p2 = printed[i];
|
|
20543
|
+
if (p2 && defExprPath.getValue()) {
|
|
20544
|
+
printed[i] = lines_1.concat([p2, " = ", print2(defExprPath)]);
|
|
20545
20545
|
}
|
|
20546
20546
|
}, "defaults");
|
|
20547
20547
|
}
|
|
@@ -21366,7 +21366,7 @@ var require_lib = __commonJS({
|
|
|
21366
21366
|
}
|
|
21367
21367
|
parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse) {
|
|
21368
21368
|
super.parseBlockBody(node, allowDirectives, topLevel, end, afterBlockParse);
|
|
21369
|
-
const directiveStatements = node.directives.map((
|
|
21369
|
+
const directiveStatements = node.directives.map((d2) => this.directiveToStmt(d2));
|
|
21370
21370
|
node.body = directiveStatements.concat(node.body);
|
|
21371
21371
|
delete node.directives;
|
|
21372
21372
|
}
|
|
@@ -29789,23 +29789,23 @@ var require_lib = __commonJS({
|
|
|
29789
29789
|
this.sawUnambiguousESM = true;
|
|
29790
29790
|
return this.finishNode(node, "TSExternalModuleReference");
|
|
29791
29791
|
}
|
|
29792
|
-
tsLookAhead(
|
|
29792
|
+
tsLookAhead(f) {
|
|
29793
29793
|
const state = this.state.clone();
|
|
29794
|
-
const res =
|
|
29794
|
+
const res = f();
|
|
29795
29795
|
this.state = state;
|
|
29796
29796
|
return res;
|
|
29797
29797
|
}
|
|
29798
|
-
tsTryParseAndCatch(
|
|
29799
|
-
const result = this.tryParse((abort) =>
|
|
29798
|
+
tsTryParseAndCatch(f) {
|
|
29799
|
+
const result = this.tryParse((abort) => f() || abort());
|
|
29800
29800
|
if (result.aborted || !result.node)
|
|
29801
29801
|
return;
|
|
29802
29802
|
if (result.error)
|
|
29803
29803
|
this.state = result.failState;
|
|
29804
29804
|
return result.node;
|
|
29805
29805
|
}
|
|
29806
|
-
tsTryParse(
|
|
29806
|
+
tsTryParse(f) {
|
|
29807
29807
|
const state = this.state.clone();
|
|
29808
|
-
const result =
|
|
29808
|
+
const result = f();
|
|
29809
29809
|
if (result !== void 0 && result !== false) {
|
|
29810
29810
|
return result;
|
|
29811
29811
|
}
|
|
@@ -31359,11 +31359,11 @@ var require_lib = __commonJS({
|
|
|
31359
31359
|
const [expectedName, expectedOptions] = typeof expectedConfig === "string" ? [expectedConfig, {}] : expectedConfig;
|
|
31360
31360
|
const expectedKeys = Object.keys(expectedOptions);
|
|
31361
31361
|
const expectedOptionsIsEmpty = expectedKeys.length === 0;
|
|
31362
|
-
return plugins.some((
|
|
31363
|
-
if (typeof
|
|
31364
|
-
return expectedOptionsIsEmpty &&
|
|
31362
|
+
return plugins.some((p2) => {
|
|
31363
|
+
if (typeof p2 === "string") {
|
|
31364
|
+
return expectedOptionsIsEmpty && p2 === expectedName;
|
|
31365
31365
|
} else {
|
|
31366
|
-
const [pluginName, pluginOptions] =
|
|
31366
|
+
const [pluginName, pluginOptions] = p2;
|
|
31367
31367
|
if (pluginName !== expectedName) {
|
|
31368
31368
|
return false;
|
|
31369
31369
|
}
|
|
@@ -31415,7 +31415,7 @@ var require_lib = __commonJS({
|
|
|
31415
31415
|
if (hasPlugin(plugins, "pipelineOperator")) {
|
|
31416
31416
|
const proposal = getPluginOption(plugins, "pipelineOperator", "proposal");
|
|
31417
31417
|
if (!PIPELINE_PROPOSALS.includes(proposal)) {
|
|
31418
|
-
const proposalList = PIPELINE_PROPOSALS.map((
|
|
31418
|
+
const proposalList = PIPELINE_PROPOSALS.map((p2) => `"${p2}"`).join(", ");
|
|
31419
31419
|
throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`);
|
|
31420
31420
|
}
|
|
31421
31421
|
const tupleSyntaxIsHash = hasPlugin(plugins, ["recordAndTuple", {
|
|
@@ -31455,7 +31455,7 @@ var require_lib = __commonJS({
|
|
|
31455
31455
|
throw new Error("Cannot combine importAssertions and importAttributes plugins.");
|
|
31456
31456
|
}
|
|
31457
31457
|
if (hasPlugin(plugins, "recordAndTuple") && getPluginOption(plugins, "recordAndTuple", "syntaxType") != null && !RECORD_AND_TUPLE_SYNTAX_TYPES.includes(getPluginOption(plugins, "recordAndTuple", "syntaxType"))) {
|
|
31458
|
-
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(", "));
|
|
31459
31459
|
}
|
|
31460
31460
|
if (hasPlugin(plugins, "asyncDoExpressions") && !hasPlugin(plugins, "doExpressions")) {
|
|
31461
31461
|
const error = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
|
|
@@ -35477,7 +35477,7 @@ var require_reader = __commonJS({
|
|
|
35477
35477
|
return this;
|
|
35478
35478
|
}
|
|
35479
35479
|
BufferReader.read = function(buffer, offset, length) {
|
|
35480
|
-
let
|
|
35480
|
+
let a = [];
|
|
35481
35481
|
let c2 = Math.ceil(length / 8);
|
|
35482
35482
|
let l2 = Math.floor(offset / 8);
|
|
35483
35483
|
const m2 = offset % 8;
|
|
@@ -35486,20 +35486,20 @@ var require_reader = __commonJS({
|
|
|
35486
35486
|
for (let i = 7; i >= 0; i--) {
|
|
35487
35487
|
r2[7 - i] = n & Math.pow(2, i) ? 1 : 0;
|
|
35488
35488
|
}
|
|
35489
|
-
|
|
35489
|
+
a = a.concat(r2);
|
|
35490
35490
|
}
|
|
35491
|
-
function
|
|
35491
|
+
function p2(a2) {
|
|
35492
35492
|
let n = 0;
|
|
35493
|
-
const
|
|
35494
|
-
for (let i =
|
|
35495
|
-
if (
|
|
35493
|
+
const f = a2.length - 1;
|
|
35494
|
+
for (let i = f; i >= 0; i--) {
|
|
35495
|
+
if (a2[f - i])
|
|
35496
35496
|
n += Math.pow(2, i);
|
|
35497
35497
|
}
|
|
35498
35498
|
return n;
|
|
35499
35499
|
}
|
|
35500
35500
|
while (c2--)
|
|
35501
35501
|
t(buffer.readUInt8(l2++));
|
|
35502
|
-
return
|
|
35502
|
+
return p2(a.slice(m2, m2 + length));
|
|
35503
35503
|
};
|
|
35504
35504
|
BufferReader.prototype.read = function(size) {
|
|
35505
35505
|
const val = BufferReader.read(this.buffer, this.offset, size);
|
|
@@ -35516,9 +35516,9 @@ var require_writer = __commonJS({
|
|
|
35516
35516
|
function BufferWriter() {
|
|
35517
35517
|
this.buffer = [];
|
|
35518
35518
|
}
|
|
35519
|
-
BufferWriter.prototype.write = function(
|
|
35519
|
+
BufferWriter.prototype.write = function(d2, size) {
|
|
35520
35520
|
for (let i = 0; i < size; i++) {
|
|
35521
|
-
this.buffer.push(
|
|
35521
|
+
this.buffer.push(d2 & Math.pow(2, size - i - 1) ? 1 : 0);
|
|
35522
35522
|
}
|
|
35523
35523
|
};
|
|
35524
35524
|
BufferWriter.prototype.writeBuffer = function(b2) {
|
|
@@ -35701,8 +35701,8 @@ var require_packet = __commonJS({
|
|
|
35701
35701
|
this.qdcount = 0;
|
|
35702
35702
|
this.nscount = 0;
|
|
35703
35703
|
this.arcount = 0;
|
|
35704
|
-
for (const
|
|
35705
|
-
this[
|
|
35704
|
+
for (const k2 in header) {
|
|
35705
|
+
this[k2] = header[k2];
|
|
35706
35706
|
}
|
|
35707
35707
|
return this;
|
|
35708
35708
|
};
|
|
@@ -35749,8 +35749,8 @@ var require_packet = __commonJS({
|
|
|
35749
35749
|
class: Packet.CLASS.ANY
|
|
35750
35750
|
};
|
|
35751
35751
|
if (typeof name2 === "object") {
|
|
35752
|
-
for (const
|
|
35753
|
-
this[
|
|
35752
|
+
for (const k2 in name2) {
|
|
35753
|
+
this[k2] = name2[k2] || defaults[k2];
|
|
35754
35754
|
}
|
|
35755
35755
|
} else {
|
|
35756
35756
|
this.name = name2;
|
|
@@ -35849,15 +35849,15 @@ var require_packet = __commonJS({
|
|
|
35849
35849
|
reader = new Packet.Reader(reader);
|
|
35850
35850
|
}
|
|
35851
35851
|
const name2 = [];
|
|
35852
|
-
let
|
|
35852
|
+
let o;
|
|
35853
35853
|
let len = reader.read(8);
|
|
35854
35854
|
while (len) {
|
|
35855
35855
|
if ((len & Packet.Name.COPY) === Packet.Name.COPY) {
|
|
35856
35856
|
len -= Packet.Name.COPY;
|
|
35857
35857
|
len = len << 8;
|
|
35858
35858
|
const pos = len + reader.read(8);
|
|
35859
|
-
if (!
|
|
35860
|
-
|
|
35859
|
+
if (!o)
|
|
35860
|
+
o = reader.offset;
|
|
35861
35861
|
reader.offset = pos * 8;
|
|
35862
35862
|
len = reader.read(8);
|
|
35863
35863
|
continue;
|
|
@@ -35869,8 +35869,8 @@ var require_packet = __commonJS({
|
|
|
35869
35869
|
len = reader.read(8);
|
|
35870
35870
|
}
|
|
35871
35871
|
}
|
|
35872
|
-
if (
|
|
35873
|
-
reader.offset =
|
|
35872
|
+
if (o)
|
|
35873
|
+
reader.offset = o;
|
|
35874
35874
|
return name2.join(".");
|
|
35875
35875
|
},
|
|
35876
35876
|
encode: function(domain, writer) {
|
|
@@ -36104,11 +36104,11 @@ var require_packet = __commonJS({
|
|
|
36104
36104
|
return rdata.ednsCode === Packet.EDNS_OPTION_CODE[type];
|
|
36105
36105
|
})[0];
|
|
36106
36106
|
if (encoder in Packet.Resource.EDNS && Packet.Resource.EDNS[encoder].encode) {
|
|
36107
|
-
const
|
|
36108
|
-
Packet.Resource.EDNS[encoder].encode(rdata,
|
|
36107
|
+
const w2 = new Packet.Writer();
|
|
36108
|
+
Packet.Resource.EDNS[encoder].encode(rdata, w2);
|
|
36109
36109
|
rdataWriter.write(rdata.ednsCode, 16);
|
|
36110
|
-
rdataWriter.write(
|
|
36111
|
-
rdataWriter.writeBuffer(
|
|
36110
|
+
rdataWriter.write(w2.buffer.length / 8, 16);
|
|
36111
|
+
rdataWriter.writeBuffer(w2);
|
|
36112
36112
|
} else {
|
|
36113
36113
|
debug2("node-dns > unknown EDNS rdata encoder %s(%j)", encoder, rdata.ednsCode);
|
|
36114
36114
|
}
|
|
@@ -41623,7 +41623,7 @@ var require_util4 = __commonJS({
|
|
|
41623
41623
|
if (parsedMetadata.length === 0) {
|
|
41624
41624
|
return true;
|
|
41625
41625
|
}
|
|
41626
|
-
const list = parsedMetadata.sort((c2,
|
|
41626
|
+
const list = parsedMetadata.sort((c2, d2) => d2.algo.localeCompare(c2.algo));
|
|
41627
41627
|
const strongest = list[0].algo;
|
|
41628
41628
|
const metadata = list.filter((item) => item.algo === strongest);
|
|
41629
41629
|
for (const item of metadata) {
|
|
@@ -41659,8 +41659,8 @@ var require_util4 = __commonJS({
|
|
|
41659
41659
|
}
|
|
41660
41660
|
function tryUpgradeRequestToAPotentiallyTrustworthyURL(request2) {
|
|
41661
41661
|
}
|
|
41662
|
-
function sameOrigin(
|
|
41663
|
-
if (
|
|
41662
|
+
function sameOrigin(A, B) {
|
|
41663
|
+
if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
|
|
41664
41664
|
return true;
|
|
41665
41665
|
}
|
|
41666
41666
|
return false;
|
|
@@ -42500,7 +42500,7 @@ var require_file = __commonJS({
|
|
|
42500
42500
|
options = webidl.converters.FilePropertyBag(options);
|
|
42501
42501
|
const n = fileName;
|
|
42502
42502
|
let t = options.type;
|
|
42503
|
-
let
|
|
42503
|
+
let d2;
|
|
42504
42504
|
substep: {
|
|
42505
42505
|
if (t) {
|
|
42506
42506
|
t = parseMIMEType(t);
|
|
@@ -42510,12 +42510,12 @@ var require_file = __commonJS({
|
|
|
42510
42510
|
}
|
|
42511
42511
|
t = serializeAMimeType(t).toLowerCase();
|
|
42512
42512
|
}
|
|
42513
|
-
|
|
42513
|
+
d2 = options.lastModified;
|
|
42514
42514
|
}
|
|
42515
42515
|
super(processBlobParts(fileBits, options), { type: t });
|
|
42516
42516
|
this[kState] = {
|
|
42517
42517
|
name: n,
|
|
42518
|
-
lastModified:
|
|
42518
|
+
lastModified: d2,
|
|
42519
42519
|
type: t
|
|
42520
42520
|
};
|
|
42521
42521
|
}
|
|
@@ -42536,12 +42536,12 @@ var require_file = __commonJS({
|
|
|
42536
42536
|
constructor(blobLike, fileName, options = {}) {
|
|
42537
42537
|
const n = fileName;
|
|
42538
42538
|
const t = options.type;
|
|
42539
|
-
const
|
|
42539
|
+
const d2 = options.lastModified ?? Date.now();
|
|
42540
42540
|
this[kState] = {
|
|
42541
42541
|
blobLike,
|
|
42542
42542
|
name: n,
|
|
42543
42543
|
type: t,
|
|
42544
|
-
lastModified:
|
|
42544
|
+
lastModified: d2
|
|
42545
42545
|
};
|
|
42546
42546
|
}
|
|
42547
42547
|
stream(...args) {
|
|
@@ -44607,39 +44607,39 @@ var require_client = __commonJS({
|
|
|
44607
44607
|
return await WebAssembly.instantiate(mod, {
|
|
44608
44608
|
env: {
|
|
44609
44609
|
/* eslint-disable camelcase */
|
|
44610
|
-
wasm_on_url: (
|
|
44610
|
+
wasm_on_url: (p2, at, len) => {
|
|
44611
44611
|
return 0;
|
|
44612
44612
|
},
|
|
44613
|
-
wasm_on_status: (
|
|
44614
|
-
assert.strictEqual(currentParser.ptr,
|
|
44613
|
+
wasm_on_status: (p2, at, len) => {
|
|
44614
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44615
44615
|
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
44616
44616
|
return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
|
|
44617
44617
|
},
|
|
44618
|
-
wasm_on_message_begin: (
|
|
44619
|
-
assert.strictEqual(currentParser.ptr,
|
|
44618
|
+
wasm_on_message_begin: (p2) => {
|
|
44619
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44620
44620
|
return currentParser.onMessageBegin() || 0;
|
|
44621
44621
|
},
|
|
44622
|
-
wasm_on_header_field: (
|
|
44623
|
-
assert.strictEqual(currentParser.ptr,
|
|
44622
|
+
wasm_on_header_field: (p2, at, len) => {
|
|
44623
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44624
44624
|
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
44625
44625
|
return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
|
|
44626
44626
|
},
|
|
44627
|
-
wasm_on_header_value: (
|
|
44628
|
-
assert.strictEqual(currentParser.ptr,
|
|
44627
|
+
wasm_on_header_value: (p2, at, len) => {
|
|
44628
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44629
44629
|
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
44630
44630
|
return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
|
|
44631
44631
|
},
|
|
44632
|
-
wasm_on_headers_complete: (
|
|
44633
|
-
assert.strictEqual(currentParser.ptr,
|
|
44632
|
+
wasm_on_headers_complete: (p2, statusCode, upgrade, shouldKeepAlive) => {
|
|
44633
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44634
44634
|
return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0;
|
|
44635
44635
|
},
|
|
44636
|
-
wasm_on_body: (
|
|
44637
|
-
assert.strictEqual(currentParser.ptr,
|
|
44636
|
+
wasm_on_body: (p2, at, len) => {
|
|
44637
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44638
44638
|
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
44639
44639
|
return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0;
|
|
44640
44640
|
},
|
|
44641
|
-
wasm_on_message_complete: (
|
|
44642
|
-
assert.strictEqual(currentParser.ptr,
|
|
44641
|
+
wasm_on_message_complete: (p2) => {
|
|
44642
|
+
assert.strictEqual(currentParser.ptr, p2);
|
|
44643
44643
|
return currentParser.onMessageComplete() || 0;
|
|
44644
44644
|
}
|
|
44645
44645
|
/* eslint-enable camelcase */
|
|
@@ -46002,10 +46002,10 @@ var require_balanced_pool = __commonJS({
|
|
|
46002
46002
|
var kWeight = Symbol("kWeight");
|
|
46003
46003
|
var kMaxWeightPerServer = Symbol("kMaxWeightPerServer");
|
|
46004
46004
|
var kErrorPenalty = Symbol("kErrorPenalty");
|
|
46005
|
-
function getGreatestCommonDivisor(
|
|
46005
|
+
function getGreatestCommonDivisor(a, b2) {
|
|
46006
46006
|
if (b2 === 0)
|
|
46007
|
-
return
|
|
46008
|
-
return getGreatestCommonDivisor(b2,
|
|
46007
|
+
return a;
|
|
46008
|
+
return getGreatestCommonDivisor(b2, a % b2);
|
|
46009
46009
|
}
|
|
46010
46010
|
function defaultFactory(origin, opts) {
|
|
46011
46011
|
return new Pool(origin, opts);
|
|
@@ -46059,7 +46059,7 @@ var require_balanced_pool = __commonJS({
|
|
|
46059
46059
|
return this;
|
|
46060
46060
|
}
|
|
46061
46061
|
_updateBalancedPoolStats() {
|
|
46062
|
-
this[kGreatestCommonDivisor] = this[kClients].map((
|
|
46062
|
+
this[kGreatestCommonDivisor] = this[kClients].map((p2) => p2[kWeight]).reduce(getGreatestCommonDivisor, 0);
|
|
46063
46063
|
}
|
|
46064
46064
|
removeUpstream(upstream) {
|
|
46065
46065
|
const upstreamOrigin = parseOrigin(upstream).origin;
|
|
@@ -46070,7 +46070,7 @@ var require_balanced_pool = __commonJS({
|
|
|
46070
46070
|
return this;
|
|
46071
46071
|
}
|
|
46072
46072
|
get upstreams() {
|
|
46073
|
-
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);
|
|
46074
46074
|
}
|
|
46075
46075
|
[kGetDispatcher]() {
|
|
46076
46076
|
if (this[kClients].length === 0) {
|
|
@@ -46080,7 +46080,7 @@ var require_balanced_pool = __commonJS({
|
|
|
46080
46080
|
if (!dispatcher) {
|
|
46081
46081
|
return;
|
|
46082
46082
|
}
|
|
46083
|
-
const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((
|
|
46083
|
+
const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a, b2) => a && b2, true);
|
|
46084
46084
|
if (allClientsBusy) {
|
|
46085
46085
|
return;
|
|
46086
46086
|
}
|
|
@@ -48507,7 +48507,7 @@ var require_headers = __commonJS({
|
|
|
48507
48507
|
return this[kHeadersList][kHeadersSortedMap];
|
|
48508
48508
|
}
|
|
48509
48509
|
const headers = [];
|
|
48510
|
-
const names = [...this[kHeadersList]].sort((
|
|
48510
|
+
const names = [...this[kHeadersList]].sort((a, b2) => a[0] < b2[0] ? -1 : 1);
|
|
48511
48511
|
const cookies = this[kHeadersList].cookies;
|
|
48512
48512
|
for (const [name2, value] of names) {
|
|
48513
48513
|
if (name2 === "set-cookie") {
|
|
@@ -48885,12 +48885,12 @@ var require_response = __commonJS({
|
|
|
48885
48885
|
...state
|
|
48886
48886
|
};
|
|
48887
48887
|
return new Proxy(response, {
|
|
48888
|
-
get(target,
|
|
48889
|
-
return
|
|
48888
|
+
get(target, p2) {
|
|
48889
|
+
return p2 in state ? state[p2] : target[p2];
|
|
48890
48890
|
},
|
|
48891
|
-
set(target,
|
|
48892
|
-
assert(!(
|
|
48893
|
-
target[
|
|
48891
|
+
set(target, p2, value) {
|
|
48892
|
+
assert(!(p2 in state));
|
|
48893
|
+
target[p2] = value;
|
|
48894
48894
|
return true;
|
|
48895
48895
|
}
|
|
48896
48896
|
});
|
|
@@ -49740,18 +49740,18 @@ var require_fetch = __commonJS({
|
|
|
49740
49740
|
};
|
|
49741
49741
|
async function fetch(input, init = {}) {
|
|
49742
49742
|
webidl.argumentLengthCheck(arguments, 1, { header: "globalThis.fetch" });
|
|
49743
|
-
const
|
|
49743
|
+
const p2 = createDeferredPromise();
|
|
49744
49744
|
let requestObject;
|
|
49745
49745
|
try {
|
|
49746
49746
|
requestObject = new Request(input, init);
|
|
49747
49747
|
} catch (e) {
|
|
49748
|
-
|
|
49749
|
-
return
|
|
49748
|
+
p2.reject(e);
|
|
49749
|
+
return p2.promise;
|
|
49750
49750
|
}
|
|
49751
49751
|
const request2 = requestObject[kState];
|
|
49752
49752
|
if (requestObject.signal.aborted) {
|
|
49753
|
-
abortFetch(
|
|
49754
|
-
return
|
|
49753
|
+
abortFetch(p2, request2, null, requestObject.signal.reason);
|
|
49754
|
+
return p2.promise;
|
|
49755
49755
|
}
|
|
49756
49756
|
const globalObject = request2.client.globalObject;
|
|
49757
49757
|
if (globalObject?.constructor?.name === "ServiceWorkerGlobalScope") {
|
|
@@ -49765,7 +49765,7 @@ var require_fetch = __commonJS({
|
|
|
49765
49765
|
"abort",
|
|
49766
49766
|
() => {
|
|
49767
49767
|
locallyAborted = true;
|
|
49768
|
-
abortFetch(
|
|
49768
|
+
abortFetch(p2, request2, responseObject, requestObject.signal.reason);
|
|
49769
49769
|
if (controller != null) {
|
|
49770
49770
|
controller.abort();
|
|
49771
49771
|
}
|
|
@@ -49778,11 +49778,11 @@ var require_fetch = __commonJS({
|
|
|
49778
49778
|
return;
|
|
49779
49779
|
}
|
|
49780
49780
|
if (response.aborted) {
|
|
49781
|
-
abortFetch(
|
|
49781
|
+
abortFetch(p2, request2, responseObject, controller.serializedAbortReason);
|
|
49782
49782
|
return;
|
|
49783
49783
|
}
|
|
49784
49784
|
if (response.type === "error") {
|
|
49785
|
-
|
|
49785
|
+
p2.reject(
|
|
49786
49786
|
Object.assign(new TypeError("fetch failed"), { cause: response.error })
|
|
49787
49787
|
);
|
|
49788
49788
|
return;
|
|
@@ -49793,7 +49793,7 @@ var require_fetch = __commonJS({
|
|
|
49793
49793
|
responseObject[kHeaders][kHeadersList] = response.headersList;
|
|
49794
49794
|
responseObject[kHeaders][kGuard] = "immutable";
|
|
49795
49795
|
responseObject[kHeaders][kRealm] = relevantRealm;
|
|
49796
|
-
|
|
49796
|
+
p2.resolve(responseObject);
|
|
49797
49797
|
};
|
|
49798
49798
|
controller = fetching({
|
|
49799
49799
|
request: request2,
|
|
@@ -49802,7 +49802,7 @@ var require_fetch = __commonJS({
|
|
|
49802
49802
|
dispatcher: init.dispatcher ?? getGlobalDispatcher()
|
|
49803
49803
|
// undici
|
|
49804
49804
|
});
|
|
49805
|
-
return
|
|
49805
|
+
return p2.promise;
|
|
49806
49806
|
}
|
|
49807
49807
|
function finalizeAndReportTiming(response, initiatorType = "other") {
|
|
49808
49808
|
if (response.type === "error" && response.aborted) {
|
|
@@ -49841,11 +49841,11 @@ var require_fetch = __commonJS({
|
|
|
49841
49841
|
performance.markResourceTiming(timingInfo, originalURL, initiatorType, globalThis2, cacheState);
|
|
49842
49842
|
}
|
|
49843
49843
|
}
|
|
49844
|
-
function abortFetch(
|
|
49844
|
+
function abortFetch(p2, request2, responseObject, error) {
|
|
49845
49845
|
if (!error) {
|
|
49846
49846
|
error = new DOMException("The operation was aborted.", "AbortError");
|
|
49847
49847
|
}
|
|
49848
|
-
|
|
49848
|
+
p2.reject(error);
|
|
49849
49849
|
if (request2.body != null && isReadable(request2.body?.stream)) {
|
|
49850
49850
|
request2.body.stream.cancel(error).catch((err) => {
|
|
49851
49851
|
if (err.code === "ERR_INVALID_STATE") {
|
|
@@ -51174,25 +51174,25 @@ var require_util5 = __commonJS({
|
|
|
51174
51174
|
return new TextDecoder(encoding).decode(sliced);
|
|
51175
51175
|
}
|
|
51176
51176
|
function BOMSniffing(ioQueue) {
|
|
51177
|
-
const [
|
|
51178
|
-
if (
|
|
51177
|
+
const [a, b2, c2] = ioQueue;
|
|
51178
|
+
if (a === 239 && b2 === 187 && c2 === 191) {
|
|
51179
51179
|
return "UTF-8";
|
|
51180
|
-
} else if (
|
|
51180
|
+
} else if (a === 254 && b2 === 255) {
|
|
51181
51181
|
return "UTF-16BE";
|
|
51182
|
-
} else if (
|
|
51182
|
+
} else if (a === 255 && b2 === 254) {
|
|
51183
51183
|
return "UTF-16LE";
|
|
51184
51184
|
}
|
|
51185
51185
|
return null;
|
|
51186
51186
|
}
|
|
51187
51187
|
function combineByteSequences(sequences) {
|
|
51188
|
-
const size = sequences.reduce((
|
|
51189
|
-
return
|
|
51188
|
+
const size = sequences.reduce((a, b2) => {
|
|
51189
|
+
return a + b2.byteLength;
|
|
51190
51190
|
}, 0);
|
|
51191
51191
|
let offset = 0;
|
|
51192
|
-
return sequences.reduce((
|
|
51193
|
-
|
|
51192
|
+
return sequences.reduce((a, b2) => {
|
|
51193
|
+
a.set(b2, offset);
|
|
51194
51194
|
offset += b2.byteLength;
|
|
51195
|
-
return
|
|
51195
|
+
return a;
|
|
51196
51196
|
}, new Uint8Array(size));
|
|
51197
51197
|
}
|
|
51198
51198
|
module2.exports = {
|
|
@@ -52379,7 +52379,7 @@ var require_receiver = __commonJS({
|
|
|
52379
52379
|
* @param {Buffer} chunk
|
|
52380
52380
|
* @param {() => void} callback
|
|
52381
52381
|
*/
|
|
52382
|
-
_write(chunk,
|
|
52382
|
+
_write(chunk, _2, callback) {
|
|
52383
52383
|
this.#buffers.push(chunk);
|
|
52384
52384
|
this.#byteOffset += chunk.length;
|
|
52385
52385
|
this.run(callback);
|
|
@@ -52816,10 +52816,10 @@ var require_websocket = __commonJS({
|
|
|
52816
52816
|
if (typeof protocols === "string") {
|
|
52817
52817
|
protocols = [protocols];
|
|
52818
52818
|
}
|
|
52819
|
-
if (protocols.length !== new Set(protocols.map((
|
|
52819
|
+
if (protocols.length !== new Set(protocols.map((p2) => p2.toLowerCase())).size) {
|
|
52820
52820
|
throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
|
|
52821
52821
|
}
|
|
52822
|
-
if (protocols.length > 0 && !protocols.every((
|
|
52822
|
+
if (protocols.length > 0 && !protocols.every((p2) => isValidSubprotocol(p2))) {
|
|
52823
52823
|
throw new DOMException("Invalid Sec-WebSocket-Protocol value", "SyntaxError");
|
|
52824
52824
|
}
|
|
52825
52825
|
this[kWebSocketURL] = urlRecord;
|
|
@@ -53434,11 +53434,11 @@ var UI = class {
|
|
|
53434
53434
|
return void 0;
|
|
53435
53435
|
});
|
|
53436
53436
|
const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
|
|
53437
|
-
return widths.map((
|
|
53438
|
-
if (
|
|
53437
|
+
return widths.map((w2, i) => {
|
|
53438
|
+
if (w2 === void 0) {
|
|
53439
53439
|
return Math.max(unsetWidth, _minWidth(row[i]));
|
|
53440
53440
|
}
|
|
53441
|
-
return
|
|
53441
|
+
return w2;
|
|
53442
53442
|
});
|
|
53443
53443
|
}
|
|
53444
53444
|
};
|
|
@@ -53956,7 +53956,7 @@ var YargsParser = class {
|
|
|
53956
53956
|
}
|
|
53957
53957
|
if (configuration["strip-aliased"]) {
|
|
53958
53958
|
;
|
|
53959
|
-
[].concat(...Object.keys(aliases).map((
|
|
53959
|
+
[].concat(...Object.keys(aliases).map((k2) => aliases[k2])).forEach((alias) => {
|
|
53960
53960
|
if (configuration["camel-case-expansion"] && alias.includes("-")) {
|
|
53961
53961
|
delete argv[alias.split(".").map((prop) => camelCase(prop)).join(".")];
|
|
53962
53962
|
}
|
|
@@ -54057,9 +54057,9 @@ var YargsParser = class {
|
|
|
54057
54057
|
;
|
|
54058
54058
|
(flags.aliases[splitKey[0]] || []).forEach(function(x2) {
|
|
54059
54059
|
let keyProperties = x2.split(".");
|
|
54060
|
-
const
|
|
54061
|
-
|
|
54062
|
-
keyProperties = keyProperties.concat(
|
|
54060
|
+
const a = [].concat(splitKey);
|
|
54061
|
+
a.shift();
|
|
54062
|
+
keyProperties = keyProperties.concat(a);
|
|
54063
54063
|
if (!(flags.aliases[key] || []).includes(keyProperties.join("."))) {
|
|
54064
54064
|
setKey(argv, keyProperties, value);
|
|
54065
54065
|
}
|
|
@@ -54240,36 +54240,36 @@ var YargsParser = class {
|
|
|
54240
54240
|
});
|
|
54241
54241
|
}
|
|
54242
54242
|
function hasKey(obj, keys) {
|
|
54243
|
-
let
|
|
54243
|
+
let o = obj;
|
|
54244
54244
|
if (!configuration["dot-notation"])
|
|
54245
54245
|
keys = [keys.join(".")];
|
|
54246
54246
|
keys.slice(0, -1).forEach(function(key2) {
|
|
54247
|
-
|
|
54247
|
+
o = o[key2] || {};
|
|
54248
54248
|
});
|
|
54249
54249
|
const key = keys[keys.length - 1];
|
|
54250
|
-
if (typeof
|
|
54250
|
+
if (typeof o !== "object")
|
|
54251
54251
|
return false;
|
|
54252
54252
|
else
|
|
54253
|
-
return key in
|
|
54253
|
+
return key in o;
|
|
54254
54254
|
}
|
|
54255
54255
|
function setKey(obj, keys, value) {
|
|
54256
|
-
let
|
|
54256
|
+
let o = obj;
|
|
54257
54257
|
if (!configuration["dot-notation"])
|
|
54258
54258
|
keys = [keys.join(".")];
|
|
54259
54259
|
keys.slice(0, -1).forEach(function(key2) {
|
|
54260
54260
|
key2 = sanitizeKey(key2);
|
|
54261
|
-
if (typeof
|
|
54262
|
-
|
|
54261
|
+
if (typeof o === "object" && o[key2] === void 0) {
|
|
54262
|
+
o[key2] = {};
|
|
54263
54263
|
}
|
|
54264
|
-
if (typeof
|
|
54265
|
-
if (Array.isArray(
|
|
54266
|
-
|
|
54264
|
+
if (typeof o[key2] !== "object" || Array.isArray(o[key2])) {
|
|
54265
|
+
if (Array.isArray(o[key2])) {
|
|
54266
|
+
o[key2].push({});
|
|
54267
54267
|
} else {
|
|
54268
|
-
|
|
54268
|
+
o[key2] = [o[key2], {}];
|
|
54269
54269
|
}
|
|
54270
|
-
|
|
54270
|
+
o = o[key2][o[key2].length - 1];
|
|
54271
54271
|
} else {
|
|
54272
|
-
|
|
54272
|
+
o = o[key2];
|
|
54273
54273
|
}
|
|
54274
54274
|
});
|
|
54275
54275
|
const key = sanitizeKey(keys[keys.length - 1]);
|
|
@@ -54278,26 +54278,26 @@ var YargsParser = class {
|
|
|
54278
54278
|
let duplicate = configuration["duplicate-arguments-array"];
|
|
54279
54279
|
if (!duplicate && checkAllAliases(key, flags.nargs)) {
|
|
54280
54280
|
duplicate = true;
|
|
54281
|
-
if (!isUndefined(
|
|
54282
|
-
|
|
54281
|
+
if (!isUndefined(o[key]) && flags.nargs[key] === 1 || Array.isArray(o[key]) && o[key].length === flags.nargs[key]) {
|
|
54282
|
+
o[key] = void 0;
|
|
54283
54283
|
}
|
|
54284
54284
|
}
|
|
54285
54285
|
if (value === increment()) {
|
|
54286
|
-
|
|
54287
|
-
} else if (Array.isArray(
|
|
54286
|
+
o[key] = increment(o[key]);
|
|
54287
|
+
} else if (Array.isArray(o[key])) {
|
|
54288
54288
|
if (duplicate && isTypeArray && isValueArray) {
|
|
54289
|
-
|
|
54289
|
+
o[key] = configuration["flatten-duplicate-arrays"] ? o[key].concat(value) : (Array.isArray(o[key][0]) ? o[key] : [o[key]]).concat([value]);
|
|
54290
54290
|
} else if (!duplicate && Boolean(isTypeArray) === Boolean(isValueArray)) {
|
|
54291
|
-
|
|
54291
|
+
o[key] = value;
|
|
54292
54292
|
} else {
|
|
54293
|
-
|
|
54293
|
+
o[key] = o[key].concat([value]);
|
|
54294
54294
|
}
|
|
54295
|
-
} else if (
|
|
54296
|
-
|
|
54297
|
-
} else if (duplicate && !(
|
|
54298
|
-
|
|
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];
|
|
54299
54299
|
} else {
|
|
54300
|
-
|
|
54300
|
+
o[key] = value;
|
|
54301
54301
|
}
|
|
54302
54302
|
}
|
|
54303
54303
|
function extendAliases(...args2) {
|
|
@@ -54325,8 +54325,8 @@ var YargsParser = class {
|
|
|
54325
54325
|
}
|
|
54326
54326
|
});
|
|
54327
54327
|
flags.aliases[key].forEach(function(x2) {
|
|
54328
|
-
flags.aliases[x2] = [key].concat(flags.aliases[key].filter(function(
|
|
54329
|
-
return x2 !==
|
|
54328
|
+
flags.aliases[x2] = [key].concat(flags.aliases[key].filter(function(y2) {
|
|
54329
|
+
return x2 !== y2;
|
|
54330
54330
|
}));
|
|
54331
54331
|
});
|
|
54332
54332
|
});
|
|
@@ -54340,7 +54340,7 @@ var YargsParser = class {
|
|
|
54340
54340
|
}
|
|
54341
54341
|
function hasAnyFlag(key) {
|
|
54342
54342
|
const flagsKeys = Object.keys(flags);
|
|
54343
|
-
const toCheck = [].concat(flagsKeys.map((
|
|
54343
|
+
const toCheck = [].concat(flagsKeys.map((k2) => flags[k2]));
|
|
54344
54344
|
return toCheck.some(function(flag) {
|
|
54345
54345
|
return Array.isArray(flag) ? flag.includes(key) : flag[key];
|
|
54346
54346
|
});
|
|
@@ -55049,7 +55049,7 @@ var CommandInstance = class {
|
|
|
55049
55049
|
opts.recurse = false;
|
|
55050
55050
|
if (!Array.isArray(opts.extensions))
|
|
55051
55051
|
opts.extensions = ["js"];
|
|
55052
|
-
const parentVisit = typeof opts.visit === "function" ? opts.visit : (
|
|
55052
|
+
const parentVisit = typeof opts.visit === "function" ? opts.visit : (o) => o;
|
|
55053
55053
|
opts.visit = (obj, joined, filename) => {
|
|
55054
55054
|
const visited = parentVisit(obj, joined, filename);
|
|
55055
55055
|
if (visited) {
|
|
@@ -55252,7 +55252,7 @@ var CommandInstance = class {
|
|
|
55252
55252
|
const maybe = optional.shift();
|
|
55253
55253
|
this.populatePositional(maybe, argv, positionalMap);
|
|
55254
55254
|
}
|
|
55255
|
-
argv._ = context.commands.concat(argv._.map((
|
|
55255
|
+
argv._ = context.commands.concat(argv._.map((a) => "" + a));
|
|
55256
55256
|
this.postProcessPositionals(argv, positionalMap, this.cmdToParseOptions(commandHandler.original), yargs);
|
|
55257
55257
|
return positionalMap;
|
|
55258
55258
|
}
|
|
@@ -55273,18 +55273,18 @@ var CommandInstance = class {
|
|
|
55273
55273
|
demand: {}
|
|
55274
55274
|
};
|
|
55275
55275
|
const parsed = parseCommand(cmdString);
|
|
55276
|
-
parsed.demanded.forEach((
|
|
55277
|
-
const [cmd, ...aliases] =
|
|
55278
|
-
if (
|
|
55276
|
+
parsed.demanded.forEach((d2) => {
|
|
55277
|
+
const [cmd, ...aliases] = d2.cmd;
|
|
55278
|
+
if (d2.variadic) {
|
|
55279
55279
|
parseOptions.array.push(cmd);
|
|
55280
55280
|
parseOptions.default[cmd] = [];
|
|
55281
55281
|
}
|
|
55282
55282
|
parseOptions.alias[cmd] = aliases;
|
|
55283
55283
|
parseOptions.demand[cmd] = true;
|
|
55284
55284
|
});
|
|
55285
|
-
parsed.optional.forEach((
|
|
55286
|
-
const [cmd, ...aliases] =
|
|
55287
|
-
if (
|
|
55285
|
+
parsed.optional.forEach((o) => {
|
|
55286
|
+
const [cmd, ...aliases] = o.cmd;
|
|
55287
|
+
if (o.variadic) {
|
|
55288
55288
|
parseOptions.array.push(cmd);
|
|
55289
55289
|
parseOptions.default[cmd] = [];
|
|
55290
55290
|
}
|
|
@@ -55453,8 +55453,8 @@ function usage(yargs, shim3) {
|
|
|
55453
55453
|
const __ = shim3.y18n.__;
|
|
55454
55454
|
const self = {};
|
|
55455
55455
|
const fails = [];
|
|
55456
|
-
self.failFn = function failFn(
|
|
55457
|
-
fails.push(
|
|
55456
|
+
self.failFn = function failFn(f) {
|
|
55457
|
+
fails.push(f);
|
|
55458
55458
|
};
|
|
55459
55459
|
let failMessage = null;
|
|
55460
55460
|
let globalFailMessage = null;
|
|
@@ -55550,12 +55550,12 @@ function usage(yargs, shim3) {
|
|
|
55550
55550
|
let descriptions = {};
|
|
55551
55551
|
self.describe = function describe(keyOrKeys, desc) {
|
|
55552
55552
|
if (Array.isArray(keyOrKeys)) {
|
|
55553
|
-
keyOrKeys.forEach((
|
|
55554
|
-
self.describe(
|
|
55553
|
+
keyOrKeys.forEach((k2) => {
|
|
55554
|
+
self.describe(k2, desc);
|
|
55555
55555
|
});
|
|
55556
55556
|
} else if (typeof keyOrKeys === "object") {
|
|
55557
|
-
Object.keys(keyOrKeys).forEach((
|
|
55558
|
-
self.describe(
|
|
55557
|
+
Object.keys(keyOrKeys).forEach((k2) => {
|
|
55558
|
+
self.describe(k2, keyOrKeys[k2]);
|
|
55559
55559
|
});
|
|
55560
55560
|
} else {
|
|
55561
55561
|
descriptions[keyOrKeys] = desc;
|
|
@@ -55620,15 +55620,15 @@ function usage(yargs, shim3) {
|
|
|
55620
55620
|
});
|
|
55621
55621
|
ui2.div();
|
|
55622
55622
|
} else if (commands.length) {
|
|
55623
|
-
let
|
|
55623
|
+
let u = null;
|
|
55624
55624
|
if (demandedCommands._) {
|
|
55625
|
-
|
|
55625
|
+
u = `${base$0} <${__("command")}>
|
|
55626
55626
|
`;
|
|
55627
55627
|
} else {
|
|
55628
|
-
|
|
55628
|
+
u = `${base$0} [${__("command")}]
|
|
55629
55629
|
`;
|
|
55630
55630
|
}
|
|
55631
|
-
ui2.div(`${
|
|
55631
|
+
ui2.div(`${u}`);
|
|
55632
55632
|
}
|
|
55633
55633
|
}
|
|
55634
55634
|
if (commands.length > 1 || commands.length === 1 && !commands[0][2]) {
|
|
@@ -55636,7 +55636,7 @@ function usage(yargs, shim3) {
|
|
|
55636
55636
|
const context = yargs.getInternalMethods().getContext();
|
|
55637
55637
|
const parentCommands = context.commands.length ? `${context.commands.join(" ")} ` : "";
|
|
55638
55638
|
if (yargs.getInternalMethods().getParserConfiguration()["sort-commands"] === true) {
|
|
55639
|
-
commands = commands.sort((
|
|
55639
|
+
commands = commands.sort((a, b2) => a[0].localeCompare(b2[0]));
|
|
55640
55640
|
}
|
|
55641
55641
|
const prefix = base$0 ? `${base$0} ` : "";
|
|
55642
55642
|
commands.forEach((command2) => {
|
|
@@ -55837,7 +55837,7 @@ function usage(yargs, shim3) {
|
|
|
55837
55837
|
});
|
|
55838
55838
|
keys.forEach((key) => {
|
|
55839
55839
|
toCheck = [key].concat(aliases[key]);
|
|
55840
|
-
if (!toCheck.some((
|
|
55840
|
+
if (!toCheck.some((k2) => groupedKeys.indexOf(k2) !== -1)) {
|
|
55841
55841
|
groups[defaultGroup].push(key);
|
|
55842
55842
|
}
|
|
55843
55843
|
});
|
|
@@ -55917,7 +55917,7 @@ function usage(yargs, shim3) {
|
|
|
55917
55917
|
epilogs = [];
|
|
55918
55918
|
examples = [];
|
|
55919
55919
|
commands = [];
|
|
55920
|
-
descriptions = objFilter(descriptions, (
|
|
55920
|
+
descriptions = objFilter(descriptions, (k2) => !localLookup[k2]);
|
|
55921
55921
|
return self;
|
|
55922
55922
|
};
|
|
55923
55923
|
const frozens = [];
|
|
@@ -56043,9 +56043,9 @@ var Completion = class {
|
|
|
56043
56043
|
const builder = handlers[args[i]].builder;
|
|
56044
56044
|
if (isCommandBuilderCallback(builder)) {
|
|
56045
56045
|
this.indexAfterLastReset = i + 1;
|
|
56046
|
-
const
|
|
56047
|
-
builder(
|
|
56048
|
-
return
|
|
56046
|
+
const y2 = this.yargs.getInternalMethods().reset();
|
|
56047
|
+
builder(y2, true);
|
|
56048
|
+
return y2.argv;
|
|
56049
56049
|
}
|
|
56050
56050
|
}
|
|
56051
56051
|
}
|
|
@@ -56235,26 +56235,26 @@ function isFallbackCompletionFunction(completionFunction) {
|
|
|
56235
56235
|
}
|
|
56236
56236
|
|
|
56237
56237
|
// ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/utils/levenshtein.js
|
|
56238
|
-
function levenshtein(
|
|
56239
|
-
if (
|
|
56238
|
+
function levenshtein(a, b2) {
|
|
56239
|
+
if (a.length === 0)
|
|
56240
56240
|
return b2.length;
|
|
56241
56241
|
if (b2.length === 0)
|
|
56242
|
-
return
|
|
56242
|
+
return a.length;
|
|
56243
56243
|
const matrix = [];
|
|
56244
56244
|
let i;
|
|
56245
56245
|
for (i = 0; i <= b2.length; i++) {
|
|
56246
56246
|
matrix[i] = [i];
|
|
56247
56247
|
}
|
|
56248
56248
|
let j2;
|
|
56249
|
-
for (j2 = 0; j2 <=
|
|
56249
|
+
for (j2 = 0; j2 <= a.length; j2++) {
|
|
56250
56250
|
matrix[0][j2] = j2;
|
|
56251
56251
|
}
|
|
56252
56252
|
for (i = 1; i <= b2.length; i++) {
|
|
56253
|
-
for (j2 = 1; j2 <=
|
|
56254
|
-
if (b2.charAt(i - 1) ===
|
|
56253
|
+
for (j2 = 1; j2 <= a.length; j2++) {
|
|
56254
|
+
if (b2.charAt(i - 1) === a.charAt(j2 - 1)) {
|
|
56255
56255
|
matrix[i][j2] = matrix[i - 1][j2 - 1];
|
|
56256
56256
|
} else {
|
|
56257
|
-
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)) {
|
|
56258
56258
|
matrix[i][j2] = matrix[i - 2][j2 - 2] + 1;
|
|
56259
56259
|
} else {
|
|
56260
56260
|
matrix[i][j2] = Math.min(matrix[i - 1][j2 - 1] + 1, Math.min(matrix[i][j2 - 1] + 1, matrix[i - 1][j2] + 1));
|
|
@@ -56262,7 +56262,7 @@ function levenshtein(a2, b2) {
|
|
|
56262
56262
|
}
|
|
56263
56263
|
}
|
|
56264
56264
|
}
|
|
56265
|
-
return matrix[b2.length][
|
|
56265
|
+
return matrix[b2.length][a.length];
|
|
56266
56266
|
}
|
|
56267
56267
|
|
|
56268
56268
|
// ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/validation.js
|
|
@@ -56374,7 +56374,7 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56374
56374
|
return false;
|
|
56375
56375
|
}
|
|
56376
56376
|
const newAliases = yargs.parsed.newAliases;
|
|
56377
|
-
return [key, ...aliases[key]].some((
|
|
56377
|
+
return [key, ...aliases[key]].some((a) => !Object.prototype.hasOwnProperty.call(newAliases, a) || !newAliases[key]);
|
|
56378
56378
|
};
|
|
56379
56379
|
self.limitedChoices = function limitedChoices(argv) {
|
|
56380
56380
|
const options = yargs.getOptions();
|
|
@@ -56404,8 +56404,8 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56404
56404
|
self.implies = function implies(key, value) {
|
|
56405
56405
|
argsert("<string|object> [array|number|string]", [key, value], arguments.length);
|
|
56406
56406
|
if (typeof key === "object") {
|
|
56407
|
-
Object.keys(key).forEach((
|
|
56408
|
-
self.implies(
|
|
56407
|
+
Object.keys(key).forEach((k2) => {
|
|
56408
|
+
self.implies(k2, key[k2]);
|
|
56409
56409
|
});
|
|
56410
56410
|
} else {
|
|
56411
56411
|
yargs.global(key);
|
|
@@ -56463,8 +56463,8 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56463
56463
|
self.conflicts = function conflicts(key, value) {
|
|
56464
56464
|
argsert("<string|object> [array|string]", [key, value], arguments.length);
|
|
56465
56465
|
if (typeof key === "object") {
|
|
56466
|
-
Object.keys(key).forEach((
|
|
56467
|
-
self.conflicts(
|
|
56466
|
+
Object.keys(key).forEach((k2) => {
|
|
56467
|
+
self.conflicts(k2, key[k2]);
|
|
56468
56468
|
});
|
|
56469
56469
|
} else {
|
|
56470
56470
|
yargs.global(key);
|
|
@@ -56501,13 +56501,13 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56501
56501
|
};
|
|
56502
56502
|
self.recommendCommands = function recommendCommands(cmd, potentialCommands) {
|
|
56503
56503
|
const threshold = 3;
|
|
56504
|
-
potentialCommands = potentialCommands.sort((
|
|
56504
|
+
potentialCommands = potentialCommands.sort((a, b2) => b2.length - a.length);
|
|
56505
56505
|
let recommended = null;
|
|
56506
56506
|
let bestDistance = Infinity;
|
|
56507
56507
|
for (let i = 0, candidate; (candidate = potentialCommands[i]) !== void 0; i++) {
|
|
56508
|
-
const
|
|
56509
|
-
if (
|
|
56510
|
-
bestDistance =
|
|
56508
|
+
const d2 = levenshtein(cmd, candidate);
|
|
56509
|
+
if (d2 <= threshold && d2 < bestDistance) {
|
|
56510
|
+
bestDistance = d2;
|
|
56511
56511
|
recommended = candidate;
|
|
56512
56512
|
}
|
|
56513
56513
|
}
|
|
@@ -56515,8 +56515,8 @@ ${customMsgs.join("\n")}` : "";
|
|
|
56515
56515
|
usage2.fail(__("Did you mean %s?", recommended));
|
|
56516
56516
|
};
|
|
56517
56517
|
self.reset = function reset(localLookup) {
|
|
56518
|
-
implied = objFilter(implied, (
|
|
56519
|
-
conflicting = objFilter(conflicting, (
|
|
56518
|
+
implied = objFilter(implied, (k2) => !localLookup[k2]);
|
|
56519
|
+
conflicting = objFilter(conflicting, (k2) => !localLookup[k2]);
|
|
56520
56520
|
return self;
|
|
56521
56521
|
};
|
|
56522
56522
|
const frozens = [];
|
|
@@ -56588,21 +56588,21 @@ function mergeDeep(config1, config22) {
|
|
|
56588
56588
|
}
|
|
56589
56589
|
|
|
56590
56590
|
// ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/build/lib/yargs-factory.js
|
|
56591
|
-
var __classPrivateFieldSet = function(receiver, state, value, kind,
|
|
56591
|
+
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
56592
56592
|
if (kind === "m")
|
|
56593
56593
|
throw new TypeError("Private method is not writable");
|
|
56594
|
-
if (kind === "a" && !
|
|
56594
|
+
if (kind === "a" && !f)
|
|
56595
56595
|
throw new TypeError("Private accessor was defined without a setter");
|
|
56596
|
-
if (typeof state === "function" ? receiver !== state || !
|
|
56596
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
56597
56597
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
56598
|
-
return kind === "a" ?
|
|
56598
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
56599
56599
|
};
|
|
56600
|
-
var __classPrivateFieldGet = function(receiver, state, kind,
|
|
56601
|
-
if (kind === "a" && !
|
|
56600
|
+
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
56601
|
+
if (kind === "a" && !f)
|
|
56602
56602
|
throw new TypeError("Private accessor was defined without a getter");
|
|
56603
|
-
if (typeof state === "function" ? receiver !== state || !
|
|
56603
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
56604
56604
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
56605
|
-
return kind === "m" ?
|
|
56605
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
56606
56606
|
};
|
|
56607
56607
|
var _YargsInstance_command;
|
|
56608
56608
|
var _YargsInstance_cwd;
|
|
@@ -56789,14 +56789,14 @@ var YargsInstance = class {
|
|
|
56789
56789
|
this[kTrackManuallySetKeys](keys);
|
|
56790
56790
|
return this;
|
|
56791
56791
|
}
|
|
56792
|
-
check(
|
|
56793
|
-
argsert("<function> [boolean]", [
|
|
56792
|
+
check(f, global2) {
|
|
56793
|
+
argsert("<function> [boolean]", [f, global2], arguments.length);
|
|
56794
56794
|
this.middleware((argv, _yargs) => {
|
|
56795
56795
|
return maybeAsyncResult(() => {
|
|
56796
|
-
return
|
|
56796
|
+
return f(argv, _yargs.getOptions());
|
|
56797
56797
|
}, (result) => {
|
|
56798
56798
|
if (!result) {
|
|
56799
|
-
__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()));
|
|
56800
56800
|
} else if (typeof result === "string" || result instanceof Error) {
|
|
56801
56801
|
__classPrivateFieldGet(this, _YargsInstance_usage, "f").fail(result.toString(), result);
|
|
56802
56802
|
}
|
|
@@ -56874,8 +56874,8 @@ var YargsInstance = class {
|
|
|
56874
56874
|
msg = void 0;
|
|
56875
56875
|
}
|
|
56876
56876
|
this.describe(key, msg || __classPrivateFieldGet(this, _YargsInstance_usage, "f").deferY18nLookup("Path to JSON config file"));
|
|
56877
|
-
(Array.isArray(key) ? key : [key]).forEach((
|
|
56878
|
-
__classPrivateFieldGet(this, _YargsInstance_options, "f").config[
|
|
56877
|
+
(Array.isArray(key) ? key : [key]).forEach((k2) => {
|
|
56878
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").config[k2] = parseFn || true;
|
|
56879
56879
|
});
|
|
56880
56880
|
return this;
|
|
56881
56881
|
}
|
|
@@ -57032,12 +57032,12 @@ var YargsInstance = class {
|
|
|
57032
57032
|
__classPrivateFieldSet(this, _YargsInstance_exitProcess, enabled, "f");
|
|
57033
57033
|
return this;
|
|
57034
57034
|
}
|
|
57035
|
-
fail(
|
|
57036
|
-
argsert("<function|boolean>", [
|
|
57037
|
-
if (typeof
|
|
57035
|
+
fail(f) {
|
|
57036
|
+
argsert("<function|boolean>", [f], arguments.length);
|
|
57037
|
+
if (typeof f === "boolean" && f !== false) {
|
|
57038
57038
|
throw new YError("Invalid first argument. Expected function or boolean 'false'");
|
|
57039
57039
|
}
|
|
57040
|
-
__classPrivateFieldGet(this, _YargsInstance_usage, "f").failFn(
|
|
57040
|
+
__classPrivateFieldGet(this, _YargsInstance_usage, "f").failFn(f);
|
|
57041
57041
|
return this;
|
|
57042
57042
|
}
|
|
57043
57043
|
getAliases() {
|
|
@@ -57180,8 +57180,8 @@ var YargsInstance = class {
|
|
|
57180
57180
|
option(key, opt) {
|
|
57181
57181
|
argsert("<string|object> [object]", [key, opt], arguments.length);
|
|
57182
57182
|
if (typeof key === "object") {
|
|
57183
|
-
Object.keys(key).forEach((
|
|
57184
|
-
this.options(
|
|
57183
|
+
Object.keys(key).forEach((k2) => {
|
|
57184
|
+
this.options(k2, key[k2]);
|
|
57185
57185
|
});
|
|
57186
57186
|
} else {
|
|
57187
57187
|
if (typeof opt !== "object") {
|
|
@@ -57373,10 +57373,10 @@ var YargsInstance = class {
|
|
|
57373
57373
|
"description",
|
|
57374
57374
|
"alias"
|
|
57375
57375
|
];
|
|
57376
|
-
opts = objFilter(opts, (
|
|
57377
|
-
if (
|
|
57376
|
+
opts = objFilter(opts, (k2, v2) => {
|
|
57377
|
+
if (k2 === "type" && !["string", "number", "boolean"].includes(v2))
|
|
57378
57378
|
return false;
|
|
57379
|
-
return supportedOpts.includes(
|
|
57379
|
+
return supportedOpts.includes(k2);
|
|
57380
57380
|
});
|
|
57381
57381
|
const fullCommand = __classPrivateFieldGet(this, _YargsInstance_context, "f").fullCommands[__classPrivateFieldGet(this, _YargsInstance_context, "f").fullCommands.length - 1];
|
|
57382
57382
|
const parseOptions = fullCommand ? __classPrivateFieldGet(this, _YargsInstance_command, "f").cmdToParseOptions(fullCommand) : {
|
|
@@ -57711,12 +57711,12 @@ var YargsInstance = class {
|
|
|
57711
57711
|
}
|
|
57712
57712
|
[kPopulateParserHintDictionary](builder, type, key, value, singleKeyHandler) {
|
|
57713
57713
|
if (Array.isArray(key)) {
|
|
57714
|
-
key.forEach((
|
|
57715
|
-
builder(
|
|
57714
|
+
key.forEach((k2) => {
|
|
57715
|
+
builder(k2, value);
|
|
57716
57716
|
});
|
|
57717
57717
|
} else if (((key2) => typeof key2 === "object")(key)) {
|
|
57718
|
-
for (const
|
|
57719
|
-
builder(
|
|
57718
|
+
for (const k2 of objectKeys(key)) {
|
|
57719
|
+
builder(k2, key[k2]);
|
|
57720
57720
|
}
|
|
57721
57721
|
} else {
|
|
57722
57722
|
singleKeyHandler(type, this[kSanitizeKey](key), value);
|
|
@@ -57860,8 +57860,8 @@ var YargsInstance = class {
|
|
|
57860
57860
|
const localLookup = {};
|
|
57861
57861
|
tmpOptions.local.forEach((l2) => {
|
|
57862
57862
|
localLookup[l2] = true;
|
|
57863
|
-
(aliases[l2] || []).forEach((
|
|
57864
|
-
localLookup[
|
|
57863
|
+
(aliases[l2] || []).forEach((a) => {
|
|
57864
|
+
localLookup[a] = true;
|
|
57865
57865
|
});
|
|
57866
57866
|
});
|
|
57867
57867
|
Object.assign(__classPrivateFieldGet(this, _YargsInstance_preservedGroups, "f"), Object.keys(__classPrivateFieldGet(this, _YargsInstance_groups, "f")).reduce((acc, groupName) => {
|
|
@@ -57894,11 +57894,11 @@ var YargsInstance = class {
|
|
|
57894
57894
|
"demandedCommands",
|
|
57895
57895
|
"deprecatedOptions"
|
|
57896
57896
|
];
|
|
57897
|
-
arrayOptions.forEach((
|
|
57898
|
-
tmpOptions[
|
|
57897
|
+
arrayOptions.forEach((k2) => {
|
|
57898
|
+
tmpOptions[k2] = (__classPrivateFieldGet(this, _YargsInstance_options, "f")[k2] || []).filter((k3) => !localLookup[k3]);
|
|
57899
57899
|
});
|
|
57900
|
-
objectOptions.forEach((
|
|
57901
|
-
tmpOptions[
|
|
57900
|
+
objectOptions.forEach((k2) => {
|
|
57901
|
+
tmpOptions[k2] = objFilter(__classPrivateFieldGet(this, _YargsInstance_options, "f")[k2], (k3) => !localLookup[k3]);
|
|
57902
57902
|
});
|
|
57903
57903
|
tmpOptions.envPrefix = __classPrivateFieldGet(this, _YargsInstance_options, "f").envPrefix;
|
|
57904
57904
|
__classPrivateFieldSet(this, _YargsInstance_options, tmpOptions, "f");
|
|
@@ -57953,7 +57953,7 @@ var YargsInstance = class {
|
|
|
57953
57953
|
return this[kPostProcess](argv, populateDoubleDash, !!calledFromCommand, false);
|
|
57954
57954
|
}
|
|
57955
57955
|
if (__classPrivateFieldGet(this, _YargsInstance_helpOpt, "f")) {
|
|
57956
|
-
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);
|
|
57957
57957
|
if (helpCmds.includes("" + argv._[argv._.length - 1])) {
|
|
57958
57958
|
argv._.pop();
|
|
57959
57959
|
helpOptSet = true;
|
|
@@ -58076,14 +58076,14 @@ var YargsInstance = class {
|
|
|
58076
58076
|
if (typeof keys === "string") {
|
|
58077
58077
|
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[keys] = true;
|
|
58078
58078
|
} else {
|
|
58079
|
-
for (const
|
|
58080
|
-
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[
|
|
58079
|
+
for (const k2 of keys) {
|
|
58080
|
+
__classPrivateFieldGet(this, _YargsInstance_options, "f").key[k2] = true;
|
|
58081
58081
|
}
|
|
58082
58082
|
}
|
|
58083
58083
|
}
|
|
58084
58084
|
};
|
|
58085
|
-
function isYargsInstance(
|
|
58086
|
-
return !!
|
|
58085
|
+
function isYargsInstance(y2) {
|
|
58086
|
+
return !!y2 && typeof y2.getInternalMethods === "function";
|
|
58087
58087
|
}
|
|
58088
58088
|
|
|
58089
58089
|
// ../../node_modules/.pnpm/yargs@17.7.1/node_modules/yargs/index.mjs
|
|
@@ -58091,7 +58091,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
58091
58091
|
var yargs_default = Yargs;
|
|
58092
58092
|
|
|
58093
58093
|
// package.json
|
|
58094
|
-
var version = "0.0.0-
|
|
58094
|
+
var version = "0.0.0-b5e62b93";
|
|
58095
58095
|
var devDependencies = {
|
|
58096
58096
|
"@babel/parser": "^7.21.3",
|
|
58097
58097
|
"@babel/types": "^7.21.4",
|
|
@@ -58111,12 +58111,14 @@ var devDependencies = {
|
|
|
58111
58111
|
"@types/yargs": "^17.0.22",
|
|
58112
58112
|
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
58113
58113
|
"@typescript-eslint/parser": "^5.55.0",
|
|
58114
|
+
"ansi-escapes": "^6.2.0",
|
|
58114
58115
|
chalk: "^5.2.0",
|
|
58115
58116
|
"command-exists": "^1.2.9",
|
|
58116
58117
|
"cross-spawn": "^7.0.3",
|
|
58117
58118
|
dns2: "^2.1.0",
|
|
58118
58119
|
esbuild: "^0.17.12",
|
|
58119
58120
|
execa: "^7.1.1",
|
|
58121
|
+
glob: "^10.3.3",
|
|
58120
58122
|
haikunator: "^2.1.2",
|
|
58121
58123
|
"log-update": "^5.0.1",
|
|
58122
58124
|
open: "^8.4.0",
|
|
@@ -58743,6 +58745,7 @@ var C3_DEFAULTS = {
|
|
|
58743
58745
|
};
|
|
58744
58746
|
var WRANGLER_DEFAULTS = {
|
|
58745
58747
|
...C3_DEFAULTS,
|
|
58748
|
+
type: "hello-world",
|
|
58746
58749
|
deploy: false
|
|
58747
58750
|
};
|
|
58748
58751
|
|
|
@@ -58762,8 +58765,8 @@ var import_node_readline = __toESM(require("node:readline"), 1);
|
|
|
58762
58765
|
var import_node_tty2 = require("node:tty");
|
|
58763
58766
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
58764
58767
|
function z({ onlyFirst: t = false } = {}) {
|
|
58765
|
-
const
|
|
58766
|
-
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");
|
|
58767
58770
|
}
|
|
58768
58771
|
function $(t) {
|
|
58769
58772
|
if (typeof t != "string")
|
|
@@ -58777,44 +58780,44 @@ var G = { get exports() {
|
|
|
58777
58780
|
m = t;
|
|
58778
58781
|
} };
|
|
58779
58782
|
(function(t) {
|
|
58780
|
-
var
|
|
58781
|
-
t.exports =
|
|
58782
|
-
var s = e.charCodeAt(0), C = e.length == 2 ? e.charCodeAt(1) : 0,
|
|
58783
|
-
return 55296 <= s && s <= 56319 && 56320 <= C && C <= 57343 && (s &= 1023, C &= 1023,
|
|
58784
|
-
},
|
|
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) {
|
|
58785
58788
|
var s = this.eastAsianWidth(e);
|
|
58786
58789
|
return s == "F" || s == "W" || s == "A" ? 2 : 1;
|
|
58787
58790
|
};
|
|
58788
|
-
function
|
|
58791
|
+
function F(e) {
|
|
58789
58792
|
return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
|
|
58790
58793
|
}
|
|
58791
|
-
|
|
58792
|
-
for (var s =
|
|
58793
|
-
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]);
|
|
58794
58797
|
return C;
|
|
58795
|
-
},
|
|
58796
|
-
textLen =
|
|
58797
|
-
for (var
|
|
58798
|
-
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);
|
|
58799
58802
|
if (i >= s - (n == 2 ? 1 : 0))
|
|
58800
58803
|
if (i + n <= C)
|
|
58801
|
-
|
|
58804
|
+
D += a;
|
|
58802
58805
|
else
|
|
58803
58806
|
break;
|
|
58804
58807
|
i += n;
|
|
58805
58808
|
}
|
|
58806
|
-
return
|
|
58809
|
+
return D;
|
|
58807
58810
|
};
|
|
58808
58811
|
})(G);
|
|
58809
58812
|
var K = m;
|
|
58810
58813
|
var Y = function() {
|
|
58811
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;
|
|
58812
58815
|
};
|
|
58813
|
-
function c(t,
|
|
58814
|
-
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))
|
|
58815
58818
|
return 0;
|
|
58816
58819
|
t = t.replace(Y(), " ");
|
|
58817
|
-
const
|
|
58820
|
+
const F = u.ambiguousIsNarrow ? 1 : 2;
|
|
58818
58821
|
let e = 0;
|
|
58819
58822
|
for (const s of t) {
|
|
58820
58823
|
const C = s.codePointAt(0);
|
|
@@ -58826,7 +58829,7 @@ function c(t, u2 = {}) {
|
|
|
58826
58829
|
e += 2;
|
|
58827
58830
|
break;
|
|
58828
58831
|
case "A":
|
|
58829
|
-
e +=
|
|
58832
|
+
e += F;
|
|
58830
58833
|
break;
|
|
58831
58834
|
default:
|
|
58832
58835
|
e += 1;
|
|
@@ -58835,9 +58838,9 @@ function c(t, u2 = {}) {
|
|
|
58835
58838
|
return e;
|
|
58836
58839
|
}
|
|
58837
58840
|
var v = 10;
|
|
58838
|
-
var L = (t = 0) => (
|
|
58839
|
-
var M = (t = 0) => (
|
|
58840
|
-
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`;
|
|
58841
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] } };
|
|
58842
58845
|
Object.keys(r.modifier);
|
|
58843
58846
|
var Z = Object.keys(r.color);
|
|
@@ -58845,38 +58848,38 @@ var H = Object.keys(r.bgColor);
|
|
|
58845
58848
|
[...Z, ...H];
|
|
58846
58849
|
function U() {
|
|
58847
58850
|
const t = /* @__PURE__ */ new Map();
|
|
58848
|
-
for (const [
|
|
58849
|
-
for (const [e, s] of Object.entries(
|
|
58850
|
-
r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` },
|
|
58851
|
-
Object.defineProperty(r,
|
|
58852
|
-
}
|
|
58853
|
-
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: (
|
|
58854
|
-
const
|
|
58855
|
-
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)
|
|
58856
58859
|
return [0, 0, 0];
|
|
58857
|
-
let [e] =
|
|
58860
|
+
let [e] = F;
|
|
58858
58861
|
e.length === 3 && (e = [...e].map((C) => C + C).join(""));
|
|
58859
58862
|
const s = Number.parseInt(e, 16);
|
|
58860
58863
|
return [s >> 16 & 255, s >> 8 & 255, s & 255];
|
|
58861
|
-
}, enumerable: false }, hexToAnsi256: { value: (
|
|
58862
|
-
if (
|
|
58863
|
-
return 30 +
|
|
58864
|
-
if (
|
|
58865
|
-
return 90 + (
|
|
58866
|
-
let
|
|
58867
|
-
if (
|
|
58868
|
-
|
|
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;
|
|
58869
58872
|
else {
|
|
58870
|
-
|
|
58871
|
-
const i =
|
|
58872
|
-
|
|
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;
|
|
58873
58876
|
}
|
|
58874
|
-
const C = Math.max(
|
|
58877
|
+
const C = Math.max(F, e, s) * 2;
|
|
58875
58878
|
if (C === 0)
|
|
58876
58879
|
return 30;
|
|
58877
|
-
let
|
|
58878
|
-
return C === 2 && (
|
|
58879
|
-
}, 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;
|
|
58880
58883
|
}
|
|
58881
58884
|
var q = U();
|
|
58882
58885
|
var p = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
|
|
@@ -58888,177 +58891,174 @@ var I = "m";
|
|
|
58888
58891
|
var w = `${Q}8;;`;
|
|
58889
58892
|
var N = (t) => `${p.values().next().value}${W}${t}${I}`;
|
|
58890
58893
|
var j = (t) => `${p.values().next().value}${w}${t}${b}`;
|
|
58891
|
-
var X = (t) => t.split(" ").map((
|
|
58892
|
-
var _ = (t,
|
|
58893
|
-
const e = [...
|
|
58894
|
-
let s = false, C = false,
|
|
58895
|
-
for (const [i,
|
|
58896
|
-
const
|
|
58897
|
-
if (
|
|
58898
|
-
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);
|
|
58899
58902
|
continue;
|
|
58900
58903
|
}
|
|
58901
|
-
|
|
58904
|
+
D += E, D === F && i < e.length - 1 && (t.push(""), D = 0);
|
|
58902
58905
|
}
|
|
58903
|
-
!
|
|
58906
|
+
!D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
|
|
58904
58907
|
};
|
|
58905
58908
|
var DD = (t) => {
|
|
58906
|
-
const
|
|
58907
|
-
let
|
|
58908
|
-
for (;
|
|
58909
|
-
|
|
58910
|
-
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("");
|
|
58911
58914
|
};
|
|
58912
|
-
var uD = (t,
|
|
58913
|
-
if (
|
|
58915
|
+
var uD = (t, u, F = {}) => {
|
|
58916
|
+
if (F.trim !== false && t.trim() === "")
|
|
58914
58917
|
return "";
|
|
58915
58918
|
let e = "", s, C;
|
|
58916
|
-
const
|
|
58919
|
+
const D = X(t);
|
|
58917
58920
|
let i = [""];
|
|
58918
|
-
for (const [
|
|
58919
|
-
|
|
58921
|
+
for (const [E, a] of t.split(" ").entries()) {
|
|
58922
|
+
F.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
|
|
58920
58923
|
let n = c(i[i.length - 1]);
|
|
58921
|
-
if (
|
|
58922
|
-
const B =
|
|
58923
|
-
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);
|
|
58924
58927
|
continue;
|
|
58925
58928
|
}
|
|
58926
|
-
if (n +
|
|
58927
|
-
if (
|
|
58928
|
-
_(i,
|
|
58929
|
+
if (n + D[E] > u && n > 0 && D[E] > 0) {
|
|
58930
|
+
if (F.wordWrap === false && n < u) {
|
|
58931
|
+
_(i, a, u);
|
|
58929
58932
|
continue;
|
|
58930
58933
|
}
|
|
58931
58934
|
i.push("");
|
|
58932
58935
|
}
|
|
58933
|
-
if (n +
|
|
58934
|
-
_(i,
|
|
58936
|
+
if (n + D[E] > u && F.wordWrap === false) {
|
|
58937
|
+
_(i, a, u);
|
|
58935
58938
|
continue;
|
|
58936
58939
|
}
|
|
58937
|
-
i[i.length - 1] +=
|
|
58940
|
+
i[i.length - 1] += a;
|
|
58938
58941
|
}
|
|
58939
|
-
|
|
58940
|
-
const
|
|
58942
|
+
F.trim !== false && (i = i.map((E) => DD(E)));
|
|
58943
|
+
const o = [...i.join(`
|
|
58941
58944
|
`)];
|
|
58942
|
-
for (const [
|
|
58943
|
-
if (e +=
|
|
58944
|
-
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: {} };
|
|
58945
58948
|
if (B.code !== void 0) {
|
|
58946
|
-
const
|
|
58947
|
-
s =
|
|
58949
|
+
const A = Number.parseFloat(B.code);
|
|
58950
|
+
s = A === J ? void 0 : A;
|
|
58948
58951
|
} else
|
|
58949
58952
|
B.uri !== void 0 && (C = B.uri.length === 0 ? void 0 : B.uri);
|
|
58950
58953
|
}
|
|
58951
58954
|
const n = q.codes.get(Number(s));
|
|
58952
|
-
|
|
58953
|
-
` ? (C && (e += j("")), s && n && (e += N(n))) :
|
|
58955
|
+
o[E + 1] === `
|
|
58956
|
+
` ? (C && (e += j("")), s && n && (e += N(n))) : a === `
|
|
58954
58957
|
` && (s && n && (e += N(s)), C && (e += j(C)));
|
|
58955
58958
|
}
|
|
58956
58959
|
return e;
|
|
58957
58960
|
};
|
|
58958
|
-
function P(t,
|
|
58961
|
+
function P(t, u, F) {
|
|
58959
58962
|
return String(t).normalize().replace(/\r\n/g, `
|
|
58960
58963
|
`).split(`
|
|
58961
|
-
`).map((e) => uD(e,
|
|
58964
|
+
`).map((e) => uD(e, u, F)).join(`
|
|
58962
58965
|
`);
|
|
58963
58966
|
}
|
|
58964
|
-
function FD(t,
|
|
58965
|
-
if (t ===
|
|
58967
|
+
function FD(t, u) {
|
|
58968
|
+
if (t === u)
|
|
58966
58969
|
return;
|
|
58967
|
-
const
|
|
58968
|
-
`), e =
|
|
58970
|
+
const F = t.split(`
|
|
58971
|
+
`), e = u.split(`
|
|
58969
58972
|
`), s = [];
|
|
58970
|
-
for (let C = 0; C < Math.max(
|
|
58971
|
-
|
|
58973
|
+
for (let C = 0; C < Math.max(F.length, e.length); C++)
|
|
58974
|
+
F[C] !== e[C] && s.push(C);
|
|
58972
58975
|
return s;
|
|
58973
58976
|
}
|
|
58974
58977
|
var R = Symbol("clack:cancel");
|
|
58975
|
-
function
|
|
58976
|
-
|
|
58977
|
-
}
|
|
58978
|
-
function g(t, u2) {
|
|
58979
|
-
t.isTTY && t.setRawMode(u2);
|
|
58978
|
+
function g(t, u) {
|
|
58979
|
+
t.isTTY && t.setRawMode(u);
|
|
58980
58980
|
}
|
|
58981
58981
|
var V = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
|
|
58982
58982
|
var tD = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
|
|
58983
58983
|
var h = class {
|
|
58984
|
-
constructor({ render:
|
|
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 =
|
|
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;
|
|
58986
58986
|
}
|
|
58987
58987
|
prompt() {
|
|
58988
|
-
const
|
|
58989
|
-
return
|
|
58988
|
+
const u = new import_node_tty2.WriteStream(0);
|
|
58989
|
+
return u._write = (F, e, s) => {
|
|
58990
58990
|
this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), s();
|
|
58991
|
-
}, 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) => {
|
|
58992
58992
|
this.once("submit", () => {
|
|
58993
|
-
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);
|
|
58994
58994
|
}), this.once("cancel", () => {
|
|
58995
|
-
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);
|
|
58996
58996
|
});
|
|
58997
58997
|
});
|
|
58998
58998
|
}
|
|
58999
|
-
on(
|
|
59000
|
-
const e = this.subscribers.get(
|
|
59001
|
-
e.push({ cb:
|
|
58999
|
+
on(u, F) {
|
|
59000
|
+
const e = this.subscribers.get(u) ?? [];
|
|
59001
|
+
e.push({ cb: F }), this.subscribers.set(u, e);
|
|
59002
59002
|
}
|
|
59003
|
-
once(
|
|
59004
|
-
const e = this.subscribers.get(
|
|
59005
|
-
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);
|
|
59006
59006
|
}
|
|
59007
|
-
emit(
|
|
59008
|
-
const e = this.subscribers.get(
|
|
59007
|
+
emit(u, ...F) {
|
|
59008
|
+
const e = this.subscribers.get(u) ?? [], s = [];
|
|
59009
59009
|
for (const C of e)
|
|
59010
|
-
C.cb(...
|
|
59010
|
+
C.cb(...F), C.once && s.push(() => e.splice(e.indexOf(C), 1));
|
|
59011
59011
|
for (const C of s)
|
|
59012
59012
|
C();
|
|
59013
59013
|
}
|
|
59014
59014
|
unsubscribe() {
|
|
59015
59015
|
this.subscribers.clear();
|
|
59016
59016
|
}
|
|
59017
|
-
onKeypress(
|
|
59018
|
-
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") {
|
|
59019
59019
|
if (this.opts.validate) {
|
|
59020
59020
|
const e = this.opts.validate(this.value);
|
|
59021
59021
|
e && (this.error = e, this.state = "error", this.rl.write(this.value));
|
|
59022
59022
|
}
|
|
59023
59023
|
this.state !== "error" && (this.state = "submit");
|
|
59024
59024
|
}
|
|
59025
|
-
|
|
59025
|
+
u === "" && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
|
|
59026
59026
|
}
|
|
59027
59027
|
close() {
|
|
59028
59028
|
this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
|
|
59029
59029
|
`), g(this.input, false), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
|
|
59030
59030
|
}
|
|
59031
59031
|
restoreCursor() {
|
|
59032
|
-
const
|
|
59032
|
+
const u = P(this._prevFrame, process.stdout.columns, { hard: true }).split(`
|
|
59033
59033
|
`).length - 1;
|
|
59034
|
-
this.output.write(import_sisteransi.cursor.move(-999,
|
|
59034
|
+
this.output.write(import_sisteransi.cursor.move(-999, u * -1));
|
|
59035
59035
|
}
|
|
59036
59036
|
render() {
|
|
59037
|
-
const
|
|
59038
|
-
if (
|
|
59037
|
+
const u = P(this._render(this) ?? "", process.stdout.columns, { hard: true });
|
|
59038
|
+
if (u !== this._prevFrame) {
|
|
59039
59039
|
if (this.state === "initial")
|
|
59040
59040
|
this.output.write(import_sisteransi.cursor.hide);
|
|
59041
59041
|
else {
|
|
59042
|
-
const
|
|
59043
|
-
if (this.restoreCursor(),
|
|
59044
|
-
const e =
|
|
59042
|
+
const F = FD(this._prevFrame, u);
|
|
59043
|
+
if (this.restoreCursor(), F && F?.length === 1) {
|
|
59044
|
+
const e = F[0];
|
|
59045
59045
|
this.output.write(import_sisteransi.cursor.move(0, e)), this.output.write(import_sisteransi.erase.lines(1));
|
|
59046
|
-
const s =
|
|
59046
|
+
const s = u.split(`
|
|
59047
59047
|
`);
|
|
59048
|
-
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));
|
|
59049
59049
|
return;
|
|
59050
|
-
} else if (
|
|
59051
|
-
const e =
|
|
59050
|
+
} else if (F && F?.length > 1) {
|
|
59051
|
+
const e = F[0];
|
|
59052
59052
|
this.output.write(import_sisteransi.cursor.move(0, e)), this.output.write(import_sisteransi.erase.down());
|
|
59053
|
-
const C =
|
|
59053
|
+
const C = u.split(`
|
|
59054
59054
|
`).slice(e);
|
|
59055
59055
|
this.output.write(C.join(`
|
|
59056
|
-
`)), this._prevFrame =
|
|
59056
|
+
`)), this._prevFrame = u;
|
|
59057
59057
|
return;
|
|
59058
59058
|
}
|
|
59059
59059
|
this.output.write(import_sisteransi.erase.down());
|
|
59060
59060
|
}
|
|
59061
|
-
this.output.write(
|
|
59061
|
+
this.output.write(u), this.state === "initial" && (this.state = "active"), this._prevFrame = u;
|
|
59062
59062
|
}
|
|
59063
59063
|
}
|
|
59064
59064
|
};
|
|
@@ -59069,20 +59069,20 @@ var sD = class extends h {
|
|
|
59069
59069
|
get _value() {
|
|
59070
59070
|
return this.cursor === 0;
|
|
59071
59071
|
}
|
|
59072
|
-
constructor(
|
|
59073
|
-
super(
|
|
59072
|
+
constructor(u) {
|
|
59073
|
+
super(u, false), this.value = !!u.initialValue, this.on("value", () => {
|
|
59074
59074
|
this.value = this._value;
|
|
59075
|
-
}), this.on("confirm", (
|
|
59076
|
-
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();
|
|
59077
59077
|
}), this.on("cursor", () => {
|
|
59078
59078
|
this.value = !this.value;
|
|
59079
59079
|
});
|
|
59080
59080
|
}
|
|
59081
59081
|
};
|
|
59082
59082
|
var ED = class extends h {
|
|
59083
|
-
constructor(
|
|
59084
|
-
super(
|
|
59085
|
-
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) {
|
|
59086
59086
|
case "left":
|
|
59087
59087
|
case "up":
|
|
59088
59088
|
this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
|
|
@@ -59103,15 +59103,15 @@ var ED = class extends h {
|
|
|
59103
59103
|
}
|
|
59104
59104
|
};
|
|
59105
59105
|
var oD = class extends h {
|
|
59106
|
-
constructor(
|
|
59107
|
-
super(
|
|
59108
|
-
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;
|
|
59109
59109
|
}), this.on("value", () => {
|
|
59110
59110
|
if (this.cursor >= this.value.length)
|
|
59111
59111
|
this.valueWithCursor = `${this.value}${import_picocolors.default.inverse(import_picocolors.default.hidden("_"))}`;
|
|
59112
59112
|
else {
|
|
59113
|
-
const
|
|
59114
|
-
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)}`;
|
|
59115
59115
|
}
|
|
59116
59116
|
});
|
|
59117
59117
|
}
|
|
@@ -59120,56 +59120,29 @@ var oD = class extends h {
|
|
|
59120
59120
|
}
|
|
59121
59121
|
};
|
|
59122
59122
|
|
|
59123
|
-
// ../../node_modules/.pnpm
|
|
59123
|
+
// ../../node_modules/.pnpm/ansi-escapes@6.2.0/node_modules/ansi-escapes/index.js
|
|
59124
59124
|
var import_node_process3 = __toESM(require("node:process"), 1);
|
|
59125
|
-
var import_sisteransi2 = __toESM(require_src(), 1);
|
|
59126
|
-
function N2() {
|
|
59127
|
-
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";
|
|
59128
|
-
}
|
|
59129
|
-
var p2 = N2();
|
|
59130
|
-
var u = (r2, n) => p2 ? r2 : n;
|
|
59131
|
-
var W2 = u("\u25C6", "*");
|
|
59132
|
-
var D = u("\u25A0", "x");
|
|
59133
|
-
var F = u("\u25B2", "x");
|
|
59134
|
-
var f = u("\u25C7", "o");
|
|
59135
|
-
var L2 = u("\u250C", "T");
|
|
59136
|
-
var a = u("\u2502", "|");
|
|
59137
|
-
var o = u("\u2514", "\u2014");
|
|
59138
|
-
var w2 = u("\u25CF", ">");
|
|
59139
|
-
var S2 = u("\u25CB", " ");
|
|
59140
|
-
var _2 = u("\u25FB", "[\u2022]");
|
|
59141
|
-
var y2 = u("\u25FC", "[+]");
|
|
59142
|
-
var A = u("\u25FB", "[ ]");
|
|
59143
|
-
var q2 = u("\u25AA", "\u2022");
|
|
59144
|
-
var R2 = u("\u2500", "-");
|
|
59145
|
-
var G2 = u("\u256E", "+");
|
|
59146
|
-
var H2 = u("\u251C", "+");
|
|
59147
|
-
var K2 = u("\u256F", "+");
|
|
59148
|
-
var U2 = u("\u25CF", "\u2022");
|
|
59149
|
-
var Z2 = u("\u25C6", "*");
|
|
59150
|
-
var z2 = u("\u25B2", "!");
|
|
59151
|
-
var X2 = u("\u25A0", "x");
|
|
59152
|
-
|
|
59153
|
-
// ../../node_modules/.pnpm/log-update@5.0.1/node_modules/log-update/index.js
|
|
59154
|
-
var import_node_process6 = __toESM(require("node:process"), 1);
|
|
59155
|
-
|
|
59156
|
-
// ../../node_modules/.pnpm/ansi-escapes@5.0.0/node_modules/ansi-escapes/index.js
|
|
59157
59125
|
var ESC = "\x1B[";
|
|
59158
59126
|
var OSC = "\x1B]";
|
|
59159
59127
|
var BEL = "\x07";
|
|
59160
59128
|
var SEP = ";";
|
|
59161
|
-
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;
|
|
59162
59135
|
var ansiEscapes = {};
|
|
59163
|
-
ansiEscapes.cursorTo = (x2,
|
|
59136
|
+
ansiEscapes.cursorTo = (x2, y2) => {
|
|
59164
59137
|
if (typeof x2 !== "number") {
|
|
59165
59138
|
throw new TypeError("The `x` argument is required");
|
|
59166
59139
|
}
|
|
59167
|
-
if (typeof
|
|
59140
|
+
if (typeof y2 !== "number") {
|
|
59168
59141
|
return ESC + (x2 + 1) + "G";
|
|
59169
59142
|
}
|
|
59170
|
-
return ESC + (
|
|
59143
|
+
return ESC + (y2 + 1) + SEP + (x2 + 1) + "H";
|
|
59171
59144
|
};
|
|
59172
|
-
ansiEscapes.cursorMove = (x2,
|
|
59145
|
+
ansiEscapes.cursorMove = (x2, y2) => {
|
|
59173
59146
|
if (typeof x2 !== "number") {
|
|
59174
59147
|
throw new TypeError("The `x` argument is required");
|
|
59175
59148
|
}
|
|
@@ -59179,10 +59152,10 @@ ansiEscapes.cursorMove = (x2, y3) => {
|
|
|
59179
59152
|
} else if (x2 > 0) {
|
|
59180
59153
|
returnValue += ESC + x2 + "C";
|
|
59181
59154
|
}
|
|
59182
|
-
if (
|
|
59183
|
-
returnValue += ESC + -
|
|
59184
|
-
} else if (
|
|
59185
|
-
returnValue += ESC +
|
|
59155
|
+
if (y2 < 0) {
|
|
59156
|
+
returnValue += ESC + -y2 + "A";
|
|
59157
|
+
} else if (y2 > 0) {
|
|
59158
|
+
returnValue += ESC + y2 + "B";
|
|
59186
59159
|
}
|
|
59187
59160
|
return returnValue;
|
|
59188
59161
|
};
|
|
@@ -59217,32 +59190,151 @@ ansiEscapes.eraseScreen = ESC + "2J";
|
|
|
59217
59190
|
ansiEscapes.scrollUp = ESC + "S";
|
|
59218
59191
|
ansiEscapes.scrollDown = ESC + "T";
|
|
59219
59192
|
ansiEscapes.clearScreen = "\x1Bc";
|
|
59220
|
-
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` : (
|
|
59221
59313
|
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
59222
59314
|
// 2. Erases the whole screen including scrollback buffer
|
|
59223
59315
|
// 3. Moves cursor to the top-left position
|
|
59224
59316
|
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
59225
|
-
`${
|
|
59317
|
+
`${ansiEscapes2.eraseScreen}${ESC2}3J${ESC2}H`
|
|
59226
59318
|
);
|
|
59227
|
-
|
|
59228
|
-
|
|
59319
|
+
ansiEscapes2.beep = BEL2;
|
|
59320
|
+
ansiEscapes2.link = (text, url) => {
|
|
59229
59321
|
return [
|
|
59230
|
-
|
|
59322
|
+
OSC2,
|
|
59231
59323
|
"8",
|
|
59232
|
-
|
|
59233
|
-
|
|
59324
|
+
SEP2,
|
|
59325
|
+
SEP2,
|
|
59234
59326
|
url,
|
|
59235
|
-
|
|
59327
|
+
BEL2,
|
|
59236
59328
|
text,
|
|
59237
|
-
|
|
59329
|
+
OSC2,
|
|
59238
59330
|
"8",
|
|
59239
|
-
|
|
59240
|
-
|
|
59241
|
-
|
|
59331
|
+
SEP2,
|
|
59332
|
+
SEP2,
|
|
59333
|
+
BEL2
|
|
59242
59334
|
].join("");
|
|
59243
59335
|
};
|
|
59244
|
-
|
|
59245
|
-
let returnValue = `${
|
|
59336
|
+
ansiEscapes2.image = (buffer, options = {}) => {
|
|
59337
|
+
let returnValue = `${OSC2}1337;File=inline=1`;
|
|
59246
59338
|
if (options.width) {
|
|
59247
59339
|
returnValue += `;width=${options.width}`;
|
|
59248
59340
|
}
|
|
@@ -59252,12 +59344,12 @@ ansiEscapes.image = (buffer, options = {}) => {
|
|
|
59252
59344
|
if (options.preserveAspectRatio === false) {
|
|
59253
59345
|
returnValue += ";preserveAspectRatio=0";
|
|
59254
59346
|
}
|
|
59255
|
-
return returnValue + ":" + buffer.toString("base64") +
|
|
59347
|
+
return returnValue + ":" + buffer.toString("base64") + BEL2;
|
|
59256
59348
|
};
|
|
59257
|
-
|
|
59258
|
-
setCwd: (cwd = process.cwd()) => `${
|
|
59349
|
+
ansiEscapes2.iTerm = {
|
|
59350
|
+
setCwd: (cwd = process.cwd()) => `${OSC2}50;CurrentDir=${cwd}${BEL2}`,
|
|
59259
59351
|
annotation: (message, options = {}) => {
|
|
59260
|
-
let returnValue = `${
|
|
59352
|
+
let returnValue = `${OSC2}1337;`;
|
|
59261
59353
|
const hasX = typeof options.x !== "undefined";
|
|
59262
59354
|
const hasY = typeof options.y !== "undefined";
|
|
59263
59355
|
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
@@ -59270,10 +59362,10 @@ ansiEscapes.iTerm = {
|
|
|
59270
59362
|
} else {
|
|
59271
59363
|
returnValue += message;
|
|
59272
59364
|
}
|
|
59273
|
-
return returnValue +
|
|
59365
|
+
return returnValue + BEL2;
|
|
59274
59366
|
}
|
|
59275
59367
|
};
|
|
59276
|
-
var
|
|
59368
|
+
var ansi_escapes_default2 = ansiEscapes2;
|
|
59277
59369
|
|
|
59278
59370
|
// ../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
|
|
59279
59371
|
var import_node_process5 = __toESM(require("node:process"), 1);
|
|
@@ -59864,11 +59956,11 @@ function createLogUpdate(stream, { showCursor = false } = {}) {
|
|
|
59864
59956
|
hard: true,
|
|
59865
59957
|
wordWrap: false
|
|
59866
59958
|
});
|
|
59867
|
-
stream.write(
|
|
59959
|
+
stream.write(ansi_escapes_default2.eraseLines(previousLineCount) + output);
|
|
59868
59960
|
previousLineCount = output.split("\n").length;
|
|
59869
59961
|
};
|
|
59870
59962
|
render.clear = () => {
|
|
59871
|
-
stream.write(
|
|
59963
|
+
stream.write(ansi_escapes_default2.eraseLines(previousLineCount));
|
|
59872
59964
|
previousOutput = "";
|
|
59873
59965
|
previousWidth = getWidth(stream);
|
|
59874
59966
|
previousLineCount = 0;
|
|
@@ -59927,10 +60019,6 @@ var inputPrompt = async (promptConfig) => {
|
|
|
59927
60019
|
});
|
|
59928
60020
|
}
|
|
59929
60021
|
const input = await prompt.prompt();
|
|
59930
|
-
if (eD(input)) {
|
|
59931
|
-
cancel("Operation cancelled.");
|
|
59932
|
-
process.exit(0);
|
|
59933
|
-
}
|
|
59934
60022
|
return input;
|
|
59935
60023
|
};
|
|
59936
60024
|
var renderSubmit = (config14, value) => {
|
|
@@ -59939,6 +60027,7 @@ var renderSubmit = (config14, value) => {
|
|
|
59939
60027
|
return [`${leftT} ${question}`, content, `${grayBar}`];
|
|
59940
60028
|
};
|
|
59941
60029
|
var handleCancel = () => {
|
|
60030
|
+
process.stdout.write(ansi_escapes_default.cursorShow);
|
|
59942
60031
|
cancel("Operation cancelled.");
|
|
59943
60032
|
process.exit(0);
|
|
59944
60033
|
};
|
|
@@ -60012,7 +60101,7 @@ var getSelectRenderers = (config14) => {
|
|
|
60012
60101
|
error: defaultRenderer,
|
|
60013
60102
|
submit: ({ value }) => renderSubmit(
|
|
60014
60103
|
config14,
|
|
60015
|
-
options.find((
|
|
60104
|
+
options.find((o) => o.value === value)?.label
|
|
60016
60105
|
),
|
|
60017
60106
|
cancel: handleCancel
|
|
60018
60107
|
};
|
|
@@ -60060,29 +60149,39 @@ var spinner = (frames = spinnerFrames.clockwise, color = brandColor) => {
|
|
|
60060
60149
|
helpText ||= ``;
|
|
60061
60150
|
currentMsg = msg;
|
|
60062
60151
|
startMsg = `${currentMsg} ${dim(helpText)}`;
|
|
60063
|
-
|
|
60064
|
-
|
|
60065
|
-
|
|
60066
|
-
|
|
60067
|
-
|
|
60068
|
-
|
|
60069
|
-
|
|
60070
|
-
|
|
60071
|
-
|
|
60072
|
-
|
|
60152
|
+
if (isInteractive()) {
|
|
60153
|
+
let index = 0;
|
|
60154
|
+
clearLoop();
|
|
60155
|
+
loop = setInterval(() => {
|
|
60156
|
+
index++;
|
|
60157
|
+
const spinnerFrame = frames[index % frames.length];
|
|
60158
|
+
const ellipsisFrame = ellipsisFrames[index % ellipsisFrames.length];
|
|
60159
|
+
if (msg) {
|
|
60160
|
+
log_update_default(`${color(spinnerFrame)} ${currentMsg} ${ellipsisFrame}`);
|
|
60161
|
+
}
|
|
60162
|
+
}, frameRate);
|
|
60163
|
+
} else {
|
|
60164
|
+
log_update_default(`${leftT} ${startMsg}`);
|
|
60165
|
+
}
|
|
60073
60166
|
},
|
|
60074
60167
|
update(msg) {
|
|
60075
60168
|
currentMsg = msg;
|
|
60076
60169
|
},
|
|
60077
60170
|
stop(msg) {
|
|
60078
|
-
|
|
60079
|
-
|
|
60080
|
-
|
|
60171
|
+
if (isInteractive()) {
|
|
60172
|
+
log_update_default.clear();
|
|
60173
|
+
if (msg) {
|
|
60174
|
+
log_update_default(`${leftT} ${startMsg}
|
|
60175
|
+
${grayBar} ${msg}`);
|
|
60176
|
+
log_update_default.done();
|
|
60177
|
+
newline();
|
|
60178
|
+
}
|
|
60179
|
+
clearLoop();
|
|
60180
|
+
} else {
|
|
60181
|
+
log_update_default(`
|
|
60081
60182
|
${grayBar} ${msg}`);
|
|
60082
|
-
log_update_default.done();
|
|
60083
60183
|
newline();
|
|
60084
60184
|
}
|
|
60085
|
-
clearLoop();
|
|
60086
60185
|
}
|
|
60087
60186
|
};
|
|
60088
60187
|
};
|
|
@@ -60110,6 +60209,7 @@ var detectPackageManager = () => {
|
|
|
60110
60209
|
case "bun":
|
|
60111
60210
|
name2 = "bun";
|
|
60112
60211
|
version3 = "1.0.0";
|
|
60212
|
+
process.env.npm_config_user_agent = "bun";
|
|
60113
60213
|
break;
|
|
60114
60214
|
case "npm":
|
|
60115
60215
|
name2 = "npm";
|
|
@@ -60175,8 +60275,14 @@ var detectPackageManager = () => {
|
|
|
60175
60275
|
|
|
60176
60276
|
// src/helpers/shell-quote.ts
|
|
60177
60277
|
var import_shell_quote = __toESM(require_shell_quote());
|
|
60178
|
-
var quote =
|
|
60278
|
+
var quote = function(args) {
|
|
60279
|
+
const stringArgs = args.map((arg) => String(arg));
|
|
60280
|
+
return import_shell_quote.default.quote(stringArgs);
|
|
60281
|
+
};
|
|
60179
60282
|
function parse(cmd, env3) {
|
|
60283
|
+
if (process.platform === "win32") {
|
|
60284
|
+
cmd = cmd.replaceAll("\\", "\\\\");
|
|
60285
|
+
}
|
|
60180
60286
|
const entries = import_shell_quote.default.parse(cmd, env3);
|
|
60181
60287
|
const argv = [];
|
|
60182
60288
|
for (const entry of entries) {
|
|
@@ -60271,7 +60377,7 @@ var printAsyncStatus = async ({
|
|
|
60271
60377
|
...opts
|
|
60272
60378
|
}) => {
|
|
60273
60379
|
let s;
|
|
60274
|
-
if (opts.useSpinner) {
|
|
60380
|
+
if (opts.useSpinner && isInteractive()) {
|
|
60275
60381
|
s = spinner();
|
|
60276
60382
|
}
|
|
60277
60383
|
s?.start(opts?.startText);
|
|
@@ -60289,7 +60395,10 @@ var printAsyncStatus = async ({
|
|
|
60289
60395
|
}
|
|
60290
60396
|
return promise;
|
|
60291
60397
|
};
|
|
60292
|
-
var retry = async (
|
|
60398
|
+
var retry = async ({
|
|
60399
|
+
times,
|
|
60400
|
+
exitCondition
|
|
60401
|
+
}, fn) => {
|
|
60293
60402
|
let error = null;
|
|
60294
60403
|
while (times > 0) {
|
|
60295
60404
|
try {
|
|
@@ -60297,6 +60406,9 @@ var retry = async (times, fn) => {
|
|
|
60297
60406
|
} catch (e) {
|
|
60298
60407
|
error = e;
|
|
60299
60408
|
times--;
|
|
60409
|
+
if (exitCondition?.(e)) {
|
|
60410
|
+
break;
|
|
60411
|
+
}
|
|
60300
60412
|
}
|
|
60301
60413
|
}
|
|
60302
60414
|
throw error;
|
|
@@ -60503,9 +60615,9 @@ var usesEslint = (ctx) => {
|
|
|
60503
60615
|
}
|
|
60504
60616
|
return { used: false };
|
|
60505
60617
|
};
|
|
60506
|
-
var compatDateFlag = () => {
|
|
60507
|
-
const
|
|
60508
|
-
return `--compatibility-date=${
|
|
60618
|
+
var compatDateFlag = async () => {
|
|
60619
|
+
const workerdCompatDate = await getWorkerdCompatibilityDate();
|
|
60620
|
+
return `--compatibility-date=${workerdCompatDate}`;
|
|
60509
60621
|
};
|
|
60510
60622
|
|
|
60511
60623
|
// src/frameworks/angular/index.ts
|
|
@@ -60519,9 +60631,8 @@ var generate = async (ctx) => {
|
|
|
60519
60631
|
logRaw("");
|
|
60520
60632
|
};
|
|
60521
60633
|
var configure = async (ctx) => {
|
|
60522
|
-
const cli = getFrameworkCli(ctx, false);
|
|
60523
60634
|
process.chdir(ctx.project.path);
|
|
60524
|
-
await runCommand(`${npx}
|
|
60635
|
+
await runCommand(`${npx} ng analytics disable`, {
|
|
60525
60636
|
silent: true
|
|
60526
60637
|
});
|
|
60527
60638
|
await addSSRAdapter();
|
|
@@ -60533,15 +60644,15 @@ var config = {
|
|
|
60533
60644
|
generate,
|
|
60534
60645
|
configure,
|
|
60535
60646
|
displayName: "Angular",
|
|
60536
|
-
|
|
60647
|
+
getPackageScripts: async () => ({
|
|
60537
60648
|
process: "node ./tools/copy-worker-files.mjs && node ./tools/copy-client-files.mjs && node ./tools/bundle.mjs",
|
|
60538
|
-
|
|
60539
|
-
start:
|
|
60540
|
-
|
|
60541
|
-
|
|
60542
|
-
},
|
|
60649
|
+
"pages:build": `${npm} run build:ssr && ${npm} run process`,
|
|
60650
|
+
start: `${npm} run pages:build && wrangler pages dev dist/cloudflare ${await compatDateFlag()} --experimental-local`,
|
|
60651
|
+
deploy: `${npm} run pages:build && wrangler pages deploy dist/cloudflare`
|
|
60652
|
+
}),
|
|
60543
60653
|
deployCommand: "deploy",
|
|
60544
|
-
devCommand: "start"
|
|
60654
|
+
devCommand: "start",
|
|
60655
|
+
testFlags: ["--routing", "--style", "sass"]
|
|
60545
60656
|
};
|
|
60546
60657
|
var angular_default = config;
|
|
60547
60658
|
async function installCFWorker(ctx) {
|
|
@@ -60631,13 +60742,12 @@ var config2 = {
|
|
|
60631
60742
|
generate: generate2,
|
|
60632
60743
|
configure: configure2,
|
|
60633
60744
|
displayName: "Astro",
|
|
60634
|
-
|
|
60635
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --
|
|
60745
|
+
getPackageScripts: async () => ({
|
|
60746
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} -- astro dev`,
|
|
60636
60747
|
"pages:deploy": `astro build && wrangler pages deploy ./dist`
|
|
60637
|
-
},
|
|
60748
|
+
}),
|
|
60638
60749
|
testFlags: [
|
|
60639
60750
|
"--skip-houston",
|
|
60640
|
-
"--yes",
|
|
60641
60751
|
"--no-install",
|
|
60642
60752
|
"--no-git",
|
|
60643
60753
|
"--template",
|
|
@@ -60657,10 +60767,11 @@ var generate3 = async (ctx) => {
|
|
|
60657
60767
|
var config3 = {
|
|
60658
60768
|
generate: generate3,
|
|
60659
60769
|
displayName: "Docusaurus",
|
|
60660
|
-
|
|
60661
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- ${npm2} run start`,
|
|
60770
|
+
getPackageScripts: async () => ({
|
|
60771
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} --proxy 3000 -- ${npm2} run start`,
|
|
60662
60772
|
"pages:deploy": `NODE_VERSION=16 ${npm2} run build && wrangler pages deploy ./build`
|
|
60663
|
-
}
|
|
60773
|
+
}),
|
|
60774
|
+
testFlags: [`--package-manager`, npm2]
|
|
60664
60775
|
};
|
|
60665
60776
|
var docusaurus_default = config3;
|
|
60666
60777
|
|
|
@@ -60692,10 +60803,10 @@ var generate4 = async (ctx) => {
|
|
|
60692
60803
|
var config4 = {
|
|
60693
60804
|
generate: generate4,
|
|
60694
60805
|
displayName: "Gatsby",
|
|
60695
|
-
|
|
60696
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 8000 -- ${npm3} run develop`,
|
|
60806
|
+
getPackageScripts: async () => ({
|
|
60807
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} --proxy 8000 -- ${npm3} run develop`,
|
|
60697
60808
|
"pages:deploy": `${npm3} run build && wrangler pages deploy ./public`
|
|
60698
|
-
}
|
|
60809
|
+
})
|
|
60699
60810
|
};
|
|
60700
60811
|
var gatsby_default = config4;
|
|
60701
60812
|
|
|
@@ -60712,7 +60823,7 @@ var generate5 = async (ctx) => {
|
|
|
60712
60823
|
var config5 = {
|
|
60713
60824
|
generate: generate5,
|
|
60714
60825
|
displayName: "Hono",
|
|
60715
|
-
|
|
60826
|
+
getPackageScripts: async () => ({}),
|
|
60716
60827
|
deployCommand: "deploy",
|
|
60717
60828
|
devCommand: "dev",
|
|
60718
60829
|
type: "workers"
|
|
@@ -60852,12 +60963,12 @@ var config6 = {
|
|
|
60852
60963
|
generate: generate6,
|
|
60853
60964
|
configure: configure3,
|
|
60854
60965
|
displayName: "Next",
|
|
60855
|
-
|
|
60966
|
+
getPackageScripts: async () => ({
|
|
60856
60967
|
"pages:build": `${dlx6} @cloudflare/next-on-pages@1`,
|
|
60857
60968
|
"pages:deploy": `${npm4} run pages:build && wrangler pages deploy .vercel/output/static`,
|
|
60858
60969
|
"pages:watch": `${npx3} @cloudflare/next-on-pages@1 --watch`,
|
|
60859
|
-
"pages:dev": `${npx3} wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat`
|
|
60860
|
-
},
|
|
60970
|
+
"pages:dev": `${npx3} wrangler pages dev .vercel/output/static ${await compatDateFlag()} --compatibility-flag=nodejs_compat`
|
|
60971
|
+
}),
|
|
60861
60972
|
testFlags: [
|
|
60862
60973
|
"--typescript",
|
|
60863
60974
|
"--no-install",
|
|
@@ -60892,11 +61003,11 @@ var config7 = {
|
|
|
60892
61003
|
generate: generate7,
|
|
60893
61004
|
configure: configure4,
|
|
60894
61005
|
displayName: "Nuxt",
|
|
60895
|
-
|
|
61006
|
+
getPackageScripts: async () => ({
|
|
60896
61007
|
build: (cmd) => `NITRO_PRESET=cloudflare-pages ${cmd}`,
|
|
60897
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- ${npm5} run dev`,
|
|
61008
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} --proxy 3000 -- ${npm5} run dev`,
|
|
60898
61009
|
"pages:deploy": `${npm5} run build && wrangler pages deploy ./dist`
|
|
60899
|
-
}
|
|
61010
|
+
})
|
|
60900
61011
|
};
|
|
60901
61012
|
var nuxt_default = config7;
|
|
60902
61013
|
|
|
@@ -60910,17 +61021,17 @@ var package_default = {
|
|
|
60910
61021
|
],
|
|
60911
61022
|
dependencies: {
|
|
60912
61023
|
"@angular/cli": "16.2.2",
|
|
60913
|
-
"create-astro": "4.
|
|
60914
|
-
"create-docusaurus": "2.4.
|
|
60915
|
-
"create-hono": "0.2
|
|
61024
|
+
"create-astro": "4.3.0",
|
|
61025
|
+
"create-docusaurus": "2.4.3",
|
|
61026
|
+
"create-hono": "0.3.2",
|
|
60916
61027
|
"create-next-app": "13.4.19",
|
|
60917
|
-
"create-qwik": "1.2.
|
|
61028
|
+
"create-qwik": "1.2.14",
|
|
60918
61029
|
"create-react-app": "5.0.1",
|
|
60919
|
-
"create-remix": "2.
|
|
60920
|
-
"create-solid": "0.3.
|
|
60921
|
-
"create-svelte": "5.1.
|
|
60922
|
-
"create-vue": "3.
|
|
60923
|
-
gatsby: "5.12.
|
|
61030
|
+
"create-remix": "2.1.0",
|
|
61031
|
+
"create-solid": "0.3.7",
|
|
61032
|
+
"create-svelte": "5.1.1",
|
|
61033
|
+
"create-vue": "3.8.0",
|
|
61034
|
+
gatsby: "5.12.8",
|
|
60924
61035
|
nuxi: "3.9.0"
|
|
60925
61036
|
},
|
|
60926
61037
|
frameworkCliMap: {
|
|
@@ -60957,10 +61068,10 @@ var config8 = {
|
|
|
60957
61068
|
generate: generate8,
|
|
60958
61069
|
configure: configure5,
|
|
60959
61070
|
displayName: "Qwik",
|
|
60960
|
-
|
|
60961
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} -- ${npm6} run dev`,
|
|
61071
|
+
getPackageScripts: async () => ({
|
|
61072
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} -- ${npm6} run dev`,
|
|
60962
61073
|
"pages:deploy": `${npm6} run build && wrangler pages deploy ./dist`
|
|
60963
|
-
}
|
|
61074
|
+
})
|
|
60964
61075
|
};
|
|
60965
61076
|
var qwik_default = config8;
|
|
60966
61077
|
|
|
@@ -60978,10 +61089,10 @@ var config9 = {
|
|
|
60978
61089
|
generate: generate9,
|
|
60979
61090
|
configure: configure6,
|
|
60980
61091
|
displayName: "React",
|
|
60981
|
-
|
|
60982
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --port 3000 -- ${npm7} start`,
|
|
61092
|
+
getPackageScripts: async () => ({
|
|
61093
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} --port 3000 -- ${npm7} start`,
|
|
60983
61094
|
"pages:deploy": `${npm7} run build && wrangler pages deploy ./build`
|
|
60984
|
-
}
|
|
61095
|
+
})
|
|
60985
61096
|
};
|
|
60986
61097
|
var react_default = config9;
|
|
60987
61098
|
|
|
@@ -60998,9 +61109,9 @@ var generate10 = async (ctx) => {
|
|
|
60998
61109
|
var config10 = {
|
|
60999
61110
|
generate: generate10,
|
|
61000
61111
|
displayName: "Remix",
|
|
61001
|
-
|
|
61112
|
+
getPackageScripts: async () => ({
|
|
61002
61113
|
"pages:deploy": `${npm8} run build && wrangler pages deploy ./public`
|
|
61003
|
-
},
|
|
61114
|
+
}),
|
|
61004
61115
|
devCommand: "dev",
|
|
61005
61116
|
testFlags: ["--typescript", "--no-install", "--no-git-init"]
|
|
61006
61117
|
};
|
|
@@ -61042,10 +61153,10 @@ var config11 = {
|
|
|
61042
61153
|
generate: generate11,
|
|
61043
61154
|
configure: configure7,
|
|
61044
61155
|
displayName: "Solid",
|
|
61045
|
-
|
|
61046
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- ${npm9} run dev`,
|
|
61156
|
+
getPackageScripts: async () => ({
|
|
61157
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} --proxy 3000 -- ${npm9} run dev`,
|
|
61047
61158
|
"pages:deploy": `${npm9} run build && wrangler pages deploy ./dist/public`
|
|
61048
|
-
}
|
|
61159
|
+
})
|
|
61049
61160
|
};
|
|
61050
61161
|
var solid_default = config11;
|
|
61051
61162
|
|
|
@@ -61139,10 +61250,10 @@ var config12 = {
|
|
|
61139
61250
|
generate: generate12,
|
|
61140
61251
|
configure: configure8,
|
|
61141
61252
|
displayName: "Svelte",
|
|
61142
|
-
|
|
61143
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 5173 -- ${npm10} run dev`,
|
|
61253
|
+
getPackageScripts: async () => ({
|
|
61254
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} --proxy 5173 -- ${npm10} run dev`,
|
|
61144
61255
|
"pages:deploy": `${npm10} run build && wrangler pages deploy .svelte-kit/cloudflare`
|
|
61145
|
-
}
|
|
61256
|
+
})
|
|
61146
61257
|
};
|
|
61147
61258
|
var svelte_default = config12;
|
|
61148
61259
|
|
|
@@ -61155,10 +61266,10 @@ var generate13 = async (ctx) => {
|
|
|
61155
61266
|
var config13 = {
|
|
61156
61267
|
generate: generate13,
|
|
61157
61268
|
displayName: "Vue",
|
|
61158
|
-
|
|
61159
|
-
"pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 5173 -- ${npm11} run dev`,
|
|
61269
|
+
getPackageScripts: async () => ({
|
|
61270
|
+
"pages:dev": `wrangler pages dev ${await compatDateFlag()} --proxy 5173 -- ${npm11} run dev`,
|
|
61160
61271
|
"pages:deploy": `${npm11} run build && wrangler pages deploy ./dist`
|
|
61161
|
-
},
|
|
61272
|
+
}),
|
|
61162
61273
|
testFlags: ["--ts"]
|
|
61163
61274
|
};
|
|
61164
61275
|
var vue_default = config13;
|
|
@@ -61296,21 +61407,35 @@ function secondsSince(start) {
|
|
|
61296
61407
|
}
|
|
61297
61408
|
|
|
61298
61409
|
// ../wrangler/package.json
|
|
61299
|
-
var version2 = "3.
|
|
61410
|
+
var version2 = "3.14.0";
|
|
61300
61411
|
|
|
61301
61412
|
// src/common.ts
|
|
61302
61413
|
var { name, npm: npm12 } = detectPackageManager();
|
|
61303
|
-
var validateProjectDirectory = (relativePath) => {
|
|
61414
|
+
var validateProjectDirectory = (relativePath, args) => {
|
|
61304
61415
|
const path3 = (0, import_path7.resolve)(relativePath);
|
|
61305
61416
|
const existsAlready = (0, import_fs8.existsSync)(path3);
|
|
61306
61417
|
const isEmpty = existsAlready && (0, import_fs8.readdirSync)(path3).length === 0;
|
|
61307
61418
|
if (existsAlready && !isEmpty) {
|
|
61308
61419
|
return `Directory \`${relativePath}\` already exists and is not empty. Please choose a new name.`;
|
|
61309
61420
|
}
|
|
61421
|
+
if (!args.existingScript) {
|
|
61422
|
+
const projectName = (0, import_path7.basename)(path3);
|
|
61423
|
+
const invalidChars = /[^a-z0-9-]/;
|
|
61424
|
+
const invalidStartEnd = /^-|-$/;
|
|
61425
|
+
if (projectName.match(invalidStartEnd)) {
|
|
61426
|
+
return `Project names cannot start or end with a dash.`;
|
|
61427
|
+
}
|
|
61428
|
+
if (projectName.match(invalidChars)) {
|
|
61429
|
+
return `Project names must only contain lowercase characters, numbers, and dashes.`;
|
|
61430
|
+
}
|
|
61431
|
+
if (projectName.length > 58) {
|
|
61432
|
+
return `Project names must be less than 58 characters.`;
|
|
61433
|
+
}
|
|
61434
|
+
}
|
|
61310
61435
|
};
|
|
61311
61436
|
var setupProjectDirectory = (args) => {
|
|
61312
61437
|
const path3 = (0, import_path7.resolve)(args.projectName);
|
|
61313
|
-
const err = validateProjectDirectory(path3);
|
|
61438
|
+
const err = validateProjectDirectory(path3, args);
|
|
61314
61439
|
if (err) {
|
|
61315
61440
|
crash(err);
|
|
61316
61441
|
}
|
|
@@ -61416,7 +61541,10 @@ var chooseAccount = async (ctx) => {
|
|
|
61416
61541
|
};
|
|
61417
61542
|
var printSummary = async (ctx) => {
|
|
61418
61543
|
const nextSteps = [
|
|
61419
|
-
[
|
|
61544
|
+
[
|
|
61545
|
+
`Navigate to the new directory`,
|
|
61546
|
+
`cd ${quote([(0, import_path7.relative)(ctx.originalCWD, ctx.project.path)])}`
|
|
61547
|
+
],
|
|
61420
61548
|
[
|
|
61421
61549
|
`Run the development server`,
|
|
61422
61550
|
`${npm12} run ${ctx.framework?.config.devCommand ?? "start"}`
|
|
@@ -61477,6 +61605,16 @@ var offerGit = async (ctx) => {
|
|
|
61477
61605
|
ctx.args.git = false;
|
|
61478
61606
|
return;
|
|
61479
61607
|
}
|
|
61608
|
+
const gitConfigured = await isGitConfigured();
|
|
61609
|
+
if (!gitConfigured) {
|
|
61610
|
+
if (ctx.args.git) {
|
|
61611
|
+
updateStatus(
|
|
61612
|
+
"Must configure `user.name` and user.email` to use git. Continuing without git."
|
|
61613
|
+
);
|
|
61614
|
+
}
|
|
61615
|
+
ctx.args.git = false;
|
|
61616
|
+
return;
|
|
61617
|
+
}
|
|
61480
61618
|
const insideGitRepo = await isInsideGitRepo(ctx.project.path);
|
|
61481
61619
|
if (insideGitRepo)
|
|
61482
61620
|
return;
|
|
@@ -61558,6 +61696,25 @@ async function getGitVersion() {
|
|
|
61558
61696
|
async function isGitInstalled() {
|
|
61559
61697
|
return await getGitVersion() !== null;
|
|
61560
61698
|
}
|
|
61699
|
+
async function isGitConfigured() {
|
|
61700
|
+
try {
|
|
61701
|
+
const userName = await runCommand("git config user.name", {
|
|
61702
|
+
useSpinner: false,
|
|
61703
|
+
silent: true
|
|
61704
|
+
});
|
|
61705
|
+
if (!userName)
|
|
61706
|
+
return false;
|
|
61707
|
+
const email = await runCommand("git config user.email", {
|
|
61708
|
+
useSpinner: false,
|
|
61709
|
+
silent: true
|
|
61710
|
+
});
|
|
61711
|
+
if (!email)
|
|
61712
|
+
return false;
|
|
61713
|
+
return true;
|
|
61714
|
+
} catch {
|
|
61715
|
+
return false;
|
|
61716
|
+
}
|
|
61717
|
+
}
|
|
61561
61718
|
async function isInsideGitRepo(cwd) {
|
|
61562
61719
|
try {
|
|
61563
61720
|
const output = await runCommand("git status", {
|
|
@@ -61614,6 +61771,7 @@ var defaultFrameworkConfig = {
|
|
|
61614
61771
|
devCommand: "pages:dev"
|
|
61615
61772
|
};
|
|
61616
61773
|
var runPagesGenerator = async (args) => {
|
|
61774
|
+
const originalCWD = process.cwd();
|
|
61617
61775
|
const { name: name2, path: path3 } = setupProjectDirectory(args);
|
|
61618
61776
|
const framework = await getFrameworkSelection(args);
|
|
61619
61777
|
const frameworkConfig = FrameworkMap[framework];
|
|
@@ -61631,7 +61789,8 @@ var runPagesGenerator = async (args) => {
|
|
|
61631
61789
|
args: args.additionalArgs ?? []
|
|
61632
61790
|
},
|
|
61633
61791
|
args,
|
|
61634
|
-
type: frameworkConfig.type
|
|
61792
|
+
type: frameworkConfig.type,
|
|
61793
|
+
originalCWD
|
|
61635
61794
|
};
|
|
61636
61795
|
const { generate: generate14, configure: configure9 } = FrameworkMap[framework];
|
|
61637
61796
|
await generate14({ ...ctx });
|
|
@@ -61671,11 +61830,12 @@ var getFrameworkSelection = async (args) => {
|
|
|
61671
61830
|
var updatePackageScripts = async (ctx) => {
|
|
61672
61831
|
(0, import_process3.chdir)(ctx.project.path);
|
|
61673
61832
|
await installWrangler();
|
|
61674
|
-
const {
|
|
61833
|
+
const { getPackageScripts } = ctx.framework?.config ?? {};
|
|
61834
|
+
const packageScripts = getPackageScripts ? await getPackageScripts() : {};
|
|
61675
61835
|
if (packageScripts) {
|
|
61676
61836
|
const s = spinner();
|
|
61677
61837
|
const updatingScripts = Object.entries(packageScripts).filter(
|
|
61678
|
-
([
|
|
61838
|
+
([_2, cmdOrUpdater]) => typeof cmdOrUpdater === "function"
|
|
61679
61839
|
).length > 0;
|
|
61680
61840
|
s.start(
|
|
61681
61841
|
`${updatingScripts ? "Updating" : "Adding"} command scripts`,
|
|
@@ -61713,12 +61873,22 @@ var createProject = async (ctx) => {
|
|
|
61713
61873
|
}
|
|
61714
61874
|
const CLOUDFLARE_ACCOUNT_ID = ctx.account.id;
|
|
61715
61875
|
try {
|
|
61716
|
-
const compatFlags =
|
|
61876
|
+
const compatFlags = quote(
|
|
61877
|
+
ctx.framework?.config.compatibilityFlags ?? []
|
|
61878
|
+
);
|
|
61717
61879
|
const compatFlagsArg = compatFlags ? `--compatibility-flags ${compatFlags}` : "";
|
|
61718
61880
|
const productionBranch = await getProductionBranch(ctx.project.path);
|
|
61719
61881
|
const cmd = `${npx5} wrangler pages project create ${ctx.project.name} --production-branch ${productionBranch} ${compatFlagsArg}`;
|
|
61720
61882
|
await retry(
|
|
61721
|
-
|
|
61883
|
+
{
|
|
61884
|
+
times: CREATE_PROJECT_RETRIES,
|
|
61885
|
+
exitCondition: (e) => {
|
|
61886
|
+
return e instanceof Error && // if the error is regarding name duplication we can exist as retrying is not going to help
|
|
61887
|
+
e.message.includes(
|
|
61888
|
+
"A project with this name already exists. Choose a different project name."
|
|
61889
|
+
);
|
|
61890
|
+
}
|
|
61891
|
+
},
|
|
61722
61892
|
async () => runCommand(cmd, {
|
|
61723
61893
|
// Make this command more verbose in test mode to aid
|
|
61724
61894
|
// troubleshooting API errors
|
|
@@ -61735,7 +61905,7 @@ var createProject = async (ctx) => {
|
|
|
61735
61905
|
try {
|
|
61736
61906
|
const verifyProject = `${npx5} wrangler pages deployment list --project-name ${ctx.project.name}`;
|
|
61737
61907
|
await retry(
|
|
61738
|
-
VERIFY_PROJECT_RETRIES,
|
|
61908
|
+
{ times: VERIFY_PROJECT_RETRIES },
|
|
61739
61909
|
async () => runCommand(verifyProject, {
|
|
61740
61910
|
silent: process.env.VITEST == void 0,
|
|
61741
61911
|
cwd: ctx.project.path,
|
|
@@ -61757,12 +61927,21 @@ var import_promises2 = require("fs/promises");
|
|
|
61757
61927
|
var import_os = require("os");
|
|
61758
61928
|
var import_path9 = require("path");
|
|
61759
61929
|
var import_process4 = require("process");
|
|
61930
|
+
var { dlx: dlx14 } = detectPackageManager();
|
|
61760
61931
|
var runWorkersGenerator = async (args) => {
|
|
61932
|
+
const originalCWD = process.cwd();
|
|
61761
61933
|
const { name: name2, path: path3 } = setupProjectDirectory(args);
|
|
61762
61934
|
const ctx = {
|
|
61763
61935
|
project: { name: name2, path: path3 },
|
|
61764
|
-
args
|
|
61936
|
+
args,
|
|
61937
|
+
originalCWD
|
|
61765
61938
|
};
|
|
61939
|
+
ctx.args.ts = await processArgument(ctx.args, "ts", {
|
|
61940
|
+
type: "confirm",
|
|
61941
|
+
question: "Do you want to use TypeScript?",
|
|
61942
|
+
label: "typescript",
|
|
61943
|
+
defaultValue: C3_DEFAULTS.ts
|
|
61944
|
+
});
|
|
61766
61945
|
await copyFiles(ctx);
|
|
61767
61946
|
await copyExistingWorkerFiles(ctx);
|
|
61768
61947
|
await updateFiles(ctx);
|
|
@@ -61778,12 +61957,6 @@ var runWorkersGenerator = async (args) => {
|
|
|
61778
61957
|
await printSummary(ctx);
|
|
61779
61958
|
};
|
|
61780
61959
|
async function getTemplate(ctx) {
|
|
61781
|
-
ctx.args.ts = await processArgument(ctx.args, "ts", {
|
|
61782
|
-
type: "confirm",
|
|
61783
|
-
question: "Do you want to use TypeScript?",
|
|
61784
|
-
label: "typescript",
|
|
61785
|
-
defaultValue: C3_DEFAULTS.ts
|
|
61786
|
-
});
|
|
61787
61960
|
const preexisting = ctx.args.type === "pre-existing";
|
|
61788
61961
|
const template = preexisting ? "hello-world" : ctx.args.type;
|
|
61789
61962
|
const path3 = (0, import_path9.resolve)(
|
|
@@ -61801,6 +61974,7 @@ async function copyFiles(ctx) {
|
|
|
61801
61974
|
const destdir = ctx.project.path;
|
|
61802
61975
|
updateStatus(`Copying files from "${template}" template`);
|
|
61803
61976
|
await (0, import_promises2.cp)(srcdir, destdir, { recursive: true });
|
|
61977
|
+
await (0, import_promises2.rename)((0, import_path9.join)(destdir, "__dot__gitignore"), (0, import_path9.join)(destdir, ".gitignore"));
|
|
61804
61978
|
}
|
|
61805
61979
|
async function copyExistingWorkerFiles(ctx) {
|
|
61806
61980
|
const { preexisting } = await getTemplate(ctx);
|
|
@@ -61822,7 +61996,7 @@ async function copyExistingWorkerFiles(ctx) {
|
|
|
61822
61996
|
(0, import_path9.join)((0, import_os.tmpdir)(), "c3-wrangler-init--from-dash-")
|
|
61823
61997
|
);
|
|
61824
61998
|
await runCommand(
|
|
61825
|
-
|
|
61999
|
+
`${dlx14} wrangler@3 init --from-dash ${ctx.args.existingScript} -y --no-delegate-c3`,
|
|
61826
62000
|
{
|
|
61827
62001
|
silent: true,
|
|
61828
62002
|
cwd: tempdir,
|
|
@@ -61932,6 +62106,10 @@ var parseArgs = async (argv) => {
|
|
|
61932
62106
|
}).option("accept-defaults", {
|
|
61933
62107
|
alias: "y",
|
|
61934
62108
|
type: "boolean"
|
|
62109
|
+
}).option("auto-update", {
|
|
62110
|
+
type: "boolean",
|
|
62111
|
+
default: C3_DEFAULTS.autoUpdate,
|
|
62112
|
+
description: "Automatically uses the latest version of `create-cloudflare`. Set --no-auto-update to disable"
|
|
61935
62113
|
}).option("wrangler-defaults", { type: "boolean", hidden: true }).version(version).strictOptions().alias("h", "help").help();
|
|
61936
62114
|
const args = await yargsObj.argv;
|
|
61937
62115
|
const positionalArgs = args._;
|
|
@@ -61952,7 +62130,10 @@ var processArgument = async (args, name2, promptConfig) => {
|
|
|
61952
62130
|
let value = args[name2];
|
|
61953
62131
|
const renderSubmitted = getRenderers(promptConfig).submit;
|
|
61954
62132
|
if (value !== void 0) {
|
|
61955
|
-
promptConfig.validate?.(value);
|
|
62133
|
+
const error = promptConfig.validate?.(value);
|
|
62134
|
+
if (error) {
|
|
62135
|
+
crash(error);
|
|
62136
|
+
}
|
|
61956
62137
|
const lines = renderSubmitted({ value });
|
|
61957
62138
|
logRaw(lines.join("\n"));
|
|
61958
62139
|
return value;
|
|
@@ -61990,7 +62171,8 @@ var isUpdateAvailable = async () => {
|
|
|
61990
62171
|
};
|
|
61991
62172
|
var runLatest = async () => {
|
|
61992
62173
|
const args = process.argv.slice(2);
|
|
61993
|
-
|
|
62174
|
+
const argString = npm13 === "npm" ? `-- ${quote(args)}` : `${quote(args)}`;
|
|
62175
|
+
await runCommand(`${npm13} create cloudflare@latest ${argString}`);
|
|
61994
62176
|
};
|
|
61995
62177
|
var runCli = async (args) => {
|
|
61996
62178
|
printBanner();
|
|
@@ -62000,7 +62182,7 @@ var runCli = async (args) => {
|
|
|
62000
62182
|
helpText: "also used as application name",
|
|
62001
62183
|
defaultValue: C3_DEFAULTS.projectName,
|
|
62002
62184
|
label: "dir",
|
|
62003
|
-
validate: (value) => validateProjectDirectory(String(value) || C3_DEFAULTS.projectName),
|
|
62185
|
+
validate: (value) => validateProjectDirectory(String(value) || C3_DEFAULTS.projectName, args),
|
|
62004
62186
|
format: (val) => `./${val}`
|
|
62005
62187
|
});
|
|
62006
62188
|
if (!args.type) {
|
|
@@ -62010,7 +62192,7 @@ var runCli = async (args) => {
|
|
|
62010
62192
|
args.type = "pre-existing";
|
|
62011
62193
|
}
|
|
62012
62194
|
}
|
|
62013
|
-
const templateOptions = Object.entries(templateMap).filter(([
|
|
62195
|
+
const templateOptions = Object.entries(templateMap).filter(([_2, { hidden: hidden2 }]) => !hidden2).map(([value, { label }]) => ({ value, label }));
|
|
62014
62196
|
const type = await processArgument(args, "type", {
|
|
62015
62197
|
type: "select",
|
|
62016
62198
|
question: "What type of application do you want to create?",
|