soonjs 0.0.16 → 0.0.18
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.js +372 -369
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,16 +4,16 @@ var Ut = (e, t, r) => yP(e, typeof t != "symbol" ? t + "" : t, r);
|
|
|
4
4
|
import pl, { PassThrough as gP } from "stream";
|
|
5
5
|
import hl, { format as DP, inspect as Gf } from "util";
|
|
6
6
|
import { randomInt as cE, createHash as EP } from "crypto";
|
|
7
|
-
import
|
|
7
|
+
import Cs, { existsSync as cs, rmSync as fE, realpathSync as bP, statSync as pE, symlinkSync as SP, mkdirSync as vP, copyFileSync as Im, watchFile as TP, exists as AP, mkdir as CP, writeFile as PP } from "fs";
|
|
8
8
|
import * as Lu from "path";
|
|
9
9
|
import Oe, { dirname as _P } from "path";
|
|
10
|
-
import
|
|
10
|
+
import js from "os";
|
|
11
11
|
import xP from "events";
|
|
12
12
|
import { createRequire as hE, builtinModules as ah } from "module";
|
|
13
13
|
import FP, { fileURLToPath as it, pathToFileURL as qi, URL as vt } from "url";
|
|
14
14
|
import en from "process";
|
|
15
15
|
import Ua from "tty";
|
|
16
|
-
import
|
|
16
|
+
import Ps from "fs/promises";
|
|
17
17
|
import vr from "assert";
|
|
18
18
|
import wP from "v8";
|
|
19
19
|
var nn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -145,7 +145,7 @@ function ml(e, t = {}) {
|
|
|
145
145
|
if (s.tryConsume("*")) {
|
|
146
146
|
i.push({
|
|
147
147
|
name: String(a++),
|
|
148
|
-
pattern: `(?:(?!${
|
|
148
|
+
pattern: `(?:(?!${_s(n)}).)*`,
|
|
149
149
|
modifier: "*",
|
|
150
150
|
separator: n
|
|
151
151
|
});
|
|
@@ -251,17 +251,17 @@ function $P(e, t = {}) {
|
|
|
251
251
|
return { path: p, index: h, params: d };
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function _s(e) {
|
|
255
255
|
return e.replace(/([.+*?^${}()[\]|/\\])/g, "\\$1");
|
|
256
256
|
}
|
|
257
257
|
function UP(e, t) {
|
|
258
|
-
const r =
|
|
258
|
+
const r = _s(e);
|
|
259
259
|
return t ? `(?:${r})+(?!${r})` : r;
|
|
260
260
|
}
|
|
261
261
|
function uh(e, t) {
|
|
262
262
|
if (!e)
|
|
263
|
-
return
|
|
264
|
-
const r = new RegExp(`(?:(?!${
|
|
263
|
+
return _s;
|
|
264
|
+
const r = new RegExp(`(?:(?!${_s(t)}).)+|(.)`, "g");
|
|
265
265
|
return (n) => n.replace(r, UP);
|
|
266
266
|
}
|
|
267
267
|
function dE(e) {
|
|
@@ -270,10 +270,10 @@ function dE(e) {
|
|
|
270
270
|
function mE(e, t, r) {
|
|
271
271
|
const { trailing: n = !0, loose: i = !0, start: s = !0, end: a = !0, strict: o = !1 } = r, u = dE(r), l = uh(i, e.delimiter), c = yE(e, l, t, u, o);
|
|
272
272
|
let f = s ? "^" : "";
|
|
273
|
-
return f += c.join(""), n && (f += `(?:${l(e.delimiter)})?`), f += a ? "$" : `(?=${
|
|
273
|
+
return f += c.join(""), n && (f += `(?:${l(e.delimiter)})?`), f += a ? "$" : `(?=${_s(e.delimiter)}|$)`, new RegExp(f, u);
|
|
274
274
|
}
|
|
275
275
|
function yE(e, t, r, n, i) {
|
|
276
|
-
const s = `(?:(?!${
|
|
276
|
+
const s = `(?:(?!${_s(e.delimiter)}).)+?`;
|
|
277
277
|
let a = "", o = !0;
|
|
278
278
|
return e.tokens.map((u, l) => {
|
|
279
279
|
if (typeof u == "string")
|
|
@@ -323,15 +323,15 @@ function Ru(e, t) {
|
|
|
323
323
|
return r;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Xs(e) {
|
|
327
327
|
let t = e.constructor;
|
|
328
328
|
return t !== void 0 && (t = t[DE], t === null && (t = void 0)), t !== void 0 ? t : gl;
|
|
329
329
|
}
|
|
330
330
|
function KP(e) {
|
|
331
331
|
return e instanceof gl;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
|
|
333
|
+
function xs(e) {
|
|
334
|
+
xs.log ? xs.log(e) : setTimeout(() => {
|
|
335
335
|
throw e;
|
|
336
336
|
});
|
|
337
337
|
}
|
|
@@ -340,7 +340,7 @@ function hu(e) {
|
|
|
340
340
|
try {
|
|
341
341
|
e();
|
|
342
342
|
} catch (t) {
|
|
343
|
-
|
|
343
|
+
xs(t);
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
346
|
}
|
|
@@ -355,7 +355,7 @@ function EE(e) {
|
|
|
355
355
|
r && r.call(t);
|
|
356
356
|
}
|
|
357
357
|
} catch (r) {
|
|
358
|
-
|
|
358
|
+
xs(r);
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
function Xf(e) {
|
|
@@ -387,7 +387,7 @@ function bE(e, t, r) {
|
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
389
|
} catch (i) {
|
|
390
|
-
|
|
390
|
+
xs(i);
|
|
391
391
|
}
|
|
392
392
|
e._state === "closed" ? EE(e) : e._state === "running" && (e._state = "ready");
|
|
393
393
|
}
|
|
@@ -478,7 +478,7 @@ let gl = class du {
|
|
|
478
478
|
}
|
|
479
479
|
map(t) {
|
|
480
480
|
if (typeof t != "function") throw new TypeError(t + " is not a function");
|
|
481
|
-
let r =
|
|
481
|
+
let r = Xs(this);
|
|
482
482
|
return new r((n) => this.subscribe({
|
|
483
483
|
next(i) {
|
|
484
484
|
try {
|
|
@@ -498,7 +498,7 @@ let gl = class du {
|
|
|
498
498
|
}
|
|
499
499
|
filter(t) {
|
|
500
500
|
if (typeof t != "function") throw new TypeError(t + " is not a function");
|
|
501
|
-
let r =
|
|
501
|
+
let r = Xs(this);
|
|
502
502
|
return new r((n) => this.subscribe({
|
|
503
503
|
next(i) {
|
|
504
504
|
try {
|
|
@@ -518,7 +518,7 @@ let gl = class du {
|
|
|
518
518
|
}
|
|
519
519
|
reduce(t) {
|
|
520
520
|
if (typeof t != "function") throw new TypeError(t + " is not a function");
|
|
521
|
-
let r =
|
|
521
|
+
let r = Xs(this), n = arguments.length > 1, i = !1, a = arguments[1];
|
|
522
522
|
return new r((o) => this.subscribe({
|
|
523
523
|
next(u) {
|
|
524
524
|
let l = !i;
|
|
@@ -545,7 +545,7 @@ let gl = class du {
|
|
|
545
545
|
return await this.forEach((r) => t.push(r)), t;
|
|
546
546
|
}
|
|
547
547
|
concat(...t) {
|
|
548
|
-
let r =
|
|
548
|
+
let r = Xs(this);
|
|
549
549
|
return new r((n) => {
|
|
550
550
|
let i, s = 0;
|
|
551
551
|
function a(o) {
|
|
@@ -568,7 +568,7 @@ let gl = class du {
|
|
|
568
568
|
}
|
|
569
569
|
flatMap(t) {
|
|
570
570
|
if (typeof t != "function") throw new TypeError(t + " is not a function");
|
|
571
|
-
let r =
|
|
571
|
+
let r = Xs(this);
|
|
572
572
|
return new r((n) => {
|
|
573
573
|
let i = [], s = this.subscribe({
|
|
574
574
|
next(o) {
|
|
@@ -661,7 +661,7 @@ yl.Observable = gl;
|
|
|
661
661
|
Object.defineProperty(gl, Symbol("extensions"), {
|
|
662
662
|
value: {
|
|
663
663
|
symbol: Yf,
|
|
664
|
-
hostReportError:
|
|
664
|
+
hostReportError: xs
|
|
665
665
|
},
|
|
666
666
|
configurable: !0
|
|
667
667
|
});
|
|
@@ -735,7 +735,7 @@ var XP = Error, JP = EvalError, zP = RangeError, QP = ReferenceError, vE = Synta
|
|
|
735
735
|
l.prototype = r.prototype, i.prototype = new l(), l.prototype = null;
|
|
736
736
|
}
|
|
737
737
|
return i;
|
|
738
|
-
}, p_ = f_, ch = Function.prototype.bind || p_, h_ = Function.prototype.call, d_ = Object.prototype.hasOwnProperty, m_ = ch, y_ = m_.call(h_, d_), tt, g_ = XP, D_ = JP, E_ = zP, b_ = QP,
|
|
738
|
+
}, p_ = f_, ch = Function.prototype.bind || p_, h_ = Function.prototype.call, d_ = Object.prototype.hasOwnProperty, m_ = ch, y_ = m_.call(h_, d_), tt, g_ = XP, D_ = JP, E_ = zP, b_ = QP, Fs = vE, bs = Ga, S_ = ZP, TE = Function, Pc = function(e) {
|
|
739
739
|
try {
|
|
740
740
|
return TE('"use strict"; return (' + e + ").constructor;")();
|
|
741
741
|
} catch {
|
|
@@ -748,7 +748,7 @@ if (Mi)
|
|
|
748
748
|
Mi = null;
|
|
749
749
|
}
|
|
750
750
|
var _c = function() {
|
|
751
|
-
throw new
|
|
751
|
+
throw new bs();
|
|
752
752
|
}, v_ = Mi ? function() {
|
|
753
753
|
try {
|
|
754
754
|
return arguments.callee, _c;
|
|
@@ -761,17 +761,17 @@ var _c = function() {
|
|
|
761
761
|
}
|
|
762
762
|
}() : _c, is = r_(), T_ = i_(), Rt = Object.getPrototypeOf || (T_ ? function(e) {
|
|
763
763
|
return e.__proto__;
|
|
764
|
-
} : null),
|
|
764
|
+
} : null), fs = {}, A_ = typeof Uint8Array > "u" || !Rt ? tt : Rt(Uint8Array), ji = {
|
|
765
765
|
__proto__: null,
|
|
766
766
|
"%AggregateError%": typeof AggregateError > "u" ? tt : AggregateError,
|
|
767
767
|
"%Array%": Array,
|
|
768
768
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? tt : ArrayBuffer,
|
|
769
769
|
"%ArrayIteratorPrototype%": is && Rt ? Rt([][Symbol.iterator]()) : tt,
|
|
770
770
|
"%AsyncFromSyncIteratorPrototype%": tt,
|
|
771
|
-
"%AsyncFunction%":
|
|
772
|
-
"%AsyncGenerator%":
|
|
773
|
-
"%AsyncGeneratorFunction%":
|
|
774
|
-
"%AsyncIteratorPrototype%":
|
|
771
|
+
"%AsyncFunction%": fs,
|
|
772
|
+
"%AsyncGenerator%": fs,
|
|
773
|
+
"%AsyncGeneratorFunction%": fs,
|
|
774
|
+
"%AsyncIteratorPrototype%": fs,
|
|
775
775
|
"%Atomics%": typeof Atomics > "u" ? tt : Atomics,
|
|
776
776
|
"%BigInt%": typeof BigInt > "u" ? tt : BigInt,
|
|
777
777
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? tt : BigInt64Array,
|
|
@@ -791,7 +791,7 @@ var _c = function() {
|
|
|
791
791
|
"%Float64Array%": typeof Float64Array > "u" ? tt : Float64Array,
|
|
792
792
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? tt : FinalizationRegistry,
|
|
793
793
|
"%Function%": TE,
|
|
794
|
-
"%GeneratorFunction%":
|
|
794
|
+
"%GeneratorFunction%": fs,
|
|
795
795
|
"%Int8Array%": typeof Int8Array > "u" ? tt : Int8Array,
|
|
796
796
|
"%Int16Array%": typeof Int16Array > "u" ? tt : Int16Array,
|
|
797
797
|
"%Int32Array%": typeof Int32Array > "u" ? tt : Int32Array,
|
|
@@ -818,10 +818,10 @@ var _c = function() {
|
|
|
818
818
|
"%String%": String,
|
|
819
819
|
"%StringIteratorPrototype%": is && Rt ? Rt(""[Symbol.iterator]()) : tt,
|
|
820
820
|
"%Symbol%": is ? Symbol : tt,
|
|
821
|
-
"%SyntaxError%":
|
|
821
|
+
"%SyntaxError%": Fs,
|
|
822
822
|
"%ThrowTypeError%": v_,
|
|
823
823
|
"%TypedArray%": A_,
|
|
824
|
-
"%TypeError%":
|
|
824
|
+
"%TypeError%": bs,
|
|
825
825
|
"%Uint8Array%": typeof Uint8Array > "u" ? tt : Uint8Array,
|
|
826
826
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? tt : Uint8ClampedArray,
|
|
827
827
|
"%Uint16Array%": typeof Uint16Array > "u" ? tt : Uint16Array,
|
|
@@ -910,9 +910,9 @@ var P_ = function e(t) {
|
|
|
910
910
|
}, Ya = ch, Mu = y_, __ = Ya.call(Function.call, Array.prototype.concat), x_ = Ya.call(Function.apply, Array.prototype.splice), km = Ya.call(Function.call, String.prototype.replace), ju = Ya.call(Function.call, String.prototype.slice), F_ = Ya.call(Function.call, RegExp.prototype.exec), w_ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, I_ = /\\(\\)?/g, O_ = function(t) {
|
|
911
911
|
var r = ju(t, 0, 1), n = ju(t, -1);
|
|
912
912
|
if (r === "%" && n !== "%")
|
|
913
|
-
throw new
|
|
913
|
+
throw new Fs("invalid intrinsic syntax, expected closing `%`");
|
|
914
914
|
if (n === "%" && r !== "%")
|
|
915
|
-
throw new
|
|
915
|
+
throw new Fs("invalid intrinsic syntax, expected opening `%`");
|
|
916
916
|
var i = [];
|
|
917
917
|
return km(t, w_, function(s, a, o, u) {
|
|
918
918
|
i[i.length] = o ? km(u, I_, "$1") : a || s;
|
|
@@ -921,34 +921,34 @@ var P_ = function e(t) {
|
|
|
921
921
|
var n = t, i;
|
|
922
922
|
if (Mu(Bm, n) && (i = Bm[n], n = "%" + i[0] + "%"), Mu(ji, n)) {
|
|
923
923
|
var s = ji[n];
|
|
924
|
-
if (s ===
|
|
925
|
-
throw new
|
|
924
|
+
if (s === fs && (s = P_(n)), typeof s > "u" && !r)
|
|
925
|
+
throw new bs("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
926
926
|
return {
|
|
927
927
|
alias: i,
|
|
928
928
|
name: n,
|
|
929
929
|
value: s
|
|
930
930
|
};
|
|
931
931
|
}
|
|
932
|
-
throw new
|
|
933
|
-
},
|
|
932
|
+
throw new Fs("intrinsic " + t + " does not exist!");
|
|
933
|
+
}, $s = function(t, r) {
|
|
934
934
|
if (typeof t != "string" || t.length === 0)
|
|
935
|
-
throw new
|
|
935
|
+
throw new bs("intrinsic name must be a non-empty string");
|
|
936
936
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
937
|
-
throw new
|
|
937
|
+
throw new bs('"allowMissing" argument must be a boolean');
|
|
938
938
|
if (F_(/^%?[^%]*%?$/, t) === null)
|
|
939
|
-
throw new
|
|
939
|
+
throw new Fs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
940
940
|
var n = O_(t), i = n.length > 0 ? n[0] : "", s = N_("%" + i + "%", r), a = s.name, o = s.value, u = !1, l = s.alias;
|
|
941
941
|
l && (i = l[0], x_(n, __([0, 1], l)));
|
|
942
942
|
for (var c = 1, f = !0; c < n.length; c += 1) {
|
|
943
943
|
var p = n[c], h = ju(p, 0, 1), d = ju(p, -1);
|
|
944
944
|
if ((h === '"' || h === "'" || h === "`" || d === '"' || d === "'" || d === "`") && h !== d)
|
|
945
|
-
throw new
|
|
945
|
+
throw new Fs("property names with quotes must have matching quotes");
|
|
946
946
|
if ((p === "constructor" || !f) && (u = !0), i += "." + p, a = "%" + i + "%", Mu(ji, a))
|
|
947
947
|
o = ji[a];
|
|
948
948
|
else if (o != null) {
|
|
949
949
|
if (!(p in o)) {
|
|
950
950
|
if (!r)
|
|
951
|
-
throw new
|
|
951
|
+
throw new bs("base intrinsic for " + t + " exists, but the property is not available.");
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
954
|
if (Mi && c + 1 >= n.length) {
|
|
@@ -964,7 +964,7 @@ var P_ = function e(t) {
|
|
|
964
964
|
function fh() {
|
|
965
965
|
if (Lm) return xc;
|
|
966
966
|
Lm = 1;
|
|
967
|
-
var e =
|
|
967
|
+
var e = $s, t = e("%Object.defineProperty%", !0) || !1;
|
|
968
968
|
if (t)
|
|
969
969
|
try {
|
|
970
970
|
t({}, "a", { value: 1 });
|
|
@@ -973,7 +973,7 @@ function fh() {
|
|
|
973
973
|
}
|
|
974
974
|
return xc = t, xc;
|
|
975
975
|
}
|
|
976
|
-
var B_ =
|
|
976
|
+
var B_ = $s, mu = B_("%Object.getOwnPropertyDescriptor%", !0);
|
|
977
977
|
if (mu)
|
|
978
978
|
try {
|
|
979
979
|
mu([], "length");
|
|
@@ -1017,7 +1017,7 @@ PE.hasArrayLengthDefineBug = function() {
|
|
|
1017
1017
|
return !0;
|
|
1018
1018
|
}
|
|
1019
1019
|
};
|
|
1020
|
-
var R_ = PE, M_ =
|
|
1020
|
+
var R_ = PE, M_ = $s, jm = L_, j_ = R_(), $m = CE, Um = Ga, $_ = M_("%Math.floor%"), U_ = function(t, r) {
|
|
1021
1021
|
if (typeof t != "function")
|
|
1022
1022
|
throw new Um("`fn` is not a function");
|
|
1023
1023
|
if (typeof r != "number" || r < 0 || r > 4294967295 || $_(r) !== r)
|
|
@@ -1042,7 +1042,7 @@ var R_ = PE, M_ = Us, jm = L_, j_ = R_(), $m = CE, Um = Ga, $_ = M_("%Math.floor
|
|
|
1042
1042
|
)), t;
|
|
1043
1043
|
};
|
|
1044
1044
|
(function(e) {
|
|
1045
|
-
var t = ch, r =
|
|
1045
|
+
var t = ch, r = $s, n = U_, i = Ga, s = r("%Function.prototype.apply%"), a = r("%Function.prototype.call%"), o = r("%Reflect.apply%", !0) || t.call(a, s), u = fh(), l = r("%Math.max%");
|
|
1046
1046
|
e.exports = function(p) {
|
|
1047
1047
|
if (typeof p != "function")
|
|
1048
1048
|
throw new i("a function is required");
|
|
@@ -1058,10 +1058,10 @@ var R_ = PE, M_ = Us, jm = L_, j_ = R_(), $m = CE, Um = Ga, $_ = M_("%Math.floor
|
|
|
1058
1058
|
};
|
|
1059
1059
|
u ? u(e.exports, "apply", { value: c }) : e.exports.apply = c;
|
|
1060
1060
|
})(AE);
|
|
1061
|
-
var V_ = AE.exports, _E =
|
|
1061
|
+
var V_ = AE.exports, _E = $s, xE = V_, H_ = xE(_E("String.prototype.indexOf")), q_ = function(t, r) {
|
|
1062
1062
|
var n = _E(t, !!r);
|
|
1063
1063
|
return typeof n == "function" && H_(t, ".prototype.") > -1 ? xE(n) : n;
|
|
1064
|
-
}, K_ = hl.inspect, ph = typeof Map == "function" && Map.prototype, Fc = Object.getOwnPropertyDescriptor && ph ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, $u = ph && Fc && typeof Fc.get == "function" ? Fc.get : null, Vm = ph && Map.prototype.forEach, hh = typeof Set == "function" && Set.prototype, wc = Object.getOwnPropertyDescriptor && hh ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Uu = hh && wc && typeof wc.get == "function" ? wc.get : null, Hm = hh && Set.prototype.forEach, W_ = typeof WeakMap == "function" && WeakMap.prototype, Ca = W_ ? WeakMap.prototype.has : null, G_ = typeof WeakSet == "function" && WeakSet.prototype, Pa = G_ ? WeakSet.prototype.has : null, Y_ = typeof WeakRef == "function" && WeakRef.prototype, qm = Y_ ? WeakRef.prototype.deref : null, X_ = Boolean.prototype.valueOf, J_ = Object.prototype.toString, z_ = Function.prototype.toString, Q_ = String.prototype.match, dh = String.prototype.slice, Wn = String.prototype.replace, Z_ = String.prototype.toUpperCase, Km = String.prototype.toLowerCase, FE = RegExp.prototype.test, Wm = Array.prototype.concat, Zr = Array.prototype.join, ex = Array.prototype.slice, Gm = Math.floor, zf = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ic = Object.getOwnPropertySymbols, Qf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null,
|
|
1064
|
+
}, K_ = hl.inspect, ph = typeof Map == "function" && Map.prototype, Fc = Object.getOwnPropertyDescriptor && ph ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, $u = ph && Fc && typeof Fc.get == "function" ? Fc.get : null, Vm = ph && Map.prototype.forEach, hh = typeof Set == "function" && Set.prototype, wc = Object.getOwnPropertyDescriptor && hh ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Uu = hh && wc && typeof wc.get == "function" ? wc.get : null, Hm = hh && Set.prototype.forEach, W_ = typeof WeakMap == "function" && WeakMap.prototype, Ca = W_ ? WeakMap.prototype.has : null, G_ = typeof WeakSet == "function" && WeakSet.prototype, Pa = G_ ? WeakSet.prototype.has : null, Y_ = typeof WeakRef == "function" && WeakRef.prototype, qm = Y_ ? WeakRef.prototype.deref : null, X_ = Boolean.prototype.valueOf, J_ = Object.prototype.toString, z_ = Function.prototype.toString, Q_ = String.prototype.match, dh = String.prototype.slice, Wn = String.prototype.replace, Z_ = String.prototype.toUpperCase, Km = String.prototype.toLowerCase, FE = RegExp.prototype.test, Wm = Array.prototype.concat, Zr = Array.prototype.join, ex = Array.prototype.slice, Gm = Math.floor, zf = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ic = Object.getOwnPropertySymbols, Qf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ws = typeof Symbol == "function" && typeof Symbol.iterator == "object", Wt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ws || !0) ? Symbol.toStringTag : null, wE = Object.prototype.propertyIsEnumerable, Ym = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
1065
1065
|
return e.__proto__;
|
|
1066
1066
|
} : null);
|
|
1067
1067
|
function Xm(e, t) {
|
|
@@ -1131,8 +1131,8 @@ var Zf = K_, Jm = Zf.custom, zm = OE(Jm) ? Jm : null, tx = function e(t, r, n, i
|
|
|
1131
1131
|
return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (d.length > 0 ? " { " + Zr.call(d, ", ") + " }" : "");
|
|
1132
1132
|
}
|
|
1133
1133
|
if (OE(t)) {
|
|
1134
|
-
var m =
|
|
1135
|
-
return typeof t == "object" && !
|
|
1134
|
+
var m = ws ? Wn.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Qf.call(t);
|
|
1135
|
+
return typeof t == "object" && !ws ? Js(m) : m;
|
|
1136
1136
|
}
|
|
1137
1137
|
if (yx(t)) {
|
|
1138
1138
|
for (var g = "<" + Km.call(String(t.nodeName)), D = t.attributes || [], y = 0; y < D.length; y++)
|
|
@@ -1174,13 +1174,13 @@ var Zf = K_, Jm = Zf.custom, zm = OE(Jm) ? Jm : null, tx = function e(t, r, n, i
|
|
|
1174
1174
|
if (hx(t))
|
|
1175
1175
|
return Oc("WeakRef");
|
|
1176
1176
|
if (ax(t))
|
|
1177
|
-
return
|
|
1177
|
+
return Js(p(Number(t)));
|
|
1178
1178
|
if (ux(t))
|
|
1179
|
-
return
|
|
1179
|
+
return Js(p(zf.call(t)));
|
|
1180
1180
|
if (ox(t))
|
|
1181
|
-
return
|
|
1181
|
+
return Js(X_.call(t));
|
|
1182
1182
|
if (sx(t))
|
|
1183
|
-
return
|
|
1183
|
+
return Js(p(String(t)));
|
|
1184
1184
|
if (typeof window < "u" && t === window)
|
|
1185
1185
|
return "{ [object Window] }";
|
|
1186
1186
|
if (typeof globalThis < "u" && t === globalThis || typeof nn < "u" && t === nn)
|
|
@@ -1220,7 +1220,7 @@ function ox(e) {
|
|
|
1220
1220
|
return ni(e) === "[object Boolean]" && (!Wt || !(typeof e == "object" && Wt in e));
|
|
1221
1221
|
}
|
|
1222
1222
|
function OE(e) {
|
|
1223
|
-
if (
|
|
1223
|
+
if (ws)
|
|
1224
1224
|
return e && typeof e == "object" && e instanceof Symbol;
|
|
1225
1225
|
if (typeof e == "symbol")
|
|
1226
1226
|
return !0;
|
|
@@ -1354,7 +1354,7 @@ function gx(e) {
|
|
|
1354
1354
|
}[t];
|
|
1355
1355
|
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") + Z_.call(t.toString(16));
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function Js(e) {
|
|
1358
1358
|
return "Object(" + e + ")";
|
|
1359
1359
|
}
|
|
1360
1360
|
function Oc(e) {
|
|
@@ -1400,19 +1400,19 @@ function Ao(e, t) {
|
|
|
1400
1400
|
n[i] = Hn(e, i) ? t(e[i], e) : "";
|
|
1401
1401
|
}
|
|
1402
1402
|
var s = typeof Ic == "function" ? Ic(e) : [], a;
|
|
1403
|
-
if (
|
|
1403
|
+
if (ws) {
|
|
1404
1404
|
a = {};
|
|
1405
1405
|
for (var o = 0; o < s.length; o++)
|
|
1406
1406
|
a["$" + s[o]] = s[o];
|
|
1407
1407
|
}
|
|
1408
1408
|
for (var u in e)
|
|
1409
|
-
Hn(e, u) && (r && String(Number(u)) === u && u < e.length ||
|
|
1409
|
+
Hn(e, u) && (r && String(Number(u)) === u && u < e.length || ws && a["$" + u] instanceof Symbol || (FE.call(/[^\w$]/, u) ? n.push(t(u, e) + ": " + t(e[u], e)) : n.push(u + ": " + t(e[u], e))));
|
|
1410
1410
|
if (typeof Ic == "function")
|
|
1411
1411
|
for (var l = 0; l < s.length; l++)
|
|
1412
1412
|
wE.call(e, s[l]) && n.push("[" + t(s[l]) + "]: " + t(e[s[l]], e));
|
|
1413
1413
|
return n;
|
|
1414
1414
|
}
|
|
1415
|
-
var kE =
|
|
1415
|
+
var kE = $s, Us = q_, bx = tx, Sx = Ga, Co = kE("%WeakMap%", !0), Po = kE("%Map%", !0), vx = Us("WeakMap.prototype.get", !0), Tx = Us("WeakMap.prototype.set", !0), Ax = Us("WeakMap.prototype.has", !0), Cx = Us("Map.prototype.get", !0), Px = Us("Map.prototype.set", !0), _x = Us("Map.prototype.has", !0), mh = function(e, t) {
|
|
1416
1416
|
for (var r = e, n; (n = r.next) !== null; r = n)
|
|
1417
1417
|
if (n.key === t)
|
|
1418
1418
|
return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -1778,7 +1778,7 @@ var kE = Us, Vs = q_, bx = tx, Sx = Ga, Co = kE("%WeakMap%", !0), Po = kE("%Map%
|
|
|
1778
1778
|
}
|
|
1779
1779
|
var p = a.join(n.delimiter), h = n.addQueryPrefix === !0 ? "?" : "";
|
|
1780
1780
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), p.length > 0 ? h + p : "";
|
|
1781
|
-
},
|
|
1781
|
+
}, Is = RE, rp = Object.prototype.hasOwnProperty, Qx = Array.isArray, At = {
|
|
1782
1782
|
allowDots: !1,
|
|
1783
1783
|
allowEmptyArrays: !1,
|
|
1784
1784
|
allowPrototypes: !1,
|
|
@@ -1788,7 +1788,7 @@ var kE = Us, Vs = q_, bx = tx, Sx = Ga, Co = kE("%WeakMap%", !0), Po = kE("%Map%
|
|
|
1788
1788
|
charsetSentinel: !1,
|
|
1789
1789
|
comma: !1,
|
|
1790
1790
|
decodeDotInKeys: !1,
|
|
1791
|
-
decoder:
|
|
1791
|
+
decoder: Is.decode,
|
|
1792
1792
|
delimiter: "&",
|
|
1793
1793
|
depth: 5,
|
|
1794
1794
|
duplicates: "combine",
|
|
@@ -1815,14 +1815,14 @@ var kE = Us, Vs = q_, bx = tx, Sx = Ga, Co = kE("%WeakMap%", !0), Po = kE("%Map%
|
|
|
1815
1815
|
for (u = 0; u < a.length; ++u)
|
|
1816
1816
|
if (u !== o) {
|
|
1817
1817
|
var c = a[u], f = c.indexOf("]="), p = f === -1 ? c.indexOf("=") : f + 1, h, d;
|
|
1818
|
-
p === -1 ? (h = r.decoder(c, At.decoder, l, "key"), d = r.strictNullHandling ? null : "") : (h = r.decoder(c.slice(0, p), At.decoder, l, "key"), d =
|
|
1818
|
+
p === -1 ? (h = r.decoder(c, At.decoder, l, "key"), d = r.strictNullHandling ? null : "") : (h = r.decoder(c.slice(0, p), At.decoder, l, "key"), d = Is.maybeMap(
|
|
1819
1819
|
UE(c.slice(p + 1), r),
|
|
1820
1820
|
function(g) {
|
|
1821
1821
|
return r.decoder(g, At.decoder, l, "value");
|
|
1822
1822
|
}
|
|
1823
1823
|
)), d && r.interpretNumericEntities && l === "iso-8859-1" && (d = Zx(d)), c.indexOf("[]=") > -1 && (d = Qx(d) ? [d] : d);
|
|
1824
1824
|
var m = rp.call(n, h);
|
|
1825
|
-
m && r.duplicates === "combine" ? n[h] =
|
|
1825
|
+
m && r.duplicates === "combine" ? n[h] = Is.combine(n[h], d) : (!m || r.duplicates === "last") && (n[h] = d);
|
|
1826
1826
|
}
|
|
1827
1827
|
return n;
|
|
1828
1828
|
}, nF = function(e, t, r, n) {
|
|
@@ -1884,7 +1884,7 @@ var kE = Us, Vs = q_, bx = tx, Sx = Ga, Co = kE("%WeakMap%", !0), Po = kE("%Map%
|
|
|
1884
1884
|
comma: typeof t.comma == "boolean" ? t.comma : At.comma,
|
|
1885
1885
|
decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : At.decodeDotInKeys,
|
|
1886
1886
|
decoder: typeof t.decoder == "function" ? t.decoder : At.decoder,
|
|
1887
|
-
delimiter: typeof t.delimiter == "string" ||
|
|
1887
|
+
delimiter: typeof t.delimiter == "string" || Is.isRegExp(t.delimiter) ? t.delimiter : At.delimiter,
|
|
1888
1888
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1889
1889
|
depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : At.depth,
|
|
1890
1890
|
duplicates: n,
|
|
@@ -1902,9 +1902,9 @@ var kE = Us, Vs = q_, bx = tx, Sx = Ga, Co = kE("%WeakMap%", !0), Po = kE("%Map%
|
|
|
1902
1902
|
return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1903
1903
|
for (var n = typeof e == "string" ? rF(e, r) : e, i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = Object.keys(n), a = 0; a < s.length; ++a) {
|
|
1904
1904
|
var o = s[a], u = iF(o, n[o], r, typeof e == "string");
|
|
1905
|
-
i =
|
|
1905
|
+
i = Is.merge(i, u, r);
|
|
1906
1906
|
}
|
|
1907
|
-
return r.allowSparse === !0 ? i :
|
|
1907
|
+
return r.allowSparse === !0 ? i : Is.compact(i);
|
|
1908
1908
|
}, oF = zx, uF = aF, lF = yh, cF = {
|
|
1909
1909
|
formats: lF,
|
|
1910
1910
|
parse: uF,
|
|
@@ -1951,13 +1951,13 @@ function gh({ workerId: e, isFixedLength: t = !1, prefix: r = "" } = {}) {
|
|
|
1951
1951
|
return m > l && g(), d + (m++).toString(36);
|
|
1952
1952
|
};
|
|
1953
1953
|
}
|
|
1954
|
-
var qt = {}, St = {},
|
|
1955
|
-
Object.defineProperty(
|
|
1956
|
-
|
|
1954
|
+
var qt = {}, St = {}, Os = {};
|
|
1955
|
+
Object.defineProperty(Os, "__esModule", { value: !0 });
|
|
1956
|
+
Os.splitWhen = Os.flatten = void 0;
|
|
1957
1957
|
function dF(e) {
|
|
1958
1958
|
return e.reduce((t, r) => [].concat(t, r), []);
|
|
1959
1959
|
}
|
|
1960
|
-
|
|
1960
|
+
Os.flatten = dF;
|
|
1961
1961
|
function mF(e, t) {
|
|
1962
1962
|
const r = [[]];
|
|
1963
1963
|
let n = 0;
|
|
@@ -1965,7 +1965,7 @@ function mF(e, t) {
|
|
|
1965
1965
|
t(i) ? (n++, r[n] = []) : r[n].push(i);
|
|
1966
1966
|
return r;
|
|
1967
1967
|
}
|
|
1968
|
-
|
|
1968
|
+
Os.splitWhen = mF;
|
|
1969
1969
|
var Dl = {};
|
|
1970
1970
|
Object.defineProperty(Dl, "__esModule", { value: !0 });
|
|
1971
1971
|
Dl.isEnoentCodeError = void 0;
|
|
@@ -1988,7 +1988,7 @@ El.createDirentFromStats = DF;
|
|
|
1988
1988
|
var wt = {};
|
|
1989
1989
|
Object.defineProperty(wt, "__esModule", { value: !0 });
|
|
1990
1990
|
wt.convertPosixPathToPattern = wt.convertWindowsPathToPattern = wt.convertPathToPattern = wt.escapePosixPath = wt.escapeWindowsPath = wt.escape = wt.removeLeadingDotSegment = wt.makeAbsolute = wt.unixify = void 0;
|
|
1991
|
-
const EF =
|
|
1991
|
+
const EF = js, bF = Oe, VE = EF.platform() === "win32", SF = 2, vF = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g, TF = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g, AF = /^\\\\([.?])/, CF = /\\(?![!()+@[\]{}])/g;
|
|
1992
1992
|
function PF(e) {
|
|
1993
1993
|
return e.replace(/\\/g, "/");
|
|
1994
1994
|
}
|
|
@@ -2093,7 +2093,7 @@ var wF = FF, KE = { "{": "}", "(": ")", "[": "]" }, IF = function(e) {
|
|
|
2093
2093
|
return !0;
|
|
2094
2094
|
var n = IF;
|
|
2095
2095
|
return r && r.strict === !1 && (n = OF), n(t);
|
|
2096
|
-
}, BF = NF, kF = Oe.posix.dirname, LF =
|
|
2096
|
+
}, BF = NF, kF = Oe.posix.dirname, LF = js.platform() === "win32", Rc = "/", RF = /\\/g, MF = /[\{\[].*[\}\]]$/, jF = /(^|[^\\])([\{\[]|\([^\)]+$)/, $F = /\\([\!\*\?\|\[\]\(\)\{\}])/g, UF = function(t, r) {
|
|
2097
2097
|
var n = Object.assign({ flipBackslashes: !0 }, r);
|
|
2098
2098
|
n.flipBackslashes && LF && t.indexOf(Rc) < 0 && (t = t.replace(RF, Rc)), MF.test(t) && (t += Rc), t += "a";
|
|
2099
2099
|
do
|
|
@@ -2375,11 +2375,11 @@ const sw = zE, cy = bl, aw = (e, t = {}) => {
|
|
|
2375
2375
|
return r(e);
|
|
2376
2376
|
};
|
|
2377
2377
|
var ow = aw;
|
|
2378
|
-
const uw = zE, fy = bh,
|
|
2378
|
+
const uw = zE, fy = bh, ds = bl, Bi = (e = "", t = "", r = !1) => {
|
|
2379
2379
|
const n = [];
|
|
2380
2380
|
if (e = [].concat(e), t = [].concat(t), !t.length) return e;
|
|
2381
2381
|
if (!e.length)
|
|
2382
|
-
return r ?
|
|
2382
|
+
return r ? ds.flatten(t).map((i) => `{${i}}`) : t;
|
|
2383
2383
|
for (const i of e)
|
|
2384
2384
|
if (Array.isArray(i))
|
|
2385
2385
|
for (const s of i)
|
|
@@ -2387,7 +2387,7 @@ const uw = zE, fy = bh, ms = bl, Bi = (e = "", t = "", r = !1) => {
|
|
|
2387
2387
|
else
|
|
2388
2388
|
for (let s of t)
|
|
2389
2389
|
r === !0 && typeof s == "string" && (s = `{${s}}`), n.push(Array.isArray(s) ? Bi(i, s, r) : i + s);
|
|
2390
|
-
return
|
|
2390
|
+
return ds.flatten(n);
|
|
2391
2391
|
}, lw = (e, t = {}) => {
|
|
2392
2392
|
const r = t.rangeLimit === void 0 ? 1e3 : t.rangeLimit, n = (i, s = {}) => {
|
|
2393
2393
|
i.queue = [];
|
|
@@ -2403,14 +2403,14 @@ const uw = zE, fy = bh, ms = bl, Bi = (e = "", t = "", r = !1) => {
|
|
|
2403
2403
|
return;
|
|
2404
2404
|
}
|
|
2405
2405
|
if (i.nodes && i.ranges > 0) {
|
|
2406
|
-
const f =
|
|
2407
|
-
if (
|
|
2406
|
+
const f = ds.reduce(i.nodes);
|
|
2407
|
+
if (ds.exceedsLimit(...f, t.step, r))
|
|
2408
2408
|
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
2409
2409
|
let p = uw(...f, t);
|
|
2410
2410
|
p.length === 0 && (p = fy(i, t)), o.push(Bi(o.pop(), p)), i.nodes = [];
|
|
2411
2411
|
return;
|
|
2412
2412
|
}
|
|
2413
|
-
const u =
|
|
2413
|
+
const u = ds.encloseBrace(i);
|
|
2414
2414
|
let l = i.queue, c = i;
|
|
2415
2415
|
for (; c.type !== "brace" && c.type !== "root" && c.parent; )
|
|
2416
2416
|
c = c.parent, l = c.queue;
|
|
@@ -2432,7 +2432,7 @@ const uw = zE, fy = bh, ms = bl, Bi = (e = "", t = "", r = !1) => {
|
|
|
2432
2432
|
}
|
|
2433
2433
|
return l;
|
|
2434
2434
|
};
|
|
2435
|
-
return
|
|
2435
|
+
return ds.flatten(n(e));
|
|
2436
2436
|
};
|
|
2437
2437
|
var cw = lw, fw = {
|
|
2438
2438
|
MAX_LENGTH: 1e4,
|
|
@@ -3888,20 +3888,20 @@ Al.merge = R2;
|
|
|
3888
3888
|
function Ty(e) {
|
|
3889
3889
|
e.forEach((t) => t.emit("close"));
|
|
3890
3890
|
}
|
|
3891
|
-
var
|
|
3892
|
-
Object.defineProperty(
|
|
3893
|
-
|
|
3891
|
+
var Ns = {};
|
|
3892
|
+
Object.defineProperty(Ns, "__esModule", { value: !0 });
|
|
3893
|
+
Ns.isEmpty = Ns.isString = void 0;
|
|
3894
3894
|
function M2(e) {
|
|
3895
3895
|
return typeof e == "string";
|
|
3896
3896
|
}
|
|
3897
|
-
|
|
3897
|
+
Ns.isString = M2;
|
|
3898
3898
|
function j2(e) {
|
|
3899
3899
|
return e === "";
|
|
3900
3900
|
}
|
|
3901
|
-
|
|
3901
|
+
Ns.isEmpty = j2;
|
|
3902
3902
|
Object.defineProperty(St, "__esModule", { value: !0 });
|
|
3903
3903
|
St.string = St.stream = St.pattern = St.path = St.fs = St.errno = St.array = void 0;
|
|
3904
|
-
const $2 =
|
|
3904
|
+
const $2 = Os;
|
|
3905
3905
|
St.array = $2;
|
|
3906
3906
|
const U2 = Dl;
|
|
3907
3907
|
St.errno = U2;
|
|
@@ -3913,7 +3913,7 @@ const q2 = He;
|
|
|
3913
3913
|
St.pattern = q2;
|
|
3914
3914
|
const K2 = Al;
|
|
3915
3915
|
St.stream = K2;
|
|
3916
|
-
const W2 =
|
|
3916
|
+
const W2 = Ns;
|
|
3917
3917
|
St.string = W2;
|
|
3918
3918
|
Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
3919
3919
|
qt.convertPatternGroupToTask = qt.convertPatternGroupsToTasks = qt.groupPatternsByBaseDirectory = qt.getNegativePatternsAsPositive = qt.getPositivePatterns = qt.convertPatternsToTasks = qt.generate = void 0;
|
|
@@ -4025,7 +4025,7 @@ _l.read = X2;
|
|
|
4025
4025
|
var Ih = {}, yb = {};
|
|
4026
4026
|
(function(e) {
|
|
4027
4027
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
|
|
4028
|
-
const t =
|
|
4028
|
+
const t = Cs;
|
|
4029
4029
|
e.FILE_SYSTEM_ADAPTER = {
|
|
4030
4030
|
lstat: t.lstat,
|
|
4031
4031
|
stat: t.stat,
|
|
@@ -4265,7 +4265,7 @@ Yn.readdir = _b;
|
|
|
4265
4265
|
var Oh = {}, xb = {};
|
|
4266
4266
|
(function(e) {
|
|
4267
4267
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
|
|
4268
|
-
const t =
|
|
4268
|
+
const t = Cs;
|
|
4269
4269
|
e.FILE_SYSTEM_ADAPTER = {
|
|
4270
4270
|
lstat: t.lstat,
|
|
4271
4271
|
stat: t.stat,
|
|
@@ -4784,7 +4784,7 @@ class SO extends EO.default {
|
|
|
4784
4784
|
Fh.default = SO;
|
|
4785
4785
|
var eo = {}, Mh = {}, jh = {}, $h = {};
|
|
4786
4786
|
Object.defineProperty($h, "__esModule", { value: !0 });
|
|
4787
|
-
const
|
|
4787
|
+
const zs = St;
|
|
4788
4788
|
class vO {
|
|
4789
4789
|
constructor(t, r, n) {
|
|
4790
4790
|
this._patterns = t, this._settings = r, this._micromatchOptions = n, this._storage = [], this._fillStorage();
|
|
@@ -4801,17 +4801,17 @@ class vO {
|
|
|
4801
4801
|
}
|
|
4802
4802
|
}
|
|
4803
4803
|
_getPatternSegments(t) {
|
|
4804
|
-
return
|
|
4804
|
+
return zs.pattern.getPatternParts(t, this._micromatchOptions).map((n) => zs.pattern.isDynamicPattern(n, this._settings) ? {
|
|
4805
4805
|
dynamic: !0,
|
|
4806
4806
|
pattern: n,
|
|
4807
|
-
patternRe:
|
|
4807
|
+
patternRe: zs.pattern.makeRe(n, this._micromatchOptions)
|
|
4808
4808
|
} : {
|
|
4809
4809
|
dynamic: !1,
|
|
4810
4810
|
pattern: n
|
|
4811
4811
|
});
|
|
4812
4812
|
}
|
|
4813
4813
|
_splitSegmentsIntoSections(t) {
|
|
4814
|
-
return
|
|
4814
|
+
return zs.array.splitWhen(t, (r) => r.dynamic && zs.pattern.hasGlobStar(r.pattern));
|
|
4815
4815
|
}
|
|
4816
4816
|
}
|
|
4817
4817
|
$h.default = vO;
|
|
@@ -5071,7 +5071,7 @@ Kh.default = JO;
|
|
|
5071
5071
|
var wb = {};
|
|
5072
5072
|
(function(e) {
|
|
5073
5073
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
5074
|
-
const t =
|
|
5074
|
+
const t = Cs, n = Math.max(js.cpus().length, 1);
|
|
5075
5075
|
e.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
5076
5076
|
lstat: t.lstat,
|
|
5077
5077
|
lstatSync: t.lstatSync,
|
|
@@ -5166,6 +5166,8 @@ const Yc = /* @__PURE__ */ dl(Du), eN = `declare module 'soonjs/auto/client' {
|
|
|
5166
5166
|
import type { Context, SoonFetchOptions, Meta } from '.soonjs/node_modules/soonjs';
|
|
5167
5167
|
import { z, ZodType } from 'zod';
|
|
5168
5168
|
|
|
5169
|
+
export { type SoonFetchOptions };
|
|
5170
|
+
|
|
5169
5171
|
type NonUndefined<A> = A extends undefined ? never : A;
|
|
5170
5172
|
type ReturnRealType<T extends (...args: any) => any | Promise<(...args: any) => any>, R = ReturnType<T>> = R extends Promise<infer U> ? U : R;
|
|
5171
5173
|
|
|
@@ -5175,6 +5177,7 @@ const Yc = /* @__PURE__ */ dl(Du), eN = `declare module 'soonjs/auto/client' {
|
|
|
5175
5177
|
* ============================================
|
|
5176
5178
|
*/
|
|
5177
5179
|
$$$apis$$$
|
|
5180
|
+
export { type apis as soonApis }
|
|
5178
5181
|
/**
|
|
5179
5182
|
* 调用服务端 api
|
|
5180
5183
|
*/
|
|
@@ -5287,7 +5290,7 @@ function aue(e) {
|
|
|
5287
5290
|
closeBundle() {
|
|
5288
5291
|
try {
|
|
5289
5292
|
const D = (e == null ? void 0 : e.entryPath) || "./dist/entry.js";
|
|
5290
|
-
e != null && e.removeEntry && t &&
|
|
5293
|
+
e != null && e.removeEntry && t && cs(D) && fE(D);
|
|
5291
5294
|
} catch {
|
|
5292
5295
|
}
|
|
5293
5296
|
},
|
|
@@ -5523,7 +5526,7 @@ var uN = class extends Error {
|
|
|
5523
5526
|
Ut(this, "name", "InvalidDocError");
|
|
5524
5527
|
this.doc = r;
|
|
5525
5528
|
}
|
|
5526
|
-
},
|
|
5529
|
+
}, Bs = uN, Oy = {};
|
|
5527
5530
|
function lN(e, t, r, n) {
|
|
5528
5531
|
const i = [e];
|
|
5529
5532
|
for (; i.length > 0; ) {
|
|
@@ -5535,7 +5538,7 @@ function lN(e, t, r, n) {
|
|
|
5535
5538
|
r && i.push(s, Oy);
|
|
5536
5539
|
const a = Xi(s);
|
|
5537
5540
|
if (!a)
|
|
5538
|
-
throw new
|
|
5541
|
+
throw new Bs(s);
|
|
5539
5542
|
if ((t == null ? void 0 : t(s)) !== !1)
|
|
5540
5543
|
switch (a) {
|
|
5541
5544
|
case _n:
|
|
@@ -5570,7 +5573,7 @@ function lN(e, t, r, n) {
|
|
|
5570
5573
|
case an:
|
|
5571
5574
|
break;
|
|
5572
5575
|
default:
|
|
5573
|
-
throw new
|
|
5576
|
+
throw new Bs(s);
|
|
5574
5577
|
}
|
|
5575
5578
|
}
|
|
5576
5579
|
}
|
|
@@ -5579,7 +5582,7 @@ var Gh = lN, cN = () => {
|
|
|
5579
5582
|
function Yu(e) {
|
|
5580
5583
|
return { type: ii, contents: e };
|
|
5581
5584
|
}
|
|
5582
|
-
function
|
|
5585
|
+
function ks(e, t) {
|
|
5583
5586
|
return { type: si, contents: t, n: e };
|
|
5584
5587
|
}
|
|
5585
5588
|
function Bb(e, t = {}) {
|
|
@@ -5594,13 +5597,13 @@ function Bb(e, t = {}) {
|
|
|
5594
5597
|
};
|
|
5595
5598
|
}
|
|
5596
5599
|
function pN(e) {
|
|
5597
|
-
return
|
|
5600
|
+
return ks(Number.NEGATIVE_INFINITY, e);
|
|
5598
5601
|
}
|
|
5599
5602
|
function hN(e) {
|
|
5600
|
-
return
|
|
5603
|
+
return ks({ type: "root" }, e);
|
|
5601
5604
|
}
|
|
5602
5605
|
function dN(e) {
|
|
5603
|
-
return
|
|
5606
|
+
return ks(-1, e);
|
|
5604
5607
|
}
|
|
5605
5608
|
function mN(e, t) {
|
|
5606
5609
|
return Bb(e[0], { ...t, expandedStates: e });
|
|
@@ -5643,7 +5646,7 @@ function CN(e, t, r) {
|
|
|
5643
5646
|
if (t > 0) {
|
|
5644
5647
|
for (let i = 0; i < Math.floor(t / r); ++i)
|
|
5645
5648
|
n = Yu(n);
|
|
5646
|
-
n =
|
|
5649
|
+
n = ks(t % r, n), n = ks(Number.NEGATIVE_INFINITY, n);
|
|
5647
5650
|
}
|
|
5648
5651
|
return n;
|
|
5649
5652
|
}
|
|
@@ -5745,7 +5748,7 @@ function Il(e, t) {
|
|
|
5745
5748
|
case an:
|
|
5746
5749
|
return t(s);
|
|
5747
5750
|
default:
|
|
5748
|
-
throw new
|
|
5751
|
+
throw new Bs(s);
|
|
5749
5752
|
}
|
|
5750
5753
|
}
|
|
5751
5754
|
}
|
|
@@ -5864,7 +5867,7 @@ function Fa(e) {
|
|
|
5864
5867
|
case an:
|
|
5865
5868
|
break;
|
|
5866
5869
|
default:
|
|
5867
|
-
throw new
|
|
5870
|
+
throw new Bs(e);
|
|
5868
5871
|
}
|
|
5869
5872
|
return e;
|
|
5870
5873
|
}
|
|
@@ -5918,7 +5921,7 @@ function HN(e) {
|
|
|
5918
5921
|
case an:
|
|
5919
5922
|
break;
|
|
5920
5923
|
default:
|
|
5921
|
-
throw new
|
|
5924
|
+
throw new Bs(e);
|
|
5922
5925
|
}
|
|
5923
5926
|
return e;
|
|
5924
5927
|
}
|
|
@@ -6349,7 +6352,7 @@ function JN(e, t) {
|
|
|
6349
6352
|
case an:
|
|
6350
6353
|
break;
|
|
6351
6354
|
default:
|
|
6352
|
-
throw new
|
|
6355
|
+
throw new Bs(d);
|
|
6353
6356
|
}
|
|
6354
6357
|
a.length === 0 && l.length > 0 && (a.push(...l.reverse()), l.length = 0);
|
|
6355
6358
|
}
|
|
@@ -6383,7 +6386,7 @@ var Ub = {
|
|
|
6383
6386
|
trim: bN,
|
|
6384
6387
|
indent: Yu,
|
|
6385
6388
|
indentIfBreak: gN,
|
|
6386
|
-
align:
|
|
6389
|
+
align: ks,
|
|
6387
6390
|
addAlignmentToDoc: CN,
|
|
6388
6391
|
markAsRoot: hN,
|
|
6389
6392
|
dedentToRoot: pN,
|
|
@@ -6422,7 +6425,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
6422
6425
|
return e && (t = (0, e[zh(e)[0]])(e = 0)), t;
|
|
6423
6426
|
}, ye = (e, t) => function() {
|
|
6424
6427
|
return t || (0, e[zh(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
6425
|
-
},
|
|
6428
|
+
}, Vs = (e, t) => {
|
|
6426
6429
|
for (var r in t)
|
|
6427
6430
|
to(e, r, { get: t[r], enumerable: !0 });
|
|
6428
6431
|
}, Kb = (e, t, r, n) => {
|
|
@@ -6437,7 +6440,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
6437
6440
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
6438
6441
|
to(r, "default", { value: e, enumerable: !0 }),
|
|
6439
6442
|
e
|
|
6440
|
-
)), s3 = (e) => Kb(to({}, "__esModule", { value: !0 }), e), Io = (e, t, r) => i3(e, typeof t != "symbol" ? t + "" : t, r), Qh = (e, t, r) => t.has(e) || qb("Cannot " + r), Ui = (e, t, r) => (Qh(e, t, "read from private field"), t.get(e)), ki = (e, t, r) => t.has(e) ? qb("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ia = (e, t, r, n) => (Qh(e, t, "write to private field"), t.set(e, r), r),
|
|
6443
|
+
)), s3 = (e) => Kb(to({}, "__esModule", { value: !0 }), e), Io = (e, t, r) => i3(e, typeof t != "symbol" ? t + "" : t, r), Qh = (e, t, r) => t.has(e) || qb("Cannot " + r), Ui = (e, t, r) => (Qh(e, t, "read from private field"), t.get(e)), ki = (e, t, r) => t.has(e) ? qb("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ia = (e, t, r, n) => (Qh(e, t, "write to private field"), t.set(e, r), r), ps = (e, t, r) => (Qh(e, t, "access private method"), r), a3 = ye({
|
|
6441
6444
|
"node_modules/fast-glob/out/utils/array.js"(e) {
|
|
6442
6445
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.splitWhen = e.flatten = void 0;
|
|
6443
6446
|
function t(n) {
|
|
@@ -8548,7 +8551,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
8548
8551
|
};
|
|
8549
8552
|
e.default = r;
|
|
8550
8553
|
}
|
|
8551
|
-
}),
|
|
8554
|
+
}), Hs = ye({
|
|
8552
8555
|
"node_modules/@nodelib/fs.stat/out/index.js"(e) {
|
|
8553
8556
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.statSync = e.stat = e.Settings = void 0;
|
|
8554
8557
|
var t = F3(), r = w3(), n = O3();
|
|
@@ -8643,7 +8646,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
8643
8646
|
}), L3 = ye({
|
|
8644
8647
|
"node_modules/@nodelib/fs.scandir/out/providers/async.js"(e) {
|
|
8645
8648
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.readdir = e.readdirWithFileTypes = e.read = void 0;
|
|
8646
|
-
var t =
|
|
8649
|
+
var t = Hs(), r = B3(), n = Yb(), i = Xb(), s = Jb();
|
|
8647
8650
|
function a(p, h, d) {
|
|
8648
8651
|
if (!h.stats && n.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
8649
8652
|
o(p, h, d);
|
|
@@ -8740,7 +8743,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
8740
8743
|
}), R3 = ye({
|
|
8741
8744
|
"node_modules/@nodelib/fs.scandir/out/providers/sync.js"(e) {
|
|
8742
8745
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.readdir = e.readdirWithFileTypes = e.read = void 0;
|
|
8743
|
-
var t =
|
|
8746
|
+
var t = Hs(), r = Yb(), n = Xb(), i = Jb();
|
|
8744
8747
|
function s(u, l) {
|
|
8745
8748
|
return !l.stats && r.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? a(u, l) : o(u, l);
|
|
8746
8749
|
}
|
|
@@ -8796,7 +8799,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
8796
8799
|
}), j3 = ye({
|
|
8797
8800
|
"node_modules/@nodelib/fs.scandir/out/settings.js"(e) {
|
|
8798
8801
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
8799
|
-
var t = lt("path"), r =
|
|
8802
|
+
var t = lt("path"), r = Hs(), n = M3(), i = class {
|
|
8800
8803
|
constructor(s = {}) {
|
|
8801
8804
|
this._options = s, this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !1), this.fs = n.createFileSystemAdapter(this._options.fs), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, t.sep), this.stats = this._getValue(this._options.stats, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0), this.fsStatSettings = new r.Settings({
|
|
8802
8805
|
followSymbolicLink: this.followSymbolicLinks,
|
|
@@ -9240,7 +9243,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
9240
9243
|
}), id = ye({
|
|
9241
9244
|
"node_modules/fast-glob/out/readers/reader.js"(e) {
|
|
9242
9245
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
9243
|
-
var t = lt("path"), r =
|
|
9246
|
+
var t = lt("path"), r = Hs(), n = pi(), i = class {
|
|
9244
9247
|
constructor(s) {
|
|
9245
9248
|
this._settings = s, this._fsStatSettings = new r.Settings({
|
|
9246
9249
|
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
@@ -9268,7 +9271,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
9268
9271
|
}), Zb = ye({
|
|
9269
9272
|
"node_modules/fast-glob/out/readers/stream.js"(e) {
|
|
9270
9273
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
9271
|
-
var t = lt("stream"), r =
|
|
9274
|
+
var t = lt("stream"), r = Hs(), n = nd(), i = id(), s = class extends i.default {
|
|
9272
9275
|
constructor() {
|
|
9273
9276
|
super(...arguments), this._walkStream = n.walkStream, this._stat = r.stat;
|
|
9274
9277
|
}
|
|
@@ -9576,7 +9579,7 @@ var e3 = Object.create, to = Object.defineProperty, t3 = Object.getOwnPropertyDe
|
|
|
9576
9579
|
}), rB = ye({
|
|
9577
9580
|
"node_modules/fast-glob/out/readers/sync.js"(e) {
|
|
9578
9581
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
9579
|
-
var t =
|
|
9582
|
+
var t = Hs(), r = nd(), n = id(), i = class extends n.default {
|
|
9580
9583
|
constructor() {
|
|
9581
9584
|
super(...arguments), this._walkSync = r.walkSync, this._statSync = t.statSync;
|
|
9582
9585
|
}
|
|
@@ -9898,7 +9901,7 @@ function lB(e, { streamIsTTY: t, sniffFlags: r = !0 } = {}) {
|
|
|
9898
9901
|
if (Dt.TERM === "dumb")
|
|
9899
9902
|
return s;
|
|
9900
9903
|
if (en.platform === "win32") {
|
|
9901
|
-
const a =
|
|
9904
|
+
const a = js.release().split(".");
|
|
9902
9905
|
return Number(a[0]) >= 10 && Number(a[2]) >= 10586 ? Number(a[2]) >= 14931 ? 3 : 2 : 1;
|
|
9903
9906
|
}
|
|
9904
9907
|
if ("CI" in Dt)
|
|
@@ -9959,7 +9962,7 @@ var hB = Ol({
|
|
|
9959
9962
|
"node_modules/chalk/source/utilities.js"() {
|
|
9960
9963
|
}
|
|
9961
9964
|
}), tS = {};
|
|
9962
|
-
|
|
9965
|
+
Vs(tS, {
|
|
9963
9966
|
Chalk: () => rS,
|
|
9964
9967
|
backgroundColorNames: () => Ju,
|
|
9965
9968
|
backgroundColors: () => Ju,
|
|
@@ -9974,10 +9977,10 @@ Hs(tS, {
|
|
|
9974
9977
|
supportsColor: () => bu,
|
|
9975
9978
|
supportsColorStderr: () => Su
|
|
9976
9979
|
});
|
|
9977
|
-
function
|
|
9980
|
+
function Qs(e) {
|
|
9978
9981
|
return Ap(e);
|
|
9979
9982
|
}
|
|
9980
|
-
var bu, Su, Oo, Ti, us, Xc, Ai, jy, rS, Ap, No, $y, Uy, Bo,
|
|
9983
|
+
var bu, Su, Oo, Ti, us, Xc, Ai, jy, rS, Ap, No, $y, Uy, Bo, Zs, Vy, Hy, nS, Sr, kl = Ol({
|
|
9981
9984
|
"node_modules/chalk/source/index.js"() {
|
|
9982
9985
|
Ly(), cB(), hB(), Ly(), { stdout: bu, stderr: Su } = eS, Oo = Symbol("GENERATOR"), Ti = Symbol("STYLER"), us = Symbol("IS_EMPTY"), Xc = [
|
|
9983
9986
|
"ansi",
|
|
@@ -9995,18 +9998,18 @@ var bu, Su, Oo, Ti, us, Xc, Ai, jy, rS, Ap, No, $y, Uy, Bo, ea, Vy, Hy, nS, Sr,
|
|
|
9995
9998
|
}
|
|
9996
9999
|
}, Ap = (e) => {
|
|
9997
10000
|
const t = (...r) => r.join(" ");
|
|
9998
|
-
return jy(t, e), Object.setPrototypeOf(t,
|
|
9999
|
-
}, Object.setPrototypeOf(
|
|
10001
|
+
return jy(t, e), Object.setPrototypeOf(t, Qs.prototype), t;
|
|
10002
|
+
}, Object.setPrototypeOf(Qs.prototype, Function.prototype);
|
|
10000
10003
|
for (const [e, t] of Object.entries(Br))
|
|
10001
10004
|
Ai[e] = {
|
|
10002
10005
|
get() {
|
|
10003
|
-
const r =
|
|
10006
|
+
const r = Zs(this, Bo(t.open, t.close, this[Ti]), this[us]);
|
|
10004
10007
|
return Object.defineProperty(this, e, { value: r }), r;
|
|
10005
10008
|
}
|
|
10006
10009
|
};
|
|
10007
10010
|
Ai.visible = {
|
|
10008
10011
|
get() {
|
|
10009
|
-
const e =
|
|
10012
|
+
const e = Zs(this, this[Ti], !0);
|
|
10010
10013
|
return Object.defineProperty(this, "visible", { value: e }), e;
|
|
10011
10014
|
}
|
|
10012
10015
|
}, No = (e, t, r, ...n) => e === "rgb" ? t === "ansi16m" ? Br[r].ansi16m(...n) : t === "ansi256" ? Br[r].ansi256(Br.rgbToAnsi256(...n)) : Br[r].ansi(Br.rgbToAnsi(...n)) : e === "hex" ? No("rgb", t, r, ...Br.hexToRgb(...n)) : Br[r][e](...n), $y = ["rgb", "hex", "ansi256"];
|
|
@@ -10016,7 +10019,7 @@ var bu, Su, Oo, Ti, us, Xc, Ai, jy, rS, Ap, No, $y, Uy, Bo, ea, Vy, Hy, nS, Sr,
|
|
|
10016
10019
|
const { level: r } = this;
|
|
10017
10020
|
return function(...n) {
|
|
10018
10021
|
const i = Bo(No(e, Xc[r], "color", ...n), Br.color.close, this[Ti]);
|
|
10019
|
-
return
|
|
10022
|
+
return Zs(this, i, this[us]);
|
|
10020
10023
|
};
|
|
10021
10024
|
}
|
|
10022
10025
|
};
|
|
@@ -10026,7 +10029,7 @@ var bu, Su, Oo, Ti, us, Xc, Ai, jy, rS, Ap, No, $y, Uy, Bo, ea, Vy, Hy, nS, Sr,
|
|
|
10026
10029
|
const { level: r } = this;
|
|
10027
10030
|
return function(...n) {
|
|
10028
10031
|
const i = Bo(No(e, Xc[r], "bgColor", ...n), Br.bgColor.close, this[Ti]);
|
|
10029
|
-
return
|
|
10032
|
+
return Zs(this, i, this[us]);
|
|
10030
10033
|
};
|
|
10031
10034
|
}
|
|
10032
10035
|
};
|
|
@@ -10052,7 +10055,7 @@ var bu, Su, Oo, Ti, us, Xc, Ai, jy, rS, Ap, No, $y, Uy, Bo, ea, Vy, Hy, nS, Sr,
|
|
|
10052
10055
|
closeAll: i,
|
|
10053
10056
|
parent: r
|
|
10054
10057
|
};
|
|
10055
|
-
},
|
|
10058
|
+
}, Zs = (e, t, r) => {
|
|
10056
10059
|
const n = (...i) => Vy(n, i.length === 1 ? "" + i[0] : i.join(" "));
|
|
10057
10060
|
return Object.setPrototypeOf(n, Uy), n[Oo] = e, n[Ti] = t, n[us] = r, n;
|
|
10058
10061
|
}, Vy = (e, t) => {
|
|
@@ -10068,7 +10071,7 @@ var bu, Su, Oo, Ti, us, Xc, Ai, jy, rS, Ap, No, $y, Uy, Bo, ea, Vy, Hy, nS, Sr,
|
|
|
10068
10071
|
const s = t.indexOf(`
|
|
10069
10072
|
`);
|
|
10070
10073
|
return s !== -1 && (t = pB(t, i, n, s)), n + t + i;
|
|
10071
|
-
}, Object.defineProperties(
|
|
10074
|
+
}, Object.defineProperties(Qs.prototype, Ai), Hy = Qs(), nS = Qs({ level: Su ? Su.level : 0 }), Sr = Hy;
|
|
10072
10075
|
}
|
|
10073
10076
|
}), iS = ye({
|
|
10074
10077
|
"node_modules/semver/internal/debug.js"(e, t) {
|
|
@@ -13800,7 +13803,7 @@ ${C}`), y ? E.reset(C) : C;
|
|
|
13800
13803
|
t.exports = n;
|
|
13801
13804
|
}
|
|
13802
13805
|
}), cS = {};
|
|
13803
|
-
|
|
13806
|
+
Vs(cS, {
|
|
13804
13807
|
__debug: () => k4,
|
|
13805
13808
|
__internal: () => B4,
|
|
13806
13809
|
check: () => w4,
|
|
@@ -14626,7 +14629,7 @@ var DS = class extends di {
|
|
|
14626
14629
|
}
|
|
14627
14630
|
}
|
|
14628
14631
|
}, ES = {};
|
|
14629
|
-
|
|
14632
|
+
Vs(ES, {
|
|
14630
14633
|
ArgExpansionBailout: () => wk,
|
|
14631
14634
|
ConfigError: () => ud,
|
|
14632
14635
|
UndefinedParserError: () => xp
|
|
@@ -14646,7 +14649,7 @@ var ud = class extends Error {
|
|
|
14646
14649
|
super(...arguments);
|
|
14647
14650
|
Ut(this, "name", "ArgExpansionBailout");
|
|
14648
14651
|
}
|
|
14649
|
-
}, r0 = Fn(Gb()), Ik = (e) => e instanceof URL, bS = (e) => typeof e == "string" && e.startsWith("file://"), SS = (e) => Ik(e) || bS(e),
|
|
14652
|
+
}, r0 = Fn(Gb()), Ik = (e) => e instanceof URL, bS = (e) => typeof e == "string" && e.startsWith("file://"), SS = (e) => Ik(e) || bS(e), qs = (e) => SS(e) ? it(e) : e;
|
|
14650
14653
|
function Ok(e, t) {
|
|
14651
14654
|
const r = [[], []];
|
|
14652
14655
|
for (const n of e)
|
|
@@ -14658,13 +14661,13 @@ async function Bk(e, t) {
|
|
|
14658
14661
|
const r = (t == null ? void 0 : t.allowSymlinks) ?? !0;
|
|
14659
14662
|
let n;
|
|
14660
14663
|
try {
|
|
14661
|
-
n = await (r ?
|
|
14664
|
+
n = await (r ? Ps.stat : Ps.lstat)(qs(e));
|
|
14662
14665
|
} catch {
|
|
14663
14666
|
return !1;
|
|
14664
14667
|
}
|
|
14665
14668
|
return n.isDirectory();
|
|
14666
14669
|
}
|
|
14667
|
-
var kk = Bk, n0 = (e) => Lu.resolve(
|
|
14670
|
+
var kk = Bk, n0 = (e) => Lu.resolve(qs(e));
|
|
14668
14671
|
function* Lk(e, t) {
|
|
14669
14672
|
e = n0(e);
|
|
14670
14673
|
const { root: r } = Lu.parse(e);
|
|
@@ -14695,7 +14698,7 @@ var Rk = Lk, Zu, el, Au, Oa, Fp, TS, Mk = class {
|
|
|
14695
14698
|
e,
|
|
14696
14699
|
Ui(this, Au)
|
|
14697
14700
|
))
|
|
14698
|
-
if (n.push(s), i = await
|
|
14701
|
+
if (n.push(s), i = await ps(this, Fp, TS).call(this, s, t), i)
|
|
14699
14702
|
break;
|
|
14700
14703
|
for (const s of n)
|
|
14701
14704
|
r.set(s, i);
|
|
@@ -14780,7 +14783,7 @@ CS.buffer = async () => {
|
|
|
14780
14783
|
return Buffer.concat(e, t);
|
|
14781
14784
|
};
|
|
14782
14785
|
function Jk(e, t) {
|
|
14783
|
-
return
|
|
14786
|
+
return Ps.writeFile(e, t);
|
|
14784
14787
|
}
|
|
14785
14788
|
var zk = {
|
|
14786
14789
|
getPrettierConfigSearchStopDirectory: () => {
|
|
@@ -14793,7 +14796,7 @@ async function Qk(e, t) {
|
|
|
14793
14796
|
const r = (t == null ? void 0 : t.allowSymlinks) ?? !0;
|
|
14794
14797
|
let n;
|
|
14795
14798
|
try {
|
|
14796
|
-
n = await (r ?
|
|
14799
|
+
n = await (r ? Ps.stat : Ps.lstat)(qs(e));
|
|
14797
14800
|
} catch {
|
|
14798
14801
|
return !1;
|
|
14799
14802
|
}
|
|
@@ -15372,7 +15375,7 @@ function Vi(e) {
|
|
|
15372
15375
|
function ir(e) {
|
|
15373
15376
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
15374
15377
|
}
|
|
15375
|
-
function
|
|
15378
|
+
function ms(e) {
|
|
15376
15379
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
15377
15380
|
}
|
|
15378
15381
|
function TR(e) {
|
|
@@ -15450,7 +15453,7 @@ function l0(e, t, r, n) {
|
|
|
15450
15453
|
for (zt.isObject(r) || Le(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), a = 0, o = i.length; a < o; a += 1)
|
|
15451
15454
|
s = i[a], ei.call(t, s) || (t[s] = r[s], n[s] = !0);
|
|
15452
15455
|
}
|
|
15453
|
-
function
|
|
15456
|
+
function ys(e, t, r, n, i, s, a, o, u) {
|
|
15454
15457
|
var l, c;
|
|
15455
15458
|
if (Array.isArray(i))
|
|
15456
15459
|
for (i = Array.prototype.slice.call(i), l = 0, c = i.length; l < c; l += 1)
|
|
@@ -15500,17 +15503,17 @@ function pd(e, t) {
|
|
|
15500
15503
|
}
|
|
15501
15504
|
function xR(e, t, r) {
|
|
15502
15505
|
var n, i, s, a, o, u, l, c, f = e.kind, p = e.result, h;
|
|
15503
|
-
if (h = e.input.charCodeAt(e.position), ir(h) ||
|
|
15506
|
+
if (h = e.input.charCodeAt(e.position), ir(h) || ms(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96 || (h === 63 || h === 45) && (i = e.input.charCodeAt(e.position + 1), ir(i) || r && ms(i)))
|
|
15504
15507
|
return !1;
|
|
15505
15508
|
for (e.kind = "scalar", e.result = "", s = a = e.position, o = !1; h !== 0; ) {
|
|
15506
15509
|
if (h === 58) {
|
|
15507
|
-
if (i = e.input.charCodeAt(e.position + 1), ir(i) || r &&
|
|
15510
|
+
if (i = e.input.charCodeAt(e.position + 1), ir(i) || r && ms(i))
|
|
15508
15511
|
break;
|
|
15509
15512
|
} else if (h === 35) {
|
|
15510
15513
|
if (n = e.input.charCodeAt(e.position - 1), ir(n))
|
|
15511
15514
|
break;
|
|
15512
15515
|
} else {
|
|
15513
|
-
if (e.position === e.lineStart && Ll(e) || r &&
|
|
15516
|
+
if (e.position === e.lineStart && Ll(e) || r && ms(h))
|
|
15514
15517
|
break;
|
|
15515
15518
|
if (rn(h))
|
|
15516
15519
|
if (u = e.line, l = e.lineStart, c = e.lineIndent, It(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -15572,7 +15575,7 @@ function IR(e, t) {
|
|
|
15572
15575
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), y = e.input.charCodeAt(++e.position); y !== 0; ) {
|
|
15573
15576
|
if (It(e, !0, t), y = e.input.charCodeAt(e.position), y === c)
|
|
15574
15577
|
return e.position++, e.tag = a, e.anchor = u, e.kind = h ? "mapping" : "sequence", e.result = o, !0;
|
|
15575
|
-
r ? y === 44 && Le(e, "expected the node content, but found ','") : Le(e, "missed comma between flow collection entries"), g = m = D = null, f = p = !1, y === 63 && (l = e.input.charCodeAt(e.position + 1), ir(l) && (f = p = !0, e.position++, It(e, !0, t))), n = e.line, i = e.lineStart, s = e.position,
|
|
15578
|
+
r ? y === 44 && Le(e, "expected the node content, but found ','") : Le(e, "missed comma between flow collection entries"), g = m = D = null, f = p = !1, y === 63 && (l = e.input.charCodeAt(e.position + 1), ir(l) && (f = p = !0, e.position++, It(e, !0, t))), n = e.line, i = e.lineStart, s = e.position, Ls(e, t, tl, !1, !0), g = e.tag, m = e.result, It(e, !0, t), y = e.input.charCodeAt(e.position), (p || e.line === n) && y === 58 && (f = !0, y = e.input.charCodeAt(++e.position), It(e, !0, t), Ls(e, t, tl, !1, !0), D = e.result), h ? ys(e, o, d, g, m, D, n, i, s) : f ? o.push(ys(e, null, d, g, m, D, n, i, s)) : o.push(m), It(e, !0, t), y = e.input.charCodeAt(e.position), y === 44 ? (r = !0, y = e.input.charCodeAt(++e.position)) : r = !1;
|
|
15576
15579
|
}
|
|
15577
15580
|
Le(e, "unexpected end of the stream within a flow collection");
|
|
15578
15581
|
}
|
|
@@ -15631,7 +15634,7 @@ function c0(e, t) {
|
|
|
15631
15634
|
s.push(null), u = e.input.charCodeAt(e.position);
|
|
15632
15635
|
continue;
|
|
15633
15636
|
}
|
|
15634
|
-
if (r = e.line,
|
|
15637
|
+
if (r = e.line, Ls(e, t, IS, !1, !0), s.push(e.result), It(e, !0, -1), u = e.input.charCodeAt(e.position), (e.line === r || e.lineIndent > t) && u !== 0)
|
|
15635
15638
|
Le(e, "bad indentation of a sequence entry");
|
|
15636
15639
|
else if (e.lineIndent < t)
|
|
15637
15640
|
break;
|
|
@@ -15643,15 +15646,15 @@ function NR(e, t, r) {
|
|
|
15643
15646
|
if (e.firstTabInLine !== -1) return !1;
|
|
15644
15647
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = f), y = e.input.charCodeAt(e.position); y !== 0; ) {
|
|
15645
15648
|
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Le(e, "tab characters must not be used in indentation")), n = e.input.charCodeAt(e.position + 1), s = e.line, (y === 63 || y === 58) && ir(n))
|
|
15646
|
-
y === 63 ? (g && (
|
|
15649
|
+
y === 63 ? (g && (ys(e, f, p, h, d, null, a, o, u), h = d = m = null), D = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : Le(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = n;
|
|
15647
15650
|
else {
|
|
15648
|
-
if (a = e.line, o = e.lineStart, u = e.position, !
|
|
15651
|
+
if (a = e.line, o = e.lineStart, u = e.position, !Ls(e, r, wS, !1, !0))
|
|
15649
15652
|
break;
|
|
15650
15653
|
if (e.line === s) {
|
|
15651
15654
|
for (y = e.input.charCodeAt(e.position); Vi(y); )
|
|
15652
15655
|
y = e.input.charCodeAt(++e.position);
|
|
15653
15656
|
if (y === 58)
|
|
15654
|
-
y = e.input.charCodeAt(++e.position), ir(y) || Le(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (
|
|
15657
|
+
y = e.input.charCodeAt(++e.position), ir(y) || Le(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (ys(e, f, p, h, d, null, a, o, u), h = d = m = null), D = !0, g = !1, i = !1, h = e.tag, d = e.result;
|
|
15655
15658
|
else if (D)
|
|
15656
15659
|
Le(e, "can not read an implicit mapping pair; a colon is missed");
|
|
15657
15660
|
else
|
|
@@ -15661,12 +15664,12 @@ function NR(e, t, r) {
|
|
|
15661
15664
|
else
|
|
15662
15665
|
return e.tag = l, e.anchor = c, !0;
|
|
15663
15666
|
}
|
|
15664
|
-
if ((e.line === s || e.lineIndent > t) && (g && (a = e.line, o = e.lineStart, u = e.position),
|
|
15667
|
+
if ((e.line === s || e.lineIndent > t) && (g && (a = e.line, o = e.lineStart, u = e.position), Ls(e, t, rl, !0, i) && (g ? d = e.result : m = e.result), g || (ys(e, f, p, h, d, m, a, o, u), h = d = m = null), It(e, !0, -1), y = e.input.charCodeAt(e.position)), (e.line === s || e.lineIndent > t) && y !== 0)
|
|
15665
15668
|
Le(e, "bad indentation of a mapping entry");
|
|
15666
15669
|
else if (e.lineIndent < t)
|
|
15667
15670
|
break;
|
|
15668
15671
|
}
|
|
15669
|
-
return g &&
|
|
15672
|
+
return g && ys(e, f, p, h, d, null, a, o, u), D && (e.tag = l, e.anchor = c, e.kind = "mapping", e.result = f), D;
|
|
15670
15673
|
}
|
|
15671
15674
|
function BR(e) {
|
|
15672
15675
|
var t, r = !1, n = !1, i, s, a;
|
|
@@ -15692,18 +15695,18 @@ function BR(e) {
|
|
|
15692
15695
|
function kR(e) {
|
|
15693
15696
|
var t, r;
|
|
15694
15697
|
if (r = e.input.charCodeAt(e.position), r !== 38) return !1;
|
|
15695
|
-
for (e.anchor !== null && Le(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ir(r) && !
|
|
15698
|
+
for (e.anchor !== null && Le(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ir(r) && !ms(r); )
|
|
15696
15699
|
r = e.input.charCodeAt(++e.position);
|
|
15697
15700
|
return e.position === t && Le(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
15698
15701
|
}
|
|
15699
15702
|
function LR(e) {
|
|
15700
15703
|
var t, r, n;
|
|
15701
15704
|
if (n = e.input.charCodeAt(e.position), n !== 42) return !1;
|
|
15702
|
-
for (n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ir(n) && !
|
|
15705
|
+
for (n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ir(n) && !ms(n); )
|
|
15703
15706
|
n = e.input.charCodeAt(++e.position);
|
|
15704
15707
|
return e.position === t && Le(e, "name of an alias node must contain at least one character"), r = e.input.slice(t, e.position), ei.call(e.anchorMap, r) || Le(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r], It(e, !0, -1), !0;
|
|
15705
15708
|
}
|
|
15706
|
-
function
|
|
15709
|
+
function Ls(e, t, r, n, i) {
|
|
15707
15710
|
var s, a, o, u = 1, l = !1, c = !1, f, p, h, d, m, g;
|
|
15708
15711
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, s = a = o = rl === r || IS === r, n && It(e, !0, -1) && (l = !0, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)), u === 1)
|
|
15709
15712
|
for (; BR(e) || kR(e); )
|
|
@@ -15750,7 +15753,7 @@ function RR(e) {
|
|
|
15750
15753
|
}
|
|
15751
15754
|
a !== 0 && fd(e), ei.call(u0, n) ? u0[n](e, n, i) : nl(e, 'unknown document directive "' + n + '"');
|
|
15752
15755
|
}
|
|
15753
|
-
if (It(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, It(e, !0, -1)) : s && Le(e, "directives end mark is expected"),
|
|
15756
|
+
if (It(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, It(e, !0, -1)) : s && Le(e, "directives end mark is expected"), Ls(e, e.lineIndent - 1, rl, !1, !0), It(e, !0, -1), e.checkLineBreaks && SR.test(e.input.slice(t, e.position)) && nl(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ll(e)) {
|
|
15754
15757
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, It(e, !0, -1));
|
|
15755
15758
|
return;
|
|
15756
15759
|
}
|
|
@@ -16544,7 +16547,7 @@ function oM(e, t, r) {
|
|
|
16544
16547
|
async function uM(e) {
|
|
16545
16548
|
bS(e) && (e = new URL(e));
|
|
16546
16549
|
try {
|
|
16547
|
-
return await
|
|
16550
|
+
return await Ps.readFile(e, "utf8");
|
|
16548
16551
|
} catch (t) {
|
|
16549
16552
|
if (t.code === "ENOENT")
|
|
16550
16553
|
return;
|
|
@@ -16885,14 +16888,14 @@ function TM(e) {
|
|
|
16885
16888
|
let t = Gf(e, { colors: !1 });
|
|
16886
16889
|
return t.length > 28 && (t = `${t.slice(0, 25)}...`), `type ${typeof e} (${t})`;
|
|
16887
16890
|
}
|
|
16888
|
-
var
|
|
16891
|
+
var ea = {}.hasOwnProperty, { ERR_INVALID_PACKAGE_CONFIG: AM } = Vt, y0 = /* @__PURE__ */ new Map();
|
|
16889
16892
|
function KS(e, { base: t, specifier: r }) {
|
|
16890
16893
|
const n = y0.get(e);
|
|
16891
16894
|
if (n)
|
|
16892
16895
|
return n;
|
|
16893
16896
|
let i;
|
|
16894
16897
|
try {
|
|
16895
|
-
i =
|
|
16898
|
+
i = Cs.readFileSync(Oe.toNamespacedPath(e), "utf8");
|
|
16896
16899
|
} catch (a) {
|
|
16897
16900
|
const o = (
|
|
16898
16901
|
/** @type {ErrnoException} */
|
|
@@ -16926,7 +16929,7 @@ function KS(e, { base: t, specifier: r }) {
|
|
|
16926
16929
|
);
|
|
16927
16930
|
throw l.cause = u, l;
|
|
16928
16931
|
}
|
|
16929
|
-
s.exists = !0,
|
|
16932
|
+
s.exists = !0, ea.call(a, "name") && typeof a.name == "string" && (s.name = a.name), ea.call(a, "main") && typeof a.main == "string" && (s.main = a.main), ea.call(a, "exports") && (s.exports = a.exports), ea.call(a, "imports") && (s.imports = a.imports), ea.call(a, "type") && (a.type === "commonjs" || a.type === "module") && (s.type = a.type);
|
|
16930
16933
|
}
|
|
16931
16934
|
return y0.set(e, s), s;
|
|
16932
16935
|
}
|
|
@@ -17265,7 +17268,7 @@ function XM(e) {
|
|
|
17265
17268
|
const t = Number(e);
|
|
17266
17269
|
return `${t}` !== e ? !1 : t >= 0 && t < 4294967295;
|
|
17267
17270
|
}
|
|
17268
|
-
function
|
|
17271
|
+
function Rs(e, t, r, n, i, s, a, o, u) {
|
|
17269
17272
|
if (typeof t == "string")
|
|
17270
17273
|
return YM(
|
|
17271
17274
|
t,
|
|
@@ -17286,7 +17289,7 @@ function Ms(e, t, r, n, i, s, a, o, u) {
|
|
|
17286
17289
|
const p = l[f];
|
|
17287
17290
|
let h;
|
|
17288
17291
|
try {
|
|
17289
|
-
h =
|
|
17292
|
+
h = Rs(
|
|
17290
17293
|
e,
|
|
17291
17294
|
p,
|
|
17292
17295
|
r,
|
|
@@ -17335,7 +17338,7 @@ function Ms(e, t, r, n, i, s, a, o, u) {
|
|
|
17335
17338
|
const p = (
|
|
17336
17339
|
/** @type {unknown} */
|
|
17337
17340
|
t[f]
|
|
17338
|
-
), h =
|
|
17341
|
+
), h = Rs(
|
|
17339
17342
|
e,
|
|
17340
17343
|
p,
|
|
17341
17344
|
r,
|
|
@@ -17393,7 +17396,7 @@ function zM(e, t, r) {
|
|
|
17393
17396
|
function P0(e, t, r, n, i) {
|
|
17394
17397
|
let s = r.exports;
|
|
17395
17398
|
if (JM(s, e, n) && (s = { ".": s }), XS.call(s, t) && !t.includes("*") && !t.endsWith("/")) {
|
|
17396
|
-
const c = s[t], f =
|
|
17399
|
+
const c = s[t], f = Rs(
|
|
17397
17400
|
e,
|
|
17398
17401
|
c,
|
|
17399
17402
|
"",
|
|
@@ -17430,7 +17433,7 @@ function P0(e, t, r, n, i) {
|
|
|
17430
17433
|
const c = (
|
|
17431
17434
|
/** @type {unknown} */
|
|
17432
17435
|
s[a]
|
|
17433
|
-
), f =
|
|
17436
|
+
), f = Rs(
|
|
17434
17437
|
e,
|
|
17435
17438
|
c,
|
|
17436
17439
|
o,
|
|
@@ -17463,7 +17466,7 @@ function QM(e, t, r) {
|
|
|
17463
17466
|
const s = i.imports;
|
|
17464
17467
|
if (s)
|
|
17465
17468
|
if (XS.call(s, e) && !e.includes("*")) {
|
|
17466
|
-
const a =
|
|
17469
|
+
const a = Rs(
|
|
17467
17470
|
n,
|
|
17468
17471
|
s[e],
|
|
17469
17472
|
"",
|
|
@@ -17491,7 +17494,7 @@ function QM(e, t, r) {
|
|
|
17491
17494
|
}
|
|
17492
17495
|
}
|
|
17493
17496
|
if (a) {
|
|
17494
|
-
const c = s[a], f =
|
|
17497
|
+
const c = s[a], f = Rs(
|
|
17495
17498
|
n,
|
|
17496
17499
|
c,
|
|
17497
17500
|
o,
|
|
@@ -17756,7 +17759,7 @@ async function b6(e, t) {
|
|
|
17756
17759
|
}
|
|
17757
17760
|
async function tv(e, t) {
|
|
17758
17761
|
t = { useCache: !0, ...t };
|
|
17759
|
-
const r =
|
|
17762
|
+
const r = qs(e), [n, i] = await Promise.all([
|
|
17760
17763
|
b6(r, t),
|
|
17761
17764
|
E6(r, t)
|
|
17762
17765
|
]);
|
|
@@ -17771,7 +17774,7 @@ async function tv(e, t) {
|
|
|
17771
17774
|
)), s;
|
|
17772
17775
|
}
|
|
17773
17776
|
async function S6(e) {
|
|
17774
|
-
const t = e ? Oe.dirname(Oe.resolve(
|
|
17777
|
+
const t = e ? Oe.dirname(Oe.resolve(qs(e))) : void 0;
|
|
17775
17778
|
return await ev(t, { shouldCache: !1 }) ?? null;
|
|
17776
17779
|
}
|
|
17777
17780
|
function v6(e, t) {
|
|
@@ -17813,7 +17816,7 @@ var A6 = (e, t, r, n) => {
|
|
|
17813
17816
|
"/"
|
|
17814
17817
|
) : (e) => e;
|
|
17815
17818
|
function x6(e, t) {
|
|
17816
|
-
const r =
|
|
17819
|
+
const r = qs(t), n = SS(e) ? FP.fileURLToPath(e) : Oe.resolve(e);
|
|
17817
17820
|
return Oe.relative(
|
|
17818
17821
|
// If there's an ignore-path set, the filename must be relative to the
|
|
17819
17822
|
// ignore path, not the current working directory.
|
|
@@ -17847,7 +17850,7 @@ var I6 = Fn(KB());
|
|
|
17847
17850
|
function O6(e) {
|
|
17848
17851
|
let t;
|
|
17849
17852
|
try {
|
|
17850
|
-
t =
|
|
17853
|
+
t = Cs.openSync(e, "r");
|
|
17851
17854
|
} catch {
|
|
17852
17855
|
return;
|
|
17853
17856
|
}
|
|
@@ -17860,7 +17863,7 @@ function O6(e) {
|
|
|
17860
17863
|
return s[1];
|
|
17861
17864
|
} finally {
|
|
17862
17865
|
try {
|
|
17863
|
-
|
|
17866
|
+
Cs.closeSync(t);
|
|
17864
17867
|
} catch {
|
|
17865
17868
|
}
|
|
17866
17869
|
}
|
|
@@ -18014,7 +18017,7 @@ var K6 = class extends Error {
|
|
|
18014
18017
|
Ut(this, "name", "InvalidDocError");
|
|
18015
18018
|
this.doc = t;
|
|
18016
18019
|
}
|
|
18017
|
-
},
|
|
18020
|
+
}, Ms = K6, x0 = {};
|
|
18018
18021
|
function W6(e, t, r, n) {
|
|
18019
18022
|
const i = [e];
|
|
18020
18023
|
for (; i.length > 0; ) {
|
|
@@ -18026,7 +18029,7 @@ function W6(e, t, r, n) {
|
|
|
18026
18029
|
r && i.push(s, x0);
|
|
18027
18030
|
const a = Qi(s);
|
|
18028
18031
|
if (!a)
|
|
18029
|
-
throw new
|
|
18032
|
+
throw new Ms(s);
|
|
18030
18033
|
if ((t == null ? void 0 : t(s)) !== !1)
|
|
18031
18034
|
switch (a) {
|
|
18032
18035
|
case xn:
|
|
@@ -18061,7 +18064,7 @@ function W6(e, t, r, n) {
|
|
|
18061
18064
|
case $r:
|
|
18062
18065
|
break;
|
|
18063
18066
|
default:
|
|
18064
|
-
throw new
|
|
18067
|
+
throw new Ms(s);
|
|
18065
18068
|
}
|
|
18066
18069
|
}
|
|
18067
18070
|
}
|
|
@@ -18078,7 +18081,7 @@ function Y6(e) {
|
|
|
18078
18081
|
function w0(e) {
|
|
18079
18082
|
return { type: On, contents: e };
|
|
18080
18083
|
}
|
|
18081
|
-
var ov = { type: $r }, uv = { type: Cr, hard: !0 }, X6 = { type: Cr },
|
|
18084
|
+
var ov = { type: $r }, uv = { type: Cr, hard: !0 }, X6 = { type: Cr }, Ss = [uv, ov], I0 = { type: zi };
|
|
18082
18085
|
function J6(e, t, r) {
|
|
18083
18086
|
let n = e;
|
|
18084
18087
|
if (t > 0) {
|
|
@@ -18252,7 +18255,7 @@ function s8(e, t) {
|
|
|
18252
18255
|
case $r:
|
|
18253
18256
|
return t(s);
|
|
18254
18257
|
default:
|
|
18255
|
-
throw new
|
|
18258
|
+
throw new Ms(s);
|
|
18256
18259
|
}
|
|
18257
18260
|
}
|
|
18258
18261
|
}
|
|
@@ -18348,7 +18351,7 @@ function La(e) {
|
|
|
18348
18351
|
case $r:
|
|
18349
18352
|
break;
|
|
18350
18353
|
default:
|
|
18351
|
-
throw new
|
|
18354
|
+
throw new Ms(e);
|
|
18352
18355
|
}
|
|
18353
18356
|
return e;
|
|
18354
18357
|
}
|
|
@@ -18402,7 +18405,7 @@ function u8(e) {
|
|
|
18402
18405
|
case $r:
|
|
18403
18406
|
break;
|
|
18404
18407
|
default:
|
|
18405
|
-
throw new
|
|
18408
|
+
throw new Ms(e);
|
|
18406
18409
|
}
|
|
18407
18410
|
return e;
|
|
18408
18411
|
}
|
|
@@ -18828,7 +18831,7 @@ function Ed(e, t) {
|
|
|
18828
18831
|
case $r:
|
|
18829
18832
|
break;
|
|
18830
18833
|
default:
|
|
18831
|
-
throw new
|
|
18834
|
+
throw new Ms(d);
|
|
18832
18835
|
}
|
|
18833
18836
|
a.length === 0 && l.length > 0 && (a.push(...l.reverse()), l.length = 0);
|
|
18834
18837
|
}
|
|
@@ -18946,7 +18949,7 @@ var bd = p8, Ii, Mp, Fu, h8 = class {
|
|
|
18946
18949
|
}
|
|
18947
18950
|
/** @type {object[]} */
|
|
18948
18951
|
get ancestors() {
|
|
18949
|
-
return [...
|
|
18952
|
+
return [...ps(this, Ii, Fu).call(this)];
|
|
18950
18953
|
}
|
|
18951
18954
|
// The name of the current property is always the penultimate element of
|
|
18952
18955
|
// this.stack, and always a string/number/symbol.
|
|
@@ -18974,7 +18977,7 @@ var bd = p8, Ii, Mp, Fu, h8 = class {
|
|
|
18974
18977
|
);
|
|
18975
18978
|
}
|
|
18976
18979
|
getNode(e = 0) {
|
|
18977
|
-
const t =
|
|
18980
|
+
const t = ps(this, Ii, Mp).call(this, e);
|
|
18978
18981
|
return t === -1 ? null : this.stack[t];
|
|
18979
18982
|
}
|
|
18980
18983
|
getParentNode(e = 0) {
|
|
@@ -19012,7 +19015,7 @@ var bd = p8, Ii, Mp, Fu, h8 = class {
|
|
|
19012
19015
|
* @returns {ReturnType<T>}
|
|
19013
19016
|
*/
|
|
19014
19017
|
callParent(e, t = 0) {
|
|
19015
|
-
const r =
|
|
19018
|
+
const r = ps(this, Ii, Mp).call(this, t + 1), n = this.stack.splice(r + 1);
|
|
19016
19019
|
try {
|
|
19017
19020
|
return e(this);
|
|
19018
19021
|
} finally {
|
|
@@ -19079,7 +19082,7 @@ var bd = p8, Ii, Mp, Fu, h8 = class {
|
|
|
19079
19082
|
* @internal Unstable API. Don't use in plugins for now.
|
|
19080
19083
|
*/
|
|
19081
19084
|
findAncestor(e) {
|
|
19082
|
-
for (const t of
|
|
19085
|
+
for (const t of ps(this, Ii, Fu).call(this))
|
|
19083
19086
|
if (e(t))
|
|
19084
19087
|
return t;
|
|
19085
19088
|
}
|
|
@@ -19092,7 +19095,7 @@ var bd = p8, Ii, Mp, Fu, h8 = class {
|
|
|
19092
19095
|
* @internal Unstable API. Don't use in plugins for now.
|
|
19093
19096
|
*/
|
|
19094
19097
|
hasAncestor(e) {
|
|
19095
|
-
for (const t of
|
|
19098
|
+
for (const t of ps(this, Ii, Fu).call(this))
|
|
19096
19099
|
if (e(t))
|
|
19097
19100
|
return !0;
|
|
19098
19101
|
return !1;
|
|
@@ -19217,13 +19220,13 @@ function A8(e) {
|
|
|
19217
19220
|
function Sd(e, t) {
|
|
19218
19221
|
(e.comments ?? (e.comments = [])).push(t), t.printed = !1, t.nodeDescription = A8(e);
|
|
19219
19222
|
}
|
|
19220
|
-
function
|
|
19223
|
+
function gs(e, t) {
|
|
19221
19224
|
t.leading = !0, t.trailing = !1, Sd(e, t);
|
|
19222
19225
|
}
|
|
19223
19226
|
function Oi(e, t, r) {
|
|
19224
19227
|
t.leading = !1, t.trailing = !1, r && (t.marker = r), Sd(e, t);
|
|
19225
19228
|
}
|
|
19226
|
-
function
|
|
19229
|
+
function Ds(e, t) {
|
|
19227
19230
|
t.leading = !1, t.trailing = !0, Sd(e, t);
|
|
19228
19231
|
}
|
|
19229
19232
|
var lf = /* @__PURE__ */ new WeakMap();
|
|
@@ -19320,23 +19323,23 @@ function C8(e, t) {
|
|
|
19320
19323
|
} = d;
|
|
19321
19324
|
if (N.parser === "json" || N.parser === "json5" || N.parser === "jsonc" || N.parser === "__js_expression" || N.parser === "__ts_expression" || N.parser === "__vue_expression" || N.parser === "__vue_ts_expression") {
|
|
19322
19325
|
if (i(m) - i(A) <= 0) {
|
|
19323
|
-
|
|
19326
|
+
gs(A, m);
|
|
19324
19327
|
continue;
|
|
19325
19328
|
}
|
|
19326
19329
|
if (s(m) - s(A) >= 0) {
|
|
19327
|
-
|
|
19330
|
+
Ds(A, m);
|
|
19328
19331
|
continue;
|
|
19329
19332
|
}
|
|
19330
19333
|
}
|
|
19331
19334
|
let w;
|
|
19332
19335
|
if (a ? w = [d] : (m.enclosingNode = D, m.precedingNode = g, m.followingNode = y, w = [m, E, N, A, R]), P8(E, N, p, h))
|
|
19333
|
-
m.placement = "ownLine", l(...w) || (y ?
|
|
19336
|
+
m.placement = "ownLine", l(...w) || (y ? gs(y, m) : g ? Ds(g, m) : Oi(D || A, m));
|
|
19334
19337
|
else if (_8(E, N, p, h))
|
|
19335
|
-
m.placement = "endOfLine", c(...w) || (g ?
|
|
19338
|
+
m.placement = "endOfLine", c(...w) || (g ? Ds(g, m) : y ? gs(y, m) : Oi(D || A, m));
|
|
19336
19339
|
else if (m.placement = "remaining", !f(...w)) if (g && y) {
|
|
19337
19340
|
const x = n.length;
|
|
19338
19341
|
x > 0 && n[x - 1].followingNode !== y && B0(n, N), n.push(d);
|
|
19339
|
-
} else g ?
|
|
19342
|
+
} else g ? Ds(g, m) : y ? gs(y, m) : Oi(D || A, m);
|
|
19340
19343
|
}
|
|
19341
19344
|
if (B0(n, t), !a)
|
|
19342
19345
|
for (const h of r)
|
|
@@ -19388,7 +19391,7 @@ function B0(e, t) {
|
|
|
19388
19391
|
break;
|
|
19389
19392
|
}
|
|
19390
19393
|
for (const [l, { comment: c }] of e.entries())
|
|
19391
|
-
l < u ?
|
|
19394
|
+
l < u ? Ds(s, c) : gs(a, c);
|
|
19392
19395
|
for (const l of [s, a])
|
|
19393
19396
|
l.comments && l.comments.length > 1 && l.comments.sort((c, f) => t.locStart(c) - t.locStart(f));
|
|
19394
19397
|
e.length = 0;
|
|
@@ -19417,15 +19420,15 @@ function F8(e, t) {
|
|
|
19417
19420
|
if ((r = s.isBlockComment) == null ? void 0 : r.call(s, n)) {
|
|
19418
19421
|
const f = zn(a, u(n)) ? zn(a, o(n), {
|
|
19419
19422
|
backwards: !0
|
|
19420
|
-
}) ?
|
|
19423
|
+
}) ? Ss : X6 : " ";
|
|
19421
19424
|
i.push(f);
|
|
19422
19425
|
} else
|
|
19423
|
-
i.push(
|
|
19426
|
+
i.push(Ss);
|
|
19424
19427
|
const c = Ki(
|
|
19425
19428
|
a,
|
|
19426
19429
|
ri(a, u(n))
|
|
19427
19430
|
);
|
|
19428
|
-
return c !== !1 && zn(a, c) && i.push(
|
|
19431
|
+
return c !== !1 && zn(a, c) && i.push(Ss), i;
|
|
19429
19432
|
}
|
|
19430
19433
|
function w8(e, t, r) {
|
|
19431
19434
|
var n;
|
|
@@ -19436,7 +19439,7 @@ function w8(e, t, r) {
|
|
|
19436
19439
|
u(i)
|
|
19437
19440
|
);
|
|
19438
19441
|
return {
|
|
19439
|
-
doc: w0([
|
|
19442
|
+
doc: w0([Ss, c ? Ss : "", s]),
|
|
19440
19443
|
isBlock: l,
|
|
19441
19444
|
hasLineSuffix: !0
|
|
19442
19445
|
};
|
|
@@ -20022,7 +20025,7 @@ async function q8(e, t = {}) {
|
|
|
20022
20025
|
...t
|
|
20023
20026
|
});
|
|
20024
20027
|
}
|
|
20025
|
-
var
|
|
20028
|
+
var Ks = q8, K8 = Fn(lS());
|
|
20026
20029
|
async function W8(e, t) {
|
|
20027
20030
|
const r = await Tv(t), n = r.preprocess ? r.preprocess(e, t) : e;
|
|
20028
20031
|
t.originalText = n;
|
|
@@ -20104,7 +20107,7 @@ async function Y8(e, t, r, n, i) {
|
|
|
20104
20107
|
}
|
|
20105
20108
|
}
|
|
20106
20109
|
async function X8(e, t, r, n) {
|
|
20107
|
-
const i = await
|
|
20110
|
+
const i = await Ks(
|
|
20108
20111
|
{
|
|
20109
20112
|
...r,
|
|
20110
20113
|
...t,
|
|
@@ -20360,7 +20363,7 @@ async function xv(e, t, r = 0) {
|
|
|
20360
20363
|
} = await io(e, t);
|
|
20361
20364
|
t.cursorOffset >= 0 && (t.cursorNode = Z8(n, t));
|
|
20362
20365
|
let s = await jl(n, t);
|
|
20363
|
-
r > 0 && (s = J6([
|
|
20366
|
+
r > 0 && (s = J6([Ss, s], r, t.tabWidth));
|
|
20364
20367
|
const a = Ed(s, t);
|
|
20365
20368
|
if (r > 0) {
|
|
20366
20369
|
const u = a.formatted.trim();
|
|
@@ -20488,7 +20491,7 @@ async function wv(e, t) {
|
|
|
20488
20491
|
hasBOM: r,
|
|
20489
20492
|
text: n,
|
|
20490
20493
|
options: i
|
|
20491
|
-
} = Fv(e, await
|
|
20494
|
+
} = Fv(e, await Ks(t));
|
|
20492
20495
|
if (i.rangeStart >= i.rangeEnd && n !== "" || i.requirePragma && !await $0(n, i))
|
|
20493
20496
|
return {
|
|
20494
20497
|
formatted: e,
|
|
@@ -20502,11 +20505,11 @@ async function f9(e, t, r) {
|
|
|
20502
20505
|
const {
|
|
20503
20506
|
text: n,
|
|
20504
20507
|
options: i
|
|
20505
|
-
} = Fv(e, await
|
|
20508
|
+
} = Fv(e, await Ks(t)), s = await io(n, i);
|
|
20506
20509
|
return r && (r.preprocessForPrint && (s.ast = await Cv(s.ast, i)), r.massage && (s.ast = t9(s.ast, i))), s;
|
|
20507
20510
|
}
|
|
20508
20511
|
async function p9(e, t) {
|
|
20509
|
-
t = await
|
|
20512
|
+
t = await Ks(t);
|
|
20510
20513
|
const r = await jl(e, t);
|
|
20511
20514
|
return Ed(r, t);
|
|
20512
20515
|
}
|
|
@@ -20520,17 +20523,17 @@ async function h9(e, t) {
|
|
|
20520
20523
|
return n;
|
|
20521
20524
|
}
|
|
20522
20525
|
async function d9(e, t) {
|
|
20523
|
-
t = await
|
|
20526
|
+
t = await Ks(t);
|
|
20524
20527
|
const {
|
|
20525
20528
|
ast: r
|
|
20526
20529
|
} = await io(e, t);
|
|
20527
20530
|
return jl(r, t);
|
|
20528
20531
|
}
|
|
20529
20532
|
async function m9(e, t) {
|
|
20530
|
-
return Ed(e, await
|
|
20533
|
+
return Ed(e, await Ks(t));
|
|
20531
20534
|
}
|
|
20532
20535
|
var Iv = {};
|
|
20533
|
-
|
|
20536
|
+
Vs(Iv, {
|
|
20534
20537
|
CATEGORY_CONFIG: () => y9,
|
|
20535
20538
|
CATEGORY_EDITOR: () => g9,
|
|
20536
20539
|
CATEGORY_FORMAT: () => D9,
|
|
@@ -20540,7 +20543,7 @@ Hs(Iv, {
|
|
|
20540
20543
|
CATEGORY_SPECIAL: () => v9
|
|
20541
20544
|
});
|
|
20542
20545
|
var y9 = "Config", g9 = "Editor", D9 = "Format", E9 = "Other", b9 = "Output", S9 = "Global", v9 = "Special", Ov = {};
|
|
20543
|
-
|
|
20546
|
+
Vs(Ov, {
|
|
20544
20547
|
languages: () => K9,
|
|
20545
20548
|
options: () => q9,
|
|
20546
20549
|
parsers: () => W9,
|
|
@@ -21529,10 +21532,10 @@ function i4(e, t) {
|
|
|
21529
21532
|
);
|
|
21530
21533
|
}
|
|
21531
21534
|
var s4 = i4, a4 = "3.3.3", Nv = {};
|
|
21532
|
-
|
|
21535
|
+
Vs(Nv, {
|
|
21533
21536
|
addDanglingComment: () => Oi,
|
|
21534
|
-
addLeadingComment: () =>
|
|
21535
|
-
addTrailingComment: () =>
|
|
21537
|
+
addLeadingComment: () => gs,
|
|
21538
|
+
addTrailingComment: () => Ds,
|
|
21536
21539
|
getAlignmentSize: () => bd,
|
|
21537
21540
|
getIndentSize: () => p4,
|
|
21538
21541
|
getMaxContinuousCount: () => m4,
|
|
@@ -21728,8 +21731,8 @@ var O4 = Kn(j6), N4 = Kn(Ad, 0), B4 = {
|
|
|
21728
21731
|
printToDoc: Kn(d9),
|
|
21729
21732
|
printDocToString: Kn(m9),
|
|
21730
21733
|
mockable: ld
|
|
21731
|
-
}, L4 = cS,
|
|
21732
|
-
Object.defineProperty(
|
|
21734
|
+
}, L4 = cS, Ws = {};
|
|
21735
|
+
Object.defineProperty(Ws, "__esModule", {
|
|
21733
21736
|
value: !0
|
|
21734
21737
|
});
|
|
21735
21738
|
function R4(e, t) {
|
|
@@ -22119,13 +22122,13 @@ const te = Object.assign({}, An(M4), An(j4), An($4), An`pipelineOperator`(V4)),
|
|
|
22119
22122
|
value: e[t]
|
|
22120
22123
|
});
|
|
22121
22124
|
};
|
|
22122
|
-
function
|
|
22125
|
+
function ta(e) {
|
|
22123
22126
|
return K0(e.loc.start, "index"), K0(e.loc.end, "index"), e;
|
|
22124
22127
|
}
|
|
22125
22128
|
var W4 = (e) => class extends e {
|
|
22126
22129
|
parse() {
|
|
22127
|
-
const r =
|
|
22128
|
-
return this.options.tokens && (r.tokens = r.tokens.map(
|
|
22130
|
+
const r = ta(super.parse());
|
|
22131
|
+
return this.options.tokens && (r.tokens = r.tokens.map(ta)), r;
|
|
22129
22132
|
}
|
|
22130
22133
|
parseRegExpLiteral({
|
|
22131
22134
|
pattern: r,
|
|
@@ -22318,13 +22321,13 @@ var W4 = (e) => class extends e {
|
|
|
22318
22321
|
return r.type === "Property" && (r.method || r.kind === "get" || r.kind === "set");
|
|
22319
22322
|
}
|
|
22320
22323
|
finishNodeAt(r, n, i) {
|
|
22321
|
-
return
|
|
22324
|
+
return ta(super.finishNodeAt(r, n, i));
|
|
22322
22325
|
}
|
|
22323
22326
|
resetStartLocation(r, n) {
|
|
22324
|
-
super.resetStartLocation(r, n),
|
|
22327
|
+
super.resetStartLocation(r, n), ta(r);
|
|
22325
22328
|
}
|
|
22326
22329
|
resetEndLocation(r, n = this.state.lastTokEndLoc) {
|
|
22327
|
-
super.resetEndLocation(r, n),
|
|
22330
|
+
super.resetEndLocation(r, n), ta(r);
|
|
22328
22331
|
}
|
|
22329
22332
|
};
|
|
22330
22333
|
class Ea {
|
|
@@ -22339,7 +22342,7 @@ const ft = {
|
|
|
22339
22342
|
j_expr: new Ea("<tag>...</tag>", !0)
|
|
22340
22343
|
};
|
|
22341
22344
|
ft.template = new Ea("`", !0);
|
|
22342
|
-
const ze = !0, Te = !0, df = !0,
|
|
22345
|
+
const ze = !0, Te = !0, df = !0, ra = !0, Mn = !0, G4 = !0;
|
|
22343
22346
|
class Lv {
|
|
22344
22347
|
constructor(t, r = {}) {
|
|
22345
22348
|
this.label = void 0, this.keyword = void 0, this.beforeExpr = void 0, this.startsExpr = void 0, this.rightAssociative = void 0, this.isLoop = void 0, this.isAssign = void 0, this.prefix = void 0, this.postfix = void 0, this.binop = void 0, this.label = t, this.keyword = r.keyword, this.beforeExpr = !!r.beforeExpr, this.startsExpr = !!r.startsExpr, this.rightAssociative = !!r.rightAssociative, this.isLoop = !!r.isLoop, this.isAssign = !!r.isAssign, this.prefix = !!r.prefix, this.postfix = !!r.postfix, this.binop = r.binop != null ? r.binop : null, this.updateContext = null;
|
|
@@ -22446,23 +22449,23 @@ const Y4 = {
|
|
|
22446
22449
|
interpreterDirective: ke("#!..."),
|
|
22447
22450
|
eq: ke("=", {
|
|
22448
22451
|
beforeExpr: ze,
|
|
22449
|
-
isAssign:
|
|
22452
|
+
isAssign: ra
|
|
22450
22453
|
}),
|
|
22451
22454
|
assign: ke("_=", {
|
|
22452
22455
|
beforeExpr: ze,
|
|
22453
|
-
isAssign:
|
|
22456
|
+
isAssign: ra
|
|
22454
22457
|
}),
|
|
22455
22458
|
slashAssign: ke("_=", {
|
|
22456
22459
|
beforeExpr: ze,
|
|
22457
|
-
isAssign:
|
|
22460
|
+
isAssign: ra
|
|
22458
22461
|
}),
|
|
22459
22462
|
xorAssign: ke("_=", {
|
|
22460
22463
|
beforeExpr: ze,
|
|
22461
|
-
isAssign:
|
|
22464
|
+
isAssign: ra
|
|
22462
22465
|
}),
|
|
22463
22466
|
moduloAssign: ke("_=", {
|
|
22464
22467
|
beforeExpr: ze,
|
|
22465
|
-
isAssign:
|
|
22468
|
+
isAssign: ra
|
|
22466
22469
|
}),
|
|
22467
22470
|
incDec: ke("++/--", {
|
|
22468
22471
|
prefix: Mn,
|
|
@@ -22846,7 +22849,7 @@ function Vp(e, t) {
|
|
|
22846
22849
|
function vn(e) {
|
|
22847
22850
|
return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && s5.test(String.fromCharCode(e)) : Vp(e, jv);
|
|
22848
22851
|
}
|
|
22849
|
-
function
|
|
22852
|
+
function vs(e) {
|
|
22850
22853
|
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && a5.test(String.fromCharCode(e)) : Vp(e, jv) || Vp(e, o5);
|
|
22851
22854
|
}
|
|
22852
22855
|
const Rd = {
|
|
@@ -23048,7 +23051,7 @@ function D5(e, t) {
|
|
|
23048
23051
|
function Ka(e, t) {
|
|
23049
23052
|
e.innerComments === void 0 ? e.innerComments = t : e.innerComments.unshift(...t);
|
|
23050
23053
|
}
|
|
23051
|
-
function
|
|
23054
|
+
function na(e, t, r) {
|
|
23052
23055
|
let n = null, i = t.length;
|
|
23053
23056
|
for (; n === null && i > 0; )
|
|
23054
23057
|
n = t[--i];
|
|
@@ -23099,11 +23102,11 @@ class E5 extends g5 {
|
|
|
23099
23102
|
case "ObjectExpression":
|
|
23100
23103
|
case "ObjectPattern":
|
|
23101
23104
|
case "RecordExpression":
|
|
23102
|
-
|
|
23105
|
+
na(n, n.properties, t);
|
|
23103
23106
|
break;
|
|
23104
23107
|
case "CallExpression":
|
|
23105
23108
|
case "OptionalCallExpression":
|
|
23106
|
-
|
|
23109
|
+
na(n, n.arguments, t);
|
|
23107
23110
|
break;
|
|
23108
23111
|
case "FunctionDeclaration":
|
|
23109
23112
|
case "FunctionExpression":
|
|
@@ -23111,16 +23114,16 @@ class E5 extends g5 {
|
|
|
23111
23114
|
case "ObjectMethod":
|
|
23112
23115
|
case "ClassMethod":
|
|
23113
23116
|
case "ClassPrivateMethod":
|
|
23114
|
-
|
|
23117
|
+
na(n, n.params, t);
|
|
23115
23118
|
break;
|
|
23116
23119
|
case "ArrayExpression":
|
|
23117
23120
|
case "ArrayPattern":
|
|
23118
23121
|
case "TupleExpression":
|
|
23119
|
-
|
|
23122
|
+
na(n, n.elements, t);
|
|
23120
23123
|
break;
|
|
23121
23124
|
case "ExportNamedDeclaration":
|
|
23122
23125
|
case "ImportDeclaration":
|
|
23123
|
-
|
|
23126
|
+
na(n, n.specifiers, t);
|
|
23124
23127
|
break;
|
|
23125
23128
|
default:
|
|
23126
23129
|
Ka(n, r);
|
|
@@ -23173,7 +23176,7 @@ class E5 extends g5 {
|
|
|
23173
23176
|
}
|
|
23174
23177
|
}
|
|
23175
23178
|
const b5 = /\r\n|[\r\n\u2028\u2029]/, jo = new RegExp(b5.source, "g");
|
|
23176
|
-
function
|
|
23179
|
+
function Ts(e) {
|
|
23177
23180
|
switch (e) {
|
|
23178
23181
|
case 10:
|
|
23179
23182
|
case 13:
|
|
@@ -23186,7 +23189,7 @@ function As(e) {
|
|
|
23186
23189
|
}
|
|
23187
23190
|
function G0(e, t, r) {
|
|
23188
23191
|
for (let n = t; n < r; n++)
|
|
23189
|
-
if (
|
|
23192
|
+
if (Ts(e.charCodeAt(n)))
|
|
23190
23193
|
return !0;
|
|
23191
23194
|
return !1;
|
|
23192
23195
|
}
|
|
@@ -23525,7 +23528,7 @@ function Wv(e, t, r, n, i, s) {
|
|
|
23525
23528
|
pos: t
|
|
23526
23529
|
};
|
|
23527
23530
|
}
|
|
23528
|
-
function
|
|
23531
|
+
function ia(e, t, r) {
|
|
23529
23532
|
return new Qn(r, e - t, e);
|
|
23530
23533
|
}
|
|
23531
23534
|
const C5 = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]);
|
|
@@ -23537,7 +23540,7 @@ class Vn {
|
|
|
23537
23540
|
class P5 extends E5 {
|
|
23538
23541
|
constructor(t, r) {
|
|
23539
23542
|
super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = {
|
|
23540
|
-
invalidDigit: (n, i, s, a) => this.options.errorRecovery ? (this.raise(te.InvalidDigit,
|
|
23543
|
+
invalidDigit: (n, i, s, a) => this.options.errorRecovery ? (this.raise(te.InvalidDigit, ia(n, i, s), {
|
|
23541
23544
|
radix: a
|
|
23542
23545
|
}), !0) : !1,
|
|
23543
23546
|
numericSeparatorInEscapeSequence: this.errorBuilder(te.NumericSeparatorInEscapeSequence),
|
|
@@ -23547,15 +23550,15 @@ class P5 extends E5 {
|
|
|
23547
23550
|
invalidCodePoint: this.errorBuilder(te.InvalidCodePoint)
|
|
23548
23551
|
}), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, {
|
|
23549
23552
|
strictNumericEscape: (n, i, s) => {
|
|
23550
|
-
this.recordStrictModeErrors(te.StrictNumericEscape,
|
|
23553
|
+
this.recordStrictModeErrors(te.StrictNumericEscape, ia(n, i, s));
|
|
23551
23554
|
},
|
|
23552
23555
|
unterminated: (n, i, s) => {
|
|
23553
|
-
throw this.raise(te.UnterminatedString,
|
|
23556
|
+
throw this.raise(te.UnterminatedString, ia(n - 1, i, s));
|
|
23554
23557
|
}
|
|
23555
23558
|
}), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, {
|
|
23556
23559
|
strictNumericEscape: this.errorBuilder(te.StrictNumericEscape),
|
|
23557
23560
|
unterminated: (n, i, s) => {
|
|
23558
|
-
throw this.raise(te.UnterminatedTemplate,
|
|
23561
|
+
throw this.raise(te.UnterminatedTemplate, ia(n, i, s));
|
|
23559
23562
|
}
|
|
23560
23563
|
}), this.state = new $d(), this.state.init(t), this.input = r, this.length = r.length, this.comments = [], this.isLookahead = !1;
|
|
23561
23564
|
}
|
|
@@ -23656,7 +23659,7 @@ class P5 extends E5 {
|
|
|
23656
23659
|
this.isLookahead || (n = this.state.curPosition());
|
|
23657
23660
|
let i = this.input.charCodeAt(this.state.pos += t);
|
|
23658
23661
|
if (this.state.pos < this.length)
|
|
23659
|
-
for (; !
|
|
23662
|
+
for (; !Ts(i) && ++this.state.pos < this.length; )
|
|
23660
23663
|
i = this.input.charCodeAt(this.state.pos);
|
|
23661
23664
|
if (this.isLookahead) return;
|
|
23662
23665
|
const s = this.state.pos, o = {
|
|
@@ -23770,7 +23773,7 @@ class P5 extends E5 {
|
|
|
23770
23773
|
let t = this.input.charCodeAt(this.state.pos + 1);
|
|
23771
23774
|
if (t !== 33) return !1;
|
|
23772
23775
|
const r = this.state.pos;
|
|
23773
|
-
for (this.state.pos += 1; !
|
|
23776
|
+
for (this.state.pos += 1; !Ts(t) && ++this.state.pos < this.length; )
|
|
23774
23777
|
t = this.input.charCodeAt(this.state.pos);
|
|
23775
23778
|
const n = this.input.slice(r + 2, this.state.pos);
|
|
23776
23779
|
return this.finishToken(28, n), !0;
|
|
@@ -24024,7 +24027,7 @@ class P5 extends E5 {
|
|
|
24024
24027
|
if (s >= this.length)
|
|
24025
24028
|
throw this.raise(te.UnterminatedRegExp, Zt(t, 1));
|
|
24026
24029
|
const l = this.input.charCodeAt(s);
|
|
24027
|
-
if (
|
|
24030
|
+
if (Ts(l))
|
|
24028
24031
|
throw this.raise(te.UnterminatedRegExp, Zt(t, 1));
|
|
24029
24032
|
if (n)
|
|
24030
24033
|
n = !1;
|
|
@@ -24046,7 +24049,7 @@ class P5 extends E5 {
|
|
|
24046
24049
|
const l = this.codePointAtPos(s), c = String.fromCharCode(l);
|
|
24047
24050
|
if (C5.has(l))
|
|
24048
24051
|
l === 118 ? o.includes("u") && this.raise(te.IncompatibleRegExpUVFlags, u()) : l === 117 && o.includes("v") && this.raise(te.IncompatibleRegExpUVFlags, u()), o.includes(c) && this.raise(te.DuplicateRegExpFlags, u());
|
|
24049
|
-
else if (
|
|
24052
|
+
else if (vs(l) || l === 92)
|
|
24050
24053
|
this.raise(te.MalformedRegExpFlags, u());
|
|
24051
24054
|
else
|
|
24052
24055
|
break;
|
|
@@ -24154,11 +24157,11 @@ class P5 extends E5 {
|
|
|
24154
24157
|
let i = this.state.pos;
|
|
24155
24158
|
for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) {
|
|
24156
24159
|
const s = this.codePointAtPos(this.state.pos);
|
|
24157
|
-
if (
|
|
24160
|
+
if (vs(s))
|
|
24158
24161
|
this.state.pos += s <= 65535 ? 1 : 2;
|
|
24159
24162
|
else if (s === 92) {
|
|
24160
24163
|
this.state.containsEsc = !0, r += this.input.slice(i, this.state.pos);
|
|
24161
|
-
const a = this.state.curPosition(), o = this.state.pos === n ? vn :
|
|
24164
|
+
const a = this.state.curPosition(), o = this.state.pos === n ? vn : vs;
|
|
24162
24165
|
if (this.input.charCodeAt(++this.state.pos) !== 117) {
|
|
24163
24166
|
this.raise(te.MissingUnicodeEscape, this.state.curPosition()), i = this.state.pos - 1;
|
|
24164
24167
|
continue;
|
|
@@ -24220,7 +24223,7 @@ class P5 extends E5 {
|
|
|
24220
24223
|
}
|
|
24221
24224
|
errorBuilder(t) {
|
|
24222
24225
|
return (r, n, i) => {
|
|
24223
|
-
this.raise(t,
|
|
24226
|
+
this.raise(t, ia(r, n, i));
|
|
24224
24227
|
};
|
|
24225
24228
|
}
|
|
24226
24229
|
}
|
|
@@ -24413,7 +24416,7 @@ class B5 extends P5 {
|
|
|
24413
24416
|
const n = t + r.length;
|
|
24414
24417
|
if (this.input.slice(t, n) === r) {
|
|
24415
24418
|
const i = this.input.charCodeAt(n);
|
|
24416
|
-
return !(
|
|
24419
|
+
return !(vs(i) || (i & 64512) === 55296);
|
|
24417
24420
|
}
|
|
24418
24421
|
return !1;
|
|
24419
24422
|
}
|
|
@@ -26267,13 +26270,13 @@ const q5 = {
|
|
|
26267
26270
|
function jn(e) {
|
|
26268
26271
|
return e ? e.type === "JSXOpeningFragment" || e.type === "JSXClosingFragment" : !1;
|
|
26269
26272
|
}
|
|
26270
|
-
function
|
|
26273
|
+
function Es(e) {
|
|
26271
26274
|
if (e.type === "JSXIdentifier")
|
|
26272
26275
|
return e.name;
|
|
26273
26276
|
if (e.type === "JSXNamespacedName")
|
|
26274
26277
|
return e.namespace.name + ":" + e.name.name;
|
|
26275
26278
|
if (e.type === "JSXMemberExpression")
|
|
26276
|
-
return
|
|
26279
|
+
return Es(e.object) + "." + Es(e.property);
|
|
26277
26280
|
throw new Error("Node had unexpected type: " + e.type);
|
|
26278
26281
|
}
|
|
26279
26282
|
var K5 = (e) => class extends e {
|
|
@@ -26298,7 +26301,7 @@ var K5 = (e) => class extends e {
|
|
|
26298
26301
|
case 62:
|
|
26299
26302
|
case 125:
|
|
26300
26303
|
default:
|
|
26301
|
-
|
|
26304
|
+
Ts(i) ? (r += this.input.slice(n, this.state.pos), r += this.jsxReadNewLine(!0), n = this.state.pos) : ++this.state.pos;
|
|
26302
26305
|
}
|
|
26303
26306
|
}
|
|
26304
26307
|
}
|
|
@@ -26316,7 +26319,7 @@ var K5 = (e) => class extends e {
|
|
|
26316
26319
|
throw this.raise(te.UnterminatedString, this.state.startLoc);
|
|
26317
26320
|
const s = this.input.charCodeAt(this.state.pos);
|
|
26318
26321
|
if (s === r) break;
|
|
26319
|
-
s === 38 ? (n += this.input.slice(i, this.state.pos), n += this.jsxReadEntity(), i = this.state.pos) :
|
|
26322
|
+
s === 38 ? (n += this.input.slice(i, this.state.pos), n += this.jsxReadEntity(), i = this.state.pos) : Ts(s) ? (n += this.input.slice(i, this.state.pos), n += this.jsxReadNewLine(!1), i = this.state.pos) : ++this.state.pos;
|
|
26320
26323
|
}
|
|
26321
26324
|
n += this.input.slice(i, this.state.pos++), this.finishToken(133, n);
|
|
26322
26325
|
}
|
|
@@ -26346,7 +26349,7 @@ var K5 = (e) => class extends e {
|
|
|
26346
26349
|
const n = this.state.pos;
|
|
26347
26350
|
do
|
|
26348
26351
|
r = this.input.charCodeAt(++this.state.pos);
|
|
26349
|
-
while (
|
|
26352
|
+
while (vs(r) || r === 45);
|
|
26350
26353
|
this.finishToken(140, this.input.slice(n, this.state.pos));
|
|
26351
26354
|
}
|
|
26352
26355
|
jsxParseIdentifier() {
|
|
@@ -26441,9 +26444,9 @@ var K5 = (e) => class extends e {
|
|
|
26441
26444
|
this.unexpected();
|
|
26442
26445
|
}
|
|
26443
26446
|
jn(s) && !jn(a) && a !== null ? this.raise(Fi.MissingClosingTagFragment, a) : !jn(s) && jn(a) ? this.raise(Fi.MissingClosingTagElement, a, {
|
|
26444
|
-
openingTagName:
|
|
26445
|
-
}) : !jn(s) && !jn(a) &&
|
|
26446
|
-
openingTagName:
|
|
26447
|
+
openingTagName: Es(s.name)
|
|
26448
|
+
}) : !jn(s) && !jn(a) && Es(a.name) !== Es(s.name) && this.raise(Fi.MissingClosingTagElement, a, {
|
|
26449
|
+
openingTagName: Es(s.name)
|
|
26447
26450
|
});
|
|
26448
26451
|
}
|
|
26449
26452
|
if (jn(s) ? (n.openingFragment = s, n.closingFragment = a) : (n.openingElement = s, n.closingElement = a), n.children = i, this.match(47))
|
|
@@ -29791,7 +29794,7 @@ class fj extends oj {
|
|
|
29791
29794
|
if (vn(t)) {
|
|
29792
29795
|
if (Ef.lastIndex = r, Ef.test(this.input)) {
|
|
29793
29796
|
const n = this.codePointAtPos(Ef.lastIndex);
|
|
29794
|
-
if (!
|
|
29797
|
+
if (!vs(n) && n !== 92)
|
|
29795
29798
|
return !1;
|
|
29796
29799
|
}
|
|
29797
29800
|
return !0;
|
|
@@ -30800,10 +30803,10 @@ function yj(e) {
|
|
|
30800
30803
|
}
|
|
30801
30804
|
return n;
|
|
30802
30805
|
}
|
|
30803
|
-
var gj =
|
|
30804
|
-
|
|
30805
|
-
|
|
30806
|
-
var bf = {}, mt = {}, Uo = {},
|
|
30806
|
+
var gj = Ws.parse = pj;
|
|
30807
|
+
Ws.parseExpression = hj;
|
|
30808
|
+
Ws.tokTypes = mj;
|
|
30809
|
+
var bf = {}, mt = {}, Uo = {}, sa = {}, Or = {}, Qe = {};
|
|
30807
30810
|
Object.defineProperty(Qe, "__esModule", {
|
|
30808
30811
|
value: !0
|
|
30809
30812
|
});
|
|
@@ -31147,7 +31150,7 @@ var Af, og;
|
|
|
31147
31150
|
function Sj() {
|
|
31148
31151
|
if (og) return Af;
|
|
31149
31152
|
og = 1;
|
|
31150
|
-
const e =
|
|
31153
|
+
const e = js, t = Ua, r = bj(), { env: n } = process;
|
|
31151
31154
|
let i;
|
|
31152
31155
|
r("no-color") || r("no-colors") || r("color=false") || r("color=never") ? i = 0 : (r("color") || r("colors") || r("color=true") || r("color=always")) && (i = 1);
|
|
31153
31156
|
function s() {
|
|
@@ -31352,7 +31355,7 @@ function vj() {
|
|
|
31352
31355
|
}(Ho, Ho.exports)), Ho.exports;
|
|
31353
31356
|
}
|
|
31354
31357
|
typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? qp.exports = Ej() : qp.exports = vj();
|
|
31355
|
-
var Tj = qp.exports,
|
|
31358
|
+
var Tj = qp.exports, aa = {}, oa = {}, Cf = {}, Ul = {}, Vl = {}, Hl = {}, j = {}, so = {};
|
|
31356
31359
|
Object.defineProperty(so, "__esModule", {
|
|
31357
31360
|
value: !0
|
|
31358
31361
|
});
|
|
@@ -31364,11 +31367,11 @@ function Aj(e, t) {
|
|
|
31364
31367
|
return !1;
|
|
31365
31368
|
return !0;
|
|
31366
31369
|
}
|
|
31367
|
-
var
|
|
31368
|
-
Object.defineProperty(
|
|
31370
|
+
var Gs = {};
|
|
31371
|
+
Object.defineProperty(Gs, "__esModule", {
|
|
31369
31372
|
value: !0
|
|
31370
31373
|
});
|
|
31371
|
-
|
|
31374
|
+
Gs.default = Cj;
|
|
31372
31375
|
const lg = /* @__PURE__ */ new Set();
|
|
31373
31376
|
function Cj(e, t, r = "") {
|
|
31374
31377
|
if (lg.has(e)) return;
|
|
@@ -31706,7 +31709,7 @@ j.isWhile = DH;
|
|
|
31706
31709
|
j.isWhileStatement = v7;
|
|
31707
31710
|
j.isWithStatement = T7;
|
|
31708
31711
|
j.isYieldExpression = Y7;
|
|
31709
|
-
var K = so, ao =
|
|
31712
|
+
var K = so, ao = Gs;
|
|
31710
31713
|
function _j(e, t) {
|
|
31711
31714
|
return !e || e.type !== "ArrayExpression" ? !1 : t == null || (0, K.default)(e, t);
|
|
31712
31715
|
}
|
|
@@ -33637,22 +33640,22 @@ Object.defineProperty(Hl, "__esModule", {
|
|
|
33637
33640
|
value: !0
|
|
33638
33641
|
});
|
|
33639
33642
|
Hl.default = aq;
|
|
33640
|
-
var
|
|
33643
|
+
var ua = j;
|
|
33641
33644
|
function aq(e, t, r) {
|
|
33642
|
-
if (!(0,
|
|
33645
|
+
if (!(0, ua.isMemberExpression)(e)) return !1;
|
|
33643
33646
|
const n = Array.isArray(t) ? t : t.split("."), i = [];
|
|
33644
33647
|
let s;
|
|
33645
|
-
for (s = e; (0,
|
|
33648
|
+
for (s = e; (0, ua.isMemberExpression)(s); s = s.object)
|
|
33646
33649
|
i.push(s.property);
|
|
33647
33650
|
if (i.push(s), i.length < n.length || !r && i.length > n.length) return !1;
|
|
33648
33651
|
for (let a = 0, o = i.length - 1; a < n.length; a++, o--) {
|
|
33649
33652
|
const u = i[o];
|
|
33650
33653
|
let l;
|
|
33651
|
-
if ((0,
|
|
33654
|
+
if ((0, ua.isIdentifier)(u))
|
|
33652
33655
|
l = u.name;
|
|
33653
|
-
else if ((0,
|
|
33656
|
+
else if ((0, ua.isStringLiteral)(u))
|
|
33654
33657
|
l = u.value;
|
|
33655
|
-
else if ((0,
|
|
33658
|
+
else if ((0, ua.isThisExpression)(u))
|
|
33656
33659
|
l = "this";
|
|
33657
33660
|
else
|
|
33658
33661
|
return !1;
|
|
@@ -33685,13 +33688,13 @@ function fq(e) {
|
|
|
33685
33688
|
return !!e && /^[a-z]/.test(e);
|
|
33686
33689
|
}
|
|
33687
33690
|
var qo = {}, Ko = {}, M = {}, Wo = {}, ls = {}, Pf = {};
|
|
33688
|
-
let
|
|
33691
|
+
let la = null;
|
|
33689
33692
|
function ja(e) {
|
|
33690
|
-
if (
|
|
33691
|
-
const t =
|
|
33692
|
-
return
|
|
33693
|
+
if (la !== null && typeof la.property) {
|
|
33694
|
+
const t = la;
|
|
33695
|
+
return la = ja.prototype = null, t;
|
|
33693
33696
|
}
|
|
33694
|
-
return
|
|
33697
|
+
return la = ja.prototype = e ?? /* @__PURE__ */ Object.create(null), new ja();
|
|
33695
33698
|
}
|
|
33696
33699
|
ja();
|
|
33697
33700
|
var pq = function(t) {
|
|
@@ -37122,7 +37125,7 @@ function sr() {
|
|
|
37122
37125
|
wg = 1, Object.defineProperty(M, "__esModule", {
|
|
37123
37126
|
value: !0
|
|
37124
37127
|
}), M.anyTypeAnnotation = To, M.argumentPlaceholder = jA, M.arrayExpression = r, M.arrayPattern = Se, M.arrayTypeAnnotation = De, M.arrowFunctionExpression = xe, M.assignmentExpression = n, M.assignmentPattern = Ie, M.awaitExpression = ht, M.bigIntLiteral = un, M.binaryExpression = i, M.bindExpression = $A, M.blockStatement = u, M.booleanLiteral = C, M.booleanLiteralTypeAnnotation = wm, M.booleanTypeAnnotation = Pt, M.breakStatement = l, M.callExpression = c, M.catchClause = f, M.classAccessorProperty = Hr, M.classBody = ot, M.classDeclaration = Ve, M.classExpression = de, M.classImplements = st, M.classMethod = fe, M.classPrivateMethod = bi, M.classPrivateProperty = Ln, M.classProperty = $t, M.conditionalExpression = p, M.continueStatement = h, M.debuggerStatement = d, M.decimalLiteral = GA, M.declareClass = hr, M.declareExportAllDeclaration = C1, M.declareExportDeclaration = A1, M.declareFunction = ar, M.declareInterface = D1, M.declareModule = E1, M.declareModuleExports = b1, M.declareOpaqueType = v1, M.declareTypeAlias = S1, M.declareVariable = T1, M.declaredPredicate = P1, M.decorator = VA, M.directive = a, M.directiveLiteral = o, M.doExpression = HA, M.doWhileStatement = m, M.emptyStatement = g, M.emptyTypeAnnotation = R1, M.enumBooleanBody = fA, M.enumBooleanMember = mA, M.enumDeclaration = cA, M.enumDefaultedMember = DA, M.enumNumberBody = pA, M.enumNumberMember = yA, M.enumStringBody = hA, M.enumStringMember = gA, M.enumSymbolBody = dA, M.existsTypeAnnotation = _1, M.exportAllDeclaration = ee, M.exportDefaultDeclaration = G, M.exportDefaultSpecifier = qA, M.exportNamedDeclaration = H, M.exportNamespaceSpecifier = wr, M.exportSpecifier = P, M.expressionStatement = D, M.file = y, M.forInStatement = E, M.forOfStatement = $, M.forStatement = N, M.functionDeclaration = A, M.functionExpression = R, M.functionTypeAnnotation = x1, M.functionTypeParam = F1, M.genericTypeAnnotation = w1, M.identifier = w, M.ifStatement = x, M.import = Fr, M.importAttribute = UA, M.importDeclaration = Z, M.importDefaultSpecifier = se, M.importExpression = Fe, M.importNamespaceSpecifier = le, M.importSpecifier = he, M.indexedAccessType = EA, M.inferredPredicate = I1, M.interfaceDeclaration = N1, M.interfaceExtends = O1, M.interfaceTypeAnnotation = B1, M.interpreterDirective = s, M.intersectionTypeAnnotation = k1, M.jSXAttribute = M.jsxAttribute = SA, M.jSXClosingElement = M.jsxClosingElement = vA, M.jSXClosingFragment = M.jsxClosingFragment = kA, M.jSXElement = M.jsxElement = TA, M.jSXEmptyExpression = M.jsxEmptyExpression = AA, M.jSXExpressionContainer = M.jsxExpressionContainer = CA, M.jSXFragment = M.jsxFragment = NA, M.jSXIdentifier = M.jsxIdentifier = _A, M.jSXMemberExpression = M.jsxMemberExpression = xA, M.jSXNamespacedName = M.jsxNamespacedName = FA, M.jSXOpeningElement = M.jsxOpeningElement = wA, M.jSXOpeningFragment = M.jsxOpeningFragment = BA, M.jSXSpreadAttribute = M.jsxSpreadAttribute = IA, M.jSXSpreadChild = M.jsxSpreadChild = PA, M.jSXText = M.jsxText = OA, M.labeledStatement = I, M.logicalExpression = b, M.memberExpression = T, M.metaProperty = qe, M.mixedTypeAnnotation = L1, M.moduleExpression = YA, M.newExpression = U, M.noop = LA, M.nullLiteral = _, M.nullLiteralTypeAnnotation = ve, M.nullableTypeAnnotation = M1, M.numberLiteral = cP, M.numberLiteralTypeAnnotation = j1, M.numberTypeAnnotation = $1, M.numericLiteral = S, M.objectExpression = O, M.objectMethod = L, M.objectPattern = $e, M.objectProperty = z, M.objectTypeAnnotation = U1, M.objectTypeCallProperty = H1, M.objectTypeIndexer = q1, M.objectTypeInternalSlot = V1, M.objectTypeProperty = K1, M.objectTypeSpreadProperty = W1, M.opaqueType = G1, M.optionalCallExpression = pr, M.optionalIndexedAccessType = bA, M.optionalMemberExpression = Ir, M.parenthesizedExpression = ie, M.pipelineBareFunction = zA, M.pipelinePrimaryTopicReference = QA, M.pipelineTopicExpression = JA, M.placeholder = RA, M.privateName = Rn, M.program = v, M.qualifiedTypeIdentifier = Y1, M.recordExpression = KA, M.regExpLiteral = k, M.regexLiteral = fP, M.restElement = re, M.restProperty = pP, M.returnStatement = X, M.sequenceExpression = oe, M.spreadElement = Ke, M.spreadProperty = hP, M.staticBlock = vo, M.stringLiteral = B, M.stringLiteralTypeAnnotation = X1, M.stringTypeAnnotation = J1, M.super = Ge, M.switchCase = J, M.switchStatement = Y, M.symbolTypeAnnotation = z1, M.taggedTemplateExpression = Me, M.templateElement = W, M.templateLiteral = Ae, M.thisExpression = ne, M.thisTypeAnnotation = Q1, M.throwStatement = ae, M.topicReference = XA, M.tryStatement = ce, M.tSAnyKeyword = M.tsAnyKeyword = uC, M.tSArrayType = M.tsArrayType = xC, M.tSAsExpression = M.tsAsExpression = GC, M.tSBigIntKeyword = M.tsBigIntKeyword = cC, M.tSBooleanKeyword = M.tsBooleanKeyword = lC, M.tSCallSignatureDeclaration = M.tsCallSignatureDeclaration = nC, M.tSConditionalType = M.tsConditionalType = kC, M.tSConstructSignatureDeclaration = M.tsConstructSignatureDeclaration = iC, M.tSConstructorType = M.tsConstructorType = TC, M.tSDeclareFunction = M.tsDeclareFunction = eC, M.tSDeclareMethod = M.tsDeclareMethod = tC, M.tSEnumDeclaration = M.tsEnumDeclaration = JC, M.tSEnumMember = M.tsEnumMember = zC, M.tSExportAssignment = M.tsExportAssignment = iP, M.tSExpressionWithTypeArguments = M.tsExpressionWithTypeArguments = VC, M.tSExternalModuleReference = M.tsExternalModuleReference = rP, M.tSFunctionType = M.tsFunctionType = vC, M.tSImportEqualsDeclaration = M.tsImportEqualsDeclaration = tP, M.tSImportType = M.tsImportType = eP, M.tSIndexSignature = M.tsIndexSignature = oC, M.tSIndexedAccessType = M.tsIndexedAccessType = jC, M.tSInferType = M.tsInferType = LC, M.tSInstantiationExpression = M.tsInstantiationExpression = WC, M.tSInterfaceBody = M.tsInterfaceBody = qC, M.tSInterfaceDeclaration = M.tsInterfaceDeclaration = HC, M.tSIntersectionType = M.tsIntersectionType = BC, M.tSIntrinsicKeyword = M.tsIntrinsicKeyword = fC, M.tSLiteralType = M.tsLiteralType = UC, M.tSMappedType = M.tsMappedType = $C, M.tSMethodSignature = M.tsMethodSignature = aC, M.tSModuleBlock = M.tsModuleBlock = ZC, M.tSModuleDeclaration = M.tsModuleDeclaration = QC, M.tSNamedTupleMember = M.tsNamedTupleMember = OC, M.tSNamespaceExportDeclaration = M.tsNamespaceExportDeclaration = sP, M.tSNeverKeyword = M.tsNeverKeyword = pC, M.tSNonNullExpression = M.tsNonNullExpression = nP, M.tSNullKeyword = M.tsNullKeyword = hC, M.tSNumberKeyword = M.tsNumberKeyword = dC, M.tSObjectKeyword = M.tsObjectKeyword = mC, M.tSOptionalType = M.tsOptionalType = wC, M.tSParameterProperty = M.tsParameterProperty = ZA, M.tSParenthesizedType = M.tsParenthesizedType = RC, M.tSPropertySignature = M.tsPropertySignature = sC, M.tSQualifiedName = M.tsQualifiedName = rC, M.tSRestType = M.tsRestType = IC, M.tSSatisfiesExpression = M.tsSatisfiesExpression = YC, M.tSStringKeyword = M.tsStringKeyword = yC, M.tSSymbolKeyword = M.tsSymbolKeyword = gC, M.tSThisType = M.tsThisType = SC, M.tSTupleType = M.tsTupleType = FC, M.tSTypeAliasDeclaration = M.tsTypeAliasDeclaration = KC, M.tSTypeAnnotation = M.tsTypeAnnotation = aP, M.tSTypeAssertion = M.tsTypeAssertion = XC, M.tSTypeLiteral = M.tsTypeLiteral = _C, M.tSTypeOperator = M.tsTypeOperator = MC, M.tSTypeParameter = M.tsTypeParameter = lP, M.tSTypeParameterDeclaration = M.tsTypeParameterDeclaration = uP, M.tSTypeParameterInstantiation = M.tsTypeParameterInstantiation = oP, M.tSTypePredicate = M.tsTypePredicate = CC, M.tSTypeQuery = M.tsTypeQuery = PC, M.tSTypeReference = M.tsTypeReference = AC, M.tSUndefinedKeyword = M.tsUndefinedKeyword = DC, M.tSUnionType = M.tsUnionType = NC, M.tSUnknownKeyword = M.tsUnknownKeyword = EC, M.tSVoidKeyword = M.tsVoidKeyword = bC, M.tupleExpression = WA, M.tupleTypeAnnotation = Z1, M.typeAlias = tA, M.typeAnnotation = rA, M.typeCastExpression = nA, M.typeParameter = iA, M.typeParameterDeclaration = sA, M.typeParameterInstantiation = aA, M.typeofTypeAnnotation = eA, M.unaryExpression = ue, M.unionTypeAnnotation = oA, M.updateExpression = be, M.v8IntrinsicIdentifier = MA, M.variableDeclaration = Ee, M.variableDeclarator = Ce, M.variance = uA, M.voidTypeAnnotation = lA, M.whileStatement = Be, M.withStatement = _e, M.yieldExpression = Ze;
|
|
37125
|
-
var e = $q(), t =
|
|
37128
|
+
var e = $q(), t = Gs;
|
|
37126
37129
|
function r(F = []) {
|
|
37127
37130
|
return (0, e.default)({
|
|
37128
37131
|
type: "ArrayExpression",
|
|
@@ -39221,7 +39224,7 @@ V.assertWhile = jX;
|
|
|
39221
39224
|
V.assertWhileStatement = HK;
|
|
39222
39225
|
V.assertWithStatement = qK;
|
|
39223
39226
|
V.assertYieldExpression = mW;
|
|
39224
|
-
var Gq = oo(), fo =
|
|
39227
|
+
var Gq = oo(), fo = Gs;
|
|
39225
39228
|
function q(e, t, r) {
|
|
39226
39229
|
if (!(0, Gq.default)(e, t, r))
|
|
39227
39230
|
throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`);
|
|
@@ -40138,14 +40141,14 @@ function PJ(e, t) {
|
|
|
40138
40141
|
function _J(e, t) {
|
|
40139
40142
|
(0, fo.default)("assertModuleDeclaration", "assertImportOrExportDeclaration"), q("ModuleDeclaration", e, t);
|
|
40140
40143
|
}
|
|
40141
|
-
var
|
|
40144
|
+
var ca = {}, Ng;
|
|
40142
40145
|
function xJ() {
|
|
40143
|
-
if (Ng) return
|
|
40144
|
-
Ng = 1, Object.defineProperty(
|
|
40146
|
+
if (Ng) return ca;
|
|
40147
|
+
Ng = 1, Object.defineProperty(ca, "__esModule", {
|
|
40145
40148
|
value: !0
|
|
40146
|
-
}),
|
|
40149
|
+
}), ca.default = void 0;
|
|
40147
40150
|
var e = sr();
|
|
40148
|
-
|
|
40151
|
+
ca.default = t;
|
|
40149
40152
|
function t(r) {
|
|
40150
40153
|
switch (r) {
|
|
40151
40154
|
case "string":
|
|
@@ -40167,7 +40170,7 @@ function xJ() {
|
|
|
40167
40170
|
}
|
|
40168
40171
|
throw new Error("Invalid typeof value: " + r);
|
|
40169
40172
|
}
|
|
40170
|
-
return
|
|
40173
|
+
return ca;
|
|
40171
40174
|
}
|
|
40172
40175
|
var zo = {}, Wl = {};
|
|
40173
40176
|
Object.defineProperty(Wl, "__esModule", {
|
|
@@ -41856,12 +41859,12 @@ Object.defineProperty(Zl, "__esModule", {
|
|
|
41856
41859
|
value: !0
|
|
41857
41860
|
});
|
|
41858
41861
|
Zl.default = void 0;
|
|
41859
|
-
var
|
|
41862
|
+
var fa = j;
|
|
41860
41863
|
Zl.default = fz;
|
|
41861
41864
|
function fz(e) {
|
|
41862
|
-
if ((0,
|
|
41865
|
+
if ((0, fa.isExpressionStatement)(e) && (e = e.expression), (0, fa.isExpression)(e))
|
|
41863
41866
|
return e;
|
|
41864
|
-
if ((0,
|
|
41867
|
+
if ((0, fa.isClass)(e) ? e.type = "ClassExpression" : (0, fa.isFunction)(e) && (e.type = "FunctionExpression"), !(0, fa.isExpression)(e))
|
|
41865
41868
|
throw new Error(`cannot turn ${e.type} to an expression`);
|
|
41866
41869
|
return e;
|
|
41867
41870
|
}
|
|
@@ -41924,14 +41927,14 @@ Ri.uid = 0;
|
|
|
41924
41927
|
Ri.increment = function() {
|
|
41925
41928
|
return Ri.uid >= Number.MAX_SAFE_INTEGER ? Ri.uid = 0 : Ri.uid++;
|
|
41926
41929
|
};
|
|
41927
|
-
var
|
|
41930
|
+
var pa = {}, Kg;
|
|
41928
41931
|
function Sz() {
|
|
41929
|
-
if (Kg) return
|
|
41930
|
-
Kg = 1, Object.defineProperty(
|
|
41932
|
+
if (Kg) return pa;
|
|
41933
|
+
Kg = 1, Object.defineProperty(pa, "__esModule", {
|
|
41931
41934
|
value: !0
|
|
41932
|
-
}),
|
|
41935
|
+
}), pa.default = void 0;
|
|
41933
41936
|
var e = j, t = sr();
|
|
41934
|
-
|
|
41937
|
+
pa.default = r;
|
|
41935
41938
|
function r(n, i) {
|
|
41936
41939
|
if ((0, e.isStatement)(n))
|
|
41937
41940
|
return n;
|
|
@@ -41949,16 +41952,16 @@ function Sz() {
|
|
|
41949
41952
|
}
|
|
41950
41953
|
return n.type = a, n;
|
|
41951
41954
|
}
|
|
41952
|
-
return
|
|
41955
|
+
return pa;
|
|
41953
41956
|
}
|
|
41954
|
-
var
|
|
41957
|
+
var ha = {}, Wg;
|
|
41955
41958
|
function vz() {
|
|
41956
|
-
if (Wg) return
|
|
41957
|
-
Wg = 1, Object.defineProperty(
|
|
41959
|
+
if (Wg) return ha;
|
|
41960
|
+
Wg = 1, Object.defineProperty(ha, "__esModule", {
|
|
41958
41961
|
value: !0
|
|
41959
|
-
}),
|
|
41962
|
+
}), ha.default = void 0;
|
|
41960
41963
|
var e = Zi, t = sr();
|
|
41961
|
-
|
|
41964
|
+
ha.default = s;
|
|
41962
41965
|
const r = Function.call.bind(Object.prototype.toString);
|
|
41963
41966
|
function n(a) {
|
|
41964
41967
|
return r(a) === "[object RegExp]";
|
|
@@ -42004,7 +42007,7 @@ function vz() {
|
|
|
42004
42007
|
}
|
|
42005
42008
|
throw new Error("don't know how to turn this value into a node");
|
|
42006
42009
|
}
|
|
42007
|
-
return
|
|
42010
|
+
return ha;
|
|
42008
42011
|
}
|
|
42009
42012
|
var iu = {}, Gg;
|
|
42010
42013
|
function Tz() {
|
|
@@ -42088,11 +42091,11 @@ function _z(e) {
|
|
|
42088
42091
|
}
|
|
42089
42092
|
return r;
|
|
42090
42093
|
}
|
|
42091
|
-
var
|
|
42092
|
-
Object.defineProperty(
|
|
42094
|
+
var Ys = {};
|
|
42095
|
+
Object.defineProperty(Ys, "__esModule", {
|
|
42093
42096
|
value: !0
|
|
42094
42097
|
});
|
|
42095
|
-
|
|
42098
|
+
Ys.default = sm;
|
|
42096
42099
|
var cn = j;
|
|
42097
42100
|
function sm(e, t, r, n) {
|
|
42098
42101
|
const i = [].concat(e), s = /* @__PURE__ */ Object.create(null);
|
|
@@ -42172,7 +42175,7 @@ Object.defineProperty(nc, "__esModule", {
|
|
|
42172
42175
|
value: !0
|
|
42173
42176
|
});
|
|
42174
42177
|
nc.default = void 0;
|
|
42175
|
-
var Fz =
|
|
42178
|
+
var Fz = Ys;
|
|
42176
42179
|
nc.default = wz;
|
|
42177
42180
|
function wz(e, t) {
|
|
42178
42181
|
return (0, Fz.default)(e, t, !0);
|
|
@@ -42255,7 +42258,7 @@ Object.defineProperty(um, "__esModule", {
|
|
|
42255
42258
|
value: !0
|
|
42256
42259
|
});
|
|
42257
42260
|
um.default = Lz;
|
|
42258
|
-
var kz =
|
|
42261
|
+
var kz = Ys;
|
|
42259
42262
|
function Lz(e, t, r) {
|
|
42260
42263
|
if (r && e.type === "Identifier" && t.type === "ObjectProperty" && r.type === "ObjectExpression")
|
|
42261
42264
|
return !1;
|
|
@@ -42456,7 +42459,7 @@ function eQ() {
|
|
|
42456
42459
|
eD = 1, Object.defineProperty(ou, "__esModule", {
|
|
42457
42460
|
value: !0
|
|
42458
42461
|
}), ou.default = s;
|
|
42459
|
-
var e =
|
|
42462
|
+
var e = Ys, t = j, r = sr(), n = ET(), i = Bn;
|
|
42460
42463
|
function s(a, o) {
|
|
42461
42464
|
const u = [];
|
|
42462
42465
|
let l = !0;
|
|
@@ -42932,7 +42935,7 @@ function Xe() {
|
|
|
42932
42935
|
}
|
|
42933
42936
|
});
|
|
42934
42937
|
});
|
|
42935
|
-
var z = Tz(), re = nm, X = Pz(), oe = rc, ie = ec, J = Wl, Y = im, ne =
|
|
42938
|
+
var z = Tz(), re = nm, X = Pz(), oe = rc, ie = ec, J = Wl, Y = im, ne = Ys, ae = nc, ce = am, ue = om;
|
|
42936
42939
|
Object.keys(ue).forEach(function(fe) {
|
|
42937
42940
|
fe === "default" || fe === "__esModule" || Object.prototype.hasOwnProperty.call(t, fe) || fe in e && e[fe] === ue[fe] || Object.defineProperty(e, fe, {
|
|
42938
42941
|
enumerable: !0,
|
|
@@ -42950,7 +42953,7 @@ function Xe() {
|
|
|
42950
42953
|
}
|
|
42951
42954
|
});
|
|
42952
42955
|
});
|
|
42953
|
-
var qe =
|
|
42956
|
+
var qe = Gs;
|
|
42954
42957
|
e.react = {
|
|
42955
42958
|
isReactComponent: r.default,
|
|
42956
42959
|
isCompatTag: n.default,
|
|
@@ -43260,10 +43263,10 @@ function sc() {
|
|
|
43260
43263
|
}
|
|
43261
43264
|
var iD;
|
|
43262
43265
|
function MQ() {
|
|
43263
|
-
if (iD) return
|
|
43264
|
-
iD = 1, Object.defineProperty(
|
|
43266
|
+
if (iD) return oa;
|
|
43267
|
+
iD = 1, Object.defineProperty(oa, "__esModule", {
|
|
43265
43268
|
value: !0
|
|
43266
|
-
}),
|
|
43269
|
+
}), oa.default = void 0;
|
|
43267
43270
|
var e = Xe(), t = Fm(), r = sc(), n = So();
|
|
43268
43271
|
const i = {
|
|
43269
43272
|
ReferencedIdentifier({
|
|
@@ -43335,7 +43338,7 @@ function MQ() {
|
|
|
43335
43338
|
}), arguments[0] || (c.removeOwnBinding(u), c.bindings[l] = o, this.binding.identifier.name = l), p && (this.maybeConvertFromClassFunctionDeclaration(f), this.maybeConvertFromClassFunctionExpression(f));
|
|
43336
43339
|
}
|
|
43337
43340
|
}
|
|
43338
|
-
return
|
|
43341
|
+
return oa.default = s, oa;
|
|
43339
43342
|
}
|
|
43340
43343
|
var ac = {};
|
|
43341
43344
|
Object.defineProperty(ac, "__esModule", {
|
|
@@ -44984,10 +44987,10 @@ function TZ(e, t) {
|
|
|
44984
44987
|
}
|
|
44985
44988
|
var sD;
|
|
44986
44989
|
function _T() {
|
|
44987
|
-
if (sD) return
|
|
44988
|
-
sD = 1, Object.defineProperty(
|
|
44990
|
+
if (sD) return aa;
|
|
44991
|
+
sD = 1, Object.defineProperty(aa, "__esModule", {
|
|
44989
44992
|
value: !0
|
|
44990
|
-
}),
|
|
44993
|
+
}), aa.default = void 0;
|
|
44991
44994
|
var e = MQ(), t = Sc(), r = ac, n = bZ, i = Xe(), s = i, a = jt, o = sc();
|
|
44992
44995
|
const {
|
|
44993
44996
|
NOT_LOCAL_BINDING: u,
|
|
@@ -45728,7 +45731,7 @@ function _T() {
|
|
|
45728
45731
|
}
|
|
45729
45732
|
}
|
|
45730
45733
|
}
|
|
45731
|
-
return
|
|
45734
|
+
return aa.default = G, G.globals = Object.keys(n.builtin), G.contextVariables = ["arguments", "undefined", "Infinity", "NaN"], aa;
|
|
45732
45735
|
}
|
|
45733
45736
|
var oc = {}, uc = {}, zp = { exports: {} }, uu = { exports: {} }, aD;
|
|
45734
45737
|
function AZ() {
|
|
@@ -46900,11 +46903,11 @@ const {
|
|
|
46900
46903
|
isOptionalMemberExpression: LZ,
|
|
46901
46904
|
isStringLiteral: RZ
|
|
46902
46905
|
} = FZ;
|
|
46903
|
-
function
|
|
46904
|
-
return e && (Dm(e) || LZ(e) ? (
|
|
46906
|
+
function hs(e, t) {
|
|
46907
|
+
return e && (Dm(e) || LZ(e) ? (hs(e.object, t), e.computed && hs(e.property, t)) : IT(e) || wT(e) ? (hs(e.left, t), hs(e.right, t)) : OT(e) || kZ(e) ? (t.hasCall = !0, hs(e.callee, t)) : Ta(e) ? t.hasFunction = !0 : cl(e) && (t.hasHelper = t.hasHelper || e.callee && Tn(e.callee))), t;
|
|
46905
46908
|
}
|
|
46906
46909
|
function lD(e) {
|
|
46907
|
-
return
|
|
46910
|
+
return hs(e, {
|
|
46908
46911
|
hasCall: !1,
|
|
46909
46912
|
hasFunction: !1,
|
|
46910
46913
|
hasHelper: !1
|
|
@@ -50649,7 +50652,7 @@ var Uf, wD;
|
|
|
50649
50652
|
function Sse() {
|
|
50650
50653
|
if (wD) return Uf;
|
|
50651
50654
|
wD = 1;
|
|
50652
|
-
const e =
|
|
50655
|
+
const e = js, t = bse(), r = process.env;
|
|
50653
50656
|
let n;
|
|
50654
50657
|
t("no-color") || t("no-colors") || t("color=false") ? n = !1 : (t("color") || t("colors") || t("color=true") || t("color=always")) && (n = !0), "FORCE_COLOR" in r && (n = r.FORCE_COLOR.length === 0 || parseInt(r.FORCE_COLOR, 10) !== 0);
|
|
50655
50658
|
function i(o) {
|
|
@@ -51484,7 +51487,7 @@ function c1() {
|
|
|
51484
51487
|
VD = 1, Object.defineProperty(pn, "__esModule", {
|
|
51485
51488
|
value: !0
|
|
51486
51489
|
}), pn._replaceWith = re, pn.replaceExpressionWithStatements = X, pn.replaceInline = ie, pn.replaceWith = z, pn.replaceWithMultiple = O, pn.replaceWithSourceString = L;
|
|
51487
|
-
var e = yo, t = Sc(), r = ns(), n = jt, i = l1(), s =
|
|
51490
|
+
var e = yo, t = Sc(), r = ns(), n = jt, i = l1(), s = Ws, a = Xe();
|
|
51488
51491
|
const {
|
|
51489
51492
|
FUNCTION_TYPES: o,
|
|
51490
51493
|
arrowFunctionExpression: u,
|
|
@@ -52037,7 +52040,7 @@ Object.defineProperty(Dc, "__esModule", {
|
|
|
52037
52040
|
value: !0
|
|
52038
52041
|
});
|
|
52039
52042
|
Dc.default = Sae;
|
|
52040
|
-
var uae = Xe(), lae =
|
|
52043
|
+
var uae = Xe(), lae = Ws, cae = yo;
|
|
52041
52044
|
const {
|
|
52042
52045
|
isCallExpression: fae,
|
|
52043
52046
|
isExpressionStatement: pae,
|
|
@@ -53565,10 +53568,10 @@ function ns() {
|
|
|
53565
53568
|
}
|
|
53566
53569
|
var aE;
|
|
53567
53570
|
function xoe() {
|
|
53568
|
-
if (aE) return
|
|
53569
|
-
aE = 1, Object.defineProperty(
|
|
53571
|
+
if (aE) return sa;
|
|
53572
|
+
aE = 1, Object.defineProperty(sa, "__esModule", {
|
|
53570
53573
|
value: !0
|
|
53571
|
-
}),
|
|
53574
|
+
}), sa.default = void 0;
|
|
53572
53575
|
var e = ns(), t = Xe();
|
|
53573
53576
|
const {
|
|
53574
53577
|
VISITOR_KEYS: r
|
|
@@ -53639,7 +53642,7 @@ function xoe() {
|
|
|
53639
53642
|
return o ? Array.isArray(o) ? this.visitMultiple(o, s, a) : this.visitSingle(s, a) : !1;
|
|
53640
53643
|
}
|
|
53641
53644
|
}
|
|
53642
|
-
return
|
|
53645
|
+
return sa.default = n, sa;
|
|
53643
53646
|
}
|
|
53644
53647
|
var oE;
|
|
53645
53648
|
function Fm() {
|
|
@@ -53890,11 +53893,10 @@ var woe = Sc();
|
|
|
53890
53893
|
const Ioe = /* @__PURE__ */ dl(woe);
|
|
53891
53894
|
var Nt = Xe();
|
|
53892
53895
|
const Ooe = gh();
|
|
53893
|
-
function
|
|
53894
|
-
return console.log(...e);
|
|
53896
|
+
function da(...e) {
|
|
53895
53897
|
}
|
|
53896
53898
|
const $a = ["key", "property", "id"];
|
|
53897
|
-
function
|
|
53899
|
+
function As(e, t, r, n = !1) {
|
|
53898
53900
|
var a;
|
|
53899
53901
|
let i = n;
|
|
53900
53902
|
!i && e === r && (i = !0);
|
|
@@ -53903,7 +53905,7 @@ function Cs(e, t, r, n = !1) {
|
|
|
53903
53905
|
isOverBound: i,
|
|
53904
53906
|
binding: s,
|
|
53905
53907
|
name: t
|
|
53906
|
-
} : e != null && e.parent ?
|
|
53908
|
+
} : e != null && e.parent ? As(e.parent, t, r, i) : {
|
|
53907
53909
|
isOverBound: i,
|
|
53908
53910
|
binding: null,
|
|
53909
53911
|
name: t
|
|
@@ -53941,7 +53943,7 @@ function sh(e = [], t, r = [], n) {
|
|
|
53941
53943
|
Identifier(c) {
|
|
53942
53944
|
if ($a.includes(c.key) || c.listKey === "params")
|
|
53943
53945
|
return;
|
|
53944
|
-
const f =
|
|
53946
|
+
const f = As(c.scope, c.node.name, a.scope);
|
|
53945
53947
|
f.isOverBound && o.push({ ...f, identifierPath: c });
|
|
53946
53948
|
}
|
|
53947
53949
|
}), sh(o, t, r, n), (l = (u = s.binding) == null ? void 0 : u.constantViolations) == null || l.forEach((c) => {
|
|
@@ -53955,7 +53957,7 @@ function sh(e = [], t, r = [], n) {
|
|
|
53955
53957
|
Identifier(h) {
|
|
53956
53958
|
if ($a.includes(h.key) || h.listKey === "params")
|
|
53957
53959
|
return;
|
|
53958
|
-
const d =
|
|
53960
|
+
const d = As(h.scope, h.node.name, f.scope);
|
|
53959
53961
|
d.isOverBound && p.push({ ...d, identifierPath: h });
|
|
53960
53962
|
}
|
|
53961
53963
|
}), sh(p, t, r, n);
|
|
@@ -53998,10 +54000,10 @@ function Boe({
|
|
|
53998
54000
|
const _ = [];
|
|
53999
54001
|
R.traverse({
|
|
54000
54002
|
Identifier(C) {
|
|
54001
|
-
if (
|
|
54003
|
+
if (da("[staticParams]", C.node.name, t, C.node.name === t), $a.includes(C.key) || C.listKey === "params" || C.node.name === t)
|
|
54002
54004
|
return;
|
|
54003
54005
|
y.push(R);
|
|
54004
|
-
const k =
|
|
54006
|
+
const k = As(C.scope, C.node.name, o.scope);
|
|
54005
54007
|
k.isOverBound && _.push({ ...k, identifierPath: C });
|
|
54006
54008
|
}
|
|
54007
54009
|
}), o.stateInfo.statics[A] = R, sh(_, o.scope, o.stateInfo.deps, A);
|
|
@@ -54021,13 +54023,13 @@ function Boe({
|
|
|
54021
54023
|
var R, w, x, I, B, S, _;
|
|
54022
54024
|
y.some(
|
|
54023
54025
|
(C) => Nt.isNodesEquivalent(A.node, C.node) || A.findParent((k) => Nt.isNodesEquivalent(k.node, C.node))
|
|
54024
|
-
) || A.node.callee.type === "MemberExpression" && i.test(A.get("callee").toString()) && (!A.scope.hasBinding(t) || ((x = (w = (R = A.scope.getBinding(t)) == null ? void 0 : R.path) == null ? void 0 : w.parent) == null ? void 0 : x.type) === "ImportDeclaration" && ((_ = (S = (B = (I = A.scope.getBinding(t)) == null ? void 0 : I.path) == null ? void 0 : B.parent) == null ? void 0 : S.source) == null ? void 0 : _.value) === r) || (
|
|
54026
|
+
) || A.node.callee.type === "MemberExpression" && i.test(A.get("callee").toString()) && (!A.scope.hasBinding(t) || ((x = (w = (R = A.scope.getBinding(t)) == null ? void 0 : R.path) == null ? void 0 : w.parent) == null ? void 0 : x.type) === "ImportDeclaration" && ((_ = (S = (B = (I = A.scope.getBinding(t)) == null ? void 0 : I.path) == null ? void 0 : B.parent) == null ? void 0 : S.source) == null ? void 0 : _.value) === r) || (da("[CallExpression]", A.toString(), A.node), A.get("callee").traverse({
|
|
54025
54027
|
Identifier(C) {
|
|
54026
54028
|
if ($a.includes(C.key) || C.listKey === "params")
|
|
54027
54029
|
return;
|
|
54028
|
-
|
|
54029
|
-
const k =
|
|
54030
|
-
if (
|
|
54030
|
+
da("[CallExpression Identifier]", C.node.name);
|
|
54031
|
+
const k = As(C.scope, C.node.name, o.scope);
|
|
54032
|
+
if (k.isOverBound && k.binding)
|
|
54031
54033
|
throw new Error(
|
|
54032
54034
|
`不能在 server 端调用本地方法 error: ${A.node.loc.start.line}:${A.node.loc.start.column + 1} ${A.toString()}`
|
|
54033
54035
|
);
|
|
@@ -54039,15 +54041,15 @@ function Boe({
|
|
|
54039
54041
|
(w) => Nt.isNodesEquivalent(A.node, w.node) || A.findParent((x) => Nt.isNodesEquivalent(x.node, w.node))
|
|
54040
54042
|
))
|
|
54041
54043
|
return;
|
|
54042
|
-
|
|
54043
|
-
const R =
|
|
54044
|
+
da("[Identifier]", A.node.name, A.key);
|
|
54045
|
+
const R = As(A.scope, A.node.name, o.scope);
|
|
54044
54046
|
if (R.isOverBound && R.binding && (o.stateInfo.bindings.push({ ...R, identifierPath: A }), A.key === "callee"))
|
|
54045
54047
|
throw new Error(
|
|
54046
54048
|
`不能在 server 端调用本地方法 error: ${A.parentPath.node.loc.start.line}:${A.parentPath.node.loc.start.column + 1} ${A.parentPath.toString()}`
|
|
54047
54049
|
);
|
|
54048
54050
|
o.stateInfo.bindings = y1(o.stateInfo.bindings);
|
|
54049
54051
|
}
|
|
54050
|
-
}),
|
|
54052
|
+
}), da(
|
|
54051
54053
|
"[binding]",
|
|
54052
54054
|
o.stateInfo.bindings.map((A) => A.name)
|
|
54053
54055
|
), o.stateInfo.deps = Noe(o.stateInfo.deps), a.calls.push(o);
|
|
@@ -54158,29 +54160,31 @@ export default __defineApi_for_auto__({
|
|
|
54158
54160
|
function yue(e) {
|
|
54159
54161
|
const t = process.cwd(), r = e.serverDir;
|
|
54160
54162
|
let n;
|
|
54161
|
-
const i = "soonjs/auto/client", s = "\0" + i, a = new RegExp(`${e.clientAlias}\\s*\\.(useApi\\(|service\\.)`), o =
|
|
54163
|
+
const i = "soonjs/auto/client", s = "\0" + i, a = new RegExp(`${e.clientAlias}\\s*\\.(useApi\\(|service\\.)`), o = "node_modules/.soonjs/auto";
|
|
54164
|
+
let u = "";
|
|
54162
54165
|
if (!e.projectName || !e.serverDir)
|
|
54163
54166
|
throw new Error("soonjs client plugin: options.projectName and options.serverDir are required");
|
|
54164
54167
|
return {
|
|
54165
54168
|
name: "vite-plugin-soon-client",
|
|
54166
54169
|
enforce: "post",
|
|
54167
|
-
configureServer(
|
|
54168
|
-
n =
|
|
54170
|
+
configureServer(l) {
|
|
54171
|
+
n = l, console.log(n.config.env);
|
|
54169
54172
|
},
|
|
54170
|
-
config(
|
|
54171
|
-
|
|
54172
|
-
|
|
54173
|
-
|
|
54174
|
-
|
|
54175
|
-
|
|
54173
|
+
config(l, c) {
|
|
54174
|
+
u = Oe.join(o, c.command, e.projectName);
|
|
54175
|
+
const f = Oe.join(t, "generated/auto");
|
|
54176
|
+
cs(Oe.join(t, "node_modules/.soonjs")) || SP(r, "node_modules/.soonjs", "dir"), cs(f) || vP(f, { recursive: !0 });
|
|
54177
|
+
const p = Oe.join(r, "generated/auto/auto-client.d.ts");
|
|
54178
|
+
cs(p) && Im(p, Oe.join(f, "auto-client.d.ts")), cs(u) && fE(u, { recursive: !0 }), c.command === "serve" && TP(p, (h, d) => {
|
|
54179
|
+
cs(p) && Im(p, Oe.join(f, "auto-client.d.ts"));
|
|
54176
54180
|
});
|
|
54177
54181
|
},
|
|
54178
|
-
resolveId(
|
|
54179
|
-
if (
|
|
54182
|
+
resolveId(l) {
|
|
54183
|
+
if (l === i)
|
|
54180
54184
|
return s;
|
|
54181
54185
|
},
|
|
54182
|
-
async load(
|
|
54183
|
-
if (
|
|
54186
|
+
async load(l) {
|
|
54187
|
+
if (l === s)
|
|
54184
54188
|
return `
|
|
54185
54189
|
const soonConfigStorage = {
|
|
54186
54190
|
baseUrl: "",
|
|
@@ -54223,13 +54227,13 @@ export default {
|
|
|
54223
54227
|
}
|
|
54224
54228
|
`;
|
|
54225
54229
|
},
|
|
54226
|
-
transform(
|
|
54227
|
-
if ((/\.(ts|js|tsx|jsx)$/.test(
|
|
54228
|
-
let
|
|
54229
|
-
|
|
54230
|
-
let
|
|
54230
|
+
transform(l, c) {
|
|
54231
|
+
if ((/\.(ts|js|tsx|jsx)$/.test(c) || /\.vue/.test(c)) && a.test(l)) {
|
|
54232
|
+
let f = function() {
|
|
54233
|
+
p.serverCodes.forEach(async (h) => {
|
|
54234
|
+
let d = h.serverCode;
|
|
54231
54235
|
try {
|
|
54232
|
-
|
|
54236
|
+
d = await L4.format(d, {
|
|
54233
54237
|
parser: "typescript",
|
|
54234
54238
|
tabWidth: 4,
|
|
54235
54239
|
useTabs: !1,
|
|
@@ -54244,25 +54248,24 @@ export default {
|
|
|
54244
54248
|
});
|
|
54245
54249
|
} catch {
|
|
54246
54250
|
}
|
|
54247
|
-
PP(Oe.join(
|
|
54248
|
-
|
|
54251
|
+
PP(Oe.join(u, h.callId + ".ts"), d, (m) => {
|
|
54252
|
+
m && console.error(m);
|
|
54249
54253
|
});
|
|
54250
54254
|
});
|
|
54251
54255
|
};
|
|
54252
|
-
|
|
54253
|
-
|
|
54254
|
-
|
|
54255
|
-
code: u,
|
|
54256
|
+
const p = koe({
|
|
54257
|
+
filename: Oe.relative(t, c).replace(/\\/g, "/"),
|
|
54258
|
+
code: l,
|
|
54256
54259
|
alias: e.clientAlias,
|
|
54257
54260
|
moduleName: "soonjs/auto/client"
|
|
54258
54261
|
});
|
|
54259
|
-
return AP(
|
|
54260
|
-
|
|
54261
|
-
if (
|
|
54262
|
-
throw
|
|
54263
|
-
|
|
54262
|
+
return AP(u, (h) => {
|
|
54263
|
+
h ? f() : CP(u, { recursive: !0 }, (d) => {
|
|
54264
|
+
if (d)
|
|
54265
|
+
throw d;
|
|
54266
|
+
f();
|
|
54264
54267
|
});
|
|
54265
|
-
}), { code:
|
|
54268
|
+
}), { code: p.srcCode, map: null };
|
|
54266
54269
|
}
|
|
54267
54270
|
}
|
|
54268
54271
|
};
|