docmedown 0.1.7 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/LICENSE +201 -21
  2. package/README.md +86 -37
  3. package/dist/architecture-7GRP2DOG-B8Xs9IfY.mjs +2 -0
  4. package/dist/architecture-7GRP2DOG-Vdsw7WC7.js +1 -0
  5. package/dist/cli.js +672 -1294
  6. package/dist/cynefin-OW5HDTMX-DU6kwwck.js +1 -0
  7. package/dist/cynefin-OW5HDTMX-F0P2M_lQ.mjs +2 -0
  8. package/dist/docmedown-compiler.js +228 -0
  9. package/dist/docmedown-mermaid.js +3588 -0
  10. package/dist/docmedown.cjs +7264 -80
  11. package/dist/docmedown.iife.js +7624 -424
  12. package/dist/docmedown.mjs +15531 -15009
  13. package/dist/docmedown.web.js +7628 -0
  14. package/dist/eventmodeling-NTZA5JFV-D58ICByZ.js +1 -0
  15. package/dist/eventmodeling-NTZA5JFV-SxxTo5cJ.mjs +2 -0
  16. package/dist/gitGraph-4MIJSDKK-C_R2a4aQ.mjs +2 -0
  17. package/dist/gitGraph-4MIJSDKK-CdMj8HJ8.js +1 -0
  18. package/dist/info-A6RAGUB7-CG4UBCfn.js +1 -0
  19. package/dist/info-A6RAGUB7-DmjQlHTj.mjs +2 -0
  20. package/dist/mermaid-BvOI3ZSW.js +3334 -0
  21. package/dist/mermaid-Cx9uSfoz.mjs +116948 -0
  22. package/dist/packet-AYTQ26CC-CMuoEJn0.js +1 -0
  23. package/dist/packet-AYTQ26CC-tdMo_iPL.mjs +2 -0
  24. package/dist/pie-WAS4IAKB-C1hjX8y0.js +1 -0
  25. package/dist/pie-WAS4IAKB-DG2Bio1G.mjs +2 -0
  26. package/dist/prism-CeBRmKvl.js +2 -0
  27. package/dist/prism-CummdiZX.mjs +1588 -0
  28. package/dist/radar-RG4KPBEZ-DHxYOB0f.mjs +2 -0
  29. package/dist/radar-RG4KPBEZ-Dvyo3gdA.js +1 -0
  30. package/dist/railroad-74A4TZTK-1sb9Z_QQ.js +1 -0
  31. package/dist/railroad-74A4TZTK-CwztrSkE.mjs +2 -0
  32. package/dist/railroad-abnf-HS5TGJTU-4264fZjH.js +1 -0
  33. package/dist/railroad-abnf-HS5TGJTU-BKCsR9iC.mjs +2 -0
  34. package/dist/railroad-ebnf-LZEXJU2U-BXErl5kO.js +1 -0
  35. package/dist/railroad-ebnf-LZEXJU2U-DzDOfuxK.mjs +2 -0
  36. package/dist/railroad-peg-WCYAUIDC-B6gNHamV.mjs +2 -0
  37. package/dist/railroad-peg-WCYAUIDC-D7pSwRGa.js +1 -0
  38. package/dist/rolldown-runtime-B0aSnxlc.mjs +20 -0
  39. package/dist/rolldown-runtime-DF3sbh8G.js +1 -0
  40. package/dist/svelte-compiler-loader-Deqbdbvf.js +1 -0
  41. package/dist/svelte-compiler-loader-DtYQgEKV.mjs +50 -0
  42. package/dist/svelte-runtime-Brc440dp.js +5 -0
  43. package/dist/svelte-runtime-CgCk_bw1.mjs +40 -0
  44. package/dist/treeView-Q6P3EWNA-DArM8kFH.mjs +2 -0
  45. package/dist/treeView-Q6P3EWNA-JstiGzov.js +1 -0
  46. package/dist/treemap-WGGIJYW6-CMIcmEVN.mjs +2 -0
  47. package/dist/treemap-WGGIJYW6-Dq6fFckz.js +1 -0
  48. package/dist/ts-compiler-BMDmcNn5.mjs +93 -0
  49. package/dist/ts-compiler-U7pTMJjY.js +3 -0
  50. package/dist/types/runtime/bridges/dynamic-component.d.ts +43 -0
  51. package/dist/types/runtime/bridges/element-bridge.d.ts +24 -0
  52. package/dist/types/runtime/bridges/index.d.ts +3 -0
  53. package/dist/types/runtime/bridges/react-bridge.d.ts +35 -0
  54. package/dist/types/runtime/compiler-cache.d.ts +18 -0
  55. package/dist/types/runtime/config-schema.d.ts +2 -0
  56. package/dist/types/runtime/favicons.d.ts +28 -0
  57. package/dist/types/runtime/loader/local-loader.d.ts +13 -0
  58. package/dist/types/runtime/markdown/component-body.d.ts +7 -0
  59. package/dist/types/runtime/markdown/escape.d.ts +1 -0
  60. package/dist/types/runtime/markdown/highlighter.d.ts +32 -6
  61. package/dist/types/runtime/markdown/katex.d.ts +5 -0
  62. package/dist/types/runtime/markdown/mermaid-engine.d.ts +1 -0
  63. package/dist/types/runtime/markdown/mermaid-loader.d.ts +19 -0
  64. package/dist/types/runtime/markdown/mermaid.d.ts +6 -0
  65. package/dist/types/runtime/markdown/tables.d.ts +68 -0
  66. package/dist/types/runtime/media.d.ts +30 -0
  67. package/dist/types/runtime/motion.d.ts +134 -0
  68. package/dist/types/runtime/offline-export.d.ts +9 -2
  69. package/dist/types/runtime/router.d.ts +40 -2
  70. package/dist/types/runtime/splash.d.ts +90 -0
  71. package/dist/types/runtime/svelte-compiler-engine.d.ts +1 -0
  72. package/dist/types/runtime/svelte-compiler-loader.d.ts +14 -0
  73. package/dist/types/runtime/svelte-runtime.d.ts +29 -0
  74. package/dist/types/runtime/svelte-tag.d.ts +7 -0
  75. package/dist/types/runtime/ts-compiler.d.ts +24 -0
  76. package/dist/types/runtime/types.d.ts +1 -0
  77. package/dist/types/ui/doc-context.svelte.d.ts +198 -0
  78. package/dist/types/ui/index.d.ts +33 -0
  79. package/dist/types/ui/registry.d.ts +52 -0
  80. package/dist/types/ui/theme.svelte.d.ts +32 -0
  81. package/dist/wardley-WFR3VGLG-BK9BA6h6.mjs +2 -0
  82. package/dist/wardley-WFR3VGLG-Cbs7W-dU.js +1 -0
  83. package/package.json +61 -48
  84. package/schemas/docs.schema.json +186 -181
  85. package/templates/.dmd/CounterWidget.svelte +29 -0
  86. package/templates/README.md +2 -2
  87. package/templates/favicon.svg +12 -0
  88. package/templates/favicons/favicon-book.svg +11 -0
  89. package/templates/favicons/favicon-markdown.svg +11 -0
  90. package/templates/favicons/favicon-minimal.svg +15 -0
  91. package/templates/favicons/favicon-terminal.svg +14 -0
  92. package/templates/favicons/favicon.svg +12 -0
  93. package/templates/guides/custom-components.md +82 -22
  94. package/templates/index.html +6 -3
  95. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +0 -89
  96. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +0 -1
  97. package/dist/arc-DgPKXEdT.mjs +0 -82
  98. package/dist/arc-n7TW7Bis.js +0 -1
  99. package/dist/architecture-7GRP2DOG-B7myQ46f.js +0 -1
  100. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +0 -3
  101. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +0 -36
  102. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +0 -4154
  103. package/dist/array-CApNbSU9.mjs +0 -6
  104. package/dist/array-DZSRzHA_.js +0 -1
  105. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +0 -129
  106. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +0 -1922
  107. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +0 -38
  108. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +0 -3010
  109. package/dist/channel-LgHproiI.mjs +0 -5
  110. package/dist/channel-yqu0m4cl.js +0 -1
  111. package/dist/chunk-2E4U76K2-BOyeRQsI.js +0 -1
  112. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +0 -348
  113. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +0 -15
  114. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +0 -1
  115. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +0 -62
  116. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +0 -4188
  117. package/dist/chunk-5VM5RSS4-GINalzIv.js +0 -15
  118. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +0 -5
  119. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +0 -2
  120. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +0 -1330
  121. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +0 -1
  122. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +0 -14
  123. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +0 -3836
  124. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +0 -127
  125. package/dist/chunk-F27PBJKO-8jvY_jJK.js +0 -1
  126. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +0 -61
  127. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +0 -21456
  128. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +0 -161
  129. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +0 -1863
  130. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +0 -72
  131. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +0 -37
  132. package/dist/chunk-GVQU2GXP-CdJIWN41.js +0 -1
  133. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +0 -2042
  134. package/dist/chunk-IMKFNOWR-CPJsszGN.js +0 -231
  135. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +0 -8
  136. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +0 -1
  137. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +0 -1
  138. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +0 -245
  139. package/dist/chunk-LNGE3PJU-BQX75wkM.js +0 -34
  140. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +0 -1521
  141. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +0 -672
  142. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +0 -10
  143. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +0 -67
  144. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +0 -1
  145. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +0 -26
  146. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +0 -1
  147. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +0 -275
  148. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +0 -1
  149. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +0 -4183
  150. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +0 -168
  151. package/dist/chunk-SVP7TREG-BFMd615E.js +0 -88
  152. package/dist/chunk-SVP7TREG-CynckzeF.mjs +0 -490
  153. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +0 -3357
  154. package/dist/chunk-TICWLB2K-agcyBfUp.js +0 -206
  155. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +0 -59
  156. package/dist/chunk-TLUHSLCS-Drx_a7am.js +0 -1
  157. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +0 -1
  158. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +0 -9
  159. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +0 -1
  160. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +0 -12
  161. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +0 -1
  162. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +0 -30
  163. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +0 -1
  164. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +0 -30
  165. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +0 -1
  166. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +0 -2253
  167. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +0 -3
  168. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +0 -1
  169. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +0 -62
  170. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +0 -355
  171. package/dist/cytoscape.esm-C5TvPYYm.mjs +0 -18148
  172. package/dist/cytoscape.esm-CBmWJr5M.js +0 -321
  173. package/dist/dagre-CZ6P9L_h.js +0 -1
  174. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +0 -4
  175. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +0 -425
  176. package/dist/dagre-J_1oH0eY.mjs +0 -1934
  177. package/dist/defaultLocale-N-0uLSyg.mjs +0 -198
  178. package/dist/defaultLocale-ybN1Vtvg.js +0 -1
  179. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +0 -30
  180. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +0 -301
  181. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +0 -41
  182. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +0 -214
  183. package/dist/diagram-VSXAHHWV-DgVT19mq.js +0 -3
  184. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +0 -432
  185. package/dist/diagram-VX7I27RA-CNw0pOX_.js +0 -24
  186. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +0 -527
  187. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +0 -134
  188. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +0 -24
  189. package/dist/dist-CXWJafG_.js +0 -1
  190. package/dist/dist-DNdLIC8h.mjs +0 -59
  191. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +0 -1
  192. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +0 -100
  193. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +0 -99
  194. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +0 -1966
  195. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +0 -1
  196. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +0 -3
  197. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +0 -1
  198. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +0 -17
  199. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +0 -3072
  200. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +0 -292
  201. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +0 -1
  202. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +0 -3
  203. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +0 -106
  204. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +0 -733
  205. package/dist/graphlib-BaETKKSa.js +0 -1
  206. package/dist/graphlib-XW-Jr8pF.mjs +0 -1267
  207. package/dist/info-A6RAGUB7-ClYskpn6.mjs +0 -3
  208. package/dist/info-A6RAGUB7-DDvvt-fW.js +0 -1
  209. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +0 -20
  210. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +0 -2
  211. package/dist/init-BJdqMO10.js +0 -1
  212. package/dist/init-CsQUQz36.mjs +0 -13
  213. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +0 -70
  214. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +0 -719
  215. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +0 -139
  216. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +0 -884
  217. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +0 -976
  218. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +0 -89
  219. package/dist/line-BEwhHSLl.js +0 -1
  220. package/dist/line-CiXRog8O.mjs +0 -34
  221. package/dist/linear-75tfjrny.js +0 -1
  222. package/dist/linear-Ncx_RuON.mjs +0 -288
  223. package/dist/mermaid-parser.core-BBApyu_y.js +0 -6
  224. package/dist/mermaid-parser.core-BRHibdUE.mjs +0 -638
  225. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +0 -1006
  226. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +0 -96
  227. package/dist/ordinal-B1BNQwUR.mjs +0 -65
  228. package/dist/ordinal-B9aFWmF9.js +0 -1
  229. package/dist/packet-AYTQ26CC-CorIy9Ul.js +0 -1
  230. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +0 -3
  231. package/dist/path-CnWkkRiY.mjs +0 -84
  232. package/dist/path-DIS6ck99.js +0 -1
  233. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +0 -1
  234. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +0 -94
  235. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +0 -3
  236. package/dist/pie-WAS4IAKB-D84xrSoY.js +0 -1
  237. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +0 -39
  238. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +0 -203
  239. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +0 -7
  240. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +0 -2001
  241. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +0 -3
  242. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +0 -1
  243. package/dist/railroad-74A4TZTK-BOZIf6ts.js +0 -1
  244. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +0 -3
  245. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +0 -3
  246. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +0 -1
  247. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +0 -1
  248. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +0 -3
  249. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +0 -3
  250. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +0 -1
  251. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +0 -76
  252. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +0 -1
  253. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +0 -84
  254. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +0 -2224
  255. package/dist/rough.esm-ChRLLRha.js +0 -1
  256. package/dist/rough.esm-DXYGHN3m.mjs +0 -1361
  257. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +0 -972
  258. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +0 -40
  259. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +0 -162
  260. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +0 -4156
  261. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +0 -1
  262. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +0 -46
  263. package/dist/src-B4mN2BMl.js +0 -1
  264. package/dist/src-D_hsMyeP.mjs +0 -2154
  265. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +0 -220
  266. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +0 -1
  267. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +0 -30
  268. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +0 -1
  269. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +0 -4979
  270. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +0 -1
  271. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +0 -8
  272. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +0 -31
  273. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +0 -120
  274. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +0 -1069
  275. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +0 -3
  276. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +0 -1
  277. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +0 -3
  278. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +0 -1
  279. package/dist/types/runtime/app.d.ts +0 -9
  280. package/dist/types/runtime/components/AppearanceMenu.d.ts +0 -2
  281. package/dist/types/runtime/components/Builtins.d.ts +0 -44
  282. package/dist/types/runtime/components/Content.d.ts +0 -2
  283. package/dist/types/runtime/components/DmdRegistry.d.ts +0 -19
  284. package/dist/types/runtime/components/Layout.d.ts +0 -2
  285. package/dist/types/runtime/components/MermaidDiagram.d.ts +0 -16
  286. package/dist/types/runtime/components/Navbar.d.ts +0 -2
  287. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +0 -2
  288. package/dist/types/runtime/components/OfflineNotice.d.ts +0 -6
  289. package/dist/types/runtime/components/Sidebar.d.ts +0 -2
  290. package/dist/types/runtime/components/TableOfContents.d.ts +0 -8
  291. package/dist/types/runtime/index.d.ts +0 -8
  292. package/dist/types/runtime/markdown/renderer.d.ts +0 -7
  293. package/dist/types/runtime/provider/DocProvider.d.ts +0 -40
  294. package/dist/types/runtime/provider/ThemeProvider.d.ts +0 -25
  295. package/dist/types/runtime/search/SearchModal.d.ts +0 -11
  296. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +0 -34
  297. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +0 -1880
  298. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +0 -3
  299. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +0 -1
  300. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +0 -78
  301. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +0 -645
  302. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +0 -7
  303. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +0 -2210
  304. package/templates/.dmd/components.js +0 -25
@@ -1,89 +0,0 @@
1
- const e=require("./src-B4mN2BMl.js"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.js"),n=require("./chunk-DU6HZSFF-CWc5ewtb.js");require("./chunk-75Z2AOVW-DYouz5MZ.js");const r=require("./chunk-CLGD4ZFX-C5J-e2io.js");require("./chunk-P2QGCYS3-DKZzpRQW.js"),require("./chunk-PWAF6VOD-DxZLuCEw.js"),require("./chunk-GMAD6QVW-DEQiTa0c.js"),require("./chunk-4HAMMTFA-GFyfmcSO.js");const i=require("./chunk-GVQU2GXP-CdJIWN41.js"),a=require("./chunk-L3NEJ4N5-TzDiVs78.js"),o=require("./chunk-LNGE3PJU-BQX75wkM.js"),s=require("./chunk-5VM5RSS4-GINalzIv.js");var c=(function(){var e=t.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:t.n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.n(function(e){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:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){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]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
- `+h.showPosition()+`
3
- Expecting `+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,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1: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--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;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);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:t.n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.n(function(e,t){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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.n(function(){var e=this._input[0];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},`input`),unput:t.n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);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);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,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},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.n(function(){return this._more=!0,this},`more`),reject:t.n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
- `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
- `+t+`^`},`showPosition`),test_match:t.n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},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={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},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;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t.n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);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)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}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.
6
- `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t.n(function(){return this.next()||this.lex()},`lex`),begin:t.n(function(e){this.conditionStack.push(e)},`begin`),popState:t.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.n(function(e){this.begin(e)},`pushState`),stateStackSize:t.n(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t.n(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`<br/>`),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.yytext),6;case 7:return 8;case 8:this.begin(`CLASS`);break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),20;case 20:return this.begin(`NODE`),20;case 21:return this.begin(`NODE`),20;case 22:return this.begin(`NODE`),20;case 23:return this.begin(`NODE`),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin(`NSTR2`);break;case 28:return`NODE_DESCR`;case 29:this.popState();break;case 30:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.yytext),21}},`anonymous`),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}})();function S(){this.yy={}}return t.n(S,`Parser`),S.prototype=x,x.Parser=S,new S})();c.parser=c;var l=c,u=[],d=[],f=0,p={},m=t.n(()=>{u=[],d=[],f=0,p={}},`clear`),h=t.n(e=>{if(u.length===0)return null;let t=u[0].level,n=null;for(let e=u.length-1;e>=0;e--)if(u[e].level===t&&!n&&(n=u[e]),u[e].level<t)throw Error(`Items without section detected, found section ("`+u[e].label+`")`);return e===n?.level?null:n},`getSection`),g=t.n(function(){return d},`getSections`),_=t.n(function(){let e=[],t=[],r=g(),i=n.x();for(let e of r){let r={id:e.id,label:n.z(e.label??``,i),labelType:`markdown`,isGroup:!0,ticket:e.ticket,shape:`kanbanSection`,level:e.level,look:i.look};t.push(r);let a=u.filter(t=>t.parentId===e.id);for(let r of a){let a={id:r.id,parentId:e.id,label:n.z(r.label??``,i),labelType:`markdown`,isGroup:!1,ticket:r?.ticket,priority:r?.priority,assigned:r?.assigned,icon:r?.icon,shape:`kanbanItem`,level:r.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(a)}}return{nodes:t,edges:e,other:{},config:n.x()}},`getData`),v=t.n((e,t,r,i,a)=>{let s=n.x(),c=s.mindmap?.padding??n.f.mindmap.padding;switch(i){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:c*=2}let l={id:n.z(t,s)||`kbn`+f++,level:e,label:n.z(r,s),width:s.mindmap?.maxNodeWidth??n.f.mindmap.maxNodeWidth,padding:c,isGroup:!1};if(a!==void 0){let e;e=a.includes(`
7
- `)?a+`
8
- `:`{
9
- `+a+`
10
- }`;let t=o.n(e,{schema:o.t});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(l.shape=t?.shape),t?.label&&(l.label=t?.label),t?.icon&&(l.icon=t?.icon.toString()),t?.assigned&&(l.assigned=t?.assigned.toString()),t?.ticket&&(l.ticket=t?.ticket.toString()),t?.priority&&(l.priority=t?.priority)}let p=h(e);p?l.parentId=p.id||`kbn`+f++:d.push(l),u.push(l)},`addNode`),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},b={clear:m,addNode:v,getSections:g,getData:_,nodeType:y,getType:t.n((t,n)=>{switch(e.m.debug(`In get type`,t,n),t){case`[`:return y.RECT;case`(`:return n===`)`?y.ROUNDED_RECT:y.CLOUD;case`((`:return y.CIRCLE;case`)`:return y.CLOUD;case`))`:return y.BANG;case`{{`:return y.HEXAGON;default:return y.DEFAULT}},`getType`),setElementForId:t.n((e,t)=>{p[e]=t},`setElementForId`),decorateNode:t.n(e=>{if(!e)return;let t=n.x(),r=u[u.length-1];e.icon&&(r.icon=n.z(e.icon,t)),e.class&&(r.cssClasses=n.z(e.class,t))},`decorateNode`),type2Str:t.n(e=>{switch(e){case y.DEFAULT:return`no-border`;case y.RECT:return`rect`;case y.ROUNDED_RECT:return`rounded-rect`;case y.CIRCLE:return`circle`;case y.CLOUD:return`cloud`;case y.BANG:return`bang`;case y.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:t.n(()=>e.m,`getLogger`),getElementById:t.n(e=>p[e],`getElementById`)},x={draw:t.n(async(t,o,s,c)=>{e.m.debug(`Rendering kanban diagram
11
- `+t);let l=c.db.getData(),u=n.x();u.htmlLabels=!1;let d=r.t(o);for(let e of l.nodes)e.domId=`${o}-${e.id}`;let f=d.append(`g`);f.attr(`class`,`sections`);let p=d.append(`g`);p.attr(`class`,`items`);let m=l.nodes.filter(e=>e.isGroup),h=0,g=[],_=25;for(let e of m){let t=u?.kanban?.sectionWidth||200;h+=1,e.x=t*h+(h-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+h;let n=await a.n(f,e);_=Math.max(_,n?.labelBBox?.height),g.push(n)}let v=0;for(let e of m){let t=g[v];v+=1;let n=u?.kanban?.sectionWidth||200,r=-n*3/2+_,a=r,o=l.nodes.filter(t=>t.parentId===e.id);for(let t of o){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-15;let r=(await i.r(p,t,{config:u})).node().getBBox();t.y=a+r.height/2,await i.i(t),a=t.y+r.height/2+5}let s=t.cluster.select(`rect`),c=Math.max(a-r+30,50)+(_-25);s.attr(`height`,c)}n.J(void 0,d,u.mindmap?.padding??n.f.kanban.padding,u.mindmap?.useMaxWidth??n.f.kanban.useMaxWidth)},`draw`)},S=t.n(e=>{let r=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],n.rt(e[`lineColor`+t])?e[`lineColor`+t]=n.tt(e[`lineColor`+t],20):e[`lineColor`+t]=n.et(e[`lineColor`+t],20);let i=t.n((t,r)=>e.darkMode?n.et(t,r):n.tt(t,r),`adjuster`);for(let t=0;t<e.THEME_COLOR_LIMIT;t++){let n=``+(17-3*t);r+=`
12
- .section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {
13
- fill: ${i(e[`cScale`+t],10)};
14
- stroke: ${i(e[`cScale`+t],10)};
15
-
16
- }
17
- .section-${t-1} text {
18
- fill: ${e[`cScaleLabel`+t]};
19
- }
20
- .node-icon-${t-1} {
21
- font-size: 40px;
22
- color: ${e[`cScaleLabel`+t]};
23
- }
24
- .section-edge-${t-1}{
25
- stroke: ${e[`cScale`+t]};
26
- }
27
- .edge-depth-${t-1}{
28
- stroke-width: ${n};
29
- }
30
- .section-${t-1} line {
31
- stroke: ${e[`cScaleInv`+t]} ;
32
- stroke-width: 3;
33
- }
34
-
35
- .disabled, .disabled circle, .disabled text {
36
- fill: lightgray;
37
- }
38
- .disabled text {
39
- fill: #efefef;
40
- }
41
-
42
- .node rect,
43
- .node circle,
44
- .node ellipse,
45
- .node polygon,
46
- .node path {
47
- fill: ${e.background};
48
- stroke: ${e.nodeBorder};
49
- stroke-width: 1px;
50
- }
51
-
52
- .kanban-ticket-link {
53
- fill: ${e.background};
54
- stroke: ${e.nodeBorder};
55
- text-decoration: underline;
56
- }
57
- `}return r},`genSections`),C={db:b,renderer:x,parser:l,styles:t.n(e=>`
58
- .edge {
59
- stroke-width: 3;
60
- }
61
- ${S(e)}
62
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
- fill: ${e.git0};
64
- }
65
- .section-root text {
66
- fill: ${e.gitBranchLabel0};
67
- }
68
- .icon-container {
69
- height:100%;
70
- display: flex;
71
- justify-content: center;
72
- align-items: center;
73
- }
74
- .edge {
75
- fill: none;
76
- }
77
- .cluster-label, .label {
78
- color: ${e.textColor};
79
- fill: ${e.textColor};
80
- }
81
- .kanban-label {
82
- dy: 1em;
83
- alignment-baseline: middle;
84
- text-anchor: middle;
85
- dominant-baseline: middle;
86
- text-align: center;
87
- }
88
- ${s.t()}
89
- `,`getStyles`)};exports.diagram=C;
@@ -1 +0,0 @@
1
- const e=require("./path-DIS6ck99.js"),t=require("./array-DZSRzHA_.js"),n=require("./chunk-75Z2AOVW-DYouz5MZ.js");function r(e){return e[0]}function i(e){return e[1]}function a(a,o){var s=e.n(!0),c=null,l=n.rt,u=null,d=e.t(f);a=typeof a==`function`?a:a===void 0?r:e.n(a),o=typeof o==`function`?o:o===void 0?i:e.n(o);function f(e){var n,r=(e=t.t(e)).length,i,f=!1,p;for(c??(u=l(p=d())),n=0;n<=r;++n)!(n<r&&s(i=e[n],n,e))===f&&((f=!f)?u.lineStart():u.lineEnd()),f&&u.point(+a(i,n,e),+o(i,n,e));if(p)return u=null,p+``||null}return f.x=function(t){return arguments.length?(a=typeof t==`function`?t:e.n(+t),f):a},f.y=function(t){return arguments.length?(o=typeof t==`function`?t:e.n(+t),f):o},f.defined=function(t){return arguments.length?(s=typeof t==`function`?t:e.n(!!t),f):s},f.curve=function(e){return arguments.length?(l=e,c!=null&&(u=l(c)),f):l},f.context=function(e){return arguments.length?(e==null?c=u=null:u=l(c=e),f):c},f}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
@@ -1,34 +0,0 @@
1
- import { n as e, t } from "./path-CnWkkRiY.mjs";
2
- import { t as n } from "./array-CApNbSU9.mjs";
3
- import { rt as r } from "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
4
- //#region node_modules/d3-shape/src/point.js
5
- function i(e) {
6
- return e[0];
7
- }
8
- function a(e) {
9
- return e[1];
10
- }
11
- //#endregion
12
- //#region node_modules/d3-shape/src/line.js
13
- function o(o, s) {
14
- var c = e(!0), l = null, u = r, d = null, f = t(p);
15
- o = typeof o == "function" ? o : o === void 0 ? i : e(o), s = typeof s == "function" ? s : s === void 0 ? a : e(s);
16
- function p(e) {
17
- var t, r = (e = n(e)).length, i, a = !1, p;
18
- for (l ?? (d = u(p = f())), t = 0; t <= r; ++t) !(t < r && c(i = e[t], t, e)) === a && ((a = !a) ? d.lineStart() : d.lineEnd()), a && d.point(+o(i, t, e), +s(i, t, e));
19
- if (p) return d = null, p + "" || null;
20
- }
21
- return p.x = function(t) {
22
- return arguments.length ? (o = typeof t == "function" ? t : e(+t), p) : o;
23
- }, p.y = function(t) {
24
- return arguments.length ? (s = typeof t == "function" ? t : e(+t), p) : s;
25
- }, p.defined = function(t) {
26
- return arguments.length ? (c = typeof t == "function" ? t : e(!!t), p) : c;
27
- }, p.curve = function(e) {
28
- return arguments.length ? (u = e, l != null && (d = u(l)), p) : u;
29
- }, p.context = function(e) {
30
- return arguments.length ? (e == null ? l = d = null : d = u(l = e), p) : l;
31
- }, p;
32
- }
33
- //#endregion
34
- export { o as t };
@@ -1 +0,0 @@
1
- const e=require("./src-B4mN2BMl.js"),t=require("./defaultLocale-ybN1Vtvg.js"),n=require("./init-BJdqMO10.js");function r(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function i(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function a(e){let t,n,a;e.length===2?(t=e===r||e===i?e:o,n=e,a=e):(t=r,n=(t,n)=>r(e(t),n),a=(t,n)=>e(t)-n);function s(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function c(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function l(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i}return{left:s,center:l,right:c}}function o(){return 0}function s(e){return e===null?NaN:+e}var c=a(r),l=c.right;c.left,a(s).center;var u=Math.sqrt(50),d=Math.sqrt(10),f=Math.sqrt(2);function p(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=u?10:a>=d?5:a>=f?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?p(e,t,n*2):[s,c,l]}function m(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?p(t,e,n):p(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function h(e,t,n){return t=+t,e=+e,n=+n,p(e,t,n)[2]}function g(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?h(t,e,n):h(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function _(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function v(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function y(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=S(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function b(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function x(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=S(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}function S(t,n){var r=typeof n,i;return n==null||r===`boolean`?e.o(n):(r===`number`?e.n:r===`string`?(i=e.l(n))?(n=i,e.r):e.t:n instanceof e.l?e.r:n instanceof Date?b:v(n)?_:Array.isArray(n)?y:typeof n.valueOf!=`function`&&typeof n.toString!=`function`||isNaN(n)?x:e.n)(t,n)}function C(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function w(e){return Math.max(0,-t.i(Math.abs(e)))}function T(e,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(t.i(n)/3)))*3-t.i(Math.abs(e)))}function E(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,t.i(n)-t.i(e))+1}function D(e){return function(){return e}}function O(e){return+e}var k=[0,1];function A(e){return e}function j(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:D(isNaN(t)?NaN:.5)}function M(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function N(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=j(i,r),a=n(o,a)):(r=j(r,i),a=n(a,o)),function(e){return a(r(e))}}function P(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=j(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=l(e,t,1,r)-1;return a[n](i[n](t))}}function F(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function I(){var t=k,n=k,r=S,i,a,o,s=A,c,l,u;function d(){var e=Math.min(t.length,n.length);return s!==A&&(s=M(t[0],t[e-1])),c=e>2?P:N,l=u=null,f}function f(e){return e==null||isNaN(e=+e)?o:(l||=c(t.map(i),n,r))(i(s(e)))}return f.invert=function(r){return s(a((u||=c(n,t.map(i),e.n))(r)))},f.domain=function(e){return arguments.length?(t=Array.from(e,O),d()):t.slice()},f.range=function(e){return arguments.length?(n=Array.from(e),d()):n.slice()},f.rangeRound=function(e){return n=Array.from(e),r=C,d()},f.clamp=function(e){return arguments.length?(s=e?!0:A,d()):s!==A},f.interpolate=function(e){return arguments.length?(r=e,d()):r},f.unknown=function(e){return arguments.length?(o=e,f):o},function(e,t){return i=e,a=t,d()}}function L(){return I()(A,A)}function R(e,n,r,i){var a=g(e,n,r),o;switch(i=t.r(i??`,f`),i.type){case`s`:var s=Math.max(Math.abs(e),Math.abs(n));return i.precision==null&&!isNaN(o=T(a,s))&&(i.precision=o),t.n(i,s);case``:case`e`:case`g`:case`p`:case`r`:i.precision==null&&!isNaN(o=E(a,Math.max(Math.abs(e),Math.abs(n))))&&(i.precision=o-(i.type===`e`));break;case`f`:case`%`:i.precision==null&&!isNaN(o=w(a))&&(i.precision=o-(i.type===`%`)*2)}return t.t(i)}function z(e){var t=e.domain;return e.ticks=function(e){var n=t();return m(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return R(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=h(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function B(){var e=L();return e.copy=function(){return F(e,B())},n.t.apply(e,arguments),z(e)}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return B}});
@@ -1,288 +0,0 @@
1
- import { l as e, n as t, o as n, r, t as i } from "./src-D_hsMyeP.mjs";
2
- import { i as a, n as o, r as s, t as c } from "./defaultLocale-N-0uLSyg.mjs";
3
- import { t as l } from "./init-CsQUQz36.mjs";
4
- //#region node_modules/d3-array/src/ascending.js
5
- function u(e, t) {
6
- return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
7
- }
8
- //#endregion
9
- //#region node_modules/d3-array/src/descending.js
10
- function d(e, t) {
11
- return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
12
- }
13
- //#endregion
14
- //#region node_modules/d3-array/src/bisector.js
15
- function f(e) {
16
- let t, n, r;
17
- e.length === 2 ? (t = e === u || e === d ? e : p, n = e, r = e) : (t = u, n = (t, n) => u(e(t), n), r = (t, n) => e(t) - n);
18
- function i(e, r, i = 0, a = e.length) {
19
- if (i < a) {
20
- if (t(r, r) !== 0) return a;
21
- do {
22
- let t = i + a >>> 1;
23
- n(e[t], r) < 0 ? i = t + 1 : a = t;
24
- } while (i < a);
25
- }
26
- return i;
27
- }
28
- function a(e, r, i = 0, a = e.length) {
29
- if (i < a) {
30
- if (t(r, r) !== 0) return a;
31
- do {
32
- let t = i + a >>> 1;
33
- n(e[t], r) <= 0 ? i = t + 1 : a = t;
34
- } while (i < a);
35
- }
36
- return i;
37
- }
38
- function o(e, t, n = 0, a = e.length) {
39
- let o = i(e, t, n, a - 1);
40
- return o > n && r(e[o - 1], t) > -r(e[o], t) ? o - 1 : o;
41
- }
42
- return {
43
- left: i,
44
- center: o,
45
- right: a
46
- };
47
- }
48
- function p() {
49
- return 0;
50
- }
51
- //#endregion
52
- //#region node_modules/d3-array/src/number.js
53
- function m(e) {
54
- return e === null ? NaN : +e;
55
- }
56
- //#endregion
57
- //#region node_modules/d3-array/src/bisect.js
58
- var h = f(u), g = h.right;
59
- h.left, f(m).center;
60
- //#endregion
61
- //#region node_modules/d3-array/src/ticks.js
62
- var _ = Math.sqrt(50), v = Math.sqrt(10), y = Math.sqrt(2);
63
- function b(e, t, n) {
64
- let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= _ ? 10 : a >= v ? 5 : a >= y ? 2 : 1, s, c, l;
65
- return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? b(e, t, n * 2) : [
66
- s,
67
- c,
68
- l
69
- ];
70
- }
71
- function x(e, t, n) {
72
- if (t = +t, e = +e, n = +n, !(n > 0)) return [];
73
- if (e === t) return [e];
74
- let r = t < e, [i, a, o] = r ? b(t, e, n) : b(e, t, n);
75
- if (!(a >= i)) return [];
76
- let s = a - i + 1, c = Array(s);
77
- if (r) {
78
- if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
79
- else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
80
- } else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
81
- else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
82
- return c;
83
- }
84
- function S(e, t, n) {
85
- return t = +t, e = +e, n = +n, b(e, t, n)[2];
86
- }
87
- function C(e, t, n) {
88
- t = +t, e = +e, n = +n;
89
- let r = t < e, i = r ? S(t, e, n) : S(e, t, n);
90
- return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
91
- }
92
- //#endregion
93
- //#region node_modules/d3-interpolate/src/numberArray.js
94
- function w(e, t) {
95
- t ||= [];
96
- var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
97
- return function(a) {
98
- for (i = 0; i < n; ++i) r[i] = e[i] * (1 - a) + t[i] * a;
99
- return r;
100
- };
101
- }
102
- function T(e) {
103
- return ArrayBuffer.isView(e) && !(e instanceof DataView);
104
- }
105
- //#endregion
106
- //#region node_modules/d3-interpolate/src/array.js
107
- function E(e, t) {
108
- var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
109
- for (o = 0; o < r; ++o) i[o] = k(e[o], t[o]);
110
- for (; o < n; ++o) a[o] = t[o];
111
- return function(e) {
112
- for (o = 0; o < r; ++o) a[o] = i[o](e);
113
- return a;
114
- };
115
- }
116
- //#endregion
117
- //#region node_modules/d3-interpolate/src/date.js
118
- function D(e, t) {
119
- var n = /* @__PURE__ */ new Date();
120
- return e = +e, t = +t, function(r) {
121
- return n.setTime(e * (1 - r) + t * r), n;
122
- };
123
- }
124
- //#endregion
125
- //#region node_modules/d3-interpolate/src/object.js
126
- function O(e, t) {
127
- var n = {}, r = {}, i;
128
- for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = k(e[i], t[i]) : r[i] = t[i];
129
- return function(e) {
130
- for (i in n) r[i] = n[i](e);
131
- return r;
132
- };
133
- }
134
- //#endregion
135
- //#region node_modules/d3-interpolate/src/value.js
136
- function k(a, o) {
137
- var s = typeof o, c;
138
- return o == null || s === "boolean" ? n(o) : (s === "number" ? t : s === "string" ? (c = e(o)) ? (o = c, r) : i : o instanceof e ? r : o instanceof Date ? D : T(o) ? w : Array.isArray(o) ? E : typeof o.valueOf != "function" && typeof o.toString != "function" || isNaN(o) ? O : t)(a, o);
139
- }
140
- //#endregion
141
- //#region node_modules/d3-interpolate/src/round.js
142
- function A(e, t) {
143
- return e = +e, t = +t, function(n) {
144
- return Math.round(e * (1 - n) + t * n);
145
- };
146
- }
147
- //#endregion
148
- //#region node_modules/d3-format/src/precisionFixed.js
149
- function j(e) {
150
- return Math.max(0, -a(Math.abs(e)));
151
- }
152
- //#endregion
153
- //#region node_modules/d3-format/src/precisionPrefix.js
154
- function M(e, t) {
155
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(a(t) / 3))) * 3 - a(Math.abs(e)));
156
- }
157
- //#endregion
158
- //#region node_modules/d3-format/src/precisionRound.js
159
- function N(e, t) {
160
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, a(t) - a(e)) + 1;
161
- }
162
- //#endregion
163
- //#region node_modules/d3-scale/src/constant.js
164
- function P(e) {
165
- return function() {
166
- return e;
167
- };
168
- }
169
- //#endregion
170
- //#region node_modules/d3-scale/src/number.js
171
- function F(e) {
172
- return +e;
173
- }
174
- //#endregion
175
- //#region node_modules/d3-scale/src/continuous.js
176
- var I = [0, 1];
177
- function L(e) {
178
- return e;
179
- }
180
- function R(e, t) {
181
- return (t -= e = +e) ? function(n) {
182
- return (n - e) / t;
183
- } : P(isNaN(t) ? NaN : .5);
184
- }
185
- function z(e, t) {
186
- var n;
187
- return e > t && (n = e, e = t, t = n), function(n) {
188
- return Math.max(e, Math.min(t, n));
189
- };
190
- }
191
- function B(e, t, n) {
192
- var r = e[0], i = e[1], a = t[0], o = t[1];
193
- return i < r ? (r = R(i, r), a = n(o, a)) : (r = R(r, i), a = n(a, o)), function(e) {
194
- return a(r(e));
195
- };
196
- }
197
- function V(e, t, n) {
198
- var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
199
- for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = R(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
200
- return function(t) {
201
- var n = g(e, t, 1, r) - 1;
202
- return a[n](i[n](t));
203
- };
204
- }
205
- function H(e, t) {
206
- return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
207
- }
208
- function U() {
209
- var e = I, n = I, r = k, i, a, o, s = L, c, l, u;
210
- function d() {
211
- var t = Math.min(e.length, n.length);
212
- return s !== L && (s = z(e[0], e[t - 1])), c = t > 2 ? V : B, l = u = null, f;
213
- }
214
- function f(t) {
215
- return t == null || isNaN(t = +t) ? o : (l ||= c(e.map(i), n, r))(i(s(t)));
216
- }
217
- return f.invert = function(r) {
218
- return s(a((u ||= c(n, e.map(i), t))(r)));
219
- }, f.domain = function(t) {
220
- return arguments.length ? (e = Array.from(t, F), d()) : e.slice();
221
- }, f.range = function(e) {
222
- return arguments.length ? (n = Array.from(e), d()) : n.slice();
223
- }, f.rangeRound = function(e) {
224
- return n = Array.from(e), r = A, d();
225
- }, f.clamp = function(e) {
226
- return arguments.length ? (s = e ? !0 : L, d()) : s !== L;
227
- }, f.interpolate = function(e) {
228
- return arguments.length ? (r = e, d()) : r;
229
- }, f.unknown = function(e) {
230
- return arguments.length ? (o = e, f) : o;
231
- }, function(e, t) {
232
- return i = e, a = t, d();
233
- };
234
- }
235
- function W() {
236
- return U()(L, L);
237
- }
238
- //#endregion
239
- //#region node_modules/d3-scale/src/tickFormat.js
240
- function G(e, t, n, r) {
241
- var i = C(e, t, n), a;
242
- switch (r = s(r ?? ",f"), r.type) {
243
- case "s":
244
- var l = Math.max(Math.abs(e), Math.abs(t));
245
- return r.precision == null && !isNaN(a = M(i, l)) && (r.precision = a), o(r, l);
246
- case "":
247
- case "e":
248
- case "g":
249
- case "p":
250
- case "r":
251
- r.precision == null && !isNaN(a = N(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
252
- break;
253
- case "f":
254
- case "%": r.precision == null && !isNaN(a = j(i)) && (r.precision = a - (r.type === "%") * 2);
255
- }
256
- return c(r);
257
- }
258
- //#endregion
259
- //#region node_modules/d3-scale/src/linear.js
260
- function K(e) {
261
- var t = e.domain;
262
- return e.ticks = function(e) {
263
- var n = t();
264
- return x(n[0], n[n.length - 1], e ?? 10);
265
- }, e.tickFormat = function(e, n) {
266
- var r = t();
267
- return G(r[0], r[r.length - 1], e ?? 10, n);
268
- }, e.nice = function(n) {
269
- n ??= 10;
270
- var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
271
- for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
272
- if (l = S(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
273
- if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
274
- else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
275
- else break;
276
- c = l;
277
- }
278
- return e;
279
- }, e;
280
- }
281
- function q() {
282
- var e = W();
283
- return e.copy = function() {
284
- return H(e, q());
285
- }, l.apply(e, arguments), K(e);
286
- }
287
- //#endregion
288
- export { f as a, C as i, W as n, H as r, q as t };
@@ -1,6 +0,0 @@
1
- const e=require("./chunk-FOHPRMQF-tmTlwTeH.js");var t=class extends e.t{static{e.x(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},n=class extends e.n{static{e.x(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},r={parser:{TokenBuilder:e.x(()=>new t,`TokenBuilder`),ValueConverter:e.x(()=>new n,`ValueConverter`)}};function i(t=e.o){let n=e.w(e.C(t),e.u),i=e.w(e.S({shared:n}),e.r,r);return n.ServiceRegistry.register(i),{shared:n,Architecture:i}}e.x(i,`createArchitectureServices`);var a=class extends e.t{static{e.x(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},o={parser:{TokenBuilder:e.x(()=>new a,`TokenBuilder`),ValueConverter:e.x(()=>new e.i,`ValueConverter`)}};function s(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.a,o);return n.ServiceRegistry.register(r),{shared:n,Cynefin:r}}e.x(s,`createCynefinServices`);var ee=class extends e.t{static{e.x(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},c=new Set([`cmd`,`command`]),l=new Set([`evt`,`event`]),u=new Set([`rmo`,`readmodel`]),d=new Set([`pcr`,`processor`]),f=new Set([`ui`]);function p(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}e.x(p,`registerValidationChecks`);var te=class{static{e.x(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(c.has(e.modelEntityType)?this.validateSources(e,new Set([...f,...d]),`command`,`ui or processor`,t):l.has(e.modelEntityType)?this.validateSources(e,c,`event`,`command`,t):u.has(e.modelEntityType)?this.validateSources(e,l,`read model`,`event`,t):d.has(e.modelEntityType)?this.validateSources(e,u,`processor`,`read model`,t):f.has(e.modelEntityType)&&this.validateSources(e,u,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},m={parser:{TokenBuilder:e.x(()=>new ee,`TokenBuilder`),ValueConverter:e.x(()=>new e.i,`ValueConverter`)},validation:{EventModelingValidator:e.x(()=>new te,`EventModelingValidator`)}};function h(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.s,m);return n.ServiceRegistry.register(r),p(r),{shared:n,EventModel:r}}e.x(h,`createEventModelingServices`);var ne=class extends e.t{static{e.x(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},g={parser:{TokenBuilder:e.x(()=>new ne,`TokenBuilder`),ValueConverter:e.x(()=>new e.i,`ValueConverter`)}};function _(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.c,g);return n.ServiceRegistry.register(r),{shared:n,GitGraph:r}}e.x(_,`createGitGraphServices`);var re=class extends e.t{static{e.x(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},v={parser:{TokenBuilder:e.x(()=>new re,`TokenBuilder`),ValueConverter:e.x(()=>new e.i,`ValueConverter`)}};function y(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.l,v);return n.ServiceRegistry.register(r),{shared:n,Info:r}}e.x(y,`createInfoServices`);var ie=class extends e.t{static{e.x(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},b={parser:{TokenBuilder:e.x(()=>new ie,`TokenBuilder`),ValueConverter:e.x(()=>new e.i,`ValueConverter`)}};function x(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.d,b);return n.ServiceRegistry.register(r),{shared:n,Packet:r}}e.x(x,`createPacketServices`);var S=class extends e.t{static{e.x(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},C=class extends e.n{static{e.x(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},w={parser:{TokenBuilder:e.x(()=>new S,`TokenBuilder`),ValueConverter:e.x(()=>new C,`ValueConverter`)}};function T(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.f,w);return n.ServiceRegistry.register(r),{shared:n,Pie:r}}e.x(T,`createPieServices`);var ae=class extends e.t{static{e.x(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},E={parser:{TokenBuilder:e.x(()=>new ae,`TokenBuilder`),ValueConverter:e.x(()=>new e.i,`ValueConverter`)}};function D(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.p,E);return n.ServiceRegistry.register(r),{shared:n,Radar:r}}e.x(D,`createRadarServices`);var O=class extends e.t{static{e.x(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},k=e.x(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
2
- `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),A=class extends e.n{static{e.x(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return k(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return k(t)}},j={parser:{TokenBuilder:e.x(()=>new O,`TokenBuilder`),ValueConverter:e.x(()=>new A,`ValueConverter`)}};function M(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.g,j);return n.ServiceRegistry.register(r),{shared:n,Railroad:r}}e.x(M,`createRailroadServices`);var oe=class extends e.t{static{e.x(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},se=class extends e.n{static{e.x(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},N={parser:{TokenBuilder:e.x(()=>new oe,`TokenBuilder`),ValueConverter:e.x(()=>new se,`ValueConverter`)}};function P(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.m,N);return n.ServiceRegistry.register(r),{shared:n,RailroadAbnf:r}}e.x(P,`createRailroadAbnfServices`);var ce=class extends e.t{static{e.x(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},F=e.x(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
3
- `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),le=class extends e.n{static{e.x(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return F(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return F(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},I={parser:{TokenBuilder:e.x(()=>new ce,`TokenBuilder`),ValueConverter:e.x(()=>new le,`ValueConverter`)}};function L(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.h,I);return n.ServiceRegistry.register(r),{shared:n,RailroadEbnf:r}}e.x(L,`createRailroadEbnfServices`);var R=class extends e.t{static{e.x(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},z=e.x(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
4
- `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),B=class extends e.n{static{e.x(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return z(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return z(t)}},V={parser:{TokenBuilder:e.x(()=>new R,`TokenBuilder`),ValueConverter:e.x(()=>new B,`ValueConverter`)}};function H(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e._,V);return n.ServiceRegistry.register(r),{shared:n,RailroadPeg:r}}e.x(H,`createRailroadPegServices`);var U=class extends e.n{static{e.x(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},ue=class extends e.t{static{e.x(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},W={parser:{TokenBuilder:e.x(()=>new ue,`TokenBuilder`),ValueConverter:e.x(()=>new U,`ValueConverter`)}};function G(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.v,W);return n.ServiceRegistry.register(r),{shared:n,TreeView:r}}e.x(G,`createTreeViewServices`);var de=class extends e.t{static{e.x(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},fe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,pe=class extends e.n{static{e.x(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=fe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function K(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}e.x(K,`registerValidationChecks`);var me=class{static{e.x(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},q={parser:{TokenBuilder:e.x(()=>new de,`TokenBuilder`),ValueConverter:e.x(()=>new pe,`ValueConverter`)},validation:{TreemapValidator:e.x(()=>new me,`TreemapValidator`)}};function J(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.y,q);return n.ServiceRegistry.register(r),K(r),{shared:n,Treemap:r}}e.x(J,`createTreemapServices`);var he=class extends e.n{static{e.x(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Y={parser:{ValueConverter:e.x(()=>new he,`ValueConverter`)}};function X(t=e.o){let n=e.w(e.C(t),e.u),r=e.w(e.S({shared:n}),e.b,Y);return n.ServiceRegistry.register(r),{shared:n,Wardley:r}}e.x(X,`createWardleyServices`);var Z={},ge={info:e.x(async()=>{let{createInfoServices:e}=await Promise.resolve().then(()=>require("./info-A6RAGUB7-DDvvt-fW.js"));Z.info=e().Info.parser.LangiumParser},`info`),packet:e.x(async()=>{let{createPacketServices:e}=await Promise.resolve().then(()=>require("./packet-AYTQ26CC-CorIy9Ul.js"));Z.packet=e().Packet.parser.LangiumParser},`packet`),pie:e.x(async()=>{let{createPieServices:e}=await Promise.resolve().then(()=>require("./pie-WAS4IAKB-D84xrSoY.js"));Z.pie=e().Pie.parser.LangiumParser},`pie`),treeView:e.x(async()=>{let{createTreeViewServices:e}=await Promise.resolve().then(()=>require("./treeView-Q6P3EWNA-BTzvdwbb.js"));Z.treeView=e().TreeView.parser.LangiumParser},`treeView`),architecture:e.x(async()=>{let{createArchitectureServices:e}=await Promise.resolve().then(()=>require("./architecture-7GRP2DOG-B7myQ46f.js"));Z.architecture=e().Architecture.parser.LangiumParser},`architecture`),gitGraph:e.x(async()=>{let{createGitGraphServices:e}=await Promise.resolve().then(()=>require("./gitGraph-4MIJSDKK-DnElfqX7.js"));Z.gitGraph=e().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:e.x(async()=>{let{createEventModelingServices:e}=await Promise.resolve().then(()=>require("./eventmodeling-NTZA5JFV-CzxVg0l5.js"));Z.eventmodeling=e().EventModel.parser.LangiumParser},`eventmodeling`),radar:e.x(async()=>{let{createRadarServices:e}=await Promise.resolve().then(()=>require("./radar-RG4KPBEZ-R2sQOLL9.js"));Z.radar=e().Radar.parser.LangiumParser},`radar`),railroad:e.x(async()=>{let{createRailroadServices:e}=await Promise.resolve().then(()=>require("./railroad-74A4TZTK-BOZIf6ts.js"));Z.railroad=e().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:e.x(async()=>{let{createRailroadEbnfServices:e}=await Promise.resolve().then(()=>require("./railroad-ebnf-LZEXJU2U-D29kI3YW.js"));Z.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:e.x(async()=>{let{createRailroadAbnfServices:e}=await Promise.resolve().then(()=>require("./railroad-abnf-HS5TGJTU-CXU1aC4B.js"));Z.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:e.x(async()=>{let{createRailroadPegServices:e}=await Promise.resolve().then(()=>require("./railroad-peg-WCYAUIDC-CXviP0hz.js"));Z.railroadPeg=e().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:e.x(async()=>{let{createTreemapServices:e}=await Promise.resolve().then(()=>require("./treemap-WGGIJYW6-DfR4P2Hh.js"));Z.treemap=e().Treemap.parser.LangiumParser},`treemap`),wardley:e.x(async()=>{let{createWardleyServices:e}=await Promise.resolve().then(()=>require("./wardley-WFR3VGLG-DWDqJSgm.js"));Z.wardley=e().Wardley.parser.LangiumParser},`wardley`),cynefin:e.x(async()=>{let{createCynefinServices:e}=await Promise.resolve().then(()=>require("./cynefin-OW5HDTMX-lNKysi7S.js"));Z.cynefin=e().Cynefin.parser.LangiumParser},`cynefin`)};async function Q(e,t){let n=ge[e];if(!n)throw Error(`Unknown diagram type: ${e}`);Z[e]||await n();let r=Z[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new $(r);return r.value}e.x(Q,`parse`);var $=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
5
- `),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
6
- `);super(`Parsing failed: ${t} ${n}`),this.result=e}static{e.x(this,`MermaidParseError`)}};Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return w}});