@arcote.tech/arc-cli 0.4.10 → 0.5.1
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/commands/ui/app/src/App.tsx +1 -1
- package/dist/index.js +1407 -822
- package/package.json +7 -1
package/dist/index.js
CHANGED
|
@@ -5,31 +5,49 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
8
13
|
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
9
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
10
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
11
23
|
for (let key of __getOwnPropNames(mod))
|
|
12
24
|
if (!__hasOwnProp.call(to, key))
|
|
13
25
|
__defProp(to, key, {
|
|
14
|
-
get: (
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
15
27
|
enumerable: true
|
|
16
28
|
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
17
31
|
return to;
|
|
18
32
|
};
|
|
19
33
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
+
var __returnValue = (v) => v;
|
|
35
|
+
function __exportSetter(name, newValue) {
|
|
36
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
37
|
+
}
|
|
20
38
|
var __export = (target, all) => {
|
|
21
39
|
for (var name in all)
|
|
22
40
|
__defProp(target, name, {
|
|
23
41
|
get: all[name],
|
|
24
42
|
enumerable: true,
|
|
25
43
|
configurable: true,
|
|
26
|
-
set: (
|
|
44
|
+
set: __exportSetter.bind(all, name)
|
|
27
45
|
});
|
|
28
46
|
};
|
|
29
47
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
30
48
|
var __require = import.meta.require;
|
|
31
49
|
|
|
32
|
-
// ../../node_modules/commander/lib/error.js
|
|
50
|
+
// ../../node_modules/.bun/commander@11.1.0/node_modules/commander/lib/error.js
|
|
33
51
|
var require_error = __commonJS((exports) => {
|
|
34
52
|
class CommanderError extends Error {
|
|
35
53
|
constructor(exitCode, code, message) {
|
|
@@ -53,7 +71,7 @@ var require_error = __commonJS((exports) => {
|
|
|
53
71
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
54
72
|
});
|
|
55
73
|
|
|
56
|
-
// ../../node_modules/commander/lib/argument.js
|
|
74
|
+
// ../../node_modules/.bun/commander@11.1.0/node_modules/commander/lib/argument.js
|
|
57
75
|
var require_argument = __commonJS((exports) => {
|
|
58
76
|
var { InvalidArgumentError } = require_error();
|
|
59
77
|
|
|
@@ -132,7 +150,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
132
150
|
exports.humanReadableArgName = humanReadableArgName;
|
|
133
151
|
});
|
|
134
152
|
|
|
135
|
-
// ../../node_modules/commander/lib/help.js
|
|
153
|
+
// ../../node_modules/.bun/commander@11.1.0/node_modules/commander/lib/help.js
|
|
136
154
|
var require_help = __commonJS((exports) => {
|
|
137
155
|
var { humanReadableArgName } = require_argument();
|
|
138
156
|
|
|
@@ -379,7 +397,7 @@ var require_help = __commonJS((exports) => {
|
|
|
379
397
|
exports.Help = Help;
|
|
380
398
|
});
|
|
381
399
|
|
|
382
|
-
// ../../node_modules/commander/lib/option.js
|
|
400
|
+
// ../../node_modules/.bun/commander@11.1.0/node_modules/commander/lib/option.js
|
|
383
401
|
var require_option = __commonJS((exports) => {
|
|
384
402
|
var { InvalidArgumentError } = require_error();
|
|
385
403
|
|
|
@@ -531,7 +549,7 @@ var require_option = __commonJS((exports) => {
|
|
|
531
549
|
exports.DualOptions = DualOptions;
|
|
532
550
|
});
|
|
533
551
|
|
|
534
|
-
// ../../node_modules/commander/lib/suggestSimilar.js
|
|
552
|
+
// ../../node_modules/.bun/commander@11.1.0/node_modules/commander/lib/suggestSimilar.js
|
|
535
553
|
var require_suggestSimilar = __commonJS((exports) => {
|
|
536
554
|
var maxDistance = 3;
|
|
537
555
|
function editDistance(a, b) {
|
|
@@ -604,13 +622,13 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
|
604
622
|
exports.suggestSimilar = suggestSimilar;
|
|
605
623
|
});
|
|
606
624
|
|
|
607
|
-
// ../../node_modules/commander/lib/command.js
|
|
625
|
+
// ../../node_modules/.bun/commander@11.1.0/node_modules/commander/lib/command.js
|
|
608
626
|
var require_command = __commonJS((exports) => {
|
|
609
|
-
var EventEmitter = __require("
|
|
610
|
-
var childProcess = __require("
|
|
611
|
-
var path = __require("
|
|
612
|
-
var fs = __require("
|
|
613
|
-
var process2 = __require("
|
|
627
|
+
var EventEmitter = __require("events").EventEmitter;
|
|
628
|
+
var childProcess = __require("child_process");
|
|
629
|
+
var path = __require("path");
|
|
630
|
+
var fs = __require("fs");
|
|
631
|
+
var process2 = __require("process");
|
|
614
632
|
var { Argument, humanReadableArgName } = require_argument();
|
|
615
633
|
var { CommanderError } = require_error();
|
|
616
634
|
var { Help } = require_help();
|
|
@@ -1787,7 +1805,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1787
1805
|
exports.Command = Command;
|
|
1788
1806
|
});
|
|
1789
1807
|
|
|
1790
|
-
// ../../node_modules/commander/index.js
|
|
1808
|
+
// ../../node_modules/.bun/commander@11.1.0/node_modules/commander/index.js
|
|
1791
1809
|
var require_commander = __commonJS((exports, module) => {
|
|
1792
1810
|
var { Argument } = require_argument();
|
|
1793
1811
|
var { Command } = require_command();
|
|
@@ -1805,7 +1823,7 @@ var require_commander = __commonJS((exports, module) => {
|
|
|
1805
1823
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
1806
1824
|
});
|
|
1807
1825
|
|
|
1808
|
-
// ../../node_modules/eventemitter3/index.js
|
|
1826
|
+
// ../../node_modules/.bun/eventemitter3@5.0.4/node_modules/eventemitter3/index.js
|
|
1809
1827
|
var require_eventemitter3 = __commonJS((exports, module) => {
|
|
1810
1828
|
var has = Object.prototype.hasOwnProperty;
|
|
1811
1829
|
var prefix = "~";
|
|
@@ -1983,7 +2001,7 @@ var require_eventemitter3 = __commonJS((exports, module) => {
|
|
|
1983
2001
|
}
|
|
1984
2002
|
});
|
|
1985
2003
|
|
|
1986
|
-
// ../../node_modules/rfdc/index.js
|
|
2004
|
+
// ../../node_modules/.bun/rfdc@1.4.1/node_modules/rfdc/index.js
|
|
1987
2005
|
var require_rfdc = __commonJS((exports, module) => {
|
|
1988
2006
|
module.exports = rfdc;
|
|
1989
2007
|
function copyBuffer(cur) {
|
|
@@ -2180,7 +2198,7 @@ var require_rfdc = __commonJS((exports, module) => {
|
|
|
2180
2198
|
}
|
|
2181
2199
|
});
|
|
2182
2200
|
|
|
2183
|
-
// ../../node_modules/environment/index.js
|
|
2201
|
+
// ../../node_modules/.bun/environment@1.1.0/node_modules/environment/index.js
|
|
2184
2202
|
var isBrowser, isNode, isBun, isDeno, isElectron, isJsDom, isWebWorker, isDedicatedWorker, isSharedWorker, isServiceWorker, platform2, isMacOs, isWindows2, isLinux, isIos, isAndroid;
|
|
2185
2203
|
var init_environment = __esm(() => {
|
|
2186
2204
|
isBrowser = globalThis.window?.document !== undefined;
|
|
@@ -2201,9 +2219,10 @@ var init_environment = __esm(() => {
|
|
|
2201
2219
|
isAndroid = platform2 === "Android" || globalThis.navigator?.platform === "Android" || globalThis.navigator?.userAgent?.includes(" Android ") === true || globalThis.process?.platform === "android";
|
|
2202
2220
|
});
|
|
2203
2221
|
|
|
2204
|
-
// ../../node_modules/ansi-escapes/base.js
|
|
2222
|
+
// ../../node_modules/.bun/ansi-escapes@7.3.0/node_modules/ansi-escapes/base.js
|
|
2205
2223
|
var exports_base = {};
|
|
2206
2224
|
__export(exports_base, {
|
|
2225
|
+
synchronizedOutput: () => synchronizedOutput,
|
|
2207
2226
|
setCwd: () => setCwd,
|
|
2208
2227
|
scrollUp: () => scrollUp,
|
|
2209
2228
|
scrollDown: () => scrollDown,
|
|
@@ -2219,6 +2238,7 @@ __export(exports_base, {
|
|
|
2219
2238
|
eraseEndLine: () => eraseEndLine,
|
|
2220
2239
|
eraseDown: () => eraseDown,
|
|
2221
2240
|
enterAlternativeScreen: () => enterAlternativeScreen,
|
|
2241
|
+
endSynchronizedOutput: () => endSynchronizedOutput,
|
|
2222
2242
|
cursorUp: () => cursorUp,
|
|
2223
2243
|
cursorTo: () => cursorTo,
|
|
2224
2244
|
cursorShow: () => cursorShow,
|
|
@@ -2236,11 +2256,12 @@ __export(exports_base, {
|
|
|
2236
2256
|
clearViewport: () => clearViewport,
|
|
2237
2257
|
clearTerminal: () => clearTerminal,
|
|
2238
2258
|
clearScreen: () => clearScreen,
|
|
2259
|
+
beginSynchronizedOutput: () => beginSynchronizedOutput,
|
|
2239
2260
|
beep: () => beep,
|
|
2240
2261
|
ConEmu: () => ConEmu
|
|
2241
2262
|
});
|
|
2242
|
-
import process3 from "
|
|
2243
|
-
import os from "
|
|
2263
|
+
import process3 from "process";
|
|
2264
|
+
import os from "os";
|
|
2244
2265
|
var ESC = "\x1B[", OSC = "\x1B]", BEL = "\x07", SEP = ";", isTerminalApp, isWindows3, isTmux, cwdFunction, wrapOsc = (sequence) => {
|
|
2245
2266
|
if (isTmux) {
|
|
2246
2267
|
return "\x1BPtmux;" + sequence.replaceAll("\x1B", "\x1B\x1B") + "\x1B\\";
|
|
@@ -2293,7 +2314,7 @@ var ESC = "\x1B[", OSC = "\x1B]", BEL = "\x07", SEP = ";", isTerminalApp, isWind
|
|
|
2293
2314
|
return true;
|
|
2294
2315
|
}
|
|
2295
2316
|
return false;
|
|
2296
|
-
}, clearTerminal, enterAlternativeScreen, exitAlternativeScreen, beep, link = (text, url) => {
|
|
2317
|
+
}, clearTerminal, enterAlternativeScreen, exitAlternativeScreen, beginSynchronizedOutput, endSynchronizedOutput, synchronizedOutput = (text) => beginSynchronizedOutput + text + endSynchronizedOutput, beep, link = (text, url) => {
|
|
2297
2318
|
const openLink = wrapOsc(`${OSC}8${SEP}${SEP}${url}${BEL}`);
|
|
2298
2319
|
const closeLink = wrapOsc(`${OSC}8${SEP}${SEP}${BEL}`);
|
|
2299
2320
|
return openLink + text + closeLink;
|
|
@@ -2339,6 +2360,8 @@ var init_base = __esm(() => {
|
|
|
2339
2360
|
clearTerminal = isOldWindows() ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`;
|
|
2340
2361
|
enterAlternativeScreen = ESC + "?1049h";
|
|
2341
2362
|
exitAlternativeScreen = ESC + "?1049l";
|
|
2363
|
+
beginSynchronizedOutput = ESC + "?2026h";
|
|
2364
|
+
endSynchronizedOutput = ESC + "?2026l";
|
|
2342
2365
|
beep = BEL;
|
|
2343
2366
|
iTerm = {
|
|
2344
2367
|
setCwd: (cwd = cwdFunction()) => wrapOsc(`${OSC}50;CurrentDir=${cwd}${BEL}`),
|
|
@@ -2364,13 +2387,13 @@ var init_base = __esm(() => {
|
|
|
2364
2387
|
};
|
|
2365
2388
|
});
|
|
2366
2389
|
|
|
2367
|
-
// ../../node_modules/ansi-escapes/index.js
|
|
2390
|
+
// ../../node_modules/.bun/ansi-escapes@7.3.0/node_modules/ansi-escapes/index.js
|
|
2368
2391
|
var init_ansi_escapes = __esm(() => {
|
|
2369
2392
|
init_base();
|
|
2370
2393
|
init_base();
|
|
2371
2394
|
});
|
|
2372
2395
|
|
|
2373
|
-
// ../../node_modules/mimic-function/index.js
|
|
2396
|
+
// ../../node_modules/.bun/mimic-function@5.0.1/node_modules/mimic-function/index.js
|
|
2374
2397
|
function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
2375
2398
|
const { name } = to;
|
|
2376
2399
|
for (const property of Reflect.ownKeys(from)) {
|
|
@@ -2414,7 +2437,7 @@ var init_mimic_function = __esm(() => {
|
|
|
2414
2437
|
toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
|
2415
2438
|
});
|
|
2416
2439
|
|
|
2417
|
-
// ../../node_modules/
|
|
2440
|
+
// ../../node_modules/.bun/onetime@7.0.0/node_modules/onetime/index.js
|
|
2418
2441
|
var calledFunctions, onetime = (function_, options = {}) => {
|
|
2419
2442
|
if (typeof function_ !== "function") {
|
|
2420
2443
|
throw new TypeError("Expected a function");
|
|
@@ -2448,7 +2471,7 @@ var init_onetime = __esm(() => {
|
|
|
2448
2471
|
onetime_default = onetime;
|
|
2449
2472
|
});
|
|
2450
2473
|
|
|
2451
|
-
// ../../node_modules/signal-exit/dist/mjs/signals.js
|
|
2474
|
+
// ../../node_modules/.bun/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
2452
2475
|
var signals;
|
|
2453
2476
|
var init_signals = __esm(() => {
|
|
2454
2477
|
signals = [];
|
|
@@ -2461,7 +2484,7 @@ var init_signals = __esm(() => {
|
|
|
2461
2484
|
}
|
|
2462
2485
|
});
|
|
2463
2486
|
|
|
2464
|
-
// ../../node_modules/signal-exit/dist/mjs/index.js
|
|
2487
|
+
// ../../node_modules/.bun/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
2465
2488
|
class Emitter {
|
|
2466
2489
|
emitted = {
|
|
2467
2490
|
afterExit: false,
|
|
@@ -2658,8 +2681,8 @@ var init_mjs = __esm(() => {
|
|
|
2658
2681
|
} = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback));
|
|
2659
2682
|
});
|
|
2660
2683
|
|
|
2661
|
-
// ../../node_modules/
|
|
2662
|
-
import process5 from "
|
|
2684
|
+
// ../../node_modules/.bun/restore-cursor@5.1.0/node_modules/restore-cursor/index.js
|
|
2685
|
+
import process5 from "process";
|
|
2663
2686
|
var terminal, restoreCursor, restore_cursor_default;
|
|
2664
2687
|
var init_restore_cursor = __esm(() => {
|
|
2665
2688
|
init_onetime();
|
|
@@ -2673,8 +2696,8 @@ var init_restore_cursor = __esm(() => {
|
|
|
2673
2696
|
restore_cursor_default = restoreCursor;
|
|
2674
2697
|
});
|
|
2675
2698
|
|
|
2676
|
-
// ../../node_modules/
|
|
2677
|
-
import process6 from "
|
|
2699
|
+
// ../../node_modules/.bun/cli-cursor@5.0.0/node_modules/cli-cursor/index.js
|
|
2700
|
+
import process6 from "process";
|
|
2678
2701
|
var isHidden = false, cliCursor, cli_cursor_default;
|
|
2679
2702
|
var init_cli_cursor = __esm(() => {
|
|
2680
2703
|
init_restore_cursor();
|
|
@@ -2707,7 +2730,7 @@ var init_cli_cursor = __esm(() => {
|
|
|
2707
2730
|
cli_cursor_default = cliCursor;
|
|
2708
2731
|
});
|
|
2709
2732
|
|
|
2710
|
-
// ../../node_modules/ansi-regex/index.js
|
|
2733
|
+
// ../../node_modules/.bun/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
|
|
2711
2734
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
2712
2735
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
2713
2736
|
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
@@ -2716,11 +2739,14 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
2716
2739
|
return new RegExp(pattern, onlyFirst ? undefined : "g");
|
|
2717
2740
|
}
|
|
2718
2741
|
|
|
2719
|
-
// ../../node_modules/strip-ansi/index.js
|
|
2742
|
+
// ../../node_modules/.bun/strip-ansi@7.2.0/node_modules/strip-ansi/index.js
|
|
2720
2743
|
function stripAnsi(string) {
|
|
2721
2744
|
if (typeof string !== "string") {
|
|
2722
2745
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
2723
2746
|
}
|
|
2747
|
+
if (!string.includes("\x1B") && !string.includes("\x9B")) {
|
|
2748
|
+
return string;
|
|
2749
|
+
}
|
|
2724
2750
|
return string.replace(regex, "");
|
|
2725
2751
|
}
|
|
2726
2752
|
var regex;
|
|
@@ -2728,19 +2754,86 @@ var init_strip_ansi = __esm(() => {
|
|
|
2728
2754
|
regex = ansiRegex();
|
|
2729
2755
|
});
|
|
2730
2756
|
|
|
2731
|
-
// ../../node_modules/get-east-asian-width/lookup.js
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2757
|
+
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.js
|
|
2758
|
+
var ambiguousRanges, fullwidthRanges, halfwidthRanges, narrowRanges, wideRanges;
|
|
2759
|
+
var init_lookup_data = __esm(() => {
|
|
2760
|
+
ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
2761
|
+
fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
2762
|
+
halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
2763
|
+
narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
2764
|
+
wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
2765
|
+
});
|
|
2766
|
+
|
|
2767
|
+
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.js
|
|
2768
|
+
var isInRange = (ranges, codePoint) => {
|
|
2769
|
+
let low = 0;
|
|
2770
|
+
let high = Math.floor(ranges.length / 2) - 1;
|
|
2771
|
+
while (low <= high) {
|
|
2772
|
+
const mid = Math.floor((low + high) / 2);
|
|
2773
|
+
const i = mid * 2;
|
|
2774
|
+
if (codePoint < ranges[i]) {
|
|
2775
|
+
high = mid - 1;
|
|
2776
|
+
} else if (codePoint > ranges[i + 1]) {
|
|
2777
|
+
low = mid + 1;
|
|
2778
|
+
} else {
|
|
2779
|
+
return true;
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
return false;
|
|
2783
|
+
};
|
|
2784
|
+
|
|
2785
|
+
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.js
|
|
2786
|
+
function findWideFastPathRange(ranges) {
|
|
2787
|
+
let fastPathStart = ranges[0];
|
|
2788
|
+
let fastPathEnd = ranges[1];
|
|
2789
|
+
for (let index = 0;index < ranges.length; index += 2) {
|
|
2790
|
+
const start = ranges[index];
|
|
2791
|
+
const end = ranges[index + 1];
|
|
2792
|
+
if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
|
|
2793
|
+
return [start, end];
|
|
2794
|
+
}
|
|
2795
|
+
if (end - start > fastPathEnd - fastPathStart) {
|
|
2796
|
+
fastPathStart = start;
|
|
2797
|
+
fastPathEnd = end;
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
return [fastPathStart, fastPathEnd];
|
|
2740
2801
|
}
|
|
2741
|
-
var
|
|
2802
|
+
var minimumAmbiguousCodePoint, maximumAmbiguousCodePoint, minimumFullWidthCodePoint, maximumFullWidthCodePoint, minimumHalfWidthCodePoint, maximumHalfWidthCodePoint, minimumNarrowCodePoint, maximumNarrowCodePoint, minimumWideCodePoint, maximumWideCodePoint, commonCjkCodePoint = 19968, wideFastPathStart, wideFastPathEnd, isAmbiguous = (codePoint) => {
|
|
2803
|
+
if (codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint) {
|
|
2804
|
+
return false;
|
|
2805
|
+
}
|
|
2806
|
+
return isInRange(ambiguousRanges, codePoint);
|
|
2807
|
+
}, isFullWidth = (codePoint) => {
|
|
2808
|
+
if (codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint) {
|
|
2809
|
+
return false;
|
|
2810
|
+
}
|
|
2811
|
+
return isInRange(fullwidthRanges, codePoint);
|
|
2812
|
+
}, isWide = (codePoint) => {
|
|
2813
|
+
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
2814
|
+
return true;
|
|
2815
|
+
}
|
|
2816
|
+
if (codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint) {
|
|
2817
|
+
return false;
|
|
2818
|
+
}
|
|
2819
|
+
return isInRange(wideRanges, codePoint);
|
|
2820
|
+
};
|
|
2821
|
+
var init_lookup = __esm(() => {
|
|
2822
|
+
init_lookup_data();
|
|
2823
|
+
minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
2824
|
+
maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
2825
|
+
minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
2826
|
+
maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
2827
|
+
minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
2828
|
+
maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
2829
|
+
minimumNarrowCodePoint = narrowRanges[0];
|
|
2830
|
+
maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
2831
|
+
minimumWideCodePoint = wideRanges[0];
|
|
2832
|
+
maximumWideCodePoint = wideRanges.at(-1);
|
|
2833
|
+
[wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
2834
|
+
});
|
|
2742
2835
|
|
|
2743
|
-
// ../../node_modules/get-east-asian-width/index.js
|
|
2836
|
+
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.js
|
|
2744
2837
|
function validate(codePoint) {
|
|
2745
2838
|
if (!Number.isSafeInteger(codePoint)) {
|
|
2746
2839
|
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
@@ -2758,12 +2851,12 @@ var init_get_east_asian_width = __esm(() => {
|
|
|
2758
2851
|
init_lookup();
|
|
2759
2852
|
});
|
|
2760
2853
|
|
|
2761
|
-
// ../../node_modules/
|
|
2854
|
+
// ../../node_modules/.bun/emoji-regex@10.6.0/node_modules/emoji-regex/index.mjs
|
|
2762
2855
|
var emoji_regex_default = () => {
|
|
2763
2856
|
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
2764
2857
|
};
|
|
2765
2858
|
|
|
2766
|
-
// ../../node_modules/
|
|
2859
|
+
// ../../node_modules/.bun/string-width@7.2.0/node_modules/string-width/index.js
|
|
2767
2860
|
function stringWidth(string, options = {}) {
|
|
2768
2861
|
if (typeof string !== "string" || string.length === 0) {
|
|
2769
2862
|
return 0;
|
|
@@ -2816,7 +2909,7 @@ var init_string_width = __esm(() => {
|
|
|
2816
2909
|
defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
2817
2910
|
});
|
|
2818
2911
|
|
|
2819
|
-
// ../../node_modules/
|
|
2912
|
+
// ../../node_modules/.bun/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
|
|
2820
2913
|
function assembleStyles() {
|
|
2821
2914
|
const codes = new Map;
|
|
2822
2915
|
for (const [groupName, group] of Object.entries(styles)) {
|
|
@@ -2992,7 +3085,7 @@ var init_ansi_styles = __esm(() => {
|
|
|
2992
3085
|
ansi_styles_default = ansiStyles;
|
|
2993
3086
|
});
|
|
2994
3087
|
|
|
2995
|
-
// ../../node_modules/wrap-ansi/index.js
|
|
3088
|
+
// ../../node_modules/.bun/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.js
|
|
2996
3089
|
var exports_wrap_ansi = {};
|
|
2997
3090
|
__export(exports_wrap_ansi, {
|
|
2998
3091
|
default: () => wrapAnsi
|
|
@@ -3153,183 +3246,7 @@ var init_wrap_ansi = __esm(() => {
|
|
|
3153
3246
|
ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
3154
3247
|
});
|
|
3155
3248
|
|
|
3156
|
-
// ../../node_modules/
|
|
3157
|
-
function assembleStyles2() {
|
|
3158
|
-
const codes = new Map;
|
|
3159
|
-
for (const [groupName, group] of Object.entries(styles2)) {
|
|
3160
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
3161
|
-
styles2[styleName] = {
|
|
3162
|
-
open: `\x1B[${style[0]}m`,
|
|
3163
|
-
close: `\x1B[${style[1]}m`
|
|
3164
|
-
};
|
|
3165
|
-
group[styleName] = styles2[styleName];
|
|
3166
|
-
codes.set(style[0], style[1]);
|
|
3167
|
-
}
|
|
3168
|
-
Object.defineProperty(styles2, groupName, {
|
|
3169
|
-
value: group,
|
|
3170
|
-
enumerable: false
|
|
3171
|
-
});
|
|
3172
|
-
}
|
|
3173
|
-
Object.defineProperty(styles2, "codes", {
|
|
3174
|
-
value: codes,
|
|
3175
|
-
enumerable: false
|
|
3176
|
-
});
|
|
3177
|
-
styles2.color.close = "\x1B[39m";
|
|
3178
|
-
styles2.bgColor.close = "\x1B[49m";
|
|
3179
|
-
styles2.color.ansi = wrapAnsi162();
|
|
3180
|
-
styles2.color.ansi256 = wrapAnsi2562();
|
|
3181
|
-
styles2.color.ansi16m = wrapAnsi16m2();
|
|
3182
|
-
styles2.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
|
|
3183
|
-
styles2.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
|
|
3184
|
-
styles2.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
|
|
3185
|
-
Object.defineProperties(styles2, {
|
|
3186
|
-
rgbToAnsi256: {
|
|
3187
|
-
value(red2, green2, blue2) {
|
|
3188
|
-
if (red2 === green2 && green2 === blue2) {
|
|
3189
|
-
if (red2 < 8) {
|
|
3190
|
-
return 16;
|
|
3191
|
-
}
|
|
3192
|
-
if (red2 > 248) {
|
|
3193
|
-
return 231;
|
|
3194
|
-
}
|
|
3195
|
-
return Math.round((red2 - 8) / 247 * 24) + 232;
|
|
3196
|
-
}
|
|
3197
|
-
return 16 + 36 * Math.round(red2 / 255 * 5) + 6 * Math.round(green2 / 255 * 5) + Math.round(blue2 / 255 * 5);
|
|
3198
|
-
},
|
|
3199
|
-
enumerable: false
|
|
3200
|
-
},
|
|
3201
|
-
hexToRgb: {
|
|
3202
|
-
value(hex) {
|
|
3203
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
3204
|
-
if (!matches) {
|
|
3205
|
-
return [0, 0, 0];
|
|
3206
|
-
}
|
|
3207
|
-
let [colorString] = matches;
|
|
3208
|
-
if (colorString.length === 3) {
|
|
3209
|
-
colorString = [...colorString].map((character) => character + character).join("");
|
|
3210
|
-
}
|
|
3211
|
-
const integer = Number.parseInt(colorString, 16);
|
|
3212
|
-
return [
|
|
3213
|
-
integer >> 16 & 255,
|
|
3214
|
-
integer >> 8 & 255,
|
|
3215
|
-
integer & 255
|
|
3216
|
-
];
|
|
3217
|
-
},
|
|
3218
|
-
enumerable: false
|
|
3219
|
-
},
|
|
3220
|
-
hexToAnsi256: {
|
|
3221
|
-
value: (hex) => styles2.rgbToAnsi256(...styles2.hexToRgb(hex)),
|
|
3222
|
-
enumerable: false
|
|
3223
|
-
},
|
|
3224
|
-
ansi256ToAnsi: {
|
|
3225
|
-
value(code) {
|
|
3226
|
-
if (code < 8) {
|
|
3227
|
-
return 30 + code;
|
|
3228
|
-
}
|
|
3229
|
-
if (code < 16) {
|
|
3230
|
-
return 90 + (code - 8);
|
|
3231
|
-
}
|
|
3232
|
-
let red2;
|
|
3233
|
-
let green2;
|
|
3234
|
-
let blue2;
|
|
3235
|
-
if (code >= 232) {
|
|
3236
|
-
red2 = ((code - 232) * 10 + 8) / 255;
|
|
3237
|
-
green2 = red2;
|
|
3238
|
-
blue2 = red2;
|
|
3239
|
-
} else {
|
|
3240
|
-
code -= 16;
|
|
3241
|
-
const remainder = code % 36;
|
|
3242
|
-
red2 = Math.floor(code / 36) / 5;
|
|
3243
|
-
green2 = Math.floor(remainder / 6) / 5;
|
|
3244
|
-
blue2 = remainder % 6 / 5;
|
|
3245
|
-
}
|
|
3246
|
-
const value = Math.max(red2, green2, blue2) * 2;
|
|
3247
|
-
if (value === 0) {
|
|
3248
|
-
return 30;
|
|
3249
|
-
}
|
|
3250
|
-
let result = 30 + (Math.round(blue2) << 2 | Math.round(green2) << 1 | Math.round(red2));
|
|
3251
|
-
if (value === 2) {
|
|
3252
|
-
result += 60;
|
|
3253
|
-
}
|
|
3254
|
-
return result;
|
|
3255
|
-
},
|
|
3256
|
-
enumerable: false
|
|
3257
|
-
},
|
|
3258
|
-
rgbToAnsi: {
|
|
3259
|
-
value: (red2, green2, blue2) => styles2.ansi256ToAnsi(styles2.rgbToAnsi256(red2, green2, blue2)),
|
|
3260
|
-
enumerable: false
|
|
3261
|
-
},
|
|
3262
|
-
hexToAnsi: {
|
|
3263
|
-
value: (hex) => styles2.ansi256ToAnsi(styles2.hexToAnsi256(hex)),
|
|
3264
|
-
enumerable: false
|
|
3265
|
-
}
|
|
3266
|
-
});
|
|
3267
|
-
return styles2;
|
|
3268
|
-
}
|
|
3269
|
-
var ANSI_BACKGROUND_OFFSET2 = 10, wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m2 = (offset = 0) => (red2, green2, blue2) => `\x1B[${38 + offset};2;${red2};${green2};${blue2}m`, styles2, modifierNames2, foregroundColorNames2, backgroundColorNames2, colorNames2, ansiStyles2, ansi_styles_default2;
|
|
3270
|
-
var init_ansi_styles2 = __esm(() => {
|
|
3271
|
-
styles2 = {
|
|
3272
|
-
modifier: {
|
|
3273
|
-
reset: [0, 0],
|
|
3274
|
-
bold: [1, 22],
|
|
3275
|
-
dim: [2, 22],
|
|
3276
|
-
italic: [3, 23],
|
|
3277
|
-
underline: [4, 24],
|
|
3278
|
-
overline: [53, 55],
|
|
3279
|
-
inverse: [7, 27],
|
|
3280
|
-
hidden: [8, 28],
|
|
3281
|
-
strikethrough: [9, 29]
|
|
3282
|
-
},
|
|
3283
|
-
color: {
|
|
3284
|
-
black: [30, 39],
|
|
3285
|
-
red: [31, 39],
|
|
3286
|
-
green: [32, 39],
|
|
3287
|
-
yellow: [33, 39],
|
|
3288
|
-
blue: [34, 39],
|
|
3289
|
-
magenta: [35, 39],
|
|
3290
|
-
cyan: [36, 39],
|
|
3291
|
-
white: [37, 39],
|
|
3292
|
-
blackBright: [90, 39],
|
|
3293
|
-
gray: [90, 39],
|
|
3294
|
-
grey: [90, 39],
|
|
3295
|
-
redBright: [91, 39],
|
|
3296
|
-
greenBright: [92, 39],
|
|
3297
|
-
yellowBright: [93, 39],
|
|
3298
|
-
blueBright: [94, 39],
|
|
3299
|
-
magentaBright: [95, 39],
|
|
3300
|
-
cyanBright: [96, 39],
|
|
3301
|
-
whiteBright: [97, 39]
|
|
3302
|
-
},
|
|
3303
|
-
bgColor: {
|
|
3304
|
-
bgBlack: [40, 49],
|
|
3305
|
-
bgRed: [41, 49],
|
|
3306
|
-
bgGreen: [42, 49],
|
|
3307
|
-
bgYellow: [43, 49],
|
|
3308
|
-
bgBlue: [44, 49],
|
|
3309
|
-
bgMagenta: [45, 49],
|
|
3310
|
-
bgCyan: [46, 49],
|
|
3311
|
-
bgWhite: [47, 49],
|
|
3312
|
-
bgBlackBright: [100, 49],
|
|
3313
|
-
bgGray: [100, 49],
|
|
3314
|
-
bgGrey: [100, 49],
|
|
3315
|
-
bgRedBright: [101, 49],
|
|
3316
|
-
bgGreenBright: [102, 49],
|
|
3317
|
-
bgYellowBright: [103, 49],
|
|
3318
|
-
bgBlueBright: [104, 49],
|
|
3319
|
-
bgMagentaBright: [105, 49],
|
|
3320
|
-
bgCyanBright: [106, 49],
|
|
3321
|
-
bgWhiteBright: [107, 49]
|
|
3322
|
-
}
|
|
3323
|
-
};
|
|
3324
|
-
modifierNames2 = Object.keys(styles2.modifier);
|
|
3325
|
-
foregroundColorNames2 = Object.keys(styles2.color);
|
|
3326
|
-
backgroundColorNames2 = Object.keys(styles2.bgColor);
|
|
3327
|
-
colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
|
|
3328
|
-
ansiStyles2 = assembleStyles2();
|
|
3329
|
-
ansi_styles_default2 = ansiStyles2;
|
|
3330
|
-
});
|
|
3331
|
-
|
|
3332
|
-
// ../../node_modules/log-update/node_modules/slice-ansi/node_modules/is-fullwidth-code-point/index.js
|
|
3249
|
+
// ../../node_modules/.bun/is-fullwidth-code-point@5.1.0/node_modules/is-fullwidth-code-point/index.js
|
|
3333
3250
|
function isFullwidthCodePoint(codePoint) {
|
|
3334
3251
|
if (!Number.isInteger(codePoint)) {
|
|
3335
3252
|
return false;
|
|
@@ -3340,7 +3257,7 @@ var init_is_fullwidth_code_point = __esm(() => {
|
|
|
3340
3257
|
init_get_east_asian_width();
|
|
3341
3258
|
});
|
|
3342
3259
|
|
|
3343
|
-
// ../../node_modules/
|
|
3260
|
+
// ../../node_modules/.bun/slice-ansi@7.1.2/node_modules/slice-ansi/index.js
|
|
3344
3261
|
function getEndCode(code) {
|
|
3345
3262
|
if (endCodesSet.has(code)) {
|
|
3346
3263
|
return code;
|
|
@@ -3352,11 +3269,11 @@ function getEndCode(code) {
|
|
|
3352
3269
|
if (code.includes(";")) {
|
|
3353
3270
|
code = code[0] + "0";
|
|
3354
3271
|
}
|
|
3355
|
-
const returnValue =
|
|
3272
|
+
const returnValue = ansi_styles_default.codes.get(Number.parseInt(code, 10));
|
|
3356
3273
|
if (returnValue) {
|
|
3357
|
-
return
|
|
3274
|
+
return ansi_styles_default.color.ansi(returnValue);
|
|
3358
3275
|
}
|
|
3359
|
-
return
|
|
3276
|
+
return ansi_styles_default.reset.open;
|
|
3360
3277
|
}
|
|
3361
3278
|
function findNumberIndex(string) {
|
|
3362
3279
|
for (let index = 0;index < string.length; index++) {
|
|
@@ -3414,7 +3331,7 @@ function tokenize(string, endCharacter = Number.POSITIVE_INFINITY) {
|
|
|
3414
3331
|
function reduceAnsiCodes(codes) {
|
|
3415
3332
|
let returnValue = [];
|
|
3416
3333
|
for (const code of codes) {
|
|
3417
|
-
if (code.code ===
|
|
3334
|
+
if (code.code === ansi_styles_default.reset.open) {
|
|
3418
3335
|
returnValue = [];
|
|
3419
3336
|
} else if (endCodesSet.has(code.code)) {
|
|
3420
3337
|
returnValue = returnValue.filter((returnValueCode) => returnValueCode.endCode !== code.code);
|
|
@@ -3462,27 +3379,27 @@ function sliceAnsi(string, start, end) {
|
|
|
3462
3379
|
}
|
|
3463
3380
|
var ESCAPES2, CODE_POINT_0, CODE_POINT_9, MAX_ANSI_SEQUENCE_LENGTH = 19, endCodesSet, endCodesMap;
|
|
3464
3381
|
var init_slice_ansi = __esm(() => {
|
|
3465
|
-
|
|
3382
|
+
init_ansi_styles();
|
|
3466
3383
|
init_is_fullwidth_code_point();
|
|
3467
3384
|
ESCAPES2 = new Set([27, 155]);
|
|
3468
3385
|
CODE_POINT_0 = "0".codePointAt(0);
|
|
3469
3386
|
CODE_POINT_9 = "9".codePointAt(0);
|
|
3470
3387
|
endCodesSet = new Set;
|
|
3471
3388
|
endCodesMap = new Map;
|
|
3472
|
-
for (const [start, end] of
|
|
3473
|
-
endCodesSet.add(
|
|
3474
|
-
endCodesMap.set(
|
|
3389
|
+
for (const [start, end] of ansi_styles_default.codes) {
|
|
3390
|
+
endCodesSet.add(ansi_styles_default.color.ansi(end));
|
|
3391
|
+
endCodesMap.set(ansi_styles_default.color.ansi(start), ansi_styles_default.color.ansi(end));
|
|
3475
3392
|
}
|
|
3476
3393
|
});
|
|
3477
3394
|
|
|
3478
|
-
// ../../node_modules/log-update/index.js
|
|
3395
|
+
// ../../node_modules/.bun/log-update@6.1.0/node_modules/log-update/index.js
|
|
3479
3396
|
var exports_log_update = {};
|
|
3480
3397
|
__export(exports_log_update, {
|
|
3481
3398
|
logUpdateStderr: () => logUpdateStderr,
|
|
3482
3399
|
default: () => log_update_default,
|
|
3483
3400
|
createLogUpdate: () => createLogUpdate
|
|
3484
3401
|
});
|
|
3485
|
-
import process7 from "
|
|
3402
|
+
import process7 from "process";
|
|
3486
3403
|
function createLogUpdate(stream, { showCursor = false } = {}) {
|
|
3487
3404
|
let previousLineCount = 0;
|
|
3488
3405
|
let previousWidth = getWidth(stream);
|
|
@@ -3540,7 +3457,7 @@ var init_log_update = __esm(() => {
|
|
|
3540
3457
|
logUpdateStderr = createLogUpdate(process7.stderr);
|
|
3541
3458
|
});
|
|
3542
3459
|
|
|
3543
|
-
// ../../node_modules/
|
|
3460
|
+
// ../../node_modules/.bun/is-fullwidth-code-point@4.0.0/node_modules/is-fullwidth-code-point/index.js
|
|
3544
3461
|
function isFullwidthCodePoint2(codePoint) {
|
|
3545
3462
|
if (!Number.isInteger(codePoint)) {
|
|
3546
3463
|
return false;
|
|
@@ -3548,183 +3465,7 @@ function isFullwidthCodePoint2(codePoint) {
|
|
|
3548
3465
|
return codePoint >= 4352 && (codePoint <= 4447 || codePoint === 9001 || codePoint === 9002 || 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || 12880 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65131 || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 262141);
|
|
3549
3466
|
}
|
|
3550
3467
|
|
|
3551
|
-
// ../../node_modules/slice-ansi/node_modules/ansi
|
|
3552
|
-
function assembleStyles3() {
|
|
3553
|
-
const codes = new Map;
|
|
3554
|
-
for (const [groupName, group] of Object.entries(styles3)) {
|
|
3555
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
3556
|
-
styles3[styleName] = {
|
|
3557
|
-
open: `\x1B[${style[0]}m`,
|
|
3558
|
-
close: `\x1B[${style[1]}m`
|
|
3559
|
-
};
|
|
3560
|
-
group[styleName] = styles3[styleName];
|
|
3561
|
-
codes.set(style[0], style[1]);
|
|
3562
|
-
}
|
|
3563
|
-
Object.defineProperty(styles3, groupName, {
|
|
3564
|
-
value: group,
|
|
3565
|
-
enumerable: false
|
|
3566
|
-
});
|
|
3567
|
-
}
|
|
3568
|
-
Object.defineProperty(styles3, "codes", {
|
|
3569
|
-
value: codes,
|
|
3570
|
-
enumerable: false
|
|
3571
|
-
});
|
|
3572
|
-
styles3.color.close = "\x1B[39m";
|
|
3573
|
-
styles3.bgColor.close = "\x1B[49m";
|
|
3574
|
-
styles3.color.ansi = wrapAnsi163();
|
|
3575
|
-
styles3.color.ansi256 = wrapAnsi2563();
|
|
3576
|
-
styles3.color.ansi16m = wrapAnsi16m3();
|
|
3577
|
-
styles3.bgColor.ansi = wrapAnsi163(ANSI_BACKGROUND_OFFSET3);
|
|
3578
|
-
styles3.bgColor.ansi256 = wrapAnsi2563(ANSI_BACKGROUND_OFFSET3);
|
|
3579
|
-
styles3.bgColor.ansi16m = wrapAnsi16m3(ANSI_BACKGROUND_OFFSET3);
|
|
3580
|
-
Object.defineProperties(styles3, {
|
|
3581
|
-
rgbToAnsi256: {
|
|
3582
|
-
value(red2, green2, blue2) {
|
|
3583
|
-
if (red2 === green2 && green2 === blue2) {
|
|
3584
|
-
if (red2 < 8) {
|
|
3585
|
-
return 16;
|
|
3586
|
-
}
|
|
3587
|
-
if (red2 > 248) {
|
|
3588
|
-
return 231;
|
|
3589
|
-
}
|
|
3590
|
-
return Math.round((red2 - 8) / 247 * 24) + 232;
|
|
3591
|
-
}
|
|
3592
|
-
return 16 + 36 * Math.round(red2 / 255 * 5) + 6 * Math.round(green2 / 255 * 5) + Math.round(blue2 / 255 * 5);
|
|
3593
|
-
},
|
|
3594
|
-
enumerable: false
|
|
3595
|
-
},
|
|
3596
|
-
hexToRgb: {
|
|
3597
|
-
value(hex) {
|
|
3598
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
3599
|
-
if (!matches) {
|
|
3600
|
-
return [0, 0, 0];
|
|
3601
|
-
}
|
|
3602
|
-
let [colorString] = matches;
|
|
3603
|
-
if (colorString.length === 3) {
|
|
3604
|
-
colorString = [...colorString].map((character) => character + character).join("");
|
|
3605
|
-
}
|
|
3606
|
-
const integer = Number.parseInt(colorString, 16);
|
|
3607
|
-
return [
|
|
3608
|
-
integer >> 16 & 255,
|
|
3609
|
-
integer >> 8 & 255,
|
|
3610
|
-
integer & 255
|
|
3611
|
-
];
|
|
3612
|
-
},
|
|
3613
|
-
enumerable: false
|
|
3614
|
-
},
|
|
3615
|
-
hexToAnsi256: {
|
|
3616
|
-
value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
|
|
3617
|
-
enumerable: false
|
|
3618
|
-
},
|
|
3619
|
-
ansi256ToAnsi: {
|
|
3620
|
-
value(code) {
|
|
3621
|
-
if (code < 8) {
|
|
3622
|
-
return 30 + code;
|
|
3623
|
-
}
|
|
3624
|
-
if (code < 16) {
|
|
3625
|
-
return 90 + (code - 8);
|
|
3626
|
-
}
|
|
3627
|
-
let red2;
|
|
3628
|
-
let green2;
|
|
3629
|
-
let blue2;
|
|
3630
|
-
if (code >= 232) {
|
|
3631
|
-
red2 = ((code - 232) * 10 + 8) / 255;
|
|
3632
|
-
green2 = red2;
|
|
3633
|
-
blue2 = red2;
|
|
3634
|
-
} else {
|
|
3635
|
-
code -= 16;
|
|
3636
|
-
const remainder = code % 36;
|
|
3637
|
-
red2 = Math.floor(code / 36) / 5;
|
|
3638
|
-
green2 = Math.floor(remainder / 6) / 5;
|
|
3639
|
-
blue2 = remainder % 6 / 5;
|
|
3640
|
-
}
|
|
3641
|
-
const value = Math.max(red2, green2, blue2) * 2;
|
|
3642
|
-
if (value === 0) {
|
|
3643
|
-
return 30;
|
|
3644
|
-
}
|
|
3645
|
-
let result = 30 + (Math.round(blue2) << 2 | Math.round(green2) << 1 | Math.round(red2));
|
|
3646
|
-
if (value === 2) {
|
|
3647
|
-
result += 60;
|
|
3648
|
-
}
|
|
3649
|
-
return result;
|
|
3650
|
-
},
|
|
3651
|
-
enumerable: false
|
|
3652
|
-
},
|
|
3653
|
-
rgbToAnsi: {
|
|
3654
|
-
value: (red2, green2, blue2) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red2, green2, blue2)),
|
|
3655
|
-
enumerable: false
|
|
3656
|
-
},
|
|
3657
|
-
hexToAnsi: {
|
|
3658
|
-
value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
|
|
3659
|
-
enumerable: false
|
|
3660
|
-
}
|
|
3661
|
-
});
|
|
3662
|
-
return styles3;
|
|
3663
|
-
}
|
|
3664
|
-
var ANSI_BACKGROUND_OFFSET3 = 10, wrapAnsi163 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi2563 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m3 = (offset = 0) => (red2, green2, blue2) => `\x1B[${38 + offset};2;${red2};${green2};${blue2}m`, styles3, modifierNames3, foregroundColorNames3, backgroundColorNames3, colorNames3, ansiStyles3, ansi_styles_default3;
|
|
3665
|
-
var init_ansi_styles3 = __esm(() => {
|
|
3666
|
-
styles3 = {
|
|
3667
|
-
modifier: {
|
|
3668
|
-
reset: [0, 0],
|
|
3669
|
-
bold: [1, 22],
|
|
3670
|
-
dim: [2, 22],
|
|
3671
|
-
italic: [3, 23],
|
|
3672
|
-
underline: [4, 24],
|
|
3673
|
-
overline: [53, 55],
|
|
3674
|
-
inverse: [7, 27],
|
|
3675
|
-
hidden: [8, 28],
|
|
3676
|
-
strikethrough: [9, 29]
|
|
3677
|
-
},
|
|
3678
|
-
color: {
|
|
3679
|
-
black: [30, 39],
|
|
3680
|
-
red: [31, 39],
|
|
3681
|
-
green: [32, 39],
|
|
3682
|
-
yellow: [33, 39],
|
|
3683
|
-
blue: [34, 39],
|
|
3684
|
-
magenta: [35, 39],
|
|
3685
|
-
cyan: [36, 39],
|
|
3686
|
-
white: [37, 39],
|
|
3687
|
-
blackBright: [90, 39],
|
|
3688
|
-
gray: [90, 39],
|
|
3689
|
-
grey: [90, 39],
|
|
3690
|
-
redBright: [91, 39],
|
|
3691
|
-
greenBright: [92, 39],
|
|
3692
|
-
yellowBright: [93, 39],
|
|
3693
|
-
blueBright: [94, 39],
|
|
3694
|
-
magentaBright: [95, 39],
|
|
3695
|
-
cyanBright: [96, 39],
|
|
3696
|
-
whiteBright: [97, 39]
|
|
3697
|
-
},
|
|
3698
|
-
bgColor: {
|
|
3699
|
-
bgBlack: [40, 49],
|
|
3700
|
-
bgRed: [41, 49],
|
|
3701
|
-
bgGreen: [42, 49],
|
|
3702
|
-
bgYellow: [43, 49],
|
|
3703
|
-
bgBlue: [44, 49],
|
|
3704
|
-
bgMagenta: [45, 49],
|
|
3705
|
-
bgCyan: [46, 49],
|
|
3706
|
-
bgWhite: [47, 49],
|
|
3707
|
-
bgBlackBright: [100, 49],
|
|
3708
|
-
bgGray: [100, 49],
|
|
3709
|
-
bgGrey: [100, 49],
|
|
3710
|
-
bgRedBright: [101, 49],
|
|
3711
|
-
bgGreenBright: [102, 49],
|
|
3712
|
-
bgYellowBright: [103, 49],
|
|
3713
|
-
bgBlueBright: [104, 49],
|
|
3714
|
-
bgMagentaBright: [105, 49],
|
|
3715
|
-
bgCyanBright: [106, 49],
|
|
3716
|
-
bgWhiteBright: [107, 49]
|
|
3717
|
-
}
|
|
3718
|
-
};
|
|
3719
|
-
modifierNames3 = Object.keys(styles3.modifier);
|
|
3720
|
-
foregroundColorNames3 = Object.keys(styles3.color);
|
|
3721
|
-
backgroundColorNames3 = Object.keys(styles3.bgColor);
|
|
3722
|
-
colorNames3 = [...foregroundColorNames3, ...backgroundColorNames3];
|
|
3723
|
-
ansiStyles3 = assembleStyles3();
|
|
3724
|
-
ansi_styles_default3 = ansiStyles3;
|
|
3725
|
-
});
|
|
3726
|
-
|
|
3727
|
-
// ../../node_modules/slice-ansi/index.js
|
|
3468
|
+
// ../../node_modules/.bun/slice-ansi@5.0.0/node_modules/slice-ansi/index.js
|
|
3728
3469
|
function sliceAnsi2(string, begin, end) {
|
|
3729
3470
|
const characters = [...string];
|
|
3730
3471
|
const ansiCodes = [];
|
|
@@ -3776,7 +3517,7 @@ var astralRegex, ESCAPES3, wrapAnsi2 = (code) => `${ESCAPES3[0]}[${code}m`, chec
|
|
|
3776
3517
|
if (ansiCode.includes(";")) {
|
|
3777
3518
|
ansiCode = ansiCode.split(";")[0][0] + "0";
|
|
3778
3519
|
}
|
|
3779
|
-
const item =
|
|
3520
|
+
const item = ansi_styles_default.codes.get(Number.parseInt(ansiCode, 10));
|
|
3780
3521
|
if (item) {
|
|
3781
3522
|
const indexEscape = ansiCodes.indexOf(item.toString());
|
|
3782
3523
|
if (indexEscape === -1) {
|
|
@@ -3794,14 +3535,14 @@ var astralRegex, ESCAPES3, wrapAnsi2 = (code) => `${ESCAPES3[0]}[${code}m`, chec
|
|
|
3794
3535
|
if (isEscapes) {
|
|
3795
3536
|
output = output.filter((element, index) => output.indexOf(element) === index);
|
|
3796
3537
|
if (endAnsiCode !== undefined) {
|
|
3797
|
-
const fistEscapeCode = wrapAnsi2(
|
|
3538
|
+
const fistEscapeCode = wrapAnsi2(ansi_styles_default.codes.get(Number.parseInt(endAnsiCode, 10)));
|
|
3798
3539
|
output = output.reduce((current, next) => next === fistEscapeCode ? [next, ...current] : [...current, next], []);
|
|
3799
3540
|
}
|
|
3800
3541
|
}
|
|
3801
3542
|
return output.join("");
|
|
3802
3543
|
};
|
|
3803
3544
|
var init_slice_ansi2 = __esm(() => {
|
|
3804
|
-
|
|
3545
|
+
init_ansi_styles();
|
|
3805
3546
|
astralRegex = /^[\uD800-\uDBFF][\uDC00-\uDFFF]$/;
|
|
3806
3547
|
ESCAPES3 = [
|
|
3807
3548
|
"\x1B",
|
|
@@ -3809,65 +3550,7 @@ var init_slice_ansi2 = __esm(() => {
|
|
|
3809
3550
|
];
|
|
3810
3551
|
});
|
|
3811
3552
|
|
|
3812
|
-
// ../../node_modules/cli-truncate/node_modules/
|
|
3813
|
-
var emoji_regex_default2 = () => {
|
|
3814
|
-
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
3815
|
-
};
|
|
3816
|
-
|
|
3817
|
-
// ../../node_modules/cli-truncate/node_modules/string-width/index.js
|
|
3818
|
-
function stringWidth2(string, options = {}) {
|
|
3819
|
-
if (typeof string !== "string" || string.length === 0) {
|
|
3820
|
-
return 0;
|
|
3821
|
-
}
|
|
3822
|
-
const {
|
|
3823
|
-
ambiguousIsNarrow = true,
|
|
3824
|
-
countAnsiEscapeCodes = false
|
|
3825
|
-
} = options;
|
|
3826
|
-
if (!countAnsiEscapeCodes) {
|
|
3827
|
-
string = stripAnsi(string);
|
|
3828
|
-
}
|
|
3829
|
-
if (string.length === 0) {
|
|
3830
|
-
return 0;
|
|
3831
|
-
}
|
|
3832
|
-
let width = 0;
|
|
3833
|
-
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
3834
|
-
for (const { segment: character } of segmenter2.segment(string)) {
|
|
3835
|
-
const codePoint = character.codePointAt(0);
|
|
3836
|
-
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
|
3837
|
-
continue;
|
|
3838
|
-
}
|
|
3839
|
-
if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
|
|
3840
|
-
continue;
|
|
3841
|
-
}
|
|
3842
|
-
if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
|
|
3843
|
-
continue;
|
|
3844
|
-
}
|
|
3845
|
-
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
3846
|
-
continue;
|
|
3847
|
-
}
|
|
3848
|
-
if (codePoint >= 65024 && codePoint <= 65039) {
|
|
3849
|
-
continue;
|
|
3850
|
-
}
|
|
3851
|
-
if (defaultIgnorableCodePointRegex2.test(character)) {
|
|
3852
|
-
continue;
|
|
3853
|
-
}
|
|
3854
|
-
if (emoji_regex_default2().test(character)) {
|
|
3855
|
-
width += 2;
|
|
3856
|
-
continue;
|
|
3857
|
-
}
|
|
3858
|
-
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
3859
|
-
}
|
|
3860
|
-
return width;
|
|
3861
|
-
}
|
|
3862
|
-
var segmenter2, defaultIgnorableCodePointRegex2;
|
|
3863
|
-
var init_string_width2 = __esm(() => {
|
|
3864
|
-
init_strip_ansi();
|
|
3865
|
-
init_get_east_asian_width();
|
|
3866
|
-
segmenter2 = new Intl.Segmenter;
|
|
3867
|
-
defaultIgnorableCodePointRegex2 = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
3868
|
-
});
|
|
3869
|
-
|
|
3870
|
-
// ../../node_modules/cli-truncate/index.js
|
|
3553
|
+
// ../../node_modules/.bun/cli-truncate@4.0.0/node_modules/cli-truncate/index.js
|
|
3871
3554
|
var exports_cli_truncate = {};
|
|
3872
3555
|
__export(exports_cli_truncate, {
|
|
3873
3556
|
default: () => cliTruncate
|
|
@@ -3904,7 +3587,7 @@ function cliTruncate(text, columns, options = {}) {
|
|
|
3904
3587
|
if (columns === 1) {
|
|
3905
3588
|
return truncationCharacter;
|
|
3906
3589
|
}
|
|
3907
|
-
const length =
|
|
3590
|
+
const length = stringWidth(text);
|
|
3908
3591
|
if (length <= columns) {
|
|
3909
3592
|
return text;
|
|
3910
3593
|
}
|
|
@@ -3916,7 +3599,7 @@ function cliTruncate(text, columns, options = {}) {
|
|
|
3916
3599
|
if (space === true) {
|
|
3917
3600
|
truncationCharacter += " ";
|
|
3918
3601
|
}
|
|
3919
|
-
return truncationCharacter + sliceAnsi2(text, length - columns +
|
|
3602
|
+
return truncationCharacter + sliceAnsi2(text, length - columns + stringWidth(truncationCharacter), length);
|
|
3920
3603
|
}
|
|
3921
3604
|
if (position === "middle") {
|
|
3922
3605
|
if (space === true) {
|
|
@@ -3928,7 +3611,7 @@ function cliTruncate(text, columns, options = {}) {
|
|
|
3928
3611
|
const spaceNearSecondBreakPoint = getIndexOfNearestSpace(text, length - (columns - half) + 1, true);
|
|
3929
3612
|
return sliceAnsi2(text, 0, spaceNearFirstBreakPoint) + truncationCharacter + sliceAnsi2(text, spaceNearSecondBreakPoint, length).trim();
|
|
3930
3613
|
}
|
|
3931
|
-
return sliceAnsi2(text, 0, half) + truncationCharacter + sliceAnsi2(text, length - (columns - half) +
|
|
3614
|
+
return sliceAnsi2(text, 0, half) + truncationCharacter + sliceAnsi2(text, length - (columns - half) + stringWidth(truncationCharacter), length);
|
|
3932
3615
|
}
|
|
3933
3616
|
if (position === "end") {
|
|
3934
3617
|
if (preferTruncationOnSpace) {
|
|
@@ -3938,16 +3621,16 @@ function cliTruncate(text, columns, options = {}) {
|
|
|
3938
3621
|
if (space === true) {
|
|
3939
3622
|
truncationCharacter = ` ${truncationCharacter}`;
|
|
3940
3623
|
}
|
|
3941
|
-
return sliceAnsi2(text, 0, columns -
|
|
3624
|
+
return sliceAnsi2(text, 0, columns - stringWidth(truncationCharacter)) + truncationCharacter;
|
|
3942
3625
|
}
|
|
3943
3626
|
throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${position}`);
|
|
3944
3627
|
}
|
|
3945
3628
|
var init_cli_truncate = __esm(() => {
|
|
3946
3629
|
init_slice_ansi2();
|
|
3947
|
-
|
|
3630
|
+
init_string_width();
|
|
3948
3631
|
});
|
|
3949
3632
|
|
|
3950
|
-
// ../../node_modules/balanced-match/index.js
|
|
3633
|
+
// ../../node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js
|
|
3951
3634
|
var require_balanced_match = __commonJS((exports, module) => {
|
|
3952
3635
|
module.exports = balanced;
|
|
3953
3636
|
function balanced(a, b, str) {
|
|
@@ -4004,7 +3687,7 @@ var require_balanced_match = __commonJS((exports, module) => {
|
|
|
4004
3687
|
}
|
|
4005
3688
|
});
|
|
4006
3689
|
|
|
4007
|
-
// node_modules/
|
|
3690
|
+
// ../../node_modules/.bun/brace-expansion@2.0.3/node_modules/brace-expansion/index.js
|
|
4008
3691
|
var require_brace_expansion = __commonJS((exports, module) => {
|
|
4009
3692
|
var balanced = require_balanced_match();
|
|
4010
3693
|
module.exports = expandTop;
|
|
@@ -4105,7 +3788,7 @@ var require_brace_expansion = __commonJS((exports, module) => {
|
|
|
4105
3788
|
var x = numeric(n[0]);
|
|
4106
3789
|
var y = numeric(n[1]);
|
|
4107
3790
|
var width = Math.max(n[0].length, n[1].length);
|
|
4108
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
3791
|
+
var incr = n.length == 3 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
4109
3792
|
var test = lte;
|
|
4110
3793
|
var reverse = y < x;
|
|
4111
3794
|
if (reverse) {
|
|
@@ -4153,11 +3836,12 @@ var require_brace_expansion = __commonJS((exports, module) => {
|
|
|
4153
3836
|
}
|
|
4154
3837
|
});
|
|
4155
3838
|
|
|
4156
|
-
// ../../node_modules/picomatch/lib/constants.js
|
|
3839
|
+
// ../../node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
|
|
4157
3840
|
var require_constants = __commonJS((exports, module) => {
|
|
4158
|
-
var path4 = __require("
|
|
3841
|
+
var path4 = __require("path");
|
|
4159
3842
|
var WIN_SLASH = "\\\\/";
|
|
4160
3843
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
3844
|
+
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
4161
3845
|
var DOT_LITERAL = "\\.";
|
|
4162
3846
|
var PLUS_LITERAL = "\\+";
|
|
4163
3847
|
var QMARK_LITERAL = "\\?";
|
|
@@ -4205,6 +3889,7 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
4205
3889
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
4206
3890
|
};
|
|
4207
3891
|
var POSIX_REGEX_SOURCE = {
|
|
3892
|
+
__proto__: null,
|
|
4208
3893
|
alnum: "a-zA-Z0-9",
|
|
4209
3894
|
alpha: "a-zA-Z",
|
|
4210
3895
|
ascii: "\\x00-\\x7F",
|
|
@@ -4221,6 +3906,7 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
4221
3906
|
xdigit: "A-Fa-f0-9"
|
|
4222
3907
|
};
|
|
4223
3908
|
module.exports = {
|
|
3909
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
4224
3910
|
MAX_LENGTH: 1024 * 64,
|
|
4225
3911
|
POSIX_REGEX_SOURCE,
|
|
4226
3912
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
@@ -4230,6 +3916,7 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
4230
3916
|
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
|
|
4231
3917
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
4232
3918
|
REPLACEMENTS: {
|
|
3919
|
+
__proto__: null,
|
|
4233
3920
|
"***": "*",
|
|
4234
3921
|
"**/**": "**",
|
|
4235
3922
|
"**/**/**": "**"
|
|
@@ -4293,9 +3980,9 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
4293
3980
|
};
|
|
4294
3981
|
});
|
|
4295
3982
|
|
|
4296
|
-
// ../../node_modules/picomatch/lib/utils.js
|
|
3983
|
+
// ../../node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
|
|
4297
3984
|
var require_utils = __commonJS((exports) => {
|
|
4298
|
-
var path4 = __require("
|
|
3985
|
+
var path4 = __require("path");
|
|
4299
3986
|
var win322 = process.platform === "win32";
|
|
4300
3987
|
var {
|
|
4301
3988
|
REGEX_BACKSLASH,
|
|
@@ -4353,7 +4040,7 @@ var require_utils = __commonJS((exports) => {
|
|
|
4353
4040
|
};
|
|
4354
4041
|
});
|
|
4355
4042
|
|
|
4356
|
-
// ../../node_modules/picomatch/lib/scan.js
|
|
4043
|
+
// ../../node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
|
|
4357
4044
|
var require_scan = __commonJS((exports, module) => {
|
|
4358
4045
|
var utils = require_utils();
|
|
4359
4046
|
var {
|
|
@@ -4668,7 +4355,7 @@ var require_scan = __commonJS((exports, module) => {
|
|
|
4668
4355
|
module.exports = scan;
|
|
4669
4356
|
});
|
|
4670
4357
|
|
|
4671
|
-
// ../../node_modules/picomatch/lib/parse.js
|
|
4358
|
+
// ../../node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
|
|
4672
4359
|
var require_parse = __commonJS((exports, module) => {
|
|
4673
4360
|
var constants = require_constants();
|
|
4674
4361
|
var utils = require_utils();
|
|
@@ -4690,10 +4377,217 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
4690
4377
|
} catch (ex) {
|
|
4691
4378
|
return args.map((v) => utils.escapeRegex(v)).join("..");
|
|
4692
4379
|
}
|
|
4693
|
-
return value;
|
|
4694
|
-
};
|
|
4695
|
-
var syntaxError = (type, char) => {
|
|
4696
|
-
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
4380
|
+
return value;
|
|
4381
|
+
};
|
|
4382
|
+
var syntaxError = (type, char) => {
|
|
4383
|
+
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
4384
|
+
};
|
|
4385
|
+
var splitTopLevel = (input) => {
|
|
4386
|
+
const parts = [];
|
|
4387
|
+
let bracket = 0;
|
|
4388
|
+
let paren = 0;
|
|
4389
|
+
let quote = 0;
|
|
4390
|
+
let value = "";
|
|
4391
|
+
let escaped = false;
|
|
4392
|
+
for (const ch of input) {
|
|
4393
|
+
if (escaped === true) {
|
|
4394
|
+
value += ch;
|
|
4395
|
+
escaped = false;
|
|
4396
|
+
continue;
|
|
4397
|
+
}
|
|
4398
|
+
if (ch === "\\") {
|
|
4399
|
+
value += ch;
|
|
4400
|
+
escaped = true;
|
|
4401
|
+
continue;
|
|
4402
|
+
}
|
|
4403
|
+
if (ch === '"') {
|
|
4404
|
+
quote = quote === 1 ? 0 : 1;
|
|
4405
|
+
value += ch;
|
|
4406
|
+
continue;
|
|
4407
|
+
}
|
|
4408
|
+
if (quote === 0) {
|
|
4409
|
+
if (ch === "[") {
|
|
4410
|
+
bracket++;
|
|
4411
|
+
} else if (ch === "]" && bracket > 0) {
|
|
4412
|
+
bracket--;
|
|
4413
|
+
} else if (bracket === 0) {
|
|
4414
|
+
if (ch === "(") {
|
|
4415
|
+
paren++;
|
|
4416
|
+
} else if (ch === ")" && paren > 0) {
|
|
4417
|
+
paren--;
|
|
4418
|
+
} else if (ch === "|" && paren === 0) {
|
|
4419
|
+
parts.push(value);
|
|
4420
|
+
value = "";
|
|
4421
|
+
continue;
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
4425
|
+
value += ch;
|
|
4426
|
+
}
|
|
4427
|
+
parts.push(value);
|
|
4428
|
+
return parts;
|
|
4429
|
+
};
|
|
4430
|
+
var isPlainBranch = (branch) => {
|
|
4431
|
+
let escaped = false;
|
|
4432
|
+
for (const ch of branch) {
|
|
4433
|
+
if (escaped === true) {
|
|
4434
|
+
escaped = false;
|
|
4435
|
+
continue;
|
|
4436
|
+
}
|
|
4437
|
+
if (ch === "\\") {
|
|
4438
|
+
escaped = true;
|
|
4439
|
+
continue;
|
|
4440
|
+
}
|
|
4441
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
4442
|
+
return false;
|
|
4443
|
+
}
|
|
4444
|
+
}
|
|
4445
|
+
return true;
|
|
4446
|
+
};
|
|
4447
|
+
var normalizeSimpleBranch = (branch) => {
|
|
4448
|
+
let value = branch.trim();
|
|
4449
|
+
let changed = true;
|
|
4450
|
+
while (changed === true) {
|
|
4451
|
+
changed = false;
|
|
4452
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
4453
|
+
value = value.slice(2, -1);
|
|
4454
|
+
changed = true;
|
|
4455
|
+
}
|
|
4456
|
+
}
|
|
4457
|
+
if (!isPlainBranch(value)) {
|
|
4458
|
+
return;
|
|
4459
|
+
}
|
|
4460
|
+
return value.replace(/\\(.)/g, "$1");
|
|
4461
|
+
};
|
|
4462
|
+
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
4463
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
4464
|
+
for (let i = 0;i < values.length; i++) {
|
|
4465
|
+
for (let j = i + 1;j < values.length; j++) {
|
|
4466
|
+
const a = values[i];
|
|
4467
|
+
const b = values[j];
|
|
4468
|
+
const char = a[0];
|
|
4469
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
4470
|
+
continue;
|
|
4471
|
+
}
|
|
4472
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
4473
|
+
return true;
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
return false;
|
|
4478
|
+
};
|
|
4479
|
+
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
4480
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
4481
|
+
return;
|
|
4482
|
+
}
|
|
4483
|
+
let bracket = 0;
|
|
4484
|
+
let paren = 0;
|
|
4485
|
+
let quote = 0;
|
|
4486
|
+
let escaped = false;
|
|
4487
|
+
for (let i = 1;i < pattern.length; i++) {
|
|
4488
|
+
const ch = pattern[i];
|
|
4489
|
+
if (escaped === true) {
|
|
4490
|
+
escaped = false;
|
|
4491
|
+
continue;
|
|
4492
|
+
}
|
|
4493
|
+
if (ch === "\\") {
|
|
4494
|
+
escaped = true;
|
|
4495
|
+
continue;
|
|
4496
|
+
}
|
|
4497
|
+
if (ch === '"') {
|
|
4498
|
+
quote = quote === 1 ? 0 : 1;
|
|
4499
|
+
continue;
|
|
4500
|
+
}
|
|
4501
|
+
if (quote === 1) {
|
|
4502
|
+
continue;
|
|
4503
|
+
}
|
|
4504
|
+
if (ch === "[") {
|
|
4505
|
+
bracket++;
|
|
4506
|
+
continue;
|
|
4507
|
+
}
|
|
4508
|
+
if (ch === "]" && bracket > 0) {
|
|
4509
|
+
bracket--;
|
|
4510
|
+
continue;
|
|
4511
|
+
}
|
|
4512
|
+
if (bracket > 0) {
|
|
4513
|
+
continue;
|
|
4514
|
+
}
|
|
4515
|
+
if (ch === "(") {
|
|
4516
|
+
paren++;
|
|
4517
|
+
continue;
|
|
4518
|
+
}
|
|
4519
|
+
if (ch === ")") {
|
|
4520
|
+
paren--;
|
|
4521
|
+
if (paren === 0) {
|
|
4522
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
4523
|
+
return;
|
|
4524
|
+
}
|
|
4525
|
+
return {
|
|
4526
|
+
type: pattern[0],
|
|
4527
|
+
body: pattern.slice(2, i),
|
|
4528
|
+
end: i
|
|
4529
|
+
};
|
|
4530
|
+
}
|
|
4531
|
+
}
|
|
4532
|
+
}
|
|
4533
|
+
};
|
|
4534
|
+
var getStarExtglobSequenceOutput = (pattern) => {
|
|
4535
|
+
let index = 0;
|
|
4536
|
+
const chars = [];
|
|
4537
|
+
while (index < pattern.length) {
|
|
4538
|
+
const match2 = parseRepeatedExtglob(pattern.slice(index), false);
|
|
4539
|
+
if (!match2 || match2.type !== "*") {
|
|
4540
|
+
return;
|
|
4541
|
+
}
|
|
4542
|
+
const branches = splitTopLevel(match2.body).map((branch2) => branch2.trim());
|
|
4543
|
+
if (branches.length !== 1) {
|
|
4544
|
+
return;
|
|
4545
|
+
}
|
|
4546
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
4547
|
+
if (!branch || branch.length !== 1) {
|
|
4548
|
+
return;
|
|
4549
|
+
}
|
|
4550
|
+
chars.push(branch);
|
|
4551
|
+
index += match2.end + 1;
|
|
4552
|
+
}
|
|
4553
|
+
if (chars.length < 1) {
|
|
4554
|
+
return;
|
|
4555
|
+
}
|
|
4556
|
+
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
4557
|
+
return `${source}*`;
|
|
4558
|
+
};
|
|
4559
|
+
var repeatedExtglobRecursion = (pattern) => {
|
|
4560
|
+
let depth = 0;
|
|
4561
|
+
let value = pattern.trim();
|
|
4562
|
+
let match2 = parseRepeatedExtglob(value);
|
|
4563
|
+
while (match2) {
|
|
4564
|
+
depth++;
|
|
4565
|
+
value = match2.body.trim();
|
|
4566
|
+
match2 = parseRepeatedExtglob(value);
|
|
4567
|
+
}
|
|
4568
|
+
return depth;
|
|
4569
|
+
};
|
|
4570
|
+
var analyzeRepeatedExtglob = (body, options) => {
|
|
4571
|
+
if (options.maxExtglobRecursion === false) {
|
|
4572
|
+
return { risky: false };
|
|
4573
|
+
}
|
|
4574
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
4575
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
4576
|
+
if (branches.length > 1) {
|
|
4577
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
4578
|
+
return { risky: true };
|
|
4579
|
+
}
|
|
4580
|
+
}
|
|
4581
|
+
for (const branch of branches) {
|
|
4582
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
4583
|
+
if (safeOutput) {
|
|
4584
|
+
return { risky: true, safeOutput };
|
|
4585
|
+
}
|
|
4586
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
4587
|
+
return { risky: true };
|
|
4588
|
+
}
|
|
4589
|
+
}
|
|
4590
|
+
return { risky: false };
|
|
4697
4591
|
};
|
|
4698
4592
|
var parse = (input, options) => {
|
|
4699
4593
|
if (typeof input !== "string") {
|
|
@@ -4827,6 +4721,8 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
4827
4721
|
token.prev = prev;
|
|
4828
4722
|
token.parens = state.parens;
|
|
4829
4723
|
token.output = state.output;
|
|
4724
|
+
token.startIndex = state.index;
|
|
4725
|
+
token.tokensIndex = tokens.length;
|
|
4830
4726
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
4831
4727
|
increment("parens");
|
|
4832
4728
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -4834,6 +4730,26 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
4834
4730
|
extglobs.push(token);
|
|
4835
4731
|
};
|
|
4836
4732
|
const extglobClose = (token) => {
|
|
4733
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
4734
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
4735
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
4736
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
4737
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : undefined;
|
|
4738
|
+
const open = tokens[token.tokensIndex];
|
|
4739
|
+
open.type = "text";
|
|
4740
|
+
open.value = literal;
|
|
4741
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
4742
|
+
for (let i = token.tokensIndex + 1;i < tokens.length; i++) {
|
|
4743
|
+
tokens[i].value = "";
|
|
4744
|
+
tokens[i].output = "";
|
|
4745
|
+
delete tokens[i].suffix;
|
|
4746
|
+
}
|
|
4747
|
+
state.output = token.output + open.output;
|
|
4748
|
+
state.backtrack = true;
|
|
4749
|
+
push({ type: "paren", extglob: true, value, output: "" });
|
|
4750
|
+
decrement("parens");
|
|
4751
|
+
return;
|
|
4752
|
+
}
|
|
4837
4753
|
let output = token.close + (opts.capture ? ")" : "");
|
|
4838
4754
|
let rest;
|
|
4839
4755
|
if (token.type === "negate") {
|
|
@@ -5446,9 +5362,9 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
5446
5362
|
module.exports = parse;
|
|
5447
5363
|
});
|
|
5448
5364
|
|
|
5449
|
-
// ../../node_modules/picomatch/lib/picomatch.js
|
|
5365
|
+
// ../../node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
|
|
5450
5366
|
var require_picomatch = __commonJS((exports, module) => {
|
|
5451
|
-
var path4 = __require("
|
|
5367
|
+
var path4 = __require("path");
|
|
5452
5368
|
var scan = require_scan();
|
|
5453
5369
|
var parse = require_parse();
|
|
5454
5370
|
var utils = require_utils();
|
|
@@ -5587,12 +5503,12 @@ var require_picomatch = __commonJS((exports, module) => {
|
|
|
5587
5503
|
module.exports = picomatch;
|
|
5588
5504
|
});
|
|
5589
5505
|
|
|
5590
|
-
// ../../node_modules/readdirp/index.js
|
|
5506
|
+
// ../../node_modules/.bun/readdirp@3.6.0/node_modules/readdirp/index.js
|
|
5591
5507
|
var require_readdirp = __commonJS((exports, module) => {
|
|
5592
|
-
var fs2 = __require("
|
|
5593
|
-
var { Readable } = __require("
|
|
5594
|
-
var sysPath = __require("
|
|
5595
|
-
var { promisify } = __require("
|
|
5508
|
+
var fs2 = __require("fs");
|
|
5509
|
+
var { Readable } = __require("stream");
|
|
5510
|
+
var sysPath = __require("path");
|
|
5511
|
+
var { promisify } = __require("util");
|
|
5596
5512
|
var picomatch = require_picomatch();
|
|
5597
5513
|
var readdir2 = promisify(fs2.readdir);
|
|
5598
5514
|
var stat = promisify(fs2.stat);
|
|
@@ -5818,7 +5734,7 @@ var require_readdirp = __commonJS((exports, module) => {
|
|
|
5818
5734
|
module.exports = readdirp;
|
|
5819
5735
|
});
|
|
5820
5736
|
|
|
5821
|
-
// ../../node_modules/normalize-path/index.js
|
|
5737
|
+
// ../../node_modules/.bun/normalize-path@3.0.0/node_modules/normalize-path/index.js
|
|
5822
5738
|
var require_normalize_path = __commonJS((exports, module) => {
|
|
5823
5739
|
/*!
|
|
5824
5740
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
@@ -5851,7 +5767,7 @@ var require_normalize_path = __commonJS((exports, module) => {
|
|
|
5851
5767
|
};
|
|
5852
5768
|
});
|
|
5853
5769
|
|
|
5854
|
-
// ../../node_modules/anymatch/index.js
|
|
5770
|
+
// ../../node_modules/.bun/anymatch@3.1.3/node_modules/anymatch/index.js
|
|
5855
5771
|
var require_anymatch = __commonJS((exports, module) => {
|
|
5856
5772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5857
5773
|
var picomatch = require_picomatch();
|
|
@@ -5915,7 +5831,7 @@ var require_anymatch = __commonJS((exports, module) => {
|
|
|
5915
5831
|
module.exports = anymatch;
|
|
5916
5832
|
});
|
|
5917
5833
|
|
|
5918
|
-
// ../../node_modules/is-extglob/index.js
|
|
5834
|
+
// ../../node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
5919
5835
|
var require_is_extglob = __commonJS((exports, module) => {
|
|
5920
5836
|
/*!
|
|
5921
5837
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
@@ -5937,7 +5853,7 @@ var require_is_extglob = __commonJS((exports, module) => {
|
|
|
5937
5853
|
};
|
|
5938
5854
|
});
|
|
5939
5855
|
|
|
5940
|
-
// ../../node_modules/is-glob/index.js
|
|
5856
|
+
// ../../node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
5941
5857
|
var require_is_glob = __commonJS((exports, module) => {
|
|
5942
5858
|
/*!
|
|
5943
5859
|
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
@@ -6072,11 +5988,11 @@ var require_is_glob = __commonJS((exports, module) => {
|
|
|
6072
5988
|
};
|
|
6073
5989
|
});
|
|
6074
5990
|
|
|
6075
|
-
// ../../node_modules/glob-parent/index.js
|
|
5991
|
+
// ../../node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js
|
|
6076
5992
|
var require_glob_parent = __commonJS((exports, module) => {
|
|
6077
5993
|
var isGlob = require_is_glob();
|
|
6078
|
-
var pathPosixDirname = __require("
|
|
6079
|
-
var isWin32 = __require("
|
|
5994
|
+
var pathPosixDirname = __require("path").posix.dirname;
|
|
5995
|
+
var isWin32 = __require("os").platform() === "win32";
|
|
6080
5996
|
var slash = "/";
|
|
6081
5997
|
var backslash = /\\/g;
|
|
6082
5998
|
var enclosure = /[\{\[].*[\}\]]$/;
|
|
@@ -6098,7 +6014,7 @@ var require_glob_parent = __commonJS((exports, module) => {
|
|
|
6098
6014
|
};
|
|
6099
6015
|
});
|
|
6100
6016
|
|
|
6101
|
-
// ../../node_modules/braces/lib/utils.js
|
|
6017
|
+
// ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
6102
6018
|
var require_utils2 = __commonJS((exports) => {
|
|
6103
6019
|
exports.isInteger = (num) => {
|
|
6104
6020
|
if (typeof num === "number") {
|
|
@@ -6185,7 +6101,7 @@ var require_utils2 = __commonJS((exports) => {
|
|
|
6185
6101
|
};
|
|
6186
6102
|
});
|
|
6187
6103
|
|
|
6188
|
-
// ../../node_modules/braces/lib/stringify.js
|
|
6104
|
+
// ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
6189
6105
|
var require_stringify = __commonJS((exports, module) => {
|
|
6190
6106
|
var utils = require_utils2();
|
|
6191
6107
|
module.exports = (ast, options = {}) => {
|
|
@@ -6213,7 +6129,7 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
6213
6129
|
};
|
|
6214
6130
|
});
|
|
6215
6131
|
|
|
6216
|
-
// ../../node_modules/is-number/index.js
|
|
6132
|
+
// ../../node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js
|
|
6217
6133
|
var require_is_number = __commonJS((exports, module) => {
|
|
6218
6134
|
/*!
|
|
6219
6135
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
@@ -6232,7 +6148,7 @@ var require_is_number = __commonJS((exports, module) => {
|
|
|
6232
6148
|
};
|
|
6233
6149
|
});
|
|
6234
6150
|
|
|
6235
|
-
// ../../node_modules/to-regex-range/index.js
|
|
6151
|
+
// ../../node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
6236
6152
|
var require_to_regex_range = __commonJS((exports, module) => {
|
|
6237
6153
|
/*!
|
|
6238
6154
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
@@ -6447,7 +6363,7 @@ var require_to_regex_range = __commonJS((exports, module) => {
|
|
|
6447
6363
|
module.exports = toRegexRange;
|
|
6448
6364
|
});
|
|
6449
6365
|
|
|
6450
|
-
// ../../node_modules/fill-range/index.js
|
|
6366
|
+
// ../../node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
6451
6367
|
var require_fill_range = __commonJS((exports, module) => {
|
|
6452
6368
|
/*!
|
|
6453
6369
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
@@ -6455,7 +6371,7 @@ var require_fill_range = __commonJS((exports, module) => {
|
|
|
6455
6371
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
6456
6372
|
* Licensed under the MIT License.
|
|
6457
6373
|
*/
|
|
6458
|
-
var util = __require("
|
|
6374
|
+
var util = __require("util");
|
|
6459
6375
|
var toRegexRange = require_to_regex_range();
|
|
6460
6376
|
var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
6461
6377
|
var transform = (toNumber) => {
|
|
@@ -6656,7 +6572,7 @@ var require_fill_range = __commonJS((exports, module) => {
|
|
|
6656
6572
|
module.exports = fill;
|
|
6657
6573
|
});
|
|
6658
6574
|
|
|
6659
|
-
// ../../node_modules/braces/lib/compile.js
|
|
6575
|
+
// ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
6660
6576
|
var require_compile = __commonJS((exports, module) => {
|
|
6661
6577
|
var fill = require_fill_range();
|
|
6662
6578
|
var utils = require_utils2();
|
|
@@ -6705,7 +6621,7 @@ var require_compile = __commonJS((exports, module) => {
|
|
|
6705
6621
|
module.exports = compile;
|
|
6706
6622
|
});
|
|
6707
6623
|
|
|
6708
|
-
// ../../node_modules/braces/lib/expand.js
|
|
6624
|
+
// ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
6709
6625
|
var require_expand = __commonJS((exports, module) => {
|
|
6710
6626
|
var fill = require_fill_range();
|
|
6711
6627
|
var stringify = require_stringify();
|
|
@@ -6799,7 +6715,7 @@ var require_expand = __commonJS((exports, module) => {
|
|
|
6799
6715
|
module.exports = expand2;
|
|
6800
6716
|
});
|
|
6801
6717
|
|
|
6802
|
-
// ../../node_modules/braces/lib/constants.js
|
|
6718
|
+
// ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
6803
6719
|
var require_constants2 = __commonJS((exports, module) => {
|
|
6804
6720
|
module.exports = {
|
|
6805
6721
|
MAX_LENGTH: 1e4,
|
|
@@ -6851,7 +6767,7 @@ var require_constants2 = __commonJS((exports, module) => {
|
|
|
6851
6767
|
};
|
|
6852
6768
|
});
|
|
6853
6769
|
|
|
6854
|
-
// ../../node_modules/braces/lib/parse.js
|
|
6770
|
+
// ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
6855
6771
|
var require_parse2 = __commonJS((exports, module) => {
|
|
6856
6772
|
var stringify = require_stringify();
|
|
6857
6773
|
var {
|
|
@@ -7078,7 +6994,7 @@ var require_parse2 = __commonJS((exports, module) => {
|
|
|
7078
6994
|
module.exports = parse;
|
|
7079
6995
|
});
|
|
7080
6996
|
|
|
7081
|
-
// ../../node_modules/braces/index.js
|
|
6997
|
+
// ../../node_modules/.bun/braces@3.0.3/node_modules/braces/index.js
|
|
7082
6998
|
var require_braces = __commonJS((exports, module) => {
|
|
7083
6999
|
var stringify = require_stringify();
|
|
7084
7000
|
var compile = require_compile();
|
|
@@ -7138,7 +7054,7 @@ var require_braces = __commonJS((exports, module) => {
|
|
|
7138
7054
|
module.exports = braces;
|
|
7139
7055
|
});
|
|
7140
7056
|
|
|
7141
|
-
// ../../node_modules/binary-extensions/binary-extensions.json
|
|
7057
|
+
// ../../node_modules/.bun/binary-extensions@2.3.0/node_modules/binary-extensions/binary-extensions.json
|
|
7142
7058
|
var require_binary_extensions = __commonJS((exports, module) => {
|
|
7143
7059
|
module.exports = [
|
|
7144
7060
|
"3dm",
|
|
@@ -7405,19 +7321,19 @@ var require_binary_extensions = __commonJS((exports, module) => {
|
|
|
7405
7321
|
];
|
|
7406
7322
|
});
|
|
7407
7323
|
|
|
7408
|
-
// ../../node_modules/is-binary-path/index.js
|
|
7324
|
+
// ../../node_modules/.bun/is-binary-path@2.1.0/node_modules/is-binary-path/index.js
|
|
7409
7325
|
var require_is_binary_path = __commonJS((exports, module) => {
|
|
7410
|
-
var path4 = __require("
|
|
7326
|
+
var path4 = __require("path");
|
|
7411
7327
|
var binaryExtensions = require_binary_extensions();
|
|
7412
7328
|
var extensions = new Set(binaryExtensions);
|
|
7413
7329
|
module.exports = (filePath) => extensions.has(path4.extname(filePath).slice(1).toLowerCase());
|
|
7414
7330
|
});
|
|
7415
7331
|
|
|
7416
|
-
// ../../node_modules/chokidar/lib/constants.js
|
|
7332
|
+
// ../../node_modules/.bun/chokidar@3.6.0/node_modules/chokidar/lib/constants.js
|
|
7417
7333
|
var require_constants3 = __commonJS((exports) => {
|
|
7418
|
-
var { sep: sep2 } = __require("
|
|
7334
|
+
var { sep: sep2 } = __require("path");
|
|
7419
7335
|
var { platform: platform3 } = process;
|
|
7420
|
-
var os2 = __require("
|
|
7336
|
+
var os2 = __require("os");
|
|
7421
7337
|
exports.EV_ALL = "all";
|
|
7422
7338
|
exports.EV_READY = "ready";
|
|
7423
7339
|
exports.EV_ADD = "add";
|
|
@@ -7473,11 +7389,11 @@ var require_constants3 = __commonJS((exports) => {
|
|
|
7473
7389
|
exports.isIBMi = os2.type() === "OS400";
|
|
7474
7390
|
});
|
|
7475
7391
|
|
|
7476
|
-
// ../../node_modules/chokidar/lib/nodefs-handler.js
|
|
7392
|
+
// ../../node_modules/.bun/chokidar@3.6.0/node_modules/chokidar/lib/nodefs-handler.js
|
|
7477
7393
|
var require_nodefs_handler = __commonJS((exports, module) => {
|
|
7478
|
-
var fs2 = __require("
|
|
7479
|
-
var sysPath = __require("
|
|
7480
|
-
var { promisify } = __require("
|
|
7394
|
+
var fs2 = __require("fs");
|
|
7395
|
+
var sysPath = __require("path");
|
|
7396
|
+
var { promisify } = __require("util");
|
|
7481
7397
|
var isBinaryPath = require_is_binary_path();
|
|
7482
7398
|
var {
|
|
7483
7399
|
isWindows: isWindows4,
|
|
@@ -7912,12 +7828,12 @@ var require_nodefs_handler = __commonJS((exports, module) => {
|
|
|
7912
7828
|
module.exports = NodeFsHandler;
|
|
7913
7829
|
});
|
|
7914
7830
|
|
|
7915
|
-
// ../../node_modules/fsevents/fsevents.node
|
|
7831
|
+
// ../../node_modules/.bun/fsevents@2.3.3/node_modules/fsevents/fsevents.node
|
|
7916
7832
|
var require_fsevents = __commonJS((exports, module) => {
|
|
7917
7833
|
module.exports = __require("./fsevents-hj42pnne.node");
|
|
7918
7834
|
});
|
|
7919
7835
|
|
|
7920
|
-
// ../../node_modules/fsevents/fsevents.js
|
|
7836
|
+
// ../../node_modules/.bun/fsevents@2.3.3/node_modules/fsevents/fsevents.js
|
|
7921
7837
|
var require_fsevents2 = __commonJS((exports) => {
|
|
7922
7838
|
if (process.platform !== "darwin") {
|
|
7923
7839
|
throw new Error(`Module 'fsevents' is not compatible with platform '${process.platform}'`);
|
|
@@ -8003,11 +7919,11 @@ var require_fsevents2 = __commonJS((exports) => {
|
|
|
8003
7919
|
exports.constants = events;
|
|
8004
7920
|
});
|
|
8005
7921
|
|
|
8006
|
-
// ../../node_modules/chokidar/lib/fsevents-handler.js
|
|
7922
|
+
// ../../node_modules/.bun/chokidar@3.6.0/node_modules/chokidar/lib/fsevents-handler.js
|
|
8007
7923
|
var require_fsevents_handler = __commonJS((exports, module) => {
|
|
8008
|
-
var fs2 = __require("
|
|
8009
|
-
var sysPath = __require("
|
|
8010
|
-
var { promisify } = __require("
|
|
7924
|
+
var fs2 = __require("fs");
|
|
7925
|
+
var sysPath = __require("path");
|
|
7926
|
+
var { promisify } = __require("util");
|
|
8011
7927
|
var fsevents;
|
|
8012
7928
|
try {
|
|
8013
7929
|
fsevents = require_fsevents2();
|
|
@@ -8373,12 +8289,12 @@ var require_fsevents_handler = __commonJS((exports, module) => {
|
|
|
8373
8289
|
module.exports.canUse = canUse;
|
|
8374
8290
|
});
|
|
8375
8291
|
|
|
8376
|
-
// ../../node_modules/chokidar/index.js
|
|
8292
|
+
// ../../node_modules/.bun/chokidar@3.6.0/node_modules/chokidar/index.js
|
|
8377
8293
|
var require_chokidar = __commonJS((exports) => {
|
|
8378
|
-
var { EventEmitter: EventEmitter3 } = __require("
|
|
8379
|
-
var fs2 = __require("
|
|
8380
|
-
var sysPath = __require("
|
|
8381
|
-
var { promisify } = __require("
|
|
8294
|
+
var { EventEmitter: EventEmitter3 } = __require("events");
|
|
8295
|
+
var fs2 = __require("fs");
|
|
8296
|
+
var sysPath = __require("path");
|
|
8297
|
+
var { promisify } = __require("util");
|
|
8382
8298
|
var readdirp = require_readdirp();
|
|
8383
8299
|
var anymatch = require_anymatch().default;
|
|
8384
8300
|
var globParent = require_glob_parent();
|
|
@@ -9058,10 +8974,10 @@ var require_chokidar = __commonJS((exports) => {
|
|
|
9058
8974
|
exports.watch = watch;
|
|
9059
8975
|
});
|
|
9060
8976
|
|
|
9061
|
-
// ../../node_modules/safe-buffer/index.js
|
|
8977
|
+
// ../../node_modules/.bun/safe-buffer@5.2.1/node_modules/safe-buffer/index.js
|
|
9062
8978
|
var require_safe_buffer = __commonJS((exports, module) => {
|
|
9063
8979
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9064
|
-
var buffer = __require("
|
|
8980
|
+
var buffer = __require("buffer");
|
|
9065
8981
|
var Buffer2 = buffer.Buffer;
|
|
9066
8982
|
function copyProps(src, dst) {
|
|
9067
8983
|
for (var key in src) {
|
|
@@ -9115,11 +9031,11 @@ var require_safe_buffer = __commonJS((exports, module) => {
|
|
|
9115
9031
|
};
|
|
9116
9032
|
});
|
|
9117
9033
|
|
|
9118
|
-
// ../../node_modules/jws/lib/data-stream.js
|
|
9034
|
+
// ../../node_modules/.bun/jws@4.0.1/node_modules/jws/lib/data-stream.js
|
|
9119
9035
|
var require_data_stream = __commonJS((exports, module) => {
|
|
9120
9036
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
9121
|
-
var Stream2 = __require("
|
|
9122
|
-
var util = __require("
|
|
9037
|
+
var Stream2 = __require("stream");
|
|
9038
|
+
var util = __require("util");
|
|
9123
9039
|
function DataStream(data) {
|
|
9124
9040
|
this.buffer = null;
|
|
9125
9041
|
this.writable = true;
|
|
@@ -9161,7 +9077,7 @@ var require_data_stream = __commonJS((exports, module) => {
|
|
|
9161
9077
|
module.exports = DataStream;
|
|
9162
9078
|
});
|
|
9163
9079
|
|
|
9164
|
-
// ../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js
|
|
9080
|
+
// ../../node_modules/.bun/ecdsa-sig-formatter@1.0.11/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js
|
|
9165
9081
|
var require_param_bytes_for_alg = __commonJS((exports, module) => {
|
|
9166
9082
|
function getParamSize(keySize) {
|
|
9167
9083
|
var result = (keySize / 8 | 0) + (keySize % 8 === 0 ? 0 : 1);
|
|
@@ -9182,7 +9098,7 @@ var require_param_bytes_for_alg = __commonJS((exports, module) => {
|
|
|
9182
9098
|
module.exports = getParamBytesForAlg;
|
|
9183
9099
|
});
|
|
9184
9100
|
|
|
9185
|
-
// ../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js
|
|
9101
|
+
// ../../node_modules/.bun/ecdsa-sig-formatter@1.0.11/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js
|
|
9186
9102
|
var require_ecdsa_sig_formatter = __commonJS((exports, module) => {
|
|
9187
9103
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
9188
9104
|
var getParamBytesForAlg = require_param_bytes_for_alg();
|
|
@@ -9319,10 +9235,10 @@ var require_ecdsa_sig_formatter = __commonJS((exports, module) => {
|
|
|
9319
9235
|
};
|
|
9320
9236
|
});
|
|
9321
9237
|
|
|
9322
|
-
// ../../node_modules/buffer-equal-constant-time/index.js
|
|
9238
|
+
// ../../node_modules/.bun/buffer-equal-constant-time@1.0.1/node_modules/buffer-equal-constant-time/index.js
|
|
9323
9239
|
var require_buffer_equal_constant_time = __commonJS((exports, module) => {
|
|
9324
|
-
var Buffer2 = __require("
|
|
9325
|
-
var SlowBuffer = __require("
|
|
9240
|
+
var Buffer2 = __require("buffer").Buffer;
|
|
9241
|
+
var SlowBuffer = __require("buffer").SlowBuffer;
|
|
9326
9242
|
module.exports = bufferEq;
|
|
9327
9243
|
function bufferEq(a, b) {
|
|
9328
9244
|
if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) {
|
|
@@ -9350,12 +9266,12 @@ var require_buffer_equal_constant_time = __commonJS((exports, module) => {
|
|
|
9350
9266
|
};
|
|
9351
9267
|
});
|
|
9352
9268
|
|
|
9353
|
-
// ../../node_modules/jwa/index.js
|
|
9269
|
+
// ../../node_modules/.bun/jwa@2.0.1/node_modules/jwa/index.js
|
|
9354
9270
|
var require_jwa = __commonJS((exports, module) => {
|
|
9355
9271
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
9356
|
-
var crypto2 = __require("
|
|
9272
|
+
var crypto2 = __require("crypto");
|
|
9357
9273
|
var formatEcdsa = require_ecdsa_sig_formatter();
|
|
9358
|
-
var util = __require("
|
|
9274
|
+
var util = __require("util");
|
|
9359
9275
|
var MSG_INVALID_ALGORITHM = `"%s" is not a valid algorithm.
|
|
9360
9276
|
Supported algorithms are:
|
|
9361
9277
|
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`;
|
|
@@ -9458,12 +9374,12 @@ var require_jwa = __commonJS((exports, module) => {
|
|
|
9458
9374
|
};
|
|
9459
9375
|
}
|
|
9460
9376
|
var bufferEqual;
|
|
9461
|
-
var timingSafeEqual = "timingSafeEqual" in crypto2 ? function
|
|
9377
|
+
var timingSafeEqual = "timingSafeEqual" in crypto2 ? function timingSafeEqual2(a, b) {
|
|
9462
9378
|
if (a.byteLength !== b.byteLength) {
|
|
9463
9379
|
return false;
|
|
9464
9380
|
}
|
|
9465
9381
|
return crypto2.timingSafeEqual(a, b);
|
|
9466
|
-
} : function
|
|
9382
|
+
} : function timingSafeEqual2(a, b) {
|
|
9467
9383
|
if (!bufferEqual) {
|
|
9468
9384
|
bufferEqual = require_buffer_equal_constant_time();
|
|
9469
9385
|
}
|
|
@@ -9574,9 +9490,9 @@ var require_jwa = __commonJS((exports, module) => {
|
|
|
9574
9490
|
};
|
|
9575
9491
|
});
|
|
9576
9492
|
|
|
9577
|
-
// ../../node_modules/jws/lib/tostring.js
|
|
9493
|
+
// ../../node_modules/.bun/jws@4.0.1/node_modules/jws/lib/tostring.js
|
|
9578
9494
|
var require_tostring = __commonJS((exports, module) => {
|
|
9579
|
-
var Buffer2 = __require("
|
|
9495
|
+
var Buffer2 = __require("buffer").Buffer;
|
|
9580
9496
|
module.exports = function toString(obj) {
|
|
9581
9497
|
if (typeof obj === "string")
|
|
9582
9498
|
return obj;
|
|
@@ -9586,14 +9502,14 @@ var require_tostring = __commonJS((exports, module) => {
|
|
|
9586
9502
|
};
|
|
9587
9503
|
});
|
|
9588
9504
|
|
|
9589
|
-
// ../../node_modules/jws/lib/sign-stream.js
|
|
9505
|
+
// ../../node_modules/.bun/jws@4.0.1/node_modules/jws/lib/sign-stream.js
|
|
9590
9506
|
var require_sign_stream = __commonJS((exports, module) => {
|
|
9591
9507
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
9592
9508
|
var DataStream = require_data_stream();
|
|
9593
9509
|
var jwa = require_jwa();
|
|
9594
|
-
var Stream2 = __require("
|
|
9510
|
+
var Stream2 = __require("stream");
|
|
9595
9511
|
var toString = require_tostring();
|
|
9596
|
-
var util = __require("
|
|
9512
|
+
var util = __require("util");
|
|
9597
9513
|
function base64url(string, encoding) {
|
|
9598
9514
|
return Buffer2.from(string, encoding).toString("base64").replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
|
|
9599
9515
|
}
|
|
@@ -9659,14 +9575,14 @@ var require_sign_stream = __commonJS((exports, module) => {
|
|
|
9659
9575
|
module.exports = SignStream;
|
|
9660
9576
|
});
|
|
9661
9577
|
|
|
9662
|
-
// ../../node_modules/jws/lib/verify-stream.js
|
|
9578
|
+
// ../../node_modules/.bun/jws@4.0.1/node_modules/jws/lib/verify-stream.js
|
|
9663
9579
|
var require_verify_stream = __commonJS((exports, module) => {
|
|
9664
9580
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
9665
9581
|
var DataStream = require_data_stream();
|
|
9666
9582
|
var jwa = require_jwa();
|
|
9667
|
-
var Stream2 = __require("
|
|
9583
|
+
var Stream2 = __require("stream");
|
|
9668
9584
|
var toString = require_tostring();
|
|
9669
|
-
var util = __require("
|
|
9585
|
+
var util = __require("util");
|
|
9670
9586
|
var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;
|
|
9671
9587
|
function isObject(thing) {
|
|
9672
9588
|
return Object.prototype.toString.call(thing) === "[object Object]";
|
|
@@ -9772,7 +9688,7 @@ var require_verify_stream = __commonJS((exports, module) => {
|
|
|
9772
9688
|
module.exports = VerifyStream;
|
|
9773
9689
|
});
|
|
9774
9690
|
|
|
9775
|
-
// ../../node_modules/jws/index.js
|
|
9691
|
+
// ../../node_modules/.bun/jws@4.0.1/node_modules/jws/index.js
|
|
9776
9692
|
var require_jws = __commonJS((exports) => {
|
|
9777
9693
|
var SignStream = require_sign_stream();
|
|
9778
9694
|
var VerifyStream = require_verify_stream();
|
|
@@ -9803,7 +9719,7 @@ var require_jws = __commonJS((exports) => {
|
|
|
9803
9719
|
};
|
|
9804
9720
|
});
|
|
9805
9721
|
|
|
9806
|
-
// ../../node_modules/jsonwebtoken/decode.js
|
|
9722
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/decode.js
|
|
9807
9723
|
var require_decode = __commonJS((exports, module) => {
|
|
9808
9724
|
var jws = require_jws();
|
|
9809
9725
|
module.exports = function(jwt, options) {
|
|
@@ -9832,7 +9748,7 @@ var require_decode = __commonJS((exports, module) => {
|
|
|
9832
9748
|
};
|
|
9833
9749
|
});
|
|
9834
9750
|
|
|
9835
|
-
// ../../node_modules/jsonwebtoken/lib/JsonWebTokenError.js
|
|
9751
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/JsonWebTokenError.js
|
|
9836
9752
|
var require_JsonWebTokenError = __commonJS((exports, module) => {
|
|
9837
9753
|
var JsonWebTokenError = function(message, error) {
|
|
9838
9754
|
Error.call(this, message);
|
|
@@ -9849,7 +9765,7 @@ var require_JsonWebTokenError = __commonJS((exports, module) => {
|
|
|
9849
9765
|
module.exports = JsonWebTokenError;
|
|
9850
9766
|
});
|
|
9851
9767
|
|
|
9852
|
-
// ../../node_modules/jsonwebtoken/lib/NotBeforeError.js
|
|
9768
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/NotBeforeError.js
|
|
9853
9769
|
var require_NotBeforeError = __commonJS((exports, module) => {
|
|
9854
9770
|
var JsonWebTokenError = require_JsonWebTokenError();
|
|
9855
9771
|
var NotBeforeError = function(message, date) {
|
|
@@ -9862,7 +9778,7 @@ var require_NotBeforeError = __commonJS((exports, module) => {
|
|
|
9862
9778
|
module.exports = NotBeforeError;
|
|
9863
9779
|
});
|
|
9864
9780
|
|
|
9865
|
-
// ../../node_modules/jsonwebtoken/lib/TokenExpiredError.js
|
|
9781
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/TokenExpiredError.js
|
|
9866
9782
|
var require_TokenExpiredError = __commonJS((exports, module) => {
|
|
9867
9783
|
var JsonWebTokenError = require_JsonWebTokenError();
|
|
9868
9784
|
var TokenExpiredError = function(message, expiredAt) {
|
|
@@ -9875,7 +9791,7 @@ var require_TokenExpiredError = __commonJS((exports, module) => {
|
|
|
9875
9791
|
module.exports = TokenExpiredError;
|
|
9876
9792
|
});
|
|
9877
9793
|
|
|
9878
|
-
// ../../node_modules/ms/index.js
|
|
9794
|
+
// ../../node_modules/.bun/ms@2.1.3/node_modules/ms/index.js
|
|
9879
9795
|
var require_ms = __commonJS((exports, module) => {
|
|
9880
9796
|
var s = 1000;
|
|
9881
9797
|
var m = s * 60;
|
|
@@ -9985,7 +9901,7 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
9985
9901
|
}
|
|
9986
9902
|
});
|
|
9987
9903
|
|
|
9988
|
-
// ../../node_modules/jsonwebtoken/lib/timespan.js
|
|
9904
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/timespan.js
|
|
9989
9905
|
var require_timespan = __commonJS((exports, module) => {
|
|
9990
9906
|
var ms = require_ms();
|
|
9991
9907
|
module.exports = function(time, iat) {
|
|
@@ -10004,7 +9920,7 @@ var require_timespan = __commonJS((exports, module) => {
|
|
|
10004
9920
|
};
|
|
10005
9921
|
});
|
|
10006
9922
|
|
|
10007
|
-
// ../../node_modules/semver/internal/constants.js
|
|
9923
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
10008
9924
|
var require_constants4 = __commonJS((exports, module) => {
|
|
10009
9925
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
10010
9926
|
var MAX_LENGTH = 256;
|
|
@@ -10032,13 +9948,13 @@ var require_constants4 = __commonJS((exports, module) => {
|
|
|
10032
9948
|
};
|
|
10033
9949
|
});
|
|
10034
9950
|
|
|
10035
|
-
// ../../node_modules/semver/internal/debug.js
|
|
9951
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
10036
9952
|
var require_debug = __commonJS((exports, module) => {
|
|
10037
9953
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
10038
9954
|
module.exports = debug;
|
|
10039
9955
|
});
|
|
10040
9956
|
|
|
10041
|
-
// ../../node_modules/semver/internal/re.js
|
|
9957
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/internal/re.js
|
|
10042
9958
|
var require_re = __commonJS((exports, module) => {
|
|
10043
9959
|
var {
|
|
10044
9960
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
@@ -10123,7 +10039,7 @@ var require_re = __commonJS((exports, module) => {
|
|
|
10123
10039
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
10124
10040
|
});
|
|
10125
10041
|
|
|
10126
|
-
// ../../node_modules/semver/internal/parse-options.js
|
|
10042
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
10127
10043
|
var require_parse_options = __commonJS((exports, module) => {
|
|
10128
10044
|
var looseOption = Object.freeze({ loose: true });
|
|
10129
10045
|
var emptyOpts = Object.freeze({});
|
|
@@ -10139,7 +10055,7 @@ var require_parse_options = __commonJS((exports, module) => {
|
|
|
10139
10055
|
module.exports = parseOptions;
|
|
10140
10056
|
});
|
|
10141
10057
|
|
|
10142
|
-
// ../../node_modules/semver/internal/identifiers.js
|
|
10058
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
10143
10059
|
var require_identifiers = __commonJS((exports, module) => {
|
|
10144
10060
|
var numeric = /^[0-9]+$/;
|
|
10145
10061
|
var compareIdentifiers = (a, b) => {
|
|
@@ -10161,7 +10077,7 @@ var require_identifiers = __commonJS((exports, module) => {
|
|
|
10161
10077
|
};
|
|
10162
10078
|
});
|
|
10163
10079
|
|
|
10164
|
-
// ../../node_modules/semver/classes/semver.js
|
|
10080
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/classes/semver.js
|
|
10165
10081
|
var require_semver = __commonJS((exports, module) => {
|
|
10166
10082
|
var debug = require_debug();
|
|
10167
10083
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants4();
|
|
@@ -10430,7 +10346,7 @@ var require_semver = __commonJS((exports, module) => {
|
|
|
10430
10346
|
module.exports = SemVer;
|
|
10431
10347
|
});
|
|
10432
10348
|
|
|
10433
|
-
// ../../node_modules/semver/functions/parse.js
|
|
10349
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/parse.js
|
|
10434
10350
|
var require_parse3 = __commonJS((exports, module) => {
|
|
10435
10351
|
var SemVer = require_semver();
|
|
10436
10352
|
var parse = (version, options, throwErrors = false) => {
|
|
@@ -10449,7 +10365,7 @@ var require_parse3 = __commonJS((exports, module) => {
|
|
|
10449
10365
|
module.exports = parse;
|
|
10450
10366
|
});
|
|
10451
10367
|
|
|
10452
|
-
// ../../node_modules/semver/functions/valid.js
|
|
10368
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/valid.js
|
|
10453
10369
|
var require_valid = __commonJS((exports, module) => {
|
|
10454
10370
|
var parse = require_parse3();
|
|
10455
10371
|
var valid = (version, options) => {
|
|
@@ -10459,7 +10375,7 @@ var require_valid = __commonJS((exports, module) => {
|
|
|
10459
10375
|
module.exports = valid;
|
|
10460
10376
|
});
|
|
10461
10377
|
|
|
10462
|
-
// ../../node_modules/semver/functions/clean.js
|
|
10378
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/clean.js
|
|
10463
10379
|
var require_clean = __commonJS((exports, module) => {
|
|
10464
10380
|
var parse = require_parse3();
|
|
10465
10381
|
var clean = (version, options) => {
|
|
@@ -10469,7 +10385,7 @@ var require_clean = __commonJS((exports, module) => {
|
|
|
10469
10385
|
module.exports = clean;
|
|
10470
10386
|
});
|
|
10471
10387
|
|
|
10472
|
-
// ../../node_modules/semver/functions/inc.js
|
|
10388
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/inc.js
|
|
10473
10389
|
var require_inc = __commonJS((exports, module) => {
|
|
10474
10390
|
var SemVer = require_semver();
|
|
10475
10391
|
var inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -10487,7 +10403,7 @@ var require_inc = __commonJS((exports, module) => {
|
|
|
10487
10403
|
module.exports = inc;
|
|
10488
10404
|
});
|
|
10489
10405
|
|
|
10490
|
-
// ../../node_modules/semver/functions/diff.js
|
|
10406
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/diff.js
|
|
10491
10407
|
var require_diff = __commonJS((exports, module) => {
|
|
10492
10408
|
var parse = require_parse3();
|
|
10493
10409
|
var diff = (version1, version2) => {
|
|
@@ -10528,28 +10444,28 @@ var require_diff = __commonJS((exports, module) => {
|
|
|
10528
10444
|
module.exports = diff;
|
|
10529
10445
|
});
|
|
10530
10446
|
|
|
10531
|
-
// ../../node_modules/semver/functions/major.js
|
|
10447
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/major.js
|
|
10532
10448
|
var require_major = __commonJS((exports, module) => {
|
|
10533
10449
|
var SemVer = require_semver();
|
|
10534
10450
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
10535
10451
|
module.exports = major;
|
|
10536
10452
|
});
|
|
10537
10453
|
|
|
10538
|
-
// ../../node_modules/semver/functions/minor.js
|
|
10454
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/minor.js
|
|
10539
10455
|
var require_minor = __commonJS((exports, module) => {
|
|
10540
10456
|
var SemVer = require_semver();
|
|
10541
10457
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
10542
10458
|
module.exports = minor;
|
|
10543
10459
|
});
|
|
10544
10460
|
|
|
10545
|
-
// ../../node_modules/semver/functions/patch.js
|
|
10461
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/patch.js
|
|
10546
10462
|
var require_patch = __commonJS((exports, module) => {
|
|
10547
10463
|
var SemVer = require_semver();
|
|
10548
10464
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
10549
10465
|
module.exports = patch;
|
|
10550
10466
|
});
|
|
10551
10467
|
|
|
10552
|
-
// ../../node_modules/semver/functions/prerelease.js
|
|
10468
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/prerelease.js
|
|
10553
10469
|
var require_prerelease = __commonJS((exports, module) => {
|
|
10554
10470
|
var parse = require_parse3();
|
|
10555
10471
|
var prerelease = (version, options) => {
|
|
@@ -10559,28 +10475,28 @@ var require_prerelease = __commonJS((exports, module) => {
|
|
|
10559
10475
|
module.exports = prerelease;
|
|
10560
10476
|
});
|
|
10561
10477
|
|
|
10562
|
-
// ../../node_modules/semver/functions/compare.js
|
|
10478
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/compare.js
|
|
10563
10479
|
var require_compare = __commonJS((exports, module) => {
|
|
10564
10480
|
var SemVer = require_semver();
|
|
10565
10481
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
10566
10482
|
module.exports = compare;
|
|
10567
10483
|
});
|
|
10568
10484
|
|
|
10569
|
-
// ../../node_modules/semver/functions/rcompare.js
|
|
10485
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/rcompare.js
|
|
10570
10486
|
var require_rcompare = __commonJS((exports, module) => {
|
|
10571
10487
|
var compare = require_compare();
|
|
10572
10488
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
10573
10489
|
module.exports = rcompare;
|
|
10574
10490
|
});
|
|
10575
10491
|
|
|
10576
|
-
// ../../node_modules/semver/functions/compare-loose.js
|
|
10492
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/compare-loose.js
|
|
10577
10493
|
var require_compare_loose = __commonJS((exports, module) => {
|
|
10578
10494
|
var compare = require_compare();
|
|
10579
10495
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
10580
10496
|
module.exports = compareLoose;
|
|
10581
10497
|
});
|
|
10582
10498
|
|
|
10583
|
-
// ../../node_modules/semver/functions/compare-build.js
|
|
10499
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/compare-build.js
|
|
10584
10500
|
var require_compare_build = __commonJS((exports, module) => {
|
|
10585
10501
|
var SemVer = require_semver();
|
|
10586
10502
|
var compareBuild = (a, b, loose) => {
|
|
@@ -10591,63 +10507,63 @@ var require_compare_build = __commonJS((exports, module) => {
|
|
|
10591
10507
|
module.exports = compareBuild;
|
|
10592
10508
|
});
|
|
10593
10509
|
|
|
10594
|
-
// ../../node_modules/semver/functions/sort.js
|
|
10510
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/sort.js
|
|
10595
10511
|
var require_sort = __commonJS((exports, module) => {
|
|
10596
10512
|
var compareBuild = require_compare_build();
|
|
10597
10513
|
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
10598
10514
|
module.exports = sort;
|
|
10599
10515
|
});
|
|
10600
10516
|
|
|
10601
|
-
// ../../node_modules/semver/functions/rsort.js
|
|
10517
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/rsort.js
|
|
10602
10518
|
var require_rsort = __commonJS((exports, module) => {
|
|
10603
10519
|
var compareBuild = require_compare_build();
|
|
10604
10520
|
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
10605
10521
|
module.exports = rsort;
|
|
10606
10522
|
});
|
|
10607
10523
|
|
|
10608
|
-
// ../../node_modules/semver/functions/gt.js
|
|
10524
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/gt.js
|
|
10609
10525
|
var require_gt = __commonJS((exports, module) => {
|
|
10610
10526
|
var compare = require_compare();
|
|
10611
10527
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
10612
10528
|
module.exports = gt;
|
|
10613
10529
|
});
|
|
10614
10530
|
|
|
10615
|
-
// ../../node_modules/semver/functions/lt.js
|
|
10531
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/lt.js
|
|
10616
10532
|
var require_lt = __commonJS((exports, module) => {
|
|
10617
10533
|
var compare = require_compare();
|
|
10618
10534
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
10619
10535
|
module.exports = lt;
|
|
10620
10536
|
});
|
|
10621
10537
|
|
|
10622
|
-
// ../../node_modules/semver/functions/eq.js
|
|
10538
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/eq.js
|
|
10623
10539
|
var require_eq = __commonJS((exports, module) => {
|
|
10624
10540
|
var compare = require_compare();
|
|
10625
10541
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
10626
10542
|
module.exports = eq;
|
|
10627
10543
|
});
|
|
10628
10544
|
|
|
10629
|
-
// ../../node_modules/semver/functions/neq.js
|
|
10545
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/neq.js
|
|
10630
10546
|
var require_neq = __commonJS((exports, module) => {
|
|
10631
10547
|
var compare = require_compare();
|
|
10632
10548
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
10633
10549
|
module.exports = neq;
|
|
10634
10550
|
});
|
|
10635
10551
|
|
|
10636
|
-
// ../../node_modules/semver/functions/gte.js
|
|
10552
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/gte.js
|
|
10637
10553
|
var require_gte = __commonJS((exports, module) => {
|
|
10638
10554
|
var compare = require_compare();
|
|
10639
10555
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
10640
10556
|
module.exports = gte;
|
|
10641
10557
|
});
|
|
10642
10558
|
|
|
10643
|
-
// ../../node_modules/semver/functions/lte.js
|
|
10559
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/lte.js
|
|
10644
10560
|
var require_lte = __commonJS((exports, module) => {
|
|
10645
10561
|
var compare = require_compare();
|
|
10646
10562
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
10647
10563
|
module.exports = lte;
|
|
10648
10564
|
});
|
|
10649
10565
|
|
|
10650
|
-
// ../../node_modules/semver/functions/cmp.js
|
|
10566
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/cmp.js
|
|
10651
10567
|
var require_cmp = __commonJS((exports, module) => {
|
|
10652
10568
|
var eq = require_eq();
|
|
10653
10569
|
var neq = require_neq();
|
|
@@ -10694,7 +10610,7 @@ var require_cmp = __commonJS((exports, module) => {
|
|
|
10694
10610
|
module.exports = cmp;
|
|
10695
10611
|
});
|
|
10696
10612
|
|
|
10697
|
-
// ../../node_modules/semver/functions/coerce.js
|
|
10613
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/coerce.js
|
|
10698
10614
|
var require_coerce = __commonJS((exports, module) => {
|
|
10699
10615
|
var SemVer = require_semver();
|
|
10700
10616
|
var parse = require_parse3();
|
|
@@ -10737,7 +10653,7 @@ var require_coerce = __commonJS((exports, module) => {
|
|
|
10737
10653
|
module.exports = coerce;
|
|
10738
10654
|
});
|
|
10739
10655
|
|
|
10740
|
-
// ../../node_modules/semver/internal/lrucache.js
|
|
10656
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/internal/lrucache.js
|
|
10741
10657
|
var require_lrucache = __commonJS((exports, module) => {
|
|
10742
10658
|
class LRUCache2 {
|
|
10743
10659
|
constructor() {
|
|
@@ -10772,7 +10688,7 @@ var require_lrucache = __commonJS((exports, module) => {
|
|
|
10772
10688
|
module.exports = LRUCache2;
|
|
10773
10689
|
});
|
|
10774
10690
|
|
|
10775
|
-
// ../../node_modules/semver/classes/range.js
|
|
10691
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/classes/range.js
|
|
10776
10692
|
var require_range = __commonJS((exports, module) => {
|
|
10777
10693
|
var SPACE_CHARACTERS = /\s+/g;
|
|
10778
10694
|
|
|
@@ -11146,7 +11062,7 @@ var require_range = __commonJS((exports, module) => {
|
|
|
11146
11062
|
};
|
|
11147
11063
|
});
|
|
11148
11064
|
|
|
11149
|
-
// ../../node_modules/semver/classes/comparator.js
|
|
11065
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/classes/comparator.js
|
|
11150
11066
|
var require_comparator = __commonJS((exports, module) => {
|
|
11151
11067
|
var ANY = Symbol("SemVer ANY");
|
|
11152
11068
|
|
|
@@ -11257,7 +11173,7 @@ var require_comparator = __commonJS((exports, module) => {
|
|
|
11257
11173
|
var Range = require_range();
|
|
11258
11174
|
});
|
|
11259
11175
|
|
|
11260
|
-
// ../../node_modules/semver/functions/satisfies.js
|
|
11176
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/functions/satisfies.js
|
|
11261
11177
|
var require_satisfies = __commonJS((exports, module) => {
|
|
11262
11178
|
var Range = require_range();
|
|
11263
11179
|
var satisfies = (version, range, options) => {
|
|
@@ -11271,14 +11187,14 @@ var require_satisfies = __commonJS((exports, module) => {
|
|
|
11271
11187
|
module.exports = satisfies;
|
|
11272
11188
|
});
|
|
11273
11189
|
|
|
11274
|
-
// ../../node_modules/semver/ranges/to-comparators.js
|
|
11190
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
|
|
11275
11191
|
var require_to_comparators = __commonJS((exports, module) => {
|
|
11276
11192
|
var Range = require_range();
|
|
11277
11193
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
11278
11194
|
module.exports = toComparators;
|
|
11279
11195
|
});
|
|
11280
11196
|
|
|
11281
|
-
// ../../node_modules/semver/ranges/max-satisfying.js
|
|
11197
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js
|
|
11282
11198
|
var require_max_satisfying = __commonJS((exports, module) => {
|
|
11283
11199
|
var SemVer = require_semver();
|
|
11284
11200
|
var Range = require_range();
|
|
@@ -11304,7 +11220,7 @@ var require_max_satisfying = __commonJS((exports, module) => {
|
|
|
11304
11220
|
module.exports = maxSatisfying;
|
|
11305
11221
|
});
|
|
11306
11222
|
|
|
11307
|
-
// ../../node_modules/semver/ranges/min-satisfying.js
|
|
11223
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js
|
|
11308
11224
|
var require_min_satisfying = __commonJS((exports, module) => {
|
|
11309
11225
|
var SemVer = require_semver();
|
|
11310
11226
|
var Range = require_range();
|
|
@@ -11330,7 +11246,7 @@ var require_min_satisfying = __commonJS((exports, module) => {
|
|
|
11330
11246
|
module.exports = minSatisfying;
|
|
11331
11247
|
});
|
|
11332
11248
|
|
|
11333
|
-
// ../../node_modules/semver/ranges/min-version.js
|
|
11249
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/min-version.js
|
|
11334
11250
|
var require_min_version = __commonJS((exports, module) => {
|
|
11335
11251
|
var SemVer = require_semver();
|
|
11336
11252
|
var Range = require_range();
|
|
@@ -11384,7 +11300,7 @@ var require_min_version = __commonJS((exports, module) => {
|
|
|
11384
11300
|
module.exports = minVersion;
|
|
11385
11301
|
});
|
|
11386
11302
|
|
|
11387
|
-
// ../../node_modules/semver/ranges/valid.js
|
|
11303
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/valid.js
|
|
11388
11304
|
var require_valid2 = __commonJS((exports, module) => {
|
|
11389
11305
|
var Range = require_range();
|
|
11390
11306
|
var validRange = (range, options) => {
|
|
@@ -11397,7 +11313,7 @@ var require_valid2 = __commonJS((exports, module) => {
|
|
|
11397
11313
|
module.exports = validRange;
|
|
11398
11314
|
});
|
|
11399
11315
|
|
|
11400
|
-
// ../../node_modules/semver/ranges/outside.js
|
|
11316
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/outside.js
|
|
11401
11317
|
var require_outside = __commonJS((exports, module) => {
|
|
11402
11318
|
var SemVer = require_semver();
|
|
11403
11319
|
var Comparator = require_comparator();
|
|
@@ -11463,21 +11379,21 @@ var require_outside = __commonJS((exports, module) => {
|
|
|
11463
11379
|
module.exports = outside;
|
|
11464
11380
|
});
|
|
11465
11381
|
|
|
11466
|
-
// ../../node_modules/semver/ranges/gtr.js
|
|
11382
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/gtr.js
|
|
11467
11383
|
var require_gtr = __commonJS((exports, module) => {
|
|
11468
11384
|
var outside = require_outside();
|
|
11469
11385
|
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
11470
11386
|
module.exports = gtr;
|
|
11471
11387
|
});
|
|
11472
11388
|
|
|
11473
|
-
// ../../node_modules/semver/ranges/ltr.js
|
|
11389
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/ltr.js
|
|
11474
11390
|
var require_ltr = __commonJS((exports, module) => {
|
|
11475
11391
|
var outside = require_outside();
|
|
11476
11392
|
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
11477
11393
|
module.exports = ltr;
|
|
11478
11394
|
});
|
|
11479
11395
|
|
|
11480
|
-
// ../../node_modules/semver/ranges/intersects.js
|
|
11396
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/intersects.js
|
|
11481
11397
|
var require_intersects = __commonJS((exports, module) => {
|
|
11482
11398
|
var Range = require_range();
|
|
11483
11399
|
var intersects = (r1, r2, options) => {
|
|
@@ -11488,7 +11404,7 @@ var require_intersects = __commonJS((exports, module) => {
|
|
|
11488
11404
|
module.exports = intersects;
|
|
11489
11405
|
});
|
|
11490
11406
|
|
|
11491
|
-
// ../../node_modules/semver/ranges/simplify.js
|
|
11407
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/simplify.js
|
|
11492
11408
|
var require_simplify = __commonJS((exports, module) => {
|
|
11493
11409
|
var satisfies = require_satisfies();
|
|
11494
11410
|
var compare = require_compare();
|
|
@@ -11535,7 +11451,7 @@ var require_simplify = __commonJS((exports, module) => {
|
|
|
11535
11451
|
};
|
|
11536
11452
|
});
|
|
11537
11453
|
|
|
11538
|
-
// ../../node_modules/semver/ranges/subset.js
|
|
11454
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/ranges/subset.js
|
|
11539
11455
|
var require_subset = __commonJS((exports, module) => {
|
|
11540
11456
|
var Range = require_range();
|
|
11541
11457
|
var Comparator = require_comparator();
|
|
@@ -11695,7 +11611,7 @@ var require_subset = __commonJS((exports, module) => {
|
|
|
11695
11611
|
module.exports = subset;
|
|
11696
11612
|
});
|
|
11697
11613
|
|
|
11698
|
-
// ../../node_modules/semver/index.js
|
|
11614
|
+
// ../../node_modules/.bun/semver@7.7.4/node_modules/semver/index.js
|
|
11699
11615
|
var require_semver2 = __commonJS((exports, module) => {
|
|
11700
11616
|
var internalRe = require_re();
|
|
11701
11617
|
var constants = require_constants4();
|
|
@@ -11787,19 +11703,19 @@ var require_semver2 = __commonJS((exports, module) => {
|
|
|
11787
11703
|
};
|
|
11788
11704
|
});
|
|
11789
11705
|
|
|
11790
|
-
// ../../node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js
|
|
11706
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js
|
|
11791
11707
|
var require_asymmetricKeyDetailsSupported = __commonJS((exports, module) => {
|
|
11792
11708
|
var semver = require_semver2();
|
|
11793
11709
|
module.exports = semver.satisfies(process.version, ">=15.7.0");
|
|
11794
11710
|
});
|
|
11795
11711
|
|
|
11796
|
-
// ../../node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js
|
|
11712
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js
|
|
11797
11713
|
var require_rsaPssKeyDetailsSupported = __commonJS((exports, module) => {
|
|
11798
11714
|
var semver = require_semver2();
|
|
11799
11715
|
module.exports = semver.satisfies(process.version, ">=16.9.0");
|
|
11800
11716
|
});
|
|
11801
11717
|
|
|
11802
|
-
// ../../node_modules/jsonwebtoken/lib/validateAsymmetricKey.js
|
|
11718
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js
|
|
11803
11719
|
var require_validateAsymmetricKey = __commonJS((exports, module) => {
|
|
11804
11720
|
var ASYMMETRIC_KEY_DETAILS_SUPPORTED = require_asymmetricKeyDetailsSupported();
|
|
11805
11721
|
var RSA_PSS_KEY_DETAILS_SUPPORTED = require_rsaPssKeyDetailsSupported();
|
|
@@ -11852,13 +11768,13 @@ var require_validateAsymmetricKey = __commonJS((exports, module) => {
|
|
|
11852
11768
|
};
|
|
11853
11769
|
});
|
|
11854
11770
|
|
|
11855
|
-
// ../../node_modules/jsonwebtoken/lib/psSupported.js
|
|
11771
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/psSupported.js
|
|
11856
11772
|
var require_psSupported = __commonJS((exports, module) => {
|
|
11857
11773
|
var semver = require_semver2();
|
|
11858
11774
|
module.exports = semver.satisfies(process.version, "^6.12.0 || >=8.0.0");
|
|
11859
11775
|
});
|
|
11860
11776
|
|
|
11861
|
-
// ../../node_modules/jsonwebtoken/verify.js
|
|
11777
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/verify.js
|
|
11862
11778
|
var require_verify = __commonJS((exports, module) => {
|
|
11863
11779
|
var JsonWebTokenError = require_JsonWebTokenError();
|
|
11864
11780
|
var NotBeforeError = require_NotBeforeError();
|
|
@@ -11868,7 +11784,7 @@ var require_verify = __commonJS((exports, module) => {
|
|
|
11868
11784
|
var validateAsymmetricKey = require_validateAsymmetricKey();
|
|
11869
11785
|
var PS_SUPPORTED = require_psSupported();
|
|
11870
11786
|
var jws = require_jws();
|
|
11871
|
-
var { KeyObject, createSecretKey, createPublicKey } = __require("
|
|
11787
|
+
var { KeyObject, createSecretKey, createPublicKey } = __require("crypto");
|
|
11872
11788
|
var PUB_KEY_ALGS = ["RS256", "RS384", "RS512"];
|
|
11873
11789
|
var EC_KEY_ALGS = ["ES256", "ES384", "ES512"];
|
|
11874
11790
|
var RSA_KEY_ALGS = ["RS256", "RS384", "RS512"];
|
|
@@ -12072,7 +11988,7 @@ var require_verify = __commonJS((exports, module) => {
|
|
|
12072
11988
|
};
|
|
12073
11989
|
});
|
|
12074
11990
|
|
|
12075
|
-
// ../../node_modules/lodash.includes/index.js
|
|
11991
|
+
// ../../node_modules/.bun/lodash.includes@4.3.0/node_modules/lodash.includes/index.js
|
|
12076
11992
|
var require_lodash = __commonJS((exports, module) => {
|
|
12077
11993
|
var INFINITY = 1 / 0;
|
|
12078
11994
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
@@ -12254,7 +12170,7 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
12254
12170
|
module.exports = includes;
|
|
12255
12171
|
});
|
|
12256
12172
|
|
|
12257
|
-
// ../../node_modules/lodash.isboolean/index.js
|
|
12173
|
+
// ../../node_modules/.bun/lodash.isboolean@3.0.3/node_modules/lodash.isboolean/index.js
|
|
12258
12174
|
var require_lodash2 = __commonJS((exports, module) => {
|
|
12259
12175
|
var boolTag = "[object Boolean]";
|
|
12260
12176
|
var objectProto = Object.prototype;
|
|
@@ -12268,7 +12184,7 @@ var require_lodash2 = __commonJS((exports, module) => {
|
|
|
12268
12184
|
module.exports = isBoolean;
|
|
12269
12185
|
});
|
|
12270
12186
|
|
|
12271
|
-
// ../../node_modules/lodash.isinteger/index.js
|
|
12187
|
+
// ../../node_modules/.bun/lodash.isinteger@4.0.4/node_modules/lodash.isinteger/index.js
|
|
12272
12188
|
var require_lodash3 = __commonJS((exports, module) => {
|
|
12273
12189
|
var INFINITY = 1 / 0;
|
|
12274
12190
|
var MAX_INTEGER = 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
|
|
@@ -12330,7 +12246,7 @@ var require_lodash3 = __commonJS((exports, module) => {
|
|
|
12330
12246
|
module.exports = isInteger;
|
|
12331
12247
|
});
|
|
12332
12248
|
|
|
12333
|
-
// ../../node_modules/lodash.isnumber/index.js
|
|
12249
|
+
// ../../node_modules/.bun/lodash.isnumber@3.0.3/node_modules/lodash.isnumber/index.js
|
|
12334
12250
|
var require_lodash4 = __commonJS((exports, module) => {
|
|
12335
12251
|
var numberTag = "[object Number]";
|
|
12336
12252
|
var objectProto = Object.prototype;
|
|
@@ -12344,7 +12260,7 @@ var require_lodash4 = __commonJS((exports, module) => {
|
|
|
12344
12260
|
module.exports = isNumber;
|
|
12345
12261
|
});
|
|
12346
12262
|
|
|
12347
|
-
// ../../node_modules/lodash.isplainobject/index.js
|
|
12263
|
+
// ../../node_modules/.bun/lodash.isplainobject@4.0.6/node_modules/lodash.isplainobject/index.js
|
|
12348
12264
|
var require_lodash5 = __commonJS((exports, module) => {
|
|
12349
12265
|
var objectTag = "[object Object]";
|
|
12350
12266
|
function isHostObject(value) {
|
|
@@ -12385,7 +12301,7 @@ var require_lodash5 = __commonJS((exports, module) => {
|
|
|
12385
12301
|
module.exports = isPlainObject;
|
|
12386
12302
|
});
|
|
12387
12303
|
|
|
12388
|
-
// ../../node_modules/lodash.isstring/index.js
|
|
12304
|
+
// ../../node_modules/.bun/lodash.isstring@4.0.1/node_modules/lodash.isstring/index.js
|
|
12389
12305
|
var require_lodash6 = __commonJS((exports, module) => {
|
|
12390
12306
|
var stringTag = "[object String]";
|
|
12391
12307
|
var objectProto = Object.prototype;
|
|
@@ -12400,7 +12316,7 @@ var require_lodash6 = __commonJS((exports, module) => {
|
|
|
12400
12316
|
module.exports = isString;
|
|
12401
12317
|
});
|
|
12402
12318
|
|
|
12403
|
-
// ../../node_modules/lodash.once/index.js
|
|
12319
|
+
// ../../node_modules/.bun/lodash.once@4.1.1/node_modules/lodash.once/index.js
|
|
12404
12320
|
var require_lodash7 = __commonJS((exports, module) => {
|
|
12405
12321
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
12406
12322
|
var INFINITY = 1 / 0;
|
|
@@ -12479,7 +12395,7 @@ var require_lodash7 = __commonJS((exports, module) => {
|
|
|
12479
12395
|
module.exports = once;
|
|
12480
12396
|
});
|
|
12481
12397
|
|
|
12482
|
-
// ../../node_modules/jsonwebtoken/sign.js
|
|
12398
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/sign.js
|
|
12483
12399
|
var require_sign = __commonJS((exports, module) => {
|
|
12484
12400
|
var timespan = require_timespan();
|
|
12485
12401
|
var PS_SUPPORTED = require_psSupported();
|
|
@@ -12492,7 +12408,7 @@ var require_sign = __commonJS((exports, module) => {
|
|
|
12492
12408
|
var isPlainObject = require_lodash5();
|
|
12493
12409
|
var isString = require_lodash6();
|
|
12494
12410
|
var once = require_lodash7();
|
|
12495
|
-
var { KeyObject, createSecretKey, createPrivateKey } = __require("
|
|
12411
|
+
var { KeyObject, createSecretKey, createPrivateKey } = __require("crypto");
|
|
12496
12412
|
var SUPPORTED_ALGS = ["RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "HS256", "HS384", "HS512", "none"];
|
|
12497
12413
|
if (PS_SUPPORTED) {
|
|
12498
12414
|
SUPPORTED_ALGS.splice(3, 0, "PS256", "PS384", "PS512");
|
|
@@ -12701,7 +12617,7 @@ var require_sign = __commonJS((exports, module) => {
|
|
|
12701
12617
|
};
|
|
12702
12618
|
});
|
|
12703
12619
|
|
|
12704
|
-
// ../../node_modules/jsonwebtoken/index.js
|
|
12620
|
+
// ../../node_modules/.bun/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/index.js
|
|
12705
12621
|
var require_jsonwebtoken = __commonJS((exports, module) => {
|
|
12706
12622
|
module.exports = {
|
|
12707
12623
|
decode: require_decode(),
|
|
@@ -12744,8 +12660,8 @@ function isBaseMapInstance(obj) {
|
|
|
12744
12660
|
return Object.getPrototypeOf(obj) === Map.prototype;
|
|
12745
12661
|
}
|
|
12746
12662
|
function latest(proxyDraft) {
|
|
12747
|
-
var
|
|
12748
|
-
return (
|
|
12663
|
+
var _a2;
|
|
12664
|
+
return (_a2 = proxyDraft.copy) !== null && _a2 !== undefined ? _a2 : proxyDraft.original;
|
|
12749
12665
|
}
|
|
12750
12666
|
function isDraft(target) {
|
|
12751
12667
|
return !!getProxyDraft(target);
|
|
@@ -12756,9 +12672,9 @@ function getProxyDraft(value) {
|
|
|
12756
12672
|
return value === null || value === undefined ? undefined : value[PROXY_DRAFT];
|
|
12757
12673
|
}
|
|
12758
12674
|
function getValue(value) {
|
|
12759
|
-
var
|
|
12675
|
+
var _a2;
|
|
12760
12676
|
const proxyDraft = getProxyDraft(value);
|
|
12761
|
-
return proxyDraft ? (
|
|
12677
|
+
return proxyDraft ? (_a2 = proxyDraft.copy) !== null && _a2 !== undefined ? _a2 : proxyDraft.original : value;
|
|
12762
12678
|
}
|
|
12763
12679
|
function isDraftable(value, options) {
|
|
12764
12680
|
if (!value || typeof value !== "object")
|
|
@@ -12955,8 +12871,8 @@ function cloneIfNeeded(target) {
|
|
|
12955
12871
|
return isDraft(target) ? deepClone(target) : target;
|
|
12956
12872
|
}
|
|
12957
12873
|
function markChanged(proxyDraft) {
|
|
12958
|
-
var
|
|
12959
|
-
proxyDraft.assignedMap = (
|
|
12874
|
+
var _a2;
|
|
12875
|
+
proxyDraft.assignedMap = (_a2 = proxyDraft.assignedMap) !== null && _a2 !== undefined ? _a2 : new Map;
|
|
12960
12876
|
if (!proxyDraft.operated) {
|
|
12961
12877
|
proxyDraft.operated = true;
|
|
12962
12878
|
if (proxyDraft.parent) {
|
|
@@ -13059,11 +12975,11 @@ function handleValue(target, handledSet, options) {
|
|
|
13059
12975
|
const setMap = isSet ? new Map : undefined;
|
|
13060
12976
|
handledSet.add(target);
|
|
13061
12977
|
forEach(target, (key, value) => {
|
|
13062
|
-
var
|
|
12978
|
+
var _a2;
|
|
13063
12979
|
if (isDraft(value)) {
|
|
13064
12980
|
const proxyDraft = getProxyDraft(value);
|
|
13065
12981
|
ensureShallowCopy(proxyDraft);
|
|
13066
|
-
const updatedValue = ((
|
|
12982
|
+
const updatedValue = ((_a2 = proxyDraft.assignedMap) === null || _a2 === undefined ? undefined : _a2.size) || proxyDraft.operated ? proxyDraft.copy : proxyDraft.original;
|
|
13067
12983
|
set(isSet ? setMap : target, key, updatedValue);
|
|
13068
12984
|
} else {
|
|
13069
12985
|
handleValue(value, handledSet, options);
|
|
@@ -13111,7 +13027,7 @@ function markFinalization(target, key, value, generatePatches) {
|
|
|
13111
13027
|
proxyDraft.callbacks = [];
|
|
13112
13028
|
}
|
|
13113
13029
|
proxyDraft.callbacks.push((patches, inversePatches) => {
|
|
13114
|
-
var
|
|
13030
|
+
var _a2;
|
|
13115
13031
|
const copy = target.type === 3 ? target.setMap : target.copy;
|
|
13116
13032
|
if (isEqual(get(copy, key), value)) {
|
|
13117
13033
|
let updatedValue = proxyDraft.original;
|
|
@@ -13121,7 +13037,7 @@ function markFinalization(target, key, value, generatePatches) {
|
|
|
13121
13037
|
finalizeSetValue(target);
|
|
13122
13038
|
finalizePatches(target, generatePatches, patches, inversePatches);
|
|
13123
13039
|
if (target.options.enableAutoFreeze) {
|
|
13124
|
-
target.options.updatedValues = (
|
|
13040
|
+
target.options.updatedValues = (_a2 = target.options.updatedValues) !== null && _a2 !== undefined ? _a2 : new WeakMap;
|
|
13125
13041
|
target.options.updatedValues.set(updatedValue, proxyDraft.original);
|
|
13126
13042
|
}
|
|
13127
13043
|
set(copy, key, updatedValue);
|
|
@@ -13282,7 +13198,7 @@ function createDraft(createDraftOptions) {
|
|
|
13282
13198
|
if (parentDraft) {
|
|
13283
13199
|
const target = parentDraft;
|
|
13284
13200
|
target.finalities.draft.push((patches, inversePatches) => {
|
|
13285
|
-
var
|
|
13201
|
+
var _a2, _b;
|
|
13286
13202
|
const oldProxyDraft = getProxyDraft(proxy);
|
|
13287
13203
|
let copy = target.type === 3 ? target.setMap : target.copy;
|
|
13288
13204
|
const draft = get(copy, key);
|
|
@@ -13295,7 +13211,7 @@ function createDraft(createDraftOptions) {
|
|
|
13295
13211
|
finalizeSetValue(proxyDraft2);
|
|
13296
13212
|
finalizePatches(proxyDraft2, generatePatches, patches, inversePatches);
|
|
13297
13213
|
if (target.options.enableAutoFreeze) {
|
|
13298
|
-
target.options.updatedValues = (
|
|
13214
|
+
target.options.updatedValues = (_a2 = target.options.updatedValues) !== null && _a2 !== undefined ? _a2 : new WeakMap;
|
|
13299
13215
|
target.options.updatedValues.set(updatedValue, proxyDraft2.original);
|
|
13300
13216
|
}
|
|
13301
13217
|
set(copy, key, updatedValue);
|
|
@@ -13314,9 +13230,9 @@ function createDraft(createDraftOptions) {
|
|
|
13314
13230
|
return proxy;
|
|
13315
13231
|
}
|
|
13316
13232
|
function finalizeDraft(result, returnedValue, patches, inversePatches, enableAutoFreeze) {
|
|
13317
|
-
var
|
|
13233
|
+
var _a2;
|
|
13318
13234
|
const proxyDraft = getProxyDraft(result);
|
|
13319
|
-
const original = (
|
|
13235
|
+
const original = (_a2 = proxyDraft === null || proxyDraft === undefined ? undefined : proxyDraft.original) !== null && _a2 !== undefined ? _a2 : result;
|
|
13320
13236
|
const hasReturnedValue = !!returnedValue.length;
|
|
13321
13237
|
if (proxyDraft === null || proxyDraft === undefined ? undefined : proxyDraft.operated) {
|
|
13322
13238
|
while (proxyDraft.finalities.draft.length > 0) {
|
|
@@ -13337,7 +13253,7 @@ function finalizeDraft(result, returnedValue, patches, inversePatches, enableAut
|
|
|
13337
13253
|
];
|
|
13338
13254
|
}
|
|
13339
13255
|
function draftify(baseState, options) {
|
|
13340
|
-
var
|
|
13256
|
+
var _a2;
|
|
13341
13257
|
const finalities = {
|
|
13342
13258
|
draft: [],
|
|
13343
13259
|
revoke: [],
|
|
@@ -13350,7 +13266,7 @@ function draftify(baseState, options) {
|
|
|
13350
13266
|
patches = [];
|
|
13351
13267
|
inversePatches = [];
|
|
13352
13268
|
}
|
|
13353
|
-
const isMutable = ((
|
|
13269
|
+
const isMutable = ((_a2 = options.mark) === null || _a2 === undefined ? undefined : _a2.call(options, baseState, dataTypes)) === dataTypes.mutable || !isDraftable(baseState, options);
|
|
13354
13270
|
const draft = isMutable ? baseState : createDraft({
|
|
13355
13271
|
original: baseState,
|
|
13356
13272
|
parentDraft: null,
|
|
@@ -13394,7 +13310,7 @@ function handleReturnValue(options) {
|
|
|
13394
13310
|
}
|
|
13395
13311
|
}
|
|
13396
13312
|
function getCurrent(target) {
|
|
13397
|
-
var
|
|
13313
|
+
var _a2;
|
|
13398
13314
|
const proxyDraft = getProxyDraft(target);
|
|
13399
13315
|
if (!isDraftable(target, proxyDraft === null || proxyDraft === undefined ? undefined : proxyDraft.options))
|
|
13400
13316
|
return target;
|
|
@@ -13426,7 +13342,7 @@ function getCurrent(target) {
|
|
|
13426
13342
|
}
|
|
13427
13343
|
});
|
|
13428
13344
|
if (type === 3) {
|
|
13429
|
-
const value = (
|
|
13345
|
+
const value = (_a2 = proxyDraft === null || proxyDraft === undefined ? undefined : proxyDraft.original) !== null && _a2 !== undefined ? _a2 : currentValue;
|
|
13430
13346
|
return !isBaseSetInstance(value) ? new (Object.getPrototypeOf(value)).constructor(currentValue) : new Set(currentValue);
|
|
13431
13347
|
}
|
|
13432
13348
|
return currentValue;
|
|
@@ -13988,7 +13904,9 @@ class LocalEventPublisher2 {
|
|
|
13988
13904
|
}
|
|
13989
13905
|
}
|
|
13990
13906
|
}
|
|
13907
|
+
console.log(`[Arc:EventPublisher] notifySubscribers type="${event.type}" subscriberKeys=${JSON.stringify([...this.subscribers.keys()])}`);
|
|
13991
13908
|
const subs = this.subscribers.get(event.type);
|
|
13909
|
+
console.log(`[Arc:EventPublisher] matched=${subs?.size ?? 0} subscribers`);
|
|
13992
13910
|
if (!subs || subs.size === 0)
|
|
13993
13911
|
return;
|
|
13994
13912
|
const promises = [];
|
|
@@ -14360,6 +14278,147 @@ class ArcFragmentBase {
|
|
|
14360
14278
|
function id(name, generateFn) {
|
|
14361
14279
|
return new ArcId(name, generateFn);
|
|
14362
14280
|
}
|
|
14281
|
+
function buildElementContext(queryElements, mutationElements, adapters) {
|
|
14282
|
+
const queryMap = new Map;
|
|
14283
|
+
const mutateMap = new Map;
|
|
14284
|
+
const queryProps = {};
|
|
14285
|
+
for (const element of queryElements) {
|
|
14286
|
+
if (element.queryContext) {
|
|
14287
|
+
const ctx = element.queryContext(adapters);
|
|
14288
|
+
queryProps[element.name] = ctx;
|
|
14289
|
+
queryMap.set(element, ctx);
|
|
14290
|
+
}
|
|
14291
|
+
}
|
|
14292
|
+
const mutateProps = {};
|
|
14293
|
+
for (const element of mutationElements) {
|
|
14294
|
+
if (element.mutateContext) {
|
|
14295
|
+
const ctx = element.mutateContext(adapters);
|
|
14296
|
+
mutateProps[element.name] = ctx;
|
|
14297
|
+
mutateMap.set(element, ctx);
|
|
14298
|
+
}
|
|
14299
|
+
}
|
|
14300
|
+
const queryFn = (element) => {
|
|
14301
|
+
const cached = queryMap.get(element);
|
|
14302
|
+
if (cached)
|
|
14303
|
+
return cached;
|
|
14304
|
+
if (element.queryContext) {
|
|
14305
|
+
const ctx = element.queryContext(adapters);
|
|
14306
|
+
queryMap.set(element, ctx);
|
|
14307
|
+
return ctx;
|
|
14308
|
+
}
|
|
14309
|
+
throw new Error(`Element "${element.name}" has no queryContext`);
|
|
14310
|
+
};
|
|
14311
|
+
Object.assign(queryFn, queryProps);
|
|
14312
|
+
const mutateFn = (element) => {
|
|
14313
|
+
const cached = mutateMap.get(element);
|
|
14314
|
+
if (cached)
|
|
14315
|
+
return cached;
|
|
14316
|
+
if (element.mutateContext) {
|
|
14317
|
+
const ctx = element.mutateContext(adapters);
|
|
14318
|
+
mutateMap.set(element, ctx);
|
|
14319
|
+
return ctx;
|
|
14320
|
+
}
|
|
14321
|
+
throw new Error(`Element "${element.name}" has no mutateContext`);
|
|
14322
|
+
};
|
|
14323
|
+
Object.assign(mutateFn, mutateProps);
|
|
14324
|
+
return {
|
|
14325
|
+
query: queryFn,
|
|
14326
|
+
mutate: mutateFn
|
|
14327
|
+
};
|
|
14328
|
+
}
|
|
14329
|
+
|
|
14330
|
+
class ArcFunction {
|
|
14331
|
+
data;
|
|
14332
|
+
constructor(data) {
|
|
14333
|
+
this.data = data;
|
|
14334
|
+
}
|
|
14335
|
+
withParams(schema) {
|
|
14336
|
+
return new ArcFunction({
|
|
14337
|
+
...this.data,
|
|
14338
|
+
params: schema instanceof ArcObject ? schema : new ArcObject(schema)
|
|
14339
|
+
});
|
|
14340
|
+
}
|
|
14341
|
+
withResult(schema) {
|
|
14342
|
+
return new ArcFunction({
|
|
14343
|
+
...this.data,
|
|
14344
|
+
result: schema instanceof ArcObject ? schema : new ArcObject(schema)
|
|
14345
|
+
});
|
|
14346
|
+
}
|
|
14347
|
+
query(elements) {
|
|
14348
|
+
return new ArcFunction({
|
|
14349
|
+
...this.data,
|
|
14350
|
+
queryElements: elements
|
|
14351
|
+
});
|
|
14352
|
+
}
|
|
14353
|
+
mutate(elements) {
|
|
14354
|
+
return new ArcFunction({
|
|
14355
|
+
...this.data,
|
|
14356
|
+
mutationElements: elements
|
|
14357
|
+
});
|
|
14358
|
+
}
|
|
14359
|
+
protectedBy(token, check) {
|
|
14360
|
+
const existingProtections = this.data.protections || [];
|
|
14361
|
+
return new ArcFunction({
|
|
14362
|
+
...this.data,
|
|
14363
|
+
protections: [...existingProtections, { token, check }]
|
|
14364
|
+
});
|
|
14365
|
+
}
|
|
14366
|
+
description(desc) {
|
|
14367
|
+
return new ArcFunction({
|
|
14368
|
+
...this.data,
|
|
14369
|
+
description: desc
|
|
14370
|
+
});
|
|
14371
|
+
}
|
|
14372
|
+
handle(handler) {
|
|
14373
|
+
return new ArcFunction({
|
|
14374
|
+
...this.data,
|
|
14375
|
+
handler
|
|
14376
|
+
});
|
|
14377
|
+
}
|
|
14378
|
+
get isPublic() {
|
|
14379
|
+
return !this.hasProtections;
|
|
14380
|
+
}
|
|
14381
|
+
get hasProtections() {
|
|
14382
|
+
return (this.data.protections?.length ?? 0) > 0;
|
|
14383
|
+
}
|
|
14384
|
+
get protections() {
|
|
14385
|
+
return this.data.protections || [];
|
|
14386
|
+
}
|
|
14387
|
+
get handler() {
|
|
14388
|
+
return this.data.handler;
|
|
14389
|
+
}
|
|
14390
|
+
get params() {
|
|
14391
|
+
return this.data.params;
|
|
14392
|
+
}
|
|
14393
|
+
get result() {
|
|
14394
|
+
return this.data.result;
|
|
14395
|
+
}
|
|
14396
|
+
async verifyProtections(tokens) {
|
|
14397
|
+
if (!this.data.protections || this.data.protections.length === 0) {
|
|
14398
|
+
return true;
|
|
14399
|
+
}
|
|
14400
|
+
for (const protection of this.data.protections) {
|
|
14401
|
+
const tokenInstance = tokens.find((t) => t.getTokenDefinition() === protection.token);
|
|
14402
|
+
if (!tokenInstance) {
|
|
14403
|
+
return false;
|
|
14404
|
+
}
|
|
14405
|
+
const result = await protection.check(tokenInstance);
|
|
14406
|
+
if (result === false) {
|
|
14407
|
+
return false;
|
|
14408
|
+
}
|
|
14409
|
+
}
|
|
14410
|
+
return true;
|
|
14411
|
+
}
|
|
14412
|
+
buildContext(adapters) {
|
|
14413
|
+
return buildElementContext(this.data.queryElements || [], this.data.mutationElements || [], adapters);
|
|
14414
|
+
}
|
|
14415
|
+
toJsonSchema() {
|
|
14416
|
+
return {
|
|
14417
|
+
params: this.data.params?.toJsonSchema?.() ?? null,
|
|
14418
|
+
result: this.data.result?.toJsonSchema?.() ?? null
|
|
14419
|
+
};
|
|
14420
|
+
}
|
|
14421
|
+
}
|
|
14363
14422
|
|
|
14364
14423
|
class AggregateBase {
|
|
14365
14424
|
value;
|
|
@@ -15835,14 +15894,14 @@ var Operation, PROXY_DRAFT, RAW_RETURN_SYMBOL, iteratorSymbol, dataTypes, intern
|
|
|
15835
15894
|
throw new Error(`Strict mode: Mutable data cannot be accessed directly, please use 'unsafe(callback)' wrap.`);
|
|
15836
15895
|
}
|
|
15837
15896
|
}, mapHandler, mapHandlerKeys, getNextIterator = (target, iterator, { isValuesIterator }) => () => {
|
|
15838
|
-
var
|
|
15897
|
+
var _a2, _b;
|
|
15839
15898
|
const result = iterator.next();
|
|
15840
15899
|
if (result.done)
|
|
15841
15900
|
return result;
|
|
15842
15901
|
const key = result.value;
|
|
15843
15902
|
let value = target.setMap.get(key);
|
|
15844
15903
|
const currentDraft = getProxyDraft(value);
|
|
15845
|
-
const mutable = ((_b = (
|
|
15904
|
+
const mutable = ((_b = (_a2 = target.options).mark) === null || _b === undefined ? undefined : _b.call(_a2, value, dataTypes)) === dataTypes.mutable;
|
|
15846
15905
|
if (target.options.strict) {
|
|
15847
15906
|
checkReadable(key, target.options, mutable);
|
|
15848
15907
|
}
|
|
@@ -15868,7 +15927,7 @@ var Operation, PROXY_DRAFT, RAW_RETURN_SYMBOL, iteratorSymbol, dataTypes, intern
|
|
|
15868
15927
|
throw new Error(`Invalid options: ${String(arg)}, 'options' should be an object.`);
|
|
15869
15928
|
}
|
|
15870
15929
|
return function create(arg0, arg1, arg2) {
|
|
15871
|
-
var
|
|
15930
|
+
var _a2, _b, _c;
|
|
15872
15931
|
if (typeof arg0 === "function" && typeof arg1 !== "function") {
|
|
15873
15932
|
return function(base22, ...args) {
|
|
15874
15933
|
return create(base22, (draft2) => arg0.call(this, draft2, ...args), arg1);
|
|
@@ -15897,7 +15956,7 @@ var Operation, PROXY_DRAFT, RAW_RETURN_SYMBOL, iteratorSymbol, dataTypes, intern
|
|
|
15897
15956
|
}
|
|
15898
15957
|
return;
|
|
15899
15958
|
} : options.mark;
|
|
15900
|
-
const enablePatches = (
|
|
15959
|
+
const enablePatches = (_a2 = options.enablePatches) !== null && _a2 !== undefined ? _a2 : false;
|
|
15901
15960
|
const strict = (_b = options.strict) !== null && _b !== undefined ? _b : false;
|
|
15902
15961
|
const enableAutoFreeze = (_c = options.enableAutoFreeze) !== null && _c !== undefined ? _c : false;
|
|
15903
15962
|
const _options = {
|
|
@@ -15968,7 +16027,7 @@ var Operation, PROXY_DRAFT, RAW_RETURN_SYMBOL, iteratorSymbol, dataTypes, intern
|
|
|
15968
16027
|
}
|
|
15969
16028
|
return returnValue(result);
|
|
15970
16029
|
};
|
|
15971
|
-
}, create, constructorString, TOKEN_PREFIX = "arc:token:", eventWireInstanceCounter = 0, EVENT_TABLES, arrayValidator, ArcArray, objectValidator, ArcObject, ArcPrimitive, stringValidator, ArcString, ArcContextElement, ArcBoolean, ArcId, numberValidator, ArcNumber, ArcEvent, ForkedStoreState, ForkedDataStorage, MasterStoreState, MasterDataStorage2, dateValidator, SQLiteReadWriteTransaction, createSQLiteAdapterFactory = (db) => {
|
|
16030
|
+
}, create, constructorString, TOKEN_PREFIX = "arc:token:", eventWireInstanceCounter = 0, EVENT_TABLES, arrayValidator, ArcArray, objectValidator, ArcObject, ArcPrimitive, stringValidator, ArcString, ArcContextElement, ArcBoolean, ArcId, numberValidator, ArcNumber, ArcEvent, ArcCommand, ArcListener, ArcRoute, ForkedStoreState, ForkedDataStorage, MasterStoreState, MasterDataStorage2, dateValidator, SQLiteReadWriteTransaction, createSQLiteAdapterFactory = (db) => {
|
|
15972
16031
|
return async (context) => {
|
|
15973
16032
|
const adapter = new SQLiteAdapter(db, context);
|
|
15974
16033
|
await adapter.initialize();
|
|
@@ -16049,10 +16108,10 @@ var init_dist = __esm(() => {
|
|
|
16049
16108
|
});
|
|
16050
16109
|
},
|
|
16051
16110
|
get(key) {
|
|
16052
|
-
var
|
|
16111
|
+
var _a2, _b;
|
|
16053
16112
|
const target = getProxyDraft(this);
|
|
16054
16113
|
const value = latest(target).get(key);
|
|
16055
|
-
const mutable = ((_b = (
|
|
16114
|
+
const mutable = ((_b = (_a2 = target.options).mark) === null || _b === undefined ? undefined : _b.call(_a2, value, dataTypes)) === dataTypes.mutable;
|
|
16056
16115
|
if (target.options.strict) {
|
|
16057
16116
|
checkReadable(value, target.options, mutable);
|
|
16058
16117
|
}
|
|
@@ -16235,8 +16294,8 @@ var init_dist = __esm(() => {
|
|
|
16235
16294
|
setHandlerKeys = Reflect.ownKeys(setHandler);
|
|
16236
16295
|
proxyHandler = {
|
|
16237
16296
|
get(target, key, receiver) {
|
|
16238
|
-
var
|
|
16239
|
-
const copy = (
|
|
16297
|
+
var _a2, _b;
|
|
16298
|
+
const copy = (_a2 = target.copy) === null || _a2 === undefined ? undefined : _a2[key];
|
|
16240
16299
|
if (copy && target.finalities.draftsCache.has(copy)) {
|
|
16241
16300
|
return copy;
|
|
16242
16301
|
}
|
|
@@ -16302,7 +16361,7 @@ var init_dist = __esm(() => {
|
|
|
16302
16361
|
return value;
|
|
16303
16362
|
},
|
|
16304
16363
|
set(target, key, value) {
|
|
16305
|
-
var
|
|
16364
|
+
var _a2;
|
|
16306
16365
|
if (target.type === 3 || target.type === 2) {
|
|
16307
16366
|
throw new Error(`Map/Set draft does not support any property assignment.`);
|
|
16308
16367
|
}
|
|
@@ -16319,7 +16378,7 @@ var init_dist = __esm(() => {
|
|
|
16319
16378
|
const currentProxyDraft = getProxyDraft(current);
|
|
16320
16379
|
if (currentProxyDraft && isEqual(currentProxyDraft.original, value)) {
|
|
16321
16380
|
target.copy[key] = value;
|
|
16322
|
-
target.assignedMap = (
|
|
16381
|
+
target.assignedMap = (_a2 = target.assignedMap) !== null && _a2 !== undefined ? _a2 : new Map;
|
|
16323
16382
|
target.assignedMap.set(key, false);
|
|
16324
16383
|
return true;
|
|
16325
16384
|
}
|
|
@@ -16364,7 +16423,7 @@ var init_dist = __esm(() => {
|
|
|
16364
16423
|
throw new Error(`Cannot call 'defineProperty()' on drafts`);
|
|
16365
16424
|
},
|
|
16366
16425
|
deleteProperty(target, key) {
|
|
16367
|
-
var
|
|
16426
|
+
var _a2;
|
|
16368
16427
|
if (target.type === 1) {
|
|
16369
16428
|
return proxyHandler.set.call(this, target, key, undefined, target.proxy);
|
|
16370
16429
|
}
|
|
@@ -16373,7 +16432,7 @@ var init_dist = __esm(() => {
|
|
|
16373
16432
|
markChanged(target);
|
|
16374
16433
|
target.assignedMap.set(key, false);
|
|
16375
16434
|
} else {
|
|
16376
|
-
target.assignedMap = (
|
|
16435
|
+
target.assignedMap = (_a2 = target.assignedMap) !== null && _a2 !== undefined ? _a2 : new Map;
|
|
16377
16436
|
target.assignedMap.delete(key);
|
|
16378
16437
|
}
|
|
16379
16438
|
if (target.copy)
|
|
@@ -17019,6 +17078,315 @@ var init_dist = __esm(() => {
|
|
|
17019
17078
|
return ArcEvent.sharedDatabaseStoreSchema();
|
|
17020
17079
|
}
|
|
17021
17080
|
};
|
|
17081
|
+
ArcCommand = class ArcCommand extends ArcContextElement {
|
|
17082
|
+
data;
|
|
17083
|
+
#fn;
|
|
17084
|
+
constructor(data, fn) {
|
|
17085
|
+
super(data.name);
|
|
17086
|
+
this.data = data;
|
|
17087
|
+
this.#fn = fn ?? new ArcFunction({
|
|
17088
|
+
params: data.params,
|
|
17089
|
+
result: null,
|
|
17090
|
+
queryElements: data.queryElements,
|
|
17091
|
+
mutationElements: data.mutationElements,
|
|
17092
|
+
protections: data.protections || [],
|
|
17093
|
+
handler: data.handler ?? null,
|
|
17094
|
+
description: data.description
|
|
17095
|
+
});
|
|
17096
|
+
}
|
|
17097
|
+
description(description) {
|
|
17098
|
+
const newFn = this.#fn.description(description);
|
|
17099
|
+
return new ArcCommand({ ...this.data, description }, newFn);
|
|
17100
|
+
}
|
|
17101
|
+
get isPublic() {
|
|
17102
|
+
return this.#fn.isPublic;
|
|
17103
|
+
}
|
|
17104
|
+
query(elements) {
|
|
17105
|
+
const newFn = this.#fn.query(elements);
|
|
17106
|
+
return new ArcCommand({ ...this.data, queryElements: elements }, newFn);
|
|
17107
|
+
}
|
|
17108
|
+
mutate(elements) {
|
|
17109
|
+
const newFn = this.#fn.mutate(elements);
|
|
17110
|
+
return new ArcCommand({ ...this.data, mutationElements: elements }, newFn);
|
|
17111
|
+
}
|
|
17112
|
+
withParams(schema) {
|
|
17113
|
+
const newFn = this.#fn.withParams(schema);
|
|
17114
|
+
return new ArcCommand({
|
|
17115
|
+
...this.data,
|
|
17116
|
+
params: schema instanceof ArcObject ? schema : new ArcObject(schema)
|
|
17117
|
+
}, newFn);
|
|
17118
|
+
}
|
|
17119
|
+
withResult(...schemas) {
|
|
17120
|
+
return new ArcCommand({ ...this.data, results: schemas }, this.#fn);
|
|
17121
|
+
}
|
|
17122
|
+
handle(handler) {
|
|
17123
|
+
const newFn = new ArcFunction({
|
|
17124
|
+
...this.#fn.data,
|
|
17125
|
+
handler
|
|
17126
|
+
});
|
|
17127
|
+
return new ArcCommand({ ...this.data, handler }, newFn);
|
|
17128
|
+
}
|
|
17129
|
+
protectBy(token, check) {
|
|
17130
|
+
const newFn = this.#fn.protectedBy(token, check);
|
|
17131
|
+
const existingProtections = this.data.protections || [];
|
|
17132
|
+
return new ArcCommand({
|
|
17133
|
+
...this.data,
|
|
17134
|
+
protections: [...existingProtections, { token, check }]
|
|
17135
|
+
}, newFn);
|
|
17136
|
+
}
|
|
17137
|
+
get hasProtections() {
|
|
17138
|
+
return this.#fn.hasProtections;
|
|
17139
|
+
}
|
|
17140
|
+
get protections() {
|
|
17141
|
+
return this.#fn.protections;
|
|
17142
|
+
}
|
|
17143
|
+
async verifyProtections(tokens) {
|
|
17144
|
+
return this.#fn.verifyProtections(tokens);
|
|
17145
|
+
}
|
|
17146
|
+
async init(environment, adapters) {
|
|
17147
|
+
if (environment === "server" && this.data.handler && adapters.commandWire?.registerCommandHandler) {
|
|
17148
|
+
adapters.commandWire.registerCommandHandler(this.data.name, async (params) => {
|
|
17149
|
+
const executeFunc = this.mutateContext(adapters);
|
|
17150
|
+
return await executeFunc(params);
|
|
17151
|
+
});
|
|
17152
|
+
}
|
|
17153
|
+
}
|
|
17154
|
+
mutateContext(adapters) {
|
|
17155
|
+
const executeFunc = async (params) => {
|
|
17156
|
+
if (this.data.handler) {
|
|
17157
|
+
return await this.executeLocally(params, adapters);
|
|
17158
|
+
}
|
|
17159
|
+
if (!adapters.commandWire) {
|
|
17160
|
+
throw new Error(`Command "${this.data.name}" has no handler and no commandWire adapter available for remote execution`);
|
|
17161
|
+
}
|
|
17162
|
+
return await adapters.commandWire.executeCommand(this.data.name, params);
|
|
17163
|
+
};
|
|
17164
|
+
return Object.assign(executeFunc, { params: this.data.params });
|
|
17165
|
+
}
|
|
17166
|
+
async executeLocally(params, adapters) {
|
|
17167
|
+
if (!this.data.handler) {
|
|
17168
|
+
throw new Error(`Command "${this.data.name}" has no handler`);
|
|
17169
|
+
}
|
|
17170
|
+
const context2 = this.buildCommandContext(adapters);
|
|
17171
|
+
return await this.data.handler(context2, params);
|
|
17172
|
+
}
|
|
17173
|
+
buildCommandContext(adapters) {
|
|
17174
|
+
const context2 = this.#fn.buildContext(adapters);
|
|
17175
|
+
if (this.#fn.hasProtections && adapters.authAdapter) {
|
|
17176
|
+
const decoded = adapters.authAdapter.getDecoded();
|
|
17177
|
+
if (decoded) {
|
|
17178
|
+
context2.$auth = {
|
|
17179
|
+
params: decoded.params,
|
|
17180
|
+
tokenName: decoded.tokenName
|
|
17181
|
+
};
|
|
17182
|
+
} else {
|
|
17183
|
+
throw new Error(`Command "${this.data.name}" requires authentication but no valid token found`);
|
|
17184
|
+
}
|
|
17185
|
+
}
|
|
17186
|
+
return context2;
|
|
17187
|
+
}
|
|
17188
|
+
toJsonSchema() {
|
|
17189
|
+
const parametersSchema = this.data.params ? this.data.params.toJsonSchema?.() ?? {
|
|
17190
|
+
type: "object",
|
|
17191
|
+
properties: {}
|
|
17192
|
+
} : { type: "object", properties: {} };
|
|
17193
|
+
return {
|
|
17194
|
+
type: "function",
|
|
17195
|
+
name: this.data.name,
|
|
17196
|
+
description: this.data.description ?? undefined,
|
|
17197
|
+
parameters: parametersSchema,
|
|
17198
|
+
strict: true
|
|
17199
|
+
};
|
|
17200
|
+
}
|
|
17201
|
+
};
|
|
17202
|
+
ArcListener = class ArcListener extends ArcContextElement {
|
|
17203
|
+
data;
|
|
17204
|
+
#fn;
|
|
17205
|
+
unsubscribers = [];
|
|
17206
|
+
constructor(data, fn) {
|
|
17207
|
+
super(data.name);
|
|
17208
|
+
this.data = data;
|
|
17209
|
+
this.#fn = fn ?? new ArcFunction({
|
|
17210
|
+
params: null,
|
|
17211
|
+
result: null,
|
|
17212
|
+
queryElements: data.queryElements,
|
|
17213
|
+
mutationElements: data.mutationElements,
|
|
17214
|
+
protections: [],
|
|
17215
|
+
handler: null,
|
|
17216
|
+
description: data.description
|
|
17217
|
+
});
|
|
17218
|
+
}
|
|
17219
|
+
description(description) {
|
|
17220
|
+
const newFn = this.#fn.description(description);
|
|
17221
|
+
return new ArcListener({ ...this.data, description }, newFn);
|
|
17222
|
+
}
|
|
17223
|
+
listenTo(events) {
|
|
17224
|
+
return new ArcListener({ ...this.data, eventElements: events }, this.#fn);
|
|
17225
|
+
}
|
|
17226
|
+
query(elements) {
|
|
17227
|
+
const newFn = this.#fn.query(elements);
|
|
17228
|
+
return new ArcListener({ ...this.data, queryElements: elements }, newFn);
|
|
17229
|
+
}
|
|
17230
|
+
mutate(elements) {
|
|
17231
|
+
const newFn = this.#fn.mutate(elements);
|
|
17232
|
+
return new ArcListener({ ...this.data, mutationElements: elements }, newFn);
|
|
17233
|
+
}
|
|
17234
|
+
async() {
|
|
17235
|
+
return new ArcListener({ ...this.data, isAsync: true }, this.#fn);
|
|
17236
|
+
}
|
|
17237
|
+
handle(handler) {
|
|
17238
|
+
return new ArcListener({ ...this.data, handler }, this.#fn);
|
|
17239
|
+
}
|
|
17240
|
+
get eventElements() {
|
|
17241
|
+
return this.data.eventElements || [];
|
|
17242
|
+
}
|
|
17243
|
+
get isAsync() {
|
|
17244
|
+
return this.data.isAsync;
|
|
17245
|
+
}
|
|
17246
|
+
async init(environment, adapters) {
|
|
17247
|
+
if (environment !== "server") {
|
|
17248
|
+
return;
|
|
17249
|
+
}
|
|
17250
|
+
if (!this.data.handler) {
|
|
17251
|
+
console.warn(`Listener "${this.data.name}" has no handler`);
|
|
17252
|
+
return;
|
|
17253
|
+
}
|
|
17254
|
+
if (!adapters.eventPublisher) {
|
|
17255
|
+
console.warn(`Listener "${this.data.name}" cannot subscribe: no eventPublisher adapter`);
|
|
17256
|
+
return;
|
|
17257
|
+
}
|
|
17258
|
+
for (const eventElement of this.data.eventElements) {
|
|
17259
|
+
const unsubscribe = adapters.eventPublisher.subscribe(eventElement.name, async (event2) => {
|
|
17260
|
+
await this.handleEvent(event2, adapters);
|
|
17261
|
+
});
|
|
17262
|
+
this.unsubscribers.push(unsubscribe);
|
|
17263
|
+
}
|
|
17264
|
+
}
|
|
17265
|
+
async handleEvent(event2, adapters) {
|
|
17266
|
+
if (!this.data.handler)
|
|
17267
|
+
return;
|
|
17268
|
+
const context2 = this.#fn.buildContext(adapters);
|
|
17269
|
+
if (adapters.authAdapter) {
|
|
17270
|
+
const decoded = adapters.authAdapter.getDecoded();
|
|
17271
|
+
if (decoded) {
|
|
17272
|
+
context2.$auth = {
|
|
17273
|
+
params: decoded.params,
|
|
17274
|
+
tokenName: decoded.tokenName
|
|
17275
|
+
};
|
|
17276
|
+
}
|
|
17277
|
+
}
|
|
17278
|
+
if (this.data.isAsync) {
|
|
17279
|
+
Promise.resolve(this.data.handler(context2, event2)).catch((error) => {
|
|
17280
|
+
console.error(`Async listener "${this.data.name}" error:`, error);
|
|
17281
|
+
});
|
|
17282
|
+
} else {
|
|
17283
|
+
await this.data.handler(context2, event2);
|
|
17284
|
+
}
|
|
17285
|
+
}
|
|
17286
|
+
destroy() {
|
|
17287
|
+
for (const unsubscribe of this.unsubscribers) {
|
|
17288
|
+
unsubscribe();
|
|
17289
|
+
}
|
|
17290
|
+
this.unsubscribers = [];
|
|
17291
|
+
}
|
|
17292
|
+
};
|
|
17293
|
+
ArcRoute = class ArcRoute extends ArcContextElement {
|
|
17294
|
+
data;
|
|
17295
|
+
#fn;
|
|
17296
|
+
constructor(data, fn) {
|
|
17297
|
+
super(data.name);
|
|
17298
|
+
this.data = data;
|
|
17299
|
+
this.#fn = fn ?? new ArcFunction({
|
|
17300
|
+
params: null,
|
|
17301
|
+
result: null,
|
|
17302
|
+
queryElements: data.queryElements,
|
|
17303
|
+
mutationElements: data.mutationElements,
|
|
17304
|
+
protections: data.protections || [],
|
|
17305
|
+
handler: null,
|
|
17306
|
+
description: data.description
|
|
17307
|
+
});
|
|
17308
|
+
}
|
|
17309
|
+
description(description) {
|
|
17310
|
+
const newFn = this.#fn.description(description);
|
|
17311
|
+
return new ArcRoute({ ...this.data, description }, newFn);
|
|
17312
|
+
}
|
|
17313
|
+
path(path4) {
|
|
17314
|
+
return new ArcRoute({ ...this.data, path: path4 }, this.#fn);
|
|
17315
|
+
}
|
|
17316
|
+
public() {
|
|
17317
|
+
return new ArcRoute({ ...this.data, isPublic: true }, this.#fn);
|
|
17318
|
+
}
|
|
17319
|
+
query(elements) {
|
|
17320
|
+
const newFn = this.#fn.query(elements);
|
|
17321
|
+
return new ArcRoute({ ...this.data, queryElements: elements }, newFn);
|
|
17322
|
+
}
|
|
17323
|
+
mutate(elements) {
|
|
17324
|
+
const newFn = this.#fn.mutate(elements);
|
|
17325
|
+
return new ArcRoute({ ...this.data, mutationElements: elements }, newFn);
|
|
17326
|
+
}
|
|
17327
|
+
protectBy(token, check) {
|
|
17328
|
+
const newFn = this.#fn.protectedBy(token, check);
|
|
17329
|
+
const existingProtections = this.data.protections || [];
|
|
17330
|
+
return new ArcRoute({
|
|
17331
|
+
...this.data,
|
|
17332
|
+
protections: [...existingProtections, { token, check }]
|
|
17333
|
+
}, newFn);
|
|
17334
|
+
}
|
|
17335
|
+
handle(handlers) {
|
|
17336
|
+
return new ArcRoute({ ...this.data, handlers }, this.#fn);
|
|
17337
|
+
}
|
|
17338
|
+
get routePath() {
|
|
17339
|
+
return this.data.path || `/${this.data.name}`;
|
|
17340
|
+
}
|
|
17341
|
+
get fullPath() {
|
|
17342
|
+
return `/route${this.routePath}`;
|
|
17343
|
+
}
|
|
17344
|
+
get isPublic() {
|
|
17345
|
+
return this.data.isPublic;
|
|
17346
|
+
}
|
|
17347
|
+
get hasProtections() {
|
|
17348
|
+
return this.#fn.hasProtections;
|
|
17349
|
+
}
|
|
17350
|
+
get protections() {
|
|
17351
|
+
return this.data.protections || [];
|
|
17352
|
+
}
|
|
17353
|
+
getHandler(method) {
|
|
17354
|
+
return this.data.handlers?.[method];
|
|
17355
|
+
}
|
|
17356
|
+
matchesPath(pathname) {
|
|
17357
|
+
const routePath = this.fullPath;
|
|
17358
|
+
const routeParts = routePath.split("/").filter(Boolean);
|
|
17359
|
+
const pathParts = pathname.split("/").filter(Boolean);
|
|
17360
|
+
if (routeParts.length !== pathParts.length) {
|
|
17361
|
+
return { matches: false, params: {} };
|
|
17362
|
+
}
|
|
17363
|
+
const params = {};
|
|
17364
|
+
for (let i = 0;i < routeParts.length; i++) {
|
|
17365
|
+
const routePart = routeParts[i];
|
|
17366
|
+
const pathPart = pathParts[i];
|
|
17367
|
+
if (routePart.startsWith(":")) {
|
|
17368
|
+
const paramName = routePart.slice(1);
|
|
17369
|
+
params[paramName] = pathPart;
|
|
17370
|
+
} else if (routePart !== pathPart) {
|
|
17371
|
+
return { matches: false, params: {} };
|
|
17372
|
+
}
|
|
17373
|
+
}
|
|
17374
|
+
return { matches: true, params };
|
|
17375
|
+
}
|
|
17376
|
+
async verifyProtections(tokens) {
|
|
17377
|
+
if (this.data.isPublic) {
|
|
17378
|
+
return true;
|
|
17379
|
+
}
|
|
17380
|
+
return this.#fn.verifyProtections(tokens);
|
|
17381
|
+
}
|
|
17382
|
+
buildContext(adapters, authParams) {
|
|
17383
|
+
const context2 = this.#fn.buildContext(adapters);
|
|
17384
|
+
if (authParams) {
|
|
17385
|
+
context2.$auth = authParams;
|
|
17386
|
+
}
|
|
17387
|
+
return context2;
|
|
17388
|
+
}
|
|
17389
|
+
};
|
|
17022
17390
|
ForkedStoreState = class ForkedStoreState extends StoreState {
|
|
17023
17391
|
master;
|
|
17024
17392
|
changedItems = new Map;
|
|
@@ -17496,7 +17864,7 @@ var init_dist = __esm(() => {
|
|
|
17496
17864
|
};
|
|
17497
17865
|
});
|
|
17498
17866
|
|
|
17499
|
-
// ../../node_modules/commander/esm.mjs
|
|
17867
|
+
// ../../node_modules/.bun/commander@11.1.0/node_modules/commander/esm.mjs
|
|
17500
17868
|
var import__ = __toESM(require_commander(), 1);
|
|
17501
17869
|
var {
|
|
17502
17870
|
program,
|
|
@@ -17512,14 +17880,14 @@ var {
|
|
|
17512
17880
|
Help
|
|
17513
17881
|
} = import__.default;
|
|
17514
17882
|
|
|
17515
|
-
// node_modules/find-up/index.js
|
|
17516
|
-
import path2 from "
|
|
17883
|
+
// ../../node_modules/.bun/find-up@7.0.0/node_modules/find-up/index.js
|
|
17884
|
+
import path2 from "path";
|
|
17517
17885
|
|
|
17518
|
-
// node_modules/find-up/node_modules/locate-path/index.js
|
|
17519
|
-
import process2 from "
|
|
17520
|
-
import path from "
|
|
17521
|
-
import fs, { promises as fsPromises } from "
|
|
17522
|
-
import { fileURLToPath } from "
|
|
17886
|
+
// ../../node_modules/.bun/find-up@7.0.0/node_modules/find-up/node_modules/locate-path/index.js
|
|
17887
|
+
import process2 from "process";
|
|
17888
|
+
import path from "path";
|
|
17889
|
+
import fs, { promises as fsPromises } from "fs";
|
|
17890
|
+
import { fileURLToPath } from "url";
|
|
17523
17891
|
var typeMappings = {
|
|
17524
17892
|
directory: "isDirectory",
|
|
17525
17893
|
file: "isFile"
|
|
@@ -17555,13 +17923,13 @@ function locatePathSync(paths, {
|
|
|
17555
17923
|
}
|
|
17556
17924
|
}
|
|
17557
17925
|
|
|
17558
|
-
// ../../node_modules/unicorn-magic/node.js
|
|
17559
|
-
import { fileURLToPath as fileURLToPath2 } from "
|
|
17926
|
+
// ../../node_modules/.bun/unicorn-magic@0.1.0/node_modules/unicorn-magic/node.js
|
|
17927
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
17560
17928
|
function toPath2(urlOrPath) {
|
|
17561
17929
|
return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
|
|
17562
17930
|
}
|
|
17563
17931
|
|
|
17564
|
-
// node_modules/find-up/index.js
|
|
17932
|
+
// ../../node_modules/.bun/find-up@7.0.0/node_modules/find-up/index.js
|
|
17565
17933
|
var findUpStop = Symbol("findUpStop");
|
|
17566
17934
|
function findUpMultipleSync(name, options = {}) {
|
|
17567
17935
|
let directory = path2.resolve(toPath2(options.cwd) ?? "");
|
|
@@ -17600,12 +17968,12 @@ function findUpSync(name, options = {}) {
|
|
|
17600
17968
|
return matches[0];
|
|
17601
17969
|
}
|
|
17602
17970
|
|
|
17603
|
-
// ../../node_modules/eventemitter3/index.mjs
|
|
17971
|
+
// ../../node_modules/.bun/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs
|
|
17604
17972
|
var import__2 = __toESM(require_eventemitter3(), 1);
|
|
17605
17973
|
var eventemitter3_default = import__2.default;
|
|
17606
17974
|
|
|
17607
|
-
// ../../node_modules/colorette/index.js
|
|
17608
|
-
import * as tty from "
|
|
17975
|
+
// ../../node_modules/.bun/colorette@2.0.20/node_modules/colorette/index.js
|
|
17976
|
+
import * as tty from "tty";
|
|
17609
17977
|
var {
|
|
17610
17978
|
env = {},
|
|
17611
17979
|
argv = [],
|
|
@@ -17710,15 +18078,15 @@ var {
|
|
|
17710
18078
|
bgWhiteBright
|
|
17711
18079
|
} = createColors();
|
|
17712
18080
|
|
|
17713
|
-
// ../../node_modules/listr2/dist/index.js
|
|
18081
|
+
// ../../node_modules/.bun/listr2@8.3.3/node_modules/listr2/dist/index.js
|
|
17714
18082
|
var import_rfdc = __toESM(require_rfdc(), 1);
|
|
17715
|
-
import { format } from "
|
|
17716
|
-
import { EOL } from "
|
|
17717
|
-
import { StringDecoder } from "
|
|
17718
|
-
import { EOL as EOL2 } from "
|
|
17719
|
-
import { Writable } from "
|
|
17720
|
-
import { EOL as EOL3 } from "
|
|
17721
|
-
import { randomUUID } from "
|
|
18083
|
+
import { format } from "util";
|
|
18084
|
+
import { EOL } from "os";
|
|
18085
|
+
import { StringDecoder } from "string_decoder";
|
|
18086
|
+
import { EOL as EOL2 } from "os";
|
|
18087
|
+
import { Writable } from "stream";
|
|
18088
|
+
import { EOL as EOL3 } from "os";
|
|
18089
|
+
import { randomUUID } from "crypto";
|
|
17722
18090
|
var __defProp2 = Object.defineProperty;
|
|
17723
18091
|
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
17724
18092
|
var ANSI_ESCAPE = "\x1B[";
|
|
@@ -19630,20 +19998,20 @@ var Listr = class {
|
|
|
19630
19998
|
};
|
|
19631
19999
|
|
|
19632
20000
|
// src/commands/build.ts
|
|
19633
|
-
import { dirname as dirname2 } from "
|
|
20001
|
+
import { dirname as dirname2 } from "path";
|
|
19634
20002
|
|
|
19635
20003
|
// src/utils/build.ts
|
|
19636
|
-
import { spawn } from "
|
|
19637
|
-
import { existsSync as existsSync2, mkdirSync as mkdirSync2, readFileSync as readFileSync2, unlinkSync, writeFileSync as writeFileSync2 } from "
|
|
19638
|
-
import { dirname, join as join2 } from "
|
|
20004
|
+
import { spawn } from "child_process";
|
|
20005
|
+
import { existsSync as existsSync2, mkdirSync as mkdirSync2, readFileSync as readFileSync2, unlinkSync, writeFileSync as writeFileSync2 } from "fs";
|
|
20006
|
+
import { dirname, join as join2 } from "path";
|
|
19639
20007
|
|
|
19640
20008
|
// src/utils/config.ts
|
|
19641
|
-
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "
|
|
20009
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
19642
20010
|
|
|
19643
|
-
// node_modules/
|
|
20011
|
+
// ../../node_modules/.bun/minimatch@9.0.9/node_modules/minimatch/dist/esm/index.js
|
|
19644
20012
|
var import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
19645
20013
|
|
|
19646
|
-
// node_modules/
|
|
20014
|
+
// ../../node_modules/.bun/minimatch@9.0.9/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
19647
20015
|
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
19648
20016
|
var assertValidPattern = (pattern) => {
|
|
19649
20017
|
if (typeof pattern !== "string") {
|
|
@@ -19654,7 +20022,7 @@ var assertValidPattern = (pattern) => {
|
|
|
19654
20022
|
}
|
|
19655
20023
|
};
|
|
19656
20024
|
|
|
19657
|
-
// node_modules/
|
|
20025
|
+
// ../../node_modules/.bun/minimatch@9.0.9/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
19658
20026
|
var posixClasses = {
|
|
19659
20027
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
19660
20028
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -19764,14 +20132,41 @@ var parseClass = (glob, position) => {
|
|
|
19764
20132
|
return [comb, uflag, endPos - pos, true];
|
|
19765
20133
|
};
|
|
19766
20134
|
|
|
19767
|
-
// node_modules/
|
|
20135
|
+
// ../../node_modules/.bun/minimatch@9.0.9/node_modules/minimatch/dist/esm/unescape.js
|
|
19768
20136
|
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
19769
20137
|
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
19770
20138
|
};
|
|
19771
20139
|
|
|
19772
|
-
// node_modules/
|
|
20140
|
+
// ../../node_modules/.bun/minimatch@9.0.9/node_modules/minimatch/dist/esm/ast.js
|
|
20141
|
+
var _a;
|
|
19773
20142
|
var types = new Set(["!", "?", "+", "*", "@"]);
|
|
19774
20143
|
var isExtglobType = (c) => types.has(c);
|
|
20144
|
+
var isExtglobAST = (c) => isExtglobType(c.type);
|
|
20145
|
+
var adoptionMap = new Map([
|
|
20146
|
+
["!", ["@"]],
|
|
20147
|
+
["?", ["?", "@"]],
|
|
20148
|
+
["@", ["@"]],
|
|
20149
|
+
["*", ["*", "+", "?", "@"]],
|
|
20150
|
+
["+", ["+", "@"]]
|
|
20151
|
+
]);
|
|
20152
|
+
var adoptionWithSpaceMap = new Map([
|
|
20153
|
+
["!", ["?"]],
|
|
20154
|
+
["@", ["?"]],
|
|
20155
|
+
["+", ["?", "*"]]
|
|
20156
|
+
]);
|
|
20157
|
+
var adoptionAnyMap = new Map([
|
|
20158
|
+
["!", ["?", "@"]],
|
|
20159
|
+
["?", ["?", "@"]],
|
|
20160
|
+
["@", ["?", "@"]],
|
|
20161
|
+
["*", ["*", "+", "?", "@"]],
|
|
20162
|
+
["+", ["+", "@", "?", "*"]]
|
|
20163
|
+
]);
|
|
20164
|
+
var usurpMap = new Map([
|
|
20165
|
+
["!", new Map([["!", "@"]])],
|
|
20166
|
+
["?", new Map([["*", "*"], ["+", "*"]])],
|
|
20167
|
+
["@", new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
|
|
20168
|
+
["+", new Map([["?", "*"], ["*", "*"]])]
|
|
20169
|
+
]);
|
|
19775
20170
|
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
19776
20171
|
var startNoDot = "(?!\\.)";
|
|
19777
20172
|
var addPatternStart = new Set(["[", "."]);
|
|
@@ -19859,7 +20254,7 @@ class AST {
|
|
|
19859
20254
|
for (const p of parts) {
|
|
19860
20255
|
if (p === "")
|
|
19861
20256
|
continue;
|
|
19862
|
-
if (typeof p !== "string" && !(p instanceof
|
|
20257
|
+
if (typeof p !== "string" && !(p instanceof _a && p.#parent === this)) {
|
|
19863
20258
|
throw new Error("invalid part: " + p);
|
|
19864
20259
|
}
|
|
19865
20260
|
this.#parts.push(p);
|
|
@@ -19884,7 +20279,7 @@ class AST {
|
|
|
19884
20279
|
const p = this.#parent;
|
|
19885
20280
|
for (let i = 0;i < this.#parentIndex; i++) {
|
|
19886
20281
|
const pp = p.#parts[i];
|
|
19887
|
-
if (!(pp instanceof
|
|
20282
|
+
if (!(pp instanceof _a && pp.type === "!")) {
|
|
19888
20283
|
return false;
|
|
19889
20284
|
}
|
|
19890
20285
|
}
|
|
@@ -19909,13 +20304,14 @@ class AST {
|
|
|
19909
20304
|
this.push(part.clone(this));
|
|
19910
20305
|
}
|
|
19911
20306
|
clone(parent) {
|
|
19912
|
-
const c = new
|
|
20307
|
+
const c = new _a(this.type, parent);
|
|
19913
20308
|
for (const p of this.#parts) {
|
|
19914
20309
|
c.copyIn(p);
|
|
19915
20310
|
}
|
|
19916
20311
|
return c;
|
|
19917
20312
|
}
|
|
19918
|
-
static #parseAST(str, ast, pos, opt) {
|
|
20313
|
+
static #parseAST(str, ast, pos, opt, extDepth) {
|
|
20314
|
+
const maxDepth = opt.maxExtglobRecursion ?? 2;
|
|
19919
20315
|
let escaping = false;
|
|
19920
20316
|
let inBrace = false;
|
|
19921
20317
|
let braceStart = -1;
|
|
@@ -19947,11 +20343,12 @@ class AST {
|
|
|
19947
20343
|
acc2 += c;
|
|
19948
20344
|
continue;
|
|
19949
20345
|
}
|
|
19950
|
-
|
|
20346
|
+
const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth;
|
|
20347
|
+
if (doRecurse) {
|
|
19951
20348
|
ast.push(acc2);
|
|
19952
20349
|
acc2 = "";
|
|
19953
|
-
const ext = new
|
|
19954
|
-
i2 =
|
|
20350
|
+
const ext = new _a(c, ast);
|
|
20351
|
+
i2 = _a.#parseAST(str, ext, i2, opt, extDepth + 1);
|
|
19955
20352
|
ast.push(ext);
|
|
19956
20353
|
continue;
|
|
19957
20354
|
}
|
|
@@ -19961,7 +20358,7 @@ class AST {
|
|
|
19961
20358
|
return i2;
|
|
19962
20359
|
}
|
|
19963
20360
|
let i = pos + 1;
|
|
19964
|
-
let part = new
|
|
20361
|
+
let part = new _a(null, ast);
|
|
19965
20362
|
const parts = [];
|
|
19966
20363
|
let acc = "";
|
|
19967
20364
|
while (i < str.length) {
|
|
@@ -19988,19 +20385,21 @@ class AST {
|
|
|
19988
20385
|
acc += c;
|
|
19989
20386
|
continue;
|
|
19990
20387
|
}
|
|
19991
|
-
|
|
20388
|
+
const doRecurse = isExtglobType(c) && str.charAt(i) === "(" && (extDepth <= maxDepth || ast && ast.#canAdoptType(c));
|
|
20389
|
+
if (doRecurse) {
|
|
20390
|
+
const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
|
|
19992
20391
|
part.push(acc);
|
|
19993
20392
|
acc = "";
|
|
19994
|
-
const ext = new
|
|
20393
|
+
const ext = new _a(c, part);
|
|
19995
20394
|
part.push(ext);
|
|
19996
|
-
i =
|
|
20395
|
+
i = _a.#parseAST(str, ext, i, opt, extDepth + depthAdd);
|
|
19997
20396
|
continue;
|
|
19998
20397
|
}
|
|
19999
20398
|
if (c === "|") {
|
|
20000
20399
|
part.push(acc);
|
|
20001
20400
|
acc = "";
|
|
20002
20401
|
parts.push(part);
|
|
20003
|
-
part = new
|
|
20402
|
+
part = new _a(null, ast);
|
|
20004
20403
|
continue;
|
|
20005
20404
|
}
|
|
20006
20405
|
if (c === ")") {
|
|
@@ -20019,9 +20418,101 @@ class AST {
|
|
|
20019
20418
|
ast.#parts = [str.substring(pos - 1)];
|
|
20020
20419
|
return i;
|
|
20021
20420
|
}
|
|
20421
|
+
#canAdoptWithSpace(child) {
|
|
20422
|
+
return this.#canAdopt(child, adoptionWithSpaceMap);
|
|
20423
|
+
}
|
|
20424
|
+
#canAdopt(child, map = adoptionMap) {
|
|
20425
|
+
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null) {
|
|
20426
|
+
return false;
|
|
20427
|
+
}
|
|
20428
|
+
const gc = child.#parts[0];
|
|
20429
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
20430
|
+
return false;
|
|
20431
|
+
}
|
|
20432
|
+
return this.#canAdoptType(gc.type, map);
|
|
20433
|
+
}
|
|
20434
|
+
#canAdoptType(c, map = adoptionAnyMap) {
|
|
20435
|
+
return !!map.get(this.type)?.includes(c);
|
|
20436
|
+
}
|
|
20437
|
+
#adoptWithSpace(child, index) {
|
|
20438
|
+
const gc = child.#parts[0];
|
|
20439
|
+
const blank = new _a(null, gc, this.options);
|
|
20440
|
+
blank.#parts.push("");
|
|
20441
|
+
gc.push(blank);
|
|
20442
|
+
this.#adopt(child, index);
|
|
20443
|
+
}
|
|
20444
|
+
#adopt(child, index) {
|
|
20445
|
+
const gc = child.#parts[0];
|
|
20446
|
+
this.#parts.splice(index, 1, ...gc.#parts);
|
|
20447
|
+
for (const p of gc.#parts) {
|
|
20448
|
+
if (typeof p === "object")
|
|
20449
|
+
p.#parent = this;
|
|
20450
|
+
}
|
|
20451
|
+
this.#toString = undefined;
|
|
20452
|
+
}
|
|
20453
|
+
#canUsurpType(c) {
|
|
20454
|
+
const m = usurpMap.get(this.type);
|
|
20455
|
+
return !!m?.has(c);
|
|
20456
|
+
}
|
|
20457
|
+
#canUsurp(child) {
|
|
20458
|
+
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) {
|
|
20459
|
+
return false;
|
|
20460
|
+
}
|
|
20461
|
+
const gc = child.#parts[0];
|
|
20462
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
20463
|
+
return false;
|
|
20464
|
+
}
|
|
20465
|
+
return this.#canUsurpType(gc.type);
|
|
20466
|
+
}
|
|
20467
|
+
#usurp(child) {
|
|
20468
|
+
const m = usurpMap.get(this.type);
|
|
20469
|
+
const gc = child.#parts[0];
|
|
20470
|
+
const nt = m?.get(gc.type);
|
|
20471
|
+
if (!nt)
|
|
20472
|
+
return false;
|
|
20473
|
+
this.#parts = gc.#parts;
|
|
20474
|
+
for (const p of this.#parts) {
|
|
20475
|
+
if (typeof p === "object")
|
|
20476
|
+
p.#parent = this;
|
|
20477
|
+
}
|
|
20478
|
+
this.type = nt;
|
|
20479
|
+
this.#toString = undefined;
|
|
20480
|
+
this.#emptyExt = false;
|
|
20481
|
+
}
|
|
20482
|
+
#flatten() {
|
|
20483
|
+
if (!isExtglobAST(this)) {
|
|
20484
|
+
for (const p of this.#parts) {
|
|
20485
|
+
if (typeof p === "object")
|
|
20486
|
+
p.#flatten();
|
|
20487
|
+
}
|
|
20488
|
+
} else {
|
|
20489
|
+
let iterations = 0;
|
|
20490
|
+
let done = false;
|
|
20491
|
+
do {
|
|
20492
|
+
done = true;
|
|
20493
|
+
for (let i = 0;i < this.#parts.length; i++) {
|
|
20494
|
+
const c = this.#parts[i];
|
|
20495
|
+
if (typeof c === "object") {
|
|
20496
|
+
c.#flatten();
|
|
20497
|
+
if (this.#canAdopt(c)) {
|
|
20498
|
+
done = false;
|
|
20499
|
+
this.#adopt(c, i);
|
|
20500
|
+
} else if (this.#canAdoptWithSpace(c)) {
|
|
20501
|
+
done = false;
|
|
20502
|
+
this.#adoptWithSpace(c, i);
|
|
20503
|
+
} else if (this.#canUsurp(c)) {
|
|
20504
|
+
done = false;
|
|
20505
|
+
this.#usurp(c);
|
|
20506
|
+
}
|
|
20507
|
+
}
|
|
20508
|
+
}
|
|
20509
|
+
} while (!done && ++iterations < 10);
|
|
20510
|
+
}
|
|
20511
|
+
this.#toString = undefined;
|
|
20512
|
+
}
|
|
20022
20513
|
static fromGlob(pattern, options = {}) {
|
|
20023
|
-
const ast = new
|
|
20024
|
-
|
|
20514
|
+
const ast = new _a(null, undefined, options);
|
|
20515
|
+
_a.#parseAST(pattern, ast, 0, options, 0);
|
|
20025
20516
|
return ast;
|
|
20026
20517
|
}
|
|
20027
20518
|
toMMPattern() {
|
|
@@ -20044,12 +20535,14 @@ class AST {
|
|
|
20044
20535
|
}
|
|
20045
20536
|
toRegExpSource(allowDot) {
|
|
20046
20537
|
const dot = allowDot ?? !!this.#options.dot;
|
|
20047
|
-
if (this.#root === this)
|
|
20538
|
+
if (this.#root === this) {
|
|
20539
|
+
this.#flatten();
|
|
20048
20540
|
this.#fillNegs();
|
|
20049
|
-
|
|
20541
|
+
}
|
|
20542
|
+
if (!isExtglobAST(this)) {
|
|
20050
20543
|
const noEmpty = this.isStart() && this.isEnd();
|
|
20051
20544
|
const src = this.#parts.map((p) => {
|
|
20052
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ?
|
|
20545
|
+
const [re, _, hasMagic, uflag] = typeof p === "string" ? _a.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
|
|
20053
20546
|
this.#hasMagic = this.#hasMagic || hasMagic;
|
|
20054
20547
|
this.#uflag = this.#uflag || uflag;
|
|
20055
20548
|
return re;
|
|
@@ -20083,9 +20576,10 @@ class AST {
|
|
|
20083
20576
|
let body = this.#partsToRegExp(dot);
|
|
20084
20577
|
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
20085
20578
|
const s = this.toString();
|
|
20086
|
-
|
|
20087
|
-
|
|
20088
|
-
|
|
20579
|
+
const me = this;
|
|
20580
|
+
me.#parts = [s];
|
|
20581
|
+
me.type = null;
|
|
20582
|
+
me.#hasMagic = undefined;
|
|
20089
20583
|
return [s, unescape(this.toString()), false, false];
|
|
20090
20584
|
}
|
|
20091
20585
|
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(true);
|
|
@@ -20123,11 +20617,13 @@ class AST {
|
|
|
20123
20617
|
let escaping = false;
|
|
20124
20618
|
let re = "";
|
|
20125
20619
|
let uflag = false;
|
|
20620
|
+
let inStar = false;
|
|
20126
20621
|
for (let i = 0;i < glob.length; i++) {
|
|
20127
20622
|
const c = glob.charAt(i);
|
|
20128
20623
|
if (escaping) {
|
|
20129
20624
|
escaping = false;
|
|
20130
20625
|
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
20626
|
+
inStar = false;
|
|
20131
20627
|
continue;
|
|
20132
20628
|
}
|
|
20133
20629
|
if (c === "\\") {
|
|
@@ -20145,16 +20641,19 @@ class AST {
|
|
|
20145
20641
|
uflag = uflag || needUflag;
|
|
20146
20642
|
i += consumed - 1;
|
|
20147
20643
|
hasMagic = hasMagic || magic;
|
|
20644
|
+
inStar = false;
|
|
20148
20645
|
continue;
|
|
20149
20646
|
}
|
|
20150
20647
|
}
|
|
20151
20648
|
if (c === "*") {
|
|
20152
|
-
if (
|
|
20153
|
-
|
|
20154
|
-
|
|
20155
|
-
|
|
20649
|
+
if (inStar)
|
|
20650
|
+
continue;
|
|
20651
|
+
inStar = true;
|
|
20652
|
+
re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
|
|
20156
20653
|
hasMagic = true;
|
|
20157
20654
|
continue;
|
|
20655
|
+
} else {
|
|
20656
|
+
inStar = false;
|
|
20158
20657
|
}
|
|
20159
20658
|
if (c === "?") {
|
|
20160
20659
|
re += qmark;
|
|
@@ -20166,13 +20665,14 @@ class AST {
|
|
|
20166
20665
|
return [re, unescape(glob), !!hasMagic, uflag];
|
|
20167
20666
|
}
|
|
20168
20667
|
}
|
|
20668
|
+
_a = AST;
|
|
20169
20669
|
|
|
20170
|
-
// node_modules/
|
|
20670
|
+
// ../../node_modules/.bun/minimatch@9.0.9/node_modules/minimatch/dist/esm/escape.js
|
|
20171
20671
|
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
20172
20672
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
20173
20673
|
};
|
|
20174
20674
|
|
|
20175
|
-
// node_modules/
|
|
20675
|
+
// ../../node_modules/.bun/minimatch@9.0.9/node_modules/minimatch/dist/esm/index.js
|
|
20176
20676
|
var minimatch = (p, pattern, options = {}) => {
|
|
20177
20677
|
assertValidPattern(pattern);
|
|
20178
20678
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
@@ -20320,11 +20820,13 @@ class Minimatch {
|
|
|
20320
20820
|
isWindows;
|
|
20321
20821
|
platform;
|
|
20322
20822
|
windowsNoMagicRoot;
|
|
20823
|
+
maxGlobstarRecursion;
|
|
20323
20824
|
regexp;
|
|
20324
20825
|
constructor(pattern, options = {}) {
|
|
20325
20826
|
assertValidPattern(pattern);
|
|
20326
20827
|
options = options || {};
|
|
20327
20828
|
this.options = options;
|
|
20829
|
+
this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200;
|
|
20328
20830
|
this.pattern = pattern;
|
|
20329
20831
|
this.platform = options.platform || defaultPlatform;
|
|
20330
20832
|
this.isWindows = this.platform === "win32";
|
|
@@ -20619,7 +21121,8 @@ class Minimatch {
|
|
|
20619
21121
|
this.negate = negate;
|
|
20620
21122
|
}
|
|
20621
21123
|
matchOne(file, pattern, partial = false) {
|
|
20622
|
-
|
|
21124
|
+
let fileStartIndex = 0;
|
|
21125
|
+
let patternStartIndex = 0;
|
|
20623
21126
|
if (this.isWindows) {
|
|
20624
21127
|
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
20625
21128
|
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
@@ -20628,14 +21131,14 @@ class Minimatch {
|
|
|
20628
21131
|
const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
|
|
20629
21132
|
const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
|
|
20630
21133
|
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
20631
|
-
const [fd, pd] = [
|
|
21134
|
+
const [fd, pd] = [
|
|
21135
|
+
file[fdi],
|
|
21136
|
+
pattern[pdi]
|
|
21137
|
+
];
|
|
20632
21138
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
20633
21139
|
pattern[pdi] = fd;
|
|
20634
|
-
|
|
20635
|
-
|
|
20636
|
-
} else if (fdi > pdi) {
|
|
20637
|
-
file = file.slice(fdi);
|
|
20638
|
-
}
|
|
21140
|
+
patternStartIndex = pdi;
|
|
21141
|
+
fileStartIndex = fdi;
|
|
20639
21142
|
}
|
|
20640
21143
|
}
|
|
20641
21144
|
}
|
|
@@ -20643,53 +21146,118 @@ class Minimatch {
|
|
|
20643
21146
|
if (optimizationLevel >= 2) {
|
|
20644
21147
|
file = this.levelTwoFileOptimize(file);
|
|
20645
21148
|
}
|
|
20646
|
-
|
|
20647
|
-
|
|
20648
|
-
|
|
20649
|
-
|
|
20650
|
-
|
|
20651
|
-
|
|
20652
|
-
|
|
20653
|
-
|
|
21149
|
+
if (pattern.includes(GLOBSTAR)) {
|
|
21150
|
+
return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
21151
|
+
}
|
|
21152
|
+
return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
21153
|
+
}
|
|
21154
|
+
#matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
|
|
21155
|
+
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
21156
|
+
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
21157
|
+
const [head, body, tail] = partial ? [
|
|
21158
|
+
pattern.slice(patternIndex, firstgs),
|
|
21159
|
+
pattern.slice(firstgs + 1),
|
|
21160
|
+
[]
|
|
21161
|
+
] : [
|
|
21162
|
+
pattern.slice(patternIndex, firstgs),
|
|
21163
|
+
pattern.slice(firstgs + 1, lastgs),
|
|
21164
|
+
pattern.slice(lastgs + 1)
|
|
21165
|
+
];
|
|
21166
|
+
if (head.length) {
|
|
21167
|
+
const fileHead = file.slice(fileIndex, fileIndex + head.length);
|
|
21168
|
+
if (!this.#matchOne(fileHead, head, partial, 0, 0))
|
|
20654
21169
|
return false;
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
|
|
20665
|
-
|
|
20666
|
-
return
|
|
21170
|
+
fileIndex += head.length;
|
|
21171
|
+
}
|
|
21172
|
+
let fileTailMatch = 0;
|
|
21173
|
+
if (tail.length) {
|
|
21174
|
+
if (tail.length + fileIndex > file.length)
|
|
21175
|
+
return false;
|
|
21176
|
+
let tailStart = file.length - tail.length;
|
|
21177
|
+
if (this.#matchOne(file, tail, partial, tailStart, 0)) {
|
|
21178
|
+
fileTailMatch = tail.length;
|
|
21179
|
+
} else {
|
|
21180
|
+
if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
|
|
21181
|
+
return false;
|
|
20667
21182
|
}
|
|
20668
|
-
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
|
|
20672
|
-
|
|
20673
|
-
|
|
20674
|
-
|
|
20675
|
-
|
|
20676
|
-
|
|
20677
|
-
|
|
20678
|
-
|
|
20679
|
-
|
|
20680
|
-
|
|
20681
|
-
fr++;
|
|
20682
|
-
}
|
|
21183
|
+
tailStart--;
|
|
21184
|
+
if (!this.#matchOne(file, tail, partial, tailStart, 0))
|
|
21185
|
+
return false;
|
|
21186
|
+
fileTailMatch = tail.length + 1;
|
|
21187
|
+
}
|
|
21188
|
+
}
|
|
21189
|
+
if (!body.length) {
|
|
21190
|
+
let sawSome = !!fileTailMatch;
|
|
21191
|
+
for (let i2 = fileIndex;i2 < file.length - fileTailMatch; i2++) {
|
|
21192
|
+
const f = String(file[i2]);
|
|
21193
|
+
sawSome = true;
|
|
21194
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
21195
|
+
return false;
|
|
20683
21196
|
}
|
|
20684
|
-
|
|
20685
|
-
|
|
20686
|
-
|
|
20687
|
-
|
|
20688
|
-
|
|
20689
|
-
|
|
21197
|
+
}
|
|
21198
|
+
return partial || sawSome;
|
|
21199
|
+
}
|
|
21200
|
+
const bodySegments = [[[], 0]];
|
|
21201
|
+
let currentBody = bodySegments[0];
|
|
21202
|
+
let nonGsParts = 0;
|
|
21203
|
+
const nonGsPartsSums = [0];
|
|
21204
|
+
for (const b of body) {
|
|
21205
|
+
if (b === GLOBSTAR) {
|
|
21206
|
+
nonGsPartsSums.push(nonGsParts);
|
|
21207
|
+
currentBody = [[], 0];
|
|
21208
|
+
bodySegments.push(currentBody);
|
|
21209
|
+
} else {
|
|
21210
|
+
currentBody[0].push(b);
|
|
21211
|
+
nonGsParts++;
|
|
21212
|
+
}
|
|
21213
|
+
}
|
|
21214
|
+
let i = bodySegments.length - 1;
|
|
21215
|
+
const fileLength = file.length - fileTailMatch;
|
|
21216
|
+
for (const b of bodySegments) {
|
|
21217
|
+
b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
|
|
21218
|
+
}
|
|
21219
|
+
return !!this.#matchGlobStarBodySections(file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
|
|
21220
|
+
}
|
|
21221
|
+
#matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
21222
|
+
const bs = bodySegments[bodyIndex];
|
|
21223
|
+
if (!bs) {
|
|
21224
|
+
for (let i = fileIndex;i < file.length; i++) {
|
|
21225
|
+
sawTail = true;
|
|
21226
|
+
const f = file[i];
|
|
21227
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
21228
|
+
return false;
|
|
20690
21229
|
}
|
|
21230
|
+
}
|
|
21231
|
+
return sawTail;
|
|
21232
|
+
}
|
|
21233
|
+
const [body, after] = bs;
|
|
21234
|
+
while (fileIndex <= after) {
|
|
21235
|
+
const m = this.#matchOne(file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
|
|
21236
|
+
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
21237
|
+
const sub = this.#matchGlobStarBodySections(file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
|
|
21238
|
+
if (sub !== false)
|
|
21239
|
+
return sub;
|
|
21240
|
+
}
|
|
21241
|
+
const f = file[fileIndex];
|
|
21242
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
20691
21243
|
return false;
|
|
20692
21244
|
}
|
|
21245
|
+
fileIndex++;
|
|
21246
|
+
}
|
|
21247
|
+
return partial || null;
|
|
21248
|
+
}
|
|
21249
|
+
#matchOne(file, pattern, partial, fileIndex, patternIndex) {
|
|
21250
|
+
let fi;
|
|
21251
|
+
let pi;
|
|
21252
|
+
let pl;
|
|
21253
|
+
let fl;
|
|
21254
|
+
for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length;fi < fl && pi < pl; fi++, pi++) {
|
|
21255
|
+
this.debug("matchOne loop");
|
|
21256
|
+
let p = pattern[pi];
|
|
21257
|
+
let f = file[fi];
|
|
21258
|
+
this.debug(pattern, p, f);
|
|
21259
|
+
if (p === false || p === GLOBSTAR)
|
|
21260
|
+
return false;
|
|
20693
21261
|
let hit;
|
|
20694
21262
|
if (typeof p === "string") {
|
|
20695
21263
|
hit = f === p;
|
|
@@ -20853,10 +21421,10 @@ minimatch.Minimatch = Minimatch;
|
|
|
20853
21421
|
minimatch.escape = escape;
|
|
20854
21422
|
minimatch.unescape = unescape;
|
|
20855
21423
|
|
|
20856
|
-
// node_modules/glob/dist/esm/glob.js
|
|
20857
|
-
import { fileURLToPath as fileURLToPath4 } from "
|
|
21424
|
+
// ../../node_modules/.bun/glob@10.5.0/node_modules/glob/dist/esm/glob.js
|
|
21425
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
20858
21426
|
|
|
20859
|
-
// node_modules/
|
|
21427
|
+
// ../../node_modules/.bun/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js
|
|
20860
21428
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
20861
21429
|
var warned = new Set;
|
|
20862
21430
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
@@ -21966,17 +22534,17 @@ class LRUCache {
|
|
|
21966
22534
|
}
|
|
21967
22535
|
}
|
|
21968
22536
|
|
|
21969
|
-
// node_modules/
|
|
21970
|
-
import { posix, win32 } from "
|
|
21971
|
-
import { fileURLToPath as fileURLToPath3 } from "
|
|
21972
|
-
import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSync as rps } from "
|
|
21973
|
-
import * as actualFS from "
|
|
21974
|
-
import { lstat, readdir, readlink, realpath } from "
|
|
22537
|
+
// ../../node_modules/.bun/path-scurry@1.11.1/node_modules/path-scurry/dist/esm/index.js
|
|
22538
|
+
import { posix, win32 } from "path";
|
|
22539
|
+
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
22540
|
+
import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSync as rps } from "fs";
|
|
22541
|
+
import * as actualFS from "fs";
|
|
22542
|
+
import { lstat, readdir, readlink, realpath } from "fs/promises";
|
|
21975
22543
|
|
|
21976
|
-
// ../../node_modules/minipass/dist/esm/index.js
|
|
21977
|
-
import { EventEmitter as EventEmitter2 } from "
|
|
21978
|
-
import Stream from "
|
|
21979
|
-
import { StringDecoder as StringDecoder2 } from "
|
|
22544
|
+
// ../../node_modules/.bun/minipass@7.1.3/node_modules/minipass/dist/esm/index.js
|
|
22545
|
+
import { EventEmitter as EventEmitter2 } from "events";
|
|
22546
|
+
import Stream from "stream";
|
|
22547
|
+
import { StringDecoder as StringDecoder2 } from "string_decoder";
|
|
21980
22548
|
var proc = typeof process === "object" && process ? process : {
|
|
21981
22549
|
stdout: null,
|
|
21982
22550
|
stderr: null
|
|
@@ -22051,7 +22619,7 @@ class PipeProxyErrors extends Pipe {
|
|
|
22051
22619
|
}
|
|
22052
22620
|
constructor(src, dest, opts) {
|
|
22053
22621
|
super(src, dest, opts);
|
|
22054
|
-
this.proxyErrors = (er) => dest.emit("error", er);
|
|
22622
|
+
this.proxyErrors = (er) => this.dest.emit("error", er);
|
|
22055
22623
|
src.on("error", this.proxyErrors);
|
|
22056
22624
|
}
|
|
22057
22625
|
}
|
|
@@ -22576,7 +23144,8 @@ class Minipass extends EventEmitter2 {
|
|
|
22576
23144
|
return: stop,
|
|
22577
23145
|
[Symbol.asyncIterator]() {
|
|
22578
23146
|
return this;
|
|
22579
|
-
}
|
|
23147
|
+
},
|
|
23148
|
+
[Symbol.asyncDispose]: async () => {}
|
|
22580
23149
|
};
|
|
22581
23150
|
}
|
|
22582
23151
|
[Symbol.iterator]() {
|
|
@@ -22605,7 +23174,8 @@ class Minipass extends EventEmitter2 {
|
|
|
22605
23174
|
return: stop,
|
|
22606
23175
|
[Symbol.iterator]() {
|
|
22607
23176
|
return this;
|
|
22608
|
-
}
|
|
23177
|
+
},
|
|
23178
|
+
[Symbol.dispose]: () => {}
|
|
22609
23179
|
};
|
|
22610
23180
|
}
|
|
22611
23181
|
destroy(er) {
|
|
@@ -22634,7 +23204,7 @@ class Minipass extends EventEmitter2 {
|
|
|
22634
23204
|
}
|
|
22635
23205
|
}
|
|
22636
23206
|
|
|
22637
|
-
// node_modules/
|
|
23207
|
+
// ../../node_modules/.bun/path-scurry@1.11.1/node_modules/path-scurry/dist/esm/index.js
|
|
22638
23208
|
var realpathSync = rps.native;
|
|
22639
23209
|
var defaultFS = {
|
|
22640
23210
|
lstatSync,
|
|
@@ -23932,7 +24502,7 @@ class PathScurryDarwin extends PathScurryPosix {
|
|
|
23932
24502
|
var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
23933
24503
|
var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
23934
24504
|
|
|
23935
|
-
// node_modules/glob/dist/esm/pattern.js
|
|
24505
|
+
// ../../node_modules/.bun/glob@10.5.0/node_modules/glob/dist/esm/pattern.js
|
|
23936
24506
|
var isPatternList = (pl) => pl.length >= 1;
|
|
23937
24507
|
var isGlobList = (gl) => gl.length >= 1;
|
|
23938
24508
|
|
|
@@ -24050,7 +24620,7 @@ class Pattern {
|
|
|
24050
24620
|
}
|
|
24051
24621
|
}
|
|
24052
24622
|
|
|
24053
|
-
// node_modules/glob/dist/esm/ignore.js
|
|
24623
|
+
// ../../node_modules/.bun/glob@10.5.0/node_modules/glob/dist/esm/ignore.js
|
|
24054
24624
|
var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
24055
24625
|
|
|
24056
24626
|
class Ignore {
|
|
@@ -24138,7 +24708,7 @@ class Ignore {
|
|
|
24138
24708
|
}
|
|
24139
24709
|
}
|
|
24140
24710
|
|
|
24141
|
-
// node_modules/glob/dist/esm/processor.js
|
|
24711
|
+
// ../../node_modules/.bun/glob@10.5.0/node_modules/glob/dist/esm/processor.js
|
|
24142
24712
|
class HasWalkedCache {
|
|
24143
24713
|
store;
|
|
24144
24714
|
constructor(store = new Map) {
|
|
@@ -24356,7 +24926,7 @@ class Processor {
|
|
|
24356
24926
|
}
|
|
24357
24927
|
}
|
|
24358
24928
|
|
|
24359
|
-
// node_modules/glob/dist/esm/walker.js
|
|
24929
|
+
// ../../node_modules/.bun/glob@10.5.0/node_modules/glob/dist/esm/walker.js
|
|
24360
24930
|
var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
|
|
24361
24931
|
|
|
24362
24932
|
class GlobUtil {
|
|
@@ -24683,7 +25253,7 @@ class GlobStream extends GlobUtil {
|
|
|
24683
25253
|
}
|
|
24684
25254
|
}
|
|
24685
25255
|
|
|
24686
|
-
// node_modules/glob/dist/esm/glob.js
|
|
25256
|
+
// ../../node_modules/.bun/glob@10.5.0/node_modules/glob/dist/esm/glob.js
|
|
24687
25257
|
var defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
24688
25258
|
|
|
24689
25259
|
class Glob {
|
|
@@ -24857,7 +25427,7 @@ class Glob {
|
|
|
24857
25427
|
}
|
|
24858
25428
|
}
|
|
24859
25429
|
|
|
24860
|
-
// node_modules/glob/dist/esm/has-magic.js
|
|
25430
|
+
// ../../node_modules/.bun/glob@10.5.0/node_modules/glob/dist/esm/has-magic.js
|
|
24861
25431
|
var hasMagic = (pattern, options = {}) => {
|
|
24862
25432
|
if (!Array.isArray(pattern)) {
|
|
24863
25433
|
pattern = [pattern];
|
|
@@ -24869,7 +25439,7 @@ var hasMagic = (pattern, options = {}) => {
|
|
|
24869
25439
|
return false;
|
|
24870
25440
|
};
|
|
24871
25441
|
|
|
24872
|
-
// node_modules/glob/dist/esm/index.js
|
|
25442
|
+
// ../../node_modules/.bun/glob@10.5.0/node_modules/glob/dist/esm/index.js
|
|
24873
25443
|
function globStreamSync(pattern, options = {}) {
|
|
24874
25444
|
return new Glob(pattern, options).streamSync();
|
|
24875
25445
|
}
|
|
@@ -24918,7 +25488,7 @@ var glob = Object.assign(glob_, {
|
|
|
24918
25488
|
glob.glob = glob;
|
|
24919
25489
|
|
|
24920
25490
|
// src/utils/config.ts
|
|
24921
|
-
import { basename, join } from "
|
|
25491
|
+
import { basename, join } from "path";
|
|
24922
25492
|
async function findArcConfigs(packagePath) {
|
|
24923
25493
|
const packageJson = JSON.parse(readFileSync(join(packagePath, "package.json"), "utf-8"));
|
|
24924
25494
|
if (packageJson.workspaces) {
|
|
@@ -25309,7 +25879,7 @@ ${colors2.yellow}Type declaration errors:${colors2.reset}`);
|
|
|
25309
25879
|
|
|
25310
25880
|
// src/commands/dev.ts
|
|
25311
25881
|
var import_chokidar = __toESM(require_chokidar(), 1);
|
|
25312
|
-
import { dirname as dirname3, join as join3, relative } from "
|
|
25882
|
+
import { dirname as dirname3, join as join3, relative } from "path";
|
|
25313
25883
|
function getContextForFile(filePath, contexts, configDir) {
|
|
25314
25884
|
const relativePath = relative(configDir, filePath);
|
|
25315
25885
|
for (const context of contexts) {
|
|
@@ -25523,23 +26093,23 @@ ${colors3.yellow}Type declaration errors:${colors3.reset}`);
|
|
|
25523
26093
|
}
|
|
25524
26094
|
|
|
25525
26095
|
// src/platform/shared.ts
|
|
25526
|
-
import { copyFileSync, existsSync as existsSync6, mkdirSync as mkdirSync6, readFileSync as readFileSync6 } from "
|
|
25527
|
-
import { dirname as dirname6, join as join7 } from "
|
|
26096
|
+
import { copyFileSync, existsSync as existsSync6, mkdirSync as mkdirSync6, readFileSync as readFileSync6 } from "fs";
|
|
26097
|
+
import { dirname as dirname6, join as join7 } from "path";
|
|
25528
26098
|
|
|
25529
26099
|
// src/builder/module-builder.ts
|
|
25530
|
-
import { execSync } from "
|
|
26100
|
+
import { execSync } from "child_process";
|
|
25531
26101
|
import {
|
|
25532
26102
|
existsSync as existsSync5,
|
|
25533
26103
|
mkdirSync as mkdirSync5,
|
|
25534
26104
|
readFileSync as readFileSync5,
|
|
25535
26105
|
readdirSync as readdirSync3,
|
|
25536
26106
|
writeFileSync as writeFileSync5
|
|
25537
|
-
} from "
|
|
25538
|
-
import { dirname as dirname5, join as join6, relative as relative2 } from "
|
|
26107
|
+
} from "fs";
|
|
26108
|
+
import { dirname as dirname5, join as join6, relative as relative2 } from "path";
|
|
25539
26109
|
|
|
25540
26110
|
// src/i18n/index.ts
|
|
25541
|
-
import { existsSync as existsSync4, mkdirSync as mkdirSync4, readFileSync as readFileSync4, writeFileSync as writeFileSync4 } from "
|
|
25542
|
-
import { dirname as dirname4, join as join5 } from "
|
|
26111
|
+
import { existsSync as existsSync4, mkdirSync as mkdirSync4, readFileSync as readFileSync4, writeFileSync as writeFileSync4 } from "fs";
|
|
26112
|
+
import { dirname as dirname4, join as join5 } from "path";
|
|
25543
26113
|
|
|
25544
26114
|
// src/i18n/catalog.ts
|
|
25545
26115
|
function hashMsgid(msgid) {
|
|
@@ -25710,8 +26280,8 @@ function quoteString(s) {
|
|
|
25710
26280
|
}
|
|
25711
26281
|
|
|
25712
26282
|
// src/i18n/compile.ts
|
|
25713
|
-
import { mkdirSync as mkdirSync3, readFileSync as readFileSync3, readdirSync as readdirSync2, writeFileSync as writeFileSync3 } from "
|
|
25714
|
-
import { join as join4 } from "
|
|
26283
|
+
import { mkdirSync as mkdirSync3, readFileSync as readFileSync3, readdirSync as readdirSync2, writeFileSync as writeFileSync3 } from "fs";
|
|
26284
|
+
import { join as join4 } from "path";
|
|
25715
26285
|
function compileCatalog(poPath) {
|
|
25716
26286
|
const content = readFileSync3(poPath, "utf-8");
|
|
25717
26287
|
const entries = parsePo(content);
|
|
@@ -25973,7 +26543,7 @@ async function buildPackages(rootDir, outDir, packages) {
|
|
|
25973
26543
|
throw new Error("Module build failed");
|
|
25974
26544
|
}
|
|
25975
26545
|
await finalizeTranslations(rootDir, join6(outDir, ".."), i18nCollector);
|
|
25976
|
-
const { rmSync } = await import("
|
|
26546
|
+
const { rmSync } = await import("fs");
|
|
25977
26547
|
rmSync(tmpDir, { recursive: true, force: true });
|
|
25978
26548
|
const moduleEntries = result.outputs.filter((o) => o.kind === "entry-point").map((o) => {
|
|
25979
26549
|
const file = o.path.split("/").pop();
|
|
@@ -26246,7 +26816,7 @@ export const { createPortal, flushSync } = ReactDOM;`
|
|
|
26246
26816
|
throw new Error(`Shell build failed for ${pkg}`);
|
|
26247
26817
|
}
|
|
26248
26818
|
}
|
|
26249
|
-
const { rmSync } = await import("
|
|
26819
|
+
const { rmSync } = await import("fs");
|
|
26250
26820
|
rmSync(tmpDir, { recursive: true, force: true });
|
|
26251
26821
|
}
|
|
26252
26822
|
async function loadServerContext(packages) {
|
|
@@ -26293,8 +26863,8 @@ async function platformBuild() {
|
|
|
26293
26863
|
}
|
|
26294
26864
|
|
|
26295
26865
|
// src/commands/platform-dev.ts
|
|
26296
|
-
import { existsSync as existsSync8, watch } from "
|
|
26297
|
-
import { join as join9 } from "
|
|
26866
|
+
import { existsSync as existsSync8, watch } from "fs";
|
|
26867
|
+
import { join as join9 } from "path";
|
|
26298
26868
|
|
|
26299
26869
|
// ../host/src/create-server.ts
|
|
26300
26870
|
var import_jsonwebtoken = __toESM(require_jsonwebtoken(), 1);
|
|
@@ -26619,7 +27189,7 @@ class ContextHandler {
|
|
|
26619
27189
|
}
|
|
26620
27190
|
}
|
|
26621
27191
|
|
|
26622
|
-
// ../../node_modules/croner/dist/croner.js
|
|
27192
|
+
// ../../node_modules/.bun/croner@9.1.0/node_modules/croner/dist/croner.js
|
|
26623
27193
|
function h(n, t, e, r, s, i, a, l) {
|
|
26624
27194
|
return h.fromTZ(h.tp(n, t, e, r, s, i, a), l);
|
|
26625
27195
|
}
|
|
@@ -27542,7 +28112,8 @@ function querySubscriptionHandler() {
|
|
|
27542
28112
|
};
|
|
27543
28113
|
sendData();
|
|
27544
28114
|
const element = ctx.contextHandler.getModel().context.get(descriptor.element);
|
|
27545
|
-
const
|
|
28115
|
+
const handlers = element?.getHandlers?.();
|
|
28116
|
+
const eventTypes = handlers ? Object.keys(handlers) : [];
|
|
27546
28117
|
let debounceTimer;
|
|
27547
28118
|
const debouncedSend = () => {
|
|
27548
28119
|
if (debounceTimer)
|
|
@@ -27602,11 +28173,16 @@ async function createArcServer(config) {
|
|
|
27602
28173
|
const cronScheduler = new CronScheduler(contextHandler);
|
|
27603
28174
|
cronScheduler.start();
|
|
27604
28175
|
const connectionManager = new ConnectionManager;
|
|
27605
|
-
|
|
27606
|
-
"
|
|
27607
|
-
|
|
27608
|
-
|
|
27609
|
-
|
|
28176
|
+
function buildCorsHeaders(req) {
|
|
28177
|
+
const origin = req?.headers.get("Origin") || "*";
|
|
28178
|
+
return {
|
|
28179
|
+
"Access-Control-Allow-Origin": origin,
|
|
28180
|
+
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
|
|
28181
|
+
"Access-Control-Allow-Headers": "Content-Type, Authorization, X-Arc-Scope, X-Arc-Tokens",
|
|
28182
|
+
"Access-Control-Allow-Credentials": "true"
|
|
28183
|
+
};
|
|
28184
|
+
}
|
|
28185
|
+
const corsHeaders = buildCorsHeaders();
|
|
27610
28186
|
function verifyToken(token) {
|
|
27611
28187
|
try {
|
|
27612
28188
|
const decoded = import_jsonwebtoken.default.verify(token, jwtSecret);
|
|
@@ -27650,24 +28226,33 @@ async function createArcServer(config) {
|
|
|
27650
28226
|
idleTimeout: 255,
|
|
27651
28227
|
async fetch(req, server2) {
|
|
27652
28228
|
const url = new URL(req.url);
|
|
28229
|
+
const corsHeaders2 = buildCorsHeaders(req);
|
|
27653
28230
|
if (req.method === "OPTIONS") {
|
|
27654
|
-
return new Response(null, { headers:
|
|
28231
|
+
return new Response(null, { headers: corsHeaders2 });
|
|
27655
28232
|
}
|
|
27656
28233
|
const authHeader = req.headers.get("Authorization");
|
|
27657
|
-
|
|
28234
|
+
let rawToken = authHeader?.replace("Bearer ", "") || url.searchParams.get("token");
|
|
28235
|
+
if (!rawToken) {
|
|
28236
|
+
const cookieHeader = req.headers.get("Cookie");
|
|
28237
|
+
if (cookieHeader) {
|
|
28238
|
+
const match2 = cookieHeader.match(/arc_token=([^;]+)/);
|
|
28239
|
+
if (match2)
|
|
28240
|
+
rawToken = decodeURIComponent(match2[1]);
|
|
28241
|
+
}
|
|
28242
|
+
}
|
|
27658
28243
|
const tokenPayload = rawToken ? verifyToken(rawToken) : null;
|
|
27659
28244
|
if (url.pathname === "/ws" && req.headers.get("Upgrade") === "websocket") {
|
|
27660
28245
|
if (server2.upgrade(req, { data: { clientId: "" } }))
|
|
27661
28246
|
return;
|
|
27662
28247
|
return new Response("WebSocket upgrade failed", {
|
|
27663
28248
|
status: 500,
|
|
27664
|
-
headers:
|
|
28249
|
+
headers: corsHeaders2
|
|
27665
28250
|
});
|
|
27666
28251
|
}
|
|
27667
28252
|
const reqCtx = {
|
|
27668
28253
|
rawToken,
|
|
27669
28254
|
tokenPayload,
|
|
27670
|
-
corsHeaders
|
|
28255
|
+
corsHeaders: corsHeaders2
|
|
27671
28256
|
};
|
|
27672
28257
|
for (const handler of httpHandlers) {
|
|
27673
28258
|
const response = await handler(req, url, reqCtx);
|
|
@@ -27676,7 +28261,7 @@ async function createArcServer(config) {
|
|
|
27676
28261
|
}
|
|
27677
28262
|
return new Response("Not Found", {
|
|
27678
28263
|
status: 404,
|
|
27679
|
-
headers:
|
|
28264
|
+
headers: corsHeaders2
|
|
27680
28265
|
});
|
|
27681
28266
|
},
|
|
27682
28267
|
websocket: {
|
|
@@ -27722,8 +28307,8 @@ async function createArcServer(config) {
|
|
|
27722
28307
|
};
|
|
27723
28308
|
}
|
|
27724
28309
|
// src/platform/server.ts
|
|
27725
|
-
import { existsSync as existsSync7, mkdirSync as mkdirSync7 } from "
|
|
27726
|
-
import { join as join8 } from "
|
|
28310
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync7 } from "fs";
|
|
28311
|
+
import { join as join8 } from "path";
|
|
27727
28312
|
function generateShellHtml(appName, manifest, arcEntries) {
|
|
27728
28313
|
const arcImports = {};
|
|
27729
28314
|
if (arcEntries) {
|
|
@@ -28151,8 +28736,8 @@ async function platformDev() {
|
|
|
28151
28736
|
}
|
|
28152
28737
|
|
|
28153
28738
|
// src/commands/platform-start.ts
|
|
28154
|
-
import { existsSync as existsSync9, readFileSync as readFileSync7 } from "
|
|
28155
|
-
import { join as join10 } from "
|
|
28739
|
+
import { existsSync as existsSync9, readFileSync as readFileSync7 } from "fs";
|
|
28740
|
+
import { join as join10 } from "path";
|
|
28156
28741
|
async function platformStart() {
|
|
28157
28742
|
const ws = resolveWorkspace();
|
|
28158
28743
|
const port = parseInt(process.env.PORT || "5005", 10);
|