mio-previewer 0.2.73 → 0.2.76

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 (282) hide show
  1. package/README.md +1 -0
  2. package/README.zh-CN.md +2 -1
  3. package/dist/_basePickBy-CXmXW7jd.js +166 -0
  4. package/dist/_basePickBy-CtuVwROD.cjs +1 -0
  5. package/dist/_baseUniq-CGoiOkSa.js +682 -0
  6. package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
  7. package/dist/_createAssigner-DqH64jc7.cjs +1 -0
  8. package/dist/_createAssigner-IEX8lwxm.js +573 -0
  9. package/dist/arc-C78br9Yj.cjs +1 -0
  10. package/dist/arc-vLgDTVZZ.js +80 -0
  11. package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
  12. package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
  13. package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
  14. package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
  15. package/dist/array-CApNbSU9.js +6 -0
  16. package/dist/array-DZSRzHA_.cjs +1 -0
  17. package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
  18. package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
  19. package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
  20. package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
  21. package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
  22. package/dist/channel-BWHkpgVD.cjs +1 -0
  23. package/dist/channel-JT7eWw2w.js +5 -0
  24. package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
  25. package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
  26. package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
  27. package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
  28. package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
  29. package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
  30. package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
  31. package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
  32. package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
  33. package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
  34. package/dist/chunk-BNMv73og.cjs +1 -0
  35. package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
  36. package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
  37. package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
  38. package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
  39. package/dist/chunk-Dbv0sNQl.js +20 -0
  40. package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
  41. package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
  42. package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
  43. package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
  44. package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
  45. package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
  46. package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
  47. package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
  48. package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
  49. package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
  50. package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
  51. package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
  52. package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
  53. package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
  54. package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
  55. package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
  56. package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
  57. package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
  58. package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
  59. package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
  60. package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
  61. package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
  62. package/dist/clone-B0KDIkSS.js +8 -0
  63. package/dist/clone-wvtBTB6v.cjs +1 -0
  64. package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
  65. package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
  66. package/dist/custom-Bl_fVJZ0.cjs +84 -0
  67. package/dist/custom-D-TzPpWT.js +5281 -0
  68. package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
  69. package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
  70. package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
  71. package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
  72. package/dist/dagre-BfAHSwtP.js +1472 -0
  73. package/dist/dagre-Buvkww-e.cjs +1 -0
  74. package/dist/defaultLocale-B5dSAwiC.js +201 -0
  75. package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
  76. package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
  77. package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
  78. package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
  79. package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
  80. package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
  81. package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
  82. package/dist/dist-DC-lM4uX.cjs +1 -0
  83. package/dist/dist-zNcLEPGR.js +51 -0
  84. package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
  85. package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
  86. package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
  87. package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
  88. package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
  89. package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
  90. package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
  91. package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
  92. package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
  93. package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
  94. package/dist/graphlib-C3tPLMbC.js +225 -0
  95. package/dist/graphlib-Cdg0u3TT.cjs +1 -0
  96. package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
  97. package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
  98. package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
  99. package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
  100. package/dist/init-07zIhv_j.cjs +1 -0
  101. package/dist/init-Bwwdo3M6.js +15 -0
  102. package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
  103. package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
  104. package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
  105. package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
  106. package/dist/katex-6UpFeIdV.cjs +261 -0
  107. package/dist/katex-BHcJffnM.js +22112 -0
  108. package/dist/line-DYhVGH2B.js +34 -0
  109. package/dist/line-DdNAPGaw.cjs +1 -0
  110. package/dist/linear-n4_iirEu.js +289 -0
  111. package/dist/linear-rQLpRrSH.cjs +1 -0
  112. package/dist/loadCss-D6257oR0.js +8 -0
  113. package/dist/loadCss-DhrQh6-A.cjs +1 -0
  114. package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
  115. package/dist/markdown-it-D-hH4G7k.js +173 -0
  116. package/dist/math-G8rF7UWn.cjs +1 -0
  117. package/dist/math-H49DsxYR.js +10 -0
  118. package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
  119. package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
  120. package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
  121. package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
  122. package/dist/mio-previewer.cjs.js +11 -21
  123. package/dist/mio-previewer.css +2 -9
  124. package/dist/mio-previewer.esm.js +4939 -0
  125. package/dist/ordinal-C55HfHHp.js +65 -0
  126. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  127. package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
  128. package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
  129. package/dist/path-DNvJyUE8.js +85 -0
  130. package/dist/path-Kklx0M1v.cjs +1 -0
  131. package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
  132. package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
  133. package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
  134. package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
  135. package/dist/plugins/custom.cjs.js +1 -1
  136. package/dist/plugins/custom.esm.js +2 -0
  137. package/dist/plugins/markdown-it.cjs.js +1 -3
  138. package/dist/plugins/markdown-it.esm.js +2 -0
  139. package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
  140. package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
  141. package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
  142. package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
  143. package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
  144. package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
  145. package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
  146. package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
  147. package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
  148. package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
  149. package/dist/src-BMjps4Ui.cjs +1 -0
  150. package/dist/src-BuisGndr.js +2149 -0
  151. package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
  152. package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
  153. package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
  154. package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
  155. package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
  156. package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
  157. package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
  158. package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
  159. package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
  160. package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
  161. package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
  162. package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
  163. package/package.json +2 -2
  164. package/dist/_basePickBy-Be3yyf2d.js +0 -151
  165. package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
  166. package/dist/_baseUniq-BXkA0Pgx.js +0 -614
  167. package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
  168. package/dist/arc-B-QGG8RZ.cjs +0 -1
  169. package/dist/arc-djW14lrn.js +0 -83
  170. package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
  171. package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
  172. package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
  173. package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
  174. package/dist/assets/parser.worker-67NQKZt5.js +0 -16
  175. package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
  176. package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
  177. package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
  178. package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
  179. package/dist/channel-D_ITz6Jy.cjs +0 -1
  180. package/dist/channel-sXy9EduO.js +0 -5
  181. package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
  182. package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
  183. package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
  184. package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
  185. package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
  186. package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
  187. package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
  188. package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
  189. package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
  190. package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
  191. package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
  192. package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
  193. package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
  194. package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
  195. package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
  196. package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
  197. package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
  198. package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
  199. package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
  200. package/dist/clone-DOYxaT_d.js +0 -8
  201. package/dist/clone-DSlm33NG.cjs +0 -1
  202. package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
  203. package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
  204. package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
  205. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  206. package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
  207. package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
  208. package/dist/defaultLocale-D7EN2tov.js +0 -171
  209. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  210. package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
  211. package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
  212. package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
  213. package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
  214. package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
  215. package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
  216. package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
  217. package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
  218. package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
  219. package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
  220. package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
  221. package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
  222. package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
  223. package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
  224. package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
  225. package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
  226. package/dist/graph-DEnt0OtZ.js +0 -247
  227. package/dist/graph-Dgcjs2XL.cjs +0 -1
  228. package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
  229. package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
  230. package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
  231. package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
  232. package/dist/init-CHZsXQcr.cjs +0 -1
  233. package/dist/init-DjUOC4st.js +0 -16
  234. package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
  235. package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
  236. package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
  237. package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
  238. package/dist/katex-CmGeg_OO.js +0 -11692
  239. package/dist/katex-DEiiRhcn.cjs +0 -261
  240. package/dist/layout-BDNzBIaA.cjs +0 -1
  241. package/dist/layout-DTBfbHzy.js +0 -1324
  242. package/dist/linear-BRl2UYUr.cjs +0 -1
  243. package/dist/linear-CwbXkgvF.js +0 -259
  244. package/dist/loadCss-BbD6mdv-.cjs +0 -1
  245. package/dist/loadCss-DS0Fuaxe.js +0 -8
  246. package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
  247. package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
  248. package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
  249. package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
  250. package/dist/mio-previewer.es.js +0 -6171
  251. package/dist/ordinal-CagbB1m8.cjs +0 -1
  252. package/dist/ordinal-DfAQgscy.js +0 -61
  253. package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
  254. package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
  255. package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
  256. package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
  257. package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
  258. package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
  259. package/dist/plugins/custom.es.js +0 -85
  260. package/dist/plugins/markdown-it.es.js +0 -173
  261. package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
  262. package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
  263. package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
  264. package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
  265. package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
  266. package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
  267. package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
  268. package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
  269. package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
  270. package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
  271. package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
  272. package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
  273. package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
  274. package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
  275. package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
  276. package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
  277. package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
  278. package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
  279. package/dist/viewer-CZUSHxhf.js +0 -19131
  280. package/dist/viewer-Canph5Zx.cjs +0 -305
  281. package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
  282. package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
@@ -0,0 +1,527 @@
1
+ import { f as e } from "./custom-D-TzPpWT.js";
2
+ import { g as t, h as n, p as r } from "./src-BuisGndr.js";
3
+ import { B as i, C as a, U as o, _ as s, a as c, c as l, d as u, v as d, y as f, z as p } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
4
+ import { t as m } from "./ordinal-C55HfHHp.js";
5
+ import { t as h } from "./defaultLocale-B5dSAwiC.js";
6
+ import { r as g } from "./chunk-S3R3BYOJ-CG6GoSCd.js";
7
+ import { i as _, n as v } from "./chunk-ATLVNIR6-DHlCNWnJ.js";
8
+ import { t as y } from "./mermaid-parser.core-B84fnaGG.js";
9
+ import { t as b } from "./chunk-4BX2VUAB-BZTgbbzC.js";
10
+ import { t as x } from "./chunk-QN33PNHL-BFbXAWI4.js";
11
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/count.js
12
+ function S(e) {
13
+ var t = 0, n = e.children, r = n && n.length;
14
+ if (!r) t = 1;
15
+ else for (; --r >= 0;) t += n[r].value;
16
+ e.value = t;
17
+ }
18
+ function C() {
19
+ return this.eachAfter(S);
20
+ }
21
+ //#endregion
22
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/each.js
23
+ function w(e, t) {
24
+ let n = -1;
25
+ for (let r of this) e.call(t, r, ++n, this);
26
+ return this;
27
+ }
28
+ //#endregion
29
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
30
+ function T(e, t) {
31
+ for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
32
+ return this;
33
+ }
34
+ //#endregion
35
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
36
+ function E(e, t) {
37
+ for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
38
+ for (; n = i.pop();) e.call(t, n, ++c, this);
39
+ return this;
40
+ }
41
+ //#endregion
42
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/find.js
43
+ function D(e, t) {
44
+ let n = -1;
45
+ for (let r of this) if (e.call(t, r, ++n, this)) return r;
46
+ }
47
+ //#endregion
48
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/sum.js
49
+ function O(e) {
50
+ return this.eachAfter(function(t) {
51
+ for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
52
+ t.value = n;
53
+ });
54
+ }
55
+ //#endregion
56
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/sort.js
57
+ function k(e) {
58
+ return this.eachBefore(function(t) {
59
+ t.children && t.children.sort(e);
60
+ });
61
+ }
62
+ //#endregion
63
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/path.js
64
+ function A(e) {
65
+ for (var t = this, n = j(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
66
+ for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
67
+ return r;
68
+ }
69
+ function j(e, t) {
70
+ if (e === t) return e;
71
+ var n = e.ancestors(), r = t.ancestors(), i = null;
72
+ for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
73
+ return i;
74
+ }
75
+ //#endregion
76
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/ancestors.js
77
+ function M() {
78
+ for (var e = this, t = [e]; e = e.parent;) t.push(e);
79
+ return t;
80
+ }
81
+ //#endregion
82
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/descendants.js
83
+ function N() {
84
+ return Array.from(this);
85
+ }
86
+ //#endregion
87
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/leaves.js
88
+ function P() {
89
+ var e = [];
90
+ return this.eachBefore(function(t) {
91
+ t.children || e.push(t);
92
+ }), e;
93
+ }
94
+ //#endregion
95
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/links.js
96
+ function F() {
97
+ var e = this, t = [];
98
+ return e.each(function(n) {
99
+ n !== e && t.push({
100
+ source: n.parent,
101
+ target: n
102
+ });
103
+ }), t;
104
+ }
105
+ //#endregion
106
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/iterator.js
107
+ function* I() {
108
+ var e = this, t, n = [e], r, i, a;
109
+ do
110
+ for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
111
+ while (n.length);
112
+ }
113
+ //#endregion
114
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js
115
+ function L(e, t) {
116
+ e instanceof Map ? (e = [void 0, e], t === void 0 && (t = B)) : t === void 0 && (t = z);
117
+ for (var n = new U(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new U(o[s])), a.parent = r, a.depth = r.depth + 1;
118
+ return n.eachBefore(H);
119
+ }
120
+ function R() {
121
+ return L(this).eachBefore(V);
122
+ }
123
+ function z(e) {
124
+ return e.children;
125
+ }
126
+ function B(e) {
127
+ return Array.isArray(e) ? e[1] : null;
128
+ }
129
+ function V(e) {
130
+ e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
131
+ }
132
+ function H(e) {
133
+ var t = 0;
134
+ do
135
+ e.height = t;
136
+ while ((e = e.parent) && e.height < ++t);
137
+ }
138
+ function U(e) {
139
+ this.data = e, this.depth = this.height = 0, this.parent = null;
140
+ }
141
+ U.prototype = L.prototype = {
142
+ constructor: U,
143
+ count: C,
144
+ each: w,
145
+ eachAfter: E,
146
+ eachBefore: T,
147
+ find: D,
148
+ sum: O,
149
+ sort: k,
150
+ path: A,
151
+ ancestors: M,
152
+ descendants: N,
153
+ leaves: P,
154
+ links: F,
155
+ copy: R,
156
+ [Symbol.iterator]: I
157
+ };
158
+ //#endregion
159
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/accessors.js
160
+ function W(e) {
161
+ if (typeof e != "function") throw Error();
162
+ return e;
163
+ }
164
+ //#endregion
165
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/constant.js
166
+ function G() {
167
+ return 0;
168
+ }
169
+ function K(e) {
170
+ return function() {
171
+ return e;
172
+ };
173
+ }
174
+ //#endregion
175
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/round.js
176
+ function q(e) {
177
+ e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
178
+ }
179
+ //#endregion
180
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/dice.js
181
+ function J(e, t, n, r, i) {
182
+ for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
183
+ }
184
+ //#endregion
185
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/slice.js
186
+ function ee(e, t, n, r, i) {
187
+ for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
188
+ }
189
+ //#endregion
190
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/squarify.js
191
+ var te = (1 + Math.sqrt(5)) / 2;
192
+ function ne(e, t, n, r, i, a) {
193
+ for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
194
+ p = i - n, m = a - r;
195
+ do
196
+ g = s[d++].value;
197
+ while (!g && d < f);
198
+ for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
199
+ if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
200
+ g -= l;
201
+ break;
202
+ }
203
+ b = y;
204
+ }
205
+ o.push(c = {
206
+ value: g,
207
+ dice: p < m,
208
+ children: s.slice(u, d)
209
+ }), c.dice ? J(c, n, r, i, h ? r += m * g / h : a) : ee(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
210
+ }
211
+ return o;
212
+ }
213
+ var re = (function e(t) {
214
+ function n(e, n, r, i, a) {
215
+ ne(t, e, n, r, i, a);
216
+ }
217
+ return n.ratio = function(t) {
218
+ return e((t = +t) > 1 ? t : 1);
219
+ }, n;
220
+ })(te);
221
+ //#endregion
222
+ //#region node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/index.js
223
+ function ie() {
224
+ var e = re, t = !1, n = 1, r = 1, i = [0], a = G, o = G, s = G, c = G, l = G;
225
+ function u(e) {
226
+ return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(q), e;
227
+ }
228
+ function d(t) {
229
+ var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
230
+ d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), t.x0 = r, t.y0 = u, t.x1 = d, t.y1 = f, t.children && (n = i[t.depth + 1] = a(t) / 2, r += l(t) - n, u += o(t) - n, d -= s(t) - n, f -= c(t) - n, d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), e(t, r, u, d, f));
231
+ }
232
+ return u.round = function(e) {
233
+ return arguments.length ? (t = !!e, u) : t;
234
+ }, u.size = function(e) {
235
+ return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
236
+ }, u.tile = function(t) {
237
+ return arguments.length ? (e = W(t), u) : e;
238
+ }, u.padding = function(e) {
239
+ return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
240
+ }, u.paddingInner = function(e) {
241
+ return arguments.length ? (a = typeof e == "function" ? e : K(+e), u) : a;
242
+ }, u.paddingOuter = function(e) {
243
+ return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
244
+ }, u.paddingTop = function(e) {
245
+ return arguments.length ? (o = typeof e == "function" ? e : K(+e), u) : o;
246
+ }, u.paddingRight = function(e) {
247
+ return arguments.length ? (s = typeof e == "function" ? e : K(+e), u) : s;
248
+ }, u.paddingBottom = function(e) {
249
+ return arguments.length ? (c = typeof e == "function" ? e : K(+e), u) : c;
250
+ }, u.paddingLeft = function(e) {
251
+ return arguments.length ? (l = typeof e == "function" ? e : K(+e), u) : l;
252
+ }, u;
253
+ }
254
+ //#endregion
255
+ //#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.mjs
256
+ var Y = class {
257
+ constructor() {
258
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = i, this.getAccTitle = d, this.setDiagramTitle = o, this.getDiagramTitle = a, this.getAccDescription = s, this.setAccDescription = p;
259
+ }
260
+ static {
261
+ n(this, "TreeMapDB");
262
+ }
263
+ getNodes() {
264
+ return this.nodes;
265
+ }
266
+ getConfig() {
267
+ let e = u, t = f();
268
+ return g({
269
+ ...e.treemap,
270
+ ...t.treemap ?? {}
271
+ });
272
+ }
273
+ addNode(e, t) {
274
+ this.nodes.push(e), this.levels.set(e, t), t === 0 && (this.outerNodes.push(e), this.root ??= e);
275
+ }
276
+ getRoot() {
277
+ return {
278
+ name: "",
279
+ children: this.outerNodes
280
+ };
281
+ }
282
+ addClass(e, t) {
283
+ let n = this.classes.get(e) ?? {
284
+ id: e,
285
+ styles: [],
286
+ textStyles: []
287
+ }, r = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
288
+ r && r.forEach((e) => {
289
+ v(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
290
+ }), this.classes.set(e, n);
291
+ }
292
+ getClasses() {
293
+ return this.classes;
294
+ }
295
+ getStylesForClass(e) {
296
+ return this.classes.get(e)?.styles ?? [];
297
+ }
298
+ clear() {
299
+ c(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
300
+ }
301
+ };
302
+ function X(e) {
303
+ if (!e.length) return [];
304
+ let t = [], n = [];
305
+ return e.forEach((e) => {
306
+ let r = {
307
+ name: e.name,
308
+ children: e.type === "Leaf" ? void 0 : []
309
+ };
310
+ for (r.classSelector = e?.classSelector, e?.cssCompiledStyles && (r.cssCompiledStyles = [e.cssCompiledStyles]), e.type === "Leaf" && e.value !== void 0 && (r.value = e.value); n.length > 0 && n[n.length - 1].level >= e.level;) n.pop();
311
+ if (n.length === 0) t.push(r);
312
+ else {
313
+ let e = n[n.length - 1].node;
314
+ e.children ? e.children.push(r) : e.children = [r];
315
+ }
316
+ e.type !== "Leaf" && n.push({
317
+ node: r,
318
+ level: e.level
319
+ });
320
+ }), t;
321
+ }
322
+ n(X, "buildHierarchy");
323
+ var ae = /* @__PURE__ */ n((e, t) => {
324
+ b(e, t);
325
+ let r = [];
326
+ for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
327
+ for (let n of e.TreemapRows ?? []) {
328
+ let e = n.item;
329
+ if (!e) continue;
330
+ let i = n.indent ? parseInt(n.indent) : 0, a = oe(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o.join(";") : void 0, c = {
331
+ level: i,
332
+ name: a,
333
+ type: e.$type,
334
+ value: e.value,
335
+ classSelector: e.classSelector,
336
+ cssCompiledStyles: s
337
+ };
338
+ r.push(c);
339
+ }
340
+ let i = X(r), a = /* @__PURE__ */ n((e, n) => {
341
+ for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && a(r.children, n + 1);
342
+ }, "addNodesRecursively");
343
+ a(i, 0);
344
+ }, "populate"), oe = /* @__PURE__ */ n((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
345
+ parser: { yy: void 0 },
346
+ parse: /* @__PURE__ */ n(async (e) => {
347
+ try {
348
+ let n = await y("treemap", e);
349
+ t.debug("Treemap AST:", n);
350
+ let r = Z.parser?.yy;
351
+ if (!(r instanceof Y)) throw Error("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.");
352
+ ae(n, r);
353
+ } catch (e) {
354
+ throw t.error("Error parsing treemap:", e), e;
355
+ }
356
+ }, "parse")
357
+ }, se = 10, Q = 10, $ = 25, ce = {
358
+ draw: /* @__PURE__ */ n((i, a, o, s) => {
359
+ let c = s.db, u = c.getConfig(), d = u.padding ?? se, p = c.getDiagramTitle(), g = c.getRoot(), { themeVariables: v } = f();
360
+ if (!g) return;
361
+ let y = p ? 30 : 0, b = e(a), S = u.nodeWidth ? u.nodeWidth * Q : 960, C = u.nodeHeight ? u.nodeHeight * Q : 500, w = S, T = C + y;
362
+ b.attr("viewBox", `0 0 ${w} ${T}`), l(b, T, w, u.useMaxWidth);
363
+ let E;
364
+ try {
365
+ let e = u.valueFormat || ",";
366
+ if (e === "$0,0") E = /* @__PURE__ */ n((e) => "$" + h(",")(e), "valueFormat");
367
+ else if (e.startsWith("$") && e.includes(",")) {
368
+ let t = /\.\d+/.exec(e), r = t ? t[0] : "";
369
+ E = /* @__PURE__ */ n((e) => "$" + h("," + r)(e), "valueFormat");
370
+ } else if (e.startsWith("$")) {
371
+ let t = e.substring(1);
372
+ E = /* @__PURE__ */ n((e) => "$" + h(t || "")(e), "valueFormat");
373
+ } else E = h(e);
374
+ } catch (e) {
375
+ t.error("Error creating format function:", e), E = h(",");
376
+ }
377
+ let D = m().range([
378
+ "transparent",
379
+ v.cScale0,
380
+ v.cScale1,
381
+ v.cScale2,
382
+ v.cScale3,
383
+ v.cScale4,
384
+ v.cScale5,
385
+ v.cScale6,
386
+ v.cScale7,
387
+ v.cScale8,
388
+ v.cScale9,
389
+ v.cScale10,
390
+ v.cScale11
391
+ ]), O = m().range([
392
+ "transparent",
393
+ v.cScalePeer0,
394
+ v.cScalePeer1,
395
+ v.cScalePeer2,
396
+ v.cScalePeer3,
397
+ v.cScalePeer4,
398
+ v.cScalePeer5,
399
+ v.cScalePeer6,
400
+ v.cScalePeer7,
401
+ v.cScalePeer8,
402
+ v.cScalePeer9,
403
+ v.cScalePeer10,
404
+ v.cScalePeer11
405
+ ]), k = m().range([
406
+ v.cScaleLabel0,
407
+ v.cScaleLabel1,
408
+ v.cScaleLabel2,
409
+ v.cScaleLabel3,
410
+ v.cScaleLabel4,
411
+ v.cScaleLabel5,
412
+ v.cScaleLabel6,
413
+ v.cScaleLabel7,
414
+ v.cScaleLabel8,
415
+ v.cScaleLabel9,
416
+ v.cScaleLabel10,
417
+ v.cScaleLabel11
418
+ ]);
419
+ p && b.append("text").attr("x", w / 2).attr("y", y / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(p);
420
+ let A = b.append("g").attr("transform", `translate(0, ${y})`).attr("class", "treemapContainer"), j = L(g).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = ie().size([S, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
421
+ P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${a}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => D(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => O(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
422
+ if (e.depth === 0) return "display: none;";
423
+ let t = _({ cssCompiledStyles: e.data.cssCompiledStyles });
424
+ return t.nodeStyles + ";" + t.borderStyles.join(";");
425
+ }), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + _({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
426
+ if (e.depth === 0) return;
427
+ let t = r(this), n = e.data.name;
428
+ t.text(n);
429
+ let i = e.x1 - e.x0, a;
430
+ a = u.showValues !== !1 && e.value ? i - 10 - 30 - 10 - 6 : i - 6 - 6;
431
+ let o = Math.max(15, a), s = t.node();
432
+ if (s.getComputedTextLength() > o) {
433
+ let e = n;
434
+ for (; e.length > 0;) {
435
+ if (e = n.substring(0, e.length - 1), e.length === 0) {
436
+ t.text("..."), s.getComputedTextLength() > o && t.text("");
437
+ break;
438
+ }
439
+ if (t.text(e + "..."), s.getComputedTextLength() <= o) break;
440
+ }
441
+ }
442
+ }), u.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? E(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + _({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
443
+ let F = M.leaves(), I = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
444
+ I.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("style", (e) => _({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("stroke-width", 3), I.append("clipPath").attr("id", (e, t) => `clip-${a}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), I.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";" + _({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${a}-${t})`).text((e) => e.data.name).each(function(e) {
445
+ let t = r(this), n = e.x1 - e.x0, i = e.y1 - e.y0, a = t.node(), o = n - 8, s = i - 8;
446
+ if (o < 10 || s < 10) {
447
+ t.style("display", "none");
448
+ return;
449
+ }
450
+ let c = parseInt(t.style("font-size"), 10), l = .6;
451
+ for (; a.getComputedTextLength() > o && c > 8;) c--, t.style("font-size", `${c}px`);
452
+ let u = Math.max(6, Math.min(28, Math.round(c * l))), d = c + 2 + u;
453
+ for (; d > s && c > 8 && (c--, u = Math.max(6, Math.min(28, Math.round(c * l))), !(u < 6 && c === 8));) t.style("font-size", `${c}px`), d = c + 2 + u;
454
+ t.style("font-size", `${c}px`), (a.getComputedTextLength() > o || c < 8 || s < c) && t.style("display", "none");
455
+ }), u.showValues !== !1 && I.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
456
+ return (e.y1 - e.y0) / 2;
457
+ }).attr("style", (e) => "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(e.data.name) + ";" + _({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${a}-${t})`).text((e) => e.value ? E(e.value) : "").each(function(e) {
458
+ let t = r(this), n = this.parentNode;
459
+ if (!n) {
460
+ t.style("display", "none");
461
+ return;
462
+ }
463
+ let i = r(n).select(".treemapLabel");
464
+ if (i.empty() || i.style("display") === "none") {
465
+ t.style("display", "none");
466
+ return;
467
+ }
468
+ let a = parseFloat(i.style("font-size")), o = Math.max(6, Math.min(28, Math.round(a * .6)));
469
+ t.style("font-size", `${o}px`);
470
+ let s = (e.y1 - e.y0) / 2 + a / 2 + 2;
471
+ t.attr("y", s);
472
+ let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c - 8;
473
+ t.node().getComputedTextLength() > u || s + o > l || o < 6 ? t.style("display", "none") : t.style("display", null);
474
+ }), x(b, u.diagramPadding ?? 8, "flowchart", u?.useMaxWidth || !1);
475
+ }, "draw"),
476
+ getClasses: /* @__PURE__ */ n(function(e, t) {
477
+ return t.db.getClasses();
478
+ }, "getClasses")
479
+ }, le = {
480
+ sectionStrokeColor: "black",
481
+ sectionStrokeWidth: "1",
482
+ sectionFillColor: "#efefef",
483
+ leafStrokeColor: "black",
484
+ leafStrokeWidth: "1",
485
+ leafFillColor: "#efefef",
486
+ labelColor: "black",
487
+ labelFontSize: "12px",
488
+ valueFontSize: "10px",
489
+ valueColor: "black",
490
+ titleColor: "black",
491
+ titleFontSize: "14px"
492
+ }, ue = {
493
+ parser: Z,
494
+ get db() {
495
+ return new Y();
496
+ },
497
+ renderer: ce,
498
+ styles: /* @__PURE__ */ n(({ treemap: e } = {}) => {
499
+ let t = g(le, e);
500
+ return `
501
+ .treemapNode.section {
502
+ stroke: ${t.sectionStrokeColor};
503
+ stroke-width: ${t.sectionStrokeWidth};
504
+ fill: ${t.sectionFillColor};
505
+ }
506
+ .treemapNode.leaf {
507
+ stroke: ${t.leafStrokeColor};
508
+ stroke-width: ${t.leafStrokeWidth};
509
+ fill: ${t.leafFillColor};
510
+ }
511
+ .treemapLabel {
512
+ fill: ${t.labelColor};
513
+ font-size: ${t.labelFontSize};
514
+ }
515
+ .treemapValue {
516
+ fill: ${t.valueColor};
517
+ font-size: ${t.valueFontSize};
518
+ }
519
+ .treemapTitle {
520
+ fill: ${t.titleColor};
521
+ font-size: ${t.titleFontSize};
522
+ }
523
+ `;
524
+ }, "getStyles")
525
+ };
526
+ //#endregion
527
+ export { ue as diagram };