@sme.up/ketchup2 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
  2. package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
  3. package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
  4. package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
  5. package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
  6. package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
  7. package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
  8. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
  9. package/dist/assets/svg/functions.svg +1 -0
  10. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  11. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  12. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  14. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  15. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  16. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  17. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  18. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  19. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  21. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  22. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  23. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  28. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  29. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
  31. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
  32. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
  33. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
  34. package/dist/channel-BvUly9jN.cjs +1 -0
  35. package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
  36. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
  37. package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
  38. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  39. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  40. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
  41. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
  42. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  43. package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
  44. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
  45. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
  46. package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
  47. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
  48. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
  49. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
  50. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
  51. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
  52. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
  53. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
  54. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
  55. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
  56. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
  57. package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
  58. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
  59. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
  60. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  61. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  62. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
  63. package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
  64. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  65. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
  66. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
  67. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
  68. package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
  69. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
  70. package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
  71. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
  72. package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
  73. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
  74. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
  75. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
  76. package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
  77. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
  78. package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
  79. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
  80. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
  81. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
  82. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
  83. package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
  84. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  85. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  86. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
  87. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
  88. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
  89. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
  90. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  91. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  92. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  93. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  94. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  95. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  96. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  97. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  98. package/dist/components/data-table/data-table-types.d.ts +52 -1
  99. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table.d.ts.map +1 -1
  101. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  102. package/dist/components/data-table/header/header-types.d.ts +7 -1
  103. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  104. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  105. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  106. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  107. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  108. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  109. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  110. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  111. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  112. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  113. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  114. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  115. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  116. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  117. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +25 -24
  118. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
  119. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
  120. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
  121. package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
  122. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
  123. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
  124. package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
  125. package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
  126. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
  127. package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
  128. package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
  129. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
  130. package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
  131. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
  132. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
  133. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
  134. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
  135. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
  136. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
  137. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
  138. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
  139. package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
  140. package/dist/dist-DrOEvFlx.cjs +1 -0
  141. package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
  142. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
  143. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
  144. package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
  145. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
  146. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
  147. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
  148. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
  149. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  150. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  151. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  152. package/dist/functional-components/row/row-types.d.ts +5 -0
  153. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  154. package/dist/functional-components/row/row.d.ts.map +1 -1
  155. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  156. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  157. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  158. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  159. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  160. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  161. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  162. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
  163. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
  164. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
  165. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
  166. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
  167. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
  168. package/dist/index.d.ts +4 -1
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
  171. package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
  172. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
  173. package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
  174. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
  175. package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
  176. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
  177. package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
  178. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
  179. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
  180. package/dist/katex-DUe6VLjC.cjs +257 -0
  181. package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
  182. package/dist/ketchup2.cjs.js +156 -154
  183. package/dist/ketchup2.css +1 -1
  184. package/dist/ketchup2.es.js +31759 -29656
  185. package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
  186. package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
  187. package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
  188. package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
  189. package/dist/locale/en/translation.json.d.ts +16 -0
  190. package/dist/locale/it/translation.json.d.ts +16 -0
  191. package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
  192. package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
  193. package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
  194. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
  195. package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
  196. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
  197. package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
  198. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
  199. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
  200. package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
  201. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
  202. package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
  203. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
  204. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
  205. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
  206. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
  207. package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
  208. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
  209. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
  210. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
  211. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
  212. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
  213. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
  214. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
  215. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
  216. package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
  217. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
  218. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
  219. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
  220. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
  221. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
  222. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
  223. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  224. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
  225. package/dist/src-B16ML7oM.cjs +1 -0
  226. package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
  227. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
  228. package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
  229. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
  230. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
  231. package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
  232. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
  233. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
  234. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
  235. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
  236. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
  237. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
  238. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
  239. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
  240. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
  241. package/dist/types/translation.d.ts +17 -1
  242. package/dist/types/translation.d.ts.map +1 -1
  243. package/dist/utils/data-structures.d.ts +2 -1
  244. package/dist/utils/data-structures.d.ts.map +1 -1
  245. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
  246. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
  247. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
  248. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
  249. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
  250. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
  251. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
  252. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
  253. package/package.json +5 -2
  254. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  255. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  256. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  257. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  258. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  259. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  260. package/dist/channel-DJpMBAs-.cjs +0 -1
  261. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  262. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  263. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  264. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  265. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  266. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  267. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  268. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  269. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  270. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  271. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  272. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  273. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  274. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  275. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  276. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  277. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  278. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  279. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  280. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  281. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  282. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  283. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  284. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  285. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  286. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  287. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  288. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  289. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  290. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  291. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  292. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  293. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  294. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  295. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  296. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  297. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  298. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  299. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  300. package/dist/dist-D8RD2QWc.cjs +0 -1
  301. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  302. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  303. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  304. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  305. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  306. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  307. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  308. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  309. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  310. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  311. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  312. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  313. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  314. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  315. package/dist/katex-CkiTumqg.cjs +0 -257
  316. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  317. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  318. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  319. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  320. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  321. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  322. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  323. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  324. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  325. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  326. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  327. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  328. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  329. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  330. package/dist/src-DEmZ9bFr.cjs +0 -1
  331. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  332. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  333. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  334. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  335. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  336. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  337. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  338. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  339. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  340. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  341. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  342. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  343. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  344. package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
@@ -0,0 +1,30 @@
1
+ const e=require("./src-B16ML7oM.cjs"),t=require("./chunk-DU6HZSFF-mznJTFyO.cjs"),n=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),r=require("./chunk-75Z2AOVW-RbCLc-XL.cjs"),i=require("./chunk-CLGD4ZFX-Dvn-kRD7.cjs"),a=require("./chunk-PWAF6VOD-CjrO-QHU.cjs"),o=require("./mermaid-parser.core-CqChDTj1.cjs"),s=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),c=require("./chunk-2Q5K7J3B-B8v9mTdK.cjs");var l=/[─━│┃└┗├┣]/,u=/[└┗├┣]/,d=/[─━]/,f=/^[\s│┃]+$/,p=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,m=/^\s*%%/,h=` `;function g(e){return e.some(e=>l.test(e))}n.n(g,`isBoxDrawingFormat`);function _(e){for(let t of e){let e=u.exec(t);if(e?.index&&e.index>0)return e.index}return 4}n.n(_,`inferSegmentWidth`);function v(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let r=parseInt(n,10),i=t.get(r);return i?`line ${i}`:e})}n.n(v,`remapErrorLines`);function y(e){let t=e.split(`
2
+ `),n=new Map,r=-1;for(let[e,n]of t.entries())if(n.trim()===`treeView-beta`){r=e;break}if(r===-1)return{text:e,lineMap:n};let i=[];for(let e=r+1;e<t.length;e++){let n=t[e];n.trim()===``||m.test(n)||p.test(n)||f.test(n)||i.push(n.replace(/\t/g,` `))}if(!g(i))return{text:e,lineMap:n};let a=_(i),o=[],s=0;for(let e=0;e<=r;e++)o.push(t[e]),s++,n.set(s,e+1);for(let e=r+1;e<t.length;e++){let r=t[e],i=r.trim(),c=e+1;if(i===``){o.push(r),s++,n.set(s,c);continue}if(m.test(r)){o.push(r),s++,n.set(s,c);continue}if(p.test(r)){o.push(r),s++,n.set(s,c);continue}if(f.test(r))continue;let g=r.replace(/\t/g,` `),_=u.exec(g);if(_?.index!==void 0){let e=_.index,t=Math.round(e/a)+1,r=e+1;for(;r<g.length&&d.test(g[r]);)r++;for(;r<g.length&&g[r]===` `;)r++;let i=g.slice(r).trimEnd();if(!i)throw Error(`Line ${c}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let l=h.repeat(t);o.push(l+i),s++,n.set(s,c)}else if(/^[\s─━│┃└┗├┣]+$/.test(g))continue;else if(l.test(g))o.push(r),s++,n.set(s,c);else if(/^\s+/.test(g))throw Error(`Line ${c}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);else o.push(r),s++,n.set(s,c)}return{text:o.join(`
3
+ `),lineMap:n}}n.n(y,`preprocessBoxDrawing`);var b=new c.t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,nodeType:`directory`,children:[]}]})),x=n.n(()=>{b.reset(),t.a()},`clear`),S=n.n(()=>b.records.stack[0],`getRoot`),C=n.n(()=>b.records.cnt,`getCount`),w=t.f.treeView,T={clear:x,addNode:n.n((e,t,n,r,i,a)=>{for(;e<=b.records.stack[b.records.stack.length-1].level;)b.records.stack.pop();let o={id:b.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:a,children:[]};b.records.stack[b.records.stack.length-1].children.push(o),b.records.stack.push(o)},`addNode`),getRoot:S,getCount:C,getConfig:n.n(()=>r.i(w,t.b().treeView),`getConfig`),getAccTitle:t.y,getAccDescription:t.v,getDiagramTitle:t.w,setAccDescription:t.H,setAccTitle:t.U,setDiagramTitle:t.K},E=n.n(e=>{s.t(e,T);for(let n of e.nodes){let e=typeof n.indent==`number`?n.indent:0,r=n.name,i=r.endsWith(`/`);i&&(r=r.slice(0,-1));let a=i?`directory`:`file`,o=n.classAnnotation||void 0,s=n.iconAnnotation,c=s===void 0?void 0:s||`none`,l=n.descAnnotation||void 0,u=l?t.z(l,t.b()):void 0;T.addNode(e,r,a,o,c,u)}},`populate`),D={parse:n.n(async t=>{let{text:n,lineMap:r}=y(t);try{let t=await o.n(`treeView`,n);e.m.debug(t),E(t)}catch(e){throw r.size>0&&e instanceof Error&&(e.message=v(e.message,r)),e}},`parse`)},O={prefix:`mermaid-treeview`,height:24,width:24,icons:{folder:{body:`<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>`},file:{body:`<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>`}}};function k(e,t){let n=t?.filenameIcons?.[e];if(n)return n;let r=e.lastIndexOf(`.`);if(r>0){let n=e.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[n]??i?.[n.slice(1)]}}n.n(k,`detectIcon`);function A(e,t){return e.includes(`:`)?e:e in O.icons||!t?`${O.prefix}:${e}`:`${t}:${e}`}n.n(A,`qualifyIcon`);function j(e,t){if(e.icon!==`none`){if(e.icon)return A(e.icon,t.defaultIconPack);if(t.showIcons){if(e.nodeType===`file`){let n=k(e.name,t);if(n===`none`)return;if(n)return A(n,t.defaultIconPack)}return`${O.prefix}:${e.nodeType===`directory`?`folder`:`file`}`}}}n.n(j,`getNodeIcon`),a.r([{name:O.prefix,icons:O}]);var M=14,N=4,P=16,F=n.n(async(e,t)=>{let r=[],i=n.n(e=>{let n=j(e,t);n&&r.push({icon:n,node:e}),e.children.forEach(i)},`collect`);i(e);let o=await Promise.all(r.map(async({icon:e,node:t})=>({id:t.id,svg:await a.t(e,{height:M,width:M})})));return new Map(o.map(({id:e,svg:t})=>[e,t]))},`resolveNodeIcons`),I=n.n((e,t,n,r,i,a)=>{let o=r.append(`g`),s=`treeView-node-label`;n.nodeType===`directory`&&(s+=` treeView-node-dir`),n.cssClass&&(s+=` ${n.cssClass}`);let c=M+N,l=j(n,i),u=l!==void 0;l&&o.append(`g`).attr(`class`,`treeView-node-icon`).attr(`transform`,`translate(${e+i.paddingX}, ${t+i.paddingY})`).html(a.get(n.id)??``);let d=o.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,s),{height:f,width:p}=d.node().getBBox(),m=f+i.paddingY*2,h=e+i.paddingX+(u?c:0);d.attr(`x`,h),d.attr(`y`,t+m/2);let g=h+p;return n.BBox={x:e,y:t,width:p+i.paddingX*2+(u?c:0),height:m},n.cssClass?.split(/\s+/).includes(`highlight`)&&o.insert(`rect`,`:first-child`).attr(`x`,e).attr(`y`,t+1).attr(`width`,0).attr(`height`,m-2).attr(`rx`,3).attr(`class`,`treeView-highlight-bg`),{node:n,nodeGroup:o,labelRightEdge:g,centerY:t+m/2}},`positionLabel`),L=n.n((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),R=n.n((e,t,r,i)=>{let a=0,o=0,s=[],c=n.n((e,t,n,r)=>{let c=r*(n.rowIndent+n.paddingX),l=I(c,a,t,e,n,i);s.push(l);let{height:u,width:d}=t.BBox;L(e,c-n.rowIndent,a+u/2,c,a+u/2,n.lineThickness),o=Math.max(o,c+d),a+=u},`drawNode`),l=n.n((t,n=0)=>{c(e,t,r,n),t.children.forEach(e=>{l(e,n+1)});let{x:i,y:a,height:o}=t.BBox;if(t.children.length){let{y:n,height:s}=t.children[t.children.length-1].BBox;L(e,i+r.paddingX,a+o,i+r.paddingX,n+s/2+r.lineThickness/2,r.lineThickness)}},`processNode`);l(t);let u=s.filter(e=>e.node.description);if(u.length>0){let e=Math.max(...s.map(e=>e.labelRightEdge))+P;for(let t of u){let n=t.nodeGroup.append(`text`).text(t.node.description).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-description`).attr(`x`,e).attr(`y`,t.centerY).node().getBBox();o=Math.max(o,e+n.width+r.paddingX)}}for(let e of s)if(e.node.cssClass?.split(/\s+/).includes(`highlight`)){let t=e.nodeGroup.select(`.treeView-highlight-bg`);if(!t.empty()){let n=o-e.node.BBox.x+8;t.attr(`width`,n),o=Math.max(o,e.node.BBox.x+n+2)}}return{totalHeight:a,totalWidth:o}},`drawTree`),z={draw:n.n(async(n,r,a,o)=>{e.m.debug(`Rendering treeView diagram
4
+ `+n);let s=o.db,c=s.getRoot(),l=s.getConfig(),u=i.t(r),d=u.append(`g`);d.attr(`class`,`tree-view`);let{totalHeight:f,totalWidth:p}=R(d,c,l,await F(c,l));u.attr(`viewBox`,`-${l.lineThickness/2} 0 ${p} ${f}`),t.c(u,f,p,l.useMaxWidth)},`draw`)},B={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`,iconColor:`#546e7a`,descriptionColor:`#6a9955`,highlightBg:`rgba(255, 193, 7, 0.15)`,highlightStroke:`#ffc107`},V={db:T,renderer:z,parser:D,styles:n.n(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:i,iconColor:a,descriptionColor:o,highlightBg:s,highlightStroke:c}=r.i(B,e);return`
5
+ .treeView-node-label {
6
+ font-size: ${t};
7
+ fill: ${n};
8
+ white-space: pre;
9
+ }
10
+ .treeView-node-dir {
11
+ font-weight: bold;
12
+ }
13
+ .treeView-node-line {
14
+ stroke: ${i};
15
+ }
16
+ .treeView-node-icon {
17
+ color: ${a};
18
+ }
19
+ .treeView-node-description {
20
+ font-size: ${t};
21
+ fill: ${o};
22
+ font-style: italic;
23
+ white-space: pre;
24
+ }
25
+ .treeView-highlight-bg {
26
+ fill: ${s};
27
+ stroke: ${c};
28
+ stroke-width: 1;
29
+ }
30
+ `},`styles`)};exports.diagram=V;
@@ -0,0 +1,301 @@
1
+ import { m as e } from "./src-D-6ZfKf9.js";
2
+ import { H as t, K as n, U as r, a as i, b as a, c as o, f as s, v as c, w as l, y as u, z as d } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { i as p } from "./chunk-75Z2AOVW-BwUD389x.js";
5
+ import { t as m } from "./chunk-CLGD4ZFX-DKRy6g5T.js";
6
+ import { r as h, t as g } from "./chunk-PWAF6VOD-CbmhQpgH.js";
7
+ import { n as _ } from "./mermaid-parser.core-oFB-qEU8.js";
8
+ import { t as v } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
9
+ import { t as y } from "./chunk-2Q5K7J3B-kzxEEeTu.js";
10
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-S7CK7UJ4.mjs
11
+ var b = /[─━│┃└┗├┣]/, x = /[└┗├┣]/, S = /[─━]/, C = /^[\s│┃]+$/, w = /^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/, T = /^\s*%%/, E = " ";
12
+ function D(e) {
13
+ return e.some((e) => b.test(e));
14
+ }
15
+ f(D, "isBoxDrawingFormat");
16
+ function O(e) {
17
+ for (let t of e) {
18
+ let e = x.exec(t);
19
+ if (e?.index && e.index > 0) return e.index;
20
+ }
21
+ return 4;
22
+ }
23
+ f(O, "inferSegmentWidth");
24
+ function k(e, t) {
25
+ return e.replace(/\bline\s+(\d+)\b/gi, (e, n) => {
26
+ let r = parseInt(n, 10), i = t.get(r);
27
+ return i ? `line ${i}` : e;
28
+ });
29
+ }
30
+ f(k, "remapErrorLines");
31
+ function A(e) {
32
+ let t = e.split("\n"), n = /* @__PURE__ */ new Map(), r = -1;
33
+ for (let [e, n] of t.entries()) if (n.trim() === "treeView-beta") {
34
+ r = e;
35
+ break;
36
+ }
37
+ if (r === -1) return {
38
+ text: e,
39
+ lineMap: n
40
+ };
41
+ let i = [];
42
+ for (let e = r + 1; e < t.length; e++) {
43
+ let n = t[e];
44
+ n.trim() === "" || T.test(n) || w.test(n) || C.test(n) || i.push(n.replace(/\t/g, " "));
45
+ }
46
+ if (!D(i)) return {
47
+ text: e,
48
+ lineMap: n
49
+ };
50
+ let a = O(i), o = [], s = 0;
51
+ for (let e = 0; e <= r; e++) o.push(t[e]), s++, n.set(s, e + 1);
52
+ for (let e = r + 1; e < t.length; e++) {
53
+ let r = t[e], i = r.trim(), c = e + 1;
54
+ if (i === "") {
55
+ o.push(r), s++, n.set(s, c);
56
+ continue;
57
+ }
58
+ if (T.test(r)) {
59
+ o.push(r), s++, n.set(s, c);
60
+ continue;
61
+ }
62
+ if (w.test(r)) {
63
+ o.push(r), s++, n.set(s, c);
64
+ continue;
65
+ }
66
+ if (C.test(r)) continue;
67
+ let l = r.replace(/\t/g, " "), u = x.exec(l);
68
+ if (u?.index !== void 0) {
69
+ let e = u.index, t = Math.round(e / a) + 1, r = e + 1;
70
+ for (; r < l.length && S.test(l[r]);) r++;
71
+ for (; r < l.length && l[r] === " ";) r++;
72
+ let i = l.slice(r).trimEnd();
73
+ if (!i) throw Error(`Line ${c}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);
74
+ let d = E.repeat(t);
75
+ o.push(d + i), s++, n.set(s, c);
76
+ } else if (/^[\s─━│┃└┗├┣]+$/.test(l)) continue;
77
+ else if (b.test(l)) o.push(r), s++, n.set(s, c);
78
+ else if (/^\s+/.test(l)) throw Error(`Line ${c}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);
79
+ else o.push(r), s++, n.set(s, c);
80
+ }
81
+ return {
82
+ text: o.join("\n"),
83
+ lineMap: n
84
+ };
85
+ }
86
+ f(A, "preprocessBoxDrawing");
87
+ var j = new y(() => ({
88
+ cnt: 1,
89
+ stack: [{
90
+ id: 0,
91
+ level: -1,
92
+ name: "/",
93
+ nodeType: "directory",
94
+ children: []
95
+ }]
96
+ })), M = /* @__PURE__ */ f(() => {
97
+ j.reset(), i();
98
+ }, "clear"), N = /* @__PURE__ */ f(() => j.records.stack[0], "getRoot"), P = /* @__PURE__ */ f(() => j.records.cnt, "getCount"), F = s.treeView, I = {
99
+ clear: M,
100
+ addNode: /* @__PURE__ */ f((e, t, n, r, i, a) => {
101
+ for (; e <= j.records.stack[j.records.stack.length - 1].level;) j.records.stack.pop();
102
+ let o = {
103
+ id: j.records.cnt++,
104
+ level: e,
105
+ name: t,
106
+ nodeType: n,
107
+ icon: i,
108
+ cssClass: r,
109
+ description: a,
110
+ children: []
111
+ };
112
+ j.records.stack[j.records.stack.length - 1].children.push(o), j.records.stack.push(o);
113
+ }, "addNode"),
114
+ getRoot: N,
115
+ getCount: P,
116
+ getConfig: /* @__PURE__ */ f(() => p(F, a().treeView), "getConfig"),
117
+ getAccTitle: u,
118
+ getAccDescription: c,
119
+ getDiagramTitle: l,
120
+ setAccDescription: t,
121
+ setAccTitle: r,
122
+ setDiagramTitle: n
123
+ }, L = /* @__PURE__ */ f((e) => {
124
+ v(e, I);
125
+ for (let t of e.nodes) {
126
+ let e = typeof t.indent == "number" ? t.indent : 0, n = t.name, r = n.endsWith("/");
127
+ r && (n = n.slice(0, -1));
128
+ let i = r ? "directory" : "file", o = t.classAnnotation || void 0, s = t.iconAnnotation, c = s === void 0 ? void 0 : s || "none", l = t.descAnnotation || void 0, u = l ? d(l, a()) : void 0;
129
+ I.addNode(e, n, i, o, c, u);
130
+ }
131
+ }, "populate"), R = { parse: /* @__PURE__ */ f(async (t) => {
132
+ let { text: n, lineMap: r } = A(t);
133
+ try {
134
+ let t = await _("treeView", n);
135
+ e.debug(t), L(t);
136
+ } catch (e) {
137
+ throw r.size > 0 && e instanceof Error && (e.message = k(e.message, r)), e;
138
+ }
139
+ }, "parse") }, z = {
140
+ prefix: "mermaid-treeview",
141
+ height: 24,
142
+ width: 24,
143
+ icons: {
144
+ folder: { body: "<path fill=\"currentColor\" d=\"M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z\"/>" },
145
+ file: { body: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z\" clip-rule=\"evenodd\"/>" }
146
+ }
147
+ };
148
+ function B(e, t) {
149
+ let n = t?.filenameIcons?.[e];
150
+ if (n) return n;
151
+ let r = e.lastIndexOf(".");
152
+ if (r > 0) {
153
+ let n = e.substring(r).toLowerCase(), i = t?.extensionIcons;
154
+ return i?.[n] ?? i?.[n.slice(1)];
155
+ }
156
+ }
157
+ f(B, "detectIcon");
158
+ function V(e, t) {
159
+ return e.includes(":") ? e : e in z.icons || !t ? `${z.prefix}:${e}` : `${t}:${e}`;
160
+ }
161
+ f(V, "qualifyIcon");
162
+ function H(e, t) {
163
+ if (e.icon !== "none") {
164
+ if (e.icon) return V(e.icon, t.defaultIconPack);
165
+ if (t.showIcons) {
166
+ if (e.nodeType === "file") {
167
+ let n = B(e.name, t);
168
+ if (n === "none") return;
169
+ if (n) return V(n, t.defaultIconPack);
170
+ }
171
+ return `${z.prefix}:${e.nodeType === "directory" ? "folder" : "file"}`;
172
+ }
173
+ }
174
+ }
175
+ f(H, "getNodeIcon"), h([{
176
+ name: z.prefix,
177
+ icons: z
178
+ }]);
179
+ var U = 14, W = 4, G = 16, K = /* @__PURE__ */ f(async (e, t) => {
180
+ let n = [], r = /* @__PURE__ */ f((e) => {
181
+ let i = H(e, t);
182
+ i && n.push({
183
+ icon: i,
184
+ node: e
185
+ }), e.children.forEach(r);
186
+ }, "collect");
187
+ r(e);
188
+ let i = await Promise.all(n.map(async ({ icon: e, node: t }) => ({
189
+ id: t.id,
190
+ svg: await g(e, {
191
+ height: U,
192
+ width: U
193
+ })
194
+ })));
195
+ return new Map(i.map(({ id: e, svg: t }) => [e, t]));
196
+ }, "resolveNodeIcons"), q = /* @__PURE__ */ f((e, t, n, r, i, a) => {
197
+ let o = r.append("g"), s = "treeView-node-label";
198
+ n.nodeType === "directory" && (s += " treeView-node-dir"), n.cssClass && (s += ` ${n.cssClass}`);
199
+ let c = U + W, l = H(n, i), u = l !== void 0;
200
+ l && o.append("g").attr("class", "treeView-node-icon").attr("transform", `translate(${e + i.paddingX}, ${t + i.paddingY})`).html(a.get(n.id) ?? "");
201
+ let d = o.append("text").text(n.name).attr("dominant-baseline", "middle").attr("class", s), { height: f, width: p } = d.node().getBBox(), m = f + i.paddingY * 2, h = e + i.paddingX + (u ? c : 0);
202
+ d.attr("x", h), d.attr("y", t + m / 2);
203
+ let g = h + p;
204
+ return n.BBox = {
205
+ x: e,
206
+ y: t,
207
+ width: p + i.paddingX * 2 + (u ? c : 0),
208
+ height: m
209
+ }, n.cssClass?.split(/\s+/).includes("highlight") && o.insert("rect", ":first-child").attr("x", e).attr("y", t + 1).attr("width", 0).attr("height", m - 2).attr("rx", 3).attr("class", "treeView-highlight-bg"), {
210
+ node: n,
211
+ nodeGroup: o,
212
+ labelRightEdge: g,
213
+ centerY: t + m / 2
214
+ };
215
+ }, "positionLabel"), J = /* @__PURE__ */ f((e, t, n, r, i, a) => e.append("line").attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), Y = /* @__PURE__ */ f((e, t, n, r) => {
216
+ let i = 0, a = 0, o = [], s = /* @__PURE__ */ f((e, t, n, s) => {
217
+ let c = s * (n.rowIndent + n.paddingX), l = q(c, i, t, e, n, r);
218
+ o.push(l);
219
+ let { height: u, width: d } = t.BBox;
220
+ J(e, c - n.rowIndent, i + u / 2, c, i + u / 2, n.lineThickness), a = Math.max(a, c + d), i += u;
221
+ }, "drawNode"), c = /* @__PURE__ */ f((t, r = 0) => {
222
+ s(e, t, n, r), t.children.forEach((e) => {
223
+ c(e, r + 1);
224
+ });
225
+ let { x: i, y: a, height: o } = t.BBox;
226
+ if (t.children.length) {
227
+ let { y: r, height: s } = t.children[t.children.length - 1].BBox;
228
+ J(e, i + n.paddingX, a + o, i + n.paddingX, r + s / 2 + n.lineThickness / 2, n.lineThickness);
229
+ }
230
+ }, "processNode");
231
+ c(t);
232
+ let l = o.filter((e) => e.node.description);
233
+ if (l.length > 0) {
234
+ let e = Math.max(...o.map((e) => e.labelRightEdge)) + G;
235
+ for (let t of l) {
236
+ let r = t.nodeGroup.append("text").text(t.node.description).attr("dominant-baseline", "middle").attr("class", "treeView-node-description").attr("x", e).attr("y", t.centerY).node().getBBox();
237
+ a = Math.max(a, e + r.width + n.paddingX);
238
+ }
239
+ }
240
+ for (let e of o) if (e.node.cssClass?.split(/\s+/).includes("highlight")) {
241
+ let t = e.nodeGroup.select(".treeView-highlight-bg");
242
+ if (!t.empty()) {
243
+ let n = a - e.node.BBox.x + 8;
244
+ t.attr("width", n), a = Math.max(a, e.node.BBox.x + n + 2);
245
+ }
246
+ }
247
+ return {
248
+ totalHeight: i,
249
+ totalWidth: a
250
+ };
251
+ }, "drawTree"), X = { draw: /* @__PURE__ */ f(async (t, n, r, i) => {
252
+ e.debug("Rendering treeView diagram\n" + t);
253
+ let a = i.db, s = a.getRoot(), c = a.getConfig(), l = m(n), u = l.append("g");
254
+ u.attr("class", "tree-view");
255
+ let { totalHeight: d, totalWidth: f } = Y(u, s, c, await K(s, c));
256
+ l.attr("viewBox", `-${c.lineThickness / 2} 0 ${f} ${d}`), o(l, d, f, c.useMaxWidth);
257
+ }, "draw") }, Z = {
258
+ labelFontSize: "16px",
259
+ labelColor: "black",
260
+ lineColor: "black",
261
+ iconColor: "#546e7a",
262
+ descriptionColor: "#6a9955",
263
+ highlightBg: "rgba(255, 193, 7, 0.15)",
264
+ highlightStroke: "#ffc107"
265
+ }, Q = {
266
+ db: I,
267
+ renderer: X,
268
+ parser: R,
269
+ styles: /* @__PURE__ */ f(({ treeView: e }) => {
270
+ let { labelFontSize: t, labelColor: n, lineColor: r, iconColor: i, descriptionColor: a, highlightBg: o, highlightStroke: s } = p(Z, e);
271
+ return `
272
+ .treeView-node-label {
273
+ font-size: ${t};
274
+ fill: ${n};
275
+ white-space: pre;
276
+ }
277
+ .treeView-node-dir {
278
+ font-weight: bold;
279
+ }
280
+ .treeView-node-line {
281
+ stroke: ${r};
282
+ }
283
+ .treeView-node-icon {
284
+ color: ${i};
285
+ }
286
+ .treeView-node-description {
287
+ font-size: ${t};
288
+ fill: ${a};
289
+ font-style: italic;
290
+ white-space: pre;
291
+ }
292
+ .treeView-highlight-bg {
293
+ fill: ${o};
294
+ stroke: ${s};
295
+ stroke-width: 1;
296
+ }
297
+ `;
298
+ }, "styles")
299
+ };
300
+ //#endregion
301
+ export { Q as diagram };
@@ -1,86 +1,87 @@
1
- import { g as e, h as t } from "./src-DjDATEq3.js";
2
- import { D as n, H as r, K as i, U as a, a as o, b as s, c, f as l, v as u, w as d, y as f } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
- import { i as p } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
- import { t as m } from "./chunk-WU5MYG2G-DuCEb9G-.js";
5
- import { t as h } from "./mermaid-parser.core-D6xVjl2t.js";
6
- import { t as g } from "./chunk-4BX2VUAB-zglw1T4d.js";
7
- //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-2AECGRRQ.mjs
1
+ import { m as e } from "./src-D-6ZfKf9.js";
2
+ import { D as t, H as n, K as r, U as i, a, b as o, c as s, f as c, v as l, w as u, y as d } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { i as p } from "./chunk-75Z2AOVW-BwUD389x.js";
5
+ import { t as m } from "./chunk-CLGD4ZFX-DKRy6g5T.js";
6
+ import { n as h } from "./mermaid-parser.core-oFB-qEU8.js";
7
+ import { t as g } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
8
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-UQ7AKVKN.mjs
8
9
  var _ = {
9
10
  showLegend: !0,
10
11
  ticks: 5,
11
12
  max: null,
12
13
  min: 0,
13
14
  graticule: "circle"
14
- }, v = {
15
+ }, v = 32, y = {
15
16
  axes: [],
16
17
  curves: [],
17
18
  options: _
18
- }, y = structuredClone(v), b = l.radar, x = /* @__PURE__ */ t(() => p({
19
- ...b,
20
- ...s().radar
21
- }), "getConfig"), S = /* @__PURE__ */ t(() => y.axes, "getAxes"), C = /* @__PURE__ */ t(() => y.curves, "getCurves"), w = /* @__PURE__ */ t(() => y.options, "getOptions"), T = /* @__PURE__ */ t((e) => {
22
- y.axes = e.map((e) => ({
19
+ }, b = structuredClone(y), x = c.radar, S = /* @__PURE__ */ f(() => p({
20
+ ...x,
21
+ ...o().radar
22
+ }), "getConfig"), C = /* @__PURE__ */ f(() => b.axes, "getAxes"), w = /* @__PURE__ */ f(() => b.curves, "getCurves"), T = /* @__PURE__ */ f(() => b.options, "getOptions"), E = /* @__PURE__ */ f((e) => {
23
+ b.axes = e.map((e) => ({
23
24
  name: e.name,
24
25
  label: e.label ?? e.name
25
26
  }));
26
- }, "setAxes"), E = /* @__PURE__ */ t((e) => {
27
- y.curves = e.map((e) => ({
27
+ }, "setAxes"), D = /* @__PURE__ */ f((e) => {
28
+ b.curves = e.map((e) => ({
28
29
  name: e.name,
29
30
  label: e.label ?? e.name,
30
- entries: D(e.entries)
31
+ entries: O(e.entries)
31
32
  }));
32
- }, "setCurves"), D = /* @__PURE__ */ t((e) => {
33
+ }, "setCurves"), O = /* @__PURE__ */ f((e) => {
33
34
  if (e[0].axis == null) return e.map((e) => e.value);
34
- let t = S();
35
+ let t = C();
35
36
  if (t.length === 0) throw Error("Axes must be populated before curves for reference entries");
36
37
  return t.map((t) => {
37
38
  let n = e.find((e) => e.axis?.$refText === t.name);
38
39
  if (n === void 0) throw Error("Missing entry for axis " + t.label);
39
40
  return n.value;
40
41
  });
41
- }, "computeCurveEntries"), O = {
42
- getAxes: S,
43
- getCurves: C,
44
- getOptions: w,
45
- setAxes: T,
46
- setCurves: E,
47
- setOptions: /* @__PURE__ */ t((e) => {
48
- let t = e.reduce((e, t) => (e[t.name] = t, e), {});
49
- y.options = {
50
- showLegend: t.showLegend?.value ?? _.showLegend,
51
- ticks: t.ticks?.value ?? _.ticks,
52
- max: t.max?.value ?? _.max,
53
- min: t.min?.value ?? _.min,
54
- graticule: t.graticule?.value ?? _.graticule
55
- };
42
+ }, "computeCurveEntries"), k = {
43
+ getAxes: C,
44
+ getCurves: w,
45
+ getOptions: T,
46
+ setAxes: E,
47
+ setCurves: D,
48
+ setOptions: /* @__PURE__ */ f((t) => {
49
+ let n = t.reduce((e, t) => (e[t.name] = t, e), {});
50
+ b.options = {
51
+ showLegend: n.showLegend?.value ?? _.showLegend,
52
+ ticks: n.ticks?.value ?? _.ticks,
53
+ max: n.max?.value ?? _.max,
54
+ min: n.min?.value ?? _.min,
55
+ graticule: n.graticule?.value ?? _.graticule
56
+ }, b.options.ticks > v && (e.warn(`Radar diagram ticks (${b.options.ticks}) exceeds maximum allowed (${v}). Using ${v} instead.`), b.options.ticks = v);
56
57
  }, "setOptions"),
57
- getConfig: x,
58
- clear: /* @__PURE__ */ t(() => {
59
- o(), y = structuredClone(v);
58
+ getConfig: S,
59
+ clear: /* @__PURE__ */ f(() => {
60
+ a(), b = structuredClone(y);
60
61
  }, "clear"),
61
- setAccTitle: a,
62
- getAccTitle: f,
63
- setDiagramTitle: i,
64
- getDiagramTitle: d,
65
- getAccDescription: u,
66
- setAccDescription: r
67
- }, k = /* @__PURE__ */ t((e) => {
68
- g(e, O);
62
+ setAccTitle: i,
63
+ getAccTitle: d,
64
+ setDiagramTitle: r,
65
+ getDiagramTitle: u,
66
+ getAccDescription: l,
67
+ setAccDescription: n
68
+ }, A = /* @__PURE__ */ f((e) => {
69
+ g(e, k);
69
70
  let { axes: t, curves: n, options: r } = e;
70
- O.setAxes(t), O.setCurves(n), O.setOptions(r);
71
- }, "populate"), A = { parse: /* @__PURE__ */ t(async (t) => {
71
+ k.setAxes(t), k.setCurves(n), k.setOptions(r);
72
+ }, "populate"), j = { parse: /* @__PURE__ */ f(async (t) => {
72
73
  let n = await h("radar", t);
73
- e.debug(n), k(n);
74
- }, "parse") }, j = /* @__PURE__ */ t((e, t, n, r) => {
75
- let i = r.db, a = i.getAxes(), o = i.getCurves(), s = i.getOptions(), c = i.getConfig(), l = i.getDiagramTitle(), u = M(m(t), c), d = s.max ?? Math.max(...o.map((e) => Math.max(...e.entries))), f = s.min, p = Math.min(c.width, c.height) / 2;
76
- N(u, a, p, s.ticks, s.graticule), P(u, a, p, c), F(u, a, o, f, d, s.graticule, c), R(u, o, s.showLegend, c), u.append("text").attr("class", "radarTitle").text(l).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
77
- }, "draw"), M = /* @__PURE__ */ t((e, t) => {
74
+ e.debug(n), A(n);
75
+ }, "parse") }, M = /* @__PURE__ */ f((e, t, n, r) => {
76
+ let i = r.db, a = i.getAxes(), o = i.getCurves(), s = i.getOptions(), c = i.getConfig(), l = i.getDiagramTitle(), u = N(m(t), c), d = s.max ?? Math.max(...o.map((e) => Math.max(...e.entries))), f = s.min, p = Math.min(c.width, c.height) / 2;
77
+ P(u, a, p, s.ticks, s.graticule), F(u, a, p, c), I(u, a, o, f, d, s.graticule, c), z(u, o, s.showLegend, c), u.append("text").attr("class", "radarTitle").text(l).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
78
+ }, "draw"), N = /* @__PURE__ */ f((e, t) => {
78
79
  let n = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, i = {
79
80
  x: t.marginLeft + t.width / 2,
80
81
  y: t.marginTop + t.height / 2
81
82
  };
82
- return c(e, r, n, t.useMaxWidth ?? !0), e.attr("viewBox", `0 0 ${n} ${r}`), e.append("g").attr("transform", `translate(${i.x}, ${i.y})`);
83
- }, "drawFrame"), N = /* @__PURE__ */ t((e, t, n, r, i) => {
83
+ return s(e, r, n, t.useMaxWidth ?? !0), e.attr("viewBox", `0 0 ${n} ${r}`).attr("overflow", "visible"), e.append("g").attr("transform", `translate(${i.x}, ${i.y})`);
84
+ }, "drawFrame"), P = /* @__PURE__ */ f((e, t, n, r, i) => {
84
85
  if (i === "circle") for (let t = 0; t < r; t++) {
85
86
  let i = n * (t + 1) / r;
86
87
  e.append("circle").attr("r", i).attr("class", "radarGraticule");
@@ -95,33 +96,35 @@ var _ = {
95
96
  e.append("polygon").attr("points", s).attr("class", "radarGraticule");
96
97
  }
97
98
  }
98
- }, "drawGraticule"), P = /* @__PURE__ */ t((e, t, n, r) => {
99
+ }, "drawGraticule"), F = /* @__PURE__ */ f((e, t, n, r) => {
99
100
  let i = t.length;
100
101
  for (let a = 0; a < i; a++) {
101
- let o = t[a].label, s = 2 * a * Math.PI / i - Math.PI / 2;
102
- e.append("line").attr("x1", 0).attr("y1", 0).attr("x2", n * r.axisScaleFactor * Math.cos(s)).attr("y2", n * r.axisScaleFactor * Math.sin(s)).attr("class", "radarAxisLine"), e.append("text").text(o).attr("x", n * r.axisLabelFactor * Math.cos(s)).attr("y", n * r.axisLabelFactor * Math.sin(s)).attr("class", "radarAxisLabel");
102
+ let o = t[a].label, s = 2 * a * Math.PI / i - Math.PI / 2, c = Math.cos(s), l = Math.sin(s);
103
+ e.append("line").attr("x1", 0).attr("y1", 0).attr("x2", n * r.axisScaleFactor * c).attr("y2", n * r.axisScaleFactor * l).attr("class", "radarAxisLine");
104
+ let u = c > .01 ? "start" : c < -.01 ? "end" : "middle", d = l > .01 ? "hanging" : l < -.01 ? "auto" : "central";
105
+ e.append("text").text(o).attr("x", n * r.axisLabelFactor * c + 4 * c).attr("y", n * r.axisLabelFactor * l + 4 * l).attr("text-anchor", u).attr("dominant-baseline", d).attr("class", "radarAxisLabel");
103
106
  }
104
107
  }, "drawAxes");
105
- function F(e, t, n, r, i, a, o) {
108
+ function I(e, t, n, r, i, a, o) {
106
109
  let s = t.length, c = Math.min(o.width, o.height) / 2;
107
110
  n.forEach((t, n) => {
108
111
  if (t.entries.length !== s) return;
109
112
  let l = t.entries.map((e, t) => {
110
- let n = 2 * Math.PI * t / s - Math.PI / 2, a = I(e, r, i, c);
113
+ let n = 2 * Math.PI * t / s - Math.PI / 2, a = L(e, r, i, c);
111
114
  return {
112
115
  x: a * Math.cos(n),
113
116
  y: a * Math.sin(n)
114
117
  };
115
118
  });
116
- a === "circle" ? e.append("path").attr("d", L(l, o.curveTension)).attr("class", `radarCurve-${n}`) : a === "polygon" && e.append("polygon").attr("points", l.map((e) => `${e.x},${e.y}`).join(" ")).attr("class", `radarCurve-${n}`);
119
+ a === "circle" ? e.append("path").attr("d", R(l, o.curveTension)).attr("class", `radarCurve-${n}`) : a === "polygon" && e.append("polygon").attr("points", l.map((e) => `${e.x},${e.y}`).join(" ")).attr("class", `radarCurve-${n}`);
117
120
  });
118
121
  }
119
- t(F, "drawCurves");
120
- function I(e, t, n, r) {
122
+ f(I, "drawCurves");
123
+ function L(e, t, n, r) {
121
124
  return r * (Math.min(Math.max(e, t), n) - t) / (n - t);
122
125
  }
123
- t(I, "relativeRadius");
124
- function L(e, t) {
126
+ f(L, "relativeRadius");
127
+ function R(e, t) {
125
128
  let n = e.length, r = `M${e[0].x},${e[0].y}`;
126
129
  for (let i = 0; i < n; i++) {
127
130
  let a = e[(i - 1 + n) % n], o = e[i], s = e[(i + 1) % n], c = e[(i + 2) % n], l = {
@@ -135,8 +138,8 @@ function L(e, t) {
135
138
  }
136
139
  return `${r} Z`;
137
140
  }
138
- t(L, "closedRoundCurve");
139
- function R(e, t, n, r) {
141
+ f(R, "closedRoundCurve");
142
+ function z(e, t, n, r) {
140
143
  if (!n) return;
141
144
  let i = (r.width / 2 + r.marginRight) * 3 / 4, a = -(r.height / 2 + r.marginTop) * 3 / 4;
142
145
  t.forEach((t, n) => {
@@ -144,8 +147,8 @@ function R(e, t, n, r) {
144
147
  r.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${n}`), r.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(t.label);
145
148
  });
146
149
  }
147
- t(R, "drawLegend");
148
- var z = { draw: j }, B = /* @__PURE__ */ t((e, t) => {
150
+ f(z, "drawLegend");
151
+ var B = { draw: M }, V = /* @__PURE__ */ f((e, t) => {
149
152
  let n = "";
150
153
  for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) {
151
154
  let i = e[`cScale${r}`];
@@ -165,18 +168,18 @@ var z = { draw: j }, B = /* @__PURE__ */ t((e, t) => {
165
168
  `;
166
169
  }
167
170
  return n;
168
- }, "genIndexStyles"), V = /* @__PURE__ */ t((e) => {
169
- let t = p(n(), s().themeVariables);
171
+ }, "genIndexStyles"), H = /* @__PURE__ */ f((e) => {
172
+ let n = p(t(), o().themeVariables);
170
173
  return {
171
- themeVariables: t,
172
- radarOptions: p(t.radar, e)
174
+ themeVariables: n,
175
+ radarOptions: p(n.radar, e)
173
176
  };
174
- }, "buildRadarStyleOptions"), H = {
175
- parser: A,
176
- db: O,
177
- renderer: z,
178
- styles: /* @__PURE__ */ t(({ radar: e } = {}) => {
179
- let { themeVariables: t, radarOptions: n } = V(e);
177
+ }, "buildRadarStyleOptions"), U = {
178
+ parser: j,
179
+ db: k,
180
+ renderer: B,
181
+ styles: /* @__PURE__ */ f(({ radar: e } = {}) => {
182
+ let { themeVariables: t, radarOptions: n } = H(e);
180
183
  return `
181
184
  .radarTitle {
182
185
  font-size: ${t.fontSize};
@@ -189,8 +192,6 @@ var z = { draw: j }, B = /* @__PURE__ */ t((e, t) => {
189
192
  stroke-width: ${n.axisStrokeWidth};
190
193
  }
191
194
  .radarAxisLabel {
192
- dominant-baseline: middle;
193
- text-anchor: middle;
194
195
  font-size: ${n.axisLabelFontSize}px;
195
196
  color: ${n.axisColor};
196
197
  }
@@ -205,9 +206,9 @@ var z = { draw: j }, B = /* @__PURE__ */ t((e, t) => {
205
206
  font-size: ${n.legendFontSize}px;
206
207
  dominant-baseline: hanging;
207
208
  }
208
- ${B(t, n)}
209
+ ${V(t, n)}
209
210
  `;
210
211
  }, "styles")
211
212
  };
212
213
  //#endregion
213
- export { H as diagram };
214
+ export { U as diagram };
@@ -0,0 +1,41 @@
1
+ const e=require("./src-B16ML7oM.cjs"),t=require("./chunk-DU6HZSFF-mznJTFyO.cjs"),n=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),r=require("./chunk-75Z2AOVW-RbCLc-XL.cjs"),i=require("./chunk-CLGD4ZFX-Dvn-kRD7.cjs"),a=require("./mermaid-parser.core-CqChDTj1.cjs"),o=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");var s={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},c=32,l={axes:[],curves:[],options:s},u=structuredClone(l),d=t.f.radar,f=n.n(()=>r.i({...d,...t.b().radar}),`getConfig`),p=n.n(()=>u.axes,`getAxes`),m=n.n(()=>u.curves,`getCurves`),h=n.n(()=>u.options,`getOptions`),g=n.n(e=>{u.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),_=n.n(e=>{u.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:v(e.entries)}))},`setCurves`),v=n.n(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=p();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),y={getAxes:p,getCurves:m,getOptions:h,setAxes:g,setCurves:_,setOptions:n.n(t=>{let n=t.reduce((e,t)=>(e[t.name]=t,e),{});u.options={showLegend:n.showLegend?.value??s.showLegend,ticks:n.ticks?.value??s.ticks,max:n.max?.value??s.max,min:n.min?.value??s.min,graticule:n.graticule?.value??s.graticule},u.options.ticks>c&&(e.m.warn(`Radar diagram ticks (${u.options.ticks}) exceeds maximum allowed (${c}). Using ${c} instead.`),u.options.ticks=c)},`setOptions`),getConfig:f,clear:n.n(()=>{t.a(),u=structuredClone(l)},`clear`),setAccTitle:t.U,getAccTitle:t.y,setDiagramTitle:t.K,getDiagramTitle:t.w,getAccDescription:t.v,setAccDescription:t.H},b=n.n(e=>{o.t(e,y);let{axes:t,curves:n,options:r}=e;y.setAxes(t),y.setCurves(n),y.setOptions(r)},`populate`),x={parse:n.n(async t=>{let n=await a.n(`radar`,t);e.m.debug(n),b(n)},`parse`)},S=n.n((e,t,n,r)=>{let a=r.db,o=a.getAxes(),s=a.getCurves(),c=a.getOptions(),l=a.getConfig(),u=a.getDiagramTitle(),d=C(i.t(t),l),f=c.max??Math.max(...s.map(e=>Math.max(...e.entries))),p=c.min,m=Math.min(l.width,l.height)/2;w(d,o,m,c.ticks,c.graticule),T(d,o,m,l),E(d,o,s,p,f,c.graticule,l),k(d,s,c.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),C=n.n((e,n)=>{let r=n.width+n.marginLeft+n.marginRight,i=n.height+n.marginTop+n.marginBottom,a={x:n.marginLeft+n.width/2,y:n.marginTop+n.height/2};return t.c(e,i,r,n.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${r} ${i}`).attr(`overflow`,`visible`),e.append(`g`).attr(`transform`,`translate(${a.x}, ${a.y})`)},`drawFrame`),w=n.n((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),T=n.n((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2,c=Math.cos(s),l=Math.sin(s);e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*c).attr(`y2`,n*r.axisScaleFactor*l).attr(`class`,`radarAxisLine`);let u=c>.01?`start`:c<-.01?`end`:`middle`,d=l>.01?`hanging`:l<-.01?`auto`:`central`;e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*c+4*c).attr(`y`,n*r.axisLabelFactor*l+4*l).attr(`text-anchor`,u).attr(`dominant-baseline`,d).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function E(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=D(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,O(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}n.n(E,`drawCurves`);function D(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}n.n(D,`relativeRadius`);function O(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}n.n(O,`closedRoundCurve`);function k(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}n.n(k,`drawLegend`);var A={draw:S},j=n.n((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
2
+ .radarCurve-${r} {
3
+ color: ${i};
4
+ fill: ${i};
5
+ fill-opacity: ${t.curveOpacity};
6
+ stroke: ${i};
7
+ stroke-width: ${t.curveStrokeWidth};
8
+ }
9
+ .radarLegendBox-${r} {
10
+ fill: ${i};
11
+ fill-opacity: ${t.curveOpacity};
12
+ stroke: ${i};
13
+ }
14
+ `}return n},`genIndexStyles`),M=n.n(e=>{let n=r.i(t.D(),t.b().themeVariables);return{themeVariables:n,radarOptions:r.i(n.radar,e)}},`buildRadarStyleOptions`),N={parser:x,db:y,renderer:A,styles:n.n(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=M(e);return`
15
+ .radarTitle {
16
+ font-size: ${t.fontSize};
17
+ color: ${t.titleColor};
18
+ dominant-baseline: hanging;
19
+ text-anchor: middle;
20
+ }
21
+ .radarAxisLine {
22
+ stroke: ${n.axisColor};
23
+ stroke-width: ${n.axisStrokeWidth};
24
+ }
25
+ .radarAxisLabel {
26
+ font-size: ${n.axisLabelFontSize}px;
27
+ color: ${n.axisColor};
28
+ }
29
+ .radarGraticule {
30
+ fill: ${n.graticuleColor};
31
+ fill-opacity: ${n.graticuleOpacity};
32
+ stroke: ${n.graticuleColor};
33
+ stroke-width: ${n.graticuleStrokeWidth};
34
+ }
35
+ .radarLegendText {
36
+ text-anchor: start;
37
+ font-size: ${n.legendFontSize}px;
38
+ dominant-baseline: hanging;
39
+ }
40
+ ${j(t,n)}
41
+ `},`styles`)};exports.diagram=N;