sparkdesign 0.4.1 → 0.4.3

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 (452) hide show
  1. package/README.md +112 -204
  2. package/{cli/dist → dist}/commands/add.js +11 -2
  3. package/package.json +19 -126
  4. package/{cli/registry → registry}/chat/markdown.tsx +1 -1
  5. package/{cli/registry → registry}/chat/tool-invocation-card.tsx +5 -5
  6. package/registry/meta.json +750 -0
  7. package/cli/registry/meta.json +0 -1
  8. package/dist/_basePickBy-DnQN8w3y.js +0 -151
  9. package/dist/_basePickBy-a-kPMlkg.cjs +0 -1
  10. package/dist/_baseUniq-B-N2NQ50.js +0 -614
  11. package/dist/_baseUniq-Cc_zbSif.cjs +0 -1
  12. package/dist/arc-BQBhijZ6.js +0 -83
  13. package/dist/arc-mWQt0Yph.cjs +0 -1
  14. package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +0 -36
  15. package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +0 -4661
  16. package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +0 -2256
  17. package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +0 -122
  18. package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +0 -10
  19. package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +0 -1580
  20. package/dist/channel-BQn0o8bs.js +0 -5
  21. package/dist/channel-DaN7XniJ.cjs +0 -1
  22. package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +0 -1
  23. package/dist/chunk-4BX2VUAB-Czitj3Kc.js +0 -8
  24. package/dist/chunk-55IACEB6-DXacNZbO.js +0 -8
  25. package/dist/chunk-55IACEB6-DnDxpye9.cjs +0 -1
  26. package/dist/chunk-B4BG7PRW-CBdN0q_V.js +0 -1375
  27. package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +0 -165
  28. package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +0 -220
  29. package/dist/chunk-DI55MBZ5-NCQTvayw.js +0 -1370
  30. package/dist/chunk-FMBD7UC4-CsGMbrtr.js +0 -19
  31. package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +0 -15
  32. package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +0 -1
  33. package/dist/chunk-QN33PNHL-3GERZBRm.js +0 -19
  34. package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +0 -15
  35. package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +0 -1
  36. package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +0 -1
  37. package/dist/chunk-TZMSLE5B-sbiflal0.js +0 -64
  38. package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +0 -1
  39. package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +0 -16
  40. package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +0 -1
  41. package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +0 -16
  42. package/dist/clone-Cde_NQ8V.js +0 -8
  43. package/dist/clone-DCNjWuM2.cjs +0 -1
  44. package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +0 -1
  45. package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +0 -2608
  46. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  47. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  48. package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +0 -444
  49. package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +0 -4
  50. package/dist/defaultLocale-BgPVtth8.js +0 -171
  51. package/dist/defaultLocale-C4wbwF1n.cjs +0 -1
  52. package/dist/diagram-PSM6KHXK-D2bdb7MT.js +0 -531
  53. package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +0 -24
  54. package/dist/diagram-QEK2KX5R-BpUSoh0-.js +0 -217
  55. package/dist/diagram-QEK2KX5R-DZPGteon.cjs +0 -43
  56. package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +0 -24
  57. package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +0 -142
  58. package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +0 -841
  59. package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +0 -60
  60. package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +0 -162
  61. package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +0 -1620
  62. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  63. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  64. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  65. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  66. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  67. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  68. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  69. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  70. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  71. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  72. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  73. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  74. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  75. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  76. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  77. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  78. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  79. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  80. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  81. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  82. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  83. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  84. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  85. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  86. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  87. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  88. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  89. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  90. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  91. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  92. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  93. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  94. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  95. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  96. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  97. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  98. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  99. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  100. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  101. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  102. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  103. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  104. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  105. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  106. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  107. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  108. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  109. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  110. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  111. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  112. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  113. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  114. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  115. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  116. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  117. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  118. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  119. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  120. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  121. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  122. package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +0 -267
  123. package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +0 -2670
  124. package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +0 -699
  125. package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +0 -65
  126. package/dist/graph-DIbblrZP.cjs +0 -1
  127. package/dist/graph-DPcK91G3.js +0 -247
  128. package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +0 -2
  129. package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +0 -24
  130. package/dist/init-CHZsXQcr.cjs +0 -1
  131. package/dist/init-DjUOC4st.js +0 -16
  132. package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +0 -834
  133. package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +0 -139
  134. package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +0 -89
  135. package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +0 -719
  136. package/dist/katex.css +0 -1
  137. package/dist/layout-Byuh8f-J.cjs +0 -1
  138. package/dist/layout-CdLdvj1j.js +0 -1335
  139. package/dist/linear-C2Q_PI9B.js +0 -259
  140. package/dist/linear-C69aPBW1.cjs +0 -1
  141. package/dist/mermaid.core-DBwAx_jp.cjs +0 -249
  142. package/dist/mermaid.core-gFR0XUlD.js +0 -15300
  143. package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +0 -68
  144. package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +0 -784
  145. package/dist/ordinal-B6-f3MAq.js +0 -61
  146. package/dist/ordinal-CagbB1m8.cjs +0 -1
  147. package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +0 -161
  148. package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +0 -30
  149. package/dist/qoder-design.css +0 -2
  150. package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +0 -7
  151. package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +0 -1022
  152. package/dist/registry/basic/alert-dialog.d.ts +0 -40
  153. package/dist/registry/basic/avatar.d.ts +0 -30
  154. package/dist/registry/basic/button.d.ts +0 -16
  155. package/dist/registry/basic/collapse.d.ts +0 -22
  156. package/dist/registry/basic/collapsible-card.d.ts +0 -34
  157. package/dist/registry/basic/collapsible.d.ts +0 -15
  158. package/dist/registry/basic/dropdown-menu.d.ts +0 -52
  159. package/dist/registry/basic/icon-button.d.ts +0 -12
  160. package/dist/registry/basic/icons-inline.d.ts +0 -51
  161. package/dist/registry/basic/kbd.d.ts +0 -23
  162. package/dist/registry/basic/option-list.d.ts +0 -16
  163. package/dist/registry/basic/pagination.d.ts +0 -33
  164. package/dist/registry/basic/progress.d.ts +0 -18
  165. package/dist/registry/basic/radio-group.d.ts +0 -25
  166. package/dist/registry/basic/resizable.d.ts +0 -318
  167. package/dist/registry/basic/scrollbar.d.ts +0 -12
  168. package/dist/registry/basic/select.d.ts +0 -35
  169. package/dist/registry/basic/shimmering-text.d.ts +0 -27
  170. package/dist/registry/basic/sidebar-menu.d.ts +0 -23
  171. package/dist/registry/basic/skeleton.d.ts +0 -10
  172. package/dist/registry/basic/slider.d.ts +0 -16
  173. package/dist/registry/basic/sonner.d.ts +0 -23
  174. package/dist/registry/basic/spinner.d.ts +0 -5
  175. package/dist/registry/basic/switch.d.ts +0 -20
  176. package/dist/registry/basic/table.d.ts +0 -18
  177. package/dist/registry/basic/tabs.d.ts +0 -29
  178. package/dist/registry/basic/tag.d.ts +0 -23
  179. package/dist/registry/basic/theme-from-document.d.ts +0 -10
  180. package/dist/registry/basic/toggle.d.ts +0 -29
  181. package/dist/registry/basic/tooltip.d.ts +0 -34
  182. package/dist/registry/basic/typography.d.ts +0 -76
  183. package/dist/registry/chat/ask-user-part.d.ts +0 -24
  184. package/dist/registry/chat/browser-action-part.d.ts +0 -28
  185. package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +0 -22
  186. package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +0 -12
  187. package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +0 -9
  188. package/dist/registry/chat/chat-input/compound.d.ts +0 -97
  189. package/dist/registry/chat/chat-input/context.d.ts +0 -64
  190. package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +0 -11
  191. package/dist/registry/chat/chat-input/index.d.ts +0 -34
  192. package/dist/registry/chat/chat-input/types.d.ts +0 -79
  193. package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +0 -7
  194. package/dist/registry/chat/code-block-part.d.ts +0 -23
  195. package/dist/registry/chat/file-attachment.d.ts +0 -19
  196. package/dist/registry/chat/file-card.d.ts +0 -10
  197. package/dist/registry/chat/file-review-part.d.ts +0 -30
  198. package/dist/registry/chat/folder-button.d.ts +0 -20
  199. package/dist/registry/chat/generated-images-grid.d.ts +0 -15
  200. package/dist/registry/chat/generation-status-bar.d.ts +0 -19
  201. package/dist/registry/chat/hint-banner.d.ts +0 -28
  202. package/dist/registry/chat/image-attachment.d.ts +0 -19
  203. package/dist/registry/chat/image-generating.d.ts +0 -15
  204. package/dist/registry/chat/markdown.d.ts +0 -8
  205. package/dist/registry/chat/mermaid-part.d.ts +0 -17
  206. package/dist/registry/chat/permission-card.d.ts +0 -24
  207. package/dist/registry/chat/plan-part.d.ts +0 -30
  208. package/dist/registry/chat/queue-indicator.d.ts +0 -27
  209. package/dist/registry/chat/reasoning-step/compound.d.ts +0 -17
  210. package/dist/registry/chat/reasoning-step/context.d.ts +0 -10
  211. package/dist/registry/chat/reasoning-step/index.d.ts +0 -14
  212. package/dist/registry/chat/reasoning-step/types.d.ts +0 -95
  213. package/dist/registry/chat/related-prompts.d.ts +0 -23
  214. package/dist/registry/chat/response/compound.d.ts +0 -25
  215. package/dist/registry/chat/response/context.d.ts +0 -9
  216. package/dist/registry/chat/response/index.d.ts +0 -15
  217. package/dist/registry/chat/response/types.d.ts +0 -99
  218. package/dist/registry/chat/send-button.d.ts +0 -17
  219. package/dist/registry/chat/streaming-markdown-block.d.ts +0 -8
  220. package/dist/registry/chat/task-part.d.ts +0 -28
  221. package/dist/registry/chat/terminal-code-block-part.d.ts +0 -18
  222. package/dist/registry/chat/thinking-indicator.d.ts +0 -14
  223. package/dist/registry/chat/tool-invocation-card.d.ts +0 -20
  224. package/dist/registry/chat/user-message.d.ts +0 -6
  225. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -30
  226. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -18
  227. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -20
  228. package/dist/registry/chat/user-question/compound.d.ts +0 -37
  229. package/dist/registry/chat/user-question/context.d.ts +0 -55
  230. package/dist/registry/chat/user-question/index.d.ts +0 -15
  231. package/dist/registry/chat/user-question/types.d.ts +0 -52
  232. package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +0 -17
  233. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
  234. package/dist/registry/chat/user-question-answer.d.ts +0 -13
  235. package/dist/registry/lib/file-icon-maps.d.ts +0 -20
  236. package/dist/registry/lib/use-mermaid-render.d.ts +0 -5
  237. package/dist/registry/lib/utils.d.ts +0 -11
  238. package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +0 -850
  239. package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +0 -64
  240. package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +0 -810
  241. package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +0 -10
  242. package/dist/scale/computed.css +0 -103
  243. package/dist/scale/config.css +0 -110
  244. package/dist/scale/index.css +0 -30
  245. package/dist/scale/presets/compact.css +0 -30
  246. package/dist/scale/presets/dense.css +0 -64
  247. package/dist/scale/presets/sharp.css +0 -40
  248. package/dist/scale/presets/soft.css +0 -16
  249. package/dist/scale.css +0 -13
  250. package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +0 -145
  251. package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +0 -2511
  252. package/dist/spark-design.cjs.js +0 -265
  253. package/dist/spark-design.es.js +0 -13425
  254. package/dist/src/components/basic/AlertDialog/index.d.ts +0 -20
  255. package/dist/src/components/basic/Avatar/index.d.ts +0 -7
  256. package/dist/src/components/basic/Button/index.d.ts +0 -7
  257. package/dist/src/components/basic/Collapse/index.d.ts +0 -15
  258. package/dist/src/components/basic/Collapsible/index.d.ts +0 -7
  259. package/dist/src/components/basic/CollapsibleCard/index.d.ts +0 -7
  260. package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
  261. package/dist/src/components/basic/DropdownMenu/index.d.ts +0 -19
  262. package/dist/src/components/basic/EllipsisText/index.d.ts +0 -53
  263. package/dist/src/components/basic/IconButton/index.d.ts +0 -7
  264. package/dist/src/components/basic/Kbd/index.d.ts +0 -7
  265. package/dist/src/components/basic/OptionList/index.d.ts +0 -7
  266. package/dist/src/components/basic/Pagination/index.d.ts +0 -7
  267. package/dist/src/components/basic/Progress/index.d.ts +0 -7
  268. package/dist/src/components/basic/RadioGroup/index.d.ts +0 -7
  269. package/dist/src/components/basic/Resizable/index.d.ts +0 -7
  270. package/dist/src/components/basic/Scrollbar/index.d.ts +0 -7
  271. package/dist/src/components/basic/Select/index.d.ts +0 -17
  272. package/dist/src/components/basic/ShimmeringText/index.d.ts +0 -7
  273. package/dist/src/components/basic/SidebarMenu/index.d.ts +0 -4
  274. package/dist/src/components/basic/Skeleton/index.d.ts +0 -7
  275. package/dist/src/components/basic/Slider/index.d.ts +0 -7
  276. package/dist/src/components/basic/Spinner/index.d.ts +0 -7
  277. package/dist/src/components/basic/Switch/index.d.ts +0 -38
  278. package/dist/src/components/basic/Table/index.d.ts +0 -7
  279. package/dist/src/components/basic/Tabs/index.d.ts +0 -7
  280. package/dist/src/components/basic/Tag/index.d.ts +0 -10
  281. package/dist/src/components/basic/Toast/index.d.ts +0 -12
  282. package/dist/src/components/basic/Toggle/index.d.ts +0 -7
  283. package/dist/src/components/basic/Tooltip/index.d.ts +0 -21
  284. package/dist/src/components/basic/Typography/index.d.ts +0 -7
  285. package/dist/src/components/chat/AskUserPart/index.d.ts +0 -6
  286. package/dist/src/components/chat/BrowserActionPart/index.d.ts +0 -7
  287. package/dist/src/components/chat/ChatInput/index.d.ts +0 -29
  288. package/dist/src/components/chat/CodeBlockPart/index.d.ts +0 -7
  289. package/dist/src/components/chat/FileAttachment/index.d.ts +0 -3
  290. package/dist/src/components/chat/FileCard/index.d.ts +0 -3
  291. package/dist/src/components/chat/FileReviewPart/index.d.ts +0 -7
  292. package/dist/src/components/chat/FolderButton/index.d.ts +0 -5
  293. package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +0 -7
  294. package/dist/src/components/chat/GenerationStatusBar/index.d.ts +0 -7
  295. package/dist/src/components/chat/HintBanner/index.d.ts +0 -6
  296. package/dist/src/components/chat/ImageAttachment/index.d.ts +0 -3
  297. package/dist/src/components/chat/ImageGenerating/index.d.ts +0 -6
  298. package/dist/src/components/chat/Markdown/demo-content.d.ts +0 -1
  299. package/dist/src/components/chat/Markdown/index.d.ts +0 -7
  300. package/dist/src/components/chat/MermaidPart/index.d.ts +0 -6
  301. package/dist/src/components/chat/PermissionCard/index.d.ts +0 -4
  302. package/dist/src/components/chat/PlanPart/index.d.ts +0 -6
  303. package/dist/src/components/chat/QueueIndicator/index.d.ts +0 -4
  304. package/dist/src/components/chat/ReasoningStep/index.d.ts +0 -13
  305. package/dist/src/components/chat/RelatedPrompts/index.d.ts +0 -6
  306. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -6
  307. package/dist/src/components/chat/Response/index.d.ts +0 -16
  308. package/dist/src/components/chat/SendButton/index.d.ts +0 -5
  309. package/dist/src/components/chat/TaskPart/index.d.ts +0 -7
  310. package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +0 -6
  311. package/dist/src/components/chat/ThinkingIndicator/index.d.ts +0 -6
  312. package/dist/src/components/chat/ToolInvocationCard/index.d.ts +0 -4
  313. package/dist/src/components/chat/UserMessage/index.d.ts +0 -7
  314. package/dist/src/components/chat/UserQuestion/index.d.ts +0 -19
  315. package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +0 -3
  316. package/dist/src/components/index.d.ts +0 -138
  317. package/dist/src/icons/context.d.ts +0 -26
  318. package/dist/src/icons/types.d.ts +0 -18
  319. package/dist/src/lib/ThemeStyleContext.d.ts +0 -21
  320. package/dist/src/lib/file-icon.d.ts +0 -16
  321. package/dist/src/lib/i18n.d.ts +0 -12
  322. package/dist/src/lib/index.d.ts +0 -10
  323. package/dist/src/lib/motion.d.ts +0 -22
  324. package/dist/src/lib/utils.d.ts +0 -11
  325. package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +0 -1
  326. package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +0 -263
  327. package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +0 -16
  328. package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +0 -1
  329. package/dist/theme-base.css +0 -270
  330. package/dist/theme.css +0 -17
  331. package/dist/themes/dark-parchment.css +0 -133
  332. package/dist/themes/dark-qoder.css +0 -133
  333. package/dist/themes/light-parchment.css +0 -124
  334. package/dist/themes/light-qoder.css +0 -132
  335. package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +0 -61
  336. package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +0 -795
  337. package/dist/tokens/index.css +0 -35
  338. package/dist/treemap-GDKQZRPO-B9sfERx8.js +0 -17922
  339. package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +0 -160
  340. package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +0 -1340
  341. package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +0 -7
  342. /package/{cli/dist → dist}/commands/diff.js +0 -0
  343. /package/{cli/dist → dist}/commands/init.js +0 -0
  344. /package/{cli/dist → dist}/commands/list.js +0 -0
  345. /package/{cli/dist → dist}/index.js +0 -0
  346. /package/{cli/dist → dist}/utils/config.js +0 -0
  347. /package/{cli/dist → dist}/utils/registry.js +0 -0
  348. /package/{cli/dist → dist}/utils/tokens.js +0 -0
  349. /package/{cli/dist → dist}/utils/transform.js +0 -0
  350. /package/{cli/registry → registry}/__tests__/basic/button.test.tsx +0 -0
  351. /package/{cli/registry → registry}/__tests__/chat/markdown.test.tsx +0 -0
  352. /package/{cli/registry → registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
  353. /package/{cli/registry → registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
  354. /package/{cli/registry → registry}/basic/alert-dialog.tsx +0 -0
  355. /package/{cli/registry → registry}/basic/avatar.tsx +0 -0
  356. /package/{cli/registry → registry}/basic/button.tsx +0 -0
  357. /package/{cli/registry → registry}/basic/collapse.tsx +0 -0
  358. /package/{cli/registry → registry}/basic/collapsible-card.tsx +0 -0
  359. /package/{cli/registry → registry}/basic/collapsible.tsx +0 -0
  360. /package/{cli/registry → registry}/basic/dropdown-menu.tsx +0 -0
  361. /package/{cli/registry → registry}/basic/icon-button.tsx +0 -0
  362. /package/{cli/registry → registry}/basic/icons-inline.tsx +0 -0
  363. /package/{cli/registry → registry}/basic/kbd.tsx +0 -0
  364. /package/{cli/registry → registry}/basic/option-list.tsx +0 -0
  365. /package/{cli/registry → registry}/basic/pagination.tsx +0 -0
  366. /package/{cli/registry → registry}/basic/progress.tsx +0 -0
  367. /package/{cli/registry → registry}/basic/radio-group.tsx +0 -0
  368. /package/{cli/registry → registry}/basic/resizable.tsx +0 -0
  369. /package/{cli/registry → registry}/basic/scrollbar.tsx +0 -0
  370. /package/{cli/registry → registry}/basic/select.tsx +0 -0
  371. /package/{cli/registry → registry}/basic/shimmering-text.tsx +0 -0
  372. /package/{cli/registry → registry}/basic/sidebar-menu.tsx +0 -0
  373. /package/{cli/registry → registry}/basic/skeleton.tsx +0 -0
  374. /package/{cli/registry → registry}/basic/slider.tsx +0 -0
  375. /package/{cli/registry → registry}/basic/sonner.tsx +0 -0
  376. /package/{cli/registry → registry}/basic/spinner.tsx +0 -0
  377. /package/{cli/registry → registry}/basic/switch.tsx +0 -0
  378. /package/{cli/registry → registry}/basic/table.tsx +0 -0
  379. /package/{cli/registry → registry}/basic/tabs.tsx +0 -0
  380. /package/{cli/registry → registry}/basic/tag.tsx +0 -0
  381. /package/{cli/registry → registry}/basic/theme-from-document.ts +0 -0
  382. /package/{cli/registry → registry}/basic/toggle.tsx +0 -0
  383. /package/{cli/registry → registry}/basic/tooltip.tsx +0 -0
  384. /package/{cli/registry → registry}/basic/typography.tsx +0 -0
  385. /package/{cli/registry → registry}/chat/ask-user-part.tsx +0 -0
  386. /package/{cli/registry → registry}/chat/browser-action-part.tsx +0 -0
  387. /package/{cli/registry → registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
  388. /package/{cli/registry → registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
  389. /package/{cli/registry → registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
  390. /package/{cli/registry → registry}/chat/chat-input/compound.tsx +0 -0
  391. /package/{cli/registry → registry}/chat/chat-input/context.tsx +0 -0
  392. /package/{cli/registry → registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
  393. /package/{cli/registry → registry}/chat/chat-input/index.tsx +0 -0
  394. /package/{cli/registry → registry}/chat/chat-input/types.ts +0 -0
  395. /package/{cli/registry → registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
  396. /package/{cli/registry → registry}/chat/code-block-part.tsx +0 -0
  397. /package/{cli/registry → registry}/chat/file-attachment.tsx +0 -0
  398. /package/{cli/registry → registry}/chat/file-card.tsx +0 -0
  399. /package/{cli/registry → registry}/chat/file-review-part.tsx +0 -0
  400. /package/{cli/registry → registry}/chat/folder-button.tsx +0 -0
  401. /package/{cli/registry → registry}/chat/generated-images-grid.tsx +0 -0
  402. /package/{cli/registry → registry}/chat/generation-status-bar.tsx +0 -0
  403. /package/{cli/registry → registry}/chat/hint-banner.tsx +0 -0
  404. /package/{cli/registry → registry}/chat/image-attachment.tsx +0 -0
  405. /package/{cli/registry → registry}/chat/image-generating.tsx +0 -0
  406. /package/{cli/registry → registry}/chat/mermaid-part.tsx +0 -0
  407. /package/{cli/registry → registry}/chat/permission-card.tsx +0 -0
  408. /package/{cli/registry → registry}/chat/plan-part.tsx +0 -0
  409. /package/{cli/registry → registry}/chat/queue-indicator.tsx +0 -0
  410. /package/{cli/registry → registry}/chat/reasoning-step/compound.tsx +0 -0
  411. /package/{cli/registry → registry}/chat/reasoning-step/context.tsx +0 -0
  412. /package/{cli/registry → registry}/chat/reasoning-step/index.tsx +0 -0
  413. /package/{cli/registry → registry}/chat/reasoning-step/types.ts +0 -0
  414. /package/{cli/registry → registry}/chat/related-prompts.tsx +0 -0
  415. /package/{cli/registry → registry}/chat/response/compound.tsx +0 -0
  416. /package/{cli/registry → registry}/chat/response/context.tsx +0 -0
  417. /package/{cli/registry → registry}/chat/response/index.tsx +0 -0
  418. /package/{cli/registry → registry}/chat/response/types.ts +0 -0
  419. /package/{cli/registry → registry}/chat/send-button.tsx +0 -0
  420. /package/{cli/registry → registry}/chat/streaming-markdown-block.tsx +0 -0
  421. /package/{cli/registry → registry}/chat/task-part.tsx +0 -0
  422. /package/{cli/registry → registry}/chat/terminal-code-block-part.tsx +0 -0
  423. /package/{cli/registry → registry}/chat/thinking-indicator.tsx +0 -0
  424. /package/{cli/registry → registry}/chat/user-message.tsx +0 -0
  425. /package/{cli/registry → registry}/chat/user-question/UserQuestionCard.tsx +0 -0
  426. /package/{cli/registry → registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
  427. /package/{cli/registry → registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
  428. /package/{cli/registry → registry}/chat/user-question/compound.tsx +0 -0
  429. /package/{cli/registry → registry}/chat/user-question/context.tsx +0 -0
  430. /package/{cli/registry → registry}/chat/user-question/index.tsx +0 -0
  431. /package/{cli/registry → registry}/chat/user-question/types.ts +0 -0
  432. /package/{cli/registry → registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
  433. /package/{cli/registry → registry}/chat/user-question/useUserQuestionState.ts +0 -0
  434. /package/{cli/registry → registry}/chat/user-question-answer.tsx +0 -0
  435. /package/{cli/registry → registry}/lib/file-icon-maps.ts +0 -0
  436. /package/{cli/registry → registry}/lib/use-mermaid-render.ts +0 -0
  437. /package/{cli/registry → registry}/lib/utils.ts +0 -0
  438. /package/{cli/registry → registry}/tokens/index.css +0 -0
  439. /package/{cli/registry → registry}/tokens/scale/computed.css +0 -0
  440. /package/{cli/registry → registry}/tokens/scale/config.css +0 -0
  441. /package/{cli/registry → registry}/tokens/scale/index.css +0 -0
  442. /package/{cli/registry → registry}/tokens/scale/presets/compact.css +0 -0
  443. /package/{cli/registry → registry}/tokens/scale/presets/dense.css +0 -0
  444. /package/{cli/registry → registry}/tokens/scale/presets/sharp.css +0 -0
  445. /package/{cli/registry → registry}/tokens/scale/presets/soft.css +0 -0
  446. /package/{cli/registry → registry}/tokens/scale.css +0 -0
  447. /package/{cli/registry → registry}/tokens/scrollbar-utility.css +0 -0
  448. /package/{cli/registry → registry}/tokens/theme.css +0 -0
  449. /package/{cli/registry → registry}/tokens/themes/dark-parchment.css +0 -0
  450. /package/{cli/registry → registry}/tokens/themes/dark-qoder.css +0 -0
  451. /package/{cli/registry → registry}/tokens/themes/light-parchment.css +0 -0
  452. /package/{cli/registry → registry}/tokens/themes/light-qoder.css +0 -0
@@ -1,784 +0,0 @@
1
- import { g as le } from "./chunk-55IACEB6-DXacNZbO.js";
2
- import { s as he } from "./chunk-QN33PNHL-3GERZBRm.js";
3
- import { _ as l, l as I, o as de, r as ge, E as B, c as W, i as V, aH as ue, W as pe, X as fe, Y as ye } from "./mermaid.core-gFR0XUlD.js";
4
- const E = [];
5
- for (let t = 0; t < 256; ++t)
6
- E.push((t + 256).toString(16).slice(1));
7
- function me(t, e = 0) {
8
- return (E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]]).toLowerCase();
9
- }
10
- let z;
11
- const Ee = new Uint8Array(16);
12
- function _e() {
13
- if (!z) {
14
- if (typeof crypto > "u" || !crypto.getRandomValues)
15
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16
- z = crypto.getRandomValues.bind(crypto);
17
- }
18
- return z(Ee);
19
- }
20
- const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
21
- function Se(t, e, n) {
22
- if (ne.randomUUID && !t)
23
- return ne.randomUUID();
24
- t = t || {};
25
- const c = t.random ?? t.rng?.() ?? _e();
26
- if (c.length < 16)
27
- throw new Error("Random bytes length must be >= 16");
28
- return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
29
- }
30
- var X = (function() {
31
- var t = /* @__PURE__ */ l(function(x, s, i, o) {
32
- for (i = i || {}, o = x.length; o--; i[x[o]] = s) ;
33
- return i;
34
- }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], Y = [1, 24], q = [1, 25], b = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], R = [1, 6, 7, 11, 13, 15, 16, 19, 22], F = {
35
- trace: /* @__PURE__ */ l(function() {
36
- }, "trace"),
37
- yy: {},
38
- 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 },
39
- 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" },
40
- 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]],
41
- performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, w) {
42
- var d = r.length - 1;
43
- switch (g) {
44
- case 6:
45
- case 7:
46
- return a;
47
- case 8:
48
- a.getLogger().trace("Stop NL ");
49
- break;
50
- case 9:
51
- a.getLogger().trace("Stop EOF ");
52
- break;
53
- case 11:
54
- a.getLogger().trace("Stop NL2 ");
55
- break;
56
- case 12:
57
- a.getLogger().trace("Stop EOF2 ");
58
- break;
59
- case 15:
60
- a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
61
- break;
62
- case 16:
63
- a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
64
- break;
65
- case 17:
66
- case 21:
67
- a.decorateNode({ class: r[d] });
68
- break;
69
- case 18:
70
- a.getLogger().trace("SPACELIST");
71
- break;
72
- case 19:
73
- a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
74
- break;
75
- case 20:
76
- a.decorateNode({ icon: r[d] });
77
- break;
78
- case 25:
79
- a.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
80
- break;
81
- case 26:
82
- this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
83
- break;
84
- case 27:
85
- a.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
86
- break;
87
- }
88
- }, "anonymous"),
89
- 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: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(u, [2, 3]), { 1: [2, 2] }, t(u, [2, 4]), t(u, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: Y, 10: 23, 11: q }, t(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), t(b, [2, 18]), t(b, [2, 19]), t(b, [2, 20]), t(b, [2, 21]), t(b, [2, 23]), t(b, [2, 24]), t(b, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: Y, 10: 32, 11: q }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(J, [2, 14], { 7: K, 11: Q }), t(R, [2, 8]), t(R, [2, 9]), t(R, [2, 10]), t(b, [2, 15]), t(b, [2, 16]), t(b, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(R, [2, 11]), t(R, [2, 12]), { 21: [1, 37] }, t(b, [2, 25]), t(b, [2, 27])],
90
- defaultActions: { 2: [2, 1], 6: [2, 2] },
91
- parseError: /* @__PURE__ */ l(function(s, i) {
92
- if (i.recoverable)
93
- this.trace(s);
94
- else {
95
- var o = new Error(s);
96
- throw o.hash = i, o;
97
- }
98
- }, "parseError"),
99
- parse: /* @__PURE__ */ l(function(s) {
100
- var i = this, o = [0], a = [], g = [null], r = [], w = this.table, d = "", U = 0, Z = 0, re = 2, ee = 1, oe = r.slice.call(arguments, 1), y = Object.create(this.lexer), v = { yy: {} };
101
- for (var j in this.yy)
102
- Object.prototype.hasOwnProperty.call(this.yy, j) && (v.yy[j] = this.yy[j]);
103
- y.setInput(s, v.yy), v.yy.lexer = y, v.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
104
- var G = y.yylloc;
105
- r.push(G);
106
- var ae = y.options && y.options.ranges;
107
- typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
108
- function ce(S) {
109
- o.length = o.length - 2 * S, g.length = g.length - S, r.length = r.length - S;
110
- }
111
- l(ce, "popStack");
112
- function te() {
113
- var S;
114
- return S = a.pop() || y.lex() || ee, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = i.symbols_[S] || S), S;
115
- }
116
- l(te, "lex");
117
- for (var _, T, D, H, O = {}, P, k, ie, M; ; ) {
118
- if (T = o[o.length - 1], this.defaultActions[T] ? D = this.defaultActions[T] : ((_ === null || typeof _ > "u") && (_ = te()), D = w[T] && w[T][_]), typeof D > "u" || !D.length || !D[0]) {
119
- var $ = "";
120
- M = [];
121
- for (P in w[T])
122
- this.terminals_[P] && P > re && M.push("'" + this.terminals_[P] + "'");
123
- y.showPosition ? $ = "Parse error on line " + (U + 1) + `:
124
- ` + y.showPosition() + `
125
- Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "Parse error on line " + (U + 1) + ": Unexpected " + (_ == ee ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError($, {
126
- text: y.match,
127
- token: this.terminals_[_] || _,
128
- line: y.yylineno,
129
- loc: G,
130
- expected: M
131
- });
132
- }
133
- if (D[0] instanceof Array && D.length > 1)
134
- throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
135
- switch (D[0]) {
136
- case 1:
137
- o.push(_), g.push(y.yytext), r.push(y.yylloc), o.push(D[1]), _ = null, Z = y.yyleng, d = y.yytext, U = y.yylineno, G = y.yylloc;
138
- break;
139
- case 2:
140
- if (k = this.productions_[D[1]][1], O.$ = g[g.length - k], O._$ = {
141
- first_line: r[r.length - (k || 1)].first_line,
142
- last_line: r[r.length - 1].last_line,
143
- first_column: r[r.length - (k || 1)].first_column,
144
- last_column: r[r.length - 1].last_column
145
- }, ae && (O._$.range = [
146
- r[r.length - (k || 1)].range[0],
147
- r[r.length - 1].range[1]
148
- ]), H = this.performAction.apply(O, [
149
- d,
150
- Z,
151
- U,
152
- v.yy,
153
- D[1],
154
- g,
155
- r
156
- ].concat(oe)), typeof H < "u")
157
- return H;
158
- k && (o = o.slice(0, -1 * k * 2), g = g.slice(0, -1 * k), r = r.slice(0, -1 * k)), o.push(this.productions_[D[1]][0]), g.push(O.$), r.push(O._$), ie = w[o[o.length - 2]][o[o.length - 1]], o.push(ie);
159
- break;
160
- case 3:
161
- return !0;
162
- }
163
- }
164
- return !0;
165
- }, "parse")
166
- }, se = /* @__PURE__ */ (function() {
167
- var x = {
168
- EOF: 1,
169
- parseError: /* @__PURE__ */ l(function(i, o) {
170
- if (this.yy.parser)
171
- this.yy.parser.parseError(i, o);
172
- else
173
- throw new Error(i);
174
- }, "parseError"),
175
- // resets the lexer, sets new input
176
- setInput: /* @__PURE__ */ l(function(s, i) {
177
- return this.yy = i || 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 = {
178
- first_line: 1,
179
- first_column: 0,
180
- last_line: 1,
181
- last_column: 0
182
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
183
- }, "setInput"),
184
- // consumes and returns one char from the input
185
- input: /* @__PURE__ */ l(function() {
186
- var s = this._input[0];
187
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
188
- var i = s.match(/(?:\r\n?|\n).*/g);
189
- return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
190
- }, "input"),
191
- // unshifts one char (or a string) into the input
192
- unput: /* @__PURE__ */ l(function(s) {
193
- var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
194
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
195
- var a = this.match.split(/(?:\r\n?|\n)/g);
196
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
197
- var g = this.yylloc.range;
198
- return this.yylloc = {
199
- first_line: this.yylloc.first_line,
200
- last_line: this.yylineno + 1,
201
- first_column: this.yylloc.first_column,
202
- last_column: o ? (o.length === a.length ? this.yylloc.first_column : 0) + a[a.length - o.length].length - o[0].length : this.yylloc.first_column - i
203
- }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
204
- }, "unput"),
205
- // When called from action, caches matched text and appends it on next action
206
- more: /* @__PURE__ */ l(function() {
207
- return this._more = !0, this;
208
- }, "more"),
209
- // 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.
210
- reject: /* @__PURE__ */ l(function() {
211
- if (this.options.backtrack_lexer)
212
- this._backtrack = !0;
213
- else
214
- 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).
215
- ` + this.showPosition(), {
216
- text: "",
217
- token: null,
218
- line: this.yylineno
219
- });
220
- return this;
221
- }, "reject"),
222
- // retain first n characters of the match
223
- less: /* @__PURE__ */ l(function(s) {
224
- this.unput(this.match.slice(s));
225
- }, "less"),
226
- // displays already matched input, i.e. for error messages
227
- pastInput: /* @__PURE__ */ l(function() {
228
- var s = this.matched.substr(0, this.matched.length - this.match.length);
229
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
230
- }, "pastInput"),
231
- // displays upcoming input, i.e. for error messages
232
- upcomingInput: /* @__PURE__ */ l(function() {
233
- var s = this.match;
234
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
235
- }, "upcomingInput"),
236
- // displays the character position where the lexing error occurred, i.e. for error messages
237
- showPosition: /* @__PURE__ */ l(function() {
238
- var s = this.pastInput(), i = new Array(s.length + 1).join("-");
239
- return s + this.upcomingInput() + `
240
- ` + i + "^";
241
- }, "showPosition"),
242
- // test the lexed token: return FALSE when not a match, otherwise return token
243
- test_match: /* @__PURE__ */ l(function(s, i) {
244
- var o, a, g;
245
- if (this.options.backtrack_lexer && (g = {
246
- yylineno: this.yylineno,
247
- yylloc: {
248
- first_line: this.yylloc.first_line,
249
- last_line: this.last_line,
250
- first_column: this.yylloc.first_column,
251
- last_column: this.yylloc.last_column
252
- },
253
- yytext: this.yytext,
254
- match: this.match,
255
- matches: this.matches,
256
- matched: this.matched,
257
- yyleng: this.yyleng,
258
- offset: this.offset,
259
- _more: this._more,
260
- _input: this._input,
261
- yy: this.yy,
262
- conditionStack: this.conditionStack.slice(0),
263
- done: this.done
264
- }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
265
- first_line: this.yylloc.last_line,
266
- last_line: this.yylineno + 1,
267
- first_column: this.yylloc.last_column,
268
- last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
269
- }, 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], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
270
- return o;
271
- if (this._backtrack) {
272
- for (var r in g)
273
- this[r] = g[r];
274
- return !1;
275
- }
276
- return !1;
277
- }, "test_match"),
278
- // return next match in input
279
- next: /* @__PURE__ */ l(function() {
280
- if (this.done)
281
- return this.EOF;
282
- this._input || (this.done = !0);
283
- var s, i, o, a;
284
- this._more || (this.yytext = "", this.match = "");
285
- for (var g = this._currentRules(), r = 0; r < g.length; r++)
286
- if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
287
- if (i = o, a = r, this.options.backtrack_lexer) {
288
- if (s = this.test_match(o, g[r]), s !== !1)
289
- return s;
290
- if (this._backtrack) {
291
- i = !1;
292
- continue;
293
- } else
294
- return !1;
295
- } else if (!this.options.flex)
296
- break;
297
- }
298
- return i ? (s = this.test_match(i, g[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
299
- ` + this.showPosition(), {
300
- text: "",
301
- token: null,
302
- line: this.yylineno
303
- });
304
- }, "next"),
305
- // return next match that has a token
306
- lex: /* @__PURE__ */ l(function() {
307
- var i = this.next();
308
- return i || this.lex();
309
- }, "lex"),
310
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
311
- begin: /* @__PURE__ */ l(function(i) {
312
- this.conditionStack.push(i);
313
- }, "begin"),
314
- // pop the previously active lexer condition state off the condition stack
315
- popState: /* @__PURE__ */ l(function() {
316
- var i = this.conditionStack.length - 1;
317
- return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
318
- }, "popState"),
319
- // produce the lexer rule set which is active for the currently active lexer condition state
320
- _currentRules: /* @__PURE__ */ l(function() {
321
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
322
- }, "_currentRules"),
323
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
324
- topState: /* @__PURE__ */ l(function(i) {
325
- return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
326
- }, "topState"),
327
- // alias for begin(condition)
328
- pushState: /* @__PURE__ */ l(function(i) {
329
- this.begin(i);
330
- }, "pushState"),
331
- // return the number of states currently on the stack
332
- stateStackSize: /* @__PURE__ */ l(function() {
333
- return this.conditionStack.length;
334
- }, "stateStackSize"),
335
- options: { "case-insensitive": !0 },
336
- performAction: /* @__PURE__ */ l(function(i, o, a, g) {
337
- switch (a) {
338
- case 0:
339
- return i.getLogger().trace("Found comment", o.yytext), 6;
340
- case 1:
341
- return 8;
342
- case 2:
343
- this.begin("CLASS");
344
- break;
345
- case 3:
346
- return this.popState(), 16;
347
- case 4:
348
- this.popState();
349
- break;
350
- case 5:
351
- i.getLogger().trace("Begin icon"), this.begin("ICON");
352
- break;
353
- case 6:
354
- return i.getLogger().trace("SPACELINE"), 6;
355
- case 7:
356
- return 7;
357
- case 8:
358
- return 15;
359
- case 9:
360
- i.getLogger().trace("end icon"), this.popState();
361
- break;
362
- case 10:
363
- return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
364
- case 11:
365
- return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
366
- case 12:
367
- return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
368
- case 13:
369
- return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
370
- case 14:
371
- return this.begin("NODE"), 19;
372
- case 15:
373
- return this.begin("NODE"), 19;
374
- case 16:
375
- return this.begin("NODE"), 19;
376
- case 17:
377
- return this.begin("NODE"), 19;
378
- case 18:
379
- return 13;
380
- case 19:
381
- return 22;
382
- case 20:
383
- return 11;
384
- case 21:
385
- this.begin("NSTR2");
386
- break;
387
- case 22:
388
- return "NODE_DESCR";
389
- case 23:
390
- this.popState();
391
- break;
392
- case 24:
393
- i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
394
- break;
395
- case 25:
396
- return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
397
- case 26:
398
- this.popState();
399
- break;
400
- case 27:
401
- return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
402
- case 28:
403
- return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
404
- case 29:
405
- return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
406
- case 30:
407
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
408
- case 31:
409
- return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
410
- case 32:
411
- return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
412
- case 33:
413
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
414
- case 34:
415
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
416
- case 35:
417
- return i.getLogger().trace("Long description:", o.yytext), 20;
418
- case 36:
419
- return i.getLogger().trace("Long description:", o.yytext), 20;
420
- }
421
- }, "anonymous"),
422
- 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],
423
- 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 } }
424
- };
425
- return x;
426
- })();
427
- F.lexer = se;
428
- function A() {
429
- this.yy = {};
430
- }
431
- return l(A, "Parser"), A.prototype = F, F.Parser = A, new A();
432
- })();
433
- X.parser = X;
434
- var De = X, L = {
435
- DEFAULT: 0,
436
- NO_BORDER: 0,
437
- ROUNDED_RECT: 1,
438
- RECT: 2,
439
- CIRCLE: 3,
440
- CLOUD: 4,
441
- BANG: 5,
442
- HEXAGON: 6
443
- }, C, Ne = (C = class {
444
- constructor() {
445
- this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = L, 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);
446
- }
447
- clear() {
448
- this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
449
- }
450
- getParent(e) {
451
- for (let n = this.nodes.length - 1; n >= 0; n--)
452
- if (this.nodes[n].level < e)
453
- return this.nodes[n];
454
- return null;
455
- }
456
- getMindmap() {
457
- return this.nodes.length > 0 ? this.nodes[0] : null;
458
- }
459
- addNode(e, n, c, f) {
460
- I.info("addNode", e, n, c, f);
461
- let h = !1;
462
- this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
463
- const p = W();
464
- let m = p.mindmap?.padding ?? B.mindmap.padding;
465
- switch (f) {
466
- case this.nodeType.ROUNDED_RECT:
467
- case this.nodeType.RECT:
468
- case this.nodeType.HEXAGON:
469
- m *= 2;
470
- break;
471
- }
472
- const u = {
473
- id: this.count++,
474
- nodeId: V(n, p),
475
- level: e,
476
- descr: V(c, p),
477
- type: f,
478
- children: [],
479
- width: p.mindmap?.maxNodeWidth ?? B.mindmap.maxNodeWidth,
480
- padding: m,
481
- isRoot: h
482
- }, N = this.getParent(e);
483
- if (N)
484
- N.children.push(u), this.nodes.push(u);
485
- else if (h)
486
- this.nodes.push(u);
487
- else
488
- throw new Error(
489
- `There can be only one root. No parent could be found for ("${u.descr}")`
490
- );
491
- }
492
- getType(e, n) {
493
- switch (I.debug("In get type", e, n), e) {
494
- case "[":
495
- return this.nodeType.RECT;
496
- case "(":
497
- return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
498
- case "((":
499
- return this.nodeType.CIRCLE;
500
- case ")":
501
- return this.nodeType.CLOUD;
502
- case "))":
503
- return this.nodeType.BANG;
504
- case "{{":
505
- return this.nodeType.HEXAGON;
506
- default:
507
- return this.nodeType.DEFAULT;
508
- }
509
- }
510
- setElementForId(e, n) {
511
- this.elements[e] = n;
512
- }
513
- getElementById(e) {
514
- return this.elements[e];
515
- }
516
- decorateNode(e) {
517
- if (!e)
518
- return;
519
- const n = W(), c = this.nodes[this.nodes.length - 1];
520
- e.icon && (c.icon = V(e.icon, n)), e.class && (c.class = V(e.class, n));
521
- }
522
- type2Str(e) {
523
- switch (e) {
524
- case this.nodeType.DEFAULT:
525
- return "no-border";
526
- case this.nodeType.RECT:
527
- return "rect";
528
- case this.nodeType.ROUNDED_RECT:
529
- return "rounded-rect";
530
- case this.nodeType.CIRCLE:
531
- return "circle";
532
- case this.nodeType.CLOUD:
533
- return "cloud";
534
- case this.nodeType.BANG:
535
- return "bang";
536
- case this.nodeType.HEXAGON:
537
- return "hexgon";
538
- // cspell: disable-line
539
- default:
540
- return "no-border";
541
- }
542
- }
543
- /**
544
- * Assign section numbers to nodes based on their position relative to root
545
- * @param node - The mindmap node to process
546
- * @param sectionNumber - The section number to assign (undefined for root)
547
- */
548
- assignSections(e, n) {
549
- if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
550
- for (const [c, f] of e.children.entries()) {
551
- const h = e.level === 0 ? c : n;
552
- this.assignSections(f, h);
553
- }
554
- }
555
- /**
556
- * Convert mindmap tree structure to flat array of nodes
557
- * @param node - The mindmap node to process
558
- * @param processedNodes - Array to collect processed nodes
559
- */
560
- flattenNodes(e, n) {
561
- const c = ["mindmap-node"];
562
- e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
563
- const f = c.join(" "), h = /* @__PURE__ */ l((m) => {
564
- switch (m) {
565
- case L.CIRCLE:
566
- return "mindmapCircle";
567
- case L.RECT:
568
- return "rect";
569
- case L.ROUNDED_RECT:
570
- return "rounded";
571
- case L.CLOUD:
572
- return "cloud";
573
- case L.BANG:
574
- return "bang";
575
- case L.HEXAGON:
576
- return "hexagon";
577
- case L.DEFAULT:
578
- return "defaultMindmapNode";
579
- case L.NO_BORDER:
580
- default:
581
- return "rect";
582
- }
583
- }, "getShapeFromType"), p = {
584
- id: e.id.toString(),
585
- domId: "node_" + e.id.toString(),
586
- label: e.descr,
587
- isGroup: !1,
588
- shape: h(e.type),
589
- width: e.width,
590
- height: e.height ?? 0,
591
- padding: e.padding,
592
- cssClasses: f,
593
- cssStyles: [],
594
- look: "default",
595
- icon: e.icon,
596
- x: e.x,
597
- y: e.y,
598
- // Mindmap-specific properties
599
- level: e.level,
600
- nodeId: e.nodeId,
601
- type: e.type,
602
- section: e.section
603
- };
604
- if (n.push(p), e.children)
605
- for (const m of e.children)
606
- this.flattenNodes(m, n);
607
- }
608
- /**
609
- * Generate edges from parent-child relationships in mindmap tree
610
- * @param node - The mindmap node to process
611
- * @param edges - Array to collect edges
612
- */
613
- generateEdges(e, n) {
614
- if (e.children)
615
- for (const c of e.children) {
616
- let f = "edge";
617
- c.section !== void 0 && (f += ` section-edge-${c.section}`);
618
- const h = e.level + 1;
619
- f += ` edge-depth-${h}`;
620
- const p = {
621
- id: `edge_${e.id}_${c.id}`,
622
- start: e.id.toString(),
623
- end: c.id.toString(),
624
- type: "normal",
625
- curve: "basis",
626
- thickness: "normal",
627
- look: "default",
628
- classes: f,
629
- // Store mindmap-specific data
630
- depth: e.level,
631
- section: c.section
632
- };
633
- n.push(p), this.generateEdges(c, n);
634
- }
635
- }
636
- /**
637
- * Get structured data for layout algorithms
638
- * Following the pattern established by ER diagrams
639
- * @returns Structured data containing nodes, edges, and config
640
- */
641
- getData() {
642
- const e = this.getMindmap(), n = W(), f = ue().layout !== void 0, h = n;
643
- if (f || (h.layout = "cose-bilkent"), !e)
644
- return {
645
- nodes: [],
646
- edges: [],
647
- config: h
648
- };
649
- I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
650
- const p = [], m = [];
651
- this.flattenNodes(e, p), this.generateEdges(e, m), I.debug(
652
- `getData: processed ${p.length} nodes and ${m.length} edges`
653
- );
654
- const u = /* @__PURE__ */ new Map();
655
- for (const N of p)
656
- u.set(N.id, {
657
- shape: N.shape,
658
- width: N.width,
659
- height: N.height,
660
- padding: N.padding
661
- });
662
- return {
663
- nodes: p,
664
- edges: m,
665
- config: h,
666
- // Store the root node for mindmap-specific layout algorithms
667
- rootNode: e,
668
- // Properties required by dagre layout algorithm
669
- markers: ["point"],
670
- // Mindmaps don't use markers
671
- direction: "TB",
672
- // Top-to-bottom direction for mindmaps
673
- nodeSpacing: 50,
674
- // Default spacing between nodes
675
- rankSpacing: 50,
676
- // Default spacing between ranks
677
- // Add shapes for ELK compatibility
678
- shapes: Object.fromEntries(u),
679
- // Additional properties that layout algorithms might expect
680
- type: "mindmap",
681
- diagramId: "mindmap-" + Se()
682
- };
683
- }
684
- // Expose logger to grammar
685
- getLogger() {
686
- return I;
687
- }
688
- }, l(C, "MindmapDB"), C), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
689
- I.debug(`Rendering mindmap diagram
690
- ` + t);
691
- const f = c.db, h = f.getData(), p = le(e, h.config.securityLevel);
692
- h.type = c.type, h.layoutAlgorithm = de(h.config.layout, {
693
- fallback: "cose-bilkent"
694
- }), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
695
- u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
696
- }), await ge(h, p), he(
697
- p,
698
- h.config.mindmap?.padding ?? B.mindmap.padding,
699
- "mindmapDiagram",
700
- h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
701
- ));
702
- }, "draw"), Le = {
703
- draw: ke
704
- }, xe = /* @__PURE__ */ l((t) => {
705
- let e = "";
706
- for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
707
- t["lineColor" + n] = t["lineColor" + n] || t["cScaleInv" + n], pe(t["lineColor" + n]) ? t["lineColor" + n] = fe(t["lineColor" + n], 20) : t["lineColor" + n] = ye(t["lineColor" + n], 20);
708
- for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
709
- const c = "" + (17 - 3 * n);
710
- e += `
711
- .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
712
- fill: ${t["cScale" + n]};
713
- }
714
- .section-${n - 1} text {
715
- fill: ${t["cScaleLabel" + n]};
716
- }
717
- .node-icon-${n - 1} {
718
- font-size: 40px;
719
- color: ${t["cScaleLabel" + n]};
720
- }
721
- .section-edge-${n - 1}{
722
- stroke: ${t["cScale" + n]};
723
- }
724
- .edge-depth-${n - 1}{
725
- stroke-width: ${c};
726
- }
727
- .section-${n - 1} line {
728
- stroke: ${t["cScaleInv" + n]} ;
729
- stroke-width: 3;
730
- }
731
-
732
- .disabled, .disabled circle, .disabled text {
733
- fill: lightgray;
734
- }
735
- .disabled text {
736
- fill: #efefef;
737
- }
738
- `;
739
- }
740
- return e;
741
- }, "genSections"), ve = /* @__PURE__ */ l((t) => `
742
- .edge {
743
- stroke-width: 3;
744
- }
745
- ${xe(t)}
746
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
747
- fill: ${t.git0};
748
- }
749
- .section-root text {
750
- fill: ${t.gitBranchLabel0};
751
- }
752
- .section-root span {
753
- color: ${t.gitBranchLabel0};
754
- }
755
- .section-2 span {
756
- color: ${t.gitBranchLabel0};
757
- }
758
- .icon-container {
759
- height:100%;
760
- display: flex;
761
- justify-content: center;
762
- align-items: center;
763
- }
764
- .edge {
765
- fill: none;
766
- }
767
- .mindmap-node-label {
768
- dy: 1em;
769
- alignment-baseline: middle;
770
- text-anchor: middle;
771
- dominant-baseline: middle;
772
- text-align: center;
773
- }
774
- `, "getStyles"), Te = ve, Re = {
775
- get db() {
776
- return new Ne();
777
- },
778
- renderer: Le,
779
- parser: De,
780
- styles: Te
781
- };
782
- export {
783
- Re as diagram
784
- };