@marimo-team/islands 0.13.16-dev3 → 0.13.16-dev4

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 (85) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DaX7qzkh.js → ConnectedDataExplorerComponent-W-BOfG8M.js} +1495 -1496
  2. package/dist/{VegaLite-DqttTZoC.js → VegaLite-C9hsmU75.js} +12483 -12485
  3. package/dist/{_baseUniq-C7BPwQHe.js → _baseUniq-JsDeIdvj.js} +13 -13
  4. package/dist/{any-language-editor-DUew9Rp9.js → any-language-editor-BzZqDQm_.js} +2 -2
  5. package/dist/{architectureDiagram-IEHRJDOE-a3lDrXQx.js → architectureDiagram-IEHRJDOE-DnNsdc8e.js} +1800 -1800
  6. package/dist/asn1-jKiBa2Ya.js +10 -10
  7. package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
  8. package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
  9. package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
  10. package/dist/blockDiagram-JOT3LUYC-C_KEbscf.js +2249 -0
  11. package/dist/{c4Diagram-VJAJSXHY-iO9Wy6JM.js → c4Diagram-VJAJSXHY-B7trZ6_H.js} +401 -400
  12. package/dist/{channel-DcjC1CFM.js → channel-CwUzkjN9.js} +1 -1
  13. package/dist/chunk-4BMEZGHF-C4_0qa8X.js +9 -0
  14. package/dist/chunk-A2AXSNBT-DApfdN4z.js +1373 -0
  15. package/dist/chunk-AEK57VVT-D_rUaIu3.js +1416 -0
  16. package/dist/{chunk-D6G4REZN-Dlv_YHcf.js → chunk-D6G4REZN-BJurAONC.js} +2 -2
  17. package/dist/{chunk-RZ5BOZE2-D8w7Mlj9.js → chunk-RZ5BOZE2-ChOs68Hz.js} +8 -8
  18. package/dist/chunk-XZIHB7SX-CGbScEEe.js +16 -0
  19. package/dist/{classDiagram-GIVACNV2-B9RHXsFh.js → classDiagram-GIVACNV2-CqVjeibK.js} +2 -2
  20. package/dist/{classDiagram-v2-COTLJTTW-B9RHXsFh.js → classDiagram-v2-COTLJTTW-CqVjeibK.js} +2 -2
  21. package/dist/clojure-CCKyeQKf.js +2 -2
  22. package/dist/{clone-D3N_odGc.js → clone-BPHB9gtw.js} +1 -1
  23. package/dist/css-bIlmDBTK.js +19 -19
  24. package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
  25. package/dist/dagre-OKDRZEBW-EJUR9APO.js +447 -0
  26. package/dist/{data-editor-DYnEMVel.js → data-editor-CvujN_l-.js} +5785 -5795
  27. package/dist/{diagram-SSKATNLV-B7sCpaam.js → diagram-SSKATNLV-Bs-Zy3OO.js} +13 -13
  28. package/dist/{diagram-VNBRO52H-D5XB9Rqn.js → diagram-VNBRO52H-rhV7IJ0T.js} +3 -3
  29. package/dist/{erDiagram-Q7BY3M3F-Bc4bVsl5.js → erDiagram-Q7BY3M3F-DwuCpdOL.js} +263 -262
  30. package/dist/flowDiagram-4HSFHLVR-CpbGvx3R.js +1623 -0
  31. package/dist/{ganttDiagram-APWFNJXF-DX7O4yzu.js → ganttDiagram-APWFNJXF-B9ih7Ggj.js} +45 -45
  32. package/dist/gitGraphDiagram-7IBYFJ6S-tTFS2NlF.js +712 -0
  33. package/dist/{graph-3qoxqlMi.js → graph-DiSBbvS5.js} +9 -9
  34. package/dist/{index-ClcExt8M.js → index-BZo5-DOE.js} +99 -98
  35. package/dist/{index-DSv7cBZ6.js → index-CmU7bpCv.js} +4 -4
  36. package/dist/{index-DMwlOrYW.js → index-KrnLhU30.js} +9 -9
  37. package/dist/{index-DarPCnb9.js → index-TeAlNqJE.js} +28 -28
  38. package/dist/{infoDiagram-PH2N3AL5-Hpz-dZTP.js → infoDiagram-PH2N3AL5-COt3b362.js} +3 -3
  39. package/dist/javascript-WMWNx-Vj.js +47 -47
  40. package/dist/{journeyDiagram-U35MCT3I-D8lBbVPX.js → journeyDiagram-U35MCT3I-Civ2cUVg.js} +18 -18
  41. package/dist/kanban-definition-NDS4AKOZ-QxhTc8lo.js +719 -0
  42. package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
  43. package/dist/{layout-BQ5ygFMS.js → layout-B0SQ1LdD.js} +27 -27
  44. package/dist/{linear-DEKTCzK7.js → linear-Bn_UtFyT.js} +2 -2
  45. package/dist/main-ClxYr2BI.js +169878 -0
  46. package/dist/main.js +1 -1
  47. package/dist/mermaid-M3c3q4Qd.js +14517 -0
  48. package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
  49. package/dist/{min-BVLo0atX.js → min-C0Jzc_ko.js} +2 -2
  50. package/dist/{mindmap-definition-ALO5MXBD-CJrYaVvo.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js} +359 -359
  51. package/dist/mllike-BSnXJBGA.js +7 -7
  52. package/dist/{pieDiagram-IB7DONF6-Dctceo_p.js → pieDiagram-IB7DONF6-DIa7m5Au.js} +34 -34
  53. package/dist/pug-BqUR2bBq.js +35 -35
  54. package/dist/python-B5QdSKoL.js +18 -18
  55. package/dist/quadrantDiagram-7GDLP6J5-D1HtkiJK.js +1025 -0
  56. package/dist/{radar-MK3ICKWK-C1HW1I3s.js → radar-MK3ICKWK-Dm3jRuoE.js} +2555 -2554
  57. package/dist/{react-plotly-Cb9GFlJK.js → react-plotly-CJ3A7ju0.js} +6595 -6597
  58. package/dist/{requirementDiagram-KVF5MWMF-B1hXsRKm.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js} +251 -250
  59. package/dist/rpm-IznJm2Xc.js +9 -9
  60. package/dist/{sankeyDiagram-QLVOVGJD-C4Wft0rG.js → sankeyDiagram-QLVOVGJD-Bo4y0LBQ.js} +339 -338
  61. package/dist/{sequenceDiagram-X6HHIX6F-DuI3MtaO.js → sequenceDiagram-X6HHIX6F-DMq4wla5.js} +822 -821
  62. package/dist/{slides-component-CtHXOtAT.js → slides-component-Cyh202Vq.js} +280 -280
  63. package/dist/sql-mMre1Bo3.js +9 -9
  64. package/dist/{stateDiagram-DGXRK772-BA90keZx.js → stateDiagram-DGXRK772-D_y0WAcv.js} +17 -17
  65. package/dist/{stateDiagram-v2-YXO3MK2T-BAYgRopg.js → stateDiagram-v2-YXO3MK2T-CHK5LNw7.js} +2 -2
  66. package/dist/style.css +1 -1
  67. package/dist/{time-CSFHw3Jv.js → time-YVQKuiUR.js} +2 -2
  68. package/dist/{timeline-definition-BDJGKUSR-Blc0sOvC.js → timeline-definition-BDJGKUSR-DH63_P4w.js} +261 -261
  69. package/dist/timer-BYwnU4DF.js +378 -378
  70. package/dist/ttcn-cfg-Bac_acMi.js +9 -9
  71. package/dist/{vega-component-BhqCtGzK.js → vega-component-CUFBFMjm.js} +82 -82
  72. package/dist/{xychartDiagram-VJFVF3MP-zwhLbXXB.js → xychartDiagram-VJFVF3MP-3NU7tduZ.js} +472 -471
  73. package/package.json +1 -1
  74. package/dist/blockDiagram-JOT3LUYC-CKFyxt0d.js +0 -2248
  75. package/dist/chunk-4BMEZGHF-lIaJqjDq.js +0 -9
  76. package/dist/chunk-A2AXSNBT-Cvv8kb-T.js +0 -1372
  77. package/dist/chunk-AEK57VVT-B-uzYNYV.js +0 -1415
  78. package/dist/chunk-XZIHB7SX-eF6XymTt.js +0 -15
  79. package/dist/dagre-OKDRZEBW-9GOkw9EI.js +0 -447
  80. package/dist/flowDiagram-4HSFHLVR-O0PMfC8B.js +0 -1622
  81. package/dist/gitGraphDiagram-7IBYFJ6S-Bq1HYszu.js +0 -712
  82. package/dist/kanban-definition-NDS4AKOZ-BjHkwf3p.js +0 -719
  83. package/dist/main-CtGDFKVm.js +0 -156521
  84. package/dist/mermaid-dkwEEzHU.js +0 -11991
  85. package/dist/quadrantDiagram-7GDLP6J5-BCGXIJXJ.js +0 -1024
@@ -1,82 +1,83 @@
1
- import { _ as a, s as ui, g as gi, t as Ft, q as xi, a as di, b as pi, l as Xt, K as fi, e as mi, z as yi, G as At, F as Nt, H as bi, M as Ai, i as wi, a9 as Ci } from "./mermaid-dkwEEzHU.js";
2
- import { i as Si } from "./init-DxzjmxYy.js";
3
- import { o as _i } from "./ordinal-CYN5qNoq.js";
4
- import { r as ki } from "./range-DdOGybNB.js";
5
- import { l as Bt } from "./linear-DEKTCzK7.js";
6
- import { l as Wt } from "./timer-BYwnU4DF.js";
7
- function pt() {
8
- var e = _i().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, r, u, f = !1, p = 0, k = 0, R = 0.5;
9
- delete e.unknown;
10
- function w() {
11
- var y = t().length, D = n < s, S = D ? n : s, v = D ? s : n;
12
- r = (v - S) / Math.max(1, y - p + k * 2), f && (r = Math.floor(r)), S += (v - S - r * (y - p)) * R, u = r * (1 - p), f && (S = Math.round(S), u = Math.round(u));
13
- var m = ki(y).map(function(_) {
14
- return S + r * _;
1
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j;
2
+ import { _ as a, s as ii, g as ei, t as Pt, q as si, a as ni, b as ai, l as Lt, K as oi, e as ri, z as hi, G as ct, F as Et, H as li, M as ci, i as ui, a9 as gi } from "./mermaid-M3c3q4Qd.js";
3
+ import { i as xi } from "./init-DxzjmxYy.js";
4
+ import { o as di } from "./ordinal-CYN5qNoq.js";
5
+ import { r as pi } from "./range-DdOGybNB.js";
6
+ import { l as Rt } from "./linear-Bn_UtFyT.js";
7
+ import { l as Tt } from "./timer-BYwnU4DF.js";
8
+ function at() {
9
+ var t = di().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, x, u, p = false, C = 0, T = 0, k = 0.5;
10
+ delete t.unknown;
11
+ function A() {
12
+ var m = i().length, D = n < s, S = D ? n : s, v = D ? s : n;
13
+ x = (v - S) / Math.max(1, m - C + T * 2), p && (x = Math.floor(x)), S += (v - S - x * (m - C)) * k, u = x * (1 - C), p && (S = Math.round(S), u = Math.round(u));
14
+ var f = pi(m).map(function(_) {
15
+ return S + x * _;
15
16
  });
16
- return i(D ? m.reverse() : m);
17
+ return e(D ? f.reverse() : f);
17
18
  }
18
- return e.domain = function(y) {
19
- return arguments.length ? (t(y), w()) : t();
20
- }, e.range = function(y) {
21
- return arguments.length ? ([s, n] = y, s = +s, n = +n, w()) : [s, n];
22
- }, e.rangeRound = function(y) {
23
- return [s, n] = y, s = +s, n = +n, f = !0, w();
24
- }, e.bandwidth = function() {
19
+ return t.domain = function(m) {
20
+ return arguments.length ? (i(m), A()) : i();
21
+ }, t.range = function(m) {
22
+ return arguments.length ? ([s, n] = m, s = +s, n = +n, A()) : [s, n];
23
+ }, t.rangeRound = function(m) {
24
+ return [s, n] = m, s = +s, n = +n, p = true, A();
25
+ }, t.bandwidth = function() {
25
26
  return u;
26
- }, e.step = function() {
27
- return r;
28
- }, e.round = function(y) {
29
- return arguments.length ? (f = !!y, w()) : f;
30
- }, e.padding = function(y) {
31
- return arguments.length ? (p = Math.min(1, k = +y), w()) : p;
32
- }, e.paddingInner = function(y) {
33
- return arguments.length ? (p = Math.min(1, y), w()) : p;
34
- }, e.paddingOuter = function(y) {
35
- return arguments.length ? (k = +y, w()) : k;
36
- }, e.align = function(y) {
37
- return arguments.length ? (R = Math.max(0, Math.min(1, y)), w()) : R;
38
- }, e.copy = function() {
39
- return pt(t(), [s, n]).round(f).paddingInner(p).paddingOuter(k).align(R);
40
- }, Si.apply(w(), arguments);
27
+ }, t.step = function() {
28
+ return x;
29
+ }, t.round = function(m) {
30
+ return arguments.length ? (p = !!m, A()) : p;
31
+ }, t.padding = function(m) {
32
+ return arguments.length ? (C = Math.min(1, T = +m), A()) : C;
33
+ }, t.paddingInner = function(m) {
34
+ return arguments.length ? (C = Math.min(1, m), A()) : C;
35
+ }, t.paddingOuter = function(m) {
36
+ return arguments.length ? (T = +m, A()) : T;
37
+ }, t.align = function(m) {
38
+ return arguments.length ? (k = Math.max(0, Math.min(1, m)), A()) : k;
39
+ }, t.copy = function() {
40
+ return at(i(), [s, n]).round(p).paddingInner(C).paddingOuter(T).align(k);
41
+ }, xi.apply(A(), arguments);
41
42
  }
42
- var ft = function() {
43
- var e = /* @__PURE__ */ a(function(B, h, c, g) {
44
- for (c = c || {}, g = B.length; g--; c[B[g]] = h) ;
45
- return c;
46
- }, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], n = [1, 5], r = [1, 6], u = [1, 7], f = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], p = [1, 25], k = [1, 26], R = [1, 28], w = [1, 29], y = [1, 30], D = [1, 31], S = [1, 32], v = [1, 33], m = [1, 34], _ = [1, 35], l = [1, 36], E = [1, 37], K = [1, 43], vt = [1, 42], Pt = [1, 47], et = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], lt = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], I = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], Lt = [1, 64], ct = {
43
+ var ot = function() {
44
+ var t = /* @__PURE__ */ a(function(B, r, l, c) {
45
+ for (l = l || {}, c = B.length; c--; l[B[c]] = r) ;
46
+ return l;
47
+ }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], x = [1, 6], u = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], C = [1, 25], T = [1, 26], k = [1, 28], A = [1, 29], m = [1, 30], D = [1, 31], S = [1, 32], v = [1, 33], f = [1, 34], _ = [1, 35], h = [1, 36], E = [1, 37], X = [1, 43], bt = [1, 42], At = [1, 47], $ = [1, 50], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], J = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], I = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], wt = [1, 64], tt = {
47
48
  trace: /* @__PURE__ */ a(function() {
48
49
  }, "trace"),
49
50
  yy: {},
50
51
  symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
51
52
  terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
52
53
  productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
53
- performAction: /* @__PURE__ */ a(function(h, c, g, x, A, o, Z) {
54
+ performAction: /* @__PURE__ */ a(function(r, l, c, g, b, o, N) {
54
55
  var d = o.length - 1;
55
- switch (A) {
56
+ switch (b) {
56
57
  case 5:
57
- x.setOrientation(o[d]);
58
+ g.setOrientation(o[d]);
58
59
  break;
59
60
  case 9:
60
- x.setDiagramTitle(o[d].text.trim());
61
+ g.setDiagramTitle(o[d].text.trim());
61
62
  break;
62
63
  case 12:
63
- x.setLineData({ text: "", type: "text" }, o[d]);
64
+ g.setLineData({ text: "", type: "text" }, o[d]);
64
65
  break;
65
66
  case 13:
66
- x.setLineData(o[d - 1], o[d]);
67
+ g.setLineData(o[d - 1], o[d]);
67
68
  break;
68
69
  case 14:
69
- x.setBarData({ text: "", type: "text" }, o[d]);
70
+ g.setBarData({ text: "", type: "text" }, o[d]);
70
71
  break;
71
72
  case 15:
72
- x.setBarData(o[d - 1], o[d]);
73
+ g.setBarData(o[d - 1], o[d]);
73
74
  break;
74
75
  case 16:
75
- this.$ = o[d].trim(), x.setAccTitle(this.$);
76
+ this.$ = o[d].trim(), g.setAccTitle(this.$);
76
77
  break;
77
78
  case 17:
78
79
  case 18:
79
- this.$ = o[d].trim(), x.setAccDescription(this.$);
80
+ this.$ = o[d].trim(), g.setAccDescription(this.$);
80
81
  break;
81
82
  case 19:
82
83
  this.$ = o[d - 1];
@@ -88,19 +89,19 @@ var ft = function() {
88
89
  this.$ = [Number(o[d])];
89
90
  break;
90
91
  case 22:
91
- x.setXAxisTitle(o[d]);
92
+ g.setXAxisTitle(o[d]);
92
93
  break;
93
94
  case 23:
94
- x.setXAxisTitle(o[d - 1]);
95
+ g.setXAxisTitle(o[d - 1]);
95
96
  break;
96
97
  case 24:
97
- x.setXAxisTitle({ type: "text", text: "" });
98
+ g.setXAxisTitle({ type: "text", text: "" });
98
99
  break;
99
100
  case 25:
100
- x.setXAxisBand(o[d]);
101
+ g.setXAxisBand(o[d]);
101
102
  break;
102
103
  case 26:
103
- x.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
104
+ g.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
104
105
  break;
105
106
  case 27:
106
107
  this.$ = o[d - 1];
@@ -112,16 +113,16 @@ var ft = function() {
112
113
  this.$ = [o[d]];
113
114
  break;
114
115
  case 30:
115
- x.setYAxisTitle(o[d]);
116
+ g.setYAxisTitle(o[d]);
116
117
  break;
117
118
  case 31:
118
- x.setYAxisTitle(o[d - 1]);
119
+ g.setYAxisTitle(o[d - 1]);
119
120
  break;
120
121
  case 32:
121
- x.setYAxisTitle({ type: "text", text: "" });
122
+ g.setYAxisTitle({ type: "text", text: "" });
122
123
  break;
123
124
  case 33:
124
- x.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
125
+ g.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
125
126
  break;
126
127
  case 37:
127
128
  this.$ = { text: o[d], type: "text" };
@@ -140,95 +141,95 @@ var ft = function() {
140
141
  break;
141
142
  }
142
143
  }, "anonymous"),
143
- table: [e(t, i, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: r, 36: u }), { 1: [3] }, e(t, i, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: r, 36: u }), e(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: r, 36: u }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, e(f, [2, 34]), e(f, [2, 35]), e(f, [2, 36]), { 1: [2, 1] }, e(t, i, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: r, 36: u }), { 1: [2, 3] }, e(f, [2, 5]), e(t, [2, 7], { 4: 22, 34: n, 35: r, 36: u }), { 11: 23, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 11: 39, 13: 38, 24: K, 27: vt, 29: 40, 30: 41, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 11: 45, 15: 44, 27: Pt, 33: 46, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 11: 49, 17: 48, 24: et, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 11: 52, 17: 51, 24: et, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 20: [1, 53] }, { 22: [1, 54] }, e(C, [2, 18]), { 1: [2, 2] }, e(C, [2, 8]), e(C, [2, 9]), e(lt, [2, 37], { 40: 55, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }), e(lt, [2, 38]), e(lt, [2, 39]), e(I, [2, 40]), e(I, [2, 42]), e(I, [2, 43]), e(I, [2, 44]), e(I, [2, 45]), e(I, [2, 46]), e(I, [2, 47]), e(I, [2, 48]), e(I, [2, 49]), e(I, [2, 50]), e(I, [2, 51]), e(C, [2, 10]), e(C, [2, 22], { 30: 41, 29: 56, 24: K, 27: vt }), e(C, [2, 24]), e(C, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, e(C, [2, 11]), e(C, [2, 30], { 33: 60, 27: Pt }), e(C, [2, 32]), { 31: [1, 61] }, e(C, [2, 12]), { 17: 62, 24: et }, { 25: 63, 27: Lt }, e(C, [2, 14]), { 17: 65, 24: et }, e(C, [2, 16]), e(C, [2, 17]), e(I, [2, 41]), e(C, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, e(C, [2, 31]), { 27: [1, 69] }, e(C, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, e(C, [2, 15]), e(C, [2, 26]), e(C, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, e(C, [2, 33]), e(C, [2, 19]), { 25: 73, 27: Lt }, { 26: [2, 28] }, { 26: [2, 20] }],
144
+ table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: x, 36: u }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: x, 36: u }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: x, 36: u }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: x, 36: u }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: x, 36: u }), { 11: 23, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 39, 13: 38, 24: X, 27: bt, 29: 40, 30: 41, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 45, 15: 44, 27: At, 33: 46, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 49, 17: 48, 24: $, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 52, 17: 51, 24: $, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 20: [1, 53] }, { 22: [1, 54] }, t(w, [2, 18]), { 1: [2, 2] }, t(w, [2, 8]), t(w, [2, 9]), t(J, [2, 37], { 40: 55, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }), t(J, [2, 38]), t(J, [2, 39]), t(I, [2, 40]), t(I, [2, 42]), t(I, [2, 43]), t(I, [2, 44]), t(I, [2, 45]), t(I, [2, 46]), t(I, [2, 47]), t(I, [2, 48]), t(I, [2, 49]), t(I, [2, 50]), t(I, [2, 51]), t(w, [2, 10]), t(w, [2, 22], { 30: 41, 29: 56, 24: X, 27: bt }), t(w, [2, 24]), t(w, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, t(w, [2, 11]), t(w, [2, 30], { 33: 60, 27: At }), t(w, [2, 32]), { 31: [1, 61] }, t(w, [2, 12]), { 17: 62, 24: $ }, { 25: 63, 27: wt }, t(w, [2, 14]), { 17: 65, 24: $ }, t(w, [2, 16]), t(w, [2, 17]), t(I, [2, 41]), t(w, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(w, [2, 31]), { 27: [1, 69] }, t(w, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(w, [2, 15]), t(w, [2, 26]), t(w, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, t(w, [2, 33]), t(w, [2, 19]), { 25: 73, 27: wt }, { 26: [2, 28] }, { 26: [2, 20] }],
144
145
  defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
145
- parseError: /* @__PURE__ */ a(function(h, c) {
146
- if (c.recoverable)
147
- this.trace(h);
146
+ parseError: /* @__PURE__ */ a(function(r, l) {
147
+ if (l.recoverable)
148
+ this.trace(r);
148
149
  else {
149
- var g = new Error(h);
150
- throw g.hash = c, g;
150
+ var c = new Error(r);
151
+ throw c.hash = l, c;
151
152
  }
152
153
  }, "parseError"),
153
- parse: /* @__PURE__ */ a(function(h) {
154
- var c = this, g = [0], x = [], A = [null], o = [], Z = this.table, d = "", nt = 0, Et = 0, ri = 2, It = 1, hi = o.slice.call(arguments, 1), T = Object.create(this.lexer), W = { yy: {} };
155
- for (var ut in this.yy)
156
- Object.prototype.hasOwnProperty.call(this.yy, ut) && (W.yy[ut] = this.yy[ut]);
157
- T.setInput(h, W.yy), W.yy.lexer = T, W.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
158
- var gt = T.yylloc;
159
- o.push(gt);
160
- var li = T.options && T.options.ranges;
154
+ parse: /* @__PURE__ */ a(function(r) {
155
+ var l = this, c = [0], g = [], b = [null], o = [], N = this.table, d = "", G = 0, Ct = 0, Kt = 2, St = 1, Zt = o.slice.call(arguments, 1), R = Object.create(this.lexer), W = { yy: {} };
156
+ for (var it in this.yy)
157
+ Object.prototype.hasOwnProperty.call(this.yy, it) && (W.yy[it] = this.yy[it]);
158
+ R.setInput(r, W.yy), W.yy.lexer = R, W.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
159
+ var et = R.yylloc;
160
+ o.push(et);
161
+ var Jt = R.options && R.options.ranges;
161
162
  typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
162
- function ci(L) {
163
- g.length = g.length - 2 * L, A.length = A.length - L, o.length = o.length - L;
163
+ function ti(L) {
164
+ c.length = c.length - 2 * L, b.length = b.length - L, o.length = o.length - L;
164
165
  }
165
- a(ci, "popStack");
166
- function Mt() {
166
+ a(ti, "popStack");
167
+ function _t() {
167
168
  var L;
168
- return L = x.pop() || T.lex() || It, typeof L != "number" && (L instanceof Array && (x = L, L = x.pop()), L = c.symbols_[L] || L), L;
169
+ return L = g.pop() || R.lex() || St, typeof L != "number" && (L instanceof Array && (g = L, L = g.pop()), L = l.symbols_[L] || L), L;
169
170
  }
170
- a(Mt, "lex");
171
- for (var P, O, M, xt, z = {}, at, V, Vt, ot; ; ) {
172
- if (O = g[g.length - 1], this.defaultActions[O] ? M = this.defaultActions[O] : ((P === null || typeof P > "u") && (P = Mt()), M = Z[O] && Z[O][P]), typeof M > "u" || !M.length || !M[0]) {
173
- var dt = "";
174
- ot = [];
175
- for (at in Z[O])
176
- this.terminals_[at] && at > ri && ot.push("'" + this.terminals_[at] + "'");
177
- T.showPosition ? dt = "Parse error on line " + (nt + 1) + `:
178
- ` + T.showPosition() + `
179
- Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt = "Parse error on line " + (nt + 1) + ": Unexpected " + (P == It ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(dt, {
180
- text: T.match,
171
+ a(_t, "lex");
172
+ for (var P, O, M, st, z = {}, j, V, kt, Q; ; ) {
173
+ if (O = c[c.length - 1], this.defaultActions[O] ? M = this.defaultActions[O] : ((P === null || typeof P > "u") && (P = _t()), M = N[O] && N[O][P]), typeof M > "u" || !M.length || !M[0]) {
174
+ var nt = "";
175
+ Q = [];
176
+ for (j in N[O])
177
+ this.terminals_[j] && j > Kt && Q.push("'" + this.terminals_[j] + "'");
178
+ R.showPosition ? nt = "Parse error on line " + (G + 1) + `:
179
+ ` + R.showPosition() + `
180
+ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt = "Parse error on line " + (G + 1) + ": Unexpected " + (P == St ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(nt, {
181
+ text: R.match,
181
182
  token: this.terminals_[P] || P,
182
- line: T.yylineno,
183
- loc: gt,
184
- expected: ot
183
+ line: R.yylineno,
184
+ loc: et,
185
+ expected: Q
185
186
  });
186
187
  }
187
188
  if (M[0] instanceof Array && M.length > 1)
188
189
  throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + P);
189
190
  switch (M[0]) {
190
191
  case 1:
191
- g.push(P), A.push(T.yytext), o.push(T.yylloc), g.push(M[1]), P = null, Et = T.yyleng, d = T.yytext, nt = T.yylineno, gt = T.yylloc;
192
+ c.push(P), b.push(R.yytext), o.push(R.yylloc), c.push(M[1]), P = null, Ct = R.yyleng, d = R.yytext, G = R.yylineno, et = R.yylloc;
192
193
  break;
193
194
  case 2:
194
- if (V = this.productions_[M[1]][1], z.$ = A[A.length - V], z._$ = {
195
+ if (V = this.productions_[M[1]][1], z.$ = b[b.length - V], z._$ = {
195
196
  first_line: o[o.length - (V || 1)].first_line,
196
197
  last_line: o[o.length - 1].last_line,
197
198
  first_column: o[o.length - (V || 1)].first_column,
198
199
  last_column: o[o.length - 1].last_column
199
- }, li && (z._$.range = [
200
+ }, Jt && (z._$.range = [
200
201
  o[o.length - (V || 1)].range[0],
201
202
  o[o.length - 1].range[1]
202
- ]), xt = this.performAction.apply(z, [
203
+ ]), st = this.performAction.apply(z, [
203
204
  d,
204
- Et,
205
- nt,
205
+ Ct,
206
+ G,
206
207
  W.yy,
207
208
  M[1],
208
- A,
209
+ b,
209
210
  o
210
- ].concat(hi)), typeof xt < "u")
211
- return xt;
212
- V && (g = g.slice(0, -1 * V * 2), A = A.slice(0, -1 * V), o = o.slice(0, -1 * V)), g.push(this.productions_[M[1]][0]), A.push(z.$), o.push(z._$), Vt = Z[g[g.length - 2]][g[g.length - 1]], g.push(Vt);
211
+ ].concat(Zt)), typeof st < "u")
212
+ return st;
213
+ V && (c = c.slice(0, -1 * V * 2), b = b.slice(0, -1 * V), o = o.slice(0, -1 * V)), c.push(this.productions_[M[1]][0]), b.push(z.$), o.push(z._$), kt = N[c[c.length - 2]][c[c.length - 1]], c.push(kt);
213
214
  break;
214
215
  case 3:
215
- return !0;
216
+ return true;
216
217
  }
217
218
  }
218
- return !0;
219
+ return true;
219
220
  }, "parse")
220
- }, oi = /* @__PURE__ */ function() {
221
+ }, Qt = /* @__PURE__ */ function() {
221
222
  var B = {
222
223
  EOF: 1,
223
- parseError: /* @__PURE__ */ a(function(c, g) {
224
+ parseError: /* @__PURE__ */ a(function(l, c) {
224
225
  if (this.yy.parser)
225
- this.yy.parser.parseError(c, g);
226
+ this.yy.parser.parseError(l, c);
226
227
  else
227
- throw new Error(c);
228
+ throw new Error(l);
228
229
  }, "parseError"),
229
230
  // resets the lexer, sets new input
230
- setInput: /* @__PURE__ */ a(function(h, c) {
231
- return this.yy = c || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
231
+ setInput: /* @__PURE__ */ a(function(r, l) {
232
+ return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
232
233
  first_line: 1,
233
234
  first_column: 0,
234
235
  last_line: 1,
@@ -237,33 +238,33 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
237
238
  }, "setInput"),
238
239
  // consumes and returns one char from the input
239
240
  input: /* @__PURE__ */ a(function() {
240
- var h = this._input[0];
241
- this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
242
- var c = h.match(/(?:\r\n?|\n).*/g);
243
- return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
241
+ var r = this._input[0];
242
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
243
+ var l = r.match(/(?:\r\n?|\n).*/g);
244
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
244
245
  }, "input"),
245
246
  // unshifts one char (or a string) into the input
246
- unput: /* @__PURE__ */ a(function(h) {
247
- var c = h.length, g = h.split(/(?:\r\n?|\n)/g);
248
- this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
249
- var x = this.match.split(/(?:\r\n?|\n)/g);
250
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
251
- var A = this.yylloc.range;
247
+ unput: /* @__PURE__ */ a(function(r) {
248
+ var l = r.length, c = r.split(/(?:\r\n?|\n)/g);
249
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
250
+ var g = this.match.split(/(?:\r\n?|\n)/g);
251
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
252
+ var b = this.yylloc.range;
252
253
  return this.yylloc = {
253
254
  first_line: this.yylloc.first_line,
254
255
  last_line: this.yylineno + 1,
255
256
  first_column: this.yylloc.first_column,
256
- last_column: g ? (g.length === x.length ? this.yylloc.first_column : 0) + x[x.length - g.length].length - g[0].length : this.yylloc.first_column - c
257
- }, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
257
+ last_column: c ? (c.length === g.length ? this.yylloc.first_column : 0) + g[g.length - c.length].length - c[0].length : this.yylloc.first_column - l
258
+ }, this.options.ranges && (this.yylloc.range = [b[0], b[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
258
259
  }, "unput"),
259
260
  // When called from action, caches matched text and appends it on next action
260
261
  more: /* @__PURE__ */ a(function() {
261
- return this._more = !0, this;
262
+ return this._more = true, this;
262
263
  }, "more"),
263
264
  // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
264
265
  reject: /* @__PURE__ */ a(function() {
265
266
  if (this.options.backtrack_lexer)
266
- this._backtrack = !0;
267
+ this._backtrack = true;
267
268
  else
268
269
  return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
269
270
  ` + this.showPosition(), {
@@ -274,29 +275,29 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
274
275
  return this;
275
276
  }, "reject"),
276
277
  // retain first n characters of the match
277
- less: /* @__PURE__ */ a(function(h) {
278
- this.unput(this.match.slice(h));
278
+ less: /* @__PURE__ */ a(function(r) {
279
+ this.unput(this.match.slice(r));
279
280
  }, "less"),
280
281
  // displays already matched input, i.e. for error messages
281
282
  pastInput: /* @__PURE__ */ a(function() {
282
- var h = this.matched.substr(0, this.matched.length - this.match.length);
283
- return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
283
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
284
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
284
285
  }, "pastInput"),
285
286
  // displays upcoming input, i.e. for error messages
286
287
  upcomingInput: /* @__PURE__ */ a(function() {
287
- var h = this.match;
288
- return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
288
+ var r = this.match;
289
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
289
290
  }, "upcomingInput"),
290
291
  // displays the character position where the lexing error occurred, i.e. for error messages
291
292
  showPosition: /* @__PURE__ */ a(function() {
292
- var h = this.pastInput(), c = new Array(h.length + 1).join("-");
293
- return h + this.upcomingInput() + `
294
- ` + c + "^";
293
+ var r = this.pastInput(), l = new Array(r.length + 1).join("-");
294
+ return r + this.upcomingInput() + `
295
+ ` + l + "^";
295
296
  }, "showPosition"),
296
297
  // test the lexed token: return FALSE when not a match, otherwise return token
297
- test_match: /* @__PURE__ */ a(function(h, c) {
298
- var g, x, A;
299
- if (this.options.backtrack_lexer && (A = {
298
+ test_match: /* @__PURE__ */ a(function(r, l) {
299
+ var c, g, b;
300
+ if (this.options.backtrack_lexer && (b = {
300
301
  yylineno: this.yylineno,
301
302
  yylloc: {
302
303
  first_line: this.yylloc.first_line,
@@ -315,41 +316,41 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
315
316
  yy: this.yy,
316
317
  conditionStack: this.conditionStack.slice(0),
317
318
  done: this.done
318
- }, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), x = h[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
319
+ }, this.options.ranges && (b.yylloc.range = this.yylloc.range.slice(0))), g = r[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
319
320
  first_line: this.yylloc.last_line,
320
321
  last_line: this.yylineno + 1,
321
322
  first_column: this.yylloc.last_column,
322
- last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
323
- }, this.yytext += h[0], this.match += h[0], this.matches = h, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(h[0].length), this.matched += h[0], g = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
324
- return g;
323
+ last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
324
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c)
325
+ return c;
325
326
  if (this._backtrack) {
326
- for (var o in A)
327
- this[o] = A[o];
328
- return !1;
327
+ for (var o in b)
328
+ this[o] = b[o];
329
+ return false;
329
330
  }
330
- return !1;
331
+ return false;
331
332
  }, "test_match"),
332
333
  // return next match in input
333
334
  next: /* @__PURE__ */ a(function() {
334
335
  if (this.done)
335
336
  return this.EOF;
336
- this._input || (this.done = !0);
337
- var h, c, g, x;
337
+ this._input || (this.done = true);
338
+ var r, l, c, g;
338
339
  this._more || (this.yytext = "", this.match = "");
339
- for (var A = this._currentRules(), o = 0; o < A.length; o++)
340
- if (g = this._input.match(this.rules[A[o]]), g && (!c || g[0].length > c[0].length)) {
341
- if (c = g, x = o, this.options.backtrack_lexer) {
342
- if (h = this.test_match(g, A[o]), h !== !1)
343
- return h;
340
+ for (var b = this._currentRules(), o = 0; o < b.length; o++)
341
+ if (c = this._input.match(this.rules[b[o]]), c && (!l || c[0].length > l[0].length)) {
342
+ if (l = c, g = o, this.options.backtrack_lexer) {
343
+ if (r = this.test_match(c, b[o]), r !== false)
344
+ return r;
344
345
  if (this._backtrack) {
345
- c = !1;
346
+ l = false;
346
347
  continue;
347
348
  } else
348
- return !1;
349
+ return false;
349
350
  } else if (!this.options.flex)
350
351
  break;
351
352
  }
352
- return c ? (h = this.test_match(c, A[x]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
353
+ return l ? (r = this.test_match(l, b[g]), r !== false ? r : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
353
354
  ` + this.showPosition(), {
354
355
  text: "",
355
356
  token: null,
@@ -358,37 +359,37 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
358
359
  }, "next"),
359
360
  // return next match that has a token
360
361
  lex: /* @__PURE__ */ a(function() {
361
- var c = this.next();
362
- return c || this.lex();
362
+ var l = this.next();
363
+ return l || this.lex();
363
364
  }, "lex"),
364
365
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
365
- begin: /* @__PURE__ */ a(function(c) {
366
- this.conditionStack.push(c);
366
+ begin: /* @__PURE__ */ a(function(l) {
367
+ this.conditionStack.push(l);
367
368
  }, "begin"),
368
369
  // pop the previously active lexer condition state off the condition stack
369
370
  popState: /* @__PURE__ */ a(function() {
370
- var c = this.conditionStack.length - 1;
371
- return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
371
+ var l = this.conditionStack.length - 1;
372
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
372
373
  }, "popState"),
373
374
  // produce the lexer rule set which is active for the currently active lexer condition state
374
375
  _currentRules: /* @__PURE__ */ a(function() {
375
376
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
376
377
  }, "_currentRules"),
377
378
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
378
- topState: /* @__PURE__ */ a(function(c) {
379
- return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
379
+ topState: /* @__PURE__ */ a(function(l) {
380
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
380
381
  }, "topState"),
381
382
  // alias for begin(condition)
382
- pushState: /* @__PURE__ */ a(function(c) {
383
- this.begin(c);
383
+ pushState: /* @__PURE__ */ a(function(l) {
384
+ this.begin(l);
384
385
  }, "pushState"),
385
386
  // return the number of states currently on the stack
386
387
  stateStackSize: /* @__PURE__ */ a(function() {
387
388
  return this.conditionStack.length;
388
389
  }, "stateStackSize"),
389
- options: { "case-insensitive": !0 },
390
- performAction: /* @__PURE__ */ a(function(c, g, x, A) {
391
- switch (x) {
390
+ options: { "case-insensitive": true },
391
+ performAction: /* @__PURE__ */ a(function(l, c, g, b) {
392
+ switch (g) {
392
393
  case 0:
393
394
  break;
394
395
  case 1:
@@ -489,53 +490,53 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
489
490
  }
490
491
  }, "anonymous"),
491
492
  rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
492
- conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 22, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 }, acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [], inclusive: !1 }, md_string: { rules: [], inclusive: !1 }, string: { rules: [27, 28], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 } }
493
+ conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 22, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, title: { rules: [], inclusive: false }, md_string: { rules: [], inclusive: false }, string: { rules: [27, 28], inclusive: false }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true } }
493
494
  };
494
495
  return B;
495
496
  }();
496
- ct.lexer = oi;
497
- function st() {
497
+ tt.lexer = Qt;
498
+ function q() {
498
499
  this.yy = {};
499
500
  }
500
- return a(st, "Parser"), st.prototype = ct, ct.Parser = st, new st();
501
+ return a(q, "Parser"), q.prototype = tt, tt.Parser = q, new q();
501
502
  }();
502
- ft.parser = ft;
503
- var Ri = ft;
504
- function mt(e) {
505
- return e.type === "bar";
503
+ ot.parser = ot;
504
+ var fi = ot;
505
+ function rt(t) {
506
+ return t.type === "bar";
506
507
  }
507
- a(mt, "isBarPlot");
508
- function wt(e) {
509
- return e.type === "band";
508
+ a(rt, "isBarPlot");
509
+ function ut(t) {
510
+ return t.type === "band";
510
511
  }
511
- a(wt, "isBandAxisData");
512
- function F(e) {
513
- return e.type === "linear";
512
+ a(ut, "isBandAxisData");
513
+ function F(t) {
514
+ return t.type === "linear";
514
515
  }
515
516
  a(F, "isLinearAxisData");
516
- var X, Yt = (X = class {
517
+ var It = (_a = class {
517
518
  constructor(t) {
518
519
  this.parentGroup = t;
519
520
  }
520
521
  getMaxDimension(t, i) {
521
522
  if (!this.parentGroup)
522
523
  return {
523
- width: t.reduce((r, u) => Math.max(u.length, r), 0) * i,
524
+ width: t.reduce((n, x) => Math.max(x.length, n), 0) * i,
524
525
  height: i
525
526
  };
526
- const s = {
527
+ const e = {
527
528
  width: 0,
528
529
  height: 0
529
- }, n = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
530
- for (const r of t) {
531
- const u = Ci(n, 1, r), f = u ? u.width : r.length * i, p = u ? u.height : i;
532
- s.width = Math.max(s.width, f), s.height = Math.max(s.height, p);
530
+ }, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
531
+ for (const n of t) {
532
+ const x = gi(s, 1, n), u = x ? x.width : n.length * i, p = x ? x.height : i;
533
+ e.width = Math.max(e.width, u), e.height = Math.max(e.height, p);
533
534
  }
534
- return n.remove(), s;
535
+ return s.remove(), e;
535
536
  }
536
- }, a(X, "TextDimensionCalculatorWithFont"), X), Ot = 0.7, zt = 0.2, N, Ht = (N = class {
537
- constructor(t, i, s, n) {
538
- this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
537
+ }, a(_a, "TextDimensionCalculatorWithFont"), _a), Dt = 0.7, vt = 0.2, Mt = (_b = class {
538
+ constructor(t, i, e, s) {
539
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = s, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = false, this.showLabel = false, this.showTick = false, this.showAxisLine = false, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
539
540
  }
540
541
  setRange(t) {
541
542
  this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
@@ -560,39 +561,39 @@ var X, Yt = (X = class {
560
561
  );
561
562
  }
562
563
  recalculateOuterPaddingToDrawBar() {
563
- Ot * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ot * this.getTickDistance() / 2)), this.recalculateScale();
564
+ Dt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Dt * this.getTickDistance() / 2)), this.recalculateScale();
564
565
  }
565
566
  calculateSpaceIfDrawnHorizontally(t) {
566
567
  let i = t.height;
567
- if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
568
- const s = this.getLabelDimension(), n = zt * t.width;
569
- this.outerPadding = Math.min(s.width / 2, n);
570
- const r = s.height + this.axisConfig.labelPadding * 2;
571
- this.labelTextHeight = s.height, r <= i && (i -= r, this.showLabel = !0);
568
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
569
+ const e = this.getLabelDimension(), s = vt * t.width;
570
+ this.outerPadding = Math.min(e.width / 2, s);
571
+ const n = e.height + this.axisConfig.labelPadding * 2;
572
+ this.labelTextHeight = e.height, n <= i && (i -= n, this.showLabel = true);
572
573
  }
573
- if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
574
- const s = this.textDimensionCalculator.getMaxDimension(
574
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = true, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
575
+ const e = this.textDimensionCalculator.getMaxDimension(
575
576
  [this.title],
576
577
  this.axisConfig.titleFontSize
577
- ), n = s.height + this.axisConfig.titlePadding * 2;
578
- this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
578
+ ), s = e.height + this.axisConfig.titlePadding * 2;
579
+ this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = true);
579
580
  }
580
581
  this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
581
582
  }
582
583
  calculateSpaceIfDrawnVertical(t) {
583
584
  let i = t.width;
584
- if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
585
- const s = this.getLabelDimension(), n = zt * t.height;
586
- this.outerPadding = Math.min(s.height / 2, n);
587
- const r = s.width + this.axisConfig.labelPadding * 2;
588
- r <= i && (i -= r, this.showLabel = !0);
585
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
586
+ const e = this.getLabelDimension(), s = vt * t.height;
587
+ this.outerPadding = Math.min(e.height / 2, s);
588
+ const n = e.width + this.axisConfig.labelPadding * 2;
589
+ n <= i && (i -= n, this.showLabel = true);
589
590
  }
590
- if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
591
- const s = this.textDimensionCalculator.getMaxDimension(
591
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = true, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
592
+ const e = this.textDimensionCalculator.getMaxDimension(
592
593
  [this.title],
593
594
  this.axisConfig.titleFontSize
594
- ), n = s.height + this.axisConfig.titlePadding * 2;
595
- this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
595
+ ), s = e.height + this.axisConfig.titlePadding * 2;
596
+ this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = true);
596
597
  }
597
598
  this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
598
599
  }
@@ -639,8 +640,8 @@ var X, Yt = (X = class {
639
640
  t.push({
640
641
  type: "path",
641
642
  groupTexts: ["left-axis", "ticks"],
642
- data: this.getTickValues().map((s) => ({
643
- path: `M ${i},${this.getScaleValue(s)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(s)}`,
643
+ data: this.getTickValues().map((e) => ({
644
+ path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
644
645
  strokeFill: this.axisThemeConfig.tickColor,
645
646
  strokeWidth: this.axisConfig.tickWidth
646
647
  }))
@@ -697,8 +698,8 @@ var X, Yt = (X = class {
697
698
  t.push({
698
699
  type: "path",
699
700
  groupTexts: ["bottom-axis", "ticks"],
700
- data: this.getTickValues().map((s) => ({
701
- path: `M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i + this.axisConfig.tickLength}`,
701
+ data: this.getTickValues().map((e) => ({
702
+ path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
702
703
  strokeFill: this.axisThemeConfig.tickColor,
703
704
  strokeWidth: this.axisConfig.tickWidth
704
705
  }))
@@ -755,8 +756,8 @@ var X, Yt = (X = class {
755
756
  t.push({
756
757
  type: "path",
757
758
  groupTexts: ["top-axis", "ticks"],
758
- data: this.getTickValues().map((s) => ({
759
- path: `M ${this.getScaleValue(s)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(s)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
759
+ data: this.getTickValues().map((e) => ({
760
+ path: `M ${this.getScaleValue(e)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
760
761
  strokeFill: this.axisThemeConfig.tickColor,
761
762
  strokeWidth: this.axisConfig.tickWidth
762
763
  }))
@@ -786,15 +787,15 @@ var X, Yt = (X = class {
786
787
  throw Error("Drawing of right axis is not implemented");
787
788
  return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
788
789
  }
789
- }, a(N, "BaseAxis"), N), Y, Ti = (Y = class extends Ht {
790
- constructor(t, i, s, n, r) {
791
- super(t, n, r, i), this.categories = s, this.scale = pt().domain(this.categories).range(this.getRange());
790
+ }, a(_b, "BaseAxis"), _b), mi = (_c = class extends Mt {
791
+ constructor(t, i, e, s, n) {
792
+ super(t, s, n, i), this.categories = e, this.scale = at().domain(this.categories).range(this.getRange());
792
793
  }
793
794
  setRange(t) {
794
795
  super.setRange(t);
795
796
  }
796
797
  recalculateScale() {
797
- this.scale = pt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
798
+ this.scale = at().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Lt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
798
799
  }
799
800
  getTickValues() {
800
801
  return this.categories;
@@ -802,46 +803,46 @@ var X, Yt = (X = class {
802
803
  getScaleValue(t) {
803
804
  return this.scale(t) ?? this.getRange()[0];
804
805
  }
805
- }, a(Y, "BandAxis"), Y), H, Di = (H = class extends Ht {
806
- constructor(t, i, s, n, r) {
807
- super(t, n, r, i), this.domain = s, this.scale = Bt().domain(this.domain).range(this.getRange());
806
+ }, a(_c, "BandAxis"), _c), yi = (_d = class extends Mt {
807
+ constructor(t, i, e, s, n) {
808
+ super(t, s, n, i), this.domain = e, this.scale = Rt().domain(this.domain).range(this.getRange());
808
809
  }
809
810
  getTickValues() {
810
811
  return this.scale.ticks();
811
812
  }
812
813
  recalculateScale() {
813
814
  const t = [...this.domain];
814
- this.axisPosition === "left" && t.reverse(), this.scale = Bt().domain(t).range(this.getRange());
815
+ this.axisPosition === "left" && t.reverse(), this.scale = Rt().domain(t).range(this.getRange());
815
816
  }
816
817
  getScaleValue(t) {
817
818
  return this.scale(t);
818
819
  }
819
- }, a(H, "LinearAxis"), H);
820
- function yt(e, t, i, s) {
821
- const n = new Yt(s);
822
- return wt(e) ? new Ti(
823
- t,
820
+ }, a(_d, "LinearAxis"), _d);
821
+ function ht(t, i, e, s) {
822
+ const n = new It(s);
823
+ return ut(t) ? new mi(
824
824
  i,
825
- e.categories,
826
- e.title,
825
+ e,
826
+ t.categories,
827
+ t.title,
827
828
  n
828
- ) : new Di(
829
- t,
829
+ ) : new yi(
830
830
  i,
831
- [e.min, e.max],
832
- e.title,
831
+ e,
832
+ [t.min, t.max],
833
+ t.title,
833
834
  n
834
835
  );
835
836
  }
836
- a(yt, "getAxis");
837
- var U, vi = (U = class {
838
- constructor(t, i, s, n) {
839
- this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
837
+ a(ht, "getAxis");
838
+ var bi = (_e = class {
839
+ constructor(t, i, e, s) {
840
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
840
841
  x: 0,
841
842
  y: 0,
842
843
  width: 0,
843
844
  height: 0
844
- }, this.showChartTitle = !1;
845
+ }, this.showChartTitle = false;
845
846
  }
846
847
  setBoundingBoxXY(t) {
847
848
  this.boundingRect.x = t.x, this.boundingRect.y = t.y;
@@ -850,8 +851,8 @@ var U, vi = (U = class {
850
851
  const i = this.textDimensionCalculator.getMaxDimension(
851
852
  [this.chartData.title],
852
853
  this.chartConfig.titleFontSize
853
- ), s = Math.max(i.width, t.width), n = i.height + 2 * this.chartConfig.titlePadding;
854
- return i.width <= s && i.height <= n && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = n, this.showChartTitle = !0), {
854
+ ), e = Math.max(i.width, t.width), s = i.height + 2 * this.chartConfig.titlePadding;
855
+ return i.width <= e && i.height <= s && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = s, this.showChartTitle = true), {
855
856
  width: this.boundingRect.width,
856
857
  height: this.boundingRect.height
857
858
  };
@@ -875,23 +876,23 @@ var U, vi = (U = class {
875
876
  ]
876
877
  }), t;
877
878
  }
878
- }, a(U, "ChartTitle"), U);
879
- function Ut(e, t, i, s) {
880
- const n = new Yt(s);
881
- return new vi(n, e, t, i);
879
+ }, a(_e, "ChartTitle"), _e);
880
+ function Vt(t, i, e, s) {
881
+ const n = new It(s);
882
+ return new bi(n, t, i, e);
882
883
  }
883
- a(Ut, "getChartTitleComponent");
884
- var $, Pi = ($ = class {
885
- constructor(t, i, s, n, r) {
886
- this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = n, this.plotIndex = r;
884
+ a(Vt, "getChartTitleComponent");
885
+ var Ai = (_f = class {
886
+ constructor(t, i, e, s, n) {
887
+ this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = n;
887
888
  }
888
889
  getDrawableElement() {
889
- const t = this.plotData.data.map((s) => [
890
- this.xAxis.getScaleValue(s[0]),
891
- this.yAxis.getScaleValue(s[1])
890
+ const t = this.plotData.data.map((e) => [
891
+ this.xAxis.getScaleValue(e[0]),
892
+ this.yAxis.getScaleValue(e[1])
892
893
  ]);
893
894
  let i;
894
- return this.orientation === "horizontal" ? i = Wt().y((s) => s[0]).x((s) => s[1])(t) : i = Wt().x((s) => s[0]).y((s) => s[1])(t), i ? [
895
+ return this.orientation === "horizontal" ? i = Tt().y((e) => e[0]).x((e) => e[1])(t) : i = Tt().x((e) => e[0]).y((e) => e[1])(t), i ? [
895
896
  {
896
897
  groupTexts: ["plot", `line-plot-${this.plotIndex}`],
897
898
  type: "path",
@@ -905,24 +906,24 @@ var $, Pi = ($ = class {
905
906
  }
906
907
  ] : [];
907
908
  }
908
- }, a($, "LinePlot"), $), q, Li = (q = class {
909
- constructor(t, i, s, n, r, u) {
910
- this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = n, this.orientation = r, this.plotIndex = u;
909
+ }, a(_f, "LinePlot"), _f), wi = (_g = class {
910
+ constructor(t, i, e, s, n, x) {
911
+ this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex = x;
911
912
  }
912
913
  getDrawableElement() {
913
- const t = this.barData.data.map((r) => [
914
- this.xAxis.getScaleValue(r[0]),
915
- this.yAxis.getScaleValue(r[1])
916
- ]), s = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), n = s / 2;
914
+ const t = this.barData.data.map((n) => [
915
+ this.xAxis.getScaleValue(n[0]),
916
+ this.yAxis.getScaleValue(n[1])
917
+ ]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), s = e / 2;
917
918
  return this.orientation === "horizontal" ? [
918
919
  {
919
920
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
920
921
  type: "rect",
921
- data: t.map((r) => ({
922
+ data: t.map((n) => ({
922
923
  x: this.boundingRect.x,
923
- y: r[0] - n,
924
- height: s,
925
- width: r[1] - this.boundingRect.x,
924
+ y: n[0] - s,
925
+ height: e,
926
+ width: n[1] - this.boundingRect.x,
926
927
  fill: this.barData.fill,
927
928
  strokeWidth: 0,
928
929
  strokeFill: this.barData.fill
@@ -932,11 +933,11 @@ var $, Pi = ($ = class {
932
933
  {
933
934
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
934
935
  type: "rect",
935
- data: t.map((r) => ({
936
- x: r[0] - n,
937
- y: r[1],
938
- width: s,
939
- height: this.boundingRect.y + this.boundingRect.height - r[1],
936
+ data: t.map((n) => ({
937
+ x: n[0] - s,
938
+ y: n[1],
939
+ width: e,
940
+ height: this.boundingRect.y + this.boundingRect.height - n[1],
940
941
  fill: this.barData.fill,
941
942
  strokeWidth: 0,
942
943
  strokeFill: this.barData.fill
@@ -944,9 +945,9 @@ var $, Pi = ($ = class {
944
945
  }
945
946
  ];
946
947
  }
947
- }, a(q, "BarPlot"), q), G, Ei = (G = class {
948
- constructor(t, i, s) {
949
- this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
948
+ }, a(_g, "BarPlot"), _g), Ci = (_h = class {
949
+ constructor(t, i, e) {
950
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
950
951
  x: 0,
951
952
  y: 0,
952
953
  width: 0,
@@ -969,111 +970,111 @@ var $, Pi = ($ = class {
969
970
  if (!(this.xAxis && this.yAxis))
970
971
  throw Error("Axes must be passed to render Plots");
971
972
  const t = [];
972
- for (const [i, s] of this.chartData.plots.entries())
973
- switch (s.type) {
973
+ for (const [i, e] of this.chartData.plots.entries())
974
+ switch (e.type) {
974
975
  case "line":
975
976
  {
976
- const n = new Pi(
977
- s,
977
+ const s = new Ai(
978
+ e,
978
979
  this.xAxis,
979
980
  this.yAxis,
980
981
  this.chartConfig.chartOrientation,
981
982
  i
982
983
  );
983
- t.push(...n.getDrawableElement());
984
+ t.push(...s.getDrawableElement());
984
985
  }
985
986
  break;
986
987
  case "bar":
987
988
  {
988
- const n = new Li(
989
- s,
989
+ const s = new wi(
990
+ e,
990
991
  this.boundingRect,
991
992
  this.xAxis,
992
993
  this.yAxis,
993
994
  this.chartConfig.chartOrientation,
994
995
  i
995
996
  );
996
- t.push(...n.getDrawableElement());
997
+ t.push(...s.getDrawableElement());
997
998
  }
998
999
  break;
999
1000
  }
1000
1001
  return t;
1001
1002
  }
1002
- }, a(G, "BasePlot"), G);
1003
- function $t(e, t, i) {
1004
- return new Ei(e, t, i);
1003
+ }, a(_h, "BasePlot"), _h);
1004
+ function Bt(t, i, e) {
1005
+ return new Ci(t, i, e);
1005
1006
  }
1006
- a($t, "getPlotComponent");
1007
- var j, Ii = (j = class {
1008
- constructor(t, i, s, n) {
1007
+ a(Bt, "getPlotComponent");
1008
+ var Si = (_i2 = class {
1009
+ constructor(t, i, e, s) {
1009
1010
  this.chartConfig = t, this.chartData = i, this.componentStore = {
1010
- title: Ut(t, i, s, n),
1011
- plot: $t(t, i, s),
1012
- xAxis: yt(
1011
+ title: Vt(t, i, e, s),
1012
+ plot: Bt(t, i, e),
1013
+ xAxis: ht(
1013
1014
  i.xAxis,
1014
1015
  t.xAxis,
1015
1016
  {
1016
- titleColor: s.xAxisTitleColor,
1017
- labelColor: s.xAxisLabelColor,
1018
- tickColor: s.xAxisTickColor,
1019
- axisLineColor: s.xAxisLineColor
1017
+ titleColor: e.xAxisTitleColor,
1018
+ labelColor: e.xAxisLabelColor,
1019
+ tickColor: e.xAxisTickColor,
1020
+ axisLineColor: e.xAxisLineColor
1020
1021
  },
1021
- n
1022
+ s
1022
1023
  ),
1023
- yAxis: yt(
1024
+ yAxis: ht(
1024
1025
  i.yAxis,
1025
1026
  t.yAxis,
1026
1027
  {
1027
- titleColor: s.yAxisTitleColor,
1028
- labelColor: s.yAxisLabelColor,
1029
- tickColor: s.yAxisTickColor,
1030
- axisLineColor: s.yAxisLineColor
1028
+ titleColor: e.yAxisTitleColor,
1029
+ labelColor: e.yAxisLabelColor,
1030
+ tickColor: e.yAxisTickColor,
1031
+ axisLineColor: e.yAxisLineColor
1031
1032
  },
1032
- n
1033
+ s
1033
1034
  )
1034
1035
  };
1035
1036
  }
1036
1037
  calculateVerticalSpace() {
1037
- let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, r = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
1038
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), x = Math.floor(
1038
1039
  i * this.chartConfig.plotReservedSpacePercent / 100
1039
- ), f = this.componentStore.plot.calculateSpace({
1040
- width: r,
1041
- height: u
1040
+ ), u = this.componentStore.plot.calculateSpace({
1041
+ width: n,
1042
+ height: x
1042
1043
  });
1043
- t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
1044
+ t -= u.width, i -= u.height, u = this.componentStore.title.calculateSpace({
1044
1045
  width: this.chartConfig.width,
1045
1046
  height: i
1046
- }), n = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("bottom"), f = this.componentStore.xAxis.calculateSpace({
1047
+ }), s = u.height, i -= u.height, this.componentStore.xAxis.setAxisPosition("bottom"), u = this.componentStore.xAxis.calculateSpace({
1047
1048
  width: t,
1048
1049
  height: i
1049
- }), i -= f.height, this.componentStore.yAxis.setAxisPosition("left"), f = this.componentStore.yAxis.calculateSpace({
1050
+ }), i -= u.height, this.componentStore.yAxis.setAxisPosition("left"), u = this.componentStore.yAxis.calculateSpace({
1050
1051
  width: t,
1051
1052
  height: i
1052
- }), s = f.width, t -= f.width, t > 0 && (r += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
1053
- width: r,
1054
- height: u
1055
- }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.xAxis.setRange([s, s + r]), this.componentStore.xAxis.setBoundingBoxXY({ x: s, y: n + u }), this.componentStore.yAxis.setRange([n, n + u]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((p) => mt(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1053
+ }), e = u.width, t -= u.width, t > 0 && (n += t, t = 0), i > 0 && (x += i, i = 0), this.componentStore.plot.calculateSpace({
1054
+ width: n,
1055
+ height: x
1056
+ }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + x }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => rt(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1056
1057
  }
1057
1058
  calculateHorizontalSpace() {
1058
- let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, r = 0, u = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), f = Math.floor(
1059
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0, x = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
1059
1060
  i * this.chartConfig.plotReservedSpacePercent / 100
1060
1061
  ), p = this.componentStore.plot.calculateSpace({
1061
- width: u,
1062
- height: f
1062
+ width: x,
1063
+ height: u
1063
1064
  });
1064
1065
  t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
1065
1066
  width: this.chartConfig.width,
1066
1067
  height: i
1067
- }), s = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
1068
+ }), e = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
1068
1069
  width: t,
1069
1070
  height: i
1070
- }), t -= p.width, n = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
1071
+ }), t -= p.width, s = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
1071
1072
  width: t,
1072
1073
  height: i
1073
- }), i -= p.height, r = s + p.height, t > 0 && (u += t, t = 0), i > 0 && (f += i, i = 0), this.componentStore.plot.calculateSpace({
1074
- width: u,
1075
- height: f
1076
- }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: r }), this.componentStore.yAxis.setRange([n, n + u]), this.componentStore.yAxis.setBoundingBoxXY({ x: n, y: s }), this.componentStore.xAxis.setRange([r, r + f]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: r }), this.chartData.plots.some((k) => mt(k)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1074
+ }), i -= p.height, n = e + p.height, t > 0 && (x += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
1075
+ width: x,
1076
+ height: u
1077
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([n, n + u]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((C) => rt(C)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1077
1078
  }
1078
1079
  calculateSpace() {
1079
1080
  this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
@@ -1086,25 +1087,25 @@ var j, Ii = (j = class {
1086
1087
  t.push(...i.getDrawableElements());
1087
1088
  return t;
1088
1089
  }
1089
- }, a(j, "Orchestrator"), j), Q, Mi = (Q = class {
1090
- static build(t, i, s, n) {
1091
- return new Ii(t, i, s, n).getDrawableElement();
1090
+ }, a(_i2, "Orchestrator"), _i2), _i = (_j = class {
1091
+ static build(t, i, e, s) {
1092
+ return new Si(t, i, e, s).getDrawableElement();
1092
1093
  }
1093
- }, a(Q, "XYChartBuilder"), Q), J = 0, qt, tt = _t(), it = St(), b = kt(), bt = it.plotColorPalette.split(",").map((e) => e.trim()), rt = !1, Ct = !1;
1094
- function St() {
1095
- const e = Ai(), t = At();
1096
- return Nt(e.xyChart, t.themeVariables.xyChart);
1094
+ }, a(_j, "XYChartBuilder"), _j), Y = 0, Wt, H = dt(), U = xt(), y = pt(), lt = U.plotColorPalette.split(",").map((t) => t.trim()), K = false, gt = false;
1095
+ function xt() {
1096
+ const t = ci(), i = ct();
1097
+ return Et(t.xyChart, i.themeVariables.xyChart);
1097
1098
  }
1098
- a(St, "getChartDefaultThemeConfig");
1099
- function _t() {
1100
- const e = At();
1101
- return Nt(
1102
- bi.xyChart,
1103
- e.xyChart
1099
+ a(xt, "getChartDefaultThemeConfig");
1100
+ function dt() {
1101
+ const t = ct();
1102
+ return Et(
1103
+ li.xyChart,
1104
+ t.xyChart
1104
1105
  );
1105
1106
  }
1106
- a(_t, "getChartDefaultConfig");
1107
- function kt() {
1107
+ a(dt, "getChartDefaultConfig");
1108
+ function pt() {
1108
1109
  return {
1109
1110
  yAxis: {
1110
1111
  type: "linear",
@@ -1121,180 +1122,180 @@ function kt() {
1121
1122
  plots: []
1122
1123
  };
1123
1124
  }
1124
- a(kt, "getChartDefaultData");
1125
- function ht(e) {
1126
- const t = At();
1127
- return wi(e.trim(), t);
1125
+ a(pt, "getChartDefaultData");
1126
+ function Z(t) {
1127
+ const i = ct();
1128
+ return ui(t.trim(), i);
1128
1129
  }
1129
- a(ht, "textSanitizer");
1130
- function Gt(e) {
1131
- qt = e;
1130
+ a(Z, "textSanitizer");
1131
+ function Ot(t) {
1132
+ Wt = t;
1132
1133
  }
1133
- a(Gt, "setTmpSVGG");
1134
- function jt(e) {
1135
- e === "horizontal" ? tt.chartOrientation = "horizontal" : tt.chartOrientation = "vertical";
1134
+ a(Ot, "setTmpSVGG");
1135
+ function zt(t) {
1136
+ t === "horizontal" ? H.chartOrientation = "horizontal" : H.chartOrientation = "vertical";
1136
1137
  }
1137
- a(jt, "setOrientation");
1138
- function Qt(e) {
1139
- b.xAxis.title = ht(e.text);
1138
+ a(zt, "setOrientation");
1139
+ function Ft(t) {
1140
+ y.xAxis.title = Z(t.text);
1140
1141
  }
1141
- a(Qt, "setXAxisTitle");
1142
- function Rt(e, t) {
1143
- b.xAxis = { type: "linear", title: b.xAxis.title, min: e, max: t }, rt = !0;
1142
+ a(Ft, "setXAxisTitle");
1143
+ function ft(t, i) {
1144
+ y.xAxis = { type: "linear", title: y.xAxis.title, min: t, max: i }, K = true;
1144
1145
  }
1145
- a(Rt, "setXAxisRangeData");
1146
- function Kt(e) {
1147
- b.xAxis = {
1146
+ a(ft, "setXAxisRangeData");
1147
+ function Xt(t) {
1148
+ y.xAxis = {
1148
1149
  type: "band",
1149
- title: b.xAxis.title,
1150
- categories: e.map((t) => ht(t.text))
1151
- }, rt = !0;
1150
+ title: y.xAxis.title,
1151
+ categories: t.map((i) => Z(i.text))
1152
+ }, K = true;
1152
1153
  }
1153
- a(Kt, "setXAxisBand");
1154
- function Zt(e) {
1155
- b.yAxis.title = ht(e.text);
1154
+ a(Xt, "setXAxisBand");
1155
+ function Nt(t) {
1156
+ y.yAxis.title = Z(t.text);
1156
1157
  }
1157
- a(Zt, "setYAxisTitle");
1158
- function Jt(e, t) {
1159
- b.yAxis = { type: "linear", title: b.yAxis.title, min: e, max: t }, Ct = !0;
1158
+ a(Nt, "setYAxisTitle");
1159
+ function Yt(t, i) {
1160
+ y.yAxis = { type: "linear", title: y.yAxis.title, min: t, max: i }, gt = true;
1160
1161
  }
1161
- a(Jt, "setYAxisRangeData");
1162
- function ti(e) {
1163
- const t = Math.min(...e), i = Math.max(...e), s = F(b.yAxis) ? b.yAxis.min : 1 / 0, n = F(b.yAxis) ? b.yAxis.max : -1 / 0;
1164
- b.yAxis = {
1162
+ a(Yt, "setYAxisRangeData");
1163
+ function Ht(t) {
1164
+ const i = Math.min(...t), e = Math.max(...t), s = F(y.yAxis) ? y.yAxis.min : 1 / 0, n = F(y.yAxis) ? y.yAxis.max : -1 / 0;
1165
+ y.yAxis = {
1165
1166
  type: "linear",
1166
- title: b.yAxis.title,
1167
- min: Math.min(s, t),
1168
- max: Math.max(n, i)
1167
+ title: y.yAxis.title,
1168
+ min: Math.min(s, i),
1169
+ max: Math.max(n, e)
1169
1170
  };
1170
1171
  }
1171
- a(ti, "setYAxisRangeFromPlotData");
1172
- function Tt(e) {
1173
- let t = [];
1174
- if (e.length === 0)
1175
- return t;
1176
- if (!rt) {
1177
- const i = F(b.xAxis) ? b.xAxis.min : 1 / 0, s = F(b.xAxis) ? b.xAxis.max : -1 / 0;
1178
- Rt(Math.min(i, 1), Math.max(s, e.length));
1172
+ a(Ht, "setYAxisRangeFromPlotData");
1173
+ function mt(t) {
1174
+ let i = [];
1175
+ if (t.length === 0)
1176
+ return i;
1177
+ if (!K) {
1178
+ const e = F(y.xAxis) ? y.xAxis.min : 1 / 0, s = F(y.xAxis) ? y.xAxis.max : -1 / 0;
1179
+ ft(Math.min(e, 1), Math.max(s, t.length));
1179
1180
  }
1180
- if (Ct || ti(e), wt(b.xAxis) && (t = b.xAxis.categories.map((i, s) => [i, e[s]])), F(b.xAxis)) {
1181
- const i = b.xAxis.min, s = b.xAxis.max, n = (s - i) / (e.length - 1), r = [];
1182
- for (let u = i; u <= s; u += n)
1183
- r.push(`${u}`);
1184
- t = r.map((u, f) => [u, e[f]]);
1181
+ if (gt || Ht(t), ut(y.xAxis) && (i = y.xAxis.categories.map((e, s) => [e, t[s]])), F(y.xAxis)) {
1182
+ const e = y.xAxis.min, s = y.xAxis.max, n = (s - e) / (t.length - 1), x = [];
1183
+ for (let u = e; u <= s; u += n)
1184
+ x.push(`${u}`);
1185
+ i = x.map((u, p) => [u, t[p]]);
1185
1186
  }
1186
- return t;
1187
+ return i;
1187
1188
  }
1188
- a(Tt, "transformDataWithoutCategory");
1189
- function Dt(e) {
1190
- return bt[e === 0 ? 0 : e % bt.length];
1189
+ a(mt, "transformDataWithoutCategory");
1190
+ function yt(t) {
1191
+ return lt[t === 0 ? 0 : t % lt.length];
1191
1192
  }
1192
- a(Dt, "getPlotColorFromPalette");
1193
- function ii(e, t) {
1194
- const i = Tt(t);
1195
- b.plots.push({
1193
+ a(yt, "getPlotColorFromPalette");
1194
+ function Ut(t, i) {
1195
+ const e = mt(i);
1196
+ y.plots.push({
1196
1197
  type: "line",
1197
- strokeFill: Dt(J),
1198
+ strokeFill: yt(Y),
1198
1199
  strokeWidth: 2,
1199
- data: i
1200
- }), J++;
1200
+ data: e
1201
+ }), Y++;
1201
1202
  }
1202
- a(ii, "setLineData");
1203
- function ei(e, t) {
1204
- const i = Tt(t);
1205
- b.plots.push({
1203
+ a(Ut, "setLineData");
1204
+ function $t(t, i) {
1205
+ const e = mt(i);
1206
+ y.plots.push({
1206
1207
  type: "bar",
1207
- fill: Dt(J),
1208
- data: i
1209
- }), J++;
1208
+ fill: yt(Y),
1209
+ data: e
1210
+ }), Y++;
1210
1211
  }
1211
- a(ei, "setBarData");
1212
- function si() {
1213
- if (b.plots.length === 0)
1212
+ a($t, "setBarData");
1213
+ function qt() {
1214
+ if (y.plots.length === 0)
1214
1215
  throw Error("No Plot to render, please provide a plot with some data");
1215
- return b.title = Ft(), Mi.build(tt, b, it, qt);
1216
+ return y.title = Pt(), _i.build(H, y, U, Wt);
1216
1217
  }
1217
- a(si, "getDrawableElem");
1218
- function ni() {
1219
- return it;
1218
+ a(qt, "getDrawableElem");
1219
+ function Gt() {
1220
+ return U;
1220
1221
  }
1221
- a(ni, "getChartThemeConfig");
1222
- function ai() {
1223
- return tt;
1222
+ a(Gt, "getChartThemeConfig");
1223
+ function jt() {
1224
+ return H;
1224
1225
  }
1225
- a(ai, "getChartConfig");
1226
- var Vi = /* @__PURE__ */ a(function() {
1227
- yi(), J = 0, tt = _t(), b = kt(), it = St(), bt = it.plotColorPalette.split(",").map((e) => e.trim()), rt = !1, Ct = !1;
1228
- }, "clear"), Bi = {
1229
- getDrawableElem: si,
1230
- clear: Vi,
1231
- setAccTitle: pi,
1232
- getAccTitle: di,
1233
- setDiagramTitle: xi,
1234
- getDiagramTitle: Ft,
1235
- getAccDescription: gi,
1236
- setAccDescription: ui,
1237
- setOrientation: jt,
1238
- setXAxisTitle: Qt,
1239
- setXAxisRangeData: Rt,
1240
- setXAxisBand: Kt,
1241
- setYAxisTitle: Zt,
1242
- setYAxisRangeData: Jt,
1243
- setLineData: ii,
1244
- setBarData: ei,
1245
- setTmpSVGG: Gt,
1246
- getChartThemeConfig: ni,
1247
- getChartConfig: ai
1248
- }, Wi = /* @__PURE__ */ a((e, t, i, s) => {
1249
- const n = s.db, r = n.getChartThemeConfig(), u = n.getChartConfig();
1250
- function f(m) {
1251
- return m === "top" ? "text-before-edge" : "middle";
1226
+ a(jt, "getChartConfig");
1227
+ var ki = /* @__PURE__ */ a(function() {
1228
+ hi(), Y = 0, H = dt(), y = pt(), U = xt(), lt = U.plotColorPalette.split(",").map((t) => t.trim()), K = false, gt = false;
1229
+ }, "clear"), Ri = {
1230
+ getDrawableElem: qt,
1231
+ clear: ki,
1232
+ setAccTitle: ai,
1233
+ getAccTitle: ni,
1234
+ setDiagramTitle: si,
1235
+ getDiagramTitle: Pt,
1236
+ getAccDescription: ei,
1237
+ setAccDescription: ii,
1238
+ setOrientation: zt,
1239
+ setXAxisTitle: Ft,
1240
+ setXAxisRangeData: ft,
1241
+ setXAxisBand: Xt,
1242
+ setYAxisTitle: Nt,
1243
+ setYAxisRangeData: Yt,
1244
+ setLineData: Ut,
1245
+ setBarData: $t,
1246
+ setTmpSVGG: Ot,
1247
+ getChartThemeConfig: Gt,
1248
+ getChartConfig: jt
1249
+ }, Ti = /* @__PURE__ */ a((t, i, e, s) => {
1250
+ const n = s.db, x = n.getChartThemeConfig(), u = n.getChartConfig();
1251
+ function p(f) {
1252
+ return f === "top" ? "text-before-edge" : "middle";
1252
1253
  }
1253
- a(f, "getDominantBaseLine");
1254
- function p(m) {
1255
- return m === "left" ? "start" : m === "right" ? "end" : "middle";
1254
+ a(p, "getDominantBaseLine");
1255
+ function C(f) {
1256
+ return f === "left" ? "start" : f === "right" ? "end" : "middle";
1256
1257
  }
1257
- a(p, "getTextAnchor");
1258
- function k(m) {
1259
- return `translate(${m.x}, ${m.y}) rotate(${m.rotation || 0})`;
1258
+ a(C, "getTextAnchor");
1259
+ function T(f) {
1260
+ return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
1260
1261
  }
1261
- a(k, "getTextTransformation"), Xt.debug(`Rendering xychart chart
1262
- ` + e);
1263
- const R = fi(t), w = R.append("g").attr("class", "main"), y = w.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
1264
- mi(R, u.height, u.width, !0), R.attr("viewBox", `0 0 ${u.width} ${u.height}`), y.attr("fill", r.backgroundColor), n.setTmpSVGG(R.append("g").attr("class", "mermaid-tmp-group"));
1262
+ a(T, "getTextTransformation"), Lt.debug(`Rendering xychart chart
1263
+ ` + t);
1264
+ const k = oi(i), A = k.append("g").attr("class", "main"), m = A.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
1265
+ ri(k, u.height, u.width, true), k.attr("viewBox", `0 0 ${u.width} ${u.height}`), m.attr("fill", x.backgroundColor), n.setTmpSVGG(k.append("g").attr("class", "mermaid-tmp-group"));
1265
1266
  const D = n.getDrawableElem(), S = {};
1266
- function v(m) {
1267
- let _ = w, l = "";
1268
- for (const [E] of m.entries()) {
1269
- let K = w;
1270
- E > 0 && S[l] && (K = S[l]), l += m[E], _ = S[l], _ || (_ = S[l] = K.append("g").attr("class", m[E]));
1267
+ function v(f) {
1268
+ let _ = A, h = "";
1269
+ for (const [E] of f.entries()) {
1270
+ let X = A;
1271
+ E > 0 && S[h] && (X = S[h]), h += f[E], _ = S[h], _ || (_ = S[h] = X.append("g").attr("class", f[E]));
1271
1272
  }
1272
1273
  return _;
1273
1274
  }
1274
1275
  a(v, "getGroup");
1275
- for (const m of D) {
1276
- if (m.data.length === 0)
1276
+ for (const f of D) {
1277
+ if (f.data.length === 0)
1277
1278
  continue;
1278
- const _ = v(m.groupTexts);
1279
- switch (m.type) {
1279
+ const _ = v(f.groupTexts);
1280
+ switch (f.type) {
1280
1281
  case "rect":
1281
- _.selectAll("rect").data(m.data).enter().append("rect").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).attr("fill", (l) => l.fill).attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
1282
+ _.selectAll("rect").data(f.data).enter().append("rect").attr("x", (h) => h.x).attr("y", (h) => h.y).attr("width", (h) => h.width).attr("height", (h) => h.height).attr("fill", (h) => h.fill).attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
1282
1283
  break;
1283
1284
  case "text":
1284
- _.selectAll("text").data(m.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (l) => l.fill).attr("font-size", (l) => l.fontSize).attr("dominant-baseline", (l) => f(l.verticalPos)).attr("text-anchor", (l) => p(l.horizontalPos)).attr("transform", (l) => k(l)).text((l) => l.text);
1285
+ _.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (h) => h.fill).attr("font-size", (h) => h.fontSize).attr("dominant-baseline", (h) => p(h.verticalPos)).attr("text-anchor", (h) => C(h.horizontalPos)).attr("transform", (h) => T(h)).text((h) => h.text);
1285
1286
  break;
1286
1287
  case "path":
1287
- _.selectAll("path").data(m.data).enter().append("path").attr("d", (l) => l.path).attr("fill", (l) => l.fill ? l.fill : "none").attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
1288
+ _.selectAll("path").data(f.data).enter().append("path").attr("d", (h) => h.path).attr("fill", (h) => h.fill ? h.fill : "none").attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
1288
1289
  break;
1289
1290
  }
1290
1291
  }
1291
- }, "draw"), Oi = {
1292
- draw: Wi
1293
- }, Ui = {
1294
- parser: Ri,
1295
- db: Bi,
1296
- renderer: Oi
1292
+ }, "draw"), Di = {
1293
+ draw: Ti
1294
+ }, Vi = {
1295
+ parser: fi,
1296
+ db: Ri,
1297
+ renderer: Di
1297
1298
  };
1298
1299
  export {
1299
- Ui as diagram
1300
+ Vi as diagram
1300
1301
  };