@omg-dev/app 0.5.0 → 0.6.1

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 (113) hide show
  1. package/dist-lib/{ChangelogPage-8lbvM9Pz.js → ChangelogPage-Cjj_DiYL.js} +57 -1
  2. package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
  3. package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
  4. package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
  5. package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
  6. package/dist-lib/{SessionFilesPanel-BKcTU57t.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
  7. package/dist-lib/{TermView-gazV6UMU.js → TermView-B4V-DyD-.js} +521 -530
  8. package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
  9. package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
  10. package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
  11. package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
  12. package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
  13. package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
  14. package/dist-lib/{chat-engine-83mwx0z2.js → chat-engine-CUiDTHFP.js} +1173 -1218
  15. package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
  16. package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
  17. package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
  18. package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
  19. package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
  20. package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
  21. package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
  22. package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
  23. package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
  24. package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
  25. package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
  26. package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
  27. package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
  28. package/dist-lib/{coding-agents-page-8Nf-IuE2.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
  29. package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
  30. package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
  31. package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
  32. package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
  33. package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
  34. package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
  35. package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
  36. package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
  37. package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
  38. package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
  39. package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
  40. package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
  41. package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
  42. package/dist-lib/{embedded-BmrQsEvQ.js → embedded-PUsgcSTE.js} +13043 -13082
  43. package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
  44. package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
  45. package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
  46. package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
  47. package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
  48. package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
  49. package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
  50. package/dist-lib/index-B0neMIbR.js +16520 -0
  51. package/dist-lib/index-BBC0E3Qg.js +4994 -0
  52. package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
  53. package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
  54. package/dist-lib/index.js +1 -1
  55. package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
  56. package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
  57. package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
  58. package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
  59. package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
  60. package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
  61. package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
  62. package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
  63. package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
  64. package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
  65. package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
  66. package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
  67. package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
  68. package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
  69. package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
  70. package/dist-lib/{resume-session-sheet-Dr_81Gfm.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
  71. package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
  72. package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
  73. package/dist-lib/{session-token-usage-CGhHZ3lT.js → session-token-usage-DY4vFlfs.js} +82 -83
  74. package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
  75. package/dist-lib/{shipped-page-p3oulUiM.js → shipped-page-B-ruG8li.js} +233 -236
  76. package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
  77. package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
  78. package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
  79. package/dist-lib/{streamdown-response-Dbn0PKUH.js → streamdown-response-BQy3geXs.js} +290 -297
  80. package/dist-lib/styles.css +1 -1
  81. package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
  82. package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
  83. package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
  84. package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
  85. package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
  86. package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
  87. package/package.json +4 -3
  88. package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
  89. package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
  90. package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
  91. package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
  92. package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
  93. package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
  94. package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
  95. package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
  96. package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
  97. package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
  98. package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
  99. package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
  100. package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
  101. package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
  102. package/dist-lib/index-DcwavxA1.js +0 -5062
  103. package/dist-lib/index-JkCQXUYs.js +0 -16566
  104. package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
  105. package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
  106. package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
  107. package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
  108. package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
  109. package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
  110. package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
  111. package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
  112. package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
  113. package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
@@ -1,221 +1,221 @@
1
- import { s as xi, g as di, p as Yt, o as fi, a as pi, b as mi, _ as n, l as Nt, F as yi, e as bi, q as Ai, z as kt, i as wi, B as Ht, D as Ci, W as Si, az as Ri, a7 as Ot } from "./index-JkCQXUYs.js";
2
- import { i as _i } from "./init-DjUOC4st.js";
3
- import { o as ki } from "./ordinal-DfAQgscy.js";
4
- import { l as Wt } from "./linear-B5ZSwawJ.js";
5
- function Ti(e, t, i) {
6
- e = +e, t = +t, i = (a = arguments.length) < 2 ? (t = e, e = 0, 1) : a < 3 ? 1 : +i;
7
- for (var s = -1, a = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(a); ++s < a; )
8
- o[s] = e + s * i;
9
- return o;
1
+ import { s as si, g as ai, p as Et, o as ni, a as oi, b as ri, _ as n, l as It, F as hi, e as li, q as ci, z as pt, i as ui, B as Mt, D as gi, W as xi, az as di, a7 as Dt } from "./index-B0neMIbR.js";
2
+ import { i as fi } from "./init-DjUOC4st.js";
3
+ import { o as pi } from "./ordinal-DfAQgscy.js";
4
+ import { l as vt } from "./linear-zGzX0-I0.js";
5
+ function mi(t, i, e) {
6
+ t = +t, i = +i, e = (a = arguments.length) < 2 ? (i = t, t = 0, 1) : a < 3 ? 1 : +e;
7
+ for (var s = -1, a = Math.max(0, Math.ceil((i - t) / e)) | 0, c = new Array(a); ++s < a; )
8
+ c[s] = t + s * e;
9
+ return c;
10
10
  }
11
- function wt() {
12
- var e = ki().unknown(void 0), t = e.domain, i = e.range, s = 0, a = 1, o, l, f = !1, d = 0, k = 0, T = 0.5;
13
- delete e.unknown;
11
+ function ut() {
12
+ var t = pi().unknown(void 0), i = t.domain, e = t.range, s = 0, a = 1, c, l, f = !1, S = 0, k = 0, L = 0.5;
13
+ delete t.unknown;
14
14
  function _() {
15
- var b = t().length, E = a < s, L = E ? a : s, P = E ? s : a;
16
- o = (P - L) / Math.max(1, b - d + k * 2), f && (o = Math.floor(o)), L += (P - L - o * (b - d)) * T, l = o * (1 - d), f && (L = Math.round(L), l = Math.round(l));
17
- var I = Ti(b).map(function(m) {
18
- return L + o * m;
15
+ var y = i().length, E = a < s, v = E ? a : s, P = E ? s : a;
16
+ c = (P - v) / Math.max(1, y - S + k * 2), f && (c = Math.floor(c)), v += (P - v - c * (y - S)) * L, l = c * (1 - S), f && (v = Math.round(v), l = Math.round(l));
17
+ var I = mi(y).map(function(p) {
18
+ return v + c * p;
19
19
  });
20
- return i(E ? I.reverse() : I);
21
- }
22
- return e.domain = function(b) {
23
- return arguments.length ? (t(b), _()) : t();
24
- }, e.range = function(b) {
25
- return arguments.length ? ([s, a] = b, s = +s, a = +a, _()) : [s, a];
26
- }, e.rangeRound = function(b) {
27
- return [s, a] = b, s = +s, a = +a, f = !0, _();
28
- }, e.bandwidth = function() {
20
+ return e(E ? I.reverse() : I);
21
+ }
22
+ return t.domain = function(y) {
23
+ return arguments.length ? (i(y), _()) : i();
24
+ }, t.range = function(y) {
25
+ return arguments.length ? ([s, a] = y, s = +s, a = +a, _()) : [s, a];
26
+ }, t.rangeRound = function(y) {
27
+ return [s, a] = y, s = +s, a = +a, f = !0, _();
28
+ }, t.bandwidth = function() {
29
29
  return l;
30
- }, e.step = function() {
31
- return o;
32
- }, e.round = function(b) {
33
- return arguments.length ? (f = !!b, _()) : f;
34
- }, e.padding = function(b) {
35
- return arguments.length ? (d = Math.min(1, k = +b), _()) : d;
36
- }, e.paddingInner = function(b) {
37
- return arguments.length ? (d = Math.min(1, b), _()) : d;
38
- }, e.paddingOuter = function(b) {
39
- return arguments.length ? (k = +b, _()) : k;
40
- }, e.align = function(b) {
41
- return arguments.length ? (T = Math.max(0, Math.min(1, b)), _()) : T;
42
- }, e.copy = function() {
43
- return wt(t(), [s, a]).round(f).paddingInner(d).paddingOuter(k).align(T);
44
- }, _i.apply(_(), arguments);
30
+ }, t.step = function() {
31
+ return c;
32
+ }, t.round = function(y) {
33
+ return arguments.length ? (f = !!y, _()) : f;
34
+ }, t.padding = function(y) {
35
+ return arguments.length ? (S = Math.min(1, k = +y), _()) : S;
36
+ }, t.paddingInner = function(y) {
37
+ return arguments.length ? (S = Math.min(1, y), _()) : S;
38
+ }, t.paddingOuter = function(y) {
39
+ return arguments.length ? (k = +y, _()) : k;
40
+ }, t.align = function(y) {
41
+ return arguments.length ? (L = Math.max(0, Math.min(1, y)), _()) : L;
42
+ }, t.copy = function() {
43
+ return ut(i(), [s, a]).round(f).paddingInner(S).paddingOuter(k).align(L);
44
+ }, fi.apply(_(), arguments);
45
45
  }
46
- var Ct = (function() {
47
- var e = /* @__PURE__ */ n(function(F, h, u, g) {
48
- for (u = u || {}, g = F.length; g--; u[F[g]] = h) ;
46
+ var gt = (function() {
47
+ var t = /* @__PURE__ */ n(function(F, r, u, g) {
48
+ for (u = u || {}, g = F.length; g--; u[F[g]] = r) ;
49
49
  return u;
50
- }, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], a = [1, 5], o = [1, 6], l = [1, 7], f = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 36, 37, 38], d = [1, 25], k = [1, 26], T = [1, 28], _ = [1, 29], b = [1, 30], E = [1, 31], L = [1, 32], P = [1, 33], I = [1, 34], m = [1, 35], D = [1, 36], c = [1, 37], B = [1, 43], W = [1, 42], X = [1, 47], Y = [1, 50], S = [1, 10, 12, 14, 16, 18, 19, 21, 23, 36, 37, 38], H = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 36, 37, 38], A = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 36, 37, 38, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], w = [1, 65], V = [26, 28], R = {
50
+ }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], a = [1, 5], c = [1, 6], l = [1, 7], f = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 36, 37, 38], S = [1, 25], k = [1, 26], L = [1, 28], _ = [1, 29], y = [1, 30], E = [1, 31], v = [1, 32], P = [1, 33], I = [1, 34], p = [1, 35], T = [1, 36], h = [1, 37], B = [1, 43], W = [1, 42], X = [1, 47], Y = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 36, 37, 38], H = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 36, 37, 38], b = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 36, 37, 38, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], A = [1, 65], V = [26, 28], R = {
51
51
  trace: /* @__PURE__ */ n(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, dataPoints: 25, SQUARE_BRACES_END: 26, dataPoint: 27, COMMA: 28, NUMBER_WITH_DECIMAL: 29, STR: 30, xAxisData: 31, bandData: 32, ARROW_DELIMITER: 33, commaSeparatedTexts: 34, yAxisData: 35, NEWLINE: 36, SEMI: 37, EOF: 38, alphaNum: 39, MD_STR: 40, alphaNumToken: 41, AMP: 42, NUM: 43, ALPHA: 44, PLUS: 45, EQUALS: 46, MULT: 47, DOT: 48, BRKT: 49, MINUS: 50, UNDERSCORE: 51, $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", 28: "COMMA", 29: "NUMBER_WITH_DECIMAL", 30: "STR", 33: "ARROW_DELIMITER", 36: "NEWLINE", 37: "SEMI", 38: "EOF", 40: "MD_STR", 42: "AMP", 43: "NUM", 44: "ALPHA", 45: "PLUS", 46: "EQUALS", 47: "MULT", 48: "DOT", 49: "BRKT", 50: "MINUS", 51: "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], [27, 2], [27, 1], [13, 1], [13, 2], [13, 1], [31, 1], [31, 3], [32, 3], [34, 3], [34, 1], [15, 1], [15, 2], [15, 1], [35, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [39, 1], [39, 2], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1]],
57
- performAction: /* @__PURE__ */ n(function(h, u, g, x, C, r, rt) {
58
- var p = r.length - 1;
59
- switch (C) {
57
+ performAction: /* @__PURE__ */ n(function(r, u, g, x, w, o, K) {
58
+ var d = o.length - 1;
59
+ switch (w) {
60
60
  case 5:
61
- x.setOrientation(r[p]);
61
+ x.setOrientation(o[d]);
62
62
  break;
63
63
  case 9:
64
- x.setDiagramTitle(r[p].text.trim());
64
+ x.setDiagramTitle(o[d].text.trim());
65
65
  break;
66
66
  case 12:
67
- x.setLineData({ text: "", type: "text" }, r[p]);
67
+ x.setLineData({ text: "", type: "text" }, o[d]);
68
68
  break;
69
69
  case 13:
70
- x.setLineData(r[p - 1], r[p]);
70
+ x.setLineData(o[d - 1], o[d]);
71
71
  break;
72
72
  case 14:
73
- x.setBarData({ text: "", type: "text" }, r[p]);
73
+ x.setBarData({ text: "", type: "text" }, o[d]);
74
74
  break;
75
75
  case 15:
76
- x.setBarData(r[p - 1], r[p]);
76
+ x.setBarData(o[d - 1], o[d]);
77
77
  break;
78
78
  case 16:
79
- this.$ = r[p].trim(), x.setAccTitle(this.$);
79
+ this.$ = o[d].trim(), x.setAccTitle(this.$);
80
80
  break;
81
81
  case 17:
82
82
  case 18:
83
- this.$ = r[p].trim(), x.setAccDescription(this.$);
83
+ this.$ = o[d].trim(), x.setAccDescription(this.$);
84
84
  break;
85
85
  case 19:
86
- this.$ = r[p - 1];
86
+ this.$ = o[d - 1];
87
87
  break;
88
88
  case 20:
89
89
  case 30:
90
- this.$ = [r[p - 2], ...r[p]];
90
+ this.$ = [o[d - 2], ...o[d]];
91
91
  break;
92
92
  case 21:
93
93
  case 31:
94
- this.$ = [r[p]];
94
+ this.$ = [o[d]];
95
95
  break;
96
96
  case 22:
97
- this.$ = { value: Number(r[p - 1]), label: r[p] };
97
+ this.$ = { value: Number(o[d - 1]), label: o[d] };
98
98
  break;
99
99
  case 23:
100
- this.$ = { value: Number(r[p]), label: "" };
100
+ this.$ = { value: Number(o[d]), label: "" };
101
101
  break;
102
102
  case 24:
103
- x.setXAxisTitle(r[p]);
103
+ x.setXAxisTitle(o[d]);
104
104
  break;
105
105
  case 25:
106
- x.setXAxisTitle(r[p - 1]);
106
+ x.setXAxisTitle(o[d - 1]);
107
107
  break;
108
108
  case 26:
109
109
  x.setXAxisTitle({ type: "text", text: "" });
110
110
  break;
111
111
  case 27:
112
- x.setXAxisBand(r[p]);
112
+ x.setXAxisBand(o[d]);
113
113
  break;
114
114
  case 28:
115
- x.setXAxisRangeData(Number(r[p - 2]), Number(r[p]));
115
+ x.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
116
116
  break;
117
117
  case 29:
118
- this.$ = r[p - 1];
118
+ this.$ = o[d - 1];
119
119
  break;
120
120
  case 32:
121
- x.setYAxisTitle(r[p]);
121
+ x.setYAxisTitle(o[d]);
122
122
  break;
123
123
  case 33:
124
- x.setYAxisTitle(r[p - 1]);
124
+ x.setYAxisTitle(o[d - 1]);
125
125
  break;
126
126
  case 34:
127
127
  x.setYAxisTitle({ type: "text", text: "" });
128
128
  break;
129
129
  case 35:
130
- x.setYAxisRangeData(Number(r[p - 2]), Number(r[p]));
130
+ x.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
131
131
  break;
132
132
  case 39:
133
- this.$ = { text: r[p], type: "text" };
133
+ this.$ = { text: o[d], type: "text" };
134
134
  break;
135
135
  case 40:
136
- this.$ = { text: r[p], type: "text" };
136
+ this.$ = { text: o[d], type: "text" };
137
137
  break;
138
138
  case 41:
139
- this.$ = { text: r[p], type: "markdown" };
139
+ this.$ = { text: o[d], type: "markdown" };
140
140
  break;
141
141
  case 42:
142
- this.$ = r[p];
142
+ this.$ = o[d];
143
143
  break;
144
144
  case 43:
145
- this.$ = r[p - 1] + "" + r[p];
145
+ this.$ = o[d - 1] + "" + o[d];
146
146
  break;
147
147
  }
148
148
  }, "anonymous"),
149
- table: [e(t, i, { 3: 1, 4: 2, 7: 4, 5: s, 36: a, 37: o, 38: l }), { 1: [3] }, e(t, i, { 4: 2, 7: 4, 3: 8, 5: s, 36: a, 37: o, 38: l }), e(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 36: a, 37: o, 38: l }), { 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, 36]), e(f, [2, 37]), e(f, [2, 38]), { 1: [2, 1] }, e(t, i, { 4: 2, 7: 4, 3: 21, 5: s, 36: a, 37: o, 38: l }), { 1: [2, 3] }, e(f, [2, 5]), e(t, [2, 7], { 4: 22, 36: a, 37: o, 38: l }), { 11: 23, 30: d, 39: 24, 40: k, 41: 27, 42: T, 43: _, 44: b, 45: E, 46: L, 47: P, 48: I, 49: m, 50: D, 51: c }, { 11: 39, 13: 38, 24: B, 29: W, 30: d, 31: 40, 32: 41, 39: 24, 40: k, 41: 27, 42: T, 43: _, 44: b, 45: E, 46: L, 47: P, 48: I, 49: m, 50: D, 51: c }, { 11: 45, 15: 44, 29: X, 30: d, 35: 46, 39: 24, 40: k, 41: 27, 42: T, 43: _, 44: b, 45: E, 46: L, 47: P, 48: I, 49: m, 50: D, 51: c }, { 11: 49, 17: 48, 24: Y, 30: d, 39: 24, 40: k, 41: 27, 42: T, 43: _, 44: b, 45: E, 46: L, 47: P, 48: I, 49: m, 50: D, 51: c }, { 11: 52, 17: 51, 24: Y, 30: d, 39: 24, 40: k, 41: 27, 42: T, 43: _, 44: b, 45: E, 46: L, 47: P, 48: I, 49: m, 50: D, 51: c }, { 20: [1, 53] }, { 22: [1, 54] }, e(S, [2, 18]), { 1: [2, 2] }, e(S, [2, 8]), e(S, [2, 9]), e(H, [2, 39], { 41: 55, 42: T, 43: _, 44: b, 45: E, 46: L, 47: P, 48: I, 49: m, 50: D, 51: c }), e(H, [2, 40]), e(H, [2, 41]), e(A, [2, 42]), e(A, [2, 44]), e(A, [2, 45]), e(A, [2, 46]), e(A, [2, 47]), e(A, [2, 48]), e(A, [2, 49]), e(A, [2, 50]), e(A, [2, 51]), e(A, [2, 52]), e(A, [2, 53]), e(S, [2, 10]), e(S, [2, 24], { 32: 41, 31: 56, 24: B, 29: W }), e(S, [2, 26]), e(S, [2, 27]), { 33: [1, 57] }, { 11: 59, 30: d, 34: 58, 39: 24, 40: k, 41: 27, 42: T, 43: _, 44: b, 45: E, 46: L, 47: P, 48: I, 49: m, 50: D, 51: c }, e(S, [2, 11]), e(S, [2, 32], { 35: 60, 29: X }), e(S, [2, 34]), { 33: [1, 61] }, e(S, [2, 12]), { 17: 62, 24: Y }, { 25: 63, 27: 64, 29: w }, e(S, [2, 14]), { 17: 66, 24: Y }, e(S, [2, 16]), e(S, [2, 17]), e(A, [2, 43]), e(S, [2, 25]), { 29: [1, 67] }, { 26: [1, 68] }, { 26: [2, 31], 28: [1, 69] }, e(S, [2, 33]), { 29: [1, 70] }, e(S, [2, 13]), { 26: [1, 71] }, { 26: [2, 21], 28: [1, 72] }, e(V, [2, 23], { 30: [1, 73] }), e(S, [2, 15]), e(S, [2, 28]), e(S, [2, 29]), { 11: 59, 30: d, 34: 74, 39: 24, 40: k, 41: 27, 42: T, 43: _, 44: b, 45: E, 46: L, 47: P, 48: I, 49: m, 50: D, 51: c }, e(S, [2, 35]), e(S, [2, 19]), { 25: 75, 27: 64, 29: w }, e(V, [2, 22]), { 26: [2, 30] }, { 26: [2, 20] }],
149
+ table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 36: a, 37: c, 38: l }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 36: a, 37: c, 38: l }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 36: a, 37: c, 38: l }), { 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, 36]), t(f, [2, 37]), t(f, [2, 38]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 36: a, 37: c, 38: l }), { 1: [2, 3] }, t(f, [2, 5]), t(i, [2, 7], { 4: 22, 36: a, 37: c, 38: l }), { 11: 23, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 11: 39, 13: 38, 24: B, 29: W, 30: S, 31: 40, 32: 41, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 11: 45, 15: 44, 29: X, 30: S, 35: 46, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 11: 49, 17: 48, 24: Y, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 11: 52, 17: 51, 24: Y, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 20: [1, 53] }, { 22: [1, 54] }, t(C, [2, 18]), { 1: [2, 2] }, t(C, [2, 8]), t(C, [2, 9]), t(H, [2, 39], { 41: 55, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }), t(H, [2, 40]), t(H, [2, 41]), t(b, [2, 42]), t(b, [2, 44]), t(b, [2, 45]), t(b, [2, 46]), t(b, [2, 47]), t(b, [2, 48]), t(b, [2, 49]), t(b, [2, 50]), t(b, [2, 51]), t(b, [2, 52]), t(b, [2, 53]), t(C, [2, 10]), t(C, [2, 24], { 32: 41, 31: 56, 24: B, 29: W }), t(C, [2, 26]), t(C, [2, 27]), { 33: [1, 57] }, { 11: 59, 30: S, 34: 58, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, t(C, [2, 11]), t(C, [2, 32], { 35: 60, 29: X }), t(C, [2, 34]), { 33: [1, 61] }, t(C, [2, 12]), { 17: 62, 24: Y }, { 25: 63, 27: 64, 29: A }, t(C, [2, 14]), { 17: 66, 24: Y }, t(C, [2, 16]), t(C, [2, 17]), t(b, [2, 43]), t(C, [2, 25]), { 29: [1, 67] }, { 26: [1, 68] }, { 26: [2, 31], 28: [1, 69] }, t(C, [2, 33]), { 29: [1, 70] }, t(C, [2, 13]), { 26: [1, 71] }, { 26: [2, 21], 28: [1, 72] }, t(V, [2, 23], { 30: [1, 73] }), t(C, [2, 15]), t(C, [2, 28]), t(C, [2, 29]), { 11: 59, 30: S, 34: 74, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, t(C, [2, 35]), t(C, [2, 19]), { 25: 75, 27: 64, 29: A }, t(V, [2, 22]), { 26: [2, 30] }, { 26: [2, 20] }],
150
150
  defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 74: [2, 30], 75: [2, 20] },
151
- parseError: /* @__PURE__ */ n(function(h, u) {
151
+ parseError: /* @__PURE__ */ n(function(r, u) {
152
152
  if (u.recoverable)
153
- this.trace(h);
153
+ this.trace(r);
154
154
  else {
155
- var g = new Error(h);
155
+ var g = new Error(r);
156
156
  throw g.hash = u, g;
157
157
  }
158
158
  }, "parseError"),
159
- parse: /* @__PURE__ */ n(function(h) {
160
- var u = this, g = [0], x = [], C = [null], r = [], rt = this.table, p = "", gt = 0, Mt = 0, li = 2, zt = 1, ci = r.slice.call(arguments, 1), v = Object.create(this.lexer), U = { yy: {} };
161
- for (var mt in this.yy)
162
- Object.prototype.hasOwnProperty.call(this.yy, mt) && (U.yy[mt] = this.yy[mt]);
163
- v.setInput(h, U.yy), U.yy.lexer = v, U.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
164
- var yt = v.yylloc;
165
- r.push(yt);
166
- var ui = v.options && v.options.ranges;
159
+ parse: /* @__PURE__ */ n(function(r) {
160
+ var u = this, g = [0], x = [], w = [null], o = [], K = this.table, d = "", et = 0, Rt = 0, Jt = 2, _t = 1, ti = o.slice.call(arguments, 1), D = Object.create(this.lexer), U = { yy: {} };
161
+ for (var rt in this.yy)
162
+ Object.prototype.hasOwnProperty.call(this.yy, rt) && (U.yy[rt] = this.yy[rt]);
163
+ D.setInput(r, U.yy), U.yy.lexer = D, U.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
164
+ var ht = D.yylloc;
165
+ o.push(ht);
166
+ var ii = D.options && D.options.ranges;
167
167
  typeof U.yy.parseError == "function" ? this.parseError = U.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
168
- function gi(z) {
169
- g.length = g.length - 2 * z, C.length = C.length - z, r.length = r.length - z;
168
+ function ei(z) {
169
+ g.length = g.length - 2 * z, w.length = w.length - z, o.length = o.length - z;
170
170
  }
171
- n(gi, "popStack");
172
- function Bt() {
171
+ n(ei, "popStack");
172
+ function kt() {
173
173
  var z;
174
- return z = x.pop() || v.lex() || zt, typeof z != "number" && (z instanceof Array && (x = z, z = x.pop()), z = u.symbols_[z] || z), z;
174
+ return z = x.pop() || D.lex() || _t, typeof z != "number" && (z instanceof Array && (x = z, z = x.pop()), z = u.symbols_[z] || z), z;
175
175
  }
176
- n(Bt, "lex");
177
- for (var M, $, O, bt, G = {}, xt, N, Vt, dt; ; ) {
178
- if ($ = g[g.length - 1], this.defaultActions[$] ? O = this.defaultActions[$] : ((M === null || typeof M > "u") && (M = Bt()), O = rt[$] && rt[$][M]), typeof O > "u" || !O.length || !O[0]) {
179
- var At = "";
180
- dt = [];
181
- for (xt in rt[$])
182
- this.terminals_[xt] && xt > li && dt.push("'" + this.terminals_[xt] + "'");
183
- v.showPosition ? At = "Parse error on line " + (gt + 1) + `:
184
- ` + v.showPosition() + `
185
- Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At = "Parse error on line " + (gt + 1) + ": Unexpected " + (M == zt ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(At, {
186
- text: v.match,
176
+ n(kt, "lex");
177
+ for (var M, $, O, lt, G = {}, st, N, Tt, at; ; ) {
178
+ if ($ = g[g.length - 1], this.defaultActions[$] ? O = this.defaultActions[$] : ((M === null || typeof M > "u") && (M = kt()), O = K[$] && K[$][M]), typeof O > "u" || !O.length || !O[0]) {
179
+ var ct = "";
180
+ at = [];
181
+ for (st in K[$])
182
+ this.terminals_[st] && st > Jt && at.push("'" + this.terminals_[st] + "'");
183
+ D.showPosition ? ct = "Parse error on line " + (et + 1) + `:
184
+ ` + D.showPosition() + `
185
+ Expecting ` + at.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ct = "Parse error on line " + (et + 1) + ": Unexpected " + (M == _t ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(ct, {
186
+ text: D.match,
187
187
  token: this.terminals_[M] || M,
188
- line: v.yylineno,
189
- loc: yt,
190
- expected: dt
188
+ line: D.yylineno,
189
+ loc: ht,
190
+ expected: at
191
191
  });
192
192
  }
193
193
  if (O[0] instanceof Array && O.length > 1)
194
194
  throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + M);
195
195
  switch (O[0]) {
196
196
  case 1:
197
- g.push(M), C.push(v.yytext), r.push(v.yylloc), g.push(O[1]), M = null, Mt = v.yyleng, p = v.yytext, gt = v.yylineno, yt = v.yylloc;
197
+ g.push(M), w.push(D.yytext), o.push(D.yylloc), g.push(O[1]), M = null, Rt = D.yyleng, d = D.yytext, et = D.yylineno, ht = D.yylloc;
198
198
  break;
199
199
  case 2:
200
- if (N = this.productions_[O[1]][1], G.$ = C[C.length - N], G._$ = {
201
- first_line: r[r.length - (N || 1)].first_line,
202
- last_line: r[r.length - 1].last_line,
203
- first_column: r[r.length - (N || 1)].first_column,
204
- last_column: r[r.length - 1].last_column
205
- }, ui && (G._$.range = [
206
- r[r.length - (N || 1)].range[0],
207
- r[r.length - 1].range[1]
208
- ]), bt = this.performAction.apply(G, [
209
- p,
210
- Mt,
211
- gt,
200
+ if (N = this.productions_[O[1]][1], G.$ = w[w.length - N], G._$ = {
201
+ first_line: o[o.length - (N || 1)].first_line,
202
+ last_line: o[o.length - 1].last_line,
203
+ first_column: o[o.length - (N || 1)].first_column,
204
+ last_column: o[o.length - 1].last_column
205
+ }, ii && (G._$.range = [
206
+ o[o.length - (N || 1)].range[0],
207
+ o[o.length - 1].range[1]
208
+ ]), lt = this.performAction.apply(G, [
209
+ d,
210
+ Rt,
211
+ et,
212
212
  U.yy,
213
213
  O[1],
214
- C,
215
- r
216
- ].concat(ci)), typeof bt < "u")
217
- return bt;
218
- N && (g = g.slice(0, -1 * N * 2), C = C.slice(0, -1 * N), r = r.slice(0, -1 * N)), g.push(this.productions_[O[1]][0]), C.push(G.$), r.push(G._$), Vt = rt[g[g.length - 2]][g[g.length - 1]], g.push(Vt);
214
+ w,
215
+ o
216
+ ].concat(ti)), typeof lt < "u")
217
+ return lt;
218
+ N && (g = g.slice(0, -1 * N * 2), w = w.slice(0, -1 * N), o = o.slice(0, -1 * N)), g.push(this.productions_[O[1]][0]), w.push(G.$), o.push(G._$), Tt = K[g[g.length - 2]][g[g.length - 1]], g.push(Tt);
219
219
  break;
220
220
  case 3:
221
221
  return !0;
@@ -223,7 +223,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
223
223
  }
224
224
  return !0;
225
225
  }, "parse")
226
- }, ot = /* @__PURE__ */ (function() {
226
+ }, Q = /* @__PURE__ */ (function() {
227
227
  var F = {
228
228
  EOF: 1,
229
229
  parseError: /* @__PURE__ */ n(function(u, g) {
@@ -233,8 +233,8 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
233
233
  throw new Error(u);
234
234
  }, "parseError"),
235
235
  // resets the lexer, sets new input
236
- setInput: /* @__PURE__ */ n(function(h, u) {
237
- return this.yy = u || 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 = {
236
+ setInput: /* @__PURE__ */ n(function(r, u) {
237
+ return this.yy = u || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
238
238
  first_line: 1,
239
239
  first_column: 0,
240
240
  last_line: 1,
@@ -243,24 +243,24 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
243
243
  }, "setInput"),
244
244
  // consumes and returns one char from the input
245
245
  input: /* @__PURE__ */ n(function() {
246
- var h = this._input[0];
247
- this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
248
- var u = h.match(/(?:\r\n?|\n).*/g);
249
- return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
246
+ var r = this._input[0];
247
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
248
+ var u = r.match(/(?:\r\n?|\n).*/g);
249
+ return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
250
250
  }, "input"),
251
251
  // unshifts one char (or a string) into the input
252
- unput: /* @__PURE__ */ n(function(h) {
253
- var u = h.length, g = h.split(/(?:\r\n?|\n)/g);
254
- this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
252
+ unput: /* @__PURE__ */ n(function(r) {
253
+ var u = r.length, g = r.split(/(?:\r\n?|\n)/g);
254
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
255
255
  var x = this.match.split(/(?:\r\n?|\n)/g);
256
256
  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);
257
- var C = this.yylloc.range;
257
+ var w = this.yylloc.range;
258
258
  return this.yylloc = {
259
259
  first_line: this.yylloc.first_line,
260
260
  last_line: this.yylineno + 1,
261
261
  first_column: this.yylloc.first_column,
262
262
  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 - u
263
- }, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
263
+ }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
264
264
  }, "unput"),
265
265
  // When called from action, caches matched text and appends it on next action
266
266
  more: /* @__PURE__ */ n(function() {
@@ -280,29 +280,29 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
280
280
  return this;
281
281
  }, "reject"),
282
282
  // retain first n characters of the match
283
- less: /* @__PURE__ */ n(function(h) {
284
- this.unput(this.match.slice(h));
283
+ less: /* @__PURE__ */ n(function(r) {
284
+ this.unput(this.match.slice(r));
285
285
  }, "less"),
286
286
  // displays already matched input, i.e. for error messages
287
287
  pastInput: /* @__PURE__ */ n(function() {
288
- var h = this.matched.substr(0, this.matched.length - this.match.length);
289
- return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
288
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
289
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
290
290
  }, "pastInput"),
291
291
  // displays upcoming input, i.e. for error messages
292
292
  upcomingInput: /* @__PURE__ */ n(function() {
293
- var h = this.match;
294
- return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
293
+ var r = this.match;
294
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
295
295
  }, "upcomingInput"),
296
296
  // displays the character position where the lexing error occurred, i.e. for error messages
297
297
  showPosition: /* @__PURE__ */ n(function() {
298
- var h = this.pastInput(), u = new Array(h.length + 1).join("-");
299
- return h + this.upcomingInput() + `
298
+ var r = this.pastInput(), u = new Array(r.length + 1).join("-");
299
+ return r + this.upcomingInput() + `
300
300
  ` + u + "^";
301
301
  }, "showPosition"),
302
302
  // test the lexed token: return FALSE when not a match, otherwise return token
303
- test_match: /* @__PURE__ */ n(function(h, u) {
304
- var g, x, C;
305
- if (this.options.backtrack_lexer && (C = {
303
+ test_match: /* @__PURE__ */ n(function(r, u) {
304
+ var g, x, w;
305
+ if (this.options.backtrack_lexer && (w = {
306
306
  yylineno: this.yylineno,
307
307
  yylloc: {
308
308
  first_line: this.yylloc.first_line,
@@ -321,16 +321,16 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
321
321
  yy: this.yy,
322
322
  conditionStack: this.conditionStack.slice(0),
323
323
  done: this.done
324
- }, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), x = h[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
324
+ }, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
325
325
  first_line: this.yylloc.last_line,
326
326
  last_line: this.yylineno + 1,
327
327
  first_column: this.yylloc.last_column,
328
- last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
329
- }, 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, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
328
+ last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
329
+ }, 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 = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], g = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
330
330
  return g;
331
331
  if (this._backtrack) {
332
- for (var r in C)
333
- this[r] = C[r];
332
+ for (var o in w)
333
+ this[o] = w[o];
334
334
  return !1;
335
335
  }
336
336
  return !1;
@@ -340,13 +340,13 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
340
340
  if (this.done)
341
341
  return this.EOF;
342
342
  this._input || (this.done = !0);
343
- var h, u, g, x;
343
+ var r, u, g, x;
344
344
  this._more || (this.yytext = "", this.match = "");
345
- for (var C = this._currentRules(), r = 0; r < C.length; r++)
346
- if (g = this._input.match(this.rules[C[r]]), g && (!u || g[0].length > u[0].length)) {
347
- if (u = g, x = r, this.options.backtrack_lexer) {
348
- if (h = this.test_match(g, C[r]), h !== !1)
349
- return h;
345
+ for (var w = this._currentRules(), o = 0; o < w.length; o++)
346
+ if (g = this._input.match(this.rules[w[o]]), g && (!u || g[0].length > u[0].length)) {
347
+ if (u = g, x = o, this.options.backtrack_lexer) {
348
+ if (r = this.test_match(g, w[o]), r !== !1)
349
+ return r;
350
350
  if (this._backtrack) {
351
351
  u = !1;
352
352
  continue;
@@ -355,7 +355,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
355
355
  } else if (!this.options.flex)
356
356
  break;
357
357
  }
358
- return u ? (h = this.test_match(u, C[x]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
358
+ return u ? (r = this.test_match(u, w[x]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
359
359
  ` + this.showPosition(), {
360
360
  text: "",
361
361
  token: null,
@@ -393,7 +393,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
393
393
  return this.conditionStack.length;
394
394
  }, "stateStackSize"),
395
395
  options: { "case-insensitive": !0 },
396
- performAction: /* @__PURE__ */ n(function(u, g, x, C) {
396
+ performAction: /* @__PURE__ */ n(function(u, g, x, w) {
397
397
  switch (x) {
398
398
  case 0:
399
399
  break;
@@ -501,49 +501,55 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
501
501
  };
502
502
  return F;
503
503
  })();
504
- R.lexer = ot;
504
+ R.lexer = Q;
505
505
  function q() {
506
506
  this.yy = {};
507
507
  }
508
508
  return n(q, "Parser"), q.prototype = R, R.Parser = q, new q();
509
509
  })();
510
- Ct.parser = Ct;
511
- var Di = Ct;
512
- function St(e) {
513
- return e.type === "bar";
510
+ gt.parser = gt;
511
+ var yi = gt;
512
+ function xt(t) {
513
+ return t.type === "bar";
514
514
  }
515
- n(St, "isBarPlot");
516
- function ft(e) {
517
- return e.type === "band";
515
+ n(xt, "isBarPlot");
516
+ function nt(t) {
517
+ return t.type === "band";
518
518
  }
519
- n(ft, "isBandAxisData");
520
- function j(e) {
521
- return e.type === "linear";
519
+ n(nt, "isBandAxisData");
520
+ function j(t) {
521
+ return t.type === "linear";
522
522
  }
523
523
  n(j, "isLinearAxisData");
524
- var Q, Ut = (Q = class {
524
+ var zt = class {
525
525
  constructor(t) {
526
526
  this.parentGroup = t;
527
527
  }
528
+ static {
529
+ n(this, "TextDimensionCalculatorWithFont");
530
+ }
528
531
  getMaxDimension(t, i) {
529
532
  if (!this.parentGroup)
530
533
  return {
531
- width: t.reduce((o, l) => Math.max(l.length, o), 0) * i,
534
+ width: t.reduce((a, c) => Math.max(c.length, a), 0) * i,
532
535
  height: i
533
536
  };
534
- const s = {
537
+ const e = {
535
538
  width: 0,
536
539
  height: 0
537
- }, a = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
538
- for (const o of t) {
539
- const l = Ri(a, 1, o), f = l ? l.width : o.length * i, d = l ? l.height : i;
540
- s.width = Math.max(s.width, f), s.height = Math.max(s.height, d);
540
+ }, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
541
+ for (const a of t) {
542
+ const c = di(s, 1, a), l = c ? c.width : a.length * i, f = c ? c.height : i;
543
+ e.width = Math.max(e.width, l), e.height = Math.max(e.height, f);
541
544
  }
542
- return a.remove(), s;
545
+ return s.remove(), e;
543
546
  }
544
- }, n(Q, "TextDimensionCalculatorWithFont"), Q), Ft = 0.7, Xt = 0.2, K, $t = (K = class {
545
- constructor(t, i, s, a) {
546
- this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = a, 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.normalizedLabelRotationInRad = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.normalizedLabelRotationInRad = this.axisConfig.labelRotation >= -90 && this.axisConfig.labelRotation <= 90 ? this.axisConfig.labelRotation * Math.PI / 180 : 0;
547
+ }, Lt = 0.7, Pt = 0.2, Bt = class {
548
+ constructor(t, i, e, s) {
549
+ 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.normalizedLabelRotationInRad = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.normalizedLabelRotationInRad = this.axisConfig.labelRotation >= -90 && this.axisConfig.labelRotation <= 90 ? this.axisConfig.labelRotation * Math.PI / 180 : 0;
550
+ }
551
+ static {
552
+ n(this, "BaseAxis");
547
553
  }
548
554
  setRange(t) {
549
555
  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();
@@ -568,42 +574,42 @@ var Q, Ut = (Q = class {
568
574
  );
569
575
  }
570
576
  recalculateOuterPaddingToDrawBar() {
571
- Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
577
+ Lt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Lt * this.getTickDistance() / 2)), this.recalculateScale();
572
578
  }
573
579
  calculateSpaceIfDrawnHorizontally(t) {
574
580
  let i = t.height;
575
581
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
576
- const s = this.getLabelDimension(), a = Xt * t.width;
577
- this.outerPadding = Math.min(s.width / 2, a);
578
- let o = s.height;
579
- this.axisPosition === "bottom" && this.normalizedLabelRotationInRad !== 0 && (o = Math.max(
580
- o,
581
- Math.abs(Math.sin(this.normalizedLabelRotationInRad) * s.width) + Math.abs(Math.cos(this.normalizedLabelRotationInRad) * s.height)
582
- )), o += this.axisConfig.labelPadding * 2, this.labelTextHeight = s.height, o <= i && (i -= o, this.showLabel = !0);
582
+ const e = this.getLabelDimension(), s = Pt * t.width;
583
+ this.outerPadding = Math.min(e.width / 2, s);
584
+ let a = e.height;
585
+ this.axisPosition === "bottom" && this.normalizedLabelRotationInRad !== 0 && (a = Math.max(
586
+ a,
587
+ Math.abs(Math.sin(this.normalizedLabelRotationInRad) * e.width) + Math.abs(Math.cos(this.normalizedLabelRotationInRad) * e.height)
588
+ )), a += this.axisConfig.labelPadding * 2, this.labelTextHeight = e.height, a <= i && (i -= a, this.showLabel = !0);
583
589
  }
584
590
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
585
- const s = this.textDimensionCalculator.getMaxDimension(
591
+ const e = this.textDimensionCalculator.getMaxDimension(
586
592
  [this.title],
587
593
  this.axisConfig.titleFontSize
588
- ), a = s.height + this.axisConfig.titlePadding * 2;
589
- this.titleTextHeight = s.height, a <= i && (i -= a, this.showTitle = !0);
594
+ ), s = e.height + this.axisConfig.titlePadding * 2;
595
+ this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = !0);
590
596
  }
591
597
  this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
592
598
  }
593
599
  calculateSpaceIfDrawnVertical(t) {
594
600
  let i = t.width;
595
601
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
596
- const s = this.getLabelDimension(), a = Xt * t.height;
597
- this.outerPadding = Math.min(s.height / 2, a);
598
- const o = s.width + this.axisConfig.labelPadding * 2;
599
- o <= i && (i -= o, this.showLabel = !0);
602
+ const e = this.getLabelDimension(), s = Pt * t.height;
603
+ this.outerPadding = Math.min(e.height / 2, s);
604
+ const a = e.width + this.axisConfig.labelPadding * 2;
605
+ a <= i && (i -= a, this.showLabel = !0);
600
606
  }
601
607
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
602
- const s = this.textDimensionCalculator.getMaxDimension(
608
+ const e = this.textDimensionCalculator.getMaxDimension(
603
609
  [this.title],
604
610
  this.axisConfig.titleFontSize
605
- ), a = s.height + this.axisConfig.titlePadding * 2;
606
- this.titleTextHeight = s.height, a <= i && (i -= a, this.showTitle = !0);
611
+ ), s = e.height + this.axisConfig.titlePadding * 2;
612
+ this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = !0);
607
613
  }
608
614
  this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
609
615
  }
@@ -654,8 +660,8 @@ var Q, Ut = (Q = class {
654
660
  t.push({
655
661
  type: "path",
656
662
  groupTexts: ["left-axis", "ticks"],
657
- data: this.getTickValues().map((s) => ({
658
- path: `M ${i},${this.getScaleValue(s)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(s)}`,
663
+ data: this.getTickValues().map((e) => ({
664
+ path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
659
665
  strokeFill: this.axisThemeConfig.tickColor,
660
666
  strokeWidth: this.axisConfig.tickWidth
661
667
  }))
@@ -712,8 +718,8 @@ var Q, Ut = (Q = class {
712
718
  t.push({
713
719
  type: "path",
714
720
  groupTexts: ["bottom-axis", "ticks"],
715
- data: this.getTickValues().map((s) => ({
716
- path: `M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i + this.axisConfig.tickLength}`,
721
+ data: this.getTickValues().map((e) => ({
722
+ path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
717
723
  strokeFill: this.axisThemeConfig.tickColor,
718
724
  strokeWidth: this.axisConfig.tickWidth
719
725
  }))
@@ -770,8 +776,8 @@ var Q, Ut = (Q = class {
770
776
  t.push({
771
777
  type: "path",
772
778
  groupTexts: ["top-axis", "ticks"],
773
- data: this.getTickValues().map((s) => ({
774
- 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)}`,
779
+ data: this.getTickValues().map((e) => ({
780
+ 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)}`,
775
781
  strokeFill: this.axisThemeConfig.tickColor,
776
782
  strokeWidth: this.axisConfig.tickWidth
777
783
  }))
@@ -801,15 +807,18 @@ var Q, Ut = (Q = class {
801
807
  throw Error("Drawing of right axis is not implemented");
802
808
  return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
803
809
  }
804
- }, n(K, "BaseAxis"), K), Z, vi = (Z = class extends $t {
805
- constructor(t, i, s, a, o) {
806
- super(t, a, o, i), this.categories = s, this.scale = wt().domain(this.categories).range(this.getRange());
810
+ }, bi = class extends Bt {
811
+ static {
812
+ n(this, "BandAxis");
813
+ }
814
+ constructor(t, i, e, s, a) {
815
+ super(t, s, a, i), this.categories = e, this.scale = ut().domain(this.categories).range(this.getRange());
807
816
  }
808
817
  setRange(t) {
809
818
  super.setRange(t);
810
819
  }
811
820
  recalculateScale() {
812
- this.scale = wt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Nt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
821
+ this.scale = ut().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), It.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
813
822
  }
814
823
  getTickValues() {
815
824
  return this.categories;
@@ -817,47 +826,53 @@ var Q, Ut = (Q = class {
817
826
  getScaleValue(t) {
818
827
  return this.scale(t) ?? this.getRange()[0];
819
828
  }
820
- }, n(Z, "BandAxis"), Z), J, Li = (J = class extends $t {
821
- constructor(t, i, s, a, o) {
822
- super(t, a, o, i), this.domain = s, this.scale = Wt().domain(this.domain).range(this.getRange());
829
+ }, Ai = class extends Bt {
830
+ static {
831
+ n(this, "LinearAxis");
832
+ }
833
+ constructor(t, i, e, s, a) {
834
+ super(t, s, a, i), this.domain = e, this.scale = vt().domain(this.domain).range(this.getRange());
823
835
  }
824
836
  getTickValues() {
825
837
  return this.scale.ticks();
826
838
  }
827
839
  recalculateScale() {
828
840
  const t = [...this.domain];
829
- this.axisPosition === "left" && t.reverse(), this.scale = Wt().domain(t).range(this.getRange());
841
+ this.axisPosition === "left" && t.reverse(), this.scale = vt().domain(t).range(this.getRange());
830
842
  }
831
843
  getScaleValue(t) {
832
844
  return this.scale(t);
833
845
  }
834
- }, n(J, "LinearAxis"), J);
835
- function Rt(e, t, i, s) {
836
- const a = new Ut(s);
837
- return ft(e) ? new vi(
838
- t,
846
+ };
847
+ function dt(t, i, e, s) {
848
+ const a = new zt(s);
849
+ return nt(t) ? new bi(
839
850
  i,
840
- e.categories,
841
- e.title,
851
+ e,
852
+ t.categories,
853
+ t.title,
842
854
  a
843
- ) : new Li(
844
- t,
855
+ ) : new Ai(
845
856
  i,
846
- [e.min, e.max],
847
- e.title,
857
+ e,
858
+ [t.min, t.max],
859
+ t.title,
848
860
  a
849
861
  );
850
862
  }
851
- n(Rt, "getAxis");
852
- var tt, Pi = (tt = class {
853
- constructor(t, i, s, a) {
854
- this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = a, this.boundingRect = {
863
+ n(dt, "getAxis");
864
+ var wi = class {
865
+ constructor(t, i, e, s) {
866
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
855
867
  x: 0,
856
868
  y: 0,
857
869
  width: 0,
858
870
  height: 0
859
871
  }, this.showChartTitle = !1;
860
872
  }
873
+ static {
874
+ n(this, "ChartTitle");
875
+ }
861
876
  setBoundingBoxXY(t) {
862
877
  this.boundingRect.x = t.x, this.boundingRect.y = t.y;
863
878
  }
@@ -865,8 +880,8 @@ var tt, Pi = (tt = class {
865
880
  const i = this.textDimensionCalculator.getMaxDimension(
866
881
  [this.chartData.title],
867
882
  this.chartConfig.titleFontSize
868
- ), s = Math.max(i.width, t.width), a = i.height + 2 * this.chartConfig.titlePadding;
869
- return i.width <= s && i.height <= a && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = a, this.showChartTitle = !0), {
883
+ ), e = Math.max(i.width, t.width), s = i.height + 2 * this.chartConfig.titlePadding;
884
+ return i.width <= e && i.height <= s && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = s, this.showChartTitle = !0), {
870
885
  width: this.boundingRect.width,
871
886
  height: this.boundingRect.height
872
887
  };
@@ -890,25 +905,28 @@ var tt, Pi = (tt = class {
890
905
  ]
891
906
  }), t;
892
907
  }
893
- }, n(tt, "ChartTitle"), tt);
894
- function qt(e, t, i, s) {
895
- const a = new Ut(s);
896
- return new Pi(a, e, t, i);
908
+ };
909
+ function Vt(t, i, e, s) {
910
+ const a = new zt(s);
911
+ return new wi(a, t, i, e);
897
912
  }
898
- n(qt, "getChartTitleComponent");
899
- var it, Ei = (it = class {
900
- constructor(t, i, s, a, o) {
901
- this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = a, this.plotIndex = o;
913
+ n(Vt, "getChartTitleComponent");
914
+ var Ci = class {
915
+ constructor(t, i, e, s, a) {
916
+ this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = a;
917
+ }
918
+ static {
919
+ n(this, "LinePlot");
902
920
  }
903
921
  getDrawableElement() {
904
- const t = this.plotData.data.map((a) => [
905
- this.xAxis.getScaleValue(a[0]),
906
- this.yAxis.getScaleValue(a[1])
922
+ const t = this.plotData.data.map((s) => [
923
+ this.xAxis.getScaleValue(s[0]),
924
+ this.yAxis.getScaleValue(s[1])
907
925
  ]);
908
926
  let i;
909
- if (this.orientation === "horizontal" ? i = Ot().y((a) => a[0]).x((a) => a[1])(t) : i = Ot().x((a) => a[0]).y((a) => a[1])(t), !i)
927
+ if (this.orientation === "horizontal" ? i = Dt().y((s) => s[0]).x((s) => s[1])(t) : i = Dt().x((s) => s[0]).y((s) => s[1])(t), !i)
910
928
  return [];
911
- const s = [
929
+ const e = [
912
930
  {
913
931
  groupTexts: ["plot", `line-plot-${this.plotIndex}`],
914
932
  type: "path",
@@ -922,22 +940,22 @@ var it, Ei = (it = class {
922
940
  }
923
941
  ];
924
942
  if (this.plotData.pointLabels && this.plotData.pointLabels.length > 0) {
925
- const l = [];
926
- for (const [f, [d, k]] of t.entries()) {
927
- const T = this.plotData.pointLabels[f];
928
- T && (this.orientation === "horizontal" ? l.push({
929
- x: k + 10,
930
- y: d,
931
- text: T,
943
+ const c = [];
944
+ for (const [l, [f, S]] of t.entries()) {
945
+ const k = this.plotData.pointLabels[l];
946
+ k && (this.orientation === "horizontal" ? c.push({
947
+ x: S + 10,
948
+ y: f,
949
+ text: k,
932
950
  fill: this.plotData.strokeFill,
933
951
  verticalPos: "middle",
934
952
  horizontalPos: "left",
935
953
  fontSize: 12,
936
954
  rotation: 0
937
- }) : l.push({
938
- x: d,
939
- y: k - 10,
940
- text: T,
955
+ }) : c.push({
956
+ x: f,
957
+ y: S - 10,
958
+ text: k,
941
959
  fill: this.plotData.strokeFill,
942
960
  verticalPos: "middle",
943
961
  horizontalPos: "center",
@@ -945,32 +963,35 @@ var it, Ei = (it = class {
945
963
  rotation: 0
946
964
  }));
947
965
  }
948
- l.length > 0 && s.push({
966
+ c.length > 0 && e.push({
949
967
  groupTexts: ["plot", `line-plot-${this.plotIndex}`, "labels"],
950
968
  type: "text",
951
- data: l
969
+ data: c
952
970
  });
953
971
  }
954
- return s;
972
+ return e;
973
+ }
974
+ }, Si = class {
975
+ constructor(t, i, e, s, a, c) {
976
+ this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = a, this.plotIndex = c;
955
977
  }
956
- }, n(it, "LinePlot"), it), et, Ii = (et = class {
957
- constructor(t, i, s, a, o, l) {
958
- this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = a, this.orientation = o, this.plotIndex = l;
978
+ static {
979
+ n(this, "BarPlot");
959
980
  }
960
981
  getDrawableElement() {
961
- const t = this.barData.data.map((o) => [
962
- this.xAxis.getScaleValue(o[0]),
963
- this.yAxis.getScaleValue(o[1])
964
- ]), s = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), a = s / 2;
982
+ const t = this.barData.data.map((a) => [
983
+ this.xAxis.getScaleValue(a[0]),
984
+ this.yAxis.getScaleValue(a[1])
985
+ ]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), s = e / 2;
965
986
  return this.orientation === "horizontal" ? [
966
987
  {
967
988
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
968
989
  type: "rect",
969
- data: t.map((o) => ({
990
+ data: t.map((a) => ({
970
991
  x: this.boundingRect.x,
971
- y: o[0] - a,
972
- height: s,
973
- width: o[1] - this.boundingRect.x,
992
+ y: a[0] - s,
993
+ height: e,
994
+ width: a[1] - this.boundingRect.x,
974
995
  fill: this.barData.fill,
975
996
  strokeWidth: 0,
976
997
  strokeFill: this.barData.fill
@@ -980,11 +1001,11 @@ var it, Ei = (it = class {
980
1001
  {
981
1002
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
982
1003
  type: "rect",
983
- data: t.map((o) => ({
984
- x: o[0] - a,
985
- y: o[1],
986
- width: s,
987
- height: this.boundingRect.y + this.boundingRect.height - o[1],
1004
+ data: t.map((a) => ({
1005
+ x: a[0] - s,
1006
+ y: a[1],
1007
+ width: e,
1008
+ height: this.boundingRect.y + this.boundingRect.height - a[1],
988
1009
  fill: this.barData.fill,
989
1010
  strokeWidth: 0,
990
1011
  strokeFill: this.barData.fill
@@ -992,15 +1013,18 @@ var it, Ei = (it = class {
992
1013
  }
993
1014
  ];
994
1015
  }
995
- }, n(et, "BarPlot"), et), st, Mi = (st = class {
996
- constructor(t, i, s) {
997
- this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
1016
+ }, Ri = class {
1017
+ constructor(t, i, e) {
1018
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
998
1019
  x: 0,
999
1020
  y: 0,
1000
1021
  width: 0,
1001
1022
  height: 0
1002
1023
  };
1003
1024
  }
1025
+ static {
1026
+ n(this, "BasePlot");
1027
+ }
1004
1028
  setAxes(t, i) {
1005
1029
  this.xAxis = t, this.yAxis = i;
1006
1030
  }
@@ -1017,111 +1041,114 @@ var it, Ei = (it = class {
1017
1041
  if (!(this.xAxis && this.yAxis))
1018
1042
  throw Error("Axes must be passed to render Plots");
1019
1043
  const t = [];
1020
- for (const [i, s] of this.chartData.plots.entries())
1021
- switch (s.type) {
1044
+ for (const [i, e] of this.chartData.plots.entries())
1045
+ switch (e.type) {
1022
1046
  case "line":
1023
1047
  {
1024
- const a = new Ei(
1025
- s,
1048
+ const s = new Ci(
1049
+ e,
1026
1050
  this.xAxis,
1027
1051
  this.yAxis,
1028
1052
  this.chartConfig.chartOrientation,
1029
1053
  i
1030
1054
  );
1031
- t.push(...a.getDrawableElement());
1055
+ t.push(...s.getDrawableElement());
1032
1056
  }
1033
1057
  break;
1034
1058
  case "bar":
1035
1059
  {
1036
- const a = new Ii(
1037
- s,
1060
+ const s = new Si(
1061
+ e,
1038
1062
  this.boundingRect,
1039
1063
  this.xAxis,
1040
1064
  this.yAxis,
1041
1065
  this.chartConfig.chartOrientation,
1042
1066
  i
1043
1067
  );
1044
- t.push(...a.getDrawableElement());
1068
+ t.push(...s.getDrawableElement());
1045
1069
  }
1046
1070
  break;
1047
1071
  }
1048
1072
  return t;
1049
1073
  }
1050
- }, n(st, "BasePlot"), st);
1051
- function Gt(e, t, i) {
1052
- return new Mi(e, t, i);
1074
+ };
1075
+ function Ot(t, i, e) {
1076
+ return new Ri(t, i, e);
1053
1077
  }
1054
- n(Gt, "getPlotComponent");
1055
- var at, zi = (at = class {
1056
- constructor(t, i, s, a) {
1078
+ n(Ot, "getPlotComponent");
1079
+ var _i = class {
1080
+ constructor(t, i, e, s) {
1057
1081
  this.chartConfig = t, this.chartData = i, this.componentStore = {
1058
- title: qt(t, i, s, a),
1059
- plot: Gt(t, i, s),
1060
- xAxis: Rt(
1082
+ title: Vt(t, i, e, s),
1083
+ plot: Ot(t, i, e),
1084
+ xAxis: dt(
1061
1085
  i.xAxis,
1062
1086
  t.xAxis,
1063
1087
  {
1064
- titleColor: s.xAxisTitleColor,
1065
- labelColor: s.xAxisLabelColor,
1066
- tickColor: s.xAxisTickColor,
1067
- axisLineColor: s.xAxisLineColor
1088
+ titleColor: e.xAxisTitleColor,
1089
+ labelColor: e.xAxisLabelColor,
1090
+ tickColor: e.xAxisTickColor,
1091
+ axisLineColor: e.xAxisLineColor
1068
1092
  },
1069
- a
1093
+ s
1070
1094
  ),
1071
- yAxis: Rt(
1095
+ yAxis: dt(
1072
1096
  i.yAxis,
1073
1097
  t.yAxis,
1074
1098
  {
1075
- titleColor: s.yAxisTitleColor,
1076
- labelColor: s.yAxisLabelColor,
1077
- tickColor: s.yAxisTickColor,
1078
- axisLineColor: s.yAxisLineColor
1099
+ titleColor: e.yAxisTitleColor,
1100
+ labelColor: e.yAxisLabelColor,
1101
+ tickColor: e.yAxisTickColor,
1102
+ axisLineColor: e.yAxisLineColor
1079
1103
  },
1080
- a
1104
+ s
1081
1105
  )
1082
1106
  };
1083
1107
  }
1108
+ static {
1109
+ n(this, "Orchestrator");
1110
+ }
1084
1111
  calculateVerticalSpace() {
1085
- let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, a = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), l = Math.floor(
1112
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, a = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = Math.floor(
1086
1113
  i * this.chartConfig.plotReservedSpacePercent / 100
1087
- ), f = this.componentStore.plot.calculateSpace({
1088
- width: o,
1089
- height: l
1114
+ ), l = this.componentStore.plot.calculateSpace({
1115
+ width: a,
1116
+ height: c
1090
1117
  });
1091
- t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
1118
+ t -= l.width, i -= l.height, l = this.componentStore.title.calculateSpace({
1092
1119
  width: this.chartConfig.width,
1093
1120
  height: i
1094
- }), a = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("bottom"), f = this.componentStore.xAxis.calculateSpace({
1121
+ }), s = l.height, i -= l.height, this.componentStore.xAxis.setAxisPosition("bottom"), l = this.componentStore.xAxis.calculateSpace({
1095
1122
  width: t,
1096
1123
  height: i
1097
- }), i -= f.height, this.componentStore.yAxis.setAxisPosition("left"), f = this.componentStore.yAxis.calculateSpace({
1124
+ }), i -= l.height, this.componentStore.yAxis.setAxisPosition("left"), l = this.componentStore.yAxis.calculateSpace({
1098
1125
  width: t,
1099
1126
  height: i
1100
- }), s = f.width, t -= f.width, t > 0 && (o += t, t = 0), i > 0 && (l += i, i = 0), this.componentStore.plot.calculateSpace({
1101
- width: o,
1102
- height: l
1103
- }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: a }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: s, y: a + l }), this.componentStore.yAxis.setRange([a, a + l]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: a }), this.chartData.plots.some((d) => St(d)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1127
+ }), e = l.width, t -= l.width, t > 0 && (a += t, t = 0), i > 0 && (c += i, i = 0), this.componentStore.plot.calculateSpace({
1128
+ width: a,
1129
+ height: c
1130
+ }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + a]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + c }), this.componentStore.yAxis.setRange([s, s + c]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((f) => xt(f)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1104
1131
  }
1105
1132
  calculateHorizontalSpace() {
1106
- let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, a = 0, o = 0, l = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), f = Math.floor(
1133
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, a = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), l = Math.floor(
1107
1134
  i * this.chartConfig.plotReservedSpacePercent / 100
1108
- ), d = this.componentStore.plot.calculateSpace({
1109
- width: l,
1110
- height: f
1135
+ ), f = this.componentStore.plot.calculateSpace({
1136
+ width: c,
1137
+ height: l
1111
1138
  });
1112
- t -= d.width, i -= d.height, d = this.componentStore.title.calculateSpace({
1139
+ t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
1113
1140
  width: this.chartConfig.width,
1114
1141
  height: i
1115
- }), s = d.height, i -= d.height, this.componentStore.xAxis.setAxisPosition("left"), d = this.componentStore.xAxis.calculateSpace({
1142
+ }), e = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("left"), f = this.componentStore.xAxis.calculateSpace({
1116
1143
  width: t,
1117
1144
  height: i
1118
- }), t -= d.width, a = d.width, this.componentStore.yAxis.setAxisPosition("top"), d = this.componentStore.yAxis.calculateSpace({
1145
+ }), t -= f.width, s = f.width, this.componentStore.yAxis.setAxisPosition("top"), f = this.componentStore.yAxis.calculateSpace({
1119
1146
  width: t,
1120
1147
  height: i
1121
- }), i -= d.height, o = s + d.height, t > 0 && (l += t, t = 0), i > 0 && (f += i, i = 0), this.componentStore.plot.calculateSpace({
1122
- width: l,
1123
- height: f
1124
- }), this.componentStore.plot.setBoundingBoxXY({ x: a, y: o }), this.componentStore.yAxis.setRange([a, a + l]), this.componentStore.yAxis.setBoundingBoxXY({ x: a, y: s }), this.componentStore.xAxis.setRange([o, o + f]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: o }), this.chartData.plots.some((k) => St(k)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1148
+ }), i -= f.height, a = e + f.height, t > 0 && (c += t, t = 0), i > 0 && (l += i, i = 0), this.componentStore.plot.calculateSpace({
1149
+ width: c,
1150
+ height: l
1151
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: a }), this.componentStore.yAxis.setRange([s, s + c]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([a, a + l]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: a }), this.chartData.plots.some((S) => xt(S)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1125
1152
  }
1126
1153
  calculateSpace() {
1127
1154
  this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
@@ -1134,25 +1161,28 @@ var at, zi = (at = class {
1134
1161
  t.push(...i.getDrawableElements());
1135
1162
  return t;
1136
1163
  }
1137
- }, n(at, "Orchestrator"), at), nt, Bi = (nt = class {
1138
- static build(t, i, s, a) {
1139
- return new zi(t, i, s, a).getDrawableElement();
1164
+ }, ki = class {
1165
+ static {
1166
+ n(this, "XYChartBuilder");
1167
+ }
1168
+ static build(t, i, e, s) {
1169
+ return new _i(t, i, e, s).getDrawableElement();
1140
1170
  }
1141
- }, n(nt, "XYChartBuilder"), nt), ht = 0, jt, lt = vt(), ct = Dt(), y = Lt(), _t = ct.plotColorPalette.split(",").map((e) => e.trim()), pt = !1, Tt = !1;
1142
- function Dt() {
1143
- const e = Si(), t = kt();
1144
- return Ht(e.xyChart, t.themeVariables.xyChart);
1171
+ }, Z = 0, Wt, J = bt(), tt = yt(), m = At(), ft = tt.plotColorPalette.split(",").map((t) => t.trim()), ot = !1, mt = !1;
1172
+ function yt() {
1173
+ const t = xi(), i = pt();
1174
+ return Mt(t.xyChart, i.themeVariables.xyChart);
1145
1175
  }
1146
- n(Dt, "getChartDefaultThemeConfig");
1147
- function vt() {
1148
- const e = kt();
1149
- return Ht(
1150
- Ci.xyChart,
1151
- e.xyChart
1176
+ n(yt, "getChartDefaultThemeConfig");
1177
+ function bt() {
1178
+ const t = pt();
1179
+ return Mt(
1180
+ gi.xyChart,
1181
+ t.xyChart
1152
1182
  );
1153
1183
  }
1154
- n(vt, "getChartDefaultConfig");
1155
- function Lt() {
1184
+ n(bt, "getChartDefaultConfig");
1185
+ function At() {
1156
1186
  return {
1157
1187
  yAxis: {
1158
1188
  type: "linear",
@@ -1169,217 +1199,217 @@ function Lt() {
1169
1199
  plots: []
1170
1200
  };
1171
1201
  }
1172
- n(Lt, "getChartDefaultData");
1173
- function ut(e) {
1174
- const t = kt();
1175
- return wi(e.trim(), t);
1202
+ n(At, "getChartDefaultData");
1203
+ function it(t) {
1204
+ const i = pt();
1205
+ return ui(t.trim(), i);
1176
1206
  }
1177
- n(ut, "textSanitizer");
1178
- function Qt(e) {
1179
- jt = e;
1207
+ n(it, "textSanitizer");
1208
+ function Ft(t) {
1209
+ Wt = t;
1180
1210
  }
1181
- n(Qt, "setTmpSVGG");
1182
- function Kt(e) {
1183
- e === "horizontal" ? lt.chartOrientation = "horizontal" : lt.chartOrientation = "vertical";
1211
+ n(Ft, "setTmpSVGG");
1212
+ function Xt(t) {
1213
+ t === "horizontal" ? J.chartOrientation = "horizontal" : J.chartOrientation = "vertical";
1184
1214
  }
1185
- n(Kt, "setOrientation");
1186
- function Zt(e) {
1187
- y.xAxis.title = ut(e.text);
1215
+ n(Xt, "setOrientation");
1216
+ function Yt(t) {
1217
+ m.xAxis.title = it(t.text);
1188
1218
  }
1189
- n(Zt, "setXAxisTitle");
1190
- function Pt(e, t) {
1191
- y.xAxis = { type: "linear", title: y.xAxis.title, min: e, max: t }, pt = !0;
1219
+ n(Yt, "setXAxisTitle");
1220
+ function wt(t, i) {
1221
+ m.xAxis = { type: "linear", title: m.xAxis.title, min: t, max: i }, ot = !0;
1192
1222
  }
1193
- n(Pt, "setXAxisRangeData");
1194
- function Jt(e) {
1195
- y.xAxis = {
1223
+ n(wt, "setXAxisRangeData");
1224
+ function Nt(t) {
1225
+ m.xAxis = {
1196
1226
  type: "band",
1197
- title: y.xAxis.title,
1198
- categories: e.map((t) => ut(t.text))
1199
- }, pt = !0;
1227
+ title: m.xAxis.title,
1228
+ categories: t.map((i) => it(i.text))
1229
+ }, ot = !0;
1200
1230
  }
1201
- n(Jt, "setXAxisBand");
1202
- function ti(e) {
1203
- y.yAxis.title = ut(e.text);
1231
+ n(Nt, "setXAxisBand");
1232
+ function Ht(t) {
1233
+ m.yAxis.title = it(t.text);
1204
1234
  }
1205
- n(ti, "setYAxisTitle");
1206
- function ii(e, t) {
1207
- y.yAxis = { type: "linear", title: y.yAxis.title, min: e, max: t }, Tt = !0;
1235
+ n(Ht, "setYAxisTitle");
1236
+ function Ut(t, i) {
1237
+ m.yAxis = { type: "linear", title: m.yAxis.title, min: t, max: i }, mt = !0;
1208
1238
  }
1209
- n(ii, "setYAxisRangeData");
1210
- function ei(e) {
1211
- const t = Math.min(...e), i = Math.max(...e), s = j(y.yAxis) ? y.yAxis.min : 1 / 0, a = j(y.yAxis) ? y.yAxis.max : -1 / 0;
1212
- y.yAxis = {
1239
+ n(Ut, "setYAxisRangeData");
1240
+ function $t(t) {
1241
+ const i = Math.min(...t), e = Math.max(...t), s = j(m.yAxis) ? m.yAxis.min : 1 / 0, a = j(m.yAxis) ? m.yAxis.max : -1 / 0;
1242
+ m.yAxis = {
1213
1243
  type: "linear",
1214
- title: y.yAxis.title,
1215
- min: Math.min(s, t),
1216
- max: Math.max(a, i)
1244
+ title: m.yAxis.title,
1245
+ min: Math.min(s, i),
1246
+ max: Math.max(a, e)
1217
1247
  };
1218
1248
  }
1219
- n(ei, "setYAxisRangeFromPlotData");
1220
- function Et(e) {
1221
- let t = [];
1222
- if (e.length === 0)
1223
- return t;
1224
- if (!pt) {
1225
- const i = j(y.xAxis) ? y.xAxis.min : 1 / 0, s = j(y.xAxis) ? y.xAxis.max : -1 / 0;
1226
- Pt(Math.min(i, 1), Math.max(s, e.length));
1249
+ n($t, "setYAxisRangeFromPlotData");
1250
+ function Ct(t) {
1251
+ let i = [];
1252
+ if (t.length === 0)
1253
+ return i;
1254
+ if (!ot) {
1255
+ const e = j(m.xAxis) ? m.xAxis.min : 1 / 0, s = j(m.xAxis) ? m.xAxis.max : -1 / 0;
1256
+ wt(Math.min(e, 1), Math.max(s, t.length));
1227
1257
  }
1228
- if (ft(y.xAxis) && e.length > y.xAxis.categories.length && (e = e.slice(0, y.xAxis.categories.length)), Tt || ei(e), ft(y.xAxis) && (t = y.xAxis.categories.map((i, s) => [i, e[s]])), j(y.xAxis)) {
1229
- const i = y.xAxis.min, s = y.xAxis.max, a = (s - i) / (e.length - 1), o = [];
1230
- for (let l = i; l <= s; l += a)
1231
- o.push(`${l}`);
1232
- t = o.map((l, f) => [l, e[f]]);
1258
+ if (nt(m.xAxis) && t.length > m.xAxis.categories.length && (t = t.slice(0, m.xAxis.categories.length)), mt || $t(t), nt(m.xAxis) && (i = m.xAxis.categories.map((e, s) => [e, t[s]])), j(m.xAxis)) {
1259
+ const e = m.xAxis.min, s = m.xAxis.max, a = (s - e) / (t.length - 1), c = [];
1260
+ for (let l = e; l <= s; l += a)
1261
+ c.push(`${l}`);
1262
+ i = c.map((l, f) => [l, t[f]]);
1233
1263
  }
1234
- return t;
1264
+ return i;
1235
1265
  }
1236
- n(Et, "transformDataWithoutCategory");
1237
- function It(e) {
1238
- return _t[e === 0 ? 0 : e % _t.length];
1266
+ n(Ct, "transformDataWithoutCategory");
1267
+ function St(t) {
1268
+ return ft[t === 0 ? 0 : t % ft.length];
1239
1269
  }
1240
- n(It, "getPlotColorFromPalette");
1241
- function si(e, t) {
1242
- const i = t.map((l) => l.value), s = t.map((l) => l.label ? ut(l.label) : ""), a = Et(i), o = s.some((l) => l !== "");
1243
- y.plots.push({
1270
+ n(St, "getPlotColorFromPalette");
1271
+ function qt(t, i) {
1272
+ const e = i.map((l) => l.value), s = i.map((l) => l.label ? it(l.label) : ""), a = Ct(e), c = s.some((l) => l !== "");
1273
+ m.plots.push({
1244
1274
  type: "line",
1245
- strokeFill: It(ht),
1275
+ strokeFill: St(Z),
1246
1276
  strokeWidth: 2,
1247
1277
  data: a,
1248
- ...o ? { pointLabels: s } : {}
1249
- }), ht++;
1278
+ ...c ? { pointLabels: s } : {}
1279
+ }), Z++;
1250
1280
  }
1251
- n(si, "setLineData");
1252
- function ai(e, t) {
1253
- const i = t.map((a) => a.value), s = Et(i);
1254
- y.plots.push({
1281
+ n(qt, "setLineData");
1282
+ function Gt(t, i) {
1283
+ const e = i.map((a) => a.value), s = Ct(e);
1284
+ m.plots.push({
1255
1285
  type: "bar",
1256
- fill: It(ht),
1286
+ fill: St(Z),
1257
1287
  data: s
1258
- }), ht++;
1288
+ }), Z++;
1259
1289
  }
1260
- n(ai, "setBarData");
1261
- function ni() {
1262
- if (y.plots.length === 0)
1290
+ n(Gt, "setBarData");
1291
+ function jt() {
1292
+ if (m.plots.length === 0)
1263
1293
  throw Error("No Plot to render, please provide a plot with some data");
1264
- return y.title = Yt(), Bi.build(lt, y, ct, jt);
1294
+ return m.title = Et(), ki.build(J, m, tt, Wt);
1265
1295
  }
1266
- n(ni, "getDrawableElem");
1267
- function oi() {
1268
- return ct;
1296
+ n(jt, "getDrawableElem");
1297
+ function Qt() {
1298
+ return tt;
1269
1299
  }
1270
- n(oi, "getChartThemeConfig");
1271
- function ri() {
1272
- return lt;
1300
+ n(Qt, "getChartThemeConfig");
1301
+ function Kt() {
1302
+ return J;
1273
1303
  }
1274
- n(ri, "getChartConfig");
1275
- function hi() {
1276
- return y;
1304
+ n(Kt, "getChartConfig");
1305
+ function Zt() {
1306
+ return m;
1277
1307
  }
1278
- n(hi, "getXYChartData");
1279
- var Vi = /* @__PURE__ */ n(function() {
1280
- Ai(), ht = 0, lt = vt(), y = Lt(), ct = Dt(), _t = ct.plotColorPalette.split(",").map((e) => e.trim()), pt = !1, Tt = !1;
1281
- }, "clear"), Oi = {
1282
- getDrawableElem: ni,
1283
- clear: Vi,
1284
- setAccTitle: mi,
1285
- getAccTitle: pi,
1286
- setDiagramTitle: fi,
1287
- getDiagramTitle: Yt,
1288
- getAccDescription: di,
1289
- setAccDescription: xi,
1290
- setOrientation: Kt,
1291
- setXAxisTitle: Zt,
1292
- setXAxisRangeData: Pt,
1293
- setXAxisBand: Jt,
1294
- setYAxisTitle: ti,
1295
- setYAxisRangeData: ii,
1296
- setLineData: si,
1297
- setBarData: ai,
1298
- setTmpSVGG: Qt,
1299
- getChartThemeConfig: oi,
1300
- getChartConfig: ri,
1301
- getXYChartData: hi
1302
- }, Wi = /* @__PURE__ */ n((e, t, i, s) => {
1303
- const a = s.db, o = a.getChartThemeConfig(), l = a.getChartConfig(), f = a.getXYChartData().plots[0].data.map((m) => m[1]);
1304
- function d(m) {
1305
- return m === "top" ? "text-before-edge" : "middle";
1306
- }
1307
- n(d, "getDominantBaseLine");
1308
- function k(m) {
1309
- return m === "left" ? "start" : m === "right" ? "end" : "middle";
1308
+ n(Zt, "getXYChartData");
1309
+ var Ti = /* @__PURE__ */ n(function() {
1310
+ ci(), Z = 0, J = bt(), m = At(), tt = yt(), ft = tt.plotColorPalette.split(",").map((t) => t.trim()), ot = !1, mt = !1;
1311
+ }, "clear"), Di = {
1312
+ getDrawableElem: jt,
1313
+ clear: Ti,
1314
+ setAccTitle: ri,
1315
+ getAccTitle: oi,
1316
+ setDiagramTitle: ni,
1317
+ getDiagramTitle: Et,
1318
+ getAccDescription: ai,
1319
+ setAccDescription: si,
1320
+ setOrientation: Xt,
1321
+ setXAxisTitle: Yt,
1322
+ setXAxisRangeData: wt,
1323
+ setXAxisBand: Nt,
1324
+ setYAxisTitle: Ht,
1325
+ setYAxisRangeData: Ut,
1326
+ setLineData: qt,
1327
+ setBarData: Gt,
1328
+ setTmpSVGG: Ft,
1329
+ getChartThemeConfig: Qt,
1330
+ getChartConfig: Kt,
1331
+ getXYChartData: Zt
1332
+ }, vi = /* @__PURE__ */ n((t, i, e, s) => {
1333
+ const a = s.db, c = a.getChartThemeConfig(), l = a.getChartConfig(), f = a.getXYChartData().plots[0].data.map((p) => p[1]);
1334
+ function S(p) {
1335
+ return p === "top" ? "text-before-edge" : "middle";
1336
+ }
1337
+ n(S, "getDominantBaseLine");
1338
+ function k(p) {
1339
+ return p === "left" ? "start" : p === "right" ? "end" : "middle";
1310
1340
  }
1311
1341
  n(k, "getTextAnchor");
1312
- function T(m) {
1313
- return `translate(${m.x}, ${m.y}) rotate(${m.rotation || 0})`;
1314
- }
1315
- n(T, "getTextTransformation"), Nt.debug(`Rendering xychart chart
1316
- ` + e);
1317
- const _ = yi(t), b = _.append("g").attr("class", "main"), E = b.append("rect").attr("width", l.width).attr("height", l.height).attr("class", "background");
1318
- bi(_, l.height, l.width, !0), _.attr("viewBox", `0 0 ${l.width} ${l.height}`), E.attr("fill", o.backgroundColor), a.setTmpSVGG(_.append("g").attr("class", "mermaid-tmp-group"));
1319
- const L = a.getDrawableElem(), P = {};
1320
- function I(m) {
1321
- let D = b, c = "";
1322
- for (const [B] of m.entries()) {
1323
- let W = b;
1324
- B > 0 && P[c] && (W = P[c]), c += m[B], D = P[c], D || (D = P[c] = W.append("g").attr("class", m[B]));
1342
+ function L(p) {
1343
+ return `translate(${p.x}, ${p.y}) rotate(${p.rotation || 0})`;
1344
+ }
1345
+ n(L, "getTextTransformation"), It.debug(`Rendering xychart chart
1346
+ ` + t);
1347
+ const _ = hi(i), y = _.append("g").attr("class", "main"), E = y.append("rect").attr("width", l.width).attr("height", l.height).attr("class", "background");
1348
+ li(_, l.height, l.width, !0), _.attr("viewBox", `0 0 ${l.width} ${l.height}`), E.attr("fill", c.backgroundColor), a.setTmpSVGG(_.append("g").attr("class", "mermaid-tmp-group"));
1349
+ const v = a.getDrawableElem(), P = {};
1350
+ function I(p) {
1351
+ let T = y, h = "";
1352
+ for (const [B] of p.entries()) {
1353
+ let W = y;
1354
+ B > 0 && P[h] && (W = P[h]), h += p[B], T = P[h], T || (T = P[h] = W.append("g").attr("class", p[B]));
1325
1355
  }
1326
- return D;
1356
+ return T;
1327
1357
  }
1328
1358
  n(I, "getGroup");
1329
- for (const m of L) {
1330
- if (m.data.length === 0)
1359
+ for (const p of v) {
1360
+ if (p.data.length === 0)
1331
1361
  continue;
1332
- const D = I(m.groupTexts);
1333
- switch (m.type) {
1362
+ const T = I(p.groupTexts);
1363
+ switch (p.type) {
1334
1364
  case "rect":
1335
- if (D.selectAll("rect").data(m.data).enter().append("rect").attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height).attr("fill", (c) => c.fill).attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth), l.showDataLabel) {
1336
- const c = l.showDataLabelOutsideBar;
1365
+ if (T.selectAll("rect").data(p.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), l.showDataLabel) {
1366
+ const h = l.showDataLabelOutsideBar;
1337
1367
  if (l.chartOrientation === "horizontal") {
1338
- let B = function(w, V) {
1339
- const { data: R, label: ot } = w;
1340
- return V * ot.length * W <= R.width - X;
1368
+ let B = function(A, V) {
1369
+ const { data: R, label: Q } = A;
1370
+ return V * Q.length * W <= R.width - X;
1341
1371
  };
1342
1372
  n(B, "fitsHorizontally");
1343
- const W = 0.7, X = 10, Y = m.data.map((w, V) => ({ data: w, label: f[V].toString() })).filter((w) => w.data.width > 0 && w.data.height > 0), S = Y.map((w) => {
1344
- const { data: V } = w;
1373
+ const W = 0.7, X = 10, Y = p.data.map((A, V) => ({ data: A, label: f[V].toString() })).filter((A) => A.data.width > 0 && A.data.height > 0), C = Y.map((A) => {
1374
+ const { data: V } = A;
1345
1375
  let R = V.height * 0.7;
1346
- for (; !B(w, R) && R > 0; )
1376
+ for (; !B(A, R) && R > 0; )
1347
1377
  R -= 1;
1348
1378
  return R;
1349
- }), H = Math.floor(Math.min(...S)), A = /* @__PURE__ */ n((w) => c ? w.data.x + w.data.width + X : w.data.x + w.data.width - X, "determineLabelXPosition");
1350
- D.selectAll("text").data(Y).enter().append("text").attr("x", A).attr("y", (w) => w.data.y + w.data.height / 2).attr("text-anchor", c ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", o.dataLabelColor).attr("font-size", `${H}px`).text((w) => w.label);
1379
+ }), H = Math.floor(Math.min(...C)), b = /* @__PURE__ */ n((A) => h ? A.data.x + A.data.width + X : A.data.x + A.data.width - X, "determineLabelXPosition");
1380
+ T.selectAll("text").data(Y).enter().append("text").attr("x", b).attr("y", (A) => A.data.y + A.data.height / 2).attr("text-anchor", h ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", c.dataLabelColor).attr("font-size", `${H}px`).text((A) => A.label);
1351
1381
  } else {
1352
- let B = function(A, w, V) {
1353
- const { data: R, label: ot } = A, F = w * ot.length * 0.7, h = R.x + R.width / 2, u = h - F / 2, g = h + F / 2, x = u >= R.x && g <= R.x + R.width, C = R.y + V + w <= R.y + R.height;
1354
- return x && C;
1382
+ let B = function(b, A, V) {
1383
+ const { data: R, label: Q } = b, F = A * Q.length * 0.7, r = R.x + R.width / 2, u = r - F / 2, g = r + F / 2, x = u >= R.x && g <= R.x + R.width, w = R.y + V + A <= R.y + R.height;
1384
+ return x && w;
1355
1385
  };
1356
1386
  n(B, "fitsInBar");
1357
- const W = 10, X = m.data.map((A, w) => ({ data: A, label: f[w].toString() })).filter((A) => A.data.width > 0 && A.data.height > 0), Y = X.map((A) => {
1358
- const { data: w, label: V } = A;
1359
- let R = w.width / (V.length * 0.7);
1360
- for (; !B(A, R, W) && R > 0; )
1387
+ const W = 10, X = p.data.map((b, A) => ({ data: b, label: f[A].toString() })).filter((b) => b.data.width > 0 && b.data.height > 0), Y = X.map((b) => {
1388
+ const { data: A, label: V } = b;
1389
+ let R = A.width / (V.length * 0.7);
1390
+ for (; !B(b, R, W) && R > 0; )
1361
1391
  R -= 1;
1362
1392
  return R;
1363
- }), S = Math.floor(Math.min(...Y)), H = /* @__PURE__ */ n((A) => c ? A.data.y - W : A.data.y + W, "determineLabelYPosition");
1364
- D.selectAll("text").data(X).enter().append("text").attr("x", (A) => A.data.x + A.data.width / 2).attr("y", H).attr("text-anchor", "middle").attr("dominant-baseline", c ? "auto" : "hanging").attr("fill", o.dataLabelColor).attr("font-size", `${S}px`).text((A) => A.label);
1393
+ }), C = Math.floor(Math.min(...Y)), H = /* @__PURE__ */ n((b) => h ? b.data.y - W : b.data.y + W, "determineLabelYPosition");
1394
+ T.selectAll("text").data(X).enter().append("text").attr("x", (b) => b.data.x + b.data.width / 2).attr("y", H).attr("text-anchor", "middle").attr("dominant-baseline", h ? "auto" : "hanging").attr("fill", c.dataLabelColor).attr("font-size", `${C}px`).text((b) => b.label);
1365
1395
  }
1366
1396
  }
1367
1397
  break;
1368
1398
  case "text":
1369
- D.selectAll("text").data(m.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (c) => c.fill).attr("font-size", (c) => c.fontSize).attr("dominant-baseline", (c) => d(c.verticalPos)).attr("text-anchor", (c) => k(c.horizontalPos)).attr("transform", (c) => T(c)).text((c) => c.text);
1399
+ T.selectAll("text").data(p.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) => S(h.verticalPos)).attr("text-anchor", (h) => k(h.horizontalPos)).attr("transform", (h) => L(h)).text((h) => h.text);
1370
1400
  break;
1371
1401
  case "path":
1372
- D.selectAll("path").data(m.data).enter().append("path").attr("d", (c) => c.path).attr("fill", (c) => c.fill ? c.fill : "none").attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth);
1402
+ T.selectAll("path").data(p.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);
1373
1403
  break;
1374
1404
  }
1375
1405
  }
1376
- }, "draw"), Fi = {
1377
- draw: Wi
1378
- }, Ui = {
1379
- parser: Di,
1380
- db: Oi,
1381
- renderer: Fi
1406
+ }, "draw"), Li = {
1407
+ draw: vi
1408
+ }, zi = {
1409
+ parser: yi,
1410
+ db: Di,
1411
+ renderer: Li
1382
1412
  };
1383
1413
  export {
1384
- Ui as diagram
1414
+ zi as diagram
1385
1415
  };