@hot-updater/cloudflare 0.28.0 → 0.29.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.
@@ -1,16 +1,15 @@
1
- //#region rolldown:runtime
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __getProtoOf = Object.getPrototypeOf;
7
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
9
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
11
10
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i$1 = 0, n$1 = keys.length, key; i$1 < n$1; i$1++) {
13
- key = keys[i$1];
11
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
14
13
  if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
14
  get: ((k) => from[k]).bind(null, key),
16
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
@@ -18,27 +17,19 @@ var __copyProps = (to, from, except, desc) => {
18
17
  }
19
18
  return to;
20
19
  };
21
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
22
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
21
  value: mod,
24
22
  enumerable: true
25
23
  }) : target, mod));
26
-
27
24
  //#endregion
28
- let __hot_updater_cli_tools = require("@hot-updater/cli-tools");
29
- __hot_updater_cli_tools = __toESM(__hot_updater_cli_tools);
25
+ let _hot_updater_cli_tools = require("@hot-updater/cli-tools");
30
26
  let cloudflare = require("cloudflare");
31
- cloudflare = __toESM(cloudflare);
32
27
  let crypto = require("crypto");
33
28
  crypto = __toESM(crypto);
34
29
  let node_url = require("node:url");
35
- node_url = __toESM(node_url);
36
30
  let node_child_process = require("node:child_process");
37
- node_child_process = __toESM(node_child_process);
38
31
  let node_string_decoder = require("node:string_decoder");
39
- node_string_decoder = __toESM(node_string_decoder);
40
32
  let node_util = require("node:util");
41
- node_util = __toESM(node_util);
42
33
  let node_process = require("node:process");
43
34
  node_process = __toESM(node_process);
44
35
  let node_tty = require("node:tty");
@@ -50,154 +41,147 @@ path = __toESM(path);
50
41
  let fs = require("fs");
51
42
  fs = __toESM(fs);
52
43
  let node_timers_promises = require("node:timers/promises");
53
- node_timers_promises = __toESM(node_timers_promises);
54
44
  let node_os = require("node:os");
55
- node_os = __toESM(node_os);
56
45
  let node_events = require("node:events");
57
- node_events = __toESM(node_events);
58
46
  let node_v8 = require("node:v8");
59
- node_v8 = __toESM(node_v8);
60
47
  let node_fs = require("node:fs");
61
- node_fs = __toESM(node_fs);
62
48
  let node_stream_promises = require("node:stream/promises");
63
- node_stream_promises = __toESM(node_stream_promises);
64
49
  let node_stream = require("node:stream");
65
- node_stream = __toESM(node_stream);
66
50
  let node_buffer = require("node:buffer");
67
- node_buffer = __toESM(node_buffer);
68
51
  let fs_promises = require("fs/promises");
69
52
  fs_promises = __toESM(fs_promises);
70
53
  let os = require("os");
71
54
  os = __toESM(os);
72
-
73
- //#region ../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js
74
- var require_dayjs_min = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js": ((exports, module) => {
55
+ //#endregion
56
+ //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
57
+ var import_dayjs_min = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
75
58
  (function(t, e) {
76
59
  "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();
77
60
  })(exports, (function() {
78
- var t = 1e3, e = 6e4, n$1 = 36e5, r = "millisecond", i$1 = "second", s = "minute", u$1 = "hour", a$1 = "day", o$1 = "week", c$1 = "month", f = "quarter", h$1 = "year", d = "date", l = "Invalid Date", $$1 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = {
61
+ "use strict";
62
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\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 = {
79
63
  name: "en",
80
64
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
81
65
  months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
82
- ordinal: function(t$1) {
83
- var e$1 = [
66
+ ordinal: function(t) {
67
+ var e = [
84
68
  "th",
85
69
  "st",
86
70
  "nd",
87
71
  "rd"
88
- ], n$2 = t$1 % 100;
89
- return "[" + t$1 + (e$1[(n$2 - 20) % 10] || e$1[n$2] || e$1[0]) + "]";
72
+ ], n = t % 100;
73
+ return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
90
74
  }
91
- }, m = function(t$1, e$1, n$2) {
92
- var r$1 = String(t$1);
93
- return !r$1 || r$1.length >= e$1 ? t$1 : "" + Array(e$1 + 1 - r$1.length).join(n$2) + t$1;
75
+ }, m = function(t, e, n) {
76
+ var r = String(t);
77
+ return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
94
78
  }, v = {
95
79
  s: m,
96
- z: function(t$1) {
97
- var e$1 = -t$1.utcOffset(), n$2 = Math.abs(e$1), r$1 = Math.floor(n$2 / 60), i$2 = n$2 % 60;
98
- return (e$1 <= 0 ? "+" : "-") + m(r$1, 2, "0") + ":" + m(i$2, 2, "0");
80
+ z: function(t) {
81
+ var e = -t.utcOffset(), n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
82
+ return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
99
83
  },
100
- m: function t$1(e$1, n$2) {
101
- if (e$1.date() < n$2.date()) return -t$1(n$2, e$1);
102
- var r$1 = 12 * (n$2.year() - e$1.year()) + (n$2.month() - e$1.month()), i$2 = e$1.clone().add(r$1, c$1), s$1 = n$2 - i$2 < 0, u$2 = e$1.clone().add(r$1 + (s$1 ? -1 : 1), c$1);
103
- return +(-(r$1 + (n$2 - i$2) / (s$1 ? i$2 - u$2 : u$2 - i$2)) || 0);
84
+ m: function t(e, n) {
85
+ if (e.date() < n.date()) return -t(n, e);
86
+ var r = 12 * (n.year() - e.year()) + (n.month() - e.month()), i = e.clone().add(r, c), s = n - i < 0, u = e.clone().add(r + (s ? -1 : 1), c);
87
+ return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
104
88
  },
105
- a: function(t$1) {
106
- return t$1 < 0 ? Math.ceil(t$1) || 0 : Math.floor(t$1);
89
+ a: function(t) {
90
+ return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
107
91
  },
108
- p: function(t$1) {
92
+ p: function(t) {
109
93
  return {
110
- M: c$1,
111
- y: h$1,
112
- w: o$1,
113
- d: a$1,
94
+ M: c,
95
+ y: h,
96
+ w: o,
97
+ d: a,
114
98
  D: d,
115
- h: u$1,
99
+ h: u,
116
100
  m: s,
117
- s: i$1,
101
+ s: i,
118
102
  ms: r,
119
103
  Q: f
120
- }[t$1] || String(t$1 || "").toLowerCase().replace(/s$/, "");
104
+ }[t] || String(t || "").toLowerCase().replace(/s$/, "");
121
105
  },
122
- u: function(t$1) {
123
- return void 0 === t$1;
106
+ u: function(t) {
107
+ return void 0 === t;
124
108
  }
125
109
  }, g = "en", D = {};
126
110
  D[g] = M;
127
- var p$1 = "$isDayjsObject", S = function(t$1) {
128
- return t$1 instanceof _$1 || !(!t$1 || !t$1[p$1]);
129
- }, w = function t$1(e$1, n$2, r$1) {
130
- var i$2;
131
- if (!e$1) return g;
132
- if ("string" == typeof e$1) {
133
- var s$1 = e$1.toLowerCase();
134
- D[s$1] && (i$2 = s$1), n$2 && (D[s$1] = n$2, i$2 = s$1);
135
- var u$2 = e$1.split("-");
136
- if (!i$2 && u$2.length > 1) return t$1(u$2[0]);
111
+ var p = "$isDayjsObject", S = function(t) {
112
+ return t instanceof _ || !(!t || !t[p]);
113
+ }, w = function t(e, n, r) {
114
+ var i;
115
+ if (!e) return g;
116
+ if ("string" == typeof e) {
117
+ var s = e.toLowerCase();
118
+ D[s] && (i = s), n && (D[s] = n, i = s);
119
+ var u = e.split("-");
120
+ if (!i && u.length > 1) return t(u[0]);
137
121
  } else {
138
- var a$2 = e$1.name;
139
- D[a$2] = e$1, i$2 = a$2;
122
+ var a = e.name;
123
+ D[a] = e, i = a;
140
124
  }
141
- return !r$1 && i$2 && (g = i$2), i$2 || !r$1 && g;
142
- }, O = function(t$1, e$1) {
143
- if (S(t$1)) return t$1.clone();
144
- var n$2 = "object" == typeof e$1 ? e$1 : {};
145
- return n$2.date = t$1, n$2.args = arguments, new _$1(n$2);
125
+ return !r && i && (g = i), i || !r && g;
126
+ }, O = function(t, e) {
127
+ if (S(t)) return t.clone();
128
+ var n = "object" == typeof e ? e : {};
129
+ return n.date = t, n.args = arguments, new _(n);
146
130
  }, b = v;
147
- b.l = w, b.i = S, b.w = function(t$1, e$1) {
148
- return O(t$1, {
149
- locale: e$1.$L,
150
- utc: e$1.$u,
151
- x: e$1.$x,
152
- $offset: e$1.$offset
131
+ b.l = w, b.i = S, b.w = function(t, e) {
132
+ return O(t, {
133
+ locale: e.$L,
134
+ utc: e.$u,
135
+ x: e.$x,
136
+ $offset: e.$offset
153
137
  });
154
138
  };
155
- var _$1 = function() {
156
- function M$1(t$1) {
157
- this.$L = w(t$1.locale, null, !0), this.parse(t$1), this.$x = this.$x || t$1.x || {}, this[p$1] = !0;
139
+ var _ = function() {
140
+ function M(t) {
141
+ this.$L = w(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[p] = !0;
158
142
  }
159
- var m$1 = M$1.prototype;
160
- return m$1.parse = function(t$1) {
161
- this.$d = function(t$2) {
162
- var e$1 = t$2.date, n$2 = t$2.utc;
163
- if (null === e$1) return /* @__PURE__ */ new Date(NaN);
164
- if (b.u(e$1)) return /* @__PURE__ */ new Date();
165
- if (e$1 instanceof Date) return new Date(e$1);
166
- if ("string" == typeof e$1 && !/Z$/i.test(e$1)) {
167
- var r$1 = e$1.match($$1);
168
- if (r$1) {
169
- var i$2 = r$1[2] - 1 || 0, s$1 = (r$1[7] || "0").substring(0, 3);
170
- return n$2 ? new Date(Date.UTC(r$1[1], i$2, r$1[3] || 1, r$1[4] || 0, r$1[5] || 0, r$1[6] || 0, s$1)) : new Date(r$1[1], i$2, r$1[3] || 1, r$1[4] || 0, r$1[5] || 0, r$1[6] || 0, s$1);
143
+ var m = M.prototype;
144
+ return m.parse = function(t) {
145
+ this.$d = function(t) {
146
+ var e = t.date, n = t.utc;
147
+ if (null === e) return /* @__PURE__ */ new Date(NaN);
148
+ if (b.u(e)) return /* @__PURE__ */ new Date();
149
+ if (e instanceof Date) return new Date(e);
150
+ if ("string" == typeof e && !/Z$/i.test(e)) {
151
+ var r = e.match($);
152
+ if (r) {
153
+ var i = r[2] - 1 || 0, s = (r[7] || "0").substring(0, 3);
154
+ return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
171
155
  }
172
156
  }
173
- return new Date(e$1);
174
- }(t$1), this.init();
175
- }, m$1.init = function() {
176
- var t$1 = this.$d;
177
- this.$y = t$1.getFullYear(), this.$M = t$1.getMonth(), this.$D = t$1.getDate(), this.$W = t$1.getDay(), this.$H = t$1.getHours(), this.$m = t$1.getMinutes(), this.$s = t$1.getSeconds(), this.$ms = t$1.getMilliseconds();
178
- }, m$1.$utils = function() {
157
+ return new Date(e);
158
+ }(t), this.init();
159
+ }, m.init = function() {
160
+ var t = this.$d;
161
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
162
+ }, m.$utils = function() {
179
163
  return b;
180
- }, m$1.isValid = function() {
164
+ }, m.isValid = function() {
181
165
  return !(this.$d.toString() === l);
182
- }, m$1.isSame = function(t$1, e$1) {
183
- var n$2 = O(t$1);
184
- return this.startOf(e$1) <= n$2 && n$2 <= this.endOf(e$1);
185
- }, m$1.isAfter = function(t$1, e$1) {
186
- return O(t$1) < this.startOf(e$1);
187
- }, m$1.isBefore = function(t$1, e$1) {
188
- return this.endOf(e$1) < O(t$1);
189
- }, m$1.$g = function(t$1, e$1, n$2) {
190
- return b.u(t$1) ? this[e$1] : this.set(n$2, t$1);
191
- }, m$1.unix = function() {
166
+ }, m.isSame = function(t, e) {
167
+ var n = O(t);
168
+ return this.startOf(e) <= n && n <= this.endOf(e);
169
+ }, m.isAfter = function(t, e) {
170
+ return O(t) < this.startOf(e);
171
+ }, m.isBefore = function(t, e) {
172
+ return this.endOf(e) < O(t);
173
+ }, m.$g = function(t, e, n) {
174
+ return b.u(t) ? this[e] : this.set(n, t);
175
+ }, m.unix = function() {
192
176
  return Math.floor(this.valueOf() / 1e3);
193
- }, m$1.valueOf = function() {
177
+ }, m.valueOf = function() {
194
178
  return this.$d.getTime();
195
- }, m$1.startOf = function(t$1, e$1) {
196
- var n$2 = this, r$1 = !!b.u(e$1) || e$1, f$1 = b.p(t$1), l$1 = function(t$2, e$2) {
197
- var i$2 = b.w(n$2.$u ? Date.UTC(n$2.$y, e$2, t$2) : new Date(n$2.$y, e$2, t$2), n$2);
198
- return r$1 ? i$2 : i$2.endOf(a$1);
199
- }, $$2 = function(t$2, e$2) {
200
- return b.w(n$2.toDate()[t$2].apply(n$2.toDate("s"), (r$1 ? [
179
+ }, m.startOf = function(t, e) {
180
+ var n = this, r = !!b.u(e) || e, f = b.p(t), l = function(t, e) {
181
+ var i = b.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
182
+ return r ? i : i.endOf(a);
183
+ }, $ = function(t, e) {
184
+ return b.w(n.toDate()[t].apply(n.toDate("s"), (r ? [
201
185
  0,
202
186
  0,
203
187
  0,
@@ -207,175 +191,170 @@ var require_dayjs_min = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/d
207
191
  59,
208
192
  59,
209
193
  999
210
- ]).slice(e$2)), n$2);
211
- }, y$1 = this.$W, M$2 = this.$M, m$2 = this.$D, v$1 = "set" + (this.$u ? "UTC" : "");
212
- switch (f$1) {
213
- case h$1: return r$1 ? l$1(1, 0) : l$1(31, 11);
214
- case c$1: return r$1 ? l$1(1, M$2) : l$1(0, M$2 + 1);
215
- case o$1:
216
- var g$1 = this.$locale().weekStart || 0, D$1 = (y$1 < g$1 ? y$1 + 7 : y$1) - g$1;
217
- return l$1(r$1 ? m$2 - D$1 : m$2 + (6 - D$1), M$2);
218
- case a$1:
219
- case d: return $$2(v$1 + "Hours", 0);
220
- case u$1: return $$2(v$1 + "Minutes", 1);
221
- case s: return $$2(v$1 + "Seconds", 2);
222
- case i$1: return $$2(v$1 + "Milliseconds", 3);
194
+ ]).slice(e)), n);
195
+ }, y = this.$W, M = this.$M, m = this.$D, v = "set" + (this.$u ? "UTC" : "");
196
+ switch (f) {
197
+ case h: return r ? l(1, 0) : l(31, 11);
198
+ case c: return r ? l(1, M) : l(0, M + 1);
199
+ case o:
200
+ var g = this.$locale().weekStart || 0, D = (y < g ? y + 7 : y) - g;
201
+ return l(r ? m - D : m + (6 - D), M);
202
+ case a:
203
+ case d: return $(v + "Hours", 0);
204
+ case u: return $(v + "Minutes", 1);
205
+ case s: return $(v + "Seconds", 2);
206
+ case i: return $(v + "Milliseconds", 3);
223
207
  default: return this.clone();
224
208
  }
225
- }, m$1.endOf = function(t$1) {
226
- return this.startOf(t$1, !1);
227
- }, m$1.$set = function(t$1, e$1) {
228
- var n$2, o$2 = b.p(t$1), f$1 = "set" + (this.$u ? "UTC" : ""), l$1 = (n$2 = {}, n$2[a$1] = f$1 + "Date", n$2[d] = f$1 + "Date", n$2[c$1] = f$1 + "Month", n$2[h$1] = f$1 + "FullYear", n$2[u$1] = f$1 + "Hours", n$2[s] = f$1 + "Minutes", n$2[i$1] = f$1 + "Seconds", n$2[r] = f$1 + "Milliseconds", n$2)[o$2], $$2 = o$2 === a$1 ? this.$D + (e$1 - this.$W) : e$1;
229
- if (o$2 === c$1 || o$2 === h$1) {
230
- var y$1 = this.clone().set(d, 1);
231
- y$1.$d[l$1]($$2), y$1.init(), this.$d = y$1.set(d, Math.min(this.$D, y$1.daysInMonth())).$d;
232
- } else l$1 && this.$d[l$1]($$2);
209
+ }, m.endOf = function(t) {
210
+ return this.startOf(t, !1);
211
+ }, m.$set = function(t, e) {
212
+ var n, o = b.p(t), f = "set" + (this.$u ? "UTC" : ""), l = (n = {}, n[a] = f + "Date", n[d] = f + "Date", n[c] = f + "Month", n[h] = f + "FullYear", n[u] = f + "Hours", n[s] = f + "Minutes", n[i] = f + "Seconds", n[r] = f + "Milliseconds", n)[o], $ = o === a ? this.$D + (e - this.$W) : e;
213
+ if (o === c || o === h) {
214
+ var y = this.clone().set(d, 1);
215
+ y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
216
+ } else l && this.$d[l]($);
233
217
  return this.init(), this;
234
- }, m$1.set = function(t$1, e$1) {
235
- return this.clone().$set(t$1, e$1);
236
- }, m$1.get = function(t$1) {
237
- return this[b.p(t$1)]();
238
- }, m$1.add = function(r$1, f$1) {
239
- var d$1, l$1 = this;
240
- r$1 = Number(r$1);
241
- var $$2 = b.p(f$1), y$1 = function(t$1) {
242
- var e$1 = O(l$1);
243
- return b.w(e$1.date(e$1.date() + Math.round(t$1 * r$1)), l$1);
218
+ }, m.set = function(t, e) {
219
+ return this.clone().$set(t, e);
220
+ }, m.get = function(t) {
221
+ return this[b.p(t)]();
222
+ }, m.add = function(r, f) {
223
+ var d, l = this;
224
+ r = Number(r);
225
+ var $ = b.p(f), y = function(t) {
226
+ var e = O(l);
227
+ return b.w(e.date(e.date() + Math.round(t * r)), l);
244
228
  };
245
- if ($$2 === c$1) return this.set(c$1, this.$M + r$1);
246
- if ($$2 === h$1) return this.set(h$1, this.$y + r$1);
247
- if ($$2 === a$1) return y$1(1);
248
- if ($$2 === o$1) return y$1(7);
249
- var M$2 = (d$1 = {}, d$1[s] = e, d$1[u$1] = n$1, d$1[i$1] = t, d$1)[$$2] || 1, m$2 = this.$d.getTime() + r$1 * M$2;
250
- return b.w(m$2, this);
251
- }, m$1.subtract = function(t$1, e$1) {
252
- return this.add(-1 * t$1, e$1);
253
- }, m$1.format = function(t$1) {
254
- var e$1 = this, n$2 = this.$locale();
255
- if (!this.isValid()) return n$2.invalidDate || l;
256
- var r$1 = t$1 || "YYYY-MM-DDTHH:mm:ssZ", i$2 = b.z(this), s$1 = this.$H, u$2 = this.$m, a$2 = this.$M, o$2 = n$2.weekdays, c$2 = n$2.months, f$1 = n$2.meridiem, h$2 = function(t$2, n$3, i$3, s$2) {
257
- return t$2 && (t$2[n$3] || t$2(e$1, r$1)) || i$3[n$3].slice(0, s$2);
258
- }, d$1 = function(t$2) {
259
- return b.s(s$1 % 12 || 12, t$2, "0");
260
- }, $$2 = f$1 || function(t$2, e$2, n$3) {
261
- var r$2 = t$2 < 12 ? "AM" : "PM";
262
- return n$3 ? r$2.toLowerCase() : r$2;
229
+ if ($ === c) return this.set(c, this.$M + r);
230
+ if ($ === h) return this.set(h, this.$y + r);
231
+ if ($ === a) return y(1);
232
+ if ($ === o) return y(7);
233
+ var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1, m = this.$d.getTime() + r * M;
234
+ return b.w(m, this);
235
+ }, m.subtract = function(t, e) {
236
+ return this.add(-1 * t, e);
237
+ }, m.format = function(t) {
238
+ var e = this, n = this.$locale();
239
+ if (!this.isValid()) return n.invalidDate || l;
240
+ var r = t || "YYYY-MM-DDTHH:mm:ssZ", i = b.z(this), s = this.$H, u = this.$m, a = this.$M, o = n.weekdays, c = n.months, f = n.meridiem, h = function(t, n, i, s) {
241
+ return t && (t[n] || t(e, r)) || i[n].slice(0, s);
242
+ }, d = function(t) {
243
+ return b.s(s % 12 || 12, t, "0");
244
+ }, $ = f || function(t, e, n) {
245
+ var r = t < 12 ? "AM" : "PM";
246
+ return n ? r.toLowerCase() : r;
263
247
  };
264
- return r$1.replace(y, (function(t$2, r$2) {
265
- return r$2 || function(t$3) {
266
- switch (t$3) {
267
- case "YY": return String(e$1.$y).slice(-2);
268
- case "YYYY": return b.s(e$1.$y, 4, "0");
269
- case "M": return a$2 + 1;
270
- case "MM": return b.s(a$2 + 1, 2, "0");
271
- case "MMM": return h$2(n$2.monthsShort, a$2, c$2, 3);
272
- case "MMMM": return h$2(c$2, a$2);
273
- case "D": return e$1.$D;
274
- case "DD": return b.s(e$1.$D, 2, "0");
275
- case "d": return String(e$1.$W);
276
- case "dd": return h$2(n$2.weekdaysMin, e$1.$W, o$2, 2);
277
- case "ddd": return h$2(n$2.weekdaysShort, e$1.$W, o$2, 3);
278
- case "dddd": return o$2[e$1.$W];
279
- case "H": return String(s$1);
280
- case "HH": return b.s(s$1, 2, "0");
281
- case "h": return d$1(1);
282
- case "hh": return d$1(2);
283
- case "a": return $$2(s$1, u$2, !0);
284
- case "A": return $$2(s$1, u$2, !1);
285
- case "m": return String(u$2);
286
- case "mm": return b.s(u$2, 2, "0");
287
- case "s": return String(e$1.$s);
288
- case "ss": return b.s(e$1.$s, 2, "0");
289
- case "SSS": return b.s(e$1.$ms, 3, "0");
290
- case "Z": return i$2;
248
+ return r.replace(y, (function(t, r) {
249
+ return r || function(t) {
250
+ switch (t) {
251
+ case "YY": return String(e.$y).slice(-2);
252
+ case "YYYY": return b.s(e.$y, 4, "0");
253
+ case "M": return a + 1;
254
+ case "MM": return b.s(a + 1, 2, "0");
255
+ case "MMM": return h(n.monthsShort, a, c, 3);
256
+ case "MMMM": return h(c, a);
257
+ case "D": return e.$D;
258
+ case "DD": return b.s(e.$D, 2, "0");
259
+ case "d": return String(e.$W);
260
+ case "dd": return h(n.weekdaysMin, e.$W, o, 2);
261
+ case "ddd": return h(n.weekdaysShort, e.$W, o, 3);
262
+ case "dddd": return o[e.$W];
263
+ case "H": return String(s);
264
+ case "HH": return b.s(s, 2, "0");
265
+ case "h": return d(1);
266
+ case "hh": return d(2);
267
+ case "a": return $(s, u, !0);
268
+ case "A": return $(s, u, !1);
269
+ case "m": return String(u);
270
+ case "mm": return b.s(u, 2, "0");
271
+ case "s": return String(e.$s);
272
+ case "ss": return b.s(e.$s, 2, "0");
273
+ case "SSS": return b.s(e.$ms, 3, "0");
274
+ case "Z": return i;
291
275
  }
292
276
  return null;
293
- }(t$2) || i$2.replace(":", "");
277
+ }(t) || i.replace(":", "");
294
278
  }));
295
- }, m$1.utcOffset = function() {
279
+ }, m.utcOffset = function() {
296
280
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
297
- }, m$1.diff = function(r$1, d$1, l$1) {
298
- var $$2, y$1 = this, M$2 = b.p(d$1), m$2 = O(r$1), v$1 = (m$2.utcOffset() - this.utcOffset()) * e, g$1 = this - m$2, D$1 = function() {
299
- return b.m(y$1, m$2);
281
+ }, m.diff = function(r, d, l) {
282
+ var $, y = this, M = b.p(d), m = O(r), v = (m.utcOffset() - this.utcOffset()) * e, g = this - m, D = function() {
283
+ return b.m(y, m);
300
284
  };
301
- switch (M$2) {
302
- case h$1:
303
- $$2 = D$1() / 12;
285
+ switch (M) {
286
+ case h:
287
+ $ = D() / 12;
304
288
  break;
305
- case c$1:
306
- $$2 = D$1();
289
+ case c:
290
+ $ = D();
307
291
  break;
308
292
  case f:
309
- $$2 = D$1() / 3;
293
+ $ = D() / 3;
310
294
  break;
311
- case o$1:
312
- $$2 = (g$1 - v$1) / 6048e5;
295
+ case o:
296
+ $ = (g - v) / 6048e5;
313
297
  break;
314
- case a$1:
315
- $$2 = (g$1 - v$1) / 864e5;
298
+ case a:
299
+ $ = (g - v) / 864e5;
316
300
  break;
317
- case u$1:
318
- $$2 = g$1 / n$1;
301
+ case u:
302
+ $ = g / n;
319
303
  break;
320
304
  case s:
321
- $$2 = g$1 / e;
305
+ $ = g / e;
322
306
  break;
323
- case i$1:
324
- $$2 = g$1 / t;
307
+ case i:
308
+ $ = g / t;
325
309
  break;
326
- default: $$2 = g$1;
310
+ default: $ = g;
327
311
  }
328
- return l$1 ? $$2 : b.a($$2);
329
- }, m$1.daysInMonth = function() {
330
- return this.endOf(c$1).$D;
331
- }, m$1.$locale = function() {
312
+ return l ? $ : b.a($);
313
+ }, m.daysInMonth = function() {
314
+ return this.endOf(c).$D;
315
+ }, m.$locale = function() {
332
316
  return D[this.$L];
333
- }, m$1.locale = function(t$1, e$1) {
334
- if (!t$1) return this.$L;
335
- var n$2 = this.clone(), r$1 = w(t$1, e$1, !0);
336
- return r$1 && (n$2.$L = r$1), n$2;
337
- }, m$1.clone = function() {
317
+ }, m.locale = function(t, e) {
318
+ if (!t) return this.$L;
319
+ var n = this.clone(), r = w(t, e, !0);
320
+ return r && (n.$L = r), n;
321
+ }, m.clone = function() {
338
322
  return b.w(this.$d, this);
339
- }, m$1.toDate = function() {
323
+ }, m.toDate = function() {
340
324
  return new Date(this.valueOf());
341
- }, m$1.toJSON = function() {
325
+ }, m.toJSON = function() {
342
326
  return this.isValid() ? this.toISOString() : null;
343
- }, m$1.toISOString = function() {
327
+ }, m.toISOString = function() {
344
328
  return this.$d.toISOString();
345
- }, m$1.toString = function() {
329
+ }, m.toString = function() {
346
330
  return this.$d.toUTCString();
347
- }, M$1;
348
- }(), k = _$1.prototype;
331
+ }, M;
332
+ }(), k = _.prototype;
349
333
  return O.prototype = k, [
350
334
  ["$ms", r],
351
- ["$s", i$1],
335
+ ["$s", i],
352
336
  ["$m", s],
353
- ["$H", u$1],
354
- ["$W", a$1],
355
- ["$M", c$1],
356
- ["$y", h$1],
337
+ ["$H", u],
338
+ ["$W", a],
339
+ ["$M", c],
340
+ ["$y", h],
357
341
  ["$D", d]
358
- ].forEach((function(t$1) {
359
- k[t$1[1]] = function(e$1) {
360
- return this.$g(e$1, t$1[0], t$1[1]);
342
+ ].forEach((function(t) {
343
+ k[t[1]] = function(e) {
344
+ return this.$g(e, t[0], t[1]);
361
345
  };
362
- })), O.extend = function(t$1, e$1) {
363
- return t$1.$i || (t$1(e$1, _$1, O), t$1.$i = !0), O;
364
- }, O.locale = w, O.isDayjs = S, O.unix = function(t$1) {
365
- return O(1e3 * t$1);
346
+ })), O.extend = function(t, e) {
347
+ return t.$i || (t(e, _, O), t.$i = !0), O;
348
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t) {
349
+ return O(1e3 * t);
366
350
  }, O.en = D[g], O.Ls = D, O.p = {}, O;
367
351
  }));
368
- }) });
369
-
370
- //#endregion
371
- //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
372
- var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1);
352
+ })))(), 1);
373
353
  function isPlainObject(value) {
374
354
  if (typeof value !== "object" || value === null) return false;
375
355
  const prototype = Object.getPrototypeOf(value);
376
356
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
377
357
  }
378
-
379
358
  //#endregion
380
359
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/file-url.js
381
360
  const safeNormalizeFileUrl = (file, name) => {
@@ -386,7 +365,6 @@ const safeNormalizeFileUrl = (file, name) => {
386
365
  const normalizeDenoExecPath = (file) => isDenoExecPath(file) ? file.toString() : file;
387
366
  const isDenoExecPath = (file) => typeof file !== "string" && file && Object.getPrototypeOf(file) === String.prototype;
388
367
  const normalizeFileUrl = (file) => file instanceof URL ? (0, node_url.fileURLToPath)(file) : file;
389
-
390
368
  //#endregion
391
369
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/parameters.js
392
370
  const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
@@ -404,7 +382,6 @@ const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
404
382
  options
405
383
  ];
406
384
  };
407
-
408
385
  //#endregion
409
386
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/uint-array.js
410
387
  const { toString: objectToString$1 } = Object.prototype;
@@ -444,7 +421,6 @@ const getJoinLength = (uint8Arrays) => {
444
421
  for (const uint8Array of uint8Arrays) joinLength += uint8Array.length;
445
422
  return joinLength;
446
423
  };
447
-
448
424
  //#endregion
449
425
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/template.js
450
426
  const isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
@@ -471,7 +447,7 @@ const parseTemplate = ({ templates, expressions, tokens, index, template }) => {
471
447
  const newTokens = concatTokens(tokens, nextTokens, leadingWhitespaces);
472
448
  if (index === expressions.length) return newTokens;
473
449
  const expression = expressions[index];
474
- return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression$1) => parseExpression(expression$1)) : [parseExpression(expression)], trailingWhitespaces);
450
+ return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression) => parseExpression(expression)) : [parseExpression(expression)], trailingWhitespaces);
475
451
  };
476
452
  const splitByWhitespaces = (template, rawTemplate) => {
477
453
  if (rawTemplate.length === 0) return {
@@ -533,7 +509,6 @@ const getSubprocessResult = ({ stdout }) => {
533
509
  if (stdout === void 0) throw new TypeError("Missing result.stdout in template expression. This is probably due to the previous subprocess' \"stdout\" option.");
534
510
  throw new TypeError(`Unexpected "${typeof stdout}" stdout in template expression`);
535
511
  };
536
-
537
512
  //#endregion
538
513
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/standard-stream.js
539
514
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
@@ -548,7 +523,6 @@ const STANDARD_STREAMS_ALIASES = [
548
523
  "stderr"
549
524
  ];
550
525
  const getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
551
-
552
526
  //#endregion
553
527
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/specific.js
554
528
  const normalizeFdSpecificOptions = (options) => {
@@ -603,7 +577,6 @@ const FD_SPECIFIC_OPTIONS = [
603
577
  "stripFinalNewline"
604
578
  ];
605
579
  const getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
606
-
607
580
  //#endregion
608
581
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/values.js
609
582
  const isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
@@ -620,7 +593,6 @@ const VERBOSE_VALUES = [
620
593
  "short",
621
594
  "full"
622
595
  ];
623
-
624
596
  //#endregion
625
597
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/escape.js
626
598
  const joinCommand = (filePath, rawArguments) => {
@@ -641,7 +613,7 @@ const escapeControlCharacter = (character) => {
641
613
  };
642
614
  const getSpecialCharRegExp = () => {
643
615
  try {
644
- return new RegExp("\\p{Separator}|\\p{Other}", "gu");
616
+ return /* @__PURE__ */ new RegExp("\\p{Separator}|\\p{Other}", "gu");
645
617
  } catch {
646
618
  return /[\s\u0000-\u001F\u007F-\u009F\u00AD]/g;
647
619
  }
@@ -661,7 +633,6 @@ const quoteString = (escapedArgument) => {
661
633
  return node_process.platform === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
662
634
  };
663
635
  const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
664
-
665
636
  //#endregion
666
637
  //#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
667
638
  function isUnicodeSupported() {
@@ -670,7 +641,6 @@ function isUnicodeSupported() {
670
641
  if (node_process.default.platform !== "win32") return TERM !== "linux";
671
642
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
672
643
  }
673
-
674
644
  //#endregion
675
645
  //#region ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
676
646
  const common = {
@@ -949,11 +919,8 @@ const fallbackSymbols = {
949
919
  ...common,
950
920
  ...specialFallbackSymbols
951
921
  };
952
- const shouldUseMain = isUnicodeSupported();
953
- const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
954
- var figures_default = figures;
955
- const replacements = Object.entries(specialMainSymbols);
956
-
922
+ const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
923
+ Object.entries(specialMainSymbols);
957
924
  //#endregion
958
925
  //#region ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
959
926
  const hasColors = node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
@@ -976,48 +943,47 @@ const format = (open, close) => {
976
943
  return result;
977
944
  };
978
945
  };
979
- const reset = format(0, 0);
946
+ format(0, 0);
980
947
  const bold = format(1, 22);
981
- const dim = format(2, 22);
982
- const italic = format(3, 23);
983
- const underline = format(4, 24);
984
- const overline = format(53, 55);
985
- const inverse = format(7, 27);
986
- const hidden = format(8, 28);
987
- const strikethrough = format(9, 29);
988
- const black = format(30, 39);
989
- const red = format(31, 39);
990
- const green = format(32, 39);
991
- const yellow = format(33, 39);
992
- const blue = format(34, 39);
993
- const magenta = format(35, 39);
994
- const cyan = format(36, 39);
995
- const white = format(37, 39);
948
+ format(2, 22);
949
+ format(3, 23);
950
+ format(4, 24);
951
+ format(53, 55);
952
+ format(7, 27);
953
+ format(8, 28);
954
+ format(9, 29);
955
+ format(30, 39);
956
+ format(31, 39);
957
+ format(32, 39);
958
+ format(33, 39);
959
+ format(34, 39);
960
+ format(35, 39);
961
+ format(36, 39);
962
+ format(37, 39);
996
963
  const gray = format(90, 39);
997
- const bgBlack = format(40, 49);
998
- const bgRed = format(41, 49);
999
- const bgGreen = format(42, 49);
1000
- const bgYellow = format(43, 49);
1001
- const bgBlue = format(44, 49);
1002
- const bgMagenta = format(45, 49);
1003
- const bgCyan = format(46, 49);
1004
- const bgWhite = format(47, 49);
1005
- const bgGray = format(100, 49);
964
+ format(40, 49);
965
+ format(41, 49);
966
+ format(42, 49);
967
+ format(43, 49);
968
+ format(44, 49);
969
+ format(45, 49);
970
+ format(46, 49);
971
+ format(47, 49);
972
+ format(100, 49);
1006
973
  const redBright = format(91, 39);
1007
- const greenBright = format(92, 39);
974
+ format(92, 39);
1008
975
  const yellowBright = format(93, 39);
1009
- const blueBright = format(94, 39);
1010
- const magentaBright = format(95, 39);
1011
- const cyanBright = format(96, 39);
1012
- const whiteBright = format(97, 39);
1013
- const bgRedBright = format(101, 49);
1014
- const bgGreenBright = format(102, 49);
1015
- const bgYellowBright = format(103, 49);
1016
- const bgBlueBright = format(104, 49);
1017
- const bgMagentaBright = format(105, 49);
1018
- const bgCyanBright = format(106, 49);
1019
- const bgWhiteBright = format(107, 49);
1020
-
976
+ format(94, 39);
977
+ format(95, 39);
978
+ format(96, 39);
979
+ format(97, 39);
980
+ format(101, 49);
981
+ format(102, 49);
982
+ format(103, 49);
983
+ format(104, 49);
984
+ format(105, 49);
985
+ format(106, 49);
986
+ format(107, 49);
1021
987
  //#endregion
1022
988
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/default.js
1023
989
  const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, result: { failed = false } = {}, options: { reject = true } }) => {
@@ -1033,8 +999,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
1033
999
  const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
1034
1000
  const padField = (field, padding) => String(field).padStart(padding, "0");
1035
1001
  const getFinalIcon = ({ failed, reject }) => {
1036
- if (!failed) return figures_default.tick;
1037
- return reject ? figures_default.cross : figures_default.warning;
1002
+ if (!failed) return figures.tick;
1003
+ return reject ? figures.cross : figures.warning;
1038
1004
  };
1039
1005
  const ICONS = {
1040
1006
  command: ({ piped }) => piped ? "|" : "$",
@@ -1051,7 +1017,6 @@ const COLORS = {
1051
1017
  error: ({ reject }) => reject ? redBright : yellowBright,
1052
1018
  duration: () => gray
1053
1019
  };
1054
-
1055
1020
  //#endregion
1056
1021
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/custom.js
1057
1022
  const applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
@@ -1064,7 +1029,6 @@ const applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
1064
1029
  if (typeof printedLine === "string") return printedLine;
1065
1030
  };
1066
1031
  const appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}\n`;
1067
-
1068
1032
  //#endregion
1069
1033
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/log.js
1070
1034
  const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
@@ -1075,7 +1039,7 @@ const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) =>
1075
1039
  })), verboseInfo, fdNumber);
1076
1040
  if (finalLines !== "") console.warn(finalLines.slice(0, -1));
1077
1041
  };
1078
- const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false,...options } } }) => ({
1042
+ const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false, ...options } } }) => ({
1079
1043
  type,
1080
1044
  escapedCommand,
1081
1045
  commandId: `${commandId}`,
@@ -1098,7 +1062,6 @@ const serializeVerboseMessage = (message) => {
1098
1062
  return escapeLines(typeof message === "string" ? message : (0, node_util.inspect)(message)).replaceAll(" ", " ".repeat(TAB_SIZE));
1099
1063
  };
1100
1064
  const TAB_SIZE = 2;
1101
-
1102
1065
  //#endregion
1103
1066
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/start.js
1104
1067
  const logCommand = (escapedCommand, verboseInfo) => {
@@ -1109,7 +1072,6 @@ const logCommand = (escapedCommand, verboseInfo) => {
1109
1072
  verboseInfo
1110
1073
  });
1111
1074
  };
1112
-
1113
1075
  //#endregion
1114
1076
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/info.js
1115
1077
  const getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
@@ -1133,12 +1095,10 @@ const validateVerbose = (verbose) => {
1133
1095
  }
1134
1096
  }
1135
1097
  };
1136
-
1137
1098
  //#endregion
1138
1099
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/duration.js
1139
1100
  const getStartTime = () => node_process.hrtime.bigint();
1140
1101
  const getDurationMs = (startTime) => Number(node_process.hrtime.bigint() - startTime) / 1e6;
1141
-
1142
1102
  //#endregion
1143
1103
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/command.js
1144
1104
  const handleCommand = (filePath, rawArguments, rawOptions) => {
@@ -1153,51 +1113,49 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
1153
1113
  verboseInfo
1154
1114
  };
1155
1115
  };
1156
-
1157
1116
  //#endregion
1158
1117
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
1159
- var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js": ((exports, module) => {
1160
- module.exports = isexe$3;
1161
- isexe$3.sync = sync$2;
1118
+ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1119
+ module.exports = isexe;
1120
+ isexe.sync = sync;
1162
1121
  var fs$5 = require("fs");
1163
- function checkPathExt(path$14, options) {
1122
+ function checkPathExt(path, options) {
1164
1123
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
1165
1124
  if (!pathext) return true;
1166
1125
  pathext = pathext.split(";");
1167
1126
  if (pathext.indexOf("") !== -1) return true;
1168
- for (var i$1 = 0; i$1 < pathext.length; i$1++) {
1169
- var p$1 = pathext[i$1].toLowerCase();
1170
- if (p$1 && path$14.substr(-p$1.length).toLowerCase() === p$1) return true;
1127
+ for (var i = 0; i < pathext.length; i++) {
1128
+ var p = pathext[i].toLowerCase();
1129
+ if (p && path.substr(-p.length).toLowerCase() === p) return true;
1171
1130
  }
1172
1131
  return false;
1173
1132
  }
1174
- function checkStat$1(stat, path$14, options) {
1133
+ function checkStat(stat, path, options) {
1175
1134
  if (!stat.isSymbolicLink() && !stat.isFile()) return false;
1176
- return checkPathExt(path$14, options);
1135
+ return checkPathExt(path, options);
1177
1136
  }
1178
- function isexe$3(path$14, options, cb) {
1179
- fs$5.stat(path$14, function(er, stat) {
1180
- cb(er, er ? false : checkStat$1(stat, path$14, options));
1137
+ function isexe(path, options, cb) {
1138
+ fs$5.stat(path, function(er, stat) {
1139
+ cb(er, er ? false : checkStat(stat, path, options));
1181
1140
  });
1182
1141
  }
1183
- function sync$2(path$14, options) {
1184
- return checkStat$1(fs$5.statSync(path$14), path$14, options);
1142
+ function sync(path, options) {
1143
+ return checkStat(fs$5.statSync(path), path, options);
1185
1144
  }
1186
- }) });
1187
-
1145
+ }));
1188
1146
  //#endregion
1189
1147
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
1190
- var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js": ((exports, module) => {
1191
- module.exports = isexe$2;
1192
- isexe$2.sync = sync$1;
1148
+ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1149
+ module.exports = isexe;
1150
+ isexe.sync = sync;
1193
1151
  var fs$4 = require("fs");
1194
- function isexe$2(path$14, options, cb) {
1195
- fs$4.stat(path$14, function(er, stat) {
1152
+ function isexe(path, options, cb) {
1153
+ fs$4.stat(path, function(er, stat) {
1196
1154
  cb(er, er ? false : checkStat(stat, options));
1197
1155
  });
1198
1156
  }
1199
- function sync$1(path$14, options) {
1200
- return checkStat(fs$4.statSync(path$14), options);
1157
+ function sync(path, options) {
1158
+ return checkStat(fs$4.statSync(path), options);
1201
1159
  }
1202
1160
  function checkStat(stat, options) {
1203
1161
  return stat.isFile() && checkMode(stat, options);
@@ -1208,24 +1166,23 @@ var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@
1208
1166
  var gid = stat.gid;
1209
1167
  var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
1210
1168
  var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
1211
- var u$1 = parseInt("100", 8);
1169
+ var u = parseInt("100", 8);
1212
1170
  var g = parseInt("010", 8);
1213
- var o$1 = parseInt("001", 8);
1214
- var ug = u$1 | g;
1215
- return mod & o$1 || mod & g && gid === myGid || mod & u$1 && uid === myUid || mod & ug && myUid === 0;
1171
+ var o = parseInt("001", 8);
1172
+ var ug = u | g;
1173
+ return mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
1216
1174
  }
1217
- }) });
1218
-
1175
+ }));
1219
1176
  //#endregion
1220
1177
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
1221
- var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js": ((exports, module) => {
1178
+ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1222
1179
  require("fs");
1223
1180
  var core;
1224
1181
  if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
1225
1182
  else core = require_mode();
1226
- module.exports = isexe$1;
1227
- isexe$1.sync = sync;
1228
- function isexe$1(path$14, options, cb) {
1183
+ module.exports = isexe;
1184
+ isexe.sync = sync;
1185
+ function isexe(path, options, cb) {
1229
1186
  if (typeof options === "function") {
1230
1187
  cb = options;
1231
1188
  options = {};
@@ -1233,13 +1190,13 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
1233
1190
  if (!cb) {
1234
1191
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
1235
1192
  return new Promise(function(resolve, reject) {
1236
- isexe$1(path$14, options || {}, function(er, is) {
1193
+ isexe(path, options || {}, function(er, is) {
1237
1194
  if (er) reject(er);
1238
1195
  else resolve(is);
1239
1196
  });
1240
1197
  });
1241
1198
  }
1242
- core(path$14, options || {}, function(er, is) {
1199
+ core(path, options || {}, function(er, is) {
1243
1200
  if (er) {
1244
1201
  if (er.code === "EACCES" || options && options.ignoreErrors) {
1245
1202
  er = null;
@@ -1249,19 +1206,18 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
1249
1206
  cb(er, is);
1250
1207
  });
1251
1208
  }
1252
- function sync(path$14, options) {
1209
+ function sync(path, options) {
1253
1210
  try {
1254
- return core.sync(path$14, options || {});
1211
+ return core.sync(path, options || {});
1255
1212
  } catch (er) {
1256
1213
  if (options && options.ignoreErrors || er.code === "EACCES") return false;
1257
1214
  else throw er;
1258
1215
  }
1259
1216
  }
1260
- }) });
1261
-
1217
+ }));
1262
1218
  //#endregion
1263
1219
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
1264
- var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js": ((exports, module) => {
1220
+ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1265
1221
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
1266
1222
  const path$13 = require("path");
1267
1223
  const COLON = isWindows ? ";" : ":";
@@ -1281,7 +1237,7 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1281
1237
  pathExtExe
1282
1238
  };
1283
1239
  };
1284
- const which$1 = (cmd, opt, cb) => {
1240
+ const which = (cmd, opt, cb) => {
1285
1241
  if (typeof opt === "function") {
1286
1242
  cb = opt;
1287
1243
  opt = {};
@@ -1289,20 +1245,20 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1289
1245
  if (!opt) opt = {};
1290
1246
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
1291
1247
  const found = [];
1292
- const step = (i$1) => new Promise((resolve, reject) => {
1293
- if (i$1 === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
1294
- const ppRaw = pathEnv[i$1];
1248
+ const step = (i) => new Promise((resolve, reject) => {
1249
+ if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
1250
+ const ppRaw = pathEnv[i];
1295
1251
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
1296
1252
  const pCmd = path$13.join(pathPart, cmd);
1297
- resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
1253
+ resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
1298
1254
  });
1299
- const subStep = (p$1, i$1, ii) => new Promise((resolve, reject) => {
1300
- if (ii === pathExt.length) return resolve(step(i$1 + 1));
1255
+ const subStep = (p, i, ii) => new Promise((resolve, reject) => {
1256
+ if (ii === pathExt.length) return resolve(step(i + 1));
1301
1257
  const ext = pathExt[ii];
1302
- isexe(p$1 + ext, { pathExt: pathExtExe }, (er, is) => {
1303
- if (!er && is) if (opt.all) found.push(p$1 + ext);
1304
- else return resolve(p$1 + ext);
1305
- return resolve(subStep(p$1, i$1, ii + 1));
1258
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
1259
+ if (!er && is) if (opt.all) found.push(p + ext);
1260
+ else return resolve(p + ext);
1261
+ return resolve(subStep(p, i, ii + 1));
1306
1262
  });
1307
1263
  });
1308
1264
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -1311,13 +1267,13 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1311
1267
  opt = opt || {};
1312
1268
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
1313
1269
  const found = [];
1314
- for (let i$1 = 0; i$1 < pathEnv.length; i$1++) {
1315
- const ppRaw = pathEnv[i$1];
1270
+ for (let i = 0; i < pathEnv.length; i++) {
1271
+ const ppRaw = pathEnv[i];
1316
1272
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
1317
1273
  const pCmd = path$13.join(pathPart, cmd);
1318
- const p$1 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
1274
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
1319
1275
  for (let j = 0; j < pathExt.length; j++) {
1320
- const cur = p$1 + pathExt[j];
1276
+ const cur = p + pathExt[j];
1321
1277
  try {
1322
1278
  if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
1323
1279
  else return cur;
@@ -1328,25 +1284,23 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1328
1284
  if (opt.nothrow) return null;
1329
1285
  throw getNotFoundError(cmd);
1330
1286
  };
1331
- module.exports = which$1;
1332
- which$1.sync = whichSync;
1333
- }) });
1334
-
1287
+ module.exports = which;
1288
+ which.sync = whichSync;
1289
+ }));
1335
1290
  //#endregion
1336
1291
  //#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
1337
- var require_path_key = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
1338
- const pathKey$1 = (options = {}) => {
1292
+ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1293
+ const pathKey = (options = {}) => {
1339
1294
  const environment = options.env || process.env;
1340
1295
  if ((options.platform || process.platform) !== "win32") return "PATH";
1341
1296
  return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1342
1297
  };
1343
- module.exports = pathKey$1;
1344
- module.exports.default = pathKey$1;
1345
- }) });
1346
-
1298
+ module.exports = pathKey;
1299
+ module.exports.default = pathKey;
1300
+ }));
1347
1301
  //#endregion
1348
1302
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
1349
- var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": ((exports, module) => {
1303
+ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1350
1304
  const path$12 = require("path");
1351
1305
  const which = require_which();
1352
1306
  const getPathKey = require_path_key();
@@ -1370,15 +1324,14 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
1370
1324
  if (resolved) resolved = path$12.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
1371
1325
  return resolved;
1372
1326
  }
1373
- function resolveCommand$1(parsed) {
1327
+ function resolveCommand(parsed) {
1374
1328
  return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
1375
1329
  }
1376
- module.exports = resolveCommand$1;
1377
- }) });
1378
-
1330
+ module.exports = resolveCommand;
1331
+ }));
1379
1332
  //#endregion
1380
1333
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
1381
- var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": ((exports, module) => {
1334
+ var require_escape = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1382
1335
  const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
1383
1336
  function escapeCommand(arg) {
1384
1337
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -1395,34 +1348,31 @@ var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1395
1348
  }
1396
1349
  module.exports.command = escapeCommand;
1397
1350
  module.exports.argument = escapeArgument;
1398
- }) });
1399
-
1351
+ }));
1400
1352
  //#endregion
1401
1353
  //#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
1402
- var require_shebang_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js": ((exports, module) => {
1354
+ var require_shebang_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1403
1355
  module.exports = /^#!(.*)/;
1404
- }) });
1405
-
1356
+ }));
1406
1357
  //#endregion
1407
1358
  //#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
1408
- var require_shebang_command = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js": ((exports, module) => {
1359
+ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1409
1360
  const shebangRegex = require_shebang_regex();
1410
1361
  module.exports = (string = "") => {
1411
1362
  const match = string.match(shebangRegex);
1412
1363
  if (!match) return null;
1413
- const [path$14, argument] = match[0].replace(/#! ?/, "").split(" ");
1414
- const binary = path$14.split("/").pop();
1364
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
1365
+ const binary = path.split("/").pop();
1415
1366
  if (binary === "env") return argument;
1416
1367
  return argument ? `${binary} ${argument}` : binary;
1417
1368
  };
1418
- }) });
1419
-
1369
+ }));
1420
1370
  //#endregion
1421
1371
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
1422
- var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": ((exports, module) => {
1372
+ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1423
1373
  const fs$3 = require("fs");
1424
1374
  const shebangCommand = require_shebang_command();
1425
- function readShebang$1(command) {
1375
+ function readShebang(command) {
1426
1376
  const size = 150;
1427
1377
  const buffer = Buffer.alloc(size);
1428
1378
  let fd;
@@ -1433,17 +1383,16 @@ var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
1433
1383
  } catch (e) {}
1434
1384
  return shebangCommand(buffer.toString());
1435
1385
  }
1436
- module.exports = readShebang$1;
1437
- }) });
1438
-
1386
+ module.exports = readShebang;
1387
+ }));
1439
1388
  //#endregion
1440
1389
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
1441
- var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": ((exports, module) => {
1390
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1442
1391
  const path$11 = require("path");
1443
1392
  const resolveCommand = require_resolveCommand();
1444
1393
  const escape = require_escape();
1445
1394
  const readShebang = require_readShebang();
1446
- const isWin$1 = process.platform === "win32";
1395
+ const isWin = process.platform === "win32";
1447
1396
  const isExecutableRegExp = /\.(?:com|exe)$/i;
1448
1397
  const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
1449
1398
  function detectShebang(parsed) {
@@ -1457,7 +1406,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1457
1406
  return parsed.file;
1458
1407
  }
1459
1408
  function parseNonShell(parsed) {
1460
- if (!isWin$1) return parsed;
1409
+ if (!isWin) return parsed;
1461
1410
  const commandFile = detectShebang(parsed);
1462
1411
  const needsShell = !isExecutableRegExp.test(commandFile);
1463
1412
  if (parsed.options.forceShell || needsShell) {
@@ -1476,7 +1425,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1476
1425
  }
1477
1426
  return parsed;
1478
1427
  }
1479
- function parse$1(command, args, options) {
1428
+ function parse(command, args, options) {
1480
1429
  if (args && !Array.isArray(args)) {
1481
1430
  options = args;
1482
1431
  args = null;
@@ -1495,12 +1444,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1495
1444
  };
1496
1445
  return options.shell ? parsed : parseNonShell(parsed);
1497
1446
  }
1498
- module.exports = parse$1;
1499
- }) });
1500
-
1447
+ module.exports = parse;
1448
+ }));
1501
1449
  //#endregion
1502
1450
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
1503
- var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": ((exports, module) => {
1451
+ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1504
1452
  const isWin = process.platform === "win32";
1505
1453
  function notFoundError(original, syscall) {
1506
1454
  return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
@@ -1511,15 +1459,15 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1511
1459
  spawnargs: original.args
1512
1460
  });
1513
1461
  }
1514
- function hookChildProcess(cp$1, parsed) {
1462
+ function hookChildProcess(cp, parsed) {
1515
1463
  if (!isWin) return;
1516
- const originalEmit = cp$1.emit;
1517
- cp$1.emit = function(name, arg1) {
1464
+ const originalEmit = cp.emit;
1465
+ cp.emit = function(name, arg1) {
1518
1466
  if (name === "exit") {
1519
1467
  const err = verifyENOENT(arg1, parsed);
1520
- if (err) return originalEmit.call(cp$1, "error", err);
1468
+ if (err) return originalEmit.call(cp, "error", err);
1521
1469
  }
1522
- return originalEmit.apply(cp$1, arguments);
1470
+ return originalEmit.apply(cp, arguments);
1523
1471
  };
1524
1472
  }
1525
1473
  function verifyENOENT(status, parsed) {
@@ -1536,45 +1484,37 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1536
1484
  verifyENOENTSync,
1537
1485
  notFoundError
1538
1486
  };
1539
- }) });
1540
-
1487
+ }));
1541
1488
  //#endregion
1542
- //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
1543
- var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": ((exports, module) => {
1489
+ //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1490
+ var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1544
1491
  const cp = require("child_process");
1545
1492
  const parse = require_parse();
1546
1493
  const enoent = require_enoent();
1547
- function spawn$1(command, args, options) {
1494
+ function spawn(command, args, options) {
1548
1495
  const parsed = parse(command, args, options);
1549
1496
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
1550
1497
  enoent.hookChildProcess(spawned, parsed);
1551
1498
  return spawned;
1552
1499
  }
1553
- function spawnSync$1(command, args, options) {
1500
+ function spawnSync(command, args, options) {
1554
1501
  const parsed = parse(command, args, options);
1555
1502
  const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
1556
1503
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
1557
1504
  return result;
1558
1505
  }
1559
- module.exports = spawn$1;
1560
- module.exports.spawn = spawn$1;
1561
- module.exports.sync = spawnSync$1;
1506
+ module.exports = spawn;
1507
+ module.exports.spawn = spawn;
1508
+ module.exports.sync = spawnSync;
1562
1509
  module.exports._parse = parse;
1563
1510
  module.exports._enoent = enoent;
1564
- }) });
1565
-
1566
- //#endregion
1567
- //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1568
- var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
1511
+ })))(), 1);
1569
1512
  function pathKey(options = {}) {
1570
- const { env = process.env, platform: platform$1 = process.platform } = options;
1571
- if (platform$1 !== "win32") return "PATH";
1513
+ const { env = process.env, platform = process.platform } = options;
1514
+ if (platform !== "win32") return "PATH";
1572
1515
  return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1573
1516
  }
1574
-
1575
- //#endregion
1576
- //#region ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
1577
- const execFileOriginal = (0, node_util.promisify)(node_child_process.execFile);
1517
+ (0, node_util.promisify)(node_child_process.execFile);
1578
1518
  function toPath(urlOrPath) {
1579
1519
  return urlOrPath instanceof URL ? (0, node_url.fileURLToPath)(urlOrPath) : urlOrPath;
1580
1520
  }
@@ -1589,16 +1529,14 @@ function traversePathUp(startPath) {
1589
1529
  }
1590
1530
  } };
1591
1531
  }
1592
- const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
1593
-
1594
1532
  //#endregion
1595
1533
  //#region ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
1596
- const npmRunPath = ({ cwd = node_process.default.cwd(), path: pathOption = node_process.default.env[pathKey()], preferLocal = true, execPath: execPath$1 = node_process.default.execPath, addExecPath = true } = {}) => {
1534
+ const npmRunPath = ({ cwd = node_process.default.cwd(), path: pathOption = node_process.default.env[pathKey()], preferLocal = true, execPath = node_process.default.execPath, addExecPath = true } = {}) => {
1597
1535
  const cwdPath = node_path.default.resolve(toPath(cwd));
1598
1536
  const result = [];
1599
1537
  const pathParts = pathOption.split(node_path.default.delimiter);
1600
1538
  if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
1601
- if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
1539
+ if (addExecPath) applyExecPath(result, pathParts, execPath, cwdPath);
1602
1540
  return pathOption === "" || pathOption === node_path.default.delimiter ? `${result.join(node_path.default.delimiter)}${pathOption}` : [...result, pathOption].join(node_path.default.delimiter);
1603
1541
  };
1604
1542
  const applyPreferLocal = (result, pathParts, cwdPath) => {
@@ -1607,18 +1545,17 @@ const applyPreferLocal = (result, pathParts, cwdPath) => {
1607
1545
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1608
1546
  }
1609
1547
  };
1610
- const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
1611
- const pathPart = node_path.default.resolve(cwdPath, toPath(execPath$1), "..");
1548
+ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
1549
+ const pathPart = node_path.default.resolve(cwdPath, toPath(execPath), "..");
1612
1550
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1613
1551
  };
1614
- const npmRunPathEnv = ({ env = node_process.default.env,...options } = {}) => {
1552
+ const npmRunPathEnv = ({ env = node_process.default.env, ...options } = {}) => {
1615
1553
  env = { ...env };
1616
1554
  const pathName = pathKey({ env });
1617
1555
  options.path = env[pathName];
1618
1556
  env[pathName] = npmRunPath(options);
1619
1557
  return env;
1620
1558
  };
1621
-
1622
1559
  //#endregion
1623
1560
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js
1624
1561
  const getFinalError = (originalError, message, isSync) => {
@@ -1646,11 +1583,10 @@ var ExecaError = class extends Error {};
1646
1583
  setErrorName(ExecaError, ExecaError.name);
1647
1584
  var ExecaSyncError = class extends Error {};
1648
1585
  setErrorName(ExecaSyncError, ExecaSyncError.name);
1649
-
1650
1586
  //#endregion
1651
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/realtime.js
1587
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/realtime.js
1652
1588
  const getRealtimeSignals = () => {
1653
- const length = SIGRTMAX - SIGRTMIN + 1;
1589
+ const length = 64 - SIGRTMIN + 1;
1654
1590
  return Array.from({ length }, getRealtimeSignal);
1655
1591
  };
1656
1592
  const getRealtimeSignal = (value, index) => ({
@@ -1661,10 +1597,8 @@ const getRealtimeSignal = (value, index) => ({
1661
1597
  standard: "posix"
1662
1598
  });
1663
1599
  const SIGRTMIN = 34;
1664
- const SIGRTMAX = 64;
1665
-
1666
1600
  //#endregion
1667
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/core.js
1601
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/core.js
1668
1602
  const SIGNALS = [
1669
1603
  {
1670
1604
  name: "SIGHUP",
@@ -1936,9 +1870,8 @@ const SIGNALS = [
1936
1870
  standard: "other"
1937
1871
  }
1938
1872
  ];
1939
-
1940
1873
  //#endregion
1941
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/signals.js
1874
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/signals.js
1942
1875
  const getSignals = () => {
1943
1876
  const realtimeSignals = getRealtimeSignals();
1944
1877
  return [...SIGNALS, ...realtimeSignals].map(normalizeSignal$1);
@@ -1956,12 +1889,11 @@ const normalizeSignal$1 = ({ name, number: defaultNumber, description, action, f
1956
1889
  standard
1957
1890
  };
1958
1891
  };
1959
-
1960
1892
  //#endregion
1961
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/main.js
1893
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/main.js
1962
1894
  const getSignalsByName = () => {
1963
- const signals$1 = getSignals();
1964
- return Object.fromEntries(signals$1.map(getSignalByName));
1895
+ const signals = getSignals();
1896
+ return Object.fromEntries(signals.map(getSignalByName));
1965
1897
  };
1966
1898
  const getSignalByName = ({ name, number, description, supported, action, forced, standard }) => [name, {
1967
1899
  name,
@@ -1974,13 +1906,12 @@ const getSignalByName = ({ name, number, description, supported, action, forced,
1974
1906
  }];
1975
1907
  const signalsByName = getSignalsByName();
1976
1908
  const getSignalsByNumber = () => {
1977
- const signals$1 = getSignals();
1978
- const length = SIGRTMAX + 1;
1979
- const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals$1));
1909
+ const signals = getSignals();
1910
+ const signalsA = Array.from({ length: 65 }, (value, number) => getSignalByNumber(number, signals));
1980
1911
  return Object.assign({}, ...signalsA);
1981
1912
  };
1982
- const getSignalByNumber = (number, signals$1) => {
1983
- const signal = findSignalByNumber(number, signals$1);
1913
+ const getSignalByNumber = (number, signals) => {
1914
+ const signal = findSignalByNumber(number, signals);
1984
1915
  if (signal === void 0) return {};
1985
1916
  const { name, description, supported, action, forced, standard } = signal;
1986
1917
  return { [number]: {
@@ -1993,13 +1924,12 @@ const getSignalByNumber = (number, signals$1) => {
1993
1924
  standard
1994
1925
  } };
1995
1926
  };
1996
- const findSignalByNumber = (number, signals$1) => {
1997
- const signal = signals$1.find(({ name }) => node_os.constants.signals[name] === number);
1927
+ const findSignalByNumber = (number, signals) => {
1928
+ const signal = signals.find(({ name }) => node_os.constants.signals[name] === number);
1998
1929
  if (signal !== void 0) return signal;
1999
- return signals$1.find((signalA) => signalA.number === number);
1930
+ return signals.find((signalA) => signalA.number === number);
2000
1931
  };
2001
- const signalsByNumber = getSignalsByNumber();
2002
-
1932
+ getSignalsByNumber();
2003
1933
  //#endregion
2004
1934
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/signal.js
2005
1935
  const normalizeKillSignal = (killSignal) => {
@@ -2029,7 +1959,6 @@ Available signal numbers: ${getAvailableSignalIntegers()}.`;
2029
1959
  const getAvailableSignalNames = () => Object.keys(node_os.constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
2030
1960
  const getAvailableSignalIntegers = () => [...new Set(Object.values(node_os.constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
2031
1961
  const getSignalDescription = (signal) => signalsByName[signal].description;
2032
-
2033
1962
  //#endregion
2034
1963
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/kill.js
2035
1964
  const normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
@@ -2081,13 +2010,11 @@ const killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSig
2081
2010
  if (kill("SIGKILL")) context.isForcefullyTerminated ??= true;
2082
2011
  } catch {}
2083
2012
  };
2084
-
2085
2013
  //#endregion
2086
2014
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/abort-signal.js
2087
2015
  const onAbortedSignal = async (mainSignal, stopSignal) => {
2088
2016
  if (!mainSignal.aborted) await (0, node_events.once)(mainSignal, "abort", { signal: stopSignal });
2089
2017
  };
2090
-
2091
2018
  //#endregion
2092
2019
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cancel.js
2093
2020
  const validateCancelSignal = ({ cancelSignal }) => {
@@ -2100,18 +2027,17 @@ const terminateOnCancel = async (subprocess, cancelSignal, context, { signal })
2100
2027
  subprocess.kill();
2101
2028
  throw cancelSignal.reason;
2102
2029
  };
2103
-
2104
2030
  //#endregion
2105
2031
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/validation.js
2106
- const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected$1 }) => {
2032
+ const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected }) => {
2107
2033
  validateIpcOption(methodName, isSubprocess, ipc);
2108
- validateConnection(methodName, isSubprocess, isConnected$1);
2034
+ validateConnection(methodName, isSubprocess, isConnected);
2109
2035
  };
2110
2036
  const validateIpcOption = (methodName, isSubprocess, ipc) => {
2111
2037
  if (!ipc) throw new Error(`${getMethodName(methodName, isSubprocess)} can only be used if the \`ipc\` option is \`true\`.`);
2112
2038
  };
2113
- const validateConnection = (methodName, isSubprocess, isConnected$1) => {
2114
- if (!isConnected$1) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
2039
+ const validateConnection = (methodName, isSubprocess, isConnected) => {
2040
+ if (!isConnected) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
2115
2041
  };
2116
2042
  const throwOnEarlyDisconnect = (isSubprocess) => {
2117
2043
  throw new Error(`${getMethodName("getOneMessage", isSubprocess)} could not complete: the ${getOtherProcessName(isSubprocess)} exited or disconnected.`);
@@ -2155,7 +2081,6 @@ const getOtherProcessName = (isSubprocess) => isSubprocess ? "parent process" :
2155
2081
  const disconnect = (anyProcess) => {
2156
2082
  if (anyProcess.connected) anyProcess.disconnect();
2157
2083
  };
2158
-
2159
2084
  //#endregion
2160
2085
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/deferred.js
2161
2086
  const createDeferred = () => {
@@ -2168,7 +2093,6 @@ const createDeferred = () => {
2168
2093
  });
2169
2094
  return Object.assign(promise, methods);
2170
2095
  };
2171
-
2172
2096
  //#endregion
2173
2097
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/fd-options.js
2174
2098
  const getToStream = (destination, to = "stdin") => {
@@ -2245,7 +2169,6 @@ const serializeOptionValue = (value) => {
2245
2169
  if (typeof value === "string") return `'${value}'`;
2246
2170
  return typeof value === "number" ? `${value}` : "Stream";
2247
2171
  };
2248
-
2249
2172
  //#endregion
2250
2173
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/max-listeners.js
2251
2174
  const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
@@ -2256,7 +2179,6 @@ const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
2256
2179
  eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
2257
2180
  });
2258
2181
  };
2259
-
2260
2182
  //#endregion
2261
2183
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/reference.js
2262
2184
  const addReference = (channel, reference) => {
@@ -2283,7 +2205,6 @@ const redoAddedReferences = (channel, isSubprocess) => {
2283
2205
  addReferenceCount(channel);
2284
2206
  }
2285
2207
  };
2286
-
2287
2208
  //#endregion
2288
2209
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/incoming.js
2289
2210
  const onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
@@ -2317,7 +2238,6 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
2317
2238
  ipcEmitter.emit("disconnect");
2318
2239
  };
2319
2240
  const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
2320
-
2321
2241
  //#endregion
2322
2242
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
2323
2243
  const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
@@ -2355,7 +2275,6 @@ const isConnected = (anyProcess) => {
2355
2275
  const ipcEmitter = IPC_EMITTERS.get(anyProcess);
2356
2276
  return ipcEmitter === void 0 ? anyProcess.channel !== null : ipcEmitter.connected;
2357
2277
  };
2358
-
2359
2278
  //#endregion
2360
2279
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/strict.js
2361
2280
  const handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
@@ -2427,7 +2346,6 @@ const throwOnDisconnect$1 = async (anyProcess, isSubprocess, { signal }) => {
2427
2346
  };
2428
2347
  const REQUEST_TYPE = "execa:ipc:request";
2429
2348
  const RESPONSE_TYPE = "execa:ipc:response";
2430
-
2431
2349
  //#endregion
2432
2350
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
2433
2351
  const startSendMessage = (anyProcess, wrappedMessage, strict) => {
@@ -2457,7 +2375,6 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
2457
2375
  const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
2458
2376
  const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
2459
2377
  const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
2460
-
2461
2378
  //#endregion
2462
2379
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/send.js
2463
2380
  const sendMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
@@ -2527,7 +2444,6 @@ const getSendMethod = (anyProcess) => {
2527
2444
  return sendMethod;
2528
2445
  };
2529
2446
  const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
2530
-
2531
2447
  //#endregion
2532
2448
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
2533
2449
  const sendAbort = (subprocess, message) => {
@@ -2578,7 +2494,6 @@ const abortOnDisconnect = () => {
2578
2494
  cancelController.abort(getAbortDisconnectError());
2579
2495
  };
2580
2496
  const cancelController = new AbortController();
2581
-
2582
2497
  //#endregion
2583
2498
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/graceful.js
2584
2499
  const validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
@@ -2617,7 +2532,6 @@ const getReason = ({ reason }) => {
2617
2532
  });
2618
2533
  return error;
2619
2534
  };
2620
-
2621
2535
  //#endregion
2622
2536
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/timeout.js
2623
2537
  const validateTimeout = ({ timeout }) => {
@@ -2630,7 +2544,6 @@ const killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
2630
2544
  subprocess.kill();
2631
2545
  throw new DiscardedError();
2632
2546
  };
2633
-
2634
2547
  //#endregion
2635
2548
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/node.js
2636
2549
  const mapNode = ({ options }) => {
@@ -2640,7 +2553,7 @@ const mapNode = ({ options }) => {
2640
2553
  node: true
2641
2554
  } };
2642
2555
  };
2643
- const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = node_process.execPath, nodeOptions = node_process.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath,...options }) => {
2556
+ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = node_process.execPath, nodeOptions = node_process.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
2644
2557
  if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
2645
2558
  const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
2646
2559
  const resolvedNodePath = node_path.default.resolve(cwd, normalizedNodePath);
@@ -2670,7 +2583,6 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
2670
2583
  }
2671
2584
  ];
2672
2585
  };
2673
-
2674
2586
  //#endregion
2675
2587
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/ipc-input.js
2676
2588
  const validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
@@ -2700,7 +2612,6 @@ const sendIpcInput = async (subprocess, ipcInput) => {
2700
2612
  if (ipcInput === void 0) return;
2701
2613
  await subprocess.sendMessage(ipcInput);
2702
2614
  };
2703
-
2704
2615
  //#endregion
2705
2616
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/encoding-option.js
2706
2617
  const validateEncoding = ({ encoding }) => {
@@ -2708,7 +2619,7 @@ const validateEncoding = ({ encoding }) => {
2708
2619
  const correctEncoding = getCorrectEncoding(encoding);
2709
2620
  if (correctEncoding !== void 0) throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
2710
2621
  Please rename it to ${serializeEncoding(correctEncoding)}.`);
2711
- const correctEncodings = [...ENCODINGS].map((correctEncoding$1) => serializeEncoding(correctEncoding$1)).join(", ");
2622
+ const correctEncodings = [...ENCODINGS].map((correctEncoding) => serializeEncoding(correctEncoding)).join(", ");
2712
2623
  throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
2713
2624
  Please rename it to one of: ${correctEncodings}.`);
2714
2625
  };
@@ -2737,7 +2648,6 @@ const ENCODING_ALIASES = {
2737
2648
  binary: "latin1"
2738
2649
  };
2739
2650
  const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
2740
-
2741
2651
  //#endregion
2742
2652
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/cwd.js
2743
2653
  const normalizeCwd = (cwd = getDefaultCwd()) => {
@@ -2763,7 +2673,6 @@ const fixCwdError = (originalMessage, cwd) => {
2763
2673
  if (!cwdStat.isDirectory()) return `The "cwd" option is not a directory: ${cwd}.\n${originalMessage}`;
2764
2674
  return originalMessage;
2765
2675
  };
2766
-
2767
2676
  //#endregion
2768
2677
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/options.js
2769
2678
  const normalizeOptions = (filePath, rawArguments, rawOptions) => {
@@ -2788,7 +2697,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
2788
2697
  options
2789
2698
  };
2790
2699
  };
2791
- const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDir: localDirectory = cwd, encoding = "utf8", reject = true, cleanup = true, all = false, windowsHide = true, killSignal = "SIGTERM", forceKillAfterDelay = true, gracefulCancel = false, ipcInput, ipc = ipcInput !== void 0 || gracefulCancel, serialization = "advanced",...options }) => ({
2700
+ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDir: localDirectory = cwd, encoding = "utf8", reject = true, cleanup = true, all = false, windowsHide = true, killSignal = "SIGTERM", forceKillAfterDelay = true, gracefulCancel = false, ipcInput, ipc = ipcInput !== void 0 || gracefulCancel, serialization = "advanced", ...options }) => ({
2792
2701
  ...options,
2793
2702
  extendEnv,
2794
2703
  preferLocal,
@@ -2820,7 +2729,6 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
2820
2729
  });
2821
2730
  return env;
2822
2731
  };
2823
-
2824
2732
  //#endregion
2825
2733
  //#region ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
2826
2734
  function stripFinalNewline(input) {
@@ -2834,22 +2742,20 @@ const LF = "\n";
2834
2742
  const LF_BINARY = LF.codePointAt(0);
2835
2743
  const CR = "\r";
2836
2744
  const CR_BINARY = CR.codePointAt(0);
2837
-
2838
2745
  //#endregion
2839
2746
  //#region ../../node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.js
2840
2747
  function isStream(stream, { checkOpen = true } = {}) {
2841
2748
  return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
2842
2749
  }
2843
- function isWritableStream(stream, { checkOpen = true } = {}) {
2750
+ function isWritableStream$1(stream, { checkOpen = true } = {}) {
2844
2751
  return isStream(stream, { checkOpen }) && (stream.writable || !checkOpen) && typeof stream.write === "function" && typeof stream.end === "function" && typeof stream.writable === "boolean" && typeof stream.writableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
2845
2752
  }
2846
- function isReadableStream(stream, { checkOpen = true } = {}) {
2753
+ function isReadableStream$1(stream, { checkOpen = true } = {}) {
2847
2754
  return isStream(stream, { checkOpen }) && (stream.readable || !checkOpen) && typeof stream.read === "function" && typeof stream.readable === "boolean" && typeof stream.readableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
2848
2755
  }
2849
2756
  function isDuplexStream(stream, options) {
2850
- return isWritableStream(stream, options) && isReadableStream(stream, options);
2757
+ return isWritableStream$1(stream, options) && isReadableStream$1(stream, options);
2851
2758
  }
2852
-
2853
2759
  //#endregion
2854
2760
  //#region ../../node_modules/.pnpm/@sec-ant+readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js
2855
2761
  const a = Object.getPrototypeOf(Object.getPrototypeOf(
@@ -2930,11 +2836,10 @@ function h({ preventCancel: r = !1 } = {}) {
2930
2836
  const t = new c(this.getReader(), r), s = Object.create(u);
2931
2837
  return s[n] = t, s;
2932
2838
  }
2933
-
2934
2839
  //#endregion
2935
2840
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
2936
2841
  const getAsyncIterable = (stream) => {
2937
- if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
2842
+ if (isReadableStream$1(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
2938
2843
  if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
2939
2844
  if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
2940
2845
  throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -2968,7 +2873,6 @@ const handleStreamEnd = async (stream, controller, state) => {
2968
2873
  }
2969
2874
  };
2970
2875
  const nodeImports = {};
2971
-
2972
2876
  //#endregion
2973
2877
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.js
2974
2878
  const getStreamContents$1 = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
@@ -3044,7 +2948,6 @@ var MaxBufferError = class extends Error {
3044
2948
  super("maxBuffer exceeded");
3045
2949
  }
3046
2950
  };
3047
-
3048
2951
  //#endregion
3049
2952
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.js
3050
2953
  const identity = (value) => value;
@@ -3054,7 +2957,6 @@ const throwObjectStream = (chunk) => {
3054
2957
  throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
3055
2958
  };
3056
2959
  const getLengthProperty = (convertedChunk) => convertedChunk.length;
3057
-
3058
2960
  //#endregion
3059
2961
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array.js
3060
2962
  async function getStreamAsArray(stream, options) {
@@ -3082,7 +2984,6 @@ const arrayMethods = {
3082
2984
  getFinalChunk: noop$1,
3083
2985
  finalize: getContentsProperty
3084
2986
  };
3085
-
3086
2987
  //#endregion
3087
2988
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.js
3088
2989
  async function getStreamAsArrayBuffer(stream, options) {
@@ -3134,7 +3035,6 @@ const arrayBufferMethods = {
3134
3035
  getFinalChunk: noop$1,
3135
3036
  finalize: finalizeArrayBuffer
3136
3037
  };
3137
-
3138
3038
  //#endregion
3139
3039
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/string.js
3140
3040
  async function getStreamAsString(stream, options) {
@@ -3144,11 +3044,11 @@ const initString = () => ({
3144
3044
  contents: "",
3145
3045
  textDecoder: new TextDecoder()
3146
3046
  });
3147
- const useTextDecoder = (chunk, { textDecoder: textDecoder$1 }) => textDecoder$1.decode(chunk, { stream: true });
3047
+ const useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
3148
3048
  const addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
3149
3049
  const truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
3150
- const getFinalStringChunk = ({ textDecoder: textDecoder$1 }) => {
3151
- const finalChunk = textDecoder$1.decode();
3050
+ const getFinalStringChunk = ({ textDecoder }) => {
3051
+ const finalChunk = textDecoder.decode();
3152
3052
  return finalChunk === "" ? void 0 : finalChunk;
3153
3053
  };
3154
3054
  const stringMethods = {
@@ -3167,7 +3067,6 @@ const stringMethods = {
3167
3067
  getFinalChunk: getFinalStringChunk,
3168
3068
  finalize: getContentsProperty
3169
3069
  };
3170
-
3171
3070
  //#endregion
3172
3071
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/max-buffer.js
3173
3072
  const handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
@@ -3223,7 +3122,6 @@ const truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
3223
3122
  return result.length > maxBufferValue ? result.slice(0, maxBufferValue) : result;
3224
3123
  };
3225
3124
  const getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
3226
-
3227
3125
  //#endregion
3228
3126
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/message.js
3229
3127
  const createMessages = ({ stdio, all, ipcOutput, originalError, signal, signalDescription, exitCode, escapedCommand, timedOut, isCanceled, isGracefullyCanceled, isMaxBuffer, isForcefullyTerminated, forceKillAfterDelay, killSignal, maxBuffer, timeout, cwd }) => {
@@ -3285,7 +3183,6 @@ const serializeMessageItem = (messageItem) => {
3285
3183
  if (isUint8Array(messageItem)) return uint8ArrayToString(messageItem);
3286
3184
  return "";
3287
3185
  };
3288
-
3289
3186
  //#endregion
3290
3187
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js
3291
3188
  const makeSuccessResult = ({ command, escapedCommand, stdio, all, ipcOutput, options: { cwd }, startTime }) => omitUndefinedProperties({
@@ -3403,7 +3300,6 @@ const normalizeExitPayload = (rawExitCode, rawSignal) => {
3403
3300
  signalDescription: signal === void 0 ? void 0 : getSignalDescription(rawSignal)
3404
3301
  };
3405
3302
  };
3406
-
3407
3303
  //#endregion
3408
3304
  //#region ../../node_modules/.pnpm/parse-ms@4.0.0/node_modules/parse-ms/index.js
3409
3305
  const toZeroIfInfinity = (value) => Number.isFinite(value) ? value : 0;
@@ -3438,11 +3334,10 @@ function parseMilliseconds(milliseconds) {
3438
3334
  }
3439
3335
  throw new TypeError("Expected a finite number or bigint");
3440
3336
  }
3441
-
3442
3337
  //#endregion
3443
3338
  //#region ../../node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
3444
3339
  const isZero = (value) => value === 0 || value === 0n;
3445
- const pluralize = (word, count$1) => count$1 === 1 || count$1 === 1n ? word : `${word}s`;
3340
+ const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
3446
3341
  const SECOND_ROUNDING_EPSILON = 1e-7;
3447
3342
  const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
3448
3343
  function prettyMilliseconds(milliseconds, options) {
@@ -3491,16 +3386,16 @@ function prettyMilliseconds(milliseconds, options) {
3491
3386
  add(Number(parsed.minutes), "minute", "m");
3492
3387
  if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
3493
3388
  const seconds = Number(parsed.seconds);
3494
- const milliseconds$1 = Number(parsed.milliseconds);
3389
+ const milliseconds = Number(parsed.milliseconds);
3495
3390
  const microseconds = Number(parsed.microseconds);
3496
3391
  const nanoseconds = Number(parsed.nanoseconds);
3497
3392
  add(seconds, "second", "s");
3498
3393
  if (options.formatSubMilliseconds) {
3499
- add(milliseconds$1, "millisecond", "ms");
3394
+ add(milliseconds, "millisecond", "ms");
3500
3395
  add(microseconds, "microsecond", "µs");
3501
3396
  add(nanoseconds, "nanosecond", "ns");
3502
3397
  } else {
3503
- const millisecondsAndBelow = milliseconds$1 + microseconds / 1e3 + nanoseconds / 1e6;
3398
+ const millisecondsAndBelow = milliseconds + microseconds / 1e3 + nanoseconds / 1e6;
3504
3399
  const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
3505
3400
  const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
3506
3401
  add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
@@ -3515,7 +3410,6 @@ function prettyMilliseconds(milliseconds, options) {
3515
3410
  if (typeof options.unitCount === "number") result = result.slice(0, Math.max(options.unitCount, 1));
3516
3411
  return sign + result.join(separator);
3517
3412
  }
3518
-
3519
3413
  //#endregion
3520
3414
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/error.js
3521
3415
  const logError = (result, verboseInfo) => {
@@ -3526,7 +3420,6 @@ const logError = (result, verboseInfo) => {
3526
3420
  result
3527
3421
  });
3528
3422
  };
3529
-
3530
3423
  //#endregion
3531
3424
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/complete.js
3532
3425
  const logResult = (result, verboseInfo) => {
@@ -3542,7 +3435,6 @@ const logDuration = (result, verboseInfo) => {
3542
3435
  result
3543
3436
  });
3544
3437
  };
3545
-
3546
3438
  //#endregion
3547
3439
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/reject.js
3548
3440
  const handleResult = (result, verboseInfo, { reject }) => {
@@ -3550,7 +3442,6 @@ const handleResult = (result, verboseInfo, { reject }) => {
3550
3442
  if (result.failed && reject) throw result;
3551
3443
  return result;
3552
3444
  };
3553
-
3554
3445
  //#endregion
3555
3446
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/type.js
3556
3447
  const getStdioItemType = (value, optionName) => {
@@ -3617,13 +3508,13 @@ const KNOWN_STDIO_STRINGS = new Set([
3617
3508
  "overlapped",
3618
3509
  "pipe"
3619
3510
  ]);
3620
- const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
3621
- const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
3622
- const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
3623
- const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
3624
- const isAsyncIterableObject = (value) => isObject$1(value) && typeof value[Symbol.asyncIterator] === "function";
3625
- const isIterableObject = (value) => isObject$1(value) && typeof value[Symbol.iterator] === "function";
3626
- const isObject$1 = (value) => typeof value === "object" && value !== null;
3511
+ const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
3512
+ const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
3513
+ const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
3514
+ const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
3515
+ const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
3516
+ const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
3517
+ const isObject = (value) => typeof value === "object" && value !== null;
3627
3518
  const TRANSFORM_TYPES = new Set([
3628
3519
  "generator",
3629
3520
  "asyncGenerator",
@@ -3658,7 +3549,6 @@ const TYPE_TO_MESSAGE = {
3658
3549
  string: "a string",
3659
3550
  uint8Array: "a Uint8Array"
3660
3551
  };
3661
-
3662
3552
  //#endregion
3663
3553
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/object-mode.js
3664
3554
  const getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
@@ -3681,7 +3571,6 @@ const getFdObjectMode = (stdioItems, direction) => {
3681
3571
  if (lastTransform === void 0) return false;
3682
3572
  return direction === "input" ? lastTransform.value.writableObjectMode : lastTransform.value.readableObjectMode;
3683
3573
  };
3684
-
3685
3574
  //#endregion
3686
3575
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/normalize.js
3687
3576
  const normalizeTransforms = (stdioItems, optionName, direction, options) => [...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)), ...getTransforms(stdioItems, optionName, direction, options)];
@@ -3758,7 +3647,6 @@ const normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransfo
3758
3647
  };
3759
3648
  };
3760
3649
  const sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
3761
-
3762
3650
  //#endregion
3763
3651
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/direction.js
3764
3652
  const getStreamDirection = (stdioItems, fdNumber, optionName) => {
@@ -3782,10 +3670,10 @@ const guessStreamDirection = {
3782
3670
  iterable: alwaysInput,
3783
3671
  asyncIterable: alwaysInput,
3784
3672
  uint8Array: alwaysInput,
3785
- webStream: (value) => isWritableStream$1(value) ? "output" : "input",
3673
+ webStream: (value) => isWritableStream(value) ? "output" : "input",
3786
3674
  nodeStream(value) {
3787
- if (!isReadableStream(value, { checkOpen: false })) return "output";
3788
- return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
3675
+ if (!isReadableStream$1(value, { checkOpen: false })) return "output";
3676
+ return isWritableStream$1(value, { checkOpen: false }) ? void 0 : "input";
3789
3677
  },
3790
3678
  webTransform: anyDirection,
3791
3679
  duplex: anyDirection,
@@ -3805,14 +3693,12 @@ const getStandardStreamDirection = (value) => {
3805
3693
  ].includes(value)) return "output";
3806
3694
  };
3807
3695
  const DEFAULT_DIRECTION = "output";
3808
-
3809
3696
  //#endregion
3810
3697
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/array.js
3811
3698
  const normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
3812
-
3813
3699
  //#endregion
3814
3700
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/stdio-option.js
3815
- const normalizeStdioOption = ({ stdio, ipc, buffer,...options }, verboseInfo, isSync) => {
3701
+ const normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
3816
3702
  const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue(stdioOption, fdNumber));
3817
3703
  return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
3818
3704
  };
@@ -3826,7 +3712,7 @@ const getStdioArray = (stdio, options) => {
3826
3712
  ];
3827
3713
  if (!Array.isArray(stdio)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
3828
3714
  const length = Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length);
3829
- return Array.from({ length }, (_$1, fdNumber) => stdio[fdNumber]);
3715
+ return Array.from({ length }, (_, fdNumber) => stdio[fdNumber]);
3830
3716
  };
3831
3717
  const hasAlias = (options) => STANDARD_STREAMS_ALIASES.some((alias) => options[alias] !== void 0);
3832
3718
  const addDefaultValue = (stdioOption, fdNumber) => {
@@ -3836,7 +3722,6 @@ const addDefaultValue = (stdioOption, fdNumber) => {
3836
3722
  };
3837
3723
  const normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
3838
3724
  const isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
3839
-
3840
3725
  //#endregion
3841
3726
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/native.js
3842
3727
  const handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
@@ -3905,7 +3790,6 @@ const getStandardStream = (fdNumber, value, optionName) => {
3905
3790
  if (standardStream === void 0) throw new TypeError(`The \`${optionName}: ${value}\` option is invalid: no such standard stream.`);
3906
3791
  return standardStream;
3907
3792
  };
3908
-
3909
3793
  //#endregion
3910
3794
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/input-option.js
3911
3795
  const handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [...handleInputOption(input), ...handleInputFileOption(inputFile)] : [];
@@ -3915,7 +3799,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
3915
3799
  optionName: "input"
3916
3800
  }];
3917
3801
  const getInputType = (input) => {
3918
- if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
3802
+ if (isReadableStream$1(input, { checkOpen: false })) return "nodeStream";
3919
3803
  if (typeof input === "string") return "string";
3920
3804
  if (isUint8Array(input)) return "uint8Array";
3921
3805
  throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
@@ -3935,7 +3819,6 @@ const getInputFileType = (inputFile) => {
3935
3819
  };
3936
3820
  throw new Error("The `inputFile` option must be a file path string or a file URL.");
3937
3821
  };
3938
-
3939
3822
  //#endregion
3940
3823
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/duplicate.js
3941
3824
  const filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
@@ -3996,10 +3879,9 @@ const validateDuplicateTransform = ({ otherStdioItems, type, value, optionName }
3996
3879
  const throwOnDuplicateStream = (stdioItem, optionName, type) => {
3997
3880
  if (stdioItem !== void 0) throw new TypeError(`The \`${stdioItem.optionName}\` and \`${optionName}\` options must not target ${TYPE_TO_MESSAGE[type]} that is the same.`);
3998
3881
  };
3999
-
4000
3882
  //#endregion
4001
3883
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle.js
4002
- const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
3884
+ const handleStdio = (addProperties, options, verboseInfo, isSync) => {
4003
3885
  const fileDescriptors = getFinalFileDescriptors({
4004
3886
  initialFileDescriptors: normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
4005
3887
  stdioOption,
@@ -4007,7 +3889,7 @@ const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
4007
3889
  options,
4008
3890
  isSync
4009
3891
  })),
4010
- addProperties: addProperties$2,
3892
+ addProperties,
4011
3893
  options,
4012
3894
  isSync
4013
3895
  });
@@ -4056,7 +3938,7 @@ const initializeStdioItem = (value, optionName) => ({
4056
3938
  const validateStdioArray = (stdioItems, isStdioArray, optionName) => {
4057
3939
  if (stdioItems.length === 0) throw new TypeError(`The \`${optionName}\` option must not be an empty array.`);
4058
3940
  if (!isStdioArray) return;
4059
- for (const { value, optionName: optionName$1 } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName$1}\` option must not include \`${value}\`.`);
3941
+ for (const { value, optionName } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName}\` option must not include \`${value}\`.`);
4060
3942
  };
4061
3943
  const INVALID_STDIO_ARRAY_OPTIONS = new Set(["ignore", "ipc"]);
4062
3944
  const validateStreams = (stdioItems) => {
@@ -4072,13 +3954,13 @@ const validateFileObjectMode = (stdioItems, objectMode) => {
4072
3954
  const fileStdioItem = stdioItems.find(({ type }) => FILE_TYPES.has(type));
4073
3955
  if (fileStdioItem !== void 0) throw new TypeError(`The \`${fileStdioItem.optionName}\` option cannot use both files and transforms in objectMode.`);
4074
3956
  };
4075
- const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addProperties$2, options, isSync }) => {
3957
+ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties, options, isSync }) => {
4076
3958
  const fileDescriptors = [];
4077
3959
  try {
4078
3960
  for (const fileDescriptor of initialFileDescriptors) fileDescriptors.push(getFinalFileDescriptor({
4079
3961
  fileDescriptor,
4080
3962
  fileDescriptors,
4081
- addProperties: addProperties$2,
3963
+ addProperties,
4082
3964
  options,
4083
3965
  isSync
4084
3966
  }));
@@ -4088,13 +3970,13 @@ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addPro
4088
3970
  throw error;
4089
3971
  }
4090
3972
  };
4091
- const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties: addProperties$2, options, isSync }) => {
3973
+ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties, options, isSync }) => {
4092
3974
  return {
4093
3975
  direction,
4094
3976
  objectMode,
4095
3977
  stdioItems: stdioItems.map((stdioItem) => addStreamProperties({
4096
3978
  stdioItem,
4097
- addProperties: addProperties$2,
3979
+ addProperties,
4098
3980
  direction,
4099
3981
  options,
4100
3982
  fileDescriptors,
@@ -4102,7 +3984,7 @@ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdio
4102
3984
  }))
4103
3985
  };
4104
3986
  };
4105
- const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direction, options, fileDescriptors, isSync }) => {
3987
+ const addStreamProperties = ({ stdioItem, addProperties, direction, options, fileDescriptors, isSync }) => {
4106
3988
  const duplicateStream = getDuplicateStream({
4107
3989
  stdioItem,
4108
3990
  direction,
@@ -4115,18 +3997,17 @@ const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direct
4115
3997
  };
4116
3998
  return {
4117
3999
  ...stdioItem,
4118
- ...addProperties$2[direction][stdioItem.type](stdioItem, options)
4000
+ ...addProperties[direction][stdioItem.type](stdioItem, options)
4119
4001
  };
4120
4002
  };
4121
4003
  const cleanupCustomStreams = (fileDescriptors) => {
4122
4004
  for (const { stdioItems } of fileDescriptors) for (const { stream } of stdioItems) if (stream !== void 0 && !isStandardStream(stream)) stream.destroy();
4123
4005
  };
4124
4006
  const forwardStdio = (stdioItems) => {
4125
- if (stdioItems.length > 1) return stdioItems.some(({ value: value$1 }) => value$1 === "overlapped") ? "overlapped" : "pipe";
4007
+ if (stdioItems.length > 1) return stdioItems.some(({ value }) => value === "overlapped") ? "overlapped" : "pipe";
4126
4008
  const [{ type, value }] = stdioItems;
4127
4009
  return type === "native" ? value : "pipe";
4128
4010
  };
4129
-
4130
4011
  //#endregion
4131
4012
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-sync.js
4132
4013
  const handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
@@ -4173,12 +4054,10 @@ const addPropertiesSync = {
4173
4054
  uint8Array: forbiddenIfSync
4174
4055
  }
4175
4056
  };
4176
-
4177
4057
  //#endregion
4178
4058
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/strip-newline.js
4179
4059
  const stripNewline = (value, { stripFinalNewline: stripFinalNewline$1 }, fdNumber) => getStripFinalNewline(stripFinalNewline$1, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
4180
- const getStripFinalNewline = (stripFinalNewline$1, fdNumber) => fdNumber === "all" ? stripFinalNewline$1[1] || stripFinalNewline$1[2] : stripFinalNewline$1[fdNumber];
4181
-
4060
+ const getStripFinalNewline = (stripFinalNewline, fdNumber) => fdNumber === "all" ? stripFinalNewline[1] || stripFinalNewline[2] : stripFinalNewline[fdNumber];
4182
4061
  //#endregion
4183
4062
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/split.js
4184
4063
  const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
@@ -4224,8 +4103,8 @@ const linesFinal = function* ({ previousChunks }) {
4224
4103
  };
4225
4104
  const getAppendNewlineGenerator = ({ binary, preserveNewlines, readableObjectMode, state }) => binary || preserveNewlines || readableObjectMode ? void 0 : { transform: appendNewlineGenerator.bind(void 0, state) };
4226
4105
  const appendNewlineGenerator = function* ({ isWindowsNewline = false }, chunk) {
4227
- const { unixNewline, windowsNewline, LF: LF$1, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
4228
- if (chunk.at(-1) === LF$1) {
4106
+ const { unixNewline, windowsNewline, LF, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
4107
+ if (chunk.at(-1) === LF) {
4229
4108
  yield chunk;
4230
4109
  return;
4231
4110
  }
@@ -4250,7 +4129,6 @@ const linesUint8ArrayInfo = {
4250
4129
  LF: 10,
4251
4130
  concatBytes: concatUint8Array
4252
4131
  };
4253
-
4254
4132
  //#endregion
4255
4133
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/validate.js
4256
4134
  const getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
@@ -4273,7 +4151,6 @@ const validateEmptyReturn = (optionName, chunk) => {
4273
4151
  Instead, \`yield\` should either be called with a value, or not be called at all. For example:
4274
4152
  if (condition) { yield value; }`);
4275
4153
  };
4276
-
4277
4154
  //#endregion
4278
4155
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/encoding-transform.js
4279
4156
  const getEncodingTransformGenerator = (binary, encoding, skipped) => {
@@ -4285,9 +4162,9 @@ const getEncodingTransformGenerator = (binary, encoding, skipped) => {
4285
4162
  final: encodingStringFinal.bind(void 0, stringDecoder)
4286
4163
  };
4287
4164
  };
4288
- const encodingUint8ArrayGenerator = function* (textEncoder$2, chunk) {
4165
+ const encodingUint8ArrayGenerator = function* (textEncoder, chunk) {
4289
4166
  if (node_buffer.Buffer.isBuffer(chunk)) yield bufferToUint8Array(chunk);
4290
- else if (typeof chunk === "string") yield textEncoder$2.encode(chunk);
4167
+ else if (typeof chunk === "string") yield textEncoder.encode(chunk);
4291
4168
  else yield chunk;
4292
4169
  };
4293
4170
  const encodingStringGenerator = function* (stringDecoder, chunk) {
@@ -4297,7 +4174,6 @@ const encodingStringFinal = function* (stringDecoder) {
4297
4174
  const lastChunk = stringDecoder.end();
4298
4175
  if (lastChunk !== "") yield lastChunk;
4299
4176
  };
4300
-
4301
4177
  //#endregion
4302
4178
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-async.js
4303
4179
  const pushChunks = (0, node_util.callbackify)(async (getChunks, state, getChunksArguments, transformStream) => {
@@ -4333,7 +4209,6 @@ const destroyTransform = (0, node_util.callbackify)(async ({ currentIterable },
4333
4209
  const identityGenerator$1 = function* (chunk) {
4334
4210
  yield chunk;
4335
4211
  };
4336
-
4337
4212
  //#endregion
4338
4213
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-sync.js
4339
4214
  const pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
@@ -4363,7 +4238,6 @@ const generatorFinalChunksSync = function* (final, index, generators) {
4363
4238
  const identityGenerator = function* (chunk) {
4364
4239
  yield chunk;
4365
4240
  };
4366
-
4367
4241
  //#endregion
4368
4242
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/generator.js
4369
4243
  const generatorToStream = ({ value, value: { transform, final, writableObjectMode, readableObjectMode }, optionName }, { encoding }) => {
@@ -4379,7 +4253,7 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
4379
4253
  writableHighWaterMark: (0, node_stream.getDefaultHighWaterMark)(writableObjectMode),
4380
4254
  readableObjectMode,
4381
4255
  readableHighWaterMark: (0, node_stream.getDefaultHighWaterMark)(readableObjectMode),
4382
- transform(chunk, encoding$1, done) {
4256
+ transform(chunk, encoding, done) {
4383
4257
  transformMethod([
4384
4258
  chunk,
4385
4259
  generators,
@@ -4417,7 +4291,6 @@ const addInternalGenerators = ({ transform, final, binary, writableObjectMode, r
4417
4291
  })
4418
4292
  ].filter(Boolean);
4419
4293
  };
4420
-
4421
4294
  //#endregion
4422
4295
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/input-sync.js
4423
4296
  const addInputOptionsSync = (fileDescriptors, options) => {
@@ -4443,7 +4316,6 @@ const validateSerializable = (newContents) => {
4443
4316
  const invalidItem = newContents.find((item) => typeof item !== "string" && !isUint8Array(item));
4444
4317
  if (invalidItem !== void 0) throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${invalidItem}.`);
4445
4318
  };
4446
-
4447
4319
  //#endregion
4448
4320
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/output.js
4449
4321
  const shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
@@ -4464,7 +4336,6 @@ const logLine = (line, fdNumber, verboseInfo) => {
4464
4336
  verboseInfo
4465
4337
  });
4466
4338
  };
4467
-
4468
4339
  //#endregion
4469
4340
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-sync.js
4470
4341
  const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
@@ -4484,7 +4355,7 @@ const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options,
4484
4355
  ...state
4485
4356
  };
4486
4357
  };
4487
- const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline: stripFinalNewline$1, maxBuffer }) => {
4358
+ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline, maxBuffer }) => {
4488
4359
  if (result === null) return;
4489
4360
  const uint8ArrayResult = bufferToUint8Array(truncateMaxBufferSync(result, isMaxBuffer, maxBuffer));
4490
4361
  const { stdioItems, objectMode } = fileDescriptors[fdNumber];
@@ -4493,7 +4364,7 @@ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, o
4493
4364
  objectMode,
4494
4365
  encoding,
4495
4366
  lines,
4496
- stripFinalNewline: stripFinalNewline$1,
4367
+ stripFinalNewline,
4497
4368
  fdNumber
4498
4369
  });
4499
4370
  logOutputSync({
@@ -4522,13 +4393,13 @@ const runOutputGeneratorsSync = (chunks, stdioItems, encoding, state) => {
4522
4393
  return chunks;
4523
4394
  }
4524
4395
  };
4525
- const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline: stripFinalNewline$1, fdNumber }) => {
4396
+ const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline, fdNumber }) => {
4526
4397
  if (objectMode) return { serializedResult: chunks };
4527
4398
  if (encoding === "buffer") return { serializedResult: joinToUint8Array(chunks) };
4528
4399
  const serializedResult = joinToString(chunks, encoding);
4529
4400
  if (lines[fdNumber]) return {
4530
4401
  serializedResult,
4531
- finalResult: splitLinesSync(serializedResult, !stripFinalNewline$1[fdNumber], objectMode)
4402
+ finalResult: splitLinesSync(serializedResult, !stripFinalNewline[fdNumber], objectMode)
4532
4403
  };
4533
4404
  return { serializedResult };
4534
4405
  };
@@ -4547,16 +4418,15 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
4547
4418
  }
4548
4419
  };
4549
4420
  const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
4550
- for (const { path: path$14, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4551
- const pathString = typeof path$14 === "string" ? path$14 : path$14.toString();
4552
- if (append || outputFiles.has(pathString)) (0, node_fs.appendFileSync)(path$14, serializedResult);
4421
+ for (const { path, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4422
+ const pathString = typeof path === "string" ? path : path.toString();
4423
+ if (append || outputFiles.has(pathString)) (0, node_fs.appendFileSync)(path, serializedResult);
4553
4424
  else {
4554
4425
  outputFiles.add(pathString);
4555
- (0, node_fs.writeFileSync)(path$14, serializedResult);
4426
+ (0, node_fs.writeFileSync)(path, serializedResult);
4556
4427
  }
4557
4428
  }
4558
4429
  };
4559
-
4560
4430
  //#endregion
4561
4431
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-sync.js
4562
4432
  const getAllSync = ([, stdout, stderr], options) => {
@@ -4568,7 +4438,6 @@ const getAllSync = ([, stdout, stderr], options) => {
4568
4438
  if (isUint8Array(stdout) && isUint8Array(stderr)) return concatUint8Arrays([stdout, stderr]);
4569
4439
  return `${stdout}${stderr}`;
4570
4440
  };
4571
-
4572
4441
  //#endregion
4573
4442
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-async.js
4574
4443
  const waitForExit = async (subprocess, context) => {
@@ -4595,7 +4464,6 @@ const waitForSuccessfulExit = async (exitPromise) => {
4595
4464
  };
4596
4465
  const isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signal === void 0;
4597
4466
  const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
4598
-
4599
4467
  //#endregion
4600
4468
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-sync.js
4601
4469
  const getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
@@ -4612,7 +4480,6 @@ const getResultError = (error, exitCode, signal) => {
4612
4480
  if (error !== void 0) return error;
4613
4481
  return isFailedExit(exitCode, signal) ? new DiscardedError() : void 0;
4614
4482
  };
4615
-
4616
4483
  //#endregion
4617
4484
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-sync.js
4618
4485
  const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
@@ -4705,7 +4572,7 @@ const runSubprocessSync = ({ file, commandArguments, options, command, escapedCo
4705
4572
  });
4706
4573
  }
4707
4574
  };
4708
- const normalizeSpawnSyncOptions = ({ encoding, maxBuffer,...options }) => ({
4575
+ const normalizeSpawnSyncOptions = ({ encoding, maxBuffer, ...options }) => ({
4709
4576
  ...options,
4710
4577
  encoding: "buffer",
4711
4578
  maxBuffer: getMaxBufferSync(maxBuffer)
@@ -4736,7 +4603,6 @@ const getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio,
4736
4603
  startTime,
4737
4604
  isSync: true
4738
4605
  });
4739
-
4740
4606
  //#endregion
4741
4607
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-one.js
4742
4608
  const getOneMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
@@ -4787,7 +4653,6 @@ const throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
4787
4653
  const [error] = await (0, node_events.once)(ipcEmitter, "strict:error", { signal });
4788
4654
  throw getStrictResponseError(error, isSubprocess);
4789
4655
  };
4790
-
4791
4656
  //#endregion
4792
4657
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-each.js
4793
4658
  const getEachMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
@@ -4858,7 +4723,6 @@ const iterateOnMessages = async function* ({ anyProcess, channel, ipcEmitter, is
4858
4723
  const throwIfStrictError = ({ error }) => {
4859
4724
  if (error) throw error;
4860
4725
  };
4861
-
4862
4726
  //#endregion
4863
4727
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/methods.js
4864
4728
  const addIpcMethods = (subprocess, { ipc }) => {
@@ -4898,7 +4762,6 @@ const getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
4898
4762
  ipc
4899
4763
  })
4900
4764
  });
4901
-
4902
4765
  //#endregion
4903
4766
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/early-error.js
4904
4767
  const handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
@@ -4955,7 +4818,6 @@ const duplex = () => new node_stream.Duplex({
4955
4818
  write() {}
4956
4819
  });
4957
4820
  const handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
4958
-
4959
4821
  //#endregion
4960
4822
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-async.js
4961
4823
  const handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
@@ -4996,7 +4858,6 @@ const addPropertiesAsync = {
4996
4858
  uint8Array: forbiddenIfAsync
4997
4859
  }
4998
4860
  };
4999
-
5000
4861
  //#endregion
5001
4862
  //#region ../../node_modules/.pnpm/@sindresorhus+merge-streams@4.0.0/node_modules/@sindresorhus/merge-streams/index.js
5002
4863
  function mergeStreams(streams) {
@@ -5079,7 +4940,7 @@ const onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { s
5079
4940
  const validateStream = (stream) => {
5080
4941
  if (typeof stream?.pipe !== "function") throw new TypeError(`Expected a readable stream, got: \`${typeof stream}\`.`);
5081
4942
  };
5082
- const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted: aborted$1, onFinished, unpipeEvent }) => {
4943
+ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted, onFinished, unpipeEvent }) => {
5083
4944
  updateMaxListeners(passThroughStream, PASSTHROUGH_LISTENERS_PER_STREAM);
5084
4945
  const controller = new AbortController();
5085
4946
  try {
@@ -5090,14 +4951,14 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
5090
4951
  stream,
5091
4952
  streams,
5092
4953
  ended,
5093
- aborted: aborted$1,
4954
+ aborted,
5094
4955
  controller
5095
4956
  }),
5096
4957
  onInputStreamUnpipe({
5097
4958
  stream,
5098
4959
  streams,
5099
4960
  ended,
5100
- aborted: aborted$1,
4961
+ aborted,
5101
4962
  unpipeEvent,
5102
4963
  controller
5103
4964
  })
@@ -5106,7 +4967,7 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
5106
4967
  controller.abort();
5107
4968
  updateMaxListeners(passThroughStream, -PASSTHROUGH_LISTENERS_PER_STREAM);
5108
4969
  }
5109
- if (streams.size > 0 && streams.size === ended.size + aborted$1.size) if (ended.size === 0 && aborted$1.size > 0) abortStream(passThroughStream);
4970
+ if (streams.size > 0 && streams.size === ended.size + aborted.size) if (ended.size === 0 && aborted.size > 0) abortStream(passThroughStream);
5110
4971
  else endStream(passThroughStream);
5111
4972
  };
5112
4973
  const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
@@ -5117,7 +4978,7 @@ const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
5117
4978
  if (!signal.aborted) errorOrAbortStream(stream, error);
5118
4979
  }
5119
4980
  };
5120
- const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted: aborted$1, controller: { signal } }) => {
4981
+ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted, controller: { signal } }) => {
5121
4982
  try {
5122
4983
  await (0, node_stream_promises.finished)(stream, {
5123
4984
  signal,
@@ -5128,16 +4989,16 @@ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, abo
5128
4989
  if (streams.has(stream)) ended.add(stream);
5129
4990
  } catch (error) {
5130
4991
  if (signal.aborted || !streams.has(stream)) return;
5131
- if (isAbortError(error)) aborted$1.add(stream);
4992
+ if (isAbortError(error)) aborted.add(stream);
5132
4993
  else errorStream(passThroughStream, error);
5133
4994
  }
5134
4995
  };
5135
- const onInputStreamUnpipe = async ({ stream, streams, ended, aborted: aborted$1, unpipeEvent, controller: { signal } }) => {
4996
+ const onInputStreamUnpipe = async ({ stream, streams, ended, aborted, unpipeEvent, controller: { signal } }) => {
5136
4997
  await (0, node_events.once)(stream, unpipeEvent, { signal });
5137
4998
  if (!stream.readable) return (0, node_events.once)(signal, "abort", { signal });
5138
4999
  streams.delete(stream);
5139
5000
  ended.delete(stream);
5140
- aborted$1.delete(stream);
5001
+ aborted.delete(stream);
5141
5002
  };
5142
5003
  const endStream = (stream) => {
5143
5004
  if (stream.writable) stream.end();
@@ -5157,13 +5018,12 @@ const errorStream = (stream, error) => {
5157
5018
  }
5158
5019
  };
5159
5020
  const noop = () => {};
5160
- const updateMaxListeners = (passThroughStream, increment$1) => {
5021
+ const updateMaxListeners = (passThroughStream, increment) => {
5161
5022
  const maxListeners = passThroughStream.getMaxListeners();
5162
- if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment$1);
5023
+ if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment);
5163
5024
  };
5164
5025
  const PASSTHROUGH_LISTENERS_COUNT = 2;
5165
5026
  const PASSTHROUGH_LISTENERS_PER_STREAM = 1;
5166
-
5167
5027
  //#endregion
5168
5028
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/pipeline.js
5169
5029
  const pipeStreams = (source, destination) => {
@@ -5199,7 +5059,6 @@ const onDestinationFinish = async (source, destination) => {
5199
5059
  const abortSourceStream = (source) => {
5200
5060
  if (source.readable) source.destroy();
5201
5061
  };
5202
-
5203
5062
  //#endregion
5204
5063
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
5205
5064
  const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
@@ -5240,7 +5099,6 @@ const setStandardStreamMaxListeners = (stream, { signal }) => {
5240
5099
  if (isStandardStream(stream)) incrementMaxListeners(stream, MAX_LISTENERS_INCREMENT, signal);
5241
5100
  };
5242
5101
  const MAX_LISTENERS_INCREMENT = 2;
5243
-
5244
5102
  //#endregion
5245
5103
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
5246
5104
  /**
@@ -5273,10 +5131,9 @@ const signals = [];
5273
5131
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
5274
5132
  if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
5275
5133
  if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
5276
-
5277
5134
  //#endregion
5278
5135
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
5279
- const processOk = (process$9) => !!process$9 && typeof process$9 === "object" && typeof process$9.removeListener === "function" && typeof process$9.emit === "function" && typeof process$9.reallyExit === "function" && typeof process$9.listeners === "function" && typeof process$9.kill === "function" && typeof process$9.pid === "number" && typeof process$9.on === "function";
5136
+ const processOk = (process) => !!process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
5280
5137
  const kExitEmitter = Symbol.for("signal-exit emitter");
5281
5138
  const global$1 = globalThis;
5282
5139
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -5305,12 +5162,12 @@ var Emitter = class {
5305
5162
  }
5306
5163
  removeListener(ev, fn) {
5307
5164
  const list = this.listeners[ev];
5308
- const i$1 = list.indexOf(fn);
5165
+ const i = list.indexOf(fn);
5309
5166
  /* c8 ignore start */
5310
- if (i$1 === -1) return;
5167
+ if (i === -1) return;
5311
5168
  /* c8 ignore stop */
5312
- if (i$1 === 0 && list.length === 1) list.length = 0;
5313
- else list.splice(i$1, 1);
5169
+ if (i === 0 && list.length === 1) list.length = 0;
5170
+ else list.splice(i, 1);
5314
5171
  }
5315
5172
  emit(ev, code, signal) {
5316
5173
  if (this.emitted[ev]) return false;
@@ -5352,27 +5209,27 @@ var SignalExit = class extends SignalExitBase {
5352
5209
  #originalProcessReallyExit;
5353
5210
  #sigListeners = {};
5354
5211
  #loaded = false;
5355
- constructor(process$9) {
5212
+ constructor(process) {
5356
5213
  super();
5357
- this.#process = process$9;
5214
+ this.#process = process;
5358
5215
  this.#sigListeners = {};
5359
5216
  for (const sig of signals) this.#sigListeners[sig] = () => {
5360
5217
  const listeners = this.#process.listeners(sig);
5361
- let { count: count$1 } = this.#emitter;
5218
+ let { count } = this.#emitter;
5362
5219
  /* c8 ignore start */
5363
- const p$1 = process$9;
5364
- if (typeof p$1.__signal_exit_emitter__ === "object" && typeof p$1.__signal_exit_emitter__.count === "number") count$1 += p$1.__signal_exit_emitter__.count;
5220
+ const p = process;
5221
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
5365
5222
  /* c8 ignore stop */
5366
- if (listeners.length === count$1) {
5223
+ if (listeners.length === count) {
5367
5224
  this.unload();
5368
5225
  const ret = this.#emitter.emit("exit", null, sig);
5369
5226
  /* c8 ignore start */
5370
5227
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
5371
- if (!ret) process$9.kill(process$9.pid, s);
5228
+ if (!ret) process.kill(process.pid, s);
5372
5229
  }
5373
5230
  };
5374
- this.#originalProcessReallyExit = process$9.reallyExit;
5375
- this.#originalProcessEmit = process$9.emit;
5231
+ this.#originalProcessReallyExit = process.reallyExit;
5232
+ this.#originalProcessEmit = process.emit;
5376
5233
  }
5377
5234
  onExit(cb, opts) {
5378
5235
  /* c8 ignore start */
@@ -5393,9 +5250,9 @@ var SignalExit = class extends SignalExitBase {
5393
5250
  for (const sig of signals) try {
5394
5251
  const fn = this.#sigListeners[sig];
5395
5252
  if (fn) this.#process.on(sig, fn);
5396
- } catch (_$1) {}
5397
- this.#process.emit = (ev, ...a$1) => {
5398
- return this.#processEmit(ev, ...a$1);
5253
+ } catch (_) {}
5254
+ this.#process.emit = (ev, ...a) => {
5255
+ return this.#processEmit(ev, ...a);
5399
5256
  };
5400
5257
  this.#process.reallyExit = (code) => {
5401
5258
  return this.#processReallyExit(code);
@@ -5411,7 +5268,7 @@ var SignalExit = class extends SignalExitBase {
5411
5268
  /* c8 ignore stop */
5412
5269
  try {
5413
5270
  this.#process.removeListener(sig, listener);
5414
- } catch (_$1) {}
5271
+ } catch (_) {}
5415
5272
  /* c8 ignore stop */
5416
5273
  });
5417
5274
  this.#process.emit = this.#originalProcessEmit;
@@ -5441,7 +5298,6 @@ var SignalExit = class extends SignalExitBase {
5441
5298
  };
5442
5299
  const process$1 = globalThis.process;
5443
5300
  const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
5444
-
5445
5301
  //#endregion
5446
5302
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cleanup.js
5447
5303
  const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
@@ -5453,7 +5309,6 @@ const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
5453
5309
  removeExitHandler();
5454
5310
  });
5455
5311
  };
5456
-
5457
5312
  //#endregion
5458
5313
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/pipe-arguments.js
5459
5314
  const normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
@@ -5521,7 +5376,6 @@ const getSourceStream = (source, from) => {
5521
5376
  return { sourceError: error };
5522
5377
  }
5523
5378
  };
5524
-
5525
5379
  //#endregion
5526
5380
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/throw.js
5527
5381
  const handlePipeArgumentsError = ({ sourceStream, sourceError, destinationStream, destinationError, fileDescriptors, sourceOptions, startTime }) => {
@@ -5559,7 +5413,6 @@ const createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTim
5559
5413
  isSync: false
5560
5414
  });
5561
5415
  const PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
5562
-
5563
5416
  //#endregion
5564
5417
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/sequence.js
5565
5418
  const waitForBothSubprocesses = async (subprocessPromises) => {
@@ -5569,7 +5422,6 @@ const waitForBothSubprocesses = async (subprocessPromises) => {
5569
5422
  if (sourceStatus === "rejected") throw sourceResult;
5570
5423
  return destinationResult;
5571
5424
  };
5572
-
5573
5425
  //#endregion
5574
5426
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/streaming.js
5575
5427
  const pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
@@ -5603,7 +5455,6 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
5603
5455
  const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
5604
5456
  const SOURCE_LISTENERS_PER_PIPE = 2;
5605
5457
  const DESTINATION_LISTENERS_PER_PIPE = 1;
5606
-
5607
5458
  //#endregion
5608
5459
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/abort.js
5609
5460
  const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
@@ -5617,7 +5468,6 @@ const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, f
5617
5468
  startTime
5618
5469
  });
5619
5470
  };
5620
-
5621
5471
  //#endregion
5622
5472
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/setup.js
5623
5473
  const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
@@ -5628,7 +5478,7 @@ const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
5628
5478
  ...pipeArguments[0]
5629
5479
  }
5630
5480
  });
5631
- const { destination,...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
5481
+ const { destination, ...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
5632
5482
  const promise = handlePipePromise({
5633
5483
  ...normalizedInfo,
5634
5484
  destination
@@ -5667,7 +5517,6 @@ const handlePipePromise = async ({ sourcePromise, sourceStream, sourceOptions, s
5667
5517
  }
5668
5518
  };
5669
5519
  const getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
5670
-
5671
5520
  //#endregion
5672
5521
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/iterate.js
5673
5522
  const iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
@@ -5690,7 +5539,7 @@ const stopReadingOnExit = async (subprocess, controller) => {
5690
5539
  controller.abort();
5691
5540
  }
5692
5541
  };
5693
- const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline: stripFinalNewline$1, allMixed }) => {
5542
+ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline, allMixed }) => {
5694
5543
  const controller = new AbortController();
5695
5544
  stopReadingOnStreamEnd(onStreamEnd, controller, stream);
5696
5545
  const objectMode = stream.readableObjectMode && !allMixed;
@@ -5701,7 +5550,7 @@ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewl
5701
5550
  shouldEncode: !objectMode,
5702
5551
  encoding,
5703
5552
  shouldSplit: !objectMode && lines,
5704
- preserveNewlines: !stripFinalNewline$1
5553
+ preserveNewlines: !stripFinalNewline
5705
5554
  });
5706
5555
  };
5707
5556
  const stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
@@ -5747,10 +5596,9 @@ const iterateOnData = async function* ({ onStdoutChunk, controller, binary, shou
5747
5596
  }
5748
5597
  };
5749
5598
  const getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => [getEncodingTransformGenerator(binary, encoding, !shouldEncode), getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})].filter(Boolean);
5750
-
5751
5599
  //#endregion
5752
5600
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/contents.js
5753
- const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => {
5601
+ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
5754
5602
  const logPromise = logOutputAsync({
5755
5603
  stream,
5756
5604
  onStreamEnd,
@@ -5769,7 +5617,7 @@ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer
5769
5617
  onStreamEnd,
5770
5618
  lines,
5771
5619
  encoding,
5772
- stripFinalNewline: getStripFinalNewline(stripFinalNewline$1, fdNumber),
5620
+ stripFinalNewline: getStripFinalNewline(stripFinalNewline, fdNumber),
5773
5621
  allMixed
5774
5622
  });
5775
5623
  const [output] = await Promise.all([getStreamContents({
@@ -5826,7 +5674,6 @@ const getBufferedData = async (streamPromise) => {
5826
5674
  }
5827
5675
  };
5828
5676
  const handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
5829
-
5830
5677
  //#endregion
5831
5678
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-stream.js
5832
5679
  const waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
@@ -5869,10 +5716,9 @@ const shouldIgnoreStreamError = (error, fdNumber, streamInfo, isSameDirection =
5869
5716
  const isInputFileDescriptor = ({ fileDescriptors }, fdNumber) => fdNumber !== "all" && fileDescriptors[fdNumber].direction === "input";
5870
5717
  const isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
5871
5718
  const isStreamEpipe = (error) => error?.code === "EPIPE";
5872
-
5873
5719
  //#endregion
5874
5720
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/stdio.js
5875
- const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
5721
+ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
5876
5722
  stream,
5877
5723
  fdNumber,
5878
5724
  encoding,
@@ -5880,11 +5726,11 @@ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, s
5880
5726
  maxBuffer: maxBuffer[fdNumber],
5881
5727
  lines: lines[fdNumber],
5882
5728
  allMixed: false,
5883
- stripFinalNewline: stripFinalNewline$1,
5729
+ stripFinalNewline,
5884
5730
  verboseInfo,
5885
5731
  streamInfo
5886
5732
  }));
5887
- const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => {
5733
+ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
5888
5734
  if (!stream) return;
5889
5735
  const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);
5890
5736
  if (isInputFileDescriptor(streamInfo, fdNumber)) {
@@ -5900,24 +5746,23 @@ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, max
5900
5746
  maxBuffer,
5901
5747
  lines,
5902
5748
  allMixed,
5903
- stripFinalNewline: stripFinalNewline$1,
5749
+ stripFinalNewline,
5904
5750
  verboseInfo,
5905
5751
  streamInfo
5906
5752
  }), onStreamEnd]);
5907
5753
  return output;
5908
5754
  };
5909
-
5910
5755
  //#endregion
5911
5756
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-async.js
5912
5757
  const makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : void 0;
5913
- const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => waitForSubprocessStream({
5758
+ const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => waitForSubprocessStream({
5914
5759
  ...getAllStream(subprocess, buffer),
5915
5760
  fdNumber: "all",
5916
5761
  encoding,
5917
5762
  maxBuffer: maxBuffer[1] + maxBuffer[2],
5918
5763
  lines: lines[1] || lines[2],
5919
5764
  allMixed: getAllMixed(subprocess),
5920
- stripFinalNewline: stripFinalNewline$1,
5765
+ stripFinalNewline,
5921
5766
  verboseInfo,
5922
5767
  streamInfo
5923
5768
  });
@@ -5941,7 +5786,6 @@ const getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) =
5941
5786
  };
5942
5787
  };
5943
5788
  const getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
5944
-
5945
5789
  //#endregion
5946
5790
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/ipc.js
5947
5791
  const shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
@@ -5953,12 +5797,11 @@ const logIpcOutput = (message, verboseInfo) => {
5953
5797
  verboseInfo
5954
5798
  });
5955
5799
  };
5956
-
5957
5800
  //#endregion
5958
5801
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/buffer-messages.js
5959
5802
  const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: maxBufferArray, ipc, ipcOutput, verboseInfo }) => {
5960
5803
  if (!ipc) return ipcOutput;
5961
- const isVerbose$1 = shouldLogIpc(verboseInfo);
5804
+ const isVerbose = shouldLogIpc(verboseInfo);
5962
5805
  const buffer = getFdSpecificValue(bufferArray, "ipc");
5963
5806
  const maxBuffer = getFdSpecificValue(maxBufferArray, "ipc");
5964
5807
  for await (const message of loopOnMessages({
@@ -5973,7 +5816,7 @@ const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: ma
5973
5816
  checkIpcMaxBuffer(subprocess, ipcOutput, maxBuffer);
5974
5817
  ipcOutput.push(message);
5975
5818
  }
5976
- if (isVerbose$1) logIpcOutput(message, verboseInfo);
5819
+ if (isVerbose) logIpcOutput(message, verboseInfo);
5977
5820
  }
5978
5821
  return ipcOutput;
5979
5822
  };
@@ -5981,10 +5824,9 @@ const getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
5981
5824
  await Promise.allSettled([ipcOutputPromise]);
5982
5825
  return ipcOutput;
5983
5826
  };
5984
-
5985
5827
  //#endregion
5986
5828
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-subprocess.js
5987
- const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline: stripFinalNewline$1, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
5829
+ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
5988
5830
  const exitPromise = waitForExit(subprocess, context);
5989
5831
  const streamInfo = {
5990
5832
  originalStreams,
@@ -5999,7 +5841,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
5999
5841
  buffer,
6000
5842
  maxBuffer,
6001
5843
  lines,
6002
- stripFinalNewline: stripFinalNewline$1,
5844
+ stripFinalNewline,
6003
5845
  verboseInfo,
6004
5846
  streamInfo
6005
5847
  });
@@ -6009,7 +5851,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
6009
5851
  buffer,
6010
5852
  maxBuffer,
6011
5853
  lines,
6012
- stripFinalNewline: stripFinalNewline$1,
5854
+ stripFinalNewline,
6013
5855
  verboseInfo,
6014
5856
  streamInfo
6015
5857
  });
@@ -6077,7 +5919,6 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
6077
5919
  const [error] = await (0, node_events.once)(subprocess, "error", { signal });
6078
5920
  throw error;
6079
5921
  };
6080
-
6081
5922
  //#endregion
6082
5923
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
6083
5924
  const initializeConcurrentStreams = () => ({
@@ -6101,7 +5942,6 @@ const waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
6101
5942
  const [isSubprocessExit] = await Promise.race([Promise.allSettled([true, subprocess]), Promise.all([false, ...promises])]);
6102
5943
  return !isSubprocessExit;
6103
5944
  };
6104
-
6105
5945
  //#endregion
6106
5946
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/shared.js
6107
5947
  const safeWaitForSubprocessStdin = async (subprocessStdin) => {
@@ -6138,7 +5978,6 @@ const destroyOtherStream = (stream, isOpen, error) => {
6138
5978
  if (error && !isStreamAbort(error)) stream.destroy(error);
6139
5979
  else if (isOpen) stream.destroy();
6140
5980
  };
6141
-
6142
5981
  //#endregion
6143
5982
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/readable.js
6144
5983
  const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -6152,7 +5991,7 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
6152
5991
  encoding,
6153
5992
  preserveNewlines
6154
5993
  });
6155
- const readable$1 = new node_stream.Readable({
5994
+ const readable = new node_stream.Readable({
6156
5995
  read,
6157
5996
  destroy: (0, node_util.callbackify)(onReadableDestroy.bind(void 0, {
6158
5997
  subprocessStdout,
@@ -6166,10 +6005,10 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
6166
6005
  onStdoutFinished({
6167
6006
  subprocessStdout,
6168
6007
  onStdoutDataDone,
6169
- readable: readable$1,
6008
+ readable,
6170
6009
  subprocess
6171
6010
  });
6172
- return readable$1;
6011
+ return readable;
6173
6012
  };
6174
6013
  const getSubprocessStdout = (subprocess, from, concurrentStreams) => {
6175
6014
  const subprocessStdout = getFromStream(subprocess, from);
@@ -6204,23 +6043,23 @@ const getReadableMethods = ({ subprocessStdout, subprocess, binary, encoding, pr
6204
6043
  onStdoutDataDone
6205
6044
  };
6206
6045
  };
6207
- const onRead = async (readable$1, onStdoutData, onStdoutDataDone) => {
6046
+ const onRead = async (readable, onStdoutData, onStdoutDataDone) => {
6208
6047
  try {
6209
6048
  const { value, done } = await onStdoutData.next();
6210
6049
  if (done) onStdoutDataDone.resolve();
6211
- else readable$1.push(value);
6050
+ else readable.push(value);
6212
6051
  } catch {}
6213
6052
  };
6214
- const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable: readable$1, subprocess, subprocessStdin }) => {
6053
+ const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable, subprocess, subprocessStdin }) => {
6215
6054
  try {
6216
6055
  await waitForSubprocessStdout(subprocessStdout);
6217
6056
  await subprocess;
6218
6057
  await safeWaitForSubprocessStdin(subprocessStdin);
6219
6058
  await onStdoutDataDone;
6220
- if (readable$1.readable) readable$1.push(null);
6059
+ if (readable.readable) readable.push(null);
6221
6060
  } catch (error) {
6222
6061
  await safeWaitForSubprocessStdin(subprocessStdin);
6223
- destroyOtherReadable(readable$1, error);
6062
+ destroyOtherReadable(readable, error);
6224
6063
  }
6225
6064
  };
6226
6065
  const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDestroy }, error) => {
@@ -6232,12 +6071,11 @@ const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDes
6232
6071
  const destroyOtherReadable = (stream, error) => {
6233
6072
  destroyOtherStream(stream, stream.readable, error);
6234
6073
  };
6235
-
6236
6074
  //#endregion
6237
6075
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/writable.js
6238
6076
  const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
6239
6077
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
6240
- const writable$1 = new node_stream.Writable({
6078
+ const writable = new node_stream.Writable({
6241
6079
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
6242
6080
  destroy: (0, node_util.callbackify)(onWritableDestroy.bind(void 0, {
6243
6081
  subprocessStdin,
@@ -6248,8 +6086,8 @@ const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
6248
6086
  highWaterMark: subprocessStdin.writableHighWaterMark,
6249
6087
  objectMode: subprocessStdin.writableObjectMode
6250
6088
  });
6251
- onStdinFinished(subprocessStdin, writable$1);
6252
- return writable$1;
6089
+ onStdinFinished(subprocessStdin, writable);
6090
+ return writable;
6253
6091
  };
6254
6092
  const getSubprocessStdin = (subprocess, to, concurrentStreams) => {
6255
6093
  const subprocessStdin = getToStream(subprocess, to);
@@ -6273,13 +6111,13 @@ const onWritableFinal = async (subprocessStdin, subprocess, waitWritableFinal) =
6273
6111
  await subprocess;
6274
6112
  }
6275
6113
  };
6276
- const onStdinFinished = async (subprocessStdin, writable$1, subprocessStdout) => {
6114
+ const onStdinFinished = async (subprocessStdin, writable, subprocessStdout) => {
6277
6115
  try {
6278
6116
  await waitForSubprocessStdin(subprocessStdin);
6279
- if (writable$1.writable) writable$1.end();
6117
+ if (writable.writable) writable.end();
6280
6118
  } catch (error) {
6281
6119
  await safeWaitForSubprocessStdout(subprocessStdout);
6282
- destroyOtherWritable(writable$1, error);
6120
+ destroyOtherWritable(writable, error);
6283
6121
  }
6284
6122
  };
6285
6123
  const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFinal, waitWritableDestroy }, error) => {
@@ -6292,7 +6130,6 @@ const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFina
6292
6130
  const destroyOtherWritable = (stream, error) => {
6293
6131
  destroyOtherStream(stream, stream.writable, error);
6294
6132
  };
6295
-
6296
6133
  //#endregion
6297
6134
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/duplex.js
6298
6135
  const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -6307,7 +6144,7 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
6307
6144
  encoding,
6308
6145
  preserveNewlines
6309
6146
  });
6310
- const duplex$1 = new node_stream.Duplex({
6147
+ const duplex = new node_stream.Duplex({
6311
6148
  read,
6312
6149
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
6313
6150
  destroy: (0, node_util.callbackify)(onDuplexDestroy.bind(void 0, {
@@ -6327,12 +6164,12 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
6327
6164
  onStdoutFinished({
6328
6165
  subprocessStdout,
6329
6166
  onStdoutDataDone,
6330
- readable: duplex$1,
6167
+ readable: duplex,
6331
6168
  subprocess,
6332
6169
  subprocessStdin
6333
6170
  });
6334
- onStdinFinished(subprocessStdin, duplex$1, subprocessStdout);
6335
- return duplex$1;
6171
+ onStdinFinished(subprocessStdin, duplex, subprocessStdout);
6172
+ return duplex;
6336
6173
  };
6337
6174
  const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, waitReadableDestroy, waitWritableFinal, waitWritableDestroy }, error) => {
6338
6175
  await Promise.all([onReadableDestroy({
@@ -6346,7 +6183,6 @@ const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess,
6346
6183
  waitWritableDestroy
6347
6184
  }, error)]);
6348
6185
  };
6349
-
6350
6186
  //#endregion
6351
6187
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/iterable.js
6352
6188
  const createIterable = (subprocess, encoding, { from, binary: binaryOption = false, preserveNewlines = false } = {}) => {
@@ -6369,7 +6205,6 @@ const iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, sub
6369
6205
  await subprocess;
6370
6206
  }
6371
6207
  };
6372
-
6373
6208
  //#endregion
6374
6209
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/add.js
6375
6210
  const addConvertedStreams = (subprocess, { encoding }) => {
@@ -6391,7 +6226,6 @@ const addConvertedStreams = (subprocess, { encoding }) => {
6391
6226
  subprocess.iterable = createIterable.bind(void 0, subprocess, encoding);
6392
6227
  subprocess[Symbol.asyncIterator] = createIterable.bind(void 0, subprocess, encoding, {});
6393
6228
  };
6394
-
6395
6229
  //#endregion
6396
6230
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/promise.js
6397
6231
  const mergePromise = (subprocess, promise) => {
@@ -6409,7 +6243,6 @@ const descriptors = [
6409
6243
  "catch",
6410
6244
  "finally"
6411
6245
  ].map((property) => [property, Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)]);
6412
-
6413
6246
  //#endregion
6414
6247
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js
6415
6248
  const execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
@@ -6452,7 +6285,7 @@ const handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
6452
6285
  fileDescriptors: handleStdioAsync(options, verboseInfo)
6453
6286
  };
6454
6287
  };
6455
- const handleAsyncOptions = ({ timeout, signal,...options }) => {
6288
+ const handleAsyncOptions = ({ timeout, signal, ...options }) => {
6456
6289
  if (signal !== void 0) throw new TypeError("The \"signal\" option has been renamed to \"cancelSignal\" instead.");
6457
6290
  return {
6458
6291
  ...options,
@@ -6562,7 +6395,6 @@ const getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, co
6562
6395
  options,
6563
6396
  startTime
6564
6397
  });
6565
-
6566
6398
  //#endregion
6567
6399
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/bind.js
6568
6400
  const mergeOptions = (boundOptions, options) => {
@@ -6580,11 +6412,10 @@ const mergeOption = (optionName, boundOptionValue, optionValue) => {
6580
6412
  return optionValue;
6581
6413
  };
6582
6414
  const DEEP_OPTIONS = new Set(["env", ...FD_SPECIFIC_OPTIONS]);
6583
-
6584
6415
  //#endregion
6585
6416
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/create.js
6586
6417
  const createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
6587
- const createNested = (mapArguments$1, boundOptions$1, setBoundExeca$1) => createExeca(mapArguments$1, boundOptions$1, deepOptions, setBoundExeca$1);
6418
+ const createNested = (mapArguments, boundOptions, setBoundExeca) => createExeca(mapArguments, boundOptions, deepOptions, setBoundExeca);
6588
6419
  const boundExeca = (...execaArguments) => callBoundExeca({
6589
6420
  mapArguments,
6590
6421
  deepOptions,
@@ -6621,7 +6452,6 @@ const parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOption
6621
6452
  isSync
6622
6453
  };
6623
6454
  };
6624
-
6625
6455
  //#endregion
6626
6456
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/command.js
6627
6457
  const mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
@@ -6650,7 +6480,6 @@ const parseCommandString = (command) => {
6650
6480
  return tokens;
6651
6481
  };
6652
6482
  const SPACES_REGEXP = / +/g;
6653
-
6654
6483
  //#endregion
6655
6484
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/script.js
6656
6485
  const setScriptSync = (boundExeca, createNested, boundOptions) => {
@@ -6668,21 +6497,19 @@ const getScriptOptions = (options) => ({ options: {
6668
6497
  } });
6669
6498
  const getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
6670
6499
  const deepScriptOptions = { preferLocal: true };
6671
-
6672
6500
  //#endregion
6673
6501
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/index.js
6674
6502
  const execa = createExeca(() => ({}));
6675
- const execaSync = createExeca(() => ({ isSync: true }));
6676
- const execaCommand = createExeca(mapCommandAsync);
6677
- const execaCommandSync = createExeca(mapCommandSync);
6678
- const execaNode = createExeca(mapNode);
6679
- const $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6503
+ createExeca(() => ({ isSync: true }));
6504
+ createExeca(mapCommandAsync);
6505
+ createExeca(mapCommandSync);
6506
+ createExeca(mapNode);
6507
+ createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6680
6508
  const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcExport();
6681
-
6682
6509
  //#endregion
6683
6510
  //#region src/utils/createWrangler.ts
6684
6511
  const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
6685
- const $$1 = execa({
6512
+ const $ = execa({
6686
6513
  stdio,
6687
6514
  extendsEnv: true,
6688
6515
  shell: stdio === "inherit",
@@ -6692,12 +6519,11 @@ const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
6692
6519
  CLOUDFLARE_API_TOKEN: cloudflareApiToken
6693
6520
  }
6694
6521
  });
6695
- return (...command) => $$1("npx", ["wrangler", ...command]);
6522
+ return (...command) => $("npx", ["wrangler", ...command]);
6696
6523
  };
6697
-
6698
6524
  //#endregion
6699
6525
  //#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/parser.js
6700
- var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/parser.js": ((exports, module) => {
6526
+ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6701
6527
  module.exports = (function() {
6702
6528
  function peg$subclass(child, parent) {
6703
6529
  function ctor() {
@@ -6716,7 +6542,7 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
6716
6542
  this.name = "SyntaxError";
6717
6543
  }
6718
6544
  peg$subclass(SyntaxError, Error);
6719
- function parse$2(input) {
6545
+ function parse(input) {
6720
6546
  var options = arguments.length > 1 ? arguments[1] : {}, peg$FAILED = {}, peg$startRuleFunctions = { start: peg$parsestart }, peg$startRuleFunction = peg$parsestart, peg$c1 = function() {
6721
6547
  return nodes;
6722
6548
  }, peg$c2 = peg$FAILED, peg$c3 = "#", peg$c4 = {
@@ -6756,8 +6582,8 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
6756
6582
  addNode(node("Assign", value, line, column, key));
6757
6583
  }, peg$c21 = function(chars) {
6758
6584
  return chars.join("");
6759
- }, peg$c22 = function(node$1) {
6760
- return node$1.value;
6585
+ }, peg$c22 = function(node) {
6586
+ return node.value;
6761
6587
  }, peg$c23 = "\"\"\"", peg$c24 = {
6762
6588
  type: "literal",
6763
6589
  value: "\"\"\"",
@@ -6973,9 +6799,9 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
6973
6799
  }
6974
6800
  function peg$computePosDetails(pos) {
6975
6801
  function advance(details, startPos, endPos) {
6976
- var p$1, ch;
6977
- for (p$1 = startPos; p$1 < endPos; p$1++) {
6978
- ch = input.charAt(p$1);
6802
+ var p, ch;
6803
+ for (p = startPos; p < endPos; p++) {
6804
+ ch = input.charAt(p);
6979
6805
  if (ch === "\n") {
6980
6806
  if (!details.seenCR) details.line++;
6981
6807
  details.column = 1;
@@ -7013,17 +6839,17 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
7013
6839
  peg$maxFailExpected.push(expected);
7014
6840
  }
7015
6841
  function peg$buildException(message, expected, pos) {
7016
- function cleanupExpected(expected$1) {
7017
- var i$1 = 1;
7018
- expected$1.sort(function(a$1, b) {
7019
- if (a$1.description < b.description) return -1;
7020
- else if (a$1.description > b.description) return 1;
6842
+ function cleanupExpected(expected) {
6843
+ var i = 1;
6844
+ expected.sort(function(a, b) {
6845
+ if (a.description < b.description) return -1;
6846
+ else if (a.description > b.description) return 1;
7021
6847
  else return 0;
7022
6848
  });
7023
- while (i$1 < expected$1.length) if (expected$1[i$1 - 1] === expected$1[i$1]) expected$1.splice(i$1, 1);
7024
- else i$1++;
6849
+ while (i < expected.length) if (expected[i - 1] === expected[i]) expected.splice(i, 1);
6850
+ else i++;
7025
6851
  }
7026
- function buildMessage(expected$1, found$1) {
6852
+ function buildMessage(expected, found) {
7027
6853
  function stringEscape(s) {
7028
6854
  function hex(ch) {
7029
6855
  return ch.charCodeAt(0).toString(16).toUpperCase();
@@ -7038,10 +6864,10 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
7038
6864
  return "\\u" + hex(ch);
7039
6865
  });
7040
6866
  }
7041
- var expectedDescs = new Array(expected$1.length), expectedDesc, foundDesc, i$1;
7042
- for (i$1 = 0; i$1 < expected$1.length; i$1++) expectedDescs[i$1] = expected$1[i$1].description;
7043
- expectedDesc = expected$1.length > 1 ? expectedDescs.slice(0, -1).join(", ") + " or " + expectedDescs[expected$1.length - 1] : expectedDescs[0];
7044
- foundDesc = found$1 ? "\"" + stringEscape(found$1) + "\"" : "end of input";
6867
+ var expectedDescs = new Array(expected.length), expectedDesc, foundDesc, i;
6868
+ for (i = 0; i < expected.length; i++) expectedDescs[i] = expected[i].description;
6869
+ expectedDesc = expected.length > 1 ? expectedDescs.slice(0, -1).join(", ") + " or " + expectedDescs[expected.length - 1] : expectedDescs[0];
6870
+ foundDesc = found ? "\"" + stringEscape(found) + "\"" : "end of input";
7045
6871
  return "Expected " + expectedDesc + " but " + foundDesc + " found.";
7046
6872
  }
7047
6873
  var posDetails = peg$computePosDetails(pos), found = pos < input.length ? input.charAt(pos) : null;
@@ -10268,28 +10094,28 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
10268
10094
  return s0;
10269
10095
  }
10270
10096
  var nodes = [];
10271
- function genError(err, line$1, col) {
10097
+ function genError(err, line, col) {
10272
10098
  var ex = new Error(err);
10273
- ex.line = line$1;
10099
+ ex.line = line;
10274
10100
  ex.column = col;
10275
10101
  throw ex;
10276
10102
  }
10277
- function addNode(node$1) {
10278
- nodes.push(node$1);
10103
+ function addNode(node) {
10104
+ nodes.push(node);
10279
10105
  }
10280
- function node(type, value, line$1, column$1, key) {
10106
+ function node(type, value, line, column, key) {
10281
10107
  var obj = {
10282
10108
  type,
10283
10109
  value,
10284
- line: line$1(),
10285
- column: column$1()
10110
+ line: line(),
10111
+ column: column()
10286
10112
  };
10287
10113
  if (key) obj.key = key;
10288
10114
  return obj;
10289
10115
  }
10290
- function convertCodePoint(str, line$1, col) {
10116
+ function convertCodePoint(str, line, col) {
10291
10117
  var num = parseInt("0x" + str);
10292
- if (!isFinite(num) || Math.floor(num) != num || num < 0 || num > 1114111 || num > 55295 && num < 57344) genError("Invalid Unicode escape code: " + str, line$1, col);
10118
+ if (!isFinite(num) || Math.floor(num) != num || num < 0 || num > 1114111 || num > 55295 && num < 57344) genError("Invalid Unicode escape code: " + str, line, col);
10293
10119
  else return fromCodePoint(num);
10294
10120
  }
10295
10121
  function fromCodePoint() {
@@ -10329,14 +10155,13 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
10329
10155
  }
10330
10156
  return {
10331
10157
  SyntaxError,
10332
- parse: parse$2
10158
+ parse
10333
10159
  };
10334
10160
  })();
10335
- }) });
10336
-
10161
+ }));
10337
10162
  //#endregion
10338
10163
  //#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/compiler.js
10339
- var require_compiler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/compiler.js": ((exports, module) => {
10164
+ var require_compiler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10340
10165
  function compile(nodes) {
10341
10166
  var assignedPaths = [];
10342
10167
  var valueAssignments = [];
@@ -10344,10 +10169,10 @@ var require_compiler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/to
10344
10169
  var data = Object.create(null);
10345
10170
  var context = data;
10346
10171
  return reduce(nodes);
10347
- function reduce(nodes$1) {
10172
+ function reduce(nodes) {
10348
10173
  var node;
10349
- for (var i$1 = 0; i$1 < nodes$1.length; i$1++) {
10350
- node = nodes$1[i$1];
10174
+ for (var i = 0; i < nodes.length; i++) {
10175
+ node = nodes[i];
10351
10176
  switch (node.type) {
10352
10177
  case "Assign":
10353
10178
  assign(node);
@@ -10383,8 +10208,8 @@ var require_compiler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/to
10383
10208
  valueAssignments.push(fullPath);
10384
10209
  }
10385
10210
  }
10386
- function pathAssigned(path$14) {
10387
- return assignedPaths.indexOf(path$14) !== -1;
10211
+ function pathAssigned(path) {
10212
+ return assignedPaths.indexOf(path) !== -1;
10388
10213
  }
10389
10214
  function reduceValueNode(node) {
10390
10215
  if (node.type === "Array") return reduceArrayWithTypeChecking(node.value);
@@ -10393,62 +10218,62 @@ var require_compiler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/to
10393
10218
  }
10394
10219
  function reduceInlineTableNode(values) {
10395
10220
  var obj = Object.create(null);
10396
- for (var i$1 = 0; i$1 < values.length; i$1++) {
10397
- var val = values[i$1];
10221
+ for (var i = 0; i < values.length; i++) {
10222
+ var val = values[i];
10398
10223
  if (val.value.type === "InlineTable") obj[val.key] = reduceInlineTableNode(val.value.value);
10399
10224
  else if (val.type === "InlineTableValue") obj[val.key] = reduceValueNode(val.value);
10400
10225
  }
10401
10226
  return obj;
10402
10227
  }
10403
10228
  function setPath(node) {
10404
- var path$14 = node.value;
10405
- var quotedPath = path$14.map(quoteDottedString).join(".");
10229
+ var path = node.value;
10230
+ var quotedPath = path.map(quoteDottedString).join(".");
10406
10231
  var line = node.line;
10407
10232
  var column = node.column;
10408
- if (pathAssigned(quotedPath)) genError("Cannot redefine existing key '" + path$14 + "'.", line, column);
10233
+ if (pathAssigned(quotedPath)) genError("Cannot redefine existing key '" + path + "'.", line, column);
10409
10234
  assignedPaths.push(quotedPath);
10410
- context = deepRef(data, path$14, Object.create(null), line, column);
10411
- currentPath = path$14;
10235
+ context = deepRef(data, path, Object.create(null), line, column);
10236
+ currentPath = path;
10412
10237
  }
10413
10238
  function addTableArray(node) {
10414
- var path$14 = node.value;
10415
- var quotedPath = path$14.map(quoteDottedString).join(".");
10239
+ var path = node.value;
10240
+ var quotedPath = path.map(quoteDottedString).join(".");
10416
10241
  var line = node.line;
10417
10242
  var column = node.column;
10418
10243
  if (!pathAssigned(quotedPath)) assignedPaths.push(quotedPath);
10419
- assignedPaths = assignedPaths.filter(function(p$1) {
10420
- return p$1.indexOf(quotedPath) !== 0;
10244
+ assignedPaths = assignedPaths.filter(function(p) {
10245
+ return p.indexOf(quotedPath) !== 0;
10421
10246
  });
10422
10247
  assignedPaths.push(quotedPath);
10423
- context = deepRef(data, path$14, [], line, column);
10248
+ context = deepRef(data, path, [], line, column);
10424
10249
  currentPath = quotedPath;
10425
10250
  if (context instanceof Array) {
10426
10251
  var newObj = Object.create(null);
10427
10252
  context.push(newObj);
10428
10253
  context = newObj;
10429
- } else genError("Cannot redefine existing key '" + path$14 + "'.", line, column);
10254
+ } else genError("Cannot redefine existing key '" + path + "'.", line, column);
10430
10255
  }
10431
10256
  function deepRef(start, keys, value, line, column) {
10432
10257
  var traversed = [];
10433
10258
  var traversedPath = "";
10434
10259
  keys.join(".");
10435
10260
  var ctx = start;
10436
- for (var i$1 = 0; i$1 < keys.length; i$1++) {
10437
- var key = keys[i$1];
10261
+ for (var i = 0; i < keys.length; i++) {
10262
+ var key = keys[i];
10438
10263
  traversed.push(key);
10439
10264
  traversedPath = traversed.join(".");
10440
- if (typeof ctx[key] === "undefined") if (i$1 === keys.length - 1) ctx[key] = value;
10265
+ if (typeof ctx[key] === "undefined") if (i === keys.length - 1) ctx[key] = value;
10441
10266
  else ctx[key] = Object.create(null);
10442
- else if (i$1 !== keys.length - 1 && valueAssignments.indexOf(traversedPath) > -1) genError("Cannot redefine existing key '" + traversedPath + "'.", line, column);
10267
+ else if (i !== keys.length - 1 && valueAssignments.indexOf(traversedPath) > -1) genError("Cannot redefine existing key '" + traversedPath + "'.", line, column);
10443
10268
  ctx = ctx[key];
10444
- if (ctx instanceof Array && ctx.length && i$1 < keys.length - 1) ctx = ctx[ctx.length - 1];
10269
+ if (ctx instanceof Array && ctx.length && i < keys.length - 1) ctx = ctx[ctx.length - 1];
10445
10270
  }
10446
10271
  return ctx;
10447
10272
  }
10448
10273
  function reduceArrayWithTypeChecking(array) {
10449
10274
  var firstType = null;
10450
- for (var i$1 = 0; i$1 < array.length; i$1++) {
10451
- var node = array[i$1];
10275
+ for (var i = 0; i < array.length; i++) {
10276
+ var node = array[i];
10452
10277
  if (firstType === null) firstType = node.type;
10453
10278
  else if (node.type !== firstType) genError("Cannot add value of type " + node.type + " to array of type " + firstType + ".", node.line, node.column);
10454
10279
  }
@@ -10460,23 +10285,22 @@ var require_compiler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/to
10460
10285
  }
10461
10286
  }
10462
10287
  module.exports = { compile };
10463
- }) });
10464
-
10288
+ }));
10465
10289
  //#endregion
10466
10290
  //#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/index.js
10467
- var require_toml = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/index.js": ((exports, module) => {
10291
+ var require_toml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10468
10292
  var parser = require_parser();
10469
10293
  var compiler = require_compiler();
10470
10294
  module.exports = { parse: function(input) {
10471
10295
  var nodes = parser.parse(input.toString());
10472
10296
  return compiler.compile(nodes);
10473
10297
  } };
10474
- }) });
10475
-
10298
+ }));
10476
10299
  //#endregion
10477
10300
  //#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js
10478
- var require_XDGAppPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js": ((exports) => {
10301
+ var require_XDGAppPaths = /* @__PURE__ */ __commonJSMin(((exports) => {
10479
10302
  exports.__esModule = true;
10303
+ exports.Adapt = void 0;
10480
10304
  function isBoolean(t) {
10481
10305
  return typeOf(t) === "boolean";
10482
10306
  }
@@ -10489,15 +10313,15 @@ var require_XDGAppPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
10489
10313
  function typeOf(t) {
10490
10314
  return typeof t;
10491
10315
  }
10492
- function Adapt$2(adapter_) {
10493
- var meta = adapter_.meta, path$14 = adapter_.path, xdg = adapter_.xdg;
10316
+ function Adapt(adapter_) {
10317
+ var meta = adapter_.meta, path = adapter_.path, xdg = adapter_.xdg;
10494
10318
  return { XDGAppPaths: new (function() {
10495
10319
  function XDGAppPaths_(options_) {
10496
10320
  if (options_ === void 0) options_ = {};
10497
10321
  var _a, _b, _c;
10498
- function XDGAppPaths(options$1) {
10499
- if (options$1 === void 0) options$1 = {};
10500
- return new XDGAppPaths_(options$1);
10322
+ function XDGAppPaths(options) {
10323
+ if (options === void 0) options = {};
10324
+ return new XDGAppPaths_(options);
10501
10325
  }
10502
10326
  var options = isObject(options_) ? options_ : { name: options_ };
10503
10327
  var suffix = (_a = options.suffix) !== null && _a !== void 0 ? _a : "";
@@ -10507,7 +10331,7 @@ var require_XDGAppPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
10507
10331
  meta.pkgMainFilename(),
10508
10332
  meta.mainFilename()
10509
10333
  ];
10510
- var name = path$14.parse(((_c = namePriorityList.find(function(e) {
10334
+ var name = path.parse(((_c = namePriorityList.find(function(e) {
10511
10335
  return isString(e);
10512
10336
  })) !== null && _c !== void 0 ? _c : "$eval") + suffix).name;
10513
10337
  XDGAppPaths.$name = function $name() {
@@ -10517,36 +10341,36 @@ var require_XDGAppPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
10517
10341
  return isolated_;
10518
10342
  };
10519
10343
  function isIsolated(dirOptions) {
10520
- var _a$1;
10344
+ var _a;
10521
10345
  dirOptions = dirOptions !== null && dirOptions !== void 0 ? dirOptions : { isolated: isolated_ };
10522
- return isBoolean(dirOptions) ? dirOptions : (_a$1 = dirOptions.isolated) !== null && _a$1 !== void 0 ? _a$1 : isolated_;
10346
+ return isBoolean(dirOptions) ? dirOptions : (_a = dirOptions.isolated) !== null && _a !== void 0 ? _a : isolated_;
10523
10347
  }
10524
10348
  function finalPathSegment(dirOptions) {
10525
10349
  return isIsolated(dirOptions) ? name : "";
10526
10350
  }
10527
10351
  XDGAppPaths.cache = function cache(dirOptions) {
10528
- return path$14.join(xdg.cache(), finalPathSegment(dirOptions));
10352
+ return path.join(xdg.cache(), finalPathSegment(dirOptions));
10529
10353
  };
10530
10354
  XDGAppPaths.config = function config(dirOptions) {
10531
- return path$14.join(xdg.config(), finalPathSegment(dirOptions));
10355
+ return path.join(xdg.config(), finalPathSegment(dirOptions));
10532
10356
  };
10533
10357
  XDGAppPaths.data = function data(dirOptions) {
10534
- return path$14.join(xdg.data(), finalPathSegment(dirOptions));
10358
+ return path.join(xdg.data(), finalPathSegment(dirOptions));
10535
10359
  };
10536
10360
  XDGAppPaths.runtime = function runtime(dirOptions) {
10537
- return xdg.runtime() ? path$14.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
10361
+ return xdg.runtime() ? path.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
10538
10362
  };
10539
10363
  XDGAppPaths.state = function state(dirOptions) {
10540
- return path$14.join(xdg.state(), finalPathSegment(dirOptions));
10364
+ return path.join(xdg.state(), finalPathSegment(dirOptions));
10541
10365
  };
10542
10366
  XDGAppPaths.configDirs = function configDirs(dirOptions) {
10543
10367
  return xdg.configDirs().map(function(s) {
10544
- return path$14.join(s, finalPathSegment(dirOptions));
10368
+ return path.join(s, finalPathSegment(dirOptions));
10545
10369
  });
10546
10370
  };
10547
10371
  XDGAppPaths.dataDirs = function dataDirs(dirOptions) {
10548
10372
  return xdg.dataDirs().map(function(s) {
10549
- return path$14.join(s, finalPathSegment(dirOptions));
10373
+ return path.join(s, finalPathSegment(dirOptions));
10550
10374
  });
10551
10375
  };
10552
10376
  return XDGAppPaths;
@@ -10554,26 +10378,26 @@ var require_XDGAppPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
10554
10378
  return XDGAppPaths_;
10555
10379
  }())() };
10556
10380
  }
10557
- exports.Adapt = Adapt$2;
10558
- }) });
10559
-
10381
+ exports.Adapt = Adapt;
10382
+ }));
10560
10383
  //#endregion
10561
10384
  //#region ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js
10562
- var require_XDG = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js": ((exports) => {
10563
- var __spreadArray$1 = exports && exports.__spreadArray || function(to, from) {
10564
- for (var i$1 = 0, il = from.length, j = to.length; i$1 < il; i$1++, j++) to[j] = from[i$1];
10385
+ var require_XDG = /* @__PURE__ */ __commonJSMin(((exports) => {
10386
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
10387
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
10565
10388
  return to;
10566
10389
  };
10567
10390
  exports.__esModule = true;
10568
- function Adapt$1(adapter_) {
10569
- var env = adapter_.env, osPaths = adapter_.osPaths, path$14 = adapter_.path;
10391
+ exports.Adapt = void 0;
10392
+ function Adapt(adapter_) {
10393
+ var env = adapter_.env, osPaths = adapter_.osPaths, path = adapter_.path;
10570
10394
  var isMacOS = /^darwin$/i.test(adapter_.process.platform);
10571
10395
  var isWinOS = /^win/i.test(adapter_.process.platform);
10572
10396
  function baseDir() {
10573
10397
  return osPaths.home() || osPaths.temp();
10574
10398
  }
10575
10399
  function valOrPath(val, pathSegments) {
10576
- return val || path$14.join.apply(path$14, pathSegments);
10400
+ return val || path.join.apply(path, pathSegments);
10577
10401
  }
10578
10402
  var linux = function() {
10579
10403
  var cache = function() {
@@ -10698,47 +10522,47 @@ var require_XDG = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-por
10698
10522
  XDG.state = extension.state;
10699
10523
  XDG.configDirs = function configDirs() {
10700
10524
  var pathList = env.get("XDG_CONFIG_DIRS");
10701
- return __spreadArray$1([extension.config()], pathList ? pathList.split(path$14.delimiter) : []);
10525
+ return __spreadArray([extension.config()], pathList ? pathList.split(path.delimiter) : []);
10702
10526
  };
10703
10527
  XDG.dataDirs = function dataDirs() {
10704
10528
  var pathList = env.get("XDG_DATA_DIRS");
10705
- return __spreadArray$1([extension.data()], pathList ? pathList.split(path$14.delimiter) : []);
10529
+ return __spreadArray([extension.data()], pathList ? pathList.split(path.delimiter) : []);
10706
10530
  };
10707
10531
  return XDG;
10708
10532
  }
10709
10533
  return XDG_;
10710
10534
  }())() };
10711
10535
  }
10712
- exports.Adapt = Adapt$1;
10713
- }) });
10714
-
10536
+ exports.Adapt = Adapt;
10537
+ }));
10715
10538
  //#endregion
10716
10539
  //#region ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js
10717
- var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js": ((exports) => {
10540
+ var require_OSPaths = /* @__PURE__ */ __commonJSMin(((exports) => {
10718
10541
  var __spreadArray = exports && exports.__spreadArray || function(to, from) {
10719
- for (var i$1 = 0, il = from.length, j = to.length; i$1 < il; i$1++, j++) to[j] = from[i$1];
10542
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
10720
10543
  return to;
10721
10544
  };
10722
10545
  exports.__esModule = true;
10546
+ exports.Adapt = void 0;
10723
10547
  function isEmpty(s) {
10724
10548
  return !s;
10725
10549
  }
10726
10550
  function Adapt(adapter_) {
10727
- var env = adapter_.env, os$3 = adapter_.os, path$14 = adapter_.path;
10551
+ var env = adapter_.env, os = adapter_.os, path = adapter_.path;
10728
10552
  var isWinOS = /^win/i.test(adapter_.process.platform);
10729
10553
  function normalizePath(path_) {
10730
10554
  return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
10731
10555
  }
10732
10556
  function home() {
10733
10557
  var posix = function() {
10734
- return normalizePath((typeof os$3.homedir === "function" ? os$3.homedir() : void 0) || env.get("HOME"));
10558
+ return normalizePath((typeof os.homedir === "function" ? os.homedir() : void 0) || env.get("HOME"));
10735
10559
  };
10736
10560
  var windows = function() {
10737
10561
  return normalizePath([
10738
- typeof os$3.homedir === "function" ? os$3.homedir() : void 0,
10562
+ typeof os.homedir === "function" ? os.homedir() : void 0,
10739
10563
  env.get("USERPROFILE"),
10740
10564
  env.get("HOME"),
10741
- env.get("HOMEDRIVE") || env.get("HOMEPATH") ? path$14.join(env.get("HOMEDRIVE") || "", env.get("HOMEPATH") || "") : void 0
10565
+ env.get("HOMEDRIVE") || env.get("HOMEPATH") ? path.join(env.get("HOMEDRIVE") || "", env.get("HOMEPATH") || "") : void 0
10742
10566
  ].find(function(v) {
10743
10567
  return !isEmpty(v);
10744
10568
  }));
@@ -10747,11 +10571,11 @@ var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-
10747
10571
  }
10748
10572
  function temp() {
10749
10573
  function joinPathToBase(base, segments) {
10750
- return base ? path$14.join.apply(path$14, __spreadArray([base], segments)) : void 0;
10574
+ return base ? path.join.apply(path, __spreadArray([base], segments)) : void 0;
10751
10575
  }
10752
10576
  function posix() {
10753
10577
  return normalizePath([
10754
- typeof os$3.tmpdir === "function" ? os$3.tmpdir() : void 0,
10578
+ typeof os.tmpdir === "function" ? os.tmpdir() : void 0,
10755
10579
  env.get("TMPDIR"),
10756
10580
  env.get("TEMP"),
10757
10581
  env.get("TMP")
@@ -10762,7 +10586,7 @@ var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-
10762
10586
  function windows() {
10763
10587
  var fallback = "C:\\Temp";
10764
10588
  var v = [
10765
- typeof os$3.tmpdir === "function" ? os$3.tmpdir : function() {},
10589
+ typeof os.tmpdir === "function" ? os.tmpdir : function() {},
10766
10590
  function() {
10767
10591
  return env.get("TEMP");
10768
10592
  },
@@ -10791,8 +10615,8 @@ var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-
10791
10615
  function() {
10792
10616
  return joinPathToBase(env.get("SystemDrive"), ["\\", "Temp"]);
10793
10617
  }
10794
- ].find(function(v$1) {
10795
- return v$1 && !isEmpty(v$1());
10618
+ ].find(function(v) {
10619
+ return v && !isEmpty(v());
10796
10620
  });
10797
10621
  return v && normalizePath(v()) || fallback;
10798
10622
  }
@@ -10811,141 +10635,135 @@ var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-
10811
10635
  }())() };
10812
10636
  }
10813
10637
  exports.Adapt = Adapt;
10814
- }) });
10815
-
10638
+ }));
10816
10639
  //#endregion
10817
10640
  //#region ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js
10818
- var require_node$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js": ((exports) => {
10819
- var __createBinding$2 = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
10641
+ var require_node$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
10642
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
10820
10643
  if (k2 === void 0) k2 = k;
10821
- Object.defineProperty(o$1, k2, {
10644
+ Object.defineProperty(o, k2, {
10822
10645
  enumerable: true,
10823
10646
  get: function() {
10824
10647
  return m[k];
10825
10648
  }
10826
10649
  });
10827
- }) : (function(o$1, m, k, k2) {
10650
+ }) : (function(o, m, k, k2) {
10828
10651
  if (k2 === void 0) k2 = k;
10829
- o$1[k2] = m[k];
10652
+ o[k2] = m[k];
10830
10653
  }));
10831
- var __setModuleDefault$2 = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
10832
- Object.defineProperty(o$1, "default", {
10654
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
10655
+ Object.defineProperty(o, "default", {
10833
10656
  enumerable: true,
10834
10657
  value: v
10835
10658
  });
10836
- }) : function(o$1, v) {
10837
- o$1["default"] = v;
10659
+ }) : function(o, v) {
10660
+ o["default"] = v;
10838
10661
  });
10839
- var __importStar$2 = exports && exports.__importStar || function(mod) {
10662
+ var __importStar = exports && exports.__importStar || function(mod) {
10840
10663
  if (mod && mod.__esModule) return mod;
10841
10664
  var result = {};
10842
10665
  if (mod != null) {
10843
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$2(result, mod, k);
10666
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
10844
10667
  }
10845
- __setModuleDefault$2(result, mod);
10668
+ __setModuleDefault(result, mod);
10846
10669
  return result;
10847
10670
  };
10848
10671
  exports.__esModule = true;
10849
- var os$2 = __importStar$2(require("os"));
10850
- var path$5 = __importStar$2(require("path"));
10672
+ exports.adapter = void 0;
10851
10673
  exports.adapter = {
10852
10674
  atImportPermissions: { env: true },
10853
10675
  env: { get: function(s) {
10854
10676
  return process.env[s];
10855
10677
  } },
10856
- os: os$2,
10857
- path: path$5,
10678
+ os: __importStar(require("os")),
10679
+ path: __importStar(require("path")),
10858
10680
  process
10859
10681
  };
10860
- }) });
10861
-
10682
+ }));
10862
10683
  //#endregion
10863
10684
  //#region ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js
10864
- var require_mod_cjs$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js": ((exports, module) => {
10685
+ var require_mod_cjs$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10865
10686
  var OSPaths_js_1 = require_OSPaths();
10866
- var node_js_1$2 = require_node$2();
10867
- module.exports = OSPaths_js_1.Adapt(node_js_1$2.adapter).OSPaths;
10868
- }) });
10869
-
10687
+ var node_js_1 = require_node$2();
10688
+ module.exports = OSPaths_js_1.Adapt(node_js_1.adapter).OSPaths;
10689
+ }));
10870
10690
  //#endregion
10871
10691
  //#region ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js
10872
- var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js": ((exports) => {
10873
- var __createBinding$1 = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
10692
+ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
10693
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
10874
10694
  if (k2 === void 0) k2 = k;
10875
- Object.defineProperty(o$1, k2, {
10695
+ Object.defineProperty(o, k2, {
10876
10696
  enumerable: true,
10877
10697
  get: function() {
10878
10698
  return m[k];
10879
10699
  }
10880
10700
  });
10881
- }) : (function(o$1, m, k, k2) {
10701
+ }) : (function(o, m, k, k2) {
10882
10702
  if (k2 === void 0) k2 = k;
10883
- o$1[k2] = m[k];
10703
+ o[k2] = m[k];
10884
10704
  }));
10885
- var __setModuleDefault$1 = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
10886
- Object.defineProperty(o$1, "default", {
10705
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
10706
+ Object.defineProperty(o, "default", {
10887
10707
  enumerable: true,
10888
10708
  value: v
10889
10709
  });
10890
- }) : function(o$1, v) {
10891
- o$1["default"] = v;
10710
+ }) : function(o, v) {
10711
+ o["default"] = v;
10892
10712
  });
10893
- var __importStar$1 = exports && exports.__importStar || function(mod) {
10713
+ var __importStar = exports && exports.__importStar || function(mod) {
10894
10714
  if (mod && mod.__esModule) return mod;
10895
10715
  var result = {};
10896
10716
  if (mod != null) {
10897
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding$1(result, mod, k);
10717
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
10898
10718
  }
10899
- __setModuleDefault$1(result, mod);
10719
+ __setModuleDefault(result, mod);
10900
10720
  return result;
10901
10721
  };
10902
- var __importDefault$1 = exports && exports.__importDefault || function(mod) {
10722
+ var __importDefault = exports && exports.__importDefault || function(mod) {
10903
10723
  return mod && mod.__esModule ? mod : { "default": mod };
10904
10724
  };
10905
10725
  exports.__esModule = true;
10906
- var path$4 = __importStar$1(require("path"));
10907
- var os_paths_1 = __importDefault$1(require_mod_cjs$2());
10726
+ exports.adapter = void 0;
10727
+ var path$4 = __importStar(require("path"));
10908
10728
  exports.adapter = {
10909
10729
  atImportPermissions: { env: true },
10910
10730
  env: { get: function(s) {
10911
10731
  return process.env[s];
10912
10732
  } },
10913
- osPaths: os_paths_1["default"],
10733
+ osPaths: __importDefault(require_mod_cjs$2())["default"],
10914
10734
  path: path$4,
10915
10735
  process
10916
10736
  };
10917
- }) });
10918
-
10737
+ }));
10919
10738
  //#endregion
10920
10739
  //#region ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js
10921
- var require_mod_cjs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js": ((exports, module) => {
10740
+ var require_mod_cjs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10922
10741
  var XDG_js_1 = require_XDG();
10923
- var node_js_1$1 = require_node$1();
10924
- module.exports = XDG_js_1.Adapt(node_js_1$1.adapter).XDG;
10925
- }) });
10926
-
10742
+ var node_js_1 = require_node$1();
10743
+ module.exports = XDG_js_1.Adapt(node_js_1.adapter).XDG;
10744
+ }));
10927
10745
  //#endregion
10928
10746
  //#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js
10929
- var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js": ((exports) => {
10930
- var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o$1, m, k, k2) {
10747
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
10748
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
10931
10749
  if (k2 === void 0) k2 = k;
10932
- Object.defineProperty(o$1, k2, {
10750
+ Object.defineProperty(o, k2, {
10933
10751
  enumerable: true,
10934
10752
  get: function() {
10935
10753
  return m[k];
10936
10754
  }
10937
10755
  });
10938
- }) : (function(o$1, m, k, k2) {
10756
+ }) : (function(o, m, k, k2) {
10939
10757
  if (k2 === void 0) k2 = k;
10940
- o$1[k2] = m[k];
10758
+ o[k2] = m[k];
10941
10759
  }));
10942
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o$1, v) {
10943
- Object.defineProperty(o$1, "default", {
10760
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
10761
+ Object.defineProperty(o, "default", {
10944
10762
  enumerable: true,
10945
10763
  value: v
10946
10764
  });
10947
- }) : function(o$1, v) {
10948
- o$1["default"] = v;
10765
+ }) : function(o, v) {
10766
+ o["default"] = v;
10949
10767
  });
10950
10768
  var __importStar = exports && exports.__importStar || function(mod) {
10951
10769
  if (mod && mod.__esModule) return mod;
@@ -10960,6 +10778,7 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-ap
10960
10778
  return mod && mod.__esModule ? mod : { "default": mod };
10961
10779
  };
10962
10780
  exports.__esModule = true;
10781
+ exports.adapter = void 0;
10963
10782
  var path$3 = __importStar(require("path"));
10964
10783
  var xdg_portable_1 = __importDefault(require_mod_cjs$1());
10965
10784
  exports.adapter = {
@@ -10980,22 +10799,18 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-ap
10980
10799
  process,
10981
10800
  xdg: xdg_portable_1["default"]
10982
10801
  };
10983
- }) });
10984
-
10802
+ }));
10985
10803
  //#endregion
10986
10804
  //#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js
10987
- var require_mod_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js": ((exports, module) => {
10805
+ var require_mod_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10988
10806
  var XDGAppPaths_js_1 = require_XDGAppPaths();
10989
10807
  var node_js_1 = require_node();
10990
10808
  module.exports = XDGAppPaths_js_1.Adapt(node_js_1.adapter).XDGAppPaths;
10991
- }) });
10992
-
10809
+ }));
10993
10810
  //#endregion
10994
10811
  //#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js
10995
10812
  var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
10996
- var import_mod_cjs = /* @__PURE__ */ __toESM(require_mod_cjs(), 1);
10997
- var mod_esm_default = import_mod_cjs.default;
10998
-
10813
+ var mod_esm_default = (/* @__PURE__ */ __toESM(require_mod_cjs())).default;
10999
10814
  //#endregion
11000
10815
  //#region iac/getWranglerLoginAuthToken.ts
11001
10816
  const isDirectory = (configPath) => {
@@ -11020,11 +10835,10 @@ const getWranglerLoginAuthToken = () => {
11020
10835
  return null;
11021
10836
  }
11022
10837
  };
11023
-
11024
10838
  //#endregion
11025
10839
  //#region iac/index.ts
11026
10840
  const getConfigTemplate = (build) => {
11027
- return new __hot_updater_cli_tools.ConfigBuilder().setBuildType(build).setStorage({
10841
+ return new _hot_updater_cli_tools.ConfigBuilder().setBuildType(build).setStorage({
11028
10842
  imports: [{
11029
10843
  pkg: "@hot-updater/cloudflare",
11030
10844
  named: ["r2Storage"]
@@ -11059,11 +10873,12 @@ export default HotUpdater.wrap({
11059
10873
  updateMode: "auto",
11060
10874
  })(App);`;
11061
10875
  const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseName, r2BucketName }) => {
11062
- const cwd = (0, __hot_updater_cli_tools.getCwd)();
11063
- const workerPath = require.resolve("@hot-updater/cloudflare/worker", { paths: [cwd] });
11064
- const { tmpDir, removeTmpDir } = await (0, __hot_updater_cli_tools.copyDirToTmp)(path.default.dirname(workerPath));
10876
+ const cwd = (0, _hot_updater_cli_tools.getCwd)();
10877
+ const cloudflarePackagePath = require.resolve("@hot-updater/cloudflare/package.json", { paths: [cwd] });
10878
+ const { tmpDir, removeTmpDir } = await (0, _hot_updater_cli_tools.copyDirToTmp)(path.default.dirname(cloudflarePackagePath));
10879
+ const workerRoot = path.default.join(tmpDir, "worker");
11065
10880
  try {
11066
- const wranglerConfig = JSON.parse(await fs_promises.default.readFile(path.default.join(tmpDir, "wrangler.json"), "utf-8"));
10881
+ const wranglerConfig = JSON.parse(await fs_promises.default.readFile(path.default.join(workerRoot, "wrangler.json"), "utf-8"));
11067
10882
  wranglerConfig.d1_databases = [{
11068
10883
  binding: "DB",
11069
10884
  database_id: d1DatabaseId,
@@ -11074,27 +10889,27 @@ const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseNa
11074
10889
  bucket_name: r2BucketName
11075
10890
  }];
11076
10891
  wranglerConfig.vars = { JWT_SECRET: crypto.default.randomBytes(32).toString("hex") };
11077
- await fs_promises.default.writeFile(path.default.join(tmpDir, "wrangler.json"), JSON.stringify(wranglerConfig, null, 2));
10892
+ await fs_promises.default.writeFile(path.default.join(workerRoot, "wrangler.json"), JSON.stringify(wranglerConfig, null, 2));
11078
10893
  const wrangler = await createWrangler({
11079
10894
  stdio: "inherit",
11080
10895
  cloudflareApiToken: oauth_token,
11081
- cwd: tmpDir,
10896
+ cwd: workerRoot,
11082
10897
  accountId
11083
10898
  });
11084
- const migrationPath = await path.default.join(tmpDir, "migrations");
10899
+ const migrationPath = await path.default.join(workerRoot, "migrations");
11085
10900
  const migrationFiles = await fs_promises.default.readdir(migrationPath);
11086
10901
  for (const file of migrationFiles) if (file.endsWith(".sql")) {
11087
10902
  const filePath = path.default.join(migrationPath, file);
11088
10903
  const content = await fs_promises.default.readFile(filePath, "utf-8");
11089
- await fs_promises.default.writeFile(filePath, (0, __hot_updater_cli_tools.transformTemplate)(content, { BUCKET_NAME: r2BucketName }));
10904
+ await fs_promises.default.writeFile(filePath, (0, _hot_updater_cli_tools.transformTemplate)(content, { BUCKET_NAME: r2BucketName }));
11090
10905
  }
11091
10906
  await wrangler("d1", "migrations", "apply", d1DatabaseName, "--remote");
11092
- const workerName = await __hot_updater_cli_tools.p.text({
10907
+ const workerName = await _hot_updater_cli_tools.p.text({
11093
10908
  message: "Enter the name of the worker",
11094
10909
  defaultValue: "hot-updater",
11095
10910
  placeholder: "hot-updater"
11096
10911
  });
11097
- if (__hot_updater_cli_tools.p.isCancel(workerName)) process.exit(1);
10912
+ if (_hot_updater_cli_tools.p.isCancel(workerName)) process.exit(1);
11098
10913
  await wrangler("deploy", "--name", workerName);
11099
10914
  return workerName;
11100
10915
  } catch (error) {
@@ -11104,7 +10919,7 @@ const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseNa
11104
10919
  }
11105
10920
  };
11106
10921
  const runInit = async ({ build }) => {
11107
- const cwd = (0, __hot_updater_cli_tools.getCwd)();
10922
+ const cwd = (0, _hot_updater_cli_tools.getCwd)();
11108
10923
  let auth = getWranglerLoginAuthToken();
11109
10924
  if (!auth || (0, import_dayjs_min.default)(auth?.expiration_time).isBefore((0, import_dayjs_min.default)())) {
11110
10925
  await execa("npx", [
@@ -11124,7 +10939,7 @@ const runInit = async ({ build }) => {
11124
10939
  const createKey = `create/${Math.random().toString(36).substring(2, 15)}`;
11125
10940
  const accounts = [];
11126
10941
  try {
11127
- await __hot_updater_cli_tools.p.tasks([{
10942
+ await _hot_updater_cli_tools.p.tasks([{
11128
10943
  title: "Checking Account List...",
11129
10944
  task: async () => {
11130
10945
  accounts.push(...(await cf.accounts.list()).result.map((account) => ({
@@ -11134,25 +10949,25 @@ const runInit = async ({ build }) => {
11134
10949
  }
11135
10950
  }]);
11136
10951
  } catch (e) {
11137
- if (e instanceof Error) __hot_updater_cli_tools.p.log.error(e.message);
10952
+ if (e instanceof Error) _hot_updater_cli_tools.p.log.error(e.message);
11138
10953
  throw e;
11139
10954
  }
11140
- const accountId = await __hot_updater_cli_tools.p.select({
10955
+ const accountId = await _hot_updater_cli_tools.p.select({
11141
10956
  message: "Account List",
11142
10957
  options: accounts.map((account) => ({
11143
10958
  value: account.id,
11144
10959
  label: `${account.name} (${account.id})`
11145
10960
  }))
11146
10961
  });
11147
- if (__hot_updater_cli_tools.p.isCancel(accountId)) process.exit(1);
11148
- __hot_updater_cli_tools.p.log.step(`Please visit this link to create an API Token: ${(0, __hot_updater_cli_tools.link)(`https://dash.cloudflare.com/${accountId}/api-tokens`)}`);
11149
- __hot_updater_cli_tools.p.log.step("You need edit permissions for both D1 and R2");
11150
- const apiToken = await __hot_updater_cli_tools.p.password({ message: "Enter the API Token" });
11151
- if (!apiToken) __hot_updater_cli_tools.p.log.warn("Skipping API Token. You can set it later in .env HOT_UPDATER_CLOUDFLARE_API_TOKEN file.");
11152
- if (__hot_updater_cli_tools.p.isCancel(apiToken)) process.exit(1);
10962
+ if (_hot_updater_cli_tools.p.isCancel(accountId)) process.exit(1);
10963
+ _hot_updater_cli_tools.p.log.step(`Please visit this link to create an API Token: ${(0, _hot_updater_cli_tools.link)(`https://dash.cloudflare.com/${accountId}/api-tokens`)}`);
10964
+ _hot_updater_cli_tools.p.log.step("You need edit permissions for both D1 and R2");
10965
+ const apiToken = await _hot_updater_cli_tools.p.password({ message: "Enter the API Token" });
10966
+ if (!apiToken) _hot_updater_cli_tools.p.log.warn("Skipping API Token. You can set it later in .env HOT_UPDATER_CLOUDFLARE_API_TOKEN file.");
10967
+ if (_hot_updater_cli_tools.p.isCancel(apiToken)) process.exit(1);
11153
10968
  const availableBuckets = [];
11154
10969
  try {
11155
- await __hot_updater_cli_tools.p.tasks([{
10970
+ await _hot_updater_cli_tools.p.tasks([{
11156
10971
  title: "Checking R2 Buckets...",
11157
10972
  task: async () => {
11158
10973
  const buckets = (await cf.r2.buckets.list({ account_id: accountId })).buckets ?? [];
@@ -11160,10 +10975,10 @@ const runInit = async ({ build }) => {
11160
10975
  }
11161
10976
  }]);
11162
10977
  } catch (e) {
11163
- if (e instanceof Error) __hot_updater_cli_tools.p.log.error(e.message);
10978
+ if (e instanceof Error) _hot_updater_cli_tools.p.log.error(e.message);
11164
10979
  throw e;
11165
10980
  }
11166
- let selectedBucketName = await __hot_updater_cli_tools.p.select({
10981
+ let selectedBucketName = await _hot_updater_cli_tools.p.select({
11167
10982
  message: "R2 List",
11168
10983
  options: [...availableBuckets.map((bucket) => ({
11169
10984
  value: bucket.name,
@@ -11173,10 +10988,10 @@ const runInit = async ({ build }) => {
11173
10988
  label: "Create New R2 Bucket"
11174
10989
  }]
11175
10990
  });
11176
- if (__hot_updater_cli_tools.p.isCancel(selectedBucketName)) process.exit(1);
10991
+ if (_hot_updater_cli_tools.p.isCancel(selectedBucketName)) process.exit(1);
11177
10992
  if (selectedBucketName === createKey) {
11178
- const name = await __hot_updater_cli_tools.p.text({ message: "Enter the name of the new R2 Bucket" });
11179
- if (__hot_updater_cli_tools.p.isCancel(name)) process.exit(1);
10993
+ const name = await _hot_updater_cli_tools.p.text({ message: "Enter the name of the new R2 Bucket" });
10994
+ if (_hot_updater_cli_tools.p.isCancel(name)) process.exit(1);
11180
10995
  const newR2 = await cf.r2.buckets.create({
11181
10996
  account_id: accountId,
11182
10997
  name
@@ -11184,10 +10999,10 @@ const runInit = async ({ build }) => {
11184
10999
  if (!newR2.name) throw new Error("Failed to create new R2 Bucket");
11185
11000
  selectedBucketName = newR2.name;
11186
11001
  }
11187
- __hot_updater_cli_tools.p.log.info(`Selected R2: ${selectedBucketName}`);
11002
+ _hot_updater_cli_tools.p.log.info(`Selected R2: ${selectedBucketName}`);
11188
11003
  if ((await cf.r2.buckets.domains.managed.list(selectedBucketName, { account_id: accountId })).enabled) {
11189
- if (await __hot_updater_cli_tools.p.confirm({ message: "Make R2 bucket private?" })) try {
11190
- await __hot_updater_cli_tools.p.tasks([{
11004
+ if (await _hot_updater_cli_tools.p.confirm({ message: "Make R2 bucket private?" })) try {
11005
+ await _hot_updater_cli_tools.p.tasks([{
11191
11006
  title: "Making R2 bucket private...",
11192
11007
  task: async () => {
11193
11008
  await cf.r2.buckets.domains.managed.update(selectedBucketName, {
@@ -11197,13 +11012,13 @@ const runInit = async ({ build }) => {
11197
11012
  }
11198
11013
  }]);
11199
11014
  } catch (e) {
11200
- if (e instanceof Error) __hot_updater_cli_tools.p.log.error(e.message);
11015
+ if (e instanceof Error) _hot_updater_cli_tools.p.log.error(e.message);
11201
11016
  throw e;
11202
11017
  }
11203
11018
  }
11204
11019
  const availableD1List = [];
11205
11020
  try {
11206
- await __hot_updater_cli_tools.p.tasks([{
11021
+ await _hot_updater_cli_tools.p.tasks([{
11207
11022
  title: "Checking D1 List...",
11208
11023
  task: async () => {
11209
11024
  const d1List = (await cf.d1.database.list({ account_id: accountId })).result ?? [];
@@ -11214,10 +11029,10 @@ const runInit = async ({ build }) => {
11214
11029
  }
11215
11030
  }]);
11216
11031
  } catch (e) {
11217
- if (e instanceof Error) __hot_updater_cli_tools.p.log.error(e.message);
11032
+ if (e instanceof Error) _hot_updater_cli_tools.p.log.error(e.message);
11218
11033
  throw e;
11219
11034
  }
11220
- let selectedD1DatabaseId = await __hot_updater_cli_tools.p.select({
11035
+ let selectedD1DatabaseId = await _hot_updater_cli_tools.p.select({
11221
11036
  message: "D1 List",
11222
11037
  options: [...availableD1List.map((d1) => ({
11223
11038
  value: d1.uuid,
@@ -11227,10 +11042,10 @@ const runInit = async ({ build }) => {
11227
11042
  label: "Create New D1 Database"
11228
11043
  }]
11229
11044
  });
11230
- if (__hot_updater_cli_tools.p.isCancel(selectedD1DatabaseId)) process.exit(1);
11045
+ if (_hot_updater_cli_tools.p.isCancel(selectedD1DatabaseId)) process.exit(1);
11231
11046
  if (selectedD1DatabaseId === createKey) {
11232
- const name = await __hot_updater_cli_tools.p.text({ message: "Enter the name of the new D1 Database" });
11233
- if (__hot_updater_cli_tools.p.isCancel(name)) process.exit(1);
11047
+ const name = await _hot_updater_cli_tools.p.text({ message: "Enter the name of the new D1 Database" });
11048
+ if (_hot_updater_cli_tools.p.isCancel(name)) process.exit(1);
11234
11049
  const newD1 = await cf.d1.database.create({
11235
11050
  account_id: accountId,
11236
11051
  name
@@ -11241,8 +11056,8 @@ const runInit = async ({ build }) => {
11241
11056
  name: newD1.name,
11242
11057
  uuid: newD1.uuid
11243
11058
  });
11244
- __hot_updater_cli_tools.p.log.info(`Created new D1 Database: ${newD1.name} (${newD1.uuid})`);
11245
- } else __hot_updater_cli_tools.p.log.info(`Selected D1: ${selectedD1DatabaseId}`);
11059
+ _hot_updater_cli_tools.p.log.info(`Created new D1 Database: ${newD1.name} (${newD1.uuid})`);
11060
+ } else _hot_updater_cli_tools.p.log.info(`Selected D1: ${selectedD1DatabaseId}`);
11246
11061
  const d1DatabaseName = availableD1List.find((d1) => d1.uuid === selectedD1DatabaseId)?.name;
11247
11062
  if (!d1DatabaseName) throw new Error("Failed to get D1 Database name");
11248
11063
  const subdomains = await cf.workers.subdomains.get({ account_id: accountId });
@@ -11252,18 +11067,17 @@ const runInit = async ({ build }) => {
11252
11067
  r2BucketName: selectedBucketName
11253
11068
  });
11254
11069
  await fs_promises.default.writeFile("hot-updater.config.ts", getConfigTemplate(build));
11255
- await (0, __hot_updater_cli_tools.makeEnv)({
11070
+ await (0, _hot_updater_cli_tools.makeEnv)({
11256
11071
  HOT_UPDATER_CLOUDFLARE_API_TOKEN: apiToken,
11257
11072
  HOT_UPDATER_CLOUDFLARE_ACCOUNT_ID: accountId,
11258
11073
  HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME: selectedBucketName,
11259
11074
  HOT_UPDATER_CLOUDFLARE_D1_DATABASE_ID: selectedD1DatabaseId
11260
11075
  });
11261
- __hot_updater_cli_tools.p.log.success("Generated '.env.hotupdater' file with Cloudflare settings.");
11262
- __hot_updater_cli_tools.p.log.success("Generated 'hot-updater.config.ts' file with Cloudflare settings.");
11263
- if (subdomains.subdomain) __hot_updater_cli_tools.p.note((0, __hot_updater_cli_tools.transformTemplate)(SOURCE_TEMPLATE, { source: `https://${workerName}.${subdomains.subdomain}.workers.dev/api/check-update` }));
11264
- __hot_updater_cli_tools.p.log.message(`Next step: ${(0, __hot_updater_cli_tools.link)("https://hot-updater.dev/docs/managed/cloudflare#step-4-add-hotupdater-to-your-project")}`);
11265
- __hot_updater_cli_tools.p.log.success("Done! 🎉");
11076
+ _hot_updater_cli_tools.p.log.success("Generated '.env.hotupdater' file with Cloudflare settings.");
11077
+ _hot_updater_cli_tools.p.log.success("Generated 'hot-updater.config.ts' file with Cloudflare settings.");
11078
+ if (subdomains.subdomain) _hot_updater_cli_tools.p.note((0, _hot_updater_cli_tools.transformTemplate)(SOURCE_TEMPLATE, { source: `https://${workerName}.${subdomains.subdomain}.workers.dev/api/check-update` }));
11079
+ _hot_updater_cli_tools.p.log.message(`Next step: ${(0, _hot_updater_cli_tools.link)("https://hot-updater.dev/docs/managed/cloudflare#step-4-add-hotupdater-to-your-project")}`);
11080
+ _hot_updater_cli_tools.p.log.success("Done! 🎉");
11266
11081
  };
11267
-
11268
11082
  //#endregion
11269
- exports.runInit = runInit;
11083
+ exports.runInit = runInit;