@orangelogic/design-system 2.162.0 → 2.164.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 (285) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
  33. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  34. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  35. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  36. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  37. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  38. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  39. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  40. package/library/chunks/channel.s_XjcUYI.js +5 -0
  41. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  42. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  43. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  44. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  45. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  46. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  47. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  48. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  49. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  50. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  51. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  52. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  53. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  54. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
  55. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  56. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  57. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  58. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  124. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  125. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  126. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  127. package/library/chunks/range.DdOGybNB.js +9 -0
  128. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  129. package/library/chunks/sankey.BR94A-8L.js +294 -0
  130. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  131. package/library/chunks/select.C6_sM3Pr.js +7 -0
  132. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  133. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  134. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  135. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  136. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  137. package/library/chunks/step.almIqwJ6.js +51 -0
  138. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  139. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  140. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  141. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  142. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  143. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  144. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  145. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  146. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  147. package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
  148. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  149. package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
  150. package/library/chunks/value.BXEGBVFV.js +44 -0
  151. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  152. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  153. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  154. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  155. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  156. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  157. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  158. package/library/components/alert.js +2 -2
  159. package/library/components/am-chart.js +3 -3
  160. package/library/components/animated-image.js +2 -2
  161. package/library/components/animation.js +2 -2
  162. package/library/components/array-line-clamp.js +1 -1
  163. package/library/components/asset-link-format.js +8 -7
  164. package/library/components/atoms.js +29 -29
  165. package/library/components/audio.js +3 -3
  166. package/library/components/avatar.js +2 -2
  167. package/library/components/border-input-group.js +1 -1
  168. package/library/components/breadcrumb-item.js +1 -1
  169. package/library/components/breadcrumb.js +1 -1
  170. package/library/components/button.js +3 -3
  171. package/library/components/checkbox.js +195 -18
  172. package/library/components/color-picker.js +4 -4
  173. package/library/components/color-swatch-group.js +5 -5
  174. package/library/components/color-swatch.js +2 -2
  175. package/library/components/confirm-popover.js +3 -3
  176. package/library/components/copy-button.js +2 -2
  177. package/library/components/corner-position-input-group.js +2 -2
  178. package/library/components/cropper.js +4 -4
  179. package/library/components/date-calendar.js +1 -1
  180. package/library/components/details.js +2 -2
  181. package/library/components/dialog.js +3 -3
  182. package/library/components/diff.js +1 -1
  183. package/library/components/divider.js +1 -1
  184. package/library/components/document-viewer.js +3 -3
  185. package/library/components/dot-pagination.js +2 -2
  186. package/library/components/drawer.js +3 -3
  187. package/library/components/dropdown.js +2 -2
  188. package/library/components/dynamic-select.js +6 -6
  189. package/library/components/e-chart.js +1 -1
  190. package/library/components/element-clamp.js +2 -2
  191. package/library/components/file-on-demand.js +350 -374
  192. package/library/components/folder-select.js +5 -5
  193. package/library/components/format-time.js +2 -2
  194. package/library/components/grid-item.js +1 -1
  195. package/library/components/header.js +2 -2
  196. package/library/components/hub-connection.js +2 -2
  197. package/library/components/icon-button.js +2 -2
  198. package/library/components/icon.js +2 -2
  199. package/library/components/iframe.js +2 -2
  200. package/library/components/image-comparer.js +2 -2
  201. package/library/components/image.js +3 -3
  202. package/library/components/include.js +1 -1
  203. package/library/components/input.js +3 -3
  204. package/library/components/line-clamp.js +1 -1
  205. package/library/components/markdown.js +11 -2704
  206. package/library/components/masonry.js +76 -73
  207. package/library/components/menu-item.js +2 -2
  208. package/library/components/molecules.js +3 -3
  209. package/library/components/mutation-observer.js +1 -1
  210. package/library/components/option.js +3 -3
  211. package/library/components/organisms.js +2 -2
  212. package/library/components/padding-input-group.js +1 -1
  213. package/library/components/pagination.js +6 -6
  214. package/library/components/position-picker.js +25 -25
  215. package/library/components/qr-code.js +1 -1
  216. package/library/components/radio-button.js +1 -1
  217. package/library/components/radio-card.js +1 -1
  218. package/library/components/radio-group.js +1 -1
  219. package/library/components/radio.js +2 -2
  220. package/library/components/range.js +1 -1
  221. package/library/components/rating.js +2 -2
  222. package/library/components/resize-observer.js +1 -1
  223. package/library/components/select.js +3 -3
  224. package/library/components/shadow-input-group.js +1 -1
  225. package/library/components/share-option-list.js +2 -2
  226. package/library/components/sidebar.js +3 -3
  227. package/library/components/size-input-group.js +3 -3
  228. package/library/components/split-panel.js +1 -1
  229. package/library/components/step.js +1 -1
  230. package/library/components/stepper-wizard.js +1 -1
  231. package/library/components/stepper.js +1 -1
  232. package/library/components/switch.js +1 -1
  233. package/library/components/tab-group.js +4 -4
  234. package/library/components/tab-panel.js +1 -1
  235. package/library/components/tab.js +2 -2
  236. package/library/components/tag.js +1 -1
  237. package/library/components/textarea.js +1 -1
  238. package/library/components/timecode.js +1 -1
  239. package/library/components/tooltip.js +1 -1
  240. package/library/components/tree-item.js +4 -4
  241. package/library/components/tree.js +2 -2
  242. package/library/components/typeface.js +2 -2
  243. package/library/components/types.js +122327 -120686
  244. package/library/components/video.js +2 -2
  245. package/library/package.json +2 -1
  246. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  247. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  248. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  249. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  250. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  251. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  252. package/library/packages/events/src/events.d.ts +1 -0
  253. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  254. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  255. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  256. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  257. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  258. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  259. package/library/packages/molecules/src/index.d.ts +1 -0
  260. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  261. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  262. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  263. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  264. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  265. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  266. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  267. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  268. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  269. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  270. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  271. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  272. package/library/packages/types/src/tree-item.d.ts +12 -0
  273. package/library/react-web-component.d.ts +86 -8
  274. package/library/utils.js +64 -65
  275. package/package.json +2 -1
  276. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  277. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  278. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  279. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  280. package/library/chunks/content-builder.BU8X7I6V.js +0 -60
  281. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  282. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  283. package/library/chunks/index.DU0XUO4k.js +0 -176
  284. package/library/chunks/transformation.D1alV_s4.js +0 -189
  285. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -0,0 +1,913 @@
1
+ import { g as Bt } from "./chunk-XXDRQBXY.CSOjab1V.js";
2
+ import { s as Ft } from "./chunk-VR4S4FIN.BpryBs7q.js";
3
+ import { _ as d, b as Yt, a as Pt, s as zt, g as Gt, n as Kt, o as Ut, c as rt, l as V, p as Zt, q as jt, r as Wt, t as qt, u as Qt, v as Xt, x as Ht } from "./mermaid.core.Dspbw7Ig.js";
4
+ import "./index.CrhRU5m8.js";
5
+ import "./transform.BuqENXeT.js";
6
+ import { c as Jt } from "./channel.s_XjcUYI.js";
7
+ import { s as $t } from "./select.C6_sM3Pr.js";
8
+ var gt = function() {
9
+ var s = /* @__PURE__ */ d(function(I, n, a, o) {
10
+ for (a = a || {}, o = I.length; o--; a[I[o]] = n) ;
11
+ return a;
12
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], c = [1, 10], h = [1, 11], l = [1, 12], p = [1, 13], y = [1, 23], u = [1, 24], m = [1, 25], W = [1, 26], q = [1, 27], S = [1, 19], Q = [1, 28], B = [1, 29], D = [1, 20], R = [1, 18], T = [1, 21], C = [1, 22], at = [1, 36], ct = [1, 37], ot = [1, 38], lt = [1, 39], ht = [1, 40], F = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], N = [1, 46], Y = [1, 55], P = [40, 48, 50, 51, 52, 71, 72], z = [1, 66], G = [1, 64], A = [1, 61], K = [1, 65], U = [1, 67], X = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], bt = [66, 67, 68, 69, 70], kt = [1, 85], mt = [1, 84], Et = [1, 82], St = [1, 83], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 93], J = [1, 92], $ = [1, 91], Z = [19, 58], Ot = [1, 102], Nt = [1, 101], ut = [19, 58, 61, 63], dt = {
13
+ trace: /* @__PURE__ */ d(function() {
14
+ }, "trace"),
15
+ yy: {},
16
+ symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, DECIMAL_NUM: 51, ENTITY_ONE: 52, attribute: 53, attributeType: 54, attributeName: 55, attributeKeyTypeList: 56, attributeComment: 57, ATTRIBUTE_WORD: 58, "?": 59, attributeKeyType: 60, ",": 61, ATTRIBUTE_KEY: 62, COMMENT: 63, cardinality: 64, relType: 65, ZERO_OR_ONE: 66, ZERO_OR_MORE: 67, ONE_OR_MORE: 68, ONLY_ONE: 69, MD_PARENT: 70, NON_IDENTIFYING: 71, IDENTIFYING: 72, WORD: 73, $accept: 0, $end: 1 },
17
+ terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 51: "DECIMAL_NUM", 52: "ENTITY_ONE", 58: "ATTRIBUTE_WORD", 59: "?", 61: ",", 62: "ATTRIBUTE_KEY", 63: "COMMENT", 66: "ZERO_OR_ONE", 67: "ZERO_OR_MORE", 68: "ONE_OR_MORE", 69: "ONLY_ONE", 70: "MD_PARENT", 71: "NON_IDENTIFYING", 72: "IDENTIFYING", 73: "WORD" },
18
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [18, 1], [18, 2], [53, 2], [53, 3], [53, 3], [53, 4], [54, 1], [54, 2], [55, 1], [56, 1], [56, 3], [60, 1], [57, 1], [12, 3], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [14, 1], [14, 1], [14, 1]],
19
+ performAction: /* @__PURE__ */ d(function(n, a, o, r, f, t, j) {
20
+ var e = t.length - 1;
21
+ switch (f) {
22
+ case 1:
23
+ break;
24
+ case 2:
25
+ this.$ = [];
26
+ break;
27
+ case 3:
28
+ t[e - 1].push(t[e]), this.$ = t[e - 1];
29
+ break;
30
+ case 4:
31
+ case 5:
32
+ this.$ = t[e];
33
+ break;
34
+ case 6:
35
+ case 7:
36
+ this.$ = [];
37
+ break;
38
+ case 8:
39
+ r.addEntity(t[e - 4]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]);
40
+ break;
41
+ case 9:
42
+ r.addEntity(t[e - 8]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 8]], t[e - 6]), r.setClass([t[e - 4]], t[e - 2]);
43
+ break;
44
+ case 10:
45
+ r.addEntity(t[e - 6]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), r.setClass([t[e - 6]], t[e - 4]);
46
+ break;
47
+ case 11:
48
+ r.addEntity(t[e - 6]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 4]], t[e - 2]);
49
+ break;
50
+ case 12:
51
+ r.addEntity(t[e - 3]), r.addAttributes(t[e - 3], t[e - 1]);
52
+ break;
53
+ case 13:
54
+ r.addEntity(t[e - 5]), r.addAttributes(t[e - 5], t[e - 1]), r.setClass([t[e - 5]], t[e - 3]);
55
+ break;
56
+ case 14:
57
+ r.addEntity(t[e - 2]);
58
+ break;
59
+ case 15:
60
+ r.addEntity(t[e - 4]), r.setClass([t[e - 4]], t[e - 2]);
61
+ break;
62
+ case 16:
63
+ r.addEntity(t[e]);
64
+ break;
65
+ case 17:
66
+ r.addEntity(t[e - 2]), r.setClass([t[e - 2]], t[e]);
67
+ break;
68
+ case 18:
69
+ r.addEntity(t[e - 6], t[e - 4]), r.addAttributes(t[e - 6], t[e - 1]);
70
+ break;
71
+ case 19:
72
+ r.addEntity(t[e - 8], t[e - 6]), r.addAttributes(t[e - 8], t[e - 1]), r.setClass([t[e - 8]], t[e - 3]);
73
+ break;
74
+ case 20:
75
+ r.addEntity(t[e - 5], t[e - 3]);
76
+ break;
77
+ case 21:
78
+ r.addEntity(t[e - 7], t[e - 5]), r.setClass([t[e - 7]], t[e - 2]);
79
+ break;
80
+ case 22:
81
+ r.addEntity(t[e - 3], t[e - 1]);
82
+ break;
83
+ case 23:
84
+ r.addEntity(t[e - 5], t[e - 3]), r.setClass([t[e - 5]], t[e]);
85
+ break;
86
+ case 24:
87
+ case 25:
88
+ this.$ = t[e].trim(), r.setAccTitle(this.$);
89
+ break;
90
+ case 26:
91
+ case 27:
92
+ this.$ = t[e].trim(), r.setAccDescription(this.$);
93
+ break;
94
+ case 32:
95
+ r.setDirection("TB");
96
+ break;
97
+ case 33:
98
+ r.setDirection("BT");
99
+ break;
100
+ case 34:
101
+ r.setDirection("RL");
102
+ break;
103
+ case 35:
104
+ r.setDirection("LR");
105
+ break;
106
+ case 36:
107
+ this.$ = t[e - 3], r.addClass(t[e - 2], t[e - 1]);
108
+ break;
109
+ case 37:
110
+ case 38:
111
+ case 59:
112
+ case 68:
113
+ this.$ = [t[e]];
114
+ break;
115
+ case 39:
116
+ case 40:
117
+ this.$ = t[e - 2].concat([t[e]]);
118
+ break;
119
+ case 41:
120
+ this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
121
+ break;
122
+ case 42:
123
+ this.$ = t[e - 3], r.addCssStyles(t[e - 2], t[e - 1]);
124
+ break;
125
+ case 43:
126
+ this.$ = [t[e]];
127
+ break;
128
+ case 44:
129
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
130
+ break;
131
+ case 46:
132
+ this.$ = t[e - 1] + t[e];
133
+ break;
134
+ case 54:
135
+ case 80:
136
+ case 81:
137
+ this.$ = t[e].replace(/"/g, "");
138
+ break;
139
+ case 55:
140
+ case 56:
141
+ case 57:
142
+ case 58:
143
+ case 82:
144
+ this.$ = t[e];
145
+ break;
146
+ case 60:
147
+ t[e].push(t[e - 1]), this.$ = t[e];
148
+ break;
149
+ case 61:
150
+ this.$ = { type: t[e - 1], name: t[e] };
151
+ break;
152
+ case 62:
153
+ this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
154
+ break;
155
+ case 63:
156
+ this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
157
+ break;
158
+ case 64:
159
+ this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
160
+ break;
161
+ case 65:
162
+ case 67:
163
+ case 70:
164
+ this.$ = t[e];
165
+ break;
166
+ case 66:
167
+ this.$ = t[e - 1] + t[e];
168
+ break;
169
+ case 69:
170
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
171
+ break;
172
+ case 71:
173
+ this.$ = t[e].replace(/"/g, "");
174
+ break;
175
+ case 72:
176
+ this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
177
+ break;
178
+ case 73:
179
+ this.$ = r.Cardinality.ZERO_OR_ONE;
180
+ break;
181
+ case 74:
182
+ this.$ = r.Cardinality.ZERO_OR_MORE;
183
+ break;
184
+ case 75:
185
+ this.$ = r.Cardinality.ONE_OR_MORE;
186
+ break;
187
+ case 76:
188
+ this.$ = r.Cardinality.ONLY_ONE;
189
+ break;
190
+ case 77:
191
+ this.$ = r.Cardinality.MD_PARENT;
192
+ break;
193
+ case 78:
194
+ this.$ = r.Identification.NON_IDENTIFYING;
195
+ break;
196
+ case 79:
197
+ this.$ = r.Identification.IDENTIFYING;
198
+ break;
199
+ }
200
+ }, "anonymous"),
201
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: c, 24: h, 26: l, 28: p, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: q, 40: S, 43: Q, 44: B, 48: D, 50: R, 51: T, 52: C }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 30, 11: 9, 22: c, 24: h, 26: l, 28: p, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: q, 40: S, 43: Q, 44: B, 48: D, 50: R, 51: T, 52: C }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(F, [2, 54]), s(F, [2, 55]), s(F, [2, 56]), s(F, [2, 57]), s(F, [2, 58]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, s(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: R, 51: T, 52: C }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: Y }, { 11: 56, 40: S, 48: D, 50: R, 51: T, 52: C }, { 65: 57, 71: [1, 58], 72: [1, 59] }, s(P, [2, 73]), s(P, [2, 74]), s(P, [2, 75]), s(P, [2, 76]), s(P, [2, 77]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: z, 38: 60, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, s(X, [2, 37]), s(X, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: z, 38: 69, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, { 13: [1, 70], 15: [1, 71] }, s(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: A, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 19: [1, 74] }, s(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: Y }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }, s(bt, [2, 78]), s(bt, [2, 79]), { 6: kt, 10: mt, 39: 81, 42: Et, 47: St }, { 40: [1, 86], 41: [1, 87] }, s(Tt, [2, 43], { 46: 88, 13: z, 41: G, 48: K, 49: U }), s(L, [2, 45]), s(L, [2, 50]), s(L, [2, 51]), s(L, [2, 52]), s(L, [2, 53]), s(i, [2, 41], { 42: A }), { 6: kt, 10: mt, 39: 89, 42: Et, 47: St }, { 14: 90, 40: H, 50: J, 73: $ }, { 16: 94, 40: O, 41: N }, { 11: 95, 40: S, 48: D, 50: R, 51: T, 52: C }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: Y }, s(i, [2, 12]), { 19: [2, 60] }, s(Z, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Ot, 63: Nt }), s([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, s(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), s([40, 48, 50, 51, 52], [2, 72]), s(i, [2, 36]), { 13: z, 41: G, 45: 105, 46: 63, 48: K, 49: U }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(X, [2, 39]), s(X, [2, 40]), s(L, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 80]), s(i, [2, 81]), s(i, [2, 82]), { 13: [1, 106], 42: A }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, s(i, [2, 15]), s(Z, [2, 62], { 57: 110, 61: [1, 111], 63: Nt }), s(Z, [2, 63]), s(ut, [2, 68]), s(Z, [2, 71]), s(ut, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: Y }, { 16: 114, 40: O, 41: N }, s(Tt, [2, 44], { 46: 88, 13: z, 41: G, 48: K, 49: U }), { 14: 115, 40: H, 50: J, 73: $ }, { 16: 116, 40: O, 41: N }, { 14: 117, 40: H, 50: J, 73: $ }, s(i, [2, 13]), s(Z, [2, 64]), { 60: 118, 62: Ot }, { 19: [1, 119] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 120], 42: A }), s(i, [2, 11]), { 13: [1, 121], 42: A }, s(i, [2, 10]), s(ut, [2, 69]), s(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: Y }, { 14: 124, 40: H, 50: J, 73: $ }, { 19: [1, 125] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
202
+ defaultActions: { 75: [2, 60], 78: [2, 66] },
203
+ parseError: /* @__PURE__ */ d(function(n, a) {
204
+ if (a.recoverable)
205
+ this.trace(n);
206
+ else {
207
+ var o = new Error(n);
208
+ throw o.hash = a, o;
209
+ }
210
+ }, "parseError"),
211
+ parse: /* @__PURE__ */ d(function(n) {
212
+ var a = this, o = [0], r = [], f = [null], t = [], j = this.table, e = "", et = 0, At = 0, Lt = 2, It = 1, wt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
213
+ for (var pt in this.yy)
214
+ Object.prototype.hasOwnProperty.call(this.yy, pt) && (x.yy[pt] = this.yy[pt]);
215
+ _.setInput(n, x.yy), x.yy.lexer = _, x.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
216
+ var ft = _.yylloc;
217
+ t.push(ft);
218
+ var Vt = _.options && _.options.ranges;
219
+ typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
220
+ function Mt(b) {
221
+ o.length = o.length - 2 * b, f.length = f.length - b, t.length = t.length - b;
222
+ }
223
+ d(Mt, "popStack");
224
+ function Rt() {
225
+ var b;
226
+ return b = r.pop() || _.lex() || It, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
227
+ }
228
+ d(Rt, "lex");
229
+ for (var g, v, k, yt, w = {}, st, E, Ct, it; ; ) {
230
+ if (v = o[o.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = Rt()), k = j[v] && j[v][g]), typeof k > "u" || !k.length || !k[0]) {
231
+ var _t = "";
232
+ it = [];
233
+ for (st in j[v])
234
+ this.terminals_[st] && st > Lt && it.push("'" + this.terminals_[st] + "'");
235
+ _.showPosition ? _t = "Parse error on line " + (et + 1) + `:
236
+ ` + _.showPosition() + `
237
+ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t = "Parse error on line " + (et + 1) + ": Unexpected " + (g == It ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(_t, {
238
+ text: _.match,
239
+ token: this.terminals_[g] || g,
240
+ line: _.yylineno,
241
+ loc: ft,
242
+ expected: it
243
+ });
244
+ }
245
+ if (k[0] instanceof Array && k.length > 1)
246
+ throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + g);
247
+ switch (k[0]) {
248
+ case 1:
249
+ o.push(g), f.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, At = _.yyleng, e = _.yytext, et = _.yylineno, ft = _.yylloc;
250
+ break;
251
+ case 2:
252
+ if (E = this.productions_[k[1]][1], w.$ = f[f.length - E], w._$ = {
253
+ first_line: t[t.length - (E || 1)].first_line,
254
+ last_line: t[t.length - 1].last_line,
255
+ first_column: t[t.length - (E || 1)].first_column,
256
+ last_column: t[t.length - 1].last_column
257
+ }, Vt && (w._$.range = [
258
+ t[t.length - (E || 1)].range[0],
259
+ t[t.length - 1].range[1]
260
+ ]), yt = this.performAction.apply(w, [
261
+ e,
262
+ At,
263
+ et,
264
+ x.yy,
265
+ k[1],
266
+ f,
267
+ t
268
+ ].concat(wt)), typeof yt < "u")
269
+ return yt;
270
+ E && (o = o.slice(0, -1 * E * 2), f = f.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), f.push(w.$), t.push(w._$), Ct = j[o[o.length - 2]][o[o.length - 1]], o.push(Ct);
271
+ break;
272
+ case 3:
273
+ return !0;
274
+ }
275
+ }
276
+ return !0;
277
+ }, "parse")
278
+ }, Dt = /* @__PURE__ */ function() {
279
+ var I = {
280
+ EOF: 1,
281
+ parseError: /* @__PURE__ */ d(function(a, o) {
282
+ if (this.yy.parser)
283
+ this.yy.parser.parseError(a, o);
284
+ else
285
+ throw new Error(a);
286
+ }, "parseError"),
287
+ // resets the lexer, sets new input
288
+ setInput: /* @__PURE__ */ d(function(n, a) {
289
+ return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
290
+ first_line: 1,
291
+ first_column: 0,
292
+ last_line: 1,
293
+ last_column: 0
294
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
295
+ }, "setInput"),
296
+ // consumes and returns one char from the input
297
+ input: /* @__PURE__ */ d(function() {
298
+ var n = this._input[0];
299
+ this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
300
+ var a = n.match(/(?:\r\n?|\n).*/g);
301
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
302
+ }, "input"),
303
+ // unshifts one char (or a string) into the input
304
+ unput: /* @__PURE__ */ d(function(n) {
305
+ var a = n.length, o = n.split(/(?:\r\n?|\n)/g);
306
+ this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
307
+ var r = this.match.split(/(?:\r\n?|\n)/g);
308
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
309
+ var f = this.yylloc.range;
310
+ return this.yylloc = {
311
+ first_line: this.yylloc.first_line,
312
+ last_line: this.yylineno + 1,
313
+ first_column: this.yylloc.first_column,
314
+ last_column: o ? (o.length === r.length ? this.yylloc.first_column : 0) + r[r.length - o.length].length - o[0].length : this.yylloc.first_column - a
315
+ }, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
316
+ }, "unput"),
317
+ // When called from action, caches matched text and appends it on next action
318
+ more: /* @__PURE__ */ d(function() {
319
+ return this._more = !0, this;
320
+ }, "more"),
321
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
322
+ reject: /* @__PURE__ */ d(function() {
323
+ if (this.options.backtrack_lexer)
324
+ this._backtrack = !0;
325
+ else
326
+ 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).
327
+ ` + this.showPosition(), {
328
+ text: "",
329
+ token: null,
330
+ line: this.yylineno
331
+ });
332
+ return this;
333
+ }, "reject"),
334
+ // retain first n characters of the match
335
+ less: /* @__PURE__ */ d(function(n) {
336
+ this.unput(this.match.slice(n));
337
+ }, "less"),
338
+ // displays already matched input, i.e. for error messages
339
+ pastInput: /* @__PURE__ */ d(function() {
340
+ var n = this.matched.substr(0, this.matched.length - this.match.length);
341
+ return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
342
+ }, "pastInput"),
343
+ // displays upcoming input, i.e. for error messages
344
+ upcomingInput: /* @__PURE__ */ d(function() {
345
+ var n = this.match;
346
+ return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
347
+ }, "upcomingInput"),
348
+ // displays the character position where the lexing error occurred, i.e. for error messages
349
+ showPosition: /* @__PURE__ */ d(function() {
350
+ var n = this.pastInput(), a = new Array(n.length + 1).join("-");
351
+ return n + this.upcomingInput() + `
352
+ ` + a + "^";
353
+ }, "showPosition"),
354
+ // test the lexed token: return FALSE when not a match, otherwise return token
355
+ test_match: /* @__PURE__ */ d(function(n, a) {
356
+ var o, r, f;
357
+ if (this.options.backtrack_lexer && (f = {
358
+ yylineno: this.yylineno,
359
+ yylloc: {
360
+ first_line: this.yylloc.first_line,
361
+ last_line: this.last_line,
362
+ first_column: this.yylloc.first_column,
363
+ last_column: this.yylloc.last_column
364
+ },
365
+ yytext: this.yytext,
366
+ match: this.match,
367
+ matches: this.matches,
368
+ matched: this.matched,
369
+ yyleng: this.yyleng,
370
+ offset: this.offset,
371
+ _more: this._more,
372
+ _input: this._input,
373
+ yy: this.yy,
374
+ conditionStack: this.conditionStack.slice(0),
375
+ done: this.done
376
+ }, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
377
+ first_line: this.yylloc.last_line,
378
+ last_line: this.yylineno + 1,
379
+ first_column: this.yylloc.last_column,
380
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
381
+ }, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
382
+ return o;
383
+ if (this._backtrack) {
384
+ for (var t in f)
385
+ this[t] = f[t];
386
+ return !1;
387
+ }
388
+ return !1;
389
+ }, "test_match"),
390
+ // return next match in input
391
+ next: /* @__PURE__ */ d(function() {
392
+ if (this.done)
393
+ return this.EOF;
394
+ this._input || (this.done = !0);
395
+ var n, a, o, r;
396
+ this._more || (this.yytext = "", this.match = "");
397
+ for (var f = this._currentRules(), t = 0; t < f.length; t++)
398
+ if (o = this._input.match(this.rules[f[t]]), o && (!a || o[0].length > a[0].length)) {
399
+ if (a = o, r = t, this.options.backtrack_lexer) {
400
+ if (n = this.test_match(o, f[t]), n !== !1)
401
+ return n;
402
+ if (this._backtrack) {
403
+ a = !1;
404
+ continue;
405
+ } else
406
+ return !1;
407
+ } else if (!this.options.flex)
408
+ break;
409
+ }
410
+ return a ? (n = this.test_match(a, f[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
411
+ ` + this.showPosition(), {
412
+ text: "",
413
+ token: null,
414
+ line: this.yylineno
415
+ });
416
+ }, "next"),
417
+ // return next match that has a token
418
+ lex: /* @__PURE__ */ d(function() {
419
+ var a = this.next();
420
+ return a || this.lex();
421
+ }, "lex"),
422
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
423
+ begin: /* @__PURE__ */ d(function(a) {
424
+ this.conditionStack.push(a);
425
+ }, "begin"),
426
+ // pop the previously active lexer condition state off the condition stack
427
+ popState: /* @__PURE__ */ d(function() {
428
+ var a = this.conditionStack.length - 1;
429
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
430
+ }, "popState"),
431
+ // produce the lexer rule set which is active for the currently active lexer condition state
432
+ _currentRules: /* @__PURE__ */ d(function() {
433
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
434
+ }, "_currentRules"),
435
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
436
+ topState: /* @__PURE__ */ d(function(a) {
437
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
438
+ }, "topState"),
439
+ // alias for begin(condition)
440
+ pushState: /* @__PURE__ */ d(function(a) {
441
+ this.begin(a);
442
+ }, "pushState"),
443
+ // return the number of states currently on the stack
444
+ stateStackSize: /* @__PURE__ */ d(function() {
445
+ return this.conditionStack.length;
446
+ }, "stateStackSize"),
447
+ options: { "case-insensitive": !0 },
448
+ performAction: /* @__PURE__ */ d(function(a, o, r, f) {
449
+ switch (r) {
450
+ case 0:
451
+ return this.begin("acc_title"), 24;
452
+ case 1:
453
+ return this.popState(), "acc_title_value";
454
+ case 2:
455
+ return this.begin("acc_descr"), 26;
456
+ case 3:
457
+ return this.popState(), "acc_descr_value";
458
+ case 4:
459
+ this.begin("acc_descr_multiline");
460
+ break;
461
+ case 5:
462
+ this.popState();
463
+ break;
464
+ case 6:
465
+ return "acc_descr_multiline_value";
466
+ case 7:
467
+ return 33;
468
+ case 8:
469
+ return 34;
470
+ case 9:
471
+ return 35;
472
+ case 10:
473
+ return 36;
474
+ case 11:
475
+ return 10;
476
+ case 12:
477
+ break;
478
+ case 13:
479
+ return 8;
480
+ case 14:
481
+ return 50;
482
+ case 15:
483
+ return 73;
484
+ case 16:
485
+ return 4;
486
+ case 17:
487
+ return this.begin("block"), 17;
488
+ case 18:
489
+ return 49;
490
+ case 19:
491
+ return 49;
492
+ case 20:
493
+ return 42;
494
+ case 21:
495
+ return 15;
496
+ case 22:
497
+ return 13;
498
+ case 23:
499
+ break;
500
+ case 24:
501
+ return 62;
502
+ case 25:
503
+ return 58;
504
+ case 26:
505
+ return 58;
506
+ case 27:
507
+ this.begin("block_bq");
508
+ break;
509
+ case 28:
510
+ return 58;
511
+ case 29:
512
+ this.popState();
513
+ break;
514
+ case 30:
515
+ return 63;
516
+ case 31:
517
+ break;
518
+ case 32:
519
+ return this.popState(), 19;
520
+ case 33:
521
+ return o.yytext[0];
522
+ case 34:
523
+ return 20;
524
+ case 35:
525
+ return 21;
526
+ case 36:
527
+ return this.begin("style"), 44;
528
+ case 37:
529
+ return this.popState(), 10;
530
+ case 38:
531
+ break;
532
+ case 39:
533
+ return 13;
534
+ case 40:
535
+ return 42;
536
+ case 41:
537
+ return 49;
538
+ case 42:
539
+ return this.begin("style"), 37;
540
+ case 43:
541
+ return 43;
542
+ case 44:
543
+ return 66;
544
+ case 45:
545
+ return 68;
546
+ case 46:
547
+ return 68;
548
+ case 47:
549
+ return 68;
550
+ case 48:
551
+ return 66;
552
+ case 49:
553
+ return 66;
554
+ case 50:
555
+ return 67;
556
+ case 51:
557
+ return 67;
558
+ case 52:
559
+ return 67;
560
+ case 53:
561
+ return 67;
562
+ case 54:
563
+ return 67;
564
+ case 55:
565
+ return 68;
566
+ case 56:
567
+ return 67;
568
+ case 57:
569
+ return 68;
570
+ case 58:
571
+ return 69;
572
+ case 59:
573
+ return 69;
574
+ case 60:
575
+ return 51;
576
+ case 61:
577
+ return 69;
578
+ case 62:
579
+ return 69;
580
+ case 63:
581
+ return 69;
582
+ case 64:
583
+ return 52;
584
+ case 65:
585
+ return 48;
586
+ case 66:
587
+ return 69;
588
+ case 67:
589
+ return 66;
590
+ case 68:
591
+ return 67;
592
+ case 69:
593
+ return 68;
594
+ case 70:
595
+ return 70;
596
+ case 71:
597
+ return 71;
598
+ case 72:
599
+ return 72;
600
+ case 73:
601
+ return 72;
602
+ case 74:
603
+ return 71;
604
+ case 75:
605
+ return 71;
606
+ case 76:
607
+ return 71;
608
+ case 77:
609
+ return 41;
610
+ case 78:
611
+ return 47;
612
+ case 79:
613
+ return 40;
614
+ case 80:
615
+ return o.yytext[0];
616
+ case 81:
617
+ return 6;
618
+ }
619
+ }, "anonymous"),
620
+ rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i, /^(?:[`])/i, /^(?:[^`]+)/i, /^(?:[`])/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:[0-9]+\.[0-9]+)/i, /^(?:1(?=\s+[A-Za-z_"']))/i, /^(?:1(?=\s+[0-9]))/i, /^(?:1(?=(--|\.\.|\.-|-\.)))/i, /^(?:1\b)/i, /^(?:[0-9]+)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:u(?=[\.\-\|]))/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i, /^(?:.)/i, /^(?:$)/i],
621
+ conditions: { style: { rules: [37, 38, 39, 40, 41, 77, 78], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block_bq: { rules: [28, 29], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 30, 31, 32, 33], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 34, 35, 36, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 79, 80, 81], inclusive: !0 } }
622
+ };
623
+ return I;
624
+ }();
625
+ dt.lexer = Dt;
626
+ function tt() {
627
+ this.yy = {};
628
+ }
629
+ return d(tt, "Parser"), tt.prototype = dt, dt.Parser = tt, new tt();
630
+ }();
631
+ gt.parser = gt;
632
+ var te = gt, M, ee = (M = class {
633
+ constructor() {
634
+ this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
635
+ ZERO_OR_ONE: "ZERO_OR_ONE",
636
+ ZERO_OR_MORE: "ZERO_OR_MORE",
637
+ ONE_OR_MORE: "ONE_OR_MORE",
638
+ ONLY_ONE: "ONLY_ONE",
639
+ MD_PARENT: "MD_PARENT"
640
+ }, this.Identification = {
641
+ NON_IDENTIFYING: "NON_IDENTIFYING",
642
+ IDENTIFYING: "IDENTIFYING"
643
+ }, this.setAccTitle = Yt, this.getAccTitle = Pt, this.setAccDescription = zt, this.getAccDescription = Gt, this.setDiagramTitle = Kt, this.getDiagramTitle = Ut, this.getConfig = /* @__PURE__ */ d(() => rt().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);
644
+ }
645
+ /**
646
+ * Add entity
647
+ * @param name - The name of the entity
648
+ * @param alias - The alias of the entity
649
+ */
650
+ addEntity(i, c = "") {
651
+ return this.entities.has(i) ? !this.entities.get(i)?.alias && c && (this.entities.get(i).alias = c, V.info(`Add alias '${c}' to entity '${i}'`)) : (this.entities.set(i, {
652
+ id: `entity-${i}-${this.entities.size}`,
653
+ label: i,
654
+ attributes: [],
655
+ alias: c,
656
+ shape: "erBox",
657
+ look: rt().look ?? "default",
658
+ cssClasses: "default",
659
+ cssStyles: [],
660
+ labelType: "markdown"
661
+ }), V.info("Added new entity :", i)), this.entities.get(i);
662
+ }
663
+ getEntity(i) {
664
+ return this.entities.get(i);
665
+ }
666
+ getEntities() {
667
+ return this.entities;
668
+ }
669
+ getClasses() {
670
+ return this.classes;
671
+ }
672
+ addAttributes(i, c) {
673
+ const h = this.addEntity(i);
674
+ let l;
675
+ for (l = c.length - 1; l >= 0; l--)
676
+ c[l].keys || (c[l].keys = []), c[l].comment || (c[l].comment = ""), h.attributes.push(c[l]), V.debug("Added attribute ", c[l].name);
677
+ }
678
+ /**
679
+ * Add a relationship
680
+ *
681
+ * @param entA - The first entity in the relationship
682
+ * @param rolA - The role played by the first entity in relation to the second
683
+ * @param entB - The second entity in the relationship
684
+ * @param rSpec - The details of the relationship between the two entities
685
+ */
686
+ addRelationship(i, c, h, l) {
687
+ const p = this.entities.get(i), y = this.entities.get(h);
688
+ if (!p || !y)
689
+ return;
690
+ const u = {
691
+ entityA: p.id,
692
+ roleA: c,
693
+ entityB: y.id,
694
+ relSpec: l
695
+ };
696
+ this.relationships.push(u), V.debug("Added new relationship :", u);
697
+ }
698
+ getRelationships() {
699
+ return this.relationships;
700
+ }
701
+ getDirection() {
702
+ return this.direction;
703
+ }
704
+ setDirection(i) {
705
+ this.direction = i;
706
+ }
707
+ getCompiledStyles(i) {
708
+ let c = [];
709
+ for (const h of i) {
710
+ const l = this.classes.get(h);
711
+ l?.styles && (c = [...c, ...l.styles ?? []].map((p) => p.trim())), l?.textStyles && (c = [...c, ...l.textStyles ?? []].map((p) => p.trim()));
712
+ }
713
+ return c;
714
+ }
715
+ addCssStyles(i, c) {
716
+ for (const h of i) {
717
+ const l = this.entities.get(h);
718
+ if (!c || !l)
719
+ return;
720
+ for (const p of c)
721
+ l.cssStyles.push(p);
722
+ }
723
+ }
724
+ addClass(i, c) {
725
+ i.forEach((h) => {
726
+ let l = this.classes.get(h);
727
+ l === void 0 && (l = { id: h, styles: [], textStyles: [] }, this.classes.set(h, l)), c && c.forEach(function(p) {
728
+ if (/color/.exec(p)) {
729
+ const y = p.replace("fill", "bgFill");
730
+ l.textStyles.push(y);
731
+ }
732
+ l.styles.push(p);
733
+ });
734
+ });
735
+ }
736
+ setClass(i, c) {
737
+ for (const h of i) {
738
+ const l = this.entities.get(h);
739
+ if (l)
740
+ for (const p of c)
741
+ l.cssClasses += " " + p;
742
+ }
743
+ }
744
+ clear() {
745
+ this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Zt();
746
+ }
747
+ getData() {
748
+ const i = [], c = [], h = rt();
749
+ let l = 0;
750
+ for (const y of this.entities.keys()) {
751
+ const u = this.entities.get(y);
752
+ u && (u.cssCompiledStyles = this.getCompiledStyles(u.cssClasses.split(" ")), u.colorIndex = l++, i.push(u));
753
+ }
754
+ let p = 0;
755
+ for (const y of this.relationships) {
756
+ const u = {
757
+ id: jt(y.entityA, y.entityB, {
758
+ prefix: "id",
759
+ counter: p++
760
+ }),
761
+ type: "normal",
762
+ curve: "basis",
763
+ start: y.entityA,
764
+ end: y.entityB,
765
+ label: y.roleA,
766
+ labelpos: "c",
767
+ thickness: "normal",
768
+ classes: "relationshipLine",
769
+ arrowTypeStart: y.relSpec.cardB.toLowerCase(),
770
+ arrowTypeEnd: y.relSpec.cardA.toLowerCase(),
771
+ pattern: y.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
772
+ look: h.look,
773
+ labelType: "markdown"
774
+ };
775
+ c.push(u);
776
+ }
777
+ return { nodes: i, edges: c, other: {}, config: h, direction: "TB" };
778
+ }
779
+ }, d(M, "ErDB"), M), vt = {};
780
+ qt(vt, {
781
+ draw: () => se
782
+ });
783
+ var se = /* @__PURE__ */ d(async function(s, i, c, h) {
784
+ V.info("REF0:"), V.info("Drawing er diagram (unified)", i);
785
+ const { securityLevel: l, er: p, layout: y } = rt(), u = h.db.getData(), m = Bt(i, l);
786
+ u.type = h.type, u.layoutAlgorithm = Qt(y), u.config.flowchart.nodeSpacing = p?.nodeSpacing || 140, u.config.flowchart.rankSpacing = p?.rankSpacing || 80, u.direction = h.db.getDirection();
787
+ const { config: W } = u, { look: q } = W;
788
+ q === "neo" ? u.markers = [
789
+ "only_one_neo",
790
+ "zero_or_one_neo",
791
+ "one_or_more_neo",
792
+ "zero_or_more_neo"
793
+ ] : u.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], u.diagramId = i, await Xt(u, m), u.layoutAlgorithm === "elk" && m.select(".edges").lower();
794
+ const S = m.selectAll('[id*="-background"]');
795
+ Array.from(S).length > 0 && S.each(function() {
796
+ const B = $t(this), R = B.attr("id").replace("-background", ""), T = m.select(`#${CSS.escape(R)}`);
797
+ if (!T.empty()) {
798
+ const C = T.attr("transform");
799
+ B.attr("transform", C);
800
+ }
801
+ });
802
+ const Q = 8;
803
+ Ht.insertTitle(
804
+ m,
805
+ "erDiagramTitleText",
806
+ p?.titleTopMargin ?? 25,
807
+ h.db.getDiagramTitle()
808
+ ), Ft(m, Q, "erDiagram", p?.useMaxWidth ?? !0);
809
+ }, "draw"), xt = /* @__PURE__ */ d((s, i) => {
810
+ const c = Jt, h = c(s, "r"), l = c(s, "g"), p = c(s, "b");
811
+ return Wt(h, l, p, i);
812
+ }, "fade"), nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), ie = /* @__PURE__ */ d((s) => {
813
+ const { theme: i, look: c, bkgColorArray: h, borderColorArray: l } = s;
814
+ if (!nt.has(i))
815
+ return "";
816
+ const p = h?.length > 0;
817
+ let y = "";
818
+ for (let u = 0; u < s.THEME_COLOR_LIMIT; u++)
819
+ y += `
820
+
821
+ [data-look="${c}"][data-color-id="color-${u}"].node path {
822
+ stroke: ${l[u]};
823
+ ${p ? `fill: ${h[u]};` : ""}
824
+ }
825
+
826
+ [data-look="${c}"][data-color-id="color-${u}"].node rect {
827
+ stroke: ${l[u]};
828
+ ${p ? `fill: ${h[u]};` : ""}
829
+ }
830
+ `;
831
+ return y;
832
+ }, "genColor"), re = /* @__PURE__ */ d((s) => {
833
+ const { look: i, theme: c, erEdgeLabelBackground: h, strokeWidth: l } = s;
834
+ return `
835
+ ${ie(s)}
836
+ .entityBox {
837
+ fill: ${s.mainBkg};
838
+ stroke: ${s.nodeBorder};
839
+ }
840
+
841
+ .relationshipLabelBox {
842
+ fill: ${s.tertiaryColor};
843
+ opacity: 0.7;
844
+ background-color: ${s.tertiaryColor};
845
+ rect {
846
+ opacity: 0.5;
847
+ }
848
+ }
849
+
850
+ .labelBkg {
851
+ background-color: ${nt.has(c) && h ? h : xt(s.tertiaryColor, 0.5)};
852
+ }
853
+
854
+ .edgeLabel {
855
+ background-color: ${nt.has(c) && h ? h : s.edgeLabelBackground};
856
+ }
857
+ .edgeLabel .label rect {
858
+ fill: ${nt.has(c) && h ? h : s.edgeLabelBackground};
859
+ }
860
+ .edgeLabel .label text {
861
+ fill: ${s.textColor};
862
+ }
863
+
864
+ .edgeLabel .label {
865
+ fill: ${s.nodeBorder};
866
+ font-size: 14px;
867
+ }
868
+
869
+ .label {
870
+ font-family: ${s.fontFamily};
871
+ color: ${s.nodeTextColor || s.textColor};
872
+ }
873
+
874
+ .edge-pattern-dashed {
875
+ stroke-dasharray: 8,8;
876
+ }
877
+
878
+ .node rect,
879
+ .node circle,
880
+ .node ellipse,
881
+ .node polygon
882
+ {
883
+ fill: ${s.mainBkg};
884
+ stroke: ${s.nodeBorder};
885
+ stroke-width: ${i === "neo" ? l : "1px"};
886
+ }
887
+
888
+ .relationshipLine {
889
+ stroke: ${s.lineColor};
890
+ stroke-width: ${i === "neo" ? l : "1px"};
891
+ fill: none;
892
+ }
893
+
894
+ .marker {
895
+ fill: none !important;
896
+ stroke: ${s.lineColor} !important;
897
+ stroke-width: 1;
898
+ }
899
+ [data-look=neo].labelBkg {
900
+ background-color: ${xt(s.tertiaryColor, 0.5)};
901
+ }
902
+ `;
903
+ }, "getStyles"), ne = re, pe = {
904
+ parser: te,
905
+ get db() {
906
+ return new ee();
907
+ },
908
+ renderer: vt,
909
+ styles: ne
910
+ };
911
+ export {
912
+ pe as diagram
913
+ };