@ariestools/toolchain 8.7.20 → 8.7.21
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/actions/analyze.d.ts +28 -1
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +60 -0
- package/dist/actions/work/github.d.ts.map +1 -0
- package/dist/actions/work/index.d.ts +20 -19
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/result.d.ts +12 -0
- package/dist/actions/work/result.d.ts.map +1 -0
- package/dist/actions/work/schema.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts +34 -0
- package/dist/actions/work/sync.d.ts.map +1 -0
- package/dist/bin/package/build.mjs +1256 -699
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +633 -432
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +632 -431
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +1 -1
- package/dist/bin/package/fix.mjs +17 -12
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +17 -12
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +17 -12
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +1161 -609
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +632 -431
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +17 -12
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +615 -419
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +1960 -722
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/xy/common/work/index.d.ts.map +1 -1
- package/dist/xy/common/work/listCommand.d.ts.map +1 -1
- package/dist/xy/common/work/syncCommand.d.ts +3 -0
- package/dist/xy/common/work/syncCommand.d.ts.map +1 -0
- package/dist/xy/react/analyzeCommand.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/bin/source-map-explorer.mjs +0 -27268
- package/dist/bin/source-map-explorer.mjs.map +0 -1
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { builtinModules, createRequire } from "node:module";
|
|
3
|
-
import process$1 from "node:process";
|
|
3
|
+
import process$1, { cwd } from "node:process";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import tty from "node:tty";
|
|
6
6
|
import * as xi from "node:fs";
|
|
7
|
-
import fs, { promises } from "node:fs";
|
|
8
|
-
import PATH, { posix, win32 } from "node:path";
|
|
7
|
+
import fs, { closeSync, openSync, promises, readSync, statSync } from "node:fs";
|
|
8
|
+
import PATH, { basename, delimiter, dirname, normalize, posix, resolve, win32 } from "node:path";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
10
10
|
import { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
|
|
11
11
|
import fs$1, { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
|
|
12
12
|
import { EventEmitter } from "node:events";
|
|
13
|
-
import Pe from "node:stream";
|
|
13
|
+
import Pe, { PassThrough } from "node:stream";
|
|
14
14
|
import { StringDecoder } from "node:string_decoder";
|
|
15
|
-
import
|
|
15
|
+
import { spawn } from "node:child_process";
|
|
16
|
+
import u from "node:readline";
|
|
16
17
|
import ts from "typescript";
|
|
17
18
|
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
18
19
|
import util from "node:util";
|
|
20
|
+
import { pipeline } from "node:stream/promises";
|
|
19
21
|
import zlib from "node:zlib";
|
|
20
22
|
//#region \0rolldown/runtime.js
|
|
21
23
|
var __create = Object.create;
|
|
@@ -540,24 +542,24 @@ function ht(n, t, e) {
|
|
|
540
542
|
return s;
|
|
541
543
|
}
|
|
542
544
|
function Bt(n, t = {}) {
|
|
543
|
-
return new I(n, t).streamSync();
|
|
545
|
+
return new I$1(n, t).streamSync();
|
|
544
546
|
}
|
|
545
547
|
function Qe(n, t = {}) {
|
|
546
|
-
return new I(n, t).stream();
|
|
548
|
+
return new I$1(n, t).stream();
|
|
547
549
|
}
|
|
548
550
|
function ts$1(n, t = {}) {
|
|
549
|
-
return new I(n, t).walkSync();
|
|
551
|
+
return new I$1(n, t).walkSync();
|
|
550
552
|
}
|
|
551
553
|
async function Je(n, t = {}) {
|
|
552
|
-
return new I(n, t).walk();
|
|
554
|
+
return new I$1(n, t).walk();
|
|
553
555
|
}
|
|
554
556
|
function Ut(n, t = {}) {
|
|
555
|
-
return new I(n, t).iterateSync();
|
|
557
|
+
return new I$1(n, t).iterateSync();
|
|
556
558
|
}
|
|
557
559
|
function es(n, t = {}) {
|
|
558
|
-
return new I(n, t).iterate();
|
|
560
|
+
return new I$1(n, t).iterate();
|
|
559
561
|
}
|
|
560
|
-
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$3, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
562
|
+
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$3, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O$1, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N$1, Zs, ke, Qs, ti, ve, ei, D$1, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P$1, et, v$1, dt, st, C$1, F$1, T$1, Yt, Ft, k$1, x$1, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _$1, gt, se, je, yt, j$1, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R$1, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I$1, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
561
563
|
var init_index_min = __esmMin((() => {
|
|
562
564
|
Gt = (n, t, e) => {
|
|
563
565
|
let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
|
|
@@ -961,7 +963,7 @@ var init_index_min = __esmMin((() => {
|
|
|
961
963
|
}
|
|
962
964
|
};
|
|
963
965
|
tt = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !1 } = {}) => e ? t ? n.replace(/[?*()[\]{}]/g, "[$&]") : n.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? n.replace(/[?*()[\]]/g, "[$&]") : n.replace(/[?*()[\]\\]/g, "\\$&");
|
|
964
|
-
O = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D(t, e).match(n));
|
|
966
|
+
O$1 = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D$1(t, e).match(n));
|
|
965
967
|
Rs = /^\*+([^+@!?\*\[\(]*)$/;
|
|
966
968
|
Os = (n) => (t) => !t.startsWith(".") && t.endsWith(n);
|
|
967
969
|
Fs = (n) => (t) => t.endsWith(n);
|
|
@@ -1005,59 +1007,59 @@ var init_index_min = __esmMin((() => {
|
|
|
1005
1007
|
win32: { sep: "\\" },
|
|
1006
1008
|
posix: { sep: "/" }
|
|
1007
1009
|
};
|
|
1008
|
-
O.sep = Ae === "win32" ? xe.win32.sep : xe.posix.sep;
|
|
1010
|
+
O$1.sep = Ae === "win32" ? xe.win32.sep : xe.posix.sep;
|
|
1009
1011
|
A = Symbol("globstar **");
|
|
1010
|
-
O.GLOBSTAR = A;
|
|
1012
|
+
O$1.GLOBSTAR = A;
|
|
1011
1013
|
Vs = "[^/]*?";
|
|
1012
1014
|
Ys = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1013
1015
|
Xs = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1014
|
-
Js = (n, t = {}) => (e) => O(e, n, t);
|
|
1015
|
-
O.filter = Js;
|
|
1016
|
-
N = (n, t = {}) => Object.assign({}, n, t);
|
|
1016
|
+
Js = (n, t = {}) => (e) => O$1(e, n, t);
|
|
1017
|
+
O$1.filter = Js;
|
|
1018
|
+
N$1 = (n, t = {}) => Object.assign({}, n, t);
|
|
1017
1019
|
Zs = (n) => {
|
|
1018
|
-
if (!n || typeof n != "object" || !Object.keys(n).length) return O;
|
|
1019
|
-
let t = O;
|
|
1020
|
-
return Object.assign((s, i, r = {}) => t(s, i, N(n, r)), {
|
|
1020
|
+
if (!n || typeof n != "object" || !Object.keys(n).length) return O$1;
|
|
1021
|
+
let t = O$1;
|
|
1022
|
+
return Object.assign((s, i, r = {}) => t(s, i, N$1(n, r)), {
|
|
1021
1023
|
Minimatch: class extends t.Minimatch {
|
|
1022
1024
|
constructor(i, r = {}) {
|
|
1023
|
-
super(i, N(n, r));
|
|
1025
|
+
super(i, N$1(n, r));
|
|
1024
1026
|
}
|
|
1025
1027
|
static defaults(i) {
|
|
1026
|
-
return t.defaults(N(n, i)).Minimatch;
|
|
1028
|
+
return t.defaults(N$1(n, i)).Minimatch;
|
|
1027
1029
|
}
|
|
1028
1030
|
},
|
|
1029
1031
|
AST: class extends t.AST {
|
|
1030
1032
|
constructor(i, r, o = {}) {
|
|
1031
|
-
super(i, r, N(n, o));
|
|
1033
|
+
super(i, r, N$1(n, o));
|
|
1032
1034
|
}
|
|
1033
1035
|
static fromGlob(i, r = {}) {
|
|
1034
|
-
return t.AST.fromGlob(i, N(n, r));
|
|
1036
|
+
return t.AST.fromGlob(i, N$1(n, r));
|
|
1035
1037
|
}
|
|
1036
1038
|
},
|
|
1037
|
-
unescape: (s, i = {}) => t.unescape(s, N(n, i)),
|
|
1038
|
-
escape: (s, i = {}) => t.escape(s, N(n, i)),
|
|
1039
|
-
filter: (s, i = {}) => t.filter(s, N(n, i)),
|
|
1040
|
-
defaults: (s) => t.defaults(N(n, s)),
|
|
1041
|
-
makeRe: (s, i = {}) => t.makeRe(s, N(n, i)),
|
|
1042
|
-
braceExpand: (s, i = {}) => t.braceExpand(s, N(n, i)),
|
|
1043
|
-
match: (s, i, r = {}) => t.match(s, i, N(n, r)),
|
|
1039
|
+
unescape: (s, i = {}) => t.unescape(s, N$1(n, i)),
|
|
1040
|
+
escape: (s, i = {}) => t.escape(s, N$1(n, i)),
|
|
1041
|
+
filter: (s, i = {}) => t.filter(s, N$1(n, i)),
|
|
1042
|
+
defaults: (s) => t.defaults(N$1(n, s)),
|
|
1043
|
+
makeRe: (s, i = {}) => t.makeRe(s, N$1(n, i)),
|
|
1044
|
+
braceExpand: (s, i = {}) => t.braceExpand(s, N$1(n, i)),
|
|
1045
|
+
match: (s, i, r = {}) => t.match(s, i, N$1(n, r)),
|
|
1044
1046
|
sep: t.sep,
|
|
1045
1047
|
GLOBSTAR: A
|
|
1046
1048
|
});
|
|
1047
1049
|
};
|
|
1048
|
-
O.defaults = Zs;
|
|
1050
|
+
O$1.defaults = Zs;
|
|
1049
1051
|
ke = (n, t = {}) => (at(n), t.nobrace || !/\{(?:(?!\{).)*\}/.test(n) ? [n] : ge(n, { max: t.braceExpandMax }));
|
|
1050
|
-
O.braceExpand = ke;
|
|
1051
|
-
Qs = (n, t = {}) => new D(n, t).makeRe();
|
|
1052
|
-
O.makeRe = Qs;
|
|
1052
|
+
O$1.braceExpand = ke;
|
|
1053
|
+
Qs = (n, t = {}) => new D$1(n, t).makeRe();
|
|
1054
|
+
O$1.makeRe = Qs;
|
|
1053
1055
|
ti = (n, t, e = {}) => {
|
|
1054
|
-
let s = new D(t, e);
|
|
1056
|
+
let s = new D$1(t, e);
|
|
1055
1057
|
return n = n.filter((i) => s.match(i)), s.options.nonull && !n.length && n.push(t), n;
|
|
1056
1058
|
};
|
|
1057
|
-
O.match = ti;
|
|
1059
|
+
O$1.match = ti;
|
|
1058
1060
|
ve = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1059
1061
|
ei = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1060
|
-
D = class {
|
|
1062
|
+
D$1 = class {
|
|
1061
1063
|
options;
|
|
1062
1064
|
set;
|
|
1063
1065
|
pattern;
|
|
@@ -1334,13 +1336,13 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1334
1336
|
return s.flipNegate ? !1 : this.negate;
|
|
1335
1337
|
}
|
|
1336
1338
|
static defaults(t) {
|
|
1337
|
-
return O.defaults(t).Minimatch;
|
|
1339
|
+
return O$1.defaults(t).Minimatch;
|
|
1338
1340
|
}
|
|
1339
1341
|
};
|
|
1340
|
-
O.AST = Q;
|
|
1341
|
-
O.Minimatch = D;
|
|
1342
|
-
O.escape = tt;
|
|
1343
|
-
O.unescape = W;
|
|
1342
|
+
O$1.AST = Q;
|
|
1343
|
+
O$1.Minimatch = D$1;
|
|
1344
|
+
O$1.escape = tt;
|
|
1345
|
+
O$1.unescape = W;
|
|
1344
1346
|
si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
1345
1347
|
Oe = /* @__PURE__ */ new Set();
|
|
1346
1348
|
Vt = typeof process == "object" && process ? process : {};
|
|
@@ -1961,18 +1963,18 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1961
1963
|
_e = Symbol("read");
|
|
1962
1964
|
Ot = Symbol("flush");
|
|
1963
1965
|
Le = Symbol("flushChunk");
|
|
1964
|
-
P = Symbol("encoding");
|
|
1966
|
+
P$1 = Symbol("encoding");
|
|
1965
1967
|
et = Symbol("decoder");
|
|
1966
|
-
v = Symbol("flowing");
|
|
1968
|
+
v$1 = Symbol("flowing");
|
|
1967
1969
|
dt = Symbol("paused");
|
|
1968
1970
|
st = Symbol("resume");
|
|
1969
|
-
C = Symbol("buffer");
|
|
1970
|
-
F = Symbol("pipes");
|
|
1971
|
-
T = Symbol("bufferLength");
|
|
1971
|
+
C$1 = Symbol("buffer");
|
|
1972
|
+
F$1 = Symbol("pipes");
|
|
1973
|
+
T$1 = Symbol("bufferLength");
|
|
1972
1974
|
Yt = Symbol("bufferPush");
|
|
1973
1975
|
Ft = Symbol("bufferShift");
|
|
1974
|
-
k = Symbol("objectMode");
|
|
1975
|
-
x = Symbol("destroyed");
|
|
1976
|
+
k$1 = Symbol("objectMode");
|
|
1977
|
+
x$1 = Symbol("destroyed");
|
|
1976
1978
|
Xt = Symbol("error");
|
|
1977
1979
|
Jt = Symbol("emitData");
|
|
1978
1980
|
We = Symbol("emitEnd");
|
|
@@ -2015,12 +2017,12 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2015
2017
|
di = (n) => !!n.objectMode;
|
|
2016
2018
|
pi = (n) => !n.objectMode && !!n.encoding && n.encoding !== "buffer";
|
|
2017
2019
|
V = class extends EventEmitter {
|
|
2018
|
-
[v] = !1;
|
|
2020
|
+
[v$1] = !1;
|
|
2019
2021
|
[dt] = !1;
|
|
2020
|
-
[F] = [];
|
|
2021
|
-
[C] = [];
|
|
2022
|
-
[k];
|
|
2023
|
-
[P];
|
|
2022
|
+
[F$1] = [];
|
|
2023
|
+
[C$1] = [];
|
|
2024
|
+
[k$1];
|
|
2025
|
+
[P$1];
|
|
2024
2026
|
[B];
|
|
2025
2027
|
[et];
|
|
2026
2028
|
[G] = !1;
|
|
@@ -2028,8 +2030,8 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2028
2030
|
[kt] = !1;
|
|
2029
2031
|
[Rt] = !1;
|
|
2030
2032
|
[ut] = null;
|
|
2031
|
-
[T] = 0;
|
|
2032
|
-
[x] = !1;
|
|
2033
|
+
[T$1] = 0;
|
|
2034
|
+
[x$1] = !1;
|
|
2033
2035
|
[pt];
|
|
2034
2036
|
[Dt] = !1;
|
|
2035
2037
|
[Y] = 0;
|
|
@@ -2039,15 +2041,15 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2039
2041
|
constructor(...t) {
|
|
2040
2042
|
let e = t[0] || {};
|
|
2041
2043
|
if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
2042
|
-
di(e) ? (this[k] = !0, this[P] = null) : pi(e) ? (this[P] = e.encoding, this[k] = !1) : (this[k] = !1, this[P] = null), this[B] = !!e.async, this[et] = this[P] ? new StringDecoder(this[P]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[C] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[F] });
|
|
2044
|
+
di(e) ? (this[k$1] = !0, this[P$1] = null) : pi(e) ? (this[P$1] = e.encoding, this[k$1] = !1) : (this[k$1] = !1, this[P$1] = null), this[B] = !!e.async, this[et] = this[P$1] ? new StringDecoder(this[P$1]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[C$1] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[F$1] });
|
|
2043
2045
|
let { signal: s } = e;
|
|
2044
2046
|
s && (this[pt] = s, s.aborted ? this[Qt]() : s.addEventListener("abort", () => this[Qt]()));
|
|
2045
2047
|
}
|
|
2046
2048
|
get bufferLength() {
|
|
2047
|
-
return this[T];
|
|
2049
|
+
return this[T$1];
|
|
2048
2050
|
}
|
|
2049
2051
|
get encoding() {
|
|
2050
|
-
return this[P];
|
|
2052
|
+
return this[P$1];
|
|
2051
2053
|
}
|
|
2052
2054
|
set encoding(t) {
|
|
2053
2055
|
throw new Error("Encoding must be set at instantiation time");
|
|
@@ -2056,7 +2058,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2056
2058
|
throw new Error("Encoding must be set at instantiation time");
|
|
2057
2059
|
}
|
|
2058
2060
|
get objectMode() {
|
|
2059
|
-
return this[k];
|
|
2061
|
+
return this[k$1];
|
|
2060
2062
|
}
|
|
2061
2063
|
set objectMode(t) {
|
|
2062
2064
|
throw new Error("objectMode must be set at instantiation time");
|
|
@@ -2077,83 +2079,83 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2077
2079
|
write(t, e, s) {
|
|
2078
2080
|
if (this[Dt]) return !1;
|
|
2079
2081
|
if (this[G]) throw new Error("write after end");
|
|
2080
|
-
if (this[x]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), !0;
|
|
2082
|
+
if (this[x$1]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), !0;
|
|
2081
2083
|
typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
|
|
2082
2084
|
let i = this[B] ? mt : li;
|
|
2083
|
-
if (!this[k] && !Buffer.isBuffer(t)) {
|
|
2085
|
+
if (!this[k$1] && !Buffer.isBuffer(t)) {
|
|
2084
2086
|
if (ui(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
|
|
2085
2087
|
else if (fi(t)) t = Buffer.from(t);
|
|
2086
2088
|
else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
2087
2089
|
}
|
|
2088
|
-
return this[k] ? (this[v] && this[T] !== 0 && this[Ot](!0), this[v] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v]) : t.length ? (typeof t == "string" && !(e === this[P] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P] && (t = this[et].write(t)), this[v] && this[T] !== 0 && this[Ot](!0), this[v] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v]) : (this[T] !== 0 && this.emit("readable"), s && i(s), this[v]);
|
|
2090
|
+
return this[k$1] ? (this[v$1] && this[T$1] !== 0 && this[Ot](!0), this[v$1] ? this.emit("data", t) : this[Yt](t), this[T$1] !== 0 && this.emit("readable"), s && i(s), this[v$1]) : t.length ? (typeof t == "string" && !(e === this[P$1] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P$1] && (t = this[et].write(t)), this[v$1] && this[T$1] !== 0 && this[Ot](!0), this[v$1] ? this.emit("data", t) : this[Yt](t), this[T$1] !== 0 && this.emit("readable"), s && i(s), this[v$1]) : (this[T$1] !== 0 && this.emit("readable"), s && i(s), this[v$1]);
|
|
2089
2091
|
}
|
|
2090
2092
|
read(t) {
|
|
2091
|
-
if (this[x]) return null;
|
|
2092
|
-
if (this[M] = !1, this[T] === 0 || t === 0 || t && t > this[T]) return this[H](), null;
|
|
2093
|
-
this[k] && (t = null), this[C].length > 1 && !this[k] && (this[C] = [this[P] ? this[C].join("") : Buffer.concat(this[C], this[T])]);
|
|
2094
|
-
let e = this[_e](t || null, this[C][0]);
|
|
2093
|
+
if (this[x$1]) return null;
|
|
2094
|
+
if (this[M] = !1, this[T$1] === 0 || t === 0 || t && t > this[T$1]) return this[H](), null;
|
|
2095
|
+
this[k$1] && (t = null), this[C$1].length > 1 && !this[k$1] && (this[C$1] = [this[P$1] ? this[C$1].join("") : Buffer.concat(this[C$1], this[T$1])]);
|
|
2096
|
+
let e = this[_e](t || null, this[C$1][0]);
|
|
2095
2097
|
return this[H](), e;
|
|
2096
2098
|
}
|
|
2097
2099
|
[_e](t, e) {
|
|
2098
|
-
if (this[k]) this[Ft]();
|
|
2100
|
+
if (this[k$1]) this[Ft]();
|
|
2099
2101
|
else {
|
|
2100
2102
|
let s = e;
|
|
2101
|
-
t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C][0] = s.slice(t), e = s.slice(0, t), this[T] -= t) : (this[C][0] = s.subarray(t), e = s.subarray(0, t), this[T] -= t);
|
|
2103
|
+
t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C$1][0] = s.slice(t), e = s.slice(0, t), this[T$1] -= t) : (this[C$1][0] = s.subarray(t), e = s.subarray(0, t), this[T$1] -= t);
|
|
2102
2104
|
}
|
|
2103
|
-
return this.emit("data", e), !this[C].length && !this[G] && this.emit("drain"), e;
|
|
2105
|
+
return this.emit("data", e), !this[C$1].length && !this[G] && this.emit("drain"), e;
|
|
2104
2106
|
}
|
|
2105
2107
|
end(t, e, s) {
|
|
2106
|
-
return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = !0, this.writable = !1, (this[v] || !this[dt]) && this[H](), this;
|
|
2108
|
+
return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = !0, this.writable = !1, (this[v$1] || !this[dt]) && this[H](), this;
|
|
2107
2109
|
}
|
|
2108
2110
|
[st]() {
|
|
2109
|
-
this[x] || (!this[Y] && !this[F].length && (this[M] = !0), this[dt] = !1, this[v] = !0, this.emit("resume"), this[C].length ? this[Ot]() : this[G] ? this[H]() : this.emit("drain"));
|
|
2111
|
+
this[x$1] || (!this[Y] && !this[F$1].length && (this[M] = !0), this[dt] = !1, this[v$1] = !0, this.emit("resume"), this[C$1].length ? this[Ot]() : this[G] ? this[H]() : this.emit("drain"));
|
|
2110
2112
|
}
|
|
2111
2113
|
resume() {
|
|
2112
2114
|
return this[st]();
|
|
2113
2115
|
}
|
|
2114
2116
|
pause() {
|
|
2115
|
-
this[v] = !1, this[dt] = !0, this[M] = !1;
|
|
2117
|
+
this[v$1] = !1, this[dt] = !0, this[M] = !1;
|
|
2116
2118
|
}
|
|
2117
2119
|
get destroyed() {
|
|
2118
|
-
return this[x];
|
|
2120
|
+
return this[x$1];
|
|
2119
2121
|
}
|
|
2120
2122
|
get flowing() {
|
|
2121
|
-
return this[v];
|
|
2123
|
+
return this[v$1];
|
|
2122
2124
|
}
|
|
2123
2125
|
get paused() {
|
|
2124
2126
|
return this[dt];
|
|
2125
2127
|
}
|
|
2126
2128
|
[Yt](t) {
|
|
2127
|
-
this[k] ? this[T] += 1 : this[T] += t.length, this[C].push(t);
|
|
2129
|
+
this[k$1] ? this[T$1] += 1 : this[T$1] += t.length, this[C$1].push(t);
|
|
2128
2130
|
}
|
|
2129
2131
|
[Ft]() {
|
|
2130
|
-
return this[k] ? this[T] -= 1 : this[T] -= this[C][0].length, this[C].shift();
|
|
2132
|
+
return this[k$1] ? this[T$1] -= 1 : this[T$1] -= this[C$1][0].length, this[C$1].shift();
|
|
2131
2133
|
}
|
|
2132
2134
|
[Ot](t = !1) {
|
|
2133
2135
|
do ;
|
|
2134
|
-
while (this[Le](this[Ft]()) && this[C].length);
|
|
2135
|
-
!t && !this[C].length && !this[G] && this.emit("drain");
|
|
2136
|
+
while (this[Le](this[Ft]()) && this[C$1].length);
|
|
2137
|
+
!t && !this[C$1].length && !this[G] && this.emit("drain");
|
|
2136
2138
|
}
|
|
2137
2139
|
[Le](t) {
|
|
2138
|
-
return this.emit("data", t), this[v];
|
|
2140
|
+
return this.emit("data", t), this[v$1];
|
|
2139
2141
|
}
|
|
2140
2142
|
pipe(t, e) {
|
|
2141
|
-
if (this[x]) return t;
|
|
2143
|
+
if (this[x$1]) return t;
|
|
2142
2144
|
this[M] = !1;
|
|
2143
2145
|
let s = this[K];
|
|
2144
|
-
return e = e || {}, t === Ne.stdout || t === Ne.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F].push(e.proxyErrors ? new te(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
|
|
2146
|
+
return e = e || {}, t === Ne.stdout || t === Ne.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F$1].push(e.proxyErrors ? new te(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
|
|
2145
2147
|
}
|
|
2146
2148
|
unpipe(t) {
|
|
2147
|
-
let e = this[F].find((s) => s.dest === t);
|
|
2148
|
-
e && (this[F].length === 1 ? (this[v] && this[Y] === 0 && (this[v] = !1), this[F] = []) : this[F].splice(this[F].indexOf(e), 1), e.unpipe());
|
|
2149
|
+
let e = this[F$1].find((s) => s.dest === t);
|
|
2150
|
+
e && (this[F$1].length === 1 ? (this[v$1] && this[Y] === 0 && (this[v$1] = !1), this[F$1] = []) : this[F$1].splice(this[F$1].indexOf(e), 1), e.unpipe());
|
|
2149
2151
|
}
|
|
2150
2152
|
addListener(t, e) {
|
|
2151
2153
|
return this.on(t, e);
|
|
2152
2154
|
}
|
|
2153
2155
|
on(t, e) {
|
|
2154
2156
|
let s = super.on(t, e);
|
|
2155
|
-
if (t === "data") this[M] = !1, this[Y]++, !this[F].length && !this[v] && this[st]();
|
|
2156
|
-
else if (t === "readable" && this[T] !== 0) super.emit("readable");
|
|
2157
|
+
if (t === "data") this[M] = !1, this[Y]++, !this[F$1].length && !this[v$1] && this[st]();
|
|
2158
|
+
else if (t === "readable" && this[T$1] !== 0) super.emit("readable");
|
|
2157
2159
|
else if (ci(t) && this[K]) super.emit(t), this.removeAllListeners(t);
|
|
2158
2160
|
else if (t === "error" && this[ut]) {
|
|
2159
2161
|
let i = e;
|
|
@@ -2166,25 +2168,25 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2166
2168
|
}
|
|
2167
2169
|
off(t, e) {
|
|
2168
2170
|
let s = super.off(t, e);
|
|
2169
|
-
return t === "data" && (this[Y] = this.listeners("data").length, this[Y] === 0 && !this[M] && !this[F].length && (this[v] = !1)), s;
|
|
2171
|
+
return t === "data" && (this[Y] = this.listeners("data").length, this[Y] === 0 && !this[M] && !this[F$1].length && (this[v$1] = !1)), s;
|
|
2170
2172
|
}
|
|
2171
2173
|
removeAllListeners(t) {
|
|
2172
2174
|
let e = super.removeAllListeners(t);
|
|
2173
|
-
return (t === "data" || t === void 0) && (this[Y] = 0, !this[M] && !this[F].length && (this[v] = !1)), e;
|
|
2175
|
+
return (t === "data" || t === void 0) && (this[Y] = 0, !this[M] && !this[F$1].length && (this[v$1] = !1)), e;
|
|
2174
2176
|
}
|
|
2175
2177
|
get emittedEnd() {
|
|
2176
2178
|
return this[K];
|
|
2177
2179
|
}
|
|
2178
2180
|
[H]() {
|
|
2179
|
-
!this[kt] && !this[K] && !this[x] && this[C].length === 0 && this[G] && (this[kt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = !1);
|
|
2181
|
+
!this[kt] && !this[K] && !this[x$1] && this[C$1].length === 0 && this[G] && (this[kt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = !1);
|
|
2180
2182
|
}
|
|
2181
2183
|
emit(t, ...e) {
|
|
2182
2184
|
let s = e[0];
|
|
2183
|
-
if (t !== "error" && t !== "close" && t !== x && this[x]) return !1;
|
|
2184
|
-
if (t === "data") return !this[k] && !s ? !1 : this[B] ? (mt(() => this[Jt](s)), !0) : this[Jt](s);
|
|
2185
|
+
if (t !== "error" && t !== "close" && t !== x$1 && this[x$1]) return !1;
|
|
2186
|
+
if (t === "data") return !this[k$1] && !s ? !1 : this[B] ? (mt(() => this[Jt](s)), !0) : this[Jt](s);
|
|
2185
2187
|
if (t === "end") return this[We]();
|
|
2186
2188
|
if (t === "close") {
|
|
2187
|
-
if (this[Rt] = !0, !this[K] && !this[x]) return !1;
|
|
2189
|
+
if (this[Rt] = !0, !this[K] && !this[x$1]) return !1;
|
|
2188
2190
|
let r = super.emit("close");
|
|
2189
2191
|
return this.removeAllListeners("close"), r;
|
|
2190
2192
|
} else if (t === "error") {
|
|
@@ -2202,7 +2204,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2202
2204
|
return this[H](), i;
|
|
2203
2205
|
}
|
|
2204
2206
|
[Jt](t) {
|
|
2205
|
-
for (let s of this[F]) s.dest.write(t) === !1 && this.pause();
|
|
2207
|
+
for (let s of this[F$1]) s.dest.write(t) === !1 && this.pause();
|
|
2206
2208
|
let e = this[M] ? !1 : super.emit("data", t);
|
|
2207
2209
|
return this[H](), e;
|
|
2208
2210
|
}
|
|
@@ -2213,30 +2215,30 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2213
2215
|
if (this[et]) {
|
|
2214
2216
|
let e = this[et].end();
|
|
2215
2217
|
if (e) {
|
|
2216
|
-
for (let s of this[F]) s.dest.write(e);
|
|
2218
|
+
for (let s of this[F$1]) s.dest.write(e);
|
|
2217
2219
|
this[M] || super.emit("data", e);
|
|
2218
2220
|
}
|
|
2219
2221
|
}
|
|
2220
|
-
for (let e of this[F]) e.end();
|
|
2222
|
+
for (let e of this[F$1]) e.end();
|
|
2221
2223
|
let t = super.emit("end");
|
|
2222
2224
|
return this.removeAllListeners("end"), t;
|
|
2223
2225
|
}
|
|
2224
2226
|
async collect() {
|
|
2225
2227
|
let t = Object.assign([], { dataLength: 0 });
|
|
2226
|
-
this[k] || (t.dataLength = 0);
|
|
2228
|
+
this[k$1] || (t.dataLength = 0);
|
|
2227
2229
|
let e = this.promise();
|
|
2228
2230
|
return this.on("data", (s) => {
|
|
2229
|
-
t.push(s), this[k] || (t.dataLength += s.length);
|
|
2231
|
+
t.push(s), this[k$1] || (t.dataLength += s.length);
|
|
2230
2232
|
}), await e, t;
|
|
2231
2233
|
}
|
|
2232
2234
|
async concat() {
|
|
2233
|
-
if (this[k]) throw new Error("cannot concat in objectMode");
|
|
2235
|
+
if (this[k$1]) throw new Error("cannot concat in objectMode");
|
|
2234
2236
|
let t = await this.collect();
|
|
2235
|
-
return this[P] ? t.join("") : Buffer.concat(t, t.dataLength);
|
|
2237
|
+
return this[P$1] ? t.join("") : Buffer.concat(t, t.dataLength);
|
|
2236
2238
|
}
|
|
2237
2239
|
async promise() {
|
|
2238
2240
|
return new Promise((t, e) => {
|
|
2239
|
-
this.on(x, () => e(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (s) => e(s)), this.on("end", () => t());
|
|
2241
|
+
this.on(x$1, () => e(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (s) => e(s)), this.on("end", () => t());
|
|
2240
2242
|
});
|
|
2241
2243
|
}
|
|
2242
2244
|
[Symbol.asyncIterator]() {
|
|
@@ -2255,20 +2257,20 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2255
2257
|
});
|
|
2256
2258
|
if (this[G]) return e();
|
|
2257
2259
|
let r, o, h = (c) => {
|
|
2258
|
-
this.off("data", a), this.off("end", l), this.off(x, u), e(), o(c);
|
|
2260
|
+
this.off("data", a), this.off("end", l), this.off(x$1, u), e(), o(c);
|
|
2259
2261
|
}, a = (c) => {
|
|
2260
|
-
this.off("error", h), this.off("end", l), this.off(x, u), this.pause(), r({
|
|
2262
|
+
this.off("error", h), this.off("end", l), this.off(x$1, u), this.pause(), r({
|
|
2261
2263
|
value: c,
|
|
2262
2264
|
done: !!this[G]
|
|
2263
2265
|
});
|
|
2264
2266
|
}, l = () => {
|
|
2265
|
-
this.off("error", h), this.off("data", a), this.off(x, u), e(), r({
|
|
2267
|
+
this.off("error", h), this.off("data", a), this.off(x$1, u), e(), r({
|
|
2266
2268
|
done: !0,
|
|
2267
2269
|
value: void 0
|
|
2268
2270
|
});
|
|
2269
2271
|
}, u = () => h(/* @__PURE__ */ new Error("stream destroyed"));
|
|
2270
2272
|
return new Promise((c, d) => {
|
|
2271
|
-
o = d, r = c, this.once(x, u), this.once("error", h), this.once("end", l), this.once("data", a);
|
|
2273
|
+
o = d, r = c, this.once(x$1, u), this.once("error", h), this.once("end", l), this.once("data", a);
|
|
2272
2274
|
});
|
|
2273
2275
|
},
|
|
2274
2276
|
throw: e,
|
|
@@ -2281,7 +2283,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2281
2283
|
}
|
|
2282
2284
|
[Symbol.iterator]() {
|
|
2283
2285
|
this[M] = !1;
|
|
2284
|
-
let t = !1, e = () => (this.pause(), this.off(Xt, e), this.off(x, e), this.off("end", e), t = !0, {
|
|
2286
|
+
let t = !1, e = () => (this.pause(), this.off(Xt, e), this.off(x$1, e), this.off("end", e), t = !0, {
|
|
2285
2287
|
done: !0,
|
|
2286
2288
|
value: void 0
|
|
2287
2289
|
}), s = () => {
|
|
@@ -2292,7 +2294,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2292
2294
|
value: i
|
|
2293
2295
|
};
|
|
2294
2296
|
};
|
|
2295
|
-
return this.once("end", e), this.once(Xt, e), this.once(x, e), {
|
|
2297
|
+
return this.once("end", e), this.once(Xt, e), this.once(x$1, e), {
|
|
2296
2298
|
next: s,
|
|
2297
2299
|
throw: e,
|
|
2298
2300
|
return: e,
|
|
@@ -2303,10 +2305,10 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2303
2305
|
};
|
|
2304
2306
|
}
|
|
2305
2307
|
destroy(t) {
|
|
2306
|
-
if (this[x]) return t ? this.emit("error", t) : this.emit(x), this;
|
|
2307
|
-
this[x] = !0, this[M] = !0, this[C].length = 0, this[T] = 0;
|
|
2308
|
+
if (this[x$1]) return t ? this.emit("error", t) : this.emit(x$1), this;
|
|
2309
|
+
this[x$1] = !0, this[M] = !0, this[C$1].length = 0, this[T$1] = 0;
|
|
2308
2310
|
let e = this;
|
|
2309
|
-
return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x), this;
|
|
2311
|
+
return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x$1), this;
|
|
2310
2312
|
}
|
|
2311
2313
|
static get isStream() {
|
|
2312
2314
|
return oi;
|
|
@@ -2344,15 +2346,15 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2344
2346
|
Ke = 8;
|
|
2345
2347
|
X = 10;
|
|
2346
2348
|
Ve = 12;
|
|
2347
|
-
_ = 15;
|
|
2348
|
-
gt = ~_;
|
|
2349
|
+
_$1 = 15;
|
|
2350
|
+
gt = ~_$1;
|
|
2349
2351
|
se = 16;
|
|
2350
2352
|
je = 32;
|
|
2351
2353
|
yt = 64;
|
|
2352
|
-
j = 128;
|
|
2354
|
+
j$1 = 128;
|
|
2353
2355
|
Nt = 256;
|
|
2354
2356
|
Lt = 512;
|
|
2355
|
-
Ie = yt | j | Lt;
|
|
2357
|
+
Ie = yt | j$1 | Lt;
|
|
2356
2358
|
Fi = 1023;
|
|
2357
2359
|
ie = (n) => n.isFile() ? Ke : n.isDirectory() ? U : n.isSymbolicLink() ? X : n.isCharacterDevice() ? He : n.isBlockDevice() ? qe : n.isSocket() ? Ve : n.isFIFO() ? Ge : L;
|
|
2358
2360
|
ze = new ft({ max: 2 ** 12 });
|
|
@@ -2383,7 +2385,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2383
2385
|
}
|
|
2384
2386
|
};
|
|
2385
2387
|
Ye = Symbol("PathScurry setAsCwd");
|
|
2386
|
-
R = class {
|
|
2388
|
+
R$1 = class {
|
|
2387
2389
|
name;
|
|
2388
2390
|
root;
|
|
2389
2391
|
roots;
|
|
@@ -2514,7 +2516,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2514
2516
|
parent: this,
|
|
2515
2517
|
fullpath: o
|
|
2516
2518
|
});
|
|
2517
|
-
return this.canReaddir() || (h.#e |= j), s.push(h), h;
|
|
2519
|
+
return this.canReaddir() || (h.#e |= j$1), s.push(h), h;
|
|
2518
2520
|
}
|
|
2519
2521
|
relative() {
|
|
2520
2522
|
if (this.isCWD) return "";
|
|
@@ -2551,7 +2553,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2551
2553
|
return this.#y = s;
|
|
2552
2554
|
}
|
|
2553
2555
|
isUnknown() {
|
|
2554
|
-
return (this.#e & _) === L;
|
|
2556
|
+
return (this.#e & _$1) === L;
|
|
2555
2557
|
}
|
|
2556
2558
|
isType(t) {
|
|
2557
2559
|
return this[`is${t}`]();
|
|
@@ -2560,22 +2562,22 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2560
2562
|
return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
|
|
2561
2563
|
}
|
|
2562
2564
|
isFile() {
|
|
2563
|
-
return (this.#e & _) === Ke;
|
|
2565
|
+
return (this.#e & _$1) === Ke;
|
|
2564
2566
|
}
|
|
2565
2567
|
isDirectory() {
|
|
2566
|
-
return (this.#e & _) === U;
|
|
2568
|
+
return (this.#e & _$1) === U;
|
|
2567
2569
|
}
|
|
2568
2570
|
isCharacterDevice() {
|
|
2569
|
-
return (this.#e & _) === He;
|
|
2571
|
+
return (this.#e & _$1) === He;
|
|
2570
2572
|
}
|
|
2571
2573
|
isBlockDevice() {
|
|
2572
|
-
return (this.#e & _) === qe;
|
|
2574
|
+
return (this.#e & _$1) === qe;
|
|
2573
2575
|
}
|
|
2574
2576
|
isFIFO() {
|
|
2575
|
-
return (this.#e & _) === Ge;
|
|
2577
|
+
return (this.#e & _$1) === Ge;
|
|
2576
2578
|
}
|
|
2577
2579
|
isSocket() {
|
|
2578
|
-
return (this.#e & _) === Ve;
|
|
2580
|
+
return (this.#e & _$1) === Ve;
|
|
2579
2581
|
}
|
|
2580
2582
|
isSymbolicLink() {
|
|
2581
2583
|
return (this.#e & X) === X;
|
|
@@ -2596,14 +2598,14 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2596
2598
|
canReadlink() {
|
|
2597
2599
|
if (this.#M) return !0;
|
|
2598
2600
|
if (!this.parent) return !1;
|
|
2599
|
-
let t = this.#e & _;
|
|
2600
|
-
return !(t !== L && t !== X || this.#e & Nt || this.#e & j);
|
|
2601
|
+
let t = this.#e & _$1;
|
|
2602
|
+
return !(t !== L && t !== X || this.#e & Nt || this.#e & j$1);
|
|
2601
2603
|
}
|
|
2602
2604
|
calledReaddir() {
|
|
2603
2605
|
return !!(this.#e & se);
|
|
2604
2606
|
}
|
|
2605
2607
|
isENOENT() {
|
|
2606
|
-
return !!(this.#e & j);
|
|
2608
|
+
return !!(this.#e & j$1);
|
|
2607
2609
|
}
|
|
2608
2610
|
isNamed(t) {
|
|
2609
2611
|
return this.nocase ? this.#C === _t(t) : this.#C === bt(t);
|
|
@@ -2638,7 +2640,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2638
2640
|
}
|
|
2639
2641
|
}
|
|
2640
2642
|
#v() {
|
|
2641
|
-
this.#e & j || (this.#e = (this.#e | j) & gt, this.#G());
|
|
2643
|
+
this.#e & j$1 || (this.#e = (this.#e | j$1) & gt, this.#G());
|
|
2642
2644
|
}
|
|
2643
2645
|
#G() {
|
|
2644
2646
|
let t = this.children();
|
|
@@ -2651,7 +2653,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2651
2653
|
#L() {
|
|
2652
2654
|
if (this.#e & yt) return;
|
|
2653
2655
|
let t = this.#e;
|
|
2654
|
-
(t & _) === U && (t &= gt), this.#e = t | yt, this.#G();
|
|
2656
|
+
(t & _$1) === U && (t &= gt), this.#e = t | yt, this.#G();
|
|
2655
2657
|
}
|
|
2656
2658
|
#I(t = "") {
|
|
2657
2659
|
t === "ENOTDIR" || t === "EPERM" ? this.#L() : t === "ENOENT" ? this.#v() : this.children().provisional = 0;
|
|
@@ -2661,13 +2663,13 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2661
2663
|
}
|
|
2662
2664
|
#D(t = "") {
|
|
2663
2665
|
let e = this.#e;
|
|
2664
|
-
e |= Nt, t === "ENOENT" && (e |= j), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
|
|
2666
|
+
e |= Nt, t === "ENOENT" && (e |= j$1), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
|
|
2665
2667
|
}
|
|
2666
2668
|
#z(t, e) {
|
|
2667
2669
|
return this.#U(t, e) || this.#B(t, e);
|
|
2668
2670
|
}
|
|
2669
2671
|
#B(t, e) {
|
|
2670
|
-
let s = ie(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _;
|
|
2672
|
+
let s = ie(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$1;
|
|
2671
2673
|
return r !== U && r !== X && r !== L && (i.#e |= yt), e.unshift(i), e.provisional++, i;
|
|
2672
2674
|
}
|
|
2673
2675
|
#U(t, e) {
|
|
@@ -2681,14 +2683,14 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2681
2683
|
return e.#e = e.#e & gt | ie(t), r !== t.name && (e.name = t.name), s !== i.provisional && (s === i.length - 1 ? i.pop() : i.splice(s, 1), i.unshift(e)), i.provisional++, e;
|
|
2682
2684
|
}
|
|
2683
2685
|
async lstat() {
|
|
2684
|
-
if ((this.#e & j) === 0) try {
|
|
2686
|
+
if ((this.#e & j$1) === 0) try {
|
|
2685
2687
|
return this.#$(await this.#t.promises.lstat(this.fullpath())), this;
|
|
2686
2688
|
} catch (t) {
|
|
2687
2689
|
this.#F(t.code);
|
|
2688
2690
|
}
|
|
2689
2691
|
}
|
|
2690
2692
|
lstatSync() {
|
|
2691
|
-
if ((this.#e & j) === 0) try {
|
|
2693
|
+
if ((this.#e & j$1) === 0) try {
|
|
2692
2694
|
return this.#$(this.#t.lstatSync(this.fullpath())), this;
|
|
2693
2695
|
} catch (t) {
|
|
2694
2696
|
this.#F(t.code);
|
|
@@ -2765,7 +2767,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2765
2767
|
}
|
|
2766
2768
|
canReaddir() {
|
|
2767
2769
|
if (this.#e & Ie) return !1;
|
|
2768
|
-
let t = _ & this.#e;
|
|
2770
|
+
let t = _$1 & this.#e;
|
|
2769
2771
|
return t === L || t === U || t === X;
|
|
2770
2772
|
}
|
|
2771
2773
|
shouldWalk(t, e) {
|
|
@@ -2773,7 +2775,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2773
2775
|
}
|
|
2774
2776
|
async realpath() {
|
|
2775
2777
|
if (this.#k) return this.#k;
|
|
2776
|
-
if (!((Lt | Nt | j) & this.#e)) try {
|
|
2778
|
+
if (!((Lt | Nt | j$1) & this.#e)) try {
|
|
2777
2779
|
let t = await this.#t.promises.realpath(this.fullpath());
|
|
2778
2780
|
return this.#k = this.resolve(t);
|
|
2779
2781
|
} catch {
|
|
@@ -2782,7 +2784,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2782
2784
|
}
|
|
2783
2785
|
realpathSync() {
|
|
2784
2786
|
if (this.#k) return this.#k;
|
|
2785
|
-
if (!((Lt | Nt | j) & this.#e)) try {
|
|
2787
|
+
if (!((Lt | Nt | j$1) & this.#e)) try {
|
|
2786
2788
|
let t = this.#t.realpathSync(this.fullpath());
|
|
2787
2789
|
return this.#k = this.resolve(t);
|
|
2788
2790
|
} catch {
|
|
@@ -2797,7 +2799,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2797
2799
|
for (i = t; i && i.parent && !e.has(i);) i.#x = void 0, i.#A = void 0, i = i.parent;
|
|
2798
2800
|
}
|
|
2799
2801
|
};
|
|
2800
|
-
Pt = class n extends R {
|
|
2802
|
+
Pt = class n extends R$1 {
|
|
2801
2803
|
sep = "\\";
|
|
2802
2804
|
splitSep = Oi;
|
|
2803
2805
|
constructor(t, e = L, s, i, r, o, h) {
|
|
@@ -2818,7 +2820,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2818
2820
|
return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
|
|
2819
2821
|
}
|
|
2820
2822
|
};
|
|
2821
|
-
jt = class n extends R {
|
|
2823
|
+
jt = class n extends R$1 {
|
|
2822
2824
|
splitSep = "/";
|
|
2823
2825
|
sep = "/";
|
|
2824
2826
|
constructor(t, e = L, s, i, r, o, h) {
|
|
@@ -2903,7 +2905,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2903
2905
|
return typeof t == "string" && (t = this.cwd.resolve(t)), (t.parent || t).fullpath();
|
|
2904
2906
|
}
|
|
2905
2907
|
async readdir(t = this.cwd, e = { withFileTypes: !0 }) {
|
|
2906
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2908
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t, t = this.cwd);
|
|
2907
2909
|
let { withFileTypes: s } = e;
|
|
2908
2910
|
if (t.canReaddir()) {
|
|
2909
2911
|
let i = await t.readdir();
|
|
@@ -2911,7 +2913,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2911
2913
|
} else return [];
|
|
2912
2914
|
}
|
|
2913
2915
|
readdirSync(t = this.cwd, e = { withFileTypes: !0 }) {
|
|
2914
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2916
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t, t = this.cwd);
|
|
2915
2917
|
let { withFileTypes: s = !0 } = e;
|
|
2916
2918
|
return t.canReaddir() ? s ? t.readdirSync() : t.readdirSync().map((i) => i.name) : [];
|
|
2917
2919
|
}
|
|
@@ -2922,27 +2924,27 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2922
2924
|
return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstatSync();
|
|
2923
2925
|
}
|
|
2924
2926
|
async readlink(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
2925
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
|
|
2927
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t.withFileTypes, t = this.cwd);
|
|
2926
2928
|
let s = await t.readlink();
|
|
2927
2929
|
return e ? s : s?.fullpath();
|
|
2928
2930
|
}
|
|
2929
2931
|
readlinkSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
2930
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
|
|
2932
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t.withFileTypes, t = this.cwd);
|
|
2931
2933
|
let s = t.readlinkSync();
|
|
2932
2934
|
return e ? s : s?.fullpath();
|
|
2933
2935
|
}
|
|
2934
2936
|
async realpath(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
2935
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
|
|
2937
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t.withFileTypes, t = this.cwd);
|
|
2936
2938
|
let s = await t.realpath();
|
|
2937
2939
|
return e ? s : s?.fullpath();
|
|
2938
2940
|
}
|
|
2939
2941
|
realpathSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
2940
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
|
|
2942
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t.withFileTypes, t = this.cwd);
|
|
2941
2943
|
let s = t.realpathSync();
|
|
2942
2944
|
return e ? s : s?.fullpath();
|
|
2943
2945
|
}
|
|
2944
2946
|
async walk(t = this.cwd, e = {}) {
|
|
2945
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2947
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t, t = this.cwd);
|
|
2946
2948
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
|
|
2947
2949
|
(!r || r(t)) && h.push(s ? t : t.fullpath());
|
|
2948
2950
|
let a = /* @__PURE__ */ new Set(), l = (c, d) => {
|
|
@@ -2964,7 +2966,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2964
2966
|
});
|
|
2965
2967
|
}
|
|
2966
2968
|
walkSync(t = this.cwd, e = {}) {
|
|
2967
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2969
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t, t = this.cwd);
|
|
2968
2970
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
|
|
2969
2971
|
(!r || r(t)) && h.push(s ? t : t.fullpath());
|
|
2970
2972
|
let a = /* @__PURE__ */ new Set([t]);
|
|
@@ -2986,13 +2988,13 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2986
2988
|
return this.iterate();
|
|
2987
2989
|
}
|
|
2988
2990
|
iterate(t = this.cwd, e = {}) {
|
|
2989
|
-
return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
|
|
2991
|
+
return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
|
|
2990
2992
|
}
|
|
2991
2993
|
[Symbol.iterator]() {
|
|
2992
2994
|
return this.iterateSync();
|
|
2993
2995
|
}
|
|
2994
2996
|
*iterateSync(t = this.cwd, e = {}) {
|
|
2995
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2997
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t, t = this.cwd);
|
|
2996
2998
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e;
|
|
2997
2999
|
(!r || r(t)) && (yield s ? t : t.fullpath());
|
|
2998
3000
|
let h = /* @__PURE__ */ new Set([t]);
|
|
@@ -3010,7 +3012,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3010
3012
|
}
|
|
3011
3013
|
}
|
|
3012
3014
|
stream(t = this.cwd, e = {}) {
|
|
3013
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
3015
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t, t = this.cwd);
|
|
3014
3016
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 });
|
|
3015
3017
|
(!r || r(t)) && h.write(s ? t : t.fullpath());
|
|
3016
3018
|
let a = /* @__PURE__ */ new Set(), l = [t], u = 0, c = () => {
|
|
@@ -3046,7 +3048,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3046
3048
|
return c(), h;
|
|
3047
3049
|
}
|
|
3048
3050
|
streamSync(t = this.cwd, e = {}) {
|
|
3049
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
3051
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$1 || (e = t, t = this.cwd);
|
|
3050
3052
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 }), a = /* @__PURE__ */ new Set();
|
|
3051
3053
|
(!r || r(t)) && h.write(s ? t : t.fullpath());
|
|
3052
3054
|
let l = [t], u = 0, c = () => {
|
|
@@ -3245,12 +3247,12 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3245
3247
|
for (let h of t) this.add(h);
|
|
3246
3248
|
}
|
|
3247
3249
|
add(t) {
|
|
3248
|
-
let e = new D(t, this.mmopts);
|
|
3250
|
+
let e = new D$1(t, this.mmopts);
|
|
3249
3251
|
for (let s = 0; s < e.set.length; s++) {
|
|
3250
3252
|
let i = e.set[s], r = e.globParts[s];
|
|
3251
3253
|
if (!i || !r) throw new Error("invalid pattern object");
|
|
3252
3254
|
for (; i[0] === "." && r[0] === ".";) i.shift(), r.shift();
|
|
3253
|
-
let o = new nt(i, r, 0, this.platform), h = new D(o.globString(), this.mmopts), a = r[r.length - 1] === "**", l = o.isAbsolute();
|
|
3255
|
+
let o = new nt(i, r, 0, this.platform), h = new D$1(o.globString(), this.mmopts), a = r[r.length - 1] === "**", l = o.isAbsolute();
|
|
3254
3256
|
l ? this.absolute.push(h) : this.relative.push(h), a && (l ? this.absoluteChildren.push(h) : this.relativeChildren.push(h));
|
|
3255
3257
|
}
|
|
3256
3258
|
}
|
|
@@ -3599,7 +3601,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3599
3601
|
}
|
|
3600
3602
|
};
|
|
3601
3603
|
Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
|
|
3602
|
-
I = class {
|
|
3604
|
+
I$1 = class {
|
|
3603
3605
|
absolute;
|
|
3604
3606
|
cwd;
|
|
3605
3607
|
root;
|
|
@@ -3662,7 +3664,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3662
3664
|
platform: this.platform,
|
|
3663
3665
|
windowsPathsNoEscape: this.windowsPathsNoEscape,
|
|
3664
3666
|
debug: !!this.opts.debug
|
|
3665
|
-
}, [o, h] = this.pattern.map((a) => new D(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
|
|
3667
|
+
}, [o, h] = this.pattern.map((a) => new D$1(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
|
|
3666
3668
|
this.patterns = o.map((a, l) => {
|
|
3667
3669
|
let u = h[l];
|
|
3668
3670
|
if (!u) throw new Error("invalid pattern object");
|
|
@@ -3720,7 +3722,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3720
3722
|
};
|
|
3721
3723
|
le = (n, t = {}) => {
|
|
3722
3724
|
Array.isArray(n) || (n = [n]);
|
|
3723
|
-
for (let e of n) if (new D(e, t).hasMagic()) return !0;
|
|
3725
|
+
for (let e of n) if (new D$1(e, t).hasMagic()) return !0;
|
|
3724
3726
|
return !1;
|
|
3725
3727
|
};
|
|
3726
3728
|
ji = Bt;
|
|
@@ -3743,7 +3745,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3743
3745
|
iterate: Bi,
|
|
3744
3746
|
globIterateSync: Ut,
|
|
3745
3747
|
iterateSync: zi,
|
|
3746
|
-
Glob: I,
|
|
3748
|
+
Glob: I$1,
|
|
3747
3749
|
hasMagic: le,
|
|
3748
3750
|
escape: tt,
|
|
3749
3751
|
unescape: W
|
|
@@ -6391,7 +6393,7 @@ var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6391
6393
|
module.exports = parseJson;
|
|
6392
6394
|
}));
|
|
6393
6395
|
//#endregion
|
|
6394
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6396
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
|
|
6395
6397
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6396
6398
|
function isNothing(subject) {
|
|
6397
6399
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -6405,19 +6407,18 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6405
6407
|
return [sequence];
|
|
6406
6408
|
}
|
|
6407
6409
|
function extend(target, source) {
|
|
6408
|
-
var index, length, key, sourceKeys;
|
|
6409
6410
|
if (source) {
|
|
6410
|
-
sourceKeys = Object.keys(source);
|
|
6411
|
-
for (index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
6412
|
-
key = sourceKeys[index];
|
|
6411
|
+
const sourceKeys = Object.keys(source);
|
|
6412
|
+
for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
6413
|
+
const key = sourceKeys[index];
|
|
6413
6414
|
target[key] = source[key];
|
|
6414
6415
|
}
|
|
6415
6416
|
}
|
|
6416
6417
|
return target;
|
|
6417
6418
|
}
|
|
6418
6419
|
function repeat(string, count) {
|
|
6419
|
-
|
|
6420
|
-
for (cycle = 0; cycle < count; cycle += 1) result += string;
|
|
6420
|
+
let result = "";
|
|
6421
|
+
for (let cycle = 0; cycle < count; cycle += 1) result += string;
|
|
6421
6422
|
return result;
|
|
6422
6423
|
}
|
|
6423
6424
|
function isNegativeZero(number) {
|
|
@@ -6431,10 +6432,11 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6431
6432
|
module.exports.extend = extend;
|
|
6432
6433
|
}));
|
|
6433
6434
|
//#endregion
|
|
6434
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6435
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/exception.js
|
|
6435
6436
|
var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6436
6437
|
function formatError(exception, compact) {
|
|
6437
|
-
|
|
6438
|
+
let where = "";
|
|
6439
|
+
const message = exception.reason || "(unknown reason)";
|
|
6438
6440
|
if (!exception.mark) return message;
|
|
6439
6441
|
if (exception.mark.name) where += "in \"" + exception.mark.name + "\" ";
|
|
6440
6442
|
where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
|
|
@@ -6458,13 +6460,13 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6458
6460
|
module.exports = YAMLException;
|
|
6459
6461
|
}));
|
|
6460
6462
|
//#endregion
|
|
6461
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6463
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/snippet.js
|
|
6462
6464
|
var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6463
|
-
|
|
6465
|
+
const common = require_common();
|
|
6464
6466
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6467
|
+
let head = "";
|
|
6468
|
+
let tail = "";
|
|
6469
|
+
const maxHalfLength = Math.floor(maxLineLength / 2) - 1;
|
|
6468
6470
|
if (position - lineStart > maxHalfLength) {
|
|
6469
6471
|
head = " ... ";
|
|
6470
6472
|
lineStart = position - maxHalfLength + head.length;
|
|
@@ -6488,31 +6490,31 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6488
6490
|
if (typeof options.indent !== "number") options.indent = 1;
|
|
6489
6491
|
if (typeof options.linesBefore !== "number") options.linesBefore = 3;
|
|
6490
6492
|
if (typeof options.linesAfter !== "number") options.linesAfter = 2;
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6493
|
+
const re = /\r?\n|\r|\0/g;
|
|
6494
|
+
const lineStarts = [0];
|
|
6495
|
+
const lineEnds = [];
|
|
6496
|
+
let match;
|
|
6497
|
+
let foundLineNo = -1;
|
|
6496
6498
|
while (match = re.exec(mark.buffer)) {
|
|
6497
6499
|
lineEnds.push(match.index);
|
|
6498
6500
|
lineStarts.push(match.index + match[0].length);
|
|
6499
6501
|
if (mark.position <= match.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2;
|
|
6500
6502
|
}
|
|
6501
6503
|
if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
for (i = 1; i <= options.linesBefore; i++) {
|
|
6504
|
+
let result = "";
|
|
6505
|
+
const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
|
|
6506
|
+
const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
|
|
6507
|
+
for (let i = 1; i <= options.linesBefore; i++) {
|
|
6506
6508
|
if (foundLineNo - i < 0) break;
|
|
6507
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
6509
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
6508
6510
|
result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
|
|
6509
6511
|
}
|
|
6510
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
6512
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
6511
6513
|
result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
6512
6514
|
result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
|
|
6513
|
-
for (i = 1; i <= options.linesAfter; i++) {
|
|
6515
|
+
for (let i = 1; i <= options.linesAfter; i++) {
|
|
6514
6516
|
if (foundLineNo + i >= lineEnds.length) break;
|
|
6515
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
6517
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
6516
6518
|
result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
6517
6519
|
}
|
|
6518
6520
|
return result.replace(/\n$/, "");
|
|
@@ -6520,10 +6522,10 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6520
6522
|
module.exports = makeSnippet;
|
|
6521
6523
|
}));
|
|
6522
6524
|
//#endregion
|
|
6523
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6525
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type.js
|
|
6524
6526
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
+
const YAMLException = require_exception();
|
|
6528
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
6527
6529
|
"kind",
|
|
6528
6530
|
"multi",
|
|
6529
6531
|
"resolve",
|
|
@@ -6535,13 +6537,13 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6535
6537
|
"defaultStyle",
|
|
6536
6538
|
"styleAliases"
|
|
6537
6539
|
];
|
|
6538
|
-
|
|
6540
|
+
const YAML_NODE_KINDS = [
|
|
6539
6541
|
"scalar",
|
|
6540
6542
|
"sequence",
|
|
6541
6543
|
"mapping"
|
|
6542
6544
|
];
|
|
6543
6545
|
function compileStyleAliases(map) {
|
|
6544
|
-
|
|
6546
|
+
const result = {};
|
|
6545
6547
|
if (map !== null) Object.keys(map).forEach(function(style) {
|
|
6546
6548
|
map[style].forEach(function(alias) {
|
|
6547
6549
|
result[String(alias)] = style;
|
|
@@ -6575,14 +6577,14 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6575
6577
|
module.exports = Type;
|
|
6576
6578
|
}));
|
|
6577
6579
|
//#endregion
|
|
6578
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6580
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema.js
|
|
6579
6581
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
+
const YAMLException = require_exception();
|
|
6583
|
+
const Type = require_type();
|
|
6582
6584
|
function compileList(schema, name) {
|
|
6583
|
-
|
|
6585
|
+
const result = [];
|
|
6584
6586
|
schema[name].forEach(function(currentType) {
|
|
6585
|
-
|
|
6587
|
+
let newIndex = result.length;
|
|
6586
6588
|
result.forEach(function(previousType, previousIndex) {
|
|
6587
6589
|
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) newIndex = previousIndex;
|
|
6588
6590
|
});
|
|
@@ -6591,7 +6593,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6591
6593
|
return result;
|
|
6592
6594
|
}
|
|
6593
6595
|
function compileMap() {
|
|
6594
|
-
|
|
6596
|
+
const result = {
|
|
6595
6597
|
scalar: {},
|
|
6596
6598
|
sequence: {},
|
|
6597
6599
|
mapping: {},
|
|
@@ -6602,22 +6604,22 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6602
6604
|
mapping: [],
|
|
6603
6605
|
fallback: []
|
|
6604
6606
|
}
|
|
6605
|
-
}
|
|
6607
|
+
};
|
|
6606
6608
|
function collectType(type) {
|
|
6607
6609
|
if (type.multi) {
|
|
6608
6610
|
result.multi[type.kind].push(type);
|
|
6609
6611
|
result.multi["fallback"].push(type);
|
|
6610
6612
|
} else result[type.kind][type.tag] = result["fallback"][type.tag] = type;
|
|
6611
6613
|
}
|
|
6612
|
-
for (index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
|
|
6614
|
+
for (let index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
|
|
6613
6615
|
return result;
|
|
6614
6616
|
}
|
|
6615
6617
|
function Schema(definition) {
|
|
6616
6618
|
return this.extend(definition);
|
|
6617
6619
|
}
|
|
6618
6620
|
Schema.prototype.extend = function extend(definition) {
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
+
let implicit = [];
|
|
6622
|
+
let explicit = [];
|
|
6621
6623
|
if (definition instanceof Type) explicit.push(definition);
|
|
6622
6624
|
else if (Array.isArray(definition)) explicit = explicit.concat(definition);
|
|
6623
6625
|
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
@@ -6632,7 +6634,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6632
6634
|
explicit.forEach(function(type) {
|
|
6633
6635
|
if (!(type instanceof Type)) throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
6634
6636
|
});
|
|
6635
|
-
|
|
6637
|
+
const result = Object.create(Schema.prototype);
|
|
6636
6638
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
6637
6639
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
6638
6640
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -6643,7 +6645,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6643
6645
|
module.exports = Schema;
|
|
6644
6646
|
}));
|
|
6645
6647
|
//#endregion
|
|
6646
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6648
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/str.js
|
|
6647
6649
|
var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6648
6650
|
module.exports = new (require_type())("tag:yaml.org,2002:str", {
|
|
6649
6651
|
kind: "scalar",
|
|
@@ -6653,7 +6655,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6653
6655
|
});
|
|
6654
6656
|
}));
|
|
6655
6657
|
//#endregion
|
|
6656
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6658
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/seq.js
|
|
6657
6659
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6658
6660
|
module.exports = new (require_type())("tag:yaml.org,2002:seq", {
|
|
6659
6661
|
kind: "sequence",
|
|
@@ -6663,7 +6665,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6663
6665
|
});
|
|
6664
6666
|
}));
|
|
6665
6667
|
//#endregion
|
|
6666
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6668
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/map.js
|
|
6667
6669
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6668
6670
|
module.exports = new (require_type())("tag:yaml.org,2002:map", {
|
|
6669
6671
|
kind: "mapping",
|
|
@@ -6673,7 +6675,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6673
6675
|
});
|
|
6674
6676
|
}));
|
|
6675
6677
|
//#endregion
|
|
6676
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6678
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/failsafe.js
|
|
6677
6679
|
var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6678
6680
|
module.exports = new (require_schema())({ explicit: [
|
|
6679
6681
|
require_str(),
|
|
@@ -6682,12 +6684,12 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6682
6684
|
] });
|
|
6683
6685
|
}));
|
|
6684
6686
|
//#endregion
|
|
6685
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6687
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/null.js
|
|
6686
6688
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6687
|
-
|
|
6689
|
+
const Type = require_type();
|
|
6688
6690
|
function resolveYamlNull(data) {
|
|
6689
6691
|
if (data === null) return true;
|
|
6690
|
-
|
|
6692
|
+
const max = data.length;
|
|
6691
6693
|
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
6692
6694
|
}
|
|
6693
6695
|
function constructYamlNull() {
|
|
@@ -6722,12 +6724,12 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6722
6724
|
});
|
|
6723
6725
|
}));
|
|
6724
6726
|
//#endregion
|
|
6725
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6727
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/bool.js
|
|
6726
6728
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6727
|
-
|
|
6729
|
+
const Type = require_type();
|
|
6728
6730
|
function resolveYamlBoolean(data) {
|
|
6729
6731
|
if (data === null) return false;
|
|
6730
|
-
|
|
6732
|
+
const max = data.length;
|
|
6731
6733
|
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
6732
6734
|
}
|
|
6733
6735
|
function constructYamlBoolean(data) {
|
|
@@ -6756,24 +6758,26 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6756
6758
|
});
|
|
6757
6759
|
}));
|
|
6758
6760
|
//#endregion
|
|
6759
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6761
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/int.js
|
|
6760
6762
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
+
const common = require_common();
|
|
6764
|
+
const Type = require_type();
|
|
6763
6765
|
function isHexCode(c) {
|
|
6764
|
-
return
|
|
6766
|
+
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
6765
6767
|
}
|
|
6766
6768
|
function isOctCode(c) {
|
|
6767
|
-
return
|
|
6769
|
+
return c >= 48 && c <= 55;
|
|
6768
6770
|
}
|
|
6769
6771
|
function isDecCode(c) {
|
|
6770
|
-
return
|
|
6772
|
+
return c >= 48 && c <= 57;
|
|
6771
6773
|
}
|
|
6772
6774
|
function resolveYamlInteger(data) {
|
|
6773
6775
|
if (data === null) return false;
|
|
6774
|
-
|
|
6776
|
+
const max = data.length;
|
|
6777
|
+
let index = 0;
|
|
6778
|
+
let hasDigits = false;
|
|
6775
6779
|
if (!max) return false;
|
|
6776
|
-
ch = data[index];
|
|
6780
|
+
let ch = data[index];
|
|
6777
6781
|
if (ch === "-" || ch === "+") ch = data[++index];
|
|
6778
6782
|
if (ch === "0") {
|
|
6779
6783
|
if (index + 1 === max) return true;
|
|
@@ -6782,47 +6786,39 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6782
6786
|
index++;
|
|
6783
6787
|
for (; index < max; index++) {
|
|
6784
6788
|
ch = data[index];
|
|
6785
|
-
if (ch === "_") continue;
|
|
6786
6789
|
if (ch !== "0" && ch !== "1") return false;
|
|
6787
6790
|
hasDigits = true;
|
|
6788
6791
|
}
|
|
6789
|
-
return hasDigits &&
|
|
6792
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6790
6793
|
}
|
|
6791
6794
|
if (ch === "x") {
|
|
6792
6795
|
index++;
|
|
6793
6796
|
for (; index < max; index++) {
|
|
6794
|
-
ch = data[index];
|
|
6795
|
-
if (ch === "_") continue;
|
|
6796
6797
|
if (!isHexCode(data.charCodeAt(index))) return false;
|
|
6797
6798
|
hasDigits = true;
|
|
6798
6799
|
}
|
|
6799
|
-
return hasDigits &&
|
|
6800
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6800
6801
|
}
|
|
6801
6802
|
if (ch === "o") {
|
|
6802
6803
|
index++;
|
|
6803
6804
|
for (; index < max; index++) {
|
|
6804
|
-
ch = data[index];
|
|
6805
|
-
if (ch === "_") continue;
|
|
6806
6805
|
if (!isOctCode(data.charCodeAt(index))) return false;
|
|
6807
6806
|
hasDigits = true;
|
|
6808
6807
|
}
|
|
6809
|
-
return hasDigits &&
|
|
6808
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6810
6809
|
}
|
|
6811
6810
|
}
|
|
6812
|
-
if (ch === "_") return false;
|
|
6813
6811
|
for (; index < max; index++) {
|
|
6814
|
-
ch = data[index];
|
|
6815
|
-
if (ch === "_") continue;
|
|
6816
6812
|
if (!isDecCode(data.charCodeAt(index))) return false;
|
|
6817
6813
|
hasDigits = true;
|
|
6818
6814
|
}
|
|
6819
|
-
if (!hasDigits
|
|
6820
|
-
return
|
|
6815
|
+
if (!hasDigits) return false;
|
|
6816
|
+
return isFinite(parseYamlInteger(data));
|
|
6821
6817
|
}
|
|
6822
|
-
function
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
ch = value[0];
|
|
6818
|
+
function parseYamlInteger(data) {
|
|
6819
|
+
let value = data;
|
|
6820
|
+
let sign = 1;
|
|
6821
|
+
let ch = value[0];
|
|
6826
6822
|
if (ch === "-" || ch === "+") {
|
|
6827
6823
|
if (ch === "-") sign = -1;
|
|
6828
6824
|
value = value.slice(1);
|
|
@@ -6836,6 +6832,9 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6836
6832
|
}
|
|
6837
6833
|
return sign * parseInt(value, 10);
|
|
6838
6834
|
}
|
|
6835
|
+
function constructYamlInteger(data) {
|
|
6836
|
+
return parseYamlInteger(data);
|
|
6837
|
+
}
|
|
6839
6838
|
function isInteger(object) {
|
|
6840
6839
|
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
|
|
6841
6840
|
}
|
|
@@ -6868,26 +6867,28 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6868
6867
|
});
|
|
6869
6868
|
}));
|
|
6870
6869
|
//#endregion
|
|
6871
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6870
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/float.js
|
|
6872
6871
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6872
|
+
const common = require_common();
|
|
6873
|
+
const Type = require_type();
|
|
6874
|
+
const YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
6875
|
+
const YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
6876
6876
|
function resolveYamlFloat(data) {
|
|
6877
6877
|
if (data === null) return false;
|
|
6878
|
-
if (!YAML_FLOAT_PATTERN.test(data)
|
|
6879
|
-
return true;
|
|
6878
|
+
if (!YAML_FLOAT_PATTERN.test(data)) return false;
|
|
6879
|
+
if (isFinite(parseFloat(data, 10))) return true;
|
|
6880
|
+
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
6880
6881
|
}
|
|
6881
6882
|
function constructYamlFloat(data) {
|
|
6882
|
-
|
|
6883
|
+
let value = data.toLowerCase();
|
|
6884
|
+
const sign = value[0] === "-" ? -1 : 1;
|
|
6883
6885
|
if ("+-".indexOf(value[0]) >= 0) value = value.slice(1);
|
|
6884
6886
|
if (value === ".inf") return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
6885
6887
|
else if (value === ".nan") return NaN;
|
|
6886
6888
|
return sign * parseFloat(value, 10);
|
|
6887
6889
|
}
|
|
6888
|
-
|
|
6890
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
6889
6891
|
function representYamlFloat(object, style) {
|
|
6890
|
-
var res;
|
|
6891
6892
|
if (isNaN(object)) switch (style) {
|
|
6892
6893
|
case "lowercase": return ".nan";
|
|
6893
6894
|
case "uppercase": return ".NAN";
|
|
@@ -6904,7 +6905,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6904
6905
|
case "camelcase": return "-.Inf";
|
|
6905
6906
|
}
|
|
6906
6907
|
else if (common.isNegativeZero(object)) return "-0.0";
|
|
6907
|
-
res = object.toString(10);
|
|
6908
|
+
const res = object.toString(10);
|
|
6908
6909
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
6909
6910
|
}
|
|
6910
6911
|
function isFloat(object) {
|
|
@@ -6920,7 +6921,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6920
6921
|
});
|
|
6921
6922
|
}));
|
|
6922
6923
|
//#endregion
|
|
6923
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6924
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/json.js
|
|
6924
6925
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6925
6926
|
module.exports = require_failsafe().extend({ implicit: [
|
|
6926
6927
|
require_null(),
|
|
@@ -6930,16 +6931,16 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6930
6931
|
] });
|
|
6931
6932
|
}));
|
|
6932
6933
|
//#endregion
|
|
6933
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6934
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/core.js
|
|
6934
6935
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6935
6936
|
module.exports = require_json();
|
|
6936
6937
|
}));
|
|
6937
6938
|
//#endregion
|
|
6938
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6939
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/timestamp.js
|
|
6939
6940
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6941
|
+
const Type = require_type();
|
|
6942
|
+
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
6943
|
+
const YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
6943
6944
|
function resolveYamlTimestamp(data) {
|
|
6944
6945
|
if (data === null) return false;
|
|
6945
6946
|
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
|
@@ -6947,29 +6948,30 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6947
6948
|
return false;
|
|
6948
6949
|
}
|
|
6949
6950
|
function constructYamlTimestamp(data) {
|
|
6950
|
-
|
|
6951
|
-
|
|
6951
|
+
let fraction = 0;
|
|
6952
|
+
let delta = null;
|
|
6953
|
+
let match = YAML_DATE_REGEXP.exec(data);
|
|
6952
6954
|
if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
6953
6955
|
if (match === null) throw new Error("Date resolve error");
|
|
6954
|
-
year = +match[1];
|
|
6955
|
-
month = +match[2] - 1;
|
|
6956
|
-
day = +match[3];
|
|
6956
|
+
const year = +match[1];
|
|
6957
|
+
const month = +match[2] - 1;
|
|
6958
|
+
const day = +match[3];
|
|
6957
6959
|
if (!match[4]) return new Date(Date.UTC(year, month, day));
|
|
6958
|
-
hour = +match[4];
|
|
6959
|
-
minute = +match[5];
|
|
6960
|
-
second = +match[6];
|
|
6960
|
+
const hour = +match[4];
|
|
6961
|
+
const minute = +match[5];
|
|
6962
|
+
const second = +match[6];
|
|
6961
6963
|
if (match[7]) {
|
|
6962
6964
|
fraction = match[7].slice(0, 3);
|
|
6963
6965
|
while (fraction.length < 3) fraction += "0";
|
|
6964
6966
|
fraction = +fraction;
|
|
6965
6967
|
}
|
|
6966
6968
|
if (match[9]) {
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
delta = (
|
|
6969
|
+
const tzHour = +match[10];
|
|
6970
|
+
const tzMinute = +(match[11] || 0);
|
|
6971
|
+
delta = (tzHour * 60 + tzMinute) * 6e4;
|
|
6970
6972
|
if (match[9] === "-") delta = -delta;
|
|
6971
6973
|
}
|
|
6972
|
-
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
6974
|
+
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
6973
6975
|
if (delta) date.setTime(date.getTime() - delta);
|
|
6974
6976
|
return date;
|
|
6975
6977
|
}
|
|
@@ -6985,9 +6987,9 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6985
6987
|
});
|
|
6986
6988
|
}));
|
|
6987
6989
|
//#endregion
|
|
6988
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6990
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/merge.js
|
|
6989
6991
|
var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6990
|
-
|
|
6992
|
+
const Type = require_type();
|
|
6991
6993
|
function resolveYamlMerge(data) {
|
|
6992
6994
|
return data === "<<" || data === null;
|
|
6993
6995
|
}
|
|
@@ -6997,15 +6999,17 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6997
6999
|
});
|
|
6998
7000
|
}));
|
|
6999
7001
|
//#endregion
|
|
7000
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
7002
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/binary.js
|
|
7001
7003
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
+
const Type = require_type();
|
|
7005
|
+
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
7004
7006
|
function resolveYamlBinary(data) {
|
|
7005
7007
|
if (data === null) return false;
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7008
|
+
let bitlen = 0;
|
|
7009
|
+
const max = data.length;
|
|
7010
|
+
const map = BASE64_MAP;
|
|
7011
|
+
for (let idx = 0; idx < max; idx++) {
|
|
7012
|
+
const code = map.indexOf(data.charAt(idx));
|
|
7009
7013
|
if (code > 64) continue;
|
|
7010
7014
|
if (code < 0) return false;
|
|
7011
7015
|
bitlen += 6;
|
|
@@ -7013,8 +7017,12 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7013
7017
|
return bitlen % 8 === 0;
|
|
7014
7018
|
}
|
|
7015
7019
|
function constructYamlBinary(data) {
|
|
7016
|
-
|
|
7017
|
-
|
|
7020
|
+
const input = data.replace(/[\r\n=]/g, "");
|
|
7021
|
+
const max = input.length;
|
|
7022
|
+
const map = BASE64_MAP;
|
|
7023
|
+
let bits = 0;
|
|
7024
|
+
const result = [];
|
|
7025
|
+
for (let idx = 0; idx < max; idx++) {
|
|
7018
7026
|
if (idx % 4 === 0 && idx) {
|
|
7019
7027
|
result.push(bits >> 16 & 255);
|
|
7020
7028
|
result.push(bits >> 8 & 255);
|
|
@@ -7022,7 +7030,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7022
7030
|
}
|
|
7023
7031
|
bits = bits << 6 | map.indexOf(input.charAt(idx));
|
|
7024
7032
|
}
|
|
7025
|
-
tailbits = max % 4 * 6;
|
|
7033
|
+
const tailbits = max % 4 * 6;
|
|
7026
7034
|
if (tailbits === 0) {
|
|
7027
7035
|
result.push(bits >> 16 & 255);
|
|
7028
7036
|
result.push(bits >> 8 & 255);
|
|
@@ -7034,8 +7042,11 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7034
7042
|
return new Uint8Array(result);
|
|
7035
7043
|
}
|
|
7036
7044
|
function representYamlBinary(object) {
|
|
7037
|
-
|
|
7038
|
-
|
|
7045
|
+
let result = "";
|
|
7046
|
+
let bits = 0;
|
|
7047
|
+
const max = object.length;
|
|
7048
|
+
const map = BASE64_MAP;
|
|
7049
|
+
for (let idx = 0; idx < max; idx++) {
|
|
7039
7050
|
if (idx % 3 === 0 && idx) {
|
|
7040
7051
|
result += map[bits >> 18 & 63];
|
|
7041
7052
|
result += map[bits >> 12 & 63];
|
|
@@ -7044,7 +7055,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7044
7055
|
}
|
|
7045
7056
|
bits = (bits << 8) + object[idx];
|
|
7046
7057
|
}
|
|
7047
|
-
tail = max % 3;
|
|
7058
|
+
const tail = max % 3;
|
|
7048
7059
|
if (tail === 0) {
|
|
7049
7060
|
result += map[bits >> 18 & 63];
|
|
7050
7061
|
result += map[bits >> 12 & 63];
|
|
@@ -7075,18 +7086,20 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7075
7086
|
});
|
|
7076
7087
|
}));
|
|
7077
7088
|
//#endregion
|
|
7078
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
7089
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/omap.js
|
|
7079
7090
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7091
|
+
const Type = require_type();
|
|
7092
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7093
|
+
const _toString = Object.prototype.toString;
|
|
7083
7094
|
function resolveYamlOmap(data) {
|
|
7084
7095
|
if (data === null) return true;
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7096
|
+
const objectKeys = [];
|
|
7097
|
+
const object = data;
|
|
7098
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
7099
|
+
const pair = object[index];
|
|
7100
|
+
let pairHasKey = false;
|
|
7089
7101
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
7102
|
+
let pairKey;
|
|
7090
7103
|
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
|
|
7091
7104
|
else return false;
|
|
7092
7105
|
if (!pairHasKey) return false;
|
|
@@ -7105,18 +7118,18 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7105
7118
|
});
|
|
7106
7119
|
}));
|
|
7107
7120
|
//#endregion
|
|
7108
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
7121
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/pairs.js
|
|
7109
7122
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7110
|
-
|
|
7111
|
-
|
|
7123
|
+
const Type = require_type();
|
|
7124
|
+
const _toString = Object.prototype.toString;
|
|
7112
7125
|
function resolveYamlPairs(data) {
|
|
7113
7126
|
if (data === null) return true;
|
|
7114
|
-
|
|
7115
|
-
result = new Array(object.length);
|
|
7116
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
7117
|
-
pair = object[index];
|
|
7127
|
+
const object = data;
|
|
7128
|
+
const result = new Array(object.length);
|
|
7129
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
7130
|
+
const pair = object[index];
|
|
7118
7131
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
7119
|
-
keys = Object.keys(pair);
|
|
7132
|
+
const keys = Object.keys(pair);
|
|
7120
7133
|
if (keys.length !== 1) return false;
|
|
7121
7134
|
result[index] = [keys[0], pair[keys[0]]];
|
|
7122
7135
|
}
|
|
@@ -7124,11 +7137,11 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7124
7137
|
}
|
|
7125
7138
|
function constructYamlPairs(data) {
|
|
7126
7139
|
if (data === null) return [];
|
|
7127
|
-
|
|
7128
|
-
result = new Array(object.length);
|
|
7129
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
7130
|
-
pair = object[index];
|
|
7131
|
-
keys = Object.keys(pair);
|
|
7140
|
+
const object = data;
|
|
7141
|
+
const result = new Array(object.length);
|
|
7142
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
7143
|
+
const pair = object[index];
|
|
7144
|
+
const keys = Object.keys(pair);
|
|
7132
7145
|
result[index] = [keys[0], pair[keys[0]]];
|
|
7133
7146
|
}
|
|
7134
7147
|
return result;
|
|
@@ -7140,14 +7153,14 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7140
7153
|
});
|
|
7141
7154
|
}));
|
|
7142
7155
|
//#endregion
|
|
7143
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
7156
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/set.js
|
|
7144
7157
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7145
|
-
|
|
7146
|
-
|
|
7158
|
+
const Type = require_type();
|
|
7159
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7147
7160
|
function resolveYamlSet(data) {
|
|
7148
7161
|
if (data === null) return true;
|
|
7149
|
-
|
|
7150
|
-
for (key in object) if (_hasOwnProperty.call(object, key)) {
|
|
7162
|
+
const object = data;
|
|
7163
|
+
for (const key in object) if (_hasOwnProperty.call(object, key)) {
|
|
7151
7164
|
if (object[key] !== null) return false;
|
|
7152
7165
|
}
|
|
7153
7166
|
return true;
|
|
@@ -7162,7 +7175,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7162
7175
|
});
|
|
7163
7176
|
}));
|
|
7164
7177
|
//#endregion
|
|
7165
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
7178
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/default.js
|
|
7166
7179
|
var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7167
7180
|
module.exports = require_core().extend({
|
|
7168
7181
|
implicit: [require_timestamp(), require_merge$1()],
|
|
@@ -7175,45 +7188,44 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7175
7188
|
});
|
|
7176
7189
|
}));
|
|
7177
7190
|
//#endregion
|
|
7178
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
7191
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/loader.js
|
|
7179
7192
|
var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7193
|
+
const common = require_common();
|
|
7194
|
+
const YAMLException = require_exception();
|
|
7195
|
+
const makeSnippet = require_snippet();
|
|
7196
|
+
const DEFAULT_SCHEMA = require_default();
|
|
7197
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7198
|
+
const CONTEXT_FLOW_IN = 1;
|
|
7199
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
7200
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
7201
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
7202
|
+
const CHOMPING_CLIP = 1;
|
|
7203
|
+
const CHOMPING_STRIP = 2;
|
|
7204
|
+
const CHOMPING_KEEP = 3;
|
|
7205
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
7206
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
7207
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
7208
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
7209
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
7197
7210
|
function _class(obj) {
|
|
7198
7211
|
return Object.prototype.toString.call(obj);
|
|
7199
7212
|
}
|
|
7200
|
-
function
|
|
7213
|
+
function isEol(c) {
|
|
7201
7214
|
return c === 10 || c === 13;
|
|
7202
7215
|
}
|
|
7203
|
-
function
|
|
7216
|
+
function isWhiteSpace(c) {
|
|
7204
7217
|
return c === 9 || c === 32;
|
|
7205
7218
|
}
|
|
7206
|
-
function
|
|
7219
|
+
function isWsOrEol(c) {
|
|
7207
7220
|
return c === 9 || c === 32 || c === 10 || c === 13;
|
|
7208
7221
|
}
|
|
7209
|
-
function
|
|
7222
|
+
function isFlowIndicator(c) {
|
|
7210
7223
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
7211
7224
|
}
|
|
7212
7225
|
function fromHexCode(c) {
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
lc
|
|
7216
|
-
if (97 <= lc && lc <= 102) return lc - 97 + 10;
|
|
7226
|
+
if (c >= 48 && c <= 57) return c - 48;
|
|
7227
|
+
const lc = c | 32;
|
|
7228
|
+
if (lc >= 97 && lc <= 102) return lc - 97 + 10;
|
|
7217
7229
|
return -1;
|
|
7218
7230
|
}
|
|
7219
7231
|
function escapedHexLen(c) {
|
|
@@ -7223,11 +7235,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7223
7235
|
return 0;
|
|
7224
7236
|
}
|
|
7225
7237
|
function fromDecimalCode(c) {
|
|
7226
|
-
if (
|
|
7238
|
+
if (c >= 48 && c <= 57) return c - 48;
|
|
7227
7239
|
return -1;
|
|
7228
7240
|
}
|
|
7229
7241
|
function simpleEscapeSequence(c) {
|
|
7230
|
-
|
|
7242
|
+
switch (c) {
|
|
7243
|
+
case 48: return "\0";
|
|
7244
|
+
case 97: return "\x07";
|
|
7245
|
+
case 98: return "\b";
|
|
7246
|
+
case 116: return " ";
|
|
7247
|
+
case 9: return " ";
|
|
7248
|
+
case 110: return "\n";
|
|
7249
|
+
case 118: return "\v";
|
|
7250
|
+
case 102: return "\f";
|
|
7251
|
+
case 114: return "\r";
|
|
7252
|
+
case 101: return "\x1B";
|
|
7253
|
+
case 32: return " ";
|
|
7254
|
+
case 34: return "\"";
|
|
7255
|
+
case 47: return "/";
|
|
7256
|
+
case 92: return "\\";
|
|
7257
|
+
case 78: return "
";
|
|
7258
|
+
case 95: return "\xA0";
|
|
7259
|
+
case 76: return "\u2028";
|
|
7260
|
+
case 80: return "\u2029";
|
|
7261
|
+
default: return "";
|
|
7262
|
+
}
|
|
7231
7263
|
}
|
|
7232
7264
|
function charFromCodepoint(c) {
|
|
7233
7265
|
if (c <= 65535) return String.fromCharCode(c);
|
|
@@ -7242,9 +7274,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7242
7274
|
});
|
|
7243
7275
|
else object[key] = value;
|
|
7244
7276
|
}
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
for (
|
|
7277
|
+
const simpleEscapeCheck = new Array(256);
|
|
7278
|
+
const simpleEscapeMap = new Array(256);
|
|
7279
|
+
for (let i = 0; i < 256; i++) {
|
|
7248
7280
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
7249
7281
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
7250
7282
|
}
|
|
@@ -7256,6 +7288,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7256
7288
|
this.legacy = options["legacy"] || false;
|
|
7257
7289
|
this.json = options["json"] || false;
|
|
7258
7290
|
this.listener = options["listener"] || null;
|
|
7291
|
+
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
7292
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
7259
7293
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
7260
7294
|
this.typeMap = this.schema.compiledTypeMap;
|
|
7261
7295
|
this.length = input.length;
|
|
@@ -7263,11 +7297,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7263
7297
|
this.line = 0;
|
|
7264
7298
|
this.lineStart = 0;
|
|
7265
7299
|
this.lineIndent = 0;
|
|
7300
|
+
this.depth = 0;
|
|
7301
|
+
this.totalMergeKeys = 0;
|
|
7266
7302
|
this.firstTabInLine = -1;
|
|
7267
7303
|
this.documents = [];
|
|
7304
|
+
this.anchorMapTransactions = [];
|
|
7268
7305
|
}
|
|
7269
7306
|
function generateError(state, message) {
|
|
7270
|
-
|
|
7307
|
+
const mark = {
|
|
7271
7308
|
name: state.filename,
|
|
7272
7309
|
buffer: state.input.slice(0, -1),
|
|
7273
7310
|
position: state.position,
|
|
@@ -7283,24 +7320,81 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7283
7320
|
function throwWarning(state, message) {
|
|
7284
7321
|
if (state.onWarning) state.onWarning.call(null, generateError(state, message));
|
|
7285
7322
|
}
|
|
7286
|
-
|
|
7323
|
+
function storeAnchor(state, name, value) {
|
|
7324
|
+
const transactions = state.anchorMapTransactions;
|
|
7325
|
+
if (transactions.length !== 0) {
|
|
7326
|
+
const transaction = transactions[transactions.length - 1];
|
|
7327
|
+
if (!_hasOwnProperty.call(transaction, name)) transaction[name] = {
|
|
7328
|
+
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
7329
|
+
value: state.anchorMap[name]
|
|
7330
|
+
};
|
|
7331
|
+
}
|
|
7332
|
+
state.anchorMap[name] = value;
|
|
7333
|
+
}
|
|
7334
|
+
function beginAnchorTransaction(state) {
|
|
7335
|
+
state.anchorMapTransactions.push(Object.create(null));
|
|
7336
|
+
}
|
|
7337
|
+
function commitAnchorTransaction(state) {
|
|
7338
|
+
const transaction = state.anchorMapTransactions.pop();
|
|
7339
|
+
const transactions = state.anchorMapTransactions;
|
|
7340
|
+
if (transactions.length === 0) return;
|
|
7341
|
+
const parent = transactions[transactions.length - 1];
|
|
7342
|
+
const names = Object.keys(transaction);
|
|
7343
|
+
for (let index = 0, length = names.length; index < length; index += 1) {
|
|
7344
|
+
const name = names[index];
|
|
7345
|
+
if (!_hasOwnProperty.call(parent, name)) parent[name] = transaction[name];
|
|
7346
|
+
}
|
|
7347
|
+
}
|
|
7348
|
+
function rollbackAnchorTransaction(state) {
|
|
7349
|
+
const transaction = state.anchorMapTransactions.pop();
|
|
7350
|
+
const names = Object.keys(transaction);
|
|
7351
|
+
for (let index = names.length - 1; index >= 0; index -= 1) {
|
|
7352
|
+
const entry = transaction[names[index]];
|
|
7353
|
+
if (entry.existed) state.anchorMap[names[index]] = entry.value;
|
|
7354
|
+
else delete state.anchorMap[names[index]];
|
|
7355
|
+
}
|
|
7356
|
+
}
|
|
7357
|
+
function snapshotState(state) {
|
|
7358
|
+
return {
|
|
7359
|
+
position: state.position,
|
|
7360
|
+
line: state.line,
|
|
7361
|
+
lineStart: state.lineStart,
|
|
7362
|
+
lineIndent: state.lineIndent,
|
|
7363
|
+
firstTabInLine: state.firstTabInLine,
|
|
7364
|
+
tag: state.tag,
|
|
7365
|
+
anchor: state.anchor,
|
|
7366
|
+
kind: state.kind,
|
|
7367
|
+
result: state.result
|
|
7368
|
+
};
|
|
7369
|
+
}
|
|
7370
|
+
function restoreState(state, snapshot) {
|
|
7371
|
+
state.position = snapshot.position;
|
|
7372
|
+
state.line = snapshot.line;
|
|
7373
|
+
state.lineStart = snapshot.lineStart;
|
|
7374
|
+
state.lineIndent = snapshot.lineIndent;
|
|
7375
|
+
state.firstTabInLine = snapshot.firstTabInLine;
|
|
7376
|
+
state.tag = snapshot.tag;
|
|
7377
|
+
state.anchor = snapshot.anchor;
|
|
7378
|
+
state.kind = snapshot.kind;
|
|
7379
|
+
state.result = snapshot.result;
|
|
7380
|
+
}
|
|
7381
|
+
const directiveHandlers = {
|
|
7287
7382
|
YAML: function handleYamlDirective(state, name, args) {
|
|
7288
|
-
var match, major, minor;
|
|
7289
7383
|
if (state.version !== null) throwError(state, "duplication of %YAML directive");
|
|
7290
7384
|
if (args.length !== 1) throwError(state, "YAML directive accepts exactly one argument");
|
|
7291
|
-
match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
7385
|
+
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
7292
7386
|
if (match === null) throwError(state, "ill-formed argument of the YAML directive");
|
|
7293
|
-
major = parseInt(match[1], 10);
|
|
7294
|
-
minor = parseInt(match[2], 10);
|
|
7387
|
+
const major = parseInt(match[1], 10);
|
|
7388
|
+
const minor = parseInt(match[2], 10);
|
|
7295
7389
|
if (major !== 1) throwError(state, "unacceptable YAML version of the document");
|
|
7296
7390
|
state.version = args[0];
|
|
7297
7391
|
state.checkLineBreaks = minor < 2;
|
|
7298
7392
|
if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document");
|
|
7299
7393
|
},
|
|
7300
7394
|
TAG: function handleTagDirective(state, name, args) {
|
|
7301
|
-
|
|
7395
|
+
let prefix;
|
|
7302
7396
|
if (args.length !== 2) throwError(state, "TAG directive accepts exactly two arguments");
|
|
7303
|
-
handle = args[0];
|
|
7397
|
+
const handle = args[0];
|
|
7304
7398
|
prefix = args[1];
|
|
7305
7399
|
if (!PATTERN_TAG_HANDLE.test(handle)) throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
7306
7400
|
if (_hasOwnProperty.call(state.tagMap, handle)) throwError(state, "there is a previously declared suffix for \"" + handle + "\" tag handle");
|
|
@@ -7314,23 +7408,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7314
7408
|
}
|
|
7315
7409
|
};
|
|
7316
7410
|
function captureSegment(state, start, end, checkJson) {
|
|
7317
|
-
var _position, _length, _character, _result;
|
|
7318
7411
|
if (start < end) {
|
|
7319
|
-
_result = state.input.slice(start, end);
|
|
7320
|
-
if (checkJson) for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
7321
|
-
_character = _result.charCodeAt(_position);
|
|
7322
|
-
if (!(_character === 9 ||
|
|
7412
|
+
const _result = state.input.slice(start, end);
|
|
7413
|
+
if (checkJson) for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
7414
|
+
const _character = _result.charCodeAt(_position);
|
|
7415
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) throwError(state, "expected valid JSON character");
|
|
7323
7416
|
}
|
|
7324
7417
|
else if (PATTERN_NON_PRINTABLE.test(_result)) throwError(state, "the stream contains non-printable characters");
|
|
7325
7418
|
state.result += _result;
|
|
7326
7419
|
}
|
|
7327
7420
|
}
|
|
7328
7421
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
7329
|
-
var sourceKeys, key, index, quantity;
|
|
7330
7422
|
if (!common.isObject(source)) throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
7331
|
-
sourceKeys = Object.keys(source);
|
|
7332
|
-
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
7333
|
-
key = sourceKeys[index];
|
|
7423
|
+
const sourceKeys = Object.keys(source);
|
|
7424
|
+
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
7425
|
+
const key = sourceKeys[index];
|
|
7426
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
7334
7427
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
7335
7428
|
setProperty(destination, key, source[key]);
|
|
7336
7429
|
overridableKeys[key] = true;
|
|
@@ -7338,10 +7431,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7338
7431
|
}
|
|
7339
7432
|
}
|
|
7340
7433
|
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
|
|
7341
|
-
var index, quantity;
|
|
7342
7434
|
if (Array.isArray(keyNode)) {
|
|
7343
7435
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
7344
|
-
for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
7436
|
+
for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
7345
7437
|
if (Array.isArray(keyNode[index])) throwError(state, "nested arrays are not supported inside keys");
|
|
7346
7438
|
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") keyNode[index] = "[object Object]";
|
|
7347
7439
|
}
|
|
@@ -7349,7 +7441,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7349
7441
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
7350
7442
|
keyNode = String(keyNode);
|
|
7351
7443
|
if (_result === null) _result = {};
|
|
7352
|
-
if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
7444
|
+
if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
7353
7445
|
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
7354
7446
|
else {
|
|
7355
7447
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
@@ -7364,7 +7456,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7364
7456
|
return _result;
|
|
7365
7457
|
}
|
|
7366
7458
|
function readLineBreak(state) {
|
|
7367
|
-
|
|
7459
|
+
const ch = state.input.charCodeAt(state.position);
|
|
7368
7460
|
if (ch === 10) state.position++;
|
|
7369
7461
|
else if (ch === 13) {
|
|
7370
7462
|
state.position++;
|
|
@@ -7375,16 +7467,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7375
7467
|
state.firstTabInLine = -1;
|
|
7376
7468
|
}
|
|
7377
7469
|
function skipSeparationSpace(state, allowComments, checkIndent) {
|
|
7378
|
-
|
|
7470
|
+
let lineBreaks = 0;
|
|
7471
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7379
7472
|
while (ch !== 0) {
|
|
7380
|
-
while (
|
|
7473
|
+
while (isWhiteSpace(ch)) {
|
|
7381
7474
|
if (ch === 9 && state.firstTabInLine === -1) state.firstTabInLine = state.position;
|
|
7382
7475
|
ch = state.input.charCodeAt(++state.position);
|
|
7383
7476
|
}
|
|
7384
7477
|
if (allowComments && ch === 35) do
|
|
7385
7478
|
ch = state.input.charCodeAt(++state.position);
|
|
7386
7479
|
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
7387
|
-
if (
|
|
7480
|
+
if (isEol(ch)) {
|
|
7388
7481
|
readLineBreak(state);
|
|
7389
7482
|
ch = state.input.charCodeAt(state.position);
|
|
7390
7483
|
lineBreaks++;
|
|
@@ -7399,11 +7492,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7399
7492
|
return lineBreaks;
|
|
7400
7493
|
}
|
|
7401
7494
|
function testDocumentSeparator(state) {
|
|
7402
|
-
|
|
7495
|
+
let _position = state.position;
|
|
7496
|
+
let ch = state.input.charCodeAt(_position);
|
|
7403
7497
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
7404
7498
|
_position += 3;
|
|
7405
7499
|
ch = state.input.charCodeAt(_position);
|
|
7406
|
-
if (ch === 0 ||
|
|
7500
|
+
if (ch === 0 || isWsOrEol(ch)) return true;
|
|
7407
7501
|
}
|
|
7408
7502
|
return false;
|
|
7409
7503
|
}
|
|
@@ -7412,11 +7506,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7412
7506
|
else if (count > 1) state.result += common.repeat("\n", count - 1);
|
|
7413
7507
|
}
|
|
7414
7508
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
7415
|
-
|
|
7416
|
-
|
|
7509
|
+
let captureStart;
|
|
7510
|
+
let captureEnd;
|
|
7511
|
+
let hasPendingContent;
|
|
7512
|
+
let _line;
|
|
7513
|
+
let _lineStart;
|
|
7514
|
+
let _lineIndent;
|
|
7515
|
+
const _kind = state.kind;
|
|
7516
|
+
const _result = state.result;
|
|
7517
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7518
|
+
if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) return false;
|
|
7417
7519
|
if (ch === 63 || ch === 45) {
|
|
7418
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7419
|
-
if (
|
|
7520
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7521
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) return false;
|
|
7420
7522
|
}
|
|
7421
7523
|
state.kind = "scalar";
|
|
7422
7524
|
state.result = "";
|
|
@@ -7424,13 +7526,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7424
7526
|
hasPendingContent = false;
|
|
7425
7527
|
while (ch !== 0) {
|
|
7426
7528
|
if (ch === 58) {
|
|
7427
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7428
|
-
if (
|
|
7529
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7530
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) break;
|
|
7429
7531
|
} else if (ch === 35) {
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
else if (is_EOL(ch)) {
|
|
7532
|
+
if (isWsOrEol(state.input.charCodeAt(state.position - 1))) break;
|
|
7533
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) break;
|
|
7534
|
+
else if (isEol(ch)) {
|
|
7434
7535
|
_line = state.line;
|
|
7435
7536
|
_lineStart = state.lineStart;
|
|
7436
7537
|
_lineIndent = state.lineIndent;
|
|
@@ -7453,7 +7554,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7453
7554
|
captureStart = captureEnd = state.position;
|
|
7454
7555
|
hasPendingContent = false;
|
|
7455
7556
|
}
|
|
7456
|
-
if (!
|
|
7557
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position + 1;
|
|
7457
7558
|
ch = state.input.charCodeAt(++state.position);
|
|
7458
7559
|
}
|
|
7459
7560
|
captureSegment(state, captureStart, captureEnd, false);
|
|
@@ -7463,7 +7564,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7463
7564
|
return false;
|
|
7464
7565
|
}
|
|
7465
7566
|
function readSingleQuotedScalar(state, nodeIndent) {
|
|
7466
|
-
|
|
7567
|
+
let captureStart;
|
|
7568
|
+
let captureEnd;
|
|
7569
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7467
7570
|
if (ch !== 39) return false;
|
|
7468
7571
|
state.kind = "scalar";
|
|
7469
7572
|
state.result = "";
|
|
@@ -7477,19 +7580,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7477
7580
|
state.position++;
|
|
7478
7581
|
captureEnd = state.position;
|
|
7479
7582
|
} else return true;
|
|
7480
|
-
} else if (
|
|
7583
|
+
} else if (isEol(ch)) {
|
|
7481
7584
|
captureSegment(state, captureStart, captureEnd, true);
|
|
7482
7585
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
7483
7586
|
captureStart = captureEnd = state.position;
|
|
7484
7587
|
} else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
7485
7588
|
else {
|
|
7486
7589
|
state.position++;
|
|
7487
|
-
captureEnd = state.position;
|
|
7590
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position;
|
|
7488
7591
|
}
|
|
7489
7592
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
7490
7593
|
}
|
|
7491
7594
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
7492
|
-
|
|
7595
|
+
let captureStart;
|
|
7596
|
+
let captureEnd;
|
|
7597
|
+
let tmp;
|
|
7598
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7493
7599
|
if (ch !== 34) return false;
|
|
7494
7600
|
state.kind = "scalar";
|
|
7495
7601
|
state.result = "";
|
|
@@ -7502,13 +7608,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7502
7608
|
} else if (ch === 92) {
|
|
7503
7609
|
captureSegment(state, captureStart, state.position, true);
|
|
7504
7610
|
ch = state.input.charCodeAt(++state.position);
|
|
7505
|
-
if (
|
|
7611
|
+
if (isEol(ch)) skipSeparationSpace(state, false, nodeIndent);
|
|
7506
7612
|
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
7507
7613
|
state.result += simpleEscapeMap[ch];
|
|
7508
7614
|
state.position++;
|
|
7509
7615
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
7510
|
-
hexLength = tmp;
|
|
7511
|
-
hexResult = 0;
|
|
7616
|
+
let hexLength = tmp;
|
|
7617
|
+
let hexResult = 0;
|
|
7512
7618
|
for (; hexLength > 0; hexLength--) {
|
|
7513
7619
|
ch = state.input.charCodeAt(++state.position);
|
|
7514
7620
|
if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
|
|
@@ -7518,19 +7624,34 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7518
7624
|
state.position++;
|
|
7519
7625
|
} else throwError(state, "unknown escape sequence");
|
|
7520
7626
|
captureStart = captureEnd = state.position;
|
|
7521
|
-
} else if (
|
|
7627
|
+
} else if (isEol(ch)) {
|
|
7522
7628
|
captureSegment(state, captureStart, captureEnd, true);
|
|
7523
7629
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
7524
7630
|
captureStart = captureEnd = state.position;
|
|
7525
7631
|
} else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
7526
7632
|
else {
|
|
7527
7633
|
state.position++;
|
|
7528
|
-
captureEnd = state.position;
|
|
7634
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position;
|
|
7529
7635
|
}
|
|
7530
7636
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
7531
7637
|
}
|
|
7532
7638
|
function readFlowCollection(state, nodeIndent) {
|
|
7533
|
-
|
|
7639
|
+
let readNext = true;
|
|
7640
|
+
let _line;
|
|
7641
|
+
let _lineStart;
|
|
7642
|
+
let _pos;
|
|
7643
|
+
const _tag = state.tag;
|
|
7644
|
+
let _result;
|
|
7645
|
+
const _anchor = state.anchor;
|
|
7646
|
+
let terminator;
|
|
7647
|
+
let isPair;
|
|
7648
|
+
let isExplicitPair;
|
|
7649
|
+
let isMapping;
|
|
7650
|
+
const overridableKeys = Object.create(null);
|
|
7651
|
+
let keyNode;
|
|
7652
|
+
let keyTag;
|
|
7653
|
+
let valueNode;
|
|
7654
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7534
7655
|
if (ch === 91) {
|
|
7535
7656
|
terminator = 93;
|
|
7536
7657
|
isMapping = false;
|
|
@@ -7540,7 +7661,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7540
7661
|
isMapping = true;
|
|
7541
7662
|
_result = {};
|
|
7542
7663
|
} else return false;
|
|
7543
|
-
if (state.anchor !== null) state
|
|
7664
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7544
7665
|
ch = state.input.charCodeAt(++state.position);
|
|
7545
7666
|
while (ch !== 0) {
|
|
7546
7667
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -7557,8 +7678,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7557
7678
|
keyTag = keyNode = valueNode = null;
|
|
7558
7679
|
isPair = isExplicitPair = false;
|
|
7559
7680
|
if (ch === 63) {
|
|
7560
|
-
|
|
7561
|
-
if (is_WS_OR_EOL(following)) {
|
|
7681
|
+
if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
|
|
7562
7682
|
isPair = isExplicitPair = true;
|
|
7563
7683
|
state.position++;
|
|
7564
7684
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -7592,7 +7712,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7592
7712
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
7593
7713
|
}
|
|
7594
7714
|
function readBlockScalar(state, nodeIndent) {
|
|
7595
|
-
|
|
7715
|
+
let folding;
|
|
7716
|
+
let chomping = CHOMPING_CLIP;
|
|
7717
|
+
let didReadContent = false;
|
|
7718
|
+
let detectedIndent = false;
|
|
7719
|
+
let textIndent = nodeIndent;
|
|
7720
|
+
let emptyLines = 0;
|
|
7721
|
+
let atMoreIndented = false;
|
|
7722
|
+
let tmp;
|
|
7723
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7596
7724
|
if (ch === 124) folding = false;
|
|
7597
7725
|
else if (ch === 62) folding = true;
|
|
7598
7726
|
else return false;
|
|
@@ -7609,13 +7737,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7609
7737
|
} else throwError(state, "repeat of an indentation width identifier");
|
|
7610
7738
|
else break;
|
|
7611
7739
|
}
|
|
7612
|
-
if (
|
|
7740
|
+
if (isWhiteSpace(ch)) {
|
|
7613
7741
|
do
|
|
7614
7742
|
ch = state.input.charCodeAt(++state.position);
|
|
7615
|
-
while (
|
|
7743
|
+
while (isWhiteSpace(ch));
|
|
7616
7744
|
if (ch === 35) do
|
|
7617
7745
|
ch = state.input.charCodeAt(++state.position);
|
|
7618
|
-
while (!
|
|
7746
|
+
while (!isEol(ch) && ch !== 0);
|
|
7619
7747
|
}
|
|
7620
7748
|
while (ch !== 0) {
|
|
7621
7749
|
readLineBreak(state);
|
|
@@ -7626,10 +7754,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7626
7754
|
ch = state.input.charCodeAt(++state.position);
|
|
7627
7755
|
}
|
|
7628
7756
|
if (!detectedIndent && state.lineIndent > textIndent) textIndent = state.lineIndent;
|
|
7629
|
-
if (
|
|
7757
|
+
if (isEol(ch)) {
|
|
7630
7758
|
emptyLines++;
|
|
7631
7759
|
continue;
|
|
7632
7760
|
}
|
|
7761
|
+
if (!detectedIndent && textIndent === 0) throwError(state, "missing indentation for block scalar");
|
|
7633
7762
|
if (state.lineIndent < textIndent) {
|
|
7634
7763
|
if (chomping === CHOMPING_KEEP) state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7635
7764
|
else if (chomping === CHOMPING_CLIP) {
|
|
@@ -7637,7 +7766,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7637
7766
|
}
|
|
7638
7767
|
break;
|
|
7639
7768
|
}
|
|
7640
|
-
if (folding) if (
|
|
7769
|
+
if (folding) if (isWhiteSpace(ch)) {
|
|
7641
7770
|
atMoreIndented = true;
|
|
7642
7771
|
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7643
7772
|
} else if (atMoreIndented) {
|
|
@@ -7650,25 +7779,27 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7650
7779
|
didReadContent = true;
|
|
7651
7780
|
detectedIndent = true;
|
|
7652
7781
|
emptyLines = 0;
|
|
7653
|
-
captureStart = state.position;
|
|
7654
|
-
while (!
|
|
7782
|
+
const captureStart = state.position;
|
|
7783
|
+
while (!isEol(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position);
|
|
7655
7784
|
captureSegment(state, captureStart, state.position, false);
|
|
7656
7785
|
}
|
|
7657
7786
|
return true;
|
|
7658
7787
|
}
|
|
7659
7788
|
function readBlockSequence(state, nodeIndent) {
|
|
7660
|
-
|
|
7789
|
+
const _tag = state.tag;
|
|
7790
|
+
const _anchor = state.anchor;
|
|
7791
|
+
const _result = [];
|
|
7792
|
+
let detected = false;
|
|
7661
7793
|
if (state.firstTabInLine !== -1) return false;
|
|
7662
|
-
if (state.anchor !== null) state
|
|
7663
|
-
ch = state.input.charCodeAt(state.position);
|
|
7794
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7795
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7664
7796
|
while (ch !== 0) {
|
|
7665
7797
|
if (state.firstTabInLine !== -1) {
|
|
7666
7798
|
state.position = state.firstTabInLine;
|
|
7667
7799
|
throwError(state, "tab characters must not be used in indentation");
|
|
7668
7800
|
}
|
|
7669
7801
|
if (ch !== 45) break;
|
|
7670
|
-
|
|
7671
|
-
if (!is_WS_OR_EOL(following)) break;
|
|
7802
|
+
if (!isWsOrEol(state.input.charCodeAt(state.position + 1))) break;
|
|
7672
7803
|
detected = true;
|
|
7673
7804
|
state.position++;
|
|
7674
7805
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -7678,7 +7809,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7678
7809
|
continue;
|
|
7679
7810
|
}
|
|
7680
7811
|
}
|
|
7681
|
-
_line = state.line;
|
|
7812
|
+
const _line = state.line;
|
|
7682
7813
|
composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
7683
7814
|
_result.push(state.result);
|
|
7684
7815
|
skipSeparationSpace(state, true, -1);
|
|
@@ -7696,18 +7827,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7696
7827
|
return false;
|
|
7697
7828
|
}
|
|
7698
7829
|
function readBlockMapping(state, nodeIndent, flowIndent) {
|
|
7699
|
-
|
|
7830
|
+
let allowCompact;
|
|
7831
|
+
let _keyLine;
|
|
7832
|
+
let _keyLineStart;
|
|
7833
|
+
let _keyPos;
|
|
7834
|
+
const _tag = state.tag;
|
|
7835
|
+
const _anchor = state.anchor;
|
|
7836
|
+
const _result = {};
|
|
7837
|
+
const overridableKeys = Object.create(null);
|
|
7838
|
+
let keyTag = null;
|
|
7839
|
+
let keyNode = null;
|
|
7840
|
+
let valueNode = null;
|
|
7841
|
+
let atExplicitKey = false;
|
|
7842
|
+
let detected = false;
|
|
7700
7843
|
if (state.firstTabInLine !== -1) return false;
|
|
7701
|
-
if (state.anchor !== null) state
|
|
7702
|
-
ch = state.input.charCodeAt(state.position);
|
|
7844
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7845
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7703
7846
|
while (ch !== 0) {
|
|
7704
7847
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
7705
7848
|
state.position = state.firstTabInLine;
|
|
7706
7849
|
throwError(state, "tab characters must not be used in indentation");
|
|
7707
7850
|
}
|
|
7708
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7709
|
-
_line = state.line;
|
|
7710
|
-
if ((ch === 63 || ch === 58) &&
|
|
7851
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7852
|
+
const _line = state.line;
|
|
7853
|
+
if ((ch === 63 || ch === 58) && isWsOrEol(following)) {
|
|
7711
7854
|
if (ch === 63) {
|
|
7712
7855
|
if (atExplicitKey) {
|
|
7713
7856
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
@@ -7729,10 +7872,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7729
7872
|
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) break;
|
|
7730
7873
|
if (state.line === _line) {
|
|
7731
7874
|
ch = state.input.charCodeAt(state.position);
|
|
7732
|
-
while (
|
|
7875
|
+
while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7733
7876
|
if (ch === 58) {
|
|
7734
7877
|
ch = state.input.charCodeAt(++state.position);
|
|
7735
|
-
if (!
|
|
7878
|
+
if (!isWsOrEol(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
7736
7879
|
if (atExplicitKey) {
|
|
7737
7880
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
7738
7881
|
keyTag = keyNode = valueNode = null;
|
|
@@ -7783,7 +7926,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7783
7926
|
return detected;
|
|
7784
7927
|
}
|
|
7785
7928
|
function readTagProperty(state) {
|
|
7786
|
-
|
|
7929
|
+
let isVerbatim = false;
|
|
7930
|
+
let isNamed = false;
|
|
7931
|
+
let tagHandle;
|
|
7932
|
+
let tagName;
|
|
7933
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7787
7934
|
if (ch !== 33) return false;
|
|
7788
7935
|
if (state.tag !== null) throwError(state, "duplication of a tag property");
|
|
7789
7936
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -7795,7 +7942,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7795
7942
|
tagHandle = "!!";
|
|
7796
7943
|
ch = state.input.charCodeAt(++state.position);
|
|
7797
7944
|
} else tagHandle = "!";
|
|
7798
|
-
_position = state.position;
|
|
7945
|
+
let _position = state.position;
|
|
7799
7946
|
if (isVerbatim) {
|
|
7800
7947
|
do
|
|
7801
7948
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -7805,7 +7952,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7805
7952
|
ch = state.input.charCodeAt(++state.position);
|
|
7806
7953
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
7807
7954
|
} else {
|
|
7808
|
-
while (ch !== 0 && !
|
|
7955
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
7809
7956
|
if (ch === 33) if (!isNamed) {
|
|
7810
7957
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
7811
7958
|
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
@@ -7831,37 +7978,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7831
7978
|
return true;
|
|
7832
7979
|
}
|
|
7833
7980
|
function readAnchorProperty(state) {
|
|
7834
|
-
|
|
7981
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7835
7982
|
if (ch !== 38) return false;
|
|
7836
7983
|
if (state.anchor !== null) throwError(state, "duplication of an anchor property");
|
|
7837
7984
|
ch = state.input.charCodeAt(++state.position);
|
|
7838
|
-
_position = state.position;
|
|
7839
|
-
while (ch !== 0 && !
|
|
7985
|
+
const _position = state.position;
|
|
7986
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7840
7987
|
if (state.position === _position) throwError(state, "name of an anchor node must contain at least one character");
|
|
7841
7988
|
state.anchor = state.input.slice(_position, state.position);
|
|
7842
7989
|
return true;
|
|
7843
7990
|
}
|
|
7844
7991
|
function readAlias(state) {
|
|
7845
|
-
|
|
7992
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7846
7993
|
if (ch !== 42) return false;
|
|
7847
7994
|
ch = state.input.charCodeAt(++state.position);
|
|
7848
|
-
_position = state.position;
|
|
7849
|
-
while (ch !== 0 && !
|
|
7995
|
+
const _position = state.position;
|
|
7996
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7850
7997
|
if (state.position === _position) throwError(state, "name of an alias node must contain at least one character");
|
|
7851
|
-
alias = state.input.slice(_position, state.position);
|
|
7998
|
+
const alias = state.input.slice(_position, state.position);
|
|
7852
7999
|
if (!_hasOwnProperty.call(state.anchorMap, alias)) throwError(state, "unidentified alias \"" + alias + "\"");
|
|
7853
8000
|
state.result = state.anchorMap[alias];
|
|
7854
8001
|
skipSeparationSpace(state, true, -1);
|
|
7855
8002
|
return true;
|
|
7856
8003
|
}
|
|
8004
|
+
function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) {
|
|
8005
|
+
const fallbackState = snapshotState(state);
|
|
8006
|
+
beginAnchorTransaction(state);
|
|
8007
|
+
restoreState(state, propertyStart);
|
|
8008
|
+
state.tag = null;
|
|
8009
|
+
state.anchor = null;
|
|
8010
|
+
state.kind = null;
|
|
8011
|
+
state.result = null;
|
|
8012
|
+
if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") {
|
|
8013
|
+
commitAnchorTransaction(state);
|
|
8014
|
+
return true;
|
|
8015
|
+
}
|
|
8016
|
+
rollbackAnchorTransaction(state);
|
|
8017
|
+
restoreState(state, fallbackState);
|
|
8018
|
+
return false;
|
|
8019
|
+
}
|
|
7857
8020
|
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
7858
|
-
|
|
8021
|
+
let allowBlockScalars;
|
|
8022
|
+
let allowBlockCollections;
|
|
8023
|
+
let indentStatus = 1;
|
|
8024
|
+
let atNewLine = false;
|
|
8025
|
+
let hasContent = false;
|
|
8026
|
+
let propertyStart = null;
|
|
8027
|
+
let type;
|
|
8028
|
+
let flowIndent;
|
|
8029
|
+
let blockIndent;
|
|
8030
|
+
if (state.depth >= state.maxDepth) throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
8031
|
+
state.depth += 1;
|
|
7859
8032
|
if (state.listener !== null) state.listener("open", state);
|
|
7860
8033
|
state.tag = null;
|
|
7861
8034
|
state.anchor = null;
|
|
7862
8035
|
state.kind = null;
|
|
7863
8036
|
state.result = null;
|
|
7864
|
-
allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
8037
|
+
const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
7865
8038
|
if (allowToSeek) {
|
|
7866
8039
|
if (skipSeparationSpace(state, true, -1)) {
|
|
7867
8040
|
atNewLine = true;
|
|
@@ -7870,13 +8043,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7870
8043
|
else if (state.lineIndent < parentIndent) indentStatus = -1;
|
|
7871
8044
|
}
|
|
7872
8045
|
}
|
|
7873
|
-
if (indentStatus === 1) while (
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
if (state.
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
8046
|
+
if (indentStatus === 1) while (true) {
|
|
8047
|
+
const ch = state.input.charCodeAt(state.position);
|
|
8048
|
+
const propertyState = snapshotState(state);
|
|
8049
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) break;
|
|
8050
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) break;
|
|
8051
|
+
if (propertyStart === null) propertyStart = propertyState;
|
|
8052
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
8053
|
+
atNewLine = true;
|
|
8054
|
+
allowBlockCollections = allowBlockStyles;
|
|
8055
|
+
if (state.lineIndent > parentIndent) indentStatus = 1;
|
|
8056
|
+
else if (state.lineIndent === parentIndent) indentStatus = 0;
|
|
8057
|
+
else if (state.lineIndent < parentIndent) indentStatus = -1;
|
|
8058
|
+
} else allowBlockCollections = false;
|
|
8059
|
+
}
|
|
7880
8060
|
if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact;
|
|
7881
8061
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
7882
8062
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
@@ -7884,7 +8064,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7884
8064
|
blockIndent = state.position - state.lineStart;
|
|
7885
8065
|
if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
7886
8066
|
else {
|
|
7887
|
-
|
|
8067
|
+
const ch = state.input.charCodeAt(state.position);
|
|
8068
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
8069
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
7888
8070
|
else if (readAlias(state)) {
|
|
7889
8071
|
hasContent = true;
|
|
7890
8072
|
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
@@ -7892,20 +8074,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7892
8074
|
hasContent = true;
|
|
7893
8075
|
if (state.tag === null) state.tag = "?";
|
|
7894
8076
|
}
|
|
7895
|
-
if (state.anchor !== null) state
|
|
8077
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7896
8078
|
}
|
|
7897
8079
|
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
7898
8080
|
}
|
|
7899
8081
|
if (state.tag === null) {
|
|
7900
|
-
if (state.anchor !== null) state
|
|
8082
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7901
8083
|
} else if (state.tag === "?") {
|
|
7902
8084
|
if (state.result !== null && state.kind !== "scalar") throwError(state, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + state.kind + "\"");
|
|
7903
|
-
for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
8085
|
+
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
7904
8086
|
type = state.implicitTypes[typeIndex];
|
|
7905
8087
|
if (type.resolve(state.result)) {
|
|
7906
8088
|
state.result = type.construct(state.result);
|
|
7907
8089
|
state.tag = type.tag;
|
|
7908
|
-
if (state.anchor !== null) state
|
|
8090
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7909
8091
|
break;
|
|
7910
8092
|
}
|
|
7911
8093
|
}
|
|
@@ -7913,8 +8095,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7913
8095
|
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) type = state.typeMap[state.kind || "fallback"][state.tag];
|
|
7914
8096
|
else {
|
|
7915
8097
|
type = null;
|
|
7916
|
-
typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
7917
|
-
for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
8098
|
+
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
8099
|
+
for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
7918
8100
|
type = typeList[typeIndex];
|
|
7919
8101
|
break;
|
|
7920
8102
|
}
|
|
@@ -7924,14 +8106,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7924
8106
|
if (!type.resolve(state.result, state.tag)) throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
7925
8107
|
else {
|
|
7926
8108
|
state.result = type.construct(state.result, state.tag);
|
|
7927
|
-
if (state.anchor !== null) state
|
|
8109
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7928
8110
|
}
|
|
7929
8111
|
}
|
|
7930
8112
|
if (state.listener !== null) state.listener("close", state);
|
|
8113
|
+
state.depth -= 1;
|
|
7931
8114
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
7932
8115
|
}
|
|
7933
8116
|
function readDocument(state) {
|
|
7934
|
-
|
|
8117
|
+
const documentStart = state.position;
|
|
8118
|
+
let hasDirectives = false;
|
|
8119
|
+
let ch;
|
|
7935
8120
|
state.version = null;
|
|
7936
8121
|
state.checkLineBreaks = state.legacy;
|
|
7937
8122
|
state.tagMap = Object.create(null);
|
|
@@ -7942,22 +8127,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7942
8127
|
if (state.lineIndent > 0 || ch !== 37) break;
|
|
7943
8128
|
hasDirectives = true;
|
|
7944
8129
|
ch = state.input.charCodeAt(++state.position);
|
|
7945
|
-
_position = state.position;
|
|
7946
|
-
while (ch !== 0 && !
|
|
7947
|
-
directiveName = state.input.slice(_position, state.position);
|
|
7948
|
-
directiveArgs = [];
|
|
8130
|
+
let _position = state.position;
|
|
8131
|
+
while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
|
|
8132
|
+
const directiveName = state.input.slice(_position, state.position);
|
|
8133
|
+
const directiveArgs = [];
|
|
7949
8134
|
if (directiveName.length < 1) throwError(state, "directive name must not be less than one character in length");
|
|
7950
8135
|
while (ch !== 0) {
|
|
7951
|
-
while (
|
|
8136
|
+
while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7952
8137
|
if (ch === 35) {
|
|
7953
8138
|
do
|
|
7954
8139
|
ch = state.input.charCodeAt(++state.position);
|
|
7955
|
-
while (ch !== 0 && !
|
|
8140
|
+
while (ch !== 0 && !isEol(ch));
|
|
7956
8141
|
break;
|
|
7957
8142
|
}
|
|
7958
|
-
if (
|
|
8143
|
+
if (isEol(ch)) break;
|
|
7959
8144
|
_position = state.position;
|
|
7960
|
-
while (ch !== 0 && !
|
|
8145
|
+
while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7961
8146
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
7962
8147
|
}
|
|
7963
8148
|
if (ch !== 0) readLineBreak(state);
|
|
@@ -7981,7 +8166,6 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7981
8166
|
return;
|
|
7982
8167
|
}
|
|
7983
8168
|
if (state.position < state.length - 1) throwError(state, "end of the stream or a document separator is expected");
|
|
7984
|
-
else return;
|
|
7985
8169
|
}
|
|
7986
8170
|
function loadDocuments(input, options) {
|
|
7987
8171
|
input = String(input);
|
|
@@ -7990,8 +8174,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7990
8174
|
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) input += "\n";
|
|
7991
8175
|
if (input.charCodeAt(0) === 65279) input = input.slice(1);
|
|
7992
8176
|
}
|
|
7993
|
-
|
|
7994
|
-
|
|
8177
|
+
const state = new State(input, options);
|
|
8178
|
+
const nullpos = input.indexOf("\0");
|
|
7995
8179
|
if (nullpos !== -1) {
|
|
7996
8180
|
state.position = nullpos;
|
|
7997
8181
|
throwError(state, "null byte is not allowed in input");
|
|
@@ -8009,12 +8193,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8009
8193
|
options = iterator;
|
|
8010
8194
|
iterator = null;
|
|
8011
8195
|
}
|
|
8012
|
-
|
|
8196
|
+
const documents = loadDocuments(input, options);
|
|
8013
8197
|
if (typeof iterator !== "function") return documents;
|
|
8014
|
-
for (
|
|
8198
|
+
for (let index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]);
|
|
8015
8199
|
}
|
|
8016
8200
|
function load(input, options) {
|
|
8017
|
-
|
|
8201
|
+
const documents = loadDocuments(input, options);
|
|
8018
8202
|
if (documents.length === 0) return;
|
|
8019
8203
|
else if (documents.length === 1) return documents[0];
|
|
8020
8204
|
throw new YAMLException("expected a single document in the stream, but found more");
|
|
@@ -8023,39 +8207,39 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8023
8207
|
module.exports.load = load;
|
|
8024
8208
|
}));
|
|
8025
8209
|
//#endregion
|
|
8026
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
8210
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/dumper.js
|
|
8027
8211
|
var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8212
|
+
const common = require_common();
|
|
8213
|
+
const YAMLException = require_exception();
|
|
8214
|
+
const DEFAULT_SCHEMA = require_default();
|
|
8215
|
+
const _toString = Object.prototype.toString;
|
|
8216
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
8217
|
+
const CHAR_BOM = 65279;
|
|
8218
|
+
const CHAR_TAB = 9;
|
|
8219
|
+
const CHAR_LINE_FEED = 10;
|
|
8220
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
8221
|
+
const CHAR_SPACE = 32;
|
|
8222
|
+
const CHAR_EXCLAMATION = 33;
|
|
8223
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
8224
|
+
const CHAR_SHARP = 35;
|
|
8225
|
+
const CHAR_PERCENT = 37;
|
|
8226
|
+
const CHAR_AMPERSAND = 38;
|
|
8227
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
8228
|
+
const CHAR_ASTERISK = 42;
|
|
8229
|
+
const CHAR_COMMA = 44;
|
|
8230
|
+
const CHAR_MINUS = 45;
|
|
8231
|
+
const CHAR_COLON = 58;
|
|
8232
|
+
const CHAR_EQUALS = 61;
|
|
8233
|
+
const CHAR_GREATER_THAN = 62;
|
|
8234
|
+
const CHAR_QUESTION = 63;
|
|
8235
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
8236
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
8237
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
8238
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
8239
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
8240
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
8241
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
8242
|
+
const ESCAPE_SEQUENCES = {};
|
|
8059
8243
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
8060
8244
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
8061
8245
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -8071,7 +8255,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8071
8255
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
8072
8256
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
8073
8257
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
8074
|
-
|
|
8258
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
8075
8259
|
"y",
|
|
8076
8260
|
"Y",
|
|
8077
8261
|
"yes",
|
|
@@ -8089,24 +8273,25 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8089
8273
|
"Off",
|
|
8090
8274
|
"OFF"
|
|
8091
8275
|
];
|
|
8092
|
-
|
|
8276
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
8093
8277
|
function compileStyleMap(schema, map) {
|
|
8094
|
-
var result, keys, index, length, tag, style, type;
|
|
8095
8278
|
if (map === null) return {};
|
|
8096
|
-
result = {};
|
|
8097
|
-
keys = Object.keys(map);
|
|
8098
|
-
for (index = 0, length = keys.length; index < length; index += 1) {
|
|
8099
|
-
tag = keys[index];
|
|
8100
|
-
style = String(map[tag]);
|
|
8279
|
+
const result = {};
|
|
8280
|
+
const keys = Object.keys(map);
|
|
8281
|
+
for (let index = 0, length = keys.length; index < length; index += 1) {
|
|
8282
|
+
let tag = keys[index];
|
|
8283
|
+
let style = String(map[tag]);
|
|
8101
8284
|
if (tag.slice(0, 2) === "!!") tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
8102
|
-
type = schema.compiledTypeMap["fallback"][tag];
|
|
8285
|
+
const type = schema.compiledTypeMap["fallback"][tag];
|
|
8103
8286
|
if (type && _hasOwnProperty.call(type.styleAliases, style)) style = type.styleAliases[style];
|
|
8104
8287
|
result[tag] = style;
|
|
8105
8288
|
}
|
|
8106
8289
|
return result;
|
|
8107
8290
|
}
|
|
8108
8291
|
function encodeHex(character) {
|
|
8109
|
-
|
|
8292
|
+
let handle;
|
|
8293
|
+
let length;
|
|
8294
|
+
const string = character.toString(16).toUpperCase();
|
|
8110
8295
|
if (character <= 255) {
|
|
8111
8296
|
handle = "x";
|
|
8112
8297
|
length = 2;
|
|
@@ -8119,8 +8304,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8119
8304
|
} else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
|
|
8120
8305
|
return "\\" + handle + common.repeat("0", length - string.length) + string;
|
|
8121
8306
|
}
|
|
8122
|
-
|
|
8123
|
-
|
|
8307
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
8308
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
8124
8309
|
function State(options) {
|
|
8125
8310
|
this.schema = options["schema"] || DEFAULT_SCHEMA;
|
|
8126
8311
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
@@ -8144,9 +8329,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8144
8329
|
this.usedDuplicates = null;
|
|
8145
8330
|
}
|
|
8146
8331
|
function indentString(string, spaces) {
|
|
8147
|
-
|
|
8332
|
+
const ind = common.repeat(" ", spaces);
|
|
8333
|
+
let position = 0;
|
|
8334
|
+
let result = "";
|
|
8335
|
+
const length = string.length;
|
|
8148
8336
|
while (position < length) {
|
|
8149
|
-
|
|
8337
|
+
let line;
|
|
8338
|
+
const next = string.indexOf("\n", position);
|
|
8150
8339
|
if (next === -1) {
|
|
8151
8340
|
line = string.slice(position);
|
|
8152
8341
|
position = length;
|
|
@@ -8163,25 +8352,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8163
8352
|
return "\n" + common.repeat(" ", state.indent * level);
|
|
8164
8353
|
}
|
|
8165
8354
|
function testImplicitResolving(state, str) {
|
|
8166
|
-
|
|
8167
|
-
for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
|
8168
|
-
type = state.implicitTypes[index];
|
|
8169
|
-
if (type.resolve(str)) return true;
|
|
8170
|
-
}
|
|
8355
|
+
for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) if (state.implicitTypes[index].resolve(str)) return true;
|
|
8171
8356
|
return false;
|
|
8172
8357
|
}
|
|
8173
8358
|
function isWhitespace(c) {
|
|
8174
8359
|
return c === CHAR_SPACE || c === CHAR_TAB;
|
|
8175
8360
|
}
|
|
8176
8361
|
function isPrintable(c) {
|
|
8177
|
-
return
|
|
8362
|
+
return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
|
|
8178
8363
|
}
|
|
8179
8364
|
function isNsCharOrWhitespace(c) {
|
|
8180
8365
|
return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
|
|
8181
8366
|
}
|
|
8182
8367
|
function isPlainSafe(c, prev, inblock) {
|
|
8183
|
-
|
|
8184
|
-
|
|
8368
|
+
const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
|
|
8369
|
+
const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
|
|
8185
8370
|
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar;
|
|
8186
8371
|
}
|
|
8187
8372
|
function isPlainSafeFirst(c) {
|
|
@@ -8191,7 +8376,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8191
8376
|
return !isWhitespace(c) && c !== CHAR_COLON;
|
|
8192
8377
|
}
|
|
8193
8378
|
function codePointAt(string, pos) {
|
|
8194
|
-
|
|
8379
|
+
const first = string.charCodeAt(pos);
|
|
8380
|
+
let second;
|
|
8195
8381
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
8196
8382
|
second = string.charCodeAt(pos + 1);
|
|
8197
8383
|
if (second >= 56320 && second <= 57343) return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
@@ -8201,20 +8387,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8201
8387
|
function needIndentIndicator(string) {
|
|
8202
8388
|
return /^\n* /.test(string);
|
|
8203
8389
|
}
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8390
|
+
const STYLE_PLAIN = 1;
|
|
8391
|
+
const STYLE_SINGLE = 2;
|
|
8392
|
+
const STYLE_LITERAL = 3;
|
|
8393
|
+
const STYLE_FOLDED = 4;
|
|
8394
|
+
const STYLE_DOUBLE = 5;
|
|
8209
8395
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8396
|
+
let i;
|
|
8397
|
+
let char = 0;
|
|
8398
|
+
let prevChar = null;
|
|
8399
|
+
let hasLineBreak = false;
|
|
8400
|
+
let hasFoldableLine = false;
|
|
8401
|
+
const shouldTrackWidth = lineWidth !== -1;
|
|
8402
|
+
let previousLineBreak = -1;
|
|
8403
|
+
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
8218
8404
|
if (singleLineOnly || forceQuotes) for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
8219
8405
|
char = codePointAt(string, i);
|
|
8220
8406
|
if (!isPrintable(char)) return STYLE_DOUBLE;
|
|
@@ -8250,9 +8436,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8250
8436
|
if (!state.noCompatMode) {
|
|
8251
8437
|
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"" + string + "\"" : "'" + string + "'";
|
|
8252
8438
|
}
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8439
|
+
const indent = state.indent * Math.max(1, level);
|
|
8440
|
+
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
8441
|
+
const singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
|
|
8256
8442
|
function testAmbiguity(string) {
|
|
8257
8443
|
return testImplicitResolving(state, string);
|
|
8258
8444
|
}
|
|
@@ -8267,26 +8453,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8267
8453
|
}();
|
|
8268
8454
|
}
|
|
8269
8455
|
function blockHeader(string, indentPerLevel) {
|
|
8270
|
-
|
|
8271
|
-
|
|
8456
|
+
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
8457
|
+
const clip = string[string.length - 1] === "\n";
|
|
8272
8458
|
return indentIndicator + (clip && (string[string.length - 2] === "\n" || string === "\n") ? "+" : clip ? "" : "-") + "\n";
|
|
8273
8459
|
}
|
|
8274
8460
|
function dropEndingNewline(string) {
|
|
8275
8461
|
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
|
|
8276
8462
|
}
|
|
8277
8463
|
function foldString(string, width) {
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8464
|
+
const lineRe = /(\n+)([^\n]*)/g;
|
|
8465
|
+
let result = function() {
|
|
8466
|
+
let nextLF = string.indexOf("\n");
|
|
8281
8467
|
nextLF = nextLF !== -1 ? nextLF : string.length;
|
|
8282
8468
|
lineRe.lastIndex = nextLF;
|
|
8283
8469
|
return foldLine(string.slice(0, nextLF), width);
|
|
8284
8470
|
}();
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8471
|
+
let prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
8472
|
+
let moreIndented;
|
|
8473
|
+
let match;
|
|
8288
8474
|
while (match = lineRe.exec(string)) {
|
|
8289
|
-
|
|
8475
|
+
const prefix = match[1];
|
|
8476
|
+
const line = match[2];
|
|
8290
8477
|
moreIndented = line[0] === " ";
|
|
8291
8478
|
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
|
|
8292
8479
|
prevMoreIndented = moreIndented;
|
|
@@ -8295,10 +8482,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8295
8482
|
}
|
|
8296
8483
|
function foldLine(line, width) {
|
|
8297
8484
|
if (line === "" || line[0] === " ") return line;
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8485
|
+
const breakRe = / [^ ]/g;
|
|
8486
|
+
let match;
|
|
8487
|
+
let start = 0;
|
|
8488
|
+
let end;
|
|
8489
|
+
let curr = 0;
|
|
8490
|
+
let next = 0;
|
|
8491
|
+
let result = "";
|
|
8302
8492
|
while (match = breakRe.exec(line)) {
|
|
8303
8493
|
next = match.index;
|
|
8304
8494
|
if (next - start > width) {
|
|
@@ -8314,12 +8504,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8314
8504
|
return result.slice(1);
|
|
8315
8505
|
}
|
|
8316
8506
|
function escapeString(string) {
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
8507
|
+
let result = "";
|
|
8508
|
+
let char = 0;
|
|
8509
|
+
for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
8321
8510
|
char = codePointAt(string, i);
|
|
8322
|
-
escapeSeq = ESCAPE_SEQUENCES[char];
|
|
8511
|
+
const escapeSeq = ESCAPE_SEQUENCES[char];
|
|
8323
8512
|
if (!escapeSeq && isPrintable(char)) {
|
|
8324
8513
|
result += string[i];
|
|
8325
8514
|
if (char >= 65536) result += string[i + 1];
|
|
@@ -8328,9 +8517,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8328
8517
|
return result;
|
|
8329
8518
|
}
|
|
8330
8519
|
function writeFlowSequence(state, level, object) {
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8520
|
+
let _result = "";
|
|
8521
|
+
const _tag = state.tag;
|
|
8522
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
8523
|
+
let value = object[index];
|
|
8334
8524
|
if (state.replacer) value = state.replacer.call(object, String(index), value);
|
|
8335
8525
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
8336
8526
|
if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -8341,9 +8531,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8341
8531
|
state.dump = "[" + _result + "]";
|
|
8342
8532
|
}
|
|
8343
8533
|
function writeBlockSequence(state, level, object, compact) {
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8534
|
+
let _result = "";
|
|
8535
|
+
const _tag = state.tag;
|
|
8536
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
8537
|
+
let value = object[index];
|
|
8347
8538
|
if (state.replacer) value = state.replacer.call(object, String(index), value);
|
|
8348
8539
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
8349
8540
|
if (!compact || _result !== "") _result += generateNextLine(state, level);
|
|
@@ -8356,13 +8547,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8356
8547
|
state.dump = _result || "[]";
|
|
8357
8548
|
}
|
|
8358
8549
|
function writeFlowMapping(state, level, object) {
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8550
|
+
let _result = "";
|
|
8551
|
+
const _tag = state.tag;
|
|
8552
|
+
const objectKeyList = Object.keys(object);
|
|
8553
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8554
|
+
let pairBuffer = "";
|
|
8362
8555
|
if (_result !== "") pairBuffer += ", ";
|
|
8363
8556
|
if (state.condenseFlow) pairBuffer += "\"";
|
|
8364
|
-
objectKey = objectKeyList[index];
|
|
8365
|
-
objectValue = object[objectKey];
|
|
8557
|
+
const objectKey = objectKeyList[index];
|
|
8558
|
+
let objectValue = object[objectKey];
|
|
8366
8559
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
8367
8560
|
if (!writeNode(state, level, objectKey, false, false)) continue;
|
|
8368
8561
|
if (state.dump.length > 1024) pairBuffer += "? ";
|
|
@@ -8375,18 +8568,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8375
8568
|
state.dump = "{" + _result + "}";
|
|
8376
8569
|
}
|
|
8377
8570
|
function writeBlockMapping(state, level, object, compact) {
|
|
8378
|
-
|
|
8571
|
+
let _result = "";
|
|
8572
|
+
const _tag = state.tag;
|
|
8573
|
+
const objectKeyList = Object.keys(object);
|
|
8379
8574
|
if (state.sortKeys === true) objectKeyList.sort();
|
|
8380
8575
|
else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
|
|
8381
8576
|
else if (state.sortKeys) throw new YAMLException("sortKeys must be a boolean or a function");
|
|
8382
|
-
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8383
|
-
pairBuffer = "";
|
|
8577
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8578
|
+
let pairBuffer = "";
|
|
8384
8579
|
if (!compact || _result !== "") pairBuffer += generateNextLine(state, level);
|
|
8385
|
-
objectKey = objectKeyList[index];
|
|
8386
|
-
objectValue = object[objectKey];
|
|
8580
|
+
const objectKey = objectKeyList[index];
|
|
8581
|
+
let objectValue = object[objectKey];
|
|
8387
8582
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
8388
8583
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
8389
|
-
explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8584
|
+
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8390
8585
|
if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
8391
8586
|
else pairBuffer += "? ";
|
|
8392
8587
|
pairBuffer += state.dump;
|
|
@@ -8401,15 +8596,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8401
8596
|
state.dump = _result || "{}";
|
|
8402
8597
|
}
|
|
8403
8598
|
function detectType(state, object, explicit) {
|
|
8404
|
-
|
|
8405
|
-
for (index = 0, length = typeList.length; index < length; index += 1) {
|
|
8406
|
-
type = typeList[index];
|
|
8599
|
+
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
8600
|
+
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
8601
|
+
const type = typeList[index];
|
|
8407
8602
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
8408
8603
|
if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
|
|
8409
8604
|
else state.tag = type.tag;
|
|
8410
8605
|
else state.tag = "?";
|
|
8411
8606
|
if (type.represent) {
|
|
8412
|
-
style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8607
|
+
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8608
|
+
let _result;
|
|
8413
8609
|
if (_toString.call(type.represent) === "[object Function]") _result = type.represent(object, style);
|
|
8414
8610
|
else if (_hasOwnProperty.call(type.represent, style)) _result = type.represent[style](object, style);
|
|
8415
8611
|
else throw new YAMLException("!<" + type.tag + "> tag resolver accepts not \"" + style + "\" style");
|
|
@@ -8424,11 +8620,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8424
8620
|
state.tag = null;
|
|
8425
8621
|
state.dump = object;
|
|
8426
8622
|
if (!detectType(state, object, false)) detectType(state, object, true);
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
var tagStr;
|
|
8623
|
+
const type = _toString.call(state.dump);
|
|
8624
|
+
const inblock = block;
|
|
8430
8625
|
if (block) block = state.flowLevel < 0 || state.flowLevel > level;
|
|
8431
|
-
|
|
8626
|
+
const objectOrArray = type === "[object Object]" || type === "[object Array]";
|
|
8627
|
+
let duplicateIndex;
|
|
8628
|
+
let duplicate;
|
|
8432
8629
|
if (objectOrArray) {
|
|
8433
8630
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
8434
8631
|
duplicate = duplicateIndex !== -1;
|
|
@@ -8460,7 +8657,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8460
8657
|
throw new YAMLException("unacceptable kind of an object to dump " + type);
|
|
8461
8658
|
}
|
|
8462
8659
|
if (state.tag !== null && state.tag !== "?") {
|
|
8463
|
-
tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
8660
|
+
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
8464
8661
|
if (state.tag[0] === "!") tagStr = "!" + tagStr;
|
|
8465
8662
|
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") tagStr = "!!" + tagStr.slice(18);
|
|
8466
8663
|
else tagStr = "!<" + tagStr + ">";
|
|
@@ -8470,32 +8667,33 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8470
8667
|
return true;
|
|
8471
8668
|
}
|
|
8472
8669
|
function getDuplicateReferences(object, state) {
|
|
8473
|
-
|
|
8670
|
+
const objects = [];
|
|
8671
|
+
const duplicatesIndexes = [];
|
|
8474
8672
|
inspectNode(object, objects, duplicatesIndexes);
|
|
8475
|
-
|
|
8673
|
+
const length = duplicatesIndexes.length;
|
|
8674
|
+
for (let index = 0; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
8476
8675
|
state.usedDuplicates = new Array(length);
|
|
8477
8676
|
}
|
|
8478
8677
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
8479
|
-
var objectKeyList, index, length;
|
|
8480
8678
|
if (object !== null && typeof object === "object") {
|
|
8481
|
-
index = objects.indexOf(object);
|
|
8679
|
+
const index = objects.indexOf(object);
|
|
8482
8680
|
if (index !== -1) {
|
|
8483
8681
|
if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index);
|
|
8484
8682
|
} else {
|
|
8485
8683
|
objects.push(object);
|
|
8486
|
-
if (Array.isArray(object)) for (
|
|
8684
|
+
if (Array.isArray(object)) for (let i = 0, length = object.length; i < length; i += 1) inspectNode(object[i], objects, duplicatesIndexes);
|
|
8487
8685
|
else {
|
|
8488
|
-
objectKeyList = Object.keys(object);
|
|
8489
|
-
for (
|
|
8686
|
+
const objectKeyList = Object.keys(object);
|
|
8687
|
+
for (let i = 0, length = objectKeyList.length; i < length; i += 1) inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
8490
8688
|
}
|
|
8491
8689
|
}
|
|
8492
8690
|
}
|
|
8493
8691
|
}
|
|
8494
8692
|
function dump(input, options) {
|
|
8495
8693
|
options = options || {};
|
|
8496
|
-
|
|
8694
|
+
const state = new State(options);
|
|
8497
8695
|
if (!state.noRefs) getDuplicateReferences(input, state);
|
|
8498
|
-
|
|
8696
|
+
let value = input;
|
|
8499
8697
|
if (state.replacer) value = state.replacer.call({ "": value }, "", value);
|
|
8500
8698
|
if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
|
|
8501
8699
|
return "";
|
|
@@ -8503,10 +8701,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8503
8701
|
module.exports.dump = dump;
|
|
8504
8702
|
}));
|
|
8505
8703
|
//#endregion
|
|
8506
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
8704
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/index.js
|
|
8507
8705
|
var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8508
|
-
|
|
8509
|
-
|
|
8706
|
+
const loader = require_loader();
|
|
8707
|
+
const dumper = require_dumper();
|
|
8510
8708
|
function renamed(from, to) {
|
|
8511
8709
|
return function() {
|
|
8512
8710
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
@@ -11686,34 +11884,386 @@ function cloneResolvedPublintRules(rules) {
|
|
|
11686
11884
|
};
|
|
11687
11885
|
}
|
|
11688
11886
|
//#endregion
|
|
11689
|
-
//#region ../../node_modules/.pnpm
|
|
11887
|
+
//#region ../../node_modules/.pnpm/tinyexec@1.2.4/node_modules/tinyexec/dist/main.mjs
|
|
11888
|
+
function _(e) {
|
|
11889
|
+
for (const t in e) {
|
|
11890
|
+
if (!Object.prototype.hasOwnProperty.call(e, t) || !h.test(t)) continue;
|
|
11891
|
+
const n = e[t];
|
|
11892
|
+
if (!n) return g;
|
|
11893
|
+
return {
|
|
11894
|
+
key: t,
|
|
11895
|
+
value: n
|
|
11896
|
+
};
|
|
11897
|
+
}
|
|
11898
|
+
return g;
|
|
11899
|
+
}
|
|
11900
|
+
function v(e, t) {
|
|
11901
|
+
const n = t.value.split(delimiter);
|
|
11902
|
+
const r = [];
|
|
11903
|
+
let o = e;
|
|
11904
|
+
let c;
|
|
11905
|
+
do {
|
|
11906
|
+
r.push(resolve(o, "node_modules", ".bin"));
|
|
11907
|
+
c = o;
|
|
11908
|
+
o = dirname(o);
|
|
11909
|
+
} while (o !== c);
|
|
11910
|
+
r.push(dirname(process.execPath));
|
|
11911
|
+
const l = r.concat(n).join(delimiter);
|
|
11912
|
+
return {
|
|
11913
|
+
key: t.key,
|
|
11914
|
+
value: l
|
|
11915
|
+
};
|
|
11916
|
+
}
|
|
11917
|
+
function y(e, t, n = true) {
|
|
11918
|
+
const r = {
|
|
11919
|
+
...process.env,
|
|
11920
|
+
...t
|
|
11921
|
+
};
|
|
11922
|
+
if (!n) return r;
|
|
11923
|
+
const i = v(e, _(r));
|
|
11924
|
+
r[i.key] = i.value;
|
|
11925
|
+
return r;
|
|
11926
|
+
}
|
|
11927
|
+
/**
|
|
11928
|
+
* Normalizes the command and arguments to work cross-platform.
|
|
11929
|
+
* On Windows, this basically handles things like shebangs, calling
|
|
11930
|
+
* `node_modules/.bin` commands, and escaping meta characters.
|
|
11931
|
+
* On other platforms, it just returns the command and arguments as-is.
|
|
11932
|
+
*/
|
|
11933
|
+
function D(e, t = [], n = {}) {
|
|
11934
|
+
if (n.shell === true || !T) return {
|
|
11935
|
+
command: e,
|
|
11936
|
+
args: t,
|
|
11937
|
+
options: n
|
|
11938
|
+
};
|
|
11939
|
+
let i = O(e, n);
|
|
11940
|
+
let a = null;
|
|
11941
|
+
if (i !== null) {
|
|
11942
|
+
const e = 150;
|
|
11943
|
+
const t = Buffer.alloc(e);
|
|
11944
|
+
let n = null;
|
|
11945
|
+
try {
|
|
11946
|
+
n = openSync(i, "r");
|
|
11947
|
+
readSync(n, t, 0, e, 0);
|
|
11948
|
+
} catch {} finally {
|
|
11949
|
+
if (n !== null) closeSync(n);
|
|
11950
|
+
}
|
|
11951
|
+
const o = t.toString().match(S);
|
|
11952
|
+
if (o !== null) {
|
|
11953
|
+
const e = o[1].trim();
|
|
11954
|
+
const t = e.indexOf(" ");
|
|
11955
|
+
const n = t !== -1 ? e.slice(0, t) : e;
|
|
11956
|
+
const i = t !== -1 ? e.slice(t + 1) : "";
|
|
11957
|
+
const s = basename(n);
|
|
11958
|
+
a = s === "env" ? i || null : s;
|
|
11959
|
+
}
|
|
11960
|
+
}
|
|
11961
|
+
if (a !== null && i !== null) {
|
|
11962
|
+
t = [i, ...t];
|
|
11963
|
+
e = a;
|
|
11964
|
+
i = O(e, n);
|
|
11965
|
+
}
|
|
11966
|
+
if (i === null || !C.test(i)) {
|
|
11967
|
+
const r = i !== null && w.test(i);
|
|
11968
|
+
e = normalize(e);
|
|
11969
|
+
e = e.replace(x, "^$1");
|
|
11970
|
+
t = t.map((e) => {
|
|
11971
|
+
e = e.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
|
|
11972
|
+
e = e.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
11973
|
+
e = `"${e}"`;
|
|
11974
|
+
e = e.replace(x, "^$1");
|
|
11975
|
+
if (r) e = e.replace(x, "^$1");
|
|
11976
|
+
return e;
|
|
11977
|
+
});
|
|
11978
|
+
t = [
|
|
11979
|
+
"/d",
|
|
11980
|
+
"/s",
|
|
11981
|
+
"/c",
|
|
11982
|
+
`"${[e, ...t].join(" ")}"`
|
|
11983
|
+
];
|
|
11984
|
+
e = n.env?.comspec ?? "cmd.exe";
|
|
11985
|
+
n = {
|
|
11986
|
+
...n,
|
|
11987
|
+
windowsVerbatimArguments: true
|
|
11988
|
+
};
|
|
11989
|
+
}
|
|
11990
|
+
return {
|
|
11991
|
+
command: e,
|
|
11992
|
+
args: t,
|
|
11993
|
+
options: n
|
|
11994
|
+
};
|
|
11995
|
+
}
|
|
11996
|
+
/**
|
|
11997
|
+
* Resolves the command to an absolute path if possible.
|
|
11998
|
+
* Handles things like traversing PATH and adding extensions from PATHEXT
|
|
11999
|
+
*/
|
|
12000
|
+
function O(e, t) {
|
|
12001
|
+
const r = (t.cwd ?? cwd()).toString();
|
|
12002
|
+
const a = t.env ?? process.env;
|
|
12003
|
+
const o = _(a).value;
|
|
12004
|
+
const c = e.includes("/") || e.includes("\\") ? [""] : [r, ...o.split(delimiter)];
|
|
12005
|
+
const l = a.PATHEXT ? a.PATHEXT.split(delimiter) : E;
|
|
12006
|
+
if (e.includes(".") && l[0] !== "") l.unshift("");
|
|
12007
|
+
for (const t of c) {
|
|
12008
|
+
const n = resolve(r, t.startsWith("\"") && t.endsWith("\"") && t.length > 1 ? t.slice(1, -1) : t, e);
|
|
12009
|
+
for (const e of l) {
|
|
12010
|
+
const t = n + e;
|
|
12011
|
+
try {
|
|
12012
|
+
if (statSync(t).isFile()) return t;
|
|
12013
|
+
} catch {}
|
|
12014
|
+
}
|
|
12015
|
+
}
|
|
12016
|
+
return null;
|
|
12017
|
+
}
|
|
12018
|
+
function P(e) {
|
|
12019
|
+
const t = new AbortController();
|
|
12020
|
+
for (const n of e) {
|
|
12021
|
+
if (n.aborted) {
|
|
12022
|
+
t.abort();
|
|
12023
|
+
return n;
|
|
12024
|
+
}
|
|
12025
|
+
const e = () => {
|
|
12026
|
+
t.abort(n.reason);
|
|
12027
|
+
};
|
|
12028
|
+
n.addEventListener("abort", e, { signal: t.signal });
|
|
12029
|
+
}
|
|
12030
|
+
return t.signal;
|
|
12031
|
+
}
|
|
12032
|
+
async function F(e) {
|
|
12033
|
+
let t = "";
|
|
12034
|
+
try {
|
|
12035
|
+
for await (const n of e) t += n.toString();
|
|
12036
|
+
} catch {}
|
|
12037
|
+
return t;
|
|
12038
|
+
}
|
|
12039
|
+
var h, g, b, x, S, C, w, T, E, k, j, N, I, R, z;
|
|
12040
|
+
var init_main = __esmMin((() => {
|
|
12041
|
+
h = /^path$/i;
|
|
12042
|
+
g = {
|
|
12043
|
+
key: "PATH",
|
|
12044
|
+
value: ""
|
|
12045
|
+
};
|
|
12046
|
+
b = (e) => {
|
|
12047
|
+
let t = e.length;
|
|
12048
|
+
const n = new PassThrough();
|
|
12049
|
+
const r = () => {
|
|
12050
|
+
if (--t === 0) n.end();
|
|
12051
|
+
};
|
|
12052
|
+
for (const t of e) pipeline(t, n, { end: false }).then(r).catch(r);
|
|
12053
|
+
return n;
|
|
12054
|
+
};
|
|
12055
|
+
x = /([()\][%!^"`<>&|;, *?])/g;
|
|
12056
|
+
S = /^#!\s*(.+)/;
|
|
12057
|
+
C = /\.(?:com|exe)$/i;
|
|
12058
|
+
w = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i;
|
|
12059
|
+
T = process.platform === "win32";
|
|
12060
|
+
E = [
|
|
12061
|
+
".EXE",
|
|
12062
|
+
".CMD",
|
|
12063
|
+
".BAT",
|
|
12064
|
+
".COM"
|
|
12065
|
+
];
|
|
12066
|
+
k = class extends Error {
|
|
12067
|
+
result;
|
|
12068
|
+
output;
|
|
12069
|
+
get exitCode() {
|
|
12070
|
+
if (this.result.exitCode !== null) return this.result.exitCode;
|
|
12071
|
+
}
|
|
12072
|
+
constructor(e, t) {
|
|
12073
|
+
super(`Process exited with non-zero status (${e.exitCode})`);
|
|
12074
|
+
this.result = e;
|
|
12075
|
+
this.output = t;
|
|
12076
|
+
}
|
|
12077
|
+
};
|
|
12078
|
+
j = {
|
|
12079
|
+
timeout: void 0,
|
|
12080
|
+
persist: false
|
|
12081
|
+
};
|
|
12082
|
+
N = { windowsHide: true };
|
|
12083
|
+
I = class {
|
|
12084
|
+
_process;
|
|
12085
|
+
_aborted = false;
|
|
12086
|
+
_options;
|
|
12087
|
+
_command;
|
|
12088
|
+
_args;
|
|
12089
|
+
_resolveClose;
|
|
12090
|
+
_processClosed;
|
|
12091
|
+
_thrownError;
|
|
12092
|
+
get process() {
|
|
12093
|
+
return this._process;
|
|
12094
|
+
}
|
|
12095
|
+
get pid() {
|
|
12096
|
+
return this._process?.pid;
|
|
12097
|
+
}
|
|
12098
|
+
get exitCode() {
|
|
12099
|
+
if (this._process && this._process.exitCode !== null) return this._process.exitCode;
|
|
12100
|
+
}
|
|
12101
|
+
constructor(e, t, n) {
|
|
12102
|
+
this._options = {
|
|
12103
|
+
...j,
|
|
12104
|
+
...n
|
|
12105
|
+
};
|
|
12106
|
+
this._command = e;
|
|
12107
|
+
this._args = t ?? [];
|
|
12108
|
+
this._processClosed = new Promise((e) => {
|
|
12109
|
+
this._resolveClose = e;
|
|
12110
|
+
});
|
|
12111
|
+
}
|
|
12112
|
+
kill(e) {
|
|
12113
|
+
return this._process?.kill(e) === true;
|
|
12114
|
+
}
|
|
12115
|
+
get aborted() {
|
|
12116
|
+
return this._aborted;
|
|
12117
|
+
}
|
|
12118
|
+
get killed() {
|
|
12119
|
+
return this._process?.killed === true;
|
|
12120
|
+
}
|
|
12121
|
+
pipe(e, t, n) {
|
|
12122
|
+
return z(e, t, {
|
|
12123
|
+
...n,
|
|
12124
|
+
stdin: this
|
|
12125
|
+
});
|
|
12126
|
+
}
|
|
12127
|
+
async *[Symbol.asyncIterator]() {
|
|
12128
|
+
const e = this._process;
|
|
12129
|
+
if (!e) return;
|
|
12130
|
+
const t = [];
|
|
12131
|
+
if (this._streamErr) t.push(this._streamErr);
|
|
12132
|
+
if (this._streamOut) t.push(this._streamOut);
|
|
12133
|
+
const n = b(t);
|
|
12134
|
+
const r = u.createInterface({ input: n });
|
|
12135
|
+
for await (const e of r) yield e.toString();
|
|
12136
|
+
await this._processClosed;
|
|
12137
|
+
e.removeAllListeners();
|
|
12138
|
+
if (this._thrownError) throw this._thrownError;
|
|
12139
|
+
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new k(this);
|
|
12140
|
+
}
|
|
12141
|
+
async _waitForOutput() {
|
|
12142
|
+
const e = this._process;
|
|
12143
|
+
if (!e) throw new Error("No process was started");
|
|
12144
|
+
const [t, n] = await Promise.all([this._streamOut ? F(this._streamOut) : "", this._streamErr ? F(this._streamErr) : ""]);
|
|
12145
|
+
await this._processClosed;
|
|
12146
|
+
const { stdin: r } = this._options;
|
|
12147
|
+
if (r && typeof r !== "string") await r;
|
|
12148
|
+
e.removeAllListeners();
|
|
12149
|
+
if (this._thrownError) throw this._thrownError;
|
|
12150
|
+
const i = {
|
|
12151
|
+
stderr: n,
|
|
12152
|
+
stdout: t,
|
|
12153
|
+
exitCode: this.exitCode
|
|
12154
|
+
};
|
|
12155
|
+
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new k(this, i);
|
|
12156
|
+
return i;
|
|
12157
|
+
}
|
|
12158
|
+
then(e, t) {
|
|
12159
|
+
return this._waitForOutput().then(e, t);
|
|
12160
|
+
}
|
|
12161
|
+
_streamOut;
|
|
12162
|
+
_streamErr;
|
|
12163
|
+
spawn() {
|
|
12164
|
+
const t = cwd();
|
|
12165
|
+
const r = this._options;
|
|
12166
|
+
const i = {
|
|
12167
|
+
...N,
|
|
12168
|
+
...r.nodeOptions
|
|
12169
|
+
};
|
|
12170
|
+
const a = [];
|
|
12171
|
+
this._resetState();
|
|
12172
|
+
if (r.timeout !== void 0) a.push(AbortSignal.timeout(r.timeout));
|
|
12173
|
+
if (r.signal !== void 0) a.push(r.signal);
|
|
12174
|
+
if (r.persist === true) i.detached = true;
|
|
12175
|
+
if (a.length > 0) i.signal = P(a);
|
|
12176
|
+
i.env = y(t, i.env, r.nodePath);
|
|
12177
|
+
const o = D(this._command, this._args, i);
|
|
12178
|
+
const s = spawn(o.command, o.args, o.options);
|
|
12179
|
+
if (s.stderr) this._streamErr = s.stderr;
|
|
12180
|
+
if (s.stdout) this._streamOut = s.stdout;
|
|
12181
|
+
this._process = s;
|
|
12182
|
+
s.once("error", this._onError);
|
|
12183
|
+
s.once("close", this._onClose);
|
|
12184
|
+
if (s.stdin) {
|
|
12185
|
+
const { stdin: e } = r;
|
|
12186
|
+
if (typeof e === "string") s.stdin.end(e);
|
|
12187
|
+
else e?.process?.stdout?.pipe(s.stdin);
|
|
12188
|
+
}
|
|
12189
|
+
}
|
|
12190
|
+
_resetState() {
|
|
12191
|
+
this._aborted = false;
|
|
12192
|
+
this._processClosed = new Promise((e) => {
|
|
12193
|
+
this._resolveClose = e;
|
|
12194
|
+
});
|
|
12195
|
+
this._thrownError = void 0;
|
|
12196
|
+
}
|
|
12197
|
+
_onError = (e) => {
|
|
12198
|
+
if (e.name === "AbortError" && (!(e.cause instanceof Error) || e.cause.name !== "TimeoutError")) {
|
|
12199
|
+
this._aborted = true;
|
|
12200
|
+
return;
|
|
12201
|
+
}
|
|
12202
|
+
this._thrownError = e;
|
|
12203
|
+
};
|
|
12204
|
+
_onClose = () => {
|
|
12205
|
+
if (this._resolveClose) this._resolveClose();
|
|
12206
|
+
};
|
|
12207
|
+
};
|
|
12208
|
+
R = (e, t, n) => {
|
|
12209
|
+
const r = new I(e, t, n);
|
|
12210
|
+
r.spawn();
|
|
12211
|
+
return r;
|
|
12212
|
+
};
|
|
12213
|
+
z = R;
|
|
12214
|
+
}));
|
|
12215
|
+
//#endregion
|
|
12216
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/utils.js
|
|
12217
|
+
/**
|
|
12218
|
+
* @param {string} packageManager
|
|
12219
|
+
* @returns {string[]}
|
|
12220
|
+
*/
|
|
12221
|
+
function resolvePackageManagerCommand(packageManager) {
|
|
12222
|
+
if (![
|
|
12223
|
+
"npm",
|
|
12224
|
+
"yarn",
|
|
12225
|
+
"pnpm",
|
|
12226
|
+
"bun"
|
|
12227
|
+
].includes(packageManager)) throw new Error(`Unsupported package manager: ${packageManager}`);
|
|
12228
|
+
const command = [packageManager];
|
|
12229
|
+
if (packageManager === "bun") command.push("pm");
|
|
12230
|
+
return command;
|
|
12231
|
+
}
|
|
12232
|
+
async function getTempPackDir() {
|
|
12233
|
+
const tempDir = os.tmpdir() + PATH.sep;
|
|
12234
|
+
const tempPackDir = await fs$1.mkdtemp(tempDir + "publint-pack-");
|
|
12235
|
+
return await fs$1.realpath(tempPackDir);
|
|
12236
|
+
}
|
|
12237
|
+
var init_utils$2 = __esmMin((() => {}));
|
|
12238
|
+
//#endregion
|
|
12239
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/pack.js
|
|
11690
12240
|
/** @type {import('../index.d.ts').pack} */
|
|
11691
12241
|
async function pack(dir, opts) {
|
|
11692
12242
|
const packageManager = opts?.packageManager ?? "npm";
|
|
11693
|
-
|
|
11694
|
-
|
|
12243
|
+
const command = resolvePackageManagerCommand(packageManager);
|
|
12244
|
+
command.push("pack");
|
|
11695
12245
|
const packDestination = opts?.destination ?? dir;
|
|
11696
12246
|
if (opts?.destination) switch (packageManager) {
|
|
11697
12247
|
case "yarn":
|
|
11698
|
-
command
|
|
12248
|
+
command.push("--out", PATH.join(packDestination, "package.tgz"));
|
|
11699
12249
|
break;
|
|
11700
12250
|
case "bun":
|
|
11701
|
-
command
|
|
12251
|
+
command.push("--destination", packDestination);
|
|
11702
12252
|
break;
|
|
11703
12253
|
default:
|
|
11704
|
-
command
|
|
12254
|
+
command.push("--pack-destination", packDestination);
|
|
11705
12255
|
break;
|
|
11706
12256
|
}
|
|
11707
12257
|
if (opts?.ignoreScripts) switch (packageManager) {
|
|
11708
12258
|
case "pnpm":
|
|
11709
|
-
command
|
|
12259
|
+
command.push("--config.ignore-scripts=true");
|
|
11710
12260
|
break;
|
|
11711
12261
|
case "yarn": break;
|
|
11712
12262
|
default:
|
|
11713
|
-
command
|
|
12263
|
+
command.push("--ignore-scripts");
|
|
11714
12264
|
break;
|
|
11715
12265
|
}
|
|
11716
|
-
const output = await
|
|
12266
|
+
const output = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
11717
12267
|
const tarballFile = await fs$1.readdir(packDestination).then((files) => {
|
|
11718
12268
|
return files.find((file) => file.endsWith(".tgz") && output.stdout.includes(file));
|
|
11719
12269
|
});
|
|
@@ -11721,40 +12271,36 @@ async function pack(dir, opts) {
|
|
|
11721
12271
|
else throw new Error(`Failed to find packed tarball file in ${packDestination}. Command output:\n${JSON.stringify(output, null, 2)}`);
|
|
11722
12272
|
return PATH.join(packDestination, tarballFile);
|
|
11723
12273
|
}
|
|
11724
|
-
var init_pack = __esmMin((() => {
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
const tempDir = os.tmpdir() + PATH.sep;
|
|
11729
|
-
const tempPackDir = await fs$1.mkdtemp(tempDir + "publint-pack-");
|
|
11730
|
-
return await fs$1.realpath(tempPackDir);
|
|
11731
|
-
}
|
|
11732
|
-
var init_utils$2 = __esmMin((() => {}));
|
|
12274
|
+
var init_pack = __esmMin((() => {
|
|
12275
|
+
init_main();
|
|
12276
|
+
init_utils$2();
|
|
12277
|
+
}));
|
|
11733
12278
|
//#endregion
|
|
11734
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
12279
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/pack-as-json.js
|
|
11735
12280
|
/** @type {import('../index.d.ts').packAsJson} */
|
|
11736
12281
|
async function packAsJson(dir, opts) {
|
|
11737
12282
|
const packageManager = opts?.packageManager ?? "npm";
|
|
11738
12283
|
if (packageManager === "bun") throw new Error("`packAsJson` is not supported for `bun`");
|
|
11739
|
-
|
|
12284
|
+
const command = resolvePackageManagerCommand(packageManager);
|
|
12285
|
+
command.push("pack", "--json");
|
|
11740
12286
|
const supportsDryRun = packageManager === "npm" || packageManager === "yarn";
|
|
11741
12287
|
/** @type {string | undefined} */
|
|
11742
12288
|
let packDestination;
|
|
11743
|
-
if (supportsDryRun) command
|
|
12289
|
+
if (supportsDryRun) command.push("--dry-run");
|
|
11744
12290
|
else {
|
|
11745
12291
|
packDestination = await getTempPackDir();
|
|
11746
|
-
command
|
|
12292
|
+
command.push("--pack-destination", packDestination);
|
|
11747
12293
|
}
|
|
11748
12294
|
if (opts?.ignoreScripts) switch (packageManager) {
|
|
11749
12295
|
case "pnpm":
|
|
11750
|
-
command
|
|
12296
|
+
command.push("--config.ignore-scripts=true");
|
|
11751
12297
|
break;
|
|
11752
12298
|
case "yarn": break;
|
|
11753
12299
|
default:
|
|
11754
|
-
command
|
|
12300
|
+
command.push("--ignore-scripts");
|
|
11755
12301
|
break;
|
|
11756
12302
|
}
|
|
11757
|
-
let { stdout } = await
|
|
12303
|
+
let { stdout } = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
11758
12304
|
try {
|
|
11759
12305
|
stdout = stdout.trim();
|
|
11760
12306
|
if (packageManager === "pnpm") stdout = fixPnpmStdout(stdout);
|
|
@@ -11787,10 +12333,11 @@ function fixYarnStdout(stdout) {
|
|
|
11787
12333
|
return fixedStdout;
|
|
11788
12334
|
}
|
|
11789
12335
|
var init_pack_as_json = __esmMin((() => {
|
|
12336
|
+
init_main();
|
|
11790
12337
|
init_utils$2();
|
|
11791
12338
|
}));
|
|
11792
12339
|
//#endregion
|
|
11793
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
12340
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/shared/buffer-stream.js
|
|
11794
12341
|
/**
|
|
11795
12342
|
* @param {ReadableStream<Uint8Array>} readableStream
|
|
11796
12343
|
* @returns {Promise<ArrayBuffer>}
|
|
@@ -11800,7 +12347,7 @@ async function readableStreamToArrayBuffer(readableStream) {
|
|
|
11800
12347
|
}
|
|
11801
12348
|
var init_buffer_stream = __esmMin((() => {}));
|
|
11802
12349
|
//#endregion
|
|
11803
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
12350
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/shared/parse-tar.js
|
|
11804
12351
|
/**
|
|
11805
12352
|
* @param {ArrayBuffer} buffer
|
|
11806
12353
|
* @returns {import('../index.d.ts').TarballFile[]}
|
|
@@ -11844,7 +12391,7 @@ function getFilesRootDir(files) {
|
|
|
11844
12391
|
}
|
|
11845
12392
|
var init_parse_tar = __esmMin((() => {}));
|
|
11846
12393
|
//#endregion
|
|
11847
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
12394
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/unpack.js
|
|
11848
12395
|
/** @type {import('../index.d.ts').unpack} */
|
|
11849
12396
|
async function unpack(tarball) {
|
|
11850
12397
|
/** @type {ArrayBuffer} */
|
|
@@ -11865,7 +12412,7 @@ var init_unpack = __esmMin((() => {
|
|
|
11865
12412
|
init_parse_tar();
|
|
11866
12413
|
}));
|
|
11867
12414
|
//#endregion
|
|
11868
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
12415
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/pack-as-list.js
|
|
11869
12416
|
/** @type {import('../index.d.ts').packAsList} */
|
|
11870
12417
|
async function packAsList(dir, opts) {
|
|
11871
12418
|
const packageManager = opts?.packageManager ?? "npm";
|
|
@@ -11948,7 +12495,7 @@ var init_pack_as_list = __esmMin((() => {
|
|
|
11948
12495
|
init_utils$2();
|
|
11949
12496
|
}));
|
|
11950
12497
|
//#endregion
|
|
11951
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
12498
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/node/get-pack-directory.js
|
|
11952
12499
|
/** @type {import('../index.d.ts').getPackDirectory} */
|
|
11953
12500
|
async function getPackDirectory(dir, packageManager) {
|
|
11954
12501
|
if (packageManager === "pnpm") try {
|
|
@@ -11960,7 +12507,7 @@ async function getPackDirectory(dir, packageManager) {
|
|
|
11960
12507
|
}
|
|
11961
12508
|
var init_get_pack_directory = __esmMin((() => {}));
|
|
11962
12509
|
//#endregion
|
|
11963
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
12510
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.5/node_modules/@publint/pack/src/index-node.js
|
|
11964
12511
|
var init_index_node$1 = __esmMin((() => {
|
|
11965
12512
|
init_pack();
|
|
11966
12513
|
init_pack_as_list();
|
|
@@ -13368,7 +13915,7 @@ function createTarballVfs(files) {
|
|
|
13368
13915
|
}
|
|
13369
13916
|
var init_vfs_tarball = __esmMin((() => {}));
|
|
13370
13917
|
//#endregion
|
|
13371
|
-
//#region ../../node_modules/.pnpm/package-manager-detector@1.
|
|
13918
|
+
//#region ../../node_modules/.pnpm/package-manager-detector@1.7.0/node_modules/package-manager-detector/dist/constants.mjs
|
|
13372
13919
|
var AGENTS, LOCKS, INSTALL_METADATA;
|
|
13373
13920
|
var init_constants = __esmMin((() => {
|
|
13374
13921
|
AGENTS = [
|
|
@@ -13378,9 +13925,13 @@ var init_constants = __esmMin((() => {
|
|
|
13378
13925
|
"pnpm",
|
|
13379
13926
|
"pnpm@6",
|
|
13380
13927
|
"bun",
|
|
13381
|
-
"deno"
|
|
13928
|
+
"deno",
|
|
13929
|
+
"nub",
|
|
13930
|
+
"aube"
|
|
13382
13931
|
];
|
|
13383
13932
|
LOCKS = {
|
|
13933
|
+
"aube-lock.yaml": "aube",
|
|
13934
|
+
"aube-workspace.yaml": "aube",
|
|
13384
13935
|
"bun.lock": "bun",
|
|
13385
13936
|
"bun.lockb": "bun",
|
|
13386
13937
|
"deno.lock": "deno",
|
|
@@ -13391,6 +13942,7 @@ var init_constants = __esmMin((() => {
|
|
|
13391
13942
|
"npm-shrinkwrap.json": "npm"
|
|
13392
13943
|
};
|
|
13393
13944
|
INSTALL_METADATA = {
|
|
13945
|
+
"node_modules/.aube/": "aube",
|
|
13394
13946
|
"node_modules/.deno/": "deno",
|
|
13395
13947
|
"node_modules/.pnpm/": "pnpm",
|
|
13396
13948
|
"node_modules/.yarn-state.yml": "yarn",
|
|
@@ -13403,7 +13955,7 @@ var init_constants = __esmMin((() => {
|
|
|
13403
13955
|
};
|
|
13404
13956
|
}));
|
|
13405
13957
|
//#endregion
|
|
13406
|
-
//#region ../../node_modules/.pnpm/package-manager-detector@1.
|
|
13958
|
+
//#region ../../node_modules/.pnpm/package-manager-detector@1.7.0/node_modules/package-manager-detector/dist/detect.mjs
|
|
13407
13959
|
var detect_exports = /* @__PURE__ */ __exportAll({
|
|
13408
13960
|
detect: () => detect,
|
|
13409
13961
|
getUserAgent: () => getUserAgent
|