@sisense/sdk-ui 1.29.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +51 -51
- package/dist/ai.js +1047 -1005
- package/dist/analytics-composer.cjs +20 -20
- package/dist/analytics-composer.js +180 -182
- package/dist/{derive-chart-family-Cy3hlluo.js → derive-chart-family-B2J2kMs6.js} +1767 -1743
- package/dist/{derive-chart-family-DWCXp57c.cjs → derive-chart-family-Bmg9hQGc.cjs} +21 -21
- package/dist/index.cjs +83 -85
- package/dist/index.js +6867 -6673
- package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +2 -1
- package/dist/packages/sdk-ui/src/ai/api/chat-api-provider.d.ts +2 -1
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +5 -3
- package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +6 -1
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +3 -2
- package/dist/packages/sdk-ui/src/ai/chat-box.d.ts +3 -1
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +7 -1
- package/dist/packages/sdk-ui/src/ai/chat-id-storage-provider.d.ts +12 -0
- package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +4 -3
- package/dist/packages/sdk-ui/src/ai/use-get-chat.d.ts +6 -0
- package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +4 -2
- package/dist/packages/sdk-ui/src/chart-data-options/coloring/range-coloring.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +5 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +3 -4
- package/dist/packages/sdk-ui/src/common/components/radio.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/use-debounced-value.d.ts +5 -0
- package/dist/packages/sdk-ui/src/const.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +4 -4
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +4 -5
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/types.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +3 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +2 -3
- package/dist/packages/sdk-ui/src/filters/components/icons/pencil-icon.d.ts +3 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +4 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-builder.d.ts +7 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +4 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +8 -0
- package/dist/packages/sdk-ui/src/types.d.ts +10 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +1 -0
- package/dist/{useQuery-CdtycPOg.js → useQuery-1ixYW8qO.js} +15539 -15521
- package/dist/{useQuery-CRu7WcYd.cjs → useQuery-Ctzmd-JM.cjs} +154 -154
- package/dist/{widget-composer-DyY3yi_b.cjs → widget-composer-CdxKUwZf.cjs} +13 -5
- package/dist/{widget-composer-G4mPX-JO.js → widget-composer-Ch2kYMok.js} +66 -58
- package/package.json +7 -7
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var xs = Object.defineProperty, zs = Object.defineProperties;
|
|
2
2
|
var Xs = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var Me = Object.getOwnPropertySymbols;
|
|
4
4
|
var Dt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var rt = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s);
|
|
6
|
+
var ot = (s, e, t) => e in s ? xs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
|
|
7
7
|
for (var t in e || (e = {}))
|
|
8
|
-
Dt.call(e, t) &&
|
|
9
|
-
if (
|
|
10
|
-
for (var t of
|
|
11
|
-
Kt.call(e, t) &&
|
|
8
|
+
Dt.call(e, t) && ot(s, t, e[t]);
|
|
9
|
+
if (Me)
|
|
10
|
+
for (var t of Me(e))
|
|
11
|
+
Kt.call(e, t) && ot(s, t, e[t]);
|
|
12
12
|
return s;
|
|
13
13
|
}, G = (s, e) => zs(s, Xs(e));
|
|
14
14
|
var qt = (s, e) => {
|
|
15
15
|
var t = {};
|
|
16
16
|
for (var n in s)
|
|
17
17
|
Dt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
|
|
18
|
-
if (s != null &&
|
|
19
|
-
for (var n of
|
|
18
|
+
if (s != null && Me)
|
|
19
|
+
for (var n of Me(s))
|
|
20
20
|
e.indexOf(n) < 0 && Kt.call(s, n) && (t[n] = s[n]);
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
var
|
|
24
|
-
var
|
|
23
|
+
var lt = (s, e, t) => (ot(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
24
|
+
var at = (s, e, t) => new Promise((n, i) => {
|
|
25
25
|
var r = (a) => {
|
|
26
26
|
try {
|
|
27
27
|
l(t.next(a));
|
|
@@ -40,8 +40,8 @@ var lt = (s, e, t) => new Promise((n, i) => {
|
|
|
40
40
|
this[0] = s, this[1] = e;
|
|
41
41
|
};
|
|
42
42
|
var d = (s) => {
|
|
43
|
-
var e = s[
|
|
44
|
-
return e == null ? (e = s[
|
|
43
|
+
var e = s[rt("asyncIterator")], t = !1, n, i = {};
|
|
44
|
+
return e == null ? (e = s[rt("iterator")](), n = (r) => i[r] = (o) => e[r](o)) : (e = e.call(s), n = (r) => i[r] = (o) => {
|
|
45
45
|
if (t) {
|
|
46
46
|
if (t = !1, r === "throw")
|
|
47
47
|
throw o;
|
|
@@ -56,13 +56,13 @@ var d = (s) => {
|
|
|
56
56
|
l(a);
|
|
57
57
|
}), 1)
|
|
58
58
|
};
|
|
59
|
-
}), i[
|
|
59
|
+
}), i[rt("iterator")] = () => i, n("next"), "throw" in e ? n("throw") : i.throw = (r) => {
|
|
60
60
|
throw r;
|
|
61
61
|
}, "return" in e && n("return"), i;
|
|
62
62
|
};
|
|
63
|
-
import { s as en, E as Ft, c as tn, p as sn, v as nn, a as es, b as
|
|
64
|
-
import { h as ji, j as Pi, i as Di, w as Ki } from "./widget-composer-
|
|
65
|
-
import {
|
|
63
|
+
import { s as en, E as Ft, c as tn, p as sn, v as nn, a as es, b as Te, d as rn, e as ts, g as ss, f as ns } from "./widget-composer-Ch2kYMok.js";
|
|
64
|
+
import { h as ji, j as Pi, i as Di, w as Ki } from "./widget-composer-Ch2kYMok.js";
|
|
65
|
+
import { ae as on, aW as Rt, cf as ln, cJ as an } from "./derive-chart-family-B2J2kMs6.js";
|
|
66
66
|
const Nt = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), W = Symbol.for("yaml.map"), is = Symbol.for("yaml.pair"), Y = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ne = (s) => !!s && typeof s == "object" && s[F] === Nt, ye = (s) => !!s && typeof s == "object" && s[F] === yt, ge = (s) => !!s && typeof s == "object" && s[F] === W, E = (s) => !!s && typeof s == "object" && s[F] === is, A = (s) => !!s && typeof s == "object" && s[F] === Y, be = (s) => !!s && typeof s == "object" && s[F] === me;
|
|
67
67
|
function $(s) {
|
|
68
68
|
if (s && typeof s == "object")
|
|
@@ -123,17 +123,17 @@ function le(s, e, t, n) {
|
|
|
123
123
|
}
|
|
124
124
|
return i;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return
|
|
126
|
+
function Qe(s, e) {
|
|
127
|
+
return at(this, null, function* () {
|
|
128
128
|
const t = os(e);
|
|
129
129
|
ye(s) ? (yield ae(null, s.contents, t, Object.freeze([s]))) === J && (s.contents = null) : yield ae(null, s, t, Object.freeze([]));
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
Qe.BREAK = D;
|
|
133
|
+
Qe.SKIP = rs;
|
|
134
|
+
Qe.REMOVE = J;
|
|
135
135
|
function ae(s, e, t, n) {
|
|
136
|
-
return
|
|
136
|
+
return at(this, null, function* () {
|
|
137
137
|
const i = yield ls(s, e, t, n);
|
|
138
138
|
if (M(i) || E(i))
|
|
139
139
|
return as(s, n, i), ae(s, i, t, n);
|
|
@@ -442,7 +442,7 @@ class Ot {
|
|
|
442
442
|
return typeof r == "function" ? ce(r, { "": l }, "", l) : l;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
class
|
|
445
|
+
class Ye extends Ot {
|
|
446
446
|
constructor(e) {
|
|
447
447
|
super(Nt), this.source = e, Object.defineProperty(this, "tag", {
|
|
448
448
|
set() {
|
|
@@ -477,7 +477,7 @@ class Qe extends Ot {
|
|
|
477
477
|
const a = "This should not happen: Alias anchor was not resolved?";
|
|
478
478
|
throw new ReferenceError(a);
|
|
479
479
|
}
|
|
480
|
-
if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount =
|
|
480
|
+
if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = De(i, o, n)), l.count * l.aliasCount > r)) {
|
|
481
481
|
const a = "Excessive alias count indicates a resource exhaustion attack";
|
|
482
482
|
throw new ReferenceError(a);
|
|
483
483
|
}
|
|
@@ -496,19 +496,19 @@ class Qe extends Ot {
|
|
|
496
496
|
return i;
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function De(s, e, t) {
|
|
500
500
|
if (ne(e)) {
|
|
501
501
|
const n = e.resolve(s), i = t && n && t.get(n);
|
|
502
502
|
return i ? i.count * i.aliasCount : 0;
|
|
503
503
|
} else if ($(e)) {
|
|
504
504
|
let n = 0;
|
|
505
505
|
for (const i of e.items) {
|
|
506
|
-
const r =
|
|
506
|
+
const r = De(s, i, t);
|
|
507
507
|
r > n && (n = r);
|
|
508
508
|
}
|
|
509
509
|
return n;
|
|
510
510
|
} else if (E(e)) {
|
|
511
|
-
const n =
|
|
511
|
+
const n = De(s, e.key, t), i = De(s, e.value, t);
|
|
512
512
|
return Math.max(n, i);
|
|
513
513
|
}
|
|
514
514
|
return 1;
|
|
@@ -544,7 +544,7 @@ function pn(s, e, t) {
|
|
|
544
544
|
return ((r = i.identify) == null ? void 0 : r.call(i, s)) && !i.format;
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function Ae(s, e, t) {
|
|
548
548
|
var f, p, m;
|
|
549
549
|
if (ye(s) && (s = s.contents), M(s))
|
|
550
550
|
return s;
|
|
@@ -557,7 +557,7 @@ function Ie(s, e, t) {
|
|
|
557
557
|
let a;
|
|
558
558
|
if (n && s && typeof s == "object") {
|
|
559
559
|
if (a = l.get(s), a)
|
|
560
|
-
return a.anchor || (a.anchor = i(s)), new
|
|
560
|
+
return a.anchor || (a.anchor = i(s)), new Ye(a.anchor);
|
|
561
561
|
a = { anchor: null, node: null }, l.set(s, a);
|
|
562
562
|
}
|
|
563
563
|
e != null && e.startsWith("!!") && (e = dn + e.slice(2));
|
|
@@ -573,7 +573,7 @@ function Ie(s, e, t) {
|
|
|
573
573
|
const h = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((m = c == null ? void 0 : c.nodeClass) == null ? void 0 : m.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new N(s);
|
|
574
574
|
return e ? h.tag = e : c.default || (h.tag = c.tag), a && (a.node = h), h;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Re(s, e, t) {
|
|
577
577
|
let n = t;
|
|
578
578
|
for (let i = e.length - 1; i >= 0; --i) {
|
|
579
579
|
const r = e[i];
|
|
@@ -583,7 +583,7 @@ function Fe(s, e, t) {
|
|
|
583
583
|
} else
|
|
584
584
|
n = /* @__PURE__ */ new Map([[r, n]]);
|
|
585
585
|
}
|
|
586
|
-
return
|
|
586
|
+
return Ae(n, void 0, {
|
|
587
587
|
aliasDuplicateObjects: !1,
|
|
588
588
|
keepUndefined: !1,
|
|
589
589
|
onAnchor: () => {
|
|
@@ -625,7 +625,7 @@ class ds extends Ot {
|
|
|
625
625
|
if ($(r))
|
|
626
626
|
r.addIn(i, t);
|
|
627
627
|
else if (r === void 0 && this.schema)
|
|
628
|
-
this.set(n,
|
|
628
|
+
this.set(n, Re(this.schema, i, t));
|
|
629
629
|
else
|
|
630
630
|
throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
|
|
631
631
|
}
|
|
@@ -683,7 +683,7 @@ class ds extends Ot {
|
|
|
683
683
|
if ($(r))
|
|
684
684
|
r.setIn(i, t);
|
|
685
685
|
else if (r === void 0 && this.schema)
|
|
686
|
-
this.set(n,
|
|
686
|
+
this.set(n, Re(this.schema, i, t));
|
|
687
687
|
else
|
|
688
688
|
throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
|
|
689
689
|
}
|
|
@@ -696,8 +696,8 @@ function Q(s, e) {
|
|
|
696
696
|
const Z = (s, e, t) => s.endsWith(`
|
|
697
697
|
`) ? Q(t, e) : t.includes(`
|
|
698
698
|
`) ? `
|
|
699
|
-
` + Q(t, e) : (s.endsWith(" ") ? "" : " ") + t, ps = "flow", gt = "block",
|
|
700
|
-
function
|
|
699
|
+
` + Q(t, e) : (s.endsWith(" ") ? "" : " ") + t, ps = "flow", gt = "block", Ke = "quoted";
|
|
700
|
+
function Ge(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
|
|
701
701
|
if (!i || i < 0)
|
|
702
702
|
return s;
|
|
703
703
|
i < r && (r = 0);
|
|
@@ -710,7 +710,7 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
710
710
|
let p, m, y = !1, u = -1, g = -1, b = -1;
|
|
711
711
|
t === gt && (u = Ut(s, u, e.length), u !== -1 && (f = u + a));
|
|
712
712
|
for (let I; I = s[u += 1]; ) {
|
|
713
|
-
if (t ===
|
|
713
|
+
if (t === Ke && I === "\\") {
|
|
714
714
|
switch (g = u, s[u + 1]) {
|
|
715
715
|
case "x":
|
|
716
716
|
u += 3;
|
|
@@ -739,7 +739,7 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
739
739
|
if (u >= f)
|
|
740
740
|
if (p)
|
|
741
741
|
c.push(p), f = p + a, p = void 0;
|
|
742
|
-
else if (t ===
|
|
742
|
+
else if (t === Ke) {
|
|
743
743
|
for (; m === " " || m === " "; )
|
|
744
744
|
m = I, I = s[u += 1], y = !0;
|
|
745
745
|
const k = u > b + 1 ? u - 2 : g - 1;
|
|
@@ -758,7 +758,7 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
758
758
|
for (let I = 0; I < c.length; ++I) {
|
|
759
759
|
const k = c[I], O = c[I + 1] || s.length;
|
|
760
760
|
k === 0 ? S = `
|
|
761
|
-
${e}${s.slice(0, O)}` : (t ===
|
|
761
|
+
${e}${s.slice(0, O)}` : (t === Ke && h[k] && (S += `${s[k]}\\`), S += `
|
|
762
762
|
${e}${s.slice(k + 1, O)}`);
|
|
763
763
|
}
|
|
764
764
|
return S;
|
|
@@ -777,11 +777,11 @@ function Ut(s, e, t) {
|
|
|
777
777
|
}
|
|
778
778
|
return n;
|
|
779
779
|
}
|
|
780
|
-
const
|
|
780
|
+
const We = (s, e) => ({
|
|
781
781
|
indentAtStart: e ? s.indent.length : s.indentAtStart,
|
|
782
782
|
lineWidth: s.options.lineWidth,
|
|
783
783
|
minContentWidth: s.options.minContentWidth
|
|
784
|
-
}),
|
|
784
|
+
}), He = (s) => /^(%|---|\.\.\.)/m.test(s);
|
|
785
785
|
function yn(s, e, t) {
|
|
786
786
|
if (!e || e < 0)
|
|
787
787
|
return !1;
|
|
@@ -798,11 +798,11 @@ function yn(s, e, t) {
|
|
|
798
798
|
}
|
|
799
799
|
return !0;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function Ie(s, e) {
|
|
802
802
|
const t = JSON.stringify(s);
|
|
803
803
|
if (e.options.doubleQuotedAsJSON)
|
|
804
804
|
return t;
|
|
805
|
-
const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (
|
|
805
|
+
const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (He(s) ? " " : "");
|
|
806
806
|
let o = "", l = 0;
|
|
807
807
|
for (let a = 0, c = t[a]; c; c = t[++a])
|
|
808
808
|
if (c === " " && t[a + 1] === "\\" && t[a + 2] === "n" && (o += t.slice(l, a) + "\\ ", a += 1, l = a, c = "\\"), c === "\\")
|
|
@@ -857,24 +857,24 @@ function Te(s, e) {
|
|
|
857
857
|
default:
|
|
858
858
|
a += 1;
|
|
859
859
|
}
|
|
860
|
-
return o = l ? o + t.slice(l) : t, n ? o :
|
|
860
|
+
return o = l ? o + t.slice(l) : t, n ? o : Ge(o, r, Ke, We(e, !1));
|
|
861
861
|
}
|
|
862
862
|
function bt(s, e) {
|
|
863
863
|
if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
|
|
864
864
|
`) || /[ \t]\n|\n[ \t]/.test(s))
|
|
865
|
-
return
|
|
866
|
-
const t = e.indent || (
|
|
865
|
+
return Ie(s, e);
|
|
866
|
+
const t = e.indent || (He(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
867
867
|
${t}`) + "'";
|
|
868
|
-
return e.implicitKey ? n :
|
|
868
|
+
return e.implicitKey ? n : Ge(n, t, ps, We(e, !1));
|
|
869
869
|
}
|
|
870
870
|
function fe(s, e) {
|
|
871
871
|
const { singleQuote: t } = e.options;
|
|
872
872
|
let n;
|
|
873
873
|
if (t === !1)
|
|
874
|
-
n =
|
|
874
|
+
n = Ie;
|
|
875
875
|
else {
|
|
876
876
|
const i = s.includes('"'), r = s.includes("'");
|
|
877
|
-
i && !r ? n = bt : r && !i ? n =
|
|
877
|
+
i && !r ? n = bt : r && !i ? n = Ie : n = t ? bt : Ie;
|
|
878
878
|
}
|
|
879
879
|
return n(s, e);
|
|
880
880
|
}
|
|
@@ -887,11 +887,11 @@ try {
|
|
|
887
887
|
} catch (s) {
|
|
888
888
|
wt = /\n+(?!\n|$)/g;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function qe({ comment: s, type: e, value: t }, n, i, r) {
|
|
891
891
|
const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
|
|
892
892
|
if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
|
|
893
893
|
return fe(t, n);
|
|
894
|
-
const c = n.indent || (n.forceBlockIndent ||
|
|
894
|
+
const c = n.indent || (n.forceBlockIndent || He(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === N.BLOCK_FOLDED ? !1 : e === N.BLOCK_LITERAL ? !0 : !yn(t, a, c.length);
|
|
895
895
|
if (!t)
|
|
896
896
|
return h ? `|
|
|
897
897
|
` : `>
|
|
@@ -927,7 +927,7 @@ function Ke({ comment: s, type: e, value: t }, n, i, r) {
|
|
|
927
927
|
${c}${S}${t}${m}`;
|
|
928
928
|
t = t.replace(/\n+/g, `
|
|
929
929
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
|
|
930
|
-
const O =
|
|
930
|
+
const O = Ge(`${S}${t}${m}`, c, gt, We(n, !0));
|
|
931
931
|
return `${k}
|
|
932
932
|
${c}${O}`;
|
|
933
933
|
}
|
|
@@ -938,13 +938,13 @@ function gn(s, e, t, n) {
|
|
|
938
938
|
return fe(r, e);
|
|
939
939
|
if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
|
|
940
940
|
return l || h || !r.includes(`
|
|
941
|
-
`) ? fe(r, e) :
|
|
941
|
+
`) ? fe(r, e) : qe(s, e, t, n);
|
|
942
942
|
if (!l && !h && i !== N.PLAIN && r.includes(`
|
|
943
943
|
`))
|
|
944
|
-
return
|
|
945
|
-
if (
|
|
944
|
+
return qe(s, e, t, n);
|
|
945
|
+
if (He(r)) {
|
|
946
946
|
if (a === "")
|
|
947
|
-
return e.forceBlockIndent = !0,
|
|
947
|
+
return e.forceBlockIndent = !0, qe(s, e, t, n);
|
|
948
948
|
if (l && a === c)
|
|
949
949
|
return fe(r, e);
|
|
950
950
|
}
|
|
@@ -958,9 +958,9 @@ ${a}`);
|
|
|
958
958
|
if (y.some(p) || m != null && m.some(p))
|
|
959
959
|
return fe(r, e);
|
|
960
960
|
}
|
|
961
|
-
return l ? f :
|
|
961
|
+
return l ? f : Ge(f, a, ps, We(e, !1));
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function $e(s, e, t, n) {
|
|
964
964
|
const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
|
|
965
965
|
let { type: l } = s;
|
|
966
966
|
l !== N.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = N.QUOTE_DOUBLE);
|
|
@@ -968,9 +968,9 @@ function Le(s, e, t, n) {
|
|
|
968
968
|
switch (h) {
|
|
969
969
|
case N.BLOCK_FOLDED:
|
|
970
970
|
case N.BLOCK_LITERAL:
|
|
971
|
-
return i || r ? fe(o.value, e) :
|
|
971
|
+
return i || r ? fe(o.value, e) : qe(o, e, t, n);
|
|
972
972
|
case N.QUOTE_DOUBLE:
|
|
973
|
-
return
|
|
973
|
+
return Ie(o.value, e);
|
|
974
974
|
case N.QUOTE_SINGLE:
|
|
975
975
|
return bt(o.value, e);
|
|
976
976
|
case N.PLAIN:
|
|
@@ -1075,7 +1075,7 @@ function de(s, e, t, n) {
|
|
|
1075
1075
|
i || (i = bn(e.doc.schema.tags, r));
|
|
1076
1076
|
const o = wn(r, i, e);
|
|
1077
1077
|
o.length > 0 && (e.indentAtStart = ((c = e.indentAtStart) != null ? c : 0) + o.length + 1);
|
|
1078
|
-
const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : A(r) ?
|
|
1078
|
+
const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : A(r) ? $e(r, e, t, n) : r.toString(e, t, n);
|
|
1079
1079
|
return o ? A(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
|
|
1080
1080
|
${e.indent}${l}` : l;
|
|
1081
1081
|
}
|
|
@@ -1212,7 +1212,7 @@ function Nn(s, e, t) {
|
|
|
1212
1212
|
return JSON.stringify(e);
|
|
1213
1213
|
}
|
|
1214
1214
|
function Tt(s, e, t) {
|
|
1215
|
-
const n =
|
|
1215
|
+
const n = Ae(s, void 0, t), i = Ae(e, void 0, t);
|
|
1216
1216
|
return new j(n, i);
|
|
1217
1217
|
}
|
|
1218
1218
|
class j {
|
|
@@ -1243,10 +1243,10 @@ function On({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
|
|
|
1243
1243
|
const u = e[y];
|
|
1244
1244
|
let g = null;
|
|
1245
1245
|
if (M(u))
|
|
1246
|
-
!f && u.spaceBefore && p.push(""),
|
|
1246
|
+
!f && u.spaceBefore && p.push(""), Ue(t, p, u.commentBefore, f), u.comment && (g = u.comment);
|
|
1247
1247
|
else if (E(u)) {
|
|
1248
1248
|
const S = M(u.key) ? u.key : null;
|
|
1249
|
-
S && (!f && S.spaceBefore && p.push(""),
|
|
1249
|
+
S && (!f && S.spaceBefore && p.push(""), Ue(t, p, S.commentBefore, f));
|
|
1250
1250
|
}
|
|
1251
1251
|
f = !1;
|
|
1252
1252
|
let b = de(u, h, () => g = null, () => f = !0);
|
|
@@ -1281,10 +1281,10 @@ function Tn({ items: s }, e, { flowChars: t, itemIndent: n }) {
|
|
|
1281
1281
|
const u = s[y];
|
|
1282
1282
|
let g = null;
|
|
1283
1283
|
if (M(u))
|
|
1284
|
-
u.spaceBefore && f.push(""),
|
|
1284
|
+
u.spaceBefore && f.push(""), Ue(e, f, u.commentBefore, !1), u.comment && (g = u.comment);
|
|
1285
1285
|
else if (E(u)) {
|
|
1286
1286
|
const S = M(u.key) ? u.key : null;
|
|
1287
|
-
S && (S.spaceBefore && f.push(""),
|
|
1287
|
+
S && (S.spaceBefore && f.push(""), Ue(e, f, S.commentBefore, !1), S.comment && (c = !0));
|
|
1288
1288
|
const I = M(u.value) ? u.value : null;
|
|
1289
1289
|
I ? (I.comment && (g = I.comment), I.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (g = S.comment);
|
|
1290
1290
|
}
|
|
@@ -1311,7 +1311,7 @@ ${i}${m}`;
|
|
|
1311
1311
|
} else
|
|
1312
1312
|
return `${p}${o}${f.join(" ")}${o}${m}`;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function Ue({ indent: s, options: { commentString: e } }, t, n, i) {
|
|
1315
1315
|
if (n && i && (n = n.replace(/^\n+/, "")), n) {
|
|
1316
1316
|
const r = Q(e(n), s);
|
|
1317
1317
|
t.push(r.trimStart());
|
|
@@ -1442,11 +1442,11 @@ class x extends ds {
|
|
|
1442
1442
|
* @returns `true` if the item was found and removed.
|
|
1443
1443
|
*/
|
|
1444
1444
|
delete(e) {
|
|
1445
|
-
const t =
|
|
1445
|
+
const t = ve(e);
|
|
1446
1446
|
return typeof t != "number" ? !1 : this.items.splice(t, 1).length > 0;
|
|
1447
1447
|
}
|
|
1448
1448
|
get(e, t) {
|
|
1449
|
-
const n =
|
|
1449
|
+
const n = ve(e);
|
|
1450
1450
|
if (typeof n != "number")
|
|
1451
1451
|
return;
|
|
1452
1452
|
const i = this.items[n];
|
|
@@ -1459,7 +1459,7 @@ class x extends ds {
|
|
|
1459
1459
|
* It may be wrapped in a `Scalar`.
|
|
1460
1460
|
*/
|
|
1461
1461
|
has(e) {
|
|
1462
|
-
const t =
|
|
1462
|
+
const t = ve(e);
|
|
1463
1463
|
return typeof t == "number" && t < this.items.length;
|
|
1464
1464
|
}
|
|
1465
1465
|
/**
|
|
@@ -1470,7 +1470,7 @@ class x extends ds {
|
|
|
1470
1470
|
* It may be wrapped in a `Scalar`.
|
|
1471
1471
|
*/
|
|
1472
1472
|
set(e, t) {
|
|
1473
|
-
const n =
|
|
1473
|
+
const n = ve(e);
|
|
1474
1474
|
if (typeof n != "number")
|
|
1475
1475
|
throw new Error(`Expected a valid index, not ${e}.`);
|
|
1476
1476
|
const i = this.items[n];
|
|
@@ -1502,13 +1502,13 @@ class x extends ds {
|
|
|
1502
1502
|
const a = t instanceof Set ? l : String(o++);
|
|
1503
1503
|
l = i.call(t, a, l);
|
|
1504
1504
|
}
|
|
1505
|
-
r.items.push(
|
|
1505
|
+
r.items.push(Ae(l, void 0, n));
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
return r;
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function ve(s) {
|
|
1512
1512
|
let e = A(s) ? s.value : s;
|
|
1513
1513
|
return e && typeof e == "string" && (e = Number(e)), typeof e == "number" && Number.isInteger(e) && e >= 0 ? e : null;
|
|
1514
1514
|
}
|
|
@@ -1521,22 +1521,22 @@ const Se = {
|
|
|
1521
1521
|
return be(s) || e("Expected a sequence for this tag"), s;
|
|
1522
1522
|
},
|
|
1523
1523
|
createNode: (s, e, t) => x.from(s, e, t)
|
|
1524
|
-
},
|
|
1524
|
+
}, xe = {
|
|
1525
1525
|
identify: (s) => typeof s == "string",
|
|
1526
1526
|
default: !0,
|
|
1527
1527
|
tag: "tag:yaml.org,2002:str",
|
|
1528
1528
|
resolve: (s) => s,
|
|
1529
1529
|
stringify(s, e, t, n) {
|
|
1530
|
-
return e = Object.assign({ actualString: !0 }, e),
|
|
1530
|
+
return e = Object.assign({ actualString: !0 }, e), $e(s, e, t, n);
|
|
1531
1531
|
}
|
|
1532
|
-
},
|
|
1532
|
+
}, ze = {
|
|
1533
1533
|
identify: (s) => s == null,
|
|
1534
1534
|
createNode: () => new N(null),
|
|
1535
1535
|
default: !0,
|
|
1536
1536
|
tag: "tag:yaml.org,2002:null",
|
|
1537
1537
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
1538
1538
|
resolve: () => new N(null),
|
|
1539
|
-
stringify: ({ source: s }, e) => typeof s == "string" &&
|
|
1539
|
+
stringify: ({ source: s }, e) => typeof s == "string" && ze.test.test(s) ? s : e.options.nullStr
|
|
1540
1540
|
}, It = {
|
|
1541
1541
|
identify: (s) => typeof s == "boolean",
|
|
1542
1542
|
default: !0,
|
|
@@ -1596,13 +1596,13 @@ const ws = {
|
|
|
1596
1596
|
return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
|
|
1597
1597
|
},
|
|
1598
1598
|
stringify: V
|
|
1599
|
-
},
|
|
1599
|
+
}, Xe = (s) => typeof s == "bigint" || Number.isInteger(s), At = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
|
|
1600
1600
|
function Ns(s, e, t) {
|
|
1601
1601
|
const { value: n } = s;
|
|
1602
|
-
return
|
|
1602
|
+
return Xe(n) && n >= 0 ? t + n.toString(e) : V(s);
|
|
1603
1603
|
}
|
|
1604
1604
|
const Os = {
|
|
1605
|
-
identify: (s) =>
|
|
1605
|
+
identify: (s) => Xe(s) && s >= 0,
|
|
1606
1606
|
default: !0,
|
|
1607
1607
|
tag: "tag:yaml.org,2002:int",
|
|
1608
1608
|
format: "OCT",
|
|
@@ -1610,14 +1610,14 @@ const Os = {
|
|
|
1610
1610
|
resolve: (s, e, t) => At(s, 2, 8, t),
|
|
1611
1611
|
stringify: (s) => Ns(s, 8, "0o")
|
|
1612
1612
|
}, Ts = {
|
|
1613
|
-
identify:
|
|
1613
|
+
identify: Xe,
|
|
1614
1614
|
default: !0,
|
|
1615
1615
|
tag: "tag:yaml.org,2002:int",
|
|
1616
1616
|
test: /^[-+]?[0-9]+$/,
|
|
1617
1617
|
resolve: (s, e, t) => At(s, 0, 10, t),
|
|
1618
1618
|
stringify: V
|
|
1619
1619
|
}, Is = {
|
|
1620
|
-
identify: (s) =>
|
|
1620
|
+
identify: (s) => Xe(s) && s >= 0,
|
|
1621
1621
|
default: !0,
|
|
1622
1622
|
tag: "tag:yaml.org,2002:int",
|
|
1623
1623
|
format: "HEX",
|
|
@@ -1627,8 +1627,8 @@ const Os = {
|
|
|
1627
1627
|
}, In = [
|
|
1628
1628
|
we,
|
|
1629
1629
|
Se,
|
|
1630
|
-
He,
|
|
1631
1630
|
xe,
|
|
1631
|
+
ze,
|
|
1632
1632
|
It,
|
|
1633
1633
|
Os,
|
|
1634
1634
|
Ts,
|
|
@@ -1640,13 +1640,13 @@ const Os = {
|
|
|
1640
1640
|
function Jt(s) {
|
|
1641
1641
|
return typeof s == "bigint" || Number.isInteger(s);
|
|
1642
1642
|
}
|
|
1643
|
-
const
|
|
1643
|
+
const Be = ({ value: s }) => JSON.stringify(s), An = [
|
|
1644
1644
|
{
|
|
1645
1645
|
identify: (s) => typeof s == "string",
|
|
1646
1646
|
default: !0,
|
|
1647
1647
|
tag: "tag:yaml.org,2002:str",
|
|
1648
1648
|
resolve: (s) => s,
|
|
1649
|
-
stringify:
|
|
1649
|
+
stringify: Be
|
|
1650
1650
|
},
|
|
1651
1651
|
{
|
|
1652
1652
|
identify: (s) => s == null,
|
|
@@ -1655,7 +1655,7 @@ const ve = ({ value: s }) => JSON.stringify(s), An = [
|
|
|
1655
1655
|
tag: "tag:yaml.org,2002:null",
|
|
1656
1656
|
test: /^null$/,
|
|
1657
1657
|
resolve: () => null,
|
|
1658
|
-
stringify:
|
|
1658
|
+
stringify: Be
|
|
1659
1659
|
},
|
|
1660
1660
|
{
|
|
1661
1661
|
identify: (s) => typeof s == "boolean",
|
|
@@ -1663,7 +1663,7 @@ const ve = ({ value: s }) => JSON.stringify(s), An = [
|
|
|
1663
1663
|
tag: "tag:yaml.org,2002:bool",
|
|
1664
1664
|
test: /^true|false$/,
|
|
1665
1665
|
resolve: (s) => s === "true",
|
|
1666
|
-
stringify:
|
|
1666
|
+
stringify: Be
|
|
1667
1667
|
},
|
|
1668
1668
|
{
|
|
1669
1669
|
identify: Jt,
|
|
@@ -1679,7 +1679,7 @@ const ve = ({ value: s }) => JSON.stringify(s), An = [
|
|
|
1679
1679
|
tag: "tag:yaml.org,2002:float",
|
|
1680
1680
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
1681
1681
|
resolve: (s) => parseFloat(s),
|
|
1682
|
-
stringify:
|
|
1682
|
+
stringify: Be
|
|
1683
1683
|
}
|
|
1684
1684
|
], En = {
|
|
1685
1685
|
default: !0,
|
|
@@ -1731,7 +1731,7 @@ const ve = ({ value: s }) => JSON.stringify(s), An = [
|
|
|
1731
1731
|
l = h.join(e === N.BLOCK_LITERAL ? `
|
|
1732
1732
|
` : " ");
|
|
1733
1733
|
}
|
|
1734
|
-
return
|
|
1734
|
+
return $e({ comment: s, type: e, value: l }, n, i, r);
|
|
1735
1735
|
}
|
|
1736
1736
|
};
|
|
1737
1737
|
function As(s, e) {
|
|
@@ -1880,8 +1880,8 @@ const $s = {
|
|
|
1880
1880
|
return e;
|
|
1881
1881
|
},
|
|
1882
1882
|
stringify: V
|
|
1883
|
-
},
|
|
1884
|
-
function
|
|
1883
|
+
}, Ce = (s) => typeof s == "bigint" || Number.isInteger(s);
|
|
1884
|
+
function Ze(s, e, t, { intAsBigInt: n }) {
|
|
1885
1885
|
const i = s[0];
|
|
1886
1886
|
if ((i === "-" || i === "+") && (e += 1), s = s.substring(e).replace(/_/g, ""), n) {
|
|
1887
1887
|
switch (t) {
|
|
@@ -1903,42 +1903,42 @@ function Xe(s, e, t, { intAsBigInt: n }) {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
function Ct(s, e, t) {
|
|
1905
1905
|
const { value: n } = s;
|
|
1906
|
-
if (
|
|
1906
|
+
if (Ce(n)) {
|
|
1907
1907
|
const i = n.toString(e);
|
|
1908
1908
|
return n < 0 ? "-" + t + i.substr(1) : t + i;
|
|
1909
1909
|
}
|
|
1910
1910
|
return V(s);
|
|
1911
1911
|
}
|
|
1912
1912
|
const Mn = {
|
|
1913
|
-
identify:
|
|
1913
|
+
identify: Ce,
|
|
1914
1914
|
default: !0,
|
|
1915
1915
|
tag: "tag:yaml.org,2002:int",
|
|
1916
1916
|
format: "BIN",
|
|
1917
1917
|
test: /^[-+]?0b[0-1_]+$/,
|
|
1918
|
-
resolve: (s, e, t) =>
|
|
1918
|
+
resolve: (s, e, t) => Ze(s, 2, 2, t),
|
|
1919
1919
|
stringify: (s) => Ct(s, 2, "0b")
|
|
1920
1920
|
}, vn = {
|
|
1921
|
-
identify:
|
|
1921
|
+
identify: Ce,
|
|
1922
1922
|
default: !0,
|
|
1923
1923
|
tag: "tag:yaml.org,2002:int",
|
|
1924
1924
|
format: "OCT",
|
|
1925
1925
|
test: /^[-+]?0[0-7_]+$/,
|
|
1926
|
-
resolve: (s, e, t) =>
|
|
1926
|
+
resolve: (s, e, t) => Ze(s, 1, 8, t),
|
|
1927
1927
|
stringify: (s) => Ct(s, 8, "0")
|
|
1928
1928
|
}, Bn = {
|
|
1929
|
-
identify:
|
|
1929
|
+
identify: Ce,
|
|
1930
1930
|
default: !0,
|
|
1931
1931
|
tag: "tag:yaml.org,2002:int",
|
|
1932
1932
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
1933
|
-
resolve: (s, e, t) =>
|
|
1933
|
+
resolve: (s, e, t) => Ze(s, 0, 10, t),
|
|
1934
1934
|
stringify: V
|
|
1935
1935
|
}, jn = {
|
|
1936
|
-
identify:
|
|
1936
|
+
identify: Ce,
|
|
1937
1937
|
default: !0,
|
|
1938
1938
|
tag: "tag:yaml.org,2002:int",
|
|
1939
1939
|
format: "HEX",
|
|
1940
1940
|
test: /^[-+]?0x[0-9a-fA-F_]+$/,
|
|
1941
|
-
resolve: (s, e, t) =>
|
|
1941
|
+
resolve: (s, e, t) => Ze(s, 2, 16, t),
|
|
1942
1942
|
stringify: (s) => Ct(s, 16, "0x")
|
|
1943
1943
|
};
|
|
1944
1944
|
class he extends K {
|
|
@@ -2030,7 +2030,7 @@ const Ms = {
|
|
|
2030
2030
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
|
|
2031
2031
|
resolve: (s) => Mt(s, !1),
|
|
2032
2032
|
stringify: _s
|
|
2033
|
-
},
|
|
2033
|
+
}, et = {
|
|
2034
2034
|
identify: (s) => s instanceof Date,
|
|
2035
2035
|
default: !0,
|
|
2036
2036
|
tag: "tag:yaml.org,2002:timestamp",
|
|
@@ -2039,7 +2039,7 @@ const Ms = {
|
|
|
2039
2039
|
// assumed to be 00:00:00Z (start of day, UTC).
|
|
2040
2040
|
test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
|
|
2041
2041
|
resolve(s) {
|
|
2042
|
-
const e = s.match(
|
|
2042
|
+
const e = s.match(et.test);
|
|
2043
2043
|
if (!e)
|
|
2044
2044
|
throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
|
|
2045
2045
|
const [, t, n, i, r, o, l] = e.map(Number), a = e[7] ? Number((e[7] + "00").substr(1, 3)) : 0;
|
|
@@ -2055,8 +2055,8 @@ const Ms = {
|
|
|
2055
2055
|
}, Qt = [
|
|
2056
2056
|
we,
|
|
2057
2057
|
Se,
|
|
2058
|
-
He,
|
|
2059
2058
|
xe,
|
|
2059
|
+
ze,
|
|
2060
2060
|
$s,
|
|
2061
2061
|
Cs,
|
|
2062
2062
|
Mn,
|
|
@@ -2072,10 +2072,10 @@ const Ms = {
|
|
|
2072
2072
|
_t,
|
|
2073
2073
|
Ms,
|
|
2074
2074
|
vs,
|
|
2075
|
-
|
|
2075
|
+
et
|
|
2076
2076
|
], Yt = /* @__PURE__ */ new Map([
|
|
2077
2077
|
["core", In],
|
|
2078
|
-
["failsafe", [we, Se,
|
|
2078
|
+
["failsafe", [we, Se, xe]],
|
|
2079
2079
|
["json", Ln],
|
|
2080
2080
|
["yaml11", Qt],
|
|
2081
2081
|
["yaml-1.1", Qt]
|
|
@@ -2091,18 +2091,18 @@ const Ms = {
|
|
|
2091
2091
|
intOct: Os,
|
|
2092
2092
|
intTime: Ms,
|
|
2093
2093
|
map: we,
|
|
2094
|
-
null:
|
|
2094
|
+
null: ze,
|
|
2095
2095
|
omap: $t,
|
|
2096
2096
|
pairs: Lt,
|
|
2097
2097
|
seq: Se,
|
|
2098
2098
|
set: _t,
|
|
2099
|
-
timestamp:
|
|
2099
|
+
timestamp: et
|
|
2100
2100
|
}, Pn = {
|
|
2101
2101
|
"tag:yaml.org,2002:binary": Et,
|
|
2102
2102
|
"tag:yaml.org,2002:omap": $t,
|
|
2103
2103
|
"tag:yaml.org,2002:pairs": Lt,
|
|
2104
2104
|
"tag:yaml.org,2002:set": _t,
|
|
2105
|
-
"tag:yaml.org,2002:timestamp":
|
|
2105
|
+
"tag:yaml.org,2002:timestamp": et
|
|
2106
2106
|
};
|
|
2107
2107
|
function ft(s, e) {
|
|
2108
2108
|
let t = Yt.get(e);
|
|
@@ -2129,12 +2129,12 @@ function ft(s, e) {
|
|
|
2129
2129
|
});
|
|
2130
2130
|
}
|
|
2131
2131
|
const Dn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
|
|
2132
|
-
class
|
|
2132
|
+
class tt {
|
|
2133
2133
|
constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
|
|
2134
|
-
this.compat = Array.isArray(e) ? ft(e, "compat") : e ? ft(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Pn : {}, this.tags = ft(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, W, { value: we }), Object.defineProperty(this, Y, { value:
|
|
2134
|
+
this.compat = Array.isArray(e) ? ft(e, "compat") : e ? ft(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Pn : {}, this.tags = ft(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, W, { value: we }), Object.defineProperty(this, Y, { value: xe }), Object.defineProperty(this, me, { value: Se }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Dn : null;
|
|
2135
2135
|
}
|
|
2136
2136
|
clone() {
|
|
2137
|
-
const e = Object.create(
|
|
2137
|
+
const e = Object.create(tt.prototype, Object.getOwnPropertyDescriptors(this));
|
|
2138
2138
|
return e.tags = this.tags.slice(), e;
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
@@ -2234,7 +2234,7 @@ class ke {
|
|
|
2234
2234
|
e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
2235
2235
|
!t || n.has(t) ? us(t || "a", n) : t;
|
|
2236
2236
|
}
|
|
2237
|
-
return new
|
|
2237
|
+
return new Ye(e.anchor);
|
|
2238
2238
|
}
|
|
2239
2239
|
createNode(e, t, n) {
|
|
2240
2240
|
let i;
|
|
@@ -2257,7 +2257,7 @@ class ke {
|
|
|
2257
2257
|
replacer: i,
|
|
2258
2258
|
schema: this.schema,
|
|
2259
2259
|
sourceObjects: m
|
|
2260
|
-
}, u =
|
|
2260
|
+
}, u = Ae(e, h, y);
|
|
2261
2261
|
return l && $(u) && (u.flow = !0), p(), u;
|
|
2262
2262
|
}
|
|
2263
2263
|
/**
|
|
@@ -2315,14 +2315,14 @@ class ke {
|
|
|
2315
2315
|
* boolean to add/remove the item from the set.
|
|
2316
2316
|
*/
|
|
2317
2317
|
set(e, t) {
|
|
2318
|
-
this.contents == null ? this.contents =
|
|
2318
|
+
this.contents == null ? this.contents = Re(this.schema, [e], t) : re(this.contents) && this.contents.set(e, t);
|
|
2319
2319
|
}
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
2322
2322
|
* boolean to add/remove the item from the set.
|
|
2323
2323
|
*/
|
|
2324
2324
|
setIn(e, t) {
|
|
2325
|
-
Oe(e) ? this.contents = t : this.contents == null ? this.contents =
|
|
2325
|
+
Oe(e) ? this.contents = t : this.contents == null ? this.contents = Re(this.schema, Array.from(e), t) : re(this.contents) && this.contents.setIn(e, t);
|
|
2326
2326
|
}
|
|
2327
2327
|
/**
|
|
2328
2328
|
* Change the YAML version and schema used by the document.
|
|
@@ -2353,7 +2353,7 @@ class ke {
|
|
|
2353
2353
|
if (t.schema instanceof Object)
|
|
2354
2354
|
this.schema = t.schema;
|
|
2355
2355
|
else if (n)
|
|
2356
|
-
this.schema = new
|
|
2356
|
+
this.schema = new tt(Object.assign(n, t));
|
|
2357
2357
|
else
|
|
2358
2358
|
throw new Error("With a null YAML version, the { schema: Schema } option is required");
|
|
2359
2359
|
}
|
|
@@ -2412,7 +2412,7 @@ class Bs extends vt {
|
|
|
2412
2412
|
super("YAMLWarning", e, t, n);
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
|
-
const
|
|
2415
|
+
const Ve = (s, e) => (t) => {
|
|
2416
2416
|
if (t.pos[0] === -1)
|
|
2417
2417
|
return;
|
|
2418
2418
|
t.linePos = t.pos.map((l) => e.linePos(l));
|
|
@@ -2488,7 +2488,7 @@ function pe(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
|
|
|
2488
2488
|
start: O != null ? O : C
|
|
2489
2489
|
};
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function Ee(s) {
|
|
2492
2492
|
if (!s)
|
|
2493
2493
|
return null;
|
|
2494
2494
|
switch (s.type) {
|
|
@@ -2515,7 +2515,7 @@ function Ae(s) {
|
|
|
2515
2515
|
if (t.type === "newline")
|
|
2516
2516
|
return !0;
|
|
2517
2517
|
}
|
|
2518
|
-
if (
|
|
2518
|
+
if (Ee(e.key) || Ee(e.value))
|
|
2519
2519
|
return !0;
|
|
2520
2520
|
}
|
|
2521
2521
|
return !1;
|
|
@@ -2526,7 +2526,7 @@ function Ae(s) {
|
|
|
2526
2526
|
function St(s, e, t) {
|
|
2527
2527
|
if ((e == null ? void 0 : e.type) === "flow-collection") {
|
|
2528
2528
|
const n = e.end[0];
|
|
2529
|
-
n.indent === s && (n.source === "]" || n.source === "}") &&
|
|
2529
|
+
n.indent === s && (n.source === "]" || n.source === "}") && Ee(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
2532
|
function js(s, e, t) {
|
|
@@ -2557,7 +2557,7 @@ function qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2557
2557
|
` + b.comment : l.comment = b.comment);
|
|
2558
2558
|
continue;
|
|
2559
2559
|
}
|
|
2560
|
-
(b.newlineAfterProp ||
|
|
2560
|
+
(b.newlineAfterProp || Ee(y)) && i(y != null ? y : m[m.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
2561
2561
|
} else
|
|
2562
2562
|
((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(a, "BAD_INDENT", Wt);
|
|
2563
2563
|
const I = b.end, k = y ? s(t, y, b, i) : e(t, I, m, null, b, i);
|
|
@@ -2611,7 +2611,7 @@ function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2611
2611
|
}
|
|
2612
2612
|
return l.range = [n.offset, a, c != null ? c : a], l;
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function _e(s, e, t, n) {
|
|
2615
2615
|
let i = "";
|
|
2616
2616
|
if (s) {
|
|
2617
2617
|
let r = !1, o = "";
|
|
@@ -2662,7 +2662,7 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2662
2662
|
` + w.comment : c.comment = w.comment), f = w.end;
|
|
2663
2663
|
continue;
|
|
2664
2664
|
}
|
|
2665
|
-
!o && t.options.strict &&
|
|
2665
|
+
!o && t.options.strict && Ee(O) && i(
|
|
2666
2666
|
O,
|
|
2667
2667
|
// checked by containsNewline()
|
|
2668
2668
|
"MULTILINE_IMPLICIT_KEY",
|
|
@@ -2744,7 +2744,7 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2744
2744
|
i(f, h ? "MISSING_CHAR" : "BAD_INDENT", I), m && m.source.length !== 1 && y.unshift(m);
|
|
2745
2745
|
}
|
|
2746
2746
|
if (y.length > 0) {
|
|
2747
|
-
const S =
|
|
2747
|
+
const S = _e(y, u, t.options.strict, i);
|
|
2748
2748
|
S.comment && (c.comment ? c.comment += `
|
|
2749
2749
|
` + S.comment : c.comment = S.comment), c.range = [n.offset, u, S.offset];
|
|
2750
2750
|
} else
|
|
@@ -2917,7 +2917,7 @@ function Ds(s, e, t) {
|
|
|
2917
2917
|
range: [n, n + r.length, n + r.length]
|
|
2918
2918
|
};
|
|
2919
2919
|
}
|
|
2920
|
-
const h = n + r.length, f =
|
|
2920
|
+
const h = n + r.length, f = _e(o, h, e, t);
|
|
2921
2921
|
return {
|
|
2922
2922
|
value: a,
|
|
2923
2923
|
type: l,
|
|
@@ -3171,9 +3171,9 @@ function Bt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a
|
|
|
3171
3171
|
return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
|
|
3172
3172
|
}
|
|
3173
3173
|
function ti({ options: s }, { offset: e, source: t, end: n }, i) {
|
|
3174
|
-
const r = new
|
|
3174
|
+
const r = new Ye(t.substring(1));
|
|
3175
3175
|
r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
|
|
3176
|
-
const o = e + t.length, l =
|
|
3176
|
+
const o = e + t.length, l = _e(n, o, s.strict, i);
|
|
3177
3177
|
return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
|
|
3178
3178
|
}
|
|
3179
3179
|
function si(s, e, { offset: t, start: n, value: i, end: r }, o) {
|
|
@@ -3191,7 +3191,7 @@ function si(s, e, { offset: t, start: n, value: i, end: r }, o) {
|
|
|
3191
3191
|
startOnNewline: !0
|
|
3192
3192
|
});
|
|
3193
3193
|
h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Fs(c, i, h, o) : Bt(c, h.end, n, null, h, o);
|
|
3194
|
-
const f = a.contents.range[2], p =
|
|
3194
|
+
const f = a.contents.range[2], p = _e(r, f, !1, o);
|
|
3195
3195
|
return p.comment && (a.comment = p.comment), a.range = [t, f, p.offset], a;
|
|
3196
3196
|
}
|
|
3197
3197
|
function Ne(s) {
|
|
@@ -3310,7 +3310,7 @@ ${o}` : n;
|
|
|
3310
3310
|
break;
|
|
3311
3311
|
}
|
|
3312
3312
|
this.doc.directives.docEnd = !0;
|
|
3313
|
-
const t =
|
|
3313
|
+
const t = _e(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
|
|
3314
3314
|
if (this.decorate(this.doc, !0), t.comment) {
|
|
3315
3315
|
const n = this.doc.comment;
|
|
3316
3316
|
this.doc.comment = n ? `${n}
|
|
@@ -3360,7 +3360,7 @@ function ni(s, e = !0, t) {
|
|
|
3360
3360
|
}
|
|
3361
3361
|
function ii(s, e) {
|
|
3362
3362
|
var c;
|
|
3363
|
-
const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l =
|
|
3363
|
+
const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = $e({ type: o, value: s }, {
|
|
3364
3364
|
implicitKey: t,
|
|
3365
3365
|
indent: n > 0 ? " ".repeat(n) : "",
|
|
3366
3366
|
inFlow: i,
|
|
@@ -3408,7 +3408,7 @@ function ri(s, e, t = {}) {
|
|
|
3408
3408
|
default:
|
|
3409
3409
|
o = "PLAIN";
|
|
3410
3410
|
}
|
|
3411
|
-
const a =
|
|
3411
|
+
const a = $e({ type: o, value: e }, {
|
|
3412
3412
|
implicitKey: i || l === null,
|
|
3413
3413
|
indent: l !== null && l > 0 ? " ".repeat(l) : "",
|
|
3414
3414
|
inFlow: r,
|
|
@@ -3493,32 +3493,32 @@ function pt(s, e, t) {
|
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
3495
|
}
|
|
3496
|
-
const li = (s) => "type" in s ?
|
|
3497
|
-
function
|
|
3496
|
+
const li = (s) => "type" in s ? Je(s) : Fe(s);
|
|
3497
|
+
function Je(s) {
|
|
3498
3498
|
switch (s.type) {
|
|
3499
3499
|
case "block-scalar": {
|
|
3500
3500
|
let e = "";
|
|
3501
3501
|
for (const t of s.props)
|
|
3502
|
-
e +=
|
|
3502
|
+
e += Je(t);
|
|
3503
3503
|
return e + s.source;
|
|
3504
3504
|
}
|
|
3505
3505
|
case "block-map":
|
|
3506
3506
|
case "block-seq": {
|
|
3507
3507
|
let e = "";
|
|
3508
3508
|
for (const t of s.items)
|
|
3509
|
-
e +=
|
|
3509
|
+
e += Fe(t);
|
|
3510
3510
|
return e;
|
|
3511
3511
|
}
|
|
3512
3512
|
case "flow-collection": {
|
|
3513
3513
|
let e = s.start.source;
|
|
3514
3514
|
for (const t of s.items)
|
|
3515
|
-
e +=
|
|
3515
|
+
e += Fe(t);
|
|
3516
3516
|
for (const t of s.end)
|
|
3517
3517
|
e += t.source;
|
|
3518
3518
|
return e;
|
|
3519
3519
|
}
|
|
3520
3520
|
case "document": {
|
|
3521
|
-
let e =
|
|
3521
|
+
let e = Fe(s);
|
|
3522
3522
|
if (s.end)
|
|
3523
3523
|
for (const t of s.end)
|
|
3524
3524
|
e += t.source;
|
|
@@ -3533,14 +3533,14 @@ function Ve(s) {
|
|
|
3533
3533
|
}
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3536
|
+
function Fe({ start: s, key: e, sep: t, value: n }) {
|
|
3537
3537
|
let i = "";
|
|
3538
3538
|
for (const r of s)
|
|
3539
3539
|
i += r.source;
|
|
3540
|
-
if (e && (i +=
|
|
3540
|
+
if (e && (i += Je(e)), t)
|
|
3541
3541
|
for (const r of t)
|
|
3542
3542
|
i += r.source;
|
|
3543
|
-
return n && (i +=
|
|
3543
|
+
return n && (i += Je(n)), i;
|
|
3544
3544
|
}
|
|
3545
3545
|
const kt = Symbol("break visit"), ai = Symbol("skip children"), Us = Symbol("remove item");
|
|
3546
3546
|
function se(s, e) {
|
|
@@ -3588,16 +3588,16 @@ function Vs(s, e, t) {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
return typeof n == "function" ? n(e, s) : n;
|
|
3590
3590
|
}
|
|
3591
|
-
const
|
|
3591
|
+
const st = "\uFEFF", nt = "", it = "", Le = "", ci = (s) => !!s && "items" in s, fi = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
|
|
3592
3592
|
function ui(s) {
|
|
3593
3593
|
switch (s) {
|
|
3594
|
-
case tt:
|
|
3595
|
-
return "<BOM>";
|
|
3596
3594
|
case st:
|
|
3597
|
-
return "<
|
|
3595
|
+
return "<BOM>";
|
|
3598
3596
|
case nt:
|
|
3597
|
+
return "<DOC>";
|
|
3598
|
+
case it:
|
|
3599
3599
|
return "<FLOW_END>";
|
|
3600
|
-
case
|
|
3600
|
+
case Le:
|
|
3601
3601
|
return "<SCALAR>";
|
|
3602
3602
|
default:
|
|
3603
3603
|
return JSON.stringify(s);
|
|
@@ -3605,13 +3605,13 @@ function ui(s) {
|
|
|
3605
3605
|
}
|
|
3606
3606
|
function Js(s) {
|
|
3607
3607
|
switch (s) {
|
|
3608
|
-
case tt:
|
|
3609
|
-
return "byte-order-mark";
|
|
3610
3608
|
case st:
|
|
3611
|
-
return "
|
|
3609
|
+
return "byte-order-mark";
|
|
3612
3610
|
case nt:
|
|
3611
|
+
return "doc-mode";
|
|
3612
|
+
case it:
|
|
3613
3613
|
return "flow-error-end";
|
|
3614
|
-
case
|
|
3614
|
+
case Le:
|
|
3615
3615
|
return "scalar";
|
|
3616
3616
|
case "---":
|
|
3617
3617
|
return "doc-start";
|
|
@@ -3666,10 +3666,10 @@ function Js(s) {
|
|
|
3666
3666
|
}
|
|
3667
3667
|
const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3668
3668
|
__proto__: null,
|
|
3669
|
-
BOM:
|
|
3670
|
-
DOCUMENT:
|
|
3671
|
-
FLOW_END:
|
|
3672
|
-
SCALAR:
|
|
3669
|
+
BOM: st,
|
|
3670
|
+
DOCUMENT: nt,
|
|
3671
|
+
FLOW_END: it,
|
|
3672
|
+
SCALAR: Le,
|
|
3673
3673
|
createScalarToken: ii,
|
|
3674
3674
|
isCollection: ci,
|
|
3675
3675
|
isScalar: fi,
|
|
@@ -3693,7 +3693,7 @@ function U(s) {
|
|
|
3693
3693
|
return !1;
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
|
-
const xt = new Set("0123456789ABCDEFabcdef"), di = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),
|
|
3696
|
+
const xt = new Set("0123456789ABCDEFabcdef"), di = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), je = new Set(",[]{}"), pi = new Set(` ,[]{}
|
|
3697
3697
|
\r `), mt = (s) => !s || pi.has(s);
|
|
3698
3698
|
class Qs {
|
|
3699
3699
|
constructor() {
|
|
@@ -3788,7 +3788,7 @@ class Qs {
|
|
|
3788
3788
|
let e = this.getLine();
|
|
3789
3789
|
if (e === null)
|
|
3790
3790
|
return this.setNext("stream");
|
|
3791
|
-
if (e[0] ===
|
|
3791
|
+
if (e[0] === st && (yield* d(this.pushCount(1)), e = e.substring(1)), e[0] === "%") {
|
|
3792
3792
|
let t = e.length, n = e.indexOf("#");
|
|
3793
3793
|
for (; n !== -1; ) {
|
|
3794
3794
|
const r = e[n - 1];
|
|
@@ -3812,7 +3812,7 @@ class Qs {
|
|
|
3812
3812
|
const t = yield* d(this.pushSpaces(!0));
|
|
3813
3813
|
return yield* d(this.pushCount(e.length - t)), yield* d(this.pushNewline()), "stream";
|
|
3814
3814
|
}
|
|
3815
|
-
return yield
|
|
3815
|
+
return yield nt, yield* d(this.parseLineStart());
|
|
3816
3816
|
}
|
|
3817
3817
|
*parseLineStart() {
|
|
3818
3818
|
const e = this.charAt(0);
|
|
@@ -3875,7 +3875,7 @@ class Qs {
|
|
|
3875
3875
|
if (i === null)
|
|
3876
3876
|
return this.setNext("flow");
|
|
3877
3877
|
if ((n !== -1 && n < this.indentNext && i[0] !== "#" || n === 0 && (i.startsWith("---") || i.startsWith("...")) && U(i[3])) && !(n === this.indentNext - 1 && this.flowLevel === 1 && (i[0] === "]" || i[0] === "}")))
|
|
3878
|
-
return this.flowLevel = 0, yield
|
|
3878
|
+
return this.flowLevel = 0, yield it, yield* d(this.parseLineStart());
|
|
3879
3879
|
let r = 0;
|
|
3880
3880
|
for (; i[r] === ","; )
|
|
3881
3881
|
r += yield* d(this.pushCount(1)), r += yield* d(this.pushSpaces(!0)), this.flowKey = !1;
|
|
@@ -4014,7 +4014,7 @@ class Qs {
|
|
|
4014
4014
|
else
|
|
4015
4015
|
break;
|
|
4016
4016
|
} while (!0);
|
|
4017
|
-
return yield
|
|
4017
|
+
return yield Le, yield* d(this.pushToIndex(e + 1, !0)), yield* d(this.parseLineStart());
|
|
4018
4018
|
}
|
|
4019
4019
|
*parsePlainScalar() {
|
|
4020
4020
|
const e = this.flowLevel > 0;
|
|
@@ -4022,14 +4022,14 @@ class Qs {
|
|
|
4022
4022
|
for (; i = this.buffer[++n]; )
|
|
4023
4023
|
if (i === ":") {
|
|
4024
4024
|
const r = this.buffer[n + 1];
|
|
4025
|
-
if (U(r) || e &&
|
|
4025
|
+
if (U(r) || e && je.has(r))
|
|
4026
4026
|
break;
|
|
4027
4027
|
t = n;
|
|
4028
4028
|
} else if (U(i)) {
|
|
4029
4029
|
let r = this.buffer[n + 1];
|
|
4030
4030
|
if (i === "\r" && (r === `
|
|
4031
4031
|
` ? (n += 1, i = `
|
|
4032
|
-
`, r = this.buffer[n + 1]) : t = n), r === "#" || e &&
|
|
4032
|
+
`, r = this.buffer[n + 1]) : t = n), r === "#" || e && je.has(r))
|
|
4033
4033
|
break;
|
|
4034
4034
|
if (i === `
|
|
4035
4035
|
`) {
|
|
@@ -4039,11 +4039,11 @@ class Qs {
|
|
|
4039
4039
|
n = Math.max(n, o - 2);
|
|
4040
4040
|
}
|
|
4041
4041
|
} else {
|
|
4042
|
-
if (e &&
|
|
4042
|
+
if (e && je.has(i))
|
|
4043
4043
|
break;
|
|
4044
4044
|
t = n;
|
|
4045
4045
|
}
|
|
4046
|
-
return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield
|
|
4046
|
+
return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Le, yield* d(this.pushToIndex(t + 1, !0)), e ? "flow" : "doc");
|
|
4047
4047
|
}
|
|
4048
4048
|
*pushCount(e) {
|
|
4049
4049
|
return e > 0 ? (yield this.buffer.substr(this.pos, e), this.pos += e, e) : 0;
|
|
@@ -4062,7 +4062,7 @@ class Qs {
|
|
|
4062
4062
|
case "?":
|
|
4063
4063
|
case ":": {
|
|
4064
4064
|
const e = this.flowLevel > 0, t = this.charAt(1);
|
|
4065
|
-
if (U(t) || e &&
|
|
4065
|
+
if (U(t) || e && je.has(t))
|
|
4066
4066
|
return e ? this.flowKey && (this.flowKey = !1) : this.indentNext = this.indentValue + 1, (yield* d(this.pushCount(1))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
|
|
4067
4067
|
}
|
|
4068
4068
|
}
|
|
@@ -4154,7 +4154,7 @@ function Gs(s) {
|
|
|
4154
4154
|
return !1;
|
|
4155
4155
|
}
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4157
|
+
function Pe(s) {
|
|
4158
4158
|
var e;
|
|
4159
4159
|
switch (s.type) {
|
|
4160
4160
|
case "document":
|
|
@@ -4406,7 +4406,7 @@ class Pt {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
*scalar(e) {
|
|
4408
4408
|
if (this.type === "map-value-ind") {
|
|
4409
|
-
const t =
|
|
4409
|
+
const t = Pe(this.peek(2)), n = oe(t);
|
|
4410
4410
|
let i;
|
|
4411
4411
|
e.end ? (i = e.end, i.push(this.sourceToken), delete e.end) : i = [this.sourceToken];
|
|
4412
4412
|
const r = {
|
|
@@ -4655,7 +4655,7 @@ class Pt {
|
|
|
4655
4655
|
if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === e.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
|
|
4656
4656
|
yield* d(this.pop()), yield* d(this.step());
|
|
4657
4657
|
else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
|
|
4658
|
-
const i =
|
|
4658
|
+
const i = Pe(n), r = oe(i);
|
|
4659
4659
|
Xt(e);
|
|
4660
4660
|
const o = e.end.splice(1, e.end.length);
|
|
4661
4661
|
o.push(this.sourceToken);
|
|
@@ -4719,7 +4719,7 @@ class Pt {
|
|
|
4719
4719
|
};
|
|
4720
4720
|
case "explicit-key-ind": {
|
|
4721
4721
|
this.onKeyLine = !0;
|
|
4722
|
-
const t =
|
|
4722
|
+
const t = Pe(e), n = oe(t);
|
|
4723
4723
|
return n.push(this.sourceToken), {
|
|
4724
4724
|
type: "block-map",
|
|
4725
4725
|
offset: this.offset,
|
|
@@ -4729,7 +4729,7 @@ class Pt {
|
|
|
4729
4729
|
}
|
|
4730
4730
|
case "map-value-ind": {
|
|
4731
4731
|
this.onKeyLine = !0;
|
|
4732
|
-
const t =
|
|
4732
|
+
const t = Pe(e), n = oe(t);
|
|
4733
4733
|
return {
|
|
4734
4734
|
type: "block-map",
|
|
4735
4735
|
offset: this.offset,
|
|
@@ -4773,7 +4773,7 @@ function mi(s, e = {}) {
|
|
|
4773
4773
|
const { lineCounter: t, prettyErrors: n } = Ws(e), i = new Pt(t == null ? void 0 : t.addNewLine), r = new jt(e), o = Array.from(r.compose(i.parse(s)));
|
|
4774
4774
|
if (n && t)
|
|
4775
4775
|
for (const l of o)
|
|
4776
|
-
l.errors.forEach(
|
|
4776
|
+
l.errors.forEach(Ve(s, t)), l.warnings.forEach(Ve(s, t));
|
|
4777
4777
|
return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
|
|
4778
4778
|
}
|
|
4779
4779
|
function Hs(s, e = {}) {
|
|
@@ -4786,7 +4786,7 @@ function Hs(s, e = {}) {
|
|
|
4786
4786
|
o.errors.push(new te(l.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
4787
4787
|
break;
|
|
4788
4788
|
}
|
|
4789
|
-
return n && t && (o.errors.forEach(
|
|
4789
|
+
return n && t && (o.errors.forEach(Ve(s, t)), o.warnings.forEach(Ve(s, t))), o;
|
|
4790
4790
|
}
|
|
4791
4791
|
function yi(s, e, t) {
|
|
4792
4792
|
let n;
|
|
@@ -4817,7 +4817,7 @@ function gi(s, e, t) {
|
|
|
4817
4817
|
}
|
|
4818
4818
|
const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4819
4819
|
__proto__: null,
|
|
4820
|
-
Alias:
|
|
4820
|
+
Alias: Ye,
|
|
4821
4821
|
CST: hi,
|
|
4822
4822
|
Composer: jt,
|
|
4823
4823
|
Document: ke,
|
|
@@ -4826,7 +4826,7 @@ const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4826
4826
|
Pair: j,
|
|
4827
4827
|
Parser: Pt,
|
|
4828
4828
|
Scalar: N,
|
|
4829
|
-
Schema:
|
|
4829
|
+
Schema: tt,
|
|
4830
4830
|
YAMLError: vt,
|
|
4831
4831
|
YAMLMap: K,
|
|
4832
4832
|
YAMLParseError: te,
|
|
@@ -4845,7 +4845,7 @@ const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4845
4845
|
parseDocument: Hs,
|
|
4846
4846
|
stringify: gi,
|
|
4847
4847
|
visit: H,
|
|
4848
|
-
visitAsync:
|
|
4848
|
+
visitAsync: Qe
|
|
4849
4849
|
}, Symbol.toStringTag, { value: "Module" })), bi = `# This is your query - you can modify it directly and click Run to see new results.
|
|
4850
4850
|
# Try uncommenting the elements below
|
|
4851
4851
|
# To learn more about the query syntax, visit [Doc URL]
|
|
@@ -4896,8 +4896,8 @@ class Ci {
|
|
|
4896
4896
|
* @param fields - The data source fields
|
|
4897
4897
|
*/
|
|
4898
4898
|
constructor(e, t) {
|
|
4899
|
-
|
|
4900
|
-
|
|
4899
|
+
lt(this, "contextTitle");
|
|
4900
|
+
lt(this, "indexedFields", {});
|
|
4901
4901
|
this.contextTitle = e, this.indexedFields = this.indexFields(t);
|
|
4902
4902
|
}
|
|
4903
4903
|
indexFields(e) {
|
|
@@ -5143,20 +5143,18 @@ const _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5143
5143
|
}, Symbol.toStringTag, { value: "Module" })), wi = "executeQueryTmpl", Si = "executePivotQueryTmpl", ki = (s, e, t) => {
|
|
5144
5144
|
const n = ns(s), i = {
|
|
5145
5145
|
dataSourceString: es(s.dataSource),
|
|
5146
|
-
dimensionsString:
|
|
5147
|
-
measuresString:
|
|
5146
|
+
dimensionsString: Te(s.dimensions || []),
|
|
5147
|
+
measuresString: Te(s.measures || []),
|
|
5148
5148
|
filtersString: rn(s.filters),
|
|
5149
|
-
highlightsString:
|
|
5149
|
+
highlightsString: Te(s.highlights || []),
|
|
5150
5150
|
extraImportsString: ts(s.filters || [], n)
|
|
5151
5151
|
};
|
|
5152
5152
|
return ss(t, i, e);
|
|
5153
5153
|
}, Ni = (s, e, t) => {
|
|
5154
5154
|
const n = ns(s), i = {
|
|
5155
5155
|
dataSourceString: es(s.dataSource),
|
|
5156
|
-
rowsString:
|
|
5157
|
-
|
|
5158
|
-
valuesString: "[]",
|
|
5159
|
-
// TODO
|
|
5156
|
+
rowsString: Te(s.rows || []),
|
|
5157
|
+
valuesString: Te(s.values || []),
|
|
5160
5158
|
extraImportsString: ts(s.filters || [], n)
|
|
5161
5159
|
};
|
|
5162
5160
|
return ss(t, i, e);
|