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,1069 +0,0 @@
1
- import { m as e, p as t } from "./src-D_hsMyeP.mjs";
2
- import { n, t as r } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
- import { J as i, a, b as o, et as s, o as c, rt as l, tt as u, x as d } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
- import { t as f } from "./arc-DgPKXEdT.mjs";
5
- import { p } from "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
6
- import { t as m } from "./chunk-CLGD4ZFX-DBkwyMMv.mjs";
7
- //#region node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-24CTP7MA.mjs
8
- var h = (function() {
9
- var e = /* @__PURE__ */ n(function(e, t, n, r) {
10
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
11
- return n;
12
- }, "o"), t = [
13
- 6,
14
- 11,
15
- 13,
16
- 14,
17
- 15,
18
- 17,
19
- 19,
20
- 20,
21
- 23,
22
- 24
23
- ], r = [1, 12], i = [1, 13], a = [1, 14], o = [1, 15], s = [1, 16], c = [1, 19], l = [1, 20], u = {
24
- trace: /* @__PURE__ */ n(function() {}, "trace"),
25
- yy: {},
26
- symbols_: {
27
- error: 2,
28
- start: 3,
29
- timeline_header: 4,
30
- document: 5,
31
- EOF: 6,
32
- timeline: 7,
33
- timeline_lr: 8,
34
- timeline_td: 9,
35
- line: 10,
36
- SPACE: 11,
37
- statement: 12,
38
- NEWLINE: 13,
39
- title: 14,
40
- acc_title: 15,
41
- acc_title_value: 16,
42
- acc_descr: 17,
43
- acc_descr_value: 18,
44
- acc_descr_multiline_value: 19,
45
- section: 20,
46
- period_statement: 21,
47
- event_statement: 22,
48
- period: 23,
49
- event: 24,
50
- $accept: 0,
51
- $end: 1
52
- },
53
- terminals_: {
54
- 2: "error",
55
- 6: "EOF",
56
- 7: "timeline",
57
- 8: "timeline_lr",
58
- 9: "timeline_td",
59
- 11: "SPACE",
60
- 13: "NEWLINE",
61
- 14: "title",
62
- 15: "acc_title",
63
- 16: "acc_title_value",
64
- 17: "acc_descr",
65
- 18: "acc_descr_value",
66
- 19: "acc_descr_multiline_value",
67
- 20: "section",
68
- 23: "period",
69
- 24: "event"
70
- },
71
- productions_: [
72
- 0,
73
- [3, 3],
74
- [4, 1],
75
- [4, 1],
76
- [4, 1],
77
- [5, 0],
78
- [5, 2],
79
- [10, 2],
80
- [10, 1],
81
- [10, 1],
82
- [10, 1],
83
- [12, 1],
84
- [12, 2],
85
- [12, 2],
86
- [12, 1],
87
- [12, 1],
88
- [12, 1],
89
- [12, 1],
90
- [21, 1],
91
- [22, 1]
92
- ],
93
- performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
94
- var s = a.length - 1;
95
- switch (i) {
96
- case 1: return a[s - 1];
97
- case 3:
98
- r.setDirection("LR");
99
- break;
100
- case 4:
101
- r.setDirection("TD");
102
- break;
103
- case 5:
104
- this.$ = [];
105
- break;
106
- case 6:
107
- a[s - 1].push(a[s]), this.$ = a[s - 1];
108
- break;
109
- case 7:
110
- case 8:
111
- this.$ = a[s];
112
- break;
113
- case 9:
114
- case 10:
115
- this.$ = [];
116
- break;
117
- case 11:
118
- r.getCommonDb().setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
119
- break;
120
- case 12:
121
- this.$ = a[s].trim(), r.getCommonDb().setAccTitle(this.$);
122
- break;
123
- case 13:
124
- case 14:
125
- this.$ = a[s].trim(), r.getCommonDb().setAccDescription(this.$);
126
- break;
127
- case 15:
128
- r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
129
- break;
130
- case 18:
131
- r.addTask(a[s], 0, ""), this.$ = a[s];
132
- break;
133
- case 19: r.addEvent(a[s].substr(2)), this.$ = a[s];
134
- }
135
- }, "anonymous"),
136
- table: [
137
- {
138
- 3: 1,
139
- 4: 2,
140
- 7: [1, 3],
141
- 8: [1, 4],
142
- 9: [1, 5]
143
- },
144
- { 1: [3] },
145
- e(t, [2, 5], { 5: 6 }),
146
- e(t, [2, 2]),
147
- e(t, [2, 3]),
148
- e(t, [2, 4]),
149
- {
150
- 6: [1, 7],
151
- 10: 8,
152
- 11: [1, 9],
153
- 12: 10,
154
- 13: [1, 11],
155
- 14: r,
156
- 15: i,
157
- 17: a,
158
- 19: o,
159
- 20: s,
160
- 21: 17,
161
- 22: 18,
162
- 23: c,
163
- 24: l
164
- },
165
- e(t, [2, 10], { 1: [2, 1] }),
166
- e(t, [2, 6]),
167
- {
168
- 12: 21,
169
- 14: r,
170
- 15: i,
171
- 17: a,
172
- 19: o,
173
- 20: s,
174
- 21: 17,
175
- 22: 18,
176
- 23: c,
177
- 24: l
178
- },
179
- e(t, [2, 8]),
180
- e(t, [2, 9]),
181
- e(t, [2, 11]),
182
- { 16: [1, 22] },
183
- { 18: [1, 23] },
184
- e(t, [2, 14]),
185
- e(t, [2, 15]),
186
- e(t, [2, 16]),
187
- e(t, [2, 17]),
188
- e(t, [2, 18]),
189
- e(t, [2, 19]),
190
- e(t, [2, 7]),
191
- e(t, [2, 12]),
192
- e(t, [2, 13])
193
- ],
194
- defaultActions: {},
195
- parseError: /* @__PURE__ */ n(function(e, t) {
196
- if (t.recoverable) this.trace(e);
197
- else {
198
- var n = Error(e);
199
- throw n.hash = t, n;
200
- }
201
- }, "parseError"),
202
- parse: /* @__PURE__ */ n(function(e) {
203
- var t = 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: {} };
204
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
205
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
206
- var v = h.yylloc;
207
- o.push(v);
208
- var y = h.options && h.options.ranges;
209
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
210
- function b(e) {
211
- r.length -= 2 * e, a.length -= e, o.length -= e;
212
- }
213
- n(b, "popStack");
214
- function x() {
215
- var e = i.pop() || h.lex() || p;
216
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
217
- }
218
- n(x, "lex");
219
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
220
- 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]) {
221
- var M = "";
222
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
223
- 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, {
224
- text: h.match,
225
- token: this.terminals_[S] || S,
226
- line: h.yylineno,
227
- loc: v,
228
- expected: j
229
- });
230
- }
231
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
232
- switch (T[0]) {
233
- case 1:
234
- 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--);
235
- break;
236
- case 2:
237
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
238
- first_line: o[o.length - (k || 1)].first_line,
239
- last_line: o[o.length - 1].last_line,
240
- first_column: o[o.length - (k || 1)].first_column,
241
- last_column: o[o.length - 1].last_column
242
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
243
- c,
244
- u,
245
- l,
246
- g.yy,
247
- T[1],
248
- a,
249
- o
250
- ].concat(m)), E !== void 0) return E;
251
- 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);
252
- break;
253
- case 3: return !0;
254
- }
255
- }
256
- return !0;
257
- }, "parse")
258
- };
259
- u.lexer = /* @__PURE__ */ (function() {
260
- return {
261
- EOF: 1,
262
- parseError: /* @__PURE__ */ n(function(e, t) {
263
- if (this.yy.parser) this.yy.parser.parseError(e, t);
264
- else throw Error(e);
265
- }, "parseError"),
266
- setInput: /* @__PURE__ */ n(function(e, t) {
267
- 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 = {
268
- first_line: 1,
269
- first_column: 0,
270
- last_line: 1,
271
- last_column: 0
272
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
273
- }, "setInput"),
274
- input: /* @__PURE__ */ n(function() {
275
- var e = this._input[0];
276
- 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;
277
- }, "input"),
278
- unput: /* @__PURE__ */ n(function(e) {
279
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
280
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
281
- var r = this.match.split(/(?:\r\n?|\n)/g);
282
- 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);
283
- var i = this.yylloc.range;
284
- return this.yylloc = {
285
- first_line: this.yylloc.first_line,
286
- last_line: this.yylineno + 1,
287
- first_column: this.yylloc.first_column,
288
- 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
289
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
290
- }, "unput"),
291
- more: /* @__PURE__ */ n(function() {
292
- return this._more = !0, this;
293
- }, "more"),
294
- reject: /* @__PURE__ */ n(function() {
295
- if (this.options.backtrack_lexer) this._backtrack = !0;
296
- 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(), {
297
- text: "",
298
- token: null,
299
- line: this.yylineno
300
- });
301
- return this;
302
- }, "reject"),
303
- less: /* @__PURE__ */ n(function(e) {
304
- this.unput(this.match.slice(e));
305
- }, "less"),
306
- pastInput: /* @__PURE__ */ n(function() {
307
- var e = this.matched.substr(0, this.matched.length - this.match.length);
308
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
309
- }, "pastInput"),
310
- upcomingInput: /* @__PURE__ */ n(function() {
311
- var e = this.match;
312
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
313
- }, "upcomingInput"),
314
- showPosition: /* @__PURE__ */ n(function() {
315
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
316
- return e + this.upcomingInput() + "\n" + t + "^";
317
- }, "showPosition"),
318
- test_match: /* @__PURE__ */ n(function(e, t) {
319
- var n, r, i;
320
- if (this.options.backtrack_lexer && (i = {
321
- yylineno: this.yylineno,
322
- yylloc: {
323
- first_line: this.yylloc.first_line,
324
- last_line: this.last_line,
325
- first_column: this.yylloc.first_column,
326
- last_column: this.yylloc.last_column
327
- },
328
- yytext: this.yytext,
329
- match: this.match,
330
- matches: this.matches,
331
- matched: this.matched,
332
- yyleng: this.yyleng,
333
- offset: this.offset,
334
- _more: this._more,
335
- _input: this._input,
336
- yy: this.yy,
337
- conditionStack: this.conditionStack.slice(0),
338
- done: this.done
339
- }, 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 = {
340
- first_line: this.yylloc.last_line,
341
- last_line: this.yylineno + 1,
342
- first_column: this.yylloc.last_column,
343
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
344
- }, 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;
345
- if (this._backtrack) {
346
- for (var a in i) this[a] = i[a];
347
- return !1;
348
- }
349
- return !1;
350
- }, "test_match"),
351
- next: /* @__PURE__ */ n(function() {
352
- if (this.done) return this.EOF;
353
- this._input || (this.done = !0);
354
- var e, t, n, r;
355
- this._more || (this.yytext = "", this.match = "");
356
- 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)) {
357
- if (t = n, r = a, this.options.backtrack_lexer) {
358
- if (e = this.test_match(n, i[a]), e !== !1) return e;
359
- if (this._backtrack) {
360
- t = !1;
361
- continue;
362
- }
363
- return !1;
364
- }
365
- if (!this.options.flex) break;
366
- }
367
- 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(), {
368
- text: "",
369
- token: null,
370
- line: this.yylineno
371
- });
372
- }, "next"),
373
- lex: /* @__PURE__ */ n(function() {
374
- return this.next() || this.lex();
375
- }, "lex"),
376
- begin: /* @__PURE__ */ n(function(e) {
377
- this.conditionStack.push(e);
378
- }, "begin"),
379
- popState: /* @__PURE__ */ n(function() {
380
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
381
- }, "popState"),
382
- _currentRules: /* @__PURE__ */ n(function() {
383
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
384
- }, "_currentRules"),
385
- topState: /* @__PURE__ */ n(function(e) {
386
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
387
- }, "topState"),
388
- pushState: /* @__PURE__ */ n(function(e) {
389
- this.begin(e);
390
- }, "pushState"),
391
- stateStackSize: /* @__PURE__ */ n(function() {
392
- return this.conditionStack.length;
393
- }, "stateStackSize"),
394
- options: { "case-insensitive": !0 },
395
- performAction: /* @__PURE__ */ n(function(e, t, n, r) {
396
- switch (n) {
397
- case 0: break;
398
- case 1: break;
399
- case 2: return 13;
400
- case 3: break;
401
- case 4: break;
402
- case 5: return 8;
403
- case 6: return 9;
404
- case 7: return 7;
405
- case 8: return 14;
406
- case 9: return this.begin("acc_title"), 15;
407
- case 10: return this.popState(), "acc_title_value";
408
- case 11: return this.begin("acc_descr"), 17;
409
- case 12: return this.popState(), "acc_descr_value";
410
- case 13:
411
- this.begin("acc_descr_multiline");
412
- break;
413
- case 14:
414
- this.popState();
415
- break;
416
- case 15: return "acc_descr_multiline_value";
417
- case 16: return 20;
418
- case 17: return 24;
419
- case 18: return 23;
420
- case 19: return 6;
421
- case 20: return "INVALID";
422
- }
423
- }, "anonymous"),
424
- rules: [
425
- /^(?:%(?!\{)[^\n]*)/i,
426
- /^(?:[^\}]%%[^\n]*)/i,
427
- /^(?:[\n]+)/i,
428
- /^(?:\s+)/i,
429
- /^(?:#[^\n]*)/i,
430
- /^(?:timeline[ \t]+LR\b)/i,
431
- /^(?:timeline[ \t]+TD\b)/i,
432
- /^(?:timeline\b)/i,
433
- /^(?:title\s[^\n]+)/i,
434
- /^(?:accTitle\s*:\s*)/i,
435
- /^(?:(?!\n||)*[^\n]*)/i,
436
- /^(?:accDescr\s*:\s*)/i,
437
- /^(?:(?!\n||)*[^\n]*)/i,
438
- /^(?:accDescr\s*\{\s*)/i,
439
- /^(?:[\}])/i,
440
- /^(?:[^\}]*)/i,
441
- /^(?:section\s[^:\n]+)/i,
442
- /^(?::\s(?:[^:\n]|:(?!\s))+)/i,
443
- /^(?:[^#:\n]+)/i,
444
- /^(?:$)/i,
445
- /^(?:.)/i
446
- ],
447
- conditions: {
448
- acc_descr_multiline: {
449
- rules: [14, 15],
450
- inclusive: !1
451
- },
452
- acc_descr: {
453
- rules: [12],
454
- inclusive: !1
455
- },
456
- acc_title: {
457
- rules: [10],
458
- inclusive: !1
459
- },
460
- INITIAL: {
461
- rules: [
462
- 0,
463
- 1,
464
- 2,
465
- 3,
466
- 4,
467
- 5,
468
- 6,
469
- 7,
470
- 8,
471
- 9,
472
- 11,
473
- 13,
474
- 16,
475
- 17,
476
- 18,
477
- 19,
478
- 20
479
- ],
480
- inclusive: !0
481
- }
482
- }
483
- };
484
- })();
485
- function d() {
486
- this.yy = {};
487
- }
488
- return n(d, "Parser"), d.prototype = u, u.Parser = d, new d();
489
- })();
490
- h.parser = h;
491
- var g = h, _ = {};
492
- r(_, {
493
- addEvent: () => M,
494
- addSection: () => O,
495
- addTask: () => j,
496
- addTaskOrg: () => N,
497
- clear: () => T,
498
- default: () => ee,
499
- getCommonDb: () => w,
500
- getDirection: () => D,
501
- getSections: () => k,
502
- getTasks: () => A,
503
- setDirection: () => E
504
- });
505
- var v = "", y = 0, b = "LR", x = [], S = [], C = [], w = /* @__PURE__ */ n(() => c, "getCommonDb"), T = /* @__PURE__ */ n(function() {
506
- x.length = 0, S.length = 0, v = "", C.length = 0, b = "LR", a();
507
- }, "clear"), E = /* @__PURE__ */ n(function(e) {
508
- b = e;
509
- }, "setDirection"), D = /* @__PURE__ */ n(function() {
510
- return b;
511
- }, "getDirection"), O = /* @__PURE__ */ n(function(e) {
512
- v = e, x.push(e);
513
- }, "addSection"), k = /* @__PURE__ */ n(function() {
514
- return x;
515
- }, "getSections"), A = /* @__PURE__ */ n(function() {
516
- let e = P(), t = 0;
517
- for (; !e && t < 100;) e = P(), t++;
518
- return S.push(...C), S;
519
- }, "getTasks"), j = /* @__PURE__ */ n(function(e, t, n) {
520
- let r = {
521
- id: y++,
522
- section: v,
523
- type: v,
524
- task: e,
525
- score: t || 0,
526
- events: n ? [n] : []
527
- };
528
- C.push(r);
529
- }, "addTask"), M = /* @__PURE__ */ n(function(e) {
530
- C.find((e) => e.id === y - 1).events.push(e);
531
- }, "addEvent"), N = /* @__PURE__ */ n(function(e) {
532
- let t = {
533
- section: v,
534
- type: v,
535
- description: e,
536
- task: e,
537
- classes: []
538
- };
539
- S.push(t);
540
- }, "addTaskOrg"), P = /* @__PURE__ */ n(function() {
541
- let e = /* @__PURE__ */ n(function(e) {
542
- return C[e].processed;
543
- }, "compileTask"), t = !0;
544
- for (let [n, r] of C.entries()) e(n), t &&= r.processed;
545
- return t;
546
- }, "compileTasks"), ee = {
547
- clear: T,
548
- getCommonDb: w,
549
- getDirection: D,
550
- setDirection: E,
551
- addSection: O,
552
- getSections: k,
553
- getTasks: A,
554
- addTask: j,
555
- addTaskOrg: N,
556
- addEvent: M
557
- }, F = 0, I = /* @__PURE__ */ n(function(e, t) {
558
- let n = e.append("rect");
559
- return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
560
- }, "drawRect"), te = /* @__PURE__ */ n(function(e, t) {
561
- let r = e.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = e.append("g");
562
- i.append("circle").attr("cx", t.cx - 5).attr("cy", t.cy - 5).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", t.cx + 5).attr("cy", t.cy - 5).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
563
- function a(e) {
564
- let n = f().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
565
- e.append("path").attr("class", "mouth").attr("d", n).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
566
- }
567
- n(a, "smile");
568
- function o(e) {
569
- let n = f().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
570
- e.append("path").attr("class", "mouth").attr("d", n).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
571
- }
572
- n(o, "sad");
573
- function s(e) {
574
- e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
575
- }
576
- return n(s, "ambivalent"), t.score > 3 ? a(i) : t.score < 3 ? o(i) : s(i), r;
577
- }, "drawFace"), ne = /* @__PURE__ */ n(function(e, t) {
578
- let n = e.append("circle");
579
- return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
580
- }, "drawCircle"), L = /* @__PURE__ */ n(function(e, t) {
581
- let n = t.text.replace(/<br\s*\/?>/gi, " "), r = e.append("text");
582
- r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class !== void 0 && r.attr("class", t.class);
583
- let i = r.append("tspan");
584
- return i.attr("x", t.x + t.textMargin * 2), i.text(n), r;
585
- }, "drawText"), re = /* @__PURE__ */ n(function(e, t) {
586
- function r(e, t, n, r, i) {
587
- return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
588
- }
589
- n(r, "genPoints");
590
- let i = e.append("polygon");
591
- i.attr("points", r(t.x, t.y, 50, 20, 7)), i.attr("class", "labelBox"), t.y += t.labelMargin, t.x += .5 * t.labelMargin, L(e, t);
592
- }, "drawLabel"), R = /* @__PURE__ */ n(function(e, t, n) {
593
- let r = e.append("g"), i = B();
594
- i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width, i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, I(r, i), V(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
595
- }, "drawSection"), z = -1, ie = /* @__PURE__ */ n(function(e, t, n, r) {
596
- let i = t.x + n.width / 2, a = e.append("g");
597
- z++, a.append("line").attr("id", r + "-task" + z).attr("x1", i).attr("y1", t.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), te(a, {
598
- cx: i,
599
- cy: 300 + (5 - t.score) * 30,
600
- score: t.score
601
- });
602
- let o = B();
603
- o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = n.width, o.height = n.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, I(a, o), V(n)(t.task, a, o.x, o.y, o.width, o.height, { class: "task" }, n, t.colour);
604
- }, "drawTask"), ae = /* @__PURE__ */ n(function(e, t) {
605
- I(e, {
606
- x: t.startx,
607
- y: t.starty,
608
- width: t.stopx - t.startx,
609
- height: t.stopy - t.starty,
610
- fill: t.fill,
611
- class: "rect"
612
- }).lower();
613
- }, "drawBackgroundRect"), oe = /* @__PURE__ */ n(function() {
614
- return {
615
- x: 0,
616
- y: 0,
617
- fill: void 0,
618
- "text-anchor": "start",
619
- width: 100,
620
- height: 100,
621
- textMargin: 0,
622
- rx: 0,
623
- ry: 0
624
- };
625
- }, "getTextObj"), B = /* @__PURE__ */ n(function() {
626
- return {
627
- x: 0,
628
- y: 0,
629
- width: 100,
630
- anchor: "start",
631
- height: 100,
632
- rx: 0,
633
- ry: 0
634
- };
635
- }, "getNoteRect"), V = /* @__PURE__ */ (function() {
636
- function e(e, t, n, r, a, o, s, c) {
637
- i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("font-color", c).style("text-anchor", "middle").text(e), s);
638
- }
639
- n(e, "byText");
640
- function t(e, t, n, r, a, o, s, c, l) {
641
- let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
642
- for (let e = 0; e < f.length; e++) {
643
- let c = e * u - u * (f.length - 1) / 2, p = t.append("text").attr("x", n + a / 2).attr("y", r).attr("fill", l).style("text-anchor", "middle").style("font-size", u).style("font-family", d);
644
- p.append("tspan").attr("x", n + a / 2).attr("dy", c).text(f[e]), p.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(p, s);
645
- }
646
- }
647
- n(t, "byTspan");
648
- function r(e, n, r, a, o, s, c, l) {
649
- let u = n.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
650
- d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, r, a, o, s, c, l), i(d, c);
651
- }
652
- n(r, "byFo");
653
- function i(e, t) {
654
- for (let n in t) n in t && e.attr(n, t[n]);
655
- }
656
- return n(i, "_setTextAttrs"), function(n) {
657
- return n.textPlacement === "fo" ? r : n.textPlacement === "old" ? e : t;
658
- };
659
- })(), se = /* @__PURE__ */ n(function(e, t) {
660
- F = 0, z = -1, e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
661
- }, "initGraphics");
662
- function H(e, n) {
663
- e.each(function() {
664
- var e = t(this), r = e.text().split(/(\s+|<br>)/).reverse(), i, a = [], o = 1.1, s = e.attr("y"), c = parseFloat(e.attr("dy")), l = e.text(null).append("tspan").attr("x", 0).attr("y", s).attr("dy", c + "em");
665
- for (let t = 0; t < r.length; t++) i = r[r.length - 1 - t], a.push(i), l.text(a.join(" ").trim()), (l.node().getComputedTextLength() > n || i === "<br>") && (a.pop(), l.text(a.join(" ").trim()), a = i === "<br>" ? [""] : [i], l = e.append("tspan").attr("x", 0).attr("y", s).attr("dy", o + "em").text(i));
666
- });
667
- }
668
- n(H, "wrap");
669
- var ce = /* @__PURE__ */ n(function(e, n, r, i, a, o = !1) {
670
- let { theme: s, look: c } = i, l = s?.includes("redux"), u = r % (i?.themeVariables?.THEME_COLOR_LIMIT ?? 12) - 1, d = e.append("g");
671
- n.section = u, d.attr("class", (n.class ? n.class + " " : "") + "timeline-node " + ("section-" + u));
672
- let f = d.append("g"), p = d.append("g"), m = p.append("text").text(n.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(H, n.width).node().getBBox(), h = i.fontSize?.replace ? i.fontSize.replace("px", "") : i.fontSize;
673
- if (n.height = m.height + h * 1.1 * .5 + n.padding, n.height = Math.max(n.height, n.maxHeight), n.width += 2 * n.padding, p.attr("transform", "translate(" + n.width / 2 + ", " + n.padding / 2 + ")"), l && p.attr("transform", `translate(${n.width / 2}, ${o ? n.padding / 2 + 3 : n.padding})`), ue(f, n, u, a, i), c === "neo" && (d.attr("data-look", "neo"), l)) {
674
- let n = s.includes("dark"), r = e.node()?.ownerSVGElement ?? e.node(), i = t(r), a = i.attr("id") ?? "", o = a ? `${a}-drop-shadow` : "drop-shadow";
675
- if (i.select(`#${o}`).empty()) {
676
- let e = i.select("defs");
677
- (e.empty() ? i.append("defs") : e).append("filter").attr("id", o).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", n ? "0.2" : "0.06").attr("flood-color", n ? "#FFFFFF" : "#000000");
678
- }
679
- }
680
- return n;
681
- }, "drawNode"), le = /* @__PURE__ */ n(function(e, t, n) {
682
- let r = e.append("g"), i = r.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(H, t.width).node().getBBox(), a = n.fontSize?.replace ? n.fontSize.replace("px", "") : n.fontSize;
683
- return r.remove(), i.height + a * 1.1 * .5 + t.padding;
684
- }, "getVirtualNodeHeight"), ue = /* @__PURE__ */ n(function(e, t, n, r, i) {
685
- let { theme: a } = i, o = a?.includes("redux") ? 0 : 5, s = o > 0 ? `M0 ${t.height - 5} v${-t.height + 10} q0,-${o},${o},-${o} h${t.width - 10} q${o},0,${o},${o} v${t.height - 5} H0 Z` : `M0 ${t.height - 5} v${-(t.height - 5)} h${t.width} v${t.height} H0 Z`;
686
- e.append("path").attr("id", r + "-node-" + F++).attr("class", "node-bkg node-" + t.type).attr("d", s), a?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
687
- }, "defaultBkg"), U = {
688
- drawRect: I,
689
- drawCircle: ne,
690
- drawSection: R,
691
- drawText: L,
692
- drawLabel: re,
693
- drawTask: ie,
694
- drawBackgroundRect: ae,
695
- getTextObj: oe,
696
- getNoteRect: B,
697
- initGraphics: se,
698
- drawNode: ce,
699
- getVirtualNodeHeight: le
700
- }, de = /* @__PURE__ */ n(function(n, r, a, o) {
701
- let s = d(), { look: c, theme: l, themeVariables: u } = s, { useGradient: f, gradientStart: p, gradientStop: m } = u, h = s.timeline?.leftMargin ?? 50;
702
- e.debug("timeline", o.db);
703
- let g = s.securityLevel, _;
704
- g === "sandbox" && (_ = t("#i" + r));
705
- let v = t(g === "sandbox" ? _.nodes()[0].contentDocument.body : "body").select("#" + r);
706
- v.append("g");
707
- let y = o.db.getTasks(), b = o.db.getCommonDb().getDiagramTitle();
708
- e.debug("task", y), U.initGraphics(v, r);
709
- let x = o.db.getSections();
710
- e.debug("sections", x);
711
- let S = 0, C = 0, w = 0, T = 0, E = 50 + h, D = 50;
712
- T = 50;
713
- let O = 0, k = !0;
714
- x.forEach(function(t) {
715
- let n = {
716
- number: O,
717
- descr: t,
718
- section: O,
719
- width: 150,
720
- padding: 20,
721
- maxHeight: S
722
- }, r = U.getVirtualNodeHeight(v, n, s);
723
- e.debug("sectionHeight before draw", r), S = Math.max(S, r + 20);
724
- });
725
- let A = 0, j = 0;
726
- e.debug("tasks.length", y.length);
727
- for (let [t, n] of y.entries()) {
728
- let r = {
729
- number: t,
730
- descr: n,
731
- section: n.section,
732
- width: 150,
733
- padding: 20,
734
- maxHeight: C
735
- }, i = U.getVirtualNodeHeight(v, r, s);
736
- e.debug("taskHeight before draw", i), C = Math.max(C, i + 20), A = Math.max(A, n.events.length);
737
- let a = 0;
738
- for (let e of n.events) {
739
- let t = {
740
- descr: e,
741
- section: n.section,
742
- number: n.section,
743
- width: 150,
744
- padding: 20,
745
- maxHeight: 50
746
- };
747
- a += U.getVirtualNodeHeight(v, t, s);
748
- }
749
- n.events.length > 0 && (a += (n.events.length - 1) * 10), j = Math.max(j, a);
750
- }
751
- e.debug("maxSectionHeight before draw", S), e.debug("maxTaskHeight before draw", C), x && x.length > 0 ? x.forEach((t) => {
752
- let n = y.filter((e) => e.section === t), i = {
753
- number: O,
754
- descr: t,
755
- section: O,
756
- width: 200 * Math.max(n.length, 1) - 50,
757
- padding: 20,
758
- maxHeight: S
759
- };
760
- e.debug("sectionNode", i);
761
- let a = v.append("g"), o = U.drawNode(a, i, O, s, r);
762
- e.debug("sectionNode output", o), a.attr("transform", `translate(${E}, ${T})`), D += S + 50, n.length > 0 && W(v, n, O, E, D, C, s, A, j, S, !1, r), E += 200 * Math.max(n.length, 1), D = T, O++;
763
- }) : (k = !1, W(v, y, O, E, D, C, s, A, j, S, !0, r));
764
- let M = v.node().getBBox();
765
- if (e.debug("bounds", M), b && v.append("text").text(b).attr("x", c === "neo" ? M.x * 2 + h : M.width / 2 - h).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), w = k ? S + C + 150 : C + 100, v.append("g").attr("class", "lineWrapper").append("line").attr("x1", h).attr("y1", w).attr("x2", M.width + 3 * h).attr("y2", w).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${r}-arrowhead)`), c === "neo" && f && l !== "neutral") {
766
- let e = v.select("defs"), t = (e.empty() ? v.append("defs") : e).append("linearGradient").attr("id", v.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
767
- t.append("stop").attr("offset", "0%").attr("stop-color", p).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", m).attr("stop-opacity", 1);
768
- }
769
- i(void 0, v, s.timeline?.padding ?? 50, s.timeline?.useMaxWidth ?? !1);
770
- }, "draw"), W = /* @__PURE__ */ n(function(t, n, r, i, a, o, s, c, l, u, d, f) {
771
- for (let c of n) {
772
- let n = {
773
- descr: c.task,
774
- section: r,
775
- number: r,
776
- width: 150,
777
- padding: 20,
778
- maxHeight: o
779
- };
780
- e.debug("taskNode", n);
781
- let u = t.append("g").attr("class", "taskWrapper"), p = U.drawNode(u, n, r, s, f).height;
782
- if (e.debug("taskHeight after draw", p), u.attr("transform", `translate(${i}, ${a})`), o = Math.max(o, p), c.events) {
783
- let e = t.append("g").attr("class", "lineWrapper"), n = o;
784
- a += 100, n += fe(t, c.events, r, i, a, s, f), a -= 100, e.append("line").attr("x1", i + 95).attr("y1", a + o).attr("x2", i + 95).attr("y2", a + o + 100 + l + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${f}-arrowhead)`).attr("stroke-dasharray", "5,5");
785
- }
786
- i += 200, d && !s.timeline?.disableMulticolor && r++;
787
- }
788
- a -= 10;
789
- }, "drawTasks"), fe = /* @__PURE__ */ n(function(t, n, r, i, a, o, s) {
790
- let c = 0, l = a;
791
- a += 100;
792
- for (let l of n) {
793
- let n = {
794
- descr: l,
795
- section: r,
796
- number: r,
797
- width: 150,
798
- padding: 20,
799
- maxHeight: 50
800
- };
801
- e.debug("eventNode", n);
802
- let u = t.append("g").attr("class", "eventWrapper"), d = U.drawNode(u, n, r, o, s, !0).height;
803
- c += d, u.attr("transform", `translate(${i}, ${a})`), a = a + 10 + d;
804
- }
805
- return a = l, c;
806
- }, "drawEvents"), pe = {
807
- setConf: /* @__PURE__ */ n(() => {}, "setConf"),
808
- draw: de
809
- }, G = 200, K = 5, me = G + K * 2, q = G + 100, he = q + K * 2, J = 10, ge = 0, Y = 20, X = 20, Z = 30, Q = 50, _e = /* @__PURE__ */ n(function(t, n, r, a) {
810
- let o = d(), s = o.timeline?.leftMargin ?? 50;
811
- e.debug("timeline", a.db);
812
- let c = m(n);
813
- c.append("g");
814
- let l = a.db.getTasks(), u = a.db.getCommonDb().getDiagramTitle();
815
- e.debug("task", l), U.initGraphics(c);
816
- let f = a.db.getSections();
817
- e.debug("sections", f);
818
- let h = 0, g = 0, _ = 50 + s, v = 50, y = v, b = _, x = me + X, S = he + Q, C = b + x, w = 0, T = f && f.length > 0, E = T ? C : _ + x, D = Math.max(50, x + S - K * 2);
819
- f.forEach(function(t) {
820
- let n = {
821
- number: w,
822
- descr: t,
823
- section: w,
824
- width: D,
825
- padding: K,
826
- maxHeight: h
827
- }, r = U.getVirtualNodeHeight(c, n, o);
828
- e.debug("sectionHeight before draw", r), h = Math.max(h, r);
829
- });
830
- let O = 0;
831
- e.debug("tasks.length", l.length);
832
- for (let [t, n] of l.entries()) {
833
- let r = {
834
- number: t,
835
- descr: n,
836
- section: n.section,
837
- width: G,
838
- padding: K,
839
- maxHeight: g
840
- }, i = U.getVirtualNodeHeight(c, r, o);
841
- e.debug("taskHeight before draw", i), g = Math.max(g, i);
842
- let a = 0;
843
- for (let e of n.events) {
844
- let t = {
845
- descr: e,
846
- section: n.section,
847
- number: n.section,
848
- width: q,
849
- padding: K,
850
- maxHeight: 50
851
- };
852
- a += U.getVirtualNodeHeight(c, t, o);
853
- }
854
- n.events.length > 0 && (a += (n.events.length - 1) * J), O = Math.max(O, a) + ge;
855
- }
856
- e.debug("maxSectionHeight before draw", h), e.debug("maxTaskHeight before draw", g);
857
- let k = Math.max(g, O) + Z;
858
- T ? f.forEach((t) => {
859
- let n = l.filter((e) => e.section === t), r = {
860
- number: w,
861
- descr: t,
862
- section: w,
863
- width: D,
864
- padding: K,
865
- maxHeight: h
866
- };
867
- e.debug("sectionNode", r);
868
- let i = c.append("g"), a = U.drawNode(i, r, w, o);
869
- e.debug("sectionNode output", a);
870
- let s = E - x;
871
- i.attr("transform", `translate(${s}, ${v})`);
872
- let u = v + a.height + Y;
873
- n.length > 0 && $(c, n, w, E, u, g, o, k, !1);
874
- let d = n.length, f = a.height + Y + k * Math.max(d, 1) - (d > 0 ? Z * 2 : 0);
875
- v += f, w++;
876
- }) : $(c, l, w, E, v, g, o, k, !0);
877
- let A = c.node()?.getBBox();
878
- if (!A) throw Error("bbox not found");
879
- if (e.debug("bounds", A), u) {
880
- if (c.append("text").text(u).attr("x", A.width / 2 - s).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), A = c.node()?.getBBox(), !A) throw Error("bbox not found");
881
- e.debug("bounds after title", A);
882
- }
883
- let [j] = p(o.fontSize), M = (j ?? 16) * 2, N = (j ?? 16) * .5 + 20, P = c.append("g").attr("class", "lineWrapper");
884
- P.append("line").attr("x1", E).attr("y1", y - M).attr("x2", E).attr("y2", A.y + A.height + N).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), P.lower(), i(void 0, c, o.timeline?.padding ?? 50, o.timeline?.useMaxWidth ?? !1);
885
- }, "draw"), $ = /* @__PURE__ */ n(function(t, n, r, i, a, o, s, c, l) {
886
- for (let u of n) {
887
- let n = {
888
- descr: u.task,
889
- section: r,
890
- number: r,
891
- width: G,
892
- padding: K,
893
- maxHeight: o
894
- };
895
- e.debug("taskNode", n);
896
- let d = t.append("g").attr("class", "taskWrapper"), f = U.drawNode(d, n, r, s), p = f.height;
897
- e.debug("taskHeight after draw", p);
898
- let m = i - X - f.width;
899
- if (d.attr("transform", `translate(${m}, ${a})`), o = Math.max(o, p), u.events && u.events.length > 0) {
900
- let e = a, n = i + Q;
901
- ve(t, u.events, r, i, n, e, s);
902
- }
903
- a += c, l && !s.timeline?.disableMulticolor && r++;
904
- }
905
- }, "drawTasks"), ve = /* @__PURE__ */ n(function(t, n, r, i, a, o, s) {
906
- let c = o;
907
- for (let o of n) {
908
- let n = {
909
- descr: o,
910
- section: r,
911
- number: r,
912
- width: q,
913
- padding: K,
914
- maxHeight: 0
915
- };
916
- e.debug("eventNode", n);
917
- let l = t.append("g").attr("class", "eventWrapper"), u = U.drawNode(l, n, r, s).height;
918
- l.attr("transform", `translate(${a}, ${c})`);
919
- let d = t.append("g").attr("class", "lineWrapper"), f = c + u / 2;
920
- d.append("line").attr("x1", i).attr("y1", f).attr("x2", a).attr("y2", f).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), c = c + u + J;
921
- }
922
- return c - o;
923
- }, "drawEvents"), ye = {
924
- setConf: /* @__PURE__ */ n(() => {}, "setConf"),
925
- draw: _e
926
- }, be = /* @__PURE__ */ n((e) => {
927
- let { theme: t } = o(), n = t?.includes("dark"), r = t?.includes("color"), i = e.svgId?.replace(/^#/, "") ?? "", a = i ? `url(#${i}-drop-shadow)` : e.dropShadow ?? "none", s = "";
928
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
929
- let i = `${17 - 3 * t}`, o = r ? e.borderColorArray[t] : e.mainBkg, c = r ? e.borderColorArray[t] : e.nodeBorder;
930
- s += `
931
- .section-${t - 1} rect,
932
- .section-${t - 1} path,
933
- .section-${t - 1} circle {
934
- fill: ${n && r ? e.mainBkg : o};
935
- stroke: ${c};
936
- stroke-width: ${e.strokeWidth};
937
- filter: ${a};
938
- }
939
-
940
- .section-${t - 1} text {
941
- fill: ${e.nodeBorder};
942
- font-weight: ${e.fontWeight}
943
- }
944
-
945
- .node-icon-${t - 1} {
946
- font-size: 40px;
947
- color: ${e["cScaleLabel" + t]};
948
- }
949
-
950
- .section-edge-${t - 1} {
951
- stroke: ${e["cScale" + t]};
952
- }
953
-
954
- .edge-depth-${t - 1} {
955
- stroke-width: ${i};
956
- }
957
-
958
- .section-${t - 1} line {
959
- stroke: ${e["cScaleInv" + t]};
960
- stroke-width: 3;
961
- }
962
-
963
- .lineWrapper line {
964
- stroke: ${e.nodeBorder};
965
- stroke-width:${e.strokeWidth}
966
- }
967
-
968
- .disabled,
969
- .disabled circle,
970
- .disabled text {
971
- fill: ${e.tertiaryColor ?? "lightgray"};
972
- }
973
-
974
- .disabled text {
975
- fill: ${e.clusterBorder ?? "#efefef"};
976
- }
977
- `;
978
- }
979
- return s;
980
- }, "genReduxSections"), xe = /* @__PURE__ */ n((e) => {
981
- let t = "";
982
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], l(e["lineColor" + t]) ? e["lineColor" + t] = u(e["lineColor" + t], 20) : e["lineColor" + t] = s(e["lineColor" + t], 20);
983
- for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
984
- let r = "" + (17 - 3 * n);
985
- t += `
986
- .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} path {
987
- fill: ${e["cScale" + n]};
988
- }
989
- .section-${n - 1} text {
990
- fill: ${e["cScaleLabel" + n]};
991
- }
992
- .node-icon-${n - 1} {
993
- font-size: 40px;
994
- color: ${e["cScaleLabel" + n]};
995
- }
996
- .section-edge-${n - 1}{
997
- stroke: ${e["cScale" + n]};
998
- }
999
- .edge-depth-${n - 1}{
1000
- stroke-width: ${r};
1001
- }
1002
- .section-${n - 1} line {
1003
- stroke: ${e["cScaleInv" + n]} ;
1004
- stroke-width: 3;
1005
- }
1006
-
1007
- .lineWrapper line{
1008
- stroke: ${e["cScaleLabel" + n]} ;
1009
- }
1010
-
1011
- .disabled, .disabled circle, .disabled text {
1012
- fill: ${e.tertiaryColor ?? "lightgray"};
1013
- }
1014
- .disabled text {
1015
- fill: ${e.clusterBorder ?? "#efefef"};
1016
- }
1017
- `;
1018
- }
1019
- return t;
1020
- }, "genSections"), Se = {
1021
- db: _,
1022
- renderer: {
1023
- setConf: /* @__PURE__ */ n(() => {}, "setConf"),
1024
- draw: /* @__PURE__ */ n((e, t, n, r) => (r?.db?.getDirection?.() ?? "LR") === "TD" ? ye.draw(e, t, n, r) : pe.draw(e, t, n, r), "draw")
1025
- },
1026
- parser: g,
1027
- styles: /* @__PURE__ */ n((e) => {
1028
- let { theme: t } = o(), n = t?.includes("redux"), r = t === "neutral", i = e.svgId?.replace(/^#/, "") ?? "", a = "";
1029
- if (e.useGradient && i && e.THEME_COLOR_LIMIT && !r) for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) a += `
1030
- .section-${t - 1}[data-look="neo"] rect,
1031
- .section-${t - 1}[data-look="neo"] path,
1032
- .section-${t - 1}[data-look="neo"] circle {
1033
- fill: ${e.mainBkg};
1034
- stroke: url(#${i}-gradient);
1035
- stroke-width: 2;
1036
- }
1037
- .section-${t - 1}[data-look="neo"] line {
1038
- stroke: url(#${i}-gradient);
1039
- stroke-width: 2;
1040
- }`;
1041
- return `
1042
- .edge {
1043
- stroke-width: 3;
1044
- }
1045
- ${n ? be(e) : xe(e)}
1046
- ${a}
1047
- .section-root rect, .section-root path, .section-root circle {
1048
- fill: ${e.git0};
1049
- }
1050
- .section-root text {
1051
- fill: ${e.gitBranchLabel0};
1052
- }
1053
- .icon-container {
1054
- height:100%;
1055
- display: flex;
1056
- justify-content: center;
1057
- align-items: center;
1058
- }
1059
- .edge {
1060
- fill: none;
1061
- }
1062
- .eventWrapper {
1063
- filter: brightness(120%);
1064
- }
1065
- `;
1066
- }, "getStyles")
1067
- };
1068
- //#endregion
1069
- export { Se as diagram };