jekyll-ham 1.0.4 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (366) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -2
  3. data/_layouts/default.html +6 -0
  4. data/_layouts/page.html +1 -1
  5. data/assets/mermaid/Diagram.d.ts +33 -0
  6. data/assets/mermaid/Tableau10-31042135.js +10 -0
  7. data/assets/mermaid/Tableau10-558cc280.js +9 -0
  8. data/assets/mermaid/__mocks__/mermaidAPI.d.ts +13 -0
  9. data/assets/mermaid/accessibility.d.ts +27 -0
  10. data/assets/mermaid/accessibility.spec.d.ts +1 -0
  11. data/assets/mermaid/arc-c0f908ab.js +148 -0
  12. data/assets/mermaid/arc-d1f6357e.js +86 -0
  13. data/assets/mermaid/array-2ff2c7a6.js +6 -0
  14. data/assets/mermaid/array-b7dcf730.js +6 -0
  15. data/assets/mermaid/assignWithDepth.d.ts +30 -0
  16. data/assets/mermaid/blockDiagram-5dc23a45.js +1230 -0
  17. data/assets/mermaid/blockDiagram-9f4a6865.js +1822 -0
  18. data/assets/mermaid/blockDiagram-efe38566.js +1818 -0
  19. data/assets/mermaid/c4Diagram-1e775db3.js +1579 -0
  20. data/assets/mermaid/c4Diagram-ae766693.js +2473 -0
  21. data/assets/mermaid/c4Diagram-af207393.js +2463 -0
  22. data/assets/mermaid/channel-ebbc4130.js +5 -0
  23. data/assets/mermaid/channel-f9001828.js +8 -0
  24. data/assets/mermaid/classDiagram-72b9c71d.js +356 -0
  25. data/assets/mermaid/classDiagram-f52caa06.js +220 -0
  26. data/assets/mermaid/classDiagram-fb54d2a0.js +363 -0
  27. data/assets/mermaid/classDiagram-v2-640c694e.js +206 -0
  28. data/assets/mermaid/classDiagram-v2-a2b738ad.js +298 -0
  29. data/assets/mermaid/classDiagram-v2-fedb80f6.js +290 -0
  30. data/assets/mermaid/clone-9ea6bfeb.js +8 -0
  31. data/assets/mermaid/clone-afc2f047.js +8 -0
  32. data/assets/mermaid/config.d.ts +98 -0
  33. data/assets/mermaid/config.spec.d.ts +1 -0
  34. data/assets/mermaid/config.type.d.ts +1534 -0
  35. data/assets/mermaid/createText-03b82060.js +2966 -0
  36. data/assets/mermaid/createText-b70fe78a.js +4929 -0
  37. data/assets/mermaid/createText-ca0c5216.js +251 -0
  38. data/assets/mermaid/dagre-wrapper/blockArrowHelper.d.ts +8 -0
  39. data/assets/mermaid/dagre-wrapper/clusters.d.ts +4 -0
  40. data/assets/mermaid/dagre-wrapper/createLabel.d.ts +9 -0
  41. data/assets/mermaid/dagre-wrapper/edgeMarker.d.ts +12 -0
  42. data/assets/mermaid/dagre-wrapper/edgeMarker.spec.d.ts +1 -0
  43. data/assets/mermaid/dagre-wrapper/edges.d.ts +14 -0
  44. data/assets/mermaid/dagre-wrapper/index.d.ts +1 -0
  45. data/assets/mermaid/dagre-wrapper/intersect/index.d.ts +13 -0
  46. data/assets/mermaid/dagre-wrapper/intersect/intersect-circle.d.ts +10 -0
  47. data/assets/mermaid/dagre-wrapper/intersect/intersect-ellipse.d.ts +11 -0
  48. data/assets/mermaid/dagre-wrapper/intersect/intersect-line.d.ts +13 -0
  49. data/assets/mermaid/dagre-wrapper/intersect/intersect-node.d.ts +6 -0
  50. data/assets/mermaid/dagre-wrapper/intersect/intersect-polygon.d.ts +10 -0
  51. data/assets/mermaid/dagre-wrapper/intersect/intersect-rect.d.ts +5 -0
  52. data/assets/mermaid/dagre-wrapper/markers.d.ts +2 -0
  53. data/assets/mermaid/dagre-wrapper/mermaid-graphlib.d.ts +8 -0
  54. data/assets/mermaid/dagre-wrapper/nodes.d.ts +4 -0
  55. data/assets/mermaid/dagre-wrapper/shapes/note.d.ts +2 -0
  56. data/assets/mermaid/dagre-wrapper/shapes/util.d.ts +14 -0
  57. data/assets/mermaid/defaultConfig.d.ts +12 -0
  58. data/assets/mermaid/diagram-api/comments.d.ts +6 -0
  59. data/assets/mermaid/diagram-api/comments.spec.d.ts +1 -0
  60. data/assets/mermaid/diagram-api/detectType.d.ts +42 -0
  61. data/assets/mermaid/diagram-api/diagram-orchestration.d.ts +1 -0
  62. data/assets/mermaid/diagram-api/diagram-orchestration.spec.d.ts +1 -0
  63. data/assets/mermaid/diagram-api/diagramAPI.d.ts +31 -0
  64. data/assets/mermaid/diagram-api/diagramAPI.spec.d.ts +1 -0
  65. data/assets/mermaid/diagram-api/frontmatter.d.ts +18 -0
  66. data/assets/mermaid/diagram-api/frontmatter.spec.d.ts +1 -0
  67. data/assets/mermaid/diagram-api/loadDiagram.d.ts +1 -0
  68. data/assets/mermaid/diagram-api/regexes.d.ts +3 -0
  69. data/assets/mermaid/diagram-api/types.d.ts +84 -0
  70. data/assets/mermaid/diagram.spec.d.ts +1 -0
  71. data/assets/mermaid/diagrams/block/blockDB.d.ts +54 -0
  72. data/assets/mermaid/diagrams/block/blockDetector.d.ts +3 -0
  73. data/assets/mermaid/diagrams/block/blockDiagram.d.ts +2 -0
  74. data/assets/mermaid/diagrams/block/blockRenderer.d.ts +15 -0
  75. data/assets/mermaid/diagrams/block/blockTypes.d.ts +36 -0
  76. data/assets/mermaid/diagrams/block/blockUtils.d.ts +1 -0
  77. data/assets/mermaid/diagrams/block/layout.d.ts +13 -0
  78. data/assets/mermaid/diagrams/block/layout.spec.d.ts +1 -0
  79. data/assets/mermaid/diagrams/block/parser/block.spec.d.ts +1 -0
  80. data/assets/mermaid/diagrams/block/renderHelpers.d.ts +10 -0
  81. data/assets/mermaid/diagrams/block/styles.d.ts +18 -0
  82. data/assets/mermaid/diagrams/c4/c4Db.d.ts +127 -0
  83. data/assets/mermaid/diagrams/c4/c4Detector.d.ts +3 -0
  84. data/assets/mermaid/diagrams/c4/c4Diagram.d.ts +2 -0
  85. data/assets/mermaid/diagrams/c4/c4Renderer.d.ts +12 -0
  86. data/assets/mermaid/diagrams/c4/styles.d.ts +2 -0
  87. data/assets/mermaid/diagrams/c4/svgDraw.d.ts +36 -0
  88. data/assets/mermaid/diagrams/class/classDb.d.ts +144 -0
  89. data/assets/mermaid/diagrams/class/classDetector-V2.d.ts +3 -0
  90. data/assets/mermaid/diagrams/class/classDetector.d.ts +3 -0
  91. data/assets/mermaid/diagrams/class/classDiagram-v2.d.ts +2 -0
  92. data/assets/mermaid/diagrams/class/classDiagram.d.ts +2 -0
  93. data/assets/mermaid/diagrams/class/classDiagram.spec.d.ts +1 -0
  94. data/assets/mermaid/diagrams/class/classRenderer-v2.d.ts +57 -0
  95. data/assets/mermaid/diagrams/class/classRenderer.d.ts +5 -0
  96. data/assets/mermaid/diagrams/class/classTypes.d.ts +78 -0
  97. data/assets/mermaid/diagrams/class/classTypes.spec.d.ts +1 -0
  98. data/assets/mermaid/diagrams/class/styles.d.ts +2 -0
  99. data/assets/mermaid/diagrams/class/svgDraw.d.ts +25 -0
  100. data/assets/mermaid/diagrams/common/common.d.ts +110 -0
  101. data/assets/mermaid/diagrams/common/common.spec.d.ts +1 -0
  102. data/assets/mermaid/diagrams/common/commonDb.d.ts +7 -0
  103. data/assets/mermaid/diagrams/common/commonTypes.d.ts +51 -0
  104. data/assets/mermaid/diagrams/common/svgDrawCommon.d.ts +15 -0
  105. data/assets/mermaid/diagrams/er/erDb.d.ts +49 -0
  106. data/assets/mermaid/diagrams/er/erDetector.d.ts +3 -0
  107. data/assets/mermaid/diagrams/er/erDiagram.d.ts +34 -0
  108. data/assets/mermaid/diagrams/er/erMarkers.d.ts +24 -0
  109. data/assets/mermaid/diagrams/er/erRenderer.d.ts +19 -0
  110. data/assets/mermaid/diagrams/er/erRenderer.spec.d.ts +1 -0
  111. data/assets/mermaid/diagrams/er/styles.d.ts +2 -0
  112. data/assets/mermaid/diagrams/error/errorDiagram.d.ts +3 -0
  113. data/assets/mermaid/diagrams/error/errorRenderer.d.ts +12 -0
  114. data/assets/mermaid/diagrams/flowchart/elk/detector.d.ts +3 -0
  115. data/assets/mermaid/diagrams/flowchart/elk/detector.spec.d.ts +1 -0
  116. data/assets/mermaid/diagrams/flowchart/elk/flowRenderer-elk.d.ts +10 -0
  117. data/assets/mermaid/diagrams/flowchart/elk/flowchart-elk-definition.d.ts +10 -0
  118. data/assets/mermaid/diagrams/flowchart/elk/render-utils.d.ts +5 -0
  119. data/assets/mermaid/diagrams/flowchart/elk/render-utils.spec.d.ts +1 -0
  120. data/assets/mermaid/diagrams/flowchart/elk/styles.d.ts +19 -0
  121. data/assets/mermaid/diagrams/flowchart/flowChartShapes.d.ts +9 -0
  122. data/assets/mermaid/diagrams/flowchart/flowDb.d.ts +87 -0
  123. data/assets/mermaid/diagrams/flowchart/flowDetector-v2.d.ts +3 -0
  124. data/assets/mermaid/diagrams/flowchart/flowDetector.d.ts +3 -0
  125. data/assets/mermaid/diagrams/flowchart/flowDiagram-v2.d.ts +57 -0
  126. data/assets/mermaid/diagrams/flowchart/flowDiagram.d.ts +57 -0
  127. data/assets/mermaid/diagrams/flowchart/flowRenderer-v2.d.ts +13 -0
  128. data/assets/mermaid/diagrams/flowchart/flowRenderer.d.ts +13 -0
  129. data/assets/mermaid/diagrams/flowchart/styles.d.ts +18 -0
  130. data/assets/mermaid/diagrams/gantt/ganttDb.d.ts +106 -0
  131. data/assets/mermaid/diagrams/gantt/ganttDb.spec.d.ts +1 -0
  132. data/assets/mermaid/diagrams/gantt/ganttDetector.d.ts +3 -0
  133. data/assets/mermaid/diagrams/gantt/ganttDiagram.d.ts +2 -0
  134. data/assets/mermaid/diagrams/gantt/ganttRenderer.d.ts +7 -0
  135. data/assets/mermaid/diagrams/gantt/styles.d.ts +2 -0
  136. data/assets/mermaid/diagrams/git/gitGraphAst.d.ts +61 -0
  137. data/assets/mermaid/diagrams/git/gitGraphDetector.d.ts +3 -0
  138. data/assets/mermaid/diagrams/git/gitGraphDiagram.d.ts +2 -0
  139. data/assets/mermaid/diagrams/git/gitGraphRenderer.d.ts +5 -0
  140. data/assets/mermaid/diagrams/git/styles.d.ts +2 -0
  141. data/assets/mermaid/diagrams/info/info.spec.d.ts +1 -0
  142. data/assets/mermaid/diagrams/info/infoDb.d.ts +5 -0
  143. data/assets/mermaid/diagrams/info/infoDetector.d.ts +2 -0
  144. data/assets/mermaid/diagrams/info/infoDiagram.d.ts +2 -0
  145. data/assets/mermaid/diagrams/info/infoRenderer.d.ts +4 -0
  146. data/assets/mermaid/diagrams/info/infoTypes.d.ts +9 -0
  147. data/assets/mermaid/diagrams/mindmap/detector.d.ts +3 -0
  148. data/assets/mermaid/diagrams/mindmap/mindmap-definition.d.ts +2 -0
  149. data/assets/mermaid/diagrams/mindmap/mindmap.spec.d.ts +1 -0
  150. data/assets/mermaid/diagrams/mindmap/mindmapDb.d.ts +30 -0
  151. data/assets/mermaid/diagrams/mindmap/mindmapRenderer.d.ts +21 -0
  152. data/assets/mermaid/diagrams/mindmap/mindmapTypes.d.ts +20 -0
  153. data/assets/mermaid/diagrams/mindmap/styles.d.ts +3 -0
  154. data/assets/mermaid/diagrams/mindmap/svgDraw.d.ts +13 -0
  155. data/assets/mermaid/diagrams/pie/pie.spec.d.ts +1 -0
  156. data/assets/mermaid/diagrams/pie/pieDb.d.ts +6 -0
  157. data/assets/mermaid/diagrams/pie/pieDetector.d.ts +2 -0
  158. data/assets/mermaid/diagrams/pie/pieDiagram.d.ts +2 -0
  159. data/assets/mermaid/diagrams/pie/pieRenderer.d.ts +13 -0
  160. data/assets/mermaid/diagrams/pie/pieStyles.d.ts +3 -0
  161. data/assets/mermaid/diagrams/pie/pieTypes.d.ts +53 -0
  162. data/assets/mermaid/diagrams/quadrant-chart/parser/quadrant.jison.spec.d.ts +1 -0
  163. data/assets/mermaid/diagrams/quadrant-chart/quadrantBuilder.d.ts +118 -0
  164. data/assets/mermaid/diagrams/quadrant-chart/quadrantDb.d.ts +38 -0
  165. data/assets/mermaid/diagrams/quadrant-chart/quadrantDetector.d.ts +3 -0
  166. data/assets/mermaid/diagrams/quadrant-chart/quadrantDiagram.d.ts +2 -0
  167. data/assets/mermaid/diagrams/quadrant-chart/quadrantRenderer.d.ts +6 -0
  168. data/assets/mermaid/diagrams/requirement/requirementDb.d.ts +70 -0
  169. data/assets/mermaid/diagrams/requirement/requirementDetector.d.ts +3 -0
  170. data/assets/mermaid/diagrams/requirement/requirementDiagram.d.ts +2 -0
  171. data/assets/mermaid/diagrams/requirement/requirementMarkers.d.ts +10 -0
  172. data/assets/mermaid/diagrams/requirement/requirementRenderer.d.ts +7 -0
  173. data/assets/mermaid/diagrams/requirement/styles.d.ts +2 -0
  174. data/assets/mermaid/diagrams/sankey/parser/sankey.spec.d.ts +1 -0
  175. data/assets/mermaid/diagrams/sankey/sankeyDB.d.ts +36 -0
  176. data/assets/mermaid/diagrams/sankey/sankeyDetector.d.ts +3 -0
  177. data/assets/mermaid/diagrams/sankey/sankeyDiagram.d.ts +2 -0
  178. data/assets/mermaid/diagrams/sankey/sankeyRenderer.d.ts +14 -0
  179. data/assets/mermaid/diagrams/sankey/sankeyUtils.d.ts +1 -0
  180. data/assets/mermaid/diagrams/sequence/sequenceDb.d.ts +153 -0
  181. data/assets/mermaid/diagrams/sequence/sequenceDetector.d.ts +3 -0
  182. data/assets/mermaid/diagrams/sequence/sequenceDiagram.d.ts +2 -0
  183. data/assets/mermaid/diagrams/sequence/sequenceRenderer.d.ts +202 -0
  184. data/assets/mermaid/diagrams/sequence/styles.d.ts +2 -0
  185. data/assets/mermaid/diagrams/sequence/svgDraw.d.ts +73 -0
  186. data/assets/mermaid/diagrams/state/id-cache.d.ts +11 -0
  187. data/assets/mermaid/diagrams/state/shapes.d.ts +14 -0
  188. data/assets/mermaid/diagrams/state/stateCommon.d.ts +22 -0
  189. data/assets/mermaid/diagrams/state/stateDb.d.ts +91 -0
  190. data/assets/mermaid/diagrams/state/stateDetector-V2.d.ts +3 -0
  191. data/assets/mermaid/diagrams/state/stateDetector.d.ts +3 -0
  192. data/assets/mermaid/diagrams/state/stateDiagram-v2.d.ts +2 -0
  193. data/assets/mermaid/diagrams/state/stateDiagram.d.ts +2 -0
  194. data/assets/mermaid/diagrams/state/stateRenderer-v2.d.ts +20 -0
  195. data/assets/mermaid/diagrams/state/stateRenderer.d.ts +7 -0
  196. data/assets/mermaid/diagrams/state/styles.d.ts +2 -0
  197. data/assets/mermaid/diagrams/timeline/detector.d.ts +3 -0
  198. data/assets/mermaid/diagrams/timeline/styles.d.ts +2 -0
  199. data/assets/mermaid/diagrams/timeline/svgDraw.d.ts +46 -0
  200. data/assets/mermaid/diagrams/timeline/timeline-definition.d.ts +10 -0
  201. data/assets/mermaid/diagrams/timeline/timelineDb.d.ts +20 -0
  202. data/assets/mermaid/diagrams/timeline/timelineRenderer.d.ts +19 -0
  203. data/assets/mermaid/diagrams/user-journey/journeyDb.d.ts +30 -0
  204. data/assets/mermaid/diagrams/user-journey/journeyDetector.d.ts +3 -0
  205. data/assets/mermaid/diagrams/user-journey/journeyDiagram.d.ts +2 -0
  206. data/assets/mermaid/diagrams/user-journey/journeyRenderer.d.ts +30 -0
  207. data/assets/mermaid/diagrams/user-journey/styles.d.ts +2 -0
  208. data/assets/mermaid/diagrams/user-journey/svgDraw.d.ts +20 -0
  209. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/bandAxis.d.ts +12 -0
  210. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/baseAxis.d.ts +38 -0
  211. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/index.d.ts +12 -0
  212. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/linearAxis.d.ts +11 -0
  213. data/assets/mermaid/diagrams/xychart/chartBuilder/components/chartTitle.d.ts +16 -0
  214. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/barPlot.d.ts +12 -0
  215. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/index.d.ts +20 -0
  216. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/linePlot.d.ts +11 -0
  217. data/assets/mermaid/diagrams/xychart/chartBuilder/index.d.ts +5 -0
  218. data/assets/mermaid/diagrams/xychart/chartBuilder/interfaces.d.ts +132 -0
  219. data/assets/mermaid/diagrams/xychart/chartBuilder/orchestrator.d.ts +12 -0
  220. data/assets/mermaid/diagrams/xychart/chartBuilder/textDimensionCalculator.d.ts +10 -0
  221. data/assets/mermaid/diagrams/xychart/parser/xychart.jison.spec.d.ts +1 -0
  222. data/assets/mermaid/diagrams/xychart/xychartDb.d.ts +40 -0
  223. data/assets/mermaid/diagrams/xychart/xychartDetector.d.ts +3 -0
  224. data/assets/mermaid/diagrams/xychart/xychartDiagram.d.ts +2 -0
  225. data/assets/mermaid/diagrams/xychart/xychartRenderer.d.ts +6 -0
  226. data/assets/mermaid/docs/vite.config.d.ts +2 -0
  227. data/assets/mermaid/edges-066a5561.js +1840 -0
  228. data/assets/mermaid/edges-16357fde.js +1083 -0
  229. data/assets/mermaid/edges-ce5cfb7c.js +1840 -0
  230. data/assets/mermaid/erDiagram-09d1c15f.js +1176 -0
  231. data/assets/mermaid/erDiagram-543717f2.js +1321 -0
  232. data/assets/mermaid/erDiagram-c7ff1bec.js +931 -0
  233. data/assets/mermaid/errors.d.ts +3 -0
  234. data/assets/mermaid/flowDb-9a89ea33.js +1126 -0
  235. data/assets/mermaid/flowDb-ba9bd7fa.js +1713 -0
  236. data/assets/mermaid/flowDb-c1833063.js +1714 -0
  237. data/assets/mermaid/flowDiagram-aadb13b0.js +797 -0
  238. data/assets/mermaid/flowDiagram-b222e15a.js +614 -0
  239. data/assets/mermaid/flowDiagram-b5e7ba30.js +1278 -0
  240. data/assets/mermaid/flowDiagram-v2-13329dc7.js +40 -0
  241. data/assets/mermaid/flowDiagram-v2-54711e03.js +32 -0
  242. data/assets/mermaid/flowDiagram-v2-f2119625.js +25 -0
  243. data/assets/mermaid/flowchart-elk-definition-2d49707c.js +93397 -0
  244. data/assets/mermaid/flowchart-elk-definition-ae0efee6.js +814 -0
  245. data/assets/mermaid/flowchart-elk-definition-cf813a97.js +48407 -0
  246. data/assets/mermaid/ganttDiagram-12cf43db.js +3445 -0
  247. data/assets/mermaid/ganttDiagram-3c2fde2b.js +2501 -0
  248. data/assets/mermaid/ganttDiagram-b62c793e.js +2061 -0
  249. data/assets/mermaid/gitGraphDiagram-942e62fe.js +1800 -0
  250. data/assets/mermaid/gitGraphDiagram-b9392a12.js +1790 -0
  251. data/assets/mermaid/gitGraphDiagram-c3a0619c.js +1264 -0
  252. data/assets/mermaid/graph-0ee63739.js +881 -0
  253. data/assets/mermaid/graph-fe24fab6.js +1285 -0
  254. data/assets/mermaid/index-01f381cb.js +622 -0
  255. data/assets/mermaid/index-bb6d8841.js +373 -0
  256. data/assets/mermaid/index-fc479858.js +663 -0
  257. data/assets/mermaid/infoDiagram-2f5c50c0.js +319 -0
  258. data/assets/mermaid/infoDiagram-94cd232f.js +520 -0
  259. data/assets/mermaid/infoDiagram-d0d5c9bd.js +510 -0
  260. data/assets/mermaid/init-cc95ec8e.js +16 -0
  261. data/assets/mermaid/init-f9637058.js +16 -0
  262. data/assets/mermaid/interactionDb.d.ts +2 -0
  263. data/assets/mermaid/journeyDiagram-14fe341a.js +804 -0
  264. data/assets/mermaid/journeyDiagram-6625b456.js +1191 -0
  265. data/assets/mermaid/journeyDiagram-b56e6921.js +1183 -0
  266. data/assets/mermaid/katex-d90b6d29.js +11624 -0
  267. data/assets/mermaid/katex-ffb0e8f1.js +14432 -0
  268. data/assets/mermaid/layout-163b9689.js +2314 -0
  269. data/assets/mermaid/layout-fd473db2.js +1536 -0
  270. data/assets/mermaid/line-24d93f1b.js +34 -0
  271. data/assets/mermaid/line-87f517ef.js +50 -0
  272. data/assets/mermaid/linear-0ad15847.js +595 -0
  273. data/assets/mermaid/linear-9bcf74c4.js +447 -0
  274. data/assets/mermaid/logger.d.ts +9 -0
  275. data/assets/mermaid/mermaid-6dc72991.js +6461 -0
  276. data/assets/mermaid/mermaid-9f2aa176.js +8112 -0
  277. data/assets/mermaid/mermaid-dcacb631.js +12793 -0
  278. data/assets/mermaid/mermaid.core.mjs +14 -0
  279. data/assets/mermaid/mermaid.d.ts +146 -0
  280. data/assets/mermaid/mermaid.esm.min.mjs +4 -0
  281. data/assets/mermaid/mermaid.esm.mjs +4 -0
  282. data/assets/mermaid/mermaid.js +195755 -0
  283. data/assets/mermaid/mermaid.min.js +2029 -0
  284. data/assets/mermaid/mermaid.spec.d.ts +1 -0
  285. data/assets/mermaid/mermaidAPI.d.ts +170 -0
  286. data/assets/mermaid/mermaidAPI.spec.d.ts +1 -0
  287. data/assets/mermaid/mindmap-definition-307c710a.js +1177 -0
  288. data/assets/mermaid/mindmap-definition-696ddea4.js +32342 -0
  289. data/assets/mermaid/mindmap-definition-9399c7e6.js +18760 -0
  290. data/assets/mermaid/ordinal-475e0c0c.js +82 -0
  291. data/assets/mermaid/ordinal-5695958c.js +65 -0
  292. data/assets/mermaid/path-39bad7e2.js +118 -0
  293. data/assets/mermaid/path-428ebac9.js +91 -0
  294. data/assets/mermaid/pieDiagram-828dae43.js +502 -0
  295. data/assets/mermaid/pieDiagram-bb1d19e5.js +722 -0
  296. data/assets/mermaid/pieDiagram-e854eaf0.js +772 -0
  297. data/assets/mermaid/preprocess.d.ts +10 -0
  298. data/assets/mermaid/quadrantDiagram-25a9848b.js +1199 -0
  299. data/assets/mermaid/quadrantDiagram-5fa00455.js +904 -0
  300. data/assets/mermaid/quadrantDiagram-c759a472.js +1207 -0
  301. data/assets/mermaid/rendering-util/createText.d.ts +11 -0
  302. data/assets/mermaid/rendering-util/handle-markdown-text.d.ts +6 -0
  303. data/assets/mermaid/rendering-util/handle-markdown-text.spec.d.ts +1 -0
  304. data/assets/mermaid/rendering-util/selectSvgElement.d.ts +8 -0
  305. data/assets/mermaid/rendering-util/splitText.d.ts +24 -0
  306. data/assets/mermaid/rendering-util/splitText.spec.d.ts +1 -0
  307. data/assets/mermaid/rendering-util/uid.d.ts +8 -0
  308. data/assets/mermaid/requirementDiagram-03163dc4.js +769 -0
  309. data/assets/mermaid/requirementDiagram-87253d64.js +1098 -0
  310. data/assets/mermaid/requirementDiagram-a721e157.js +1091 -0
  311. data/assets/mermaid/sankeyDiagram-33525efb.js +1198 -0
  312. data/assets/mermaid/sankeyDiagram-52ec8976.js +818 -0
  313. data/assets/mermaid/sankeyDiagram-707fac0f.js +660 -0
  314. data/assets/mermaid/sequenceDiagram-6894f283.js +3346 -0
  315. data/assets/mermaid/sequenceDiagram-9813c129.js +3336 -0
  316. data/assets/mermaid/sequenceDiagram-b517d154.js +2234 -0
  317. data/assets/mermaid/setupGraphViewbox.d.ts +3 -0
  318. data/assets/mermaid/stateDiagram-5dee940d.js +474 -0
  319. data/assets/mermaid/stateDiagram-5ec31577.js +467 -0
  320. data/assets/mermaid/stateDiagram-fca82b5b.js +275 -0
  321. data/assets/mermaid/stateDiagram-v2-1992cada.js +333 -0
  322. data/assets/mermaid/stateDiagram-v2-992e82a1.js +325 -0
  323. data/assets/mermaid/stateDiagram-v2-ed04200a.js +190 -0
  324. data/assets/mermaid/styles-0784dbeb.js +1363 -0
  325. data/assets/mermaid/styles-11e81fdd.js +1089 -0
  326. data/assets/mermaid/styles-36a1a2e8.js +1483 -0
  327. data/assets/mermaid/styles-483fbfea.js +509 -0
  328. data/assets/mermaid/styles-727cdd61.js +571 -0
  329. data/assets/mermaid/styles-b83b31c9.js +1484 -0
  330. data/assets/mermaid/styles-cacbff60.js +960 -0
  331. data/assets/mermaid/styles-e75131e4.js +433 -0
  332. data/assets/mermaid/styles-f80da881.js +1363 -0
  333. data/assets/mermaid/styles.d.ts +12 -0
  334. data/assets/mermaid/styles.spec.d.ts +1 -0
  335. data/assets/mermaid/svgDrawCommon-5e1cfd1d.js +101 -0
  336. data/assets/mermaid/svgDrawCommon-d6ab583c.js +100 -0
  337. data/assets/mermaid/svgDrawCommon-ecc5f780.js +64 -0
  338. data/assets/mermaid/tests/MockedD3.d.ts +45 -0
  339. data/assets/mermaid/tests/setup.d.ts +1 -0
  340. data/assets/mermaid/tests/util.d.ts +3 -0
  341. data/assets/mermaid/themes/erDiagram-oldHardcodedValues.d.ts +7 -0
  342. data/assets/mermaid/themes/index.d.ts +24 -0
  343. data/assets/mermaid/themes/theme-base.d.ts +189 -0
  344. data/assets/mermaid/themes/theme-dark.d.ts +177 -0
  345. data/assets/mermaid/themes/theme-default.d.ts +188 -0
  346. data/assets/mermaid/themes/theme-forest.d.ts +185 -0
  347. data/assets/mermaid/themes/theme-helpers.d.ts +1 -0
  348. data/assets/mermaid/themes/theme-neutral.d.ts +182 -0
  349. data/assets/mermaid/timeline-definition-23ce0e2e.js +1211 -0
  350. data/assets/mermaid/timeline-definition-4ee9bff4.js +795 -0
  351. data/assets/mermaid/timeline-definition-bf702344.js +1219 -0
  352. data/assets/mermaid/types.d.ts +31 -0
  353. data/assets/mermaid/utils/imperativeState.d.ts +32 -0
  354. data/assets/mermaid/utils/imperativeState.spec.d.ts +1 -0
  355. data/assets/mermaid/utils/lineWithOffset.d.ts +5 -0
  356. data/assets/mermaid/utils/sanitizeDirective.d.ts +7 -0
  357. data/assets/mermaid/utils/subGraphTitleMargins.d.ts +8 -0
  358. data/assets/mermaid/utils/subGraphTitleMargins.spec.d.ts +1 -0
  359. data/assets/mermaid/utils.d.ts +286 -0
  360. data/assets/mermaid/utils.spec.d.ts +1 -0
  361. data/assets/mermaid/xychartDiagram-de2e5521.js +1800 -0
  362. data/assets/mermaid/xychartDiagram-e5e6b652.js +1284 -0
  363. data/assets/mermaid/xychartDiagram-f11f50a6.js +1745 -0
  364. data/assets/tables.css +23 -0
  365. data/assets/toURI.js +142 -0
  366. metadata +363 -2
@@ -0,0 +1,904 @@
1
+ import { Z as vt, W as E, l as lt, s as Lt, g as Ct, C as zt, D as bt, a as Et, b as Dt, c as yt, E as It, d as Bt, j as gt, k as wt } from "./mermaid-9f2aa176.js";
2
+ import { l as At } from "./linear-9bcf74c4.js";
3
+ import "./init-f9637058.js";
4
+ var pt = function() {
5
+ var e = function($, n, r, o) {
6
+ for (r = r || {}, o = $.length; o--; r[$[o]] = n)
7
+ ;
8
+ return r;
9
+ }, s = [1, 3], c = [1, 4], x = [1, 5], f = [1, 6], d = [1, 7], l = [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], g = [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], i = [32, 33, 34], q = [2, 7], b = [1, 13], D = [1, 17], w = [1, 18], I = [1, 19], B = [1, 20], p = [1, 21], H = [1, 22], G = [1, 23], K = [1, 24], at = [1, 25], nt = [1, 26], et = [1, 27], Q = [1, 30], N = [1, 31], T = [1, 32], m = [1, 33], A = [1, 34], t = [1, 35], _ = [1, 36], S = [1, 37], k = [1, 38], F = [1, 39], P = [1, 40], v = [1, 41], L = [1, 42], M = [1, 57], X = [1, 58], C = [5, 22, 26, 32, 33, 34, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], ht = {
10
+ trace: function() {
11
+ },
12
+ yy: {},
13
+ 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 },
14
+ 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" },
15
+ 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]],
16
+ performAction: function(n, r, o, h, y, a, it) {
17
+ var u = a.length - 1;
18
+ switch (y) {
19
+ case 12:
20
+ this.$ = a[u].trim(), h.setDiagramTitle(this.$);
21
+ break;
22
+ case 13:
23
+ this.$ = a[u].trim(), h.setAccTitle(this.$);
24
+ break;
25
+ case 14:
26
+ case 15:
27
+ this.$ = a[u].trim(), h.setAccDescription(this.$);
28
+ break;
29
+ case 16:
30
+ h.addSection(a[u].substr(8)), this.$ = a[u].substr(8);
31
+ break;
32
+ case 17:
33
+ h.addPoint(a[u - 3], a[u - 1], a[u]);
34
+ break;
35
+ case 18:
36
+ h.setXAxisLeftText(a[u - 2]), h.setXAxisRightText(a[u]);
37
+ break;
38
+ case 19:
39
+ a[u - 1].text += " ⟶ ", h.setXAxisLeftText(a[u - 1]);
40
+ break;
41
+ case 20:
42
+ h.setXAxisLeftText(a[u]);
43
+ break;
44
+ case 21:
45
+ h.setYAxisBottomText(a[u - 2]), h.setYAxisTopText(a[u]);
46
+ break;
47
+ case 22:
48
+ a[u - 1].text += " ⟶ ", h.setYAxisBottomText(a[u - 1]);
49
+ break;
50
+ case 23:
51
+ h.setYAxisBottomText(a[u]);
52
+ break;
53
+ case 24:
54
+ h.setQuadrant1Text(a[u]);
55
+ break;
56
+ case 25:
57
+ h.setQuadrant2Text(a[u]);
58
+ break;
59
+ case 26:
60
+ h.setQuadrant3Text(a[u]);
61
+ break;
62
+ case 27:
63
+ h.setQuadrant4Text(a[u]);
64
+ break;
65
+ case 31:
66
+ this.$ = { text: a[u], type: "text" };
67
+ break;
68
+ case 32:
69
+ this.$ = { text: a[u - 1].text + "" + a[u], type: a[u - 1].type };
70
+ break;
71
+ case 33:
72
+ this.$ = { text: a[u], type: "text" };
73
+ break;
74
+ case 34:
75
+ this.$ = { text: a[u], type: "markdown" };
76
+ break;
77
+ case 35:
78
+ this.$ = a[u];
79
+ break;
80
+ case 36:
81
+ this.$ = a[u - 1] + "" + a[u];
82
+ break;
83
+ }
84
+ },
85
+ table: [{ 3: 1, 4: 2, 5: s, 6: c, 32: x, 33: f, 34: d }, { 1: [3] }, { 3: 8, 4: 2, 5: s, 6: c, 32: x, 33: f, 34: d }, { 3: 9, 4: 2, 5: s, 6: c, 32: x, 33: f, 34: d }, e(l, [2, 4], { 7: 10 }), e(g, [2, 28]), e(g, [2, 29]), e(g, [2, 30]), { 1: [2, 1] }, { 1: [2, 2] }, e(i, q, { 8: 11, 9: 12, 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 1: [2, 3], 5: b, 13: D, 15: w, 17: I, 19: B, 20: p, 25: H, 27: G, 28: K, 29: at, 30: nt, 31: et, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }), e(l, [2, 5]), { 4: 43, 32: x, 33: f, 34: d }, e(i, q, { 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 9: 44, 5: b, 13: D, 15: w, 17: I, 19: B, 20: p, 25: H, 27: G, 28: K, 29: at, 30: nt, 31: et, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }), e(i, [2, 9]), e(i, [2, 10]), e(i, [2, 11]), { 14: [1, 45] }, { 16: [1, 46] }, { 18: [1, 47] }, e(i, [2, 15]), e(i, [2, 16]), { 21: 48, 35: 29, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 49, 35: 29, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 50, 35: 29, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 51, 35: 29, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 52, 35: 29, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 53, 35: 29, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 5: M, 22: [1, 54], 35: 56, 36: 55, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }, e(C, [2, 31]), e(C, [2, 33]), e(C, [2, 34]), e(C, [2, 37]), e(C, [2, 38]), e(C, [2, 39]), e(C, [2, 40]), e(C, [2, 41]), e(C, [2, 42]), e(C, [2, 43]), e(C, [2, 44]), e(C, [2, 45]), e(C, [2, 46]), e(C, [2, 47]), e(l, [2, 6]), e(i, [2, 8]), e(i, [2, 12]), e(i, [2, 13]), e(i, [2, 14]), e(i, [2, 20], { 36: 55, 35: 56, 5: M, 26: [1, 59], 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }), e(i, [2, 23], { 36: 55, 35: 56, 5: M, 26: [1, 60], 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }), e(i, [2, 24], { 36: 55, 35: 56, 5: M, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }), e(i, [2, 25], { 36: 55, 35: 56, 5: M, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }), e(i, [2, 26], { 36: 55, 35: 56, 5: M, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }), e(i, [2, 27], { 36: 55, 35: 56, 5: M, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }), { 23: [1, 61] }, e(C, [2, 32]), e(C, [2, 48]), e(C, [2, 49]), e(C, [2, 50]), e(i, [2, 19], { 35: 29, 21: 62, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }), e(i, [2, 22], { 35: 29, 21: 63, 37: Q, 38: N, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }), { 24: [1, 64] }, e(i, [2, 18], { 36: 55, 35: 56, 5: M, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }), e(i, [2, 21], { 36: 55, 35: 56, 5: M, 40: T, 41: m, 42: A, 43: t, 44: _, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: X }), e(i, [2, 17])],
86
+ defaultActions: { 8: [2, 1], 9: [2, 2] },
87
+ parseError: function(n, r) {
88
+ if (r.recoverable)
89
+ this.trace(n);
90
+ else {
91
+ var o = new Error(n);
92
+ throw o.hash = r, o;
93
+ }
94
+ },
95
+ parse: function(n) {
96
+ var r = this, o = [0], h = [], y = [null], a = [], it = this.table, u = "", st = 0, qt = 0, St = 2, Tt = 1, kt = a.slice.call(arguments, 1), z = Object.create(this.lexer), Z = { yy: {} };
97
+ for (var dt in this.yy)
98
+ Object.prototype.hasOwnProperty.call(this.yy, dt) && (Z.yy[dt] = this.yy[dt]);
99
+ z.setInput(n, Z.yy), Z.yy.lexer = z, Z.yy.parser = this, typeof z.yylloc > "u" && (z.yylloc = {});
100
+ var ut = z.yylloc;
101
+ a.push(ut);
102
+ var Ft = z.options && z.options.ranges;
103
+ typeof Z.yy.parseError == "function" ? this.parseError = Z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
104
+ function Pt() {
105
+ var Y;
106
+ return Y = h.pop() || z.lex() || Tt, typeof Y != "number" && (Y instanceof Array && (h = Y, Y = h.pop()), Y = r.symbols_[Y] || Y), Y;
107
+ }
108
+ for (var W, J, U, xt, tt = {}, rt, O, mt, ot; ; ) {
109
+ if (J = o[o.length - 1], this.defaultActions[J] ? U = this.defaultActions[J] : ((W === null || typeof W > "u") && (W = Pt()), U = it[J] && it[J][W]), typeof U > "u" || !U.length || !U[0]) {
110
+ var ft = "";
111
+ ot = [];
112
+ for (rt in it[J])
113
+ this.terminals_[rt] && rt > St && ot.push("'" + this.terminals_[rt] + "'");
114
+ z.showPosition ? ft = "Parse error on line " + (st + 1) + `:
115
+ ` + z.showPosition() + `
116
+ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ft = "Parse error on line " + (st + 1) + ": Unexpected " + (W == Tt ? "end of input" : "'" + (this.terminals_[W] || W) + "'"), this.parseError(ft, {
117
+ text: z.match,
118
+ token: this.terminals_[W] || W,
119
+ line: z.yylineno,
120
+ loc: ut,
121
+ expected: ot
122
+ });
123
+ }
124
+ if (U[0] instanceof Array && U.length > 1)
125
+ throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + W);
126
+ switch (U[0]) {
127
+ case 1:
128
+ o.push(W), y.push(z.yytext), a.push(z.yylloc), o.push(U[1]), W = null, qt = z.yyleng, u = z.yytext, st = z.yylineno, ut = z.yylloc;
129
+ break;
130
+ case 2:
131
+ if (O = this.productions_[U[1]][1], tt.$ = y[y.length - O], tt._$ = {
132
+ first_line: a[a.length - (O || 1)].first_line,
133
+ last_line: a[a.length - 1].last_line,
134
+ first_column: a[a.length - (O || 1)].first_column,
135
+ last_column: a[a.length - 1].last_column
136
+ }, Ft && (tt._$.range = [
137
+ a[a.length - (O || 1)].range[0],
138
+ a[a.length - 1].range[1]
139
+ ]), xt = this.performAction.apply(tt, [
140
+ u,
141
+ qt,
142
+ st,
143
+ Z.yy,
144
+ U[1],
145
+ y,
146
+ a
147
+ ].concat(kt)), typeof xt < "u")
148
+ return xt;
149
+ O && (o = o.slice(0, -1 * O * 2), y = y.slice(0, -1 * O), a = a.slice(0, -1 * O)), o.push(this.productions_[U[1]][0]), y.push(tt.$), a.push(tt._$), mt = it[o[o.length - 2]][o[o.length - 1]], o.push(mt);
150
+ break;
151
+ case 3:
152
+ return !0;
153
+ }
154
+ }
155
+ return !0;
156
+ }
157
+ }, _t = function() {
158
+ var $ = {
159
+ EOF: 1,
160
+ parseError: function(r, o) {
161
+ if (this.yy.parser)
162
+ this.yy.parser.parseError(r, o);
163
+ else
164
+ throw new Error(r);
165
+ },
166
+ // resets the lexer, sets new input
167
+ setInput: function(n, r) {
168
+ return this.yy = r || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
169
+ first_line: 1,
170
+ first_column: 0,
171
+ last_line: 1,
172
+ last_column: 0
173
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
174
+ },
175
+ // consumes and returns one char from the input
176
+ input: function() {
177
+ var n = this._input[0];
178
+ this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
179
+ var r = n.match(/(?:\r\n?|\n).*/g);
180
+ return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
181
+ },
182
+ // unshifts one char (or a string) into the input
183
+ unput: function(n) {
184
+ var r = n.length, o = n.split(/(?:\r\n?|\n)/g);
185
+ this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
186
+ var h = this.match.split(/(?:\r\n?|\n)/g);
187
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
188
+ var y = this.yylloc.range;
189
+ return this.yylloc = {
190
+ first_line: this.yylloc.first_line,
191
+ last_line: this.yylineno + 1,
192
+ first_column: this.yylloc.first_column,
193
+ last_column: o ? (o.length === h.length ? this.yylloc.first_column : 0) + h[h.length - o.length].length - o[0].length : this.yylloc.first_column - r
194
+ }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
195
+ },
196
+ // When called from action, caches matched text and appends it on next action
197
+ more: function() {
198
+ return this._more = !0, this;
199
+ },
200
+ // 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.
201
+ reject: function() {
202
+ if (this.options.backtrack_lexer)
203
+ this._backtrack = !0;
204
+ else
205
+ 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).
206
+ ` + this.showPosition(), {
207
+ text: "",
208
+ token: null,
209
+ line: this.yylineno
210
+ });
211
+ return this;
212
+ },
213
+ // retain first n characters of the match
214
+ less: function(n) {
215
+ this.unput(this.match.slice(n));
216
+ },
217
+ // displays already matched input, i.e. for error messages
218
+ pastInput: function() {
219
+ var n = this.matched.substr(0, this.matched.length - this.match.length);
220
+ return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
221
+ },
222
+ // displays upcoming input, i.e. for error messages
223
+ upcomingInput: function() {
224
+ var n = this.match;
225
+ return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
226
+ },
227
+ // displays the character position where the lexing error occurred, i.e. for error messages
228
+ showPosition: function() {
229
+ var n = this.pastInput(), r = new Array(n.length + 1).join("-");
230
+ return n + this.upcomingInput() + `
231
+ ` + r + "^";
232
+ },
233
+ // test the lexed token: return FALSE when not a match, otherwise return token
234
+ test_match: function(n, r) {
235
+ var o, h, y;
236
+ if (this.options.backtrack_lexer && (y = {
237
+ yylineno: this.yylineno,
238
+ yylloc: {
239
+ first_line: this.yylloc.first_line,
240
+ last_line: this.last_line,
241
+ first_column: this.yylloc.first_column,
242
+ last_column: this.yylloc.last_column
243
+ },
244
+ yytext: this.yytext,
245
+ match: this.match,
246
+ matches: this.matches,
247
+ matched: this.matched,
248
+ yyleng: this.yyleng,
249
+ offset: this.offset,
250
+ _more: this._more,
251
+ _input: this._input,
252
+ yy: this.yy,
253
+ conditionStack: this.conditionStack.slice(0),
254
+ done: this.done
255
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), h = n[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
256
+ first_line: this.yylloc.last_line,
257
+ last_line: this.yylineno + 1,
258
+ first_column: this.yylloc.last_column,
259
+ last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
260
+ }, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
261
+ return o;
262
+ if (this._backtrack) {
263
+ for (var a in y)
264
+ this[a] = y[a];
265
+ return !1;
266
+ }
267
+ return !1;
268
+ },
269
+ // return next match in input
270
+ next: function() {
271
+ if (this.done)
272
+ return this.EOF;
273
+ this._input || (this.done = !0);
274
+ var n, r, o, h;
275
+ this._more || (this.yytext = "", this.match = "");
276
+ for (var y = this._currentRules(), a = 0; a < y.length; a++)
277
+ if (o = this._input.match(this.rules[y[a]]), o && (!r || o[0].length > r[0].length)) {
278
+ if (r = o, h = a, this.options.backtrack_lexer) {
279
+ if (n = this.test_match(o, y[a]), n !== !1)
280
+ return n;
281
+ if (this._backtrack) {
282
+ r = !1;
283
+ continue;
284
+ } else
285
+ return !1;
286
+ } else if (!this.options.flex)
287
+ break;
288
+ }
289
+ return r ? (n = this.test_match(r, y[h]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
290
+ ` + this.showPosition(), {
291
+ text: "",
292
+ token: null,
293
+ line: this.yylineno
294
+ });
295
+ },
296
+ // return next match that has a token
297
+ lex: function() {
298
+ var r = this.next();
299
+ return r || this.lex();
300
+ },
301
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
302
+ begin: function(r) {
303
+ this.conditionStack.push(r);
304
+ },
305
+ // pop the previously active lexer condition state off the condition stack
306
+ popState: function() {
307
+ var r = this.conditionStack.length - 1;
308
+ return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
309
+ },
310
+ // produce the lexer rule set which is active for the currently active lexer condition state
311
+ _currentRules: function() {
312
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
313
+ },
314
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
315
+ topState: function(r) {
316
+ return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
317
+ },
318
+ // alias for begin(condition)
319
+ pushState: function(r) {
320
+ this.begin(r);
321
+ },
322
+ // return the number of states currently on the stack
323
+ stateStackSize: function() {
324
+ return this.conditionStack.length;
325
+ },
326
+ options: { "case-insensitive": !0 },
327
+ performAction: function(r, o, h, y) {
328
+ switch (h) {
329
+ case 0:
330
+ break;
331
+ case 1:
332
+ break;
333
+ case 2:
334
+ return 32;
335
+ case 3:
336
+ break;
337
+ case 4:
338
+ return this.begin("title"), 13;
339
+ case 5:
340
+ return this.popState(), "title_value";
341
+ case 6:
342
+ return this.begin("acc_title"), 15;
343
+ case 7:
344
+ return this.popState(), "acc_title_value";
345
+ case 8:
346
+ return this.begin("acc_descr"), 17;
347
+ case 9:
348
+ return this.popState(), "acc_descr_value";
349
+ case 10:
350
+ this.begin("acc_descr_multiline");
351
+ break;
352
+ case 11:
353
+ this.popState();
354
+ break;
355
+ case 12:
356
+ return "acc_descr_multiline_value";
357
+ case 13:
358
+ return 25;
359
+ case 14:
360
+ return 27;
361
+ case 15:
362
+ return 26;
363
+ case 16:
364
+ return 28;
365
+ case 17:
366
+ return 29;
367
+ case 18:
368
+ return 30;
369
+ case 19:
370
+ return 31;
371
+ case 20:
372
+ this.begin("md_string");
373
+ break;
374
+ case 21:
375
+ return "MD_STR";
376
+ case 22:
377
+ this.popState();
378
+ break;
379
+ case 23:
380
+ this.begin("string");
381
+ break;
382
+ case 24:
383
+ this.popState();
384
+ break;
385
+ case 25:
386
+ return "STR";
387
+ case 26:
388
+ return this.begin("point_start"), 22;
389
+ case 27:
390
+ return this.begin("point_x"), 23;
391
+ case 28:
392
+ this.popState();
393
+ break;
394
+ case 29:
395
+ this.popState(), this.begin("point_y");
396
+ break;
397
+ case 30:
398
+ return this.popState(), 24;
399
+ case 31:
400
+ return 6;
401
+ case 32:
402
+ return 43;
403
+ case 33:
404
+ return "COLON";
405
+ case 34:
406
+ return 45;
407
+ case 35:
408
+ return 44;
409
+ case 36:
410
+ return 46;
411
+ case 37:
412
+ return 46;
413
+ case 38:
414
+ return 47;
415
+ case 39:
416
+ return 49;
417
+ case 40:
418
+ return 50;
419
+ case 41:
420
+ return 48;
421
+ case 42:
422
+ return 41;
423
+ case 43:
424
+ return 51;
425
+ case 44:
426
+ return 42;
427
+ case 45:
428
+ return 5;
429
+ case 46:
430
+ return 33;
431
+ case 47:
432
+ return 40;
433
+ case 48:
434
+ return 34;
435
+ }
436
+ },
437
+ 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],
438
+ 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 } }
439
+ };
440
+ return $;
441
+ }();
442
+ ht.lexer = _t;
443
+ function ct() {
444
+ this.yy = {};
445
+ }
446
+ return ct.prototype = ht, ht.Parser = ct, new ct();
447
+ }();
448
+ pt.parser = pt;
449
+ const Rt = pt, V = vt();
450
+ class Vt {
451
+ constructor() {
452
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
453
+ }
454
+ getDefaultData() {
455
+ return {
456
+ titleText: "",
457
+ quadrant1Text: "",
458
+ quadrant2Text: "",
459
+ quadrant3Text: "",
460
+ quadrant4Text: "",
461
+ xAxisLeftText: "",
462
+ xAxisRightText: "",
463
+ yAxisBottomText: "",
464
+ yAxisTopText: "",
465
+ points: []
466
+ };
467
+ }
468
+ getDefaultConfig() {
469
+ var s, c, x, f, d, l, g, i, q, b, D, w, I, B, p, H, G, K;
470
+ return {
471
+ showXAxis: !0,
472
+ showYAxis: !0,
473
+ showTitle: !0,
474
+ chartHeight: ((s = E.quadrantChart) == null ? void 0 : s.chartWidth) || 500,
475
+ chartWidth: ((c = E.quadrantChart) == null ? void 0 : c.chartHeight) || 500,
476
+ titlePadding: ((x = E.quadrantChart) == null ? void 0 : x.titlePadding) || 10,
477
+ titleFontSize: ((f = E.quadrantChart) == null ? void 0 : f.titleFontSize) || 20,
478
+ quadrantPadding: ((d = E.quadrantChart) == null ? void 0 : d.quadrantPadding) || 5,
479
+ xAxisLabelPadding: ((l = E.quadrantChart) == null ? void 0 : l.xAxisLabelPadding) || 5,
480
+ yAxisLabelPadding: ((g = E.quadrantChart) == null ? void 0 : g.yAxisLabelPadding) || 5,
481
+ xAxisLabelFontSize: ((i = E.quadrantChart) == null ? void 0 : i.xAxisLabelFontSize) || 16,
482
+ yAxisLabelFontSize: ((q = E.quadrantChart) == null ? void 0 : q.yAxisLabelFontSize) || 16,
483
+ quadrantLabelFontSize: ((b = E.quadrantChart) == null ? void 0 : b.quadrantLabelFontSize) || 16,
484
+ quadrantTextTopPadding: ((D = E.quadrantChart) == null ? void 0 : D.quadrantTextTopPadding) || 5,
485
+ pointTextPadding: ((w = E.quadrantChart) == null ? void 0 : w.pointTextPadding) || 5,
486
+ pointLabelFontSize: ((I = E.quadrantChart) == null ? void 0 : I.pointLabelFontSize) || 12,
487
+ pointRadius: ((B = E.quadrantChart) == null ? void 0 : B.pointRadius) || 5,
488
+ xAxisPosition: ((p = E.quadrantChart) == null ? void 0 : p.xAxisPosition) || "top",
489
+ yAxisPosition: ((H = E.quadrantChart) == null ? void 0 : H.yAxisPosition) || "left",
490
+ quadrantInternalBorderStrokeWidth: ((G = E.quadrantChart) == null ? void 0 : G.quadrantInternalBorderStrokeWidth) || 1,
491
+ quadrantExternalBorderStrokeWidth: ((K = E.quadrantChart) == null ? void 0 : K.quadrantExternalBorderStrokeWidth) || 2
492
+ };
493
+ }
494
+ getDefaultThemeConfig() {
495
+ return {
496
+ quadrant1Fill: V.quadrant1Fill,
497
+ quadrant2Fill: V.quadrant2Fill,
498
+ quadrant3Fill: V.quadrant3Fill,
499
+ quadrant4Fill: V.quadrant4Fill,
500
+ quadrant1TextFill: V.quadrant1TextFill,
501
+ quadrant2TextFill: V.quadrant2TextFill,
502
+ quadrant3TextFill: V.quadrant3TextFill,
503
+ quadrant4TextFill: V.quadrant4TextFill,
504
+ quadrantPointFill: V.quadrantPointFill,
505
+ quadrantPointTextFill: V.quadrantPointTextFill,
506
+ quadrantXAxisTextFill: V.quadrantXAxisTextFill,
507
+ quadrantYAxisTextFill: V.quadrantYAxisTextFill,
508
+ quadrantTitleFill: V.quadrantTitleFill,
509
+ quadrantInternalBorderStrokeFill: V.quadrantInternalBorderStrokeFill,
510
+ quadrantExternalBorderStrokeFill: V.quadrantExternalBorderStrokeFill
511
+ };
512
+ }
513
+ clear() {
514
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), lt.info("clear called");
515
+ }
516
+ setData(s) {
517
+ this.data = { ...this.data, ...s };
518
+ }
519
+ addPoints(s) {
520
+ this.data.points = [...s, ...this.data.points];
521
+ }
522
+ setConfig(s) {
523
+ lt.trace("setConfig called with: ", s), this.config = { ...this.config, ...s };
524
+ }
525
+ setThemeConfig(s) {
526
+ lt.trace("setThemeConfig called with: ", s), this.themeConfig = { ...this.themeConfig, ...s };
527
+ }
528
+ calculateSpace(s, c, x, f) {
529
+ const d = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, l = {
530
+ top: s === "top" && c ? d : 0,
531
+ bottom: s === "bottom" && c ? d : 0
532
+ }, g = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, i = {
533
+ left: this.config.yAxisPosition === "left" && x ? g : 0,
534
+ right: this.config.yAxisPosition === "right" && x ? g : 0
535
+ }, q = this.config.titleFontSize + this.config.titlePadding * 2, b = {
536
+ top: f ? q : 0
537
+ }, D = this.config.quadrantPadding + i.left, w = this.config.quadrantPadding + l.top + b.top, I = this.config.chartWidth - this.config.quadrantPadding * 2 - i.left - i.right, B = this.config.chartHeight - this.config.quadrantPadding * 2 - l.top - l.bottom - b.top, p = I / 2, H = B / 2;
538
+ return {
539
+ xAxisSpace: l,
540
+ yAxisSpace: i,
541
+ titleSpace: b,
542
+ quadrantSpace: {
543
+ quadrantLeft: D,
544
+ quadrantTop: w,
545
+ quadrantWidth: I,
546
+ quadrantHalfWidth: p,
547
+ quadrantHeight: B,
548
+ quadrantHalfHeight: H
549
+ }
550
+ };
551
+ }
552
+ getAxisLabels(s, c, x, f) {
553
+ const { quadrantSpace: d, titleSpace: l } = f, {
554
+ quadrantHalfHeight: g,
555
+ quadrantHeight: i,
556
+ quadrantLeft: q,
557
+ quadrantHalfWidth: b,
558
+ quadrantTop: D,
559
+ quadrantWidth: w
560
+ } = d, I = !!this.data.xAxisRightText, B = !!this.data.yAxisTopText, p = [];
561
+ return this.data.xAxisLeftText && c && p.push({
562
+ text: this.data.xAxisLeftText,
563
+ fill: this.themeConfig.quadrantXAxisTextFill,
564
+ x: q + (I ? b / 2 : 0),
565
+ y: s === "top" ? this.config.xAxisLabelPadding + l.top : this.config.xAxisLabelPadding + D + i + this.config.quadrantPadding,
566
+ fontSize: this.config.xAxisLabelFontSize,
567
+ verticalPos: I ? "center" : "left",
568
+ horizontalPos: "top",
569
+ rotation: 0
570
+ }), this.data.xAxisRightText && c && p.push({
571
+ text: this.data.xAxisRightText,
572
+ fill: this.themeConfig.quadrantXAxisTextFill,
573
+ x: q + b + (I ? b / 2 : 0),
574
+ y: s === "top" ? this.config.xAxisLabelPadding + l.top : this.config.xAxisLabelPadding + D + i + this.config.quadrantPadding,
575
+ fontSize: this.config.xAxisLabelFontSize,
576
+ verticalPos: I ? "center" : "left",
577
+ horizontalPos: "top",
578
+ rotation: 0
579
+ }), this.data.yAxisBottomText && x && p.push({
580
+ text: this.data.yAxisBottomText,
581
+ fill: this.themeConfig.quadrantYAxisTextFill,
582
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + q + w + this.config.quadrantPadding,
583
+ y: D + i - (B ? g / 2 : 0),
584
+ fontSize: this.config.yAxisLabelFontSize,
585
+ verticalPos: B ? "center" : "left",
586
+ horizontalPos: "top",
587
+ rotation: -90
588
+ }), this.data.yAxisTopText && x && p.push({
589
+ text: this.data.yAxisTopText,
590
+ fill: this.themeConfig.quadrantYAxisTextFill,
591
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + q + w + this.config.quadrantPadding,
592
+ y: D + g - (B ? g / 2 : 0),
593
+ fontSize: this.config.yAxisLabelFontSize,
594
+ verticalPos: B ? "center" : "left",
595
+ horizontalPos: "top",
596
+ rotation: -90
597
+ }), p;
598
+ }
599
+ getQuadrants(s) {
600
+ const { quadrantSpace: c } = s, { quadrantHalfHeight: x, quadrantLeft: f, quadrantHalfWidth: d, quadrantTop: l } = c, g = [
601
+ {
602
+ text: {
603
+ text: this.data.quadrant1Text,
604
+ fill: this.themeConfig.quadrant1TextFill,
605
+ x: 0,
606
+ y: 0,
607
+ fontSize: this.config.quadrantLabelFontSize,
608
+ verticalPos: "center",
609
+ horizontalPos: "middle",
610
+ rotation: 0
611
+ },
612
+ x: f + d,
613
+ y: l,
614
+ width: d,
615
+ height: x,
616
+ fill: this.themeConfig.quadrant1Fill
617
+ },
618
+ {
619
+ text: {
620
+ text: this.data.quadrant2Text,
621
+ fill: this.themeConfig.quadrant2TextFill,
622
+ x: 0,
623
+ y: 0,
624
+ fontSize: this.config.quadrantLabelFontSize,
625
+ verticalPos: "center",
626
+ horizontalPos: "middle",
627
+ rotation: 0
628
+ },
629
+ x: f,
630
+ y: l,
631
+ width: d,
632
+ height: x,
633
+ fill: this.themeConfig.quadrant2Fill
634
+ },
635
+ {
636
+ text: {
637
+ text: this.data.quadrant3Text,
638
+ fill: this.themeConfig.quadrant3TextFill,
639
+ x: 0,
640
+ y: 0,
641
+ fontSize: this.config.quadrantLabelFontSize,
642
+ verticalPos: "center",
643
+ horizontalPos: "middle",
644
+ rotation: 0
645
+ },
646
+ x: f,
647
+ y: l + x,
648
+ width: d,
649
+ height: x,
650
+ fill: this.themeConfig.quadrant3Fill
651
+ },
652
+ {
653
+ text: {
654
+ text: this.data.quadrant4Text,
655
+ fill: this.themeConfig.quadrant4TextFill,
656
+ x: 0,
657
+ y: 0,
658
+ fontSize: this.config.quadrantLabelFontSize,
659
+ verticalPos: "center",
660
+ horizontalPos: "middle",
661
+ rotation: 0
662
+ },
663
+ x: f + d,
664
+ y: l + x,
665
+ width: d,
666
+ height: x,
667
+ fill: this.themeConfig.quadrant4Fill
668
+ }
669
+ ];
670
+ for (const i of g)
671
+ i.text.x = i.x + i.width / 2, this.data.points.length === 0 ? (i.text.y = i.y + i.height / 2, i.text.horizontalPos = "middle") : (i.text.y = i.y + this.config.quadrantTextTopPadding, i.text.horizontalPos = "top");
672
+ return g;
673
+ }
674
+ getQuadrantPoints(s) {
675
+ const { quadrantSpace: c } = s, { quadrantHeight: x, quadrantLeft: f, quadrantTop: d, quadrantWidth: l } = c, g = At().domain([0, 1]).range([f, l + f]), i = At().domain([0, 1]).range([x + d, d]);
676
+ return this.data.points.map((b) => ({
677
+ x: g(b.x),
678
+ y: i(b.y),
679
+ fill: this.themeConfig.quadrantPointFill,
680
+ radius: this.config.pointRadius,
681
+ text: {
682
+ text: b.text,
683
+ fill: this.themeConfig.quadrantPointTextFill,
684
+ x: g(b.x),
685
+ y: i(b.y) + this.config.pointTextPadding,
686
+ verticalPos: "center",
687
+ horizontalPos: "top",
688
+ fontSize: this.config.pointLabelFontSize,
689
+ rotation: 0
690
+ }
691
+ }));
692
+ }
693
+ getBorders(s) {
694
+ const c = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: x } = s, {
695
+ quadrantHalfHeight: f,
696
+ quadrantHeight: d,
697
+ quadrantLeft: l,
698
+ quadrantHalfWidth: g,
699
+ quadrantTop: i,
700
+ quadrantWidth: q
701
+ } = x;
702
+ return [
703
+ // top border
704
+ {
705
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
706
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
707
+ x1: l - c,
708
+ y1: i,
709
+ x2: l + q + c,
710
+ y2: i
711
+ },
712
+ // right border
713
+ {
714
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
715
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
716
+ x1: l + q,
717
+ y1: i + c,
718
+ x2: l + q,
719
+ y2: i + d - c
720
+ },
721
+ // bottom border
722
+ {
723
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
724
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
725
+ x1: l - c,
726
+ y1: i + d,
727
+ x2: l + q + c,
728
+ y2: i + d
729
+ },
730
+ // left border
731
+ {
732
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
733
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
734
+ x1: l,
735
+ y1: i + c,
736
+ x2: l,
737
+ y2: i + d - c
738
+ },
739
+ // vertical inner border
740
+ {
741
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
742
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
743
+ x1: l + g,
744
+ y1: i + c,
745
+ x2: l + g,
746
+ y2: i + d - c
747
+ },
748
+ // horizontal inner border
749
+ {
750
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
751
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
752
+ x1: l + c,
753
+ y1: i + f,
754
+ x2: l + q - c,
755
+ y2: i + f
756
+ }
757
+ ];
758
+ }
759
+ getTitle(s) {
760
+ if (s)
761
+ return {
762
+ text: this.data.titleText,
763
+ fill: this.themeConfig.quadrantTitleFill,
764
+ fontSize: this.config.titleFontSize,
765
+ horizontalPos: "top",
766
+ verticalPos: "center",
767
+ rotation: 0,
768
+ y: this.config.titlePadding,
769
+ x: this.config.chartWidth / 2
770
+ };
771
+ }
772
+ build() {
773
+ const s = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), c = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), x = this.config.showTitle && !!this.data.titleText, f = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, d = this.calculateSpace(f, s, c, x);
774
+ return {
775
+ points: this.getQuadrantPoints(d),
776
+ quadrants: this.getQuadrants(d),
777
+ axisLabels: this.getAxisLabels(f, s, c, d),
778
+ borderLines: this.getBorders(d),
779
+ title: this.getTitle(x)
780
+ };
781
+ }
782
+ }
783
+ const Wt = yt();
784
+ function j(e) {
785
+ return Bt(e.trim(), Wt);
786
+ }
787
+ const R = new Vt();
788
+ function Nt(e) {
789
+ R.setData({ quadrant1Text: j(e.text) });
790
+ }
791
+ function Ut(e) {
792
+ R.setData({ quadrant2Text: j(e.text) });
793
+ }
794
+ function Qt(e) {
795
+ R.setData({ quadrant3Text: j(e.text) });
796
+ }
797
+ function Ht(e) {
798
+ R.setData({ quadrant4Text: j(e.text) });
799
+ }
800
+ function Mt(e) {
801
+ R.setData({ xAxisLeftText: j(e.text) });
802
+ }
803
+ function Xt(e) {
804
+ R.setData({ xAxisRightText: j(e.text) });
805
+ }
806
+ function Ot(e) {
807
+ R.setData({ yAxisTopText: j(e.text) });
808
+ }
809
+ function Yt(e) {
810
+ R.setData({ yAxisBottomText: j(e.text) });
811
+ }
812
+ function jt(e, s, c) {
813
+ R.addPoints([{ x: s, y: c, text: j(e.text) }]);
814
+ }
815
+ function Gt(e) {
816
+ R.setConfig({ chartWidth: e });
817
+ }
818
+ function $t(e) {
819
+ R.setConfig({ chartHeight: e });
820
+ }
821
+ function Kt() {
822
+ const e = yt(), { themeVariables: s, quadrantChart: c } = e;
823
+ return c && R.setConfig(c), R.setThemeConfig({
824
+ quadrant1Fill: s.quadrant1Fill,
825
+ quadrant2Fill: s.quadrant2Fill,
826
+ quadrant3Fill: s.quadrant3Fill,
827
+ quadrant4Fill: s.quadrant4Fill,
828
+ quadrant1TextFill: s.quadrant1TextFill,
829
+ quadrant2TextFill: s.quadrant2TextFill,
830
+ quadrant3TextFill: s.quadrant3TextFill,
831
+ quadrant4TextFill: s.quadrant4TextFill,
832
+ quadrantPointFill: s.quadrantPointFill,
833
+ quadrantPointTextFill: s.quadrantPointTextFill,
834
+ quadrantXAxisTextFill: s.quadrantXAxisTextFill,
835
+ quadrantYAxisTextFill: s.quadrantYAxisTextFill,
836
+ quadrantExternalBorderStrokeFill: s.quadrantExternalBorderStrokeFill,
837
+ quadrantInternalBorderStrokeFill: s.quadrantInternalBorderStrokeFill,
838
+ quadrantTitleFill: s.quadrantTitleFill
839
+ }), R.setData({ titleText: bt() }), R.build();
840
+ }
841
+ const Zt = function() {
842
+ R.clear(), It();
843
+ }, Jt = {
844
+ setWidth: Gt,
845
+ setHeight: $t,
846
+ setQuadrant1Text: Nt,
847
+ setQuadrant2Text: Ut,
848
+ setQuadrant3Text: Qt,
849
+ setQuadrant4Text: Ht,
850
+ setXAxisLeftText: Mt,
851
+ setXAxisRightText: Xt,
852
+ setYAxisTopText: Ot,
853
+ setYAxisBottomText: Yt,
854
+ addPoint: jt,
855
+ getQuadrantData: Kt,
856
+ clear: Zt,
857
+ setAccTitle: Lt,
858
+ getAccTitle: Ct,
859
+ setDiagramTitle: zt,
860
+ getDiagramTitle: bt,
861
+ getAccDescription: Et,
862
+ setAccDescription: Dt
863
+ }, te = (e, s, c, x) => {
864
+ var T, m, A;
865
+ function f(t) {
866
+ return t === "top" ? "hanging" : "middle";
867
+ }
868
+ function d(t) {
869
+ return t === "left" ? "start" : "middle";
870
+ }
871
+ function l(t) {
872
+ return `translate(${t.x}, ${t.y}) rotate(${t.rotation || 0})`;
873
+ }
874
+ const g = yt();
875
+ lt.debug(`Rendering quadrant chart
876
+ ` + e);
877
+ const i = g.securityLevel;
878
+ let q;
879
+ i === "sandbox" && (q = gt("#i" + s));
880
+ const D = (i === "sandbox" ? gt(q.nodes()[0].contentDocument.body) : gt("body")).select(`[id="${s}"]`), w = D.append("g").attr("class", "main"), I = ((T = g.quadrantChart) == null ? void 0 : T.chartWidth) || 500, B = ((m = g.quadrantChart) == null ? void 0 : m.chartHeight) || 500;
881
+ wt(D, B, I, ((A = g.quadrantChart) == null ? void 0 : A.useMaxWidth) || !0), D.attr("viewBox", "0 0 " + I + " " + B), x.db.setHeight(B), x.db.setWidth(I);
882
+ const p = x.db.getQuadrantData(), H = w.append("g").attr("class", "quadrants"), G = w.append("g").attr("class", "border"), K = w.append("g").attr("class", "data-points"), at = w.append("g").attr("class", "labels"), nt = w.append("g").attr("class", "title");
883
+ p.title && nt.append("text").attr("x", 0).attr("y", 0).attr("fill", p.title.fill).attr("font-size", p.title.fontSize).attr("dominant-baseline", f(p.title.horizontalPos)).attr("text-anchor", d(p.title.verticalPos)).attr("transform", l(p.title)).text(p.title.text), p.borderLines && G.selectAll("line").data(p.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);
884
+ const et = H.selectAll("g.quadrant").data(p.quadrants).enter().append("g").attr("class", "quadrant");
885
+ et.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), et.append("text").attr("x", 0).attr("y", 0).attr("fill", (t) => t.text.fill).attr("font-size", (t) => t.text.fontSize).attr(
886
+ "dominant-baseline",
887
+ (t) => f(t.text.horizontalPos)
888
+ ).attr("text-anchor", (t) => d(t.text.verticalPos)).attr("transform", (t) => l(t.text)).text((t) => t.text.text), at.selectAll("g.label").data(p.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) => d(t.verticalPos)).attr("transform", (t) => l(t));
889
+ const N = K.selectAll("g.data-point").data(p.points).enter().append("g").attr("class", "data-point");
890
+ N.append("circle").attr("cx", (t) => t.x).attr("cy", (t) => t.y).attr("r", (t) => t.radius).attr("fill", (t) => t.fill), N.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(
891
+ "dominant-baseline",
892
+ (t) => f(t.text.horizontalPos)
893
+ ).attr("text-anchor", (t) => d(t.text.verticalPos)).attr("transform", (t) => l(t.text));
894
+ }, ee = {
895
+ draw: te
896
+ }, se = {
897
+ parser: Rt,
898
+ db: Jt,
899
+ renderer: ee,
900
+ styles: () => ""
901
+ };
902
+ export {
903
+ se as diagram
904
+ };