dominds 1.25.0 → 1.25.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 (230) hide show
  1. package/README.md +4 -3
  2. package/README.zh.md +4 -3
  3. package/dist/dialog-display-state.d.ts +3 -3
  4. package/dist/dialog-display-state.js +12 -8
  5. package/dist/dialog.d.ts +3 -3
  6. package/dist/dialog.js +42 -20
  7. package/dist/docs/design.md +4 -0
  8. package/dist/docs/design.zh.md +4 -0
  9. package/dist/docs/dlg-drive-algo.zh.md +5 -0
  10. package/dist/docs/roadmap.md +2 -0
  11. package/dist/docs/roadmap.zh.md +2 -0
  12. package/dist/llm/gen/mock.d.ts +2 -2
  13. package/dist/llm/gen/mock.js +2 -2
  14. package/dist/llm/kernel-driver/drive.js +41 -14
  15. package/dist/llm/kernel-driver/engine.d.ts +1 -1
  16. package/dist/llm/kernel-driver/idle-reminder-wake.js +1 -1
  17. package/dist/llm/kernel-driver/sideDialog.d.ts +1 -1
  18. package/dist/llm/kernel-driver/sideDialog.js +7 -3
  19. package/dist/llm/kernel-driver/tellask-special.js +1 -6
  20. package/dist/llm/kernel-driver/types.d.ts +1 -1
  21. package/dist/minds/system-prompt-parts.js +4 -4
  22. package/dist/persistence.d.ts +1 -7
  23. package/dist/persistence.js +186 -149
  24. package/dist/priming.js +116 -35
  25. package/dist/runtime/driver-messages.d.ts +1 -1
  26. package/dist/runtime/driver-messages.js +37 -19
  27. package/dist/server/api-routes.js +18 -0
  28. package/dist/server/server-core.d.ts +1 -0
  29. package/dist/server/server-core.js +11 -0
  30. package/dist/server/websocket-handler.js +2 -1
  31. package/dist/shared-reminders.d.ts +11 -3
  32. package/dist/shared-reminders.js +62 -34
  33. package/dist/team.js +4 -1
  34. package/dist/tool.d.ts +1 -1
  35. package/dist/tool.js +1 -1
  36. package/dist/tools/app-reminders.js +8 -2
  37. package/dist/tools/builtins.js +30 -0
  38. package/dist/tools/ctrl.js +34 -109
  39. package/dist/tools/fs.d.ts +2 -0
  40. package/dist/tools/fs.js +281 -2
  41. package/dist/tools/os.d.ts +11 -0
  42. package/dist/tools/os.js +26 -15
  43. package/dist/tools/picture.d.ts +1 -0
  44. package/dist/tools/picture.js +64 -1
  45. package/dist/tools/prompts/codex_inspect_and_patch_tools/en/tools.md +5 -0
  46. package/dist/tools/prompts/codex_inspect_and_patch_tools/zh/tools.md +5 -0
  47. package/dist/tools/prompts/control/en/errors.md +5 -19
  48. package/dist/tools/prompts/control/en/index.md +5 -4
  49. package/dist/tools/prompts/control/en/principles.md +23 -19
  50. package/dist/tools/prompts/control/en/scenarios.md +17 -11
  51. package/dist/tools/prompts/control/en/tools.md +4 -6
  52. package/dist/tools/prompts/control/zh/errors.md +5 -19
  53. package/dist/tools/prompts/control/zh/index.md +5 -4
  54. package/dist/tools/prompts/control/zh/principles.md +22 -19
  55. package/dist/tools/prompts/control/zh/scenarios.md +17 -11
  56. package/dist/tools/prompts/control/zh/tools.md +4 -6
  57. package/dist/tools/prompts/fs_read/en/errors.md +6 -0
  58. package/dist/tools/prompts/fs_read/en/index.md +17 -0
  59. package/dist/tools/prompts/fs_read/en/principles.md +5 -0
  60. package/dist/tools/prompts/fs_read/en/scenarios.md +3 -0
  61. package/dist/tools/prompts/fs_read/en/tools.md +11 -0
  62. package/dist/tools/prompts/fs_read/zh/errors.md +6 -0
  63. package/dist/tools/prompts/fs_read/zh/index.md +17 -0
  64. package/dist/tools/prompts/fs_read/zh/principles.md +5 -0
  65. package/dist/tools/prompts/fs_read/zh/scenarios.md +3 -0
  66. package/dist/tools/prompts/fs_read/zh/tools.md +11 -0
  67. package/dist/tools/prompts/os/en/index.md +1 -1
  68. package/dist/tools/prompts/os/en/principles.md +1 -1
  69. package/dist/tools/prompts/os/en/scenarios.md +21 -0
  70. package/dist/tools/prompts/os/en/tools.md +6 -0
  71. package/dist/tools/prompts/os/zh/index.md +1 -1
  72. package/dist/tools/prompts/os/zh/principles.md +1 -1
  73. package/dist/tools/prompts/os/zh/scenarios.md +21 -0
  74. package/dist/tools/prompts/os/zh/tools.md +6 -0
  75. package/dist/tools/prompts/personal_memory/en/index.md +1 -1
  76. package/dist/tools/prompts/personal_memory/en/principles.md +2 -2
  77. package/dist/tools/prompts/personal_memory/zh/index.md +1 -1
  78. package/dist/tools/prompts/personal_memory/zh/principles.md +2 -2
  79. package/dist/tools/registry.d.ts +6 -0
  80. package/dist/tools/ripgrep.d.ts +5 -0
  81. package/dist/tools/ripgrep.js +482 -1
  82. package/dist/tools/team_mgmt.js +8 -8
  83. package/dist/tools/txt.d.ts +34 -0
  84. package/dist/tools/txt.js +221 -1
  85. package/package.json +3 -3
  86. package/webapp/dist/assets/{_basePickBy-ZLV93S3E.js → _basePickBy-CbWZ8qnS.js} +3 -3
  87. package/webapp/dist/assets/_basePickBy-CbWZ8qnS.js.map +1 -0
  88. package/webapp/dist/assets/{_baseUniq-D0wSOJ06.js → _baseUniq-IY-Vfzx1.js} +2 -2
  89. package/webapp/dist/assets/_baseUniq-IY-Vfzx1.js.map +1 -0
  90. package/webapp/dist/assets/{arc-BHclbMTS.js → arc--U2Vks6y.js} +2 -2
  91. package/webapp/dist/assets/arc--U2Vks6y.js.map +1 -0
  92. package/webapp/dist/assets/{architectureDiagram-2XIMDMQ5-CK99gE_D.js → architectureDiagram-VXUJARFQ-DpryGqjy.js} +8 -26
  93. package/webapp/dist/assets/architectureDiagram-VXUJARFQ-DpryGqjy.js.map +1 -0
  94. package/webapp/dist/assets/{blockDiagram-WCTKOSBZ-fE5MBTEU.js → blockDiagram-VD42YOAC-TTufCfiE.js} +170 -187
  95. package/webapp/dist/assets/blockDiagram-VD42YOAC-TTufCfiE.js.map +1 -0
  96. package/webapp/dist/assets/{c4Diagram-IC4MRINW-BSLyPyoU.js → c4Diagram-YG6GDRKO-B4RPsw5H.js} +4 -4
  97. package/webapp/dist/assets/c4Diagram-YG6GDRKO-B4RPsw5H.js.map +1 -0
  98. package/webapp/dist/assets/{channel-DSvMpp-a.js → channel-DAtGYJHZ.js} +2 -2
  99. package/webapp/dist/assets/channel-DAtGYJHZ.js.map +1 -0
  100. package/webapp/dist/assets/{chunk-4BX2VUAB-OXEX170k.js → chunk-4BX2VUAB-JtO__vAF.js} +2 -2
  101. package/webapp/dist/assets/chunk-4BX2VUAB-JtO__vAF.js.map +1 -0
  102. package/webapp/dist/assets/{chunk-55IACEB6-BFQ_spQD.js → chunk-55IACEB6-JMRC8yG1.js} +2 -2
  103. package/webapp/dist/assets/chunk-55IACEB6-JMRC8yG1.js.map +1 -0
  104. package/webapp/dist/assets/{chunk-WL4C6EOR-PtH-blkK.js → chunk-B4BG7PRW-BDIpf8Iz.js} +121 -171
  105. package/webapp/dist/assets/chunk-B4BG7PRW-BDIpf8Iz.js.map +1 -0
  106. package/webapp/dist/assets/{chunk-NQ4KR5QH-B_ZhWMXR.js → chunk-DI55MBZ5-j9B4rifK.js} +7 -9
  107. package/webapp/dist/assets/chunk-DI55MBZ5-j9B4rifK.js.map +1 -0
  108. package/webapp/dist/assets/{chunk-FMBD7UC4-CbQ2BBPs.js → chunk-FMBD7UC4-DFXKLjHC.js} +2 -2
  109. package/webapp/dist/assets/chunk-FMBD7UC4-DFXKLjHC.js.map +1 -0
  110. package/webapp/dist/assets/{chunk-KX2RTZJC-BMd-daMY.js → chunk-QN33PNHL-BKzkeJ-b.js} +2 -2
  111. package/webapp/dist/assets/chunk-QN33PNHL-BKzkeJ-b.js.map +1 -0
  112. package/webapp/dist/assets/{chunk-QZHKN3VN-Cbf92xIw.js → chunk-QZHKN3VN-DiZd3UNl.js} +2 -2
  113. package/webapp/dist/assets/chunk-QZHKN3VN-DiZd3UNl.js.map +1 -0
  114. package/webapp/dist/assets/{chunk-JSJVCQXG-C4P1mjCL.js → chunk-TZMSLE5B-BaE4C244.js} +6 -14
  115. package/webapp/dist/assets/chunk-TZMSLE5B-BaE4C244.js.map +1 -0
  116. package/webapp/dist/assets/{classDiagram-VBA2DB6C-Dc3ncaD0.js → classDiagram-2ON5EDUG-CNF8ZohD.js} +6 -7
  117. package/webapp/dist/assets/classDiagram-2ON5EDUG-CNF8ZohD.js.map +1 -0
  118. package/webapp/dist/assets/{classDiagram-v2-RAHNMMFH-Dc3ncaD0.js → classDiagram-v2-WZHVMYZB-CNF8ZohD.js} +6 -7
  119. package/webapp/dist/assets/classDiagram-v2-WZHVMYZB-CNF8ZohD.js.map +1 -0
  120. package/webapp/dist/assets/{clone-E9Ad85BC.js → clone-Nq0Ko0Gv.js} +2 -2
  121. package/webapp/dist/assets/clone-Nq0Ko0Gv.js.map +1 -0
  122. package/webapp/dist/assets/{cose-bilkent-S5V4N54A-B-nj0o74.js → cose-bilkent-S5V4N54A-uHPLSeKv.js} +2 -2
  123. package/webapp/dist/assets/cose-bilkent-S5V4N54A-uHPLSeKv.js.map +1 -0
  124. package/webapp/dist/assets/cytoscape.esm-Bm8DJGmZ.js.map +1 -1
  125. package/webapp/dist/assets/{dagre-KLK3FWXG-CyJYNIbm.js → dagre-6UL2VRFP-C1awWpU3.js} +7 -7
  126. package/webapp/dist/assets/dagre-6UL2VRFP-C1awWpU3.js.map +1 -0
  127. package/webapp/dist/assets/defaultLocale-B2RvLBDe.js.map +1 -1
  128. package/webapp/dist/assets/{diagram-E7M64L7V-C8eweQ7b.js → diagram-PSM6KHXK-Bf69p76M.js} +10 -10
  129. package/webapp/dist/assets/diagram-PSM6KHXK-Bf69p76M.js.map +1 -0
  130. package/webapp/dist/assets/{diagram-IFDJBPK2-DMdygRl0.js → diagram-QEK2KX5R-Bvlbx8Jp.js} +8 -9
  131. package/webapp/dist/assets/diagram-QEK2KX5R-Bvlbx8Jp.js.map +1 -0
  132. package/webapp/dist/assets/{diagram-P4PSJMXO-BQDZHb0a.js → diagram-S2PKOQOG-CGjGalBu.js} +8 -8
  133. package/webapp/dist/assets/diagram-S2PKOQOG-CGjGalBu.js.map +1 -0
  134. package/webapp/dist/assets/{erDiagram-INFDFZHY-C1HaXN6E.js → erDiagram-Q2GNP2WA-Ds3qhwkG.js} +75 -96
  135. package/webapp/dist/assets/erDiagram-Q2GNP2WA-Ds3qhwkG.js.map +1 -0
  136. package/webapp/dist/assets/{flowDiagram-PKNHOUZH-24nNqQyo.js → flowDiagram-NV44I4VS-B1wDG_l5.js} +81 -98
  137. package/webapp/dist/assets/flowDiagram-NV44I4VS-B1wDG_l5.js.map +1 -0
  138. package/webapp/dist/assets/{ganttDiagram-A5KZAMGK-BWPOFaLV.js → ganttDiagram-JELNMOA3-BwuYt2bO.js} +3 -28
  139. package/webapp/dist/assets/ganttDiagram-JELNMOA3-BwuYt2bO.js.map +1 -0
  140. package/webapp/dist/assets/{gitGraphDiagram-K3NZZRJ6-D7_L-p_Y.js → gitGraphDiagram-V2S2FVAM-B2Tw773z.js} +46 -38
  141. package/webapp/dist/assets/gitGraphDiagram-V2S2FVAM-B2Tw773z.js.map +1 -0
  142. package/webapp/dist/assets/graph-CS_H7jBi.js +425 -0
  143. package/webapp/dist/assets/graph-CS_H7jBi.js.map +1 -0
  144. package/webapp/dist/assets/{index-CDCDAfqP.js → index-arD81Nnh.js} +1086 -1044
  145. package/webapp/dist/assets/{index-CDCDAfqP.js.map → index-arD81Nnh.js.map} +1 -1
  146. package/webapp/dist/assets/{index-BQoNJEGT.css → index-yycTJNYb.css} +1 -1
  147. package/webapp/dist/assets/{infoDiagram-LFFYTUFH-CvaBM5j6.js → infoDiagram-HS3SLOUP-C9_JKYhm.js} +7 -7
  148. package/webapp/dist/assets/infoDiagram-HS3SLOUP-C9_JKYhm.js.map +1 -0
  149. package/webapp/dist/assets/init-ZxktEp_H.js.map +1 -1
  150. package/webapp/dist/assets/{journeyDiagram-4ABVD52K-TQR6_teO.js → journeyDiagram-XKPGCS4Q-BhZggYOL.js} +5 -5
  151. package/webapp/dist/assets/journeyDiagram-XKPGCS4Q-BhZggYOL.js.map +1 -0
  152. package/webapp/dist/assets/{kanban-definition-K7BYSVSG-B-BOuC-U.js → kanban-definition-3W4ZIXB7-B-R2Xm4Y.js} +3 -5
  153. package/webapp/dist/assets/kanban-definition-3W4ZIXB7-B-R2Xm4Y.js.map +1 -0
  154. package/webapp/dist/assets/{layout-B8yqIqbx.js → layout-BzMatxDa.js} +5 -5
  155. package/webapp/dist/assets/layout-BzMatxDa.js.map +1 -0
  156. package/webapp/dist/assets/{linear-CoLfiZKK.js → linear-BuuJkw_U.js} +2 -2
  157. package/webapp/dist/assets/linear-BuuJkw_U.js.map +1 -0
  158. package/webapp/dist/assets/{mindmap-definition-YRQLILUH-P70BMIHI.js → mindmap-definition-VGOIOE7T-BR7oDKBR.js} +5 -7
  159. package/webapp/dist/assets/mindmap-definition-VGOIOE7T-BR7oDKBR.js.map +1 -0
  160. package/webapp/dist/assets/ordinal-CxptdPJm.js.map +1 -1
  161. package/webapp/dist/assets/{pieDiagram-SKSYHLDU-DsS_4dTB.js → pieDiagram-ADFJNKIX--QWeT2vZ.js} +8 -8
  162. package/webapp/dist/assets/pieDiagram-ADFJNKIX--QWeT2vZ.js.map +1 -0
  163. package/webapp/dist/assets/{quadrantDiagram-337W2JSQ-DoM9PEq-.js → quadrantDiagram-AYHSOK5B-BpqtmN3r.js} +3 -3
  164. package/webapp/dist/assets/quadrantDiagram-AYHSOK5B-BpqtmN3r.js.map +1 -0
  165. package/webapp/dist/assets/{requirementDiagram-Z7DCOOCP-Bn3lYMMI.js → requirementDiagram-UZGBJVZJ-CIXjIi4F.js} +6 -16
  166. package/webapp/dist/assets/requirementDiagram-UZGBJVZJ-CIXjIi4F.js.map +1 -0
  167. package/webapp/dist/assets/{sankeyDiagram-WA2Y5GQK-97kCegRT.js → sankeyDiagram-TZEHDZUN-DJIt7SRz.js} +2 -2
  168. package/webapp/dist/assets/sankeyDiagram-TZEHDZUN-DJIt7SRz.js.map +1 -0
  169. package/webapp/dist/assets/{sequenceDiagram-2WXFIKYE-DXqjQjf6.js → sequenceDiagram-WL72ISMW-BpDK1ROT.js} +201 -601
  170. package/webapp/dist/assets/sequenceDiagram-WL72ISMW-BpDK1ROT.js.map +1 -0
  171. package/webapp/dist/assets/{stateDiagram-RAJIS63D-DQcTPKWP.js → stateDiagram-FKZM4ZOC-BoKGfmHf.js} +9 -9
  172. package/webapp/dist/assets/stateDiagram-FKZM4ZOC-BoKGfmHf.js.map +1 -0
  173. package/webapp/dist/assets/{stateDiagram-v2-FVOUBMTO-DHmxRVJn.js → stateDiagram-v2-4FDKWEC3--haXC2JK.js} +5 -5
  174. package/webapp/dist/assets/stateDiagram-v2-4FDKWEC3--haXC2JK.js.map +1 -0
  175. package/webapp/dist/assets/{timeline-definition-YZTLITO2-BlovQQ4B.js → timeline-definition-IT6M3QCI-BmSg3Hjf.js} +3 -3
  176. package/webapp/dist/assets/timeline-definition-IT6M3QCI-BmSg3Hjf.js.map +1 -0
  177. package/webapp/dist/assets/{treemap-KZPCXAKY-CGu93c9S.js → treemap-GDKQZRPO-D9OuyDVA.js} +24 -37
  178. package/webapp/dist/assets/treemap-GDKQZRPO-D9OuyDVA.js.map +1 -0
  179. package/webapp/dist/assets/{xychartDiagram-JWTSCODW-BKa1DxVq.js → xychartDiagram-PRI3JC2R-CVqSvO_S.js} +4 -4
  180. package/webapp/dist/assets/xychartDiagram-PRI3JC2R-CVqSvO_S.js.map +1 -0
  181. package/webapp/dist/index.html +2 -2
  182. package/webapp/dist/assets/_basePickBy-ZLV93S3E.js.map +0 -1
  183. package/webapp/dist/assets/_baseUniq-D0wSOJ06.js.map +0 -1
  184. package/webapp/dist/assets/arc-BHclbMTS.js.map +0 -1
  185. package/webapp/dist/assets/architectureDiagram-2XIMDMQ5-CK99gE_D.js.map +0 -1
  186. package/webapp/dist/assets/blockDiagram-WCTKOSBZ-fE5MBTEU.js.map +0 -1
  187. package/webapp/dist/assets/c4Diagram-IC4MRINW-BSLyPyoU.js.map +0 -1
  188. package/webapp/dist/assets/channel-DSvMpp-a.js.map +0 -1
  189. package/webapp/dist/assets/chunk-4BX2VUAB-OXEX170k.js.map +0 -1
  190. package/webapp/dist/assets/chunk-55IACEB6-BFQ_spQD.js.map +0 -1
  191. package/webapp/dist/assets/chunk-FMBD7UC4-CbQ2BBPs.js.map +0 -1
  192. package/webapp/dist/assets/chunk-JSJVCQXG-C4P1mjCL.js.map +0 -1
  193. package/webapp/dist/assets/chunk-KX2RTZJC-BMd-daMY.js.map +0 -1
  194. package/webapp/dist/assets/chunk-NQ4KR5QH-B_ZhWMXR.js.map +0 -1
  195. package/webapp/dist/assets/chunk-QZHKN3VN-Cbf92xIw.js.map +0 -1
  196. package/webapp/dist/assets/chunk-WL4C6EOR-PtH-blkK.js.map +0 -1
  197. package/webapp/dist/assets/classDiagram-VBA2DB6C-Dc3ncaD0.js.map +0 -1
  198. package/webapp/dist/assets/classDiagram-v2-RAHNMMFH-Dc3ncaD0.js.map +0 -1
  199. package/webapp/dist/assets/clone-E9Ad85BC.js.map +0 -1
  200. package/webapp/dist/assets/cose-bilkent-S5V4N54A-B-nj0o74.js.map +0 -1
  201. package/webapp/dist/assets/dagre-KLK3FWXG-CyJYNIbm.js.map +0 -1
  202. package/webapp/dist/assets/diagram-E7M64L7V-C8eweQ7b.js.map +0 -1
  203. package/webapp/dist/assets/diagram-IFDJBPK2-DMdygRl0.js.map +0 -1
  204. package/webapp/dist/assets/diagram-P4PSJMXO-BQDZHb0a.js.map +0 -1
  205. package/webapp/dist/assets/erDiagram-INFDFZHY-C1HaXN6E.js.map +0 -1
  206. package/webapp/dist/assets/flowDiagram-PKNHOUZH-24nNqQyo.js.map +0 -1
  207. package/webapp/dist/assets/ganttDiagram-A5KZAMGK-BWPOFaLV.js.map +0 -1
  208. package/webapp/dist/assets/gitGraphDiagram-K3NZZRJ6-D7_L-p_Y.js.map +0 -1
  209. package/webapp/dist/assets/graph-OHu4dL2n.js +0 -782
  210. package/webapp/dist/assets/graph-OHu4dL2n.js.map +0 -1
  211. package/webapp/dist/assets/infoDiagram-LFFYTUFH-CvaBM5j6.js.map +0 -1
  212. package/webapp/dist/assets/ishikawaDiagram-PHBUUO56-DB1l2Uue.js +0 -966
  213. package/webapp/dist/assets/ishikawaDiagram-PHBUUO56-DB1l2Uue.js.map +0 -1
  214. package/webapp/dist/assets/journeyDiagram-4ABVD52K-TQR6_teO.js.map +0 -1
  215. package/webapp/dist/assets/kanban-definition-K7BYSVSG-B-BOuC-U.js.map +0 -1
  216. package/webapp/dist/assets/layout-B8yqIqbx.js.map +0 -1
  217. package/webapp/dist/assets/linear-CoLfiZKK.js.map +0 -1
  218. package/webapp/dist/assets/mindmap-definition-YRQLILUH-P70BMIHI.js.map +0 -1
  219. package/webapp/dist/assets/pieDiagram-SKSYHLDU-DsS_4dTB.js.map +0 -1
  220. package/webapp/dist/assets/quadrantDiagram-337W2JSQ-DoM9PEq-.js.map +0 -1
  221. package/webapp/dist/assets/requirementDiagram-Z7DCOOCP-Bn3lYMMI.js.map +0 -1
  222. package/webapp/dist/assets/sankeyDiagram-WA2Y5GQK-97kCegRT.js.map +0 -1
  223. package/webapp/dist/assets/sequenceDiagram-2WXFIKYE-DXqjQjf6.js.map +0 -1
  224. package/webapp/dist/assets/stateDiagram-RAJIS63D-DQcTPKWP.js.map +0 -1
  225. package/webapp/dist/assets/stateDiagram-v2-FVOUBMTO-DHmxRVJn.js.map +0 -1
  226. package/webapp/dist/assets/timeline-definition-YZTLITO2-BlovQQ4B.js.map +0 -1
  227. package/webapp/dist/assets/treemap-KZPCXAKY-CGu93c9S.js.map +0 -1
  228. package/webapp/dist/assets/vennDiagram-LZ73GAT5-Do1jprrz.js +0 -2487
  229. package/webapp/dist/assets/vennDiagram-LZ73GAT5-Do1jprrz.js.map +0 -1
  230. package/webapp/dist/assets/xychartDiagram-JWTSCODW-BKa1DxVq.js.map +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KLK3FWXG-CyJYNIbm.js","assets/graph-OHu4dL2n.js","assets/_baseUniq-D0wSOJ06.js","assets/layout-B8yqIqbx.js","assets/_basePickBy-ZLV93S3E.js","assets/clone-E9Ad85BC.js","assets/cose-bilkent-S5V4N54A-B-nj0o74.js","assets/cytoscape.esm-Bm8DJGmZ.js","assets/c4Diagram-IC4MRINW-BSLyPyoU.js","assets/chunk-JSJVCQXG-C4P1mjCL.js","assets/flowDiagram-PKNHOUZH-24nNqQyo.js","assets/chunk-FMBD7UC4-CbQ2BBPs.js","assets/chunk-55IACEB6-BFQ_spQD.js","assets/chunk-KX2RTZJC-BMd-daMY.js","assets/channel-DSvMpp-a.js","assets/erDiagram-INFDFZHY-C1HaXN6E.js","assets/gitGraphDiagram-K3NZZRJ6-D7_L-p_Y.js","assets/chunk-4BX2VUAB-OXEX170k.js","assets/chunk-QZHKN3VN-Cbf92xIw.js","assets/treemap-KZPCXAKY-CGu93c9S.js","assets/ganttDiagram-A5KZAMGK-BWPOFaLV.js","assets/linear-CoLfiZKK.js","assets/init-ZxktEp_H.js","assets/defaultLocale-B2RvLBDe.js","assets/infoDiagram-LFFYTUFH-CvaBM5j6.js","assets/pieDiagram-SKSYHLDU-DsS_4dTB.js","assets/arc-BHclbMTS.js","assets/ordinal-CxptdPJm.js","assets/quadrantDiagram-337W2JSQ-DoM9PEq-.js","assets/xychartDiagram-JWTSCODW-BKa1DxVq.js","assets/requirementDiagram-Z7DCOOCP-Bn3lYMMI.js","assets/sequenceDiagram-2WXFIKYE-DXqjQjf6.js","assets/classDiagram-VBA2DB6C-Dc3ncaD0.js","assets/chunk-WL4C6EOR-PtH-blkK.js","assets/classDiagram-v2-RAHNMMFH-Dc3ncaD0.js","assets/stateDiagram-RAJIS63D-DQcTPKWP.js","assets/chunk-NQ4KR5QH-B_ZhWMXR.js","assets/stateDiagram-v2-FVOUBMTO-DHmxRVJn.js","assets/journeyDiagram-4ABVD52K-TQR6_teO.js","assets/timeline-definition-YZTLITO2-BlovQQ4B.js","assets/mindmap-definition-YRQLILUH-P70BMIHI.js","assets/kanban-definition-K7BYSVSG-B-BOuC-U.js","assets/sankeyDiagram-WA2Y5GQK-97kCegRT.js","assets/diagram-P4PSJMXO-BQDZHb0a.js","assets/diagram-IFDJBPK2-DMdygRl0.js","assets/blockDiagram-WCTKOSBZ-fE5MBTEU.js","assets/architectureDiagram-2XIMDMQ5-CK99gE_D.js","assets/diagram-E7M64L7V-C8eweQ7b.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-C1awWpU3.js","assets/graph-CS_H7jBi.js","assets/_baseUniq-IY-Vfzx1.js","assets/layout-BzMatxDa.js","assets/_basePickBy-CbWZ8qnS.js","assets/clone-Nq0Ko0Gv.js","assets/cose-bilkent-S5V4N54A-uHPLSeKv.js","assets/cytoscape.esm-Bm8DJGmZ.js","assets/c4Diagram-YG6GDRKO-B4RPsw5H.js","assets/chunk-TZMSLE5B-BaE4C244.js","assets/flowDiagram-NV44I4VS-B1wDG_l5.js","assets/chunk-FMBD7UC4-DFXKLjHC.js","assets/chunk-55IACEB6-JMRC8yG1.js","assets/chunk-QN33PNHL-BKzkeJ-b.js","assets/channel-DAtGYJHZ.js","assets/erDiagram-Q2GNP2WA-Ds3qhwkG.js","assets/gitGraphDiagram-V2S2FVAM-B2Tw773z.js","assets/chunk-4BX2VUAB-JtO__vAF.js","assets/chunk-QZHKN3VN-DiZd3UNl.js","assets/treemap-GDKQZRPO-D9OuyDVA.js","assets/ganttDiagram-JELNMOA3-BwuYt2bO.js","assets/linear-BuuJkw_U.js","assets/init-ZxktEp_H.js","assets/defaultLocale-B2RvLBDe.js","assets/infoDiagram-HS3SLOUP-C9_JKYhm.js","assets/pieDiagram-ADFJNKIX--QWeT2vZ.js","assets/arc--U2Vks6y.js","assets/ordinal-CxptdPJm.js","assets/quadrantDiagram-AYHSOK5B-BpqtmN3r.js","assets/xychartDiagram-PRI3JC2R-CVqSvO_S.js","assets/requirementDiagram-UZGBJVZJ-CIXjIi4F.js","assets/sequenceDiagram-WL72ISMW-BpDK1ROT.js","assets/classDiagram-2ON5EDUG-CNF8ZohD.js","assets/chunk-B4BG7PRW-BDIpf8Iz.js","assets/classDiagram-v2-WZHVMYZB-CNF8ZohD.js","assets/stateDiagram-FKZM4ZOC-BoKGfmHf.js","assets/chunk-DI55MBZ5-j9B4rifK.js","assets/stateDiagram-v2-4FDKWEC3--haXC2JK.js","assets/journeyDiagram-XKPGCS4Q-BhZggYOL.js","assets/timeline-definition-IT6M3QCI-BmSg3Hjf.js","assets/mindmap-definition-VGOIOE7T-BR7oDKBR.js","assets/kanban-definition-3W4ZIXB7-B-R2Xm4Y.js","assets/sankeyDiagram-TZEHDZUN-DJIt7SRz.js","assets/diagram-S2PKOQOG-CGjGalBu.js","assets/diagram-QEK2KX5R-Bvlbx8Jp.js","assets/blockDiagram-VD42YOAC-TTufCfiE.js","assets/architectureDiagram-VXUJARFQ-DpryGqjy.js","assets/diagram-PSM6KHXK-Bf69p76M.js"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -572,8 +572,9 @@ function getUiStrings(language2) {
572
572
  commandLabel: "命令",
573
573
  unknownCommand: "未知命令",
574
574
  dialogReminderScope: "对话范围提醒",
575
- personalReminderScope: "个人范围提醒",
576
- sharedReminderScope: "共享范围提醒",
575
+ taskReminderScope: "任务范围提醒",
576
+ agentReminderScope: "智能体范围提醒",
577
+ runtimeReminderScope: "运行时提醒",
577
578
  setupTitle: "设置",
578
579
  setupRefresh: "刷新",
579
580
  setupGoToApp: "进入主界面",
@@ -950,8 +951,9 @@ function getUiStrings(language2) {
950
951
  commandLabel: "Command",
951
952
  unknownCommand: "unknown command",
952
953
  dialogReminderScope: "Dialog-scope reminder",
953
- personalReminderScope: "Personal-scope reminder",
954
- sharedReminderScope: "Shared-scope reminder",
954
+ taskReminderScope: "Task-scope reminder",
955
+ agentReminderScope: "Agent-scope reminder",
956
+ runtimeReminderScope: "Runtime reminder",
955
957
  setupTitle: "Setup",
956
958
  setupRefresh: "Refresh",
957
959
  setupGoToApp: "Go to App",
@@ -2768,6 +2770,7 @@ const chevronRightUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/20
2768
2770
  const chevronsDownUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M18%206.41%2016.59%205%2012%209.58%207.41%205%206%206.41l6%206z'/%3e%3cpath%20d='m18%2013-1.41-1.41L12%2016.17l-4.59-4.58L6%2013l6%206z'/%3e%3c/svg%3e";
2769
2771
  const chevronsUpUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='m18%2011-6-6-6%206%201.41%201.41L12%207.83l4.59%204.58z'/%3e%3cpath%20d='m18%2017.59-6-6-6%206L7.41%2019%2012%2014.42%2016.59%2019z'/%3e%3c/svg%3e";
2770
2772
  const circleUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12%202C6.47%202%202%206.47%202%2012s4.47%2010%2010%2010%2010-4.47%2010-10S17.53%202%2012%202zm0%2018c-4.42%200-8-3.58-8-8s3.58-8%208-8%208%203.58%208%208-3.58%208-8%208z'/%3e%3c/svg%3e";
2773
+ const clipboardListUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20width='8'%20height='4'%20x='8'%20y='2'%20rx='1'%20ry='1'/%3e%3cpath%20d='M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2'/%3e%3cpath%20d='M12%2011h4'/%3e%3cpath%20d='M12%2016h4'/%3e%3cpath%20d='M8%2011h.01'/%3e%3cpath%20d='M8%2016h.01'/%3e%3c/svg%3e";
2771
2774
  const closeUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012%2019%206.41z'/%3e%3c/svg%3e";
2772
2775
  const collapseStripUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2056%208'%3e%3cpath%20d='M2%202.2L8%205.8L14%202.2M21%202.2L27%205.8L33%202.2M40%202.2L46%205.8L52%202.2'%20fill='none'%20stroke='black'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
2773
2776
  const copyUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M16%201H4c-1.1%200-2%20.9-2%202v14h2V3h12V1zm3%204H8c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h11c1.1%200%202-.9%202-2V7c0-1.1-.9-2-2-2zm0%2016H8V7h11v14z'/%3e%3c/svg%3e";
@@ -2784,6 +2787,7 @@ const infoUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%
2784
2787
  const insertDownUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M16%2013h-3V3h-2v10H8l4%204%204-4zM4%2019v2h16v-2H4z'/%3e%3c/svg%3e";
2785
2788
  const linkUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M17%207h-4v2h4c1.65%200%203%201.35%203%203s-1.35%203-3%203h-4v2h4c2.76%200%205-2.24%205-5s-2.24-5-5-5zm-6%208H7c-1.65%200-3-1.35-3-3s1.35-3%203-3h4V7H7c-2.76%200-5%202.24-5%205s2.24%205%205%205h4v-2zm-3-4h8v2H8z'/%3e%3c/svg%3e";
2786
2789
  const lockUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M17%209h-1V7a4%204%200%200%200-8%200v2H7a2%202%200%200%200-2%202v9a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2v-9a2%202%200%200%200-2-2zM10%207a2%202%200%200%201%204%200v2h-4zm7%2013H7v-9h10z'/%3e%3c/svg%3e";
2790
+ const messageSquareTextUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M22%2017a2%202%200%200%201-2%202H6.828a2%202%200%200%200-1.414.586l-2.202%202.202A.71.71%200%200%201%202%2021.286V5a2%202%200%200%201%202-2h16a2%202%200%200%201%202%202z'/%3e%3cpath%20d='M7%2011h10'/%3e%3cpath%20d='M7%2015h6'/%3e%3cpath%20d='M7%207h8'/%3e%3c/svg%3e";
2787
2791
  const pinUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12%202C8.13%202%205%205.13%205%209c0%205.25%207%2013%207%2013s7-7.75%207-13c0-3.87-3.13-7-7-7zM7%209c0-2.76%202.24-5%205-5s5%202.24%205%205c0%202.88-2.88%207.19-5%209.88C9.92%2016.21%207%2011.85%207%209z'/%3e%3ccircle%20cx='12'%20cy='9'%20r='2.5'/%3e%3c/svg%3e";
2788
2792
  const playUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M4.5%203v18l15.5-9z'/%3e%3c/svg%3e";
2789
2793
  const plusCircleUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm5%2011h-4v4h-2v-4H7v-2h4V7h2v4h4v2z'/%3e%3c/svg%3e";
@@ -2795,6 +2799,7 @@ const saveUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%
2795
2799
  const scrollDownUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M7.41%208.59%2012%2013.17l4.59-4.58L18%2010l-6%206-6-6%201.41-1.41z'/%3e%3c/svg%3e";
2796
2800
  const searchUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M15.5%2014h-.79l-.28-.27A6.471%206.471%200%200%200%2016%209.5%206.5%206.5%200%201%200%209.5%2016c1.61%200%203.09-.59%204.23-1.57l.27.28v.79l5%204.99L20.49%2019l-4.99-5zm-6%200C7.01%2014%205%2011.99%205%209.5S7.01%205%209.5%205%2014%207.01%2014%209.5%2011.99%2014%209.5%2014z'/%3e%3c/svg%3e";
2797
2801
  const sendUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12%205.5L6%2018'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M12%205.5L18%2018'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cline%20x1='12'%20y1='8'%20x2='12'%20y2='15.5'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";
2802
+ const shieldUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z'/%3e%3c/svg%3e";
2798
2803
  const sparklesUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='m19%209%201.25-2.75L23%205l-2.75-1.25L19%201l-1.25%202.75L15%205l2.75%201.25zm0%206-1.25%202.75L15%2019l2.75%201.25L19%2023l1.25-2.75L23%2019l-2.75-1.25zm-7.5-5.5L9%204%206.5%209.5%201%2012l5.5%202.5L9%2020l2.5-5.5L17%2012l-5.5-2.5zm-1.51%203.49L9%2015.17l-.99-2.18L5.83%2012l2.18-.99L9%208.83l.99%202.18%202.18.99-2.18.99z'/%3e%3c/svg%3e";
2799
2804
  const stopUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3crect%20x='3'%20y='3'%20width='18'%20height='18'%20rx='2'%20ry='2'/%3e%3c/svg%3e";
2800
2805
  const themeDarkUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M9.37%205.51A7.35%207.35%200%200%200%209.1%207.5c0%204.08%203.32%207.4%207.4%207.4.68%200%201.35-.09%201.99-.27A7.014%207.014%200%200%201%2012%2019c-3.86%200-7-3.14-7-7%200-2.93%201.81-5.45%204.37-6.49zM12%203a9%209%200%201%200%209%209c0-.46-.04-.92-.1-1.36a5.389%205.389%200%200%201-4.4%202.26%205.403%205.403%200%200%201-3.14-9.8c-.44-.06-.9-.1-1.36-.1z'/%3e%3c/svg%3e";
@@ -2803,6 +2808,7 @@ const toggleTriangleUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/
2803
2808
  const toolsUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='m22.61%2018.99-9.08-9.08c.93-2.34.45-5.1-1.44-7C9.79.61%206.21.4%203.66%202.26L7.5%206.11%206.08%207.52%202.25%203.69C.39%206.23.6%209.82%202.9%2012.11c1.86%201.86%204.57%202.35%206.89%201.48l9.11%209.11c.39.39%201.02.39%201.41%200l2.3-2.3c.4-.38.4-1.01%200-1.41zm-3%201.6-9.46-9.46c-.61.45-1.29.72-2%20.82-1.36.2-2.79-.21-3.83-1.25C3.37%209.76%202.93%208.5%203%207.26l3.09%203.09%204.24-4.24-3.09-3.09c1.24-.07%202.49.37%203.44%201.31a4.469%204.469%200%200%201%201.24%203.96%204.35%204.35%200%200%201-.88%201.96l9.45%209.45-.88.89z'/%3e%3c/svg%3e";
2804
2809
  const trashUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M16%209v10H8V9h8m-1.5-6h-5l-1%201H5v2h14V4h-3.5l-1-1zM18%207H6v12c0%201.1.9%202%202%202h8c1.1%200%202-.9%202-2V7z'/%3e%3c/svg%3e";
2805
2810
  const uploadCloudUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19.35%2010.04A7.49%207.49%200%200%200%2012%204C9.11%204%206.6%205.64%205.35%208.04A5.994%205.994%200%200%200%200%2014c0%203.31%202.69%206%206%206h13c2.76%200%205-2.24%205-5%200-2.64-2.05-4.78-4.65-4.96zM19%2018H6c-2.21%200-4-1.79-4-4%200-2.05%201.53-3.76%203.56-3.97l1.07-.11.5-.95A5.469%205.469%200%200%201%2012%206c2.62%200%204.88%201.86%205.39%204.43l.3%201.5%201.53.11A2.98%202.98%200%200%201%2022%2015c0%201.65-1.35%203-3%203zM8%2013h2.55v3h2.9v-3H16l-4-4z'/%3e%3c/svg%3e";
2811
+ const userRoundUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='8'%20r='5'/%3e%3cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3e%3c/svg%3e";
2806
2812
  const usersUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M9%2013.75c-2.34%200-7%201.17-7%203.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5zM4.34%2017c.84-.58%202.87-1.25%204.66-1.25s3.82.67%204.66%201.25H4.34zM9%2012c1.93%200%203.5-1.57%203.5-3.5S10.93%205%209%205%205.5%206.57%205.5%208.5%207.07%2012%209%2012zm0-5c.83%200%201.5.67%201.5%201.5S9.83%2010%209%2010s-1.5-.67-1.5-1.5S8.17%207%209%207zm7.04%206.81c1.16.84%201.96%201.96%201.96%203.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44zM15%2012c1.93%200%203.5-1.57%203.5-3.5S16.93%205%2015%205c-.54%200-1.04.13-1.5.35.63.89%201%201.98%201%203.15s-.37%202.26-1%203.15c.46.22.96.35%201.5.35z'/%3e%3c/svg%3e";
2807
2813
  const warningUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M1%2021h22L12%202%201%2021zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3e%3c/svg%3e";
2808
2814
  const asMaskUrl = (assetUrl) => `url("${assetUrl}")`;
@@ -2855,6 +2861,10 @@ const ICON_MASK_URLS = {
2855
2861
  brain: asMaskUrl(brainUrl),
2856
2862
  bolt: asMaskUrl(boltUrl),
2857
2863
  sparkles: asMaskUrl(sparklesUrl),
2864
+ messageSquareText: asMaskUrl(messageSquareTextUrl),
2865
+ clipboardList: asMaskUrl(clipboardListUrl),
2866
+ userRound: asMaskUrl(userRoundUrl),
2867
+ shield: asMaskUrl(shieldUrl),
2858
2868
  themeDark: asMaskUrl(themeDarkUrl),
2859
2869
  themeLight: asMaskUrl(themeLightUrl),
2860
2870
  resizeCornerBottomLeft: asMaskUrl(resizeCornerBottomLeftUrl)
@@ -5651,7 +5661,7 @@ const _createHooksMap = function _createHooksMap2() {
5651
5661
  function createDOMPurify() {
5652
5662
  let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
5653
5663
  const DOMPurify = (root2) => createDOMPurify(root2);
5654
- DOMPurify.version = "3.3.3";
5664
+ DOMPurify.version = "3.3.2";
5655
5665
  DOMPurify.removed = [];
5656
5666
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
5657
5667
  DOMPurify.isSupported = false;
@@ -11587,9 +11597,9 @@ MarkdownIt.prototype.disable = function(list2, ignoreInvalid) {
11587
11597
  }
11588
11598
  return this;
11589
11599
  };
11590
- MarkdownIt.prototype.use = function(plugin23) {
11600
+ MarkdownIt.prototype.use = function(plugin22) {
11591
11601
  const args = [this].concat(Array.prototype.slice.call(arguments, 1));
11592
- plugin23.apply(plugin23, args);
11602
+ plugin22.apply(plugin22, args);
11593
11603
  return this;
11594
11604
  };
11595
11605
  MarkdownIt.prototype.parse = function(src, env) {
@@ -13065,37 +13075,37 @@ function requireCore() {
13065
13075
  const lang = getLanguage(name);
13066
13076
  return lang && !lang.disableAutodetect;
13067
13077
  }
13068
- function upgradePluginAPI(plugin23) {
13069
- if (plugin23["before:highlightBlock"] && !plugin23["before:highlightElement"]) {
13070
- plugin23["before:highlightElement"] = (data) => {
13071
- plugin23["before:highlightBlock"](
13078
+ function upgradePluginAPI(plugin22) {
13079
+ if (plugin22["before:highlightBlock"] && !plugin22["before:highlightElement"]) {
13080
+ plugin22["before:highlightElement"] = (data) => {
13081
+ plugin22["before:highlightBlock"](
13072
13082
  Object.assign({ block: data.el }, data)
13073
13083
  );
13074
13084
  };
13075
13085
  }
13076
- if (plugin23["after:highlightBlock"] && !plugin23["after:highlightElement"]) {
13077
- plugin23["after:highlightElement"] = (data) => {
13078
- plugin23["after:highlightBlock"](
13086
+ if (plugin22["after:highlightBlock"] && !plugin22["after:highlightElement"]) {
13087
+ plugin22["after:highlightElement"] = (data) => {
13088
+ plugin22["after:highlightBlock"](
13079
13089
  Object.assign({ block: data.el }, data)
13080
13090
  );
13081
13091
  };
13082
13092
  }
13083
13093
  }
13084
- function addPlugin(plugin23) {
13085
- upgradePluginAPI(plugin23);
13086
- plugins.push(plugin23);
13094
+ function addPlugin(plugin22) {
13095
+ upgradePluginAPI(plugin22);
13096
+ plugins.push(plugin22);
13087
13097
  }
13088
- function removePlugin(plugin23) {
13089
- const index = plugins.indexOf(plugin23);
13098
+ function removePlugin(plugin22) {
13099
+ const index = plugins.indexOf(plugin22);
13090
13100
  if (index !== -1) {
13091
13101
  plugins.splice(index, 1);
13092
13102
  }
13093
13103
  }
13094
13104
  function fire(event, args) {
13095
13105
  const cb = event;
13096
- plugins.forEach(function(plugin23) {
13097
- if (plugin23[cb]) {
13098
- plugin23[cb](args);
13106
+ plugins.forEach(function(plugin22) {
13107
+ if (plugin22[cb]) {
13108
+ plugin22[cb](args);
13099
13109
  }
13100
13110
  });
13101
13111
  }
@@ -64723,8 +64733,8 @@ class Settings {
64723
64733
  }
64724
64734
  }
64725
64735
  class Style {
64726
- constructor(id30, size, cramped) {
64727
- this.id = id30;
64736
+ constructor(id28, size, cramped) {
64737
+ this.id = id28;
64728
64738
  this.size = size;
64729
64739
  this.cramped = cramped;
64730
64740
  }
@@ -65052,44 +65062,6 @@ var tallDelim = function tallDelim2(label, midHeight) {
65052
65062
  throw new Error("Unknown stretchy delimiter.");
65053
65063
  }
65054
65064
  };
65055
- class DocumentFragment {
65056
- // Never used; needed for satisfying interface.
65057
- constructor(children2) {
65058
- this.children = children2;
65059
- this.classes = [];
65060
- this.height = 0;
65061
- this.depth = 0;
65062
- this.maxFontSize = 0;
65063
- this.style = {};
65064
- }
65065
- hasClass(className) {
65066
- return this.classes.includes(className);
65067
- }
65068
- /** Convert the fragment into a node. */
65069
- toNode() {
65070
- var frag = document.createDocumentFragment();
65071
- for (var i2 = 0; i2 < this.children.length; i2++) {
65072
- frag.appendChild(this.children[i2].toNode());
65073
- }
65074
- return frag;
65075
- }
65076
- /** Convert the fragment into HTML markup. */
65077
- toMarkup() {
65078
- var markup = "";
65079
- for (var i2 = 0; i2 < this.children.length; i2++) {
65080
- markup += this.children[i2].toMarkup();
65081
- }
65082
- return markup;
65083
- }
65084
- /**
65085
- * Converts the math node into a string, similar to innerText. Applies to
65086
- * MathDomNode's only.
65087
- */
65088
- toText() {
65089
- var toText = (child) => child.toText();
65090
- return this.children.map(toText).join("");
65091
- }
65092
- }
65093
65065
  var ptPerUnit = {
65094
65066
  // https://en.wikibooks.org/wiki/LaTeX/Lengths and
65095
65067
  // https://tex.stackexchange.com/a/8263
@@ -65473,7 +65445,6 @@ function assertSpan(group) {
65473
65445
  throw new Error("Expected span<HtmlDomNode> but got " + String(group) + ".");
65474
65446
  }
65475
65447
  }
65476
- var hasHtmlDomChildren = (node2) => node2 instanceof Span || node2 instanceof Anchor || node2 instanceof DocumentFragment;
65477
65448
  var fontMetricsData = {
65478
65449
  "AMS-Regular": {
65479
65450
  "32": [0, 0, 0, 0, 0.25],
@@ -68581,6 +68552,44 @@ var wideCharacterFont = (wideChar2, mode) => {
68581
68552
  throw new ParseError("Unsupported character: " + wideChar2);
68582
68553
  }
68583
68554
  };
68555
+ class DocumentFragment {
68556
+ // Never used; needed for satisfying interface.
68557
+ constructor(children2) {
68558
+ this.children = children2;
68559
+ this.classes = [];
68560
+ this.height = 0;
68561
+ this.depth = 0;
68562
+ this.maxFontSize = 0;
68563
+ this.style = {};
68564
+ }
68565
+ hasClass(className) {
68566
+ return this.classes.includes(className);
68567
+ }
68568
+ /** Convert the fragment into a node. */
68569
+ toNode() {
68570
+ var frag = document.createDocumentFragment();
68571
+ for (var i2 = 0; i2 < this.children.length; i2++) {
68572
+ frag.appendChild(this.children[i2].toNode());
68573
+ }
68574
+ return frag;
68575
+ }
68576
+ /** Convert the fragment into HTML markup. */
68577
+ toMarkup() {
68578
+ var markup = "";
68579
+ for (var i2 = 0; i2 < this.children.length; i2++) {
68580
+ markup += this.children[i2].toMarkup();
68581
+ }
68582
+ return markup;
68583
+ }
68584
+ /**
68585
+ * Converts the math node into a string, similar to innerText. Applies to
68586
+ * MathDomNode's only.
68587
+ */
68588
+ toText() {
68589
+ var toText = (child) => child.toText();
68590
+ return this.children.map(toText).join("");
68591
+ }
68592
+ }
68584
68593
  var lookupSymbol = function lookupSymbol2(value, fontName, mode) {
68585
68594
  if (symbols[mode][value]) {
68586
68595
  var replacement = symbols[mode][value].replace;
@@ -70281,14 +70290,6 @@ function checkSymbolNodeType(node2) {
70281
70290
  }
70282
70291
  return null;
70283
70292
  }
70284
- var getBaseSymbol = (group) => {
70285
- if (group instanceof SymbolNode) {
70286
- return group;
70287
- }
70288
- if (hasHtmlDomChildren(group) && group.children.length === 1) {
70289
- return getBaseSymbol(group.children[0]);
70290
- }
70291
- };
70292
70293
  var htmlBuilder$a = (grp, options) => {
70293
70294
  var base2;
70294
70295
  var group;
@@ -70307,8 +70308,9 @@ var htmlBuilder$a = (grp, options) => {
70307
70308
  var mustShift = group.isShifty && isCharacterBox(base2);
70308
70309
  var skew2 = 0;
70309
70310
  if (mustShift) {
70310
- var _getBaseSymbol$skew, _getBaseSymbol;
70311
- skew2 = (_getBaseSymbol$skew = (_getBaseSymbol = getBaseSymbol(body)) == null ? void 0 : _getBaseSymbol.skew) != null ? _getBaseSymbol$skew : 0;
70311
+ var baseChar = getBaseElem(base2);
70312
+ var baseGroup = buildGroup$1(baseChar, options.havingCrampedStyle());
70313
+ skew2 = assertSymbolDomNode(baseGroup).skew;
70312
70314
  }
70313
70315
  var accentBelow = group.label === "\\c";
70314
70316
  var clearance = accentBelow ? body.height + body.depth : Math.min(body.height, options.fontMetrics().xHeight);
@@ -78605,7 +78607,7 @@ var renderToHTMLTree = function renderToHTMLTree2(expression, options) {
78605
78607
  return renderError(error2, expression, settings);
78606
78608
  }
78607
78609
  };
78608
- var version = "0.16.38";
78610
+ var version = "0.16.37";
78609
78611
  var __domTree = {
78610
78612
  Span,
78611
78613
  Anchor,
@@ -78835,6 +78837,147 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
78835
78837
  return baseModule().catch(handlePreloadError);
78836
78838
  });
78837
78839
  };
78840
+ var package_default = {
78841
+ name: "mermaid",
78842
+ version: "11.12.3",
78843
+ description: "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",
78844
+ type: "module",
78845
+ module: "./dist/mermaid.core.mjs",
78846
+ types: "./dist/mermaid.d.ts",
78847
+ exports: {
78848
+ ".": {
78849
+ types: "./dist/mermaid.d.ts",
78850
+ import: "./dist/mermaid.core.mjs",
78851
+ default: "./dist/mermaid.core.mjs"
78852
+ },
78853
+ "./*": "./*"
78854
+ },
78855
+ keywords: [
78856
+ "diagram",
78857
+ "markdown",
78858
+ "flowchart",
78859
+ "sequence diagram",
78860
+ "gantt",
78861
+ "class diagram",
78862
+ "git graph",
78863
+ "mindmap",
78864
+ "packet diagram",
78865
+ "c4 diagram",
78866
+ "er diagram",
78867
+ "pie chart",
78868
+ "pie diagram",
78869
+ "quadrant chart",
78870
+ "requirement diagram",
78871
+ "graph"
78872
+ ],
78873
+ scripts: {
78874
+ clean: "rimraf dist",
78875
+ dev: "pnpm -w dev",
78876
+ "docs:code": "typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup",
78877
+ "docs:build": "rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts",
78878
+ "docs:verify": "pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify",
78879
+ "docs:pre:vitepress": "pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts",
78880
+ "docs:build:vitepress": "pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing",
78881
+ "docs:dev": 'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',
78882
+ "docs:dev:docker": 'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',
78883
+ "docs:serve": "pnpm docs:build:vitepress && vitepress serve src/vitepress",
78884
+ "docs:spellcheck": 'cspell "src/docs/**/*.md"',
78885
+ "docs:release-version": "tsx scripts/update-release-version.mts",
78886
+ "docs:verify-version": "tsx scripts/update-release-version.mts --verify",
78887
+ "types:build-config": "tsx scripts/create-types-from-json-schema.mts",
78888
+ "types:verify-config": "tsx scripts/create-types-from-json-schema.mts --verify",
78889
+ checkCircle: "npx madge --circular ./src",
78890
+ prepublishOnly: "pnpm docs:verify-version"
78891
+ },
78892
+ repository: {
78893
+ type: "git",
78894
+ url: "https://github.com/mermaid-js/mermaid"
78895
+ },
78896
+ author: "Knut Sveidqvist",
78897
+ license: "MIT",
78898
+ standard: {
78899
+ ignore: [
78900
+ "**/parser/*.js",
78901
+ "dist/**/*.js",
78902
+ "cypress/**/*.js"
78903
+ ],
78904
+ globals: [
78905
+ "page"
78906
+ ]
78907
+ },
78908
+ dependencies: {
78909
+ "@braintree/sanitize-url": "^7.1.1",
78910
+ "@iconify/utils": "^3.0.1",
78911
+ "@mermaid-js/parser": "workspace:^",
78912
+ "@types/d3": "^7.4.3",
78913
+ cytoscape: "^3.29.3",
78914
+ "cytoscape-cose-bilkent": "^4.1.0",
78915
+ "cytoscape-fcose": "^2.2.0",
78916
+ d3: "^7.9.0",
78917
+ "d3-sankey": "^0.12.3",
78918
+ "dagre-d3-es": "7.0.13",
78919
+ dayjs: "^1.11.18",
78920
+ dompurify: "^3.2.5",
78921
+ katex: "^0.16.22",
78922
+ khroma: "^2.1.0",
78923
+ "lodash-es": "^4.17.23",
78924
+ marked: "^16.2.1",
78925
+ roughjs: "^4.6.6",
78926
+ stylis: "^4.3.6",
78927
+ "ts-dedent": "^2.2.0",
78928
+ uuid: "^11.1.0"
78929
+ },
78930
+ devDependencies: {
78931
+ "@adobe/jsonschema2md": "^8.0.5",
78932
+ "@iconify/types": "^2.0.0",
78933
+ "@types/cytoscape": "^3.21.9",
78934
+ "@types/cytoscape-fcose": "^2.2.4",
78935
+ "@types/d3-sankey": "^0.12.4",
78936
+ "@types/d3-scale": "^4.0.9",
78937
+ "@types/d3-scale-chromatic": "^3.1.0",
78938
+ "@types/d3-selection": "^3.0.11",
78939
+ "@types/d3-shape": "^3.1.7",
78940
+ "@types/jsdom": "^21.1.7",
78941
+ "@types/katex": "^0.16.7",
78942
+ "@types/lodash-es": "^4.17.12",
78943
+ "@types/micromatch": "^4.0.9",
78944
+ "@types/stylis": "^4.2.7",
78945
+ "@types/uuid": "^10.0.0",
78946
+ ajv: "^8.17.1",
78947
+ canvas: "^3.1.2",
78948
+ chokidar: "3.6.0",
78949
+ concurrently: "^9.1.2",
78950
+ "csstree-validator": "^4.0.1",
78951
+ globby: "^14.1.0",
78952
+ jison: "^0.4.18",
78953
+ "js-base64": "^3.7.8",
78954
+ jsdom: "^26.1.0",
78955
+ "json-schema-to-typescript": "^15.0.4",
78956
+ micromatch: "^4.0.8",
78957
+ "path-browserify": "^1.0.1",
78958
+ prettier: "^3.5.3",
78959
+ remark: "^15.0.1",
78960
+ "remark-frontmatter": "^5.0.0",
78961
+ "remark-gfm": "^4.0.1",
78962
+ rimraf: "^6.0.1",
78963
+ "start-server-and-test": "^2.0.13",
78964
+ "type-fest": "^4.35.0",
78965
+ typedoc: "^0.28.12",
78966
+ "typedoc-plugin-markdown": "^4.8.1",
78967
+ typescript: "~5.7.3",
78968
+ "unist-util-flatmap": "^1.0.0",
78969
+ "unist-util-visit": "^5.0.0",
78970
+ vitepress: "^1.6.4",
78971
+ "vitepress-plugin-search": "1.0.4-alpha.22"
78972
+ },
78973
+ files: [
78974
+ "dist/",
78975
+ "README.md"
78976
+ ],
78977
+ publishConfig: {
78978
+ access: "public"
78979
+ }
78980
+ };
78838
78981
  var dayjs_min$1 = { exports: {} };
78839
78982
  var dayjs_min = dayjs_min$1.exports;
78840
78983
  var hasRequiredDayjs_min;
@@ -79855,8 +79998,8 @@ var UnknownDiagramError = (_a2 = class extends Error {
79855
79998
  var detectors = {};
79856
79999
  var detectType$1 = /* @__PURE__ */ __name(function(text2, config2) {
79857
80000
  text2 = text2.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
79858
- for (const [key, { detector: detector30 }] of Object.entries(detectors)) {
79859
- const diagram2 = detector30(text2, config2);
80001
+ for (const [key, { detector: detector28 }] of Object.entries(detectors)) {
80002
+ const diagram2 = detector28(text2, config2);
79860
80003
  if (diagram2) {
79861
80004
  return key;
79862
80005
  }
@@ -79866,16 +80009,16 @@ var detectType$1 = /* @__PURE__ */ __name(function(text2, config2) {
79866
80009
  );
79867
80010
  }, "detectType");
79868
80011
  var registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...diagrams2) => {
79869
- for (const { id: id30, detector: detector30, loader: loader30 } of diagrams2) {
79870
- addDetector(id30, detector30, loader30);
80012
+ for (const { id: id28, detector: detector28, loader: loader28 } of diagrams2) {
80013
+ addDetector(id28, detector28, loader28);
79871
80014
  }
79872
80015
  }, "registerLazyLoadedDiagrams");
79873
- var addDetector = /* @__PURE__ */ __name((key, detector30, loader30) => {
80016
+ var addDetector = /* @__PURE__ */ __name((key, detector28, loader28) => {
79874
80017
  if (detectors[key]) {
79875
80018
  log.warn(`Detector with key ${key} already exists. Overwriting.`);
79876
80019
  }
79877
- detectors[key] = { detector: detector30, loader: loader30 };
79878
- log.debug(`Detector with key ${key} added${loader30 ? " with loader" : ""}`);
80020
+ detectors[key] = { detector: detector28, loader: loader28 };
80021
+ log.debug(`Detector with key ${key} added${loader28 ? " with loader" : ""}`);
79879
80022
  }, "addDetector");
79880
80023
  var getDiagramLoader = /* @__PURE__ */ __name((key) => {
79881
80024
  return detectors[key].loader;
@@ -79902,7 +80045,7 @@ var assignWithDepth = /* @__PURE__ */ __name((dst, src, { depth = 2, clobber = f
79902
80045
  }
79903
80046
  if (src !== void 0 && typeof dst === "object" && typeof src === "object") {
79904
80047
  Object.keys(src).forEach((key) => {
79905
- if (typeof src[key] === "object" && src[key] !== null && (dst[key] === void 0 || typeof dst[key] === "object")) {
80048
+ if (typeof src[key] === "object" && (dst[key] === void 0 || typeof dst[key] === "object")) {
79906
80049
  if (dst[key] === void 0) {
79907
80050
  dst[key] = Array.isArray(src[key]) ? [] : {};
79908
80051
  }
@@ -80083,16 +80226,6 @@ var Theme = (_b = class {
80083
80226
  this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
80084
80227
  this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
80085
80228
  this.pieOpacity = this.pieOpacity || "0.7";
80086
- this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
80087
- this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
80088
- this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -30 });
80089
- this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
80090
- this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
80091
- this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
80092
- this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
80093
- this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
80094
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
80095
- this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
80096
80229
  this.radar = {
80097
80230
  axisColor: this.radar?.axisColor || this.lineColor,
80098
80231
  axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
@@ -80334,7 +80467,7 @@ var Theme2 = (_c = class {
80334
80467
  this.taskTextOutsideColor = this.taskTextLightColor;
80335
80468
  this.gridColor = this.mainContrastColor;
80336
80469
  this.doneTaskBkgColor = this.mainContrastColor;
80337
- this.taskTextDarkColor = invert(this.doneTaskBkgColor);
80470
+ this.taskTextDarkColor = this.darkTextColor;
80338
80471
  this.archEdgeColor = this.lineColor;
80339
80472
  this.archEdgeArrowColor = this.lineColor;
80340
80473
  this.transitionColor = this.transitionColor || this.lineColor;
@@ -80400,21 +80533,16 @@ var Theme2 = (_c = class {
80400
80533
  this["pie" + i2] = this["cScale" + i2];
80401
80534
  }
80402
80535
  this.pieTitleTextSize = this.pieTitleTextSize || "25px";
80403
- this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor;
80536
+ this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor;
80404
80537
  this.pieSectionTextSize = this.pieSectionTextSize || "17px";
80405
80538
  this.pieSectionTextColor = this.pieSectionTextColor || this.textColor;
80406
80539
  this.pieLegendTextSize = this.pieLegendTextSize || "17px";
80407
- this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor;
80540
+ this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor;
80408
80541
  this.pieStrokeColor = this.pieStrokeColor || "black";
80409
80542
  this.pieStrokeWidth = this.pieStrokeWidth || "2px";
80410
80543
  this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
80411
80544
  this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
80412
80545
  this.pieOpacity = this.pieOpacity || "0.7";
80413
- for (let i2 = 0; i2 < 8; i2++) {
80414
- this["venn" + (i2 + 1)] = this["venn" + (i2 + 1)] ?? lighten(this["cScale" + i2], 30);
80415
- }
80416
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
80417
- this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
80418
80546
  this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
80419
80547
  this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
80420
80548
  this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
@@ -80733,16 +80861,6 @@ var Theme3 = (_d = class {
80733
80861
  this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
80734
80862
  this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
80735
80863
  this.pieOpacity = this.pieOpacity || "0.7";
80736
- this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
80737
- this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
80738
- this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -40 });
80739
- this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
80740
- this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
80741
- this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
80742
- this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
80743
- this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
80744
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
80745
- this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
80746
80864
  this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
80747
80865
  this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
80748
80866
  this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
@@ -81044,16 +81162,6 @@ var Theme4 = (_e2 = class {
81044
81162
  this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
81045
81163
  this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
81046
81164
  this.pieOpacity = this.pieOpacity || "0.7";
81047
- this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
81048
- this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
81049
- this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -30 });
81050
- this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
81051
- this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
81052
- this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
81053
- this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
81054
- this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
81055
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
81056
- this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
81057
81165
  this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
81058
81166
  this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
81059
81167
  this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
@@ -81375,11 +81483,6 @@ var Theme5 = (_f = class {
81375
81483
  this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
81376
81484
  this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
81377
81485
  this.pieOpacity = this.pieOpacity || "0.7";
81378
- for (let i2 = 0; i2 < 8; i2++) {
81379
- this["venn" + (i2 + 1)] = this["venn" + (i2 + 1)] ?? this["cScale" + i2];
81380
- }
81381
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
81382
- this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
81383
81486
  this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
81384
81487
  this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
81385
81488
  this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
@@ -81508,7 +81611,7 @@ var config_schema_default = {
81508
81611
  "bottom": 0
81509
81612
  },
81510
81613
  "diagramPadding": 8,
81511
- "htmlLabels": null,
81614
+ "htmlLabels": true,
81512
81615
  "nodeSpacing": 50,
81513
81616
  "rankSpacing": 50,
81514
81617
  "curve": "basis",
@@ -81739,10 +81842,6 @@ var config_schema_default = {
81739
81842
  "maxNodeWidth": 200,
81740
81843
  "layoutAlgorithm": "cose-bilkent"
81741
81844
  },
81742
- "ishikawa": {
81743
- "useMaxWidth": true,
81744
- "diagramPadding": 20
81745
- },
81746
81845
  "kanban": {
81747
81846
  "useMaxWidth": true,
81748
81847
  "padding": 8,
@@ -81970,13 +82069,6 @@ var config_schema_default = {
81970
82069
  "axisLabelFactor": 1.05,
81971
82070
  "curveTension": 0.17
81972
82071
  },
81973
- "venn": {
81974
- "useMaxWidth": true,
81975
- "width": 800,
81976
- "height": 450,
81977
- "padding": 8,
81978
- "useDebugLayout": false
81979
- },
81980
82072
  "theme": "default",
81981
82073
  "look": "classic",
81982
82074
  "handDrawnSeed": 0,
@@ -82233,9 +82325,6 @@ var config = {
82233
82325
  radar: {
82234
82326
  ...config_schema_default.radar
82235
82327
  },
82236
- ishikawa: {
82237
- ...config_schema_default.ishikawa
82238
- },
82239
82328
  treemap: {
82240
82329
  useMaxWidth: true,
82241
82330
  padding: 10,
@@ -82247,9 +82336,6 @@ var config = {
82247
82336
  valueFontSize: 12,
82248
82337
  labelFontSize: 14,
82249
82338
  valueFormat: ","
82250
- },
82251
- venn: {
82252
- ...config_schema_default.venn
82253
82339
  }
82254
82340
  };
82255
82341
  var keyify = /* @__PURE__ */ __name((obj, prefix = "") => Object.keys(obj).reduce((res, el) => {
@@ -82320,7 +82406,6 @@ var sanitizeCss = /* @__PURE__ */ __name((str2) => {
82320
82406
  return str2;
82321
82407
  }, "sanitizeCss");
82322
82408
  var defaultConfig = Object.freeze(defaultConfig_default);
82323
- var evaluate = /* @__PURE__ */ __name((val) => val === false || ["false", "null", "0"].includes(String(val).trim().toLowerCase()) ? false : true, "evaluate");
82324
82409
  var siteConfig = assignWithDepth_default({}, defaultConfig);
82325
82410
  var configFromInitialize;
82326
82411
  var directives = [];
@@ -82415,8 +82500,7 @@ var reset = /* @__PURE__ */ __name((config2 = siteConfig) => {
82415
82500
  updateCurrentConfig(config2, directives);
82416
82501
  }, "reset");
82417
82502
  var ConfigWarning = {
82418
- LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
82419
- FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
82503
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
82420
82504
  };
82421
82505
  var issuedWarnings = {};
82422
82506
  var issueWarning = /* @__PURE__ */ __name((warning) => {
@@ -82444,12 +82528,6 @@ var getUserDefinedConfig = /* @__PURE__ */ __name(() => {
82444
82528
  }
82445
82529
  return userConfig;
82446
82530
  }, "getUserDefinedConfig");
82447
- var getEffectiveHtmlLabels = /* @__PURE__ */ __name((config2) => {
82448
- if (config2.flowchart?.htmlLabels != void 0) {
82449
- issueWarning("FLOWCHART_HTML_LABELS_DEPRECATED");
82450
- }
82451
- return evaluate(config2.htmlLabels ?? config2.flowchart?.htmlLabels ?? true);
82452
- }, "getEffectiveHtmlLabels");
82453
82531
  var lineBreakRegex = /<br\s*\/?>/gi;
82454
82532
  var getRows = /* @__PURE__ */ __name((s2) => {
82455
82533
  if (!s2) {
@@ -82491,9 +82569,9 @@ var removeScript = /* @__PURE__ */ __name((txt) => {
82491
82569
  return sanitizedText;
82492
82570
  }, "removeScript");
82493
82571
  var sanitizeMore = /* @__PURE__ */ __name((text2, config2) => {
82494
- if (getEffectiveHtmlLabels(config2)) {
82572
+ if (config2.flowchart?.htmlLabels !== false) {
82495
82573
  const level = config2.securityLevel;
82496
- if (level === "antiscript" || level === "strict" || level === "sandbox") {
82574
+ if (level === "antiscript" || level === "strict") {
82497
82575
  text2 = removeScript(text2);
82498
82576
  } else if (level !== "loose") {
82499
82577
  text2 = breakToPlaceholder(text2);
@@ -82543,6 +82621,7 @@ var getUrl = /* @__PURE__ */ __name((useAbsolute) => {
82543
82621
  }
82544
82622
  return url;
82545
82623
  }, "getUrl");
82624
+ var evaluate = /* @__PURE__ */ __name((val) => val === false || ["false", "null", "0"].includes(String(val).trim().toLowerCase()) ? false : true, "evaluate");
82546
82625
  var getMax = /* @__PURE__ */ __name(function(...values) {
82547
82626
  const newValues = values.filter((value) => {
82548
82627
  return !isNaN(value);
@@ -82831,15 +82910,15 @@ var getCommonDb = /* @__PURE__ */ __name(() => {
82831
82910
  return commonDb_exports;
82832
82911
  }, "getCommonDb");
82833
82912
  var diagrams = {};
82834
- var registerDiagram = /* @__PURE__ */ __name((id30, diagram2, detector30) => {
82835
- if (diagrams[id30]) {
82836
- log2.warn(`Diagram with id ${id30} already registered. Overwriting.`);
82913
+ var registerDiagram = /* @__PURE__ */ __name((id28, diagram2, detector28) => {
82914
+ if (diagrams[id28]) {
82915
+ log2.warn(`Diagram with id ${id28} already registered. Overwriting.`);
82837
82916
  }
82838
- diagrams[id30] = diagram2;
82839
- if (detector30) {
82840
- addDetector(id30, detector30);
82917
+ diagrams[id28] = diagram2;
82918
+ if (detector28) {
82919
+ addDetector(id28, detector28);
82841
82920
  }
82842
- addStylesForDiagram(id30, diagram2.styles);
82921
+ addStylesForDiagram(id28, diagram2.styles);
82843
82922
  diagram2.injectUtils?.(
82844
82923
  log2,
82845
82924
  setLogLevel2,
@@ -84240,11 +84319,11 @@ var STARTED = 3;
84240
84319
  var RUNNING = 4;
84241
84320
  var ENDING = 5;
84242
84321
  var ENDED = 6;
84243
- function schedule(node2, name, id30, index, group, timing) {
84322
+ function schedule(node2, name, id28, index, group, timing) {
84244
84323
  var schedules = node2.__transition;
84245
84324
  if (!schedules) node2.__transition = {};
84246
- else if (id30 in schedules) return;
84247
- create(node2, id30, {
84325
+ else if (id28 in schedules) return;
84326
+ create(node2, id28, {
84248
84327
  name,
84249
84328
  index,
84250
84329
  // For context during callback.
@@ -84260,24 +84339,24 @@ function schedule(node2, name, id30, index, group, timing) {
84260
84339
  state: CREATED
84261
84340
  });
84262
84341
  }
84263
- function init$1(node2, id30) {
84264
- var schedule2 = get(node2, id30);
84342
+ function init$1(node2, id28) {
84343
+ var schedule2 = get(node2, id28);
84265
84344
  if (schedule2.state > CREATED) throw new Error("too late; already scheduled");
84266
84345
  return schedule2;
84267
84346
  }
84268
- function set$1(node2, id30) {
84269
- var schedule2 = get(node2, id30);
84347
+ function set$1(node2, id28) {
84348
+ var schedule2 = get(node2, id28);
84270
84349
  if (schedule2.state > STARTED) throw new Error("too late; already running");
84271
84350
  return schedule2;
84272
84351
  }
84273
- function get(node2, id30) {
84352
+ function get(node2, id28) {
84274
84353
  var schedule2 = node2.__transition;
84275
- if (!schedule2 || !(schedule2 = schedule2[id30])) throw new Error("transition not found");
84354
+ if (!schedule2 || !(schedule2 = schedule2[id28])) throw new Error("transition not found");
84276
84355
  return schedule2;
84277
84356
  }
84278
- function create(node2, id30, self2) {
84357
+ function create(node2, id28, self2) {
84279
84358
  var schedules = node2.__transition, tween;
84280
- schedules[id30] = self2;
84359
+ schedules[id28] = self2;
84281
84360
  self2.timer = timer(schedule2, 0, self2.time);
84282
84361
  function schedule2(elapsed) {
84283
84362
  self2.state = SCHEDULED;
@@ -84296,7 +84375,7 @@ function create(node2, id30, self2) {
84296
84375
  o2.timer.stop();
84297
84376
  o2.on.call("interrupt", node2, node2.__data__, o2.index, o2.group);
84298
84377
  delete schedules[i2];
84299
- } else if (+i2 < id30) {
84378
+ } else if (+i2 < id28) {
84300
84379
  o2.state = ENDED;
84301
84380
  o2.timer.stop();
84302
84381
  o2.on.call("cancel", node2, node2.__data__, o2.index, o2.group);
@@ -84335,7 +84414,7 @@ function create(node2, id30, self2) {
84335
84414
  function stop() {
84336
84415
  self2.state = ENDED;
84337
84416
  self2.timer.stop();
84338
- delete schedules[id30];
84417
+ delete schedules[id28];
84339
84418
  for (var i2 in schedules) return;
84340
84419
  delete node2.__transition;
84341
84420
  }
@@ -84362,10 +84441,10 @@ function selection_interrupt(name) {
84362
84441
  interrupt(this, name);
84363
84442
  });
84364
84443
  }
84365
- function tweenRemove(id30, name) {
84444
+ function tweenRemove(id28, name) {
84366
84445
  var tween0, tween1;
84367
84446
  return function() {
84368
- var schedule2 = set$1(this, id30), tween = schedule2.tween;
84447
+ var schedule2 = set$1(this, id28), tween = schedule2.tween;
84369
84448
  if (tween !== tween0) {
84370
84449
  tween1 = tween0 = tween;
84371
84450
  for (var i2 = 0, n2 = tween1.length; i2 < n2; ++i2) {
@@ -84379,11 +84458,11 @@ function tweenRemove(id30, name) {
84379
84458
  schedule2.tween = tween1;
84380
84459
  };
84381
84460
  }
84382
- function tweenFunction(id30, name, value) {
84461
+ function tweenFunction(id28, name, value) {
84383
84462
  var tween0, tween1;
84384
84463
  if (typeof value !== "function") throw new Error();
84385
84464
  return function() {
84386
- var schedule2 = set$1(this, id30), tween = schedule2.tween;
84465
+ var schedule2 = set$1(this, id28), tween = schedule2.tween;
84387
84466
  if (tween !== tween0) {
84388
84467
  tween1 = (tween0 = tween).slice();
84389
84468
  for (var t2 = { name, value }, i2 = 0, n2 = tween1.length; i2 < n2; ++i2) {
@@ -84398,10 +84477,10 @@ function tweenFunction(id30, name, value) {
84398
84477
  };
84399
84478
  }
84400
84479
  function transition_tween(name, value) {
84401
- var id30 = this._id;
84480
+ var id28 = this._id;
84402
84481
  name += "";
84403
84482
  if (arguments.length < 2) {
84404
- var tween = get(this.node(), id30).tween;
84483
+ var tween = get(this.node(), id28).tween;
84405
84484
  for (var i2 = 0, n2 = tween.length, t2; i2 < n2; ++i2) {
84406
84485
  if ((t2 = tween[i2]).name === name) {
84407
84486
  return t2.value;
@@ -84409,16 +84488,16 @@ function transition_tween(name, value) {
84409
84488
  }
84410
84489
  return null;
84411
84490
  }
84412
- return this.each((value == null ? tweenRemove : tweenFunction)(id30, name, value));
84491
+ return this.each((value == null ? tweenRemove : tweenFunction)(id28, name, value));
84413
84492
  }
84414
84493
  function tweenValue(transition, name, value) {
84415
- var id30 = transition._id;
84494
+ var id28 = transition._id;
84416
84495
  transition.each(function() {
84417
- var schedule2 = set$1(this, id30);
84496
+ var schedule2 = set$1(this, id28);
84418
84497
  (schedule2.value || (schedule2.value = {}))[name] = value.apply(this, arguments);
84419
84498
  });
84420
84499
  return function(node2) {
84421
- return get(node2, id30).value[name];
84500
+ return get(node2, id28).value[name];
84422
84501
  };
84423
84502
  }
84424
84503
  function interpolate(a2, b2) {
@@ -84511,49 +84590,49 @@ function transition_attrTween(name, value) {
84511
84590
  var fullname = namespace(name);
84512
84591
  return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
84513
84592
  }
84514
- function delayFunction(id30, value) {
84593
+ function delayFunction(id28, value) {
84515
84594
  return function() {
84516
- init$1(this, id30).delay = +value.apply(this, arguments);
84595
+ init$1(this, id28).delay = +value.apply(this, arguments);
84517
84596
  };
84518
84597
  }
84519
- function delayConstant(id30, value) {
84598
+ function delayConstant(id28, value) {
84520
84599
  return value = +value, function() {
84521
- init$1(this, id30).delay = value;
84600
+ init$1(this, id28).delay = value;
84522
84601
  };
84523
84602
  }
84524
84603
  function transition_delay(value) {
84525
- var id30 = this._id;
84526
- return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id30, value)) : get(this.node(), id30).delay;
84604
+ var id28 = this._id;
84605
+ return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id28, value)) : get(this.node(), id28).delay;
84527
84606
  }
84528
- function durationFunction(id30, value) {
84607
+ function durationFunction(id28, value) {
84529
84608
  return function() {
84530
- set$1(this, id30).duration = +value.apply(this, arguments);
84609
+ set$1(this, id28).duration = +value.apply(this, arguments);
84531
84610
  };
84532
84611
  }
84533
- function durationConstant(id30, value) {
84612
+ function durationConstant(id28, value) {
84534
84613
  return value = +value, function() {
84535
- set$1(this, id30).duration = value;
84614
+ set$1(this, id28).duration = value;
84536
84615
  };
84537
84616
  }
84538
84617
  function transition_duration(value) {
84539
- var id30 = this._id;
84540
- return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id30, value)) : get(this.node(), id30).duration;
84618
+ var id28 = this._id;
84619
+ return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id28, value)) : get(this.node(), id28).duration;
84541
84620
  }
84542
- function easeConstant(id30, value) {
84621
+ function easeConstant(id28, value) {
84543
84622
  if (typeof value !== "function") throw new Error();
84544
84623
  return function() {
84545
- set$1(this, id30).ease = value;
84624
+ set$1(this, id28).ease = value;
84546
84625
  };
84547
84626
  }
84548
84627
  function transition_ease(value) {
84549
- var id30 = this._id;
84550
- return arguments.length ? this.each(easeConstant(id30, value)) : get(this.node(), id30).ease;
84628
+ var id28 = this._id;
84629
+ return arguments.length ? this.each(easeConstant(id28, value)) : get(this.node(), id28).ease;
84551
84630
  }
84552
- function easeVarying(id30, value) {
84631
+ function easeVarying(id28, value) {
84553
84632
  return function() {
84554
84633
  var v2 = value.apply(this, arguments);
84555
84634
  if (typeof v2 !== "function") throw new Error();
84556
- set$1(this, id30).ease = v2;
84635
+ set$1(this, id28).ease = v2;
84557
84636
  };
84558
84637
  }
84559
84638
  function transition_easeVarying(value) {
@@ -84592,22 +84671,22 @@ function start(name) {
84592
84671
  return !t2 || t2 === "start";
84593
84672
  });
84594
84673
  }
84595
- function onFunction(id30, name, listener) {
84674
+ function onFunction(id28, name, listener) {
84596
84675
  var on0, on1, sit = start(name) ? init$1 : set$1;
84597
84676
  return function() {
84598
- var schedule2 = sit(this, id30), on = schedule2.on;
84677
+ var schedule2 = sit(this, id28), on = schedule2.on;
84599
84678
  if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
84600
84679
  schedule2.on = on1;
84601
84680
  };
84602
84681
  }
84603
84682
  function transition_on(name, listener) {
84604
- var id30 = this._id;
84605
- return arguments.length < 2 ? get(this.node(), id30).on.on(name) : this.each(onFunction(id30, name, listener));
84683
+ var id28 = this._id;
84684
+ return arguments.length < 2 ? get(this.node(), id28).on.on(name) : this.each(onFunction(id28, name, listener));
84606
84685
  }
84607
- function removeFunction(id30) {
84686
+ function removeFunction(id28) {
84608
84687
  return function() {
84609
84688
  var parent = this.parentNode;
84610
- for (var i2 in this.__transition) if (+i2 !== id30) return;
84689
+ for (var i2 in this.__transition) if (+i2 !== id28) return;
84611
84690
  if (parent) parent.removeChild(this);
84612
84691
  };
84613
84692
  }
@@ -84615,28 +84694,28 @@ function transition_remove() {
84615
84694
  return this.on("end.remove", removeFunction(this._id));
84616
84695
  }
84617
84696
  function transition_select(select2) {
84618
- var name = this._name, id30 = this._id;
84697
+ var name = this._name, id28 = this._id;
84619
84698
  if (typeof select2 !== "function") select2 = selector(select2);
84620
84699
  for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
84621
84700
  for (var group = groups[j2], n2 = group.length, subgroup = subgroups[j2] = new Array(n2), node2, subnode, i2 = 0; i2 < n2; ++i2) {
84622
84701
  if ((node2 = group[i2]) && (subnode = select2.call(node2, node2.__data__, i2, group))) {
84623
84702
  if ("__data__" in node2) subnode.__data__ = node2.__data__;
84624
84703
  subgroup[i2] = subnode;
84625
- schedule(subgroup[i2], name, id30, i2, subgroup, get(node2, id30));
84704
+ schedule(subgroup[i2], name, id28, i2, subgroup, get(node2, id28));
84626
84705
  }
84627
84706
  }
84628
84707
  }
84629
- return new Transition(subgroups, this._parents, name, id30);
84708
+ return new Transition(subgroups, this._parents, name, id28);
84630
84709
  }
84631
84710
  function transition_selectAll(select2) {
84632
- var name = this._name, id30 = this._id;
84711
+ var name = this._name, id28 = this._id;
84633
84712
  if (typeof select2 !== "function") select2 = selectorAll(select2);
84634
84713
  for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [], j2 = 0; j2 < m2; ++j2) {
84635
84714
  for (var group = groups[j2], n2 = group.length, node2, i2 = 0; i2 < n2; ++i2) {
84636
84715
  if (node2 = group[i2]) {
84637
- for (var children2 = select2.call(node2, node2.__data__, i2, group), child, inherit2 = get(node2, id30), k2 = 0, l4 = children2.length; k2 < l4; ++k2) {
84716
+ for (var children2 = select2.call(node2, node2.__data__, i2, group), child, inherit2 = get(node2, id28), k2 = 0, l4 = children2.length; k2 < l4; ++k2) {
84638
84717
  if (child = children2[k2]) {
84639
- schedule(child, name, id30, k2, children2, inherit2);
84718
+ schedule(child, name, id28, k2, children2, inherit2);
84640
84719
  }
84641
84720
  }
84642
84721
  subgroups.push(children2);
@@ -84644,7 +84723,7 @@ function transition_selectAll(select2) {
84644
84723
  }
84645
84724
  }
84646
84725
  }
84647
- return new Transition(subgroups, parents, name, id30);
84726
+ return new Transition(subgroups, parents, name, id28);
84648
84727
  }
84649
84728
  var Selection = selection.prototype.constructor;
84650
84729
  function transition_selection() {
@@ -84677,10 +84756,10 @@ function styleFunction(name, interpolate2, value) {
84677
84756
  return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate2(string00 = string0, value1));
84678
84757
  };
84679
84758
  }
84680
- function styleMaybeRemove(id30, name) {
84759
+ function styleMaybeRemove(id28, name) {
84681
84760
  var on0, on1, listener0, key = "style." + name, event = "end." + key, remove2;
84682
84761
  return function() {
84683
- var schedule2 = set$1(this, id30), on = schedule2.on, listener = schedule2.value[key] == null ? remove2 || (remove2 = styleRemove(name)) : void 0;
84762
+ var schedule2 = set$1(this, id28), on = schedule2.on, listener = schedule2.value[key] == null ? remove2 || (remove2 = styleRemove(name)) : void 0;
84684
84763
  if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
84685
84764
  schedule2.on = on1;
84686
84765
  };
@@ -84765,13 +84844,13 @@ function transition_transition() {
84765
84844
  return new Transition(groups, this._parents, name, id1);
84766
84845
  }
84767
84846
  function transition_end() {
84768
- var on0, on1, that = this, id30 = that._id, size = that.size();
84847
+ var on0, on1, that = this, id28 = that._id, size = that.size();
84769
84848
  return new Promise(function(resolve, reject) {
84770
84849
  var cancel = { value: reject }, end = { value: function() {
84771
84850
  if (--size === 0) resolve();
84772
84851
  } };
84773
84852
  that.each(function() {
84774
- var schedule2 = set$1(this, id30), on = schedule2.on;
84853
+ var schedule2 = set$1(this, id28), on = schedule2.on;
84775
84854
  if (on !== on0) {
84776
84855
  on1 = (on0 = on).copy();
84777
84856
  on1._.cancel.push(cancel);
@@ -84784,11 +84863,11 @@ function transition_end() {
84784
84863
  });
84785
84864
  }
84786
84865
  var id$2 = 0;
84787
- function Transition(groups, parents, name, id30) {
84866
+ function Transition(groups, parents, name, id28) {
84788
84867
  this._groups = groups;
84789
84868
  this._parents = parents;
84790
84869
  this._name = name;
84791
- this._id = id30;
84870
+ this._id = id28;
84792
84871
  }
84793
84872
  function newId() {
84794
84873
  return ++id$2;
@@ -84836,30 +84915,30 @@ var defaultTiming = {
84836
84915
  duration: 250,
84837
84916
  ease: cubicInOut
84838
84917
  };
84839
- function inherit(node2, id30) {
84918
+ function inherit(node2, id28) {
84840
84919
  var timing;
84841
- while (!(timing = node2.__transition) || !(timing = timing[id30])) {
84920
+ while (!(timing = node2.__transition) || !(timing = timing[id28])) {
84842
84921
  if (!(node2 = node2.parentNode)) {
84843
- throw new Error(`transition ${id30} not found`);
84922
+ throw new Error(`transition ${id28} not found`);
84844
84923
  }
84845
84924
  }
84846
84925
  return timing;
84847
84926
  }
84848
84927
  function selection_transition(name) {
84849
- var id30, timing;
84928
+ var id28, timing;
84850
84929
  if (name instanceof Transition) {
84851
- id30 = name._id, name = name._name;
84930
+ id28 = name._id, name = name._name;
84852
84931
  } else {
84853
- id30 = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + "";
84932
+ id28 = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + "";
84854
84933
  }
84855
84934
  for (var groups = this._groups, m2 = groups.length, j2 = 0; j2 < m2; ++j2) {
84856
84935
  for (var group = groups[j2], n2 = group.length, node2, i2 = 0; i2 < n2; ++i2) {
84857
84936
  if (node2 = group[i2]) {
84858
- schedule(node2, name, id30, i2, group, timing || inherit(node2, id30));
84937
+ schedule(node2, name, id28, i2, group, timing || inherit(node2, id28));
84859
84938
  }
84860
84939
  }
84861
84940
  }
84862
- return new Transition(groups, this._parents, name, id30);
84941
+ return new Transition(groups, this._parents, name, id28);
84863
84942
  }
84864
84943
  selection.prototype.interrupt = selection_interrupt;
84865
84944
  selection.prototype.transition = selection_transition;
@@ -85964,15 +86043,15 @@ Transform.prototype = {
85964
86043
  }
85965
86044
  };
85966
86045
  Transform.prototype;
85967
- var selectSvgElement = /* @__PURE__ */ __name((id30) => {
86046
+ var selectSvgElement = /* @__PURE__ */ __name((id28) => {
85968
86047
  const { securityLevel } = getConfig2();
85969
86048
  let root2 = select("body");
85970
86049
  if (securityLevel === "sandbox") {
85971
- const sandboxElement = select(`#i${id30}`);
86050
+ const sandboxElement = select(`#i${id28}`);
85972
86051
  const doc = sandboxElement.node()?.contentDocument ?? document;
85973
86052
  root2 = select(doc.body);
85974
86053
  }
85975
- const svg2 = root2.select(`#${id30}`);
86054
+ const svg2 = root2.select(`#${id28}`);
85976
86055
  return svg2;
85977
86056
  }, "selectSvgElement");
85978
86057
  function isNothing(subject) {
@@ -86895,19 +86974,6 @@ function charFromCodepoint(c2) {
86895
86974
  );
86896
86975
  }
86897
86976
  __name(charFromCodepoint, "charFromCodepoint");
86898
- function setProperty(object, key, value) {
86899
- if (key === "__proto__") {
86900
- Object.defineProperty(object, key, {
86901
- configurable: true,
86902
- enumerable: true,
86903
- writable: true,
86904
- value
86905
- });
86906
- } else {
86907
- object[key] = value;
86908
- }
86909
- }
86910
- __name(setProperty, "setProperty");
86911
86977
  var simpleEscapeCheck = new Array(256);
86912
86978
  var simpleEscapeMap = new Array(256);
86913
86979
  for (i$1 = 0; i$1 < 256; i$1++) {
@@ -87032,7 +87098,7 @@ function mergeMappings(state2, destination, source, overridableKeys) {
87032
87098
  for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
87033
87099
  key = sourceKeys[index];
87034
87100
  if (!_hasOwnProperty$1.call(destination, key)) {
87035
- setProperty(destination, key, source[key]);
87101
+ destination[key] = source[key];
87036
87102
  overridableKeys[key] = true;
87037
87103
  }
87038
87104
  }
@@ -87073,7 +87139,16 @@ function storeMappingPair(state2, _result, overridableKeys, keyTag, keyNode, val
87073
87139
  state2.position = startPos || state2.position;
87074
87140
  throwError(state2, "duplicated mapping key");
87075
87141
  }
87076
- setProperty(_result, keyNode, valueNode);
87142
+ if (keyNode === "__proto__") {
87143
+ Object.defineProperty(_result, keyNode, {
87144
+ configurable: true,
87145
+ enumerable: true,
87146
+ writable: true,
87147
+ value: valueNode
87148
+ });
87149
+ } else {
87150
+ _result[keyNode] = valueNode;
87151
+ }
87077
87152
  delete overridableKeys[keyNode];
87078
87153
  }
87079
87154
  return _result;
@@ -88665,14 +88740,6 @@ function renamed(from2, to) {
88665
88740
  __name(renamed, "renamed");
88666
88741
  var JSON_SCHEMA = json;
88667
88742
  var load = loader$1.load;
88668
- var computeLabelTransform = /* @__PURE__ */ __name((bbox, useHtmlLabels) => {
88669
- if (useHtmlLabels) {
88670
- return "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")";
88671
- }
88672
- const x2 = bbox.x ?? 0;
88673
- const y3 = bbox.y ?? 0;
88674
- return "translate(" + -(x2 + bbox.width / 2) + ", " + -(y3 + bbox.height / 2) + ")";
88675
- }, "computeLabelTransform");
88676
88743
  var markerOffsets = {
88677
88744
  aggregation: 17.25,
88678
88745
  extension: 17.25,
@@ -88782,6 +88849,113 @@ var getLineFunctionsWithOffset = /* @__PURE__ */ __name((edge) => {
88782
88849
  }, "y")
88783
88850
  };
88784
88851
  }, "getLineFunctionsWithOffset");
88852
+ var getSubGraphTitleMargins = /* @__PURE__ */ __name(({
88853
+ flowchart
88854
+ }) => {
88855
+ const subGraphTitleTopMargin = flowchart?.subGraphTitleMargin?.top ?? 0;
88856
+ const subGraphTitleBottomMargin = flowchart?.subGraphTitleMargin?.bottom ?? 0;
88857
+ const subGraphTitleTotalMargin = subGraphTitleTopMargin + subGraphTitleBottomMargin;
88858
+ return {
88859
+ subGraphTitleTopMargin,
88860
+ subGraphTitleBottomMargin,
88861
+ subGraphTitleTotalMargin
88862
+ };
88863
+ }, "getSubGraphTitleMargins");
88864
+ var solidStateFill = /* @__PURE__ */ __name((color2) => {
88865
+ const { handDrawnSeed } = getConfig2();
88866
+ return {
88867
+ fill: color2,
88868
+ hachureAngle: 120,
88869
+ // angle of hachure,
88870
+ hachureGap: 4,
88871
+ fillWeight: 2,
88872
+ roughness: 0.7,
88873
+ stroke: color2,
88874
+ seed: handDrawnSeed
88875
+ };
88876
+ }, "solidStateFill");
88877
+ var compileStyles = /* @__PURE__ */ __name((node2) => {
88878
+ const stylesMap = styles2Map([
88879
+ ...node2.cssCompiledStyles || [],
88880
+ ...node2.cssStyles || [],
88881
+ ...node2.labelStyle || []
88882
+ ]);
88883
+ return { stylesMap, stylesArray: [...stylesMap] };
88884
+ }, "compileStyles");
88885
+ var styles2Map = /* @__PURE__ */ __name((styles2) => {
88886
+ const styleMap2 = /* @__PURE__ */ new Map();
88887
+ styles2.forEach((style2) => {
88888
+ const [key, value] = style2.split(":");
88889
+ styleMap2.set(key.trim(), value?.trim());
88890
+ });
88891
+ return styleMap2;
88892
+ }, "styles2Map");
88893
+ var isLabelStyle = /* @__PURE__ */ __name((key) => {
88894
+ return key === "color" || key === "font-size" || key === "font-family" || key === "font-weight" || key === "font-style" || key === "text-decoration" || key === "text-align" || key === "text-transform" || key === "line-height" || key === "letter-spacing" || key === "word-spacing" || key === "text-shadow" || key === "text-overflow" || key === "white-space" || key === "word-wrap" || key === "word-break" || key === "overflow-wrap" || key === "hyphens";
88895
+ }, "isLabelStyle");
88896
+ var styles2String = /* @__PURE__ */ __name((node2) => {
88897
+ const { stylesArray } = compileStyles(node2);
88898
+ const labelStyles = [];
88899
+ const nodeStyles = [];
88900
+ const borderStyles = [];
88901
+ const backgroundStyles = [];
88902
+ stylesArray.forEach((style2) => {
88903
+ const key = style2[0];
88904
+ if (isLabelStyle(key)) {
88905
+ labelStyles.push(style2.join(":") + " !important");
88906
+ } else {
88907
+ nodeStyles.push(style2.join(":") + " !important");
88908
+ if (key.includes("stroke")) {
88909
+ borderStyles.push(style2.join(":") + " !important");
88910
+ }
88911
+ if (key === "fill") {
88912
+ backgroundStyles.push(style2.join(":") + " !important");
88913
+ }
88914
+ }
88915
+ });
88916
+ return {
88917
+ labelStyles: labelStyles.join(";"),
88918
+ nodeStyles: nodeStyles.join(";"),
88919
+ stylesArray,
88920
+ borderStyles,
88921
+ backgroundStyles
88922
+ };
88923
+ }, "styles2String");
88924
+ var userNodeOverrides = /* @__PURE__ */ __name((node2, options) => {
88925
+ const { themeVariables, handDrawnSeed } = getConfig2();
88926
+ const { nodeBorder, mainBkg } = themeVariables;
88927
+ const { stylesMap } = compileStyles(node2);
88928
+ const result = Object.assign(
88929
+ {
88930
+ roughness: 0.7,
88931
+ fill: stylesMap.get("fill") || mainBkg,
88932
+ fillStyle: "hachure",
88933
+ // solid fill
88934
+ fillWeight: 4,
88935
+ hachureGap: 5.2,
88936
+ stroke: stylesMap.get("stroke") || nodeBorder,
88937
+ seed: handDrawnSeed,
88938
+ strokeWidth: stylesMap.get("stroke-width")?.replace("px", "") || 1.3,
88939
+ fillLineDash: [0, 0],
88940
+ strokeLineDash: getStrokeDashArray(stylesMap.get("stroke-dasharray"))
88941
+ },
88942
+ options
88943
+ );
88944
+ return result;
88945
+ }, "userNodeOverrides");
88946
+ var getStrokeDashArray = /* @__PURE__ */ __name((strokeDasharrayStyle) => {
88947
+ if (!strokeDasharrayStyle) {
88948
+ return [0, 0];
88949
+ }
88950
+ const dashArray = strokeDasharrayStyle.trim().split(/\s+/).map(Number);
88951
+ if (dashArray.length === 1) {
88952
+ const val = isNaN(dashArray[0]) ? 0 : dashArray[0];
88953
+ return [val, val];
88954
+ }
88955
+ const first = isNaN(dashArray[0]) ? 0 : dashArray[0];
88956
+ const second = isNaN(dashArray[1]) ? 0 : dashArray[1];
88957
+ return [first, second];
88958
+ }, "getStrokeDashArray");
88785
88959
  var dist$1 = {};
88786
88960
  var constants = {};
88787
88961
  var hasRequiredConstants;
@@ -90113,9 +90287,9 @@ var getEdgeId = /* @__PURE__ */ __name((from2, to, {
90113
90287
  counter = 0,
90114
90288
  prefix,
90115
90289
  suffix
90116
- }, id30) => {
90117
- if (id30) {
90118
- return id30;
90290
+ }, id28) => {
90291
+ if (id28) {
90292
+ return id28;
90119
90293
  }
90120
90294
  return `${prefix ? `${prefix}_` : ""}${from2}_${to}_${counter}${suffix ? `_${suffix}` : ""}`;
90121
90295
  }, "getEdgeId");
@@ -90133,150 +90307,6 @@ function isLabelCoordinateInPath(point2, dAttr) {
90133
90307
  return sanitizedD.includes(roundedX.toString()) || sanitizedD.includes(roundedY.toString());
90134
90308
  }
90135
90309
  __name(isLabelCoordinateInPath, "isLabelCoordinateInPath");
90136
- var getSubGraphTitleMargins = /* @__PURE__ */ __name(({
90137
- flowchart
90138
- }) => {
90139
- const subGraphTitleTopMargin = flowchart?.subGraphTitleMargin?.top ?? 0;
90140
- const subGraphTitleBottomMargin = flowchart?.subGraphTitleMargin?.bottom ?? 0;
90141
- const subGraphTitleTotalMargin = subGraphTitleTopMargin + subGraphTitleBottomMargin;
90142
- return {
90143
- subGraphTitleTopMargin,
90144
- subGraphTitleBottomMargin,
90145
- subGraphTitleTotalMargin
90146
- };
90147
- }, "getSubGraphTitleMargins");
90148
- async function configureLabelImages(container, labelText) {
90149
- const images = container.getElementsByTagName("img");
90150
- if (!images || images.length === 0) {
90151
- return;
90152
- }
90153
- const noImgText = labelText.replace(/<img[^>]*>/g, "").trim() === "";
90154
- await Promise.all(
90155
- [...images].map(
90156
- (img) => new Promise((res) => {
90157
- function setupImage() {
90158
- img.style.display = "flex";
90159
- img.style.flexDirection = "column";
90160
- if (noImgText) {
90161
- const bodyFontSize = getConfig2().fontSize ? getConfig2().fontSize : window.getComputedStyle(document.body).fontSize;
90162
- const enlargingFactor = 5;
90163
- const [parsedBodyFontSize = defaultConfig_default.fontSize] = parseFontSize(bodyFontSize);
90164
- const width = parsedBodyFontSize * enlargingFactor + "px";
90165
- img.style.minWidth = width;
90166
- img.style.maxWidth = width;
90167
- } else {
90168
- img.style.width = "100%";
90169
- }
90170
- res(img);
90171
- }
90172
- __name(setupImage, "setupImage");
90173
- setTimeout(() => {
90174
- if (img.complete) {
90175
- setupImage();
90176
- }
90177
- });
90178
- img.addEventListener("error", setupImage);
90179
- img.addEventListener("load", setupImage);
90180
- })
90181
- )
90182
- );
90183
- }
90184
- __name(configureLabelImages, "configureLabelImages");
90185
- var solidStateFill = /* @__PURE__ */ __name((color2) => {
90186
- const { handDrawnSeed } = getConfig2();
90187
- return {
90188
- fill: color2,
90189
- hachureAngle: 120,
90190
- // angle of hachure,
90191
- hachureGap: 4,
90192
- fillWeight: 2,
90193
- roughness: 0.7,
90194
- stroke: color2,
90195
- seed: handDrawnSeed
90196
- };
90197
- }, "solidStateFill");
90198
- var compileStyles = /* @__PURE__ */ __name((node2) => {
90199
- const stylesMap = styles2Map([
90200
- ...node2.cssCompiledStyles || [],
90201
- ...node2.cssStyles || [],
90202
- ...node2.labelStyle || []
90203
- ]);
90204
- return { stylesMap, stylesArray: [...stylesMap] };
90205
- }, "compileStyles");
90206
- var styles2Map = /* @__PURE__ */ __name((styles2) => {
90207
- const styleMap2 = /* @__PURE__ */ new Map();
90208
- styles2.forEach((style2) => {
90209
- const [key, value] = style2.split(":");
90210
- styleMap2.set(key.trim(), value?.trim());
90211
- });
90212
- return styleMap2;
90213
- }, "styles2Map");
90214
- var isLabelStyle = /* @__PURE__ */ __name((key) => {
90215
- return key === "color" || key === "font-size" || key === "font-family" || key === "font-weight" || key === "font-style" || key === "text-decoration" || key === "text-align" || key === "text-transform" || key === "line-height" || key === "letter-spacing" || key === "word-spacing" || key === "text-shadow" || key === "text-overflow" || key === "white-space" || key === "word-wrap" || key === "word-break" || key === "overflow-wrap" || key === "hyphens";
90216
- }, "isLabelStyle");
90217
- var styles2String = /* @__PURE__ */ __name((node2) => {
90218
- const { stylesArray } = compileStyles(node2);
90219
- const labelStyles = [];
90220
- const nodeStyles = [];
90221
- const borderStyles = [];
90222
- const backgroundStyles = [];
90223
- stylesArray.forEach((style2) => {
90224
- const key = style2[0];
90225
- if (isLabelStyle(key)) {
90226
- labelStyles.push(style2.join(":") + " !important");
90227
- } else {
90228
- nodeStyles.push(style2.join(":") + " !important");
90229
- if (key.includes("stroke")) {
90230
- borderStyles.push(style2.join(":") + " !important");
90231
- }
90232
- if (key === "fill") {
90233
- backgroundStyles.push(style2.join(":") + " !important");
90234
- }
90235
- }
90236
- });
90237
- return {
90238
- labelStyles: labelStyles.join(";"),
90239
- nodeStyles: nodeStyles.join(";"),
90240
- stylesArray,
90241
- borderStyles,
90242
- backgroundStyles
90243
- };
90244
- }, "styles2String");
90245
- var userNodeOverrides = /* @__PURE__ */ __name((node2, options) => {
90246
- const { themeVariables, handDrawnSeed } = getConfig2();
90247
- const { nodeBorder, mainBkg } = themeVariables;
90248
- const { stylesMap } = compileStyles(node2);
90249
- const result = Object.assign(
90250
- {
90251
- roughness: 0.7,
90252
- fill: stylesMap.get("fill") || mainBkg,
90253
- fillStyle: "hachure",
90254
- // solid fill
90255
- fillWeight: 4,
90256
- hachureGap: 5.2,
90257
- stroke: stylesMap.get("stroke") || nodeBorder,
90258
- seed: handDrawnSeed,
90259
- strokeWidth: stylesMap.get("stroke-width")?.replace("px", "") || 1.3,
90260
- fillLineDash: [0, 0],
90261
- strokeLineDash: getStrokeDashArray(stylesMap.get("stroke-dasharray"))
90262
- },
90263
- options
90264
- );
90265
- return result;
90266
- }, "userNodeOverrides");
90267
- var getStrokeDashArray = /* @__PURE__ */ __name((strokeDasharrayStyle) => {
90268
- if (!strokeDasharrayStyle) {
90269
- return [0, 0];
90270
- }
90271
- const dashArray = strokeDasharrayStyle.trim().split(/\s+/).map(Number);
90272
- if (dashArray.length === 1) {
90273
- const val = isNaN(dashArray[0]) ? 0 : dashArray[0];
90274
- return [val, val];
90275
- }
90276
- const first = isNaN(dashArray[0]) ? 0 : dashArray[0];
90277
- const second = isNaN(dashArray[1]) ? 0 : dashArray[1];
90278
- return [first, second];
90279
- }, "getStrokeDashArray");
90280
90310
  const defaultIconDimensions = Object.freeze({
90281
90311
  left: 0,
90282
90312
  top: 0,
@@ -90539,11 +90569,11 @@ function iconToSVG(icon2, customisations) {
90539
90569
  }
90540
90570
  const regex = /\sid="(\S+)"/g;
90541
90571
  const counters = /* @__PURE__ */ new Map();
90542
- function nextID(id30) {
90543
- id30 = id30.replace(/[0-9]+$/, "") || "a";
90544
- const count = counters.get(id30) || 0;
90545
- counters.set(id30, count + 1);
90546
- return count ? `${id30}${count}` : id30;
90572
+ function nextID(id28) {
90573
+ id28 = id28.replace(/[0-9]+$/, "") || "a";
90574
+ const count = counters.get(id28) || 0;
90575
+ counters.set(id28, count + 1);
90576
+ return count ? `${id28}${count}` : id28;
90547
90577
  }
90548
90578
  function replaceIDs(body) {
90549
90579
  const ids = [];
@@ -90551,9 +90581,9 @@ function replaceIDs(body) {
90551
90581
  while (match2 = regex.exec(body)) ids.push(match2[1]);
90552
90582
  if (!ids.length) return body;
90553
90583
  const suffix = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
90554
- ids.forEach((id30) => {
90555
- const newID = nextID(id30);
90556
- const escapedID = id30.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
90584
+ ids.forEach((id28) => {
90585
+ const newID = nextID(id28);
90586
+ const escapedID = id28.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
90557
90587
  body = body.replace(new RegExp('([#;"])(' + escapedID + ')([")]|\\.[a-z])', "g"), "$1" + newID + suffix + "$3");
90558
90588
  });
90559
90589
  body = body.replace(new RegExp(suffix, "g"), "");
@@ -91730,12 +91760,12 @@ var getRegisteredIconData = /* @__PURE__ */ __name(async (iconName, fallbackPref
91730
91760
  }
91731
91761
  let icons = iconsStore.get(prefix);
91732
91762
  if (!icons) {
91733
- const loader30 = loaderStore.get(prefix);
91734
- if (!loader30) {
91763
+ const loader28 = loaderStore.get(prefix);
91764
+ if (!loader28) {
91735
91765
  throw new Error(`Icon set not found: ${data.prefix}`);
91736
91766
  }
91737
91767
  try {
91738
- const loaded = await loader30();
91768
+ const loaded = await loader28();
91739
91769
  icons = { ...loaded, prefix };
91740
91770
  iconsStore.set(prefix, icons);
91741
91771
  } catch (e2) {
@@ -91776,15 +91806,12 @@ function preprocessMarkdown(markdown, { markdownAutoWrap }) {
91776
91806
  const withoutBR = markdown.replace(/<br\/>/g, "\n");
91777
91807
  const withoutMultipleNewlines = withoutBR.replace(/\n{2,}/g, "\n");
91778
91808
  const withoutExtraSpaces = dedent(withoutMultipleNewlines);
91809
+ if (markdownAutoWrap === false) {
91810
+ return withoutExtraSpaces.replace(/ /g, "&nbsp;");
91811
+ }
91779
91812
  return withoutExtraSpaces;
91780
91813
  }
91781
91814
  __name(preprocessMarkdown, "preprocessMarkdown");
91782
- function nonMarkdownToLines(nonMarkdownText) {
91783
- return nonMarkdownText.split(/\\n|\n|<br\s*\/?>/gi).map(
91784
- (line2) => line2.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((word) => ({ content: word, type: "normal" })) ?? []
91785
- );
91786
- }
91787
- __name(nonMarkdownToLines, "nonMarkdownToLines");
91788
91815
  function markdownToLines(markdown, config2 = {}) {
91789
91816
  const preprocessedMarkdown = preprocessMarkdown(markdown, config2);
91790
91817
  const nodes = k$1.lexer(preprocessedMarkdown);
@@ -91828,18 +91855,6 @@ function markdownToLines(markdown, config2 = {}) {
91828
91855
  return lines;
91829
91856
  }
91830
91857
  __name(markdownToLines, "markdownToLines");
91831
- function nonMarkdownToHTML(text2) {
91832
- if (!text2) {
91833
- return "";
91834
- }
91835
- return `<p>${/**
91836
- * Replace new lines with <br /> tags.
91837
- *
91838
- * Unlike in markdown text, `\n` sequences are treated as line breaks here.
91839
- */
91840
- text2.replace(/\\n|\n/g, "<br />")}</p>`;
91841
- }
91842
- __name(nonMarkdownToHTML, "nonMarkdownToHTML");
91843
91858
  function markdownToHTML(markdown, { markdownAutoWrap } = {}) {
91844
91859
  const nodes = k$1.lexer(markdown);
91845
91860
  function output(node2) {
@@ -91943,32 +91958,29 @@ function splitLineToFitWidthRecursion(words, checkFit, lines = [], newLine = [])
91943
91958
  return splitLineToFitWidthRecursion(words, checkFit, lines);
91944
91959
  }
91945
91960
  __name(splitLineToFitWidthRecursion, "splitLineToFitWidthRecursion");
91946
- function applyStyle(dom, styleFn) {
91961
+ function applyStyle$1(dom, styleFn) {
91947
91962
  if (styleFn) {
91948
91963
  dom.attr("style", styleFn);
91949
91964
  }
91950
91965
  }
91951
- __name(applyStyle, "applyStyle");
91952
- var maxSafeSizeForWidth = 16384;
91966
+ __name(applyStyle$1, "applyStyle");
91953
91967
  async function addHtmlSpan(element, node2, width, classes, addBackground = false, config2 = getConfig()) {
91954
91968
  const fo = element.append("foreignObject");
91955
- fo.attr("width", `${Math.min(10 * width, maxSafeSizeForWidth)}px`);
91956
- fo.attr("height", `${Math.min(10 * width, maxSafeSizeForWidth)}px`);
91969
+ fo.attr("width", `${10 * width}px`);
91970
+ fo.attr("height", `${10 * width}px`);
91957
91971
  const div = fo.append("xhtml:div");
91958
91972
  const sanitizedLabel = hasKatex(node2.label) ? await renderKatexSanitized(node2.label.replace(common_default.lineBreakRegex, "\n"), config2) : sanitizeText(node2.label, config2);
91959
91973
  const labelClass = node2.isNode ? "nodeLabel" : "edgeLabel";
91960
91974
  const span = div.append("span");
91961
91975
  span.html(sanitizedLabel);
91962
- applyStyle(span, node2.labelStyle);
91976
+ applyStyle$1(span, node2.labelStyle);
91963
91977
  span.attr("class", `${labelClass} ${classes}`);
91964
- applyStyle(div, node2.labelStyle);
91978
+ applyStyle$1(div, node2.labelStyle);
91965
91979
  div.style("display", "table-cell");
91966
91980
  div.style("white-space", "nowrap");
91967
91981
  div.style("line-height", "1.5");
91968
- if (width !== Number.POSITIVE_INFINITY) {
91969
- div.style("max-width", width + "px");
91970
- div.style("text-align", "center");
91971
- }
91982
+ div.style("max-width", width + "px");
91983
+ div.style("text-align", "center");
91972
91984
  div.attr("xmlns", "http://www.w3.org/1999/xhtml");
91973
91985
  if (addBackground) {
91974
91986
  div.attr("class", "labelBkg");
@@ -91983,12 +91995,8 @@ async function addHtmlSpan(element, node2, width, classes, addBackground = false
91983
91995
  return fo.node();
91984
91996
  }
91985
91997
  __name(addHtmlSpan, "addHtmlSpan");
91986
- function createTspan(textElement, lineIndex, lineHeight, centerText = false) {
91987
- const tspan = textElement.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", lineIndex * lineHeight - 0.1 + "em").attr("dy", lineHeight + "em");
91988
- if (centerText) {
91989
- tspan.attr("text-anchor", "middle");
91990
- }
91991
- return tspan;
91998
+ function createTspan(textElement, lineIndex, lineHeight) {
91999
+ return textElement.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", lineIndex * lineHeight - 0.1 + "em").attr("dy", lineHeight + "em");
91992
92000
  }
91993
92001
  __name(createTspan, "createTspan");
91994
92002
  function computeWidthOfText(parentNode, lineHeight, line2) {
@@ -92011,20 +92019,17 @@ function computeDimensionOfText(parentNode, lineHeight, text2) {
92011
92019
  return textDimension;
92012
92020
  }
92013
92021
  __name(computeDimensionOfText, "computeDimensionOfText");
92014
- function createFormattedText(width, g2, structuredText, addBackground = false, centerText = false) {
92022
+ function createFormattedText(width, g2, structuredText, addBackground = false) {
92015
92023
  const lineHeight = 1.1;
92016
92024
  const labelGroup = g2.append("g");
92017
92025
  const bkg = labelGroup.insert("rect").attr("class", "background").attr("style", "stroke: none");
92018
92026
  const textElement = labelGroup.append("text").attr("y", "-10.1");
92019
- if (centerText) {
92020
- textElement.attr("text-anchor", "middle");
92021
- }
92022
92027
  let lineIndex = 0;
92023
92028
  for (const line2 of structuredText) {
92024
92029
  const checkWidth = /* @__PURE__ */ __name((line22) => computeWidthOfText(labelGroup, lineHeight, line22) <= width, "checkWidth");
92025
92030
  const linesUnderWidth = checkWidth(line2) ? [line2] : splitLineToFitWidth(line2, checkWidth);
92026
92031
  for (const preparedLine of linesUnderWidth) {
92027
- const tspan = createTspan(textElement, lineIndex, lineHeight, centerText);
92032
+ const tspan = createTspan(textElement, lineIndex, lineHeight);
92028
92033
  updateTextContentAndStyles(tspan, preparedLine);
92029
92034
  lineIndex++;
92030
92035
  }
@@ -92075,11 +92080,7 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
92075
92080
  isTitle = false,
92076
92081
  classes = "",
92077
92082
  useHtmlLabels = true,
92078
- markdown = true,
92079
92083
  isNode = true,
92080
- /**
92081
- * The width to wrap the text within. Set to `Number.POSITIVE_INFINITY` for no wrapping.
92082
- */
92083
92084
  width = 200,
92084
92085
  addSvgBackground = false
92085
92086
  } = {}, config2) => {
@@ -92095,7 +92096,7 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
92095
92096
  addSvgBackground
92096
92097
  );
92097
92098
  if (useHtmlLabels) {
92098
- const htmlText = markdown ? markdownToHTML(text2, config2) : nonMarkdownToHTML(text2);
92099
+ const htmlText = markdownToHTML(text2, config2);
92099
92100
  const decodedReplacedText = await replaceIconSubstring(decodeEntities(htmlText), config2);
92100
92101
  const inputForKatex = text2.replace(/\\\\/g, "\\");
92101
92102
  const node2 = {
@@ -92107,13 +92108,12 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
92107
92108
  return vertexNode;
92108
92109
  } else {
92109
92110
  const sanitizeBR = text2.replace(/<br\s*\/?>/g, "<br/>");
92110
- const structuredText = markdown ? markdownToLines(sanitizeBR.replace("<br>", "<br/>"), config2) : nonMarkdownToLines(sanitizeBR);
92111
+ const structuredText = markdownToLines(sanitizeBR.replace("<br>", "<br/>"), config2);
92111
92112
  const svgLabel = createFormattedText(
92112
92113
  width,
92113
92114
  el,
92114
92115
  structuredText,
92115
- text2 ? addSvgBackground : false,
92116
- !isNode
92116
+ text2 ? addSvgBackground : false
92117
92117
  );
92118
92118
  if (isNode) {
92119
92119
  if (/stroke:/.exec(style2)) {
@@ -92127,11 +92127,6 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
92127
92127
  const edgeLabelTextStyle = style2.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
92128
92128
  select(svgLabel).select("text").attr("style", edgeLabelTextStyle);
92129
92129
  }
92130
- if (isTitle) {
92131
- select(svgLabel).selectAll("tspan.text-outer-tspan").classed("title-row", true);
92132
- } else {
92133
- select(svgLabel).selectAll("tspan.text-outer-tspan").classed("row", true);
92134
- }
92135
92130
  return svgLabel;
92136
92131
  }
92137
92132
  }, "createText");
@@ -93149,28 +93144,52 @@ var labelHelper = /* @__PURE__ */ __name(async (parent, node2, _classes) => {
93149
93144
  } else {
93150
93145
  label = typeof node2.label === "string" ? node2.label : node2.label[0];
93151
93146
  }
93152
- const addBackground = !!node2.icon || !!node2.img;
93153
- const isMarkdown = node2.labelType === "markdown";
93154
- const text2 = await createText(
93155
- labelEl,
93156
- sanitizeText(decodeEntities(label), getConfig2()),
93157
- {
93158
- useHtmlLabels,
93159
- width: node2.width || getConfig2().flowchart?.wrappingWidth,
93160
- // @ts-expect-error -- This is currently not used. Should this be `classes` instead?
93161
- cssClasses: isMarkdown ? "markdown-node-label" : void 0,
93162
- style: node2.labelStyle,
93163
- addSvgBackground: addBackground,
93164
- markdown: isMarkdown
93165
- },
93166
- getConfig2()
93167
- );
93147
+ const text2 = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig2()), {
93148
+ useHtmlLabels,
93149
+ width: node2.width || getConfig2().flowchart?.wrappingWidth,
93150
+ // @ts-expect-error -- This is currently not used. Should this be `classes` instead?
93151
+ cssClasses: "markdown-node-label",
93152
+ style: node2.labelStyle,
93153
+ addSvgBackground: !!node2.icon || !!node2.img
93154
+ });
93168
93155
  let bbox = text2.getBBox();
93169
93156
  const halfPadding = (node2?.padding ?? 0) / 2;
93170
93157
  if (useHtmlLabels) {
93171
93158
  const div = text2.children[0];
93172
93159
  const dv = select(text2);
93173
- await configureLabelImages(div, label);
93160
+ const images = div.getElementsByTagName("img");
93161
+ if (images) {
93162
+ const noImgText = label.replace(/<img[^>]*>/g, "").trim() === "";
93163
+ await Promise.all(
93164
+ [...images].map(
93165
+ (img) => new Promise((res) => {
93166
+ function setupImage() {
93167
+ img.style.display = "flex";
93168
+ img.style.flexDirection = "column";
93169
+ if (noImgText) {
93170
+ const bodyFontSize = getConfig2().fontSize ? getConfig2().fontSize : window.getComputedStyle(document.body).fontSize;
93171
+ const enlargingFactor = 5;
93172
+ const [parsedBodyFontSize = defaultConfig_default.fontSize] = parseFontSize(bodyFontSize);
93173
+ const width = parsedBodyFontSize * enlargingFactor + "px";
93174
+ img.style.minWidth = width;
93175
+ img.style.maxWidth = width;
93176
+ } else {
93177
+ img.style.width = "100%";
93178
+ }
93179
+ res(img);
93180
+ }
93181
+ __name(setupImage, "setupImage");
93182
+ setTimeout(() => {
93183
+ if (img.complete) {
93184
+ setupImage();
93185
+ }
93186
+ });
93187
+ img.addEventListener("error", setupImage);
93188
+ img.addEventListener("load", setupImage);
93189
+ })
93190
+ )
93191
+ );
93192
+ }
93174
93193
  bbox = div.getBoundingClientRect();
93175
93194
  dv.attr("width", bbox.width);
93176
93195
  dv.attr("height", bbox.height);
@@ -93187,7 +93206,7 @@ var labelHelper = /* @__PURE__ */ __name(async (parent, node2, _classes) => {
93187
93206
  return { shapeSvg, bbox, halfPadding, label: labelEl };
93188
93207
  }, "labelHelper");
93189
93208
  var insertLabel = /* @__PURE__ */ __name(async (parent, label, options) => {
93190
- const useHtmlLabels = options.useHtmlLabels ?? getEffectiveHtmlLabels(getConfig2());
93209
+ const useHtmlLabels = options.useHtmlLabels || evaluate(getConfig2()?.flowchart?.htmlLabels);
93191
93210
  const labelEl = parent.insert("g").attr("class", "label").attr("style", options.labelStyle || "");
93192
93211
  const text2 = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig2()), {
93193
93212
  useHtmlLabels,
@@ -93197,7 +93216,7 @@ var insertLabel = /* @__PURE__ */ __name(async (parent, label, options) => {
93197
93216
  });
93198
93217
  let bbox = text2.getBBox();
93199
93218
  const halfPadding = options.padding / 2;
93200
- if (getEffectiveHtmlLabels(getConfig2())) {
93219
+ if (evaluate(getConfig2()?.flowchart?.htmlLabels)) {
93201
93220
  const div = text2.children[0];
93202
93221
  const dv = select(text2);
93203
93222
  bbox = div.getBoundingClientRect();
@@ -93283,26 +93302,76 @@ var intersectRect = /* @__PURE__ */ __name((node2, point2) => {
93283
93302
  return { x: x2 + sx, y: y3 + sy };
93284
93303
  }, "intersectRect");
93285
93304
  var intersect_rect_default = intersectRect;
93286
- var createLabel = /* @__PURE__ */ __name(async (element, _vertexText, style2, isTitle = false, isNode = false) => {
93305
+ function applyStyle(dom, styleFn) {
93306
+ if (styleFn) {
93307
+ dom.attr("style", styleFn);
93308
+ }
93309
+ }
93310
+ __name(applyStyle, "applyStyle");
93311
+ async function addHtmlLabel(node2) {
93312
+ const fo = select(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject"));
93313
+ const div = fo.append("xhtml:div");
93314
+ const config2 = getConfig2();
93315
+ let label = node2.label;
93316
+ if (node2.label && hasKatex(node2.label)) {
93317
+ label = await renderKatexSanitized(node2.label.replace(common_default.lineBreakRegex, "\n"), config2);
93318
+ }
93319
+ const labelClass = node2.isNode ? "nodeLabel" : "edgeLabel";
93320
+ const labelSpan = '<span class="' + labelClass + '" ' + (node2.labelStyle ? 'style="' + node2.labelStyle + '"' : "") + // codeql [js/html-constructed-from-input] : false positive
93321
+ ">" + label + "</span>";
93322
+ div.html(sanitizeText(labelSpan, config2));
93323
+ applyStyle(div, node2.labelStyle);
93324
+ div.style("display", "inline-block");
93325
+ div.style("padding-right", "1px");
93326
+ div.style("white-space", "nowrap");
93327
+ div.attr("xmlns", "http://www.w3.org/1999/xhtml");
93328
+ return fo.node();
93329
+ }
93330
+ __name(addHtmlLabel, "addHtmlLabel");
93331
+ var createLabel = /* @__PURE__ */ __name(async (_vertexText, style2, isTitle, isNode) => {
93287
93332
  let vertexText = _vertexText || "";
93288
93333
  if (typeof vertexText === "object") {
93289
93334
  vertexText = vertexText[0];
93290
93335
  }
93291
- const config2 = getConfig2();
93292
- const useHtmlLabels = getEffectiveHtmlLabels(config2);
93293
- return await createText(
93294
- element,
93295
- vertexText,
93296
- {
93297
- style: style2,
93298
- isTitle,
93299
- useHtmlLabels,
93300
- markdown: false,
93336
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
93337
+ vertexText = vertexText.replace(/\\n|\n/g, "<br />");
93338
+ log.info("vertexText" + vertexText);
93339
+ const node2 = {
93301
93340
  isNode,
93302
- width: Number.POSITIVE_INFINITY
93303
- },
93304
- config2
93305
- );
93341
+ label: decodeEntities(vertexText).replace(
93342
+ /fa[blrs]?:fa-[\w-]+/g,
93343
+ (s2) => `<i class='${s2.replace(":", " ")}'></i>`
93344
+ ),
93345
+ labelStyle: style2 ? style2.replace("fill:", "color:") : style2
93346
+ };
93347
+ let vertexNode = await addHtmlLabel(node2);
93348
+ return vertexNode;
93349
+ } else {
93350
+ const svgLabel = document.createElementNS("http://www.w3.org/2000/svg", "text");
93351
+ svgLabel.setAttribute("style", style2.replace("color:", "fill:"));
93352
+ let rows = [];
93353
+ if (typeof vertexText === "string") {
93354
+ rows = vertexText.split(/\\n|\n|<br\s*\/?>/gi);
93355
+ } else if (Array.isArray(vertexText)) {
93356
+ rows = vertexText;
93357
+ } else {
93358
+ rows = [];
93359
+ }
93360
+ for (const row of rows) {
93361
+ const tspan = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
93362
+ tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
93363
+ tspan.setAttribute("dy", "1em");
93364
+ tspan.setAttribute("x", "0");
93365
+ if (isTitle) {
93366
+ tspan.setAttribute("class", "title-row");
93367
+ } else {
93368
+ tspan.setAttribute("class", "row");
93369
+ }
93370
+ tspan.textContent = row.trim();
93371
+ svgLabel.appendChild(tspan);
93372
+ }
93373
+ return svgLabel;
93374
+ }
93306
93375
  }, "createLabel");
93307
93376
  var createLabel_default = createLabel;
93308
93377
  var createRoundedRectPathD = /* @__PURE__ */ __name((x2, y3, totalWidth, totalHeight, radius) => [
@@ -93368,21 +93437,15 @@ var rect = /* @__PURE__ */ __name(async (parent, node2) => {
93368
93437
  const { clusterBkg, clusterBorder } = themeVariables;
93369
93438
  const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = styles2String(node2);
93370
93439
  const shapeSvg = parent.insert("g").attr("class", "cluster " + node2.cssClasses).attr("id", node2.id).attr("data-look", node2.look);
93371
- const useHtmlLabels = getEffectiveHtmlLabels(siteConfig2);
93440
+ const useHtmlLabels = evaluate(siteConfig2.flowchart.htmlLabels);
93372
93441
  const labelEl = shapeSvg.insert("g").attr("class", "cluster-label ");
93373
- let text2;
93374
- if (node2.labelType === "markdown") {
93375
- text2 = await createText(labelEl, node2.label, {
93376
- style: node2.labelStyle,
93377
- useHtmlLabels,
93378
- isNode: true,
93379
- width: node2.width
93380
- });
93381
- } else {
93382
- text2 = await createLabel_default(labelEl, node2.label, node2.labelStyle || "", false, true);
93383
- }
93442
+ const text2 = await createText(labelEl, node2.label, {
93443
+ style: node2.labelStyle,
93444
+ useHtmlLabels,
93445
+ isNode: true
93446
+ });
93384
93447
  let bbox = text2.getBBox();
93385
- if (getEffectiveHtmlLabels(siteConfig2)) {
93448
+ if (evaluate(siteConfig2.flowchart.htmlLabels)) {
93386
93449
  const div = text2.children[0];
93387
93450
  const dv = select(text2);
93388
93451
  bbox = div.getBoundingClientRect();
@@ -93465,9 +93528,9 @@ var roundedWithTitle = /* @__PURE__ */ __name(async (parent, node2) => {
93465
93528
  const outerRectG = shapeSvg.insert("g", ":first-child");
93466
93529
  const label = shapeSvg.insert("g").attr("class", "cluster-label");
93467
93530
  let innerRect = shapeSvg.append("rect");
93468
- const text2 = await createLabel_default(label, node2.label, node2.labelStyle, void 0, true);
93531
+ const text2 = label.node().appendChild(await createLabel_default(node2.label, node2.labelStyle, void 0, true));
93469
93532
  let bbox = text2.getBBox();
93470
- if (getEffectiveHtmlLabels(siteConfig2)) {
93533
+ if (evaluate(siteConfig2.flowchart.htmlLabels)) {
93471
93534
  const div = text2.children[0];
93472
93535
  const dv = select(text2);
93473
93536
  bbox = div.getBoundingClientRect();
@@ -93516,7 +93579,7 @@ var roundedWithTitle = /* @__PURE__ */ __name(async (parent, node2) => {
93516
93579
  }
93517
93580
  label.attr(
93518
93581
  "transform",
93519
- `translate(${node2.x - bbox.width / 2}, ${y3 + 1 - (getEffectiveHtmlLabels(siteConfig2) ? 0 : 3)})`
93582
+ `translate(${node2.x - bbox.width / 2}, ${y3 + 1 - (evaluate(siteConfig2.flowchart.htmlLabels) ? 0 : 3)})`
93520
93583
  );
93521
93584
  const rectBox = rect2.node().getBBox();
93522
93585
  node2.height = rectBox.height;
@@ -93535,7 +93598,7 @@ var kanbanSection = /* @__PURE__ */ __name(async (parent, node2) => {
93535
93598
  const { clusterBkg, clusterBorder } = themeVariables;
93536
93599
  const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = styles2String(node2);
93537
93600
  const shapeSvg = parent.insert("g").attr("class", "cluster " + node2.cssClasses).attr("id", node2.id).attr("data-look", node2.look);
93538
- const useHtmlLabels = getEffectiveHtmlLabels(siteConfig2);
93601
+ const useHtmlLabels = evaluate(siteConfig2.flowchart.htmlLabels);
93539
93602
  const labelEl = shapeSvg.insert("g").attr("class", "cluster-label ");
93540
93603
  const text2 = await createText(labelEl, node2.label, {
93541
93604
  style: node2.labelStyle,
@@ -93544,7 +93607,7 @@ var kanbanSection = /* @__PURE__ */ __name(async (parent, node2) => {
93544
93607
  width: node2.width
93545
93608
  });
93546
93609
  let bbox = text2.getBBox();
93547
- if (getEffectiveHtmlLabels(siteConfig2)) {
93610
+ if (evaluate(siteConfig2.flowchart.htmlLabels)) {
93548
93611
  const div = text2.children[0];
93549
93612
  const dv = select(text2);
93550
93613
  bbox = div.getBoundingClientRect();
@@ -94656,49 +94719,44 @@ async function halfRoundedRectangle(parent, node2) {
94656
94719
  return shapeSvg;
94657
94720
  }
94658
94721
  __name(halfRoundedRectangle, "halfRoundedRectangle");
94659
- var createHexagonPathD = /* @__PURE__ */ __name((x2, y3, width, height, m2) => {
94660
- return [
94661
- `M${x2 + m2},${y3}`,
94662
- `L${x2 + width - m2},${y3}`,
94663
- `L${x2 + width},${y3 - height / 2}`,
94664
- `L${x2 + width - m2},${y3 - height}`,
94665
- `L${x2 + m2},${y3 - height}`,
94666
- `L${x2},${y3 - height / 2}`,
94667
- "Z"
94668
- ].join(" ");
94669
- }, "createHexagonPathD");
94670
94722
  async function hexagon(parent, node2) {
94671
94723
  const { labelStyles, nodeStyles } = styles2String(node2);
94672
94724
  node2.labelStyle = labelStyles;
94673
94725
  const { shapeSvg, bbox } = await labelHelper(parent, node2, getNodeClasses(node2));
94674
- const f2 = 4;
94675
- const h2 = bbox.height + node2.padding;
94676
- const m2 = h2 / f2;
94677
- const w2 = bbox.width + 2 * m2 + node2.padding;
94726
+ const h2 = bbox.height + (node2.padding ?? 0);
94727
+ const w2 = bbox.width + (node2.padding ?? 0) * 2.5;
94728
+ const { cssStyles } = node2;
94729
+ const rc = at.svg(shapeSvg);
94730
+ const options = userNodeOverrides(node2, {});
94731
+ if (node2.look !== "handDrawn") {
94732
+ options.roughness = 0;
94733
+ options.fillStyle = "solid";
94734
+ }
94735
+ let halfWidth = w2 / 2;
94736
+ const m2 = halfWidth / 6;
94737
+ halfWidth = halfWidth + m2;
94738
+ const halfHeight = h2 / 2;
94739
+ const fixedLength = halfHeight / 2;
94740
+ const deducedWidth = halfWidth - fixedLength;
94678
94741
  const points = [
94679
- { x: m2, y: 0 },
94680
- { x: w2 - m2, y: 0 },
94681
- { x: w2, y: -h2 / 2 },
94682
- { x: w2 - m2, y: -h2 },
94683
- { x: m2, y: -h2 },
94684
- { x: 0, y: -h2 / 2 }
94742
+ { x: -deducedWidth, y: -halfHeight },
94743
+ { x: 0, y: -halfHeight },
94744
+ { x: deducedWidth, y: -halfHeight },
94745
+ { x: halfWidth, y: 0 },
94746
+ { x: deducedWidth, y: halfHeight },
94747
+ { x: 0, y: halfHeight },
94748
+ { x: -deducedWidth, y: halfHeight },
94749
+ { x: -halfWidth, y: 0 }
94685
94750
  ];
94686
- let polygon;
94687
- const { cssStyles } = node2;
94688
- if (node2.look === "handDrawn") {
94689
- const rc = at.svg(shapeSvg);
94690
- const options = userNodeOverrides(node2, {});
94691
- const pathData = createHexagonPathD(0, 0, w2, h2, m2);
94692
- const roughNode = rc.path(pathData, options);
94693
- polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w2 / 2}, ${h2 / 2})`);
94694
- if (cssStyles) {
94695
- polygon.attr("style", cssStyles);
94696
- }
94697
- } else {
94698
- polygon = insertPolygonShape(shapeSvg, w2, h2, points);
94751
+ const pathData = createPathFromPoints(points);
94752
+ const shapeNode = rc.path(pathData, options);
94753
+ const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
94754
+ polygon.attr("class", "basic label-container");
94755
+ if (cssStyles && node2.look !== "handDrawn") {
94756
+ polygon.selectChildren("path").attr("style", cssStyles);
94699
94757
  }
94700
- if (nodeStyles) {
94701
- polygon.attr("style", nodeStyles);
94758
+ if (nodeStyles && node2.look !== "handDrawn") {
94759
+ polygon.selectChildren("path").attr("style", nodeStyles);
94702
94760
  }
94703
94761
  node2.width = w2;
94704
94762
  node2.height = h2;
@@ -95717,7 +95775,7 @@ __name(multiWaveEdgedRectangle, "multiWaveEdgedRectangle");
95717
95775
  async function note(parent, node2, { config: { themeVariables } }) {
95718
95776
  const { labelStyles, nodeStyles } = styles2String(node2);
95719
95777
  node2.labelStyle = labelStyles;
95720
- const useHtmlLabels = node2.useHtmlLabels || getEffectiveHtmlLabels(getConfig());
95778
+ const useHtmlLabels = node2.useHtmlLabels || getConfig().flowchart?.htmlLabels !== false;
95721
95779
  if (!useHtmlLabels) {
95722
95780
  node2.centerLabel = true;
95723
95781
  }
@@ -95874,9 +95932,9 @@ async function rectWithTitle(parent, node2) {
95874
95932
  const label = shapeSvg.insert("g").attr("class", "label").attr("style", nodeStyles);
95875
95933
  const description = node2.description;
95876
95934
  const title = node2.label;
95877
- const text2 = await createLabel_default(label, title, node2.labelStyle, true, true);
95935
+ const text2 = label.node().appendChild(await createLabel_default(title, node2.labelStyle, true, true));
95878
95936
  let bbox = { width: 0, height: 0 };
95879
- if (getEffectiveHtmlLabels(getConfig2())) {
95937
+ if (evaluate(getConfig2()?.flowchart?.htmlLabels)) {
95880
95938
  const div2 = text2.children[0];
95881
95939
  const dv2 = select(text2);
95882
95940
  bbox = div2.getBoundingClientRect();
@@ -95886,12 +95944,13 @@ async function rectWithTitle(parent, node2) {
95886
95944
  log.info("Text 2", description);
95887
95945
  const textRows = description || [];
95888
95946
  const titleBox = text2.getBBox();
95889
- const descr = await createLabel_default(
95890
- label,
95891
- Array.isArray(textRows) ? textRows.join("<br/>") : textRows,
95892
- node2.labelStyle,
95893
- true,
95894
- true
95947
+ const descr = label.node().appendChild(
95948
+ await createLabel_default(
95949
+ textRows.join ? textRows.join("<br/>") : textRows,
95950
+ node2.labelStyle,
95951
+ true,
95952
+ true
95953
+ )
95895
95954
  );
95896
95955
  const div = descr.children[0];
95897
95956
  const dv = select(descr);
@@ -95953,14 +96012,108 @@ async function rectWithTitle(parent, node2) {
95953
96012
  return shapeSvg;
95954
96013
  }
95955
96014
  __name(rectWithTitle, "rectWithTitle");
96015
+ function generateArcPoints2(x1, y1, x2, y22, rx, ry, clockwise) {
96016
+ const numPoints = 20;
96017
+ const midX = (x1 + x2) / 2;
96018
+ const midY = (y1 + y22) / 2;
96019
+ const angle = Math.atan2(y22 - y1, x2 - x1);
96020
+ const dx = (x2 - x1) / 2;
96021
+ const dy = (y22 - y1) / 2;
96022
+ const transformedX = dx / rx;
96023
+ const transformedY = dy / ry;
96024
+ const distance2 = Math.sqrt(transformedX ** 2 + transformedY ** 2);
96025
+ if (distance2 > 1) {
96026
+ throw new Error("The given radii are too small to create an arc between the points.");
96027
+ }
96028
+ const scaledCenterDistance = Math.sqrt(1 - distance2 ** 2);
96029
+ const centerX = midX + scaledCenterDistance * ry * Math.sin(angle) * (clockwise ? -1 : 1);
96030
+ const centerY = midY - scaledCenterDistance * rx * Math.cos(angle) * (clockwise ? -1 : 1);
96031
+ const startAngle = Math.atan2((y1 - centerY) / ry, (x1 - centerX) / rx);
96032
+ const endAngle = Math.atan2((y22 - centerY) / ry, (x2 - centerX) / rx);
96033
+ let angleRange = endAngle - startAngle;
96034
+ if (clockwise && angleRange < 0) {
96035
+ angleRange += 2 * Math.PI;
96036
+ }
96037
+ if (!clockwise && angleRange > 0) {
96038
+ angleRange -= 2 * Math.PI;
96039
+ }
96040
+ const points = [];
96041
+ for (let i2 = 0; i2 < numPoints; i2++) {
96042
+ const t2 = i2 / (numPoints - 1);
96043
+ const angle2 = startAngle + t2 * angleRange;
96044
+ const x3 = centerX + rx * Math.cos(angle2);
96045
+ const y3 = centerY + ry * Math.sin(angle2);
96046
+ points.push({ x: x3, y: y3 });
96047
+ }
96048
+ return points;
96049
+ }
96050
+ __name(generateArcPoints2, "generateArcPoints");
95956
96051
  async function roundedRect(parent, node2) {
95957
- const options = {
95958
- rx: 5,
95959
- ry: 5,
95960
- labelPaddingX: (node2?.padding || 0) * 1,
95961
- labelPaddingY: (node2?.padding || 0) * 1
96052
+ const { labelStyles, nodeStyles } = styles2String(node2);
96053
+ node2.labelStyle = labelStyles;
96054
+ const { shapeSvg, bbox } = await labelHelper(parent, node2, getNodeClasses(node2));
96055
+ const labelPaddingX = node2?.padding ?? 0;
96056
+ const labelPaddingY = node2?.padding ?? 0;
96057
+ const w2 = (node2?.width ? node2?.width : bbox.width) + labelPaddingX * 2;
96058
+ const h2 = (node2?.height ? node2?.height : bbox.height) + labelPaddingY * 2;
96059
+ const radius = node2.radius || 5;
96060
+ const taper = node2.taper || 5;
96061
+ const { cssStyles } = node2;
96062
+ const rc = at.svg(shapeSvg);
96063
+ const options = userNodeOverrides(node2, {});
96064
+ if (node2.stroke) {
96065
+ options.stroke = node2.stroke;
96066
+ }
96067
+ if (node2.look !== "handDrawn") {
96068
+ options.roughness = 0;
96069
+ options.fillStyle = "solid";
96070
+ }
96071
+ const points = [
96072
+ // Top edge (left to right)
96073
+ { x: -w2 / 2 + taper, y: -h2 / 2 },
96074
+ // Top-left corner start (1)
96075
+ { x: w2 / 2 - taper, y: -h2 / 2 },
96076
+ // Top-right corner start (2)
96077
+ ...generateArcPoints2(w2 / 2 - taper, -h2 / 2, w2 / 2, -h2 / 2 + taper, radius, radius, true),
96078
+ // Top-left arc (2 to 3)
96079
+ // Right edge (top to bottom)
96080
+ { x: w2 / 2, y: -h2 / 2 + taper },
96081
+ // Top-right taper point (3)
96082
+ { x: w2 / 2, y: h2 / 2 - taper },
96083
+ // Bottom-right taper point (4)
96084
+ ...generateArcPoints2(w2 / 2, h2 / 2 - taper, w2 / 2 - taper, h2 / 2, radius, radius, true),
96085
+ // Top-left arc (4 to 5)
96086
+ // Bottom edge (right to left)
96087
+ { x: w2 / 2 - taper, y: h2 / 2 },
96088
+ // Bottom-right corner start (5)
96089
+ { x: -w2 / 2 + taper, y: h2 / 2 },
96090
+ // Bottom-left corner start (6)
96091
+ ...generateArcPoints2(-w2 / 2 + taper, h2 / 2, -w2 / 2, h2 / 2 - taper, radius, radius, true),
96092
+ // Top-left arc (4 to 5)
96093
+ // Left edge (bottom to top)
96094
+ { x: -w2 / 2, y: h2 / 2 - taper },
96095
+ // Bottom-left taper point (7)
96096
+ { x: -w2 / 2, y: -h2 / 2 + taper },
96097
+ // Top-left taper point (8)
96098
+ ...generateArcPoints2(-w2 / 2, -h2 / 2 + taper, -w2 / 2 + taper, -h2 / 2, radius, radius, true)
96099
+ // Top-left arc (4 to 5)
96100
+ ];
96101
+ const pathData = createPathFromPoints(points);
96102
+ const shapeNode = rc.path(pathData, options);
96103
+ const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
96104
+ polygon.attr("class", "basic label-container outer-path");
96105
+ if (cssStyles && node2.look !== "handDrawn") {
96106
+ polygon.selectChildren("path").attr("style", cssStyles);
96107
+ }
96108
+ if (nodeStyles && node2.look !== "handDrawn") {
96109
+ polygon.selectChildren("path").attr("style", nodeStyles);
96110
+ }
96111
+ updateNodeBounds(node2, polygon);
96112
+ node2.intersect = function(point2) {
96113
+ const pos = intersect_default.polygon(node2, points, point2);
96114
+ return pos;
95962
96115
  };
95963
- return drawRect(parent, node2, options);
96116
+ return shapeSvg;
95964
96117
  }
95965
96118
  __name(roundedRect, "roundedRect");
95966
96119
  async function shadedProcess(parent, node2) {
@@ -96526,7 +96679,7 @@ async function triangle(parent, node2) {
96526
96679
  const { labelStyles, nodeStyles } = styles2String(node2);
96527
96680
  node2.labelStyle = labelStyles;
96528
96681
  const { shapeSvg, bbox, label } = await labelHelper(parent, node2, getNodeClasses(node2));
96529
- const useHtmlLabels = node2.useHtmlLabels || getEffectiveHtmlLabels(getConfig2());
96682
+ const useHtmlLabels = evaluate(getConfig2().flowchart?.htmlLabels);
96530
96683
  const w2 = bbox.width + (node2.padding ?? 0);
96531
96684
  const h2 = w2 + bbox.height;
96532
96685
  const tw = w2 + bbox.height;
@@ -98184,12 +98337,12 @@ var positionNode = /* @__PURE__ */ __name((node2) => {
98184
98337
  }
98185
98338
  return diff;
98186
98339
  }, "positionNode");
98187
- var addEdgeMarkers = /* @__PURE__ */ __name((svgPath, edge, url, id30, diagramType, strokeColor) => {
98340
+ var addEdgeMarkers = /* @__PURE__ */ __name((svgPath, edge, url, id28, diagramType, strokeColor) => {
98188
98341
  if (edge.arrowTypeStart) {
98189
- addEdgeMarker(svgPath, "start", edge.arrowTypeStart, url, id30, diagramType, strokeColor);
98342
+ addEdgeMarker(svgPath, "start", edge.arrowTypeStart, url, id28, diagramType, strokeColor);
98190
98343
  }
98191
98344
  if (edge.arrowTypeEnd) {
98192
- addEdgeMarker(svgPath, "end", edge.arrowTypeEnd, url, id30, diagramType, strokeColor);
98345
+ addEdgeMarker(svgPath, "end", edge.arrowTypeEnd, url, id28, diagramType, strokeColor);
98193
98346
  }
98194
98347
  }, "addEdgeMarkers");
98195
98348
  var arrowTypesMap = {
@@ -98209,7 +98362,7 @@ var arrowTypesMap = {
98209
98362
  requirement_arrow: { type: "requirement_arrow", fill: false },
98210
98363
  requirement_contains: { type: "requirement_contains", fill: false }
98211
98364
  };
98212
- var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url, id30, diagramType, strokeColor) => {
98365
+ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url, id28, diagramType, strokeColor) => {
98213
98366
  const arrowTypeInfo = arrowTypesMap[arrowType];
98214
98367
  if (!arrowTypeInfo) {
98215
98368
  log.warn(`Unknown arrow type: ${arrowType}`);
@@ -98217,7 +98370,7 @@ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url,
98217
98370
  }
98218
98371
  const endMarkerType = arrowTypeInfo.type;
98219
98372
  const suffix = position2 === "start" ? "Start" : "End";
98220
- const originalMarkerId = `${id30}_${diagramType}-${endMarkerType}${suffix}`;
98373
+ const originalMarkerId = `${id28}_${diagramType}-${endMarkerType}${suffix}`;
98221
98374
  if (strokeColor && strokeColor.trim() !== "") {
98222
98375
  const colorId = strokeColor.replace(/[^\dA-Za-z]/g, "_");
98223
98376
  const coloredMarkerId = `${originalMarkerId}_${colorId}`;
@@ -98241,9 +98394,6 @@ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url,
98241
98394
  svgPath.attr(`marker-${position2}`, `url(${url}#${originalMarkerId})`);
98242
98395
  }
98243
98396
  }, "addEdgeMarker");
98244
- var resolveEdgeCurveType = /* @__PURE__ */ __name((edgeCurve) => {
98245
- return typeof edgeCurve === "string" ? edgeCurve : getConfig2()?.flowchart?.curve;
98246
- }, "resolveEdgeCurveType");
98247
98397
  var edgeLabels = /* @__PURE__ */ new Map();
98248
98398
  var terminalLabels = /* @__PURE__ */ new Map();
98249
98399
  var clear = /* @__PURE__ */ __name(() => {
@@ -98251,79 +98401,46 @@ var clear = /* @__PURE__ */ __name(() => {
98251
98401
  terminalLabels.clear();
98252
98402
  }, "clear");
98253
98403
  var getLabelStyles = /* @__PURE__ */ __name((styleArray) => {
98254
- if (!styleArray) {
98255
- return "";
98256
- }
98257
- if (typeof styleArray === "string") {
98258
- return styleArray;
98259
- }
98260
- return styleArray.reduce((acc, style2) => acc + ";" + style2, "");
98404
+ let styles2 = styleArray ? styleArray.reduce((acc, style2) => acc + ";" + style2, "") : "";
98405
+ return styles2;
98261
98406
  }, "getLabelStyles");
98262
98407
  var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
98263
- const config2 = getConfig2();
98264
- let useHtmlLabels = getEffectiveHtmlLabels(config2);
98408
+ let useHtmlLabels = evaluate(getConfig2().flowchart.htmlLabels);
98265
98409
  const { labelStyles } = styles2String(edge);
98266
98410
  edge.labelStyle = labelStyles;
98411
+ const labelElement = await createText(elem, edge.label, {
98412
+ style: edge.labelStyle,
98413
+ useHtmlLabels,
98414
+ addSvgBackground: true,
98415
+ isNode: false
98416
+ });
98417
+ log.info("abc82", edge, edge.labelType);
98267
98418
  const edgeLabel = elem.insert("g").attr("class", "edgeLabel");
98268
98419
  const label = edgeLabel.insert("g").attr("class", "label").attr("data-id", edge.id);
98269
- const isMarkdown = edge.labelType === "markdown";
98270
- const markdownWidth = void 0;
98271
- const labelElement = await createText(
98272
- elem,
98273
- edge.label,
98274
- {
98275
- style: getLabelStyles(edge.labelStyle),
98276
- useHtmlLabels,
98277
- addSvgBackground: true,
98278
- isNode: false,
98279
- markdown: isMarkdown,
98280
- // Plain text edge labels should auto-wrap, markdown edge labels respect markdownAutoWrap config
98281
- width: isMarkdown ? markdownWidth : void 0
98282
- },
98283
- config2
98284
- );
98285
98420
  label.node().appendChild(labelElement);
98286
- log.info("abc82", edge, edge.labelType);
98287
98421
  let bbox = labelElement.getBBox();
98288
- let transformBbox = bbox;
98289
98422
  if (useHtmlLabels) {
98290
98423
  const div = labelElement.children[0];
98291
98424
  const dv = select(labelElement);
98292
98425
  bbox = div.getBoundingClientRect();
98293
- transformBbox = bbox;
98294
98426
  dv.attr("width", bbox.width);
98295
98427
  dv.attr("height", bbox.height);
98296
- } else {
98297
- const textEl = select(labelElement).select("text").node();
98298
- if (textEl && typeof textEl.getBBox === "function") {
98299
- transformBbox = textEl.getBBox();
98300
- }
98301
98428
  }
98302
- label.attr("transform", computeLabelTransform(transformBbox, useHtmlLabels));
98429
+ label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
98303
98430
  edgeLabels.set(edge.id, edgeLabel);
98304
98431
  edge.width = bbox.width;
98305
98432
  edge.height = bbox.height;
98306
98433
  let fo;
98307
98434
  if (edge.startLabelLeft) {
98308
- const startEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
98309
- const inner2 = startEdgeLabelLeft.insert("g").attr("class", "inner");
98310
98435
  const startLabelElement = await createLabel_default(
98311
- inner2,
98312
98436
  edge.startLabelLeft,
98313
- getLabelStyles(edge.labelStyle) || "",
98314
- false,
98315
- false
98437
+ getLabelStyles(edge.labelStyle)
98316
98438
  );
98317
- fo = startLabelElement;
98318
- let slBox = startLabelElement.getBBox();
98319
- if (useHtmlLabels) {
98320
- const div = startLabelElement.children[0];
98321
- const dv = select(startLabelElement);
98322
- slBox = div.getBoundingClientRect();
98323
- dv.attr("width", slBox.width);
98324
- dv.attr("height", slBox.height);
98325
- }
98326
- inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
98439
+ const startEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
98440
+ const inner2 = startEdgeLabelLeft.insert("g").attr("class", "inner");
98441
+ fo = inner2.node().appendChild(startLabelElement);
98442
+ const slBox = startLabelElement.getBBox();
98443
+ inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
98327
98444
  if (!terminalLabels.get(edge.id)) {
98328
98445
  terminalLabels.set(edge.id, {});
98329
98446
  }
@@ -98331,26 +98448,16 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
98331
98448
  setTerminalWidth(fo, edge.startLabelLeft);
98332
98449
  }
98333
98450
  if (edge.startLabelRight) {
98334
- const startEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
98335
- const inner2 = startEdgeLabelRight.insert("g").attr("class", "inner");
98336
98451
  const startLabelElement = await createLabel_default(
98337
- inner2,
98338
98452
  edge.startLabelRight,
98339
- getLabelStyles(edge.labelStyle) || "",
98340
- false,
98341
- false
98453
+ getLabelStyles(edge.labelStyle)
98342
98454
  );
98343
- fo = startLabelElement;
98455
+ const startEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
98456
+ const inner2 = startEdgeLabelRight.insert("g").attr("class", "inner");
98457
+ fo = startEdgeLabelRight.node().appendChild(startLabelElement);
98344
98458
  inner2.node().appendChild(startLabelElement);
98345
- let slBox = startLabelElement.getBBox();
98346
- if (useHtmlLabels) {
98347
- const div = startLabelElement.children[0];
98348
- const dv = select(startLabelElement);
98349
- slBox = div.getBoundingClientRect();
98350
- dv.attr("width", slBox.width);
98351
- dv.attr("height", slBox.height);
98352
- }
98353
- inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
98459
+ const slBox = startLabelElement.getBBox();
98460
+ inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
98354
98461
  if (!terminalLabels.get(edge.id)) {
98355
98462
  terminalLabels.set(edge.id, {});
98356
98463
  }
@@ -98358,25 +98465,12 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
98358
98465
  setTerminalWidth(fo, edge.startLabelRight);
98359
98466
  }
98360
98467
  if (edge.endLabelLeft) {
98468
+ const endLabelElement = await createLabel_default(edge.endLabelLeft, getLabelStyles(edge.labelStyle));
98361
98469
  const endEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
98362
98470
  const inner2 = endEdgeLabelLeft.insert("g").attr("class", "inner");
98363
- const endLabelElement = await createLabel_default(
98364
- inner2,
98365
- edge.endLabelLeft,
98366
- getLabelStyles(edge.labelStyle) || "",
98367
- false,
98368
- false
98369
- );
98370
- fo = endLabelElement;
98371
- let slBox = endLabelElement.getBBox();
98372
- if (useHtmlLabels) {
98373
- const div = endLabelElement.children[0];
98374
- const dv = select(endLabelElement);
98375
- slBox = div.getBoundingClientRect();
98376
- dv.attr("width", slBox.width);
98377
- dv.attr("height", slBox.height);
98378
- }
98379
- inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
98471
+ fo = inner2.node().appendChild(endLabelElement);
98472
+ const slBox = endLabelElement.getBBox();
98473
+ inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
98380
98474
  endEdgeLabelLeft.node().appendChild(endLabelElement);
98381
98475
  if (!terminalLabels.get(edge.id)) {
98382
98476
  terminalLabels.set(edge.id, {});
@@ -98385,25 +98479,12 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
98385
98479
  setTerminalWidth(fo, edge.endLabelLeft);
98386
98480
  }
98387
98481
  if (edge.endLabelRight) {
98482
+ const endLabelElement = await createLabel_default(edge.endLabelRight, getLabelStyles(edge.labelStyle));
98388
98483
  const endEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
98389
98484
  const inner2 = endEdgeLabelRight.insert("g").attr("class", "inner");
98390
- const endLabelElement = await createLabel_default(
98391
- inner2,
98392
- edge.endLabelRight,
98393
- getLabelStyles(edge.labelStyle) || "",
98394
- false,
98395
- false
98396
- );
98397
- fo = endLabelElement;
98398
- let slBox = endLabelElement.getBBox();
98399
- if (useHtmlLabels) {
98400
- const div = endLabelElement.children[0];
98401
- const dv = select(endLabelElement);
98402
- slBox = div.getBoundingClientRect();
98403
- dv.attr("width", slBox.width);
98404
- dv.attr("height", slBox.height);
98405
- }
98406
- inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
98485
+ fo = inner2.node().appendChild(endLabelElement);
98486
+ const slBox = endLabelElement.getBBox();
98487
+ inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
98407
98488
  endEdgeLabelRight.node().appendChild(endLabelElement);
98408
98489
  if (!terminalLabels.get(edge.id)) {
98409
98490
  terminalLabels.set(edge.id, {});
@@ -98414,7 +98495,7 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
98414
98495
  return labelElement;
98415
98496
  }, "insertEdgeLabel");
98416
98497
  function setTerminalWidth(fo, value) {
98417
- if (getEffectiveHtmlLabels(getConfig2()) && fo) {
98498
+ if (getConfig2().flowchart.htmlLabels && fo) {
98418
98499
  fo.style.width = value.length * 9 + "px";
98419
98500
  fo.style.height = "12px";
98420
98501
  }
@@ -98676,7 +98757,7 @@ var generateDashArray = /* @__PURE__ */ __name((len, oValueS, oValueE) => {
98676
98757
  const dashArray = `0 ${oValueS} ${middlePattern} ${oValueE}`;
98677
98758
  return dashArray;
98678
98759
  }, "generateDashArray");
98679
- var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramType, startNode, endNode, id30, skipIntersect = false) {
98760
+ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramType, startNode, endNode, id28, skipIntersect = false) {
98680
98761
  const { handDrawnSeed } = getConfig2();
98681
98762
  let points = edge.points;
98682
98763
  let pointsHasChanged = false;
@@ -98720,12 +98801,10 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
98720
98801
  pointsHasChanged = true;
98721
98802
  }
98722
98803
  let lineData = points.filter((p2) => !Number.isNaN(p2.y));
98723
- const edgeCurveType = resolveEdgeCurveType(edge.curve);
98724
- if (edgeCurveType !== "rounded") {
98725
- lineData = fixCorners(lineData);
98726
- }
98727
- let curve = curveLinear;
98728
- switch (edgeCurveType) {
98804
+ lineData = fixCorners(lineData);
98805
+ let curve = curveBasis;
98806
+ curve = curveLinear;
98807
+ switch (edge.curve) {
98729
98808
  case "linear":
98730
98809
  curve = curveLinear;
98731
98810
  break;
@@ -98762,9 +98841,6 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
98762
98841
  case "stepBefore":
98763
98842
  curve = stepBefore;
98764
98843
  break;
98765
- case "rounded":
98766
- curve = curveLinear;
98767
- break;
98768
98844
  default:
98769
98845
  curve = curveBasis;
98770
98846
  }
@@ -98798,16 +98874,9 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
98798
98874
  strokeClasses += " edge-pattern-solid";
98799
98875
  }
98800
98876
  let svgPath;
98801
- let linePath = edgeCurveType === "rounded" ? generateRoundedPath(applyMarkerOffsetsToPoints(lineData, edge), 5) : lineFunction(lineData);
98877
+ let linePath = edge.curve === "rounded" ? generateRoundedPath(applyMarkerOffsetsToPoints(lineData, edge), 5) : lineFunction(lineData);
98802
98878
  const edgeStyles = Array.isArray(edge.style) ? edge.style : [edge.style];
98803
98879
  let strokeColor = edgeStyles.find((style2) => style2?.startsWith("stroke:"));
98804
- let animationClass = "";
98805
- if (edge.animate) {
98806
- animationClass = "edge-animation-fast";
98807
- }
98808
- if (edge.animation) {
98809
- animationClass = "edge-animation-" + edge.animation;
98810
- }
98811
98880
  let animatedEdge = false;
98812
98881
  if (edge.look === "handDrawn") {
98813
98882
  const rc = at.svg(elem);
@@ -98817,20 +98886,24 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
98817
98886
  seed: handDrawnSeed
98818
98887
  });
98819
98888
  strokeClasses += " transition";
98820
- svgPath = select(svgPathNode).select("path").attr("id", edge.id).attr(
98821
- "class",
98822
- " " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass ? " " + animationClass : "")
98823
- ).attr("style", edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
98889
+ svgPath = select(svgPathNode).select("path").attr("id", edge.id).attr("class", " " + strokeClasses + (edge.classes ? " " + edge.classes : "")).attr("style", edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
98824
98890
  let d2 = svgPath.attr("d");
98825
98891
  svgPath.attr("d", d2);
98826
98892
  elem.node().appendChild(svgPath.node());
98827
98893
  } else {
98828
98894
  const stylesFromClasses = edgeClassStyles.join(";");
98829
98895
  const styles2 = edgeStyles ? edgeStyles.reduce((acc, style2) => acc + style2 + ";", "") : "";
98896
+ let animationClass = "";
98897
+ if (edge.animate) {
98898
+ animationClass = " edge-animation-fast";
98899
+ }
98900
+ if (edge.animation) {
98901
+ animationClass = " edge-animation-" + edge.animation;
98902
+ }
98830
98903
  const pathStyle = (stylesFromClasses ? stylesFromClasses + ";" + styles2 + ";" : styles2) + ";" + (edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
98831
98904
  svgPath = elem.append("path").attr("d", linePath).attr("id", edge.id).attr(
98832
98905
  "class",
98833
- " " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass ? " " + animationClass : "")
98906
+ " " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass ?? "")
98834
98907
  ).attr("style", pathStyle);
98835
98908
  strokeColor = pathStyle.match(/stroke:([^;]+)/)?.[1];
98836
98909
  animatedEdge = edge.animate === true || !!edge.animation || stylesFromClasses.includes("animation");
@@ -98860,7 +98933,7 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
98860
98933
  }
98861
98934
  log.info("arrowTypeStart", edge.arrowTypeStart);
98862
98935
  log.info("arrowTypeEnd", edge.arrowTypeEnd);
98863
- addEdgeMarkers(svgPath, edge, url, id30, diagramType, strokeColor);
98936
+ addEdgeMarkers(svgPath, edge, url, id28, diagramType, strokeColor);
98864
98937
  const midIndex = Math.floor(points.length / 2);
98865
98938
  const point2 = points[midIndex];
98866
98939
  if (!utils_default.isLabelCoordinateInPath(point2, svgPath.attr("d"))) {
@@ -98958,73 +99031,73 @@ function applyMarkerOffsetsToPoints(points, edge) {
98958
99031
  return newPoints;
98959
99032
  }
98960
99033
  __name(applyMarkerOffsetsToPoints, "applyMarkerOffsetsToPoints");
98961
- var insertMarkers = /* @__PURE__ */ __name((elem, markerArray, type2, id30) => {
99034
+ var insertMarkers = /* @__PURE__ */ __name((elem, markerArray, type2, id28) => {
98962
99035
  markerArray.forEach((markerName) => {
98963
- markers[markerName](elem, type2, id30);
99036
+ markers[markerName](elem, type2, id28);
98964
99037
  });
98965
99038
  }, "insertMarkers");
98966
- var extension = /* @__PURE__ */ __name((elem, type2, id30) => {
98967
- log.trace("Making markers for ", id30);
98968
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-extensionStart").attr("class", "marker extension " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z");
98969
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-extensionEnd").attr("class", "marker extension " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
99039
+ var extension = /* @__PURE__ */ __name((elem, type2, id28) => {
99040
+ log.trace("Making markers for ", id28);
99041
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-extensionStart").attr("class", "marker extension " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z");
99042
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-extensionEnd").attr("class", "marker extension " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
98970
99043
  }, "extension");
98971
- var composition = /* @__PURE__ */ __name((elem, type2, id30) => {
98972
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-compositionStart").attr("class", "marker composition " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
98973
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-compositionEnd").attr("class", "marker composition " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
99044
+ var composition = /* @__PURE__ */ __name((elem, type2, id28) => {
99045
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-compositionStart").attr("class", "marker composition " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
99046
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-compositionEnd").attr("class", "marker composition " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
98974
99047
  }, "composition");
98975
- var aggregation = /* @__PURE__ */ __name((elem, type2, id30) => {
98976
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-aggregationStart").attr("class", "marker aggregation " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
98977
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-aggregationEnd").attr("class", "marker aggregation " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
99048
+ var aggregation = /* @__PURE__ */ __name((elem, type2, id28) => {
99049
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-aggregationStart").attr("class", "marker aggregation " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
99050
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-aggregationEnd").attr("class", "marker aggregation " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
98978
99051
  }, "aggregation");
98979
- var dependency = /* @__PURE__ */ __name((elem, type2, id30) => {
98980
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-dependencyStart").attr("class", "marker dependency " + type2).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z");
98981
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-dependencyEnd").attr("class", "marker dependency " + type2).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
99052
+ var dependency = /* @__PURE__ */ __name((elem, type2, id28) => {
99053
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-dependencyStart").attr("class", "marker dependency " + type2).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z");
99054
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-dependencyEnd").attr("class", "marker dependency " + type2).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
98982
99055
  }, "dependency");
98983
- var lollipop = /* @__PURE__ */ __name((elem, type2, id30) => {
98984
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-lollipopStart").attr("class", "marker lollipop " + type2).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
98985
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-lollipopEnd").attr("class", "marker lollipop " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
99056
+ var lollipop = /* @__PURE__ */ __name((elem, type2, id28) => {
99057
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-lollipopStart").attr("class", "marker lollipop " + type2).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
99058
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-lollipopEnd").attr("class", "marker lollipop " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
98986
99059
  }, "lollipop");
98987
- var point = /* @__PURE__ */ __name((elem, type2, id30) => {
98988
- elem.append("marker").attr("id", id30 + "_" + type2 + "-pointEnd").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
98989
- elem.append("marker").attr("id", id30 + "_" + type2 + "-pointStart").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
99060
+ var point = /* @__PURE__ */ __name((elem, type2, id28) => {
99061
+ elem.append("marker").attr("id", id28 + "_" + type2 + "-pointEnd").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
99062
+ elem.append("marker").attr("id", id28 + "_" + type2 + "-pointStart").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
98990
99063
  }, "point");
98991
- var circle = /* @__PURE__ */ __name((elem, type2, id30) => {
98992
- elem.append("marker").attr("id", id30 + "_" + type2 + "-circleEnd").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
98993
- elem.append("marker").attr("id", id30 + "_" + type2 + "-circleStart").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
99064
+ var circle = /* @__PURE__ */ __name((elem, type2, id28) => {
99065
+ elem.append("marker").attr("id", id28 + "_" + type2 + "-circleEnd").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
99066
+ elem.append("marker").attr("id", id28 + "_" + type2 + "-circleStart").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
98994
99067
  }, "circle");
98995
- var cross = /* @__PURE__ */ __name((elem, type2, id30) => {
98996
- elem.append("marker").attr("id", id30 + "_" + type2 + "-crossEnd").attr("class", "marker cross " + type2).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
98997
- elem.append("marker").attr("id", id30 + "_" + type2 + "-crossStart").attr("class", "marker cross " + type2).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
99068
+ var cross = /* @__PURE__ */ __name((elem, type2, id28) => {
99069
+ elem.append("marker").attr("id", id28 + "_" + type2 + "-crossEnd").attr("class", "marker cross " + type2).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
99070
+ elem.append("marker").attr("id", id28 + "_" + type2 + "-crossStart").attr("class", "marker cross " + type2).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
98998
99071
  }, "cross");
98999
- var barb = /* @__PURE__ */ __name((elem, type2, id30) => {
99000
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
99072
+ var barb = /* @__PURE__ */ __name((elem, type2, id28) => {
99073
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
99001
99074
  }, "barb");
99002
- var only_one = /* @__PURE__ */ __name((elem, type2, id30) => {
99003
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-onlyOneStart").attr("class", "marker onlyOne " + type2).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18");
99004
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-onlyOneEnd").attr("class", "marker onlyOne " + type2).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
99075
+ var only_one = /* @__PURE__ */ __name((elem, type2, id28) => {
99076
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-onlyOneStart").attr("class", "marker onlyOne " + type2).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18");
99077
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-onlyOneEnd").attr("class", "marker onlyOne " + type2).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
99005
99078
  }, "only_one");
99006
- var zero_or_one = /* @__PURE__ */ __name((elem, type2, id30) => {
99007
- const startMarker = elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + type2).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
99079
+ var zero_or_one = /* @__PURE__ */ __name((elem, type2, id28) => {
99080
+ const startMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + type2).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
99008
99081
  startMarker.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6);
99009
99082
  startMarker.append("path").attr("d", "M9,0 L9,18");
99010
- const endMarker = elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + type2).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
99083
+ const endMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + type2).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
99011
99084
  endMarker.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6);
99012
99085
  endMarker.append("path").attr("d", "M21,0 L21,18");
99013
99086
  }, "zero_or_one");
99014
- var one_or_more = /* @__PURE__ */ __name((elem, type2, id30) => {
99015
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-oneOrMoreStart").attr("class", "marker oneOrMore " + type2).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27");
99016
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + type2).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
99087
+ var one_or_more = /* @__PURE__ */ __name((elem, type2, id28) => {
99088
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-oneOrMoreStart").attr("class", "marker oneOrMore " + type2).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27");
99089
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + type2).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
99017
99090
  }, "one_or_more");
99018
- var zero_or_more = /* @__PURE__ */ __name((elem, type2, id30) => {
99019
- const startMarker = elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + type2).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
99091
+ var zero_or_more = /* @__PURE__ */ __name((elem, type2, id28) => {
99092
+ const startMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + type2).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
99020
99093
  startMarker.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6);
99021
99094
  startMarker.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
99022
- const endMarker = elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + type2).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
99095
+ const endMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + type2).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
99023
99096
  endMarker.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6);
99024
99097
  endMarker.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
99025
99098
  }, "zero_or_more");
99026
- var requirement_arrow = /* @__PURE__ */ __name((elem, type2, id30) => {
99027
- elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr(
99099
+ var requirement_arrow = /* @__PURE__ */ __name((elem, type2, id28) => {
99100
+ elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr(
99028
99101
  "d",
99029
99102
  `M0,0
99030
99103
  L20,10
@@ -99032,8 +99105,8 @@ var requirement_arrow = /* @__PURE__ */ __name((elem, type2, id30) => {
99032
99105
  L0,20`
99033
99106
  );
99034
99107
  }, "requirement_arrow");
99035
- var requirement_contains = /* @__PURE__ */ __name((elem, type2, id30) => {
99036
- const containsNode = elem.append("defs").append("marker").attr("id", id30 + "_" + type2 + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
99108
+ var requirement_contains = /* @__PURE__ */ __name((elem, type2, id28) => {
99109
+ const containsNode = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
99037
99110
  containsNode.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none");
99038
99111
  containsNode.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10);
99039
99112
  containsNode.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
@@ -99071,20 +99144,20 @@ var internalHelpers = {
99071
99144
  };
99072
99145
  var layoutAlgorithms = {};
99073
99146
  var registerLayoutLoaders = /* @__PURE__ */ __name((loaders) => {
99074
- for (const loader30 of loaders) {
99075
- layoutAlgorithms[loader30.name] = loader30;
99147
+ for (const loader28 of loaders) {
99148
+ layoutAlgorithms[loader28.name] = loader28;
99076
99149
  }
99077
99150
  }, "registerLayoutLoaders");
99078
99151
  var registerDefaultLayoutLoaders = /* @__PURE__ */ __name(() => {
99079
99152
  registerLayoutLoaders([
99080
99153
  {
99081
99154
  name: "dagre",
99082
- loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./dagre-KLK3FWXG-CyJYNIbm.js"), true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0), "loader")
99155
+ loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./dagre-6UL2VRFP-C1awWpU3.js"), true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0), "loader")
99083
99156
  },
99084
99157
  ...[
99085
99158
  {
99086
99159
  name: "cose-bilkent",
99087
- loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./cose-bilkent-S5V4N54A-B-nj0o74.js"), true ? __vite__mapDeps([6,7]) : void 0), "loader")
99160
+ loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./cose-bilkent-S5V4N54A-uHPLSeKv.js"), true ? __vite__mapDeps([6,7]) : void 0), "loader")
99088
99161
  }
99089
99162
  ]
99090
99163
  ]);
@@ -99524,7 +99597,7 @@ var detector = /* @__PURE__ */ __name((txt) => {
99524
99597
  }, "detector");
99525
99598
  var loader = /* @__PURE__ */ __name(async () => {
99526
99599
  const { diagram: diagram2 } = await __vitePreload(async () => {
99527
- const { diagram: diagram22 } = await import("./c4Diagram-IC4MRINW-BSLyPyoU.js");
99600
+ const { diagram: diagram22 } = await import("./c4Diagram-YG6GDRKO-B4RPsw5H.js");
99528
99601
  return { diagram: diagram22 };
99529
99602
  }, true ? __vite__mapDeps([8,9]) : void 0);
99530
99603
  return { id: id$1, diagram: diagram2 };
@@ -99544,9 +99617,9 @@ var detector2 = /* @__PURE__ */ __name((txt, config2) => {
99544
99617
  }, "detector");
99545
99618
  var loader2 = /* @__PURE__ */ __name(async () => {
99546
99619
  const { diagram: diagram2 } = await __vitePreload(async () => {
99547
- const { diagram: diagram22 } = await import("./flowDiagram-PKNHOUZH-24nNqQyo.js");
99620
+ const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B1wDG_l5.js");
99548
99621
  return { diagram: diagram22 };
99549
- }, true ? __vite__mapDeps([10,11,9,12,13,14]) : void 0);
99622
+ }, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
99550
99623
  return { id: id2, diagram: diagram2 };
99551
99624
  }, "loader");
99552
99625
  var plugin2 = {
@@ -99570,9 +99643,9 @@ var detector3 = /* @__PURE__ */ __name((txt, config2) => {
99570
99643
  }, "detector");
99571
99644
  var loader3 = /* @__PURE__ */ __name(async () => {
99572
99645
  const { diagram: diagram2 } = await __vitePreload(async () => {
99573
- const { diagram: diagram22 } = await import("./flowDiagram-PKNHOUZH-24nNqQyo.js");
99646
+ const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B1wDG_l5.js");
99574
99647
  return { diagram: diagram22 };
99575
- }, true ? __vite__mapDeps([10,11,9,12,13,14]) : void 0);
99648
+ }, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
99576
99649
  return { id: id3, diagram: diagram2 };
99577
99650
  }, "loader");
99578
99651
  var plugin3 = {
@@ -99587,7 +99660,7 @@ var detector4 = /* @__PURE__ */ __name((txt) => {
99587
99660
  }, "detector");
99588
99661
  var loader4 = /* @__PURE__ */ __name(async () => {
99589
99662
  const { diagram: diagram2 } = await __vitePreload(async () => {
99590
- const { diagram: diagram22 } = await import("./erDiagram-INFDFZHY-C1HaXN6E.js");
99663
+ const { diagram: diagram22 } = await import("./erDiagram-Q2GNP2WA-Ds3qhwkG.js");
99591
99664
  return { diagram: diagram22 };
99592
99665
  }, true ? __vite__mapDeps([15,12,13,14]) : void 0);
99593
99666
  return { id: id4, diagram: diagram2 };
@@ -99604,7 +99677,7 @@ var detector5 = /* @__PURE__ */ __name((txt) => {
99604
99677
  }, "detector");
99605
99678
  var loader5 = /* @__PURE__ */ __name(async () => {
99606
99679
  const { diagram: diagram2 } = await __vitePreload(async () => {
99607
- const { diagram: diagram22 } = await import("./gitGraphDiagram-K3NZZRJ6-D7_L-p_Y.js");
99680
+ const { diagram: diagram22 } = await import("./gitGraphDiagram-V2S2FVAM-B2Tw773z.js");
99608
99681
  return { diagram: diagram22 };
99609
99682
  }, true ? __vite__mapDeps([16,17,18,19,2,4,5]) : void 0);
99610
99683
  return { id: id5, diagram: diagram2 };
@@ -99621,7 +99694,7 @@ var detector6 = /* @__PURE__ */ __name((txt) => {
99621
99694
  }, "detector");
99622
99695
  var loader6 = /* @__PURE__ */ __name(async () => {
99623
99696
  const { diagram: diagram2 } = await __vitePreload(async () => {
99624
- const { diagram: diagram22 } = await import("./ganttDiagram-A5KZAMGK-BWPOFaLV.js");
99697
+ const { diagram: diagram22 } = await import("./ganttDiagram-JELNMOA3-BwuYt2bO.js");
99625
99698
  return { diagram: diagram22 };
99626
99699
  }, true ? __vite__mapDeps([20,21,22,23]) : void 0);
99627
99700
  return { id: id6, diagram: diagram2 };
@@ -99638,7 +99711,7 @@ var detector7 = /* @__PURE__ */ __name((txt) => {
99638
99711
  }, "detector");
99639
99712
  var loader7 = /* @__PURE__ */ __name(async () => {
99640
99713
  const { diagram: diagram2 } = await __vitePreload(async () => {
99641
- const { diagram: diagram22 } = await import("./infoDiagram-LFFYTUFH-CvaBM5j6.js");
99714
+ const { diagram: diagram22 } = await import("./infoDiagram-HS3SLOUP-C9_JKYhm.js");
99642
99715
  return { diagram: diagram22 };
99643
99716
  }, true ? __vite__mapDeps([24,19,2,4,5]) : void 0);
99644
99717
  return { id: id7, diagram: diagram2 };
@@ -99654,7 +99727,7 @@ var detector8 = /* @__PURE__ */ __name((txt) => {
99654
99727
  }, "detector");
99655
99728
  var loader8 = /* @__PURE__ */ __name(async () => {
99656
99729
  const { diagram: diagram2 } = await __vitePreload(async () => {
99657
- const { diagram: diagram22 } = await import("./pieDiagram-SKSYHLDU-DsS_4dTB.js");
99730
+ const { diagram: diagram22 } = await import("./pieDiagram-ADFJNKIX--QWeT2vZ.js");
99658
99731
  return { diagram: diagram22 };
99659
99732
  }, true ? __vite__mapDeps([25,17,19,2,4,5,26,27,22]) : void 0);
99660
99733
  return { id: id8, diagram: diagram2 };
@@ -99670,7 +99743,7 @@ var detector9 = /* @__PURE__ */ __name((txt) => {
99670
99743
  }, "detector");
99671
99744
  var loader9 = /* @__PURE__ */ __name(async () => {
99672
99745
  const { diagram: diagram2 } = await __vitePreload(async () => {
99673
- const { diagram: diagram22 } = await import("./quadrantDiagram-337W2JSQ-DoM9PEq-.js");
99746
+ const { diagram: diagram22 } = await import("./quadrantDiagram-AYHSOK5B-BpqtmN3r.js");
99674
99747
  return { diagram: diagram22 };
99675
99748
  }, true ? __vite__mapDeps([28,21,22,23]) : void 0);
99676
99749
  return { id: id9, diagram: diagram2 };
@@ -99687,7 +99760,7 @@ var detector10 = /* @__PURE__ */ __name((txt) => {
99687
99760
  }, "detector");
99688
99761
  var loader10 = /* @__PURE__ */ __name(async () => {
99689
99762
  const { diagram: diagram2 } = await __vitePreload(async () => {
99690
- const { diagram: diagram22 } = await import("./xychartDiagram-JWTSCODW-BKa1DxVq.js");
99763
+ const { diagram: diagram22 } = await import("./xychartDiagram-PRI3JC2R-CVqSvO_S.js");
99691
99764
  return { diagram: diagram22 };
99692
99765
  }, true ? __vite__mapDeps([29,22,27,21,23]) : void 0);
99693
99766
  return { id: id10, diagram: diagram2 };
@@ -99704,7 +99777,7 @@ var detector11 = /* @__PURE__ */ __name((txt) => {
99704
99777
  }, "detector");
99705
99778
  var loader11 = /* @__PURE__ */ __name(async () => {
99706
99779
  const { diagram: diagram2 } = await __vitePreload(async () => {
99707
- const { diagram: diagram22 } = await import("./requirementDiagram-Z7DCOOCP-Bn3lYMMI.js");
99780
+ const { diagram: diagram22 } = await import("./requirementDiagram-UZGBJVZJ-CIXjIi4F.js");
99708
99781
  return { diagram: diagram22 };
99709
99782
  }, true ? __vite__mapDeps([30,12,13]) : void 0);
99710
99783
  return { id: id11, diagram: diagram2 };
@@ -99721,7 +99794,7 @@ var detector12 = /* @__PURE__ */ __name((txt) => {
99721
99794
  }, "detector");
99722
99795
  var loader12 = /* @__PURE__ */ __name(async () => {
99723
99796
  const { diagram: diagram2 } = await __vitePreload(async () => {
99724
- const { diagram: diagram22 } = await import("./sequenceDiagram-2WXFIKYE-DXqjQjf6.js");
99797
+ const { diagram: diagram22 } = await import("./sequenceDiagram-WL72ISMW-BpDK1ROT.js");
99725
99798
  return { diagram: diagram22 };
99726
99799
  }, true ? __vite__mapDeps([31,9,18]) : void 0);
99727
99800
  return { id: id12, diagram: diagram2 };
@@ -99741,9 +99814,9 @@ var detector13 = /* @__PURE__ */ __name((txt, config2) => {
99741
99814
  }, "detector");
99742
99815
  var loader13 = /* @__PURE__ */ __name(async () => {
99743
99816
  const { diagram: diagram2 } = await __vitePreload(async () => {
99744
- const { diagram: diagram22 } = await import("./classDiagram-VBA2DB6C-Dc3ncaD0.js");
99817
+ const { diagram: diagram22 } = await import("./classDiagram-2ON5EDUG-CNF8ZohD.js");
99745
99818
  return { diagram: diagram22 };
99746
- }, true ? __vite__mapDeps([32,33,11,9,12,13]) : void 0);
99819
+ }, true ? __vite__mapDeps([32,33,11,12,13]) : void 0);
99747
99820
  return { id: id13, diagram: diagram2 };
99748
99821
  }, "loader");
99749
99822
  var plugin11 = {
@@ -99761,9 +99834,9 @@ var detector14 = /* @__PURE__ */ __name((txt, config2) => {
99761
99834
  }, "detector");
99762
99835
  var loader14 = /* @__PURE__ */ __name(async () => {
99763
99836
  const { diagram: diagram2 } = await __vitePreload(async () => {
99764
- const { diagram: diagram22 } = await import("./classDiagram-v2-RAHNMMFH-Dc3ncaD0.js");
99837
+ const { diagram: diagram22 } = await import("./classDiagram-v2-WZHVMYZB-CNF8ZohD.js");
99765
99838
  return { diagram: diagram22 };
99766
- }, true ? __vite__mapDeps([34,33,11,9,12,13]) : void 0);
99839
+ }, true ? __vite__mapDeps([34,33,11,12,13]) : void 0);
99767
99840
  return { id: id14, diagram: diagram2 };
99768
99841
  }, "loader");
99769
99842
  var plugin12 = {
@@ -99781,7 +99854,7 @@ var detector15 = /* @__PURE__ */ __name((txt, config2) => {
99781
99854
  }, "detector");
99782
99855
  var loader15 = /* @__PURE__ */ __name(async () => {
99783
99856
  const { diagram: diagram2 } = await __vitePreload(async () => {
99784
- const { diagram: diagram22 } = await import("./stateDiagram-RAJIS63D-DQcTPKWP.js");
99857
+ const { diagram: diagram22 } = await import("./stateDiagram-FKZM4ZOC-BoKGfmHf.js");
99785
99858
  return { diagram: diagram22 };
99786
99859
  }, true ? __vite__mapDeps([35,36,12,13,1,2,3,4]) : void 0);
99787
99860
  return { id: id15, diagram: diagram2 };
@@ -99804,7 +99877,7 @@ var detector16 = /* @__PURE__ */ __name((txt, config2) => {
99804
99877
  }, "detector");
99805
99878
  var loader16 = /* @__PURE__ */ __name(async () => {
99806
99879
  const { diagram: diagram2 } = await __vitePreload(async () => {
99807
- const { diagram: diagram22 } = await import("./stateDiagram-v2-FVOUBMTO-DHmxRVJn.js");
99880
+ const { diagram: diagram22 } = await import("./stateDiagram-v2-4FDKWEC3--haXC2JK.js");
99808
99881
  return { diagram: diagram22 };
99809
99882
  }, true ? __vite__mapDeps([37,36,12,13]) : void 0);
99810
99883
  return { id: id16, diagram: diagram2 };
@@ -99821,9 +99894,9 @@ var detector17 = /* @__PURE__ */ __name((txt) => {
99821
99894
  }, "detector");
99822
99895
  var loader17 = /* @__PURE__ */ __name(async () => {
99823
99896
  const { diagram: diagram2 } = await __vitePreload(async () => {
99824
- const { diagram: diagram22 } = await import("./journeyDiagram-4ABVD52K-TQR6_teO.js");
99897
+ const { diagram: diagram22 } = await import("./journeyDiagram-XKPGCS4Q-BhZggYOL.js");
99825
99898
  return { diagram: diagram22 };
99826
- }, true ? __vite__mapDeps([38,11,9,26]) : void 0);
99899
+ }, true ? __vite__mapDeps([38,9,11,26]) : void 0);
99827
99900
  return { id: id17, diagram: diagram2 };
99828
99901
  }, "loader");
99829
99902
  var plugin15 = {
@@ -99832,9 +99905,9 @@ var plugin15 = {
99832
99905
  loader: loader17
99833
99906
  };
99834
99907
  var journeyDetector_default = plugin15;
99835
- var draw = /* @__PURE__ */ __name((_text, id30, version2) => {
99908
+ var draw = /* @__PURE__ */ __name((_text, id28, version2) => {
99836
99909
  log.debug("rendering svg for syntax error\n");
99837
- const svg2 = selectSvgElement(id30);
99910
+ const svg2 = selectSvgElement(id28);
99838
99911
  const g2 = svg2.append("g");
99839
99912
  svg2.attr("viewBox", "0 0 2412 512");
99840
99913
  configureSvgSize(svg2, 100, 512, true);
@@ -99891,9 +99964,9 @@ var detector18 = /* @__PURE__ */ __name((txt, config2 = {}) => {
99891
99964
  }, "detector");
99892
99965
  var loader18 = /* @__PURE__ */ __name(async () => {
99893
99966
  const { diagram: diagram2 } = await __vitePreload(async () => {
99894
- const { diagram: diagram22 } = await import("./flowDiagram-PKNHOUZH-24nNqQyo.js");
99967
+ const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B1wDG_l5.js");
99895
99968
  return { diagram: diagram22 };
99896
- }, true ? __vite__mapDeps([10,11,9,12,13,14]) : void 0);
99969
+ }, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
99897
99970
  return { id: id18, diagram: diagram2 };
99898
99971
  }, "loader");
99899
99972
  var plugin16 = {
@@ -99908,7 +99981,7 @@ var detector19 = /* @__PURE__ */ __name((txt) => {
99908
99981
  }, "detector");
99909
99982
  var loader19 = /* @__PURE__ */ __name(async () => {
99910
99983
  const { diagram: diagram2 } = await __vitePreload(async () => {
99911
- const { diagram: diagram22 } = await import("./timeline-definition-YZTLITO2-BlovQQ4B.js");
99984
+ const { diagram: diagram22 } = await import("./timeline-definition-IT6M3QCI-BmSg3Hjf.js");
99912
99985
  return { diagram: diagram22 };
99913
99986
  }, true ? __vite__mapDeps([39,26]) : void 0);
99914
99987
  return { id: id19, diagram: diagram2 };
@@ -99925,7 +99998,7 @@ var detector20 = /* @__PURE__ */ __name((txt) => {
99925
99998
  }, "detector");
99926
99999
  var loader20 = /* @__PURE__ */ __name(async () => {
99927
100000
  const { diagram: diagram2 } = await __vitePreload(async () => {
99928
- const { diagram: diagram22 } = await import("./mindmap-definition-YRQLILUH-P70BMIHI.js");
100001
+ const { diagram: diagram22 } = await import("./mindmap-definition-VGOIOE7T-BR7oDKBR.js");
99929
100002
  return { diagram: diagram22 };
99930
100003
  }, true ? __vite__mapDeps([40,12,13]) : void 0);
99931
100004
  return { id: id20, diagram: diagram2 };
@@ -99942,7 +100015,7 @@ var detector21 = /* @__PURE__ */ __name((txt) => {
99942
100015
  }, "detector");
99943
100016
  var loader21 = /* @__PURE__ */ __name(async () => {
99944
100017
  const { diagram: diagram2 } = await __vitePreload(async () => {
99945
- const { diagram: diagram22 } = await import("./kanban-definition-K7BYSVSG-B-BOuC-U.js");
100018
+ const { diagram: diagram22 } = await import("./kanban-definition-3W4ZIXB7-B-R2Xm4Y.js");
99946
100019
  return { diagram: diagram22 };
99947
100020
  }, true ? __vite__mapDeps([41,11]) : void 0);
99948
100021
  return { id: id21, diagram: diagram2 };
@@ -99959,7 +100032,7 @@ var detector22 = /* @__PURE__ */ __name((txt) => {
99959
100032
  }, "detector");
99960
100033
  var loader22 = /* @__PURE__ */ __name(async () => {
99961
100034
  const { diagram: diagram2 } = await __vitePreload(async () => {
99962
- const { diagram: diagram22 } = await import("./sankeyDiagram-WA2Y5GQK-97kCegRT.js");
100035
+ const { diagram: diagram22 } = await import("./sankeyDiagram-TZEHDZUN-DJIt7SRz.js");
99963
100036
  return { diagram: diagram22 };
99964
100037
  }, true ? __vite__mapDeps([42,27,22]) : void 0);
99965
100038
  return { id: id22, diagram: diagram2 };
@@ -99976,7 +100049,7 @@ var detector23 = /* @__PURE__ */ __name((txt) => {
99976
100049
  }, "detector");
99977
100050
  var loader23 = /* @__PURE__ */ __name(async () => {
99978
100051
  const { diagram: diagram2 } = await __vitePreload(async () => {
99979
- const { diagram: diagram22 } = await import("./diagram-P4PSJMXO-BQDZHb0a.js");
100052
+ const { diagram: diagram22 } = await import("./diagram-S2PKOQOG-CGjGalBu.js");
99980
100053
  return { diagram: diagram22 };
99981
100054
  }, true ? __vite__mapDeps([43,17,19,2,4,5]) : void 0);
99982
100055
  return { id: id23, diagram: diagram2 };
@@ -99992,7 +100065,7 @@ var detector24 = /* @__PURE__ */ __name((txt) => {
99992
100065
  }, "detector");
99993
100066
  var loader24 = /* @__PURE__ */ __name(async () => {
99994
100067
  const { diagram: diagram2 } = await __vitePreload(async () => {
99995
- const { diagram: diagram22 } = await import("./diagram-IFDJBPK2-DMdygRl0.js");
100068
+ const { diagram: diagram22 } = await import("./diagram-QEK2KX5R-Bvlbx8Jp.js");
99996
100069
  return { diagram: diagram22 };
99997
100070
  }, true ? __vite__mapDeps([44,17,19,2,4,5]) : void 0);
99998
100071
  return { id: id24, diagram: diagram2 };
@@ -100008,7 +100081,7 @@ var detector25 = /* @__PURE__ */ __name((txt) => {
100008
100081
  }, "detector");
100009
100082
  var loader25 = /* @__PURE__ */ __name(async () => {
100010
100083
  const { diagram: diagram2 } = await __vitePreload(async () => {
100011
- const { diagram: diagram22 } = await import("./blockDiagram-WCTKOSBZ-fE5MBTEU.js");
100084
+ const { diagram: diagram22 } = await import("./blockDiagram-VD42YOAC-TTufCfiE.js");
100012
100085
  return { diagram: diagram22 };
100013
100086
  }, true ? __vite__mapDeps([45,11,5,2,1,14]) : void 0);
100014
100087
  return { id: id25, diagram: diagram2 };
@@ -100025,7 +100098,7 @@ var detector26 = /* @__PURE__ */ __name((txt) => {
100025
100098
  }, "detector");
100026
100099
  var loader26 = /* @__PURE__ */ __name(async () => {
100027
100100
  const { diagram: diagram2 } = await __vitePreload(async () => {
100028
- const { diagram: diagram22 } = await import("./architectureDiagram-2XIMDMQ5-CK99gE_D.js");
100101
+ const { diagram: diagram22 } = await import("./architectureDiagram-VXUJARFQ-DpryGqjy.js");
100029
100102
  return { diagram: diagram22 };
100030
100103
  }, true ? __vite__mapDeps([46,17,19,2,4,5,7]) : void 0);
100031
100104
  return { id: id26, diagram: diagram2 };
@@ -100036,55 +100109,22 @@ var architecture = {
100036
100109
  loader: loader26
100037
100110
  };
100038
100111
  var architectureDetector_default = architecture;
100039
- var id27 = "ishikawa";
100112
+ var id27 = "treemap";
100040
100113
  var detector27 = /* @__PURE__ */ __name((txt) => {
100041
- return /^\s*ishikawa(-beta)?\b/i.test(txt);
100114
+ return /^\s*treemap/.test(txt);
100042
100115
  }, "detector");
100043
100116
  var loader27 = /* @__PURE__ */ __name(async () => {
100044
100117
  const { diagram: diagram2 } = await __vitePreload(async () => {
100045
- const { diagram: diagram22 } = await import("./ishikawaDiagram-PHBUUO56-DB1l2Uue.js");
100118
+ const { diagram: diagram22 } = await import("./diagram-PSM6KHXK-Bf69p76M.js");
100046
100119
  return { diagram: diagram22 };
100047
- }, true ? [] : void 0);
100120
+ }, true ? __vite__mapDeps([47,13,17,19,2,4,5,23,27,22]) : void 0);
100048
100121
  return { id: id27, diagram: diagram2 };
100049
100122
  }, "loader");
100050
- var ishikawa = {
100123
+ var treemap = {
100051
100124
  id: id27,
100052
100125
  detector: detector27,
100053
100126
  loader: loader27
100054
100127
  };
100055
- var id28 = "venn";
100056
- var detector28 = /* @__PURE__ */ __name((txt) => {
100057
- return /^\s*venn-beta/.test(txt);
100058
- }, "detector");
100059
- var loader28 = /* @__PURE__ */ __name(async () => {
100060
- const { diagram: diagram2 } = await __vitePreload(async () => {
100061
- const { diagram: diagram22 } = await import("./vennDiagram-LZ73GAT5-Do1jprrz.js");
100062
- return { diagram: diagram22 };
100063
- }, true ? [] : void 0);
100064
- return { id: id28, diagram: diagram2 };
100065
- }, "loader");
100066
- var plugin22 = {
100067
- id: id28,
100068
- detector: detector28,
100069
- loader: loader28
100070
- };
100071
- var vennDetector_default = plugin22;
100072
- var id29 = "treemap";
100073
- var detector29 = /* @__PURE__ */ __name((txt) => {
100074
- return /^\s*treemap/.test(txt);
100075
- }, "detector");
100076
- var loader29 = /* @__PURE__ */ __name(async () => {
100077
- const { diagram: diagram2 } = await __vitePreload(async () => {
100078
- const { diagram: diagram22 } = await import("./diagram-E7M64L7V-C8eweQ7b.js");
100079
- return { diagram: diagram22 };
100080
- }, true ? __vite__mapDeps([47,13,17,19,2,4,5,23,27,22]) : void 0);
100081
- return { id: id29, diagram: diagram2 };
100082
- }, "loader");
100083
- var treemap = {
100084
- id: id29,
100085
- detector: detector29,
100086
- loader: loader29
100087
- };
100088
100128
  var hasLoadedDiagrams = false;
100089
100129
  var addDiagrams = /* @__PURE__ */ __name(() => {
100090
100130
  if (hasLoadedDiagrams) {
@@ -100149,24 +100189,22 @@ var addDiagrams = /* @__PURE__ */ __name(() => {
100149
100189
  xychartDetector_default,
100150
100190
  blockDetector_default,
100151
100191
  radar,
100152
- ishikawa,
100153
- treemap,
100154
- vennDetector_default
100192
+ treemap
100155
100193
  );
100156
100194
  }, "addDiagrams");
100157
100195
  var loadRegisteredDiagrams = /* @__PURE__ */ __name(async () => {
100158
100196
  log.debug(`Loading registered diagrams`);
100159
100197
  const results = await Promise.allSettled(
100160
- Object.entries(detectors).map(async ([key, { detector: detector30, loader: loader30 }]) => {
100161
- if (!loader30) {
100198
+ Object.entries(detectors).map(async ([key, { detector: detector28, loader: loader28 }]) => {
100199
+ if (!loader28) {
100162
100200
  return;
100163
100201
  }
100164
100202
  try {
100165
100203
  getDiagram(key);
100166
100204
  } catch {
100167
100205
  try {
100168
- const { diagram: diagram2, id: id30 } = await loader30();
100169
- registerDiagram(id30, diagram2, detector30);
100206
+ const { diagram: diagram2, id: id28 } = await loader28();
100207
+ registerDiagram(id28, diagram2, detector28);
100170
100208
  } catch (err) {
100171
100209
  log.error(`Failed to load external diagram with key ${key}. Removing from detectors.`);
100172
100210
  delete detectors[key];
@@ -100223,12 +100261,12 @@ var Diagram = (_j = class {
100223
100261
  try {
100224
100262
  getDiagram(type2);
100225
100263
  } catch {
100226
- const loader30 = getDiagramLoader(type2);
100227
- if (!loader30) {
100264
+ const loader28 = getDiagramLoader(type2);
100265
+ if (!loader28) {
100228
100266
  throw new UnknownDiagramError(`Diagram ${type2} not found.`);
100229
100267
  }
100230
- const { id: id30, diagram: diagram2 } = await loader30();
100231
- registerDiagram(id30, diagram2);
100268
+ const { id: id28, diagram: diagram2 } = await loader28();
100269
+ registerDiagram(id28, diagram2);
100232
100270
  }
100233
100271
  const { db, parser, renderer: renderer2, init: init2 } = getDiagram(type2);
100234
100272
  if (parser.parser) {
@@ -100242,8 +100280,8 @@ var Diagram = (_j = class {
100242
100280
  await parser.parse(text2);
100243
100281
  return new _j(type2, text2, db, parser, renderer2);
100244
100282
  }
100245
- async render(id30, version2) {
100246
- await this.renderer.draw(this.text, id30, version2, this);
100283
+ async render(id28, version2) {
100284
+ await this.renderer.draw(this.text, id28, version2, this);
100247
100285
  }
100248
100286
  getParser() {
100249
100287
  return this.parser;
@@ -100396,7 +100434,7 @@ ${config2.themeCSS}`;
100396
100434
  :root { --mermaid-alt-font-family: ${config2.altFontFamily}}`;
100397
100435
  }
100398
100436
  if (classDefs instanceof Map) {
100399
- const htmlLabels = getEffectiveHtmlLabels(config2);
100437
+ const htmlLabels = config2.htmlLabels ?? config2.flowchart?.htmlLabels;
100400
100438
  const cssHtmlElements = ["> *", "span"];
100401
100439
  const cssShapeElements = ["rect", "polygon", "ellipse", "circle", "path"];
100402
100440
  const cssElements = htmlLabels ? cssHtmlElements : cssShapeElements;
@@ -100441,13 +100479,13 @@ var putIntoIFrame = /* @__PURE__ */ __name((svgCode = "", svgElement) => {
100441
100479
  ${IFRAME_NOT_SUPPORTED_MSG}
100442
100480
  </iframe>`;
100443
100481
  }, "putIntoIFrame");
100444
- var appendDivSvgG = /* @__PURE__ */ __name((parentRoot, id30, enclosingDivId, divStyle, svgXlink) => {
100482
+ var appendDivSvgG = /* @__PURE__ */ __name((parentRoot, id28, enclosingDivId, divStyle, svgXlink) => {
100445
100483
  const enclosingDiv = parentRoot.append("div");
100446
100484
  enclosingDiv.attr("id", enclosingDivId);
100447
100485
  if (divStyle) {
100448
100486
  enclosingDiv.attr("style", divStyle);
100449
100487
  }
100450
- const svgNode2 = enclosingDiv.append("svg").attr("id", id30).attr("width", "100%").attr("xmlns", XMLNS_SVG_STD);
100488
+ const svgNode2 = enclosingDiv.append("svg").attr("id", id28).attr("width", "100%").attr("xmlns", XMLNS_SVG_STD);
100451
100489
  if (svgXlink) {
100452
100490
  svgNode2.attr("xmlns:xlink", svgXlink);
100453
100491
  }
@@ -100458,12 +100496,12 @@ function sandboxedIframe(parentNode, iFrameId) {
100458
100496
  return parentNode.append("iframe").attr("id", iFrameId).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
100459
100497
  }
100460
100498
  __name(sandboxedIframe, "sandboxedIframe");
100461
- var removeExistingElements = /* @__PURE__ */ __name((doc, id30, divId, iFrameId) => {
100462
- doc.getElementById(id30)?.remove();
100499
+ var removeExistingElements = /* @__PURE__ */ __name((doc, id28, divId, iFrameId) => {
100500
+ doc.getElementById(id28)?.remove();
100463
100501
  doc.getElementById(divId)?.remove();
100464
100502
  doc.getElementById(iFrameId)?.remove();
100465
100503
  }, "removeExistingElements");
100466
- var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingElement) {
100504
+ var render2 = /* @__PURE__ */ __name(async function(id28, text2, svgContainingElement) {
100467
100505
  addDiagrams();
100468
100506
  const processed = processAndSetConfigs(text2);
100469
100507
  text2 = processed.code;
@@ -100472,10 +100510,10 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
100472
100510
  if (text2.length > (config2?.maxTextSize ?? MAX_TEXTLENGTH)) {
100473
100511
  text2 = MAX_TEXTLENGTH_EXCEEDED_MSG;
100474
100512
  }
100475
- const idSelector = "#" + id30;
100476
- const iFrameID = "i" + id30;
100513
+ const idSelector = "#" + id28;
100514
+ const iFrameID = "i" + id28;
100477
100515
  const iFrameID_selector = "#" + iFrameID;
100478
- const enclosingDivID = "d" + id30;
100516
+ const enclosingDivID = "d" + id28;
100479
100517
  const enclosingDivID_selector = "#" + enclosingDivID;
100480
100518
  const removeTempElements = /* @__PURE__ */ __name(() => {
100481
100519
  const tmpElementSelector = isSandboxed ? iFrameID_selector : enclosingDivID_selector;
@@ -100499,9 +100537,9 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
100499
100537
  } else {
100500
100538
  root2 = select(svgContainingElement);
100501
100539
  }
100502
- appendDivSvgG(root2, id30, enclosingDivID, `font-family: ${fontFamily}`, XMLNS_XLINK_STD);
100540
+ appendDivSvgG(root2, id28, enclosingDivID, `font-family: ${fontFamily}`, XMLNS_XLINK_STD);
100503
100541
  } else {
100504
- removeExistingElements(document, id30, enclosingDivID, iFrameID);
100542
+ removeExistingElements(document, id28, enclosingDivID, iFrameID);
100505
100543
  if (isSandboxed) {
100506
100544
  const iframe = sandboxedIframe(select("body"), iFrameID);
100507
100545
  root2 = select(iframe.nodes()[0].contentDocument.body);
@@ -100509,7 +100547,7 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
100509
100547
  } else {
100510
100548
  root2 = select("body");
100511
100549
  }
100512
- appendDivSvgG(root2, id30, enclosingDivID);
100550
+ appendDivSvgG(root2, id28, enclosingDivID);
100513
100551
  }
100514
100552
  let diag;
100515
100553
  let parseEncounteredException;
@@ -100533,12 +100571,12 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
100533
100571
  style1.innerHTML = rules;
100534
100572
  svg2.insertBefore(style1, firstChild);
100535
100573
  try {
100536
- await diag.renderer.draw(text2, id30, "11.13.0", diag);
100574
+ await diag.renderer.draw(text2, id28, package_default.version, diag);
100537
100575
  } catch (e2) {
100538
100576
  if (config2.suppressErrorRendering) {
100539
100577
  removeTempElements();
100540
100578
  } else {
100541
- errorRenderer_default.draw(text2, id30, "11.13.0");
100579
+ errorRenderer_default.draw(text2, id28, package_default.version);
100542
100580
  }
100543
100581
  throw e2;
100544
100582
  }
@@ -100546,7 +100584,7 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
100546
100584
  const a11yTitle = diag.db.getAccTitle?.();
100547
100585
  const a11yDescr = diag.db.getAccDescription?.();
100548
100586
  addA11yInfo(diagramType, svgNode2, a11yTitle, a11yDescr);
100549
- root2.select(`[id="${id30}"]`).selectAll("foreignobject > *").attr("xmlns", XMLNS_XHTML_STD);
100587
+ root2.select(`[id="${id28}"]`).selectAll("foreignobject > *").attr("xmlns", XMLNS_XHTML_STD);
100550
100588
  let svgCode = root2.select(enclosingDivID_selector).node().innerHTML;
100551
100589
  log.debug("config.arrowMarkerAbsolute", config2.arrowMarkerAbsolute);
100552
100590
  svgCode = cleanUpSvgCode(svgCode, isSandboxed, evaluate(config2.arrowMarkerAbsolute));
@@ -100686,7 +100724,7 @@ var runThrowsErrors = /* @__PURE__ */ __name(async function({ postRenderCallback
100686
100724
  continue;
100687
100725
  }
100688
100726
  element.setAttribute("data-processed", "true");
100689
- const id30 = `mermaid-${idGenerator.next()}`;
100727
+ const id28 = `mermaid-${idGenerator.next()}`;
100690
100728
  txt = element.innerHTML;
100691
100729
  txt = dedent(utils_default.entityDecode(txt)).trim().replace(/<br\s*\/?>/gi, "<br/>");
100692
100730
  const init2 = utils_default.detectInit(txt);
@@ -100694,10 +100732,10 @@ var runThrowsErrors = /* @__PURE__ */ __name(async function({ postRenderCallback
100694
100732
  log.debug("Detected early reinit: ", init2);
100695
100733
  }
100696
100734
  try {
100697
- const { svg: svg2, bindFunctions } = await render22(id30, txt, element);
100735
+ const { svg: svg2, bindFunctions } = await render22(id28, txt, element);
100698
100736
  element.innerHTML = svg2;
100699
100737
  if (postRenderCallback) {
100700
- await postRenderCallback(id30);
100738
+ await postRenderCallback(id28);
100701
100739
  }
100702
100740
  if (bindFunctions) {
100703
100741
  bindFunctions(element);
@@ -100792,10 +100830,10 @@ var parse2 = /* @__PURE__ */ __name(async (text2, parseOptions) => {
100792
100830
  executeQueue().catch(reject);
100793
100831
  });
100794
100832
  }, "parse");
100795
- var render22 = /* @__PURE__ */ __name((id30, text2, container) => {
100833
+ var render22 = /* @__PURE__ */ __name((id28, text2, container) => {
100796
100834
  return new Promise((resolve, reject) => {
100797
100835
  const performCall = /* @__PURE__ */ __name(() => new Promise((res, rej) => {
100798
- mermaidAPI.render(id30, text2, container).then(
100836
+ mermaidAPI.render(id28, text2, container).then(
100799
100837
  (r2) => {
100800
100838
  res(r2);
100801
100839
  resolve(r2);
@@ -100813,8 +100851,8 @@ var render22 = /* @__PURE__ */ __name((id30, text2, container) => {
100813
100851
  });
100814
100852
  }, "render");
100815
100853
  var getRegisteredDiagramsMetadata = /* @__PURE__ */ __name(() => {
100816
- return Object.keys(detectors).map((id30) => ({
100817
- id: id30
100854
+ return Object.keys(detectors).map((id28) => ({
100855
+ id: id28
100818
100856
  }));
100819
100857
  }, "getRegisteredDiagramsMetadata");
100820
100858
  var mermaid = {
@@ -100847,13 +100885,13 @@ class DomindsMermaidBlock extends HTMLElement {
100847
100885
  return normalizedNewlines.replace(
100848
100886
  /(\b[\w-]+)\[([^\]\n]*?)\]/g,
100849
100887
  (_full, rawId, rawLabel) => {
100850
- const id30 = String(rawId);
100888
+ const id28 = String(rawId);
100851
100889
  const label = String(rawLabel).trim();
100852
- if (!label) return `${id30}[]`;
100853
- if (label.startsWith('"') || label.startsWith("'")) return `${id30}[${label}]`;
100854
- if (!/[<>()|]/.test(label)) return `${id30}[${label}]`;
100890
+ if (!label) return `${id28}[]`;
100891
+ if (label.startsWith('"') || label.startsWith("'")) return `${id28}[${label}]`;
100892
+ if (!/[<>()|]/.test(label)) return `${id28}[${label}]`;
100855
100893
  const escaped = label.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
100856
- return `${id30}["${escaped}"]`;
100894
+ return `${id28}["${escaped}"]`;
100857
100895
  }
100858
100896
  );
100859
100897
  }
@@ -101298,14 +101336,14 @@ md.core.ruler.push("dominds_heading_ids", (state2) => {
101298
101336
  const rawText = inline2.content;
101299
101337
  const base2 = slugifyHeadingId(rawText);
101300
101338
  if (!base2) continue;
101301
- let id30 = base2;
101339
+ let id28 = base2;
101302
101340
  let attempt = 2;
101303
- while (used.has(id30)) {
101304
- id30 = `${base2}-${attempt}`;
101341
+ while (used.has(id28)) {
101342
+ id28 = `${base2}-${attempt}`;
101305
101343
  attempt += 1;
101306
101344
  }
101307
- used.add(id30);
101308
- token2.attrSet("id", id30);
101345
+ used.add(id28);
101346
+ token2.attrSet("id", id28);
101309
101347
  }
101310
101348
  });
101311
101349
  installDomindsMathBlockRule(md);
@@ -102464,7 +102502,7 @@ class DomindsDialogContainer extends HTMLElement {
102464
102502
  this.teamConfiguration = {
102465
102503
  memberDefaults: { icon: cfg.memberDefaults.icon, name: cfg.memberDefaults.name },
102466
102504
  members: Object.fromEntries(
102467
- Object.entries(cfg.members).map(([id30, m2]) => [id30, { icon: m2.icon, name: m2.name }])
102505
+ Object.entries(cfg.members).map(([id28, m2]) => [id28, { icon: m2.icon, name: m2.name }])
102468
102506
  )
102469
102507
  };
102470
102508
  } catch (error2) {
@@ -104010,9 +104048,9 @@ itemId: ${itemId}` : ""}` : `itemId: ${itemId}`;
104010
104048
  const seen2 = /* @__PURE__ */ new Set();
104011
104049
  const out = [];
104012
104050
  for (const match2 of headline.matchAll(re2)) {
104013
- const id30 = (match2[1] ?? "").trim();
104014
- if (id30 === "") continue;
104015
- const mention = `@${id30}`;
104051
+ const id28 = (match2[1] ?? "").trim();
104052
+ if (id28 === "") continue;
104053
+ const mention = `@${id28}`;
104016
104054
  if (seen2.has(mention)) continue;
104017
104055
  seen2.add(mention);
104018
104056
  out.push(mention);
@@ -106106,19 +106144,19 @@ ${event.content}`;
106106
106144
  // User messages are now handled by 'end_of_user_saying_evt' event - see handleDialogEvent()
106107
106145
  getAuthorLabel(role, responderId) {
106108
106146
  if (role === "user") return "Human";
106109
- const id30 = responderId || this.currentDialog?.agentId || "";
106110
- if (!id30) return "🤖 Assistant";
106111
- if (this.teamConfiguration?.members?.[id30]) {
106112
- const member = this.teamConfiguration.members[id30];
106147
+ const id28 = responderId || this.currentDialog?.agentId || "";
106148
+ if (!id28) return "🤖 Assistant";
106149
+ if (this.teamConfiguration?.members?.[id28]) {
106150
+ const member = this.teamConfiguration.members[id28];
106113
106151
  const icon2 = member.icon || this.teamConfiguration.memberDefaults?.icon || "🤖";
106114
- const name = member.name || `@${id30}`;
106152
+ const name = member.name || `@${id28}`;
106115
106153
  return `${icon2} ${name}`;
106116
106154
  }
106117
106155
  if (this.teamConfiguration?.memberDefaults) {
106118
106156
  const icon2 = this.teamConfiguration.memberDefaults.icon || "🤖";
106119
- return `${icon2} @${id30}`;
106157
+ return `${icon2} @${id28}`;
106120
106158
  }
106121
- return `🤖 @${id30}`;
106159
+ return `🤖 @${id28}`;
106122
106160
  }
106123
106161
  escapeHtml(text2) {
106124
106162
  return text2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
@@ -107985,16 +108023,16 @@ class DomindsDocsPanel extends HTMLElement {
107985
108023
  }
107986
108024
  scrollToPendingAnchorIfAny() {
107987
108025
  if (!this.pendingScrollAnchorId) return;
107988
- const id30 = this.pendingScrollAnchorId;
108026
+ const id28 = this.pendingScrollAnchorId;
107989
108027
  this.pendingScrollAnchorId = null;
107990
- this.scrollToAnchorId(id30);
108028
+ this.scrollToAnchorId(id28);
107991
108029
  }
107992
- scrollToAnchorId(id30) {
108030
+ scrollToAnchorId(id28) {
107993
108031
  const root2 = this.shadowRoot;
107994
108032
  if (!root2) return;
107995
108033
  const body = root2.querySelector(".docs-body");
107996
108034
  if (!(body instanceof HTMLElement)) return;
107997
- const anchor2 = body.querySelector(`#${CSS.escape(id30)}`);
108035
+ const anchor2 = body.querySelector(`#${CSS.escape(id28)}`);
107998
108036
  if (!(anchor2 instanceof HTMLElement)) return;
107999
108037
  anchor2.scrollIntoView({ behavior: "smooth", block: "start" });
108000
108038
  }
@@ -108045,13 +108083,13 @@ class DomindsDocsPanel extends HTMLElement {
108045
108083
  if (href.startsWith("#")) {
108046
108084
  const idRaw = href.slice(1);
108047
108085
  if (!idRaw) return;
108048
- let id30 = idRaw;
108086
+ let id28 = idRaw;
108049
108087
  try {
108050
- id30 = decodeURIComponent(idRaw);
108088
+ id28 = decodeURIComponent(idRaw);
108051
108089
  } catch {
108052
108090
  }
108053
- if (!id30) return;
108054
- this.scrollToAnchorId(id30);
108091
+ if (!id28) return;
108092
+ this.scrollToAnchorId(id28);
108055
108093
  return;
108056
108094
  }
108057
108095
  if (href.startsWith("/f/") || href === "/f" || href === "/workspace" || href.startsWith("/workspace/") || href === "/rtws" || href.startsWith("/rtws/")) {
@@ -108503,13 +108541,13 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
108503
108541
  this.showError(error2 instanceof Error ? error2.message : t2.readFailed);
108504
108542
  });
108505
108543
  }
108506
- removeImageAttachment(id30) {
108507
- const existing = this.imageAttachments.find((attachment) => attachment.id === id30);
108544
+ removeImageAttachment(id28) {
108545
+ const existing = this.imageAttachments.find((attachment) => attachment.id === id28);
108508
108546
  if (existing) {
108509
108547
  URL.revokeObjectURL(existing.objectUrl);
108510
108548
  }
108511
- this.imageAttachments = this.imageAttachments.filter((attachment) => attachment.id !== id30);
108512
- if (this.openImageAttachmentId === id30) {
108549
+ this.imageAttachments = this.imageAttachments.filter((attachment) => attachment.id !== id28);
108550
+ if (this.openImageAttachmentId === id28) {
108513
108551
  this.openImageAttachmentId = null;
108514
108552
  }
108515
108553
  this.safeRender();
@@ -109115,9 +109153,9 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
109115
109153
  }
109116
109154
  this.shadowRoot.querySelectorAll(".attachment-thumb").forEach((button) => {
109117
109155
  button.addEventListener("click", () => {
109118
- const id30 = button.dataset.attachmentId;
109119
- if (typeof id30 !== "string") return;
109120
- this.openImageAttachmentId = id30;
109156
+ const id28 = button.dataset.attachmentId;
109157
+ if (typeof id28 !== "string") return;
109158
+ this.openImageAttachmentId = id28;
109121
109159
  this.safeRender();
109122
109160
  });
109123
109161
  });
@@ -109125,9 +109163,9 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
109125
109163
  button.addEventListener("click", (event) => {
109126
109164
  event.preventDefault();
109127
109165
  event.stopPropagation();
109128
- const id30 = button.dataset.attachmentId;
109129
- if (typeof id30 !== "string") return;
109130
- this.removeImageAttachment(id30);
109166
+ const id28 = button.dataset.attachmentId;
109167
+ if (typeof id28 !== "string") return;
109168
+ this.removeImageAttachment(id28);
109131
109169
  });
109132
109170
  });
109133
109171
  const modalCloseTargets = this.shadowRoot.querySelectorAll(
@@ -109395,17 +109433,17 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
109395
109433
  if (this.imageAttachments.length === 0) return "";
109396
109434
  const t2 = IMAGE_ATTACHMENT_I18N[this.uiLanguage];
109397
109435
  const items = this.imageAttachments.map((attachment) => {
109398
- const id30 = _DomindsQ4HInput.escapeHtml(attachment.id);
109436
+ const id28 = _DomindsQ4HInput.escapeHtml(attachment.id);
109399
109437
  const name = _DomindsQ4HInput.escapeHtml(attachment.name);
109400
109438
  const src = _DomindsQ4HInput.escapeHtml(attachment.objectUrl);
109401
109439
  return `
109402
109440
  <div class="attachment-item">
109403
- <button class="attachment-thumb" type="button" data-attachment-id="${id30}" title="${_DomindsQ4HInput.escapeHtml(
109441
+ <button class="attachment-thumb" type="button" data-attachment-id="${id28}" title="${_DomindsQ4HInput.escapeHtml(
109404
109442
  t2.preview
109405
109443
  )}" aria-label="${_DomindsQ4HInput.escapeHtml(t2.preview)}">
109406
109444
  <img src="${src}" alt="${name}">
109407
109445
  </button>
109408
- <button class="attachment-remove" type="button" data-attachment-id="${id30}" title="${_DomindsQ4HInput.escapeHtml(
109446
+ <button class="attachment-remove" type="button" data-attachment-id="${id28}" title="${_DomindsQ4HInput.escapeHtml(
109409
109447
  t2.remove
109410
109448
  )}" aria-label="${_DomindsQ4HInput.escapeHtml(t2.remove)}">
109411
109449
  <span class="icon-mask attachment-remove-icon" aria-hidden="true"></span>
@@ -110093,8 +110131,8 @@ class DomindsQ4HPanel extends HTMLElement {
110093
110131
  if (!root2) return;
110094
110132
  const selectedId = this.selectedQuestionId;
110095
110133
  root2.querySelectorAll(".q4h-question-card").forEach((card2) => {
110096
- const id30 = card2.getAttribute("data-question-id");
110097
- const selected = selectedId !== null && id30 === selectedId;
110134
+ const id28 = card2.getAttribute("data-question-id");
110135
+ const selected = selectedId !== null && id28 === selectedId;
110098
110136
  card2.classList.toggle("selected", selected);
110099
110137
  });
110100
110138
  if (selectedId !== null) {
@@ -111729,10 +111767,10 @@ class DomindsSnippetsPanel extends HTMLElement {
111729
111767
  }
111730
111768
  selectSnippetFromCard(card2) {
111731
111769
  if (this.state.kind !== "ready") return;
111732
- const id30 = card2.getAttribute("data-id");
111733
- if (typeof id30 !== "string" || id30 === "") return;
111770
+ const id28 = card2.getAttribute("data-id");
111771
+ if (typeof id28 !== "string" || id28 === "") return;
111734
111772
  const all = this.state.groups.flatMap((g2) => g2.templates);
111735
- const snippet2 = all.find((x2) => x2.id === id30);
111773
+ const snippet2 = all.find((x2) => x2.id === id28);
111736
111774
  this.selectSnippet(snippet2 ?? null);
111737
111775
  }
111738
111776
  captureSnippetScroll() {
@@ -111927,8 +111965,8 @@ function requireAppJson() {
111927
111965
  function parseToolsetJson(v2, at2) {
111928
111966
  if (!isRecord(v2))
111929
111967
  return { ok: false, errorText: `Invalid ${at2}: expected object` };
111930
- const id30 = asString(v2["id"]);
111931
- if (!id30 || id30.trim() === "")
111968
+ const id28 = asString(v2["id"]);
111969
+ if (!id28 || id28.trim() === "")
111932
111970
  return { ok: false, errorText: `Invalid ${at2}.id: required` };
111933
111971
  const descriptionI18n = v2["descriptionI18n"];
111934
111972
  if (descriptionI18n !== void 0 && !isI18nText(descriptionI18n)) {
@@ -111947,7 +111985,7 @@ function requireAppJson() {
111947
111985
  return {
111948
111986
  ok: true,
111949
111987
  toolset: {
111950
- id: id30,
111988
+ id: id28,
111951
111989
  descriptionI18n,
111952
111990
  tools
111953
111991
  }
@@ -111956,8 +111994,8 @@ function requireAppJson() {
111956
111994
  function parseDialogRunControlJson(v2, at2) {
111957
111995
  if (!isRecord(v2))
111958
111996
  return { ok: false, errorText: `Invalid ${at2}: expected object` };
111959
- const id30 = asString(v2["id"]);
111960
- if (!id30 || id30.trim() === "")
111997
+ const id28 = asString(v2["id"]);
111998
+ if (!id28 || id28.trim() === "")
111961
111999
  return { ok: false, errorText: `Invalid ${at2}.id: required` };
111962
112000
  const descriptionI18n = v2["descriptionI18n"];
111963
112001
  if (descriptionI18n !== void 0 && !isI18nText(descriptionI18n)) {
@@ -111966,7 +112004,7 @@ function requireAppJson() {
111966
112004
  return {
111967
112005
  ok: true,
111968
112006
  control: {
111969
- id: id30,
112007
+ id: id28,
111970
112008
  descriptionI18n
111971
112009
  }
111972
112010
  };
@@ -112480,16 +112518,16 @@ class DomindsTeamManualPanel extends HTMLElement {
112480
112518
  const href = link2.getAttribute("href");
112481
112519
  if (typeof href !== "string") return;
112482
112520
  if (!href.startsWith("#")) return;
112483
- let id30 = href.slice(1);
112521
+ let id28 = href.slice(1);
112484
112522
  try {
112485
- id30 = decodeURIComponent(id30);
112523
+ id28 = decodeURIComponent(id28);
112486
112524
  } catch {
112487
112525
  }
112488
- if (!id30) {
112526
+ if (!id28) {
112489
112527
  e2.preventDefault();
112490
112528
  return;
112491
112529
  }
112492
- const anchor2 = body.querySelector(`#${CSS.escape(id30)}`);
112530
+ const anchor2 = body.querySelector(`#${CSS.escape(id28)}`);
112493
112531
  e2.preventDefault();
112494
112532
  if (!(anchor2 instanceof HTMLElement)) return;
112495
112533
  anchor2.scrollIntoView({ behavior: "smooth", block: "start" });
@@ -122257,15 +122295,19 @@ ${currentVersion}`;
122257
122295
  }
122258
122296
 
122259
122297
  .rem-item-scope-dialog {
122260
- --icon-mask: ${ICON_MASK_URLS.bookmark};
122298
+ --icon-mask: ${ICON_MASK_URLS.messageSquareText};
122261
122299
  }
122262
122300
 
122263
- .rem-item-scope-personal {
122264
- --icon-mask: ${ICON_MASK_URLS.pin};
122301
+ .rem-item-scope-task {
122302
+ --icon-mask: ${ICON_MASK_URLS.clipboardList};
122265
122303
  }
122266
122304
 
122267
- .rem-item-scope-agent-shared {
122268
- --icon-mask: ${ICON_MASK_URLS.link};
122305
+ .rem-item-scope-agent {
122306
+ --icon-mask: ${ICON_MASK_URLS.userRound};
122307
+ }
122308
+
122309
+ .rem-item-scope-runtime {
122310
+ --icon-mask: ${ICON_MASK_URLS.shield};
122269
122311
  }
122270
122312
 
122271
122313
  .rem-item-content {
@@ -125915,13 +125957,13 @@ ${content}`;
125915
125957
  for (const item of value) {
125916
125958
  if (typeof item !== "object" || item === null) continue;
125917
125959
  const rec = item;
125918
- const id30 = typeof rec["id"] === "string" ? rec["id"] : "";
125960
+ const id28 = typeof rec["id"] === "string" ? rec["id"] : "";
125919
125961
  const timestamp2 = typeof rec["timestamp"] === "string" ? rec["timestamp"].trim() : "";
125920
125962
  const kind = rec["kind"];
125921
125963
  const message = typeof rec["message"] === "string" ? rec["message"] : "";
125922
- if (!id30 || !_DomindsApp.UNIFIED_TIMESTAMP_PATTERN.test(timestamp2) || !message) continue;
125964
+ if (!id28 || !_DomindsApp.UNIFIED_TIMESTAMP_PATTERN.test(timestamp2) || !message) continue;
125923
125965
  if (kind !== "error" && kind !== "warning" && kind !== "info") continue;
125924
- next2.push({ id: id30, timestamp: timestamp2, kind, message });
125966
+ next2.push({ id: id28, timestamp: timestamp2, kind, message });
125925
125967
  }
125926
125968
  return next2;
125927
125969
  }
@@ -125938,11 +125980,11 @@ ${content}`;
125938
125980
  pushToastHistoryEntry(entry) {
125939
125981
  this.loadToastHistoryFromStorage();
125940
125982
  const now2 = /* @__PURE__ */ new Date();
125941
- const id30 = `${String(now2.getTime())}-${String(this.toastHistorySeq += 1)}`;
125983
+ const id28 = `${String(now2.getTime())}-${String(this.toastHistorySeq += 1)}`;
125942
125984
  const trimmed = entry.message.trim();
125943
125985
  if (trimmed === "") return;
125944
125986
  const next2 = {
125945
- id: id30,
125987
+ id: id28,
125946
125988
  timestamp: timeExports.formatUnifiedTimestamp(now2),
125947
125989
  kind: entry.kind,
125948
125990
  message: trimmed
@@ -127307,11 +127349,14 @@ ${content}`;
127307
127349
  }
127308
127350
  renderReminderScopeBadgeHtml(scope) {
127309
127351
  const t2 = getUiStrings(this.uiLanguage);
127310
- if (scope === "personal") {
127311
- return `<span class="rem-item-scope rem-item-scope-personal" title="${this.escapeHtml(t2.personalReminderScope)}" aria-label="${this.escapeHtml(t2.personalReminderScope)}"><span class="icon-mask" aria-hidden="true"></span></span>`;
127352
+ if (scope === "task") {
127353
+ return `<span class="rem-item-scope rem-item-scope-task" title="${this.escapeHtml(t2.taskReminderScope)}" aria-label="${this.escapeHtml(t2.taskReminderScope)}"><span class="icon-mask" aria-hidden="true"></span></span>`;
127354
+ }
127355
+ if (scope === "agent") {
127356
+ return `<span class="rem-item-scope rem-item-scope-agent" title="${this.escapeHtml(t2.agentReminderScope)}" aria-label="${this.escapeHtml(t2.agentReminderScope)}"><span class="icon-mask" aria-hidden="true"></span></span>`;
127312
127357
  }
127313
- if (scope === "agent_shared") {
127314
- return `<span class="rem-item-scope rem-item-scope-agent-shared" title="${this.escapeHtml(t2.sharedReminderScope)}" aria-label="${this.escapeHtml(t2.sharedReminderScope)}"><span class="icon-mask" aria-hidden="true"></span></span>`;
127358
+ if (scope === "runtime") {
127359
+ return `<span class="rem-item-scope rem-item-scope-runtime" title="${this.escapeHtml(t2.runtimeReminderScope)}" aria-label="${this.escapeHtml(t2.runtimeReminderScope)}"><span class="icon-mask" aria-hidden="true"></span></span>`;
127315
127360
  }
127316
127361
  return `<span class="rem-item-scope rem-item-scope-dialog" title="${this.escapeHtml(t2.dialogReminderScope)}" aria-label="${this.escapeHtml(t2.dialogReminderScope)}"><span class="icon-mask" aria-hidden="true"></span></span>`;
127317
127362
  }
@@ -127590,28 +127635,28 @@ ${content}`;
127590
127635
  const next2 = [];
127591
127636
  const seenIds = /* @__PURE__ */ new Set();
127592
127637
  for (const existing of this.q4hQuestions) {
127593
- const id30 = typeof existing.id === "string" ? existing.id : "";
127594
- if (!id30) {
127638
+ const id28 = typeof existing.id === "string" ? existing.id : "";
127639
+ if (!id28) {
127595
127640
  throw new Error("Q4H client cache violation: existing question has invalid id");
127596
127641
  }
127597
- if (seenIds.has(id30)) {
127598
- throw new Error(`Q4H client cache violation: duplicate cached question id (${id30})`);
127642
+ if (seenIds.has(id28)) {
127643
+ throw new Error(`Q4H client cache violation: duplicate cached question id (${id28})`);
127599
127644
  }
127600
- seenIds.add(id30);
127645
+ seenIds.add(id28);
127601
127646
  const existingWithDialog = existing;
127602
127647
  const selfId = typeof existingWithDialog.selfId === "string" ? existingWithDialog.selfId : null;
127603
127648
  if (!selfId) {
127604
- const incoming2 = incomingById.get(id30);
127649
+ const incoming2 = incomingById.get(id28);
127605
127650
  next2.push(incoming2 ?? existing);
127606
- if (incoming2) incomingById.delete(id30);
127651
+ if (incoming2) incomingById.delete(id28);
127607
127652
  continue;
127608
127653
  }
127609
127654
  const rootId = typeof existingWithDialog.rootId === "string" && existingWithDialog.rootId ? existingWithDialog.rootId : selfId;
127610
127655
  const status = this.lookupVisibleDialogStatusByIds(rootId, selfId);
127611
- const incoming = incomingById.get(id30);
127656
+ const incoming = incomingById.get(id28);
127612
127657
  if (incoming) {
127613
127658
  next2.push(incoming);
127614
- incomingById.delete(id30);
127659
+ incomingById.delete(id28);
127615
127660
  continue;
127616
127661
  }
127617
127662
  if (status === "running") {
@@ -127619,11 +127664,11 @@ ${content}`;
127619
127664
  }
127620
127665
  next2.push(existing);
127621
127666
  }
127622
- for (const [id30, q2] of incomingById.entries()) {
127623
- if (seenIds.has(id30)) {
127624
- throw new Error(`Q4H state merge violation: duplicate id during merge (${id30})`);
127667
+ for (const [id28, q2] of incomingById.entries()) {
127668
+ if (seenIds.has(id28)) {
127669
+ throw new Error(`Q4H state merge violation: duplicate id during merge (${id28})`);
127625
127670
  }
127626
- seenIds.add(id30);
127671
+ seenIds.add(id28);
127627
127672
  next2.push(q2);
127628
127673
  }
127629
127674
  this.q4hQuestions = next2;
@@ -129702,15 +129747,15 @@ document.addEventListener("DOMContentLoaded", async () => {
129702
129747
  });
129703
129748
  export {
129704
129749
  commonDb_exports as $,
129705
- defaultConfig2 as A,
129706
- rgba$1 as B,
129707
- __export as C,
129708
- setupGraphViewbox2 as D,
129709
- cleanAndMerge as E,
129710
- defaultConfig_default as F,
129711
- getConfig as G,
129712
- random as H,
129713
- selectSvgElement as I,
129750
+ rgba$1 as A,
129751
+ __export as B,
129752
+ setupGraphViewbox2 as C,
129753
+ cleanAndMerge as D,
129754
+ defaultConfig_default as E,
129755
+ getConfig as F,
129756
+ random as G,
129757
+ selectSvgElement as H,
129758
+ package_default as I,
129714
129759
  JSON_SCHEMA as J,
129715
129760
  getThemeVariables3 as K,
129716
129761
  hasKatex as L,
@@ -129730,7 +129775,7 @@ export {
129730
129775
  ZERO_WIDTH_SPACE as Z,
129731
129776
  __name as _,
129732
129777
  getAccTitle as a,
129733
- isIndex as a$,
129778
+ isLabelStyle as a$,
129734
129779
  withPath as a0,
129735
129780
  halfPi as a1,
129736
129781
  epsilon as a2,
@@ -129741,33 +129786,33 @@ export {
129741
129786
  abs$1 as a7,
129742
129787
  pi as a8,
129743
129788
  sqrt as a9,
129744
- positionEdgeLabel as aA,
129745
- insertEdgeLabel as aB,
129746
- baseRest as aC,
129747
- isArrayLikeObject as aD,
129748
- constant as aE,
129749
- isFunction as aF,
129750
- isEmpty2 as aG,
129751
- computeDimensionOfText as aH,
129752
- adjustChannel as aI,
129753
- array as aJ,
129754
- getUserDefinedConfig as aK,
129755
- getDefaultExportFromCjs as aL,
129756
- getIconSVG as aM,
129757
- registerIconPacks as aN,
129758
- unknownIcon as aO,
129759
- constant$2 as aP,
129760
- interpolateNumber as aQ,
129761
- color as aR,
129762
- interpolateRgb as aS,
129763
- interpolateString as aT,
129764
- isObject as aU,
129765
- isIterateeCall as aV,
129766
- keysIn as aW,
129767
- eq as aX,
129768
- isArrayLike as aY,
129769
- isArray as aZ,
129770
- identity as a_,
129789
+ baseRest as aA,
129790
+ isArrayLikeObject as aB,
129791
+ constant as aC,
129792
+ isFunction as aD,
129793
+ isEmpty2 as aE,
129794
+ computeDimensionOfText as aF,
129795
+ array as aG,
129796
+ getUserDefinedConfig as aH,
129797
+ getDefaultExportFromCjs as aI,
129798
+ getIconSVG as aJ,
129799
+ registerIconPacks as aK,
129800
+ unknownIcon as aL,
129801
+ constant$2 as aM,
129802
+ interpolateNumber as aN,
129803
+ color as aO,
129804
+ interpolateRgb as aP,
129805
+ interpolateString as aQ,
129806
+ isObject as aR,
129807
+ isIterateeCall as aS,
129808
+ keysIn as aT,
129809
+ eq as aU,
129810
+ isArrayLike as aV,
129811
+ isArray as aW,
129812
+ identity as aX,
129813
+ isIndex as aY,
129814
+ assignValue as aZ,
129815
+ styles2String as a_,
129771
129816
  atan2 as aa,
129772
129817
  constant$1 as ab,
129773
129818
  asin as ac,
@@ -129777,68 +129822,65 @@ export {
129777
129822
  insertNode as ag,
129778
129823
  positionNode as ah,
129779
129824
  getLineFunctionsWithOffset as ai,
129780
- getEffectiveHtmlLabels as aj,
129825
+ evaluate as aj,
129781
129826
  createText as ak,
129782
- computeLabelTransform as al,
129783
- getSubGraphTitleMargins as am,
129784
- getStylesFromArray as an,
129785
- decodeEntities as ao,
129786
- configureLabelImages as ap,
129787
- Utils as aq,
129788
- Color$1 as ar,
129789
- at as as,
129790
- markers_default as at,
129791
- clear2 as au,
129792
- clear as av,
129793
- clear$1 as aw,
129794
- updateNodeBounds as ax,
129795
- setNodeElem as ay,
129796
- insertEdge as az,
129827
+ getSubGraphTitleMargins as al,
129828
+ replaceIconSubstring as am,
129829
+ decodeEntities as an,
129830
+ getStylesFromArray as ao,
129831
+ Utils as ap,
129832
+ Color$1 as aq,
129833
+ markers_default as ar,
129834
+ clear2 as as,
129835
+ clear as at,
129836
+ clear$1 as au,
129837
+ updateNodeBounds as av,
129838
+ setNodeElem as aw,
129839
+ insertEdge as ax,
129840
+ positionEdgeLabel as ay,
129841
+ insertEdgeLabel as az,
129797
129842
  setAccTitle as b,
129798
- assignValue as b0,
129799
- styles2String as b1,
129800
- isLabelStyle as b2,
129801
- Rgb as b3,
129802
- rgbConvert as b4,
129803
- define as b5,
129804
- extend$1 as b6,
129805
- Color as b7,
129806
- nogamma as b8,
129807
- hue as b9,
129808
- Uint8Array$1 as bA,
129809
- isTypedArray as bB,
129810
- isLength as bC,
129811
- Set$1 as bD,
129812
- createAssigner as bE,
129813
- isPrototype as bF,
129814
- getAugmentedNamespace as bG,
129815
- __vitePreload as bH,
129816
- dayjs2 as ba,
129817
- setToString as bb,
129818
- overRest as bc,
129819
- baseFor as bd,
129820
- baseAssignValue as be,
129821
- baseUnary as bf,
129822
- merge as bg,
129823
- isObjectLike as bh,
129824
- baseGetTag as bi,
129825
- Symbol$1 as bj,
129826
- arrayLikeKeys as bk,
129827
- baseKeys as bl,
129828
- memoize as bm,
129829
- isArguments as bn,
129830
- copyObject as bo,
129831
- getPrototype as bp,
129832
- cloneArrayBuffer as bq,
129833
- cloneTypedArray as br,
129834
- getTag as bs,
129835
- nodeUtil as bt,
129836
- copyArray as bu,
129837
- isBuffer as bv,
129838
- cloneBuffer as bw,
129839
- initCloneObject as bx,
129840
- Stack as by,
129841
- MapCache as bz,
129843
+ Rgb as b0,
129844
+ rgbConvert as b1,
129845
+ define as b2,
129846
+ extend$1 as b3,
129847
+ Color as b4,
129848
+ nogamma as b5,
129849
+ hue as b6,
129850
+ dayjs2 as b7,
129851
+ setToString as b8,
129852
+ overRest as b9,
129853
+ Set$1 as bA,
129854
+ createAssigner as bB,
129855
+ isPrototype as bC,
129856
+ getAugmentedNamespace as bD,
129857
+ __vitePreload as bE,
129858
+ baseFor as ba,
129859
+ baseAssignValue as bb,
129860
+ baseUnary as bc,
129861
+ merge as bd,
129862
+ isObjectLike as be,
129863
+ baseGetTag as bf,
129864
+ Symbol$1 as bg,
129865
+ arrayLikeKeys as bh,
129866
+ baseKeys as bi,
129867
+ memoize as bj,
129868
+ isArguments as bk,
129869
+ copyObject as bl,
129870
+ getPrototype as bm,
129871
+ cloneArrayBuffer as bn,
129872
+ cloneTypedArray as bo,
129873
+ getTag as bp,
129874
+ nodeUtil as bq,
129875
+ copyArray as br,
129876
+ isBuffer as bs,
129877
+ cloneBuffer as bt,
129878
+ initCloneObject as bu,
129879
+ Stack as bv,
129880
+ MapCache as bw,
129881
+ Uint8Array$1 as bx,
129882
+ isTypedArray as by,
129883
+ isLength as bz,
129842
129884
  getConfig2 as c,
129843
129885
  select as d,
129844
129886
  configureSvgSize as e,
@@ -129861,7 +129903,7 @@ export {
129861
129903
  isValidShape as v,
129862
129904
  wrapLabel as w,
129863
129905
  getEdgeId as x,
129864
- purify as y,
129865
- clear$2 as z
129906
+ clear$2 as y,
129907
+ defaultConfig2 as z
129866
129908
  };
129867
- //# sourceMappingURL=index-CDCDAfqP.js.map
129909
+ //# sourceMappingURL=index-arD81Nnh.js.map