@toimc/markdown 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/dist/{bash-Cm4CVo6v.js → bash-CB7IBf-7.js} +0 -1
  4. package/dist/{CodeBlock.vue.d.ts → components/CodeBlock.vue.d.ts} +10 -1
  5. package/dist/components/CodeBlock.vue.d.ts.map +1 -0
  6. package/dist/components/LatexBlock.vue.d.ts.map +1 -0
  7. package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
  8. package/dist/components/MermaidBlock.vue.d.ts.map +1 -0
  9. package/dist/composables/useMarkdownIt.d.ts.map +1 -1
  10. package/dist/css-BNAk6GUm.js +1 -0
  11. package/dist/css-CSuiabBd.cjs +1 -0
  12. package/dist/css-XGfOcSWP.js +2 -0
  13. package/dist/css-hISgu-gn.cjs +1 -0
  14. package/dist/{github-dark-C85MA6EW.js → github-dark-HjHQSF6c.js} +1 -2
  15. package/dist/{github-light-Dzg0sEwI.js → github-light-BS4bTP_A.js} +1 -2
  16. package/dist/{go-BEdBk4fh.js → go-DM5FkVJr.js} +0 -1
  17. package/dist/{html-CptZ4PZn.cjs → html-B74xNLl7.cjs} +1 -1
  18. package/dist/html-BfvIZbOy.cjs +1 -0
  19. package/dist/{html-Ctxsat8s.js → html-CPRPPrI5.js} +4 -5
  20. package/dist/html-CicqKfTr.js +1 -0
  21. package/dist/index.cjs +63 -61
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.mjs +6136 -5530
  25. package/dist/{javascript-Bk0bJ4nQ.js → javascript-BA7R0ZzU.js} +0 -1
  26. package/dist/javascript-D3uiIYXW.js +1 -0
  27. package/dist/json-BxN5JlXF.js +1 -0
  28. package/dist/{json-DFt_0dbD.js → json-DzGpsm5O.js} +0 -1
  29. package/dist/{jsx-BHkwOr0x.js → jsx-OQctj7OM.js} +0 -1
  30. package/dist/katex.css +1 -1
  31. package/dist/{markdown-nUtTZkU8.js → markdown-CNVZ8ok-.js} +0 -1
  32. package/dist/markdown.css +1 -1
  33. package/dist/{python-D0AaDoWC.js → python-BHaXfePs.js} +0 -1
  34. package/dist/rust-CbGaYpW0.js +2 -0
  35. package/dist/rust-rQqn7k8G.cjs +1 -0
  36. package/dist/{scss-CoGT9c_3.js → scss-C-hhxfjO.js} +2 -3
  37. package/dist/{scss-BY5CCWQ_.cjs → scss-t_1qNxqd.cjs} +1 -1
  38. package/dist/sql-DbsWPbnd.js +2 -0
  39. package/dist/sql-Dz4D2KVE.cjs +1 -0
  40. package/dist/{tsx-Cb6KMAZH.js → tsx-6akVe_f1.js} +0 -1
  41. package/dist/typescript-BV-txBTG.js +1 -0
  42. package/dist/{typescript-C4BXhs_3.js → typescript-DB3hlC91.js} +0 -1
  43. package/dist/utils/formula-guard.d.ts +13 -0
  44. package/dist/utils/formula-guard.d.ts.map +1 -0
  45. package/dist/utils/split-lines.d.ts +10 -0
  46. package/dist/utils/split-lines.d.ts.map +1 -0
  47. package/dist/{vue-DG6ivzcc.cjs → vue-Dsb5eNKu.cjs} +1 -1
  48. package/dist/{vue-DcTnNxpt.js → vue-wUrCEfyQ.js} +9 -10
  49. package/dist/{yaml-DXmkPuRD.js → yaml-CcAIbj8h.js} +0 -1
  50. package/package.json +21 -17
  51. package/dist/CodeBlock.test.d.ts +0 -2
  52. package/dist/CodeBlock.test.d.ts.map +0 -1
  53. package/dist/CodeBlock.vue.d.ts.map +0 -1
  54. package/dist/LatexBlock.test.d.ts +0 -2
  55. package/dist/LatexBlock.test.d.ts.map +0 -1
  56. package/dist/LatexBlock.vue.d.ts.map +0 -1
  57. package/dist/MarkdownRenderer.test.d.ts +0 -2
  58. package/dist/MarkdownRenderer.test.d.ts.map +0 -1
  59. package/dist/MarkdownRenderer.vue.d.ts.map +0 -1
  60. package/dist/MermaidBlock.test.d.ts +0 -2
  61. package/dist/MermaidBlock.test.d.ts.map +0 -1
  62. package/dist/MermaidBlock.vue.d.ts.map +0 -1
  63. package/dist/abnfDiagram-N423BO3Z-CpvDGmAd.cjs +0 -1
  64. package/dist/abnfDiagram-N423BO3Z-DuAPsGBR.js +0 -89
  65. package/dist/arc-CFxpoaLu.js +0 -82
  66. package/dist/arc-Dh2Zrypi.cjs +0 -1
  67. package/dist/architecture-TIHT7OUA-CUym9zMN.cjs +0 -1
  68. package/dist/architecture-TIHT7OUA-DDwCCw0y.js +0 -3
  69. package/dist/architectureDiagram-T3A2C74G-CS6-PQjR.cjs +0 -36
  70. package/dist/architectureDiagram-T3A2C74G-d7xzbLJQ.js +0 -4155
  71. package/dist/array-CApNbSU9.js +0 -6
  72. package/dist/array-DZSRzHA_.cjs +0 -1
  73. package/dist/blockDiagram-VBNYF7ZC-CnvNE8Hq.js +0 -3157
  74. package/dist/blockDiagram-VBNYF7ZC-DVl7vKmv.cjs +0 -132
  75. package/dist/c4Diagram-5PPSVZJV-B1RTcquO.js +0 -2982
  76. package/dist/c4Diagram-5PPSVZJV-Djkk0hzr.cjs +0 -10
  77. package/dist/channel-CNZiSge7.cjs +0 -1
  78. package/dist/channel-CqlbSsMQ.js +0 -5
  79. package/dist/chunk-2GRJ4B5K-BgeLbn06.cjs +0 -1
  80. package/dist/chunk-2GRJ4B5K-C5VToU5T.js +0 -61
  81. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +0 -1
  82. package/dist/chunk-2Q5K7J3B-C3WfnuyI.js +0 -15
  83. package/dist/chunk-4I5QYGJK-Bs8S-Wfu.js +0 -275
  84. package/dist/chunk-4I5QYGJK-CBqJO_mi.cjs +0 -1
  85. package/dist/chunk-5RXB4S5H-BnJ1P9K2.js +0 -2042
  86. package/dist/chunk-5RXB4S5H-BtEDiC1U.cjs +0 -231
  87. package/dist/chunk-5VM5RSS4-BsUXY5k9.js +0 -5
  88. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +0 -15
  89. package/dist/chunk-6Q2QTUOP-C0P-wtth.js +0 -490
  90. package/dist/chunk-6Q2QTUOP-UC-G8b3B.cjs +0 -88
  91. package/dist/chunk-7BUUIJ7U-CZdUK2qY.js +0 -82
  92. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  93. package/dist/chunk-7Z6QIM7H-CJdupq9f.js +0 -593
  94. package/dist/chunk-7Z6QIM7H-CUGcycR0.cjs +0 -10
  95. package/dist/chunk-GF5L2VYU-CDGpCl8Z.js +0 -3357
  96. package/dist/chunk-GF5L2VYU-DWhSvqYP.cjs +0 -206
  97. package/dist/chunk-I66GZJ75-D8wVRUgw.cjs +0 -127
  98. package/dist/chunk-I66GZJ75-xmbkwRyp.js +0 -3754
  99. package/dist/chunk-JQJVKLGR-B-jNEb9r.js +0 -4135
  100. package/dist/chunk-JQJVKLGR-CbhQdRxu.cjs +0 -156
  101. package/dist/chunk-JWPE2WC7-B8JIODrM.js +0 -8
  102. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +0 -1
  103. package/dist/chunk-KBJHAD2P-BMuT9eJO.cjs +0 -1
  104. package/dist/chunk-KBJHAD2P-CCpB6hWQ.js +0 -26
  105. package/dist/chunk-KEIR6QF5-RwFi50en.js +0 -21456
  106. package/dist/chunk-KEIR6QF5-rUKzMPy0.cjs +0 -161
  107. package/dist/chunk-NSK5VX7P-BO1SrWAL.js +0 -1335
  108. package/dist/chunk-NSK5VX7P-BiC_63US.cjs +0 -2
  109. package/dist/chunk-QR6OTTB3-BSxbyKp_.cjs +0 -62
  110. package/dist/chunk-QR6OTTB3-CGxJcV-X.js +0 -3738
  111. package/dist/chunk-RYQCIY6F-Lf2oVMMh.cjs +0 -1
  112. package/dist/chunk-RYQCIY6F-UBebC0ib.js +0 -241
  113. package/dist/chunk-UBXNYLIW-BURVNZm2.cjs +0 -1
  114. package/dist/chunk-UBXNYLIW-fOGkdEwd.js +0 -32
  115. package/dist/chunk-W5SLKNZC-BLFqePZ1.cjs +0 -1
  116. package/dist/chunk-W5SLKNZC-C2SYjJjL.js +0 -67
  117. package/dist/chunk-WRU74C26-Cr4HTCc1.cjs +0 -70
  118. package/dist/chunk-WRU74C26-UGtU6H2a.js +0 -1636
  119. package/dist/chunk-XXDRQBXY-GENMsCHk.js +0 -9
  120. package/dist/chunk-XXDRQBXY-yMT3rT5Y.cjs +0 -1
  121. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +0 -1
  122. package/dist/chunk-Y2CYZVJY-DO9UHHon.js +0 -12
  123. package/dist/classDiagram-JCYQIIEL-DUjWUDYG.cjs +0 -1
  124. package/dist/classDiagram-JCYQIIEL-Dm9anlJw.js +0 -30
  125. package/dist/classDiagram-v2-OCEON4UE-Bl-vyFyz.js +0 -30
  126. package/dist/classDiagram-v2-OCEON4UE-DUjWUDYG.cjs +0 -1
  127. package/dist/composables/useHighlighter.test.d.ts +0 -2
  128. package/dist/composables/useHighlighter.test.d.ts.map +0 -1
  129. package/dist/composables/useMarkdownIt.test.d.ts +0 -2
  130. package/dist/composables/useMarkdownIt.test.d.ts.map +0 -1
  131. package/dist/composables/useShikiTokenizer.test.d.ts +0 -2
  132. package/dist/composables/useShikiTokenizer.test.d.ts.map +0 -1
  133. package/dist/composables/useStreamingMarkdown.test.d.ts +0 -2
  134. package/dist/composables/useStreamingMarkdown.test.d.ts.map +0 -1
  135. package/dist/cose-bilkent-JH36ORCC-C1RCVzVZ.cjs +0 -1
  136. package/dist/cose-bilkent-JH36ORCC-C5FbROLY.js +0 -2254
  137. package/dist/css-BbwcBM_4.js +0 -2
  138. package/dist/css-CEHhC-OC.cjs +0 -1
  139. package/dist/css-Ca3W2DHx.cjs +0 -1
  140. package/dist/css-HuzvwXs-.js +0 -3
  141. package/dist/cynefin-VYW2F7L2-CMgnLl46.js +0 -3
  142. package/dist/cynefin-VYW2F7L2-DVi1CF5b.cjs +0 -1
  143. package/dist/cynefinDiagram-MW4NZA55-CkZY080C.cjs +0 -62
  144. package/dist/cynefinDiagram-MW4NZA55-DbAAx9CC.js +0 -355
  145. package/dist/cytoscape.esm-BKhIYxsH.cjs +0 -321
  146. package/dist/cytoscape.esm-DMXbtFI-.js +0 -18145
  147. package/dist/dagre-DarAkhy1.cjs +0 -1
  148. package/dist/dagre-VZM6K2ZE-CpL0s3GG.js +0 -328
  149. package/dist/dagre-VZM6K2ZE-D1_S1oSj.cjs +0 -4
  150. package/dist/dagre-x4cMb6gU.js +0 -1699
  151. package/dist/defaultLocale-ybN1Vtvg.cjs +0 -1
  152. package/dist/defaultLocale-yzzuPw6P.js +0 -198
  153. package/dist/diagram-7IWD3JNH-BXvOBw2z.js +0 -300
  154. package/dist/diagram-7IWD3JNH-W-Kjft6l.cjs +0 -30
  155. package/dist/diagram-B4RE2ZJO-C4lLgW4X.cjs +0 -3
  156. package/dist/diagram-B4RE2ZJO-DyAAD_bR.js +0 -432
  157. package/dist/diagram-LBJQPF4R-BTgCWP5o.cjs +0 -24
  158. package/dist/diagram-LBJQPF4R-BbMQOpt2.js +0 -134
  159. package/dist/diagram-Q27KOJAE-ink_R6qE.js +0 -527
  160. package/dist/diagram-Q27KOJAE-v-ZMzCxs.cjs +0 -24
  161. package/dist/diagram-UB23O5K3-BXTm2BG0.cjs +0 -41
  162. package/dist/diagram-UB23O5K3-C6rqCJBb.js +0 -214
  163. package/dist/dist-BP2me-br.js +0 -59
  164. package/dist/dist-Dwv2VYAL.cjs +0 -1
  165. package/dist/ebnfDiagram-BXEA7PRR-C80cjdjP.js +0 -100
  166. package/dist/ebnfDiagram-BXEA7PRR-lKO9XwUp.cjs +0 -1
  167. package/dist/erDiagram-JOGREHBK-Blwfr6w3.js +0 -1727
  168. package/dist/erDiagram-JOGREHBK-ChgcmULa.cjs +0 -85
  169. package/dist/eventmodeling-45OFAUF4-BDhzj03B.js +0 -3
  170. package/dist/eventmodeling-45OFAUF4-BtU19idK.cjs +0 -1
  171. package/dist/flowDiagram-UKHOOZJN-Co0JpKUU.js +0 -16
  172. package/dist/flowDiagram-UKHOOZJN-db1Ur2LI.cjs +0 -1
  173. package/dist/ganttDiagram-PKOTCBZU-Byi4E8Ye.js +0 -3073
  174. package/dist/ganttDiagram-PKOTCBZU-C_Vwv1o8.cjs +0 -292
  175. package/dist/gitGraph-TEB2WS4Q-CAeGPNFR.cjs +0 -1
  176. package/dist/gitGraph-TEB2WS4Q-DJA_hE4G.js +0 -3
  177. package/dist/gitGraphDiagram-DS77QQ5N-BG8AQVtP.js +0 -733
  178. package/dist/gitGraphDiagram-DS77QQ5N-DK9VJTjf.cjs +0 -106
  179. package/dist/graphlib-BaETKKSa.cjs +0 -1
  180. package/dist/graphlib-DoD0LnUK.js +0 -1267
  181. package/dist/html-BH9giSUA.js +0 -2
  182. package/dist/html-DtqQp8LO.cjs +0 -1
  183. package/dist/info-DKCQHKI2-BD_vOCz6.js +0 -3
  184. package/dist/info-DKCQHKI2-p0Lazone.cjs +0 -1
  185. package/dist/infoDiagram-6WML65LV-B6PBOy7T.js +0 -20
  186. package/dist/infoDiagram-6WML65LV-nBSrP53Z.cjs +0 -2
  187. package/dist/init-BJdqMO10.cjs +0 -1
  188. package/dist/init-sjaVZO3f.js +0 -13
  189. package/dist/ishikawaDiagram-WSZJBQD7-BxEkaF2A.js +0 -719
  190. package/dist/ishikawaDiagram-WSZJBQD7-CjyKQ_N6.cjs +0 -70
  191. package/dist/javascript--0qAxhnA.js +0 -2
  192. package/dist/journeyDiagram-NVQOT4AX-BPCuqjbW.js +0 -884
  193. package/dist/journeyDiagram-NVQOT4AX-DKgEeNcy.cjs +0 -139
  194. package/dist/json-DVwBUiza.js +0 -2
  195. package/dist/kanban-definition-27J2QSJJ-BeKnR9zB.cjs +0 -89
  196. package/dist/kanban-definition-27J2QSJJ-D1pVuCv2.js +0 -974
  197. package/dist/katex-BfeHGk4M.js +0 -21977
  198. package/dist/katex-CEF6MvLx.cjs +0 -257
  199. package/dist/line-8EHPtDZA.cjs +0 -1
  200. package/dist/line-BifI9Y7j.js +0 -34
  201. package/dist/linear-Nt9BuHfn.cjs +0 -1
  202. package/dist/linear-l8AD1ib_.js +0 -288
  203. package/dist/map-CCpPjiU9.cjs +0 -1
  204. package/dist/map-DUk1uXZC.js +0 -241
  205. package/dist/mermaid-parser.core-BupC9XGF.js +0 -638
  206. package/dist/mermaid-parser.core-aXxW1VLR.cjs +0 -6
  207. package/dist/mermaid.core-C05C5gh_.cjs +0 -41
  208. package/dist/mermaid.core-CxM-VhZd.js +0 -2297
  209. package/dist/mindmap-definition-FAOFIHXS-B_k8KOvw.js +0 -1006
  210. package/dist/mindmap-definition-FAOFIHXS-CKPAiVKf.cjs +0 -96
  211. package/dist/ordinal-Bm_chml2.cjs +0 -1
  212. package/dist/ordinal-CNQzPcrr.js +0 -65
  213. package/dist/packet-7NZHBO7P-CVdRavgo.cjs +0 -1
  214. package/dist/packet-7NZHBO7P-CgBlALV1.js +0 -3
  215. package/dist/path-DIS6ck99.cjs +0 -1
  216. package/dist/path-DVvH25eQ.js +0 -84
  217. package/dist/pegDiagram-VL7TDLO6-B5Jhedbv.cjs +0 -1
  218. package/dist/pegDiagram-VL7TDLO6-PP-A-3Lv.js +0 -94
  219. package/dist/pie-RZYD4A2V-CryPC-P_.js +0 -3
  220. package/dist/pie-RZYD4A2V-CwDJ0bEW.cjs +0 -1
  221. package/dist/pieDiagram-7S7Q4E2Y-CgDU9E10.cjs +0 -39
  222. package/dist/pieDiagram-7S7Q4E2Y-CxNt1xaN.js +0 -203
  223. package/dist/quadrantDiagram-CIZ2JOQS-CMUanfcR.js +0 -2001
  224. package/dist/quadrantDiagram-CIZ2JOQS-vybEBK1o.cjs +0 -7
  225. package/dist/radar-I7S5WNFK-DaVgEjvC.cjs +0 -1
  226. package/dist/radar-I7S5WNFK-DgzJDRy3.js +0 -3
  227. package/dist/railroad-3IZDKUUU-BPsrMjqz.cjs +0 -1
  228. package/dist/railroad-3IZDKUUU-DFp3mbpB.js +0 -3
  229. package/dist/railroad-abnf-AHOZXSZD-BRjidKH0.js +0 -3
  230. package/dist/railroad-abnf-AHOZXSZD-ZpHq_KEy.cjs +0 -1
  231. package/dist/railroad-ebnf-EBAXGLYW-B45niwuq.cjs +0 -1
  232. package/dist/railroad-ebnf-EBAXGLYW-PgrDWact.js +0 -3
  233. package/dist/railroad-peg-LSFZ7HO6-CMKir81Y.js +0 -3
  234. package/dist/railroad-peg-LSFZ7HO6-DUsuEX2Z.cjs +0 -1
  235. package/dist/railroadDiagram-AXF67PYL-D7y_2yAa.cjs +0 -1
  236. package/dist/railroadDiagram-AXF67PYL-iLkvx2oU.js +0 -76
  237. package/dist/renderers/tokensToHtml.test.d.ts +0 -2
  238. package/dist/renderers/tokensToHtml.test.d.ts.map +0 -1
  239. package/dist/requirementDiagram-LRYGKXZP-Bs2mCDzB.js +0 -2223
  240. package/dist/requirementDiagram-LRYGKXZP-lA2nVr6h.cjs +0 -84
  241. package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
  242. package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
  243. package/dist/rough.esm-B2w_aYoc.js +0 -1361
  244. package/dist/rough.esm-ChRLLRha.cjs +0 -1
  245. package/dist/rust-BrRMzTsN.js +0 -3
  246. package/dist/rust-DWYDZl_E.cjs +0 -1
  247. package/dist/sankeyDiagram-W5VNT64P-BxYQllhE.js +0 -972
  248. package/dist/sankeyDiagram-W5VNT64P-vPci5pOT.cjs +0 -40
  249. package/dist/sequenceDiagram-SI44F4Z6-BNu1-3EN.cjs +0 -162
  250. package/dist/sequenceDiagram-SI44F4Z6-E6AoYU_R.js +0 -4156
  251. package/dist/sizeCapture-X5ZJPWSS-8gbZlYqg.js +0 -46
  252. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +0 -1
  253. package/dist/sql-CF-HzF4U.cjs +0 -1
  254. package/dist/sql-DvCCsF21.js +0 -3
  255. package/dist/src-C7bjHtAI.js +0 -2139
  256. package/dist/src-D9o9TOtH.cjs +0 -1
  257. package/dist/stateDiagram-OKZ733FA-B7ITlY91.cjs +0 -1
  258. package/dist/stateDiagram-OKZ733FA-BfcOAK65.js +0 -220
  259. package/dist/stateDiagram-v2-UEYNNEHI-BHO-uUPG.js +0 -30
  260. package/dist/stateDiagram-v2-UEYNNEHI-lgGjJyRM.cjs +0 -1
  261. package/dist/swimlanes-SLNWSIFB-BHIPInzG.js +0 -5069
  262. package/dist/swimlanes-SLNWSIFB-C-Z31wMl.cjs +0 -1
  263. package/dist/swimlanesDiagram-ULZ7WXOC-C8pvRoyc.cjs +0 -8
  264. package/dist/swimlanesDiagram-ULZ7WXOC-CK6AVyRM.js +0 -30
  265. package/dist/timeline-definition-Z64GVDOM-C31otJwb.cjs +0 -120
  266. package/dist/timeline-definition-Z64GVDOM-rUKJY7cp.js +0 -1069
  267. package/dist/treeView-QDETBFTQ-BkNUN560.cjs +0 -1
  268. package/dist/treeView-QDETBFTQ-DVp4aTZQ.js +0 -3
  269. package/dist/treemap-6X3UGDF4-BbBnHMHJ.js +0 -3
  270. package/dist/treemap-6X3UGDF4-BcO657a2.cjs +0 -1
  271. package/dist/typescript-DFf19o_s.js +0 -2
  272. package/dist/utils/extractCompleteMarkdown.test.d.ts +0 -2
  273. package/dist/utils/extractCompleteMarkdown.test.d.ts.map +0 -1
  274. package/dist/vennDiagram-T6HMQDX7-DjlTuTEH.cjs +0 -34
  275. package/dist/vennDiagram-T6HMQDX7-vxMe-3nF.js +0 -1880
  276. package/dist/wardley-OPB4EBWU-B-RXhnoN.js +0 -3
  277. package/dist/wardley-OPB4EBWU-CiILNYeL.cjs +0 -1
  278. package/dist/wardleyDiagram-T6FBY63Y-BMQLZV1W.cjs +0 -78
  279. package/dist/wardleyDiagram-T6FBY63Y-C_Q2NmJu.js +0 -645
  280. package/dist/xychartDiagram-ELKLHX3M-Bsa_zeyd.cjs +0 -7
  281. package/dist/xychartDiagram-ELKLHX3M-OcVmrPL6.js +0 -2101
  282. /package/dist/{LatexBlock.vue.d.ts → components/LatexBlock.vue.d.ts} +0 -0
  283. /package/dist/{MarkdownRenderer.vue.d.ts → components/MarkdownRenderer.vue.d.ts} +0 -0
  284. /package/dist/{MermaidBlock.vue.d.ts → components/MermaidBlock.vue.d.ts} +0 -0
@@ -1,1006 +0,0 @@
1
- import { n as e } from "./chunk-Y2CYZVJY-DO9UHHon.js";
2
- import { m as t } from "./src-C7bjHtAI.js";
3
- import { b as n, et as r, f as i, k as a, rt as o, tt as s, x as c, z as l } from "./chunk-I66GZJ75-xmbkwRyp.js";
4
- import "./chunk-NSK5VX7P-BO1SrWAL.js";
5
- import "./chunk-4I5QYGJK-Bs8S-Wfu.js";
6
- import "./chunk-WRU74C26-UGtU6H2a.js";
7
- import "./chunk-7BUUIJ7U-CZdUK2qY.js";
8
- import "./chunk-UBXNYLIW-fOGkdEwd.js";
9
- import { t as u } from "./chunk-XXDRQBXY-GENMsCHk.js";
10
- import { t as d } from "./chunk-KBJHAD2P-CCpB6hWQ.js";
11
- import "./chunk-W5SLKNZC-C2SYjJjL.js";
12
- import "./chunk-QR6OTTB3-CGxJcV-X.js";
13
- import "./chunk-7Z6QIM7H-CJdupq9f.js";
14
- import { i as f, r as p } from "./mermaid.core-CxM-VhZd.js";
15
- //#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/stringify.js
16
- var m = [];
17
- for (let e = 0; e < 256; ++e) m.push((e + 256).toString(16).slice(1));
18
- function h(e, t = 0) {
19
- return (m[e[t + 0]] + m[e[t + 1]] + m[e[t + 2]] + m[e[t + 3]] + "-" + m[e[t + 4]] + m[e[t + 5]] + "-" + m[e[t + 6]] + m[e[t + 7]] + "-" + m[e[t + 8]] + m[e[t + 9]] + "-" + m[e[t + 10]] + m[e[t + 11]] + m[e[t + 12]] + m[e[t + 13]] + m[e[t + 14]] + m[e[t + 15]]).toLowerCase();
20
- }
21
- //#endregion
22
- //#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/rng.js
23
- var g = /* @__PURE__ */ new Uint8Array(16);
24
- function _() {
25
- return crypto.getRandomValues(g);
26
- }
27
- //#endregion
28
- //#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/v4.js
29
- function v(e, t, n) {
30
- return !t && !e && crypto.randomUUID ? crypto.randomUUID() : y(e, t, n);
31
- }
32
- function y(e, t, n) {
33
- e ||= {};
34
- let r = e.random ?? e.rng?.() ?? _();
35
- if (r.length < 16) throw Error("Random bytes length must be >= 16");
36
- if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
37
- if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
38
- for (let e = 0; e < 16; ++e) t[n + e] = r[e];
39
- return t;
40
- }
41
- return h(r);
42
- }
43
- //#endregion
44
- //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.mjs
45
- var b = (function() {
46
- var t = /* @__PURE__ */ e(function(e, t, n, r) {
47
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
48
- return n;
49
- }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
50
- 6,
51
- 7,
52
- 8
53
- ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
54
- 6,
55
- 7,
56
- 11
57
- ], m = [
58
- 1,
59
- 6,
60
- 13,
61
- 15,
62
- 16,
63
- 19,
64
- 22
65
- ], h = [1, 33], g = [1, 34], _ = [
66
- 1,
67
- 6,
68
- 7,
69
- 11,
70
- 13,
71
- 15,
72
- 16,
73
- 19,
74
- 22
75
- ], v = {
76
- trace: /* @__PURE__ */ e(function() {}, "trace"),
77
- yy: {},
78
- symbols_: {
79
- error: 2,
80
- start: 3,
81
- mindMap: 4,
82
- spaceLines: 5,
83
- SPACELINE: 6,
84
- NL: 7,
85
- MINDMAP: 8,
86
- document: 9,
87
- stop: 10,
88
- EOF: 11,
89
- statement: 12,
90
- SPACELIST: 13,
91
- node: 14,
92
- ICON: 15,
93
- CLASS: 16,
94
- nodeWithId: 17,
95
- nodeWithoutId: 18,
96
- NODE_DSTART: 19,
97
- NODE_DESCR: 20,
98
- NODE_DEND: 21,
99
- NODE_ID: 22,
100
- $accept: 0,
101
- $end: 1
102
- },
103
- terminals_: {
104
- 2: "error",
105
- 6: "SPACELINE",
106
- 7: "NL",
107
- 8: "MINDMAP",
108
- 11: "EOF",
109
- 13: "SPACELIST",
110
- 15: "ICON",
111
- 16: "CLASS",
112
- 19: "NODE_DSTART",
113
- 20: "NODE_DESCR",
114
- 21: "NODE_DEND",
115
- 22: "NODE_ID"
116
- },
117
- productions_: [
118
- 0,
119
- [3, 1],
120
- [3, 2],
121
- [5, 1],
122
- [5, 2],
123
- [5, 2],
124
- [4, 2],
125
- [4, 3],
126
- [10, 1],
127
- [10, 1],
128
- [10, 1],
129
- [10, 2],
130
- [10, 2],
131
- [9, 3],
132
- [9, 2],
133
- [12, 2],
134
- [12, 2],
135
- [12, 2],
136
- [12, 1],
137
- [12, 1],
138
- [12, 1],
139
- [12, 1],
140
- [12, 1],
141
- [14, 1],
142
- [14, 1],
143
- [18, 3],
144
- [17, 1],
145
- [17, 4]
146
- ],
147
- performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
148
- var s = a.length - 1;
149
- switch (i) {
150
- case 6:
151
- case 7: return r;
152
- case 8:
153
- r.getLogger().trace("Stop NL ");
154
- break;
155
- case 9:
156
- r.getLogger().trace("Stop EOF ");
157
- break;
158
- case 11:
159
- r.getLogger().trace("Stop NL2 ");
160
- break;
161
- case 12:
162
- r.getLogger().trace("Stop EOF2 ");
163
- break;
164
- case 15:
165
- r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
166
- break;
167
- case 16:
168
- r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
169
- break;
170
- case 17:
171
- case 21:
172
- r.decorateNode({ class: a[s] });
173
- break;
174
- case 18:
175
- r.getLogger().trace("SPACELIST");
176
- break;
177
- case 19:
178
- r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
179
- break;
180
- case 20:
181
- r.decorateNode({ icon: a[s] });
182
- break;
183
- case 25:
184
- r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
185
- id: a[s - 1],
186
- descr: a[s - 1],
187
- type: r.getType(a[s - 2], a[s])
188
- };
189
- break;
190
- case 26:
191
- this.$ = {
192
- id: a[s],
193
- descr: a[s],
194
- type: r.nodeType.DEFAULT
195
- };
196
- break;
197
- case 27: r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
198
- id: a[s - 3],
199
- descr: a[s - 1],
200
- type: r.getType(a[s - 2], a[s])
201
- };
202
- }
203
- }, "anonymous"),
204
- table: [
205
- {
206
- 3: 1,
207
- 4: 2,
208
- 5: 3,
209
- 6: [1, 5],
210
- 8: n
211
- },
212
- { 1: [3] },
213
- { 1: [2, 1] },
214
- {
215
- 4: 6,
216
- 6: [1, 7],
217
- 7: [1, 8],
218
- 8: n
219
- },
220
- {
221
- 6: r,
222
- 7: [1, 10],
223
- 9: 9,
224
- 12: 11,
225
- 13: i,
226
- 14: 14,
227
- 15: a,
228
- 16: o,
229
- 17: 17,
230
- 18: 18,
231
- 19: s,
232
- 22: c
233
- },
234
- t(l, [2, 3]),
235
- { 1: [2, 2] },
236
- t(l, [2, 4]),
237
- t(l, [2, 5]),
238
- {
239
- 1: [2, 6],
240
- 6: r,
241
- 12: 21,
242
- 13: i,
243
- 14: 14,
244
- 15: a,
245
- 16: o,
246
- 17: 17,
247
- 18: 18,
248
- 19: s,
249
- 22: c
250
- },
251
- {
252
- 6: r,
253
- 9: 22,
254
- 12: 11,
255
- 13: i,
256
- 14: 14,
257
- 15: a,
258
- 16: o,
259
- 17: 17,
260
- 18: 18,
261
- 19: s,
262
- 22: c
263
- },
264
- {
265
- 6: u,
266
- 7: d,
267
- 10: 23,
268
- 11: f
269
- },
270
- t(p, [2, 22], {
271
- 17: 17,
272
- 18: 18,
273
- 14: 27,
274
- 15: [1, 28],
275
- 16: [1, 29],
276
- 19: s,
277
- 22: c
278
- }),
279
- t(p, [2, 18]),
280
- t(p, [2, 19]),
281
- t(p, [2, 20]),
282
- t(p, [2, 21]),
283
- t(p, [2, 23]),
284
- t(p, [2, 24]),
285
- t(p, [2, 26], { 19: [1, 30] }),
286
- { 20: [1, 31] },
287
- {
288
- 6: u,
289
- 7: d,
290
- 10: 32,
291
- 11: f
292
- },
293
- {
294
- 1: [2, 7],
295
- 6: r,
296
- 12: 21,
297
- 13: i,
298
- 14: 14,
299
- 15: a,
300
- 16: o,
301
- 17: 17,
302
- 18: 18,
303
- 19: s,
304
- 22: c
305
- },
306
- t(m, [2, 14], {
307
- 7: h,
308
- 11: g
309
- }),
310
- t(_, [2, 8]),
311
- t(_, [2, 9]),
312
- t(_, [2, 10]),
313
- t(p, [2, 15]),
314
- t(p, [2, 16]),
315
- t(p, [2, 17]),
316
- { 20: [1, 35] },
317
- { 21: [1, 36] },
318
- t(m, [2, 13], {
319
- 7: h,
320
- 11: g
321
- }),
322
- t(_, [2, 11]),
323
- t(_, [2, 12]),
324
- { 21: [1, 37] },
325
- t(p, [2, 25]),
326
- t(p, [2, 27])
327
- ],
328
- defaultActions: {
329
- 2: [2, 1],
330
- 6: [2, 2]
331
- },
332
- parseError: /* @__PURE__ */ e(function(e, t) {
333
- if (t.recoverable) this.trace(e);
334
- else {
335
- var n = Error(e);
336
- throw n.hash = t, n;
337
- }
338
- }, "parseError"),
339
- parse: /* @__PURE__ */ e(function(t) {
340
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
341
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
342
- h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
343
- var v = h.yylloc;
344
- o.push(v);
345
- var y = h.options && h.options.ranges;
346
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
347
- function b(e) {
348
- r.length -= 2 * e, a.length -= e, o.length -= e;
349
- }
350
- e(b, "popStack");
351
- function x() {
352
- var e = i.pop() || h.lex() || p;
353
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
354
- }
355
- e(x, "lex");
356
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
357
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
358
- var M = "";
359
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
360
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
361
- text: h.match,
362
- token: this.terminals_[S] || S,
363
- line: h.yylineno,
364
- loc: v,
365
- expected: j
366
- });
367
- }
368
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
369
- switch (T[0]) {
370
- case 1:
371
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
372
- break;
373
- case 2:
374
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
375
- first_line: o[o.length - (k || 1)].first_line,
376
- last_line: o[o.length - 1].last_line,
377
- first_column: o[o.length - (k || 1)].first_column,
378
- last_column: o[o.length - 1].last_column
379
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
380
- c,
381
- u,
382
- l,
383
- g.yy,
384
- T[1],
385
- a,
386
- o
387
- ].concat(m)), E !== void 0) return E;
388
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
389
- break;
390
- case 3: return !0;
391
- }
392
- }
393
- return !0;
394
- }, "parse")
395
- };
396
- v.lexer = /* @__PURE__ */ (function() {
397
- return {
398
- EOF: 1,
399
- parseError: /* @__PURE__ */ e(function(e, t) {
400
- if (this.yy.parser) this.yy.parser.parseError(e, t);
401
- else throw Error(e);
402
- }, "parseError"),
403
- setInput: /* @__PURE__ */ e(function(e, t) {
404
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
405
- first_line: 1,
406
- first_column: 0,
407
- last_line: 1,
408
- last_column: 0
409
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
410
- }, "setInput"),
411
- input: /* @__PURE__ */ e(function() {
412
- var e = this._input[0];
413
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
414
- }, "input"),
415
- unput: /* @__PURE__ */ e(function(e) {
416
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
417
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
418
- var r = this.match.split(/(?:\r\n?|\n)/g);
419
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
420
- var i = this.yylloc.range;
421
- return this.yylloc = {
422
- first_line: this.yylloc.first_line,
423
- last_line: this.yylineno + 1,
424
- first_column: this.yylloc.first_column,
425
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
426
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
427
- }, "unput"),
428
- more: /* @__PURE__ */ e(function() {
429
- return this._more = !0, this;
430
- }, "more"),
431
- reject: /* @__PURE__ */ e(function() {
432
- if (this.options.backtrack_lexer) this._backtrack = !0;
433
- else 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(), {
434
- text: "",
435
- token: null,
436
- line: this.yylineno
437
- });
438
- return this;
439
- }, "reject"),
440
- less: /* @__PURE__ */ e(function(e) {
441
- this.unput(this.match.slice(e));
442
- }, "less"),
443
- pastInput: /* @__PURE__ */ e(function() {
444
- var e = this.matched.substr(0, this.matched.length - this.match.length);
445
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
446
- }, "pastInput"),
447
- upcomingInput: /* @__PURE__ */ e(function() {
448
- var e = this.match;
449
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
450
- }, "upcomingInput"),
451
- showPosition: /* @__PURE__ */ e(function() {
452
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
453
- return e + this.upcomingInput() + "\n" + t + "^";
454
- }, "showPosition"),
455
- test_match: /* @__PURE__ */ e(function(e, t) {
456
- var n, r, i;
457
- if (this.options.backtrack_lexer && (i = {
458
- yylineno: this.yylineno,
459
- yylloc: {
460
- first_line: this.yylloc.first_line,
461
- last_line: this.last_line,
462
- first_column: this.yylloc.first_column,
463
- last_column: this.yylloc.last_column
464
- },
465
- yytext: this.yytext,
466
- match: this.match,
467
- matches: this.matches,
468
- matched: this.matched,
469
- yyleng: this.yyleng,
470
- offset: this.offset,
471
- _more: this._more,
472
- _input: this._input,
473
- yy: this.yy,
474
- conditionStack: this.conditionStack.slice(0),
475
- done: this.done
476
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
477
- first_line: this.yylloc.last_line,
478
- last_line: this.yylineno + 1,
479
- first_column: this.yylloc.last_column,
480
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
481
- }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
482
- if (this._backtrack) {
483
- for (var a in i) this[a] = i[a];
484
- return !1;
485
- }
486
- return !1;
487
- }, "test_match"),
488
- next: /* @__PURE__ */ e(function() {
489
- if (this.done) return this.EOF;
490
- this._input || (this.done = !0);
491
- var e, t, n, r;
492
- this._more || (this.yytext = "", this.match = "");
493
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
494
- if (t = n, r = a, this.options.backtrack_lexer) {
495
- if (e = this.test_match(n, i[a]), e !== !1) return e;
496
- if (this._backtrack) {
497
- t = !1;
498
- continue;
499
- }
500
- return !1;
501
- }
502
- if (!this.options.flex) break;
503
- }
504
- return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
505
- text: "",
506
- token: null,
507
- line: this.yylineno
508
- });
509
- }, "next"),
510
- lex: /* @__PURE__ */ e(function() {
511
- return this.next() || this.lex();
512
- }, "lex"),
513
- begin: /* @__PURE__ */ e(function(e) {
514
- this.conditionStack.push(e);
515
- }, "begin"),
516
- popState: /* @__PURE__ */ e(function() {
517
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
518
- }, "popState"),
519
- _currentRules: /* @__PURE__ */ e(function() {
520
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
521
- }, "_currentRules"),
522
- topState: /* @__PURE__ */ e(function(e) {
523
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
524
- }, "topState"),
525
- pushState: /* @__PURE__ */ e(function(e) {
526
- this.begin(e);
527
- }, "pushState"),
528
- stateStackSize: /* @__PURE__ */ e(function() {
529
- return this.conditionStack.length;
530
- }, "stateStackSize"),
531
- options: { "case-insensitive": !0 },
532
- performAction: /* @__PURE__ */ e(function(e, t, n, r) {
533
- switch (n) {
534
- case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
535
- case 1: return 8;
536
- case 2:
537
- this.begin("CLASS");
538
- break;
539
- case 3: return this.popState(), 16;
540
- case 4:
541
- this.popState();
542
- break;
543
- case 5:
544
- e.getLogger().trace("Begin icon"), this.begin("ICON");
545
- break;
546
- case 6: return e.getLogger().trace("SPACELINE"), 6;
547
- case 7: return 7;
548
- case 8: return 15;
549
- case 9:
550
- e.getLogger().trace("end icon"), this.popState();
551
- break;
552
- case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
553
- case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
554
- case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
555
- case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
556
- case 14: return this.begin("NODE"), 19;
557
- case 15: return this.begin("NODE"), 19;
558
- case 16: return this.begin("NODE"), 19;
559
- case 17: return this.begin("NODE"), 19;
560
- case 18: return 13;
561
- case 19: return 22;
562
- case 20: return 11;
563
- case 21:
564
- this.begin("NSTR2");
565
- break;
566
- case 22: return "NODE_DESCR";
567
- case 23:
568
- this.popState();
569
- break;
570
- case 24:
571
- e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
572
- break;
573
- case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
574
- case 26:
575
- this.popState();
576
- break;
577
- case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
578
- case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
579
- case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
580
- case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
581
- case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
582
- case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
583
- case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
584
- case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
585
- case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
586
- case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
587
- }
588
- }, "anonymous"),
589
- rules: [
590
- /^(?:\s*%%.*)/i,
591
- /^(?:mindmap\b)/i,
592
- /^(?::::)/i,
593
- /^(?:.+)/i,
594
- /^(?:\n)/i,
595
- /^(?:::icon\()/i,
596
- /^(?:[\s]+[\n])/i,
597
- /^(?:[\n]+)/i,
598
- /^(?:[^\)]+)/i,
599
- /^(?:\))/i,
600
- /^(?:-\))/i,
601
- /^(?:\(-)/i,
602
- /^(?:\)\))/i,
603
- /^(?:\))/i,
604
- /^(?:\(\()/i,
605
- /^(?:\{\{)/i,
606
- /^(?:\()/i,
607
- /^(?:\[)/i,
608
- /^(?:[\s]+)/i,
609
- /^(?:[^\(\[\n\)\{\}]+)/i,
610
- /^(?:$)/i,
611
- /^(?:["][`])/i,
612
- /^(?:[^`"]+)/i,
613
- /^(?:[`]["])/i,
614
- /^(?:["])/i,
615
- /^(?:[^"]+)/i,
616
- /^(?:["])/i,
617
- /^(?:[\)]\))/i,
618
- /^(?:[\)])/i,
619
- /^(?:[\]])/i,
620
- /^(?:\}\})/i,
621
- /^(?:\(-)/i,
622
- /^(?:-\))/i,
623
- /^(?:\(\()/i,
624
- /^(?:\()/i,
625
- /^(?:[^\)\]\(\}]+)/i,
626
- /^(?:.+(?!\(\())/i
627
- ],
628
- conditions: {
629
- CLASS: {
630
- rules: [3, 4],
631
- inclusive: !1
632
- },
633
- ICON: {
634
- rules: [8, 9],
635
- inclusive: !1
636
- },
637
- NSTR2: {
638
- rules: [22, 23],
639
- inclusive: !1
640
- },
641
- NSTR: {
642
- rules: [25, 26],
643
- inclusive: !1
644
- },
645
- NODE: {
646
- rules: [
647
- 21,
648
- 24,
649
- 27,
650
- 28,
651
- 29,
652
- 30,
653
- 31,
654
- 32,
655
- 33,
656
- 34,
657
- 35,
658
- 36
659
- ],
660
- inclusive: !1
661
- },
662
- INITIAL: {
663
- rules: [
664
- 0,
665
- 1,
666
- 2,
667
- 5,
668
- 6,
669
- 7,
670
- 10,
671
- 11,
672
- 12,
673
- 13,
674
- 14,
675
- 15,
676
- 16,
677
- 17,
678
- 18,
679
- 19,
680
- 20
681
- ],
682
- inclusive: !0
683
- }
684
- }
685
- };
686
- })();
687
- function y() {
688
- this.yy = {};
689
- }
690
- return e(y, "Parser"), y.prototype = v, v.Parser = y, new y();
691
- })();
692
- b.parser = b;
693
- var x = b, S = 12, C = {
694
- DEFAULT: 0,
695
- NO_BORDER: 0,
696
- ROUNDED_RECT: 1,
697
- RECT: 2,
698
- CIRCLE: 3,
699
- CLOUD: 4,
700
- BANG: 5,
701
- HEXAGON: 6
702
- }, w = class {
703
- constructor() {
704
- this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = C, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
705
- }
706
- static {
707
- e(this, "MindmapDB");
708
- }
709
- clear() {
710
- this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
711
- }
712
- getParent(e) {
713
- for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
714
- return null;
715
- }
716
- getMindmap() {
717
- return this.nodes.length > 0 ? this.nodes[0] : null;
718
- }
719
- addNode(e, n, r, a) {
720
- t.info("addNode", e, n, r, a);
721
- let o = !1;
722
- this.nodes.length === 0 ? (this.baseLevel = e, e = 0, o = !0) : this.baseLevel !== void 0 && (e -= this.baseLevel, o = !1);
723
- let s = c(), u = s.mindmap?.padding ?? i.mindmap.padding;
724
- switch (a) {
725
- case this.nodeType.ROUNDED_RECT:
726
- case this.nodeType.RECT:
727
- case this.nodeType.HEXAGON: u *= 2;
728
- }
729
- let d = {
730
- id: this.count++,
731
- nodeId: l(n, s),
732
- level: e,
733
- descr: l(r, s),
734
- type: a,
735
- children: [],
736
- width: s.mindmap?.maxNodeWidth ?? i.mindmap.maxNodeWidth,
737
- padding: u,
738
- isRoot: o
739
- }, f = this.getParent(e);
740
- if (f) f.children.push(d), this.nodes.push(d);
741
- else if (o) this.nodes.push(d);
742
- else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`);
743
- }
744
- getType(e, n) {
745
- switch (t.debug("In get type", e, n), e) {
746
- case "[": return this.nodeType.RECT;
747
- case "(": return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
748
- case "((": return this.nodeType.CIRCLE;
749
- case ")": return this.nodeType.CLOUD;
750
- case "))": return this.nodeType.BANG;
751
- case "{{": return this.nodeType.HEXAGON;
752
- default: return this.nodeType.DEFAULT;
753
- }
754
- }
755
- setElementForId(e, t) {
756
- this.elements[e] = t;
757
- }
758
- getElementById(e) {
759
- return this.elements[e];
760
- }
761
- decorateNode(e) {
762
- if (!e) return;
763
- let t = c(), n = this.nodes[this.nodes.length - 1];
764
- e.icon && (n.icon = l(e.icon, t)), e.class && (n.class = l(e.class, t));
765
- }
766
- type2Str(e) {
767
- switch (e) {
768
- case this.nodeType.DEFAULT: return "no-border";
769
- case this.nodeType.RECT: return "rect";
770
- case this.nodeType.ROUNDED_RECT: return "rounded-rect";
771
- case this.nodeType.CIRCLE: return "circle";
772
- case this.nodeType.CLOUD: return "cloud";
773
- case this.nodeType.BANG: return "bang";
774
- case this.nodeType.HEXAGON: return "hexgon";
775
- default: return "no-border";
776
- }
777
- }
778
- assignSections(e, t) {
779
- if (e.section = e.level === 0 ? void 0 : t, e.children) for (let [n, r] of e.children.entries()) {
780
- let i = e.level === 0 ? n % (S - 1) : t;
781
- this.assignSections(r, i);
782
- }
783
- }
784
- flattenNodes(t, n) {
785
- let r = c(), i = ["mindmap-node"];
786
- t.isRoot === !0 ? i.push("section-root", "section--1") : t.section !== void 0 && i.push(`section-${t.section}`), t.class && i.push(t.class);
787
- let a = i.join(" "), o = /* @__PURE__ */ e((e) => {
788
- let t = (r.theme?.toLowerCase() ?? "").includes("redux");
789
- switch (e) {
790
- case C.CIRCLE: return "mindmapCircle";
791
- case C.RECT: return "rect";
792
- case C.ROUNDED_RECT: return "rounded";
793
- case C.CLOUD: return "cloud";
794
- case C.BANG: return "bang";
795
- case C.HEXAGON: return "hexagon";
796
- case C.DEFAULT: return t ? "rounded" : "defaultMindmapNode";
797
- case C.NO_BORDER:
798
- default: return "rect";
799
- }
800
- }, "getShapeFromType"), s = {
801
- id: t.id.toString(),
802
- domId: "node_" + t.id.toString(),
803
- label: t.descr,
804
- labelType: "markdown",
805
- isGroup: !1,
806
- shape: o(t.type),
807
- width: t.width,
808
- height: t.height ?? 0,
809
- padding: t.padding,
810
- cssClasses: a,
811
- cssStyles: [],
812
- look: r.look,
813
- icon: t.icon,
814
- x: t.x,
815
- y: t.y,
816
- level: t.level,
817
- nodeId: t.nodeId,
818
- type: t.type,
819
- section: t.section
820
- };
821
- if (n.push(s), t.children) for (let e of t.children) this.flattenNodes(e, n);
822
- }
823
- generateEdges(e, t) {
824
- if (!e.children) return;
825
- let n = c();
826
- for (let r of e.children) {
827
- let i = "edge";
828
- r.section !== void 0 && (i += ` section-edge-${r.section}`);
829
- let a = e.level + 1;
830
- i += ` edge-depth-${a}`;
831
- let o = {
832
- id: `edge_${e.id}_${r.id}`,
833
- start: e.id.toString(),
834
- end: r.id.toString(),
835
- type: "normal",
836
- curve: "basis",
837
- thickness: "normal",
838
- look: n.look,
839
- classes: i,
840
- depth: e.level,
841
- section: r.section
842
- };
843
- t.push(o), this.generateEdges(r, t);
844
- }
845
- }
846
- getData() {
847
- let e = this.getMindmap(), n = c(), r = a().layout !== void 0, i = n;
848
- if (r || (i.layout = "cose-bilkent"), !e) return {
849
- nodes: [],
850
- edges: [],
851
- config: i
852
- };
853
- t.debug("getData: mindmapRoot", e, n), this.assignSections(e);
854
- let o = [], s = [];
855
- this.flattenNodes(e, o), this.generateEdges(e, s), t.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);
856
- let l = /* @__PURE__ */ new Map();
857
- for (let e of o) l.set(e.id, {
858
- shape: e.shape,
859
- width: e.width,
860
- height: e.height,
861
- padding: e.padding
862
- });
863
- return {
864
- nodes: o,
865
- edges: s,
866
- config: i,
867
- rootNode: e,
868
- markers: ["point"],
869
- direction: "TB",
870
- nodeSpacing: 50,
871
- rankSpacing: 50,
872
- shapes: Object.fromEntries(l),
873
- type: "mindmap",
874
- diagramId: "mindmap-" + v()
875
- };
876
- }
877
- getLogger() {
878
- return t;
879
- }
880
- }, T = { draw: /* @__PURE__ */ e(async (e, r, a, o) => {
881
- t.debug("Rendering mindmap diagram\n" + e);
882
- let s = o.db, c = s.getData(), l = u(r, c.config.securityLevel);
883
- if (c.type = o.type, c.layoutAlgorithm = p(c.config.layout, { fallback: "cose-bilkent" }), c.diagramId = r, !s.getMindmap()) return;
884
- c.nodes.forEach((e) => {
885
- e.shape === "rounded" ? (e.radius = 15, e.taper = 15, e.stroke = "none", e.width = 0, e.padding = 15) : e.shape === "circle" ? e.padding = 10 : e.shape === "rect" ? (e.width = 0, e.padding = 10) : e.shape === "hexagon" && (e.width = 0, e.height = 0);
886
- }), await f(c, l);
887
- let { themeVariables: m } = n(), { useGradient: h, gradientStart: g, gradientStop: _ } = m;
888
- if (h && g && _) {
889
- let e = l.attr("id"), t = l.append("defs").append("linearGradient").attr("id", `${e}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
890
- t.append("stop").attr("offset", "0%").attr("stop-color", g).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", _).attr("stop-opacity", 1);
891
- }
892
- d(l, c.config.mindmap?.padding ?? i.mindmap.padding, "mindmapDiagram", c.config.mindmap?.useMaxWidth ?? i.mindmap.useMaxWidth);
893
- }, "draw") }, E = /* @__PURE__ */ e((e) => {
894
- let { theme: t, look: n } = e, i = "";
895
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], o(e["lineColor" + t]) ? e["lineColor" + t] = s(e["lineColor" + t], 20) : e["lineColor" + t] = r(e["lineColor" + t], 20);
896
- for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) {
897
- let a = "" + (n === "neo" ? Math.max(10 - (r - 1) * 2, 2) : 17 - 3 * r);
898
- i += `
899
- .section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} polygon, .section-${r - 1} path {
900
- fill: ${e["cScale" + r]};
901
- }
902
- .section-${r - 1} text {
903
- fill: ${e["cScaleLabel" + r]};
904
- }
905
- .section-${r - 1} span {
906
- color: ${e["cScaleLabel" + r]};
907
- }
908
- .node-icon-${r - 1} {
909
- font-size: 40px;
910
- color: ${e["cScaleLabel" + r]};
911
- }
912
- .section-edge-${r - 1}{
913
- stroke: ${e["cScale" + r]};
914
- }
915
- .edge-depth-${r - 1}{
916
- stroke-width: ${a};
917
- }
918
- .section-${r - 1} line {
919
- stroke: ${e["cScaleInv" + r]} ;
920
- stroke-width: 3;
921
- }
922
-
923
- .disabled, .disabled circle, .disabled text {
924
- fill: lightgray;
925
- }
926
- .disabled text {
927
- fill: #efefef;
928
- }
929
- [data-look="neo"].mindmap-node.section-${r - 1} rect, [data-look="neo"].mindmap-node.section-${r - 1} path, [data-look="neo"].mindmap-node.section-${r - 1} circle, [data-look="neo"].mindmap-node.section-${r - 1} polygon {
930
- fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? e.mainBkg : e["cScale" + r]};
931
- stroke: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScale" + r]};
932
- stroke-width: ${e.strokeWidth ?? 2}px;
933
- }
934
- [data-look="neo"].section-edge-${r - 1}{
935
- stroke: ${t?.includes("redux") || t === "neo-dark" ? e.nodeBorder : e["cScale" + r]};
936
- }
937
- [data-look="neo"].mindmap-node.section-${r - 1} text {
938
- fill: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : r)]};
939
- }
940
- `;
941
- }
942
- return i;
943
- }, "genSections"), D = /* @__PURE__ */ e((e, t, n) => {
944
- let r = "";
945
- for (let i = 0; i < e; i++) r += `
946
- [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
947
- stroke: url(${t}-gradient);
948
- fill: ${n};
949
- }
950
- .section-${i - 1} line {
951
- stroke-width: 0;
952
- }`;
953
- return r;
954
- }, "genGradient"), O = {
955
- get db() {
956
- return new w();
957
- },
958
- renderer: T,
959
- parser: x,
960
- styles: /* @__PURE__ */ e((e) => {
961
- let { theme: t } = e, n = e.svgId, r = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${n}-drop-shadow)`) : "none";
962
- return `
963
- .edge {
964
- stroke-width: 3;
965
- }
966
- ${E(e)}
967
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
968
- fill: ${e.git0};
969
- }
970
- .section-root text {
971
- fill: ${e.gitBranchLabel0};
972
- }
973
- .section-root span {
974
- color: ${t?.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
975
- }
976
- .icon-container {
977
- height:100%;
978
- display: flex;
979
- justify-content: center;
980
- align-items: center;
981
- }
982
- .edge {
983
- fill: none;
984
- }
985
- .mindmap-node-label {
986
- dy: 1em;
987
- alignment-baseline: middle;
988
- text-anchor: middle;
989
- dominant-baseline: middle;
990
- text-align: center;
991
- }
992
- [data-look="neo"].mindmap-node {
993
- filter: ${r};
994
- }
995
- [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
996
- fill: ${t?.includes("redux") ? e.mainBkg : e.git0};
997
- }
998
- [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
999
- fill: ${t?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + +(t === "neutral")]};
1000
- }
1001
- ${e.useGradient && n && e.mainBkg ? D(e.THEME_COLOR_LIMIT, n, e.mainBkg) : ""}
1002
- `;
1003
- }, "getStyles")
1004
- };
1005
- //#endregion
1006
- export { O as diagram };