docmedown 0.1.0 → 0.1.2

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 (233) hide show
  1. package/README.md +69 -20
  2. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
  3. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
  4. package/dist/arc-DgPKXEdT.mjs +82 -0
  5. package/dist/arc-n7TW7Bis.js +1 -0
  6. package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
  7. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
  8. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
  9. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
  10. package/dist/array-CApNbSU9.mjs +6 -0
  11. package/dist/array-DZSRzHA_.js +1 -0
  12. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
  13. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
  14. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
  15. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
  16. package/dist/channel-LgHproiI.mjs +5 -0
  17. package/dist/channel-yqu0m4cl.js +1 -0
  18. package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
  19. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
  20. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
  21. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
  22. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
  23. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
  24. package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
  25. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
  26. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
  27. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
  28. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
  29. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
  30. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
  31. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
  32. package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
  33. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
  34. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
  35. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
  36. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
  37. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
  38. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
  39. package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
  40. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
  41. package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
  42. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
  43. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
  44. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
  45. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
  46. package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
  47. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
  48. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
  49. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
  50. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
  51. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
  52. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
  53. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
  54. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
  55. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
  56. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
  57. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
  58. package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
  59. package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
  60. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
  61. package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
  62. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
  63. package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
  64. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
  65. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
  66. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
  67. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
  68. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
  69. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
  70. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
  71. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
  72. package/dist/cli.js +719 -532
  73. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
  74. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
  75. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
  76. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
  77. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
  78. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
  79. package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
  80. package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
  81. package/dist/dagre-CZ6P9L_h.js +1 -0
  82. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
  83. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
  84. package/dist/dagre-J_1oH0eY.mjs +1934 -0
  85. package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
  86. package/dist/defaultLocale-ybN1Vtvg.js +1 -0
  87. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
  88. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
  89. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
  90. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
  91. package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
  92. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
  93. package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
  94. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
  95. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
  96. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
  97. package/dist/dist-CXWJafG_.js +1 -0
  98. package/dist/dist-DNdLIC8h.mjs +59 -0
  99. package/dist/docmedown.cjs +125 -44
  100. package/dist/docmedown.iife.js +3477 -72
  101. package/dist/docmedown.mjs +10003 -4807
  102. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
  103. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
  104. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
  105. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
  106. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
  107. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
  108. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
  109. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
  110. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
  111. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
  112. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
  113. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
  114. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
  115. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
  116. package/dist/graphlib-BaETKKSa.js +1 -0
  117. package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
  118. package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
  119. package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
  120. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
  121. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
  122. package/dist/init-BJdqMO10.js +1 -0
  123. package/dist/init-CsQUQz36.mjs +13 -0
  124. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
  125. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
  126. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
  127. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
  128. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
  129. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
  130. package/dist/line-BEwhHSLl.js +1 -0
  131. package/dist/line-CiXRog8O.mjs +34 -0
  132. package/dist/linear-75tfjrny.js +1 -0
  133. package/dist/linear-Ncx_RuON.mjs +288 -0
  134. package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
  135. package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
  136. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
  137. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
  138. package/dist/ordinal-B1BNQwUR.mjs +65 -0
  139. package/dist/ordinal-B9aFWmF9.js +1 -0
  140. package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
  141. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
  142. package/dist/path-CnWkkRiY.mjs +84 -0
  143. package/dist/path-DIS6ck99.js +1 -0
  144. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
  145. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
  146. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
  147. package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
  148. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
  149. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
  150. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
  151. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
  152. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
  153. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
  154. package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
  155. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
  156. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
  157. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
  158. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
  159. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
  160. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
  161. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
  162. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
  163. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
  164. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
  165. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
  166. package/dist/rough.esm-ChRLLRha.js +1 -0
  167. package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
  168. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
  169. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
  170. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
  171. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
  172. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
  173. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
  174. package/dist/src-B4mN2BMl.js +1 -0
  175. package/dist/src-D_hsMyeP.mjs +2154 -0
  176. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
  177. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
  178. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
  179. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
  180. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
  181. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
  182. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
  183. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
  184. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
  185. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
  186. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
  187. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
  188. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
  189. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
  190. package/dist/types/runtime/app.d.ts +3 -3
  191. package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
  192. package/dist/types/runtime/components/Builtins.d.ts +3 -3
  193. package/dist/types/runtime/components/Content.d.ts +1 -1
  194. package/dist/types/runtime/components/DmdRegistry.d.ts +4 -2
  195. package/dist/types/runtime/components/Layout.d.ts +1 -1
  196. package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
  197. package/dist/types/runtime/components/Navbar.d.ts +1 -1
  198. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
  199. package/dist/types/runtime/components/Sidebar.d.ts +1 -1
  200. package/dist/types/runtime/components/TableOfContents.d.ts +2 -2
  201. package/dist/types/runtime/config-schema.d.ts +386 -0
  202. package/dist/types/runtime/config.d.ts +10 -3
  203. package/dist/types/runtime/index.d.ts +7 -5
  204. package/dist/types/runtime/loader/auto-indexer.d.ts +1 -1
  205. package/dist/types/runtime/loader/local-loader.d.ts +1 -1
  206. package/dist/types/runtime/loader/remote-github.d.ts +2 -2
  207. package/dist/types/runtime/loader/remote-gitlab.d.ts +2 -2
  208. package/dist/types/runtime/markdown/callouts.d.ts +1 -1
  209. package/dist/types/runtime/markdown/highlighter.d.ts +16 -16
  210. package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
  211. package/dist/types/runtime/markdown/parser.d.ts +1 -1
  212. package/dist/types/runtime/markdown/renderer.d.ts +1 -1
  213. package/dist/types/runtime/offline-export.d.ts +26 -0
  214. package/dist/types/runtime/provider/DocProvider.d.ts +5 -5
  215. package/dist/types/runtime/provider/ThemeProvider.d.ts +13 -6
  216. package/dist/types/runtime/search/SearchModal.d.ts +2 -2
  217. package/dist/types/runtime/search/search-index.d.ts +1 -1
  218. package/dist/types/runtime/types.d.ts +28 -99
  219. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
  220. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
  221. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
  222. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
  223. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
  224. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
  225. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
  226. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
  227. package/package.json +15 -4
  228. package/schemas/docs.schema.json +166 -0
  229. package/templates/README.md +4 -4
  230. package/templates/docs.json +5 -2
  231. package/templates/getting-started.md +1 -1
  232. package/templates/guides/custom-components.md +2 -0
  233. package/templates/index.html +2 -4
@@ -0,0 +1,1069 @@
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 };