@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,808 @@
1
+ import { g as ae } from "./chunk-XXDRQBXY.CSOjab1V.js";
2
+ import { s as oe } from "./chunk-VR4S4FIN.BpryBs7q.js";
3
+ import { _ as l, l as C, u as ce, v as le, y as he, B as G, c as B, h as F, X as de, R as ge, S as ue, T as pe } from "./mermaid.core.Dspbw7Ig.js";
4
+ import { v as fe } from "./v4.CKZ6klMF.js";
5
+ var Y = function() {
6
+ var i = /* @__PURE__ */ l(function(D, s, n, a) {
7
+ for (n = n || {}, a = D.length; a--; n[D[a]] = s) ;
8
+ return n;
9
+ }, "o"), e = [1, 4], o = [1, 13], g = [1, 12], t = [1, 15], h = [1, 16], f = [1, 20], y = [1, 19], E = [6, 7, 8], _ = [1, 26], L = [1, 24], w = [1, 25], d = [6, 7, 11], R = [1, 6, 13, 15, 16, 19, 22], q = [1, 33], J = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], j = {
10
+ trace: /* @__PURE__ */ l(function() {
11
+ }, "trace"),
12
+ yy: {},
13
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
14
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
15
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
16
+ performAction: /* @__PURE__ */ l(function(s, n, a, c, p, r, $) {
17
+ var u = r.length - 1;
18
+ switch (p) {
19
+ case 6:
20
+ case 7:
21
+ return c;
22
+ case 8:
23
+ c.getLogger().trace("Stop NL ");
24
+ break;
25
+ case 9:
26
+ c.getLogger().trace("Stop EOF ");
27
+ break;
28
+ case 11:
29
+ c.getLogger().trace("Stop NL2 ");
30
+ break;
31
+ case 12:
32
+ c.getLogger().trace("Stop EOF2 ");
33
+ break;
34
+ case 15:
35
+ c.getLogger().info("Node: ", r[u].id), c.addNode(r[u - 1].length, r[u].id, r[u].descr, r[u].type);
36
+ break;
37
+ case 16:
38
+ c.getLogger().trace("Icon: ", r[u]), c.decorateNode({ icon: r[u] });
39
+ break;
40
+ case 17:
41
+ case 21:
42
+ c.decorateNode({ class: r[u] });
43
+ break;
44
+ case 18:
45
+ c.getLogger().trace("SPACELIST");
46
+ break;
47
+ case 19:
48
+ c.getLogger().trace("Node: ", r[u].id), c.addNode(0, r[u].id, r[u].descr, r[u].type);
49
+ break;
50
+ case 20:
51
+ c.decorateNode({ icon: r[u] });
52
+ break;
53
+ case 25:
54
+ c.getLogger().trace("node found ..", r[u - 2]), this.$ = { id: r[u - 1], descr: r[u - 1], type: c.getType(r[u - 2], r[u]) };
55
+ break;
56
+ case 26:
57
+ this.$ = { id: r[u], descr: r[u], type: c.nodeType.DEFAULT };
58
+ break;
59
+ case 27:
60
+ c.getLogger().trace("node found ..", r[u - 3]), this.$ = { id: r[u - 3], descr: r[u - 1], type: c.getType(r[u - 2], r[u]) };
61
+ break;
62
+ }
63
+ }, "anonymous"),
64
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: o, 7: [1, 10], 9: 9, 12: 11, 13: g, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: y }, i(E, [2, 3]), { 1: [2, 2] }, i(E, [2, 4]), i(E, [2, 5]), { 1: [2, 6], 6: o, 12: 21, 13: g, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: y }, { 6: o, 9: 22, 12: 11, 13: g, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: y }, { 6: _, 7: L, 10: 23, 11: w }, i(d, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: y }), i(d, [2, 18]), i(d, [2, 19]), i(d, [2, 20]), i(d, [2, 21]), i(d, [2, 23]), i(d, [2, 24]), i(d, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: _, 7: L, 10: 32, 11: w }, { 1: [2, 7], 6: o, 12: 21, 13: g, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: y }, i(R, [2, 14], { 7: q, 11: J }), i(A, [2, 8]), i(A, [2, 9]), i(A, [2, 10]), i(d, [2, 15]), i(d, [2, 16]), i(d, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, i(R, [2, 13], { 7: q, 11: J }), i(A, [2, 11]), i(A, [2, 12]), { 21: [1, 37] }, i(d, [2, 25]), i(d, [2, 27])],
65
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
66
+ parseError: /* @__PURE__ */ l(function(s, n) {
67
+ if (n.recoverable)
68
+ this.trace(s);
69
+ else {
70
+ var a = new Error(s);
71
+ throw a.hash = n, a;
72
+ }
73
+ }, "parseError"),
74
+ parse: /* @__PURE__ */ l(function(s) {
75
+ var n = this, a = [0], c = [], p = [null], r = [], $ = this.table, u = "", M = 0, K = 0, ie = 2, Q = 1, ne = r.slice.call(arguments, 1), m = Object.create(this.lexer), v = { yy: {} };
76
+ for (var H in this.yy)
77
+ Object.prototype.hasOwnProperty.call(this.yy, H) && (v.yy[H] = this.yy[H]);
78
+ m.setInput(s, v.yy), v.yy.lexer = m, v.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
79
+ var W = m.yylloc;
80
+ r.push(W);
81
+ var se = m.options && m.options.ranges;
82
+ typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
83
+ function re(b) {
84
+ a.length = a.length - 2 * b, p.length = p.length - b, r.length = r.length - b;
85
+ }
86
+ l(re, "popStack");
87
+ function Z() {
88
+ var b;
89
+ return b = c.pop() || m.lex() || Q, typeof b != "number" && (b instanceof Array && (c = b, b = c.pop()), b = n.symbols_[b] || b), b;
90
+ }
91
+ l(Z, "lex");
92
+ for (var k, T, S, X, O = {}, U, N, ee, V; ; ) {
93
+ if (T = a[a.length - 1], this.defaultActions[T] ? S = this.defaultActions[T] : ((k === null || typeof k > "u") && (k = Z()), S = $[T] && $[T][k]), typeof S > "u" || !S.length || !S[0]) {
94
+ var z = "";
95
+ V = [];
96
+ for (U in $[T])
97
+ this.terminals_[U] && U > ie && V.push("'" + this.terminals_[U] + "'");
98
+ m.showPosition ? z = "Parse error on line " + (M + 1) + `:
99
+ ` + m.showPosition() + `
100
+ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : z = "Parse error on line " + (M + 1) + ": Unexpected " + (k == Q ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(z, {
101
+ text: m.match,
102
+ token: this.terminals_[k] || k,
103
+ line: m.yylineno,
104
+ loc: W,
105
+ expected: V
106
+ });
107
+ }
108
+ if (S[0] instanceof Array && S.length > 1)
109
+ throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + k);
110
+ switch (S[0]) {
111
+ case 1:
112
+ a.push(k), p.push(m.yytext), r.push(m.yylloc), a.push(S[1]), k = null, K = m.yyleng, u = m.yytext, M = m.yylineno, W = m.yylloc;
113
+ break;
114
+ case 2:
115
+ if (N = this.productions_[S[1]][1], O.$ = p[p.length - N], O._$ = {
116
+ first_line: r[r.length - (N || 1)].first_line,
117
+ last_line: r[r.length - 1].last_line,
118
+ first_column: r[r.length - (N || 1)].first_column,
119
+ last_column: r[r.length - 1].last_column
120
+ }, se && (O._$.range = [
121
+ r[r.length - (N || 1)].range[0],
122
+ r[r.length - 1].range[1]
123
+ ]), X = this.performAction.apply(O, [
124
+ u,
125
+ K,
126
+ M,
127
+ v.yy,
128
+ S[1],
129
+ p,
130
+ r
131
+ ].concat(ne)), typeof X < "u")
132
+ return X;
133
+ N && (a = a.slice(0, -1 * N * 2), p = p.slice(0, -1 * N), r = r.slice(0, -1 * N)), a.push(this.productions_[S[1]][0]), p.push(O.$), r.push(O._$), ee = $[a[a.length - 2]][a[a.length - 1]], a.push(ee);
134
+ break;
135
+ case 3:
136
+ return !0;
137
+ }
138
+ }
139
+ return !0;
140
+ }, "parse")
141
+ }, te = /* @__PURE__ */ function() {
142
+ var D = {
143
+ EOF: 1,
144
+ parseError: /* @__PURE__ */ l(function(n, a) {
145
+ if (this.yy.parser)
146
+ this.yy.parser.parseError(n, a);
147
+ else
148
+ throw new Error(n);
149
+ }, "parseError"),
150
+ // resets the lexer, sets new input
151
+ setInput: /* @__PURE__ */ l(function(s, n) {
152
+ return this.yy = n || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
153
+ first_line: 1,
154
+ first_column: 0,
155
+ last_line: 1,
156
+ last_column: 0
157
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
158
+ }, "setInput"),
159
+ // consumes and returns one char from the input
160
+ input: /* @__PURE__ */ l(function() {
161
+ var s = this._input[0];
162
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
163
+ var n = s.match(/(?:\r\n?|\n).*/g);
164
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
165
+ }, "input"),
166
+ // unshifts one char (or a string) into the input
167
+ unput: /* @__PURE__ */ l(function(s) {
168
+ var n = s.length, a = s.split(/(?:\r\n?|\n)/g);
169
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
170
+ var c = this.match.split(/(?:\r\n?|\n)/g);
171
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
172
+ var p = this.yylloc.range;
173
+ return this.yylloc = {
174
+ first_line: this.yylloc.first_line,
175
+ last_line: this.yylineno + 1,
176
+ first_column: this.yylloc.first_column,
177
+ last_column: a ? (a.length === c.length ? this.yylloc.first_column : 0) + c[c.length - a.length].length - a[0].length : this.yylloc.first_column - n
178
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
179
+ }, "unput"),
180
+ // When called from action, caches matched text and appends it on next action
181
+ more: /* @__PURE__ */ l(function() {
182
+ return this._more = !0, this;
183
+ }, "more"),
184
+ // 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.
185
+ reject: /* @__PURE__ */ l(function() {
186
+ if (this.options.backtrack_lexer)
187
+ this._backtrack = !0;
188
+ else
189
+ 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).
190
+ ` + this.showPosition(), {
191
+ text: "",
192
+ token: null,
193
+ line: this.yylineno
194
+ });
195
+ return this;
196
+ }, "reject"),
197
+ // retain first n characters of the match
198
+ less: /* @__PURE__ */ l(function(s) {
199
+ this.unput(this.match.slice(s));
200
+ }, "less"),
201
+ // displays already matched input, i.e. for error messages
202
+ pastInput: /* @__PURE__ */ l(function() {
203
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
204
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
205
+ }, "pastInput"),
206
+ // displays upcoming input, i.e. for error messages
207
+ upcomingInput: /* @__PURE__ */ l(function() {
208
+ var s = this.match;
209
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
210
+ }, "upcomingInput"),
211
+ // displays the character position where the lexing error occurred, i.e. for error messages
212
+ showPosition: /* @__PURE__ */ l(function() {
213
+ var s = this.pastInput(), n = new Array(s.length + 1).join("-");
214
+ return s + this.upcomingInput() + `
215
+ ` + n + "^";
216
+ }, "showPosition"),
217
+ // test the lexed token: return FALSE when not a match, otherwise return token
218
+ test_match: /* @__PURE__ */ l(function(s, n) {
219
+ var a, c, p;
220
+ if (this.options.backtrack_lexer && (p = {
221
+ yylineno: this.yylineno,
222
+ yylloc: {
223
+ first_line: this.yylloc.first_line,
224
+ last_line: this.last_line,
225
+ first_column: this.yylloc.first_column,
226
+ last_column: this.yylloc.last_column
227
+ },
228
+ yytext: this.yytext,
229
+ match: this.match,
230
+ matches: this.matches,
231
+ matched: this.matched,
232
+ yyleng: this.yyleng,
233
+ offset: this.offset,
234
+ _more: this._more,
235
+ _input: this._input,
236
+ yy: this.yy,
237
+ conditionStack: this.conditionStack.slice(0),
238
+ done: this.done
239
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), c = s[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
240
+ first_line: this.yylloc.last_line,
241
+ last_line: this.yylineno + 1,
242
+ first_column: this.yylloc.last_column,
243
+ last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
244
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
245
+ return a;
246
+ if (this._backtrack) {
247
+ for (var r in p)
248
+ this[r] = p[r];
249
+ return !1;
250
+ }
251
+ return !1;
252
+ }, "test_match"),
253
+ // return next match in input
254
+ next: /* @__PURE__ */ l(function() {
255
+ if (this.done)
256
+ return this.EOF;
257
+ this._input || (this.done = !0);
258
+ var s, n, a, c;
259
+ this._more || (this.yytext = "", this.match = "");
260
+ for (var p = this._currentRules(), r = 0; r < p.length; r++)
261
+ if (a = this._input.match(this.rules[p[r]]), a && (!n || a[0].length > n[0].length)) {
262
+ if (n = a, c = r, this.options.backtrack_lexer) {
263
+ if (s = this.test_match(a, p[r]), s !== !1)
264
+ return s;
265
+ if (this._backtrack) {
266
+ n = !1;
267
+ continue;
268
+ } else
269
+ return !1;
270
+ } else if (!this.options.flex)
271
+ break;
272
+ }
273
+ return n ? (s = this.test_match(n, p[c]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
274
+ ` + this.showPosition(), {
275
+ text: "",
276
+ token: null,
277
+ line: this.yylineno
278
+ });
279
+ }, "next"),
280
+ // return next match that has a token
281
+ lex: /* @__PURE__ */ l(function() {
282
+ var n = this.next();
283
+ return n || this.lex();
284
+ }, "lex"),
285
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
286
+ begin: /* @__PURE__ */ l(function(n) {
287
+ this.conditionStack.push(n);
288
+ }, "begin"),
289
+ // pop the previously active lexer condition state off the condition stack
290
+ popState: /* @__PURE__ */ l(function() {
291
+ var n = this.conditionStack.length - 1;
292
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
293
+ }, "popState"),
294
+ // produce the lexer rule set which is active for the currently active lexer condition state
295
+ _currentRules: /* @__PURE__ */ l(function() {
296
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
297
+ }, "_currentRules"),
298
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
299
+ topState: /* @__PURE__ */ l(function(n) {
300
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
301
+ }, "topState"),
302
+ // alias for begin(condition)
303
+ pushState: /* @__PURE__ */ l(function(n) {
304
+ this.begin(n);
305
+ }, "pushState"),
306
+ // return the number of states currently on the stack
307
+ stateStackSize: /* @__PURE__ */ l(function() {
308
+ return this.conditionStack.length;
309
+ }, "stateStackSize"),
310
+ options: { "case-insensitive": !0 },
311
+ performAction: /* @__PURE__ */ l(function(n, a, c, p) {
312
+ switch (c) {
313
+ case 0:
314
+ return n.getLogger().trace("Found comment", a.yytext), 6;
315
+ case 1:
316
+ return 8;
317
+ case 2:
318
+ this.begin("CLASS");
319
+ break;
320
+ case 3:
321
+ return this.popState(), 16;
322
+ case 4:
323
+ this.popState();
324
+ break;
325
+ case 5:
326
+ n.getLogger().trace("Begin icon"), this.begin("ICON");
327
+ break;
328
+ case 6:
329
+ return n.getLogger().trace("SPACELINE"), 6;
330
+ case 7:
331
+ return 7;
332
+ case 8:
333
+ return 15;
334
+ case 9:
335
+ n.getLogger().trace("end icon"), this.popState();
336
+ break;
337
+ case 10:
338
+ return n.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
339
+ case 11:
340
+ return n.getLogger().trace("Cloud"), this.begin("NODE"), 19;
341
+ case 12:
342
+ return n.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
343
+ case 13:
344
+ return n.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
345
+ case 14:
346
+ return this.begin("NODE"), 19;
347
+ case 15:
348
+ return this.begin("NODE"), 19;
349
+ case 16:
350
+ return this.begin("NODE"), 19;
351
+ case 17:
352
+ return this.begin("NODE"), 19;
353
+ case 18:
354
+ return 13;
355
+ case 19:
356
+ return 22;
357
+ case 20:
358
+ return 11;
359
+ case 21:
360
+ this.begin("NSTR2");
361
+ break;
362
+ case 22:
363
+ return "NODE_DESCR";
364
+ case 23:
365
+ this.popState();
366
+ break;
367
+ case 24:
368
+ n.getLogger().trace("Starting NSTR"), this.begin("NSTR");
369
+ break;
370
+ case 25:
371
+ return n.getLogger().trace("description:", a.yytext), "NODE_DESCR";
372
+ case 26:
373
+ this.popState();
374
+ break;
375
+ case 27:
376
+ return this.popState(), n.getLogger().trace("node end ))"), "NODE_DEND";
377
+ case 28:
378
+ return this.popState(), n.getLogger().trace("node end )"), "NODE_DEND";
379
+ case 29:
380
+ return this.popState(), n.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
381
+ case 30:
382
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
383
+ case 31:
384
+ return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
385
+ case 32:
386
+ return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
387
+ case 33:
388
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
389
+ case 34:
390
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
391
+ case 35:
392
+ return n.getLogger().trace("Long description:", a.yytext), 20;
393
+ case 36:
394
+ return n.getLogger().trace("Long description:", a.yytext), 20;
395
+ }
396
+ }, "anonymous"),
397
+ rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
398
+ conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
399
+ };
400
+ return D;
401
+ }();
402
+ j.lexer = te;
403
+ function P() {
404
+ this.yy = {};
405
+ }
406
+ return l(P, "Parser"), P.prototype = j, j.Parser = P, new P();
407
+ }();
408
+ Y.parser = Y;
409
+ var me = Y, ye = 12, x = {
410
+ DEFAULT: 0,
411
+ NO_BORDER: 0,
412
+ ROUNDED_RECT: 1,
413
+ RECT: 2,
414
+ CIRCLE: 3,
415
+ CLOUD: 4,
416
+ BANG: 5,
417
+ HEXAGON: 6
418
+ }, I, Ee = (I = class {
419
+ constructor() {
420
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = x, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
421
+ }
422
+ clear() {
423
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
424
+ }
425
+ getParent(e) {
426
+ for (let o = this.nodes.length - 1; o >= 0; o--)
427
+ if (this.nodes[o].level < e)
428
+ return this.nodes[o];
429
+ return null;
430
+ }
431
+ getMindmap() {
432
+ return this.nodes.length > 0 ? this.nodes[0] : null;
433
+ }
434
+ addNode(e, o, g, t) {
435
+ C.info("addNode", e, o, g, t);
436
+ let h = !1;
437
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
438
+ const f = B();
439
+ let y = f.mindmap?.padding ?? G.mindmap.padding;
440
+ switch (t) {
441
+ case this.nodeType.ROUNDED_RECT:
442
+ case this.nodeType.RECT:
443
+ case this.nodeType.HEXAGON:
444
+ y *= 2;
445
+ break;
446
+ }
447
+ const E = {
448
+ id: this.count++,
449
+ nodeId: F(o, f),
450
+ level: e,
451
+ descr: F(g, f),
452
+ type: t,
453
+ children: [],
454
+ width: f.mindmap?.maxNodeWidth ?? G.mindmap.maxNodeWidth,
455
+ padding: y,
456
+ isRoot: h
457
+ }, _ = this.getParent(e);
458
+ if (_)
459
+ _.children.push(E), this.nodes.push(E);
460
+ else if (h)
461
+ this.nodes.push(E);
462
+ else
463
+ throw new Error(
464
+ `There can be only one root. No parent could be found for ("${E.descr}")`
465
+ );
466
+ }
467
+ getType(e, o) {
468
+ switch (C.debug("In get type", e, o), e) {
469
+ case "[":
470
+ return this.nodeType.RECT;
471
+ case "(":
472
+ return o === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
473
+ case "((":
474
+ return this.nodeType.CIRCLE;
475
+ case ")":
476
+ return this.nodeType.CLOUD;
477
+ case "))":
478
+ return this.nodeType.BANG;
479
+ case "{{":
480
+ return this.nodeType.HEXAGON;
481
+ default:
482
+ return this.nodeType.DEFAULT;
483
+ }
484
+ }
485
+ setElementForId(e, o) {
486
+ this.elements[e] = o;
487
+ }
488
+ getElementById(e) {
489
+ return this.elements[e];
490
+ }
491
+ decorateNode(e) {
492
+ if (!e)
493
+ return;
494
+ const o = B(), g = this.nodes[this.nodes.length - 1];
495
+ e.icon && (g.icon = F(e.icon, o)), e.class && (g.class = F(e.class, o));
496
+ }
497
+ type2Str(e) {
498
+ switch (e) {
499
+ case this.nodeType.DEFAULT:
500
+ return "no-border";
501
+ case this.nodeType.RECT:
502
+ return "rect";
503
+ case this.nodeType.ROUNDED_RECT:
504
+ return "rounded-rect";
505
+ case this.nodeType.CIRCLE:
506
+ return "circle";
507
+ case this.nodeType.CLOUD:
508
+ return "cloud";
509
+ case this.nodeType.BANG:
510
+ return "bang";
511
+ case this.nodeType.HEXAGON:
512
+ return "hexgon";
513
+ // cspell: disable-line
514
+ default:
515
+ return "no-border";
516
+ }
517
+ }
518
+ /**
519
+ * Assign section numbers to nodes based on their position relative to root
520
+ * @param node - The mindmap node to process
521
+ * @param sectionNumber - The section number to assign (undefined for root)
522
+ */
523
+ assignSections(e, o) {
524
+ if (e.level === 0 ? e.section = void 0 : e.section = o, e.children)
525
+ for (const [g, t] of e.children.entries()) {
526
+ const h = e.level === 0 ? g % (ye - 1) : o;
527
+ this.assignSections(t, h);
528
+ }
529
+ }
530
+ /**
531
+ * Convert mindmap tree structure to flat array of nodes
532
+ * @param node - The mindmap node to process
533
+ * @param processedNodes - Array to collect processed nodes
534
+ */
535
+ flattenNodes(e, o) {
536
+ const g = B(), t = ["mindmap-node"];
537
+ e.isRoot === !0 ? t.push("section-root", "section--1") : e.section !== void 0 && t.push(`section-${e.section}`), e.class && t.push(e.class);
538
+ const h = t.join(" "), f = /* @__PURE__ */ l((E) => {
539
+ const L = (g.theme?.toLowerCase() ?? "").includes("redux");
540
+ switch (E) {
541
+ case x.CIRCLE:
542
+ return "mindmapCircle";
543
+ case x.RECT:
544
+ return "rect";
545
+ case x.ROUNDED_RECT:
546
+ return "rounded";
547
+ case x.CLOUD:
548
+ return "cloud";
549
+ case x.BANG:
550
+ return "bang";
551
+ case x.HEXAGON:
552
+ return "hexagon";
553
+ case x.DEFAULT:
554
+ return L ? "rounded" : "defaultMindmapNode";
555
+ case x.NO_BORDER:
556
+ default:
557
+ return "rect";
558
+ }
559
+ }, "getShapeFromType"), y = {
560
+ id: e.id.toString(),
561
+ domId: "node_" + e.id.toString(),
562
+ label: e.descr,
563
+ labelType: "markdown",
564
+ isGroup: !1,
565
+ shape: f(e.type),
566
+ width: e.width,
567
+ height: e.height ?? 0,
568
+ padding: e.padding,
569
+ cssClasses: h,
570
+ cssStyles: [],
571
+ look: g.look,
572
+ icon: e.icon,
573
+ x: e.x,
574
+ y: e.y,
575
+ // Mindmap-specific properties
576
+ level: e.level,
577
+ nodeId: e.nodeId,
578
+ type: e.type,
579
+ section: e.section
580
+ };
581
+ if (o.push(y), e.children)
582
+ for (const E of e.children)
583
+ this.flattenNodes(E, o);
584
+ }
585
+ /**
586
+ * Generate edges from parent-child relationships in mindmap tree
587
+ * @param node - The mindmap node to process
588
+ * @param edges - Array to collect edges
589
+ */
590
+ generateEdges(e, o) {
591
+ if (!e.children)
592
+ return;
593
+ const g = B();
594
+ for (const t of e.children) {
595
+ let h = "edge";
596
+ t.section !== void 0 && (h += ` section-edge-${t.section}`);
597
+ const f = e.level + 1;
598
+ h += ` edge-depth-${f}`;
599
+ const y = {
600
+ id: `edge_${e.id}_${t.id}`,
601
+ start: e.id.toString(),
602
+ end: t.id.toString(),
603
+ type: "normal",
604
+ curve: "basis",
605
+ thickness: "normal",
606
+ look: g.look,
607
+ classes: h,
608
+ // Store mindmap-specific data
609
+ depth: e.level,
610
+ section: t.section
611
+ };
612
+ o.push(y), this.generateEdges(t, o);
613
+ }
614
+ }
615
+ /**
616
+ * Get structured data for layout algorithms
617
+ * Following the pattern established by ER diagrams
618
+ * @returns Structured data containing nodes, edges, and config
619
+ */
620
+ getData() {
621
+ const e = this.getMindmap(), o = B(), t = de().layout !== void 0, h = o;
622
+ if (t || (h.layout = "cose-bilkent"), !e)
623
+ return {
624
+ nodes: [],
625
+ edges: [],
626
+ config: h
627
+ };
628
+ C.debug("getData: mindmapRoot", e, o), this.assignSections(e);
629
+ const f = [], y = [];
630
+ this.flattenNodes(e, f), this.generateEdges(e, y), C.debug(
631
+ `getData: processed ${f.length} nodes and ${y.length} edges`
632
+ );
633
+ const E = /* @__PURE__ */ new Map();
634
+ for (const _ of f)
635
+ E.set(_.id, {
636
+ shape: _.shape,
637
+ width: _.width,
638
+ height: _.height,
639
+ padding: _.padding
640
+ });
641
+ return {
642
+ nodes: f,
643
+ edges: y,
644
+ config: h,
645
+ // Store the root node for mindmap-specific layout algorithms
646
+ rootNode: e,
647
+ // Properties required by dagre layout algorithm
648
+ markers: ["point"],
649
+ // Mindmaps don't use markers
650
+ direction: "TB",
651
+ // Top-to-bottom direction for mindmaps
652
+ nodeSpacing: 50,
653
+ // Default spacing between nodes
654
+ rankSpacing: 50,
655
+ // Default spacing between ranks
656
+ // Add shapes for ELK compatibility
657
+ shapes: Object.fromEntries(E),
658
+ // Additional properties that layout algorithms might expect
659
+ type: "mindmap",
660
+ diagramId: "mindmap-" + fe()
661
+ };
662
+ }
663
+ // Expose logger to grammar
664
+ getLogger() {
665
+ return C;
666
+ }
667
+ }, l(I, "MindmapDB"), I), _e = /* @__PURE__ */ l(async (i, e, o, g) => {
668
+ C.debug(`Rendering mindmap diagram
669
+ ` + i);
670
+ const t = g.db, h = t.getData(), f = ae(e, h.config.securityLevel);
671
+ if (h.type = g.type, h.layoutAlgorithm = ce(h.config.layout, {
672
+ fallback: "cose-bilkent"
673
+ }), h.diagramId = e, !t.getMindmap())
674
+ return;
675
+ h.nodes.forEach((d) => {
676
+ d.shape === "rounded" ? (d.radius = 15, d.taper = 15, d.stroke = "none", d.width = 0, d.padding = 15) : d.shape === "circle" ? d.padding = 10 : d.shape === "rect" ? (d.width = 0, d.padding = 10) : d.shape === "hexagon" && (d.width = 0, d.height = 0);
677
+ }), await le(h, f);
678
+ const { themeVariables: E } = he(), { useGradient: _, gradientStart: L, gradientStop: w } = E;
679
+ if (_ && L && w) {
680
+ const d = f.attr("id"), R = f.append("defs").append("linearGradient").attr("id", `${d}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
681
+ R.append("stop").attr("offset", "0%").attr("stop-color", L).attr("stop-opacity", 1), R.append("stop").attr("offset", "100%").attr("stop-color", w).attr("stop-opacity", 1);
682
+ }
683
+ oe(
684
+ f,
685
+ h.config.mindmap?.padding ?? G.mindmap.padding,
686
+ "mindmapDiagram",
687
+ h.config.mindmap?.useMaxWidth ?? G.mindmap.useMaxWidth
688
+ );
689
+ }, "draw"), ke = {
690
+ draw: _e
691
+ }, be = /* @__PURE__ */ l((i) => {
692
+ const { theme: e, look: o } = i;
693
+ let g = "";
694
+ for (let t = 0; t < i.THEME_COLOR_LIMIT; t++)
695
+ i["lineColor" + t] = i["lineColor" + t] || i["cScaleInv" + t], ge(i["lineColor" + t]) ? i["lineColor" + t] = ue(i["lineColor" + t], 20) : i["lineColor" + t] = pe(i["lineColor" + t], 20);
696
+ for (let t = 0; t < i.THEME_COLOR_LIMIT; t++) {
697
+ const h = "" + (o === "neo" ? Math.max(10 - (t - 1) * 2, 2) : 17 - 3 * t);
698
+ g += `
699
+ .section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} polygon, .section-${t - 1} path {
700
+ fill: ${i["cScale" + t]};
701
+ }
702
+ .section-${t - 1} text {
703
+ fill: ${i["cScaleLabel" + t]};
704
+ }
705
+ .section-${t - 1} span {
706
+ color: ${i["cScaleLabel" + t]};
707
+ }
708
+ .node-icon-${t - 1} {
709
+ font-size: 40px;
710
+ color: ${i["cScaleLabel" + t]};
711
+ }
712
+ .section-edge-${t - 1}{
713
+ stroke: ${i["cScale" + t]};
714
+ }
715
+ .edge-depth-${t - 1}{
716
+ stroke-width: ${h};
717
+ }
718
+ .section-${t - 1} line {
719
+ stroke: ${i["cScaleInv" + t]} ;
720
+ stroke-width: 3;
721
+ }
722
+
723
+ .disabled, .disabled circle, .disabled text {
724
+ fill: lightgray;
725
+ }
726
+ .disabled text {
727
+ fill: #efefef;
728
+ }
729
+ [data-look="neo"].mindmap-node.section-${t - 1} rect, [data-look="neo"].mindmap-node.section-${t - 1} path, [data-look="neo"].mindmap-node.section-${t - 1} circle, [data-look="neo"].mindmap-node.section-${t - 1} polygon {
730
+ fill: ${e === "redux" || e === "redux-dark" || e === "neutral" ? i.mainBkg : i["cScale" + t]};
731
+ stroke: ${e === "redux" || e === "redux-dark" ? i.nodeBorder : i["cScale" + t]};
732
+ stroke-width: ${i.strokeWidth ?? 2}px;
733
+ }
734
+ [data-look="neo"].section-edge-${t - 1}{
735
+ stroke: ${e?.includes("redux") || e === "neo-dark" ? i.nodeBorder : i["cScale" + t]};
736
+ }
737
+ [data-look="neo"].mindmap-node.section-${t - 1} text {
738
+ fill: ${e === "redux" || e === "redux-dark" ? i.nodeBorder : i["cScaleLabel" + (e === "neutral" ? 1 : t)]};
739
+ }
740
+ `;
741
+ }
742
+ return g;
743
+ }, "genSections"), Se = /* @__PURE__ */ l((i, e, o) => {
744
+ let g = "";
745
+ for (let t = 0; t < i; t++)
746
+ g += `
747
+ [data-look="neo"].mindmap-node.section-${t - 1} rect, [data-look="neo"].mindmap-node.section-${t - 1} path, [data-look="neo"].mindmap-node.section-${t - 1} circle, [data-look="neo"].mindmap-node.section-${t - 1} polygon {
748
+ stroke: url(${e}-gradient);
749
+ fill: ${o};
750
+ }
751
+ .section-${t - 1} line {
752
+ stroke-width: 0;
753
+ }`;
754
+ return g;
755
+ }, "genGradient"), Ne = /* @__PURE__ */ l((i) => {
756
+ const { theme: e } = i, o = i.svgId, g = i.dropShadow ? i.dropShadow.replace("url(#drop-shadow)", `url(${o}-drop-shadow)`) : "none";
757
+ return `
758
+ .edge {
759
+ stroke-width: 3;
760
+ }
761
+ ${be(i)}
762
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
763
+ fill: ${i.git0};
764
+ }
765
+ .section-root text {
766
+ fill: ${i.gitBranchLabel0};
767
+ }
768
+ .section-root span {
769
+ color: ${e?.includes("redux") ? i.nodeBorder : i.gitBranchLabel0};
770
+ }
771
+ .icon-container {
772
+ height:100%;
773
+ display: flex;
774
+ justify-content: center;
775
+ align-items: center;
776
+ }
777
+ .edge {
778
+ fill: none;
779
+ }
780
+ .mindmap-node-label {
781
+ dy: 1em;
782
+ alignment-baseline: middle;
783
+ text-anchor: middle;
784
+ dominant-baseline: middle;
785
+ text-align: center;
786
+ }
787
+ [data-look="neo"].mindmap-node {
788
+ filter: ${g};
789
+ }
790
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
791
+ fill: ${e?.includes("redux") ? i.mainBkg : i.git0};
792
+ }
793
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
794
+ fill: ${e?.includes("redux") ? i.nodeBorder : i["cScaleLabel" + (e === "neutral" ? 1 : 0)]};
795
+ }
796
+ ${i.useGradient && o && i.mainBkg ? Se(i.THEME_COLOR_LIMIT, o, i.mainBkg) : ""}
797
+ `;
798
+ }, "getStyles"), xe = Ne, Oe = {
799
+ get db() {
800
+ return new Ee();
801
+ },
802
+ renderer: ke,
803
+ parser: me,
804
+ styles: xe
805
+ };
806
+ export {
807
+ Oe as diagram
808
+ };