@kong-ui-public/documentation 0.3.42 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/Tableau10-GLA_9iAD-BMurskAd.js +9 -0
  2. package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
  3. package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
  4. package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
  5. package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
  6. package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
  7. package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
  8. package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
  9. package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
  10. package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
  11. package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
  12. package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
  13. package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
  14. package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
  15. package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
  16. package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
  17. package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
  18. package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
  19. package/dist/docker-B10O2enb-B10O2enb.js +7 -0
  20. package/dist/documentation.es.js +5 -3130
  21. package/dist/documentation.umd.js +10152 -50
  22. package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
  23. package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
  24. package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
  25. package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
  26. package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
  27. package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
  28. package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
  29. package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
  30. package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
  31. package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
  32. package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
  33. package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
  34. package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
  35. package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
  36. package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
  37. package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
  38. package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
  39. package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
  40. package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
  41. package/dist/index-B-5DuDrq.js +29996 -0
  42. package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
  43. package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
  44. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  45. package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
  46. package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
  47. package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
  48. package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
  49. package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
  50. package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
  51. package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
  52. package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
  53. package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
  54. package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
  55. package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
  56. package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
  57. package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
  58. package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
  59. package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
  60. package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
  61. package/dist/make-whncTQWE-whncTQWE.js +7 -0
  62. package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
  63. package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
  64. package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
  65. package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
  66. package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
  67. package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
  68. package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
  69. package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
  70. package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
  71. package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
  72. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  73. package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
  74. package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
  75. package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
  76. package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
  77. package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
  78. package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
  79. package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
  80. package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
  81. package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
  82. package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
  83. package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
  84. package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
  85. package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
  86. package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
  87. package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
  88. package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
  89. package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
  90. package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
  91. package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
  92. package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
  93. package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
  94. package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
  95. package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
  96. package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
  97. package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
  98. package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
  99. package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
  100. package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
  101. package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
  102. package/dist/style.css +1 -1
  103. package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
  104. package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
  105. package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
  106. package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
  107. package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
  108. package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
  109. package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
  110. package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
  111. package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
  112. package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
  113. package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
  114. package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
  115. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
  116. package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
  117. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
  118. package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
  119. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
  120. package/dist/types/composables/useI18n.d.ts +4 -0
  121. package/dist/types/composables/useI18n.d.ts.map +1 -1
  122. package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
  123. package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
  124. package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
  125. package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
  126. package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
  127. package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
  128. package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
  129. package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
  130. package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
  131. package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
  132. package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
  133. package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
  134. package/package.json +13 -13
  135. package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
  136. package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
  137. package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
  138. package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
  139. package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
  140. package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
  141. package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
  142. package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
  143. package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
  144. package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
  145. package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
  146. package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
  147. package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
  148. package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
  149. package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
  150. package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
  151. package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
  152. package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
  153. package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
  154. package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
  155. package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
@@ -0,0 +1,903 @@
1
+ import { a$ as Pt, c as yt, aL as D, l as lt, s as vt, g as Ct, v as Lt, x as At, a as zt, b as Dt, z as Et, h as gt, i as It, d as Bt } from "./index-B-5DuDrq.js";
2
+ import { Z as mt } from "./linear-Bz4oRFvQ-C869GXbm.js";
3
+ var ft = function() {
4
+ var i = function(O, a, s, l) {
5
+ for (s = s || {}, l = O.length; l--; s[O[l]] = a)
6
+ ;
7
+ return s;
8
+ }, r = [1, 3], o = [1, 4], u = [1, 5], g = [1, 6], c = [1, 7], h = [1, 5, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], f = [1, 5, 6, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], e = [32, 33, 34], x = [2, 7], v = [1, 13], R = [1, 17], Q = [1, 18], E = [1, 19], q = [1, 20], I = [1, 21], $ = [1, 22], C = [1, 23], K = [1, 24], it = [1, 25], et = [1, 26], at = [1, 27], M = [1, 30], X = [1, 31], p = [1, 32], t = [1, 33], T = [1, 34], m = [1, 35], A = [1, 36], _ = [1, 37], b = [1, 38], S = [1, 39], k = [1, 40], F = [1, 41], P = [1, 42], Y = [1, 57], H = [1, 58], L = [5, 22, 26, 32, 33, 34, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], ot = {
9
+ trace: function() {
10
+ },
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, eol: 4, SPACE: 5, QUADRANT: 6, document: 7, line: 8, statement: 9, axisDetails: 10, quadrantDetails: 11, points: 12, title: 13, title_value: 14, acc_title: 15, acc_title_value: 16, acc_descr: 17, acc_descr_value: 18, acc_descr_multiline_value: 19, section: 20, text: 21, point_start: 22, point_x: 23, point_y: 24, "X-AXIS": 25, "AXIS-TEXT-DELIMITER": 26, "Y-AXIS": 27, QUADRANT_1: 28, QUADRANT_2: 29, QUADRANT_3: 30, QUADRANT_4: 31, NEWLINE: 32, SEMI: 33, EOF: 34, alphaNumToken: 35, textNoTagsToken: 36, STR: 37, MD_STR: 38, alphaNum: 39, PUNCTUATION: 40, AMP: 41, NUM: 42, ALPHA: 43, COMMA: 44, PLUS: 45, EQUALS: 46, MULT: 47, DOT: 48, BRKT: 49, UNDERSCORE: 50, MINUS: 51, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 5: "SPACE", 6: "QUADRANT", 13: "title", 14: "title_value", 15: "acc_title", 16: "acc_title_value", 17: "acc_descr", 18: "acc_descr_value", 19: "acc_descr_multiline_value", 20: "section", 22: "point_start", 23: "point_x", 24: "point_y", 25: "X-AXIS", 26: "AXIS-TEXT-DELIMITER", 27: "Y-AXIS", 28: "QUADRANT_1", 29: "QUADRANT_2", 30: "QUADRANT_3", 31: "QUADRANT_4", 32: "NEWLINE", 33: "SEMI", 34: "EOF", 37: "STR", 38: "MD_STR", 40: "PUNCTUATION", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "COMMA", 45: "PLUS", 46: "EQUALS", 47: "MULT", 48: "DOT", 49: "BRKT", 50: "UNDERSCORE", 51: "MINUS" },
14
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [9, 0], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [12, 4], [10, 4], [10, 3], [10, 2], [10, 4], [10, 3], [10, 2], [11, 2], [11, 2], [11, 2], [11, 2], [4, 1], [4, 1], [4, 1], [21, 1], [21, 2], [21, 1], [21, 1], [39, 1], [39, 2], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [36, 1], [36, 1], [36, 1]],
15
+ performAction: function(O, a, s, l, y, n, N) {
16
+ var d = n.length - 1;
17
+ switch (y) {
18
+ case 12:
19
+ this.$ = n[d].trim(), l.setDiagramTitle(this.$);
20
+ break;
21
+ case 13:
22
+ this.$ = n[d].trim(), l.setAccTitle(this.$);
23
+ break;
24
+ case 14:
25
+ case 15:
26
+ this.$ = n[d].trim(), l.setAccDescription(this.$);
27
+ break;
28
+ case 16:
29
+ l.addSection(n[d].substr(8)), this.$ = n[d].substr(8);
30
+ break;
31
+ case 17:
32
+ l.addPoint(n[d - 3], n[d - 1], n[d]);
33
+ break;
34
+ case 18:
35
+ l.setXAxisLeftText(n[d - 2]), l.setXAxisRightText(n[d]);
36
+ break;
37
+ case 19:
38
+ n[d - 1].text += " ⟶ ", l.setXAxisLeftText(n[d - 1]);
39
+ break;
40
+ case 20:
41
+ l.setXAxisLeftText(n[d]);
42
+ break;
43
+ case 21:
44
+ l.setYAxisBottomText(n[d - 2]), l.setYAxisTopText(n[d]);
45
+ break;
46
+ case 22:
47
+ n[d - 1].text += " ⟶ ", l.setYAxisBottomText(n[d - 1]);
48
+ break;
49
+ case 23:
50
+ l.setYAxisBottomText(n[d]);
51
+ break;
52
+ case 24:
53
+ l.setQuadrant1Text(n[d]);
54
+ break;
55
+ case 25:
56
+ l.setQuadrant2Text(n[d]);
57
+ break;
58
+ case 26:
59
+ l.setQuadrant3Text(n[d]);
60
+ break;
61
+ case 27:
62
+ l.setQuadrant4Text(n[d]);
63
+ break;
64
+ case 31:
65
+ this.$ = { text: n[d], type: "text" };
66
+ break;
67
+ case 32:
68
+ this.$ = { text: n[d - 1].text + "" + n[d], type: n[d - 1].type };
69
+ break;
70
+ case 33:
71
+ this.$ = { text: n[d], type: "text" };
72
+ break;
73
+ case 34:
74
+ this.$ = { text: n[d], type: "markdown" };
75
+ break;
76
+ case 35:
77
+ this.$ = n[d];
78
+ break;
79
+ case 36:
80
+ this.$ = n[d - 1] + "" + n[d];
81
+ break;
82
+ }
83
+ },
84
+ table: [{ 3: 1, 4: 2, 5: r, 6: o, 32: u, 33: g, 34: c }, { 1: [3] }, { 3: 8, 4: 2, 5: r, 6: o, 32: u, 33: g, 34: c }, { 3: 9, 4: 2, 5: r, 6: o, 32: u, 33: g, 34: c }, i(h, [2, 4], { 7: 10 }), i(f, [2, 28]), i(f, [2, 29]), i(f, [2, 30]), { 1: [2, 1] }, { 1: [2, 2] }, i(e, x, { 8: 11, 9: 12, 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 1: [2, 3], 5: v, 13: R, 15: Q, 17: E, 19: q, 20: I, 25: $, 27: C, 28: K, 29: it, 30: et, 31: at, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }), i(h, [2, 5]), { 4: 43, 32: u, 33: g, 34: c }, i(e, x, { 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 9: 44, 5: v, 13: R, 15: Q, 17: E, 19: q, 20: I, 25: $, 27: C, 28: K, 29: it, 30: et, 31: at, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }), i(e, [2, 9]), i(e, [2, 10]), i(e, [2, 11]), { 14: [1, 45] }, { 16: [1, 46] }, { 18: [1, 47] }, i(e, [2, 15]), i(e, [2, 16]), { 21: 48, 35: 29, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }, { 21: 49, 35: 29, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }, { 21: 50, 35: 29, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }, { 21: 51, 35: 29, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }, { 21: 52, 35: 29, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }, { 21: 53, 35: 29, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }, { 5: Y, 22: [1, 54], 35: 56, 36: 55, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }, i(L, [2, 31]), i(L, [2, 33]), i(L, [2, 34]), i(L, [2, 37]), i(L, [2, 38]), i(L, [2, 39]), i(L, [2, 40]), i(L, [2, 41]), i(L, [2, 42]), i(L, [2, 43]), i(L, [2, 44]), i(L, [2, 45]), i(L, [2, 46]), i(L, [2, 47]), i(h, [2, 6]), i(e, [2, 8]), i(e, [2, 12]), i(e, [2, 13]), i(e, [2, 14]), i(e, [2, 20], { 36: 55, 35: 56, 5: Y, 26: [1, 59], 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }), i(e, [2, 23], { 36: 55, 35: 56, 5: Y, 26: [1, 60], 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }), i(e, [2, 24], { 36: 55, 35: 56, 5: Y, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }), i(e, [2, 25], { 36: 55, 35: 56, 5: Y, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }), i(e, [2, 26], { 36: 55, 35: 56, 5: Y, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }), i(e, [2, 27], { 36: 55, 35: 56, 5: Y, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }), { 23: [1, 61] }, i(L, [2, 32]), i(L, [2, 48]), i(L, [2, 49]), i(L, [2, 50]), i(e, [2, 19], { 35: 29, 21: 62, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }), i(e, [2, 22], { 35: 29, 21: 63, 37: M, 38: X, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P }), { 24: [1, 64] }, i(e, [2, 18], { 36: 55, 35: 56, 5: Y, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }), i(e, [2, 21], { 36: 55, 35: 56, 5: Y, 40: p, 41: t, 42: T, 43: m, 44: A, 45: _, 46: b, 47: S, 48: k, 49: F, 50: P, 51: H }), i(e, [2, 17])],
85
+ defaultActions: { 8: [2, 1], 9: [2, 2] },
86
+ parseError: function(O, a) {
87
+ if (a.recoverable)
88
+ this.trace(O);
89
+ else {
90
+ var s = new Error(O);
91
+ throw s.hash = a, s;
92
+ }
93
+ },
94
+ parse: function(O) {
95
+ var a = this, s = [0], l = [], y = [null], n = [], N = this.table, d = "", nt = 0, pt = 0, bt = 2, qt = 1, St = n.slice.call(arguments, 1), z = Object.create(this.lexer), G = { yy: {} };
96
+ for (var ct in this.yy)
97
+ Object.prototype.hasOwnProperty.call(this.yy, ct) && (G.yy[ct] = this.yy[ct]);
98
+ z.setInput(O, G.yy), G.yy.lexer = z, G.yy.parser = this, typeof z.yylloc > "u" && (z.yylloc = {});
99
+ var dt = z.yylloc;
100
+ n.push(dt);
101
+ var kt = z.options && z.options.ranges;
102
+ typeof G.yy.parseError == "function" ? this.parseError = G.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
103
+ function Ft() {
104
+ var V;
105
+ return V = l.pop() || z.lex() || qt, typeof V != "number" && (V instanceof Array && (l = V, V = l.pop()), V = a.symbols_[V] || V), V;
106
+ }
107
+ for (var U, J, W, ut, tt = {}, rt, j, Tt, st; ; ) {
108
+ if (J = s[s.length - 1], this.defaultActions[J] ? W = this.defaultActions[J] : ((U === null || typeof U > "u") && (U = Ft()), W = N[J] && N[J][U]), typeof W > "u" || !W.length || !W[0]) {
109
+ var xt = "";
110
+ st = [];
111
+ for (rt in N[J])
112
+ this.terminals_[rt] && rt > bt && st.push("'" + this.terminals_[rt] + "'");
113
+ z.showPosition ? xt = "Parse error on line " + (nt + 1) + `:
114
+ ` + z.showPosition() + `
115
+ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : xt = "Parse error on line " + (nt + 1) + ": Unexpected " + (U == qt ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError(xt, {
116
+ text: z.match,
117
+ token: this.terminals_[U] || U,
118
+ line: z.yylineno,
119
+ loc: dt,
120
+ expected: st
121
+ });
122
+ }
123
+ if (W[0] instanceof Array && W.length > 1)
124
+ throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + U);
125
+ switch (W[0]) {
126
+ case 1:
127
+ s.push(U), y.push(z.yytext), n.push(z.yylloc), s.push(W[1]), U = null, pt = z.yyleng, d = z.yytext, nt = z.yylineno, dt = z.yylloc;
128
+ break;
129
+ case 2:
130
+ if (j = this.productions_[W[1]][1], tt.$ = y[y.length - j], tt._$ = {
131
+ first_line: n[n.length - (j || 1)].first_line,
132
+ last_line: n[n.length - 1].last_line,
133
+ first_column: n[n.length - (j || 1)].first_column,
134
+ last_column: n[n.length - 1].last_column
135
+ }, kt && (tt._$.range = [
136
+ n[n.length - (j || 1)].range[0],
137
+ n[n.length - 1].range[1]
138
+ ]), ut = this.performAction.apply(tt, [
139
+ d,
140
+ pt,
141
+ nt,
142
+ G.yy,
143
+ W[1],
144
+ y,
145
+ n
146
+ ].concat(St)), typeof ut < "u")
147
+ return ut;
148
+ j && (s = s.slice(0, -1 * j * 2), y = y.slice(0, -1 * j), n = n.slice(0, -1 * j)), s.push(this.productions_[W[1]][0]), y.push(tt.$), n.push(tt._$), Tt = N[s[s.length - 2]][s[s.length - 1]], s.push(Tt);
149
+ break;
150
+ case 3:
151
+ return !0;
152
+ }
153
+ }
154
+ return !0;
155
+ }
156
+ }, _t = /* @__PURE__ */ function() {
157
+ var O = {
158
+ EOF: 1,
159
+ parseError: function(a, s) {
160
+ if (this.yy.parser)
161
+ this.yy.parser.parseError(a, s);
162
+ else
163
+ throw new Error(a);
164
+ },
165
+ // resets the lexer, sets new input
166
+ setInput: function(a, s) {
167
+ return this.yy = s || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
168
+ first_line: 1,
169
+ first_column: 0,
170
+ last_line: 1,
171
+ last_column: 0
172
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
173
+ },
174
+ // consumes and returns one char from the input
175
+ input: function() {
176
+ var a = this._input[0];
177
+ this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a;
178
+ var s = a.match(/(?:\r\n?|\n).*/g);
179
+ return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
180
+ },
181
+ // unshifts one char (or a string) into the input
182
+ unput: function(a) {
183
+ var s = a.length, l = a.split(/(?:\r\n?|\n)/g);
184
+ this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
185
+ var y = this.match.split(/(?:\r\n?|\n)/g);
186
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
187
+ var n = this.yylloc.range;
188
+ return this.yylloc = {
189
+ first_line: this.yylloc.first_line,
190
+ last_line: this.yylineno + 1,
191
+ first_column: this.yylloc.first_column,
192
+ last_column: l ? (l.length === y.length ? this.yylloc.first_column : 0) + y[y.length - l.length].length - l[0].length : this.yylloc.first_column - s
193
+ }, this.options.ranges && (this.yylloc.range = [n[0], n[0] + this.yyleng - s]), this.yyleng = this.yytext.length, this;
194
+ },
195
+ // When called from action, caches matched text and appends it on next action
196
+ more: function() {
197
+ return this._more = !0, this;
198
+ },
199
+ // 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.
200
+ reject: function() {
201
+ if (this.options.backtrack_lexer)
202
+ this._backtrack = !0;
203
+ else
204
+ 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).
205
+ ` + this.showPosition(), {
206
+ text: "",
207
+ token: null,
208
+ line: this.yylineno
209
+ });
210
+ return this;
211
+ },
212
+ // retain first n characters of the match
213
+ less: function(a) {
214
+ this.unput(this.match.slice(a));
215
+ },
216
+ // displays already matched input, i.e. for error messages
217
+ pastInput: function() {
218
+ var a = this.matched.substr(0, this.matched.length - this.match.length);
219
+ return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
220
+ },
221
+ // displays upcoming input, i.e. for error messages
222
+ upcomingInput: function() {
223
+ var a = this.match;
224
+ return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
225
+ },
226
+ // displays the character position where the lexing error occurred, i.e. for error messages
227
+ showPosition: function() {
228
+ var a = this.pastInput(), s = new Array(a.length + 1).join("-");
229
+ return a + this.upcomingInput() + `
230
+ ` + s + "^";
231
+ },
232
+ // test the lexed token: return FALSE when not a match, otherwise return token
233
+ test_match: function(a, s) {
234
+ var l, y, n;
235
+ if (this.options.backtrack_lexer && (n = {
236
+ yylineno: this.yylineno,
237
+ yylloc: {
238
+ first_line: this.yylloc.first_line,
239
+ last_line: this.last_line,
240
+ first_column: this.yylloc.first_column,
241
+ last_column: this.yylloc.last_column
242
+ },
243
+ yytext: this.yytext,
244
+ match: this.match,
245
+ matches: this.matches,
246
+ matched: this.matched,
247
+ yyleng: this.yyleng,
248
+ offset: this.offset,
249
+ _more: this._more,
250
+ _input: this._input,
251
+ yy: this.yy,
252
+ conditionStack: this.conditionStack.slice(0),
253
+ done: this.done
254
+ }, this.options.ranges && (n.yylloc.range = this.yylloc.range.slice(0))), y = a[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
255
+ first_line: this.yylloc.last_line,
256
+ last_line: this.yylineno + 1,
257
+ first_column: this.yylloc.last_column,
258
+ last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
259
+ }, this.yytext += a[0], this.match += a[0], this.matches = a, 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(a[0].length), this.matched += a[0], l = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
260
+ return l;
261
+ if (this._backtrack) {
262
+ for (var N in n)
263
+ this[N] = n[N];
264
+ return !1;
265
+ }
266
+ return !1;
267
+ },
268
+ // return next match in input
269
+ next: function() {
270
+ if (this.done)
271
+ return this.EOF;
272
+ this._input || (this.done = !0);
273
+ var a, s, l, y;
274
+ this._more || (this.yytext = "", this.match = "");
275
+ for (var n = this._currentRules(), N = 0; N < n.length; N++)
276
+ if (l = this._input.match(this.rules[n[N]]), l && (!s || l[0].length > s[0].length)) {
277
+ if (s = l, y = N, this.options.backtrack_lexer) {
278
+ if (a = this.test_match(l, n[N]), a !== !1)
279
+ return a;
280
+ if (this._backtrack) {
281
+ s = !1;
282
+ continue;
283
+ } else
284
+ return !1;
285
+ } else if (!this.options.flex)
286
+ break;
287
+ }
288
+ return s ? (a = this.test_match(s, n[y]), a !== !1 ? a : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
289
+ ` + this.showPosition(), {
290
+ text: "",
291
+ token: null,
292
+ line: this.yylineno
293
+ });
294
+ },
295
+ // return next match that has a token
296
+ lex: function() {
297
+ var a = this.next();
298
+ return a || this.lex();
299
+ },
300
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
301
+ begin: function(a) {
302
+ this.conditionStack.push(a);
303
+ },
304
+ // pop the previously active lexer condition state off the condition stack
305
+ popState: function() {
306
+ var a = this.conditionStack.length - 1;
307
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
308
+ },
309
+ // produce the lexer rule set which is active for the currently active lexer condition state
310
+ _currentRules: function() {
311
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
312
+ },
313
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
314
+ topState: function(a) {
315
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
316
+ },
317
+ // alias for begin(condition)
318
+ pushState: function(a) {
319
+ this.begin(a);
320
+ },
321
+ // return the number of states currently on the stack
322
+ stateStackSize: function() {
323
+ return this.conditionStack.length;
324
+ },
325
+ options: { "case-insensitive": !0 },
326
+ performAction: function(a, s, l, y) {
327
+ switch (l) {
328
+ case 0:
329
+ break;
330
+ case 1:
331
+ break;
332
+ case 2:
333
+ return 32;
334
+ case 3:
335
+ break;
336
+ case 4:
337
+ return this.begin("title"), 13;
338
+ case 5:
339
+ return this.popState(), "title_value";
340
+ case 6:
341
+ return this.begin("acc_title"), 15;
342
+ case 7:
343
+ return this.popState(), "acc_title_value";
344
+ case 8:
345
+ return this.begin("acc_descr"), 17;
346
+ case 9:
347
+ return this.popState(), "acc_descr_value";
348
+ case 10:
349
+ this.begin("acc_descr_multiline");
350
+ break;
351
+ case 11:
352
+ this.popState();
353
+ break;
354
+ case 12:
355
+ return "acc_descr_multiline_value";
356
+ case 13:
357
+ return 25;
358
+ case 14:
359
+ return 27;
360
+ case 15:
361
+ return 26;
362
+ case 16:
363
+ return 28;
364
+ case 17:
365
+ return 29;
366
+ case 18:
367
+ return 30;
368
+ case 19:
369
+ return 31;
370
+ case 20:
371
+ this.begin("md_string");
372
+ break;
373
+ case 21:
374
+ return "MD_STR";
375
+ case 22:
376
+ this.popState();
377
+ break;
378
+ case 23:
379
+ this.begin("string");
380
+ break;
381
+ case 24:
382
+ this.popState();
383
+ break;
384
+ case 25:
385
+ return "STR";
386
+ case 26:
387
+ return this.begin("point_start"), 22;
388
+ case 27:
389
+ return this.begin("point_x"), 23;
390
+ case 28:
391
+ this.popState();
392
+ break;
393
+ case 29:
394
+ this.popState(), this.begin("point_y");
395
+ break;
396
+ case 30:
397
+ return this.popState(), 24;
398
+ case 31:
399
+ return 6;
400
+ case 32:
401
+ return 43;
402
+ case 33:
403
+ return "COLON";
404
+ case 34:
405
+ return 45;
406
+ case 35:
407
+ return 44;
408
+ case 36:
409
+ return 46;
410
+ case 37:
411
+ return 46;
412
+ case 38:
413
+ return 47;
414
+ case 39:
415
+ return 49;
416
+ case 40:
417
+ return 50;
418
+ case 41:
419
+ return 48;
420
+ case 42:
421
+ return 41;
422
+ case 43:
423
+ return 51;
424
+ case 44:
425
+ return 42;
426
+ case 45:
427
+ return 5;
428
+ case 46:
429
+ return 33;
430
+ case 47:
431
+ return 40;
432
+ case 48:
433
+ return 34;
434
+ }
435
+ },
436
+ 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, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/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],
437
+ conditions: { point_y: { rules: [30], inclusive: !1 }, point_x: { rules: [29], inclusive: !1 }, point_start: { rules: [27, 28], 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: [21, 22], inclusive: !1 }, string: { rules: [24, 25], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 23, 26, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], inclusive: !0 } }
438
+ };
439
+ return O;
440
+ }();
441
+ ot.lexer = _t;
442
+ function ht() {
443
+ this.yy = {};
444
+ }
445
+ return ht.prototype = ot, ot.Parser = ht, new ht();
446
+ }();
447
+ ft.parser = ft;
448
+ const Rt = ft, w = Pt();
449
+ class wt {
450
+ constructor() {
451
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
452
+ }
453
+ getDefaultData() {
454
+ return {
455
+ titleText: "",
456
+ quadrant1Text: "",
457
+ quadrant2Text: "",
458
+ quadrant3Text: "",
459
+ quadrant4Text: "",
460
+ xAxisLeftText: "",
461
+ xAxisRightText: "",
462
+ yAxisBottomText: "",
463
+ yAxisTopText: "",
464
+ points: []
465
+ };
466
+ }
467
+ getDefaultConfig() {
468
+ var r, o, u, g, c, h, f, e, x, v, R, Q, E, q, I, $, C, K;
469
+ return {
470
+ showXAxis: !0,
471
+ showYAxis: !0,
472
+ showTitle: !0,
473
+ chartHeight: ((r = D.quadrantChart) == null ? void 0 : r.chartWidth) || 500,
474
+ chartWidth: ((o = D.quadrantChart) == null ? void 0 : o.chartHeight) || 500,
475
+ titlePadding: ((u = D.quadrantChart) == null ? void 0 : u.titlePadding) || 10,
476
+ titleFontSize: ((g = D.quadrantChart) == null ? void 0 : g.titleFontSize) || 20,
477
+ quadrantPadding: ((c = D.quadrantChart) == null ? void 0 : c.quadrantPadding) || 5,
478
+ xAxisLabelPadding: ((h = D.quadrantChart) == null ? void 0 : h.xAxisLabelPadding) || 5,
479
+ yAxisLabelPadding: ((f = D.quadrantChart) == null ? void 0 : f.yAxisLabelPadding) || 5,
480
+ xAxisLabelFontSize: ((e = D.quadrantChart) == null ? void 0 : e.xAxisLabelFontSize) || 16,
481
+ yAxisLabelFontSize: ((x = D.quadrantChart) == null ? void 0 : x.yAxisLabelFontSize) || 16,
482
+ quadrantLabelFontSize: ((v = D.quadrantChart) == null ? void 0 : v.quadrantLabelFontSize) || 16,
483
+ quadrantTextTopPadding: ((R = D.quadrantChart) == null ? void 0 : R.quadrantTextTopPadding) || 5,
484
+ pointTextPadding: ((Q = D.quadrantChart) == null ? void 0 : Q.pointTextPadding) || 5,
485
+ pointLabelFontSize: ((E = D.quadrantChart) == null ? void 0 : E.pointLabelFontSize) || 12,
486
+ pointRadius: ((q = D.quadrantChart) == null ? void 0 : q.pointRadius) || 5,
487
+ xAxisPosition: ((I = D.quadrantChart) == null ? void 0 : I.xAxisPosition) || "top",
488
+ yAxisPosition: (($ = D.quadrantChart) == null ? void 0 : $.yAxisPosition) || "left",
489
+ quadrantInternalBorderStrokeWidth: ((C = D.quadrantChart) == null ? void 0 : C.quadrantInternalBorderStrokeWidth) || 1,
490
+ quadrantExternalBorderStrokeWidth: ((K = D.quadrantChart) == null ? void 0 : K.quadrantExternalBorderStrokeWidth) || 2
491
+ };
492
+ }
493
+ getDefaultThemeConfig() {
494
+ return {
495
+ quadrant1Fill: w.quadrant1Fill,
496
+ quadrant2Fill: w.quadrant2Fill,
497
+ quadrant3Fill: w.quadrant3Fill,
498
+ quadrant4Fill: w.quadrant4Fill,
499
+ quadrant1TextFill: w.quadrant1TextFill,
500
+ quadrant2TextFill: w.quadrant2TextFill,
501
+ quadrant3TextFill: w.quadrant3TextFill,
502
+ quadrant4TextFill: w.quadrant4TextFill,
503
+ quadrantPointFill: w.quadrantPointFill,
504
+ quadrantPointTextFill: w.quadrantPointTextFill,
505
+ quadrantXAxisTextFill: w.quadrantXAxisTextFill,
506
+ quadrantYAxisTextFill: w.quadrantYAxisTextFill,
507
+ quadrantTitleFill: w.quadrantTitleFill,
508
+ quadrantInternalBorderStrokeFill: w.quadrantInternalBorderStrokeFill,
509
+ quadrantExternalBorderStrokeFill: w.quadrantExternalBorderStrokeFill
510
+ };
511
+ }
512
+ clear() {
513
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), lt.info("clear called");
514
+ }
515
+ setData(r) {
516
+ this.data = { ...this.data, ...r };
517
+ }
518
+ addPoints(r) {
519
+ this.data.points = [...r, ...this.data.points];
520
+ }
521
+ setConfig(r) {
522
+ lt.trace("setConfig called with: ", r), this.config = { ...this.config, ...r };
523
+ }
524
+ setThemeConfig(r) {
525
+ lt.trace("setThemeConfig called with: ", r), this.themeConfig = { ...this.themeConfig, ...r };
526
+ }
527
+ calculateSpace(r, o, u, g) {
528
+ const c = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, h = {
529
+ top: r === "top" && o ? c : 0,
530
+ bottom: r === "bottom" && o ? c : 0
531
+ }, f = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, e = {
532
+ left: this.config.yAxisPosition === "left" && u ? f : 0,
533
+ right: this.config.yAxisPosition === "right" && u ? f : 0
534
+ }, x = this.config.titleFontSize + this.config.titlePadding * 2, v = {
535
+ top: g ? x : 0
536
+ }, R = this.config.quadrantPadding + e.left, Q = this.config.quadrantPadding + h.top + v.top, E = this.config.chartWidth - this.config.quadrantPadding * 2 - e.left - e.right, q = this.config.chartHeight - this.config.quadrantPadding * 2 - h.top - h.bottom - v.top, I = E / 2, $ = q / 2;
537
+ return {
538
+ xAxisSpace: h,
539
+ yAxisSpace: e,
540
+ titleSpace: v,
541
+ quadrantSpace: {
542
+ quadrantLeft: R,
543
+ quadrantTop: Q,
544
+ quadrantWidth: E,
545
+ quadrantHalfWidth: I,
546
+ quadrantHeight: q,
547
+ quadrantHalfHeight: $
548
+ }
549
+ };
550
+ }
551
+ getAxisLabels(r, o, u, g) {
552
+ const { quadrantSpace: c, titleSpace: h } = g, {
553
+ quadrantHalfHeight: f,
554
+ quadrantHeight: e,
555
+ quadrantLeft: x,
556
+ quadrantHalfWidth: v,
557
+ quadrantTop: R,
558
+ quadrantWidth: Q
559
+ } = c, E = !!this.data.xAxisRightText, q = !!this.data.yAxisTopText, I = [];
560
+ return this.data.xAxisLeftText && o && I.push({
561
+ text: this.data.xAxisLeftText,
562
+ fill: this.themeConfig.quadrantXAxisTextFill,
563
+ x: x + (E ? v / 2 : 0),
564
+ y: r === "top" ? this.config.xAxisLabelPadding + h.top : this.config.xAxisLabelPadding + R + e + this.config.quadrantPadding,
565
+ fontSize: this.config.xAxisLabelFontSize,
566
+ verticalPos: E ? "center" : "left",
567
+ horizontalPos: "top",
568
+ rotation: 0
569
+ }), this.data.xAxisRightText && o && I.push({
570
+ text: this.data.xAxisRightText,
571
+ fill: this.themeConfig.quadrantXAxisTextFill,
572
+ x: x + v + (E ? v / 2 : 0),
573
+ y: r === "top" ? this.config.xAxisLabelPadding + h.top : this.config.xAxisLabelPadding + R + e + this.config.quadrantPadding,
574
+ fontSize: this.config.xAxisLabelFontSize,
575
+ verticalPos: E ? "center" : "left",
576
+ horizontalPos: "top",
577
+ rotation: 0
578
+ }), this.data.yAxisBottomText && u && I.push({
579
+ text: this.data.yAxisBottomText,
580
+ fill: this.themeConfig.quadrantYAxisTextFill,
581
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + x + Q + this.config.quadrantPadding,
582
+ y: R + e - (q ? f / 2 : 0),
583
+ fontSize: this.config.yAxisLabelFontSize,
584
+ verticalPos: q ? "center" : "left",
585
+ horizontalPos: "top",
586
+ rotation: -90
587
+ }), this.data.yAxisTopText && u && I.push({
588
+ text: this.data.yAxisTopText,
589
+ fill: this.themeConfig.quadrantYAxisTextFill,
590
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + x + Q + this.config.quadrantPadding,
591
+ y: R + f - (q ? f / 2 : 0),
592
+ fontSize: this.config.yAxisLabelFontSize,
593
+ verticalPos: q ? "center" : "left",
594
+ horizontalPos: "top",
595
+ rotation: -90
596
+ }), I;
597
+ }
598
+ getQuadrants(r) {
599
+ const { quadrantSpace: o } = r, { quadrantHalfHeight: u, quadrantLeft: g, quadrantHalfWidth: c, quadrantTop: h } = o, f = [
600
+ {
601
+ text: {
602
+ text: this.data.quadrant1Text,
603
+ fill: this.themeConfig.quadrant1TextFill,
604
+ x: 0,
605
+ y: 0,
606
+ fontSize: this.config.quadrantLabelFontSize,
607
+ verticalPos: "center",
608
+ horizontalPos: "middle",
609
+ rotation: 0
610
+ },
611
+ x: g + c,
612
+ y: h,
613
+ width: c,
614
+ height: u,
615
+ fill: this.themeConfig.quadrant1Fill
616
+ },
617
+ {
618
+ text: {
619
+ text: this.data.quadrant2Text,
620
+ fill: this.themeConfig.quadrant2TextFill,
621
+ x: 0,
622
+ y: 0,
623
+ fontSize: this.config.quadrantLabelFontSize,
624
+ verticalPos: "center",
625
+ horizontalPos: "middle",
626
+ rotation: 0
627
+ },
628
+ x: g,
629
+ y: h,
630
+ width: c,
631
+ height: u,
632
+ fill: this.themeConfig.quadrant2Fill
633
+ },
634
+ {
635
+ text: {
636
+ text: this.data.quadrant3Text,
637
+ fill: this.themeConfig.quadrant3TextFill,
638
+ x: 0,
639
+ y: 0,
640
+ fontSize: this.config.quadrantLabelFontSize,
641
+ verticalPos: "center",
642
+ horizontalPos: "middle",
643
+ rotation: 0
644
+ },
645
+ x: g,
646
+ y: h + u,
647
+ width: c,
648
+ height: u,
649
+ fill: this.themeConfig.quadrant3Fill
650
+ },
651
+ {
652
+ text: {
653
+ text: this.data.quadrant4Text,
654
+ fill: this.themeConfig.quadrant4TextFill,
655
+ x: 0,
656
+ y: 0,
657
+ fontSize: this.config.quadrantLabelFontSize,
658
+ verticalPos: "center",
659
+ horizontalPos: "middle",
660
+ rotation: 0
661
+ },
662
+ x: g + c,
663
+ y: h + u,
664
+ width: c,
665
+ height: u,
666
+ fill: this.themeConfig.quadrant4Fill
667
+ }
668
+ ];
669
+ for (const e of f)
670
+ e.text.x = e.x + e.width / 2, this.data.points.length === 0 ? (e.text.y = e.y + e.height / 2, e.text.horizontalPos = "middle") : (e.text.y = e.y + this.config.quadrantTextTopPadding, e.text.horizontalPos = "top");
671
+ return f;
672
+ }
673
+ getQuadrantPoints(r) {
674
+ const { quadrantSpace: o } = r, { quadrantHeight: u, quadrantLeft: g, quadrantTop: c, quadrantWidth: h } = o, f = mt().domain([0, 1]).range([g, h + g]), e = mt().domain([0, 1]).range([u + c, c]);
675
+ return this.data.points.map((x) => ({
676
+ x: f(x.x),
677
+ y: e(x.y),
678
+ fill: this.themeConfig.quadrantPointFill,
679
+ radius: this.config.pointRadius,
680
+ text: {
681
+ text: x.text,
682
+ fill: this.themeConfig.quadrantPointTextFill,
683
+ x: f(x.x),
684
+ y: e(x.y) + this.config.pointTextPadding,
685
+ verticalPos: "center",
686
+ horizontalPos: "top",
687
+ fontSize: this.config.pointLabelFontSize,
688
+ rotation: 0
689
+ }
690
+ }));
691
+ }
692
+ getBorders(r) {
693
+ const o = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: u } = r, {
694
+ quadrantHalfHeight: g,
695
+ quadrantHeight: c,
696
+ quadrantLeft: h,
697
+ quadrantHalfWidth: f,
698
+ quadrantTop: e,
699
+ quadrantWidth: x
700
+ } = u;
701
+ return [
702
+ // top border
703
+ {
704
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
705
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
706
+ x1: h - o,
707
+ y1: e,
708
+ x2: h + x + o,
709
+ y2: e
710
+ },
711
+ // right border
712
+ {
713
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
714
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
715
+ x1: h + x,
716
+ y1: e + o,
717
+ x2: h + x,
718
+ y2: e + c - o
719
+ },
720
+ // bottom border
721
+ {
722
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
723
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
724
+ x1: h - o,
725
+ y1: e + c,
726
+ x2: h + x + o,
727
+ y2: e + c
728
+ },
729
+ // left border
730
+ {
731
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
732
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
733
+ x1: h,
734
+ y1: e + o,
735
+ x2: h,
736
+ y2: e + c - o
737
+ },
738
+ // vertical inner border
739
+ {
740
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
741
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
742
+ x1: h + f,
743
+ y1: e + o,
744
+ x2: h + f,
745
+ y2: e + c - o
746
+ },
747
+ // horizontal inner border
748
+ {
749
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
750
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
751
+ x1: h + o,
752
+ y1: e + g,
753
+ x2: h + x - o,
754
+ y2: e + g
755
+ }
756
+ ];
757
+ }
758
+ getTitle(r) {
759
+ if (r)
760
+ return {
761
+ text: this.data.titleText,
762
+ fill: this.themeConfig.quadrantTitleFill,
763
+ fontSize: this.config.titleFontSize,
764
+ horizontalPos: "top",
765
+ verticalPos: "center",
766
+ rotation: 0,
767
+ y: this.config.titlePadding,
768
+ x: this.config.chartWidth / 2
769
+ };
770
+ }
771
+ build() {
772
+ const r = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), o = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), u = this.config.showTitle && !!this.data.titleText, g = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, c = this.calculateSpace(g, r, o, u);
773
+ return {
774
+ points: this.getQuadrantPoints(c),
775
+ quadrants: this.getQuadrants(c),
776
+ axisLabels: this.getAxisLabels(g, r, o, c),
777
+ borderLines: this.getBorders(c),
778
+ title: this.getTitle(u)
779
+ };
780
+ }
781
+ }
782
+ const Nt = yt();
783
+ function Z(i) {
784
+ return Bt(i.trim(), Nt);
785
+ }
786
+ const B = new wt();
787
+ function Ut(i) {
788
+ B.setData({ quadrant1Text: Z(i.text) });
789
+ }
790
+ function Qt(i) {
791
+ B.setData({ quadrant2Text: Z(i.text) });
792
+ }
793
+ function Xt(i) {
794
+ B.setData({ quadrant3Text: Z(i.text) });
795
+ }
796
+ function Mt(i) {
797
+ B.setData({ quadrant4Text: Z(i.text) });
798
+ }
799
+ function Wt(i) {
800
+ B.setData({ xAxisLeftText: Z(i.text) });
801
+ }
802
+ function $t(i) {
803
+ B.setData({ xAxisRightText: Z(i.text) });
804
+ }
805
+ function Ot(i) {
806
+ B.setData({ yAxisTopText: Z(i.text) });
807
+ }
808
+ function Yt(i) {
809
+ B.setData({ yAxisBottomText: Z(i.text) });
810
+ }
811
+ function Ht(i, r, o) {
812
+ B.addPoints([{ x: r, y: o, text: Z(i.text) }]);
813
+ }
814
+ function jt(i) {
815
+ B.setConfig({ chartWidth: i });
816
+ }
817
+ function Vt(i) {
818
+ B.setConfig({ chartHeight: i });
819
+ }
820
+ function Zt() {
821
+ const i = yt(), { themeVariables: r, quadrantChart: o } = i;
822
+ return o && B.setConfig(o), B.setThemeConfig({
823
+ quadrant1Fill: r.quadrant1Fill,
824
+ quadrant2Fill: r.quadrant2Fill,
825
+ quadrant3Fill: r.quadrant3Fill,
826
+ quadrant4Fill: r.quadrant4Fill,
827
+ quadrant1TextFill: r.quadrant1TextFill,
828
+ quadrant2TextFill: r.quadrant2TextFill,
829
+ quadrant3TextFill: r.quadrant3TextFill,
830
+ quadrant4TextFill: r.quadrant4TextFill,
831
+ quadrantPointFill: r.quadrantPointFill,
832
+ quadrantPointTextFill: r.quadrantPointTextFill,
833
+ quadrantXAxisTextFill: r.quadrantXAxisTextFill,
834
+ quadrantYAxisTextFill: r.quadrantYAxisTextFill,
835
+ quadrantExternalBorderStrokeFill: r.quadrantExternalBorderStrokeFill,
836
+ quadrantInternalBorderStrokeFill: r.quadrantInternalBorderStrokeFill,
837
+ quadrantTitleFill: r.quadrantTitleFill
838
+ }), B.setData({ titleText: At() }), B.build();
839
+ }
840
+ const Kt = function() {
841
+ B.clear(), Et();
842
+ }, Gt = {
843
+ setWidth: jt,
844
+ setHeight: Vt,
845
+ setQuadrant1Text: Ut,
846
+ setQuadrant2Text: Qt,
847
+ setQuadrant3Text: Xt,
848
+ setQuadrant4Text: Mt,
849
+ setXAxisLeftText: Wt,
850
+ setXAxisRightText: $t,
851
+ setYAxisTopText: Ot,
852
+ setYAxisBottomText: Yt,
853
+ addPoint: Ht,
854
+ getQuadrantData: Zt,
855
+ clear: Kt,
856
+ setAccTitle: vt,
857
+ getAccTitle: Ct,
858
+ setDiagramTitle: Lt,
859
+ getDiagramTitle: At,
860
+ getAccDescription: zt,
861
+ setAccDescription: Dt
862
+ }, Jt = (i, r, o, u) => {
863
+ var g, c, h;
864
+ function f(t) {
865
+ return t === "top" ? "hanging" : "middle";
866
+ }
867
+ function e(t) {
868
+ return t === "left" ? "start" : "middle";
869
+ }
870
+ function x(t) {
871
+ return `translate(${t.x}, ${t.y}) rotate(${t.rotation || 0})`;
872
+ }
873
+ const v = yt();
874
+ lt.debug(`Rendering quadrant chart
875
+ ` + i);
876
+ const R = v.securityLevel;
877
+ let Q;
878
+ R === "sandbox" && (Q = gt("#i" + r));
879
+ const E = (R === "sandbox" ? gt(Q.nodes()[0].contentDocument.body) : gt("body")).select(`[id="${r}"]`), q = E.append("g").attr("class", "main"), I = ((g = v.quadrantChart) == null ? void 0 : g.chartWidth) || 500, $ = ((c = v.quadrantChart) == null ? void 0 : c.chartHeight) || 500;
880
+ It(E, $, I, ((h = v.quadrantChart) == null ? void 0 : h.useMaxWidth) || !0), E.attr("viewBox", "0 0 " + I + " " + $), u.db.setHeight($), u.db.setWidth(I);
881
+ const C = u.db.getQuadrantData(), K = q.append("g").attr("class", "quadrants"), it = q.append("g").attr("class", "border"), et = q.append("g").attr("class", "data-points"), at = q.append("g").attr("class", "labels"), M = q.append("g").attr("class", "title");
882
+ C.title && M.append("text").attr("x", 0).attr("y", 0).attr("fill", C.title.fill).attr("font-size", C.title.fontSize).attr("dominant-baseline", f(C.title.horizontalPos)).attr("text-anchor", e(C.title.verticalPos)).attr("transform", x(C.title)).text(C.title.text), C.borderLines && it.selectAll("line").data(C.borderLines).enter().append("line").attr("x1", (t) => t.x1).attr("y1", (t) => t.y1).attr("x2", (t) => t.x2).attr("y2", (t) => t.y2).style("stroke", (t) => t.strokeFill).style("stroke-width", (t) => t.strokeWidth);
883
+ const X = K.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class", "quadrant");
884
+ X.append("rect").attr("x", (t) => t.x).attr("y", (t) => t.y).attr("width", (t) => t.width).attr("height", (t) => t.height).attr("fill", (t) => t.fill), X.append("text").attr("x", 0).attr("y", 0).attr("fill", (t) => t.text.fill).attr("font-size", (t) => t.text.fontSize).attr(
885
+ "dominant-baseline",
886
+ (t) => f(t.text.horizontalPos)
887
+ ).attr("text-anchor", (t) => e(t.text.verticalPos)).attr("transform", (t) => x(t.text)).text((t) => t.text.text), at.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((t) => t.text).attr("fill", (t) => t.fill).attr("font-size", (t) => t.fontSize).attr("dominant-baseline", (t) => f(t.horizontalPos)).attr("text-anchor", (t) => e(t.verticalPos)).attr("transform", (t) => x(t));
888
+ const p = et.selectAll("g.data-point").data(C.points).enter().append("g").attr("class", "data-point");
889
+ p.append("circle").attr("cx", (t) => t.x).attr("cy", (t) => t.y).attr("r", (t) => t.radius).attr("fill", (t) => t.fill), p.append("text").attr("x", 0).attr("y", 0).text((t) => t.text.text).attr("fill", (t) => t.text.fill).attr("font-size", (t) => t.text.fontSize).attr(
890
+ "dominant-baseline",
891
+ (t) => f(t.text.horizontalPos)
892
+ ).attr("text-anchor", (t) => e(t.text.verticalPos)).attr("transform", (t) => x(t.text));
893
+ }, ti = {
894
+ draw: Jt
895
+ }, ai = {
896
+ parser: Rt,
897
+ db: Gt,
898
+ renderer: ti,
899
+ styles: () => ""
900
+ };
901
+ export {
902
+ ai as diagram
903
+ };