@cloudbase/agent-example-ui-web-shared 0.0.2

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 (346) hide show
  1. package/README.md +75 -0
  2. package/dist/_basePickBy-DsoLgTN_.js +151 -0
  3. package/dist/_baseUniq-CfGVqM25.js +614 -0
  4. package/dist/abap-Y8Dl9g_6.js +6 -0
  5. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  6. package/dist/ada-vP6ak0IW.js +6 -0
  7. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  8. package/dist/angular-html-BmadGEgW.js +32 -0
  9. package/dist/angular-ts-D-QQnnGT.js +21 -0
  10. package/dist/apache-BUjz-sD2.js +6 -0
  11. package/dist/apex-D_wPycVx.js +6 -0
  12. package/dist/apl-sitt7C8I.js +16 -0
  13. package/dist/applescript-BPx7YFFu.js +6 -0
  14. package/dist/ara-Z2fSOxSw.js +6 -0
  15. package/dist/arc-Bhpsr2QW.js +83 -0
  16. package/dist/architecture-O4VJ6CD3-ByjLkabB.js +5 -0
  17. package/dist/architectureDiagram-VXUJARFQ-B2nTXDaN.js +4662 -0
  18. package/dist/asciidoc-B-pCoB3G.js +6 -0
  19. package/dist/asm-BTWLY5ym.js +6 -0
  20. package/dist/astro-DHnp0xIo.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-DEfTbbFX.js +6 -0
  27. package/dist/berry-PwsHPR_K.js +6 -0
  28. package/dist/bibtex-EULQRLY5.js +6 -0
  29. package/dist/bicep-DFU2oTl7.js +6 -0
  30. package/dist/blade-OPzGcV14.js +20 -0
  31. package/dist/blockDiagram-VD42YOAC-CJ7h4fs1.js +2261 -0
  32. package/dist/bsl-NkNNwerW.js +8 -0
  33. package/dist/c-eeMepfLm.js +6 -0
  34. package/dist/c4Diagram-YG6GDRKO-CMn-V_Rj.js +1580 -0
  35. package/dist/cadence-DMRWHJp4.js +6 -0
  36. package/dist/cairo-DM6WF2e3.js +8 -0
  37. package/dist/catppuccin-frappe-5udUqgsX.js +4 -0
  38. package/dist/catppuccin-latte-ufkS-HWv.js +4 -0
  39. package/dist/catppuccin-macchiato-DzL2LPek.js +4 -0
  40. package/dist/catppuccin-mocha-DDDDwkUT.js +4 -0
  41. package/dist/channel-BnNWKWvN.js +5 -0
  42. package/dist/chunk-4BX2VUAB-CyPEBoP8.js +8 -0
  43. package/dist/chunk-55IACEB6-w4-quNxZ.js +8 -0
  44. package/dist/chunk-B4BG7PRW-DrV4r72b.js +1375 -0
  45. package/dist/chunk-DI55MBZ5-C4wHkxQf.js +1370 -0
  46. package/dist/chunk-FMBD7UC4-1KdK02xM.js +19 -0
  47. package/dist/chunk-QN33PNHL-DFrR3f1n.js +19 -0
  48. package/dist/chunk-QZHKN3VN-DAS9AWyb.js +15 -0
  49. package/dist/chunk-TZMSLE5B-C9HdFzIP.js +64 -0
  50. package/dist/clarity-BseSxcHx.js +6 -0
  51. package/dist/classDiagram-2ON5EDUG-BEJ5FmEf.js +16 -0
  52. package/dist/classDiagram-v2-WZHVMYZB-BEJ5FmEf.js +16 -0
  53. package/dist/clojure-CXJfHrL3.js +6 -0
  54. package/dist/clone-BPNEuzJI.js +8 -0
  55. package/dist/cmake-BJz8BOTU.js +6 -0
  56. package/dist/cobol-R4Vn9a46.js +10 -0
  57. package/dist/codeowners-Bt9yU6NX.js +6 -0
  58. package/dist/codeql-DHkodjjI.js +6 -0
  59. package/dist/coffee-Dl27lzbd.js +8 -0
  60. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  61. package/dist/coq-B0L9upzn.js +6 -0
  62. package/dist/cose-bilkent-S5V4N54A-BP2I2iQy.js +2609 -0
  63. package/dist/cpp-Cj177cuW.js +18 -0
  64. package/dist/crystal-ymVvJzbZ.js +18 -0
  65. package/dist/csharp-DmxfTLWR.js +6 -0
  66. package/dist/css-CECN5uSL.js +6 -0
  67. package/dist/csv-CmYOceLb.js +6 -0
  68. package/dist/cue-ZzumE7IT.js +6 -0
  69. package/dist/cypher-jpdmjtA6.js +6 -0
  70. package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
  71. package/dist/d-CBagWSwH.js +6 -0
  72. package/dist/dagre-6UL2VRFP-GLlqJd77.js +444 -0
  73. package/dist/dark-plus-pUHDTVV0.js +4 -0
  74. package/dist/dart-6ObCrKr9.js +6 -0
  75. package/dist/dax-CcDT-8dH.js +6 -0
  76. package/dist/defaultLocale-D7EN2tov.js +171 -0
  77. package/dist/desktop-B93p9R9O.js +6 -0
  78. package/dist/diagram-PSM6KHXK-Cudkx7lC.js +531 -0
  79. package/dist/diagram-QEK2KX5R-3WBR4tiq.js +217 -0
  80. package/dist/diagram-S2PKOQOG-BTYcy78O.js +142 -0
  81. package/dist/diff-BxzP2J8R.js +6 -0
  82. package/dist/docker-CsHqm9tx.js +6 -0
  83. package/dist/dotenv-BMjVjUL1.js +6 -0
  84. package/dist/dracula-BtZx2Kac.js +4 -0
  85. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  86. package/dist/dream-maker-PAx17jaB.js +6 -0
  87. package/dist/edge-_LvgTcmu.js +12 -0
  88. package/dist/elixir-BTCUAmQk.js +8 -0
  89. package/dist/elm-BtNbw_Cd.js +8 -0
  90. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  91. package/dist/erDiagram-Q2GNP2WA-CKkpjSHd.js +841 -0
  92. package/dist/erb-D0PIpZCP.js +10 -0
  93. package/dist/erlang-DNcDT8Hi.js +8 -0
  94. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  95. package/dist/everforest-light-BbXl82Em.js +4 -0
  96. package/dist/example-ui-web-shared.css +1 -0
  97. package/dist/example-ui-web-shared.js +13 -0
  98. package/dist/example-ui-web-shared.umd.cjs +3266 -0
  99. package/dist/fennel-N4WcXuKx.js +6 -0
  100. package/dist/fish-B6QqlqeT.js +6 -0
  101. package/dist/flowDiagram-NV44I4VS-BZQmra6J.js +1620 -0
  102. package/dist/fluent-BMXUxfv1.js +6 -0
  103. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  104. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  105. package/dist/fsharp-Pr2u3cIG.js +8 -0
  106. package/dist/ganttDiagram-LVOFAZNH-G4ze91pK.js +2506 -0
  107. package/dist/gdresource-BwtMIoBm.js +10 -0
  108. package/dist/gdscript-BifyeYhI.js +6 -0
  109. package/dist/gdshader-Bk8fF6yr.js +6 -0
  110. package/dist/genie-DzUvd7U9.js +6 -0
  111. package/dist/gherkin-DHRaV0YP.js +6 -0
  112. package/dist/git-commit-Bd32YZ0K.js +8 -0
  113. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  114. package/dist/gitGraph-ZV4HHKMB-ATtQcfVU.js +5 -0
  115. package/dist/gitGraphDiagram-NY62KEGX-wmWYxzVf.js +699 -0
  116. package/dist/github-dark-DenFmJkN.js +4 -0
  117. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  118. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  119. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  120. package/dist/github-light-JYsPkUQd.js +4 -0
  121. package/dist/github-light-default-D99KPAby.js +4 -0
  122. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  123. package/dist/gleam-Bv284lvN.js +6 -0
  124. package/dist/glimmer-js-CkxRszZZ.js +14 -0
  125. package/dist/glimmer-ts-Bi6BYQCn.js +14 -0
  126. package/dist/glsl-CkUcVZNK.js +8 -0
  127. package/dist/gnuplot-yPG9-sE_.js +6 -0
  128. package/dist/go-ChxJuLYK.js +6 -0
  129. package/dist/graph-DtYyQcBS.js +247 -0
  130. package/dist/graphql-BLaPX4fU.js +14 -0
  131. package/dist/groovy-CJQTphOW.js +6 -0
  132. package/dist/gruvbox-dark-hard-C2ND4cMr.js +4 -0
  133. package/dist/gruvbox-dark-medium-C8k4c8au.js +4 -0
  134. package/dist/gruvbox-dark-soft-xx9Q6FaG.js +4 -0
  135. package/dist/gruvbox-light-hard-BpUXv5in.js +4 -0
  136. package/dist/gruvbox-light-medium-D3XFCoU1.js +4 -0
  137. package/dist/gruvbox-light-soft-u7hpfz6Z.js +4 -0
  138. package/dist/hack-Bx1jMtBC.js +10 -0
  139. package/dist/haml-6FagfhCM.js +10 -0
  140. package/dist/handlebars-Bd5Y4M6I.js +14 -0
  141. package/dist/haskell-WeIwNIP6.js +6 -0
  142. package/dist/haxe-TztHsm5T.js +6 -0
  143. package/dist/hcl-D438OF-I.js +6 -0
  144. package/dist/hjson-DYBUbqOl.js +6 -0
  145. package/dist/hlsl-Bk8TCZNL.js +6 -0
  146. package/dist/houston-BDYrDoDW.js +4 -0
  147. package/dist/html-7XVNRwN7.js +10 -0
  148. package/dist/html-derivative-BNxZ5Yf6.js +8 -0
  149. package/dist/http-WC357zBG.js +14 -0
  150. package/dist/hxml-GbqSQCLa.js +8 -0
  151. package/dist/hy-Brt5EZ7-.js +6 -0
  152. package/dist/imba-CimUv-Uh.js +6 -0
  153. package/dist/index-BwnMECPw.js +74557 -0
  154. package/dist/index.d.ts +141 -0
  155. package/dist/info-63CPKGFF-BX_xmFEB.js +5 -0
  156. package/dist/infoDiagram-F6ZHWCRC-DlnNGJa3.js +24 -0
  157. package/dist/ini-BZIuRIvJ.js +6 -0
  158. package/dist/init-DjUOC4st.js +16 -0
  159. package/dist/java-DY6VlHhP.js +6 -0
  160. package/dist/javascript-Dp1Jmi5H.js +6 -0
  161. package/dist/jinja-WEhOU5ES.js +11 -0
  162. package/dist/jison-c2JI40PB.js +8 -0
  163. package/dist/journeyDiagram-XKPGCS4Q-DYIpnLRL.js +834 -0
  164. package/dist/json-DxJze_jm.js +6 -0
  165. package/dist/json5-BT4Fjg39.js +6 -0
  166. package/dist/jsonc-CHjZD8gR.js +6 -0
  167. package/dist/jsonl-BGuvDmy9.js +6 -0
  168. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  169. package/dist/jssm-BcADi6EI.js +6 -0
  170. package/dist/jsx-BtKADgXT.js +6 -0
  171. package/dist/julia-DcoDQokW.js +16 -0
  172. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  173. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  174. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  175. package/dist/kanban-definition-3W4ZIXB7-BfLzEp1W.js +719 -0
  176. package/dist/kotlin-ByBMgTeR.js +6 -0
  177. package/dist/kusto-VWFLl2T0.js +6 -0
  178. package/dist/laserwave-6a00oqik.js +4 -0
  179. package/dist/latex-MZCpjnva.js +8 -0
  180. package/dist/layout-laBzEXyf.js +1324 -0
  181. package/dist/lean-DXqEE_d1.js +6 -0
  182. package/dist/less-B1GLI2Di.js +6 -0
  183. package/dist/light-plus-CZuVqSLX.js +4 -0
  184. package/dist/linear-B_hH_v1-.js +259 -0
  185. package/dist/liquid-3HHuHOZ2.js +14 -0
  186. package/dist/llvm-6RQLId6G.js +6 -0
  187. package/dist/log-Al8wyEFV.js +6 -0
  188. package/dist/logo-DBa4JDzV.js +6 -0
  189. package/dist/lua-kX5WP_P5.js +8 -0
  190. package/dist/luau-DtBSxLyz.js +6 -0
  191. package/dist/make-CsMclxtr.js +6 -0
  192. package/dist/markdown-CrScaQ96.js +6 -0
  193. package/dist/marko-DDi9qpQP.js +14 -0
  194. package/dist/material-theme-D6KBX41T.js +4 -0
  195. package/dist/material-theme-darker-CkRroheE.js +4 -0
  196. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  197. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  198. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  199. package/dist/matlab-BOAaUVP0.js +6 -0
  200. package/dist/mdc-FI2x3BiY.js +12 -0
  201. package/dist/mdx-BOhZZUJ8.js +6 -0
  202. package/dist/mermaid-B0ixDHKN.js +6 -0
  203. package/dist/mermaid-parser.core-BPhNDB0i.js +12966 -0
  204. package/dist/mermaid.core-DRVB33lp.js +14178 -0
  205. package/dist/min-dark-C7ak0t6c.js +4 -0
  206. package/dist/min-light-CKFxVcPp.js +4 -0
  207. package/dist/mindmap-definition-VGOIOE7T-DgF_iRLG.js +784 -0
  208. package/dist/mipsasm-CTx18fBl.js +6 -0
  209. package/dist/mojo-BD611d7o.js +6 -0
  210. package/dist/monokai-C1KBYcO0.js +4 -0
  211. package/dist/move-DSb5dTSj.js +6 -0
  212. package/dist/narrat-DmhDCBs-.js +6 -0
  213. package/dist/nextflow-BAAEJxI_.js +6 -0
  214. package/dist/nginx-5vhPAEw3.js +8 -0
  215. package/dist/night-owl-Bm2rzalh.js +4 -0
  216. package/dist/nim-BhS8gg0S.js +20 -0
  217. package/dist/nix-ceY58Dty.js +6 -0
  218. package/dist/nord-CC5OiUXg.js +4 -0
  219. package/dist/nushell-CQi4NV-2.js +6 -0
  220. package/dist/objective-c-Itk8tzmv.js +6 -0
  221. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  222. package/dist/ocaml-eSVK32Eg.js +6 -0
  223. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  224. package/dist/one-light-D9sNaUtq.js +4 -0
  225. package/dist/ordinal-DfAQgscy.js +61 -0
  226. package/dist/packet-HUATNLJX-9ClN_Rip.js +5 -0
  227. package/dist/pascal-xy8pJNns.js +6 -0
  228. package/dist/perl-BoEn6HmT.js +16 -0
  229. package/dist/php-BRU9zhoN.js +18 -0
  230. package/dist/pie-WTHONI2E-DNhle9n-.js +5 -0
  231. package/dist/pieDiagram-ADFJNKIX-BQY_zi2l.js +161 -0
  232. package/dist/plastic-CSTz3KZp.js +4 -0
  233. package/dist/plsql-pVbGZfOv.js +6 -0
  234. package/dist/po-BNfHvqmm.js +6 -0
  235. package/dist/poimandres-C-VADXHD.js +4 -0
  236. package/dist/polar-CAZahv3u.js +6 -0
  237. package/dist/postcss-05aHdL-n.js +6 -0
  238. package/dist/powerquery-DI9HkTvs.js +6 -0
  239. package/dist/powershell-Clc4ydu-.js +6 -0
  240. package/dist/prisma-FZjmVtSl.js +6 -0
  241. package/dist/prolog-C5-yg4TO.js +6 -0
  242. package/dist/proto-MmCPeFAD.js +6 -0
  243. package/dist/pug-CJWI-qSo.js +12 -0
  244. package/dist/puppet-CUJHmnxV.js +6 -0
  245. package/dist/purescript-rUfGld-4.js +6 -0
  246. package/dist/python-BFNSHbwJ.js +6 -0
  247. package/dist/qml-D3ATcgGh.js +8 -0
  248. package/dist/qmldir-BInDYbpo.js +6 -0
  249. package/dist/qss-AeJTysr_.js +6 -0
  250. package/dist/quadrantDiagram-AYHSOK5B-yqzbwWCe.js +1022 -0
  251. package/dist/r-Bm0uF0U2.js +6 -0
  252. package/dist/racket-B83wSAja.js +6 -0
  253. package/dist/radar-NJJJXTRR-DrUJ4X57.js +5 -0
  254. package/dist/raku-nEQ4ZJJ7.js +6 -0
  255. package/dist/razor-BPFYEoc9.js +10 -0
  256. package/dist/red-7y8PH7HH.js +4 -0
  257. package/dist/reg-m_s_Kiip.js +6 -0
  258. package/dist/regexp-BazyLpPg.js +6 -0
  259. package/dist/rel-BcRfyd6Q.js +6 -0
  260. package/dist/requirementDiagram-UZGBJVZJ-o9pQ6xmh.js +850 -0
  261. package/dist/riscv-Ce8MAQLP.js +6 -0
  262. package/dist/rose-pine-Cr4kwgAY.js +4 -0
  263. package/dist/rose-pine-dawn-ClRRUdXX.js +4 -0
  264. package/dist/rose-pine-moon-ucNn3Gm8.js +4 -0
  265. package/dist/rst-B6mPMsKo.js +22 -0
  266. package/dist/ruby-DInklMmU.js +30 -0
  267. package/dist/rust-CLzF9zIN.js +6 -0
  268. package/dist/sankeyDiagram-TZEHDZUN-DlBKlNR7.js +810 -0
  269. package/dist/sas-fpEvgATw.js +8 -0
  270. package/dist/sass-DxHp5rTx.js +6 -0
  271. package/dist/scala-D4grkFkl.js +6 -0
  272. package/dist/scheme-BCRWuEm4.js +6 -0
  273. package/dist/scss-B1FaCqwR.js +8 -0
  274. package/dist/sdbl-B7T8abf4.js +6 -0
  275. package/dist/sequenceDiagram-WL72ISMW-DL-l4Isj.js +2511 -0
  276. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  277. package/dist/shellscript-InADTalH.js +6 -0
  278. package/dist/shellsession-DiDJNQdy.js +8 -0
  279. package/dist/slack-dark-i7wN4OET.js +4 -0
  280. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  281. package/dist/smalltalk-BlI1_OkM.js +6 -0
  282. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  283. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  284. package/dist/solarized-light-BheCkDPT.js +4 -0
  285. package/dist/solidity-CneOhxmR.js +6 -0
  286. package/dist/soy-LybuU3Y_.js +8 -0
  287. package/dist/sparql-B0KWFEri.js +8 -0
  288. package/dist/splunk-CRXR8A9s.js +6 -0
  289. package/dist/sql-Cn_v3PB0.js +6 -0
  290. package/dist/ssh-config-DP-hNVbF.js +6 -0
  291. package/dist/stata-B8c5fTjX.js +8 -0
  292. package/dist/stateDiagram-FKZM4ZOC--uMIzkuj.js +263 -0
  293. package/dist/stateDiagram-v2-4FDKWEC3-DX9eQdtw.js +16 -0
  294. package/dist/stylus-CyKEU1Ej.js +6 -0
  295. package/dist/svelte-BjDUPxZ1.js +14 -0
  296. package/dist/swift-9UzSvamq.js +6 -0
  297. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  298. package/dist/system-verilog-BCm7smPJ.js +6 -0
  299. package/dist/systemd-C-4qm6XH.js +6 -0
  300. package/dist/talonscript-CFF3LF_O.js +6 -0
  301. package/dist/tasl-Cg_WBUAe.js +6 -0
  302. package/dist/tcl-DN7buRTF.js +6 -0
  303. package/dist/templ-Brj2RH7A.js +12 -0
  304. package/dist/terraform-DGvcn9zM.js +6 -0
  305. package/dist/tex-CmrLTxbG.js +8 -0
  306. package/dist/timeline-definition-IT6M3QCI-Dto4qGp3.js +795 -0
  307. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  308. package/dist/toml-DY62mUL_.js +6 -0
  309. package/dist/treemap-75Q7IDZK-BwkByH_W.js +5 -0
  310. package/dist/ts-tags-CZMzuZh-.js +41 -0
  311. package/dist/tsv-BtvSkaG0.js +6 -0
  312. package/dist/tsx-B8rCNbgL.js +6 -0
  313. package/dist/turtle-_H59FV7D.js +6 -0
  314. package/dist/twig-GjIxYqCX.js +18 -0
  315. package/dist/typescript-mg6ATTE8.js +6 -0
  316. package/dist/typespec-Djmco60m.js +6 -0
  317. package/dist/typst-D_1QKWns.js +6 -0
  318. package/dist/v-BW14IZv7.js +6 -0
  319. package/dist/vala-uxaPR7d1.js +6 -0
  320. package/dist/vb-D8_c5-KN.js +6 -0
  321. package/dist/verilog-B-bybjPF.js +6 -0
  322. package/dist/vesper-BckBta1U.js +4 -0
  323. package/dist/vhdl-CUlNa8ac.js +6 -0
  324. package/dist/viml-DsfA-sWm.js +6 -0
  325. package/dist/vite.svg +1 -0
  326. package/dist/vitesse-black-BoGvW84i.js +4 -0
  327. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  328. package/dist/vitesse-light-CcmG315c.js +4 -0
  329. package/dist/vue-D-ba2-Rx.js +31 -0
  330. package/dist/vue-html-Dn2ZoOSz.js +10 -0
  331. package/dist/vue-vine-Jmfkm6lF.js +20 -0
  332. package/dist/vyper-CPQuu50u.js +6 -0
  333. package/dist/wasm-BBXxrAl7.js +6 -0
  334. package/dist/wasm-DQxwEHae.js +7 -0
  335. package/dist/wenyan-pbVjoM9_.js +6 -0
  336. package/dist/wgsl-DY4iK1q1.js +6 -0
  337. package/dist/wikitext-Z-MoUasO.js +6 -0
  338. package/dist/wit-CQMQOlTg.js +6 -0
  339. package/dist/wolfram-Dz4KXISs.js +6 -0
  340. package/dist/xml-C2J0sS9M.js +8 -0
  341. package/dist/xsl-BmSZphgC.js +8 -0
  342. package/dist/xychartDiagram-PRI3JC2R-Bk3l_WzG.js +1340 -0
  343. package/dist/yaml-DaO7k5B1.js +6 -0
  344. package/dist/zenscript-CxBjpf9c.js +6 -0
  345. package/dist/zig-Vm0PO9wB.js +6 -0
  346. package/package.json +74 -0
@@ -0,0 +1,531 @@
1
+ import { _ as w, F as te, G as ae, K as he, e as ue, l as J, aZ as P, d as Y, b as pe, a as fe, q as ge, t as me, g as ye, s as Se, H as ve, a_ as xe, z as be } from "./mermaid.core-DRVB33lp.js";
2
+ import { s as we } from "./chunk-QN33PNHL-DFrR3f1n.js";
3
+ import { p as Ce } from "./chunk-4BX2VUAB-CyPEBoP8.js";
4
+ import { p as Te } from "./mermaid-parser.core-BPhNDB0i.js";
5
+ import { b as O } from "./defaultLocale-D7EN2tov.js";
6
+ import { o as U } from "./ordinal-DfAQgscy.js";
7
+ function Le(t) {
8
+ var a = 0, l = t.children, n = l && l.length;
9
+ if (!n) a = 1;
10
+ else for (; --n >= 0; ) a += l[n].value;
11
+ t.value = a;
12
+ }
13
+ function $e() {
14
+ return this.eachAfter(Le);
15
+ }
16
+ function Ae(t, a) {
17
+ let l = -1;
18
+ for (const n of this)
19
+ t.call(a, n, ++l, this);
20
+ return this;
21
+ }
22
+ function Fe(t, a) {
23
+ for (var l = this, n = [l], o, s, d = -1; l = n.pop(); )
24
+ if (t.call(a, l, ++d, this), o = l.children)
25
+ for (s = o.length - 1; s >= 0; --s)
26
+ n.push(o[s]);
27
+ return this;
28
+ }
29
+ function ke(t, a) {
30
+ for (var l = this, n = [l], o = [], s, d, h, g = -1; l = n.pop(); )
31
+ if (o.push(l), s = l.children)
32
+ for (d = 0, h = s.length; d < h; ++d)
33
+ n.push(s[d]);
34
+ for (; l = o.pop(); )
35
+ t.call(a, l, ++g, this);
36
+ return this;
37
+ }
38
+ function Ne(t, a) {
39
+ let l = -1;
40
+ for (const n of this)
41
+ if (t.call(a, n, ++l, this))
42
+ return n;
43
+ }
44
+ function Me(t) {
45
+ return this.eachAfter(function(a) {
46
+ for (var l = +t(a.data) || 0, n = a.children, o = n && n.length; --o >= 0; ) l += n[o].value;
47
+ a.value = l;
48
+ });
49
+ }
50
+ function _e(t) {
51
+ return this.eachBefore(function(a) {
52
+ a.children && a.children.sort(t);
53
+ });
54
+ }
55
+ function ze(t) {
56
+ for (var a = this, l = Ve(a, t), n = [a]; a !== l; )
57
+ a = a.parent, n.push(a);
58
+ for (var o = n.length; t !== l; )
59
+ n.splice(o, 0, t), t = t.parent;
60
+ return n;
61
+ }
62
+ function Ve(t, a) {
63
+ if (t === a) return t;
64
+ var l = t.ancestors(), n = a.ancestors(), o = null;
65
+ for (t = l.pop(), a = n.pop(); t === a; )
66
+ o = t, t = l.pop(), a = n.pop();
67
+ return o;
68
+ }
69
+ function De() {
70
+ for (var t = this, a = [t]; t = t.parent; )
71
+ a.push(t);
72
+ return a;
73
+ }
74
+ function Pe() {
75
+ return Array.from(this);
76
+ }
77
+ function Be() {
78
+ var t = [];
79
+ return this.eachBefore(function(a) {
80
+ a.children || t.push(a);
81
+ }), t;
82
+ }
83
+ function Re() {
84
+ var t = this, a = [];
85
+ return t.each(function(l) {
86
+ l !== t && a.push({ source: l.parent, target: l });
87
+ }), a;
88
+ }
89
+ function* Ee() {
90
+ var t = this, a, l = [t], n, o, s;
91
+ do
92
+ for (a = l.reverse(), l = []; t = a.pop(); )
93
+ if (yield t, n = t.children)
94
+ for (o = 0, s = n.length; o < s; ++o)
95
+ l.push(n[o]);
96
+ while (l.length);
97
+ }
98
+ function Q(t, a) {
99
+ t instanceof Map ? (t = [void 0, t], a === void 0 && (a = Ie)) : a === void 0 && (a = He);
100
+ for (var l = new Z(t), n, o = [l], s, d, h, g; n = o.pop(); )
101
+ if ((d = a(n.data)) && (g = (d = Array.from(d)).length))
102
+ for (n.children = d, h = g - 1; h >= 0; --h)
103
+ o.push(s = d[h] = new Z(d[h])), s.parent = n, s.depth = n.depth + 1;
104
+ return l.eachBefore(Ge);
105
+ }
106
+ function We() {
107
+ return Q(this).eachBefore(Oe);
108
+ }
109
+ function He(t) {
110
+ return t.children;
111
+ }
112
+ function Ie(t) {
113
+ return Array.isArray(t) ? t[1] : null;
114
+ }
115
+ function Oe(t) {
116
+ t.data.value !== void 0 && (t.value = t.data.value), t.data = t.data.data;
117
+ }
118
+ function Ge(t) {
119
+ var a = 0;
120
+ do
121
+ t.height = a;
122
+ while ((t = t.parent) && t.height < ++a);
123
+ }
124
+ function Z(t) {
125
+ this.data = t, this.depth = this.height = 0, this.parent = null;
126
+ }
127
+ Z.prototype = Q.prototype = {
128
+ constructor: Z,
129
+ count: $e,
130
+ each: Ae,
131
+ eachAfter: ke,
132
+ eachBefore: Fe,
133
+ find: Ne,
134
+ sum: Me,
135
+ sort: _e,
136
+ path: ze,
137
+ ancestors: De,
138
+ descendants: Pe,
139
+ leaves: Be,
140
+ links: Re,
141
+ copy: We,
142
+ [Symbol.iterator]: Ee
143
+ };
144
+ function qe(t) {
145
+ if (typeof t != "function") throw new Error();
146
+ return t;
147
+ }
148
+ function G() {
149
+ return 0;
150
+ }
151
+ function q(t) {
152
+ return function() {
153
+ return t;
154
+ };
155
+ }
156
+ function Xe(t) {
157
+ t.x0 = Math.round(t.x0), t.y0 = Math.round(t.y0), t.x1 = Math.round(t.x1), t.y1 = Math.round(t.y1);
158
+ }
159
+ function je(t, a, l, n, o) {
160
+ for (var s = t.children, d, h = -1, g = s.length, c = t.value && (n - a) / t.value; ++h < g; )
161
+ d = s[h], d.y0 = l, d.y1 = o, d.x0 = a, d.x1 = a += d.value * c;
162
+ }
163
+ function Ye(t, a, l, n, o) {
164
+ for (var s = t.children, d, h = -1, g = s.length, c = t.value && (o - l) / t.value; ++h < g; )
165
+ d = s[h], d.x0 = a, d.x1 = n, d.y0 = l, d.y1 = l += d.value * c;
166
+ }
167
+ var Ze = (1 + Math.sqrt(5)) / 2;
168
+ function Ke(t, a, l, n, o, s) {
169
+ for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k, V, E, M; u < r; ) {
170
+ x = o - l, S = s - n;
171
+ do
172
+ p = h[b++].value;
173
+ while (!p && b < r);
174
+ for (m = N = p, E = Math.max(S / x, x / S) / (v * t), M = p * p * E, V = Math.max(N / M, M / m); b < r; ++b) {
175
+ if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * E, k = Math.max(N / M, M / m), k > V) {
176
+ p -= c;
177
+ break;
178
+ }
179
+ V = k;
180
+ }
181
+ d.push(g = { value: p, dice: x < S, children: h.slice(u, b) }), g.dice ? je(g, l, n, o, v ? n += S * p / v : s) : Ye(g, l, n, v ? l += x * p / v : o, s), v -= p, u = b;
182
+ }
183
+ return d;
184
+ }
185
+ const Ue = (function t(a) {
186
+ function l(n, o, s, d, h) {
187
+ Ke(a, n, o, s, d, h);
188
+ }
189
+ return l.ratio = function(n) {
190
+ return t((n = +n) > 1 ? n : 1);
191
+ }, l;
192
+ })(Ze);
193
+ function Je() {
194
+ var t = Ue, a = !1, l = 1, n = 1, o = [0], s = G, d = G, h = G, g = G, c = G;
195
+ function u(r) {
196
+ return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), o = [0], a && r.eachBefore(Xe), r;
197
+ }
198
+ function b(r) {
199
+ var x = o[r.depth], S = r.x0 + x, v = r.y0 + x, p = r.x1 - x, m = r.y1 - x;
200
+ p < S && (S = p = (S + p) / 2), m < v && (v = m = (v + m) / 2), r.x0 = S, r.y0 = v, r.x1 = p, r.y1 = m, r.children && (x = o[r.depth + 1] = s(r) / 2, S += c(r) - x, v += d(r) - x, p -= h(r) - x, m -= g(r) - x, p < S && (S = p = (S + p) / 2), m < v && (v = m = (v + m) / 2), t(r, S, v, p, m));
201
+ }
202
+ return u.round = function(r) {
203
+ return arguments.length ? (a = !!r, u) : a;
204
+ }, u.size = function(r) {
205
+ return arguments.length ? (l = +r[0], n = +r[1], u) : [l, n];
206
+ }, u.tile = function(r) {
207
+ return arguments.length ? (t = qe(r), u) : t;
208
+ }, u.padding = function(r) {
209
+ return arguments.length ? u.paddingInner(r).paddingOuter(r) : u.paddingInner();
210
+ }, u.paddingInner = function(r) {
211
+ return arguments.length ? (s = typeof r == "function" ? r : q(+r), u) : s;
212
+ }, u.paddingOuter = function(r) {
213
+ return arguments.length ? u.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r) : u.paddingTop();
214
+ }, u.paddingTop = function(r) {
215
+ return arguments.length ? (d = typeof r == "function" ? r : q(+r), u) : d;
216
+ }, u.paddingRight = function(r) {
217
+ return arguments.length ? (h = typeof r == "function" ? r : q(+r), u) : h;
218
+ }, u.paddingBottom = function(r) {
219
+ return arguments.length ? (g = typeof r == "function" ? r : q(+r), u) : g;
220
+ }, u.paddingLeft = function(r) {
221
+ return arguments.length ? (c = typeof r == "function" ? r : q(+r), u) : c;
222
+ }, u;
223
+ }
224
+ var R, ne = (R = class {
225
+ constructor() {
226
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = pe, this.getAccTitle = fe, this.setDiagramTitle = ge, this.getDiagramTitle = me, this.getAccDescription = ye, this.setAccDescription = Se;
227
+ }
228
+ getNodes() {
229
+ return this.nodes;
230
+ }
231
+ getConfig() {
232
+ const a = ve, l = ae();
233
+ return te({
234
+ ...a.treemap,
235
+ ...l.treemap ?? {}
236
+ });
237
+ }
238
+ addNode(a, l) {
239
+ this.nodes.push(a), this.levels.set(a, l), l === 0 && (this.outerNodes.push(a), this.root ??= a);
240
+ }
241
+ getRoot() {
242
+ return { name: "", children: this.outerNodes };
243
+ }
244
+ addClass(a, l) {
245
+ const n = this.classes.get(a) ?? { id: a, styles: [], textStyles: [] }, o = l.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
246
+ o && o.forEach((s) => {
247
+ xe(s) && (n?.textStyles ? n.textStyles.push(s) : n.textStyles = [s]), n?.styles ? n.styles.push(s) : n.styles = [s];
248
+ }), this.classes.set(a, n);
249
+ }
250
+ getClasses() {
251
+ return this.classes;
252
+ }
253
+ getStylesForClass(a) {
254
+ return this.classes.get(a)?.styles ?? [];
255
+ }
256
+ clear() {
257
+ be(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
258
+ }
259
+ }, w(R, "TreeMapDB"), R);
260
+ function le(t) {
261
+ if (!t.length)
262
+ return [];
263
+ const a = [], l = [];
264
+ return t.forEach((n) => {
265
+ const o = {
266
+ name: n.name,
267
+ children: n.type === "Leaf" ? void 0 : []
268
+ };
269
+ for (o.classSelector = n?.classSelector, n?.cssCompiledStyles && (o.cssCompiledStyles = [n.cssCompiledStyles]), n.type === "Leaf" && n.value !== void 0 && (o.value = n.value); l.length > 0 && l[l.length - 1].level >= n.level; )
270
+ l.pop();
271
+ if (l.length === 0)
272
+ a.push(o);
273
+ else {
274
+ const s = l[l.length - 1].node;
275
+ s.children ? s.children.push(o) : s.children = [o];
276
+ }
277
+ n.type !== "Leaf" && l.push({ node: o, level: n.level });
278
+ }), a;
279
+ }
280
+ w(le, "buildHierarchy");
281
+ var Qe = /* @__PURE__ */ w((t, a) => {
282
+ Ce(t, a);
283
+ const l = [];
284
+ for (const s of t.TreemapRows ?? [])
285
+ s.$type === "ClassDefStatement" && a.addClass(s.className ?? "", s.styleText ?? "");
286
+ for (const s of t.TreemapRows ?? []) {
287
+ const d = s.item;
288
+ if (!d)
289
+ continue;
290
+ const h = s.indent ? parseInt(s.indent) : 0, g = et(d), c = d.classSelector ? a.getStylesForClass(d.classSelector) : [], u = c.length > 0 ? c.join(";") : void 0, b = {
291
+ level: h,
292
+ name: g,
293
+ type: d.$type,
294
+ value: d.value,
295
+ classSelector: d.classSelector,
296
+ cssCompiledStyles: u
297
+ };
298
+ l.push(b);
299
+ }
300
+ const n = le(l), o = /* @__PURE__ */ w((s, d) => {
301
+ for (const h of s)
302
+ a.addNode(h, d), h.children && h.children.length > 0 && o(h.children, d + 1);
303
+ }, "addNodesRecursively");
304
+ o(n, 0);
305
+ }, "populate"), et = /* @__PURE__ */ w((t) => t.name ? String(t.name) : "", "getItemName"), re = {
306
+ // @ts-expect-error - TreeMapDB is not assignable to DiagramDB
307
+ parser: { yy: void 0 },
308
+ parse: /* @__PURE__ */ w(async (t) => {
309
+ try {
310
+ const l = await Te("treemap", t);
311
+ J.debug("Treemap AST:", l);
312
+ const n = re.parser?.yy;
313
+ if (!(n instanceof ne))
314
+ throw new Error(
315
+ "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."
316
+ );
317
+ Qe(l, n);
318
+ } catch (a) {
319
+ throw J.error("Error parsing treemap:", a), a;
320
+ }
321
+ }, "parse")
322
+ }, tt = 10, B = 10, X = 25, at = /* @__PURE__ */ w((t, a, l, n) => {
323
+ const o = n.db, s = o.getConfig(), d = s.padding ?? tt, h = o.getDiagramTitle(), g = o.getRoot(), { themeVariables: c } = ae();
324
+ if (!g)
325
+ return;
326
+ const u = h ? 30 : 0, b = he(a), r = s.nodeWidth ? s.nodeWidth * B : 960, x = s.nodeHeight ? s.nodeHeight * B : 500, S = r, v = x + u;
327
+ b.attr("viewBox", `0 0 ${S} ${v}`), ue(b, v, S, s.useMaxWidth);
328
+ let p;
329
+ try {
330
+ const e = s.valueFormat || ",";
331
+ if (e === "$0,0")
332
+ p = /* @__PURE__ */ w((i) => "$" + O(",")(i), "valueFormat");
333
+ else if (e.startsWith("$") && e.includes(",")) {
334
+ const i = /\.\d+/.exec(e), f = i ? i[0] : "";
335
+ p = /* @__PURE__ */ w((C) => "$" + O("," + f)(C), "valueFormat");
336
+ } else if (e.startsWith("$")) {
337
+ const i = e.substring(1);
338
+ p = /* @__PURE__ */ w((f) => "$" + O(i || "")(f), "valueFormat");
339
+ } else
340
+ p = O(e);
341
+ } catch (e) {
342
+ J.error("Error creating format function:", e), p = O(",");
343
+ }
344
+ const m = U().range([
345
+ "transparent",
346
+ c.cScale0,
347
+ c.cScale1,
348
+ c.cScale2,
349
+ c.cScale3,
350
+ c.cScale4,
351
+ c.cScale5,
352
+ c.cScale6,
353
+ c.cScale7,
354
+ c.cScale8,
355
+ c.cScale9,
356
+ c.cScale10,
357
+ c.cScale11
358
+ ]), N = U().range([
359
+ "transparent",
360
+ c.cScalePeer0,
361
+ c.cScalePeer1,
362
+ c.cScalePeer2,
363
+ c.cScalePeer3,
364
+ c.cScalePeer4,
365
+ c.cScalePeer5,
366
+ c.cScalePeer6,
367
+ c.cScalePeer7,
368
+ c.cScalePeer8,
369
+ c.cScalePeer9,
370
+ c.cScalePeer10,
371
+ c.cScalePeer11
372
+ ]), k = U().range([
373
+ c.cScaleLabel0,
374
+ c.cScaleLabel1,
375
+ c.cScaleLabel2,
376
+ c.cScaleLabel3,
377
+ c.cScaleLabel4,
378
+ c.cScaleLabel5,
379
+ c.cScaleLabel6,
380
+ c.cScaleLabel7,
381
+ c.cScaleLabel8,
382
+ c.cScaleLabel9,
383
+ c.cScaleLabel10,
384
+ c.cScaleLabel11
385
+ ]);
386
+ h && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
387
+ const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), E = Q(g).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Je().size([r, x]).paddingTop(
388
+ (e) => e.children && e.children.length > 0 ? X + B : 0
389
+ ).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), W = V.selectAll(".treemapSection").data(se).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
390
+ W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", X).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), W.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", X), W.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) => m(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) => {
391
+ if (e.depth === 0)
392
+ return "display: none;";
393
+ const i = P({ cssCompiledStyles: e.data.cssCompiledStyles });
394
+ return i.nodeStyles + ";" + i.borderStyles.join(";");
395
+ }), W.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", X / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => {
396
+ if (e.depth === 0)
397
+ return "display: none;";
398
+ 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 });
399
+ return i + f.labelStyles.replace("color:", "fill:");
400
+ }).each(function(e) {
401
+ if (e.depth === 0)
402
+ return;
403
+ const i = Y(this), f = e.data.name;
404
+ i.text(f);
405
+ const C = e.x1 - e.x0, L = 6;
406
+ let $;
407
+ s.showValues !== !1 && e.value ? $ = C - 10 - 30 - 10 - L : $ = C - L - 6;
408
+ const A = Math.max(15, $), y = i.node();
409
+ if (y.getComputedTextLength() > A) {
410
+ let T = f;
411
+ for (; T.length > 0; ) {
412
+ if (T = f.substring(0, T.length - 1), T.length === 0) {
413
+ i.text("..."), y.getComputedTextLength() > A && i.text("");
414
+ break;
415
+ }
416
+ if (i.text(T + "..."), y.getComputedTextLength() <= A)
417
+ break;
418
+ }
419
+ }
420
+ }), s.showValues !== !1 && W.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", X / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? p(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
421
+ if (e.depth === 0)
422
+ return "display: none;";
423
+ 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 });
424
+ return i + f.labelStyles.replace("color:", "fill:");
425
+ });
426
+ 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})`);
427
+ 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 ? m(e.parent.data.name) : m(e.data.name)).attr("style", (e) => P({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? m(e.parent.data.name) : m(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) => {
428
+ const i = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
429
+ return i + f.labelStyles.replace("color:", "fill:");
430
+ }).attr("clip-path", (e, i) => `url(#clip-${a}-${i})`).text((e) => e.data.name).each(function(e) {
431
+ const i = Y(this), f = e.x1 - e.x0, C = e.y1 - e.y0, L = i.node(), $ = 4, D = f - 2 * $, A = C - 2 * $;
432
+ if (D < 10 || A < 10) {
433
+ i.style("display", "none");
434
+ return;
435
+ }
436
+ let y = parseInt(i.style("font-size"), 10);
437
+ const _ = 8, F = 28, T = 0.6, z = 6, H = 2;
438
+ for (; L.getComputedTextLength() > D && y > _; )
439
+ y--, i.style("font-size", `${y}px`);
440
+ let I = Math.max(
441
+ z,
442
+ Math.min(F, Math.round(y * T))
443
+ ), K = y + H + I;
444
+ for (; K > A && y > _ && (y--, I = Math.max(
445
+ z,
446
+ Math.min(F, Math.round(y * T))
447
+ ), !(I < z && y === _)); )
448
+ i.style("font-size", `${y}px`), K = y + H + I;
449
+ i.style("font-size", `${y}px`), (L.getComputedTextLength() > D || y < _ || A < y) && i.style("display", "none");
450
+ }), s.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
451
+ return (i.y1 - i.y0) / 2;
452
+ }).attr("style", (i) => {
453
+ const f = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(i.data.name) + ";", C = P({ cssCompiledStyles: i.data.cssCompiledStyles });
454
+ return f + C.labelStyles.replace("color:", "fill:");
455
+ }).attr("clip-path", (i, f) => `url(#clip-${a}-${f})`).text((i) => i.value ? p(i.value) : "").each(function(i) {
456
+ const f = Y(this), C = this.parentNode;
457
+ if (!C) {
458
+ f.style("display", "none");
459
+ return;
460
+ }
461
+ const L = Y(C).select(".treemapLabel");
462
+ if (L.empty() || L.style("display") === "none") {
463
+ f.style("display", "none");
464
+ return;
465
+ }
466
+ const $ = parseFloat(L.style("font-size")), D = 28, A = 0.6, y = 6, _ = 2, F = Math.max(
467
+ y,
468
+ Math.min(D, Math.round($ * A))
469
+ );
470
+ f.style("font-size", `${F}px`);
471
+ const z = (i.y1 - i.y0) / 2 + $ / 2 + _;
472
+ f.attr("y", z);
473
+ const H = i.x1 - i.x0, ce = i.y1 - i.y0 - 4, de = H - 8;
474
+ f.node().getComputedTextLength() > de || z + F > ce || F < y ? f.style("display", "none") : f.style("display", null);
475
+ });
476
+ const oe = s.diagramPadding ?? 8;
477
+ we(b, oe, "flowchart", s?.useMaxWidth || !1);
478
+ }, "draw"), nt = /* @__PURE__ */ w(function(t, a) {
479
+ return a.db.getClasses();
480
+ }, "getClasses"), lt = { draw: at, getClasses: nt }, rt = {
481
+ sectionStrokeColor: "black",
482
+ sectionStrokeWidth: "1",
483
+ sectionFillColor: "#efefef",
484
+ leafStrokeColor: "black",
485
+ leafStrokeWidth: "1",
486
+ leafFillColor: "#efefef",
487
+ labelColor: "black",
488
+ labelFontSize: "12px",
489
+ valueFontSize: "10px",
490
+ valueColor: "black",
491
+ titleColor: "black",
492
+ titleFontSize: "14px"
493
+ }, st = /* @__PURE__ */ w(({
494
+ treemap: t
495
+ } = {}) => {
496
+ const a = te(rt, t);
497
+ return `
498
+ .treemapNode.section {
499
+ stroke: ${a.sectionStrokeColor};
500
+ stroke-width: ${a.sectionStrokeWidth};
501
+ fill: ${a.sectionFillColor};
502
+ }
503
+ .treemapNode.leaf {
504
+ stroke: ${a.leafStrokeColor};
505
+ stroke-width: ${a.leafStrokeWidth};
506
+ fill: ${a.leafFillColor};
507
+ }
508
+ .treemapLabel {
509
+ fill: ${a.labelColor};
510
+ font-size: ${a.labelFontSize};
511
+ }
512
+ .treemapValue {
513
+ fill: ${a.valueColor};
514
+ font-size: ${a.valueFontSize};
515
+ }
516
+ .treemapTitle {
517
+ fill: ${a.titleColor};
518
+ font-size: ${a.titleFontSize};
519
+ }
520
+ `;
521
+ }, "getStyles"), it = st, gt = {
522
+ parser: re,
523
+ get db() {
524
+ return new ne();
525
+ },
526
+ renderer: lt,
527
+ styles: it
528
+ };
529
+ export {
530
+ gt as diagram
531
+ };