create-vuetify 0.0.6-beta.5 → 0.0.6-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import fs, { appendFileSync, cpSync, createWriteStream, existsSync, lstatSync, m
|
|
|
5
5
|
import path, { dirname, isAbsolute, join, resolve, sep } from "node:path";
|
|
6
6
|
import P, { stdin, stdout } from "node:process";
|
|
7
7
|
import * as k$2 from "node:readline";
|
|
8
|
-
import
|
|
8
|
+
import ot from "node:readline";
|
|
9
9
|
import * as tty from "node:tty";
|
|
10
10
|
import { ReadStream } from "node:tty";
|
|
11
11
|
import { format, formatWithOptions, inspect, promisify, stripVTControlCharacters } from "node:util";
|
|
@@ -19,7 +19,7 @@ import { findPackage, readPackage, readPackageJSON, updatePackage, writePackageJ
|
|
|
19
19
|
import j$1 from "assert";
|
|
20
20
|
import H$2 from "path";
|
|
21
21
|
import nt from "events";
|
|
22
|
-
import ot from "stream";
|
|
22
|
+
import ot$1 from "stream";
|
|
23
23
|
import ht from "string_decoder";
|
|
24
24
|
import P$1 from "buffer";
|
|
25
25
|
import O$2 from "zlib";
|
|
@@ -52,50 +52,50 @@ var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
52
52
|
return result + string.substring(cursor$1);
|
|
53
53
|
};
|
|
54
54
|
let createColors$1 = (enabled$1 = isColorSupported$1) => {
|
|
55
|
-
let f$
|
|
55
|
+
let f$6 = enabled$1 ? formatter : () => String;
|
|
56
56
|
return {
|
|
57
57
|
isColorSupported: enabled$1,
|
|
58
|
-
reset: f$
|
|
59
|
-
bold: f$
|
|
60
|
-
dim: f$
|
|
61
|
-
italic: f$
|
|
62
|
-
underline: f$
|
|
63
|
-
inverse: f$
|
|
64
|
-
hidden: f$
|
|
65
|
-
strikethrough: f$
|
|
66
|
-
black: f$
|
|
67
|
-
red: f$
|
|
68
|
-
green: f$
|
|
69
|
-
yellow: f$
|
|
70
|
-
blue: f$
|
|
71
|
-
magenta: f$
|
|
72
|
-
cyan: f$
|
|
73
|
-
white: f$
|
|
74
|
-
gray: f$
|
|
75
|
-
bgBlack: f$
|
|
76
|
-
bgRed: f$
|
|
77
|
-
bgGreen: f$
|
|
78
|
-
bgYellow: f$
|
|
79
|
-
bgBlue: f$
|
|
80
|
-
bgMagenta: f$
|
|
81
|
-
bgCyan: f$
|
|
82
|
-
bgWhite: f$
|
|
83
|
-
blackBright: f$
|
|
84
|
-
redBright: f$
|
|
85
|
-
greenBright: f$
|
|
86
|
-
yellowBright: f$
|
|
87
|
-
blueBright: f$
|
|
88
|
-
magentaBright: f$
|
|
89
|
-
cyanBright: f$
|
|
90
|
-
whiteBright: f$
|
|
91
|
-
bgBlackBright: f$
|
|
92
|
-
bgRedBright: f$
|
|
93
|
-
bgGreenBright: f$
|
|
94
|
-
bgYellowBright: f$
|
|
95
|
-
bgBlueBright: f$
|
|
96
|
-
bgMagentaBright: f$
|
|
97
|
-
bgCyanBright: f$
|
|
98
|
-
bgWhiteBright: f$
|
|
58
|
+
reset: f$6("\x1B[0m", "\x1B[0m"),
|
|
59
|
+
bold: f$6("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
60
|
+
dim: f$6("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
61
|
+
italic: f$6("\x1B[3m", "\x1B[23m"),
|
|
62
|
+
underline: f$6("\x1B[4m", "\x1B[24m"),
|
|
63
|
+
inverse: f$6("\x1B[7m", "\x1B[27m"),
|
|
64
|
+
hidden: f$6("\x1B[8m", "\x1B[28m"),
|
|
65
|
+
strikethrough: f$6("\x1B[9m", "\x1B[29m"),
|
|
66
|
+
black: f$6("\x1B[30m", "\x1B[39m"),
|
|
67
|
+
red: f$6("\x1B[31m", "\x1B[39m"),
|
|
68
|
+
green: f$6("\x1B[32m", "\x1B[39m"),
|
|
69
|
+
yellow: f$6("\x1B[33m", "\x1B[39m"),
|
|
70
|
+
blue: f$6("\x1B[34m", "\x1B[39m"),
|
|
71
|
+
magenta: f$6("\x1B[35m", "\x1B[39m"),
|
|
72
|
+
cyan: f$6("\x1B[36m", "\x1B[39m"),
|
|
73
|
+
white: f$6("\x1B[37m", "\x1B[39m"),
|
|
74
|
+
gray: f$6("\x1B[90m", "\x1B[39m"),
|
|
75
|
+
bgBlack: f$6("\x1B[40m", "\x1B[49m"),
|
|
76
|
+
bgRed: f$6("\x1B[41m", "\x1B[49m"),
|
|
77
|
+
bgGreen: f$6("\x1B[42m", "\x1B[49m"),
|
|
78
|
+
bgYellow: f$6("\x1B[43m", "\x1B[49m"),
|
|
79
|
+
bgBlue: f$6("\x1B[44m", "\x1B[49m"),
|
|
80
|
+
bgMagenta: f$6("\x1B[45m", "\x1B[49m"),
|
|
81
|
+
bgCyan: f$6("\x1B[46m", "\x1B[49m"),
|
|
82
|
+
bgWhite: f$6("\x1B[47m", "\x1B[49m"),
|
|
83
|
+
blackBright: f$6("\x1B[90m", "\x1B[39m"),
|
|
84
|
+
redBright: f$6("\x1B[91m", "\x1B[39m"),
|
|
85
|
+
greenBright: f$6("\x1B[92m", "\x1B[39m"),
|
|
86
|
+
yellowBright: f$6("\x1B[93m", "\x1B[39m"),
|
|
87
|
+
blueBright: f$6("\x1B[94m", "\x1B[39m"),
|
|
88
|
+
magentaBright: f$6("\x1B[95m", "\x1B[39m"),
|
|
89
|
+
cyanBright: f$6("\x1B[96m", "\x1B[39m"),
|
|
90
|
+
whiteBright: f$6("\x1B[97m", "\x1B[39m"),
|
|
91
|
+
bgBlackBright: f$6("\x1B[100m", "\x1B[49m"),
|
|
92
|
+
bgRedBright: f$6("\x1B[101m", "\x1B[49m"),
|
|
93
|
+
bgGreenBright: f$6("\x1B[102m", "\x1B[49m"),
|
|
94
|
+
bgYellowBright: f$6("\x1B[103m", "\x1B[49m"),
|
|
95
|
+
bgBlueBright: f$6("\x1B[104m", "\x1B[49m"),
|
|
96
|
+
bgMagentaBright: f$6("\x1B[105m", "\x1B[49m"),
|
|
97
|
+
bgCyanBright: f$6("\x1B[106m", "\x1B[49m"),
|
|
98
|
+
bgWhiteBright: f$6("\x1B[107m", "\x1B[49m")
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
module.exports = createColors$1();
|
|
@@ -168,9 +168,9 @@ const at = (t$8) => t$8 === 161 || t$8 === 164 || t$8 === 167 || t$8 === 168 ||
|
|
|
168
168
|
ellipsis: ""
|
|
169
169
|
}, X$2 = (t$8, e$8 = {}, s$9 = {}) => {
|
|
170
170
|
const i$9 = e$8.limit ?? Infinity, r$3 = e$8.ellipsis ?? "", n$5 = e$8?.ellipsisWidth ?? (r$3 ? X$2(r$3, Ft$1, s$9).width : 0), o$7 = s$9.ansiWidth ?? 0, a$13 = s$9.controlWidth ?? 0, l$2 = s$9.tabWidth ?? 8, E$2 = s$9.ambiguousWidth ?? 1, g$2 = s$9.emojiWidth ?? 2, m$3 = s$9.fullWidthWidth ?? 2, A$1 = s$9.regularWidth ?? 1, V$2 = s$9.wideWidth ?? 2;
|
|
171
|
-
let h$2 = 0, u$7 = 0, f$
|
|
171
|
+
let h$2 = 0, u$7 = 0, f$6 = t$8.length, v$2 = 0, p$2 = !1, d$2 = f$6, b$2 = Math.max(0, i$9 - n$5), C$2 = 0, B = 0, c$7 = 0, F$4 = 0;
|
|
172
172
|
t: for (;;) {
|
|
173
|
-
if (B > C$2 || u$7 >= f$
|
|
173
|
+
if (B > C$2 || u$7 >= f$6 && u$7 > h$2) {
|
|
174
174
|
const ut = t$8.slice(C$2, B) || t$8.slice(h$2, u$7);
|
|
175
175
|
v$2 = 0;
|
|
176
176
|
for (const Y$1 of ut.replaceAll(ct, "")) {
|
|
@@ -183,7 +183,7 @@ const at = (t$8) => t$8 === 161 || t$8 === 164 || t$8 === 167 || t$8 === 168 ||
|
|
|
183
183
|
}
|
|
184
184
|
C$2 = B = 0;
|
|
185
185
|
}
|
|
186
|
-
if (u$7 >= f$
|
|
186
|
+
if (u$7 >= f$6) break;
|
|
187
187
|
if (L$2.lastIndex = u$7, L$2.test(t$8)) {
|
|
188
188
|
if (v$2 = L$2.lastIndex - u$7, F$4 = v$2 * A$1, c$7 + F$4 > b$2 && (d$2 = Math.min(d$2, u$7 + Math.floor((b$2 - c$7) / A$1))), c$7 + F$4 > i$9) {
|
|
189
189
|
p$2 = !0;
|
|
@@ -228,7 +228,7 @@ const at = (t$8) => t$8 === 161 || t$8 === 164 || t$8 === 167 || t$8 === 168 ||
|
|
|
228
228
|
}
|
|
229
229
|
return {
|
|
230
230
|
width: p$2 ? b$2 : c$7,
|
|
231
|
-
index: p$2 ? d$2 : f$
|
|
231
|
+
index: p$2 ? d$2 : f$6,
|
|
232
232
|
truncated: p$2,
|
|
233
233
|
ellipsed: p$2 && i$9 >= n$5
|
|
234
234
|
};
|
|
@@ -266,20 +266,20 @@ const at = (t$8) => t$8 === 161 || t$8 === 164 || t$8 === 167 || t$8 === 168 ||
|
|
|
266
266
|
let l$2 = [""];
|
|
267
267
|
for (const [h$2, u$7] of o$7.entries()) {
|
|
268
268
|
s$9.trim !== !1 && (l$2[l$2.length - 1] = (l$2.at(-1) ?? "").trimStart());
|
|
269
|
-
let f$
|
|
270
|
-
if (h$2 !== 0 && (f$
|
|
271
|
-
const v$2 = e$8 - f$
|
|
269
|
+
let f$6 = S$2(l$2.at(-1) ?? "");
|
|
270
|
+
if (h$2 !== 0 && (f$6 >= e$8 && (s$9.wordWrap === !1 || s$9.trim === !1) && (l$2.push(""), f$6 = 0), (f$6 > 0 || s$9.trim === !1) && (l$2[l$2.length - 1] += " ", f$6++)), s$9.hard && a$13[h$2] > e$8) {
|
|
271
|
+
const v$2 = e$8 - f$6, p$2 = 1 + Math.floor((a$13[h$2] - v$2 - 1) / e$8);
|
|
272
272
|
Math.floor((a$13[h$2] - 1) / e$8) < p$2 && l$2.push(""), G$2(l$2, u$7, e$8);
|
|
273
273
|
continue;
|
|
274
274
|
}
|
|
275
|
-
if (f$
|
|
276
|
-
if (s$9.wordWrap === !1 && f$
|
|
275
|
+
if (f$6 + a$13[h$2] > e$8 && f$6 > 0 && a$13[h$2] > 0) {
|
|
276
|
+
if (s$9.wordWrap === !1 && f$6 < e$8) {
|
|
277
277
|
G$2(l$2, u$7, e$8);
|
|
278
278
|
continue;
|
|
279
279
|
}
|
|
280
280
|
l$2.push("");
|
|
281
281
|
}
|
|
282
|
-
if (f$
|
|
282
|
+
if (f$6 + a$13[h$2] > e$8 && s$9.wordWrap === !1) {
|
|
283
283
|
G$2(l$2, u$7, e$8);
|
|
284
284
|
continue;
|
|
285
285
|
}
|
|
@@ -299,10 +299,10 @@ const at = (t$8) => t$8 === 161 || t$8 === 164 || t$8 === 167 || t$8 === 168 ||
|
|
|
299
299
|
r$3 = d$2 === pt$1 ? void 0 : d$2;
|
|
300
300
|
} else p$2?.uri !== void 0 && (n$5 = p$2.uri.length === 0 ? void 0 : p$2.uri);
|
|
301
301
|
}
|
|
302
|
-
const f$
|
|
302
|
+
const f$6 = r$3 ? mt$1(r$3) : void 0;
|
|
303
303
|
u$7 === `
|
|
304
|
-
` ? (n$5 && (i$9 += it("")), r$3 && f$
|
|
305
|
-
` && (r$3 && f$
|
|
304
|
+
` ? (n$5 && (i$9 += it("")), r$3 && f$6 && (i$9 += st(f$6))) : h$2 === `
|
|
305
|
+
` && (r$3 && f$6 && (i$9 += st(r$3)), n$5 && (i$9 += it(n$5))), V$2 += h$2.length, m$3 = A$1, A$1 = g$2.next();
|
|
306
306
|
}
|
|
307
307
|
return i$9;
|
|
308
308
|
};
|
|
@@ -449,7 +449,7 @@ var x$2 = class {
|
|
|
449
449
|
this.state = "cancel", this.close();
|
|
450
450
|
}, { once: !0 });
|
|
451
451
|
}
|
|
452
|
-
this.rl =
|
|
452
|
+
this.rl = ot.createInterface({
|
|
453
453
|
input: this.input,
|
|
454
454
|
tabSize: 2,
|
|
455
455
|
prompt: "",
|
|
@@ -844,7 +844,7 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
844
844
|
ellipsis: ""
|
|
845
845
|
}, Le = (e$8, r$3 = {}, s$9 = {}) => {
|
|
846
846
|
const i$9 = r$3.limit ?? Infinity, n$5 = r$3.ellipsis ?? "", l$2 = r$3?.ellipsisWidth ?? (n$5 ? Le(n$5, Ft, s$9).width : 0), u$7 = s$9.ansiWidth ?? 0, o$7 = s$9.controlWidth ?? 0, a$13 = s$9.tabWidth ?? 8, c$7 = s$9.ambiguousWidth ?? 1, g$2 = s$9.emojiWidth ?? 2, E$2 = s$9.fullWidthWidth ?? 2, p$2 = s$9.regularWidth ?? 1, y$5 = s$9.wideWidth ?? 2;
|
|
847
|
-
let $ = 0, m$3 = 0, d$2 = e$8.length, F$4 = 0, f$
|
|
847
|
+
let $ = 0, m$3 = 0, d$2 = e$8.length, F$4 = 0, f$6 = !1, v$2 = d$2, I$2 = Math.max(0, i$9 - l$2), B = 0, b$2 = 0, A$1 = 0, C$2 = 0;
|
|
848
848
|
e: for (;;) {
|
|
849
849
|
if (b$2 > B || m$3 >= d$2 && m$3 > $) {
|
|
850
850
|
const _$3 = e$8.slice(B, b$2) || e$8.slice($, m$3);
|
|
@@ -852,7 +852,7 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
852
852
|
for (const D$2 of _$3.replaceAll(ft$1, "")) {
|
|
853
853
|
const T$4 = D$2.codePointAt(0) || 0;
|
|
854
854
|
if (pt(T$4) ? C$2 = E$2 : gt(T$4) ? C$2 = y$5 : c$7 !== p$2 && mt(T$4) ? C$2 = c$7 : C$2 = p$2, A$1 + C$2 > I$2 && (v$2 = Math.min(v$2, Math.max(B, $) + F$4)), A$1 + C$2 > i$9) {
|
|
855
|
-
f$
|
|
855
|
+
f$6 = !0;
|
|
856
856
|
break e;
|
|
857
857
|
}
|
|
858
858
|
F$4 += D$2.length, A$1 += C$2;
|
|
@@ -862,7 +862,7 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
862
862
|
if (m$3 >= d$2) break;
|
|
863
863
|
if (ne.lastIndex = m$3, ne.test(e$8)) {
|
|
864
864
|
if (F$4 = ne.lastIndex - m$3, C$2 = F$4 * p$2, A$1 + C$2 > I$2 && (v$2 = Math.min(v$2, m$3 + Math.floor((I$2 - A$1) / p$2))), A$1 + C$2 > i$9) {
|
|
865
|
-
f$
|
|
865
|
+
f$6 = !0;
|
|
866
866
|
break;
|
|
867
867
|
}
|
|
868
868
|
A$1 += C$2, B = $, b$2 = m$3, m$3 = $ = ne.lastIndex;
|
|
@@ -870,7 +870,7 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
870
870
|
}
|
|
871
871
|
if (ve.lastIndex = m$3, ve.test(e$8)) {
|
|
872
872
|
if (A$1 + u$7 > I$2 && (v$2 = Math.min(v$2, m$3)), A$1 + u$7 > i$9) {
|
|
873
|
-
f$
|
|
873
|
+
f$6 = !0;
|
|
874
874
|
break;
|
|
875
875
|
}
|
|
876
876
|
A$1 += u$7, B = $, b$2 = m$3, m$3 = $ = ve.lastIndex;
|
|
@@ -878,7 +878,7 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
878
878
|
}
|
|
879
879
|
if (re.lastIndex = m$3, re.test(e$8)) {
|
|
880
880
|
if (F$4 = re.lastIndex - m$3, C$2 = F$4 * o$7, A$1 + C$2 > I$2 && (v$2 = Math.min(v$2, m$3 + Math.floor((I$2 - A$1) / o$7))), A$1 + C$2 > i$9) {
|
|
881
|
-
f$
|
|
881
|
+
f$6 = !0;
|
|
882
882
|
break;
|
|
883
883
|
}
|
|
884
884
|
A$1 += C$2, B = $, b$2 = m$3, m$3 = $ = re.lastIndex;
|
|
@@ -886,7 +886,7 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
886
886
|
}
|
|
887
887
|
if (ie.lastIndex = m$3, ie.test(e$8)) {
|
|
888
888
|
if (F$4 = ie.lastIndex - m$3, C$2 = F$4 * a$13, A$1 + C$2 > I$2 && (v$2 = Math.min(v$2, m$3 + Math.floor((I$2 - A$1) / a$13))), A$1 + C$2 > i$9) {
|
|
889
|
-
f$
|
|
889
|
+
f$6 = !0;
|
|
890
890
|
break;
|
|
891
891
|
}
|
|
892
892
|
A$1 += C$2, B = $, b$2 = m$3, m$3 = $ = ie.lastIndex;
|
|
@@ -894,7 +894,7 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
894
894
|
}
|
|
895
895
|
if (Ae.lastIndex = m$3, Ae.test(e$8)) {
|
|
896
896
|
if (A$1 + g$2 > I$2 && (v$2 = Math.min(v$2, m$3)), A$1 + g$2 > i$9) {
|
|
897
|
-
f$
|
|
897
|
+
f$6 = !0;
|
|
898
898
|
break;
|
|
899
899
|
}
|
|
900
900
|
A$1 += g$2, B = $, b$2 = m$3, m$3 = $ = Ae.lastIndex;
|
|
@@ -903,10 +903,10 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
903
903
|
m$3 += 1;
|
|
904
904
|
}
|
|
905
905
|
return {
|
|
906
|
-
width: f$
|
|
907
|
-
index: f$
|
|
908
|
-
truncated: f$
|
|
909
|
-
ellipsed: f$
|
|
906
|
+
width: f$6 ? I$2 : A$1,
|
|
907
|
+
index: f$6 ? v$2 : d$2,
|
|
908
|
+
truncated: f$6,
|
|
909
|
+
ellipsed: f$6 && i$9 >= l$2
|
|
910
910
|
};
|
|
911
911
|
}, yt$1 = {
|
|
912
912
|
limit: Infinity,
|
|
@@ -944,8 +944,8 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
944
944
|
s$9.trim !== !1 && (a$13[a$13.length - 1] = (a$13.at(-1) ?? "").trimStart());
|
|
945
945
|
let d$2 = M(a$13.at(-1) ?? "");
|
|
946
946
|
if ($ !== 0 && (d$2 >= r$3 && (s$9.wordWrap === !1 || s$9.trim === !1) && (a$13.push(""), d$2 = 0), (d$2 > 0 || s$9.trim === !1) && (a$13[a$13.length - 1] += " ", d$2++)), s$9.hard && o$7[$] > r$3) {
|
|
947
|
-
const F$4 = r$3 - d$2, f$
|
|
948
|
-
Math.floor((o$7[$] - 1) / r$3) < f$
|
|
947
|
+
const F$4 = r$3 - d$2, f$6 = 1 + Math.floor((o$7[$] - F$4 - 1) / r$3);
|
|
948
|
+
Math.floor((o$7[$] - 1) / r$3) < f$6 && a$13.push(""), Ie(a$13, m$3, r$3);
|
|
949
949
|
continue;
|
|
950
950
|
}
|
|
951
951
|
if (d$2 + o$7[$] > r$3 && d$2 > 0 && o$7[$] > 0) {
|
|
@@ -969,11 +969,11 @@ const ee$1 = ht$1(), ue = () => process.env.CI === "true", Te = (e$8) => e$8.isT
|
|
|
969
969
|
const $ = E$2.value, m$3 = p$2.value;
|
|
970
970
|
if (i$9 += $, $ === ae || $ === je) {
|
|
971
971
|
Ge$1.lastIndex = y$5 + 1;
|
|
972
|
-
const f$
|
|
973
|
-
if (f$
|
|
974
|
-
const v$2 = Number.parseFloat(f$
|
|
972
|
+
const f$6 = Ge$1.exec(c$7)?.groups;
|
|
973
|
+
if (f$6?.code !== void 0) {
|
|
974
|
+
const v$2 = Number.parseFloat(f$6.code);
|
|
975
975
|
n$5 = v$2 === Et ? void 0 : v$2;
|
|
976
|
-
} else f$
|
|
976
|
+
} else f$6?.uri !== void 0 && (l$2 = f$6.uri.length === 0 ? void 0 : f$6.uri);
|
|
977
977
|
}
|
|
978
978
|
const d$2 = n$5 ? At(n$5) : void 0;
|
|
979
979
|
m$3 === `
|
|
@@ -1004,7 +1004,7 @@ const St = (e$8, r$3, s$9, i$9, n$5) => {
|
|
|
1004
1004
|
let $ = 0;
|
|
1005
1005
|
r$3 >= y$5 - 3 && ($ = Math.max(Math.min(r$3 - y$5 + 3, s$9.length - y$5), 0));
|
|
1006
1006
|
let m$3 = y$5 < s$9.length && $ > 0, d$2 = y$5 < s$9.length && $ + y$5 < s$9.length;
|
|
1007
|
-
const F$4 = Math.min($ + y$5, s$9.length), f$
|
|
1007
|
+
const F$4 = Math.min($ + y$5, s$9.length), f$6 = [];
|
|
1008
1008
|
let v$2 = 0;
|
|
1009
1009
|
m$3 && v$2++, d$2 && v$2++;
|
|
1010
1010
|
const I$2 = $ + (m$3 ? 1 : 0), B = F$4 - (d$2 ? 1 : 0);
|
|
@@ -1014,16 +1014,16 @@ const St = (e$8, r$3, s$9, i$9, n$5) => {
|
|
|
1014
1014
|
trim: !1
|
|
1015
1015
|
}).split(`
|
|
1016
1016
|
`);
|
|
1017
|
-
f$
|
|
1017
|
+
f$6.push(C$2), v$2 += C$2.length;
|
|
1018
1018
|
}
|
|
1019
1019
|
if (v$2 > p$2) {
|
|
1020
1020
|
let A$1 = 0, C$2 = 0, _$3 = v$2;
|
|
1021
|
-
const D$2 = r$3 - I$2, T$4 = (L$3, S$3) => St(f$
|
|
1022
|
-
m$3 ? ({lineCount: _$3, removals: A$1} = T$4(0, D$2), _$3 > p$2 && ({lineCount: _$3, removals: C$2} = T$4(D$2 + 1, f$
|
|
1021
|
+
const D$2 = r$3 - I$2, T$4 = (L$3, S$3) => St(f$6, _$3, L$3, S$3, p$2);
|
|
1022
|
+
m$3 ? ({lineCount: _$3, removals: A$1} = T$4(0, D$2), _$3 > p$2 && ({lineCount: _$3, removals: C$2} = T$4(D$2 + 1, f$6.length))) : ({lineCount: _$3, removals: C$2} = T$4(D$2 + 1, f$6.length), _$3 > p$2 && ({lineCount: _$3, removals: A$1} = T$4(0, D$2))), A$1 > 0 && (m$3 = !0, f$6.splice(0, A$1)), C$2 > 0 && (d$2 = !0, f$6.splice(f$6.length - C$2, C$2));
|
|
1023
1023
|
}
|
|
1024
1024
|
const b$2 = [];
|
|
1025
1025
|
m$3 && b$2.push(g$2);
|
|
1026
|
-
for (const A$1 of f$
|
|
1026
|
+
for (const A$1 of f$6) for (const C$2 of A$1) b$2.push(C$2);
|
|
1027
1027
|
return d$2 && b$2.push(g$2), b$2;
|
|
1028
1028
|
};
|
|
1029
1029
|
function Ke(e$8) {
|
|
@@ -1082,8 +1082,8 @@ ${import_picocolors.default.gray(h$1)}${o$7}`;
|
|
|
1082
1082
|
columnPadding: 3,
|
|
1083
1083
|
rowPadding: r$3.length + $.length,
|
|
1084
1084
|
style: (d$2, F$4) => {
|
|
1085
|
-
const f$
|
|
1086
|
-
return F$4 ? `${import_picocolors.default.green(Y)} ${f$
|
|
1085
|
+
const f$6 = Ke(d$2), v$2 = d$2.hint && d$2.value === this.focusedValue ? import_picocolors.default.dim(` (${d$2.hint})`) : "";
|
|
1086
|
+
return F$4 ? `${import_picocolors.default.green(Y)} ${f$6}${v$2}` : `${import_picocolors.default.dim(K)} ${import_picocolors.default.dim(f$6)}${v$2}`;
|
|
1087
1087
|
},
|
|
1088
1088
|
maxItems: e$8.maxItems,
|
|
1089
1089
|
output: e$8.output
|
|
@@ -1134,7 +1134,7 @@ ${W(this.state)} ${e$8.message}
|
|
|
1134
1134
|
], m$3 = [`${g$2(h$1)} ${import_picocolors.default.dim(E$2.join(" • "))}`, `${g$2(x$1)}`], d$2 = J$1({
|
|
1135
1135
|
cursor: this.cursor,
|
|
1136
1136
|
options: this.filteredOptions,
|
|
1137
|
-
style: (F$4, f$
|
|
1137
|
+
style: (F$4, f$6) => r$3(F$4, f$6, this.selectedValues, this.focusedValue),
|
|
1138
1138
|
maxItems: e$8.maxItems,
|
|
1139
1139
|
output: e$8.output,
|
|
1140
1140
|
rowPadding: $.length + m$3.length
|
|
@@ -1180,7 +1180,7 @@ const Dt = (e$8) => e$8, Tt$1 = (e$8 = "", r$3 = "", s$9) => {
|
|
|
1180
1180
|
T$4 < F$4 && (F$4 = T$4);
|
|
1181
1181
|
}
|
|
1182
1182
|
F$4 % 2 !== 0 && (F$4 < d$2 ? F$4++ : F$4--);
|
|
1183
|
-
const f$
|
|
1183
|
+
const f$6 = F$4 - l$2, v$2 = f$6 - u$7 * 2, I$2 = m$3 > v$2 ? `${r$3.slice(0, v$2 - 3)}...` : r$3, [B, b$2] = Xe(M(I$2), f$6, u$7, s$9?.titleAlign), A$1 = q$1(e$8, f$6 - o$7 * 2, {
|
|
1184
1184
|
hard: !0,
|
|
1185
1185
|
trim: !1
|
|
1186
1186
|
});
|
|
@@ -1189,11 +1189,11 @@ const Dt = (e$8) => e$8, Tt$1 = (e$8 = "", r$3 = "", s$9) => {
|
|
|
1189
1189
|
const C$2 = A$1.split(`
|
|
1190
1190
|
`);
|
|
1191
1191
|
for (const _$3 of C$2) {
|
|
1192
|
-
const [D$2, T$4] = Xe(M(_$3), f$
|
|
1192
|
+
const [D$2, T$4] = Xe(M(_$3), f$6, o$7, s$9?.contentAlign);
|
|
1193
1193
|
i$9.write(`${c$7}${y$5}${" ".repeat(D$2)}${_$3}${" ".repeat(T$4)}${y$5}
|
|
1194
1194
|
`);
|
|
1195
1195
|
}
|
|
1196
|
-
i$9.write(`${c$7}${E$2[2]}${p$2.repeat(f$
|
|
1196
|
+
i$9.write(`${c$7}${E$2[2]}${p$2.repeat(f$6)}${E$2[3]}
|
|
1197
1197
|
`);
|
|
1198
1198
|
}, Mt = (e$8) => {
|
|
1199
1199
|
const r$3 = e$8.active ?? "Yes", s$9 = e$8.inactive ?? "No";
|
|
@@ -1542,7 +1542,7 @@ ${import_picocolors.default.cyan(x$1)}
|
|
|
1542
1542
|
], delay: u$7 = ee$1 ? 80 : 120, signal: o$7, ...a$13 } = {}) => {
|
|
1543
1543
|
const c$7 = ue();
|
|
1544
1544
|
let g$2, E$2, p$2 = !1, y$5 = !1, $ = "", m$3, d$2 = performance.now();
|
|
1545
|
-
const F$4 = rt$1(s$9), f$
|
|
1545
|
+
const F$4 = rt$1(s$9), f$6 = a$13?.styleFrame ?? Ut, v$2 = (S$3) => {
|
|
1546
1546
|
const O$6 = S$3 > 1 ? n$5 ?? _$2.messages.error : i$9 ?? _$2.messages.cancel;
|
|
1547
1547
|
y$5 = S$3 === 1, p$2 && (L$3(O$6, S$3), y$5 && typeof r$3 == "function" && r$3());
|
|
1548
1548
|
}, I$2 = () => v$2(2), B = () => v$2(1), b$2 = () => {
|
|
@@ -1569,7 +1569,7 @@ ${import_picocolors.default.cyan(x$1)}
|
|
|
1569
1569
|
b$2(), E$2 = setInterval(() => {
|
|
1570
1570
|
if (c$7 && $ === m$3) return;
|
|
1571
1571
|
C$2(), m$3 = $;
|
|
1572
|
-
const G$3 = f$
|
|
1572
|
+
const G$3 = f$6(l$2[O$6]);
|
|
1573
1573
|
let Z$2;
|
|
1574
1574
|
if (c$7) Z$2 = `${G$3} ${$}...`;
|
|
1575
1575
|
else if (e$8 === "timer") Z$2 = `${G$3} ${$} ${D$2(d$2)}`;
|
|
@@ -1734,19 +1734,19 @@ ${ze$1}${i$9.trimStart()}`), s$9 = 3 + stripVTControlCharacters(i$9.trimStart())
|
|
|
1734
1734
|
if (a$13.length === 0) return;
|
|
1735
1735
|
let F$4 = 0;
|
|
1736
1736
|
d$2 && (F$4 += n$5 + 2);
|
|
1737
|
-
for (const f$
|
|
1738
|
-
const { value: v$2, result: I$2 } = f$
|
|
1737
|
+
for (const f$6 of a$13) {
|
|
1738
|
+
const { value: v$2, result: I$2 } = f$6;
|
|
1739
1739
|
let B = I$2?.message ?? v$2;
|
|
1740
1740
|
if (B.length === 0) continue;
|
|
1741
|
-
I$2 === void 0 && f$
|
|
1742
|
-
${f$
|
|
1741
|
+
I$2 === void 0 && f$6.header !== void 0 && f$6.header !== "" && (B += `
|
|
1742
|
+
${f$6.header}`);
|
|
1743
1743
|
const b$2 = B.split(`
|
|
1744
1744
|
`).reduce((A$1, C$2) => C$2 === "" ? A$1 + 1 : A$1 + Math.ceil((C$2.length + l$2) / s$9), 0);
|
|
1745
1745
|
F$4 += b$2;
|
|
1746
1746
|
}
|
|
1747
1747
|
F$4 > 0 && (F$4 += 1, r$3.write(import_src.erase.lines(F$4)));
|
|
1748
|
-
}, E$2 = (d$2, F$4, f$
|
|
1749
|
-
const v$2 = f$
|
|
1748
|
+
}, E$2 = (d$2, F$4, f$6) => {
|
|
1749
|
+
const v$2 = f$6 ? `${d$2.full}
|
|
1750
1750
|
${d$2.value}` : d$2.value;
|
|
1751
1751
|
d$2.header !== void 0 && d$2.header !== "" && R.message(d$2.header.split(`
|
|
1752
1752
|
`).map(import_picocolors.default.bold), {
|
|
@@ -1763,12 +1763,12 @@ ${d$2.value}` : d$2.value;
|
|
|
1763
1763
|
});
|
|
1764
1764
|
}, p$2 = () => {
|
|
1765
1765
|
for (const d$2 of a$13) {
|
|
1766
|
-
const { header: F$4, value: f$
|
|
1767
|
-
(F$4 === void 0 || F$4.length === 0) && f$
|
|
1766
|
+
const { header: F$4, value: f$6, full: v$2 } = d$2;
|
|
1767
|
+
(F$4 === void 0 || F$4.length === 0) && f$6.length === 0 || E$2(d$2, void 0, u$7 === !0 && v$2.length > 0);
|
|
1768
1768
|
}
|
|
1769
|
-
}, y$5 = (d$2, F$4, f$
|
|
1770
|
-
if (g$2(!1), (f$
|
|
1771
|
-
`), d$2.value += Yt(F$4), c$7 = f$
|
|
1769
|
+
}, y$5 = (d$2, F$4, f$6) => {
|
|
1770
|
+
if (g$2(!1), (f$6?.raw !== !0 || !c$7) && d$2.value !== "" && (d$2.value += `
|
|
1771
|
+
`), d$2.value += Yt(F$4), c$7 = f$6?.raw === !0, e$8.limit !== void 0) {
|
|
1772
1772
|
const v$2 = d$2.value.split(`
|
|
1773
1773
|
`), I$2 = v$2.length - e$8.limit;
|
|
1774
1774
|
if (I$2 > 0) {
|
|
@@ -1805,19 +1805,19 @@ ${d$2.value}` : d$2.value;
|
|
|
1805
1805
|
full: ""
|
|
1806
1806
|
};
|
|
1807
1807
|
return a$13.push(F$4), {
|
|
1808
|
-
message(f$
|
|
1809
|
-
y$5(F$4, f$
|
|
1808
|
+
message(f$6, v$2) {
|
|
1809
|
+
y$5(F$4, f$6, v$2);
|
|
1810
1810
|
},
|
|
1811
|
-
error(f$
|
|
1811
|
+
error(f$6) {
|
|
1812
1812
|
m$3(F$4, {
|
|
1813
1813
|
status: "error",
|
|
1814
|
-
message: f$
|
|
1814
|
+
message: f$6
|
|
1815
1815
|
});
|
|
1816
1816
|
},
|
|
1817
|
-
success(f$
|
|
1817
|
+
success(f$6) {
|
|
1818
1818
|
m$3(F$4, {
|
|
1819
1819
|
status: "success",
|
|
1820
|
-
message: f$
|
|
1820
|
+
message: f$6
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
1823
|
};
|
|
@@ -4976,7 +4976,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
4976
4976
|
return n$5 == 1 && v0 ? "one" : "other";
|
|
4977
4977
|
};
|
|
4978
4978
|
const e$7 = (n$5, ord) => "other";
|
|
4979
|
-
const f$
|
|
4979
|
+
const f$5 = (n$5, ord) => {
|
|
4980
4980
|
if (ord) return "other";
|
|
4981
4981
|
return n$5 == 1 ? "one" : n$5 == 2 ? "two" : "other";
|
|
4982
4982
|
};
|
|
@@ -5039,7 +5039,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5039
5039
|
},
|
|
5040
5040
|
brx: a$12,
|
|
5041
5041
|
bs: (n$5, ord) => {
|
|
5042
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5042
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i10 = i$9.slice(-1), i100 = i$9.slice(-2), f10 = f$6.slice(-1), f100 = f$6.slice(-2);
|
|
5043
5043
|
if (ord) return "other";
|
|
5044
5044
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? "one" : v0 && i10 >= 2 && i10 <= 4 && (i100 < 12 || i100 > 14) || f10 >= 2 && f10 <= 4 && (f100 < 12 || f100 > 14) ? "few" : "other";
|
|
5045
5045
|
},
|
|
@@ -5050,7 +5050,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5050
5050
|
},
|
|
5051
5051
|
ce: a$12,
|
|
5052
5052
|
ceb: (n$5, ord) => {
|
|
5053
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5053
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i10 = i$9.slice(-1), f10 = f$6.slice(-1);
|
|
5054
5054
|
if (ord) return "other";
|
|
5055
5055
|
return v0 && (i$9 == 1 || i$9 == 2 || i$9 == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? "one" : "other";
|
|
5056
5056
|
},
|
|
@@ -5074,7 +5074,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5074
5074
|
de: d$1,
|
|
5075
5075
|
doi: c$6,
|
|
5076
5076
|
dsb: (n$5, ord) => {
|
|
5077
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5077
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i100 = i$9.slice(-2), f100 = f$6.slice(-2);
|
|
5078
5078
|
if (ord) return "other";
|
|
5079
5079
|
return v0 && i100 == 1 || f100 == 1 ? "one" : v0 && i100 == 2 || f100 == 2 ? "two" : v0 && (i100 == 3 || i100 == 4) || f100 == 3 || f100 == 4 ? "few" : "other";
|
|
5080
5080
|
},
|
|
@@ -5102,7 +5102,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5102
5102
|
},
|
|
5103
5103
|
fi: d$1,
|
|
5104
5104
|
fil: (n$5, ord) => {
|
|
5105
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5105
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i10 = i$9.slice(-1), f10 = f$6.slice(-1);
|
|
5106
5106
|
if (ord) return n$5 == 1 ? "one" : "other";
|
|
5107
5107
|
return v0 && (i$9 == 1 || i$9 == 2 || i$9 == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? "one" : "other";
|
|
5108
5108
|
},
|
|
@@ -5149,12 +5149,12 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5149
5149
|
},
|
|
5150
5150
|
hnj: e$7,
|
|
5151
5151
|
hr: (n$5, ord) => {
|
|
5152
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5152
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i10 = i$9.slice(-1), i100 = i$9.slice(-2), f10 = f$6.slice(-1), f100 = f$6.slice(-2);
|
|
5153
5153
|
if (ord) return "other";
|
|
5154
5154
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? "one" : v0 && i10 >= 2 && i10 <= 4 && (i100 < 12 || i100 > 14) || f10 >= 2 && f10 <= 4 && (f100 < 12 || f100 > 14) ? "few" : "other";
|
|
5155
5155
|
},
|
|
5156
5156
|
hsb: (n$5, ord) => {
|
|
5157
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5157
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i100 = i$9.slice(-2), f100 = f$6.slice(-2);
|
|
5158
5158
|
if (ord) return "other";
|
|
5159
5159
|
return v0 && i100 == 1 || f100 == 1 ? "one" : v0 && i100 == 2 || f100 == 2 ? "two" : v0 && (i100 == 3 || i100 == 4) || f100 == 3 || f100 == 4 ? "few" : "other";
|
|
5160
5160
|
},
|
|
@@ -5181,7 +5181,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5181
5181
|
if (ord) return n$5 == 11 || n$5 == 8 || n$5 == 80 || n$5 == 800 ? "many" : "other";
|
|
5182
5182
|
return n$5 == 1 && v0 ? "one" : i$9 != 0 && i1000000 == 0 && v0 ? "many" : "other";
|
|
5183
5183
|
},
|
|
5184
|
-
iu: f$
|
|
5184
|
+
iu: f$5,
|
|
5185
5185
|
ja: e$7,
|
|
5186
5186
|
jbo: e$7,
|
|
5187
5187
|
jgo: a$12,
|
|
@@ -5243,12 +5243,12 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5243
5243
|
return "other";
|
|
5244
5244
|
},
|
|
5245
5245
|
lt: (n$5, ord) => {
|
|
5246
|
-
const s$9 = String(n$5).split("."), f$
|
|
5246
|
+
const s$9 = String(n$5).split("."), f$6 = s$9[1] || "", t0 = Number(s$9[0]) == n$5, n10 = t0 && s$9[0].slice(-1), n100 = t0 && s$9[0].slice(-2);
|
|
5247
5247
|
if (ord) return "other";
|
|
5248
|
-
return n10 == 1 && (n100 < 11 || n100 > 19) ? "one" : n10 >= 2 && n10 <= 9 && (n100 < 11 || n100 > 19) ? "few" : f$
|
|
5248
|
+
return n10 == 1 && (n100 < 11 || n100 > 19) ? "one" : n10 >= 2 && n10 <= 9 && (n100 < 11 || n100 > 19) ? "few" : f$6 != 0 ? "many" : "other";
|
|
5249
5249
|
},
|
|
5250
5250
|
lv: (n$5, ord) => {
|
|
5251
|
-
const s$9 = String(n$5).split("."), f$
|
|
5251
|
+
const s$9 = String(n$5).split("."), f$6 = s$9[1] || "", v$2 = f$6.length, t0 = Number(s$9[0]) == n$5, n10 = t0 && s$9[0].slice(-1), n100 = t0 && s$9[0].slice(-2), f100 = f$6.slice(-2), f10 = f$6.slice(-1);
|
|
5252
5252
|
if (ord) return "other";
|
|
5253
5253
|
return t0 && n10 == 0 || n100 >= 11 && n100 <= 19 || v$2 == 2 && f100 >= 11 && f100 <= 19 ? "zero" : n10 == 1 && n100 != 11 || v$2 == 2 && f10 == 1 && f100 != 11 || v$2 != 2 && f10 == 1 ? "one" : "other";
|
|
5254
5254
|
},
|
|
@@ -5256,7 +5256,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5256
5256
|
mg: b$1,
|
|
5257
5257
|
mgo: a$12,
|
|
5258
5258
|
mk: (n$5, ord) => {
|
|
5259
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5259
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i10 = i$9.slice(-1), i100 = i$9.slice(-2), f10 = f$6.slice(-1), f100 = f$6.slice(-2);
|
|
5260
5260
|
if (ord) return i10 == 1 && i100 != 11 ? "one" : i10 == 2 && i100 != 12 ? "two" : (i10 == 7 || i10 == 8) && i100 != 17 && i100 != 18 ? "many" : "other";
|
|
5261
5261
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? "one" : "other";
|
|
5262
5262
|
},
|
|
@@ -5282,7 +5282,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5282
5282
|
},
|
|
5283
5283
|
my: e$7,
|
|
5284
5284
|
nah: a$12,
|
|
5285
|
-
naq: f$
|
|
5285
|
+
naq: f$5,
|
|
5286
5286
|
nb: a$12,
|
|
5287
5287
|
nd: a$12,
|
|
5288
5288
|
ne: (n$5, ord) => {
|
|
@@ -5316,7 +5316,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5316
5316
|
return n$5 == 1 && v0 ? "one" : v0 && i10 >= 2 && i10 <= 4 && (i100 < 12 || i100 > 14) ? "few" : v0 && i$9 != 1 && (i10 == 0 || i10 == 1) || v0 && i10 >= 5 && i10 <= 9 || v0 && i100 >= 12 && i100 <= 14 ? "many" : "other";
|
|
5317
5317
|
},
|
|
5318
5318
|
prg: (n$5, ord) => {
|
|
5319
|
-
const s$9 = String(n$5).split("."), f$
|
|
5319
|
+
const s$9 = String(n$5).split("."), f$6 = s$9[1] || "", v$2 = f$6.length, t0 = Number(s$9[0]) == n$5, n10 = t0 && s$9[0].slice(-1), n100 = t0 && s$9[0].slice(-2), f100 = f$6.slice(-2), f10 = f$6.slice(-1);
|
|
5320
5320
|
if (ord) return "other";
|
|
5321
5321
|
return t0 && n10 == 0 || n100 >= 11 && n100 <= 19 || v$2 == 2 && f100 >= 11 && f100 <= 19 ? "zero" : n10 == 1 && n100 != 11 || v$2 == 2 && f10 == 1 && f100 != 11 || v$2 != 2 && f10 == 1 ? "one" : "other";
|
|
5322
5322
|
},
|
|
@@ -5346,7 +5346,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5346
5346
|
rwk: a$12,
|
|
5347
5347
|
sah: e$7,
|
|
5348
5348
|
saq: a$12,
|
|
5349
|
-
sat: f$
|
|
5349
|
+
sat: f$5,
|
|
5350
5350
|
sc: (n$5, ord) => {
|
|
5351
5351
|
const v0 = !String(n$5).split(".")[1];
|
|
5352
5352
|
if (ord) return n$5 == 11 || n$5 == 8 || n$5 == 80 || n$5 == 800 ? "many" : "other";
|
|
@@ -5359,12 +5359,12 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5359
5359
|
},
|
|
5360
5360
|
sd: a$12,
|
|
5361
5361
|
sdh: a$12,
|
|
5362
|
-
se: f$
|
|
5362
|
+
se: f$5,
|
|
5363
5363
|
seh: a$12,
|
|
5364
5364
|
ses: e$7,
|
|
5365
5365
|
sg: e$7,
|
|
5366
5366
|
sh: (n$5, ord) => {
|
|
5367
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5367
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i10 = i$9.slice(-1), i100 = i$9.slice(-2), f10 = f$6.slice(-1), f100 = f$6.slice(-2);
|
|
5368
5368
|
if (ord) return "other";
|
|
5369
5369
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? "one" : v0 && i10 >= 2 && i10 <= 4 && (i100 < 12 || i100 > 14) || f10 >= 2 && f10 <= 4 && (f100 < 12 || f100 > 14) ? "few" : "other";
|
|
5370
5370
|
},
|
|
@@ -5374,9 +5374,9 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5374
5374
|
return n$5 >= 0 && n$5 <= 1 ? "one" : t0 && n$5 >= 2 && n$5 <= 10 ? "few" : "other";
|
|
5375
5375
|
},
|
|
5376
5376
|
si: (n$5, ord) => {
|
|
5377
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5377
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "";
|
|
5378
5378
|
if (ord) return "other";
|
|
5379
|
-
return n$5 == 0 || n$5 == 1 || i$9 == 0 && f$
|
|
5379
|
+
return n$5 == 0 || n$5 == 1 || i$9 == 0 && f$6 == 1 ? "one" : "other";
|
|
5380
5380
|
},
|
|
5381
5381
|
sk: (n$5, ord) => {
|
|
5382
5382
|
const s$9 = String(n$5).split("."), i$9 = s$9[0], v0 = !s$9[1];
|
|
@@ -5388,11 +5388,11 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5388
5388
|
if (ord) return "other";
|
|
5389
5389
|
return v0 && i100 == 1 ? "one" : v0 && i100 == 2 ? "two" : v0 && (i100 == 3 || i100 == 4) || !v0 ? "few" : "other";
|
|
5390
5390
|
},
|
|
5391
|
-
sma: f$
|
|
5392
|
-
smi: f$
|
|
5393
|
-
smj: f$
|
|
5394
|
-
smn: f$
|
|
5395
|
-
sms: f$
|
|
5391
|
+
sma: f$5,
|
|
5392
|
+
smi: f$5,
|
|
5393
|
+
smj: f$5,
|
|
5394
|
+
smn: f$5,
|
|
5395
|
+
sms: f$5,
|
|
5396
5396
|
sn: a$12,
|
|
5397
5397
|
so: a$12,
|
|
5398
5398
|
sq: (n$5, ord) => {
|
|
@@ -5401,7 +5401,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5401
5401
|
return n$5 == 1 ? "one" : "other";
|
|
5402
5402
|
},
|
|
5403
5403
|
sr: (n$5, ord) => {
|
|
5404
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5404
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i10 = i$9.slice(-1), i100 = i$9.slice(-2), f10 = f$6.slice(-1), f100 = f$6.slice(-2);
|
|
5405
5405
|
if (ord) return "other";
|
|
5406
5406
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? "one" : v0 && i10 >= 2 && i10 <= 4 && (i100 < 12 || i100 > 14) || f10 >= 2 && f10 <= 4 && (f100 < 12 || f100 > 14) ? "few" : "other";
|
|
5407
5407
|
},
|
|
@@ -5428,7 +5428,7 @@ var require_plurals = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mak
|
|
|
5428
5428
|
return n$5 == 1 ? "one" : "other";
|
|
5429
5429
|
},
|
|
5430
5430
|
tl: (n$5, ord) => {
|
|
5431
|
-
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$
|
|
5431
|
+
const s$9 = String(n$5).split("."), i$9 = s$9[0], f$6 = s$9[1] || "", v0 = !s$9[1], i10 = i$9.slice(-1), f10 = f$6.slice(-1);
|
|
5432
5432
|
if (ord) return n$5 == 1 ? "one" : "other";
|
|
5433
5433
|
return v0 && (i$9 == 1 || i$9 == 2 || i$9 == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? "one" : "other";
|
|
5434
5434
|
},
|
|
@@ -10183,9 +10183,9 @@ var en_default = {
|
|
|
10183
10183
|
"label": "Vuetify Nuxt Module",
|
|
10184
10184
|
"hint": "Use vuetify-nuxt-module instead of local plugin"
|
|
10185
10185
|
},
|
|
10186
|
-
"
|
|
10186
|
+
"mcp": {
|
|
10187
10187
|
"label": "MCP",
|
|
10188
|
-
"hint": "
|
|
10188
|
+
"hint": "Use official MCP Vuetify integration"
|
|
10189
10189
|
}
|
|
10190
10190
|
},
|
|
10191
10191
|
"client_hints": { "enable": "Enable Client Hints? (Requires SSR)" },
|
|
@@ -10368,9 +10368,9 @@ var ru_default = {
|
|
|
10368
10368
|
"label": "Vuetify Nuxt Module",
|
|
10369
10369
|
"hint": "Использовать vuetify-nuxt-module вместо локального плагина"
|
|
10370
10370
|
},
|
|
10371
|
-
"
|
|
10371
|
+
"mcp": {
|
|
10372
10372
|
"label": "MCP",
|
|
10373
|
-
"hint": "
|
|
10373
|
+
"hint": "Добавить официальный MCP Vuetify сервер"
|
|
10374
10374
|
}
|
|
10375
10375
|
},
|
|
10376
10376
|
"package_manager": { "select": "Какой менеджер пакетов вы хотите использовать?" },
|
|
@@ -11137,7 +11137,7 @@ const r = Object.create(null), i$8 = (e$8) => globalThis.process?.env || import.
|
|
|
11137
11137
|
const e$8 = i$8(true);
|
|
11138
11138
|
return Object.keys(e$8);
|
|
11139
11139
|
}
|
|
11140
|
-
}), t$6 = typeof process < "u" && process.env && process.env.NODE_ENV || "", f$
|
|
11140
|
+
}), t$6 = typeof process < "u" && process.env && process.env.NODE_ENV || "", f$4 = [
|
|
11141
11141
|
["APPVEYOR"],
|
|
11142
11142
|
[
|
|
11143
11143
|
"AWS_AMPLIFY",
|
|
@@ -11229,7 +11229,7 @@ const r = Object.create(null), i$8 = (e$8) => globalThis.process?.env || import.
|
|
|
11229
11229
|
]
|
|
11230
11230
|
];
|
|
11231
11231
|
function b() {
|
|
11232
|
-
if (globalThis.process?.env) for (const e$8 of f$
|
|
11232
|
+
if (globalThis.process?.env) for (const e$8 of f$4) {
|
|
11233
11233
|
const s$9 = e$8[1] || e$8[0];
|
|
11234
11234
|
if (globalThis.process?.env[s$9]) return {
|
|
11235
11235
|
name: e$8[0].toLowerCase(),
|
|
@@ -11419,7 +11419,7 @@ function createConsola$1(options$1 = {}) {
|
|
|
11419
11419
|
defaults: { level },
|
|
11420
11420
|
stdout: process.stdout,
|
|
11421
11421
|
stderr: process.stderr,
|
|
11422
|
-
prompt: (...args$2) => import("./prompt-
|
|
11422
|
+
prompt: (...args$2) => import("./prompt-CAXcFxNm.mjs").then((m$3) => m$3.prompt(...args$2)),
|
|
11423
11423
|
reporters: options$1.reporters || [options$1.fancy ?? !(T$2 || R$3) ? new FancyReporter() : new BasicReporter()],
|
|
11424
11424
|
...options$1
|
|
11425
11425
|
});
|
|
@@ -13369,13 +13369,13 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
13369
13369
|
};
|
|
13370
13370
|
e$6(m$3, "HeadersTimeoutError");
|
|
13371
13371
|
let c$7 = m$3;
|
|
13372
|
-
const f$
|
|
13372
|
+
const f$6 = class f$7 extends A$1 {
|
|
13373
13373
|
constructor(oA) {
|
|
13374
13374
|
super(oA), this.name = "HeadersOverflowError", this.message = oA || "Headers Overflow Error", this.code = "UND_ERR_HEADERS_OVERFLOW";
|
|
13375
13375
|
}
|
|
13376
13376
|
};
|
|
13377
|
-
e$6(f$
|
|
13378
|
-
let B = f$
|
|
13377
|
+
e$6(f$6, "HeadersOverflowError");
|
|
13378
|
+
let B = f$6;
|
|
13379
13379
|
const n$5 = class n$6 extends A$1 {
|
|
13380
13380
|
constructor(oA) {
|
|
13381
13381
|
super(oA), this.name = "BodyTimeoutError", this.message = oA || "Body Timeout Error", this.code = "UND_ERR_BODY_TIMEOUT";
|
|
@@ -13808,11 +13808,11 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
13808
13808
|
return W$2;
|
|
13809
13809
|
}
|
|
13810
13810
|
e$6(m$3, "parseURL");
|
|
13811
|
-
function f$
|
|
13811
|
+
function f$6(W$2) {
|
|
13812
13812
|
if (W$2 = m$3(W$2), W$2.pathname !== "/" || W$2.search || W$2.hash) throw new o$7("invalid url");
|
|
13813
13813
|
return W$2;
|
|
13814
13814
|
}
|
|
13815
|
-
e$6(f$
|
|
13815
|
+
e$6(f$6, "parseOrigin");
|
|
13816
13816
|
function n$5(W$2) {
|
|
13817
13817
|
if (W$2[0] === "[") {
|
|
13818
13818
|
const yA = W$2.indexOf("]");
|
|
@@ -14076,7 +14076,7 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14076
14076
|
toUSVString: wA,
|
|
14077
14077
|
isUSVString: vA,
|
|
14078
14078
|
isBlobLike: _$3,
|
|
14079
|
-
parseOrigin: f$
|
|
14079
|
+
parseOrigin: f$6,
|
|
14080
14080
|
parseURL: m$3,
|
|
14081
14081
|
getServerName: C$2,
|
|
14082
14082
|
isStream: V$2,
|
|
@@ -14207,7 +14207,7 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14207
14207
|
if (hasRequiredRequest$1) return request$1;
|
|
14208
14208
|
hasRequiredRequest$1 = 1;
|
|
14209
14209
|
const { InvalidArgumentError: A$1, NotSupportedError: k$3 } = requireErrors(), c$7 = require$$0__default$1, { isValidHTTPToken: B, isValidHeaderValue: t$8, isStream: y$5, destroy: R$4, isBuffer: F$4, isFormDataLike: Q$2, isIterable: D$2, isBlobLike: U$1, buildURL: r$3, validateHandler: o$7, getServerName: N$2, normalizedMethodRecords: l$2 } = requireUtil$7(), { channels: I$2 } = requireDiagnostics(), { headerNameLowerCasedRecord: p$2 } = requireConstants$4(), b$2 = /[^\u0021-\u00ff]/, G$3 = Symbol("handler"), _$3 = class _$4 {
|
|
14210
|
-
constructor(M$2, { path: Y$1, method: m$3, body: f$
|
|
14210
|
+
constructor(M$2, { path: Y$1, method: m$3, body: f$6, headers: n$5, query: C$2, idempotent: w$4, blocking: S$3, upgrade: x$3, headersTimeout: z$3, bodyTimeout: $, reset: K$2, throwOnError: nA, expectContinue: iA, servername: uA }, RA) {
|
|
14211
14211
|
if (typeof Y$1 != "string") throw new A$1("path must be a string");
|
|
14212
14212
|
if (Y$1[0] !== "/" && !(Y$1.startsWith("http://") || Y$1.startsWith("https://")) && m$3 !== "CONNECT") throw new A$1("path must be an absolute URL or start with a slash");
|
|
14213
14213
|
if (b$2.test(Y$1)) throw new A$1("invalid request path");
|
|
@@ -14218,20 +14218,20 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14218
14218
|
if ($ != null && (!Number.isFinite($) || $ < 0)) throw new A$1("invalid bodyTimeout");
|
|
14219
14219
|
if (K$2 != null && typeof K$2 != "boolean") throw new A$1("invalid reset");
|
|
14220
14220
|
if (iA != null && typeof iA != "boolean") throw new A$1("invalid expectContinue");
|
|
14221
|
-
if (this.headersTimeout = z$3, this.bodyTimeout = $, this.throwOnError = nA === !0, this.method = m$3, this.abort = null, f$
|
|
14222
|
-
else if (y$5(f$
|
|
14223
|
-
this.body = f$
|
|
14221
|
+
if (this.headersTimeout = z$3, this.bodyTimeout = $, this.throwOnError = nA === !0, this.method = m$3, this.abort = null, f$6 == null) this.body = null;
|
|
14222
|
+
else if (y$5(f$6)) {
|
|
14223
|
+
this.body = f$6;
|
|
14224
14224
|
const IA = this.body._readableState;
|
|
14225
14225
|
(!IA || !IA.autoDestroy) && (this.endHandler = e$6(function() {
|
|
14226
14226
|
R$4(this);
|
|
14227
14227
|
}, "autoDestroy"), this.body.on("end", this.endHandler)), this.errorHandler = (CA) => {
|
|
14228
14228
|
this.abort ? this.abort(CA) : this.error = CA;
|
|
14229
14229
|
}, this.body.on("error", this.errorHandler);
|
|
14230
|
-
} else if (F$4(f$
|
|
14231
|
-
else if (ArrayBuffer.isView(f$
|
|
14232
|
-
else if (f$
|
|
14233
|
-
else if (typeof f$
|
|
14234
|
-
else if (Q$2(f$
|
|
14230
|
+
} else if (F$4(f$6)) this.body = f$6.byteLength ? f$6 : null;
|
|
14231
|
+
else if (ArrayBuffer.isView(f$6)) this.body = f$6.buffer.byteLength ? Buffer.from(f$6.buffer, f$6.byteOffset, f$6.byteLength) : null;
|
|
14232
|
+
else if (f$6 instanceof ArrayBuffer) this.body = f$6.byteLength ? Buffer.from(f$6) : null;
|
|
14233
|
+
else if (typeof f$6 == "string") this.body = f$6.length ? Buffer.from(f$6) : null;
|
|
14234
|
+
else if (Q$2(f$6) || D$2(f$6) || U$1(f$6)) this.body = f$6;
|
|
14235
14235
|
else throw new A$1("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");
|
|
14236
14236
|
if (this.completed = !1, this.aborted = !1, this.upgrade = x$3 || null, this.path = C$2 ? r$3(Y$1, C$2) : Y$1, this.origin = M$2, this.idempotent = w$4 ?? (m$3 === "HEAD" || m$3 === "GET"), this.blocking = S$3 ?? !1, this.reset = K$2 ?? null, this.host = null, this.contentLength = null, this.contentType = null, this.headers = [], this.expectContinue = iA ?? !1, Array.isArray(n$5)) {
|
|
14237
14237
|
if (n$5.length % 2 !== 0) throw new A$1("headers array must be even");
|
|
@@ -14268,17 +14268,17 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14268
14268
|
onResponseStarted() {
|
|
14269
14269
|
return this[G$3].onResponseStarted?.();
|
|
14270
14270
|
}
|
|
14271
|
-
onHeaders(M$2, Y$1, m$3, f$
|
|
14271
|
+
onHeaders(M$2, Y$1, m$3, f$6) {
|
|
14272
14272
|
c$7(!this.aborted), c$7(!this.completed), I$2.headers.hasSubscribers && I$2.headers.publish({
|
|
14273
14273
|
request: this,
|
|
14274
14274
|
response: {
|
|
14275
14275
|
statusCode: M$2,
|
|
14276
14276
|
headers: Y$1,
|
|
14277
|
-
statusText: f$
|
|
14277
|
+
statusText: f$6
|
|
14278
14278
|
}
|
|
14279
14279
|
});
|
|
14280
14280
|
try {
|
|
14281
|
-
return this[G$3].onHeaders(M$2, Y$1, m$3, f$
|
|
14281
|
+
return this[G$3].onHeaders(M$2, Y$1, m$3, f$6);
|
|
14282
14282
|
} catch (n$5) {
|
|
14283
14283
|
this.abort(n$5);
|
|
14284
14284
|
}
|
|
@@ -14326,16 +14326,16 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14326
14326
|
let m$3 = p$2[M$2];
|
|
14327
14327
|
if (m$3 === void 0 && (m$3 = M$2.toLowerCase(), p$2[m$3] === void 0 && !B(m$3))) throw new A$1("invalid header key");
|
|
14328
14328
|
if (Array.isArray(Y$1)) {
|
|
14329
|
-
const f$
|
|
14329
|
+
const f$6 = [];
|
|
14330
14330
|
for (let n$5 = 0; n$5 < Y$1.length; n$5++) if (typeof Y$1[n$5] == "string") {
|
|
14331
14331
|
if (!t$8(Y$1[n$5])) throw new A$1(`invalid ${M$2} header`);
|
|
14332
|
-
f$
|
|
14333
|
-
} else if (Y$1[n$5] === null) f$
|
|
14332
|
+
f$6.push(Y$1[n$5]);
|
|
14333
|
+
} else if (Y$1[n$5] === null) f$6.push("");
|
|
14334
14334
|
else {
|
|
14335
14335
|
if (typeof Y$1[n$5] == "object") throw new A$1(`invalid ${M$2} header`);
|
|
14336
|
-
f$
|
|
14336
|
+
f$6.push(`${Y$1[n$5]}`);
|
|
14337
14337
|
}
|
|
14338
|
-
Y$1 = f$
|
|
14338
|
+
Y$1 = f$6;
|
|
14339
14339
|
} else if (typeof Y$1 == "string") {
|
|
14340
14340
|
if (!t$8(Y$1)) throw new A$1(`invalid ${M$2} header`);
|
|
14341
14341
|
} else Y$1 === null ? Y$1 = "" : Y$1 = `${Y$1}`;
|
|
@@ -14348,9 +14348,9 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14348
14348
|
else {
|
|
14349
14349
|
if (m$3 === "transfer-encoding" || m$3 === "keep-alive" || m$3 === "upgrade") throw new A$1(`invalid ${m$3} header`);
|
|
14350
14350
|
if (m$3 === "connection") {
|
|
14351
|
-
const f$
|
|
14352
|
-
if (f$
|
|
14353
|
-
f$
|
|
14351
|
+
const f$6 = typeof Y$1 == "string" ? Y$1.toLowerCase() : null;
|
|
14352
|
+
if (f$6 !== "close" && f$6 !== "keep-alive") throw new A$1("invalid connection header");
|
|
14353
|
+
f$6 === "close" && (q$2.reset = !0);
|
|
14354
14354
|
} else {
|
|
14355
14355
|
if (m$3 === "expect") throw new k$3("expect header not supported");
|
|
14356
14356
|
q$2.headers.push(M$2, Y$1);
|
|
@@ -14612,14 +14612,14 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14612
14612
|
path: p$2,
|
|
14613
14613
|
...J$2
|
|
14614
14614
|
}, _$3 = new Q$2(I$2 ?? 100);
|
|
14615
|
-
return b$2 = b$2 ?? 1e4, l$2 = l$2 ?? !1, e$6(function({ hostname: M$2, host: Y$1, protocol: m$3, port: f$
|
|
14615
|
+
return b$2 = b$2 ?? 1e4, l$2 = l$2 ?? !1, e$6(function({ hostname: M$2, host: Y$1, protocol: m$3, port: f$6, servername: n$5, localAddress: C$2, httpSocket: w$4 }, S$3) {
|
|
14616
14616
|
let x$3;
|
|
14617
14617
|
if (m$3 === "https:") {
|
|
14618
14618
|
F$4 || (F$4 = require$$5__default), n$5 = n$5 || V$2.servername || c$7.getServerName(Y$1) || null;
|
|
14619
14619
|
const $ = n$5 || M$2;
|
|
14620
14620
|
k$3($);
|
|
14621
14621
|
const K$2 = G$3 || _$3.get($) || null;
|
|
14622
|
-
f$
|
|
14622
|
+
f$6 = f$6 || 443, x$3 = F$4.connect({
|
|
14623
14623
|
highWaterMark: 16384,
|
|
14624
14624
|
...V$2,
|
|
14625
14625
|
servername: n$5,
|
|
@@ -14627,16 +14627,16 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14627
14627
|
localAddress: C$2,
|
|
14628
14628
|
ALPNProtocols: l$2 ? ["http/1.1", "h2"] : ["http/1.1"],
|
|
14629
14629
|
socket: w$4,
|
|
14630
|
-
port: f$
|
|
14630
|
+
port: f$6,
|
|
14631
14631
|
host: M$2
|
|
14632
14632
|
}), x$3.on("session", function(nA) {
|
|
14633
14633
|
_$3.set($, nA);
|
|
14634
14634
|
});
|
|
14635
|
-
} else k$3(!w$4, "httpSocket can only be sent on TLS update"), f$
|
|
14635
|
+
} else k$3(!w$4, "httpSocket can only be sent on TLS update"), f$6 = f$6 || 80, x$3 = A$1.connect({
|
|
14636
14636
|
highWaterMark: 64 * 1024,
|
|
14637
14637
|
...V$2,
|
|
14638
14638
|
localAddress: C$2,
|
|
14639
|
-
port: f$
|
|
14639
|
+
port: f$6,
|
|
14640
14640
|
host: M$2
|
|
14641
14641
|
});
|
|
14642
14642
|
if (V$2.keepAlive == null || V$2.keepAlive) {
|
|
@@ -14646,7 +14646,7 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
14646
14646
|
const z$3 = U$1(new WeakRef(x$3), {
|
|
14647
14647
|
timeout: b$2,
|
|
14648
14648
|
hostname: M$2,
|
|
14649
|
-
port: f$
|
|
14649
|
+
port: f$6
|
|
14650
14650
|
});
|
|
14651
14651
|
return x$3.setNoDelay(!0).once(m$3 === "https:" ? "secureConnect" : "connect", function() {
|
|
14652
14652
|
if (queueMicrotask(z$3), S$3) {
|
|
@@ -15166,14 +15166,14 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
15166
15166
|
const A$1 = require$$0__default$1, k$3 = new TextEncoder(), c$7 = /^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/, B = /[\u000A\u000D\u0009\u0020]/, t$8 = /[\u0009\u000A\u000C\u000D\u0020]/g, y$5 = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;
|
|
15167
15167
|
function R$4(m$3) {
|
|
15168
15168
|
A$1(m$3.protocol === "data:");
|
|
15169
|
-
let f$
|
|
15170
|
-
f$
|
|
15169
|
+
let f$6 = F$4(m$3, !0);
|
|
15170
|
+
f$6 = f$6.slice(5);
|
|
15171
15171
|
const n$5 = { position: 0 };
|
|
15172
|
-
let C$2 = D$2(",", f$
|
|
15172
|
+
let C$2 = D$2(",", f$6, n$5);
|
|
15173
15173
|
const w$4 = C$2.length;
|
|
15174
|
-
if (C$2 = _$3(C$2, !0, !0), n$5.position >= f$
|
|
15174
|
+
if (C$2 = _$3(C$2, !0, !0), n$5.position >= f$6.length) return "failure";
|
|
15175
15175
|
n$5.position++;
|
|
15176
|
-
let x$3 = U$1(f$
|
|
15176
|
+
let x$3 = U$1(f$6.slice(w$4 + 1));
|
|
15177
15177
|
if (/;(\u0020){0,}base64$/i.test(C$2)) {
|
|
15178
15178
|
if (x$3 = I$2(M$2(x$3)), x$3 === "failure") return "failure";
|
|
15179
15179
|
C$2 = C$2.slice(0, -6), C$2 = C$2.replace(/(\u0020)+$/, ""), C$2 = C$2.slice(0, -1);
|
|
@@ -15186,21 +15186,21 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
15186
15186
|
};
|
|
15187
15187
|
}
|
|
15188
15188
|
e$6(R$4, "dataURLProcessor");
|
|
15189
|
-
function F$4(m$3, f$
|
|
15190
|
-
if (!f$
|
|
15189
|
+
function F$4(m$3, f$6 = !1) {
|
|
15190
|
+
if (!f$6) return m$3.href;
|
|
15191
15191
|
const n$5 = m$3.href, C$2 = m$3.hash.length, w$4 = C$2 === 0 ? n$5 : n$5.substring(0, n$5.length - C$2);
|
|
15192
15192
|
return !C$2 && n$5.endsWith("#") ? w$4.slice(0, -1) : w$4;
|
|
15193
15193
|
}
|
|
15194
15194
|
e$6(F$4, "URLSerializer");
|
|
15195
|
-
function Q$2(m$3, f$
|
|
15195
|
+
function Q$2(m$3, f$6, n$5) {
|
|
15196
15196
|
let C$2 = "";
|
|
15197
|
-
for (; n$5.position < f$
|
|
15197
|
+
for (; n$5.position < f$6.length && m$3(f$6[n$5.position]);) C$2 += f$6[n$5.position], n$5.position++;
|
|
15198
15198
|
return C$2;
|
|
15199
15199
|
}
|
|
15200
15200
|
e$6(Q$2, "collectASequenceOfCodePoints");
|
|
15201
|
-
function D$2(m$3, f$
|
|
15202
|
-
const C$2 = f$
|
|
15203
|
-
return C$2 === -1 ? (n$5.position = f$
|
|
15201
|
+
function D$2(m$3, f$6, n$5) {
|
|
15202
|
+
const C$2 = f$6.indexOf(m$3, n$5.position), w$4 = n$5.position;
|
|
15203
|
+
return C$2 === -1 ? (n$5.position = f$6.length, f$6.slice(w$4)) : (n$5.position = C$2, f$6.slice(w$4, n$5.position));
|
|
15204
15204
|
}
|
|
15205
15205
|
e$6(D$2, "collectASequenceOfCodePointsFast");
|
|
15206
15206
|
function U$1(m$3) {
|
|
@@ -15216,21 +15216,21 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
15216
15216
|
}
|
|
15217
15217
|
e$6(o$7, "hexByteToNumber");
|
|
15218
15218
|
function N$2(m$3) {
|
|
15219
|
-
const f$
|
|
15219
|
+
const f$6 = m$3.length, n$5 = new Uint8Array(f$6);
|
|
15220
15220
|
let C$2 = 0;
|
|
15221
|
-
for (let w$4 = 0; w$4 < f$
|
|
15221
|
+
for (let w$4 = 0; w$4 < f$6; ++w$4) {
|
|
15222
15222
|
const S$3 = m$3[w$4];
|
|
15223
15223
|
S$3 !== 37 ? n$5[C$2++] = S$3 : S$3 === 37 && !(r$3(m$3[w$4 + 1]) && r$3(m$3[w$4 + 2])) ? n$5[C$2++] = 37 : (n$5[C$2++] = o$7(m$3[w$4 + 1]) << 4 | o$7(m$3[w$4 + 2]), w$4 += 2);
|
|
15224
15224
|
}
|
|
15225
|
-
return f$
|
|
15225
|
+
return f$6 === C$2 ? n$5 : n$5.subarray(0, C$2);
|
|
15226
15226
|
}
|
|
15227
15227
|
e$6(N$2, "percentDecode");
|
|
15228
15228
|
function l$2(m$3) {
|
|
15229
15229
|
m$3 = J$2(m$3, !0, !0);
|
|
15230
|
-
const f$
|
|
15231
|
-
if (n$5.length === 0 || !c$7.test(n$5) || f$
|
|
15232
|
-
f$
|
|
15233
|
-
let C$2 = D$2(";", m$3, f$
|
|
15230
|
+
const f$6 = { position: 0 }, n$5 = D$2("/", m$3, f$6);
|
|
15231
|
+
if (n$5.length === 0 || !c$7.test(n$5) || f$6.position > m$3.length) return "failure";
|
|
15232
|
+
f$6.position++;
|
|
15233
|
+
let C$2 = D$2(";", m$3, f$6);
|
|
15234
15234
|
if (C$2 = J$2(C$2, !1, !0), C$2.length === 0 || !c$7.test(C$2)) return "failure";
|
|
15235
15235
|
const w$4 = n$5.toLowerCase(), S$3 = C$2.toLowerCase(), x$3 = {
|
|
15236
15236
|
type: w$4,
|
|
@@ -15238,17 +15238,17 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
15238
15238
|
parameters: /* @__PURE__ */ new Map(),
|
|
15239
15239
|
essence: `${w$4}/${S$3}`
|
|
15240
15240
|
};
|
|
15241
|
-
for (; f$
|
|
15242
|
-
f$
|
|
15243
|
-
let z$3 = Q$2((K$2) => K$2 !== ";" && K$2 !== "=", m$3, f$
|
|
15244
|
-
if (z$3 = z$3.toLowerCase(), f$
|
|
15245
|
-
if (m$3[f$
|
|
15246
|
-
f$
|
|
15247
|
-
}
|
|
15248
|
-
if (f$
|
|
15241
|
+
for (; f$6.position < m$3.length;) {
|
|
15242
|
+
f$6.position++, Q$2((K$2) => B.test(K$2), m$3, f$6);
|
|
15243
|
+
let z$3 = Q$2((K$2) => K$2 !== ";" && K$2 !== "=", m$3, f$6);
|
|
15244
|
+
if (z$3 = z$3.toLowerCase(), f$6.position < m$3.length) {
|
|
15245
|
+
if (m$3[f$6.position] === ";") continue;
|
|
15246
|
+
f$6.position++;
|
|
15247
|
+
}
|
|
15248
|
+
if (f$6.position > m$3.length) break;
|
|
15249
15249
|
let $ = null;
|
|
15250
|
-
if (m$3[f$
|
|
15251
|
-
else if ($ = D$2(";", m$3, f$
|
|
15250
|
+
if (m$3[f$6.position] === "\"") $ = p$2(m$3, f$6, !0), D$2(";", m$3, f$6);
|
|
15251
|
+
else if ($ = D$2(";", m$3, f$6), $ = J$2($, !1, !0), $.length === 0) continue;
|
|
15252
15252
|
z$3.length !== 0 && c$7.test(z$3) && ($.length === 0 || y$5.test($)) && !x$3.parameters.has(z$3) && x$3.parameters.set(z$3, $);
|
|
15253
15253
|
}
|
|
15254
15254
|
return x$3;
|
|
@@ -15256,36 +15256,36 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
15256
15256
|
e$6(l$2, "parseMIMEType");
|
|
15257
15257
|
function I$2(m$3) {
|
|
15258
15258
|
m$3 = m$3.replace(t$8, "");
|
|
15259
|
-
let f$
|
|
15260
|
-
if (f$
|
|
15259
|
+
let f$6 = m$3.length;
|
|
15260
|
+
if (f$6 % 4 === 0 && m$3.charCodeAt(f$6 - 1) === 61 && (--f$6, m$3.charCodeAt(f$6 - 1) === 61 && --f$6), f$6 % 4 === 1 || /[^+/0-9A-Za-z]/.test(m$3.length === f$6 ? m$3 : m$3.substring(0, f$6))) return "failure";
|
|
15261
15261
|
const n$5 = Buffer.from(m$3, "base64");
|
|
15262
15262
|
return new Uint8Array(n$5.buffer, n$5.byteOffset, n$5.byteLength);
|
|
15263
15263
|
}
|
|
15264
15264
|
e$6(I$2, "forgivingBase64");
|
|
15265
|
-
function p$2(m$3, f$
|
|
15266
|
-
const C$2 = f$
|
|
15265
|
+
function p$2(m$3, f$6, n$5) {
|
|
15266
|
+
const C$2 = f$6.position;
|
|
15267
15267
|
let w$4 = "";
|
|
15268
|
-
for (A$1(m$3[f$
|
|
15269
|
-
const S$3 = m$3[f$
|
|
15270
|
-
if (f$
|
|
15271
|
-
if (f$
|
|
15268
|
+
for (A$1(m$3[f$6.position] === "\""), f$6.position++; w$4 += Q$2((x$3) => x$3 !== "\"" && x$3 !== "\\", m$3, f$6), !(f$6.position >= m$3.length);) {
|
|
15269
|
+
const S$3 = m$3[f$6.position];
|
|
15270
|
+
if (f$6.position++, S$3 === "\\") {
|
|
15271
|
+
if (f$6.position >= m$3.length) {
|
|
15272
15272
|
w$4 += "\\";
|
|
15273
15273
|
break;
|
|
15274
15274
|
}
|
|
15275
|
-
w$4 += m$3[f$
|
|
15275
|
+
w$4 += m$3[f$6.position], f$6.position++;
|
|
15276
15276
|
} else {
|
|
15277
15277
|
A$1(S$3 === "\"");
|
|
15278
15278
|
break;
|
|
15279
15279
|
}
|
|
15280
15280
|
}
|
|
15281
|
-
return n$5 ? w$4 : m$3.slice(C$2, f$
|
|
15281
|
+
return n$5 ? w$4 : m$3.slice(C$2, f$6.position);
|
|
15282
15282
|
}
|
|
15283
15283
|
e$6(p$2, "collectAnHTTPQuotedString");
|
|
15284
15284
|
function b$2(m$3) {
|
|
15285
15285
|
A$1(m$3 !== "failure");
|
|
15286
|
-
const { parameters: f$
|
|
15286
|
+
const { parameters: f$6, essence: n$5 } = m$3;
|
|
15287
15287
|
let C$2 = n$5;
|
|
15288
|
-
for (let [w$4, S$3] of f$
|
|
15288
|
+
for (let [w$4, S$3] of f$6.entries()) C$2 += ";", C$2 += w$4, C$2 += "=", c$7.test(S$3) || (S$3 = S$3.replace(/(\\|")/g, "\\$1"), S$3 = "\"" + S$3, S$3 += "\""), C$2 += S$3;
|
|
15289
15289
|
return C$2;
|
|
15290
15290
|
}
|
|
15291
15291
|
e$6(b$2, "serializeAMimeType");
|
|
@@ -15293,30 +15293,30 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
15293
15293
|
return m$3 === 13 || m$3 === 10 || m$3 === 9 || m$3 === 32;
|
|
15294
15294
|
}
|
|
15295
15295
|
e$6(G$3, "isHTTPWhiteSpace");
|
|
15296
|
-
function J$2(m$3, f$
|
|
15297
|
-
return q$2(m$3, f$
|
|
15296
|
+
function J$2(m$3, f$6 = !0, n$5 = !0) {
|
|
15297
|
+
return q$2(m$3, f$6, n$5, G$3);
|
|
15298
15298
|
}
|
|
15299
15299
|
e$6(J$2, "removeHTTPWhitespace");
|
|
15300
15300
|
function V$2(m$3) {
|
|
15301
15301
|
return m$3 === 13 || m$3 === 10 || m$3 === 9 || m$3 === 12 || m$3 === 32;
|
|
15302
15302
|
}
|
|
15303
15303
|
e$6(V$2, "isASCIIWhitespace");
|
|
15304
|
-
function _$3(m$3, f$
|
|
15305
|
-
return q$2(m$3, f$
|
|
15304
|
+
function _$3(m$3, f$6 = !0, n$5 = !0) {
|
|
15305
|
+
return q$2(m$3, f$6, n$5, V$2);
|
|
15306
15306
|
}
|
|
15307
15307
|
e$6(_$3, "removeASCIIWhitespace");
|
|
15308
|
-
function q$2(m$3, f$
|
|
15308
|
+
function q$2(m$3, f$6, n$5, C$2) {
|
|
15309
15309
|
let w$4 = 0, S$3 = m$3.length - 1;
|
|
15310
|
-
if (f$
|
|
15310
|
+
if (f$6) for (; w$4 < m$3.length && C$2(m$3.charCodeAt(w$4));) w$4++;
|
|
15311
15311
|
if (n$5) for (; S$3 > 0 && C$2(m$3.charCodeAt(S$3));) S$3--;
|
|
15312
15312
|
return w$4 === 0 && S$3 === m$3.length - 1 ? m$3 : m$3.slice(w$4, S$3 + 1);
|
|
15313
15313
|
}
|
|
15314
15314
|
e$6(q$2, "removeChars");
|
|
15315
15315
|
function M$2(m$3) {
|
|
15316
|
-
const f$
|
|
15317
|
-
if (65535 > f$
|
|
15316
|
+
const f$6 = m$3.length;
|
|
15317
|
+
if (65535 > f$6) return String.fromCharCode.apply(null, m$3);
|
|
15318
15318
|
let n$5 = "", C$2 = 0, w$4 = 65535;
|
|
15319
|
-
for (; C$2 < f$
|
|
15319
|
+
for (; C$2 < f$6;) C$2 + w$4 > f$6 && (w$4 = f$6 - C$2), n$5 += String.fromCharCode.apply(null, m$3.subarray(C$2, C$2 += w$4));
|
|
15320
15320
|
return n$5;
|
|
15321
15321
|
}
|
|
15322
15322
|
e$6(M$2, "isomorphicDecode");
|
|
@@ -15651,10 +15651,10 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
15651
15651
|
return LA(X$3) && t$8.has(X$3.port) ? "blocked" : "allowed";
|
|
15652
15652
|
}
|
|
15653
15653
|
e$6(m$3, "requestBadPort");
|
|
15654
|
-
function f$
|
|
15654
|
+
function f$6(v$2) {
|
|
15655
15655
|
return v$2 instanceof Error || v$2?.constructor?.name === "Error" || v$2?.constructor?.name === "DOMException";
|
|
15656
15656
|
}
|
|
15657
|
-
e$6(f$
|
|
15657
|
+
e$6(f$6, "isErrorLike");
|
|
15658
15658
|
function n$5(v$2) {
|
|
15659
15659
|
for (let X$3 = 0; X$3 < v$2.length; ++X$3) {
|
|
15660
15660
|
const j$4 = v$2.charCodeAt(X$3);
|
|
@@ -16211,7 +16211,7 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
16211
16211
|
createIterator: ZA,
|
|
16212
16212
|
isValidHeaderName: C$2,
|
|
16213
16213
|
isValidHeaderValue: w$4,
|
|
16214
|
-
isErrorLike: f$
|
|
16214
|
+
isErrorLike: f$6,
|
|
16215
16215
|
fullyReadBody: se$1,
|
|
16216
16216
|
bytesMatch: gA,
|
|
16217
16217
|
isReadableStreamLike: ne$1,
|
|
@@ -16418,14 +16418,14 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
16418
16418
|
F$4(M$2 !== "failure" && M$2.essence === "multipart/form-data");
|
|
16419
16419
|
const Y$1 = M$2.parameters.get("boundary");
|
|
16420
16420
|
if (Y$1 === void 0) return "failure";
|
|
16421
|
-
const m$3 = Buffer.from(`--${Y$1}`, "utf8"), f$
|
|
16421
|
+
const m$3 = Buffer.from(`--${Y$1}`, "utf8"), f$6 = [], n$5 = { position: 0 };
|
|
16422
16422
|
for (; q$2[n$5.position] === 13 && q$2[n$5.position + 1] === 10;) n$5.position += 2;
|
|
16423
16423
|
let C$2 = q$2.length;
|
|
16424
16424
|
for (; q$2[C$2 - 1] === 10 && q$2[C$2 - 2] === 13;) C$2 -= 2;
|
|
16425
16425
|
for (C$2 !== q$2.length && (q$2 = q$2.subarray(0, C$2));;) {
|
|
16426
16426
|
if (q$2.subarray(n$5.position, n$5.position + m$3.length).equals(m$3)) n$5.position += m$3.length;
|
|
16427
16427
|
else return "failure";
|
|
16428
|
-
if (n$5.position === q$2.length - 2 && _$3(q$2, o$7, n$5) || n$5.position === q$2.length - 4 && _$3(q$2, N$2, n$5)) return f$
|
|
16428
|
+
if (n$5.position === q$2.length - 2 && _$3(q$2, o$7, n$5) || n$5.position === q$2.length - 4 && _$3(q$2, N$2, n$5)) return f$6;
|
|
16429
16429
|
if (q$2[n$5.position] !== 13 || q$2[n$5.position + 1] !== 10) return "failure";
|
|
16430
16430
|
n$5.position += 2;
|
|
16431
16431
|
const w$4 = b$2(q$2, n$5);
|
|
@@ -16441,17 +16441,17 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
16441
16441
|
if (q$2[n$5.position] !== 13 || q$2[n$5.position + 1] !== 10) return "failure";
|
|
16442
16442
|
n$5.position += 2;
|
|
16443
16443
|
let nA;
|
|
16444
|
-
x$3 !== null ? (z$3 ?? (z$3 = "text/plain"), l$2(z$3) || (z$3 = ""), nA = new D$2([K$2], x$3, { type: z$3 })) : nA = c$7(Buffer.from(K$2)), F$4(A$1(S$3)), F$4(typeof nA == "string" && A$1(nA) || y$5(nA)), f$
|
|
16444
|
+
x$3 !== null ? (z$3 ?? (z$3 = "text/plain"), l$2(z$3) || (z$3 = ""), nA = new D$2([K$2], x$3, { type: z$3 })) : nA = c$7(Buffer.from(K$2)), F$4(A$1(S$3)), F$4(typeof nA == "string" && A$1(nA) || y$5(nA)), f$6.push(R$4(S$3, nA, x$3));
|
|
16445
16445
|
}
|
|
16446
16446
|
}
|
|
16447
16447
|
e$6(p$2, "multipartFormDataParser");
|
|
16448
16448
|
function b$2(q$2, M$2) {
|
|
16449
|
-
let Y$1 = null, m$3 = null, f$
|
|
16449
|
+
let Y$1 = null, m$3 = null, f$6 = null, n$5 = null;
|
|
16450
16450
|
for (;;) {
|
|
16451
16451
|
if (q$2[M$2.position] === 13 && q$2[M$2.position + 1] === 10) return Y$1 === null ? "failure" : {
|
|
16452
16452
|
name: Y$1,
|
|
16453
16453
|
filename: m$3,
|
|
16454
|
-
contentType: f$
|
|
16454
|
+
contentType: f$6,
|
|
16455
16455
|
encoding: n$5
|
|
16456
16456
|
};
|
|
16457
16457
|
let C$2 = J$2((w$4) => w$4 !== 10 && w$4 !== 13 && w$4 !== 58, q$2, M$2);
|
|
@@ -16466,7 +16466,7 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
16466
16466
|
break;
|
|
16467
16467
|
case "content-type": {
|
|
16468
16468
|
let w$4 = J$2((S$3) => S$3 !== 10 && S$3 !== 13, q$2, M$2);
|
|
16469
|
-
w$4 = V$2(w$4, !1, !0, (S$3) => S$3 === 9 || S$3 === 32), f$
|
|
16469
|
+
w$4 = V$2(w$4, !1, !0, (S$3) => S$3 === 9 || S$3 === 32), f$6 = t$8(w$4);
|
|
16470
16470
|
break;
|
|
16471
16471
|
}
|
|
16472
16472
|
case "content-transfer-encoding": {
|
|
@@ -16495,10 +16495,10 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/node-
|
|
|
16495
16495
|
}
|
|
16496
16496
|
e$6(J$2, "collectASequenceOfBytes");
|
|
16497
16497
|
function V$2(q$2, M$2, Y$1, m$3) {
|
|
16498
|
-
let f$
|
|
16499
|
-
if (M$2) for (; f$
|
|
16498
|
+
let f$6 = 0, n$5 = q$2.length - 1;
|
|
16499
|
+
if (M$2) for (; f$6 < q$2.length && m$3(q$2[f$6]);) f$6++;
|
|
16500
16500
|
for (; n$5 > 0 && m$3(q$2[n$5]);) n$5--;
|
|
16501
|
-
return f$
|
|
16501
|
+
return f$6 === 0 && n$5 === q$2.length - 1 ? q$2 : q$2.subarray(f$6, n$5 + 1);
|
|
16502
16502
|
}
|
|
16503
16503
|
e$6(V$2, "removeChars");
|
|
16504
16504
|
function _$3(q$2, M$2, Y$1) {
|
|
@@ -16613,7 +16613,7 @@ Content-Type: ${NA.type || "application/octet-stream"}\r
|
|
|
16613
16613
|
return K$2 instanceof ReadableStream && (N$2(!A$1.isDisturbed(K$2), "The body has already been consumed."), N$2(!K$2.locked, "The stream is locked.")), Y$1(K$2, nA);
|
|
16614
16614
|
}
|
|
16615
16615
|
e$6(m$3, "safelyExtractBody");
|
|
16616
|
-
function f$
|
|
16616
|
+
function f$6(K$2, nA) {
|
|
16617
16617
|
const [iA, uA] = nA.stream.tee();
|
|
16618
16618
|
return q$2 && M$2.register(K$2, new WeakRef(iA)), nA.stream = iA, {
|
|
16619
16619
|
stream: uA,
|
|
@@ -16621,7 +16621,7 @@ Content-Type: ${NA.type || "application/octet-stream"}\r
|
|
|
16621
16621
|
source: nA.source
|
|
16622
16622
|
};
|
|
16623
16623
|
}
|
|
16624
|
-
e$6(f$
|
|
16624
|
+
e$6(f$6, "cloneBody");
|
|
16625
16625
|
function n$5(K$2) {
|
|
16626
16626
|
if (K$2.aborted) throw new DOMException("The operation was aborted.", "AbortError");
|
|
16627
16627
|
}
|
|
@@ -16701,7 +16701,7 @@ Content-Type: ${NA.type || "application/octet-stream"}\r
|
|
|
16701
16701
|
return e$6($, "bodyMimeType"), body = {
|
|
16702
16702
|
extractBody: Y$1,
|
|
16703
16703
|
safelyExtractBody: m$3,
|
|
16704
|
-
cloneBody: f$
|
|
16704
|
+
cloneBody: f$6,
|
|
16705
16705
|
mixinBody: w$4,
|
|
16706
16706
|
streamRegistry: M$2,
|
|
16707
16707
|
hasFinalizationRegistry: q$2,
|
|
@@ -16713,7 +16713,7 @@ Content-Type: ${NA.type || "application/octet-stream"}\r
|
|
|
16713
16713
|
function requireClientH1() {
|
|
16714
16714
|
if (hasRequiredClientH1) return clientH1;
|
|
16715
16715
|
hasRequiredClientH1 = 1;
|
|
16716
|
-
const A$1 = require$$0__default$1, k$3 = requireUtil$7(), { channels: c$7 } = requireDiagnostics(), B = requireTimers(), { RequestContentLengthMismatchError: t$8, ResponseContentLengthMismatchError: y$5, RequestAbortedError: R$4, HeadersTimeoutError: F$4, HeadersOverflowError: Q$2, SocketError: D$2, InformationalError: U$1, BodyTimeoutError: r$3, HTTPParserError: o$7, ResponseExceededMaxSizeError: N$2 } = requireErrors(), { kUrl: l$2, kReset: I$2, kClient: p$2, kParser: b$2, kBlocking: G$3, kRunning: J$2, kPending: V$2, kSize: _$3, kWriting: q$2, kQueue: M$2, kNoRef: Y$1, kKeepAliveDefaultTimeout: m$3, kHostHeader: f$
|
|
16716
|
+
const A$1 = require$$0__default$1, k$3 = requireUtil$7(), { channels: c$7 } = requireDiagnostics(), B = requireTimers(), { RequestContentLengthMismatchError: t$8, ResponseContentLengthMismatchError: y$5, RequestAbortedError: R$4, HeadersTimeoutError: F$4, HeadersOverflowError: Q$2, SocketError: D$2, InformationalError: U$1, BodyTimeoutError: r$3, HTTPParserError: o$7, ResponseExceededMaxSizeError: N$2 } = requireErrors(), { kUrl: l$2, kReset: I$2, kClient: p$2, kParser: b$2, kBlocking: G$3, kRunning: J$2, kPending: V$2, kSize: _$3, kWriting: q$2, kQueue: M$2, kNoRef: Y$1, kKeepAliveDefaultTimeout: m$3, kHostHeader: f$6, kPendingIdx: n$5, kRunningIdx: C$2, kError: w$4, kPipelining: S$3, kSocket: x$3, kKeepAliveTimeoutValue: z$3, kMaxHeadersSize: $, kKeepAliveMaxTimeout: K$2, kKeepAliveTimeoutThreshold: nA, kHeadersTimeout: iA, kBodyTimeout: uA, kStrictContentLength: RA, kMaxRequests: IA, kCounter: CA, kMaxResponseSize: pA, kOnError: fA, kResume: kA, kHTTPContext: bA } = requireSymbols$4(), gA = requireConstants$3(), DA = Buffer.alloc(0), oA = Buffer[Symbol.species], aA = k$3.addListener, EA = k$3.removeAllListeners;
|
|
16717
16717
|
let sA;
|
|
16718
16718
|
async function NA() {
|
|
16719
16719
|
const GA = process.env.JEST_WORKER_ID ? requireLlhttpWasm() : void 0;
|
|
@@ -16998,7 +16998,7 @@ Content-Type: ${NA.type || "application/octet-stream"}\r
|
|
|
16998
16998
|
let FA = `${lA} ${BA} HTTP/1.1\r
|
|
16999
16999
|
`;
|
|
17000
17000
|
if (typeof hA == "string" ? FA += `host: ${hA}\r
|
|
17001
|
-
` : FA += GA[f$
|
|
17001
|
+
` : FA += GA[f$6], MA ? FA += `connection: upgrade\r
|
|
17002
17002
|
upgrade: ${MA}\r
|
|
17003
17003
|
` : GA[S$3] && !tA[I$2] ? FA += `connection: keep-alive\r
|
|
17004
17004
|
` : FA += `connection: close\r
|
|
@@ -17172,7 +17172,7 @@ ${AA.toString(16)}\r
|
|
|
17172
17172
|
if (hasRequiredClientH2) return clientH2;
|
|
17173
17173
|
hasRequiredClientH2 = 1;
|
|
17174
17174
|
const A$1 = require$$0__default$1, { pipeline: k$3 } = Stream__default, c$7 = requireUtil$7(), { RequestContentLengthMismatchError: B, RequestAbortedError: t$8, SocketError: y$5, InformationalError: R$4 } = requireErrors(), { kUrl: F$4, kReset: Q$2, kClient: D$2, kRunning: U$1, kPending: r$3, kQueue: o$7, kPendingIdx: N$2, kRunningIdx: l$2, kError: I$2, kSocket: p$2, kStrictContentLength: b$2, kOnError: G$3, kMaxConcurrentStreams: J$2, kHTTP2Session: V$2, kResume: _$3, kSize: q$2, kHTTPContext: M$2 } = requireSymbols$4(), Y$1 = Symbol("open streams");
|
|
17175
|
-
let m$3, f$
|
|
17175
|
+
let m$3, f$6 = !1, n$5;
|
|
17176
17176
|
try {
|
|
17177
17177
|
n$5 = __require("node:http2");
|
|
17178
17178
|
} catch {
|
|
@@ -17187,7 +17187,7 @@ ${AA.toString(16)}\r
|
|
|
17187
17187
|
}
|
|
17188
17188
|
e$6(nA, "parseH2Headers");
|
|
17189
17189
|
async function iA(aA, EA) {
|
|
17190
|
-
aA[p$2] = EA, f$
|
|
17190
|
+
aA[p$2] = EA, f$6 || (f$6 = !0, process.emitWarning("H2 support is experimental, expect them to change at any time.", { code: "UNDICI-H2" }));
|
|
17191
17191
|
const sA = n$5.connect(aA[F$4], {
|
|
17192
17192
|
createConnection: e$6(() => EA, "createConnection"),
|
|
17193
17193
|
peerMaxConcurrentStreams: aA[J$2]
|
|
@@ -17515,7 +17515,7 @@ ${AA.toString(16)}\r
|
|
|
17515
17515
|
function requireClient() {
|
|
17516
17516
|
if (hasRequiredClient) return client;
|
|
17517
17517
|
hasRequiredClient = 1;
|
|
17518
|
-
const A$1 = require$$0__default$1, k$3 = require$$0__default$2, c$7 = http__default, B = requireUtil$7(), { channels: t$8 } = requireDiagnostics(), y$5 = requireRequest$1(), R$4 = requireDispatcherBase(), { InvalidArgumentError: F$4, InformationalError: Q$2, ClientDestroyedError: D$2 } = requireErrors(), U$1 = requireConnect(), { kUrl: r$3, kServerName: o$7, kClient: N$2, kBusy: l$2, kConnect: I$2, kResuming: p$2, kRunning: b$2, kPending: G$3, kSize: J$2, kQueue: V$2, kConnected: _$3, kConnecting: q$2, kNeedDrain: M$2, kKeepAliveDefaultTimeout: Y$1, kHostHeader: m$3, kPendingIdx: f$
|
|
17518
|
+
const A$1 = require$$0__default$1, k$3 = require$$0__default$2, c$7 = http__default, B = requireUtil$7(), { channels: t$8 } = requireDiagnostics(), y$5 = requireRequest$1(), R$4 = requireDispatcherBase(), { InvalidArgumentError: F$4, InformationalError: Q$2, ClientDestroyedError: D$2 } = requireErrors(), U$1 = requireConnect(), { kUrl: r$3, kServerName: o$7, kClient: N$2, kBusy: l$2, kConnect: I$2, kResuming: p$2, kRunning: b$2, kPending: G$3, kSize: J$2, kQueue: V$2, kConnected: _$3, kConnecting: q$2, kNeedDrain: M$2, kKeepAliveDefaultTimeout: Y$1, kHostHeader: m$3, kPendingIdx: f$6, kRunningIdx: n$5, kError: C$2, kPipelining: w$4, kKeepAliveTimeoutValue: S$3, kMaxHeadersSize: x$3, kKeepAliveMaxTimeout: z$3, kKeepAliveTimeoutThreshold: $, kHeadersTimeout: K$2, kBodyTimeout: nA, kStrictContentLength: iA, kConnector: uA, kMaxRedirections: RA, kMaxRequests: IA, kCounter: CA, kClose: pA, kDestroy: fA, kDispatch: kA, kInterceptors: bA, kLocalAddress: gA, kMaxResponseSize: DA, kOnError: oA, kHTTPContext: aA, kMaxConcurrentStreams: EA, kResume: sA } = requireSymbols$4(), NA = requireClientH1(), wA = requireClientH2();
|
|
17519
17519
|
let vA = !1;
|
|
17520
17520
|
const dA = Symbol("kClosedResolve"), XA = e$6(() => {}, "noop");
|
|
17521
17521
|
function KA(QA) {
|
|
@@ -17557,7 +17557,7 @@ ${AA.toString(16)}\r
|
|
|
17557
17557
|
} : void 0,
|
|
17558
17558
|
...v$2
|
|
17559
17559
|
})), cA?.Client && Array.isArray(cA.Client) ? (this[bA] = cA.Client, vA || (vA = !0, process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.", { code: "UNDICI-CLIENT-INTERCEPTOR-DEPRECATED" }))) : this[bA] = [PA({ maxRedirections: AA })], this[r$3] = B.parseOrigin(W$2), this[uA] = v$2, this[w$4] = MA ?? 1, this[x$3] = yA || c$7.maxHeaderSize, this[Y$1] = GA ?? 4e3, this[z$3] = lA ?? 6e5, this[$] = BA ?? 2e3, this[S$3] = this[Y$1], this[o$7] = null, this[gA] = j$4 ?? null, this[p$2] = 0, this[M$2] = 0, this[m$3] = `host: ${this[r$3].hostname}${this[r$3].port ? `:${this[r$3].port}` : ""}\r
|
|
17560
|
-
`, this[nA] = ie$1 ?? 3e5, this[K$2] = LA ?? 3e5, this[iA] = zA ?? !0, this[RA] = AA, this[IA] = X$3, this[dA] = null, this[DA] = tA > -1 ? tA : -1, this[EA] = TA ?? 100, this[aA] = null, this[V$2] = [], this[n$5] = 0, this[f$
|
|
17560
|
+
`, this[nA] = ie$1 ?? 3e5, this[K$2] = LA ?? 3e5, this[iA] = zA ?? !0, this[RA] = AA, this[IA] = X$3, this[dA] = null, this[DA] = tA > -1 ? tA : -1, this[EA] = TA ?? 100, this[aA] = null, this[V$2] = [], this[n$5] = 0, this[f$6] = 0, this[sA] = (YA) => ne$1(this, YA), this[oA] = (YA) => ZA(this, YA);
|
|
17561
17561
|
}
|
|
17562
17562
|
get pipelining() {
|
|
17563
17563
|
return this[w$4];
|
|
@@ -17566,10 +17566,10 @@ ${AA.toString(16)}\r
|
|
|
17566
17566
|
this[w$4] = W$2, this[sA](!0);
|
|
17567
17567
|
}
|
|
17568
17568
|
get [G$3]() {
|
|
17569
|
-
return this[V$2].length - this[f$
|
|
17569
|
+
return this[V$2].length - this[f$6];
|
|
17570
17570
|
}
|
|
17571
17571
|
get [b$2]() {
|
|
17572
|
-
return this[f$
|
|
17572
|
+
return this[f$6] - this[n$5];
|
|
17573
17573
|
}
|
|
17574
17574
|
get [J$2]() {
|
|
17575
17575
|
return this[V$2].length - this[n$5];
|
|
@@ -17594,7 +17594,7 @@ ${AA.toString(16)}\r
|
|
|
17594
17594
|
}
|
|
17595
17595
|
async [fA](W$2) {
|
|
17596
17596
|
return new Promise((cA) => {
|
|
17597
|
-
const yA = this[V$2].splice(this[f$
|
|
17597
|
+
const yA = this[V$2].splice(this[f$6]);
|
|
17598
17598
|
for (let JA = 0; JA < yA.length; JA++) {
|
|
17599
17599
|
const WA = yA[JA];
|
|
17600
17600
|
B.errorRequest(this, WA, W$2);
|
|
@@ -17611,7 +17611,7 @@ ${AA.toString(16)}\r
|
|
|
17611
17611
|
const PA = requireRedirectInterceptor();
|
|
17612
17612
|
function ZA(QA, W$2) {
|
|
17613
17613
|
if (QA[b$2] === 0 && W$2.code !== "UND_ERR_INFO" && W$2.code !== "UND_ERR_SOCKET") {
|
|
17614
|
-
A$1(QA[f$
|
|
17614
|
+
A$1(QA[f$6] === QA[n$5]);
|
|
17615
17615
|
const cA = QA[V$2].splice(QA[n$5]);
|
|
17616
17616
|
for (let yA = 0; yA < cA.length; yA++) {
|
|
17617
17617
|
const LA = cA[yA];
|
|
@@ -17692,8 +17692,8 @@ ${AA.toString(16)}\r
|
|
|
17692
17692
|
},
|
|
17693
17693
|
connector: QA[uA],
|
|
17694
17694
|
error: JA
|
|
17695
|
-
}), JA.code === "ERR_TLS_CERT_ALTNAME_INVALID") for (A$1(QA[b$2] === 0); QA[G$3] > 0 && QA[V$2][QA[f$
|
|
17696
|
-
const WA = QA[V$2][QA[f$
|
|
17695
|
+
}), JA.code === "ERR_TLS_CERT_ALTNAME_INVALID") for (A$1(QA[b$2] === 0); QA[G$3] > 0 && QA[V$2][QA[f$6]].servername === QA[o$7];) {
|
|
17696
|
+
const WA = QA[V$2][QA[f$6]++];
|
|
17697
17697
|
B.errorRequest(QA, WA, JA);
|
|
17698
17698
|
}
|
|
17699
17699
|
else ZA(QA, JA);
|
|
@@ -17707,7 +17707,7 @@ ${AA.toString(16)}\r
|
|
|
17707
17707
|
}
|
|
17708
17708
|
e$6(se$1, "emitDrain");
|
|
17709
17709
|
function ne$1(QA, W$2) {
|
|
17710
|
-
QA[p$2] !== 2 && (QA[p$2] = 2, jA(QA, W$2), QA[p$2] = 0, QA[n$5] > 256 && (QA[V$2].splice(0, QA[n$5]), QA[f$
|
|
17710
|
+
QA[p$2] !== 2 && (QA[p$2] = 2, jA(QA, W$2), QA[p$2] = 0, QA[n$5] > 256 && (QA[V$2].splice(0, QA[n$5]), QA[f$6] -= QA[n$5], QA[n$5] = 0));
|
|
17711
17711
|
}
|
|
17712
17712
|
e$6(ne$1, "resume");
|
|
17713
17713
|
function jA(QA, W$2) {
|
|
@@ -17726,7 +17726,7 @@ ${AA.toString(16)}\r
|
|
|
17726
17726
|
continue;
|
|
17727
17727
|
}
|
|
17728
17728
|
if (QA[G$3] === 0 || QA[b$2] >= (KA(QA) || 1)) return;
|
|
17729
|
-
const cA = QA[V$2][QA[f$
|
|
17729
|
+
const cA = QA[V$2][QA[f$6]];
|
|
17730
17730
|
if (QA[r$3].protocol === "https:" && QA[o$7] !== cA.servername) {
|
|
17731
17731
|
if (QA[b$2] > 0) return;
|
|
17732
17732
|
QA[o$7] = cA.servername, QA[aA]?.destroy(new Q$2("servername changed"), () => {
|
|
@@ -17739,7 +17739,7 @@ ${AA.toString(16)}\r
|
|
|
17739
17739
|
return;
|
|
17740
17740
|
}
|
|
17741
17741
|
if (QA[aA].destroyed || QA[aA].busy(cA)) return;
|
|
17742
|
-
!cA.aborted && QA[aA].write(cA) ? QA[f$
|
|
17742
|
+
!cA.aborted && QA[aA].write(cA) ? QA[f$6]++ : QA[V$2].splice(QA[f$6], 1);
|
|
17743
17743
|
}
|
|
17744
17744
|
}
|
|
17745
17745
|
return e$6(jA, "_resume"), client = OA, client;
|
|
@@ -17923,7 +17923,7 @@ ${AA.toString(16)}\r
|
|
|
17923
17923
|
}
|
|
17924
17924
|
e$6(l$2, "defaultFactory");
|
|
17925
17925
|
const p$2 = class p$3 extends A$1 {
|
|
17926
|
-
constructor(G$3, { connections: J$2, factory: V$2 = l$2, connect: _$3, connectTimeout: q$2, tls: M$2, maxCachedSessions: Y$1, socketPath: m$3, autoSelectFamily: f$
|
|
17926
|
+
constructor(G$3, { connections: J$2, factory: V$2 = l$2, connect: _$3, connectTimeout: q$2, tls: M$2, maxCachedSessions: Y$1, socketPath: m$3, autoSelectFamily: f$6, autoSelectFamilyAttemptTimeout: n$5, allowH2: C$2, ...w$4 } = {}) {
|
|
17927
17927
|
if (super(), J$2 != null && (!Number.isFinite(J$2) || J$2 < 0)) throw new R$4("invalid connections");
|
|
17928
17928
|
if (typeof V$2 != "function") throw new R$4("factory must be a function.");
|
|
17929
17929
|
if (_$3 != null && typeof _$3 != "function" && typeof _$3 != "object") throw new R$4("connect must be a function or an object");
|
|
@@ -17933,8 +17933,8 @@ ${AA.toString(16)}\r
|
|
|
17933
17933
|
allowH2: C$2,
|
|
17934
17934
|
socketPath: m$3,
|
|
17935
17935
|
timeout: q$2,
|
|
17936
|
-
...f$
|
|
17937
|
-
autoSelectFamily: f$
|
|
17936
|
+
...f$6 ? {
|
|
17937
|
+
autoSelectFamily: f$6,
|
|
17938
17938
|
autoSelectFamilyAttemptTimeout: n$5
|
|
17939
17939
|
} : void 0,
|
|
17940
17940
|
..._$3
|
|
@@ -17969,8 +17969,8 @@ ${AA.toString(16)}\r
|
|
|
17969
17969
|
function V$2(Y$1, m$3) {
|
|
17970
17970
|
if (Y$1 === 0) return m$3;
|
|
17971
17971
|
for (; m$3 !== 0;) {
|
|
17972
|
-
const f$
|
|
17973
|
-
m$3 = Y$1 % m$3, Y$1 = f$
|
|
17972
|
+
const f$6 = m$3;
|
|
17973
|
+
m$3 = Y$1 % m$3, Y$1 = f$6;
|
|
17974
17974
|
}
|
|
17975
17975
|
return Y$1;
|
|
17976
17976
|
}
|
|
@@ -17980,16 +17980,16 @@ ${AA.toString(16)}\r
|
|
|
17980
17980
|
}
|
|
17981
17981
|
e$6(_$3, "defaultFactory");
|
|
17982
17982
|
const M$2 = class M$3 extends c$7 {
|
|
17983
|
-
constructor(m$3 = [], { factory: f$
|
|
17984
|
-
if (super(), this[N$2] = n$5, this[p$2] = -1, this[I$2] = 0, this[G$3] = this[N$2].maxWeightPerServer || 100, this[J$2] = this[N$2].errorPenalty || 15, Array.isArray(m$3) || (m$3 = [m$3]), typeof f$
|
|
17985
|
-
this[U$1] = n$5.interceptors?.BalancedPool && Array.isArray(n$5.interceptors.BalancedPool) ? n$5.interceptors.BalancedPool : [], this[o$7] = f$
|
|
17983
|
+
constructor(m$3 = [], { factory: f$6 = _$3, ...n$5 } = {}) {
|
|
17984
|
+
if (super(), this[N$2] = n$5, this[p$2] = -1, this[I$2] = 0, this[G$3] = this[N$2].maxWeightPerServer || 100, this[J$2] = this[N$2].errorPenalty || 15, Array.isArray(m$3) || (m$3 = [m$3]), typeof f$6 != "function") throw new k$3("factory must be a function.");
|
|
17985
|
+
this[U$1] = n$5.interceptors?.BalancedPool && Array.isArray(n$5.interceptors.BalancedPool) ? n$5.interceptors.BalancedPool : [], this[o$7] = f$6;
|
|
17986
17986
|
for (const C$2 of m$3) this.addUpstream(C$2);
|
|
17987
17987
|
this._updateBalancedPoolStats();
|
|
17988
17988
|
}
|
|
17989
17989
|
addUpstream(m$3) {
|
|
17990
|
-
const f$
|
|
17991
|
-
if (this[B].find((C$2) => C$2[D$2].origin === f$
|
|
17992
|
-
const n$5 = this[o$7](f$
|
|
17990
|
+
const f$6 = r$3(m$3).origin;
|
|
17991
|
+
if (this[B].find((C$2) => C$2[D$2].origin === f$6 && C$2.closed !== !0 && C$2.destroyed !== !0)) return this;
|
|
17992
|
+
const n$5 = this[o$7](f$6, Object.assign({}, this[N$2]));
|
|
17993
17993
|
this[y$5](n$5), n$5.on("connect", () => {
|
|
17994
17994
|
n$5[b$2] = Math.min(this[G$3], n$5[b$2] + this[J$2]);
|
|
17995
17995
|
}), n$5.on("connectionError", () => {
|
|
@@ -18003,11 +18003,11 @@ ${AA.toString(16)}\r
|
|
|
18003
18003
|
}
|
|
18004
18004
|
_updateBalancedPoolStats() {
|
|
18005
18005
|
let m$3 = 0;
|
|
18006
|
-
for (let f$
|
|
18006
|
+
for (let f$6 = 0; f$6 < this[B].length; f$6++) m$3 = V$2(this[B][f$6][b$2], m$3);
|
|
18007
18007
|
this[l$2] = m$3;
|
|
18008
18008
|
}
|
|
18009
18009
|
removeUpstream(m$3) {
|
|
18010
|
-
const f$
|
|
18010
|
+
const f$6 = r$3(m$3).origin, n$5 = this[B].find((C$2) => C$2[D$2].origin === f$6 && C$2.closed !== !0 && C$2.destroyed !== !0);
|
|
18011
18011
|
return n$5 && this[R$4](n$5), this;
|
|
18012
18012
|
}
|
|
18013
18013
|
get upstreams() {
|
|
@@ -18039,14 +18039,14 @@ ${AA.toString(16)}\r
|
|
|
18039
18039
|
}
|
|
18040
18040
|
e$6(J$2, "defaultFactory");
|
|
18041
18041
|
const _$3 = class _$4 extends F$4 {
|
|
18042
|
-
constructor({ factory: M$2 = J$2, maxRedirections: Y$1 = 0, connect: m$3, ...f$
|
|
18042
|
+
constructor({ factory: M$2 = J$2, maxRedirections: Y$1 = 0, connect: m$3, ...f$6 } = {}) {
|
|
18043
18043
|
if (super(), typeof M$2 != "function") throw new A$1("factory must be a function.");
|
|
18044
18044
|
if (m$3 != null && typeof m$3 != "function" && typeof m$3 != "object") throw new A$1("connect must be a function or an object");
|
|
18045
18045
|
if (!Number.isInteger(Y$1) || Y$1 < 0) throw new A$1("maxRedirections must be a positive number");
|
|
18046
|
-
m$3 && typeof m$3 != "function" && (m$3 = { ...m$3 }), this[R$4] = f$
|
|
18047
|
-
...U$1.deepClone(f$
|
|
18046
|
+
m$3 && typeof m$3 != "function" && (m$3 = { ...m$3 }), this[R$4] = f$6.interceptors?.Agent && Array.isArray(f$6.interceptors.Agent) ? f$6.interceptors.Agent : [r$3({ maxRedirections: Y$1 })], this[G$3] = {
|
|
18047
|
+
...U$1.deepClone(f$6),
|
|
18048
18048
|
connect: m$3
|
|
18049
|
-
}, this[G$3].interceptors = f$
|
|
18049
|
+
}, this[G$3].interceptors = f$6.interceptors ? { ...f$6.interceptors } : void 0, this[I$2] = Y$1, this[b$2] = M$2, this[k$3] = /* @__PURE__ */ new Map(), this[p$2] = (n$5, C$2) => {
|
|
18050
18050
|
this.emit("drain", n$5, [this, ...C$2]);
|
|
18051
18051
|
}, this[o$7] = (n$5, C$2) => {
|
|
18052
18052
|
this.emit("connect", n$5, [this, ...C$2]);
|
|
@@ -18065,8 +18065,8 @@ ${AA.toString(16)}\r
|
|
|
18065
18065
|
let m$3;
|
|
18066
18066
|
if (M$2.origin && (typeof M$2.origin == "string" || M$2.origin instanceof URL)) m$3 = String(M$2.origin);
|
|
18067
18067
|
else throw new A$1("opts.origin must be a non-empty string or URL.");
|
|
18068
|
-
let f$
|
|
18069
|
-
return f$
|
|
18068
|
+
let f$6 = this[k$3].get(m$3);
|
|
18069
|
+
return f$6 || (f$6 = this[b$2](M$2.origin, this[G$3]).on("drain", this[p$2]).on("connect", this[o$7]).on("disconnect", this[N$2]).on("connectionError", this[l$2]), this[k$3].set(m$3, f$6)), f$6.dispatch(M$2, Y$1);
|
|
18070
18070
|
}
|
|
18071
18071
|
async [B]() {
|
|
18072
18072
|
const M$2 = [];
|
|
@@ -18097,7 +18097,7 @@ ${AA.toString(16)}\r
|
|
|
18097
18097
|
return new R$4(n$5, C$2);
|
|
18098
18098
|
}
|
|
18099
18099
|
e$6(J$2, "defaultFactory");
|
|
18100
|
-
const V$2 = e$6(() => {}, "noop"), f$
|
|
18100
|
+
const V$2 = e$6(() => {}, "noop"), f$6 = class f$7 extends F$4 {
|
|
18101
18101
|
constructor(w$4) {
|
|
18102
18102
|
super();
|
|
18103
18103
|
SA(this, Y$1);
|
|
@@ -18164,8 +18164,8 @@ ${AA.toString(16)}\r
|
|
|
18164
18164
|
};
|
|
18165
18165
|
Y$1 = /* @__PURE__ */ new WeakSet(), Je$1 = e$6(function(w$4) {
|
|
18166
18166
|
return typeof w$4 == "string" ? new t$8(w$4) : w$4 instanceof t$8 ? w$4 : new t$8(w$4.uri);
|
|
18167
|
-
}, "#getUrl"), e$6(f$
|
|
18168
|
-
let _$3 = f$
|
|
18167
|
+
}, "#getUrl"), e$6(f$6, "ProxyAgent");
|
|
18168
|
+
let _$3 = f$6;
|
|
18169
18169
|
function q$2(n$5) {
|
|
18170
18170
|
if (Array.isArray(n$5)) {
|
|
18171
18171
|
const C$2 = {};
|
|
@@ -18192,14 +18192,14 @@ ${AA.toString(16)}\r
|
|
|
18192
18192
|
};
|
|
18193
18193
|
let o$7 = !1;
|
|
18194
18194
|
const M$2 = class M$3 extends A$1 {
|
|
18195
|
-
constructor(f$
|
|
18195
|
+
constructor(f$6 = {}) {
|
|
18196
18196
|
super();
|
|
18197
18197
|
SA(this, b$2);
|
|
18198
18198
|
SA(this, l$2, null);
|
|
18199
18199
|
SA(this, I$2, null);
|
|
18200
18200
|
SA(this, p$2, null);
|
|
18201
|
-
mA(this, p$2, f$
|
|
18202
|
-
const { httpProxy: n$5, httpsProxy: C$2, noProxy: w$4, ...S$3 } = f$
|
|
18201
|
+
mA(this, p$2, f$6), o$7 || (o$7 = !0, process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.", { code: "UNDICI-EHPA" }));
|
|
18202
|
+
const { httpProxy: n$5, httpsProxy: C$2, noProxy: w$4, ...S$3 } = f$6;
|
|
18203
18203
|
this[R$4] = new U$1(S$3);
|
|
18204
18204
|
const x$3 = n$5 ?? process.env.http_proxy ?? process.env.HTTP_PROXY;
|
|
18205
18205
|
x$3 ? this[F$4] = new D$2({
|
|
@@ -18212,34 +18212,34 @@ ${AA.toString(16)}\r
|
|
|
18212
18212
|
uri: z$3
|
|
18213
18213
|
}) : this[Q$2] = this[F$4], ee(this, b$2, Ne$1).call(this);
|
|
18214
18214
|
}
|
|
18215
|
-
[y$5](f$
|
|
18216
|
-
const C$2 = new URL(f$
|
|
18217
|
-
return ee(this, b$2, ve$1).call(this, C$2).dispatch(f$
|
|
18215
|
+
[y$5](f$6, n$5) {
|
|
18216
|
+
const C$2 = new URL(f$6.origin);
|
|
18217
|
+
return ee(this, b$2, ve$1).call(this, C$2).dispatch(f$6, n$5);
|
|
18218
18218
|
}
|
|
18219
18219
|
async [k$3]() {
|
|
18220
18220
|
await this[R$4].close(), this[F$4][B] || await this[F$4].close(), this[Q$2][B] || await this[Q$2].close();
|
|
18221
18221
|
}
|
|
18222
|
-
async [c$7](f$
|
|
18223
|
-
await this[R$4].destroy(f$
|
|
18222
|
+
async [c$7](f$6) {
|
|
18223
|
+
await this[R$4].destroy(f$6), this[F$4][t$8] || await this[F$4].destroy(f$6), this[Q$2][t$8] || await this[Q$2].destroy(f$6);
|
|
18224
18224
|
}
|
|
18225
18225
|
};
|
|
18226
|
-
l$2 = /* @__PURE__ */ new WeakMap(), I$2 = /* @__PURE__ */ new WeakMap(), p$2 = /* @__PURE__ */ new WeakMap(), b$2 = /* @__PURE__ */ new WeakSet(), ve$1 = e$6(function(f$
|
|
18227
|
-
let { protocol: n$5, host: C$2, port: w$4 } = f$
|
|
18226
|
+
l$2 = /* @__PURE__ */ new WeakMap(), I$2 = /* @__PURE__ */ new WeakMap(), p$2 = /* @__PURE__ */ new WeakMap(), b$2 = /* @__PURE__ */ new WeakSet(), ve$1 = e$6(function(f$6) {
|
|
18227
|
+
let { protocol: n$5, host: C$2, port: w$4 } = f$6;
|
|
18228
18228
|
return C$2 = C$2.replace(/:\d*$/, "").toLowerCase(), w$4 = Number.parseInt(w$4, 10) || r$3[n$5] || 0, ee(this, b$2, He$1).call(this, C$2, w$4) ? n$5 === "https:" ? this[Q$2] : this[F$4] : this[R$4];
|
|
18229
|
-
}, "#getProxyAgentForUrl"), He$1 = e$6(function(f$
|
|
18229
|
+
}, "#getProxyAgentForUrl"), He$1 = e$6(function(f$6, n$5) {
|
|
18230
18230
|
if (Z(this, b$2, Ve$1) && ee(this, b$2, Ne$1).call(this), Z(this, I$2).length === 0) return !0;
|
|
18231
18231
|
if (Z(this, l$2) === "*") return !1;
|
|
18232
18232
|
for (let C$2 = 0; C$2 < Z(this, I$2).length; C$2++) {
|
|
18233
18233
|
const w$4 = Z(this, I$2)[C$2];
|
|
18234
18234
|
if (!(w$4.port && w$4.port !== n$5)) {
|
|
18235
18235
|
if (/^[.*]/.test(w$4.hostname)) {
|
|
18236
|
-
if (f$
|
|
18237
|
-
} else if (f$
|
|
18236
|
+
if (f$6.endsWith(w$4.hostname.replace(/^\*/, ""))) return !1;
|
|
18237
|
+
} else if (f$6 === w$4.hostname) return !1;
|
|
18238
18238
|
}
|
|
18239
18239
|
}
|
|
18240
18240
|
return !0;
|
|
18241
18241
|
}, "#shouldProxy"), Ne$1 = e$6(function() {
|
|
18242
|
-
const f$
|
|
18242
|
+
const f$6 = Z(this, p$2).noProxy ?? Z(this, b$2, me$1), n$5 = f$6.split(/[,\s]/), C$2 = [];
|
|
18243
18243
|
for (let w$4 = 0; w$4 < n$5.length; w$4++) {
|
|
18244
18244
|
const S$3 = n$5[w$4];
|
|
18245
18245
|
if (!S$3) continue;
|
|
@@ -18249,7 +18249,7 @@ ${AA.toString(16)}\r
|
|
|
18249
18249
|
port: x$3 ? Number.parseInt(x$3[2], 10) : 0
|
|
18250
18250
|
});
|
|
18251
18251
|
}
|
|
18252
|
-
mA(this, l$2, f$
|
|
18252
|
+
mA(this, l$2, f$6), mA(this, I$2, C$2);
|
|
18253
18253
|
}, "#parseNoProxy"), Ve$1 = e$6(function() {
|
|
18254
18254
|
return Z(this, p$2).noProxy !== void 0 ? !1 : Z(this, l$2) !== Z(this, b$2, me$1);
|
|
18255
18255
|
}, "#noProxyChanged"), me$1 = e$6(function() {
|
|
@@ -18324,12 +18324,12 @@ ${AA.toString(16)}\r
|
|
|
18324
18324
|
if (this.handler.onBodySent) return this.handler.onBodySent(r$3);
|
|
18325
18325
|
}
|
|
18326
18326
|
static [k$3](r$3, { state: o$7, opts: N$2 }, l$2) {
|
|
18327
|
-
const { statusCode: I$2, code: p$2, headers: b$2 } = r$3, { method: G$3, retryOptions: J$2 } = N$2, { maxRetries: V$2, minTimeout: _$3, maxTimeout: q$2, timeoutFactor: M$2, statusCodes: Y$1, errorCodes: m$3, methods: f$
|
|
18327
|
+
const { statusCode: I$2, code: p$2, headers: b$2 } = r$3, { method: G$3, retryOptions: J$2 } = N$2, { maxRetries: V$2, minTimeout: _$3, maxTimeout: q$2, timeoutFactor: M$2, statusCodes: Y$1, errorCodes: m$3, methods: f$6 } = J$2, { counter: n$5 } = o$7;
|
|
18328
18328
|
if (p$2 && p$2 !== "UND_ERR_REQ_RETRY" && !m$3.includes(p$2)) {
|
|
18329
18329
|
l$2(r$3);
|
|
18330
18330
|
return;
|
|
18331
18331
|
}
|
|
18332
|
-
if (Array.isArray(f$
|
|
18332
|
+
if (Array.isArray(f$6) && !f$6.includes(G$3)) {
|
|
18333
18333
|
l$2(r$3);
|
|
18334
18334
|
return;
|
|
18335
18335
|
}
|
|
@@ -18540,85 +18540,85 @@ ${AA.toString(16)}\r
|
|
|
18540
18540
|
};
|
|
18541
18541
|
e$6(m$3, "BodyReadable");
|
|
18542
18542
|
let I$2 = m$3;
|
|
18543
|
-
function p$2(f$
|
|
18544
|
-
return f$
|
|
18543
|
+
function p$2(f$6) {
|
|
18544
|
+
return f$6[U$1] && f$6[U$1].locked === !0 || f$6[Q$2];
|
|
18545
18545
|
}
|
|
18546
18546
|
e$6(p$2, "isLocked");
|
|
18547
|
-
function b$2(f$
|
|
18548
|
-
return R$4.isDisturbed(f$
|
|
18547
|
+
function b$2(f$6) {
|
|
18548
|
+
return R$4.isDisturbed(f$6) || p$2(f$6);
|
|
18549
18549
|
}
|
|
18550
18550
|
e$6(b$2, "isUnusable");
|
|
18551
|
-
async function G$3(f$
|
|
18552
|
-
return A$1(!f$
|
|
18553
|
-
if (b$2(f$
|
|
18554
|
-
const S$3 = f$
|
|
18555
|
-
S$3.destroyed && S$3.closeEmitted === !1 ? f$
|
|
18551
|
+
async function G$3(f$6, n$5) {
|
|
18552
|
+
return A$1(!f$6[Q$2]), new Promise((C$2, w$4) => {
|
|
18553
|
+
if (b$2(f$6)) {
|
|
18554
|
+
const S$3 = f$6._readableState;
|
|
18555
|
+
S$3.destroyed && S$3.closeEmitted === !1 ? f$6.on("error", (x$3) => {
|
|
18556
18556
|
w$4(x$3);
|
|
18557
18557
|
}).on("close", () => {
|
|
18558
18558
|
w$4(/* @__PURE__ */ new TypeError("unusable"));
|
|
18559
18559
|
}) : w$4(S$3.errored ?? /* @__PURE__ */ new TypeError("unusable"));
|
|
18560
18560
|
} else queueMicrotask(() => {
|
|
18561
|
-
f$
|
|
18561
|
+
f$6[Q$2] = {
|
|
18562
18562
|
type: n$5,
|
|
18563
|
-
stream: f$
|
|
18563
|
+
stream: f$6,
|
|
18564
18564
|
resolve: C$2,
|
|
18565
18565
|
reject: w$4,
|
|
18566
18566
|
length: 0,
|
|
18567
18567
|
body: []
|
|
18568
|
-
}, f$
|
|
18568
|
+
}, f$6.on("error", function(S$3) {
|
|
18569
18569
|
Y$1(this[Q$2], S$3);
|
|
18570
18570
|
}).on("close", function() {
|
|
18571
18571
|
this[Q$2].body !== null && Y$1(this[Q$2], new c$7());
|
|
18572
|
-
}), J$2(f$
|
|
18572
|
+
}), J$2(f$6[Q$2]);
|
|
18573
18573
|
});
|
|
18574
18574
|
});
|
|
18575
18575
|
}
|
|
18576
18576
|
e$6(G$3, "consume");
|
|
18577
|
-
function J$2(f$
|
|
18578
|
-
if (f$
|
|
18579
|
-
const { _readableState: n$5 } = f$
|
|
18577
|
+
function J$2(f$6) {
|
|
18578
|
+
if (f$6.body === null) return;
|
|
18579
|
+
const { _readableState: n$5 } = f$6.stream;
|
|
18580
18580
|
if (n$5.bufferIndex) {
|
|
18581
18581
|
const C$2 = n$5.bufferIndex, w$4 = n$5.buffer.length;
|
|
18582
|
-
for (let S$3 = C$2; S$3 < w$4; S$3++) M$2(f$
|
|
18583
|
-
} else for (const C$2 of n$5.buffer) M$2(f$
|
|
18584
|
-
for (n$5.endEmitted ? q$2(this[Q$2]) : f$
|
|
18582
|
+
for (let S$3 = C$2; S$3 < w$4; S$3++) M$2(f$6, n$5.buffer[S$3]);
|
|
18583
|
+
} else for (const C$2 of n$5.buffer) M$2(f$6, C$2);
|
|
18584
|
+
for (n$5.endEmitted ? q$2(this[Q$2]) : f$6.stream.on("end", function() {
|
|
18585
18585
|
q$2(this[Q$2]);
|
|
18586
|
-
}), f$
|
|
18586
|
+
}), f$6.stream.resume(); f$6.stream.read() != null;);
|
|
18587
18587
|
}
|
|
18588
18588
|
e$6(J$2, "consumeStart");
|
|
18589
|
-
function V$2(f$
|
|
18590
|
-
if (f$
|
|
18591
|
-
const C$2 = f$
|
|
18589
|
+
function V$2(f$6, n$5) {
|
|
18590
|
+
if (f$6.length === 0 || n$5 === 0) return "";
|
|
18591
|
+
const C$2 = f$6.length === 1 ? f$6[0] : Buffer.concat(f$6, n$5), w$4 = C$2.length, S$3 = w$4 > 2 && C$2[0] === 239 && C$2[1] === 187 && C$2[2] === 191 ? 3 : 0;
|
|
18592
18592
|
return C$2.utf8Slice(S$3, w$4);
|
|
18593
18593
|
}
|
|
18594
18594
|
e$6(V$2, "chunksDecode");
|
|
18595
|
-
function _$3(f$
|
|
18596
|
-
if (f$
|
|
18597
|
-
if (f$
|
|
18595
|
+
function _$3(f$6, n$5) {
|
|
18596
|
+
if (f$6.length === 0 || n$5 === 0) return new Uint8Array(0);
|
|
18597
|
+
if (f$6.length === 1) return new Uint8Array(f$6[0]);
|
|
18598
18598
|
const C$2 = new Uint8Array(Buffer.allocUnsafeSlow(n$5).buffer);
|
|
18599
18599
|
let w$4 = 0;
|
|
18600
|
-
for (let S$3 = 0; S$3 < f$
|
|
18601
|
-
const x$3 = f$
|
|
18600
|
+
for (let S$3 = 0; S$3 < f$6.length; ++S$3) {
|
|
18601
|
+
const x$3 = f$6[S$3];
|
|
18602
18602
|
C$2.set(x$3, w$4), w$4 += x$3.length;
|
|
18603
18603
|
}
|
|
18604
18604
|
return C$2;
|
|
18605
18605
|
}
|
|
18606
18606
|
e$6(_$3, "chunksConcat");
|
|
18607
|
-
function q$2(f$
|
|
18608
|
-
const { type: n$5, body: C$2, resolve: w$4, stream: S$3, length: x$3 } = f$
|
|
18607
|
+
function q$2(f$6) {
|
|
18608
|
+
const { type: n$5, body: C$2, resolve: w$4, stream: S$3, length: x$3 } = f$6;
|
|
18609
18609
|
try {
|
|
18610
|
-
n$5 === "text" ? w$4(V$2(C$2, x$3)) : n$5 === "json" ? w$4(JSON.parse(V$2(C$2, x$3))) : n$5 === "arrayBuffer" ? w$4(_$3(C$2, x$3).buffer) : n$5 === "blob" ? w$4(new Blob(C$2, { type: S$3[o$7] })) : n$5 === "bytes" && w$4(_$3(C$2, x$3)), Y$1(f$
|
|
18610
|
+
n$5 === "text" ? w$4(V$2(C$2, x$3)) : n$5 === "json" ? w$4(JSON.parse(V$2(C$2, x$3))) : n$5 === "arrayBuffer" ? w$4(_$3(C$2, x$3).buffer) : n$5 === "blob" ? w$4(new Blob(C$2, { type: S$3[o$7] })) : n$5 === "bytes" && w$4(_$3(C$2, x$3)), Y$1(f$6);
|
|
18611
18611
|
} catch (z$3) {
|
|
18612
18612
|
S$3.destroy(z$3);
|
|
18613
18613
|
}
|
|
18614
18614
|
}
|
|
18615
18615
|
e$6(q$2, "consumeEnd");
|
|
18616
|
-
function M$2(f$
|
|
18617
|
-
f$
|
|
18616
|
+
function M$2(f$6, n$5) {
|
|
18617
|
+
f$6.length += n$5.length, f$6.body.push(n$5);
|
|
18618
18618
|
}
|
|
18619
18619
|
e$6(M$2, "consumePush");
|
|
18620
|
-
function Y$1(f$
|
|
18621
|
-
f$
|
|
18620
|
+
function Y$1(f$6, n$5) {
|
|
18621
|
+
f$6.body !== null && (n$5 ? f$6.reject(n$5) : f$6.resolve(), f$6.type = null, f$6.stream = null, f$6.resolve = null, f$6.reject = null, f$6.length = 0, f$6.body = null);
|
|
18622
18622
|
}
|
|
18623
18623
|
return e$6(Y$1, "consumeFinish"), readable = {
|
|
18624
18624
|
Readable: I$2,
|
|
@@ -18849,12 +18849,12 @@ ${AA.toString(16)}\r
|
|
|
18849
18849
|
opaque: J$2,
|
|
18850
18850
|
context: V$2
|
|
18851
18851
|
}), !Y$1 || typeof Y$1.write != "function" || typeof Y$1.end != "function" || typeof Y$1.on != "function") throw new t$8("expected Writable");
|
|
18852
|
-
k$3(Y$1, { readable: !1 }, (f$
|
|
18852
|
+
k$3(Y$1, { readable: !1 }, (f$6) => {
|
|
18853
18853
|
const { callback: n$5, res: C$2, opaque: w$4, trailers: S$3, abort: x$3 } = this;
|
|
18854
|
-
this.res = null, (f$
|
|
18854
|
+
this.res = null, (f$6 || !C$2.readable) && y$5.destroy(C$2, f$6), this.callback = null, this.runInAsyncScope(n$5, null, f$6 || null, {
|
|
18855
18855
|
opaque: w$4,
|
|
18856
18856
|
trailers: S$3
|
|
18857
|
-
}), f$
|
|
18857
|
+
}), f$6 && x$3();
|
|
18858
18858
|
});
|
|
18859
18859
|
}
|
|
18860
18860
|
return Y$1.on("drain", p$2), this.res = Y$1, (Y$1.writableNeedDrain !== void 0 ? Y$1.writableNeedDrain : Y$1._writableState?.needDrain) !== !0;
|
|
@@ -18926,11 +18926,11 @@ ${AA.toString(16)}\r
|
|
|
18926
18926
|
constructor(V$2, _$3) {
|
|
18927
18927
|
if (!V$2 || typeof V$2 != "object") throw new B("invalid opts");
|
|
18928
18928
|
if (typeof _$3 != "function") throw new B("invalid handler");
|
|
18929
|
-
const { signal: q$2, method: M$2, opaque: Y$1, onInfo: m$3, responseHeaders: f$
|
|
18929
|
+
const { signal: q$2, method: M$2, opaque: Y$1, onInfo: m$3, responseHeaders: f$6 } = V$2;
|
|
18930
18930
|
if (q$2 && typeof q$2.on != "function" && typeof q$2.addEventListener != "function") throw new B("signal must be an EventEmitter or EventTarget");
|
|
18931
18931
|
if (M$2 === "CONNECT") throw new B("invalid method");
|
|
18932
18932
|
if (m$3 && typeof m$3 != "function") throw new B("invalid onInfo callback");
|
|
18933
|
-
super("UNDICI_PIPELINE"), this.opaque = Y$1 || null, this.responseHeaders = f$
|
|
18933
|
+
super("UNDICI_PIPELINE"), this.opaque = Y$1 || null, this.responseHeaders = f$6 || null, this.handler = _$3, this.abort = null, this.context = null, this.onInfo = m$3 || null, this.req = new o$7().on("error", R$4.nop), this.ret = new k$3({
|
|
18934
18934
|
readableObjectMode: V$2.objectMode,
|
|
18935
18935
|
autoDestroy: !0,
|
|
18936
18936
|
read: e$6(() => {
|
|
@@ -18971,11 +18971,11 @@ ${AA.toString(16)}\r
|
|
|
18971
18971
|
return;
|
|
18972
18972
|
}
|
|
18973
18973
|
this.res = new N$2(q$2);
|
|
18974
|
-
let f$
|
|
18974
|
+
let f$6;
|
|
18975
18975
|
try {
|
|
18976
18976
|
this.handler = null;
|
|
18977
18977
|
const n$5 = this.responseHeaders === "raw" ? R$4.parseRawHeaders(_$3) : R$4.parseHeaders(_$3);
|
|
18978
|
-
f$
|
|
18978
|
+
f$6 = this.runInAsyncScope(Y$1, null, {
|
|
18979
18979
|
statusCode: V$2,
|
|
18980
18980
|
headers: n$5,
|
|
18981
18981
|
opaque: M$2,
|
|
@@ -18985,8 +18985,8 @@ ${AA.toString(16)}\r
|
|
|
18985
18985
|
} catch (n$5) {
|
|
18986
18986
|
throw this.res.on("error", R$4.nop), n$5;
|
|
18987
18987
|
}
|
|
18988
|
-
if (!f$
|
|
18989
|
-
f$
|
|
18988
|
+
if (!f$6 || typeof f$6.on != "function") throw new t$8("expected Readable");
|
|
18989
|
+
f$6.on("data", (n$5) => {
|
|
18990
18990
|
const { ret: C$2, body: w$4 } = this;
|
|
18991
18991
|
!C$2.push(n$5) && w$4.pause && w$4.pause();
|
|
18992
18992
|
}).on("error", (n$5) => {
|
|
@@ -18998,7 +18998,7 @@ ${AA.toString(16)}\r
|
|
|
18998
18998
|
}).on("close", () => {
|
|
18999
18999
|
const { ret: n$5 } = this;
|
|
19000
19000
|
n$5._readableState.ended || R$4.destroy(n$5, new y$5());
|
|
19001
|
-
}), this.body = f$
|
|
19001
|
+
}), this.body = f$6;
|
|
19002
19002
|
}
|
|
19003
19003
|
onData(V$2) {
|
|
19004
19004
|
const { res: _$3 } = this;
|
|
@@ -19349,7 +19349,7 @@ ${AA.toString(16)}\r
|
|
|
19349
19349
|
if (K$2 instanceof A$1) {
|
|
19350
19350
|
const nA = C$2[y$5]();
|
|
19351
19351
|
if (nA === !1) throw new A$1(`${K$2.message}: subsequent request to origin ${w$4} was not allowed (net.connect disabled)`);
|
|
19352
|
-
if (f$
|
|
19352
|
+
if (f$6(nA, w$4)) S$3.call(this, z$3, $);
|
|
19353
19353
|
else throw new A$1(`${K$2.message}: subsequent request to origin ${w$4} was not allowed (net.connect is not enabled for this origin)`);
|
|
19354
19354
|
} else throw K$2;
|
|
19355
19355
|
}
|
|
@@ -19357,11 +19357,11 @@ ${AA.toString(16)}\r
|
|
|
19357
19357
|
}, "dispatch");
|
|
19358
19358
|
}
|
|
19359
19359
|
e$6(m$3, "buildMockDispatch");
|
|
19360
|
-
function f$
|
|
19360
|
+
function f$6(C$2, w$4) {
|
|
19361
19361
|
const S$3 = new URL(w$4);
|
|
19362
19362
|
return C$2 === !0 ? !0 : !!(Array.isArray(C$2) && C$2.some((x$3) => D$2(x$3, S$3.host)));
|
|
19363
19363
|
}
|
|
19364
|
-
e$6(f$
|
|
19364
|
+
e$6(f$6, "checkNetConnect");
|
|
19365
19365
|
function n$5(C$2) {
|
|
19366
19366
|
if (C$2) {
|
|
19367
19367
|
const { agent: w$4, ...S$3 } = C$2;
|
|
@@ -19380,7 +19380,7 @@ ${AA.toString(16)}\r
|
|
|
19380
19380
|
getStatusText: q$2,
|
|
19381
19381
|
mockDispatch: Y$1,
|
|
19382
19382
|
buildMockDispatch: m$3,
|
|
19383
|
-
checkNetConnect: f$
|
|
19383
|
+
checkNetConnect: f$6,
|
|
19384
19384
|
buildMockOptions: n$5,
|
|
19385
19385
|
getHeaderByName: r$3,
|
|
19386
19386
|
buildHeadersFromArray: o$7
|
|
@@ -19641,9 +19641,9 @@ ${AA.toString(16)}\r
|
|
|
19641
19641
|
const m$3 = this[U$1]("http://localhost:9999");
|
|
19642
19642
|
return this[B](M$2, m$3), m$3;
|
|
19643
19643
|
}
|
|
19644
|
-
for (const [m$3, f$
|
|
19644
|
+
for (const [m$3, f$6] of Array.from(this[A$1])) if (f$6 && typeof m$3 != "string" && N$2(m$3, M$2)) {
|
|
19645
19645
|
const n$5 = this[U$1](M$2);
|
|
19646
|
-
return this[B](M$2, n$5), n$5[y$5] = f$
|
|
19646
|
+
return this[B](M$2, n$5), n$5[y$5] = f$6[y$5], n$5;
|
|
19647
19647
|
}
|
|
19648
19648
|
}
|
|
19649
19649
|
[Q$2]() {
|
|
@@ -19651,8 +19651,8 @@ ${AA.toString(16)}\r
|
|
|
19651
19651
|
}
|
|
19652
19652
|
pendingInterceptors() {
|
|
19653
19653
|
const M$2 = this[A$1];
|
|
19654
|
-
return Array.from(M$2.entries()).flatMap(([Y$1, m$3]) => m$3[y$5].map((f$
|
|
19655
|
-
...f$
|
|
19654
|
+
return Array.from(M$2.entries()).flatMap(([Y$1, m$3]) => m$3[y$5].map((f$6) => ({
|
|
19655
|
+
...f$6,
|
|
19656
19656
|
origin: Y$1
|
|
19657
19657
|
}))).filter(({ pending: Y$1 }) => Y$1);
|
|
19658
19658
|
}
|
|
@@ -19848,7 +19848,7 @@ ${M$2.format(Y$1)}
|
|
|
19848
19848
|
Y$1(null, q$2.origin);
|
|
19849
19849
|
return;
|
|
19850
19850
|
}
|
|
19851
|
-
const f$
|
|
19851
|
+
const f$6 = {
|
|
19852
19852
|
affinity: this.affinity,
|
|
19853
19853
|
dualStack: this.dualStack,
|
|
19854
19854
|
lookup: this.lookup,
|
|
@@ -19857,18 +19857,18 @@ ${M$2.format(Y$1)}
|
|
|
19857
19857
|
maxTTL: Z(this, Q$2),
|
|
19858
19858
|
maxItems: Z(this, D$2)
|
|
19859
19859
|
};
|
|
19860
|
-
if (m$3 == null) this.lookup(q$2, f$
|
|
19860
|
+
if (m$3 == null) this.lookup(q$2, f$6, (n$5, C$2) => {
|
|
19861
19861
|
if (n$5 || C$2 == null || C$2.length === 0) {
|
|
19862
19862
|
Y$1(n$5 ?? new t$8("No DNS entries found"));
|
|
19863
19863
|
return;
|
|
19864
19864
|
}
|
|
19865
19865
|
this.setRecords(q$2, C$2);
|
|
19866
|
-
const w$4 = Z(this, U$1).get(q$2.hostname), S$3 = this.pick(q$2, w$4, f$
|
|
19866
|
+
const w$4 = Z(this, U$1).get(q$2.hostname), S$3 = this.pick(q$2, w$4, f$6.affinity);
|
|
19867
19867
|
let x$3;
|
|
19868
19868
|
typeof S$3.port == "number" ? x$3 = `:${S$3.port}` : q$2.port !== "" ? x$3 = `:${q$2.port}` : x$3 = "", Y$1(null, `${q$2.protocol}//${S$3.family === 6 ? `[${S$3.address}]` : S$3.address}${x$3}`);
|
|
19869
19869
|
});
|
|
19870
19870
|
else {
|
|
19871
|
-
const n$5 = this.pick(q$2, m$3, f$
|
|
19871
|
+
const n$5 = this.pick(q$2, m$3, f$6.affinity);
|
|
19872
19872
|
if (n$5 == null) {
|
|
19873
19873
|
Z(this, U$1).delete(q$2.hostname), this.runLookup(q$2, M$2, Y$1);
|
|
19874
19874
|
return;
|
|
@@ -19882,10 +19882,10 @@ ${M$2.format(Y$1)}
|
|
|
19882
19882
|
4: null,
|
|
19883
19883
|
6: null
|
|
19884
19884
|
} };
|
|
19885
|
-
for (const f$
|
|
19886
|
-
f$
|
|
19887
|
-
const n$5 = m$3.records[f$
|
|
19888
|
-
n$5.ips.push(f$
|
|
19885
|
+
for (const f$6 of M$2) {
|
|
19886
|
+
f$6.timestamp = Y$1, typeof f$6.ttl == "number" ? f$6.ttl = Math.min(f$6.ttl, Z(this, Q$2)) : f$6.ttl = Z(this, Q$2);
|
|
19887
|
+
const n$5 = m$3.records[f$6.family] ?? { ips: [] };
|
|
19888
|
+
n$5.ips.push(f$6), m$3.records[f$6.family] = n$5;
|
|
19889
19889
|
}
|
|
19890
19890
|
Z(this, U$1).set(q$2.hostname, m$3);
|
|
19891
19891
|
}
|
|
@@ -19898,31 +19898,31 @@ ${M$2.format(Y$1)}
|
|
|
19898
19898
|
all: !0,
|
|
19899
19899
|
family: this.dualStack === !1 ? this.affinity : 0,
|
|
19900
19900
|
order: "ipv4first"
|
|
19901
|
-
}, (m$3, f$
|
|
19901
|
+
}, (m$3, f$6) => {
|
|
19902
19902
|
if (m$3) return Y$1(m$3);
|
|
19903
19903
|
const n$5 = /* @__PURE__ */ new Map();
|
|
19904
|
-
for (const C$2 of f$
|
|
19904
|
+
for (const C$2 of f$6) n$5.set(`${C$2.address}:${C$2.family}`, C$2);
|
|
19905
19905
|
Y$1(null, n$5.values());
|
|
19906
19906
|
});
|
|
19907
19907
|
}, "#defaultLookup"), qe$1 = e$6(function(q$2, M$2, Y$1) {
|
|
19908
19908
|
let m$3 = null;
|
|
19909
|
-
const { records: f$
|
|
19909
|
+
const { records: f$6, offset: n$5 } = M$2;
|
|
19910
19910
|
let C$2;
|
|
19911
|
-
if (this.dualStack ? (Y$1 ?? (n$5 == null || n$5 === y$5 ? (M$2.offset = 0, Y$1 = 4) : (M$2.offset++, Y$1 = (M$2.offset & 1) === 1 ? 6 : 4)), f$
|
|
19911
|
+
if (this.dualStack ? (Y$1 ?? (n$5 == null || n$5 === y$5 ? (M$2.offset = 0, Y$1 = 4) : (M$2.offset++, Y$1 = (M$2.offset & 1) === 1 ? 6 : 4)), f$6[Y$1] != null && f$6[Y$1].ips.length > 0 ? C$2 = f$6[Y$1] : C$2 = f$6[Y$1 === 4 ? 6 : 4]) : C$2 = f$6[Y$1], C$2 == null || C$2.ips.length === 0) return m$3;
|
|
19912
19912
|
C$2.offset == null || C$2.offset === y$5 ? C$2.offset = 0 : C$2.offset++;
|
|
19913
19913
|
const w$4 = C$2.offset % C$2.ips.length;
|
|
19914
19914
|
return m$3 = C$2.ips[w$4] ?? null, m$3 == null ? m$3 : Date.now() - m$3.timestamp > m$3.ttl ? (C$2.ips.splice(w$4, 1), this.pick(q$2, M$2, Y$1)) : m$3;
|
|
19915
19915
|
}, "#defaultPick"), e$6(l$2, "DNSInstance");
|
|
19916
19916
|
let R$4 = l$2;
|
|
19917
19917
|
const V$2 = class V$3 extends c$7 {
|
|
19918
|
-
constructor(M$2, { origin: Y$1, handler: m$3, dispatch: f$
|
|
19918
|
+
constructor(M$2, { origin: Y$1, handler: m$3, dispatch: f$6 }, n$5) {
|
|
19919
19919
|
super(m$3);
|
|
19920
19920
|
SA(this, I$2, null);
|
|
19921
19921
|
SA(this, p$2, null);
|
|
19922
19922
|
SA(this, b$2, null);
|
|
19923
19923
|
SA(this, G$3, null);
|
|
19924
19924
|
SA(this, J$2, null);
|
|
19925
|
-
mA(this, J$2, Y$1), mA(this, G$3, m$3), mA(this, p$2, { ...n$5 }), mA(this, I$2, M$2), mA(this, b$2, f$
|
|
19925
|
+
mA(this, J$2, Y$1), mA(this, G$3, m$3), mA(this, p$2, { ...n$5 }), mA(this, I$2, M$2), mA(this, b$2, f$6);
|
|
19926
19926
|
}
|
|
19927
19927
|
onError(M$2) {
|
|
19928
19928
|
switch (M$2.code) {
|
|
@@ -19931,11 +19931,11 @@ ${M$2.format(Y$1)}
|
|
|
19931
19931
|
if (Z(this, I$2).dualStack) {
|
|
19932
19932
|
Z(this, I$2).runLookup(Z(this, J$2), Z(this, p$2), (Y$1, m$3) => {
|
|
19933
19933
|
if (Y$1) return Z(this, G$3).onError(Y$1);
|
|
19934
|
-
const f$
|
|
19934
|
+
const f$6 = {
|
|
19935
19935
|
...Z(this, p$2),
|
|
19936
19936
|
origin: m$3
|
|
19937
19937
|
};
|
|
19938
|
-
Z(this, b$2).call(this, f$
|
|
19938
|
+
Z(this, b$2).call(this, f$6, this);
|
|
19939
19939
|
});
|
|
19940
19940
|
return;
|
|
19941
19941
|
}
|
|
@@ -19968,9 +19968,9 @@ ${M$2.format(Y$1)}
|
|
|
19968
19968
|
affinity: M$2,
|
|
19969
19969
|
maxItems: _$3?.maxItems ?? Infinity
|
|
19970
19970
|
});
|
|
19971
|
-
return (f$
|
|
19971
|
+
return (f$6) => e$6(function(C$2, w$4) {
|
|
19972
19972
|
const S$3 = C$2.origin.constructor === URL ? C$2.origin : new URL(C$2.origin);
|
|
19973
|
-
return A$1(S$3.hostname) !== 0 ? f$
|
|
19973
|
+
return A$1(S$3.hostname) !== 0 ? f$6(C$2, w$4) : (m$3.runLookup(S$3, C$2, (x$3, z$3) => {
|
|
19974
19974
|
if (x$3) return w$4.onError(x$3);
|
|
19975
19975
|
let $ = null;
|
|
19976
19976
|
$ = {
|
|
@@ -19981,9 +19981,9 @@ ${M$2.format(Y$1)}
|
|
|
19981
19981
|
host: S$3.hostname,
|
|
19982
19982
|
...C$2.headers
|
|
19983
19983
|
}
|
|
19984
|
-
}, f$
|
|
19984
|
+
}, f$6($, m$3.getHandler({
|
|
19985
19985
|
origin: S$3,
|
|
19986
|
-
dispatch: f$
|
|
19986
|
+
dispatch: f$6,
|
|
19987
19987
|
handler: w$4
|
|
19988
19988
|
}, C$2));
|
|
19989
19989
|
}), !0);
|
|
@@ -20002,24 +20002,24 @@ ${M$2.format(Y$1)}
|
|
|
20002
20002
|
}
|
|
20003
20003
|
e$6(U$1, "isHTTPWhiteSpaceCharCode");
|
|
20004
20004
|
function r$3(m$3) {
|
|
20005
|
-
let f$
|
|
20006
|
-
for (; n$5 > f$
|
|
20007
|
-
for (; n$5 > f$
|
|
20008
|
-
return f$
|
|
20005
|
+
let f$6 = 0, n$5 = m$3.length;
|
|
20006
|
+
for (; n$5 > f$6 && U$1(m$3.charCodeAt(n$5 - 1));) --n$5;
|
|
20007
|
+
for (; n$5 > f$6 && U$1(m$3.charCodeAt(f$6));) ++f$6;
|
|
20008
|
+
return f$6 === 0 && n$5 === m$3.length ? m$3 : m$3.substring(f$6, n$5);
|
|
20009
20009
|
}
|
|
20010
20010
|
e$6(r$3, "headerValueNormalize");
|
|
20011
|
-
function o$7(m$3, f$
|
|
20012
|
-
if (Array.isArray(f$
|
|
20013
|
-
const C$2 = f$
|
|
20011
|
+
function o$7(m$3, f$6) {
|
|
20012
|
+
if (Array.isArray(f$6)) for (let n$5 = 0; n$5 < f$6.length; ++n$5) {
|
|
20013
|
+
const C$2 = f$6[n$5];
|
|
20014
20014
|
if (C$2.length !== 2) throw y$5.errors.exception({
|
|
20015
20015
|
header: "Headers constructor",
|
|
20016
20016
|
message: `expected name/value pair to be length 2, found ${C$2.length}.`
|
|
20017
20017
|
});
|
|
20018
20018
|
N$2(m$3, C$2[0], C$2[1]);
|
|
20019
20019
|
}
|
|
20020
|
-
else if (typeof f$
|
|
20021
|
-
const n$5 = Object.keys(f$
|
|
20022
|
-
for (let C$2 = 0; C$2 < n$5.length; ++C$2) N$2(m$3, n$5[C$2], f$
|
|
20020
|
+
else if (typeof f$6 == "object" && f$6 !== null) {
|
|
20021
|
+
const n$5 = Object.keys(f$6);
|
|
20022
|
+
for (let C$2 = 0; C$2 < n$5.length; ++C$2) N$2(m$3, n$5[C$2], f$6[n$5[C$2]]);
|
|
20023
20023
|
} else throw y$5.errors.conversionFailed({
|
|
20024
20024
|
prefix: "Headers constructor",
|
|
20025
20025
|
argument: "Argument 1",
|
|
@@ -20027,8 +20027,8 @@ ${M$2.format(Y$1)}
|
|
|
20027
20027
|
});
|
|
20028
20028
|
}
|
|
20029
20029
|
e$6(o$7, "fill");
|
|
20030
|
-
function N$2(m$3, f$
|
|
20031
|
-
if (n$5 = r$3(n$5), B(f$
|
|
20030
|
+
function N$2(m$3, f$6, n$5) {
|
|
20031
|
+
if (n$5 = r$3(n$5), B(f$6)) {
|
|
20032
20032
|
if (!t$8(n$5)) throw y$5.errors.invalidArgument({
|
|
20033
20033
|
prefix: "Headers.append",
|
|
20034
20034
|
value: n$5,
|
|
@@ -20036,31 +20036,31 @@ ${M$2.format(Y$1)}
|
|
|
20036
20036
|
});
|
|
20037
20037
|
} else throw y$5.errors.invalidArgument({
|
|
20038
20038
|
prefix: "Headers.append",
|
|
20039
|
-
value: f$
|
|
20039
|
+
value: f$6,
|
|
20040
20040
|
type: "header name"
|
|
20041
20041
|
});
|
|
20042
20042
|
if (b$2(m$3) === "immutable") throw new TypeError("immutable");
|
|
20043
|
-
return J$2(m$3).append(f$
|
|
20043
|
+
return J$2(m$3).append(f$6, n$5, !1);
|
|
20044
20044
|
}
|
|
20045
20045
|
e$6(N$2, "appendHeader");
|
|
20046
|
-
function l$2(m$3, f$
|
|
20047
|
-
return m$3[0] < f$
|
|
20046
|
+
function l$2(m$3, f$6) {
|
|
20047
|
+
return m$3[0] < f$6[0] ? -1 : 1;
|
|
20048
20048
|
}
|
|
20049
20049
|
e$6(l$2, "compareHeaderName");
|
|
20050
20050
|
const _$3 = class _$4 {
|
|
20051
|
-
constructor(f$
|
|
20051
|
+
constructor(f$6) {
|
|
20052
20052
|
$A(this, "cookies", null);
|
|
20053
|
-
f$
|
|
20053
|
+
f$6 instanceof _$4 ? (this[Q$2] = new Map(f$6[Q$2]), this[D$2] = f$6[D$2], this.cookies = f$6.cookies === null ? null : [...f$6.cookies]) : (this[Q$2] = new Map(f$6), this[D$2] = null);
|
|
20054
20054
|
}
|
|
20055
|
-
contains(f$
|
|
20056
|
-
return this[Q$2].has(n$5 ? f$
|
|
20055
|
+
contains(f$6, n$5) {
|
|
20056
|
+
return this[Q$2].has(n$5 ? f$6 : f$6.toLowerCase());
|
|
20057
20057
|
}
|
|
20058
20058
|
clear() {
|
|
20059
20059
|
this[Q$2].clear(), this[D$2] = null, this.cookies = null;
|
|
20060
20060
|
}
|
|
20061
|
-
append(f$
|
|
20061
|
+
append(f$6, n$5, C$2) {
|
|
20062
20062
|
this[D$2] = null;
|
|
20063
|
-
const w$4 = C$2 ? f$
|
|
20063
|
+
const w$4 = C$2 ? f$6 : f$6.toLowerCase(), S$3 = this[Q$2].get(w$4);
|
|
20064
20064
|
if (S$3) {
|
|
20065
20065
|
const x$3 = w$4 === "cookie" ? "; " : ", ";
|
|
20066
20066
|
this[Q$2].set(w$4, {
|
|
@@ -20068,49 +20068,49 @@ ${M$2.format(Y$1)}
|
|
|
20068
20068
|
value: `${S$3.value}${x$3}${n$5}`
|
|
20069
20069
|
});
|
|
20070
20070
|
} else this[Q$2].set(w$4, {
|
|
20071
|
-
name: f$
|
|
20071
|
+
name: f$6,
|
|
20072
20072
|
value: n$5
|
|
20073
20073
|
});
|
|
20074
20074
|
w$4 === "set-cookie" && (this.cookies ?? (this.cookies = [])).push(n$5);
|
|
20075
20075
|
}
|
|
20076
|
-
set(f$
|
|
20076
|
+
set(f$6, n$5, C$2) {
|
|
20077
20077
|
this[D$2] = null;
|
|
20078
|
-
const w$4 = C$2 ? f$
|
|
20078
|
+
const w$4 = C$2 ? f$6 : f$6.toLowerCase();
|
|
20079
20079
|
w$4 === "set-cookie" && (this.cookies = [n$5]), this[Q$2].set(w$4, {
|
|
20080
|
-
name: f$
|
|
20080
|
+
name: f$6,
|
|
20081
20081
|
value: n$5
|
|
20082
20082
|
});
|
|
20083
20083
|
}
|
|
20084
|
-
delete(f$
|
|
20085
|
-
this[D$2] = null, n$5 || (f$
|
|
20084
|
+
delete(f$6, n$5) {
|
|
20085
|
+
this[D$2] = null, n$5 || (f$6 = f$6.toLowerCase()), f$6 === "set-cookie" && (this.cookies = null), this[Q$2].delete(f$6);
|
|
20086
20086
|
}
|
|
20087
|
-
get(f$
|
|
20088
|
-
return this[Q$2].get(n$5 ? f$
|
|
20087
|
+
get(f$6, n$5) {
|
|
20088
|
+
return this[Q$2].get(n$5 ? f$6 : f$6.toLowerCase())?.value ?? null;
|
|
20089
20089
|
}
|
|
20090
20090
|
*[Symbol.iterator]() {
|
|
20091
|
-
for (const { 0: f$
|
|
20091
|
+
for (const { 0: f$6, 1: { value: n$5 } } of this[Q$2]) yield [f$6, n$5];
|
|
20092
20092
|
}
|
|
20093
20093
|
get entries() {
|
|
20094
|
-
const f$
|
|
20095
|
-
if (this[Q$2].size !== 0) for (const { name: n$5, value: C$2 } of this[Q$2].values()) f$
|
|
20096
|
-
return f$
|
|
20094
|
+
const f$6 = {};
|
|
20095
|
+
if (this[Q$2].size !== 0) for (const { name: n$5, value: C$2 } of this[Q$2].values()) f$6[n$5] = C$2;
|
|
20096
|
+
return f$6;
|
|
20097
20097
|
}
|
|
20098
20098
|
rawValues() {
|
|
20099
20099
|
return this[Q$2].values();
|
|
20100
20100
|
}
|
|
20101
20101
|
get entriesList() {
|
|
20102
|
-
const f$
|
|
20103
|
-
if (this[Q$2].size !== 0) for (const { 0: n$5, 1: { name: C$2, value: w$4 } } of this[Q$2]) if (n$5 === "set-cookie") for (const S$3 of this.cookies) f$
|
|
20104
|
-
else f$
|
|
20105
|
-
return f$
|
|
20102
|
+
const f$6 = [];
|
|
20103
|
+
if (this[Q$2].size !== 0) for (const { 0: n$5, 1: { name: C$2, value: w$4 } } of this[Q$2]) if (n$5 === "set-cookie") for (const S$3 of this.cookies) f$6.push([C$2, S$3]);
|
|
20104
|
+
else f$6.push([C$2, w$4]);
|
|
20105
|
+
return f$6;
|
|
20106
20106
|
}
|
|
20107
20107
|
toSortedArray() {
|
|
20108
|
-
const f$
|
|
20109
|
-
if (f$
|
|
20110
|
-
if (f$
|
|
20108
|
+
const f$6 = this[Q$2].size, n$5 = new Array(f$6);
|
|
20109
|
+
if (f$6 <= 32) {
|
|
20110
|
+
if (f$6 === 0) return n$5;
|
|
20111
20111
|
const C$2 = this[Q$2][Symbol.iterator](), w$4 = C$2.next().value;
|
|
20112
20112
|
n$5[0] = [w$4[0], w$4[1].value], R$4(w$4[1].value !== null);
|
|
20113
|
-
for (let S$3 = 1, x$3 = 0, z$3 = 0, $ = 0, K$2 = 0, nA, iA; S$3 < f$
|
|
20113
|
+
for (let S$3 = 1, x$3 = 0, z$3 = 0, $ = 0, K$2 = 0, nA, iA; S$3 < f$6; ++S$3) {
|
|
20114
20114
|
for (iA = C$2.next().value, nA = n$5[S$3] = [iA[0], iA[1].value], R$4(nA[1] !== null), $ = 0, z$3 = S$3; $ < z$3;) K$2 = $ + (z$3 - $ >> 1), n$5[K$2][0] <= nA[0] ? $ = K$2 + 1 : z$3 = K$2;
|
|
20115
20115
|
if (S$3 !== K$2) {
|
|
20116
20116
|
for (x$3 = S$3; x$3 > $;) n$5[x$3] = n$5[--x$3];
|
|
@@ -20129,49 +20129,49 @@ ${M$2.format(Y$1)}
|
|
|
20129
20129
|
e$6(_$3, "HeadersList");
|
|
20130
20130
|
let I$2 = _$3;
|
|
20131
20131
|
const Y$1 = class Y$2 {
|
|
20132
|
-
constructor(f$
|
|
20132
|
+
constructor(f$6 = void 0) {
|
|
20133
20133
|
SA(this, q$2);
|
|
20134
20134
|
SA(this, M$2);
|
|
20135
|
-
y$5.util.markAsUncloneable(this), f$
|
|
20135
|
+
y$5.util.markAsUncloneable(this), f$6 !== A$1 && (mA(this, M$2, new I$2()), mA(this, q$2, "none"), f$6 !== void 0 && (f$6 = y$5.converters.HeadersInit(f$6, "Headers contructor", "init"), o$7(this, f$6)));
|
|
20136
20136
|
}
|
|
20137
|
-
append(f$
|
|
20137
|
+
append(f$6, n$5) {
|
|
20138
20138
|
y$5.brandCheck(this, Y$2), y$5.argumentLengthCheck(arguments, 2, "Headers.append");
|
|
20139
20139
|
const C$2 = "Headers.append";
|
|
20140
|
-
return f$
|
|
20140
|
+
return f$6 = y$5.converters.ByteString(f$6, C$2, "name"), n$5 = y$5.converters.ByteString(n$5, C$2, "value"), N$2(this, f$6, n$5);
|
|
20141
20141
|
}
|
|
20142
|
-
delete(f$
|
|
20143
|
-
if (y$5.brandCheck(this, Y$2), y$5.argumentLengthCheck(arguments, 1, "Headers.delete"), f$
|
|
20142
|
+
delete(f$6) {
|
|
20143
|
+
if (y$5.brandCheck(this, Y$2), y$5.argumentLengthCheck(arguments, 1, "Headers.delete"), f$6 = y$5.converters.ByteString(f$6, "Headers.delete", "name"), !B(f$6)) throw y$5.errors.invalidArgument({
|
|
20144
20144
|
prefix: "Headers.delete",
|
|
20145
|
-
value: f$
|
|
20145
|
+
value: f$6,
|
|
20146
20146
|
type: "header name"
|
|
20147
20147
|
});
|
|
20148
20148
|
if (Z(this, q$2) === "immutable") throw new TypeError("immutable");
|
|
20149
|
-
Z(this, M$2).contains(f$
|
|
20149
|
+
Z(this, M$2).contains(f$6, !1) && Z(this, M$2).delete(f$6, !1);
|
|
20150
20150
|
}
|
|
20151
|
-
get(f$
|
|
20151
|
+
get(f$6) {
|
|
20152
20152
|
y$5.brandCheck(this, Y$2), y$5.argumentLengthCheck(arguments, 1, "Headers.get");
|
|
20153
20153
|
const n$5 = "Headers.get";
|
|
20154
|
-
if (f$
|
|
20154
|
+
if (f$6 = y$5.converters.ByteString(f$6, n$5, "name"), !B(f$6)) throw y$5.errors.invalidArgument({
|
|
20155
20155
|
prefix: n$5,
|
|
20156
|
-
value: f$
|
|
20156
|
+
value: f$6,
|
|
20157
20157
|
type: "header name"
|
|
20158
20158
|
});
|
|
20159
|
-
return Z(this, M$2).get(f$
|
|
20159
|
+
return Z(this, M$2).get(f$6, !1);
|
|
20160
20160
|
}
|
|
20161
|
-
has(f$
|
|
20161
|
+
has(f$6) {
|
|
20162
20162
|
y$5.brandCheck(this, Y$2), y$5.argumentLengthCheck(arguments, 1, "Headers.has");
|
|
20163
20163
|
const n$5 = "Headers.has";
|
|
20164
|
-
if (f$
|
|
20164
|
+
if (f$6 = y$5.converters.ByteString(f$6, n$5, "name"), !B(f$6)) throw y$5.errors.invalidArgument({
|
|
20165
20165
|
prefix: n$5,
|
|
20166
|
-
value: f$
|
|
20166
|
+
value: f$6,
|
|
20167
20167
|
type: "header name"
|
|
20168
20168
|
});
|
|
20169
|
-
return Z(this, M$2).contains(f$
|
|
20169
|
+
return Z(this, M$2).contains(f$6, !1);
|
|
20170
20170
|
}
|
|
20171
|
-
set(f$
|
|
20171
|
+
set(f$6, n$5) {
|
|
20172
20172
|
y$5.brandCheck(this, Y$2), y$5.argumentLengthCheck(arguments, 2, "Headers.set");
|
|
20173
20173
|
const C$2 = "Headers.set";
|
|
20174
|
-
if (f$
|
|
20174
|
+
if (f$6 = y$5.converters.ByteString(f$6, C$2, "name"), n$5 = y$5.converters.ByteString(n$5, C$2, "value"), n$5 = r$3(n$5), B(f$6)) {
|
|
20175
20175
|
if (!t$8(n$5)) throw y$5.errors.invalidArgument({
|
|
20176
20176
|
prefix: C$2,
|
|
20177
20177
|
value: n$5,
|
|
@@ -20179,42 +20179,42 @@ ${M$2.format(Y$1)}
|
|
|
20179
20179
|
});
|
|
20180
20180
|
} else throw y$5.errors.invalidArgument({
|
|
20181
20181
|
prefix: C$2,
|
|
20182
|
-
value: f$
|
|
20182
|
+
value: f$6,
|
|
20183
20183
|
type: "header name"
|
|
20184
20184
|
});
|
|
20185
20185
|
if (Z(this, q$2) === "immutable") throw new TypeError("immutable");
|
|
20186
|
-
Z(this, M$2).set(f$
|
|
20186
|
+
Z(this, M$2).set(f$6, n$5, !1);
|
|
20187
20187
|
}
|
|
20188
20188
|
getSetCookie() {
|
|
20189
20189
|
y$5.brandCheck(this, Y$2);
|
|
20190
|
-
const f$
|
|
20191
|
-
return f$
|
|
20190
|
+
const f$6 = Z(this, M$2).cookies;
|
|
20191
|
+
return f$6 ? [...f$6] : [];
|
|
20192
20192
|
}
|
|
20193
20193
|
get [D$2]() {
|
|
20194
20194
|
if (Z(this, M$2)[D$2]) return Z(this, M$2)[D$2];
|
|
20195
|
-
const f$
|
|
20195
|
+
const f$6 = [], n$5 = Z(this, M$2).toSortedArray(), C$2 = Z(this, M$2).cookies;
|
|
20196
20196
|
if (C$2 === null || C$2.length === 1) return Z(this, M$2)[D$2] = n$5;
|
|
20197
20197
|
for (let w$4 = 0; w$4 < n$5.length; ++w$4) {
|
|
20198
20198
|
const { 0: S$3, 1: x$3 } = n$5[w$4];
|
|
20199
|
-
if (S$3 === "set-cookie") for (let z$3 = 0; z$3 < C$2.length; ++z$3) f$
|
|
20200
|
-
else f$
|
|
20199
|
+
if (S$3 === "set-cookie") for (let z$3 = 0; z$3 < C$2.length; ++z$3) f$6.push([S$3, C$2[z$3]]);
|
|
20200
|
+
else f$6.push([S$3, x$3]);
|
|
20201
20201
|
}
|
|
20202
|
-
return Z(this, M$2)[D$2] = f$
|
|
20202
|
+
return Z(this, M$2)[D$2] = f$6;
|
|
20203
20203
|
}
|
|
20204
|
-
[F$4.inspect.custom](f$
|
|
20205
|
-
return n$5.depth ?? (n$5.depth = f$
|
|
20204
|
+
[F$4.inspect.custom](f$6, n$5) {
|
|
20205
|
+
return n$5.depth ?? (n$5.depth = f$6), `Headers ${F$4.formatWithOptions(n$5, Z(this, M$2).entries)}`;
|
|
20206
20206
|
}
|
|
20207
|
-
static getHeadersGuard(f$
|
|
20208
|
-
return Z(f$
|
|
20207
|
+
static getHeadersGuard(f$6) {
|
|
20208
|
+
return Z(f$6, q$2);
|
|
20209
20209
|
}
|
|
20210
|
-
static setHeadersGuard(f$
|
|
20211
|
-
mA(f$
|
|
20210
|
+
static setHeadersGuard(f$6, n$5) {
|
|
20211
|
+
mA(f$6, q$2, n$5);
|
|
20212
20212
|
}
|
|
20213
|
-
static getHeadersList(f$
|
|
20214
|
-
return Z(f$
|
|
20213
|
+
static getHeadersList(f$6) {
|
|
20214
|
+
return Z(f$6, M$2);
|
|
20215
20215
|
}
|
|
20216
|
-
static setHeadersList(f$
|
|
20217
|
-
mA(f$
|
|
20216
|
+
static setHeadersList(f$6, n$5) {
|
|
20217
|
+
mA(f$6, M$2, n$5);
|
|
20218
20218
|
}
|
|
20219
20219
|
};
|
|
20220
20220
|
q$2 = /* @__PURE__ */ new WeakMap(), M$2 = /* @__PURE__ */ new WeakMap(), e$6(Y$1, "Headers");
|
|
@@ -20232,13 +20232,13 @@ ${M$2.format(Y$1)}
|
|
|
20232
20232
|
configurable: !0
|
|
20233
20233
|
},
|
|
20234
20234
|
[F$4.inspect.custom]: { enumerable: !1 }
|
|
20235
|
-
}), y$5.converters.HeadersInit = function(m$3, f$
|
|
20235
|
+
}), y$5.converters.HeadersInit = function(m$3, f$6, n$5) {
|
|
20236
20236
|
if (y$5.util.Type(m$3) === "Object") {
|
|
20237
20237
|
const C$2 = Reflect.get(m$3, Symbol.iterator);
|
|
20238
20238
|
if (!F$4.types.isProxy(m$3) && C$2 === p$2.prototype.entries) try {
|
|
20239
20239
|
return J$2(m$3).entriesList;
|
|
20240
20240
|
} catch {}
|
|
20241
|
-
return typeof C$2 == "function" ? y$5.converters["sequence<sequence<ByteString>>"](m$3, f$
|
|
20241
|
+
return typeof C$2 == "function" ? y$5.converters["sequence<sequence<ByteString>>"](m$3, f$6, n$5, C$2.bind(m$3)) : y$5.converters["record<ByteString, ByteString>"](m$3, f$6, n$5);
|
|
20242
20242
|
}
|
|
20243
20243
|
throw y$5.errors.conversionFailed({
|
|
20244
20244
|
prefix: "Headers constructor",
|
|
@@ -20261,7 +20261,7 @@ ${M$2.format(Y$1)}
|
|
|
20261
20261
|
function requireResponse() {
|
|
20262
20262
|
if (hasRequiredResponse) return response;
|
|
20263
20263
|
hasRequiredResponse = 1;
|
|
20264
|
-
const { Headers: A$1, HeadersList: k$3, fill: c$7, getHeadersGuard: B, setHeadersGuard: t$8, setHeadersList: y$5 } = requireHeaders(), { extractBody: R$4, cloneBody: F$4, mixinBody: Q$2, hasFinalizationRegistry: D$2, streamRegistry: U$1, bodyUnusable: r$3 } = requireBody(), o$7 = requireUtil$7(), N$2 = require$$0__default$3, { kEnumerableProperty: l$2 } = o$7, { isValidReasonPhrase: I$2, isCancelled: p$2, isAborted: b$2, isBlobLike: G$3, serializeJavascriptValueToJSONString: J$2, isErrorLike: V$2, isomorphicEncode: _$3, environmentSettingsObject: q$2 } = requireUtil$6(), { redirectStatusSet: M$2, nullBodyStatus: Y$1 } = requireConstants$2(), { kState: m$3, kHeaders: f$
|
|
20264
|
+
const { Headers: A$1, HeadersList: k$3, fill: c$7, getHeadersGuard: B, setHeadersGuard: t$8, setHeadersList: y$5 } = requireHeaders(), { extractBody: R$4, cloneBody: F$4, mixinBody: Q$2, hasFinalizationRegistry: D$2, streamRegistry: U$1, bodyUnusable: r$3 } = requireBody(), o$7 = requireUtil$7(), N$2 = require$$0__default$3, { kEnumerableProperty: l$2 } = o$7, { isValidReasonPhrase: I$2, isCancelled: p$2, isAborted: b$2, isBlobLike: G$3, serializeJavascriptValueToJSONString: J$2, isErrorLike: V$2, isomorphicEncode: _$3, environmentSettingsObject: q$2 } = requireUtil$6(), { redirectStatusSet: M$2, nullBodyStatus: Y$1 } = requireConstants$2(), { kState: m$3, kHeaders: f$6 } = requireSymbols$3(), { webidl: n$5 } = requireWebidl(), { FormData: C$2 } = requireFormdata(), { URLSerializer: w$4 } = requireDataUrl(), { kConstruct: S$3 } = requireSymbols$4(), x$3 = require$$0__default$1, { types: z$3 } = require$$0__default$3, $ = new TextEncoder("utf-8"), bA = class bA$1 {
|
|
20265
20265
|
static error() {
|
|
20266
20266
|
return kA(uA(), "immutable");
|
|
20267
20267
|
}
|
|
@@ -20289,7 +20289,7 @@ ${M$2.format(Y$1)}
|
|
|
20289
20289
|
}
|
|
20290
20290
|
constructor(DA = null, oA = {}) {
|
|
20291
20291
|
if (n$5.util.markAsUncloneable(this), DA === S$3) return;
|
|
20292
|
-
DA !== null && (DA = n$5.converters.BodyInit(DA)), oA = n$5.converters.ResponseInit(oA), this[m$3] = iA({}), this[f$
|
|
20292
|
+
DA !== null && (DA = n$5.converters.BodyInit(DA)), oA = n$5.converters.ResponseInit(oA), this[m$3] = iA({}), this[f$6] = new A$1(S$3), t$8(this[f$6], "response"), y$5(this[f$6], this[m$3].headersList);
|
|
20293
20293
|
let aA = null;
|
|
20294
20294
|
if (DA != null) {
|
|
20295
20295
|
const [EA, sA] = R$4(DA);
|
|
@@ -20321,7 +20321,7 @@ ${M$2.format(Y$1)}
|
|
|
20321
20321
|
return n$5.brandCheck(this, bA$1), this[m$3].statusText;
|
|
20322
20322
|
}
|
|
20323
20323
|
get headers() {
|
|
20324
|
-
return n$5.brandCheck(this, bA$1), this[f$
|
|
20324
|
+
return n$5.brandCheck(this, bA$1), this[f$6];
|
|
20325
20325
|
}
|
|
20326
20326
|
get body() {
|
|
20327
20327
|
return n$5.brandCheck(this, bA$1), this[m$3].body ? this[m$3].body.stream : null;
|
|
@@ -20334,7 +20334,7 @@ ${M$2.format(Y$1)}
|
|
|
20334
20334
|
header: "Response.clone",
|
|
20335
20335
|
message: "Body has already been consumed."
|
|
20336
20336
|
});
|
|
20337
|
-
return kA(nA(this[m$3]), B(this[f$
|
|
20337
|
+
return kA(nA(this[m$3]), B(this[f$6]));
|
|
20338
20338
|
}
|
|
20339
20339
|
[N$2.inspect.custom](DA, oA) {
|
|
20340
20340
|
oA.depth === null && (oA.depth = 2), oA.colors ?? (oA.colors = !0);
|
|
@@ -20460,7 +20460,7 @@ ${M$2.format(Y$1)}
|
|
|
20460
20460
|
function fA(gA, DA, oA) {
|
|
20461
20461
|
if (DA.status !== null && (DA.status < 200 || DA.status > 599)) throw new RangeError("init[\"status\"] must be in the range of 200 to 599, inclusive.");
|
|
20462
20462
|
if ("statusText" in DA && DA.statusText != null && !I$2(String(DA.statusText))) throw new TypeError("Invalid statusText");
|
|
20463
|
-
if ("status" in DA && DA.status != null && (gA[m$3].status = DA.status), "statusText" in DA && DA.statusText != null && (gA[m$3].statusText = DA.statusText), "headers" in DA && DA.headers != null && c$7(gA[f$
|
|
20463
|
+
if ("status" in DA && DA.status != null && (gA[m$3].status = DA.status), "statusText" in DA && DA.statusText != null && (gA[m$3].statusText = DA.statusText), "headers" in DA && DA.headers != null && c$7(gA[f$6], DA.headers), oA) {
|
|
20464
20464
|
if (Y$1.includes(gA.status)) throw n$5.errors.exception({
|
|
20465
20465
|
header: "Response constructor",
|
|
20466
20466
|
message: `Invalid response status code ${gA.status}`
|
|
@@ -20471,7 +20471,7 @@ ${M$2.format(Y$1)}
|
|
|
20471
20471
|
e$6(fA, "initializeResponse");
|
|
20472
20472
|
function kA(gA, DA) {
|
|
20473
20473
|
const oA = new K$2(S$3);
|
|
20474
|
-
return oA[m$3] = gA, oA[f$
|
|
20474
|
+
return oA[m$3] = gA, oA[f$6] = new A$1(S$3), y$5(oA[f$6], gA.headersList), t$8(oA[f$6], DA), D$2 && gA.body?.stream && U$1.register(oA, new WeakRef(gA.body.stream)), oA;
|
|
20475
20475
|
}
|
|
20476
20476
|
return e$6(kA, "fromInnerResponse"), n$5.converters.ReadableStream = n$5.interfaceConverter(ReadableStream), n$5.converters.FormData = n$5.interfaceConverter(C$2), n$5.converters.URLSearchParams = n$5.interfaceConverter(URLSearchParams), n$5.converters.XMLHttpRequestBodyInit = function(gA, DA, oA) {
|
|
20477
20477
|
return typeof gA == "string" ? n$5.converters.USVString(gA, DA, oA) : G$3(gA) ? n$5.converters.Blob(gA, DA, oA, { strict: !1 }) : ArrayBuffer.isView(gA) || z$3.isArrayBuffer(gA) ? n$5.converters.BufferSource(gA, DA, oA) : o$7.isFormDataLike(gA) ? n$5.converters.FormData(gA, DA, oA, { strict: !1 }) : gA instanceof URLSearchParams ? n$5.converters.URLSearchParams(gA, DA, oA) : n$5.converters.DOMString(gA, DA, oA);
|
|
@@ -20546,7 +20546,7 @@ ${M$2.format(Y$1)}
|
|
|
20546
20546
|
function requireRequest() {
|
|
20547
20547
|
if (hasRequiredRequest) return request;
|
|
20548
20548
|
hasRequiredRequest = 1;
|
|
20549
|
-
const { extractBody: A$1, mixinBody: k$3, cloneBody: c$7, bodyUnusable: B } = requireBody(), { Headers: t$8, fill: y$5, HeadersList: R$4, setHeadersGuard: F$4, getHeadersGuard: Q$2, setHeadersList: D$2, getHeadersList: U$1 } = requireHeaders(), { FinalizationRegistry: r$3 } = requireDispatcherWeakref()(), o$7 = requireUtil$7(), N$2 = require$$0__default$3, { isValidHTTPToken: l$2, sameOrigin: I$2, environmentSettingsObject: p$2 } = requireUtil$6(), { forbiddenMethodsSet: b$2, corsSafeListedMethodsSet: G$3, referrerPolicy: J$2, requestRedirect: V$2, requestMode: _$3, requestCredentials: q$2, requestCache: M$2, requestDuplex: Y$1 } = requireConstants$2(), { kEnumerableProperty: m$3, normalizedMethodRecordsBase: f$
|
|
20549
|
+
const { extractBody: A$1, mixinBody: k$3, cloneBody: c$7, bodyUnusable: B } = requireBody(), { Headers: t$8, fill: y$5, HeadersList: R$4, setHeadersGuard: F$4, getHeadersGuard: Q$2, setHeadersList: D$2, getHeadersList: U$1 } = requireHeaders(), { FinalizationRegistry: r$3 } = requireDispatcherWeakref()(), o$7 = requireUtil$7(), N$2 = require$$0__default$3, { isValidHTTPToken: l$2, sameOrigin: I$2, environmentSettingsObject: p$2 } = requireUtil$6(), { forbiddenMethodsSet: b$2, corsSafeListedMethodsSet: G$3, referrerPolicy: J$2, requestRedirect: V$2, requestMode: _$3, requestCredentials: q$2, requestCache: M$2, requestDuplex: Y$1 } = requireConstants$2(), { kEnumerableProperty: m$3, normalizedMethodRecordsBase: f$6, normalizedMethodRecords: n$5 } = o$7, { kHeaders: C$2, kSignal: w$4, kState: S$3, kDispatcher: x$3 } = requireSymbols$3(), { webidl: z$3 } = requireWebidl(), { URLSerializer: $ } = requireDataUrl(), { kConstruct: K$2 } = requireSymbols$4(), nA = require$$0__default$1, { getMaxListeners: iA, setMaxListeners: uA, getEventListeners: RA, defaultMaxListeners: IA } = require$$8__default, CA = Symbol("abortController"), pA = new r$3(({ signal: sA, abort: NA }) => {
|
|
20550
20550
|
sA.removeEventListener("abort", NA);
|
|
20551
20551
|
}), fA = /* @__PURE__ */ new WeakMap();
|
|
20552
20552
|
function kA(sA) {
|
|
@@ -20642,7 +20642,7 @@ ${M$2.format(Y$1)}
|
|
|
20642
20642
|
if (!l$2(cA)) throw new TypeError(`'${cA}' is not a valid HTTP method.`);
|
|
20643
20643
|
const LA = cA.toUpperCase();
|
|
20644
20644
|
if (b$2.has(LA)) throw new TypeError(`'${cA}' HTTP method is unsupported.`);
|
|
20645
|
-
cA = f$
|
|
20645
|
+
cA = f$6[LA] ?? cA, dA.method = cA;
|
|
20646
20646
|
}
|
|
20647
20647
|
!bA && dA.method === "patch" && (process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.", { code: "UNDICI-FETCH-patch" }), bA = !0);
|
|
20648
20648
|
}
|
|
@@ -20951,7 +20951,7 @@ ${M$2.format(Y$1)}
|
|
|
20951
20951
|
function requireFetch() {
|
|
20952
20952
|
if (hasRequiredFetch) return fetch_1;
|
|
20953
20953
|
hasRequiredFetch = 1;
|
|
20954
|
-
const { makeNetworkError: A$1, makeAppropriateNetworkError: k$3, filterResponse: c$7, makeResponse: B, fromInnerResponse: t$8 } = requireResponse(), { HeadersList: y$5 } = requireHeaders(), { Request: R$4, cloneRequest: F$4 } = requireRequest(), Q$2 = zlib__default, { bytesMatch: D$2, makePolicyContainer: U$1, clonePolicyContainer: r$3, requestBadPort: o$7, TAOCheck: N$2, appendRequestOriginHeader: l$2, responseLocationURL: I$2, requestCurrentURL: p$2, setRequestReferrerPolicyOnRedirect: b$2, tryUpgradeRequestToAPotentiallyTrustworthyURL: G$3, createOpaqueTimingInfo: J$2, appendFetchMetadata: V$2, corsCheck: _$3, crossOriginResourcePolicyCheck: q$2, determineRequestsReferrer: M$2, coarsenedSharedCurrentTime: Y$1, createDeferredPromise: m$3, isBlobLike: f$
|
|
20954
|
+
const { makeNetworkError: A$1, makeAppropriateNetworkError: k$3, filterResponse: c$7, makeResponse: B, fromInnerResponse: t$8 } = requireResponse(), { HeadersList: y$5 } = requireHeaders(), { Request: R$4, cloneRequest: F$4 } = requireRequest(), Q$2 = zlib__default, { bytesMatch: D$2, makePolicyContainer: U$1, clonePolicyContainer: r$3, requestBadPort: o$7, TAOCheck: N$2, appendRequestOriginHeader: l$2, responseLocationURL: I$2, requestCurrentURL: p$2, setRequestReferrerPolicyOnRedirect: b$2, tryUpgradeRequestToAPotentiallyTrustworthyURL: G$3, createOpaqueTimingInfo: J$2, appendFetchMetadata: V$2, corsCheck: _$3, crossOriginResourcePolicyCheck: q$2, determineRequestsReferrer: M$2, coarsenedSharedCurrentTime: Y$1, createDeferredPromise: m$3, isBlobLike: f$6, sameOrigin: n$5, isCancelled: C$2, isAborted: w$4, isErrorLike: S$3, fullyReadBody: x$3, readableStreamClose: z$3, isomorphicEncode: $, urlIsLocal: K$2, urlIsHttpHttpsScheme: nA, urlHasHttpsScheme: iA, clampAndCoarsenConnectionTimingInfo: uA, simpleRangeHeaderValue: RA, buildContentRange: IA, createInflate: CA, extractMimeType: pA } = requireUtil$6(), { kState: fA, kDispatcher: kA } = requireSymbols$3(), bA = require$$0__default$1, { safelyExtractBody: gA, extractBody: DA } = requireBody(), { redirectStatusSet: oA, nullBodyStatus: aA, safeMethodsSet: EA, requestBodyHeader: sA, subresourceSet: NA } = requireConstants$2(), wA = require$$8__default, { Readable: vA, pipeline: dA, finished: XA } = Stream__default, { addAbortListener: KA, isErrored: OA, isReadable: PA, bufferToLowerCasedHeaderName: ZA } = requireUtil$7(), { dataURLProcessor: HA, serializeAMimeType: se$1, minimizeSupportedMimeType: ne$1 } = requireDataUrl(), { getGlobalDispatcher: jA } = requireGlobal(), { webidl: Ae$1 } = requireWebidl(), { STATUS_CODES: QA } = http__default, W$2 = ["GET", "HEAD"], cA = typeof __UNDICI_IS_NODE__ < "u" || typeof esbuildDetection < "u" ? "node" : "undici";
|
|
20955
20955
|
let yA;
|
|
20956
20956
|
const UA = class UA$1 extends wA {
|
|
20957
20957
|
constructor(v$2) {
|
|
@@ -21081,7 +21081,7 @@ ${M$2.format(Y$1)}
|
|
|
21081
21081
|
const j$4 = p$2(v$2);
|
|
21082
21082
|
if (j$4.search.length !== 0) return Promise.resolve(A$1("NetworkError when attempting to fetch resource."));
|
|
21083
21083
|
const tA = yA(j$4.toString());
|
|
21084
|
-
if (v$2.method !== "GET" || !f$
|
|
21084
|
+
if (v$2.method !== "GET" || !f$6(tA)) return Promise.resolve(A$1("invalid method"));
|
|
21085
21085
|
const rA = B(), FA = tA.size, TA = $(`${FA}`), VA = tA.type;
|
|
21086
21086
|
if (v$2.headersList.contains("range", !0)) {
|
|
21087
21087
|
rA.rangeRequested = !0;
|
|
@@ -21724,15 +21724,15 @@ ${M$2.format(Y$1)}
|
|
|
21724
21724
|
if (J$2[A$1] === "loading") throw new DOMException("Invalid state", "InvalidStateError");
|
|
21725
21725
|
J$2[A$1] = "loading", J$2[c$7] = null, J$2[k$3] = null;
|
|
21726
21726
|
const Y$1 = V$2.stream().getReader(), m$3 = [];
|
|
21727
|
-
let f$
|
|
21727
|
+
let f$6 = Y$1.read(), n$5 = !0;
|
|
21728
21728
|
(async () => {
|
|
21729
21729
|
for (; !J$2[B];) try {
|
|
21730
|
-
const { done: C$2, value: w$4 } = await f$
|
|
21730
|
+
const { done: C$2, value: w$4 } = await f$6;
|
|
21731
21731
|
if (n$5 && !J$2[B] && queueMicrotask(() => {
|
|
21732
21732
|
l$2("loadstart", J$2);
|
|
21733
21733
|
}), n$5 = !1, !C$2 && D$2.isUint8Array(w$4)) m$3.push(w$4), (J$2[t$8] === void 0 || Date.now() - J$2[t$8] >= 50) && !J$2[B] && (J$2[t$8] = Date.now(), queueMicrotask(() => {
|
|
21734
21734
|
l$2("progress", J$2);
|
|
21735
|
-
})), f$
|
|
21735
|
+
})), f$6 = Y$1.read();
|
|
21736
21736
|
else if (C$2) {
|
|
21737
21737
|
queueMicrotask(() => {
|
|
21738
21738
|
J$2[A$1] = "done";
|
|
@@ -21772,7 +21772,7 @@ ${M$2.format(Y$1)}
|
|
|
21772
21772
|
const Y$1 = Q$2(_$3 || "application/octet-stream");
|
|
21773
21773
|
Y$1 !== "failure" && (M$2 += F$4(Y$1)), M$2 += ";base64,";
|
|
21774
21774
|
const m$3 = new U$1("latin1");
|
|
21775
|
-
for (const f$
|
|
21775
|
+
for (const f$6 of J$2) M$2 += r$3(m$3.write(f$6));
|
|
21776
21776
|
return M$2 += r$3(m$3.end()), M$2;
|
|
21777
21777
|
}
|
|
21778
21778
|
case "Text": {
|
|
@@ -22977,7 +22977,7 @@ ${M$2.format(Y$1)}
|
|
|
22977
22977
|
return Y$1(x$3) || M$2(x$3) || q$2(x$3);
|
|
22978
22978
|
}
|
|
22979
22979
|
e$6(m$3, "isValidOpcode");
|
|
22980
|
-
function f$
|
|
22980
|
+
function f$6(x$3) {
|
|
22981
22981
|
const z$3 = { position: 0 }, $ = /* @__PURE__ */ new Map();
|
|
22982
22982
|
for (; z$3.position < x$3.length;) {
|
|
22983
22983
|
const [nA, iA = ""] = U$1(";", x$3, z$3).split("=");
|
|
@@ -22985,7 +22985,7 @@ ${M$2.format(Y$1)}
|
|
|
22985
22985
|
}
|
|
22986
22986
|
return $;
|
|
22987
22987
|
}
|
|
22988
|
-
e$6(f$
|
|
22988
|
+
e$6(f$6, "parseExtensions");
|
|
22989
22989
|
function n$5(x$3) {
|
|
22990
22990
|
for (let z$3 = 0; z$3 < x$3.length; z$3++) {
|
|
22991
22991
|
const $ = x$3.charCodeAt(z$3);
|
|
@@ -23013,7 +23013,7 @@ ${M$2.format(Y$1)}
|
|
|
23013
23013
|
isContinuationFrame: M$2,
|
|
23014
23014
|
isTextBinaryFrame: Y$1,
|
|
23015
23015
|
isValidOpcode: m$3,
|
|
23016
|
-
parseExtensions: f$
|
|
23016
|
+
parseExtensions: f$6,
|
|
23017
23017
|
isValidClientWindowBits: n$5
|
|
23018
23018
|
}, util$1;
|
|
23019
23019
|
}
|
|
@@ -23131,7 +23131,7 @@ ${M$2.format(Y$1)}
|
|
|
23131
23131
|
});
|
|
23132
23132
|
}
|
|
23133
23133
|
e$6(m$3, "establishWebSocketConnection");
|
|
23134
|
-
function f$
|
|
23134
|
+
function f$6(S$3, x$3, z$3, $) {
|
|
23135
23135
|
if (!(o$7(S$3) || N$2(S$3))) if (!l$2(S$3)) r$3(S$3, "Connection was closed before it was established."), S$3[y$5] = k$3.CLOSING;
|
|
23136
23136
|
else if (S$3[R$4] === c$7.NOT_SENT) {
|
|
23137
23137
|
S$3[R$4] = c$7.PROCESSING;
|
|
@@ -23139,7 +23139,7 @@ ${M$2.format(Y$1)}
|
|
|
23139
23139
|
x$3 !== void 0 && z$3 === void 0 ? (K$2.frameData = Buffer.allocUnsafe(2), K$2.frameData.writeUInt16BE(x$3, 0)) : x$3 !== void 0 && z$3 !== void 0 ? (K$2.frameData = Buffer.allocUnsafe(2 + $), K$2.frameData.writeUInt16BE(x$3, 0), K$2.frameData.write(z$3, 2, "utf-8")) : K$2.frameData = B, S$3[D$2].socket.write(K$2.createFrame(t$8.CLOSE)), S$3[R$4] = c$7.SENT, S$3[y$5] = k$3.CLOSING;
|
|
23140
23140
|
} else S$3[y$5] = k$3.CLOSING;
|
|
23141
23141
|
}
|
|
23142
|
-
e$6(f$
|
|
23142
|
+
e$6(f$6, "closeWebSocketConnection");
|
|
23143
23143
|
function n$5(S$3) {
|
|
23144
23144
|
this.ws[F$4].write(S$3) || this.pause();
|
|
23145
23145
|
}
|
|
@@ -23167,7 +23167,7 @@ ${M$2.format(Y$1)}
|
|
|
23167
23167
|
}
|
|
23168
23168
|
return e$6(w$4, "onSocketError"), connection = {
|
|
23169
23169
|
establishWebSocketConnection: m$3,
|
|
23170
|
-
closeWebSocketConnection: f$
|
|
23170
|
+
closeWebSocketConnection: f$6
|
|
23171
23171
|
}, connection;
|
|
23172
23172
|
}
|
|
23173
23173
|
e$6(requireConnection, "requireConnection");
|
|
@@ -23215,7 +23215,7 @@ ${M$2.format(Y$1)}
|
|
|
23215
23215
|
e$6(requirePermessageDeflate, "requirePermessageDeflate");
|
|
23216
23216
|
var receiver, hasRequiredReceiver;
|
|
23217
23217
|
function requireReceiver() {
|
|
23218
|
-
var Y$1, m$3, f$
|
|
23218
|
+
var Y$1, m$3, f$6, n$5, C$2, w$4, S$3;
|
|
23219
23219
|
if (hasRequiredReceiver) return receiver;
|
|
23220
23220
|
hasRequiredReceiver = 1;
|
|
23221
23221
|
const { Writable: A$1 } = Stream__default, k$3 = require$$0__default$1, { parserStates: c$7, opcodes: B, states: t$8, emptyBuffer: y$5, sentCloseFrameState: R$4 } = requireConstants(), { kReadyState: F$4, kSentClose: Q$2, kResponse: D$2, kReceivedClose: U$1 } = requireSymbols(), { channels: r$3 } = requireDiagnostics(), { isValidStatusCode: o$7, isValidOpcode: N$2, failWebsocketConnection: l$2, websocketMessageReceived: I$2, utf8Decode: p$2, isControlFrame: b$2, isTextBinaryFrame: G$3, isContinuationFrame: J$2 } = requireUtil$1(), { WebsocketFrameSend: V$2 } = requireFrame(), { closeWebSocketConnection: _$3 } = requireConnection(), { PerMessageDeflate: q$2 } = requirePermessageDeflate(), x$3 = class x$4 extends A$1 {
|
|
@@ -23223,7 +23223,7 @@ ${M$2.format(Y$1)}
|
|
|
23223
23223
|
super();
|
|
23224
23224
|
SA(this, Y$1, []);
|
|
23225
23225
|
SA(this, m$3, 0);
|
|
23226
|
-
SA(this, f$
|
|
23226
|
+
SA(this, f$6, !1);
|
|
23227
23227
|
SA(this, n$5, c$7.INFO);
|
|
23228
23228
|
SA(this, C$2, {});
|
|
23229
23229
|
SA(this, w$4, []);
|
|
@@ -23231,10 +23231,10 @@ ${M$2.format(Y$1)}
|
|
|
23231
23231
|
this.ws = K$2, mA(this, S$3, nA ?? /* @__PURE__ */ new Map()), Z(this, S$3).has("permessage-deflate") && Z(this, S$3).set("permessage-deflate", new q$2(nA));
|
|
23232
23232
|
}
|
|
23233
23233
|
_write(K$2, nA, iA) {
|
|
23234
|
-
Z(this, Y$1).push(K$2), mA(this, m$3, Z(this, m$3) + K$2.length), mA(this, f$
|
|
23234
|
+
Z(this, Y$1).push(K$2), mA(this, m$3, Z(this, m$3) + K$2.length), mA(this, f$6, !0), this.run(iA);
|
|
23235
23235
|
}
|
|
23236
23236
|
run(K$2) {
|
|
23237
|
-
for (; Z(this, f$
|
|
23237
|
+
for (; Z(this, f$6);) if (Z(this, n$5) === c$7.INFO) {
|
|
23238
23238
|
if (Z(this, m$3) < 2) return K$2();
|
|
23239
23239
|
const nA = this.consume(2), iA = (nA[0] & 128) !== 0, uA = nA[0] & 15, RA = (nA[1] & 128) === 128, IA = !iA && uA !== B.CONTINUATION, CA = nA[1] & 127, pA = nA[0] & 64, fA = nA[0] & 32, kA = nA[0] & 16;
|
|
23240
23240
|
if (!N$2(uA)) return l$2(this.ws, "Invalid opcode received"), K$2();
|
|
@@ -23284,7 +23284,7 @@ ${M$2.format(Y$1)}
|
|
|
23284
23284
|
} else if (Z(this, n$5) === c$7.READ_DATA) {
|
|
23285
23285
|
if (Z(this, m$3) < Z(this, C$2).payloadLength) return K$2();
|
|
23286
23286
|
const nA = this.consume(Z(this, C$2).payloadLength);
|
|
23287
|
-
if (b$2(Z(this, C$2).opcode)) mA(this, f$
|
|
23287
|
+
if (b$2(Z(this, C$2).opcode)) mA(this, f$6, this.parseControlFrame(nA)), mA(this, n$5, c$7.INFO);
|
|
23288
23288
|
else if (Z(this, C$2).compressed) {
|
|
23289
23289
|
Z(this, S$3).get("permessage-deflate").decompress(nA, Z(this, C$2).fin, (iA, uA) => {
|
|
23290
23290
|
if (iA) {
|
|
@@ -23292,11 +23292,11 @@ ${M$2.format(Y$1)}
|
|
|
23292
23292
|
return;
|
|
23293
23293
|
}
|
|
23294
23294
|
if (Z(this, w$4).push(uA), !Z(this, C$2).fin) {
|
|
23295
|
-
mA(this, n$5, c$7.INFO), mA(this, f$
|
|
23295
|
+
mA(this, n$5, c$7.INFO), mA(this, f$6, !0), this.run(K$2);
|
|
23296
23296
|
return;
|
|
23297
23297
|
}
|
|
23298
|
-
I$2(this.ws, Z(this, C$2).binaryType, Buffer.concat(Z(this, w$4))), mA(this, f$
|
|
23299
|
-
}), mA(this, f$
|
|
23298
|
+
I$2(this.ws, Z(this, C$2).binaryType, Buffer.concat(Z(this, w$4))), mA(this, f$6, !0), mA(this, n$5, c$7.INFO), Z(this, w$4).length = 0, this.run(K$2);
|
|
23299
|
+
}), mA(this, f$6, !1);
|
|
23300
23300
|
break;
|
|
23301
23301
|
} else {
|
|
23302
23302
|
if (Z(this, w$4).push(nA), !Z(this, C$2).fragmented && Z(this, C$2).fin) {
|
|
@@ -23379,7 +23379,7 @@ ${M$2.format(Y$1)}
|
|
|
23379
23379
|
return Z(this, C$2).closeInfo;
|
|
23380
23380
|
}
|
|
23381
23381
|
};
|
|
23382
|
-
Y$1 = /* @__PURE__ */ new WeakMap(), m$3 = /* @__PURE__ */ new WeakMap(), f$
|
|
23382
|
+
Y$1 = /* @__PURE__ */ new WeakMap(), m$3 = /* @__PURE__ */ new WeakMap(), f$6 = /* @__PURE__ */ new WeakMap(), n$5 = /* @__PURE__ */ new WeakMap(), C$2 = /* @__PURE__ */ new WeakMap(), w$4 = /* @__PURE__ */ new WeakMap(), S$3 = /* @__PURE__ */ new WeakMap(), e$6(x$3, "ByteParser");
|
|
23383
23383
|
return receiver = { ByteParser: x$3 }, receiver;
|
|
23384
23384
|
}
|
|
23385
23385
|
e$6(requireReceiver, "requireReceiver");
|
|
@@ -23450,7 +23450,7 @@ ${M$2.format(Y$1)}
|
|
|
23450
23450
|
var z$3, $, K$2, nA, iA, uA, Ze;
|
|
23451
23451
|
if (hasRequiredWebsocket) return websocket;
|
|
23452
23452
|
hasRequiredWebsocket = 1;
|
|
23453
|
-
const { webidl: A$1 } = requireWebidl(), { URLSerializer: k$3 } = requireDataUrl(), { environmentSettingsObject: c$7 } = requireUtil$6(), { staticPropertyDescriptors: B, states: t$8, sentCloseFrameState: y$5, sendHints: R$4 } = requireConstants(), { kWebSocketURL: F$4, kReadyState: Q$2, kController: D$2, kBinaryType: U$1, kResponse: r$3, kSentClose: o$7, kByteParser: N$2 } = requireSymbols(), { isConnecting: l$2, isEstablished: I$2, isClosing: p$2, isValidSubprotocol: b$2, fireEvent: G$3 } = requireUtil$1(), { establishWebSocketConnection: J$2, closeWebSocketConnection: V$2 } = requireConnection(), { ByteParser: _$3 } = requireReceiver(), { kEnumerableProperty: q$2, isBlobLike: M$2 } = requireUtil$7(), { getGlobalDispatcher: Y$1 } = requireGlobal(), { types: m$3 } = require$$0__default$3, { ErrorEvent: f$
|
|
23453
|
+
const { webidl: A$1 } = requireWebidl(), { URLSerializer: k$3 } = requireDataUrl(), { environmentSettingsObject: c$7 } = requireUtil$6(), { staticPropertyDescriptors: B, states: t$8, sentCloseFrameState: y$5, sendHints: R$4 } = requireConstants(), { kWebSocketURL: F$4, kReadyState: Q$2, kController: D$2, kBinaryType: U$1, kResponse: r$3, kSentClose: o$7, kByteParser: N$2 } = requireSymbols(), { isConnecting: l$2, isEstablished: I$2, isClosing: p$2, isValidSubprotocol: b$2, fireEvent: G$3 } = requireUtil$1(), { establishWebSocketConnection: J$2, closeWebSocketConnection: V$2 } = requireConnection(), { ByteParser: _$3 } = requireReceiver(), { kEnumerableProperty: q$2, isBlobLike: M$2 } = requireUtil$7(), { getGlobalDispatcher: Y$1 } = requireGlobal(), { types: m$3 } = require$$0__default$3, { ErrorEvent: f$6, CloseEvent: n$5 } = requireEvents(), { SendQueue: C$2 } = requireSender(), IA = class IA$1 extends EventTarget {
|
|
23454
23454
|
constructor(fA, kA = []) {
|
|
23455
23455
|
super();
|
|
23456
23456
|
SA(this, uA);
|
|
@@ -23625,7 +23625,7 @@ ${M$2.format(Y$1)}
|
|
|
23625
23625
|
e$6(S$3, "onParserDrain");
|
|
23626
23626
|
function x$3(CA) {
|
|
23627
23627
|
let pA, fA;
|
|
23628
|
-
CA instanceof n$5 ? (pA = CA.reason, fA = CA.code) : pA = CA.message, G$3("error", this, () => new f$
|
|
23628
|
+
CA instanceof n$5 ? (pA = CA.reason, fA = CA.code) : pA = CA.message, G$3("error", this, () => new f$6("error", {
|
|
23629
23629
|
error: CA,
|
|
23630
23630
|
message: pA
|
|
23631
23631
|
})), V$2(this, fA);
|
|
@@ -23791,7 +23791,7 @@ ${p$2}`;
|
|
|
23791
23791
|
e$6(requireEventsourceStream, "requireEventsourceStream");
|
|
23792
23792
|
var eventsource, hasRequiredEventsource;
|
|
23793
23793
|
function requireEventsource() {
|
|
23794
|
-
var V$2, _$3, q$2, M$2, Y$1, m$3, f$
|
|
23794
|
+
var V$2, _$3, q$2, M$2, Y$1, m$3, f$6, n$5, C$2, Ue$1, Me$1;
|
|
23795
23795
|
if (hasRequiredEventsource) return eventsource;
|
|
23796
23796
|
hasRequiredEventsource = 1;
|
|
23797
23797
|
const { pipeline: A$1 } = Stream__default, { fetching: k$3 } = requireFetch(), { makeRequest: c$7 } = requireRequest(), { webidl: B } = requireWebidl(), { EventSourceStream: t$8 } = requireEventsourceStream(), { parseMIMEType: y$5 } = requireDataUrl(), { createFastMessageEvent: R$4 } = requireEvents(), { isNetworkError: F$4 } = requireResponse(), { delay: Q$2 } = requireUtil(), { kEnumerableProperty: D$2 } = requireUtil$7(), { environmentSettingsObject: U$1 } = requireUtil$6();
|
|
@@ -23810,11 +23810,11 @@ ${p$2}`;
|
|
|
23810
23810
|
SA(this, M$2, N$2);
|
|
23811
23811
|
SA(this, Y$1, null);
|
|
23812
23812
|
SA(this, m$3, null);
|
|
23813
|
-
SA(this, f$
|
|
23813
|
+
SA(this, f$6);
|
|
23814
23814
|
SA(this, n$5);
|
|
23815
23815
|
B.util.markAsUncloneable(this);
|
|
23816
23816
|
const iA = "EventSource constructor";
|
|
23817
|
-
B.argumentLengthCheck(arguments, 1, iA), r$3 || (r$3 = !0, process.emitWarning("EventSource is experimental, expect them to change at any time.", { code: "UNDICI-ES" })), K$2 = B.converters.USVString(K$2, iA, "url"), nA = B.converters.EventSourceInitDict(nA, iA, "eventSourceInitDict"), mA(this, f$
|
|
23817
|
+
B.argumentLengthCheck(arguments, 1, iA), r$3 || (r$3 = !0, process.emitWarning("EventSource is experimental, expect them to change at any time.", { code: "UNDICI-ES" })), K$2 = B.converters.USVString(K$2, iA, "url"), nA = B.converters.EventSourceInitDict(nA, iA, "eventSourceInitDict"), mA(this, f$6, nA.dispatcher), mA(this, n$5, {
|
|
23818
23818
|
lastEventId: "",
|
|
23819
23819
|
reconnectionTime: o$7
|
|
23820
23820
|
});
|
|
@@ -23871,12 +23871,12 @@ ${p$2}`;
|
|
|
23871
23871
|
Z(this, V$2).error && this.removeEventListener("error", Z(this, V$2).error), typeof K$2 == "function" ? (Z(this, V$2).error = K$2, this.addEventListener("error", K$2)) : Z(this, V$2).error = null;
|
|
23872
23872
|
}
|
|
23873
23873
|
};
|
|
23874
|
-
V$2 = /* @__PURE__ */ new WeakMap(), _$3 = /* @__PURE__ */ new WeakMap(), q$2 = /* @__PURE__ */ new WeakMap(), M$2 = /* @__PURE__ */ new WeakMap(), Y$1 = /* @__PURE__ */ new WeakMap(), m$3 = /* @__PURE__ */ new WeakMap(), f$
|
|
23874
|
+
V$2 = /* @__PURE__ */ new WeakMap(), _$3 = /* @__PURE__ */ new WeakMap(), q$2 = /* @__PURE__ */ new WeakMap(), M$2 = /* @__PURE__ */ new WeakMap(), Y$1 = /* @__PURE__ */ new WeakMap(), m$3 = /* @__PURE__ */ new WeakMap(), f$6 = /* @__PURE__ */ new WeakMap(), n$5 = /* @__PURE__ */ new WeakMap(), C$2 = /* @__PURE__ */ new WeakSet(), Ue$1 = e$6(function() {
|
|
23875
23875
|
if (Z(this, M$2) === I$2) return;
|
|
23876
23876
|
mA(this, M$2, N$2);
|
|
23877
23877
|
const K$2 = {
|
|
23878
23878
|
request: Z(this, Y$1),
|
|
23879
|
-
dispatcher: Z(this, f$
|
|
23879
|
+
dispatcher: Z(this, f$6)
|
|
23880
23880
|
};
|
|
23881
23881
|
K$2.processResponseEndOfBody = e$6((iA) => {
|
|
23882
23882
|
F$4(iA) && (this.dispatchEvent(new Event("error")), this.close()), ee(this, C$2, Me$1).call(this);
|
|
@@ -23994,8 +23994,8 @@ ${p$2}`;
|
|
|
23994
23994
|
throw fA && typeof fA == "object" && Error.captureStackTrace(fA), fA;
|
|
23995
23995
|
}
|
|
23996
23996
|
}, "fetch"), undici.Headers = requireHeaders().Headers, undici.Response = requireResponse().Response, undici.Request = requireRequest().Request, undici.FormData = requireFormdata().FormData, undici.File = globalThis.File ?? require$$0__default.File, undici.FileReader = requireFilereader().FileReader;
|
|
23997
|
-
const { setGlobalOrigin: m$3, getGlobalOrigin: f$
|
|
23998
|
-
undici.setGlobalOrigin = m$3, undici.getGlobalOrigin = f$
|
|
23997
|
+
const { setGlobalOrigin: m$3, getGlobalOrigin: f$6 } = requireGlobal$1();
|
|
23998
|
+
undici.setGlobalOrigin = m$3, undici.getGlobalOrigin = f$6;
|
|
23999
23999
|
const { CacheStorage: n$5 } = requireCachestorage(), { kConstruct: C$2 } = requireSymbols$1();
|
|
24000
24000
|
undici.caches = new n$5(C$2);
|
|
24001
24001
|
const { deleteCookie: w$4, getCookies: S$3, getSetCookies: x$3, setCookie: z$3 } = requireCookies();
|
|
@@ -24260,8 +24260,8 @@ ${p$2}`;
|
|
|
24260
24260
|
_$3++;
|
|
24261
24261
|
const m$3 = B.formatters[Y$1];
|
|
24262
24262
|
if (typeof m$3 == "function") {
|
|
24263
|
-
const f$
|
|
24264
|
-
M$2 = m$3.call(G$3, f$
|
|
24263
|
+
const f$6 = b$2[_$3];
|
|
24264
|
+
M$2 = m$3.call(G$3, f$6), b$2.splice(_$3, 1), _$3--;
|
|
24265
24265
|
}
|
|
24266
24266
|
return M$2;
|
|
24267
24267
|
}), B.formatArgs.call(G$3, b$2), (G$3.log || B.log).apply(G$3, b$2);
|
|
@@ -24795,8 +24795,8 @@ ${p$2}`;
|
|
|
24795
24795
|
if (!M$2) continue;
|
|
24796
24796
|
const Y$1 = M$2.indexOf(":");
|
|
24797
24797
|
if (Y$1 === -1) return t$8.destroy(), R$4(/* @__PURE__ */ new Error(`Invalid header from proxy CONNECT response: "${M$2}"`));
|
|
24798
|
-
const m$3 = M$2.slice(0, Y$1).toLowerCase(), f$
|
|
24799
|
-
typeof n$5 == "string" ? q$2[m$3] = [n$5, f$
|
|
24798
|
+
const m$3 = M$2.slice(0, Y$1).toLowerCase(), f$6 = M$2.slice(Y$1 + 1).trimStart(), n$5 = q$2[m$3];
|
|
24799
|
+
typeof n$5 == "string" ? q$2[m$3] = [n$5, f$6] : Array.isArray(n$5) ? n$5.push(f$6) : q$2[m$3] = f$6;
|
|
24800
24800
|
}
|
|
24801
24801
|
c$7("got proxy server response: %o %o", G$3, q$2), U$1(), y$5({
|
|
24802
24802
|
connect: {
|
|
@@ -24876,8 +24876,8 @@ ${p$2}`;
|
|
|
24876
24876
|
const m$3 = (0, U$1.parseProxyResponse)(_$3);
|
|
24877
24877
|
_$3.write(`${Y$1}\r
|
|
24878
24878
|
`);
|
|
24879
|
-
const { connect: f$
|
|
24880
|
-
if (G$3.emit("proxyConnect", f$
|
|
24879
|
+
const { connect: f$6, buffered: n$5 } = await m$3;
|
|
24880
|
+
if (G$3.emit("proxyConnect", f$6), this.emit("proxyConnect", f$6, G$3), f$6.statusCode === 200) return G$3.once("socket", l$2), J$2.secureEndpoint ? (r$3("Upgrading socket connection to TLS"), y$5.connect({
|
|
24881
24881
|
...I$2(o$7(J$2), "host", "path", "port"),
|
|
24882
24882
|
socket: _$3
|
|
24883
24883
|
})) : _$3;
|
|
@@ -25227,7 +25227,7 @@ function c$3() {
|
|
|
25227
25227
|
t$8.list = this, t$8.prev = i$9, i$9 && (i$9.next = t$8), this.tail = t$8, this.head || (this.head = t$8), this.length++;
|
|
25228
25228
|
}
|
|
25229
25229
|
}, r$3.prototype.push = function() {
|
|
25230
|
-
for (var t$8 = 0, i$9 = arguments.length; t$8 < i$9; t$8++) f$
|
|
25230
|
+
for (var t$8 = 0, i$9 = arguments.length; t$8 < i$9; t$8++) f$6(this, arguments[t$8]);
|
|
25231
25231
|
return this.length;
|
|
25232
25232
|
}, r$3.prototype.unshift = function() {
|
|
25233
25233
|
for (var t$8 = 0, i$9 = arguments.length; t$8 < i$9; t$8++) o$7(this, arguments[t$8]);
|
|
@@ -25316,7 +25316,7 @@ function c$3() {
|
|
|
25316
25316
|
var h$2 = i$9 === t$8.head ? new s$9(e$8, null, i$9, t$8) : new s$9(e$8, i$9, i$9.next, t$8);
|
|
25317
25317
|
return h$2.next === null && (t$8.tail = h$2), h$2.prev === null && (t$8.head = h$2), t$8.length++, h$2;
|
|
25318
25318
|
}
|
|
25319
|
-
function f$
|
|
25319
|
+
function f$6(t$8, i$9) {
|
|
25320
25320
|
t$8.tail = new s$9(i$9, t$8.tail, null, t$8), t$8.head || (t$8.head = t$8.tail), t$8.length++;
|
|
25321
25321
|
}
|
|
25322
25322
|
function o$7(t$8, i$9) {
|
|
@@ -25339,7 +25339,7 @@ function ft() {
|
|
|
25339
25339
|
const H$5 = typeof process == "object" && process ? process : {
|
|
25340
25340
|
stdout: null,
|
|
25341
25341
|
stderr: null
|
|
25342
|
-
}, Z$2 = nt, q$2 = ot, G$3 = ht.StringDecoder, m$3 = Symbol("EOF"), d$2 = Symbol("maybeEmitEnd"), y$5 = Symbol("emittedEnd"), R$4 = Symbol("emittingEnd"), g$2 = Symbol("emittedError"), B = Symbol("closed"), Y$1 = Symbol("read"), T$4 = Symbol("flush"), $ = Symbol("flushChunk"), f$
|
|
25342
|
+
}, Z$2 = nt, q$2 = ot$1, G$3 = ht.StringDecoder, m$3 = Symbol("EOF"), d$2 = Symbol("maybeEmitEnd"), y$5 = Symbol("emittedEnd"), R$4 = Symbol("emittingEnd"), g$2 = Symbol("emittedError"), B = Symbol("closed"), Y$1 = Symbol("read"), T$4 = Symbol("flush"), $ = Symbol("flushChunk"), f$6 = Symbol("encoding"), c$7 = Symbol("decoder"), M$2 = Symbol("flowing"), S$3 = Symbol("paused"), b$2 = Symbol("resume"), i$9 = Symbol("buffer"), a$13 = Symbol("pipes"), n$5 = Symbol("bufferLength"), j$4 = Symbol("bufferPush"), I$2 = Symbol("bufferShift"), o$7 = Symbol("objectMode"), r$3 = Symbol("destroyed"), P$4 = Symbol("error"), x$3 = Symbol("emitData"), V$2 = Symbol("emitEnd"), N$2 = Symbol("emitEnd2"), p$2 = Symbol("async"), _$3 = Symbol("abort"), O$6 = Symbol("aborted"), E$2 = Symbol("signal"), w$4 = (h$2) => Promise.resolve().then(h$2), J$2 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K$2 = J$2 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W$2 = J$2 && Symbol.iterator || Symbol("iterator not implemented"), k$3 = (h$2) => h$2 === "end" || h$2 === "finish" || h$2 === "prefinish", tt$2 = (h$2) => h$2 instanceof ArrayBuffer || typeof h$2 == "object" && h$2.constructor && h$2.constructor.name === "ArrayBuffer" && h$2.byteLength >= 0, et$1 = (h$2) => !Buffer.isBuffer(h$2) && ArrayBuffer.isView(h$2);
|
|
25343
25343
|
class z$3 {
|
|
25344
25344
|
constructor(t$8, e$8, s$9) {
|
|
25345
25345
|
this.src = t$8, this.dest = e$8, this.opts = s$9, this.ondrain = () => t$8[b$2](), e$8.on("drain", this.ondrain);
|
|
@@ -25362,18 +25362,18 @@ function ft() {
|
|
|
25362
25362
|
}
|
|
25363
25363
|
class F$4 extends q$2 {
|
|
25364
25364
|
constructor(t$8) {
|
|
25365
|
-
super(), this[M$2] = false, this[S$3] = false, this[a$13] = [], this[i$9] = [], this[o$7] = t$8 && t$8.objectMode || false, this[o$7] ? this[f$
|
|
25365
|
+
super(), this[M$2] = false, this[S$3] = false, this[a$13] = [], this[i$9] = [], this[o$7] = t$8 && t$8.objectMode || false, this[o$7] ? this[f$6] = null : this[f$6] = t$8 && t$8.encoding || null, this[f$6] === "buffer" && (this[f$6] = null), this[p$2] = t$8 && !!t$8.async || false, this[c$7] = this[f$6] ? new G$3(this[f$6]) : null, this[m$3] = false, this[y$5] = false, this[R$4] = false, this[B] = false, this[g$2] = null, this.writable = true, this.readable = true, this[n$5] = 0, this[r$3] = false, t$8 && t$8.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i$9] }), t$8 && t$8.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a$13] }), this[E$2] = t$8 && t$8.signal, this[O$6] = false, this[E$2] && (this[E$2].addEventListener("abort", () => this[_$3]()), this[E$2].aborted && this[_$3]());
|
|
25366
25366
|
}
|
|
25367
25367
|
get bufferLength() {
|
|
25368
25368
|
return this[n$5];
|
|
25369
25369
|
}
|
|
25370
25370
|
get encoding() {
|
|
25371
|
-
return this[f$
|
|
25371
|
+
return this[f$6];
|
|
25372
25372
|
}
|
|
25373
25373
|
set encoding(t$8) {
|
|
25374
25374
|
if (this[o$7]) throw new Error("cannot set encoding in objectMode");
|
|
25375
|
-
if (this[f$
|
|
25376
|
-
this[f$
|
|
25375
|
+
if (this[f$6] && t$8 !== this[f$6] && (this[c$7] && this[c$7].lastNeed || this[n$5])) throw new Error("cannot change encoding");
|
|
25376
|
+
this[f$6] !== t$8 && (this[c$7] = t$8 ? new G$3(t$8) : null, this[i$9].length && (this[i$9] = this[i$9].map((e$8) => this[c$7].write(e$8)))), this[f$6] = t$8;
|
|
25377
25377
|
}
|
|
25378
25378
|
setEncoding(t$8) {
|
|
25379
25379
|
this.encoding = t$8;
|
|
@@ -25403,7 +25403,7 @@ function ft() {
|
|
|
25403
25403
|
if (this[r$3]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
25404
25404
|
typeof e$8 == "function" && (s$9 = e$8, e$8 = "utf8"), e$8 || (e$8 = "utf8");
|
|
25405
25405
|
const l$2 = this[p$2] ? w$4 : (u$7) => u$7();
|
|
25406
|
-
return !this[o$7] && !Buffer.isBuffer(t$8) && (et$1(t$8) ? t$8 = Buffer.from(t$8.buffer, t$8.byteOffset, t$8.byteLength) : tt$2(t$8) ? t$8 = Buffer.from(t$8) : typeof t$8 != "string" && (this.objectMode = true)), this[o$7] ? (this.flowing && this[n$5] !== 0 && this[T$4](true), this.flowing ? this.emit("data", t$8) : this[j$4](t$8), this[n$5] !== 0 && this.emit("readable"), s$9 && l$2(s$9), this.flowing) : t$8.length ? (typeof t$8 == "string" && !(e$8 === this[f$
|
|
25406
|
+
return !this[o$7] && !Buffer.isBuffer(t$8) && (et$1(t$8) ? t$8 = Buffer.from(t$8.buffer, t$8.byteOffset, t$8.byteLength) : tt$2(t$8) ? t$8 = Buffer.from(t$8) : typeof t$8 != "string" && (this.objectMode = true)), this[o$7] ? (this.flowing && this[n$5] !== 0 && this[T$4](true), this.flowing ? this.emit("data", t$8) : this[j$4](t$8), this[n$5] !== 0 && this.emit("readable"), s$9 && l$2(s$9), this.flowing) : t$8.length ? (typeof t$8 == "string" && !(e$8 === this[f$6] && !this[c$7].lastNeed) && (t$8 = Buffer.from(t$8, e$8)), Buffer.isBuffer(t$8) && this[f$6] && (t$8 = this[c$7].write(t$8)), this.flowing && this[n$5] !== 0 && this[T$4](true), this.flowing ? this.emit("data", t$8) : this[j$4](t$8), this[n$5] !== 0 && this.emit("readable"), s$9 && l$2(s$9), this.flowing) : (this[n$5] !== 0 && this.emit("readable"), s$9 && l$2(s$9), this.flowing);
|
|
25407
25407
|
}
|
|
25408
25408
|
read(t$8) {
|
|
25409
25409
|
if (this[r$3]) return null;
|
|
@@ -25523,7 +25523,7 @@ while (this[$](this[I$2]()) && this[i$9].length);
|
|
|
25523
25523
|
}), e$8.then(() => t$8);
|
|
25524
25524
|
}
|
|
25525
25525
|
concat() {
|
|
25526
|
-
return this[o$7] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this.collect().then((t$8) => this[o$7] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this[f$
|
|
25526
|
+
return this[o$7] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this.collect().then((t$8) => this[o$7] ? Promise.reject(/* @__PURE__ */ new Error("cannot concat in objectMode")) : this[f$6] ? t$8.join("") : Buffer.concat(t$8, t$8.dataLength));
|
|
25527
25527
|
}
|
|
25528
25528
|
promise() {
|
|
25529
25529
|
return new Promise((t$8, e$8) => {
|
|
@@ -25813,7 +25813,7 @@ function tt() {
|
|
|
25813
25813
|
const I$2 = typeof process == "object" && process ? process : {
|
|
25814
25814
|
stdout: null,
|
|
25815
25815
|
stderr: null
|
|
25816
|
-
}, Y$1 = nt, x$3 = ot, N$2 = ht.StringDecoder, u$7 = Symbol("EOF"), a$13 = Symbol("maybeEmitEnd"), c$7 = Symbol("emittedEnd"), S$3 = Symbol("emittingEnd"), E$2 = Symbol("emittedError"), w$4 = Symbol("closed"), P$4 = Symbol("read"), L$3 = Symbol("flush"), _$3 = Symbol("flushChunk"), h$2 = Symbol("encoding"), m$3 = Symbol("decoder"), M$2 = Symbol("flowing"), y$5 = Symbol("paused"), p$2 = Symbol("resume"), s$9 = Symbol("bufferLength"), T$4 = Symbol("bufferPush"), B = Symbol("bufferShift"), r$3 = Symbol("objectMode"), n$5 = Symbol("destroyed"), D$2 = Symbol("emitData"), F$4 = Symbol("emitEnd"), R$4 = Symbol("emitEnd2"), d$2 = Symbol("async"), b$2 = (o$7) => Promise.resolve().then(o$7), C$2 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $ = C$2 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G$3 = C$2 && Symbol.iterator || Symbol("iterator not implemented"), V$2 = (o$7) => o$7 === "end" || o$7 === "finish" || o$7 === "prefinish", v$2 = (o$7) => o$7 instanceof ArrayBuffer || typeof o$7 == "object" && o$7.constructor && o$7.constructor.name === "ArrayBuffer" && o$7.byteLength >= 0, J$2 = (o$7) => !Buffer.isBuffer(o$7) && ArrayBuffer.isView(o$7);
|
|
25816
|
+
}, Y$1 = nt, x$3 = ot$1, N$2 = ht.StringDecoder, u$7 = Symbol("EOF"), a$13 = Symbol("maybeEmitEnd"), c$7 = Symbol("emittedEnd"), S$3 = Symbol("emittingEnd"), E$2 = Symbol("emittedError"), w$4 = Symbol("closed"), P$4 = Symbol("read"), L$3 = Symbol("flush"), _$3 = Symbol("flushChunk"), h$2 = Symbol("encoding"), m$3 = Symbol("decoder"), M$2 = Symbol("flowing"), y$5 = Symbol("paused"), p$2 = Symbol("resume"), s$9 = Symbol("bufferLength"), T$4 = Symbol("bufferPush"), B = Symbol("bufferShift"), r$3 = Symbol("objectMode"), n$5 = Symbol("destroyed"), D$2 = Symbol("emitData"), F$4 = Symbol("emitEnd"), R$4 = Symbol("emitEnd2"), d$2 = Symbol("async"), b$2 = (o$7) => Promise.resolve().then(o$7), C$2 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $ = C$2 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G$3 = C$2 && Symbol.iterator || Symbol("iterator not implemented"), V$2 = (o$7) => o$7 === "end" || o$7 === "finish" || o$7 === "prefinish", v$2 = (o$7) => o$7 instanceof ArrayBuffer || typeof o$7 == "object" && o$7.constructor && o$7.constructor.name === "ArrayBuffer" && o$7.byteLength >= 0, J$2 = (o$7) => !Buffer.isBuffer(o$7) && ArrayBuffer.isView(o$7);
|
|
25817
25817
|
class U$1 {
|
|
25818
25818
|
constructor(t$8, e$8, i$9) {
|
|
25819
25819
|
this.src = t$8, this.dest = e$8, this.opts = i$9, this.ondrain = () => t$8[p$2](), e$8.on("drain", this.ondrain);
|
|
@@ -25868,7 +25868,7 @@ function tt() {
|
|
|
25868
25868
|
if (this[u$7]) throw new Error("write after end");
|
|
25869
25869
|
if (this[n$5]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
25870
25870
|
typeof e$8 == "function" && (i$9 = e$8, e$8 = "utf8"), e$8 || (e$8 = "utf8");
|
|
25871
|
-
const l$2 = this[d$2] ? b$2 : (f$
|
|
25871
|
+
const l$2 = this[d$2] ? b$2 : (f$6) => f$6();
|
|
25872
25872
|
return !this[r$3] && !Buffer.isBuffer(t$8) && (J$2(t$8) ? t$8 = Buffer.from(t$8.buffer, t$8.byteOffset, t$8.byteLength) : v$2(t$8) ? t$8 = Buffer.from(t$8) : typeof t$8 != "string" && (this.objectMode = true)), this[r$3] ? (this.flowing && this[s$9] !== 0 && this[L$3](true), this.flowing ? this.emit("data", t$8) : this[T$4](t$8), this[s$9] !== 0 && this.emit("readable"), i$9 && l$2(i$9), this.flowing) : t$8.length ? (typeof t$8 == "string" && !(e$8 === this[h$2] && !this[m$3].lastNeed) && (t$8 = Buffer.from(t$8, e$8)), Buffer.isBuffer(t$8) && this[h$2] && (t$8 = this[m$3].write(t$8)), this.flowing && this[s$9] !== 0 && this[L$3](true), this.flowing ? this.emit("data", t$8) : this[T$4](t$8), this[s$9] !== 0 && this.emit("readable"), i$9 && l$2(i$9), this.flowing) : (this[s$9] !== 0 && this.emit("readable"), i$9 && l$2(i$9), this.flowing);
|
|
25873
25873
|
}
|
|
25874
25874
|
read(t$8) {
|
|
@@ -25944,18 +25944,18 @@ while (this[_$3](this[B]()));
|
|
|
25944
25944
|
if (t$8 === "end") return this[F$4]();
|
|
25945
25945
|
if (t$8 === "close") {
|
|
25946
25946
|
if (this[w$4] = true, !this[c$7] && !this[n$5]) return;
|
|
25947
|
-
const f$
|
|
25948
|
-
return this.removeAllListeners("close"), f$
|
|
25947
|
+
const f$6 = super.emit("close");
|
|
25948
|
+
return this.removeAllListeners("close"), f$6;
|
|
25949
25949
|
} else if (t$8 === "error") {
|
|
25950
25950
|
this[E$2] = e$8;
|
|
25951
|
-
const f$
|
|
25952
|
-
return this[a$13](), f$
|
|
25951
|
+
const f$6 = super.emit("error", e$8);
|
|
25952
|
+
return this[a$13](), f$6;
|
|
25953
25953
|
} else if (t$8 === "resume") {
|
|
25954
|
-
const f$
|
|
25955
|
-
return this[a$13](), f$
|
|
25954
|
+
const f$6 = super.emit("resume");
|
|
25955
|
+
return this[a$13](), f$6;
|
|
25956
25956
|
} else if (t$8 === "finish" || t$8 === "prefinish") {
|
|
25957
|
-
const f$
|
|
25958
|
-
return this.removeAllListeners(t$8), f$
|
|
25957
|
+
const f$6 = super.emit(t$8);
|
|
25958
|
+
return this.removeAllListeners(t$8), f$6;
|
|
25959
25959
|
}
|
|
25960
25960
|
const l$2 = super.emit(t$8, e$8, ...i$9);
|
|
25961
25961
|
return this[a$13](), l$2;
|
|
@@ -26005,18 +26005,18 @@ while (this[_$3](this[B]()));
|
|
|
26005
26005
|
});
|
|
26006
26006
|
if (this[u$7]) return Promise.resolve({ done: true });
|
|
26007
26007
|
let i$9 = null, l$2 = null;
|
|
26008
|
-
const f$
|
|
26008
|
+
const f$6 = (g$2) => {
|
|
26009
26009
|
this.removeListener("data", A$1), this.removeListener("end", O$6), l$2(g$2);
|
|
26010
26010
|
}, A$1 = (g$2) => {
|
|
26011
|
-
this.removeListener("error", f$
|
|
26011
|
+
this.removeListener("error", f$6), this.removeListener("end", O$6), this.pause(), i$9({
|
|
26012
26012
|
value: g$2,
|
|
26013
26013
|
done: !!this[u$7]
|
|
26014
26014
|
});
|
|
26015
26015
|
}, O$6 = () => {
|
|
26016
|
-
this.removeListener("error", f$
|
|
26017
|
-
}, W$2 = () => f$
|
|
26016
|
+
this.removeListener("error", f$6), this.removeListener("data", A$1), i$9({ done: true });
|
|
26017
|
+
}, W$2 = () => f$6(/* @__PURE__ */ new Error("stream destroyed"));
|
|
26018
26018
|
return new Promise((g$2, z$3) => {
|
|
26019
|
-
l$2 = z$3, i$9 = g$2, this.once(n$5, W$2), this.once("error", f$
|
|
26019
|
+
l$2 = z$3, i$9 = g$2, this.once(n$5, W$2), this.once("error", f$6), this.once("end", O$6), this.once("data", A$1);
|
|
26020
26020
|
});
|
|
26021
26021
|
} };
|
|
26022
26022
|
}
|
|
@@ -26050,25 +26050,25 @@ function J() {
|
|
|
26050
26050
|
return "ZlibError";
|
|
26051
26051
|
}
|
|
26052
26052
|
}
|
|
26053
|
-
const Z$2 = Symbol("opts"), p$2 = Symbol("flushFlag"), I$2 = Symbol("finishFlushFlag"), y$5 = Symbol("fullFlushFlag"), t$8 = Symbol("handle"), _$3 = Symbol("onError"), f$
|
|
26053
|
+
const Z$2 = Symbol("opts"), p$2 = Symbol("flushFlag"), I$2 = Symbol("finishFlushFlag"), y$5 = Symbol("fullFlushFlag"), t$8 = Symbol("handle"), _$3 = Symbol("onError"), f$6 = Symbol("sawError"), F$4 = Symbol("level"), S$3 = Symbol("strategy"), g$2 = Symbol("ended");
|
|
26054
26054
|
class x$3 extends L$3 {
|
|
26055
26055
|
constructor(s$9, e$8) {
|
|
26056
26056
|
if (!s$9 || typeof s$9 != "object") throw new TypeError("invalid options for ZlibBase constructor");
|
|
26057
|
-
super(s$9), this[f$
|
|
26057
|
+
super(s$9), this[f$6] = false, this[g$2] = false, this[Z$2] = s$9, this[p$2] = s$9.flush, this[I$2] = s$9.finishFlush;
|
|
26058
26058
|
try {
|
|
26059
26059
|
this[t$8] = new z$3[e$8](s$9);
|
|
26060
26060
|
} catch (i$9) {
|
|
26061
26061
|
throw new d$2(i$9);
|
|
26062
26062
|
}
|
|
26063
26063
|
this[_$3] = (i$9) => {
|
|
26064
|
-
this[f$
|
|
26064
|
+
this[f$6] || (this[f$6] = true, this.close(), this.emit("error", i$9));
|
|
26065
26065
|
}, this[t$8].on("error", (i$9) => this[_$3](new d$2(i$9))), this.once("end", () => this.close);
|
|
26066
26066
|
}
|
|
26067
26067
|
close() {
|
|
26068
26068
|
this[t$8] && (this[t$8].close(), this[t$8] = null, this.emit("close"));
|
|
26069
26069
|
}
|
|
26070
26070
|
reset() {
|
|
26071
|
-
if (!this[f$
|
|
26071
|
+
if (!this[f$6]) return w$4(this[t$8], "zlib binding closed"), this[t$8].reset();
|
|
26072
26072
|
}
|
|
26073
26073
|
flush(s$9) {
|
|
26074
26074
|
this.ended || (typeof s$9 != "number" && (s$9 = this[y$5]), this.write(Object.assign(n$5.alloc(0), { [p$2]: s$9 })));
|
|
@@ -26080,7 +26080,7 @@ function J() {
|
|
|
26080
26080
|
return this[g$2];
|
|
26081
26081
|
}
|
|
26082
26082
|
write(s$9, e$8, i$9) {
|
|
26083
|
-
if (typeof e$8 == "function" && (i$9 = e$8, e$8 = "utf8"), typeof s$9 == "string" && (s$9 = n$5.from(s$9, e$8)), this[f$
|
|
26083
|
+
if (typeof e$8 == "function" && (i$9 = e$8, e$8 = "utf8"), typeof s$9 == "string" && (s$9 = n$5.from(s$9, e$8)), this[f$6]) return;
|
|
26084
26084
|
w$4(this[t$8], "zlib binding closed");
|
|
26085
26085
|
const m$3 = this[t$8]._handle, R$4 = m$3.close;
|
|
26086
26086
|
m$3.close = () => {};
|
|
@@ -26112,7 +26112,7 @@ function J() {
|
|
|
26112
26112
|
s$9 = s$9 || {}, s$9.flush = s$9.flush || u$7.Z_NO_FLUSH, s$9.finishFlush = s$9.finishFlush || u$7.Z_FINISH, super(s$9, e$8), this[y$5] = u$7.Z_FULL_FLUSH, this[F$4] = s$9.level, this[S$3] = s$9.strategy;
|
|
26113
26113
|
}
|
|
26114
26114
|
params(s$9, e$8) {
|
|
26115
|
-
if (!this[f$
|
|
26115
|
+
if (!this[f$6]) {
|
|
26116
26116
|
if (!this[t$8]) throw new Error("cannot switch params when binding is closed");
|
|
26117
26117
|
if (!this[t$8].params) throw new Error("not supported in this implementation");
|
|
26118
26118
|
if (this[F$4] !== s$9 || this[S$3] !== e$8) {
|
|
@@ -26195,7 +26195,7 @@ var O$1, F$2;
|
|
|
26195
26195
|
function rt() {
|
|
26196
26196
|
if (F$2) return O$1;
|
|
26197
26197
|
F$2 = 1;
|
|
26198
|
-
const P$4 = c$4(), $ = E(), v$2 = nt, W$2 = c$3(), G$3 = 1024 * 1024, k$3 = u$3(), C$2 = f$2(), x$3 = J(), { nextTick: j$4 } = nt$1, B = Buffer.from([31, 139]), h$2 = Symbol("state"), d$2 = Symbol("writeEntry"), a$13 = Symbol("readEntry"), I$2 = Symbol("nextEntry"), U$1 = Symbol("processEntry"), l$2 = Symbol("extendedHeader"), y$5 = Symbol("globalExtendedHeader"), c$7 = Symbol("meta"), H$5 = Symbol("emitMeta"), n$5 = Symbol("buffer"), f$
|
|
26198
|
+
const P$4 = c$4(), $ = E(), v$2 = nt, W$2 = c$3(), G$3 = 1024 * 1024, k$3 = u$3(), C$2 = f$2(), x$3 = J(), { nextTick: j$4 } = nt$1, B = Buffer.from([31, 139]), h$2 = Symbol("state"), d$2 = Symbol("writeEntry"), a$13 = Symbol("readEntry"), I$2 = Symbol("nextEntry"), U$1 = Symbol("processEntry"), l$2 = Symbol("extendedHeader"), y$5 = Symbol("globalExtendedHeader"), c$7 = Symbol("meta"), H$5 = Symbol("emitMeta"), n$5 = Symbol("buffer"), f$6 = Symbol("queue"), u$7 = Symbol("ended"), L$3 = Symbol("emittedEnd"), b$2 = Symbol("emit"), r$3 = Symbol("unzip"), _$3 = Symbol("consumeChunk"), g$2 = Symbol("consumeChunkSub"), q$2 = Symbol("consumeBody"), z$3 = Symbol("consumeMeta"), Y$1 = Symbol("consumeHeader"), N$2 = Symbol("consuming"), D$2 = Symbol("bufferConcat"), M$2 = Symbol("maybeEnd"), S$3 = Symbol("writing"), m$3 = Symbol("aborted"), T$4 = Symbol("onDone"), E$1$1 = Symbol("sawValidEntry"), R$4 = Symbol("sawNullBlock"), A$1 = Symbol("sawEOF"), V$2 = Symbol("closeStream"), K$2 = (X$3) => true;
|
|
26199
26199
|
return O$1 = P$4(class extends v$2 {
|
|
26200
26200
|
constructor(t$8) {
|
|
26201
26201
|
t$8 = t$8 || {}, super(t$8), this.file = t$8.file || "", this[E$1$1] = null, this.on(T$4, (s$9) => {
|
|
@@ -26204,7 +26204,7 @@ function rt() {
|
|
|
26204
26204
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
26205
26205
|
}), this.strict = !!t$8.strict, this.maxMetaEntrySize = t$8.maxMetaEntrySize || G$3, this.filter = typeof t$8.filter == "function" ? t$8.filter : K$2;
|
|
26206
26206
|
const i$9 = t$8.file && (t$8.file.endsWith(".tar.br") || t$8.file.endsWith(".tbr"));
|
|
26207
|
-
this.brotli = !t$8.gzip && t$8.brotli !== void 0 ? t$8.brotli : i$9 ? void 0 : false, this.writable = true, this.readable = false, this[f$
|
|
26207
|
+
this.brotli = !t$8.gzip && t$8.brotli !== void 0 ? t$8.brotli : i$9 ? void 0 : false, this.writable = true, this.readable = false, this[f$6] = new W$2(), this[n$5] = null, this[a$13] = null, this[d$2] = null, this[h$2] = "begin", this[c$7] = "", this[l$2] = null, this[y$5] = null, this[u$7] = false, this[r$3] = null, this[m$3] = false, this[R$4] = false, this[A$1] = false, this.on("end", () => this[V$2]()), typeof t$8.onwarn == "function" && this.on("warn", t$8.onwarn), typeof t$8.onentry == "function" && this.on("entry", t$8.onentry);
|
|
26208
26208
|
}
|
|
26209
26209
|
[Y$1](t$8, i$9) {
|
|
26210
26210
|
this[E$1$1] === null && (this[E$1$1] = false);
|
|
@@ -26229,7 +26229,7 @@ function rt() {
|
|
|
26229
26229
|
};
|
|
26230
26230
|
e$8.on("end", w$4);
|
|
26231
26231
|
} else this[E$1$1] = true;
|
|
26232
|
-
e$8.meta ? e$8.size > this.maxMetaEntrySize ? (e$8.ignore = true, this[b$2]("ignoredEntry", e$8), this[h$2] = "ignore", e$8.resume()) : e$8.size > 0 && (this[c$7] = "", e$8.on("data", (w$4) => this[c$7] += w$4), this[h$2] = "meta") : (this[l$2] = null, e$8.ignore = e$8.ignore || !this.filter(e$8.path, e$8), e$8.ignore ? (this[b$2]("ignoredEntry", e$8), this[h$2] = e$8.remain ? "ignore" : "header", e$8.resume()) : (e$8.remain ? this[h$2] = "body" : (this[h$2] = "header", e$8.end()), this[a$13] ? this[f$
|
|
26232
|
+
e$8.meta ? e$8.size > this.maxMetaEntrySize ? (e$8.ignore = true, this[b$2]("ignoredEntry", e$8), this[h$2] = "ignore", e$8.resume()) : e$8.size > 0 && (this[c$7] = "", e$8.on("data", (w$4) => this[c$7] += w$4), this[h$2] = "meta") : (this[l$2] = null, e$8.ignore = e$8.ignore || !this.filter(e$8.path, e$8), e$8.ignore ? (this[b$2]("ignoredEntry", e$8), this[h$2] = e$8.remain ? "ignore" : "header", e$8.resume()) : (e$8.remain ? this[h$2] = "body" : (this[h$2] = "header", e$8.end()), this[a$13] ? this[f$6].push(e$8) : (this[f$6].push(e$8), this[I$2]())));
|
|
26233
26233
|
}
|
|
26234
26234
|
}
|
|
26235
26235
|
}
|
|
@@ -26242,8 +26242,8 @@ function rt() {
|
|
|
26242
26242
|
}
|
|
26243
26243
|
[I$2]() {
|
|
26244
26244
|
do ;
|
|
26245
|
-
while (this[U$1](this[f$
|
|
26246
|
-
if (!this[f$
|
|
26245
|
+
while (this[U$1](this[f$6].shift()));
|
|
26246
|
+
if (!this[f$6].length) {
|
|
26247
26247
|
const t$8 = this[a$13];
|
|
26248
26248
|
!t$8 || t$8.flowing || t$8.size === t$8.remain ? this[S$3] || this.emit("drain") : t$8.once("drain", (s$9) => this.emit("drain"));
|
|
26249
26249
|
}
|
|
@@ -26257,7 +26257,7 @@ while (this[U$1](this[f$7].shift()));
|
|
|
26257
26257
|
return this[d$2] || this[H$5](s$9), o$7;
|
|
26258
26258
|
}
|
|
26259
26259
|
[b$2](t$8, i$9, s$9) {
|
|
26260
|
-
!this[f$
|
|
26260
|
+
!this[f$6].length && !this[a$13] ? this.emit(t$8, i$9, s$9) : this[f$6].push([
|
|
26261
26261
|
t$8,
|
|
26262
26262
|
i$9,
|
|
26263
26263
|
s$9
|
|
@@ -26308,8 +26308,8 @@ while (this[U$1](this[f$7].shift()));
|
|
|
26308
26308
|
}
|
|
26309
26309
|
}
|
|
26310
26310
|
this[S$3] = true, this[r$3] ? this[r$3].write(t$8) : this[_$3](t$8), this[S$3] = false;
|
|
26311
|
-
const s$9 = this[f$
|
|
26312
|
-
return !s$9 && !this[f$
|
|
26311
|
+
const s$9 = this[f$6].length ? false : this[a$13] ? this[a$13].flowing : true;
|
|
26312
|
+
return !s$9 && !this[f$6].length && this[a$13].once("drain", (o$7) => this.emit("drain")), s$9;
|
|
26313
26313
|
}
|
|
26314
26314
|
[D$2](t$8) {
|
|
26315
26315
|
t$8 && !this[m$3] && (this[n$5] = this[n$5] ? Buffer.concat([this[n$5], t$8]) : t$8);
|
|
@@ -26380,11 +26380,11 @@ function X() {
|
|
|
26380
26380
|
j$4.oncomplete = G$3, c$7.writeBuffers(e$8, i$9, $, j$4);
|
|
26381
26381
|
};
|
|
26382
26382
|
}
|
|
26383
|
-
const m$3 = Symbol("_autoClose"), h$2 = Symbol("_close"), g$2 = Symbol("_ended"), s$9 = Symbol("_fd"), B = Symbol("_finished"), o$7 = Symbol("_flags"), x$3 = Symbol("_flush"), z$3 = Symbol("_handleChunk"), T$4 = Symbol("_makeBuf"), q$2 = Symbol("_mode"), E$2 = Symbol("_needDrain"), d$2 = Symbol("_onerror"), y$5 = Symbol("_onopen"), W$2 = Symbol("_onread"), _$3 = Symbol("_onwrite"), a$13 = Symbol("_open"), l$2 = Symbol("_path"), u$7 = Symbol("_pos"), n$5 = Symbol("_queue"), S$3 = Symbol("_read"), M$2 = Symbol("_readSize"), f$
|
|
26383
|
+
const m$3 = Symbol("_autoClose"), h$2 = Symbol("_close"), g$2 = Symbol("_ended"), s$9 = Symbol("_fd"), B = Symbol("_finished"), o$7 = Symbol("_flags"), x$3 = Symbol("_flush"), z$3 = Symbol("_handleChunk"), T$4 = Symbol("_makeBuf"), q$2 = Symbol("_mode"), E$2 = Symbol("_needDrain"), d$2 = Symbol("_onerror"), y$5 = Symbol("_onopen"), W$2 = Symbol("_onread"), _$3 = Symbol("_onwrite"), a$13 = Symbol("_open"), l$2 = Symbol("_path"), u$7 = Symbol("_pos"), n$5 = Symbol("_queue"), S$3 = Symbol("_read"), M$2 = Symbol("_readSize"), f$6 = Symbol("_reading"), k$3 = Symbol("_remain"), N$2 = Symbol("_size"), C$2 = Symbol("_write"), b$2 = Symbol("_writing"), F$4 = Symbol("_defaultFlag"), p$2 = Symbol("_errored");
|
|
26384
26384
|
class D$2 extends H$5 {
|
|
26385
26385
|
constructor(t$8, e$8) {
|
|
26386
26386
|
if (e$8 = e$8 || {}, super(e$8), this.readable = true, this.writable = false, typeof t$8 != "string") throw new TypeError("path must be a string");
|
|
26387
|
-
this[p$2] = false, this[s$9] = typeof e$8.fd == "number" ? e$8.fd : null, this[l$2] = t$8, this[M$2] = e$8.readSize || 16 * 1024 * 1024, this[f$
|
|
26387
|
+
this[p$2] = false, this[s$9] = typeof e$8.fd == "number" ? e$8.fd : null, this[l$2] = t$8, this[M$2] = e$8.readSize || 16 * 1024 * 1024, this[f$6] = false, this[N$2] = typeof e$8.size == "number" ? e$8.size : Infinity, this[k$3] = this[N$2], this[m$3] = typeof e$8.autoClose == "boolean" ? e$8.autoClose : true, typeof this[s$9] == "number" ? this[S$3]() : this[a$13]();
|
|
26388
26388
|
}
|
|
26389
26389
|
get fd() {
|
|
26390
26390
|
return this[s$9];
|
|
@@ -26408,15 +26408,15 @@ function X() {
|
|
|
26408
26408
|
return Buffer.allocUnsafe(Math.min(this[M$2], this[k$3]));
|
|
26409
26409
|
}
|
|
26410
26410
|
[S$3]() {
|
|
26411
|
-
if (!this[f$
|
|
26412
|
-
this[f$
|
|
26411
|
+
if (!this[f$6]) {
|
|
26412
|
+
this[f$6] = true;
|
|
26413
26413
|
const t$8 = this[T$4]();
|
|
26414
26414
|
if (t$8.length === 0) return process.nextTick(() => this[W$2](null, 0, t$8));
|
|
26415
26415
|
r$3.read(this[s$9], t$8, 0, t$8.length, null, (e$8, i$9, $) => this[W$2](e$8, i$9, $));
|
|
26416
26416
|
}
|
|
26417
26417
|
}
|
|
26418
26418
|
[W$2](t$8, e$8, i$9) {
|
|
26419
|
-
this[f$
|
|
26419
|
+
this[f$6] = false, t$8 ? this[d$2](t$8) : this[z$3](e$8, i$9) && this[S$3]();
|
|
26420
26420
|
}
|
|
26421
26421
|
[h$2]() {
|
|
26422
26422
|
if (this[m$3] && typeof this[s$9] == "number") {
|
|
@@ -26425,7 +26425,7 @@ function X() {
|
|
|
26425
26425
|
}
|
|
26426
26426
|
}
|
|
26427
26427
|
[d$2](t$8) {
|
|
26428
|
-
this[f$
|
|
26428
|
+
this[f$6] = true, this[h$2](), this.emit("error", t$8);
|
|
26429
26429
|
}
|
|
26430
26430
|
[z$3](t$8, e$8) {
|
|
26431
26431
|
let i$9 = false;
|
|
@@ -26455,13 +26455,13 @@ function X() {
|
|
|
26455
26455
|
[S$3]() {
|
|
26456
26456
|
let t$8 = true;
|
|
26457
26457
|
try {
|
|
26458
|
-
if (!this[f$
|
|
26459
|
-
this[f$
|
|
26458
|
+
if (!this[f$6]) {
|
|
26459
|
+
this[f$6] = !0;
|
|
26460
26460
|
do {
|
|
26461
26461
|
const e$8 = this[T$4](), i$9 = e$8.length === 0 ? 0 : r$3.readSync(this[s$9], e$8, 0, e$8.length, null);
|
|
26462
26462
|
if (!this[z$3](i$9, e$8)) break;
|
|
26463
26463
|
} while (!0);
|
|
26464
|
-
this[f$
|
|
26464
|
+
this[f$6] = !1;
|
|
26465
26465
|
}
|
|
26466
26466
|
t$8 = !1;
|
|
26467
26467
|
} finally {
|
|
@@ -26613,7 +26613,7 @@ var i$1, c$2;
|
|
|
26613
26613
|
function t() {
|
|
26614
26614
|
if (c$2) return i$1;
|
|
26615
26615
|
c$2 = 1;
|
|
26616
|
-
const { dirname: u$7 } = H$2, f$
|
|
26616
|
+
const { dirname: u$7 } = H$2, f$6 = (r$3, e$8, n$5 = void 0) => n$5 === e$8 ? Promise.resolve() : r$3.statAsync(e$8).then((d$2) => d$2.isDirectory() ? n$5 : void 0, (d$2) => d$2.code === "ENOENT" ? f$6(r$3, u$7(e$8), e$8) : void 0), o$7 = (r$3, e$8, n$5 = void 0) => {
|
|
26617
26617
|
if (n$5 !== e$8) try {
|
|
26618
26618
|
return r$3.statSync(e$8).isDirectory() ? n$5 : void 0;
|
|
26619
26619
|
} catch (d$2) {
|
|
@@ -26621,7 +26621,7 @@ function t() {
|
|
|
26621
26621
|
}
|
|
26622
26622
|
};
|
|
26623
26623
|
return i$1 = {
|
|
26624
|
-
findMade: f$
|
|
26624
|
+
findMade: f$6,
|
|
26625
26625
|
findMadeSync: o$7
|
|
26626
26626
|
}, i$1;
|
|
26627
26627
|
}
|
|
@@ -26629,9 +26629,9 @@ var o$3, a$4;
|
|
|
26629
26629
|
function y$2() {
|
|
26630
26630
|
if (a$4) return o$3;
|
|
26631
26631
|
a$4 = 1;
|
|
26632
|
-
const { dirname: f$
|
|
26632
|
+
const { dirname: f$6 } = H$2, t$8 = (n$5, e$8, c$7) => {
|
|
26633
26633
|
e$8.recursive = false;
|
|
26634
|
-
const i$9 = f$
|
|
26634
|
+
const i$9 = f$6(n$5);
|
|
26635
26635
|
return i$9 === n$5 ? e$8.mkdirAsync(n$5, e$8).catch((r$3) => {
|
|
26636
26636
|
if (r$3.code !== "EISDIR") throw r$3;
|
|
26637
26637
|
}) : e$8.mkdirAsync(n$5, e$8).then(() => c$7 || n$5, (r$3) => {
|
|
@@ -26645,7 +26645,7 @@ function y$2() {
|
|
|
26645
26645
|
});
|
|
26646
26646
|
});
|
|
26647
26647
|
}, d$2 = (n$5, e$8, c$7) => {
|
|
26648
|
-
const i$9 = f$
|
|
26648
|
+
const i$9 = f$6(n$5);
|
|
26649
26649
|
if (e$8.recursive = false, i$9 === n$5) try {
|
|
26650
26650
|
return e$8.mkdirSync(n$5, e$8);
|
|
26651
26651
|
} catch (r$3) {
|
|
@@ -26741,9 +26741,9 @@ function F$1() {
|
|
|
26741
26741
|
t$8(o$7 && o$7.code !== "ENOENT" ? o$7 : null);
|
|
26742
26742
|
}));
|
|
26743
26743
|
}, S$3 = (r$3, e$8, n$5, t$8, o$7) => {
|
|
26744
|
-
if (typeof e$8 == "string") return c$7.lstat(a$13.resolve(r$3, e$8), (s$9, f$
|
|
26744
|
+
if (typeof e$8 == "string") return c$7.lstat(a$13.resolve(r$3, e$8), (s$9, f$6) => {
|
|
26745
26745
|
if (s$9) return o$7(s$9.code !== "ENOENT" ? s$9 : null);
|
|
26746
|
-
f$
|
|
26746
|
+
f$6.name = e$8, S$3(r$3, f$6, n$5, t$8, o$7);
|
|
26747
26747
|
});
|
|
26748
26748
|
if (e$8.isDirectory()) E$2(a$13.resolve(r$3, e$8.name), n$5, t$8, (s$9) => {
|
|
26749
26749
|
if (s$9) return o$7(s$9);
|
|
@@ -26757,11 +26757,11 @@ function F$1() {
|
|
|
26757
26757
|
if (o$7.code !== "ENOTDIR" && o$7.code !== "ENOTSUP") return t$8(o$7);
|
|
26758
26758
|
}
|
|
26759
26759
|
if (o$7 || !s$9.length) return h$2(r$3, e$8, n$5, t$8);
|
|
26760
|
-
let f$
|
|
26760
|
+
let f$6 = s$9.length, v$2 = null;
|
|
26761
26761
|
const H$5 = (l$2) => {
|
|
26762
26762
|
if (!v$2) {
|
|
26763
26763
|
if (l$2) return t$8(v$2 = l$2);
|
|
26764
|
-
if (--f$
|
|
26764
|
+
if (--f$6 === 0) return h$2(r$3, e$8, n$5, t$8);
|
|
26765
26765
|
}
|
|
26766
26766
|
};
|
|
26767
26767
|
s$9.forEach((l$2) => S$3(r$3, l$2, e$8, n$5, H$5));
|
|
@@ -26816,32 +26816,32 @@ function H() {
|
|
|
26816
26816
|
};
|
|
26817
26817
|
r$1.exports = (n$5, e$8, s$9) => {
|
|
26818
26818
|
n$5 = y$5(n$5);
|
|
26819
|
-
const r$3 = e$8.umask, c$7 = e$8.mode | 448, f$
|
|
26820
|
-
k$3 ? s$9(k$3) : (q$2(h$2, n$5, true), o$7 && a$13 ? x$3(o$7, t$8, i$9, (G$3) => w$4(G$3)) : f$
|
|
26819
|
+
const r$3 = e$8.umask, c$7 = e$8.mode | 448, f$6 = (c$7 & r$3) !== 0, t$8 = e$8.uid, i$9 = e$8.gid, a$13 = typeof t$8 == "number" && typeof i$9 == "number" && (t$8 !== e$8.processUid || i$9 !== e$8.processGid), u$7 = e$8.preserve, m$3 = e$8.unlink, h$2 = e$8.cache, d$2 = y$5(e$8.cwd), w$4 = (k$3, o$7) => {
|
|
26820
|
+
k$3 ? s$9(k$3) : (q$2(h$2, n$5, true), o$7 && a$13 ? x$3(o$7, t$8, i$9, (G$3) => w$4(G$3)) : f$6 ? l$2.chmod(n$5, c$7, s$9) : s$9());
|
|
26821
26821
|
};
|
|
26822
26822
|
if (h$2 && v$2(h$2, n$5) === true) return w$4();
|
|
26823
26823
|
if (n$5 === d$2) return I$2(n$5, w$4);
|
|
26824
26824
|
if (u$7) return g$2(n$5, { mode: c$7 }).then((k$3) => w$4(null, k$3), w$4);
|
|
26825
26825
|
C$2(d$2, y$5(p$2.relative(d$2, n$5)).split("/"), c$7, h$2, m$3, d$2, null, w$4);
|
|
26826
26826
|
};
|
|
26827
|
-
const C$2 = (n$5, e$8, s$9, r$3, c$7, f$
|
|
26827
|
+
const C$2 = (n$5, e$8, s$9, r$3, c$7, f$6, t$8, i$9) => {
|
|
26828
26828
|
if (!e$8.length) return i$9(null, t$8);
|
|
26829
26829
|
const a$13 = e$8.shift(), u$7 = y$5(p$2.resolve(n$5 + "/" + a$13));
|
|
26830
|
-
if (v$2(r$3, u$7)) return C$2(u$7, e$8, s$9, r$3, c$7, f$
|
|
26831
|
-
l$2.mkdir(u$7, s$9, j$4(u$7, e$8, s$9, r$3, c$7, f$
|
|
26832
|
-
}, j$4 = (n$5, e$8, s$9, r$3, c$7, f$
|
|
26830
|
+
if (v$2(r$3, u$7)) return C$2(u$7, e$8, s$9, r$3, c$7, f$6, t$8, i$9);
|
|
26831
|
+
l$2.mkdir(u$7, s$9, j$4(u$7, e$8, s$9, r$3, c$7, f$6, t$8, i$9));
|
|
26832
|
+
}, j$4 = (n$5, e$8, s$9, r$3, c$7, f$6, t$8, i$9) => (a$13) => {
|
|
26833
26833
|
a$13 ? l$2.lstat(n$5, (u$7, m$3) => {
|
|
26834
26834
|
if (u$7) u$7.path = u$7.path && y$5(u$7.path), i$9(u$7);
|
|
26835
|
-
else if (m$3.isDirectory()) C$2(n$5, e$8, s$9, r$3, c$7, f$
|
|
26835
|
+
else if (m$3.isDirectory()) C$2(n$5, e$8, s$9, r$3, c$7, f$6, t$8, i$9);
|
|
26836
26836
|
else if (c$7) l$2.unlink(n$5, (h$2) => {
|
|
26837
26837
|
if (h$2) return i$9(h$2);
|
|
26838
|
-
l$2.mkdir(n$5, s$9, j$4(n$5, e$8, s$9, r$3, c$7, f$
|
|
26838
|
+
l$2.mkdir(n$5, s$9, j$4(n$5, e$8, s$9, r$3, c$7, f$6, t$8, i$9));
|
|
26839
26839
|
});
|
|
26840
26840
|
else {
|
|
26841
26841
|
if (m$3.isSymbolicLink()) return i$9(new D$2(n$5, n$5 + "/" + e$8.join("/")));
|
|
26842
26842
|
i$9(a$13);
|
|
26843
26843
|
}
|
|
26844
|
-
}) : (t$8 = t$8 || n$5, C$2(n$5, e$8, s$9, r$3, c$7, f$
|
|
26844
|
+
}) : (t$8 = t$8 || n$5, C$2(n$5, e$8, s$9, r$3, c$7, f$6, t$8, i$9));
|
|
26845
26845
|
}, L$3 = (n$5) => {
|
|
26846
26846
|
let e$8 = false, s$9 = "ENOTDIR";
|
|
26847
26847
|
try {
|
|
@@ -26854,8 +26854,8 @@ function H() {
|
|
|
26854
26854
|
};
|
|
26855
26855
|
return r$1.exports.sync = (n$5, e$8) => {
|
|
26856
26856
|
n$5 = y$5(n$5);
|
|
26857
|
-
const s$9 = e$8.umask, r$3 = e$8.mode | 448, c$7 = (r$3 & s$9) !== 0, f$
|
|
26858
|
-
q$2(m$3, n$5, true), k$3 && i$9 && x$3.sync(k$3, f$
|
|
26857
|
+
const s$9 = e$8.umask, r$3 = e$8.mode | 448, c$7 = (r$3 & s$9) !== 0, f$6 = e$8.uid, t$8 = e$8.gid, i$9 = typeof f$6 == "number" && typeof t$8 == "number" && (f$6 !== e$8.processUid || t$8 !== e$8.processGid), a$13 = e$8.preserve, u$7 = e$8.unlink, m$3 = e$8.cache, h$2 = y$5(e$8.cwd), d$2 = (k$3) => {
|
|
26858
|
+
q$2(m$3, n$5, true), k$3 && i$9 && x$3.sync(k$3, f$6, t$8), c$7 && l$2.chmodSync(n$5, r$3);
|
|
26859
26859
|
};
|
|
26860
26860
|
if (m$3 && v$2(m$3, n$5) === true) return d$2();
|
|
26861
26861
|
if (n$5 === h$2) return L$3(h$2), d$2();
|
|
@@ -26972,8 +26972,8 @@ var e, o;
|
|
|
26972
26972
|
function F() {
|
|
26973
26973
|
if (o) return e;
|
|
26974
26974
|
o = 1;
|
|
26975
|
-
const t$8 = process.env.__FAKE_PLATFORM__ || process.platform, s$9 = typeof Bun < "u" ? false : t$8 === "win32", { O_CREAT: _$3, O_TRUNC: a$13, O_WRONLY: i$9, UV_FS_O_FILEMAP: r$3 = 0 } = (commonjsGlobal.__FAKE_TESTING_FS__ || V).constants, c$7 = s$9 && !!r$3, f$
|
|
26976
|
-
return e = c$7 ? (l$2) => l$2 < f$
|
|
26975
|
+
const t$8 = process.env.__FAKE_PLATFORM__ || process.platform, s$9 = typeof Bun < "u" ? false : t$8 === "win32", { O_CREAT: _$3, O_TRUNC: a$13, O_WRONLY: i$9, UV_FS_O_FILEMAP: r$3 = 0 } = (commonjsGlobal.__FAKE_TESTING_FS__ || V).constants, c$7 = s$9 && !!r$3, f$6 = 512 * 1024, p$2 = r$3 | a$13 | _$3 | i$9;
|
|
26976
|
+
return e = c$7 ? (l$2) => l$2 < f$6 ? p$2 : "w" : () => "w", e;
|
|
26977
26977
|
}
|
|
26978
26978
|
var G, y;
|
|
26979
26979
|
function Os() {
|
|
@@ -27125,13 +27125,13 @@ function Os() {
|
|
|
27125
27125
|
const n$5 = s$9.absolute, p$2 = t$8.fd;
|
|
27126
27126
|
if (s$9.mtime && !this.noMtime) {
|
|
27127
27127
|
o$7++;
|
|
27128
|
-
const f$
|
|
27129
|
-
r$3.futimes(p$2, f$
|
|
27128
|
+
const f$6 = s$9.atime || /* @__PURE__ */ new Date(), k$3 = s$9.mtime;
|
|
27129
|
+
r$3.futimes(p$2, f$6, k$3, (D$2) => D$2 ? r$3.utimes(n$5, f$6, k$3, (I$2) => u$7(I$2 && D$2)) : u$7());
|
|
27130
27130
|
}
|
|
27131
27131
|
if (this[E$2](s$9)) {
|
|
27132
27132
|
o$7++;
|
|
27133
|
-
const f$
|
|
27134
|
-
r$3.fchown(p$2, f$
|
|
27133
|
+
const f$6 = this[R$4](s$9), k$3 = this[_$3](s$9);
|
|
27134
|
+
r$3.fchown(p$2, f$6, k$3, (D$2) => D$2 ? r$3.chown(n$5, f$6, k$3, (I$2) => u$7(I$2 && D$2)) : u$7());
|
|
27135
27135
|
}
|
|
27136
27136
|
u$7();
|
|
27137
27137
|
});
|
|
@@ -27217,7 +27217,7 @@ function Os() {
|
|
|
27217
27217
|
if (h$2 || this[N$2](s$9, c$7)) return this[d$2](null, s$9, e$8);
|
|
27218
27218
|
if (c$7.isDirectory()) {
|
|
27219
27219
|
if (s$9.type === "Directory") {
|
|
27220
|
-
const n$5 = !this.noChmod && s$9.mode && (c$7.mode & 4095) !== s$9.mode, p$2 = (f$
|
|
27220
|
+
const n$5 = !this.noChmod && s$9.mode && (c$7.mode & 4095) !== s$9.mode, p$2 = (f$6) => this[d$2](f$6, s$9, e$8);
|
|
27221
27221
|
return n$5 ? r$3.chmod(s$9.absolute, s$9.mode, p$2) : p$2();
|
|
27222
27222
|
}
|
|
27223
27223
|
if (s$9.absolute !== this.cwd) return r$3.rmdir(s$9.absolute, (n$5) => this[d$2](n$5, s$9, e$8));
|
|
@@ -27318,11 +27318,11 @@ function Os() {
|
|
|
27318
27318
|
const n$5 = s$9.atime || /* @__PURE__ */ new Date(), p$2 = s$9.mtime;
|
|
27319
27319
|
try {
|
|
27320
27320
|
r$3.futimesSync(o$7, n$5, p$2);
|
|
27321
|
-
} catch (f$
|
|
27321
|
+
} catch (f$6) {
|
|
27322
27322
|
try {
|
|
27323
27323
|
r$3.utimesSync(s$9.absolute, n$5, p$2);
|
|
27324
27324
|
} catch {
|
|
27325
|
-
c$7 = f$
|
|
27325
|
+
c$7 = f$6;
|
|
27326
27326
|
}
|
|
27327
27327
|
}
|
|
27328
27328
|
}
|
|
@@ -27330,11 +27330,11 @@ function Os() {
|
|
|
27330
27330
|
const n$5 = this[R$4](s$9), p$2 = this[_$3](s$9);
|
|
27331
27331
|
try {
|
|
27332
27332
|
r$3.fchownSync(o$7, n$5, p$2);
|
|
27333
|
-
} catch (f$
|
|
27333
|
+
} catch (f$6) {
|
|
27334
27334
|
try {
|
|
27335
27335
|
r$3.chownSync(s$9.absolute, n$5, p$2);
|
|
27336
27336
|
} catch {
|
|
27337
|
-
c$7 = c$7 || f$
|
|
27337
|
+
c$7 = c$7 || f$6;
|
|
27338
27338
|
}
|
|
27339
27339
|
}
|
|
27340
27340
|
}
|
|
@@ -27383,12 +27383,12 @@ function Os() {
|
|
|
27383
27383
|
}
|
|
27384
27384
|
return L$3.Sync = ls, G = L$3, G;
|
|
27385
27385
|
}
|
|
27386
|
-
var f
|
|
27386
|
+
var f, q;
|
|
27387
27387
|
function v() {
|
|
27388
|
-
if (q) return f
|
|
27388
|
+
if (q) return f;
|
|
27389
27389
|
q = 1;
|
|
27390
27390
|
const w$4 = s$6(), u$7 = Os(), p$2 = V, y$5 = X(), l$2 = H$2, m$3 = s();
|
|
27391
|
-
f
|
|
27391
|
+
f = (r$3, e$8, o$7) => {
|
|
27392
27392
|
typeof r$3 == "function" ? (o$7 = r$3, e$8 = null, r$3 = {}) : Array.isArray(r$3) && (e$8 = r$3, r$3 = {}), typeof e$8 == "function" && (o$7 = e$8, e$8 = null), e$8 ? e$8 = Array.from(e$8) : e$8 = [];
|
|
27393
27393
|
const t$8 = w$4(r$3);
|
|
27394
27394
|
if (t$8.sync && typeof o$7 == "function") throw new TypeError("callback not supported for sync tar functions");
|
|
@@ -27422,7 +27422,7 @@ function v() {
|
|
|
27422
27422
|
});
|
|
27423
27423
|
return e$8 ? n$5.then(e$8, e$8) : n$5;
|
|
27424
27424
|
}, x$3 = (r$3) => new u$7.Sync(r$3), z$3 = (r$3) => new u$7(r$3);
|
|
27425
|
-
return f
|
|
27425
|
+
return f;
|
|
27426
27426
|
}
|
|
27427
27427
|
const tarExtract = getDefaultExportFromCjs(v());
|
|
27428
27428
|
async function download(url, filePath, options$1 = {}) {
|
|
@@ -28411,7 +28411,7 @@ const banner = createBanner();
|
|
|
28411
28411
|
|
|
28412
28412
|
//#endregion
|
|
28413
28413
|
//#region package.json
|
|
28414
|
-
var version = "0.0.6-beta.
|
|
28414
|
+
var version = "0.0.6-beta.6";
|
|
28415
28415
|
|
|
28416
28416
|
//#endregion
|
|
28417
28417
|
//#region src/commands/upgrade.ts
|
|
@@ -28569,6 +28569,44 @@ function getNuxtI18nConfig(_ts) {
|
|
|
28569
28569
|
`;
|
|
28570
28570
|
}
|
|
28571
28571
|
|
|
28572
|
+
//#endregion
|
|
28573
|
+
//#region src/features/mcp.ts
|
|
28574
|
+
const mcp = {
|
|
28575
|
+
name: "mcp",
|
|
28576
|
+
apply: async ({ cwd: cwd$1, pkg }) => {
|
|
28577
|
+
pkg.devDependencies = pkg.devDependencies || {};
|
|
28578
|
+
pkg.devDependencies["@intellectronica/ruler"] = dependencies["@intellectronica/ruler"];
|
|
28579
|
+
pkg.scripts = pkg.scripts || {};
|
|
28580
|
+
pkg.scripts["mcp"] = "ruler apply";
|
|
28581
|
+
pkg.scripts["mcp:revert"] = "ruler revert";
|
|
28582
|
+
const rulerDir = join(cwd$1, ".ruler");
|
|
28583
|
+
await mkdir(rulerDir, { recursive: true });
|
|
28584
|
+
await writeFile(join(rulerDir, "ruler.toml"), getRulerToml());
|
|
28585
|
+
await writeFile(join(rulerDir, "AGENTS.md"), getAgentsMd());
|
|
28586
|
+
}
|
|
28587
|
+
};
|
|
28588
|
+
function getRulerToml() {
|
|
28589
|
+
return `# For a complete example, see: https://okigu.com/ruler#complete-example
|
|
28590
|
+
|
|
28591
|
+
# List of agents to configure
|
|
28592
|
+
default_agents = ["copilot", "claude", "trae"]
|
|
28593
|
+
|
|
28594
|
+
[mcp_servers.vuetify]
|
|
28595
|
+
url = "https://mcp.vuetifyjs.com/mcp"
|
|
28596
|
+
|
|
28597
|
+
# https://github.com/vuetifyjs/mcp#authentication
|
|
28598
|
+
# [mcp_servers.vuetify.headers]
|
|
28599
|
+
# Authorization = "Bearer <YOUR_API_KEY>"
|
|
28600
|
+
`;
|
|
28601
|
+
}
|
|
28602
|
+
function getAgentsMd() {
|
|
28603
|
+
return `# Project Rules
|
|
28604
|
+
|
|
28605
|
+
## General
|
|
28606
|
+
- Follow the existing code style and patterns.
|
|
28607
|
+
`;
|
|
28608
|
+
}
|
|
28609
|
+
|
|
28572
28610
|
//#endregion
|
|
28573
28611
|
//#region src/features/pinia.ts
|
|
28574
28612
|
const pinia = {
|
|
@@ -28743,44 +28781,6 @@ export default router
|
|
|
28743
28781
|
`;
|
|
28744
28782
|
}
|
|
28745
28783
|
|
|
28746
|
-
//#endregion
|
|
28747
|
-
//#region src/features/ruler.ts
|
|
28748
|
-
const ruler = {
|
|
28749
|
-
name: "ruler",
|
|
28750
|
-
apply: async ({ cwd: cwd$1, pkg }) => {
|
|
28751
|
-
pkg.devDependencies = pkg.devDependencies || {};
|
|
28752
|
-
pkg.devDependencies["@intellectronica/ruler"] = dependencies["@intellectronica/ruler"];
|
|
28753
|
-
pkg.scripts = pkg.scripts || {};
|
|
28754
|
-
pkg.scripts["ruler"] = "ruler apply";
|
|
28755
|
-
pkg.scripts["ruler:revert"] = "ruler revert";
|
|
28756
|
-
const rulerDir = join(cwd$1, ".ruler");
|
|
28757
|
-
await mkdir(rulerDir, { recursive: true });
|
|
28758
|
-
await writeFile(join(rulerDir, "ruler.toml"), getRulerToml());
|
|
28759
|
-
await writeFile(join(rulerDir, "AGENTS.md"), getAgentsMd());
|
|
28760
|
-
}
|
|
28761
|
-
};
|
|
28762
|
-
function getRulerToml() {
|
|
28763
|
-
return `# For a complete example, see: https://okigu.com/ruler#complete-example
|
|
28764
|
-
|
|
28765
|
-
# List of agents to configure
|
|
28766
|
-
default_agents = ["copilot", "claude", "trae"]
|
|
28767
|
-
|
|
28768
|
-
[mcp_servers.vuetify]
|
|
28769
|
-
url = "https://mcp.vuetifyjs.com/mcp"
|
|
28770
|
-
|
|
28771
|
-
# https://github.com/vuetifyjs/mcp#authentication
|
|
28772
|
-
# [mcp_servers.vuetify.headers]
|
|
28773
|
-
# Authorization = "Bearer <YOUR_API_KEY>"
|
|
28774
|
-
`;
|
|
28775
|
-
}
|
|
28776
|
-
function getAgentsMd() {
|
|
28777
|
-
return `# Project Rules
|
|
28778
|
-
|
|
28779
|
-
## General
|
|
28780
|
-
- Follow the existing code style and patterns.
|
|
28781
|
-
`;
|
|
28782
|
-
}
|
|
28783
|
-
|
|
28784
28784
|
//#endregion
|
|
28785
28785
|
//#region src/features/vuetify-nuxt-module.ts
|
|
28786
28786
|
const vuetifyNuxtModule = {
|
|
@@ -28821,7 +28821,7 @@ const features = {
|
|
|
28821
28821
|
pinia,
|
|
28822
28822
|
i18n: i18n$1,
|
|
28823
28823
|
eslint,
|
|
28824
|
-
|
|
28824
|
+
mcp,
|
|
28825
28825
|
"vuetify-nuxt-module": vuetifyNuxtModule
|
|
28826
28826
|
};
|
|
28827
28827
|
async function applyFeatures(cwd$1, featureNames, pkg, isTypescript, clientHints) {
|
|
@@ -28946,7 +28946,7 @@ async function prompt(args$2, cwd$1 = process.cwd()) {
|
|
|
28946
28946
|
});
|
|
28947
28947
|
},
|
|
28948
28948
|
features: ({ results }) => {
|
|
28949
|
-
if (args$2.features) return Promise.resolve(args$2.features.filter((f$
|
|
28949
|
+
if (args$2.features) return Promise.resolve(args$2.features.filter((f$6) => f$6 !== "router" && f$6 !== "file-router"));
|
|
28950
28950
|
return (results.type || args$2.type) === "vue" ? Lt({
|
|
28951
28951
|
message: i18n.t("prompts.features.select", { hint: dim("↑/↓ to navigate, space to select, a to toggle all, enter to confirm") }),
|
|
28952
28952
|
options: [
|
|
@@ -28956,9 +28956,9 @@ async function prompt(args$2, cwd$1 = process.cwd()) {
|
|
|
28956
28956
|
hint: i18n.t("prompts.features.eslint.hint")
|
|
28957
28957
|
},
|
|
28958
28958
|
{
|
|
28959
|
-
label: i18n.t("prompts.features.
|
|
28960
|
-
value: "
|
|
28961
|
-
hint: i18n.t("prompts.features.
|
|
28959
|
+
label: i18n.t("prompts.features.mcp.label"),
|
|
28960
|
+
value: "mcp",
|
|
28961
|
+
hint: i18n.t("prompts.features.mcp.hint")
|
|
28962
28962
|
},
|
|
28963
28963
|
{
|
|
28964
28964
|
label: i18n.t("prompts.features.pinia.label"),
|
|
@@ -28971,7 +28971,7 @@ async function prompt(args$2, cwd$1 = process.cwd()) {
|
|
|
28971
28971
|
hint: i18n.t("prompts.features.i18n.hint")
|
|
28972
28972
|
}
|
|
28973
28973
|
],
|
|
28974
|
-
initialValues: ["eslint", "
|
|
28974
|
+
initialValues: ["eslint", "mcp"],
|
|
28975
28975
|
required: false
|
|
28976
28976
|
}) : Lt({
|
|
28977
28977
|
message: i18n.t("prompts.features.select", { hint: dim("↑/↓ to navigate, space to select, a to toggle all, enter to confirm") }),
|
|
@@ -28987,9 +28987,9 @@ async function prompt(args$2, cwd$1 = process.cwd()) {
|
|
|
28987
28987
|
hint: i18n.t("prompts.features.vuetify_nuxt_module.hint")
|
|
28988
28988
|
},
|
|
28989
28989
|
{
|
|
28990
|
-
label: i18n.t("prompts.features.
|
|
28991
|
-
value: "
|
|
28992
|
-
hint: i18n.t("prompts.features.
|
|
28990
|
+
label: i18n.t("prompts.features.mcp.label"),
|
|
28991
|
+
value: "mcp",
|
|
28992
|
+
hint: i18n.t("prompts.features.mcp.hint")
|
|
28993
28993
|
},
|
|
28994
28994
|
{
|
|
28995
28995
|
label: i18n.t("prompts.features.pinia.label"),
|
|
@@ -29005,7 +29005,7 @@ async function prompt(args$2, cwd$1 = process.cwd()) {
|
|
|
29005
29005
|
initialValues: [
|
|
29006
29006
|
"eslint",
|
|
29007
29007
|
"vuetify-nuxt-module",
|
|
29008
|
-
"
|
|
29008
|
+
"mcp"
|
|
29009
29009
|
],
|
|
29010
29010
|
required: false
|
|
29011
29011
|
});
|
|
@@ -29066,7 +29066,7 @@ async function prompt(args$2, cwd$1 = process.cwd()) {
|
|
|
29066
29066
|
Pt(i18n.t("prompts.cancel"));
|
|
29067
29067
|
process.exit(0);
|
|
29068
29068
|
} });
|
|
29069
|
-
const features$1 = [...options$1.features, options$1.router].filter((f$
|
|
29069
|
+
const features$1 = [...options$1.features, options$1.router].filter((f$6) => f$6 && f$6 !== "none");
|
|
29070
29070
|
return {
|
|
29071
29071
|
...options$1,
|
|
29072
29072
|
features: features$1
|