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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BizAnuDQ.js → ConnectedDataExplorerComponent-W-BOfG8M.js} +1495 -1496
  2. package/dist/{VegaLite-BvtjUHLS.js → VegaLite-C9hsmU75.js} +12483 -12485
  3. package/dist/{_baseUniq-C1K8a5jF.js → _baseUniq-JsDeIdvj.js} +13 -13
  4. package/dist/{any-language-editor-D3C2KiQW.js → any-language-editor-BzZqDQm_.js} +2 -2
  5. package/dist/{architectureDiagram-IEHRJDOE-DhrFWr1a.js → architectureDiagram-IEHRJDOE-DnNsdc8e.js} +1800 -1800
  6. package/dist/asn1-jKiBa2Ya.js +10 -10
  7. package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
  8. package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
  9. package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
  10. package/dist/blockDiagram-JOT3LUYC-C_KEbscf.js +2249 -0
  11. package/dist/{c4Diagram-VJAJSXHY-DKSU0_Zg.js → c4Diagram-VJAJSXHY-B7trZ6_H.js} +401 -400
  12. package/dist/{channel-DMiLp-mI.js → channel-CwUzkjN9.js} +1 -1
  13. package/dist/chunk-4BMEZGHF-C4_0qa8X.js +9 -0
  14. package/dist/chunk-A2AXSNBT-DApfdN4z.js +1373 -0
  15. package/dist/chunk-AEK57VVT-D_rUaIu3.js +1416 -0
  16. package/dist/{chunk-D6G4REZN-BZV3ukOi.js → chunk-D6G4REZN-BJurAONC.js} +2 -2
  17. package/dist/{chunk-RZ5BOZE2-B4rOVQD8.js → chunk-RZ5BOZE2-ChOs68Hz.js} +8 -8
  18. package/dist/chunk-XZIHB7SX-CGbScEEe.js +16 -0
  19. package/dist/{classDiagram-GIVACNV2-DLRT4_A4.js → classDiagram-GIVACNV2-CqVjeibK.js} +2 -2
  20. package/dist/{classDiagram-v2-COTLJTTW-DLRT4_A4.js → classDiagram-v2-COTLJTTW-CqVjeibK.js} +2 -2
  21. package/dist/clojure-CCKyeQKf.js +2 -2
  22. package/dist/{clone-CPwu6xRn.js → clone-BPHB9gtw.js} +1 -1
  23. package/dist/css-bIlmDBTK.js +19 -19
  24. package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
  25. package/dist/dagre-OKDRZEBW-EJUR9APO.js +447 -0
  26. package/dist/{data-editor-CYvUeKhw.js → data-editor-CvujN_l-.js} +5785 -5795
  27. package/dist/{diagram-SSKATNLV-D8WhiY2q.js → diagram-SSKATNLV-Bs-Zy3OO.js} +13 -13
  28. package/dist/{diagram-VNBRO52H-Bil9sOsr.js → diagram-VNBRO52H-rhV7IJ0T.js} +3 -3
  29. package/dist/{erDiagram-Q7BY3M3F-J-Jm-DD7.js → erDiagram-Q7BY3M3F-DwuCpdOL.js} +263 -262
  30. package/dist/flowDiagram-4HSFHLVR-CpbGvx3R.js +1623 -0
  31. package/dist/{ganttDiagram-APWFNJXF-C2G0-fOq.js → ganttDiagram-APWFNJXF-B9ih7Ggj.js} +45 -45
  32. package/dist/gitGraphDiagram-7IBYFJ6S-tTFS2NlF.js +712 -0
  33. package/dist/{graph-BFerxzEi.js → graph-DiSBbvS5.js} +9 -9
  34. package/dist/{index-DfpR00QG.js → index-BZo5-DOE.js} +99 -98
  35. package/dist/{index-j8M50mVa.js → index-CmU7bpCv.js} +4 -4
  36. package/dist/{index-DkuVwdVm.js → index-KrnLhU30.js} +9 -9
  37. package/dist/{index-BhtvwOag.js → index-TeAlNqJE.js} +28 -28
  38. package/dist/{infoDiagram-PH2N3AL5-AYtb1_Lz.js → infoDiagram-PH2N3AL5-COt3b362.js} +3 -3
  39. package/dist/javascript-WMWNx-Vj.js +47 -47
  40. package/dist/{journeyDiagram-U35MCT3I-Bdz9gIBI.js → journeyDiagram-U35MCT3I-Civ2cUVg.js} +18 -18
  41. package/dist/kanban-definition-NDS4AKOZ-QxhTc8lo.js +719 -0
  42. package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
  43. package/dist/{layout-Qs-BVu8V.js → layout-B0SQ1LdD.js} +27 -27
  44. package/dist/{linear-SIbCb7yI.js → linear-Bn_UtFyT.js} +2 -2
  45. package/dist/main-ClxYr2BI.js +169878 -0
  46. package/dist/main.js +1 -1
  47. package/dist/mermaid-M3c3q4Qd.js +14517 -0
  48. package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
  49. package/dist/{min-BTA1UVkn.js → min-C0Jzc_ko.js} +2 -2
  50. package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js} +359 -359
  51. package/dist/mllike-BSnXJBGA.js +7 -7
  52. package/dist/{pieDiagram-IB7DONF6-BbbxWeqU.js → pieDiagram-IB7DONF6-DIa7m5Au.js} +34 -34
  53. package/dist/pug-BqUR2bBq.js +35 -35
  54. package/dist/python-B5QdSKoL.js +18 -18
  55. package/dist/quadrantDiagram-7GDLP6J5-D1HtkiJK.js +1025 -0
  56. package/dist/{radar-MK3ICKWK-Z5R0bt0z.js → radar-MK3ICKWK-Dm3jRuoE.js} +2555 -2554
  57. package/dist/{react-plotly-DqDxe4Uh.js → react-plotly-CJ3A7ju0.js} +6595 -6597
  58. package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js} +251 -250
  59. package/dist/rpm-IznJm2Xc.js +9 -9
  60. package/dist/{sankeyDiagram-QLVOVGJD-DbUWg3a4.js → sankeyDiagram-QLVOVGJD-Bo4y0LBQ.js} +339 -338
  61. package/dist/{sequenceDiagram-X6HHIX6F-JltcBwLF.js → sequenceDiagram-X6HHIX6F-DMq4wla5.js} +822 -821
  62. package/dist/{slides-component-DVr5mf9p.js → slides-component-Cyh202Vq.js} +280 -280
  63. package/dist/sql-mMre1Bo3.js +9 -9
  64. package/dist/{stateDiagram-DGXRK772-qbXtyoS6.js → stateDiagram-DGXRK772-D_y0WAcv.js} +17 -17
  65. package/dist/{stateDiagram-v2-YXO3MK2T-Ba7q5pMK.js → stateDiagram-v2-YXO3MK2T-CHK5LNw7.js} +2 -2
  66. package/dist/style.css +1 -1
  67. package/dist/{time-DHD8Fix8.js → time-YVQKuiUR.js} +2 -2
  68. package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-DH63_P4w.js} +261 -261
  69. package/dist/timer-BYwnU4DF.js +378 -378
  70. package/dist/ttcn-cfg-Bac_acMi.js +9 -9
  71. package/dist/{vega-component-D2NZFVvw.js → vega-component-CUFBFMjm.js} +82 -82
  72. package/dist/{xychartDiagram-VJFVF3MP-BZs9xPvU.js → xychartDiagram-VJFVF3MP-3NU7tduZ.js} +472 -471
  73. package/package.json +1 -1
  74. package/dist/blockDiagram-JOT3LUYC-COVagShg.js +0 -2248
  75. package/dist/chunk-4BMEZGHF-CeMSohVe.js +0 -9
  76. package/dist/chunk-A2AXSNBT-mQ3fXQfx.js +0 -1372
  77. package/dist/chunk-AEK57VVT-B7kw2yt6.js +0 -1415
  78. package/dist/chunk-XZIHB7SX-C3-5SkZh.js +0 -15
  79. package/dist/dagre-OKDRZEBW-yEQf6TwX.js +0 -447
  80. package/dist/flowDiagram-4HSFHLVR-Dhymtq1g.js +0 -1622
  81. package/dist/gitGraphDiagram-7IBYFJ6S-DCZAwPro.js +0 -712
  82. package/dist/kanban-definition-NDS4AKOZ-ByLpDX9Y.js +0 -719
  83. package/dist/main-Cx3zrED9.js +0 -156521
  84. package/dist/mermaid-DAi_EtLa.js +0 -11991
  85. package/dist/quadrantDiagram-7GDLP6J5-1UQgbW9Z.js +0 -1024
@@ -1,1024 +0,0 @@
1
- import { _ as o, s as _e, g as Ae, t as ie, q as ke, a as Fe, b as Pe, c as wt, l as At, d as zt, e as ve, z as Ce, H as D, M as Le, i as Ee } from "./mermaid-DAi_EtLa.js";
2
- import { l as ee } from "./linear-SIbCb7yI.js";
3
- var Vt = function() {
4
- var t = /* @__PURE__ */ o(function(j, r, l, g) {
5
- for (l = l || {}, g = j.length; g--; l[j[g]] = r) ;
6
- return l;
7
- }, "o"), n = [1, 3], u = [1, 4], c = [1, 5], h = [1, 6], p = [1, 7], y = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], S = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], a = [55, 56, 57], A = [2, 36], d = [1, 37], T = [1, 36], q = [1, 38], m = [1, 35], b = [1, 43], x = [1, 41], O = [1, 14], Y = [1, 23], G = [1, 18], yt = [1, 19], Tt = [1, 20], dt = [1, 21], Ft = [1, 22], ut = [1, 24], xt = [1, 25], ft = [1, 26], gt = [1, 27], i = [1, 28], Bt = [1, 29], W = [1, 32], U = [1, 33], k = [1, 34], F = [1, 39], P = [1, 40], v = [1, 42], C = [1, 44], H = [1, 62], X = [1, 61], L = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Rt = [1, 65], Nt = [1, 66], Wt = [1, 67], Ut = [1, 68], Qt = [1, 69], Ot = [1, 70], Ht = [1, 71], Xt = [1, 72], Mt = [1, 73], Yt = [1, 74], jt = [1, 75], Gt = [1, 76], I = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], J = [1, 90], $ = [1, 91], tt = [1, 92], et = [1, 99], it = [1, 93], at = [1, 96], nt = [1, 94], st = [1, 95], rt = [1, 97], ot = [1, 98], Pt = [1, 102], Kt = [10, 55, 56, 57], R = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], vt = {
8
- trace: /* @__PURE__ */ o(function() {
9
- }, "trace"),
10
- yy: {},
11
- symbols_: { error: 2, idStringToken: 3, ALPHA: 4, NUM: 5, NODE_STRING: 6, DOWN: 7, MINUS: 8, DEFAULT: 9, COMMA: 10, COLON: 11, AMP: 12, BRKT: 13, MULT: 14, UNICODE_TEXT: 15, styleComponent: 16, UNIT: 17, SPACE: 18, STYLE: 19, PCT: 20, idString: 21, style: 22, stylesOpt: 23, classDefStatement: 24, CLASSDEF: 25, start: 26, eol: 27, QUADRANT: 28, document: 29, line: 30, statement: 31, axisDetails: 32, quadrantDetails: 33, points: 34, title: 35, title_value: 36, acc_title: 37, acc_title_value: 38, acc_descr: 39, acc_descr_value: 40, acc_descr_multiline_value: 41, section: 42, text: 43, point_start: 44, point_x: 45, point_y: 46, class_name: 47, "X-AXIS": 48, "AXIS-TEXT-DELIMITER": 49, "Y-AXIS": 50, QUADRANT_1: 51, QUADRANT_2: 52, QUADRANT_3: 53, QUADRANT_4: 54, NEWLINE: 55, SEMI: 56, EOF: 57, alphaNumToken: 58, textNoTagsToken: 59, STR: 60, MD_STR: 61, alphaNum: 62, PUNCTUATION: 63, PLUS: 64, EQUALS: 65, DOT: 66, UNDERSCORE: 67, $accept: 0, $end: 1 },
12
- terminals_: { 2: "error", 4: "ALPHA", 5: "NUM", 6: "NODE_STRING", 7: "DOWN", 8: "MINUS", 9: "DEFAULT", 10: "COMMA", 11: "COLON", 12: "AMP", 13: "BRKT", 14: "MULT", 15: "UNICODE_TEXT", 17: "UNIT", 18: "SPACE", 19: "STYLE", 20: "PCT", 25: "CLASSDEF", 28: "QUADRANT", 35: "title", 36: "title_value", 37: "acc_title", 38: "acc_title_value", 39: "acc_descr", 40: "acc_descr_value", 41: "acc_descr_multiline_value", 42: "section", 44: "point_start", 45: "point_x", 46: "point_y", 47: "class_name", 48: "X-AXIS", 49: "AXIS-TEXT-DELIMITER", 50: "Y-AXIS", 51: "QUADRANT_1", 52: "QUADRANT_2", 53: "QUADRANT_3", 54: "QUADRANT_4", 55: "NEWLINE", 56: "SEMI", 57: "EOF", 60: "STR", 61: "MD_STR", 63: "PUNCTUATION", 64: "PLUS", 65: "EQUALS", 66: "DOT", 67: "UNDERSCORE" },
13
- productions_: [0, [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [21, 1], [21, 2], [22, 1], [22, 2], [23, 1], [23, 3], [24, 5], [26, 2], [26, 2], [26, 2], [29, 0], [29, 2], [30, 2], [31, 0], [31, 1], [31, 2], [31, 1], [31, 1], [31, 1], [31, 2], [31, 2], [31, 2], [31, 1], [31, 1], [34, 4], [34, 5], [34, 5], [34, 6], [32, 4], [32, 3], [32, 2], [32, 4], [32, 3], [32, 2], [33, 2], [33, 2], [33, 2], [33, 2], [27, 1], [27, 1], [27, 1], [43, 1], [43, 2], [43, 1], [43, 1], [62, 1], [62, 2], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [59, 1], [59, 1], [59, 1]],
14
- performAction: /* @__PURE__ */ o(function(r, l, g, f, _, e, pt) {
15
- var s = e.length - 1;
16
- switch (_) {
17
- case 23:
18
- this.$ = e[s];
19
- break;
20
- case 24:
21
- this.$ = e[s - 1] + "" + e[s];
22
- break;
23
- case 26:
24
- this.$ = e[s - 1] + e[s];
25
- break;
26
- case 27:
27
- this.$ = [e[s].trim()];
28
- break;
29
- case 28:
30
- e[s - 2].push(e[s].trim()), this.$ = e[s - 2];
31
- break;
32
- case 29:
33
- this.$ = e[s - 4], f.addClass(e[s - 2], e[s]);
34
- break;
35
- case 37:
36
- this.$ = [];
37
- break;
38
- case 42:
39
- this.$ = e[s].trim(), f.setDiagramTitle(this.$);
40
- break;
41
- case 43:
42
- this.$ = e[s].trim(), f.setAccTitle(this.$);
43
- break;
44
- case 44:
45
- case 45:
46
- this.$ = e[s].trim(), f.setAccDescription(this.$);
47
- break;
48
- case 46:
49
- f.addSection(e[s].substr(8)), this.$ = e[s].substr(8);
50
- break;
51
- case 47:
52
- f.addPoint(e[s - 3], "", e[s - 1], e[s], []);
53
- break;
54
- case 48:
55
- f.addPoint(e[s - 4], e[s - 3], e[s - 1], e[s], []);
56
- break;
57
- case 49:
58
- f.addPoint(e[s - 4], "", e[s - 2], e[s - 1], e[s]);
59
- break;
60
- case 50:
61
- f.addPoint(e[s - 5], e[s - 4], e[s - 2], e[s - 1], e[s]);
62
- break;
63
- case 51:
64
- f.setXAxisLeftText(e[s - 2]), f.setXAxisRightText(e[s]);
65
- break;
66
- case 52:
67
- e[s - 1].text += " ⟶ ", f.setXAxisLeftText(e[s - 1]);
68
- break;
69
- case 53:
70
- f.setXAxisLeftText(e[s]);
71
- break;
72
- case 54:
73
- f.setYAxisBottomText(e[s - 2]), f.setYAxisTopText(e[s]);
74
- break;
75
- case 55:
76
- e[s - 1].text += " ⟶ ", f.setYAxisBottomText(e[s - 1]);
77
- break;
78
- case 56:
79
- f.setYAxisBottomText(e[s]);
80
- break;
81
- case 57:
82
- f.setQuadrant1Text(e[s]);
83
- break;
84
- case 58:
85
- f.setQuadrant2Text(e[s]);
86
- break;
87
- case 59:
88
- f.setQuadrant3Text(e[s]);
89
- break;
90
- case 60:
91
- f.setQuadrant4Text(e[s]);
92
- break;
93
- case 64:
94
- this.$ = { text: e[s], type: "text" };
95
- break;
96
- case 65:
97
- this.$ = { text: e[s - 1].text + "" + e[s], type: e[s - 1].type };
98
- break;
99
- case 66:
100
- this.$ = { text: e[s], type: "text" };
101
- break;
102
- case 67:
103
- this.$ = { text: e[s], type: "markdown" };
104
- break;
105
- case 68:
106
- this.$ = e[s];
107
- break;
108
- case 69:
109
- this.$ = e[s - 1] + "" + e[s];
110
- break;
111
- }
112
- }, "anonymous"),
113
- table: [{ 18: n, 26: 1, 27: 2, 28: u, 55: c, 56: h, 57: p }, { 1: [3] }, { 18: n, 26: 8, 27: 2, 28: u, 55: c, 56: h, 57: p }, { 18: n, 26: 9, 27: 2, 28: u, 55: c, 56: h, 57: p }, t(y, [2, 33], { 29: 10 }), t(S, [2, 61]), t(S, [2, 62]), t(S, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(a, A, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 18: O, 25: Y, 35: G, 37: yt, 39: Tt, 41: dt, 42: Ft, 48: ut, 50: xt, 51: ft, 52: gt, 53: i, 54: Bt, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(y, [2, 34]), { 27: 45, 55: c, 56: h, 57: p }, t(a, [2, 37]), t(a, A, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 18: O, 25: Y, 35: G, 37: yt, 39: Tt, 41: dt, 42: Ft, 48: ut, 50: xt, 51: ft, 52: gt, 53: i, 54: Bt, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 39]), t(a, [2, 40]), t(a, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(a, [2, 45]), t(a, [2, 46]), { 18: [1, 50] }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 51, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 52, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 53, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 54, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 55, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 43: 56, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: k, 64: F, 65: P, 66: v, 67: C }, t(L, [2, 64]), t(L, [2, 66]), t(L, [2, 67]), t(L, [2, 70]), t(L, [2, 71]), t(L, [2, 72]), t(L, [2, 73]), t(L, [2, 74]), t(L, [2, 75]), t(L, [2, 76]), t(L, [2, 77]), t(L, [2, 78]), t(L, [2, 79]), t(L, [2, 80]), t(y, [2, 35]), t(a, [2, 38]), t(a, [2, 42]), t(a, [2, 43]), t(a, [2, 44]), { 3: 64, 4: Rt, 5: Nt, 6: Wt, 7: Ut, 8: Qt, 9: Ot, 10: Ht, 11: Xt, 12: Mt, 13: Yt, 14: jt, 15: Gt, 21: 63 }, t(a, [2, 53], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 49: [1, 77], 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 56], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 49: [1, 78], 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 57], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 58], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 59], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 60], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), { 45: [1, 79] }, { 44: [1, 80] }, t(L, [2, 65]), t(L, [2, 81]), t(L, [2, 82]), t(L, [2, 83]), { 3: 82, 4: Rt, 5: Nt, 6: Wt, 7: Ut, 8: Qt, 9: Ot, 10: Ht, 11: Xt, 12: Mt, 13: Yt, 14: jt, 15: Gt, 18: [1, 81] }, t(I, [2, 23]), t(I, [2, 1]), t(I, [2, 2]), t(I, [2, 3]), t(I, [2, 4]), t(I, [2, 5]), t(I, [2, 6]), t(I, [2, 7]), t(I, [2, 8]), t(I, [2, 9]), t(I, [2, 10]), t(I, [2, 11]), t(I, [2, 12]), t(a, [2, 52], { 58: 31, 43: 83, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 55], { 58: 31, 43: 84, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 16: 89, 17: nt, 18: st, 19: rt, 20: ot, 22: 88, 23: 87 }, t(I, [2, 24]), t(a, [2, 51], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 54], { 59: 59, 58: 60, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 18: X, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 47], { 22: 88, 16: 89, 23: 100, 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), { 46: [1, 101] }, t(a, [2, 29], { 10: Pt }), t(Kt, [2, 27], { 16: 103, 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), t(R, [2, 25]), t(R, [2, 13]), t(R, [2, 14]), t(R, [2, 15]), t(R, [2, 16]), t(R, [2, 17]), t(R, [2, 18]), t(R, [2, 19]), t(R, [2, 20]), t(R, [2, 21]), t(R, [2, 22]), t(a, [2, 49], { 10: Pt }), t(a, [2, 48], { 22: 88, 16: 89, 23: 104, 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), { 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 16: 89, 17: nt, 18: st, 19: rt, 20: ot, 22: 105 }, t(R, [2, 26]), t(a, [2, 50], { 10: Pt }), t(Kt, [2, 28], { 16: 103, 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot })],
114
- defaultActions: { 8: [2, 30], 9: [2, 31] },
115
- parseError: /* @__PURE__ */ o(function(r, l) {
116
- if (l.recoverable)
117
- this.trace(r);
118
- else {
119
- var g = new Error(r);
120
- throw g.hash = l, g;
121
- }
122
- }, "parseError"),
123
- parse: /* @__PURE__ */ o(function(r) {
124
- var l = this, g = [0], f = [], _ = [null], e = [], pt = this.table, s = "", mt = 0, Zt = 0, qe = 2, Jt = 1, me = e.slice.call(arguments, 1), E = Object.create(this.lexer), K = { yy: {} };
125
- for (var Ct in this.yy)
126
- Object.prototype.hasOwnProperty.call(this.yy, Ct) && (K.yy[Ct] = this.yy[Ct]);
127
- E.setInput(r, K.yy), K.yy.lexer = E, K.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
128
- var Lt = E.yylloc;
129
- e.push(Lt);
130
- var be = E.options && E.options.ranges;
131
- typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
132
- function Se(B) {
133
- g.length = g.length - 2 * B, _.length = _.length - B, e.length = e.length - B;
134
- }
135
- o(Se, "popStack");
136
- function $t() {
137
- var B;
138
- return B = f.pop() || E.lex() || Jt, typeof B != "number" && (B instanceof Array && (f = B, B = f.pop()), B = l.symbols_[B] || B), B;
139
- }
140
- o($t, "lex");
141
- for (var w, Z, N, Et, lt = {}, bt, M, te, St; ; ) {
142
- if (Z = g[g.length - 1], this.defaultActions[Z] ? N = this.defaultActions[Z] : ((w === null || typeof w > "u") && (w = $t()), N = pt[Z] && pt[Z][w]), typeof N > "u" || !N.length || !N[0]) {
143
- var Dt = "";
144
- St = [];
145
- for (bt in pt[Z])
146
- this.terminals_[bt] && bt > qe && St.push("'" + this.terminals_[bt] + "'");
147
- E.showPosition ? Dt = "Parse error on line " + (mt + 1) + `:
148
- ` + E.showPosition() + `
149
- Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt = "Parse error on line " + (mt + 1) + ": Unexpected " + (w == Jt ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Dt, {
150
- text: E.match,
151
- token: this.terminals_[w] || w,
152
- line: E.yylineno,
153
- loc: Lt,
154
- expected: St
155
- });
156
- }
157
- if (N[0] instanceof Array && N.length > 1)
158
- throw new Error("Parse Error: multiple actions possible at state: " + Z + ", token: " + w);
159
- switch (N[0]) {
160
- case 1:
161
- g.push(w), _.push(E.yytext), e.push(E.yylloc), g.push(N[1]), w = null, Zt = E.yyleng, s = E.yytext, mt = E.yylineno, Lt = E.yylloc;
162
- break;
163
- case 2:
164
- if (M = this.productions_[N[1]][1], lt.$ = _[_.length - M], lt._$ = {
165
- first_line: e[e.length - (M || 1)].first_line,
166
- last_line: e[e.length - 1].last_line,
167
- first_column: e[e.length - (M || 1)].first_column,
168
- last_column: e[e.length - 1].last_column
169
- }, be && (lt._$.range = [
170
- e[e.length - (M || 1)].range[0],
171
- e[e.length - 1].range[1]
172
- ]), Et = this.performAction.apply(lt, [
173
- s,
174
- Zt,
175
- mt,
176
- K.yy,
177
- N[1],
178
- _,
179
- e
180
- ].concat(me)), typeof Et < "u")
181
- return Et;
182
- M && (g = g.slice(0, -1 * M * 2), _ = _.slice(0, -1 * M), e = e.slice(0, -1 * M)), g.push(this.productions_[N[1]][0]), _.push(lt.$), e.push(lt._$), te = pt[g[g.length - 2]][g[g.length - 1]], g.push(te);
183
- break;
184
- case 3:
185
- return !0;
186
- }
187
- }
188
- return !0;
189
- }, "parse")
190
- }, Te = /* @__PURE__ */ function() {
191
- var j = {
192
- EOF: 1,
193
- parseError: /* @__PURE__ */ o(function(l, g) {
194
- if (this.yy.parser)
195
- this.yy.parser.parseError(l, g);
196
- else
197
- throw new Error(l);
198
- }, "parseError"),
199
- // resets the lexer, sets new input
200
- setInput: /* @__PURE__ */ o(function(r, l) {
201
- return this.yy = l || 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 = {
202
- first_line: 1,
203
- first_column: 0,
204
- last_line: 1,
205
- last_column: 0
206
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
207
- }, "setInput"),
208
- // consumes and returns one char from the input
209
- input: /* @__PURE__ */ o(function() {
210
- var r = this._input[0];
211
- this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
212
- var l = r.match(/(?:\r\n?|\n).*/g);
213
- return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
214
- }, "input"),
215
- // unshifts one char (or a string) into the input
216
- unput: /* @__PURE__ */ o(function(r) {
217
- var l = r.length, g = r.split(/(?:\r\n?|\n)/g);
218
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
219
- var f = this.match.split(/(?:\r\n?|\n)/g);
220
- 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);
221
- var _ = this.yylloc.range;
222
- return this.yylloc = {
223
- first_line: this.yylloc.first_line,
224
- last_line: this.yylineno + 1,
225
- first_column: this.yylloc.first_column,
226
- last_column: g ? (g.length === f.length ? this.yylloc.first_column : 0) + f[f.length - g.length].length - g[0].length : this.yylloc.first_column - l
227
- }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
228
- }, "unput"),
229
- // When called from action, caches matched text and appends it on next action
230
- more: /* @__PURE__ */ o(function() {
231
- return this._more = !0, this;
232
- }, "more"),
233
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
234
- reject: /* @__PURE__ */ o(function() {
235
- if (this.options.backtrack_lexer)
236
- this._backtrack = !0;
237
- else
238
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
239
- ` + this.showPosition(), {
240
- text: "",
241
- token: null,
242
- line: this.yylineno
243
- });
244
- return this;
245
- }, "reject"),
246
- // retain first n characters of the match
247
- less: /* @__PURE__ */ o(function(r) {
248
- this.unput(this.match.slice(r));
249
- }, "less"),
250
- // displays already matched input, i.e. for error messages
251
- pastInput: /* @__PURE__ */ o(function() {
252
- var r = this.matched.substr(0, this.matched.length - this.match.length);
253
- return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
254
- }, "pastInput"),
255
- // displays upcoming input, i.e. for error messages
256
- upcomingInput: /* @__PURE__ */ o(function() {
257
- var r = this.match;
258
- return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
259
- }, "upcomingInput"),
260
- // displays the character position where the lexing error occurred, i.e. for error messages
261
- showPosition: /* @__PURE__ */ o(function() {
262
- var r = this.pastInput(), l = new Array(r.length + 1).join("-");
263
- return r + this.upcomingInput() + `
264
- ` + l + "^";
265
- }, "showPosition"),
266
- // test the lexed token: return FALSE when not a match, otherwise return token
267
- test_match: /* @__PURE__ */ o(function(r, l) {
268
- var g, f, _;
269
- if (this.options.backtrack_lexer && (_ = {
270
- yylineno: this.yylineno,
271
- yylloc: {
272
- first_line: this.yylloc.first_line,
273
- last_line: this.last_line,
274
- first_column: this.yylloc.first_column,
275
- last_column: this.yylloc.last_column
276
- },
277
- yytext: this.yytext,
278
- match: this.match,
279
- matches: this.matches,
280
- matched: this.matched,
281
- yyleng: this.yyleng,
282
- offset: this.offset,
283
- _more: this._more,
284
- _input: this._input,
285
- yy: this.yy,
286
- conditionStack: this.conditionStack.slice(0),
287
- done: this.done
288
- }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), f = r[0].match(/(?:\r\n?|\n).*/g), f && (this.yylineno += f.length), this.yylloc = {
289
- first_line: this.yylloc.last_line,
290
- last_line: this.yylineno + 1,
291
- first_column: this.yylloc.last_column,
292
- last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
293
- }, 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, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
294
- return g;
295
- if (this._backtrack) {
296
- for (var e in _)
297
- this[e] = _[e];
298
- return !1;
299
- }
300
- return !1;
301
- }, "test_match"),
302
- // return next match in input
303
- next: /* @__PURE__ */ o(function() {
304
- if (this.done)
305
- return this.EOF;
306
- this._input || (this.done = !0);
307
- var r, l, g, f;
308
- this._more || (this.yytext = "", this.match = "");
309
- for (var _ = this._currentRules(), e = 0; e < _.length; e++)
310
- if (g = this._input.match(this.rules[_[e]]), g && (!l || g[0].length > l[0].length)) {
311
- if (l = g, f = e, this.options.backtrack_lexer) {
312
- if (r = this.test_match(g, _[e]), r !== !1)
313
- return r;
314
- if (this._backtrack) {
315
- l = !1;
316
- continue;
317
- } else
318
- return !1;
319
- } else if (!this.options.flex)
320
- break;
321
- }
322
- return l ? (r = this.test_match(l, _[f]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
323
- ` + this.showPosition(), {
324
- text: "",
325
- token: null,
326
- line: this.yylineno
327
- });
328
- }, "next"),
329
- // return next match that has a token
330
- lex: /* @__PURE__ */ o(function() {
331
- var l = this.next();
332
- return l || this.lex();
333
- }, "lex"),
334
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
335
- begin: /* @__PURE__ */ o(function(l) {
336
- this.conditionStack.push(l);
337
- }, "begin"),
338
- // pop the previously active lexer condition state off the condition stack
339
- popState: /* @__PURE__ */ o(function() {
340
- var l = this.conditionStack.length - 1;
341
- return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
342
- }, "popState"),
343
- // produce the lexer rule set which is active for the currently active lexer condition state
344
- _currentRules: /* @__PURE__ */ o(function() {
345
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
346
- }, "_currentRules"),
347
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
348
- topState: /* @__PURE__ */ o(function(l) {
349
- return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
350
- }, "topState"),
351
- // alias for begin(condition)
352
- pushState: /* @__PURE__ */ o(function(l) {
353
- this.begin(l);
354
- }, "pushState"),
355
- // return the number of states currently on the stack
356
- stateStackSize: /* @__PURE__ */ o(function() {
357
- return this.conditionStack.length;
358
- }, "stateStackSize"),
359
- options: { "case-insensitive": !0 },
360
- performAction: /* @__PURE__ */ o(function(l, g, f, _) {
361
- switch (f) {
362
- case 0:
363
- break;
364
- case 1:
365
- break;
366
- case 2:
367
- return 55;
368
- case 3:
369
- break;
370
- case 4:
371
- return this.begin("title"), 35;
372
- case 5:
373
- return this.popState(), "title_value";
374
- case 6:
375
- return this.begin("acc_title"), 37;
376
- case 7:
377
- return this.popState(), "acc_title_value";
378
- case 8:
379
- return this.begin("acc_descr"), 39;
380
- case 9:
381
- return this.popState(), "acc_descr_value";
382
- case 10:
383
- this.begin("acc_descr_multiline");
384
- break;
385
- case 11:
386
- this.popState();
387
- break;
388
- case 12:
389
- return "acc_descr_multiline_value";
390
- case 13:
391
- return 48;
392
- case 14:
393
- return 50;
394
- case 15:
395
- return 49;
396
- case 16:
397
- return 51;
398
- case 17:
399
- return 52;
400
- case 18:
401
- return 53;
402
- case 19:
403
- return 54;
404
- case 20:
405
- return 25;
406
- case 21:
407
- this.begin("md_string");
408
- break;
409
- case 22:
410
- return "MD_STR";
411
- case 23:
412
- this.popState();
413
- break;
414
- case 24:
415
- this.begin("string");
416
- break;
417
- case 25:
418
- this.popState();
419
- break;
420
- case 26:
421
- return "STR";
422
- case 27:
423
- this.begin("class_name");
424
- break;
425
- case 28:
426
- return this.popState(), 47;
427
- case 29:
428
- return this.begin("point_start"), 44;
429
- case 30:
430
- return this.begin("point_x"), 45;
431
- case 31:
432
- this.popState();
433
- break;
434
- case 32:
435
- this.popState(), this.begin("point_y");
436
- break;
437
- case 33:
438
- return this.popState(), 46;
439
- case 34:
440
- return 28;
441
- case 35:
442
- return 4;
443
- case 36:
444
- return 11;
445
- case 37:
446
- return 64;
447
- case 38:
448
- return 10;
449
- case 39:
450
- return 65;
451
- case 40:
452
- return 65;
453
- case 41:
454
- return 14;
455
- case 42:
456
- return 13;
457
- case 43:
458
- return 67;
459
- case 44:
460
- return 66;
461
- case 45:
462
- return 12;
463
- case 46:
464
- return 8;
465
- case 47:
466
- return 5;
467
- case 48:
468
- return 18;
469
- case 49:
470
- return 56;
471
- case 50:
472
- return 63;
473
- case 51:
474
- return 57;
475
- }
476
- }, "anonymous"),
477
- rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:classDef\b)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?::::)/i, /^(?:^\w+)/i, /^(?:\s*:\s*\[\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?:\s*\] *)/i, /^(?:\s*,\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
478
- conditions: { class_name: { rules: [28], inclusive: !1 }, point_y: { rules: [33], inclusive: !1 }, point_x: { rules: [32], inclusive: !1 }, point_start: { rules: [30, 31], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, title: { rules: [5], inclusive: !1 }, md_string: { rules: [22, 23], inclusive: !1 }, string: { rules: [25, 26], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 27, 29, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], inclusive: !0 } }
479
- };
480
- return j;
481
- }();
482
- vt.lexer = Te;
483
- function qt() {
484
- this.yy = {};
485
- }
486
- return o(qt, "Parser"), qt.prototype = vt, vt.Parser = qt, new qt();
487
- }();
488
- Vt.parser = Vt;
489
- var De = Vt, V = Le(), ht, ze = (ht = class {
490
- constructor() {
491
- this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
492
- }
493
- getDefaultData() {
494
- return {
495
- titleText: "",
496
- quadrant1Text: "",
497
- quadrant2Text: "",
498
- quadrant3Text: "",
499
- quadrant4Text: "",
500
- xAxisLeftText: "",
501
- xAxisRightText: "",
502
- yAxisBottomText: "",
503
- yAxisTopText: "",
504
- points: []
505
- };
506
- }
507
- getDefaultConfig() {
508
- var n, u, c, h, p, y, S, a, A, d, T, q, m, b, x, O, Y, G;
509
- return {
510
- showXAxis: !0,
511
- showYAxis: !0,
512
- showTitle: !0,
513
- chartHeight: ((n = D.quadrantChart) == null ? void 0 : n.chartWidth) || 500,
514
- chartWidth: ((u = D.quadrantChart) == null ? void 0 : u.chartHeight) || 500,
515
- titlePadding: ((c = D.quadrantChart) == null ? void 0 : c.titlePadding) || 10,
516
- titleFontSize: ((h = D.quadrantChart) == null ? void 0 : h.titleFontSize) || 20,
517
- quadrantPadding: ((p = D.quadrantChart) == null ? void 0 : p.quadrantPadding) || 5,
518
- xAxisLabelPadding: ((y = D.quadrantChart) == null ? void 0 : y.xAxisLabelPadding) || 5,
519
- yAxisLabelPadding: ((S = D.quadrantChart) == null ? void 0 : S.yAxisLabelPadding) || 5,
520
- xAxisLabelFontSize: ((a = D.quadrantChart) == null ? void 0 : a.xAxisLabelFontSize) || 16,
521
- yAxisLabelFontSize: ((A = D.quadrantChart) == null ? void 0 : A.yAxisLabelFontSize) || 16,
522
- quadrantLabelFontSize: ((d = D.quadrantChart) == null ? void 0 : d.quadrantLabelFontSize) || 16,
523
- quadrantTextTopPadding: ((T = D.quadrantChart) == null ? void 0 : T.quadrantTextTopPadding) || 5,
524
- pointTextPadding: ((q = D.quadrantChart) == null ? void 0 : q.pointTextPadding) || 5,
525
- pointLabelFontSize: ((m = D.quadrantChart) == null ? void 0 : m.pointLabelFontSize) || 12,
526
- pointRadius: ((b = D.quadrantChart) == null ? void 0 : b.pointRadius) || 5,
527
- xAxisPosition: ((x = D.quadrantChart) == null ? void 0 : x.xAxisPosition) || "top",
528
- yAxisPosition: ((O = D.quadrantChart) == null ? void 0 : O.yAxisPosition) || "left",
529
- quadrantInternalBorderStrokeWidth: ((Y = D.quadrantChart) == null ? void 0 : Y.quadrantInternalBorderStrokeWidth) || 1,
530
- quadrantExternalBorderStrokeWidth: ((G = D.quadrantChart) == null ? void 0 : G.quadrantExternalBorderStrokeWidth) || 2
531
- };
532
- }
533
- getDefaultThemeConfig() {
534
- return {
535
- quadrant1Fill: V.quadrant1Fill,
536
- quadrant2Fill: V.quadrant2Fill,
537
- quadrant3Fill: V.quadrant3Fill,
538
- quadrant4Fill: V.quadrant4Fill,
539
- quadrant1TextFill: V.quadrant1TextFill,
540
- quadrant2TextFill: V.quadrant2TextFill,
541
- quadrant3TextFill: V.quadrant3TextFill,
542
- quadrant4TextFill: V.quadrant4TextFill,
543
- quadrantPointFill: V.quadrantPointFill,
544
- quadrantPointTextFill: V.quadrantPointTextFill,
545
- quadrantXAxisTextFill: V.quadrantXAxisTextFill,
546
- quadrantYAxisTextFill: V.quadrantYAxisTextFill,
547
- quadrantTitleFill: V.quadrantTitleFill,
548
- quadrantInternalBorderStrokeFill: V.quadrantInternalBorderStrokeFill,
549
- quadrantExternalBorderStrokeFill: V.quadrantExternalBorderStrokeFill
550
- };
551
- }
552
- clear() {
553
- this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), At.info("clear called");
554
- }
555
- setData(n) {
556
- this.data = { ...this.data, ...n };
557
- }
558
- addPoints(n) {
559
- this.data.points = [...n, ...this.data.points];
560
- }
561
- addClass(n, u) {
562
- this.classes.set(n, u);
563
- }
564
- setConfig(n) {
565
- At.trace("setConfig called with: ", n), this.config = { ...this.config, ...n };
566
- }
567
- setThemeConfig(n) {
568
- At.trace("setThemeConfig called with: ", n), this.themeConfig = { ...this.themeConfig, ...n };
569
- }
570
- calculateSpace(n, u, c, h) {
571
- const p = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, y = {
572
- top: n === "top" && u ? p : 0,
573
- bottom: n === "bottom" && u ? p : 0
574
- }, S = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, a = {
575
- left: this.config.yAxisPosition === "left" && c ? S : 0,
576
- right: this.config.yAxisPosition === "right" && c ? S : 0
577
- }, A = this.config.titleFontSize + this.config.titlePadding * 2, d = {
578
- top: h ? A : 0
579
- }, T = this.config.quadrantPadding + a.left, q = this.config.quadrantPadding + y.top + d.top, m = this.config.chartWidth - this.config.quadrantPadding * 2 - a.left - a.right, b = this.config.chartHeight - this.config.quadrantPadding * 2 - y.top - y.bottom - d.top, x = m / 2, O = b / 2;
580
- return {
581
- xAxisSpace: y,
582
- yAxisSpace: a,
583
- titleSpace: d,
584
- quadrantSpace: {
585
- quadrantLeft: T,
586
- quadrantTop: q,
587
- quadrantWidth: m,
588
- quadrantHalfWidth: x,
589
- quadrantHeight: b,
590
- quadrantHalfHeight: O
591
- }
592
- };
593
- }
594
- getAxisLabels(n, u, c, h) {
595
- const { quadrantSpace: p, titleSpace: y } = h, {
596
- quadrantHalfHeight: S,
597
- quadrantHeight: a,
598
- quadrantLeft: A,
599
- quadrantHalfWidth: d,
600
- quadrantTop: T,
601
- quadrantWidth: q
602
- } = p, m = !!this.data.xAxisRightText, b = !!this.data.yAxisTopText, x = [];
603
- return this.data.xAxisLeftText && u && x.push({
604
- text: this.data.xAxisLeftText,
605
- fill: this.themeConfig.quadrantXAxisTextFill,
606
- x: A + (m ? d / 2 : 0),
607
- y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
608
- fontSize: this.config.xAxisLabelFontSize,
609
- verticalPos: m ? "center" : "left",
610
- horizontalPos: "top",
611
- rotation: 0
612
- }), this.data.xAxisRightText && u && x.push({
613
- text: this.data.xAxisRightText,
614
- fill: this.themeConfig.quadrantXAxisTextFill,
615
- x: A + d + (m ? d / 2 : 0),
616
- y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
617
- fontSize: this.config.xAxisLabelFontSize,
618
- verticalPos: m ? "center" : "left",
619
- horizontalPos: "top",
620
- rotation: 0
621
- }), this.data.yAxisBottomText && c && x.push({
622
- text: this.data.yAxisBottomText,
623
- fill: this.themeConfig.quadrantYAxisTextFill,
624
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + A + q + this.config.quadrantPadding,
625
- y: T + a - (b ? S / 2 : 0),
626
- fontSize: this.config.yAxisLabelFontSize,
627
- verticalPos: b ? "center" : "left",
628
- horizontalPos: "top",
629
- rotation: -90
630
- }), this.data.yAxisTopText && c && x.push({
631
- text: this.data.yAxisTopText,
632
- fill: this.themeConfig.quadrantYAxisTextFill,
633
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + A + q + this.config.quadrantPadding,
634
- y: T + S - (b ? S / 2 : 0),
635
- fontSize: this.config.yAxisLabelFontSize,
636
- verticalPos: b ? "center" : "left",
637
- horizontalPos: "top",
638
- rotation: -90
639
- }), x;
640
- }
641
- getQuadrants(n) {
642
- const { quadrantSpace: u } = n, { quadrantHalfHeight: c, quadrantLeft: h, quadrantHalfWidth: p, quadrantTop: y } = u, S = [
643
- {
644
- text: {
645
- text: this.data.quadrant1Text,
646
- fill: this.themeConfig.quadrant1TextFill,
647
- x: 0,
648
- y: 0,
649
- fontSize: this.config.quadrantLabelFontSize,
650
- verticalPos: "center",
651
- horizontalPos: "middle",
652
- rotation: 0
653
- },
654
- x: h + p,
655
- y,
656
- width: p,
657
- height: c,
658
- fill: this.themeConfig.quadrant1Fill
659
- },
660
- {
661
- text: {
662
- text: this.data.quadrant2Text,
663
- fill: this.themeConfig.quadrant2TextFill,
664
- x: 0,
665
- y: 0,
666
- fontSize: this.config.quadrantLabelFontSize,
667
- verticalPos: "center",
668
- horizontalPos: "middle",
669
- rotation: 0
670
- },
671
- x: h,
672
- y,
673
- width: p,
674
- height: c,
675
- fill: this.themeConfig.quadrant2Fill
676
- },
677
- {
678
- text: {
679
- text: this.data.quadrant3Text,
680
- fill: this.themeConfig.quadrant3TextFill,
681
- x: 0,
682
- y: 0,
683
- fontSize: this.config.quadrantLabelFontSize,
684
- verticalPos: "center",
685
- horizontalPos: "middle",
686
- rotation: 0
687
- },
688
- x: h,
689
- y: y + c,
690
- width: p,
691
- height: c,
692
- fill: this.themeConfig.quadrant3Fill
693
- },
694
- {
695
- text: {
696
- text: this.data.quadrant4Text,
697
- fill: this.themeConfig.quadrant4TextFill,
698
- x: 0,
699
- y: 0,
700
- fontSize: this.config.quadrantLabelFontSize,
701
- verticalPos: "center",
702
- horizontalPos: "middle",
703
- rotation: 0
704
- },
705
- x: h + p,
706
- y: y + c,
707
- width: p,
708
- height: c,
709
- fill: this.themeConfig.quadrant4Fill
710
- }
711
- ];
712
- for (const a of S)
713
- a.text.x = a.x + a.width / 2, this.data.points.length === 0 ? (a.text.y = a.y + a.height / 2, a.text.horizontalPos = "middle") : (a.text.y = a.y + this.config.quadrantTextTopPadding, a.text.horizontalPos = "top");
714
- return S;
715
- }
716
- getQuadrantPoints(n) {
717
- const { quadrantSpace: u } = n, { quadrantHeight: c, quadrantLeft: h, quadrantTop: p, quadrantWidth: y } = u, S = ee().domain([0, 1]).range([h, y + h]), a = ee().domain([0, 1]).range([c + p, p]);
718
- return this.data.points.map((d) => {
719
- const T = this.classes.get(d.className);
720
- return T && (d = { ...T, ...d }), {
721
- x: S(d.x),
722
- y: a(d.y),
723
- fill: d.color ?? this.themeConfig.quadrantPointFill,
724
- radius: d.radius ?? this.config.pointRadius,
725
- text: {
726
- text: d.text,
727
- fill: this.themeConfig.quadrantPointTextFill,
728
- x: S(d.x),
729
- y: a(d.y) + this.config.pointTextPadding,
730
- verticalPos: "center",
731
- horizontalPos: "top",
732
- fontSize: this.config.pointLabelFontSize,
733
- rotation: 0
734
- },
735
- strokeColor: d.strokeColor ?? this.themeConfig.quadrantPointFill,
736
- strokeWidth: d.strokeWidth ?? "0px"
737
- };
738
- });
739
- }
740
- getBorders(n) {
741
- const u = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: c } = n, {
742
- quadrantHalfHeight: h,
743
- quadrantHeight: p,
744
- quadrantLeft: y,
745
- quadrantHalfWidth: S,
746
- quadrantTop: a,
747
- quadrantWidth: A
748
- } = c;
749
- return [
750
- // top border
751
- {
752
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
753
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
754
- x1: y - u,
755
- y1: a,
756
- x2: y + A + u,
757
- y2: a
758
- },
759
- // right border
760
- {
761
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
762
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
763
- x1: y + A,
764
- y1: a + u,
765
- x2: y + A,
766
- y2: a + p - u
767
- },
768
- // bottom border
769
- {
770
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
771
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
772
- x1: y - u,
773
- y1: a + p,
774
- x2: y + A + u,
775
- y2: a + p
776
- },
777
- // left border
778
- {
779
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
780
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
781
- x1: y,
782
- y1: a + u,
783
- x2: y,
784
- y2: a + p - u
785
- },
786
- // vertical inner border
787
- {
788
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
789
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
790
- x1: y + S,
791
- y1: a + u,
792
- x2: y + S,
793
- y2: a + p - u
794
- },
795
- // horizontal inner border
796
- {
797
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
798
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
799
- x1: y + u,
800
- y1: a + h,
801
- x2: y + A - u,
802
- y2: a + h
803
- }
804
- ];
805
- }
806
- getTitle(n) {
807
- if (n)
808
- return {
809
- text: this.data.titleText,
810
- fill: this.themeConfig.quadrantTitleFill,
811
- fontSize: this.config.titleFontSize,
812
- horizontalPos: "top",
813
- verticalPos: "center",
814
- rotation: 0,
815
- y: this.config.titlePadding,
816
- x: this.config.chartWidth / 2
817
- };
818
- }
819
- build() {
820
- const n = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), u = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), c = this.config.showTitle && !!this.data.titleText, h = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, p = this.calculateSpace(h, n, u, c);
821
- return {
822
- points: this.getQuadrantPoints(p),
823
- quadrants: this.getQuadrants(p),
824
- axisLabels: this.getAxisLabels(h, n, u, p),
825
- borderLines: this.getBorders(p),
826
- title: this.getTitle(c)
827
- };
828
- }
829
- }, o(ht, "QuadrantBuilder"), ht), ct, _t = (ct = class extends Error {
830
- constructor(n, u, c) {
831
- super(`value for ${n} ${u} is invalid, please use a valid ${c}`), this.name = "InvalidStyleError";
832
- }
833
- }, o(ct, "InvalidStyleError"), ct);
834
- function It(t) {
835
- return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
836
- }
837
- o(It, "validateHexCode");
838
- function ae(t) {
839
- return !/^\d+$/.test(t);
840
- }
841
- o(ae, "validateNumber");
842
- function ne(t) {
843
- return !/^\d+px$/.test(t);
844
- }
845
- o(ne, "validateSizeInPixels");
846
- var Ve = wt();
847
- function Q(t) {
848
- return Ee(t.trim(), Ve);
849
- }
850
- o(Q, "textSanitizer");
851
- var z = new ze();
852
- function se(t) {
853
- z.setData({ quadrant1Text: Q(t.text) });
854
- }
855
- o(se, "setQuadrant1Text");
856
- function re(t) {
857
- z.setData({ quadrant2Text: Q(t.text) });
858
- }
859
- o(re, "setQuadrant2Text");
860
- function oe(t) {
861
- z.setData({ quadrant3Text: Q(t.text) });
862
- }
863
- o(oe, "setQuadrant3Text");
864
- function le(t) {
865
- z.setData({ quadrant4Text: Q(t.text) });
866
- }
867
- o(le, "setQuadrant4Text");
868
- function he(t) {
869
- z.setData({ xAxisLeftText: Q(t.text) });
870
- }
871
- o(he, "setXAxisLeftText");
872
- function ce(t) {
873
- z.setData({ xAxisRightText: Q(t.text) });
874
- }
875
- o(ce, "setXAxisRightText");
876
- function de(t) {
877
- z.setData({ yAxisTopText: Q(t.text) });
878
- }
879
- o(de, "setYAxisTopText");
880
- function ue(t) {
881
- z.setData({ yAxisBottomText: Q(t.text) });
882
- }
883
- o(ue, "setYAxisBottomText");
884
- function kt(t) {
885
- const n = {};
886
- for (const u of t) {
887
- const [c, h] = u.trim().split(/\s*:\s*/);
888
- if (c === "radius") {
889
- if (ae(h))
890
- throw new _t(c, h, "number");
891
- n.radius = parseInt(h);
892
- } else if (c === "color") {
893
- if (It(h))
894
- throw new _t(c, h, "hex code");
895
- n.color = h;
896
- } else if (c === "stroke-color") {
897
- if (It(h))
898
- throw new _t(c, h, "hex code");
899
- n.strokeColor = h;
900
- } else if (c === "stroke-width") {
901
- if (ne(h))
902
- throw new _t(c, h, "number of pixels (eg. 10px)");
903
- n.strokeWidth = h;
904
- } else
905
- throw new Error(`style named ${c} is not supported.`);
906
- }
907
- return n;
908
- }
909
- o(kt, "parseStyles");
910
- function xe(t, n, u, c, h) {
911
- const p = kt(h);
912
- z.addPoints([
913
- {
914
- x: u,
915
- y: c,
916
- text: Q(t.text),
917
- className: n,
918
- ...p
919
- }
920
- ]);
921
- }
922
- o(xe, "addPoint");
923
- function fe(t, n) {
924
- z.addClass(t, kt(n));
925
- }
926
- o(fe, "addClass");
927
- function ge(t) {
928
- z.setConfig({ chartWidth: t });
929
- }
930
- o(ge, "setWidth");
931
- function pe(t) {
932
- z.setConfig({ chartHeight: t });
933
- }
934
- o(pe, "setHeight");
935
- function ye() {
936
- const t = wt(), { themeVariables: n, quadrantChart: u } = t;
937
- return u && z.setConfig(u), z.setThemeConfig({
938
- quadrant1Fill: n.quadrant1Fill,
939
- quadrant2Fill: n.quadrant2Fill,
940
- quadrant3Fill: n.quadrant3Fill,
941
- quadrant4Fill: n.quadrant4Fill,
942
- quadrant1TextFill: n.quadrant1TextFill,
943
- quadrant2TextFill: n.quadrant2TextFill,
944
- quadrant3TextFill: n.quadrant3TextFill,
945
- quadrant4TextFill: n.quadrant4TextFill,
946
- quadrantPointFill: n.quadrantPointFill,
947
- quadrantPointTextFill: n.quadrantPointTextFill,
948
- quadrantXAxisTextFill: n.quadrantXAxisTextFill,
949
- quadrantYAxisTextFill: n.quadrantYAxisTextFill,
950
- quadrantExternalBorderStrokeFill: n.quadrantExternalBorderStrokeFill,
951
- quadrantInternalBorderStrokeFill: n.quadrantInternalBorderStrokeFill,
952
- quadrantTitleFill: n.quadrantTitleFill
953
- }), z.setData({ titleText: ie() }), z.build();
954
- }
955
- o(ye, "getQuadrantData");
956
- var Ie = /* @__PURE__ */ o(function() {
957
- z.clear(), Ce();
958
- }, "clear"), we = {
959
- setWidth: ge,
960
- setHeight: pe,
961
- setQuadrant1Text: se,
962
- setQuadrant2Text: re,
963
- setQuadrant3Text: oe,
964
- setQuadrant4Text: le,
965
- setXAxisLeftText: he,
966
- setXAxisRightText: ce,
967
- setYAxisTopText: de,
968
- setYAxisBottomText: ue,
969
- parseStyles: kt,
970
- addPoint: xe,
971
- addClass: fe,
972
- getQuadrantData: ye,
973
- clear: Ie,
974
- setAccTitle: Pe,
975
- getAccTitle: Fe,
976
- setDiagramTitle: ke,
977
- getDiagramTitle: ie,
978
- getAccDescription: Ae,
979
- setAccDescription: _e
980
- }, Be = /* @__PURE__ */ o((t, n, u, c) => {
981
- var xt, ft, gt;
982
- function h(i) {
983
- return i === "top" ? "hanging" : "middle";
984
- }
985
- o(h, "getDominantBaseLine");
986
- function p(i) {
987
- return i === "left" ? "start" : "middle";
988
- }
989
- o(p, "getTextAnchor");
990
- function y(i) {
991
- return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
992
- }
993
- o(y, "getTransformation");
994
- const S = wt();
995
- At.debug(`Rendering quadrant chart
996
- ` + t);
997
- const a = S.securityLevel;
998
- let A;
999
- a === "sandbox" && (A = zt("#i" + n));
1000
- const T = (a === "sandbox" ? zt(A.nodes()[0].contentDocument.body) : zt("body")).select(`[id="${n}"]`), q = T.append("g").attr("class", "main"), m = ((xt = S.quadrantChart) == null ? void 0 : xt.chartWidth) ?? 500, b = ((ft = S.quadrantChart) == null ? void 0 : ft.chartHeight) ?? 500;
1001
- ve(T, b, m, ((gt = S.quadrantChart) == null ? void 0 : gt.useMaxWidth) ?? !0), T.attr("viewBox", "0 0 " + m + " " + b), c.db.setHeight(b), c.db.setWidth(m);
1002
- const x = c.db.getQuadrantData(), O = q.append("g").attr("class", "quadrants"), Y = q.append("g").attr("class", "border"), G = q.append("g").attr("class", "data-points"), yt = q.append("g").attr("class", "labels"), Tt = q.append("g").attr("class", "title");
1003
- x.title && Tt.append("text").attr("x", 0).attr("y", 0).attr("fill", x.title.fill).attr("font-size", x.title.fontSize).attr("dominant-baseline", h(x.title.horizontalPos)).attr("text-anchor", p(x.title.verticalPos)).attr("transform", y(x.title)).text(x.title.text), x.borderLines && Y.selectAll("line").data(x.borderLines).enter().append("line").attr("x1", (i) => i.x1).attr("y1", (i) => i.y1).attr("x2", (i) => i.x2).attr("y2", (i) => i.y2).style("stroke", (i) => i.strokeFill).style("stroke-width", (i) => i.strokeWidth);
1004
- const dt = O.selectAll("g.quadrant").data(x.quadrants).enter().append("g").attr("class", "quadrant");
1005
- dt.append("rect").attr("x", (i) => i.x).attr("y", (i) => i.y).attr("width", (i) => i.width).attr("height", (i) => i.height).attr("fill", (i) => i.fill), dt.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1006
- "dominant-baseline",
1007
- (i) => h(i.text.horizontalPos)
1008
- ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text)).text((i) => i.text.text), yt.selectAll("g.label").data(x.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((i) => i.text).attr("fill", (i) => i.fill).attr("font-size", (i) => i.fontSize).attr("dominant-baseline", (i) => h(i.horizontalPos)).attr("text-anchor", (i) => p(i.verticalPos)).attr("transform", (i) => y(i));
1009
- const ut = G.selectAll("g.data-point").data(x.points).enter().append("g").attr("class", "data-point");
1010
- ut.append("circle").attr("cx", (i) => i.x).attr("cy", (i) => i.y).attr("r", (i) => i.radius).attr("fill", (i) => i.fill).attr("stroke", (i) => i.strokeColor).attr("stroke-width", (i) => i.strokeWidth), ut.append("text").attr("x", 0).attr("y", 0).text((i) => i.text.text).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1011
- "dominant-baseline",
1012
- (i) => h(i.text.horizontalPos)
1013
- ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text));
1014
- }, "draw"), Re = {
1015
- draw: Be
1016
- }, Ue = {
1017
- parser: De,
1018
- db: we,
1019
- renderer: Re,
1020
- styles: /* @__PURE__ */ o(() => "", "styles")
1021
- };
1022
- export {
1023
- Ue as diagram
1024
- };