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,660 @@
1
+ import { c as getConfig, g as getAccTitle, s as setAccTitle, a as getAccDescription, b as setAccDescription, t as getDiagramTitle, q as setDiagramTitle, v as clear$1, e as common, K as defaultConfig, o as setupGraphViewbox } from "./mermaid-6dc72991.js";
2
+ import { select, scaleOrdinal, schemeTableau10 } from "d3";
3
+ import { sankey, sankeyLinkHorizontal, sankeyLeft, sankeyRight, sankeyCenter, sankeyJustify } from "d3-sankey";
4
+ import "ts-dedent";
5
+ import "dayjs";
6
+ import "@braintree/sanitize-url";
7
+ import "dompurify";
8
+ import "khroma";
9
+ import "lodash-es/memoize.js";
10
+ import "lodash-es/merge.js";
11
+ import "stylis";
12
+ import "lodash-es/isEmpty.js";
13
+ var parser = function() {
14
+ var o = function(k, v, o2, l) {
15
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
16
+ ;
17
+ return o2;
18
+ }, $V0 = [1, 9], $V1 = [1, 10], $V2 = [1, 5, 10, 12];
19
+ var parser2 = {
20
+ trace: function trace() {
21
+ },
22
+ yy: {},
23
+ symbols_: { "error": 2, "start": 3, "SANKEY": 4, "NEWLINE": 5, "csv": 6, "opt_eof": 7, "record": 8, "csv_tail": 9, "EOF": 10, "field[source]": 11, "COMMA": 12, "field[target]": 13, "field[value]": 14, "field": 15, "escaped": 16, "non_escaped": 17, "DQUOTE": 18, "ESCAPED_TEXT": 19, "NON_ESCAPED_TEXT": 20, "$accept": 0, "$end": 1 },
24
+ terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
25
+ productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
26
+ performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
27
+ var $0 = $$.length - 1;
28
+ switch (yystate) {
29
+ case 7:
30
+ const source = yy.findOrCreateNode($$[$0 - 4].trim().replaceAll('""', '"'));
31
+ const target = yy.findOrCreateNode($$[$0 - 2].trim().replaceAll('""', '"'));
32
+ const value = parseFloat($$[$0].trim());
33
+ yy.addLink(source, target, value);
34
+ break;
35
+ case 8:
36
+ case 9:
37
+ case 11:
38
+ this.$ = $$[$0];
39
+ break;
40
+ case 10:
41
+ this.$ = $$[$0 - 1];
42
+ break;
43
+ }
44
+ },
45
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: $V0, 20: $V1 }, { 1: [2, 6], 7: 11, 10: [1, 12] }, o($V1, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, o($V2, [2, 8]), o($V2, [2, 9]), { 19: [1, 16] }, o($V2, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, o($V1, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: $V0, 20: $V1 }, { 15: 18, 16: 7, 17: 8, 18: $V0, 20: $V1 }, { 18: [1, 19] }, o($V1, [2, 3]), { 12: [1, 20] }, o($V2, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: $V0, 20: $V1 }, o([1, 5, 10], [2, 7])],
46
+ defaultActions: { 11: [2, 1], 12: [2, 5] },
47
+ parseError: function parseError(str, hash) {
48
+ if (hash.recoverable) {
49
+ this.trace(str);
50
+ } else {
51
+ var error = new Error(str);
52
+ error.hash = hash;
53
+ throw error;
54
+ }
55
+ },
56
+ parse: function parse(input) {
57
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
58
+ var args = lstack.slice.call(arguments, 1);
59
+ var lexer2 = Object.create(this.lexer);
60
+ var sharedState = { yy: {} };
61
+ for (var k in this.yy) {
62
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
63
+ sharedState.yy[k] = this.yy[k];
64
+ }
65
+ }
66
+ lexer2.setInput(input, sharedState.yy);
67
+ sharedState.yy.lexer = lexer2;
68
+ sharedState.yy.parser = this;
69
+ if (typeof lexer2.yylloc == "undefined") {
70
+ lexer2.yylloc = {};
71
+ }
72
+ var yyloc = lexer2.yylloc;
73
+ lstack.push(yyloc);
74
+ var ranges = lexer2.options && lexer2.options.ranges;
75
+ if (typeof sharedState.yy.parseError === "function") {
76
+ this.parseError = sharedState.yy.parseError;
77
+ } else {
78
+ this.parseError = Object.getPrototypeOf(this).parseError;
79
+ }
80
+ function lex() {
81
+ var token;
82
+ token = tstack.pop() || lexer2.lex() || EOF;
83
+ if (typeof token !== "number") {
84
+ if (token instanceof Array) {
85
+ tstack = token;
86
+ token = tstack.pop();
87
+ }
88
+ token = self.symbols_[token] || token;
89
+ }
90
+ return token;
91
+ }
92
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
93
+ while (true) {
94
+ state = stack[stack.length - 1];
95
+ if (this.defaultActions[state]) {
96
+ action = this.defaultActions[state];
97
+ } else {
98
+ if (symbol === null || typeof symbol == "undefined") {
99
+ symbol = lex();
100
+ }
101
+ action = table[state] && table[state][symbol];
102
+ }
103
+ if (typeof action === "undefined" || !action.length || !action[0]) {
104
+ var errStr = "";
105
+ expected = [];
106
+ for (p in table[state]) {
107
+ if (this.terminals_[p] && p > TERROR) {
108
+ expected.push("'" + this.terminals_[p] + "'");
109
+ }
110
+ }
111
+ if (lexer2.showPosition) {
112
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
113
+ } else {
114
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
115
+ }
116
+ this.parseError(errStr, {
117
+ text: lexer2.match,
118
+ token: this.terminals_[symbol] || symbol,
119
+ line: lexer2.yylineno,
120
+ loc: yyloc,
121
+ expected
122
+ });
123
+ }
124
+ if (action[0] instanceof Array && action.length > 1) {
125
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
126
+ }
127
+ switch (action[0]) {
128
+ case 1:
129
+ stack.push(symbol);
130
+ vstack.push(lexer2.yytext);
131
+ lstack.push(lexer2.yylloc);
132
+ stack.push(action[1]);
133
+ symbol = null;
134
+ {
135
+ yyleng = lexer2.yyleng;
136
+ yytext = lexer2.yytext;
137
+ yylineno = lexer2.yylineno;
138
+ yyloc = lexer2.yylloc;
139
+ }
140
+ break;
141
+ case 2:
142
+ len = this.productions_[action[1]][1];
143
+ yyval.$ = vstack[vstack.length - len];
144
+ yyval._$ = {
145
+ first_line: lstack[lstack.length - (len || 1)].first_line,
146
+ last_line: lstack[lstack.length - 1].last_line,
147
+ first_column: lstack[lstack.length - (len || 1)].first_column,
148
+ last_column: lstack[lstack.length - 1].last_column
149
+ };
150
+ if (ranges) {
151
+ yyval._$.range = [
152
+ lstack[lstack.length - (len || 1)].range[0],
153
+ lstack[lstack.length - 1].range[1]
154
+ ];
155
+ }
156
+ r = this.performAction.apply(yyval, [
157
+ yytext,
158
+ yyleng,
159
+ yylineno,
160
+ sharedState.yy,
161
+ action[1],
162
+ vstack,
163
+ lstack
164
+ ].concat(args));
165
+ if (typeof r !== "undefined") {
166
+ return r;
167
+ }
168
+ if (len) {
169
+ stack = stack.slice(0, -1 * len * 2);
170
+ vstack = vstack.slice(0, -1 * len);
171
+ lstack = lstack.slice(0, -1 * len);
172
+ }
173
+ stack.push(this.productions_[action[1]][0]);
174
+ vstack.push(yyval.$);
175
+ lstack.push(yyval._$);
176
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
177
+ stack.push(newState);
178
+ break;
179
+ case 3:
180
+ return true;
181
+ }
182
+ }
183
+ return true;
184
+ }
185
+ };
186
+ var lexer = function() {
187
+ var lexer2 = {
188
+ EOF: 1,
189
+ parseError: function parseError(str, hash) {
190
+ if (this.yy.parser) {
191
+ this.yy.parser.parseError(str, hash);
192
+ } else {
193
+ throw new Error(str);
194
+ }
195
+ },
196
+ // resets the lexer, sets new input
197
+ setInput: function(input, yy) {
198
+ this.yy = yy || this.yy || {};
199
+ this._input = input;
200
+ this._more = this._backtrack = this.done = false;
201
+ this.yylineno = this.yyleng = 0;
202
+ this.yytext = this.matched = this.match = "";
203
+ this.conditionStack = ["INITIAL"];
204
+ this.yylloc = {
205
+ first_line: 1,
206
+ first_column: 0,
207
+ last_line: 1,
208
+ last_column: 0
209
+ };
210
+ if (this.options.ranges) {
211
+ this.yylloc.range = [0, 0];
212
+ }
213
+ this.offset = 0;
214
+ return this;
215
+ },
216
+ // consumes and returns one char from the input
217
+ input: function() {
218
+ var ch = this._input[0];
219
+ this.yytext += ch;
220
+ this.yyleng++;
221
+ this.offset++;
222
+ this.match += ch;
223
+ this.matched += ch;
224
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
225
+ if (lines) {
226
+ this.yylineno++;
227
+ this.yylloc.last_line++;
228
+ } else {
229
+ this.yylloc.last_column++;
230
+ }
231
+ if (this.options.ranges) {
232
+ this.yylloc.range[1]++;
233
+ }
234
+ this._input = this._input.slice(1);
235
+ return ch;
236
+ },
237
+ // unshifts one char (or a string) into the input
238
+ unput: function(ch) {
239
+ var len = ch.length;
240
+ var lines = ch.split(/(?:\r\n?|\n)/g);
241
+ this._input = ch + this._input;
242
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
243
+ this.offset -= len;
244
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
245
+ this.match = this.match.substr(0, this.match.length - 1);
246
+ this.matched = this.matched.substr(0, this.matched.length - 1);
247
+ if (lines.length - 1) {
248
+ this.yylineno -= lines.length - 1;
249
+ }
250
+ var r = this.yylloc.range;
251
+ this.yylloc = {
252
+ first_line: this.yylloc.first_line,
253
+ last_line: this.yylineno + 1,
254
+ first_column: this.yylloc.first_column,
255
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
256
+ };
257
+ if (this.options.ranges) {
258
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
259
+ }
260
+ this.yyleng = this.yytext.length;
261
+ return this;
262
+ },
263
+ // When called from action, caches matched text and appends it on next action
264
+ more: function() {
265
+ this._more = true;
266
+ return this;
267
+ },
268
+ // 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.
269
+ reject: function() {
270
+ if (this.options.backtrack_lexer) {
271
+ this._backtrack = true;
272
+ } else {
273
+ 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).\n" + this.showPosition(), {
274
+ text: "",
275
+ token: null,
276
+ line: this.yylineno
277
+ });
278
+ }
279
+ return this;
280
+ },
281
+ // retain first n characters of the match
282
+ less: function(n) {
283
+ this.unput(this.match.slice(n));
284
+ },
285
+ // displays already matched input, i.e. for error messages
286
+ pastInput: function() {
287
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
288
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
289
+ },
290
+ // displays upcoming input, i.e. for error messages
291
+ upcomingInput: function() {
292
+ var next = this.match;
293
+ if (next.length < 20) {
294
+ next += this._input.substr(0, 20 - next.length);
295
+ }
296
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
297
+ },
298
+ // displays the character position where the lexing error occurred, i.e. for error messages
299
+ showPosition: function() {
300
+ var pre = this.pastInput();
301
+ var c = new Array(pre.length + 1).join("-");
302
+ return pre + this.upcomingInput() + "\n" + c + "^";
303
+ },
304
+ // test the lexed token: return FALSE when not a match, otherwise return token
305
+ test_match: function(match, indexed_rule) {
306
+ var token, lines, backup;
307
+ if (this.options.backtrack_lexer) {
308
+ backup = {
309
+ yylineno: this.yylineno,
310
+ yylloc: {
311
+ first_line: this.yylloc.first_line,
312
+ last_line: this.last_line,
313
+ first_column: this.yylloc.first_column,
314
+ last_column: this.yylloc.last_column
315
+ },
316
+ yytext: this.yytext,
317
+ match: this.match,
318
+ matches: this.matches,
319
+ matched: this.matched,
320
+ yyleng: this.yyleng,
321
+ offset: this.offset,
322
+ _more: this._more,
323
+ _input: this._input,
324
+ yy: this.yy,
325
+ conditionStack: this.conditionStack.slice(0),
326
+ done: this.done
327
+ };
328
+ if (this.options.ranges) {
329
+ backup.yylloc.range = this.yylloc.range.slice(0);
330
+ }
331
+ }
332
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
333
+ if (lines) {
334
+ this.yylineno += lines.length;
335
+ }
336
+ this.yylloc = {
337
+ first_line: this.yylloc.last_line,
338
+ last_line: this.yylineno + 1,
339
+ first_column: this.yylloc.last_column,
340
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
341
+ };
342
+ this.yytext += match[0];
343
+ this.match += match[0];
344
+ this.matches = match;
345
+ this.yyleng = this.yytext.length;
346
+ if (this.options.ranges) {
347
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
348
+ }
349
+ this._more = false;
350
+ this._backtrack = false;
351
+ this._input = this._input.slice(match[0].length);
352
+ this.matched += match[0];
353
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
354
+ if (this.done && this._input) {
355
+ this.done = false;
356
+ }
357
+ if (token) {
358
+ return token;
359
+ } else if (this._backtrack) {
360
+ for (var k in backup) {
361
+ this[k] = backup[k];
362
+ }
363
+ return false;
364
+ }
365
+ return false;
366
+ },
367
+ // return next match in input
368
+ next: function() {
369
+ if (this.done) {
370
+ return this.EOF;
371
+ }
372
+ if (!this._input) {
373
+ this.done = true;
374
+ }
375
+ var token, match, tempMatch, index;
376
+ if (!this._more) {
377
+ this.yytext = "";
378
+ this.match = "";
379
+ }
380
+ var rules = this._currentRules();
381
+ for (var i = 0; i < rules.length; i++) {
382
+ tempMatch = this._input.match(this.rules[rules[i]]);
383
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
384
+ match = tempMatch;
385
+ index = i;
386
+ if (this.options.backtrack_lexer) {
387
+ token = this.test_match(tempMatch, rules[i]);
388
+ if (token !== false) {
389
+ return token;
390
+ } else if (this._backtrack) {
391
+ match = false;
392
+ continue;
393
+ } else {
394
+ return false;
395
+ }
396
+ } else if (!this.options.flex) {
397
+ break;
398
+ }
399
+ }
400
+ }
401
+ if (match) {
402
+ token = this.test_match(match, rules[index]);
403
+ if (token !== false) {
404
+ return token;
405
+ }
406
+ return false;
407
+ }
408
+ if (this._input === "") {
409
+ return this.EOF;
410
+ } else {
411
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
412
+ text: "",
413
+ token: null,
414
+ line: this.yylineno
415
+ });
416
+ }
417
+ },
418
+ // return next match that has a token
419
+ lex: function lex() {
420
+ var r = this.next();
421
+ if (r) {
422
+ return r;
423
+ } else {
424
+ return this.lex();
425
+ }
426
+ },
427
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
428
+ begin: function begin(condition) {
429
+ this.conditionStack.push(condition);
430
+ },
431
+ // pop the previously active lexer condition state off the condition stack
432
+ popState: function popState() {
433
+ var n = this.conditionStack.length - 1;
434
+ if (n > 0) {
435
+ return this.conditionStack.pop();
436
+ } else {
437
+ return this.conditionStack[0];
438
+ }
439
+ },
440
+ // produce the lexer rule set which is active for the currently active lexer condition state
441
+ _currentRules: function _currentRules() {
442
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
443
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
444
+ } else {
445
+ return this.conditions["INITIAL"].rules;
446
+ }
447
+ },
448
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
449
+ topState: function topState(n) {
450
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
451
+ if (n >= 0) {
452
+ return this.conditionStack[n];
453
+ } else {
454
+ return "INITIAL";
455
+ }
456
+ },
457
+ // alias for begin(condition)
458
+ pushState: function pushState(condition) {
459
+ this.begin(condition);
460
+ },
461
+ // return the number of states currently on the stack
462
+ stateStackSize: function stateStackSize() {
463
+ return this.conditionStack.length;
464
+ },
465
+ options: { "case-insensitive": true },
466
+ performAction: function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
467
+ switch ($avoiding_name_collisions) {
468
+ case 0:
469
+ this.pushState("csv");
470
+ return 4;
471
+ case 1:
472
+ return 10;
473
+ case 2:
474
+ return 5;
475
+ case 3:
476
+ return 12;
477
+ case 4:
478
+ this.pushState("escaped_text");
479
+ return 18;
480
+ case 5:
481
+ return 20;
482
+ case 6:
483
+ this.popState("escaped_text");
484
+ return 18;
485
+ case 7:
486
+ return 19;
487
+ }
488
+ },
489
+ rules: [/^(?:sankey-beta\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
490
+ conditions: { "csv": { "rules": [1, 2, 3, 4, 5, 6, 7], "inclusive": false }, "escaped_text": { "rules": [6, 7], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7], "inclusive": true } }
491
+ };
492
+ return lexer2;
493
+ }();
494
+ parser2.lexer = lexer;
495
+ function Parser() {
496
+ this.yy = {};
497
+ }
498
+ Parser.prototype = parser2;
499
+ parser2.Parser = Parser;
500
+ return new Parser();
501
+ }();
502
+ parser.parser = parser;
503
+ const parser$1 = parser;
504
+ let links = [];
505
+ let nodes = [];
506
+ let nodesMap = {};
507
+ const clear = () => {
508
+ links = [];
509
+ nodes = [];
510
+ nodesMap = {};
511
+ clear$1();
512
+ };
513
+ class SankeyLink {
514
+ constructor(source, target, value = 0) {
515
+ this.source = source;
516
+ this.target = target;
517
+ this.value = value;
518
+ }
519
+ }
520
+ const addLink = (source, target, value) => {
521
+ links.push(new SankeyLink(source, target, value));
522
+ };
523
+ class SankeyNode {
524
+ constructor(ID) {
525
+ this.ID = ID;
526
+ }
527
+ }
528
+ const findOrCreateNode = (ID) => {
529
+ ID = common.sanitizeText(ID, getConfig());
530
+ if (!nodesMap[ID]) {
531
+ nodesMap[ID] = new SankeyNode(ID);
532
+ nodes.push(nodesMap[ID]);
533
+ }
534
+ return nodesMap[ID];
535
+ };
536
+ const getNodes = () => nodes;
537
+ const getLinks = () => links;
538
+ const getGraph = () => ({
539
+ nodes: nodes.map((node) => ({ id: node.ID })),
540
+ links: links.map((link) => ({
541
+ source: link.source.ID,
542
+ target: link.target.ID,
543
+ value: link.value
544
+ }))
545
+ });
546
+ const db = {
547
+ nodesMap,
548
+ getConfig: () => getConfig().sankey,
549
+ getNodes,
550
+ getLinks,
551
+ getGraph,
552
+ addLink,
553
+ findOrCreateNode,
554
+ getAccTitle,
555
+ setAccTitle,
556
+ getAccDescription,
557
+ setAccDescription,
558
+ getDiagramTitle,
559
+ setDiagramTitle,
560
+ clear
561
+ };
562
+ const _Uid = class _Uid2 {
563
+ static next(name) {
564
+ return new _Uid2(name + ++_Uid2.count);
565
+ }
566
+ constructor(id) {
567
+ this.id = id;
568
+ this.href = `#${id}`;
569
+ }
570
+ toString() {
571
+ return "url(" + this.href + ")";
572
+ }
573
+ };
574
+ _Uid.count = 0;
575
+ let Uid = _Uid;
576
+ const alignmentsMap = {
577
+ left: sankeyLeft,
578
+ right: sankeyRight,
579
+ center: sankeyCenter,
580
+ justify: sankeyJustify
581
+ };
582
+ const draw = function(text, id, _version, diagObj) {
583
+ const { securityLevel, sankey: conf } = getConfig();
584
+ const defaultSankeyConfig = defaultConfig.sankey;
585
+ let sandboxElement;
586
+ if (securityLevel === "sandbox") {
587
+ sandboxElement = select("#i" + id);
588
+ }
589
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
590
+ const svg = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
591
+ const width = (conf == null ? void 0 : conf.width) ?? defaultSankeyConfig.width;
592
+ const height = (conf == null ? void 0 : conf.height) ?? defaultSankeyConfig.width;
593
+ const useMaxWidth = (conf == null ? void 0 : conf.useMaxWidth) ?? defaultSankeyConfig.useMaxWidth;
594
+ const nodeAlignment = (conf == null ? void 0 : conf.nodeAlignment) ?? defaultSankeyConfig.nodeAlignment;
595
+ const prefix = (conf == null ? void 0 : conf.prefix) ?? defaultSankeyConfig.prefix;
596
+ const suffix = (conf == null ? void 0 : conf.suffix) ?? defaultSankeyConfig.suffix;
597
+ const showValues = (conf == null ? void 0 : conf.showValues) ?? defaultSankeyConfig.showValues;
598
+ const graph = diagObj.db.getGraph();
599
+ const nodeAlign = alignmentsMap[nodeAlignment];
600
+ const nodeWidth = 10;
601
+ const sankey$1 = sankey().nodeId((d) => d.id).nodeWidth(nodeWidth).nodePadding(10 + (showValues ? 15 : 0)).nodeAlign(nodeAlign).extent([
602
+ [0, 0],
603
+ [width, height]
604
+ ]);
605
+ sankey$1(graph);
606
+ const colorScheme = scaleOrdinal(schemeTableau10);
607
+ svg.append("g").attr("class", "nodes").selectAll(".node").data(graph.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = Uid.next("node-")).id).attr("transform", function(d) {
608
+ return "translate(" + d.x0 + "," + d.y0 + ")";
609
+ }).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => {
610
+ return d.y1 - d.y0;
611
+ }).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => colorScheme(d.id));
612
+ const getText = ({ id: id2, value }) => {
613
+ if (!showValues) {
614
+ return id2;
615
+ }
616
+ return `${id2}
617
+ ${prefix}${Math.round(value * 100) / 100}${suffix}`;
618
+ };
619
+ svg.append("g").attr("class", "node-labels").attr("font-family", "sans-serif").attr("font-size", 14).selectAll("text").data(graph.nodes).join("text").attr("x", (d) => d.x0 < width / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${showValues ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < width / 2 ? "start" : "end").text(getText);
620
+ const link = svg.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(graph.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply");
621
+ const linkColor = (conf == null ? void 0 : conf.linkColor) || "gradient";
622
+ if (linkColor === "gradient") {
623
+ const gradient = link.append("linearGradient").attr("id", (d) => (d.uid = Uid.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (d) => d.source.x1).attr("x2", (d) => d.target.x0);
624
+ gradient.append("stop").attr("offset", "0%").attr("stop-color", (d) => colorScheme(d.source.id));
625
+ gradient.append("stop").attr("offset", "100%").attr("stop-color", (d) => colorScheme(d.target.id));
626
+ }
627
+ let coloring;
628
+ switch (linkColor) {
629
+ case "gradient":
630
+ coloring = (d) => d.uid;
631
+ break;
632
+ case "source":
633
+ coloring = (d) => colorScheme(d.source.id);
634
+ break;
635
+ case "target":
636
+ coloring = (d) => colorScheme(d.target.id);
637
+ break;
638
+ default:
639
+ coloring = linkColor;
640
+ }
641
+ link.append("path").attr("d", sankeyLinkHorizontal()).attr("stroke", coloring).attr("stroke-width", (d) => Math.max(1, d.width));
642
+ setupGraphViewbox(void 0, svg, 0, useMaxWidth);
643
+ };
644
+ const renderer = {
645
+ draw
646
+ };
647
+ const prepareTextForParsing = (text) => {
648
+ const textToParse = text.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, "\n").trim();
649
+ return textToParse;
650
+ };
651
+ const originalParse = parser$1.parse.bind(parser$1);
652
+ parser$1.parse = (text) => originalParse(prepareTextForParsing(text));
653
+ const diagram = {
654
+ parser: parser$1,
655
+ db,
656
+ renderer
657
+ };
658
+ export {
659
+ diagram
660
+ };