@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,1537 @@
1
+ import { g as st } from "./chunk-5VM5RSS4.D0-lddDM.js";
2
+ import { g as it } from "./chunk-XXDRQBXY.CSOjab1V.js";
3
+ import { s as at } from "./chunk-VR4S4FIN.BpryBs7q.js";
4
+ import { _ as f, l as we, c as F, u as rt, v as nt, x as Ve, b as ut, a as lt, s as ct, g as ot, n as ht, o as dt, j as I, p as pt, q as At, h as ft, O as U } from "./mermaid.core.Dspbw7Ig.js";
5
+ import { f as mt } from "./chunk-32BRIVSS.BbIrVi3j.js";
6
+ import "./index.CrhRU5m8.js";
7
+ import "./transform.BuqENXeT.js";
8
+ import { p as gt } from "./purify.es.BIuh5IAZ.js";
9
+ import { s as Ae } from "./select.C6_sM3Pr.js";
10
+ var Pe = function() {
11
+ var s = /* @__PURE__ */ f(function(O, o, h, p) {
12
+ for (h = h || {}, p = O.length; p--; h[O[p]] = o) ;
13
+ return h;
14
+ }, "o"), i = [1, 18], a = [1, 19], r = [1, 20], n = [1, 41], c = [1, 26], u = [1, 42], d = [1, 24], g = [1, 25], m = [1, 32], N = [1, 33], me = [1, 34], b = [1, 45], ge = [1, 35], Ce = [1, 36], be = [1, 37], ke = [1, 38], Ee = [1, 27], Te = [1, 28], ye = [1, 29], De = [1, 30], Fe = [1, 31], k = [1, 44], E = [1, 46], T = [1, 43], y = [1, 47], Be = [1, 9], A = [1, 8, 9], ee = [1, 58], te = [1, 59], se = [1, 60], ie = [1, 61], ae = [1, 62], _e = [1, 63], Se = [1, 64], _ = [1, 8, 9, 41], Me = [1, 77], R = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], re = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 46, 47, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ne = [13, 60, 86, 100, 102, 103], Y = [13, 60, 73, 74, 86, 100, 102, 103], Re = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], ue = [1, 103], K = [1, 121], W = [1, 117], Q = [1, 113], j = [1, 119], X = [1, 114], q = [1, 115], H = [1, 116], J = [1, 118], Z = [1, 120], Ge = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Ue = [1, 128], le = [12, 39], Ne = [1, 8, 9, 39, 41, 44, 46], ce = [1, 8, 9, 22], ze = [1, 153], Ye = [1, 8, 9, 61], x = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Le = {
15
+ trace: /* @__PURE__ */ f(function() {
16
+ }, "trace"),
17
+ yy: {},
18
+ symbols_: { error: 2, start: 3, mermaidDoc: 4, statements: 5, graphConfig: 6, CLASS_DIAGRAM: 7, NEWLINE: 8, EOF: 9, statement: 10, classLabel: 11, SQS: 12, STR: 13, SQE: 14, namespaceName: 15, alphaNumToken: 16, classLiteralName: 17, DOT: 18, className: 19, GENERICTYPE: 20, relationStatement: 21, LABEL: 22, namespaceStatement: 23, classStatement: 24, memberStatement: 25, annotationStatement: 26, clickStatement: 27, styleStatement: 28, cssClassStatement: 29, noteStatement: 30, classDefStatement: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, namespaceIdentifier: 38, STRUCT_START: 39, classStatements: 40, STRUCT_STOP: 41, NAMESPACE: 42, classIdentifier: 43, STYLE_SEPARATOR: 44, members: 45, ANNOTATION_START: 46, ANNOTATION_END: 47, CLASS: 48, emptyBody: 49, SPACE: 50, MEMBER: 51, SEPARATOR: 52, relation: 53, NOTE_FOR: 54, noteText: 55, NOTE: 56, CLASSDEF: 57, classList: 58, stylesOpt: 59, ALPHA: 60, COMMA: 61, direction_tb: 62, direction_bt: 63, direction_rl: 64, direction_lr: 65, relationType: 66, lineType: 67, AGGREGATION: 68, EXTENSION: 69, COMPOSITION: 70, DEPENDENCY: 71, LOLLIPOP: 72, LINE: 73, DOTTED_LINE: 74, CALLBACK: 75, LINK: 76, LINK_TARGET: 77, CLICK: 78, CALLBACK_NAME: 79, CALLBACK_ARGS: 80, HREF: 81, STYLE: 82, CSSCLASS: 83, style: 84, styleComponent: 85, NUM: 86, COLON: 87, UNIT: 88, BRKT: 89, PCT: 90, commentToken: 91, textToken: 92, graphCodeTokens: 93, textNoTagsToken: 94, TAGSTART: 95, TAGEND: 96, "==": 97, "--": 98, DEFAULT: 99, MINUS: 100, keywords: 101, UNICODE_TEXT: 102, BQUOTE_STR: 103, $accept: 0, $end: 1 },
19
+ terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 18: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "ANNOTATION_START", 47: "ANNOTATION_END", 48: "CLASS", 50: "SPACE", 51: "MEMBER", 52: "SEPARATOR", 54: "NOTE_FOR", 56: "NOTE", 57: "CLASSDEF", 60: "ALPHA", 61: "COMMA", 62: "direction_tb", 63: "direction_bt", 64: "direction_rl", 65: "direction_lr", 68: "AGGREGATION", 69: "EXTENSION", 70: "COMPOSITION", 71: "DEPENDENCY", 72: "LOLLIPOP", 73: "LINE", 74: "DOTTED_LINE", 75: "CALLBACK", 76: "LINK", 77: "LINK_TARGET", 78: "CLICK", 79: "CALLBACK_NAME", 80: "CALLBACK_ARGS", 81: "HREF", 82: "STYLE", 83: "CSSCLASS", 86: "NUM", 87: "COLON", 88: "UNIT", 89: "BRKT", 90: "PCT", 93: "graphCodeTokens", 95: "TAGSTART", 96: "TAGEND", 97: "==", 98: "--", 99: "DEFAULT", 100: "MINUS", 101: "keywords", 102: "UNICODE_TEXT", 103: "BQUOTE_STR" },
20
+ productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 1], [15, 3], [15, 2], [19, 1], [19, 3], [19, 1], [19, 2], [19, 2], [19, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [38, 3], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 3], [24, 6], [24, 4], [24, 7], [24, 6], [43, 2], [43, 3], [49, 0], [49, 2], [49, 2], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [58, 1], [58, 3], [32, 1], [32, 1], [32, 1], [32, 1], [53, 3], [53, 2], [53, 2], [53, 1], [66, 1], [66, 1], [66, 1], [66, 1], [66, 1], [67, 1], [67, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [59, 1], [59, 3], [84, 1], [84, 2], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [91, 1], [91, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [94, 1], [94, 1], [94, 1], [94, 1], [16, 1], [16, 1], [16, 1], [16, 1], [17, 1], [55, 1]],
21
+ performAction: /* @__PURE__ */ f(function(o, h, p, l, C, e, $) {
22
+ var t = e.length - 1;
23
+ switch (C) {
24
+ case 8:
25
+ this.$ = e[t - 1];
26
+ break;
27
+ case 9:
28
+ case 10:
29
+ case 13:
30
+ case 15:
31
+ this.$ = e[t];
32
+ break;
33
+ case 11:
34
+ case 14:
35
+ this.$ = e[t - 2] + "." + e[t];
36
+ break;
37
+ case 12:
38
+ case 16:
39
+ this.$ = e[t - 1] + e[t];
40
+ break;
41
+ case 17:
42
+ case 18:
43
+ this.$ = e[t - 1] + "~" + e[t] + "~";
44
+ break;
45
+ case 19:
46
+ l.addRelation(e[t]);
47
+ break;
48
+ case 20:
49
+ e[t - 1].title = l.cleanupLabel(e[t]), l.addRelation(e[t - 1]);
50
+ break;
51
+ case 31:
52
+ this.$ = e[t].trim(), l.setAccTitle(this.$);
53
+ break;
54
+ case 32:
55
+ case 33:
56
+ this.$ = e[t].trim(), l.setAccDescription(this.$);
57
+ break;
58
+ case 34:
59
+ l.addClassesToNamespace(e[t - 3], e[t - 1][0], e[t - 1][1]), l.popNamespace();
60
+ break;
61
+ case 35:
62
+ l.addClassesToNamespace(e[t - 4], e[t - 1][0], e[t - 1][1]), l.popNamespace();
63
+ break;
64
+ case 36:
65
+ this.$ = l.addNamespace(e[t]);
66
+ break;
67
+ case 37:
68
+ this.$ = l.addNamespace(e[t - 1], e[t]);
69
+ break;
70
+ case 38:
71
+ this.$ = [[e[t]], []];
72
+ break;
73
+ case 39:
74
+ this.$ = [[e[t - 1]], []];
75
+ break;
76
+ case 40:
77
+ e[t][0].unshift(e[t - 2]), this.$ = e[t];
78
+ break;
79
+ case 41:
80
+ this.$ = [[], [e[t]]];
81
+ break;
82
+ case 42:
83
+ this.$ = [[], [e[t - 1]]];
84
+ break;
85
+ case 43:
86
+ e[t][1].unshift(e[t - 2]), this.$ = e[t];
87
+ break;
88
+ case 44:
89
+ case 45:
90
+ this.$ = [[], []];
91
+ break;
92
+ case 46:
93
+ this.$ = e[t];
94
+ break;
95
+ case 48:
96
+ l.setCssClass(e[t - 2], e[t]);
97
+ break;
98
+ case 49:
99
+ l.addMembers(e[t - 3], e[t - 1]);
100
+ break;
101
+ case 51:
102
+ l.setCssClass(e[t - 5], e[t - 3]), l.addMembers(e[t - 5], e[t - 1]);
103
+ break;
104
+ case 52:
105
+ l.addAnnotation(e[t - 3], e[t - 1]);
106
+ break;
107
+ case 53:
108
+ l.addAnnotation(e[t - 6], e[t - 4]), l.addMembers(e[t - 6], e[t - 1]);
109
+ break;
110
+ case 54:
111
+ l.addAnnotation(e[t - 5], e[t - 3]);
112
+ break;
113
+ case 55:
114
+ this.$ = e[t], l.addClass(e[t]);
115
+ break;
116
+ case 56:
117
+ this.$ = e[t - 1], l.addClass(e[t - 1]), l.setClassLabel(e[t - 1], e[t]);
118
+ break;
119
+ case 60:
120
+ l.addAnnotation(e[t], e[t - 2]);
121
+ break;
122
+ case 61:
123
+ case 74:
124
+ this.$ = [e[t]];
125
+ break;
126
+ case 62:
127
+ e[t].push(e[t - 1]), this.$ = e[t];
128
+ break;
129
+ case 63:
130
+ break;
131
+ case 64:
132
+ l.addMember(e[t - 1], l.cleanupLabel(e[t]));
133
+ break;
134
+ case 65:
135
+ break;
136
+ case 66:
137
+ break;
138
+ case 67:
139
+ this.$ = { id1: e[t - 2], id2: e[t], relation: e[t - 1], relationTitle1: "none", relationTitle2: "none" };
140
+ break;
141
+ case 68:
142
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 1], relationTitle1: e[t - 2], relationTitle2: "none" };
143
+ break;
144
+ case 69:
145
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 2], relationTitle1: "none", relationTitle2: e[t - 1] };
146
+ break;
147
+ case 70:
148
+ this.$ = { id1: e[t - 4], id2: e[t], relation: e[t - 2], relationTitle1: e[t - 3], relationTitle2: e[t - 1] };
149
+ break;
150
+ case 71:
151
+ this.$ = l.addNote(e[t], e[t - 1]);
152
+ break;
153
+ case 72:
154
+ this.$ = l.addNote(e[t]);
155
+ break;
156
+ case 73:
157
+ this.$ = e[t - 2], l.defineClass(e[t - 1], e[t]);
158
+ break;
159
+ case 75:
160
+ this.$ = e[t - 2].concat([e[t]]);
161
+ break;
162
+ case 76:
163
+ l.setDirection("TB");
164
+ break;
165
+ case 77:
166
+ l.setDirection("BT");
167
+ break;
168
+ case 78:
169
+ l.setDirection("RL");
170
+ break;
171
+ case 79:
172
+ l.setDirection("LR");
173
+ break;
174
+ case 80:
175
+ this.$ = { type1: e[t - 2], type2: e[t], lineType: e[t - 1] };
176
+ break;
177
+ case 81:
178
+ this.$ = { type1: "none", type2: e[t], lineType: e[t - 1] };
179
+ break;
180
+ case 82:
181
+ this.$ = { type1: e[t - 1], type2: "none", lineType: e[t] };
182
+ break;
183
+ case 83:
184
+ this.$ = { type1: "none", type2: "none", lineType: e[t] };
185
+ break;
186
+ case 84:
187
+ this.$ = l.relationType.AGGREGATION;
188
+ break;
189
+ case 85:
190
+ this.$ = l.relationType.EXTENSION;
191
+ break;
192
+ case 86:
193
+ this.$ = l.relationType.COMPOSITION;
194
+ break;
195
+ case 87:
196
+ this.$ = l.relationType.DEPENDENCY;
197
+ break;
198
+ case 88:
199
+ this.$ = l.relationType.LOLLIPOP;
200
+ break;
201
+ case 89:
202
+ this.$ = l.lineType.LINE;
203
+ break;
204
+ case 90:
205
+ this.$ = l.lineType.DOTTED_LINE;
206
+ break;
207
+ case 91:
208
+ case 97:
209
+ this.$ = e[t - 2], l.setClickEvent(e[t - 1], e[t]);
210
+ break;
211
+ case 92:
212
+ case 98:
213
+ this.$ = e[t - 3], l.setClickEvent(e[t - 2], e[t - 1]), l.setTooltip(e[t - 2], e[t]);
214
+ break;
215
+ case 93:
216
+ this.$ = e[t - 2], l.setLink(e[t - 1], e[t]);
217
+ break;
218
+ case 94:
219
+ this.$ = e[t - 3], l.setLink(e[t - 2], e[t - 1], e[t]);
220
+ break;
221
+ case 95:
222
+ this.$ = e[t - 3], l.setLink(e[t - 2], e[t - 1]), l.setTooltip(e[t - 2], e[t]);
223
+ break;
224
+ case 96:
225
+ this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 2], e[t]), l.setTooltip(e[t - 3], e[t - 1]);
226
+ break;
227
+ case 99:
228
+ this.$ = e[t - 3], l.setClickEvent(e[t - 2], e[t - 1], e[t]);
229
+ break;
230
+ case 100:
231
+ this.$ = e[t - 4], l.setClickEvent(e[t - 3], e[t - 2], e[t - 1]), l.setTooltip(e[t - 3], e[t]);
232
+ break;
233
+ case 101:
234
+ this.$ = e[t - 3], l.setLink(e[t - 2], e[t]);
235
+ break;
236
+ case 102:
237
+ this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 1], e[t]);
238
+ break;
239
+ case 103:
240
+ this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 1]), l.setTooltip(e[t - 3], e[t]);
241
+ break;
242
+ case 104:
243
+ this.$ = e[t - 5], l.setLink(e[t - 4], e[t - 2], e[t]), l.setTooltip(e[t - 4], e[t - 1]);
244
+ break;
245
+ case 105:
246
+ this.$ = e[t - 2], l.setCssStyle(e[t - 1], e[t]);
247
+ break;
248
+ case 106:
249
+ l.setCssClass(e[t - 1], e[t]);
250
+ break;
251
+ case 107:
252
+ this.$ = [e[t]];
253
+ break;
254
+ case 108:
255
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
256
+ break;
257
+ case 110:
258
+ this.$ = e[t - 1] + e[t];
259
+ break;
260
+ }
261
+ }, "anonymous"),
262
+ table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: r, 38: 22, 42: n, 43: 23, 46: c, 48: u, 51: d, 52: g, 54: m, 56: N, 57: me, 60: b, 62: ge, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(Be, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(A, [2, 19], { 22: [1, 50] }), s(A, [2, 21]), s(A, [2, 22]), s(A, [2, 23]), s(A, [2, 24]), s(A, [2, 25]), s(A, [2, 26]), s(A, [2, 27]), s(A, [2, 28]), s(A, [2, 29]), s(A, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(A, [2, 33]), s(A, [2, 63], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: _e, 74: Se }), { 39: [1, 65] }, s(_, [2, 47], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), s(A, [2, 65]), s(A, [2, 66]), { 16: 69, 60: b, 86: k, 100: E, 102: T }, { 16: 39, 17: 40, 19: 70, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 71, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 72, 60: b, 86: k, 100: E, 102: T, 103: y }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: Me, 55: 76 }, { 58: 78, 60: [1, 79] }, s(A, [2, 76]), s(A, [2, 77]), s(A, [2, 78]), s(A, [2, 79]), s(R, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: b, 86: k, 100: E, 102: T, 103: y }), s(R, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 87, 60: b, 86: k, 100: E, 102: T, 103: y }, s(re, [2, 133]), s(re, [2, 134]), s(re, [2, 135]), s(re, [2, 136]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 137]), s(Be, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 88, 33: i, 35: a, 37: r, 42: n, 46: c, 48: u, 51: d, 52: g, 54: m, 56: N, 57: me, 60: b, 62: ge, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }), { 5: 89, 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: r, 38: 22, 42: n, 43: 23, 46: c, 48: u, 51: d, 52: g, 54: m, 56: N, 57: me, 60: b, 62: ge, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }, s(A, [2, 20]), s(A, [2, 31]), s(A, [2, 32]), { 13: [1, 91], 16: 39, 17: 40, 19: 90, 60: b, 86: k, 100: E, 102: T, 103: y }, { 53: 92, 66: 56, 67: 57, 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: _e, 74: Se }, s(A, [2, 64]), { 67: 93, 73: _e, 74: Se }, s(ne, [2, 83], { 66: 94, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(Y, [2, 84]), s(Y, [2, 85]), s(Y, [2, 86]), s(Y, [2, 87]), s(Y, [2, 88]), s(Re, [2, 89]), s(Re, [2, 90]), { 8: [1, 96], 23: 99, 24: 97, 30: 98, 38: 22, 40: 95, 42: n, 43: 23, 48: u, 54: m, 56: N }, { 16: 100, 60: b, 86: k, 100: E, 102: T }, { 41: [1, 102], 45: 101, 51: ue }, { 16: 104, 60: b, 86: k, 100: E, 102: T }, { 47: [1, 105] }, { 13: [1, 106] }, { 13: [1, 107] }, { 79: [1, 108], 81: [1, 109] }, { 22: K, 50: W, 59: 110, 60: Q, 82: j, 84: 111, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, { 60: [1, 122] }, { 13: Me, 55: 123 }, s(_, [2, 72]), s(_, [2, 138]), { 22: K, 50: W, 59: 124, 60: Q, 61: [1, 125], 82: j, 84: 111, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(Ge, [2, 74]), { 16: 39, 17: 40, 19: 126, 60: b, 86: k, 100: E, 102: T, 103: y }, s(R, [2, 16]), s(R, [2, 17]), s(R, [2, 18]), { 11: 127, 12: Ue, 39: [2, 36] }, s(le, [2, 9], { 16: 85, 17: 86, 15: 130, 18: [1, 129], 60: b, 86: k, 100: E, 102: T, 103: y }), s(le, [2, 10]), s(Ne, [2, 55], { 11: 131, 12: Ue }), s(Be, [2, 7]), { 9: [1, 132] }, s(ce, [2, 67]), { 16: 39, 17: 40, 19: 133, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: [1, 135], 16: 39, 17: 40, 19: 134, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ne, [2, 82], { 66: 136, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(ne, [2, 81]), { 41: [1, 137] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 138, 42: n, 43: 23, 48: u, 54: m, 56: N }, { 8: [1, 139], 41: [2, 38] }, { 8: [1, 140], 41: [2, 41] }, { 8: [1, 141], 41: [2, 44] }, s(_, [2, 48], { 39: [1, 142] }), { 41: [1, 143] }, s(_, [2, 50]), { 41: [2, 61], 45: 144, 51: ue }, { 47: [1, 145] }, { 16: 39, 17: 40, 19: 146, 60: b, 86: k, 100: E, 102: T, 103: y }, s(A, [2, 91], { 13: [1, 147] }), s(A, [2, 93], { 13: [1, 149], 77: [1, 148] }), s(A, [2, 97], { 13: [1, 150], 80: [1, 151] }), { 13: [1, 152] }, s(A, [2, 105], { 61: ze }), s(Ye, [2, 107], { 85: 154, 22: K, 50: W, 60: Q, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(x, [2, 109]), s(x, [2, 111]), s(x, [2, 112]), s(x, [2, 113]), s(x, [2, 114]), s(x, [2, 115]), s(x, [2, 116]), s(x, [2, 117]), s(x, [2, 118]), s(x, [2, 119]), s(A, [2, 106]), s(_, [2, 71]), s(A, [2, 73], { 61: ze }), { 60: [1, 155] }, s(R, [2, 14]), { 39: [2, 37] }, { 13: [1, 156] }, { 15: 157, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, s(le, [2, 12]), s(Ne, [2, 56]), { 1: [2, 4] }, s(ce, [2, 69]), s(ce, [2, 68]), { 16: 39, 17: 40, 19: 158, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ne, [2, 80]), s(_, [2, 34]), { 41: [1, 159] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 160, 41: [2, 39], 42: n, 43: 23, 48: u, 54: m, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 161, 41: [2, 42], 42: n, 43: 23, 48: u, 54: m, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 162, 41: [2, 45], 42: n, 43: 23, 48: u, 54: m, 56: N }, { 45: 163, 51: ue }, s(_, [2, 49]), { 41: [2, 62] }, s(_, [2, 52], { 39: [1, 164] }), s(A, [2, 60]), s(A, [2, 92]), s(A, [2, 94]), s(A, [2, 95], { 77: [1, 165] }), s(A, [2, 98]), s(A, [2, 99], { 13: [1, 166] }), s(A, [2, 101], { 13: [1, 168], 77: [1, 167] }), { 22: K, 50: W, 60: Q, 82: j, 84: 169, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(x, [2, 110]), s(Ge, [2, 75]), { 14: [1, 170] }, s(le, [2, 11]), s(ce, [2, 70]), s(_, [2, 35]), { 41: [2, 40] }, { 41: [2, 43] }, { 41: [2, 46] }, { 41: [1, 171] }, { 41: [1, 173], 45: 172, 51: ue }, s(A, [2, 96]), s(A, [2, 100]), s(A, [2, 102]), s(A, [2, 103], { 77: [1, 174] }), s(Ye, [2, 108], { 85: 154, 22: K, 50: W, 60: Q, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(Ne, [2, 8]), s(_, [2, 51]), { 41: [1, 175] }, s(_, [2, 54]), s(A, [2, 104]), s(_, [2, 53])],
263
+ defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 127: [2, 37], 132: [2, 4], 144: [2, 62], 160: [2, 40], 161: [2, 43], 162: [2, 46] },
264
+ parseError: /* @__PURE__ */ f(function(o, h) {
265
+ if (h.recoverable)
266
+ this.trace(o);
267
+ else {
268
+ var p = new Error(o);
269
+ throw p.hash = h, p;
270
+ }
271
+ }, "parseError"),
272
+ parse: /* @__PURE__ */ f(function(o) {
273
+ var h = this, p = [0], l = [], C = [null], e = [], $ = this.table, t = "", he = 0, Ke = 0, Ze = 2, We = 1, $e = e.slice.call(arguments, 1), D = Object.create(this.lexer), V = { yy: {} };
274
+ for (var xe in this.yy)
275
+ Object.prototype.hasOwnProperty.call(this.yy, xe) && (V.yy[xe] = this.yy[xe]);
276
+ D.setInput(o, V.yy), V.yy.lexer = D, V.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
277
+ var ve = D.yylloc;
278
+ e.push(ve);
279
+ var et = D.options && D.options.ranges;
280
+ typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
281
+ function tt(S) {
282
+ p.length = p.length - 2 * S, C.length = C.length - S, e.length = e.length - S;
283
+ }
284
+ f(tt, "popStack");
285
+ function Qe() {
286
+ var S;
287
+ return S = l.pop() || D.lex() || We, typeof S != "number" && (S instanceof Array && (l = S, S = l.pop()), S = h.symbols_[S] || S), S;
288
+ }
289
+ f(Qe, "lex");
290
+ for (var B, P, L, Ie, G = {}, de, v, je, pe; ; ) {
291
+ if (P = p[p.length - 1], this.defaultActions[P] ? L = this.defaultActions[P] : ((B === null || typeof B > "u") && (B = Qe()), L = $[P] && $[P][B]), typeof L > "u" || !L.length || !L[0]) {
292
+ var Oe = "";
293
+ pe = [];
294
+ for (de in $[P])
295
+ this.terminals_[de] && de > Ze && pe.push("'" + this.terminals_[de] + "'");
296
+ D.showPosition ? Oe = "Parse error on line " + (he + 1) + `:
297
+ ` + D.showPosition() + `
298
+ Expecting ` + pe.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Oe = "Parse error on line " + (he + 1) + ": Unexpected " + (B == We ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Oe, {
299
+ text: D.match,
300
+ token: this.terminals_[B] || B,
301
+ line: D.yylineno,
302
+ loc: ve,
303
+ expected: pe
304
+ });
305
+ }
306
+ if (L[0] instanceof Array && L.length > 1)
307
+ throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + B);
308
+ switch (L[0]) {
309
+ case 1:
310
+ p.push(B), C.push(D.yytext), e.push(D.yylloc), p.push(L[1]), B = null, Ke = D.yyleng, t = D.yytext, he = D.yylineno, ve = D.yylloc;
311
+ break;
312
+ case 2:
313
+ if (v = this.productions_[L[1]][1], G.$ = C[C.length - v], G._$ = {
314
+ first_line: e[e.length - (v || 1)].first_line,
315
+ last_line: e[e.length - 1].last_line,
316
+ first_column: e[e.length - (v || 1)].first_column,
317
+ last_column: e[e.length - 1].last_column
318
+ }, et && (G._$.range = [
319
+ e[e.length - (v || 1)].range[0],
320
+ e[e.length - 1].range[1]
321
+ ]), Ie = this.performAction.apply(G, [
322
+ t,
323
+ Ke,
324
+ he,
325
+ V.yy,
326
+ L[1],
327
+ C,
328
+ e
329
+ ].concat($e)), typeof Ie < "u")
330
+ return Ie;
331
+ v && (p = p.slice(0, -1 * v * 2), C = C.slice(0, -1 * v), e = e.slice(0, -1 * v)), p.push(this.productions_[L[1]][0]), C.push(G.$), e.push(G._$), je = $[p[p.length - 2]][p[p.length - 1]], p.push(je);
332
+ break;
333
+ case 3:
334
+ return !0;
335
+ }
336
+ }
337
+ return !0;
338
+ }, "parse")
339
+ }, Je = /* @__PURE__ */ function() {
340
+ var O = {
341
+ EOF: 1,
342
+ parseError: /* @__PURE__ */ f(function(h, p) {
343
+ if (this.yy.parser)
344
+ this.yy.parser.parseError(h, p);
345
+ else
346
+ throw new Error(h);
347
+ }, "parseError"),
348
+ // resets the lexer, sets new input
349
+ setInput: /* @__PURE__ */ f(function(o, h) {
350
+ return this.yy = h || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
351
+ first_line: 1,
352
+ first_column: 0,
353
+ last_line: 1,
354
+ last_column: 0
355
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
356
+ }, "setInput"),
357
+ // consumes and returns one char from the input
358
+ input: /* @__PURE__ */ f(function() {
359
+ var o = this._input[0];
360
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
361
+ var h = o.match(/(?:\r\n?|\n).*/g);
362
+ return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
363
+ }, "input"),
364
+ // unshifts one char (or a string) into the input
365
+ unput: /* @__PURE__ */ f(function(o) {
366
+ var h = o.length, p = o.split(/(?:\r\n?|\n)/g);
367
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
368
+ var l = this.match.split(/(?:\r\n?|\n)/g);
369
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
370
+ var C = this.yylloc.range;
371
+ return this.yylloc = {
372
+ first_line: this.yylloc.first_line,
373
+ last_line: this.yylineno + 1,
374
+ first_column: this.yylloc.first_column,
375
+ last_column: p ? (p.length === l.length ? this.yylloc.first_column : 0) + l[l.length - p.length].length - p[0].length : this.yylloc.first_column - h
376
+ }, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
377
+ }, "unput"),
378
+ // When called from action, caches matched text and appends it on next action
379
+ more: /* @__PURE__ */ f(function() {
380
+ return this._more = !0, this;
381
+ }, "more"),
382
+ // 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.
383
+ reject: /* @__PURE__ */ f(function() {
384
+ if (this.options.backtrack_lexer)
385
+ this._backtrack = !0;
386
+ else
387
+ 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).
388
+ ` + this.showPosition(), {
389
+ text: "",
390
+ token: null,
391
+ line: this.yylineno
392
+ });
393
+ return this;
394
+ }, "reject"),
395
+ // retain first n characters of the match
396
+ less: /* @__PURE__ */ f(function(o) {
397
+ this.unput(this.match.slice(o));
398
+ }, "less"),
399
+ // displays already matched input, i.e. for error messages
400
+ pastInput: /* @__PURE__ */ f(function() {
401
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
402
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
403
+ }, "pastInput"),
404
+ // displays upcoming input, i.e. for error messages
405
+ upcomingInput: /* @__PURE__ */ f(function() {
406
+ var o = this.match;
407
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
408
+ }, "upcomingInput"),
409
+ // displays the character position where the lexing error occurred, i.e. for error messages
410
+ showPosition: /* @__PURE__ */ f(function() {
411
+ var o = this.pastInput(), h = new Array(o.length + 1).join("-");
412
+ return o + this.upcomingInput() + `
413
+ ` + h + "^";
414
+ }, "showPosition"),
415
+ // test the lexed token: return FALSE when not a match, otherwise return token
416
+ test_match: /* @__PURE__ */ f(function(o, h) {
417
+ var p, l, C;
418
+ if (this.options.backtrack_lexer && (C = {
419
+ yylineno: this.yylineno,
420
+ yylloc: {
421
+ first_line: this.yylloc.first_line,
422
+ last_line: this.last_line,
423
+ first_column: this.yylloc.first_column,
424
+ last_column: this.yylloc.last_column
425
+ },
426
+ yytext: this.yytext,
427
+ match: this.match,
428
+ matches: this.matches,
429
+ matched: this.matched,
430
+ yyleng: this.yyleng,
431
+ offset: this.offset,
432
+ _more: this._more,
433
+ _input: this._input,
434
+ yy: this.yy,
435
+ conditionStack: this.conditionStack.slice(0),
436
+ done: this.done
437
+ }, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), l = o[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
438
+ first_line: this.yylloc.last_line,
439
+ last_line: this.yylineno + 1,
440
+ first_column: this.yylloc.last_column,
441
+ last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
442
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], p = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
443
+ return p;
444
+ if (this._backtrack) {
445
+ for (var e in C)
446
+ this[e] = C[e];
447
+ return !1;
448
+ }
449
+ return !1;
450
+ }, "test_match"),
451
+ // return next match in input
452
+ next: /* @__PURE__ */ f(function() {
453
+ if (this.done)
454
+ return this.EOF;
455
+ this._input || (this.done = !0);
456
+ var o, h, p, l;
457
+ this._more || (this.yytext = "", this.match = "");
458
+ for (var C = this._currentRules(), e = 0; e < C.length; e++)
459
+ if (p = this._input.match(this.rules[C[e]]), p && (!h || p[0].length > h[0].length)) {
460
+ if (h = p, l = e, this.options.backtrack_lexer) {
461
+ if (o = this.test_match(p, C[e]), o !== !1)
462
+ return o;
463
+ if (this._backtrack) {
464
+ h = !1;
465
+ continue;
466
+ } else
467
+ return !1;
468
+ } else if (!this.options.flex)
469
+ break;
470
+ }
471
+ return h ? (o = this.test_match(h, C[l]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
472
+ ` + this.showPosition(), {
473
+ text: "",
474
+ token: null,
475
+ line: this.yylineno
476
+ });
477
+ }, "next"),
478
+ // return next match that has a token
479
+ lex: /* @__PURE__ */ f(function() {
480
+ var h = this.next();
481
+ return h || this.lex();
482
+ }, "lex"),
483
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
484
+ begin: /* @__PURE__ */ f(function(h) {
485
+ this.conditionStack.push(h);
486
+ }, "begin"),
487
+ // pop the previously active lexer condition state off the condition stack
488
+ popState: /* @__PURE__ */ f(function() {
489
+ var h = this.conditionStack.length - 1;
490
+ return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
491
+ }, "popState"),
492
+ // produce the lexer rule set which is active for the currently active lexer condition state
493
+ _currentRules: /* @__PURE__ */ f(function() {
494
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
495
+ }, "_currentRules"),
496
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
497
+ topState: /* @__PURE__ */ f(function(h) {
498
+ return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
499
+ }, "topState"),
500
+ // alias for begin(condition)
501
+ pushState: /* @__PURE__ */ f(function(h) {
502
+ this.begin(h);
503
+ }, "pushState"),
504
+ // return the number of states currently on the stack
505
+ stateStackSize: /* @__PURE__ */ f(function() {
506
+ return this.conditionStack.length;
507
+ }, "stateStackSize"),
508
+ options: {},
509
+ performAction: /* @__PURE__ */ f(function(h, p, l, C) {
510
+ switch (l) {
511
+ case 0:
512
+ return 62;
513
+ case 1:
514
+ return 63;
515
+ case 2:
516
+ return 64;
517
+ case 3:
518
+ return 65;
519
+ case 4:
520
+ break;
521
+ case 5:
522
+ break;
523
+ case 6:
524
+ return this.begin("acc_title"), 33;
525
+ case 7:
526
+ return this.popState(), "acc_title_value";
527
+ case 8:
528
+ return this.begin("acc_descr"), 35;
529
+ case 9:
530
+ return this.popState(), "acc_descr_value";
531
+ case 10:
532
+ this.begin("acc_descr_multiline");
533
+ break;
534
+ case 11:
535
+ this.popState();
536
+ break;
537
+ case 12:
538
+ return "acc_descr_multiline_value";
539
+ case 13:
540
+ return 8;
541
+ case 14:
542
+ break;
543
+ case 15:
544
+ return 7;
545
+ case 16:
546
+ return 7;
547
+ case 17:
548
+ return "EDGE_STATE";
549
+ case 18:
550
+ this.begin("callback_name");
551
+ break;
552
+ case 19:
553
+ this.popState();
554
+ break;
555
+ case 20:
556
+ this.popState(), this.begin("callback_args");
557
+ break;
558
+ case 21:
559
+ return 79;
560
+ case 22:
561
+ this.popState();
562
+ break;
563
+ case 23:
564
+ return 80;
565
+ case 24:
566
+ this.popState();
567
+ break;
568
+ case 25:
569
+ return "STR";
570
+ case 26:
571
+ this.begin("string");
572
+ break;
573
+ case 27:
574
+ return 82;
575
+ case 28:
576
+ return 57;
577
+ case 29:
578
+ return this.begin("namespace"), 42;
579
+ case 30:
580
+ return this.popState(), 8;
581
+ case 31:
582
+ break;
583
+ case 32:
584
+ return this.begin("namespace-body"), 39;
585
+ case 33:
586
+ this.popState(), this.less(0);
587
+ break;
588
+ case 34:
589
+ return this.popState(), 41;
590
+ case 35:
591
+ return "EOF_IN_STRUCT";
592
+ case 36:
593
+ return 8;
594
+ case 37:
595
+ break;
596
+ case 38:
597
+ return "EDGE_STATE";
598
+ case 39:
599
+ return this.begin("class"), 48;
600
+ case 40:
601
+ return this.popState(), 8;
602
+ case 41:
603
+ break;
604
+ case 42:
605
+ return this.popState(), this.popState(), 41;
606
+ case 43:
607
+ return this.begin("class-body"), 39;
608
+ case 44:
609
+ return this.popState(), 41;
610
+ case 45:
611
+ return "EOF_IN_STRUCT";
612
+ case 46:
613
+ return "EDGE_STATE";
614
+ case 47:
615
+ return "OPEN_IN_STRUCT";
616
+ case 48:
617
+ break;
618
+ case 49:
619
+ return "MEMBER";
620
+ case 50:
621
+ return 83;
622
+ case 51:
623
+ return 75;
624
+ case 52:
625
+ return 76;
626
+ case 53:
627
+ return 78;
628
+ case 54:
629
+ return 54;
630
+ case 55:
631
+ return 56;
632
+ case 56:
633
+ return 46;
634
+ case 57:
635
+ return 47;
636
+ case 58:
637
+ return 81;
638
+ case 59:
639
+ this.popState();
640
+ break;
641
+ case 60:
642
+ return "GENERICTYPE";
643
+ case 61:
644
+ this.begin("generic");
645
+ break;
646
+ case 62:
647
+ this.popState();
648
+ break;
649
+ case 63:
650
+ return "BQUOTE_STR";
651
+ case 64:
652
+ this.begin("bqstring");
653
+ break;
654
+ case 65:
655
+ return 77;
656
+ case 66:
657
+ return 77;
658
+ case 67:
659
+ return 77;
660
+ case 68:
661
+ return 77;
662
+ case 69:
663
+ return 69;
664
+ case 70:
665
+ return 69;
666
+ case 71:
667
+ return 71;
668
+ case 72:
669
+ return 71;
670
+ case 73:
671
+ return 70;
672
+ case 74:
673
+ return 68;
674
+ case 75:
675
+ return 72;
676
+ case 76:
677
+ return 73;
678
+ case 77:
679
+ return 74;
680
+ case 78:
681
+ return 22;
682
+ case 79:
683
+ return 44;
684
+ case 80:
685
+ return 100;
686
+ case 81:
687
+ return 18;
688
+ case 82:
689
+ return "PLUS";
690
+ case 83:
691
+ return 87;
692
+ case 84:
693
+ return 61;
694
+ case 85:
695
+ return 89;
696
+ case 86:
697
+ return 89;
698
+ case 87:
699
+ return 90;
700
+ case 88:
701
+ return "EQUALS";
702
+ case 89:
703
+ return "EQUALS";
704
+ case 90:
705
+ return 60;
706
+ case 91:
707
+ return 12;
708
+ case 92:
709
+ return 14;
710
+ case 93:
711
+ return "PUNCTUATION";
712
+ case 94:
713
+ return 86;
714
+ case 95:
715
+ return 102;
716
+ case 96:
717
+ return 50;
718
+ case 97:
719
+ return 50;
720
+ case 98:
721
+ return 9;
722
+ }
723
+ }, "anonymous"),
724
+ rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:classDiagram-v2\b)/, /^(?:classDiagram\b)/, /^(?:\[\*\])/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:style\b)/, /^(?:classDef\b)/, /^(?:namespace\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[{])/, /^(?:[}])/, /^(?:[}])/, /^(?:$)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:\[\*\])/, /^(?:class\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[}])/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\[\*\])/, /^(?:[{])/, /^(?:[\n])/, /^(?:[^{}\n]*)/, /^(?:cssClass\b)/, /^(?:callback\b)/, /^(?:link\b)/, /^(?:click\b)/, /^(?:note for\b)/, /^(?:note\b)/, /^(?:<<)/, /^(?:>>)/, /^(?:href\b)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:~)/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:\s*<\|)/, /^(?:\s*\|>)/, /^(?:\s*>)/, /^(?:\s*<)/, /^(?:\s*\*)/, /^(?:\s*o\b)/, /^(?:\s*\(\))/, /^(?:--)/, /^(?:\.\.)/, /^(?::{1}[^:\n;]+)/, /^(?::{3})/, /^(?:-)/, /^(?:\.)/, /^(?:\+)/, /^(?::)/, /^(?:,)/, /^(?:#)/, /^(?:#)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:\w+)/, /^(?:\[)/, /^(?:\])/, /^(?:[!"#$%&'*+,-.`?\\/])/, /^(?:[0-9]+)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\s)/, /^(?:\s)/, /^(?:$)/],
725
+ conditions: { "namespace-body": { rules: [26, 29, 34, 35, 36, 37, 38, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 33, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, "class-body": { rules: [26, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, class: { rules: [26, 40, 41, 42, 43, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_descr: { rules: [9, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_title: { rules: [7, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, href: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, struct: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, generic: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, bqstring: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, string: { rules: [24, 25, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98], inclusive: !0 } }
726
+ };
727
+ return O;
728
+ }();
729
+ Le.lexer = Je;
730
+ function oe() {
731
+ this.yy = {};
732
+ }
733
+ return f(oe, "Parser"), oe.prototype = Le, Le.Parser = oe, new oe();
734
+ }();
735
+ Pe.parser = Pe;
736
+ var xt = Pe, Xe = ["#", "+", "~", "-", ""], z, qe = (z = class {
737
+ constructor(i, a) {
738
+ this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
739
+ const r = ft(i, F());
740
+ this.parseMember(r);
741
+ }
742
+ getDisplayDetails() {
743
+ let i = this.visibility + U(this.id);
744
+ this.memberType === "method" && (i += `(${U(this.parameters.trim())})`, this.returnType && (i += " : " + U(this.returnType))), i = i.trim();
745
+ const a = this.parseClassifier();
746
+ return {
747
+ displayText: i,
748
+ cssStyle: a
749
+ };
750
+ }
751
+ parseMember(i) {
752
+ let a = "";
753
+ if (this.memberType === "method") {
754
+ const c = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
755
+ if (c) {
756
+ const u = c[1] ? c[1].trim() : "";
757
+ if (Xe.includes(u) && (this.visibility = u), this.id = c[2], this.parameters = c[3] ? c[3].trim() : "", a = c[4] ? c[4].trim() : "", this.returnType = c[5] ? c[5].trim() : "", a === "") {
758
+ const d = this.returnType.substring(this.returnType.length - 1);
759
+ /[$*]/.exec(d) && (a = d, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
760
+ }
761
+ }
762
+ } else {
763
+ const n = i.length, c = i.substring(0, 1), u = i.substring(n - 1);
764
+ Xe.includes(c) && (this.visibility = c), /[$*]/.exec(u) && (a = u), this.id = i.substring(
765
+ this.visibility === "" ? 0 : 1,
766
+ a === "" ? n : n - 1
767
+ );
768
+ }
769
+ this.classifier = a, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
770
+ const r = `${this.visibility ? "\\" + this.visibility : ""}${U(this.id)}${this.memberType === "method" ? `(${U(this.parameters)})${this.returnType ? " : " + U(this.returnType) : ""}` : ""}`;
771
+ this.text = r.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
772
+ }
773
+ parseClassifier() {
774
+ switch (this.classifier) {
775
+ case "*":
776
+ return "font-style:italic;";
777
+ case "$":
778
+ return "text-decoration:underline;";
779
+ default:
780
+ return "";
781
+ }
782
+ }
783
+ }, f(z, "ClassMember"), z), fe = "classId-", He = 0, M = /* @__PURE__ */ f((s) => I.sanitizeText(s, F()), "sanitizeText"), w, vt = (w = class {
784
+ constructor() {
785
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.functions = [], this.lineType = {
786
+ LINE: 0,
787
+ DOTTED_LINE: 1
788
+ }, this.relationType = {
789
+ AGGREGATION: 0,
790
+ EXTENSION: 1,
791
+ COMPOSITION: 2,
792
+ DEPENDENCY: 3,
793
+ LOLLIPOP: 4
794
+ }, this.setupToolTips = /* @__PURE__ */ f((i) => {
795
+ const a = mt();
796
+ Ae(i).select("svg").selectAll("g").filter(function() {
797
+ return Ae(this).attr("title") !== null;
798
+ }).on("mouseover", (c) => {
799
+ const u = Ae(c.currentTarget), d = u.attr("title");
800
+ if (!d)
801
+ return;
802
+ const g = c.currentTarget.getBoundingClientRect();
803
+ a.transition().duration(200).style("opacity", ".9"), a.html(gt.sanitize(d)).style("left", `${window.scrollX + g.left + g.width / 2}px`).style("top", `${window.scrollY + g.bottom + 4}px`), u.classed("hover", !0);
804
+ }).on("mouseout", (c) => {
805
+ a.transition().duration(500).style("opacity", 0), Ae(c.currentTarget).classed("hover", !1);
806
+ });
807
+ }, "setupToolTips"), this.direction = "TB", this.setAccTitle = ut, this.getAccTitle = lt, this.setAccDescription = ct, this.getAccDescription = ot, this.setDiagramTitle = ht, this.getDiagramTitle = dt, this.getConfig = /* @__PURE__ */ f(() => F().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.popNamespace = this.popNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
808
+ }
809
+ splitClassNameAndType(i) {
810
+ const a = I.sanitizeText(i, F());
811
+ let r = "", n = a;
812
+ if (a.indexOf("~") > 0) {
813
+ const c = a.split("~");
814
+ n = M(c[0]), r = M(c[1]);
815
+ }
816
+ return { className: n, type: r };
817
+ }
818
+ setClassLabel(i, a) {
819
+ const r = I.sanitizeText(i, F());
820
+ a && (a = M(a));
821
+ const { className: n } = this.splitClassNameAndType(r);
822
+ this.classes.get(n).label = a, this.classes.get(n).text = `${a}${this.classes.get(n).type ? `<${this.classes.get(n).type}>` : ""}`;
823
+ }
824
+ /**
825
+ * Function called by parser when a node definition has been found.
826
+ *
827
+ * @param id - ID of the class to add
828
+ * @public
829
+ */
830
+ addClass(i) {
831
+ const a = I.sanitizeText(i, F()), { className: r, type: n } = this.splitClassNameAndType(a);
832
+ if (this.classes.has(r))
833
+ return;
834
+ const c = I.sanitizeText(r, F());
835
+ this.classes.set(c, {
836
+ id: c,
837
+ type: n,
838
+ label: c,
839
+ text: `${c}${n ? `&lt;${n}&gt;` : ""}`,
840
+ shape: "classBox",
841
+ cssClasses: "default",
842
+ methods: [],
843
+ members: [],
844
+ annotations: [],
845
+ styles: [],
846
+ domId: fe + c + "-" + He
847
+ }), He++;
848
+ }
849
+ addInterface(i, a) {
850
+ const r = {
851
+ id: `interface${this.interfaces.length}`,
852
+ label: i,
853
+ classId: a
854
+ };
855
+ this.interfaces.push(r);
856
+ }
857
+ /**
858
+ * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
859
+ * across multiple diagrams on the same page.
860
+ */
861
+ setDiagramId(i) {
862
+ this.diagramId = i;
863
+ }
864
+ /**
865
+ * Function to lookup domId from id in the graph definition.
866
+ * When diagramId is set, returns the prefixed version for DOM uniqueness.
867
+ *
868
+ * @param id - class ID to lookup
869
+ * @public
870
+ */
871
+ lookUpDomId(i) {
872
+ const a = I.sanitizeText(i, F());
873
+ if (this.classes.has(a)) {
874
+ const r = this.classes.get(a).domId;
875
+ return this.diagramId ? `${this.diagramId}-${r}` : r;
876
+ }
877
+ throw new Error("Class not found: " + a);
878
+ }
879
+ clear() {
880
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.direction = "TB", pt();
881
+ }
882
+ getClass(i) {
883
+ return this.classes.get(i);
884
+ }
885
+ getClasses() {
886
+ return this.classes;
887
+ }
888
+ getRelations() {
889
+ return this.relations;
890
+ }
891
+ getNote(i) {
892
+ const a = typeof i == "number" ? `note${i}` : i;
893
+ return this.notes.get(a);
894
+ }
895
+ getNotes() {
896
+ return this.notes;
897
+ }
898
+ addRelation(i) {
899
+ we.debug("Adding relation: " + JSON.stringify(i));
900
+ const a = [
901
+ this.relationType.LOLLIPOP,
902
+ this.relationType.AGGREGATION,
903
+ this.relationType.COMPOSITION,
904
+ this.relationType.DEPENDENCY,
905
+ this.relationType.EXTENSION
906
+ ];
907
+ i.relation.type1 === this.relationType.LOLLIPOP && !a.includes(i.relation.type2) ? (this.addClass(i.id2), this.addInterface(i.id1, i.id2), i.id1 = `interface${this.interfaces.length - 1}`) : i.relation.type2 === this.relationType.LOLLIPOP && !a.includes(i.relation.type1) ? (this.addClass(i.id1), this.addInterface(i.id2, i.id1), i.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(i.id1), this.addClass(i.id2)), i.id1 = this.splitClassNameAndType(i.id1).className, i.id2 = this.splitClassNameAndType(i.id2).className, i.relationTitle1 = I.sanitizeText(
908
+ i.relationTitle1.trim(),
909
+ F()
910
+ ), i.relationTitle2 = I.sanitizeText(
911
+ i.relationTitle2.trim(),
912
+ F()
913
+ ), this.relations.push(i);
914
+ }
915
+ /**
916
+ * Adds an annotation to the specified class Annotations mark special properties of the given type
917
+ * (like 'interface' or 'service')
918
+ *
919
+ * @param className - The class name
920
+ * @param annotation - The name of the annotation without any brackets
921
+ * @public
922
+ */
923
+ addAnnotation(i, a) {
924
+ const r = this.splitClassNameAndType(i).className;
925
+ this.classes.get(r).annotations.push(a);
926
+ }
927
+ /**
928
+ * Adds a member to the specified class
929
+ *
930
+ * @param className - The class name
931
+ * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
932
+ * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
933
+ * method Otherwise the member will be treated as a normal property
934
+ * @public
935
+ */
936
+ addMember(i, a) {
937
+ this.addClass(i);
938
+ const r = this.splitClassNameAndType(i).className, n = this.classes.get(r);
939
+ if (typeof a == "string") {
940
+ const c = a.trim();
941
+ c.startsWith("<<") && c.endsWith(">>") ? n.annotations.push(M(c.substring(2, c.length - 2))) : c.indexOf(")") > 0 ? n.methods.push(new qe(c, "method")) : c && n.members.push(new qe(c, "attribute"));
942
+ }
943
+ }
944
+ addMembers(i, a) {
945
+ Array.isArray(a) && (a.reverse(), a.forEach((r) => this.addMember(i, r)));
946
+ }
947
+ addNote(i, a) {
948
+ const r = this.notes.size, n = {
949
+ id: `note${r}`,
950
+ class: a,
951
+ text: i,
952
+ index: r
953
+ };
954
+ return this.notes.set(n.id, n), n.id;
955
+ }
956
+ cleanupLabel(i) {
957
+ return i.startsWith(":") && (i = i.substring(1)), M(i.trim());
958
+ }
959
+ /**
960
+ * Called by parser when assigning cssClass to a class
961
+ *
962
+ * @param ids - Comma separated list of ids
963
+ * @param className - Class to add
964
+ */
965
+ setCssClass(i, a) {
966
+ i.split(",").forEach((r) => {
967
+ let n = r;
968
+ /\d/.exec(r[0]) && (n = fe + n), n = this.splitClassNameAndType(n).className;
969
+ const c = this.classes.get(n);
970
+ c && (c.cssClasses += " " + a);
971
+ });
972
+ }
973
+ defineClass(i, a) {
974
+ for (const r of i) {
975
+ let n = this.styleClasses.get(r);
976
+ n === void 0 && (n = { id: r, styles: [], textStyles: [] }, this.styleClasses.set(r, n)), a && a.forEach((c) => {
977
+ if (/color/.exec(c)) {
978
+ const u = c.replace("fill", "bgFill");
979
+ n.textStyles.push(u);
980
+ }
981
+ n.styles.push(c);
982
+ }), this.classes.forEach((c) => {
983
+ c.cssClasses.includes(r) && c.styles.push(...a.flatMap((u) => u.split(",")));
984
+ });
985
+ }
986
+ }
987
+ /**
988
+ * Called by parser when a tooltip is found, e.g. a clickable element.
989
+ *
990
+ * @param ids - Comma separated list of ids
991
+ * @param tooltip - Tooltip to add
992
+ */
993
+ setTooltip(i, a) {
994
+ i.split(",").forEach((r) => {
995
+ if (a !== void 0) {
996
+ const n = this.splitClassNameAndType(r).className, c = this.classes.get(n);
997
+ c && (c.tooltip = M(a));
998
+ }
999
+ });
1000
+ }
1001
+ getTooltip(i, a) {
1002
+ return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip;
1003
+ }
1004
+ /**
1005
+ * Called by parser when a link is found. Adds the URL to the vertex data.
1006
+ *
1007
+ * @param ids - Comma separated list of ids
1008
+ * @param linkStr - URL to create a link for
1009
+ * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
1010
+ */
1011
+ setLink(i, a, r) {
1012
+ const n = F();
1013
+ i.split(",").forEach((c) => {
1014
+ let u = c;
1015
+ /\d/.exec(c[0]) && (u = fe + u), u = this.splitClassNameAndType(u).className;
1016
+ const d = this.classes.get(u);
1017
+ d && (d.link = Ve.formatUrl(a, n), n.securityLevel === "sandbox" ? d.linkTarget = "_top" : typeof r == "string" ? d.linkTarget = M(r) : d.linkTarget = "_blank");
1018
+ }), this.setCssClass(i, "clickable");
1019
+ }
1020
+ /**
1021
+ * Called by parser when a click definition is found. Registers an event handler.
1022
+ *
1023
+ * @param ids - Comma separated list of ids
1024
+ * @param functionName - Function to be called on click
1025
+ * @param functionArgs - Function args the function should be called with
1026
+ */
1027
+ setClickEvent(i, a, r) {
1028
+ i.split(",").forEach((n) => {
1029
+ this.setClickFunc(n, a, r);
1030
+ const c = this.splitClassNameAndType(n).className, u = this.classes.get(c);
1031
+ u && (u.haveCallback = !0);
1032
+ }), this.setCssClass(i, "clickable");
1033
+ }
1034
+ setClickFunc(i, a, r) {
1035
+ const n = I.sanitizeText(i, F());
1036
+ if (F().securityLevel !== "loose" || a === void 0)
1037
+ return;
1038
+ const u = this.splitClassNameAndType(n).className;
1039
+ if (this.classes.has(u)) {
1040
+ let d = [];
1041
+ if (typeof r == "string") {
1042
+ d = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1043
+ for (let g = 0; g < d.length; g++) {
1044
+ let m = d[g].trim();
1045
+ m.startsWith('"') && m.endsWith('"') && (m = m.substr(1, m.length - 2)), d[g] = m;
1046
+ }
1047
+ }
1048
+ d.length === 0 && d.push(u), this.functions.push(() => {
1049
+ const g = this.lookUpDomId(u), m = document.querySelector(`[id="${g}"]`);
1050
+ m !== null && m.addEventListener(
1051
+ "click",
1052
+ () => {
1053
+ Ve.runFunc(a, ...d);
1054
+ },
1055
+ !1
1056
+ );
1057
+ });
1058
+ }
1059
+ }
1060
+ bindFunctions(i) {
1061
+ this.functions.forEach((a) => {
1062
+ a(i);
1063
+ });
1064
+ }
1065
+ // Utility function to escape HTML meta-characters
1066
+ escapeHtml(i) {
1067
+ return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
1068
+ }
1069
+ getDirection() {
1070
+ return this.direction;
1071
+ }
1072
+ setDirection(i) {
1073
+ this.direction = i;
1074
+ }
1075
+ static resolveQualifiedId(i, a) {
1076
+ const r = a.at(-1);
1077
+ return r ? `${r}.${i}` : i;
1078
+ }
1079
+ static getAncestorIds(i) {
1080
+ const a = i.split("."), r = new Array(a.length);
1081
+ r[0] = a[0];
1082
+ for (let n = 1; n < a.length; n++)
1083
+ r[n] = `${r[n - 1]}.${a[n]}`;
1084
+ return r;
1085
+ }
1086
+ createNamespaceNode(i, a, r, n = !1) {
1087
+ return {
1088
+ id: i,
1089
+ label: a,
1090
+ classes: /* @__PURE__ */ new Map(),
1091
+ notes: /* @__PURE__ */ new Map(),
1092
+ children: /* @__PURE__ */ new Map(),
1093
+ domId: fe + i + "-" + this.namespaceCounter++,
1094
+ parent: r,
1095
+ explicit: n
1096
+ };
1097
+ }
1098
+ linkParentChild(i, a) {
1099
+ const r = this.namespaces.get(i), n = this.namespaces.get(a);
1100
+ !r || !n || (r.children.has(a) || r.children.set(a, n), n.parent ??= i);
1101
+ }
1102
+ addNamespace(i, a) {
1103
+ const r = w.resolveQualifiedId(i, this.namespaceStack);
1104
+ if (this.namespaceStack.push(r), this.namespaces.has(r)) {
1105
+ const u = this.namespaces.get(r);
1106
+ return u.explicit = !0, a && (u.label = a), r;
1107
+ }
1108
+ const n = r.split("."), c = w.getAncestorIds(r);
1109
+ for (let u = 0; u < c.length; u++) {
1110
+ const d = c[u], g = u > 0 ? c[u - 1] : void 0, m = u === c.length - 1, N = m && a ? a : n[u];
1111
+ this.namespaces.has(d) ? m && (this.namespaces.get(d).explicit = !0) : this.namespaces.set(
1112
+ d,
1113
+ this.createNamespaceNode(d, N, g, m)
1114
+ ), g && this.linkParentChild(g, d);
1115
+ }
1116
+ return r;
1117
+ }
1118
+ popNamespace() {
1119
+ this.namespaceStack.pop();
1120
+ }
1121
+ getNamespace(i) {
1122
+ return this.namespaces.get(i);
1123
+ }
1124
+ getNamespaces() {
1125
+ return this.namespaces;
1126
+ }
1127
+ /**
1128
+ * Function called by parser when a namespace definition has been found.
1129
+ *
1130
+ * @param id - ID of the namespace to add
1131
+ * @param classNames - IDs of the class to add
1132
+ * @param noteNames - IDs of the notes to add
1133
+ * @public
1134
+ */
1135
+ addClassesToNamespace(i, a, r) {
1136
+ if (this.namespaces.has(i)) {
1137
+ for (const n of a) {
1138
+ const { className: c } = this.splitClassNameAndType(n), u = this.getClass(c);
1139
+ u.parent = i, this.namespaces.get(i).classes.set(c, u);
1140
+ }
1141
+ for (const n of r) {
1142
+ const c = this.getNote(n);
1143
+ c.parent = i, this.namespaces.get(i).notes.set(n, c);
1144
+ }
1145
+ }
1146
+ }
1147
+ setCssStyle(i, a) {
1148
+ const r = this.classes.get(i);
1149
+ if (!(!a || !r))
1150
+ for (const n of a)
1151
+ n.includes(",") ? r.styles.push(...n.split(",")) : r.styles.push(n);
1152
+ }
1153
+ /**
1154
+ * Gets the arrow marker for a type index
1155
+ *
1156
+ * @param type - The type to look for
1157
+ * @returns The arrow marker
1158
+ */
1159
+ getArrowMarker(i) {
1160
+ let a;
1161
+ switch (i) {
1162
+ case 0:
1163
+ a = "aggregation";
1164
+ break;
1165
+ case 1:
1166
+ a = "extension";
1167
+ break;
1168
+ case 2:
1169
+ a = "composition";
1170
+ break;
1171
+ case 3:
1172
+ a = "dependency";
1173
+ break;
1174
+ case 4:
1175
+ a = "lollipop";
1176
+ break;
1177
+ default:
1178
+ a = "none";
1179
+ }
1180
+ return a;
1181
+ }
1182
+ /**
1183
+ * Walks up the namespace tree from the given id and returns the nearest ancestor
1184
+ * (or the id itself) that is marked as explicit. Used by compact rendering mode
1185
+ * to reassign children to the nearest user-declared namespace.
1186
+ */
1187
+ resolveExplicitAncestor(i) {
1188
+ let a = i;
1189
+ for (; a; ) {
1190
+ const r = this.namespaces.get(a);
1191
+ if (!r)
1192
+ return;
1193
+ if (r.explicit)
1194
+ return a;
1195
+ a = r.parent;
1196
+ }
1197
+ }
1198
+ getData() {
1199
+ const i = [], a = [], r = F(), n = r.class?.hierarchicalNamespaces ?? !0;
1200
+ for (const u of this.namespaces.values()) {
1201
+ if (!n && !u.explicit)
1202
+ continue;
1203
+ const d = {
1204
+ id: u.id,
1205
+ label: n ? u.label : u.id,
1206
+ isGroup: !0,
1207
+ padding: r.class.padding ?? 16,
1208
+ // parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
1209
+ shape: "rect",
1210
+ cssStyles: [],
1211
+ look: r.look,
1212
+ parentId: n ? u.parent : void 0
1213
+ };
1214
+ i.push(d);
1215
+ }
1216
+ for (const u of this.classes.values()) {
1217
+ const d = n ? u.parent : this.resolveExplicitAncestor(u.parent), g = {
1218
+ ...u,
1219
+ type: void 0,
1220
+ isGroup: !1,
1221
+ parentId: d,
1222
+ look: r.look
1223
+ };
1224
+ i.push(g);
1225
+ }
1226
+ for (const u of this.notes.values()) {
1227
+ const d = n ? u.parent : this.resolveExplicitAncestor(u.parent), g = {
1228
+ id: u.id,
1229
+ label: u.text,
1230
+ isGroup: !1,
1231
+ shape: "note",
1232
+ padding: r.class.padding ?? 6,
1233
+ cssStyles: [
1234
+ "text-align: left",
1235
+ "white-space: nowrap",
1236
+ `fill: ${r.themeVariables.noteBkgColor}`,
1237
+ `stroke: ${r.themeVariables.noteBorderColor}`
1238
+ ],
1239
+ look: r.look,
1240
+ parentId: d,
1241
+ labelType: "markdown"
1242
+ };
1243
+ i.push(g);
1244
+ const m = this.classes.get(u.class)?.id;
1245
+ if (m) {
1246
+ const N = {
1247
+ id: `edgeNote${u.index}`,
1248
+ start: u.id,
1249
+ end: m,
1250
+ type: "normal",
1251
+ thickness: "normal",
1252
+ classes: "relation",
1253
+ arrowTypeStart: "none",
1254
+ arrowTypeEnd: "none",
1255
+ arrowheadStyle: "",
1256
+ labelStyle: [""],
1257
+ style: ["fill: none"],
1258
+ pattern: "dotted",
1259
+ look: r.look
1260
+ };
1261
+ a.push(N);
1262
+ }
1263
+ }
1264
+ for (const u of this.interfaces) {
1265
+ const d = {
1266
+ id: u.id,
1267
+ label: u.label,
1268
+ isGroup: !1,
1269
+ shape: "rect",
1270
+ cssStyles: ["opacity: 0;"],
1271
+ look: r.look
1272
+ };
1273
+ i.push(d);
1274
+ }
1275
+ let c = 0;
1276
+ for (const u of this.relations) {
1277
+ c++;
1278
+ const d = {
1279
+ id: At(u.id1, u.id2, {
1280
+ prefix: "id",
1281
+ counter: c
1282
+ }),
1283
+ start: u.id1,
1284
+ end: u.id2,
1285
+ type: "normal",
1286
+ label: u.title,
1287
+ labelpos: "c",
1288
+ thickness: "normal",
1289
+ classes: "relation",
1290
+ arrowTypeStart: this.getArrowMarker(u.relation.type1),
1291
+ arrowTypeEnd: this.getArrowMarker(u.relation.type2),
1292
+ startLabelRight: u.relationTitle1 === "none" ? "" : u.relationTitle1,
1293
+ endLabelLeft: u.relationTitle2 === "none" ? "" : u.relationTitle2,
1294
+ arrowheadStyle: "",
1295
+ labelStyle: ["display: inline-block"],
1296
+ style: u.style || "",
1297
+ pattern: u.relation.lineType == 1 ? "dashed" : "solid",
1298
+ look: r.look,
1299
+ labelType: "markdown"
1300
+ };
1301
+ a.push(d);
1302
+ }
1303
+ return { nodes: i, edges: a, other: {}, config: r, direction: this.getDirection() };
1304
+ }
1305
+ }, f(w, "ClassDB"), w), Ct = /* @__PURE__ */ f((s) => `g.classGroup text {
1306
+ fill: ${s.nodeBorder || s.classText};
1307
+ stroke: none;
1308
+ font-family: ${s.fontFamily};
1309
+ font-size: 10px;
1310
+
1311
+ .title {
1312
+ font-weight: bolder;
1313
+ }
1314
+
1315
+ }
1316
+
1317
+ .cluster-label text {
1318
+ fill: ${s.titleColor};
1319
+ }
1320
+ .cluster-label span {
1321
+ color: ${s.titleColor};
1322
+ }
1323
+ .cluster-label span p {
1324
+ background-color: transparent;
1325
+ }
1326
+
1327
+ .cluster rect {
1328
+ fill: ${s.clusterBkg};
1329
+ stroke: ${s.clusterBorder};
1330
+ stroke-width: 1px;
1331
+ }
1332
+
1333
+ .cluster text {
1334
+ fill: ${s.titleColor};
1335
+ }
1336
+
1337
+ .cluster span {
1338
+ color: ${s.titleColor};
1339
+ }
1340
+
1341
+ .nodeLabel, .edgeLabel {
1342
+ color: ${s.classText};
1343
+ }
1344
+
1345
+ .noteLabel .nodeLabel, .noteLabel .edgeLabel {
1346
+ color: ${s.noteTextColor};
1347
+ }
1348
+ .edgeLabel .label rect {
1349
+ fill: ${s.mainBkg};
1350
+ }
1351
+ .label text {
1352
+ fill: ${s.classText};
1353
+ }
1354
+
1355
+ .labelBkg {
1356
+ background: ${s.mainBkg};
1357
+ }
1358
+ .edgeLabel .label span {
1359
+ background: ${s.mainBkg};
1360
+ }
1361
+
1362
+ .classTitle {
1363
+ font-weight: bolder;
1364
+ }
1365
+ .node rect,
1366
+ .node circle,
1367
+ .node ellipse,
1368
+ .node polygon,
1369
+ .node path {
1370
+ fill: ${s.mainBkg};
1371
+ stroke: ${s.nodeBorder};
1372
+ stroke-width: ${s.strokeWidth};
1373
+ }
1374
+
1375
+
1376
+ .divider {
1377
+ stroke: ${s.nodeBorder};
1378
+ stroke-width: 1;
1379
+ }
1380
+
1381
+ g.clickable {
1382
+ cursor: pointer;
1383
+ }
1384
+
1385
+ g.classGroup rect {
1386
+ fill: ${s.mainBkg};
1387
+ stroke: ${s.nodeBorder};
1388
+ }
1389
+
1390
+ g.classGroup line {
1391
+ stroke: ${s.nodeBorder};
1392
+ stroke-width: 1;
1393
+ }
1394
+
1395
+ .classLabel .box {
1396
+ stroke: none;
1397
+ stroke-width: 0;
1398
+ fill: ${s.mainBkg};
1399
+ opacity: 0.5;
1400
+ }
1401
+
1402
+ .classLabel .label {
1403
+ fill: ${s.nodeBorder};
1404
+ font-size: 10px;
1405
+ }
1406
+
1407
+ .relation {
1408
+ stroke: ${s.lineColor};
1409
+ stroke-width: ${s.strokeWidth};
1410
+ fill: none;
1411
+ }
1412
+
1413
+ .dashed-line{
1414
+ stroke-dasharray: 3;
1415
+ }
1416
+
1417
+ .dotted-line{
1418
+ stroke-dasharray: 1 2;
1419
+ }
1420
+
1421
+ [id$="-compositionStart"], .composition {
1422
+ fill: ${s.lineColor} !important;
1423
+ stroke: ${s.lineColor} !important;
1424
+ stroke-width: 1;
1425
+ }
1426
+
1427
+ [id$="-compositionEnd"], .composition {
1428
+ fill: ${s.lineColor} !important;
1429
+ stroke: ${s.lineColor} !important;
1430
+ stroke-width: 1;
1431
+ }
1432
+
1433
+ [id$="-dependencyStart"], .dependency {
1434
+ fill: ${s.lineColor} !important;
1435
+ stroke: ${s.lineColor} !important;
1436
+ stroke-width: 1;
1437
+ }
1438
+
1439
+ [id$="-dependencyEnd"], .dependency {
1440
+ fill: ${s.lineColor} !important;
1441
+ stroke: ${s.lineColor} !important;
1442
+ stroke-width: 1;
1443
+ }
1444
+
1445
+ [id$="-extensionStart"], .extension {
1446
+ fill: transparent !important;
1447
+ stroke: ${s.lineColor} !important;
1448
+ stroke-width: 1;
1449
+ }
1450
+
1451
+ [id$="-extensionEnd"], .extension {
1452
+ fill: transparent !important;
1453
+ stroke: ${s.lineColor} !important;
1454
+ stroke-width: 1;
1455
+ }
1456
+
1457
+ [id$="-aggregationStart"], .aggregation {
1458
+ fill: transparent !important;
1459
+ stroke: ${s.lineColor} !important;
1460
+ stroke-width: 1;
1461
+ }
1462
+
1463
+ [id$="-aggregationEnd"], .aggregation {
1464
+ fill: transparent !important;
1465
+ stroke: ${s.lineColor} !important;
1466
+ stroke-width: 1;
1467
+ }
1468
+
1469
+ [id$="-lollipopStart"], .lollipop {
1470
+ fill: ${s.mainBkg} !important;
1471
+ stroke: ${s.lineColor} !important;
1472
+ stroke-width: 1;
1473
+ }
1474
+
1475
+ [id$="-lollipopEnd"], .lollipop {
1476
+ fill: ${s.mainBkg} !important;
1477
+ stroke: ${s.lineColor} !important;
1478
+ stroke-width: 1;
1479
+ }
1480
+
1481
+ .edgeTerminals {
1482
+ font-size: 11px;
1483
+ line-height: initial;
1484
+ }
1485
+
1486
+ .classTitleText {
1487
+ text-anchor: middle;
1488
+ font-size: 18px;
1489
+ fill: ${s.textColor};
1490
+ }
1491
+
1492
+ .edgeLabel[data-look="neo"] {
1493
+ background-color: ${s.edgeLabelBackground};
1494
+ p {
1495
+ background-color: ${s.edgeLabelBackground};
1496
+ }
1497
+ rect {
1498
+ opacity: 0.5;
1499
+ background-color: ${s.edgeLabelBackground};
1500
+ fill: ${s.edgeLabelBackground};
1501
+ }
1502
+ text-align: center;
1503
+ }
1504
+ ${st()}
1505
+ `, "getStyles"), It = Ct, bt = /* @__PURE__ */ f((s, i = "TB") => {
1506
+ if (!s.doc)
1507
+ return i;
1508
+ let a = i;
1509
+ for (const r of s.doc)
1510
+ r.stmt === "dir" && (a = r.value);
1511
+ return a;
1512
+ }, "getDir"), kt = /* @__PURE__ */ f(function(s, i) {
1513
+ return i.db.getClasses();
1514
+ }, "getClasses"), Et = /* @__PURE__ */ f(async function(s, i, a, r) {
1515
+ we.info("REF0:"), we.info("Drawing class diagram (v3)", i);
1516
+ const { securityLevel: n, state: c, layout: u } = F();
1517
+ r.db.setDiagramId(i);
1518
+ const d = r.db.getData(), g = it(i, n);
1519
+ d.type = r.type, d.layoutAlgorithm = rt(u), d.nodeSpacing = c?.nodeSpacing || 50, d.rankSpacing = c?.rankSpacing || 50, d.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], d.diagramId = i, await nt(d, g);
1520
+ const m = 8;
1521
+ Ve.insertTitle(
1522
+ g,
1523
+ "classDiagramTitleText",
1524
+ c?.titleTopMargin ?? 25,
1525
+ r.db.getDiagramTitle()
1526
+ ), at(g, m, "classDiagram", c?.useMaxWidth ?? !0);
1527
+ }, "draw"), Ot = {
1528
+ getClasses: kt,
1529
+ draw: Et,
1530
+ getDir: bt
1531
+ };
1532
+ export {
1533
+ vt as C,
1534
+ xt as a,
1535
+ Ot as c,
1536
+ It as s
1537
+ };