@kong-ui-public/documentation 1.4.17-pr.2665.525593492.0 → 1.4.17

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 (84) hide show
  1. package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +151 -0
  2. package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
  3. package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
  4. package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
  5. package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
  6. package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
  7. package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
  8. package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
  9. package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
  10. package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
  11. package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
  12. package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
  13. package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
  14. package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
  15. package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
  16. package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
  17. package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
  18. package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
  19. package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
  20. package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
  21. package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
  22. package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
  23. package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
  24. package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
  25. package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
  26. package/dist/documentation.es.js +1 -1
  27. package/dist/documentation.umd.js +860 -399
  28. package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
  29. package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
  30. package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
  31. package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
  32. package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
  33. package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
  34. package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
  35. package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
  36. package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
  37. package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
  38. package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
  39. package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
  40. package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
  41. package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
  42. package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
  43. package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
  44. package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
  45. package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
  46. package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
  47. package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
  48. package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
  49. package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
  50. package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
  51. package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
  52. package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
  53. package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
  54. package/dist/style.css +1 -1
  55. package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
  56. package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
  57. package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
  58. package/package.json +4 -4
  59. package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
  60. package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
  61. package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
  62. package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
  63. package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
  64. package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
  65. package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
  66. package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
  67. package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
  68. package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
  69. package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
  70. package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
  71. package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
  72. package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
  73. package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
  74. package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
  75. package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
  76. package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
  77. package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
  78. package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
  79. package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
  80. package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
  81. package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
  82. package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
  83. package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
  84. package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
@@ -1,219 +1,219 @@
1
- import { _ as a, a5 as ci, a6 as ui, aj as Ft, ak as gi, a7 as xi, a8 as pi, l as Ot, aW as di, aa as fi, aq as mi, aD as bt, aC as Nt, aE as yi, bd as bi, ad as Ai, be as Si, ay as Mt } from "./index-CMZig9xg.js";
2
- import { t as wi } from "./init-DjUOC4st-C8Nwz6AJ.js";
3
- import { h as Ci } from "./ordinal-DfAQgscy-BEJTu10r.js";
4
- import { Z as Bt } from "./linear-C2PheBya-BHVXLcru.js";
5
- function ki(t, i, e) {
6
- t = +t, i = +i, e = (o = arguments.length) < 2 ? (i = t, t = 0, 1) : o < 3 ? 1 : +e;
7
- for (var s = -1, o = Math.max(0, Math.ceil((i - t) / e)) | 0, u = new Array(o); ++s < o; )
8
- u[s] = t + s * e;
9
- return u;
1
+ import { _ as a, a5 as gi, a6 as ui, ao as Xt, an as xi, a7 as di, a8 as pi, l as Nt, aU as fi, aa as mi, at as yi, aB as Ct, aA as Ot, aC as bi, bb as Ai, ad as Si, bc as wi, bd as zt } from "./index-BDD0CD9m.js";
2
+ import { t as Ci } from "./init-DjUOC4st-C8Nwz6AJ.js";
3
+ import { h as ki } from "./ordinal-DfAQgscy-BEJTu10r.js";
4
+ import { f as Wt } from "./linear-C-k9vokG-Md9dfBfB.js";
5
+ function _i(t, i, e) {
6
+ t = +t, i = +i, e = (h = arguments.length) < 2 ? (i = t, t = 0, 1) : h < 3 ? 1 : +e;
7
+ for (var s = -1, h = Math.max(0, Math.ceil((i - t) / e)) | 0, x = new Array(h); ++s < h; )
8
+ x[s] = t + s * e;
9
+ return x;
10
10
  }
11
- function pt() {
12
- var t = Ci().unknown(void 0), i = t.domain, e = t.range, s = 0, o = 1, u, g, p = !1, S = 0, T = 0, k = 0.5;
11
+ function yt() {
12
+ var t = ki().unknown(void 0), i = t.domain, e = t.range, s = 0, h = 1, x, u, f = !1, w = 0, R = 0, D = 0.5;
13
13
  delete t.unknown;
14
- function b() {
15
- var f = i().length, R = o < s, w = R ? o : s, D = R ? s : o;
16
- u = (D - w) / Math.max(1, f - S + T * 2), p && (u = Math.floor(u)), w += (D - w - u * (f - S)) * k, g = u * (1 - S), p && (w = Math.round(w), g = Math.round(g));
17
- var d = ki(f).map(function(C) {
18
- return w + u * C;
14
+ function A() {
15
+ var m = i().length, v = h < s, T = v ? h : s, L = v ? s : h;
16
+ x = (L - T) / Math.max(1, m - w + R * 2), f && (x = Math.floor(x)), T += (L - T - x * (m - w)) * D, u = x * (1 - w), f && (T = Math.round(T), u = Math.round(u));
17
+ var E = _i(m).map(function(p) {
18
+ return T + x * p;
19
19
  });
20
- return e(R ? d.reverse() : d);
20
+ return e(v ? E.reverse() : E);
21
21
  }
22
- return t.domain = function(f) {
23
- return arguments.length ? (i(f), b()) : i();
24
- }, t.range = function(f) {
25
- return arguments.length ? ([s, o] = f, s = +s, o = +o, b()) : [s, o];
26
- }, t.rangeRound = function(f) {
27
- return [s, o] = f, s = +s, o = +o, p = !0, b();
22
+ return t.domain = function(m) {
23
+ return arguments.length ? (i(m), A()) : i();
24
+ }, t.range = function(m) {
25
+ return arguments.length ? ([s, h] = m, s = +s, h = +h, A()) : [s, h];
26
+ }, t.rangeRound = function(m) {
27
+ return [s, h] = m, s = +s, h = +h, f = !0, A();
28
28
  }, t.bandwidth = function() {
29
- return g;
30
- }, t.step = function() {
31
29
  return u;
32
- }, t.round = function(f) {
33
- return arguments.length ? (p = !!f, b()) : p;
34
- }, t.padding = function(f) {
35
- return arguments.length ? (S = Math.min(1, T = +f), b()) : S;
36
- }, t.paddingInner = function(f) {
37
- return arguments.length ? (S = Math.min(1, f), b()) : S;
38
- }, t.paddingOuter = function(f) {
39
- return arguments.length ? (T = +f, b()) : T;
40
- }, t.align = function(f) {
41
- return arguments.length ? (k = Math.max(0, Math.min(1, f)), b()) : k;
30
+ }, t.step = function() {
31
+ return x;
32
+ }, t.round = function(m) {
33
+ return arguments.length ? (f = !!m, A()) : f;
34
+ }, t.padding = function(m) {
35
+ return arguments.length ? (w = Math.min(1, R = +m), A()) : w;
36
+ }, t.paddingInner = function(m) {
37
+ return arguments.length ? (w = Math.min(1, m), A()) : w;
38
+ }, t.paddingOuter = function(m) {
39
+ return arguments.length ? (R = +m, A()) : R;
40
+ }, t.align = function(m) {
41
+ return arguments.length ? (D = Math.max(0, Math.min(1, m)), A()) : D;
42
42
  }, t.copy = function() {
43
- return pt(i(), [s, o]).round(p).paddingInner(S).paddingOuter(T).align(k);
44
- }, wi.apply(b(), arguments);
43
+ return yt(i(), [s, h]).round(f).paddingInner(w).paddingOuter(R).align(D);
44
+ }, Ci.apply(A(), arguments);
45
45
  }
46
- var dt = function() {
47
- var t = /* @__PURE__ */ a(function(M, h, l, c) {
48
- for (l = l || {}, c = M.length; c--; l[M[c]] = h) ;
49
- return l;
50
- }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], o = [1, 5], u = [1, 6], g = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], S = [1, 25], T = [1, 26], k = [1, 28], b = [1, 29], f = [1, 30], R = [1, 31], w = [1, 32], D = [1, 33], d = [1, 34], C = [1, 35], r = [1, 36], P = [1, 37], N = [1, 43], Dt = [1, 42], Lt = [1, 47], U = [1, 50], A = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], q = [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], vt = [1, 64], J = {
46
+ var bt = function() {
47
+ var t = /* @__PURE__ */ a(function(z, o, c, g) {
48
+ for (c = c || {}, g = z.length; g--; c[z[g]] = o) ;
49
+ return c;
50
+ }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], h = [1, 5], x = [1, 6], u = [1, 7], f = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], w = [1, 25], R = [1, 26], D = [1, 28], A = [1, 29], m = [1, 30], v = [1, 31], T = [1, 32], L = [1, 33], E = [1, 34], p = [1, 35], C = [1, 36], l = [1, 37], B = [1, 43], F = [1, 42], U = [1, 47], N = [1, 50], r = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], P = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], S = [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], k = [1, 64], j = {
51
51
  trace: /* @__PURE__ */ a(function() {
52
52
  }, "trace"),
53
53
  yy: {},
54
54
  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 },
55
55
  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" },
56
56
  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]],
57
- performAction: /* @__PURE__ */ a(function(M, h, l, c, y, n, L) {
58
- var x = n.length - 1;
59
- switch (y) {
57
+ performAction: /* @__PURE__ */ a(function(z, o, c, g, b, n, I) {
58
+ var d = n.length - 1;
59
+ switch (b) {
60
60
  case 5:
61
- c.setOrientation(n[x]);
61
+ g.setOrientation(n[d]);
62
62
  break;
63
63
  case 9:
64
- c.setDiagramTitle(n[x].text.trim());
64
+ g.setDiagramTitle(n[d].text.trim());
65
65
  break;
66
66
  case 12:
67
- c.setLineData({ text: "", type: "text" }, n[x]);
67
+ g.setLineData({ text: "", type: "text" }, n[d]);
68
68
  break;
69
69
  case 13:
70
- c.setLineData(n[x - 1], n[x]);
70
+ g.setLineData(n[d - 1], n[d]);
71
71
  break;
72
72
  case 14:
73
- c.setBarData({ text: "", type: "text" }, n[x]);
73
+ g.setBarData({ text: "", type: "text" }, n[d]);
74
74
  break;
75
75
  case 15:
76
- c.setBarData(n[x - 1], n[x]);
76
+ g.setBarData(n[d - 1], n[d]);
77
77
  break;
78
78
  case 16:
79
- this.$ = n[x].trim(), c.setAccTitle(this.$);
79
+ this.$ = n[d].trim(), g.setAccTitle(this.$);
80
80
  break;
81
81
  case 17:
82
82
  case 18:
83
- this.$ = n[x].trim(), c.setAccDescription(this.$);
83
+ this.$ = n[d].trim(), g.setAccDescription(this.$);
84
84
  break;
85
85
  case 19:
86
- this.$ = n[x - 1];
86
+ this.$ = n[d - 1];
87
87
  break;
88
88
  case 20:
89
- this.$ = [Number(n[x - 2]), ...n[x]];
89
+ this.$ = [Number(n[d - 2]), ...n[d]];
90
90
  break;
91
91
  case 21:
92
- this.$ = [Number(n[x])];
92
+ this.$ = [Number(n[d])];
93
93
  break;
94
94
  case 22:
95
- c.setXAxisTitle(n[x]);
95
+ g.setXAxisTitle(n[d]);
96
96
  break;
97
97
  case 23:
98
- c.setXAxisTitle(n[x - 1]);
98
+ g.setXAxisTitle(n[d - 1]);
99
99
  break;
100
100
  case 24:
101
- c.setXAxisTitle({ type: "text", text: "" });
101
+ g.setXAxisTitle({ type: "text", text: "" });
102
102
  break;
103
103
  case 25:
104
- c.setXAxisBand(n[x]);
104
+ g.setXAxisBand(n[d]);
105
105
  break;
106
106
  case 26:
107
- c.setXAxisRangeData(Number(n[x - 2]), Number(n[x]));
107
+ g.setXAxisRangeData(Number(n[d - 2]), Number(n[d]));
108
108
  break;
109
109
  case 27:
110
- this.$ = n[x - 1];
110
+ this.$ = n[d - 1];
111
111
  break;
112
112
  case 28:
113
- this.$ = [n[x - 2], ...n[x]];
113
+ this.$ = [n[d - 2], ...n[d]];
114
114
  break;
115
115
  case 29:
116
- this.$ = [n[x]];
116
+ this.$ = [n[d]];
117
117
  break;
118
118
  case 30:
119
- c.setYAxisTitle(n[x]);
119
+ g.setYAxisTitle(n[d]);
120
120
  break;
121
121
  case 31:
122
- c.setYAxisTitle(n[x - 1]);
122
+ g.setYAxisTitle(n[d - 1]);
123
123
  break;
124
124
  case 32:
125
- c.setYAxisTitle({ type: "text", text: "" });
125
+ g.setYAxisTitle({ type: "text", text: "" });
126
126
  break;
127
127
  case 33:
128
- c.setYAxisRangeData(Number(n[x - 2]), Number(n[x]));
128
+ g.setYAxisRangeData(Number(n[d - 2]), Number(n[d]));
129
129
  break;
130
130
  case 37:
131
- this.$ = { text: n[x], type: "text" };
131
+ this.$ = { text: n[d], type: "text" };
132
132
  break;
133
133
  case 38:
134
- this.$ = { text: n[x], type: "text" };
134
+ this.$ = { text: n[d], type: "text" };
135
135
  break;
136
136
  case 39:
137
- this.$ = { text: n[x], type: "markdown" };
137
+ this.$ = { text: n[d], type: "markdown" };
138
138
  break;
139
139
  case 40:
140
- this.$ = n[x];
140
+ this.$ = n[d];
141
141
  break;
142
142
  case 41:
143
- this.$ = n[x - 1] + "" + n[x];
143
+ this.$ = n[d - 1] + "" + n[d];
144
144
  break;
145
145
  }
146
146
  }, "anonymous"),
147
- table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: o, 35: u, 36: g }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: o, 35: u, 36: g }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: o, 35: u, 36: g }), { 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: o, 35: u, 36: g }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: o, 35: u, 36: g }), { 11: 23, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 11: 39, 13: 38, 24: N, 27: Dt, 29: 40, 30: 41, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 11: 45, 15: 44, 27: Lt, 33: 46, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 11: 49, 17: 48, 24: U, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 11: 52, 17: 51, 24: U, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, { 20: [1, 53] }, { 22: [1, 54] }, t(A, [2, 18]), { 1: [2, 2] }, t(A, [2, 8]), t(A, [2, 9]), t(q, [2, 37], { 40: 55, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }), t(q, [2, 38]), t(q, [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(A, [2, 10]), t(A, [2, 22], { 30: 41, 29: 56, 24: N, 27: Dt }), t(A, [2, 24]), t(A, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, t(A, [2, 11]), t(A, [2, 30], { 33: 60, 27: Lt }), t(A, [2, 32]), { 31: [1, 61] }, t(A, [2, 12]), { 17: 62, 24: U }, { 25: 63, 27: vt }, t(A, [2, 14]), { 17: 65, 24: U }, t(A, [2, 16]), t(A, [2, 17]), t(I, [2, 41]), t(A, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(A, [2, 31]), { 27: [1, 69] }, t(A, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(A, [2, 15]), t(A, [2, 26]), t(A, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: S, 39: T, 40: 27, 41: k, 42: b, 43: f, 44: R, 45: w, 46: D, 47: d, 48: C, 49: r, 50: P }, t(A, [2, 33]), t(A, [2, 19]), { 25: 73, 27: vt }, { 26: [2, 28] }, { 26: [2, 20] }],
147
+ table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: h, 35: x, 36: u }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: h, 35: x, 36: u }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: h, 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(f, [2, 34]), t(f, [2, 35]), t(f, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: h, 35: x, 36: u }), { 1: [2, 3] }, t(f, [2, 5]), t(i, [2, 7], { 4: 22, 34: h, 35: x, 36: u }), { 11: 23, 37: 24, 38: w, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 11: 39, 13: 38, 24: B, 27: F, 29: 40, 30: 41, 37: 24, 38: w, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: w, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 11: 49, 17: 48, 24: N, 37: 24, 38: w, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 11: 52, 17: 51, 24: N, 37: 24, 38: w, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, { 20: [1, 53] }, { 22: [1, 54] }, t(r, [2, 18]), { 1: [2, 2] }, t(r, [2, 8]), t(r, [2, 9]), t(P, [2, 37], { 40: 55, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }), t(P, [2, 38]), t(P, [2, 39]), t(S, [2, 40]), t(S, [2, 42]), t(S, [2, 43]), t(S, [2, 44]), t(S, [2, 45]), t(S, [2, 46]), t(S, [2, 47]), t(S, [2, 48]), t(S, [2, 49]), t(S, [2, 50]), t(S, [2, 51]), t(r, [2, 10]), t(r, [2, 22], { 30: 41, 29: 56, 24: B, 27: F }), t(r, [2, 24]), t(r, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: w, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, t(r, [2, 11]), t(r, [2, 30], { 33: 60, 27: U }), t(r, [2, 32]), { 31: [1, 61] }, t(r, [2, 12]), { 17: 62, 24: N }, { 25: 63, 27: k }, t(r, [2, 14]), { 17: 65, 24: N }, t(r, [2, 16]), t(r, [2, 17]), t(S, [2, 41]), t(r, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(r, [2, 31]), { 27: [1, 69] }, t(r, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(r, [2, 15]), t(r, [2, 26]), t(r, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: w, 39: R, 40: 27, 41: D, 42: A, 43: m, 44: v, 45: T, 46: L, 47: E, 48: p, 49: C, 50: l }, t(r, [2, 33]), t(r, [2, 19]), { 25: 73, 27: k }, { 26: [2, 28] }, { 26: [2, 20] }],
148
148
  defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
149
- parseError: /* @__PURE__ */ a(function(M, h) {
150
- if (h.recoverable)
151
- this.trace(M);
149
+ parseError: /* @__PURE__ */ a(function(z, o) {
150
+ if (o.recoverable)
151
+ this.trace(z);
152
152
  else {
153
- var l = new Error(M);
154
- throw l.hash = h, l;
153
+ var c = new Error(z);
154
+ throw c.hash = o, c;
155
155
  }
156
156
  }, "parseError"),
157
- parse: /* @__PURE__ */ a(function(M) {
158
- var h = this, l = [0], c = [], y = [null], n = [], L = this.table, x = "", j = 0, Et = 0, oi = 2, Pt = 1, hi = n.slice.call(arguments, 1), _ = Object.create(this.lexer), W = { yy: {} };
159
- for (var tt in this.yy)
160
- Object.prototype.hasOwnProperty.call(this.yy, tt) && (W.yy[tt] = this.yy[tt]);
161
- _.setInput(M, W.yy), W.yy.lexer = _, W.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
162
- var it = _.yylloc;
163
- n.push(it);
164
- var ri = _.options && _.options.ranges;
165
- typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
166
- function li(E) {
167
- l.length = l.length - 2 * E, y.length = y.length - E, n.length = n.length - E;
157
+ parse: /* @__PURE__ */ a(function(z) {
158
+ var o = this, c = [0], g = [], b = [null], n = [], I = this.table, d = "", q = 0, Et = 0, oi = 2, It = 1, ri = n.slice.call(arguments, 1), _ = Object.create(this.lexer), V = { yy: {} };
159
+ for (var at in this.yy)
160
+ Object.prototype.hasOwnProperty.call(this.yy, at) && (V.yy[at] = this.yy[at]);
161
+ _.setInput(z, V.yy), V.yy.lexer = _, V.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
162
+ var nt = _.yylloc;
163
+ n.push(nt);
164
+ var li = _.options && _.options.ranges;
165
+ typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
166
+ function ci(M) {
167
+ c.length = c.length - 2 * M, b.length = b.length - M, n.length = n.length - M;
168
168
  }
169
- a(li, "popStack");
170
- function It() {
171
- var E;
172
- return E = c.pop() || _.lex() || Pt, typeof E != "number" && (E instanceof Array && (c = E, E = c.pop()), E = h.symbols_[E] || E), E;
169
+ a(ci, "popStack");
170
+ function $t() {
171
+ var M;
172
+ return M = g.pop() || _.lex() || It, typeof M != "number" && (M instanceof Array && (g = M, M = g.pop()), M = o.symbols_[M] || M), M;
173
173
  }
174
- a(It, "lex");
175
- for (var v, z, $, et, F = {}, G, B, $t, Q; ; ) {
176
- if (z = l[l.length - 1], this.defaultActions[z] ? $ = this.defaultActions[z] : ((v === null || typeof v > "u") && (v = It()), $ = L[z] && L[z][v]), typeof $ > "u" || !$.length || !$[0]) {
177
- var st = "";
178
- Q = [];
179
- for (G in L[z])
180
- this.terminals_[G] && G > oi && Q.push("'" + this.terminals_[G] + "'");
181
- _.showPosition ? st = "Parse error on line " + (j + 1) + `:
174
+ a($t, "lex");
175
+ for (var $, Y, W, ht, H = {}, tt, X, Mt, it; ; ) {
176
+ if (Y = c[c.length - 1], this.defaultActions[Y] ? W = this.defaultActions[Y] : (($ === null || typeof $ > "u") && ($ = $t()), W = I[Y] && I[Y][$]), typeof W > "u" || !W.length || !W[0]) {
177
+ var ot = "";
178
+ it = [];
179
+ for (tt in I[Y])
180
+ this.terminals_[tt] && tt > oi && it.push("'" + this.terminals_[tt] + "'");
181
+ _.showPosition ? ot = "Parse error on line " + (q + 1) + `:
182
182
  ` + _.showPosition() + `
183
- Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st = "Parse error on line " + (j + 1) + ": Unexpected " + (v == Pt ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(st, {
183
+ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : ot = "Parse error on line " + (q + 1) + ": Unexpected " + ($ == It ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(ot, {
184
184
  text: _.match,
185
- token: this.terminals_[v] || v,
185
+ token: this.terminals_[$] || $,
186
186
  line: _.yylineno,
187
- loc: it,
188
- expected: Q
187
+ loc: nt,
188
+ expected: it
189
189
  });
190
190
  }
191
- if ($[0] instanceof Array && $.length > 1)
192
- throw new Error("Parse Error: multiple actions possible at state: " + z + ", token: " + v);
193
- switch ($[0]) {
191
+ if (W[0] instanceof Array && W.length > 1)
192
+ throw new Error("Parse Error: multiple actions possible at state: " + Y + ", token: " + $);
193
+ switch (W[0]) {
194
194
  case 1:
195
- l.push(v), y.push(_.yytext), n.push(_.yylloc), l.push($[1]), v = null, Et = _.yyleng, x = _.yytext, j = _.yylineno, it = _.yylloc;
195
+ c.push($), b.push(_.yytext), n.push(_.yylloc), c.push(W[1]), $ = null, Et = _.yyleng, d = _.yytext, q = _.yylineno, nt = _.yylloc;
196
196
  break;
197
197
  case 2:
198
- if (B = this.productions_[$[1]][1], F.$ = y[y.length - B], F._$ = {
199
- first_line: n[n.length - (B || 1)].first_line,
198
+ if (X = this.productions_[W[1]][1], H.$ = b[b.length - X], H._$ = {
199
+ first_line: n[n.length - (X || 1)].first_line,
200
200
  last_line: n[n.length - 1].last_line,
201
- first_column: n[n.length - (B || 1)].first_column,
201
+ first_column: n[n.length - (X || 1)].first_column,
202
202
  last_column: n[n.length - 1].last_column
203
- }, ri && (F._$.range = [
204
- n[n.length - (B || 1)].range[0],
203
+ }, li && (H._$.range = [
204
+ n[n.length - (X || 1)].range[0],
205
205
  n[n.length - 1].range[1]
206
- ]), et = this.performAction.apply(F, [
207
- x,
206
+ ]), ht = this.performAction.apply(H, [
207
+ d,
208
208
  Et,
209
- j,
210
- W.yy,
211
- $[1],
212
- y,
209
+ q,
210
+ V.yy,
211
+ W[1],
212
+ b,
213
213
  n
214
- ].concat(hi)), typeof et < "u")
215
- return et;
216
- B && (l = l.slice(0, -1 * B * 2), y = y.slice(0, -1 * B), n = n.slice(0, -1 * B)), l.push(this.productions_[$[1]][0]), y.push(F.$), n.push(F._$), $t = L[l[l.length - 2]][l[l.length - 1]], l.push($t);
214
+ ].concat(ri)), typeof ht < "u")
215
+ return ht;
216
+ X && (c = c.slice(0, -1 * X * 2), b = b.slice(0, -1 * X), n = n.slice(0, -1 * X)), c.push(this.productions_[W[1]][0]), b.push(H.$), n.push(H._$), Mt = I[c[c.length - 2]][c[c.length - 1]], c.push(Mt);
217
217
  break;
218
218
  case 3:
219
219
  return !0;
@@ -221,18 +221,18 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
221
221
  }
222
222
  return !0;
223
223
  }, "parse")
224
- }, ai = /* @__PURE__ */ function() {
225
- var M = {
224
+ }, J = /* @__PURE__ */ function() {
225
+ var z = {
226
226
  EOF: 1,
227
- parseError: /* @__PURE__ */ a(function(h, l) {
227
+ parseError: /* @__PURE__ */ a(function(o, c) {
228
228
  if (this.yy.parser)
229
- this.yy.parser.parseError(h, l);
229
+ this.yy.parser.parseError(o, c);
230
230
  else
231
- throw new Error(h);
231
+ throw new Error(o);
232
232
  }, "parseError"),
233
233
  // resets the lexer, sets new input
234
- setInput: /* @__PURE__ */ a(function(h, l) {
235
- return this.yy = l || 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 = {
234
+ setInput: /* @__PURE__ */ a(function(o, c) {
235
+ return this.yy = c || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
236
236
  first_line: 1,
237
237
  first_column: 0,
238
238
  last_line: 1,
@@ -241,24 +241,24 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
241
241
  }, "setInput"),
242
242
  // consumes and returns one char from the input
243
243
  input: /* @__PURE__ */ a(function() {
244
- var h = this._input[0];
245
- this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
246
- var l = h.match(/(?:\r\n?|\n).*/g);
247
- 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), h;
244
+ var o = this._input[0];
245
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
246
+ var c = o.match(/(?:\r\n?|\n).*/g);
247
+ 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), o;
248
248
  }, "input"),
249
249
  // unshifts one char (or a string) into the input
250
- unput: /* @__PURE__ */ a(function(h) {
251
- var l = h.length, c = h.split(/(?:\r\n?|\n)/g);
252
- this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
253
- var y = this.match.split(/(?:\r\n?|\n)/g);
254
- 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);
250
+ unput: /* @__PURE__ */ a(function(o) {
251
+ var c = o.length, g = o.split(/(?:\r\n?|\n)/g);
252
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
253
+ var b = this.match.split(/(?:\r\n?|\n)/g);
254
+ 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);
255
255
  var n = this.yylloc.range;
256
256
  return this.yylloc = {
257
257
  first_line: this.yylloc.first_line,
258
258
  last_line: this.yylineno + 1,
259
259
  first_column: this.yylloc.first_column,
260
- last_column: c ? (c.length === y.length ? this.yylloc.first_column : 0) + y[y.length - c.length].length - c[0].length : this.yylloc.first_column - l
261
- }, this.options.ranges && (this.yylloc.range = [n[0], n[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
260
+ last_column: g ? (g.length === b.length ? this.yylloc.first_column : 0) + b[b.length - g.length].length - g[0].length : this.yylloc.first_column - c
261
+ }, this.options.ranges && (this.yylloc.range = [n[0], n[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
262
262
  }, "unput"),
263
263
  // When called from action, caches matched text and appends it on next action
264
264
  more: /* @__PURE__ */ a(function() {
@@ -278,28 +278,28 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
278
278
  return this;
279
279
  }, "reject"),
280
280
  // retain first n characters of the match
281
- less: /* @__PURE__ */ a(function(h) {
282
- this.unput(this.match.slice(h));
281
+ less: /* @__PURE__ */ a(function(o) {
282
+ this.unput(this.match.slice(o));
283
283
  }, "less"),
284
284
  // displays already matched input, i.e. for error messages
285
285
  pastInput: /* @__PURE__ */ a(function() {
286
- var h = this.matched.substr(0, this.matched.length - this.match.length);
287
- return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
286
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
287
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
288
288
  }, "pastInput"),
289
289
  // displays upcoming input, i.e. for error messages
290
290
  upcomingInput: /* @__PURE__ */ a(function() {
291
- var h = this.match;
292
- return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
291
+ var o = this.match;
292
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
293
293
  }, "upcomingInput"),
294
294
  // displays the character position where the lexing error occurred, i.e. for error messages
295
295
  showPosition: /* @__PURE__ */ a(function() {
296
- var h = this.pastInput(), l = new Array(h.length + 1).join("-");
297
- return h + this.upcomingInput() + `
298
- ` + l + "^";
296
+ var o = this.pastInput(), c = new Array(o.length + 1).join("-");
297
+ return o + this.upcomingInput() + `
298
+ ` + c + "^";
299
299
  }, "showPosition"),
300
300
  // test the lexed token: return FALSE when not a match, otherwise return token
301
- test_match: /* @__PURE__ */ a(function(h, l) {
302
- var c, y, n;
301
+ test_match: /* @__PURE__ */ a(function(o, c) {
302
+ var g, b, n;
303
303
  if (this.options.backtrack_lexer && (n = {
304
304
  yylineno: this.yylineno,
305
305
  yylloc: {
@@ -319,16 +319,16 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
319
319
  yy: this.yy,
320
320
  conditionStack: this.conditionStack.slice(0),
321
321
  done: this.done
322
- }, this.options.ranges && (n.yylloc.range = this.yylloc.range.slice(0))), y = h[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
322
+ }, this.options.ranges && (n.yylloc.range = this.yylloc.range.slice(0))), b = o[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
323
323
  first_line: this.yylloc.last_line,
324
324
  last_line: this.yylineno + 1,
325
325
  first_column: this.yylloc.last_column,
326
- last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
327
- }, 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], c = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
328
- return c;
326
+ last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
327
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], g = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
328
+ return g;
329
329
  if (this._backtrack) {
330
- for (var L in n)
331
- this[L] = n[L];
330
+ for (var I in n)
331
+ this[I] = n[I];
332
332
  return !1;
333
333
  }
334
334
  return !1;
@@ -338,22 +338,22 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
338
338
  if (this.done)
339
339
  return this.EOF;
340
340
  this._input || (this.done = !0);
341
- var h, l, c, y;
341
+ var o, c, g, b;
342
342
  this._more || (this.yytext = "", this.match = "");
343
- for (var n = this._currentRules(), L = 0; L < n.length; L++)
344
- if (c = this._input.match(this.rules[n[L]]), c && (!l || c[0].length > l[0].length)) {
345
- if (l = c, y = L, this.options.backtrack_lexer) {
346
- if (h = this.test_match(c, n[L]), h !== !1)
347
- return h;
343
+ for (var n = this._currentRules(), I = 0; I < n.length; I++)
344
+ if (g = this._input.match(this.rules[n[I]]), g && (!c || g[0].length > c[0].length)) {
345
+ if (c = g, b = I, this.options.backtrack_lexer) {
346
+ if (o = this.test_match(g, n[I]), o !== !1)
347
+ return o;
348
348
  if (this._backtrack) {
349
- l = !1;
349
+ c = !1;
350
350
  continue;
351
351
  } else
352
352
  return !1;
353
353
  } else if (!this.options.flex)
354
354
  break;
355
355
  }
356
- return l ? (h = this.test_match(l, n[y]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
356
+ return c ? (o = this.test_match(c, n[b]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
357
357
  ` + this.showPosition(), {
358
358
  text: "",
359
359
  token: null,
@@ -362,37 +362,37 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
362
362
  }, "next"),
363
363
  // return next match that has a token
364
364
  lex: /* @__PURE__ */ a(function() {
365
- var h = this.next();
366
- return h || this.lex();
365
+ var o = this.next();
366
+ return o || this.lex();
367
367
  }, "lex"),
368
368
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
369
- begin: /* @__PURE__ */ a(function(h) {
370
- this.conditionStack.push(h);
369
+ begin: /* @__PURE__ */ a(function(o) {
370
+ this.conditionStack.push(o);
371
371
  }, "begin"),
372
372
  // pop the previously active lexer condition state off the condition stack
373
373
  popState: /* @__PURE__ */ a(function() {
374
- var h = this.conditionStack.length - 1;
375
- return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
374
+ var o = this.conditionStack.length - 1;
375
+ return o > 0 ? this.conditionStack.pop() : this.conditionStack[0];
376
376
  }, "popState"),
377
377
  // produce the lexer rule set which is active for the currently active lexer condition state
378
378
  _currentRules: /* @__PURE__ */ a(function() {
379
379
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
380
380
  }, "_currentRules"),
381
381
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
382
- topState: /* @__PURE__ */ a(function(h) {
383
- return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
382
+ topState: /* @__PURE__ */ a(function(o) {
383
+ return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
384
384
  }, "topState"),
385
385
  // alias for begin(condition)
386
- pushState: /* @__PURE__ */ a(function(h) {
387
- this.begin(h);
386
+ pushState: /* @__PURE__ */ a(function(o) {
387
+ this.begin(o);
388
388
  }, "pushState"),
389
389
  // return the number of states currently on the stack
390
390
  stateStackSize: /* @__PURE__ */ a(function() {
391
391
  return this.conditionStack.length;
392
392
  }, "stateStackSize"),
393
393
  options: { "case-insensitive": !0 },
394
- performAction: /* @__PURE__ */ a(function(h, l, c, y) {
395
- switch (c) {
394
+ performAction: /* @__PURE__ */ a(function(o, c, g, b) {
395
+ switch (g) {
396
396
  case 0:
397
397
  break;
398
398
  case 1:
@@ -426,118 +426,120 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : st =
426
426
  case 14:
427
427
  return 5;
428
428
  case 15:
429
- return 8;
429
+ return 5;
430
430
  case 16:
431
- return this.pushState("axis_data"), "X_AXIS";
431
+ return 8;
432
432
  case 17:
433
- return this.pushState("axis_data"), "Y_AXIS";
433
+ return this.pushState("axis_data"), "X_AXIS";
434
434
  case 18:
435
- return this.pushState("axis_band_data"), 24;
435
+ return this.pushState("axis_data"), "Y_AXIS";
436
436
  case 19:
437
- return 31;
437
+ return this.pushState("axis_band_data"), 24;
438
438
  case 20:
439
- return this.pushState("data"), 16;
439
+ return 31;
440
440
  case 21:
441
- return this.pushState("data"), 18;
441
+ return this.pushState("data"), 16;
442
442
  case 22:
443
- return this.pushState("data_inner"), 24;
443
+ return this.pushState("data"), 18;
444
444
  case 23:
445
- return 27;
445
+ return this.pushState("data_inner"), 24;
446
446
  case 24:
447
- return this.popState(), 26;
447
+ return 27;
448
448
  case 25:
449
+ return this.popState(), 26;
450
+ case 26:
449
451
  this.popState();
450
452
  break;
451
- case 26:
453
+ case 27:
452
454
  this.pushState("string");
453
455
  break;
454
- case 27:
456
+ case 28:
455
457
  this.popState();
456
458
  break;
457
- case 28:
458
- return "STR";
459
459
  case 29:
460
- return 24;
460
+ return "STR";
461
461
  case 30:
462
- return 26;
462
+ return 24;
463
463
  case 31:
464
- return 43;
464
+ return 26;
465
465
  case 32:
466
- return "COLON";
466
+ return 43;
467
467
  case 33:
468
- return 44;
468
+ return "COLON";
469
469
  case 34:
470
- return 28;
470
+ return 44;
471
471
  case 35:
472
- return 45;
472
+ return 28;
473
473
  case 36:
474
- return 46;
474
+ return 45;
475
475
  case 37:
476
- return 48;
476
+ return 46;
477
477
  case 38:
478
- return 50;
478
+ return 48;
479
479
  case 39:
480
- return 47;
480
+ return 50;
481
481
  case 40:
482
- return 41;
482
+ return 47;
483
483
  case 41:
484
- return 49;
484
+ return 41;
485
485
  case 42:
486
- return 42;
486
+ return 49;
487
487
  case 43:
488
- break;
488
+ return 42;
489
489
  case 44:
490
- return 35;
490
+ break;
491
491
  case 45:
492
+ return 35;
493
+ case 46:
492
494
  return 36;
493
495
  }
494
496
  }, "anonymous"),
495
- 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],
496
- 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 } }
497
+ 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, /^(?:xychart\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],
498
+ conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], 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: [28, 29], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 } }
497
499
  };
498
- return M;
500
+ return z;
499
501
  }();
500
- J.lexer = ai;
501
- function H() {
502
+ j.lexer = J;
503
+ function O() {
502
504
  this.yy = {};
503
505
  }
504
- return a(H, "Parser"), H.prototype = J, J.Parser = H, new H();
506
+ return a(O, "Parser"), O.prototype = j, j.Parser = O, new O();
505
507
  }();
506
- dt.parser = dt;
507
- var _i = dt;
508
- function ft(t) {
508
+ bt.parser = bt;
509
+ var Ti = bt;
510
+ function At(t) {
509
511
  return t.type === "bar";
510
512
  }
511
- a(ft, "isBarPlot");
512
- function At(t) {
513
+ a(At, "isBarPlot");
514
+ function kt(t) {
513
515
  return t.type === "band";
514
516
  }
515
- a(At, "isBandAxisData");
516
- function O(t) {
517
+ a(kt, "isBandAxisData");
518
+ function G(t) {
517
519
  return t.type === "linear";
518
520
  }
519
- a(O, "isLinearAxisData");
520
- var nt, Xt = (nt = class {
521
+ a(G, "isLinearAxisData");
522
+ var rt, Vt = (rt = class {
521
523
  constructor(t) {
522
524
  this.parentGroup = t;
523
525
  }
524
526
  getMaxDimension(t, i) {
525
527
  if (!this.parentGroup)
526
528
  return {
527
- width: t.reduce((o, u) => Math.max(u.length, o), 0) * i,
529
+ width: t.reduce((h, x) => Math.max(x.length, h), 0) * i,
528
530
  height: i
529
531
  };
530
532
  const e = {
531
533
  width: 0,
532
534
  height: 0
533
535
  }, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
534
- for (const o of t) {
535
- const u = Si(s, 1, o), g = u ? u.width : o.length * i, p = u ? u.height : i;
536
- e.width = Math.max(e.width, g), e.height = Math.max(e.height, p);
536
+ for (const h of t) {
537
+ const x = wi(s, 1, h), u = x ? x.width : h.length * i, f = x ? x.height : i;
538
+ e.width = Math.max(e.width, u), e.height = Math.max(e.height, f);
537
539
  }
538
540
  return s.remove(), e;
539
541
  }
540
- }, a(nt, "TextDimensionCalculatorWithFont"), nt), Wt = 0.7, zt = 0.2, at, Yt = (at = class {
542
+ }, a(rt, "TextDimensionCalculatorWithFont"), rt), Bt = 0.7, Ft = 0.2, lt, Yt = (lt = class {
541
543
  constructor(t, i, e, s) {
542
544
  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 = !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";
543
545
  }
@@ -564,15 +566,15 @@ var nt, Xt = (nt = class {
564
566
  );
565
567
  }
566
568
  recalculateOuterPaddingToDrawBar() {
567
- Wt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Wt * this.getTickDistance() / 2)), this.recalculateScale();
569
+ Bt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Bt * this.getTickDistance() / 2)), this.recalculateScale();
568
570
  }
569
571
  calculateSpaceIfDrawnHorizontally(t) {
570
572
  let i = t.height;
571
573
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
572
- const e = this.getLabelDimension(), s = zt * t.width;
574
+ const e = this.getLabelDimension(), s = Ft * t.width;
573
575
  this.outerPadding = Math.min(e.width / 2, s);
574
- const o = e.height + this.axisConfig.labelPadding * 2;
575
- this.labelTextHeight = e.height, o <= i && (i -= o, this.showLabel = !0);
576
+ const h = e.height + this.axisConfig.labelPadding * 2;
577
+ this.labelTextHeight = e.height, h <= i && (i -= h, this.showLabel = !0);
576
578
  }
577
579
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
578
580
  const e = this.textDimensionCalculator.getMaxDimension(
@@ -586,10 +588,10 @@ var nt, Xt = (nt = class {
586
588
  calculateSpaceIfDrawnVertical(t) {
587
589
  let i = t.width;
588
590
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
589
- const e = this.getLabelDimension(), s = zt * t.height;
591
+ const e = this.getLabelDimension(), s = Ft * t.height;
590
592
  this.outerPadding = Math.min(e.height / 2, s);
591
- const o = e.width + this.axisConfig.labelPadding * 2;
592
- o <= i && (i -= o, this.showLabel = !0);
593
+ const h = e.width + this.axisConfig.labelPadding * 2;
594
+ h <= i && (i -= h, this.showLabel = !0);
593
595
  }
594
596
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
595
597
  const e = this.textDimensionCalculator.getMaxDimension(
@@ -790,15 +792,15 @@ var nt, Xt = (nt = class {
790
792
  throw Error("Drawing of right axis is not implemented");
791
793
  return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
792
794
  }
793
- }, a(at, "BaseAxis"), at), ot, Ti = (ot = class extends Yt {
794
- constructor(t, i, e, s, o) {
795
- super(t, s, o, i), this.categories = e, this.scale = pt().domain(this.categories).range(this.getRange());
795
+ }, a(lt, "BaseAxis"), lt), ct, Ri = (ct = class extends Yt {
796
+ constructor(t, i, e, s, h) {
797
+ super(t, s, h, i), this.categories = e, this.scale = yt().domain(this.categories).range(this.getRange());
796
798
  }
797
799
  setRange(t) {
798
800
  super.setRange(t);
799
801
  }
800
802
  recalculateScale() {
801
- this.scale = pt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Ot.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
803
+ this.scale = yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Nt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
802
804
  }
803
805
  getTickValues() {
804
806
  return this.categories;
@@ -806,39 +808,39 @@ var nt, Xt = (nt = class {
806
808
  getScaleValue(t) {
807
809
  return this.scale(t) ?? this.getRange()[0];
808
810
  }
809
- }, a(ot, "BandAxis"), ot), ht, Ri = (ht = class extends Yt {
810
- constructor(t, i, e, s, o) {
811
- super(t, s, o, i), this.domain = e, this.scale = Bt().domain(this.domain).range(this.getRange());
811
+ }, a(ct, "BandAxis"), ct), gt, Di = (gt = class extends Yt {
812
+ constructor(t, i, e, s, h) {
813
+ super(t, s, h, i), this.domain = e, this.scale = Wt().domain(this.domain).range(this.getRange());
812
814
  }
813
815
  getTickValues() {
814
816
  return this.scale.ticks();
815
817
  }
816
818
  recalculateScale() {
817
819
  const t = [...this.domain];
818
- this.axisPosition === "left" && t.reverse(), this.scale = Bt().domain(t).range(this.getRange());
820
+ this.axisPosition === "left" && t.reverse(), this.scale = Wt().domain(t).range(this.getRange());
819
821
  }
820
822
  getScaleValue(t) {
821
823
  return this.scale(t);
822
824
  }
823
- }, a(ht, "LinearAxis"), ht);
824
- function mt(t, i, e, s) {
825
- const o = new Xt(s);
826
- return At(t) ? new Ti(
825
+ }, a(gt, "LinearAxis"), gt);
826
+ function St(t, i, e, s) {
827
+ const h = new Vt(s);
828
+ return kt(t) ? new Ri(
827
829
  i,
828
830
  e,
829
831
  t.categories,
830
832
  t.title,
831
- o
832
- ) : new Ri(
833
+ h
834
+ ) : new Di(
833
835
  i,
834
836
  e,
835
837
  [t.min, t.max],
836
838
  t.title,
837
- o
839
+ h
838
840
  );
839
841
  }
840
- a(mt, "getAxis");
841
- var rt, Di = (rt = class {
842
+ a(St, "getAxis");
843
+ var ut, Li = (ut = class {
842
844
  constructor(t, i, e, s) {
843
845
  this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
844
846
  x: 0,
@@ -879,15 +881,15 @@ var rt, Di = (rt = class {
879
881
  ]
880
882
  }), t;
881
883
  }
882
- }, a(rt, "ChartTitle"), rt);
883
- function Vt(t, i, e, s) {
884
- const o = new Xt(s);
885
- return new Di(o, t, i, e);
884
+ }, a(ut, "ChartTitle"), ut);
885
+ function Ut(t, i, e, s) {
886
+ const h = new Vt(s);
887
+ return new Li(h, t, i, e);
886
888
  }
887
- a(Vt, "getChartTitleComponent");
888
- var lt, Li = (lt = class {
889
- constructor(t, i, e, s, o) {
890
- this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = o;
889
+ a(Ut, "getChartTitleComponent");
890
+ var xt, Pi = (xt = class {
891
+ constructor(t, i, e, s, h) {
892
+ this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = h;
891
893
  }
892
894
  getDrawableElement() {
893
895
  const t = this.plotData.data.map((e) => [
@@ -895,7 +897,7 @@ var lt, Li = (lt = class {
895
897
  this.yAxis.getScaleValue(e[1])
896
898
  ]);
897
899
  let i;
898
- return this.orientation === "horizontal" ? i = Mt().y((e) => e[0]).x((e) => e[1])(t) : i = Mt().x((e) => e[0]).y((e) => e[1])(t), i ? [
900
+ return this.orientation === "horizontal" ? i = zt().y((e) => e[0]).x((e) => e[1])(t) : i = zt().x((e) => e[0]).y((e) => e[1])(t), i ? [
899
901
  {
900
902
  groupTexts: ["plot", `line-plot-${this.plotIndex}`],
901
903
  type: "path",
@@ -909,9 +911,9 @@ var lt, Li = (lt = class {
909
911
  }
910
912
  ] : [];
911
913
  }
912
- }, a(lt, "LinePlot"), lt), ct, vi = (ct = class {
913
- constructor(t, i, e, s, o, u) {
914
- this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = o, this.plotIndex = u;
914
+ }, a(xt, "LinePlot"), xt), dt, vi = (dt = class {
915
+ constructor(t, i, e, s, h, x) {
916
+ this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = h, this.plotIndex = x;
915
917
  }
916
918
  getDrawableElement() {
917
919
  const t = this.barData.data.map((s) => [
@@ -948,7 +950,7 @@ var lt, Li = (lt = class {
948
950
  }
949
951
  ];
950
952
  }
951
- }, a(ct, "BarPlot"), ct), ut, Ei = (ut = class {
953
+ }, a(dt, "BarPlot"), dt), pt, Ei = (pt = class {
952
954
  constructor(t, i, e) {
953
955
  this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
954
956
  x: 0,
@@ -977,7 +979,7 @@ var lt, Li = (lt = class {
977
979
  switch (e.type) {
978
980
  case "line":
979
981
  {
980
- const s = new Li(
982
+ const s = new Pi(
981
983
  e,
982
984
  this.xAxis,
983
985
  this.yAxis,
@@ -1003,17 +1005,17 @@ var lt, Li = (lt = class {
1003
1005
  }
1004
1006
  return t;
1005
1007
  }
1006
- }, a(ut, "BasePlot"), ut);
1007
- function Ut(t, i, e) {
1008
+ }, a(pt, "BasePlot"), pt);
1009
+ function Ht(t, i, e) {
1008
1010
  return new Ei(t, i, e);
1009
1011
  }
1010
- a(Ut, "getPlotComponent");
1011
- var gt, Pi = (gt = class {
1012
+ a(Ht, "getPlotComponent");
1013
+ var ft, Ii = (ft = class {
1012
1014
  constructor(t, i, e, s) {
1013
1015
  this.chartConfig = t, this.chartData = i, this.componentStore = {
1014
- title: Vt(t, i, e, s),
1015
- plot: Ut(t, i, e),
1016
- xAxis: mt(
1016
+ title: Ut(t, i, e, s),
1017
+ plot: Ht(t, i, e),
1018
+ xAxis: St(
1017
1019
  i.xAxis,
1018
1020
  t.xAxis,
1019
1021
  {
@@ -1024,7 +1026,7 @@ var gt, Pi = (gt = class {
1024
1026
  },
1025
1027
  s
1026
1028
  ),
1027
- yAxis: mt(
1029
+ yAxis: St(
1028
1030
  i.yAxis,
1029
1031
  t.yAxis,
1030
1032
  {
@@ -1038,46 +1040,46 @@ var gt, Pi = (gt = class {
1038
1040
  };
1039
1041
  }
1040
1042
  calculateVerticalSpace() {
1041
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
1043
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, h = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), x = Math.floor(
1042
1044
  i * this.chartConfig.plotReservedSpacePercent / 100
1043
- ), g = this.componentStore.plot.calculateSpace({
1044
- width: o,
1045
- height: u
1045
+ ), u = this.componentStore.plot.calculateSpace({
1046
+ width: h,
1047
+ height: x
1046
1048
  });
1047
- t -= g.width, i -= g.height, g = this.componentStore.title.calculateSpace({
1049
+ t -= u.width, i -= u.height, u = this.componentStore.title.calculateSpace({
1048
1050
  width: this.chartConfig.width,
1049
1051
  height: i
1050
- }), s = g.height, i -= g.height, this.componentStore.xAxis.setAxisPosition("bottom"), g = this.componentStore.xAxis.calculateSpace({
1052
+ }), s = u.height, i -= u.height, this.componentStore.xAxis.setAxisPosition("bottom"), u = this.componentStore.xAxis.calculateSpace({
1051
1053
  width: t,
1052
1054
  height: i
1053
- }), i -= g.height, this.componentStore.yAxis.setAxisPosition("left"), g = this.componentStore.yAxis.calculateSpace({
1055
+ }), i -= u.height, this.componentStore.yAxis.setAxisPosition("left"), u = this.componentStore.yAxis.calculateSpace({
1054
1056
  width: t,
1055
1057
  height: i
1056
- }), e = g.width, t -= g.width, t > 0 && (o += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
1057
- width: o,
1058
- height: u
1059
- }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + u }), this.componentStore.yAxis.setRange([s, s + u]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => ft(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1058
+ }), e = u.width, t -= u.width, t > 0 && (h += t, t = 0), i > 0 && (x += i, i = 0), this.componentStore.plot.calculateSpace({
1059
+ width: h,
1060
+ height: x
1061
+ }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + h]), 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((f) => At(f)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1060
1062
  }
1061
1063
  calculateHorizontalSpace() {
1062
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, o = 0, u = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
1064
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, h = 0, x = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
1063
1065
  i * this.chartConfig.plotReservedSpacePercent / 100
1064
- ), p = this.componentStore.plot.calculateSpace({
1065
- width: u,
1066
- height: g
1066
+ ), f = this.componentStore.plot.calculateSpace({
1067
+ width: x,
1068
+ height: u
1067
1069
  });
1068
- t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
1070
+ t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
1069
1071
  width: this.chartConfig.width,
1070
1072
  height: i
1071
- }), e = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
1073
+ }), e = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("left"), f = this.componentStore.xAxis.calculateSpace({
1072
1074
  width: t,
1073
1075
  height: i
1074
- }), t -= p.width, s = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
1076
+ }), t -= f.width, s = f.width, this.componentStore.yAxis.setAxisPosition("top"), f = this.componentStore.yAxis.calculateSpace({
1075
1077
  width: t,
1076
1078
  height: i
1077
- }), i -= p.height, o = e + p.height, t > 0 && (u += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
1078
- width: u,
1079
- height: g
1080
- }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: o }), this.componentStore.yAxis.setRange([s, s + u]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([o, o + g]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: o }), this.chartData.plots.some((S) => ft(S)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1079
+ }), i -= f.height, h = e + f.height, t > 0 && (x += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
1080
+ width: x,
1081
+ height: u
1082
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: h }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([h, h + u]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: h }), this.chartData.plots.some((w) => At(w)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1081
1083
  }
1082
1084
  calculateSpace() {
1083
1085
  this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
@@ -1090,25 +1092,25 @@ var gt, Pi = (gt = class {
1090
1092
  t.push(...i.getDrawableElements());
1091
1093
  return t;
1092
1094
  }
1093
- }, a(gt, "Orchestrator"), gt), xt, Ii = (xt = class {
1095
+ }, a(ft, "Orchestrator"), ft), mt, $i = (mt = class {
1094
1096
  static build(t, i, e, s) {
1095
- return new Pi(t, i, e, s).getDrawableElement();
1097
+ return new Ii(t, i, e, s).getDrawableElement();
1096
1098
  }
1097
- }, a(xt, "XYChartBuilder"), xt), X = 0, Ht, Y = Ct(), V = wt(), m = kt(), yt = V.plotColorPalette.split(",").map((t) => t.trim()), Z = !1, St = !1;
1098
- function wt() {
1099
- const t = bi(), i = bt();
1100
- return Nt(t.xyChart, i.themeVariables.xyChart);
1099
+ }, a(mt, "XYChartBuilder"), mt), Q = 0, Gt, K = Rt(), Z = Tt(), y = Dt(), wt = Z.plotColorPalette.split(",").map((t) => t.trim()), et = !1, _t = !1;
1100
+ function Tt() {
1101
+ const t = Ai(), i = Ct();
1102
+ return Ot(t.xyChart, i.themeVariables.xyChart);
1101
1103
  }
1102
- a(wt, "getChartDefaultThemeConfig");
1103
- function Ct() {
1104
- const t = bt();
1105
- return Nt(
1106
- yi.xyChart,
1104
+ a(Tt, "getChartDefaultThemeConfig");
1105
+ function Rt() {
1106
+ const t = Ct();
1107
+ return Ot(
1108
+ bi.xyChart,
1107
1109
  t.xyChart
1108
1110
  );
1109
1111
  }
1110
- a(Ct, "getChartDefaultConfig");
1111
- function kt() {
1112
+ a(Rt, "getChartDefaultConfig");
1113
+ function Dt() {
1112
1114
  return {
1113
1115
  yAxis: {
1114
1116
  type: "linear",
@@ -1125,180 +1127,214 @@ function kt() {
1125
1127
  plots: []
1126
1128
  };
1127
1129
  }
1128
- a(kt, "getChartDefaultData");
1129
- function K(t) {
1130
- const i = bt();
1131
- return Ai(t.trim(), i);
1130
+ a(Dt, "getChartDefaultData");
1131
+ function st(t) {
1132
+ const i = Ct();
1133
+ return Si(t.trim(), i);
1132
1134
  }
1133
- a(K, "textSanitizer");
1135
+ a(st, "textSanitizer");
1134
1136
  function jt(t) {
1135
- Ht = t;
1137
+ Gt = t;
1136
1138
  }
1137
1139
  a(jt, "setTmpSVGG");
1138
- function Gt(t) {
1139
- t === "horizontal" ? Y.chartOrientation = "horizontal" : Y.chartOrientation = "vertical";
1140
- }
1141
- a(Gt, "setOrientation");
1142
1140
  function Qt(t) {
1143
- m.xAxis.title = K(t.text);
1141
+ t === "horizontal" ? K.chartOrientation = "horizontal" : K.chartOrientation = "vertical";
1142
+ }
1143
+ a(Qt, "setOrientation");
1144
+ function Kt(t) {
1145
+ y.xAxis.title = st(t.text);
1144
1146
  }
1145
- a(Qt, "setXAxisTitle");
1146
- function _t(t, i) {
1147
- m.xAxis = { type: "linear", title: m.xAxis.title, min: t, max: i }, Z = !0;
1147
+ a(Kt, "setXAxisTitle");
1148
+ function Lt(t, i) {
1149
+ y.xAxis = { type: "linear", title: y.xAxis.title, min: t, max: i }, et = !0;
1148
1150
  }
1149
- a(_t, "setXAxisRangeData");
1151
+ a(Lt, "setXAxisRangeData");
1150
1152
  function Zt(t) {
1151
- m.xAxis = {
1153
+ y.xAxis = {
1152
1154
  type: "band",
1153
- title: m.xAxis.title,
1154
- categories: t.map((i) => K(i.text))
1155
- }, Z = !0;
1155
+ title: y.xAxis.title,
1156
+ categories: t.map((i) => st(i.text))
1157
+ }, et = !0;
1156
1158
  }
1157
1159
  a(Zt, "setXAxisBand");
1158
- function Kt(t) {
1159
- m.yAxis.title = K(t.text);
1160
+ function Jt(t) {
1161
+ y.yAxis.title = st(t.text);
1160
1162
  }
1161
- a(Kt, "setYAxisTitle");
1163
+ a(Jt, "setYAxisTitle");
1162
1164
  function qt(t, i) {
1163
- m.yAxis = { type: "linear", title: m.yAxis.title, min: t, max: i }, St = !0;
1165
+ y.yAxis = { type: "linear", title: y.yAxis.title, min: t, max: i }, _t = !0;
1164
1166
  }
1165
1167
  a(qt, "setYAxisRangeData");
1166
- function Jt(t) {
1167
- const i = Math.min(...t), e = Math.max(...t), s = O(m.yAxis) ? m.yAxis.min : 1 / 0, o = O(m.yAxis) ? m.yAxis.max : -1 / 0;
1168
- m.yAxis = {
1168
+ function ti(t) {
1169
+ const i = Math.min(...t), e = Math.max(...t), s = G(y.yAxis) ? y.yAxis.min : 1 / 0, h = G(y.yAxis) ? y.yAxis.max : -1 / 0;
1170
+ y.yAxis = {
1169
1171
  type: "linear",
1170
- title: m.yAxis.title,
1172
+ title: y.yAxis.title,
1171
1173
  min: Math.min(s, i),
1172
- max: Math.max(o, e)
1174
+ max: Math.max(h, e)
1173
1175
  };
1174
1176
  }
1175
- a(Jt, "setYAxisRangeFromPlotData");
1176
- function Tt(t) {
1177
+ a(ti, "setYAxisRangeFromPlotData");
1178
+ function Pt(t) {
1177
1179
  let i = [];
1178
1180
  if (t.length === 0)
1179
1181
  return i;
1180
- if (!Z) {
1181
- const e = O(m.xAxis) ? m.xAxis.min : 1 / 0, s = O(m.xAxis) ? m.xAxis.max : -1 / 0;
1182
- _t(Math.min(e, 1), Math.max(s, t.length));
1182
+ if (!et) {
1183
+ const e = G(y.xAxis) ? y.xAxis.min : 1 / 0, s = G(y.xAxis) ? y.xAxis.max : -1 / 0;
1184
+ Lt(Math.min(e, 1), Math.max(s, t.length));
1183
1185
  }
1184
- if (St || Jt(t), At(m.xAxis) && (i = m.xAxis.categories.map((e, s) => [e, t[s]])), O(m.xAxis)) {
1185
- const e = m.xAxis.min, s = m.xAxis.max, o = (s - e) / (t.length - 1), u = [];
1186
- for (let g = e; g <= s; g += o)
1187
- u.push(`${g}`);
1188
- i = u.map((g, p) => [g, t[p]]);
1186
+ if (_t || ti(t), kt(y.xAxis) && (i = y.xAxis.categories.map((e, s) => [e, t[s]])), G(y.xAxis)) {
1187
+ const e = y.xAxis.min, s = y.xAxis.max, h = (s - e) / (t.length - 1), x = [];
1188
+ for (let u = e; u <= s; u += h)
1189
+ x.push(`${u}`);
1190
+ i = x.map((u, f) => [u, t[f]]);
1189
1191
  }
1190
1192
  return i;
1191
1193
  }
1192
- a(Tt, "transformDataWithoutCategory");
1193
- function Rt(t) {
1194
- return yt[t === 0 ? 0 : t % yt.length];
1194
+ a(Pt, "transformDataWithoutCategory");
1195
+ function vt(t) {
1196
+ return wt[t === 0 ? 0 : t % wt.length];
1195
1197
  }
1196
- a(Rt, "getPlotColorFromPalette");
1197
- function ti(t, i) {
1198
- const e = Tt(i);
1199
- m.plots.push({
1198
+ a(vt, "getPlotColorFromPalette");
1199
+ function ii(t, i) {
1200
+ const e = Pt(i);
1201
+ y.plots.push({
1200
1202
  type: "line",
1201
- strokeFill: Rt(X),
1203
+ strokeFill: vt(Q),
1202
1204
  strokeWidth: 2,
1203
1205
  data: e
1204
- }), X++;
1206
+ }), Q++;
1205
1207
  }
1206
- a(ti, "setLineData");
1207
- function ii(t, i) {
1208
- const e = Tt(i);
1209
- m.plots.push({
1208
+ a(ii, "setLineData");
1209
+ function ei(t, i) {
1210
+ const e = Pt(i);
1211
+ y.plots.push({
1210
1212
  type: "bar",
1211
- fill: Rt(X),
1213
+ fill: vt(Q),
1212
1214
  data: e
1213
- }), X++;
1215
+ }), Q++;
1214
1216
  }
1215
- a(ii, "setBarData");
1216
- function ei() {
1217
- if (m.plots.length === 0)
1217
+ a(ei, "setBarData");
1218
+ function si() {
1219
+ if (y.plots.length === 0)
1218
1220
  throw Error("No Plot to render, please provide a plot with some data");
1219
- return m.title = Ft(), Ii.build(Y, m, V, Ht);
1221
+ return y.title = Xt(), $i.build(K, y, Z, Gt);
1220
1222
  }
1221
- a(ei, "getDrawableElem");
1222
- function si() {
1223
- return V;
1223
+ a(si, "getDrawableElem");
1224
+ function ai() {
1225
+ return Z;
1224
1226
  }
1225
- a(si, "getChartThemeConfig");
1227
+ a(ai, "getChartThemeConfig");
1226
1228
  function ni() {
1227
- return Y;
1229
+ return K;
1228
1230
  }
1229
1231
  a(ni, "getChartConfig");
1230
- var $i = /* @__PURE__ */ a(function() {
1231
- mi(), X = 0, Y = Ct(), m = kt(), V = wt(), yt = V.plotColorPalette.split(",").map((t) => t.trim()), Z = !1, St = !1;
1232
- }, "clear"), Mi = {
1233
- getDrawableElem: ei,
1234
- clear: $i,
1232
+ function hi() {
1233
+ return y;
1234
+ }
1235
+ a(hi, "getXYChartData");
1236
+ var Mi = /* @__PURE__ */ a(function() {
1237
+ yi(), Q = 0, K = Rt(), y = Dt(), Z = Tt(), wt = Z.plotColorPalette.split(",").map((t) => t.trim()), et = !1, _t = !1;
1238
+ }, "clear"), zi = {
1239
+ getDrawableElem: si,
1240
+ clear: Mi,
1235
1241
  setAccTitle: pi,
1236
- getAccTitle: xi,
1237
- setDiagramTitle: gi,
1238
- getDiagramTitle: Ft,
1242
+ getAccTitle: di,
1243
+ setDiagramTitle: xi,
1244
+ getDiagramTitle: Xt,
1239
1245
  getAccDescription: ui,
1240
- setAccDescription: ci,
1241
- setOrientation: Gt,
1242
- setXAxisTitle: Qt,
1243
- setXAxisRangeData: _t,
1246
+ setAccDescription: gi,
1247
+ setOrientation: Qt,
1248
+ setXAxisTitle: Kt,
1249
+ setXAxisRangeData: Lt,
1244
1250
  setXAxisBand: Zt,
1245
- setYAxisTitle: Kt,
1251
+ setYAxisTitle: Jt,
1246
1252
  setYAxisRangeData: qt,
1247
- setLineData: ti,
1248
- setBarData: ii,
1253
+ setLineData: ii,
1254
+ setBarData: ei,
1249
1255
  setTmpSVGG: jt,
1250
- getChartThemeConfig: si,
1251
- getChartConfig: ni
1252
- }, Bi = /* @__PURE__ */ a((t, i, e, s) => {
1253
- const o = s.db, u = o.getChartThemeConfig(), g = o.getChartConfig();
1254
- function p(d) {
1255
- return d === "top" ? "text-before-edge" : "middle";
1256
+ getChartThemeConfig: ai,
1257
+ getChartConfig: ni,
1258
+ getXYChartData: hi
1259
+ }, Wi = /* @__PURE__ */ a((t, i, e, s) => {
1260
+ const h = s.db, x = h.getChartThemeConfig(), u = h.getChartConfig(), f = h.getXYChartData().plots[0].data.map((p) => p[1]);
1261
+ function w(p) {
1262
+ return p === "top" ? "text-before-edge" : "middle";
1256
1263
  }
1257
- a(p, "getDominantBaseLine");
1258
- function S(d) {
1259
- return d === "left" ? "start" : d === "right" ? "end" : "middle";
1264
+ a(w, "getDominantBaseLine");
1265
+ function R(p) {
1266
+ return p === "left" ? "start" : p === "right" ? "end" : "middle";
1260
1267
  }
1261
- a(S, "getTextAnchor");
1262
- function T(d) {
1263
- return `translate(${d.x}, ${d.y}) rotate(${d.rotation || 0})`;
1268
+ a(R, "getTextAnchor");
1269
+ function D(p) {
1270
+ return `translate(${p.x}, ${p.y}) rotate(${p.rotation || 0})`;
1264
1271
  }
1265
- a(T, "getTextTransformation"), Ot.debug(`Rendering xychart chart
1272
+ a(D, "getTextTransformation"), Nt.debug(`Rendering xychart chart
1266
1273
  ` + t);
1267
- const k = di(i), b = k.append("g").attr("class", "main"), f = b.append("rect").attr("width", g.width).attr("height", g.height).attr("class", "background");
1268
- fi(k, g.height, g.width, !0), k.attr("viewBox", `0 0 ${g.width} ${g.height}`), f.attr("fill", u.backgroundColor), o.setTmpSVGG(k.append("g").attr("class", "mermaid-tmp-group"));
1269
- const R = o.getDrawableElem(), w = {};
1270
- function D(d) {
1271
- let C = b, r = "";
1272
- for (const [P] of d.entries()) {
1273
- let N = b;
1274
- P > 0 && w[r] && (N = w[r]), r += d[P], C = w[r], C || (C = w[r] = N.append("g").attr("class", d[P]));
1274
+ const A = fi(i), m = A.append("g").attr("class", "main"), v = m.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
1275
+ mi(A, u.height, u.width, !0), A.attr("viewBox", `0 0 ${u.width} ${u.height}`), v.attr("fill", x.backgroundColor), h.setTmpSVGG(A.append("g").attr("class", "mermaid-tmp-group"));
1276
+ const T = h.getDrawableElem(), L = {};
1277
+ function E(p) {
1278
+ let C = m, l = "";
1279
+ for (const [B] of p.entries()) {
1280
+ let F = m;
1281
+ B > 0 && L[l] && (F = L[l]), l += p[B], C = L[l], C || (C = L[l] = F.append("g").attr("class", p[B]));
1275
1282
  }
1276
1283
  return C;
1277
1284
  }
1278
- a(D, "getGroup");
1279
- for (const d of R) {
1280
- if (d.data.length === 0)
1285
+ a(E, "getGroup");
1286
+ for (const p of T) {
1287
+ if (p.data.length === 0)
1281
1288
  continue;
1282
- const C = D(d.groupTexts);
1283
- switch (d.type) {
1289
+ const C = E(p.groupTexts);
1290
+ switch (p.type) {
1284
1291
  case "rect":
1285
- C.selectAll("rect").data(d.data).enter().append("rect").attr("x", (r) => r.x).attr("y", (r) => r.y).attr("width", (r) => r.width).attr("height", (r) => r.height).attr("fill", (r) => r.fill).attr("stroke", (r) => r.strokeFill).attr("stroke-width", (r) => r.strokeWidth);
1292
+ if (C.selectAll("rect").data(p.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), u.showDataLabel)
1293
+ if (u.chartOrientation === "horizontal") {
1294
+ let l = function(r, P) {
1295
+ const { data: S, label: k } = r;
1296
+ return P * k.length * B <= S.width - 10;
1297
+ };
1298
+ a(l, "fitsHorizontally");
1299
+ const B = 0.7, F = p.data.map((r, P) => ({ data: r, label: f[P].toString() })).filter((r) => r.data.width > 0 && r.data.height > 0), U = F.map((r) => {
1300
+ const { data: P } = r;
1301
+ let S = P.height * 0.7;
1302
+ for (; !l(r, S) && S > 0; )
1303
+ S -= 1;
1304
+ return S;
1305
+ }), N = Math.floor(Math.min(...U));
1306
+ C.selectAll("text").data(F).enter().append("text").attr("x", (r) => r.data.x + r.data.width - 10).attr("y", (r) => r.data.y + r.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${N}px`).text((r) => r.label);
1307
+ } else {
1308
+ let l = function(r, P, S) {
1309
+ const { data: k, label: j } = r, J = P * j.length * 0.7, O = k.x + k.width / 2, z = O - J / 2, o = O + J / 2, c = z >= k.x && o <= k.x + k.width, g = k.y + S + P <= k.y + k.height;
1310
+ return c && g;
1311
+ };
1312
+ a(l, "fitsInBar");
1313
+ const B = 10, F = p.data.map((r, P) => ({ data: r, label: f[P].toString() })).filter((r) => r.data.width > 0 && r.data.height > 0), U = F.map((r) => {
1314
+ const { data: P, label: S } = r;
1315
+ let k = P.width / (S.length * 0.7);
1316
+ for (; !l(r, k, B) && k > 0; )
1317
+ k -= 1;
1318
+ return k;
1319
+ }), N = Math.floor(Math.min(...U));
1320
+ C.selectAll("text").data(F).enter().append("text").attr("x", (r) => r.data.x + r.data.width / 2).attr("y", (r) => r.data.y + B).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${N}px`).text((r) => r.label);
1321
+ }
1286
1322
  break;
1287
1323
  case "text":
1288
- C.selectAll("text").data(d.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (r) => r.fill).attr("font-size", (r) => r.fontSize).attr("dominant-baseline", (r) => p(r.verticalPos)).attr("text-anchor", (r) => S(r.horizontalPos)).attr("transform", (r) => T(r)).text((r) => r.text);
1324
+ C.selectAll("text").data(p.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) => w(l.verticalPos)).attr("text-anchor", (l) => R(l.horizontalPos)).attr("transform", (l) => D(l)).text((l) => l.text);
1289
1325
  break;
1290
1326
  case "path":
1291
- C.selectAll("path").data(d.data).enter().append("path").attr("d", (r) => r.path).attr("fill", (r) => r.fill ? r.fill : "none").attr("stroke", (r) => r.strokeFill).attr("stroke-width", (r) => r.strokeWidth);
1327
+ C.selectAll("path").data(p.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);
1292
1328
  break;
1293
1329
  }
1294
1330
  }
1295
- }, "draw"), Wi = {
1296
- draw: Bi
1297
- }, Xi = {
1298
- parser: _i,
1299
- db: Mi,
1300
- renderer: Wi
1331
+ }, "draw"), Bi = {
1332
+ draw: Wi
1333
+ }, Vi = {
1334
+ parser: Ti,
1335
+ db: zi,
1336
+ renderer: Bi
1301
1337
  };
1302
1338
  export {
1303
- Xi as diagram
1339
+ Vi as diagram
1304
1340
  };