@hot-updater/cloudflare 0.21.7 → 0.21.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/iac/index.js CHANGED
@@ -1,15 +1,13 @@
1
1
  import { createRequire } from "node:module";
2
- import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
3
- import g, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
4
- import * as f$1 from "node:readline";
5
- import M from "node:readline";
6
- import tty, { WriteStream } from "node:tty";
7
- import { ConfigBuilder, copyDirToTmp, getCwd, link, makeEnv, transformTemplate } from "@hot-updater/plugin-core";
2
+ import { ConfigBuilder, copyDirToTmp, getCwd, link, makeEnv, p, transformTemplate } from "@hot-updater/cli-tools";
8
3
  import { Cloudflare } from "cloudflare";
9
4
  import crypto from "crypto";
10
5
  import { fileURLToPath } from "node:url";
11
6
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
12
7
  import { StringDecoder } from "node:string_decoder";
8
+ import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
9
+ import process$1, { execArgv, execPath, hrtime, platform } from "node:process";
10
+ import tty from "node:tty";
13
11
  import path from "node:path";
14
12
  import path$1 from "path";
15
13
  import fs from "fs";
@@ -38,7 +36,7 @@ var __copyProps = (to, from, except, desc) => {
38
36
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i$1 = 0, n$1 = keys.length, key; i$1 < n$1; i$1++) {
39
37
  key = keys[i$1];
40
38
  if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
41
- get: ((k$2) => from[k$2]).bind(null, key),
39
+ get: ((k) => from[k]).bind(null, key),
42
40
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
43
41
  });
44
42
  }
@@ -51,1298 +49,135 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
51
49
  }) : target, mod));
52
50
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
53
51
 
54
- //#endregion
55
- //#region ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
56
- var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js": ((exports, module) => {
57
- const ESC = "\x1B";
58
- const CSI = `${ESC}[`;
59
- const beep = "\x07";
60
- const cursor = {
61
- to(x$1, y$1) {
62
- if (!y$1) return `${CSI}${x$1 + 1}G`;
63
- return `${CSI}${y$1 + 1};${x$1 + 1}H`;
64
- },
65
- move(x$1, y$1) {
66
- let ret = "";
67
- if (x$1 < 0) ret += `${CSI}${-x$1}D`;
68
- else if (x$1 > 0) ret += `${CSI}${x$1}C`;
69
- if (y$1 < 0) ret += `${CSI}${-y$1}A`;
70
- else if (y$1 > 0) ret += `${CSI}${y$1}B`;
71
- return ret;
72
- },
73
- up: (count$1 = 1) => `${CSI}${count$1}A`,
74
- down: (count$1 = 1) => `${CSI}${count$1}B`,
75
- forward: (count$1 = 1) => `${CSI}${count$1}C`,
76
- backward: (count$1 = 1) => `${CSI}${count$1}D`,
77
- nextLine: (count$1 = 1) => `${CSI}E`.repeat(count$1),
78
- prevLine: (count$1 = 1) => `${CSI}F`.repeat(count$1),
79
- left: `${CSI}G`,
80
- hide: `${CSI}?25l`,
81
- show: `${CSI}?25h`,
82
- save: `${ESC}7`,
83
- restore: `${ESC}8`
84
- };
85
- const scroll = {
86
- up: (count$1 = 1) => `${CSI}S`.repeat(count$1),
87
- down: (count$1 = 1) => `${CSI}T`.repeat(count$1)
88
- };
89
- const erase = {
90
- screen: `${CSI}2J`,
91
- up: (count$1 = 1) => `${CSI}1J`.repeat(count$1),
92
- down: (count$1 = 1) => `${CSI}J`.repeat(count$1),
93
- line: `${CSI}2K`,
94
- lineEnd: `${CSI}K`,
95
- lineStart: `${CSI}1K`,
96
- lines(count$1) {
97
- let clear = "";
98
- for (let i$1 = 0; i$1 < count$1; i$1++) clear += this.line + (i$1 < count$1 - 1 ? cursor.up() : "");
99
- if (count$1) clear += cursor.left;
100
- return clear;
101
- }
102
- };
103
- module.exports = {
104
- cursor,
105
- scroll,
106
- erase,
107
- beep
108
- };
109
- }) });
110
-
111
- //#endregion
112
- //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
113
- var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": ((exports, module) => {
114
- let p = process || {}, argv = p.argv || [], env = p.env || {};
115
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
116
- let formatter = (open, close, replace = open) => (input) => {
117
- let string = "" + input, index = string.indexOf(close, open.length);
118
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
119
- };
120
- let replaceClose = (string, close, replace, index) => {
121
- let result = "", cursor$1 = 0;
122
- do {
123
- result += string.substring(cursor$1, index) + replace;
124
- cursor$1 = index + close.length;
125
- index = string.indexOf(close, cursor$1);
126
- } while (~index);
127
- return result + string.substring(cursor$1);
128
- };
129
- let createColors = (enabled = isColorSupported) => {
130
- let f$2 = enabled ? formatter : () => String;
131
- return {
132
- isColorSupported: enabled,
133
- reset: f$2("\x1B[0m", "\x1B[0m"),
134
- bold: f$2("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
135
- dim: f$2("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
136
- italic: f$2("\x1B[3m", "\x1B[23m"),
137
- underline: f$2("\x1B[4m", "\x1B[24m"),
138
- inverse: f$2("\x1B[7m", "\x1B[27m"),
139
- hidden: f$2("\x1B[8m", "\x1B[28m"),
140
- strikethrough: f$2("\x1B[9m", "\x1B[29m"),
141
- black: f$2("\x1B[30m", "\x1B[39m"),
142
- red: f$2("\x1B[31m", "\x1B[39m"),
143
- green: f$2("\x1B[32m", "\x1B[39m"),
144
- yellow: f$2("\x1B[33m", "\x1B[39m"),
145
- blue: f$2("\x1B[34m", "\x1B[39m"),
146
- magenta: f$2("\x1B[35m", "\x1B[39m"),
147
- cyan: f$2("\x1B[36m", "\x1B[39m"),
148
- white: f$2("\x1B[37m", "\x1B[39m"),
149
- gray: f$2("\x1B[90m", "\x1B[39m"),
150
- bgBlack: f$2("\x1B[40m", "\x1B[49m"),
151
- bgRed: f$2("\x1B[41m", "\x1B[49m"),
152
- bgGreen: f$2("\x1B[42m", "\x1B[49m"),
153
- bgYellow: f$2("\x1B[43m", "\x1B[49m"),
154
- bgBlue: f$2("\x1B[44m", "\x1B[49m"),
155
- bgMagenta: f$2("\x1B[45m", "\x1B[49m"),
156
- bgCyan: f$2("\x1B[46m", "\x1B[49m"),
157
- bgWhite: f$2("\x1B[47m", "\x1B[49m"),
158
- blackBright: f$2("\x1B[90m", "\x1B[39m"),
159
- redBright: f$2("\x1B[91m", "\x1B[39m"),
160
- greenBright: f$2("\x1B[92m", "\x1B[39m"),
161
- yellowBright: f$2("\x1B[93m", "\x1B[39m"),
162
- blueBright: f$2("\x1B[94m", "\x1B[39m"),
163
- magentaBright: f$2("\x1B[95m", "\x1B[39m"),
164
- cyanBright: f$2("\x1B[96m", "\x1B[39m"),
165
- whiteBright: f$2("\x1B[97m", "\x1B[39m"),
166
- bgBlackBright: f$2("\x1B[100m", "\x1B[49m"),
167
- bgRedBright: f$2("\x1B[101m", "\x1B[49m"),
168
- bgGreenBright: f$2("\x1B[102m", "\x1B[49m"),
169
- bgYellowBright: f$2("\x1B[103m", "\x1B[49m"),
170
- bgBlueBright: f$2("\x1B[104m", "\x1B[49m"),
171
- bgMagentaBright: f$2("\x1B[105m", "\x1B[49m"),
172
- bgCyanBright: f$2("\x1B[106m", "\x1B[49m"),
173
- bgWhiteBright: f$2("\x1B[107m", "\x1B[49m")
174
- };
175
- };
176
- module.exports = createColors();
177
- module.exports.createColors = createColors;
178
- }) });
179
-
180
- //#endregion
181
- //#region ../../node_modules/.pnpm/@clack+core@0.4.1/node_modules/@clack/core/dist/index.mjs
182
- var import_src$1 = /* @__PURE__ */ __toESM(require_src(), 1);
183
- var import_picocolors$1 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
184
- function J$1({ onlyFirst: t = !1 } = {}) {
185
- const F$1 = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
186
- return new RegExp(F$1, t ? void 0 : "g");
187
- }
188
- const Q = J$1();
189
- function T$1(t) {
190
- if (typeof t != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
191
- return t.replace(Q, "");
192
- }
193
- function O(t) {
194
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
195
- }
196
- var P$1 = { exports: {} };
197
- (function(t) {
198
- var u$2 = {};
199
- t.exports = u$2, u$2.eastAsianWidth = function(e$1) {
200
- var s = e$1.charCodeAt(0), i$1 = e$1.length == 2 ? e$1.charCodeAt(1) : 0, D$1 = s;
201
- return 55296 <= s && s <= 56319 && 56320 <= i$1 && i$1 <= 57343 && (s &= 1023, i$1 &= 1023, D$1 = s << 10 | i$1, D$1 += 65536), D$1 == 12288 || 65281 <= D$1 && D$1 <= 65376 || 65504 <= D$1 && D$1 <= 65510 ? "F" : D$1 == 8361 || 65377 <= D$1 && D$1 <= 65470 || 65474 <= D$1 && D$1 <= 65479 || 65482 <= D$1 && D$1 <= 65487 || 65490 <= D$1 && D$1 <= 65495 || 65498 <= D$1 && D$1 <= 65500 || 65512 <= D$1 && D$1 <= 65518 ? "H" : 4352 <= D$1 && D$1 <= 4447 || 4515 <= D$1 && D$1 <= 4519 || 4602 <= D$1 && D$1 <= 4607 || 9001 <= D$1 && D$1 <= 9002 || 11904 <= D$1 && D$1 <= 11929 || 11931 <= D$1 && D$1 <= 12019 || 12032 <= D$1 && D$1 <= 12245 || 12272 <= D$1 && D$1 <= 12283 || 12289 <= D$1 && D$1 <= 12350 || 12353 <= D$1 && D$1 <= 12438 || 12441 <= D$1 && D$1 <= 12543 || 12549 <= D$1 && D$1 <= 12589 || 12593 <= D$1 && D$1 <= 12686 || 12688 <= D$1 && D$1 <= 12730 || 12736 <= D$1 && D$1 <= 12771 || 12784 <= D$1 && D$1 <= 12830 || 12832 <= D$1 && D$1 <= 12871 || 12880 <= D$1 && D$1 <= 13054 || 13056 <= D$1 && D$1 <= 19903 || 19968 <= D$1 && D$1 <= 42124 || 42128 <= D$1 && D$1 <= 42182 || 43360 <= D$1 && D$1 <= 43388 || 44032 <= D$1 && D$1 <= 55203 || 55216 <= D$1 && D$1 <= 55238 || 55243 <= D$1 && D$1 <= 55291 || 63744 <= D$1 && D$1 <= 64255 || 65040 <= D$1 && D$1 <= 65049 || 65072 <= D$1 && D$1 <= 65106 || 65108 <= D$1 && D$1 <= 65126 || 65128 <= D$1 && D$1 <= 65131 || 110592 <= D$1 && D$1 <= 110593 || 127488 <= D$1 && D$1 <= 127490 || 127504 <= D$1 && D$1 <= 127546 || 127552 <= D$1 && D$1 <= 127560 || 127568 <= D$1 && D$1 <= 127569 || 131072 <= D$1 && D$1 <= 194367 || 177984 <= D$1 && D$1 <= 196605 || 196608 <= D$1 && D$1 <= 262141 ? "W" : 32 <= D$1 && D$1 <= 126 || 162 <= D$1 && D$1 <= 163 || 165 <= D$1 && D$1 <= 166 || D$1 == 172 || D$1 == 175 || 10214 <= D$1 && D$1 <= 10221 || 10629 <= D$1 && D$1 <= 10630 ? "Na" : D$1 == 161 || D$1 == 164 || 167 <= D$1 && D$1 <= 168 || D$1 == 170 || 173 <= D$1 && D$1 <= 174 || 176 <= D$1 && D$1 <= 180 || 182 <= D$1 && D$1 <= 186 || 188 <= D$1 && D$1 <= 191 || D$1 == 198 || D$1 == 208 || 215 <= D$1 && D$1 <= 216 || 222 <= D$1 && D$1 <= 225 || D$1 == 230 || 232 <= D$1 && D$1 <= 234 || 236 <= D$1 && D$1 <= 237 || D$1 == 240 || 242 <= D$1 && D$1 <= 243 || 247 <= D$1 && D$1 <= 250 || D$1 == 252 || D$1 == 254 || D$1 == 257 || D$1 == 273 || D$1 == 275 || D$1 == 283 || 294 <= D$1 && D$1 <= 295 || D$1 == 299 || 305 <= D$1 && D$1 <= 307 || D$1 == 312 || 319 <= D$1 && D$1 <= 322 || D$1 == 324 || 328 <= D$1 && D$1 <= 331 || D$1 == 333 || 338 <= D$1 && D$1 <= 339 || 358 <= D$1 && D$1 <= 359 || D$1 == 363 || D$1 == 462 || D$1 == 464 || D$1 == 466 || D$1 == 468 || D$1 == 470 || D$1 == 472 || D$1 == 474 || D$1 == 476 || D$1 == 593 || D$1 == 609 || D$1 == 708 || D$1 == 711 || 713 <= D$1 && D$1 <= 715 || D$1 == 717 || D$1 == 720 || 728 <= D$1 && D$1 <= 731 || D$1 == 733 || D$1 == 735 || 768 <= D$1 && D$1 <= 879 || 913 <= D$1 && D$1 <= 929 || 931 <= D$1 && D$1 <= 937 || 945 <= D$1 && D$1 <= 961 || 963 <= D$1 && D$1 <= 969 || D$1 == 1025 || 1040 <= D$1 && D$1 <= 1103 || D$1 == 1105 || D$1 == 8208 || 8211 <= D$1 && D$1 <= 8214 || 8216 <= D$1 && D$1 <= 8217 || 8220 <= D$1 && D$1 <= 8221 || 8224 <= D$1 && D$1 <= 8226 || 8228 <= D$1 && D$1 <= 8231 || D$1 == 8240 || 8242 <= D$1 && D$1 <= 8243 || D$1 == 8245 || D$1 == 8251 || D$1 == 8254 || D$1 == 8308 || D$1 == 8319 || 8321 <= D$1 && D$1 <= 8324 || D$1 == 8364 || D$1 == 8451 || D$1 == 8453 || D$1 == 8457 || D$1 == 8467 || D$1 == 8470 || 8481 <= D$1 && D$1 <= 8482 || D$1 == 8486 || D$1 == 8491 || 8531 <= D$1 && D$1 <= 8532 || 8539 <= D$1 && D$1 <= 8542 || 8544 <= D$1 && D$1 <= 8555 || 8560 <= D$1 && D$1 <= 8569 || D$1 == 8585 || 8592 <= D$1 && D$1 <= 8601 || 8632 <= D$1 && D$1 <= 8633 || D$1 == 8658 || D$1 == 8660 || D$1 == 8679 || D$1 == 8704 || 8706 <= D$1 && D$1 <= 8707 || 8711 <= D$1 && D$1 <= 8712 || D$1 == 8715 || D$1 == 8719 || D$1 == 8721 || D$1 == 8725 || D$1 == 8730 || 8733 <= D$1 && D$1 <= 8736 || D$1 == 8739 || D$1 == 8741 || 8743 <= D$1 && D$1 <= 8748 || D$1 == 8750 || 8756 <= D$1 && D$1 <= 8759 || 8764 <= D$1 && D$1 <= 8765 || D$1 == 8776 || D$1 == 8780 || D$1 == 8786 || 8800 <= D$1 && D$1 <= 8801 || 8804 <= D$1 && D$1 <= 8807 || 8810 <= D$1 && D$1 <= 8811 || 8814 <= D$1 && D$1 <= 8815 || 8834 <= D$1 && D$1 <= 8835 || 8838 <= D$1 && D$1 <= 8839 || D$1 == 8853 || D$1 == 8857 || D$1 == 8869 || D$1 == 8895 || D$1 == 8978 || 9312 <= D$1 && D$1 <= 9449 || 9451 <= D$1 && D$1 <= 9547 || 9552 <= D$1 && D$1 <= 9587 || 9600 <= D$1 && D$1 <= 9615 || 9618 <= D$1 && D$1 <= 9621 || 9632 <= D$1 && D$1 <= 9633 || 9635 <= D$1 && D$1 <= 9641 || 9650 <= D$1 && D$1 <= 9651 || 9654 <= D$1 && D$1 <= 9655 || 9660 <= D$1 && D$1 <= 9661 || 9664 <= D$1 && D$1 <= 9665 || 9670 <= D$1 && D$1 <= 9672 || D$1 == 9675 || 9678 <= D$1 && D$1 <= 9681 || 9698 <= D$1 && D$1 <= 9701 || D$1 == 9711 || 9733 <= D$1 && D$1 <= 9734 || D$1 == 9737 || 9742 <= D$1 && D$1 <= 9743 || 9748 <= D$1 && D$1 <= 9749 || D$1 == 9756 || D$1 == 9758 || D$1 == 9792 || D$1 == 9794 || 9824 <= D$1 && D$1 <= 9825 || 9827 <= D$1 && D$1 <= 9829 || 9831 <= D$1 && D$1 <= 9834 || 9836 <= D$1 && D$1 <= 9837 || D$1 == 9839 || 9886 <= D$1 && D$1 <= 9887 || 9918 <= D$1 && D$1 <= 9919 || 9924 <= D$1 && D$1 <= 9933 || 9935 <= D$1 && D$1 <= 9953 || D$1 == 9955 || 9960 <= D$1 && D$1 <= 9983 || D$1 == 10045 || D$1 == 10071 || 10102 <= D$1 && D$1 <= 10111 || 11093 <= D$1 && D$1 <= 11097 || 12872 <= D$1 && D$1 <= 12879 || 57344 <= D$1 && D$1 <= 63743 || 65024 <= D$1 && D$1 <= 65039 || D$1 == 65533 || 127232 <= D$1 && D$1 <= 127242 || 127248 <= D$1 && D$1 <= 127277 || 127280 <= D$1 && D$1 <= 127337 || 127344 <= D$1 && D$1 <= 127386 || 917760 <= D$1 && D$1 <= 917999 || 983040 <= D$1 && D$1 <= 1048573 || 1048576 <= D$1 && D$1 <= 1114109 ? "A" : "N";
202
- }, u$2.characterLength = function(e$1) {
203
- var s = this.eastAsianWidth(e$1);
204
- return s == "F" || s == "W" || s == "A" ? 2 : 1;
205
- };
206
- function F$1(e$1) {
207
- return e$1.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
208
- }
209
- u$2.length = function(e$1) {
210
- for (var s = F$1(e$1), i$1 = 0, D$1 = 0; D$1 < s.length; D$1++) i$1 = i$1 + this.characterLength(s[D$1]);
211
- return i$1;
212
- }, u$2.slice = function(e$1, s, i$1) {
213
- textLen = u$2.length(e$1), s = s || 0, i$1 = i$1 || 1, s < 0 && (s = textLen + s), i$1 < 0 && (i$1 = textLen + i$1);
214
- for (var D$1 = "", C$1 = 0, o$2 = F$1(e$1), E = 0; E < o$2.length; E++) {
215
- var a$1 = o$2[E], n$1 = u$2.length(a$1);
216
- if (C$1 >= s - (n$1 == 2 ? 1 : 0)) if (C$1 + n$1 <= i$1) D$1 += a$1;
217
- else break;
218
- C$1 += n$1;
219
- }
220
- return D$1;
221
- };
222
- })(P$1);
223
- var X = P$1.exports;
224
- const DD = O(X);
225
- var uD = function() {
226
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
227
- };
228
- const FD = O(uD);
229
- function A$1(t, u$2 = {}) {
230
- if (typeof t != "string" || t.length === 0 || (u$2 = {
231
- ambiguousIsNarrow: !0,
232
- ...u$2
233
- }, t = T$1(t), t.length === 0)) return 0;
234
- t = t.replace(FD(), " ");
235
- const F$1 = u$2.ambiguousIsNarrow ? 1 : 2;
236
- let e$1 = 0;
237
- for (const s of t) {
238
- const i$1 = s.codePointAt(0);
239
- if (i$1 <= 31 || i$1 >= 127 && i$1 <= 159 || i$1 >= 768 && i$1 <= 879) continue;
240
- switch (DD.eastAsianWidth(s)) {
241
- case "F":
242
- case "W":
243
- e$1 += 2;
244
- break;
245
- case "A":
246
- e$1 += F$1;
247
- break;
248
- default: e$1 += 1;
249
- }
250
- }
251
- return e$1;
252
- }
253
- const m = 10, L$1 = (t = 0) => (u$2) => `\x1B[${u$2 + t}m`, N = (t = 0) => (u$2) => `\x1B[${38 + t};5;${u$2}m`, I = (t = 0) => (u$2, F$1, e$1) => `\x1B[${38 + t};2;${u$2};${F$1};${e$1}m`, r = {
254
- modifier: {
255
- reset: [0, 0],
256
- bold: [1, 22],
257
- dim: [2, 22],
258
- italic: [3, 23],
259
- underline: [4, 24],
260
- overline: [53, 55],
261
- inverse: [7, 27],
262
- hidden: [8, 28],
263
- strikethrough: [9, 29]
264
- },
265
- color: {
266
- black: [30, 39],
267
- red: [31, 39],
268
- green: [32, 39],
269
- yellow: [33, 39],
270
- blue: [34, 39],
271
- magenta: [35, 39],
272
- cyan: [36, 39],
273
- white: [37, 39],
274
- blackBright: [90, 39],
275
- gray: [90, 39],
276
- grey: [90, 39],
277
- redBright: [91, 39],
278
- greenBright: [92, 39],
279
- yellowBright: [93, 39],
280
- blueBright: [94, 39],
281
- magentaBright: [95, 39],
282
- cyanBright: [96, 39],
283
- whiteBright: [97, 39]
284
- },
285
- bgColor: {
286
- bgBlack: [40, 49],
287
- bgRed: [41, 49],
288
- bgGreen: [42, 49],
289
- bgYellow: [43, 49],
290
- bgBlue: [44, 49],
291
- bgMagenta: [45, 49],
292
- bgCyan: [46, 49],
293
- bgWhite: [47, 49],
294
- bgBlackBright: [100, 49],
295
- bgGray: [100, 49],
296
- bgGrey: [100, 49],
297
- bgRedBright: [101, 49],
298
- bgGreenBright: [102, 49],
299
- bgYellowBright: [103, 49],
300
- bgBlueBright: [104, 49],
301
- bgMagentaBright: [105, 49],
302
- bgCyanBright: [106, 49],
303
- bgWhiteBright: [107, 49]
304
- }
305
- };
306
- Object.keys(r.modifier);
307
- const tD = Object.keys(r.color), eD = Object.keys(r.bgColor);
308
- [...tD, ...eD];
309
- function sD() {
310
- const t = /* @__PURE__ */ new Map();
311
- for (const [u$2, F$1] of Object.entries(r)) {
312
- for (const [e$1, s] of Object.entries(F$1)) r[e$1] = {
313
- open: `\x1B[${s[0]}m`,
314
- close: `\x1B[${s[1]}m`
315
- }, F$1[e$1] = r[e$1], t.set(s[0], s[1]);
316
- Object.defineProperty(r, u$2, {
317
- value: F$1,
318
- enumerable: !1
319
- });
320
- }
321
- return Object.defineProperty(r, "codes", {
322
- value: t,
323
- enumerable: !1
324
- }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L$1(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L$1(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, {
325
- rgbToAnsi256: {
326
- value: (u$2, F$1, e$1) => u$2 === F$1 && F$1 === e$1 ? u$2 < 8 ? 16 : u$2 > 248 ? 231 : Math.round((u$2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u$2 / 255 * 5) + 6 * Math.round(F$1 / 255 * 5) + Math.round(e$1 / 255 * 5),
327
- enumerable: !1
328
- },
329
- hexToRgb: {
330
- value: (u$2) => {
331
- const F$1 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u$2.toString(16));
332
- if (!F$1) return [
333
- 0,
334
- 0,
335
- 0
336
- ];
337
- let [e$1] = F$1;
338
- e$1.length === 3 && (e$1 = [...e$1].map((i$1) => i$1 + i$1).join(""));
339
- const s = Number.parseInt(e$1, 16);
340
- return [
341
- s >> 16 & 255,
342
- s >> 8 & 255,
343
- s & 255
344
- ];
345
- },
346
- enumerable: !1
347
- },
348
- hexToAnsi256: {
349
- value: (u$2) => r.rgbToAnsi256(...r.hexToRgb(u$2)),
350
- enumerable: !1
351
- },
352
- ansi256ToAnsi: {
353
- value: (u$2) => {
354
- if (u$2 < 8) return 30 + u$2;
355
- if (u$2 < 16) return 90 + (u$2 - 8);
356
- let F$1, e$1, s;
357
- if (u$2 >= 232) F$1 = ((u$2 - 232) * 10 + 8) / 255, e$1 = F$1, s = F$1;
358
- else {
359
- u$2 -= 16;
360
- const C$1 = u$2 % 36;
361
- F$1 = Math.floor(u$2 / 36) / 5, e$1 = Math.floor(C$1 / 6) / 5, s = C$1 % 6 / 5;
362
- }
363
- const i$1 = Math.max(F$1, e$1, s) * 2;
364
- if (i$1 === 0) return 30;
365
- let D$1 = 30 + (Math.round(s) << 2 | Math.round(e$1) << 1 | Math.round(F$1));
366
- return i$1 === 2 && (D$1 += 60), D$1;
367
- },
368
- enumerable: !1
369
- },
370
- rgbToAnsi: {
371
- value: (u$2, F$1, e$1) => r.ansi256ToAnsi(r.rgbToAnsi256(u$2, F$1, e$1)),
372
- enumerable: !1
373
- },
374
- hexToAnsi: {
375
- value: (u$2) => r.ansi256ToAnsi(r.hexToAnsi256(u$2)),
376
- enumerable: !1
377
- }
378
- }), r;
379
- }
380
- const iD = sD(), v = new Set(["\x1B", "›"]), CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y = `${rD}8;;`, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u$2) => A$1(u$2)), _$2 = (t, u$2, F$1) => {
381
- const e$1 = [...u$2];
382
- let s = !1, i$1 = !1, D$1 = A$1(T$1(t[t.length - 1]));
383
- for (const [C$1, o$2] of e$1.entries()) {
384
- const E = A$1(o$2);
385
- if (D$1 + E <= F$1 ? t[t.length - 1] += o$2 : (t.push(o$2), D$1 = 0), v.has(o$2) && (s = !0, i$1 = e$1.slice(C$1 + 1).join("").startsWith(y)), s) {
386
- i$1 ? o$2 === w$1 && (s = !1, i$1 = !1) : o$2 === R && (s = !1);
387
- continue;
388
- }
389
- D$1 += E, D$1 === F$1 && C$1 < e$1.length - 1 && (t.push(""), D$1 = 0);
390
- }
391
- !D$1 && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
392
- }, nD = (t) => {
393
- const u$2 = t.split(" ");
394
- let F$1 = u$2.length;
395
- for (; F$1 > 0 && !(A$1(u$2[F$1 - 1]) > 0);) F$1--;
396
- return F$1 === u$2.length ? t : u$2.slice(0, F$1).join(" ") + u$2.slice(F$1).join("");
397
- }, oD = (t, u$2, F$1 = {}) => {
398
- if (F$1.trim !== !1 && t.trim() === "") return "";
399
- let e$1 = "", s, i$1;
400
- const D$1 = ED(t);
401
- let C$1 = [""];
402
- for (const [E, a$1] of t.split(" ").entries()) {
403
- F$1.trim !== !1 && (C$1[C$1.length - 1] = C$1[C$1.length - 1].trimStart());
404
- let n$1 = A$1(C$1[C$1.length - 1]);
405
- if (E !== 0 && (n$1 >= u$2 && (F$1.wordWrap === !1 || F$1.trim === !1) && (C$1.push(""), n$1 = 0), (n$1 > 0 || F$1.trim === !1) && (C$1[C$1.length - 1] += " ", n$1++)), F$1.hard && D$1[E] > u$2) {
406
- const B$1 = u$2 - n$1, p$1 = 1 + Math.floor((D$1[E] - B$1 - 1) / u$2);
407
- Math.floor((D$1[E] - 1) / u$2) < p$1 && C$1.push(""), _$2(C$1, a$1, u$2);
408
- continue;
409
- }
410
- if (n$1 + D$1[E] > u$2 && n$1 > 0 && D$1[E] > 0) {
411
- if (F$1.wordWrap === !1 && n$1 < u$2) {
412
- _$2(C$1, a$1, u$2);
413
- continue;
414
- }
415
- C$1.push("");
416
- }
417
- if (n$1 + D$1[E] > u$2 && F$1.wordWrap === !1) {
418
- _$2(C$1, a$1, u$2);
419
- continue;
420
- }
421
- C$1[C$1.length - 1] += a$1;
422
- }
423
- F$1.trim !== !1 && (C$1 = C$1.map((E) => nD(E)));
424
- const o$2 = [...C$1.join(`
425
- `)];
426
- for (const [E, a$1] of o$2.entries()) {
427
- if (e$1 += a$1, v.has(a$1)) {
428
- const { groups: B$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`)).exec(o$2.slice(E).join("")) || { groups: {} };
429
- if (B$1.code !== void 0) {
430
- const p$1 = Number.parseFloat(B$1.code);
431
- s = p$1 === CD ? void 0 : p$1;
432
- } else B$1.uri !== void 0 && (i$1 = B$1.uri.length === 0 ? void 0 : B$1.uri);
433
- }
434
- const n$1 = iD.codes.get(Number(s));
435
- o$2[E + 1] === `
436
- ` ? (i$1 && (e$1 += z("")), s && n$1 && (e$1 += V$1(n$1))) : a$1 === `
437
- ` && (s && n$1 && (e$1 += V$1(s)), i$1 && (e$1 += z(i$1)));
438
- }
439
- return e$1;
440
- };
441
- function G(t, u$2, F$1) {
442
- return String(t).normalize().replace(/\r\n/g, `
443
- `).split(`
444
- `).map((e$1) => oD(e$1, u$2, F$1)).join(`
445
- `);
446
- }
447
- const c$1 = {
448
- actions: new Set([
449
- "up",
450
- "down",
451
- "left",
452
- "right",
453
- "space",
454
- "enter",
455
- "cancel"
456
- ]),
457
- aliases: new Map([
458
- ["k", "up"],
459
- ["j", "down"],
460
- ["h", "left"],
461
- ["l", "right"],
462
- ["", "cancel"],
463
- ["escape", "cancel"]
464
- ])
465
- };
466
- function k$1(t, u$2) {
467
- if (typeof t == "string") return c$1.aliases.get(t) === u$2;
468
- for (const F$1 of t) if (F$1 !== void 0 && k$1(F$1, u$2)) return !0;
469
- return !1;
470
- }
471
- function lD(t, u$2) {
472
- if (t === u$2) return;
473
- const F$1 = t.split(`
474
- `), e$1 = u$2.split(`
475
- `), s = [];
476
- for (let i$1 = 0; i$1 < Math.max(F$1.length, e$1.length); i$1++) F$1[i$1] !== e$1[i$1] && s.push(i$1);
477
- return s;
478
- }
479
- const xD = globalThis.process.platform.startsWith("win"), S = Symbol("clack:cancel");
480
- function BD(t) {
481
- return t === S;
482
- }
483
- function d$1(t, u$2) {
484
- const F$1 = t;
485
- F$1.isTTY && F$1.setRawMode(u$2);
486
- }
487
- function cD({ input: t = stdin, output: u$2 = stdout, overwrite: F$1 = !0, hideCursor: e$1 = !0 } = {}) {
488
- const s = f$1.createInterface({
489
- input: t,
490
- output: u$2,
491
- prompt: "",
492
- tabSize: 1
493
- });
494
- f$1.emitKeypressEvents(t, s), t.isTTY && t.setRawMode(!0);
495
- const i$1 = (D$1, { name: C$1, sequence: o$2 }) => {
496
- if (k$1([
497
- String(D$1),
498
- C$1,
499
- o$2
500
- ], "cancel")) {
501
- e$1 && u$2.write(import_src$1.cursor.show), process.exit(0);
502
- return;
503
- }
504
- if (!F$1) return;
505
- const a$1 = C$1 === "return" ? 0 : -1, n$1 = C$1 === "return" ? -1 : 0;
506
- f$1.moveCursor(u$2, a$1, n$1, () => {
507
- f$1.clearLine(u$2, 1, () => {
508
- t.once("keypress", i$1);
509
- });
510
- });
511
- };
512
- return e$1 && u$2.write(import_src$1.cursor.hide), t.once("keypress", i$1), () => {
513
- t.off("keypress", i$1), e$1 && u$2.write(import_src$1.cursor.show), t.isTTY && !xD && t.setRawMode(!1), s.terminal = !1, s.close();
514
- };
515
- }
516
- var AD = Object.defineProperty, pD = (t, u$2, F$1) => u$2 in t ? AD(t, u$2, {
517
- enumerable: !0,
518
- configurable: !0,
519
- writable: !0,
520
- value: F$1
521
- }) : t[u$2] = F$1, h$1 = (t, u$2, F$1) => (pD(t, typeof u$2 != "symbol" ? u$2 + "" : u$2, F$1), F$1);
522
- var x = class {
523
- constructor(u$2, F$1 = !0) {
524
- h$1(this, "input"), h$1(this, "output"), h$1(this, "_abortSignal"), h$1(this, "rl"), h$1(this, "opts"), h$1(this, "_render"), h$1(this, "_track", !1), h$1(this, "_prevFrame", ""), h$1(this, "_subscribers", /* @__PURE__ */ new Map()), h$1(this, "_cursor", 0), h$1(this, "state", "initial"), h$1(this, "error", ""), h$1(this, "value");
525
- const { input: e$1 = stdin, output: s = stdout, render: i$1, signal: D$1,...C$1 } = u$2;
526
- this.opts = C$1, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i$1.bind(this), this._track = F$1, this._abortSignal = D$1, this.input = e$1, this.output = s;
527
- }
528
- unsubscribe() {
529
- this._subscribers.clear();
530
- }
531
- setSubscriber(u$2, F$1) {
532
- const e$1 = this._subscribers.get(u$2) ?? [];
533
- e$1.push(F$1), this._subscribers.set(u$2, e$1);
534
- }
535
- on(u$2, F$1) {
536
- this.setSubscriber(u$2, { cb: F$1 });
537
- }
538
- once(u$2, F$1) {
539
- this.setSubscriber(u$2, {
540
- cb: F$1,
541
- once: !0
542
- });
543
- }
544
- emit(u$2, ...F$1) {
545
- const e$1 = this._subscribers.get(u$2) ?? [], s = [];
546
- for (const i$1 of e$1) i$1.cb(...F$1), i$1.once && s.push(() => e$1.splice(e$1.indexOf(i$1), 1));
547
- for (const i$1 of s) i$1();
548
- }
549
- prompt() {
550
- return new Promise((u$2, F$1) => {
551
- if (this._abortSignal) {
552
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u$2(S);
553
- this._abortSignal.addEventListener("abort", () => {
554
- this.state = "cancel", this.close();
555
- }, { once: !0 });
556
- }
557
- const e$1 = new WriteStream(0);
558
- e$1._write = (s, i$1, D$1) => {
559
- this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D$1();
560
- }, this.input.pipe(e$1), this.rl = M.createInterface({
561
- input: this.input,
562
- output: e$1,
563
- tabSize: 2,
564
- prompt: "",
565
- escapeCodeTimeout: 50
566
- }), M.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
567
- this.output.write(import_src$1.cursor.show), this.output.off("resize", this.render), d$1(this.input, !1), u$2(this.value);
568
- }), this.once("cancel", () => {
569
- this.output.write(import_src$1.cursor.show), this.output.off("resize", this.render), d$1(this.input, !1), u$2(S);
570
- });
571
- });
572
- }
573
- onKeypress(u$2, F$1) {
574
- if (this.state === "error" && (this.state = "active"), F$1?.name && (!this._track && c$1.aliases.has(F$1.name) && this.emit("cursor", c$1.aliases.get(F$1.name)), c$1.actions.has(F$1.name) && this.emit("cursor", F$1.name)), u$2 && (u$2.toLowerCase() === "y" || u$2.toLowerCase() === "n") && this.emit("confirm", u$2.toLowerCase() === "y"), u$2 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u$2 && this.emit("key", u$2.toLowerCase()), F$1?.name === "return") {
575
- if (this.opts.validate) {
576
- const e$1 = this.opts.validate(this.value);
577
- e$1 && (this.error = e$1 instanceof Error ? e$1.message : e$1, this.state = "error", this.rl?.write(this.value));
578
- }
579
- this.state !== "error" && (this.state = "submit");
580
- }
581
- k$1([
582
- u$2,
583
- F$1?.name,
584
- F$1?.sequence
585
- ], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
586
- }
587
- close() {
588
- this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
589
- `), d$1(this.input, !1), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
590
- }
591
- restoreCursor() {
592
- const u$2 = G(this._prevFrame, process.stdout.columns, { hard: !0 }).split(`
593
- `).length - 1;
594
- this.output.write(import_src$1.cursor.move(-999, u$2 * -1));
595
- }
596
- render() {
597
- const u$2 = G(this._render(this) ?? "", process.stdout.columns, { hard: !0 });
598
- if (u$2 !== this._prevFrame) {
599
- if (this.state === "initial") this.output.write(import_src$1.cursor.hide);
600
- else {
601
- const F$1 = lD(this._prevFrame, u$2);
602
- if (this.restoreCursor(), F$1 && F$1?.length === 1) {
603
- const e$1 = F$1[0];
604
- this.output.write(import_src$1.cursor.move(0, e$1)), this.output.write(import_src$1.erase.lines(1));
605
- const s = u$2.split(`
606
- `);
607
- this.output.write(s[e$1]), this._prevFrame = u$2, this.output.write(import_src$1.cursor.move(0, s.length - e$1 - 1));
608
- return;
609
- }
610
- if (F$1 && F$1?.length > 1) {
611
- const e$1 = F$1[0];
612
- this.output.write(import_src$1.cursor.move(0, e$1)), this.output.write(import_src$1.erase.down());
613
- const s = u$2.split(`
614
- `).slice(e$1);
615
- this.output.write(s.join(`
616
- `)), this._prevFrame = u$2;
617
- return;
618
- }
619
- this.output.write(import_src$1.erase.down());
620
- }
621
- this.output.write(u$2), this.state === "initial" && (this.state = "active"), this._prevFrame = u$2;
622
- }
623
- }
624
- };
625
- var fD = class extends x {
626
- get cursor() {
627
- return this.value ? 0 : 1;
628
- }
629
- get _value() {
630
- return this.cursor === 0;
631
- }
632
- constructor(u$2) {
633
- super(u$2, !1), this.value = !!u$2.initialValue, this.on("value", () => {
634
- this.value = this._value;
635
- }), this.on("confirm", (F$1) => {
636
- this.output.write(import_src$1.cursor.move(0, -1)), this.value = F$1, this.state = "submit", this.close();
637
- }), this.on("cursor", () => {
638
- this.value = !this.value;
639
- });
640
- }
641
- };
642
- var gD = Object.defineProperty, vD = (t, u$2, F$1) => u$2 in t ? gD(t, u$2, {
643
- enumerable: !0,
644
- configurable: !0,
645
- writable: !0,
646
- value: F$1
647
- }) : t[u$2] = F$1, K$1 = (t, u$2, F$1) => (vD(t, typeof u$2 != "symbol" ? u$2 + "" : u$2, F$1), F$1);
648
- let dD = class extends x {
649
- constructor(u$2) {
650
- super(u$2, !1), K$1(this, "options"), K$1(this, "cursor", 0);
651
- const { options: F$1 } = u$2;
652
- this.options = Object.entries(F$1).flatMap(([e$1, s]) => [{
653
- value: e$1,
654
- group: !0,
655
- label: e$1
656
- }, ...s.map((i$1) => ({
657
- ...i$1,
658
- group: e$1
659
- }))]), this.value = [...u$2.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: e$1 }) => e$1 === u$2.cursorAt), 0), this.on("cursor", (e$1) => {
660
- switch (e$1) {
661
- case "left":
662
- case "up":
663
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
664
- break;
665
- case "down":
666
- case "right":
667
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
668
- break;
669
- case "space":
670
- this.toggleValue();
671
- break;
672
- }
673
- });
674
- }
675
- getGroupItems(u$2) {
676
- return this.options.filter((F$1) => F$1.group === u$2);
677
- }
678
- isGroupSelected(u$2) {
679
- return this.getGroupItems(u$2).every((F$1) => this.value.includes(F$1.value));
680
- }
681
- toggleValue() {
682
- const u$2 = this.options[this.cursor];
683
- if (u$2.group === !0) {
684
- const F$1 = u$2.value, e$1 = this.getGroupItems(F$1);
685
- this.isGroupSelected(F$1) ? this.value = this.value.filter((s) => e$1.findIndex((i$1) => i$1.value === s) === -1) : this.value = [...this.value, ...e$1.map((s) => s.value)], this.value = Array.from(new Set(this.value));
686
- } else this.value = this.value.includes(u$2.value) ? this.value.filter((e$1) => e$1 !== u$2.value) : [...this.value, u$2.value];
687
- }
688
- };
689
- var bD = Object.defineProperty, mD = (t, u$2, F$1) => u$2 in t ? bD(t, u$2, {
690
- enumerable: !0,
691
- configurable: !0,
692
- writable: !0,
693
- value: F$1
694
- }) : t[u$2] = F$1, Y$1 = (t, u$2, F$1) => (mD(t, typeof u$2 != "symbol" ? u$2 + "" : u$2, F$1), F$1);
695
- let wD = class extends x {
696
- constructor(u$2) {
697
- super(u$2, !1), Y$1(this, "options"), Y$1(this, "cursor", 0), this.options = u$2.options, this.value = [...u$2.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F$1 }) => F$1 === u$2.cursorAt), 0), this.on("key", (F$1) => {
698
- F$1 === "a" && this.toggleAll();
699
- }), this.on("cursor", (F$1) => {
700
- switch (F$1) {
701
- case "left":
702
- case "up":
703
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
704
- break;
705
- case "down":
706
- case "right":
707
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
708
- break;
709
- case "space":
710
- this.toggleValue();
711
- break;
712
- }
713
- });
714
- }
715
- get _value() {
716
- return this.options[this.cursor].value;
717
- }
718
- toggleAll() {
719
- this.value = this.value.length === this.options.length ? [] : this.options.map((F$1) => F$1.value);
720
- }
721
- toggleValue() {
722
- this.value = this.value.includes(this._value) ? this.value.filter((F$1) => F$1 !== this._value) : [...this.value, this._value];
723
- }
724
- };
725
- var yD = Object.defineProperty, _D = (t, u$2, F$1) => u$2 in t ? yD(t, u$2, {
726
- enumerable: !0,
727
- configurable: !0,
728
- writable: !0,
729
- value: F$1
730
- }) : t[u$2] = F$1, Z = (t, u$2, F$1) => (_D(t, typeof u$2 != "symbol" ? u$2 + "" : u$2, F$1), F$1);
731
- var kD = class extends x {
732
- constructor({ mask: u$2,...F$1 }) {
733
- super(F$1), Z(this, "valueWithCursor", ""), Z(this, "_mask", "•"), this._mask = u$2 ?? "•", this.on("finalize", () => {
734
- this.valueWithCursor = this.masked;
735
- }), this.on("value", () => {
736
- if (this.cursor >= this.value.length) this.valueWithCursor = `${this.masked}${import_picocolors$1.default.inverse(import_picocolors$1.default.hidden("_"))}`;
737
- else {
738
- const e$1 = this.masked.slice(0, this.cursor), s = this.masked.slice(this.cursor);
739
- this.valueWithCursor = `${e$1}${import_picocolors$1.default.inverse(s[0])}${s.slice(1)}`;
740
- }
741
- });
742
- }
743
- get cursor() {
744
- return this._cursor;
745
- }
746
- get masked() {
747
- return this.value.replaceAll(/./g, this._mask);
748
- }
749
- };
750
- var SD = Object.defineProperty, $D = (t, u$2, F$1) => u$2 in t ? SD(t, u$2, {
751
- enumerable: !0,
752
- configurable: !0,
753
- writable: !0,
754
- value: F$1
755
- }) : t[u$2] = F$1, q$1 = (t, u$2, F$1) => ($D(t, typeof u$2 != "symbol" ? u$2 + "" : u$2, F$1), F$1);
756
- var jD = class extends x {
757
- constructor(u$2) {
758
- super(u$2, !1), q$1(this, "options"), q$1(this, "cursor", 0), this.options = u$2.options, this.cursor = this.options.findIndex(({ value: F$1 }) => F$1 === u$2.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F$1) => {
759
- switch (F$1) {
760
- case "left":
761
- case "up":
762
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
763
- break;
764
- case "down":
765
- case "right":
766
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
767
- break;
768
- }
769
- this.changeValue();
770
- });
771
- }
772
- get _value() {
773
- return this.options[this.cursor];
774
- }
775
- changeValue() {
776
- this.value = this._value.value;
777
- }
778
- };
779
- var MD = Object.defineProperty, TD = (t, u$2, F$1) => u$2 in t ? MD(t, u$2, {
780
- enumerable: !0,
781
- configurable: !0,
782
- writable: !0,
783
- value: F$1
784
- }) : t[u$2] = F$1, H = (t, u$2, F$1) => (TD(t, typeof u$2 != "symbol" ? u$2 + "" : u$2, F$1), F$1);
785
- var OD = class extends x {
786
- constructor(u$2) {
787
- super(u$2, !1), H(this, "options"), H(this, "cursor", 0), this.options = u$2.options;
788
- const F$1 = this.options.map(({ value: [e$1] }) => e$1?.toLowerCase());
789
- this.cursor = Math.max(F$1.indexOf(u$2.initialValue), 0), this.on("key", (e$1) => {
790
- if (!F$1.includes(e$1)) return;
791
- const s = this.options.find(({ value: [i$1] }) => i$1?.toLowerCase() === e$1);
792
- s && (this.value = s.value, this.state = "submit", this.emit("submit"));
793
- });
794
- }
795
- };
796
- var PD = class extends x {
797
- get valueWithCursor() {
798
- if (this.state === "submit") return this.value;
799
- if (this.cursor >= this.value.length) return `${this.value}\u2588`;
800
- const u$2 = this.value.slice(0, this.cursor), [F$1, ...e$1] = this.value.slice(this.cursor);
801
- return `${u$2}${import_picocolors$1.default.inverse(F$1)}${e$1.join("")}`;
802
- }
803
- get cursor() {
804
- return this._cursor;
805
- }
806
- constructor(u$2) {
807
- super(u$2), this.on("finalize", () => {
808
- this.value || (this.value = u$2.defaultValue);
809
- });
810
- }
811
- };
812
-
813
- //#endregion
814
- //#region ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
815
- var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
816
- var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
817
- function ce() {
818
- return g.platform !== "win32" ? g.env.TERM !== "linux" : !!g.env.CI || !!g.env.WT_SESSION || !!g.env.TERMINUS_SUBLIME || g.env.ConEmuTask === "{cmd::Cmder}" || g.env.TERM_PROGRAM === "Terminus-Sublime" || g.env.TERM_PROGRAM === "vscode" || g.env.TERM === "xterm-256color" || g.env.TERM === "alacritty" || g.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
819
- }
820
- const V = ce(), u$1 = (t, n$1) => V ? t : n$1, le = u$1("◆", "*"), L = u$1("■", "x"), W = u$1("▲", "x"), C = u$1("◇", "o"), ue = u$1("┌", "T"), o$1 = u$1("│", "|"), d = u$1("└", "—"), k = u$1("●", ">"), P = u$1("○", " "), A = u$1("◻", "[•]"), T = u$1("◼", "[+]"), F = u$1("◻", "[ ]"), $e = u$1("▪", "•"), _$1 = u$1("─", "-"), me = u$1("╮", "+"), de = u$1("├", "+"), pe = u$1("╯", "+"), q = u$1("●", "•"), D = u$1("◆", "*"), U = u$1("▲", "!"), K = u$1("■", "x"), w = (t) => {
821
- switch (t) {
822
- case "initial":
823
- case "active": return import_picocolors.default.cyan(le);
824
- case "cancel": return import_picocolors.default.red(L);
825
- case "error": return import_picocolors.default.yellow(W);
826
- case "submit": return import_picocolors.default.green(C);
827
- }
828
- }, B = (t) => {
829
- const { cursor: n$1, options: s, style: r$1 } = t, i$1 = t.maxItems ?? Number.POSITIVE_INFINITY, a$1 = Math.max(process.stdout.rows - 4, 0), c$2 = Math.min(a$1, Math.max(i$1, 5));
830
- let l$1 = 0;
831
- n$1 >= l$1 + c$2 - 3 ? l$1 = Math.max(Math.min(n$1 - c$2 + 3, s.length - c$2), 0) : n$1 < l$1 + 2 && (l$1 = Math.max(n$1 - 2, 0));
832
- const $$1 = c$2 < s.length && l$1 > 0, p$1 = c$2 < s.length && l$1 + c$2 < s.length;
833
- return s.slice(l$1, l$1 + c$2).map((M$1, v$1, x$1) => {
834
- const j = v$1 === 0 && $$1, E = v$1 === x$1.length - 1 && p$1;
835
- return j || E ? import_picocolors.default.dim("...") : r$1(M$1, v$1 + l$1 === n$1);
836
- });
837
- }, he = (t) => new PD({
838
- validate: t.validate,
839
- placeholder: t.placeholder,
840
- defaultValue: t.defaultValue,
841
- initialValue: t.initialValue,
842
- render() {
843
- const n$1 = `${import_picocolors.default.gray(o$1)}
844
- ${w(this.state)} ${t.message}
845
- `, s = t.placeholder ? import_picocolors.default.inverse(t.placeholder[0]) + import_picocolors.default.dim(t.placeholder.slice(1)) : import_picocolors.default.inverse(import_picocolors.default.hidden("_")), r$1 = this.value ? this.valueWithCursor : s;
846
- switch (this.state) {
847
- case "error": return `${n$1.trim()}
848
- ${import_picocolors.default.yellow(o$1)} ${r$1}
849
- ${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(this.error)}
850
- `;
851
- case "submit": return `${n$1}${import_picocolors.default.gray(o$1)} ${import_picocolors.default.dim(this.value || t.placeholder)}`;
852
- case "cancel": return `${n$1}${import_picocolors.default.gray(o$1)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(this.value ?? ""))}${this.value?.trim() ? `
853
- ${import_picocolors.default.gray(o$1)}` : ""}`;
854
- default: return `${n$1}${import_picocolors.default.cyan(o$1)} ${r$1}
855
- ${import_picocolors.default.cyan(d)}
856
- `;
857
- }
858
- }
859
- }).prompt(), ge = (t) => new kD({
860
- validate: t.validate,
861
- mask: t.mask ?? $e,
862
- render() {
863
- const n$1 = `${import_picocolors.default.gray(o$1)}
864
- ${w(this.state)} ${t.message}
865
- `, s = this.valueWithCursor, r$1 = this.masked;
866
- switch (this.state) {
867
- case "error": return `${n$1.trim()}
868
- ${import_picocolors.default.yellow(o$1)} ${r$1}
869
- ${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(this.error)}
870
- `;
871
- case "submit": return `${n$1}${import_picocolors.default.gray(o$1)} ${import_picocolors.default.dim(r$1)}`;
872
- case "cancel": return `${n$1}${import_picocolors.default.gray(o$1)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(r$1 ?? ""))}${r$1 ? `
873
- ${import_picocolors.default.gray(o$1)}` : ""}`;
874
- default: return `${n$1}${import_picocolors.default.cyan(o$1)} ${s}
875
- ${import_picocolors.default.cyan(d)}
876
- `;
877
- }
878
- }
879
- }).prompt(), ye = (t) => {
880
- const n$1 = t.active ?? "Yes", s = t.inactive ?? "No";
881
- return new fD({
882
- active: n$1,
883
- inactive: s,
884
- initialValue: t.initialValue ?? !0,
885
- render() {
886
- const r$1 = `${import_picocolors.default.gray(o$1)}
887
- ${w(this.state)} ${t.message}
888
- `, i$1 = this.value ? n$1 : s;
889
- switch (this.state) {
890
- case "submit": return `${r$1}${import_picocolors.default.gray(o$1)} ${import_picocolors.default.dim(i$1)}`;
891
- case "cancel": return `${r$1}${import_picocolors.default.gray(o$1)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(i$1))}
892
- ${import_picocolors.default.gray(o$1)}`;
893
- default: return `${r$1}${import_picocolors.default.cyan(o$1)} ${this.value ? `${import_picocolors.default.green(k)} ${n$1}` : `${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(n$1)}`} ${import_picocolors.default.dim("/")} ${this.value ? `${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(s)}` : `${import_picocolors.default.green(k)} ${s}`}
894
- ${import_picocolors.default.cyan(d)}
895
- `;
896
- }
897
- }
898
- }).prompt();
899
- }, ve = (t) => {
900
- const n$1 = (s, r$1) => {
901
- const i$1 = s.label ?? String(s.value);
902
- switch (r$1) {
903
- case "selected": return `${import_picocolors.default.dim(i$1)}`;
904
- case "active": return `${import_picocolors.default.green(k)} ${i$1} ${s.hint ? import_picocolors.default.dim(`(${s.hint})`) : ""}`;
905
- case "cancelled": return `${import_picocolors.default.strikethrough(import_picocolors.default.dim(i$1))}`;
906
- default: return `${import_picocolors.default.dim(P)} ${import_picocolors.default.dim(i$1)}`;
907
- }
908
- };
909
- return new jD({
910
- options: t.options,
911
- initialValue: t.initialValue,
912
- render() {
913
- const s = `${import_picocolors.default.gray(o$1)}
914
- ${w(this.state)} ${t.message}
915
- `;
916
- switch (this.state) {
917
- case "submit": return `${s}${import_picocolors.default.gray(o$1)} ${n$1(this.options[this.cursor], "selected")}`;
918
- case "cancel": return `${s}${import_picocolors.default.gray(o$1)} ${n$1(this.options[this.cursor], "cancelled")}
919
- ${import_picocolors.default.gray(o$1)}`;
920
- default: return `${s}${import_picocolors.default.cyan(o$1)} ${B({
921
- cursor: this.cursor,
922
- options: this.options,
923
- maxItems: t.maxItems,
924
- style: (r$1, i$1) => n$1(r$1, i$1 ? "active" : "inactive")
925
- }).join(`
926
- ${import_picocolors.default.cyan(o$1)} `)}
927
- ${import_picocolors.default.cyan(d)}
928
- `;
929
- }
930
- }
931
- }).prompt();
932
- }, we = (t) => {
933
- const n$1 = (s, r$1 = "inactive") => {
934
- const i$1 = s.label ?? String(s.value);
935
- return r$1 === "selected" ? `${import_picocolors.default.dim(i$1)}` : r$1 === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(i$1))}` : r$1 === "active" ? `${import_picocolors.default.bgCyan(import_picocolors.default.gray(` ${s.value} `))} ${i$1} ${s.hint ? import_picocolors.default.dim(`(${s.hint})`) : ""}` : `${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` ${s.value} `)))} ${i$1} ${s.hint ? import_picocolors.default.dim(`(${s.hint})`) : ""}`;
936
- };
937
- return new OD({
938
- options: t.options,
939
- initialValue: t.initialValue,
940
- render() {
941
- const s = `${import_picocolors.default.gray(o$1)}
942
- ${w(this.state)} ${t.message}
943
- `;
944
- switch (this.state) {
945
- case "submit": return `${s}${import_picocolors.default.gray(o$1)} ${n$1(this.options.find((r$1) => r$1.value === this.value) ?? t.options[0], "selected")}`;
946
- case "cancel": return `${s}${import_picocolors.default.gray(o$1)} ${n$1(this.options[0], "cancelled")}
947
- ${import_picocolors.default.gray(o$1)}`;
948
- default: return `${s}${import_picocolors.default.cyan(o$1)} ${this.options.map((r$1, i$1) => n$1(r$1, i$1 === this.cursor ? "active" : "inactive")).join(`
949
- ${import_picocolors.default.cyan(o$1)} `)}
950
- ${import_picocolors.default.cyan(d)}
951
- `;
952
- }
953
- }
954
- }).prompt();
955
- }, fe = (t) => {
956
- const n$1 = (s, r$1) => {
957
- const i$1 = s.label ?? String(s.value);
958
- return r$1 === "active" ? `${import_picocolors.default.cyan(A)} ${i$1} ${s.hint ? import_picocolors.default.dim(`(${s.hint})`) : ""}` : r$1 === "selected" ? `${import_picocolors.default.green(T)} ${import_picocolors.default.dim(i$1)}` : r$1 === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(i$1))}` : r$1 === "active-selected" ? `${import_picocolors.default.green(T)} ${i$1} ${s.hint ? import_picocolors.default.dim(`(${s.hint})`) : ""}` : r$1 === "submitted" ? `${import_picocolors.default.dim(i$1)}` : `${import_picocolors.default.dim(F)} ${import_picocolors.default.dim(i$1)}`;
959
- };
960
- return new wD({
961
- options: t.options,
962
- initialValues: t.initialValues,
963
- required: t.required ?? !0,
964
- cursorAt: t.cursorAt,
965
- validate(s) {
966
- if (this.required && s.length === 0) return `Please select at least one option.
967
- ${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`))}`;
968
- },
969
- render() {
970
- const s = `${import_picocolors.default.gray(o$1)}
971
- ${w(this.state)} ${t.message}
972
- `, r$1 = (i$1, a$1) => {
973
- const c$2 = this.value.includes(i$1.value);
974
- return a$1 && c$2 ? n$1(i$1, "active-selected") : c$2 ? n$1(i$1, "selected") : n$1(i$1, a$1 ? "active" : "inactive");
975
- };
976
- switch (this.state) {
977
- case "submit": return `${s}${import_picocolors.default.gray(o$1)} ${this.options.filter(({ value: i$1 }) => this.value.includes(i$1)).map((i$1) => n$1(i$1, "submitted")).join(import_picocolors.default.dim(", ")) || import_picocolors.default.dim("none")}`;
978
- case "cancel": {
979
- const i$1 = this.options.filter(({ value: a$1 }) => this.value.includes(a$1)).map((a$1) => n$1(a$1, "cancelled")).join(import_picocolors.default.dim(", "));
980
- return `${s}${import_picocolors.default.gray(o$1)} ${i$1.trim() ? `${i$1}
981
- ${import_picocolors.default.gray(o$1)}` : ""}`;
982
- }
983
- case "error": {
984
- const i$1 = this.error.split(`
985
- `).map((a$1, c$2) => c$2 === 0 ? `${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(a$1)}` : ` ${a$1}`).join(`
986
- `);
987
- return `${s + import_picocolors.default.yellow(o$1)} ${B({
988
- options: this.options,
989
- cursor: this.cursor,
990
- maxItems: t.maxItems,
991
- style: r$1
992
- }).join(`
993
- ${import_picocolors.default.yellow(o$1)} `)}
994
- ${i$1}
995
- `;
996
- }
997
- default: return `${s}${import_picocolors.default.cyan(o$1)} ${B({
998
- options: this.options,
999
- cursor: this.cursor,
1000
- maxItems: t.maxItems,
1001
- style: r$1
1002
- }).join(`
1003
- ${import_picocolors.default.cyan(o$1)} `)}
1004
- ${import_picocolors.default.cyan(d)}
1005
- `;
1006
- }
1007
- }
1008
- }).prompt();
1009
- }, be = (t) => {
1010
- const n$1 = (s, r$1, i$1 = []) => {
1011
- const a$1 = s.label ?? String(s.value), c$2 = typeof s.group == "string", l$1 = c$2 && (i$1[i$1.indexOf(s) + 1] ?? { group: !0 }), $$1 = c$2 && l$1.group === !0, p$1 = c$2 ? `${$$1 ? d : o$1} ` : "";
1012
- return r$1 === "active" ? `${import_picocolors.default.dim(p$1)}${import_picocolors.default.cyan(A)} ${a$1} ${s.hint ? import_picocolors.default.dim(`(${s.hint})`) : ""}` : r$1 === "group-active" ? `${p$1}${import_picocolors.default.cyan(A)} ${import_picocolors.default.dim(a$1)}` : r$1 === "group-active-selected" ? `${p$1}${import_picocolors.default.green(T)} ${import_picocolors.default.dim(a$1)}` : r$1 === "selected" ? `${import_picocolors.default.dim(p$1)}${import_picocolors.default.green(T)} ${import_picocolors.default.dim(a$1)}` : r$1 === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(a$1))}` : r$1 === "active-selected" ? `${import_picocolors.default.dim(p$1)}${import_picocolors.default.green(T)} ${a$1} ${s.hint ? import_picocolors.default.dim(`(${s.hint})`) : ""}` : r$1 === "submitted" ? `${import_picocolors.default.dim(a$1)}` : `${import_picocolors.default.dim(p$1)}${import_picocolors.default.dim(F)} ${import_picocolors.default.dim(a$1)}`;
1013
- };
1014
- return new dD({
1015
- options: t.options,
1016
- initialValues: t.initialValues,
1017
- required: t.required ?? !0,
1018
- cursorAt: t.cursorAt,
1019
- validate(s) {
1020
- if (this.required && s.length === 0) return `Please select at least one option.
1021
- ${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`))}`;
1022
- },
1023
- render() {
1024
- const s = `${import_picocolors.default.gray(o$1)}
1025
- ${w(this.state)} ${t.message}
1026
- `;
1027
- switch (this.state) {
1028
- case "submit": return `${s}${import_picocolors.default.gray(o$1)} ${this.options.filter(({ value: r$1 }) => this.value.includes(r$1)).map((r$1) => n$1(r$1, "submitted")).join(import_picocolors.default.dim(", "))}`;
1029
- case "cancel": {
1030
- const r$1 = this.options.filter(({ value: i$1 }) => this.value.includes(i$1)).map((i$1) => n$1(i$1, "cancelled")).join(import_picocolors.default.dim(", "));
1031
- return `${s}${import_picocolors.default.gray(o$1)} ${r$1.trim() ? `${r$1}
1032
- ${import_picocolors.default.gray(o$1)}` : ""}`;
1033
- }
1034
- case "error": {
1035
- const r$1 = this.error.split(`
1036
- `).map((i$1, a$1) => a$1 === 0 ? `${import_picocolors.default.yellow(d)} ${import_picocolors.default.yellow(i$1)}` : ` ${i$1}`).join(`
1037
- `);
1038
- return `${s}${import_picocolors.default.yellow(o$1)} ${this.options.map((i$1, a$1, c$2) => {
1039
- const l$1 = this.value.includes(i$1.value) || i$1.group === !0 && this.isGroupSelected(`${i$1.value}`), $$1 = a$1 === this.cursor;
1040
- return !$$1 && typeof i$1.group == "string" && this.options[this.cursor].value === i$1.group ? n$1(i$1, l$1 ? "group-active-selected" : "group-active", c$2) : $$1 && l$1 ? n$1(i$1, "active-selected", c$2) : l$1 ? n$1(i$1, "selected", c$2) : n$1(i$1, $$1 ? "active" : "inactive", c$2);
1041
- }).join(`
1042
- ${import_picocolors.default.yellow(o$1)} `)}
1043
- ${r$1}
1044
- `;
1045
- }
1046
- default: return `${s}${import_picocolors.default.cyan(o$1)} ${this.options.map((r$1, i$1, a$1) => {
1047
- const c$2 = this.value.includes(r$1.value) || r$1.group === !0 && this.isGroupSelected(`${r$1.value}`), l$1 = i$1 === this.cursor;
1048
- return !l$1 && typeof r$1.group == "string" && this.options[this.cursor].value === r$1.group ? n$1(r$1, c$2 ? "group-active-selected" : "group-active", a$1) : l$1 && c$2 ? n$1(r$1, "active-selected", a$1) : c$2 ? n$1(r$1, "selected", a$1) : n$1(r$1, l$1 ? "active" : "inactive", a$1);
1049
- }).join(`
1050
- ${import_picocolors.default.cyan(o$1)} `)}
1051
- ${import_picocolors.default.cyan(d)}
1052
- `;
1053
- }
1054
- }
1055
- }).prompt();
1056
- }, Me = (t = "", n$1 = "") => {
1057
- const s = `
1058
- ${t}
1059
- `.split(`
1060
- `), r$1 = stripVTControlCharacters(n$1).length, i$1 = Math.max(s.reduce((c$2, l$1) => {
1061
- const $$1 = stripVTControlCharacters(l$1);
1062
- return $$1.length > c$2 ? $$1.length : c$2;
1063
- }, 0), r$1) + 2, a$1 = s.map((c$2) => `${import_picocolors.default.gray(o$1)} ${import_picocolors.default.dim(c$2)}${" ".repeat(i$1 - stripVTControlCharacters(c$2).length)}${import_picocolors.default.gray(o$1)}`).join(`
1064
- `);
1065
- process.stdout.write(`${import_picocolors.default.gray(o$1)}
1066
- ${import_picocolors.default.green(C)} ${import_picocolors.default.reset(n$1)} ${import_picocolors.default.gray(_$1.repeat(Math.max(i$1 - r$1 - 1, 1)) + me)}
1067
- ${a$1}
1068
- ${import_picocolors.default.gray(de + _$1.repeat(i$1 + 2) + pe)}
1069
- `);
1070
- }, xe = (t = "") => {
1071
- process.stdout.write(`${import_picocolors.default.gray(d)} ${import_picocolors.default.red(t)}
1072
-
1073
- `);
1074
- }, Ie = (t = "") => {
1075
- process.stdout.write(`${import_picocolors.default.gray(ue)} ${t}
1076
- `);
1077
- }, Se = (t = "") => {
1078
- process.stdout.write(`${import_picocolors.default.gray(o$1)}
1079
- ${import_picocolors.default.gray(d)} ${t}
1080
-
1081
- `);
1082
- }, f = {
1083
- message: (t = "", { symbol: n$1 = import_picocolors.default.gray(o$1) } = {}) => {
1084
- const s = [`${import_picocolors.default.gray(o$1)}`];
1085
- if (t) {
1086
- const [r$1, ...i$1] = t.split(`
1087
- `);
1088
- s.push(`${n$1} ${r$1}`, ...i$1.map((a$1) => `${import_picocolors.default.gray(o$1)} ${a$1}`));
1089
- }
1090
- process.stdout.write(`${s.join(`
1091
- `)}
1092
- `);
1093
- },
1094
- info: (t) => {
1095
- f.message(t, { symbol: import_picocolors.default.blue(q) });
1096
- },
1097
- success: (t) => {
1098
- f.message(t, { symbol: import_picocolors.default.green(D) });
1099
- },
1100
- step: (t) => {
1101
- f.message(t, { symbol: import_picocolors.default.green(C) });
1102
- },
1103
- warn: (t) => {
1104
- f.message(t, { symbol: import_picocolors.default.yellow(U) });
1105
- },
1106
- warning: (t) => {
1107
- f.warn(t);
1108
- },
1109
- error: (t) => {
1110
- f.message(t, { symbol: import_picocolors.default.red(K) });
1111
- }
1112
- }, J = `${import_picocolors.default.gray(o$1)} `, b = {
1113
- message: async (t, { symbol: n$1 = import_picocolors.default.gray(o$1) } = {}) => {
1114
- process.stdout.write(`${import_picocolors.default.gray(o$1)}
1115
- ${n$1} `);
1116
- let s = 3;
1117
- for await (let r$1 of t) {
1118
- r$1 = r$1.replace(/\n/g, `
1119
- ${J}`), r$1.includes(`
1120
- `) && (s = 3 + stripVTControlCharacters(r$1.slice(r$1.lastIndexOf(`
1121
- `))).length);
1122
- const i$1 = stripVTControlCharacters(r$1).length;
1123
- s + i$1 < process.stdout.columns ? (s += i$1, process.stdout.write(r$1)) : (process.stdout.write(`
1124
- ${J}${r$1.trimStart()}`), s = 3 + stripVTControlCharacters(r$1.trimStart()).length);
1125
- }
1126
- process.stdout.write(`
1127
- `);
1128
- },
1129
- info: (t) => b.message(t, { symbol: import_picocolors.default.blue(q) }),
1130
- success: (t) => b.message(t, { symbol: import_picocolors.default.green(D) }),
1131
- step: (t) => b.message(t, { symbol: import_picocolors.default.green(C) }),
1132
- warn: (t) => b.message(t, { symbol: import_picocolors.default.yellow(U) }),
1133
- warning: (t) => b.warn(t),
1134
- error: (t) => b.message(t, { symbol: import_picocolors.default.red(K) })
1135
- }, Y = ({ indicator: t = "dots" } = {}) => {
1136
- const n$1 = V ? [
1137
- "◒",
1138
- "◐",
1139
- "◓",
1140
- "◑"
1141
- ] : [
1142
- "•",
1143
- "o",
1144
- "O",
1145
- "0"
1146
- ], s = V ? 80 : 120, r$1 = process.env.CI === "true";
1147
- let i$1, a$1, c$2 = !1, l$1 = "", $$1, p$1 = performance.now();
1148
- const M$1 = (m$1) => {
1149
- c$2 && N$1(m$1 > 1 ? "Something went wrong" : "Canceled", m$1);
1150
- }, v$1 = () => M$1(2), x$1 = () => M$1(1), j = () => {
1151
- process.on("uncaughtExceptionMonitor", v$1), process.on("unhandledRejection", v$1), process.on("SIGINT", x$1), process.on("SIGTERM", x$1), process.on("exit", M$1);
1152
- }, E = () => {
1153
- process.removeListener("uncaughtExceptionMonitor", v$1), process.removeListener("unhandledRejection", v$1), process.removeListener("SIGINT", x$1), process.removeListener("SIGTERM", x$1), process.removeListener("exit", M$1);
1154
- }, O$1 = () => {
1155
- if ($$1 === void 0) return;
1156
- r$1 && process.stdout.write(`
1157
- `);
1158
- const m$1 = $$1.split(`
1159
- `);
1160
- process.stdout.write(import_src.cursor.move(-999, m$1.length - 1)), process.stdout.write(import_src.erase.down(m$1.length));
1161
- }, R$1 = (m$1) => m$1.replace(/\.+$/, ""), G$1 = (m$1) => {
1162
- const h$2 = (performance.now() - m$1) / 1e3, y$1 = Math.floor(h$2 / 60), I$1 = Math.floor(h$2 % 60);
1163
- return y$1 > 0 ? `[${y$1}m ${I$1}s]` : `[${I$1}s]`;
1164
- }, H$1 = (m$1 = "") => {
1165
- c$2 = !0, i$1 = cD(), l$1 = R$1(m$1), p$1 = performance.now(), process.stdout.write(`${import_picocolors.default.gray(o$1)}
1166
- `);
1167
- let h$2 = 0, y$1 = 0;
1168
- j(), a$1 = setInterval(() => {
1169
- if (r$1 && l$1 === $$1) return;
1170
- O$1(), $$1 = l$1;
1171
- const I$1 = import_picocolors.default.magenta(n$1[h$2]);
1172
- if (r$1) process.stdout.write(`${I$1} ${l$1}...`);
1173
- else if (t === "timer") process.stdout.write(`${I$1} ${l$1} ${G$1(p$1)}`);
1174
- else {
1175
- const z$1 = ".".repeat(Math.floor(y$1)).slice(0, 3);
1176
- process.stdout.write(`${I$1} ${l$1}${z$1}`);
1177
- }
1178
- h$2 = h$2 + 1 < n$1.length ? h$2 + 1 : 0, y$1 = y$1 < n$1.length ? y$1 + .125 : 0;
1179
- }, s);
1180
- }, N$1 = (m$1 = "", h$2 = 0) => {
1181
- c$2 = !1, clearInterval(a$1), O$1();
1182
- const y$1 = h$2 === 0 ? import_picocolors.default.green(C) : h$2 === 1 ? import_picocolors.default.red(L) : import_picocolors.default.red(W);
1183
- l$1 = R$1(m$1 ?? l$1), t === "timer" ? process.stdout.write(`${y$1} ${l$1} ${G$1(p$1)}
1184
- `) : process.stdout.write(`${y$1} ${l$1}
1185
- `), E(), i$1();
1186
- };
1187
- return {
1188
- start: H$1,
1189
- stop: N$1,
1190
- message: (m$1 = "") => {
1191
- l$1 = R$1(m$1 ?? l$1);
1192
- }
1193
- };
1194
- }, Ce = async (t, n$1) => {
1195
- const s = {}, r$1 = Object.keys(t);
1196
- for (const i$1 of r$1) {
1197
- const a$1 = t[i$1], c$2 = await a$1({ results: s })?.catch((l$1) => {
1198
- throw l$1;
1199
- });
1200
- if (typeof n$1?.onCancel == "function" && BD(c$2)) {
1201
- s[i$1] = "canceled", n$1.onCancel({ results: s });
1202
- continue;
1203
- }
1204
- s[i$1] = c$2;
1205
- }
1206
- return s;
1207
- }, Te = async (t) => {
1208
- for (const n$1 of t) {
1209
- if (n$1.enabled === !1) continue;
1210
- const s = Y();
1211
- s.start(n$1.title);
1212
- const r$1 = await n$1.task(s.message);
1213
- s.stop(r$1 || n$1.title);
1214
- }
1215
- };
1216
-
1217
52
  //#endregion
1218
53
  //#region ../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js
1219
54
  var require_dayjs_min = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js": ((exports, module) => {
1220
- (function(t, e$1) {
1221
- "object" == typeof exports && "undefined" != typeof module ? module.exports = e$1() : "function" == typeof define && define.amd ? define(e$1) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e$1();
55
+ (function(t, e) {
56
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
1222
57
  })(exports, (function() {
1223
- var t = 1e3, e$1 = 6e4, n$1 = 36e5, r$1 = "millisecond", i$1 = "second", s = "minute", u$2 = "hour", a$1 = "day", o$2 = "week", c$2 = "month", f$2 = "quarter", h$2 = "year", d$2 = "date", l$1 = "Invalid Date", $$1 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y$1 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M$1 = {
58
+ var t = 1e3, e = 6e4, n$1 = 36e5, r = "millisecond", i$1 = "second", s = "minute", u$1 = "hour", a$1 = "day", o$1 = "week", c$1 = "month", f = "quarter", h$1 = "year", d = "date", l = "Invalid Date", $$1 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = {
1224
59
  name: "en",
1225
60
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
1226
61
  months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
1227
62
  ordinal: function(t$1) {
1228
- var e$2 = [
63
+ var e$1 = [
1229
64
  "th",
1230
65
  "st",
1231
66
  "nd",
1232
67
  "rd"
1233
68
  ], n$2 = t$1 % 100;
1234
- return "[" + t$1 + (e$2[(n$2 - 20) % 10] || e$2[n$2] || e$2[0]) + "]";
69
+ return "[" + t$1 + (e$1[(n$2 - 20) % 10] || e$1[n$2] || e$1[0]) + "]";
1235
70
  }
1236
- }, m$1 = function(t$1, e$2, n$2) {
1237
- var r$2 = String(t$1);
1238
- return !r$2 || r$2.length >= e$2 ? t$1 : "" + Array(e$2 + 1 - r$2.length).join(n$2) + t$1;
1239
- }, v$1 = {
1240
- s: m$1,
71
+ }, m = function(t$1, e$1, n$2) {
72
+ var r$1 = String(t$1);
73
+ return !r$1 || r$1.length >= e$1 ? t$1 : "" + Array(e$1 + 1 - r$1.length).join(n$2) + t$1;
74
+ }, v = {
75
+ s: m,
1241
76
  z: function(t$1) {
1242
- var e$2 = -t$1.utcOffset(), n$2 = Math.abs(e$2), r$2 = Math.floor(n$2 / 60), i$2 = n$2 % 60;
1243
- return (e$2 <= 0 ? "+" : "-") + m$1(r$2, 2, "0") + ":" + m$1(i$2, 2, "0");
77
+ var e$1 = -t$1.utcOffset(), n$2 = Math.abs(e$1), r$1 = Math.floor(n$2 / 60), i$2 = n$2 % 60;
78
+ return (e$1 <= 0 ? "+" : "-") + m(r$1, 2, "0") + ":" + m(i$2, 2, "0");
1244
79
  },
1245
- m: function t$1(e$2, n$2) {
1246
- if (e$2.date() < n$2.date()) return -t$1(n$2, e$2);
1247
- var r$2 = 12 * (n$2.year() - e$2.year()) + (n$2.month() - e$2.month()), i$2 = e$2.clone().add(r$2, c$2), s$1 = n$2 - i$2 < 0, u$3 = e$2.clone().add(r$2 + (s$1 ? -1 : 1), c$2);
1248
- return +(-(r$2 + (n$2 - i$2) / (s$1 ? i$2 - u$3 : u$3 - i$2)) || 0);
80
+ m: function t$1(e$1, n$2) {
81
+ if (e$1.date() < n$2.date()) return -t$1(n$2, e$1);
82
+ var r$1 = 12 * (n$2.year() - e$1.year()) + (n$2.month() - e$1.month()), i$2 = e$1.clone().add(r$1, c$1), s$1 = n$2 - i$2 < 0, u$2 = e$1.clone().add(r$1 + (s$1 ? -1 : 1), c$1);
83
+ return +(-(r$1 + (n$2 - i$2) / (s$1 ? i$2 - u$2 : u$2 - i$2)) || 0);
1249
84
  },
1250
85
  a: function(t$1) {
1251
86
  return t$1 < 0 ? Math.ceil(t$1) || 0 : Math.floor(t$1);
1252
87
  },
1253
88
  p: function(t$1) {
1254
89
  return {
1255
- M: c$2,
1256
- y: h$2,
1257
- w: o$2,
90
+ M: c$1,
91
+ y: h$1,
92
+ w: o$1,
1258
93
  d: a$1,
1259
- D: d$2,
1260
- h: u$2,
94
+ D: d,
95
+ h: u$1,
1261
96
  m: s,
1262
97
  s: i$1,
1263
- ms: r$1,
1264
- Q: f$2
98
+ ms: r,
99
+ Q: f
1265
100
  }[t$1] || String(t$1 || "").toLowerCase().replace(/s$/, "");
1266
101
  },
1267
102
  u: function(t$1) {
1268
103
  return void 0 === t$1;
1269
104
  }
1270
- }, g$2 = "en", D$1 = {};
1271
- D$1[g$2] = M$1;
1272
- var p$1 = "$isDayjsObject", S$1 = function(t$1) {
1273
- return t$1 instanceof _$3 || !(!t$1 || !t$1[p$1]);
1274
- }, w$2 = function t$1(e$2, n$2, r$2) {
105
+ }, g = "en", D = {};
106
+ D[g] = M;
107
+ var p$1 = "$isDayjsObject", S = function(t$1) {
108
+ return t$1 instanceof _$1 || !(!t$1 || !t$1[p$1]);
109
+ }, w = function t$1(e$1, n$2, r$1) {
1275
110
  var i$2;
1276
- if (!e$2) return g$2;
1277
- if ("string" == typeof e$2) {
1278
- var s$1 = e$2.toLowerCase();
1279
- D$1[s$1] && (i$2 = s$1), n$2 && (D$1[s$1] = n$2, i$2 = s$1);
1280
- var u$3 = e$2.split("-");
1281
- if (!i$2 && u$3.length > 1) return t$1(u$3[0]);
111
+ if (!e$1) return g;
112
+ if ("string" == typeof e$1) {
113
+ var s$1 = e$1.toLowerCase();
114
+ D[s$1] && (i$2 = s$1), n$2 && (D[s$1] = n$2, i$2 = s$1);
115
+ var u$2 = e$1.split("-");
116
+ if (!i$2 && u$2.length > 1) return t$1(u$2[0]);
1282
117
  } else {
1283
- var a$2 = e$2.name;
1284
- D$1[a$2] = e$2, i$2 = a$2;
118
+ var a$2 = e$1.name;
119
+ D[a$2] = e$1, i$2 = a$2;
1285
120
  }
1286
- return !r$2 && i$2 && (g$2 = i$2), i$2 || !r$2 && g$2;
1287
- }, O$1 = function(t$1, e$2) {
1288
- if (S$1(t$1)) return t$1.clone();
1289
- var n$2 = "object" == typeof e$2 ? e$2 : {};
1290
- return n$2.date = t$1, n$2.args = arguments, new _$3(n$2);
1291
- }, b$2 = v$1;
1292
- b$2.l = w$2, b$2.i = S$1, b$2.w = function(t$1, e$2) {
1293
- return O$1(t$1, {
1294
- locale: e$2.$L,
1295
- utc: e$2.$u,
1296
- x: e$2.$x,
1297
- $offset: e$2.$offset
121
+ return !r$1 && i$2 && (g = i$2), i$2 || !r$1 && g;
122
+ }, O = function(t$1, e$1) {
123
+ if (S(t$1)) return t$1.clone();
124
+ var n$2 = "object" == typeof e$1 ? e$1 : {};
125
+ return n$2.date = t$1, n$2.args = arguments, new _$1(n$2);
126
+ }, b = v;
127
+ b.l = w, b.i = S, b.w = function(t$1, e$1) {
128
+ return O(t$1, {
129
+ locale: e$1.$L,
130
+ utc: e$1.$u,
131
+ x: e$1.$x,
132
+ $offset: e$1.$offset
1298
133
  });
1299
134
  };
1300
- var _$3 = function() {
1301
- function M$2(t$1) {
1302
- this.$L = w$2(t$1.locale, null, !0), this.parse(t$1), this.$x = this.$x || t$1.x || {}, this[p$1] = !0;
135
+ var _$1 = function() {
136
+ function M$1(t$1) {
137
+ this.$L = w(t$1.locale, null, !0), this.parse(t$1), this.$x = this.$x || t$1.x || {}, this[p$1] = !0;
1303
138
  }
1304
- var m$2 = M$2.prototype;
1305
- return m$2.parse = function(t$1) {
139
+ var m$1 = M$1.prototype;
140
+ return m$1.parse = function(t$1) {
1306
141
  this.$d = function(t$2) {
1307
- var e$2 = t$2.date, n$2 = t$2.utc;
1308
- if (null === e$2) return /* @__PURE__ */ new Date(NaN);
1309
- if (b$2.u(e$2)) return /* @__PURE__ */ new Date();
1310
- if (e$2 instanceof Date) return new Date(e$2);
1311
- if ("string" == typeof e$2 && !/Z$/i.test(e$2)) {
1312
- var r$2 = e$2.match($$1);
1313
- if (r$2) {
1314
- var i$2 = r$2[2] - 1 || 0, s$1 = (r$2[7] || "0").substring(0, 3);
1315
- return n$2 ? new Date(Date.UTC(r$2[1], i$2, r$2[3] || 1, r$2[4] || 0, r$2[5] || 0, r$2[6] || 0, s$1)) : new Date(r$2[1], i$2, r$2[3] || 1, r$2[4] || 0, r$2[5] || 0, r$2[6] || 0, s$1);
142
+ var e$1 = t$2.date, n$2 = t$2.utc;
143
+ if (null === e$1) return /* @__PURE__ */ new Date(NaN);
144
+ if (b.u(e$1)) return /* @__PURE__ */ new Date();
145
+ if (e$1 instanceof Date) return new Date(e$1);
146
+ if ("string" == typeof e$1 && !/Z$/i.test(e$1)) {
147
+ var r$1 = e$1.match($$1);
148
+ if (r$1) {
149
+ var i$2 = r$1[2] - 1 || 0, s$1 = (r$1[7] || "0").substring(0, 3);
150
+ return n$2 ? new Date(Date.UTC(r$1[1], i$2, r$1[3] || 1, r$1[4] || 0, r$1[5] || 0, r$1[6] || 0, s$1)) : new Date(r$1[1], i$2, r$1[3] || 1, r$1[4] || 0, r$1[5] || 0, r$1[6] || 0, s$1);
1316
151
  }
1317
152
  }
1318
- return new Date(e$2);
153
+ return new Date(e$1);
1319
154
  }(t$1), this.init();
1320
- }, m$2.init = function() {
155
+ }, m$1.init = function() {
1321
156
  var t$1 = this.$d;
1322
157
  this.$y = t$1.getFullYear(), this.$M = t$1.getMonth(), this.$D = t$1.getDate(), this.$W = t$1.getDay(), this.$H = t$1.getHours(), this.$m = t$1.getMinutes(), this.$s = t$1.getSeconds(), this.$ms = t$1.getMilliseconds();
1323
- }, m$2.$utils = function() {
1324
- return b$2;
1325
- }, m$2.isValid = function() {
1326
- return !(this.$d.toString() === l$1);
1327
- }, m$2.isSame = function(t$1, e$2) {
1328
- var n$2 = O$1(t$1);
1329
- return this.startOf(e$2) <= n$2 && n$2 <= this.endOf(e$2);
1330
- }, m$2.isAfter = function(t$1, e$2) {
1331
- return O$1(t$1) < this.startOf(e$2);
1332
- }, m$2.isBefore = function(t$1, e$2) {
1333
- return this.endOf(e$2) < O$1(t$1);
1334
- }, m$2.$g = function(t$1, e$2, n$2) {
1335
- return b$2.u(t$1) ? this[e$2] : this.set(n$2, t$1);
1336
- }, m$2.unix = function() {
158
+ }, m$1.$utils = function() {
159
+ return b;
160
+ }, m$1.isValid = function() {
161
+ return !(this.$d.toString() === l);
162
+ }, m$1.isSame = function(t$1, e$1) {
163
+ var n$2 = O(t$1);
164
+ return this.startOf(e$1) <= n$2 && n$2 <= this.endOf(e$1);
165
+ }, m$1.isAfter = function(t$1, e$1) {
166
+ return O(t$1) < this.startOf(e$1);
167
+ }, m$1.isBefore = function(t$1, e$1) {
168
+ return this.endOf(e$1) < O(t$1);
169
+ }, m$1.$g = function(t$1, e$1, n$2) {
170
+ return b.u(t$1) ? this[e$1] : this.set(n$2, t$1);
171
+ }, m$1.unix = function() {
1337
172
  return Math.floor(this.valueOf() / 1e3);
1338
- }, m$2.valueOf = function() {
173
+ }, m$1.valueOf = function() {
1339
174
  return this.$d.getTime();
1340
- }, m$2.startOf = function(t$1, e$2) {
1341
- var n$2 = this, r$2 = !!b$2.u(e$2) || e$2, f$3 = b$2.p(t$1), l$2 = function(t$2, e$3) {
1342
- var i$2 = b$2.w(n$2.$u ? Date.UTC(n$2.$y, e$3, t$2) : new Date(n$2.$y, e$3, t$2), n$2);
1343
- return r$2 ? i$2 : i$2.endOf(a$1);
1344
- }, $$2 = function(t$2, e$3) {
1345
- return b$2.w(n$2.toDate()[t$2].apply(n$2.toDate("s"), (r$2 ? [
175
+ }, m$1.startOf = function(t$1, e$1) {
176
+ var n$2 = this, r$1 = !!b.u(e$1) || e$1, f$1 = b.p(t$1), l$1 = function(t$2, e$2) {
177
+ var i$2 = b.w(n$2.$u ? Date.UTC(n$2.$y, e$2, t$2) : new Date(n$2.$y, e$2, t$2), n$2);
178
+ return r$1 ? i$2 : i$2.endOf(a$1);
179
+ }, $$2 = function(t$2, e$2) {
180
+ return b.w(n$2.toDate()[t$2].apply(n$2.toDate("s"), (r$1 ? [
1346
181
  0,
1347
182
  0,
1348
183
  0,
@@ -1352,163 +187,163 @@ var require_dayjs_min = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/d
1352
187
  59,
1353
188
  59,
1354
189
  999
1355
- ]).slice(e$3)), n$2);
1356
- }, y$2 = this.$W, M$3 = this.$M, m$3 = this.$D, v$2 = "set" + (this.$u ? "UTC" : "");
1357
- switch (f$3) {
1358
- case h$2: return r$2 ? l$2(1, 0) : l$2(31, 11);
1359
- case c$2: return r$2 ? l$2(1, M$3) : l$2(0, M$3 + 1);
1360
- case o$2:
1361
- var g$3 = this.$locale().weekStart || 0, D$2 = (y$2 < g$3 ? y$2 + 7 : y$2) - g$3;
1362
- return l$2(r$2 ? m$3 - D$2 : m$3 + (6 - D$2), M$3);
190
+ ]).slice(e$2)), n$2);
191
+ }, y$1 = this.$W, M$2 = this.$M, m$2 = this.$D, v$1 = "set" + (this.$u ? "UTC" : "");
192
+ switch (f$1) {
193
+ case h$1: return r$1 ? l$1(1, 0) : l$1(31, 11);
194
+ case c$1: return r$1 ? l$1(1, M$2) : l$1(0, M$2 + 1);
195
+ case o$1:
196
+ var g$1 = this.$locale().weekStart || 0, D$1 = (y$1 < g$1 ? y$1 + 7 : y$1) - g$1;
197
+ return l$1(r$1 ? m$2 - D$1 : m$2 + (6 - D$1), M$2);
1363
198
  case a$1:
1364
- case d$2: return $$2(v$2 + "Hours", 0);
1365
- case u$2: return $$2(v$2 + "Minutes", 1);
1366
- case s: return $$2(v$2 + "Seconds", 2);
1367
- case i$1: return $$2(v$2 + "Milliseconds", 3);
199
+ case d: return $$2(v$1 + "Hours", 0);
200
+ case u$1: return $$2(v$1 + "Minutes", 1);
201
+ case s: return $$2(v$1 + "Seconds", 2);
202
+ case i$1: return $$2(v$1 + "Milliseconds", 3);
1368
203
  default: return this.clone();
1369
204
  }
1370
- }, m$2.endOf = function(t$1) {
205
+ }, m$1.endOf = function(t$1) {
1371
206
  return this.startOf(t$1, !1);
1372
- }, m$2.$set = function(t$1, e$2) {
1373
- var n$2, o$3 = b$2.p(t$1), f$3 = "set" + (this.$u ? "UTC" : ""), l$2 = (n$2 = {}, n$2[a$1] = f$3 + "Date", n$2[d$2] = f$3 + "Date", n$2[c$2] = f$3 + "Month", n$2[h$2] = f$3 + "FullYear", n$2[u$2] = f$3 + "Hours", n$2[s] = f$3 + "Minutes", n$2[i$1] = f$3 + "Seconds", n$2[r$1] = f$3 + "Milliseconds", n$2)[o$3], $$2 = o$3 === a$1 ? this.$D + (e$2 - this.$W) : e$2;
1374
- if (o$3 === c$2 || o$3 === h$2) {
1375
- var y$2 = this.clone().set(d$2, 1);
1376
- y$2.$d[l$2]($$2), y$2.init(), this.$d = y$2.set(d$2, Math.min(this.$D, y$2.daysInMonth())).$d;
1377
- } else l$2 && this.$d[l$2]($$2);
207
+ }, m$1.$set = function(t$1, e$1) {
208
+ var n$2, o$2 = b.p(t$1), f$1 = "set" + (this.$u ? "UTC" : ""), l$1 = (n$2 = {}, n$2[a$1] = f$1 + "Date", n$2[d] = f$1 + "Date", n$2[c$1] = f$1 + "Month", n$2[h$1] = f$1 + "FullYear", n$2[u$1] = f$1 + "Hours", n$2[s] = f$1 + "Minutes", n$2[i$1] = f$1 + "Seconds", n$2[r] = f$1 + "Milliseconds", n$2)[o$2], $$2 = o$2 === a$1 ? this.$D + (e$1 - this.$W) : e$1;
209
+ if (o$2 === c$1 || o$2 === h$1) {
210
+ var y$1 = this.clone().set(d, 1);
211
+ y$1.$d[l$1]($$2), y$1.init(), this.$d = y$1.set(d, Math.min(this.$D, y$1.daysInMonth())).$d;
212
+ } else l$1 && this.$d[l$1]($$2);
1378
213
  return this.init(), this;
1379
- }, m$2.set = function(t$1, e$2) {
1380
- return this.clone().$set(t$1, e$2);
1381
- }, m$2.get = function(t$1) {
1382
- return this[b$2.p(t$1)]();
1383
- }, m$2.add = function(r$2, f$3) {
1384
- var d$3, l$2 = this;
1385
- r$2 = Number(r$2);
1386
- var $$2 = b$2.p(f$3), y$2 = function(t$1) {
1387
- var e$2 = O$1(l$2);
1388
- return b$2.w(e$2.date(e$2.date() + Math.round(t$1 * r$2)), l$2);
214
+ }, m$1.set = function(t$1, e$1) {
215
+ return this.clone().$set(t$1, e$1);
216
+ }, m$1.get = function(t$1) {
217
+ return this[b.p(t$1)]();
218
+ }, m$1.add = function(r$1, f$1) {
219
+ var d$1, l$1 = this;
220
+ r$1 = Number(r$1);
221
+ var $$2 = b.p(f$1), y$1 = function(t$1) {
222
+ var e$1 = O(l$1);
223
+ return b.w(e$1.date(e$1.date() + Math.round(t$1 * r$1)), l$1);
1389
224
  };
1390
- if ($$2 === c$2) return this.set(c$2, this.$M + r$2);
1391
- if ($$2 === h$2) return this.set(h$2, this.$y + r$2);
1392
- if ($$2 === a$1) return y$2(1);
1393
- if ($$2 === o$2) return y$2(7);
1394
- var M$3 = (d$3 = {}, d$3[s] = e$1, d$3[u$2] = n$1, d$3[i$1] = t, d$3)[$$2] || 1, m$3 = this.$d.getTime() + r$2 * M$3;
1395
- return b$2.w(m$3, this);
1396
- }, m$2.subtract = function(t$1, e$2) {
1397
- return this.add(-1 * t$1, e$2);
1398
- }, m$2.format = function(t$1) {
1399
- var e$2 = this, n$2 = this.$locale();
1400
- if (!this.isValid()) return n$2.invalidDate || l$1;
1401
- var r$2 = t$1 || "YYYY-MM-DDTHH:mm:ssZ", i$2 = b$2.z(this), s$1 = this.$H, u$3 = this.$m, a$2 = this.$M, o$3 = n$2.weekdays, c$3 = n$2.months, f$3 = n$2.meridiem, h$3 = function(t$2, n$3, i$3, s$2) {
1402
- return t$2 && (t$2[n$3] || t$2(e$2, r$2)) || i$3[n$3].slice(0, s$2);
1403
- }, d$3 = function(t$2) {
1404
- return b$2.s(s$1 % 12 || 12, t$2, "0");
1405
- }, $$2 = f$3 || function(t$2, e$3, n$3) {
1406
- var r$3 = t$2 < 12 ? "AM" : "PM";
1407
- return n$3 ? r$3.toLowerCase() : r$3;
225
+ if ($$2 === c$1) return this.set(c$1, this.$M + r$1);
226
+ if ($$2 === h$1) return this.set(h$1, this.$y + r$1);
227
+ if ($$2 === a$1) return y$1(1);
228
+ if ($$2 === o$1) return y$1(7);
229
+ var M$2 = (d$1 = {}, d$1[s] = e, d$1[u$1] = n$1, d$1[i$1] = t, d$1)[$$2] || 1, m$2 = this.$d.getTime() + r$1 * M$2;
230
+ return b.w(m$2, this);
231
+ }, m$1.subtract = function(t$1, e$1) {
232
+ return this.add(-1 * t$1, e$1);
233
+ }, m$1.format = function(t$1) {
234
+ var e$1 = this, n$2 = this.$locale();
235
+ if (!this.isValid()) return n$2.invalidDate || l;
236
+ var r$1 = t$1 || "YYYY-MM-DDTHH:mm:ssZ", i$2 = b.z(this), s$1 = this.$H, u$2 = this.$m, a$2 = this.$M, o$2 = n$2.weekdays, c$2 = n$2.months, f$1 = n$2.meridiem, h$2 = function(t$2, n$3, i$3, s$2) {
237
+ return t$2 && (t$2[n$3] || t$2(e$1, r$1)) || i$3[n$3].slice(0, s$2);
238
+ }, d$1 = function(t$2) {
239
+ return b.s(s$1 % 12 || 12, t$2, "0");
240
+ }, $$2 = f$1 || function(t$2, e$2, n$3) {
241
+ var r$2 = t$2 < 12 ? "AM" : "PM";
242
+ return n$3 ? r$2.toLowerCase() : r$2;
1408
243
  };
1409
- return r$2.replace(y$1, (function(t$2, r$3) {
1410
- return r$3 || function(t$3) {
244
+ return r$1.replace(y, (function(t$2, r$2) {
245
+ return r$2 || function(t$3) {
1411
246
  switch (t$3) {
1412
- case "YY": return String(e$2.$y).slice(-2);
1413
- case "YYYY": return b$2.s(e$2.$y, 4, "0");
247
+ case "YY": return String(e$1.$y).slice(-2);
248
+ case "YYYY": return b.s(e$1.$y, 4, "0");
1414
249
  case "M": return a$2 + 1;
1415
- case "MM": return b$2.s(a$2 + 1, 2, "0");
1416
- case "MMM": return h$3(n$2.monthsShort, a$2, c$3, 3);
1417
- case "MMMM": return h$3(c$3, a$2);
1418
- case "D": return e$2.$D;
1419
- case "DD": return b$2.s(e$2.$D, 2, "0");
1420
- case "d": return String(e$2.$W);
1421
- case "dd": return h$3(n$2.weekdaysMin, e$2.$W, o$3, 2);
1422
- case "ddd": return h$3(n$2.weekdaysShort, e$2.$W, o$3, 3);
1423
- case "dddd": return o$3[e$2.$W];
250
+ case "MM": return b.s(a$2 + 1, 2, "0");
251
+ case "MMM": return h$2(n$2.monthsShort, a$2, c$2, 3);
252
+ case "MMMM": return h$2(c$2, a$2);
253
+ case "D": return e$1.$D;
254
+ case "DD": return b.s(e$1.$D, 2, "0");
255
+ case "d": return String(e$1.$W);
256
+ case "dd": return h$2(n$2.weekdaysMin, e$1.$W, o$2, 2);
257
+ case "ddd": return h$2(n$2.weekdaysShort, e$1.$W, o$2, 3);
258
+ case "dddd": return o$2[e$1.$W];
1424
259
  case "H": return String(s$1);
1425
- case "HH": return b$2.s(s$1, 2, "0");
1426
- case "h": return d$3(1);
1427
- case "hh": return d$3(2);
1428
- case "a": return $$2(s$1, u$3, !0);
1429
- case "A": return $$2(s$1, u$3, !1);
1430
- case "m": return String(u$3);
1431
- case "mm": return b$2.s(u$3, 2, "0");
1432
- case "s": return String(e$2.$s);
1433
- case "ss": return b$2.s(e$2.$s, 2, "0");
1434
- case "SSS": return b$2.s(e$2.$ms, 3, "0");
260
+ case "HH": return b.s(s$1, 2, "0");
261
+ case "h": return d$1(1);
262
+ case "hh": return d$1(2);
263
+ case "a": return $$2(s$1, u$2, !0);
264
+ case "A": return $$2(s$1, u$2, !1);
265
+ case "m": return String(u$2);
266
+ case "mm": return b.s(u$2, 2, "0");
267
+ case "s": return String(e$1.$s);
268
+ case "ss": return b.s(e$1.$s, 2, "0");
269
+ case "SSS": return b.s(e$1.$ms, 3, "0");
1435
270
  case "Z": return i$2;
1436
271
  }
1437
272
  return null;
1438
273
  }(t$2) || i$2.replace(":", "");
1439
274
  }));
1440
- }, m$2.utcOffset = function() {
275
+ }, m$1.utcOffset = function() {
1441
276
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1442
- }, m$2.diff = function(r$2, d$3, l$2) {
1443
- var $$2, y$2 = this, M$3 = b$2.p(d$3), m$3 = O$1(r$2), v$2 = (m$3.utcOffset() - this.utcOffset()) * e$1, g$3 = this - m$3, D$2 = function() {
1444
- return b$2.m(y$2, m$3);
277
+ }, m$1.diff = function(r$1, d$1, l$1) {
278
+ var $$2, y$1 = this, M$2 = b.p(d$1), m$2 = O(r$1), v$1 = (m$2.utcOffset() - this.utcOffset()) * e, g$1 = this - m$2, D$1 = function() {
279
+ return b.m(y$1, m$2);
1445
280
  };
1446
- switch (M$3) {
1447
- case h$2:
1448
- $$2 = D$2() / 12;
281
+ switch (M$2) {
282
+ case h$1:
283
+ $$2 = D$1() / 12;
1449
284
  break;
1450
- case c$2:
1451
- $$2 = D$2();
285
+ case c$1:
286
+ $$2 = D$1();
1452
287
  break;
1453
- case f$2:
1454
- $$2 = D$2() / 3;
288
+ case f:
289
+ $$2 = D$1() / 3;
1455
290
  break;
1456
- case o$2:
1457
- $$2 = (g$3 - v$2) / 6048e5;
291
+ case o$1:
292
+ $$2 = (g$1 - v$1) / 6048e5;
1458
293
  break;
1459
294
  case a$1:
1460
- $$2 = (g$3 - v$2) / 864e5;
295
+ $$2 = (g$1 - v$1) / 864e5;
1461
296
  break;
1462
- case u$2:
1463
- $$2 = g$3 / n$1;
297
+ case u$1:
298
+ $$2 = g$1 / n$1;
1464
299
  break;
1465
300
  case s:
1466
- $$2 = g$3 / e$1;
301
+ $$2 = g$1 / e;
1467
302
  break;
1468
303
  case i$1:
1469
- $$2 = g$3 / t;
304
+ $$2 = g$1 / t;
1470
305
  break;
1471
- default: $$2 = g$3;
1472
- }
1473
- return l$2 ? $$2 : b$2.a($$2);
1474
- }, m$2.daysInMonth = function() {
1475
- return this.endOf(c$2).$D;
1476
- }, m$2.$locale = function() {
1477
- return D$1[this.$L];
1478
- }, m$2.locale = function(t$1, e$2) {
306
+ default: $$2 = g$1;
307
+ }
308
+ return l$1 ? $$2 : b.a($$2);
309
+ }, m$1.daysInMonth = function() {
310
+ return this.endOf(c$1).$D;
311
+ }, m$1.$locale = function() {
312
+ return D[this.$L];
313
+ }, m$1.locale = function(t$1, e$1) {
1479
314
  if (!t$1) return this.$L;
1480
- var n$2 = this.clone(), r$2 = w$2(t$1, e$2, !0);
1481
- return r$2 && (n$2.$L = r$2), n$2;
1482
- }, m$2.clone = function() {
1483
- return b$2.w(this.$d, this);
1484
- }, m$2.toDate = function() {
315
+ var n$2 = this.clone(), r$1 = w(t$1, e$1, !0);
316
+ return r$1 && (n$2.$L = r$1), n$2;
317
+ }, m$1.clone = function() {
318
+ return b.w(this.$d, this);
319
+ }, m$1.toDate = function() {
1485
320
  return new Date(this.valueOf());
1486
- }, m$2.toJSON = function() {
321
+ }, m$1.toJSON = function() {
1487
322
  return this.isValid() ? this.toISOString() : null;
1488
- }, m$2.toISOString = function() {
323
+ }, m$1.toISOString = function() {
1489
324
  return this.$d.toISOString();
1490
- }, m$2.toString = function() {
325
+ }, m$1.toString = function() {
1491
326
  return this.$d.toUTCString();
1492
- }, M$2;
1493
- }(), k$2 = _$3.prototype;
1494
- return O$1.prototype = k$2, [
1495
- ["$ms", r$1],
327
+ }, M$1;
328
+ }(), k = _$1.prototype;
329
+ return O.prototype = k, [
330
+ ["$ms", r],
1496
331
  ["$s", i$1],
1497
332
  ["$m", s],
1498
- ["$H", u$2],
333
+ ["$H", u$1],
1499
334
  ["$W", a$1],
1500
- ["$M", c$2],
1501
- ["$y", h$2],
1502
- ["$D", d$2]
335
+ ["$M", c$1],
336
+ ["$y", h$1],
337
+ ["$D", d]
1503
338
  ].forEach((function(t$1) {
1504
- k$2[t$1[1]] = function(e$2) {
1505
- return this.$g(e$2, t$1[0], t$1[1]);
339
+ k[t$1[1]] = function(e$1) {
340
+ return this.$g(e$1, t$1[0], t$1[1]);
1506
341
  };
1507
- })), O$1.extend = function(t$1, e$2) {
1508
- return t$1.$i || (t$1(e$2, _$3, O$1), t$1.$i = !0), O$1;
1509
- }, O$1.locale = w$2, O$1.isDayjs = S$1, O$1.unix = function(t$1) {
1510
- return O$1(1e3 * t$1);
1511
- }, O$1.en = D$1[g$2], O$1.Ls = D$1, O$1.p = {}, O$1;
342
+ })), O.extend = function(t$1, e$1) {
343
+ return t$1.$i || (t$1(e$1, _$1, O), t$1.$i = !0), O;
344
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t$1) {
345
+ return O(1e3 * t$1);
346
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
1512
347
  }));
1513
348
  }) });
1514
349
 
@@ -1672,20 +507,20 @@ const parseExpression = (expression) => {
1672
507
  if (expression instanceof ChildProcess || Object.prototype.toString.call(expression) === "[object Promise]") throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");
1673
508
  throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
1674
509
  };
1675
- const getSubprocessResult = ({ stdout: stdout$1 }) => {
1676
- if (typeof stdout$1 === "string") return stdout$1;
1677
- if (isUint8Array(stdout$1)) return uint8ArrayToString(stdout$1);
1678
- if (stdout$1 === void 0) throw new TypeError("Missing result.stdout in template expression. This is probably due to the previous subprocess' \"stdout\" option.");
1679
- throw new TypeError(`Unexpected "${typeof stdout$1}" stdout in template expression`);
510
+ const getSubprocessResult = ({ stdout }) => {
511
+ if (typeof stdout === "string") return stdout;
512
+ if (isUint8Array(stdout)) return uint8ArrayToString(stdout);
513
+ if (stdout === void 0) throw new TypeError("Missing result.stdout in template expression. This is probably due to the previous subprocess' \"stdout\" option.");
514
+ throw new TypeError(`Unexpected "${typeof stdout}" stdout in template expression`);
1680
515
  };
1681
516
 
1682
517
  //#endregion
1683
518
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/standard-stream.js
1684
519
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
1685
520
  const STANDARD_STREAMS = [
1686
- g.stdin,
1687
- g.stdout,
1688
- g.stderr
521
+ process$1.stdin,
522
+ process$1.stdout,
523
+ process$1.stderr
1689
524
  ];
1690
525
  const STANDARD_STREAMS_ALIASES = [
1691
526
  "stdin",
@@ -1810,10 +645,10 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
1810
645
  //#endregion
1811
646
  //#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
1812
647
  function isUnicodeSupported() {
1813
- const { env: env$1 } = g;
1814
- const { TERM, TERM_PROGRAM } = env$1;
1815
- if (g.platform !== "win32") return TERM !== "linux";
1816
- return Boolean(env$1.WT_SESSION) || Boolean(env$1.TERMINUS_SUBLIME) || env$1.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env$1.TERMINAL_EMULATOR === "JetBrains-JediTerm";
648
+ const { env } = process$1;
649
+ const { TERM, TERM_PROGRAM } = env;
650
+ if (process$1.platform !== "win32") return TERM !== "linux";
651
+ return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1817
652
  }
1818
653
 
1819
654
  //#endregion
@@ -2353,11 +1188,11 @@ var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@
2353
1188
  var gid = stat.gid;
2354
1189
  var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
2355
1190
  var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
2356
- var u$2 = parseInt("100", 8);
2357
- var g$2 = parseInt("010", 8);
2358
- var o$2 = parseInt("001", 8);
2359
- var ug = u$2 | g$2;
2360
- return mod & o$2 || mod & g$2 && gid === myGid || mod & u$2 && uid === myUid || mod & ug && myUid === 0;
1191
+ var u$1 = parseInt("100", 8);
1192
+ var g = parseInt("010", 8);
1193
+ var o$1 = parseInt("001", 8);
1194
+ var ug = u$1 | g;
1195
+ return mod & o$1 || mod & g && gid === myGid || mod & u$1 && uid === myUid || mod & ug && myUid === 0;
2361
1196
  }
2362
1197
  }) });
2363
1198
 
@@ -2496,7 +1331,7 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
2496
1331
  const which = require_which();
2497
1332
  const getPathKey = require_path_key();
2498
1333
  function resolveCommandAttempt(parsed, withoutPathExt) {
2499
- const env$1 = parsed.options.env || process.env;
1334
+ const env = parsed.options.env || process.env;
2500
1335
  const cwd = process.cwd();
2501
1336
  const hasCustomCwd = parsed.options.cwd != null;
2502
1337
  const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
@@ -2506,10 +1341,10 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
2506
1341
  let resolved;
2507
1342
  try {
2508
1343
  resolved = which.sync(parsed.command, {
2509
- path: env$1[getPathKey({ env: env$1 })],
1344
+ path: env[getPathKey({ env })],
2510
1345
  pathExt: withoutPathExt ? path$6.delimiter : void 0
2511
1346
  });
2512
- } catch (e$1) {} finally {
1347
+ } catch (e) {} finally {
2513
1348
  if (shouldSwitchCwd) process.chdir(cwd);
2514
1349
  }
2515
1350
  if (resolved) resolved = path$6.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
@@ -2575,7 +1410,7 @@ var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
2575
1410
  fd = fs$2.openSync(command, "r");
2576
1411
  fs$2.readSync(fd, buffer, 0, size, 0);
2577
1412
  fs$2.closeSync(fd);
2578
- } catch (e$1) {}
1413
+ } catch (e) {}
2579
1414
  return shebangCommand(buffer.toString());
2580
1415
  }
2581
1416
  module.exports = readShebang$1;
@@ -2712,9 +1547,9 @@ var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
2712
1547
  //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
2713
1548
  var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
2714
1549
  function pathKey(options = {}) {
2715
- const { env: env$1 = process.env, platform: platform$1 = process.platform } = options;
1550
+ const { env = process.env, platform: platform$1 = process.platform } = options;
2716
1551
  if (platform$1 !== "win32") return "PATH";
2717
- return Object.keys(env$1).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1552
+ return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
2718
1553
  }
2719
1554
 
2720
1555
  //#endregion
@@ -2738,7 +1573,7 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
2738
1573
 
2739
1574
  //#endregion
2740
1575
  //#region ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
2741
- const npmRunPath = ({ cwd = g.cwd(), path: pathOption = g.env[pathKey()], preferLocal = true, execPath: execPath$1 = g.execPath, addExecPath = true } = {}) => {
1576
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath: execPath$1 = process$1.execPath, addExecPath = true } = {}) => {
2742
1577
  const cwdPath = path.resolve(toPath(cwd));
2743
1578
  const result = [];
2744
1579
  const pathParts = pathOption.split(path.delimiter);
@@ -2756,12 +1591,12 @@ const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
2756
1591
  const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
2757
1592
  if (!pathParts.includes(pathPart)) result.push(pathPart);
2758
1593
  };
2759
- const npmRunPathEnv = ({ env: env$1 = g.env,...options } = {}) => {
2760
- env$1 = { ...env$1 };
2761
- const pathName = pathKey({ env: env$1 });
2762
- options.path = env$1[pathName];
2763
- env$1[pathName] = npmRunPath(options);
2764
- return env$1;
1594
+ const npmRunPathEnv = ({ env = process$1.env,...options } = {}) => {
1595
+ env = { ...env };
1596
+ const pathName = pathKey({ env });
1597
+ options.path = env[pathName];
1598
+ env[pathName] = npmRunPath(options);
1599
+ return env;
2765
1600
  };
2766
1601
 
2767
1602
  //#endregion
@@ -3365,15 +2200,15 @@ const getInvalidStdioOptionMessage = (fdNumber, fdName, options, isWritable) =>
3365
2200
  return `The "${optionName}: ${serializeOptionValue(optionValue)}" option is incompatible with using "${getOptionName(isWritable)}: ${serializeOptionValue(fdName)}".
3366
2201
  Please set this option with "pipe" instead.`;
3367
2202
  };
3368
- const getInvalidStdioOption = (fdNumber, { stdin: stdin$1, stdout: stdout$1, stderr, stdio }) => {
2203
+ const getInvalidStdioOption = (fdNumber, { stdin, stdout, stderr, stdio }) => {
3369
2204
  const usedDescriptor = getUsedDescriptor(fdNumber);
3370
- if (usedDescriptor === 0 && stdin$1 !== void 0) return {
2205
+ if (usedDescriptor === 0 && stdin !== void 0) return {
3371
2206
  optionName: "stdin",
3372
- optionValue: stdin$1
2207
+ optionValue: stdin
3373
2208
  };
3374
- if (usedDescriptor === 1 && stdout$1 !== void 0) return {
2209
+ if (usedDescriptor === 1 && stdout !== void 0) return {
3375
2210
  optionName: "stdout",
3376
- optionValue: stdout$1
2211
+ optionValue: stdout
3377
2212
  };
3378
2213
  if (usedDescriptor === 2 && stderr !== void 0) return {
3379
2214
  optionName: "stderr",
@@ -3891,7 +2726,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
3891
2726
  };
3892
2727
  const getDefaultCwd = () => {
3893
2728
  try {
3894
- return g.cwd();
2729
+ return process$1.cwd();
3895
2730
  } catch (error) {
3896
2731
  error.message = `The current directory does not exist.\n${error.message}`;
3897
2732
  throw error;
@@ -3926,7 +2761,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
3926
2761
  options.killSignal = normalizeKillSignal(options.killSignal);
3927
2762
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
3928
2763
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
3929
- if (g.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
2764
+ if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
3930
2765
  return {
3931
2766
  file,
3932
2767
  commandArguments,
@@ -3952,18 +2787,18 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
3952
2787
  serialization
3953
2788
  });
3954
2789
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
3955
- const env$1 = extendEnv ? {
3956
- ...g.env,
2790
+ const env = extendEnv ? {
2791
+ ...process$1.env,
3957
2792
  ...envOption
3958
2793
  } : envOption;
3959
2794
  if (preferLocal || node) return npmRunPathEnv({
3960
- env: env$1,
2795
+ env,
3961
2796
  cwd: localDirectory,
3962
2797
  execPath: nodePath,
3963
2798
  preferLocal,
3964
2799
  addExecPath: node
3965
2800
  });
3966
- return env$1;
2801
+ return env;
3967
2802
  };
3968
2803
 
3969
2804
  //#endregion
@@ -4006,15 +2841,15 @@ var c = class {
4006
2841
  #n;
4007
2842
  #r = !1;
4008
2843
  #e = void 0;
4009
- constructor(e$1, t) {
4010
- this.#t = e$1, this.#n = t;
2844
+ constructor(e, t) {
2845
+ this.#t = e, this.#n = t;
4011
2846
  }
4012
2847
  next() {
4013
- const e$1 = () => this.#s();
4014
- return this.#e = this.#e ? this.#e.then(e$1, e$1) : e$1(), this.#e;
2848
+ const e = () => this.#s();
2849
+ return this.#e = this.#e ? this.#e.then(e, e) : e(), this.#e;
4015
2850
  }
4016
- return(e$1) {
4017
- const t = () => this.#i(e$1);
2851
+ return(e) {
2852
+ const t = () => this.#i(e);
4018
2853
  return this.#e ? this.#e.then(t, t) : t();
4019
2854
  }
4020
2855
  async #s() {
@@ -4022,29 +2857,29 @@ var c = class {
4022
2857
  done: !0,
4023
2858
  value: void 0
4024
2859
  };
4025
- let e$1;
2860
+ let e;
4026
2861
  try {
4027
- e$1 = await this.#t.read();
2862
+ e = await this.#t.read();
4028
2863
  } catch (t) {
4029
2864
  throw this.#e = void 0, this.#r = !0, this.#t.releaseLock(), t;
4030
2865
  }
4031
- return e$1.done && (this.#e = void 0, this.#r = !0, this.#t.releaseLock()), e$1;
2866
+ return e.done && (this.#e = void 0, this.#r = !0, this.#t.releaseLock()), e;
4032
2867
  }
4033
- async #i(e$1) {
2868
+ async #i(e) {
4034
2869
  if (this.#r) return {
4035
2870
  done: !0,
4036
- value: e$1
2871
+ value: e
4037
2872
  };
4038
2873
  if (this.#r = !0, !this.#n) {
4039
- const t = this.#t.cancel(e$1);
2874
+ const t = this.#t.cancel(e);
4040
2875
  return this.#t.releaseLock(), await t, {
4041
2876
  done: !0,
4042
- value: e$1
2877
+ value: e
4043
2878
  };
4044
2879
  }
4045
2880
  return this.#t.releaseLock(), {
4046
2881
  done: !0,
4047
- value: e$1
2882
+ value: e
4048
2883
  };
4049
2884
  }
4050
2885
  };
@@ -4053,8 +2888,8 @@ function i() {
4053
2888
  return this[n].next();
4054
2889
  }
4055
2890
  Object.defineProperty(i, "name", { value: "next" });
4056
- function o(r$1) {
4057
- return this[n].return(r$1);
2891
+ function o(r) {
2892
+ return this[n].return(r);
4058
2893
  }
4059
2894
  Object.defineProperty(o, "name", { value: "return" });
4060
2895
  const u = Object.create(a, {
@@ -4071,8 +2906,8 @@ const u = Object.create(a, {
4071
2906
  value: o
4072
2907
  }
4073
2908
  });
4074
- function h({ preventCancel: r$1 = !1 } = {}) {
4075
- const t = new c(this.getReader(), r$1), s = Object.create(u);
2909
+ function h({ preventCancel: r = !1 } = {}) {
2910
+ const t = new c(this.getReader(), r), s = Object.create(u);
4076
2911
  return s[n] = t, s;
4077
2912
  }
4078
2913
 
@@ -4941,12 +3776,12 @@ const guessStreamDirection = {
4941
3776
  }
4942
3777
  };
4943
3778
  const getStandardStreamDirection = (value) => {
4944
- if ([0, g.stdin].includes(value)) return "input";
3779
+ if ([0, process$1.stdin].includes(value)) return "input";
4945
3780
  if ([
4946
3781
  1,
4947
3782
  2,
4948
- g.stdout,
4949
- g.stderr
3783
+ process$1.stdout,
3784
+ process$1.stderr
4950
3785
  ].includes(value)) return "output";
4951
3786
  };
4952
3787
  const DEFAULT_DIRECTION = "output";
@@ -4971,7 +3806,7 @@ const getStdioArray = (stdio, options) => {
4971
3806
  ];
4972
3807
  if (!Array.isArray(stdio)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
4973
3808
  const length = Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length);
4974
- return Array.from({ length }, (_$3, fdNumber) => stdio[fdNumber]);
3809
+ return Array.from({ length }, (_$1, fdNumber) => stdio[fdNumber]);
4975
3810
  };
4976
3811
  const hasAlias = (options) => STANDARD_STREAMS_ALIASES.some((alias) => options[alias] !== void 0);
4977
3812
  const addDefaultValue = (stdioOption, fdNumber) => {
@@ -5704,14 +4539,14 @@ const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
5704
4539
 
5705
4540
  //#endregion
5706
4541
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-sync.js
5707
- const getAllSync = ([, stdout$1, stderr], options) => {
4542
+ const getAllSync = ([, stdout, stderr], options) => {
5708
4543
  if (!options.all) return;
5709
- if (stdout$1 === void 0) return stderr;
5710
- if (stderr === void 0) return stdout$1;
5711
- if (Array.isArray(stdout$1)) return Array.isArray(stderr) ? [...stdout$1, ...stderr] : [...stdout$1, stripNewline(stderr, options, "all")];
5712
- if (Array.isArray(stderr)) return [stripNewline(stdout$1, options, "all"), ...stderr];
5713
- if (isUint8Array(stdout$1) && isUint8Array(stderr)) return concatUint8Arrays([stdout$1, stderr]);
5714
- return `${stdout$1}${stderr}`;
4544
+ if (stdout === void 0) return stderr;
4545
+ if (stderr === void 0) return stdout;
4546
+ if (Array.isArray(stdout)) return Array.isArray(stderr) ? [...stdout, ...stderr] : [...stdout, stripNewline(stderr, options, "all")];
4547
+ if (Array.isArray(stderr)) return [stripNewline(stdout, options, "all"), ...stderr];
4548
+ if (isUint8Array(stdout) && isUint8Array(stderr)) return concatUint8Arrays([stdout, stderr]);
4549
+ return `${stdout}${stderr}`;
5715
4550
  };
5716
4551
 
5717
4552
  //#endregion
@@ -6010,9 +4845,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
6010
4845
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
6011
4846
  };
6012
4847
  const getIpcExport = () => {
6013
- const anyProcess = g;
4848
+ const anyProcess = process$1;
6014
4849
  const isSubprocess = true;
6015
- const ipc = g.channel !== void 0;
4850
+ const ipc = process$1.channel !== void 0;
6016
4851
  return {
6017
4852
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
6018
4853
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -6069,20 +4904,20 @@ const handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, opt
6069
4904
  };
6070
4905
  };
6071
4906
  const createDummyStreams = (subprocess, fileDescriptors) => {
6072
- const stdin$1 = createDummyStream();
6073
- const stdout$1 = createDummyStream();
4907
+ const stdin = createDummyStream();
4908
+ const stdout = createDummyStream();
6074
4909
  const stderr = createDummyStream();
6075
4910
  const extraStdio = Array.from({ length: fileDescriptors.length - 3 }, createDummyStream);
6076
4911
  const all = createDummyStream();
6077
4912
  const stdio = [
6078
- stdin$1,
6079
- stdout$1,
4913
+ stdin,
4914
+ stdout,
6080
4915
  stderr,
6081
4916
  ...extraStdio
6082
4917
  ];
6083
4918
  Object.assign(subprocess, {
6084
- stdin: stdin$1,
6085
- stdout: stdout$1,
4919
+ stdin,
4920
+ stdout,
6086
4921
  stderr,
6087
4922
  all,
6088
4923
  stdio
@@ -6421,7 +5256,7 @@ if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SI
6421
5256
 
6422
5257
  //#endregion
6423
5258
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
6424
- const processOk = (process$2) => !!process$2 && typeof process$2 === "object" && typeof process$2.removeListener === "function" && typeof process$2.emit === "function" && typeof process$2.reallyExit === "function" && typeof process$2.listeners === "function" && typeof process$2.kill === "function" && typeof process$2.pid === "number" && typeof process$2.on === "function";
5259
+ const processOk = (process$3) => !!process$3 && typeof process$3 === "object" && typeof process$3.removeListener === "function" && typeof process$3.emit === "function" && typeof process$3.reallyExit === "function" && typeof process$3.listeners === "function" && typeof process$3.kill === "function" && typeof process$3.pid === "number" && typeof process$3.on === "function";
6425
5260
  const kExitEmitter = Symbol.for("signal-exit emitter");
6426
5261
  const global$1 = globalThis;
6427
5262
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -6489,7 +5324,7 @@ var SignalExitFallback = class extends SignalExitBase {
6489
5324
  };
6490
5325
  var SignalExit = class extends SignalExitBase {
6491
5326
  /* c8 ignore start */
6492
- #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
5327
+ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
6493
5328
  /* c8 ignore stop */
6494
5329
  #emitter = new Emitter();
6495
5330
  #process;
@@ -6497,15 +5332,15 @@ var SignalExit = class extends SignalExitBase {
6497
5332
  #originalProcessReallyExit;
6498
5333
  #sigListeners = {};
6499
5334
  #loaded = false;
6500
- constructor(process$2) {
5335
+ constructor(process$3) {
6501
5336
  super();
6502
- this.#process = process$2;
5337
+ this.#process = process$3;
6503
5338
  this.#sigListeners = {};
6504
5339
  for (const sig of signals) this.#sigListeners[sig] = () => {
6505
5340
  const listeners = this.#process.listeners(sig);
6506
5341
  let { count: count$1 } = this.#emitter;
6507
5342
  /* c8 ignore start */
6508
- const p$1 = process$2;
5343
+ const p$1 = process$3;
6509
5344
  if (typeof p$1.__signal_exit_emitter__ === "object" && typeof p$1.__signal_exit_emitter__.count === "number") count$1 += p$1.__signal_exit_emitter__.count;
6510
5345
  /* c8 ignore stop */
6511
5346
  if (listeners.length === count$1) {
@@ -6513,11 +5348,11 @@ var SignalExit = class extends SignalExitBase {
6513
5348
  const ret = this.#emitter.emit("exit", null, sig);
6514
5349
  /* c8 ignore start */
6515
5350
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
6516
- if (!ret) process$2.kill(process$2.pid, s);
5351
+ if (!ret) process$3.kill(process$3.pid, s);
6517
5352
  }
6518
5353
  };
6519
- this.#originalProcessReallyExit = process$2.reallyExit;
6520
- this.#originalProcessEmit = process$2.emit;
5354
+ this.#originalProcessReallyExit = process$3.reallyExit;
5355
+ this.#originalProcessEmit = process$3.emit;
6521
5356
  }
6522
5357
  onExit(cb, opts) {
6523
5358
  /* c8 ignore start */
@@ -6538,7 +5373,7 @@ var SignalExit = class extends SignalExitBase {
6538
5373
  for (const sig of signals) try {
6539
5374
  const fn = this.#sigListeners[sig];
6540
5375
  if (fn) this.#process.on(sig, fn);
6541
- } catch (_$3) {}
5376
+ } catch (_$1) {}
6542
5377
  this.#process.emit = (ev, ...a$1) => {
6543
5378
  return this.#processEmit(ev, ...a$1);
6544
5379
  };
@@ -6556,7 +5391,7 @@ var SignalExit = class extends SignalExitBase {
6556
5391
  /* c8 ignore stop */
6557
5392
  try {
6558
5393
  this.#process.removeListener(sig, listener);
6559
- } catch (_$3) {}
5394
+ } catch (_$1) {}
6560
5395
  /* c8 ignore stop */
6561
5396
  });
6562
5397
  this.#process.emit = this.#originalProcessEmit;
@@ -6584,8 +5419,8 @@ var SignalExit = class extends SignalExitBase {
6584
5419
  } else return og.call(this.#process, ev, ...args);
6585
5420
  }
6586
5421
  };
6587
- const process$1 = globalThis.process;
6588
- const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
5422
+ const process$2 = globalThis.process;
5423
+ const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
6589
5424
 
6590
5425
  //#endregion
6591
5426
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cleanup.js
@@ -7054,7 +5889,7 @@ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, max
7054
5889
 
7055
5890
  //#endregion
7056
5891
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-async.js
7057
- const makeAllStream = ({ stdout: stdout$1, stderr }, { all }) => all && (stdout$1 || stderr) ? mergeStreams([stdout$1, stderr].filter(Boolean)) : void 0;
5892
+ const makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : void 0;
7058
5893
  const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => waitForSubprocessStream({
7059
5894
  ...getAllStream(subprocess, buffer),
7060
5895
  fdNumber: "all",
@@ -7066,7 +5901,7 @@ const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stri
7066
5901
  verboseInfo,
7067
5902
  streamInfo
7068
5903
  });
7069
- const getAllStream = ({ stdout: stdout$1, stderr, all }, [, bufferStdout, bufferStderr]) => {
5904
+ const getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) => {
7070
5905
  const buffer = bufferStdout || bufferStderr;
7071
5906
  if (!buffer) return {
7072
5907
  stream: all,
@@ -7077,7 +5912,7 @@ const getAllStream = ({ stdout: stdout$1, stderr, all }, [, bufferStdout, buffer
7077
5912
  buffer
7078
5913
  };
7079
5914
  if (!bufferStderr) return {
7080
- stream: stdout$1,
5915
+ stream: stdout,
7081
5916
  buffer
7082
5917
  };
7083
5918
  return {
@@ -7085,7 +5920,7 @@ const getAllStream = ({ stdout: stdout$1, stderr, all }, [, bufferStdout, buffer
7085
5920
  buffer
7086
5921
  };
7087
5922
  };
7088
- const getAllMixed = ({ all, stdout: stdout$1, stderr }) => all && stdout$1 && stderr && stdout$1.readableObjectMode !== stderr.readableObjectMode;
5923
+ const getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
7089
5924
 
7090
5925
  //#endregion
7091
5926
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/ipc.js
@@ -8047,8 +6882,8 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
8047
6882
  type: "class",
8048
6883
  value: "[A-Za-z0-9_\\-]",
8049
6884
  description: "[A-Za-z0-9_\\-]"
8050
- }, peg$c96 = function(d$2) {
8051
- return d$2.join("");
6885
+ }, peg$c96 = function(d) {
6886
+ return d.join("");
8052
6887
  }, peg$c97 = "\\\"", peg$c98 = {
8053
6888
  type: "literal",
8054
6889
  value: "\\\"",
@@ -8160,9 +6995,9 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
8160
6995
  function peg$buildException(message, expected, pos) {
8161
6996
  function cleanupExpected(expected$1) {
8162
6997
  var i$1 = 1;
8163
- expected$1.sort(function(a$1, b$2) {
8164
- if (a$1.description < b$2.description) return -1;
8165
- else if (a$1.description > b$2.description) return 1;
6998
+ expected$1.sort(function(a$1, b) {
6999
+ if (a$1.description < b.description) return -1;
7000
+ else if (a$1.description > b.description) return 1;
8166
7001
  else return 0;
8167
7002
  });
8168
7003
  while (i$1 < expected$1.length) if (expected$1[i$1 - 1] === expected$1[i$1]) expected$1.splice(i$1, 1);
@@ -11652,8 +10487,8 @@ var require_XDGAppPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
11652
10487
  meta.pkgMainFilename(),
11653
10488
  meta.mainFilename()
11654
10489
  ];
11655
- var name = path$8.parse(((_c = namePriorityList.find(function(e$1) {
11656
- return isString(e$1);
10490
+ var name = path$8.parse(((_c = namePriorityList.find(function(e) {
10491
+ return isString(e);
11657
10492
  })) !== null && _c !== void 0 ? _c : "$eval") + suffix).name;
11658
10493
  XDGAppPaths.$name = function $name() {
11659
10494
  return name;
@@ -11711,7 +10546,7 @@ var require_XDG = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-por
11711
10546
  };
11712
10547
  exports.__esModule = true;
11713
10548
  function Adapt$1(adapter_) {
11714
- var env$1 = adapter_.env, osPaths = adapter_.osPaths, path$8 = adapter_.path;
10549
+ var env = adapter_.env, osPaths = adapter_.osPaths, path$8 = adapter_.path;
11715
10550
  var isMacOS = /^darwin$/i.test(adapter_.process.platform);
11716
10551
  var isWinOS = /^win/i.test(adapter_.process.platform);
11717
10552
  function baseDir() {
@@ -11722,23 +10557,23 @@ var require_XDG = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-por
11722
10557
  }
11723
10558
  var linux = function() {
11724
10559
  var cache = function() {
11725
- return valOrPath(env$1.get("XDG_CACHE_HOME"), [baseDir(), ".cache"]);
10560
+ return valOrPath(env.get("XDG_CACHE_HOME"), [baseDir(), ".cache"]);
11726
10561
  };
11727
10562
  var config = function() {
11728
- return valOrPath(env$1.get("XDG_CONFIG_HOME"), [baseDir(), ".config"]);
10563
+ return valOrPath(env.get("XDG_CONFIG_HOME"), [baseDir(), ".config"]);
11729
10564
  };
11730
10565
  var data = function() {
11731
- return valOrPath(env$1.get("XDG_DATA_HOME"), [
10566
+ return valOrPath(env.get("XDG_DATA_HOME"), [
11732
10567
  baseDir(),
11733
10568
  ".local",
11734
10569
  "share"
11735
10570
  ]);
11736
10571
  };
11737
10572
  var runtime = function() {
11738
- return env$1.get("XDG_RUNTIME_DIR") || void 0;
10573
+ return env.get("XDG_RUNTIME_DIR") || void 0;
11739
10574
  };
11740
10575
  var state = function() {
11741
- return valOrPath(env$1.get("XDG_STATE_HOME"), [
10576
+ return valOrPath(env.get("XDG_STATE_HOME"), [
11742
10577
  baseDir(),
11743
10578
  ".local",
11744
10579
  "state"
@@ -11754,31 +10589,31 @@ var require_XDG = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-por
11754
10589
  };
11755
10590
  var macos = function() {
11756
10591
  var cache = function() {
11757
- return valOrPath(env$1.get("XDG_CACHE_HOME"), [
10592
+ return valOrPath(env.get("XDG_CACHE_HOME"), [
11758
10593
  baseDir(),
11759
10594
  "Library",
11760
10595
  "Caches"
11761
10596
  ]);
11762
10597
  };
11763
10598
  var config = function() {
11764
- return valOrPath(env$1.get("XDG_CONFIG_HOME"), [
10599
+ return valOrPath(env.get("XDG_CONFIG_HOME"), [
11765
10600
  baseDir(),
11766
10601
  "Library",
11767
10602
  "Preferences"
11768
10603
  ]);
11769
10604
  };
11770
10605
  var data = function() {
11771
- return valOrPath(env$1.get("XDG_DATA_HOME"), [
10606
+ return valOrPath(env.get("XDG_DATA_HOME"), [
11772
10607
  baseDir(),
11773
10608
  "Library",
11774
10609
  "Application Support"
11775
10610
  ]);
11776
10611
  };
11777
10612
  var runtime = function() {
11778
- return env$1.get("XDG_RUNTIME_DIR") || void 0;
10613
+ return env.get("XDG_RUNTIME_DIR") || void 0;
11779
10614
  };
11780
10615
  var state = function() {
11781
- return valOrPath(env$1.get("XDG_STATE_HOME"), [
10616
+ return valOrPath(env.get("XDG_STATE_HOME"), [
11782
10617
  baseDir(),
11783
10618
  "Library",
11784
10619
  "State"
@@ -11794,33 +10629,33 @@ var require_XDG = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-por
11794
10629
  };
11795
10630
  var windows = function() {
11796
10631
  function appData() {
11797
- return valOrPath(env$1.get("APPDATA"), [
10632
+ return valOrPath(env.get("APPDATA"), [
11798
10633
  baseDir(),
11799
10634
  "AppData",
11800
10635
  "Roaming"
11801
10636
  ]);
11802
10637
  }
11803
10638
  function localAppData() {
11804
- return valOrPath(env$1.get("LOCALAPPDATA"), [
10639
+ return valOrPath(env.get("LOCALAPPDATA"), [
11805
10640
  baseDir(),
11806
10641
  "AppData",
11807
10642
  "Local"
11808
10643
  ]);
11809
10644
  }
11810
10645
  var cache = function() {
11811
- return valOrPath(env$1.get("XDG_CACHE_HOME"), [localAppData(), "xdg.cache"]);
10646
+ return valOrPath(env.get("XDG_CACHE_HOME"), [localAppData(), "xdg.cache"]);
11812
10647
  };
11813
10648
  var config = function() {
11814
- return valOrPath(env$1.get("XDG_CONFIG_HOME"), [appData(), "xdg.config"]);
10649
+ return valOrPath(env.get("XDG_CONFIG_HOME"), [appData(), "xdg.config"]);
11815
10650
  };
11816
10651
  var data = function() {
11817
- return valOrPath(env$1.get("XDG_DATA_HOME"), [appData(), "xdg.data"]);
10652
+ return valOrPath(env.get("XDG_DATA_HOME"), [appData(), "xdg.data"]);
11818
10653
  };
11819
10654
  var runtime = function() {
11820
- return env$1.get("XDG_RUNTIME_DIR") || void 0;
10655
+ return env.get("XDG_RUNTIME_DIR") || void 0;
11821
10656
  };
11822
10657
  var state = function() {
11823
- return valOrPath(env$1.get("XDG_STATE_HOME"), [localAppData(), "xdg.state"]);
10658
+ return valOrPath(env.get("XDG_STATE_HOME"), [localAppData(), "xdg.state"]);
11824
10659
  };
11825
10660
  return {
11826
10661
  cache,
@@ -11842,11 +10677,11 @@ var require_XDG = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-por
11842
10677
  XDG.runtime = extension.runtime;
11843
10678
  XDG.state = extension.state;
11844
10679
  XDG.configDirs = function configDirs() {
11845
- var pathList = env$1.get("XDG_CONFIG_DIRS");
10680
+ var pathList = env.get("XDG_CONFIG_DIRS");
11846
10681
  return __spreadArray$1([extension.config()], pathList ? pathList.split(path$8.delimiter) : []);
11847
10682
  };
11848
10683
  XDG.dataDirs = function dataDirs() {
11849
- var pathList = env$1.get("XDG_DATA_DIRS");
10684
+ var pathList = env.get("XDG_DATA_DIRS");
11850
10685
  return __spreadArray$1([extension.data()], pathList ? pathList.split(path$8.delimiter) : []);
11851
10686
  };
11852
10687
  return XDG;
@@ -11869,23 +10704,23 @@ var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-
11869
10704
  return !s;
11870
10705
  }
11871
10706
  function Adapt(adapter_) {
11872
- var env$1 = adapter_.env, os$2 = adapter_.os, path$8 = adapter_.path;
10707
+ var env = adapter_.env, os$2 = adapter_.os, path$8 = adapter_.path;
11873
10708
  var isWinOS = /^win/i.test(adapter_.process.platform);
11874
10709
  function normalizePath(path_) {
11875
10710
  return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
11876
10711
  }
11877
10712
  function home() {
11878
10713
  var posix = function() {
11879
- return normalizePath((typeof os$2.homedir === "function" ? os$2.homedir() : void 0) || env$1.get("HOME"));
10714
+ return normalizePath((typeof os$2.homedir === "function" ? os$2.homedir() : void 0) || env.get("HOME"));
11880
10715
  };
11881
10716
  var windows = function() {
11882
10717
  return normalizePath([
11883
10718
  typeof os$2.homedir === "function" ? os$2.homedir() : void 0,
11884
- env$1.get("USERPROFILE"),
11885
- env$1.get("HOME"),
11886
- env$1.get("HOMEDRIVE") || env$1.get("HOMEPATH") ? path$8.join(env$1.get("HOMEDRIVE") || "", env$1.get("HOMEPATH") || "") : void 0
11887
- ].find(function(v$1) {
11888
- return !isEmpty(v$1);
10719
+ env.get("USERPROFILE"),
10720
+ env.get("HOME"),
10721
+ env.get("HOMEDRIVE") || env.get("HOMEPATH") ? path$8.join(env.get("HOMEDRIVE") || "", env.get("HOMEPATH") || "") : void 0
10722
+ ].find(function(v) {
10723
+ return !isEmpty(v);
11889
10724
  }));
11890
10725
  };
11891
10726
  return isWinOS ? windows() : posix();
@@ -11897,25 +10732,25 @@ var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-
11897
10732
  function posix() {
11898
10733
  return normalizePath([
11899
10734
  typeof os$2.tmpdir === "function" ? os$2.tmpdir() : void 0,
11900
- env$1.get("TMPDIR"),
11901
- env$1.get("TEMP"),
11902
- env$1.get("TMP")
11903
- ].find(function(v$1) {
11904
- return !isEmpty(v$1);
10735
+ env.get("TMPDIR"),
10736
+ env.get("TEMP"),
10737
+ env.get("TMP")
10738
+ ].find(function(v) {
10739
+ return !isEmpty(v);
11905
10740
  })) || "/tmp";
11906
10741
  }
11907
10742
  function windows() {
11908
10743
  var fallback = "C:\\Temp";
11909
- var v$1 = [
10744
+ var v = [
11910
10745
  typeof os$2.tmpdir === "function" ? os$2.tmpdir : function() {},
11911
10746
  function() {
11912
- return env$1.get("TEMP");
10747
+ return env.get("TEMP");
11913
10748
  },
11914
10749
  function() {
11915
- return env$1.get("TMP");
10750
+ return env.get("TMP");
11916
10751
  },
11917
10752
  function() {
11918
- return joinPathToBase(env$1.get("LOCALAPPDATA"), ["Temp"]);
10753
+ return joinPathToBase(env.get("LOCALAPPDATA"), ["Temp"]);
11919
10754
  },
11920
10755
  function() {
11921
10756
  return joinPathToBase(home(), [
@@ -11925,21 +10760,21 @@ var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-
11925
10760
  ]);
11926
10761
  },
11927
10762
  function() {
11928
- return joinPathToBase(env$1.get("ALLUSERSPROFILE"), ["Temp"]);
10763
+ return joinPathToBase(env.get("ALLUSERSPROFILE"), ["Temp"]);
11929
10764
  },
11930
10765
  function() {
11931
- return joinPathToBase(env$1.get("SystemRoot"), ["Temp"]);
10766
+ return joinPathToBase(env.get("SystemRoot"), ["Temp"]);
11932
10767
  },
11933
10768
  function() {
11934
- return joinPathToBase(env$1.get("windir"), ["Temp"]);
10769
+ return joinPathToBase(env.get("windir"), ["Temp"]);
11935
10770
  },
11936
10771
  function() {
11937
- return joinPathToBase(env$1.get("SystemDrive"), ["\\", "Temp"]);
10772
+ return joinPathToBase(env.get("SystemDrive"), ["\\", "Temp"]);
11938
10773
  }
11939
- ].find(function(v$2) {
11940
- return v$2 && !isEmpty(v$2());
10774
+ ].find(function(v$1) {
10775
+ return v$1 && !isEmpty(v$1());
11941
10776
  });
11942
- return v$1 && normalizePath(v$1()) || fallback;
10777
+ return v && normalizePath(v()) || fallback;
11943
10778
  }
11944
10779
  return isWinOS ? windows() : posix();
11945
10780
  }
@@ -11961,31 +10796,31 @@ var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-
11961
10796
  //#endregion
11962
10797
  //#region ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js
11963
10798
  var require_node$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js": ((exports) => {
11964
- var __createBinding$2 = exports && exports.__createBinding || (Object.create ? (function(o$2, m$1, k$2, k2) {
11965
- if (k2 === void 0) k2 = k$2;
11966
- Object.defineProperty(o$2, k2, {
10799
+ var __createBinding$2 = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
10800
+ if (k2 === void 0) k2 = k;
10801
+ Object.defineProperty(o$1, k2, {
11967
10802
  enumerable: true,
11968
10803
  get: function() {
11969
- return m$1[k$2];
10804
+ return m[k];
11970
10805
  }
11971
10806
  });
11972
- }) : (function(o$2, m$1, k$2, k2) {
11973
- if (k2 === void 0) k2 = k$2;
11974
- o$2[k2] = m$1[k$2];
10807
+ }) : (function(o$1, m, k, k2) {
10808
+ if (k2 === void 0) k2 = k;
10809
+ o$1[k2] = m[k];
11975
10810
  }));
11976
- var __setModuleDefault$2 = exports && exports.__setModuleDefault || (Object.create ? (function(o$2, v$1) {
11977
- Object.defineProperty(o$2, "default", {
10811
+ var __setModuleDefault$2 = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
10812
+ Object.defineProperty(o$1, "default", {
11978
10813
  enumerable: true,
11979
- value: v$1
10814
+ value: v
11980
10815
  });
11981
- }) : function(o$2, v$1) {
11982
- o$2["default"] = v$1;
10816
+ }) : function(o$1, v) {
10817
+ o$1["default"] = v;
11983
10818
  });
11984
10819
  var __importStar$2 = exports && exports.__importStar || function(mod) {
11985
10820
  if (mod && mod.__esModule) return mod;
11986
10821
  var result = {};
11987
10822
  if (mod != null) {
11988
- for (var k$2 in mod) if (k$2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k$2)) __createBinding$2(result, mod, k$2);
10823
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$2(result, mod, k);
11989
10824
  }
11990
10825
  __setModuleDefault$2(result, mod);
11991
10826
  return result;
@@ -12015,31 +10850,31 @@ var require_mod_cjs$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/o
12015
10850
  //#endregion
12016
10851
  //#region ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js
12017
10852
  var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js": ((exports) => {
12018
- var __createBinding$1 = exports && exports.__createBinding || (Object.create ? (function(o$2, m$1, k$2, k2) {
12019
- if (k2 === void 0) k2 = k$2;
12020
- Object.defineProperty(o$2, k2, {
10853
+ var __createBinding$1 = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
10854
+ if (k2 === void 0) k2 = k;
10855
+ Object.defineProperty(o$1, k2, {
12021
10856
  enumerable: true,
12022
10857
  get: function() {
12023
- return m$1[k$2];
10858
+ return m[k];
12024
10859
  }
12025
10860
  });
12026
- }) : (function(o$2, m$1, k$2, k2) {
12027
- if (k2 === void 0) k2 = k$2;
12028
- o$2[k2] = m$1[k$2];
10861
+ }) : (function(o$1, m, k, k2) {
10862
+ if (k2 === void 0) k2 = k;
10863
+ o$1[k2] = m[k];
12029
10864
  }));
12030
- var __setModuleDefault$1 = exports && exports.__setModuleDefault || (Object.create ? (function(o$2, v$1) {
12031
- Object.defineProperty(o$2, "default", {
10865
+ var __setModuleDefault$1 = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
10866
+ Object.defineProperty(o$1, "default", {
12032
10867
  enumerable: true,
12033
- value: v$1
10868
+ value: v
12034
10869
  });
12035
- }) : function(o$2, v$1) {
12036
- o$2["default"] = v$1;
10870
+ }) : function(o$1, v) {
10871
+ o$1["default"] = v;
12037
10872
  });
12038
10873
  var __importStar$1 = exports && exports.__importStar || function(mod) {
12039
10874
  if (mod && mod.__esModule) return mod;
12040
10875
  var result = {};
12041
10876
  if (mod != null) {
12042
- for (var k$2 in mod) if (k$2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k$2)) __createBinding$1(result, mod, k$2);
10877
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$1(result, mod, k);
12043
10878
  }
12044
10879
  __setModuleDefault$1(result, mod);
12045
10880
  return result;
@@ -12072,31 +10907,31 @@ var require_mod_cjs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/x
12072
10907
  //#endregion
12073
10908
  //#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js
12074
10909
  var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js": ((exports) => {
12075
- var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o$2, m$1, k$2, k2) {
12076
- if (k2 === void 0) k2 = k$2;
12077
- Object.defineProperty(o$2, k2, {
10910
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
10911
+ if (k2 === void 0) k2 = k;
10912
+ Object.defineProperty(o$1, k2, {
12078
10913
  enumerable: true,
12079
10914
  get: function() {
12080
- return m$1[k$2];
10915
+ return m[k];
12081
10916
  }
12082
10917
  });
12083
- }) : (function(o$2, m$1, k$2, k2) {
12084
- if (k2 === void 0) k2 = k$2;
12085
- o$2[k2] = m$1[k$2];
10918
+ }) : (function(o$1, m, k, k2) {
10919
+ if (k2 === void 0) k2 = k;
10920
+ o$1[k2] = m[k];
12086
10921
  }));
12087
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o$2, v$1) {
12088
- Object.defineProperty(o$2, "default", {
10922
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
10923
+ Object.defineProperty(o$1, "default", {
12089
10924
  enumerable: true,
12090
- value: v$1
10925
+ value: v
12091
10926
  });
12092
- }) : function(o$2, v$1) {
12093
- o$2["default"] = v$1;
10927
+ }) : function(o$1, v) {
10928
+ o$1["default"] = v;
12094
10929
  });
12095
10930
  var __importStar = exports && exports.__importStar || function(mod) {
12096
10931
  if (mod && mod.__esModule) return mod;
12097
10932
  var result = {};
12098
10933
  if (mod != null) {
12099
- for (var k$2 in mod) if (k$2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k$2)) __createBinding(result, mod, k$2);
10934
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
12100
10935
  }
12101
10936
  __setModuleDefault(result, mod);
12102
10937
  return result;
@@ -12234,12 +11069,12 @@ const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseNa
12234
11069
  await fs$1.writeFile(filePath, transformTemplate(content, { BUCKET_NAME: r2BucketName }));
12235
11070
  }
12236
11071
  await wrangler("d1", "migrations", "apply", d1DatabaseName, "--remote");
12237
- const workerName = await he({
11072
+ const workerName = await p.text({
12238
11073
  message: "Enter the name of the worker",
12239
11074
  defaultValue: "hot-updater",
12240
11075
  placeholder: "hot-updater"
12241
11076
  });
12242
- if (BD(workerName)) process.exit(1);
11077
+ if (p.isCancel(workerName)) process.exit(1);
12243
11078
  await wrangler("deploy", "--name", workerName);
12244
11079
  return workerName;
12245
11080
  } catch (error) {
@@ -12269,7 +11104,7 @@ const runInit = async ({ build }) => {
12269
11104
  const createKey = `create/${Math.random().toString(36).substring(2, 15)}`;
12270
11105
  const accounts = [];
12271
11106
  try {
12272
- await Te([{
11107
+ await p.tasks([{
12273
11108
  title: "Checking Account List...",
12274
11109
  task: async () => {
12275
11110
  accounts.push(...(await cf.accounts.list()).result.map((account) => ({
@@ -12278,37 +11113,37 @@ const runInit = async ({ build }) => {
12278
11113
  })));
12279
11114
  }
12280
11115
  }]);
12281
- } catch (e$1) {
12282
- if (e$1 instanceof Error) f.error(e$1.message);
12283
- throw e$1;
11116
+ } catch (e) {
11117
+ if (e instanceof Error) p.log.error(e.message);
11118
+ throw e;
12284
11119
  }
12285
- const accountId = await ve({
11120
+ const accountId = await p.select({
12286
11121
  message: "Account List",
12287
11122
  options: accounts.map((account) => ({
12288
11123
  value: account.id,
12289
11124
  label: `${account.name} (${account.id})`
12290
11125
  }))
12291
11126
  });
12292
- if (BD(accountId)) process.exit(1);
12293
- f.step(`Please visit this link to create an API Token: ${link(`https://dash.cloudflare.com/${accountId}/api-tokens`)}`);
12294
- f.step("You need edit permissions for both D1 and R2");
12295
- const apiToken = await ge({ message: "Enter the API Token" });
12296
- if (!apiToken) f.warn("Skipping API Token. You can set it later in .env HOT_UPDATER_CLOUDFLARE_API_TOKEN file.");
12297
- if (BD(apiToken)) process.exit(1);
11127
+ if (p.isCancel(accountId)) process.exit(1);
11128
+ p.log.step(`Please visit this link to create an API Token: ${link(`https://dash.cloudflare.com/${accountId}/api-tokens`)}`);
11129
+ p.log.step("You need edit permissions for both D1 and R2");
11130
+ const apiToken = await p.password({ message: "Enter the API Token" });
11131
+ if (!apiToken) p.log.warn("Skipping API Token. You can set it later in .env HOT_UPDATER_CLOUDFLARE_API_TOKEN file.");
11132
+ if (p.isCancel(apiToken)) process.exit(1);
12298
11133
  const availableBuckets = [];
12299
11134
  try {
12300
- await Te([{
11135
+ await p.tasks([{
12301
11136
  title: "Checking R2 Buckets...",
12302
11137
  task: async () => {
12303
11138
  const buckets = (await cf.r2.buckets.list({ account_id: accountId })).buckets ?? [];
12304
11139
  availableBuckets.push(...buckets.filter((bucket) => bucket.name).map((bucket) => ({ name: bucket.name })));
12305
11140
  }
12306
11141
  }]);
12307
- } catch (e$1) {
12308
- if (e$1 instanceof Error) f.error(e$1.message);
12309
- throw e$1;
11142
+ } catch (e) {
11143
+ if (e instanceof Error) p.log.error(e.message);
11144
+ throw e;
12310
11145
  }
12311
- let selectedBucketName = await ve({
11146
+ let selectedBucketName = await p.select({
12312
11147
  message: "R2 List",
12313
11148
  options: [...availableBuckets.map((bucket) => ({
12314
11149
  value: bucket.name,
@@ -12318,10 +11153,10 @@ const runInit = async ({ build }) => {
12318
11153
  label: "Create New R2 Bucket"
12319
11154
  }]
12320
11155
  });
12321
- if (BD(selectedBucketName)) process.exit(1);
11156
+ if (p.isCancel(selectedBucketName)) process.exit(1);
12322
11157
  if (selectedBucketName === createKey) {
12323
- const name = await he({ message: "Enter the name of the new R2 Bucket" });
12324
- if (BD(name)) process.exit(1);
11158
+ const name = await p.text({ message: "Enter the name of the new R2 Bucket" });
11159
+ if (p.isCancel(name)) process.exit(1);
12325
11160
  const newR2 = await cf.r2.buckets.create({
12326
11161
  account_id: accountId,
12327
11162
  name
@@ -12329,10 +11164,10 @@ const runInit = async ({ build }) => {
12329
11164
  if (!newR2.name) throw new Error("Failed to create new R2 Bucket");
12330
11165
  selectedBucketName = newR2.name;
12331
11166
  }
12332
- f.info(`Selected R2: ${selectedBucketName}`);
11167
+ p.log.info(`Selected R2: ${selectedBucketName}`);
12333
11168
  if ((await cf.r2.buckets.domains.managed.list(selectedBucketName, { account_id: accountId })).enabled) {
12334
- if (await ye({ message: "Make R2 bucket private?" })) try {
12335
- await Te([{
11169
+ if (await p.confirm({ message: "Make R2 bucket private?" })) try {
11170
+ await p.tasks([{
12336
11171
  title: "Making R2 bucket private...",
12337
11172
  task: async () => {
12338
11173
  await cf.r2.buckets.domains.managed.update(selectedBucketName, {
@@ -12341,14 +11176,14 @@ const runInit = async ({ build }) => {
12341
11176
  });
12342
11177
  }
12343
11178
  }]);
12344
- } catch (e$1) {
12345
- if (e$1 instanceof Error) f.error(e$1.message);
12346
- throw e$1;
11179
+ } catch (e) {
11180
+ if (e instanceof Error) p.log.error(e.message);
11181
+ throw e;
12347
11182
  }
12348
11183
  }
12349
11184
  const availableD1List = [];
12350
11185
  try {
12351
- await Te([{
11186
+ await p.tasks([{
12352
11187
  title: "Checking D1 List...",
12353
11188
  task: async () => {
12354
11189
  const d1List = (await cf.d1.database.list({ account_id: accountId })).result ?? [];
@@ -12358,11 +11193,11 @@ const runInit = async ({ build }) => {
12358
11193
  })));
12359
11194
  }
12360
11195
  }]);
12361
- } catch (e$1) {
12362
- if (e$1 instanceof Error) f.error(e$1.message);
12363
- throw e$1;
11196
+ } catch (e) {
11197
+ if (e instanceof Error) p.log.error(e.message);
11198
+ throw e;
12364
11199
  }
12365
- let selectedD1DatabaseId = await ve({
11200
+ let selectedD1DatabaseId = await p.select({
12366
11201
  message: "D1 List",
12367
11202
  options: [...availableD1List.map((d1) => ({
12368
11203
  value: d1.uuid,
@@ -12372,10 +11207,10 @@ const runInit = async ({ build }) => {
12372
11207
  label: "Create New D1 Database"
12373
11208
  }]
12374
11209
  });
12375
- if (BD(selectedD1DatabaseId)) process.exit(1);
11210
+ if (p.isCancel(selectedD1DatabaseId)) process.exit(1);
12376
11211
  if (selectedD1DatabaseId === createKey) {
12377
- const name = await he({ message: "Enter the name of the new D1 Database" });
12378
- if (BD(name)) process.exit(1);
11212
+ const name = await p.text({ message: "Enter the name of the new D1 Database" });
11213
+ if (p.isCancel(name)) process.exit(1);
12379
11214
  const newD1 = await cf.d1.database.create({
12380
11215
  account_id: accountId,
12381
11216
  name
@@ -12386,8 +11221,8 @@ const runInit = async ({ build }) => {
12386
11221
  name: newD1.name,
12387
11222
  uuid: newD1.uuid
12388
11223
  });
12389
- f.info(`Created new D1 Database: ${newD1.name} (${newD1.uuid})`);
12390
- } else f.info(`Selected D1: ${selectedD1DatabaseId}`);
11224
+ p.log.info(`Created new D1 Database: ${newD1.name} (${newD1.uuid})`);
11225
+ } else p.log.info(`Selected D1: ${selectedD1DatabaseId}`);
12391
11226
  const d1DatabaseName = availableD1List.find((d1) => d1.uuid === selectedD1DatabaseId)?.name;
12392
11227
  if (!d1DatabaseName) throw new Error("Failed to get D1 Database name");
12393
11228
  const subdomains = await cf.workers.subdomains.get({ account_id: accountId });
@@ -12403,11 +11238,11 @@ const runInit = async ({ build }) => {
12403
11238
  HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME: selectedBucketName,
12404
11239
  HOT_UPDATER_CLOUDFLARE_D1_DATABASE_ID: selectedD1DatabaseId
12405
11240
  });
12406
- f.success("Generated '.env.hotupdater' file with Cloudflare settings.");
12407
- f.success("Generated 'hot-updater.config.ts' file with Cloudflare settings.");
12408
- if (subdomains.subdomain) Me(transformTemplate(SOURCE_TEMPLATE, { source: `https://${workerName}.${subdomains.subdomain}.workers.dev/api/check-update` }));
12409
- f.message(`Next step: ${link("https://hot-updater.dev/docs/managed/cloudflare#step-4-add-hotupdater-to-your-project")}`);
12410
- f.success("Done! 🎉");
11241
+ p.log.success("Generated '.env.hotupdater' file with Cloudflare settings.");
11242
+ p.log.success("Generated 'hot-updater.config.ts' file with Cloudflare settings.");
11243
+ if (subdomains.subdomain) p.note(transformTemplate(SOURCE_TEMPLATE, { source: `https://${workerName}.${subdomains.subdomain}.workers.dev/api/check-update` }));
11244
+ p.log.message(`Next step: ${link("https://hot-updater.dev/docs/managed/cloudflare#step-4-add-hotupdater-to-your-project")}`);
11245
+ p.log.success("Done! 🎉");
12411
11246
  };
12412
11247
 
12413
11248
  //#endregion