@sme.up/ketchup2 2.0.0 → 2.1.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 (365) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-u2vgZv3N.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/imageListAssets.d.ts +3 -1
  10. package/dist/assets/imageListAssets.d.ts.map +1 -1
  11. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  12. package/dist/basic-components/list/list-types.d.ts +0 -1
  13. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  14. package/dist/basic-components/list/list.d.ts.map +1 -1
  15. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  16. package/dist/basic-components/select/select.d.ts.map +1 -1
  17. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  18. package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
  19. package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
  20. package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
  21. package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
  22. package/dist/channel-BY9Lkyz7.cjs +1 -0
  23. package/dist/channel-BqNr2cYO.js +5 -0
  24. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  25. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  26. package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
  27. package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
  28. package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
  29. package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
  30. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  31. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  32. package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
  33. package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
  34. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  35. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  36. package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
  37. package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
  38. package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
  39. package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
  40. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  41. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  42. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  43. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  44. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  45. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  46. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  47. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  48. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  49. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  50. package/dist/chunk-D-IZpNpi.cjs +1 -0
  51. package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
  52. package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
  53. package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
  54. package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
  55. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  56. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  57. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  58. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  59. package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
  60. package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
  61. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  62. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  63. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  64. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  65. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  66. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  67. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  68. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  69. package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
  70. package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
  71. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  72. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  73. package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
  74. package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
  75. package/dist/chunk-WQLz0Won.js +20 -0
  76. package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
  77. package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
  78. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  79. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  80. package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
  81. package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
  82. package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
  83. package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
  84. package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
  85. package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
  86. package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
  87. package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
  88. package/dist/clone-Dn__H8fX.js +8 -0
  89. package/dist/clone-lShkT11Q.cjs +1 -0
  90. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  91. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  92. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  93. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  94. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  95. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  96. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  97. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  98. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  99. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  100. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  101. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  102. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  103. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  104. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  105. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  106. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  107. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  108. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  109. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  110. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  111. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  112. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  113. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  114. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  115. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  116. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  117. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  118. package/dist/components/image-list/image-list-context.d.ts +5 -2
  119. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  120. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  121. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  122. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  123. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  124. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  125. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  126. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  127. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  128. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  129. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  130. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  131. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  132. package/dist/components/image-list/image-list-types.d.ts +45 -2
  133. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  134. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  135. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  136. package/dist/components/image-list/image-list.d.ts +1 -1
  137. package/dist/components/image-list/image-list.d.ts.map +1 -1
  138. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  139. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  140. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  141. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  142. package/dist/dagre-BjnWDdkw.cjs +1 -0
  143. package/dist/dagre-DVLnxd7n.js +1606 -0
  144. package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
  145. package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
  146. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  147. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  148. package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
  149. package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
  150. package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
  151. package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
  152. package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
  153. package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
  154. package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
  155. package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
  156. package/dist/dist-BgvMZbfo.cjs +1 -0
  157. package/dist/dist-DL30VIBI.js +60 -0
  158. package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
  159. package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
  160. package/dist/flatten-BE1bWL-7.js +40 -0
  161. package/dist/flatten-DxvYSoR8.cjs +1 -0
  162. package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
  163. package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
  164. package/dist/functional-components/action/action-types.d.ts +6 -1
  165. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  166. package/dist/functional-components/action/action.d.ts.map +1 -1
  167. package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
  168. package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
  169. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  170. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  171. package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
  172. package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
  173. package/dist/graphlib-Cpifseqb.js +373 -0
  174. package/dist/graphlib-HdfvGLpV.cjs +1 -0
  175. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  176. package/dist/identity-KQSjemTb.cjs +1 -0
  177. package/dist/identity-g0dsMjx7.js +393 -0
  178. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  179. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  180. package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
  181. package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
  182. package/dist/init-B2MubQrj.cjs +1 -0
  183. package/dist/init-BO60vQHJ.js +15 -0
  184. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  185. package/dist/isEmpty-RwX-oIQS.js +35 -0
  186. package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
  187. package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
  188. package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
  189. package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
  190. package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
  191. package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
  192. package/dist/katex-Du5WiYIy.js +22000 -0
  193. package/dist/katex-SAH56fvc.cjs +257 -0
  194. package/dist/ketchup2.cjs.js +190 -1
  195. package/dist/ketchup2.css +2 -1
  196. package/dist/ketchup2.es.js +132419 -52
  197. package/dist/line-BbHmiwbs.cjs +1 -0
  198. package/dist/line-JyRBGWft.js +34 -0
  199. package/dist/linear-BsPvNLJv.js +289 -0
  200. package/dist/linear-CxHa1DsM.cjs +1 -0
  201. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  202. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  203. package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
  204. package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
  205. package/dist/ordinal-C-VoL0XF.js +65 -0
  206. package/dist/ordinal-Civr0hZL.cjs +1 -0
  207. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  208. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  209. package/dist/path-Civic7PQ.cjs +1 -0
  210. package/dist/path-CvfwEr8y.js +85 -0
  211. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  212. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  213. package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
  214. package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
  215. package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
  216. package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
  217. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  218. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  219. package/dist/reduce-B7WW9rkU.cjs +1 -0
  220. package/dist/reduce-DNnkcf3M.js +532 -0
  221. package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
  222. package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
  223. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  224. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  225. package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
  226. package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
  227. package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
  228. package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
  229. package/dist/src-BQiFKP24.js +2146 -0
  230. package/dist/src-DFxq-N5I.cjs +1 -0
  231. package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
  232. package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
  233. package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
  234. package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
  235. package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
  236. package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
  237. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  238. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  239. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  240. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  241. package/dist/utils/translation.d.ts.map +1 -1
  242. package/dist/v4-6yr83DbP.cjs +1 -0
  243. package/dist/v4-BR71w5_q.js +33 -0
  244. package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
  245. package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
  246. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  247. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  248. package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
  249. package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
  250. package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
  251. package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
  252. package/package.json +31 -31
  253. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  254. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  255. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  256. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  257. package/dist/arc-CnmUepZA.cjs +0 -1
  258. package/dist/arc-Md6Ds0JZ.js +0 -83
  259. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  260. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  261. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  262. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  263. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  264. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  265. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  266. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  267. package/dist/channel-BGeX_R6w.cjs +0 -1
  268. package/dist/channel-lqmaHMPZ.js +0 -5
  269. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  270. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  271. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  272. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  273. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  274. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  275. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  276. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  277. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  278. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  279. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  280. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  281. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  282. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  283. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  284. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  285. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  286. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  287. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  288. package/dist/clone-B_MxWhab.js +0 -8
  289. package/dist/clone-D6gFD6F-.cjs +0 -1
  290. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  291. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  292. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  293. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  294. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  295. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  296. package/dist/defaultLocale-D7EN2tov.js +0 -171
  297. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  298. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  299. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  300. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  301. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  302. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  303. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  304. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  305. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  306. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  307. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  308. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  309. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  310. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  311. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  312. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  313. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  314. package/dist/graph-BBPk5jyk.cjs +0 -1
  315. package/dist/graph-h6vsxKyr.js +0 -247
  316. package/dist/index-CYQM-t1d.cjs +0 -390
  317. package/dist/index-FiV1b00w.js +0 -133122
  318. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  319. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  320. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  321. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  322. package/dist/init-CHZsXQcr.cjs +0 -1
  323. package/dist/init-DjUOC4st.js +0 -16
  324. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  325. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  326. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  327. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  328. package/dist/katex-C2g-EhzP.cjs +0 -261
  329. package/dist/katex-CUSbq6rG.js +0 -11692
  330. package/dist/layout-6z7-eUnZ.js +0 -1335
  331. package/dist/layout-DbcrMh5B.cjs +0 -1
  332. package/dist/linear-BKevCbhh.js +0 -259
  333. package/dist/linear-C7uVEtWW.cjs +0 -1
  334. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  335. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  336. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  337. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  338. package/dist/ordinal-B6-f3MAq.js +0 -61
  339. package/dist/ordinal-CagbB1m8.cjs +0 -1
  340. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  341. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  342. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  343. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  344. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  345. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  346. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  347. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  348. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  349. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  350. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  351. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  352. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  353. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  354. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  355. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  356. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  357. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  358. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  359. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  360. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  361. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  362. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  363. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  364. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  365. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
@@ -0,0 +1,132 @@
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./channel-BY9Lkyz7.cjs`),r=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),i=require(`./line-BbHmiwbs.cjs`),a=require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`),o=require(`./chunk-ZZ45TVLE-AQQsnXy4.cjs`),s=require(`./chunk-U2HBQHQK-D0AoQWxK.cjs`),c=require(`./chunk-FMBD7UC4-CS9_r76V.cjs`),l=require(`./graphlib-HdfvGLpV.cjs`),u=require(`./clone-lShkT11Q.cjs`);var d=(function(){var e=t.h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,15],r=[1,7],i=[1,13],a=[1,14],o=[1,19],s=[1,16],c=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:t.h(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:t.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),typeof a[s].length==`number`?this.$=a[s]:this.$=[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]);this.$={id:r.generateId(),type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let n=r.edgeStrToEdgeData(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,directions:a[s].directions,arrowTypeEnd:n,arrowTypeStart:`arrow_open`},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]),this.$={id:r.generateId(),type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()};break}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:r,28:i,29:a,31:o,39:s,43:c,46:l}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:o},{10:n,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:o},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:a,31:o,39:s,43:c,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:t.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.h(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:t.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.h(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.h(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t.h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.h(function(){return this._more=!0,this},`more`),reject:t.h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:t.h(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t.h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t.h(function(){return this.next()||this.lex()},`lex`),begin:t.h(function(e){this.conditionStack.push(e)},`begin`),popState:t.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.h(function(e){this.begin(e)},`pushState`),stateStackSize:t.h(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:t.h(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return t.h(v,`Parser`),v.prototype=_,_.Parser=v,new v})();d.parser=d;var f=d,p=new Map,m=[],h=new Map,g=`color`,_=`fill`,v=`bgFill`,y=`,`,b=e.b(),x=new Map,S=``,C=t.h(t=>e.s.sanitizeText(t,b),`sanitizeText`),w=t.h(function(e,t=``){let n=x.get(e);n||(n={id:e,styles:[],textStyles:[]},x.set(e,n)),t?.split(y).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(g).exec(e)){let e=t.replace(_,v).replace(g,_);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),T=t.h(function(e,t=``){let n=p.get(e);t!=null&&(n.styles=t.split(y))},`addStyle2Node`),E=t.h(function(e,t){e.split(`,`).forEach(function(e){let n=p.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},p.set(t,n)}n.classes||=[],n.classes.push(t)})},`setCssClass`),D=t.h((e,n)=>{let r=e.flat(),i=[],a=r.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of r){if(typeof a==`number`&&a>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>a&&t.g.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`),e.label&&=C(e.label),e.type===`classDef`){w(e.id,e.css);continue}if(e.type===`applyClass`){E(e.id,e?.styleClass??``);continue}if(e.type===`applyStyles`){e?.stylesStr&&T(e.id,e?.stylesStr);continue}if(e.type===`column-setting`)n.columns=e.columns??-1;else if(e.type===`edge`){let t=(h.get(e.id)??0)+1;h.set(e.id,t),e.id=t+`-`+e.id,m.push(e)}else{e.label||(e.type===`composite`?e.label=``:e.label=e.id);let t=p.get(e.id);if(t===void 0?p.set(e.id,e):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&D(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n<t;n++){let t=u.t(e);t.id=t.id+`-`+n,p.set(t.id,t),i.push(t)}}else t===void 0&&i.push(e)}}n.children=i},`populateBlockDatabase`),O=[],k={id:`root`,type:`composite`,children:[],columns:-1},A=t.h(()=>{t.g.debug(`Clear called`),e.a(),k={id:`root`,type:`composite`,children:[],columns:-1},p=new Map([[`root`,k]]),O=[],x=new Map,m=[],h=new Map,S=``},`clear`);function j(e){switch(t.g.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return t.g.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}t.h(j,`typeStr2Type`);function M(e){switch(t.g.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}t.h(M,`edgeTypeStr2Type`);function ee(e){switch(e.replace(/^[\s-]+|[\s-]+$/g,``)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}t.h(ee,`edgeStrToEdgeData`);var te=0,ne={getConfig:t.h(()=>e.y().block,`getConfig`),typeStr2Type:j,edgeTypeStr2Type:M,edgeStrToEdgeData:ee,getLogger:t.h(()=>t.g,`getLogger`),getBlocksFlat:t.h(()=>[...p.values()],`getBlocksFlat`),getBlocks:t.h(()=>O||[],`getBlocks`),getEdges:t.h(()=>m,`getEdges`),setHierarchy:t.h(e=>{k.children=e,D(e,k),O=k.children},`setHierarchy`),getBlock:t.h(e=>p.get(e),`getBlock`),setBlock:t.h(e=>{p.set(e.id,e)},`setBlock`),getColumns:t.h(e=>{let t=p.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:t.h(function(){return x},`getClasses`),clear:A,generateId:t.h(()=>(te++,`id-`+Math.random().toString(36).substr(2,12)+`-`+te),`generateId`),setDiagramId:t.h(e=>{S=e},`setDiagramId`),getDiagramId:t.h(()=>S,`getDiagramId`)},N=t.h((t,r)=>{let i=n.t,a=i(t,`r`),o=i(t,`g`),s=i(t,`b`);return e.tt(a,o,s,r)},`fade`),re=t.h(e=>`.label {
7
+ font-family: ${e.fontFamily};
8
+ color: ${e.nodeTextColor||e.textColor};
9
+ }
10
+ .cluster-label text {
11
+ fill: ${e.titleColor};
12
+ }
13
+ .cluster-label span,p {
14
+ color: ${e.titleColor};
15
+ }
16
+
17
+
18
+
19
+ .label text,span,p {
20
+ fill: ${e.nodeTextColor||e.textColor};
21
+ color: ${e.nodeTextColor||e.textColor};
22
+ }
23
+
24
+ .node rect,
25
+ .node circle,
26
+ .node ellipse,
27
+ .node polygon,
28
+ .node path {
29
+ fill: ${e.mainBkg};
30
+ stroke: ${e.nodeBorder};
31
+ stroke-width: 1px;
32
+ }
33
+ .flowchart-label text {
34
+ text-anchor: middle;
35
+ }
36
+ // .flowchart-label .text-outer-tspan {
37
+ // text-anchor: middle;
38
+ // }
39
+ // .flowchart-label .text-inner-tspan {
40
+ // text-anchor: start;
41
+ // }
42
+
43
+ .node .label {
44
+ text-align: center;
45
+ }
46
+ .node.clickable {
47
+ cursor: pointer;
48
+ }
49
+
50
+ .arrowheadPath {
51
+ fill: ${e.arrowheadColor};
52
+ }
53
+
54
+ .edgePath .path {
55
+ stroke: ${e.lineColor};
56
+ stroke-width: 2.0px;
57
+ }
58
+
59
+ .flowchart-link {
60
+ stroke: ${e.lineColor};
61
+ fill: none;
62
+ }
63
+
64
+ .edgeLabel {
65
+ background-color: ${e.edgeLabelBackground};
66
+ /*
67
+ * This is for backward compatibility with existing code that didn't
68
+ * add a \`<p>\` around edge labels.
69
+ *
70
+ * TODO: We should probably remove this in a future release.
71
+ */
72
+ p {
73
+ margin: 0;
74
+ padding: 0;
75
+ display: inline;
76
+ }
77
+ rect {
78
+ opacity: 0.5;
79
+ background-color: ${e.edgeLabelBackground};
80
+ fill: ${e.edgeLabelBackground};
81
+ }
82
+ text-align: center;
83
+ }
84
+
85
+ /* For html labels only */
86
+ .labelBkg {
87
+ background-color: ${e.edgeLabelBackground};
88
+ }
89
+
90
+ .node .cluster {
91
+ // fill: ${N(e.mainBkg,.5)};
92
+ fill: ${N(e.clusterBkg,.5)};
93
+ stroke: ${N(e.clusterBorder,.2)};
94
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
95
+ stroke-width: 1px;
96
+ }
97
+
98
+ .cluster text {
99
+ fill: ${e.titleColor};
100
+ }
101
+
102
+ .cluster span,p {
103
+ color: ${e.titleColor};
104
+ }
105
+ /* .cluster div {
106
+ color: ${e.titleColor};
107
+ } */
108
+
109
+ div.mermaidTooltip {
110
+ position: absolute;
111
+ text-align: center;
112
+ max-width: 200px;
113
+ padding: 2px;
114
+ font-family: ${e.fontFamily};
115
+ font-size: 12px;
116
+ background: ${e.tertiaryColor};
117
+ border: 1px solid ${e.border2};
118
+ border-radius: 2px;
119
+ pointer-events: none;
120
+ z-index: 100;
121
+ }
122
+
123
+ .flowchartTitleText {
124
+ text-anchor: middle;
125
+ font-size: 18px;
126
+ fill: ${e.textColor};
127
+ }
128
+ ${c.t()}
129
+ `,`getStyles`),ie=t.h((e,t,n,r)=>{t.forEach(t=>{ae[t](e,n,r)})},`insertMarkers`),ae={extension:t.h((e,n,r)=>{t.g.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionStart`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd`).attr(`class`,`marker extension `+n).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`)},`extension`),composition:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`stroke`,`black`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`stroke`,`black`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6)},`lollipop`),point:t.h((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,6).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`)},`point`),circle:t.h((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`)},`circle`),cross:t.h((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`)},`cross`),barb:t.h((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`)},oe=ie,P=e.b()?.block?.padding??8;function F(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}t.h(F,`calculateBlockPosition`);var se=t.h(e=>{let n=0,r=0;for(let i of e.children){let{width:e,height:a,x:o,y:s}=i.size??{width:0,height:0,x:0,y:0};t.g.debug(`getMaxChildSize abc95 child:`,i.id,`width:`,e,`height:`,a,`x:`,o,`y:`,s,i.type),i.type!==`space`&&(e>n&&(n=e/(i.widthInColumns??1)),a>r&&(r=a))}return{width:n,height:r}},`getMaxChildSize`);function I(e,n,r=0,i=0){t.g.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,r),e?.size?.width||(e.size={width:r,height:i,x:0,y:0});let a=0,o=0;if(e.children?.length>0){for(let t of e.children)I(t,n);let s=se(e);a=s.width,o=s.height,t.g.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,o);for(let n of e.children)n.size&&(t.g.debug(`abc95 Setting size of children of ${e.id} id=${n.id} ${a} ${o} ${JSON.stringify(n.size)}`),n.size.width=a*(n.widthInColumns??1)+P*((n.widthInColumns??1)-1),n.size.height=o,n.size.x=0,n.size.y=0,t.g.debug(`abc95 updating size of ${e.id} children child:${n.id} maxWidth:${a} maxHeight:${o}`));for(let t of e.children)I(t,n,a,o);let c=e.columns??-1,l=0;for(let t of e.children)l+=t.widthInColumns??1;let u=e.children.length;c>0&&c<l&&(u=c);let d=Math.ceil(l/u),f=u*(a+P)+P,p=d*(o+P)+P;if(f<r){t.g.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${f}`),f=r,p=i;let n=(r-u*P-P)/u,s=(i-d*P-P)/d;t.g.debug(`Size indata abc88`,e.id,`childWidth`,n,`maxWidth`,a),t.g.debug(`Size indata abc88`,e.id,`childHeight`,s,`maxHeight`,o),t.g.debug(`Size indata abc88 xSize`,u,`padding`,P);for(let t of e.children)t.size&&(t.size.width=n,t.size.height=s,t.size.x=0,t.size.y=0)}if(t.g.debug(`abc95 (finale calc) ${e.id} xSize ${u} ySize ${d} columns ${c}${e.children.length} width=${Math.max(f,e.size?.width||0)}`),f<(e?.size?.width||0)){f=e?.size?.width||0;let n=c>0?Math.min(e.children.length,c):e.children.length;if(n>0){let r=(f-n*P-P)/n;t.g.debug(`abc95 (growing to fit) width`,e.id,f,e.size?.width,r);for(let t of e.children)t.size&&(t.size.width=r)}}e.size={width:f,height:p,x:0,y:0}}t.g.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}t.h(I,`setBlockSizes`);function L(e,n){t.g.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(t.g.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*P;t.g.debug(`widthOfChildren 88`,a,`posX`);let o=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=F(r,t),i=o.get(e)??0;n.size.height>i&&o.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let s=new Map;{let e=0,t=[...o.keys()].sort((e,t)=>e-t);for(let n of t)s.set(n,e),e+=(o.get(n)??0)+P}let c=0;t.g.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-P,u=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:d,height:f}=i.size,{px:p,py:m}=F(r,c);if(m!=u&&(u=m,l=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-P,t.g.debug(`New row in layout for block`,e.id,` and child `,i.id,u)),t.g.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${p},${m} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${d}${P}`),a.size){let e=d/2;i.size.x=l+P+e,t.g.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${e} padding=${P} width=${d} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${d*(i?.widthInColumns??1)/2}`),l=i.size.x+e;let n=s.get(m)??0,r=o.get(m)??f;i.size.y=a.size.y-a.size.height/2+n+r/2+P,t.g.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${P}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${d*(i?.widthInColumns??1)/2}`)}i.children&&L(i,n);let h=i?.widthInColumns??1;r>0&&(h=Math.min(h,r-c%r)),c+=h,t.g.debug(`abc88 columnsPos`,i,c)}}t.g.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}t.h(L,`layoutBlocks`);function R(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:c}=e.size;a-s/2<t&&(t=a-s/2),o-c/2<n&&(n=o-c/2),a+s/2>r&&(r=a+s/2),o+c/2>i&&(i=o+c/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=R(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}t.h(R,`findBounds`);function ce(e){let n=e.getBlock(`root`);if(!n)return;I(n,e,0,0),L(n,e),t.g.debug(`getBlocks`,JSON.stringify(n,null,2));let{minX:r,minY:i,maxX:a,maxY:o}=R(n),s=o-i;return{x:r,y:i,width:a-r,height:s}}t.h(ce,`layout`);var z=t.h(async(t,n,r,i=!1,a=!1)=>{let o=n||``;typeof o==`object`&&(o=o[0]);let c=e.b(),l=e.w(c);return await s.n(t,o,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:a,width:1/0},c)},`createLabel`),le=t.h((e,t,n,r,i)=>{t.arrowTypeStart&&de(e,`start`,t.arrowTypeStart,n,r,i),t.arrowTypeEnd&&de(e,`end`,t.arrowTypeEnd,n,r,i)},`addEdgeMarkers`),ue={arrow_cross:`cross`,arrow_point:`point`,arrow_barb:`barb`,arrow_circle:`circle`,aggregation:`aggregation`,extension:`extension`,composition:`composition`,dependency:`dependency`,lollipop:`lollipop`},de=t.h((e,n,r,i,a,o)=>{let s=ue[r];if(!s){t.g.warn(`Unknown arrow type: ${r}`);return}let c=n===`start`?`Start`:`End`;e.attr(`marker-${n}`,`url(${i}#${a}_${o}-${s}${c})`)},`addEdgeMarker`),B={},V={},fe=t.h(async(n,r)=>{let i=e.b(),o=e.w(i),c=n.insert(`g`).attr(`class`,`edgeLabel`),l=c.insert(`g`).attr(`class`,`label`),u=r.labelType===`markdown`,d=await s.n(n,r.label,{style:r.labelStyle,useHtmlLabels:o,addSvgBackground:u,isNode:!1,markdown:u,width:u?void 0:1/0},i);l.node().appendChild(d);let f=d.getBBox(),p=f;if(o){let e=d.children[0],n=t.p(d);f=e.getBoundingClientRect(),p=f,n.attr(`width`,f.width),n.attr(`height`,f.height)}else{let e=t.p(d).select(`text`).node();e&&typeof e.getBBox==`function`&&(p=e.getBBox())}l.attr(`transform`,a.t(p,o)),B[r.id]=c,r.width=f.width,r.height=f.height;let m;if(r.startLabelLeft){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),i=e.insert(`g`).attr(`class`,`inner`),s=await z(i,r.startLabelLeft,r.labelStyle);m=s;let c=s.getBBox();if(o){let e=s.children[0],n=t.p(s);c=e.getBoundingClientRect(),n.attr(`width`,c.width),n.attr(`height`,c.height)}i.attr(`transform`,a.t(c,o)),V[r.id]||(V[r.id]={}),V[r.id].startLeft=e,H(m,r.startLabelLeft)}if(r.startLabelRight){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),i=e.insert(`g`).attr(`class`,`inner`),s=await z(e,r.startLabelRight,r.labelStyle);m=s,i.node().appendChild(s);let c=s.getBBox();if(o){let e=s.children[0],n=t.p(s);c=e.getBoundingClientRect(),n.attr(`width`,c.width),n.attr(`height`,c.height)}i.attr(`transform`,a.t(c,o)),V[r.id]||(V[r.id]={}),V[r.id].startRight=e,H(m,r.startLabelRight)}if(r.endLabelLeft){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),i=e.insert(`g`).attr(`class`,`inner`),s=await z(i,r.endLabelLeft,r.labelStyle);m=s;let c=s.getBBox();if(o){let e=s.children[0],n=t.p(s);c=e.getBoundingClientRect(),n.attr(`width`,c.width),n.attr(`height`,c.height)}i.attr(`transform`,a.t(c,o)),e.node().appendChild(s),V[r.id]||(V[r.id]={}),V[r.id].endLeft=e,H(m,r.endLabelLeft)}if(r.endLabelRight){let e=n.insert(`g`).attr(`class`,`edgeTerminals`),i=e.insert(`g`).attr(`class`,`inner`),s=await z(i,r.endLabelRight,r.labelStyle);m=s;let c=s.getBBox();if(o){let e=s.children[0],n=t.p(s);c=e.getBoundingClientRect(),n.attr(`width`,c.width),n.attr(`height`,c.height)}i.attr(`transform`,a.t(c,o)),e.node().appendChild(s),V[r.id]||(V[r.id]={}),V[r.id].endRight=e,H(m,r.endLabelRight)}return d},`insertEdgeLabel`);function H(t,n){e.w(e.b())&&t&&(t.style.width=n.length*9+`px`,t.style.height=`12px`)}t.h(H,`setTerminalWidth`);var pe=t.h((n,i)=>{t.g.debug(`Moving label abc88 `,n.id,n.label,B[n.id],i);let a=i.updatedPath?i.updatedPath:i.originalPath,{subGraphTitleTotalMargin:s}=o.n(e.b());if(n.label){let e=B[n.id],o=n.x,c=n.y;if(a){let e=r.h.calcLabelPosition(a);t.g.debug(`Moving label `+n.label+` from (`,o,`,`,c,`) to (`,e.x,`,`,e.y,`) abc88`),i.updatedPath&&(o=e.x,c=e.y)}e.attr(`transform`,`translate(${o}, ${c+s/2})`)}if(n.startLabelLeft){let e=V[n.id].startLeft,t=n.x,i=n.y;if(a){let e=r.h.calcTerminalLabelPosition(n.arrowTypeStart?10:0,`start_left`,a);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(n.startLabelRight){let e=V[n.id].startRight,t=n.x,i=n.y;if(a){let e=r.h.calcTerminalLabelPosition(n.arrowTypeStart?10:0,`start_right`,a);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(n.endLabelLeft){let e=V[n.id].endLeft,t=n.x,i=n.y;if(a){let e=r.h.calcTerminalLabelPosition(n.arrowTypeEnd?10:0,`end_left`,a);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}if(n.endLabelRight){let e=V[n.id].endRight,t=n.x,i=n.y;if(a){let e=r.h.calcTerminalLabelPosition(n.arrowTypeEnd?10:0,`end_right`,a);t=e.x,i=e.y}e.attr(`transform`,`translate(${t}, ${i})`)}},`positionEdgeLabel`),me=t.h((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),he=t.h((e,n,r)=>{t.g.debug(`intersection calc abc89:
130
+ outsidePoint: ${JSON.stringify(n)}
131
+ insidePoint : ${JSON.stringify(r)}
132
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.x<n.x?s-o:s+o,l=e.height/2,u=Math.abs(n.y-r.y),d=Math.abs(n.x-r.x);if(Math.abs(a-n.y)*s>Math.abs(i-n.x)*l){let e=r.y<n.y?n.y-l-a:a-l-n.y;c=d*e/u;let i={x:r.x<n.x?r.x+c:r.x-d+c,y:r.y<n.y?r.y+u-e:r.y-u+e};return c===0&&(i.x=n.x,i.y=n.y),d===0&&(i.x=n.x),u===0&&(i.y=n.y),t.g.debug(`abc89 topp/bott calc, Q ${u}, q ${e}, R ${d}, r ${c}`,i),i}else{c=r.x<n.x?n.x-s-i:i-s-n.x;let e=u*c/d,a=r.x<n.x?r.x+d-c:r.x-d+c,o=r.y<n.y?r.y+e:r.y-e;return t.g.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=n.x,o=n.y),d===0&&(a=n.x),u===0&&(o=n.y),{x:a,y:o}}},`intersection`),ge=t.h((e,n)=>{t.g.debug(`abc88 cutPathAtIntersect`,e,n);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(!me(n,e)&&!a){let t=he(n,i,e),o=!1;r.forEach(e=>{o||=e.x===t.x&&e.y===t.y}),r.some(e=>e.x===t.x&&e.y===t.y)||r.push(t),a=!0}else i=e,a||r.push(e)}),r},`cutPathAtIntersect`),_e=t.h(function(n,o,s,c,l,u,d){let f=s.points;t.g.debug(`abc88 InsertEdge: edge=`,s,`e=`,o);let p=!1,m=u.node(o.v);var h=u.node(o.w);h?.intersect&&m?.intersect&&(f=f.slice(1,s.points.length-1),f.unshift(m.intersect(f[0])),f.push(h.intersect(f[f.length-1]))),s.toCluster&&(t.g.debug(`to cluster abc88`,c[s.toCluster]),f=ge(s.points,c[s.toCluster].node),p=!0),s.fromCluster&&(t.g.debug(`from cluster abc88`,c[s.fromCluster]),f=ge(f.reverse(),c[s.fromCluster].node).reverse(),p=!0);let g=f.filter(e=>!Number.isNaN(e.y)),_=r.H;s.curve&&(l===`graph`||l===`flowchart`)&&(_=s.curve);let{x:v,y}=a.n(s),b=i.t().x(v).y(y).curve(_),x;switch(s.thickness){case`normal`:x=`edge-thickness-normal`;break;case`thick`:x=`edge-thickness-thick`;break;case`invisible`:x=`edge-thickness-thick`;break;default:x=``}switch(s.pattern){case`solid`:x+=` edge-pattern-solid`;break;case`dotted`:x+=` edge-pattern-dotted`;break;case`dashed`:x+=` edge-pattern-dashed`;break}let S=n.append(`path`).attr(`d`,b(g)).attr(`id`,s.id).attr(`class`,` `+x+(s.classes?` `+s.classes:``)).attr(`style`,s.style),C=``;(e.b().flowchart.arrowMarkerAbsolute||e.b().state.arrowMarkerAbsolute)&&(C=e.D(!0)),le(S,s,C,d,l);let w={};return p&&(w.updatedPath=f),w.originalPath=s.points,w},`insertEdge`),ve=t.h(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n);break}return t},`expandAndDeduplicateDirections`),ye=t.h((e,t,n)=>{let r=ve(e),i=t.height+2*n.padding,a=i/2,o=t.width+2*a+n.padding,s=n.padding/2;return r.has(`right`)&&r.has(`left`)&&r.has(`up`)&&r.has(`down`)?[{x:0,y:0},{x:a,y:0},{x:o/2,y:2*s},{x:o-a,y:0},{x:o,y:0},{x:o,y:-i/3},{x:o+2*s,y:-i/2},{x:o,y:-2*i/3},{x:o,y:-i},{x:o-a,y:-i},{x:o/2,y:-i-2*s},{x:a,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*s,y:-i/2},{x:0,y:-i/3}]:r.has(`right`)&&r.has(`left`)&&r.has(`up`)?[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`right`)&&r.has(`left`)&&r.has(`down`)?[{x:0,y:0},{x:a,y:-i},{x:o-a,y:-i},{x:o,y:0}]:r.has(`right`)&&r.has(`up`)&&r.has(`down`)?[{x:0,y:0},{x:o,y:-a},{x:o,y:-i+a},{x:0,y:-i}]:r.has(`left`)&&r.has(`up`)&&r.has(`down`)?[{x:o,y:0},{x:0,y:-a},{x:0,y:-i+a},{x:o,y:-i}]:r.has(`right`)&&r.has(`left`)?[{x:a,y:0},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`up`)&&r.has(`down`)?[{x:o/2,y:0},{x:0,y:-s},{x:a,y:-s},{x:a,y:-i+s},{x:0,y:-i+s},{x:o/2,y:-i},{x:o,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s},{x:o,y:-s}]:r.has(`right`)&&r.has(`up`)?[{x:0,y:0},{x:o,y:-a},{x:0,y:-i}]:r.has(`right`)&&r.has(`down`)?[{x:0,y:0},{x:o,y:0},{x:0,y:-i}]:r.has(`left`)&&r.has(`up`)?[{x:o,y:0},{x:0,y:-a},{x:o,y:-i}]:r.has(`left`)&&r.has(`down`)?[{x:o,y:0},{x:0,y:0},{x:o,y:-i}]:r.has(`right`)?[{x:a,y:-s},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i+s}]:r.has(`left`)?[{x:a,y:0},{x:a,y:-s},{x:o-a,y:-s},{x:o-a,y:-i+s},{x:a,y:-i+s},{x:a,y:-i},{x:0,y:-i/2}]:r.has(`up`)?[{x:a,y:-s},{x:a,y:-i+s},{x:0,y:-i+s},{x:o/2,y:-i},{x:o,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s}]:r.has(`down`)?[{x:o/2,y:0},{x:0,y:-s},{x:a,y:-s},{x:a,y:-i+s},{x:o-a,y:-i+s},{x:o-a,y:-s},{x:o,y:-s}]:[{x:0,y:0}]},`getArrowPoints`);function be(e,t){return e.intersect(t)}t.h(be,`intersectNode`);var xe=be;function Se(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}t.h(Se,`intersectEllipse`);var Ce=Se;function we(e,t,n){return Ce(e,t,t,n)}t.h(we,`intersectCircle`);var Te=we;function Ee(e,t,n,r){var i=t.y-e.y,a,o=e.x-t.x,s,c=t.x*e.y-e.x*t.y,l,u,d,f=i*n.x+o*n.y+c,p=i*r.x+o*r.y+c,m,h,g,_,v;if(!(f!==0&&p!==0&&U(f,p))&&(a=r.y-n.y,s=n.x-r.x,l=r.x*n.y-n.x*r.y,u=a*e.x+s*e.y+l,d=a*t.x+s*t.y+l,!(u!==0&&d!==0&&U(u,d))&&(m=i*s-a*o,m!==0)))return h=Math.abs(m/2),g=o*l-s*c,_=g<0?(g-h)/m:(g+h)/m,g=a*c-i*l,v=g<0?(g-h)/m:(g+h)/m,{x:_,y:v}}t.h(Ee,`intersectLine`);function U(e,t){return e*t>0}t.h(U,`sameSign`);var De=Ee,Oe=ke;function ke(e,t,n){var r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));for(var c=r-e.width/2-o,l=i-e.height/2-s,u=0;u<t.length;u++){var d=t[u],f=t[u<t.length-1?u+1:0],p=De(e,n,{x:c+d.x,y:l+d.y},{x:c+f.x,y:l+f.y});p&&a.push(p)}return a.length?(a.length>1&&a.sort(function(e,t){var r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}t.h(ke,`intersectPolygon`);var W={node:xe,circle:Te,ellipse:Ce,polygon:Oe,rect:t.h((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`)},G=t.h(async(n,i,a,c)=>{let l=e.b(),u,d=i.useHtmlLabels||e.w(l);u=a||`node default`;let f=n.insert(`g`).attr(`class`,u).attr(`id`,i.domId||i.id),p=f.insert(`g`).attr(`class`,`label`).attr(`style`,i.labelStyle),m;m=i.labelText===void 0?``:typeof i.labelText==`string`?i.labelText:i.labelText[0];let h;h=i.labelType===`markdown`?s.n(p,e.L(r.i(m),l),{useHtmlLabels:d,width:i.width||l.flowchart.wrappingWidth,classes:`markdown-node-label`},l):await z(p,e.L(r.i(m),l),i.labelStyle,!1,c);let g=h.getBBox(),_=i.padding/2;if(e.w(l)){let e=h.children[0],n=t.p(h);await o.t(e,m),g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}return d?p.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`):p.attr(`transform`,`translate(0, `+-g.height/2+`)`),i.centerLabel&&p.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`),p.insert(`rect`,`:first-child`),{shapeSvg:f,bbox:g,halfPadding:_,label:p}},`labelHelper`),K=t.h((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`);function q(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}t.h(q,`insertPolygonShape`);var Ae=t.h(async(n,r)=>{r.useHtmlLabels||e.w(e.b())||(r.centerLabel=!0);let{shapeSvg:i,bbox:a,halfPadding:o}=await G(n,r,`node `+r.classes,!0);t.g.info(`Classes = `,r.classes);let s=i.insert(`rect`,`:first-child`);return s.attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,-a.width/2-o).attr(`y`,-a.height/2-o).attr(`width`,a.width+r.padding).attr(`height`,a.height+r.padding),K(r,s),r.intersect=function(e){return W.rect(r,e)},i},`note`),je=t.h(e=>e?` `+e:``,`formatClass`),J=t.h((e,t)=>`${t||`node default`}${je(e.classes)} ${je(e.class)}`,`getClassesFromNode`),Me=t.h(async(e,n)=>{let{shapeSvg:r,bbox:i}=await G(e,n,J(n,void 0),!0),a=i.width+n.padding+(i.height+n.padding),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];t.g.info(`Question main (Circle)`);let s=q(r,a,a,o);return s.attr(`style`,n.style),K(n,s),n.intersect=function(e){return t.g.warn(`Intersect called`),W.polygon(n,o,e)},r},`question`),Ne=t.h((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id);return n.insert(`polygon`,`:first-child`).attr(`points`,[{x:0,y:28/2},{x:28/2,y:0},{x:0,y:-28/2},{x:-28/2,y:0}].map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`state-start`).attr(`r`,7).attr(`width`,28).attr(`height`,28),t.width=28,t.height=28,t.intersect=function(e){return W.circle(t,14,e)},n},`choice`),Pe=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.height+t.padding,a=i/4,o=r.width+2*a+t.padding,s=[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}],c=q(n,o,i,s);return c.attr(`style`,t.style),K(t,c),t.intersect=function(e){return W.polygon(t,s,e)},n},`hexagon`),Fe=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,void 0,!0),i=r.height+2*t.padding,a=i/2,o=r.width+2*a+t.padding,s=ye(t.directions,r,t),c=q(n,o,i,s);return c.attr(`style`,t.style),K(t,c),t.intersect=function(e){return W.polygon(t,s,e)},n},`block_arrow`),Ie=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return q(n,i,a,o).attr(`style`,t.style),t.width=i+a,t.height=a,t.intersect=function(e){return W.polygon(t,o,e)},n},`rect_left_inv_arrow`),Le=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],s=q(n,i,a,o);return s.attr(`style`,t.style),K(t,s),t.intersect=function(e){return W.polygon(t,o,e)},n},`lean_right`),Re=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],s=q(n,i,a,o);return s.attr(`style`,t.style),K(t,s),t.intersect=function(e){return W.polygon(t,o,e)},n},`lean_left`),ze=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],s=q(n,i,a,o);return s.attr(`style`,t.style),K(t,s),t.intersect=function(e){return W.polygon(t,o,e)},n},`trapezoid`),Be=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],s=q(n,i,a,o);return s.attr(`style`,t.style),K(t,s),t.intersect=function(e){return W.polygon(t,o,e)},n},`inv_trapezoid`),Ve=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],s=q(n,i,a,o);return s.attr(`style`,t.style),K(t,s),t.intersect=function(e){return W.polygon(t,o,e)},n},`rect_right_inv_arrow`),He=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.width+t.padding,a=i/2,o=a/(2.5+i/50),s=r.height+o+t.padding,c=`M 0,`+o+` a `+a+`,`+o+` 0,0,0 `+i+` 0 a `+a+`,`+o+` 0,0,0 `+-i+` 0 l 0,`+s+` a `+a+`,`+o+` 0,0,0 `+i+` 0 l 0,`+-s;return K(t,n.attr(`label-offset-y`,o).insert(`path`,`:first-child`).attr(`style`,t.style).attr(`d`,c).attr(`transform`,`translate(`+-i/2+`,`+-(s/2+o)+`)`)),t.intersect=function(e){let n=W.rect(t,e),r=n.x-t.x;if(a!=0&&(Math.abs(r)<t.width/2||Math.abs(r)==t.width/2&&Math.abs(n.y-t.y)>t.height/2-o)){let i=o*o*(1-r*r/(a*a));i!=0&&(i=Math.sqrt(i)),i=o-i,e.y-t.y>0&&(i=-i),n.y+=i}return n},n},`cylinder`),Ue=t.h(async(e,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await G(e,n,`node `+n.classes+` `+n.class,!0),o=r.insert(`rect`,`:first-child`),s=n.positioned?n.width:i.width+n.padding,c=n.positioned?n.height:i.height+n.padding,l=n.positioned?-s/2:-i.width/2-a,u=n.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic label-container`).attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),n.props){let e=new Set(Object.keys(n.props));n.props.borders&&(Y(o,n.props.borders,s,c),e.delete(`borders`)),e.forEach(e=>{t.g.warn(`Unknown node property ${e}`)})}return K(n,o),n.intersect=function(e){return W.rect(n,e)},r},`rect`),We=t.h(async(e,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await G(e,n,`node `+n.classes,!0),o=r.insert(`rect`,`:first-child`),s=n.positioned?n.width:i.width+n.padding,c=n.positioned?n.height:i.height+n.padding,l=n.positioned?-s/2:-i.width/2-a,u=n.positioned?-c/2:-i.height/2-a;if(o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),n.props){let e=new Set(Object.keys(n.props));n.props.borders&&(Y(o,n.props.borders,s,c),e.delete(`borders`)),e.forEach(e=>{t.g.warn(`Unknown node property ${e}`)})}return K(n,o),n.intersect=function(e){return W.rect(n,e)},r},`composite`),Ge=t.h(async(e,n)=>{let{shapeSvg:r}=await G(e,n,`label`,!0);t.g.trace(`Classes = `,n.class);let i=r.insert(`rect`,`:first-child`);if(i.attr(`width`,0).attr(`height`,0),r.attr(`class`,`label edgeLabel`),n.props){let e=new Set(Object.keys(n.props));n.props.borders&&(Y(i,n.props.borders,0,0),e.delete(`borders`)),e.forEach(e=>{t.g.warn(`Unknown node property ${e}`)})}return K(n,i),n.intersect=function(e){return W.rect(n,e)},r},`labelRect`);function Y(e,n,r,i){let a=[],o=t.h(e=>{a.push(e,0)},`addBorder`),s=t.h(e=>{a.push(0,e)},`skipBorder`);n.includes(`t`)?(t.g.debug(`add top border`),o(r)):s(r),n.includes(`r`)?(t.g.debug(`add right border`),o(i)):s(i),n.includes(`b`)?(t.g.debug(`add bottom border`),o(r)):s(r),n.includes(`l`)?(t.g.debug(`add left border`),o(i)):s(i),e.attr(`stroke-dasharray`,a.join(` `))}t.h(Y,`applyNodePropertyBorders`);var Ke=t.h(async(n,r)=>{let i;i=r.classes?`node `+r.classes:`node default`;let a=n.insert(`g`).attr(`class`,i).attr(`id`,r.domId||r.id),o=a.insert(`rect`,`:first-child`),s=a.insert(`line`),c=a.insert(`g`).attr(`class`,`label`),l=r.labelText.flat?r.labelText.flat():r.labelText,u=``;u=typeof l==`object`?l[0]:l,t.g.info(`Label text abc79`,u,l,typeof l==`object`);let d=await z(c,u,r.labelStyle,!0,!0),f={width:0,height:0};if(e.w(e.b())){let e=d.children[0],n=t.p(d);f=e.getBoundingClientRect(),n.attr(`width`,f.width),n.attr(`height`,f.height)}t.g.info(`Text 2`,l);let p=l.slice(1,l.length),m=d.getBBox(),h=await z(c,p.join?p.join(`<br/>`):p,r.labelStyle,!0,!0);if(e.w(e.b())){let e=h.children[0],n=t.p(h);f=e.getBoundingClientRect(),n.attr(`width`,f.width),n.attr(`height`,f.height)}let g=r.padding/2;return t.p(h).attr(`transform`,`translate( `+(f.width>m.width?0:(m.width-f.width)/2)+`, `+(m.height+g+5)+`)`),t.p(d).attr(`transform`,`translate( `+(f.width<m.width?0:-(m.width-f.width)/2)+`, 0)`),f=c.node().getBBox(),c.attr(`transform`,`translate(`+-f.width/2+`, `+(-f.height/2-g+3)+`)`),o.attr(`class`,`outer title-state`).attr(`x`,-f.width/2-g).attr(`y`,-f.height/2-g).attr(`width`,f.width+r.padding).attr(`height`,f.height+r.padding),s.attr(`class`,`divider`).attr(`x1`,-f.width/2-g).attr(`x2`,f.width/2+g).attr(`y1`,-f.height/2-g+m.height+g).attr(`y2`,-f.height/2-g+m.height+g),K(r,o),r.intersect=function(e){return W.rect(r,e)},a},`rectWithTitle`),qe=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.height+t.padding,a=r.width+i/4+t.padding;return K(t,n.insert(`rect`,`:first-child`).attr(`style`,t.style).attr(`rx`,i/2).attr(`ry`,i/2).attr(`x`,-a/2).attr(`y`,-i/2).attr(`width`,a).attr(`height`,i)),t.intersect=function(e){return W.rect(t,e)},n},`stadium`),Je=t.h(async(e,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await G(e,n,J(n,void 0),!0),o=r.insert(`circle`,`:first-child`);return o.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+n.padding).attr(`height`,i.height+n.padding),t.g.info(`Circle main`),K(n,o),n.intersect=function(e){return t.g.info(`Circle intersect`,n,i.width/2+a,e),W.circle(n,i.width/2+a,e)},r},`circle`),Ye=t.h(async(e,n)=>{let{shapeSvg:r,bbox:i,halfPadding:a}=await G(e,n,J(n,void 0),!0),o=r.insert(`g`,`:first-child`),s=o.insert(`circle`),c=o.insert(`circle`);return o.attr(`class`,n.class),s.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a+5).attr(`width`,i.width+n.padding+10).attr(`height`,i.height+n.padding+10),c.attr(`style`,n.style).attr(`rx`,n.rx).attr(`ry`,n.ry).attr(`r`,i.width/2+a).attr(`width`,i.width+n.padding).attr(`height`,i.height+n.padding),t.g.info(`DoubleCircle main`),K(n,s),n.intersect=function(e){return t.g.info(`DoubleCircle intersect`,n,i.width/2+a+5,e),W.circle(n,i.width/2+a+5,e)},r},`doublecircle`),Xe=t.h(async(e,t)=>{let{shapeSvg:n,bbox:r}=await G(e,t,J(t,void 0),!0),i=r.width+t.padding,a=r.height+t.padding,o=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],s=q(n,i,a,o);return s.attr(`style`,t.style),K(t,s),t.intersect=function(e){return W.polygon(t,o,e)},n},`subroutine`),Ze=t.h((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`);return r.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),K(t,r),t.intersect=function(e){return W.circle(t,7,e)},n},`start`),X=t.h((e,t,n)=>{let r=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),i=70,a=10;return n===`LR`&&(i=10,a=70),K(t,r.append(`rect`).attr(`x`,-1*i/2).attr(`y`,-1*a/2).attr(`width`,i).attr(`height`,a).attr(`class`,`fork-join`)),t.height+=t.padding/2,t.width+=t.padding/2,t.intersect=function(e){return W.rect(t,e)},r},`forkJoin`),Qe={rhombus:Me,composite:We,question:Me,rect:Ue,labelRect:Ge,rectWithTitle:Ke,choice:Ne,circle:Je,doublecircle:Ye,stadium:qe,hexagon:Pe,block_arrow:Fe,rect_left_inv_arrow:Ie,lean_right:Le,lean_left:Re,trapezoid:ze,inv_trapezoid:Be,rect_right_inv_arrow:Ve,cylinder:He,start:Ze,end:t.h((e,t)=>{let n=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),r=n.insert(`circle`,`:first-child`),i=n.insert(`circle`,`:first-child`);return i.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14),r.attr(`class`,`state-end`).attr(`r`,5).attr(`width`,10).attr(`height`,10),K(t,i),t.intersect=function(e){return W.circle(t,7,e)},n},`end`),note:Ae,subroutine:Xe,fork:X,join:X,class_box:t.h(async(n,r)=>{let i=r.padding/2,a;a=r.classes?`node `+r.classes:`node default`;let o=n.insert(`g`).attr(`class`,a).attr(`id`,r.domId||r.id),s=o.insert(`rect`,`:first-child`),c=o.insert(`line`),l=o.insert(`line`),u=0,d=4,f=o.insert(`g`).attr(`class`,`label`),p=0,m=r.classData.annotations?.[0],h=await z(f,r.classData.annotations[0]?`«`+r.classData.annotations[0]+`»`:``,r.labelStyle,!0,!0),g=h.getBBox();if(e.w(e.b())){let e=h.children[0],n=t.p(h);g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}r.classData.annotations[0]&&(d+=g.height+4,u+=g.width);let _=r.classData.label;r.classData.type!==void 0&&r.classData.type!==``&&(e.w(e.b())?_+=`&lt;`+r.classData.type+`&gt;`:_+=`<`+r.classData.type+`>`);let v=await z(f,_,r.labelStyle,!0,!0);t.p(v).attr(`class`,`classTitle`);let y=v.getBBox();if(e.w(e.b())){let e=v.children[0],n=t.p(v);y=e.getBoundingClientRect(),n.attr(`width`,y.width),n.attr(`height`,y.height)}d+=y.height+4,y.width>u&&(u=y.width);let b=[];r.classData.members.forEach(async n=>{let i=n.getDisplayDetails(),a=i.displayText;e.w(e.b())&&(a=a.replace(/</g,`&lt;`).replace(/>/g,`&gt;`));let o=await z(f,a,i.cssStyle?i.cssStyle:r.labelStyle,!0,!0),s=o.getBBox();if(e.w(e.b())){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}s.width>u&&(u=s.width),d+=s.height+4,b.push(o)}),d+=8;let x=[];if(r.classData.methods.forEach(async n=>{let i=n.getDisplayDetails(),a=i.displayText;e.w(e.b())&&(a=a.replace(/</g,`&lt;`).replace(/>/g,`&gt;`));let o=await z(f,a,i.cssStyle?i.cssStyle:r.labelStyle,!0,!0),s=o.getBBox();if(e.w(e.b())){let e=o.children[0],n=t.p(o);s=e.getBoundingClientRect(),n.attr(`width`,s.width),n.attr(`height`,s.height)}s.width>u&&(u=s.width),d+=s.height+4,x.push(o)}),d+=8,m){let e=(u-g.width)/2;t.p(h).attr(`transform`,`translate( `+(-1*u/2+e)+`, `+-1*d/2+`)`),p=g.height+4}let S=(u-y.width)/2;return t.p(v).attr(`transform`,`translate( `+(-1*u/2+S)+`, `+(-1*d/2+p)+`)`),p+=y.height+4,c.attr(`class`,`divider`).attr(`x1`,-u/2-i).attr(`x2`,u/2+i).attr(`y1`,-d/2-i+8+p).attr(`y2`,-d/2-i+8+p),p+=8,b.forEach(e=>{t.p(e).attr(`transform`,`translate( `+-u/2+`, `+(-1*d/2+p+8/2)+`)`);let n=e?.getBBox();p+=(n?.height??0)+4}),p+=8,l.attr(`class`,`divider`).attr(`x1`,-u/2-i).attr(`x2`,u/2+i).attr(`y1`,-d/2-i+8+p).attr(`y2`,-d/2-i+8+p),p+=8,x.forEach(e=>{t.p(e).attr(`transform`,`translate( `+-u/2+`, `+(-1*d/2+p)+`)`);let n=e?.getBBox();p+=(n?.height??0)+4}),s.attr(`style`,r.style).attr(`class`,`outer title-state`).attr(`x`,-u/2-i).attr(`y`,-(d/2)-i).attr(`width`,u+r.padding).attr(`height`,d+r.padding),K(r,s),r.intersect=function(e){return W.rect(r,e)},o},`class_box`)},Z={},$e=t.h(async(t,n,r)=>{let i,a;if(n.link){let o;e.b().securityLevel===`sandbox`?o=`_top`:n.linkTarget&&(o=n.linkTarget||`_blank`),i=t.insert(`svg:a`).attr(`xlink:href`,n.link).attr(`target`,o),a=await Qe[n.shape](i,n,r)}else a=await Qe[n.shape](t,n,r),i=a;return n.tooltip&&a.attr(`title`,n.tooltip),n.class&&a.attr(`class`,`node default `+n.class),Z[n.id]=i,n.haveCallback&&Z[n.id].attr(`class`,Z[n.id].attr(`class`)+` clickable`),i},`insertNode`),et=t.h(e=>{let n=Z[e.id];t.g.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?n.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):n.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);function Q(t,n,i=!1){let a=t,o=`default`;(a?.classes?.length||0)>0&&(o=(a?.classes??[]).join(` `)),o+=` flowchart-label`;let s=0,c=``,l;switch(a.type){case`round`:s=5,c=`rect`;break;case`composite`:s=0,c=`composite`,l=0;break;case`square`:c=`rect`;break;case`diamond`:c=`question`;break;case`hexagon`:c=`hexagon`;break;case`block_arrow`:c=`block_arrow`;break;case`odd`:c=`rect_left_inv_arrow`;break;case`lean_right`:c=`lean_right`;break;case`lean_left`:c=`lean_left`;break;case`trapezoid`:c=`trapezoid`;break;case`inv_trapezoid`:c=`inv_trapezoid`;break;case`rect_left_inv_arrow`:c=`rect_left_inv_arrow`;break;case`circle`:c=`circle`;break;case`ellipse`:c=`ellipse`;break;case`stadium`:c=`stadium`;break;case`subroutine`:c=`subroutine`;break;case`cylinder`:c=`cylinder`;break;case`group`:c=`rect`;break;case`doublecircle`:c=`doublecircle`;break;default:c=`rect`}let u=r.c(a?.styles??[]),d=a.label,f=a.size??{width:0,height:0,x:0,y:0},p=n.getDiagramId();return{labelStyle:u.labelStyle,shape:c,labelText:d,rx:s,ry:s,class:o,style:u.style,id:a.id,domId:p?`${p}-${a.id}`:a.id,directions:a.directions,width:f.width,height:f.height,x:f.x,y:f.y,positioned:i,intersect:void 0,type:a.type,padding:l??e.y()?.block?.padding??0}}t.h(Q,`getNodeFromBlock`);async function tt(t,n,r){let i=Q(n,r,!1);if(i.type===`group`)return;let a=await $e(t,i,{config:e.y()}),o=a.node().getBBox(),s=r.getBlock(i.id);s.size={width:o.width,height:o.height,x:0,y:0,node:a},r.setBlock(s),a.remove()}t.h(tt,`calculateBlockSize`);async function nt(t,n,r){let i=Q(n,r,!0);r.getBlock(i.id).type!==`space`&&(await $e(t,i,{config:e.y()}),n.intersect=i?.intersect,et(i))}t.h(nt,`insertBlockPositioned`);async function $(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await $(e,i.children,n,r)}t.h($,`performOperations`);async function rt(e,t,n){await $(e,t,n,tt)}t.h(rt,`calculateBlockSizes`);async function it(e,t,n){await $(e,t,n,nt)}t.h(it,`insertBlocks`);async function at(e,t,n,r,i){let a=new l.t({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,c=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],l=i?`${i}-${n.id}`:n.id;_e(e,{v:n.start,w:n.end,name:l},{...n,id:l,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:`edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1`},void 0,`block`,a,i),n.label&&(await fe(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:c,classes:`edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1`}),pe({...n,x:c[1].x,y:c[1].y},{originalPath:c}))}}}t.h(at,`insertEdges`);var ot={parser:f,db:ne,renderer:{draw:t.h(async function(n,r,i,a){let{securityLevel:o,block:s}=e.y(),c=a.db;c.setDiagramId(r);let l;o===`sandbox`&&(l=t.p(`#i`+r));let u=o===`sandbox`?t.p(l.nodes()[0].contentDocument.body):t.p(`body`),d=o===`sandbox`?u.select(`[id="${r}"]`):t.p(`[id="${r}"]`);oe(d,[`point`,`circle`,`cross`],a.type,r);let f=c.getBlocks(),p=c.getBlocksFlat(),m=c.getEdges(),h=d.insert(`g`).attr(`class`,`block`);await rt(h,f,c);let g=ce(c);if(await it(h,f,c),await at(h,m,p,c,r),g){let n=g,r=Math.max(1,Math.round(.125*(n.width/n.height))),i=n.height+r+10,a=n.width+10,{useMaxWidth:o}=s;e.c(d,i,a,!!o),t.g.debug(`Here Bounds`,g,n),d.attr(`viewBox`,`${n.x-5} ${n.y-5} ${n.width+10} ${n.height+10}`)}},`draw`),getClasses:t.h(function(e,t){return t.db.getClasses()},`getClasses`)},styles:re};exports.diagram=ot;