@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.
package/dist/iac/index.js CHANGED
@@ -5,11 +5,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a2, b) => (typeof require !== "undefined" ? require : a2)[b]
10
- }) : x)(function(x) {
8
+ var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
9
+ get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2]
10
+ }) : x2)(function(x2) {
11
11
  if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
12
+ throw Error('Dynamic require of "' + x2 + '" is not supported');
13
13
  });
14
14
  var __commonJS = (cb, mod) => function __require2() {
15
15
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -36,283 +36,412 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  mod
37
37
  ));
38
38
 
39
+ // ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
40
+ var require_src = __commonJS({
41
+ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
42
+ "use strict";
43
+ var ESC = "\x1B";
44
+ var CSI = `${ESC}[`;
45
+ var beep = "\x07";
46
+ var cursor = {
47
+ to(x2, y2) {
48
+ if (!y2) return `${CSI}${x2 + 1}G`;
49
+ return `${CSI}${y2 + 1};${x2 + 1}H`;
50
+ },
51
+ move(x2, y2) {
52
+ let ret = "";
53
+ if (x2 < 0) ret += `${CSI}${-x2}D`;
54
+ else if (x2 > 0) ret += `${CSI}${x2}C`;
55
+ if (y2 < 0) ret += `${CSI}${-y2}A`;
56
+ else if (y2 > 0) ret += `${CSI}${y2}B`;
57
+ return ret;
58
+ },
59
+ up: (count2 = 1) => `${CSI}${count2}A`,
60
+ down: (count2 = 1) => `${CSI}${count2}B`,
61
+ forward: (count2 = 1) => `${CSI}${count2}C`,
62
+ backward: (count2 = 1) => `${CSI}${count2}D`,
63
+ nextLine: (count2 = 1) => `${CSI}E`.repeat(count2),
64
+ prevLine: (count2 = 1) => `${CSI}F`.repeat(count2),
65
+ left: `${CSI}G`,
66
+ hide: `${CSI}?25l`,
67
+ show: `${CSI}?25h`,
68
+ save: `${ESC}7`,
69
+ restore: `${ESC}8`
70
+ };
71
+ var scroll = {
72
+ up: (count2 = 1) => `${CSI}S`.repeat(count2),
73
+ down: (count2 = 1) => `${CSI}T`.repeat(count2)
74
+ };
75
+ var erase = {
76
+ screen: `${CSI}2J`,
77
+ up: (count2 = 1) => `${CSI}1J`.repeat(count2),
78
+ down: (count2 = 1) => `${CSI}J`.repeat(count2),
79
+ line: `${CSI}2K`,
80
+ lineEnd: `${CSI}K`,
81
+ lineStart: `${CSI}1K`,
82
+ lines(count2) {
83
+ let clear = "";
84
+ for (let i2 = 0; i2 < count2; i2++)
85
+ clear += this.line + (i2 < count2 - 1 ? cursor.up() : "");
86
+ if (count2)
87
+ clear += cursor.left;
88
+ return clear;
89
+ }
90
+ };
91
+ module.exports = { cursor, scroll, erase, beep };
92
+ }
93
+ });
94
+
95
+ // ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
96
+ var require_picocolors = __commonJS({
97
+ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
98
+ "use strict";
99
+ var p = process || {};
100
+ var argv = p.argv || [];
101
+ var env = p.env || {};
102
+ 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);
103
+ var formatter = (open, close, replace = open) => (input) => {
104
+ let string = "" + input, index = string.indexOf(close, open.length);
105
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
106
+ };
107
+ var replaceClose = (string, close, replace, index) => {
108
+ let result = "", cursor = 0;
109
+ do {
110
+ result += string.substring(cursor, index) + replace;
111
+ cursor = index + close.length;
112
+ index = string.indexOf(close, cursor);
113
+ } while (~index);
114
+ return result + string.substring(cursor);
115
+ };
116
+ var createColors = (enabled = isColorSupported) => {
117
+ let f3 = enabled ? formatter : () => String;
118
+ return {
119
+ isColorSupported: enabled,
120
+ reset: f3("\x1B[0m", "\x1B[0m"),
121
+ bold: f3("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
122
+ dim: f3("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
123
+ italic: f3("\x1B[3m", "\x1B[23m"),
124
+ underline: f3("\x1B[4m", "\x1B[24m"),
125
+ inverse: f3("\x1B[7m", "\x1B[27m"),
126
+ hidden: f3("\x1B[8m", "\x1B[28m"),
127
+ strikethrough: f3("\x1B[9m", "\x1B[29m"),
128
+ black: f3("\x1B[30m", "\x1B[39m"),
129
+ red: f3("\x1B[31m", "\x1B[39m"),
130
+ green: f3("\x1B[32m", "\x1B[39m"),
131
+ yellow: f3("\x1B[33m", "\x1B[39m"),
132
+ blue: f3("\x1B[34m", "\x1B[39m"),
133
+ magenta: f3("\x1B[35m", "\x1B[39m"),
134
+ cyan: f3("\x1B[36m", "\x1B[39m"),
135
+ white: f3("\x1B[37m", "\x1B[39m"),
136
+ gray: f3("\x1B[90m", "\x1B[39m"),
137
+ bgBlack: f3("\x1B[40m", "\x1B[49m"),
138
+ bgRed: f3("\x1B[41m", "\x1B[49m"),
139
+ bgGreen: f3("\x1B[42m", "\x1B[49m"),
140
+ bgYellow: f3("\x1B[43m", "\x1B[49m"),
141
+ bgBlue: f3("\x1B[44m", "\x1B[49m"),
142
+ bgMagenta: f3("\x1B[45m", "\x1B[49m"),
143
+ bgCyan: f3("\x1B[46m", "\x1B[49m"),
144
+ bgWhite: f3("\x1B[47m", "\x1B[49m"),
145
+ blackBright: f3("\x1B[90m", "\x1B[39m"),
146
+ redBright: f3("\x1B[91m", "\x1B[39m"),
147
+ greenBright: f3("\x1B[92m", "\x1B[39m"),
148
+ yellowBright: f3("\x1B[93m", "\x1B[39m"),
149
+ blueBright: f3("\x1B[94m", "\x1B[39m"),
150
+ magentaBright: f3("\x1B[95m", "\x1B[39m"),
151
+ cyanBright: f3("\x1B[96m", "\x1B[39m"),
152
+ whiteBright: f3("\x1B[97m", "\x1B[39m"),
153
+ bgBlackBright: f3("\x1B[100m", "\x1B[49m"),
154
+ bgRedBright: f3("\x1B[101m", "\x1B[49m"),
155
+ bgGreenBright: f3("\x1B[102m", "\x1B[49m"),
156
+ bgYellowBright: f3("\x1B[103m", "\x1B[49m"),
157
+ bgBlueBright: f3("\x1B[104m", "\x1B[49m"),
158
+ bgMagentaBright: f3("\x1B[105m", "\x1B[49m"),
159
+ bgCyanBright: f3("\x1B[106m", "\x1B[49m"),
160
+ bgWhiteBright: f3("\x1B[107m", "\x1B[49m")
161
+ };
162
+ };
163
+ module.exports = createColors();
164
+ module.exports.createColors = createColors;
165
+ }
166
+ });
167
+
39
168
  // ../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js
40
169
  var require_dayjs_min = __commonJS({
41
170
  "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js"(exports, module) {
42
171
  "use strict";
43
- !function(t, e) {
44
- "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
172
+ !function(t, e2) {
173
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = e2() : "function" == typeof define && define.amd ? define(e2) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e2();
45
174
  }(exports, function() {
46
175
  "use strict";
47
- 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) {
48
- var e2 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
49
- return "[" + t2 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
50
- } }, m = function(t2, e2, n3) {
51
- var r2 = String(t2);
52
- return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n3) + t2;
53
- }, v = { s: m, z: function(t2) {
54
- var e2 = -t2.utcOffset(), n3 = Math.abs(e2), r2 = Math.floor(n3 / 60), i3 = n3 % 60;
55
- return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i3, 2, "0");
56
- }, m: function t2(e2, n3) {
57
- if (e2.date() < n3.date()) return -t2(n3, e2);
58
- 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);
59
- return +(-(r2 + (n3 - i3) / (s2 ? i3 - u3 : u3 - i3)) || 0);
176
+ 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) {
177
+ var e3 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
178
+ return "[" + t2 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
179
+ } }, m2 = function(t2, e3, n3) {
180
+ var r3 = String(t2);
181
+ return !r3 || r3.length >= e3 ? t2 : "" + Array(e3 + 1 - r3.length).join(n3) + t2;
182
+ }, v2 = { s: m2, z: function(t2) {
183
+ var e3 = -t2.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
184
+ return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
185
+ }, m: function t2(e3, n3) {
186
+ if (e3.date() < n3.date()) return -t2(n3, e3);
187
+ 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);
188
+ return +(-(r3 + (n3 - i3) / (s2 ? i3 - u4 : u4 - i3)) || 0);
60
189
  }, a: function(t2) {
61
190
  return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
62
191
  }, p: function(t2) {
63
- 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$/, "");
192
+ 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$/, "");
64
193
  }, u: function(t2) {
65
194
  return void 0 === t2;
66
- } }, g = "en", D = {};
67
- D[g] = M;
68
- var p2 = "$isDayjsObject", S = function(t2) {
69
- return t2 instanceof _2 || !(!t2 || !t2[p2]);
70
- }, w = function t2(e2, n3, r2) {
195
+ } }, g3 = "en", D2 = {};
196
+ D2[g3] = M2;
197
+ var p = "$isDayjsObject", S3 = function(t2) {
198
+ return t2 instanceof _4 || !(!t2 || !t2[p]);
199
+ }, w3 = function t2(e3, n3, r3) {
71
200
  var i3;
72
- if (!e2) return g;
73
- if ("string" == typeof e2) {
74
- var s2 = e2.toLowerCase();
75
- D[s2] && (i3 = s2), n3 && (D[s2] = n3, i3 = s2);
76
- var u3 = e2.split("-");
77
- if (!i3 && u3.length > 1) return t2(u3[0]);
201
+ if (!e3) return g3;
202
+ if ("string" == typeof e3) {
203
+ var s2 = e3.toLowerCase();
204
+ D2[s2] && (i3 = s2), n3 && (D2[s2] = n3, i3 = s2);
205
+ var u4 = e3.split("-");
206
+ if (!i3 && u4.length > 1) return t2(u4[0]);
78
207
  } else {
79
- var a3 = e2.name;
80
- D[a3] = e2, i3 = a3;
208
+ var a3 = e3.name;
209
+ D2[a3] = e3, i3 = a3;
81
210
  }
82
- return !r2 && i3 && (g = i3), i3 || !r2 && g;
83
- }, O = function(t2, e2) {
84
- if (S(t2)) return t2.clone();
85
- var n3 = "object" == typeof e2 ? e2 : {};
86
- return n3.date = t2, n3.args = arguments, new _2(n3);
87
- }, b = v;
88
- b.l = w, b.i = S, b.w = function(t2, e2) {
89
- return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
211
+ return !r3 && i3 && (g3 = i3), i3 || !r3 && g3;
212
+ }, O2 = function(t2, e3) {
213
+ if (S3(t2)) return t2.clone();
214
+ var n3 = "object" == typeof e3 ? e3 : {};
215
+ return n3.date = t2, n3.args = arguments, new _4(n3);
216
+ }, b2 = v2;
217
+ b2.l = w3, b2.i = S3, b2.w = function(t2, e3) {
218
+ return O2(t2, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
90
219
  };
91
- var _2 = function() {
92
- function M2(t2) {
93
- this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p2] = true;
220
+ var _4 = function() {
221
+ function M3(t2) {
222
+ this.$L = w3(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
94
223
  }
95
- var m2 = M2.prototype;
96
- return m2.parse = function(t2) {
224
+ var m3 = M3.prototype;
225
+ return m3.parse = function(t2) {
97
226
  this.$d = function(t3) {
98
- var e2 = t3.date, n3 = t3.utc;
99
- if (null === e2) return /* @__PURE__ */ new Date(NaN);
100
- if (b.u(e2)) return /* @__PURE__ */ new Date();
101
- if (e2 instanceof Date) return new Date(e2);
102
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
103
- var r2 = e2.match($2);
104
- if (r2) {
105
- var i3 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
106
- 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);
227
+ var e3 = t3.date, n3 = t3.utc;
228
+ if (null === e3) return /* @__PURE__ */ new Date(NaN);
229
+ if (b2.u(e3)) return /* @__PURE__ */ new Date();
230
+ if (e3 instanceof Date) return new Date(e3);
231
+ if ("string" == typeof e3 && !/Z$/i.test(e3)) {
232
+ var r3 = e3.match($3);
233
+ if (r3) {
234
+ var i3 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
235
+ 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);
107
236
  }
108
237
  }
109
- return new Date(e2);
238
+ return new Date(e3);
110
239
  }(t2), this.init();
111
- }, m2.init = function() {
240
+ }, m3.init = function() {
112
241
  var t2 = this.$d;
113
242
  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();
114
- }, m2.$utils = function() {
115
- return b;
116
- }, m2.isValid = function() {
117
- return !(this.$d.toString() === l);
118
- }, m2.isSame = function(t2, e2) {
119
- var n3 = O(t2);
120
- return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
121
- }, m2.isAfter = function(t2, e2) {
122
- return O(t2) < this.startOf(e2);
123
- }, m2.isBefore = function(t2, e2) {
124
- return this.endOf(e2) < O(t2);
125
- }, m2.$g = function(t2, e2, n3) {
126
- return b.u(t2) ? this[e2] : this.set(n3, t2);
127
- }, m2.unix = function() {
243
+ }, m3.$utils = function() {
244
+ return b2;
245
+ }, m3.isValid = function() {
246
+ return !(this.$d.toString() === l2);
247
+ }, m3.isSame = function(t2, e3) {
248
+ var n3 = O2(t2);
249
+ return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
250
+ }, m3.isAfter = function(t2, e3) {
251
+ return O2(t2) < this.startOf(e3);
252
+ }, m3.isBefore = function(t2, e3) {
253
+ return this.endOf(e3) < O2(t2);
254
+ }, m3.$g = function(t2, e3, n3) {
255
+ return b2.u(t2) ? this[e3] : this.set(n3, t2);
256
+ }, m3.unix = function() {
128
257
  return Math.floor(this.valueOf() / 1e3);
129
- }, m2.valueOf = function() {
258
+ }, m3.valueOf = function() {
130
259
  return this.$d.getTime();
131
- }, m2.startOf = function(t2, e2) {
132
- var n3 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
133
- var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e3, t3) : new Date(n3.$y, e3, t3), n3);
134
- return r2 ? i3 : i3.endOf(a2);
135
- }, $3 = function(t3, e3) {
136
- return b.w(n3.toDate()[t3].apply(n3.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
137
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
138
- switch (f2) {
139
- case h2:
140
- return r2 ? l2(1, 0) : l2(31, 11);
141
- case c3:
142
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
143
- case o2:
144
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
145
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
260
+ }, m3.startOf = function(t2, e3) {
261
+ var n3 = this, r3 = !!b2.u(e3) || e3, f4 = b2.p(t2), l3 = function(t3, e4) {
262
+ var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t3) : new Date(n3.$y, e4, t3), n3);
263
+ return r3 ? i3 : i3.endOf(a2);
264
+ }, $4 = function(t3, e4) {
265
+ return b2.w(n3.toDate()[t3].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
266
+ }, y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
267
+ switch (f4) {
268
+ case h3:
269
+ return r3 ? l3(1, 0) : l3(31, 11);
270
+ case c4:
271
+ return r3 ? l3(1, M4) : l3(0, M4 + 1);
272
+ case o3:
273
+ var g4 = this.$locale().weekStart || 0, D3 = (y3 < g4 ? y3 + 7 : y3) - g4;
274
+ return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
146
275
  case a2:
147
- case d:
148
- return $3(v2 + "Hours", 0);
149
- case u2:
150
- return $3(v2 + "Minutes", 1);
276
+ case d3:
277
+ return $4(v3 + "Hours", 0);
278
+ case u3:
279
+ return $4(v3 + "Minutes", 1);
151
280
  case s:
152
- return $3(v2 + "Seconds", 2);
281
+ return $4(v3 + "Seconds", 2);
153
282
  case i2:
154
- return $3(v2 + "Milliseconds", 3);
283
+ return $4(v3 + "Milliseconds", 3);
155
284
  default:
156
285
  return this.clone();
157
286
  }
158
- }, m2.endOf = function(t2) {
287
+ }, m3.endOf = function(t2) {
159
288
  return this.startOf(t2, false);
160
- }, m2.$set = function(t2, e2) {
161
- 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;
162
- if (o3 === c3 || o3 === h2) {
163
- var y2 = this.clone().set(d, 1);
164
- y2.$d[l2]($3), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
165
- } else l2 && this.$d[l2]($3);
289
+ }, m3.$set = function(t2, e3) {
290
+ 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;
291
+ if (o4 === c4 || o4 === h3) {
292
+ var y3 = this.clone().set(d3, 1);
293
+ y3.$d[l3]($4), y3.init(), this.$d = y3.set(d3, Math.min(this.$D, y3.daysInMonth())).$d;
294
+ } else l3 && this.$d[l3]($4);
166
295
  return this.init(), this;
167
- }, m2.set = function(t2, e2) {
168
- return this.clone().$set(t2, e2);
169
- }, m2.get = function(t2) {
170
- return this[b.p(t2)]();
171
- }, m2.add = function(r2, f2) {
172
- var d2, l2 = this;
173
- r2 = Number(r2);
174
- var $3 = b.p(f2), y2 = function(t2) {
175
- var e2 = O(l2);
176
- return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
296
+ }, m3.set = function(t2, e3) {
297
+ return this.clone().$set(t2, e3);
298
+ }, m3.get = function(t2) {
299
+ return this[b2.p(t2)]();
300
+ }, m3.add = function(r3, f4) {
301
+ var d4, l3 = this;
302
+ r3 = Number(r3);
303
+ var $4 = b2.p(f4), y3 = function(t2) {
304
+ var e3 = O2(l3);
305
+ return b2.w(e3.date(e3.date() + Math.round(t2 * r3)), l3);
177
306
  };
178
- if ($3 === c3) return this.set(c3, this.$M + r2);
179
- if ($3 === h2) return this.set(h2, this.$y + r2);
180
- if ($3 === a2) return y2(1);
181
- if ($3 === o2) return y2(7);
182
- var M3 = (d2 = {}, d2[s] = e, d2[u2] = n2, d2[i2] = t, d2)[$3] || 1, m3 = this.$d.getTime() + r2 * M3;
183
- return b.w(m3, this);
184
- }, m2.subtract = function(t2, e2) {
185
- return this.add(-1 * t2, e2);
186
- }, m2.format = function(t2) {
187
- var e2 = this, n3 = this.$locale();
188
- if (!this.isValid()) return n3.invalidDate || l;
189
- 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) {
190
- return t3 && (t3[n4] || t3(e2, r2)) || i4[n4].slice(0, s3);
191
- }, d2 = function(t3) {
192
- return b.s(s2 % 12 || 12, t3, "0");
193
- }, $3 = f2 || function(t3, e3, n4) {
194
- var r3 = t3 < 12 ? "AM" : "PM";
195
- return n4 ? r3.toLowerCase() : r3;
307
+ if ($4 === c4) return this.set(c4, this.$M + r3);
308
+ if ($4 === h3) return this.set(h3, this.$y + r3);
309
+ if ($4 === a2) return y3(1);
310
+ if ($4 === o3) return y3(7);
311
+ var M4 = (d4 = {}, d4[s] = e2, d4[u3] = n2, d4[i2] = t, d4)[$4] || 1, m4 = this.$d.getTime() + r3 * M4;
312
+ return b2.w(m4, this);
313
+ }, m3.subtract = function(t2, e3) {
314
+ return this.add(-1 * t2, e3);
315
+ }, m3.format = function(t2) {
316
+ var e3 = this, n3 = this.$locale();
317
+ if (!this.isValid()) return n3.invalidDate || l2;
318
+ 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) {
319
+ return t3 && (t3[n4] || t3(e3, r3)) || i4[n4].slice(0, s3);
320
+ }, d4 = function(t3) {
321
+ return b2.s(s2 % 12 || 12, t3, "0");
322
+ }, $4 = f4 || function(t3, e4, n4) {
323
+ var r4 = t3 < 12 ? "AM" : "PM";
324
+ return n4 ? r4.toLowerCase() : r4;
196
325
  };
197
- return r2.replace(y, function(t3, r3) {
198
- return r3 || function(t4) {
326
+ return r3.replace(y2, function(t3, r4) {
327
+ return r4 || function(t4) {
199
328
  switch (t4) {
200
329
  case "YY":
201
- return String(e2.$y).slice(-2);
330
+ return String(e3.$y).slice(-2);
202
331
  case "YYYY":
203
- return b.s(e2.$y, 4, "0");
332
+ return b2.s(e3.$y, 4, "0");
204
333
  case "M":
205
334
  return a3 + 1;
206
335
  case "MM":
207
- return b.s(a3 + 1, 2, "0");
336
+ return b2.s(a3 + 1, 2, "0");
208
337
  case "MMM":
209
- return h3(n3.monthsShort, a3, c4, 3);
338
+ return h4(n3.monthsShort, a3, c5, 3);
210
339
  case "MMMM":
211
- return h3(c4, a3);
340
+ return h4(c5, a3);
212
341
  case "D":
213
- return e2.$D;
342
+ return e3.$D;
214
343
  case "DD":
215
- return b.s(e2.$D, 2, "0");
344
+ return b2.s(e3.$D, 2, "0");
216
345
  case "d":
217
- return String(e2.$W);
346
+ return String(e3.$W);
218
347
  case "dd":
219
- return h3(n3.weekdaysMin, e2.$W, o3, 2);
348
+ return h4(n3.weekdaysMin, e3.$W, o4, 2);
220
349
  case "ddd":
221
- return h3(n3.weekdaysShort, e2.$W, o3, 3);
350
+ return h4(n3.weekdaysShort, e3.$W, o4, 3);
222
351
  case "dddd":
223
- return o3[e2.$W];
352
+ return o4[e3.$W];
224
353
  case "H":
225
354
  return String(s2);
226
355
  case "HH":
227
- return b.s(s2, 2, "0");
356
+ return b2.s(s2, 2, "0");
228
357
  case "h":
229
- return d2(1);
358
+ return d4(1);
230
359
  case "hh":
231
- return d2(2);
360
+ return d4(2);
232
361
  case "a":
233
- return $3(s2, u3, true);
362
+ return $4(s2, u4, true);
234
363
  case "A":
235
- return $3(s2, u3, false);
364
+ return $4(s2, u4, false);
236
365
  case "m":
237
- return String(u3);
366
+ return String(u4);
238
367
  case "mm":
239
- return b.s(u3, 2, "0");
368
+ return b2.s(u4, 2, "0");
240
369
  case "s":
241
- return String(e2.$s);
370
+ return String(e3.$s);
242
371
  case "ss":
243
- return b.s(e2.$s, 2, "0");
372
+ return b2.s(e3.$s, 2, "0");
244
373
  case "SSS":
245
- return b.s(e2.$ms, 3, "0");
374
+ return b2.s(e3.$ms, 3, "0");
246
375
  case "Z":
247
376
  return i3;
248
377
  }
249
378
  return null;
250
379
  }(t3) || i3.replace(":", "");
251
380
  });
252
- }, m2.utcOffset = function() {
381
+ }, m3.utcOffset = function() {
253
382
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
254
- }, m2.diff = function(r2, d2, l2) {
255
- var $3, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
256
- return b.m(y2, m3);
383
+ }, m3.diff = function(r3, d4, l3) {
384
+ var $4, y3 = this, M4 = b2.p(d4), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e2, g4 = this - m4, D3 = function() {
385
+ return b2.m(y3, m4);
257
386
  };
258
- switch (M3) {
259
- case h2:
260
- $3 = D2() / 12;
387
+ switch (M4) {
388
+ case h3:
389
+ $4 = D3() / 12;
261
390
  break;
262
- case c3:
263
- $3 = D2();
391
+ case c4:
392
+ $4 = D3();
264
393
  break;
265
- case f:
266
- $3 = D2() / 3;
394
+ case f3:
395
+ $4 = D3() / 3;
267
396
  break;
268
- case o2:
269
- $3 = (g2 - v2) / 6048e5;
397
+ case o3:
398
+ $4 = (g4 - v3) / 6048e5;
270
399
  break;
271
400
  case a2:
272
- $3 = (g2 - v2) / 864e5;
401
+ $4 = (g4 - v3) / 864e5;
273
402
  break;
274
- case u2:
275
- $3 = g2 / n2;
403
+ case u3:
404
+ $4 = g4 / n2;
276
405
  break;
277
406
  case s:
278
- $3 = g2 / e;
407
+ $4 = g4 / e2;
279
408
  break;
280
409
  case i2:
281
- $3 = g2 / t;
410
+ $4 = g4 / t;
282
411
  break;
283
412
  default:
284
- $3 = g2;
285
- }
286
- return l2 ? $3 : b.a($3);
287
- }, m2.daysInMonth = function() {
288
- return this.endOf(c3).$D;
289
- }, m2.$locale = function() {
290
- return D[this.$L];
291
- }, m2.locale = function(t2, e2) {
413
+ $4 = g4;
414
+ }
415
+ return l3 ? $4 : b2.a($4);
416
+ }, m3.daysInMonth = function() {
417
+ return this.endOf(c4).$D;
418
+ }, m3.$locale = function() {
419
+ return D2[this.$L];
420
+ }, m3.locale = function(t2, e3) {
292
421
  if (!t2) return this.$L;
293
- var n3 = this.clone(), r2 = w(t2, e2, true);
294
- return r2 && (n3.$L = r2), n3;
295
- }, m2.clone = function() {
296
- return b.w(this.$d, this);
297
- }, m2.toDate = function() {
422
+ var n3 = this.clone(), r3 = w3(t2, e3, true);
423
+ return r3 && (n3.$L = r3), n3;
424
+ }, m3.clone = function() {
425
+ return b2.w(this.$d, this);
426
+ }, m3.toDate = function() {
298
427
  return new Date(this.valueOf());
299
- }, m2.toJSON = function() {
428
+ }, m3.toJSON = function() {
300
429
  return this.isValid() ? this.toISOString() : null;
301
- }, m2.toISOString = function() {
430
+ }, m3.toISOString = function() {
302
431
  return this.$d.toISOString();
303
- }, m2.toString = function() {
432
+ }, m3.toString = function() {
304
433
  return this.$d.toUTCString();
305
- }, M2;
306
- }(), k = _2.prototype;
307
- return O.prototype = k, [["$ms", r], ["$s", i2], ["$m", s], ["$H", u2], ["$W", a2], ["$M", c3], ["$y", h2], ["$D", d]].forEach(function(t2) {
308
- k[t2[1]] = function(e2) {
309
- return this.$g(e2, t2[0], t2[1]);
434
+ }, M3;
435
+ }(), k3 = _4.prototype;
436
+ return O2.prototype = k3, [["$ms", r2], ["$s", i2], ["$m", s], ["$H", u3], ["$W", a2], ["$M", c4], ["$y", h3], ["$D", d3]].forEach(function(t2) {
437
+ k3[t2[1]] = function(e3) {
438
+ return this.$g(e3, t2[0], t2[1]);
310
439
  };
311
- }), O.extend = function(t2, e2) {
312
- return t2.$i || (t2(e2, _2, O), t2.$i = true), O;
313
- }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
314
- return O(1e3 * t2);
315
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
440
+ }), O2.extend = function(t2, e3) {
441
+ return t2.$i || (t2(e3, _4, O2), t2.$i = true), O2;
442
+ }, O2.locale = w3, O2.isDayjs = S3, O2.unix = function(t2) {
443
+ return O2(1e3 * t2);
444
+ }, O2.en = D2[g3], O2.Ls = D2, O2.p = {}, O2;
316
445
  });
317
446
  }
318
447
  });
@@ -334,8 +463,8 @@ var require_windows = __commonJS({
334
463
  return true;
335
464
  }
336
465
  for (var i2 = 0; i2 < pathext.length; i2++) {
337
- var p2 = pathext[i2].toLowerCase();
338
- if (p2 && path8.substr(-p2.length).toLowerCase() === p2) {
466
+ var p = pathext[i2].toLowerCase();
467
+ if (p && path8.substr(-p.length).toLowerCase() === p) {
339
468
  return true;
340
469
  }
341
470
  }
@@ -382,11 +511,11 @@ var require_mode = __commonJS({
382
511
  var gid = stat.gid;
383
512
  var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
384
513
  var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
385
- var u2 = parseInt("100", 8);
386
- var g = parseInt("010", 8);
387
- var o2 = parseInt("001", 8);
388
- var ug = u2 | g;
389
- var ret = mod & o2 || mod & g && gid === myGid || mod & u2 && uid === myUid || mod & ug && myUid === 0;
514
+ var u3 = parseInt("100", 8);
515
+ var g3 = parseInt("010", 8);
516
+ var o3 = parseInt("001", 8);
517
+ var ug = u3 | g3;
518
+ var ret = mod & o3 || mod & g3 && gid === myGid || mod & u3 && uid === myUid || mod & ug && myUid === 0;
390
519
  return ret;
391
520
  }
392
521
  }
@@ -492,21 +621,21 @@ var require_which = __commonJS({
492
621
  const ppRaw = pathEnv[i2];
493
622
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
494
623
  const pCmd = path8.join(pathPart, cmd);
495
- const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
496
- resolve(subStep(p2, i2, 0));
624
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
625
+ resolve(subStep(p, i2, 0));
497
626
  });
498
- const subStep = (p2, i2, ii) => new Promise((resolve, reject) => {
627
+ const subStep = (p, i2, ii) => new Promise((resolve, reject) => {
499
628
  if (ii === pathExt.length)
500
629
  return resolve(step(i2 + 1));
501
630
  const ext = pathExt[ii];
502
- isexe(p2 + ext, { pathExt: pathExtExe }, (er, is) => {
631
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
503
632
  if (!er && is) {
504
633
  if (opt.all)
505
- found.push(p2 + ext);
634
+ found.push(p + ext);
506
635
  else
507
- return resolve(p2 + ext);
636
+ return resolve(p + ext);
508
637
  }
509
- return resolve(subStep(p2, i2, ii + 1));
638
+ return resolve(subStep(p, i2, ii + 1));
510
639
  });
511
640
  });
512
641
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -519,9 +648,9 @@ var require_which = __commonJS({
519
648
  const ppRaw = pathEnv[i2];
520
649
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
521
650
  const pCmd = path8.join(pathPart, cmd);
522
- const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
523
- for (let j = 0; j < pathExt.length; j++) {
524
- const cur = p2 + pathExt[j];
651
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
652
+ for (let j2 = 0; j2 < pathExt.length; j2++) {
653
+ const cur = p + pathExt[j2];
525
654
  try {
526
655
  const is = isexe.sync(cur, { pathExt: pathExtExe });
527
656
  if (is) {
@@ -586,7 +715,7 @@ var require_resolveCommand = __commonJS({
586
715
  path: env[getPathKey({ env })],
587
716
  pathExt: withoutPathExt ? path8.delimiter : void 0
588
717
  });
589
- } catch (e) {
718
+ } catch (e2) {
590
719
  } finally {
591
720
  if (shouldSwitchCwd) {
592
721
  process.chdir(cwd);
@@ -671,7 +800,7 @@ var require_readShebang = __commonJS({
671
800
  fd = fs3.openSync(command, "r");
672
801
  fs3.readSync(fd, buffer, 0, size, 0);
673
802
  fs3.closeSync(fd);
674
- } catch (e) {
803
+ } catch (e2) {
675
804
  }
676
805
  return shebangCommand(buffer.toString());
677
806
  }
@@ -869,14 +998,14 @@ var require_parser = __commonJS({
869
998
  return "";
870
999
  }, 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) {
871
1000
  return node("Float", parseFloat(left + "e" + right), line, column);
872
- }, peg$c43 = function(text3) {
873
- return node("Float", parseFloat(text3), line, column);
1001
+ }, peg$c43 = function(text2) {
1002
+ return node("Float", parseFloat(text2), line, column);
874
1003
  }, peg$c44 = "+", peg$c45 = { type: "literal", value: "+", description: '"+"' }, peg$c46 = function(digits) {
875
1004
  return digits.join("");
876
1005
  }, peg$c47 = "-", peg$c48 = { type: "literal", value: "-", description: '"-"' }, peg$c49 = function(digits) {
877
1006
  return "-" + digits.join("");
878
- }, peg$c50 = function(text3) {
879
- return node("Integer", parseInt(text3, 10), line, column);
1007
+ }, peg$c50 = function(text2) {
1008
+ return node("Integer", parseInt(text2, 10), line, column);
880
1009
  }, peg$c51 = "true", peg$c52 = { type: "literal", value: "true", description: '"true"' }, peg$c53 = function() {
881
1010
  return node("Boolean", true, line, column);
882
1011
  }, peg$c54 = "false", peg$c55 = { type: "literal", value: "false", description: '"false"' }, peg$c56 = function() {
@@ -907,8 +1036,8 @@ var require_parser = __commonJS({
907
1036
  return node("Date", /* @__PURE__ */ new Date(date + "T" + time), line, column);
908
1037
  }, 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() {
909
1038
  return "";
910
- }, peg$c94 = /^[A-Za-z0-9_\-]/, peg$c95 = { type: "class", value: "[A-Za-z0-9_\\-]", description: "[A-Za-z0-9_\\-]" }, peg$c96 = function(d) {
911
- return d.join("");
1039
+ }, peg$c94 = /^[A-Za-z0-9_\-]/, peg$c95 = { type: "class", value: "[A-Za-z0-9_\\-]", description: "[A-Za-z0-9_\\-]" }, peg$c96 = function(d3) {
1040
+ return d3.join("");
912
1041
  }, peg$c97 = '\\"', peg$c98 = { type: "literal", value: '\\"', description: '"\\\\\\""' }, peg$c99 = function() {
913
1042
  return '"';
914
1043
  }, peg$c100 = "\\\\", peg$c101 = { type: "literal", value: "\\\\", description: '"\\\\\\\\"' }, peg$c102 = function() {
@@ -932,7 +1061,7 @@ var require_parser = __commonJS({
932
1061
  }
933
1062
  peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
934
1063
  }
935
- function text2() {
1064
+ function text() {
936
1065
  return input.substring(peg$reportedPos, peg$currPos);
937
1066
  }
938
1067
  function offset() {
@@ -956,9 +1085,9 @@ var require_parser = __commonJS({
956
1085
  }
957
1086
  function peg$computePosDetails(pos) {
958
1087
  function advance(details, startPos, endPos) {
959
- var p2, ch;
960
- for (p2 = startPos; p2 < endPos; p2++) {
961
- ch = input.charAt(p2);
1088
+ var p, ch;
1089
+ for (p = startPos; p < endPos; p++) {
1090
+ ch = input.charAt(p);
962
1091
  if (ch === "\n") {
963
1092
  if (!details.seenCR) {
964
1093
  details.line++;
@@ -998,10 +1127,10 @@ var require_parser = __commonJS({
998
1127
  function peg$buildException(message, expected2, pos) {
999
1128
  function cleanupExpected(expected3) {
1000
1129
  var i2 = 1;
1001
- expected3.sort(function(a2, b) {
1002
- if (a2.description < b.description) {
1130
+ expected3.sort(function(a2, b2) {
1131
+ if (a2.description < b2.description) {
1003
1132
  return -1;
1004
- } else if (a2.description > b.description) {
1133
+ } else if (a2.description > b2.description) {
1005
1134
  return 1;
1006
1135
  } else {
1007
1136
  return 0;
@@ -4482,8 +4611,8 @@ var require_compiler = __commonJS({
4482
4611
  if (!pathAssigned(quotedPath)) {
4483
4612
  assignedPaths.push(quotedPath);
4484
4613
  }
4485
- assignedPaths = assignedPaths.filter(function(p2) {
4486
- return p2.indexOf(quotedPath) !== 0;
4614
+ assignedPaths = assignedPaths.filter(function(p) {
4615
+ return p.indexOf(quotedPath) !== 0;
4487
4616
  });
4488
4617
  assignedPaths.push(quotedPath);
4489
4618
  context = deepRef(data, path8, [], line, column);
@@ -4605,8 +4734,8 @@ var require_XDGAppPaths = __commonJS({
4605
4734
  meta.mainFilename()
4606
4735
  ];
4607
4736
  var nameFallback = "$eval";
4608
- var name = path8.parse(((_c = namePriorityList.find(function(e) {
4609
- return isString(e);
4737
+ var name = path8.parse(((_c = namePriorityList.find(function(e2) {
4738
+ return isString(e2);
4610
4739
  })) !== null && _c !== void 0 ? _c : nameFallback) + suffix).name;
4611
4740
  XDGAppPaths.$name = function $name() {
4612
4741
  return name;
@@ -4663,8 +4792,8 @@ var require_XDG = __commonJS({
4663
4792
  "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js"(exports) {
4664
4793
  "use strict";
4665
4794
  var __spreadArray = exports && exports.__spreadArray || function(to, from) {
4666
- for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
4667
- to[j] = from[i2];
4795
+ for (var i2 = 0, il = from.length, j2 = to.length; i2 < il; i2++, j2++)
4796
+ to[j2] = from[i2];
4668
4797
  return to;
4669
4798
  };
4670
4799
  exports.__esModule = true;
@@ -4773,8 +4902,8 @@ var require_OSPaths = __commonJS({
4773
4902
  "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js"(exports) {
4774
4903
  "use strict";
4775
4904
  var __spreadArray = exports && exports.__spreadArray || function(to, from) {
4776
- for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
4777
- to[j] = from[i2];
4905
+ for (var i2 = 0, il = from.length, j2 = to.length; i2 < il; i2++, j2++)
4906
+ to[j2] = from[i2];
4778
4907
  return to;
4779
4908
  };
4780
4909
  exports.__esModule = true;
@@ -4799,8 +4928,8 @@ var require_OSPaths = __commonJS({
4799
4928
  env.get("HOME"),
4800
4929
  env.get("HOMEDRIVE") || env.get("HOMEPATH") ? path8.join(env.get("HOMEDRIVE") || "", env.get("HOMEPATH") || "") : void 0
4801
4930
  ];
4802
- return normalizePath(priorityList.find(function(v) {
4803
- return !isEmpty(v);
4931
+ return normalizePath(priorityList.find(function(v2) {
4932
+ return !isEmpty(v2);
4804
4933
  }));
4805
4934
  };
4806
4935
  return isWinOS ? windows() : posix();
@@ -4817,8 +4946,8 @@ var require_OSPaths = __commonJS({
4817
4946
  env.get("TEMP"),
4818
4947
  env.get("TMP")
4819
4948
  ];
4820
- return normalizePath(priorityList.find(function(v) {
4821
- return !isEmpty(v);
4949
+ return normalizePath(priorityList.find(function(v2) {
4950
+ return !isEmpty(v2);
4822
4951
  })) || fallback;
4823
4952
  }
4824
4953
  function windows() {
@@ -4852,10 +4981,10 @@ var require_OSPaths = __commonJS({
4852
4981
  return joinPathToBase(env.get("SystemDrive"), ["\\", "Temp"]);
4853
4982
  }
4854
4983
  ];
4855
- var v = priorityListLazy.find(function(v2) {
4856
- return v2 && !isEmpty(v2());
4984
+ var v2 = priorityListLazy.find(function(v3) {
4985
+ return v3 && !isEmpty(v3());
4857
4986
  });
4858
- return v && normalizePath(v()) || fallback;
4987
+ return v2 && normalizePath(v2()) || fallback;
4859
4988
  }
4860
4989
  return isWinOS ? windows() : posix();
4861
4990
  }
@@ -4880,25 +5009,25 @@ var require_OSPaths = __commonJS({
4880
5009
  var require_node = __commonJS({
4881
5010
  "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js"(exports) {
4882
5011
  "use strict";
4883
- var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m, k, k2) {
4884
- if (k2 === void 0) k2 = k;
4885
- Object.defineProperty(o2, k2, { enumerable: true, get: function() {
4886
- return m[k];
5012
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
5013
+ if (k22 === void 0) k22 = k3;
5014
+ Object.defineProperty(o3, k22, { enumerable: true, get: function() {
5015
+ return m2[k3];
4887
5016
  } });
4888
- } : function(o2, m, k, k2) {
4889
- if (k2 === void 0) k2 = k;
4890
- o2[k2] = m[k];
5017
+ } : function(o3, m2, k3, k22) {
5018
+ if (k22 === void 0) k22 = k3;
5019
+ o3[k22] = m2[k3];
4891
5020
  });
4892
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v) {
4893
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
4894
- } : function(o2, v) {
4895
- o2["default"] = v;
5021
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v2) {
5022
+ Object.defineProperty(o3, "default", { enumerable: true, value: v2 });
5023
+ } : function(o3, v2) {
5024
+ o3["default"] = v2;
4896
5025
  });
4897
5026
  var __importStar = exports && exports.__importStar || function(mod) {
4898
5027
  if (mod && mod.__esModule) return mod;
4899
5028
  var result = {};
4900
5029
  if (mod != null) {
4901
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
5030
+ for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding(result, mod, k3);
4902
5031
  }
4903
5032
  __setModuleDefault(result, mod);
4904
5033
  return result;
@@ -4935,25 +5064,25 @@ var require_mod_cjs = __commonJS({
4935
5064
  var require_node2 = __commonJS({
4936
5065
  "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js"(exports) {
4937
5066
  "use strict";
4938
- var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m, k, k2) {
4939
- if (k2 === void 0) k2 = k;
4940
- Object.defineProperty(o2, k2, { enumerable: true, get: function() {
4941
- return m[k];
5067
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
5068
+ if (k22 === void 0) k22 = k3;
5069
+ Object.defineProperty(o3, k22, { enumerable: true, get: function() {
5070
+ return m2[k3];
4942
5071
  } });
4943
- } : function(o2, m, k, k2) {
4944
- if (k2 === void 0) k2 = k;
4945
- o2[k2] = m[k];
5072
+ } : function(o3, m2, k3, k22) {
5073
+ if (k22 === void 0) k22 = k3;
5074
+ o3[k22] = m2[k3];
4946
5075
  });
4947
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v) {
4948
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
4949
- } : function(o2, v) {
4950
- o2["default"] = v;
5076
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v2) {
5077
+ Object.defineProperty(o3, "default", { enumerable: true, value: v2 });
5078
+ } : function(o3, v2) {
5079
+ o3["default"] = v2;
4951
5080
  });
4952
5081
  var __importStar = exports && exports.__importStar || function(mod) {
4953
5082
  if (mod && mod.__esModule) return mod;
4954
5083
  var result = {};
4955
5084
  if (mod != null) {
4956
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
5085
+ for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding(result, mod, k3);
4957
5086
  }
4958
5087
  __setModuleDefault(result, mod);
4959
5088
  return result;
@@ -4993,25 +5122,25 @@ var require_mod_cjs2 = __commonJS({
4993
5122
  var require_node3 = __commonJS({
4994
5123
  "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js"(exports) {
4995
5124
  "use strict";
4996
- var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m, k, k2) {
4997
- if (k2 === void 0) k2 = k;
4998
- Object.defineProperty(o2, k2, { enumerable: true, get: function() {
4999
- return m[k];
5125
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
5126
+ if (k22 === void 0) k22 = k3;
5127
+ Object.defineProperty(o3, k22, { enumerable: true, get: function() {
5128
+ return m2[k3];
5000
5129
  } });
5001
- } : function(o2, m, k, k2) {
5002
- if (k2 === void 0) k2 = k;
5003
- o2[k2] = m[k];
5130
+ } : function(o3, m2, k3, k22) {
5131
+ if (k22 === void 0) k22 = k3;
5132
+ o3[k22] = m2[k3];
5004
5133
  });
5005
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o2, v) {
5006
- Object.defineProperty(o2, "default", { enumerable: true, value: v });
5007
- } : function(o2, v) {
5008
- o2["default"] = v;
5134
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o3, v2) {
5135
+ Object.defineProperty(o3, "default", { enumerable: true, value: v2 });
5136
+ } : function(o3, v2) {
5137
+ o3["default"] = v2;
5009
5138
  });
5010
5139
  var __importStar = exports && exports.__importStar || function(mod) {
5011
5140
  if (mod && mod.__esModule) return mod;
5012
5141
  var result = {};
5013
5142
  if (mod != null) {
5014
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
5143
+ for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding(result, mod, k3);
5015
5144
  }
5016
5145
  __setModuleDefault(result, mod);
5017
5146
  return result;
@@ -5054,10 +5183,668 @@ var require_mod_cjs3 = __commonJS({
5054
5183
  });
5055
5184
 
5056
5185
  // iac/index.ts
5057
- var import_dayjs = __toESM(require_dayjs_min(), 1);
5058
5186
  import crypto from "crypto";
5059
5187
  import path7 from "path";
5060
- import * as p from "@clack/prompts";
5188
+
5189
+ // ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
5190
+ import { stripVTControlCharacters as S2 } from "node:util";
5191
+
5192
+ // ../../node_modules/.pnpm/@clack+core@0.4.1/node_modules/@clack/core/dist/index.mjs
5193
+ var import_sisteransi = __toESM(require_src(), 1);
5194
+ var import_picocolors = __toESM(require_picocolors(), 1);
5195
+ import { stdin as $, stdout as j } from "node:process";
5196
+ import * as f from "node:readline";
5197
+ import M from "node:readline";
5198
+ import { WriteStream as U } from "node:tty";
5199
+ function J({ onlyFirst: t = false } = {}) {
5200
+ 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("|");
5201
+ return new RegExp(F2, t ? void 0 : "g");
5202
+ }
5203
+ var Q = J();
5204
+ function T(t) {
5205
+ if (typeof t != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
5206
+ return t.replace(Q, "");
5207
+ }
5208
+ function O(t) {
5209
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5210
+ }
5211
+ var P = { exports: {} };
5212
+ (function(t) {
5213
+ var u3 = {};
5214
+ t.exports = u3, u3.eastAsianWidth = function(e2) {
5215
+ var s = e2.charCodeAt(0), i2 = e2.length == 2 ? e2.charCodeAt(1) : 0, D2 = s;
5216
+ 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";
5217
+ }, u3.characterLength = function(e2) {
5218
+ var s = this.eastAsianWidth(e2);
5219
+ return s == "F" || s == "W" || s == "A" ? 2 : 1;
5220
+ };
5221
+ function F2(e2) {
5222
+ return e2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
5223
+ }
5224
+ u3.length = function(e2) {
5225
+ for (var s = F2(e2), i2 = 0, D2 = 0; D2 < s.length; D2++) i2 = i2 + this.characterLength(s[D2]);
5226
+ return i2;
5227
+ }, u3.slice = function(e2, s, i2) {
5228
+ textLen = u3.length(e2), s = s || 0, i2 = i2 || 1, s < 0 && (s = textLen + s), i2 < 0 && (i2 = textLen + i2);
5229
+ for (var D2 = "", C2 = 0, o3 = F2(e2), E = 0; E < o3.length; E++) {
5230
+ var a2 = o3[E], n2 = u3.length(a2);
5231
+ if (C2 >= s - (n2 == 2 ? 1 : 0)) if (C2 + n2 <= i2) D2 += a2;
5232
+ else break;
5233
+ C2 += n2;
5234
+ }
5235
+ return D2;
5236
+ };
5237
+ })(P);
5238
+ var X = P.exports;
5239
+ var DD = O(X);
5240
+ var uD = function() {
5241
+ 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;
5242
+ };
5243
+ var FD = O(uD);
5244
+ function A(t, u3 = {}) {
5245
+ if (typeof t != "string" || t.length === 0 || (u3 = { ambiguousIsNarrow: true, ...u3 }, t = T(t), t.length === 0)) return 0;
5246
+ t = t.replace(FD(), " ");
5247
+ const F2 = u3.ambiguousIsNarrow ? 1 : 2;
5248
+ let e2 = 0;
5249
+ for (const s of t) {
5250
+ const i2 = s.codePointAt(0);
5251
+ if (i2 <= 31 || i2 >= 127 && i2 <= 159 || i2 >= 768 && i2 <= 879) continue;
5252
+ switch (DD.eastAsianWidth(s)) {
5253
+ case "F":
5254
+ case "W":
5255
+ e2 += 2;
5256
+ break;
5257
+ case "A":
5258
+ e2 += F2;
5259
+ break;
5260
+ default:
5261
+ e2 += 1;
5262
+ }
5263
+ }
5264
+ return e2;
5265
+ }
5266
+ var m = 10;
5267
+ var L = (t = 0) => (u3) => `\x1B[${u3 + t}m`;
5268
+ var N = (t = 0) => (u3) => `\x1B[${38 + t};5;${u3}m`;
5269
+ var I = (t = 0) => (u3, F2, e2) => `\x1B[${38 + t};2;${u3};${F2};${e2}m`;
5270
+ 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] } };
5271
+ Object.keys(r.modifier);
5272
+ var tD = Object.keys(r.color);
5273
+ var eD = Object.keys(r.bgColor);
5274
+ [...tD, ...eD];
5275
+ function sD() {
5276
+ const t = /* @__PURE__ */ new Map();
5277
+ for (const [u3, F2] of Object.entries(r)) {
5278
+ 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]);
5279
+ Object.defineProperty(r, u3, { value: F2, enumerable: false });
5280
+ }
5281
+ 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) => {
5282
+ const F2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u3.toString(16));
5283
+ if (!F2) return [0, 0, 0];
5284
+ let [e2] = F2;
5285
+ e2.length === 3 && (e2 = [...e2].map((i2) => i2 + i2).join(""));
5286
+ const s = Number.parseInt(e2, 16);
5287
+ return [s >> 16 & 255, s >> 8 & 255, s & 255];
5288
+ }, enumerable: false }, hexToAnsi256: { value: (u3) => r.rgbToAnsi256(...r.hexToRgb(u3)), enumerable: false }, ansi256ToAnsi: { value: (u3) => {
5289
+ if (u3 < 8) return 30 + u3;
5290
+ if (u3 < 16) return 90 + (u3 - 8);
5291
+ let F2, e2, s;
5292
+ if (u3 >= 232) F2 = ((u3 - 232) * 10 + 8) / 255, e2 = F2, s = F2;
5293
+ else {
5294
+ u3 -= 16;
5295
+ const C2 = u3 % 36;
5296
+ F2 = Math.floor(u3 / 36) / 5, e2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
5297
+ }
5298
+ const i2 = Math.max(F2, e2, s) * 2;
5299
+ if (i2 === 0) return 30;
5300
+ let D2 = 30 + (Math.round(s) << 2 | Math.round(e2) << 1 | Math.round(F2));
5301
+ return i2 === 2 && (D2 += 60), D2;
5302
+ }, 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;
5303
+ }
5304
+ var iD = sD();
5305
+ var v = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
5306
+ var CD = 39;
5307
+ var w = "\x07";
5308
+ var W = "[";
5309
+ var rD = "]";
5310
+ var R = "m";
5311
+ var y = `${rD}8;;`;
5312
+ var V = (t) => `${v.values().next().value}${W}${t}${R}`;
5313
+ var z = (t) => `${v.values().next().value}${y}${t}${w}`;
5314
+ var ED = (t) => t.split(" ").map((u3) => A(u3));
5315
+ var _ = (t, u3, F2) => {
5316
+ const e2 = [...u3];
5317
+ let s = false, i2 = false, D2 = A(T(t[t.length - 1]));
5318
+ for (const [C2, o3] of e2.entries()) {
5319
+ const E = A(o3);
5320
+ 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) {
5321
+ i2 ? o3 === w && (s = false, i2 = false) : o3 === R && (s = false);
5322
+ continue;
5323
+ }
5324
+ D2 += E, D2 === F2 && C2 < e2.length - 1 && (t.push(""), D2 = 0);
5325
+ }
5326
+ !D2 && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
5327
+ };
5328
+ var nD = (t) => {
5329
+ const u3 = t.split(" ");
5330
+ let F2 = u3.length;
5331
+ for (; F2 > 0 && !(A(u3[F2 - 1]) > 0); ) F2--;
5332
+ return F2 === u3.length ? t : u3.slice(0, F2).join(" ") + u3.slice(F2).join("");
5333
+ };
5334
+ var oD = (t, u3, F2 = {}) => {
5335
+ if (F2.trim !== false && t.trim() === "") return "";
5336
+ let e2 = "", s, i2;
5337
+ const D2 = ED(t);
5338
+ let C2 = [""];
5339
+ for (const [E, a2] of t.split(" ").entries()) {
5340
+ F2.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
5341
+ let n2 = A(C2[C2.length - 1]);
5342
+ 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) {
5343
+ const B2 = u3 - n2, p = 1 + Math.floor((D2[E] - B2 - 1) / u3);
5344
+ Math.floor((D2[E] - 1) / u3) < p && C2.push(""), _(C2, a2, u3);
5345
+ continue;
5346
+ }
5347
+ if (n2 + D2[E] > u3 && n2 > 0 && D2[E] > 0) {
5348
+ if (F2.wordWrap === false && n2 < u3) {
5349
+ _(C2, a2, u3);
5350
+ continue;
5351
+ }
5352
+ C2.push("");
5353
+ }
5354
+ if (n2 + D2[E] > u3 && F2.wordWrap === false) {
5355
+ _(C2, a2, u3);
5356
+ continue;
5357
+ }
5358
+ C2[C2.length - 1] += a2;
5359
+ }
5360
+ F2.trim !== false && (C2 = C2.map((E) => nD(E)));
5361
+ const o3 = [...C2.join(`
5362
+ `)];
5363
+ for (const [E, a2] of o3.entries()) {
5364
+ if (e2 += a2, v.has(a2)) {
5365
+ const { groups: B2 } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y}(?<uri>.*)${w})`).exec(o3.slice(E).join("")) || { groups: {} };
5366
+ if (B2.code !== void 0) {
5367
+ const p = Number.parseFloat(B2.code);
5368
+ s = p === CD ? void 0 : p;
5369
+ } else B2.uri !== void 0 && (i2 = B2.uri.length === 0 ? void 0 : B2.uri);
5370
+ }
5371
+ const n2 = iD.codes.get(Number(s));
5372
+ o3[E + 1] === `
5373
+ ` ? (i2 && (e2 += z("")), s && n2 && (e2 += V(n2))) : a2 === `
5374
+ ` && (s && n2 && (e2 += V(s)), i2 && (e2 += z(i2)));
5375
+ }
5376
+ return e2;
5377
+ };
5378
+ function G(t, u3, F2) {
5379
+ return String(t).normalize().replace(/\r\n/g, `
5380
+ `).split(`
5381
+ `).map((e2) => oD(e2, u3, F2)).join(`
5382
+ `);
5383
+ }
5384
+ var aD = ["up", "down", "left", "right", "space", "enter", "cancel"];
5385
+ var c = { actions: new Set(aD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
5386
+ function k(t, u3) {
5387
+ if (typeof t == "string") return c.aliases.get(t) === u3;
5388
+ for (const F2 of t) if (F2 !== void 0 && k(F2, u3)) return true;
5389
+ return false;
5390
+ }
5391
+ function lD(t, u3) {
5392
+ if (t === u3) return;
5393
+ const F2 = t.split(`
5394
+ `), e2 = u3.split(`
5395
+ `), s = [];
5396
+ for (let i2 = 0; i2 < Math.max(F2.length, e2.length); i2++) F2[i2] !== e2[i2] && s.push(i2);
5397
+ return s;
5398
+ }
5399
+ var xD = globalThis.process.platform.startsWith("win");
5400
+ var S = Symbol("clack:cancel");
5401
+ function BD(t) {
5402
+ return t === S;
5403
+ }
5404
+ function d(t, u3) {
5405
+ const F2 = t;
5406
+ F2.isTTY && F2.setRawMode(u3);
5407
+ }
5408
+ function cD({ input: t = $, output: u3 = j, overwrite: F2 = true, hideCursor: e2 = true } = {}) {
5409
+ const s = f.createInterface({ input: t, output: u3, prompt: "", tabSize: 1 });
5410
+ f.emitKeypressEvents(t, s), t.isTTY && t.setRawMode(true);
5411
+ const i2 = (D2, { name: C2, sequence: o3 }) => {
5412
+ const E = String(D2);
5413
+ if (k([E, C2, o3], "cancel")) {
5414
+ e2 && u3.write(import_sisteransi.cursor.show), process.exit(0);
5415
+ return;
5416
+ }
5417
+ if (!F2) return;
5418
+ const a2 = C2 === "return" ? 0 : -1, n2 = C2 === "return" ? -1 : 0;
5419
+ f.moveCursor(u3, a2, n2, () => {
5420
+ f.clearLine(u3, 1, () => {
5421
+ t.once("keypress", i2);
5422
+ });
5423
+ });
5424
+ };
5425
+ return e2 && u3.write(import_sisteransi.cursor.hide), t.once("keypress", i2), () => {
5426
+ t.off("keypress", i2), e2 && u3.write(import_sisteransi.cursor.show), t.isTTY && !xD && t.setRawMode(false), s.terminal = false, s.close();
5427
+ };
5428
+ }
5429
+ var AD = Object.defineProperty;
5430
+ var pD = (t, u3, F2) => u3 in t ? AD(t, u3, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u3] = F2;
5431
+ var h = (t, u3, F2) => (pD(t, typeof u3 != "symbol" ? u3 + "" : u3, F2), F2);
5432
+ var x = class {
5433
+ constructor(u3, F2 = true) {
5434
+ 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");
5435
+ const { input: e2 = $, output: s = j, render: i2, signal: D2, ...C2 } = u3;
5436
+ 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;
5437
+ }
5438
+ unsubscribe() {
5439
+ this._subscribers.clear();
5440
+ }
5441
+ setSubscriber(u3, F2) {
5442
+ const e2 = this._subscribers.get(u3) ?? [];
5443
+ e2.push(F2), this._subscribers.set(u3, e2);
5444
+ }
5445
+ on(u3, F2) {
5446
+ this.setSubscriber(u3, { cb: F2 });
5447
+ }
5448
+ once(u3, F2) {
5449
+ this.setSubscriber(u3, { cb: F2, once: true });
5450
+ }
5451
+ emit(u3, ...F2) {
5452
+ const e2 = this._subscribers.get(u3) ?? [], s = [];
5453
+ for (const i2 of e2) i2.cb(...F2), i2.once && s.push(() => e2.splice(e2.indexOf(i2), 1));
5454
+ for (const i2 of s) i2();
5455
+ }
5456
+ prompt() {
5457
+ return new Promise((u3, F2) => {
5458
+ if (this._abortSignal) {
5459
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u3(S);
5460
+ this._abortSignal.addEventListener("abort", () => {
5461
+ this.state = "cancel", this.close();
5462
+ }, { once: true });
5463
+ }
5464
+ const e2 = new U(0);
5465
+ e2._write = (s, i2, D2) => {
5466
+ this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
5467
+ }, this.input.pipe(e2), this.rl = M.createInterface({ input: this.input, output: e2, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), M.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
5468
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u3(this.value);
5469
+ }), this.once("cancel", () => {
5470
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u3(S);
5471
+ });
5472
+ });
5473
+ }
5474
+ onKeypress(u3, F2) {
5475
+ 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") {
5476
+ if (this.opts.validate) {
5477
+ const e2 = this.opts.validate(this.value);
5478
+ e2 && (this.error = e2 instanceof Error ? e2.message : e2, this.state = "error", this.rl?.write(this.value));
5479
+ }
5480
+ this.state !== "error" && (this.state = "submit");
5481
+ }
5482
+ 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();
5483
+ }
5484
+ close() {
5485
+ this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
5486
+ `), d(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
5487
+ }
5488
+ restoreCursor() {
5489
+ const u3 = G(this._prevFrame, process.stdout.columns, { hard: true }).split(`
5490
+ `).length - 1;
5491
+ this.output.write(import_sisteransi.cursor.move(-999, u3 * -1));
5492
+ }
5493
+ render() {
5494
+ const u3 = G(this._render(this) ?? "", process.stdout.columns, { hard: true });
5495
+ if (u3 !== this._prevFrame) {
5496
+ if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
5497
+ else {
5498
+ const F2 = lD(this._prevFrame, u3);
5499
+ if (this.restoreCursor(), F2 && F2?.length === 1) {
5500
+ const e2 = F2[0];
5501
+ this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.lines(1));
5502
+ const s = u3.split(`
5503
+ `);
5504
+ this.output.write(s[e2]), this._prevFrame = u3, this.output.write(import_sisteransi.cursor.move(0, s.length - e2 - 1));
5505
+ return;
5506
+ }
5507
+ if (F2 && F2?.length > 1) {
5508
+ const e2 = F2[0];
5509
+ this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.down());
5510
+ const s = u3.split(`
5511
+ `).slice(e2);
5512
+ this.output.write(s.join(`
5513
+ `)), this._prevFrame = u3;
5514
+ return;
5515
+ }
5516
+ this.output.write(import_sisteransi.erase.down());
5517
+ }
5518
+ this.output.write(u3), this.state === "initial" && (this.state = "active"), this._prevFrame = u3;
5519
+ }
5520
+ }
5521
+ };
5522
+ var fD = class extends x {
5523
+ get cursor() {
5524
+ return this.value ? 0 : 1;
5525
+ }
5526
+ get _value() {
5527
+ return this.cursor === 0;
5528
+ }
5529
+ constructor(u3) {
5530
+ super(u3, false), this.value = !!u3.initialValue, this.on("value", () => {
5531
+ this.value = this._value;
5532
+ }), this.on("confirm", (F2) => {
5533
+ this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = F2, this.state = "submit", this.close();
5534
+ }), this.on("cursor", () => {
5535
+ this.value = !this.value;
5536
+ });
5537
+ }
5538
+ };
5539
+ var yD = Object.defineProperty;
5540
+ var _D = (t, u3, F2) => u3 in t ? yD(t, u3, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u3] = F2;
5541
+ var Z = (t, u3, F2) => (_D(t, typeof u3 != "symbol" ? u3 + "" : u3, F2), F2);
5542
+ var kD = class extends x {
5543
+ constructor({ mask: u3, ...F2 }) {
5544
+ super(F2), Z(this, "valueWithCursor", ""), Z(this, "_mask", "\u2022"), this._mask = u3 ?? "\u2022", this.on("finalize", () => {
5545
+ this.valueWithCursor = this.masked;
5546
+ }), this.on("value", () => {
5547
+ if (this.cursor >= this.value.length) this.valueWithCursor = `${this.masked}${import_picocolors.default.inverse(import_picocolors.default.hidden("_"))}`;
5548
+ else {
5549
+ const e2 = this.masked.slice(0, this.cursor), s = this.masked.slice(this.cursor);
5550
+ this.valueWithCursor = `${e2}${import_picocolors.default.inverse(s[0])}${s.slice(1)}`;
5551
+ }
5552
+ });
5553
+ }
5554
+ get cursor() {
5555
+ return this._cursor;
5556
+ }
5557
+ get masked() {
5558
+ return this.value.replaceAll(/./g, this._mask);
5559
+ }
5560
+ };
5561
+ var SD = Object.defineProperty;
5562
+ var $D = (t, u3, F2) => u3 in t ? SD(t, u3, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u3] = F2;
5563
+ var q = (t, u3, F2) => ($D(t, typeof u3 != "symbol" ? u3 + "" : u3, F2), F2);
5564
+ var jD = class extends x {
5565
+ constructor(u3) {
5566
+ 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) => {
5567
+ switch (F2) {
5568
+ case "left":
5569
+ case "up":
5570
+ this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
5571
+ break;
5572
+ case "down":
5573
+ case "right":
5574
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
5575
+ break;
5576
+ }
5577
+ this.changeValue();
5578
+ });
5579
+ }
5580
+ get _value() {
5581
+ return this.options[this.cursor];
5582
+ }
5583
+ changeValue() {
5584
+ this.value = this._value.value;
5585
+ }
5586
+ };
5587
+ var PD = class extends x {
5588
+ get valueWithCursor() {
5589
+ if (this.state === "submit") return this.value;
5590
+ if (this.cursor >= this.value.length) return `${this.value}\u2588`;
5591
+ const u3 = this.value.slice(0, this.cursor), [F2, ...e2] = this.value.slice(this.cursor);
5592
+ return `${u3}${import_picocolors.default.inverse(F2)}${e2.join("")}`;
5593
+ }
5594
+ get cursor() {
5595
+ return this._cursor;
5596
+ }
5597
+ constructor(u3) {
5598
+ super(u3), this.on("finalize", () => {
5599
+ this.value || (this.value = u3.defaultValue);
5600
+ });
5601
+ }
5602
+ };
5603
+
5604
+ // ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
5605
+ var import_picocolors2 = __toESM(require_picocolors(), 1);
5606
+ var import_sisteransi2 = __toESM(require_src(), 1);
5607
+ import g2 from "node:process";
5608
+ function ce() {
5609
+ return g2.platform !== "win32" ? g2.env.TERM !== "linux" : !!g2.env.CI || !!g2.env.WT_SESSION || !!g2.env.TERMINUS_SUBLIME || g2.env.ConEmuTask === "{cmd::Cmder}" || g2.env.TERM_PROGRAM === "Terminus-Sublime" || g2.env.TERM_PROGRAM === "vscode" || g2.env.TERM === "xterm-256color" || g2.env.TERM === "alacritty" || g2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
5610
+ }
5611
+ var V2 = ce();
5612
+ var u = (t, n2) => V2 ? t : n2;
5613
+ var le = u("\u25C6", "*");
5614
+ var L2 = u("\u25A0", "x");
5615
+ var W2 = u("\u25B2", "x");
5616
+ var C = u("\u25C7", "o");
5617
+ var ue = u("\u250C", "T");
5618
+ var o = u("\u2502", "|");
5619
+ var d2 = u("\u2514", "\u2014");
5620
+ var k2 = u("\u25CF", ">");
5621
+ var P2 = u("\u25CB", " ");
5622
+ var A2 = u("\u25FB", "[\u2022]");
5623
+ var T2 = u("\u25FC", "[+]");
5624
+ var F = u("\u25FB", "[ ]");
5625
+ var $e = u("\u25AA", "\u2022");
5626
+ var _2 = u("\u2500", "-");
5627
+ var me = u("\u256E", "+");
5628
+ var de = u("\u251C", "+");
5629
+ var pe = u("\u256F", "+");
5630
+ var q2 = u("\u25CF", "\u2022");
5631
+ var D = u("\u25C6", "*");
5632
+ var U2 = u("\u25B2", "!");
5633
+ var K = u("\u25A0", "x");
5634
+ var w2 = (t) => {
5635
+ switch (t) {
5636
+ case "initial":
5637
+ case "active":
5638
+ return import_picocolors2.default.cyan(le);
5639
+ case "cancel":
5640
+ return import_picocolors2.default.red(L2);
5641
+ case "error":
5642
+ return import_picocolors2.default.yellow(W2);
5643
+ case "submit":
5644
+ return import_picocolors2.default.green(C);
5645
+ }
5646
+ };
5647
+ var B = (t) => {
5648
+ 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));
5649
+ let l2 = 0;
5650
+ 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));
5651
+ const $3 = c4 < s.length && l2 > 0, p = c4 < s.length && l2 + c4 < s.length;
5652
+ return s.slice(l2, l2 + c4).map((M2, v2, x2) => {
5653
+ const j2 = v2 === 0 && $3, E = v2 === x2.length - 1 && p;
5654
+ return j2 || E ? import_picocolors2.default.dim("...") : r2(M2, v2 + l2 === n2);
5655
+ });
5656
+ };
5657
+ var he = (t) => new PD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
5658
+ const n2 = `${import_picocolors2.default.gray(o)}
5659
+ ${w2(this.state)} ${t.message}
5660
+ `, 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;
5661
+ switch (this.state) {
5662
+ case "error":
5663
+ return `${n2.trim()}
5664
+ ${import_picocolors2.default.yellow(o)} ${r2}
5665
+ ${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
5666
+ `;
5667
+ case "submit":
5668
+ return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(this.value || t.placeholder)}`;
5669
+ case "cancel":
5670
+ return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
5671
+ ${import_picocolors2.default.gray(o)}` : ""}`;
5672
+ default:
5673
+ return `${n2}${import_picocolors2.default.cyan(o)} ${r2}
5674
+ ${import_picocolors2.default.cyan(d2)}
5675
+ `;
5676
+ }
5677
+ } }).prompt();
5678
+ var ge = (t) => new kD({ validate: t.validate, mask: t.mask ?? $e, render() {
5679
+ const n2 = `${import_picocolors2.default.gray(o)}
5680
+ ${w2(this.state)} ${t.message}
5681
+ `, s = this.valueWithCursor, r2 = this.masked;
5682
+ switch (this.state) {
5683
+ case "error":
5684
+ return `${n2.trim()}
5685
+ ${import_picocolors2.default.yellow(o)} ${r2}
5686
+ ${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
5687
+ `;
5688
+ case "submit":
5689
+ return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(r2)}`;
5690
+ case "cancel":
5691
+ return `${n2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(r2 ?? ""))}${r2 ? `
5692
+ ${import_picocolors2.default.gray(o)}` : ""}`;
5693
+ default:
5694
+ return `${n2}${import_picocolors2.default.cyan(o)} ${s}
5695
+ ${import_picocolors2.default.cyan(d2)}
5696
+ `;
5697
+ }
5698
+ } }).prompt();
5699
+ var ye = (t) => {
5700
+ const n2 = t.active ?? "Yes", s = t.inactive ?? "No";
5701
+ return new fD({ active: n2, inactive: s, initialValue: t.initialValue ?? true, render() {
5702
+ const r2 = `${import_picocolors2.default.gray(o)}
5703
+ ${w2(this.state)} ${t.message}
5704
+ `, i2 = this.value ? n2 : s;
5705
+ switch (this.state) {
5706
+ case "submit":
5707
+ return `${r2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(i2)}`;
5708
+ case "cancel":
5709
+ return `${r2}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i2))}
5710
+ ${import_picocolors2.default.gray(o)}`;
5711
+ default:
5712
+ 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}`}
5713
+ ${import_picocolors2.default.cyan(d2)}
5714
+ `;
5715
+ }
5716
+ } }).prompt();
5717
+ };
5718
+ var ve = (t) => {
5719
+ const n2 = (s, r2) => {
5720
+ const i2 = s.label ?? String(s.value);
5721
+ switch (r2) {
5722
+ case "selected":
5723
+ return `${import_picocolors2.default.dim(i2)}`;
5724
+ case "active":
5725
+ return `${import_picocolors2.default.green(k2)} ${i2} ${s.hint ? import_picocolors2.default.dim(`(${s.hint})`) : ""}`;
5726
+ case "cancelled":
5727
+ return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(i2))}`;
5728
+ default:
5729
+ return `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(i2)}`;
5730
+ }
5731
+ };
5732
+ return new jD({ options: t.options, initialValue: t.initialValue, render() {
5733
+ const s = `${import_picocolors2.default.gray(o)}
5734
+ ${w2(this.state)} ${t.message}
5735
+ `;
5736
+ switch (this.state) {
5737
+ case "submit":
5738
+ return `${s}${import_picocolors2.default.gray(o)} ${n2(this.options[this.cursor], "selected")}`;
5739
+ case "cancel":
5740
+ return `${s}${import_picocolors2.default.gray(o)} ${n2(this.options[this.cursor], "cancelled")}
5741
+ ${import_picocolors2.default.gray(o)}`;
5742
+ default:
5743
+ 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(`
5744
+ ${import_picocolors2.default.cyan(o)} `)}
5745
+ ${import_picocolors2.default.cyan(d2)}
5746
+ `;
5747
+ }
5748
+ } }).prompt();
5749
+ };
5750
+ var Me = (t = "", n2 = "") => {
5751
+ const s = `
5752
+ ${t}
5753
+ `.split(`
5754
+ `), r2 = S2(n2).length, i2 = Math.max(s.reduce((c4, l2) => {
5755
+ const $3 = S2(l2);
5756
+ return $3.length > c4 ? $3.length : c4;
5757
+ }, 0), r2) + 2, a2 = s.map((c4) => `${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(c4)}${" ".repeat(i2 - S2(c4).length)}${import_picocolors2.default.gray(o)}`).join(`
5758
+ `);
5759
+ process.stdout.write(`${import_picocolors2.default.gray(o)}
5760
+ ${import_picocolors2.default.green(C)} ${import_picocolors2.default.reset(n2)} ${import_picocolors2.default.gray(_2.repeat(Math.max(i2 - r2 - 1, 1)) + me)}
5761
+ ${a2}
5762
+ ${import_picocolors2.default.gray(de + _2.repeat(i2 + 2) + pe)}
5763
+ `);
5764
+ };
5765
+ var f2 = { message: (t = "", { symbol: n2 = import_picocolors2.default.gray(o) } = {}) => {
5766
+ const s = [`${import_picocolors2.default.gray(o)}`];
5767
+ if (t) {
5768
+ const [r2, ...i2] = t.split(`
5769
+ `);
5770
+ s.push(`${n2} ${r2}`, ...i2.map((a2) => `${import_picocolors2.default.gray(o)} ${a2}`));
5771
+ }
5772
+ process.stdout.write(`${s.join(`
5773
+ `)}
5774
+ `);
5775
+ }, info: (t) => {
5776
+ f2.message(t, { symbol: import_picocolors2.default.blue(q2) });
5777
+ }, success: (t) => {
5778
+ f2.message(t, { symbol: import_picocolors2.default.green(D) });
5779
+ }, step: (t) => {
5780
+ f2.message(t, { symbol: import_picocolors2.default.green(C) });
5781
+ }, warn: (t) => {
5782
+ f2.message(t, { symbol: import_picocolors2.default.yellow(U2) });
5783
+ }, warning: (t) => {
5784
+ f2.warn(t);
5785
+ }, error: (t) => {
5786
+ f2.message(t, { symbol: import_picocolors2.default.red(K) });
5787
+ } };
5788
+ var J2 = `${import_picocolors2.default.gray(o)} `;
5789
+ var Y = ({ indicator: t = "dots" } = {}) => {
5790
+ const n2 = V2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], s = V2 ? 80 : 120, r2 = process.env.CI === "true";
5791
+ let i2, a2, c4 = false, l2 = "", $3, p = performance.now();
5792
+ const M2 = (m2) => {
5793
+ const h3 = m2 > 1 ? "Something went wrong" : "Canceled";
5794
+ c4 && N2(h3, m2);
5795
+ }, v2 = () => M2(2), x2 = () => M2(1), j2 = () => {
5796
+ process.on("uncaughtExceptionMonitor", v2), process.on("unhandledRejection", v2), process.on("SIGINT", x2), process.on("SIGTERM", x2), process.on("exit", M2);
5797
+ }, E = () => {
5798
+ process.removeListener("uncaughtExceptionMonitor", v2), process.removeListener("unhandledRejection", v2), process.removeListener("SIGINT", x2), process.removeListener("SIGTERM", x2), process.removeListener("exit", M2);
5799
+ }, O2 = () => {
5800
+ if ($3 === void 0) return;
5801
+ r2 && process.stdout.write(`
5802
+ `);
5803
+ const m2 = $3.split(`
5804
+ `);
5805
+ process.stdout.write(import_sisteransi2.cursor.move(-999, m2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m2.length));
5806
+ }, R2 = (m2) => m2.replace(/\.+$/, ""), G2 = (m2) => {
5807
+ const h3 = (performance.now() - m2) / 1e3, y2 = Math.floor(h3 / 60), I2 = Math.floor(h3 % 60);
5808
+ return y2 > 0 ? `[${y2}m ${I2}s]` : `[${I2}s]`;
5809
+ }, H = (m2 = "") => {
5810
+ c4 = true, i2 = cD(), l2 = R2(m2), p = performance.now(), process.stdout.write(`${import_picocolors2.default.gray(o)}
5811
+ `);
5812
+ let h3 = 0, y2 = 0;
5813
+ j2(), a2 = setInterval(() => {
5814
+ if (r2 && l2 === $3) return;
5815
+ O2(), $3 = l2;
5816
+ const I2 = import_picocolors2.default.magenta(n2[h3]);
5817
+ if (r2) process.stdout.write(`${I2} ${l2}...`);
5818
+ else if (t === "timer") process.stdout.write(`${I2} ${l2} ${G2(p)}`);
5819
+ else {
5820
+ const z2 = ".".repeat(Math.floor(y2)).slice(0, 3);
5821
+ process.stdout.write(`${I2} ${l2}${z2}`);
5822
+ }
5823
+ h3 = h3 + 1 < n2.length ? h3 + 1 : 0, y2 = y2 < n2.length ? y2 + 0.125 : 0;
5824
+ }, s);
5825
+ }, N2 = (m2 = "", h3 = 0) => {
5826
+ c4 = false, clearInterval(a2), O2();
5827
+ const y2 = h3 === 0 ? import_picocolors2.default.green(C) : h3 === 1 ? import_picocolors2.default.red(L2) : import_picocolors2.default.red(W2);
5828
+ l2 = R2(m2 ?? l2), t === "timer" ? process.stdout.write(`${y2} ${l2} ${G2(p)}
5829
+ `) : process.stdout.write(`${y2} ${l2}
5830
+ `), E(), i2();
5831
+ };
5832
+ return { start: H, stop: N2, message: (m2 = "") => {
5833
+ l2 = R2(m2 ?? l2);
5834
+ } };
5835
+ };
5836
+ var Te = async (t) => {
5837
+ for (const n2 of t) {
5838
+ if (n2.enabled === false) continue;
5839
+ const s = Y();
5840
+ s.start(n2.title);
5841
+ const r2 = await n2.task(s.message);
5842
+ s.stop(r2 || n2.title);
5843
+ }
5844
+ };
5845
+
5846
+ // iac/index.ts
5847
+ var import_dayjs = __toESM(require_dayjs_min(), 1);
5061
5848
  import {
5062
5849
  copyDirToTmp,
5063
5850
  getCwd,
@@ -7406,20 +8193,20 @@ var a = Object.getPrototypeOf(
7406
8193
  }
7407
8194
  ).prototype
7408
8195
  );
7409
- var c = class {
8196
+ var c2 = class {
7410
8197
  #t;
7411
8198
  #n;
7412
8199
  #r = false;
7413
8200
  #e = void 0;
7414
- constructor(e, t) {
7415
- this.#t = e, this.#n = t;
8201
+ constructor(e2, t) {
8202
+ this.#t = e2, this.#n = t;
7416
8203
  }
7417
8204
  next() {
7418
- const e = () => this.#s();
7419
- return this.#e = this.#e ? this.#e.then(e, e) : e(), this.#e;
8205
+ const e2 = () => this.#s();
8206
+ return this.#e = this.#e ? this.#e.then(e2, e2) : e2(), this.#e;
7420
8207
  }
7421
- return(e) {
7422
- const t = () => this.#i(e);
8208
+ return(e2) {
8209
+ const t = () => this.#i(e2);
7423
8210
  return this.#e ? this.#e.then(t, t) : t();
7424
8211
  }
7425
8212
  async #s() {
@@ -7428,30 +8215,30 @@ var c = class {
7428
8215
  done: true,
7429
8216
  value: void 0
7430
8217
  };
7431
- let e;
8218
+ let e2;
7432
8219
  try {
7433
- e = await this.#t.read();
8220
+ e2 = await this.#t.read();
7434
8221
  } catch (t) {
7435
8222
  throw this.#e = void 0, this.#r = true, this.#t.releaseLock(), t;
7436
8223
  }
7437
- return e.done && (this.#e = void 0, this.#r = true, this.#t.releaseLock()), e;
8224
+ return e2.done && (this.#e = void 0, this.#r = true, this.#t.releaseLock()), e2;
7438
8225
  }
7439
- async #i(e) {
8226
+ async #i(e2) {
7440
8227
  if (this.#r)
7441
8228
  return {
7442
8229
  done: true,
7443
- value: e
8230
+ value: e2
7444
8231
  };
7445
8232
  if (this.#r = true, !this.#n) {
7446
- const t = this.#t.cancel(e);
8233
+ const t = this.#t.cancel(e2);
7447
8234
  return this.#t.releaseLock(), await t, {
7448
8235
  done: true,
7449
- value: e
8236
+ value: e2
7450
8237
  };
7451
8238
  }
7452
8239
  return this.#t.releaseLock(), {
7453
8240
  done: true,
7454
- value: e
8241
+ value: e2
7455
8242
  };
7456
8243
  }
7457
8244
  };
@@ -7460,11 +8247,11 @@ function i() {
7460
8247
  return this[n].next();
7461
8248
  }
7462
8249
  Object.defineProperty(i, "name", { value: "next" });
7463
- function o(r) {
7464
- return this[n].return(r);
8250
+ function o2(r2) {
8251
+ return this[n].return(r2);
7465
8252
  }
7466
- Object.defineProperty(o, "name", { value: "return" });
7467
- var u = Object.create(a, {
8253
+ Object.defineProperty(o2, "name", { value: "return" });
8254
+ var u2 = Object.create(a, {
7468
8255
  next: {
7469
8256
  enumerable: true,
7470
8257
  configurable: true,
@@ -7475,14 +8262,14 @@ var u = Object.create(a, {
7475
8262
  enumerable: true,
7476
8263
  configurable: true,
7477
8264
  writable: true,
7478
- value: o
8265
+ value: o2
7479
8266
  }
7480
8267
  });
7481
- function h({ preventCancel: r = false } = {}) {
7482
- const e = this.getReader(), t = new c(
7483
- e,
7484
- r
7485
- ), s = Object.create(u);
8268
+ function h2({ preventCancel: r2 = false } = {}) {
8269
+ const e2 = this.getReader(), t = new c2(
8270
+ e2,
8271
+ r2
8272
+ ), s = Object.create(u2);
7486
8273
  return s[n] = t, s;
7487
8274
  }
7488
8275
 
@@ -7495,7 +8282,7 @@ var getAsyncIterable = (stream) => {
7495
8282
  return stream;
7496
8283
  }
7497
8284
  if (toString.call(stream) === "[object ReadableStream]") {
7498
- return h.call(stream);
8285
+ return h2.call(stream);
7499
8286
  }
7500
8287
  throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
7501
8288
  };
@@ -8592,7 +9379,7 @@ var getStdioArray = (stdio, options) => {
8592
9379
  throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
8593
9380
  }
8594
9381
  const length = Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length);
8595
- return Array.from({ length }, (_2, fdNumber) => stdio[fdNumber]);
9382
+ return Array.from({ length }, (_4, fdNumber) => stdio[fdNumber]);
8596
9383
  };
8597
9384
  var hasAlias = (options) => STANDARD_STREAMS_ALIASES.some((alias) => options[alias] !== void 0);
8598
9385
  var addDefaultValue2 = (stdioOption, fdNumber) => {
@@ -10378,9 +11165,9 @@ var SignalExit = class extends SignalExitBase {
10378
11165
  this.#sigListeners[sig] = () => {
10379
11166
  const listeners = this.#process.listeners(sig);
10380
11167
  let { count: count2 } = this.#emitter;
10381
- const p2 = process10;
10382
- if (typeof p2.__signal_exit_emitter__ === "object" && typeof p2.__signal_exit_emitter__.count === "number") {
10383
- count2 += p2.__signal_exit_emitter__.count;
11168
+ const p = process10;
11169
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
11170
+ count2 += p.__signal_exit_emitter__.count;
10384
11171
  }
10385
11172
  if (listeners.length === count2) {
10386
11173
  this.unload();
@@ -10422,7 +11209,7 @@ var SignalExit = class extends SignalExitBase {
10422
11209
  const fn = this.#sigListeners[sig];
10423
11210
  if (fn)
10424
11211
  this.#process.on(sig, fn);
10425
- } catch (_2) {
11212
+ } catch (_4) {
10426
11213
  }
10427
11214
  }
10428
11215
  this.#process.emit = (ev, ...a2) => {
@@ -10444,7 +11231,7 @@ var SignalExit = class extends SignalExitBase {
10444
11231
  }
10445
11232
  try {
10446
11233
  this.#process.removeListener(sig, listener);
10447
- } catch (_2) {
11234
+ } catch (_4) {
10448
11235
  }
10449
11236
  });
10450
11237
  this.#process.emit = this.#originalProcessEmit;
@@ -11834,7 +12621,7 @@ var execaSync = createExeca(() => ({ isSync: true }));
11834
12621
  var execaCommand = createExeca(mapCommandAsync);
11835
12622
  var execaCommandSync = createExeca(mapCommandSync);
11836
12623
  var execaNode = createExeca(mapNode);
11837
- var $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
12624
+ var $2 = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
11838
12625
  var {
11839
12626
  sendMessage: sendMessage2,
11840
12627
  getOneMessage: getOneMessage2,
@@ -11852,7 +12639,7 @@ var createWrangler = ({
11852
12639
  cloudflareApiToken,
11853
12640
  cwd
11854
12641
  }) => {
11855
- const $2 = execa({
12642
+ const $3 = execa({
11856
12643
  stdio,
11857
12644
  extendsEnv: true,
11858
12645
  shell: stdio === "inherit",
@@ -11862,7 +12649,7 @@ var createWrangler = ({
11862
12649
  CLOUDFLARE_API_TOKEN: cloudflareApiToken
11863
12650
  }
11864
12651
  });
11865
- return (...command) => $2("npx", ["wrangler", ...command]);
12652
+ return (...command) => $3("npx", ["wrangler", ...command]);
11866
12653
  };
11867
12654
 
11868
12655
  // iac/getWranglerLoginAuthToken.ts
@@ -11983,12 +12770,12 @@ var deployWorker = async (oauth_token, accountId, {
11983
12770
  accountId
11984
12771
  });
11985
12772
  await wrangler("d1", "migrations", "apply", d1DatabaseName, "--remote");
11986
- const workerName = await p.text({
12773
+ const workerName = await he({
11987
12774
  message: "Enter the name of the worker",
11988
12775
  defaultValue: "hot-updater",
11989
12776
  placeholder: "hot-updater"
11990
12777
  });
11991
- if (p.isCancel(workerName)) {
12778
+ if (BD(workerName)) {
11992
12779
  process.exit(1);
11993
12780
  }
11994
12781
  await wrangler("deploy", "--name", workerName);
@@ -12028,7 +12815,7 @@ var runInit = async () => {
12028
12815
  const createKey = `create/${Math.random().toString(36).substring(2, 15)}`;
12029
12816
  const accounts = [];
12030
12817
  try {
12031
- await p.tasks([
12818
+ await Te([
12032
12819
  {
12033
12820
  title: "Checking Account List...",
12034
12821
  task: async () => {
@@ -12041,42 +12828,42 @@ var runInit = async () => {
12041
12828
  }
12042
12829
  }
12043
12830
  ]);
12044
- } catch (e) {
12045
- if (e instanceof Error) {
12046
- p.log.error(e.message);
12831
+ } catch (e2) {
12832
+ if (e2 instanceof Error) {
12833
+ f2.error(e2.message);
12047
12834
  }
12048
- throw e;
12835
+ throw e2;
12049
12836
  }
12050
- const accountId = await p.select({
12837
+ const accountId = await ve({
12051
12838
  message: "Account List",
12052
12839
  options: accounts.map((account) => ({
12053
12840
  value: account.id,
12054
12841
  label: `${account.name} (${account.id})`
12055
12842
  }))
12056
12843
  });
12057
- if (p.isCancel(accountId)) {
12844
+ if (BD(accountId)) {
12058
12845
  process.exit(1);
12059
12846
  }
12060
- p.log.step(
12847
+ f2.step(
12061
12848
  `Please visit this link to create an API Token: ${link(
12062
12849
  `https://dash.cloudflare.com/${accountId}/api-tokens`
12063
12850
  )}`
12064
12851
  );
12065
- p.log.step("You need edit permissions for both D1 and R2");
12066
- const apiToken = await p.password({
12852
+ f2.step("You need edit permissions for both D1 and R2");
12853
+ const apiToken = await ge({
12067
12854
  message: "Enter the API Token"
12068
12855
  });
12069
12856
  if (!apiToken) {
12070
- p.log.warn(
12857
+ f2.warn(
12071
12858
  "Skipping API Token. You can set it later in .env HOT_UPDATER_CLOUDFLARE_API_TOKEN file."
12072
12859
  );
12073
12860
  }
12074
- if (p.isCancel(apiToken)) {
12861
+ if (BD(apiToken)) {
12075
12862
  process.exit(1);
12076
12863
  }
12077
12864
  const availableBuckets = [];
12078
12865
  try {
12079
- await p.tasks([
12866
+ await Te([
12080
12867
  {
12081
12868
  title: "Checking R2 Buckets...",
12082
12869
  task: async () => {
@@ -12091,13 +12878,13 @@ var runInit = async () => {
12091
12878
  }
12092
12879
  }
12093
12880
  ]);
12094
- } catch (e) {
12095
- if (e instanceof Error) {
12096
- p.log.error(e.message);
12881
+ } catch (e2) {
12882
+ if (e2 instanceof Error) {
12883
+ f2.error(e2.message);
12097
12884
  }
12098
- throw e;
12885
+ throw e2;
12099
12886
  }
12100
- let selectedBucketName = await p.select({
12887
+ let selectedBucketName = await ve({
12101
12888
  message: "R2 List",
12102
12889
  options: [
12103
12890
  ...availableBuckets.map((bucket) => ({
@@ -12110,14 +12897,14 @@ var runInit = async () => {
12110
12897
  }
12111
12898
  ]
12112
12899
  });
12113
- if (p.isCancel(selectedBucketName)) {
12900
+ if (BD(selectedBucketName)) {
12114
12901
  process.exit(1);
12115
12902
  }
12116
12903
  if (selectedBucketName === createKey) {
12117
- const name = await p.text({
12904
+ const name = await he({
12118
12905
  message: "Enter the name of the new R2 Bucket"
12119
12906
  });
12120
- if (p.isCancel(name)) {
12907
+ if (BD(name)) {
12121
12908
  process.exit(1);
12122
12909
  }
12123
12910
  const newR2 = await cf.r2.buckets.create({
@@ -12129,17 +12916,17 @@ var runInit = async () => {
12129
12916
  }
12130
12917
  selectedBucketName = newR2.name;
12131
12918
  }
12132
- p.log.info(`Selected R2: ${selectedBucketName}`);
12919
+ f2.info(`Selected R2: ${selectedBucketName}`);
12133
12920
  const domains = await cf.r2.buckets.domains.managed.list(selectedBucketName, {
12134
12921
  account_id: accountId
12135
12922
  });
12136
12923
  if (domains.enabled) {
12137
- const isPrivate = await p.confirm({
12924
+ const isPrivate = await ye({
12138
12925
  message: "Make R2 bucket private?"
12139
12926
  });
12140
12927
  if (isPrivate) {
12141
12928
  try {
12142
- await p.tasks([
12929
+ await Te([
12143
12930
  {
12144
12931
  title: "Making R2 bucket private...",
12145
12932
  task: async () => {
@@ -12150,17 +12937,17 @@ var runInit = async () => {
12150
12937
  }
12151
12938
  }
12152
12939
  ]);
12153
- } catch (e) {
12154
- if (e instanceof Error) {
12155
- p.log.error(e.message);
12940
+ } catch (e2) {
12941
+ if (e2 instanceof Error) {
12942
+ f2.error(e2.message);
12156
12943
  }
12157
- throw e;
12944
+ throw e2;
12158
12945
  }
12159
12946
  }
12160
12947
  }
12161
12948
  const availableD1List = [];
12162
12949
  try {
12163
- await p.tasks([
12950
+ await Te([
12164
12951
  {
12165
12952
  title: "Checking D1 List...",
12166
12953
  task: async () => {
@@ -12174,13 +12961,13 @@ var runInit = async () => {
12174
12961
  }
12175
12962
  }
12176
12963
  ]);
12177
- } catch (e) {
12178
- if (e instanceof Error) {
12179
- p.log.error(e.message);
12964
+ } catch (e2) {
12965
+ if (e2 instanceof Error) {
12966
+ f2.error(e2.message);
12180
12967
  }
12181
- throw e;
12968
+ throw e2;
12182
12969
  }
12183
- let selectedD1DatabaseId = await p.select({
12970
+ let selectedD1DatabaseId = await ve({
12184
12971
  message: "D1 List",
12185
12972
  options: [
12186
12973
  ...availableD1List.map((d1) => ({
@@ -12193,14 +12980,14 @@ var runInit = async () => {
12193
12980
  }
12194
12981
  ]
12195
12982
  });
12196
- if (p.isCancel(selectedD1DatabaseId)) {
12983
+ if (BD(selectedD1DatabaseId)) {
12197
12984
  process.exit(1);
12198
12985
  }
12199
12986
  if (selectedD1DatabaseId === createKey) {
12200
- const name = await p.text({
12987
+ const name = await he({
12201
12988
  message: "Enter the name of the new D1 Database"
12202
12989
  });
12203
- if (p.isCancel(name)) {
12990
+ if (BD(name)) {
12204
12991
  process.exit(1);
12205
12992
  }
12206
12993
  const newD1 = await cf.d1.database.create({
@@ -12215,9 +13002,9 @@ var runInit = async () => {
12215
13002
  name: newD1.name,
12216
13003
  uuid: newD1.uuid
12217
13004
  });
12218
- p.log.info(`Created new D1 Database: ${newD1.name} (${newD1.uuid})`);
13005
+ f2.info(`Created new D1 Database: ${newD1.name} (${newD1.uuid})`);
12219
13006
  } else {
12220
- p.log.info(`Selected D1: ${selectedD1DatabaseId}`);
13007
+ f2.info(`Selected D1: ${selectedD1DatabaseId}`);
12221
13008
  }
12222
13009
  const d1DatabaseName = availableD1List.find(
12223
13010
  (d1) => d1.uuid === selectedD1DatabaseId
@@ -12240,23 +13027,23 @@ var runInit = async () => {
12240
13027
  HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME: selectedBucketName,
12241
13028
  HOT_UPDATER_CLOUDFLARE_D1_DATABASE_ID: selectedD1DatabaseId
12242
13029
  });
12243
- p.log.success("Generated '.env' file with Cloudflare settings.");
12244
- p.log.success(
13030
+ f2.success("Generated '.env' file with Cloudflare settings.");
13031
+ f2.success(
12245
13032
  "Generated 'hot-updater.config.ts' file with Cloudflare settings."
12246
13033
  );
12247
13034
  if (subdomains.subdomain) {
12248
- p.note(
13035
+ Me(
12249
13036
  transformTemplate(SOURCE_TEMPLATE, {
12250
13037
  source: `https://${workerName}.${subdomains.subdomain}.workers.dev/api/check-update`
12251
13038
  })
12252
13039
  );
12253
13040
  }
12254
- p.log.message(
13041
+ f2.message(
12255
13042
  `Next step: ${link(
12256
13043
  "https://gronxb.github.io/hot-updater/guide/providers/2_cloudflare.html#step-4-add-hotupdater-to-your-project"
12257
13044
  )}`
12258
13045
  );
12259
- p.log.success("Done! \u{1F389}");
13046
+ f2.success("Done! \u{1F389}");
12260
13047
  };
12261
13048
  export {
12262
13049
  runInit