@hot-updater/cloudflare 0.13.2 → 0.13.3-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,283 +32,412 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
32
  ));
33
33
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
34
 
35
+ // ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
36
+ var require_src = __commonJS({
37
+ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports2, module2) {
38
+ "use strict";
39
+ var ESC = "\x1B";
40
+ var CSI = `${ESC}[`;
41
+ var beep = "\x07";
42
+ var cursor = {
43
+ to(x2, y2) {
44
+ if (!y2) return `${CSI}${x2 + 1}G`;
45
+ return `${CSI}${y2 + 1};${x2 + 1}H`;
46
+ },
47
+ move(x2, y2) {
48
+ let ret = "";
49
+ if (x2 < 0) ret += `${CSI}${-x2}D`;
50
+ else if (x2 > 0) ret += `${CSI}${x2}C`;
51
+ if (y2 < 0) ret += `${CSI}${-y2}A`;
52
+ else if (y2 > 0) ret += `${CSI}${y2}B`;
53
+ return ret;
54
+ },
55
+ up: (count2 = 1) => `${CSI}${count2}A`,
56
+ down: (count2 = 1) => `${CSI}${count2}B`,
57
+ forward: (count2 = 1) => `${CSI}${count2}C`,
58
+ backward: (count2 = 1) => `${CSI}${count2}D`,
59
+ nextLine: (count2 = 1) => `${CSI}E`.repeat(count2),
60
+ prevLine: (count2 = 1) => `${CSI}F`.repeat(count2),
61
+ left: `${CSI}G`,
62
+ hide: `${CSI}?25l`,
63
+ show: `${CSI}?25h`,
64
+ save: `${ESC}7`,
65
+ restore: `${ESC}8`
66
+ };
67
+ var scroll = {
68
+ up: (count2 = 1) => `${CSI}S`.repeat(count2),
69
+ down: (count2 = 1) => `${CSI}T`.repeat(count2)
70
+ };
71
+ var erase = {
72
+ screen: `${CSI}2J`,
73
+ up: (count2 = 1) => `${CSI}1J`.repeat(count2),
74
+ down: (count2 = 1) => `${CSI}J`.repeat(count2),
75
+ line: `${CSI}2K`,
76
+ lineEnd: `${CSI}K`,
77
+ lineStart: `${CSI}1K`,
78
+ lines(count2) {
79
+ let clear = "";
80
+ for (let i2 = 0; i2 < count2; i2++)
81
+ clear += this.line + (i2 < count2 - 1 ? cursor.up() : "");
82
+ if (count2)
83
+ clear += cursor.left;
84
+ return clear;
85
+ }
86
+ };
87
+ module2.exports = { cursor, scroll, erase, beep };
88
+ }
89
+ });
90
+
91
+ // ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
92
+ var require_picocolors = __commonJS({
93
+ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports2, module2) {
94
+ "use strict";
95
+ var p = process || {};
96
+ var argv = p.argv || [];
97
+ var env = p.env || {};
98
+ var 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);
99
+ var formatter = (open, close, replace = open) => (input) => {
100
+ let string = "" + input, index = string.indexOf(close, open.length);
101
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
102
+ };
103
+ var replaceClose = (string, close, replace, index) => {
104
+ let result = "", cursor = 0;
105
+ do {
106
+ result += string.substring(cursor, index) + replace;
107
+ cursor = index + close.length;
108
+ index = string.indexOf(close, cursor);
109
+ } while (~index);
110
+ return result + string.substring(cursor);
111
+ };
112
+ var createColors = (enabled = isColorSupported) => {
113
+ let f3 = enabled ? formatter : () => String;
114
+ return {
115
+ isColorSupported: enabled,
116
+ reset: f3("\x1B[0m", "\x1B[0m"),
117
+ bold: f3("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
118
+ dim: f3("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
119
+ italic: f3("\x1B[3m", "\x1B[23m"),
120
+ underline: f3("\x1B[4m", "\x1B[24m"),
121
+ inverse: f3("\x1B[7m", "\x1B[27m"),
122
+ hidden: f3("\x1B[8m", "\x1B[28m"),
123
+ strikethrough: f3("\x1B[9m", "\x1B[29m"),
124
+ black: f3("\x1B[30m", "\x1B[39m"),
125
+ red: f3("\x1B[31m", "\x1B[39m"),
126
+ green: f3("\x1B[32m", "\x1B[39m"),
127
+ yellow: f3("\x1B[33m", "\x1B[39m"),
128
+ blue: f3("\x1B[34m", "\x1B[39m"),
129
+ magenta: f3("\x1B[35m", "\x1B[39m"),
130
+ cyan: f3("\x1B[36m", "\x1B[39m"),
131
+ white: f3("\x1B[37m", "\x1B[39m"),
132
+ gray: f3("\x1B[90m", "\x1B[39m"),
133
+ bgBlack: f3("\x1B[40m", "\x1B[49m"),
134
+ bgRed: f3("\x1B[41m", "\x1B[49m"),
135
+ bgGreen: f3("\x1B[42m", "\x1B[49m"),
136
+ bgYellow: f3("\x1B[43m", "\x1B[49m"),
137
+ bgBlue: f3("\x1B[44m", "\x1B[49m"),
138
+ bgMagenta: f3("\x1B[45m", "\x1B[49m"),
139
+ bgCyan: f3("\x1B[46m", "\x1B[49m"),
140
+ bgWhite: f3("\x1B[47m", "\x1B[49m"),
141
+ blackBright: f3("\x1B[90m", "\x1B[39m"),
142
+ redBright: f3("\x1B[91m", "\x1B[39m"),
143
+ greenBright: f3("\x1B[92m", "\x1B[39m"),
144
+ yellowBright: f3("\x1B[93m", "\x1B[39m"),
145
+ blueBright: f3("\x1B[94m", "\x1B[39m"),
146
+ magentaBright: f3("\x1B[95m", "\x1B[39m"),
147
+ cyanBright: f3("\x1B[96m", "\x1B[39m"),
148
+ whiteBright: f3("\x1B[97m", "\x1B[39m"),
149
+ bgBlackBright: f3("\x1B[100m", "\x1B[49m"),
150
+ bgRedBright: f3("\x1B[101m", "\x1B[49m"),
151
+ bgGreenBright: f3("\x1B[102m", "\x1B[49m"),
152
+ bgYellowBright: f3("\x1B[103m", "\x1B[49m"),
153
+ bgBlueBright: f3("\x1B[104m", "\x1B[49m"),
154
+ bgMagentaBright: f3("\x1B[105m", "\x1B[49m"),
155
+ bgCyanBright: f3("\x1B[106m", "\x1B[49m"),
156
+ bgWhiteBright: f3("\x1B[107m", "\x1B[49m")
157
+ };
158
+ };
159
+ module2.exports = createColors();
160
+ module2.exports.createColors = createColors;
161
+ }
162
+ });
163
+
35
164
  // ../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js
36
165
  var require_dayjs_min = __commonJS({
37
166
  "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js"(exports2, module2) {
38
167
  "use strict";
39
- !function(t, e) {
40
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
168
+ !function(t, e2) {
169
+ "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = e2() : "function" == typeof define && define.amd ? define(e2) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e2();
41
170
  }(exports2, function() {
42
171
  "use strict";
43
- var t = 1e3, e = 6e4, n2 = 36e5, r = "millisecond", i2 = "second", s = "minute", u2 = "hour", a2 = "day", o2 = "week", c3 = "month", f = "quarter", h2 = "year", d = "date", l = "Invalid Date", $2 = /^(\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 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
44
- var e2 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
45
- return "[" + t2 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
46
- } }, m = function(t2, e2, n3) {
47
- var r2 = String(t2);
48
- return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n3) + t2;
49
- }, v = { s: m, z: function(t2) {
50
- var e2 = -t2.utcOffset(), n3 = Math.abs(e2), r2 = Math.floor(n3 / 60), i3 = n3 % 60;
51
- return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i3, 2, "0");
52
- }, m: function t2(e2, n3) {
53
- if (e2.date() < n3.date()) return -t2(n3, e2);
54
- var r2 = 12 * (n3.year() - e2.year()) + (n3.month() - e2.month()), i3 = e2.clone().add(r2, c3), s2 = n3 - i3 < 0, u3 = e2.clone().add(r2 + (s2 ? -1 : 1), c3);
55
- return +(-(r2 + (n3 - i3) / (s2 ? i3 - u3 : u3 - i3)) || 0);
172
+ var t = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s = "minute", u3 = "hour", a2 = "day", o3 = "week", c4 = "month", f3 = "quarter", h3 = "year", d3 = "date", l2 = "Invalid Date", $3 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|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, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
173
+ var e3 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
174
+ return "[" + t2 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
175
+ } }, m2 = function(t2, e3, n3) {
176
+ var r3 = String(t2);
177
+ return !r3 || r3.length >= e3 ? t2 : "" + Array(e3 + 1 - r3.length).join(n3) + t2;
178
+ }, v2 = { s: m2, z: function(t2) {
179
+ var e3 = -t2.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
180
+ return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
181
+ }, m: function t2(e3, n3) {
182
+ if (e3.date() < n3.date()) return -t2(n3, e3);
183
+ var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c4), s2 = n3 - i3 < 0, u4 = e3.clone().add(r3 + (s2 ? -1 : 1), c4);
184
+ return +(-(r3 + (n3 - i3) / (s2 ? i3 - u4 : u4 - i3)) || 0);
56
185
  }, a: function(t2) {
57
186
  return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
58
187
  }, p: function(t2) {
59
- return { M: c3, y: h2, w: o2, d: a2, D: d, h: u2, m: s, s: i2, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
188
+ return { M: c4, y: h3, w: o3, d: a2, D: d3, h: u3, m: s, s: i2, ms: r2, Q: f3 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
60
189
  }, u: function(t2) {
61
190
  return void 0 === t2;
62
- } }, g = "en", D = {};
63
- D[g] = M;
64
- var p2 = "$isDayjsObject", S = function(t2) {
65
- return t2 instanceof _2 || !(!t2 || !t2[p2]);
66
- }, w = function t2(e2, n3, r2) {
191
+ } }, g3 = "en", D2 = {};
192
+ D2[g3] = M2;
193
+ var p = "$isDayjsObject", S3 = function(t2) {
194
+ return t2 instanceof _4 || !(!t2 || !t2[p]);
195
+ }, w3 = function t2(e3, n3, r3) {
67
196
  var i3;
68
- if (!e2) return g;
69
- if ("string" == typeof e2) {
70
- var s2 = e2.toLowerCase();
71
- D[s2] && (i3 = s2), n3 && (D[s2] = n3, i3 = s2);
72
- var u3 = e2.split("-");
73
- if (!i3 && u3.length > 1) return t2(u3[0]);
197
+ if (!e3) return g3;
198
+ if ("string" == typeof e3) {
199
+ var s2 = e3.toLowerCase();
200
+ D2[s2] && (i3 = s2), n3 && (D2[s2] = n3, i3 = s2);
201
+ var u4 = e3.split("-");
202
+ if (!i3 && u4.length > 1) return t2(u4[0]);
74
203
  } else {
75
- var a3 = e2.name;
76
- D[a3] = e2, i3 = a3;
204
+ var a3 = e3.name;
205
+ D2[a3] = e3, i3 = a3;
77
206
  }
78
- return !r2 && i3 && (g = i3), i3 || !r2 && g;
79
- }, O = function(t2, e2) {
80
- if (S(t2)) return t2.clone();
81
- var n3 = "object" == typeof e2 ? e2 : {};
82
- return n3.date = t2, n3.args = arguments, new _2(n3);
83
- }, b = v;
84
- b.l = w, b.i = S, b.w = function(t2, e2) {
85
- return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
207
+ return !r3 && i3 && (g3 = i3), i3 || !r3 && g3;
208
+ }, O2 = function(t2, e3) {
209
+ if (S3(t2)) return t2.clone();
210
+ var n3 = "object" == typeof e3 ? e3 : {};
211
+ return n3.date = t2, n3.args = arguments, new _4(n3);
212
+ }, b2 = v2;
213
+ b2.l = w3, b2.i = S3, b2.w = function(t2, e3) {
214
+ return O2(t2, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
86
215
  };
87
- var _2 = function() {
88
- function M2(t2) {
89
- this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p2] = true;
216
+ var _4 = function() {
217
+ function M3(t2) {
218
+ this.$L = w3(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
90
219
  }
91
- var m2 = M2.prototype;
92
- return m2.parse = function(t2) {
220
+ var m3 = M3.prototype;
221
+ return m3.parse = function(t2) {
93
222
  this.$d = function(t3) {
94
- var e2 = t3.date, n3 = t3.utc;
95
- if (null === e2) return /* @__PURE__ */ new Date(NaN);
96
- if (b.u(e2)) return /* @__PURE__ */ new Date();
97
- if (e2 instanceof Date) return new Date(e2);
98
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
99
- var r2 = e2.match($2);
100
- if (r2) {
101
- var i3 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
102
- return n3 ? new Date(Date.UTC(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
223
+ var e3 = t3.date, n3 = t3.utc;
224
+ if (null === e3) return /* @__PURE__ */ new Date(NaN);
225
+ if (b2.u(e3)) return /* @__PURE__ */ new Date();
226
+ if (e3 instanceof Date) return new Date(e3);
227
+ if ("string" == typeof e3 && !/Z$/i.test(e3)) {
228
+ var r3 = e3.match($3);
229
+ if (r3) {
230
+ var i3 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
231
+ return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
103
232
  }
104
233
  }
105
- return new Date(e2);
234
+ return new Date(e3);
106
235
  }(t2), this.init();
107
- }, m2.init = function() {
236
+ }, m3.init = function() {
108
237
  var t2 = this.$d;
109
238
  this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
110
- }, m2.$utils = function() {
111
- return b;
112
- }, m2.isValid = function() {
113
- return !(this.$d.toString() === l);
114
- }, m2.isSame = function(t2, e2) {
115
- var n3 = O(t2);
116
- return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
117
- }, m2.isAfter = function(t2, e2) {
118
- return O(t2) < this.startOf(e2);
119
- }, m2.isBefore = function(t2, e2) {
120
- return this.endOf(e2) < O(t2);
121
- }, m2.$g = function(t2, e2, n3) {
122
- return b.u(t2) ? this[e2] : this.set(n3, t2);
123
- }, m2.unix = function() {
239
+ }, m3.$utils = function() {
240
+ return b2;
241
+ }, m3.isValid = function() {
242
+ return !(this.$d.toString() === l2);
243
+ }, m3.isSame = function(t2, e3) {
244
+ var n3 = O2(t2);
245
+ return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
246
+ }, m3.isAfter = function(t2, e3) {
247
+ return O2(t2) < this.startOf(e3);
248
+ }, m3.isBefore = function(t2, e3) {
249
+ return this.endOf(e3) < O2(t2);
250
+ }, m3.$g = function(t2, e3, n3) {
251
+ return b2.u(t2) ? this[e3] : this.set(n3, t2);
252
+ }, m3.unix = function() {
124
253
  return Math.floor(this.valueOf() / 1e3);
125
- }, m2.valueOf = function() {
254
+ }, m3.valueOf = function() {
126
255
  return this.$d.getTime();
127
- }, m2.startOf = function(t2, e2) {
128
- var n3 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
129
- var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e3, t3) : new Date(n3.$y, e3, t3), n3);
130
- return r2 ? i3 : i3.endOf(a2);
131
- }, $3 = function(t3, e3) {
132
- return b.w(n3.toDate()[t3].apply(n3.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
133
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
134
- switch (f2) {
135
- case h2:
136
- return r2 ? l2(1, 0) : l2(31, 11);
137
- case c3:
138
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
139
- case o2:
140
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
141
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
256
+ }, m3.startOf = function(t2, e3) {
257
+ var n3 = this, r3 = !!b2.u(e3) || e3, f4 = b2.p(t2), l3 = function(t3, e4) {
258
+ var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t3) : new Date(n3.$y, e4, t3), n3);
259
+ return r3 ? i3 : i3.endOf(a2);
260
+ }, $4 = function(t3, e4) {
261
+ return b2.w(n3.toDate()[t3].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
262
+ }, y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
263
+ switch (f4) {
264
+ case h3:
265
+ return r3 ? l3(1, 0) : l3(31, 11);
266
+ case c4:
267
+ return r3 ? l3(1, M4) : l3(0, M4 + 1);
268
+ case o3:
269
+ var g4 = this.$locale().weekStart || 0, D3 = (y3 < g4 ? y3 + 7 : y3) - g4;
270
+ return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
142
271
  case a2:
143
- case d:
144
- return $3(v2 + "Hours", 0);
145
- case u2:
146
- return $3(v2 + "Minutes", 1);
272
+ case d3:
273
+ return $4(v3 + "Hours", 0);
274
+ case u3:
275
+ return $4(v3 + "Minutes", 1);
147
276
  case s:
148
- return $3(v2 + "Seconds", 2);
277
+ return $4(v3 + "Seconds", 2);
149
278
  case i2:
150
- return $3(v2 + "Milliseconds", 3);
279
+ return $4(v3 + "Milliseconds", 3);
151
280
  default:
152
281
  return this.clone();
153
282
  }
154
- }, m2.endOf = function(t2) {
283
+ }, m3.endOf = function(t2) {
155
284
  return this.startOf(t2, false);
156
- }, m2.$set = function(t2, e2) {
157
- var n3, o3 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a2] = f2 + "Date", n3[d] = f2 + "Date", n3[c3] = f2 + "Month", n3[h2] = f2 + "FullYear", n3[u2] = f2 + "Hours", n3[s] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r] = f2 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e2 - this.$W) : e2;
158
- if (o3 === c3 || o3 === h2) {
159
- var y2 = this.clone().set(d, 1);
160
- y2.$d[l2]($3), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
161
- } else l2 && this.$d[l2]($3);
285
+ }, m3.$set = function(t2, e3) {
286
+ var n3, o4 = b2.p(t2), f4 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f4 + "Date", n3[d3] = f4 + "Date", n3[c4] = f4 + "Month", n3[h3] = f4 + "FullYear", n3[u3] = f4 + "Hours", n3[s] = f4 + "Minutes", n3[i2] = f4 + "Seconds", n3[r2] = f4 + "Milliseconds", n3)[o4], $4 = o4 === a2 ? this.$D + (e3 - this.$W) : e3;
287
+ if (o4 === c4 || o4 === h3) {
288
+ var y3 = this.clone().set(d3, 1);
289
+ y3.$d[l3]($4), y3.init(), this.$d = y3.set(d3, Math.min(this.$D, y3.daysInMonth())).$d;
290
+ } else l3 && this.$d[l3]($4);
162
291
  return this.init(), this;
163
- }, m2.set = function(t2, e2) {
164
- return this.clone().$set(t2, e2);
165
- }, m2.get = function(t2) {
166
- return this[b.p(t2)]();
167
- }, m2.add = function(r2, f2) {
168
- var d2, l2 = this;
169
- r2 = Number(r2);
170
- var $3 = b.p(f2), y2 = function(t2) {
171
- var e2 = O(l2);
172
- return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
292
+ }, m3.set = function(t2, e3) {
293
+ return this.clone().$set(t2, e3);
294
+ }, m3.get = function(t2) {
295
+ return this[b2.p(t2)]();
296
+ }, m3.add = function(r3, f4) {
297
+ var d4, l3 = this;
298
+ r3 = Number(r3);
299
+ var $4 = b2.p(f4), y3 = function(t2) {
300
+ var e3 = O2(l3);
301
+ return b2.w(e3.date(e3.date() + Math.round(t2 * r3)), l3);
173
302
  };
174
- if ($3 === c3) return this.set(c3, this.$M + r2);
175
- if ($3 === h2) return this.set(h2, this.$y + r2);
176
- if ($3 === a2) return y2(1);
177
- if ($3 === o2) return y2(7);
178
- var M3 = (d2 = {}, d2[s] = e, d2[u2] = n2, d2[i2] = t, d2)[$3] || 1, m3 = this.$d.getTime() + r2 * M3;
179
- return b.w(m3, this);
180
- }, m2.subtract = function(t2, e2) {
181
- return this.add(-1 * t2, e2);
182
- }, m2.format = function(t2) {
183
- var e2 = this, n3 = this.$locale();
184
- if (!this.isValid()) return n3.invalidDate || l;
185
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s2 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c4 = n3.months, f2 = n3.meridiem, h3 = function(t3, n4, i4, s3) {
186
- return t3 && (t3[n4] || t3(e2, r2)) || i4[n4].slice(0, s3);
187
- }, d2 = function(t3) {
188
- return b.s(s2 % 12 || 12, t3, "0");
189
- }, $3 = f2 || function(t3, e3, n4) {
190
- var r3 = t3 < 12 ? "AM" : "PM";
191
- return n4 ? r3.toLowerCase() : r3;
303
+ if ($4 === c4) return this.set(c4, this.$M + r3);
304
+ if ($4 === h3) return this.set(h3, this.$y + r3);
305
+ if ($4 === a2) return y3(1);
306
+ if ($4 === o3) return y3(7);
307
+ var M4 = (d4 = {}, d4[s] = e2, d4[u3] = n2, d4[i2] = t, d4)[$4] || 1, m4 = this.$d.getTime() + r3 * M4;
308
+ return b2.w(m4, this);
309
+ }, m3.subtract = function(t2, e3) {
310
+ return this.add(-1 * t2, e3);
311
+ }, m3.format = function(t2) {
312
+ var e3 = this, n3 = this.$locale();
313
+ if (!this.isValid()) return n3.invalidDate || l2;
314
+ var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s2 = this.$H, u4 = this.$m, a3 = this.$M, o4 = n3.weekdays, c5 = n3.months, f4 = n3.meridiem, h4 = function(t3, n4, i4, s3) {
315
+ return t3 && (t3[n4] || t3(e3, r3)) || i4[n4].slice(0, s3);
316
+ }, d4 = function(t3) {
317
+ return b2.s(s2 % 12 || 12, t3, "0");
318
+ }, $4 = f4 || function(t3, e4, n4) {
319
+ var r4 = t3 < 12 ? "AM" : "PM";
320
+ return n4 ? r4.toLowerCase() : r4;
192
321
  };
193
- return r2.replace(y, function(t3, r3) {
194
- return r3 || function(t4) {
322
+ return r3.replace(y2, function(t3, r4) {
323
+ return r4 || function(t4) {
195
324
  switch (t4) {
196
325
  case "YY":
197
- return String(e2.$y).slice(-2);
326
+ return String(e3.$y).slice(-2);
198
327
  case "YYYY":
199
- return b.s(e2.$y, 4, "0");
328
+ return b2.s(e3.$y, 4, "0");
200
329
  case "M":
201
330
  return a3 + 1;
202
331
  case "MM":
203
- return b.s(a3 + 1, 2, "0");
332
+ return b2.s(a3 + 1, 2, "0");
204
333
  case "MMM":
205
- return h3(n3.monthsShort, a3, c4, 3);
334
+ return h4(n3.monthsShort, a3, c5, 3);
206
335
  case "MMMM":
207
- return h3(c4, a3);
336
+ return h4(c5, a3);
208
337
  case "D":
209
- return e2.$D;
338
+ return e3.$D;
210
339
  case "DD":
211
- return b.s(e2.$D, 2, "0");
340
+ return b2.s(e3.$D, 2, "0");
212
341
  case "d":
213
- return String(e2.$W);
342
+ return String(e3.$W);
214
343
  case "dd":
215
- return h3(n3.weekdaysMin, e2.$W, o3, 2);
344
+ return h4(n3.weekdaysMin, e3.$W, o4, 2);
216
345
  case "ddd":
217
- return h3(n3.weekdaysShort, e2.$W, o3, 3);
346
+ return h4(n3.weekdaysShort, e3.$W, o4, 3);
218
347
  case "dddd":
219
- return o3[e2.$W];
348
+ return o4[e3.$W];
220
349
  case "H":
221
350
  return String(s2);
222
351
  case "HH":
223
- return b.s(s2, 2, "0");
352
+ return b2.s(s2, 2, "0");
224
353
  case "h":
225
- return d2(1);
354
+ return d4(1);
226
355
  case "hh":
227
- return d2(2);
356
+ return d4(2);
228
357
  case "a":
229
- return $3(s2, u3, true);
358
+ return $4(s2, u4, true);
230
359
  case "A":
231
- return $3(s2, u3, false);
360
+ return $4(s2, u4, false);
232
361
  case "m":
233
- return String(u3);
362
+ return String(u4);
234
363
  case "mm":
235
- return b.s(u3, 2, "0");
364
+ return b2.s(u4, 2, "0");
236
365
  case "s":
237
- return String(e2.$s);
366
+ return String(e3.$s);
238
367
  case "ss":
239
- return b.s(e2.$s, 2, "0");
368
+ return b2.s(e3.$s, 2, "0");
240
369
  case "SSS":
241
- return b.s(e2.$ms, 3, "0");
370
+ return b2.s(e3.$ms, 3, "0");
242
371
  case "Z":
243
372
  return i3;
244
373
  }
245
374
  return null;
246
375
  }(t3) || i3.replace(":", "");
247
376
  });
248
- }, m2.utcOffset = function() {
377
+ }, m3.utcOffset = function() {
249
378
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
250
- }, m2.diff = function(r2, d2, l2) {
251
- var $3, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
252
- return b.m(y2, m3);
379
+ }, m3.diff = function(r3, d4, l3) {
380
+ var $4, y3 = this, M4 = b2.p(d4), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e2, g4 = this - m4, D3 = function() {
381
+ return b2.m(y3, m4);
253
382
  };
254
- switch (M3) {
255
- case h2:
256
- $3 = D2() / 12;
383
+ switch (M4) {
384
+ case h3:
385
+ $4 = D3() / 12;
257
386
  break;
258
- case c3:
259
- $3 = D2();
387
+ case c4:
388
+ $4 = D3();
260
389
  break;
261
- case f:
262
- $3 = D2() / 3;
390
+ case f3:
391
+ $4 = D3() / 3;
263
392
  break;
264
- case o2:
265
- $3 = (g2 - v2) / 6048e5;
393
+ case o3:
394
+ $4 = (g4 - v3) / 6048e5;
266
395
  break;
267
396
  case a2:
268
- $3 = (g2 - v2) / 864e5;
397
+ $4 = (g4 - v3) / 864e5;
269
398
  break;
270
- case u2:
271
- $3 = g2 / n2;
399
+ case u3:
400
+ $4 = g4 / n2;
272
401
  break;
273
402
  case s:
274
- $3 = g2 / e;
403
+ $4 = g4 / e2;
275
404
  break;
276
405
  case i2:
277
- $3 = g2 / t;
406
+ $4 = g4 / t;
278
407
  break;
279
408
  default:
280
- $3 = g2;
281
- }
282
- return l2 ? $3 : b.a($3);
283
- }, m2.daysInMonth = function() {
284
- return this.endOf(c3).$D;
285
- }, m2.$locale = function() {
286
- return D[this.$L];
287
- }, m2.locale = function(t2, e2) {
409
+ $4 = g4;
410
+ }
411
+ return l3 ? $4 : b2.a($4);
412
+ }, m3.daysInMonth = function() {
413
+ return this.endOf(c4).$D;
414
+ }, m3.$locale = function() {
415
+ return D2[this.$L];
416
+ }, m3.locale = function(t2, e3) {
288
417
  if (!t2) return this.$L;
289
- var n3 = this.clone(), r2 = w(t2, e2, true);
290
- return r2 && (n3.$L = r2), n3;
291
- }, m2.clone = function() {
292
- return b.w(this.$d, this);
293
- }, m2.toDate = function() {
418
+ var n3 = this.clone(), r3 = w3(t2, e3, true);
419
+ return r3 && (n3.$L = r3), n3;
420
+ }, m3.clone = function() {
421
+ return b2.w(this.$d, this);
422
+ }, m3.toDate = function() {
294
423
  return new Date(this.valueOf());
295
- }, m2.toJSON = function() {
424
+ }, m3.toJSON = function() {
296
425
  return this.isValid() ? this.toISOString() : null;
297
- }, m2.toISOString = function() {
426
+ }, m3.toISOString = function() {
298
427
  return this.$d.toISOString();
299
- }, m2.toString = function() {
428
+ }, m3.toString = function() {
300
429
  return this.$d.toUTCString();
301
- }, M2;
302
- }(), k = _2.prototype;
303
- return O.prototype = k, [["$ms", r], ["$s", i2], ["$m", s], ["$H", u2], ["$W", a2], ["$M", c3], ["$y", h2], ["$D", d]].forEach(function(t2) {
304
- k[t2[1]] = function(e2) {
305
- return this.$g(e2, t2[0], t2[1]);
430
+ }, M3;
431
+ }(), k3 = _4.prototype;
432
+ return O2.prototype = k3, [["$ms", r2], ["$s", i2], ["$m", s], ["$H", u3], ["$W", a2], ["$M", c4], ["$y", h3], ["$D", d3]].forEach(function(t2) {
433
+ k3[t2[1]] = function(e3) {
434
+ return this.$g(e3, t2[0], t2[1]);
306
435
  };
307
- }), O.extend = function(t2, e2) {
308
- return t2.$i || (t2(e2, _2, O), t2.$i = true), O;
309
- }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
310
- return O(1e3 * t2);
311
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
436
+ }), O2.extend = function(t2, e3) {
437
+ return t2.$i || (t2(e3, _4, O2), t2.$i = true), O2;
438
+ }, O2.locale = w3, O2.isDayjs = S3, O2.unix = function(t2) {
439
+ return O2(1e3 * t2);
440
+ }, O2.en = D2[g3], O2.Ls = D2, O2.p = {}, O2;
312
441
  });
313
442
  }
314
443
  });
@@ -330,8 +459,8 @@ var require_windows = __commonJS({
330
459
  return true;
331
460
  }
332
461
  for (var i2 = 0; i2 < pathext.length; i2++) {
333
- var p2 = pathext[i2].toLowerCase();
334
- if (p2 && path8.substr(-p2.length).toLowerCase() === p2) {
462
+ var p = pathext[i2].toLowerCase();
463
+ if (p && path8.substr(-p.length).toLowerCase() === p) {
335
464
  return true;
336
465
  }
337
466
  }
@@ -378,11 +507,11 @@ var require_mode = __commonJS({
378
507
  var gid = stat.gid;
379
508
  var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
380
509
  var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
381
- var u2 = parseInt("100", 8);
382
- var g = parseInt("010", 8);
383
- var o2 = parseInt("001", 8);
384
- var ug = u2 | g;
385
- var ret = mod & o2 || mod & g && gid === myGid || mod & u2 && uid === myUid || mod & ug && myUid === 0;
510
+ var u3 = parseInt("100", 8);
511
+ var g3 = parseInt("010", 8);
512
+ var o3 = parseInt("001", 8);
513
+ var ug = u3 | g3;
514
+ var ret = mod & o3 || mod & g3 && gid === myGid || mod & u3 && uid === myUid || mod & ug && myUid === 0;
386
515
  return ret;
387
516
  }
388
517
  }
@@ -488,21 +617,21 @@ var require_which = __commonJS({
488
617
  const ppRaw = pathEnv[i2];
489
618
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
490
619
  const pCmd = path8.join(pathPart, cmd);
491
- const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
492
- resolve(subStep(p2, i2, 0));
620
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
621
+ resolve(subStep(p, i2, 0));
493
622
  });
494
- const subStep = (p2, i2, ii) => new Promise((resolve, reject) => {
623
+ const subStep = (p, i2, ii) => new Promise((resolve, reject) => {
495
624
  if (ii === pathExt.length)
496
625
  return resolve(step(i2 + 1));
497
626
  const ext = pathExt[ii];
498
- isexe(p2 + ext, { pathExt: pathExtExe }, (er, is) => {
627
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
499
628
  if (!er && is) {
500
629
  if (opt.all)
501
- found.push(p2 + ext);
630
+ found.push(p + ext);
502
631
  else
503
- return resolve(p2 + ext);
632
+ return resolve(p + ext);
504
633
  }
505
- return resolve(subStep(p2, i2, ii + 1));
634
+ return resolve(subStep(p, i2, ii + 1));
506
635
  });
507
636
  });
508
637
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -515,9 +644,9 @@ var require_which = __commonJS({
515
644
  const ppRaw = pathEnv[i2];
516
645
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
517
646
  const pCmd = path8.join(pathPart, cmd);
518
- const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
519
- for (let j = 0; j < pathExt.length; j++) {
520
- const cur = p2 + pathExt[j];
647
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
648
+ for (let j2 = 0; j2 < pathExt.length; j2++) {
649
+ const cur = p + pathExt[j2];
521
650
  try {
522
651
  const is = isexe.sync(cur, { pathExt: pathExtExe });
523
652
  if (is) {
@@ -582,7 +711,7 @@ var require_resolveCommand = __commonJS({
582
711
  path: env[getPathKey({ env })],
583
712
  pathExt: withoutPathExt ? path8.delimiter : void 0
584
713
  });
585
- } catch (e) {
714
+ } catch (e2) {
586
715
  } finally {
587
716
  if (shouldSwitchCwd) {
588
717
  process.chdir(cwd);
@@ -667,7 +796,7 @@ var require_readShebang = __commonJS({
667
796
  fd = fs3.openSync(command, "r");
668
797
  fs3.readSync(fd, buffer, 0, size, 0);
669
798
  fs3.closeSync(fd);
670
- } catch (e) {
799
+ } catch (e2) {
671
800
  }
672
801
  return shebangCommand(buffer.toString());
673
802
  }
@@ -865,14 +994,14 @@ var require_parser = __commonJS({
865
994
  return "";
866
995
  }, peg$c38 = "e", peg$c39 = { type: "literal", value: "e", description: '"e"' }, peg$c40 = "E", peg$c41 = { type: "literal", value: "E", description: '"E"' }, peg$c42 = function(left, right) {
867
996
  return node("Float", parseFloat(left + "e" + right), line, column);
868
- }, peg$c43 = function(text3) {
869
- return node("Float", parseFloat(text3), line, column);
997
+ }, peg$c43 = function(text2) {
998
+ return node("Float", parseFloat(text2), line, column);
870
999
  }, peg$c44 = "+", peg$c45 = { type: "literal", value: "+", description: '"+"' }, peg$c46 = function(digits) {
871
1000
  return digits.join("");
872
1001
  }, peg$c47 = "-", peg$c48 = { type: "literal", value: "-", description: '"-"' }, peg$c49 = function(digits) {
873
1002
  return "-" + digits.join("");
874
- }, peg$c50 = function(text3) {
875
- return node("Integer", parseInt(text3, 10), line, column);
1003
+ }, peg$c50 = function(text2) {
1004
+ return node("Integer", parseInt(text2, 10), line, column);
876
1005
  }, peg$c51 = "true", peg$c52 = { type: "literal", value: "true", description: '"true"' }, peg$c53 = function() {
877
1006
  return node("Boolean", true, line, column);
878
1007
  }, peg$c54 = "false", peg$c55 = { type: "literal", value: "false", description: '"false"' }, peg$c56 = function() {
@@ -903,8 +1032,8 @@ var require_parser = __commonJS({
903
1032
  return node("Date", /* @__PURE__ */ new Date(date + "T" + time), line, column);
904
1033
  }, peg$c81 = /^[ \t]/, peg$c82 = { type: "class", value: "[ \\t]", description: "[ \\t]" }, peg$c83 = "\n", peg$c84 = { type: "literal", value: "\n", description: '"\\n"' }, peg$c85 = "\r", peg$c86 = { type: "literal", value: "\r", description: '"\\r"' }, peg$c87 = /^[0-9a-f]/i, peg$c88 = { type: "class", value: "[0-9a-f]i", description: "[0-9a-f]i" }, peg$c89 = /^[0-9]/, peg$c90 = { type: "class", value: "[0-9]", description: "[0-9]" }, peg$c91 = "_", peg$c92 = { type: "literal", value: "_", description: '"_"' }, peg$c93 = function() {
905
1034
  return "";
906
- }, peg$c94 = /^[A-Za-z0-9_\-]/, peg$c95 = { type: "class", value: "[A-Za-z0-9_\\-]", description: "[A-Za-z0-9_\\-]" }, peg$c96 = function(d) {
907
- return d.join("");
1035
+ }, peg$c94 = /^[A-Za-z0-9_\-]/, peg$c95 = { type: "class", value: "[A-Za-z0-9_\\-]", description: "[A-Za-z0-9_\\-]" }, peg$c96 = function(d3) {
1036
+ return d3.join("");
908
1037
  }, peg$c97 = '\\"', peg$c98 = { type: "literal", value: '\\"', description: '"\\\\\\""' }, peg$c99 = function() {
909
1038
  return '"';
910
1039
  }, peg$c100 = "\\\\", peg$c101 = { type: "literal", value: "\\\\", description: '"\\\\\\\\"' }, peg$c102 = function() {
@@ -928,7 +1057,7 @@ var require_parser = __commonJS({
928
1057
  }
929
1058
  peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
930
1059
  }
931
- function text2() {
1060
+ function text() {
932
1061
  return input.substring(peg$reportedPos, peg$currPos);
933
1062
  }
934
1063
  function offset() {
@@ -952,9 +1081,9 @@ var require_parser = __commonJS({
952
1081
  }
953
1082
  function peg$computePosDetails(pos) {
954
1083
  function advance(details, startPos, endPos) {
955
- var p2, ch;
956
- for (p2 = startPos; p2 < endPos; p2++) {
957
- ch = input.charAt(p2);
1084
+ var p, ch;
1085
+ for (p = startPos; p < endPos; p++) {
1086
+ ch = input.charAt(p);
958
1087
  if (ch === "\n") {
959
1088
  if (!details.seenCR) {
960
1089
  details.line++;
@@ -994,10 +1123,10 @@ var require_parser = __commonJS({
994
1123
  function peg$buildException(message, expected2, pos) {
995
1124
  function cleanupExpected(expected3) {
996
1125
  var i2 = 1;
997
- expected3.sort(function(a2, b) {
998
- if (a2.description < b.description) {
1126
+ expected3.sort(function(a2, b2) {
1127
+ if (a2.description < b2.description) {
999
1128
  return -1;
1000
- } else if (a2.description > b.description) {
1129
+ } else if (a2.description > b2.description) {
1001
1130
  return 1;
1002
1131
  } else {
1003
1132
  return 0;
@@ -4478,8 +4607,8 @@ var require_compiler = __commonJS({
4478
4607
  if (!pathAssigned(quotedPath)) {
4479
4608
  assignedPaths.push(quotedPath);
4480
4609
  }
4481
- assignedPaths = assignedPaths.filter(function(p2) {
4482
- return p2.indexOf(quotedPath) !== 0;
4610
+ assignedPaths = assignedPaths.filter(function(p) {
4611
+ return p.indexOf(quotedPath) !== 0;
4483
4612
  });
4484
4613
  assignedPaths.push(quotedPath);
4485
4614
  context = deepRef(data, path8, [], line, column);
@@ -4601,8 +4730,8 @@ var require_XDGAppPaths = __commonJS({
4601
4730
  meta.mainFilename()
4602
4731
  ];
4603
4732
  var nameFallback = "$eval";
4604
- var name = path8.parse(((_c = namePriorityList.find(function(e) {
4605
- return isString(e);
4733
+ var name = path8.parse(((_c = namePriorityList.find(function(e2) {
4734
+ return isString(e2);
4606
4735
  })) !== null && _c !== void 0 ? _c : nameFallback) + suffix).name;
4607
4736
  XDGAppPaths.$name = function $name() {
4608
4737
  return name;
@@ -4659,8 +4788,8 @@ var require_XDG = __commonJS({
4659
4788
  "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js"(exports2) {
4660
4789
  "use strict";
4661
4790
  var __spreadArray = exports2 && exports2.__spreadArray || function(to, from) {
4662
- for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
4663
- to[j] = from[i2];
4791
+ for (var i2 = 0, il = from.length, j2 = to.length; i2 < il; i2++, j2++)
4792
+ to[j2] = from[i2];
4664
4793
  return to;
4665
4794
  };
4666
4795
  exports2.__esModule = true;
@@ -4769,8 +4898,8 @@ var require_OSPaths = __commonJS({
4769
4898
  "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js"(exports2) {
4770
4899
  "use strict";
4771
4900
  var __spreadArray = exports2 && exports2.__spreadArray || function(to, from) {
4772
- for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
4773
- to[j] = from[i2];
4901
+ for (var i2 = 0, il = from.length, j2 = to.length; i2 < il; i2++, j2++)
4902
+ to[j2] = from[i2];
4774
4903
  return to;
4775
4904
  };
4776
4905
  exports2.__esModule = true;
@@ -4795,8 +4924,8 @@ var require_OSPaths = __commonJS({
4795
4924
  env.get("HOME"),
4796
4925
  env.get("HOMEDRIVE") || env.get("HOMEPATH") ? path8.join(env.get("HOMEDRIVE") || "", env.get("HOMEPATH") || "") : void 0
4797
4926
  ];
4798
- return normalizePath(priorityList.find(function(v) {
4799
- return !isEmpty(v);
4927
+ return normalizePath(priorityList.find(function(v2) {
4928
+ return !isEmpty(v2);
4800
4929
  }));
4801
4930
  };
4802
4931
  return isWinOS ? windows() : posix();
@@ -4813,8 +4942,8 @@ var require_OSPaths = __commonJS({
4813
4942
  env.get("TEMP"),
4814
4943
  env.get("TMP")
4815
4944
  ];
4816
- return normalizePath(priorityList.find(function(v) {
4817
- return !isEmpty(v);
4945
+ return normalizePath(priorityList.find(function(v2) {
4946
+ return !isEmpty(v2);
4818
4947
  })) || fallback;
4819
4948
  }
4820
4949
  function windows() {
@@ -4848,10 +4977,10 @@ var require_OSPaths = __commonJS({
4848
4977
  return joinPathToBase(env.get("SystemDrive"), ["\\", "Temp"]);
4849
4978
  }
4850
4979
  ];
4851
- var v = priorityListLazy.find(function(v2) {
4852
- return v2 && !isEmpty(v2());
4980
+ var v2 = priorityListLazy.find(function(v3) {
4981
+ return v3 && !isEmpty(v3());
4853
4982
  });
4854
- return v && normalizePath(v()) || fallback;
4983
+ return v2 && normalizePath(v2()) || fallback;
4855
4984
  }
4856
4985
  return isWinOS ? windows() : posix();
4857
4986
  }
@@ -4876,25 +5005,25 @@ var require_OSPaths = __commonJS({
4876
5005
  var require_node = __commonJS({
4877
5006
  "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js"(exports2) {
4878
5007
  "use strict";
4879
- var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o2, m, k, k2) {
4880
- if (k2 === void 0) k2 = k;
4881
- Object.defineProperty(o2, k2, { enumerable: true, get: function() {
4882
- return m[k];
5008
+ var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
5009
+ if (k22 === void 0) k22 = k3;
5010
+ Object.defineProperty(o3, k22, { enumerable: true, get: function() {
5011
+ return m2[k3];
4883
5012
  } });
4884
- } : function(o2, m, k, k2) {
4885
- if (k2 === void 0) k2 = k;
4886
- o2[k2] = m[k];
5013
+ } : function(o3, m2, k3, k22) {
5014
+ if (k22 === void 0) k22 = k3;
5015
+ o3[k22] = m2[k3];
4887
5016
  });
4888
- var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o2, v) {
4889
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
4890
- } : function(o2, v) {
4891
- o2["default"] = v;
5017
+ var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v2) {
5018
+ Object.defineProperty(o3, "default", { enumerable: true, value: v2 });
5019
+ } : function(o3, v2) {
5020
+ o3["default"] = v2;
4892
5021
  });
4893
5022
  var __importStar = exports2 && exports2.__importStar || function(mod) {
4894
5023
  if (mod && mod.__esModule) return mod;
4895
5024
  var result = {};
4896
5025
  if (mod != null) {
4897
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
5026
+ for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding(result, mod, k3);
4898
5027
  }
4899
5028
  __setModuleDefault(result, mod);
4900
5029
  return result;
@@ -4931,25 +5060,25 @@ var require_mod_cjs = __commonJS({
4931
5060
  var require_node2 = __commonJS({
4932
5061
  "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js"(exports2) {
4933
5062
  "use strict";
4934
- var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o2, m, k, k2) {
4935
- if (k2 === void 0) k2 = k;
4936
- Object.defineProperty(o2, k2, { enumerable: true, get: function() {
4937
- return m[k];
5063
+ var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
5064
+ if (k22 === void 0) k22 = k3;
5065
+ Object.defineProperty(o3, k22, { enumerable: true, get: function() {
5066
+ return m2[k3];
4938
5067
  } });
4939
- } : function(o2, m, k, k2) {
4940
- if (k2 === void 0) k2 = k;
4941
- o2[k2] = m[k];
5068
+ } : function(o3, m2, k3, k22) {
5069
+ if (k22 === void 0) k22 = k3;
5070
+ o3[k22] = m2[k3];
4942
5071
  });
4943
- var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o2, v) {
4944
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
4945
- } : function(o2, v) {
4946
- o2["default"] = v;
5072
+ var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v2) {
5073
+ Object.defineProperty(o3, "default", { enumerable: true, value: v2 });
5074
+ } : function(o3, v2) {
5075
+ o3["default"] = v2;
4947
5076
  });
4948
5077
  var __importStar = exports2 && exports2.__importStar || function(mod) {
4949
5078
  if (mod && mod.__esModule) return mod;
4950
5079
  var result = {};
4951
5080
  if (mod != null) {
4952
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
5081
+ for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding(result, mod, k3);
4953
5082
  }
4954
5083
  __setModuleDefault(result, mod);
4955
5084
  return result;
@@ -4989,25 +5118,25 @@ var require_mod_cjs2 = __commonJS({
4989
5118
  var require_node3 = __commonJS({
4990
5119
  "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js"(exports2) {
4991
5120
  "use strict";
4992
- var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o2, m, k, k2) {
4993
- if (k2 === void 0) k2 = k;
4994
- Object.defineProperty(o2, k2, { enumerable: true, get: function() {
4995
- return m[k];
5121
+ var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
5122
+ if (k22 === void 0) k22 = k3;
5123
+ Object.defineProperty(o3, k22, { enumerable: true, get: function() {
5124
+ return m2[k3];
4996
5125
  } });
4997
- } : function(o2, m, k, k2) {
4998
- if (k2 === void 0) k2 = k;
4999
- o2[k2] = m[k];
5126
+ } : function(o3, m2, k3, k22) {
5127
+ if (k22 === void 0) k22 = k3;
5128
+ o3[k22] = m2[k3];
5000
5129
  });
5001
- var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o2, v) {
5002
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
5003
- } : function(o2, v) {
5004
- o2["default"] = v;
5130
+ var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v2) {
5131
+ Object.defineProperty(o3, "default", { enumerable: true, value: v2 });
5132
+ } : function(o3, v2) {
5133
+ o3["default"] = v2;
5005
5134
  });
5006
5135
  var __importStar = exports2 && exports2.__importStar || function(mod) {
5007
5136
  if (mod && mod.__esModule) return mod;
5008
5137
  var result = {};
5009
5138
  if (mod != null) {
5010
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
5139
+ for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding(result, mod, k3);
5011
5140
  }
5012
5141
  __setModuleDefault(result, mod);
5013
5142
  return result;
@@ -5057,7 +5186,665 @@ __export(index_exports, {
5057
5186
  module.exports = __toCommonJS(index_exports);
5058
5187
  var import_crypto = __toESM(require("crypto"), 1);
5059
5188
  var import_path2 = __toESM(require("path"), 1);
5060
- var p = __toESM(require("@clack/prompts"), 1);
5189
+
5190
+ // ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
5191
+ var import_node_util = require("util");
5192
+
5193
+ // ../../node_modules/.pnpm/@clack+core@0.4.1/node_modules/@clack/core/dist/index.mjs
5194
+ var import_sisteransi = __toESM(require_src(), 1);
5195
+ var import_node_process = require("process");
5196
+ var f = __toESM(require("readline"), 1);
5197
+ var import_node_readline = __toESM(require("readline"), 1);
5198
+ var import_node_tty = require("tty");
5199
+ var import_picocolors = __toESM(require_picocolors(), 1);
5200
+ function J({ onlyFirst: t = false } = {}) {
5201
+ const F2 = ["[\\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("|");
5202
+ return new RegExp(F2, t ? void 0 : "g");
5203
+ }
5204
+ var Q = J();
5205
+ function T(t) {
5206
+ if (typeof t != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
5207
+ return t.replace(Q, "");
5208
+ }
5209
+ function O(t) {
5210
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5211
+ }
5212
+ var P = { exports: {} };
5213
+ (function(t) {
5214
+ var u3 = {};
5215
+ t.exports = u3, u3.eastAsianWidth = function(e2) {
5216
+ var s = e2.charCodeAt(0), i2 = e2.length == 2 ? e2.charCodeAt(1) : 0, D2 = s;
5217
+ return 55296 <= s && s <= 56319 && 56320 <= i2 && i2 <= 57343 && (s &= 1023, i2 &= 1023, D2 = s << 10 | i2, D2 += 65536), D2 == 12288 || 65281 <= D2 && D2 <= 65376 || 65504 <= D2 && D2 <= 65510 ? "F" : D2 == 8361 || 65377 <= D2 && D2 <= 65470 || 65474 <= D2 && D2 <= 65479 || 65482 <= D2 && D2 <= 65487 || 65490 <= D2 && D2 <= 65495 || 65498 <= D2 && D2 <= 65500 || 65512 <= D2 && D2 <= 65518 ? "H" : 4352 <= D2 && D2 <= 4447 || 4515 <= D2 && D2 <= 4519 || 4602 <= D2 && D2 <= 4607 || 9001 <= D2 && D2 <= 9002 || 11904 <= D2 && D2 <= 11929 || 11931 <= D2 && D2 <= 12019 || 12032 <= D2 && D2 <= 12245 || 12272 <= D2 && D2 <= 12283 || 12289 <= D2 && D2 <= 12350 || 12353 <= D2 && D2 <= 12438 || 12441 <= D2 && D2 <= 12543 || 12549 <= D2 && D2 <= 12589 || 12593 <= D2 && D2 <= 12686 || 12688 <= D2 && D2 <= 12730 || 12736 <= D2 && D2 <= 12771 || 12784 <= D2 && D2 <= 12830 || 12832 <= D2 && D2 <= 12871 || 12880 <= D2 && D2 <= 13054 || 13056 <= D2 && D2 <= 19903 || 19968 <= D2 && D2 <= 42124 || 42128 <= D2 && D2 <= 42182 || 43360 <= D2 && D2 <= 43388 || 44032 <= D2 && D2 <= 55203 || 55216 <= D2 && D2 <= 55238 || 55243 <= D2 && D2 <= 55291 || 63744 <= D2 && D2 <= 64255 || 65040 <= D2 && D2 <= 65049 || 65072 <= D2 && D2 <= 65106 || 65108 <= D2 && D2 <= 65126 || 65128 <= D2 && D2 <= 65131 || 110592 <= D2 && D2 <= 110593 || 127488 <= D2 && D2 <= 127490 || 127504 <= D2 && D2 <= 127546 || 127552 <= D2 && D2 <= 127560 || 127568 <= D2 && D2 <= 127569 || 131072 <= D2 && D2 <= 194367 || 177984 <= D2 && D2 <= 196605 || 196608 <= D2 && D2 <= 262141 ? "W" : 32 <= D2 && D2 <= 126 || 162 <= D2 && D2 <= 163 || 165 <= D2 && D2 <= 166 || D2 == 172 || D2 == 175 || 10214 <= D2 && D2 <= 10221 || 10629 <= D2 && D2 <= 10630 ? "Na" : D2 == 161 || D2 == 164 || 167 <= D2 && D2 <= 168 || D2 == 170 || 173 <= D2 && D2 <= 174 || 176 <= D2 && D2 <= 180 || 182 <= D2 && D2 <= 186 || 188 <= D2 && D2 <= 191 || D2 == 198 || D2 == 208 || 215 <= D2 && D2 <= 216 || 222 <= D2 && D2 <= 225 || D2 == 230 || 232 <= D2 && D2 <= 234 || 236 <= D2 && D2 <= 237 || D2 == 240 || 242 <= D2 && D2 <= 243 || 247 <= D2 && D2 <= 250 || D2 == 252 || D2 == 254 || D2 == 257 || D2 == 273 || D2 == 275 || D2 == 283 || 294 <= D2 && D2 <= 295 || D2 == 299 || 305 <= D2 && D2 <= 307 || D2 == 312 || 319 <= D2 && D2 <= 322 || D2 == 324 || 328 <= D2 && D2 <= 331 || D2 == 333 || 338 <= D2 && D2 <= 339 || 358 <= D2 && D2 <= 359 || D2 == 363 || D2 == 462 || D2 == 464 || D2 == 466 || D2 == 468 || D2 == 470 || D2 == 472 || D2 == 474 || D2 == 476 || D2 == 593 || D2 == 609 || D2 == 708 || D2 == 711 || 713 <= D2 && D2 <= 715 || D2 == 717 || D2 == 720 || 728 <= D2 && D2 <= 731 || D2 == 733 || D2 == 735 || 768 <= D2 && D2 <= 879 || 913 <= D2 && D2 <= 929 || 931 <= D2 && D2 <= 937 || 945 <= D2 && D2 <= 961 || 963 <= D2 && D2 <= 969 || D2 == 1025 || 1040 <= D2 && D2 <= 1103 || D2 == 1105 || D2 == 8208 || 8211 <= D2 && D2 <= 8214 || 8216 <= D2 && D2 <= 8217 || 8220 <= D2 && D2 <= 8221 || 8224 <= D2 && D2 <= 8226 || 8228 <= D2 && D2 <= 8231 || D2 == 8240 || 8242 <= D2 && D2 <= 8243 || D2 == 8245 || D2 == 8251 || D2 == 8254 || D2 == 8308 || D2 == 8319 || 8321 <= D2 && D2 <= 8324 || D2 == 8364 || D2 == 8451 || D2 == 8453 || D2 == 8457 || D2 == 8467 || D2 == 8470 || 8481 <= D2 && D2 <= 8482 || D2 == 8486 || D2 == 8491 || 8531 <= D2 && D2 <= 8532 || 8539 <= D2 && D2 <= 8542 || 8544 <= D2 && D2 <= 8555 || 8560 <= D2 && D2 <= 8569 || D2 == 8585 || 8592 <= D2 && D2 <= 8601 || 8632 <= D2 && D2 <= 8633 || D2 == 8658 || D2 == 8660 || D2 == 8679 || D2 == 8704 || 8706 <= D2 && D2 <= 8707 || 8711 <= D2 && D2 <= 8712 || D2 == 8715 || D2 == 8719 || D2 == 8721 || D2 == 8725 || D2 == 8730 || 8733 <= D2 && D2 <= 8736 || D2 == 8739 || D2 == 8741 || 8743 <= D2 && D2 <= 8748 || D2 == 8750 || 8756 <= D2 && D2 <= 8759 || 8764 <= D2 && D2 <= 8765 || D2 == 8776 || D2 == 8780 || D2 == 8786 || 8800 <= D2 && D2 <= 8801 || 8804 <= D2 && D2 <= 8807 || 8810 <= D2 && D2 <= 8811 || 8814 <= D2 && D2 <= 8815 || 8834 <= D2 && D2 <= 8835 || 8838 <= D2 && D2 <= 8839 || D2 == 8853 || D2 == 8857 || D2 == 8869 || D2 == 8895 || D2 == 8978 || 9312 <= D2 && D2 <= 9449 || 9451 <= D2 && D2 <= 9547 || 9552 <= D2 && D2 <= 9587 || 9600 <= D2 && D2 <= 9615 || 9618 <= D2 && D2 <= 9621 || 9632 <= D2 && D2 <= 9633 || 9635 <= D2 && D2 <= 9641 || 9650 <= D2 && D2 <= 9651 || 9654 <= D2 && D2 <= 9655 || 9660 <= D2 && D2 <= 9661 || 9664 <= D2 && D2 <= 9665 || 9670 <= D2 && D2 <= 9672 || D2 == 9675 || 9678 <= D2 && D2 <= 9681 || 9698 <= D2 && D2 <= 9701 || D2 == 9711 || 9733 <= D2 && D2 <= 9734 || D2 == 9737 || 9742 <= D2 && D2 <= 9743 || 9748 <= D2 && D2 <= 9749 || D2 == 9756 || D2 == 9758 || D2 == 9792 || D2 == 9794 || 9824 <= D2 && D2 <= 9825 || 9827 <= D2 && D2 <= 9829 || 9831 <= D2 && D2 <= 9834 || 9836 <= D2 && D2 <= 9837 || D2 == 9839 || 9886 <= D2 && D2 <= 9887 || 9918 <= D2 && D2 <= 9919 || 9924 <= D2 && D2 <= 9933 || 9935 <= D2 && D2 <= 9953 || D2 == 9955 || 9960 <= D2 && D2 <= 9983 || D2 == 10045 || D2 == 10071 || 10102 <= D2 && D2 <= 10111 || 11093 <= D2 && D2 <= 11097 || 12872 <= D2 && D2 <= 12879 || 57344 <= D2 && D2 <= 63743 || 65024 <= D2 && D2 <= 65039 || D2 == 65533 || 127232 <= D2 && D2 <= 127242 || 127248 <= D2 && D2 <= 127277 || 127280 <= D2 && D2 <= 127337 || 127344 <= D2 && D2 <= 127386 || 917760 <= D2 && D2 <= 917999 || 983040 <= D2 && D2 <= 1048573 || 1048576 <= D2 && D2 <= 1114109 ? "A" : "N";
5218
+ }, u3.characterLength = function(e2) {
5219
+ var s = this.eastAsianWidth(e2);
5220
+ return s == "F" || s == "W" || s == "A" ? 2 : 1;
5221
+ };
5222
+ function F2(e2) {
5223
+ return e2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
5224
+ }
5225
+ u3.length = function(e2) {
5226
+ for (var s = F2(e2), i2 = 0, D2 = 0; D2 < s.length; D2++) i2 = i2 + this.characterLength(s[D2]);
5227
+ return i2;
5228
+ }, u3.slice = function(e2, s, i2) {
5229
+ textLen = u3.length(e2), s = s || 0, i2 = i2 || 1, s < 0 && (s = textLen + s), i2 < 0 && (i2 = textLen + i2);
5230
+ for (var D2 = "", C2 = 0, o3 = F2(e2), E = 0; E < o3.length; E++) {
5231
+ var a2 = o3[E], n2 = u3.length(a2);
5232
+ if (C2 >= s - (n2 == 2 ? 1 : 0)) if (C2 + n2 <= i2) D2 += a2;
5233
+ else break;
5234
+ C2 += n2;
5235
+ }
5236
+ return D2;
5237
+ };
5238
+ })(P);
5239
+ var X = P.exports;
5240
+ var DD = O(X);
5241
+ var uD = function() {
5242
+ 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;
5243
+ };
5244
+ var FD = O(uD);
5245
+ function A(t, u3 = {}) {
5246
+ if (typeof t != "string" || t.length === 0 || (u3 = { ambiguousIsNarrow: true, ...u3 }, t = T(t), t.length === 0)) return 0;
5247
+ t = t.replace(FD(), " ");
5248
+ const F2 = u3.ambiguousIsNarrow ? 1 : 2;
5249
+ let e2 = 0;
5250
+ for (const s of t) {
5251
+ const i2 = s.codePointAt(0);
5252
+ if (i2 <= 31 || i2 >= 127 && i2 <= 159 || i2 >= 768 && i2 <= 879) continue;
5253
+ switch (DD.eastAsianWidth(s)) {
5254
+ case "F":
5255
+ case "W":
5256
+ e2 += 2;
5257
+ break;
5258
+ case "A":
5259
+ e2 += F2;
5260
+ break;
5261
+ default:
5262
+ e2 += 1;
5263
+ }
5264
+ }
5265
+ return e2;
5266
+ }
5267
+ var m = 10;
5268
+ var L = (t = 0) => (u3) => `\x1B[${u3 + t}m`;
5269
+ var N = (t = 0) => (u3) => `\x1B[${38 + t};5;${u3}m`;
5270
+ var I = (t = 0) => (u3, F2, e2) => `\x1B[${38 + t};2;${u3};${F2};${e2}m`;
5271
+ var r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
5272
+ Object.keys(r.modifier);
5273
+ var tD = Object.keys(r.color);
5274
+ var eD = Object.keys(r.bgColor);
5275
+ [...tD, ...eD];
5276
+ function sD() {
5277
+ const t = /* @__PURE__ */ new Map();
5278
+ for (const [u3, F2] of Object.entries(r)) {
5279
+ for (const [e2, s] of Object.entries(F2)) r[e2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F2[e2] = r[e2], t.set(s[0], s[1]);
5280
+ Object.defineProperty(r, u3, { value: F2, enumerable: false });
5281
+ }
5282
+ return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u3, F2, e2) => u3 === F2 && F2 === e2 ? u3 < 8 ? 16 : u3 > 248 ? 231 : Math.round((u3 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u3 / 255 * 5) + 6 * Math.round(F2 / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u3) => {
5283
+ const F2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u3.toString(16));
5284
+ if (!F2) return [0, 0, 0];
5285
+ let [e2] = F2;
5286
+ e2.length === 3 && (e2 = [...e2].map((i2) => i2 + i2).join(""));
5287
+ const s = Number.parseInt(e2, 16);
5288
+ return [s >> 16 & 255, s >> 8 & 255, s & 255];
5289
+ }, enumerable: false }, hexToAnsi256: { value: (u3) => r.rgbToAnsi256(...r.hexToRgb(u3)), enumerable: false }, ansi256ToAnsi: { value: (u3) => {
5290
+ if (u3 < 8) return 30 + u3;
5291
+ if (u3 < 16) return 90 + (u3 - 8);
5292
+ let F2, e2, s;
5293
+ if (u3 >= 232) F2 = ((u3 - 232) * 10 + 8) / 255, e2 = F2, s = F2;
5294
+ else {
5295
+ u3 -= 16;
5296
+ const C2 = u3 % 36;
5297
+ F2 = Math.floor(u3 / 36) / 5, e2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
5298
+ }
5299
+ const i2 = Math.max(F2, e2, s) * 2;
5300
+ if (i2 === 0) return 30;
5301
+ let D2 = 30 + (Math.round(s) << 2 | Math.round(e2) << 1 | Math.round(F2));
5302
+ return i2 === 2 && (D2 += 60), D2;
5303
+ }, enumerable: false }, rgbToAnsi: { value: (u3, F2, e2) => r.ansi256ToAnsi(r.rgbToAnsi256(u3, F2, e2)), enumerable: false }, hexToAnsi: { value: (u3) => r.ansi256ToAnsi(r.hexToAnsi256(u3)), enumerable: false } }), r;
5304
+ }
5305
+ var iD = sD();
5306
+ var v = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
5307
+ var CD = 39;
5308
+ var w = "\x07";
5309
+ var W = "[";
5310
+ var rD = "]";
5311
+ var R = "m";
5312
+ var y = `${rD}8;;`;
5313
+ var V = (t) => `${v.values().next().value}${W}${t}${R}`;
5314
+ var z = (t) => `${v.values().next().value}${y}${t}${w}`;
5315
+ var ED = (t) => t.split(" ").map((u3) => A(u3));
5316
+ var _ = (t, u3, F2) => {
5317
+ const e2 = [...u3];
5318
+ let s = false, i2 = false, D2 = A(T(t[t.length - 1]));
5319
+ for (const [C2, o3] of e2.entries()) {
5320
+ const E = A(o3);
5321
+ if (D2 + E <= F2 ? t[t.length - 1] += o3 : (t.push(o3), D2 = 0), v.has(o3) && (s = true, i2 = e2.slice(C2 + 1).join("").startsWith(y)), s) {
5322
+ i2 ? o3 === w && (s = false, i2 = false) : o3 === R && (s = false);
5323
+ continue;
5324
+ }
5325
+ D2 += E, D2 === F2 && C2 < e2.length - 1 && (t.push(""), D2 = 0);
5326
+ }
5327
+ !D2 && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
5328
+ };
5329
+ var nD = (t) => {
5330
+ const u3 = t.split(" ");
5331
+ let F2 = u3.length;
5332
+ for (; F2 > 0 && !(A(u3[F2 - 1]) > 0); ) F2--;
5333
+ return F2 === u3.length ? t : u3.slice(0, F2).join(" ") + u3.slice(F2).join("");
5334
+ };
5335
+ var oD = (t, u3, F2 = {}) => {
5336
+ if (F2.trim !== false && t.trim() === "") return "";
5337
+ let e2 = "", s, i2;
5338
+ const D2 = ED(t);
5339
+ let C2 = [""];
5340
+ for (const [E, a2] of t.split(" ").entries()) {
5341
+ F2.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
5342
+ let n2 = A(C2[C2.length - 1]);
5343
+ if (E !== 0 && (n2 >= u3 && (F2.wordWrap === false || F2.trim === false) && (C2.push(""), n2 = 0), (n2 > 0 || F2.trim === false) && (C2[C2.length - 1] += " ", n2++)), F2.hard && D2[E] > u3) {
5344
+ const B2 = u3 - n2, p = 1 + Math.floor((D2[E] - B2 - 1) / u3);
5345
+ Math.floor((D2[E] - 1) / u3) < p && C2.push(""), _(C2, a2, u3);
5346
+ continue;
5347
+ }
5348
+ if (n2 + D2[E] > u3 && n2 > 0 && D2[E] > 0) {
5349
+ if (F2.wordWrap === false && n2 < u3) {
5350
+ _(C2, a2, u3);
5351
+ continue;
5352
+ }
5353
+ C2.push("");
5354
+ }
5355
+ if (n2 + D2[E] > u3 && F2.wordWrap === false) {
5356
+ _(C2, a2, u3);
5357
+ continue;
5358
+ }
5359
+ C2[C2.length - 1] += a2;
5360
+ }
5361
+ F2.trim !== false && (C2 = C2.map((E) => nD(E)));
5362
+ const o3 = [...C2.join(`
5363
+ `)];
5364
+ for (const [E, a2] of o3.entries()) {
5365
+ if (e2 += a2, v.has(a2)) {
5366
+ const { groups: B2 } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y}(?<uri>.*)${w})`).exec(o3.slice(E).join("")) || { groups: {} };
5367
+ if (B2.code !== void 0) {
5368
+ const p = Number.parseFloat(B2.code);
5369
+ s = p === CD ? void 0 : p;
5370
+ } else B2.uri !== void 0 && (i2 = B2.uri.length === 0 ? void 0 : B2.uri);
5371
+ }
5372
+ const n2 = iD.codes.get(Number(s));
5373
+ o3[E + 1] === `
5374
+ ` ? (i2 && (e2 += z("")), s && n2 && (e2 += V(n2))) : a2 === `
5375
+ ` && (s && n2 && (e2 += V(s)), i2 && (e2 += z(i2)));
5376
+ }
5377
+ return e2;
5378
+ };
5379
+ function G(t, u3, F2) {
5380
+ return String(t).normalize().replace(/\r\n/g, `
5381
+ `).split(`
5382
+ `).map((e2) => oD(e2, u3, F2)).join(`
5383
+ `);
5384
+ }
5385
+ var aD = ["up", "down", "left", "right", "space", "enter", "cancel"];
5386
+ var c = { actions: new Set(aD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
5387
+ function k(t, u3) {
5388
+ if (typeof t == "string") return c.aliases.get(t) === u3;
5389
+ for (const F2 of t) if (F2 !== void 0 && k(F2, u3)) return true;
5390
+ return false;
5391
+ }
5392
+ function lD(t, u3) {
5393
+ if (t === u3) return;
5394
+ const F2 = t.split(`
5395
+ `), e2 = u3.split(`
5396
+ `), s = [];
5397
+ for (let i2 = 0; i2 < Math.max(F2.length, e2.length); i2++) F2[i2] !== e2[i2] && s.push(i2);
5398
+ return s;
5399
+ }
5400
+ var xD = globalThis.process.platform.startsWith("win");
5401
+ var S = Symbol("clack:cancel");
5402
+ function BD(t) {
5403
+ return t === S;
5404
+ }
5405
+ function d(t, u3) {
5406
+ const F2 = t;
5407
+ F2.isTTY && F2.setRawMode(u3);
5408
+ }
5409
+ function cD({ input: t = import_node_process.stdin, output: u3 = import_node_process.stdout, overwrite: F2 = true, hideCursor: e2 = true } = {}) {
5410
+ const s = f.createInterface({ input: t, output: u3, prompt: "", tabSize: 1 });
5411
+ f.emitKeypressEvents(t, s), t.isTTY && t.setRawMode(true);
5412
+ const i2 = (D2, { name: C2, sequence: o3 }) => {
5413
+ const E = String(D2);
5414
+ if (k([E, C2, o3], "cancel")) {
5415
+ e2 && u3.write(import_sisteransi.cursor.show), process.exit(0);
5416
+ return;
5417
+ }
5418
+ if (!F2) return;
5419
+ const a2 = C2 === "return" ? 0 : -1, n2 = C2 === "return" ? -1 : 0;
5420
+ f.moveCursor(u3, a2, n2, () => {
5421
+ f.clearLine(u3, 1, () => {
5422
+ t.once("keypress", i2);
5423
+ });
5424
+ });
5425
+ };
5426
+ return e2 && u3.write(import_sisteransi.cursor.hide), t.once("keypress", i2), () => {
5427
+ t.off("keypress", i2), e2 && u3.write(import_sisteransi.cursor.show), t.isTTY && !xD && t.setRawMode(false), s.terminal = false, s.close();
5428
+ };
5429
+ }
5430
+ var AD = Object.defineProperty;
5431
+ var pD = (t, u3, F2) => u3 in t ? AD(t, u3, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u3] = F2;
5432
+ var h = (t, u3, F2) => (pD(t, typeof u3 != "symbol" ? u3 + "" : u3, F2), F2);
5433
+ var x = class {
5434
+ constructor(u3, F2 = true) {
5435
+ h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
5436
+ const { input: e2 = import_node_process.stdin, output: s = import_node_process.stdout, render: i2, signal: D2, ...C2 } = u3;
5437
+ this.opts = C2, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i2.bind(this), this._track = F2, this._abortSignal = D2, this.input = e2, this.output = s;
5438
+ }
5439
+ unsubscribe() {
5440
+ this._subscribers.clear();
5441
+ }
5442
+ setSubscriber(u3, F2) {
5443
+ const e2 = this._subscribers.get(u3) ?? [];
5444
+ e2.push(F2), this._subscribers.set(u3, e2);
5445
+ }
5446
+ on(u3, F2) {
5447
+ this.setSubscriber(u3, { cb: F2 });
5448
+ }
5449
+ once(u3, F2) {
5450
+ this.setSubscriber(u3, { cb: F2, once: true });
5451
+ }
5452
+ emit(u3, ...F2) {
5453
+ const e2 = this._subscribers.get(u3) ?? [], s = [];
5454
+ for (const i2 of e2) i2.cb(...F2), i2.once && s.push(() => e2.splice(e2.indexOf(i2), 1));
5455
+ for (const i2 of s) i2();
5456
+ }
5457
+ prompt() {
5458
+ return new Promise((u3, F2) => {
5459
+ if (this._abortSignal) {
5460
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u3(S);
5461
+ this._abortSignal.addEventListener("abort", () => {
5462
+ this.state = "cancel", this.close();
5463
+ }, { once: true });
5464
+ }
5465
+ const e2 = new import_node_tty.WriteStream(0);
5466
+ e2._write = (s, i2, D2) => {
5467
+ this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
5468
+ }, this.input.pipe(e2), this.rl = import_node_readline.default.createInterface({ input: this.input, output: e2, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), import_node_readline.default.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
5469
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u3(this.value);
5470
+ }), this.once("cancel", () => {
5471
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u3(S);
5472
+ });
5473
+ });
5474
+ }
5475
+ onKeypress(u3, F2) {
5476
+ if (this.state === "error" && (this.state = "active"), F2?.name && (!this._track && c.aliases.has(F2.name) && this.emit("cursor", c.aliases.get(F2.name)), c.actions.has(F2.name) && this.emit("cursor", F2.name)), u3 && (u3.toLowerCase() === "y" || u3.toLowerCase() === "n") && this.emit("confirm", u3.toLowerCase() === "y"), u3 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u3 && this.emit("key", u3.toLowerCase()), F2?.name === "return") {
5477
+ if (this.opts.validate) {
5478
+ const e2 = this.opts.validate(this.value);
5479
+ e2 && (this.error = e2 instanceof Error ? e2.message : e2, this.state = "error", this.rl?.write(this.value));
5480
+ }
5481
+ this.state !== "error" && (this.state = "submit");
5482
+ }
5483
+ k([u3, F2?.name, F2?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
5484
+ }
5485
+ close() {
5486
+ this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
5487
+ `), d(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
5488
+ }
5489
+ restoreCursor() {
5490
+ const u3 = G(this._prevFrame, process.stdout.columns, { hard: true }).split(`
5491
+ `).length - 1;
5492
+ this.output.write(import_sisteransi.cursor.move(-999, u3 * -1));
5493
+ }
5494
+ render() {
5495
+ const u3 = G(this._render(this) ?? "", process.stdout.columns, { hard: true });
5496
+ if (u3 !== this._prevFrame) {
5497
+ if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
5498
+ else {
5499
+ const F2 = lD(this._prevFrame, u3);
5500
+ if (this.restoreCursor(), F2 && F2?.length === 1) {
5501
+ const e2 = F2[0];
5502
+ this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.lines(1));
5503
+ const s = u3.split(`
5504
+ `);
5505
+ this.output.write(s[e2]), this._prevFrame = u3, this.output.write(import_sisteransi.cursor.move(0, s.length - e2 - 1));
5506
+ return;
5507
+ }
5508
+ if (F2 && F2?.length > 1) {
5509
+ const e2 = F2[0];
5510
+ this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.down());
5511
+ const s = u3.split(`
5512
+ `).slice(e2);
5513
+ this.output.write(s.join(`
5514
+ `)), this._prevFrame = u3;
5515
+ return;
5516
+ }
5517
+ this.output.write(import_sisteransi.erase.down());
5518
+ }
5519
+ this.output.write(u3), this.state === "initial" && (this.state = "active"), this._prevFrame = u3;
5520
+ }
5521
+ }
5522
+ };
5523
+ var fD = class extends x {
5524
+ get cursor() {
5525
+ return this.value ? 0 : 1;
5526
+ }
5527
+ get _value() {
5528
+ return this.cursor === 0;
5529
+ }
5530
+ constructor(u3) {
5531
+ super(u3, false), this.value = !!u3.initialValue, this.on("value", () => {
5532
+ this.value = this._value;
5533
+ }), this.on("confirm", (F2) => {
5534
+ this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = F2, this.state = "submit", this.close();
5535
+ }), this.on("cursor", () => {
5536
+ this.value = !this.value;
5537
+ });
5538
+ }
5539
+ };
5540
+ var yD = Object.defineProperty;
5541
+ var _D = (t, u3, F2) => u3 in t ? yD(t, u3, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u3] = F2;
5542
+ var Z = (t, u3, F2) => (_D(t, typeof u3 != "symbol" ? u3 + "" : u3, F2), F2);
5543
+ var kD = class extends x {
5544
+ constructor({ mask: u3, ...F2 }) {
5545
+ super(F2), Z(this, "valueWithCursor", ""), Z(this, "_mask", "\u2022"), this._mask = u3 ?? "\u2022", this.on("finalize", () => {
5546
+ this.valueWithCursor = this.masked;
5547
+ }), this.on("value", () => {
5548
+ if (this.cursor >= this.value.length) this.valueWithCursor = `${this.masked}${import_picocolors.default.inverse(import_picocolors.default.hidden("_"))}`;
5549
+ else {
5550
+ const e2 = this.masked.slice(0, this.cursor), s = this.masked.slice(this.cursor);
5551
+ this.valueWithCursor = `${e2}${import_picocolors.default.inverse(s[0])}${s.slice(1)}`;
5552
+ }
5553
+ });
5554
+ }
5555
+ get cursor() {
5556
+ return this._cursor;
5557
+ }
5558
+ get masked() {
5559
+ return this.value.replaceAll(/./g, this._mask);
5560
+ }
5561
+ };
5562
+ var SD = Object.defineProperty;
5563
+ var $D = (t, u3, F2) => u3 in t ? SD(t, u3, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u3] = F2;
5564
+ var q = (t, u3, F2) => ($D(t, typeof u3 != "symbol" ? u3 + "" : u3, F2), F2);
5565
+ var jD = class extends x {
5566
+ constructor(u3) {
5567
+ super(u3, false), q(this, "options"), q(this, "cursor", 0), this.options = u3.options, this.cursor = this.options.findIndex(({ value: F2 }) => F2 === u3.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F2) => {
5568
+ switch (F2) {
5569
+ case "left":
5570
+ case "up":
5571
+ this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
5572
+ break;
5573
+ case "down":
5574
+ case "right":
5575
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
5576
+ break;
5577
+ }
5578
+ this.changeValue();
5579
+ });
5580
+ }
5581
+ get _value() {
5582
+ return this.options[this.cursor];
5583
+ }
5584
+ changeValue() {
5585
+ this.value = this._value.value;
5586
+ }
5587
+ };
5588
+ var PD = class extends x {
5589
+ get valueWithCursor() {
5590
+ if (this.state === "submit") return this.value;
5591
+ if (this.cursor >= this.value.length) return `${this.value}\u2588`;
5592
+ const u3 = this.value.slice(0, this.cursor), [F2, ...e2] = this.value.slice(this.cursor);
5593
+ return `${u3}${import_picocolors.default.inverse(F2)}${e2.join("")}`;
5594
+ }
5595
+ get cursor() {
5596
+ return this._cursor;
5597
+ }
5598
+ constructor(u3) {
5599
+ super(u3), this.on("finalize", () => {
5600
+ this.value || (this.value = u3.defaultValue);
5601
+ });
5602
+ }
5603
+ };
5604
+
5605
+ // ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
5606
+ var import_node_process2 = __toESM(require("process"), 1);
5607
+ var import_picocolors2 = __toESM(require_picocolors(), 1);
5608
+ var import_sisteransi2 = __toESM(require_src(), 1);
5609
+ function ce() {
5610
+ return import_node_process2.default.platform !== "win32" ? import_node_process2.default.env.TERM !== "linux" : !!import_node_process2.default.env.CI || !!import_node_process2.default.env.WT_SESSION || !!import_node_process2.default.env.TERMINUS_SUBLIME || import_node_process2.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process2.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process2.default.env.TERM_PROGRAM === "vscode" || import_node_process2.default.env.TERM === "xterm-256color" || import_node_process2.default.env.TERM === "alacritty" || import_node_process2.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
5611
+ }
5612
+ var V2 = ce();
5613
+ var u = (t, n2) => V2 ? t : n2;
5614
+ var le = u("\u25C6", "*");
5615
+ var L2 = u("\u25A0", "x");
5616
+ var W2 = u("\u25B2", "x");
5617
+ var C = u("\u25C7", "o");
5618
+ var ue = u("\u250C", "T");
5619
+ var o = u("\u2502", "|");
5620
+ var d2 = u("\u2514", "\u2014");
5621
+ var k2 = u("\u25CF", ">");
5622
+ var P2 = u("\u25CB", " ");
5623
+ var A2 = u("\u25FB", "[\u2022]");
5624
+ var T2 = u("\u25FC", "[+]");
5625
+ var F = u("\u25FB", "[ ]");
5626
+ var $e = u("\u25AA", "\u2022");
5627
+ var _2 = u("\u2500", "-");
5628
+ var me = u("\u256E", "+");
5629
+ var de = u("\u251C", "+");
5630
+ var pe = u("\u256F", "+");
5631
+ var q2 = u("\u25CF", "\u2022");
5632
+ var D = u("\u25C6", "*");
5633
+ var U2 = u("\u25B2", "!");
5634
+ var K = u("\u25A0", "x");
5635
+ var w2 = (t) => {
5636
+ switch (t) {
5637
+ case "initial":
5638
+ case "active":
5639
+ return import_picocolors2.default.cyan(le);
5640
+ case "cancel":
5641
+ return import_picocolors2.default.red(L2);
5642
+ case "error":
5643
+ return import_picocolors2.default.yellow(W2);
5644
+ case "submit":
5645
+ return import_picocolors2.default.green(C);
5646
+ }
5647
+ };
5648
+ var B = (t) => {
5649
+ const { cursor: n2, options: s, style: r2 } = t, i2 = t.maxItems ?? Number.POSITIVE_INFINITY, a2 = Math.max(process.stdout.rows - 4, 0), c4 = Math.min(a2, Math.max(i2, 5));
5650
+ let l2 = 0;
5651
+ n2 >= l2 + c4 - 3 ? l2 = Math.max(Math.min(n2 - c4 + 3, s.length - c4), 0) : n2 < l2 + 2 && (l2 = Math.max(n2 - 2, 0));
5652
+ const $3 = c4 < s.length && l2 > 0, p = c4 < s.length && l2 + c4 < s.length;
5653
+ return s.slice(l2, l2 + c4).map((M2, v2, x2) => {
5654
+ const j2 = v2 === 0 && $3, E = v2 === x2.length - 1 && p;
5655
+ return j2 || E ? import_picocolors2.default.dim("...") : r2(M2, v2 + l2 === n2);
5656
+ });
5657
+ };
5658
+ var he = (t) => new PD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
5659
+ const n2 = `${import_picocolors2.default.gray(o)}
5660
+ ${w2(this.state)} ${t.message}
5661
+ `, s = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), r2 = this.value ? this.valueWithCursor : s;
5662
+ switch (this.state) {
5663
+ case "error":
5664
+ return `${n2.trim()}
5665
+ ${import_picocolors2.default.yellow(o)} ${r2}
5666
+ ${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
5667
+ `;
5668
+ case "submit":
5669
+ return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(this.value || t.placeholder)}`;
5670
+ case "cancel":
5671
+ return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
5672
+ ${import_picocolors2.default.gray(o)}` : ""}`;
5673
+ default:
5674
+ return `${n2}${import_picocolors2.default.cyan(o)} ${r2}
5675
+ ${import_picocolors2.default.cyan(d2)}
5676
+ `;
5677
+ }
5678
+ } }).prompt();
5679
+ var ge = (t) => new kD({ validate: t.validate, mask: t.mask ?? $e, render() {
5680
+ const n2 = `${import_picocolors2.default.gray(o)}
5681
+ ${w2(this.state)} ${t.message}
5682
+ `, s = this.valueWithCursor, r2 = this.masked;
5683
+ switch (this.state) {
5684
+ case "error":
5685
+ return `${n2.trim()}
5686
+ ${import_picocolors2.default.yellow(o)} ${r2}
5687
+ ${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
5688
+ `;
5689
+ case "submit":
5690
+ return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(r2)}`;
5691
+ case "cancel":
5692
+ return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(r2 ?? ""))}${r2 ? `
5693
+ ${import_picocolors2.default.gray(o)}` : ""}`;
5694
+ default:
5695
+ return `${n2}${import_picocolors2.default.cyan(o)} ${s}
5696
+ ${import_picocolors2.default.cyan(d2)}
5697
+ `;
5698
+ }
5699
+ } }).prompt();
5700
+ var ye = (t) => {
5701
+ const n2 = t.active ?? "Yes", s = t.inactive ?? "No";
5702
+ return new fD({ active: n2, inactive: s, initialValue: t.initialValue ?? true, render() {
5703
+ const r2 = `${import_picocolors2.default.gray(o)}
5704
+ ${w2(this.state)} ${t.message}
5705
+ `, i2 = this.value ? n2 : s;
5706
+ switch (this.state) {
5707
+ case "submit":
5708
+ return `${r2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(i2)}`;
5709
+ case "cancel":
5710
+ return `${r2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i2))}
5711
+ ${import_picocolors2.default.gray(o)}`;
5712
+ default:
5713
+ return `${r2}${import_picocolors2.default.cyan(o)} ${this.value ? `${import_picocolors2.default.green(k2)} ${n2}` : `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(n2)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.green(k2)} ${s}`}
5714
+ ${import_picocolors2.default.cyan(d2)}
5715
+ `;
5716
+ }
5717
+ } }).prompt();
5718
+ };
5719
+ var ve = (t) => {
5720
+ const n2 = (s, r2) => {
5721
+ const i2 = s.label ?? String(s.value);
5722
+ switch (r2) {
5723
+ case "selected":
5724
+ return `${import_picocolors2.default.dim(i2)}`;
5725
+ case "active":
5726
+ return `${import_picocolors2.default.green(k2)} ${i2} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}`;
5727
+ case "cancelled":
5728
+ return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i2))}`;
5729
+ default:
5730
+ return `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(i2)}`;
5731
+ }
5732
+ };
5733
+ return new jD({ options: t.options, initialValue: t.initialValue, render() {
5734
+ const s = `${import_picocolors2.default.gray(o)}
5735
+ ${w2(this.state)} ${t.message}
5736
+ `;
5737
+ switch (this.state) {
5738
+ case "submit":
5739
+ return `${s}${import_picocolors2.default.gray(o)} ${n2(this.options[this.cursor], "selected")}`;
5740
+ case "cancel":
5741
+ return `${s}${import_picocolors2.default.gray(o)} ${n2(this.options[this.cursor], "cancelled")}
5742
+ ${import_picocolors2.default.gray(o)}`;
5743
+ default:
5744
+ return `${s}${import_picocolors2.default.cyan(o)} ${B({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (r2, i2) => n2(r2, i2 ? "active" : "inactive") }).join(`
5745
+ ${import_picocolors2.default.cyan(o)} `)}
5746
+ ${import_picocolors2.default.cyan(d2)}
5747
+ `;
5748
+ }
5749
+ } }).prompt();
5750
+ };
5751
+ var Me = (t = "", n2 = "") => {
5752
+ const s = `
5753
+ ${t}
5754
+ `.split(`
5755
+ `), r2 = (0, import_node_util.stripVTControlCharacters)(n2).length, i2 = Math.max(s.reduce((c4, l2) => {
5756
+ const $3 = (0, import_node_util.stripVTControlCharacters)(l2);
5757
+ return $3.length > c4 ? $3.length : c4;
5758
+ }, 0), r2) + 2, a2 = s.map((c4) => `${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(c4)}${" ".repeat(i2 - (0, import_node_util.stripVTControlCharacters)(c4).length)}${import_picocolors2.default.gray(o)}`).join(`
5759
+ `);
5760
+ process.stdout.write(`${import_picocolors2.default.gray(o)}
5761
+ ${import_picocolors2.default.green(C)} ${import_picocolors2.default.reset(n2)} ${import_picocolors2.default.gray(_2.repeat(Math.max(i2 - r2 - 1, 1)) + me)}
5762
+ ${a2}
5763
+ ${import_picocolors2.default.gray(de + _2.repeat(i2 + 2) + pe)}
5764
+ `);
5765
+ };
5766
+ var f2 = { message: (t = "", { symbol: n2 = import_picocolors2.default.gray(o) } = {}) => {
5767
+ const s = [`${import_picocolors2.default.gray(o)}`];
5768
+ if (t) {
5769
+ const [r2, ...i2] = t.split(`
5770
+ `);
5771
+ s.push(`${n2} ${r2}`, ...i2.map((a2) => `${import_picocolors2.default.gray(o)} ${a2}`));
5772
+ }
5773
+ process.stdout.write(`${s.join(`
5774
+ `)}
5775
+ `);
5776
+ }, info: (t) => {
5777
+ f2.message(t, { symbol: import_picocolors2.default.blue(q2) });
5778
+ }, success: (t) => {
5779
+ f2.message(t, { symbol: import_picocolors2.default.green(D) });
5780
+ }, step: (t) => {
5781
+ f2.message(t, { symbol: import_picocolors2.default.green(C) });
5782
+ }, warn: (t) => {
5783
+ f2.message(t, { symbol: import_picocolors2.default.yellow(U2) });
5784
+ }, warning: (t) => {
5785
+ f2.warn(t);
5786
+ }, error: (t) => {
5787
+ f2.message(t, { symbol: import_picocolors2.default.red(K) });
5788
+ } };
5789
+ var J2 = `${import_picocolors2.default.gray(o)} `;
5790
+ var Y = ({ indicator: t = "dots" } = {}) => {
5791
+ const n2 = V2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], s = V2 ? 80 : 120, r2 = process.env.CI === "true";
5792
+ let i2, a2, c4 = false, l2 = "", $3, p = performance.now();
5793
+ const M2 = (m2) => {
5794
+ const h3 = m2 > 1 ? "Something went wrong" : "Canceled";
5795
+ c4 && N2(h3, m2);
5796
+ }, v2 = () => M2(2), x2 = () => M2(1), j2 = () => {
5797
+ process.on("uncaughtExceptionMonitor", v2), process.on("unhandledRejection", v2), process.on("SIGINT", x2), process.on("SIGTERM", x2), process.on("exit", M2);
5798
+ }, E = () => {
5799
+ process.removeListener("uncaughtExceptionMonitor", v2), process.removeListener("unhandledRejection", v2), process.removeListener("SIGINT", x2), process.removeListener("SIGTERM", x2), process.removeListener("exit", M2);
5800
+ }, O2 = () => {
5801
+ if ($3 === void 0) return;
5802
+ r2 && process.stdout.write(`
5803
+ `);
5804
+ const m2 = $3.split(`
5805
+ `);
5806
+ process.stdout.write(import_sisteransi2.cursor.move(-999, m2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m2.length));
5807
+ }, R2 = (m2) => m2.replace(/\.+$/, ""), G2 = (m2) => {
5808
+ const h3 = (performance.now() - m2) / 1e3, y2 = Math.floor(h3 / 60), I2 = Math.floor(h3 % 60);
5809
+ return y2 > 0 ? `[${y2}m ${I2}s]` : `[${I2}s]`;
5810
+ }, H = (m2 = "") => {
5811
+ c4 = true, i2 = cD(), l2 = R2(m2), p = performance.now(), process.stdout.write(`${import_picocolors2.default.gray(o)}
5812
+ `);
5813
+ let h3 = 0, y2 = 0;
5814
+ j2(), a2 = setInterval(() => {
5815
+ if (r2 && l2 === $3) return;
5816
+ O2(), $3 = l2;
5817
+ const I2 = import_picocolors2.default.magenta(n2[h3]);
5818
+ if (r2) process.stdout.write(`${I2} ${l2}...`);
5819
+ else if (t === "timer") process.stdout.write(`${I2} ${l2} ${G2(p)}`);
5820
+ else {
5821
+ const z2 = ".".repeat(Math.floor(y2)).slice(0, 3);
5822
+ process.stdout.write(`${I2} ${l2}${z2}`);
5823
+ }
5824
+ h3 = h3 + 1 < n2.length ? h3 + 1 : 0, y2 = y2 < n2.length ? y2 + 0.125 : 0;
5825
+ }, s);
5826
+ }, N2 = (m2 = "", h3 = 0) => {
5827
+ c4 = false, clearInterval(a2), O2();
5828
+ const y2 = h3 === 0 ? import_picocolors2.default.green(C) : h3 === 1 ? import_picocolors2.default.red(L2) : import_picocolors2.default.red(W2);
5829
+ l2 = R2(m2 ?? l2), t === "timer" ? process.stdout.write(`${y2} ${l2} ${G2(p)}
5830
+ `) : process.stdout.write(`${y2} ${l2}
5831
+ `), E(), i2();
5832
+ };
5833
+ return { start: H, stop: N2, message: (m2 = "") => {
5834
+ l2 = R2(m2 ?? l2);
5835
+ } };
5836
+ };
5837
+ var Te = async (t) => {
5838
+ for (const n2 of t) {
5839
+ if (n2.enabled === false) continue;
5840
+ const s = Y();
5841
+ s.start(n2.title);
5842
+ const r2 = await n2.task(s.message);
5843
+ s.stop(r2 || n2.title);
5844
+ }
5845
+ };
5846
+
5847
+ // iac/index.ts
5061
5848
  var import_plugin_core = require("@hot-updater/plugin-core");
5062
5849
  var import_cloudflare = require("cloudflare");
5063
5850
  var import_dayjs = __toESM(require_dayjs_min(), 1);
@@ -5259,12 +6046,12 @@ var getSubprocessResult = ({ stdout }) => {
5259
6046
  var import_node_child_process3 = require("child_process");
5260
6047
 
5261
6048
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/specific.js
5262
- var import_node_util = require("util");
6049
+ var import_node_util2 = require("util");
5263
6050
 
5264
6051
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/standard-stream.js
5265
- var import_node_process = __toESM(require("process"), 1);
6052
+ var import_node_process3 = __toESM(require("process"), 1);
5266
6053
  var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
5267
- var STANDARD_STREAMS = [import_node_process.default.stdin, import_node_process.default.stdout, import_node_process.default.stderr];
6054
+ var STANDARD_STREAMS = [import_node_process3.default.stdin, import_node_process3.default.stdout, import_node_process3.default.stderr];
5268
6055
  var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
5269
6056
  var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
5270
6057
 
@@ -5327,7 +6114,7 @@ var parseFd = (fdName) => {
5327
6114
  };
5328
6115
  var FD_REGEXP = /^fd(\d+)$/;
5329
6116
  var addDefaultValue = (optionArray, optionName) => optionArray.map((optionValue) => optionValue === void 0 ? DEFAULT_OPTIONS[optionName] : optionValue);
5330
- var verboseDefault = (0, import_node_util.debuglog)("execa").enabled ? "full" : "none";
6117
+ var verboseDefault = (0, import_node_util2.debuglog)("execa").enabled ? "full" : "none";
5331
6118
  var DEFAULT_OPTIONS = {
5332
6119
  lines: false,
5333
6120
  buffer: true,
@@ -5351,18 +6138,18 @@ var isVerboseFunction = (fdVerbose) => typeof fdVerbose === "function";
5351
6138
  var VERBOSE_VALUES = ["none", "short", "full"];
5352
6139
 
5353
6140
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/log.js
5354
- var import_node_util3 = require("util");
6141
+ var import_node_util4 = require("util");
5355
6142
 
5356
6143
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/escape.js
5357
- var import_node_process2 = require("process");
5358
- var import_node_util2 = require("util");
6144
+ var import_node_process4 = require("process");
6145
+ var import_node_util3 = require("util");
5359
6146
  var joinCommand = (filePath, rawArguments) => {
5360
6147
  const fileAndArguments = [filePath, ...rawArguments];
5361
6148
  const command = fileAndArguments.join(" ");
5362
6149
  const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");
5363
6150
  return { command, escapedCommand };
5364
6151
  };
5365
- var escapeLines = (lines) => (0, import_node_util2.stripVTControlCharacters)(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
6152
+ var escapeLines = (lines) => (0, import_node_util3.stripVTControlCharacters)(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
5366
6153
  var escapeControlCharacters = (line) => line.replaceAll(SPECIAL_CHAR_REGEXP, (character) => escapeControlCharacter(character));
5367
6154
  var escapeControlCharacter = (character) => {
5368
6155
  const commonEscape = COMMON_ESCAPES[character];
@@ -5394,16 +6181,16 @@ var quoteString = (escapedArgument) => {
5394
6181
  if (NO_ESCAPE_REGEXP.test(escapedArgument)) {
5395
6182
  return escapedArgument;
5396
6183
  }
5397
- return import_node_process2.platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
6184
+ return import_node_process4.platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
5398
6185
  };
5399
6186
  var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
5400
6187
 
5401
6188
  // ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
5402
- var import_node_process3 = __toESM(require("process"), 1);
6189
+ var import_node_process5 = __toESM(require("process"), 1);
5403
6190
  function isUnicodeSupported() {
5404
- const { env } = import_node_process3.default;
6191
+ const { env } = import_node_process5.default;
5405
6192
  const { TERM, TERM_PROGRAM } = env;
5406
- if (import_node_process3.default.platform !== "win32") {
6193
+ if (import_node_process5.default.platform !== "win32") {
5407
6194
  return TERM !== "linux";
5408
6195
  }
5409
6196
  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";
@@ -5686,8 +6473,8 @@ var figures_default = figures;
5686
6473
  var replacements = Object.entries(specialMainSymbols);
5687
6474
 
5688
6475
  // ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
5689
- var import_node_tty = __toESM(require("tty"), 1);
5690
- var hasColors = import_node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
6476
+ var import_node_tty2 = __toESM(require("tty"), 1);
6477
+ var hasColors = import_node_tty2.default?.WriteStream?.prototype?.hasColors?.() ?? false;
5691
6478
  var format = (open, close) => {
5692
6479
  if (!hasColors) {
5693
6480
  return (input) => input;
@@ -5837,7 +6624,7 @@ var getPrintedLine = (verboseObject) => {
5837
6624
  return { verboseLine, verboseObject };
5838
6625
  };
5839
6626
  var serializeVerboseMessage = (message) => {
5840
- const messageString = typeof message === "string" ? message : (0, import_node_util3.inspect)(message);
6627
+ const messageString = typeof message === "string" ? message : (0, import_node_util4.inspect)(message);
5841
6628
  const escapedMessage = escapeLines(messageString);
5842
6629
  return escapedMessage.replaceAll(" ", " ".repeat(TAB_SIZE));
5843
6630
  };
@@ -5884,9 +6671,9 @@ var validateVerbose = (verbose) => {
5884
6671
  };
5885
6672
 
5886
6673
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/duration.js
5887
- var import_node_process4 = require("process");
5888
- var getStartTime = () => import_node_process4.hrtime.bigint();
5889
- var getDurationMs = (startTime) => Number(import_node_process4.hrtime.bigint() - startTime) / 1e6;
6674
+ var import_node_process6 = require("process");
6675
+ var getStartTime = () => import_node_process6.hrtime.bigint();
6676
+ var getDurationMs = (startTime) => Number(import_node_process6.hrtime.bigint() - startTime) / 1e6;
5890
6677
 
5891
6678
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/command.js
5892
6679
  var handleCommand = (filePath, rawArguments, rawOptions) => {
@@ -5905,11 +6692,11 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
5905
6692
 
5906
6693
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/options.js
5907
6694
  var import_node_path5 = __toESM(require("path"), 1);
5908
- var import_node_process8 = __toESM(require("process"), 1);
6695
+ var import_node_process10 = __toESM(require("process"), 1);
5909
6696
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
5910
6697
 
5911
6698
  // ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
5912
- var import_node_process5 = __toESM(require("process"), 1);
6699
+ var import_node_process7 = __toESM(require("process"), 1);
5913
6700
  var import_node_path2 = __toESM(require("path"), 1);
5914
6701
 
5915
6702
  // ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
@@ -5925,11 +6712,11 @@ function pathKey(options = {}) {
5925
6712
  }
5926
6713
 
5927
6714
  // ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
5928
- var import_node_util4 = require("util");
6715
+ var import_node_util5 = require("util");
5929
6716
  var import_node_child_process2 = require("child_process");
5930
6717
  var import_node_path = __toESM(require("path"), 1);
5931
6718
  var import_node_url2 = require("url");
5932
- var execFileOriginal = (0, import_node_util4.promisify)(import_node_child_process2.execFile);
6719
+ var execFileOriginal = (0, import_node_util5.promisify)(import_node_child_process2.execFile);
5933
6720
  function toPath(urlOrPath) {
5934
6721
  return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
5935
6722
  }
@@ -5950,10 +6737,10 @@ var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
5950
6737
 
5951
6738
  // ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
5952
6739
  var npmRunPath = ({
5953
- cwd = import_node_process5.default.cwd(),
5954
- path: pathOption = import_node_process5.default.env[pathKey()],
6740
+ cwd = import_node_process7.default.cwd(),
6741
+ path: pathOption = import_node_process7.default.env[pathKey()],
5955
6742
  preferLocal = true,
5956
- execPath: execPath2 = import_node_process5.default.execPath,
6743
+ execPath: execPath2 = import_node_process7.default.execPath,
5957
6744
  addExecPath = true
5958
6745
  } = {}) => {
5959
6746
  const cwdPath = import_node_path2.default.resolve(toPath(cwd));
@@ -5981,7 +6768,7 @@ var applyExecPath = (result, pathParts, execPath2, cwdPath) => {
5981
6768
  result.push(pathPart);
5982
6769
  }
5983
6770
  };
5984
- var npmRunPathEnv = ({ env = import_node_process5.default.env, ...options } = {}) => {
6771
+ var npmRunPathEnv = ({ env = import_node_process7.default.env, ...options } = {}) => {
5985
6772
  env = { ...env };
5986
6773
  const pathName = pathKey({ env });
5987
6774
  options.path = env[pathName];
@@ -6531,7 +7318,7 @@ var terminateOnCancel = async (subprocess, cancelSignal, context, { signal }) =>
6531
7318
  var import_promises3 = require("timers/promises");
6532
7319
 
6533
7320
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/send.js
6534
- var import_node_util5 = require("util");
7321
+ var import_node_util6 = require("util");
6535
7322
 
6536
7323
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/validation.js
6537
7324
  var validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected2 }) => {
@@ -7001,7 +7788,7 @@ var getSendMethod = (anyProcess) => {
7001
7788
  if (PROCESS_SEND_METHODS.has(anyProcess)) {
7002
7789
  return PROCESS_SEND_METHODS.get(anyProcess);
7003
7790
  }
7004
- const sendMethod = (0, import_node_util5.promisify)(anyProcess.send.bind(anyProcess));
7791
+ const sendMethod = (0, import_node_util6.promisify)(anyProcess.send.bind(anyProcess));
7005
7792
  PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
7006
7793
  return sendMethod;
7007
7794
  };
@@ -7130,7 +7917,7 @@ var killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
7130
7917
  };
7131
7918
 
7132
7919
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/node.js
7133
- var import_node_process6 = require("process");
7920
+ var import_node_process8 = require("process");
7134
7921
  var import_node_path3 = __toESM(require("path"), 1);
7135
7922
  var mapNode = ({ options }) => {
7136
7923
  if (options.node === false) {
@@ -7140,8 +7927,8 @@ var mapNode = ({ options }) => {
7140
7927
  };
7141
7928
  var handleNodeOption = (file, commandArguments, {
7142
7929
  node: shouldHandleNode = false,
7143
- nodePath = import_node_process6.execPath,
7144
- nodeOptions = import_node_process6.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")),
7930
+ nodePath = import_node_process8.execPath,
7931
+ nodeOptions = import_node_process8.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")),
7145
7932
  cwd,
7146
7933
  execPath: formerNodePath,
7147
7934
  ...options
@@ -7251,14 +8038,14 @@ var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encodin
7251
8038
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/cwd.js
7252
8039
  var import_node_fs = require("fs");
7253
8040
  var import_node_path4 = __toESM(require("path"), 1);
7254
- var import_node_process7 = __toESM(require("process"), 1);
8041
+ var import_node_process9 = __toESM(require("process"), 1);
7255
8042
  var normalizeCwd = (cwd = getDefaultCwd()) => {
7256
8043
  const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');
7257
8044
  return import_node_path4.default.resolve(cwdString);
7258
8045
  };
7259
8046
  var getDefaultCwd = () => {
7260
8047
  try {
7261
- return import_node_process7.default.cwd();
8048
+ return import_node_process9.default.cwd();
7262
8049
  } catch (error) {
7263
8050
  error.message = `The current directory does not exist.
7264
8051
  ${error.message}`;
@@ -7301,7 +8088,7 @@ var normalizeOptions = (filePath, rawArguments, rawOptions) => {
7301
8088
  options.killSignal = normalizeKillSignal(options.killSignal);
7302
8089
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
7303
8090
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
7304
- if (import_node_process8.default.platform === "win32" && import_node_path5.default.basename(file, ".exe") === "cmd") {
8091
+ if (import_node_process10.default.platform === "win32" && import_node_path5.default.basename(file, ".exe") === "cmd") {
7305
8092
  commandArguments.unshift("/q");
7306
8093
  }
7307
8094
  return { file, commandArguments, options };
@@ -7342,7 +8129,7 @@ var addDefaultOptions = ({
7342
8129
  serialization
7343
8130
  });
7344
8131
  var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
7345
- const env = extendEnv ? { ...import_node_process8.default.env, ...envOption } : envOption;
8132
+ const env = extendEnv ? { ...import_node_process10.default.env, ...envOption } : envOption;
7346
8133
  if (preferLocal || node) {
7347
8134
  return npmRunPathEnv({
7348
8135
  env,
@@ -7356,7 +8143,7 @@ var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, no
7356
8143
  };
7357
8144
 
7358
8145
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/message.js
7359
- var import_node_util6 = require("util");
8146
+ var import_node_util7 = require("util");
7360
8147
 
7361
8148
  // ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
7362
8149
  function stripFinalNewline(input) {
@@ -7401,20 +8188,20 @@ var a = Object.getPrototypeOf(
7401
8188
  }
7402
8189
  ).prototype
7403
8190
  );
7404
- var c = class {
8191
+ var c2 = class {
7405
8192
  #t;
7406
8193
  #n;
7407
8194
  #r = false;
7408
8195
  #e = void 0;
7409
- constructor(e, t) {
7410
- this.#t = e, this.#n = t;
8196
+ constructor(e2, t) {
8197
+ this.#t = e2, this.#n = t;
7411
8198
  }
7412
8199
  next() {
7413
- const e = () => this.#s();
7414
- return this.#e = this.#e ? this.#e.then(e, e) : e(), this.#e;
8200
+ const e2 = () => this.#s();
8201
+ return this.#e = this.#e ? this.#e.then(e2, e2) : e2(), this.#e;
7415
8202
  }
7416
- return(e) {
7417
- const t = () => this.#i(e);
8203
+ return(e2) {
8204
+ const t = () => this.#i(e2);
7418
8205
  return this.#e ? this.#e.then(t, t) : t();
7419
8206
  }
7420
8207
  async #s() {
@@ -7423,30 +8210,30 @@ var c = class {
7423
8210
  done: true,
7424
8211
  value: void 0
7425
8212
  };
7426
- let e;
8213
+ let e2;
7427
8214
  try {
7428
- e = await this.#t.read();
8215
+ e2 = await this.#t.read();
7429
8216
  } catch (t) {
7430
8217
  throw this.#e = void 0, this.#r = true, this.#t.releaseLock(), t;
7431
8218
  }
7432
- return e.done && (this.#e = void 0, this.#r = true, this.#t.releaseLock()), e;
8219
+ return e2.done && (this.#e = void 0, this.#r = true, this.#t.releaseLock()), e2;
7433
8220
  }
7434
- async #i(e) {
8221
+ async #i(e2) {
7435
8222
  if (this.#r)
7436
8223
  return {
7437
8224
  done: true,
7438
- value: e
8225
+ value: e2
7439
8226
  };
7440
8227
  if (this.#r = true, !this.#n) {
7441
- const t = this.#t.cancel(e);
8228
+ const t = this.#t.cancel(e2);
7442
8229
  return this.#t.releaseLock(), await t, {
7443
8230
  done: true,
7444
- value: e
8231
+ value: e2
7445
8232
  };
7446
8233
  }
7447
8234
  return this.#t.releaseLock(), {
7448
8235
  done: true,
7449
- value: e
8236
+ value: e2
7450
8237
  };
7451
8238
  }
7452
8239
  };
@@ -7455,11 +8242,11 @@ function i() {
7455
8242
  return this[n].next();
7456
8243
  }
7457
8244
  Object.defineProperty(i, "name", { value: "next" });
7458
- function o(r) {
7459
- return this[n].return(r);
8245
+ function o2(r2) {
8246
+ return this[n].return(r2);
7460
8247
  }
7461
- Object.defineProperty(o, "name", { value: "return" });
7462
- var u = Object.create(a, {
8248
+ Object.defineProperty(o2, "name", { value: "return" });
8249
+ var u2 = Object.create(a, {
7463
8250
  next: {
7464
8251
  enumerable: true,
7465
8252
  configurable: true,
@@ -7470,14 +8257,14 @@ var u = Object.create(a, {
7470
8257
  enumerable: true,
7471
8258
  configurable: true,
7472
8259
  writable: true,
7473
- value: o
8260
+ value: o2
7474
8261
  }
7475
8262
  });
7476
- function h({ preventCancel: r = false } = {}) {
7477
- const e = this.getReader(), t = new c(
7478
- e,
7479
- r
7480
- ), s = Object.create(u);
8263
+ function h2({ preventCancel: r2 = false } = {}) {
8264
+ const e2 = this.getReader(), t = new c2(
8265
+ e2,
8266
+ r2
8267
+ ), s = Object.create(u2);
7481
8268
  return s[n] = t, s;
7482
8269
  }
7483
8270
 
@@ -7490,7 +8277,7 @@ var getAsyncIterable = (stream) => {
7490
8277
  return stream;
7491
8278
  }
7492
8279
  if (toString.call(stream) === "[object ReadableStream]") {
7493
- return h.call(stream);
8280
+ return h2.call(stream);
7494
8281
  }
7495
8282
  throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
7496
8283
  };
@@ -7910,7 +8697,7 @@ var getOriginalMessage = (originalError, cwd) => {
7910
8697
  const escapedOriginalMessage = escapeLines(fixCwdError(originalMessage, cwd));
7911
8698
  return escapedOriginalMessage === "" ? void 0 : escapedOriginalMessage;
7912
8699
  };
7913
- var serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage : (0, import_node_util6.inspect)(ipcMessage);
8700
+ var serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage : (0, import_node_util7.inspect)(ipcMessage);
7914
8701
  var serializeMessagePart = (messagePart) => Array.isArray(messagePart) ? messagePart.map((messageItem) => stripFinalNewline(serializeMessageItem(messageItem))).filter(Boolean).join("\n") : serializeMessageItem(messagePart);
7915
8702
  var serializeMessageItem = (messageItem) => {
7916
8703
  if (typeof messageItem === "string") {
@@ -8516,7 +9303,7 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransform
8516
9303
  var sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
8517
9304
 
8518
9305
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/direction.js
8519
- var import_node_process9 = __toESM(require("process"), 1);
9306
+ var import_node_process11 = __toESM(require("process"), 1);
8520
9307
  var getStreamDirection = (stdioItems, fdNumber, optionName) => {
8521
9308
  const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));
8522
9309
  if (directions.includes("input") && directions.includes("output")) {
@@ -8556,10 +9343,10 @@ var guessStreamDirection = {
8556
9343
  }
8557
9344
  };
8558
9345
  var getStandardStreamDirection = (value) => {
8559
- if ([0, import_node_process9.default.stdin].includes(value)) {
9346
+ if ([0, import_node_process11.default.stdin].includes(value)) {
8560
9347
  return "input";
8561
9348
  }
8562
- if ([1, 2, import_node_process9.default.stdout, import_node_process9.default.stderr].includes(value)) {
9349
+ if ([1, 2, import_node_process11.default.stdout, import_node_process11.default.stderr].includes(value)) {
8563
9350
  return "output";
8564
9351
  }
8565
9352
  };
@@ -8587,7 +9374,7 @@ var getStdioArray = (stdio, options) => {
8587
9374
  throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
8588
9375
  }
8589
9376
  const length = Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length);
8590
- return Array.from({ length }, (_2, fdNumber) => stdio[fdNumber]);
9377
+ return Array.from({ length }, (_4, fdNumber) => stdio[fdNumber]);
8591
9378
  };
8592
9379
  var hasAlias = (options) => STANDARD_STREAMS_ALIASES.some((alias) => options[alias] !== void 0);
8593
9380
  var addDefaultValue2 = (stdioOption, fdNumber) => {
@@ -8604,7 +9391,7 @@ var isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(
8604
9391
 
8605
9392
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/native.js
8606
9393
  var import_node_fs2 = require("fs");
8607
- var import_node_tty2 = __toESM(require("tty"), 1);
9394
+ var import_node_tty3 = __toESM(require("tty"), 1);
8608
9395
  var handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
8609
9396
  if (!isStdioArray || type !== "native") {
8610
9397
  return stdioItem;
@@ -8634,7 +9421,7 @@ var getTargetFd = ({ value, optionName, fdNumber, direction }) => {
8634
9421
  if (direction === "output") {
8635
9422
  return { type: "fileNumber", value: targetFdNumber, optionName };
8636
9423
  }
8637
- if (import_node_tty2.default.isatty(targetFdNumber)) {
9424
+ if (import_node_tty3.default.isatty(targetFdNumber)) {
8638
9425
  throw new TypeError(`The \`${optionName}: ${serializeOptionValue(value)}\` option is invalid: it cannot be a TTY with synchronous methods.`);
8639
9426
  }
8640
9427
  return { type: "uint8Array", value: bufferToUint8Array((0, import_node_fs2.readFileSync)(targetFdNumber)), optionName };
@@ -9140,8 +9927,8 @@ var encodingStringFinal = function* (stringDecoder) {
9140
9927
  };
9141
9928
 
9142
9929
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-async.js
9143
- var import_node_util7 = require("util");
9144
- var pushChunks = (0, import_node_util7.callbackify)(async (getChunks, state, getChunksArguments, transformStream) => {
9930
+ var import_node_util8 = require("util");
9931
+ var pushChunks = (0, import_node_util8.callbackify)(async (getChunks, state, getChunksArguments, transformStream) => {
9145
9932
  state.currentIterable = getChunks(...getChunksArguments);
9146
9933
  try {
9147
9934
  for await (const chunk of state.currentIterable) {
@@ -9174,7 +9961,7 @@ var generatorFinalChunks = async function* (final, index, generators) {
9174
9961
  yield* transformChunk(finalChunk, generators, index + 1);
9175
9962
  }
9176
9963
  };
9177
- var destroyTransform = (0, import_node_util7.callbackify)(async ({ currentIterable }, error) => {
9964
+ var destroyTransform = (0, import_node_util8.callbackify)(async ({ currentIterable }, error) => {
9178
9965
  if (currentIterable !== void 0) {
9179
9966
  await (error ? currentIterable.throw(error) : currentIterable.return());
9180
9967
  return;
@@ -9663,7 +10450,7 @@ var import_node_events14 = require("events");
9663
10450
  var import_node_child_process5 = require("child_process");
9664
10451
 
9665
10452
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/methods.js
9666
- var import_node_process10 = __toESM(require("process"), 1);
10453
+ var import_node_process12 = __toESM(require("process"), 1);
9667
10454
 
9668
10455
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-one.js
9669
10456
  var import_node_events8 = require("events");
@@ -9804,9 +10591,9 @@ var addIpcMethods = (subprocess, { ipc }) => {
9804
10591
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
9805
10592
  };
9806
10593
  var getIpcExport = () => {
9807
- const anyProcess = import_node_process10.default;
10594
+ const anyProcess = import_node_process12.default;
9808
10595
  const isSubprocess = true;
9809
- const ipc = import_node_process10.default.channel !== void 0;
10596
+ const ipc = import_node_process12.default.channel !== void 0;
9810
10597
  return {
9811
10598
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
9812
10599
  getCancelSignal: getCancelSignal.bind(void 0, {
@@ -10368,9 +11155,9 @@ var SignalExit = class extends SignalExitBase {
10368
11155
  this.#sigListeners[sig] = () => {
10369
11156
  const listeners = this.#process.listeners(sig);
10370
11157
  let { count: count2 } = this.#emitter;
10371
- const p2 = process10;
10372
- if (typeof p2.__signal_exit_emitter__ === "object" && typeof p2.__signal_exit_emitter__.count === "number") {
10373
- count2 += p2.__signal_exit_emitter__.count;
11158
+ const p = process10;
11159
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
11160
+ count2 += p.__signal_exit_emitter__.count;
10374
11161
  }
10375
11162
  if (listeners.length === count2) {
10376
11163
  this.unload();
@@ -10412,7 +11199,7 @@ var SignalExit = class extends SignalExitBase {
10412
11199
  const fn = this.#sigListeners[sig];
10413
11200
  if (fn)
10414
11201
  this.#process.on(sig, fn);
10415
- } catch (_2) {
11202
+ } catch (_4) {
10416
11203
  }
10417
11204
  }
10418
11205
  this.#process.emit = (ev, ...a2) => {
@@ -10434,7 +11221,7 @@ var SignalExit = class extends SignalExitBase {
10434
11221
  }
10435
11222
  try {
10436
11223
  this.#process.removeListener(sig, listener);
10437
- } catch (_2) {
11224
+ } catch (_4) {
10438
11225
  }
10439
11226
  });
10440
11227
  this.#process.emit = this.#originalProcessEmit;
@@ -10678,10 +11465,10 @@ var SOURCE_LISTENERS_PER_PIPE = 2;
10678
11465
  var DESTINATION_LISTENERS_PER_PIPE = 1;
10679
11466
 
10680
11467
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/abort.js
10681
- var import_node_util8 = require("util");
11468
+ var import_node_util9 = require("util");
10682
11469
  var unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
10683
11470
  var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
10684
- await (0, import_node_util8.aborted)(unpipeSignal, sourceStream);
11471
+ await (0, import_node_util9.aborted)(unpipeSignal, sourceStream);
10685
11472
  await mergedStream.remove(sourceStream);
10686
11473
  const error = new Error("Pipe canceled by `unpipeSignal` option.");
10687
11474
  throw createNonCommandError({
@@ -11257,7 +12044,7 @@ var waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
11257
12044
 
11258
12045
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/readable.js
11259
12046
  var import_node_stream6 = require("stream");
11260
- var import_node_util9 = require("util");
12047
+ var import_node_util10 = require("util");
11261
12048
 
11262
12049
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/shared.js
11263
12050
  var import_promises11 = require("stream/promises");
@@ -11313,7 +12100,7 @@ var createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binar
11313
12100
  });
11314
12101
  const readable2 = new import_node_stream6.Readable({
11315
12102
  read,
11316
- destroy: (0, import_node_util9.callbackify)(onReadableDestroy.bind(void 0, { subprocessStdout, subprocess, waitReadableDestroy })),
12103
+ destroy: (0, import_node_util10.callbackify)(onReadableDestroy.bind(void 0, { subprocessStdout, subprocess, waitReadableDestroy })),
11317
12104
  highWaterMark: readableHighWaterMark,
11318
12105
  objectMode: readableObjectMode,
11319
12106
  encoding: readableEncoding
@@ -11386,12 +12173,12 @@ var destroyOtherReadable = (stream, error) => {
11386
12173
 
11387
12174
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/writable.js
11388
12175
  var import_node_stream7 = require("stream");
11389
- var import_node_util10 = require("util");
12176
+ var import_node_util11 = require("util");
11390
12177
  var createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
11391
12178
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
11392
12179
  const writable2 = new import_node_stream7.Writable({
11393
12180
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
11394
- destroy: (0, import_node_util10.callbackify)(onWritableDestroy.bind(void 0, {
12181
+ destroy: (0, import_node_util11.callbackify)(onWritableDestroy.bind(void 0, {
11395
12182
  subprocessStdin,
11396
12183
  subprocess,
11397
12184
  waitWritableFinal,
@@ -11411,7 +12198,7 @@ var getSubprocessStdin = (subprocess, to, concurrentStreams) => {
11411
12198
  };
11412
12199
  var getWritableMethods = (subprocessStdin, subprocess, waitWritableFinal) => ({
11413
12200
  write: onWrite.bind(void 0, subprocessStdin),
11414
- final: (0, import_node_util10.callbackify)(onWritableFinal.bind(void 0, subprocessStdin, subprocess, waitWritableFinal))
12201
+ final: (0, import_node_util11.callbackify)(onWritableFinal.bind(void 0, subprocessStdin, subprocess, waitWritableFinal))
11415
12202
  });
11416
12203
  var onWrite = (subprocessStdin, chunk, encoding, done) => {
11417
12204
  if (subprocessStdin.write(chunk, encoding)) {
@@ -11452,7 +12239,7 @@ var destroyOtherWritable = (stream, error) => {
11452
12239
 
11453
12240
  // ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/duplex.js
11454
12241
  var import_node_stream8 = require("stream");
11455
- var import_node_util11 = require("util");
12242
+ var import_node_util12 = require("util");
11456
12243
  var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
11457
12244
  const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
11458
12245
  const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
@@ -11468,7 +12255,7 @@ var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, bin
11468
12255
  const duplex2 = new import_node_stream8.Duplex({
11469
12256
  read,
11470
12257
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
11471
- destroy: (0, import_node_util11.callbackify)(onDuplexDestroy.bind(void 0, {
12258
+ destroy: (0, import_node_util12.callbackify)(onDuplexDestroy.bind(void 0, {
11472
12259
  subprocessStdout,
11473
12260
  subprocessStdin,
11474
12261
  subprocess,
@@ -11824,7 +12611,7 @@ var execaSync = createExeca(() => ({ isSync: true }));
11824
12611
  var execaCommand = createExeca(mapCommandAsync);
11825
12612
  var execaCommandSync = createExeca(mapCommandSync);
11826
12613
  var execaNode = createExeca(mapNode);
11827
- var $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
12614
+ var $2 = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
11828
12615
  var {
11829
12616
  sendMessage: sendMessage2,
11830
12617
  getOneMessage: getOneMessage2,
@@ -11842,7 +12629,7 @@ var createWrangler = ({
11842
12629
  cloudflareApiToken,
11843
12630
  cwd
11844
12631
  }) => {
11845
- const $2 = execa({
12632
+ const $3 = execa({
11846
12633
  stdio,
11847
12634
  extendsEnv: true,
11848
12635
  shell: stdio === "inherit",
@@ -11852,7 +12639,7 @@ var createWrangler = ({
11852
12639
  CLOUDFLARE_API_TOKEN: cloudflareApiToken
11853
12640
  }
11854
12641
  });
11855
- return (...command) => $2("npx", ["wrangler", ...command]);
12642
+ return (...command) => $3("npx", ["wrangler", ...command]);
11856
12643
  };
11857
12644
 
11858
12645
  // iac/getWranglerLoginAuthToken.ts
@@ -11973,12 +12760,12 @@ var deployWorker = async (oauth_token, accountId, {
11973
12760
  accountId
11974
12761
  });
11975
12762
  await wrangler("d1", "migrations", "apply", d1DatabaseName, "--remote");
11976
- const workerName = await p.text({
12763
+ const workerName = await he({
11977
12764
  message: "Enter the name of the worker",
11978
12765
  defaultValue: "hot-updater",
11979
12766
  placeholder: "hot-updater"
11980
12767
  });
11981
- if (p.isCancel(workerName)) {
12768
+ if (BD(workerName)) {
11982
12769
  process.exit(1);
11983
12770
  }
11984
12771
  await wrangler("deploy", "--name", workerName);
@@ -12018,7 +12805,7 @@ var runInit = async () => {
12018
12805
  const createKey = `create/${Math.random().toString(36).substring(2, 15)}`;
12019
12806
  const accounts = [];
12020
12807
  try {
12021
- await p.tasks([
12808
+ await Te([
12022
12809
  {
12023
12810
  title: "Checking Account List...",
12024
12811
  task: async () => {
@@ -12031,42 +12818,42 @@ var runInit = async () => {
12031
12818
  }
12032
12819
  }
12033
12820
  ]);
12034
- } catch (e) {
12035
- if (e instanceof Error) {
12036
- p.log.error(e.message);
12821
+ } catch (e2) {
12822
+ if (e2 instanceof Error) {
12823
+ f2.error(e2.message);
12037
12824
  }
12038
- throw e;
12825
+ throw e2;
12039
12826
  }
12040
- const accountId = await p.select({
12827
+ const accountId = await ve({
12041
12828
  message: "Account List",
12042
12829
  options: accounts.map((account) => ({
12043
12830
  value: account.id,
12044
12831
  label: `${account.name} (${account.id})`
12045
12832
  }))
12046
12833
  });
12047
- if (p.isCancel(accountId)) {
12834
+ if (BD(accountId)) {
12048
12835
  process.exit(1);
12049
12836
  }
12050
- p.log.step(
12837
+ f2.step(
12051
12838
  `Please visit this link to create an API Token: ${(0, import_plugin_core.link)(
12052
12839
  `https://dash.cloudflare.com/${accountId}/api-tokens`
12053
12840
  )}`
12054
12841
  );
12055
- p.log.step("You need edit permissions for both D1 and R2");
12056
- const apiToken = await p.password({
12842
+ f2.step("You need edit permissions for both D1 and R2");
12843
+ const apiToken = await ge({
12057
12844
  message: "Enter the API Token"
12058
12845
  });
12059
12846
  if (!apiToken) {
12060
- p.log.warn(
12847
+ f2.warn(
12061
12848
  "Skipping API Token. You can set it later in .env HOT_UPDATER_CLOUDFLARE_API_TOKEN file."
12062
12849
  );
12063
12850
  }
12064
- if (p.isCancel(apiToken)) {
12851
+ if (BD(apiToken)) {
12065
12852
  process.exit(1);
12066
12853
  }
12067
12854
  const availableBuckets = [];
12068
12855
  try {
12069
- await p.tasks([
12856
+ await Te([
12070
12857
  {
12071
12858
  title: "Checking R2 Buckets...",
12072
12859
  task: async () => {
@@ -12081,13 +12868,13 @@ var runInit = async () => {
12081
12868
  }
12082
12869
  }
12083
12870
  ]);
12084
- } catch (e) {
12085
- if (e instanceof Error) {
12086
- p.log.error(e.message);
12871
+ } catch (e2) {
12872
+ if (e2 instanceof Error) {
12873
+ f2.error(e2.message);
12087
12874
  }
12088
- throw e;
12875
+ throw e2;
12089
12876
  }
12090
- let selectedBucketName = await p.select({
12877
+ let selectedBucketName = await ve({
12091
12878
  message: "R2 List",
12092
12879
  options: [
12093
12880
  ...availableBuckets.map((bucket) => ({
@@ -12100,14 +12887,14 @@ var runInit = async () => {
12100
12887
  }
12101
12888
  ]
12102
12889
  });
12103
- if (p.isCancel(selectedBucketName)) {
12890
+ if (BD(selectedBucketName)) {
12104
12891
  process.exit(1);
12105
12892
  }
12106
12893
  if (selectedBucketName === createKey) {
12107
- const name = await p.text({
12894
+ const name = await he({
12108
12895
  message: "Enter the name of the new R2 Bucket"
12109
12896
  });
12110
- if (p.isCancel(name)) {
12897
+ if (BD(name)) {
12111
12898
  process.exit(1);
12112
12899
  }
12113
12900
  const newR2 = await cf.r2.buckets.create({
@@ -12119,17 +12906,17 @@ var runInit = async () => {
12119
12906
  }
12120
12907
  selectedBucketName = newR2.name;
12121
12908
  }
12122
- p.log.info(`Selected R2: ${selectedBucketName}`);
12909
+ f2.info(`Selected R2: ${selectedBucketName}`);
12123
12910
  const domains = await cf.r2.buckets.domains.managed.list(selectedBucketName, {
12124
12911
  account_id: accountId
12125
12912
  });
12126
12913
  if (domains.enabled) {
12127
- const isPrivate = await p.confirm({
12914
+ const isPrivate = await ye({
12128
12915
  message: "Make R2 bucket private?"
12129
12916
  });
12130
12917
  if (isPrivate) {
12131
12918
  try {
12132
- await p.tasks([
12919
+ await Te([
12133
12920
  {
12134
12921
  title: "Making R2 bucket private...",
12135
12922
  task: async () => {
@@ -12140,17 +12927,17 @@ var runInit = async () => {
12140
12927
  }
12141
12928
  }
12142
12929
  ]);
12143
- } catch (e) {
12144
- if (e instanceof Error) {
12145
- p.log.error(e.message);
12930
+ } catch (e2) {
12931
+ if (e2 instanceof Error) {
12932
+ f2.error(e2.message);
12146
12933
  }
12147
- throw e;
12934
+ throw e2;
12148
12935
  }
12149
12936
  }
12150
12937
  }
12151
12938
  const availableD1List = [];
12152
12939
  try {
12153
- await p.tasks([
12940
+ await Te([
12154
12941
  {
12155
12942
  title: "Checking D1 List...",
12156
12943
  task: async () => {
@@ -12164,13 +12951,13 @@ var runInit = async () => {
12164
12951
  }
12165
12952
  }
12166
12953
  ]);
12167
- } catch (e) {
12168
- if (e instanceof Error) {
12169
- p.log.error(e.message);
12954
+ } catch (e2) {
12955
+ if (e2 instanceof Error) {
12956
+ f2.error(e2.message);
12170
12957
  }
12171
- throw e;
12958
+ throw e2;
12172
12959
  }
12173
- let selectedD1DatabaseId = await p.select({
12960
+ let selectedD1DatabaseId = await ve({
12174
12961
  message: "D1 List",
12175
12962
  options: [
12176
12963
  ...availableD1List.map((d1) => ({
@@ -12183,14 +12970,14 @@ var runInit = async () => {
12183
12970
  }
12184
12971
  ]
12185
12972
  });
12186
- if (p.isCancel(selectedD1DatabaseId)) {
12973
+ if (BD(selectedD1DatabaseId)) {
12187
12974
  process.exit(1);
12188
12975
  }
12189
12976
  if (selectedD1DatabaseId === createKey) {
12190
- const name = await p.text({
12977
+ const name = await he({
12191
12978
  message: "Enter the name of the new D1 Database"
12192
12979
  });
12193
- if (p.isCancel(name)) {
12980
+ if (BD(name)) {
12194
12981
  process.exit(1);
12195
12982
  }
12196
12983
  const newD1 = await cf.d1.database.create({
@@ -12205,9 +12992,9 @@ var runInit = async () => {
12205
12992
  name: newD1.name,
12206
12993
  uuid: newD1.uuid
12207
12994
  });
12208
- p.log.info(`Created new D1 Database: ${newD1.name} (${newD1.uuid})`);
12995
+ f2.info(`Created new D1 Database: ${newD1.name} (${newD1.uuid})`);
12209
12996
  } else {
12210
- p.log.info(`Selected D1: ${selectedD1DatabaseId}`);
12997
+ f2.info(`Selected D1: ${selectedD1DatabaseId}`);
12211
12998
  }
12212
12999
  const d1DatabaseName = availableD1List.find(
12213
13000
  (d1) => d1.uuid === selectedD1DatabaseId
@@ -12230,23 +13017,23 @@ var runInit = async () => {
12230
13017
  HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME: selectedBucketName,
12231
13018
  HOT_UPDATER_CLOUDFLARE_D1_DATABASE_ID: selectedD1DatabaseId
12232
13019
  });
12233
- p.log.success("Generated '.env' file with Cloudflare settings.");
12234
- p.log.success(
13020
+ f2.success("Generated '.env' file with Cloudflare settings.");
13021
+ f2.success(
12235
13022
  "Generated 'hot-updater.config.ts' file with Cloudflare settings."
12236
13023
  );
12237
13024
  if (subdomains.subdomain) {
12238
- p.note(
13025
+ Me(
12239
13026
  (0, import_plugin_core.transformTemplate)(SOURCE_TEMPLATE, {
12240
13027
  source: `https://${workerName}.${subdomains.subdomain}.workers.dev/api/check-update`
12241
13028
  })
12242
13029
  );
12243
13030
  }
12244
- p.log.message(
13031
+ f2.message(
12245
13032
  `Next step: ${(0, import_plugin_core.link)(
12246
13033
  "https://gronxb.github.io/hot-updater/guide/providers/2_cloudflare.html#step-4-add-hotupdater-to-your-project"
12247
13034
  )}`
12248
13035
  );
12249
- p.log.success("Done! \u{1F389}");
13036
+ f2.success("Done! \u{1F389}");
12250
13037
  };
12251
13038
  // Annotate the CommonJS export names for ESM import in node:
12252
13039
  0 && (module.exports = {