mio-previewer 0.2.74 → 0.2.77

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 (277) hide show
  1. package/dist/_basePickBy-CXmXW7jd.js +166 -0
  2. package/dist/_basePickBy-CtuVwROD.cjs +1 -0
  3. package/dist/_baseUniq-CGoiOkSa.js +682 -0
  4. package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
  5. package/dist/_createAssigner-DqH64jc7.cjs +1 -0
  6. package/dist/_createAssigner-IEX8lwxm.js +573 -0
  7. package/dist/arc-C78br9Yj.cjs +1 -0
  8. package/dist/arc-vLgDTVZZ.js +80 -0
  9. package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
  10. package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
  11. package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
  12. package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
  13. package/dist/array-CApNbSU9.js +6 -0
  14. package/dist/array-DZSRzHA_.cjs +1 -0
  15. package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
  16. package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
  17. package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
  18. package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
  19. package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
  20. package/dist/channel-BWHkpgVD.cjs +1 -0
  21. package/dist/channel-JT7eWw2w.js +5 -0
  22. package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
  23. package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
  24. package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
  25. package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
  26. package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
  27. package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
  28. package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
  29. package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
  30. package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
  31. package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
  32. package/dist/chunk-BNMv73og.cjs +1 -0
  33. package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
  34. package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
  35. package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
  36. package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
  37. package/dist/chunk-Dbv0sNQl.js +20 -0
  38. package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
  39. package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
  40. package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
  41. package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
  42. package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
  43. package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
  44. package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
  45. package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
  46. package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
  47. package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
  48. package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
  49. package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
  50. package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
  51. package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
  52. package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
  53. package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
  54. package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
  55. package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
  56. package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
  57. package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
  58. package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
  59. package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
  60. package/dist/clone-B0KDIkSS.js +8 -0
  61. package/dist/clone-wvtBTB6v.cjs +1 -0
  62. package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
  63. package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
  64. package/dist/custom-Bl_fVJZ0.cjs +84 -0
  65. package/dist/custom-D-TzPpWT.js +5281 -0
  66. package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
  67. package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
  68. package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
  69. package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
  70. package/dist/dagre-BfAHSwtP.js +1472 -0
  71. package/dist/dagre-Buvkww-e.cjs +1 -0
  72. package/dist/defaultLocale-B5dSAwiC.js +201 -0
  73. package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
  74. package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
  75. package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
  76. package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
  77. package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
  78. package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
  79. package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
  80. package/dist/dist-DC-lM4uX.cjs +1 -0
  81. package/dist/dist-zNcLEPGR.js +51 -0
  82. package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
  83. package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
  84. package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
  85. package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
  86. package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
  87. package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
  88. package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
  89. package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
  90. package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
  91. package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
  92. package/dist/graphlib-C3tPLMbC.js +225 -0
  93. package/dist/graphlib-Cdg0u3TT.cjs +1 -0
  94. package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
  95. package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
  96. package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
  97. package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
  98. package/dist/init-07zIhv_j.cjs +1 -0
  99. package/dist/init-Bwwdo3M6.js +15 -0
  100. package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
  101. package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
  102. package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
  103. package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
  104. package/dist/katex-6UpFeIdV.cjs +261 -0
  105. package/dist/katex-BHcJffnM.js +22112 -0
  106. package/dist/line-DYhVGH2B.js +34 -0
  107. package/dist/line-DdNAPGaw.cjs +1 -0
  108. package/dist/linear-n4_iirEu.js +289 -0
  109. package/dist/linear-rQLpRrSH.cjs +1 -0
  110. package/dist/loadCss-D6257oR0.js +8 -0
  111. package/dist/loadCss-DhrQh6-A.cjs +1 -0
  112. package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
  113. package/dist/markdown-it-D-hH4G7k.js +173 -0
  114. package/dist/math-G8rF7UWn.cjs +1 -0
  115. package/dist/math-H49DsxYR.js +10 -0
  116. package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
  117. package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
  118. package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
  119. package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
  120. package/dist/mio-previewer.cjs.js +11 -21
  121. package/dist/mio-previewer.css +2 -9
  122. package/dist/mio-previewer.es.js +4915 -6147
  123. package/dist/ordinal-C55HfHHp.js +65 -0
  124. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  125. package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
  126. package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
  127. package/dist/path-DNvJyUE8.js +85 -0
  128. package/dist/path-Kklx0M1v.cjs +1 -0
  129. package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
  130. package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
  131. package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
  132. package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
  133. package/dist/plugins/custom.cjs.js +1 -1
  134. package/dist/plugins/custom.es.js +2 -85
  135. package/dist/plugins/markdown-it.cjs.js +1 -3
  136. package/dist/plugins/markdown-it.es.js +2 -173
  137. package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
  138. package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
  139. package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
  140. package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
  141. package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
  142. package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
  143. package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
  144. package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
  145. package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
  146. package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
  147. package/dist/src-BMjps4Ui.cjs +1 -0
  148. package/dist/src-BuisGndr.js +2149 -0
  149. package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
  150. package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
  151. package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
  152. package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
  153. package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
  154. package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
  155. package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
  156. package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
  157. package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
  158. package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
  159. package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
  160. package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
  161. package/package.json +2 -2
  162. package/dist/_basePickBy-Be3yyf2d.js +0 -151
  163. package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
  164. package/dist/_baseUniq-BXkA0Pgx.js +0 -614
  165. package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
  166. package/dist/arc-B-QGG8RZ.cjs +0 -1
  167. package/dist/arc-djW14lrn.js +0 -83
  168. package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
  169. package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
  170. package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
  171. package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
  172. package/dist/assets/parser.worker-67NQKZt5.js +0 -16
  173. package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
  174. package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
  175. package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
  176. package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
  177. package/dist/channel-D_ITz6Jy.cjs +0 -1
  178. package/dist/channel-sXy9EduO.js +0 -5
  179. package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
  180. package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
  181. package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
  182. package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
  183. package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
  184. package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
  185. package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
  186. package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
  187. package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
  188. package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
  189. package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
  190. package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
  191. package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
  192. package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
  193. package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
  194. package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
  195. package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
  196. package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
  197. package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
  198. package/dist/clone-DOYxaT_d.js +0 -8
  199. package/dist/clone-DSlm33NG.cjs +0 -1
  200. package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
  201. package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
  202. package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
  203. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  204. package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
  205. package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
  206. package/dist/defaultLocale-D7EN2tov.js +0 -171
  207. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  208. package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
  209. package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
  210. package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
  211. package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
  212. package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
  213. package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
  214. package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
  215. package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
  216. package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
  217. package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
  218. package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
  219. package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
  220. package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
  221. package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
  222. package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
  223. package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
  224. package/dist/graph-DEnt0OtZ.js +0 -247
  225. package/dist/graph-Dgcjs2XL.cjs +0 -1
  226. package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
  227. package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
  228. package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
  229. package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
  230. package/dist/init-CHZsXQcr.cjs +0 -1
  231. package/dist/init-DjUOC4st.js +0 -16
  232. package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
  233. package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
  234. package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
  235. package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
  236. package/dist/katex-CmGeg_OO.js +0 -11692
  237. package/dist/katex-DEiiRhcn.cjs +0 -261
  238. package/dist/layout-BDNzBIaA.cjs +0 -1
  239. package/dist/layout-DTBfbHzy.js +0 -1324
  240. package/dist/linear-BRl2UYUr.cjs +0 -1
  241. package/dist/linear-CwbXkgvF.js +0 -259
  242. package/dist/loadCss-BbD6mdv-.cjs +0 -1
  243. package/dist/loadCss-DS0Fuaxe.js +0 -8
  244. package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
  245. package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
  246. package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
  247. package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
  248. package/dist/ordinal-CagbB1m8.cjs +0 -1
  249. package/dist/ordinal-DfAQgscy.js +0 -61
  250. package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
  251. package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
  252. package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
  253. package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
  254. package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
  255. package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
  256. package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
  257. package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
  258. package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
  259. package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
  260. package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
  261. package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
  262. package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
  263. package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
  264. package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
  265. package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
  266. package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
  267. package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
  268. package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
  269. package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
  270. package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
  271. package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
  272. package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
  273. package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
  274. package/dist/viewer-CZUSHxhf.js +0 -19131
  275. package/dist/viewer-Canph5Zx.cjs +0 -305
  276. package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
  277. package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
@@ -0,0 +1,1600 @@
1
+ import { c as e, l as t } from "./custom-D-TzPpWT.js";
2
+ import { g as n, h as r, m as i, p as a } from "./src-BuisGndr.js";
3
+ import { B as o, C as s, U as c, _ as l, a as u, b as d, et as f, v as p, z as m } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
4
+ import { t as h } from "./channel-JT7eWw2w.js";
5
+ import { h as g, s as _ } from "./chunk-S3R3BYOJ-CG6GoSCd.js";
6
+ import "./chunk-HN2XXSSU-CJL8wAZ2.js";
7
+ import "./chunk-CVBHYZKI-CiCGetln.js";
8
+ import "./chunk-ATLVNIR6-DHlCNWnJ.js";
9
+ import "./chunk-JA3XYJ7Z-CpKHrbOX.js";
10
+ import "./chunk-JZLCHNYA-CYo7ykJf.js";
11
+ import "./chunk-QXUST7PY-CxCAwQqP.js";
12
+ import { t as v } from "./chunk-55IACEB6-DWUqxxdp.js";
13
+ import { t as y } from "./chunk-QN33PNHL-BFbXAWI4.js";
14
+ //#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.mjs
15
+ var b = (function() {
16
+ var e = /* @__PURE__ */ r(function(e, t, n, r) {
17
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
18
+ return n;
19
+ }, "o"), t = [
20
+ 6,
21
+ 8,
22
+ 10,
23
+ 22,
24
+ 24,
25
+ 26,
26
+ 28,
27
+ 33,
28
+ 34,
29
+ 35,
30
+ 36,
31
+ 37,
32
+ 40,
33
+ 43,
34
+ 44,
35
+ 50
36
+ ], n = [1, 10], i = [1, 11], a = [1, 12], o = [1, 13], s = [1, 20], c = [1, 21], l = [1, 22], u = [1, 23], d = [1, 24], f = [1, 19], p = [1, 25], m = [1, 26], h = [1, 18], g = [1, 33], _ = [1, 34], v = [1, 35], y = [1, 36], b = [1, 37], x = [
37
+ 6,
38
+ 8,
39
+ 10,
40
+ 13,
41
+ 15,
42
+ 17,
43
+ 20,
44
+ 21,
45
+ 22,
46
+ 24,
47
+ 26,
48
+ 28,
49
+ 33,
50
+ 34,
51
+ 35,
52
+ 36,
53
+ 37,
54
+ 40,
55
+ 43,
56
+ 44,
57
+ 50,
58
+ 63,
59
+ 64,
60
+ 65,
61
+ 66,
62
+ 67
63
+ ], S = [1, 42], C = [1, 43], w = [1, 52], T = [
64
+ 40,
65
+ 50,
66
+ 68,
67
+ 69
68
+ ], E = [1, 63], D = [1, 61], O = [1, 58], k = [1, 62], A = [1, 64], j = [
69
+ 6,
70
+ 8,
71
+ 10,
72
+ 13,
73
+ 17,
74
+ 22,
75
+ 24,
76
+ 26,
77
+ 28,
78
+ 33,
79
+ 34,
80
+ 35,
81
+ 36,
82
+ 37,
83
+ 40,
84
+ 41,
85
+ 42,
86
+ 43,
87
+ 44,
88
+ 48,
89
+ 49,
90
+ 50,
91
+ 63,
92
+ 64,
93
+ 65,
94
+ 66,
95
+ 67
96
+ ], M = [
97
+ 63,
98
+ 64,
99
+ 65,
100
+ 66,
101
+ 67
102
+ ], N = [1, 81], P = [1, 80], F = [1, 78], I = [1, 79], L = [
103
+ 6,
104
+ 10,
105
+ 42,
106
+ 47
107
+ ], R = [
108
+ 6,
109
+ 10,
110
+ 13,
111
+ 41,
112
+ 42,
113
+ 47,
114
+ 48,
115
+ 49
116
+ ], z = [1, 89], B = [1, 88], V = [1, 87], H = [19, 56], U = [1, 98], W = [1, 97], G = [
117
+ 19,
118
+ 56,
119
+ 58,
120
+ 60
121
+ ], K = {
122
+ trace: /* @__PURE__ */ r(function() {}, "trace"),
123
+ yy: {},
124
+ symbols_: {
125
+ error: 2,
126
+ start: 3,
127
+ ER_DIAGRAM: 4,
128
+ document: 5,
129
+ EOF: 6,
130
+ line: 7,
131
+ SPACE: 8,
132
+ statement: 9,
133
+ NEWLINE: 10,
134
+ entityName: 11,
135
+ relSpec: 12,
136
+ COLON: 13,
137
+ role: 14,
138
+ STYLE_SEPARATOR: 15,
139
+ idList: 16,
140
+ BLOCK_START: 17,
141
+ attributes: 18,
142
+ BLOCK_STOP: 19,
143
+ SQS: 20,
144
+ SQE: 21,
145
+ title: 22,
146
+ title_value: 23,
147
+ acc_title: 24,
148
+ acc_title_value: 25,
149
+ acc_descr: 26,
150
+ acc_descr_value: 27,
151
+ acc_descr_multiline_value: 28,
152
+ direction: 29,
153
+ classDefStatement: 30,
154
+ classStatement: 31,
155
+ styleStatement: 32,
156
+ direction_tb: 33,
157
+ direction_bt: 34,
158
+ direction_rl: 35,
159
+ direction_lr: 36,
160
+ CLASSDEF: 37,
161
+ stylesOpt: 38,
162
+ separator: 39,
163
+ UNICODE_TEXT: 40,
164
+ STYLE_TEXT: 41,
165
+ COMMA: 42,
166
+ CLASS: 43,
167
+ STYLE: 44,
168
+ style: 45,
169
+ styleComponent: 46,
170
+ SEMI: 47,
171
+ NUM: 48,
172
+ BRKT: 49,
173
+ ENTITY_NAME: 50,
174
+ attribute: 51,
175
+ attributeType: 52,
176
+ attributeName: 53,
177
+ attributeKeyTypeList: 54,
178
+ attributeComment: 55,
179
+ ATTRIBUTE_WORD: 56,
180
+ attributeKeyType: 57,
181
+ ",": 58,
182
+ ATTRIBUTE_KEY: 59,
183
+ COMMENT: 60,
184
+ cardinality: 61,
185
+ relType: 62,
186
+ ZERO_OR_ONE: 63,
187
+ ZERO_OR_MORE: 64,
188
+ ONE_OR_MORE: 65,
189
+ ONLY_ONE: 66,
190
+ MD_PARENT: 67,
191
+ NON_IDENTIFYING: 68,
192
+ IDENTIFYING: 69,
193
+ WORD: 70,
194
+ $accept: 0,
195
+ $end: 1
196
+ },
197
+ terminals_: {
198
+ 2: "error",
199
+ 4: "ER_DIAGRAM",
200
+ 6: "EOF",
201
+ 8: "SPACE",
202
+ 10: "NEWLINE",
203
+ 13: "COLON",
204
+ 15: "STYLE_SEPARATOR",
205
+ 17: "BLOCK_START",
206
+ 19: "BLOCK_STOP",
207
+ 20: "SQS",
208
+ 21: "SQE",
209
+ 22: "title",
210
+ 23: "title_value",
211
+ 24: "acc_title",
212
+ 25: "acc_title_value",
213
+ 26: "acc_descr",
214
+ 27: "acc_descr_value",
215
+ 28: "acc_descr_multiline_value",
216
+ 33: "direction_tb",
217
+ 34: "direction_bt",
218
+ 35: "direction_rl",
219
+ 36: "direction_lr",
220
+ 37: "CLASSDEF",
221
+ 40: "UNICODE_TEXT",
222
+ 41: "STYLE_TEXT",
223
+ 42: "COMMA",
224
+ 43: "CLASS",
225
+ 44: "STYLE",
226
+ 47: "SEMI",
227
+ 48: "NUM",
228
+ 49: "BRKT",
229
+ 50: "ENTITY_NAME",
230
+ 56: "ATTRIBUTE_WORD",
231
+ 58: ",",
232
+ 59: "ATTRIBUTE_KEY",
233
+ 60: "COMMENT",
234
+ 63: "ZERO_OR_ONE",
235
+ 64: "ZERO_OR_MORE",
236
+ 65: "ONE_OR_MORE",
237
+ 66: "ONLY_ONE",
238
+ 67: "MD_PARENT",
239
+ 68: "NON_IDENTIFYING",
240
+ 69: "IDENTIFYING",
241
+ 70: "WORD"
242
+ },
243
+ productions_: [
244
+ 0,
245
+ [3, 3],
246
+ [5, 0],
247
+ [5, 2],
248
+ [7, 2],
249
+ [7, 1],
250
+ [7, 1],
251
+ [7, 1],
252
+ [9, 5],
253
+ [9, 9],
254
+ [9, 7],
255
+ [9, 7],
256
+ [9, 4],
257
+ [9, 6],
258
+ [9, 3],
259
+ [9, 5],
260
+ [9, 1],
261
+ [9, 3],
262
+ [9, 7],
263
+ [9, 9],
264
+ [9, 6],
265
+ [9, 8],
266
+ [9, 4],
267
+ [9, 6],
268
+ [9, 2],
269
+ [9, 2],
270
+ [9, 2],
271
+ [9, 1],
272
+ [9, 1],
273
+ [9, 1],
274
+ [9, 1],
275
+ [9, 1],
276
+ [29, 1],
277
+ [29, 1],
278
+ [29, 1],
279
+ [29, 1],
280
+ [30, 4],
281
+ [16, 1],
282
+ [16, 1],
283
+ [16, 3],
284
+ [16, 3],
285
+ [31, 3],
286
+ [32, 4],
287
+ [38, 1],
288
+ [38, 3],
289
+ [45, 1],
290
+ [45, 2],
291
+ [39, 1],
292
+ [39, 1],
293
+ [39, 1],
294
+ [46, 1],
295
+ [46, 1],
296
+ [46, 1],
297
+ [46, 1],
298
+ [11, 1],
299
+ [11, 1],
300
+ [18, 1],
301
+ [18, 2],
302
+ [51, 2],
303
+ [51, 3],
304
+ [51, 3],
305
+ [51, 4],
306
+ [52, 1],
307
+ [53, 1],
308
+ [54, 1],
309
+ [54, 3],
310
+ [57, 1],
311
+ [55, 1],
312
+ [12, 3],
313
+ [61, 1],
314
+ [61, 1],
315
+ [61, 1],
316
+ [61, 1],
317
+ [61, 1],
318
+ [62, 1],
319
+ [62, 1],
320
+ [14, 1],
321
+ [14, 1],
322
+ [14, 1]
323
+ ],
324
+ performAction: /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
325
+ var s = a.length - 1;
326
+ switch (i) {
327
+ case 1: break;
328
+ case 2:
329
+ this.$ = [];
330
+ break;
331
+ case 3:
332
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
333
+ break;
334
+ case 4:
335
+ case 5:
336
+ this.$ = a[s];
337
+ break;
338
+ case 6:
339
+ case 7:
340
+ this.$ = [];
341
+ break;
342
+ case 8:
343
+ r.addEntity(a[s - 4]), r.addEntity(a[s - 2]), r.addRelationship(a[s - 4], a[s], a[s - 2], a[s - 3]);
344
+ break;
345
+ case 9:
346
+ r.addEntity(a[s - 8]), r.addEntity(a[s - 4]), r.addRelationship(a[s - 8], a[s], a[s - 4], a[s - 5]), r.setClass([a[s - 8]], a[s - 6]), r.setClass([a[s - 4]], a[s - 2]);
347
+ break;
348
+ case 10:
349
+ r.addEntity(a[s - 6]), r.addEntity(a[s - 2]), r.addRelationship(a[s - 6], a[s], a[s - 2], a[s - 3]), r.setClass([a[s - 6]], a[s - 4]);
350
+ break;
351
+ case 11:
352
+ r.addEntity(a[s - 6]), r.addEntity(a[s - 4]), r.addRelationship(a[s - 6], a[s], a[s - 4], a[s - 5]), r.setClass([a[s - 4]], a[s - 2]);
353
+ break;
354
+ case 12:
355
+ r.addEntity(a[s - 3]), r.addAttributes(a[s - 3], a[s - 1]);
356
+ break;
357
+ case 13:
358
+ r.addEntity(a[s - 5]), r.addAttributes(a[s - 5], a[s - 1]), r.setClass([a[s - 5]], a[s - 3]);
359
+ break;
360
+ case 14:
361
+ r.addEntity(a[s - 2]);
362
+ break;
363
+ case 15:
364
+ r.addEntity(a[s - 4]), r.setClass([a[s - 4]], a[s - 2]);
365
+ break;
366
+ case 16:
367
+ r.addEntity(a[s]);
368
+ break;
369
+ case 17:
370
+ r.addEntity(a[s - 2]), r.setClass([a[s - 2]], a[s]);
371
+ break;
372
+ case 18:
373
+ r.addEntity(a[s - 6], a[s - 4]), r.addAttributes(a[s - 6], a[s - 1]);
374
+ break;
375
+ case 19:
376
+ r.addEntity(a[s - 8], a[s - 6]), r.addAttributes(a[s - 8], a[s - 1]), r.setClass([a[s - 8]], a[s - 3]);
377
+ break;
378
+ case 20:
379
+ r.addEntity(a[s - 5], a[s - 3]);
380
+ break;
381
+ case 21:
382
+ r.addEntity(a[s - 7], a[s - 5]), r.setClass([a[s - 7]], a[s - 2]);
383
+ break;
384
+ case 22:
385
+ r.addEntity(a[s - 3], a[s - 1]);
386
+ break;
387
+ case 23:
388
+ r.addEntity(a[s - 5], a[s - 3]), r.setClass([a[s - 5]], a[s]);
389
+ break;
390
+ case 24:
391
+ case 25:
392
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
393
+ break;
394
+ case 26:
395
+ case 27:
396
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
397
+ break;
398
+ case 32:
399
+ r.setDirection("TB");
400
+ break;
401
+ case 33:
402
+ r.setDirection("BT");
403
+ break;
404
+ case 34:
405
+ r.setDirection("RL");
406
+ break;
407
+ case 35:
408
+ r.setDirection("LR");
409
+ break;
410
+ case 36:
411
+ this.$ = a[s - 3], r.addClass(a[s - 2], a[s - 1]);
412
+ break;
413
+ case 37:
414
+ case 38:
415
+ case 56:
416
+ case 64:
417
+ this.$ = [a[s]];
418
+ break;
419
+ case 39:
420
+ case 40:
421
+ this.$ = a[s - 2].concat([a[s]]);
422
+ break;
423
+ case 41:
424
+ this.$ = a[s - 2], r.setClass(a[s - 1], a[s]);
425
+ break;
426
+ case 42:
427
+ this.$ = a[s - 3], r.addCssStyles(a[s - 2], a[s - 1]);
428
+ break;
429
+ case 43:
430
+ this.$ = [a[s]];
431
+ break;
432
+ case 44:
433
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
434
+ break;
435
+ case 46:
436
+ this.$ = a[s - 1] + a[s];
437
+ break;
438
+ case 54:
439
+ case 76:
440
+ case 77:
441
+ this.$ = a[s].replace(/"/g, "");
442
+ break;
443
+ case 55:
444
+ case 78:
445
+ this.$ = a[s];
446
+ break;
447
+ case 57:
448
+ a[s].push(a[s - 1]), this.$ = a[s];
449
+ break;
450
+ case 58:
451
+ this.$ = {
452
+ type: a[s - 1],
453
+ name: a[s]
454
+ };
455
+ break;
456
+ case 59:
457
+ this.$ = {
458
+ type: a[s - 2],
459
+ name: a[s - 1],
460
+ keys: a[s]
461
+ };
462
+ break;
463
+ case 60:
464
+ this.$ = {
465
+ type: a[s - 2],
466
+ name: a[s - 1],
467
+ comment: a[s]
468
+ };
469
+ break;
470
+ case 61:
471
+ this.$ = {
472
+ type: a[s - 3],
473
+ name: a[s - 2],
474
+ keys: a[s - 1],
475
+ comment: a[s]
476
+ };
477
+ break;
478
+ case 62:
479
+ case 63:
480
+ case 66:
481
+ this.$ = a[s];
482
+ break;
483
+ case 65:
484
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
485
+ break;
486
+ case 67:
487
+ this.$ = a[s].replace(/"/g, "");
488
+ break;
489
+ case 68:
490
+ this.$ = {
491
+ cardA: a[s],
492
+ relType: a[s - 1],
493
+ cardB: a[s - 2]
494
+ };
495
+ break;
496
+ case 69:
497
+ this.$ = r.Cardinality.ZERO_OR_ONE;
498
+ break;
499
+ case 70:
500
+ this.$ = r.Cardinality.ZERO_OR_MORE;
501
+ break;
502
+ case 71:
503
+ this.$ = r.Cardinality.ONE_OR_MORE;
504
+ break;
505
+ case 72:
506
+ this.$ = r.Cardinality.ONLY_ONE;
507
+ break;
508
+ case 73:
509
+ this.$ = r.Cardinality.MD_PARENT;
510
+ break;
511
+ case 74:
512
+ this.$ = r.Identification.NON_IDENTIFYING;
513
+ break;
514
+ case 75:
515
+ this.$ = r.Identification.IDENTIFYING;
516
+ break;
517
+ }
518
+ }, "anonymous"),
519
+ table: [
520
+ {
521
+ 3: 1,
522
+ 4: [1, 2]
523
+ },
524
+ { 1: [3] },
525
+ e(t, [2, 2], { 5: 3 }),
526
+ {
527
+ 6: [1, 4],
528
+ 7: 5,
529
+ 8: [1, 6],
530
+ 9: 7,
531
+ 10: [1, 8],
532
+ 11: 9,
533
+ 22: n,
534
+ 24: i,
535
+ 26: a,
536
+ 28: o,
537
+ 29: 14,
538
+ 30: 15,
539
+ 31: 16,
540
+ 32: 17,
541
+ 33: s,
542
+ 34: c,
543
+ 35: l,
544
+ 36: u,
545
+ 37: d,
546
+ 40: f,
547
+ 43: p,
548
+ 44: m,
549
+ 50: h
550
+ },
551
+ e(t, [2, 7], { 1: [2, 1] }),
552
+ e(t, [2, 3]),
553
+ {
554
+ 9: 27,
555
+ 11: 9,
556
+ 22: n,
557
+ 24: i,
558
+ 26: a,
559
+ 28: o,
560
+ 29: 14,
561
+ 30: 15,
562
+ 31: 16,
563
+ 32: 17,
564
+ 33: s,
565
+ 34: c,
566
+ 35: l,
567
+ 36: u,
568
+ 37: d,
569
+ 40: f,
570
+ 43: p,
571
+ 44: m,
572
+ 50: h
573
+ },
574
+ e(t, [2, 5]),
575
+ e(t, [2, 6]),
576
+ e(t, [2, 16], {
577
+ 12: 28,
578
+ 61: 32,
579
+ 15: [1, 29],
580
+ 17: [1, 30],
581
+ 20: [1, 31],
582
+ 63: g,
583
+ 64: _,
584
+ 65: v,
585
+ 66: y,
586
+ 67: b
587
+ }),
588
+ { 23: [1, 38] },
589
+ { 25: [1, 39] },
590
+ { 27: [1, 40] },
591
+ e(t, [2, 27]),
592
+ e(t, [2, 28]),
593
+ e(t, [2, 29]),
594
+ e(t, [2, 30]),
595
+ e(t, [2, 31]),
596
+ e(x, [2, 54]),
597
+ e(x, [2, 55]),
598
+ e(t, [2, 32]),
599
+ e(t, [2, 33]),
600
+ e(t, [2, 34]),
601
+ e(t, [2, 35]),
602
+ {
603
+ 16: 41,
604
+ 40: S,
605
+ 41: C
606
+ },
607
+ {
608
+ 16: 44,
609
+ 40: S,
610
+ 41: C
611
+ },
612
+ {
613
+ 16: 45,
614
+ 40: S,
615
+ 41: C
616
+ },
617
+ e(t, [2, 4]),
618
+ {
619
+ 11: 46,
620
+ 40: f,
621
+ 50: h
622
+ },
623
+ {
624
+ 16: 47,
625
+ 40: S,
626
+ 41: C
627
+ },
628
+ {
629
+ 18: 48,
630
+ 19: [1, 49],
631
+ 51: 50,
632
+ 52: 51,
633
+ 56: w
634
+ },
635
+ {
636
+ 11: 53,
637
+ 40: f,
638
+ 50: h
639
+ },
640
+ {
641
+ 62: 54,
642
+ 68: [1, 55],
643
+ 69: [1, 56]
644
+ },
645
+ e(T, [2, 69]),
646
+ e(T, [2, 70]),
647
+ e(T, [2, 71]),
648
+ e(T, [2, 72]),
649
+ e(T, [2, 73]),
650
+ e(t, [2, 24]),
651
+ e(t, [2, 25]),
652
+ e(t, [2, 26]),
653
+ {
654
+ 13: E,
655
+ 38: 57,
656
+ 41: D,
657
+ 42: O,
658
+ 45: 59,
659
+ 46: 60,
660
+ 48: k,
661
+ 49: A
662
+ },
663
+ e(j, [2, 37]),
664
+ e(j, [2, 38]),
665
+ {
666
+ 16: 65,
667
+ 40: S,
668
+ 41: C,
669
+ 42: O
670
+ },
671
+ {
672
+ 13: E,
673
+ 38: 66,
674
+ 41: D,
675
+ 42: O,
676
+ 45: 59,
677
+ 46: 60,
678
+ 48: k,
679
+ 49: A
680
+ },
681
+ {
682
+ 13: [1, 67],
683
+ 15: [1, 68]
684
+ },
685
+ e(t, [2, 17], {
686
+ 61: 32,
687
+ 12: 69,
688
+ 17: [1, 70],
689
+ 42: O,
690
+ 63: g,
691
+ 64: _,
692
+ 65: v,
693
+ 66: y,
694
+ 67: b
695
+ }),
696
+ { 19: [1, 71] },
697
+ e(t, [2, 14]),
698
+ {
699
+ 18: 72,
700
+ 19: [2, 56],
701
+ 51: 50,
702
+ 52: 51,
703
+ 56: w
704
+ },
705
+ {
706
+ 53: 73,
707
+ 56: [1, 74]
708
+ },
709
+ { 56: [2, 62] },
710
+ { 21: [1, 75] },
711
+ {
712
+ 61: 76,
713
+ 63: g,
714
+ 64: _,
715
+ 65: v,
716
+ 66: y,
717
+ 67: b
718
+ },
719
+ e(M, [2, 74]),
720
+ e(M, [2, 75]),
721
+ {
722
+ 6: N,
723
+ 10: P,
724
+ 39: 77,
725
+ 42: F,
726
+ 47: I
727
+ },
728
+ {
729
+ 40: [1, 82],
730
+ 41: [1, 83]
731
+ },
732
+ e(L, [2, 43], {
733
+ 46: 84,
734
+ 13: E,
735
+ 41: D,
736
+ 48: k,
737
+ 49: A
738
+ }),
739
+ e(R, [2, 45]),
740
+ e(R, [2, 50]),
741
+ e(R, [2, 51]),
742
+ e(R, [2, 52]),
743
+ e(R, [2, 53]),
744
+ e(t, [2, 41], { 42: O }),
745
+ {
746
+ 6: N,
747
+ 10: P,
748
+ 39: 85,
749
+ 42: F,
750
+ 47: I
751
+ },
752
+ {
753
+ 14: 86,
754
+ 40: z,
755
+ 50: B,
756
+ 70: V
757
+ },
758
+ {
759
+ 16: 90,
760
+ 40: S,
761
+ 41: C
762
+ },
763
+ {
764
+ 11: 91,
765
+ 40: f,
766
+ 50: h
767
+ },
768
+ {
769
+ 18: 92,
770
+ 19: [1, 93],
771
+ 51: 50,
772
+ 52: 51,
773
+ 56: w
774
+ },
775
+ e(t, [2, 12]),
776
+ { 19: [2, 57] },
777
+ e(H, [2, 58], {
778
+ 54: 94,
779
+ 55: 95,
780
+ 57: 96,
781
+ 59: U,
782
+ 60: W
783
+ }),
784
+ e([
785
+ 19,
786
+ 56,
787
+ 59,
788
+ 60
789
+ ], [2, 63]),
790
+ e(t, [2, 22], {
791
+ 15: [1, 100],
792
+ 17: [1, 99]
793
+ }),
794
+ e([40, 50], [2, 68]),
795
+ e(t, [2, 36]),
796
+ {
797
+ 13: E,
798
+ 41: D,
799
+ 45: 101,
800
+ 46: 60,
801
+ 48: k,
802
+ 49: A
803
+ },
804
+ e(t, [2, 47]),
805
+ e(t, [2, 48]),
806
+ e(t, [2, 49]),
807
+ e(j, [2, 39]),
808
+ e(j, [2, 40]),
809
+ e(R, [2, 46]),
810
+ e(t, [2, 42]),
811
+ e(t, [2, 8]),
812
+ e(t, [2, 76]),
813
+ e(t, [2, 77]),
814
+ e(t, [2, 78]),
815
+ {
816
+ 13: [1, 102],
817
+ 42: O
818
+ },
819
+ {
820
+ 13: [1, 104],
821
+ 15: [1, 103]
822
+ },
823
+ { 19: [1, 105] },
824
+ e(t, [2, 15]),
825
+ e(H, [2, 59], {
826
+ 55: 106,
827
+ 58: [1, 107],
828
+ 60: W
829
+ }),
830
+ e(H, [2, 60]),
831
+ e(G, [2, 64]),
832
+ e(H, [2, 67]),
833
+ e(G, [2, 66]),
834
+ {
835
+ 18: 108,
836
+ 19: [1, 109],
837
+ 51: 50,
838
+ 52: 51,
839
+ 56: w
840
+ },
841
+ {
842
+ 16: 110,
843
+ 40: S,
844
+ 41: C
845
+ },
846
+ e(L, [2, 44], {
847
+ 46: 84,
848
+ 13: E,
849
+ 41: D,
850
+ 48: k,
851
+ 49: A
852
+ }),
853
+ {
854
+ 14: 111,
855
+ 40: z,
856
+ 50: B,
857
+ 70: V
858
+ },
859
+ {
860
+ 16: 112,
861
+ 40: S,
862
+ 41: C
863
+ },
864
+ {
865
+ 14: 113,
866
+ 40: z,
867
+ 50: B,
868
+ 70: V
869
+ },
870
+ e(t, [2, 13]),
871
+ e(H, [2, 61]),
872
+ {
873
+ 57: 114,
874
+ 59: U
875
+ },
876
+ { 19: [1, 115] },
877
+ e(t, [2, 20]),
878
+ e(t, [2, 23], {
879
+ 17: [1, 116],
880
+ 42: O
881
+ }),
882
+ e(t, [2, 11]),
883
+ {
884
+ 13: [1, 117],
885
+ 42: O
886
+ },
887
+ e(t, [2, 10]),
888
+ e(G, [2, 65]),
889
+ e(t, [2, 18]),
890
+ {
891
+ 18: 118,
892
+ 19: [1, 119],
893
+ 51: 50,
894
+ 52: 51,
895
+ 56: w
896
+ },
897
+ {
898
+ 14: 120,
899
+ 40: z,
900
+ 50: B,
901
+ 70: V
902
+ },
903
+ { 19: [1, 121] },
904
+ e(t, [2, 21]),
905
+ e(t, [2, 9]),
906
+ e(t, [2, 19])
907
+ ],
908
+ defaultActions: {
909
+ 52: [2, 62],
910
+ 72: [2, 57]
911
+ },
912
+ parseError: /* @__PURE__ */ r(function(e, t) {
913
+ if (t.recoverable) this.trace(e);
914
+ else {
915
+ var n = Error(e);
916
+ throw n.hash = t, n;
917
+ }
918
+ }, "parseError"),
919
+ parse: /* @__PURE__ */ r(function(e) {
920
+ var t = this, n = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
921
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
922
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
923
+ var v = h.yylloc;
924
+ o.push(v);
925
+ var y = h.options && h.options.ranges;
926
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
927
+ function b(e) {
928
+ n.length -= 2 * e, a.length -= e, o.length -= e;
929
+ }
930
+ r(b, "popStack");
931
+ function x() {
932
+ var e = i.pop() || h.lex() || p;
933
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
934
+ }
935
+ r(x, "lex");
936
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
937
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
938
+ var M = "";
939
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
940
+ 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, {
941
+ text: h.match,
942
+ token: this.terminals_[S] || S,
943
+ line: h.yylineno,
944
+ loc: v,
945
+ expected: j
946
+ });
947
+ }
948
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
949
+ switch (T[0]) {
950
+ case 1:
951
+ n.push(S), a.push(h.yytext), o.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
952
+ break;
953
+ case 2:
954
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
955
+ first_line: o[o.length - (k || 1)].first_line,
956
+ last_line: o[o.length - 1].last_line,
957
+ first_column: o[o.length - (k || 1)].first_column,
958
+ last_column: o[o.length - 1].last_column
959
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
960
+ c,
961
+ u,
962
+ l,
963
+ g.yy,
964
+ T[1],
965
+ a,
966
+ o
967
+ ].concat(m)), E !== void 0) return E;
968
+ k && (n = n.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[n[n.length - 2]][n[n.length - 1]], n.push(A);
969
+ break;
970
+ case 3: return !0;
971
+ }
972
+ }
973
+ return !0;
974
+ }, "parse")
975
+ };
976
+ K.lexer = /* @__PURE__ */ (function() {
977
+ return {
978
+ EOF: 1,
979
+ parseError: /* @__PURE__ */ r(function(e, t) {
980
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
981
+ else throw Error(e);
982
+ }, "parseError"),
983
+ setInput: /* @__PURE__ */ r(function(e, t) {
984
+ 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 = {
985
+ first_line: 1,
986
+ first_column: 0,
987
+ last_line: 1,
988
+ last_column: 0
989
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
990
+ }, "setInput"),
991
+ input: /* @__PURE__ */ r(function() {
992
+ var e = this._input[0];
993
+ 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;
994
+ }, "input"),
995
+ unput: /* @__PURE__ */ r(function(e) {
996
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
997
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
998
+ var r = this.match.split(/(?:\r\n?|\n)/g);
999
+ 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);
1000
+ var i = this.yylloc.range;
1001
+ return this.yylloc = {
1002
+ first_line: this.yylloc.first_line,
1003
+ last_line: this.yylineno + 1,
1004
+ first_column: this.yylloc.first_column,
1005
+ 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
1006
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1007
+ }, "unput"),
1008
+ more: /* @__PURE__ */ r(function() {
1009
+ return this._more = !0, this;
1010
+ }, "more"),
1011
+ reject: /* @__PURE__ */ r(function() {
1012
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1013
+ 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(), {
1014
+ text: "",
1015
+ token: null,
1016
+ line: this.yylineno
1017
+ });
1018
+ return this;
1019
+ }, "reject"),
1020
+ less: /* @__PURE__ */ r(function(e) {
1021
+ this.unput(this.match.slice(e));
1022
+ }, "less"),
1023
+ pastInput: /* @__PURE__ */ r(function() {
1024
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
1025
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1026
+ }, "pastInput"),
1027
+ upcomingInput: /* @__PURE__ */ r(function() {
1028
+ var e = this.match;
1029
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1030
+ }, "upcomingInput"),
1031
+ showPosition: /* @__PURE__ */ r(function() {
1032
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
1033
+ return e + this.upcomingInput() + "\n" + t + "^";
1034
+ }, "showPosition"),
1035
+ test_match: /* @__PURE__ */ r(function(e, t) {
1036
+ var n, r, i;
1037
+ if (this.options.backtrack_lexer && (i = {
1038
+ yylineno: this.yylineno,
1039
+ yylloc: {
1040
+ first_line: this.yylloc.first_line,
1041
+ last_line: this.last_line,
1042
+ first_column: this.yylloc.first_column,
1043
+ last_column: this.yylloc.last_column
1044
+ },
1045
+ yytext: this.yytext,
1046
+ match: this.match,
1047
+ matches: this.matches,
1048
+ matched: this.matched,
1049
+ yyleng: this.yyleng,
1050
+ offset: this.offset,
1051
+ _more: this._more,
1052
+ _input: this._input,
1053
+ yy: this.yy,
1054
+ conditionStack: this.conditionStack.slice(0),
1055
+ done: this.done
1056
+ }, 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 = {
1057
+ first_line: this.yylloc.last_line,
1058
+ last_line: this.yylineno + 1,
1059
+ first_column: this.yylloc.last_column,
1060
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1061
+ }, 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;
1062
+ if (this._backtrack) {
1063
+ for (var a in i) this[a] = i[a];
1064
+ return !1;
1065
+ }
1066
+ return !1;
1067
+ }, "test_match"),
1068
+ next: /* @__PURE__ */ r(function() {
1069
+ if (this.done) return this.EOF;
1070
+ this._input || (this.done = !0);
1071
+ var e, t, n, r;
1072
+ this._more || (this.yytext = "", this.match = "");
1073
+ 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)) {
1074
+ if (t = n, r = a, this.options.backtrack_lexer) {
1075
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
1076
+ if (this._backtrack) {
1077
+ t = !1;
1078
+ continue;
1079
+ } else return !1;
1080
+ } else if (!this.options.flex) break;
1081
+ }
1082
+ 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(), {
1083
+ text: "",
1084
+ token: null,
1085
+ line: this.yylineno
1086
+ });
1087
+ }, "next"),
1088
+ lex: /* @__PURE__ */ r(function() {
1089
+ return this.next() || this.lex();
1090
+ }, "lex"),
1091
+ begin: /* @__PURE__ */ r(function(e) {
1092
+ this.conditionStack.push(e);
1093
+ }, "begin"),
1094
+ popState: /* @__PURE__ */ r(function() {
1095
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1096
+ }, "popState"),
1097
+ _currentRules: /* @__PURE__ */ r(function() {
1098
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1099
+ }, "_currentRules"),
1100
+ topState: /* @__PURE__ */ r(function(e) {
1101
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1102
+ }, "topState"),
1103
+ pushState: /* @__PURE__ */ r(function(e) {
1104
+ this.begin(e);
1105
+ }, "pushState"),
1106
+ stateStackSize: /* @__PURE__ */ r(function() {
1107
+ return this.conditionStack.length;
1108
+ }, "stateStackSize"),
1109
+ options: { "case-insensitive": !0 },
1110
+ performAction: /* @__PURE__ */ r(function(e, t, n, r) {
1111
+ switch (n) {
1112
+ case 0: return this.begin("acc_title"), 24;
1113
+ case 1: return this.popState(), "acc_title_value";
1114
+ case 2: return this.begin("acc_descr"), 26;
1115
+ case 3: return this.popState(), "acc_descr_value";
1116
+ case 4:
1117
+ this.begin("acc_descr_multiline");
1118
+ break;
1119
+ case 5:
1120
+ this.popState();
1121
+ break;
1122
+ case 6: return "acc_descr_multiline_value";
1123
+ case 7: return 33;
1124
+ case 8: return 34;
1125
+ case 9: return 35;
1126
+ case 10: return 36;
1127
+ case 11: return 10;
1128
+ case 12: break;
1129
+ case 13: return 8;
1130
+ case 14: return 50;
1131
+ case 15: return 70;
1132
+ case 16: return 4;
1133
+ case 17: return this.begin("block"), 17;
1134
+ case 18: return 49;
1135
+ case 19: return 49;
1136
+ case 20: return 42;
1137
+ case 21: return 15;
1138
+ case 22: return 13;
1139
+ case 23: break;
1140
+ case 24: return 59;
1141
+ case 25: return 56;
1142
+ case 26: return 56;
1143
+ case 27: return 60;
1144
+ case 28: break;
1145
+ case 29: return this.popState(), 19;
1146
+ case 30: return t.yytext[0];
1147
+ case 31: return 20;
1148
+ case 32: return 21;
1149
+ case 33: return this.begin("style"), 44;
1150
+ case 34: return this.popState(), 10;
1151
+ case 35: break;
1152
+ case 36: return 13;
1153
+ case 37: return 42;
1154
+ case 38: return 49;
1155
+ case 39: return this.begin("style"), 37;
1156
+ case 40: return 43;
1157
+ case 41: return 63;
1158
+ case 42: return 65;
1159
+ case 43: return 65;
1160
+ case 44: return 65;
1161
+ case 45: return 63;
1162
+ case 46: return 63;
1163
+ case 47: return 64;
1164
+ case 48: return 64;
1165
+ case 49: return 64;
1166
+ case 50: return 64;
1167
+ case 51: return 64;
1168
+ case 52: return 65;
1169
+ case 53: return 64;
1170
+ case 54: return 65;
1171
+ case 55: return 66;
1172
+ case 56: return 66;
1173
+ case 57: return 66;
1174
+ case 58: return 66;
1175
+ case 59: return 63;
1176
+ case 60: return 64;
1177
+ case 61: return 65;
1178
+ case 62: return 67;
1179
+ case 63: return 68;
1180
+ case 64: return 69;
1181
+ case 65: return 69;
1182
+ case 66: return 68;
1183
+ case 67: return 68;
1184
+ case 68: return 68;
1185
+ case 69: return 41;
1186
+ case 70: return 47;
1187
+ case 71: return 40;
1188
+ case 72: return 48;
1189
+ case 73: return t.yytext[0];
1190
+ case 74: return 6;
1191
+ }
1192
+ }, "anonymous"),
1193
+ rules: [
1194
+ /^(?:accTitle\s*:\s*)/i,
1195
+ /^(?:(?!\n||)*[^\n]*)/i,
1196
+ /^(?:accDescr\s*:\s*)/i,
1197
+ /^(?:(?!\n||)*[^\n]*)/i,
1198
+ /^(?:accDescr\s*\{\s*)/i,
1199
+ /^(?:[\}])/i,
1200
+ /^(?:[^\}]*)/i,
1201
+ /^(?:.*direction\s+TB[^\n]*)/i,
1202
+ /^(?:.*direction\s+BT[^\n]*)/i,
1203
+ /^(?:.*direction\s+RL[^\n]*)/i,
1204
+ /^(?:.*direction\s+LR[^\n]*)/i,
1205
+ /^(?:[\n]+)/i,
1206
+ /^(?:\s+)/i,
1207
+ /^(?:[\s]+)/i,
1208
+ /^(?:"[^"%\r\n\v\b\\]+")/i,
1209
+ /^(?:"[^"]*")/i,
1210
+ /^(?:erDiagram\b)/i,
1211
+ /^(?:\{)/i,
1212
+ /^(?:#)/i,
1213
+ /^(?:#)/i,
1214
+ /^(?:,)/i,
1215
+ /^(?::::)/i,
1216
+ /^(?::)/i,
1217
+ /^(?:\s+)/i,
1218
+ /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,
1219
+ /^(?:([^\s]*)[~].*[~]([^\s]*))/i,
1220
+ /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,
1221
+ /^(?:"[^"]*")/i,
1222
+ /^(?:[\n]+)/i,
1223
+ /^(?:\})/i,
1224
+ /^(?:.)/i,
1225
+ /^(?:\[)/i,
1226
+ /^(?:\])/i,
1227
+ /^(?:style\b)/i,
1228
+ /^(?:[\n]+)/i,
1229
+ /^(?:\s+)/i,
1230
+ /^(?::)/i,
1231
+ /^(?:,)/i,
1232
+ /^(?:#)/i,
1233
+ /^(?:classDef\b)/i,
1234
+ /^(?:class\b)/i,
1235
+ /^(?:one or zero\b)/i,
1236
+ /^(?:one or more\b)/i,
1237
+ /^(?:one or many\b)/i,
1238
+ /^(?:1\+)/i,
1239
+ /^(?:\|o\b)/i,
1240
+ /^(?:zero or one\b)/i,
1241
+ /^(?:zero or more\b)/i,
1242
+ /^(?:zero or many\b)/i,
1243
+ /^(?:0\+)/i,
1244
+ /^(?:\}o\b)/i,
1245
+ /^(?:many\(0\))/i,
1246
+ /^(?:many\(1\))/i,
1247
+ /^(?:many\b)/i,
1248
+ /^(?:\}\|)/i,
1249
+ /^(?:one\b)/i,
1250
+ /^(?:only one\b)/i,
1251
+ /^(?:1\b)/i,
1252
+ /^(?:\|\|)/i,
1253
+ /^(?:o\|)/i,
1254
+ /^(?:o\{)/i,
1255
+ /^(?:\|\{)/i,
1256
+ /^(?:\s*u\b)/i,
1257
+ /^(?:\.\.)/i,
1258
+ /^(?:--)/i,
1259
+ /^(?:to\b)/i,
1260
+ /^(?:optionally to\b)/i,
1261
+ /^(?:\.-)/i,
1262
+ /^(?:-\.)/i,
1263
+ /^(?:([^\x00-\x7F]|\w|-|\*)+)/i,
1264
+ /^(?:;)/i,
1265
+ /^(?:([^\x00-\x7F]|\w|-|\*)+)/i,
1266
+ /^(?:[0-9])/i,
1267
+ /^(?:.)/i,
1268
+ /^(?:$)/i
1269
+ ],
1270
+ conditions: {
1271
+ style: {
1272
+ rules: [
1273
+ 34,
1274
+ 35,
1275
+ 36,
1276
+ 37,
1277
+ 38,
1278
+ 69,
1279
+ 70
1280
+ ],
1281
+ inclusive: !1
1282
+ },
1283
+ acc_descr_multiline: {
1284
+ rules: [5, 6],
1285
+ inclusive: !1
1286
+ },
1287
+ acc_descr: {
1288
+ rules: [3],
1289
+ inclusive: !1
1290
+ },
1291
+ acc_title: {
1292
+ rules: [1],
1293
+ inclusive: !1
1294
+ },
1295
+ block: {
1296
+ rules: [
1297
+ 23,
1298
+ 24,
1299
+ 25,
1300
+ 26,
1301
+ 27,
1302
+ 28,
1303
+ 29,
1304
+ 30
1305
+ ],
1306
+ inclusive: !1
1307
+ },
1308
+ INITIAL: {
1309
+ rules: [
1310
+ 0,
1311
+ 2,
1312
+ 4,
1313
+ 7,
1314
+ 8,
1315
+ 9,
1316
+ 10,
1317
+ 11,
1318
+ 12,
1319
+ 13,
1320
+ 14,
1321
+ 15,
1322
+ 16,
1323
+ 17,
1324
+ 18,
1325
+ 19,
1326
+ 20,
1327
+ 21,
1328
+ 22,
1329
+ 31,
1330
+ 32,
1331
+ 33,
1332
+ 39,
1333
+ 40,
1334
+ 41,
1335
+ 42,
1336
+ 43,
1337
+ 44,
1338
+ 45,
1339
+ 46,
1340
+ 47,
1341
+ 48,
1342
+ 49,
1343
+ 50,
1344
+ 51,
1345
+ 52,
1346
+ 53,
1347
+ 54,
1348
+ 55,
1349
+ 56,
1350
+ 57,
1351
+ 58,
1352
+ 59,
1353
+ 60,
1354
+ 61,
1355
+ 62,
1356
+ 63,
1357
+ 64,
1358
+ 65,
1359
+ 66,
1360
+ 67,
1361
+ 68,
1362
+ 71,
1363
+ 72,
1364
+ 73,
1365
+ 74
1366
+ ],
1367
+ inclusive: !0
1368
+ }
1369
+ }
1370
+ };
1371
+ })();
1372
+ function q() {
1373
+ this.yy = {};
1374
+ }
1375
+ return r(q, "Parser"), q.prototype = K, K.Parser = q, new q();
1376
+ })();
1377
+ b.parser = b;
1378
+ var x = b, S = class {
1379
+ constructor() {
1380
+ this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
1381
+ ZERO_OR_ONE: "ZERO_OR_ONE",
1382
+ ZERO_OR_MORE: "ZERO_OR_MORE",
1383
+ ONE_OR_MORE: "ONE_OR_MORE",
1384
+ ONLY_ONE: "ONLY_ONE",
1385
+ MD_PARENT: "MD_PARENT"
1386
+ }, this.Identification = {
1387
+ NON_IDENTIFYING: "NON_IDENTIFYING",
1388
+ IDENTIFYING: "IDENTIFYING"
1389
+ }, this.setAccTitle = o, this.getAccTitle = p, this.setAccDescription = m, this.getAccDescription = l, this.setDiagramTitle = c, this.getDiagramTitle = s, this.getConfig = /* @__PURE__ */ r(() => d().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
1390
+ }
1391
+ static {
1392
+ r(this, "ErDB");
1393
+ }
1394
+ addEntity(e, t = "") {
1395
+ return this.entities.has(e) ? !this.entities.get(e)?.alias && t && (this.entities.get(e).alias = t, n.info(`Add alias '${t}' to entity '${e}'`)) : (this.entities.set(e, {
1396
+ id: `entity-${e}-${this.entities.size}`,
1397
+ label: e,
1398
+ attributes: [],
1399
+ alias: t,
1400
+ shape: "erBox",
1401
+ look: d().look ?? "default",
1402
+ cssClasses: "default",
1403
+ cssStyles: []
1404
+ }), n.info("Added new entity :", e)), this.entities.get(e);
1405
+ }
1406
+ getEntity(e) {
1407
+ return this.entities.get(e);
1408
+ }
1409
+ getEntities() {
1410
+ return this.entities;
1411
+ }
1412
+ getClasses() {
1413
+ return this.classes;
1414
+ }
1415
+ addAttributes(e, t) {
1416
+ let r = this.addEntity(e), i;
1417
+ for (i = t.length - 1; i >= 0; i--) t[i].keys || (t[i].keys = []), t[i].comment || (t[i].comment = ""), r.attributes.push(t[i]), n.debug("Added attribute ", t[i].name);
1418
+ }
1419
+ addRelationship(e, t, r, i) {
1420
+ let a = this.entities.get(e), o = this.entities.get(r);
1421
+ if (!a || !o) return;
1422
+ let s = {
1423
+ entityA: a.id,
1424
+ roleA: t,
1425
+ entityB: o.id,
1426
+ relSpec: i
1427
+ };
1428
+ this.relationships.push(s), n.debug("Added new relationship :", s);
1429
+ }
1430
+ getRelationships() {
1431
+ return this.relationships;
1432
+ }
1433
+ getDirection() {
1434
+ return this.direction;
1435
+ }
1436
+ setDirection(e) {
1437
+ this.direction = e;
1438
+ }
1439
+ getCompiledStyles(e) {
1440
+ let t = [];
1441
+ for (let n of e) {
1442
+ let e = this.classes.get(n);
1443
+ e?.styles && (t = [...t, ...e.styles ?? []].map((e) => e.trim())), e?.textStyles && (t = [...t, ...e.textStyles ?? []].map((e) => e.trim()));
1444
+ }
1445
+ return t;
1446
+ }
1447
+ addCssStyles(e, t) {
1448
+ for (let n of e) {
1449
+ let e = this.entities.get(n);
1450
+ if (!t || !e) return;
1451
+ for (let n of t) e.cssStyles.push(n);
1452
+ }
1453
+ }
1454
+ addClass(e, t) {
1455
+ e.forEach((e) => {
1456
+ let n = this.classes.get(e);
1457
+ n === void 0 && (n = {
1458
+ id: e,
1459
+ styles: [],
1460
+ textStyles: []
1461
+ }, this.classes.set(e, n)), t && t.forEach(function(e) {
1462
+ if (/color/.exec(e)) {
1463
+ let t = e.replace("fill", "bgFill");
1464
+ n.textStyles.push(t);
1465
+ }
1466
+ n.styles.push(e);
1467
+ });
1468
+ });
1469
+ }
1470
+ setClass(e, t) {
1471
+ for (let n of e) {
1472
+ let e = this.entities.get(n);
1473
+ if (e) for (let n of t) e.cssClasses += " " + n;
1474
+ }
1475
+ }
1476
+ clear() {
1477
+ this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], u();
1478
+ }
1479
+ getData() {
1480
+ let e = [], t = [], n = d();
1481
+ for (let t of this.entities.keys()) {
1482
+ let n = this.entities.get(t);
1483
+ n && (n.cssCompiledStyles = this.getCompiledStyles(n.cssClasses.split(" ")), e.push(n));
1484
+ }
1485
+ let r = 0;
1486
+ for (let e of this.relationships) {
1487
+ let i = {
1488
+ id: _(e.entityA, e.entityB, {
1489
+ prefix: "id",
1490
+ counter: r++
1491
+ }),
1492
+ type: "normal",
1493
+ curve: "basis",
1494
+ start: e.entityA,
1495
+ end: e.entityB,
1496
+ label: e.roleA,
1497
+ labelpos: "c",
1498
+ thickness: "normal",
1499
+ classes: "relationshipLine",
1500
+ arrowTypeStart: e.relSpec.cardB.toLowerCase(),
1501
+ arrowTypeEnd: e.relSpec.cardA.toLowerCase(),
1502
+ pattern: e.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
1503
+ look: n.look
1504
+ };
1505
+ t.push(i);
1506
+ }
1507
+ return {
1508
+ nodes: e,
1509
+ edges: t,
1510
+ other: {},
1511
+ config: n,
1512
+ direction: "TB"
1513
+ };
1514
+ }
1515
+ }, C = {};
1516
+ i(C, { draw: () => w });
1517
+ var w = /* @__PURE__ */ r(async function(r, i, o, s) {
1518
+ n.info("REF0:"), n.info("Drawing er diagram (unified)", i);
1519
+ let { securityLevel: c, er: l, layout: u } = d(), f = s.db.getData(), p = v(i, c);
1520
+ f.type = s.type, f.layoutAlgorithm = e(u), f.config.flowchart.nodeSpacing = l?.nodeSpacing || 140, f.config.flowchart.rankSpacing = l?.rankSpacing || 80, f.direction = s.db.getDirection(), f.markers = [
1521
+ "only_one",
1522
+ "zero_or_one",
1523
+ "one_or_more",
1524
+ "zero_or_more"
1525
+ ], f.diagramId = i, await t(f, p), f.layoutAlgorithm === "elk" && p.select(".edges").lower();
1526
+ let m = p.selectAll("[id*=\"-background\"]");
1527
+ Array.from(m).length > 0 && m.each(function() {
1528
+ let e = a(this), t = e.attr("id").replace("-background", ""), n = p.select(`#${CSS.escape(t)}`);
1529
+ if (!n.empty()) {
1530
+ let t = n.attr("transform");
1531
+ e.attr("transform", t);
1532
+ }
1533
+ }), g.insertTitle(p, "erDiagramTitleText", l?.titleTopMargin ?? 25, s.db.getDiagramTitle()), y(p, 8, "erDiagram", l?.useMaxWidth ?? !0);
1534
+ }, "draw"), T = /* @__PURE__ */ r((e, t) => {
1535
+ let n = h;
1536
+ return f(n(e, "r"), n(e, "g"), n(e, "b"), t);
1537
+ }, "fade"), E = {
1538
+ parser: x,
1539
+ get db() {
1540
+ return new S();
1541
+ },
1542
+ renderer: C,
1543
+ styles: /* @__PURE__ */ r((e) => `
1544
+ .entityBox {
1545
+ fill: ${e.mainBkg};
1546
+ stroke: ${e.nodeBorder};
1547
+ }
1548
+
1549
+ .relationshipLabelBox {
1550
+ fill: ${e.tertiaryColor};
1551
+ opacity: 0.7;
1552
+ background-color: ${e.tertiaryColor};
1553
+ rect {
1554
+ opacity: 0.5;
1555
+ }
1556
+ }
1557
+
1558
+ .labelBkg {
1559
+ background-color: ${T(e.tertiaryColor, .5)};
1560
+ }
1561
+
1562
+ .edgeLabel .label {
1563
+ fill: ${e.nodeBorder};
1564
+ font-size: 14px;
1565
+ }
1566
+
1567
+ .label {
1568
+ font-family: ${e.fontFamily};
1569
+ color: ${e.nodeTextColor || e.textColor};
1570
+ }
1571
+
1572
+ .edge-pattern-dashed {
1573
+ stroke-dasharray: 8,8;
1574
+ }
1575
+
1576
+ .node rect,
1577
+ .node circle,
1578
+ .node ellipse,
1579
+ .node polygon
1580
+ {
1581
+ fill: ${e.mainBkg};
1582
+ stroke: ${e.nodeBorder};
1583
+ stroke-width: 1px;
1584
+ }
1585
+
1586
+ .relationshipLine {
1587
+ stroke: ${e.lineColor};
1588
+ stroke-width: 1;
1589
+ fill: none;
1590
+ }
1591
+
1592
+ .marker {
1593
+ fill: none !important;
1594
+ stroke: ${e.lineColor} !important;
1595
+ stroke-width: 1;
1596
+ }
1597
+ `, "getStyles")
1598
+ };
1599
+ //#endregion
1600
+ export { E as diagram };