@brainfish-ai/components 0.14.3 → 0.15.0-beta.1

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 (254) hide show
  1. package/dist/accordion.d.ts +12 -0
  2. package/dist/badge.d.ts +14 -0
  3. package/dist/button.d.ts +16 -0
  4. package/dist/calendar.d.ts +12 -0
  5. package/dist/card.d.ts +17 -0
  6. package/dist/chat-search.d.ts +424 -0
  7. package/dist/collapsible.d.ts +10 -0
  8. package/dist/{colors/index.d.ts → colors.d.ts} +133 -128
  9. package/dist/{components/combobox/combobox.d.ts → combobox.d.ts} +23 -18
  10. package/dist/command.d.ts +90 -0
  11. package/dist/data-table.d.ts +23 -0
  12. package/dist/{components/date-picker/date-picker.d.ts → date-picker.d.ts} +12 -9
  13. package/dist/dialog.d.ts +30 -0
  14. package/dist/div-button.d.ts +16 -0
  15. package/dist/dropdown-menu.d.ts +43 -0
  16. package/dist/esm/chunks/{ChatSearch.B-0s3a8W.js → ChatSearch.nXLnU6TL.js} +3 -2
  17. package/dist/esm/chunks/{ChatSearch.B-0s3a8W.js.map → ChatSearch.nXLnU6TL.js.map} +1 -1
  18. package/dist/esm/chunks/{FormattedMessage.C7CKFL5X.js → FormattedMessage.aTY_CSO9.js} +3 -8
  19. package/dist/esm/chunks/{FormattedMessage.C7CKFL5X.js.map → FormattedMessage.aTY_CSO9.js.map} +1 -1
  20. package/dist/esm/chunks/_basePickBy-BRd8bulh.BihFF1eU.js +140 -0
  21. package/dist/esm/chunks/_basePickBy-BRd8bulh.BihFF1eU.js.map +1 -0
  22. package/dist/esm/chunks/_baseUniq-CjJl2kgN.C3Wg6Gzv.js +585 -0
  23. package/dist/esm/chunks/_baseUniq-CjJl2kgN.C3Wg6Gzv.js.map +1 -0
  24. package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
  25. package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js.map +1 -0
  26. package/dist/esm/chunks/arc-BwUz6pB-.CLjvikE5.js +84 -0
  27. package/dist/esm/chunks/arc-BwUz6pB-.CLjvikE5.js.map +1 -0
  28. package/dist/esm/chunks/architectureDiagram-W76B3OCA-Cb5kazGQ.1bO-o28W.js +4662 -0
  29. package/dist/esm/chunks/architectureDiagram-W76B3OCA-Cb5kazGQ.1bO-o28W.js.map +1 -0
  30. package/dist/esm/chunks/blockDiagram-QIGZ2CNN-DDf1fn8j.CbGMaSk6.js +2262 -0
  31. package/dist/esm/chunks/blockDiagram-QIGZ2CNN-DDf1fn8j.CbGMaSk6.js.map +1 -0
  32. package/dist/esm/chunks/c4Diagram-FPNF74CW-Bums6QOx.Cr4gEhB6.js +1581 -0
  33. package/dist/esm/chunks/c4Diagram-FPNF74CW-Bums6QOx.Cr4gEhB6.js.map +1 -0
  34. package/dist/esm/chunks/channel-0GCo3iLB.B41ZW7VC.js +6 -0
  35. package/dist/esm/chunks/channel-0GCo3iLB.B41ZW7VC.js.map +1 -0
  36. package/dist/esm/chunks/chunk-4BX2VUAB-BNEZvE0o.BzF9LZVo.js +9 -0
  37. package/dist/esm/chunks/chunk-4BX2VUAB-BNEZvE0o.BzF9LZVo.js.map +1 -0
  38. package/dist/esm/chunks/chunk-55IACEB6-DKe9mqg4.BScGh1GA.js +9 -0
  39. package/dist/esm/chunks/chunk-55IACEB6-DKe9mqg4.BScGh1GA.js.map +1 -0
  40. package/dist/esm/chunks/chunk-FMBD7UC4-crQF-lvP.eIOmyWTR.js +20 -0
  41. package/dist/esm/chunks/chunk-FMBD7UC4-crQF-lvP.eIOmyWTR.js.map +1 -0
  42. package/dist/esm/chunks/chunk-K7UQS3LO-Cfwyr-vZ.BAoAWAQk.js +1373 -0
  43. package/dist/esm/chunks/chunk-K7UQS3LO-Cfwyr-vZ.BAoAWAQk.js.map +1 -0
  44. package/dist/esm/chunks/chunk-QN33PNHL-DspJEonH.BH03Z53b.js +20 -0
  45. package/dist/esm/chunks/chunk-QN33PNHL-DspJEonH.BH03Z53b.js.map +1 -0
  46. package/dist/esm/chunks/chunk-QZHKN3VN-BCAuXuhM.Yv71fggY.js +16 -0
  47. package/dist/esm/chunks/chunk-QZHKN3VN-BCAuXuhM.Yv71fggY.js.map +1 -0
  48. package/dist/esm/chunks/chunk-TVAH2DTR-UAGFGTWa.DtaXLvO3.js +1368 -0
  49. package/dist/esm/chunks/chunk-TVAH2DTR-UAGFGTWa.DtaXLvO3.js.map +1 -0
  50. package/dist/esm/chunks/chunk-TZMSLE5B-BuOZ_3Ji.DWg5e95b.js +59 -0
  51. package/dist/esm/chunks/chunk-TZMSLE5B-BuOZ_3Ji.DWg5e95b.js.map +1 -0
  52. package/dist/esm/chunks/classDiagram-KNZD7YFC-DX7nurcU.CyPH6UHq.js +17 -0
  53. package/dist/esm/chunks/classDiagram-KNZD7YFC-DX7nurcU.CyPH6UHq.js.map +1 -0
  54. package/dist/esm/chunks/classDiagram-v2-RKCZMP56-DX7nurcU.CyPH6UHq.js +17 -0
  55. package/dist/esm/chunks/classDiagram-v2-RKCZMP56-DX7nurcU.CyPH6UHq.js.map +1 -0
  56. package/dist/esm/chunks/clone-Bqjztgu2.BFjA-F4h.js +9 -0
  57. package/dist/esm/chunks/clone-Bqjztgu2.BFjA-F4h.js.map +1 -0
  58. package/dist/esm/chunks/cose-bilkent-S5V4N54A-BQHziyWw.BZGNVFdw.js +2610 -0
  59. package/dist/esm/chunks/cose-bilkent-S5V4N54A-BQHziyWw.BZGNVFdw.js.map +1 -0
  60. package/dist/esm/chunks/cytoscape.esm-qgs_QMrm.Cg6eOcD7.js +18633 -0
  61. package/dist/esm/chunks/cytoscape.esm-qgs_QMrm.Cg6eOcD7.js.map +1 -0
  62. package/dist/esm/chunks/dagre-5GWH7T2D-lsJD5N-w.B1kdVc5w.js +445 -0
  63. package/dist/esm/chunks/dagre-5GWH7T2D-lsJD5N-w.B1kdVc5w.js.map +1 -0
  64. package/dist/esm/chunks/defaultLocale-D7EN2tov.B8F577Sx.js +168 -0
  65. package/dist/esm/chunks/defaultLocale-D7EN2tov.B8F577Sx.js.map +1 -0
  66. package/dist/esm/chunks/diagram-N5W7TBWH-BRbQQdVg.CLbXQp4w.js +533 -0
  67. package/dist/esm/chunks/diagram-N5W7TBWH-BRbQQdVg.CLbXQp4w.js.map +1 -0
  68. package/dist/esm/chunks/diagram-QEK2KX5R-8l9h9zsj.DLBRL8pH.js +218 -0
  69. package/dist/esm/chunks/diagram-QEK2KX5R-8l9h9zsj.DLBRL8pH.js.map +1 -0
  70. package/dist/esm/chunks/diagram-S2PKOQOG-Cqv8fzC4.BsV-iXxM.js +143 -0
  71. package/dist/esm/chunks/diagram-S2PKOQOG-Cqv8fzC4.BsV-iXxM.js.map +1 -0
  72. package/dist/esm/chunks/erDiagram-AWTI2OKA-CuacxCQc.BRxf9Bvb.js +842 -0
  73. package/dist/esm/chunks/erDiagram-AWTI2OKA-CuacxCQc.BRxf9Bvb.js.map +1 -0
  74. package/dist/esm/chunks/flowDiagram-PVAE7QVJ-CYALWpXg.DIYz6l2w.js +1621 -0
  75. package/dist/esm/chunks/flowDiagram-PVAE7QVJ-CYALWpXg.DIYz6l2w.js.map +1 -0
  76. package/dist/esm/chunks/ganttDiagram-OWAHRB6G-DasKdnJE.Dl2sI2Nk.js +2506 -0
  77. package/dist/esm/chunks/ganttDiagram-OWAHRB6G-DasKdnJE.Dl2sI2Nk.js.map +1 -0
  78. package/dist/esm/chunks/gitGraphDiagram-NY62KEGX-CBXt0yuv.mD35jpPG.js +700 -0
  79. package/dist/esm/chunks/gitGraphDiagram-NY62KEGX-CBXt0yuv.mD35jpPG.js.map +1 -0
  80. package/dist/esm/chunks/graph-DuS579Mj.CVtaKNIJ.js +248 -0
  81. package/dist/esm/chunks/graph-DuS579Mj.CVtaKNIJ.js.map +1 -0
  82. package/dist/esm/chunks/infoDiagram-STP46IZ2-D6dOD0xH.BLhsKnwz.js +25 -0
  83. package/dist/esm/chunks/infoDiagram-STP46IZ2-D6dOD0xH.BLhsKnwz.js.map +1 -0
  84. package/dist/esm/chunks/init-DjUOC4st.BOEiyheD.js +16 -0
  85. package/dist/esm/chunks/init-DjUOC4st.BOEiyheD.js.map +1 -0
  86. package/dist/esm/chunks/journeyDiagram-BIP6EPQ6-BVvhjpLT.Cy1B2LuZ.js +837 -0
  87. package/dist/esm/chunks/journeyDiagram-BIP6EPQ6-BVvhjpLT.Cy1B2LuZ.js.map +1 -0
  88. package/dist/esm/chunks/kanban-definition-6OIFK2YF-DXUNU6e4.YiYgNKI6.js +720 -0
  89. package/dist/esm/chunks/kanban-definition-6OIFK2YF-DXUNU6e4.YiYgNKI6.js.map +1 -0
  90. package/dist/esm/chunks/katex-CUSbq6rG.R-nwQ7Gi.js +11679 -0
  91. package/dist/esm/chunks/katex-CUSbq6rG.R-nwQ7Gi.js.map +1 -0
  92. package/dist/esm/chunks/layout-C51Wxzwk.D_mfdH7L.js +1322 -0
  93. package/dist/esm/chunks/layout-C51Wxzwk.D_mfdH7L.js.map +1 -0
  94. package/dist/esm/chunks/linear-CHlV0TT4.CvsRyKtq.js +256 -0
  95. package/dist/esm/chunks/linear-CHlV0TT4.CvsRyKtq.js.map +1 -0
  96. package/dist/esm/chunks/markdownTranslator-D7_8pMsF.-EYyJrCs.js +15985 -0
  97. package/dist/esm/chunks/markdownTranslator-D7_8pMsF.-EYyJrCs.js.map +1 -0
  98. package/dist/esm/chunks/mermaid.core-C5kBD6J-.BXPxVcVa.js +15491 -0
  99. package/dist/esm/chunks/mermaid.core-C5kBD6J-.BXPxVcVa.js.map +1 -0
  100. package/dist/esm/chunks/mindmap-definition-Q6HEUPPD-HFrYx80F.ysRA57eW.js +782 -0
  101. package/dist/esm/chunks/mindmap-definition-Q6HEUPPD-HFrYx80F.ysRA57eW.js.map +1 -0
  102. package/dist/esm/chunks/ordinal-DfAQgscy.J1PPD2vL.js +62 -0
  103. package/dist/esm/chunks/ordinal-DfAQgscy.J1PPD2vL.js.map +1 -0
  104. package/dist/esm/chunks/paragraph-node-C0kBl9gb.CIP8K4ND.js +61421 -0
  105. package/dist/esm/chunks/paragraph-node-C0kBl9gb.CIP8K4ND.js.map +1 -0
  106. package/dist/esm/chunks/pieDiagram-ADFJNKIX-CsslphWO.B4GbWuZv.js +162 -0
  107. package/dist/esm/chunks/pieDiagram-ADFJNKIX-CsslphWO.B4GbWuZv.js.map +1 -0
  108. package/dist/esm/chunks/quadrantDiagram-LMRXKWRM-5QFmGeOP.C_UxDQXe.js +1023 -0
  109. package/dist/esm/chunks/quadrantDiagram-LMRXKWRM-5QFmGeOP.C_UxDQXe.js.map +1 -0
  110. package/dist/esm/chunks/requirementDiagram-4UW4RH46-C22keu8n.C4-dnVVT.js +851 -0
  111. package/dist/esm/chunks/requirementDiagram-4UW4RH46-C22keu8n.C4-dnVVT.js.map +1 -0
  112. package/dist/esm/chunks/sankeyDiagram-GR3RE2ED-BpqD9_-e.ngMCnT6E.js +811 -0
  113. package/dist/esm/chunks/sankeyDiagram-GR3RE2ED-BpqD9_-e.ngMCnT6E.js.map +1 -0
  114. package/dist/esm/chunks/sequenceDiagram-C3RYC4MD-oePYpAJV.CBdzhzsP.js +2512 -0
  115. package/dist/esm/chunks/sequenceDiagram-C3RYC4MD-oePYpAJV.CBdzhzsP.js.map +1 -0
  116. package/dist/esm/chunks/simple-editor.BahVaPV_.js +17657 -0
  117. package/dist/esm/chunks/simple-editor.BahVaPV_.js.map +1 -0
  118. package/dist/esm/chunks/simple-viewer-BRtSPXgb.j1P0rnc3.js +5543 -0
  119. package/dist/esm/chunks/simple-viewer-BRtSPXgb.j1P0rnc3.js.map +1 -0
  120. package/dist/esm/chunks/stateDiagram-KXAO66HF-D4aLegBB.CQf3ipbf.js +264 -0
  121. package/dist/esm/chunks/stateDiagram-KXAO66HF-D4aLegBB.CQf3ipbf.js.map +1 -0
  122. package/dist/esm/chunks/stateDiagram-v2-UMBNRL4Z-EsHlUtVh.KT7g_d3p.js +17 -0
  123. package/dist/esm/chunks/stateDiagram-v2-UMBNRL4Z-EsHlUtVh.KT7g_d3p.js.map +1 -0
  124. package/dist/esm/chunks/timeline-definition-XQNQX7LJ-6YQdnQ9U.CyMubI5o.js +798 -0
  125. package/dist/esm/chunks/timeline-definition-XQNQX7LJ-6YQdnQ9U.CyMubI5o.js.map +1 -0
  126. package/dist/esm/chunks/treemap-75Q7IDZK-vsWUWgT4.STv98gDF.js +12982 -0
  127. package/dist/esm/chunks/treemap-75Q7IDZK-vsWUWgT4.STv98gDF.js.map +1 -0
  128. package/dist/esm/chunks/xychartDiagram-6GGTOJPD-M8ajOOsE.Ds3v-kkT.js +1341 -0
  129. package/dist/esm/chunks/xychartDiagram-6GGTOJPD-M8ajOOsE.Ds3v-kkT.js.map +1 -0
  130. package/dist/esm/components/chat-search.js +1 -1
  131. package/dist/esm/components/markdown-editor-viewer.js +2 -0
  132. package/dist/esm/components/markdown-editor-viewer.js.map +1 -0
  133. package/dist/esm/components/markdown.js +1 -1
  134. package/dist/esm/index.css +1 -1
  135. package/dist/esm/index.js +3 -2
  136. package/dist/esm/index.js.map +1 -1
  137. package/dist/{components/feedback/feedback.d.ts → feedback.d.ts} +21 -17
  138. package/dist/file-upload.d.ts +45 -0
  139. package/dist/{components/filter/types.d.ts → filter.d.ts} +82 -59
  140. package/dist/generating-star.d.ts +10 -0
  141. package/dist/icon.d.ts +26 -0
  142. package/dist/index.d.ts +1204 -28
  143. package/dist/input.d.ts +11 -0
  144. package/dist/label.d.ts +8 -0
  145. package/dist/markdown-editor-viewer.d.ts +113 -0
  146. package/dist/markdown.d.ts +55 -0
  147. package/dist/popover.d.ts +12 -0
  148. package/dist/progress.d.ts +8 -0
  149. package/dist/scroll-area.d.ts +8 -0
  150. package/dist/{components/select/simpleSelect.d.ts → select.d.ts} +20 -15
  151. package/dist/stats.html +1 -1
  152. package/dist/switch.d.ts +6 -0
  153. package/dist/table.d.ts +19 -0
  154. package/dist/textarea.d.ts +5 -0
  155. package/dist/tooltip.d.ts +18 -0
  156. package/dist/{components/two-level-combobox/two-level-combobox.d.ts → two-level-combobox.d.ts} +24 -15
  157. package/markdown-editor.plan.md +322 -0
  158. package/markdown-editor.spec.md +915 -0
  159. package/package.json +23 -4
  160. package/dist/colors/blue.d.ts +0 -13
  161. package/dist/colors/customColor.d.ts +0 -4
  162. package/dist/colors/dark.d.ts +0 -13
  163. package/dist/colors/green.d.ts +0 -13
  164. package/dist/colors/orange.d.ts +0 -13
  165. package/dist/colors/pink.d.ts +0 -13
  166. package/dist/colors/primary.d.ts +0 -20
  167. package/dist/colors/purple.d.ts +0 -13
  168. package/dist/colors/red.d.ts +0 -13
  169. package/dist/colors/yellow.d.ts +0 -13
  170. package/dist/components/chat-search/Answer.d.ts +0 -29
  171. package/dist/components/chat-search/AnswerActions.d.ts +0 -13
  172. package/dist/components/chat-search/AnswerBlock.d.ts +0 -8
  173. package/dist/components/chat-search/ChatSearch.d.ts +0 -11
  174. package/dist/components/chat-search/ChatSearchContext.d.ts +0 -36
  175. package/dist/components/chat-search/FollowUpQuestions.d.ts +0 -7
  176. package/dist/components/chat-search/FollowUpSearchBar.d.ts +0 -11
  177. package/dist/components/chat-search/Header.d.ts +0 -9
  178. package/dist/components/chat-search/LoadingConversation.d.ts +0 -2
  179. package/dist/components/chat-search/LoadingSkeleton.d.ts +0 -6
  180. package/dist/components/chat-search/NextBestActions.d.ts +0 -8
  181. package/dist/components/chat-search/PrimarySearch.d.ts +0 -35
  182. package/dist/components/chat-search/ScrollToBottomArrow.d.ts +0 -6
  183. package/dist/components/chat-search/Suggestions.d.ts +0 -9
  184. package/dist/components/chat-search/TimelineNavigation.d.ts +0 -9
  185. package/dist/components/chat-search/blocks/ActionButtons.d.ts +0 -5
  186. package/dist/components/chat-search/blocks/ActionInputForm.d.ts +0 -20
  187. package/dist/components/chat-search/blocks/MarkdownText.d.ts +0 -8
  188. package/dist/components/chat-search/blocks/utils.d.ts +0 -15
  189. package/dist/components/chat-search/helpers/excuteClientAction.d.ts +0 -9
  190. package/dist/components/chat-search/helpers/nextBestActions.d.ts +0 -7
  191. package/dist/components/chat-search/hooks/index.d.ts +0 -7
  192. package/dist/components/chat-search/hooks/useAccessibleColor.d.ts +0 -1
  193. package/dist/components/chat-search/hooks/useAnswerList.d.ts +0 -217
  194. package/dist/components/chat-search/hooks/useConversationId.d.ts +0 -5
  195. package/dist/components/chat-search/hooks/useConversationLoader.d.ts +0 -17
  196. package/dist/components/chat-search/hooks/useDarkMode.d.ts +0 -1
  197. package/dist/components/chat-search/hooks/useIsChatSearchDirty.d.ts +0 -1
  198. package/dist/components/chat-search/hooks/useScrollManager.d.ts +0 -6
  199. package/dist/components/chat-search/hooks/useSubscriptionManager.d.ts +0 -4
  200. package/dist/components/chat-search/hooks/useUrlManager.d.ts +0 -8
  201. package/dist/components/chat-search/index.d.ts +0 -5
  202. package/dist/components/chat-search/text-config.d.ts +0 -3
  203. package/dist/components/chat-search/theme.d.ts +0 -0
  204. package/dist/components/chat-search/types.d.ts +0 -260
  205. package/dist/components/combobox/index.d.ts +0 -1
  206. package/dist/components/data-table/data-table.d.ts +0 -17
  207. package/dist/components/data-table/index.d.ts +0 -2
  208. package/dist/components/date-picker/index.d.ts +0 -1
  209. package/dist/components/feedback/feedback-reason.d.ts +0 -10
  210. package/dist/components/feedback/index.d.ts +0 -1
  211. package/dist/components/file-upload/file-upload-status.d.ts +0 -17
  212. package/dist/components/file-upload/file-upload.d.ts +0 -4
  213. package/dist/components/file-upload/index.d.ts +0 -4
  214. package/dist/components/file-upload/types.d.ts +0 -18
  215. package/dist/components/file-upload/utils.d.ts +0 -1
  216. package/dist/components/filter/components/CustomValueInput.d.ts +0 -11
  217. package/dist/components/filter/components/MultiSelectDropdown.d.ts +0 -10
  218. package/dist/components/filter/components/SingleSelectDropdown.d.ts +0 -9
  219. package/dist/components/filter/filter.d.ts +0 -6
  220. package/dist/components/filter/filters.d.ts +0 -12
  221. package/dist/components/filter/hooks.d.ts +0 -9
  222. package/dist/components/filter/index.d.ts +0 -3
  223. package/dist/components/generating-star/generating-star.d.ts +0 -6
  224. package/dist/components/generating-star/index.d.ts +0 -2
  225. package/dist/components/markdown/CodeBlock.d.ts +0 -7
  226. package/dist/components/markdown/FormattedMessage.d.ts +0 -14
  227. package/dist/components/markdown/Frame.d.ts +0 -10
  228. package/dist/components/markdown/MemoizedReactMarkdown.d.ts +0 -6
  229. package/dist/components/markdown/MermaidDiagram.d.ts +0 -6
  230. package/dist/components/markdown/ZoomableImage.d.ts +0 -7
  231. package/dist/components/markdown/embeds/Loom.d.ts +0 -7
  232. package/dist/components/markdown/embeds/NativeVideo.d.ts +0 -6
  233. package/dist/components/markdown/embeds/Supademo.d.ts +0 -7
  234. package/dist/components/markdown/embeds/Typeform.d.ts +0 -7
  235. package/dist/components/markdown/embeds/VideoTimeline.d.ts +0 -9
  236. package/dist/components/markdown/embeds/Vimeo.d.ts +0 -7
  237. package/dist/components/markdown/embeds/Wistia.d.ts +0 -7
  238. package/dist/components/markdown/embeds/Youtube.d.ts +0 -7
  239. package/dist/components/markdown/embeds/index.d.ts +0 -9
  240. package/dist/components/markdown/index.d.ts +0 -6
  241. package/dist/components/markdown/utils/codeblock.d.ts +0 -6
  242. package/dist/components/markdown/utils/stripNewLines.d.ts +0 -1
  243. package/dist/components/markdown/utils/urls.d.ts +0 -6
  244. package/dist/components/select/index.d.ts +0 -1
  245. package/dist/components/two-level-combobox/index.d.ts +0 -1
  246. package/dist/env.d.ts +0 -5
  247. package/dist/lib/addUtmParams.d.ts +0 -20
  248. package/dist/lib/api.d.ts +0 -96
  249. package/dist/lib/feature-flags.d.ts +0 -9
  250. package/dist/lib/features.d.ts +0 -3
  251. package/dist/lib/fetchClient.d.ts +0 -19
  252. package/dist/lib/getContentType.d.ts +0 -1
  253. package/dist/lib/hooks.d.ts +0 -15
  254. package/dist/lib/utils.d.ts +0 -8
@@ -0,0 +1,720 @@
1
+ import { _ as p, l as F, c as ut, H as V1, af as $v, ag as Wg, ah as iA, V as ny, F as Eh, i as ee$1, t as rC, J as eC, W as Ui, X as q, Y as J } from './mermaid.core-C5kBD6J-.BXPxVcVa.js';
2
+ import { l } from './chunk-FMBD7UC4-crQF-lvP.eIOmyWTR.js';
3
+
4
+ var $ = function() {
5
+ var e = /* @__PURE__ */ p(function(O, i, n, r) {
6
+ for (n = n || {}, r = O.length; r--; n[O[r]] = i) ;
7
+ return n;
8
+ }, "o"), u = [1, 4], p$1 = [1, 13], s = [1, 12], d = [1, 15], E = [1, 16], b = [1, 20], l = [1, 19], D = [6, 7, 8], I = [1, 26], g = [1, 24], w = [1, 25], _ = [6, 7, 11], G = [1, 31], N = [6, 7, 11, 24], V = [1, 6, 13, 16, 17, 20, 23], m = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], H = [1, 38], T = {
9
+ trace: /* @__PURE__ */ p(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
14
+ 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, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
15
+ performAction: /* @__PURE__ */ p(function(i, n, r, a, h, t, M) {
16
+ var c = t.length - 1;
17
+ switch (h) {
18
+ case 6:
19
+ case 7:
20
+ return a;
21
+ case 8:
22
+ a.getLogger().trace("Stop NL ");
23
+ break;
24
+ case 9:
25
+ a.getLogger().trace("Stop EOF ");
26
+ break;
27
+ case 11:
28
+ a.getLogger().trace("Stop NL2 ");
29
+ break;
30
+ case 12:
31
+ a.getLogger().trace("Stop EOF2 ");
32
+ break;
33
+ case 15:
34
+ a.getLogger().info("Node: ", t[c - 1].id), a.addNode(t[c - 2].length, t[c - 1].id, t[c - 1].descr, t[c - 1].type, t[c]);
35
+ break;
36
+ case 16:
37
+ a.getLogger().info("Node: ", t[c].id), a.addNode(t[c - 1].length, t[c].id, t[c].descr, t[c].type);
38
+ break;
39
+ case 17:
40
+ a.getLogger().trace("Icon: ", t[c]), a.decorateNode({ icon: t[c] });
41
+ break;
42
+ case 18:
43
+ case 23:
44
+ a.decorateNode({ class: t[c] });
45
+ break;
46
+ case 19:
47
+ a.getLogger().trace("SPACELIST");
48
+ break;
49
+ case 20:
50
+ a.getLogger().trace("Node: ", t[c - 1].id), a.addNode(0, t[c - 1].id, t[c - 1].descr, t[c - 1].type, t[c]);
51
+ break;
52
+ case 21:
53
+ a.getLogger().trace("Node: ", t[c].id), a.addNode(0, t[c].id, t[c].descr, t[c].type);
54
+ break;
55
+ case 22:
56
+ a.decorateNode({ icon: t[c] });
57
+ break;
58
+ case 27:
59
+ a.getLogger().trace("node found ..", t[c - 2]), this.$ = { id: t[c - 1], descr: t[c - 1], type: a.getType(t[c - 2], t[c]) };
60
+ break;
61
+ case 28:
62
+ this.$ = { id: t[c], descr: t[c], type: 0 };
63
+ break;
64
+ case 29:
65
+ a.getLogger().trace("node found ..", t[c - 3]), this.$ = { id: t[c - 3], descr: t[c - 1], type: a.getType(t[c - 2], t[c]) };
66
+ break;
67
+ case 30:
68
+ this.$ = t[c - 1] + t[c];
69
+ break;
70
+ case 31:
71
+ this.$ = t[c];
72
+ break;
73
+ }
74
+ }, "anonymous"),
75
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: u }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: u }, { 6: p$1, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: d, 17: E, 18: 17, 19: 18, 20: b, 23: l }, e(D, [2, 3]), { 1: [2, 2] }, e(D, [2, 4]), e(D, [2, 5]), { 1: [2, 6], 6: p$1, 12: 21, 13: s, 14: 14, 16: d, 17: E, 18: 17, 19: 18, 20: b, 23: l }, { 6: p$1, 9: 22, 12: 11, 13: s, 14: 14, 16: d, 17: E, 18: 17, 19: 18, 20: b, 23: l }, { 6: I, 7: g, 10: 23, 11: w }, e(_, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: b, 23: l }), e(_, [2, 19]), e(_, [2, 21], { 15: 30, 24: G }), e(_, [2, 22]), e(_, [2, 23]), e(N, [2, 25]), e(N, [2, 26]), e(N, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: I, 7: g, 10: 34, 11: w }, { 1: [2, 7], 6: p$1, 12: 21, 13: s, 14: 14, 16: d, 17: E, 18: 17, 19: 18, 20: b, 23: l }, e(V, [2, 14], { 7: m, 11: A }), e(L, [2, 8]), e(L, [2, 9]), e(L, [2, 10]), e(_, [2, 16], { 15: 37, 24: G }), e(_, [2, 17]), e(_, [2, 18]), e(_, [2, 20], { 24: H }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(V, [2, 13], { 7: m, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(_, [2, 15], { 24: H }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])],
76
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
77
+ parseError: /* @__PURE__ */ p(function(i, n) {
78
+ if (n.recoverable)
79
+ this.trace(i);
80
+ else {
81
+ var r = new Error(i);
82
+ throw r.hash = n, r;
83
+ }
84
+ }, "parseError"),
85
+ parse: /* @__PURE__ */ p(function(i) {
86
+ var n = this, r = [0], a = [], h = [null], t = [], M = this.table, c = "", W = 0, se = 0, ue = 2, re = 1, ge = t.slice.call(arguments, 1), y = Object.create(this.lexer), R = { yy: {} };
87
+ for (var J in this.yy)
88
+ Object.prototype.hasOwnProperty.call(this.yy, J) && (R.yy[J] = this.yy[J]);
89
+ y.setInput(i, R.yy), R.yy.lexer = y, R.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
90
+ var q = y.yylloc;
91
+ t.push(q);
92
+ var de = y.options && y.options.ranges;
93
+ typeof R.yy.parseError == "function" ? this.parseError = R.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
94
+ function pe(S) {
95
+ r.length = r.length - 2 * S, h.length = h.length - S, t.length = t.length - S;
96
+ }
97
+ p(pe, "popStack");
98
+ function ae() {
99
+ var S;
100
+ return S = a.pop() || y.lex() || re, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = n.symbols_[S] || S), S;
101
+ }
102
+ p(ae, "lex");
103
+ for (var k, P, x, Q, F = {}, z, C, oe, X; ; ) {
104
+ if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((k === null || typeof k > "u") && (k = ae()), x = M[P] && M[P][k]), typeof x > "u" || !x.length || !x[0]) {
105
+ var Z = "";
106
+ X = [];
107
+ for (z in M[P])
108
+ this.terminals_[z] && z > ue && X.push("'" + this.terminals_[z] + "'");
109
+ y.showPosition ? Z = "Parse error on line " + (W + 1) + `:
110
+ ` + y.showPosition() + `
111
+ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (W + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
112
+ text: y.match,
113
+ token: this.terminals_[k] || k,
114
+ line: y.yylineno,
115
+ loc: q,
116
+ expected: X
117
+ });
118
+ }
119
+ if (x[0] instanceof Array && x.length > 1)
120
+ throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + k);
121
+ switch (x[0]) {
122
+ case 1:
123
+ r.push(k), h.push(y.yytext), t.push(y.yylloc), r.push(x[1]), k = null, se = y.yyleng, c = y.yytext, W = y.yylineno, q = y.yylloc;
124
+ break;
125
+ case 2:
126
+ if (C = this.productions_[x[1]][1], F.$ = h[h.length - C], F._$ = {
127
+ first_line: t[t.length - (C || 1)].first_line,
128
+ last_line: t[t.length - 1].last_line,
129
+ first_column: t[t.length - (C || 1)].first_column,
130
+ last_column: t[t.length - 1].last_column
131
+ }, de && (F._$.range = [
132
+ t[t.length - (C || 1)].range[0],
133
+ t[t.length - 1].range[1]
134
+ ]), Q = this.performAction.apply(F, [
135
+ c,
136
+ se,
137
+ W,
138
+ R.yy,
139
+ x[1],
140
+ h,
141
+ t
142
+ ].concat(ge)), typeof Q < "u")
143
+ return Q;
144
+ C && (r = r.slice(0, -1 * C * 2), h = h.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), h.push(F.$), t.push(F._$), oe = M[r[r.length - 2]][r[r.length - 1]], r.push(oe);
145
+ break;
146
+ case 3:
147
+ return true;
148
+ }
149
+ }
150
+ return true;
151
+ }, "parse")
152
+ }, K = /* @__PURE__ */ function() {
153
+ var O = {
154
+ EOF: 1,
155
+ parseError: /* @__PURE__ */ p(function(n, r) {
156
+ if (this.yy.parser)
157
+ this.yy.parser.parseError(n, r);
158
+ else
159
+ throw new Error(n);
160
+ }, "parseError"),
161
+ // resets the lexer, sets new input
162
+ setInput: /* @__PURE__ */ p(function(i, n) {
163
+ return this.yy = n || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
164
+ first_line: 1,
165
+ first_column: 0,
166
+ last_line: 1,
167
+ last_column: 0
168
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
169
+ }, "setInput"),
170
+ // consumes and returns one char from the input
171
+ input: /* @__PURE__ */ p(function() {
172
+ var i = this._input[0];
173
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
174
+ var n = i.match(/(?:\r\n?|\n).*/g);
175
+ 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), i;
176
+ }, "input"),
177
+ // unshifts one char (or a string) into the input
178
+ unput: /* @__PURE__ */ p(function(i) {
179
+ var n = i.length, r = i.split(/(?:\r\n?|\n)/g);
180
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
181
+ var a = this.match.split(/(?:\r\n?|\n)/g);
182
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
183
+ var h = this.yylloc.range;
184
+ return this.yylloc = {
185
+ first_line: this.yylloc.first_line,
186
+ last_line: this.yylineno + 1,
187
+ first_column: this.yylloc.first_column,
188
+ last_column: r ? (r.length === a.length ? this.yylloc.first_column : 0) + a[a.length - r.length].length - r[0].length : this.yylloc.first_column - n
189
+ }, this.options.ranges && (this.yylloc.range = [h[0], h[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
190
+ }, "unput"),
191
+ // When called from action, caches matched text and appends it on next action
192
+ more: /* @__PURE__ */ p(function() {
193
+ return this._more = true, this;
194
+ }, "more"),
195
+ // 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.
196
+ reject: /* @__PURE__ */ p(function() {
197
+ if (this.options.backtrack_lexer)
198
+ this._backtrack = true;
199
+ else
200
+ 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).
201
+ ` + this.showPosition(), {
202
+ text: "",
203
+ token: null,
204
+ line: this.yylineno
205
+ });
206
+ return this;
207
+ }, "reject"),
208
+ // retain first n characters of the match
209
+ less: /* @__PURE__ */ p(function(i) {
210
+ this.unput(this.match.slice(i));
211
+ }, "less"),
212
+ // displays already matched input, i.e. for error messages
213
+ pastInput: /* @__PURE__ */ p(function() {
214
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
215
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
216
+ }, "pastInput"),
217
+ // displays upcoming input, i.e. for error messages
218
+ upcomingInput: /* @__PURE__ */ p(function() {
219
+ var i = this.match;
220
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
221
+ }, "upcomingInput"),
222
+ // displays the character position where the lexing error occurred, i.e. for error messages
223
+ showPosition: /* @__PURE__ */ p(function() {
224
+ var i = this.pastInput(), n = new Array(i.length + 1).join("-");
225
+ return i + this.upcomingInput() + `
226
+ ` + n + "^";
227
+ }, "showPosition"),
228
+ // test the lexed token: return FALSE when not a match, otherwise return token
229
+ test_match: /* @__PURE__ */ p(function(i, n) {
230
+ var r, a, h;
231
+ if (this.options.backtrack_lexer && (h = {
232
+ yylineno: this.yylineno,
233
+ yylloc: {
234
+ first_line: this.yylloc.first_line,
235
+ last_line: this.last_line,
236
+ first_column: this.yylloc.first_column,
237
+ last_column: this.yylloc.last_column
238
+ },
239
+ yytext: this.yytext,
240
+ match: this.match,
241
+ matches: this.matches,
242
+ matched: this.matched,
243
+ yyleng: this.yyleng,
244
+ offset: this.offset,
245
+ _more: this._more,
246
+ _input: this._input,
247
+ yy: this.yy,
248
+ conditionStack: this.conditionStack.slice(0),
249
+ done: this.done
250
+ }, this.options.ranges && (h.yylloc.range = this.yylloc.range.slice(0))), a = i[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
251
+ first_line: this.yylloc.last_line,
252
+ last_line: this.yylineno + 1,
253
+ first_column: this.yylloc.last_column,
254
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
255
+ }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(i[0].length), this.matched += i[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), r)
256
+ return r;
257
+ if (this._backtrack) {
258
+ for (var t in h)
259
+ this[t] = h[t];
260
+ return false;
261
+ }
262
+ return false;
263
+ }, "test_match"),
264
+ // return next match in input
265
+ next: /* @__PURE__ */ p(function() {
266
+ if (this.done)
267
+ return this.EOF;
268
+ this._input || (this.done = true);
269
+ var i, n, r, a;
270
+ this._more || (this.yytext = "", this.match = "");
271
+ for (var h = this._currentRules(), t = 0; t < h.length; t++)
272
+ if (r = this._input.match(this.rules[h[t]]), r && (!n || r[0].length > n[0].length)) {
273
+ if (n = r, a = t, this.options.backtrack_lexer) {
274
+ if (i = this.test_match(r, h[t]), i !== false)
275
+ return i;
276
+ if (this._backtrack) {
277
+ n = false;
278
+ continue;
279
+ } else
280
+ return false;
281
+ } else if (!this.options.flex)
282
+ break;
283
+ }
284
+ return n ? (i = this.test_match(n, h[a]), i !== false ? i : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
285
+ ` + this.showPosition(), {
286
+ text: "",
287
+ token: null,
288
+ line: this.yylineno
289
+ });
290
+ }, "next"),
291
+ // return next match that has a token
292
+ lex: /* @__PURE__ */ p(function() {
293
+ var n = this.next();
294
+ return n || this.lex();
295
+ }, "lex"),
296
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
297
+ begin: /* @__PURE__ */ p(function(n) {
298
+ this.conditionStack.push(n);
299
+ }, "begin"),
300
+ // pop the previously active lexer condition state off the condition stack
301
+ popState: /* @__PURE__ */ p(function() {
302
+ var n = this.conditionStack.length - 1;
303
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
304
+ }, "popState"),
305
+ // produce the lexer rule set which is active for the currently active lexer condition state
306
+ _currentRules: /* @__PURE__ */ p(function() {
307
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
308
+ }, "_currentRules"),
309
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
310
+ topState: /* @__PURE__ */ p(function(n) {
311
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
312
+ }, "topState"),
313
+ // alias for begin(condition)
314
+ pushState: /* @__PURE__ */ p(function(n) {
315
+ this.begin(n);
316
+ }, "pushState"),
317
+ // return the number of states currently on the stack
318
+ stateStackSize: /* @__PURE__ */ p(function() {
319
+ return this.conditionStack.length;
320
+ }, "stateStackSize"),
321
+ options: { "case-insensitive": true },
322
+ performAction: /* @__PURE__ */ p(function(n, r, a, h) {
323
+ switch (a) {
324
+ case 0:
325
+ return this.pushState("shapeData"), r.yytext = "", 24;
326
+ case 1:
327
+ return this.pushState("shapeDataStr"), 24;
328
+ case 2:
329
+ return this.popState(), 24;
330
+ case 3:
331
+ const t = /\n\s*/g;
332
+ return r.yytext = r.yytext.replace(t, "<br/>"), 24;
333
+ case 4:
334
+ return 24;
335
+ case 5:
336
+ this.popState();
337
+ break;
338
+ case 6:
339
+ return n.getLogger().trace("Found comment", r.yytext), 6;
340
+ case 7:
341
+ return 8;
342
+ case 8:
343
+ this.begin("CLASS");
344
+ break;
345
+ case 9:
346
+ return this.popState(), 17;
347
+ case 10:
348
+ this.popState();
349
+ break;
350
+ case 11:
351
+ n.getLogger().trace("Begin icon"), this.begin("ICON");
352
+ break;
353
+ case 12:
354
+ return n.getLogger().trace("SPACELINE"), 6;
355
+ case 13:
356
+ return 7;
357
+ case 14:
358
+ return 16;
359
+ case 15:
360
+ n.getLogger().trace("end icon"), this.popState();
361
+ break;
362
+ case 16:
363
+ return n.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
364
+ case 17:
365
+ return n.getLogger().trace("Cloud"), this.begin("NODE"), 20;
366
+ case 18:
367
+ return n.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
368
+ case 19:
369
+ return n.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
370
+ case 20:
371
+ return this.begin("NODE"), 20;
372
+ case 21:
373
+ return this.begin("NODE"), 20;
374
+ case 22:
375
+ return this.begin("NODE"), 20;
376
+ case 23:
377
+ return this.begin("NODE"), 20;
378
+ case 24:
379
+ return 13;
380
+ case 25:
381
+ return 23;
382
+ case 26:
383
+ return 11;
384
+ case 27:
385
+ this.begin("NSTR2");
386
+ break;
387
+ case 28:
388
+ return "NODE_DESCR";
389
+ case 29:
390
+ this.popState();
391
+ break;
392
+ case 30:
393
+ n.getLogger().trace("Starting NSTR"), this.begin("NSTR");
394
+ break;
395
+ case 31:
396
+ return n.getLogger().trace("description:", r.yytext), "NODE_DESCR";
397
+ case 32:
398
+ this.popState();
399
+ break;
400
+ case 33:
401
+ return this.popState(), n.getLogger().trace("node end ))"), "NODE_DEND";
402
+ case 34:
403
+ return this.popState(), n.getLogger().trace("node end )"), "NODE_DEND";
404
+ case 35:
405
+ return this.popState(), n.getLogger().trace("node end ...", r.yytext), "NODE_DEND";
406
+ case 36:
407
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
408
+ case 37:
409
+ return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
410
+ case 38:
411
+ return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
412
+ case 39:
413
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
414
+ case 40:
415
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
416
+ case 41:
417
+ return n.getLogger().trace("Long description:", r.yytext), 21;
418
+ case 42:
419
+ return n.getLogger().trace("Long description:", r.yytext), 21;
420
+ }
421
+ }, "anonymous"),
422
+ rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\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],
423
+ conditions: { shapeDataEndBracket: { rules: [], inclusive: false }, shapeDataStr: { rules: [2, 3], inclusive: false }, shapeData: { rules: [1, 4, 5], inclusive: false }, CLASS: { rules: [9, 10], inclusive: false }, ICON: { rules: [14, 15], inclusive: false }, NSTR2: { rules: [28, 29], inclusive: false }, NSTR: { rules: [31, 32], inclusive: false }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: false }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: true } }
424
+ };
425
+ return O;
426
+ }();
427
+ T.lexer = K;
428
+ function B() {
429
+ this.yy = {};
430
+ }
431
+ return p(B, "Parser"), B.prototype = T, T.Parser = B, new B();
432
+ }();
433
+ $.parser = $;
434
+ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ p(() => {
435
+ v = [], ne = [], ee = 0, ie = {};
436
+ }, "clear"), De = /* @__PURE__ */ p((e) => {
437
+ if (v.length === 0)
438
+ return null;
439
+ const u = v[0].level;
440
+ let p = null;
441
+ for (let s = v.length - 1; s >= 0; s--)
442
+ if (v[s].level === u && !p && (p = v[s]), v[s].level < u)
443
+ throw new Error('Items without section detected, found section ("' + v[s].label + '")');
444
+ return e === p?.level ? null : p;
445
+ }, "getSection"), he = /* @__PURE__ */ p(function() {
446
+ return ne;
447
+ }, "getSections"), Le = /* @__PURE__ */ p(function() {
448
+ const e = [], u = [], p = he(), s = ut();
449
+ for (const d of p) {
450
+ const E = {
451
+ id: d.id,
452
+ label: ee$1(d.label ?? "", s),
453
+ isGroup: true,
454
+ ticket: d.ticket,
455
+ shape: "kanbanSection",
456
+ level: d.level,
457
+ look: s.look
458
+ };
459
+ u.push(E);
460
+ const b = v.filter((l) => l.parentId === d.id);
461
+ for (const l of b) {
462
+ const D = {
463
+ id: l.id,
464
+ parentId: d.id,
465
+ label: ee$1(l.label ?? "", s),
466
+ isGroup: false,
467
+ ticket: l?.ticket,
468
+ priority: l?.priority,
469
+ assigned: l?.assigned,
470
+ icon: l?.icon,
471
+ shape: "kanbanItem",
472
+ level: l.level,
473
+ rx: 5,
474
+ ry: 5,
475
+ cssStyles: ["text-align: left"]
476
+ };
477
+ u.push(D);
478
+ }
479
+ }
480
+ return { nodes: u, edges: e, other: {}, config: ut() };
481
+ }, "getData"), Oe = /* @__PURE__ */ p((e, u, p, s, d) => {
482
+ const E = ut();
483
+ let b = E.mindmap?.padding ?? Eh.mindmap.padding;
484
+ switch (s) {
485
+ case f.ROUNDED_RECT:
486
+ case f.RECT:
487
+ case f.HEXAGON:
488
+ b *= 2;
489
+ }
490
+ const l = {
491
+ id: ee$1(u, E) || "kbn" + ee++,
492
+ level: e,
493
+ label: ee$1(p, E),
494
+ width: E.mindmap?.maxNodeWidth ?? Eh.mindmap.maxNodeWidth,
495
+ padding: b,
496
+ isGroup: false
497
+ };
498
+ if (d !== void 0) {
499
+ let I;
500
+ d.includes(`
501
+ `) ? I = d + `
502
+ ` : I = `{
503
+ ` + d + `
504
+ }`;
505
+ const g = rC(I, { schema: eC });
506
+ if (g.shape && (g.shape !== g.shape.toLowerCase() || g.shape.includes("_")))
507
+ throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);
508
+ g?.shape && g.shape === "kanbanItem" && (l.shape = g?.shape), g?.label && (l.label = g?.label), g?.icon && (l.icon = g?.icon.toString()), g?.assigned && (l.assigned = g?.assigned.toString()), g?.ticket && (l.ticket = g?.ticket.toString()), g?.priority && (l.priority = g?.priority);
509
+ }
510
+ const D = De(e);
511
+ D ? l.parentId = D.id || "kbn" + ee++ : ne.push(l), v.push(l);
512
+ }, "addNode"), f = {
513
+ DEFAULT: 0,
514
+ NO_BORDER: 0,
515
+ ROUNDED_RECT: 1,
516
+ RECT: 2,
517
+ CIRCLE: 3,
518
+ CLOUD: 4,
519
+ BANG: 5,
520
+ HEXAGON: 6
521
+ }, Ie = /* @__PURE__ */ p((e, u) => {
522
+ switch (F.debug("In get type", e, u), e) {
523
+ case "[":
524
+ return f.RECT;
525
+ case "(":
526
+ return u === ")" ? f.ROUNDED_RECT : f.CLOUD;
527
+ case "((":
528
+ return f.CIRCLE;
529
+ case ")":
530
+ return f.CLOUD;
531
+ case "))":
532
+ return f.BANG;
533
+ case "{{":
534
+ return f.HEXAGON;
535
+ default:
536
+ return f.DEFAULT;
537
+ }
538
+ }, "getType"), Ce = /* @__PURE__ */ p((e, u) => {
539
+ ie[e] = u;
540
+ }, "setElementForId"), we = /* @__PURE__ */ p((e) => {
541
+ if (!e)
542
+ return;
543
+ const u = ut(), p = v[v.length - 1];
544
+ e.icon && (p.icon = ee$1(e.icon, u)), e.class && (p.cssClasses = ee$1(e.class, u));
545
+ }, "decorateNode"), Ae = /* @__PURE__ */ p((e) => {
546
+ switch (e) {
547
+ case f.DEFAULT:
548
+ return "no-border";
549
+ case f.RECT:
550
+ return "rect";
551
+ case f.ROUNDED_RECT:
552
+ return "rounded-rect";
553
+ case f.CIRCLE:
554
+ return "circle";
555
+ case f.CLOUD:
556
+ return "cloud";
557
+ case f.BANG:
558
+ return "bang";
559
+ case f.HEXAGON:
560
+ return "hexgon";
561
+ // cspell: disable-line
562
+ default:
563
+ return "no-border";
564
+ }
565
+ }, "type2Str"), Te = /* @__PURE__ */ p(() => F, "getLogger"), Re = /* @__PURE__ */ p((e) => ie[e], "getElementById"), Pe = {
566
+ clear: ve,
567
+ addNode: Oe,
568
+ getSections: he,
569
+ getData: Le,
570
+ nodeType: f,
571
+ getType: Ie,
572
+ setElementForId: Ce,
573
+ decorateNode: we,
574
+ type2Str: Ae,
575
+ getLogger: Te,
576
+ getElementById: Re
577
+ }, Ve = Pe, Be = /* @__PURE__ */ p(async (e, u, p, s) => {
578
+ F.debug(`Rendering kanban diagram
579
+ ` + e);
580
+ const E = s.db.getData(), b = ut();
581
+ b.htmlLabels = false;
582
+ const l = V1(u), D = l.append("g");
583
+ D.attr("class", "sections");
584
+ const I = l.append("g");
585
+ I.attr("class", "items");
586
+ const g = E.nodes.filter(
587
+ // TODO: TypeScript 5.5 will infer this predicate automatically
588
+ (m) => m.isGroup
589
+ );
590
+ let w = 0;
591
+ const _ = 10, G = [];
592
+ let N = 25;
593
+ for (const m of g) {
594
+ const A = b?.kanban?.sectionWidth || 200;
595
+ w = w + 1, m.x = A * w + (w - 1) * _ / 2, m.width = A, m.y = 0, m.height = A * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + w;
596
+ const L = await $v(D, m);
597
+ N = Math.max(N, L?.labelBBox?.height), G.push(L);
598
+ }
599
+ let V = 0;
600
+ for (const m of g) {
601
+ const A = G[V];
602
+ V = V + 1;
603
+ const L = b?.kanban?.sectionWidth || 200, H = -L * 3 / 2 + N;
604
+ let T = H;
605
+ const K = E.nodes.filter((i) => i.parentId === m.id);
606
+ for (const i of K) {
607
+ if (i.isGroup)
608
+ throw new Error("Groups within groups are not allowed in Kanban diagrams");
609
+ i.x = m.x, i.width = L - 1.5 * _;
610
+ const r = (await Wg(I, i, { config: b })).node().getBBox();
611
+ i.y = T + r.height / 2, await iA(i), T = i.y + r.height / 2 + _ / 2;
612
+ }
613
+ const B = A.cluster.select("rect"), O = Math.max(T - H + 3 * _, 50) + (N - 25);
614
+ B.attr("height", O);
615
+ }
616
+ ny(
617
+ void 0,
618
+ l,
619
+ b.mindmap?.padding ?? Eh.kanban.padding,
620
+ b.mindmap?.useMaxWidth ?? Eh.kanban.useMaxWidth
621
+ );
622
+ }, "draw"), Fe = {
623
+ draw: Be
624
+ }, je = /* @__PURE__ */ p((e) => {
625
+ let u = "";
626
+ for (let s = 0; s < e.THEME_COLOR_LIMIT; s++)
627
+ e["lineColor" + s] = e["lineColor" + s] || e["cScaleInv" + s], Ui(e["lineColor" + s]) ? e["lineColor" + s] = q(e["lineColor" + s], 20) : e["lineColor" + s] = J(e["lineColor" + s], 20);
628
+ const p$1 = /* @__PURE__ */ p((s, d) => e.darkMode ? J(s, d) : q(s, d), "adjuster");
629
+ for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) {
630
+ const d = "" + (17 - 3 * s);
631
+ u += `
632
+ .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
633
+ fill: ${p$1(e["cScale" + s], 10)};
634
+ stroke: ${p$1(e["cScale" + s], 10)};
635
+
636
+ }
637
+ .section-${s - 1} text {
638
+ fill: ${e["cScaleLabel" + s]};
639
+ }
640
+ .node-icon-${s - 1} {
641
+ font-size: 40px;
642
+ color: ${e["cScaleLabel" + s]};
643
+ }
644
+ .section-edge-${s - 1}{
645
+ stroke: ${e["cScale" + s]};
646
+ }
647
+ .edge-depth-${s - 1}{
648
+ stroke-width: ${d};
649
+ }
650
+ .section-${s - 1} line {
651
+ stroke: ${e["cScaleInv" + s]} ;
652
+ stroke-width: 3;
653
+ }
654
+
655
+ .disabled, .disabled circle, .disabled text {
656
+ fill: lightgray;
657
+ }
658
+ .disabled text {
659
+ fill: #efefef;
660
+ }
661
+
662
+ .node rect,
663
+ .node circle,
664
+ .node ellipse,
665
+ .node polygon,
666
+ .node path {
667
+ fill: ${e.background};
668
+ stroke: ${e.nodeBorder};
669
+ stroke-width: 1px;
670
+ }
671
+
672
+ .kanban-ticket-link {
673
+ fill: ${e.background};
674
+ stroke: ${e.nodeBorder};
675
+ text-decoration: underline;
676
+ }
677
+ `;
678
+ }
679
+ return u;
680
+ }, "genSections"), Ge = /* @__PURE__ */ p((e) => `
681
+ .edge {
682
+ stroke-width: 3;
683
+ }
684
+ ${je(e)}
685
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
686
+ fill: ${e.git0};
687
+ }
688
+ .section-root text {
689
+ fill: ${e.gitBranchLabel0};
690
+ }
691
+ .icon-container {
692
+ height:100%;
693
+ display: flex;
694
+ justify-content: center;
695
+ align-items: center;
696
+ }
697
+ .edge {
698
+ fill: none;
699
+ }
700
+ .cluster-label, .label {
701
+ color: ${e.textColor};
702
+ fill: ${e.textColor};
703
+ }
704
+ .kanban-label {
705
+ dy: 1em;
706
+ alignment-baseline: middle;
707
+ text-anchor: middle;
708
+ dominant-baseline: middle;
709
+ text-align: center;
710
+ }
711
+ ${l()}
712
+ `, "getStyles"), He = Ge, We = {
713
+ db: Ve,
714
+ renderer: Fe,
715
+ parser: xe,
716
+ styles: He
717
+ };
718
+
719
+ export { We as diagram };
720
+ //# sourceMappingURL=kanban-definition-6OIFK2YF-DXUNU6e4.YiYgNKI6.js.map