@sisense/sdk-ui 2.6.0 → 2.8.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.
Files changed (72) hide show
  1. package/dist/ai.cjs +29 -29
  2. package/dist/ai.js +686 -702
  3. package/dist/analytics-composer.cjs +33 -33
  4. package/dist/analytics-composer.js +278 -290
  5. package/dist/derive-chart-family-6PZA-xZh.js +92092 -0
  6. package/dist/derive-chart-family-DQUVKMcV.cjs +656 -0
  7. package/dist/{dimensions-DuHaCozA.js → dimensions-b8xRITJn.js} +4 -5
  8. package/dist/{dimensions-BgPl9ZS9.cjs → dimensions-x8nnAUew.cjs} +1 -1
  9. package/dist/index.cjs +17 -17
  10. package/dist/index.js +7935 -7787
  11. package/dist/index.umd.js +415 -389
  12. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +1 -0
  13. package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +7 -0
  14. package/dist/packages/sdk-ui/src/ai/common/icon-button.d.ts +1 -3
  15. package/dist/packages/sdk-ui/src/ai/messages/clickable-message.d.ts +0 -1
  16. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +7 -0
  17. package/dist/packages/sdk-ui/src/analytics-composer/query/fix-ranking-filter-jaql.d.ts +8 -0
  18. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/get-legacy-cartesian-chart-options.d.ts +3 -0
  19. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +2 -0
  20. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/tooltip.d.ts +4 -0
  21. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/{highcharts-options-builder.d.ts → highchart-options/highcharts-options-builder.d.ts} +1 -1
  22. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highchart-options/legend.d.ts +3 -0
  23. package/dist/packages/sdk-ui/src/chart-options-processor/{cartesian-chart-options.d.ts → cartesian/cartesian-chart-options.d.ts} +6 -6
  24. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis-configuration.d.ts +41 -0
  25. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-configuration.d.ts +13 -0
  26. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-spacing-calculator.d.ts +41 -0
  27. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +57 -0
  28. package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +1 -0
  29. package/dist/packages/sdk-ui/src/chart-options-processor/tooltip.d.ts +3 -29
  30. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-plot-options.d.ts +2 -2
  31. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-tooltip.d.ts +2 -2
  32. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +17 -2
  33. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip.d.ts +3 -3
  34. package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +7 -0
  35. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +3 -4
  36. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -3
  37. package/dist/packages/sdk-ui/src/common/icons/drag-handle-icon.d.ts +2 -1
  38. package/dist/packages/sdk-ui/src/custom-widgets-provider/types.d.ts +10 -1
  39. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +5 -1
  40. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +7 -1
  41. package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +0 -1
  42. package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +0 -1
  43. package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +4 -0
  44. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/index.d.ts +1 -1
  45. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +4 -1
  46. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/with-tracking.d.ts +10 -2
  47. package/dist/packages/sdk-ui/src/error-boundary/error-boundary.d.ts +1 -1
  48. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +0 -1
  49. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +0 -1
  50. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/use-members.d.ts +1 -1
  51. package/dist/packages/sdk-ui/src/index.d.ts +1 -0
  52. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/get-pivot-table-data-point.d.ts +4 -0
  53. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/index.d.ts +1 -0
  54. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/types.d.ts +32 -0
  55. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/use-apply-pivot-table-cell-events.d.ts +18 -0
  56. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/utils.d.ts +11 -0
  57. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +2 -2
  58. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +8 -4
  59. package/dist/packages/sdk-ui/src/props.d.ts +33 -1
  60. package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +5 -0
  61. package/dist/packages/sdk-ui/src/types.d.ts +84 -3
  62. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +3 -3
  63. package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -6
  64. package/dist/{use-common-filters-B1RKY2KD.js → use-common-filters-BHBy4uv6.js} +5815 -5679
  65. package/dist/use-common-filters-Cg217teN.cjs +350 -0
  66. package/dist/{widget-composer-B2r2a9Oh.cjs → widget-composer-BPlNiX_P.cjs} +8 -8
  67. package/dist/{widget-composer-I9gUFBZt.js → widget-composer-SGEFYrXY.js} +248 -216
  68. package/package.json +29 -27
  69. package/dist/derive-chart-family-BPYK8evJ.js +0 -90579
  70. package/dist/derive-chart-family-yUBZXP4x.cjs +0 -669
  71. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/get-legacy-cartesian-chart-options.d.ts +0 -3
  72. package/dist/use-common-filters-CRgYdKcV.cjs +0 -350
@@ -2,7 +2,9 @@ var vn = Object.defineProperty, Jn = Object.defineProperties;
2
2
  var Qn = Object.getOwnPropertyDescriptors;
3
3
  var ve = Object.getOwnPropertySymbols;
4
4
  var us = Object.prototype.hasOwnProperty, hs = Object.prototype.propertyIsEnumerable;
5
- var kt = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t);
5
+ var kt = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), Yn = (t) => {
6
+ throw TypeError(t);
7
+ };
6
8
  var fs = (t, e, s) => e in t ? vn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, R = (t, e) => {
7
9
  for (var s in e || (e = {}))
8
10
  us.call(e, s) && fs(t, s, e[s]);
@@ -35,34 +37,31 @@ var Ot = (t, e, s) => new Promise((n, i) => {
35
37
  }
36
38
  }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(r, o);
37
39
  a((s = s.apply(t, e)).next());
38
- }), Yn = function(t, e) {
40
+ }), Wn = function(t, e) {
39
41
  this[0] = t, this[1] = e;
40
42
  };
41
43
  var d = (t) => {
42
44
  var e = t[kt("asyncIterator")], s = !1, n, i = {};
43
45
  return e == null ? (e = t[kt("iterator")](), n = (r) => i[r] = (o) => e[r](o)) : (e = e.call(t), n = (r) => i[r] = (o) => {
44
46
  if (s) {
45
- if (s = !1, r === "throw")
46
- throw o;
47
+ if (s = !1, r === "throw") throw o;
47
48
  return o;
48
49
  }
49
50
  return s = !0, {
50
51
  done: !1,
51
- value: new Yn(new Promise((a) => {
52
+ value: new Wn(new Promise((a) => {
52
53
  var l = e[r](o);
53
- if (!(l instanceof Object))
54
- throw TypeError("Object expected");
55
- a(l);
54
+ l instanceof Object || Yn("Object expected"), a(l);
56
55
  }), 1)
57
56
  };
58
57
  }), i[kt("iterator")] = () => i, n("next"), "throw" in e ? n("throw") : i.throw = (r) => {
59
58
  throw r;
60
59
  }, "return" in e && n("return"), i;
61
60
  };
62
- import { s as Wn, E as ps, c as xn, p as Gn, v as Hn, g as Xn, a as rt, b as zt, d as Ut, e as Vt, f as vt, h as G, C as Je, i as Zn, j as ei, J as ti } from "./widget-composer-I9gUFBZt.js";
63
- import { k as ta, r as sa, x as na, q as ia, u as ra, m as oa, n as aa, l as la, o as ca, w as fa } from "./widget-composer-I9gUFBZt.js";
64
- import { aU as Ds, aL as si, bN as ms, cK as ni, dM as ii, aD as ri, b5 as oi, dN as ai, dO as li, dP as ci, dQ as fi, dR as ui, aQ as hi, dS as di, aP as pi, dT as mi, bK as yi, aR as gi, bO as bi, bL as wi, bk as Si, bJ as ki, bM as Oi, dU as Ai, au as Ni, dV as Ei, dW as Ti, dX as Ii, dY as Ci, dZ as Li, d_ as _i, d$ as $i, e0 as Mi, e1 as Di, e2 as Bi, a9 as Pi, e3 as Ri, e4 as Fi, aq as Ki } from "./derive-chart-family-BPYK8evJ.js";
65
- import { i as ji, b as qi, D as zi, d as Ui } from "./dimensions-DuHaCozA.js";
61
+ import { s as xn, E as ps, c as Gn, p as Hn, v as Xn, g as Zn, a as rt, b as zt, d as Ut, e as Vt, f as vt, h as G, C as Je, i as ei, j as ti, J as si } from "./widget-composer-SGEFYrXY.js";
62
+ import { k as sa, r as na, x as ia, q as ra, u as oa, m as aa, n as la, l as ca, o as fa, w as ua } from "./widget-composer-SGEFYrXY.js";
63
+ import { aW as Ds, aN as ni, bN as ms, dX as ii, cV as ri, aF as oi, b6 as ai, dY as li, dZ as ci, d_ as fi, d$ as ui, e0 as hi, aS as di, e1 as pi, aR as mi, e2 as yi, bK as gi, aT as bi, bO as wi, bL as Si, bk as ki, bJ as Oi, bM as Ai, e3 as Ni, aw as Ei, e4 as Ti, e5 as Ii, e6 as Ci, e7 as Li, e8 as _i, e9 as $i, ea as Mi, eb as Di, ec as Bi, ed as Pi, ab as Ri, ee as Fi, ef as Ki, as as ji } from "./derive-chart-family-6PZA-xZh.js";
64
+ import { i as qi, b as zi, D as Ui, d as Vi } from "./dimensions-b8xRITJn.js";
66
65
  const Jt = Symbol.for("yaml.alias"), $t = Symbol.for("yaml.document"), Z = Symbol.for("yaml.map"), Bs = Symbol.for("yaml.pair"), X = Symbol.for("yaml.scalar"), Ne = Symbol.for("yaml.seq"), v = Symbol.for("yaml.node.type"), ce = (t) => !!t && typeof t == "object" && t[v] === Jt, Ee = (t) => !!t && typeof t == "object" && t[v] === $t, Te = (t) => !!t && typeof t == "object" && t[v] === Z, C = (t) => !!t && typeof t == "object" && t[v] === Bs, I = (t) => !!t && typeof t == "object" && t[v] === X, Ie = (t) => !!t && typeof t == "object" && t[v] === Ne;
67
66
  function _(t) {
68
67
  if (t && typeof t == "object")
@@ -84,7 +83,7 @@ function D(t) {
84
83
  }
85
84
  return !1;
86
85
  }
87
- const Vi = (t) => (I(t) || _(t)) && !!t.anchor, q = Symbol("break visit"), Ps = Symbol("skip children"), x = Symbol("remove node");
86
+ const vi = (t) => (I(t) || _(t)) && !!t.anchor, q = Symbol("break visit"), Ps = Symbol("skip children"), x = Symbol("remove node");
88
87
  function ee(t, e) {
89
88
  const s = Rs(e);
90
89
  Ee(t) ? pe(null, t.contents, s, Object.freeze([t])) === x && (t.contents = null) : pe(null, t, s, Object.freeze([]));
@@ -208,14 +207,14 @@ function Ks(t, e, s) {
208
207
  throw new Error(`Cannot replace node with ${i} parent`);
209
208
  }
210
209
  }
211
- const vi = {
210
+ const Ji = {
212
211
  "!": "%21",
213
212
  ",": "%2C",
214
213
  "[": "%5B",
215
214
  "]": "%5D",
216
215
  "{": "%7B",
217
216
  "}": "%7D"
218
- }, Ji = (t) => t.replace(/[!,[\]{}]/g, (e) => vi[e]);
217
+ }, Qi = (t) => t.replace(/[!,[\]{}]/g, (e) => Ji[e]);
219
218
  class j {
220
219
  constructor(e, s) {
221
220
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, j.defaultYaml, e), this.tags = Object.assign({}, j.defaultTags, s);
@@ -305,7 +304,7 @@ class j {
305
304
  tagString(e) {
306
305
  for (const [s, n] of Object.entries(this.tags))
307
306
  if (e.startsWith(n))
308
- return s + Ji(e.substring(n.length));
307
+ return s + Qi(e.substring(n.length));
309
308
  return e[0] === "!" ? e : `!<${e}>`;
310
309
  }
311
310
  toString(e) {
@@ -348,7 +347,7 @@ function zs(t, e) {
348
347
  return n;
349
348
  }
350
349
  }
351
- function Qi(t, e) {
350
+ function Yi(t, e) {
352
351
  const s = [], n = /* @__PURE__ */ new Map();
353
352
  let i = null;
354
353
  return {
@@ -404,7 +403,7 @@ function V(t, e, s) {
404
403
  if (Array.isArray(t))
405
404
  return t.map((n, i) => V(n, String(i), s));
406
405
  if (t && typeof t.toJSON == "function") {
407
- if (!s || !Vi(t))
406
+ if (!s || !vi(t))
408
407
  return t.toJSON(e, s);
409
408
  const n = { aliasCount: 0, count: 1, res: void 0 };
410
409
  s.anchors.set(t, n), s.onCreate = (r) => {
@@ -530,8 +529,8 @@ A.BLOCK_LITERAL = "BLOCK_LITERAL";
530
529
  A.PLAIN = "PLAIN";
531
530
  A.QUOTE_DOUBLE = "QUOTE_DOUBLE";
532
531
  A.QUOTE_SINGLE = "QUOTE_SINGLE";
533
- const Yi = "tag:yaml.org,2002:";
534
- function Wi(t, e, s) {
532
+ const Wi = "tag:yaml.org,2002:";
533
+ function xi(t, e, s) {
535
534
  var n;
536
535
  if (e) {
537
536
  const i = s.filter((o) => o.tag === e), r = (n = i.find((o) => !o.format)) != null ? n : i[0];
@@ -560,8 +559,8 @@ function Pe(t, e, s) {
560
559
  return l.anchor || (l.anchor = i(t)), new at(l.anchor);
561
560
  l = { anchor: null, node: null }, a.set(t, l);
562
561
  }
563
- e != null && e.startsWith("!!") && (e = Yi + e.slice(2));
564
- let c = Wi(t, e, o.tags);
562
+ e != null && e.startsWith("!!") && (e = Wi + e.slice(2));
563
+ let c = xi(t, e, o.tags);
565
564
  if (!c) {
566
565
  if (t && typeof t.toJSON == "function" && (t = t.toJSON()), !t || typeof t != "object") {
567
566
  const m = new A(t);
@@ -689,7 +688,7 @@ class Vs extends Qt {
689
688
  }
690
689
  }
691
690
  }
692
- const xi = (t) => t.replace(/^(?!$)(?: $)?/gm, "#");
691
+ const Gi = (t) => t.replace(/^(?!$)(?: $)?/gm, "#");
693
692
  function H(t, e) {
694
693
  return /^\n+$/.test(t) ? t.substring(1) : e ? t.replace(/^(?! *$)/gm, e) : t;
695
694
  }
@@ -782,7 +781,7 @@ const ct = (t, e) => ({
782
781
  lineWidth: t.options.lineWidth,
783
782
  minContentWidth: t.options.minContentWidth
784
783
  }), ft = (t) => /^(%|---|\.\.\.)/m.test(t);
785
- function Gi(t, e, s) {
784
+ function Hi(t, e, s) {
786
785
  if (!e || e < 0)
787
786
  return !1;
788
787
  const n = e - s, i = t.length;
@@ -891,7 +890,7 @@ function Xe({ comment: t, type: e, value: s }, n, i, r) {
891
890
  const { blockQuote: o, commentString: a, lineWidth: l } = n.options;
892
891
  if (!o || /\n[\t ]+$/.test(s) || /^\s*$/.test(s))
893
892
  return ge(s, n);
894
- const c = n.indent || (n.forceBlockIndent || ft(s) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === A.BLOCK_FOLDED ? !1 : e === A.BLOCK_LITERAL ? !0 : !Gi(s, l, c.length);
893
+ const c = n.indent || (n.forceBlockIndent || ft(s) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === A.BLOCK_FOLDED ? !1 : e === A.BLOCK_LITERAL ? !0 : !Hi(s, l, c.length);
895
894
  if (!s)
896
895
  return h ? `|
897
896
  ` : `>
@@ -931,7 +930,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/
931
930
  return `${O}
932
931
  ${c}${N}`;
933
932
  }
934
- function Hi(t, e, s, n) {
933
+ function Xi(t, e, s, n) {
935
934
  const { type: i, value: r } = t, { actualString: o, implicitKey: a, indent: l, indentStep: c, inFlow: h } = e;
936
935
  if (a && r.includes(`
937
936
  `) || h && /[[\]{},]/.test(r))
@@ -974,7 +973,7 @@ function ze(t, e, s, n) {
974
973
  case A.QUOTE_SINGLE:
975
974
  return Dt(o.value, e);
976
975
  case A.PLAIN:
977
- return Hi(o, e, s, n);
976
+ return Xi(o, e, s, n);
978
977
  default:
979
978
  return null;
980
979
  }
@@ -990,7 +989,7 @@ function ze(t, e, s, n) {
990
989
  function Js(t, e) {
991
990
  const s = Object.assign({
992
991
  blockQuote: !0,
993
- commentString: xi,
992
+ commentString: Gi,
994
993
  defaultKeyType: null,
995
994
  defaultStringType: "PLAIN",
996
995
  directives: null,
@@ -1028,7 +1027,7 @@ function Js(t, e) {
1028
1027
  options: s
1029
1028
  };
1030
1029
  }
1031
- function Xi(t, e) {
1030
+ function Zi(t, e) {
1032
1031
  var i, r, o, a;
1033
1032
  if (e.tag) {
1034
1033
  const l = t.filter((c) => c.tag === e.tag);
@@ -1051,7 +1050,7 @@ function Xi(t, e) {
1051
1050
  }
1052
1051
  return s;
1053
1052
  }
1054
- function Zi(t, e, { anchors: s, doc: n }) {
1053
+ function er(t, e, { anchors: s, doc: n }) {
1055
1054
  if (!n.directives)
1056
1055
  return "";
1057
1056
  const i = [], r = (I(t) || _(t)) && t.anchor;
@@ -1072,14 +1071,14 @@ function ke(t, e, s, n) {
1072
1071
  }
1073
1072
  let i;
1074
1073
  const r = D(t) ? t : e.doc.createNode(t, { onTagObj: (h) => i = h });
1075
- i || (i = Xi(e.doc.schema.tags, r));
1076
- const o = Zi(r, i, e);
1074
+ i || (i = Zi(e.doc.schema.tags, r));
1075
+ const o = er(r, i, e);
1077
1076
  o.length > 0 && (e.indentAtStart = ((c = e.indentAtStart) != null ? c : 0) + o.length + 1);
1078
1077
  const a = typeof i.stringify == "function" ? i.stringify(r, e, s, n) : I(r) ? ze(r, e, s, n) : r.toString(e, s, n);
1079
1078
  return o ? I(r) || a[0] === "{" || a[0] === "[" ? `${o} ${a}` : `${o}
1080
1079
  ${e.indent}${a}` : a;
1081
1080
  }
1082
- function er({ key: t, value: e }, s, n, i) {
1081
+ function tr({ key: t, value: e }, s, n, i) {
1083
1082
  var $, S;
1084
1083
  const { allNullValues: r, doc: o, indent: a, indentStep: l, options: { commentString: c, indentSeq: h, simpleKeys: u } } = s;
1085
1084
  let p = D(t) && t.comment || null;
@@ -1139,8 +1138,7 @@ ${s.indent}`;
1139
1138
  ue || (E = `
1140
1139
  ${s.indent}`);
1141
1140
  }
1142
- } else
1143
- (N === "" || N[0] === `
1141
+ } else (N === "" || N[0] === `
1144
1142
  `) && (E = "");
1145
1143
  return g += E + N, s.inFlow ? O && n && n() : T && !O ? g += re(g, s.indent, c(T)) : f && i && i(), g;
1146
1144
  }
@@ -1149,7 +1147,7 @@ function Qs(t, e) {
1149
1147
  }
1150
1148
  const gs = "<<";
1151
1149
  function Ys(t, e, { key: s, value: n }) {
1152
- if (t != null && t.doc.schema.merge && tr(s))
1150
+ if (t != null && t.doc.schema.merge && sr(s))
1153
1151
  if (n = ce(n) ? n.resolve(t.doc) : n, Ie(n))
1154
1152
  for (const i of n.items)
1155
1153
  At(t, e, i);
@@ -1165,7 +1163,7 @@ function Ys(t, e, { key: s, value: n }) {
1165
1163
  else if (e instanceof Set)
1166
1164
  e.add(i);
1167
1165
  else {
1168
- const r = sr(s, i, t), o = V(n, r, t);
1166
+ const r = nr(s, i, t), o = V(n, r, t);
1169
1167
  r in e ? Object.defineProperty(e, r, {
1170
1168
  value: o,
1171
1169
  writable: !0,
@@ -1176,7 +1174,7 @@ function Ys(t, e, { key: s, value: n }) {
1176
1174
  }
1177
1175
  return e;
1178
1176
  }
1179
- const tr = (t) => t === gs || I(t) && t.value === gs && (!t.type || t.type === A.PLAIN);
1177
+ const sr = (t) => t === gs || I(t) && t.value === gs && (!t.type || t.type === A.PLAIN);
1180
1178
  function At(t, e, s) {
1181
1179
  const n = t && ce(s) ? s.resolve(t.doc) : s;
1182
1180
  if (!Te(n))
@@ -1191,7 +1189,7 @@ function At(t, e, s) {
1191
1189
  });
1192
1190
  return e;
1193
1191
  }
1194
- function sr(t, e, s) {
1192
+ function nr(t, e, s) {
1195
1193
  if (e === null)
1196
1194
  return "";
1197
1195
  if (typeof e != "object")
@@ -1228,14 +1226,14 @@ class K {
1228
1226
  return Ys(s, n, this);
1229
1227
  }
1230
1228
  toString(e, s, n) {
1231
- return e != null && e.doc ? er(this, e, s, n) : JSON.stringify(this);
1229
+ return e != null && e.doc ? tr(this, e, s, n) : JSON.stringify(this);
1232
1230
  }
1233
1231
  }
1234
1232
  function Ws(t, e, s) {
1235
1233
  var r;
1236
- return (((r = e.inFlow) != null ? r : t.flow) ? ir : nr)(t, e, s);
1234
+ return (((r = e.inFlow) != null ? r : t.flow) ? rr : ir)(t, e, s);
1237
1235
  }
1238
- function nr({ comment: t, items: e }, s, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: a }) {
1236
+ function ir({ comment: t, items: e }, s, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: a }) {
1239
1237
  const { indent: l, options: { commentString: c } } = s, h = Object.assign({}, s, { indent: r, type: null });
1240
1238
  let u = !1;
1241
1239
  const p = [];
@@ -1267,7 +1265,7 @@ ${l}${f}` : `
1267
1265
  return t ? (y += `
1268
1266
  ` + H(c(t), l), a && a()) : u && o && o(), y;
1269
1267
  }
1270
- function ir({ items: t }, e, { flowChars: s, itemIndent: n }) {
1268
+ function rr({ items: t }, e, { flowChars: s, itemIndent: n }) {
1271
1269
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: a } } = e;
1272
1270
  n += r;
1273
1271
  const l = Object.assign({}, e, {
@@ -1624,7 +1622,7 @@ const Zs = {
1624
1622
  test: /^0x[0-9a-fA-F]+$/,
1625
1623
  resolve: (t, e, s) => xt(t, 2, 16, s),
1626
1624
  stringify: (t) => Xs(t, 16, "0x")
1627
- }, rr = [
1625
+ }, or = [
1628
1626
  Ce,
1629
1627
  Le,
1630
1628
  ut,
@@ -1640,7 +1638,7 @@ const Zs = {
1640
1638
  function bs(t) {
1641
1639
  return typeof t == "bigint" || Number.isInteger(t);
1642
1640
  }
1643
- const Ye = ({ value: t }) => JSON.stringify(t), or = [
1641
+ const Ye = ({ value: t }) => JSON.stringify(t), ar = [
1644
1642
  {
1645
1643
  identify: (t) => typeof t == "string",
1646
1644
  default: !0,
@@ -1681,14 +1679,14 @@ const Ye = ({ value: t }) => JSON.stringify(t), or = [
1681
1679
  resolve: (t) => parseFloat(t),
1682
1680
  stringify: Ye
1683
1681
  }
1684
- ], ar = {
1682
+ ], lr = {
1685
1683
  default: !0,
1686
1684
  tag: "",
1687
1685
  test: /^/,
1688
1686
  resolve(t, e) {
1689
1687
  return e(`Unresolved plain scalar ${JSON.stringify(t)}`), t;
1690
1688
  }
1691
- }, lr = [Ce, Le].concat(or, ar), Gt = {
1689
+ }, cr = [Ce, Le].concat(ar, lr), Gt = {
1692
1690
  identify: (t) => t instanceof Uint8Array,
1693
1691
  // Buffer inherits from Uint8Array
1694
1692
  default: !1,
@@ -1848,14 +1846,14 @@ const on = {
1848
1846
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1849
1847
  resolve: () => new A(!1),
1850
1848
  stringify: rn
1851
- }, cr = {
1849
+ }, fr = {
1852
1850
  identify: (t) => typeof t == "number",
1853
1851
  default: !0,
1854
1852
  tag: "tag:yaml.org,2002:float",
1855
1853
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1856
1854
  resolve: (t) => t.slice(-3).toLowerCase() === "nan" ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1857
1855
  stringify: Y
1858
- }, fr = {
1856
+ }, ur = {
1859
1857
  identify: (t) => typeof t == "number",
1860
1858
  default: !0,
1861
1859
  tag: "tag:yaml.org,2002:float",
@@ -1866,7 +1864,7 @@ const on = {
1866
1864
  const e = Number(t.value);
1867
1865
  return isFinite(e) ? e.toExponential() : Y(t);
1868
1866
  }
1869
- }, ur = {
1867
+ }, hr = {
1870
1868
  identify: (t) => typeof t == "number",
1871
1869
  default: !0,
1872
1870
  tag: "tag:yaml.org,2002:float",
@@ -1909,7 +1907,7 @@ function Zt(t, e, s) {
1909
1907
  }
1910
1908
  return Y(t);
1911
1909
  }
1912
- const hr = {
1910
+ const dr = {
1913
1911
  identify: Ue,
1914
1912
  default: !0,
1915
1913
  tag: "tag:yaml.org,2002:int",
@@ -1917,7 +1915,7 @@ const hr = {
1917
1915
  test: /^[-+]?0b[0-1_]+$/,
1918
1916
  resolve: (t, e, s) => pt(t, 2, 2, s),
1919
1917
  stringify: (t) => Zt(t, 2, "0b")
1920
- }, dr = {
1918
+ }, pr = {
1921
1919
  identify: Ue,
1922
1920
  default: !0,
1923
1921
  tag: "tag:yaml.org,2002:int",
@@ -1925,14 +1923,14 @@ const hr = {
1925
1923
  test: /^[-+]?0[0-7_]+$/,
1926
1924
  resolve: (t, e, s) => pt(t, 1, 8, s),
1927
1925
  stringify: (t) => Zt(t, 8, "0")
1928
- }, pr = {
1926
+ }, mr = {
1929
1927
  identify: Ue,
1930
1928
  default: !0,
1931
1929
  tag: "tag:yaml.org,2002:int",
1932
1930
  test: /^[-+]?[0-9][0-9_]*$/,
1933
1931
  resolve: (t, e, s) => pt(t, 0, 10, s),
1934
1932
  stringify: Y
1935
- }, mr = {
1933
+ }, yr = {
1936
1934
  identify: Ue,
1937
1935
  default: !0,
1938
1936
  tag: "tag:yaml.org,2002:int",
@@ -2059,13 +2057,13 @@ const cn = {
2059
2057
  ht,
2060
2058
  on,
2061
2059
  an,
2062
- hr,
2063
2060
  dr,
2064
2061
  pr,
2065
2062
  mr,
2066
- cr,
2063
+ yr,
2067
2064
  fr,
2068
2065
  ur,
2066
+ hr,
2069
2067
  Gt,
2070
2068
  Xt,
2071
2069
  Ht,
@@ -2074,9 +2072,9 @@ const cn = {
2074
2072
  fn,
2075
2073
  mt
2076
2074
  ], Ss = /* @__PURE__ */ new Map([
2077
- ["core", rr],
2075
+ ["core", or],
2078
2076
  ["failsafe", [Ce, Le, ut]],
2079
- ["json", lr],
2077
+ ["json", cr],
2080
2078
  ["yaml11", ws],
2081
2079
  ["yaml-1.1", ws]
2082
2080
  ]), ks = {
@@ -2097,7 +2095,7 @@ const cn = {
2097
2095
  seq: Le,
2098
2096
  set: es,
2099
2097
  timestamp: mt
2100
- }, yr = {
2098
+ }, gr = {
2101
2099
  "tag:yaml.org,2002:binary": Gt,
2102
2100
  "tag:yaml.org,2002:omap": Xt,
2103
2101
  "tag:yaml.org,2002:pairs": Ht,
@@ -2116,8 +2114,7 @@ function Nt(t, e) {
2116
2114
  if (Array.isArray(t))
2117
2115
  for (const n of t)
2118
2116
  s = s.concat(n);
2119
- else
2120
- typeof t == "function" && (s = t(s.slice()));
2117
+ else typeof t == "function" && (s = t(s.slice()));
2121
2118
  return s.map((n) => {
2122
2119
  if (typeof n != "string")
2123
2120
  return n;
@@ -2128,17 +2125,17 @@ function Nt(t, e) {
2128
2125
  throw new Error(`Unknown custom tag "${n}"; use one of ${r}`);
2129
2126
  });
2130
2127
  }
2131
- const gr = (t, e) => t.key < e.key ? -1 : t.key > e.key ? 1 : 0;
2128
+ const br = (t, e) => t.key < e.key ? -1 : t.key > e.key ? 1 : 0;
2132
2129
  class yt {
2133
2130
  constructor({ compat: e, customTags: s, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: a }) {
2134
- this.compat = Array.isArray(e) ? Nt(e, "compat") : e ? Nt(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? yr : {}, this.tags = Nt(s, this.name), this.toStringOptions = a != null ? a : null, Object.defineProperty(this, Z, { value: Ce }), Object.defineProperty(this, X, { value: ut }), Object.defineProperty(this, Ne, { value: Le }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? gr : null;
2131
+ this.compat = Array.isArray(e) ? Nt(e, "compat") : e ? Nt(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? gr : {}, this.tags = Nt(s, this.name), this.toStringOptions = a != null ? a : null, Object.defineProperty(this, Z, { value: Ce }), Object.defineProperty(this, X, { value: ut }), Object.defineProperty(this, Ne, { value: Le }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? br : null;
2135
2132
  }
2136
2133
  clone() {
2137
2134
  const e = Object.create(yt.prototype, Object.getOwnPropertyDescriptors(this));
2138
2135
  return e.tags = this.tags.slice(), e;
2139
2136
  }
2140
2137
  }
2141
- function br(t, e) {
2138
+ function wr(t, e) {
2142
2139
  var l;
2143
2140
  const s = [];
2144
2141
  let n = e.directives === !0;
@@ -2243,9 +2240,8 @@ class _e {
2243
2240
  else if (Array.isArray(s)) {
2244
2241
  const g = (w) => typeof w == "number" || w instanceof String || w instanceof Number, b = s.filter(g).map(String);
2245
2242
  b.length > 0 && (s = s.concat(b)), i = s;
2246
- } else
2247
- n === void 0 && s && (n = s, s = void 0);
2248
- const { aliasDuplicateObjects: r, anchorPrefix: o, flow: a, keepUndefined: l, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: u, setAnchors: p, sourceObjects: y } = Qi(
2243
+ } else n === void 0 && s && (n = s, s = void 0);
2244
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: a, keepUndefined: l, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: u, setAnchors: p, sourceObjects: y } = Yi(
2249
2245
  this,
2250
2246
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2251
2247
  o || "a"
@@ -2389,7 +2385,7 @@ class _e {
2389
2385
  const s = JSON.stringify(e.indent);
2390
2386
  throw new Error(`"indent" option must be a positive integer, not ${s}`);
2391
2387
  }
2392
- return br(this, e);
2388
+ return wr(this, e);
2393
2389
  }
2394
2390
  }
2395
2391
  function he(t) {
@@ -2537,7 +2533,7 @@ function hn(t, e, s) {
2537
2533
  return e.some((r) => i(r.key, s));
2538
2534
  }
2539
2535
  const Os = "All mapping items must start at the same column";
2540
- function wr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2536
+ function Sr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2541
2537
  var h, u;
2542
2538
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : z, a = new o(s.schema);
2543
2539
  s.atRoot && (s.atRoot = !1);
@@ -2558,8 +2554,7 @@ function wr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2558
2554
  continue;
2559
2555
  }
2560
2556
  (b.newlineAfterProp || Re(m)) && i(m != null ? m : y[y.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2561
- } else
2562
- ((u = b.found) == null ? void 0 : u.indent) !== n.indent && i(l, "BAD_INDENT", Os);
2557
+ } else ((u = b.found) == null ? void 0 : u.indent) !== n.indent && i(l, "BAD_INDENT", Os);
2563
2558
  const T = b.end, O = m ? t(s, m, b, i) : e(s, T, y, null, b, i);
2564
2559
  s.schema.compat && Pt(n.indent, m, i), hn(s, a.items, O) && i(T, "DUPLICATE_KEY", "Map keys must be unique");
2565
2560
  const N = Oe(f != null ? f : [], {
@@ -2585,7 +2580,7 @@ function wr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2585
2580
  }
2586
2581
  return c && c < l && i(c, "IMPOSSIBLE", "Map comment with trailing content"), a.range = [n.offset, l, c != null ? c : l], a;
2587
2582
  }
2588
- function Sr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2583
+ function kr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2589
2584
  var h;
2590
2585
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : te, a = new o(s.schema);
2591
2586
  s.atRoot && (s.atRoot = !1);
@@ -2639,7 +2634,7 @@ function Ve(t, e, s, n) {
2639
2634
  return { comment: i, offset: e };
2640
2635
  }
2641
2636
  const Et = "Block collections are not allowed within flow collections", Tt = (t) => t && (t.type === "block-map" || t.type === "block-seq");
2642
- function kr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2637
+ function Or({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2643
2638
  var g, b;
2644
2639
  const o = n.start.source === "{", a = o ? "flow map" : "flow sequence", l = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? z : te, c = new l(s.schema);
2645
2640
  c.flow = !0;
@@ -2673,18 +2668,17 @@ function kr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2673
2668
  S.comma && i(S.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${a}`);
2674
2669
  else if (S.comma || i(S.start, "MISSING_CHAR", `Missing , between ${a} items`), S.comment) {
2675
2670
  let L = "";
2676
- e:
2677
- for (const M of O)
2678
- switch (M.type) {
2679
- case "comma":
2680
- case "space":
2681
- break;
2682
- case "comment":
2683
- L = M.source.substring(1);
2684
- break e;
2685
- default:
2686
- break e;
2687
- }
2671
+ e: for (const M of O)
2672
+ switch (M.type) {
2673
+ case "comma":
2674
+ case "space":
2675
+ break;
2676
+ case "comment":
2677
+ L = M.source.substring(1);
2678
+ break e;
2679
+ default:
2680
+ break e;
2681
+ }
2688
2682
  if (L) {
2689
2683
  let M = c.items[c.items.length - 1];
2690
2684
  C(M) && (M = (b = M.value) != null ? b : M.key), M.comment ? M.comment += `
@@ -2719,8 +2713,7 @@ function kr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2719
2713
  }
2720
2714
  S.start < P.found.offset - 1024 && i(P.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
2721
2715
  }
2722
- } else
2723
- $ && ("source" in $ && $.source && $.source[0] === ":" ? i($, "MISSING_CHAR", `Missing space after : in ${a}`) : i(P.start, "MISSING_CHAR", `Missing , or : between ${a} items`));
2716
+ } else $ && ("source" in $ && $.source && $.source[0] === ":" ? i($, "MISSING_CHAR", `Missing space after : in ${a}`) : i(P.start, "MISSING_CHAR", `Missing , or : between ${a} items`));
2724
2717
  const ne = $ ? t(s, $, P, i) : P.found ? e(s, P.end, E, null, P, i) : null;
2725
2718
  ne ? Tt($) && i(ne.range, "BLOCK_IN_FLOW", Et) : P.comment && (M.comment ? M.comment += `
2726
2719
  ` + P.comment : M.comment = P.comment);
@@ -2752,10 +2745,10 @@ function kr({ composeNode: t, composeEmptyNode: e }, s, n, i, r) {
2752
2745
  return c;
2753
2746
  }
2754
2747
  function It(t, e, s, n, i, r) {
2755
- const o = s.type === "block-map" ? wr(t, e, s, n, r) : s.type === "block-seq" ? Sr(t, e, s, n, r) : kr(t, e, s, n, r), a = o.constructor;
2748
+ const o = s.type === "block-map" ? Sr(t, e, s, n, r) : s.type === "block-seq" ? kr(t, e, s, n, r) : Or(t, e, s, n, r), a = o.constructor;
2756
2749
  return i === "!" || i === a.tagName ? (o.tag = a.tagName, o) : (i && (o.tag = i), o);
2757
2750
  }
2758
- function Or(t, e, s, n, i) {
2751
+ function Ar(t, e, s, n, i) {
2759
2752
  var p, y;
2760
2753
  const r = n.tag, o = r ? e.directives.tagName(r.source, (m) => i(r, "TAG_RESOLVE_FAILED", m)) : null;
2761
2754
  if (s.type === "block-seq") {
@@ -2777,10 +2770,10 @@ function Or(t, e, s, n, i) {
2777
2770
  return u.range = c.range, u.tag = o, l != null && l.format && (u.format = l.format), u;
2778
2771
  }
2779
2772
  function dn(t, e, s) {
2780
- const n = e.offset, i = Ar(e, t.options.strict, s);
2773
+ const n = e.offset, i = Nr(e, t.options.strict, s);
2781
2774
  if (!i)
2782
2775
  return { value: "", type: null, comment: "", range: [n, n, n] };
2783
- const r = i.mode === ">" ? A.BLOCK_FOLDED : A.BLOCK_LITERAL, o = e.source ? Nr(e.source) : [];
2776
+ const r = i.mode === ">" ? A.BLOCK_FOLDED : A.BLOCK_LITERAL, o = e.source ? Er(e.source) : [];
2784
2777
  let a = o.length;
2785
2778
  for (let f = o.length - 1; f >= 0; --f) {
2786
2779
  const g = o[f][1];
@@ -2849,7 +2842,7 @@ function dn(t, e, s) {
2849
2842
  const m = n + i.length + e.source.length;
2850
2843
  return { value: u, type: r, comment: i.comment, range: [n, m, m] };
2851
2844
  }
2852
- function Ar({ offset: t, props: e }, s, n) {
2845
+ function Nr({ offset: t, props: e }, s, n) {
2853
2846
  if (e[0].type !== "block-scalar-header")
2854
2847
  return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
2855
2848
  const { source: i } = e[0], r = i[0];
@@ -2889,7 +2882,7 @@ function Ar({ offset: t, props: e }, s, n) {
2889
2882
  }
2890
2883
  return { mode: r, indent: o, chomp: a, comment: h, length: u };
2891
2884
  }
2892
- function Nr(t) {
2885
+ function Er(t) {
2893
2886
  const e = t.split(/\n( *)/), s = e[0], n = s.match(/^( *)/), r = [n != null && n[1] ? [n[1], s.slice(n[1].length)] : ["", s]];
2894
2887
  for (let o = 1; o < e.length; o += 2)
2895
2888
  r.push([e[o], e[o + 1]]);
@@ -2901,13 +2894,13 @@ function pn(t, e, s) {
2901
2894
  const c = (p, y, m) => s(n + p, y, m);
2902
2895
  switch (i) {
2903
2896
  case "scalar":
2904
- a = A.PLAIN, l = Er(r, c);
2897
+ a = A.PLAIN, l = Tr(r, c);
2905
2898
  break;
2906
2899
  case "single-quoted-scalar":
2907
- a = A.QUOTE_SINGLE, l = Tr(r, c);
2900
+ a = A.QUOTE_SINGLE, l = Ir(r, c);
2908
2901
  break;
2909
2902
  case "double-quoted-scalar":
2910
- a = A.QUOTE_DOUBLE, l = Ir(r, c);
2903
+ a = A.QUOTE_DOUBLE, l = Cr(r, c);
2911
2904
  break;
2912
2905
  default:
2913
2906
  return s(t, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -2925,7 +2918,7 @@ function pn(t, e, s) {
2925
2918
  range: [n, h, u.offset]
2926
2919
  };
2927
2920
  }
2928
- function Er(t, e) {
2921
+ function Tr(t, e) {
2929
2922
  let s = "";
2930
2923
  switch (t[0]) {
2931
2924
  case " ":
@@ -2950,7 +2943,7 @@ function Er(t, e) {
2950
2943
  }
2951
2944
  return s && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${s}`), mn(t);
2952
2945
  }
2953
- function Tr(t, e) {
2946
+ function Ir(t, e) {
2954
2947
  return (t[t.length - 1] !== "'" || t.length === 1) && e(t.length, "MISSING_CHAR", "Missing closing 'quote"), mn(t.slice(1, -1)).replace(/''/g, "'");
2955
2948
  }
2956
2949
  function mn(t) {
@@ -2974,7 +2967,7 @@ function mn(t) {
2974
2967
  const a = new RegExp("[ \\t]*(.*)", "sy");
2975
2968
  return a.lastIndex = o, n = a.exec(t), i + r + ((l = n == null ? void 0 : n[1]) != null ? l : "");
2976
2969
  }
2977
- function Ir(t, e) {
2970
+ function Cr(t, e) {
2978
2971
  let s = "";
2979
2972
  for (let n = 1; n < t.length - 1; ++n) {
2980
2973
  const i = t[n];
@@ -2982,11 +2975,11 @@ function Ir(t, e) {
2982
2975
  `))
2983
2976
  if (i === `
2984
2977
  `) {
2985
- const { fold: r, offset: o } = Cr(t, n);
2978
+ const { fold: r, offset: o } = Lr(t, n);
2986
2979
  s += r, n = o;
2987
2980
  } else if (i === "\\") {
2988
2981
  let r = t[++n];
2989
- const o = Lr[r];
2982
+ const o = _r[r];
2990
2983
  if (o)
2991
2984
  s += o;
2992
2985
  else if (r === `
@@ -2999,7 +2992,7 @@ function Ir(t, e) {
2999
2992
  r = t[++n + 1];
3000
2993
  else if (r === "x" || r === "u" || r === "U") {
3001
2994
  const a = { x: 2, u: 4, U: 8 }[r];
3002
- s += _r(t, n + 1, a, e), n += a;
2995
+ s += $r(t, n + 1, a, e), n += a;
3003
2996
  } else {
3004
2997
  const a = t.substr(n - 1, 2);
3005
2998
  e(n - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${a}`), s += a;
@@ -3017,7 +3010,7 @@ function Ir(t, e) {
3017
3010
  }
3018
3011
  return (t[t.length - 1] !== '"' || t.length === 1) && e(t.length, "MISSING_CHAR", 'Missing closing "quote'), s;
3019
3012
  }
3020
- function Cr(t, e) {
3013
+ function Lr(t, e) {
3021
3014
  let s = "", n = t[e + 1];
3022
3015
  for (; (n === " " || n === " " || n === `
3023
3016
  ` || n === "\r") && !(n === "\r" && t[e + 2] !== `
@@ -3027,7 +3020,7 @@ function Cr(t, e) {
3027
3020
  `), e += 1, n = t[e + 1];
3028
3021
  return s || (s = " "), { fold: s, offset: e };
3029
3022
  }
3030
- const Lr = {
3023
+ const _r = {
3031
3024
  0: "\0",
3032
3025
  // null character
3033
3026
  a: "\x07",
@@ -3061,7 +3054,7 @@ const Lr = {
3061
3054
  "\\": "\\",
3062
3055
  " ": " "
3063
3056
  };
3064
- function _r(t, e, s, n) {
3057
+ function $r(t, e, s, n) {
3065
3058
  const i = t.substr(e, s), o = i.length === s && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
3066
3059
  if (isNaN(o)) {
3067
3060
  const a = t.substr(e - 2, s + 2);
@@ -3070,7 +3063,7 @@ function _r(t, e, s, n) {
3070
3063
  return String.fromCodePoint(o);
3071
3064
  }
3072
3065
  function yn(t, e, s, n) {
3073
- const { value: i, type: r, comment: o, range: a } = e.type === "block-scalar" ? dn(t, e, n) : pn(e, t.options.strict, n), l = s ? t.directives.tagName(s.source, (u) => n(s, "TAG_RESOLVE_FAILED", u)) : null, c = s && l ? $r(t.schema, i, l, s, n) : e.type === "scalar" ? Mr(t, i, e, n) : t.schema[X];
3066
+ const { value: i, type: r, comment: o, range: a } = e.type === "block-scalar" ? dn(t, e, n) : pn(e, t.options.strict, n), l = s ? t.directives.tagName(s.source, (u) => n(s, "TAG_RESOLVE_FAILED", u)) : null, c = s && l ? Mr(t.schema, i, l, s, n) : e.type === "scalar" ? Dr(t, i, e, n) : t.schema[X];
3074
3067
  let h;
3075
3068
  try {
3076
3069
  const u = c.resolve(i, (p) => n(s != null ? s : e, "TAG_RESOLVE_FAILED", p), t.options);
@@ -3081,7 +3074,7 @@ function yn(t, e, s, n) {
3081
3074
  }
3082
3075
  return h.range = a, h.source = i, r && (h.type = r), l && (h.tag = l), c.format && (h.format = c.format), o && (h.comment = o), h;
3083
3076
  }
3084
- function $r(t, e, s, n, i) {
3077
+ function Mr(t, e, s, n, i) {
3085
3078
  var a;
3086
3079
  if (s === "!")
3087
3080
  return t[X];
@@ -3098,7 +3091,7 @@ function $r(t, e, s, n, i) {
3098
3091
  const o = t.knownTags[s];
3099
3092
  return o && !o.collection ? (t.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${s}`, s !== "tag:yaml.org,2002:str"), t[X]);
3100
3093
  }
3101
- function Mr({ directives: t, schema: e }, s, n, i) {
3094
+ function Dr({ directives: t, schema: e }, s, n, i) {
3102
3095
  var o;
3103
3096
  const r = e.tags.find((a) => {
3104
3097
  var l;
@@ -3116,7 +3109,7 @@ function Mr({ directives: t, schema: e }, s, n, i) {
3116
3109
  }
3117
3110
  return r;
3118
3111
  }
3119
- function Dr(t, e, s) {
3112
+ function Br(t, e, s) {
3120
3113
  if (e) {
3121
3114
  s === null && (s = e.length);
3122
3115
  for (let n = s - 1; n >= 0; --n) {
@@ -3135,13 +3128,13 @@ function Dr(t, e, s) {
3135
3128
  }
3136
3129
  return t;
3137
3130
  }
3138
- const Br = { composeNode: gn, composeEmptyNode: ns };
3131
+ const Pr = { composeNode: gn, composeEmptyNode: ns };
3139
3132
  function gn(t, e, s, n) {
3140
3133
  const { spaceBefore: i, comment: r, anchor: o, tag: a } = s;
3141
3134
  let l, c = !0;
3142
3135
  switch (e.type) {
3143
3136
  case "alias":
3144
- l = Pr(t, e, n), (o || a) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3137
+ l = Rr(t, e, n), (o || a) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3145
3138
  break;
3146
3139
  case "scalar":
3147
3140
  case "single-quoted-scalar":
@@ -3152,7 +3145,7 @@ function gn(t, e, s, n) {
3152
3145
  case "block-map":
3153
3146
  case "block-seq":
3154
3147
  case "flow-collection":
3155
- l = Or(Br, t, e, s, n), o && (l.anchor = o.source.substring(1));
3148
+ l = Ar(Pr, t, e, s, n), o && (l.anchor = o.source.substring(1));
3156
3149
  break;
3157
3150
  default: {
3158
3151
  const h = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
@@ -3164,19 +3157,19 @@ function gn(t, e, s, n) {
3164
3157
  function ns(t, e, s, n, { spaceBefore: i, comment: r, anchor: o, tag: a, end: l }, c) {
3165
3158
  const h = {
3166
3159
  type: "scalar",
3167
- offset: Dr(e, s, n),
3160
+ offset: Br(e, s, n),
3168
3161
  indent: -1,
3169
3162
  source: ""
3170
3163
  }, u = yn(t, h, a, c);
3171
3164
  return o && (u.anchor = o.source.substring(1), u.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (u.spaceBefore = !0), r && (u.comment = r, u.range[2] = l), u;
3172
3165
  }
3173
- function Pr({ options: t }, { offset: e, source: s, end: n }, i) {
3166
+ function Rr({ options: t }, { offset: e, source: s, end: n }, i) {
3174
3167
  const r = new at(s.substring(1));
3175
3168
  r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + s.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
3176
3169
  const o = e + s.length, a = Ve(n, o, t.strict, i);
3177
3170
  return r.range = [e, o, a.offset], a.comment && (r.comment = a.comment), r;
3178
3171
  }
3179
- function Rr(t, e, { offset: s, start: n, value: i, end: r }, o) {
3172
+ function Fr(t, e, { offset: s, start: n, value: i, end: r }, o) {
3180
3173
  const a = Object.assign({ _directives: e }, t), l = new _e(void 0, a), c = {
3181
3174
  atRoot: !0,
3182
3175
  directives: l.directives,
@@ -3287,7 +3280,7 @@ ${o}` : n;
3287
3280
  }), this.prelude.push(e.source), this.atDirectives = !0;
3288
3281
  break;
3289
3282
  case "document": {
3290
- const s = Rr(this.options, this.directives, e, this.onError);
3283
+ const s = Fr(this.options, this.directives, e, this.onError);
3291
3284
  this.atDirectives && !s.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(s, !1), this.doc && (yield this.doc), this.doc = s, this.atDirectives = !1;
3292
3285
  break;
3293
3286
  }
@@ -3338,7 +3331,7 @@ ${s.comment}` : s.comment;
3338
3331
  }
3339
3332
  }
3340
3333
  }
3341
- function Fr(t, e = !0, s) {
3334
+ function Kr(t, e = !0, s) {
3342
3335
  if (t) {
3343
3336
  const n = (i, r, o) => {
3344
3337
  const a = typeof i == "number" ? i : Array.isArray(i) ? i[0] : i.offset;
@@ -3358,7 +3351,7 @@ function Fr(t, e = !0, s) {
3358
3351
  }
3359
3352
  return null;
3360
3353
  }
3361
- function Kr(t, e) {
3354
+ function jr(t, e) {
3362
3355
  var c;
3363
3356
  const { implicitKey: s = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, a = ze({ type: o, value: t }, {
3364
3357
  implicitKey: s,
@@ -3388,7 +3381,7 @@ function Kr(t, e) {
3388
3381
  return { type: "scalar", offset: r, indent: n, source: a, end: l };
3389
3382
  }
3390
3383
  }
3391
- function jr(t, e, s = {}) {
3384
+ function qr(t, e, s = {}) {
3392
3385
  let { afterKey: n = !1, implicitKey: i = !1, inFlow: r = !1, type: o } = s, a = "indent" in t ? t.indent : null;
3393
3386
  if (n && typeof a == "number" && (a += 2), !o)
3394
3387
  switch (t.type) {
@@ -3417,7 +3410,7 @@ function jr(t, e, s = {}) {
3417
3410
  switch (l[0]) {
3418
3411
  case "|":
3419
3412
  case ">":
3420
- qr(t, l);
3413
+ zr(t, l);
3421
3414
  break;
3422
3415
  case '"':
3423
3416
  Ct(t, l, "double-quoted-scalar");
@@ -3429,7 +3422,7 @@ function jr(t, e, s = {}) {
3429
3422
  Ct(t, l, "scalar");
3430
3423
  }
3431
3424
  }
3432
- function qr(t, e) {
3425
+ function zr(t, e) {
3433
3426
  const s = e.indexOf(`
3434
3427
  `), n = e.substring(0, s), i = e.substring(s + 1) + `
3435
3428
  `;
@@ -3493,7 +3486,7 @@ function Ct(t, e, s) {
3493
3486
  }
3494
3487
  }
3495
3488
  }
3496
- const zr = (t) => "type" in t ? it(t) : Ze(t);
3489
+ const Ur = (t) => "type" in t ? it(t) : Ze(t);
3497
3490
  function it(t) {
3498
3491
  switch (t.type) {
3499
3492
  case "block-scalar": {
@@ -3542,12 +3535,12 @@ function Ze({ start: t, key: e, sep: s, value: n }) {
3542
3535
  i += r.source;
3543
3536
  return n && (i += it(n)), i;
3544
3537
  }
3545
- const Rt = Symbol("break visit"), Ur = Symbol("skip children"), wn = Symbol("remove item");
3538
+ const Rt = Symbol("break visit"), Vr = Symbol("skip children"), wn = Symbol("remove item");
3546
3539
  function le(t, e) {
3547
3540
  "type" in t && t.type === "document" && (t = { start: t.start, value: t.value }), Sn(Object.freeze([]), t, e);
3548
3541
  }
3549
3542
  le.BREAK = Rt;
3550
- le.SKIP = Ur;
3543
+ le.SKIP = Vr;
3551
3544
  le.REMOVE = wn;
3552
3545
  le.itemAtPath = (t, e) => {
3553
3546
  let s = t;
@@ -3588,8 +3581,8 @@ function Sn(t, e, s) {
3588
3581
  }
3589
3582
  return typeof n == "function" ? n(e, t) : n;
3590
3583
  }
3591
- const gt = "\uFEFF", bt = "", wt = "", Fe = "", Vr = (t) => !!t && "items" in t, vr = (t) => !!t && (t.type === "scalar" || t.type === "single-quoted-scalar" || t.type === "double-quoted-scalar" || t.type === "block-scalar");
3592
- function Jr(t) {
3584
+ const gt = "\uFEFF", bt = "", wt = "", Fe = "", vr = (t) => !!t && "items" in t, Jr = (t) => !!t && (t.type === "scalar" || t.type === "single-quoted-scalar" || t.type === "double-quoted-scalar" || t.type === "block-scalar");
3585
+ function Qr(t) {
3593
3586
  switch (t) {
3594
3587
  case gt:
3595
3588
  return "<BOM>";
@@ -3664,19 +3657,19 @@ function kn(t) {
3664
3657
  }
3665
3658
  return null;
3666
3659
  }
3667
- const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3660
+ const Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3668
3661
  __proto__: null,
3669
3662
  BOM: gt,
3670
3663
  DOCUMENT: bt,
3671
3664
  FLOW_END: wt,
3672
3665
  SCALAR: Fe,
3673
- createScalarToken: Kr,
3674
- isCollection: Vr,
3675
- isScalar: vr,
3676
- prettyToken: Jr,
3677
- resolveAsScalar: Fr,
3678
- setScalarValue: jr,
3679
- stringify: zr,
3666
+ createScalarToken: jr,
3667
+ isCollection: vr,
3668
+ isScalar: Jr,
3669
+ prettyToken: Qr,
3670
+ resolveAsScalar: Kr,
3671
+ setScalarValue: qr,
3672
+ stringify: Ur,
3680
3673
  tokenType: kn,
3681
3674
  visit: le
3682
3675
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3693,8 +3686,8 @@ function Q(t) {
3693
3686
  return !1;
3694
3687
  }
3695
3688
  }
3696
- const Ns = new Set("0123456789ABCDEFabcdef"), Yr = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), We = new Set(",[]{}"), Wr = new Set(` ,[]{}
3697
- \r `), Lt = (t) => !t || Wr.has(t);
3689
+ const Ns = new Set("0123456789ABCDEFabcdef"), Wr = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), We = new Set(",[]{}"), xr = new Set(` ,[]{}
3690
+ \r `), Lt = (t) => !t || xr.has(t);
3698
3691
  class On {
3699
3692
  constructor() {
3700
3693
  this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
@@ -3955,27 +3948,26 @@ class On {
3955
3948
  }
3956
3949
  *parseBlockScalar() {
3957
3950
  let e = this.pos - 1, s = 0, n;
3958
- e:
3959
- for (let r = this.pos; n = this.buffer[r]; ++r)
3960
- switch (n) {
3961
- case " ":
3962
- s += 1;
3963
- break;
3964
- case `
3951
+ e: for (let r = this.pos; n = this.buffer[r]; ++r)
3952
+ switch (n) {
3953
+ case " ":
3954
+ s += 1;
3955
+ break;
3956
+ case `
3965
3957
  `:
3966
- e = r, s = 0;
3967
- break;
3968
- case "\r": {
3969
- const o = this.buffer[r + 1];
3970
- if (!o && !this.atEnd)
3971
- return this.setNext("block-scalar");
3972
- if (o === `
3958
+ e = r, s = 0;
3959
+ break;
3960
+ case "\r": {
3961
+ const o = this.buffer[r + 1];
3962
+ if (!o && !this.atEnd)
3963
+ return this.setNext("block-scalar");
3964
+ if (o === `
3973
3965
  `)
3974
- break;
3975
- }
3976
- default:
3977
- break e;
3966
+ break;
3978
3967
  }
3968
+ default:
3969
+ break e;
3970
+ }
3979
3971
  if (!n && !this.atEnd)
3980
3972
  return this.setNext("block-scalar");
3981
3973
  if (s >= this.indentNext) {
@@ -4077,7 +4069,7 @@ class On {
4077
4069
  } else {
4078
4070
  let e = this.pos + 1, s = this.buffer[e];
4079
4071
  for (; s; )
4080
- if (Yr.has(s))
4072
+ if (Wr.has(s))
4081
4073
  s = this.buffer[++e];
4082
4074
  else if (s === "%" && Ns.has(this.buffer[e + 1]) && Ns.has(this.buffer[e + 2]))
4083
4075
  s = this.buffer[e += 3];
@@ -4174,16 +4166,15 @@ function de(t) {
4174
4166
  if (t.length === 0)
4175
4167
  return [];
4176
4168
  let e = t.length;
4177
- e:
4178
- for (; --e >= 0; )
4179
- switch (t[e].type) {
4180
- case "doc-start":
4181
- case "explicit-key-ind":
4182
- case "map-value-ind":
4183
- case "seq-item-ind":
4184
- case "newline":
4185
- break e;
4186
- }
4169
+ e: for (; --e >= 0; )
4170
+ switch (t[e].type) {
4171
+ case "doc-start":
4172
+ case "explicit-key-ind":
4173
+ case "map-value-ind":
4174
+ case "seq-item-ind":
4175
+ case "newline":
4176
+ break e;
4177
+ }
4187
4178
  for (; ((s = t[++e]) == null ? void 0 : s.type) === "space"; )
4188
4179
  ;
4189
4180
  return t.splice(e, t.length);
@@ -4448,8 +4439,7 @@ class rs {
4448
4439
  if (this.onKeyLine = !1, s.value) {
4449
4440
  const i = "end" in s.value ? s.value.end : void 0, r = Array.isArray(i) ? i[i.length - 1] : void 0;
4450
4441
  (r == null ? void 0 : r.type) === "comment" ? i == null || i.push(this.sourceToken) : e.items.push({ start: [this.sourceToken] });
4451
- } else
4452
- s.sep ? s.sep.push(this.sourceToken) : s.start.push(this.sourceToken);
4442
+ } else s.sep ? s.sep.push(this.sourceToken) : s.start.push(this.sourceToken);
4453
4443
  return;
4454
4444
  case "space":
4455
4445
  case "comment":
@@ -4524,8 +4514,7 @@ class rs {
4524
4514
  indent: this.indent,
4525
4515
  items: [{ start: a, key: l, sep: c }]
4526
4516
  });
4527
- } else
4528
- o.length > 0 ? s.sep = s.sep.concat(o, this.sourceToken) : s.sep.push(this.sourceToken);
4517
+ } else o.length > 0 ? s.sep = s.sep.concat(o, this.sourceToken) : s.sep.push(this.sourceToken);
4529
4518
  else if (ie(s.start, "newline"))
4530
4519
  Object.assign(s, { key: null, sep: [this.sourceToken] });
4531
4520
  else {
@@ -4769,7 +4758,7 @@ function En(t) {
4769
4758
  const e = t.prettyErrors !== !1;
4770
4759
  return { lineCounter: t.lineCounter || e && new An() || null, prettyErrors: e };
4771
4760
  }
4772
- function xr(t, e = {}) {
4761
+ function Gr(t, e = {}) {
4773
4762
  const { lineCounter: s, prettyErrors: n } = En(e), i = new rs(s == null ? void 0 : s.addNewLine), r = new is(e), o = Array.from(r.compose(i.parse(t)));
4774
4763
  if (n && s)
4775
4764
  for (const a of o)
@@ -4788,7 +4777,7 @@ function Tn(t, e = {}) {
4788
4777
  }
4789
4778
  return n && s && (o.errors.forEach(nt(t, s)), o.warnings.forEach(nt(t, s))), o;
4790
4779
  }
4791
- function Gr(t, e, s) {
4780
+ function Hr(t, e, s) {
4792
4781
  let n;
4793
4782
  typeof e == "function" ? n = e : s === void 0 && e && typeof e == "object" && (s = e);
4794
4783
  const i = Tn(t, s);
@@ -4801,7 +4790,7 @@ function Gr(t, e, s) {
4801
4790
  }
4802
4791
  return i.toJS(Object.assign({ reviver: n }, s));
4803
4792
  }
4804
- function Hr(t, e, s) {
4793
+ function Xr(t, e, s) {
4805
4794
  var i;
4806
4795
  let n = null;
4807
4796
  if (typeof e == "function" || Array.isArray(e) ? n = e : s === void 0 && e && (s = e), typeof s == "string" && (s = s.length), typeof s == "number") {
@@ -4818,7 +4807,7 @@ function Hr(t, e, s) {
4818
4807
  const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4819
4808
  __proto__: null,
4820
4809
  Alias: at,
4821
- CST: Qr,
4810
+ CST: Yr,
4822
4811
  Composer: is,
4823
4812
  Document: _e,
4824
4813
  Lexer: On,
@@ -4840,13 +4829,13 @@ const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4840
4829
  isPair: C,
4841
4830
  isScalar: I,
4842
4831
  isSeq: Ie,
4843
- parse: Gr,
4844
- parseAllDocuments: xr,
4832
+ parse: Hr,
4833
+ parseAllDocuments: Gr,
4845
4834
  parseDocument: Tn,
4846
- stringify: Hr,
4835
+ stringify: Xr,
4847
4836
  visit: ee,
4848
4837
  visitAsync: ot
4849
- }, Symbol.toStringTag, { value: "Module" })), Xr = `# This is your query - you can modify it directly and click Run to see new results.
4838
+ }, Symbol.toStringTag, { value: "Module" })), Zr = `# This is your query - you can modify it directly and click Run to see new results.
4850
4839
  # Try uncommenting the elements below
4851
4840
  # To learn more about the query syntax, visit [Doc URL]
4852
4841
  ---
@@ -4888,7 +4877,7 @@ model: {{dataSourceTitle}}
4888
4877
  # - name: Dimension2
4889
4878
  # - name: Measure1
4890
4879
  # - name: Measure2`;
4891
- class xo {
4880
+ class Go {
4892
4881
  /**
4893
4882
  * Constructor for QueryTranslator.
4894
4883
  *
@@ -4902,7 +4891,7 @@ class xo {
4902
4891
  return e.reduce((s, n) => {
4903
4892
  const i = n.id;
4904
4893
  s[i] = n;
4905
- const r = Wn(i);
4894
+ const r = xn(i);
4906
4895
  return i !== r && (s[r] = J(R({}, n), {
4907
4896
  id: r
4908
4897
  })), s;
@@ -4966,8 +4955,7 @@ class xo {
4966
4955
  simplifyMetadataItemFilter(e) {
4967
4956
  var i;
4968
4957
  const s = e;
4969
- if (s.panel !== "scope")
4970
- return s;
4958
+ if (s.panel !== "scope") return s;
4971
4959
  delete s.format;
4972
4960
  const { jaql: n } = s;
4973
4961
  return (i = n.filter) != null && i.by && (n.filter.by = this.simplifyAggFormula(n.filter.by)), J(R({}, s), {
@@ -5019,7 +5007,7 @@ class xo {
5019
5007
  simplifyChartRecommendations(e) {
5020
5008
  if (!("axesMapping" in e))
5021
5009
  return {};
5022
- const { chartType: s, axesMapping: n, styleOptions: i } = e, r = Object.entries(n).reduce((o, [a, l]) => (o[a] = l.map((c) => si(c)), o), {});
5010
+ const { chartType: s, axesMapping: n, styleOptions: i } = e, r = Object.entries(n).reduce((o, [a, l]) => (o[a] = l.map((c) => ni(c)), o), {});
5023
5011
  return {
5024
5012
  chartType: s,
5025
5013
  dataOptions: r,
@@ -5064,13 +5052,13 @@ class xo {
5064
5052
  */
5065
5053
  stringifySimple(e) {
5066
5054
  const r = e, { queryTitle: s } = r, n = ds(r, ["queryTitle"]), i = new Is.Document(n);
5067
- return i.commentBefore = ` ${xn(s)}`, i.directives && (i.directives.docStart = !0), String(i);
5055
+ return i.commentBefore = ` ${Gn(s)}`, i.directives && (i.directives.docStart = !0), String(i);
5068
5056
  }
5069
5057
  /**
5070
5058
  * Returns the query template.
5071
5059
  */
5072
5060
  getQueryTemplate() {
5073
- return Gn(Xr, {
5061
+ return Hn(Zr, {
5074
5062
  dataSourceTitle: this.contextTitle
5075
5063
  });
5076
5064
  }
@@ -5082,7 +5070,7 @@ class xo {
5082
5070
  */
5083
5071
  parseSimple(e) {
5084
5072
  try {
5085
- const s = Is.parseDocument(e), { commentBefore: n } = s, i = Hn(s.toJS());
5073
+ const s = Is.parseDocument(e), { commentBefore: n } = s, i = Xn(s.toJS());
5086
5074
  return i.queryTitle = (n == null ? void 0 : n.trim()) || "", i;
5087
5075
  } catch (s) {
5088
5076
  console.error("Error parsing the YAML string", s);
@@ -5100,7 +5088,7 @@ class xo {
5100
5088
  return {};
5101
5089
  const { chartType: s, dataOptions: n, styleOptions: i } = e;
5102
5090
  return {
5103
- chartFamily: ni(s),
5091
+ chartFamily: ri(s),
5104
5092
  chartType: s,
5105
5093
  axesMapping: n,
5106
5094
  styleOptions: i
@@ -5166,20 +5154,20 @@ class xo {
5166
5154
  };
5167
5155
  }
5168
5156
  }
5169
- const Zr = (t, e) => {
5157
+ const eo = (t, e) => {
5170
5158
  const s = {
5171
5159
  chart: "chartWidgetPropsTmpl",
5172
5160
  pivot: "pivotTableWidgetPropsTmpl"
5173
5161
  };
5174
- return `[${t.map((n) => Xn(n, e, s)).join(`,
5162
+ return `[${t.map((n) => Zn(n, e, s)).join(`,
5175
5163
  `)}]`;
5176
- }, eo = "dashboardByIdTmpl", to = "dashboardTmpl", so = ({ dashboardOid: t, uiFramework: e = "react" }) => rt(eo, {
5164
+ }, to = "dashboardByIdTmpl", so = "dashboardTmpl", no = ({ dashboardOid: t, uiFramework: e = "react" }) => rt(to, {
5177
5165
  dashboardOid: t
5178
- }, e), no = ({ dashboardProps: t, uiFramework: e = "react" }) => {
5179
- const s = to, n = t.widgets.some((r) => (ri(r) || oi(r)) && zt(r)), i = {
5166
+ }, e), io = ({ dashboardProps: t, uiFramework: e = "react" }) => {
5167
+ const s = so, n = t.widgets.some((r) => (oi(r) || ai(r)) && zt(r)), i = {
5180
5168
  titleString: t.title,
5181
5169
  defaultDataSourceString: Ut(t.defaultDataSource),
5182
- widgetsString: Zr(t.widgets, e),
5170
+ widgetsString: eo(t.widgets, e),
5183
5171
  filtersString: Vt(t.filters),
5184
5172
  componentString: "Dashboard",
5185
5173
  extraImportsString: vt(t.filters || t.widgets.map((r) => "filters" in r ? r.filters : []).flat().filter((r) => r !== void 0) || [], n),
@@ -5189,10 +5177,10 @@ const Zr = (t, e) => {
5189
5177
  styleOptionsString: G(t.styleOptions || {}, Je)
5190
5178
  };
5191
5179
  return rt(s, i, e);
5192
- }, io = (t) => Zn(t) ? so(t) : no(t), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5180
+ }, ro = (t) => ei(t) ? no(t) : io(t), Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5193
5181
  __proto__: null,
5194
- toDashboardCode: io
5195
- }, Symbol.toStringTag, { value: "Module" })), ro = "executeQueryTmpl", oo = "executePivotQueryTmpl", ao = (t, e, s) => {
5182
+ toDashboardCode: ro
5183
+ }, Symbol.toStringTag, { value: "Module" })), oo = "executeQueryTmpl", ao = "executePivotQueryTmpl", lo = (t, e, s) => {
5196
5184
  const n = zt(t), i = {
5197
5185
  dataSourceString: Ut(t.dataSource),
5198
5186
  dimensionsString: G(t.dimensions || []),
@@ -5202,7 +5190,7 @@ const Zr = (t, e) => {
5202
5190
  extraImportsString: vt(t.filters || [], n)
5203
5191
  };
5204
5192
  return rt(s, i, e);
5205
- }, lo = (t, e, s) => {
5193
+ }, co = (t, e, s) => {
5206
5194
  const n = zt(t), i = {
5207
5195
  dataSourceString: Ut(t.dataSource),
5208
5196
  rowsString: G(t.rows || []),
@@ -5211,12 +5199,12 @@ const Zr = (t, e) => {
5211
5199
  extraImportsString: vt(t.filters || [], n)
5212
5200
  };
5213
5201
  return rt(s, i, e);
5214
- }, co = ({ queryParams: t, uiFramework: e = "react" }) => ao(t, e, ro), fo = ({ pivotQueryParams: t, uiFramework: e = "react" }) => lo(t, e, oo), uo = (t) => co(t), ho = (t) => fo(t), Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5202
+ }, fo = ({ queryParams: t, uiFramework: e = "react" }) => lo(t, e, oo), uo = ({ pivotQueryParams: t, uiFramework: e = "react" }) => co(t, e, ao), ho = (t) => fo(t), po = (t) => uo(t), Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5215
5203
  __proto__: null,
5216
- toExecutePivotQueryCode: ho,
5217
- toExecuteQueryCode: uo
5204
+ toExecutePivotQueryCode: po,
5205
+ toExecuteQueryCode: ho
5218
5206
  }, Symbol.toStringTag, { value: "Module" }));
5219
- class po {
5207
+ class mo {
5220
5208
  constructor() {
5221
5209
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
5222
5210
  }
@@ -5235,7 +5223,7 @@ class po {
5235
5223
  }
5236
5224
  class In {
5237
5225
  constructor(e) {
5238
- this.generateIdentifier = e, this.kv = new po();
5226
+ this.generateIdentifier = e, this.kv = new mo();
5239
5227
  }
5240
5228
  register(e, s) {
5241
5229
  this.kv.getByValue(e) || (s || (s = this.generateIdentifier(e)), this.kv.set(s, e));
@@ -5250,7 +5238,7 @@ class In {
5250
5238
  return this.kv.getByKey(e);
5251
5239
  }
5252
5240
  }
5253
- class mo extends In {
5241
+ class yo extends In {
5254
5242
  constructor() {
5255
5243
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
5256
5244
  }
@@ -5261,7 +5249,7 @@ class mo extends In {
5261
5249
  return this.classToAllowedProps.get(e);
5262
5250
  }
5263
5251
  }
5264
- function yo(t) {
5252
+ function go(t) {
5265
5253
  if ("values" in Object)
5266
5254
  return Object.values(t);
5267
5255
  const e = [];
@@ -5269,8 +5257,8 @@ function yo(t) {
5269
5257
  t.hasOwnProperty(s) && e.push(t[s]);
5270
5258
  return e;
5271
5259
  }
5272
- function go(t, e) {
5273
- const s = yo(t);
5260
+ function bo(t, e) {
5261
+ const s = go(t);
5274
5262
  if ("find" in s)
5275
5263
  return s.find(e);
5276
5264
  const n = s;
@@ -5293,7 +5281,7 @@ function Cs(t, e) {
5293
5281
  return n;
5294
5282
  }
5295
5283
  }
5296
- class bo {
5284
+ class wo {
5297
5285
  constructor() {
5298
5286
  this.transfomers = {};
5299
5287
  }
@@ -5301,13 +5289,13 @@ class bo {
5301
5289
  this.transfomers[e.name] = e;
5302
5290
  }
5303
5291
  findApplicable(e) {
5304
- return go(this.transfomers, (s) => s.isApplicable(e));
5292
+ return bo(this.transfomers, (s) => s.isApplicable(e));
5305
5293
  }
5306
5294
  findByName(e) {
5307
5295
  return this.transfomers[e];
5308
5296
  }
5309
5297
  }
5310
- const wo = (t) => Object.prototype.toString.call(t).slice(8, -1), Cn = (t) => typeof t == "undefined", So = (t) => t === null, Ke = (t) => typeof t != "object" || t === null || t === Object.prototype ? !1 : Object.getPrototypeOf(t) === null ? !0 : Object.getPrototypeOf(t) === Object.prototype, Ft = (t) => Ke(t) && Object.keys(t).length === 0, se = (t) => Array.isArray(t), ko = (t) => typeof t == "string", Oo = (t) => typeof t == "number" && !isNaN(t), Ao = (t) => typeof t == "boolean", No = (t) => t instanceof RegExp, je = (t) => t instanceof Map, qe = (t) => t instanceof Set, Ln = (t) => wo(t) === "Symbol", Eo = (t) => t instanceof Date && !isNaN(t.valueOf()), To = (t) => t instanceof Error, Ls = (t) => typeof t == "number" && isNaN(t), Io = (t) => Ao(t) || So(t) || Cn(t) || Oo(t) || ko(t) || Ln(t), Co = (t) => typeof t == "bigint", Lo = (t) => t === 1 / 0 || t === -1 / 0, _o = (t) => ArrayBuffer.isView(t) && !(t instanceof DataView), $o = (t) => t instanceof URL, _n = (t) => t.replace(/\./g, "\\."), _t = (t) => t.map(String).map(_n).join("."), Be = (t) => {
5298
+ const So = (t) => Object.prototype.toString.call(t).slice(8, -1), Cn = (t) => typeof t == "undefined", ko = (t) => t === null, Ke = (t) => typeof t != "object" || t === null || t === Object.prototype ? !1 : Object.getPrototypeOf(t) === null ? !0 : Object.getPrototypeOf(t) === Object.prototype, Ft = (t) => Ke(t) && Object.keys(t).length === 0, se = (t) => Array.isArray(t), Oo = (t) => typeof t == "string", Ao = (t) => typeof t == "number" && !isNaN(t), No = (t) => typeof t == "boolean", Eo = (t) => t instanceof RegExp, je = (t) => t instanceof Map, qe = (t) => t instanceof Set, Ln = (t) => So(t) === "Symbol", To = (t) => t instanceof Date && !isNaN(t.valueOf()), Io = (t) => t instanceof Error, Ls = (t) => typeof t == "number" && isNaN(t), Co = (t) => No(t) || ko(t) || Cn(t) || Ao(t) || Oo(t) || Ln(t), Lo = (t) => typeof t == "bigint", _o = (t) => t === 1 / 0 || t === -1 / 0, $o = (t) => ArrayBuffer.isView(t) && !(t instanceof DataView), Mo = (t) => t instanceof URL, _n = (t) => t.replace(/\./g, "\\."), _t = (t) => t.map(String).map(_n).join("."), Be = (t) => {
5311
5299
  const e = [];
5312
5300
  let s = "";
5313
5301
  for (let i = 0; i < t.length; i++) {
@@ -5336,9 +5324,9 @@ function W(t, e, s, n) {
5336
5324
  const $n = [
5337
5325
  W(Cn, "undefined", () => null, () => {
5338
5326
  }),
5339
- W(Co, "bigint", (t) => t.toString(), (t) => typeof BigInt != "undefined" ? BigInt(t) : (console.error("Please add a BigInt polyfill."), t)),
5340
- W(Eo, "Date", (t) => t.toISOString(), (t) => new Date(t)),
5341
- W(To, "Error", (t, e) => {
5327
+ W(Lo, "bigint", (t) => t.toString(), (t) => typeof BigInt != "undefined" ? BigInt(t) : (console.error("Please add a BigInt polyfill."), t)),
5328
+ W(To, "Date", (t) => t.toISOString(), (t) => new Date(t)),
5329
+ W(Io, "Error", (t, e) => {
5342
5330
  const s = {
5343
5331
  name: t.name,
5344
5332
  message: t.message
@@ -5352,7 +5340,7 @@ const $n = [
5352
5340
  s[n] = t[n];
5353
5341
  }), s;
5354
5342
  }),
5355
- W(No, "regexp", (t) => "" + t, (t) => {
5343
+ W(Eo, "regexp", (t) => "" + t, (t) => {
5356
5344
  const e = t.slice(1, t.lastIndexOf("/")), s = t.slice(t.lastIndexOf("/") + 1);
5357
5345
  return new RegExp(e, s);
5358
5346
  }),
@@ -5365,9 +5353,9 @@ const $n = [
5365
5353
  (t) => new Set(t)
5366
5354
  ),
5367
5355
  W(je, "map", (t) => [...t.entries()], (t) => new Map(t)),
5368
- W((t) => Ls(t) || Lo(t), "number", (t) => Ls(t) ? "NaN" : t > 0 ? "Infinity" : "-Infinity", Number),
5356
+ W((t) => Ls(t) || _o(t), "number", (t) => Ls(t) ? "NaN" : t > 0 ? "Infinity" : "-Infinity", Number),
5369
5357
  W((t) => t === 0 && 1 / t === -1 / 0, "number", () => "-0", Number),
5370
- W($o, "URL", (t) => t.toString(), (t) => new URL(t))
5358
+ W(Mo, "URL", (t) => t.toString(), (t) => new URL(t))
5371
5359
  ];
5372
5360
  function St(t, e, s, n) {
5373
5361
  return {
@@ -5382,7 +5370,7 @@ const Mn = St((t, e) => Ln(t) ? !!e.symbolRegistry.getIdentifier(t) : !1, (t, e)
5382
5370
  if (!n)
5383
5371
  throw new Error("Trying to deserialize unknown symbol");
5384
5372
  return n;
5385
- }), Mo = [
5373
+ }), Do = [
5386
5374
  Int8Array,
5387
5375
  Uint8Array,
5388
5376
  Int16Array,
@@ -5392,8 +5380,8 @@ const Mn = St((t, e) => Ln(t) ? !!e.symbolRegistry.getIdentifier(t) : !1, (t, e)
5392
5380
  Float32Array,
5393
5381
  Float64Array,
5394
5382
  Uint8ClampedArray
5395
- ].reduce((t, e) => (t[e.name] = e, t), {}), Dn = St(_o, (t) => ["typed-array", t.constructor.name], (t) => [...t], (t, e) => {
5396
- const s = Mo[e[1]];
5383
+ ].reduce((t, e) => (t[e.name] = e, t), {}), Dn = St($o, (t) => ["typed-array", t.constructor.name], (t) => [...t], (t, e) => {
5384
+ const s = Do[e[1]];
5397
5385
  if (!s)
5398
5386
  throw new Error("Trying to deserialize unknown typed array");
5399
5387
  return new s(t);
@@ -5419,8 +5407,8 @@ const Pn = St(Bn, (t, e) => ["class", e.classRegistry.getIdentifier(t.constructo
5419
5407
  if (!n)
5420
5408
  throw new Error("Trying to deserialize unknown custom value");
5421
5409
  return n.deserialize(t);
5422
- }), Do = [Pn, Mn, Rn, Dn], _s = (t, e) => {
5423
- const s = Cs(Do, (i) => i.isApplicable(t, e));
5410
+ }), Bo = [Pn, Mn, Rn, Dn], _s = (t, e) => {
5411
+ const s = Cs(Bo, (i) => i.isApplicable(t, e));
5424
5412
  if (s)
5425
5413
  return {
5426
5414
  value: s.transform(t, e),
@@ -5436,7 +5424,7 @@ const Pn = St(Bn, (t, e) => ["class", e.classRegistry.getIdentifier(t.constructo
5436
5424
  $n.forEach((t) => {
5437
5425
  Fn[t.annotation] = t;
5438
5426
  });
5439
- const Bo = (t, e, s) => {
5427
+ const Po = (t, e, s) => {
5440
5428
  if (se(e))
5441
5429
  switch (e[0]) {
5442
5430
  case "symbol":
@@ -5472,7 +5460,7 @@ function Kn(t) {
5472
5460
  if (et(t, "constructor"))
5473
5461
  throw new Error("constructor is not allowed as a property");
5474
5462
  }
5475
- const Po = (t, e) => {
5463
+ const Ro = (t, e) => {
5476
5464
  Kn(e);
5477
5465
  for (let s = 0; s < e.length; s++) {
5478
5466
  const n = e[s];
@@ -5553,14 +5541,14 @@ function jt(t, e, s = []) {
5553
5541
  jt(r, e, [...s, ...Be(o)]);
5554
5542
  }), e(n, s);
5555
5543
  }
5556
- function Ro(t, e, s) {
5544
+ function Fo(t, e, s) {
5557
5545
  return jt(e, (n, i) => {
5558
- t = Kt(t, i, (r) => Bo(r, n, s));
5546
+ t = Kt(t, i, (r) => Po(r, n, s));
5559
5547
  }), t;
5560
5548
  }
5561
- function Fo(t, e) {
5549
+ function Ko(t, e) {
5562
5550
  function s(n, i) {
5563
- const r = Po(t, Be(i));
5551
+ const r = Ro(t, Be(i));
5564
5552
  n.map(Be).forEach((o) => {
5565
5553
  t = Kt(t, o, () => r);
5566
5554
  });
@@ -5574,12 +5562,12 @@ function Fo(t, e) {
5574
5562
  Ae(e, s);
5575
5563
  return t;
5576
5564
  }
5577
- const Ko = (t, e) => Ke(t) || se(t) || je(t) || qe(t) || Bn(t, e);
5578
- function jo(t, e, s) {
5565
+ const jo = (t, e) => Ke(t) || se(t) || je(t) || qe(t) || Bn(t, e);
5566
+ function qo(t, e, s) {
5579
5567
  const n = s.get(t);
5580
5568
  n ? n.push(e) : s.set(t, [e]);
5581
5569
  }
5582
- function qo(t, e) {
5570
+ function zo(t, e) {
5583
5571
  const s = {};
5584
5572
  let n;
5585
5573
  return t.forEach((i) => {
@@ -5592,16 +5580,16 @@ function qo(t, e) {
5592
5580
  }
5593
5581
  const jn = (t, e, s, n, i = [], r = [], o = /* @__PURE__ */ new Map()) => {
5594
5582
  var y;
5595
- const a = Io(t);
5583
+ const a = Co(t);
5596
5584
  if (!a) {
5597
- jo(t, i, e);
5585
+ qo(t, i, e);
5598
5586
  const m = o.get(t);
5599
5587
  if (m)
5600
5588
  return n ? {
5601
5589
  transformedValue: null
5602
5590
  } : m;
5603
5591
  }
5604
- if (!Ko(t, s)) {
5592
+ if (!jo(t, s)) {
5605
5593
  const m = _s(t, s), f = m ? {
5606
5594
  transformedValue: m.value,
5607
5595
  annotations: [m.type]
@@ -5638,13 +5626,13 @@ function qn(t) {
5638
5626
  function $s(t) {
5639
5627
  return qn(t) === "Array";
5640
5628
  }
5641
- function zo(t) {
5629
+ function Uo(t) {
5642
5630
  if (qn(t) !== "Object")
5643
5631
  return !1;
5644
5632
  const e = Object.getPrototypeOf(t);
5645
5633
  return !!e && e.constructor === Object && e === Object.prototype;
5646
5634
  }
5647
- function Uo(t, e, s, n, i) {
5635
+ function Vo(t, e, s, n, i) {
5648
5636
  const r = {}.propertyIsEnumerable.call(n, e) ? "enumerable" : "nonenumerable";
5649
5637
  r === "enumerable" && (t[e] = s), i && r === "nonenumerable" && Object.defineProperty(t, e, {
5650
5638
  value: s,
@@ -5656,14 +5644,14 @@ function Uo(t, e, s, n, i) {
5656
5644
  function qt(t, e = {}) {
5657
5645
  if ($s(t))
5658
5646
  return t.map((i) => qt(i, e));
5659
- if (!zo(t))
5647
+ if (!Uo(t))
5660
5648
  return t;
5661
5649
  const s = Object.getOwnPropertyNames(t), n = Object.getOwnPropertySymbols(t);
5662
5650
  return [...s, ...n].reduce((i, r) => {
5663
5651
  if ($s(e.props) && !e.props.includes(r))
5664
5652
  return i;
5665
5653
  const o = t[r], a = qt(o, e);
5666
- return Uo(i, r, a, t, e.nonenumerable), i;
5654
+ return Vo(i, r, a, t, e.nonenumerable), i;
5667
5655
  }, {});
5668
5656
  }
5669
5657
  class k {
@@ -5671,10 +5659,10 @@ class k {
5671
5659
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
5672
5660
  */
5673
5661
  constructor({ dedupe: e = !1 } = {}) {
5674
- this.classRegistry = new mo(), this.symbolRegistry = new In((s) => {
5662
+ this.classRegistry = new yo(), this.symbolRegistry = new In((s) => {
5675
5663
  var n;
5676
5664
  return (n = s.description) != null ? n : "";
5677
- }), this.customTransformerRegistry = new bo(), this.allowedErrorProps = [], this.dedupe = e;
5665
+ }), this.customTransformerRegistry = new wo(), this.allowedErrorProps = [], this.dedupe = e;
5678
5666
  }
5679
5667
  serialize(e) {
5680
5668
  const s = /* @__PURE__ */ new Map(), n = jn(e, s, this, this.dedupe), i = {
@@ -5683,7 +5671,7 @@ class k {
5683
5671
  n.annotations && (i.meta = J(R({}, i.meta), {
5684
5672
  values: n.annotations
5685
5673
  }));
5686
- const r = qo(s, this.dedupe);
5674
+ const r = zo(s, this.dedupe);
5687
5675
  return r && (i.meta = J(R({}, i.meta), {
5688
5676
  referentialEqualities: r
5689
5677
  })), i;
@@ -5691,7 +5679,7 @@ class k {
5691
5679
  deserialize(e) {
5692
5680
  const { json: s, meta: n } = e;
5693
5681
  let i = qt(s);
5694
- return n != null && n.values && (i = Ro(i, n.values, this)), n != null && n.referentialEqualities && (i = Fo(i, n.referentialEqualities)), i;
5682
+ return n != null && n.values && (i = Fo(i, n.values, this)), n != null && n.referentialEqualities && (i = Ko(i, n.referentialEqualities)), i;
5695
5683
  }
5696
5684
  stringify(e) {
5697
5685
  return JSON.stringify(this.serialize(e));
@@ -5723,7 +5711,7 @@ k.registerClass = k.defaultInstance.registerClass.bind(k.defaultInstance);
5723
5711
  k.registerSymbol = k.defaultInstance.registerSymbol.bind(k.defaultInstance);
5724
5712
  k.registerCustom = k.defaultInstance.registerCustom.bind(k.defaultInstance);
5725
5713
  k.allowErrorProps = k.defaultInstance.allowErrorProps.bind(k.defaultInstance);
5726
- const fe = (t) => t === void 0 ? Ki.None : t, Vo = (t) => new ti(t.metadataItem, t.type), os = (t) => new Ai(t.name, t.expression, t.type, t.description, fe(t.sort), t.dataSource, t.composeCode), as = (t) => new Ni(t.name, t.expression, t.granularity, t.format, t.description, fe(t.sort), t.dataSource, t.composeCode), U = (t) => {
5714
+ const fe = (t) => t === void 0 ? ji.None : t, vo = (t) => new si(t.metadataItem, t.type), os = (t) => new Ni(t.name, t.expression, t.type, t.description, fe(t.sort), t.dataSource, t.composeCode), as = (t) => new Ei(t.name, t.expression, t.granularity, t.format, t.description, fe(t.sort), t.dataSource, t.composeCode), U = (t) => {
5727
5715
  switch (t.__serializable) {
5728
5716
  case "DimensionalAttribute":
5729
5717
  return os(t);
@@ -5732,7 +5720,7 @@ const fe = (t) => t === void 0 ? Ki.None : t, Vo = (t) => new ti(t.metadataItem,
5732
5720
  default:
5733
5721
  return t;
5734
5722
  }
5735
- }, zn = (t) => new zi(t.name, t.expression, t.attributes.map(U), t.dimensions.map(vo), t.type, t.description, fe(t.sort), t.dataSource, t.composeCode, t.defaultAttribute ? U(t.defaultAttribute) : void 0), Un = (t) => new Ui(t.name, t.expression, t.description, fe(t.sort), t.dataSource, t.composeCode), vo = (t) => {
5723
+ }, zn = (t) => new Ui(t.name, t.expression, t.attributes.map(U), t.dimensions.map(Jo), t.type, t.description, fe(t.sort), t.dataSource, t.composeCode, t.defaultAttribute ? U(t.defaultAttribute) : void 0), Un = (t) => new Vi(t.name, t.expression, t.description, fe(t.sort), t.dataSource, t.composeCode), Jo = (t) => {
5736
5724
  switch (t.__serializable) {
5737
5725
  case "DimensionalDimension":
5738
5726
  return zn(t);
@@ -5776,8 +5764,8 @@ const fe = (t) => t === void 0 ? Ki.None : t, Vo = (t) => new ti(t.metadataItem,
5776
5764
  n
5777
5765
  ];
5778
5766
  }));
5779
- return new Ei(t.name, t.expression, e, t.format, t.description, fe(t.sort), t.dataSource, t.composeCode);
5780
- }, Vn = (t) => new Ti(t.name, U(t.attribute), t.format, t.description, fe(t.sort), t.dataSource, t.composeCode), Ms = (t) => {
5767
+ return new Ti(t.name, t.expression, e, t.format, t.description, fe(t.sort), t.dataSource, t.composeCode);
5768
+ }, Vn = (t) => new Ii(t.name, U(t.attribute), t.format, t.description, fe(t.sort), t.dataSource, t.composeCode), Ms = (t) => {
5781
5769
  switch (t.__serializable) {
5782
5770
  case "DimensionalBaseMeasure":
5783
5771
  return ls(t);
@@ -5791,146 +5779,146 @@ const fe = (t) => t === void 0 ? Ki.None : t, Vo = (t) => new ti(t.metadataItem,
5791
5779
  }, F = (t) => {
5792
5780
  switch (t.__serializable) {
5793
5781
  case "MembersFilter":
5794
- return new Fi(U(t.attribute), t.members, t.config.backgroundFilter ? J(R({}, t.config), {
5782
+ return new Ki(U(t.attribute), t.members, t.config.backgroundFilter ? J(R({}, t.config), {
5795
5783
  backgroundFilter: F(t.config.backgroundFilter)
5796
5784
  }) : t.config, t.composeCode);
5797
5785
  case "LogicalAttributeFilter":
5798
- return new Ri(t.filters.map((s) => F(s)), t.operator, t.config, t.composeCode);
5786
+ return new Fi(t.filters.map((s) => F(s)), t.operator, t.config, t.composeCode);
5799
5787
  case "CascadingFilter":
5800
- return new Pi(t._filters.map((s) => F(s)), t.config, t.composeCode);
5788
+ return new Ri(t._filters.map((s) => F(s)), t.config, t.composeCode);
5801
5789
  case "ExcludeFilter":
5802
- return new Bi(F(t.filter), t.input ? F(t.input) : void 0, t.config, t.composeCode);
5790
+ return new Pi(F(t.filter), t.input ? F(t.input) : void 0, t.config, t.composeCode);
5803
5791
  case "MeasureFilter":
5804
- return new Di(U(t.attribute), Ms(t.measure), t.operatorA, t.valueA, t.operatorB, t.valueB, t.config, t.composeCode);
5792
+ return new Bi(U(t.attribute), Ms(t.measure), t.operatorA, t.valueA, t.operatorB, t.valueB, t.config, t.composeCode);
5805
5793
  case "RankingFilter":
5806
- return new Mi(U(t.attribute), Ms(t.measure), t.operator, t.count, t.config, t.composeCode);
5794
+ return new Di(U(t.attribute), Ms(t.measure), t.operator, t.count, t.config, t.composeCode);
5807
5795
  case "NumericFilter":
5808
- return new $i(U(t.attribute), t.operatorA, t.valueA, t.operatorB, t.valueB, t.config, t.composeCode);
5796
+ return new Mi(U(t.attribute), t.operatorA, t.valueA, t.operatorB, t.valueB, t.config, t.composeCode);
5809
5797
  case "TextFilter":
5810
- return new _i(U(t.attribute), t.operatorA, t.valueA, t.config, t.composeCode);
5798
+ return new $i(U(t.attribute), t.operatorA, t.valueA, t.config, t.composeCode);
5811
5799
  case "DateRangeFilter": {
5812
5800
  const { valueA: s, valueB: n } = t;
5813
- return new Li(U(t.attribute), s, n, t.config, t.composeCode);
5801
+ return new _i(U(t.attribute), s, n, t.config, t.composeCode);
5814
5802
  }
5815
5803
  case "RelativeDateFilter":
5816
- return new Ci(U(t.attribute), t.offset, t.count, t.operator, t.anchor, t.config, t.composeCode);
5804
+ return new Li(U(t.attribute), t.offset, t.count, t.operator, t.anchor, t.config, t.composeCode);
5817
5805
  case "CustomFilter":
5818
- return new Ii(U(t.attribute), t.jaqlExpression, t.config, t.composeCode);
5806
+ return new Ci(U(t.attribute), t.jaqlExpression, t.config, t.composeCode);
5819
5807
  default:
5820
5808
  return t;
5821
5809
  }
5822
5810
  };
5823
5811
  k.registerCustom({
5824
- isApplicable: ei,
5812
+ isApplicable: ti,
5825
5813
  serialize: (t) => t.serialize(),
5826
- deserialize: (t) => Vo(t)
5814
+ deserialize: (t) => vo(t)
5827
5815
  }, "JaqlElement");
5828
5816
  k.registerCustom({
5829
- isApplicable: ai,
5817
+ isApplicable: li,
5830
5818
  serialize: (t) => t.serialize(),
5831
5819
  deserialize: (t) => os(t)
5832
5820
  }, "DimensionalAttribute");
5833
5821
  k.registerCustom({
5834
- isApplicable: li,
5822
+ isApplicable: ci,
5835
5823
  serialize: (t) => t.serialize(),
5836
5824
  deserialize: (t) => as(t)
5837
5825
  }, "DimensionalLevelAttribute");
5838
5826
  k.registerCustom({
5839
- isApplicable: ji,
5827
+ isApplicable: qi,
5840
5828
  serialize: (t) => t.serialize(),
5841
5829
  deserialize: (t) => zn(t)
5842
5830
  }, "DimensionalDimension");
5843
5831
  k.registerCustom({
5844
- isApplicable: qi,
5832
+ isApplicable: zi,
5845
5833
  serialize: (t) => t.serialize(),
5846
5834
  deserialize: (t) => Un(t)
5847
5835
  }, "DimensionalDateDimension");
5848
5836
  k.registerCustom({
5849
- isApplicable: ci,
5837
+ isApplicable: fi,
5850
5838
  serialize: (t) => t.serialize(),
5851
5839
  deserialize: (t) => ls(t)
5852
5840
  }, "DimensionalBaseMeasure");
5853
5841
  k.registerCustom({
5854
- isApplicable: fi,
5842
+ isApplicable: ui,
5855
5843
  serialize: (t) => t.serialize(),
5856
5844
  deserialize: (t) => cs(t)
5857
5845
  }, "DimensionalCalculatedMeasure");
5858
5846
  k.registerCustom({
5859
- isApplicable: ui,
5847
+ isApplicable: hi,
5860
5848
  serialize: (t) => t.serialize(),
5861
5849
  deserialize: (t) => Vn(t)
5862
5850
  }, "DimensionalMeasureTemplate");
5863
5851
  k.registerCustom({
5864
- isApplicable: hi,
5852
+ isApplicable: di,
5865
5853
  serialize: (t) => t.serialize(),
5866
5854
  deserialize: (t) => F(t)
5867
5855
  }, "MembersFilter");
5868
5856
  k.registerCustom({
5869
- isApplicable: di,
5857
+ isApplicable: pi,
5870
5858
  serialize: (t) => t.serialize(),
5871
5859
  deserialize: (t) => F(t)
5872
5860
  }, "LogicalAttributeFilter");
5873
5861
  k.registerCustom({
5874
- isApplicable: pi,
5862
+ isApplicable: mi,
5875
5863
  serialize: (t) => t.serialize(),
5876
5864
  deserialize: (t) => F(t)
5877
5865
  }, "CascadingFilter");
5878
5866
  k.registerCustom({
5879
- isApplicable: mi,
5867
+ isApplicable: yi,
5880
5868
  serialize: (t) => t.serialize(),
5881
5869
  deserialize: (t) => F(t)
5882
5870
  }, "ExcludeFilter");
5883
5871
  k.registerCustom({
5884
- isApplicable: yi,
5872
+ isApplicable: gi,
5885
5873
  serialize: (t) => t.serialize(),
5886
5874
  deserialize: (t) => F(t)
5887
5875
  }, "MeasureFilter");
5888
5876
  k.registerCustom({
5889
- isApplicable: gi,
5877
+ isApplicable: bi,
5890
5878
  serialize: (t) => t.serialize(),
5891
5879
  deserialize: (t) => F(t)
5892
5880
  }, "RankingFilter");
5893
5881
  k.registerCustom({
5894
- isApplicable: bi,
5882
+ isApplicable: wi,
5895
5883
  serialize: (t) => t.serialize(),
5896
5884
  deserialize: (t) => F(t)
5897
5885
  }, "NumericFilter");
5898
5886
  k.registerCustom({
5899
- isApplicable: wi,
5887
+ isApplicable: Si,
5900
5888
  serialize: (t) => t.serialize(),
5901
5889
  deserialize: (t) => F(t)
5902
5890
  }, "TextFilter");
5903
5891
  k.registerCustom({
5904
- isApplicable: Si,
5892
+ isApplicable: ki,
5905
5893
  serialize: (t) => t.serialize(),
5906
5894
  deserialize: (t) => F(t)
5907
5895
  }, "DateRangeFilter");
5908
5896
  k.registerCustom({
5909
- isApplicable: ki,
5897
+ isApplicable: Oi,
5910
5898
  serialize: (t) => t.serialize(),
5911
5899
  deserialize: (t) => F(t)
5912
5900
  }, "RelativeDateFilter");
5913
5901
  k.registerCustom({
5914
- isApplicable: Oi,
5902
+ isApplicable: Ai,
5915
5903
  serialize: (t) => t.serialize(),
5916
5904
  deserialize: (t) => F(t)
5917
5905
  }, "CustomFilter");
5918
- const Xo = k;
5906
+ const Zo = k;
5919
5907
  export {
5920
- Xo as CustomSuperJSON,
5921
- ta as EMPTY_EXPANDED_QUERY_MODEL,
5908
+ Zo as CustomSuperJSON,
5909
+ sa as EMPTY_EXPANDED_QUERY_MODEL,
5922
5910
  ps as EMPTY_SIMPLE_QUERY_MODEL,
5923
- xo as QueryTranslator,
5924
- Go as dashboardComposer,
5925
- Ho as executeQueryComposer,
5926
- sa as getChartDataOptions,
5927
- na as getChartOptions,
5928
- ia as getChartRecommendationsOrDefault,
5929
- ra as getChartStyleOptions,
5930
- Zn as isByIdDashboardCodeParams,
5931
- oa as isByIdWidgetCodeParams,
5932
- aa as isClientSideDashboardCodeParams,
5933
- la as isClientSideWidgetCodeParams,
5934
- ca as simplifyMetadataItem,
5935
- fa as widgetComposer
5911
+ Go as QueryTranslator,
5912
+ Ho as dashboardComposer,
5913
+ Xo as executeQueryComposer,
5914
+ na as getChartDataOptions,
5915
+ ia as getChartOptions,
5916
+ ra as getChartRecommendationsOrDefault,
5917
+ oa as getChartStyleOptions,
5918
+ ei as isByIdDashboardCodeParams,
5919
+ aa as isByIdWidgetCodeParams,
5920
+ la as isClientSideDashboardCodeParams,
5921
+ ca as isClientSideWidgetCodeParams,
5922
+ fa as simplifyMetadataItem,
5923
+ ua as widgetComposer
5936
5924
  };