@jackuait/blok 0.11.1 → 0.12.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 (1220) hide show
  1. package/LICENSE +13 -1
  2. package/NOTICE +10 -0
  3. package/README.md +7 -1
  4. package/codemod/migrate-editorjs-to-blok.js +51 -1
  5. package/codemod/test.js +95 -0
  6. package/dist/blok.cjs +1 -1
  7. package/dist/blok.iife.js +31 -30
  8. package/dist/blok.mjs +2 -2
  9. package/dist/chunks/_basePickBy-CLCgPLk_.cjs +1 -0
  10. package/dist/chunks/_basePickBy-cIM18c5w.mjs +166 -0
  11. package/dist/chunks/_baseUniq-C3lUNj_l.mjs +682 -0
  12. package/dist/chunks/_baseUniq-Cm3XBb1f.cjs +1 -0
  13. package/dist/chunks/arc-BSr2jl4o.mjs +80 -0
  14. package/dist/chunks/arc-C-l7V0ww.cjs +1 -0
  15. package/dist/chunks/architecture-YZFGNWBL-C5uKTSqd.mjs +3 -0
  16. package/dist/chunks/architecture-YZFGNWBL-DopZbt9d.cjs +1 -0
  17. package/dist/chunks/architectureDiagram-Q4EWVU46-B3EkmUoA.cjs +36 -0
  18. package/dist/chunks/architectureDiagram-Q4EWVU46-DL5lPOq_.mjs +4066 -0
  19. package/dist/chunks/blockDiagram-DXYQGD6D-ChnytJiO.cjs +132 -0
  20. package/dist/chunks/blockDiagram-DXYQGD6D-DjFfRgP_.mjs +3074 -0
  21. package/dist/chunks/blok-Cxcy7G7v.mjs +13801 -0
  22. package/dist/chunks/blok-qY4LDF7A.cjs +17 -0
  23. package/dist/chunks/c4Diagram-AHTNJAMY-D9cwQ5dP.cjs +10 -0
  24. package/dist/chunks/c4Diagram-AHTNJAMY-DDydXzN1.mjs +2956 -0
  25. package/dist/chunks/channel-1VaVTmSI.mjs +5 -0
  26. package/dist/chunks/channel-DTKWBt5v.cjs +1 -0
  27. package/dist/chunks/chunk-2KRD3SAO-Dcv71dz8.cjs +1 -0
  28. package/dist/chunks/chunk-2KRD3SAO-DslQvmzC.mjs +20 -0
  29. package/dist/chunks/chunk-336JU56O-CUNPhOYK.mjs +49 -0
  30. package/dist/chunks/chunk-336JU56O-DsJvvQpB.cjs +1 -0
  31. package/dist/chunks/chunk-426QAEUC-Ciny2-Rz.mjs +13 -0
  32. package/dist/chunks/chunk-426QAEUC-DEYJ0OiL.cjs +1 -0
  33. package/dist/chunks/chunk-4BX2VUAB-D1dKBLiS.cjs +1 -0
  34. package/dist/chunks/chunk-4BX2VUAB-ljY9_i7D.mjs +19 -0
  35. package/dist/chunks/chunk-4TB4RGXK-C-eXrWWX.cjs +206 -0
  36. package/dist/chunks/chunk-4TB4RGXK-orLiGd4g.mjs +3250 -0
  37. package/dist/chunks/chunk-55IACEB6-BOy3ofgp.cjs +1 -0
  38. package/dist/chunks/chunk-55IACEB6-BPnDY27B.mjs +8 -0
  39. package/dist/chunks/chunk-5FUZZQ4R-D3UGwLBL.cjs +62 -0
  40. package/dist/chunks/chunk-5FUZZQ4R-D5gG1Dk4.mjs +3786 -0
  41. package/dist/chunks/chunk-5PVQY5BW-BCwqe25T.cjs +2 -0
  42. package/dist/chunks/chunk-5PVQY5BW-DVKx7m4a.mjs +1122 -0
  43. package/dist/chunks/chunk-67CJDMHE-BU_rrdV4.mjs +20 -0
  44. package/dist/chunks/chunk-67CJDMHE-VKwQfp25.cjs +1 -0
  45. package/dist/chunks/chunk-7N4EOEYR-BpM-QbmS.cjs +1 -0
  46. package/dist/chunks/chunk-7N4EOEYR-Cx6N1y9w.mjs +29 -0
  47. package/dist/chunks/chunk-AA7GKIK3-DCAy6uIg.mjs +24 -0
  48. package/dist/chunks/chunk-AA7GKIK3-RcaBhHiZ.cjs +1 -0
  49. package/dist/chunks/chunk-BSJP7CBP-BHijZ5f8.mjs +83 -0
  50. package/dist/chunks/chunk-BSJP7CBP-wiZ2ll8-.cjs +1 -0
  51. package/dist/chunks/chunk-CIAEETIT-0sn8TZoo.cjs +1 -0
  52. package/dist/chunks/chunk-CIAEETIT-BWpztfre.mjs +20 -0
  53. package/dist/chunks/chunk-EDXVE4YY-BJAhHZ3a.mjs +26 -0
  54. package/dist/chunks/chunk-EDXVE4YY-CXhcVSEI.cjs +1 -0
  55. package/dist/chunks/chunk-ENJZ2VHE-BgpbBBSF.cjs +10 -0
  56. package/dist/chunks/chunk-ENJZ2VHE-COIAdqL4.mjs +566 -0
  57. package/dist/chunks/chunk-FMBD7UC4-CUTvay8e.mjs +5 -0
  58. package/dist/chunks/chunk-FMBD7UC4-DCJ-fphu.cjs +15 -0
  59. package/dist/chunks/chunk-FOC6F5B3-3FOtyf3P.mjs +20 -0
  60. package/dist/chunks/chunk-FOC6F5B3-C2-FyqYn.cjs +1 -0
  61. package/dist/chunks/chunk-ICPOFSXX-BUWZvUuu.cjs +122 -0
  62. package/dist/chunks/chunk-ICPOFSXX-Dn5WbEeN.mjs +3290 -0
  63. package/dist/chunks/chunk-K5T4RW27-CX5gsk1T.cjs +94 -0
  64. package/dist/chunks/chunk-K5T4RW27-De7GqZCP.mjs +16372 -0
  65. package/dist/chunks/chunk-KGLVRYIC-Cwvjry7S.cjs +1 -0
  66. package/dist/chunks/chunk-KGLVRYIC-sDQUxLS7.mjs +20 -0
  67. package/dist/chunks/chunk-LIHQZDEY-BC8om0l2.cjs +1 -0
  68. package/dist/chunks/chunk-LIHQZDEY-BoY9X2Wj.mjs +55 -0
  69. package/dist/chunks/chunk-ORNJ4GCN-CYLjqcXc.mjs +25 -0
  70. package/dist/chunks/chunk-ORNJ4GCN-CoC7A1vn.cjs +1 -0
  71. package/dist/chunks/chunk-OYMX7WX6-Bbwq_g2w.mjs +2038 -0
  72. package/dist/chunks/chunk-OYMX7WX6-D3csU8-J.cjs +231 -0
  73. package/dist/chunks/chunk-QZHKN3VN-Bs3XaH0U.mjs +12 -0
  74. package/dist/chunks/chunk-QZHKN3VN-Db_x7kn8.cjs +1 -0
  75. package/dist/chunks/chunk-U2HBQHQK-CEwYxA8R.cjs +70 -0
  76. package/dist/chunks/chunk-U2HBQHQK-DLyzqElq.mjs +1875 -0
  77. package/dist/chunks/chunk-X2U36JSP-BY9JBwLQ.cjs +1 -0
  78. package/dist/chunks/chunk-X2U36JSP-UKGkP2m1.mjs +68 -0
  79. package/dist/chunks/chunk-XPW4576I-2i_ZgZLs.mjs +1146 -0
  80. package/dist/chunks/chunk-XPW4576I-Ym5mFsxv.cjs +32 -0
  81. package/dist/chunks/chunk-YZCP3GAM-C2GbOoUx.mjs +60 -0
  82. package/dist/chunks/chunk-YZCP3GAM-WMeXt5aH.cjs +1 -0
  83. package/dist/chunks/chunk-ZZ45TVLE-CeD1lNAB.cjs +1 -0
  84. package/dist/chunks/chunk-ZZ45TVLE-DyYus02Y.mjs +33 -0
  85. package/dist/chunks/classDiagram-6PBFFD2Q-DNHZ3qE5.mjs +30 -0
  86. package/dist/chunks/classDiagram-6PBFFD2Q-DWcC9USb.cjs +1 -0
  87. package/dist/chunks/classDiagram-v2-HSJHXN6E-BXKTiJNh.cjs +1 -0
  88. package/dist/chunks/classDiagram-v2-HSJHXN6E-GgfA5-jG.mjs +30 -0
  89. package/dist/chunks/clone-DeEumpiC.mjs +8 -0
  90. package/dist/chunks/clone-gX2HWen_.cjs +1 -0
  91. package/dist/chunks/constants-BYCpx4v_.cjs +457 -0
  92. package/dist/chunks/constants-Bhk7u_hm.mjs +3432 -0
  93. package/dist/chunks/cose-bilkent-S5V4N54A-BuQ-Gx1y.mjs +2246 -0
  94. package/dist/chunks/cose-bilkent-S5V4N54A-CdxjlgEx.cjs +1 -0
  95. package/dist/chunks/dagre-BVQ5RQE_.mjs +1483 -0
  96. package/dist/chunks/dagre-D9QEFKwC.cjs +1 -0
  97. package/dist/chunks/dagre-KV5264BT-BxQkkVxZ.mjs +298 -0
  98. package/dist/chunks/dagre-KV5264BT-Dz_FEBZU.cjs +4 -0
  99. package/dist/chunks/diagram-5BDNPKRD-Cf9AymAx.cjs +10 -0
  100. package/dist/chunks/diagram-5BDNPKRD-joiZwmh1.mjs +112 -0
  101. package/dist/chunks/diagram-G4DWMVQ6-3CAnipxw.cjs +24 -0
  102. package/dist/chunks/diagram-G4DWMVQ6-DrvbpYBX.mjs +546 -0
  103. package/dist/chunks/diagram-MMDJMWI5-B3CwY62T.mjs +234 -0
  104. package/dist/chunks/diagram-MMDJMWI5-DMrk0xwH.cjs +43 -0
  105. package/dist/chunks/diagram-TYMM5635-B3g66i1E.mjs +144 -0
  106. package/dist/chunks/diagram-TYMM5635-BAuYHtjV.cjs +24 -0
  107. package/dist/chunks/erDiagram-SMLLAGMA-4Ks-44BH.cjs +85 -0
  108. package/dist/chunks/erDiagram-SMLLAGMA-Bw6U_hHz.mjs +1712 -0
  109. package/dist/chunks/flowDiagram-DWJPFMVM-D2yMfIFs.mjs +4175 -0
  110. package/dist/chunks/flowDiagram-DWJPFMVM-O6dDtont.cjs +162 -0
  111. package/dist/chunks/ganttDiagram-T4ZO3ILL-D-ymktbJ.cjs +292 -0
  112. package/dist/chunks/ganttDiagram-T4ZO3ILL-SEs0Ez0p.mjs +3083 -0
  113. package/dist/chunks/gitGraph-7Q5UKJZL-BLhgGqhG.cjs +1 -0
  114. package/dist/chunks/gitGraph-7Q5UKJZL-DbRxS8Lo.mjs +3 -0
  115. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BSuqMw-A.cjs +106 -0
  116. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BpVIPN2N.mjs +792 -0
  117. package/dist/chunks/graphlib-C2L_nEcM.cjs +1 -0
  118. package/dist/chunks/graphlib-Cpp6Todw.mjs +225 -0
  119. package/dist/chunks/i18next-loader-BJAXtkt3.cjs +1 -0
  120. package/dist/chunks/i18next-loader-dnJtS6Nb.mjs +35 -0
  121. package/dist/chunks/info-OMHHGYJF-BRxQdcvB.mjs +3 -0
  122. package/dist/chunks/info-OMHHGYJF-Cb4wPKNP.cjs +1 -0
  123. package/dist/chunks/infoDiagram-42DDH7IO-BNAE_Dp2.cjs +2 -0
  124. package/dist/chunks/infoDiagram-42DDH7IO-JYmpv-Gn.mjs +29 -0
  125. package/dist/chunks/isEmpty-BYDpYNyM.cjs +1 -0
  126. package/dist/chunks/isEmpty-Bgy1eL0m.mjs +35 -0
  127. package/dist/chunks/ishikawaDiagram-UXIWVN3A-Ca_1igMn.cjs +70 -0
  128. package/dist/chunks/ishikawaDiagram-UXIWVN3A-ClkZz1Tc.mjs +719 -0
  129. package/dist/chunks/journeyDiagram-VCZTEJTY-BTzeo896.mjs +885 -0
  130. package/dist/chunks/journeyDiagram-VCZTEJTY-D69nfb5v.cjs +139 -0
  131. package/dist/chunks/kanban-definition-6JOO6SKY-BTSuFyjj.cjs +89 -0
  132. package/dist/chunks/kanban-definition-6JOO6SKY-C2Jk5rDA.mjs +980 -0
  133. package/dist/chunks/lightweight-i18n-T_Nc45AF.cjs +1 -0
  134. package/dist/chunks/lightweight-i18n-qpzXlOVm.mjs +344 -0
  135. package/dist/chunks/line-CjJKN63i.cjs +1 -0
  136. package/dist/chunks/line-zarcRAiW.mjs +34 -0
  137. package/dist/chunks/linear-CDUWrVHa.cjs +1 -0
  138. package/dist/chunks/linear-CXe29GGg.mjs +289 -0
  139. package/dist/chunks/mdast-util-math-BfFBcnFx.cjs +5 -0
  140. package/dist/chunks/mdast-util-math-CqPx3t0S.mjs +151 -0
  141. package/dist/chunks/mermaid-parser.core-BXANIhlc.mjs +57 -0
  142. package/dist/chunks/mermaid-parser.core-DMmP6uoD.cjs +3 -0
  143. package/dist/chunks/mermaid.core-A4e6ZJqs.mjs +977 -0
  144. package/dist/chunks/mermaid.core-C66G0J-z.cjs +10 -0
  145. package/dist/chunks/messages--BWLKiOP2.mjs +319 -0
  146. package/dist/chunks/messages--LI6Qp0h.mjs +319 -0
  147. package/dist/chunks/messages-4TiLLTpr2.cjs +1 -0
  148. package/dist/chunks/messages-7ul_s8GB2.mjs +319 -0
  149. package/dist/chunks/messages-8BZGqPD1.cjs +1 -0
  150. package/dist/chunks/messages-96ztlozp.cjs +1 -0
  151. package/dist/chunks/messages-B-_ZQLp5.mjs +319 -0
  152. package/dist/chunks/messages-B1YSYW3Y.cjs +1 -0
  153. package/dist/chunks/messages-B3E33lPt2.mjs +319 -0
  154. package/dist/chunks/messages-BABN8cuN.mjs +319 -0
  155. package/dist/chunks/messages-BDAXqxYw.cjs +1 -0
  156. package/dist/chunks/messages-BE0YZo6f.cjs +1 -0
  157. package/dist/chunks/messages-BIg9D7T52.cjs +1 -0
  158. package/dist/chunks/messages-BKtPvquH2.mjs +319 -0
  159. package/dist/chunks/messages-BMKq6Ps12.cjs +1 -0
  160. package/dist/chunks/messages-BMqvMau_2.mjs +319 -0
  161. package/dist/chunks/messages-BNmaVDtf.mjs +319 -0
  162. package/dist/chunks/messages-BRRMkfZY2.cjs +1 -0
  163. package/dist/chunks/messages-BUg0EGM6.cjs +1 -0
  164. package/dist/chunks/messages-BV88VXs-2.mjs +319 -0
  165. package/dist/chunks/messages-BVAjj_W_2.mjs +319 -0
  166. package/dist/chunks/messages-BWd6mmTm.mjs +319 -0
  167. package/dist/chunks/messages-BXce9Dbm.mjs +319 -0
  168. package/dist/chunks/messages-B_OU8dr_.mjs +319 -0
  169. package/dist/chunks/messages-B_VpqVFy.mjs +319 -0
  170. package/dist/chunks/messages-B_t9669l.mjs +319 -0
  171. package/dist/chunks/messages-Begh-7SQ.cjs +1 -0
  172. package/dist/chunks/messages-BfTeMiOT.cjs +1 -0
  173. package/dist/chunks/messages-BguYUD04.cjs +1 -0
  174. package/dist/chunks/messages-Bi5NKhkL.cjs +1 -0
  175. package/dist/chunks/messages-BliJJjNK2.cjs +1 -0
  176. package/dist/chunks/messages-BmSnovX9.cjs +1 -0
  177. package/dist/chunks/messages-BoZAdwRU2.mjs +319 -0
  178. package/dist/chunks/messages-Bp-PMdAJ.mjs +319 -0
  179. package/dist/chunks/messages-BphoNqXl2.mjs +319 -0
  180. package/dist/chunks/messages-Bs5HM4rw2.cjs +1 -0
  181. package/dist/chunks/messages-BtZSlvVR.cjs +1 -0
  182. package/dist/chunks/messages-Btg_N5Nj2.cjs +1 -0
  183. package/dist/chunks/messages-C67MLHmh.cjs +1 -0
  184. package/dist/chunks/messages-C6RXCX1D2.mjs +319 -0
  185. package/dist/chunks/messages-C6Zo4thu.mjs +319 -0
  186. package/dist/chunks/messages-C7QEUxQf2.cjs +1 -0
  187. package/dist/chunks/messages-CB-RDoMj2.cjs +1 -0
  188. package/dist/chunks/messages-CBOtPEE5.cjs +1 -0
  189. package/dist/chunks/messages-CBoKI_4k2.mjs +319 -0
  190. package/dist/chunks/messages-CCMMPgcH.mjs +319 -0
  191. package/dist/chunks/messages-CFvaU-9Q2.mjs +319 -0
  192. package/dist/chunks/messages-CHDxRwD8.mjs +319 -0
  193. package/dist/chunks/messages-CJWSRA8r.cjs +1 -0
  194. package/dist/chunks/messages-CJaj0WrV.mjs +319 -0
  195. package/dist/chunks/messages-CLnZAk7s.mjs +319 -0
  196. package/dist/chunks/messages-CNWWk9zU.cjs +1 -0
  197. package/dist/chunks/messages-CO4IPaU22.mjs +319 -0
  198. package/dist/chunks/messages-CQii-Hly.mjs +319 -0
  199. package/dist/chunks/messages-CSPoZeJd.cjs +1 -0
  200. package/dist/chunks/messages-CThWJOaj2.cjs +1 -0
  201. package/dist/chunks/messages-CWbag2W1.mjs +319 -0
  202. package/dist/chunks/messages-CWfPtitC.mjs +319 -0
  203. package/dist/chunks/messages-CYh8BT-U2.cjs +1 -0
  204. package/dist/chunks/messages-CZAwmrBN2.mjs +319 -0
  205. package/dist/chunks/messages-CcmzbJED2.mjs +319 -0
  206. package/dist/chunks/messages-Cdp2ao16.cjs +1 -0
  207. package/dist/chunks/messages-CeSGFPaX.mjs +319 -0
  208. package/dist/chunks/messages-CfmN_C_V2.cjs +1 -0
  209. package/dist/chunks/messages-CgTWiYXl.mjs +319 -0
  210. package/dist/chunks/messages-CiqFmj282.mjs +319 -0
  211. package/dist/chunks/messages-Cj1I1bdS.mjs +319 -0
  212. package/dist/chunks/messages-CktwPONk2.cjs +1 -0
  213. package/dist/chunks/messages-ClMbt_082.cjs +1 -0
  214. package/dist/chunks/messages-ClfpoVLB.cjs +1 -0
  215. package/dist/chunks/messages-CmcpUpmY2.cjs +1 -0
  216. package/dist/chunks/messages-CnNUiCOF2.cjs +1 -0
  217. package/dist/chunks/messages-Cq-tyBQ7.cjs +1 -0
  218. package/dist/chunks/messages-Cqs6tnMT.mjs +319 -0
  219. package/dist/chunks/messages-CrPQatEP.cjs +1 -0
  220. package/dist/chunks/messages-CtNhn2A72.cjs +1 -0
  221. package/dist/chunks/messages-Cw-JQsbB.cjs +1 -0
  222. package/dist/chunks/messages-CxLZNPP22.mjs +319 -0
  223. package/dist/chunks/messages-D2to7PFh.mjs +319 -0
  224. package/dist/chunks/messages-D7GNxw46.cjs +1 -0
  225. package/dist/chunks/messages-DDqbUQPS2.cjs +1 -0
  226. package/dist/chunks/messages-DIsfRggy.mjs +319 -0
  227. package/dist/chunks/messages-DLvqdeVe.mjs +319 -0
  228. package/dist/chunks/messages-DMukq8ei2.cjs +1 -0
  229. package/dist/chunks/messages-DOJ7TGKc.mjs +319 -0
  230. package/dist/chunks/messages-DPpKBEMV.mjs +319 -0
  231. package/dist/chunks/messages-DWDt4hEW.mjs +319 -0
  232. package/dist/chunks/messages-DYPc3t5L.cjs +1 -0
  233. package/dist/chunks/messages-DYRRi1JW.mjs +319 -0
  234. package/dist/chunks/messages-DYbP7_iL.cjs +1 -0
  235. package/dist/chunks/messages-D_gbD8W22.mjs +319 -0
  236. package/dist/chunks/messages-DaQ1XgNk.mjs +319 -0
  237. package/dist/chunks/messages-DjW1_-Ba2.mjs +319 -0
  238. package/dist/chunks/messages-Dop11yxi.mjs +319 -0
  239. package/dist/chunks/messages-DoyFY1Ye.mjs +319 -0
  240. package/dist/chunks/messages-DpjZ6YjX.cjs +1 -0
  241. package/dist/chunks/messages-DprfonW1.mjs +319 -0
  242. package/dist/chunks/messages-Dq8w46wu.cjs +1 -0
  243. package/dist/chunks/messages-DqbBTg1F2.mjs +319 -0
  244. package/dist/chunks/messages-DsGOj3A62.cjs +1 -0
  245. package/dist/chunks/messages-Dt6sbdaY.mjs +319 -0
  246. package/dist/chunks/messages-Dv3xqn-c.mjs +319 -0
  247. package/dist/chunks/messages-DwZCK3WR2.cjs +1 -0
  248. package/dist/chunks/messages-G-grLA6L2.cjs +1 -0
  249. package/dist/chunks/messages-HmyGBKiy2.cjs +1 -0
  250. package/dist/chunks/messages-IsKrH6md2.mjs +319 -0
  251. package/dist/chunks/messages-L1H9KlM8.cjs +1 -0
  252. package/dist/chunks/messages-OwCNaUA2.cjs +1 -0
  253. package/dist/chunks/messages-Q1fgq2tw.cjs +1 -0
  254. package/dist/chunks/messages-RLMDvD9N.mjs +319 -0
  255. package/dist/chunks/messages-SGrUP3jU2.mjs +319 -0
  256. package/dist/chunks/messages-TET2HqbJ.mjs +319 -0
  257. package/dist/chunks/messages-UR9AknuE.cjs +1 -0
  258. package/dist/chunks/messages-UXbrSqP4.mjs +319 -0
  259. package/dist/chunks/messages-UlQUIo4t.cjs +1 -0
  260. package/dist/chunks/messages-VO5bBaDw2.cjs +1 -0
  261. package/dist/chunks/messages-Vz-ouTEN.mjs +319 -0
  262. package/dist/chunks/messages-Z5hg0_Dz2.mjs +319 -0
  263. package/dist/chunks/messages-bBZDrpto2.mjs +319 -0
  264. package/dist/chunks/messages-ipwQdTtE.cjs +1 -0
  265. package/dist/chunks/messages-jXbN1DEs.mjs +319 -0
  266. package/dist/chunks/messages-kon7ablY2.cjs +1 -0
  267. package/dist/chunks/messages-oeTrLt0-.cjs +1 -0
  268. package/dist/chunks/messages-qga5_rrO.cjs +1 -0
  269. package/dist/chunks/messages-sEnNaZIo.cjs +1 -0
  270. package/dist/chunks/messages-szOBKu5g.cjs +1 -0
  271. package/dist/chunks/messages-tZ7nZ7qL.cjs +1 -0
  272. package/dist/chunks/messages-u_dR89Qy.mjs +319 -0
  273. package/dist/chunks/messages-wDo4f3f9.cjs +1 -0
  274. package/dist/chunks/messages-wxVdFEgz2.mjs +319 -0
  275. package/dist/chunks/messages-x3ljzuuQ2.cjs +1 -0
  276. package/dist/chunks/messages-x6wDbfws2.mjs +319 -0
  277. package/dist/chunks/messages-ygmjC_Dc.cjs +1 -0
  278. package/dist/chunks/messages-zPVJyoxM.cjs +1 -0
  279. package/dist/chunks/micromark-extension-math-Cm8w3ABm.cjs +1 -0
  280. package/dist/chunks/micromark-extension-math-cDSPzUWY.mjs +169 -0
  281. package/dist/chunks/mindmap-definition-QFDTVHPH-DLO594eM.cjs +96 -0
  282. package/dist/chunks/mindmap-definition-QFDTVHPH-QxqvL96A.mjs +1013 -0
  283. package/dist/chunks/notifier-CfO3Icvp.cjs +1 -0
  284. package/dist/chunks/notifier-DMdYq9FS.mjs +73 -0
  285. package/dist/chunks/ordinal-DgAmiD5I.mjs +65 -0
  286. package/dist/chunks/ordinal-mgpK7IL3.cjs +1 -0
  287. package/dist/chunks/packet-4T2RLAQJ-BQYK4Pey.cjs +1 -0
  288. package/dist/chunks/packet-4T2RLAQJ-BwgNXqij.mjs +3 -0
  289. package/dist/chunks/pie-ZZUOXDRM-BLh1-ocA.cjs +1 -0
  290. package/dist/chunks/pie-ZZUOXDRM-CrDtyZu4.mjs +3 -0
  291. package/dist/chunks/pieDiagram-DEJITSTG-CGduyUgA.mjs +179 -0
  292. package/dist/chunks/pieDiagram-DEJITSTG-Do5jGsL7.cjs +30 -0
  293. package/dist/chunks/prism-bash-OGjZLOVe.cjs +1 -0
  294. package/dist/chunks/prism-bash-oISNNULp.mjs +175 -0
  295. package/dist/chunks/prism-c-1g9CdJOp.cjs +1 -0
  296. package/dist/chunks/prism-c-MtM8JocP.mjs +54 -0
  297. package/dist/chunks/prism-cpp-CORR584T.cjs +1 -0
  298. package/dist/chunks/prism-cpp-DswQJFJz.mjs +63 -0
  299. package/dist/chunks/prism-csharp-BqZp_TTb.cjs +1 -0
  300. package/dist/chunks/prism-csharp-GIfQrsqe.mjs +236 -0
  301. package/dist/chunks/prism-css-BLyqeHZR.mjs +55 -0
  302. package/dist/chunks/prism-css-DmF38Kcs.cjs +1 -0
  303. package/dist/chunks/prism-dart-CFseeodJ.cjs +1 -0
  304. package/dist/chunks/prism-dart-DbCi1QVI.mjs +52 -0
  305. package/dist/chunks/prism-docker-BOsXo4aW.cjs +1 -0
  306. package/dist/chunks/prism-docker-CUCbqggk.mjs +75 -0
  307. package/dist/chunks/prism-go-DVHXGmKb.mjs +20 -0
  308. package/dist/chunks/prism-go-DsEyoP6D.cjs +1 -0
  309. package/dist/chunks/prism-graphql-DGEYZFbw.mjs +114 -0
  310. package/dist/chunks/prism-graphql-DqXh7GRP.cjs +1 -0
  311. package/dist/chunks/prism-java-CzQtfd6W.mjs +99 -0
  312. package/dist/chunks/prism-java-DQn4zrh0.cjs +1 -0
  313. package/dist/chunks/prism-javascript-CAkVOGaq.mjs +101 -0
  314. package/dist/chunks/prism-javascript-UQPp4ffL.cjs +1 -0
  315. package/dist/chunks/prism-json-B-63BF6R.cjs +1 -0
  316. package/dist/chunks/prism-json-BSGjg8pt.mjs +25 -0
  317. package/dist/chunks/prism-kotlin-D9r_epW6.mjs +64 -0
  318. package/dist/chunks/prism-kotlin-DmCIViWe.cjs +1 -0
  319. package/dist/chunks/prism-latex-Bcpg2uQr.cjs +1 -0
  320. package/dist/chunks/prism-latex-o70KNu9w.mjs +43 -0
  321. package/dist/chunks/prism-lua-7od8jpGg.mjs +17 -0
  322. package/dist/chunks/prism-lua-DyMxrgA_.cjs +1 -0
  323. package/dist/chunks/prism-markdown-BY8dZr_8.cjs +1 -0
  324. package/dist/chunks/prism-markdown-CI62y6qt.mjs +251 -0
  325. package/dist/chunks/prism-markup-DFqZi51m.mjs +116 -0
  326. package/dist/chunks/prism-markup-OdaHxDBn.cjs +1 -0
  327. package/dist/chunks/prism-markup-templating-Cnde-rJf.cjs +1 -0
  328. package/dist/chunks/prism-markup-templating-DTIDwO2f.mjs +39 -0
  329. package/dist/chunks/prism-php-BFUaOiLc.mjs +277 -0
  330. package/dist/chunks/prism-php-D8NgAYtH.cjs +1 -0
  331. package/dist/chunks/prism-python-CTRSlrPP.mjs +59 -0
  332. package/dist/chunks/prism-python-vAqxHcox.cjs +1 -0
  333. package/dist/chunks/prism-r-AA_ZuQPX.mjs +19 -0
  334. package/dist/chunks/prism-r-BsUW1w_m.cjs +1 -0
  335. package/dist/chunks/prism-ruby-BttDevO3.mjs +156 -0
  336. package/dist/chunks/prism-ruby-D7wGSPCx.cjs +1 -0
  337. package/dist/chunks/prism-rust-1wrW82hd.mjs +92 -0
  338. package/dist/chunks/prism-rust-C65Pn3Oc.cjs +1 -0
  339. package/dist/chunks/prism-scala-C26iL30s.mjs +43 -0
  340. package/dist/chunks/prism-scala-DuAsLUh6.cjs +1 -0
  341. package/dist/chunks/prism-sql-CSv-2hNx.mjs +29 -0
  342. package/dist/chunks/prism-sql-DHhl_Wd1.cjs +1 -0
  343. package/dist/chunks/prism-swift-2HH6IALG.cjs +1 -0
  344. package/dist/chunks/prism-swift-ik83oO-E.mjs +94 -0
  345. package/dist/chunks/prism-typescript-ChaS5gh3.mjs +38 -0
  346. package/dist/chunks/prism-typescript-Cuqi9QKv.cjs +1 -0
  347. package/dist/chunks/prism-yaml-BT2oArqa.cjs +1 -0
  348. package/dist/chunks/prism-yaml-YI3VZVAw.mjs +68 -0
  349. package/dist/chunks/quadrantDiagram-34T5L4WZ-BdwmsqYk.cjs +7 -0
  350. package/dist/chunks/quadrantDiagram-34T5L4WZ-BiqiWPbj.mjs +1960 -0
  351. package/dist/chunks/radar-PYXPWWZC-CYtB39az.mjs +3 -0
  352. package/dist/chunks/radar-PYXPWWZC-Drac9aGm.cjs +1 -0
  353. package/dist/chunks/requirementDiagram-MS252O5E-Cko4AhA2.mjs +2224 -0
  354. package/dist/chunks/requirementDiagram-MS252O5E-DBRLVWVl.cjs +84 -0
  355. package/dist/chunks/sankeyDiagram-XADWPNL6-BFWIr9AZ.mjs +909 -0
  356. package/dist/chunks/sankeyDiagram-XADWPNL6-Dq3Fi6gG.cjs +10 -0
  357. package/dist/chunks/sequenceDiagram-FGHM5R23-BKKZAG9O.cjs +157 -0
  358. package/dist/chunks/sequenceDiagram-FGHM5R23-DHFzzYeT.mjs +4181 -0
  359. package/dist/chunks/stateDiagram-FHFEXIEX-B1vJTyiJ.mjs +218 -0
  360. package/dist/chunks/stateDiagram-FHFEXIEX-DsHbgVAE.cjs +1 -0
  361. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DC206QSk.mjs +28 -0
  362. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DzkxV3pL.cjs +1 -0
  363. package/dist/chunks/timeline-definition-GMOUNBTQ-BlXvHIKp.mjs +1084 -0
  364. package/dist/chunks/timeline-definition-GMOUNBTQ-durCMWAX.cjs +120 -0
  365. package/dist/chunks/tools-Bc4e0xmz.mjs +13848 -0
  366. package/dist/chunks/tools-DaOdAh89.cjs +115 -0
  367. package/dist/chunks/treeView-SZITEDCU-BpLDxB8w.cjs +1 -0
  368. package/dist/chunks/treeView-SZITEDCU-DIbHFtMw.mjs +3 -0
  369. package/dist/chunks/treemap-W4RFUUIX-4t60SvLo.mjs +3 -0
  370. package/dist/chunks/treemap-W4RFUUIX-jpjSZokO.cjs +1 -0
  371. package/dist/chunks/vennDiagram-DHZGUBPP-BVxAvXiG.mjs +1876 -0
  372. package/dist/chunks/vennDiagram-DHZGUBPP-Dtpe6giP.cjs +34 -0
  373. package/dist/chunks/wardley-RL74JXVD-CBBTKC3H.cjs +1 -0
  374. package/dist/chunks/wardley-RL74JXVD-g5DNBeQ1.mjs +3 -0
  375. package/dist/chunks/wardleyDiagram-NUSXRM2D-BGORQqtQ.mjs +594 -0
  376. package/dist/chunks/wardleyDiagram-NUSXRM2D-ClsU-9PV.cjs +20 -0
  377. package/dist/chunks/xychartDiagram-5P7HB3ND-DplTzQI6.mjs +2017 -0
  378. package/dist/chunks/xychartDiagram-5P7HB3ND-EO18s7Fo.cjs +7 -0
  379. package/dist/full.cjs +1 -1
  380. package/dist/full.mjs +9 -9
  381. package/dist/locales.mjs +175 -68
  382. package/dist/markdown.cjs +2 -2
  383. package/dist/markdown.mjs +392 -384
  384. package/dist/messages-28LGzsNB.mjs +319 -0
  385. package/dist/messages-35X8GsGw2.mjs +319 -0
  386. package/dist/messages-5ygX-4B92.mjs +319 -0
  387. package/dist/messages-83AcZNii.mjs +319 -0
  388. package/dist/messages-B-OvX3Vz2.mjs +319 -0
  389. package/dist/messages-B56oJj_X2.mjs +319 -0
  390. package/dist/messages-B7peBJXJ2.mjs +319 -0
  391. package/dist/messages-BGwTNk0S2.mjs +319 -0
  392. package/dist/messages-BH-SS-wY.mjs +319 -0
  393. package/dist/messages-BPX8V6tu.mjs +319 -0
  394. package/dist/messages-BUp8P-0d.mjs +319 -0
  395. package/dist/messages-BX3WM02N2.mjs +319 -0
  396. package/dist/messages-BZrMZvRb2.mjs +319 -0
  397. package/dist/messages-B_0akf3T.mjs +319 -0
  398. package/dist/messages-BaE65Wtr.mjs +319 -0
  399. package/dist/messages-BdSGtvzM.mjs +319 -0
  400. package/dist/messages-BerXSWcD.mjs +319 -0
  401. package/dist/messages-BqKaz7yB2.mjs +319 -0
  402. package/dist/messages-BrqBJ6W_2.mjs +319 -0
  403. package/dist/messages-BvgGIpxE2.mjs +319 -0
  404. package/dist/messages-BxSe3rKx.mjs +319 -0
  405. package/dist/messages-ByD9AIJL2.mjs +319 -0
  406. package/dist/messages-CDJS_Tu2.mjs +319 -0
  407. package/dist/messages-CF9R29jb.mjs +319 -0
  408. package/dist/messages-CIbK29nM.mjs +319 -0
  409. package/dist/messages-CMD0tgb2.mjs +319 -0
  410. package/dist/messages-CMW0tO_d2.mjs +319 -0
  411. package/dist/messages-CMrYQJ5x2.mjs +319 -0
  412. package/dist/messages-CQZJnkss2.mjs +319 -0
  413. package/dist/messages-CRnolvNg.mjs +319 -0
  414. package/dist/messages-CS74u2hS2.mjs +319 -0
  415. package/dist/messages-CTxao0S32.mjs +319 -0
  416. package/dist/messages-CZl83L7T.mjs +319 -0
  417. package/dist/messages-C_kloJSr.mjs +319 -0
  418. package/dist/messages-Cfe_CPBW.mjs +319 -0
  419. package/dist/messages-Ch0oiQp5.mjs +319 -0
  420. package/dist/messages-Cigiz7tI.mjs +319 -0
  421. package/dist/messages-Cjac781Z.mjs +319 -0
  422. package/dist/messages-CqVFa1ZA.mjs +319 -0
  423. package/dist/messages-CwDgZL5-.mjs +319 -0
  424. package/dist/messages-Czd64cAx.mjs +319 -0
  425. package/dist/messages-CzxMz1wI.mjs +319 -0
  426. package/dist/messages-D2SkVxgV.mjs +319 -0
  427. package/dist/messages-D4ZsN52E2.mjs +319 -0
  428. package/dist/messages-DG0aBs1m2.mjs +319 -0
  429. package/dist/messages-DIkQAMxZ2.mjs +319 -0
  430. package/dist/messages-DJBc5_b_2.mjs +319 -0
  431. package/dist/messages-DN8oOcrS.mjs +319 -0
  432. package/dist/messages-DV5yhL0q.mjs +319 -0
  433. package/dist/messages-DVI1iDTn2.mjs +319 -0
  434. package/dist/messages-DVzrCNrY.mjs +319 -0
  435. package/dist/messages-DXwJOr-H2.mjs +319 -0
  436. package/dist/messages-D_edVQrv.mjs +319 -0
  437. package/dist/messages-DbODRieP.mjs +319 -0
  438. package/dist/messages-KMQrhAva.mjs +319 -0
  439. package/dist/messages-L4NsHX-g.mjs +319 -0
  440. package/dist/messages-PPuF4CRy.mjs +319 -0
  441. package/dist/messages-UTJEPSiL.mjs +319 -0
  442. package/dist/messages-Wa5EXypv2.mjs +319 -0
  443. package/dist/messages-Wfxn9jZh.mjs +319 -0
  444. package/dist/messages-XieI4326.mjs +319 -0
  445. package/dist/messages-ZASZzduy.mjs +319 -0
  446. package/dist/messages-Z_3X1FJJ2.mjs +319 -0
  447. package/dist/messages-huyV3ICu.mjs +319 -0
  448. package/dist/messages-rd6zBwaX2.mjs +319 -0
  449. package/dist/messages-sBpTj74Q.mjs +319 -0
  450. package/dist/messages-twD0eDdc.mjs +319 -0
  451. package/dist/react.cjs +1 -1
  452. package/dist/react.mjs +25 -26
  453. package/dist/tools.cjs +1 -1
  454. package/dist/tools.mjs +3 -3
  455. package/dist/vendor.LICENSE.txt +141 -899
  456. package/package.json +12 -6
  457. package/src/components/constants/data-attributes.ts +2 -0
  458. package/src/components/dom.ts +4 -2
  459. package/src/components/i18n/locales/am/messages.json +109 -1
  460. package/src/components/i18n/locales/ar/messages.json +109 -1
  461. package/src/components/i18n/locales/az/messages.json +109 -1
  462. package/src/components/i18n/locales/bg/messages.json +109 -1
  463. package/src/components/i18n/locales/bn/messages.json +109 -1
  464. package/src/components/i18n/locales/bs/messages.json +109 -1
  465. package/src/components/i18n/locales/cs/messages.json +109 -1
  466. package/src/components/i18n/locales/da/messages.json +109 -1
  467. package/src/components/i18n/locales/de/messages.json +110 -2
  468. package/src/components/i18n/locales/dv/messages.json +109 -1
  469. package/src/components/i18n/locales/el/messages.json +109 -1
  470. package/src/components/i18n/locales/en/messages.json +108 -1
  471. package/src/components/i18n/locales/es/messages.json +109 -1
  472. package/src/components/i18n/locales/et/messages.json +109 -1
  473. package/src/components/i18n/locales/fa/messages.json +109 -1
  474. package/src/components/i18n/locales/fi/messages.json +109 -1
  475. package/src/components/i18n/locales/fil/messages.json +109 -1
  476. package/src/components/i18n/locales/fr/messages.json +110 -2
  477. package/src/components/i18n/locales/gu/messages.json +109 -1
  478. package/src/components/i18n/locales/he/messages.json +109 -1
  479. package/src/components/i18n/locales/hi/messages.json +109 -1
  480. package/src/components/i18n/locales/hr/messages.json +109 -1
  481. package/src/components/i18n/locales/hu/messages.json +109 -1
  482. package/src/components/i18n/locales/hy/messages.json +109 -1
  483. package/src/components/i18n/locales/id/messages.json +109 -1
  484. package/src/components/i18n/locales/it/messages.json +109 -1
  485. package/src/components/i18n/locales/ja/messages.json +109 -1
  486. package/src/components/i18n/locales/ka/messages.json +109 -1
  487. package/src/components/i18n/locales/km/messages.json +109 -1
  488. package/src/components/i18n/locales/kn/messages.json +109 -1
  489. package/src/components/i18n/locales/ko/messages.json +109 -1
  490. package/src/components/i18n/locales/ku/messages.json +109 -1
  491. package/src/components/i18n/locales/lo/messages.json +109 -1
  492. package/src/components/i18n/locales/lt/messages.json +109 -1
  493. package/src/components/i18n/locales/lv/messages.json +109 -1
  494. package/src/components/i18n/locales/mk/messages.json +109 -1
  495. package/src/components/i18n/locales/ml/messages.json +109 -1
  496. package/src/components/i18n/locales/mn/messages.json +109 -1
  497. package/src/components/i18n/locales/mr/messages.json +109 -1
  498. package/src/components/i18n/locales/ms/messages.json +109 -1
  499. package/src/components/i18n/locales/my/messages.json +109 -1
  500. package/src/components/i18n/locales/ne/messages.json +109 -1
  501. package/src/components/i18n/locales/nl/messages.json +110 -2
  502. package/src/components/i18n/locales/no/messages.json +109 -1
  503. package/src/components/i18n/locales/pa/messages.json +109 -1
  504. package/src/components/i18n/locales/pl/messages.json +109 -1
  505. package/src/components/i18n/locales/ps/messages.json +109 -1
  506. package/src/components/i18n/locales/pt/messages.json +109 -1
  507. package/src/components/i18n/locales/ro/messages.json +109 -1
  508. package/src/components/i18n/locales/ru/messages.json +109 -1
  509. package/src/components/i18n/locales/sd/messages.json +109 -1
  510. package/src/components/i18n/locales/si/messages.json +109 -1
  511. package/src/components/i18n/locales/sk/messages.json +109 -1
  512. package/src/components/i18n/locales/sl/messages.json +109 -1
  513. package/src/components/i18n/locales/sq/messages.json +109 -1
  514. package/src/components/i18n/locales/sr/messages.json +109 -1
  515. package/src/components/i18n/locales/sv/messages.json +109 -1
  516. package/src/components/i18n/locales/sw/messages.json +109 -1
  517. package/src/components/i18n/locales/ta/messages.json +109 -1
  518. package/src/components/i18n/locales/te/messages.json +109 -1
  519. package/src/components/i18n/locales/th/messages.json +109 -1
  520. package/src/components/i18n/locales/tr/messages.json +109 -1
  521. package/src/components/i18n/locales/ug/messages.json +109 -1
  522. package/src/components/i18n/locales/uk/messages.json +109 -1
  523. package/src/components/i18n/locales/ur/messages.json +109 -1
  524. package/src/components/i18n/locales/vi/messages.json +109 -1
  525. package/src/components/i18n/locales/yi/messages.json +109 -1
  526. package/src/components/i18n/locales/zh/messages.json +109 -1
  527. package/src/components/icons/index.ts +59 -0
  528. package/src/components/inline-tools/inline-tool-code.ts +1 -1
  529. package/src/components/modules/api/toolbar.ts +6 -4
  530. package/src/components/modules/blockEvents/index.ts +9 -0
  531. package/src/components/modules/blockManager/operations.ts +14 -1
  532. package/src/components/modules/drag/DragController.ts +24 -3
  533. package/src/components/modules/paste/handlers/files-handler.ts +41 -4
  534. package/src/components/modules/paste/index.ts +5 -1
  535. package/src/components/modules/paste/tool-registry.ts +22 -12
  536. package/src/components/modules/toolbar/blockSettings.ts +14 -2
  537. package/src/components/modules/toolbar/index.ts +49 -16
  538. package/src/components/modules/toolbar/inline/selection-validator.ts +17 -0
  539. package/src/components/modules/toolbar/plus-button.ts +4 -2
  540. package/src/components/modules/toolbar/positioning.ts +27 -0
  541. package/src/components/modules/toolbar/settings-toggler.ts +16 -5
  542. package/src/components/modules/toolbar/tooltip.ts +59 -15
  543. package/src/components/modules/ui.ts +23 -8
  544. package/src/components/ui/toolbox.ts +92 -7
  545. package/src/components/utils/data-model-transform.ts +71 -1
  546. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.const.ts +5 -4
  547. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +1 -0
  548. package/src/components/utils/popover/components/popover-item/popover-item-separator/popover-item-separator.const.ts +1 -1
  549. package/src/components/utils/popover/components/search-input/search-input.const.ts +3 -3
  550. package/src/components/utils/popover/popover-abstract.ts +137 -2
  551. package/src/components/utils/popover/popover-desktop.ts +260 -14
  552. package/src/components/utils/popover/popover-inline.ts +3 -2
  553. package/src/components/utils/popover/popover-nested-position.ts +132 -0
  554. package/src/components/utils/popover/popover-position.ts +46 -5
  555. package/src/components/utils/popover/popover.const.ts +6 -3
  556. package/src/components/utils/tooltip.ts +52 -8
  557. package/src/components/utils/top-layer.ts +137 -0
  558. package/src/playground/block-states-gallery.ts +123 -0
  559. package/src/playground/icon-gallery.ts +346 -0
  560. package/src/styles/checklist.css +70 -0
  561. package/src/styles/colors.css +666 -0
  562. package/src/styles/database.css +1176 -0
  563. package/src/styles/emoji-picker.css +58 -0
  564. package/src/styles/fonts.css +33 -0
  565. package/src/styles/image.css +1111 -0
  566. package/src/styles/isolation.css +204 -0
  567. package/src/styles/keyframes.css +62 -0
  568. package/src/styles/main.css +28 -2566
  569. package/src/styles/popover-animation.css +34 -0
  570. package/src/styles/preflight.css +283 -0
  571. package/src/styles/slash-search.css +52 -0
  572. package/src/styles/tables.css +154 -0
  573. package/src/styles/tokens.css +127 -0
  574. package/src/tools/callout/emoji-picker/index.ts +4 -2
  575. package/src/tools/code/code-keyboard.ts +70 -8
  576. package/src/tools/code/constants.ts +3 -9
  577. package/src/tools/code/dom-builder.ts +5 -1
  578. package/src/tools/code/index.ts +185 -25
  579. package/src/tools/code/language-detector.ts +47 -52
  580. package/src/tools/code/prism-applier.ts +183 -0
  581. package/src/tools/code/prism-loader.ts +197 -0
  582. package/src/tools/database/database-board-view.ts +3 -1
  583. package/src/tools/image/alt-popover.css +42 -0
  584. package/src/tools/image/alt-popover.ts +104 -0
  585. package/src/tools/image/constants.ts +25 -0
  586. package/src/tools/image/crop-editor.css +513 -0
  587. package/src/tools/image/crop-editor.ts +331 -0
  588. package/src/tools/image/crop-math.ts +117 -0
  589. package/src/tools/image/crop-modal.css +105 -0
  590. package/src/tools/image/crop-modal.ts +92 -0
  591. package/src/tools/image/empty-state.ts +407 -0
  592. package/src/tools/image/error-state.ts +69 -0
  593. package/src/tools/image/errors.ts +18 -0
  594. package/src/tools/image/i18n.ts +8 -0
  595. package/src/tools/image/index.ts +755 -0
  596. package/src/tools/image/resizer.ts +119 -0
  597. package/src/tools/image/spring.ts +16 -0
  598. package/src/tools/image/ui.ts +921 -0
  599. package/src/tools/image/uploader.ts +61 -0
  600. package/src/tools/image/uploading-state.ts +117 -0
  601. package/src/tools/index.ts +2 -0
  602. package/src/tools/toggle/constants.ts +3 -1
  603. package/src/types-internal/prismjs-components.d.ts +9 -0
  604. package/types/api/toolbar.d.ts +14 -1
  605. package/types/configs/blok-config.d.ts +24 -0
  606. package/types/tools/image.d.ts +72 -0
  607. package/types/utils/popover/popover.d.ts +27 -0
  608. package/dist/chunks/_basePickBy-6gOwWeg0.mjs +0 -166
  609. package/dist/chunks/_basePickBy-mUHvTE6c.cjs +0 -1
  610. package/dist/chunks/_baseUniq-BP5sM8qF.cjs +0 -1
  611. package/dist/chunks/_baseUniq-BcOWmEX6.mjs +0 -682
  612. package/dist/chunks/arc-kVpio4JL.mjs +0 -80
  613. package/dist/chunks/arc-lSzOinJz.cjs +0 -1
  614. package/dist/chunks/architecture-YZFGNWBL-BFcrDSEW.mjs +0 -3
  615. package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +0 -1
  616. package/dist/chunks/architectureDiagram-Q4EWVU46-CN6p4Aji.mjs +0 -4066
  617. package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +0 -36
  618. package/dist/chunks/blockDiagram-DXYQGD6D-BvZWa5Rv.mjs +0 -3074
  619. package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +0 -132
  620. package/dist/chunks/blok-CNEP3LpI.cjs +0 -16
  621. package/dist/chunks/blok-DNvzyOYn.mjs +0 -13679
  622. package/dist/chunks/c-CQrSye6K.mjs +0 -5
  623. package/dist/chunks/c-DNJHkQXQ.cjs +0 -1
  624. package/dist/chunks/c4Diagram-AHTNJAMY-Cmc2PsEs.mjs +0 -2956
  625. package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +0 -10
  626. package/dist/chunks/ccount-B7is2MU0.mjs +0 -10
  627. package/dist/chunks/ccount-DtzbJUOh.cjs +0 -1
  628. package/dist/chunks/channel-BTWFNzkv.mjs +0 -5
  629. package/dist/chunks/channel-BqhnS5zl.cjs +0 -1
  630. package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +0 -1
  631. package/dist/chunks/chunk-2KRD3SAO-DWLzBIZw.mjs +0 -20
  632. package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +0 -1
  633. package/dist/chunks/chunk-336JU56O-DbaX7hyp.mjs +0 -49
  634. package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +0 -1
  635. package/dist/chunks/chunk-426QAEUC-pmH9mm_X.mjs +0 -13
  636. package/dist/chunks/chunk-4BX2VUAB-B1LZI9QZ.mjs +0 -19
  637. package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +0 -1
  638. package/dist/chunks/chunk-4TB4RGXK-BC8qRYSD.mjs +0 -3250
  639. package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +0 -206
  640. package/dist/chunks/chunk-55IACEB6-CaLO8kWA.mjs +0 -8
  641. package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +0 -1
  642. package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +0 -62
  643. package/dist/chunks/chunk-5FUZZQ4R-DAWdfx4J.mjs +0 -3786
  644. package/dist/chunks/chunk-5PVQY5BW-7Voh8aPS.mjs +0 -1122
  645. package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +0 -2
  646. package/dist/chunks/chunk-67CJDMHE-DSEGOn_f.mjs +0 -20
  647. package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +0 -1
  648. package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +0 -1
  649. package/dist/chunks/chunk-7N4EOEYR-CnSg1Hfu.mjs +0 -29
  650. package/dist/chunks/chunk-AA7GKIK3-BmatWFnp.mjs +0 -24
  651. package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +0 -1
  652. package/dist/chunks/chunk-BSJP7CBP-BtFfqv7R.mjs +0 -83
  653. package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +0 -1
  654. package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +0 -1
  655. package/dist/chunks/chunk-CIAEETIT-nVgPUEW1.mjs +0 -20
  656. package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +0 -1
  657. package/dist/chunks/chunk-EDXVE4YY-e7599cf4.mjs +0 -26
  658. package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +0 -10
  659. package/dist/chunks/chunk-ENJZ2VHE-DaMNdqfV.mjs +0 -566
  660. package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +0 -15
  661. package/dist/chunks/chunk-FMBD7UC4-xT5c0WSd.mjs +0 -5
  662. package/dist/chunks/chunk-FOC6F5B3-AxSG6qaj.mjs +0 -20
  663. package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +0 -1
  664. package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +0 -122
  665. package/dist/chunks/chunk-ICPOFSXX-DbL0YBQf.mjs +0 -3290
  666. package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +0 -94
  667. package/dist/chunks/chunk-K5T4RW27-CYdwJMQV.mjs +0 -16372
  668. package/dist/chunks/chunk-KGLVRYIC-BwOmLwqF.mjs +0 -20
  669. package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +0 -1
  670. package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +0 -1
  671. package/dist/chunks/chunk-LIHQZDEY-Csx8-523.mjs +0 -55
  672. package/dist/chunks/chunk-ORNJ4GCN-CCDHRflI.mjs +0 -25
  673. package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +0 -1
  674. package/dist/chunks/chunk-OYMX7WX6-BAoDgMPF.mjs +0 -2038
  675. package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +0 -231
  676. package/dist/chunks/chunk-QZHKN3VN-D1myzhE_.mjs +0 -12
  677. package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +0 -1
  678. package/dist/chunks/chunk-U2HBQHQK-BXyrI_xP.mjs +0 -1875
  679. package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +0 -70
  680. package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +0 -1
  681. package/dist/chunks/chunk-X2U36JSP-CXhWYelJ.mjs +0 -68
  682. package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +0 -32
  683. package/dist/chunks/chunk-XPW4576I-DOztVf6t.mjs +0 -1146
  684. package/dist/chunks/chunk-YZCP3GAM-DrkjtME-.mjs +0 -60
  685. package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +0 -1
  686. package/dist/chunks/chunk-ZZ45TVLE-CSFFLvxb.mjs +0 -33
  687. package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +0 -1
  688. package/dist/chunks/classDiagram-6PBFFD2Q-Ci3S9iu3.mjs +0 -30
  689. package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +0 -1
  690. package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +0 -1
  691. package/dist/chunks/classDiagram-v2-HSJHXN6E-BkaFKbgJ.mjs +0 -30
  692. package/dist/chunks/clone-WSLD7bVs.mjs +0 -8
  693. package/dist/chunks/clone-_XTzxdN3.cjs +0 -1
  694. package/dist/chunks/constants-DJjFgioo.cjs +0 -451
  695. package/dist/chunks/constants-DMsOCPcF.mjs +0 -3268
  696. package/dist/chunks/core-C8BHLAAO.cjs +0 -12
  697. package/dist/chunks/core-D2KrVz4a.mjs +0 -4501
  698. package/dist/chunks/cose-bilkent-S5V4N54A-BXBidSxC.mjs +0 -2246
  699. package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +0 -1
  700. package/dist/chunks/cpp-DVBevX-J.cjs +0 -1
  701. package/dist/chunks/cpp-DnMQuZPn.mjs +0 -16
  702. package/dist/chunks/csharp-ByiKf6DR.mjs +0 -3
  703. package/dist/chunks/csharp-CHUT4JOq.cjs +0 -1
  704. package/dist/chunks/css-BqsWMbBt.mjs +0 -3
  705. package/dist/chunks/css-QEheyxtB.cjs +0 -1
  706. package/dist/chunks/dagre-C7z2UZ4M.mjs +0 -1483
  707. package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +0 -4
  708. package/dist/chunks/dagre-KV5264BT-Ct6qUqKI.mjs +0 -298
  709. package/dist/chunks/dagre-VHP8Ngkv.cjs +0 -1
  710. package/dist/chunks/dart-aYsezAEv.mjs +0 -3
  711. package/dist/chunks/dart-jPH5d8ma.cjs +0 -1
  712. package/dist/chunks/diagram-5BDNPKRD-B9hNG7ht.mjs +0 -112
  713. package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +0 -10
  714. package/dist/chunks/diagram-G4DWMVQ6-9_YOaVXe.mjs +0 -546
  715. package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +0 -24
  716. package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +0 -43
  717. package/dist/chunks/diagram-MMDJMWI5-DmStUoNk.mjs +0 -234
  718. package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +0 -24
  719. package/dist/chunks/diagram-TYMM5635-DmrkkW85.mjs +0 -144
  720. package/dist/chunks/dockerfile-1GBIWF66.mjs +0 -3
  721. package/dist/chunks/dockerfile-B2jMQOes.cjs +0 -1
  722. package/dist/chunks/engine-javascript-CYa8VRAu.mjs +0 -2373
  723. package/dist/chunks/engine-javascript-HHRWd9yA.cjs +0 -141
  724. package/dist/chunks/erDiagram-SMLLAGMA-5vkZ5DwJ.mjs +0 -1712
  725. package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +0 -85
  726. package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +0 -162
  727. package/dist/chunks/flowDiagram-DWJPFMVM-CGTiQBd7.mjs +0 -4175
  728. package/dist/chunks/ganttDiagram-T4ZO3ILL-BNtXyM0I.mjs +0 -3083
  729. package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +0 -292
  730. package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +0 -1
  731. package/dist/chunks/gitGraph-7Q5UKJZL-DxMmuJIv.mjs +0 -3
  732. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CmQR-xZp.mjs +0 -792
  733. package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +0 -106
  734. package/dist/chunks/go-4mRqLTld.mjs +0 -3
  735. package/dist/chunks/go-BX-cNLGO.cjs +0 -1
  736. package/dist/chunks/graphlib-BfwqhpXp.mjs +0 -225
  737. package/dist/chunks/graphlib-CYv_-0LK.cjs +0 -1
  738. package/dist/chunks/graphql-4Htarzhp.mjs +0 -11
  739. package/dist/chunks/graphql-BnxAS09v.cjs +0 -1
  740. package/dist/chunks/html-CAN0GHkJ.cjs +0 -1
  741. package/dist/chunks/html-DW39yhuS.mjs +0 -10
  742. package/dist/chunks/i18next-loader-CyDs2NKf.mjs +0 -35
  743. package/dist/chunks/i18next-loader-cGwOOjK3.cjs +0 -1
  744. package/dist/chunks/info-OMHHGYJF-ChWZqC0a.mjs +0 -3
  745. package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +0 -1
  746. package/dist/chunks/infoDiagram-42DDH7IO-BbV_tozh.mjs +0 -29
  747. package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +0 -2
  748. package/dist/chunks/isEmpty-BHdznGlG.cjs +0 -1
  749. package/dist/chunks/isEmpty-jlCmuYeg.mjs +0 -35
  750. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +0 -70
  751. package/dist/chunks/ishikawaDiagram-UXIWVN3A-DJBG3b-A.mjs +0 -719
  752. package/dist/chunks/java-DD_iwrM-.mjs +0 -5
  753. package/dist/chunks/java-O-rzZ2Bn.cjs +0 -1
  754. package/dist/chunks/javascript-CJBlE5PB.mjs +0 -3
  755. package/dist/chunks/javascript-z9G2vOAZ.cjs +0 -1
  756. package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +0 -139
  757. package/dist/chunks/journeyDiagram-VCZTEJTY-BdMsFn3r.mjs +0 -885
  758. package/dist/chunks/json-C_epQRuA.cjs +0 -1
  759. package/dist/chunks/json-yRGZVu2_.mjs +0 -3
  760. package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +0 -89
  761. package/dist/chunks/kanban-definition-6JOO6SKY-ncNaxcxH.mjs +0 -980
  762. package/dist/chunks/kotlin-BmkhKZGf.mjs +0 -3
  763. package/dist/chunks/kotlin-Dj7KFgV1.cjs +0 -1
  764. package/dist/chunks/latex-BeVX0E4Z.mjs +0 -5
  765. package/dist/chunks/latex-u7qVP95p.cjs +0 -1
  766. package/dist/chunks/lightweight-i18n-Bb_VS9v5.mjs +0 -237
  767. package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +0 -1
  768. package/dist/chunks/line-B7XG48Uf.cjs +0 -1
  769. package/dist/chunks/line-CWJNfvdn.mjs +0 -34
  770. package/dist/chunks/linear-BU4OjSPS.mjs +0 -289
  771. package/dist/chunks/linear-D5j5Vgij.cjs +0 -1
  772. package/dist/chunks/lua-6ceNckPi.cjs +0 -1
  773. package/dist/chunks/lua-CPnWrc7C.mjs +0 -5
  774. package/dist/chunks/markdown-DSiOSAsn.mjs +0 -3
  775. package/dist/chunks/markdown-Vce1p-mO.cjs +0 -1
  776. package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +0 -5
  777. package/dist/chunks/mdast-util-math-D42zbZda.mjs +0 -151
  778. package/dist/chunks/mermaid-C2y_3PIg.mjs +0 -3
  779. package/dist/chunks/mermaid-Cu5vPKfS.cjs +0 -1
  780. package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +0 -3
  781. package/dist/chunks/mermaid-parser.core-DBhkcRo7.mjs +0 -57
  782. package/dist/chunks/mermaid.core-GiTRPJLF.cjs +0 -10
  783. package/dist/chunks/mermaid.core-uSzF9nF1.mjs +0 -977
  784. package/dist/chunks/messages--CbdZY2w.cjs +0 -1
  785. package/dist/chunks/messages--c74ihtM.mjs +0 -212
  786. package/dist/chunks/messages-041mNyU42.mjs +0 -212
  787. package/dist/chunks/messages-1hpCmcb5.cjs +0 -1
  788. package/dist/chunks/messages-44SP7ajI.mjs +0 -212
  789. package/dist/chunks/messages-4_3WFJMy2.cjs +0 -1
  790. package/dist/chunks/messages-7NvouWKA2.mjs +0 -212
  791. package/dist/chunks/messages-ADxG1iWK2.cjs +0 -1
  792. package/dist/chunks/messages-AnuHiDPc2.mjs +0 -212
  793. package/dist/chunks/messages-B1V7UT9I.mjs +0 -212
  794. package/dist/chunks/messages-B2Q9NH4D.mjs +0 -212
  795. package/dist/chunks/messages-B3MONaxw2.cjs +0 -1
  796. package/dist/chunks/messages-B3tNgyxG2.cjs +0 -1
  797. package/dist/chunks/messages-B6j77WNV2.mjs +0 -212
  798. package/dist/chunks/messages-B91FdwB0.cjs +0 -1
  799. package/dist/chunks/messages-B9igXgiw.cjs +0 -1
  800. package/dist/chunks/messages-BB1xM_oB.cjs +0 -1
  801. package/dist/chunks/messages-BEV0lzGv2.mjs +0 -212
  802. package/dist/chunks/messages-BG749_88.mjs +0 -212
  803. package/dist/chunks/messages-BGZLiYrQ.cjs +0 -1
  804. package/dist/chunks/messages-BGpGj8nJ2.mjs +0 -212
  805. package/dist/chunks/messages-BK6gK3wu.cjs +0 -1
  806. package/dist/chunks/messages-BKmAFG9Z.cjs +0 -1
  807. package/dist/chunks/messages-BMVJq-1T.cjs +0 -1
  808. package/dist/chunks/messages-BMsqJNz0.cjs +0 -1
  809. package/dist/chunks/messages-BNYDShPm2.mjs +0 -212
  810. package/dist/chunks/messages-BSVhckNg.cjs +0 -1
  811. package/dist/chunks/messages-BUaHDggs.cjs +0 -1
  812. package/dist/chunks/messages-BUaJv5qS.cjs +0 -1
  813. package/dist/chunks/messages-BW--wNis.mjs +0 -212
  814. package/dist/chunks/messages-BXcSH14N.cjs +0 -1
  815. package/dist/chunks/messages-BYOYrUOu.cjs +0 -1
  816. package/dist/chunks/messages-BYSE1Iq2.cjs +0 -1
  817. package/dist/chunks/messages-B_Mqw9Dl2.mjs +0 -212
  818. package/dist/chunks/messages-Bb225KE6.cjs +0 -1
  819. package/dist/chunks/messages-BbYwT3FH2.mjs +0 -212
  820. package/dist/chunks/messages-Bda8jwos2.mjs +0 -212
  821. package/dist/chunks/messages-BdpFAZGZ.mjs +0 -212
  822. package/dist/chunks/messages-BiDR95AW.cjs +0 -1
  823. package/dist/chunks/messages-BkAoxm6t.cjs +0 -1
  824. package/dist/chunks/messages-BmNLNUz_.mjs +0 -212
  825. package/dist/chunks/messages-BnGtg6t4.mjs +0 -212
  826. package/dist/chunks/messages-BnXkEkD_.mjs +0 -212
  827. package/dist/chunks/messages-BpUasRQ3.cjs +0 -1
  828. package/dist/chunks/messages-BwtU06Ax.mjs +0 -212
  829. package/dist/chunks/messages-BxV8K7y42.cjs +0 -1
  830. package/dist/chunks/messages-Bxhns4Ui.cjs +0 -1
  831. package/dist/chunks/messages-ByRcwLIO.mjs +0 -212
  832. package/dist/chunks/messages-C0sxGmLV2.cjs +0 -1
  833. package/dist/chunks/messages-C5nqE8O42.cjs +0 -1
  834. package/dist/chunks/messages-C7il6l-S.cjs +0 -1
  835. package/dist/chunks/messages-CFyGEGXM2.cjs +0 -1
  836. package/dist/chunks/messages-CHBH3EQG.mjs +0 -212
  837. package/dist/chunks/messages-CIYU5iEj.mjs +0 -212
  838. package/dist/chunks/messages-CJGOmFxi.mjs +0 -212
  839. package/dist/chunks/messages-CN2yjHzW.cjs +0 -1
  840. package/dist/chunks/messages-CP7Ncgaf.mjs +0 -212
  841. package/dist/chunks/messages-CP8YKa4F.mjs +0 -212
  842. package/dist/chunks/messages-CTy_3-mw2.cjs +0 -1
  843. package/dist/chunks/messages-CUxaqK8t2.mjs +0 -212
  844. package/dist/chunks/messages-CXDk_Rlr2.mjs +0 -212
  845. package/dist/chunks/messages-CYZxR91M.mjs +0 -212
  846. package/dist/chunks/messages-C_ogasse2.cjs +0 -1
  847. package/dist/chunks/messages-CbFuceEb.cjs +0 -1
  848. package/dist/chunks/messages-CbbYb7cc.cjs +0 -1
  849. package/dist/chunks/messages-CfO5kKI72.cjs +0 -1
  850. package/dist/chunks/messages-Cgv5DuNV.cjs +0 -1
  851. package/dist/chunks/messages-Cjm7Nj1C.mjs +0 -212
  852. package/dist/chunks/messages-CjzZ6nxv.mjs +0 -212
  853. package/dist/chunks/messages-CkBrRFY02.cjs +0 -1
  854. package/dist/chunks/messages-CpVtcYqo.mjs +0 -212
  855. package/dist/chunks/messages-CpppvIiu.cjs +0 -1
  856. package/dist/chunks/messages-CumomgDd2.mjs +0 -212
  857. package/dist/chunks/messages-CvCb4dCy.mjs +0 -212
  858. package/dist/chunks/messages-D3DNj1jh.mjs +0 -212
  859. package/dist/chunks/messages-D7d2U-tx.mjs +0 -212
  860. package/dist/chunks/messages-D8-vyZ2V.cjs +0 -1
  861. package/dist/chunks/messages-DFWhnXF12.mjs +0 -212
  862. package/dist/chunks/messages-DIpVfyX-2.cjs +0 -1
  863. package/dist/chunks/messages-DJBeEI7G.cjs +0 -1
  864. package/dist/chunks/messages-DJr1x1i2.mjs +0 -212
  865. package/dist/chunks/messages-DN7PU5Un2.mjs +0 -212
  866. package/dist/chunks/messages-DR8nFHdw2.cjs +0 -1
  867. package/dist/chunks/messages-DT5Ux3el.cjs +0 -1
  868. package/dist/chunks/messages-DVh_Bwwq.mjs +0 -212
  869. package/dist/chunks/messages-DVwHxslb.mjs +0 -212
  870. package/dist/chunks/messages-DZ1Pfnl0.mjs +0 -212
  871. package/dist/chunks/messages-Da2SYMf52.cjs +0 -1
  872. package/dist/chunks/messages-DaaqkvOz2.cjs +0 -1
  873. package/dist/chunks/messages-DdiqfVCc.cjs +0 -1
  874. package/dist/chunks/messages-DfZe7SKZ.cjs +0 -1
  875. package/dist/chunks/messages-DkJ0bcqu.cjs +0 -1
  876. package/dist/chunks/messages-DkmG49t8.cjs +0 -1
  877. package/dist/chunks/messages-Do3QV7QW.mjs +0 -212
  878. package/dist/chunks/messages-Do4o9ckW.cjs +0 -1
  879. package/dist/chunks/messages-DrbTe09r.cjs +0 -1
  880. package/dist/chunks/messages-Drxwphbg2.mjs +0 -212
  881. package/dist/chunks/messages-DtgIZDlN.cjs +0 -1
  882. package/dist/chunks/messages-DtloGH1v2.mjs +0 -212
  883. package/dist/chunks/messages-Du0zg7UM.mjs +0 -212
  884. package/dist/chunks/messages-DuA_D23n.mjs +0 -212
  885. package/dist/chunks/messages-DwKRw3jP2.mjs +0 -212
  886. package/dist/chunks/messages-DxCaGN-Q2.cjs +0 -1
  887. package/dist/chunks/messages-DxpBJ5ZY.cjs +0 -1
  888. package/dist/chunks/messages-DyWu9_0D.cjs +0 -1
  889. package/dist/chunks/messages-DzAYvMm72.mjs +0 -212
  890. package/dist/chunks/messages-Dzmge-lj.mjs +0 -212
  891. package/dist/chunks/messages-ETNAE7WV.mjs +0 -212
  892. package/dist/chunks/messages-F4r6ruTX2.mjs +0 -212
  893. package/dist/chunks/messages-FNQdT9Da.mjs +0 -212
  894. package/dist/chunks/messages-FYGyC6zk2.mjs +0 -212
  895. package/dist/chunks/messages-Hg0BECWK.cjs +0 -1
  896. package/dist/chunks/messages-JlduXweH2.cjs +0 -1
  897. package/dist/chunks/messages-Km2PU_o7.cjs +0 -1
  898. package/dist/chunks/messages-MgJnGL9X2.cjs +0 -1
  899. package/dist/chunks/messages-PIoKW4js2.cjs +0 -1
  900. package/dist/chunks/messages-VEm9mp5H.cjs +0 -1
  901. package/dist/chunks/messages-WgwkG5PL2.cjs +0 -1
  902. package/dist/chunks/messages-X46KAUoI.cjs +0 -1
  903. package/dist/chunks/messages-ZS1Ro8ZB.mjs +0 -212
  904. package/dist/chunks/messages-ZZd1ckSO2.cjs +0 -1
  905. package/dist/chunks/messages-dyhHlgE9.mjs +0 -212
  906. package/dist/chunks/messages-fAEKtYXO.mjs +0 -212
  907. package/dist/chunks/messages-hhptyJO3.mjs +0 -212
  908. package/dist/chunks/messages-hk4dinYI.mjs +0 -212
  909. package/dist/chunks/messages-knSLxvI6.mjs +0 -212
  910. package/dist/chunks/messages-lORohDgW2.mjs +0 -212
  911. package/dist/chunks/messages-mvnz8DvU.mjs +0 -212
  912. package/dist/chunks/messages-pHWKsrcZ.mjs +0 -212
  913. package/dist/chunks/messages-q2McAyOz.mjs +0 -212
  914. package/dist/chunks/messages-r62SI44r.mjs +0 -212
  915. package/dist/chunks/messages-uFdMhLbJ.mjs +0 -212
  916. package/dist/chunks/messages-vRqPeNM_.cjs +0 -1
  917. package/dist/chunks/messages-vhq442qv.cjs +0 -1
  918. package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +0 -1
  919. package/dist/chunks/micromark-extension-math-x3wvkKaN.mjs +0 -169
  920. package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +0 -96
  921. package/dist/chunks/mindmap-definition-QFDTVHPH-BfOyKFtC.mjs +0 -1013
  922. package/dist/chunks/notifier-B-wErJJB.mjs +0 -73
  923. package/dist/chunks/notifier-CwnFVNdD.cjs +0 -1
  924. package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +0 -1
  925. package/dist/chunks/objectWithoutProperties-Dci1-l7D.mjs +0 -23
  926. package/dist/chunks/one-light-D2mpnHEP.cjs +0 -1
  927. package/dist/chunks/one-light-bqnXiA0I.mjs +0 -4
  928. package/dist/chunks/ordinal-CN3SDQau.mjs +0 -65
  929. package/dist/chunks/ordinal-DFFZs5-y.cjs +0 -1
  930. package/dist/chunks/packet-4T2RLAQJ-7DW35MGl.mjs +0 -3
  931. package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +0 -1
  932. package/dist/chunks/php-BMavm1CR.cjs +0 -1
  933. package/dist/chunks/php-Dejkjxb5.mjs +0 -18
  934. package/dist/chunks/pie-ZZUOXDRM-Dtuq0w2k.mjs +0 -3
  935. package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +0 -1
  936. package/dist/chunks/pieDiagram-DEJITSTG-B1sjciNi.mjs +0 -179
  937. package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +0 -30
  938. package/dist/chunks/python-Dcoit5Q5.cjs +0 -1
  939. package/dist/chunks/python-tdu-oDWx.mjs +0 -3
  940. package/dist/chunks/quadrantDiagram-34T5L4WZ-CV838wf-.mjs +0 -1960
  941. package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +0 -7
  942. package/dist/chunks/r-BdDCwgEs.cjs +0 -1
  943. package/dist/chunks/r-D8fCyoTl.mjs +0 -5
  944. package/dist/chunks/radar-PYXPWWZC-Bz4lwSbg.mjs +0 -3
  945. package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +0 -1
  946. package/dist/chunks/requirementDiagram-MS252O5E-CA3LUAVZ.mjs +0 -2224
  947. package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +0 -84
  948. package/dist/chunks/ruby-DHm8_lqY.cjs +0 -1
  949. package/dist/chunks/ruby-Z7wCYjey.mjs +0 -33
  950. package/dist/chunks/rust-Cdm0j4IC.cjs +0 -1
  951. package/dist/chunks/rust-D5IQAarB.mjs +0 -3
  952. package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +0 -10
  953. package/dist/chunks/sankeyDiagram-XADWPNL6-Cw8wB2YO.mjs +0 -909
  954. package/dist/chunks/scala-CbcMYkuq.mjs +0 -3
  955. package/dist/chunks/scala-Tb1u_9W3.cjs +0 -1
  956. package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +0 -157
  957. package/dist/chunks/sequenceDiagram-FGHM5R23-pm0MaeXC.mjs +0 -4181
  958. package/dist/chunks/shellscript-CZefq5l_.mjs +0 -3
  959. package/dist/chunks/shellscript-D6KsENaG.cjs +0 -1
  960. package/dist/chunks/sql-BlpbD7FB.cjs +0 -1
  961. package/dist/chunks/sql-C4ibVEDs.mjs +0 -3
  962. package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +0 -1
  963. package/dist/chunks/stateDiagram-FHFEXIEX-CMcsvm0M.mjs +0 -218
  964. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-C4nZGNBm.mjs +0 -28
  965. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +0 -1
  966. package/dist/chunks/swift-Drpgj9J0.mjs +0 -3
  967. package/dist/chunks/swift-DubrdZus.cjs +0 -1
  968. package/dist/chunks/timeline-definition-GMOUNBTQ-DwHKPj3j.mjs +0 -1084
  969. package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +0 -120
  970. package/dist/chunks/tools-DPov06L-.mjs +0 -11458
  971. package/dist/chunks/tools-NAqHj-Cy.cjs +0 -9
  972. package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +0 -1
  973. package/dist/chunks/treeView-SZITEDCU-DPG9FJ6Q.mjs +0 -3
  974. package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +0 -1
  975. package/dist/chunks/treemap-W4RFUUIX-N4tZJR1-.mjs +0 -3
  976. package/dist/chunks/typescript-BKtlqLze.cjs +0 -1
  977. package/dist/chunks/typescript-Bnpf4OG6.mjs +0 -5
  978. package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +0 -34
  979. package/dist/chunks/vennDiagram-DHZGUBPP-Gfy0QWtB.mjs +0 -1876
  980. package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +0 -1
  981. package/dist/chunks/vitesse-dark-dflHsflb.mjs +0 -4
  982. package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +0 -1
  983. package/dist/chunks/wardley-RL74JXVD-C7Hzc5y2.mjs +0 -3
  984. package/dist/chunks/wardleyDiagram-NUSXRM2D-ChZiL3a0.mjs +0 -594
  985. package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +0 -20
  986. package/dist/chunks/xml-C1PUeKuL.mjs +0 -5
  987. package/dist/chunks/xml-CwiH0x4E.cjs +0 -1
  988. package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +0 -7
  989. package/dist/chunks/xychartDiagram-5P7HB3ND-t_dhLiOA.mjs +0 -2017
  990. package/dist/chunks/yaml-CecI9urB.mjs +0 -3
  991. package/dist/chunks/yaml-CkVxfQ4c.cjs +0 -1
  992. package/dist/messages--zgIPYtb.mjs +0 -212
  993. package/dist/messages-4jULpVvw.mjs +0 -212
  994. package/dist/messages-AbwSlRf_.mjs +0 -212
  995. package/dist/messages-B-dl7Pwb2.mjs +0 -212
  996. package/dist/messages-B3rCRhb1.mjs +0 -212
  997. package/dist/messages-B73L8nKc2.mjs +0 -212
  998. package/dist/messages-BAjsD2Vm2.mjs +0 -212
  999. package/dist/messages-BBodSb5B2.mjs +0 -212
  1000. package/dist/messages-BTpn6H9x2.mjs +0 -212
  1001. package/dist/messages-BWb0GjTj2.mjs +0 -212
  1002. package/dist/messages-BbCgnri12.mjs +0 -212
  1003. package/dist/messages-Bfon_Y3q.mjs +0 -212
  1004. package/dist/messages-BhOtow9J2.mjs +0 -212
  1005. package/dist/messages-BoB7m0uu2.mjs +0 -212
  1006. package/dist/messages-BsOZPjeg.mjs +0 -212
  1007. package/dist/messages-BuzKUYPV.mjs +0 -212
  1008. package/dist/messages-BzOKMdMQ.mjs +0 -212
  1009. package/dist/messages-C2H3PeQW2.mjs +0 -212
  1010. package/dist/messages-C5KNzSTk.mjs +0 -212
  1011. package/dist/messages-CIDYjE6l.mjs +0 -212
  1012. package/dist/messages-CJmyF5ye.mjs +0 -212
  1013. package/dist/messages-CTwiYb2a2.mjs +0 -212
  1014. package/dist/messages-CUHoJaDO.mjs +0 -212
  1015. package/dist/messages-CVeuqUjQ2.mjs +0 -212
  1016. package/dist/messages-CW75b4sz.mjs +0 -212
  1017. package/dist/messages-CXd7YeWV.mjs +0 -212
  1018. package/dist/messages-CjlYkunD.mjs +0 -212
  1019. package/dist/messages-CrGx64yd.mjs +0 -212
  1020. package/dist/messages-Ct0jbgHd.mjs +0 -212
  1021. package/dist/messages-CtKrCYD1.mjs +0 -212
  1022. package/dist/messages-Cu2eLjfJ.mjs +0 -212
  1023. package/dist/messages-CvwQ-fK_2.mjs +0 -212
  1024. package/dist/messages-Cy6UYN9b.mjs +0 -212
  1025. package/dist/messages-D01vnfA9.mjs +0 -212
  1026. package/dist/messages-D0BAV45W.mjs +0 -212
  1027. package/dist/messages-D5LGpdga.mjs +0 -212
  1028. package/dist/messages-DATK4ftv.mjs +0 -212
  1029. package/dist/messages-DEl77Urv2.mjs +0 -212
  1030. package/dist/messages-DHNjM2nv2.mjs +0 -212
  1031. package/dist/messages-DMW8b_sO.mjs +0 -212
  1032. package/dist/messages-DNmgANKr.mjs +0 -212
  1033. package/dist/messages-DQaa3cEM.mjs +0 -212
  1034. package/dist/messages-DSlD4bV9.mjs +0 -212
  1035. package/dist/messages-DTzbkXFt.mjs +0 -212
  1036. package/dist/messages-DbZihxtV.mjs +0 -212
  1037. package/dist/messages-DeE8fyKQ.mjs +0 -212
  1038. package/dist/messages-Dg-TpO2S2.mjs +0 -212
  1039. package/dist/messages-DgP82LzF.mjs +0 -212
  1040. package/dist/messages-Dh3Vt7WC.mjs +0 -212
  1041. package/dist/messages-DiVVyZD22.mjs +0 -212
  1042. package/dist/messages-DpRnGjoe.mjs +0 -212
  1043. package/dist/messages-DqZmrFaa2.mjs +0 -212
  1044. package/dist/messages-Dra9Fz5Q.mjs +0 -212
  1045. package/dist/messages-DuPBRgEF2.mjs +0 -212
  1046. package/dist/messages-DuxEyAY-2.mjs +0 -212
  1047. package/dist/messages-FmJD6lHR2.mjs +0 -212
  1048. package/dist/messages-ONielGl92.mjs +0 -212
  1049. package/dist/messages-RzgUqCGb2.mjs +0 -212
  1050. package/dist/messages-U22AKGKs.mjs +0 -212
  1051. package/dist/messages-XufeeRfO.mjs +0 -212
  1052. package/dist/messages-fprUm7SO2.mjs +0 -212
  1053. package/dist/messages-gFNdz3Tn2.mjs +0 -212
  1054. package/dist/messages-h_n5GBm6.mjs +0 -212
  1055. package/dist/messages-oOogIpsL2.mjs +0 -212
  1056. package/dist/messages-otwg3KcK.mjs +0 -212
  1057. package/dist/messages-rDDoBMWb.mjs +0 -212
  1058. package/dist/messages-trQPxZIu.mjs +0 -212
  1059. package/src/tools/code/highlight-applier.ts +0 -229
  1060. package/src/tools/code/shiki-loader.ts +0 -135
  1061. /package/dist/chunks/{am-CyXvGFRE.cjs → am-CGgVs8Sg.cjs} +0 -0
  1062. /package/dist/chunks/{am-JTszxMum.mjs → am-TVbhxPdQ.mjs} +0 -0
  1063. /package/dist/chunks/{ar-CME8m7Ug.mjs → ar-ClSvzRAM.mjs} +0 -0
  1064. /package/dist/chunks/{ar-BbusVfTp.cjs → ar-nFMIw80i.cjs} +0 -0
  1065. /package/dist/chunks/{array-BMXfsgb2.cjs → array-B193TMZz.cjs} +0 -0
  1066. /package/dist/chunks/{array-B4E6ednJ.mjs → array-ChMzkF5S.mjs} +0 -0
  1067. /package/dist/chunks/{az-D7MMnw6r.cjs → az-Cb6l6ydx.cjs} +0 -0
  1068. /package/dist/chunks/{az-CU1BXEnK.mjs → az-Df0rChHp.mjs} +0 -0
  1069. /package/dist/chunks/{bg-C3H2Qh_2.cjs → bg-BdZUTRFn.cjs} +0 -0
  1070. /package/dist/chunks/{bg-C1QKbOOv.mjs → bg-DLJ0oZ8E.mjs} +0 -0
  1071. /package/dist/chunks/{bn-BGOycYTM.cjs → bn-CneGelWq.cjs} +0 -0
  1072. /package/dist/chunks/{bn-DbDE4DPn.mjs → bn-rM6ek4mO.mjs} +0 -0
  1073. /package/dist/chunks/{bs-5jPxlF97.mjs → bs-16ZwjsQl.mjs} +0 -0
  1074. /package/dist/chunks/{bs-C7amuK1D.cjs → bs-XAmTKQeJ.cjs} +0 -0
  1075. /package/dist/chunks/{cs-BEZB2qcc.mjs → cs-C-zvdtZ-.mjs} +0 -0
  1076. /package/dist/chunks/{cs-BUD3Muxp.cjs → cs-DKYguxBC.cjs} +0 -0
  1077. /package/dist/chunks/{cytoscape.esm-CWkCAUzT.mjs → cytoscape.esm-BsvVxiuI.mjs} +0 -0
  1078. /package/dist/chunks/{cytoscape.esm-CjWrb5SM.cjs → cytoscape.esm-gv01QJ5y.cjs} +0 -0
  1079. /package/dist/chunks/{da-DXZ2uOgL.mjs → da-D1HzIKpF.mjs} +0 -0
  1080. /package/dist/chunks/{da-CO2FYbLa.cjs → da-DiLbdYqu.cjs} +0 -0
  1081. /package/dist/chunks/{de-B8nkOjfD.cjs → de-ClyUjm_W.cjs} +0 -0
  1082. /package/dist/chunks/{de-D4FxC1Yq.mjs → de-Dpmwqjaw.mjs} +0 -0
  1083. /package/dist/chunks/{default-DPWNu2LM.mjs → default-D5Eal3bU.mjs} +0 -0
  1084. /package/dist/chunks/{default-DP8dtTxC.cjs → default-D9azvkQ_.cjs} +0 -0
  1085. /package/dist/chunks/{defaultLocale-BxWls4I1.cjs → defaultLocale-CSsowJXG.cjs} +0 -0
  1086. /package/dist/chunks/{defaultLocale-BYV2aVaI.mjs → defaultLocale-DiiR34KB.mjs} +0 -0
  1087. /package/dist/chunks/{dist-CKM-fjTE.mjs → dist-BFuUZzlT.mjs} +0 -0
  1088. /package/dist/chunks/{dist-CxdzFxpy.cjs → dist-DS4hv48u.cjs} +0 -0
  1089. /package/dist/chunks/{el-D2ILhp1-.cjs → el-CFVhJTIb.cjs} +0 -0
  1090. /package/dist/chunks/{el-DwIVDdku.mjs → el-DQ-dU1wp.mjs} +0 -0
  1091. /package/dist/chunks/{es-DXxnOS9P.cjs → es-BlajxX2r.cjs} +0 -0
  1092. /package/dist/chunks/{es-DlO4MePt.mjs → es-Dhzgzei6.mjs} +0 -0
  1093. /package/dist/chunks/{et-BBSbb8pL.mjs → et-CnhEwclb.mjs} +0 -0
  1094. /package/dist/chunks/{et-mT4xnDc7.cjs → et-ggACA1d9.cjs} +0 -0
  1095. /package/dist/chunks/{fa-DsJou-pw.mjs → fa-B4zSY96K.mjs} +0 -0
  1096. /package/dist/chunks/{fa-D9CUFSHX.cjs → fa-DuYd0CQw.cjs} +0 -0
  1097. /package/dist/chunks/{fi-CsMgo7Wk.mjs → fi-B525ro09.mjs} +0 -0
  1098. /package/dist/chunks/{fi-DpCqdl_1.cjs → fi-D3-4SL4-.cjs} +0 -0
  1099. /package/dist/chunks/{fil-BjeZREJI.cjs → fil-Cs84dmNe.cjs} +0 -0
  1100. /package/dist/chunks/{fil-Dlw8sEta.mjs → fil-DPB6Byn0.mjs} +0 -0
  1101. /package/dist/chunks/{fr-DYmwW1y1.cjs → fr-C8Z2PE7u.cjs} +0 -0
  1102. /package/dist/chunks/{fr-DeapG5NH.mjs → fr-CbMgtPHe.mjs} +0 -0
  1103. /package/dist/chunks/{gu-klAnA_ns.mjs → gu-BDs1p7Uo.mjs} +0 -0
  1104. /package/dist/chunks/{gu-4g6NA9h8.cjs → gu-CPQY3Iyq.cjs} +0 -0
  1105. /package/dist/chunks/{he-2H5DcbO0.cjs → he-BkMGwSM7.cjs} +0 -0
  1106. /package/dist/chunks/{he-9TdyXc1J.mjs → he-DWa_-C46.mjs} +0 -0
  1107. /package/dist/chunks/{hi-DVOss_Zp.mjs → hi-Buu8Rua9.mjs} +0 -0
  1108. /package/dist/chunks/{hi-Dvb4O5oj.cjs → hi-ClQSrRZz.cjs} +0 -0
  1109. /package/dist/chunks/{hr-CXo-QFLf.mjs → hr-WosECnFF.mjs} +0 -0
  1110. /package/dist/chunks/{hr-B4Y5vULZ.cjs → hr-wrh48ogh.cjs} +0 -0
  1111. /package/dist/chunks/{hu-D3Pi7CJx.cjs → hu-BSVMkfs2.cjs} +0 -0
  1112. /package/dist/chunks/{hu-B6uKq-NU.mjs → hu-CeBjtxCd.mjs} +0 -0
  1113. /package/dist/chunks/{hy-DZ74SDlC.cjs → hy-CwF59lJj.cjs} +0 -0
  1114. /package/dist/chunks/{hy-B7CWqbUW.mjs → hy-DwfBE3Yt.mjs} +0 -0
  1115. /package/dist/chunks/{i18next-CkovSPO7.cjs → i18next-C14J6E5L.cjs} +0 -0
  1116. /package/dist/chunks/{i18next-BFvS_Rnh.mjs → i18next-DjO-l2Ee.mjs} +0 -0
  1117. /package/dist/chunks/{id-C5d2QGEQ.mjs → id-CBV5ivYd.mjs} +0 -0
  1118. /package/dist/chunks/{id-WfjZeYKN.cjs → id-DN2KcAmG.cjs} +0 -0
  1119. /package/dist/chunks/{init-C3Dyaaly.mjs → init-C2Iht9jH.mjs} +0 -0
  1120. /package/dist/chunks/{init-BvlcnoG2.cjs → init-DMaknHdL.cjs} +0 -0
  1121. /package/dist/chunks/{isArrayLikeObject-CnaR8YJm.cjs → isArrayLikeObject-Bk7ImDHR.cjs} +0 -0
  1122. /package/dist/chunks/{isArrayLikeObject-B-1mfvNK.mjs → isArrayLikeObject-CyB7POJY.mjs} +0 -0
  1123. /package/dist/chunks/{it-hqsqt6f7.cjs → it-CSt1S7SQ.cjs} +0 -0
  1124. /package/dist/chunks/{it-BgPXC2_F.mjs → it-CU5gg8BZ.mjs} +0 -0
  1125. /package/dist/chunks/{ja-BwLgKsdH.cjs → ja-BbwATm6F.cjs} +0 -0
  1126. /package/dist/chunks/{ja-CQ7ujOz3.mjs → ja-khPKQhMG.mjs} +0 -0
  1127. /package/dist/chunks/{ka-xoKako16.cjs → ka-Cqnq4zZT.cjs} +0 -0
  1128. /package/dist/chunks/{ka-DAPmSm_-.mjs → ka-DN17rDOq.mjs} +0 -0
  1129. /package/dist/chunks/{katex-_C7fvrbX.cjs → katex-D_RH6O9V.cjs} +0 -0
  1130. /package/dist/chunks/{katex-Bbz34ZLq.mjs → katex-thO7aa9b.mjs} +0 -0
  1131. /package/dist/chunks/{km-BJ9H-RbD.mjs → km-BbS9HEwx.mjs} +0 -0
  1132. /package/dist/chunks/{km-D7Fl8wAA.cjs → km-COh3mhzp.cjs} +0 -0
  1133. /package/dist/chunks/{kn-CthdB8vH.mjs → kn-7TPoJJQt.mjs} +0 -0
  1134. /package/dist/chunks/{kn-Ckju1oeq.cjs → kn-CX062fVg.cjs} +0 -0
  1135. /package/dist/chunks/{ko-DbEA41LU.mjs → ko-CDI2MnWL.mjs} +0 -0
  1136. /package/dist/chunks/{ko-Dt1tQEjC.cjs → ko-gSw_U9kC.cjs} +0 -0
  1137. /package/dist/chunks/{ku-B_j9qSrv.mjs → ku-DONc_aap.mjs} +0 -0
  1138. /package/dist/chunks/{ku-_i2C5XD5.cjs → ku-DnvmAkID.cjs} +0 -0
  1139. /package/dist/chunks/{lo-DfEpgG9m.cjs → lo-BrwlEjmE.cjs} +0 -0
  1140. /package/dist/chunks/{lo-DSklR1Zs.mjs → lo-PtNU87QX.mjs} +0 -0
  1141. /package/dist/chunks/{lt-BwLILIED.cjs → lt-Bw969G31.cjs} +0 -0
  1142. /package/dist/chunks/{lt-C9aVbfRt.mjs → lt-CV9PgETS.mjs} +0 -0
  1143. /package/dist/chunks/{lv-DLwMSEc0.mjs → lv-CFPT5CoC.mjs} +0 -0
  1144. /package/dist/chunks/{lv-DdrYab3x.cjs → lv-DhwZOfiA.cjs} +0 -0
  1145. /package/dist/chunks/{micromark-factory-space-BnsBDplI.cjs → micromark-factory-space-CsUhZvC1.cjs} +0 -0
  1146. /package/dist/chunks/{micromark-factory-space-C6wz33de.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
  1147. /package/dist/chunks/{mk-D96bSjMK.mjs → mk-5waYEn6e.mjs} +0 -0
  1148. /package/dist/chunks/{mk-CsPHE4cO.cjs → mk-vuwbN_RA.cjs} +0 -0
  1149. /package/dist/chunks/{ml-CAsiw8BP.cjs → ml-DQZZm6v3.cjs} +0 -0
  1150. /package/dist/chunks/{ml-D1Ek94RG.mjs → ml-iK4LpGaW.mjs} +0 -0
  1151. /package/dist/chunks/{mn-Db6DwHPv.cjs → mn-Dz3r2r3T.cjs} +0 -0
  1152. /package/dist/chunks/{mn-CyNCFOYP.mjs → mn-nfQCBqsj.mjs} +0 -0
  1153. /package/dist/chunks/{mr-CaA3xXVf.mjs → mr-8ddBHqrW.mjs} +0 -0
  1154. /package/dist/chunks/{mr-BBAuoEIQ.cjs → mr-BDjve7Md.cjs} +0 -0
  1155. /package/dist/chunks/{ms-Cfv7BOEG.cjs → ms-2boGmWFn.cjs} +0 -0
  1156. /package/dist/chunks/{ms-IZU-A3Qk.mjs → ms-BRxHmUVO.mjs} +0 -0
  1157. /package/dist/chunks/{my-C-AQLGIp.mjs → my-Bq-MP3br.mjs} +0 -0
  1158. /package/dist/chunks/{my-DOLHceI8.cjs → my-BtRZdE5q.cjs} +0 -0
  1159. /package/dist/chunks/{native-DbFHGXp1.cjs → native-Bok_u8yD.cjs} +0 -0
  1160. /package/dist/chunks/{native-CarRLbbJ.mjs → native-DIGOFhyn.mjs} +0 -0
  1161. /package/dist/chunks/{ne-LaymXAjm.mjs → ne-B6JfM08W.mjs} +0 -0
  1162. /package/dist/chunks/{ne-B2gHspK_.cjs → ne-C9oc_I3v.cjs} +0 -0
  1163. /package/dist/chunks/{nl-C5ezxTkA.cjs → nl-CkIGPyM6.cjs} +0 -0
  1164. /package/dist/chunks/{nl-Dm1eVwTA.mjs → nl-NuO8CW66.mjs} +0 -0
  1165. /package/dist/chunks/{no-B2WicGhz.mjs → no-BtwrqS-b.mjs} +0 -0
  1166. /package/dist/chunks/{no-D4hjenPs.cjs → no-De7tM2WX.cjs} +0 -0
  1167. /package/dist/chunks/{pa-CemLebw7.cjs → pa-Bm15OLTz.cjs} +0 -0
  1168. /package/dist/chunks/{pa-ry61xHq9.mjs → pa-ClSxjHFF.mjs} +0 -0
  1169. /package/dist/chunks/{path-CLcQoP7n.cjs → path-CFQyJ4S5.cjs} +0 -0
  1170. /package/dist/chunks/{path-Crax6eds.mjs → path-iPyWZTLQ.mjs} +0 -0
  1171. /package/dist/chunks/{pl-DzCnx7eR.mjs → pl-C-aTCeRd.mjs} +0 -0
  1172. /package/dist/chunks/{pl-D_sFAkCs.cjs → pl-D80QrSlq.cjs} +0 -0
  1173. /package/dist/chunks/{ps-DKXG6JHY.mjs → ps-B8wPRrcC.mjs} +0 -0
  1174. /package/dist/chunks/{ps-ygHHO68A.cjs → ps-ySfeV5NE.cjs} +0 -0
  1175. /package/dist/chunks/{pt-e09B0rEd.mjs → pt-8tijWt3B.mjs} +0 -0
  1176. /package/dist/chunks/{pt-x_mmaTtD.cjs → pt-Bigoi5oj.cjs} +0 -0
  1177. /package/dist/chunks/{ro-HNnYR5pB.mjs → ro-BiUSkkwp.mjs} +0 -0
  1178. /package/dist/chunks/{ro-CLGSgHzJ.cjs → ro-Dvtjmd-W.cjs} +0 -0
  1179. /package/dist/chunks/{rough.esm-BaIXPgTh.cjs → rough.esm-DC-UFdM0.cjs} +0 -0
  1180. /package/dist/chunks/{rough.esm-CChKUjNP.mjs → rough.esm-buj-m5wB.mjs} +0 -0
  1181. /package/dist/chunks/{ru-LpaLXWmO.cjs → ru-dq73Ra3e.cjs} +0 -0
  1182. /package/dist/chunks/{ru-D_jTWgK8.mjs → ru-qkCthz2J.mjs} +0 -0
  1183. /package/dist/chunks/{sd-B5PS8K1I.cjs → sd-BhtQCaFq.cjs} +0 -0
  1184. /package/dist/chunks/{sd-B7bgXBin.mjs → sd-DfoXSEBK.mjs} +0 -0
  1185. /package/dist/chunks/{si-BjMoO5xu.cjs → si-CWG8h4tD.cjs} +0 -0
  1186. /package/dist/chunks/{si-aQCsTBIp.mjs → si-RPCp-GrG.mjs} +0 -0
  1187. /package/dist/chunks/{sk-pQPYnDDU.cjs → sk-Bkag9oKD.cjs} +0 -0
  1188. /package/dist/chunks/{sk-Bjrct9rr.mjs → sk-CVRHQjYN.mjs} +0 -0
  1189. /package/dist/chunks/{sl-B_yalM3h.cjs → sl-BhupPCcO.cjs} +0 -0
  1190. /package/dist/chunks/{sl-DvS57kCB.mjs → sl-Clf3YXji.mjs} +0 -0
  1191. /package/dist/chunks/{sq-gzZkHXFJ.cjs → sq-Bosym4Xb.cjs} +0 -0
  1192. /package/dist/chunks/{sq-BexoWiW2.mjs → sq-C-nwTgWs.mjs} +0 -0
  1193. /package/dist/chunks/{sr-CXir4bLq.mjs → sr-BiElo1CU.mjs} +0 -0
  1194. /package/dist/chunks/{sr-O4v1KJY1.cjs → sr-DFPGZJ0s.cjs} +0 -0
  1195. /package/dist/chunks/{src-d9yswOqA.cjs → src-al3Kn9PA.cjs} +0 -0
  1196. /package/dist/chunks/{src-yreeH1hr.mjs → src-gZQLeVvM.mjs} +0 -0
  1197. /package/dist/chunks/{sv-D0tEFwN7.cjs → sv-CiYmSxqX.cjs} +0 -0
  1198. /package/dist/chunks/{sv-B_Owhjrs.mjs → sv-DVztafBI.mjs} +0 -0
  1199. /package/dist/chunks/{sw-DE8oPVEt.cjs → sw-CMbHoINv.cjs} +0 -0
  1200. /package/dist/chunks/{sw-B4p84FCO.mjs → sw-CgJk20G2.mjs} +0 -0
  1201. /package/dist/chunks/{ta-BCVLtFMU.cjs → ta-BrC1o95Z.cjs} +0 -0
  1202. /package/dist/chunks/{ta-BU_-jQ33.mjs → ta-rqChn3y2.mjs} +0 -0
  1203. /package/dist/chunks/{te-BISdOeGS.cjs → te-DAKpWpi8.cjs} +0 -0
  1204. /package/dist/chunks/{te-5FGke4TK.mjs → te-LIsqeDyD.mjs} +0 -0
  1205. /package/dist/chunks/{th-DFyekAQ3.mjs → th-Bm6lDr_S.mjs} +0 -0
  1206. /package/dist/chunks/{th-CJXhSA-L.cjs → th-D0CG2M2k.cjs} +0 -0
  1207. /package/dist/chunks/{tr-BjTvmhJt.cjs → tr-Bw_nVU1b.cjs} +0 -0
  1208. /package/dist/chunks/{tr-C7Zj3lX4.mjs → tr-g8oLvvcP.mjs} +0 -0
  1209. /package/dist/chunks/{types-BNvlbr9u.mjs → types-DrdCPGbk.mjs} +0 -0
  1210. /package/dist/chunks/{types-BQX8SD8Q.cjs → types-GPfn5gE2.cjs} +0 -0
  1211. /package/dist/chunks/{ug-DsQjxbOa.cjs → ug-DvC-UnxD.cjs} +0 -0
  1212. /package/dist/chunks/{ug-DJwD0iui.mjs → ug-zVaKVoWE.mjs} +0 -0
  1213. /package/dist/chunks/{uk-BPzbNIjw.cjs → uk-Cx32rUi7.cjs} +0 -0
  1214. /package/dist/chunks/{uk-hkOj8kWN.mjs → uk-DGVBUwum.mjs} +0 -0
  1215. /package/dist/chunks/{ur-Cy5A8nFG.mjs → ur-7wbChoVl.mjs} +0 -0
  1216. /package/dist/chunks/{ur-Do8k1hR-.cjs → ur-BMh2seDu.cjs} +0 -0
  1217. /package/dist/chunks/{vi-CCTEx9XR.cjs → vi-4TUS0GSi.cjs} +0 -0
  1218. /package/dist/chunks/{vi-CEt0cTzQ.mjs → vi-CLg1e4-a.mjs} +0 -0
  1219. /package/dist/chunks/{zh-Ive4on8E.cjs → zh-DZtmJNDR.cjs} +0 -0
  1220. /package/dist/chunks/{zh-BwQjLCGO.mjs → zh-LvpOPMNT.mjs} +0 -0
@@ -0,0 +1,3074 @@
1
+ import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
+ import { T as t, c as n, h as r, i } from "./chunk-5PVQY5BW-DVKx7m4a.mjs";
3
+ import { t as a } from "./clone-DeEumpiC.mjs";
4
+ import { t as o } from "./graphlib-Cpp6Todw.mjs";
5
+ import { g as s, h as c, p as l } from "./src-gZQLeVvM.mjs";
6
+ import { D as u, L as d, a as f, b as p, c as m, nt as h, s as g, w as _, y as v } from "./chunk-ICPOFSXX-Dn5WbEeN.mjs";
7
+ import { t as y } from "./channel-1VaVTmSI.mjs";
8
+ import "./dist-BFuUZzlT.mjs";
9
+ import { t as b } from "./line-zarcRAiW.mjs";
10
+ import { n as x } from "./chunk-U2HBQHQK-DLyzqElq.mjs";
11
+ import { t as S } from "./chunk-FMBD7UC4-CUTvay8e.mjs";
12
+ import { n as C, t as w } from "./chunk-BSJP7CBP-BHijZ5f8.mjs";
13
+ import { n as T, t as E } from "./chunk-ZZ45TVLE-DyYus02Y.mjs";
14
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.mjs
15
+ var D, O, k = (function() {
16
+ var t = /* @__PURE__ */ c(function(e, t, n, r) {
17
+ for (n = n || {}, r = e.length; r--; n[e[r]] = t);
18
+ return n;
19
+ }, "o"), n = [1, 15], r = [1, 7], i = [1, 13], a = [1, 14], o = [1, 19], s = [1, 16], l = [1, 17], u = [1, 18], d = [8, 30], f = [
20
+ 8,
21
+ 10,
22
+ 21,
23
+ 28,
24
+ 29,
25
+ 30,
26
+ 31,
27
+ 39,
28
+ 43,
29
+ 46
30
+ ], p = [1, 23], m = [1, 24], h = [
31
+ 8,
32
+ 10,
33
+ 15,
34
+ 16,
35
+ 21,
36
+ 28,
37
+ 29,
38
+ 30,
39
+ 31,
40
+ 39,
41
+ 43,
42
+ 46
43
+ ], g = [
44
+ 8,
45
+ 10,
46
+ 15,
47
+ 16,
48
+ 21,
49
+ 27,
50
+ 28,
51
+ 29,
52
+ 30,
53
+ 31,
54
+ 39,
55
+ 43,
56
+ 46
57
+ ], _ = [1, 49], v = {
58
+ trace: /* @__PURE__ */ c(function() {}, "trace"),
59
+ yy: {},
60
+ symbols_: {
61
+ error: 2,
62
+ spaceLines: 3,
63
+ SPACELINE: 4,
64
+ NL: 5,
65
+ separator: 6,
66
+ SPACE: 7,
67
+ EOF: 8,
68
+ start: 9,
69
+ BLOCK_DIAGRAM_KEY: 10,
70
+ document: 11,
71
+ stop: 12,
72
+ statement: 13,
73
+ link: 14,
74
+ LINK: 15,
75
+ START_LINK: 16,
76
+ LINK_LABEL: 17,
77
+ STR: 18,
78
+ nodeStatement: 19,
79
+ columnsStatement: 20,
80
+ SPACE_BLOCK: 21,
81
+ blockStatement: 22,
82
+ classDefStatement: 23,
83
+ cssClassStatement: 24,
84
+ styleStatement: 25,
85
+ node: 26,
86
+ SIZE: 27,
87
+ COLUMNS: 28,
88
+ "id-block": 29,
89
+ end: 30,
90
+ NODE_ID: 31,
91
+ nodeShapeNLabel: 32,
92
+ dirList: 33,
93
+ DIR: 34,
94
+ NODE_DSTART: 35,
95
+ NODE_DEND: 36,
96
+ BLOCK_ARROW_START: 37,
97
+ BLOCK_ARROW_END: 38,
98
+ classDef: 39,
99
+ CLASSDEF_ID: 40,
100
+ CLASSDEF_STYLEOPTS: 41,
101
+ DEFAULT: 42,
102
+ class: 43,
103
+ CLASSENTITY_IDS: 44,
104
+ STYLECLASS: 45,
105
+ style: 46,
106
+ STYLE_ENTITY_IDS: 47,
107
+ STYLE_DEFINITION_DATA: 48,
108
+ $accept: 0,
109
+ $end: 1
110
+ },
111
+ terminals_: {
112
+ 2: "error",
113
+ 4: "SPACELINE",
114
+ 5: "NL",
115
+ 7: "SPACE",
116
+ 8: "EOF",
117
+ 10: "BLOCK_DIAGRAM_KEY",
118
+ 15: "LINK",
119
+ 16: "START_LINK",
120
+ 17: "LINK_LABEL",
121
+ 18: "STR",
122
+ 21: "SPACE_BLOCK",
123
+ 27: "SIZE",
124
+ 28: "COLUMNS",
125
+ 29: "id-block",
126
+ 30: "end",
127
+ 31: "NODE_ID",
128
+ 34: "DIR",
129
+ 35: "NODE_DSTART",
130
+ 36: "NODE_DEND",
131
+ 37: "BLOCK_ARROW_START",
132
+ 38: "BLOCK_ARROW_END",
133
+ 39: "classDef",
134
+ 40: "CLASSDEF_ID",
135
+ 41: "CLASSDEF_STYLEOPTS",
136
+ 42: "DEFAULT",
137
+ 43: "class",
138
+ 44: "CLASSENTITY_IDS",
139
+ 45: "STYLECLASS",
140
+ 46: "style",
141
+ 47: "STYLE_ENTITY_IDS",
142
+ 48: "STYLE_DEFINITION_DATA"
143
+ },
144
+ productions_: [
145
+ 0,
146
+ [3, 1],
147
+ [3, 2],
148
+ [3, 2],
149
+ [6, 1],
150
+ [6, 1],
151
+ [6, 1],
152
+ [9, 3],
153
+ [12, 1],
154
+ [12, 1],
155
+ [12, 2],
156
+ [12, 2],
157
+ [11, 1],
158
+ [11, 2],
159
+ [14, 1],
160
+ [14, 4],
161
+ [13, 1],
162
+ [13, 1],
163
+ [13, 1],
164
+ [13, 1],
165
+ [13, 1],
166
+ [13, 1],
167
+ [13, 1],
168
+ [19, 3],
169
+ [19, 2],
170
+ [19, 1],
171
+ [20, 1],
172
+ [22, 4],
173
+ [22, 3],
174
+ [26, 1],
175
+ [26, 2],
176
+ [33, 1],
177
+ [33, 2],
178
+ [32, 3],
179
+ [32, 4],
180
+ [23, 3],
181
+ [23, 3],
182
+ [24, 3],
183
+ [25, 3]
184
+ ],
185
+ performAction: /* @__PURE__ */ c(function(t, n, r, i, a, o, s) {
186
+ var c = o.length - 1;
187
+ switch (a) {
188
+ case 4:
189
+ i.getLogger().debug("Rule: separator (NL) ");
190
+ break;
191
+ case 5:
192
+ i.getLogger().debug("Rule: separator (Space) ");
193
+ break;
194
+ case 6:
195
+ i.getLogger().debug("Rule: separator (EOF) ");
196
+ break;
197
+ case 7:
198
+ i.getLogger().debug("Rule: hierarchy: ", o[c - 1]), i.setHierarchy(o[c - 1]);
199
+ break;
200
+ case 8:
201
+ i.getLogger().debug("Stop NL ");
202
+ break;
203
+ case 9:
204
+ i.getLogger().debug("Stop EOF ");
205
+ break;
206
+ case 10:
207
+ i.getLogger().debug("Stop NL2 ");
208
+ break;
209
+ case 11:
210
+ i.getLogger().debug("Stop EOF2 ");
211
+ break;
212
+ case 12:
213
+ i.getLogger().debug("Rule: statement: ", o[c]), typeof o[c].length == "number" ? this.$ = o[c] : this.$ = [o[c]];
214
+ break;
215
+ case 13:
216
+ i.getLogger().debug("Rule: statement #2: ", o[c - 1]), this.$ = [o[c - 1]].concat(o[c]);
217
+ break;
218
+ case 14:
219
+ i.getLogger().debug("Rule: link: ", o[c], t), this.$ = {
220
+ edgeTypeStr: o[c],
221
+ label: ""
222
+ };
223
+ break;
224
+ case 15:
225
+ i.getLogger().debug("Rule: LABEL link: ", o[c - 3], o[c - 1], o[c]), this.$ = {
226
+ edgeTypeStr: o[c],
227
+ label: o[c - 1]
228
+ };
229
+ break;
230
+ case 18:
231
+ let n = parseInt(o[c]);
232
+ this.$ = {
233
+ id: i.generateId(),
234
+ type: "space",
235
+ label: "",
236
+ width: n,
237
+ children: []
238
+ };
239
+ break;
240
+ case 23:
241
+ i.getLogger().debug("Rule: (nodeStatement link node) ", o[c - 2], o[c - 1], o[c], " typestr: ", o[c - 1].edgeTypeStr);
242
+ let r = i.edgeStrToEdgeData(o[c - 1].edgeTypeStr);
243
+ this.$ = [
244
+ {
245
+ id: o[c - 2].id,
246
+ label: o[c - 2].label,
247
+ type: o[c - 2].type,
248
+ directions: o[c - 2].directions
249
+ },
250
+ {
251
+ id: o[c - 2].id + "-" + o[c].id,
252
+ start: o[c - 2].id,
253
+ end: o[c].id,
254
+ label: o[c - 1].label,
255
+ type: "edge",
256
+ directions: o[c].directions,
257
+ arrowTypeEnd: r,
258
+ arrowTypeStart: "arrow_open"
259
+ },
260
+ {
261
+ id: o[c].id,
262
+ label: o[c].label,
263
+ type: i.typeStr2Type(o[c].typeStr),
264
+ directions: o[c].directions
265
+ }
266
+ ];
267
+ break;
268
+ case 24:
269
+ i.getLogger().debug("Rule: nodeStatement (abc88 node size) ", o[c - 1], o[c]), this.$ = {
270
+ id: o[c - 1].id,
271
+ label: o[c - 1].label,
272
+ type: i.typeStr2Type(o[c - 1].typeStr),
273
+ directions: o[c - 1].directions,
274
+ widthInColumns: parseInt(o[c], 10)
275
+ };
276
+ break;
277
+ case 25:
278
+ i.getLogger().debug("Rule: nodeStatement (node) ", o[c]), this.$ = {
279
+ id: o[c].id,
280
+ label: o[c].label,
281
+ type: i.typeStr2Type(o[c].typeStr),
282
+ directions: o[c].directions,
283
+ widthInColumns: 1
284
+ };
285
+ break;
286
+ case 26:
287
+ i.getLogger().debug("APA123", this ? this : "na"), i.getLogger().debug("COLUMNS: ", o[c]), this.$ = {
288
+ type: "column-setting",
289
+ columns: o[c] === "auto" ? -1 : parseInt(o[c])
290
+ };
291
+ break;
292
+ case 27:
293
+ i.getLogger().debug("Rule: id-block statement : ", o[c - 2], o[c - 1]), i.generateId(), this.$ = e(e({}, o[c - 2]), {}, {
294
+ type: "composite",
295
+ children: o[c - 1]
296
+ });
297
+ break;
298
+ case 28:
299
+ i.getLogger().debug("Rule: blockStatement : ", o[c - 2], o[c - 1], o[c]), this.$ = {
300
+ id: i.generateId(),
301
+ type: "composite",
302
+ label: "",
303
+ children: o[c - 1]
304
+ };
305
+ break;
306
+ case 29:
307
+ i.getLogger().debug("Rule: node (NODE_ID separator): ", o[c]), this.$ = { id: o[c] };
308
+ break;
309
+ case 30:
310
+ i.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", o[c - 1], o[c]), this.$ = {
311
+ id: o[c - 1],
312
+ label: o[c].label,
313
+ typeStr: o[c].typeStr,
314
+ directions: o[c].directions
315
+ };
316
+ break;
317
+ case 31:
318
+ i.getLogger().debug("Rule: dirList: ", o[c]), this.$ = [o[c]];
319
+ break;
320
+ case 32:
321
+ i.getLogger().debug("Rule: dirList: ", o[c - 1], o[c]), this.$ = [o[c - 1]].concat(o[c]);
322
+ break;
323
+ case 33:
324
+ i.getLogger().debug("Rule: nodeShapeNLabel: ", o[c - 2], o[c - 1], o[c]), this.$ = {
325
+ typeStr: o[c - 2] + o[c],
326
+ label: o[c - 1]
327
+ };
328
+ break;
329
+ case 34:
330
+ i.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", o[c - 3], o[c - 2], " #3:", o[c - 1], o[c]), this.$ = {
331
+ typeStr: o[c - 3] + o[c],
332
+ label: o[c - 2],
333
+ directions: o[c - 1]
334
+ };
335
+ break;
336
+ case 35:
337
+ case 36:
338
+ this.$ = {
339
+ type: "classDef",
340
+ id: o[c - 1].trim(),
341
+ css: o[c].trim()
342
+ };
343
+ break;
344
+ case 37:
345
+ this.$ = {
346
+ type: "applyClass",
347
+ id: o[c - 1].trim(),
348
+ styleClass: o[c].trim()
349
+ };
350
+ break;
351
+ case 38:
352
+ this.$ = {
353
+ type: "applyStyles",
354
+ id: o[c - 1].trim(),
355
+ stylesStr: o[c].trim()
356
+ };
357
+ break;
358
+ }
359
+ }, "anonymous"),
360
+ table: [
361
+ {
362
+ 9: 1,
363
+ 10: [1, 2]
364
+ },
365
+ { 1: [3] },
366
+ {
367
+ 10: n,
368
+ 11: 3,
369
+ 13: 4,
370
+ 19: 5,
371
+ 20: 6,
372
+ 21: r,
373
+ 22: 8,
374
+ 23: 9,
375
+ 24: 10,
376
+ 25: 11,
377
+ 26: 12,
378
+ 28: i,
379
+ 29: a,
380
+ 31: o,
381
+ 39: s,
382
+ 43: l,
383
+ 46: u
384
+ },
385
+ { 8: [1, 20] },
386
+ t(d, [2, 12], {
387
+ 13: 4,
388
+ 19: 5,
389
+ 20: 6,
390
+ 22: 8,
391
+ 23: 9,
392
+ 24: 10,
393
+ 25: 11,
394
+ 26: 12,
395
+ 11: 21,
396
+ 10: n,
397
+ 21: r,
398
+ 28: i,
399
+ 29: a,
400
+ 31: o,
401
+ 39: s,
402
+ 43: l,
403
+ 46: u
404
+ }),
405
+ t(f, [2, 16], {
406
+ 14: 22,
407
+ 15: p,
408
+ 16: m
409
+ }),
410
+ t(f, [2, 17]),
411
+ t(f, [2, 18]),
412
+ t(f, [2, 19]),
413
+ t(f, [2, 20]),
414
+ t(f, [2, 21]),
415
+ t(f, [2, 22]),
416
+ t(h, [2, 25], { 27: [1, 25] }),
417
+ t(f, [2, 26]),
418
+ {
419
+ 19: 26,
420
+ 26: 12,
421
+ 31: o
422
+ },
423
+ {
424
+ 10: n,
425
+ 11: 27,
426
+ 13: 4,
427
+ 19: 5,
428
+ 20: 6,
429
+ 21: r,
430
+ 22: 8,
431
+ 23: 9,
432
+ 24: 10,
433
+ 25: 11,
434
+ 26: 12,
435
+ 28: i,
436
+ 29: a,
437
+ 31: o,
438
+ 39: s,
439
+ 43: l,
440
+ 46: u
441
+ },
442
+ {
443
+ 40: [1, 28],
444
+ 42: [1, 29]
445
+ },
446
+ { 44: [1, 30] },
447
+ { 47: [1, 31] },
448
+ t(g, [2, 29], {
449
+ 32: 32,
450
+ 35: [1, 33],
451
+ 37: [1, 34]
452
+ }),
453
+ { 1: [2, 7] },
454
+ t(d, [2, 13]),
455
+ {
456
+ 26: 35,
457
+ 31: o
458
+ },
459
+ { 31: [2, 14] },
460
+ { 17: [1, 36] },
461
+ t(h, [2, 24]),
462
+ {
463
+ 10: n,
464
+ 11: 37,
465
+ 13: 4,
466
+ 14: 22,
467
+ 15: p,
468
+ 16: m,
469
+ 19: 5,
470
+ 20: 6,
471
+ 21: r,
472
+ 22: 8,
473
+ 23: 9,
474
+ 24: 10,
475
+ 25: 11,
476
+ 26: 12,
477
+ 28: i,
478
+ 29: a,
479
+ 31: o,
480
+ 39: s,
481
+ 43: l,
482
+ 46: u
483
+ },
484
+ { 30: [1, 38] },
485
+ { 41: [1, 39] },
486
+ { 41: [1, 40] },
487
+ { 45: [1, 41] },
488
+ { 48: [1, 42] },
489
+ t(g, [2, 30]),
490
+ { 18: [1, 43] },
491
+ { 18: [1, 44] },
492
+ t(h, [2, 23]),
493
+ { 18: [1, 45] },
494
+ { 30: [1, 46] },
495
+ t(f, [2, 28]),
496
+ t(f, [2, 35]),
497
+ t(f, [2, 36]),
498
+ t(f, [2, 37]),
499
+ t(f, [2, 38]),
500
+ { 36: [1, 47] },
501
+ {
502
+ 33: 48,
503
+ 34: _
504
+ },
505
+ { 15: [1, 50] },
506
+ t(f, [2, 27]),
507
+ t(g, [2, 33]),
508
+ { 38: [1, 51] },
509
+ {
510
+ 33: 52,
511
+ 34: _,
512
+ 38: [2, 31]
513
+ },
514
+ { 31: [2, 15] },
515
+ t(g, [2, 34]),
516
+ { 38: [2, 32] }
517
+ ],
518
+ defaultActions: {
519
+ 20: [2, 7],
520
+ 23: [2, 14],
521
+ 50: [2, 15],
522
+ 52: [2, 32]
523
+ },
524
+ parseError: /* @__PURE__ */ c(function(e, t) {
525
+ if (t.recoverable) this.trace(e);
526
+ else {
527
+ var n = Error(e);
528
+ throw n.hash = t, n;
529
+ }
530
+ }, "parseError"),
531
+ parse: /* @__PURE__ */ c(function(e) {
532
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
533
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
534
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
535
+ var v = h.yylloc;
536
+ a.push(v);
537
+ var y = h.options && h.options.ranges;
538
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
539
+ function b(e) {
540
+ n.length -= 2 * e, i.length -= e, a.length -= e;
541
+ }
542
+ c(b, "popStack");
543
+ function x() {
544
+ var e = r.pop() || h.lex() || p;
545
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
546
+ }
547
+ c(x, "lex");
548
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
549
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
550
+ var M = "";
551
+ for (O in j = [], o[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
552
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
553
+ text: h.match,
554
+ token: this.terminals_[S] || S,
555
+ line: h.yylineno,
556
+ loc: v,
557
+ expected: j
558
+ });
559
+ }
560
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
561
+ switch (T[0]) {
562
+ case 1:
563
+ n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, s = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
564
+ break;
565
+ case 2:
566
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
567
+ first_line: a[a.length - (k || 1)].first_line,
568
+ last_line: a[a.length - 1].last_line,
569
+ first_column: a[a.length - (k || 1)].first_column,
570
+ last_column: a[a.length - 1].last_column
571
+ }, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
572
+ s,
573
+ u,
574
+ l,
575
+ g.yy,
576
+ T[1],
577
+ i,
578
+ a
579
+ ].concat(m)), E !== void 0) return E;
580
+ k && (n = n.slice(0, -1 * k * 2), i = i.slice(0, -1 * k), a = a.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), i.push(D.$), a.push(D._$), A = o[n[n.length - 2]][n[n.length - 1]], n.push(A);
581
+ break;
582
+ case 3: return !0;
583
+ }
584
+ }
585
+ return !0;
586
+ }, "parse")
587
+ };
588
+ v.lexer = /* @__PURE__ */ (function() {
589
+ return {
590
+ EOF: 1,
591
+ parseError: /* @__PURE__ */ c(function(e, t) {
592
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
593
+ else throw Error(e);
594
+ }, "parseError"),
595
+ setInput: /* @__PURE__ */ c(function(e, t) {
596
+ 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 = {
597
+ first_line: 1,
598
+ first_column: 0,
599
+ last_line: 1,
600
+ last_column: 0
601
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
602
+ }, "setInput"),
603
+ input: /* @__PURE__ */ c(function() {
604
+ var e = this._input[0];
605
+ 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;
606
+ }, "input"),
607
+ unput: /* @__PURE__ */ c(function(e) {
608
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
609
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
610
+ var r = this.match.split(/(?:\r\n?|\n)/g);
611
+ 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);
612
+ var i = this.yylloc.range;
613
+ return this.yylloc = {
614
+ first_line: this.yylloc.first_line,
615
+ last_line: this.yylineno + 1,
616
+ first_column: this.yylloc.first_column,
617
+ 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
618
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
619
+ }, "unput"),
620
+ more: /* @__PURE__ */ c(function() {
621
+ return this._more = !0, this;
622
+ }, "more"),
623
+ reject: /* @__PURE__ */ c(function() {
624
+ if (this.options.backtrack_lexer) this._backtrack = !0;
625
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
626
+ text: "",
627
+ token: null,
628
+ line: this.yylineno
629
+ });
630
+ return this;
631
+ }, "reject"),
632
+ less: /* @__PURE__ */ c(function(e) {
633
+ this.unput(this.match.slice(e));
634
+ }, "less"),
635
+ pastInput: /* @__PURE__ */ c(function() {
636
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
637
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
638
+ }, "pastInput"),
639
+ upcomingInput: /* @__PURE__ */ c(function() {
640
+ var e = this.match;
641
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
642
+ }, "upcomingInput"),
643
+ showPosition: /* @__PURE__ */ c(function() {
644
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
645
+ return e + this.upcomingInput() + "\n" + t + "^";
646
+ }, "showPosition"),
647
+ test_match: /* @__PURE__ */ c(function(e, t) {
648
+ var n, r, i;
649
+ if (this.options.backtrack_lexer && (i = {
650
+ yylineno: this.yylineno,
651
+ yylloc: {
652
+ first_line: this.yylloc.first_line,
653
+ last_line: this.last_line,
654
+ first_column: this.yylloc.first_column,
655
+ last_column: this.yylloc.last_column
656
+ },
657
+ yytext: this.yytext,
658
+ match: this.match,
659
+ matches: this.matches,
660
+ matched: this.matched,
661
+ yyleng: this.yyleng,
662
+ offset: this.offset,
663
+ _more: this._more,
664
+ _input: this._input,
665
+ yy: this.yy,
666
+ conditionStack: this.conditionStack.slice(0),
667
+ done: this.done
668
+ }, 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 = {
669
+ first_line: this.yylloc.last_line,
670
+ last_line: this.yylineno + 1,
671
+ first_column: this.yylloc.last_column,
672
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
673
+ }, 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;
674
+ if (this._backtrack) {
675
+ for (var a in i) this[a] = i[a];
676
+ return !1;
677
+ }
678
+ return !1;
679
+ }, "test_match"),
680
+ next: /* @__PURE__ */ c(function() {
681
+ if (this.done) return this.EOF;
682
+ this._input || (this.done = !0);
683
+ var e, t, n, r;
684
+ this._more || (this.yytext = "", this.match = "");
685
+ 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)) {
686
+ if (t = n, r = a, this.options.backtrack_lexer) {
687
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
688
+ if (this._backtrack) {
689
+ t = !1;
690
+ continue;
691
+ } else return !1;
692
+ } else if (!this.options.flex) break;
693
+ }
694
+ 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.\n" + this.showPosition(), {
695
+ text: "",
696
+ token: null,
697
+ line: this.yylineno
698
+ });
699
+ }, "next"),
700
+ lex: /* @__PURE__ */ c(function() {
701
+ return this.next() || this.lex();
702
+ }, "lex"),
703
+ begin: /* @__PURE__ */ c(function(e) {
704
+ this.conditionStack.push(e);
705
+ }, "begin"),
706
+ popState: /* @__PURE__ */ c(function() {
707
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
708
+ }, "popState"),
709
+ _currentRules: /* @__PURE__ */ c(function() {
710
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
711
+ }, "_currentRules"),
712
+ topState: /* @__PURE__ */ c(function(e) {
713
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
714
+ }, "topState"),
715
+ pushState: /* @__PURE__ */ c(function(e) {
716
+ this.begin(e);
717
+ }, "pushState"),
718
+ stateStackSize: /* @__PURE__ */ c(function() {
719
+ return this.conditionStack.length;
720
+ }, "stateStackSize"),
721
+ options: {},
722
+ performAction: /* @__PURE__ */ c(function(e, t, n, r) {
723
+ switch (n) {
724
+ case 0: return e.getLogger().debug("Found block-beta"), 10;
725
+ case 1: return e.getLogger().debug("Found id-block"), 29;
726
+ case 2: return e.getLogger().debug("Found block"), 10;
727
+ case 3:
728
+ e.getLogger().debug(".", t.yytext);
729
+ break;
730
+ case 4:
731
+ e.getLogger().debug("_", t.yytext);
732
+ break;
733
+ case 5: return 5;
734
+ case 6: return t.yytext = -1, 28;
735
+ case 7: return t.yytext = t.yytext.replace(/columns\s+/, ""), e.getLogger().debug("COLUMNS (LEX)", t.yytext), 28;
736
+ case 8:
737
+ this.pushState("md_string");
738
+ break;
739
+ case 9: return "MD_STR";
740
+ case 10:
741
+ this.popState();
742
+ break;
743
+ case 11:
744
+ this.pushState("string");
745
+ break;
746
+ case 12:
747
+ e.getLogger().debug("LEX: POPPING STR:", t.yytext), this.popState();
748
+ break;
749
+ case 13: return e.getLogger().debug("LEX: STR end:", t.yytext), "STR";
750
+ case 14: return t.yytext = t.yytext.replace(/space\:/, ""), e.getLogger().debug("SPACE NUM (LEX)", t.yytext), 21;
751
+ case 15: return t.yytext = "1", e.getLogger().debug("COLUMNS (LEX)", t.yytext), 21;
752
+ case 16: return 42;
753
+ case 17: return "LINKSTYLE";
754
+ case 18: return "INTERPOLATE";
755
+ case 19: return this.pushState("CLASSDEF"), 39;
756
+ case 20: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
757
+ case 21: return this.popState(), this.pushState("CLASSDEFID"), 40;
758
+ case 22: return this.popState(), 41;
759
+ case 23: return this.pushState("CLASS"), 43;
760
+ case 24: return this.popState(), this.pushState("CLASS_STYLE"), 44;
761
+ case 25: return this.popState(), 45;
762
+ case 26: return this.pushState("STYLE_STMNT"), 46;
763
+ case 27: return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
764
+ case 28: return this.popState(), 48;
765
+ case 29: return this.pushState("acc_title"), "acc_title";
766
+ case 30: return this.popState(), "acc_title_value";
767
+ case 31: return this.pushState("acc_descr"), "acc_descr";
768
+ case 32: return this.popState(), "acc_descr_value";
769
+ case 33:
770
+ this.pushState("acc_descr_multiline");
771
+ break;
772
+ case 34:
773
+ this.popState();
774
+ break;
775
+ case 35: return "acc_descr_multiline_value";
776
+ case 36: return 30;
777
+ case 37: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
778
+ case 38: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
779
+ case 39: return this.popState(), e.getLogger().debug("Lex: ))"), "NODE_DEND";
780
+ case 40: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
781
+ case 41: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
782
+ case 42: return this.popState(), e.getLogger().debug("Lex: (-"), "NODE_DEND";
783
+ case 43: return this.popState(), e.getLogger().debug("Lex: -)"), "NODE_DEND";
784
+ case 44: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
785
+ case 45: return this.popState(), e.getLogger().debug("Lex: ]]"), "NODE_DEND";
786
+ case 46: return this.popState(), e.getLogger().debug("Lex: ("), "NODE_DEND";
787
+ case 47: return this.popState(), e.getLogger().debug("Lex: ])"), "NODE_DEND";
788
+ case 48: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
789
+ case 49: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
790
+ case 50: return this.popState(), e.getLogger().debug("Lex: )]"), "NODE_DEND";
791
+ case 51: return this.popState(), e.getLogger().debug("Lex: )"), "NODE_DEND";
792
+ case 52: return this.popState(), e.getLogger().debug("Lex: ]>"), "NODE_DEND";
793
+ case 53: return this.popState(), e.getLogger().debug("Lex: ]"), "NODE_DEND";
794
+ case 54: return e.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
795
+ case 55: return e.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
796
+ case 56: return e.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
797
+ case 57: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
798
+ case 58: return e.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
799
+ case 59: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
800
+ case 60: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
801
+ case 61: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
802
+ case 62: return e.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
803
+ case 63: return e.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
804
+ case 64: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
805
+ case 65: return this.pushState("NODE"), 35;
806
+ case 66: return this.pushState("NODE"), 35;
807
+ case 67: return this.pushState("NODE"), 35;
808
+ case 68: return this.pushState("NODE"), 35;
809
+ case 69: return this.pushState("NODE"), 35;
810
+ case 70: return this.pushState("NODE"), 35;
811
+ case 71: return this.pushState("NODE"), 35;
812
+ case 72: return e.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
813
+ case 73: return this.pushState("BLOCK_ARROW"), e.getLogger().debug("LEX ARR START"), 37;
814
+ case 74: return e.getLogger().debug("Lex: NODE_ID", t.yytext), 31;
815
+ case 75: return e.getLogger().debug("Lex: EOF", t.yytext), 8;
816
+ case 76:
817
+ this.pushState("md_string");
818
+ break;
819
+ case 77:
820
+ this.pushState("md_string");
821
+ break;
822
+ case 78: return "NODE_DESCR";
823
+ case 79:
824
+ this.popState();
825
+ break;
826
+ case 80:
827
+ e.getLogger().debug("Lex: Starting string"), this.pushState("string");
828
+ break;
829
+ case 81:
830
+ e.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
831
+ break;
832
+ case 82: return e.getLogger().debug("LEX: NODE_DESCR:", t.yytext), "NODE_DESCR";
833
+ case 83:
834
+ e.getLogger().debug("LEX POPPING"), this.popState();
835
+ break;
836
+ case 84:
837
+ e.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
838
+ break;
839
+ case 85: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (right): dir:", t.yytext), "DIR";
840
+ case 86: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (left):", t.yytext), "DIR";
841
+ case 87: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (x):", t.yytext), "DIR";
842
+ case 88: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (y):", t.yytext), "DIR";
843
+ case 89: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (up):", t.yytext), "DIR";
844
+ case 90: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (down):", t.yytext), "DIR";
845
+ case 91: return t.yytext = "]>", e.getLogger().debug("Lex (ARROW_DIR end):", t.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
846
+ case 92: return e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
847
+ case 93: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
848
+ case 94: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
849
+ case 95: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
850
+ case 96: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
851
+ case 97: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
852
+ case 98: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
853
+ case 99:
854
+ this.pushState("md_string");
855
+ break;
856
+ case 100: return e.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
857
+ case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
858
+ case 102: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
859
+ case 103: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
860
+ case 104: return e.getLogger().debug("Lex: COLON", t.yytext), t.yytext = t.yytext.slice(1), 27;
861
+ }
862
+ }, "anonymous"),
863
+ rules: [
864
+ /^(?:block-beta\b)/,
865
+ /^(?:block:)/,
866
+ /^(?:block\b)/,
867
+ /^(?:[\s]+)/,
868
+ /^(?:[\n]+)/,
869
+ /^(?:((\u000D\u000A)|(\u000A)))/,
870
+ /^(?:columns\s+auto\b)/,
871
+ /^(?:columns\s+[\d]+)/,
872
+ /^(?:["][`])/,
873
+ /^(?:[^`"]+)/,
874
+ /^(?:[`]["])/,
875
+ /^(?:["])/,
876
+ /^(?:["])/,
877
+ /^(?:[^"]*)/,
878
+ /^(?:space[:]\d+)/,
879
+ /^(?:space\b)/,
880
+ /^(?:default\b)/,
881
+ /^(?:linkStyle\b)/,
882
+ /^(?:interpolate\b)/,
883
+ /^(?:classDef\s+)/,
884
+ /^(?:DEFAULT\s+)/,
885
+ /^(?:\w+\s+)/,
886
+ /^(?:[^\n]*)/,
887
+ /^(?:class\s+)/,
888
+ /^(?:(\w+)+((,\s*\w+)*))/,
889
+ /^(?:[^\n]*)/,
890
+ /^(?:style\s+)/,
891
+ /^(?:(\w+)+((,\s*\w+)*))/,
892
+ /^(?:[^\n]*)/,
893
+ /^(?:accTitle\s*:\s*)/,
894
+ /^(?:(?!\n||)*[^\n]*)/,
895
+ /^(?:accDescr\s*:\s*)/,
896
+ /^(?:(?!\n||)*[^\n]*)/,
897
+ /^(?:accDescr\s*\{\s*)/,
898
+ /^(?:[\}])/,
899
+ /^(?:[^\}]*)/,
900
+ /^(?:end\b\s*)/,
901
+ /^(?:\(\(\()/,
902
+ /^(?:\)\)\))/,
903
+ /^(?:[\)]\))/,
904
+ /^(?:\}\})/,
905
+ /^(?:\})/,
906
+ /^(?:\(-)/,
907
+ /^(?:-\))/,
908
+ /^(?:\(\()/,
909
+ /^(?:\]\])/,
910
+ /^(?:\()/,
911
+ /^(?:\]\))/,
912
+ /^(?:\\\])/,
913
+ /^(?:\/\])/,
914
+ /^(?:\)\])/,
915
+ /^(?:[\)])/,
916
+ /^(?:\]>)/,
917
+ /^(?:[\]])/,
918
+ /^(?:-\))/,
919
+ /^(?:\(-)/,
920
+ /^(?:\)\))/,
921
+ /^(?:\))/,
922
+ /^(?:\(\(\()/,
923
+ /^(?:\(\()/,
924
+ /^(?:\{\{)/,
925
+ /^(?:\{)/,
926
+ /^(?:>)/,
927
+ /^(?:\(\[)/,
928
+ /^(?:\()/,
929
+ /^(?:\[\[)/,
930
+ /^(?:\[\|)/,
931
+ /^(?:\[\()/,
932
+ /^(?:\)\)\))/,
933
+ /^(?:\[\\)/,
934
+ /^(?:\[\/)/,
935
+ /^(?:\[\\)/,
936
+ /^(?:\[)/,
937
+ /^(?:<\[)/,
938
+ /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,
939
+ /^(?:$)/,
940
+ /^(?:["][`])/,
941
+ /^(?:["][`])/,
942
+ /^(?:[^`"]+)/,
943
+ /^(?:[`]["])/,
944
+ /^(?:["])/,
945
+ /^(?:["])/,
946
+ /^(?:[^"]+)/,
947
+ /^(?:["])/,
948
+ /^(?:\]>\s*\()/,
949
+ /^(?:,?\s*right\s*)/,
950
+ /^(?:,?\s*left\s*)/,
951
+ /^(?:,?\s*x\s*)/,
952
+ /^(?:,?\s*y\s*)/,
953
+ /^(?:,?\s*up\s*)/,
954
+ /^(?:,?\s*down\s*)/,
955
+ /^(?:\)\s*)/,
956
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
957
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
958
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
959
+ /^(?:\s*~~[\~]+\s*)/,
960
+ /^(?:\s*[xo<]?--\s*)/,
961
+ /^(?:\s*[xo<]?==\s*)/,
962
+ /^(?:\s*[xo<]?-\.\s*)/,
963
+ /^(?:["][`])/,
964
+ /^(?:["])/,
965
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
966
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
967
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
968
+ /^(?::\d+)/
969
+ ],
970
+ conditions: {
971
+ STYLE_DEFINITION: {
972
+ rules: [28],
973
+ inclusive: !1
974
+ },
975
+ STYLE_STMNT: {
976
+ rules: [27],
977
+ inclusive: !1
978
+ },
979
+ CLASSDEFID: {
980
+ rules: [22],
981
+ inclusive: !1
982
+ },
983
+ CLASSDEF: {
984
+ rules: [20, 21],
985
+ inclusive: !1
986
+ },
987
+ CLASS_STYLE: {
988
+ rules: [25],
989
+ inclusive: !1
990
+ },
991
+ CLASS: {
992
+ rules: [24],
993
+ inclusive: !1
994
+ },
995
+ LLABEL: {
996
+ rules: [
997
+ 99,
998
+ 100,
999
+ 101,
1000
+ 102,
1001
+ 103
1002
+ ],
1003
+ inclusive: !1
1004
+ },
1005
+ ARROW_DIR: {
1006
+ rules: [
1007
+ 85,
1008
+ 86,
1009
+ 87,
1010
+ 88,
1011
+ 89,
1012
+ 90,
1013
+ 91
1014
+ ],
1015
+ inclusive: !1
1016
+ },
1017
+ BLOCK_ARROW: {
1018
+ rules: [
1019
+ 76,
1020
+ 81,
1021
+ 84
1022
+ ],
1023
+ inclusive: !1
1024
+ },
1025
+ NODE: {
1026
+ rules: [
1027
+ 37,
1028
+ 38,
1029
+ 39,
1030
+ 40,
1031
+ 41,
1032
+ 42,
1033
+ 43,
1034
+ 44,
1035
+ 45,
1036
+ 46,
1037
+ 47,
1038
+ 48,
1039
+ 49,
1040
+ 50,
1041
+ 51,
1042
+ 52,
1043
+ 53,
1044
+ 77,
1045
+ 80
1046
+ ],
1047
+ inclusive: !1
1048
+ },
1049
+ md_string: {
1050
+ rules: [
1051
+ 9,
1052
+ 10,
1053
+ 78,
1054
+ 79
1055
+ ],
1056
+ inclusive: !1
1057
+ },
1058
+ space: {
1059
+ rules: [],
1060
+ inclusive: !1
1061
+ },
1062
+ string: {
1063
+ rules: [
1064
+ 12,
1065
+ 13,
1066
+ 82,
1067
+ 83
1068
+ ],
1069
+ inclusive: !1
1070
+ },
1071
+ acc_descr_multiline: {
1072
+ rules: [34, 35],
1073
+ inclusive: !1
1074
+ },
1075
+ acc_descr: {
1076
+ rules: [32],
1077
+ inclusive: !1
1078
+ },
1079
+ acc_title: {
1080
+ rules: [30],
1081
+ inclusive: !1
1082
+ },
1083
+ INITIAL: {
1084
+ rules: [
1085
+ 0,
1086
+ 1,
1087
+ 2,
1088
+ 3,
1089
+ 4,
1090
+ 5,
1091
+ 6,
1092
+ 7,
1093
+ 8,
1094
+ 11,
1095
+ 14,
1096
+ 15,
1097
+ 16,
1098
+ 17,
1099
+ 18,
1100
+ 19,
1101
+ 23,
1102
+ 26,
1103
+ 29,
1104
+ 31,
1105
+ 33,
1106
+ 36,
1107
+ 54,
1108
+ 55,
1109
+ 56,
1110
+ 57,
1111
+ 58,
1112
+ 59,
1113
+ 60,
1114
+ 61,
1115
+ 62,
1116
+ 63,
1117
+ 64,
1118
+ 65,
1119
+ 66,
1120
+ 67,
1121
+ 68,
1122
+ 69,
1123
+ 70,
1124
+ 71,
1125
+ 72,
1126
+ 73,
1127
+ 74,
1128
+ 75,
1129
+ 92,
1130
+ 93,
1131
+ 94,
1132
+ 95,
1133
+ 96,
1134
+ 97,
1135
+ 98,
1136
+ 104
1137
+ ],
1138
+ inclusive: !0
1139
+ }
1140
+ }
1141
+ };
1142
+ })();
1143
+ function y() {
1144
+ this.yy = {};
1145
+ }
1146
+ return c(y, "Parser"), y.prototype = v, v.Parser = y, new y();
1147
+ })();
1148
+ k.parser = k;
1149
+ var A = k, j = /* @__PURE__ */ new Map(), M = [], N = /* @__PURE__ */ new Map(), ee = "color", te = "fill", ne = "bgFill", re = ",", ie = p(), P = /* @__PURE__ */ new Map(), F = "", ae = /* @__PURE__ */ c((e) => g.sanitizeText(e, ie), "sanitizeText"), oe = /* @__PURE__ */ c(function(e, t = "") {
1150
+ let n = P.get(e);
1151
+ n || (n = {
1152
+ id: e,
1153
+ styles: [],
1154
+ textStyles: []
1155
+ }, P.set(e, n)), t != null && t.split(re).forEach((e) => {
1156
+ let t = e.replace(/([^;]*);/, "$1").trim();
1157
+ if (RegExp(ee).exec(e)) {
1158
+ let e = t.replace(te, ne).replace(ee, te);
1159
+ n.textStyles.push(e);
1160
+ }
1161
+ n.styles.push(t);
1162
+ });
1163
+ }, "addStyleClass"), se = /* @__PURE__ */ c(function(e, t = "") {
1164
+ let n = j.get(e);
1165
+ t != null && (n.styles = t.split(re));
1166
+ }, "addStyle2Node"), ce = /* @__PURE__ */ c(function(e, t) {
1167
+ e.split(",").forEach(function(e) {
1168
+ let n = j.get(e);
1169
+ if (n === void 0) {
1170
+ let t = e.trim();
1171
+ n = {
1172
+ id: t,
1173
+ type: "na",
1174
+ children: []
1175
+ }, j.set(t, n);
1176
+ }
1177
+ n.classes || (n.classes = []), n.classes.push(t);
1178
+ });
1179
+ }, "setCssClass"), le = /* @__PURE__ */ c((e, t) => {
1180
+ var n;
1181
+ let r = e.flat(), i = [], o = r.find((e) => (e == null ? void 0 : e.type) === "column-setting"), c = (n = o == null ? void 0 : o.columns) == null ? -1 : n;
1182
+ for (let e of r) {
1183
+ if (typeof c == "number" && c > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > c && s.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${c}`), e.label && (e.label = ae(e.label)), e.type === "classDef") {
1184
+ oe(e.id, e.css);
1185
+ continue;
1186
+ }
1187
+ if (e.type === "applyClass") {
1188
+ var l;
1189
+ ce(e.id, (l = e == null ? void 0 : e.styleClass) == null ? "" : l);
1190
+ continue;
1191
+ }
1192
+ if (e.type === "applyStyles") {
1193
+ e != null && e.stylesStr && se(e.id, e == null ? void 0 : e.stylesStr);
1194
+ continue;
1195
+ }
1196
+ if (e.type === "column-setting") {
1197
+ var u;
1198
+ t.columns = (u = e.columns) == null ? -1 : u;
1199
+ } else if (e.type === "edge") {
1200
+ var d;
1201
+ let t = ((d = N.get(e.id)) == null ? 0 : d) + 1;
1202
+ N.set(e.id, t), e.id = t + "-" + e.id, M.push(e);
1203
+ } else {
1204
+ e.label || (e.type === "composite" ? e.label = "" : e.label = e.id);
1205
+ let t = j.get(e.id);
1206
+ if (t === void 0 ? j.set(e.id, e) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children && le(e.children, e), e.type === "space") {
1207
+ var f;
1208
+ let t = (f = e.width) == null ? 1 : f;
1209
+ for (let n = 0; n < t; n++) {
1210
+ let t = a(e);
1211
+ t.id = t.id + "-" + n, j.set(t.id, t), i.push(t);
1212
+ }
1213
+ } else t === void 0 && i.push(e);
1214
+ }
1215
+ }
1216
+ t.children = i;
1217
+ }, "populateBlockDatabase"), I = [], L = {
1218
+ id: "root",
1219
+ type: "composite",
1220
+ children: [],
1221
+ columns: -1
1222
+ }, ue = /* @__PURE__ */ c(() => {
1223
+ s.debug("Clear called"), f(), L = {
1224
+ id: "root",
1225
+ type: "composite",
1226
+ children: [],
1227
+ columns: -1
1228
+ }, j = /* @__PURE__ */ new Map([["root", L]]), I = [], P = /* @__PURE__ */ new Map(), M = [], N = /* @__PURE__ */ new Map(), F = "";
1229
+ }, "clear");
1230
+ function de(e) {
1231
+ switch (s.debug("typeStr2Type", e), e) {
1232
+ case "[]": return "square";
1233
+ case "()": return s.debug("we have a round"), "round";
1234
+ case "(())": return "circle";
1235
+ case ">]": return "rect_left_inv_arrow";
1236
+ case "{}": return "diamond";
1237
+ case "{{}}": return "hexagon";
1238
+ case "([])": return "stadium";
1239
+ case "[[]]": return "subroutine";
1240
+ case "[()]": return "cylinder";
1241
+ case "((()))": return "doublecircle";
1242
+ case "[//]": return "lean_right";
1243
+ case "[\\\\]": return "lean_left";
1244
+ case "[/\\]": return "trapezoid";
1245
+ case "[\\/]": return "inv_trapezoid";
1246
+ case "<[]>": return "block_arrow";
1247
+ default: return "na";
1248
+ }
1249
+ }
1250
+ c(de, "typeStr2Type");
1251
+ function fe(e) {
1252
+ switch (s.debug("typeStr2Type", e), e) {
1253
+ case "==": return "thick";
1254
+ default: return "normal";
1255
+ }
1256
+ }
1257
+ c(fe, "edgeTypeStr2Type");
1258
+ function pe(e) {
1259
+ switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
1260
+ case "x": return "arrow_cross";
1261
+ case "o": return "arrow_circle";
1262
+ case ">": return "arrow_point";
1263
+ default: return "";
1264
+ }
1265
+ }
1266
+ c(pe, "edgeStrToEdgeData");
1267
+ var me = 0, he = {
1268
+ getConfig: /* @__PURE__ */ c(() => v().block, "getConfig"),
1269
+ typeStr2Type: de,
1270
+ edgeTypeStr2Type: fe,
1271
+ edgeStrToEdgeData: pe,
1272
+ getLogger: /* @__PURE__ */ c(() => s, "getLogger"),
1273
+ getBlocksFlat: /* @__PURE__ */ c(() => [...j.values()], "getBlocksFlat"),
1274
+ getBlocks: /* @__PURE__ */ c(() => I || [], "getBlocks"),
1275
+ getEdges: /* @__PURE__ */ c(() => M, "getEdges"),
1276
+ setHierarchy: /* @__PURE__ */ c((e) => {
1277
+ L.children = e, le(e, L), I = L.children;
1278
+ }, "setHierarchy"),
1279
+ getBlock: /* @__PURE__ */ c((e) => j.get(e), "getBlock"),
1280
+ setBlock: /* @__PURE__ */ c((e) => {
1281
+ j.set(e.id, e);
1282
+ }, "setBlock"),
1283
+ getColumns: /* @__PURE__ */ c((e) => {
1284
+ let t = j.get(e);
1285
+ return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
1286
+ }, "getColumns"),
1287
+ getClasses: /* @__PURE__ */ c(function() {
1288
+ return P;
1289
+ }, "getClasses"),
1290
+ clear: ue,
1291
+ generateId: /* @__PURE__ */ c(() => (me++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + me), "generateId"),
1292
+ setDiagramId: /* @__PURE__ */ c((e) => {
1293
+ F = e;
1294
+ }, "setDiagramId"),
1295
+ getDiagramId: /* @__PURE__ */ c(() => F, "getDiagramId")
1296
+ }, R = /* @__PURE__ */ c((e, t) => {
1297
+ let n = y;
1298
+ return h(n(e, "r"), n(e, "g"), n(e, "b"), t);
1299
+ }, "fade"), ge = /* @__PURE__ */ c((e) => `.label {
1300
+ font-family: ${e.fontFamily};
1301
+ color: ${e.nodeTextColor || e.textColor};
1302
+ }
1303
+ .cluster-label text {
1304
+ fill: ${e.titleColor};
1305
+ }
1306
+ .cluster-label span,p {
1307
+ color: ${e.titleColor};
1308
+ }
1309
+
1310
+
1311
+
1312
+ .label text,span,p {
1313
+ fill: ${e.nodeTextColor || e.textColor};
1314
+ color: ${e.nodeTextColor || e.textColor};
1315
+ }
1316
+
1317
+ .node rect,
1318
+ .node circle,
1319
+ .node ellipse,
1320
+ .node polygon,
1321
+ .node path {
1322
+ fill: ${e.mainBkg};
1323
+ stroke: ${e.nodeBorder};
1324
+ stroke-width: 1px;
1325
+ }
1326
+ .flowchart-label text {
1327
+ text-anchor: middle;
1328
+ }
1329
+ // .flowchart-label .text-outer-tspan {
1330
+ // text-anchor: middle;
1331
+ // }
1332
+ // .flowchart-label .text-inner-tspan {
1333
+ // text-anchor: start;
1334
+ // }
1335
+
1336
+ .node .label {
1337
+ text-align: center;
1338
+ }
1339
+ .node.clickable {
1340
+ cursor: pointer;
1341
+ }
1342
+
1343
+ .arrowheadPath {
1344
+ fill: ${e.arrowheadColor};
1345
+ }
1346
+
1347
+ .edgePath .path {
1348
+ stroke: ${e.lineColor};
1349
+ stroke-width: 2.0px;
1350
+ }
1351
+
1352
+ .flowchart-link {
1353
+ stroke: ${e.lineColor};
1354
+ fill: none;
1355
+ }
1356
+
1357
+ .edgeLabel {
1358
+ background-color: ${e.edgeLabelBackground};
1359
+ /*
1360
+ * This is for backward compatibility with existing code that didn't
1361
+ * add a \`<p>\` around edge labels.
1362
+ *
1363
+ * TODO: We should probably remove this in a future release.
1364
+ */
1365
+ p {
1366
+ margin: 0;
1367
+ padding: 0;
1368
+ display: inline;
1369
+ }
1370
+ rect {
1371
+ opacity: 0.5;
1372
+ background-color: ${e.edgeLabelBackground};
1373
+ fill: ${e.edgeLabelBackground};
1374
+ }
1375
+ text-align: center;
1376
+ }
1377
+
1378
+ /* For html labels only */
1379
+ .labelBkg {
1380
+ background-color: ${e.edgeLabelBackground};
1381
+ }
1382
+
1383
+ .node .cluster {
1384
+ // fill: ${R(e.mainBkg, .5)};
1385
+ fill: ${R(e.clusterBkg, .5)};
1386
+ stroke: ${R(e.clusterBorder, .2)};
1387
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1388
+ stroke-width: 1px;
1389
+ }
1390
+
1391
+ .cluster text {
1392
+ fill: ${e.titleColor};
1393
+ }
1394
+
1395
+ .cluster span,p {
1396
+ color: ${e.titleColor};
1397
+ }
1398
+ /* .cluster div {
1399
+ color: ${e.titleColor};
1400
+ } */
1401
+
1402
+ div.mermaidTooltip {
1403
+ position: absolute;
1404
+ text-align: center;
1405
+ max-width: 200px;
1406
+ padding: 2px;
1407
+ font-family: ${e.fontFamily};
1408
+ font-size: 12px;
1409
+ background: ${e.tertiaryColor};
1410
+ border: 1px solid ${e.border2};
1411
+ border-radius: 2px;
1412
+ pointer-events: none;
1413
+ z-index: 100;
1414
+ }
1415
+
1416
+ .flowchartTitleText {
1417
+ text-anchor: middle;
1418
+ font-size: 18px;
1419
+ fill: ${e.textColor};
1420
+ }
1421
+ ${S()}
1422
+ `, "getStyles"), _e = /* @__PURE__ */ c((e, t, n, r) => {
1423
+ t.forEach((t) => {
1424
+ ve[t](e, n, r);
1425
+ });
1426
+ }, "insertMarkers"), ve = {
1427
+ extension: /* @__PURE__ */ c((e, t, n) => {
1428
+ s.trace("Making markers for ", n), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionStart").attr("class", "marker extension " + t).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", n + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).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");
1429
+ }, "extension"),
1430
+ composition: /* @__PURE__ */ c((e, t, n) => {
1431
+ 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");
1432
+ }, "composition"),
1433
+ aggregation: /* @__PURE__ */ c((e, t, n) => {
1434
+ 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");
1435
+ }, "aggregation"),
1436
+ dependency: /* @__PURE__ */ c((e, t, n) => {
1437
+ 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");
1438
+ }, "dependency"),
1439
+ lollipop: /* @__PURE__ */ c((e, t, n) => {
1440
+ 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);
1441
+ }, "lollipop"),
1442
+ point: /* @__PURE__ */ c((e, t, n) => {
1443
+ 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");
1444
+ }, "point"),
1445
+ circle: /* @__PURE__ */ c((e, t, n) => {
1446
+ 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");
1447
+ }, "circle"),
1448
+ cross: /* @__PURE__ */ c((e, t, n) => {
1449
+ 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");
1450
+ }, "cross"),
1451
+ barb: /* @__PURE__ */ c((e, t, n) => {
1452
+ 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");
1453
+ }, "barb")
1454
+ }, ye = _e, z = (D = (O = p()) == null || (O = O.block) == null ? void 0 : O.padding) == null ? 8 : D;
1455
+ function be(e, t) {
1456
+ if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
1457
+ if (t < 0 || !Number.isInteger(t)) throw Error("Position must be a non-negative integer." + t);
1458
+ return e < 0 ? {
1459
+ px: t,
1460
+ py: 0
1461
+ } : e === 1 ? {
1462
+ px: 0,
1463
+ py: t
1464
+ } : {
1465
+ px: t % e,
1466
+ py: Math.floor(t / e)
1467
+ };
1468
+ }
1469
+ c(be, "calculateBlockPosition");
1470
+ var xe = /* @__PURE__ */ c((e) => {
1471
+ let t = 0, n = 0;
1472
+ for (let a of e.children) {
1473
+ var r;
1474
+ let { width: e, height: o, x: c, y: l } = (r = a.size) == null ? {
1475
+ width: 0,
1476
+ height: 0,
1477
+ x: 0,
1478
+ y: 0
1479
+ } : r;
1480
+ if (s.debug("getMaxChildSize abc95 child:", a.id, "width:", e, "height:", o, "x:", c, "y:", l, a.type), a.type !== "space") {
1481
+ if (e > t) {
1482
+ var i;
1483
+ t = e / ((i = a.widthInColumns) == null ? 1 : i);
1484
+ }
1485
+ o > n && (n = o);
1486
+ }
1487
+ }
1488
+ return {
1489
+ width: t,
1490
+ height: n
1491
+ };
1492
+ }, "getMaxChildSize");
1493
+ function B(e, t, n = 0, r = 0) {
1494
+ var i, a, o, c, l, u, d;
1495
+ s.debug("setBlockSizes abc95 (start)", e.id, e == null || (i = e.size) == null ? void 0 : i.x, "block width =", e == null ? void 0 : e.size, "siblingWidth", n), !(e == null || (a = e.size) == null) && a.width || (e.size = {
1496
+ width: n,
1497
+ height: r,
1498
+ x: 0,
1499
+ y: 0
1500
+ });
1501
+ let f = 0, p = 0;
1502
+ if (((o = e.children) == null ? void 0 : o.length) > 0) {
1503
+ var m, h, g;
1504
+ for (let n of e.children) B(n, t);
1505
+ let i = xe(e);
1506
+ f = i.width, p = i.height, s.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", f, p);
1507
+ for (let t of e.children) if (t.size) {
1508
+ var _, v;
1509
+ s.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${f} ${p} ${JSON.stringify(t.size)}`), t.size.width = f * ((_ = t.widthInColumns) == null ? 1 : _) + z * (((v = t.widthInColumns) == null ? 1 : v) - 1), t.size.height = p, t.size.x = 0, t.size.y = 0, s.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${f} maxHeight:${p}`);
1510
+ }
1511
+ for (let n of e.children) B(n, t, f, p);
1512
+ let a = (m = e.columns) == null ? -1 : m, o = 0;
1513
+ for (let t of e.children) {
1514
+ var y;
1515
+ o += (y = t.widthInColumns) == null ? 1 : y;
1516
+ }
1517
+ let c = e.children.length;
1518
+ a > 0 && a < o && (c = a);
1519
+ let l = Math.ceil(o / c), u = c * (f + z) + z, d = l * (p + z) + z;
1520
+ if (u < n) {
1521
+ s.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${n} siblingHeight ${r} width ${u}`), u = n, d = r;
1522
+ let t = (n - c * z - z) / c, i = (r - l * z - z) / l;
1523
+ s.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", f), s.debug("Size indata abc88", e.id, "childHeight", i, "maxHeight", p), s.debug("Size indata abc88 xSize", c, "padding", z);
1524
+ for (let n of e.children) n.size && (n.size.width = t, n.size.height = i, n.size.x = 0, n.size.y = 0);
1525
+ }
1526
+ if (s.debug(`abc95 (finale calc) ${e.id} xSize ${c} ySize ${l} columns ${a}${e.children.length} width=${Math.max(u, ((h = e.size) == null ? void 0 : h.width) || 0)}`), u < ((e == null || (g = e.size) == null ? void 0 : g.width) || 0)) {
1527
+ var b;
1528
+ u = (e == null || (b = e.size) == null ? void 0 : b.width) || 0;
1529
+ let t = a > 0 ? Math.min(e.children.length, a) : e.children.length;
1530
+ if (t > 0) {
1531
+ var x;
1532
+ let n = (u - t * z - z) / t;
1533
+ s.debug("abc95 (growing to fit) width", e.id, u, (x = e.size) == null ? void 0 : x.width, n);
1534
+ for (let t of e.children) t.size && (t.size.width = n);
1535
+ }
1536
+ }
1537
+ e.size = {
1538
+ width: u,
1539
+ height: d,
1540
+ x: 0,
1541
+ y: 0
1542
+ };
1543
+ }
1544
+ s.debug("setBlockSizes abc94 (done)", e.id, e == null || (c = e.size) == null ? void 0 : c.x, e == null || (l = e.size) == null ? void 0 : l.width, e == null || (u = e.size) == null ? void 0 : u.y, e == null || (d = e.size) == null ? void 0 : d.height);
1545
+ }
1546
+ c(B, "setBlockSizes");
1547
+ function Se(e, t) {
1548
+ var n, r, i, a, o, c, l;
1549
+ s.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e == null || (n = e.size) == null ? void 0 : n.x} y: ${e == null || (r = e.size) == null ? void 0 : r.y} width: ${e == null || (i = e.size) == null ? void 0 : i.width}`);
1550
+ let u = (a = e.columns) == null ? -1 : a;
1551
+ if (s.debug("layoutBlocks columns abc95", e.id, "=>", u, e), e.children && e.children.length > 0) {
1552
+ var d, f, p, m, h, g;
1553
+ let n = (d = e == null || (f = e.children[0]) == null || (f = f.size) == null ? void 0 : f.width) == null ? 0 : d, r = e.children.length * n + (e.children.length - 1) * z;
1554
+ s.debug("widthOfChildren 88", r, "posX");
1555
+ let i = /* @__PURE__ */ new Map();
1556
+ {
1557
+ let t = 0;
1558
+ for (let n of e.children) {
1559
+ var _, v;
1560
+ if (!n.size) continue;
1561
+ let { py: e } = be(u, t), r = (_ = i.get(e)) == null ? 0 : _;
1562
+ n.size.height > r && i.set(e, n.size.height);
1563
+ let a = (v = n == null ? void 0 : n.widthInColumns) == null ? 1 : v;
1564
+ u > 0 && (a = Math.min(a, u - t % u)), t += a;
1565
+ }
1566
+ }
1567
+ let a = /* @__PURE__ */ new Map();
1568
+ {
1569
+ let e = 0, t = [...i.keys()].sort((e, t) => e - t);
1570
+ for (let n of t) {
1571
+ var y;
1572
+ a.set(n, e), e += ((y = i.get(n)) == null ? 0 : y) + z;
1573
+ }
1574
+ }
1575
+ let o = 0;
1576
+ s.debug("abc91 block?.size?.x", e.id, e == null || (p = e.size) == null ? void 0 : p.x);
1577
+ let c = !(e == null || (m = e.size) == null) && m.x ? (e == null || (h = e.size) == null ? void 0 : h.x) + (-(e == null || (g = e.size) == null ? void 0 : g.width) / 2 || 0) : -z, l = 0;
1578
+ for (let n of e.children) {
1579
+ var b, x, S;
1580
+ let r = e;
1581
+ if (!n.size) continue;
1582
+ let { width: d, height: f } = n.size, { px: p, py: m } = be(u, o);
1583
+ if (m != l) {
1584
+ var C, w, T;
1585
+ l = m, c = !(e == null || (C = e.size) == null) && C.x ? (e == null || (w = e.size) == null ? void 0 : w.x) + (-(e == null || (T = e.size) == null ? void 0 : T.width) / 2 || 0) : -z, s.debug("New row in layout for block", e.id, " and child ", n.id, l);
1586
+ }
1587
+ if (s.debug(`abc89 layout blocks (child) id: ${n.id} Pos: ${o} (px, py) ${p},${m} (${r == null || (b = r.size) == null ? void 0 : b.x},${r == null || (x = r.size) == null ? void 0 : x.y}) parent: ${r.id} width: ${d}${z}`), r.size) {
1588
+ var E, D, O, k;
1589
+ let e = d / 2;
1590
+ n.size.x = c + z + e, s.debug(`abc91 layout blocks (calc) px, pyid:${n.id} startingPos=X${c} new startingPosX${n.size.x} ${e} padding=${z} width=${d} halfWidth=${e} => x:${n.size.x} y:${n.size.y} ${n.widthInColumns} (width * (child?.w || 1)) / 2 ${d * ((E = n == null ? void 0 : n.widthInColumns) == null ? 1 : E) / 2}`), c = n.size.x + e;
1591
+ let t = (D = a.get(m)) == null ? 0 : D, o = (O = i.get(m)) == null ? f : O;
1592
+ n.size.y = r.size.y - r.size.height / 2 + t + o / 2 + z, s.debug(`abc88 layout blocks (calc) px, pyid:${n.id}startingPosX${c}${z}${e}=>x:${n.size.x}y:${n.size.y}${n.widthInColumns}(width * (child?.w || 1)) / 2${d * ((k = n == null ? void 0 : n.widthInColumns) == null ? 1 : k) / 2}`);
1593
+ }
1594
+ n.children && Se(n, t);
1595
+ let h = (S = n == null ? void 0 : n.widthInColumns) == null ? 1 : S;
1596
+ u > 0 && (h = Math.min(h, u - o % u)), o += h, s.debug("abc88 columnsPos", n, o);
1597
+ }
1598
+ }
1599
+ s.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e == null || (o = e.size) == null ? void 0 : o.x} y: ${e == null || (c = e.size) == null ? void 0 : c.y} width: ${e == null || (l = e.size) == null ? void 0 : l.width}`);
1600
+ }
1601
+ c(Se, "layoutBlocks");
1602
+ function Ce(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1603
+ minX: 0,
1604
+ minY: 0,
1605
+ maxX: 0,
1606
+ maxY: 0
1607
+ }) {
1608
+ if (e.size && e.id !== "root") {
1609
+ let { x: a, y: o, width: s, height: c } = e.size;
1610
+ 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);
1611
+ }
1612
+ if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = Ce(a, {
1613
+ minX: t,
1614
+ minY: n,
1615
+ maxX: r,
1616
+ maxY: i
1617
+ }));
1618
+ return {
1619
+ minX: t,
1620
+ minY: n,
1621
+ maxX: r,
1622
+ maxY: i
1623
+ };
1624
+ }
1625
+ c(Ce, "findBounds");
1626
+ function we(e) {
1627
+ let t = e.getBlock("root");
1628
+ if (!t) return;
1629
+ B(t, e, 0, 0), Se(t, e), s.debug("getBlocks", JSON.stringify(t, null, 2));
1630
+ let { minX: n, minY: r, maxX: i, maxY: a } = Ce(t), o = a - r;
1631
+ return {
1632
+ x: n,
1633
+ y: r,
1634
+ width: i - n,
1635
+ height: o
1636
+ };
1637
+ }
1638
+ c(we, "layout");
1639
+ var V = /* @__PURE__ */ c(async (e, t, n, r = !1, i = !1) => {
1640
+ let a = t || "";
1641
+ typeof a == "object" && (a = a[0]);
1642
+ let o = p(), s = _(o);
1643
+ return await x(e, a, {
1644
+ style: n,
1645
+ isTitle: r,
1646
+ useHtmlLabels: s,
1647
+ markdown: !1,
1648
+ isNode: i,
1649
+ width: Infinity
1650
+ }, o);
1651
+ }, "createLabel"), Te = /* @__PURE__ */ c((e, t, n, r, i) => {
1652
+ t.arrowTypeStart && De(e, "start", t.arrowTypeStart, n, r, i), t.arrowTypeEnd && De(e, "end", t.arrowTypeEnd, n, r, i);
1653
+ }, "addEdgeMarkers"), Ee = {
1654
+ arrow_cross: "cross",
1655
+ arrow_point: "point",
1656
+ arrow_barb: "barb",
1657
+ arrow_circle: "circle",
1658
+ aggregation: "aggregation",
1659
+ extension: "extension",
1660
+ composition: "composition",
1661
+ dependency: "dependency",
1662
+ lollipop: "lollipop"
1663
+ }, De = /* @__PURE__ */ c((e, t, n, r, i, a) => {
1664
+ let o = Ee[n];
1665
+ if (!o) {
1666
+ s.warn(`Unknown arrow type: ${n}`);
1667
+ return;
1668
+ }
1669
+ let c = t === "start" ? "Start" : "End";
1670
+ e.attr(`marker-${t}`, `url(${r}#${i}_${a}-${o}${c})`);
1671
+ }, "addEdgeMarker"), H = {}, U = {}, Oe = /* @__PURE__ */ c(async (e, t) => {
1672
+ let n = p(), r = _(n), i = e.insert("g").attr("class", "edgeLabel"), a = i.insert("g").attr("class", "label"), o = t.labelType === "markdown", s = await x(e, t.label, {
1673
+ style: t.labelStyle,
1674
+ useHtmlLabels: r,
1675
+ addSvgBackground: o,
1676
+ isNode: !1,
1677
+ markdown: o,
1678
+ width: o ? void 0 : Infinity
1679
+ }, n);
1680
+ a.node().appendChild(s);
1681
+ let c = s.getBBox(), u = c;
1682
+ if (r) {
1683
+ let e = s.children[0], t = l(s);
1684
+ c = e.getBoundingClientRect(), u = c, t.attr("width", c.width), t.attr("height", c.height);
1685
+ } else {
1686
+ let e = l(s).select("text").node();
1687
+ e && typeof e.getBBox == "function" && (u = e.getBBox());
1688
+ }
1689
+ a.attr("transform", w(u, r)), H[t.id] = i, t.width = c.width, t.height = c.height;
1690
+ let d;
1691
+ if (t.startLabelLeft) {
1692
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.startLabelLeft, t.labelStyle);
1693
+ d = a;
1694
+ let o = a.getBBox();
1695
+ if (r) {
1696
+ let e = a.children[0], t = l(a);
1697
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1698
+ }
1699
+ i.attr("transform", w(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startLeft = n, W(d, t.startLabelLeft);
1700
+ }
1701
+ if (t.startLabelRight) {
1702
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(n, t.startLabelRight, t.labelStyle);
1703
+ d = a, i.node().appendChild(a);
1704
+ let o = a.getBBox();
1705
+ if (r) {
1706
+ let e = a.children[0], t = l(a);
1707
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1708
+ }
1709
+ i.attr("transform", w(o, r)), U[t.id] || (U[t.id] = {}), U[t.id].startRight = n, W(d, t.startLabelRight);
1710
+ }
1711
+ if (t.endLabelLeft) {
1712
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.endLabelLeft, t.labelStyle);
1713
+ d = a;
1714
+ let o = a.getBBox();
1715
+ if (r) {
1716
+ let e = a.children[0], t = l(a);
1717
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1718
+ }
1719
+ i.attr("transform", w(o, r)), n.node().appendChild(a), U[t.id] || (U[t.id] = {}), U[t.id].endLeft = n, W(d, t.endLabelLeft);
1720
+ }
1721
+ if (t.endLabelRight) {
1722
+ let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await V(i, t.endLabelRight, t.labelStyle);
1723
+ d = a;
1724
+ let o = a.getBBox();
1725
+ if (r) {
1726
+ let e = a.children[0], t = l(a);
1727
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
1728
+ }
1729
+ i.attr("transform", w(o, r)), n.node().appendChild(a), U[t.id] || (U[t.id] = {}), U[t.id].endRight = n, W(d, t.endLabelRight);
1730
+ }
1731
+ return s;
1732
+ }, "insertEdgeLabel");
1733
+ function W(e, t) {
1734
+ _(p()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1735
+ }
1736
+ c(W, "setTerminalWidth");
1737
+ var ke = /* @__PURE__ */ c((e, t) => {
1738
+ s.debug("Moving label abc88 ", e.id, e.label, H[e.id], t);
1739
+ let n = t.updatedPath ? t.updatedPath : t.originalPath, { subGraphTitleTotalMargin: i } = T(p());
1740
+ if (e.label) {
1741
+ let a = H[e.id], o = e.x, c = e.y;
1742
+ if (n) {
1743
+ let i = r.calcLabelPosition(n);
1744
+ s.debug("Moving label " + e.label + " from (", o, ",", c, ") to (", i.x, ",", i.y, ") abc88"), t.updatedPath && (o = i.x, c = i.y);
1745
+ }
1746
+ a.attr("transform", `translate(${o}, ${c + i / 2})`);
1747
+ }
1748
+ if (e.startLabelLeft) {
1749
+ let t = U[e.id].startLeft, i = e.x, a = e.y;
1750
+ if (n) {
1751
+ let t = r.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
1752
+ i = t.x, a = t.y;
1753
+ }
1754
+ t.attr("transform", `translate(${i}, ${a})`);
1755
+ }
1756
+ if (e.startLabelRight) {
1757
+ let t = U[e.id].startRight, i = e.x, a = e.y;
1758
+ if (n) {
1759
+ let t = r.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
1760
+ i = t.x, a = t.y;
1761
+ }
1762
+ t.attr("transform", `translate(${i}, ${a})`);
1763
+ }
1764
+ if (e.endLabelLeft) {
1765
+ let t = U[e.id].endLeft, i = e.x, a = e.y;
1766
+ if (n) {
1767
+ let t = r.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
1768
+ i = t.x, a = t.y;
1769
+ }
1770
+ t.attr("transform", `translate(${i}, ${a})`);
1771
+ }
1772
+ if (e.endLabelRight) {
1773
+ let t = U[e.id].endRight, i = e.x, a = e.y;
1774
+ if (n) {
1775
+ let t = r.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
1776
+ i = t.x, a = t.y;
1777
+ }
1778
+ t.attr("transform", `translate(${i}, ${a})`);
1779
+ }
1780
+ }, "positionEdgeLabel"), Ae = /* @__PURE__ */ c((e, t) => {
1781
+ 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;
1782
+ return i >= o || a >= s;
1783
+ }, "outsideNode"), je = /* @__PURE__ */ c((e, t, n) => {
1784
+ s.debug(`intersection calc abc89:
1785
+ outsidePoint: ${JSON.stringify(t)}
1786
+ insidePoint : ${JSON.stringify(n)}
1787
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
1788
+ let r = e.x, i = e.y, a = Math.abs(r - n.x), o = e.width / 2, c = n.x < t.x ? o - a : o + a, l = e.height / 2, u = Math.abs(t.y - n.y), d = Math.abs(t.x - n.x);
1789
+ if (Math.abs(i - t.y) * o > Math.abs(r - t.x) * l) {
1790
+ let e = n.y < t.y ? t.y - l - i : i - l - t.y;
1791
+ c = d * e / u;
1792
+ let r = {
1793
+ x: n.x < t.x ? n.x + c : n.x - d + c,
1794
+ y: n.y < t.y ? n.y + u - e : n.y - u + e
1795
+ };
1796
+ return c === 0 && (r.x = t.x, r.y = t.y), d === 0 && (r.x = t.x), u === 0 && (r.y = t.y), s.debug(`abc89 topp/bott calc, Q ${u}, q ${e}, R ${d}, r ${c}`, r), r;
1797
+ } else {
1798
+ c = n.x < t.x ? t.x - o - r : r - o - t.x;
1799
+ let e = u * c / d, i = n.x < t.x ? n.x + d - c : n.x - d + c, a = n.y < t.y ? n.y + e : n.y - e;
1800
+ return s.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
1801
+ _x: i,
1802
+ _y: a
1803
+ }), c === 0 && (i = t.x, a = t.y), d === 0 && (i = t.x), u === 0 && (a = t.y), {
1804
+ x: i,
1805
+ y: a
1806
+ };
1807
+ }
1808
+ }, "intersection"), Me = /* @__PURE__ */ c((e, t) => {
1809
+ s.debug("abc88 cutPathAtIntersect", e, t);
1810
+ let n = [], r = e[0], i = !1;
1811
+ return e.forEach((e) => {
1812
+ if (!Ae(t, e) && !i) {
1813
+ let a = je(t, r, e), o = !1;
1814
+ n.forEach((e) => {
1815
+ o = o || e.x === a.x && e.y === a.y;
1816
+ }), n.some((e) => e.x === a.x && e.y === a.y) || n.push(a), i = !0;
1817
+ } else r = e, i || n.push(e);
1818
+ }), n;
1819
+ }, "cutPathAtIntersect"), Ne = /* @__PURE__ */ c(function(e, n, r, i, a, o, c) {
1820
+ let l = r.points;
1821
+ s.debug("abc88 InsertEdge: edge=", r, "e=", n);
1822
+ let d = !1, f = o.node(n.v);
1823
+ var m = o.node(n.w);
1824
+ m != null && m.intersect && f != null && f.intersect && (l = l.slice(1, r.points.length - 1), l.unshift(f.intersect(l[0])), l.push(m.intersect(l[l.length - 1]))), r.toCluster && (s.debug("to cluster abc88", i[r.toCluster]), l = Me(r.points, i[r.toCluster].node), d = !0), r.fromCluster && (s.debug("from cluster abc88", i[r.fromCluster]), l = Me(l.reverse(), i[r.fromCluster].node).reverse(), d = !0);
1825
+ let h = l.filter((e) => !Number.isNaN(e.y)), g = t;
1826
+ r.curve && (a === "graph" || a === "flowchart") && (g = r.curve);
1827
+ let { x: _, y: v } = C(r), y = b().x(_).y(v).curve(g), x;
1828
+ switch (r.thickness) {
1829
+ case "normal":
1830
+ x = "edge-thickness-normal";
1831
+ break;
1832
+ case "thick":
1833
+ x = "edge-thickness-thick";
1834
+ break;
1835
+ case "invisible":
1836
+ x = "edge-thickness-thick";
1837
+ break;
1838
+ default: x = "";
1839
+ }
1840
+ switch (r.pattern) {
1841
+ case "solid":
1842
+ x += " edge-pattern-solid";
1843
+ break;
1844
+ case "dotted":
1845
+ x += " edge-pattern-dotted";
1846
+ break;
1847
+ case "dashed":
1848
+ x += " edge-pattern-dashed";
1849
+ break;
1850
+ }
1851
+ let S = e.append("path").attr("d", y(h)).attr("id", r.id).attr("class", " " + x + (r.classes ? " " + r.classes : "")).attr("style", r.style), w = "";
1852
+ (p().flowchart.arrowMarkerAbsolute || p().state.arrowMarkerAbsolute) && (w = u(!0)), Te(S, r, w, c, a);
1853
+ let T = {};
1854
+ return d && (T.updatedPath = l), T.originalPath = r.points, T;
1855
+ }, "insertEdge"), Pe = /* @__PURE__ */ c((e) => {
1856
+ let t = /* @__PURE__ */ new Set();
1857
+ for (let n of e) switch (n) {
1858
+ case "x":
1859
+ t.add("right"), t.add("left");
1860
+ break;
1861
+ case "y":
1862
+ t.add("up"), t.add("down");
1863
+ break;
1864
+ default:
1865
+ t.add(n);
1866
+ break;
1867
+ }
1868
+ return t;
1869
+ }, "expandAndDeduplicateDirections"), Fe = /* @__PURE__ */ c((e, t, n) => {
1870
+ let r = Pe(e), i = t.height + 2 * n.padding, a = i / 2, o = t.width + 2 * a + n.padding, s = n.padding / 2;
1871
+ return r.has("right") && r.has("left") && r.has("up") && r.has("down") ? [
1872
+ {
1873
+ x: 0,
1874
+ y: 0
1875
+ },
1876
+ {
1877
+ x: a,
1878
+ y: 0
1879
+ },
1880
+ {
1881
+ x: o / 2,
1882
+ y: 2 * s
1883
+ },
1884
+ {
1885
+ x: o - a,
1886
+ y: 0
1887
+ },
1888
+ {
1889
+ x: o,
1890
+ y: 0
1891
+ },
1892
+ {
1893
+ x: o,
1894
+ y: -i / 3
1895
+ },
1896
+ {
1897
+ x: o + 2 * s,
1898
+ y: -i / 2
1899
+ },
1900
+ {
1901
+ x: o,
1902
+ y: -2 * i / 3
1903
+ },
1904
+ {
1905
+ x: o,
1906
+ y: -i
1907
+ },
1908
+ {
1909
+ x: o - a,
1910
+ y: -i
1911
+ },
1912
+ {
1913
+ x: o / 2,
1914
+ y: -i - 2 * s
1915
+ },
1916
+ {
1917
+ x: a,
1918
+ y: -i
1919
+ },
1920
+ {
1921
+ x: 0,
1922
+ y: -i
1923
+ },
1924
+ {
1925
+ x: 0,
1926
+ y: -2 * i / 3
1927
+ },
1928
+ {
1929
+ x: -2 * s,
1930
+ y: -i / 2
1931
+ },
1932
+ {
1933
+ x: 0,
1934
+ y: -i / 3
1935
+ }
1936
+ ] : r.has("right") && r.has("left") && r.has("up") ? [
1937
+ {
1938
+ x: a,
1939
+ y: 0
1940
+ },
1941
+ {
1942
+ x: o - a,
1943
+ y: 0
1944
+ },
1945
+ {
1946
+ x: o,
1947
+ y: -i / 2
1948
+ },
1949
+ {
1950
+ x: o - a,
1951
+ y: -i
1952
+ },
1953
+ {
1954
+ x: a,
1955
+ y: -i
1956
+ },
1957
+ {
1958
+ x: 0,
1959
+ y: -i / 2
1960
+ }
1961
+ ] : r.has("right") && r.has("left") && r.has("down") ? [
1962
+ {
1963
+ x: 0,
1964
+ y: 0
1965
+ },
1966
+ {
1967
+ x: a,
1968
+ y: -i
1969
+ },
1970
+ {
1971
+ x: o - a,
1972
+ y: -i
1973
+ },
1974
+ {
1975
+ x: o,
1976
+ y: 0
1977
+ }
1978
+ ] : r.has("right") && r.has("up") && r.has("down") ? [
1979
+ {
1980
+ x: 0,
1981
+ y: 0
1982
+ },
1983
+ {
1984
+ x: o,
1985
+ y: -a
1986
+ },
1987
+ {
1988
+ x: o,
1989
+ y: -i + a
1990
+ },
1991
+ {
1992
+ x: 0,
1993
+ y: -i
1994
+ }
1995
+ ] : r.has("left") && r.has("up") && r.has("down") ? [
1996
+ {
1997
+ x: o,
1998
+ y: 0
1999
+ },
2000
+ {
2001
+ x: 0,
2002
+ y: -a
2003
+ },
2004
+ {
2005
+ x: 0,
2006
+ y: -i + a
2007
+ },
2008
+ {
2009
+ x: o,
2010
+ y: -i
2011
+ }
2012
+ ] : r.has("right") && r.has("left") ? [
2013
+ {
2014
+ x: a,
2015
+ y: 0
2016
+ },
2017
+ {
2018
+ x: a,
2019
+ y: -s
2020
+ },
2021
+ {
2022
+ x: o - a,
2023
+ y: -s
2024
+ },
2025
+ {
2026
+ x: o - a,
2027
+ y: 0
2028
+ },
2029
+ {
2030
+ x: o,
2031
+ y: -i / 2
2032
+ },
2033
+ {
2034
+ x: o - a,
2035
+ y: -i
2036
+ },
2037
+ {
2038
+ x: o - a,
2039
+ y: -i + s
2040
+ },
2041
+ {
2042
+ x: a,
2043
+ y: -i + s
2044
+ },
2045
+ {
2046
+ x: a,
2047
+ y: -i
2048
+ },
2049
+ {
2050
+ x: 0,
2051
+ y: -i / 2
2052
+ }
2053
+ ] : r.has("up") && r.has("down") ? [
2054
+ {
2055
+ x: o / 2,
2056
+ y: 0
2057
+ },
2058
+ {
2059
+ x: 0,
2060
+ y: -s
2061
+ },
2062
+ {
2063
+ x: a,
2064
+ y: -s
2065
+ },
2066
+ {
2067
+ x: a,
2068
+ y: -i + s
2069
+ },
2070
+ {
2071
+ x: 0,
2072
+ y: -i + s
2073
+ },
2074
+ {
2075
+ x: o / 2,
2076
+ y: -i
2077
+ },
2078
+ {
2079
+ x: o,
2080
+ y: -i + s
2081
+ },
2082
+ {
2083
+ x: o - a,
2084
+ y: -i + s
2085
+ },
2086
+ {
2087
+ x: o - a,
2088
+ y: -s
2089
+ },
2090
+ {
2091
+ x: o,
2092
+ y: -s
2093
+ }
2094
+ ] : r.has("right") && r.has("up") ? [
2095
+ {
2096
+ x: 0,
2097
+ y: 0
2098
+ },
2099
+ {
2100
+ x: o,
2101
+ y: -a
2102
+ },
2103
+ {
2104
+ x: 0,
2105
+ y: -i
2106
+ }
2107
+ ] : r.has("right") && r.has("down") ? [
2108
+ {
2109
+ x: 0,
2110
+ y: 0
2111
+ },
2112
+ {
2113
+ x: o,
2114
+ y: 0
2115
+ },
2116
+ {
2117
+ x: 0,
2118
+ y: -i
2119
+ }
2120
+ ] : r.has("left") && r.has("up") ? [
2121
+ {
2122
+ x: o,
2123
+ y: 0
2124
+ },
2125
+ {
2126
+ x: 0,
2127
+ y: -a
2128
+ },
2129
+ {
2130
+ x: o,
2131
+ y: -i
2132
+ }
2133
+ ] : r.has("left") && r.has("down") ? [
2134
+ {
2135
+ x: o,
2136
+ y: 0
2137
+ },
2138
+ {
2139
+ x: 0,
2140
+ y: 0
2141
+ },
2142
+ {
2143
+ x: o,
2144
+ y: -i
2145
+ }
2146
+ ] : r.has("right") ? [
2147
+ {
2148
+ x: a,
2149
+ y: -s
2150
+ },
2151
+ {
2152
+ x: a,
2153
+ y: -s
2154
+ },
2155
+ {
2156
+ x: o - a,
2157
+ y: -s
2158
+ },
2159
+ {
2160
+ x: o - a,
2161
+ y: 0
2162
+ },
2163
+ {
2164
+ x: o,
2165
+ y: -i / 2
2166
+ },
2167
+ {
2168
+ x: o - a,
2169
+ y: -i
2170
+ },
2171
+ {
2172
+ x: o - a,
2173
+ y: -i + s
2174
+ },
2175
+ {
2176
+ x: a,
2177
+ y: -i + s
2178
+ },
2179
+ {
2180
+ x: a,
2181
+ y: -i + s
2182
+ }
2183
+ ] : r.has("left") ? [
2184
+ {
2185
+ x: a,
2186
+ y: 0
2187
+ },
2188
+ {
2189
+ x: a,
2190
+ y: -s
2191
+ },
2192
+ {
2193
+ x: o - a,
2194
+ y: -s
2195
+ },
2196
+ {
2197
+ x: o - a,
2198
+ y: -i + s
2199
+ },
2200
+ {
2201
+ x: a,
2202
+ y: -i + s
2203
+ },
2204
+ {
2205
+ x: a,
2206
+ y: -i
2207
+ },
2208
+ {
2209
+ x: 0,
2210
+ y: -i / 2
2211
+ }
2212
+ ] : r.has("up") ? [
2213
+ {
2214
+ x: a,
2215
+ y: -s
2216
+ },
2217
+ {
2218
+ x: a,
2219
+ y: -i + s
2220
+ },
2221
+ {
2222
+ x: 0,
2223
+ y: -i + s
2224
+ },
2225
+ {
2226
+ x: o / 2,
2227
+ y: -i
2228
+ },
2229
+ {
2230
+ x: o,
2231
+ y: -i + s
2232
+ },
2233
+ {
2234
+ x: o - a,
2235
+ y: -i + s
2236
+ },
2237
+ {
2238
+ x: o - a,
2239
+ y: -s
2240
+ }
2241
+ ] : r.has("down") ? [
2242
+ {
2243
+ x: o / 2,
2244
+ y: 0
2245
+ },
2246
+ {
2247
+ x: 0,
2248
+ y: -s
2249
+ },
2250
+ {
2251
+ x: a,
2252
+ y: -s
2253
+ },
2254
+ {
2255
+ x: a,
2256
+ y: -i + s
2257
+ },
2258
+ {
2259
+ x: o - a,
2260
+ y: -i + s
2261
+ },
2262
+ {
2263
+ x: o - a,
2264
+ y: -s
2265
+ },
2266
+ {
2267
+ x: o,
2268
+ y: -s
2269
+ }
2270
+ ] : [{
2271
+ x: 0,
2272
+ y: 0
2273
+ }];
2274
+ }, "getArrowPoints");
2275
+ function Ie(e, t) {
2276
+ return e.intersect(t);
2277
+ }
2278
+ c(Ie, "intersectNode");
2279
+ var Le = Ie;
2280
+ function Re(e, t, n, r) {
2281
+ 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);
2282
+ r.x < i && (l = -l);
2283
+ var u = Math.abs(t * n * s / c);
2284
+ return r.y < a && (u = -u), {
2285
+ x: i + l,
2286
+ y: a + u
2287
+ };
2288
+ }
2289
+ c(Re, "intersectEllipse");
2290
+ var ze = Re;
2291
+ function Be(e, t, n) {
2292
+ return ze(e, t, t, n);
2293
+ }
2294
+ c(Be, "intersectCircle");
2295
+ var Ve = Be;
2296
+ function He(e, t, n, r) {
2297
+ 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;
2298
+ if (!(f !== 0 && p !== 0 && G(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 && G(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, {
2299
+ x: _,
2300
+ y: v
2301
+ };
2302
+ }
2303
+ c(He, "intersectLine");
2304
+ function G(e, t) {
2305
+ return e * t > 0;
2306
+ }
2307
+ c(G, "sameSign");
2308
+ var Ue = He, We = Ge;
2309
+ function Ge(e, t, n) {
2310
+ var r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
2311
+ typeof t.forEach == "function" ? t.forEach(function(e) {
2312
+ o = Math.min(o, e.x), s = Math.min(s, e.y);
2313
+ }) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
2314
+ for (var c = r - e.width / 2 - o, l = i - e.height / 2 - s, u = 0; u < t.length; u++) {
2315
+ var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p = Ue(e, n, {
2316
+ x: c + d.x,
2317
+ y: l + d.y
2318
+ }, {
2319
+ x: c + f.x,
2320
+ y: l + f.y
2321
+ });
2322
+ p && a.push(p);
2323
+ }
2324
+ return a.length ? (a.length > 1 && a.sort(function(e, t) {
2325
+ 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);
2326
+ return a < c ? -1 : a === c ? 0 : 1;
2327
+ }), a[0]) : e;
2328
+ }
2329
+ c(Ge, "intersectPolygon");
2330
+ var K = {
2331
+ node: Le,
2332
+ circle: Ve,
2333
+ ellipse: ze,
2334
+ polygon: We,
2335
+ rect: /* @__PURE__ */ c((e, t) => {
2336
+ 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;
2337
+ 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), {
2338
+ x: n + c,
2339
+ y: r + l
2340
+ };
2341
+ }, "intersectRect")
2342
+ }, q = /* @__PURE__ */ c(async (e, t, n, r) => {
2343
+ let a = p(), o, s = t.useHtmlLabels || _(a);
2344
+ o = n || "node default";
2345
+ let c = e.insert("g").attr("class", o).attr("id", t.domId || t.id), u = c.insert("g").attr("class", "label").attr("style", t.labelStyle), f;
2346
+ f = t.labelText === void 0 ? "" : typeof t.labelText == "string" ? t.labelText : t.labelText[0];
2347
+ let m;
2348
+ m = t.labelType === "markdown" ? x(u, d(i(f), a), {
2349
+ useHtmlLabels: s,
2350
+ width: t.width || a.flowchart.wrappingWidth,
2351
+ classes: "markdown-node-label"
2352
+ }, a) : await V(u, d(i(f), a), t.labelStyle, !1, r);
2353
+ let h = m.getBBox(), g = t.padding / 2;
2354
+ if (_(a)) {
2355
+ let e = m.children[0], t = l(m);
2356
+ await E(e, f), h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2357
+ }
2358
+ return s ? u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")") : u.attr("transform", "translate(0, " + -h.height / 2 + ")"), t.centerLabel && u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")"), u.insert("rect", ":first-child"), {
2359
+ shapeSvg: c,
2360
+ bbox: h,
2361
+ halfPadding: g,
2362
+ label: u
2363
+ };
2364
+ }, "labelHelper"), J = /* @__PURE__ */ c((e, t) => {
2365
+ let n = t.node().getBBox();
2366
+ e.width = n.width, e.height = n.height;
2367
+ }, "updateNodeBounds");
2368
+ function Y(e, t, n, r) {
2369
+ return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
2370
+ return e.x + "," + e.y;
2371
+ }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
2372
+ }
2373
+ c(Y, "insertPolygonShape");
2374
+ var Ke = /* @__PURE__ */ c(async (e, t) => {
2375
+ t.useHtmlLabels || _(p()) || (t.centerLabel = !0);
2376
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes, !0);
2377
+ s.info("Classes = ", t.classes);
2378
+ let a = n.insert("rect", ":first-child");
2379
+ return a.attr("rx", t.rx).attr("ry", t.ry).attr("x", -r.width / 2 - i).attr("y", -r.height / 2 - i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), J(t, a), t.intersect = function(e) {
2380
+ return K.rect(t, e);
2381
+ }, n;
2382
+ }, "note"), qe = /* @__PURE__ */ c((e) => e ? " " + e : "", "formatClass"), X = /* @__PURE__ */ c((e, t) => `${t || "node default"}${qe(e.classes)} ${qe(e.class)}`, "getClassesFromNode"), Je = /* @__PURE__ */ c(async (e, t) => {
2383
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding + (r.height + t.padding), a = [
2384
+ {
2385
+ x: i / 2,
2386
+ y: 0
2387
+ },
2388
+ {
2389
+ x: i,
2390
+ y: -i / 2
2391
+ },
2392
+ {
2393
+ x: i / 2,
2394
+ y: -i
2395
+ },
2396
+ {
2397
+ x: 0,
2398
+ y: -i / 2
2399
+ }
2400
+ ];
2401
+ s.info("Question main (Circle)");
2402
+ let o = Y(n, i, i, a);
2403
+ return o.attr("style", t.style), J(t, o), t.intersect = function(e) {
2404
+ return s.warn("Intersect called"), K.polygon(t, a, e);
2405
+ }, n;
2406
+ }, "question"), Ye = /* @__PURE__ */ c((e, t) => {
2407
+ let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
2408
+ return n.insert("polygon", ":first-child").attr("points", [
2409
+ {
2410
+ x: 0,
2411
+ y: 28 / 2
2412
+ },
2413
+ {
2414
+ x: 28 / 2,
2415
+ y: 0
2416
+ },
2417
+ {
2418
+ x: 0,
2419
+ y: -28 / 2
2420
+ },
2421
+ {
2422
+ x: -28 / 2,
2423
+ y: 0
2424
+ }
2425
+ ].map(function(e) {
2426
+ return e.x + "," + e.y;
2427
+ }).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(e) {
2428
+ return K.circle(t, 14, e);
2429
+ }, n;
2430
+ }, "choice"), Xe = /* @__PURE__ */ c(async (e, t) => {
2431
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = i / 4, o = r.width + 2 * a + t.padding, s = [
2432
+ {
2433
+ x: a,
2434
+ y: 0
2435
+ },
2436
+ {
2437
+ x: o - a,
2438
+ y: 0
2439
+ },
2440
+ {
2441
+ x: o,
2442
+ y: -i / 2
2443
+ },
2444
+ {
2445
+ x: o - a,
2446
+ y: -i
2447
+ },
2448
+ {
2449
+ x: a,
2450
+ y: -i
2451
+ },
2452
+ {
2453
+ x: 0,
2454
+ y: -i / 2
2455
+ }
2456
+ ], c = Y(n, o, i, s);
2457
+ return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2458
+ return K.polygon(t, s, e);
2459
+ }, n;
2460
+ }, "hexagon"), Ze = /* @__PURE__ */ c(async (e, t) => {
2461
+ let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s = Fe(t.directions, r, t), c = Y(n, o, i, s);
2462
+ return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2463
+ return K.polygon(t, s, e);
2464
+ }, n;
2465
+ }, "block_arrow"), Qe = /* @__PURE__ */ c(async (e, t) => {
2466
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2467
+ {
2468
+ x: -a / 2,
2469
+ y: 0
2470
+ },
2471
+ {
2472
+ x: i,
2473
+ y: 0
2474
+ },
2475
+ {
2476
+ x: i,
2477
+ y: -a
2478
+ },
2479
+ {
2480
+ x: -a / 2,
2481
+ y: -a
2482
+ },
2483
+ {
2484
+ x: 0,
2485
+ y: -a / 2
2486
+ }
2487
+ ];
2488
+ return Y(n, i, a, o).attr("style", t.style), t.width = i + a, t.height = a, t.intersect = function(e) {
2489
+ return K.polygon(t, o, e);
2490
+ }, n;
2491
+ }, "rect_left_inv_arrow"), $e = /* @__PURE__ */ c(async (e, t) => {
2492
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2493
+ {
2494
+ x: -2 * a / 6,
2495
+ y: 0
2496
+ },
2497
+ {
2498
+ x: i - a / 6,
2499
+ y: 0
2500
+ },
2501
+ {
2502
+ x: i + 2 * a / 6,
2503
+ y: -a
2504
+ },
2505
+ {
2506
+ x: a / 6,
2507
+ y: -a
2508
+ }
2509
+ ], s = Y(n, i, a, o);
2510
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2511
+ return K.polygon(t, o, e);
2512
+ }, n;
2513
+ }, "lean_right"), et = /* @__PURE__ */ c(async (e, t) => {
2514
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2515
+ {
2516
+ x: 2 * a / 6,
2517
+ y: 0
2518
+ },
2519
+ {
2520
+ x: i + a / 6,
2521
+ y: 0
2522
+ },
2523
+ {
2524
+ x: i - 2 * a / 6,
2525
+ y: -a
2526
+ },
2527
+ {
2528
+ x: -a / 6,
2529
+ y: -a
2530
+ }
2531
+ ], s = Y(n, i, a, o);
2532
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2533
+ return K.polygon(t, o, e);
2534
+ }, n;
2535
+ }, "lean_left"), tt = /* @__PURE__ */ c(async (e, t) => {
2536
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2537
+ {
2538
+ x: -2 * a / 6,
2539
+ y: 0
2540
+ },
2541
+ {
2542
+ x: i + 2 * a / 6,
2543
+ y: 0
2544
+ },
2545
+ {
2546
+ x: i - a / 6,
2547
+ y: -a
2548
+ },
2549
+ {
2550
+ x: a / 6,
2551
+ y: -a
2552
+ }
2553
+ ], s = Y(n, i, a, o);
2554
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2555
+ return K.polygon(t, o, e);
2556
+ }, n;
2557
+ }, "trapezoid"), nt = /* @__PURE__ */ c(async (e, t) => {
2558
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2559
+ {
2560
+ x: a / 6,
2561
+ y: 0
2562
+ },
2563
+ {
2564
+ x: i - a / 6,
2565
+ y: 0
2566
+ },
2567
+ {
2568
+ x: i + 2 * a / 6,
2569
+ y: -a
2570
+ },
2571
+ {
2572
+ x: -2 * a / 6,
2573
+ y: -a
2574
+ }
2575
+ ], s = Y(n, i, a, o);
2576
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2577
+ return K.polygon(t, o, e);
2578
+ }, n;
2579
+ }, "inv_trapezoid"), rt = /* @__PURE__ */ c(async (e, t) => {
2580
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2581
+ {
2582
+ x: 0,
2583
+ y: 0
2584
+ },
2585
+ {
2586
+ x: i + a / 2,
2587
+ y: 0
2588
+ },
2589
+ {
2590
+ x: i,
2591
+ y: -a / 2
2592
+ },
2593
+ {
2594
+ x: i + a / 2,
2595
+ y: -a
2596
+ },
2597
+ {
2598
+ x: 0,
2599
+ y: -a
2600
+ }
2601
+ ], s = Y(n, i, a, o);
2602
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2603
+ return K.polygon(t, o, e);
2604
+ }, n;
2605
+ }, "rect_right_inv_arrow"), it = /* @__PURE__ */ c(async (e, t) => {
2606
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(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;
2607
+ return J(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) {
2608
+ let n = K.rect(t, e), r = n.x - t.x;
2609
+ 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)) {
2610
+ let i = o * o * (1 - r * r / (a * a));
2611
+ i != 0 && (i = Math.sqrt(i)), i = o - i, e.y - t.y > 0 && (i = -i), n.y += i;
2612
+ }
2613
+ return n;
2614
+ }, n;
2615
+ }, "cylinder"), at = /* @__PURE__ */ c(async (e, t) => {
2616
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes + " " + t.class, !0), a = n.insert("rect", ":first-child"), o = t.positioned ? t.width : r.width + t.padding, c = t.positioned ? t.height : r.height + t.padding, l = t.positioned ? -o / 2 : -r.width / 2 - i, u = t.positioned ? -c / 2 : -r.height / 2 - i;
2617
+ if (a.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", u).attr("width", o).attr("height", c), t.props) {
2618
+ let e = new Set(Object.keys(t.props));
2619
+ t.props.borders && (Z(a, t.props.borders, o, c), e.delete("borders")), e.forEach((e) => {
2620
+ s.warn(`Unknown node property ${e}`);
2621
+ });
2622
+ }
2623
+ return J(t, a), t.intersect = function(e) {
2624
+ return K.rect(t, e);
2625
+ }, n;
2626
+ }, "rect"), ot = /* @__PURE__ */ c(async (e, t) => {
2627
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, "node " + t.classes, !0), a = n.insert("rect", ":first-child"), o = t.positioned ? t.width : r.width + t.padding, c = t.positioned ? t.height : r.height + t.padding, l = t.positioned ? -o / 2 : -r.width / 2 - i, u = t.positioned ? -c / 2 : -r.height / 2 - i;
2628
+ if (a.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", u).attr("width", o).attr("height", c), t.props) {
2629
+ let e = new Set(Object.keys(t.props));
2630
+ t.props.borders && (Z(a, t.props.borders, o, c), e.delete("borders")), e.forEach((e) => {
2631
+ s.warn(`Unknown node property ${e}`);
2632
+ });
2633
+ }
2634
+ return J(t, a), t.intersect = function(e) {
2635
+ return K.rect(t, e);
2636
+ }, n;
2637
+ }, "composite"), st = /* @__PURE__ */ c(async (e, t) => {
2638
+ let { shapeSvg: n } = await q(e, t, "label", !0);
2639
+ s.trace("Classes = ", t.class);
2640
+ let r = n.insert("rect", ":first-child");
2641
+ if (r.attr("width", 0).attr("height", 0), n.attr("class", "label edgeLabel"), t.props) {
2642
+ let e = new Set(Object.keys(t.props));
2643
+ t.props.borders && (Z(r, t.props.borders, 0, 0), e.delete("borders")), e.forEach((e) => {
2644
+ s.warn(`Unknown node property ${e}`);
2645
+ });
2646
+ }
2647
+ return J(t, r), t.intersect = function(e) {
2648
+ return K.rect(t, e);
2649
+ }, n;
2650
+ }, "labelRect");
2651
+ function Z(e, t, n, r) {
2652
+ let i = [], a = /* @__PURE__ */ c((e) => {
2653
+ i.push(e, 0);
2654
+ }, "addBorder"), o = /* @__PURE__ */ c((e) => {
2655
+ i.push(0, e);
2656
+ }, "skipBorder");
2657
+ t.includes("t") ? (s.debug("add top border"), a(n)) : o(n), t.includes("r") ? (s.debug("add right border"), a(r)) : o(r), t.includes("b") ? (s.debug("add bottom border"), a(n)) : o(n), t.includes("l") ? (s.debug("add left border"), a(r)) : o(r), e.attr("stroke-dasharray", i.join(" "));
2658
+ }
2659
+ c(Z, "applyNodePropertyBorders");
2660
+ var ct = /* @__PURE__ */ c(async (e, t) => {
2661
+ let n;
2662
+ n = t.classes ? "node " + t.classes : "node default";
2663
+ let r = e.insert("g").attr("class", n).attr("id", t.domId || t.id), i = r.insert("rect", ":first-child"), a = r.insert("line"), o = r.insert("g").attr("class", "label"), c = t.labelText.flat ? t.labelText.flat() : t.labelText, u = "";
2664
+ u = typeof c == "object" ? c[0] : c, s.info("Label text abc79", u, c, typeof c == "object");
2665
+ let d = await V(o, u, t.labelStyle, !0, !0), f = {
2666
+ width: 0,
2667
+ height: 0
2668
+ };
2669
+ if (_(p())) {
2670
+ let e = d.children[0], t = l(d);
2671
+ f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
2672
+ }
2673
+ s.info("Text 2", c);
2674
+ let m = c.slice(1, c.length), h = d.getBBox(), g = await V(o, m.join ? m.join("<br/>") : m, t.labelStyle, !0, !0);
2675
+ if (_(p())) {
2676
+ let e = g.children[0], t = l(g);
2677
+ f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
2678
+ }
2679
+ let v = t.padding / 2;
2680
+ return l(g).attr("transform", "translate( " + (f.width > h.width ? 0 : (h.width - f.width) / 2) + ", " + (h.height + v + 5) + ")"), l(d).attr("transform", "translate( " + (f.width < h.width ? 0 : -(h.width - f.width) / 2) + ", 0)"), f = o.node().getBBox(), o.attr("transform", "translate(" + -f.width / 2 + ", " + (-f.height / 2 - v + 3) + ")"), i.attr("class", "outer title-state").attr("x", -f.width / 2 - v).attr("y", -f.height / 2 - v).attr("width", f.width + t.padding).attr("height", f.height + t.padding), a.attr("class", "divider").attr("x1", -f.width / 2 - v).attr("x2", f.width / 2 + v).attr("y1", -f.height / 2 - v + h.height + v).attr("y2", -f.height / 2 - v + h.height + v), J(t, i), t.intersect = function(e) {
2681
+ return K.rect(t, e);
2682
+ }, r;
2683
+ }, "rectWithTitle"), lt = /* @__PURE__ */ c(async (e, t) => {
2684
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = r.width + i / 4 + t.padding;
2685
+ return J(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) {
2686
+ return K.rect(t, e);
2687
+ }, n;
2688
+ }, "stadium"), ut = /* @__PURE__ */ c(async (e, t) => {
2689
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, X(t, void 0), !0), a = n.insert("circle", ":first-child");
2690
+ return a.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), s.info("Circle main"), J(t, a), t.intersect = function(e) {
2691
+ return s.info("Circle intersect", t, r.width / 2 + i, e), K.circle(t, r.width / 2 + i, e);
2692
+ }, n;
2693
+ }, "circle"), dt = /* @__PURE__ */ c(async (e, t) => {
2694
+ let { shapeSvg: n, bbox: r, halfPadding: i } = await q(e, t, X(t, void 0), !0), a = n.insert("g", ":first-child"), o = a.insert("circle"), c = a.insert("circle");
2695
+ return a.attr("class", t.class), o.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i + 5).attr("width", r.width + t.padding + 10).attr("height", r.height + t.padding + 10), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", r.width / 2 + i).attr("width", r.width + t.padding).attr("height", r.height + t.padding), s.info("DoubleCircle main"), J(t, o), t.intersect = function(e) {
2696
+ return s.info("DoubleCircle intersect", t, r.width / 2 + i + 5, e), K.circle(t, r.width / 2 + i + 5, e);
2697
+ }, n;
2698
+ }, "doublecircle"), ft = /* @__PURE__ */ c(async (e, t) => {
2699
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2700
+ {
2701
+ x: 0,
2702
+ y: 0
2703
+ },
2704
+ {
2705
+ x: i,
2706
+ y: 0
2707
+ },
2708
+ {
2709
+ x: i,
2710
+ y: -a
2711
+ },
2712
+ {
2713
+ x: 0,
2714
+ y: -a
2715
+ },
2716
+ {
2717
+ x: 0,
2718
+ y: 0
2719
+ },
2720
+ {
2721
+ x: -8,
2722
+ y: 0
2723
+ },
2724
+ {
2725
+ x: i + 8,
2726
+ y: 0
2727
+ },
2728
+ {
2729
+ x: i + 8,
2730
+ y: -a
2731
+ },
2732
+ {
2733
+ x: -8,
2734
+ y: -a
2735
+ },
2736
+ {
2737
+ x: -8,
2738
+ y: 0
2739
+ }
2740
+ ], s = Y(n, i, a, o);
2741
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2742
+ return K.polygon(t, o, e);
2743
+ }, n;
2744
+ }, "subroutine"), pt = /* @__PURE__ */ c((e, t) => {
2745
+ let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child");
2746
+ return r.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), J(t, r), t.intersect = function(e) {
2747
+ return K.circle(t, 7, e);
2748
+ }, n;
2749
+ }, "start"), mt = /* @__PURE__ */ c((e, t, n) => {
2750
+ let r = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 70, a = 10;
2751
+ return n === "LR" && (i = 10, a = 70), J(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) {
2752
+ return K.rect(t, e);
2753
+ }, r;
2754
+ }, "forkJoin"), ht = {
2755
+ rhombus: Je,
2756
+ composite: ot,
2757
+ question: Je,
2758
+ rect: at,
2759
+ labelRect: st,
2760
+ rectWithTitle: ct,
2761
+ choice: Ye,
2762
+ circle: ut,
2763
+ doublecircle: dt,
2764
+ stadium: lt,
2765
+ hexagon: Xe,
2766
+ block_arrow: Ze,
2767
+ rect_left_inv_arrow: Qe,
2768
+ lean_right: $e,
2769
+ lean_left: et,
2770
+ trapezoid: tt,
2771
+ inv_trapezoid: nt,
2772
+ rect_right_inv_arrow: rt,
2773
+ cylinder: it,
2774
+ start: pt,
2775
+ end: /* @__PURE__ */ c((e, t) => {
2776
+ 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");
2777
+ 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), J(t, i), t.intersect = function(e) {
2778
+ return K.circle(t, 7, e);
2779
+ }, n;
2780
+ }, "end"),
2781
+ note: Ke,
2782
+ subroutine: ft,
2783
+ fork: mt,
2784
+ join: mt,
2785
+ class_box: /* @__PURE__ */ c(async (e, t) => {
2786
+ var n;
2787
+ let r = t.padding / 2, i;
2788
+ i = t.classes ? "node " + t.classes : "node default";
2789
+ let a = e.insert("g").attr("class", i).attr("id", t.domId || t.id), o = a.insert("rect", ":first-child"), s = a.insert("line"), c = a.insert("line"), u = 0, d = 4, f = a.insert("g").attr("class", "label"), m = 0, h = (n = t.classData.annotations) == null ? void 0 : n[0], g = await V(f, t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", t.labelStyle, !0, !0), v = g.getBBox();
2790
+ if (_(p())) {
2791
+ let e = g.children[0], t = l(g);
2792
+ v = e.getBoundingClientRect(), t.attr("width", v.width), t.attr("height", v.height);
2793
+ }
2794
+ t.classData.annotations[0] && (d += v.height + 4, u += v.width);
2795
+ let y = t.classData.label;
2796
+ t.classData.type !== void 0 && t.classData.type !== "" && (_(p()) ? y += "&lt;" + t.classData.type + "&gt;" : y += "<" + t.classData.type + ">");
2797
+ let b = await V(f, y, t.labelStyle, !0, !0);
2798
+ l(b).attr("class", "classTitle");
2799
+ let x = b.getBBox();
2800
+ if (_(p())) {
2801
+ let e = b.children[0], t = l(b);
2802
+ x = e.getBoundingClientRect(), t.attr("width", x.width), t.attr("height", x.height);
2803
+ }
2804
+ d += x.height + 4, x.width > u && (u = x.width);
2805
+ let S = [];
2806
+ t.classData.members.forEach(async (e) => {
2807
+ let n = e.getDisplayDetails(), r = n.displayText;
2808
+ _(p()) && (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2809
+ let i = await V(f, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
2810
+ if (_(p())) {
2811
+ let e = i.children[0], t = l(i);
2812
+ a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
2813
+ }
2814
+ a.width > u && (u = a.width), d += a.height + 4, S.push(i);
2815
+ }), d += 8;
2816
+ let C = [];
2817
+ if (t.classData.methods.forEach(async (e) => {
2818
+ let n = e.getDisplayDetails(), r = n.displayText;
2819
+ _(p()) && (r = r.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2820
+ let i = await V(f, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
2821
+ if (_(p())) {
2822
+ let e = i.children[0], t = l(i);
2823
+ a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
2824
+ }
2825
+ a.width > u && (u = a.width), d += a.height + 4, C.push(i);
2826
+ }), d += 8, h) {
2827
+ let e = (u - v.width) / 2;
2828
+ l(g).attr("transform", "translate( " + (-1 * u / 2 + e) + ", " + -1 * d / 2 + ")"), m = v.height + 4;
2829
+ }
2830
+ let w = (u - x.width) / 2;
2831
+ return l(b).attr("transform", "translate( " + (-1 * u / 2 + w) + ", " + (-1 * d / 2 + m) + ")"), m += x.height + 4, s.attr("class", "divider").attr("x1", -u / 2 - r).attr("x2", u / 2 + r).attr("y1", -d / 2 - r + 8 + m).attr("y2", -d / 2 - r + 8 + m), m += 8, S.forEach((e) => {
2832
+ var t;
2833
+ l(e).attr("transform", "translate( " + -u / 2 + ", " + (-1 * d / 2 + m + 8 / 2) + ")");
2834
+ let n = e == null ? void 0 : e.getBBox();
2835
+ m += ((t = n == null ? void 0 : n.height) == null ? 0 : t) + 4;
2836
+ }), m += 8, c.attr("class", "divider").attr("x1", -u / 2 - r).attr("x2", u / 2 + r).attr("y1", -d / 2 - r + 8 + m).attr("y2", -d / 2 - r + 8 + m), m += 8, C.forEach((e) => {
2837
+ var t;
2838
+ l(e).attr("transform", "translate( " + -u / 2 + ", " + (-1 * d / 2 + m) + ")");
2839
+ let n = e == null ? void 0 : e.getBBox();
2840
+ m += ((t = n == null ? void 0 : n.height) == null ? 0 : t) + 4;
2841
+ }), o.attr("style", t.style).attr("class", "outer title-state").attr("x", -u / 2 - r).attr("y", -(d / 2) - r).attr("width", u + t.padding).attr("height", d + t.padding), J(t, o), t.intersect = function(e) {
2842
+ return K.rect(t, e);
2843
+ }, a;
2844
+ }, "class_box")
2845
+ }, Q = {}, gt = /* @__PURE__ */ c(async (e, t, n) => {
2846
+ let r, i;
2847
+ if (t.link) {
2848
+ let a;
2849
+ p().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await ht[t.shape](r, t, n);
2850
+ } else i = await ht[t.shape](e, t, n), r = i;
2851
+ return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), Q[t.id] = r, t.haveCallback && Q[t.id].attr("class", Q[t.id].attr("class") + " clickable"), r;
2852
+ }, "insertNode"), _t = /* @__PURE__ */ c((e) => {
2853
+ let t = Q[e.id];
2854
+ s.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
2855
+ let n = e.diff || 0;
2856
+ return e.clusterNode ? t.attr("transform", "translate(" + (e.x + n - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), n;
2857
+ }, "positionNode");
2858
+ function vt(e, t, r = !1) {
2859
+ var i, a, o, s, c, l;
2860
+ let u = e, d = "default";
2861
+ if (((u == null || (i = u.classes) == null ? void 0 : i.length) || 0) > 0) {
2862
+ var f;
2863
+ d = ((f = u == null ? void 0 : u.classes) == null ? [] : f).join(" ");
2864
+ }
2865
+ d += " flowchart-label";
2866
+ let p = 0, m = "", h;
2867
+ switch (u.type) {
2868
+ case "round":
2869
+ p = 5, m = "rect";
2870
+ break;
2871
+ case "composite":
2872
+ p = 0, m = "composite", h = 0;
2873
+ break;
2874
+ case "square":
2875
+ m = "rect";
2876
+ break;
2877
+ case "diamond":
2878
+ m = "question";
2879
+ break;
2880
+ case "hexagon":
2881
+ m = "hexagon";
2882
+ break;
2883
+ case "block_arrow":
2884
+ m = "block_arrow";
2885
+ break;
2886
+ case "odd":
2887
+ m = "rect_left_inv_arrow";
2888
+ break;
2889
+ case "lean_right":
2890
+ m = "lean_right";
2891
+ break;
2892
+ case "lean_left":
2893
+ m = "lean_left";
2894
+ break;
2895
+ case "trapezoid":
2896
+ m = "trapezoid";
2897
+ break;
2898
+ case "inv_trapezoid":
2899
+ m = "inv_trapezoid";
2900
+ break;
2901
+ case "rect_left_inv_arrow":
2902
+ m = "rect_left_inv_arrow";
2903
+ break;
2904
+ case "circle":
2905
+ m = "circle";
2906
+ break;
2907
+ case "ellipse":
2908
+ m = "ellipse";
2909
+ break;
2910
+ case "stadium":
2911
+ m = "stadium";
2912
+ break;
2913
+ case "subroutine":
2914
+ m = "subroutine";
2915
+ break;
2916
+ case "cylinder":
2917
+ m = "cylinder";
2918
+ break;
2919
+ case "group":
2920
+ m = "rect";
2921
+ break;
2922
+ case "doublecircle":
2923
+ m = "doublecircle";
2924
+ break;
2925
+ default: m = "rect";
2926
+ }
2927
+ let g = n((a = u == null ? void 0 : u.styles) == null ? [] : a), _ = u.label, y = (o = u.size) == null ? {
2928
+ width: 0,
2929
+ height: 0,
2930
+ x: 0,
2931
+ y: 0
2932
+ } : o, b = t.getDiagramId();
2933
+ return {
2934
+ labelStyle: g.labelStyle,
2935
+ shape: m,
2936
+ labelText: _,
2937
+ rx: p,
2938
+ ry: p,
2939
+ class: d,
2940
+ style: g.style,
2941
+ id: u.id,
2942
+ domId: b ? `${b}-${u.id}` : u.id,
2943
+ directions: u.directions,
2944
+ width: y.width,
2945
+ height: y.height,
2946
+ x: y.x,
2947
+ y: y.y,
2948
+ positioned: r,
2949
+ intersect: void 0,
2950
+ type: u.type,
2951
+ padding: (s = (c = h) == null ? (l = v()) == null || (l = l.block) == null ? void 0 : l.padding : c) == null ? 0 : s
2952
+ };
2953
+ }
2954
+ c(vt, "getNodeFromBlock");
2955
+ async function yt(e, t, n) {
2956
+ let r = vt(t, n, !1);
2957
+ if (r.type === "group") return;
2958
+ let i = await gt(e, r, { config: v() }), a = i.node().getBBox(), o = n.getBlock(r.id);
2959
+ o.size = {
2960
+ width: a.width,
2961
+ height: a.height,
2962
+ x: 0,
2963
+ y: 0,
2964
+ node: i
2965
+ }, n.setBlock(o), i.remove();
2966
+ }
2967
+ c(yt, "calculateBlockSize");
2968
+ async function bt(e, t, n) {
2969
+ let r = vt(t, n, !0);
2970
+ n.getBlock(r.id).type !== "space" && (await gt(e, r, { config: v() }), t.intersect = r == null ? void 0 : r.intersect, _t(r));
2971
+ }
2972
+ c(bt, "insertBlockPositioned");
2973
+ async function $(e, t, n, r) {
2974
+ for (let i of t) await r(e, i, n), i.children && await $(e, i.children, n, r);
2975
+ }
2976
+ c($, "performOperations");
2977
+ async function xt(e, t, n) {
2978
+ await $(e, t, n, yt);
2979
+ }
2980
+ c(xt, "calculateBlockSizes");
2981
+ async function St(e, t, n) {
2982
+ await $(e, t, n, bt);
2983
+ }
2984
+ c(St, "insertBlocks");
2985
+ async function Ct(t, n, r, i, a) {
2986
+ let s = new o({
2987
+ multigraph: !0,
2988
+ compound: !0
2989
+ });
2990
+ s.setGraph({
2991
+ rankdir: "TB",
2992
+ nodesep: 10,
2993
+ ranksep: 10,
2994
+ marginx: 8,
2995
+ marginy: 8
2996
+ });
2997
+ for (let e of r) e.size && s.setNode(e.id, {
2998
+ width: e.size.width,
2999
+ height: e.size.height,
3000
+ intersect: e.intersect
3001
+ });
3002
+ for (let r of n) if (r.start && r.end) {
3003
+ let n = i.getBlock(r.start), o = i.getBlock(r.end);
3004
+ if (n != null && n.size && o != null && o.size) {
3005
+ let i = n.size, c = o.size, l = [
3006
+ {
3007
+ x: i.x,
3008
+ y: i.y
3009
+ },
3010
+ {
3011
+ x: i.x + (c.x - i.x) / 2,
3012
+ y: i.y + (c.y - i.y) / 2
3013
+ },
3014
+ {
3015
+ x: c.x,
3016
+ y: c.y
3017
+ }
3018
+ ], u = a ? `${a}-${r.id}` : r.id;
3019
+ Ne(t, {
3020
+ v: r.start,
3021
+ w: r.end,
3022
+ name: u
3023
+ }, e(e({}, r), {}, {
3024
+ id: u,
3025
+ arrowTypeEnd: r.arrowTypeEnd,
3026
+ arrowTypeStart: r.arrowTypeStart,
3027
+ points: l,
3028
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3029
+ }), void 0, "block", s, a), r.label && (await Oe(t, e(e({}, r), {}, {
3030
+ label: r.label,
3031
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
3032
+ arrowTypeEnd: r.arrowTypeEnd,
3033
+ arrowTypeStart: r.arrowTypeStart,
3034
+ points: l,
3035
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3036
+ })), ke(e(e({}, r), {}, {
3037
+ x: l[1].x,
3038
+ y: l[1].y
3039
+ }), { originalPath: l }));
3040
+ }
3041
+ }
3042
+ }
3043
+ c(Ct, "insertEdges");
3044
+ var wt = {
3045
+ parser: A,
3046
+ db: he,
3047
+ renderer: {
3048
+ draw: /* @__PURE__ */ c(async function(e, t, n, r) {
3049
+ let { securityLevel: i, block: a } = v(), o = r.db;
3050
+ o.setDiagramId(t);
3051
+ let c;
3052
+ i === "sandbox" && (c = l("#i" + t));
3053
+ let u = l(i === "sandbox" ? c.nodes()[0].contentDocument.body : "body"), d = i === "sandbox" ? u.select(`[id="${t}"]`) : l(`[id="${t}"]`);
3054
+ ye(d, [
3055
+ "point",
3056
+ "circle",
3057
+ "cross"
3058
+ ], r.type, t);
3059
+ let f = o.getBlocks(), p = o.getBlocksFlat(), h = o.getEdges(), g = d.insert("g").attr("class", "block");
3060
+ await xt(g, f, o);
3061
+ let _ = we(o);
3062
+ if (await St(g, f, o), await Ct(g, h, p, o, t), _) {
3063
+ let e = _, t = Math.max(1, Math.round(.125 * (e.width / e.height))), n = e.height + t + 10, r = e.width + 10, { useMaxWidth: i } = a;
3064
+ m(d, n, r, !!i), s.debug("Here Bounds", _, e), d.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
3065
+ }
3066
+ }, "draw"),
3067
+ getClasses: /* @__PURE__ */ c(function(e, t) {
3068
+ return t.db.getClasses();
3069
+ }, "getClasses")
3070
+ },
3071
+ styles: ge
3072
+ };
3073
+ //#endregion
3074
+ export { wt as diagram };