ranui 0.2.1-alpha.5 → 0.4.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/README.md +4 -4
  2. package/README.zh-CN.md +3 -3
  3. package/dist/Temml-3BKyDWY9.js +4 -0
  4. package/dist/Temml-B3J22Yln.cjs +1 -0
  5. package/dist/{abnfDiagram-VRR7QNED-CTsqwzwi.js → abnfDiagram-VRR7QNED-C21Pc9Db.js} +4 -4
  6. package/dist/abnfDiagram-VRR7QNED-Do5oGbAb.cjs +1 -0
  7. package/dist/add-user-Dk1LIZtp.cjs +6 -0
  8. package/dist/add-user-WnpaBGEK.js +15 -0
  9. package/dist/arc-ByizYZ13.cjs +1 -0
  10. package/dist/{arc-DRPGof21.js → arc-DJJx8BhF.js} +1 -1
  11. package/dist/arc-DOGcyb-0.js +9 -0
  12. package/dist/architecture-TIHT7OUA-BJNZJd9x.cjs +1 -0
  13. package/dist/{architectureDiagram-ZJ3FMSHR-8mjyXr-w.js → architectureDiagram-ZJ3FMSHR-Dt0W9V1f.js} +7 -7
  14. package/dist/{architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs → architectureDiagram-ZJ3FMSHR-WH22GUwo.cjs} +2 -2
  15. package/dist/{arrow-down-Bi5kqUrX.js → arrow-down-DrjnnTe1.js} +4 -2
  16. package/dist/arrow-down-Dt-KyDFE.cjs +5 -0
  17. package/dist/{blockDiagram-677ZJIJ3-3F79MOSt.js → blockDiagram-677ZJIJ3-Cb0N9R3M.js} +8 -8
  18. package/dist/book-8PpGdTqf.cjs +1 -0
  19. package/dist/book-CkgJlJ4n.js +10 -0
  20. package/dist/build/config.d.ts +11 -2
  21. package/dist/builder-BjRti6oP.cjs +1 -0
  22. package/dist/builder.js +40 -40
  23. package/dist/button-DFBA474n.js +119 -0
  24. package/dist/button.js +1 -1
  25. package/dist/{c4Diagram-LMCZKHZV-Cxn_gqu_.js → c4Diagram-LMCZKHZV-CFLtikIe.js} +5 -5
  26. package/dist/{card-BHN9Xp4S.js → card-Cfkb7dIm.js} +13 -13
  27. package/dist/card.js +1 -1
  28. package/dist/{channel-k5-UxdcV.js → channel-B9hm3LKF.js} +1 -1
  29. package/dist/check-63MT_RxH.cjs +1 -0
  30. package/dist/check-circle-Cbsw_Ffd.cjs +1 -0
  31. package/dist/check-circle-Dpkv0_9Z.js +10 -0
  32. package/dist/check-circle-fill-DVVjVyV6.cjs +1 -0
  33. package/dist/check-circle-fill-eBwMoYEo.js +10 -0
  34. package/dist/{checkbox-O_J_n1_W.js → checkbox-CeVzf_ff.js} +15 -14
  35. package/dist/checkbox.js +1 -1
  36. package/dist/{chunk-32BRIVSS-jAuAwMVV.js → chunk-32BRIVSS-DhXCFCbM.js} +3 -3
  37. package/dist/{chunk-52WLFC77-wpL7en7e.js → chunk-52WLFC77-CLS2Long.js} +8 -8
  38. package/dist/chunk-5FCAYU7R-M2ohMDGf.cjs +1 -0
  39. package/dist/chunk-5HE753X5-DkUtBcPF.cjs +1 -0
  40. package/dist/chunk-5JV3BV7I-BAn3GEjF.cjs +1 -0
  41. package/dist/chunk-5TONJI2A-Bk0HPVuY.cjs +2 -0
  42. package/dist/chunk-BIQX33UG-CaI4JSOY.cjs +1 -0
  43. package/dist/{chunk-C7G6YPKG-CA-DNpvI.js → chunk-C7G6YPKG-CuJexLt7.js} +1 -1
  44. package/dist/chunk-CQNSW5MT-DHm86rAm.cjs +1 -0
  45. package/dist/chunk-CYSBUYHQ-8HNynFK-.cjs +1 -0
  46. package/dist/chunk-EMLP6XTP-DESFjGc5.cjs +1 -0
  47. package/dist/{chunk-EX3LRPZG-BCmf0iDq.js → chunk-EX3LRPZG-C-g2gFWb.js} +7 -7
  48. package/dist/{chunk-FWX5IMBZ-DZ5VYvm5.js → chunk-FWX5IMBZ-Cpx1Lg-4.js} +8 -8
  49. package/dist/{chunk-HOUHSVGY-DRQcQeMT.js → chunk-HOUHSVGY-DpvP0Kt0.js} +2 -2
  50. package/dist/{chunk-ICXQ74PX-DR8rL-xF.js → chunk-ICXQ74PX-DPZfA3a8.js} +3 -3
  51. package/dist/chunk-JG7HCLWE-DJPVQhqh.cjs +2 -0
  52. package/dist/{chunk-MOJQB5TN-BC46HDyu.js → chunk-MOJQB5TN-BWgg4qSh.js} +3 -3
  53. package/dist/chunk-MOZMSUNE-BiirTonv.cjs +1 -0
  54. package/dist/{chunk-OGEWGWER-BV51ll2w.js → chunk-OGEWGWER-CYsD5SNd.js} +2 -2
  55. package/dist/chunk-OSBZ3O6U-BDLnzsCC.cjs +1 -0
  56. package/dist/{chunk-PUDLZKDR-NdMR0Ft5.js → chunk-PUDLZKDR-Dw2BOPG-.js} +9 -9
  57. package/dist/{chunk-Q4XR5HBZ-3BHjjc9u.js → chunk-Q4XR5HBZ-D_n2NzvL.js} +4 -4
  58. package/dist/chunk-QBLGF6JB-DgQIhta2.cjs +1 -0
  59. package/dist/chunk-R7FJI6CG-BjmGc1OU.cjs +1 -0
  60. package/dist/{chunk-RYQCIY6F-BER2T9t0.js → chunk-RYQCIY6F-CIHQ94xS.js} +1 -1
  61. package/dist/chunk-U6XO7XAA-Cxdku9z7.cjs +2 -0
  62. package/dist/{chunk-V7JOEXUC-Cr_hr02u.js → chunk-V7JOEXUC-DNMlt0_E.js} +7 -7
  63. package/dist/{chunk-VAUOI2AC-izt0o4id.js → chunk-VAUOI2AC-CrgGIUR-.js} +2 -2
  64. package/dist/{chunk-VR4S4FIN-CJi5okl4.js → chunk-VR4S4FIN-DQsfbArk.js} +2 -2
  65. package/dist/{chunk-WYO6CB5R-DDHkKowO.js → chunk-WYO6CB5R-DyGmS3I6.js} +1 -1
  66. package/dist/{chunk-XXDRQBXY-BB1i_53q.js → chunk-XXDRQBXY-BeVLa_G2.js} +1 -1
  67. package/dist/chunk-YOTPTUD7-BCQ2zMB7.cjs +1 -0
  68. package/dist/{chunk-ZGVPDNZ5-6uMbTJXy.js → chunk-ZGVPDNZ5-DlEsNy2g.js} +7 -7
  69. package/dist/circle-DgoPsPmL.cjs +1 -0
  70. package/dist/circle-fold-CZf63cE1.js +9 -0
  71. package/dist/circle-fold-DGHgTbNx.cjs +1 -0
  72. package/dist/circle-line-DDD6hHbp.cjs +1 -0
  73. package/dist/circle-line-vsuTmqx8.js +9 -0
  74. package/dist/circle-rotate-B7JrnjYG.cjs +1 -0
  75. package/dist/circle-rotate-DDC3CKzB.js +9 -0
  76. package/dist/circle-spin-CIMhAYj5.cjs +1 -0
  77. package/dist/circle-spin-Djuwx9eN.js +9 -0
  78. package/dist/circle-turn-D1Z-dXF8.cjs +1 -0
  79. package/dist/circle-turn-DtYjq4Ky.js +9 -0
  80. package/dist/classDiagram-OUVF2IWQ-CkQt8O2B.js +30 -0
  81. package/dist/classDiagram-v2-EOCWNBFH-CkQt8O2B.js +30 -0
  82. package/dist/close-CDF9aHTU.js +10 -0
  83. package/dist/close-Ck_jxN7T.cjs +1 -0
  84. package/dist/close-circle-B3lBlRHE.cjs +1 -0
  85. package/dist/close-circle-DZZJhaf-.js +10 -0
  86. package/dist/close-circle-fill-Ds9W-XNo.cjs +1 -0
  87. package/dist/close-circle-fill-OiY9CVOv.js +10 -0
  88. package/dist/colorpicker-C8vbgSta.js +250 -0
  89. package/dist/colorpicker.js +1 -1
  90. package/dist/components/button/index.d.ts +1 -1
  91. package/dist/components/icon/index.d.ts +7 -0
  92. package/dist/components/loading/index.d.ts +6 -29
  93. package/dist/components/loading/types.d.ts +11 -0
  94. package/dist/components/loading/variants/arc/index.d.ts +6 -0
  95. package/dist/components/loading/variants/circle/index.d.ts +6 -0
  96. package/dist/components/loading/variants/circle-fold/index.d.ts +6 -0
  97. package/dist/components/loading/variants/circle-line/index.d.ts +6 -0
  98. package/dist/components/loading/variants/circle-rotate/index.d.ts +6 -0
  99. package/dist/components/loading/variants/circle-spin/index.d.ts +6 -0
  100. package/dist/components/loading/variants/circle-turn/index.d.ts +6 -0
  101. package/dist/components/loading/variants/cube/index.d.ts +6 -0
  102. package/dist/components/loading/variants/cube-dim/index.d.ts +6 -0
  103. package/dist/components/loading/variants/cube-fold/index.d.ts +6 -0
  104. package/dist/components/loading/variants/cube-grid/index.d.ts +6 -0
  105. package/dist/components/loading/variants/dot/index.d.ts +6 -0
  106. package/dist/components/loading/variants/dot-bar/index.d.ts +6 -0
  107. package/dist/components/loading/variants/dot-circle/index.d.ts +6 -0
  108. package/dist/components/loading/variants/dot-line/index.d.ts +6 -0
  109. package/dist/components/loading/variants/dot-pulse/index.d.ts +6 -0
  110. package/dist/components/loading/variants/double-bounce/index.d.ts +6 -0
  111. package/dist/components/loading/variants/drop/index.d.ts +6 -0
  112. package/dist/components/loading/variants/line/index.d.ts +6 -0
  113. package/dist/components/loading/variants/line-scale/index.d.ts +6 -0
  114. package/dist/components/loading/variants/pacman/index.d.ts +6 -0
  115. package/dist/components/loading/variants/pulse/index.d.ts +6 -0
  116. package/dist/components/loading/variants/rotate/index.d.ts +6 -0
  117. package/dist/components/loading/variants/scale-out/index.d.ts +6 -0
  118. package/dist/components/loading/variants/solar/index.d.ts +6 -0
  119. package/dist/components/loading/variants/square/index.d.ts +6 -0
  120. package/dist/components/loading/variants/stretch/index.d.ts +6 -0
  121. package/dist/components/loading/variants/text/index.d.ts +6 -0
  122. package/dist/components/loading/variants/triple-bounce/index.d.ts +6 -0
  123. package/dist/components/math/index.d.ts +37 -1
  124. package/dist/components/player/index.d.ts +0 -1
  125. package/dist/components/popover/index.d.ts +5 -5
  126. package/dist/components/select/index.d.ts +23 -0
  127. package/dist/{content-YOKzMoc7.js → content-WyCTQEb9.js} +7 -7
  128. package/dist/content.js +1 -1
  129. package/dist/copy-CMAYGCsm.cjs +1 -0
  130. package/dist/{cose-bilkent-JH36ORCC-DTwvJlGw.js → cose-bilkent-JH36ORCC-DCMxiO2H.js} +2 -2
  131. package/dist/cube-BHbuhZjD.cjs +1 -0
  132. package/dist/cube-BJr0a40o.js +9 -0
  133. package/dist/cube-dim-FDQVX9Sb.js +9 -0
  134. package/dist/cube-dim-JK8OwqXU.cjs +1 -0
  135. package/dist/cube-fold-68Pk6igJ.js +9 -0
  136. package/dist/cube-fold-DMmWEicy.cjs +1 -0
  137. package/dist/cube-grid-C5ONBtr1.cjs +1 -0
  138. package/dist/cube-grid-DTgwN5o-.js +9 -0
  139. package/dist/cynefin-VYW2F7L2-Yeua0tAa.cjs +1 -0
  140. package/dist/{cynefinDiagram-TSTJHNR4-Bjt4QTVh.js → cynefinDiagram-TSTJHNR4-B6dEjVBJ.js} +4 -4
  141. package/dist/{cynefinDiagram-TSTJHNR4-ISDORSxO.cjs → cynefinDiagram-TSTJHNR4-CAx-94I7.cjs} +1 -1
  142. package/dist/{dagre-VKFMJZFB-Dfku86Az.js → dagre-VKFMJZFB-CkNsP9vI.js} +10 -10
  143. package/dist/{diagram-FQU43EPY-BvQ5jmVn.js → diagram-FQU43EPY-Cefzg0En.js} +3 -3
  144. package/dist/{diagram-FQU43EPY-BAiRt5eL.cjs → diagram-FQU43EPY-Cn7-Jxoj.cjs} +2 -2
  145. package/dist/{diagram-G47NLZAW-DT2BBA0T.js → diagram-G47NLZAW-BsDJqCJu.js} +6 -6
  146. package/dist/{diagram-G47NLZAW-DGnmEa8u.cjs → diagram-G47NLZAW-Clm1JIiF.cjs} +1 -1
  147. package/dist/{diagram-NH7WQ7WH-DxgkStA3.cjs → diagram-NH7WQ7WH-BQWzEBKY.cjs} +1 -1
  148. package/dist/{diagram-NH7WQ7WH-W7jg4Vh8.js → diagram-NH7WQ7WH-DEGzjxf4.js} +4 -4
  149. package/dist/{diagram-OA4YK3LP-DkvFII73.cjs → diagram-OA4YK3LP-B90IV5Q-.cjs} +3 -3
  150. package/dist/{diagram-OA4YK3LP-jU--aqQl.js → diagram-OA4YK3LP-BZUB0lzT.js} +5 -5
  151. package/dist/{diagram-WEI45ONY-XvzRFmmY.cjs → diagram-WEI45ONY-B-8IP8vK.cjs} +1 -1
  152. package/dist/{diagram-WEI45ONY-C_Qhf4ny.js → diagram-WEI45ONY-BURO1A6S.js} +4 -4
  153. package/dist/{dist-C0Fwsvsq.js → dist-9Ly83Lo6.js} +1 -1
  154. package/dist/dot-D8taMWFZ.cjs +1 -0
  155. package/dist/dot-bar-CXBmT1RL.js +9 -0
  156. package/dist/dot-bar-Ddbyx-0a.cjs +1 -0
  157. package/dist/dot-circle-DksscvAR.js +9 -0
  158. package/dist/dot-circle-DxoSLiz7.cjs +1 -0
  159. package/dist/dot-line-8Z2hpBOL.js +9 -0
  160. package/dist/dot-line-CKcmWaBb.cjs +1 -0
  161. package/dist/dot-pulse-BC7xaifX.js +9 -0
  162. package/dist/dot-pulse-DVwedcib.cjs +1 -0
  163. package/dist/double-bounce-BVGrEHLy.js +9 -0
  164. package/dist/double-bounce-Cxp3i6ip.cjs +1 -0
  165. package/dist/download-DiDwbZL3.cjs +1 -0
  166. package/dist/drop-CTufsC6T.js +9 -0
  167. package/dist/drop-DU-RgWR1.js +16 -0
  168. package/dist/drop-_Iz47Fmh.cjs +7 -0
  169. package/dist/drop-q8qufm5t.cjs +1 -0
  170. package/dist/{dropdown-CzGAVWYC.js → dropdown-B2Sk5gQF.js} +22 -21
  171. package/dist/dropdown.js +1 -1
  172. package/dist/ebnfDiagram-CCIWWBDH-B5ZJxr_W.cjs +1 -0
  173. package/dist/{ebnfDiagram-CCIWWBDH-Gnr20Oc1.js → ebnfDiagram-CCIWWBDH-B6Gh-zq6.js} +4 -4
  174. package/dist/{erDiagram-Q63AITRT-D0Hh9b-W.js → erDiagram-Q63AITRT-B1iQoGRH.js} +13 -13
  175. package/dist/eventmodeling-45OFAUF4-_fgxNekW.cjs +1 -0
  176. package/dist/eye-BoGpexya.cjs +4 -0
  177. package/dist/eye-close-DdWDFgn0.cjs +4 -0
  178. package/dist/eye-close-pVr4NTjX.js +13 -0
  179. package/dist/eye-j7jzy-2Y.js +13 -0
  180. package/dist/factory-Ce9hR27Y.js +653 -0
  181. package/dist/flowDiagram-23GEKE2U-BxyRR3qT.js +19 -0
  182. package/dist/{form-B8afuJlF.js → form-C0-UiXLj.js} +9 -9
  183. package/dist/form.js +1 -1
  184. package/dist/fullscreen-0HIdaZda.cjs +1 -0
  185. package/dist/{ganttDiagram-NO4QXBWP-B40Eabk0.js → ganttDiagram-NO4QXBWP-BE1v5yrp.js} +6 -6
  186. package/dist/gitGraph-TEB2WS4Q-BlIs9PSc.cjs +1 -0
  187. package/dist/{gitGraphDiagram-IHSO6WYX-BUJNSssA.js → gitGraphDiagram-IHSO6WYX-BVRc2mkM.js} +3 -3
  188. package/dist/{gitGraphDiagram-IHSO6WYX-DW06165m.cjs → gitGraphDiagram-IHSO6WYX-DODKoP1i.cjs} +1 -1
  189. package/dist/github-BjP57_Xw.js +11 -0
  190. package/dist/github-_spzUZUJ.cjs +2 -0
  191. package/dist/{glass-BniIptBE.js → glass-TzHfgesD.js} +6 -6
  192. package/dist/glass.js +1 -1
  193. package/dist/globe-0D8896Sf.js +15 -0
  194. package/dist/globe-DOwlStJB.cjs +6 -0
  195. package/dist/home-C2_ARWjR.cjs +1 -0
  196. package/dist/home-COHVdQmi.js +10 -0
  197. package/dist/i18n-B3HBw6rL.js +1 -0
  198. package/dist/i18n-Cf5TtRb4-BeflTU82.js +175 -0
  199. package/dist/i18n.js +3 -2
  200. package/dist/icon-BoaQYEij.js +318 -0
  201. package/dist/icon.js +1 -1
  202. package/dist/icons.js +91 -3
  203. package/dist/iife/button.iife.js +1 -1
  204. package/dist/iife/card.iife.js +1 -1
  205. package/dist/iife/checkbox.iife.js +1 -1
  206. package/dist/iife/colorpicker.iife.js +235 -2
  207. package/dist/iife/content.iife.js +1 -1
  208. package/dist/iife/dropdown.iife.js +1 -1
  209. package/dist/iife/form.iife.js +1 -1
  210. package/dist/iife/glass.iife.js +1 -1
  211. package/dist/iife/icon.iife.js +238 -1
  212. package/dist/iife/image.iife.js +1 -1
  213. package/dist/iife/input.iife.js +238 -1
  214. package/dist/iife/link.iife.js +1 -1
  215. package/dist/iife/loading.iife.js +1 -1
  216. package/dist/iife/math.iife.js +332 -260
  217. package/dist/iife/mermaid.iife.js +489 -252
  218. package/dist/iife/message.iife.js +238 -1
  219. package/dist/iife/modal.iife.js +1 -1
  220. package/dist/iife/player.iife.js +243 -10
  221. package/dist/iife/popover.iife.js +1 -1
  222. package/dist/iife/progress.iife.js +1 -1
  223. package/dist/iife/radar.iife.js +1 -1
  224. package/dist/iife/route.iife.js +1 -1
  225. package/dist/iife/router.iife.js +1 -1
  226. package/dist/iife/scratch.iife.js +1 -1
  227. package/dist/iife/section.iife.js +1 -1
  228. package/dist/iife/select.iife.js +235 -2
  229. package/dist/iife/skeleton.iife.js +1 -1
  230. package/dist/iife/tab.iife.js +1 -1
  231. package/dist/iife/tabpane.iife.js +1 -1
  232. package/dist/iife/theme-switch.iife.js +1 -1
  233. package/dist/{image-CqoQfJoV.js → image-CNpdv9k_.js} +8 -8
  234. package/dist/image.js +1 -1
  235. package/dist/index.cjs +26 -263
  236. package/dist/index.d.ts +9 -0
  237. package/dist/index.iife.js +617 -781
  238. package/dist/index.js +88 -87
  239. package/dist/info-DKCQHKI2-Chhdpnw0.cjs +1 -0
  240. package/dist/info-circle-Ciy6yKz-.js +14 -0
  241. package/dist/info-circle-fill-ChhhmoCU.cjs +1 -0
  242. package/dist/info-circle-fill-D5WjbRhd.js +10 -0
  243. package/dist/info-circle-xp0NNK4i.cjs +5 -0
  244. package/dist/infoDiagram-FWYZ7A6U-D_0rNuCQ.cjs +2 -0
  245. package/dist/{infoDiagram-FWYZ7A6U-Dc0m9qAx.js → infoDiagram-FWYZ7A6U-Z_GyAL7u.js} +3 -3
  246. package/dist/input-_iNjylVC.js +195 -0
  247. package/dist/input.js +1 -1
  248. package/dist/{ishikawaDiagram-FXEZZL3T-DuFtHOmf.js → ishikawaDiagram-FXEZZL3T-l087wv0C.js} +4 -4
  249. package/dist/issue-DF89eLmN.js +11 -0
  250. package/dist/issue-jx2d2kOG.cjs +2 -0
  251. package/dist/{journeyDiagram-5HDEW3XC-Bshelnhq.js → journeyDiagram-5HDEW3XC-DmNilMKR.js} +4 -4
  252. package/dist/{kanban-definition-HUTT4EX6-Dogv2paU.js → kanban-definition-HUTT4EX6-CmUdDowM.js} +9 -9
  253. package/dist/latinmodernmath-BNPh95x3.cjs +1 -0
  254. package/dist/latinmodernmath-BnpcbCAh.js +4 -0
  255. package/dist/line-Bhz15vpy.js +9 -0
  256. package/dist/{line-BIPmUVxO.js → line-CteEpfCu.js} +1 -1
  257. package/dist/line-qgqu6ngc.cjs +1 -0
  258. package/dist/line-scale-CtMO8YfX.js +9 -0
  259. package/dist/line-scale-Dr9ILV5d.cjs +1 -0
  260. package/dist/{linear-B2AM4ZBe.js → linear-C8AjwHWi.js} +1 -1
  261. package/dist/{link-BCrmHvXP.js → link-CmMSKe18.js} +9 -9
  262. package/dist/link.js +1 -1
  263. package/dist/loading-DHQDAkef.js +116 -0
  264. package/dist/loading-_bxcEaz0.js +10 -0
  265. package/dist/loading-fDM8Celd.cjs +1 -0
  266. package/dist/loading-scene-DTIgBHY7.cjs +53 -0
  267. package/dist/loading-scene-nEgp25AV.js +62 -0
  268. package/dist/loading.js +1 -1
  269. package/dist/lock-DSKjvWfl.cjs +4 -0
  270. package/dist/lock-Dw1hWtdP.js +13 -0
  271. package/dist/math-DobANAnr.js +223 -0
  272. package/dist/math.js +1 -1
  273. package/dist/menu-DQpdpBLB.js +11 -0
  274. package/dist/menu-DdHtbEk4.cjs +2 -0
  275. package/dist/{mermaid-C1oQyPE3.js → mermaid-CwMPhttK.js} +11 -11
  276. package/dist/mermaid-parser.core-BgDzuhyE.cjs +3 -0
  277. package/dist/{mermaid.core-B2d5lQW2.js → mermaid.core-do05yX9X.js} +49 -49
  278. package/dist/{mermaid.core-a1hgpWfs.cjs → mermaid.core-r_D7CSaj.cjs} +2 -2
  279. package/dist/mermaid.js +1 -1
  280. package/dist/message-BFv9-X-4.js +10 -0
  281. package/dist/{message-CNdmbeLf.js → message-CT-at-dX.js} +24 -21
  282. package/dist/message-DHzOpb1d.cjs +1 -0
  283. package/dist/message.js +1 -1
  284. package/dist/{mindmap-definition-LN4V7U3C-f7s5ZePP.js → mindmap-definition-LN4V7U3C-Mj5HCDww.js} +12 -12
  285. package/dist/modal-COzuPRoz.cjs +2 -0
  286. package/dist/{modal-gRagDkTb.js → modal-DkFW7_It.js} +12 -12
  287. package/dist/modal.js +1 -1
  288. package/dist/more-l0-w-c99.js +11 -0
  289. package/dist/more-tqkE9a7G.cjs +2 -0
  290. package/dist/packet-7NZHBO7P-BIgRfmDy.cjs +1 -0
  291. package/dist/pacman-C7_BcAl5.cjs +1 -0
  292. package/dist/pacman-DSIM9KGC.js +9 -0
  293. package/dist/pegDiagram-2B236MQR-CTcfU4SV.cjs +1 -0
  294. package/dist/{pegDiagram-2B236MQR-B-Xeh55J.js → pegDiagram-2B236MQR-Crdw8nmA.js} +4 -4
  295. package/dist/pie-RZYD4A2V-BJEu4CoQ.cjs +1 -0
  296. package/dist/{pieDiagram-ENE6RG2P-CVSE95zc.js → pieDiagram-ENE6RG2P-9GNsaY-6.js} +6 -6
  297. package/dist/{pieDiagram-ENE6RG2P-BkSiP4iu.cjs → pieDiagram-ENE6RG2P-D1QD_sOE.cjs} +2 -2
  298. package/dist/{player-BkkmkqR4.js → player-Dhv_QP4a.js} +112 -113
  299. package/dist/player.js +1 -1
  300. package/dist/plugins/load-svg.d.ts +16 -3
  301. package/dist/plus-C91b38f6.js +11 -0
  302. package/dist/plus-DjDn222b.cjs +2 -0
  303. package/dist/{popover-BZKSLe3D.js → popover-DR5ua2_I.js} +17 -15
  304. package/dist/popover.js +1 -1
  305. package/dist/power-off-CM1fKRrr.js +10 -0
  306. package/dist/power-off-C_Akq2D-.cjs +1 -0
  307. package/dist/preview-ByPt3tw_.cjs +1 -0
  308. package/dist/preview-CAEhg4Xl.js +10 -0
  309. package/dist/{progress-vk40tuhm.js → progress-BRIBVXqD.js} +13 -12
  310. package/dist/progress.js +1 -1
  311. package/dist/pulse-DNmbppj-.js +9 -0
  312. package/dist/pulse-QISsDmFE.cjs +1 -0
  313. package/dist/{quadrantDiagram-ABIIQ3AL-TJ8FmqES.js → quadrantDiagram-ABIIQ3AL-rDltxRrQ.js} +3 -3
  314. package/dist/{radar-Bg0cexzU.js → radar-B9eKnRw8.js} +12 -10
  315. package/dist/radar-I7S5WNFK-DYV5_m9_.cjs +1 -0
  316. package/dist/radar.js +1 -1
  317. package/dist/railroad-3IZDKUUU-6oFUgWYG.cjs +1 -0
  318. package/dist/railroad-abnf-AHOZXSZD-DY3xJn9p.cjs +1 -0
  319. package/dist/railroad-ebnf-EBAXGLYW-DljDdad3.cjs +1 -0
  320. package/dist/railroad-peg-LSFZ7HO6-DNRdpVaC.cjs +1 -0
  321. package/dist/{railroadDiagram-RFXS5EU6-0lS5wYI7.js → railroadDiagram-RFXS5EU6-B6b0YncQ.js} +4 -4
  322. package/dist/railroadDiagram-RFXS5EU6-DCqD-VXV.cjs +1 -0
  323. package/dist/ranui.css +1 -1
  324. package/dist/refresh-CjGodz5_.cjs +1 -0
  325. package/dist/{requirementDiagram-TGXJPOKE-viCQLyJd.js → requirementDiagram-TGXJPOKE-BVEkrDX1.js} +12 -12
  326. package/dist/rolldown-runtime-DkpYurw3.js +25 -0
  327. package/dist/rotate-BX5qIRKZ.js +9 -0
  328. package/dist/rotate-VMR047YI.cjs +1 -0
  329. package/dist/{route-CGwS0cd_.js → route-C9sC9d8P.js} +10 -11
  330. package/dist/route.js +1 -1
  331. package/dist/{router-BK6DEkcN.js → router-CID9Dasr.js} +11 -11
  332. package/dist/router.js +1 -1
  333. package/dist/{sankeyDiagram-HTMAVEWB-CV6_AuMF.js → sankeyDiagram-HTMAVEWB-C_G-oWGd.js} +2 -2
  334. package/dist/scale-out-DqffQsuL.js +9 -0
  335. package/dist/scale-out-aZu3503p.cjs +1 -0
  336. package/dist/{scratch-ClF1awGi.js → scratch-y8Op8fTo.js} +8 -8
  337. package/dist/scratch.js +1 -1
  338. package/dist/search-Bci4TKOK.js +11 -0
  339. package/dist/search-DewMt8lt.cjs +2 -0
  340. package/dist/{section-BL0V7Kjf.js → section-cgPwzwLR.js} +10 -10
  341. package/dist/section.js +1 -1
  342. package/dist/{select-DRKYa3W2.js → select-Bqo_7nRL.js} +52 -46
  343. package/dist/select.js +1 -1
  344. package/dist/{sequenceDiagram-DBY2YBRQ-B9WNesh2.js → sequenceDiagram-DBY2YBRQ-B8lP53eo.js} +5 -5
  345. package/dist/setting-BlJhorAQ.cjs +1 -0
  346. package/dist/setting-RhW6oH2c.js +10 -0
  347. package/dist/{skeleton-D7JIbROq.js → skeleton-wq2ybbYv.js} +9 -9
  348. package/dist/skeleton.js +1 -1
  349. package/dist/solar-BPmDmWLU.js +9 -0
  350. package/dist/solar-DaoF834l.cjs +1 -0
  351. package/dist/sort-CZTjWeHC.cjs +7 -0
  352. package/dist/sort-tAqAKb3x.js +16 -0
  353. package/dist/sprite-DHG11_c7.cjs +138 -0
  354. package/dist/sprite-ICuni2rO.js +147 -0
  355. package/dist/square-DKQ0d_O6.js +9 -0
  356. package/dist/square-DiBkWYAH.cjs +1 -0
  357. package/dist/{src-DtRLxcYO.js → src-CM-0IT-N.js} +1 -1
  358. package/dist/ssg.js +1 -1
  359. package/dist/ssr-stream.js +1 -1
  360. package/dist/{ssr-DSGwPtEd.js → ssr-vZNJHtYm.js} +5 -5
  361. package/dist/ssr.js +1 -1
  362. package/dist/{stateDiagram-2N3HPSRC-DxH4BMSh.js → stateDiagram-2N3HPSRC-DzG4g-Br.js} +15 -15
  363. package/dist/stateDiagram-v2-6OUMAXLB-tbh4Ib6Z.js +30 -0
  364. package/dist/stretch-BXJ4labN.js +9 -0
  365. package/dist/stretch-LP22YEA3.cjs +1 -0
  366. package/dist/{swimlanes-5IMT3BWC-DcADNGpg.js → swimlanes-5IMT3BWC-CQpI-vXu.js} +10 -10
  367. package/dist/swimlanesDiagram-G3AALYLV-C_mEClzT.js +31 -0
  368. package/dist/{tab-DFVtDJb2.js → tab-DMUILL_2.js} +12 -12
  369. package/dist/tab.js +1 -1
  370. package/dist/{tabpane-C3qZGN-D.js → tabpane-R8Kyn9jv.js} +11 -11
  371. package/dist/tabpane.js +1 -1
  372. package/dist/team-DshvOQrF.cjs +1 -0
  373. package/dist/team-oJOYGlHy.js +10 -0
  374. package/dist/temml-DKTWcsY9.js +9934 -0
  375. package/dist/temml-qMLYhcAb.cjs +96 -0
  376. package/dist/test/e2e/helpers.d.ts +32 -0
  377. package/dist/test/unit/select-ssr-upgrade.test.d.ts +1 -0
  378. package/dist/text-8gI5TFOa.js +17 -0
  379. package/dist/text-C_XRjuGr.cjs +1 -0
  380. package/dist/theme-DAG2-N5e.js +52 -0
  381. package/dist/{theme-switch-BXNH5uPD.js → theme-switch-D3MpVw-R.js} +16 -17
  382. package/dist/theme-switch.js +1 -1
  383. package/dist/theme.js +1 -1
  384. package/dist/{timeline-definition-FHXFAJF6-C80VjPLh.js → timeline-definition-FHXFAJF6-JZu2t9NH.js} +5 -5
  385. package/dist/treeView-QDETBFTQ-JVYSN7d-.cjs +1 -0
  386. package/dist/treemap-6X3UGDF4-ChqvozdN.cjs +1 -0
  387. package/dist/triple-bounce-CMwTsw-f.js +9 -0
  388. package/dist/triple-bounce-CNjk5imb.cjs +1 -0
  389. package/dist/typings.d.ts +9 -0
  390. package/dist/unlock-B6Kz8QUC.cjs +4 -0
  391. package/dist/unlock-DMG2IKZP.js +13 -0
  392. package/dist/user-BvjpVTOP.js +10 -0
  393. package/dist/user-CNTRFuXZ.cjs +1 -0
  394. package/dist/utils/builder/escape.d.ts +6 -1
  395. package/dist/utils/dom.d.ts +2 -15
  396. package/dist/utils/i18n/index.d.ts +2 -69
  397. package/dist/utils/i18n.js +5 -87
  398. package/dist/utils/index.d.ts +2 -1
  399. package/dist/utils/style.d.ts +7 -5
  400. package/dist/utils-DqjNwwjC.js +48 -0
  401. package/dist/utils-nntJky78.js +646 -0
  402. package/dist/{vennDiagram-L72KCM5P-BYHB7OW8.js → vennDiagram-L72KCM5P-DM6fQj7p.js} +4 -4
  403. package/dist/wardley-OPB4EBWU-BI6su3co.cjs +1 -0
  404. package/dist/{wardleyDiagram-EHGQE667--ubmCaWM.js → wardleyDiagram-EHGQE667-CzH0l2vj.js} +4 -4
  405. package/dist/{wardleyDiagram-EHGQE667-K6ckkRZS.cjs → wardleyDiagram-EHGQE667-ZMxVQw17.cjs} +2 -2
  406. package/dist/warning-circle-2Ni7fSPp.js +10 -0
  407. package/dist/warning-circle-CxDUN_Pg.cjs +1 -0
  408. package/dist/warning-circle-fill-CNmn_n74.js +10 -0
  409. package/dist/warning-circle-fill-CRKQ8eDt.cjs +1 -0
  410. package/dist/without-content-BCQsfG1Q.cjs +1 -0
  411. package/dist/without-content-C7ATBu1N.js +10 -0
  412. package/dist/{xychartDiagram-FW5EYKEG-DLqWcTPt.js → xychartDiagram-FW5EYKEG-GL1uK3EN.js} +8 -8
  413. package/dist/zoom-in-BLTVwnRI.cjs +1 -0
  414. package/dist/zoom-out-BIXvVAC9.cjs +1 -0
  415. package/docs/COMPONENTS.md +6 -6
  416. package/docs/DESIGN.md +21 -22
  417. package/docs/style-tokens-public.md +89 -23
  418. package/package.json +119 -35
  419. package/typings.d.ts +9 -0
  420. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +0 -1
  421. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +0 -1
  422. package/dist/builtin-1lUEp_ro.js +0 -416
  423. package/dist/button-Cj-XSCsd.js +0 -117
  424. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +0 -30
  425. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +0 -30
  426. package/dist/colorpicker-CKA4xN-g.js +0 -314
  427. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +0 -1
  428. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +0 -1
  429. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +0 -1
  430. package/dist/factory-ZNhcQ4tf.js +0 -482
  431. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +0 -19
  432. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +0 -1
  433. package/dist/icon-GZrfSeon.js +0 -256
  434. package/dist/info-DKCQHKI2-DNOtUIin.cjs +0 -1
  435. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +0 -2
  436. package/dist/input-ZY2Wumze.js +0 -195
  437. package/dist/katex-es-BTpuCxxV.cjs +0 -261
  438. package/dist/katex-es-CKRwcaiU.js +0 -23682
  439. package/dist/loading-M6gWxLbm.js +0 -206
  440. package/dist/math-8E-45Y8e.js +0 -52
  441. package/dist/mermaid-parser.core-DYumW1vq.cjs +0 -6
  442. package/dist/mocks-CMGoftIc.js +0 -179
  443. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +0 -1
  444. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +0 -1
  445. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +0 -1
  446. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +0 -1
  447. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +0 -1
  448. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +0 -1
  449. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +0 -1
  450. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +0 -1
  451. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +0 -1
  452. package/dist/rolldown-runtime-9ZSF5uba.js +0 -16
  453. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +0 -30
  454. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +0 -31
  455. package/dist/test/unit/colorpicker.color.utils.test.d.ts +0 -1
  456. package/dist/test/unit/utils.math.test.d.ts +0 -1
  457. package/dist/test/unit/utils.tween.test.d.ts +0 -1
  458. package/dist/theme-kOWZbKCq.js +0 -70
  459. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +0 -1
  460. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +0 -1
  461. package/dist/utils/color.d.ts +0 -52
  462. package/dist/utils/image.d.ts +0 -39
  463. package/dist/utils/math.d.ts +0 -26
  464. package/dist/utils/tween.d.ts +0 -21
  465. package/dist/utils-D1iZnChu.js +0 -614
  466. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +0 -1
  467. package/dist/warning-circle-fill-Cz0qu7AH.js +0 -23
@@ -1,5 +1,5 @@
1
- const vt=require("./mermaid-parser.core-DYumW1vq.cjs"),u=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),Q=require("./src-C9EhKhbk.cjs"),C=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),J=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),St=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),Mt=require("./chunk-JWPE2WC7-D8EnWK1B.cjs");var W=u.__name((e,a)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${a} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),z=u.__name((e,a,r)=>({x:W(a,`${r} evolution`),y:W(e,`${r} visibility`)}),"toCoordinates"),U=u.__name(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),At=u.__name(e=>{if(!e?.startsWith("+"))return{};const a=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:a}:e.includes("<")?{flow:"backward",label:a}:e.includes(">")?{flow:"forward",label:a}:{label:a}},"extractFlowFromArrow"),Nt=u.__name((e,a)=>{if(Mt.populateCommonDb(e,a),e.size&&a.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(n=>n.secondName?`${n.name.trim()} / ${n.secondName.trim()}`:n.name.trim()),x=e.evolution.stages.filter(n=>n.boundary!==void 0).map(n=>n.boundary);a.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=z(r.visibility,r.evolution,`Anchor "${r.name}"`);a.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=z(r.visibility,r.evolution,`Component "${r.name}"`),n=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,l=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,y=r.decorator?.strategy;a.addNode(r.name,r.name,x.x,x.y,"component",n,l,r.inertia,y)}),e.notes.forEach(r=>{const x=z(r.visibility,r.evolution,`Note "${r.text}"`);a.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=a.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const n=x.y;a.startPipeline(r.parent),r.components.forEach(l=>{const y=`${r.parent}_${l.name}`,v=l.label?(l.label.negX?-1:1)*l.label.offsetX:void 0,g=l.label?(l.label.negY?-1:1)*l.label.offsetY:void 0,F=W(l.evolution,`Pipeline component "${l.name}" evolution`);a.addNode(y,l.name,F,n,"pipeline-component",v,g),a.addPipelineComponent(r.parent,y)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let n=U(r.fromPort)??U(r.toPort);const{flow:l,label:y}=At(r.arrow);!n&&l&&(n=l);const v=r.linkLabel,g=y??v;a.addLink(a.resolveNodeId(r.from),a.resolveNodeId(r.to),x,g,n)}),e.evolves.forEach(r=>{const x=a.getNode(r.component);if(x?.y!==void 0){const n=W(r.target,`Evolve target for "${r.component}"`);a.addTrend(r.component,n,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=z(r.x,r.y,"Annotations box");a.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=z(r.x,r.y,`Annotation ${r.number}`);a.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=z(r.x,r.y,`Accelerator "${r.name}"`);a.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=z(r.x,r.y,`Deaccelerator "${r.name}"`);a.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),K={parser:{yy:void 0},parse:u.__name(async e=>{const a=await vt.parse("wardley",e);Q.log.debug(a);const r=K.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Nt(a,r)},"parse")},Tt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u.__name(this,"WardleyBuilder")}addNode(e){const a=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...a,...e,className:e.className??a.className,labelOffsetX:e.labelOffsetX??a.labelOffsetX,labelOffsetY:e.labelOffsetY??a.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const a=this.nodes.get(e);a&&(a.isPipelineParent=!0)}addPipelineComponent(e,a){const r=this.pipelines.get(e);r&&r.componentIds.push(a);const x=this.nodes.get(a);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,a){this.annotationsBox={x:e,y:a}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,a){this.size={width:e,height:a}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[a,r]of this.nodes)if(r.label===e)return a;return e}build(){const e=[];for(const a of this.nodes.values()){if(typeof a.x!="number"||typeof a.y!="number")throw new Error(`Node "${a.label}" is missing coordinates`);e.push(a)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Tt;function tt(){return C.getConfig2()["wardley-beta"]}u.__name(tt,"getConfig");function et(e,a,r,x,n,l,y,v,g){k.addNode({id:e,label:a,x:r,y:x,className:n,labelOffsetX:l,labelOffsetY:y,inertia:v,sourceStrategy:g})}u.__name(et,"addNode");function at(e,a,r=!1,x,n){k.addLink({source:e,target:a,dashed:r,label:x,flow:n})}u.__name(at,"addLink");function rt(e,a,r){k.addTrend({nodeId:e,targetX:a,targetY:r})}u.__name(rt,"addTrend");function ot(e,a,r){k.addAnnotation({number:e,coordinates:a,text:r})}u.__name(ot,"addAnnotation");function nt(e,a,r){k.addNote({text:e,x:a,y:r})}u.__name(nt,"addNote");function st(e,a,r){k.addAccelerator({name:e,x:a,y:r})}u.__name(st,"addAccelerator");function it(e,a,r){k.addDeaccelerator({name:e,x:a,y:r})}u.__name(it,"addDeaccelerator");function lt(e,a){k.setAnnotationsBox(e,a)}u.__name(lt,"setAnnotationsBox");function dt(e,a){k.setSize(e,a)}u.__name(dt,"setSize");function ct(e){k.startPipeline(e)}u.__name(ct,"startPipeline");function pt(e,a){k.addPipelineComponent(e,a)}u.__name(pt,"addPipelineComponent");function ht(e){k.setAxes(e)}u.__name(ht,"updateAxes");function xt(e){return k.getNode(e)}u.__name(xt,"getNode");function ft(e){return k.resolveNodeId(e)}u.__name(ft,"resolveNodeId");function gt(){return k.build()}u.__name(gt,"getWardleyData");function ut(){k.clear(),C.clear()}u.__name(ut,"clear");var zt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:lt,setSize:dt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ht,getNode:xt,resolveNodeId:ft,getWardleyData:gt,clear:ut,setAccTitle:C.setAccTitle,getAccTitle:C.getAccTitle,setDiagramTitle:C.setDiagramTitle,getDiagramTitle:C.getDiagramTitle,getAccDescription:C.getAccDescription,setAccDescription:C.setAccDescription},Lt=["Genesis","Custom Built","Product","Commodity"],Xt=u.__name(()=>{const{themeVariables:e}=C.getConfig2();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Et=u.__name(()=>{const e=C.getConfig2()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),Yt={parser:K,db:zt,renderer:{draw:u.__name((e,a,r,x)=>{Q.log.debug(`Rendering Wardley map
2
- `+e);const n=Et(),l=Xt(),y=n.nodeRadius*1.6,v=x.db,g=v.getWardleyData(),F=v.getDiagramTitle(),S=g.size?.width??n.width,b=g.size?.height??n.height,E=St.selectSvgElement(a);E.selectAll("*").remove(),C.configureSvgSize(E,b,S,n.useMaxWidth),E.attr("viewBox",`0 0 ${S} ${b}`);const _=E.append("g").attr("class","wardley-map"),D=E.append("defs");D.append("marker").attr("id",`arrow-${a}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.evolutionStroke).attr("stroke","none"),D.append("marker").attr("id",`link-arrow-end-${a}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.linkStroke).attr("stroke","none"),D.append("marker").attr("id",`link-arrow-start-${a}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",l.linkStroke).attr("stroke","none"),_.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",l.backgroundColor);const Y=S-n.padding*2,I=b-n.padding*2;F&&_.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",n.padding/2).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(F);const A=u.__name(t=>n.padding+t/100*Y,"projectX"),N=u.__name(t=>b-n.padding-t/100*I,"projectY"),O=_.append("g").attr("class","wardley-axes");O.append("line").attr("x1",n.padding).attr("x2",S-n.padding).attr("y1",b-n.padding).attr("y2",b-n.padding).attr("stroke",l.axisColor).attr("stroke-width",1),O.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke",l.axisColor).attr("stroke-width",1);const yt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+Y/2).attr("y",b-n.padding/4).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(yt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+I/2).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${n.padding/3} ${n.padding+I/2})`).text(mt);const B=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:Lt;if(B.length>0){const t=_.append("g").attr("class","wardley-stages"),i=g.axes.stageBoundaries,o=[];if(i&&i.length===B.length){let s=0;i.forEach(d=>{o.push({start:s,end:d}),s=d})}else{const s=1/B.length;B.forEach((d,c)=>{o.push({start:c*s,end:(c+1)*s})})}B.forEach((s,d)=>{const c=o[d],f=n.padding+c.start*Y,h=(f+(n.padding+c.end*Y))/2;d>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",h).attr("y",b-n.padding/1.5).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(s)})}if(n.showGrid){const t=_.append("g").attr("class","wardley-grid");for(let i=1;i<4;i++){const o=i/4,s=n.padding+Y*o;t.append("line").attr("x1",s).attr("x2",s).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",n.padding).attr("x2",S-n.padding).attr("y1",b-n.padding-I*o).attr("y2",b-n.padding-I*o).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6")}}const p=new Map;if(g.nodes.forEach(t=>{p.set(t.id,{x:A(t.x),y:N(t.y),node:t})}),g.pipelines.length>0){const t=_.append("g").attr("class","wardley-pipelines"),i=_.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(o=>{if(o.componentIds.length===0)return;const s=o.componentIds.map(h=>({id:h,pos:p.get(h),node:g.nodes.find(m=>m.id===h)})).filter(h=>h.pos&&h.node).sort((h,m)=>h.node.x-m.node.x);for(let h=0;h<s.length-1;h++){const m=s[h],w=s[h+1];i.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",m.pos.x).attr("y1",m.pos.y).attr("x2",w.pos.x).attr("y2",w.pos.y).attr("stroke",l.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let d=1/0,c=-1/0,f=0;if(o.componentIds.forEach(h=>{const m=p.get(h);m&&(d=Math.min(d,m.x),c=Math.max(c,m.x),f=m.y)}),d!==1/0&&c!==-1/0){const m=n.nodeRadius*4,w=f-m/2,P=p.get(o.nodeId);P&&(P.x=(d+c)/2,P.y=w-y/6),t.append("rect").attr("class","wardley-pipeline-box").attr("x",d-15).attr("y",w).attr("width",c-d+30).attr("height",m).attr("fill","none").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const j=_.append("g").attr("class","wardley-links"),V=new Map;g.pipelines.forEach(t=>{V.set(t.nodeId,new Set(t.componentIds))});const Z=g.links.filter(t=>!(!p.has(t.source)||!p.has(t.target)||V.get(t.target)?.has(t.source)));j.selectAll("line").data(Z).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.source).isPipelineParent?y/Math.sqrt(2):n.nodeRadius,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return i.x+d/f*s}).attr("y1",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.source).isPipelineParent?y/Math.sqrt(2):n.nodeRadius,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return i.y+c/f*s}).attr("x2",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.target).isPipelineParent?y/Math.sqrt(2):n.nodeRadius,d=i.x-o.x,c=i.y-o.y,f=Math.sqrt(d*d+c*c);return o.x+d/f*s}).attr("y2",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.target).isPipelineParent?y/Math.sqrt(2):n.nodeRadius,d=i.x-o.x,c=i.y-o.y,f=Math.sqrt(d*d+c*c);return o.y+c/f*s}).attr("stroke",l.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${a})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${a})`:null),j.selectAll("text").data(Z.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.x+o.x)/2,d=o.y-i.y,c=o.x-i.x;return s+d/Math.sqrt(c*c+d*d)*8}).attr("y",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.y+o.y)/2,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return s+-d/f*8}).attr("fill",l.axisTextColor).attr("font-size",n.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.x+o.x)/2,d=(i.y+o.y)/2,c=o.x-i.x,f=o.y-i.y,h=Math.sqrt(c*c+f*f),m=8,w=f/h,P=-c/h,L=s+w*m,q=d+P*m;let X=Math.atan2(f,c)*180/Math.PI;return(X>90||X<-90)&&(X+=180),`rotate(${X} ${L} ${q})`}).text(t=>t.label);const wt=_.append("g").attr("class","wardley-trends"),kt=g.trends.map(t=>{const i=p.get(t.nodeId);if(!i)return null;const o=A(t.targetX),s=N(t.targetY),d=o-i.x,c=s-i.y,f=Math.sqrt(d*d+c*c),h=n.nodeRadius+2;return{origin:i,targetX:o,targetY:s,adjustedX2:f>h?o-d/f*h:o,adjustedY2:f>h?s-c/f*h:s}}).filter(t=>t!==null);wt.selectAll("line").data(kt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",l.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${a})`);const M=_.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#666").attr("stroke",l.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#ccc").attr("stroke",l.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1);const G=n.nodeRadius*.7,$=n.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x).attr("y1",t=>p.get(t.id).y-$).attr("x2",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>p.get(t.id).x).attr("y2",t=>p.get(t.id).y-$).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y-$).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>p.get(t.id).x-y/2).attr("y",t=>p.get(t.id).y-y/2).attr("width",y).attr("height",y).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const i=p.get(t.id);let o=t.isPipelineParent?y/2+15:n.nodeRadius+15;return t.sourceStrategy&&(o+=n.nodeRadius+10),i.x+o}).attr("y1",t=>{const i=p.get(t.id),o=t.isPipelineParent?y:n.nodeRadius*2;return i.y-o/2}).attr("x2",t=>{const i=p.get(t.id);let o=t.isPipelineParent?y/2+15:n.nodeRadius+15;return t.sourceStrategy&&(o+=n.nodeRadius+10),i.x+o}).attr("y2",t=>{const i=p.get(t.id),o=t.isPipelineParent?y:n.nodeRadius*2;return i.y+o/2}).attr("stroke",l.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const i=p.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?i.x+t.labelOffsetX:i.x;let o=n.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(o+=10);const s=t.labelOffsetX??o;return i.x+s}).attr("y",t=>{const i=p.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?i.y+t.labelOffsetY:i.y-3;let o=-n.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(o-=10);const s=t.labelOffsetY??o;return i.y+s}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?l.evolutionStroke:t.className==="anchor"?"#000":l.componentLabelColor).attr("font-size",n.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=_.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(i=>{const o=i.coordinates.map(s=>({x:A(s.x),y:N(s.y)}));if(o.length>1)for(let s=0;s<o.length-1;s++)t.append("line").attr("class","wardley-annotation-line").attr("x1",o[s].x).attr("y1",o[s].y).attr("x2",o[s+1].x).attr("y2",o[s+1].y).attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");o.forEach(s=>{const d=t.append("g").attr("class","wardley-annotation");d.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",10).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5),d.append("text").attr("x",s.x).attr("y",s.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(i.number)})}),g.annotationsBox){let i=A(g.annotationsBox.x),o=N(g.annotationsBox.y);const s=10,d=16,c=11,f=t.append("g").attr("class","wardley-annotations-box"),h=[...g.annotations].filter(w=>w.text).sort((w,P)=>w.number-P.number),m=[];if(h.forEach((w,P)=>{const L=f.append("text").attr("x",i+s).attr("y",o+s+(P+1)*d).attr("font-size",c).attr("fill",l.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);m.push(L)}),m.length>0){let w=0,P=0;m.forEach(H=>{const R=H.node(),Pt=R.getComputedTextLength();w=Math.max(w,Pt);const Ct=R.getBBox();P=Math.max(P,Ct.height)});const L=w+s*2+105,q=h.length*d+s*2+P/2,X=n.padding,bt=S-n.padding-L,$t=n.padding,_t=b-n.padding-q;i=Math.max(X,Math.min(i,bt)),o=Math.max($t,Math.min(o,_t)),m.forEach((H,R)=>{H.attr("x",i+s).attr("y",o+s+(R+1)*d)}),f.insert("rect","text").attr("x",i).attr("y",o).attr("width",L).attr("height",q).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=_.append("g").attr("class","wardley-notes");g.notes.forEach(i=>{const o=A(i.x),s=N(i.y);t.append("text").attr("x",o).attr("y",s).attr("text-anchor","start").attr("font-size",11).attr("fill",l.axisTextColor).attr("font-weight","bold").text(i.text)})}if(g.accelerators.length>0){const t=_.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(i=>{const o=A(i.x),s=N(i.y),d=60,c=30,f=20,h=`
1
+ const u=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),Q=require("./src-C9EhKhbk.cjs"),C=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),J=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),vt=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),St=require("./chunk-JWPE2WC7-D8EnWK1B.cjs"),Mt=require("./mermaid-parser.core-BgDzuhyE.cjs");var W=u.__name((e,a)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${a} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),z=u.__name((e,a,r)=>({x:W(a,`${r} evolution`),y:W(e,`${r} visibility`)}),"toCoordinates"),U=u.__name(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),At=u.__name(e=>{if(!e?.startsWith("+"))return{};const a=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:a}:e.includes("<")?{flow:"backward",label:a}:e.includes(">")?{flow:"forward",label:a}:{label:a}},"extractFlowFromArrow"),Nt=u.__name((e,a)=>{if(St.populateCommonDb(e,a),e.size&&a.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(n=>n.secondName?`${n.name.trim()} / ${n.secondName.trim()}`:n.name.trim()),x=e.evolution.stages.filter(n=>n.boundary!==void 0).map(n=>n.boundary);a.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=z(r.visibility,r.evolution,`Anchor "${r.name}"`);a.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=z(r.visibility,r.evolution,`Component "${r.name}"`),n=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,l=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,y=r.decorator?.strategy;a.addNode(r.name,r.name,x.x,x.y,"component",n,l,r.inertia,y)}),e.notes.forEach(r=>{const x=z(r.visibility,r.evolution,`Note "${r.text}"`);a.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=a.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const n=x.y;a.startPipeline(r.parent),r.components.forEach(l=>{const y=`${r.parent}_${l.name}`,v=l.label?(l.label.negX?-1:1)*l.label.offsetX:void 0,g=l.label?(l.label.negY?-1:1)*l.label.offsetY:void 0,F=W(l.evolution,`Pipeline component "${l.name}" evolution`);a.addNode(y,l.name,F,n,"pipeline-component",v,g),a.addPipelineComponent(r.parent,y)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let n=U(r.fromPort)??U(r.toPort);const{flow:l,label:y}=At(r.arrow);!n&&l&&(n=l);const v=r.linkLabel,g=y??v;a.addLink(a.resolveNodeId(r.from),a.resolveNodeId(r.to),x,g,n)}),e.evolves.forEach(r=>{const x=a.getNode(r.component);if(x?.y!==void 0){const n=W(r.target,`Evolve target for "${r.component}"`);a.addTrend(r.component,n,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=z(r.x,r.y,"Annotations box");a.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=z(r.x,r.y,`Annotation ${r.number}`);a.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=z(r.x,r.y,`Accelerator "${r.name}"`);a.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=z(r.x,r.y,`Deaccelerator "${r.name}"`);a.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),K={parser:{yy:void 0},parse:u.__name(async e=>{const a=await Mt.parse("wardley",e);Q.log.debug(a);const r=K.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Nt(a,r)},"parse")},Tt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u.__name(this,"WardleyBuilder")}addNode(e){const a=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...a,...e,className:e.className??a.className,labelOffsetX:e.labelOffsetX??a.labelOffsetX,labelOffsetY:e.labelOffsetY??a.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const a=this.nodes.get(e);a&&(a.isPipelineParent=!0)}addPipelineComponent(e,a){const r=this.pipelines.get(e);r&&r.componentIds.push(a);const x=this.nodes.get(a);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,a){this.annotationsBox={x:e,y:a}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,a){this.size={width:e,height:a}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[a,r]of this.nodes)if(r.label===e)return a;return e}build(){const e=[];for(const a of this.nodes.values()){if(typeof a.x!="number"||typeof a.y!="number")throw new Error(`Node "${a.label}" is missing coordinates`);e.push(a)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Tt;function tt(){return C.getConfig2()["wardley-beta"]}u.__name(tt,"getConfig");function et(e,a,r,x,n,l,y,v,g){k.addNode({id:e,label:a,x:r,y:x,className:n,labelOffsetX:l,labelOffsetY:y,inertia:v,sourceStrategy:g})}u.__name(et,"addNode");function at(e,a,r=!1,x,n){k.addLink({source:e,target:a,dashed:r,label:x,flow:n})}u.__name(at,"addLink");function rt(e,a,r){k.addTrend({nodeId:e,targetX:a,targetY:r})}u.__name(rt,"addTrend");function ot(e,a,r){k.addAnnotation({number:e,coordinates:a,text:r})}u.__name(ot,"addAnnotation");function nt(e,a,r){k.addNote({text:e,x:a,y:r})}u.__name(nt,"addNote");function st(e,a,r){k.addAccelerator({name:e,x:a,y:r})}u.__name(st,"addAccelerator");function it(e,a,r){k.addDeaccelerator({name:e,x:a,y:r})}u.__name(it,"addDeaccelerator");function lt(e,a){k.setAnnotationsBox(e,a)}u.__name(lt,"setAnnotationsBox");function dt(e,a){k.setSize(e,a)}u.__name(dt,"setSize");function ct(e){k.startPipeline(e)}u.__name(ct,"startPipeline");function pt(e,a){k.addPipelineComponent(e,a)}u.__name(pt,"addPipelineComponent");function ht(e){k.setAxes(e)}u.__name(ht,"updateAxes");function xt(e){return k.getNode(e)}u.__name(xt,"getNode");function ft(e){return k.resolveNodeId(e)}u.__name(ft,"resolveNodeId");function gt(){return k.build()}u.__name(gt,"getWardleyData");function ut(){k.clear(),C.clear()}u.__name(ut,"clear");var zt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:lt,setSize:dt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ht,getNode:xt,resolveNodeId:ft,getWardleyData:gt,clear:ut,setAccTitle:C.setAccTitle,getAccTitle:C.getAccTitle,setDiagramTitle:C.setDiagramTitle,getDiagramTitle:C.getDiagramTitle,getAccDescription:C.getAccDescription,setAccDescription:C.setAccDescription},Lt=["Genesis","Custom Built","Product","Commodity"],Xt=u.__name(()=>{const{themeVariables:e}=C.getConfig2();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Et=u.__name(()=>{const e=C.getConfig2()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),Yt={parser:K,db:zt,renderer:{draw:u.__name((e,a,r,x)=>{Q.log.debug(`Rendering Wardley map
2
+ `+e);const n=Et(),l=Xt(),y=n.nodeRadius*1.6,v=x.db,g=v.getWardleyData(),F=v.getDiagramTitle(),S=g.size?.width??n.width,b=g.size?.height??n.height,E=vt.selectSvgElement(a);E.selectAll("*").remove(),C.configureSvgSize(E,b,S,n.useMaxWidth),E.attr("viewBox",`0 0 ${S} ${b}`);const _=E.append("g").attr("class","wardley-map"),D=E.append("defs");D.append("marker").attr("id",`arrow-${a}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.evolutionStroke).attr("stroke","none"),D.append("marker").attr("id",`link-arrow-end-${a}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.linkStroke).attr("stroke","none"),D.append("marker").attr("id",`link-arrow-start-${a}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",l.linkStroke).attr("stroke","none"),_.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",l.backgroundColor);const Y=S-n.padding*2,I=b-n.padding*2;F&&_.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",n.padding/2).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(F);const A=u.__name(t=>n.padding+t/100*Y,"projectX"),N=u.__name(t=>b-n.padding-t/100*I,"projectY"),O=_.append("g").attr("class","wardley-axes");O.append("line").attr("x1",n.padding).attr("x2",S-n.padding).attr("y1",b-n.padding).attr("y2",b-n.padding).attr("stroke",l.axisColor).attr("stroke-width",1),O.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke",l.axisColor).attr("stroke-width",1);const yt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+Y/2).attr("y",b-n.padding/4).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(yt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+I/2).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${n.padding/3} ${n.padding+I/2})`).text(mt);const B=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:Lt;if(B.length>0){const t=_.append("g").attr("class","wardley-stages"),i=g.axes.stageBoundaries,o=[];if(i&&i.length===B.length){let s=0;i.forEach(d=>{o.push({start:s,end:d}),s=d})}else{const s=1/B.length;B.forEach((d,c)=>{o.push({start:c*s,end:(c+1)*s})})}B.forEach((s,d)=>{const c=o[d],f=n.padding+c.start*Y,h=(f+(n.padding+c.end*Y))/2;d>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",h).attr("y",b-n.padding/1.5).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(s)})}if(n.showGrid){const t=_.append("g").attr("class","wardley-grid");for(let i=1;i<4;i++){const o=i/4,s=n.padding+Y*o;t.append("line").attr("x1",s).attr("x2",s).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",n.padding).attr("x2",S-n.padding).attr("y1",b-n.padding-I*o).attr("y2",b-n.padding-I*o).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6")}}const p=new Map;if(g.nodes.forEach(t=>{p.set(t.id,{x:A(t.x),y:N(t.y),node:t})}),g.pipelines.length>0){const t=_.append("g").attr("class","wardley-pipelines"),i=_.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(o=>{if(o.componentIds.length===0)return;const s=o.componentIds.map(h=>({id:h,pos:p.get(h),node:g.nodes.find(m=>m.id===h)})).filter(h=>h.pos&&h.node).sort((h,m)=>h.node.x-m.node.x);for(let h=0;h<s.length-1;h++){const m=s[h],w=s[h+1];i.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",m.pos.x).attr("y1",m.pos.y).attr("x2",w.pos.x).attr("y2",w.pos.y).attr("stroke",l.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let d=1/0,c=-1/0,f=0;if(o.componentIds.forEach(h=>{const m=p.get(h);m&&(d=Math.min(d,m.x),c=Math.max(c,m.x),f=m.y)}),d!==1/0&&c!==-1/0){const m=n.nodeRadius*4,w=f-m/2,P=p.get(o.nodeId);P&&(P.x=(d+c)/2,P.y=w-y/6),t.append("rect").attr("class","wardley-pipeline-box").attr("x",d-15).attr("y",w).attr("width",c-d+30).attr("height",m).attr("fill","none").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const j=_.append("g").attr("class","wardley-links"),V=new Map;g.pipelines.forEach(t=>{V.set(t.nodeId,new Set(t.componentIds))});const Z=g.links.filter(t=>!(!p.has(t.source)||!p.has(t.target)||V.get(t.target)?.has(t.source)));j.selectAll("line").data(Z).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.source).isPipelineParent?y/Math.sqrt(2):n.nodeRadius,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return i.x+d/f*s}).attr("y1",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.source).isPipelineParent?y/Math.sqrt(2):n.nodeRadius,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return i.y+c/f*s}).attr("x2",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.target).isPipelineParent?y/Math.sqrt(2):n.nodeRadius,d=i.x-o.x,c=i.y-o.y,f=Math.sqrt(d*d+c*c);return o.x+d/f*s}).attr("y2",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.target).isPipelineParent?y/Math.sqrt(2):n.nodeRadius,d=i.x-o.x,c=i.y-o.y,f=Math.sqrt(d*d+c*c);return o.y+c/f*s}).attr("stroke",l.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${a})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${a})`:null),j.selectAll("text").data(Z.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.x+o.x)/2,d=o.y-i.y,c=o.x-i.x;return s+d/Math.sqrt(c*c+d*d)*8}).attr("y",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.y+o.y)/2,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return s+-d/f*8}).attr("fill",l.axisTextColor).attr("font-size",n.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.x+o.x)/2,d=(i.y+o.y)/2,c=o.x-i.x,f=o.y-i.y,h=Math.sqrt(c*c+f*f),m=8,w=f/h,P=-c/h,L=s+w*m,q=d+P*m;let X=Math.atan2(f,c)*180/Math.PI;return(X>90||X<-90)&&(X+=180),`rotate(${X} ${L} ${q})`}).text(t=>t.label);const wt=_.append("g").attr("class","wardley-trends"),kt=g.trends.map(t=>{const i=p.get(t.nodeId);if(!i)return null;const o=A(t.targetX),s=N(t.targetY),d=o-i.x,c=s-i.y,f=Math.sqrt(d*d+c*c),h=n.nodeRadius+2;return{origin:i,targetX:o,targetY:s,adjustedX2:f>h?o-d/f*h:o,adjustedY2:f>h?s-c/f*h:s}}).filter(t=>t!==null);wt.selectAll("line").data(kt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",l.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${a})`);const M=_.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#666").attr("stroke",l.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#ccc").attr("stroke",l.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1);const G=n.nodeRadius*.7,$=n.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x).attr("y1",t=>p.get(t.id).y-$).attr("x2",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>p.get(t.id).x).attr("y2",t=>p.get(t.id).y-$).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y-$).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>p.get(t.id).x-y/2).attr("y",t=>p.get(t.id).y-y/2).attr("width",y).attr("height",y).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const i=p.get(t.id);let o=t.isPipelineParent?y/2+15:n.nodeRadius+15;return t.sourceStrategy&&(o+=n.nodeRadius+10),i.x+o}).attr("y1",t=>{const i=p.get(t.id),o=t.isPipelineParent?y:n.nodeRadius*2;return i.y-o/2}).attr("x2",t=>{const i=p.get(t.id);let o=t.isPipelineParent?y/2+15:n.nodeRadius+15;return t.sourceStrategy&&(o+=n.nodeRadius+10),i.x+o}).attr("y2",t=>{const i=p.get(t.id),o=t.isPipelineParent?y:n.nodeRadius*2;return i.y+o/2}).attr("stroke",l.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const i=p.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?i.x+t.labelOffsetX:i.x;let o=n.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(o+=10);const s=t.labelOffsetX??o;return i.x+s}).attr("y",t=>{const i=p.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?i.y+t.labelOffsetY:i.y-3;let o=-n.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(o-=10);const s=t.labelOffsetY??o;return i.y+s}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?l.evolutionStroke:t.className==="anchor"?"#000":l.componentLabelColor).attr("font-size",n.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=_.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(i=>{const o=i.coordinates.map(s=>({x:A(s.x),y:N(s.y)}));if(o.length>1)for(let s=0;s<o.length-1;s++)t.append("line").attr("class","wardley-annotation-line").attr("x1",o[s].x).attr("y1",o[s].y).attr("x2",o[s+1].x).attr("y2",o[s+1].y).attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");o.forEach(s=>{const d=t.append("g").attr("class","wardley-annotation");d.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",10).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5),d.append("text").attr("x",s.x).attr("y",s.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(i.number)})}),g.annotationsBox){let i=A(g.annotationsBox.x),o=N(g.annotationsBox.y);const s=10,d=16,c=11,f=t.append("g").attr("class","wardley-annotations-box"),h=[...g.annotations].filter(w=>w.text).sort((w,P)=>w.number-P.number),m=[];if(h.forEach((w,P)=>{const L=f.append("text").attr("x",i+s).attr("y",o+s+(P+1)*d).attr("font-size",c).attr("fill",l.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);m.push(L)}),m.length>0){let w=0,P=0;m.forEach(H=>{const R=H.node(),Pt=R.getComputedTextLength();w=Math.max(w,Pt);const Ct=R.getBBox();P=Math.max(P,Ct.height)});const L=w+s*2+105,q=h.length*d+s*2+P/2,X=n.padding,bt=S-n.padding-L,$t=n.padding,_t=b-n.padding-q;i=Math.max(X,Math.min(i,bt)),o=Math.max($t,Math.min(o,_t)),m.forEach((H,R)=>{H.attr("x",i+s).attr("y",o+s+(R+1)*d)}),f.insert("rect","text").attr("x",i).attr("y",o).attr("width",L).attr("height",q).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=_.append("g").attr("class","wardley-notes");g.notes.forEach(i=>{const o=A(i.x),s=N(i.y);t.append("text").attr("x",o).attr("y",s).attr("text-anchor","start").attr("font-size",11).attr("fill",l.axisTextColor).attr("font-weight","bold").text(i.text)})}if(g.accelerators.length>0){const t=_.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(i=>{const o=A(i.x),s=N(i.y),d=60,c=30,f=20,h=`
3
3
  M ${o} ${s-c/2}
4
4
  L ${o+d-f} ${s-c/2}
5
5
  L ${o+d-f} ${s-c/2-8}
@@ -0,0 +1,10 @@
1
+ import { n as t } from "./rolldown-runtime-DkpYurw3.js";
2
+ var s = /* @__PURE__ */ t({ default: () => a }), a = {
3
+ success: !0,
4
+ _identification: !0,
5
+ data: '<svg t="1667895689016" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8572" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8573"></path><path d="M512 688m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" p-id="8574"></path><path d="M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" p-id="8575"></path></svg>'
6
+ };
7
+ export {
8
+ s as n,
9
+ a as t
10
+ };
@@ -0,0 +1 @@
1
+ const t=require("./rolldown-runtime-CAnuVJ4g.cjs");var r=t.__exportAll({default:()=>e}),e={success:!0,_identification:!0,data:'<svg t="1667895689016" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8572" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8573"></path><path d="M512 688m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" p-id="8574"></path><path d="M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" p-id="8575"></path></svg>'};Object.defineProperty(exports,"warning_circle_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"warning_circle_exports",{enumerable:!0,get:function(){return r}});
@@ -0,0 +1,10 @@
1
+ import { n as t } from "./rolldown-runtime-DkpYurw3.js";
2
+ var a = /* @__PURE__ */ t({ default: () => i }), i = {
3
+ success: !0,
4
+ _identification: !0,
5
+ data: '<svg t="1667965273540" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8989" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296z m32 440c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z" p-id="8990"></path></svg>'
6
+ };
7
+ export {
8
+ a as n,
9
+ i as t
10
+ };
@@ -0,0 +1 @@
1
+ const r=require("./rolldown-runtime-CAnuVJ4g.cjs");var t=r.__exportAll({default:()=>e}),e={success:!0,_identification:!0,data:'<svg t="1667965273540" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8989" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296z m32 440c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z" p-id="8990"></path></svg>'};Object.defineProperty(exports,"warning_circle_fill_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"warning_circle_fill_exports",{enumerable:!0,get:function(){return t}});
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime-CAnuVJ4g.cjs");var l=e.__exportAll({default:()=>t}),t={success:!0,_identification:!0,data:'<svg t="1742629778506" class="icon" viewBox="0 0 1366 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31273" width="200" height="200"><path d="M1230.155 778.399V472.604l133.84-51.746-94.113-140.41 83.29 13.815 0.676-4.006 6.486-9.634L1204.75 176.19l-2.05 2.985 1.283-3.578L735.283 1.087 734 4.496l-1.197-3.494-550.626 182.523-0.338-0.598-2.303 1.619-0.43-0.083-0.597 0.85L0 311.57l7.076 9.972L8.78 325.8l97.353-40.064-70.926 98.38 140.747 78.94 0.168 312.863h3.838l-1.873 3.415 438.699 244.578 0.083-0.084v0.168l15.428-0.084v0.084l0.253-0.084h0.262v-0.084l597.428-245.262-0.085-0.168z m89.34-505.88l-61.802-10.223-38.106-56.866 99.908 67.09zM742.443 20.782l438.438 163.252-438.438 164.28V20.78z m451.654 175.355l145.522 217.047-605.703 234.1-100.084-241.176 560.265-209.97zM63.934 285.822l85.848-60.698-25.997 36.143-59.851 24.555z m-5.28 93.177L134.1 274.315l1.873-0.768-0.514-1.196 48.852-67.856 428.377 201.357-75.7 241.515L58.653 379zM192.07 768.85l-0.175-296.76 354.386 198.803 68.625-218.92 1.788 553.697L192.07 768.85z m8.184-574.587L726.5 19.843v334.433l-103.323 38.79-422.924-198.803z m1013.96 573.56L632.727 1006.52l-1.795-565.798 94.204 227.107 489.078-189v288.994z" fill="currentColor" p-id="31274"></path></svg>'};Object.defineProperty(exports,"without_content_default",{enumerable:!0,get:function(){return t}});Object.defineProperty(exports,"without_content_exports",{enumerable:!0,get:function(){return l}});
@@ -0,0 +1,10 @@
1
+ import { n as t } from "./rolldown-runtime-DkpYurw3.js";
2
+ var e = /* @__PURE__ */ t({ default: () => l }), l = {
3
+ success: !0,
4
+ _identification: !0,
5
+ data: '<svg t="1742629778506" class="icon" viewBox="0 0 1366 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31273" width="200" height="200"><path d="M1230.155 778.399V472.604l133.84-51.746-94.113-140.41 83.29 13.815 0.676-4.006 6.486-9.634L1204.75 176.19l-2.05 2.985 1.283-3.578L735.283 1.087 734 4.496l-1.197-3.494-550.626 182.523-0.338-0.598-2.303 1.619-0.43-0.083-0.597 0.85L0 311.57l7.076 9.972L8.78 325.8l97.353-40.064-70.926 98.38 140.747 78.94 0.168 312.863h3.838l-1.873 3.415 438.699 244.578 0.083-0.084v0.168l15.428-0.084v0.084l0.253-0.084h0.262v-0.084l597.428-245.262-0.085-0.168z m89.34-505.88l-61.802-10.223-38.106-56.866 99.908 67.09zM742.443 20.782l438.438 163.252-438.438 164.28V20.78z m451.654 175.355l145.522 217.047-605.703 234.1-100.084-241.176 560.265-209.97zM63.934 285.822l85.848-60.698-25.997 36.143-59.851 24.555z m-5.28 93.177L134.1 274.315l1.873-0.768-0.514-1.196 48.852-67.856 428.377 201.357-75.7 241.515L58.653 379zM192.07 768.85l-0.175-296.76 354.386 198.803 68.625-218.92 1.788 553.697L192.07 768.85z m8.184-574.587L726.5 19.843v334.433l-103.323 38.79-422.924-198.803z m1013.96 573.56L632.727 1006.52l-1.795-565.798 94.204 227.107 489.078-189v288.994z" fill="currentColor" p-id="31274"></path></svg>'
6
+ };
7
+ export {
8
+ e as n,
9
+ l as t
10
+ };
@@ -1,14 +1,14 @@
1
1
  import { n as a } from "./chunk-Y2CYZVJY-0JxdZxki.js";
2
- import { m as It } from "./src-DtRLxcYO.js";
3
- import { D as ai, H as ni, K as oi, U as ri, a as hi, b as pt, c as li, f as ci, v as ui, w as Mt, y as gi, z as xi } from "./chunk-WYO6CB5R-DDHkKowO.js";
4
- import { t as Lt } from "./linear-B2AM4ZBe.js";
2
+ import { m as It } from "./src-CM-0IT-N.js";
3
+ import { D as ai, H as ni, K as oi, U as ri, a as hi, b as pt, c as li, f as ci, v as ui, w as Mt, y as gi, z as xi } from "./chunk-WYO6CB5R-DyGmS3I6.js";
4
+ import { t as Lt } from "./linear-C8AjwHWi.js";
5
5
  import { t as di } from "./ordinal-BMN81JG2.js";
6
6
  import { t as fi } from "./init-1VpIn1S3.js";
7
- import { i as zt } from "./chunk-ICXQ74PX-DR8rL-xF.js";
8
- import { t as vt } from "./line-BIPmUVxO.js";
9
- import { t as pi } from "./chunk-VAUOI2AC-izt0o4id.js";
10
- import "./chunk-HOUHSVGY-DRQcQeMT.js";
11
- import { t as mi } from "./chunk-Q4XR5HBZ-3BHjjc9u.js";
7
+ import { i as zt } from "./chunk-ICXQ74PX-DPZfA3a8.js";
8
+ import { t as vt } from "./line-CteEpfCu.js";
9
+ import { t as pi } from "./chunk-VAUOI2AC-CrgGIUR-.js";
10
+ import "./chunk-HOUHSVGY-DpvP0Kt0.js";
11
+ import { t as mi } from "./chunk-Q4XR5HBZ-D_n2NzvL.js";
12
12
  function yi(t, i, s) {
13
13
  t = +t, i = +i, s = (n = arguments.length) < 2 ? (i = t, t = 0, 1) : n < 3 ? 1 : +s;
14
14
  for (var e = -1, n = Math.max(0, Math.ceil((i - t) / s)) | 0, c = new Array(n); ++e < n; ) c[e] = t + e * s;
@@ -0,0 +1 @@
1
+ const r=require("./rolldown-runtime-CAnuVJ4g.cjs");var t=r.__exportAll({default:()=>e}),e={success:!0,_identification:!0,data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>'};Object.defineProperty(exports,"zoom_in_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"zoom_in_exports",{enumerable:!0,get:function(){return t}});
@@ -0,0 +1 @@
1
+ const r=require("./rolldown-runtime-CAnuVJ4g.cjs");var t=r.__exportAll({default:()=>e}),e={success:!0,_identification:!0,data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>'};Object.defineProperty(exports,"zoom_out_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"zoom_out_exports",{enumerable:!0,get:function(){return t}});
@@ -6,7 +6,7 @@ shape), slots, and `::part()` names — extracted from source. For CSS variables
6
6
  (theming tokens) see [style-tokens-public.md](./style-tokens-public.md); for
7
7
  design rules see [DESIGN.md](./DESIGN.md).
8
8
 
9
- Generated at: 2026-07-19T06:15:56.300Z
9
+ Generated at: 2026-07-19T09:20:41.134Z
10
10
 
11
11
  32 custom elements.
12
12
 
@@ -21,7 +21,7 @@ Source: `components/button/index.ts`
21
21
  - `icon: string`
22
22
  - `iconSize: string`
23
23
  - `sheet: string`
24
- - `type: string` — Visual variant: `''` (default) | `'primary'` | `'contrast'` | `'warning'` | `'text'`. Drives the `:host([type=...])` styles.
24
+ - `type: string` — Visual variant: `''` (default) | `'primary'` (monochrome) | `'warning'` | `'text'`. Drives the `:host([type=...])` styles.
25
25
  - **Events**: —
26
26
  - **Slots**: `default`
27
27
  - **Parts**: `button`, `content`
@@ -195,17 +195,17 @@ Source: `components/loading/index.ts`
195
195
  - **Properties**: `name: 'double-bounce' | 'rotate' | 'stretch' | 'cube' | 'dot' | 'triple-bounce' | 'scale-out' | 'circle' | 'circle-line' | 'square' | 'pulse' | 'solar' | 'cube-fold' | 'circle-fold' | 'cube-grid' | 'circle-turn' | 'circle-rotate' | 'circle-spin' | 'dot-bar' | 'dot-circle' | 'line' | 'dot-pulse' | 'line-scale' | 'text' | 'cube-dim' | 'dot-line' | 'arc' | 'drop' | 'pacman'`, `sheet: string`
196
196
  - **Events**: —
197
197
  - **Slots**: —
198
- - **Parts**: `sun`
198
+ - **Parts**:
199
199
 
200
200
  ## `<r-math>`
201
201
 
202
202
  Source: `components/math/index.ts`
203
203
 
204
- - **Attributes**: `latex: string`, `sheet: string`
205
- - **Properties**: `latex: string`, `sheet: string`
204
+ - **Attributes**: `copy`, `display: string`, `download`, `font: string`, `latex: string`, `macros: Record<string, string> | undefined`, `sheet: string`, `wrap: 'none' | 'tex' | '=' | undefined`
205
+ - **Properties**: `copyable: boolean`, `copyTarget: 'source' | 'mathml'`, `display: string`, `downloadable: boolean`, `font: string`, `latex: string`, `macros: Record<string, string> | undefined`, `sheet: string`, `wrap: 'none' | 'tex' | '=' | undefined`
206
206
  - **Events**: —
207
207
  - **Slots**: —
208
- - **Parts**:
208
+ - **Parts**: `button`, `error`, `math`, `menu`, `render`, `toolbar`
209
209
 
210
210
  ## `<r-mermaid>`
211
211
 
package/docs/DESIGN.md CHANGED
@@ -38,27 +38,26 @@ Scales: `--ran-gray-100..1000`, `--ran-gray-alpha-100..1000` (translucent, layer
38
38
 
39
39
  **Use the semantic layer, not the scale, in components:**
40
40
 
41
- | Token | Maps to | Use for |
42
- | ------------------------------------------------ | ------------------------------- | ---------------------------- |
43
- | `--ran-color-bg` | background-100 | Page background |
44
- | `--ran-color-bg-subtle` | background-200 | Subtle page zones |
45
- | `--ran-color-bg-elevated` | bg-100 / gray-100 (dark) | Cards, surfaces |
46
- | `--ran-color-bg-muted` | gray-100 | Inset / muted fills |
47
- | `--ran-color-bg-hover` | gray-200 | Hover background |
48
- | `--ran-color-bg-active` | gray-300 | Active background |
49
- | `--ran-color-text` | gray-1000 | Primary text |
50
- | `--ran-color-text-secondary` | gray-900 | Secondary text |
51
- | `--ran-color-text-disabled` | gray-700 | Disabled text |
52
- | `--ran-color-border` | gray-400 | Default border |
53
- | `--ran-color-border-hover` | gray-500 | Hover border |
54
- | `--ran-color-border-active` | gray-600 | Active border |
55
- | `--ran-color-primary` / `-hover` / `-active` | blue-700 / 800 / 900 | Primary action |
56
- | `--ran-color-success` / `warning` / `danger` | green-700 / amber-700 / red-700 | Status |
57
- | `--ran-color-link` | blue-700 | Links |
58
- | `--ran-color-contrast-bg` / `-hover` / `-active` | gray-1000 / literal steps | Contrast (monochrome) action |
59
- | `--ran-color-contrast-text` | background-100 | Text on contrast |
60
-
61
- **Accent meaning:** blue = primary & links · green = success · amber = warning · red = danger/error. The **contrast** pair is the monochrome "highest-contrast" action (Geist contrast button): black-on-white in light, white-on-black in dark — use it when the primary action should carry no hue.
41
+ | Token | Maps to | Use for |
42
+ | -------------------------------------------- | ------------------------------------- | -------------------------------- |
43
+ | `--ran-color-bg` | background-100 | Page background |
44
+ | `--ran-color-bg-subtle` | background-200 | Subtle page zones |
45
+ | `--ran-color-bg-elevated` | bg-100 / gray-100 (dark) | Cards, surfaces |
46
+ | `--ran-color-bg-muted` | gray-100 | Inset / muted fills |
47
+ | `--ran-color-bg-hover` | gray-200 | Hover background |
48
+ | `--ran-color-bg-active` | gray-300 | Active background |
49
+ | `--ran-color-text` | gray-1000 | Primary text |
50
+ | `--ran-color-text-secondary` | gray-900 | Secondary text |
51
+ | `--ran-color-text-disabled` | gray-700 | Disabled text |
52
+ | `--ran-color-border` | gray-400 | Default border |
53
+ | `--ran-color-border-hover` | gray-500 | Hover border |
54
+ | `--ran-color-border-active` | gray-600 | Active border |
55
+ | `--ran-color-primary` / `-hover` / `-active` | gray-1000 / #383838 / #4d4d4d (flips) | Primary action (monochrome) |
56
+ | `--ran-color-primary-text` | background-100 | Ink on a primary surface (flips) |
57
+ | `--ran-color-success` / `warning` / `danger` | green-700 / amber-700 / red-700 | Status |
58
+ | `--ran-color-link` | blue-700 | Links |
59
+
60
+ **Accent meaning:** the **primary action is monochrome** — `--ran-color-primary` is black-on-white in light, white-on-black in dark (matching Vercel's brand tone), and text/icons on it use `--ran-color-primary-text` (the inverse, which flips too). **Blue** is reserved for **links (`--ran-color-link`) and the focus ring** only · green = success · amber = warning · red = danger/error. There is no separate "contrast" token — primary _is_ the highest-contrast monochrome action.
62
61
 
63
62
  **Light & dark:** same token name, different value. `gray-1000` is `#171717` in light and `#ededed` in dark. Components reference the _semantic name_; dark mode only redefines the base scale (one mixin), and everything re-resolves.
64
63
 
@@ -193,7 +192,7 @@ transition: var(--ran-input-transition, none);
193
192
 
194
193
  - Use the semantic ranui components (`r-button`, `r-input`, `r-select`, `r-card`, `r-modal`, …) rather than re-building primitives.
195
194
  - Theme through **CSS variables**, **`::part()`**, or the **`sheet`** attribute (escape hatch). CSS variables cross Shadow DOM; selectors do not.
196
- - Component tokens default to semantic tokens: `var(--ran-btn-content-background-color, var(--ran-color-primary, #006bff))`.
195
+ - Component tokens default to semantic tokens: `var(--ran-btn-content-background-color, var(--ran-color-primary, #171717))`.
197
196
  - Map states to the color ladder: default → `bg`/`text`; hover → `bg-hover` / `border-hover` / `primary-hover`; active → `bg-active` / `primary-active`; disabled → `text-disabled` + reduced opacity; focus → focus ring.
198
197
  - **Interactive cards opt in**: `r-card` only reacts to hover with the `hoverable` attribute (border 400 → 500 + elevated shadow). Non-interactive cards must stay inert — never add hover feedback to something that isn't clickable.
199
198
  - **Theme switching UI is a component**: use `<r-theme-switch>` (system / light / dark segmented pill, wired to `setTheme`/localStorage, syncs across instances and updates `theme-color` metas) instead of hand-rolling toggles. Localize with `label` / `label-system` / `label-light` / `label-dark`.
@@ -3,7 +3,7 @@
3
3
  This file is auto-generated by `bin/generate-style-docs.ts`.
4
4
  It is a filtered, public-facing style API view (structural/internal tokens excluded).
5
5
 
6
- Generated at: 2026-07-11T05:42:37.197Z
6
+ Generated at: 2026-07-19T06:49:49.075Z
7
7
 
8
8
  ## Components
9
9
 
@@ -14,7 +14,7 @@ Generated at: 2026-07-11T05:42:37.197Z
14
14
 
15
15
  #### Tokens
16
16
 
17
- <!-- layers: semantic: 15 · skin: 2 · component: 36 · internal: 1 -->
17
+ <!-- layers: semantic: 13 · skin: 2 · component: 38 · internal: 1 -->
18
18
 
19
19
  - `--ran-btn-after-background-image`
20
20
  - `--ran-btn-after-opacity`
@@ -28,6 +28,7 @@ Generated at: 2026-07-11T05:42:37.197Z
28
28
  - `--ran-btn-contain-user-select`
29
29
  - `--ran-btn-content-active-background-color`
30
30
  - `--ran-btn-content-active-border-color`
31
+ - `--ran-btn-content-active-transform`
31
32
  - `--ran-btn-content-align-items`
32
33
  - `--ran-btn-content-background-color`
33
34
  - `--ran-btn-content-background-image`
@@ -46,6 +47,7 @@ Generated at: 2026-07-11T05:42:37.197Z
46
47
  - `--ran-btn-content-padding`
47
48
  - `--ran-btn-content-text-align`
48
49
  - `--ran-btn-content-text-border`
50
+ - `--ran-btn-content-transition`
49
51
  - `--ran-btn-content-warning-background-color`
50
52
  - `--ran-btn-content-warning-border-color`
51
53
  - `--ran-btn-content-warning-color`
@@ -55,18 +57,16 @@ Generated at: 2026-07-11T05:42:37.197Z
55
57
  - `--ran-color-bg-elevated`
56
58
  - `--ran-color-border`
57
59
  - `--ran-color-border-hover`
58
- - `--ran-color-contrast-`
59
- - `--ran-color-contrast-bg`
60
- - `--ran-color-contrast-bg-active`
61
- - `--ran-color-contrast-bg-hover`
62
- - `--ran-color-contrast-text`
63
60
  - `--ran-color-danger`
64
61
  - `--ran-color-primary`
65
62
  - `--ran-color-primary-active`
66
63
  - `--ran-color-primary-hover`
64
+ - `--ran-color-primary-text`
67
65
  - `--ran-color-text`
68
66
  - `--ran-gray-alpha-400`
69
67
  - `--ran-motion-duration-base`
68
+ - `--ran-motion-ease-spring`
69
+ - `--ran-motion-ease-standard`
70
70
  - `--ran-radius-sm`
71
71
  - `--ran-skin-font-family`
72
72
  - `--ran-skin-raised-shadow`
@@ -78,12 +78,12 @@ Generated at: 2026-07-11T05:42:37.197Z
78
78
 
79
79
  ### `card`
80
80
 
81
- - Tokens: 21
81
+ - Tokens: 20
82
82
  - Parts: 7
83
83
 
84
84
  #### Tokens
85
85
 
86
- <!-- layers: semantic: 8 · skin: 1 · internal: 12 -->
86
+ <!-- layers: semantic: 7 · skin: 1 · internal: 12 -->
87
87
 
88
88
  - `--ran-card-background`
89
89
  - `--ran-card-border-color`
@@ -102,7 +102,6 @@ Generated at: 2026-07-11T05:42:37.197Z
102
102
  - `--ran-color-border-hover`
103
103
  - `--ran-color-text`
104
104
  - `--ran-color-text-secondary`
105
- - `--ran-motion-duration-base`
106
105
  - `--ran-radius-md`
107
106
  - `--ran-shadow-elevated`
108
107
  - `--ran-skin-border-style`
@@ -119,12 +118,12 @@ Generated at: 2026-07-11T05:42:37.197Z
119
118
 
120
119
  ### `checkbox`
121
120
 
122
- - Tokens: 37
121
+ - Tokens: 40
123
122
  - Parts: 5
124
123
 
125
124
  #### Tokens
126
125
 
127
- <!-- layers: semantic: 5 · skin: 1 · component: 30 · internal: 1 -->
126
+ <!-- layers: semantic: 7 · skin: 1 · component: 31 · internal: 1 -->
128
127
 
129
128
  - `--ran-blue-400`
130
129
  - `--ran-checkbox-border-radius`
@@ -156,12 +155,15 @@ Generated at: 2026-07-11T05:42:37.197Z
156
155
  - `--ran-checkbox-label-font-family`
157
156
  - `--ran-checkbox-label-font-size`
158
157
  - `--ran-checkbox-label-gap`
158
+ - `--ran-checkbox-pop-animation`
159
159
  - `--ran-checkbox-white-space`
160
160
  - `--ran-color-bg-elevated`
161
161
  - `--ran-color-bg-muted`
162
162
  - `--ran-color-border`
163
163
  - `--ran-color-primary`
164
164
  - `--ran-color-text`
165
+ - `--ran-motion-duration-base`
166
+ - `--ran-motion-ease-bouncy`
165
167
  - `--ran-skin-font-family`
166
168
 
167
169
  #### Parts
@@ -251,6 +253,36 @@ Generated at: 2026-07-11T05:42:37.197Z
251
253
 
252
254
  - (none)
253
255
 
256
+ ### `glass`
257
+
258
+ - Tokens: 15
259
+ - Parts: 2
260
+
261
+ #### Tokens
262
+
263
+ <!-- layers: semantic: 3 · internal: 12 -->
264
+
265
+ - `--ran-glass-blur`
266
+ - `--ran-glass-border`
267
+ - `--ran-glass-brightness`
268
+ - `--ran-glass-radius`
269
+ - `--ran-glass-refraction`
270
+ - `--ran-glass-saturate`
271
+ - `--ran-glass-shadow`
272
+ - `--ran-glass-sheen-duration`
273
+ - `--ran-glass-specular`
274
+ - `--ran-glass-specular-opacity`
275
+ - `--ran-glass-tint`
276
+ - `--ran-glass-transition`
277
+ - `--ran-motion-duration-base`
278
+ - `--ran-motion-duration-fast`
279
+ - `--ran-motion-ease-spring`
280
+
281
+ #### Parts
282
+
283
+ - `glass`
284
+ - `specular`
285
+
254
286
  ### `icon`
255
287
 
256
288
  - Tokens: 7
@@ -287,12 +319,12 @@ Generated at: 2026-07-11T05:42:37.197Z
287
319
 
288
320
  ### `input`
289
321
 
290
- - Tokens: 84
322
+ - Tokens: 83
291
323
  - Parts: 4
292
324
 
293
325
  #### Tokens
294
326
 
295
- <!-- layers: semantic: 11 · skin: 1 · component: 71 · internal: 1 -->
327
+ <!-- layers: semantic: 10 · skin: 1 · component: 71 · internal: 1 -->
296
328
 
297
329
  - `--ran-blue-400`
298
330
  - `--ran-color-bg-elevated`
@@ -375,7 +407,6 @@ Generated at: 2026-07-11T05:42:37.197Z
375
407
  - `--ran-input-status-error-border-color`
376
408
  - `--ran-input-status-warning-border-color`
377
409
  - `--ran-input-transition`
378
- - `--ran-motion-duration-base`
379
410
  - `--ran-radius-sm`
380
411
  - `--ran-skin-font-family`
381
412
 
@@ -436,6 +467,42 @@ Generated at: 2026-07-11T05:42:37.197Z
436
467
 
437
468
  - (none)
438
469
 
470
+ ### `mermaid`
471
+
472
+ - Tokens: 17
473
+ - Parts: 6
474
+
475
+ #### Tokens
476
+
477
+ <!-- layers: semantic: 8 · internal: 9 -->
478
+
479
+ - `--ran-color-bg-elevated`
480
+ - `--ran-color-bg-muted`
481
+ - `--ran-color-primary`
482
+ - `--ran-color-text`
483
+ - `--ran-color-text-secondary`
484
+ - `--ran-mermaid-button-color`
485
+ - `--ran-mermaid-button-hover-background`
486
+ - `--ran-mermaid-button-hover-color`
487
+ - `--ran-mermaid-button-size`
488
+ - `--ran-mermaid-error-color`
489
+ - `--ran-mermaid-menu-item-color`
490
+ - `--ran-mermaid-toolbar-background`
491
+ - `--ran-mermaid-toolbar-gap`
492
+ - `--ran-mermaid-toolbar-shadow`
493
+ - `--ran-radius-md`
494
+ - `--ran-radius-sm`
495
+ - `--ran-shadow-menu`
496
+
497
+ #### Parts
498
+
499
+ - `button`
500
+ - `diagram`
501
+ - `error`
502
+ - `menu`
503
+ - `mermaid`
504
+ - `toolbar`
505
+
439
506
  ### `message`
440
507
 
441
508
  - Tokens: 28
@@ -785,12 +852,12 @@ Generated at: 2026-07-11T05:42:37.197Z
785
852
 
786
853
  ### `select/dropdown-item`
787
854
 
788
- - Tokens: 20
855
+ - Tokens: 19
789
856
  - Parts: 2
790
857
 
791
858
  #### Tokens
792
859
 
793
- <!-- layers: semantic: 3 · component: 15 · internal: 2 -->
860
+ <!-- layers: semantic: 2 · component: 15 · internal: 2 -->
794
861
 
795
862
  - `--ran-blue-100`
796
863
  - `--ran-color-text`
@@ -810,7 +877,6 @@ Generated at: 2026-07-11T05:42:37.197Z
810
877
  - `--ran-dropdown-option-item-hover-background-color`
811
878
  - `--ran-dropdown-option-item-transition`
812
879
  - `--ran-gray-alpha-100`
813
- - `--ran-motion-duration-base`
814
880
  - `--ran-radius-sm`
815
881
 
816
882
  #### Parts
@@ -895,19 +961,18 @@ Generated at: 2026-07-11T05:42:37.197Z
895
961
 
896
962
  ### `theme-switch`
897
963
 
898
- - Tokens: 19
899
- - Parts: 0
964
+ - Tokens: 18
965
+ - Parts: 2
900
966
 
901
967
  #### Tokens
902
968
 
903
- <!-- layers: semantic: 7 · skin: 1 · internal: 11 -->
969
+ <!-- layers: semantic: 6 · skin: 1 · internal: 11 -->
904
970
 
905
971
  - `--ran-color-bg-hover`
906
972
  - `--ran-color-border`
907
973
  - `--ran-color-primary`
908
974
  - `--ran-color-text`
909
975
  - `--ran-color-text-secondary`
910
- - `--ran-motion-duration-fast`
911
976
  - `--ran-radius-full`
912
977
  - `--ran-skin-border-style`
913
978
  - `--ran-theme-switch-`
@@ -924,4 +989,5 @@ Generated at: 2026-07-11T05:42:37.197Z
924
989
 
925
990
  #### Parts
926
991
 
927
- - (none)
992
+ - `button ${choice}`
993
+ - `switch`