@foris/ai-agent 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/dist/abap-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW.js +6 -0
  4. package/dist/ai-agent.es.js +6 -1391
  5. package/dist/ai-agent.umd.js +3364 -103
  6. package/dist/ai-chat-panel/ChatPanel.d.ts +1 -1
  7. package/dist/ai-chat-panel/chatPanel.constants.d.ts +17 -0
  8. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  9. package/dist/angular-html-DPB4Rf0C.js +32 -0
  10. package/dist/angular-ts-CeqPwKaz.js +24 -0
  11. package/dist/apache-BUjz-sD2.js +6 -0
  12. package/dist/apex-oLhhs58q.js +6 -0
  13. package/dist/apl-Bfz1rp5e.js +17 -0
  14. package/dist/applescript-BPx7YFFu.js +6 -0
  15. package/dist/ara-Z2fSOxSw.js +6 -0
  16. package/dist/arc-DN1xn8kz.js +85 -0
  17. package/dist/architectureDiagram-VXUJARFQ-CuFlEJrK.js +4674 -0
  18. package/dist/asciidoc-B-pCoB3G.js +6 -0
  19. package/dist/asm-BTWLY5ym.js +6 -0
  20. package/dist/astro-CFFExE8Q.js +18 -0
  21. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  22. package/dist/awk-Fb0P9dkn.js +6 -0
  23. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  24. package/dist/ballerina-oZK-YekG.js +6 -0
  25. package/dist/bat-0FvbqU9S.js +6 -0
  26. package/dist/beancount-DqJEb89h.js +6 -0
  27. package/dist/berry-DODBq_Ff.js +6 -0
  28. package/dist/bibtex-EULQRLY5.js +6 -0
  29. package/dist/bicep-BorU73w0.js +6 -0
  30. package/dist/blade-DRRSiTQz.js +21 -0
  31. package/dist/blockDiagram-VD42YOAC-Ceho4Zhj.js +2407 -0
  32. package/dist/bsl-NkNNwerW.js +8 -0
  33. package/dist/c-eeMepfLm.js +6 -0
  34. package/dist/c4Diagram-YG6GDRKO-zPB3iQJ7.js +1585 -0
  35. package/dist/cadence-02UX7mW8.js +6 -0
  36. package/dist/cairo-DM6WF2e3.js +8 -0
  37. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  38. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  39. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  40. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  41. package/dist/channel-BC4mWQQF.js +5 -0
  42. package/dist/chunk-4BX2VUAB-BZlHuf6l.js +9 -0
  43. package/dist/chunk-55IACEB6-Dr8rgvy_.js +8 -0
  44. package/dist/chunk-B4BG7PRW-Ccllo2e-.js +1377 -0
  45. package/dist/chunk-DI55MBZ5-DvAROTIr.js +1383 -0
  46. package/dist/chunk-FMBD7UC4-CVr83prI.js +19 -0
  47. package/dist/chunk-QN33PNHL-nSyFq8_s.js +20 -0
  48. package/dist/chunk-QZHKN3VN-Dg8JYP6e.js +15 -0
  49. package/dist/chunk-TZMSLE5B-Bmj6LGNW.js +64 -0
  50. package/dist/clarity-PKm5CwqM.js +6 -0
  51. package/dist/classDiagram-2ON5EDUG-DAkxtl6o.js +22 -0
  52. package/dist/classDiagram-v2-WZHVMYZB-DAkxtl6o.js +22 -0
  53. package/dist/clojure-CXJfHrL3.js +6 -0
  54. package/dist/cmake-BJz8BOTU.js +6 -0
  55. package/dist/cobol-DYTFdEK1.js +12 -0
  56. package/dist/code-block-QI2IAROF-DN-BnDmt.js +9263 -0
  57. package/dist/codeowners-Bt9yU6NX.js +6 -0
  58. package/dist/codeql-DHkodjjI.js +6 -0
  59. package/dist/coffee-DGBR_nr_.js +8 -0
  60. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  61. package/dist/components/ai-elements/artifact.d.ts +23 -0
  62. package/dist/components/ai-elements/canvas.d.ts +7 -0
  63. package/dist/components/ai-elements/chain-of-thought.d.ts +29 -0
  64. package/dist/components/ai-elements/checkpoint.d.ts +11 -0
  65. package/dist/components/ai-elements/code-block.d.ts +17 -0
  66. package/dist/components/ai-elements/confirmation.d.ts +49 -0
  67. package/dist/components/ai-elements/connection.d.ts +2 -0
  68. package/dist/components/ai-elements/context.d.ts +32 -0
  69. package/dist/components/ai-elements/controls.d.ts +4 -0
  70. package/dist/components/ai-elements/conversation.d.ts +15 -0
  71. package/dist/components/ai-elements/edge.d.ts +5 -0
  72. package/dist/components/ai-elements/image.d.ts +6 -0
  73. package/dist/components/ai-elements/inline-citation.d.ts +38 -0
  74. package/dist/components/ai-elements/loader.d.ts +5 -0
  75. package/dist/components/ai-elements/message.d.ts +46 -0
  76. package/dist/components/ai-elements/model-selector.d.ts +35 -0
  77. package/dist/components/ai-elements/node.d.ts +21 -0
  78. package/dist/components/ai-elements/open-in-chat.d.ts +28 -0
  79. package/dist/components/ai-elements/panel.d.ts +5 -0
  80. package/dist/components/ai-elements/plan.d.ts +25 -0
  81. package/dist/components/ai-elements/prompt-input.d.ts +187 -0
  82. package/dist/components/ai-elements/queue.d.ts +61 -0
  83. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  84. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  85. package/dist/components/ai-elements/sources.d.ts +12 -0
  86. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  87. package/dist/components/ai-elements/task.d.ts +14 -0
  88. package/dist/components/ai-elements/tool.d.ts +23 -0
  89. package/dist/components/ai-elements/toolbar.d.ts +5 -0
  90. package/dist/components/ai-elements/web-preview.d.ts +34 -0
  91. package/dist/components/ui/alert.d.ts +9 -0
  92. package/dist/components/ui/badge.d.ts +9 -0
  93. package/dist/components/ui/button-group.d.ts +12 -0
  94. package/dist/components/ui/button.d.ts +10 -0
  95. package/dist/components/ui/card.d.ts +9 -0
  96. package/dist/components/ui/carousel.d.ts +19 -0
  97. package/dist/components/ui/collapsible.d.ts +6 -0
  98. package/dist/components/ui/command.d.ts +18 -0
  99. package/dist/components/ui/dialog.d.ts +15 -0
  100. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  101. package/dist/components/ui/hover-card.d.ts +6 -0
  102. package/dist/components/ui/input-group.d.ts +16 -0
  103. package/dist/components/ui/input.d.ts +3 -0
  104. package/dist/components/ui/progress.d.ts +4 -0
  105. package/dist/components/ui/scroll-area.d.ts +5 -0
  106. package/dist/components/ui/select.d.ts +15 -0
  107. package/dist/components/ui/separator.d.ts +4 -0
  108. package/dist/components/ui/textarea.d.ts +3 -0
  109. package/dist/components/ui/tooltip.d.ts +7 -0
  110. package/dist/coq-B0L9upzn.js +6 -0
  111. package/dist/cose-bilkent-S5V4N54A-DwRYWoaW.js +2612 -0
  112. package/dist/cpp-ZFnOq6fV.js +19 -0
  113. package/dist/crystal-CRJyc4G-.js +18 -0
  114. package/dist/csharp-C7yUs7-w.js +6 -0
  115. package/dist/css-CECN5uSL.js +6 -0
  116. package/dist/csv-CmYOceLb.js +6 -0
  117. package/dist/cue-ZzumE7IT.js +6 -0
  118. package/dist/cypher-jpdmjtA6.js +6 -0
  119. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  120. package/dist/d-CBagWSwH.js +6 -0
  121. package/dist/dagre-6UL2VRFP-imN1Fyg8.js +451 -0
  122. package/dist/dark-plus-pUHDTVV0.js +4 -0
  123. package/dist/dart-6ObCrKr9.js +6 -0
  124. package/dist/dax-CcDT-8dH.js +6 -0
  125. package/dist/defaultLocale-DcQU6Vee.js +177 -0
  126. package/dist/desktop-B93p9R9O.js +6 -0
  127. package/dist/diagram-PSM6KHXK-DAIDeBLn.js +544 -0
  128. package/dist/diagram-QEK2KX5R-DQFy-qK9.js +224 -0
  129. package/dist/diagram-S2PKOQOG-Hlk0Nx_Y.js +146 -0
  130. package/dist/diff-BxzP2J8R.js +6 -0
  131. package/dist/docker-CsHqm9tx.js +6 -0
  132. package/dist/dotenv-BMjVjUL1.js +6 -0
  133. package/dist/dracula-BtZx2Kac.js +4 -0
  134. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  135. package/dist/dream-maker-PAx17jaB.js +6 -0
  136. package/dist/edge-B882-fmN.js +14 -0
  137. package/dist/elixir-DRzNHQCz.js +10 -0
  138. package/dist/elm-DZPAA5Qn.js +9 -0
  139. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  140. package/dist/erDiagram-Q2GNP2WA-C8PZPSaf.js +846 -0
  141. package/dist/erb-DB1DqdBc.js +27 -0
  142. package/dist/erlang-DNcDT8Hi.js +8 -0
  143. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  144. package/dist/everforest-light-BbXl82Em.js +4 -0
  145. package/dist/fennel-N4WcXuKx.js +6 -0
  146. package/dist/fish-BTDEUgqH.js +6 -0
  147. package/dist/flowDiagram-NV44I4VS-CgTiIFnt.js +1631 -0
  148. package/dist/fluent-BMXUxfv1.js +6 -0
  149. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  150. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  151. package/dist/fsharp-CYOiIVNx.js +8 -0
  152. package/dist/ganttDiagram-JELNMOA3-DzYZEAE_.js +2702 -0
  153. package/dist/gdresource-BwtMIoBm.js +10 -0
  154. package/dist/gdscript-BifyeYhI.js +6 -0
  155. package/dist/gdshader-Bk8fF6yr.js +6 -0
  156. package/dist/genie-DzUvd7U9.js +6 -0
  157. package/dist/gherkin-DHRaV0YP.js +6 -0
  158. package/dist/git-commit-Bd32YZ0K.js +8 -0
  159. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  160. package/dist/gitGraphDiagram-NY62KEGX-CPwI-Uag.js +715 -0
  161. package/dist/github-dark-DenFmJkN.js +4 -0
  162. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  163. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  164. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  165. package/dist/github-light-JYsPkUQd.js +4 -0
  166. package/dist/github-light-default-D99KPAby.js +4 -0
  167. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  168. package/dist/gleam-Bv284lvN.js +6 -0
  169. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  170. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  171. package/dist/glsl-CkUcVZNK.js +8 -0
  172. package/dist/gnuplot-yPG9-sE_.js +6 -0
  173. package/dist/go-ChxJuLYK.js +6 -0
  174. package/dist/graph-DB2UxkYH.js +1190 -0
  175. package/dist/graphql-CBu2ehBn.js +14 -0
  176. package/dist/groovy-CJQTphOW.js +6 -0
  177. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  178. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  179. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  180. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  181. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  182. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  183. package/dist/hack-DVWgrvc2.js +12 -0
  184. package/dist/haml-NZLVzu_R.js +10 -0
  185. package/dist/handlebars-mxStpSE7.js +14 -0
  186. package/dist/haskell-WeIwNIP6.js +6 -0
  187. package/dist/haxe-TztHsm5T.js +6 -0
  188. package/dist/hcl-D438OF-I.js +6 -0
  189. package/dist/hjson-DYBUbqOl.js +6 -0
  190. package/dist/hlsl-Bk8TCZNL.js +6 -0
  191. package/dist/houston-BDYrDoDW.js +4 -0
  192. package/dist/html-B50bmoVb.js +10 -0
  193. package/dist/html-derivative-ByyNxAP5.js +10 -0
  194. package/dist/http-BVIWqb92.js +19 -0
  195. package/dist/hurl-B8OTiYoQ.js +17 -0
  196. package/dist/hxml-GbqSQCLa.js +8 -0
  197. package/dist/hy-Brt5EZ7-.js +6 -0
  198. package/dist/imba-CimUv-Uh.js +6 -0
  199. package/dist/index-C2DJ8qoy.js +45435 -0
  200. package/dist/infoDiagram-WHAUD3N6-CcN7ZNYI.js +27 -0
  201. package/dist/ini-BZIuRIvJ.js +6 -0
  202. package/dist/init-DjUOC4st.js +16 -0
  203. package/dist/java-DY6VlHhP.js +6 -0
  204. package/dist/javascript-C25yR2R2.js +6 -0
  205. package/dist/jinja-CI-LSgSv.js +13 -0
  206. package/dist/jison-DdreslRX.js +8 -0
  207. package/dist/journeyDiagram-XKPGCS4Q-BACao6jz.js +840 -0
  208. package/dist/json-DxJze_jm.js +6 -0
  209. package/dist/json5-BT4Fjg39.js +6 -0
  210. package/dist/jsonc-CHjZD8gR.js +6 -0
  211. package/dist/jsonl-BGuvDmy9.js +6 -0
  212. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  213. package/dist/jssm-BcADi6EI.js +6 -0
  214. package/dist/jsx-BtKADgXT.js +6 -0
  215. package/dist/julia-ll8P6QXy.js +19 -0
  216. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  217. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  218. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  219. package/dist/kanban-definition-3W4ZIXB7-Jb7Xwf92.js +724 -0
  220. package/dist/katex.min-l0sNRNKZ.js +1 -0
  221. package/dist/kdl-BNOv9TC3.js +6 -0
  222. package/dist/kotlin-ByBMgTeR.js +6 -0
  223. package/dist/kusto-VWFLl2T0.js +6 -0
  224. package/dist/laserwave-6a00oqik.js +4 -0
  225. package/dist/latex-DF20280u.js +9 -0
  226. package/dist/layout-Q6wQN5dr.js +1730 -0
  227. package/dist/lean-D5yRrexI.js +6 -0
  228. package/dist/less-B1GLI2Di.js +6 -0
  229. package/dist/lib/utils.d.ts +2 -0
  230. package/dist/light-plus-CZuVqSLX.js +4 -0
  231. package/dist/linear-CxGB80S5.js +277 -0
  232. package/dist/liquid-CHzkx3jT.js +14 -0
  233. package/dist/llvm-co1rIKs3.js +6 -0
  234. package/dist/log-Al8wyEFV.js +6 -0
  235. package/dist/logo-DBa4JDzV.js +6 -0
  236. package/dist/lua-kX5WP_P5.js +8 -0
  237. package/dist/luau-DtBSxLyz.js +6 -0
  238. package/dist/make-CsMclxtr.js +6 -0
  239. package/dist/markdown-CrScaQ96.js +6 -0
  240. package/dist/marko-ls0Jg2j8.js +14 -0
  241. package/dist/material-theme-D6KBX41T.js +4 -0
  242. package/dist/material-theme-darker-CkRroheE.js +4 -0
  243. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  244. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  245. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  246. package/dist/matlab-BOAaUVP0.js +6 -0
  247. package/dist/mdc-DIP5_jeM.js +15 -0
  248. package/dist/mdx-BOhZZUJ8.js +6 -0
  249. package/dist/mermaid-B0ixDHKN.js +6 -0
  250. package/dist/mermaid-NA5CF7SZ-DekDSZe_.js +6 -0
  251. package/dist/mermaid.core-xMGW442o.js +14414 -0
  252. package/dist/min-dark-C7ak0t6c.js +4 -0
  253. package/dist/min-light-CKFxVcPp.js +4 -0
  254. package/dist/mindmap-definition-VGOIOE7T-UHZgRHb7.js +790 -0
  255. package/dist/mipsasm-CTx18fBl.js +6 -0
  256. package/dist/mojo-BD611d7o.js +6 -0
  257. package/dist/monokai-C1KBYcO0.js +4 -0
  258. package/dist/move-F-dICmj2.js +6 -0
  259. package/dist/narrat-DmhDCBs-.js +6 -0
  260. package/dist/nextflow-DmSVRGjG.js +6 -0
  261. package/dist/nginx-COxS3qoU.js +9 -0
  262. package/dist/night-owl-Bm2rzalh.js +4 -0
  263. package/dist/nim-CCwXZLHG.js +21 -0
  264. package/dist/nix-BZK5F767.js +9 -0
  265. package/dist/nord-CC5OiUXg.js +4 -0
  266. package/dist/nushell-D8j3dhT-.js +6 -0
  267. package/dist/objective-c-Itk8tzmv.js +6 -0
  268. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  269. package/dist/ocaml-eSVK32Eg.js +6 -0
  270. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  271. package/dist/one-light-D9sNaUtq.js +4 -0
  272. package/dist/openscad-Sp5uZ6f2.js +6 -0
  273. package/dist/ordinal-MUacOSdK.js +65 -0
  274. package/dist/pascal-xy8pJNns.js +6 -0
  275. package/dist/perl-NvKK8p2P.js +17 -0
  276. package/dist/php-CK5hNnT0.js +19 -0
  277. package/dist/pieDiagram-ADFJNKIX-CHrTFTbw.js +166 -0
  278. package/dist/pkl-C-zSNmaA.js +6 -0
  279. package/dist/plastic-CSTz3KZp.js +4 -0
  280. package/dist/plsql-pVbGZfOv.js +6 -0
  281. package/dist/po-BNfHvqmm.js +6 -0
  282. package/dist/poimandres-C-VADXHD.js +4 -0
  283. package/dist/polar-CAZahv3u.js +6 -0
  284. package/dist/postcss-05aHdL-n.js +6 -0
  285. package/dist/powerquery-DI9HkTvs.js +6 -0
  286. package/dist/powershell-Clc4ydu-.js +6 -0
  287. package/dist/prisma-FZjmVtSl.js +6 -0
  288. package/dist/prolog-C5-yg4TO.js +6 -0
  289. package/dist/proto-MmCPeFAD.js +6 -0
  290. package/dist/pug-XOw9Q1Ho.js +12 -0
  291. package/dist/puppet-CUJHmnxV.js +6 -0
  292. package/dist/purescript-rUfGld-4.js +6 -0
  293. package/dist/python-BFNSHbwJ.js +6 -0
  294. package/dist/qml-rTNXsquU.js +8 -0
  295. package/dist/qmldir-BInDYbpo.js +6 -0
  296. package/dist/qss-AeJTysr_.js +6 -0
  297. package/dist/quadrantDiagram-AYHSOK5B-CDfhMB18.js +1030 -0
  298. package/dist/r-Bm0uF0U2.js +6 -0
  299. package/dist/racket-B83wSAja.js +6 -0
  300. package/dist/raku-nEQ4ZJJ7.js +6 -0
  301. package/dist/razor-CoqPuKQU.js +12 -0
  302. package/dist/red-7y8PH7HH.js +4 -0
  303. package/dist/reg-m_s_Kiip.js +6 -0
  304. package/dist/regexp-BazyLpPg.js +6 -0
  305. package/dist/rel-BcRfyd6Q.js +6 -0
  306. package/dist/requirementDiagram-UZGBJVZJ-C0aeVQh6.js +856 -0
  307. package/dist/riscv-Ce8MAQLP.js +6 -0
  308. package/dist/rose-pine-BKc3yVeu.js +4 -0
  309. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  310. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  311. package/dist/rosmsg-Cz0w1km8.js +6 -0
  312. package/dist/rst-AoEjemIj.js +36 -0
  313. package/dist/ruby-CGSl8JoB.js +36 -0
  314. package/dist/rust-CLzF9zIN.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN-kjxRgXd2.js +830 -0
  316. package/dist/sas-fpEvgATw.js +8 -0
  317. package/dist/sass-DxHp5rTx.js +6 -0
  318. package/dist/scala-D4grkFkl.js +6 -0
  319. package/dist/scheme-BCRWuEm4.js +6 -0
  320. package/dist/scss-B1FaCqwR.js +8 -0
  321. package/dist/sdbl-B7T8abf4.js +6 -0
  322. package/dist/sequenceDiagram-WL72ISMW-Bs0jyVuH.js +2526 -0
  323. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  324. package/dist/shellscript-InADTalH.js +6 -0
  325. package/dist/shellsession-DiDJNQdy.js +8 -0
  326. package/dist/slack-dark-i7wN4OET.js +4 -0
  327. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  328. package/dist/smalltalk-BlI1_OkM.js +6 -0
  329. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  330. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  331. package/dist/solarized-light-BheCkDPT.js +4 -0
  332. package/dist/solidity-DUWnFhS6.js +6 -0
  333. package/dist/soy-YPoZ1G2p.js +10 -0
  334. package/dist/sparql-B0KWFEri.js +8 -0
  335. package/dist/splunk-CRXR8A9s.js +6 -0
  336. package/dist/sql-Cn_v3PB0.js +6 -0
  337. package/dist/ssh-config-DP-hNVbF.js +6 -0
  338. package/dist/stata-B8c5fTjX.js +8 -0
  339. package/dist/stateDiagram-FKZM4ZOC-CAWwlh9R.js +268 -0
  340. package/dist/stateDiagram-v2-4FDKWEC3-9TYlTzc3.js +21 -0
  341. package/dist/style.css +1 -1
  342. package/dist/stylus-CyKEU1Ej.js +6 -0
  343. package/dist/svelte-5UasyOg7.js +14 -0
  344. package/dist/swift-9UzSvamq.js +6 -0
  345. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  346. package/dist/system-verilog-BCm7smPJ.js +6 -0
  347. package/dist/systemd-C-4qm6XH.js +6 -0
  348. package/dist/tailwind.css +126 -0
  349. package/dist/talonscript-CFF3LF_O.js +6 -0
  350. package/dist/tasl-Cg_WBUAe.js +6 -0
  351. package/dist/tcl-DN7buRTF.js +6 -0
  352. package/dist/templ-peLZIM2D.js +12 -0
  353. package/dist/terraform-DGvcn9zM.js +6 -0
  354. package/dist/tex-DpOayVob.js +8 -0
  355. package/dist/timeline-definition-IT6M3QCI-DrPozOxH.js +805 -0
  356. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  357. package/dist/toml-DY62mUL_.js +6 -0
  358. package/dist/treemap-KMMF4GRG-D_L55G0b.js +15045 -0
  359. package/dist/ts-tags-CWmBp2js.js +43 -0
  360. package/dist/tsv-BtvSkaG0.js +6 -0
  361. package/dist/tsx-B8rCNbgL.js +6 -0
  362. package/dist/turtle-_H59FV7D.js +6 -0
  363. package/dist/twig-Cpoho6oi.js +35 -0
  364. package/dist/typescript-RycA9KXf.js +6 -0
  365. package/dist/typespec-DWqp-kUU.js +6 -0
  366. package/dist/typst-D_1QKWns.js +6 -0
  367. package/dist/v-BPCNiyYe.js +6 -0
  368. package/dist/vala-uxaPR7d1.js +6 -0
  369. package/dist/vb-D8_c5-KN.js +6 -0
  370. package/dist/verilog-B-bybjPF.js +6 -0
  371. package/dist/vesper-BckBta1U.js +4 -0
  372. package/dist/vhdl-CUlNa8ac.js +6 -0
  373. package/dist/viml-DsfA-sWm.js +6 -0
  374. package/dist/vitesse-black-BoGvW84i.js +4 -0
  375. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  376. package/dist/vitesse-light-CcmG315c.js +4 -0
  377. package/dist/vue-DmFKWfEU.js +31 -0
  378. package/dist/vue-html-BB2aI7Yc.js +15 -0
  379. package/dist/vue-vine-CznNap4x.js +24 -0
  380. package/dist/vyper-CPQuu50u.js +6 -0
  381. package/dist/wasm-BBXxrAl7.js +6 -0
  382. package/dist/wasm-DQxwEHae.js +7 -0
  383. package/dist/wenyan-pbVjoM9_.js +6 -0
  384. package/dist/wgsl-DY4iK1q1.js +6 -0
  385. package/dist/wikitext-Z-MoUasO.js +6 -0
  386. package/dist/wit-CQMQOlTg.js +6 -0
  387. package/dist/wolfram-Dz4KXISs.js +6 -0
  388. package/dist/xml-C2J0sS9M.js +8 -0
  389. package/dist/xsl-CbTBIiv3.js +9 -0
  390. package/dist/xychartDiagram-PRI3JC2R-BkO8dJff.js +1345 -0
  391. package/dist/yaml-DaO7k5B1.js +6 -0
  392. package/dist/zenscript-CxBjpf9c.js +6 -0
  393. package/dist/zig-Vm0PO9wB.js +6 -0
  394. package/package.json +35 -7
@@ -0,0 +1,790 @@
1
+ import { g as le } from "./chunk-55IACEB6-Dr8rgvy_.js";
2
+ import { s as he } from "./chunk-QN33PNHL-nSyFq8_s.js";
3
+ import { _ as l, l as I, d as X, C as j, i as F, aw as de, y as ge, z as ue, X as pe, Y as fe, $ as ye } from "./mermaid.core-xMGW442o.js";
4
+ import "./index-C2DJ8qoy.js";
5
+ import "react";
6
+ import "react-dom";
7
+ const E = [];
8
+ for (let t = 0; t < 256; ++t)
9
+ E.push((t + 256).toString(16).slice(1));
10
+ function me(t, e = 0) {
11
+ 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();
12
+ }
13
+ let Y;
14
+ const Ee = new Uint8Array(16);
15
+ function _e() {
16
+ if (!Y) {
17
+ if (typeof crypto > "u" || !crypto.getRandomValues)
18
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
19
+ Y = crypto.getRandomValues.bind(crypto);
20
+ }
21
+ return Y(Ee);
22
+ }
23
+ const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
24
+ function Se(t, e, n) {
25
+ var u;
26
+ if (ne.randomUUID && !e && !t)
27
+ return ne.randomUUID();
28
+ t = t || {};
29
+ const c = t.random ?? ((u = t.rng) == null ? void 0 : u.call(t)) ?? _e();
30
+ if (c.length < 16)
31
+ throw new Error("Random bytes length must be >= 16");
32
+ return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
33
+ }
34
+ var q = function() {
35
+ var t = /* @__PURE__ */ l(function(v, s, i, o) {
36
+ for (i = i || {}, o = v.length; o--; i[v[o]] = s)
37
+ ;
38
+ return i;
39
+ }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], R = [1, 25], D = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], w = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
40
+ trace: /* @__PURE__ */ l(function() {
41
+ }, "trace"),
42
+ yy: {},
43
+ 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 },
44
+ 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" },
45
+ 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]],
46
+ performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, A) {
47
+ var d = r.length - 1;
48
+ switch (g) {
49
+ case 6:
50
+ case 7:
51
+ return a;
52
+ case 8:
53
+ a.getLogger().trace("Stop NL ");
54
+ break;
55
+ case 9:
56
+ a.getLogger().trace("Stop EOF ");
57
+ break;
58
+ case 11:
59
+ a.getLogger().trace("Stop NL2 ");
60
+ break;
61
+ case 12:
62
+ a.getLogger().trace("Stop EOF2 ");
63
+ break;
64
+ case 15:
65
+ a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
66
+ break;
67
+ case 16:
68
+ a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
69
+ break;
70
+ case 17:
71
+ case 21:
72
+ a.decorateNode({ class: r[d] });
73
+ break;
74
+ case 18:
75
+ a.getLogger().trace("SPACELIST");
76
+ break;
77
+ case 19:
78
+ a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
79
+ break;
80
+ case 20:
81
+ a.decorateNode({ icon: r[d] });
82
+ break;
83
+ case 25:
84
+ 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]) };
85
+ break;
86
+ case 26:
87
+ this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
88
+ break;
89
+ case 27:
90
+ 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]) };
91
+ break;
92
+ }
93
+ }, "anonymous"),
94
+ 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: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: R }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: R }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(J, [2, 14], { 7: K, 11: Q }), t(w, [2, 8]), t(w, [2, 9]), t(w, [2, 10]), t(D, [2, 15]), t(D, [2, 16]), t(D, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(w, [2, 11]), t(w, [2, 12]), { 21: [1, 37] }, t(D, [2, 25]), t(D, [2, 27])],
95
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
96
+ parseError: /* @__PURE__ */ l(function(s, i) {
97
+ if (i.recoverable)
98
+ this.trace(s);
99
+ else {
100
+ var o = new Error(s);
101
+ throw o.hash = i, o;
102
+ }
103
+ }, "parseError"),
104
+ parse: /* @__PURE__ */ l(function(s) {
105
+ var i = this, o = [0], a = [], g = [null], r = [], A = this.table, d = "", M = 0, Z = 0, re = 2, ee = 1, oe = r.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
106
+ for (var $ in this.yy)
107
+ Object.prototype.hasOwnProperty.call(this.yy, $) && (T.yy[$] = this.yy[$]);
108
+ f.setInput(s, T.yy), T.yy.lexer = f, T.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
109
+ var H = f.yylloc;
110
+ r.push(H);
111
+ var ae = f.options && f.options.ranges;
112
+ typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
113
+ function ce(N) {
114
+ o.length = o.length - 2 * N, g.length = g.length - N, r.length = r.length - N;
115
+ }
116
+ l(ce, "popStack");
117
+ function te() {
118
+ var N;
119
+ return N = a.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (a = N, N = a.pop()), N = i.symbols_[N] || N), N;
120
+ }
121
+ l(te, "lex");
122
+ for (var S, O, k, z, C = {}, V, L, ie, B; ; ) {
123
+ if (O = o[o.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = A[O] && A[O][S]), typeof k > "u" || !k.length || !k[0]) {
124
+ var W = "";
125
+ B = [];
126
+ for (V in A[O])
127
+ this.terminals_[V] && V > re && B.push("'" + this.terminals_[V] + "'");
128
+ f.showPosition ? W = "Parse error on line " + (M + 1) + `:
129
+ ` + f.showPosition() + `
130
+ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "Parse error on line " + (M + 1) + ": Unexpected " + (S == ee ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(W, {
131
+ text: f.match,
132
+ token: this.terminals_[S] || S,
133
+ line: f.yylineno,
134
+ loc: H,
135
+ expected: B
136
+ });
137
+ }
138
+ if (k[0] instanceof Array && k.length > 1)
139
+ throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + S);
140
+ switch (k[0]) {
141
+ case 1:
142
+ o.push(S), g.push(f.yytext), r.push(f.yylloc), o.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, H = f.yylloc;
143
+ break;
144
+ case 2:
145
+ if (L = this.productions_[k[1]][1], C.$ = g[g.length - L], C._$ = {
146
+ first_line: r[r.length - (L || 1)].first_line,
147
+ last_line: r[r.length - 1].last_line,
148
+ first_column: r[r.length - (L || 1)].first_column,
149
+ last_column: r[r.length - 1].last_column
150
+ }, ae && (C._$.range = [
151
+ r[r.length - (L || 1)].range[0],
152
+ r[r.length - 1].range[1]
153
+ ]), z = this.performAction.apply(C, [
154
+ d,
155
+ Z,
156
+ M,
157
+ T.yy,
158
+ k[1],
159
+ g,
160
+ r
161
+ ].concat(oe)), typeof z < "u")
162
+ return z;
163
+ L && (o = o.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), o.push(this.productions_[k[1]][0]), g.push(C.$), r.push(C._$), ie = A[o[o.length - 2]][o[o.length - 1]], o.push(ie);
164
+ break;
165
+ case 3:
166
+ return !0;
167
+ }
168
+ }
169
+ return !0;
170
+ }, "parse")
171
+ }, se = /* @__PURE__ */ function() {
172
+ var v = {
173
+ EOF: 1,
174
+ parseError: /* @__PURE__ */ l(function(i, o) {
175
+ if (this.yy.parser)
176
+ this.yy.parser.parseError(i, o);
177
+ else
178
+ throw new Error(i);
179
+ }, "parseError"),
180
+ // resets the lexer, sets new input
181
+ setInput: /* @__PURE__ */ l(function(s, i) {
182
+ 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 = {
183
+ first_line: 1,
184
+ first_column: 0,
185
+ last_line: 1,
186
+ last_column: 0
187
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
188
+ }, "setInput"),
189
+ // consumes and returns one char from the input
190
+ input: /* @__PURE__ */ l(function() {
191
+ var s = this._input[0];
192
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
193
+ var i = s.match(/(?:\r\n?|\n).*/g);
194
+ 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;
195
+ }, "input"),
196
+ // unshifts one char (or a string) into the input
197
+ unput: /* @__PURE__ */ l(function(s) {
198
+ var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
199
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
200
+ var a = this.match.split(/(?:\r\n?|\n)/g);
201
+ 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);
202
+ var g = this.yylloc.range;
203
+ return this.yylloc = {
204
+ first_line: this.yylloc.first_line,
205
+ last_line: this.yylineno + 1,
206
+ first_column: this.yylloc.first_column,
207
+ 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
208
+ }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
209
+ }, "unput"),
210
+ // When called from action, caches matched text and appends it on next action
211
+ more: /* @__PURE__ */ l(function() {
212
+ return this._more = !0, this;
213
+ }, "more"),
214
+ // 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.
215
+ reject: /* @__PURE__ */ l(function() {
216
+ if (this.options.backtrack_lexer)
217
+ this._backtrack = !0;
218
+ else
219
+ 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).
220
+ ` + this.showPosition(), {
221
+ text: "",
222
+ token: null,
223
+ line: this.yylineno
224
+ });
225
+ return this;
226
+ }, "reject"),
227
+ // retain first n characters of the match
228
+ less: /* @__PURE__ */ l(function(s) {
229
+ this.unput(this.match.slice(s));
230
+ }, "less"),
231
+ // displays already matched input, i.e. for error messages
232
+ pastInput: /* @__PURE__ */ l(function() {
233
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
234
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
235
+ }, "pastInput"),
236
+ // displays upcoming input, i.e. for error messages
237
+ upcomingInput: /* @__PURE__ */ l(function() {
238
+ var s = this.match;
239
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
240
+ }, "upcomingInput"),
241
+ // displays the character position where the lexing error occurred, i.e. for error messages
242
+ showPosition: /* @__PURE__ */ l(function() {
243
+ var s = this.pastInput(), i = new Array(s.length + 1).join("-");
244
+ return s + this.upcomingInput() + `
245
+ ` + i + "^";
246
+ }, "showPosition"),
247
+ // test the lexed token: return FALSE when not a match, otherwise return token
248
+ test_match: /* @__PURE__ */ l(function(s, i) {
249
+ var o, a, g;
250
+ if (this.options.backtrack_lexer && (g = {
251
+ yylineno: this.yylineno,
252
+ yylloc: {
253
+ first_line: this.yylloc.first_line,
254
+ last_line: this.last_line,
255
+ first_column: this.yylloc.first_column,
256
+ last_column: this.yylloc.last_column
257
+ },
258
+ yytext: this.yytext,
259
+ match: this.match,
260
+ matches: this.matches,
261
+ matched: this.matched,
262
+ yyleng: this.yyleng,
263
+ offset: this.offset,
264
+ _more: this._more,
265
+ _input: this._input,
266
+ yy: this.yy,
267
+ conditionStack: this.conditionStack.slice(0),
268
+ done: this.done
269
+ }, 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 = {
270
+ first_line: this.yylloc.last_line,
271
+ last_line: this.yylineno + 1,
272
+ first_column: this.yylloc.last_column,
273
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
274
+ }, 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)
275
+ return o;
276
+ if (this._backtrack) {
277
+ for (var r in g)
278
+ this[r] = g[r];
279
+ return !1;
280
+ }
281
+ return !1;
282
+ }, "test_match"),
283
+ // return next match in input
284
+ next: /* @__PURE__ */ l(function() {
285
+ if (this.done)
286
+ return this.EOF;
287
+ this._input || (this.done = !0);
288
+ var s, i, o, a;
289
+ this._more || (this.yytext = "", this.match = "");
290
+ for (var g = this._currentRules(), r = 0; r < g.length; r++)
291
+ if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
292
+ if (i = o, a = r, this.options.backtrack_lexer) {
293
+ if (s = this.test_match(o, g[r]), s !== !1)
294
+ return s;
295
+ if (this._backtrack) {
296
+ i = !1;
297
+ continue;
298
+ } else
299
+ return !1;
300
+ } else if (!this.options.flex)
301
+ break;
302
+ }
303
+ 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.
304
+ ` + this.showPosition(), {
305
+ text: "",
306
+ token: null,
307
+ line: this.yylineno
308
+ });
309
+ }, "next"),
310
+ // return next match that has a token
311
+ lex: /* @__PURE__ */ l(function() {
312
+ var i = this.next();
313
+ return i || this.lex();
314
+ }, "lex"),
315
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
316
+ begin: /* @__PURE__ */ l(function(i) {
317
+ this.conditionStack.push(i);
318
+ }, "begin"),
319
+ // pop the previously active lexer condition state off the condition stack
320
+ popState: /* @__PURE__ */ l(function() {
321
+ var i = this.conditionStack.length - 1;
322
+ return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
323
+ }, "popState"),
324
+ // produce the lexer rule set which is active for the currently active lexer condition state
325
+ _currentRules: /* @__PURE__ */ l(function() {
326
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
327
+ }, "_currentRules"),
328
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
329
+ topState: /* @__PURE__ */ l(function(i) {
330
+ return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
331
+ }, "topState"),
332
+ // alias for begin(condition)
333
+ pushState: /* @__PURE__ */ l(function(i) {
334
+ this.begin(i);
335
+ }, "pushState"),
336
+ // return the number of states currently on the stack
337
+ stateStackSize: /* @__PURE__ */ l(function() {
338
+ return this.conditionStack.length;
339
+ }, "stateStackSize"),
340
+ options: { "case-insensitive": !0 },
341
+ performAction: /* @__PURE__ */ l(function(i, o, a, g) {
342
+ switch (a) {
343
+ case 0:
344
+ return i.getLogger().trace("Found comment", o.yytext), 6;
345
+ case 1:
346
+ return 8;
347
+ case 2:
348
+ this.begin("CLASS");
349
+ break;
350
+ case 3:
351
+ return this.popState(), 16;
352
+ case 4:
353
+ this.popState();
354
+ break;
355
+ case 5:
356
+ i.getLogger().trace("Begin icon"), this.begin("ICON");
357
+ break;
358
+ case 6:
359
+ return i.getLogger().trace("SPACELINE"), 6;
360
+ case 7:
361
+ return 7;
362
+ case 8:
363
+ return 15;
364
+ case 9:
365
+ i.getLogger().trace("end icon"), this.popState();
366
+ break;
367
+ case 10:
368
+ return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
369
+ case 11:
370
+ return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
371
+ case 12:
372
+ return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
373
+ case 13:
374
+ return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
375
+ case 14:
376
+ return this.begin("NODE"), 19;
377
+ case 15:
378
+ return this.begin("NODE"), 19;
379
+ case 16:
380
+ return this.begin("NODE"), 19;
381
+ case 17:
382
+ return this.begin("NODE"), 19;
383
+ case 18:
384
+ return 13;
385
+ case 19:
386
+ return 22;
387
+ case 20:
388
+ return 11;
389
+ case 21:
390
+ this.begin("NSTR2");
391
+ break;
392
+ case 22:
393
+ return "NODE_DESCR";
394
+ case 23:
395
+ this.popState();
396
+ break;
397
+ case 24:
398
+ i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
399
+ break;
400
+ case 25:
401
+ return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
402
+ case 26:
403
+ this.popState();
404
+ break;
405
+ case 27:
406
+ return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
407
+ case 28:
408
+ return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
409
+ case 29:
410
+ return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
411
+ case 30:
412
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
413
+ case 31:
414
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
415
+ case 32:
416
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
417
+ case 33:
418
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
419
+ case 34:
420
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
421
+ case 35:
422
+ return i.getLogger().trace("Long description:", o.yytext), 20;
423
+ case 36:
424
+ return i.getLogger().trace("Long description:", o.yytext), 20;
425
+ }
426
+ }, "anonymous"),
427
+ 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],
428
+ 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 } }
429
+ };
430
+ return v;
431
+ }();
432
+ G.lexer = se;
433
+ function P() {
434
+ this.yy = {};
435
+ }
436
+ return l(P, "Parser"), P.prototype = G, G.Parser = P, new P();
437
+ }();
438
+ q.parser = q;
439
+ var De = q, x = {
440
+ DEFAULT: 0,
441
+ NO_BORDER: 0,
442
+ ROUNDED_RECT: 1,
443
+ RECT: 2,
444
+ CIRCLE: 3,
445
+ CLOUD: 4,
446
+ BANG: 5,
447
+ HEXAGON: 6
448
+ }, U, Ne = (U = class {
449
+ constructor() {
450
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = x, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
451
+ }
452
+ clear() {
453
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
454
+ }
455
+ getParent(e) {
456
+ for (let n = this.nodes.length - 1; n >= 0; n--)
457
+ if (this.nodes[n].level < e)
458
+ return this.nodes[n];
459
+ return null;
460
+ }
461
+ getMindmap() {
462
+ return this.nodes.length > 0 ? this.nodes[0] : null;
463
+ }
464
+ addNode(e, n, c, u) {
465
+ var m, R;
466
+ I.info("addNode", e, n, c, u);
467
+ let h = !1;
468
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
469
+ const p = X();
470
+ let y = ((m = p.mindmap) == null ? void 0 : m.padding) ?? j.mindmap.padding;
471
+ switch (u) {
472
+ case this.nodeType.ROUNDED_RECT:
473
+ case this.nodeType.RECT:
474
+ case this.nodeType.HEXAGON:
475
+ y *= 2;
476
+ break;
477
+ }
478
+ const _ = {
479
+ id: this.count++,
480
+ nodeId: F(n, p),
481
+ level: e,
482
+ descr: F(c, p),
483
+ type: u,
484
+ children: [],
485
+ width: ((R = p.mindmap) == null ? void 0 : R.maxNodeWidth) ?? j.mindmap.maxNodeWidth,
486
+ padding: y,
487
+ isRoot: h
488
+ }, b = this.getParent(e);
489
+ if (b)
490
+ b.children.push(_), this.nodes.push(_);
491
+ else if (h)
492
+ this.nodes.push(_);
493
+ else
494
+ throw new Error(
495
+ `There can be only one root. No parent could be found for ("${_.descr}")`
496
+ );
497
+ }
498
+ getType(e, n) {
499
+ switch (I.debug("In get type", e, n), e) {
500
+ case "[":
501
+ return this.nodeType.RECT;
502
+ case "(":
503
+ return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
504
+ case "((":
505
+ return this.nodeType.CIRCLE;
506
+ case ")":
507
+ return this.nodeType.CLOUD;
508
+ case "))":
509
+ return this.nodeType.BANG;
510
+ case "{{":
511
+ return this.nodeType.HEXAGON;
512
+ default:
513
+ return this.nodeType.DEFAULT;
514
+ }
515
+ }
516
+ setElementForId(e, n) {
517
+ this.elements[e] = n;
518
+ }
519
+ getElementById(e) {
520
+ return this.elements[e];
521
+ }
522
+ decorateNode(e) {
523
+ if (!e)
524
+ return;
525
+ const n = X(), c = this.nodes[this.nodes.length - 1];
526
+ e.icon && (c.icon = F(e.icon, n)), e.class && (c.class = F(e.class, n));
527
+ }
528
+ type2Str(e) {
529
+ switch (e) {
530
+ case this.nodeType.DEFAULT:
531
+ return "no-border";
532
+ case this.nodeType.RECT:
533
+ return "rect";
534
+ case this.nodeType.ROUNDED_RECT:
535
+ return "rounded-rect";
536
+ case this.nodeType.CIRCLE:
537
+ return "circle";
538
+ case this.nodeType.CLOUD:
539
+ return "cloud";
540
+ case this.nodeType.BANG:
541
+ return "bang";
542
+ case this.nodeType.HEXAGON:
543
+ return "hexgon";
544
+ default:
545
+ return "no-border";
546
+ }
547
+ }
548
+ /**
549
+ * Assign section numbers to nodes based on their position relative to root
550
+ * @param node - The mindmap node to process
551
+ * @param sectionNumber - The section number to assign (undefined for root)
552
+ */
553
+ assignSections(e, n) {
554
+ if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
555
+ for (const [c, u] of e.children.entries()) {
556
+ const h = e.level === 0 ? c : n;
557
+ this.assignSections(u, h);
558
+ }
559
+ }
560
+ /**
561
+ * Convert mindmap tree structure to flat array of nodes
562
+ * @param node - The mindmap node to process
563
+ * @param processedNodes - Array to collect processed nodes
564
+ */
565
+ flattenNodes(e, n) {
566
+ const c = ["mindmap-node"];
567
+ e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
568
+ const u = c.join(" "), h = /* @__PURE__ */ l((y) => {
569
+ switch (y) {
570
+ case x.CIRCLE:
571
+ return "mindmapCircle";
572
+ case x.RECT:
573
+ return "rect";
574
+ case x.ROUNDED_RECT:
575
+ return "rounded";
576
+ case x.CLOUD:
577
+ return "cloud";
578
+ case x.BANG:
579
+ return "bang";
580
+ case x.HEXAGON:
581
+ return "hexagon";
582
+ case x.DEFAULT:
583
+ return "defaultMindmapNode";
584
+ case x.NO_BORDER:
585
+ default:
586
+ return "rect";
587
+ }
588
+ }, "getShapeFromType"), p = {
589
+ id: e.id.toString(),
590
+ domId: "node_" + e.id.toString(),
591
+ label: e.descr,
592
+ isGroup: !1,
593
+ shape: h(e.type),
594
+ width: e.width,
595
+ height: e.height ?? 0,
596
+ padding: e.padding,
597
+ cssClasses: u,
598
+ cssStyles: [],
599
+ look: "default",
600
+ icon: e.icon,
601
+ x: e.x,
602
+ y: e.y,
603
+ // Mindmap-specific properties
604
+ level: e.level,
605
+ nodeId: e.nodeId,
606
+ type: e.type,
607
+ section: e.section
608
+ };
609
+ if (n.push(p), e.children)
610
+ for (const y of e.children)
611
+ this.flattenNodes(y, n);
612
+ }
613
+ /**
614
+ * Generate edges from parent-child relationships in mindmap tree
615
+ * @param node - The mindmap node to process
616
+ * @param edges - Array to collect edges
617
+ */
618
+ generateEdges(e, n) {
619
+ if (e.children)
620
+ for (const c of e.children) {
621
+ let u = "edge";
622
+ c.section !== void 0 && (u += ` section-edge-${c.section}`);
623
+ const h = e.level + 1;
624
+ u += ` edge-depth-${h}`;
625
+ const p = {
626
+ id: `edge_${e.id}_${c.id}`,
627
+ start: e.id.toString(),
628
+ end: c.id.toString(),
629
+ type: "normal",
630
+ curve: "basis",
631
+ thickness: "normal",
632
+ look: "default",
633
+ classes: u,
634
+ // Store mindmap-specific data
635
+ depth: e.level,
636
+ section: c.section
637
+ };
638
+ n.push(p), this.generateEdges(c, n);
639
+ }
640
+ }
641
+ /**
642
+ * Get structured data for layout algorithms
643
+ * Following the pattern established by ER diagrams
644
+ * @returns Structured data containing nodes, edges, and config
645
+ */
646
+ getData() {
647
+ const e = this.getMindmap(), n = X(), u = de().layout !== void 0, h = n;
648
+ if (u || (h.layout = "cose-bilkent"), !e)
649
+ return {
650
+ nodes: [],
651
+ edges: [],
652
+ config: h
653
+ };
654
+ I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
655
+ const p = [], y = [];
656
+ this.flattenNodes(e, p), this.generateEdges(e, y), I.debug(
657
+ `getData: processed ${p.length} nodes and ${y.length} edges`
658
+ );
659
+ const _ = /* @__PURE__ */ new Map();
660
+ for (const b of p)
661
+ _.set(b.id, {
662
+ shape: b.shape,
663
+ width: b.width,
664
+ height: b.height,
665
+ padding: b.padding
666
+ });
667
+ return {
668
+ nodes: p,
669
+ edges: y,
670
+ config: h,
671
+ // Store the root node for mindmap-specific layout algorithms
672
+ rootNode: e,
673
+ // Properties required by dagre layout algorithm
674
+ markers: ["point"],
675
+ // Mindmaps don't use markers
676
+ direction: "TB",
677
+ // Top-to-bottom direction for mindmaps
678
+ nodeSpacing: 50,
679
+ // Default spacing between nodes
680
+ rankSpacing: 50,
681
+ // Default spacing between ranks
682
+ // Add shapes for ELK compatibility
683
+ shapes: Object.fromEntries(_),
684
+ // Additional properties that layout algorithms might expect
685
+ type: "mindmap",
686
+ diagramId: "mindmap-" + Se()
687
+ };
688
+ }
689
+ // Expose logger to grammar
690
+ getLogger() {
691
+ return I;
692
+ }
693
+ }, l(U, "MindmapDB"), U), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
694
+ var _, b;
695
+ I.debug(`Rendering mindmap diagram
696
+ ` + t);
697
+ const u = c.db, h = u.getData(), p = le(e, h.config.securityLevel);
698
+ h.type = c.type, h.layoutAlgorithm = ge(h.config.layout, {
699
+ fallback: "cose-bilkent"
700
+ }), h.diagramId = e, u.getMindmap() && (h.nodes.forEach((m) => {
701
+ m.shape === "rounded" ? (m.radius = 15, m.taper = 15, m.stroke = "none", m.width = 0, m.padding = 15) : m.shape === "circle" ? m.padding = 10 : m.shape === "rect" && (m.width = 0, m.padding = 10);
702
+ }), await ue(h, p), he(
703
+ p,
704
+ ((_ = h.config.mindmap) == null ? void 0 : _.padding) ?? j.mindmap.padding,
705
+ "mindmapDiagram",
706
+ ((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ?? j.mindmap.useMaxWidth
707
+ ));
708
+ }, "draw"), Le = {
709
+ draw: ke
710
+ }, xe = /* @__PURE__ */ l((t) => {
711
+ let e = "";
712
+ for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
713
+ 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);
714
+ for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
715
+ const c = "" + (17 - 3 * n);
716
+ e += `
717
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
718
+ fill: ${t["cScale" + n]};
719
+ }
720
+ .section-${n - 1} text {
721
+ fill: ${t["cScaleLabel" + n]};
722
+ }
723
+ .node-icon-${n - 1} {
724
+ font-size: 40px;
725
+ color: ${t["cScaleLabel" + n]};
726
+ }
727
+ .section-edge-${n - 1}{
728
+ stroke: ${t["cScale" + n]};
729
+ }
730
+ .edge-depth-${n - 1}{
731
+ stroke-width: ${c};
732
+ }
733
+ .section-${n - 1} line {
734
+ stroke: ${t["cScaleInv" + n]} ;
735
+ stroke-width: 3;
736
+ }
737
+
738
+ .disabled, .disabled circle, .disabled text {
739
+ fill: lightgray;
740
+ }
741
+ .disabled text {
742
+ fill: #efefef;
743
+ }
744
+ `;
745
+ }
746
+ return e;
747
+ }, "genSections"), ve = /* @__PURE__ */ l((t) => `
748
+ .edge {
749
+ stroke-width: 3;
750
+ }
751
+ ${xe(t)}
752
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
753
+ fill: ${t.git0};
754
+ }
755
+ .section-root text {
756
+ fill: ${t.gitBranchLabel0};
757
+ }
758
+ .section-root span {
759
+ color: ${t.gitBranchLabel0};
760
+ }
761
+ .section-2 span {
762
+ color: ${t.gitBranchLabel0};
763
+ }
764
+ .icon-container {
765
+ height:100%;
766
+ display: flex;
767
+ justify-content: center;
768
+ align-items: center;
769
+ }
770
+ .edge {
771
+ fill: none;
772
+ }
773
+ .mindmap-node-label {
774
+ dy: 1em;
775
+ alignment-baseline: middle;
776
+ text-anchor: middle;
777
+ dominant-baseline: middle;
778
+ text-align: center;
779
+ }
780
+ `, "getStyles"), Te = ve, Ue = {
781
+ get db() {
782
+ return new Ne();
783
+ },
784
+ renderer: Le,
785
+ parser: De,
786
+ styles: Te
787
+ };
788
+ export {
789
+ Ue as diagram
790
+ };