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