@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,552 @@
1
+ import { _ as w, D as te, F as ae, H as he, e as pe, l as K, b2 as P, d as Y, b as ue, a as fe, p as me, q as ge, g as ye, s as Se, E as ve, b3 as xe, y as be } from "./mermaid.core-08D5Vldk.js";
2
+ import { s as we } from "./chunk-QN33PNHL-DSFN3Uoh.js";
3
+ import { p as Ce } from "./chunk-4BX2VUAB-DCjARiNr.js";
4
+ import { p as Te } from "./treemap-KMMF4GRG-C3Ab2yjL.js";
5
+ import { b as I } from "./defaultLocale-D1piDxzZ.js";
6
+ import { o as J } from "./ordinal-MUacOSdK.js";
7
+ import "./index-C3mwt8G1.js";
8
+ import "react/jsx-runtime";
9
+ import "react";
10
+ import "class-variance-authority";
11
+ import "clsx";
12
+ import "tailwind-merge";
13
+ import "react-dom";
14
+ import "cmdk";
15
+ import "nanoid";
16
+ import "@foris/avocado-icons";
17
+ import "react-markdown";
18
+ import "./init-DjUOC4st.js";
19
+ function Le(t) {
20
+ var a = 0, r = t.children, n = r && r.length;
21
+ if (!n)
22
+ a = 1;
23
+ else
24
+ for (; --n >= 0; )
25
+ a += r[n].value;
26
+ t.value = a;
27
+ }
28
+ function $e() {
29
+ return this.eachAfter(Le);
30
+ }
31
+ function Ae(t, a) {
32
+ let r = -1;
33
+ for (const n of this)
34
+ t.call(a, n, ++r, this);
35
+ return this;
36
+ }
37
+ function Fe(t, a) {
38
+ for (var r = this, n = [r], o, s, d = -1; r = n.pop(); )
39
+ if (t.call(a, r, ++d, this), o = r.children)
40
+ for (s = o.length - 1; s >= 0; --s)
41
+ n.push(o[s]);
42
+ return this;
43
+ }
44
+ function ke(t, a) {
45
+ for (var r = this, n = [r], o = [], s, d, h, m = -1; r = n.pop(); )
46
+ if (o.push(r), s = r.children)
47
+ for (d = 0, h = s.length; d < h; ++d)
48
+ n.push(s[d]);
49
+ for (; r = o.pop(); )
50
+ t.call(a, r, ++m, this);
51
+ return this;
52
+ }
53
+ function Ne(t, a) {
54
+ let r = -1;
55
+ for (const n of this)
56
+ if (t.call(a, n, ++r, this))
57
+ return n;
58
+ }
59
+ function Me(t) {
60
+ return this.eachAfter(function(a) {
61
+ for (var r = +t(a.data) || 0, n = a.children, o = n && n.length; --o >= 0; )
62
+ r += n[o].value;
63
+ a.value = r;
64
+ });
65
+ }
66
+ function _e(t) {
67
+ return this.eachBefore(function(a) {
68
+ a.children && a.children.sort(t);
69
+ });
70
+ }
71
+ function ze(t) {
72
+ for (var a = this, r = Ve(a, t), n = [a]; a !== r; )
73
+ a = a.parent, n.push(a);
74
+ for (var o = n.length; t !== r; )
75
+ n.splice(o, 0, t), t = t.parent;
76
+ return n;
77
+ }
78
+ function Ve(t, a) {
79
+ if (t === a)
80
+ return t;
81
+ var r = t.ancestors(), n = a.ancestors(), o = null;
82
+ for (t = r.pop(), a = n.pop(); t === a; )
83
+ o = t, t = r.pop(), a = n.pop();
84
+ return o;
85
+ }
86
+ function De() {
87
+ for (var t = this, a = [t]; t = t.parent; )
88
+ a.push(t);
89
+ return a;
90
+ }
91
+ function Pe() {
92
+ return Array.from(this);
93
+ }
94
+ function Be() {
95
+ var t = [];
96
+ return this.eachBefore(function(a) {
97
+ a.children || t.push(a);
98
+ }), t;
99
+ }
100
+ function Ee() {
101
+ var t = this, a = [];
102
+ return t.each(function(r) {
103
+ r !== t && a.push({ source: r.parent, target: r });
104
+ }), a;
105
+ }
106
+ function* Re() {
107
+ var t = this, a, r = [t], n, o, s;
108
+ do
109
+ for (a = r.reverse(), r = []; t = a.pop(); )
110
+ if (yield t, n = t.children)
111
+ for (o = 0, s = n.length; o < s; ++o)
112
+ r.push(n[o]);
113
+ while (r.length);
114
+ }
115
+ function Q(t, a) {
116
+ t instanceof Map ? (t = [void 0, t], a === void 0 && (a = Ie)) : a === void 0 && (a = He);
117
+ for (var r = new U(t), n, o = [r], s, d, h, m; n = o.pop(); )
118
+ if ((d = a(n.data)) && (m = (d = Array.from(d)).length))
119
+ for (n.children = d, h = m - 1; h >= 0; --h)
120
+ o.push(s = d[h] = new U(d[h])), s.parent = n, s.depth = n.depth + 1;
121
+ return r.eachBefore(qe);
122
+ }
123
+ function We() {
124
+ return Q(this).eachBefore(Oe);
125
+ }
126
+ function He(t) {
127
+ return t.children;
128
+ }
129
+ function Ie(t) {
130
+ return Array.isArray(t) ? t[1] : null;
131
+ }
132
+ function Oe(t) {
133
+ t.data.value !== void 0 && (t.value = t.data.value), t.data = t.data.data;
134
+ }
135
+ function qe(t) {
136
+ var a = 0;
137
+ do
138
+ t.height = a;
139
+ while ((t = t.parent) && t.height < ++a);
140
+ }
141
+ function U(t) {
142
+ this.data = t, this.depth = this.height = 0, this.parent = null;
143
+ }
144
+ U.prototype = Q.prototype = {
145
+ constructor: U,
146
+ count: $e,
147
+ each: Ae,
148
+ eachAfter: ke,
149
+ eachBefore: Fe,
150
+ find: Ne,
151
+ sum: Me,
152
+ sort: _e,
153
+ path: ze,
154
+ ancestors: De,
155
+ descendants: Pe,
156
+ leaves: Be,
157
+ links: Ee,
158
+ copy: We,
159
+ [Symbol.iterator]: Re
160
+ };
161
+ function Ge(t) {
162
+ if (typeof t != "function")
163
+ throw new Error();
164
+ return t;
165
+ }
166
+ function O() {
167
+ return 0;
168
+ }
169
+ function q(t) {
170
+ return function() {
171
+ return t;
172
+ };
173
+ }
174
+ function Xe(t) {
175
+ t.x0 = Math.round(t.x0), t.y0 = Math.round(t.y0), t.x1 = Math.round(t.x1), t.y1 = Math.round(t.y1);
176
+ }
177
+ function je(t, a, r, n, o) {
178
+ for (var s = t.children, d, h = -1, m = s.length, c = t.value && (n - a) / t.value; ++h < m; )
179
+ d = s[h], d.y0 = r, d.y1 = o, d.x0 = a, d.x1 = a += d.value * c;
180
+ }
181
+ function Ye(t, a, r, n, o) {
182
+ for (var s = t.children, d, h = -1, m = s.length, c = t.value && (o - r) / t.value; ++h < m; )
183
+ d = s[h], d.x0 = a, d.x1 = n, d.y0 = r, d.y1 = r += d.value * c;
184
+ }
185
+ var Ue = (1 + Math.sqrt(5)) / 2;
186
+ function Ze(t, a, r, n, o, s) {
187
+ for (var d = [], h = a.children, m, c, p = 0, b = 0, l = h.length, x, S, v = a.value, u, g, N, k, V, E, M; p < l; ) {
188
+ x = o - r, S = s - n;
189
+ do
190
+ u = h[b++].value;
191
+ while (!u && b < l);
192
+ for (g = N = u, E = Math.max(S / x, x / S) / (v * t), M = u * u * E, V = Math.max(N / M, M / g); b < l; ++b) {
193
+ if (u += c = h[b].value, c < g && (g = c), c > N && (N = c), M = u * u * E, k = Math.max(N / M, M / g), k > V) {
194
+ u -= c;
195
+ break;
196
+ }
197
+ V = k;
198
+ }
199
+ d.push(m = { value: u, dice: x < S, children: h.slice(p, b) }), m.dice ? je(m, r, n, o, v ? n += S * u / v : s) : Ye(m, r, n, v ? r += x * u / v : o, s), v -= u, p = b;
200
+ }
201
+ return d;
202
+ }
203
+ const Je = function t(a) {
204
+ function r(n, o, s, d, h) {
205
+ Ze(a, n, o, s, d, h);
206
+ }
207
+ return r.ratio = function(n) {
208
+ return t((n = +n) > 1 ? n : 1);
209
+ }, r;
210
+ }(Ue);
211
+ function Ke() {
212
+ var t = Je, a = !1, r = 1, n = 1, o = [0], s = O, d = O, h = O, m = O, c = O;
213
+ function p(l) {
214
+ return l.x0 = l.y0 = 0, l.x1 = r, l.y1 = n, l.eachBefore(b), o = [0], a && l.eachBefore(Xe), l;
215
+ }
216
+ function b(l) {
217
+ var x = o[l.depth], S = l.x0 + x, v = l.y0 + x, u = l.x1 - x, g = l.y1 - x;
218
+ u < S && (S = u = (S + u) / 2), g < v && (v = g = (v + g) / 2), l.x0 = S, l.y0 = v, l.x1 = u, l.y1 = g, l.children && (x = o[l.depth + 1] = s(l) / 2, S += c(l) - x, v += d(l) - x, u -= h(l) - x, g -= m(l) - x, u < S && (S = u = (S + u) / 2), g < v && (v = g = (v + g) / 2), t(l, S, v, u, g));
219
+ }
220
+ return p.round = function(l) {
221
+ return arguments.length ? (a = !!l, p) : a;
222
+ }, p.size = function(l) {
223
+ return arguments.length ? (r = +l[0], n = +l[1], p) : [r, n];
224
+ }, p.tile = function(l) {
225
+ return arguments.length ? (t = Ge(l), p) : t;
226
+ }, p.padding = function(l) {
227
+ return arguments.length ? p.paddingInner(l).paddingOuter(l) : p.paddingInner();
228
+ }, p.paddingInner = function(l) {
229
+ return arguments.length ? (s = typeof l == "function" ? l : q(+l), p) : s;
230
+ }, p.paddingOuter = function(l) {
231
+ return arguments.length ? p.paddingTop(l).paddingRight(l).paddingBottom(l).paddingLeft(l) : p.paddingTop();
232
+ }, p.paddingTop = function(l) {
233
+ return arguments.length ? (d = typeof l == "function" ? l : q(+l), p) : d;
234
+ }, p.paddingRight = function(l) {
235
+ return arguments.length ? (h = typeof l == "function" ? l : q(+l), p) : h;
236
+ }, p.paddingBottom = function(l) {
237
+ return arguments.length ? (m = typeof l == "function" ? l : q(+l), p) : m;
238
+ }, p.paddingLeft = function(l) {
239
+ return arguments.length ? (c = typeof l == "function" ? l : q(+l), p) : c;
240
+ }, p;
241
+ }
242
+ var X, ne = (X = class {
243
+ constructor() {
244
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = ue, this.getAccTitle = fe, this.setDiagramTitle = me, this.getDiagramTitle = ge, this.getAccDescription = ye, this.setAccDescription = Se;
245
+ }
246
+ getNodes() {
247
+ return this.nodes;
248
+ }
249
+ getConfig() {
250
+ const a = ve, r = ae();
251
+ return te({
252
+ ...a.treemap,
253
+ ...r.treemap ?? {}
254
+ });
255
+ }
256
+ addNode(a, r) {
257
+ this.nodes.push(a), this.levels.set(a, r), r === 0 && (this.outerNodes.push(a), this.root ?? (this.root = a));
258
+ }
259
+ getRoot() {
260
+ return { name: "", children: this.outerNodes };
261
+ }
262
+ addClass(a, r) {
263
+ const n = this.classes.get(a) ?? { id: a, styles: [], textStyles: [] }, o = r.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
264
+ o && o.forEach((s) => {
265
+ xe(s) && (n != null && n.textStyles ? n.textStyles.push(s) : n.textStyles = [s]), n != null && n.styles ? n.styles.push(s) : n.styles = [s];
266
+ }), this.classes.set(a, n);
267
+ }
268
+ getClasses() {
269
+ return this.classes;
270
+ }
271
+ getStylesForClass(a) {
272
+ var r;
273
+ return ((r = this.classes.get(a)) == null ? void 0 : r.styles) ?? [];
274
+ }
275
+ clear() {
276
+ be(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
277
+ }
278
+ }, w(X, "TreeMapDB"), X);
279
+ function re(t) {
280
+ if (!t.length)
281
+ return [];
282
+ const a = [], r = [];
283
+ return t.forEach((n) => {
284
+ const o = {
285
+ name: n.name,
286
+ children: n.type === "Leaf" ? void 0 : []
287
+ };
288
+ for (o.classSelector = n == null ? void 0 : n.classSelector, n != null && n.cssCompiledStyles && (o.cssCompiledStyles = [n.cssCompiledStyles]), n.type === "Leaf" && n.value !== void 0 && (o.value = n.value); r.length > 0 && r[r.length - 1].level >= n.level; )
289
+ r.pop();
290
+ if (r.length === 0)
291
+ a.push(o);
292
+ else {
293
+ const s = r[r.length - 1].node;
294
+ s.children ? s.children.push(o) : s.children = [o];
295
+ }
296
+ n.type !== "Leaf" && r.push({ node: o, level: n.level });
297
+ }), a;
298
+ }
299
+ w(re, "buildHierarchy");
300
+ var Qe = /* @__PURE__ */ w((t, a) => {
301
+ Ce(t, a);
302
+ const r = [];
303
+ for (const s of t.TreemapRows ?? [])
304
+ s.$type === "ClassDefStatement" && a.addClass(s.className ?? "", s.styleText ?? "");
305
+ for (const s of t.TreemapRows ?? []) {
306
+ const d = s.item;
307
+ if (!d)
308
+ continue;
309
+ const h = s.indent ? parseInt(s.indent) : 0, m = et(d), c = d.classSelector ? a.getStylesForClass(d.classSelector) : [], p = c.length > 0 ? c.join(";") : void 0, b = {
310
+ level: h,
311
+ name: m,
312
+ type: d.$type,
313
+ value: d.value,
314
+ classSelector: d.classSelector,
315
+ cssCompiledStyles: p
316
+ };
317
+ r.push(b);
318
+ }
319
+ const n = re(r), o = /* @__PURE__ */ w((s, d) => {
320
+ for (const h of s)
321
+ a.addNode(h, d), h.children && h.children.length > 0 && o(h.children, d + 1);
322
+ }, "addNodesRecursively");
323
+ o(n, 0);
324
+ }, "populate"), et = /* @__PURE__ */ w((t) => t.name ? String(t.name) : "", "getItemName"), le = {
325
+ // @ts-expect-error - TreeMapDB is not assignable to DiagramDB
326
+ parser: { yy: void 0 },
327
+ parse: /* @__PURE__ */ w(async (t) => {
328
+ var a;
329
+ try {
330
+ const n = await Te("treemap", t);
331
+ K.debug("Treemap AST:", n);
332
+ const o = (a = le.parser) == null ? void 0 : a.yy;
333
+ if (!(o instanceof ne))
334
+ throw new Error(
335
+ "parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
336
+ );
337
+ Qe(n, o);
338
+ } catch (r) {
339
+ throw K.error("Error parsing treemap:", r), r;
340
+ }
341
+ }, "parse")
342
+ }, tt = 10, B = 10, G = 25, at = /* @__PURE__ */ w((t, a, r, n) => {
343
+ const o = n.db, s = o.getConfig(), d = s.padding ?? tt, h = o.getDiagramTitle(), m = o.getRoot(), { themeVariables: c } = ae();
344
+ if (!m)
345
+ return;
346
+ const p = h ? 30 : 0, b = he(a), l = s.nodeWidth ? s.nodeWidth * B : 960, x = s.nodeHeight ? s.nodeHeight * B : 500, S = l, v = x + p;
347
+ b.attr("viewBox", `0 0 ${S} ${v}`), pe(b, v, S, s.useMaxWidth);
348
+ let u;
349
+ try {
350
+ const e = s.valueFormat || ",";
351
+ if (e === "$0,0")
352
+ u = /* @__PURE__ */ w((i) => "$" + I(",")(i), "valueFormat");
353
+ else if (e.startsWith("$") && e.includes(",")) {
354
+ const i = /\.\d+/.exec(e), f = i ? i[0] : "";
355
+ u = /* @__PURE__ */ w((C) => "$" + I("," + f)(C), "valueFormat");
356
+ } else if (e.startsWith("$")) {
357
+ const i = e.substring(1);
358
+ u = /* @__PURE__ */ w((f) => "$" + I(i || "")(f), "valueFormat");
359
+ } else
360
+ u = I(e);
361
+ } catch (e) {
362
+ K.error("Error creating format function:", e), u = I(",");
363
+ }
364
+ const g = J().range([
365
+ "transparent",
366
+ c.cScale0,
367
+ c.cScale1,
368
+ c.cScale2,
369
+ c.cScale3,
370
+ c.cScale4,
371
+ c.cScale5,
372
+ c.cScale6,
373
+ c.cScale7,
374
+ c.cScale8,
375
+ c.cScale9,
376
+ c.cScale10,
377
+ c.cScale11
378
+ ]), N = J().range([
379
+ "transparent",
380
+ c.cScalePeer0,
381
+ c.cScalePeer1,
382
+ c.cScalePeer2,
383
+ c.cScalePeer3,
384
+ c.cScalePeer4,
385
+ c.cScalePeer5,
386
+ c.cScalePeer6,
387
+ c.cScalePeer7,
388
+ c.cScalePeer8,
389
+ c.cScalePeer9,
390
+ c.cScalePeer10,
391
+ c.cScalePeer11
392
+ ]), k = J().range([
393
+ c.cScaleLabel0,
394
+ c.cScaleLabel1,
395
+ c.cScaleLabel2,
396
+ c.cScaleLabel3,
397
+ c.cScaleLabel4,
398
+ c.cScaleLabel5,
399
+ c.cScaleLabel6,
400
+ c.cScaleLabel7,
401
+ c.cScaleLabel8,
402
+ c.cScaleLabel9,
403
+ c.cScaleLabel10,
404
+ c.cScaleLabel11
405
+ ]);
406
+ h && b.append("text").attr("x", S / 2).attr("y", p / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
407
+ const V = b.append("g").attr("transform", `translate(0, ${p})`).attr("class", "treemapContainer"), E = Q(m).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Ke().size([l, x]).paddingTop(
408
+ (e) => e.children && e.children.length > 0 ? G + B : 0
409
+ ).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? B : 0).paddingRight((e) => e.children && e.children.length > 0 ? B : 0).paddingBottom((e) => e.children && e.children.length > 0 ? B : 0).round(!0)(E), se = ee.descendants().filter((e) => e.children && e.children.length > 0), R = V.selectAll(".treemapSection").data(se).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
410
+ R.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", G).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), R.append("clipPath").attr("id", (e, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", G), R.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, i) => `treemapSection section${i}`).attr("fill", (e) => g(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
411
+ if (e.depth === 0)
412
+ return "display: none;";
413
+ const i = P({ cssCompiledStyles: e.data.cssCompiledStyles });
414
+ return i.nodeStyles + ";" + i.borderStyles.join(";");
415
+ }), R.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", G / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => {
416
+ if (e.depth === 0)
417
+ return "display: none;";
418
+ const i = "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
419
+ return i + f.labelStyles.replace("color:", "fill:");
420
+ }).each(function(e) {
421
+ if (e.depth === 0)
422
+ return;
423
+ const i = Y(this), f = e.data.name;
424
+ i.text(f);
425
+ const C = e.x1 - e.x0, $ = 6;
426
+ let A;
427
+ s.showValues !== !1 && e.value ? A = C - 10 - 30 - 10 - $ : A = C - $ - 6;
428
+ const F = Math.max(15, A), y = i.node();
429
+ if (y.getComputedTextLength() > F) {
430
+ const T = "...";
431
+ let L = f;
432
+ for (; L.length > 0; ) {
433
+ if (L = f.substring(0, L.length - 1), L.length === 0) {
434
+ i.text(T), y.getComputedTextLength() > F && i.text("");
435
+ break;
436
+ }
437
+ if (i.text(L + T), y.getComputedTextLength() <= F)
438
+ break;
439
+ }
440
+ }
441
+ }), s.showValues !== !1 && R.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", G / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? u(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
442
+ if (e.depth === 0)
443
+ return "display: none;";
444
+ const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
445
+ return i + f.labelStyles.replace("color:", "fill:");
446
+ });
447
+ const ie = ee.leaves(), j = V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class", (e, i) => `treemapNode treemapLeafGroup leaf${i}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
448
+ j.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? g(e.parent.data.name) : g(e.data.name)).attr("style", (e) => P({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? g(e.parent.data.name) : g(e.data.name)).attr("stroke-width", 3), j.append("clipPath").attr("id", (e, i) => `clip-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), j.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
449
+ const i = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
450
+ return i + f.labelStyles.replace("color:", "fill:");
451
+ }).attr("clip-path", (e, i) => `url(#clip-${a}-${i})`).text((e) => e.data.name).each(function(e) {
452
+ const i = Y(this), f = e.x1 - e.x0, C = e.y1 - e.y0, $ = i.node(), A = 4, D = f - 2 * A, F = C - 2 * A;
453
+ if (D < 10 || F < 10) {
454
+ i.style("display", "none");
455
+ return;
456
+ }
457
+ let y = parseInt(i.style("font-size"), 10);
458
+ const _ = 8, T = 28, L = 0.6, z = 6, W = 2;
459
+ for (; $.getComputedTextLength() > D && y > _; )
460
+ y--, i.style("font-size", `${y}px`);
461
+ let H = Math.max(
462
+ z,
463
+ Math.min(T, Math.round(y * L))
464
+ ), Z = y + W + H;
465
+ for (; Z > F && y > _ && (y--, H = Math.max(
466
+ z,
467
+ Math.min(T, Math.round(y * L))
468
+ ), !(H < z && y === _)); )
469
+ i.style("font-size", `${y}px`), Z = y + W + H;
470
+ i.style("font-size", `${y}px`), ($.getComputedTextLength() > D || y < _ || F < y) && i.style("display", "none");
471
+ }), s.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
472
+ return (i.y1 - i.y0) / 2;
473
+ }).attr("style", (i) => {
474
+ const f = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(i.data.name) + ";", C = P({ cssCompiledStyles: i.data.cssCompiledStyles });
475
+ return f + C.labelStyles.replace("color:", "fill:");
476
+ }).attr("clip-path", (i, f) => `url(#clip-${a}-${f})`).text((i) => i.value ? u(i.value) : "").each(function(i) {
477
+ const f = Y(this), C = this.parentNode;
478
+ if (!C) {
479
+ f.style("display", "none");
480
+ return;
481
+ }
482
+ const $ = Y(C).select(".treemapLabel");
483
+ if ($.empty() || $.style("display") === "none") {
484
+ f.style("display", "none");
485
+ return;
486
+ }
487
+ const A = parseFloat($.style("font-size")), D = 28, F = 0.6, y = 6, _ = 2, T = Math.max(
488
+ y,
489
+ Math.min(D, Math.round(A * F))
490
+ );
491
+ f.style("font-size", `${T}px`);
492
+ const z = (i.y1 - i.y0) / 2 + A / 2 + _;
493
+ f.attr("y", z);
494
+ const W = i.x1 - i.x0, ce = i.y1 - i.y0 - 4, de = W - 2 * 4;
495
+ f.node().getComputedTextLength() > de || z + T > ce || T < y ? f.style("display", "none") : f.style("display", null);
496
+ });
497
+ const oe = s.diagramPadding ?? 8;
498
+ we(b, oe, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1);
499
+ }, "draw"), nt = /* @__PURE__ */ w(function(t, a) {
500
+ return a.db.getClasses();
501
+ }, "getClasses"), rt = { draw: at, getClasses: nt }, lt = {
502
+ sectionStrokeColor: "black",
503
+ sectionStrokeWidth: "1",
504
+ sectionFillColor: "#efefef",
505
+ leafStrokeColor: "black",
506
+ leafStrokeWidth: "1",
507
+ leafFillColor: "#efefef",
508
+ labelColor: "black",
509
+ labelFontSize: "12px",
510
+ valueFontSize: "10px",
511
+ valueColor: "black",
512
+ titleColor: "black",
513
+ titleFontSize: "14px"
514
+ }, st = /* @__PURE__ */ w(({
515
+ treemap: t
516
+ } = {}) => {
517
+ const a = te(lt, t);
518
+ return `
519
+ .treemapNode.section {
520
+ stroke: ${a.sectionStrokeColor};
521
+ stroke-width: ${a.sectionStrokeWidth};
522
+ fill: ${a.sectionFillColor};
523
+ }
524
+ .treemapNode.leaf {
525
+ stroke: ${a.leafStrokeColor};
526
+ stroke-width: ${a.leafStrokeWidth};
527
+ fill: ${a.leafFillColor};
528
+ }
529
+ .treemapLabel {
530
+ fill: ${a.labelColor};
531
+ font-size: ${a.labelFontSize};
532
+ }
533
+ .treemapValue {
534
+ fill: ${a.valueColor};
535
+ font-size: ${a.valueFontSize};
536
+ }
537
+ .treemapTitle {
538
+ fill: ${a.titleColor};
539
+ font-size: ${a.titleFontSize};
540
+ }
541
+ `;
542
+ }, "getStyles"), it = st, At = {
543
+ parser: le,
544
+ get db() {
545
+ return new ne();
546
+ },
547
+ renderer: rt,
548
+ styles: it
549
+ };
550
+ export {
551
+ At as diagram
552
+ };