@qwen-code/qwen-code 0.23.3 → 0.23.4-dev.codemode-responses.20260914.87437db784

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 (464) hide show
  1. package/bundled/computer-use/SKILL.md +46 -198
  2. package/bundled/computer-use/references/macos.md +208 -0
  3. package/bundled/computer-use/references/windows-linux.md +247 -0
  4. package/bundled/goal-draft/SKILL.md +10 -10
  5. package/bundled/qc-helper/docs/configuration/settings.md +81 -71
  6. package/bundled/qc-helper/docs/extension/getting-started-extensions.md +2 -0
  7. package/bundled/qc-helper/docs/extension/introduction.md +9 -3
  8. package/bundled/qc-helper/docs/features/_meta.ts +1 -0
  9. package/bundled/qc-helper/docs/features/agent-board.md +89 -0
  10. package/bundled/qc-helper/docs/features/channels/dingtalk.md +3 -21
  11. package/bundled/qc-helper/docs/features/channels/dws.md +5 -1
  12. package/bundled/qc-helper/docs/features/channels/overview.md +5 -6
  13. package/bundled/qc-helper/docs/features/code-review.md +18 -4
  14. package/bundled/qc-helper/docs/features/commands.md +9 -0
  15. package/bundled/qc-helper/docs/features/computer-use.md +26 -8
  16. package/bundled/qc-helper/docs/features/cross-session-protocol.md +23 -5
  17. package/bundled/qc-helper/docs/features/followup-suggestions.md +17 -5
  18. package/bundled/qc-helper/docs/features/goals.md +22 -18
  19. package/bundled/qc-helper/docs/features/hooks.md +48 -37
  20. package/bundled/qc-helper/docs/features/skills.md +33 -3
  21. package/bundled/qc-helper/docs/features/status-line.md +2 -0
  22. package/bundled/qc-helper/docs/features/sub-agents.md +27 -0
  23. package/bundled/qc-helper/docs/qwen-serve.md +7 -3
  24. package/bundled/review/SKILL.md +20 -10
  25. package/bundled/review/references/persistence.md +2 -0
  26. package/bundled/workflow-authoring/SKILL.md +442 -0
  27. package/bundled/workflow-creator/SKILL.md +1 -1
  28. package/chunks/{MaxSizedBox-D4LW7RZZ.js → MaxSizedBox-CSMC6NNQ.js} +59 -55
  29. package/chunks/{StandaloneSessionPicker-ALTTRWUP.js → StandaloneSessionPicker-5G46NROB.js} +83 -79
  30. package/chunks/{acp-startup-profiler-KEU6VAYR.js → acp-startup-profiler-RUQNTNU5.js} +2 -2
  31. package/chunks/acp-subagent-executor-4JLSF7SA.js +141 -0
  32. package/chunks/{acpAgent-BBSW7XZG.js → acpAgent-WJ45JV2S.js} +1026 -355
  33. package/chunks/{agent-SQ6OY3QD.js → agent-KWNOVXAD.js} +43 -39
  34. package/chunks/{agent-headless-RI2THRQ7.js → agent-headless-TU5N3GFF.js} +43 -39
  35. package/chunks/{anthropicContentGenerator-JSKMKS6V.js → anthropicContentGenerator-H5YPXIDE.js} +37 -15
  36. package/chunks/{artifact-tool-PMYZCYNH.js → artifact-tool-MFGORTWZ.js} +59 -109
  37. package/chunks/{askUserQuestion-4M4YYIB4.js → askUserQuestion-WS4GUT7C.js} +3 -3
  38. package/chunks/{bridge-DAFMI72L.js → bridge-PF7UX6MH.js} +63 -58
  39. package/chunks/{build-63BIOYWK.js → build-5KWQBWEQ.js} +1 -1
  40. package/chunks/{ca-KC2AISNS.js → ca-GZ4FDJU2.js} +3 -3
  41. package/chunks/{channel-management-service-OWDXVL7R.js → channel-management-service-AFVIT4VH.js} +8 -8
  42. package/chunks/{channel-settings-store-4I6JONT7.js → channel-settings-store-3OVAGIC2.js} +68 -64
  43. package/chunks/{channel-worker-group-F2ZZMLNS.js → channel-worker-group-JR6JOELM.js} +8 -8
  44. package/chunks/{channel-worker-manager-2SZLJJSJ.js → channel-worker-manager-AVKJEZFL.js} +8 -8
  45. package/chunks/{channel-worker-supervisor-ZFNWMG6D.js → channel-worker-supervisor-OOYY7BAQ.js} +5 -5
  46. package/chunks/{chunk-6JACAGYH.js → chunk-2S2WIGCM.js} +1 -1
  47. package/chunks/{chunk-NRXWJXJ4.js → chunk-2YGR3VN6.js} +15 -15
  48. package/chunks/{chunk-IUVIBDKU.js → chunk-2YMRRI2C.js} +9 -10
  49. package/chunks/{chunk-3BTSSIJO.js → chunk-3DOAKZYD.js} +99 -14
  50. package/chunks/{chunk-F53KKZUD.js → chunk-3LMDSCLU.js} +158 -10
  51. package/chunks/{chunk-2ZN3O5FT.js → chunk-457DR2MC.js} +6 -6
  52. package/chunks/{chunk-WG7BL3FY.js → chunk-473RJLIH.js} +1 -1
  53. package/chunks/{chunk-W5ZQMAEM.js → chunk-4Y2I3CI3.js} +1 -1
  54. package/chunks/{chunk-HGEUHUEV.js → chunk-54B2LTKP.js} +1 -1
  55. package/chunks/{chunk-IRH27ZC2.js → chunk-5EZRLTLQ.js} +4 -4
  56. package/chunks/{chunk-DLH7YIX6.js → chunk-5FK4MSHB.js} +3 -3
  57. package/chunks/{chunk-CUEXOHQH.js → chunk-5ODRE7E5.js} +9 -15
  58. package/chunks/{chunk-532WHF4F.js → chunk-5VQR2DD7.js} +2 -2
  59. package/chunks/{chunk-3KQBQ6FM.js → chunk-63WKMKVD.js} +190 -28
  60. package/chunks/{chunk-YBUMTY7B.js → chunk-66N6C4EH.js} +1 -1
  61. package/chunks/{chunk-MLQNSPRZ.js → chunk-6MLDTOHU.js} +15 -5
  62. package/chunks/{chunk-SBRX4BDI.js → chunk-6NKDU7YL.js} +2 -2
  63. package/chunks/{chunk-3UXUOFO6.js → chunk-6TMXX4Z4.js} +9 -10
  64. package/chunks/{chunk-Y2MYW47X.js → chunk-6WXVEDT2.js} +9 -2
  65. package/chunks/{chunk-ZHKTKHMO.js → chunk-7MIBD3LG.js} +1 -1
  66. package/chunks/{chunk-EVTNACMT.js → chunk-A6QMKS5S.js} +12 -12
  67. package/chunks/{chunk-NOAG7N22.js → chunk-A6YU6R5N.js} +2 -2
  68. package/chunks/{chunk-76RGWKLS.js → chunk-ABNX6E6K.js} +1 -1
  69. package/chunks/chunk-ACHCT36C.js +28 -0
  70. package/chunks/{chunk-NE624IVP.js → chunk-ADQUK6WA.js} +1 -1
  71. package/chunks/{chunk-PLLIWEM3.js → chunk-AEWCOE64.js} +2 -2
  72. package/chunks/{chunk-3FPYT6QC.js → chunk-ARDHE6MM.js} +23 -0
  73. package/chunks/{chunk-LILGKQ4B.js → chunk-AXZMWAJV.js} +156 -26
  74. package/chunks/{chunk-SYLECP23.js → chunk-B776VKDA.js} +4 -4
  75. package/chunks/{chunk-AC6KDLH3.js → chunk-BNYQHLPR.js} +1 -1
  76. package/chunks/{chunk-BZM5U74J.js → chunk-BS7ON54G.js} +724 -468
  77. package/chunks/{chunk-TPKQIA7G.js → chunk-BSIOCNDK.js} +1 -1
  78. package/chunks/{chunk-U7O65WKL.js → chunk-BW2SMO6L.js} +1 -1
  79. package/chunks/{chunk-POC3YMHG.js → chunk-BY6CE34S.js} +4 -4
  80. package/chunks/{chunk-RLLRJJDR.js → chunk-C3VNHDWJ.js} +2 -2
  81. package/chunks/{chunk-WBCPROWX.js → chunk-C4HBZQNH.js} +1 -1
  82. package/chunks/{chunk-MSNHNAQZ.js → chunk-C5ABXOC2.js} +3 -3
  83. package/chunks/{chunk-NOO4QFXM.js → chunk-C75BXMPM.js} +1 -3
  84. package/chunks/chunk-CCWWPFZJ.js +191 -0
  85. package/chunks/chunk-CFMZLE3L.js +75 -0
  86. package/chunks/{chunk-N7VWZDWW.js → chunk-CFSBWJBB.js} +4462 -3840
  87. package/chunks/{chunk-KOKPXIAN.js → chunk-CL7JONZN.js} +3 -3
  88. package/chunks/{chunk-AXTFYDXT.js → chunk-CXXAZ2LZ.js} +1 -1
  89. package/chunks/{chunk-JYKWOREU.js → chunk-DBUOMHLZ.js} +13 -3
  90. package/chunks/{chunk-R4Q2PEFV.js → chunk-DLJBYORJ.js} +1 -1
  91. package/chunks/{chunk-DT75RKNH.js → chunk-DNVA2MQ2.js} +3 -3
  92. package/chunks/{chunk-J3TJH52D.js → chunk-DOTF2PF2.js} +1 -1
  93. package/chunks/{chunk-HGAELO7B.js → chunk-DQMBQCTY.js} +2 -2
  94. package/chunks/{chunk-2ALXPGB4.js → chunk-E6IR653O.js} +1 -1
  95. package/chunks/{chunk-ZKYR7QS4.js → chunk-EDB556X7.js} +2 -2
  96. package/chunks/chunk-EKJXDLDD.js +32 -0
  97. package/chunks/{chunk-NUQVB25K.js → chunk-EKMJR7M3.js} +2 -2
  98. package/chunks/{chunk-7QYWGTHB.js → chunk-EPVEPTI3.js} +44 -151
  99. package/chunks/{chunk-GCDXVPFK.js → chunk-EZSSJSKR.js} +31 -7
  100. package/chunks/{chunk-S6Q6Q4P2.js → chunk-FBDHP23D.js} +1 -1
  101. package/chunks/{chunk-UKZ45TJL.js → chunk-FFBP5POK.js} +420 -219
  102. package/chunks/{chunk-3I7W2POO.js → chunk-FGROOEKM.js} +5 -40
  103. package/chunks/{chunk-HNLMYDQE.js → chunk-FMLBBXHB.js} +13 -9
  104. package/chunks/{chunk-SSGAAWLY.js → chunk-GCV4NOHV.js} +95 -73
  105. package/chunks/{chunk-ALMR3E6Q.js → chunk-GDWE23OR.js} +3 -3
  106. package/chunks/{chunk-XBZTAGB7.js → chunk-GMN73IMT.js} +1 -1
  107. package/chunks/{chunk-IAEXTMED.js → chunk-GNV2SFO7.js} +173 -7
  108. package/chunks/{chunk-CXTPVBFA.js → chunk-GSS4SZNG.js} +100 -17
  109. package/chunks/chunk-GXN7DWZZ.js +154 -0
  110. package/chunks/{chunk-SODMFNAR.js → chunk-H23UWPF7.js} +5 -5
  111. package/chunks/{chunk-6HUXPLB5.js → chunk-HEOH7JZY.js} +5 -5
  112. package/chunks/{chunk-DTNV6UZY.js → chunk-HFJSQ4GL.js} +10 -24
  113. package/chunks/{chunk-GOXQL4YH.js → chunk-HWRXJQ6B.js} +2 -2
  114. package/chunks/{chunk-VZUCTJ2P.js → chunk-I6YJZGHS.js} +10 -10
  115. package/chunks/{chunk-RZHU3K6M.js → chunk-IAS753HG.js} +2 -20
  116. package/chunks/{chunk-EDMXGXAK.js → chunk-IBRQG2MP.js} +10 -13
  117. package/chunks/chunk-INGBUYL6.js +230 -0
  118. package/chunks/{chunk-7BXXIQG4.js → chunk-J73WJIMT.js} +36 -72
  119. package/chunks/{chunk-XGYHNWL3.js → chunk-J7LBAKDH.js} +3 -3
  120. package/chunks/{chunk-Z3GF56ME.js → chunk-JAYWZWZF.js} +3 -3
  121. package/chunks/{chunk-DYFOSJHU.js → chunk-JBFC2644.js} +2756 -1153
  122. package/chunks/{chunk-Q5BD56BW.js → chunk-JPCYCFYG.js} +7 -7
  123. package/chunks/{chunk-LG5Y4OWO.js → chunk-JRHKM3YQ.js} +2 -2
  124. package/chunks/{chunk-NHCZJQE4.js → chunk-JZKBMADP.js} +6 -6
  125. package/chunks/{chunk-MF6E7FSA.js → chunk-K7CQWBLT.js} +8 -201
  126. package/chunks/{chunk-K2OJUPOE.js → chunk-KP2FHIFR.js} +12 -0
  127. package/chunks/{chunk-ZU47FBOC.js → chunk-KSIOXYVX.js} +126 -12
  128. package/chunks/{chunk-IV7GDNKC.js → chunk-KZCK5JUN.js} +4 -4
  129. package/chunks/{chunk-3XLK2QMY.js → chunk-L3S2Y2FF.js} +59 -16
  130. package/chunks/{chunk-ZW2EUO2A.js → chunk-L6DIANLD.js} +1 -1
  131. package/chunks/{chunk-6W4HBUA2.js → chunk-LATAUG2M.js} +1 -1
  132. package/chunks/{chunk-RWVD5RRY.js → chunk-LBDASOPR.js} +3 -3
  133. package/chunks/{chunk-OX7IZ2G5.js → chunk-LF5AD7PY.js} +4 -4
  134. package/chunks/{chunk-NMRCXKQ5.js → chunk-LKCNETDW.js} +3 -3
  135. package/chunks/chunk-LMJSPC55.js +260 -0
  136. package/chunks/{chunk-X6K77VHC.js → chunk-LWWRJRCD.js} +1 -1
  137. package/chunks/{chunk-UXEO7E3V.js → chunk-LYD3T3H7.js} +1 -0
  138. package/chunks/{chunk-KFZYGSJN.js → chunk-M3YNPR56.js} +3 -3
  139. package/chunks/{chunk-HBQ2NXOU.js → chunk-MDG6GKSE.js} +2 -2
  140. package/chunks/{chunk-E4UEO3XM.js → chunk-ME4JBHSB.js} +324 -2
  141. package/chunks/{chunk-BV6Q5HMY.js → chunk-MJHLKWGJ.js} +8 -7
  142. package/chunks/{chunk-NFYEQRLG.js → chunk-MQRLLBMQ.js} +1 -1
  143. package/chunks/{chunk-O4KNCAX4.js → chunk-NCPFOLM2.js} +11 -0
  144. package/chunks/{chunk-2SZH22YO.js → chunk-NJ2OFVUX.js} +115 -97
  145. package/chunks/{chunk-DAWWT2ID.js → chunk-NN4EC2WO.js} +1374 -2164
  146. package/chunks/{chunk-6MBXY6WM.js → chunk-NRQI3PGS.js} +1 -1
  147. package/chunks/{chunk-HBU7EKY4.js → chunk-NRUKL236.js} +45 -15
  148. package/chunks/{chunk-53GWJOLP.js → chunk-NTCFKGQF.js} +3 -1
  149. package/chunks/{chunk-3CZ2BQV6.js → chunk-NXUZFW3G.js} +49 -19
  150. package/chunks/{chunk-X7UJKOHZ.js → chunk-OMDXAHCT.js} +4 -6
  151. package/chunks/{chunk-5GLDOLNQ.js → chunk-OWUAZXXN.js} +4 -3
  152. package/chunks/{chunk-2UWQX4FP.js → chunk-OZEV3R3S.js} +1 -1
  153. package/chunks/{acp-subagent-executor-LEUN3N7N.js → chunk-PAPBT3WP.js} +11 -110
  154. package/chunks/{chunk-7ICHPMBQ.js → chunk-PHSQVB6D.js} +4 -4
  155. package/chunks/{chunk-FCQJLMA2.js → chunk-Q3TFRP5G.js} +178 -8
  156. package/chunks/{chunk-YQHLFCPU.js → chunk-Q5CCYZD3.js} +32 -24
  157. package/chunks/chunk-QQL5BFOL.js +1416 -0
  158. package/chunks/{chunk-ZKZHSB5W.js → chunk-QR4Q425T.js} +9 -9
  159. package/chunks/{chunk-J6MB5ZHZ.js → chunk-QZW6WRB7.js} +2 -1
  160. package/chunks/{chunk-TP6FYVQT.js → chunk-RSWBT7AZ.js} +33 -1
  161. package/chunks/{chunk-2PJRI3EH.js → chunk-RVOD66ID.js} +218 -43
  162. package/chunks/{chunk-W5FIP7FC.js → chunk-S3PU3CNW.js} +5 -5
  163. package/chunks/chunk-S7UQ3V2H.js +87 -0
  164. package/chunks/{chunk-N6VQ37ZZ.js → chunk-SFL6U7U7.js} +1 -1
  165. package/chunks/{chunk-MOS5OAOG.js → chunk-SROLVJFY.js} +6 -6
  166. package/chunks/{chunk-HUXPEUFL.js → chunk-SYROIHU7.js} +1 -1
  167. package/chunks/{chunk-E7LB57MB.js → chunk-T3LUMYFP.js} +6 -6
  168. package/chunks/{chunk-PSPAM24S.js → chunk-TBSCTWKF.js} +6 -0
  169. package/chunks/{chunk-5KI7ZDTB.js → chunk-TV5WDW7R.js} +24 -12
  170. package/chunks/{chunk-NMCDMLHL.js → chunk-TXUJOKVR.js} +50 -35
  171. package/chunks/{chunk-NHJKAR6E.js → chunk-TYWLBEL2.js} +972 -18
  172. package/chunks/chunk-U6H3XTFA.js +95 -0
  173. package/chunks/{chunk-GSILBZLN.js → chunk-U7RWQBGZ.js} +2 -2
  174. package/chunks/{chunk-7APZIRH3.js → chunk-V3CMBOQ6.js} +5 -5
  175. package/chunks/{chunk-JXNIF2O5.js → chunk-V545KI73.js} +1 -1
  176. package/chunks/chunk-VGY2RGXL.js +100 -0
  177. package/chunks/{chunk-TBEXLLAO.js → chunk-VRQZESKP.js} +1 -1
  178. package/chunks/{chunk-FN3JNDRU.js → chunk-VVI7MK3V.js} +3 -3
  179. package/chunks/{chunk-EUURTIV6.js → chunk-WBSJ6VPZ.js} +10 -2
  180. package/chunks/{chunk-NLNQNBZ2.js → chunk-WD6YQI5M.js} +1 -1
  181. package/chunks/chunk-WFNEY5G7.js +347 -0
  182. package/chunks/{chunk-XKBFYTCD.js → chunk-WK6DEH3Q.js} +46 -0
  183. package/chunks/{chunk-36HCNKDS.js → chunk-WKVZES7O.js} +65 -14
  184. package/chunks/{chunk-BWAMMKIS.js → chunk-WLLRNQVT.js} +135 -6
  185. package/chunks/{chunk-MHAADZOZ.js → chunk-WMSP3XZK.js} +3 -3
  186. package/chunks/{chunk-IL5M5NYD.js → chunk-WUTXSXPP.js} +11 -9
  187. package/chunks/{chunk-NJQTG2G3.js → chunk-XE5ZFBVD.js} +11 -11
  188. package/chunks/{chunk-OLTN767L.js → chunk-XO3Z27IL.js} +2 -2
  189. package/chunks/{chunk-VX63RJXE.js → chunk-XX5HQLCZ.js} +7 -0
  190. package/chunks/{chunk-2Z3T52OC.js → chunk-Y5TM7SBV.js} +7 -2
  191. package/chunks/{chunk-V2P3DOQR.js → chunk-YDFOHRS5.js} +1 -1
  192. package/chunks/{chunk-QMUYLYT5.js → chunk-YGFJ6BRT.js} +1 -1
  193. package/chunks/{chunk-LK2WUCDQ.js → chunk-YM6KUQ2S.js} +1 -1
  194. package/chunks/{chunk-F42YYSCK.js → chunk-YVF4PKCV.js} +8 -8
  195. package/chunks/{chunk-LDVNJZGH.js → chunk-Z2H5HQS3.js} +17 -8
  196. package/chunks/chunk-Z72PLR74.js +36 -0
  197. package/chunks/{chunk-BWQLXU37.js → chunk-ZDHXRKRG.js} +381 -86
  198. package/chunks/{chunk-BHTYRHJF.js → chunk-ZJ7JQUGY.js} +4 -1
  199. package/chunks/{chunk-4ALNJDHL.js → chunk-ZKIAGIGH.js} +87 -4
  200. package/chunks/{chunk-VG3Q2NC4.js → chunk-ZNI3YJHS.js} +32 -12
  201. package/chunks/chunk-ZRZZLM37.js +2780 -0
  202. package/chunks/{chunk-Q2LVVIKF.js → chunk-ZZUXUBEB.js} +29 -12
  203. package/chunks/codex-subagent-executor-SM3TUSBA.js +586 -0
  204. package/chunks/{config-utils-L6KLDYIV.js → config-utils-JHKHFOG6.js} +60 -56
  205. package/chunks/{contextCommand-UYEH7NIU.js → contextCommand-XE4NDYQW.js} +58 -54
  206. package/chunks/{core-runtime-NVHT3Z3V.js → core-runtime-PNCWH3RE.js} +58 -55
  207. package/chunks/{create-sub-session-TIGCFGCS.js → create-sub-session-MSGNIM37.js} +5 -2
  208. package/chunks/{create-sub-session-YWASE5VH.js → create-sub-session-P7E5Y3HY.js} +169 -89
  209. package/chunks/{cron-create-AKWX67FO.js → cron-create-U2JJ5CCF.js} +3 -3
  210. package/chunks/{cron-delete-XPB6IYZJ.js → cron-delete-7DM4LJWD.js} +2 -2
  211. package/chunks/{cron-list-XBKO4WU5.js → cron-list-VCUSZK2Y.js} +2 -2
  212. package/chunks/{daemon-G5TYKZD6.js → daemon-NJB4PWZ7.js} +3 -1
  213. package/chunks/{daemon-git-worktree-guard-FOW4RQSK.js → daemon-git-worktree-guard-JFD5VZRN.js} +58 -54
  214. package/chunks/{daemon-status-provider-O5KQZYMP.js → daemon-status-provider-A3VFVFWW.js} +68 -63
  215. package/chunks/{daemon-trust-policy-3ATXEON7.js → daemon-trust-policy-NPZ47MZH.js} +64 -60
  216. package/chunks/{daemon-trust-policy-monitor-7MCNDNEC.js → daemon-trust-policy-monitor-XG2CHL3Z.js} +64 -60
  217. package/chunks/{de-UU2YTO37.js → de-VGY3VNBU.js} +3 -3
  218. package/chunks/{deferred-core-runtime-JK5IXL5K.js → deferred-core-runtime-V42EMU27.js} +56 -52
  219. package/chunks/{discovery-XP4RMDUM.js → discovery-5KUEPR65.js} +2 -2
  220. package/chunks/{display-image-NAH3AZ63.js → display-image-QTHALY6N.js} +3 -3
  221. package/chunks/{dist-KLZ7XGEQ.js → dist-2QYIVNS6.js} +1 -4
  222. package/chunks/{dist-AHJYPSJL.js → dist-GUB7QRYA.js} +2 -5
  223. package/chunks/{dist-ZXTZTE54.js → dist-MPUZZOG5.js} +4 -17
  224. package/chunks/{dist-F2DVGTL3.js → dist-NIOJXMGY.js} +111 -101
  225. package/chunks/{dist-KJGRVIGJ.js → dist-PA7WPFVE.js} +5 -36
  226. package/chunks/{dist-AIKC5E5P.js → dist-SE4J6Z4O.js} +43 -669
  227. package/chunks/{dist-H6G3K26N.js → dist-T6DDPDLQ.js} +14 -34
  228. package/chunks/{dist-GWNQVPZT.js → dist-TFGETXFN.js} +10 -33
  229. package/chunks/{dist-ZA52JXAS.js → dist-VDLSBCLM.js} +1 -5
  230. package/chunks/{edit-SY35KYIE.js → edit-E2ZGJDBJ.js} +46 -42
  231. package/chunks/{en-CAJHTIQT.js → en-E5ZO5TZW.js} +5 -3
  232. package/chunks/{enter-worktree-54L5QJ3N.js → enter-worktree-CAARFWBI.js} +6 -5
  233. package/chunks/{enterPlanMode-HXX6KQJR.js → enterPlanMode-442YAAZB.js} +43 -39
  234. package/chunks/{environment-DKXHG4HB.js → environment-DCJ5FVHM.js} +59 -55
  235. package/chunks/{errors-ADY7LQJJ.js → errors-ZWTDW2NJ.js} +58 -54
  236. package/chunks/exec-RPKEY6HP.js +505 -0
  237. package/chunks/{exit-worktree-EORJDKDS.js → exit-worktree-JXGGUOBP.js} +6 -5
  238. package/chunks/{exitPlanMode-HSK2CQI6.js → exitPlanMode-4PLQOFOO.js} +43 -39
  239. package/chunks/{fast-path-U636VWN2.js → fast-path-DBSGDGB3.js} +10 -10
  240. package/chunks/{fast-path-settings-V7MI7EZJ.js → fast-path-settings-XDYX7X5Z.js} +2 -2
  241. package/chunks/{fr-HKNWVXRJ.js → fr-UAZJJH5N.js} +3 -3
  242. package/chunks/{glob-GUGGTH5L.js → glob-VWOE4W7K.js} +43 -39
  243. package/chunks/{goal-tools-PXYRSQGX.js → goal-tools-K6SIBXMB.js} +49 -41
  244. package/chunks/{grep-3PKFKLCA.js → grep-H2I33VAO.js} +8 -3
  245. package/chunks/{handleAutoUpdate-5KHS4HIN.js → handleAutoUpdate-NCC3XELY.js} +61 -57
  246. package/chunks/{i18n-KSGKMUPT.js → i18n-GO7JI4PT.js} +57 -53
  247. package/chunks/{image-gen-OCCR2WWU.js → image-gen-5G2TQ3DY.js} +6 -5
  248. package/chunks/{initializer-YYT5XEZF.js → initializer-BXKAW5A6.js} +64 -60
  249. package/chunks/{installationInfo-UNSBPYW2.js → installationInfo-5JONIX62.js} +57 -53
  250. package/chunks/{ja-GJS5RZGU.js → ja-2RITCMAJ.js} +3 -3
  251. package/chunks/list-QW74LCLS.js +133 -0
  252. package/chunks/{list-agents-QLDXS5OD.js → list-agents-EWDCEPIW.js} +3 -3
  253. package/chunks/{llm-XGGLBGPH.js → llm-FJHSMJTM.js} +161 -125
  254. package/chunks/{llm-content-generator-ZHQQT5W7.js → llm-content-generator-3VLLPQS4.js} +14 -7
  255. package/chunks/{loadedSettingsAdapter-3DXLASK7.js → loadedSettingsAdapter-OLMQSKVC.js} +64 -60
  256. package/chunks/{loggingContentGenerator-V72OCCJO.js → loggingContentGenerator-IMLIJULY.js} +47 -43
  257. package/chunks/{loop-wakeup-HHMYIC7Z.js → loop-wakeup-VG6CGBQA.js} +4 -4
  258. package/chunks/{ls-N7ABR6HI.js → ls-6ZB3BEIR.js} +1 -1
  259. package/chunks/{lsp-LTOFWG5P.js → lsp-M54FQARP.js} +5 -1
  260. package/chunks/{managed-npm-update-HV5LPZH2.js → managed-npm-update-LXLBWCNA.js} +57 -53
  261. package/chunks/mcp-FOXA3372.js +127 -0
  262. package/chunks/model-configuration-SCOI2KPF.js +140 -0
  263. package/chunks/modelConfigUtils-EA44S64C.js +119 -0
  264. package/chunks/{monitor-TLBNM4MV.js → monitor-TJAHYCCY.js} +43 -39
  265. package/chunks/{nonInteractiveCli-LSJSQ2W4.js → nonInteractiveCli-QH2HABWC.js} +112 -107
  266. package/chunks/{notebook-edit-OSPOLZP6.js → notebook-edit-WEMSBUBS.js} +45 -41
  267. package/chunks/{openaiContentGenerator-BE4S5TRD.js → openaiContentGenerator-WD5DWYOA.js} +24 -19
  268. package/chunks/{openaiResponsesContentGenerator-RTCAJ5V5.js → openaiResponsesContentGenerator-AWRYZLJU.js} +110 -19
  269. package/chunks/{pidfile-H32FEPWA.js → pidfile-TQL2LCEG.js} +56 -52
  270. package/chunks/{processUtils-SSLIPDEA.js → processUtils-6ZU56DCI.js} +2 -2
  271. package/chunks/{prompt-terminal-ledger-I5SLL6UF.js → prompt-terminal-ledger-3HAKHXFV.js} +57 -53
  272. package/chunks/{pt-FXMYXEUV.js → pt-5ZF7ZQUV.js} +3 -3
  273. package/chunks/{qwenContentGenerator-TMQC623Z.js → qwenContentGenerator-3OIZQZLC.js} +47 -43
  274. package/chunks/{qwenOAuth2-3ZRQHHTC.js → qwenOAuth2-WIEUEFEY.js} +5 -4
  275. package/chunks/{read-file-T2QAIZE2.js → read-file-2PWWL6J2.js} +9 -8
  276. package/chunks/{read-mcp-resource-B37WANAQ.js → read-mcp-resource-LPSWXVOD.js} +1 -1
  277. package/chunks/{record-artifact-OAXWXZ5D.js → record-artifact-PXMNP7GZ.js} +3 -3
  278. package/chunks/{record-source-D7R7X3GT.js → record-source-2GSY5JD5.js} +6 -6
  279. package/chunks/{report-findings-AR3VC6EQ.js → report-findings-W6GR7SYZ.js} +4 -4
  280. package/chunks/{request-shutdown-IKNWTX5M.js → request-shutdown-53SNYGVR.js} +5 -5
  281. package/chunks/{resumeHistoryUtils-QLKDH5GY.js → resumeHistoryUtils-S4TEUTKE.js} +63 -59
  282. package/chunks/{ripGrep-YGWL7KCV.js → ripGrep-5NMGLMLX.js} +13 -11
  283. package/chunks/{ru-RMHURE5U.js → ru-7BNZFQKG.js} +3 -3
  284. package/chunks/{run-qwen-serve-26KZDECC.js → run-qwen-serve-6MGYRK4V.js} +314 -127
  285. package/chunks/{runtime-BMEIVDDG.js → runtime-ZJYUQCPP.js} +69 -65
  286. package/chunks/{scheduled-tasks-NCFPP6VQ.js → scheduled-tasks-5MKF4EV3.js} +66 -60
  287. package/chunks/{scheduler-47TVMUVN.js → scheduler-72DZWRH5.js} +58 -54
  288. package/chunks/{sdk-exporters-http-VWTF4W6K.js → sdk-exporters-http-3R2TRQHE.js} +2 -1
  289. package/chunks/{sdk-impl-G6FVTBQZ.js → sdk-impl-4WF3VZ2F.js} +3 -3
  290. package/chunks/{send-message-TWOGWCBG.js → send-message-UMJKN27Q.js} +7 -7
  291. package/chunks/{serve-KL3G6LQQ.js → serve-7ZDMMA7I.js} +66 -62
  292. package/chunks/{server-LBPYXZ5G.js → server-ONK5RTEV.js} +783 -350
  293. package/chunks/{session-YG6742LO.js → session-XQW2LM4S.js} +117 -112
  294. package/chunks/{session-attachments-root-OUBQDYC4.js → session-attachments-root-Q5IUCMQV.js} +56 -52
  295. package/chunks/{session-pr-refresh-EKGMYNAW.js → session-pr-refresh-MVECWT3W.js} +66 -60
  296. package/chunks/{settings-DDNHJX2L.js → settings-DL6K2HQ3.js} +67 -63
  297. package/chunks/{shell-KUCXWITU.js → shell-BLP25QJU.js} +43 -39
  298. package/chunks/{skill-JQLKPNWZ.js → skill-7KURUNLD.js} +128 -23
  299. package/chunks/{skill-settings-XERQCUXZ.js → skill-settings-MY76LM46.js} +72 -60
  300. package/chunks/{spawnChannel-GQ45QFGB.js → spawnChannel-IJLH3Z74.js} +60 -55
  301. package/chunks/{standalone-update-PRF3ILGZ.js → standalone-update-YQKN7VNO.js} +58 -54
  302. package/chunks/{start-opentui-ui-JDSOZE3N.js → start-opentui-ui-ORNGKZTG.js} +2693 -2160
  303. package/chunks/{startInteractiveUI-RRW3JVHN.js → startInteractiveUI-PRLIKB4U.js} +1610 -1773
  304. package/chunks/{syntheticOutput-F6F27JMK.js → syntheticOutput-EX5L5GYI.js} +2 -2
  305. package/chunks/{task-create-Y623TBHB.js → task-create-75HVPEAH.js} +7 -7
  306. package/chunks/{task-list-FCPEEGWL.js → task-list-ZLJSMRFA.js} +2 -2
  307. package/chunks/{task-stop-QTKZXLPH.js → task-stop-MD7P6QGK.js} +1 -1
  308. package/chunks/{task-update-YLSXF25N.js → task-update-RI7QNVDP.js} +20 -13
  309. package/chunks/{team-create-5DRLOLOE.js → team-create-ANLKOQ44.js} +43 -39
  310. package/chunks/{team-delete-S7TLHZCF.js → team-delete-RIDINW6I.js} +1 -1
  311. package/chunks/{team-plan-approval-MWSGAL5T.js → team-plan-approval-EFUENI6Y.js} +43 -39
  312. package/chunks/{terminal-image-renderer-H7PD4FQW.js → terminal-image-renderer-CXMFIWKC.js} +58 -54
  313. package/chunks/{theme-manager-7AV73D6R.js → theme-manager-JUFYQDQQ.js} +56 -52
  314. package/chunks/{todoWrite-5QI2H2FW.js → todoWrite-XSTG2VT5.js} +6 -3
  315. package/chunks/{tool-search-UGYTBLUV.js → tool-search-SNCEA4VA.js} +17 -12
  316. package/chunks/{total-session-admission-JIHSTJ5S.js → total-session-admission-UHYNUO3L.js} +63 -58
  317. package/chunks/{tree-sitter-4D7QS7F6.js → tree-sitter-NZ3QACD7.js} +1 -1
  318. package/chunks/{tree-sitter-bash-VEJGF5XF.js → tree-sitter-bash-WXHLMORC.js} +1 -1
  319. package/chunks/{trustedFolders-5VCBXFOP.js → trustedFolders-YBR5URPG.js} +57 -53
  320. package/chunks/{update-relaunch-4LF3APCV.js → update-relaunch-L6MTSN76.js} +5 -5
  321. package/chunks/{updateCheck-4T3WUE5F.js → updateCheck-Z3SPZXHC.js} +60 -56
  322. package/chunks/{useAutoAcceptIndicator-UMGB64Z6.js → useAutoAcceptIndicator-PR5XGMO6.js} +68 -64
  323. package/chunks/{validateNonInterActiveAuth-GFJ72U2C.js → validateNonInterActiveAuth-KFLTWEYW.js} +109 -104
  324. package/chunks/{version-EAAZN4T2.js → version-NGAKFVUF.js} +1 -1
  325. package/chunks/{web-fetch-VRU3A2NI.js → web-fetch-WPGTHGU5.js} +15 -13
  326. package/chunks/web-search-JT63IJJV.js +39 -0
  327. package/chunks/{web-shell-static-CCN4JZEE.js → web-shell-static-T7UGLVE4.js} +2 -7
  328. package/chunks/{workflow-UHPFALVZ.js → workflow-EB63BAL4.js} +179 -79
  329. package/chunks/workspace-providers-status-NEPR67D2.js +133 -0
  330. package/chunks/{workspace-registration-store-A7RGKW62.js → workspace-registration-store-CFWXOMGH.js} +2 -2
  331. package/chunks/{workspace-registry-C2NGE6SD.js → workspace-registry-6KRZXOGB.js} +63 -58
  332. package/chunks/{workspace-runtime-coordinator-QKMZ24YF.js → workspace-runtime-coordinator-SP4X3UVH.js} +66 -59
  333. package/chunks/{workspace-service-RQTTAGGC.js → workspace-service-PRMYJTTV.js} +70 -65
  334. package/chunks/workspace-skills-status-VYTZJ5MB.js +130 -0
  335. package/chunks/{workspace-trust-reconciler-KFWATZUU.js → workspace-trust-reconciler-B4QMGDMI.js} +73 -68
  336. package/chunks/{write-file-DPVB2SBQ.js → write-file-EGBMW7TS.js} +45 -41
  337. package/chunks/{zh-TW-2K2WRFPY.js → zh-TW-7PRVUGLW.js} +5 -3
  338. package/chunks/{zh-S5V3Z5CR.js → zh-V2EYTYJP.js} +5 -3
  339. package/chunks/{zoom-image-S7AWLAPC.js → zoom-image-UR6K2LDR.js} +11 -10
  340. package/cli.js +18 -17
  341. package/codeModeHost.js +4425 -0
  342. package/export-transcript-document.css +1 -1
  343. package/export-transcript-document.js +151 -151
  344. package/locales/ca.js +5 -6
  345. package/locales/de.js +5 -6
  346. package/locales/en.js +7 -6
  347. package/locales/fr.js +6 -6
  348. package/locales/ja.js +5 -6
  349. package/locales/pt.js +5 -6
  350. package/locales/ru.js +6 -6
  351. package/locales/zh-TW.js +7 -6
  352. package/locales/zh.js +7 -6
  353. package/package.json +4 -3
  354. package/web-shell/assets/{abnfDiagram-VCTEODGH-nU24rpIE.js → abnfDiagram-VCTEODGH-S_JCiANq.js} +1 -1
  355. package/web-shell/assets/{arc-D1hTu8QI.js → arc-DP-839Xn.js} +1 -1
  356. package/web-shell/assets/architectureDiagram-5GKGNRK7-C8rCd2KK.js +36 -0
  357. package/web-shell/assets/blockDiagram-NRAW4CY4-DQR82jwr.js +129 -0
  358. package/web-shell/assets/{c4Diagram-UCG6FXSJ-kEFoC1ei.js → c4Diagram-UCG6FXSJ-D21PNMRP.js} +4 -4
  359. package/web-shell/assets/channel-BgGrpX_z.js +1 -0
  360. package/web-shell/assets/{chunk-2Q5K7J3B-DbT9wS7j.js → chunk-2Q5K7J3B-KdDInGLi.js} +1 -1
  361. package/web-shell/assets/{chunk-5VM5RSS4-CNbULt6O.js → chunk-5VM5RSS4-ltb7zRmH.js} +1 -1
  362. package/web-shell/assets/{chunk-F27PBJKO-CbQRy4Tb.js → chunk-F27PBJKO-DcpQA0Ng.js} +1 -1
  363. package/web-shell/assets/chunk-G27WJ6UU-C8NDZxcy.js +231 -0
  364. package/web-shell/assets/chunk-JWPE2WC7-hXhhHTs1.js +1 -0
  365. package/web-shell/assets/chunk-LCL6LL3I-CLaOR-Hl.js +206 -0
  366. package/web-shell/assets/chunk-POPQ4Y6H-Y5_qlB1N.js +1 -0
  367. package/web-shell/assets/{chunk-SVP7TREG-DyBb2Axj.js → chunk-SVP7TREG-BWX2Voh7.js} +4 -4
  368. package/web-shell/assets/{chunk-XXDRQBXY-BIA0eb5B.js → chunk-XXDRQBXY-1wmj_kXI.js} +1 -1
  369. package/web-shell/assets/classDiagram-DTDB5LWJ-jUH7ADYs.js +1 -0
  370. package/web-shell/assets/classDiagram-v2-JRS7N3AN-jUH7ADYs.js +1 -0
  371. package/web-shell/assets/cose-bilkent-JH36ORCC-DpLc-cdd.js +1 -0
  372. package/web-shell/assets/cynefin-OW5HDTMX-DhxGiPZW.js +178 -0
  373. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-LENf_IUy.js → cynefinDiagram-5FMLGOSQ-Dl3jfBry.js} +1 -1
  374. package/web-shell/assets/{cytoscape.esm-CUqq0XTU.js → cytoscape.esm-DJK6lGiH.js} +3 -3
  375. package/web-shell/assets/dagre-3AP2YEHR-C8FA8vJk.js +4 -0
  376. package/web-shell/assets/diagram-S7CK7UJ4-D-quIUtW.js +30 -0
  377. package/web-shell/assets/diagram-UQ7AKVKN-Bjo09Uts.js +41 -0
  378. package/web-shell/assets/diagram-VSXAHHWV-IoI3ttq4.js +3 -0
  379. package/web-shell/assets/diagram-VX7I27RA-BKyOZ5SO.js +24 -0
  380. package/web-shell/assets/diagram-Z3DM3KII-Cu_OHEhw.js +24 -0
  381. package/web-shell/assets/{ebnfDiagram-PWID7BFC-BGpiquRm.js → ebnfDiagram-PWID7BFC-UVB-bbPg.js} +1 -1
  382. package/web-shell/assets/{erDiagram-SSCWMZ5O-D0besu_U.js → erDiagram-SSCWMZ5O-l8drddto.js} +13 -13
  383. package/web-shell/assets/flowDiagram-A5DVABFB-DU1I_VAI.js +168 -0
  384. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-CNlsAeNr.js → ganttDiagram-EL5Y4UJY-BLRH05uB.js} +1 -1
  385. package/web-shell/assets/gitGraphDiagram-WWUBYQGX-Czg_BkRE.js +106 -0
  386. package/web-shell/assets/index-CmMV8Jla.js +3 -0
  387. package/web-shell/assets/{index-CGT341lL.js → index-DohPy72Z.js} +1 -1
  388. package/web-shell/assets/index-DyMtNYuu.js +2207 -0
  389. package/web-shell/assets/index-n6N-2a3v.css +36 -0
  390. package/web-shell/assets/{infoDiagram-RXCK75RN-Bpai64Ll.js → infoDiagram-RXCK75RN-BpBvjkro.js} +1 -1
  391. package/web-shell/assets/ishikawaDiagram-5VMMS53U-phy1l3jm.js +70 -0
  392. package/web-shell/assets/{journeyDiagram-EYS64GPL-iz_DKgFX.js → journeyDiagram-EYS64GPL-oY-9LgVS.js} +1 -1
  393. package/web-shell/assets/kanban-definition-3QL26DDD-slZoy-sc.js +89 -0
  394. package/web-shell/assets/{layout-qEvKgnvU.js → layout-0hnn_P9l.js} +1 -1
  395. package/web-shell/assets/{linear-C6lklGdq.js → linear-7Wqe8DRy.js} +1 -1
  396. package/web-shell/assets/mermaid.core-BaK8n0bq.js +312 -0
  397. package/web-shell/assets/mindmap-definition-FBJOCRG2-BedUdy_E.js +96 -0
  398. package/web-shell/assets/{pegDiagram-XKGWAZYB-BhD0q0i6.js → pegDiagram-XKGWAZYB-DQLRdmxq.js} +1 -1
  399. package/web-shell/assets/pieDiagram-E7YTZNPT-UC20w9-5.js +39 -0
  400. package/web-shell/assets/quadrantDiagram-AXDQQJYC-CQx2Hmk3.js +7 -0
  401. package/web-shell/assets/qwen-code-notification-BRVagufF.png +0 -0
  402. package/web-shell/assets/{railroadDiagram-O6MQD6OU-E1g2KIFK.js → railroadDiagram-O6MQD6OU-2UEJe_y-.js} +1 -1
  403. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CuerYJOe.js → requirementDiagram-EFPCY7ZU-DOAJggB4.js} +13 -13
  404. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CqWyCZGA.js → sankeyDiagram-P5KCCOFB-DnQ_qJo7.js} +7 -7
  405. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-B-YWb8x4.js → sequenceDiagram-WJ2MYXX4-DZrZUoCo.js} +16 -16
  406. package/web-shell/assets/sizeCapture-X5ZJPWSS-B5G4GDQB.js +1 -0
  407. package/web-shell/assets/{stateDiagram-HBIQ2CUA-C8LDpNHS.js → stateDiagram-HBIQ2CUA-Bn1cT0qF.js} +1 -1
  408. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BF3xtNvJ.js +1 -0
  409. package/web-shell/assets/swimlanes-XN3QIQJK-Bzhcdn87.js +1 -0
  410. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-B753mA3E.js +8 -0
  411. package/web-shell/assets/timeline-definition-24CTP7MA-BqZ_3D10.js +120 -0
  412. package/web-shell/assets/vennDiagram-4TSXK5OY-z9kw1kmm.js +34 -0
  413. package/web-shell/assets/wardleyDiagram-VM6X3IG4-Cydp1zJW.js +78 -0
  414. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-ruD2Wjhg.js → xychartDiagram-S5SC5T6Z-j4X1lQKo.js} +1 -1
  415. package/web-shell/index.html +2 -2
  416. package/chunks/chunk-7Q2AXRDJ.js +0 -114
  417. package/chunks/chunk-AEY27Z35.js +0 -1411
  418. package/chunks/chunk-CFKIH3D3.js +0 -50
  419. package/chunks/chunk-HWVUSYSN.js +0 -126
  420. package/chunks/chunk-QHMLYMMS.js +0 -32
  421. package/chunks/chunk-SAH4BD2J.js +0 -92
  422. package/chunks/chunk-TWUKBNWM.js +0 -86
  423. package/chunks/chunk-ZTTC7T4X.js +0 -126
  424. package/chunks/list-YL6LDQKQ.js +0 -129
  425. package/chunks/mcp-IYVSIW6O.js +0 -123
  426. package/chunks/web-search-NEGYQNDJ.js +0 -912
  427. package/chunks/workspace-providers-status-AEYISSU2.js +0 -127
  428. package/chunks/workspace-skills-status-5HWZU3HX.js +0 -126
  429. package/web-shell/assets/architectureDiagram-5GKGNRK7-B_fgkKe7.js +0 -36
  430. package/web-shell/assets/blockDiagram-NRAW4CY4-C3pddUNg.js +0 -129
  431. package/web-shell/assets/channel-Blod4z1X.js +0 -1
  432. package/web-shell/assets/chunk-G27WJ6UU-CVbXTxYk.js +0 -231
  433. package/web-shell/assets/chunk-JWPE2WC7-D89c_BXy.js +0 -1
  434. package/web-shell/assets/chunk-LCL6LL3I-B7-I_9KB.js +0 -206
  435. package/web-shell/assets/chunk-POPQ4Y6H-DcLQFzS4.js +0 -1
  436. package/web-shell/assets/classDiagram-DTDB5LWJ-D6hFDMqb.js +0 -1
  437. package/web-shell/assets/classDiagram-v2-JRS7N3AN-D6hFDMqb.js +0 -1
  438. package/web-shell/assets/cose-bilkent-JH36ORCC-Db2FYN85.js +0 -1
  439. package/web-shell/assets/cynefin-OW5HDTMX-i4GwmBVy.js +0 -178
  440. package/web-shell/assets/dagre-3AP2YEHR-CF9XVrD9.js +0 -4
  441. package/web-shell/assets/diagram-S7CK7UJ4-DD5PJfSm.js +0 -30
  442. package/web-shell/assets/diagram-UQ7AKVKN-CjD_sBMj.js +0 -41
  443. package/web-shell/assets/diagram-VSXAHHWV-U5WwMqyA.js +0 -3
  444. package/web-shell/assets/diagram-VX7I27RA-BujpHJJf.js +0 -24
  445. package/web-shell/assets/diagram-Z3DM3KII-3ZLtKEXo.js +0 -24
  446. package/web-shell/assets/flowDiagram-A5DVABFB-9DwDuIyr.js +0 -168
  447. package/web-shell/assets/gitGraphDiagram-WWUBYQGX-C_pPFiTR.js +0 -106
  448. package/web-shell/assets/index-BYWs4JWq.js +0 -3
  449. package/web-shell/assets/index-D3YS6KuJ.js +0 -2173
  450. package/web-shell/assets/index-eBxK3rs2.css +0 -36
  451. package/web-shell/assets/ishikawaDiagram-5VMMS53U-ktpJFq4r.js +0 -70
  452. package/web-shell/assets/kanban-definition-3QL26DDD-m_gG00Yt.js +0 -89
  453. package/web-shell/assets/mermaid.core-DSCYB_2P.js +0 -312
  454. package/web-shell/assets/mindmap-definition-FBJOCRG2-DRQbT8w-.js +0 -96
  455. package/web-shell/assets/pieDiagram-E7YTZNPT-BvIGQCSd.js +0 -39
  456. package/web-shell/assets/quadrantDiagram-AXDQQJYC-BDQtfpU-.js +0 -7
  457. package/web-shell/assets/sizeCapture-X5ZJPWSS-BB7YY4Tl.js +0 -1
  458. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-C4CbdvGa.js +0 -1
  459. package/web-shell/assets/swimlanes-XN3QIQJK-D94vOoxZ.js +0 -1
  460. package/web-shell/assets/swimlanesDiagram-VK2B7HYN--QNSIOC8.js +0 -8
  461. package/web-shell/assets/timeline-definition-24CTP7MA-C9C8uEYm.js +0 -120
  462. package/web-shell/assets/vennDiagram-4TSXK5OY-CYzMHbVW.js +0 -34
  463. package/web-shell/assets/wardleyDiagram-VM6X3IG4-G9nhtLES.js +0 -78
  464. package/chunks/{open-with-auth-6MVIHMXB.js → open-with-auth-XFCCJOO6.js} +3 -3
@@ -0,0 +1,312 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DyMtNYuu.js","assets/index-n6N-2a3v.css","assets/sizeCapture-X5ZJPWSS-B5G4GDQB.js","assets/dagre-3AP2YEHR-C8FA8vJk.js","assets/layout-0hnn_P9l.js","assets/swimlanes-XN3QIQJK-Bzhcdn87.js","assets/cose-bilkent-JH36ORCC-DpLc-cdd.js","assets/cytoscape.esm-DJK6lGiH.js","assets/c4Diagram-UCG6FXSJ-D21PNMRP.js","assets/chunk-F27PBJKO-DcpQA0Ng.js","assets/flowDiagram-A5DVABFB-DU1I_VAI.js","assets/chunk-5VM5RSS4-ltb7zRmH.js","assets/chunk-XXDRQBXY-1wmj_kXI.js","assets/chunk-POPQ4Y6H-Y5_qlB1N.js","assets/channel-BgGrpX_z.js","assets/swimlanesDiagram-VK2B7HYN-B753mA3E.js","assets/erDiagram-SSCWMZ5O-l8drddto.js","assets/gitGraphDiagram-WWUBYQGX-Czg_BkRE.js","assets/chunk-2Q5K7J3B-KdDInGLi.js","assets/chunk-JWPE2WC7-hXhhHTs1.js","assets/cynefin-OW5HDTMX-DhxGiPZW.js","assets/ganttDiagram-EL5Y4UJY-BLRH05uB.js","assets/linear-7Wqe8DRy.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-RXCK75RN-BpBvjkro.js","assets/pieDiagram-E7YTZNPT-UC20w9-5.js","assets/arc-DP-839Xn.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-AXDQQJYC-CQx2Hmk3.js","assets/xychartDiagram-S5SC5T6Z-j4X1lQKo.js","assets/requirementDiagram-EFPCY7ZU-DOAJggB4.js","assets/sequenceDiagram-WJ2MYXX4-DZrZUoCo.js","assets/classDiagram-DTDB5LWJ-jUH7ADYs.js","assets/chunk-LCL6LL3I-CLaOR-Hl.js","assets/classDiagram-v2-JRS7N3AN-jUH7ADYs.js","assets/stateDiagram-HBIQ2CUA-Bn1cT0qF.js","assets/chunk-G27WJ6UU-C8NDZxcy.js","assets/stateDiagram-v2-4QOOHH4V-BF3xtNvJ.js","assets/journeyDiagram-EYS64GPL-oY-9LgVS.js","assets/timeline-definition-24CTP7MA-BqZ_3D10.js","assets/mindmap-definition-FBJOCRG2-BedUdy_E.js","assets/kanban-definition-3QL26DDD-slZoy-sc.js","assets/sankeyDiagram-P5KCCOFB-DnQ_qJo7.js","assets/diagram-Z3DM3KII-Cu_OHEhw.js","assets/diagram-UQ7AKVKN-Bjo09Uts.js","assets/blockDiagram-NRAW4CY4-DQR82jwr.js","assets/diagram-S7CK7UJ4-D-quIUtW.js","assets/architectureDiagram-5GKGNRK7-C8rCd2KK.js","assets/diagram-VSXAHHWV-IoI3ttq4.js","assets/ishikawaDiagram-5VMMS53U-phy1l3jm.js","assets/vennDiagram-4TSXK5OY-z9kw1kmm.js","assets/diagram-VX7I27RA-BKyOZ5SO.js","assets/wardleyDiagram-VM6X3IG4-Cydp1zJW.js","assets/cynefinDiagram-5FMLGOSQ-Dl3jfBry.js","assets/railroadDiagram-O6MQD6OU-2UEJe_y-.js","assets/chunk-SVP7TREG-BWX2Voh7.js","assets/ebnfDiagram-PWID7BFC-UVB-bbPg.js","assets/abnfDiagram-VCTEODGH-S_JCiANq.js","assets/pegDiagram-XKGWAZYB-DQLRdmxq.js"])))=>i.map(i=>d[i]);
2
+ var xx=Object.defineProperty;var Cx=(e,t,r)=>t in e?xx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ut=(e,t,r)=>Cx(e,typeof t!="symbol"?t+"":t,r);import{j as Ml,i as zn,_ as Mt}from"./index-DyMtNYuu.js";var nf=Object.defineProperty,f=(e,t)=>nf(e,"name",{value:t,configurable:!0}),bx=(e,t)=>{for(var r in t)nf(e,r,{get:t[r],enumerable:!0})},lf={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(zn,function(){var r=1e3,i=6e4,s=36e5,o="millisecond",a="second",n="minute",l="hour",c="day",h="week",u="month",d="quarter",p="year",y="date",m="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var D=["th","st","nd","rd"],B=$%100;return"["+$+(D[(B-20)%10]||D[B]||D[0])+"]"}},T=function($,D,B){var q=String($);return!q||q.length>=D?$:""+Array(D+1-q.length).join(B)+$},S={s:T,z:function($){var D=-$.utcOffset(),B=Math.abs(D),q=Math.floor(B/60),I=B%60;return(D<=0?"+":"-")+T(q,2,"0")+":"+T(I,2,"0")},m:function $(D,B){if(D.date()<B.date())return-$(B,D);var q=12*(B.year()-D.year())+(B.month()-D.month()),I=D.clone().add(q,u),it=B-I<0,J=D.clone().add(q+(it?-1:1),u);return+(-(q+(B-I)/(it?I-J:J-I))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:u,y:p,w:h,d:c,D:y,h:l,m:n,s:a,ms:o,Q:d}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},v="en",L={};L[v]=k;var A="$isDayjsObject",F=function($){return $ instanceof st||!(!$||!$[A])},G=function $(D,B,q){var I;if(!D)return v;if(typeof D=="string"){var it=D.toLowerCase();L[it]&&(I=it),B&&(L[it]=B,I=it);var J=D.split("-");if(!I&&J.length>1)return $(J[0])}else{var mt=D.name;L[mt]=D,I=mt}return!q&&I&&(v=I),I||!q&&v},Y=function($,D){if(F($))return $.clone();var B=typeof D=="object"?D:{};return B.date=$,B.args=arguments,new st(B)},N=S;N.l=G,N.i=F,N.w=function($,D){return Y($,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var st=function(){function $(B){this.$L=G(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[A]=!0}var D=$.prototype;return D.parse=function(B){this.$d=function(q){var I=q.date,it=q.utc;if(I===null)return new Date(NaN);if(N.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var J=I.match(x);if(J){var mt=J[2]-1||0,_t=(J[7]||"0").substring(0,3);return it?new Date(Date.UTC(J[1],mt,J[3]||1,J[4]||0,J[5]||0,J[6]||0,_t)):new Date(J[1],mt,J[3]||1,J[4]||0,J[5]||0,J[6]||0,_t)}}return new Date(I)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return N},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(B,q){var I=Y(B);return this.startOf(q)<=I&&I<=this.endOf(q)},D.isAfter=function(B,q){return Y(B)<this.startOf(q)},D.isBefore=function(B,q){return this.endOf(q)<Y(B)},D.$g=function(B,q,I){return N.u(B)?this[q]:this.set(I,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,q){var I=this,it=!!N.u(q)||q,J=N.p(B),mt=function(Bt,Nt){var zt=N.w(I.$u?Date.UTC(I.$y,Nt,Bt):new Date(I.$y,Nt,Bt),I);return it?zt:zt.endOf(c)},_t=function(Bt,Nt){return N.w(I.toDate()[Bt].apply(I.toDate("s"),(it?[0,0,0,0]:[23,59,59,999]).slice(Nt)),I)},Tt=this.$W,ft=this.$M,Lt=this.$D,gt="set"+(this.$u?"UTC":"");switch(J){case p:return it?mt(1,0):mt(31,11);case u:return it?mt(1,ft):mt(0,ft+1);case h:var wt=this.$locale().weekStart||0,$t=(Tt<wt?Tt+7:Tt)-wt;return mt(it?Lt-$t:Lt+(6-$t),ft);case c:case y:return _t(gt+"Hours",0);case l:return _t(gt+"Minutes",1);case n:return _t(gt+"Seconds",2);case a:return _t(gt+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,q){var I,it=N.p(B),J="set"+(this.$u?"UTC":""),mt=(I={},I[c]=J+"Date",I[y]=J+"Date",I[u]=J+"Month",I[p]=J+"FullYear",I[l]=J+"Hours",I[n]=J+"Minutes",I[a]=J+"Seconds",I[o]=J+"Milliseconds",I)[it],_t=it===c?this.$D+(q-this.$W):q;if(it===u||it===p){var Tt=this.clone().set(y,1);Tt.$d[mt](_t),Tt.init(),this.$d=Tt.set(y,Math.min(this.$D,Tt.daysInMonth())).$d}else mt&&this.$d[mt](_t);return this.init(),this},D.set=function(B,q){return this.clone().$set(B,q)},D.get=function(B){return this[N.p(B)]()},D.add=function(B,q){var I,it=this;B=Number(B);var J=N.p(q),mt=function(ft){var Lt=Y(it);return N.w(Lt.date(Lt.date()+Math.round(ft*B)),it)};if(J===u)return this.set(u,this.$M+B);if(J===p)return this.set(p,this.$y+B);if(J===c)return mt(1);if(J===h)return mt(7);var _t=(I={},I[n]=i,I[l]=s,I[a]=r,I)[J]||1,Tt=this.$d.getTime()+B*_t;return N.w(Tt,this)},D.subtract=function(B,q){return this.add(-1*B,q)},D.format=function(B){var q=this,I=this.$locale();if(!this.isValid())return I.invalidDate||m;var it=B||"YYYY-MM-DDTHH:mm:ssZ",J=N.z(this),mt=this.$H,_t=this.$m,Tt=this.$M,ft=I.weekdays,Lt=I.months,gt=I.meridiem,wt=function(Nt,zt,le,Se){return Nt&&(Nt[zt]||Nt(q,it))||le[zt].slice(0,Se)},$t=function(Nt){return N.s(mt%12||12,Nt,"0")},Bt=gt||function(Nt,zt,le){var Se=Nt<12?"AM":"PM";return le?Se.toLowerCase():Se};return it.replace(C,function(Nt,zt){return zt||function(le){switch(le){case"YY":return String(q.$y).slice(-2);case"YYYY":return N.s(q.$y,4,"0");case"M":return Tt+1;case"MM":return N.s(Tt+1,2,"0");case"MMM":return wt(I.monthsShort,Tt,Lt,3);case"MMMM":return wt(Lt,Tt);case"D":return q.$D;case"DD":return N.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return wt(I.weekdaysMin,q.$W,ft,2);case"ddd":return wt(I.weekdaysShort,q.$W,ft,3);case"dddd":return ft[q.$W];case"H":return String(mt);case"HH":return N.s(mt,2,"0");case"h":return $t(1);case"hh":return $t(2);case"a":return Bt(mt,_t,!0);case"A":return Bt(mt,_t,!1);case"m":return String(_t);case"mm":return N.s(_t,2,"0");case"s":return String(q.$s);case"ss":return N.s(q.$s,2,"0");case"SSS":return N.s(q.$ms,3,"0");case"Z":return J}return null}(Nt)||J.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,q,I){var it,J=this,mt=N.p(q),_t=Y(B),Tt=(_t.utcOffset()-this.utcOffset())*i,ft=this-_t,Lt=function(){return N.m(J,_t)};switch(mt){case p:it=Lt()/12;break;case u:it=Lt();break;case d:it=Lt()/3;break;case h:it=(ft-Tt)/6048e5;break;case c:it=(ft-Tt)/864e5;break;case l:it=ft/s;break;case n:it=ft/i;break;case a:it=ft/r;break;default:it=ft}return I?it:N.a(it)},D.daysInMonth=function(){return this.endOf(u).$D},D.$locale=function(){return L[this.$L]},D.locale=function(B,q){if(!B)return this.$L;var I=this.clone(),it=G(B,q,!0);return it&&(I.$L=it),I},D.clone=function(){return N.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},$}(),j=st.prototype;return Y.prototype=j,[["$ms",o],["$s",a],["$m",n],["$H",l],["$W",c],["$M",u],["$y",p],["$D",y]].forEach(function($){j[$[1]]=function(D){return this.$g(D,$[0],$[1])}}),Y.extend=function($,D){return $.$i||($(D,st,Y),$.$i=!0),Y},Y.locale=G,Y.isDayjs=F,Y.unix=function($){return Y(1e3*$)},Y.en=L[v],Y.Ls=L,Y.p={},Y})})(lf);var kx=lf.exports;const wx=Ml(kx);var Cr={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},R={trace:f((...e)=>{},"trace"),debug:f((...e)=>{},"debug"),info:f((...e)=>{},"info"),warn:f((...e)=>{},"warn"),error:f((...e)=>{},"error"),fatal:f((...e)=>{},"fatal")},$l=f(function(e="fatal"){let t=Cr.fatal;typeof e=="string"?e.toLowerCase()in Cr&&(t=Cr[e]):typeof e=="number"&&(t=e),R.trace=()=>{},R.debug=()=>{},R.info=()=>{},R.warn=()=>{},R.error=()=>{},R.fatal=()=>{},t<=Cr.fatal&&(R.fatal=console.error?console.error.bind(console,Ne("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ne("FATAL"))),t<=Cr.error&&(R.error=console.error?console.error.bind(console,Ne("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ne("ERROR"))),t<=Cr.warn&&(R.warn=console.warn?console.warn.bind(console,Ne("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ne("WARN"))),t<=Cr.info&&(R.info=console.info?console.info.bind(console,Ne("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ne("INFO"))),t<=Cr.debug&&(R.debug=console.debug?console.debug.bind(console,Ne("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ne("DEBUG"))),t<=Cr.trace&&(R.trace=console.debug?console.debug.bind(console,Ne("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ne("TRACE")))},"setLogLevel"),Ne=f(e=>`%c${wx().format("ss.SSS")} : ${e} : `,"format");const Lo={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;switch(i){case"r":return Lo.hue2rgb(o,s,e+1/3)*255;case"g":return Lo.hue2rgb(o,s,e)*255;case"b":return Lo.hue2rgb(o,s,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const s=Math.max(e,t,r),o=Math.min(e,t,r),a=(s+o)/2;if(i==="l")return a*100;if(s===o)return 0;const n=s-o,l=a>.5?n/(2-s-o):n/(s+o);if(i==="s")return l*100;switch(s){case e:return((t-r)/n+(t<r?6:0))*60;case t:return((r-e)/n+2)*60;case r:return((e-t)/n+4)*60;default:return-1}}},Tx={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},_x={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},At={channel:Lo,lang:Tx,unit:_x},Pr={};for(let e=0;e<=255;e++)Pr[e]=At.unit.dec2hex(e);const pe={ALL:0,RGB:1,HSL:2};let Sx=class{constructor(){this.type=pe.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=pe.ALL}is(t){return this.type===t}};class vx{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new Sx}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=pe.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:s}=t;r===void 0&&(t.h=At.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=At.channel.rgb2hsl(t,"s")),s===void 0&&(t.l=At.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:s}=t;r===void 0&&(t.r=At.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=At.channel.hsl2rgb(t,"g")),s===void 0&&(t.b=At.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(pe.HSL)&&r!==void 0?r:(this._ensureHSL(),At.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(pe.HSL)&&r!==void 0?r:(this._ensureHSL(),At.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(pe.HSL)&&r!==void 0?r:(this._ensureHSL(),At.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(pe.RGB)&&r!==void 0?r:(this._ensureRGB(),At.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(pe.RGB)&&r!==void 0?r:(this._ensureRGB(),At.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(pe.RGB)&&r!==void 0?r:(this._ensureRGB(),At.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(pe.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(pe.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(pe.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(pe.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(pe.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(pe.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const da=new vx({r:0,g:0,b:0,a:0},"transparent"),Fi={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Fi.re);if(!t)return;const r=t[1],i=parseInt(r,16),s=r.length,o=s%4===0,a=s>4,n=a?1:17,l=a?8:4,c=o?0:-1,h=a?255:15;return da.set({r:(i>>l*(c+3)&h)*n,g:(i>>l*(c+2)&h)*n,b:(i>>l*(c+1)&h)*n,a:o?(i&h)*n/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`#${Pr[Math.round(t)]}${Pr[Math.round(r)]}${Pr[Math.round(i)]}${Pr[Math.round(s*255)]}`:`#${Pr[Math.round(t)]}${Pr[Math.round(r)]}${Pr[Math.round(i)]}`}},ti={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(ti.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return At.channel.clamp.h(parseFloat(r)*.9);case"rad":return At.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return At.channel.clamp.h(parseFloat(r)*360)}}return At.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(ti.re);if(!r)return;const[,i,s,o,a,n]=r;return da.set({h:ti._hue2deg(i),s:At.channel.clamp.s(parseFloat(s)),l:At.channel.clamp.l(parseFloat(o)),a:a?At.channel.clamp.a(n?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:s}=e;return s<1?`hsla(${At.lang.round(t)}, ${At.lang.round(r)}%, ${At.lang.round(i)}%, ${s})`:`hsl(${At.lang.round(t)}, ${At.lang.round(r)}%, ${At.lang.round(i)}%)`}},$s={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=$s.colors[e];if(t)return Fi.parse(t)},stringify:e=>{const t=Fi.stringify(e);for(const r in $s.colors)if($s.colors[r]===t)return r}},ws={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(ws.re);if(!r)return;const[,i,s,o,a,n,l,c,h]=r;return da.set({r:At.channel.clamp.r(s?parseFloat(i)*2.55:parseFloat(i)),g:At.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:At.channel.clamp.b(l?parseFloat(n)*2.55:parseFloat(n)),a:c?At.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`rgba(${At.lang.round(t)}, ${At.lang.round(r)}, ${At.lang.round(i)}, ${At.lang.round(s)})`:`rgb(${At.lang.round(t)}, ${At.lang.round(r)}, ${At.lang.round(i)})`}},hr={format:{keyword:$s,hex:Fi,rgb:ws,rgba:ws,hsl:ti,hsla:ti},parse:e=>{if(typeof e!="string")return e;const t=Fi.parse(e)||ws.parse(e)||ti.parse(e)||$s.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(pe.HSL)||e.data.r===void 0?ti.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?ws.stringify(e):Fi.stringify(e)},hf=(e,t)=>{const r=hr.parse(e);for(const i in t)r[i]=At.channel.clamp[i](t[i]);return hr.stringify(r)},zr=(e,t,r=0,i=1)=>{if(typeof e!="number")return hf(e,{a:t});const s=da.set({r:At.channel.clamp.r(e),g:At.channel.clamp.g(t),b:At.channel.clamp.b(r),a:At.channel.clamp.a(i)});return hr.stringify(s)},Bx=e=>{const{r:t,g:r,b:i}=hr.parse(e),s=.2126*At.channel.toLinear(t)+.7152*At.channel.toLinear(r)+.0722*At.channel.toLinear(i);return At.lang.round(s)},Lx=e=>Bx(e)>=.5,Ze=e=>!Lx(e),cf=(e,t,r)=>{const i=hr.parse(e),s=i[t],o=At.channel.clamp[t](s+r);return s!==o&&(i[t]=o),hr.stringify(i)},z=(e,t)=>cf(e,"l",t),W=(e,t)=>cf(e,"l",-t),b=(e,t)=>{const r=hr.parse(e),i={};for(const s in t)t[s]&&(i[s]=r[s]+t[s]);return hf(e,i)},Fx=(e,t,r=50)=>{const{r:i,g:s,b:o,a}=hr.parse(e),{r:n,g:l,b:c,a:h}=hr.parse(t),u=r/100,d=u*2-1,p=a-h,m=((d*p===-1?d:(d+p)/(1+d*p))+1)/2,x=1-m,C=i*m+n*x,k=s*m+l*x,T=o*m+c*x,S=a*u+h*(1-u);return zr(C,k,T,S)},E=(e,t=100)=>{const r=hr.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Fx(r,e,t)};/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function kc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Ax(e){if(Array.isArray(e))return e}function Ex(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,o,a,n=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(i=o.call(r)).done)&&(n.push(i.value),n.length!==t);l=!0);}catch(h){c=!0,s=h}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw s}}return n}}function Mx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $x(e,t){return Ax(e)||Ex(e,t)||Ox(e,t)||Mx()}function Ox(e,t){if(e){if(typeof e=="string")return kc(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kc(e,t):void 0}}const uf=Object.entries,wc=Object.setPrototypeOf,Dx=Object.isFrozen,Ix=Object.getPrototypeOf,Px=Object.getOwnPropertyDescriptor;let se=Object.freeze,ne=Object.seal,_i=Object.create,df=typeof Reflect<"u"&&Reflect,Wn=df.apply,Hn=df.construct;se||(se=function(t){return t});ne||(ne=function(t){return t});Wn||(Wn=function(t,r){for(var i=arguments.length,s=new Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];return t.apply(r,s)});Hn||(Hn=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return new t(...i)});const Kr=ie(Array.prototype.forEach),Rx=ie(Array.prototype.lastIndexOf),Tc=ie(Array.prototype.pop),us=ie(Array.prototype.push),Nx=ie(Array.prototype.splice),Ai=Array.isArray,Ts=ie(String.prototype.toLowerCase),ja=ie(String.prototype.toString),_c=ie(String.prototype.match),ds=ie(String.prototype.replace),Sc=ie(String.prototype.indexOf),qx=ie(String.prototype.trim),zx=ie(Number.prototype.toString),Wx=ie(Boolean.prototype.toString),vc=typeof BigInt>"u"?null:ie(BigInt.prototype.toString),Bc=typeof Symbol>"u"?null:ie(Symbol.prototype.toString),Ae=ie(Object.prototype.hasOwnProperty),fs=ie(Object.prototype.toString),fe=ie(RegExp.prototype.test),Gr=Hx(TypeError);function ie(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return Wn(e,t,i)}}function Hx(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Hn(e,r)}}function qt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ts;if(wc&&wc(e,null),!Ai(t))return e;let i=t.length;for(;i--;){let s=t[i];if(typeof s=="string"){const o=r(s);o!==s&&(Dx(t)||(t[i]=o),s=o)}e[s]=!0}return e}function Yx(e){for(let t=0;t<e.length;t++)Ae(e,t)||(e[t]=null);return e}function Pe(e){const t=_i(null);for(const i of uf(e)){var r=$x(i,2);const s=r[0],o=r[1];Ae(e,s)&&(Ai(o)?t[s]=Yx(o):o&&typeof o=="object"&&o.constructor===Object?t[s]=Pe(o):t[s]=o)}return t}function jx(e){switch(typeof e){case"string":return e;case"number":return zx(e);case"boolean":return Wx(e);case"bigint":return vc?vc(e):"0";case"symbol":return Bc?Bc(e):"Symbol()";case"undefined":return fs(e);case"function":case"object":{if(e===null)return fs(e);const t=e,r=Ye(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:fs(i)}return fs(e)}default:return fs(e)}}function Ye(e,t){for(;e!==null;){const i=Px(e,t);if(i){if(i.get)return ie(i.get);if(typeof i.value=="function")return ie(i.value)}e=Ix(e)}function r(){return null}return r}function Ux(e){try{return fe(e,""),!0}catch{return!1}}const Lc=se(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ua=se(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ga=se(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Gx=se(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Xa=se(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Xx=se(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fc=se(["#text"]),Ac=se(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Va=se(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ec=se(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fo=se(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vx=ne(/{{[\w\W]*|^[\w\W]*}}/g),Zx=ne(/<%[\w\W]*|^[\w\W]*%>/g),Kx=ne(/\${[\w\W]*/g),Qx=ne(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jx=ne(/^aria-[\-\w]+$/),Mc=ne(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tC=ne(/^(?:\w+script|data):/i),eC=ne(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rC=ne(/^html$/i),iC=ne(/^[a-z][.\w]*(-[.\w]+)+$/i),$c=ne(/<[/\w!]/g),Oc=ne(/<[/\w]/g),sC=ne(/<\/no(script|embed|frames)/i),oC=ne(/\/>/i),De={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ff=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],aC=se(qt({},ff)),nC=function(){const e={};return Kr(ff,t=>{e[t]=ne(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),se(e)}(),lC=function(){return typeof window>"u"?null:window},hC=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(i=r.getAttribute(s));const o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Dc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Dr=function(t,r,i,s){return Ae(t,r)&&Ai(t[r])?qt(s.base?Pe(s.base):{},t[r],s.transform):i},Za=function(t,r,i){const s=Ae(t,r)?t[r]:void 0;return s&&typeof s=="object"?Pe(s):i()};function pf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lC();const t=ot=>pf(ot);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==De.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const i=r,s=i.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,a=e.Node,n=e.Element,l=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,u=e.trustedTypes,d=n.prototype,p=Ye(d,"cloneNode"),y=Ye(d,"remove"),m=Ye(d,"nextSibling"),x=Ye(d,"childNodes"),C=Ye(d,"parentNode"),k=Ye(d,"shadowRoot"),T=Ye(d,"attributes"),S=a&&a.prototype?Ye(a.prototype,"nodeType"):null,v=a&&a.prototype?Ye(a.prototype,"nodeName"):null,L=a&&a.prototype?Ye(a.prototype,"ownerDocument"):null,A=function(_){return S?S(_):_.nodeType},F=function(_){return v?v(_):_.nodeName};if(typeof o=="function"){const ot=r.createElement("template");ot.content&&ot.content.ownerDocument&&(r=ot.content.ownerDocument)}let G,Y="",N,st=!1,j=0;const $=function(){if(j>0)throw Gr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},D=function(_){$(),j++;try{return G.createHTML(_)}finally{j--}},B=function(_){$(),j++;try{return G.createScriptURL(_)}finally{j--}},q=function(){return st||(N=hC(u,s),st=!0),N},I=r,it=I.implementation,J=I.createNodeIterator,mt=I.createDocumentFragment,_t=I.getElementsByTagName,Tt=i.importNode;let ft=Dc();t.isSupported=typeof uf=="function"&&typeof C=="function"&&it&&it.createHTMLDocument!==void 0;const Lt=Vx,gt=Zx,wt=Kx,$t=Qx,Bt=Jx,Nt=tC,zt=eC,le=iC;let Se=Mc,It=null;const mr=qt({},[...Lc,...Ua,...Ga,...Xa,...Fc]);let Ht=null;const ve=qt({},[...Ac,...Va,...Ec,...fo]);let he=Object.seal(_i(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),He=null,yr=null;const be=Object.seal(_i(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Mr=!0,ke=!0,$r=!1,xr=!0,we=!1,Oe=!0,g=!1,M=!1,U=null,V=null,H=!1,rt=!1,w=!1,P=!1,tt=!0,X=!1;const Z="user-content-";let et=!0,K=!1,lt={},nt=null;const yt=qt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let kt=null;const Ot=qt({},["audio","video","img","source","image","track"]);let jt=null;const ls=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",tr="http://www.w3.org/2000/svg",er="http://www.w3.org/1999/xhtml";let yi=er,Pa=!1,Ra=null;const rx=qt({},[Je,tr,er],ja),ac=se(["mi","mo","mn","ms","mtext"]);let Na=qt({},ac);const nc=se(["annotation-xml"]);let qa=qt({},nc);const ix=qt({},["title","style","font","a","script"]);let hs=null;const sx=["application/xhtml+xml","text/html"],ox="text/html";let Jt=null,xi=null;const ax=r.createElement("form"),lc=function(_){return _ instanceof RegExp||_ instanceof Function},za=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(xi&&xi===_)return;(!_||typeof _!="object")&&(_={}),_=Pe(_),hs=sx.indexOf(_.PARSER_MEDIA_TYPE)===-1?ox:_.PARSER_MEDIA_TYPE,Jt=hs==="application/xhtml+xml"?ja:Ts,It=Dr(_,"ALLOWED_TAGS",mr,{transform:Jt}),Ht=Dr(_,"ALLOWED_ATTR",ve,{transform:Jt}),Ra=Dr(_,"ALLOWED_NAMESPACES",rx,{transform:ja}),jt=Dr(_,"ADD_URI_SAFE_ATTR",ls,{transform:Jt,base:ls}),kt=Dr(_,"ADD_DATA_URI_TAGS",Ot,{transform:Jt,base:Ot}),nt=Dr(_,"FORBID_CONTENTS",yt,{transform:Jt}),He=Dr(_,"FORBID_TAGS",Pe({}),{transform:Jt}),yr=Dr(_,"FORBID_ATTR",Pe({}),{transform:Jt}),lt=Ae(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?Pe(_.USE_PROFILES):_.USE_PROFILES:!1,Mr=_.ALLOW_ARIA_ATTR!==!1,ke=_.ALLOW_DATA_ATTR!==!1,$r=_.ALLOW_UNKNOWN_PROTOCOLS||!1,xr=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=_.SAFE_FOR_TEMPLATES||!1,Oe=_.SAFE_FOR_XML!==!1,g=_.WHOLE_DOCUMENT||!1,rt=_.RETURN_DOM||!1,w=_.RETURN_DOM_FRAGMENT||!1,P=_.RETURN_TRUSTED_TYPE||!1,H=_.FORCE_BODY||!1,tt=_.SANITIZE_DOM!==!1,X=_.SANITIZE_NAMED_PROPS||!1,et=_.KEEP_CONTENT!==!1,K=_.IN_PLACE||!1,Se=Ux(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:Mc,yi=typeof _.NAMESPACE=="string"?_.NAMESPACE:er,Na=Za(_,"MATHML_TEXT_INTEGRATION_POINTS",()=>qt({},ac)),qa=Za(_,"HTML_INTEGRATION_POINTS",()=>qt({},nc));const O=Za(_,"CUSTOM_ELEMENT_HANDLING",()=>_i(null));if(he=_i(null),Ae(O,"tagNameCheck")&&lc(O.tagNameCheck)&&(he.tagNameCheck=O.tagNameCheck),Ae(O,"attributeNameCheck")&&lc(O.attributeNameCheck)&&(he.attributeNameCheck=O.attributeNameCheck),Ae(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),ne(he),we&&(ke=!1),w&&(rt=!0),lt&&(It=qt({},Fc),Ht=_i(null),lt.html===!0&&(qt(It,Lc),qt(Ht,Ac)),lt.svg===!0&&(qt(It,Ua),qt(Ht,Va),qt(Ht,fo)),lt.svgFilters===!0&&(qt(It,Ga),qt(Ht,Va),qt(Ht,fo)),lt.mathMl===!0&&(qt(It,Xa),qt(Ht,Ec),qt(Ht,fo))),be.tagCheck=null,be.attributeCheck=null,Ae(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?be.tagCheck=_.ADD_TAGS:Ai(_.ADD_TAGS)&&(It===mr&&(It=Pe(It)),qt(It,_.ADD_TAGS,Jt))),Ae(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?be.attributeCheck=_.ADD_ATTR:Ai(_.ADD_ATTR)&&(Ht===ve&&(Ht=Pe(Ht)),qt(Ht,_.ADD_ATTR,Jt))),Ae(_,"ADD_FORBID_CONTENTS")&&Ai(_.ADD_FORBID_CONTENTS)&&(nt===yt&&(nt=Pe(nt)),qt(nt,_.ADD_FORBID_CONTENTS,Jt)),et&&(It["#text"]=!0),g&&qt(It,["html","head","body"]),It.table&&(qt(It,["tbody"]),delete He.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Q=G;G=_.TRUSTED_TYPES_POLICY;try{Y=D("")}catch(ut){throw G=Q,ut}}else _.TRUSTED_TYPES_POLICY===null?(G=void 0,Y=""):(G===void 0&&(G=q()),G&&typeof Y=="string"&&(Y=D("")));se&&se(_),xi=_},hc=qt({},[...Ua,...Ga,...Gx]),cc=qt({},[...Xa,...Xx]),nx=function(_,O,Q){return O.namespaceURI===er?_==="svg":O.namespaceURI===Je?_==="svg"&&(Q==="annotation-xml"||Na[Q]):!!hc[_]},lx=function(_,O,Q){return O.namespaceURI===er?_==="math":O.namespaceURI===tr?_==="math"&&qa[Q]:!!cc[_]},hx=function(_,O,Q){return O.namespaceURI===tr&&!qa[Q]||O.namespaceURI===Je&&!Na[Q]?!1:!cc[_]&&(ix[_]||!hc[_])},cx=function(_){let O=C(_);(!O||!O.tagName)&&(O={namespaceURI:yi,tagName:"template"});const Q=Ts(_.tagName),ut=Ts(O.tagName);return Ra[_.namespaceURI]?_.namespaceURI===tr?nx(Q,O,ut):_.namespaceURI===Je?lx(Q,O,ut):_.namespaceURI===er?hx(Q,O,ut):!!(hs==="application/xhtml+xml"&&Ra[_.namespaceURI]):!1},Or=function(_){us(t.removed,{element:_});try{C(_).removeChild(_)}catch{if(y(_),!C(_))throw Gr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},uc=function(_,O,Q){try{_.removeAttributeNode(O)}catch{try{_.removeAttribute(Q)}catch{}}},ao=function(_){no(_);const O=x(_);if(O){const ut=[];Kr(O,bt=>{us(ut,bt)}),Kr(ut,bt=>{try{y(bt)}catch{}})}const Q=T(_);if(Q)for(let ut=Q.length-1;ut>=0;--ut){const bt=Q[ut],Ft=bt&&bt.name;typeof Ft=="string"&&uc(_,bt,Ft)}},Ur=function(_,O,Q){if(!Q)try{Q=O.getAttributeNode(_)}catch{Q=null}us(t.removed,{attribute:Q||null,from:O});try{Q?O.removeAttributeNode(Q):O.removeAttribute(_)}catch{try{O.removeAttribute(_)}catch{}}if(_==="is")if(rt||w)try{Or(O)}catch{}else try{O.setAttribute(_,"")}catch{}},ux=function(_){const O=T(_);if(O)for(let Q=O.length-1;Q>=0;--Q){const ut=O[Q],bt=ut&&ut.name;typeof bt!="string"||Ht[Jt(bt)]||uc(_,ut,bt)}},no=function(_){const O=[_];for(;O.length>0;){const Q=O.pop();A(Q)===De.element&&ux(Q);const bt=x(Q);if(bt)for(let Ft=bt.length-1;Ft>=0;--Ft)O.push(bt[Ft])}},dc=function(_,O){return Oe?_==="patchsrc"?!0:_==="for"&&O!=="label"&&O!=="output":!1},dx=function(_){if(!Oe)return;const O=[_];for(;O.length>0;){const Q=O.pop(),ut=A(Q);if(ut===De.processingInstruction||ut===De.comment&&fe(Oc,Q.data)){try{y(Q)}catch{}continue}if(ut===De.element){const Ft=Q,Gt=Jt(F(Q));try{Ft.hasAttribute&&Ft.hasAttribute("patchsrc")&&Ft.removeAttribute("patchsrc"),Ft.hasAttribute&&Ft.hasAttribute("for")&&dc("for",Gt)&&Ft.removeAttribute("for")}catch{}}const bt=x(Q);if(bt)for(let Ft=bt.length-1;Ft>=0;--Ft)O.push(bt[Ft])}},fc=function(_){let O=null,Q=null;if(H)_="<remove></remove>"+_;else{const Ft=_c(_,/^[\r\n\t ]+/);Q=Ft&&Ft[0]}hs==="application/xhtml+xml"&&yi===er&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const ut=G?D(_):_;if(yi===er)try{O=new h().parseFromString(ut,hs)}catch{}if(!O||!O.documentElement){O=it.createDocument(yi,"template",null);try{O.documentElement.innerHTML=Pa?Y:ut}catch{}}const bt=O.body||O.documentElement;return _&&Q&&bt.insertBefore(r.createTextNode(Q),bt.childNodes[0]||null),yi===er?_t.call(O,g?"html":"body")[0]:g?O.documentElement:bt},pc=function(_){const O=L?L(_):_.ownerDocument;return J.call(O||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},lo=function(_){return _=ds(_,Lt," "),_=ds(_,gt," "),_=ds(_,wt," "),_},Wa=function(_){var O;_.normalize();const Q=L?L(_):_.ownerDocument,ut=J.call(Q||_,_,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let bt=ut.nextNode();for(;bt;)bt.data=lo(bt.data),bt=ut.nextNode();const Ft=(O=_.querySelectorAll)===null||O===void 0?void 0:O.call(_,"template");Ft&&Kr(Ft,Gt=>{Ci(Gt.content)&&Wa(Gt.content)})},ho=function(_){const O=v?v(_):null;return typeof O!="string"||Jt(O)!=="form"?!1:typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||_.attributes!==T(_)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function"||_.nodeType!==S(_)||_.childNodes!==x(_)},Ci=function(_){if(!S||typeof _!="object"||_===null)return!1;try{return S(_)===De.documentFragment}catch{return!1}},cs=function(_){if(!S||typeof _!="object"||_===null)return!1;try{return typeof S(_)=="number"}catch{return!1}};function rr(ot,_,O){ot.length!==0&&Kr(ot,Q=>{Q.call(t,_,O,xi)})}const fx=function(_,O){return!!(Oe&&_.hasChildNodes()&&!cs(_.firstElementChild)&&fe($c,_.textContent)&&fe($c,_.innerHTML)||Oe&&_.namespaceURI===er&&aC[O]&&(cs(_.firstElementChild)||typeof _.textContent=="string"&&fe(nC[O],_.textContent))||_.nodeType===De.processingInstruction||Oe&&_.nodeType===De.comment&&fe(Oc,_.data))},co=function(_,O){if(_ instanceof RegExp)return fe(_,O);if(_ instanceof Function){for(var Q=arguments.length,ut=new Array(Q>2?Q-2:0),bt=2;bt<Q;bt++)ut[bt-2]=arguments[bt];return!!_(O,...ut)}return!1},px=function(_,O,Q){if(!He[O]&&Cc(O)&&co(he.tagNameCheck,O))return!1;if(et&&!nt[O]){const ut=C(_),bt=x(_);if(bt&&ut){const Ft=bt.length;for(let Gt=Ft-1;Gt>=0;--Gt){const Kt=_===Q?p(bt[Gt],!0):bt[Gt];ut.insertBefore(Kt,m(_))}}}return Or(_),!0},gc=function(_,O,Q,ut){return _.length===0?O:O===Q||O===ut?Pe(O):O},mc=function(_,O){return _===O||C(_)!==null?!1:(K&&no(_),!0)},yc=function(_,O){if(rr(ft.beforeSanitizeElements,_,null),mc(_,O))return!0;if(ho(_))return Or(_),!0;const Q=Jt(F(_));if(It=gc(ft.uponSanitizeElement,It,mr,U),rr(ft.uponSanitizeElement,_,{tagName:Q,allowedTags:It}),mc(_,O))return!0;if(fx(_,Q))return Or(_),!0;if(He[Q]||!(be.tagCheck instanceof Function&&be.tagCheck(Q))&&!It[Q]){const bt=px(_,Q,O);return bt===!1&&rr(ft.afterSanitizeElements,_,null),bt}if(A(_)===De.element&&!cx(_)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&fe(sC,_.innerHTML))return Or(_),!0;if(we&&_.nodeType===De.text){const bt=lo(_.textContent);_.textContent!==bt&&(us(t.removed,{element:_.cloneNode()}),_.textContent=bt)}return rr(ft.afterSanitizeElements,_,null),!1},xc=function(_,O,Q){if(yr[O]||dc(O,_)||tt&&(O==="id"||O==="name")&&(Q in r||Q in ax))return!1;const ut=Ht[O]||be.attributeCheck instanceof Function&&be.attributeCheck(O,_);return ke&&fe($t,O)||Mr&&fe(Bt,O)?!0:ut?jt[O]||fe(Se,ds(Q,zt,""))||(O==="src"||O==="xlink:href"||O==="href")&&_!=="script"&&Sc(Q,"data:")===0&&kt[_]||$r&&!fe(Nt,ds(Q,zt,""))?!0:!Q:Cc(_)&&co(he.tagNameCheck,_)&&co(he.attributeNameCheck,O,_)||O==="is"&&he.allowCustomizedBuiltInElements&&co(he.tagNameCheck,Q)},gx=qt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Cc=function(_){return!gx[Ts(_)]&&fe(le,_)},mx=function(_,O,Q,ut){if(G&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!Q)switch(u.getAttributeType(_,O)){case"TrustedHTML":return D(ut);case"TrustedScriptURL":return B(ut)}return ut},yx=function(_,O,Q,ut){try{Q?_.setAttributeNS(Q,O,ut):_.setAttribute(O,ut),ho(_)?Or(_):Tc(t.removed)}catch{Ur(O,_)}},bc=function(_){rr(ft.beforeSanitizeAttributes,_,null);const O=_.attributes;if(!O||ho(_))return;Ht=gc(ft.uponSanitizeAttribute,Ht,ve,V);const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ht,forceKeepAttr:void 0};let ut=O.length;const bt=Jt(_.nodeName);for(;ut--;){const Ft=O[ut],Gt=Ft.name,Kt=Ft.namespaceURI,Be=Ft.value,Le=Jt(Gt),Ya=Be;let Te=Gt==="value"?Ya:qx(Ya);if(Q.attrName=Le,Q.attrValue=Te,Q.keepAttr=!0,Q.forceKeepAttr=void 0,rr(ft.uponSanitizeAttribute,_,Q),Te=Q.attrValue,X&&(Le==="id"||Le==="name")&&Sc(Te,Z)!==0&&(Ur(Gt,_,Ft),Te=Z+Te),Oe&&fe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Te)){Ur(Gt,_,Ft);continue}if(Le==="attributename"&&_c(Te,"href")){Ur(Gt,_,Ft);continue}if(!Q.forceKeepAttr){if(!Q.keepAttr){Ur(Gt,_,Ft);continue}if(!xr&&fe(oC,Te)){Ur(Gt,_,Ft);continue}if(we&&(Te=lo(Te)),!xc(bt,Le,Te)){Ur(Gt,_,Ft);continue}Te=mx(bt,Le,Kt,Te),Te!==Ya&&yx(_,Gt,Kt,Te)}}rr(ft.afterSanitizeAttributes,_,null)},uo=function(_){let O=null;const Q=pc(_);for(rr(ft.beforeSanitizeShadowDOM,_,null);O=Q.nextNode();)if(rr(ft.uponSanitizeShadowNode,O,null),yc(O,_),bc(O),Ci(O.content)&&uo(O.content),A(O)===De.element){const ut=k(O);Ci(ut)&&(Ha(ut),uo(ut))}rr(ft.afterSanitizeShadowDOM,_,null)},Ha=function(_){const O=[{node:_,shadow:null}];for(;O.length>0;){const Q=O.pop();if(Q.shadow){uo(Q.shadow);continue}const ut=Q.node,Ft=A(ut)===De.element,Gt=x(ut);if(Gt)for(let Kt=Gt.length-1;Kt>=0;--Kt)O.push({node:Gt[Kt],shadow:null});if(Ft){const Kt=v?v(ut):null;if(typeof Kt=="string"&&Jt(Kt)==="template"){const Be=ut.content;Ci(Be)&&O.push({node:Be,shadow:null})}}if(Ft){const Kt=k(ut);Ci(Kt)&&O.push({node:null,shadow:Kt},{node:Kt,shadow:null})}}};return t.sanitize=function(ot){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,Q=null,ut=null,bt=null;if(Pa=!ot,Pa&&(ot="<!-->"),typeof ot!="string"&&!cs(ot)&&(ot=jx(ot),typeof ot!="string"))throw Gr("dirty is not a string, aborting");if(!t.isSupported)return ot;M?(It=U,Ht=V):za(_),(ft.uponSanitizeElement.length>0||ft.uponSanitizeAttribute.length>0)&&(It=Pe(It)),ft.uponSanitizeAttribute.length>0&&(Ht=Pe(Ht)),t.removed=[];const Ft=K&&typeof ot!="string"&&cs(ot);if(Ft){dx(ot);const Be=F(ot);if(typeof Be=="string"){const Le=Jt(Be);if(!It[Le]||He[Le])throw ao(ot),Gr("root node is forbidden and cannot be sanitized in-place")}if(ho(ot))throw ao(ot),Gr("root node is clobbered and cannot be sanitized in-place");try{Ha(ot)}catch(Le){throw ao(ot),Le}}else if(cs(ot))O=fc("<!---->"),Q=O.ownerDocument.importNode(ot,!0),Q.nodeType===De.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?O=Q:O.appendChild(Q),Ha(Q);else{if(!rt&&!we&&!g&&ot.indexOf("<")===-1)return G&&P?D(ot):ot;if(O=fc(ot),!O)return rt?null:P?Y:""}O&&H&&Or(O.firstChild);const Gt=Ft?ot:O;try{const Be=pc(Gt);for(;ut=Be.nextNode();)yc(ut,Gt),bc(ut),Ci(ut.content)&&uo(ut.content)}catch(Be){throw Ft&&(ao(ot),Kr(t.removed,Le=>{Le.element&&no(Le.element)})),Be}if(Ft)return Kr(t.removed,Be=>{Be.element&&no(Be.element)}),we&&Wa(ot),ot;if(rt){if(we&&Wa(O),w)for(bt=mt.call(O.ownerDocument);O.firstChild;)bt.appendChild(O.firstChild);else bt=O;return(Ht.shadowroot||Ht.shadowrootmode)&&(bt=Tt.call(i,bt,!0)),bt}let Kt=g?O.outerHTML:O.innerHTML;return g&&It["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&fe(rC,O.ownerDocument.doctype.name)&&(Kt="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
4
+ `+Kt),we&&(Kt=lo(Kt)),G&&P?D(Kt):Kt},t.setConfig=function(){let ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};za(ot),M=!0,U=It,V=Ht},t.clearConfig=function(){xi=null,M=!1,U=null,V=null,G=N,Y=""},t.isValidAttribute=function(ot,_,O){xi||za({});const Q=Jt(ot),ut=Jt(_);return xc(Q,ut,O)},t.addHook=function(ot,_){typeof _=="function"&&Ae(ft,ot)&&us(ft[ot],_)},t.removeHook=function(ot,_){if(Ae(ft,ot)){if(_!==void 0){const O=Rx(ft[ot],_);return O===-1?void 0:Nx(ft[ot],O,1)[0]}return Tc(ft[ot])}},t.removeHooks=function(ot){Ae(ft,ot)&&(ft[ot]=[])},t.removeAllHooks=function(){ft=Dc()},t}var Vi=pf(),Yn=f((e,t,{depth:r=2}={})=>{const i={depth:r};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(s=>Yn(e,s,i)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(s=>{e.includes(s)||e.push(s)}),e;if(e==null||r<=0)return e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t;if(t!=null&&typeof e=="object"&&typeof t=="object"){const s=e;Object.entries(t).forEach(([o,a])=>{if(typeof a=="object"){if(a===null)return;Object.hasOwn(e,o)||Object.defineProperty(e,o,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),s[o]===void 0&&(s[o]=Array.isArray(a)?[]:{}),typeof s[o]=="object"&&(s[o]=Yn(s[o],a,{depth:r-1}))}else typeof s[o]!="object"&&(Object.hasOwn(e,o)?s[o]=a:Object.defineProperty(e,o,{value:a,writable:!0,enumerable:!0,configurable:!0}))})}return e},"assignWithDepth"),ae=Yn,ur="#ffffff",dr="#f2f2f2",vt=f((e,t)=>t?b(e,{s:-40,l:10}):b(e,{s:-40,l:-10}),"mkBorder"),Oi,cC=(Oi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||W(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||W(this.mainBkg,10)):(this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||z(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=W(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=W(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||E(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||W(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Oi,"Theme"),Oi),uC=f(e=>{const t=new cC;return t.calculate(e),t},"getThemeVariables"),Di,dC=(Di=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(E("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=zr(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=W("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=W(this.sectionBkgColor,10),this.taskBorderColor=zr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=zr(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||z(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||W(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=z(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=z(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=z(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=E(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||E(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||z(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??z(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=z(this.secondaryColor,20),this.git1=z(this.pie2||this.secondaryColor,20),this.git2=z(this.pie3||this.tertiaryColor,20),this.git3=z(this.pie4||b(this.primaryColor,{h:-30}),20),this.git4=z(this.pie5||b(this.primaryColor,{h:-60}),20),this.git5=z(this.pie6||b(this.primaryColor,{h:-90}),10),this.git6=z(this.pie7||b(this.primaryColor,{h:60}),10),this.git7=z(this.pie8||b(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||z("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||z("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||z("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||z("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||z(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||z(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||z(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||z(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Di,"Theme"),Di),fC=f(e=>{const t=new dC;return t.calculate(e),t},"getThemeVariables"),Ii,pC=(Ii=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=b(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=vt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=zr(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||W(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||W(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=W(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||W(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||b(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||E(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||E(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||z(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||z(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||b(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||b(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||W(E(this.git0),25),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Ii,"Theme"),Ii),gC=f(e=>{const t=new pC;return t.calculate(e),t},"getThemeVariables"),Pi,mC=(Pi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=z("#cde498",10),this.primaryBorderColor=vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.primaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=W(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||W(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||W(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=W(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||W(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||b(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||z(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-30}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Pi,"Theme"),Pi),yC=f(e=>{const t=new mC;return t.calculate(e),t},"getThemeVariables"),Ri,xC=(Ri=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=z(this.contrast,55),this.background="#ffffff",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=z(this.contrast,55),this.border2=this.contrast,this.actorBorder=z(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||E(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||z(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||W(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=z(this.contrast,30),this.sectionBkgColor2=z(this.contrast,30),this.taskBorderColor=W(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=z(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=W(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=W(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||b(this.primaryColor,{h:-30}),this.git4=this.pie5||b(this.primaryColor,{h:-60}),this.git5=this.pie6||b(this.primaryColor,{h:-90}),this.git6=this.pie7||b(this.primaryColor,{h:60}),this.git7=this.pie8||b(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Ri,"Theme"),Ri),CC=f(e=>{const t=new xC;return t.calculate(e),t},"getThemeVariables"),Ni,bC=(Ni=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=vt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||z(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||b(t,{h:30}),this.cScale4=this.cScale4||b(t,{h:60}),this.cScale5=this.cScale5||b(t,{h:90}),this.cScale6=this.cScale6||b(t,{h:120}),this.cScale7=this.cScale7||b(t,{h:150}),this.cScale8=this.cScale8||b(t,{h:210,l:150}),this.cScale9=this.cScale9||b(t,{h:270}),this.cScale10=this.cScale10||b(t,{h:300}),this.cScale11=this.cScale11||b(t,{h:330}),this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=W(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=W(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||E(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||z(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||W(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||b(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||b(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Ni,"Theme"),Ni),kC=f(e=>{const t=new bC;return t.calculate(e),t},"getThemeVariables"),qi,wC=(qi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(E("#323D47"),10),this.border1="#ccc",this.border2=zr(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=W(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=W(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||E(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||W(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(qi,"Theme"),qi),TC=f(e=>{const t=new wC;return t.calculate(e),t},"getThemeVariables"),zi,_C=(zi=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=vt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||z(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=this.mainBkg;if(this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=W(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=W(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||E(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||z(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||W(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||b(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||b(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(zi,"Theme"),zi),SC=f(e=>{const t=new _C;return t.calculate(e),t},"getThemeVariables"),Wi,vC=(Wi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(E("#323D47"),10),this.border1="#ccc",this.border2=zr(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=W(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=W(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||E(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||W(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Wi,"Theme"),Wi),BC=f(e=>{const t=new vC;return t.calculate(e),t},"getThemeVariables"),Hi,LC=(Hi=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=vt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||z(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||E(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||z(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||W(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||b(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||b(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Hi,"Theme"),Hi),FC=f(e=>{const t=new LC;return t.calculate(e),t},"getThemeVariables"),Yi,AC=(Yi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(E("#323D47"),10),this.border1="#ccc",this.border2=zr(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||E(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||W(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=W(this["cScale"+r],75);const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ze(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},f(Yi,"Theme"),Yi),EC=f(e=>{const t=new AC;return t.calculate(e),t},"getThemeVariables"),_r={base:{getThemeVariables:uC},dark:{getThemeVariables:fC},default:{getThemeVariables:gC},forest:{getThemeVariables:yC},neutral:{getThemeVariables:CC},neo:{getThemeVariables:kC},"neo-dark":{getThemeVariables:TC},redux:{getThemeVariables:SC},"redux-dark":{getThemeVariables:BC},"redux-color":{getThemeVariables:FC},"redux-dark-color":{getThemeVariables:EC}},ce={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},gf={...ce,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",nodePlacementAlignment:"NONE",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:_r.default.getThemeVariables(),sequence:{...ce.sequence,messageFont:f(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:f(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:f(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...ce.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ce.c4,useWidth:void 0,personFont:f(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...ce.flowchart,inheritDir:!1},external_personFont:f(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:f(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:f(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:f(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:f(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:f(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:f(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:f(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:f(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:f(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:f(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:f(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:f(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:f(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:f(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:f(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:f(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:f(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:f(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:f(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:f(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ce.pie,useWidth:984},xyChart:{...ce.xyChart,useWidth:void 0},requirement:{...ce.requirement,useWidth:void 0},packet:{...ce.packet},eventmodeling:{...ce.eventmodeling},treeView:{...ce.treeView,useWidth:void 0},radar:{...ce.radar},railroad:{...ce.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...ce.ishikawa},sankey:{...ce.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...ce.venn},cynefin:{...ce.cynefin}},mf=f((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...mf(e[i],"")]:[...r,t+i],[]),"keyify"),MC=new Set(mf(gf,"")),yf=gf,$C={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},OC=f((e,t)=>{for(const r of Object.keys(e)){const i=e[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof i!="string"||!t.test(i))&&(R.debug("sanitize deleting dictionary entry:",r,i),delete e[r])}},"sanitizeDictionaryConfig"),No=f(e=>{if(R.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>No(t));return}for(const t of Object.keys(e)){if(R.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!MC.has(t)||e[t]==null){R.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){const i=$C[t];i?OC(e[t],i):(R.debug("sanitizing object",t),No(e[t]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(R.debug("sanitizing css option",t),e[t]=xf(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}R.debug("After sanitization",e)}},"sanitizeDirective"),xf=f(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Zi=Object.freeze(yf),fr=f(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Ee=ae({},Zi),qo,oi=[],Os=ae({},Zi),Ks=f((e,t)=>{let r=ae({},e),i={};for(const s of t)kf(s),i=ae(i,s);if(r=ae(r,i),i.theme&&i.theme in _r){const s=ae({},qo),o=ae(s.themeVariables||{},i.themeVariables);r.theme&&r.theme in _r&&(r.themeVariables=_r[r.theme].getThemeVariables(o))}return Os=r,qC(Os),Os},"updateCurrentConfig"),DC=f(e=>(Ee=ae({},Zi),Ee=ae(Ee,e),e.theme&&_r[e.theme]&&(Ee.themeVariables=_r[e.theme].getThemeVariables(e.themeVariables)),Ks(Ee,oi),Ee),"setSiteConfig"),IC=f(e=>{qo=ae({},e)},"saveConfigFromInitialize"),PC=f(e=>(Ee=ae(Ee,e),Ks(Ee,oi),Ee),"updateSiteConfig"),Cf=f(()=>ae({},Ee),"getSiteConfig"),bf=f(e=>(Ks(Os,[e]),Zt()),"setConfig"),Zt=f(()=>ae({},Os),"getConfig"),kf=f(e=>{e&&(["secure",...Ee.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(R.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&kf(e[t])}))},"sanitize"),RC=f(e=>{No(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),oi.push(e),Ks(Ee,oi)},"addDirective"),zo=f((e=Ee)=>{oi=[],Ks(e,oi)},"reset"),NC={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Ic={},wf=f(e=>{Ic[e]||(R.warn(NC[e]),Ic[e]=!0)},"issueWarning"),qC=f(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&wf("LAZY_LOAD_DEPRECATED")},"checkConfig"),$5=f(()=>{let e={};qo&&(e=ae(e,qo));for(const t of oi)e=ae(e,t);return e},"getUserDefinedConfig"),xe=f(e=>(e.flowchart?.htmlLabels!=null&&wf("FLOWCHART_HTML_LABELS_DEPRECATED"),fr(e.htmlLabels??e.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),Tf=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,Ds=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,zC=/\s*%%.*\n/gm,ji,_f=(ji=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},f(ji,"UnknownDiagramError"),ji),ai={},Ol=f(function(e,t){e=e.replace(Tf,"").replace(Ds,"").replace(zC,`
5
+ `);for(const[r,{detector:i}]of Object.entries(ai))if(i(e,t))return r;throw new _f(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),jn=f((...e)=>{for(const{id:t,detector:r,loader:i}of e)Sf(t,r,i)},"registerLazyLoadedDiagrams"),Sf=f((e,t,r)=>{ai[e]&&R.warn(`Detector with key ${e} already exists. Overwriting.`),ai[e]={detector:t,loader:r},R.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),WC=f(e=>ai[e].loader,"getDiagramLoader"),Qs=/<br\s*\/?>/gi,HC=f(e=>e?Lf(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),YC=(()=>{let e=!1;return()=>{e||(vf(),e=!0)}})();function vf(){const e="data-temp-href-target";Vi.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Vi.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}f(vf,"setupDompurifyHooks");var Bf=f(e=>(YC(),Vi.sanitize(e)),"removeScript"),Pc=f((e,t)=>{if(xe(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=Bf(e):r!=="loose"&&(e=Lf(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=XC(e))}return e},"sanitizeMore"),qe=f((e,t)=>e&&(t.dompurifyConfig?e=Vi.sanitize(Pc(e,t),t.dompurifyConfig).toString():e=Vi.sanitize(Pc(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),jC=f((e,t)=>typeof e=="string"?qe(e,t):e.flat().map(r=>qe(r,t)),"sanitizeTextOrArray"),UC=f(e=>Qs.test(e),"hasBreaks"),GC=f(e=>e.split(Qs),"splitBreaks"),XC=f(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Lf=f(e=>e.replace(Qs,"#br#"),"breakToPlaceholder"),VC=f(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),ZC=f(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),KC=f(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),Rc=f(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let s=t[i];if(s===","&&i>0&&i+1<t.length){const o=t[i-1],a=t[i+1];QC(o,a)&&(s=o+","+a,i++,r.pop())}r.push(JC(s))}return r.join("")},"parseGenericTypes"),Un=f((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),QC=f((e,t)=>{const r=Un(e,"~"),i=Un(t,"~");return r===1&&i===1},"shouldCombineSets"),JC=f(e=>{const t=Un(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let s=i.indexOf("~"),o=i.lastIndexOf("~");for(;s!==-1&&o!==-1&&s!==o;)i[s]="<",i[o]=">",s=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Nc=f(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Gn=/\$\$(.*?)\$\$/g,qs=f(e=>(e.match(Gn)?.length??0)>0,"hasKatex"),O5=f(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await Ff(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),tb=f(async(e,t)=>{if(!qs(e))return e;if(!(Nc()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Gn,"MathML is unsupported in this environment.");{const{default:r}=await Mt(async()=>{const{default:s}=await import("./index-DyMtNYuu.js").then(o=>o.k);return{default:s}},__vite__mapDeps([0,1])),i=t.forceLegacyMathML||!Nc()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Qs).map(s=>qs(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(Gn,(s,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Ff=f(async(e,t)=>qe(await tb(e,t),t),"renderKatexSanitized"),Js={getRows:HC,sanitizeText:qe,sanitizeTextOrArray:jC,hasBreaks:UC,splitBreaks:GC,lineBreakRegex:Qs,removeScript:Bf,getUrl:VC,evaluate:fr,getMax:ZC,getMin:KC},eb=f(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),rb=f(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Af=f(function(e,t,r,i){const s=rb(t,r,i);eb(e,s)},"configureSvgSize"),ib=f(function(e,t,r,i){const s=t.node().getBBox(),o=s.width,a=s.height;R.info(`SVG bounds: ${o}x${a}`,s);let n=0,l=0;R.info(`Graph bounds: ${n}x${l}`,e),n=o+r*2,l=a+r*2,R.info(`Calculated bounds: ${n}x${l}`),Af(t,l,n,i);const c=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Fo={};function Xn(e){return[...e.cssRules].map(t=>t.cssText).join(`
6
+ `)}f(Xn,"cssStyleSheetToString");var sb=f((e,t,r,i)=>{let s="";return e in Fo&&Fo[e]?s=Fo[e]({...r,svgId:i}):R.warn(`No theme found for ${e}`),`& {
7
+ font-family: ${r.fontFamily};
8
+ font-size: ${r.fontSize};
9
+ fill: ${r.textColor}
10
+ }
11
+ @keyframes edge-animation-frame {
12
+ from {
13
+ stroke-dashoffset: 0;
14
+ }
15
+ }
16
+ @keyframes dash {
17
+ to {
18
+ stroke-dashoffset: 0;
19
+ }
20
+ }
21
+ & .edge-animation-slow {
22
+ stroke-dasharray: 9,5 !important;
23
+ stroke-dashoffset: 900;
24
+ animation: dash 50s linear infinite;
25
+ stroke-linecap: round;
26
+ }
27
+ & .edge-animation-fast {
28
+ stroke-dasharray: 9,5 !important;
29
+ stroke-dashoffset: 900;
30
+ animation: dash 20s linear infinite;
31
+ stroke-linecap: round;
32
+ }
33
+ /* Classes common for multiple diagrams */
34
+
35
+ & .error-icon {
36
+ fill: ${r.errorBkgColor};
37
+ }
38
+ & .error-text {
39
+ fill: ${r.errorTextColor};
40
+ stroke: ${r.errorTextColor};
41
+ }
42
+
43
+ & .edge-thickness-normal {
44
+ stroke-width: ${r.strokeWidth??1}px;
45
+ }
46
+ & .edge-thickness-thick {
47
+ stroke-width: 3.5px
48
+ }
49
+ & .edge-pattern-solid {
50
+ stroke-dasharray: 0;
51
+ }
52
+ & .edge-thickness-invisible {
53
+ stroke-width: 0;
54
+ fill: none;
55
+ }
56
+ & .edge-pattern-dashed{
57
+ stroke-dasharray: 3;
58
+ }
59
+ .edge-pattern-dotted {
60
+ stroke-dasharray: 2;
61
+ }
62
+
63
+ & .marker {
64
+ fill: ${r.lineColor};
65
+ stroke: ${r.lineColor};
66
+ }
67
+ & .marker.cross {
68
+ stroke: ${r.lineColor};
69
+ }
70
+
71
+ & svg {
72
+ font-family: ${r.fontFamily};
73
+ font-size: ${r.fontSize};
74
+ }
75
+ & p {
76
+ margin: 0
77
+ }
78
+
79
+ ${s}
80
+ .node .neo-node {
81
+ stroke: ${r.nodeBorder};
82
+ }
83
+
84
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
85
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
86
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
87
+ }
88
+ [data-look="neo"].swimlane.cluster rect {
89
+ filter: none;
90
+ }
91
+
92
+
93
+ [data-look="neo"].node path {
94
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
95
+ stroke-width: ${r.strokeWidth??1}px;
96
+ }
97
+
98
+ [data-look="neo"].node .outer-path {
99
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
100
+ }
101
+
102
+ [data-look="neo"].node .neo-line path {
103
+ stroke: ${r.nodeBorder};
104
+ filter: none;
105
+ }
106
+
107
+ [data-look="neo"].node circle{
108
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
109
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
110
+ }
111
+
112
+ [data-look="neo"].node circle .state-start{
113
+ fill: #000000;
114
+ }
115
+
116
+ [data-look="neo"].icon-shape .icon {
117
+ fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
118
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
119
+ }
120
+
121
+ [data-look="neo"].icon-shape .icon-neo path {
122
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
123
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
124
+ }
125
+
126
+ ${t}
127
+ `},"getStyles"),ob=f((e,t)=>{t!==void 0&&(Fo[e]=t)},"addStylesForDiagram"),ab=sb,Ef={};bx(Ef,{clear:()=>nb,getAccDescription:()=>ub,getAccTitle:()=>hb,getDiagramTitle:()=>fb,setAccDescription:()=>cb,setAccTitle:()=>lb,setDiagramTitle:()=>db});var Dl="",Il="",Pl="",Rl=f(e=>qe(e,Zt()),"sanitizeText"),nb=f(()=>{Dl="",Pl="",Il=""},"clear"),lb=f(e=>{Dl=Rl(e).replace(/^\s+/g,"")},"setAccTitle"),hb=f(()=>Dl,"getAccTitle"),cb=f(e=>{Pl=Rl(e).replace(/\n\s+/g,`
128
+ `)},"setAccDescription"),ub=f(()=>Pl,"getAccDescription"),db=f(e=>{Il=Rl(e)},"setDiagramTitle"),fb=f(()=>Il,"getDiagramTitle"),qc=R,pb=$l,Dt=Zt,D5=bf,I5=Zi,Nl=f(e=>qe(e,Dt()),"sanitizeText"),gb=ib,mb=f(()=>Ef,"getCommonDb"),Wo={},Ho=f((e,t,r)=>{Wo[e]&&qc.warn(`Diagram with id ${e} already registered. Overwriting.`),Wo[e]=t,r&&Sf(e,r),ob(e,t.styles),t.injectUtils?.(qc,pb,Dt,Nl,gb,mb(),()=>{})},"registerDiagram"),Vn=f(e=>{if(e in Wo)return Wo[e];throw new yb(e)},"getDiagram"),Ui,yb=(Ui=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},f(Ui,"DiagramNotFoundError"),Ui),xb={value:()=>{}};function Mf(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Ao(r)}function Ao(e){this._=e}function Cb(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",s=r.indexOf(".");if(s>=0&&(i=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Ao.prototype=Mf.prototype={constructor:Ao,on:function(e,t){var r=this._,i=Cb(e+"",r),s,o=-1,a=i.length;if(arguments.length<2){for(;++o<a;)if((s=(e=i[o]).type)&&(s=bb(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(s=(e=i[o]).type)r[s]=zc(r[s],e.name,t);else if(t==null)for(s in r)r[s]=zc(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Ao(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),i=0,s,o;i<s;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,s=o.length;i<s;++i)o[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,o=i.length;s<o;++s)i[s].value.apply(t,r)}};function bb(e,t){for(var r=0,i=e.length,s;r<i;++r)if((s=e[r]).name===t)return s.value}function zc(e,t,r){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=xb,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Zn="http://www.w3.org/1999/xhtml";const Wc={svg:"http://www.w3.org/2000/svg",xhtml:Zn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fa(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Wc.hasOwnProperty(t)?{space:Wc[t],local:e}:e}function kb(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Zn&&t.documentElement.namespaceURI===Zn?t.createElement(e):t.createElementNS(r,e)}}function wb(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $f(e){var t=fa(e);return(t.local?wb:kb)(t)}function Tb(){}function ql(e){return e==null?Tb:function(){return this.querySelector(e)}}function _b(e){typeof e!="function"&&(e=ql(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=new Array(a),l,c,h=0;h<a;++h)(l=o[h])&&(c=e.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),n[h]=c);return new Re(i,this._parents)}function Sb(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function vb(){return[]}function Of(e){return e==null?vb:function(){return this.querySelectorAll(e)}}function Bb(e){return function(){return Sb(e.apply(this,arguments))}}function Lb(e){typeof e=="function"?e=Bb(e):e=Of(e);for(var t=this._groups,r=t.length,i=[],s=[],o=0;o<r;++o)for(var a=t[o],n=a.length,l,c=0;c<n;++c)(l=a[c])&&(i.push(e.call(l,l.__data__,c,a)),s.push(l));return new Re(i,s)}function Df(e){return function(){return this.matches(e)}}function If(e){return function(t){return t.matches(e)}}var Fb=Array.prototype.find;function Ab(e){return function(){return Fb.call(this.children,e)}}function Eb(){return this.firstElementChild}function Mb(e){return this.select(e==null?Eb:Ab(typeof e=="function"?e:If(e)))}var $b=Array.prototype.filter;function Ob(){return Array.from(this.children)}function Db(e){return function(){return $b.call(this.children,e)}}function Ib(e){return this.selectAll(e==null?Ob:Db(typeof e=="function"?e:If(e)))}function Pb(e){typeof e!="function"&&(e=Df(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&n.push(l);return new Re(i,this._parents)}function Pf(e){return new Array(e.length)}function Rb(){return new Re(this._enter||this._groups.map(Pf),this._parents)}function Yo(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Yo.prototype={constructor:Yo,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Nb(e){return function(){return e}}function qb(e,t,r,i,s,o){for(var a=0,n,l=t.length,c=o.length;a<c;++a)(n=t[a])?(n.__data__=o[a],i[a]=n):r[a]=new Yo(e,o[a]);for(;a<l;++a)(n=t[a])&&(s[a]=n)}function zb(e,t,r,i,s,o,a){var n,l,c=new Map,h=t.length,u=o.length,d=new Array(h),p;for(n=0;n<h;++n)(l=t[n])&&(d[n]=p=a.call(l,l.__data__,n,t)+"",c.has(p)?s[n]=l:c.set(p,l));for(n=0;n<u;++n)p=a.call(e,o[n],n,o)+"",(l=c.get(p))?(i[n]=l,l.__data__=o[n],c.delete(p)):r[n]=new Yo(e,o[n]);for(n=0;n<h;++n)(l=t[n])&&c.get(d[n])===l&&(s[n]=l)}function Wb(e){return e.__data__}function Hb(e,t){if(!arguments.length)return Array.from(this,Wb);var r=t?zb:qb,i=this._parents,s=this._groups;typeof e!="function"&&(e=Nb(e));for(var o=s.length,a=new Array(o),n=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=s[c],d=u.length,p=Yb(e.call(h,h&&h.__data__,c,i)),y=p.length,m=n[c]=new Array(y),x=a[c]=new Array(y),C=l[c]=new Array(d);r(h,u,m,x,C,p,t);for(var k=0,T=0,S,v;k<y;++k)if(S=m[k]){for(k>=T&&(T=k+1);!(v=x[T])&&++T<y;);S._next=v||null}}return a=new Re(a,i),a._enter=n,a._exit=l,a}function Yb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jb(){return new Re(this._exit||this._groups.map(Pf),this._parents)}function Ub(e,t,r){var i=this.enter(),s=this,o=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?o.remove():r(o),i&&s?i.merge(s).order():s}function Gb(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,s=r.length,o=i.length,a=Math.min(s,o),n=new Array(s),l=0;l<a;++l)for(var c=r[l],h=i[l],u=c.length,d=n[l]=new Array(u),p,y=0;y<u;++y)(p=c[y]||h[y])&&(d[y]=p);for(;l<s;++l)n[l]=r[l];return new Re(n,this._parents)}function Xb(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],s=i.length-1,o=i[s],a;--s>=0;)(a=i[s])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Vb(e){e||(e=Zb);function t(u,d){return u&&d?e(u.__data__,d.__data__):!u-!d}for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o){for(var a=r[o],n=a.length,l=s[o]=new Array(n),c,h=0;h<n;++h)(c=a[h])&&(l[h]=c);l.sort(t)}return new Re(s,this._parents).order()}function Zb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Kb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Qb(){return Array.from(this)}function Jb(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length;s<o;++s){var a=i[s];if(a)return a}return null}function t1(){let e=0;for(const t of this)++e;return e}function e1(){return!this.node()}function r1(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var s=t[r],o=0,a=s.length,n;o<a;++o)(n=s[o])&&e.call(n,n.__data__,o,s);return this}function i1(e){return function(){this.removeAttribute(e)}}function s1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function o1(e,t){return function(){this.setAttribute(e,t)}}function a1(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function n1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function l1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function h1(e,t){var r=fa(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?s1:i1:typeof t=="function"?r.local?l1:n1:r.local?a1:o1)(r,t))}function Rf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function c1(e){return function(){this.style.removeProperty(e)}}function u1(e,t,r){return function(){this.style.setProperty(e,t,r)}}function d1(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function f1(e,t,r){return arguments.length>1?this.each((t==null?c1:typeof t=="function"?d1:u1)(e,t,r??"")):Ki(this.node(),e)}function Ki(e,t){return e.style.getPropertyValue(t)||Rf(e).getComputedStyle(e,null).getPropertyValue(t)}function p1(e){return function(){delete this[e]}}function g1(e,t){return function(){this[e]=t}}function m1(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function y1(e,t){return arguments.length>1?this.each((t==null?p1:typeof t=="function"?m1:g1)(e,t)):this.node()[e]}function Nf(e){return e.trim().split(/^|\s+/)}function zl(e){return e.classList||new qf(e)}function qf(e){this._node=e,this._names=Nf(e.getAttribute("class")||"")}qf.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function zf(e,t){for(var r=zl(e),i=-1,s=t.length;++i<s;)r.add(t[i])}function Wf(e,t){for(var r=zl(e),i=-1,s=t.length;++i<s;)r.remove(t[i])}function x1(e){return function(){zf(this,e)}}function C1(e){return function(){Wf(this,e)}}function b1(e,t){return function(){(t.apply(this,arguments)?zf:Wf)(this,e)}}function k1(e,t){var r=Nf(e+"");if(arguments.length<2){for(var i=zl(this.node()),s=-1,o=r.length;++s<o;)if(!i.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?b1:t?x1:C1)(r,t))}function w1(){this.textContent=""}function T1(e){return function(){this.textContent=e}}function _1(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function S1(e){return arguments.length?this.each(e==null?w1:(typeof e=="function"?_1:T1)(e)):this.node().textContent}function v1(){this.innerHTML=""}function B1(e){return function(){this.innerHTML=e}}function L1(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function F1(e){return arguments.length?this.each(e==null?v1:(typeof e=="function"?L1:B1)(e)):this.node().innerHTML}function A1(){this.nextSibling&&this.parentNode.appendChild(this)}function E1(){return this.each(A1)}function M1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $1(){return this.each(M1)}function O1(e){var t=typeof e=="function"?e:$f(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function D1(){return null}function I1(e,t){var r=typeof e=="function"?e:$f(e),i=t==null?D1:typeof t=="function"?t:ql(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function P1(){var e=this.parentNode;e&&e.removeChild(this)}function R1(){return this.each(P1)}function N1(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function q1(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function z1(e){return this.select(e?q1:N1)}function W1(e){return arguments.length?this.property("__data__",e):this.node().__data__}function H1(e){return function(t){e.call(this,t,this.__data__)}}function Y1(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function j1(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,s=t.length,o;r<s;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++i]=o;++i?t.length=i:delete this.__on}}}function U1(e,t,r){return function(){var i=this.__on,s,o=H1(t);if(i){for(var a=0,n=i.length;a<n;++a)if((s=i[a]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=r),s.value=t;return}}this.addEventListener(e.type,o,r),s={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(s):this.__on=[s]}}function G1(e,t,r){var i=Y1(e+""),s,o=i.length,a;if(arguments.length<2){var n=this.node().__on;if(n){for(var l=0,c=n.length,h;l<c;++l)for(s=0,h=n[l];s<o;++s)if((a=i[s]).type===h.type&&a.name===h.name)return h.value}return}for(n=t?U1:j1,s=0;s<o;++s)this.each(n(i[s],t,r));return this}function Hf(e,t,r){var i=Rf(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,r):(s=i.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function X1(e,t){return function(){return Hf(this,e,t)}}function V1(e,t){return function(){return Hf(this,e,t.apply(this,arguments))}}function Z1(e,t){return this.each((typeof t=="function"?V1:X1)(e,t))}function*K1(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length,a;s<o;++s)(a=i[s])&&(yield a)}var Yf=[null];function Re(e,t){this._groups=e,this._parents=t}function to(){return new Re([[document.documentElement]],Yf)}function Q1(){return this}Re.prototype=to.prototype={constructor:Re,select:_b,selectAll:Lb,selectChild:Mb,selectChildren:Ib,filter:Pb,data:Hb,enter:Rb,exit:jb,join:Ub,merge:Gb,selection:Q1,order:Xb,sort:Vb,call:Kb,nodes:Qb,node:Jb,size:t1,empty:e1,each:r1,attr:h1,style:f1,property:y1,classed:k1,text:S1,html:F1,raise:E1,lower:$1,append:O1,insert:I1,remove:R1,clone:z1,datum:W1,on:G1,dispatch:Z1,[Symbol.iterator]:K1};function Et(e){return typeof e=="string"?new Re([[document.querySelector(e)]],[document.documentElement]):new Re([[e]],Yf)}function Wl(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function jf(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function eo(){}var zs=.7,jo=1/zs,Ei="\\s*([+-]?\\d+)\\s*",Ws="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J1=/^#([0-9a-f]{3,8})$/,tk=new RegExp(`^rgb\\(${Ei},${Ei},${Ei}\\)$`),ek=new RegExp(`^rgb\\(${lr},${lr},${lr}\\)$`),rk=new RegExp(`^rgba\\(${Ei},${Ei},${Ei},${Ws}\\)$`),ik=new RegExp(`^rgba\\(${lr},${lr},${lr},${Ws}\\)$`),sk=new RegExp(`^hsl\\(${Ws},${lr},${lr}\\)$`),ok=new RegExp(`^hsla\\(${Ws},${lr},${lr},${Ws}\\)$`),Hc={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Wl(eo,Hs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yc,formatHex:Yc,formatHex8:ak,formatHsl:nk,formatRgb:jc,toString:jc});function Yc(){return this.rgb().formatHex()}function ak(){return this.rgb().formatHex8()}function nk(){return Uf(this).formatHsl()}function jc(){return this.rgb().formatRgb()}function Hs(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=J1.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Uc(t):r===3?new Me(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?po(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?po(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=tk.exec(e))?new Me(t[1],t[2],t[3],1):(t=ek.exec(e))?new Me(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rk.exec(e))?po(t[1],t[2],t[3],t[4]):(t=ik.exec(e))?po(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sk.exec(e))?Vc(t[1],t[2]/100,t[3]/100,1):(t=ok.exec(e))?Vc(t[1],t[2]/100,t[3]/100,t[4]):Hc.hasOwnProperty(e)?Uc(Hc[e]):e==="transparent"?new Me(NaN,NaN,NaN,0):null}function Uc(e){return new Me(e>>16&255,e>>8&255,e&255,1)}function po(e,t,r,i){return i<=0&&(e=t=r=NaN),new Me(e,t,r,i)}function lk(e){return e instanceof eo||(e=Hs(e)),e?(e=e.rgb(),new Me(e.r,e.g,e.b,e.opacity)):new Me}function Kn(e,t,r,i){return arguments.length===1?lk(e):new Me(e,t,r,i??1)}function Me(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Wl(Me,Kn,jf(eo,{brighter(e){return e=e==null?jo:Math.pow(jo,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?zs:Math.pow(zs,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Me(ii(this.r),ii(this.g),ii(this.b),Uo(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gc,formatHex:Gc,formatHex8:hk,formatRgb:Xc,toString:Xc}));function Gc(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}`}function hk(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}${ei((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xc(){const e=Uo(this.opacity);return`${e===1?"rgb(":"rgba("}${ii(this.r)}, ${ii(this.g)}, ${ii(this.b)}${e===1?")":`, ${e})`}`}function Uo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ii(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ei(e){return e=ii(e),(e<16?"0":"")+e.toString(16)}function Vc(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xe(e,t,r,i)}function Uf(e){if(e instanceof Xe)return new Xe(e.h,e.s,e.l,e.opacity);if(e instanceof eo||(e=Hs(e)),!e)return new Xe;if(e instanceof Xe)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,s=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-s,l=(o+s)/2;return n?(t===o?a=(r-i)/n+(r<i)*6:r===o?a=(i-t)/n+2:a=(t-r)/n+4,n/=l<.5?o+s:2-o-s,a*=60):n=l>0&&l<1?0:a,new Xe(a,n,l,e.opacity)}function ck(e,t,r,i){return arguments.length===1?Uf(e):new Xe(e,t,r,i??1)}function Xe(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Wl(Xe,ck,jf(eo,{brighter(e){return e=e==null?jo:Math.pow(jo,e),new Xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?zs:Math.pow(zs,e),new Xe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,s=2*r-i;return new Me(Ka(e>=240?e-240:e+120,s,i),Ka(e,s,i),Ka(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new Xe(Zc(this.h),go(this.s),go(this.l),Uo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Uo(this.opacity);return`${e===1?"hsl(":"hsla("}${Zc(this.h)}, ${go(this.s)*100}%, ${go(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zc(e){return e=(e||0)%360,e<0?e+360:e}function go(e){return Math.max(0,Math.min(1,e||0))}function Ka(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Hl=e=>()=>e;function Gf(e,t){return function(r){return e+r*t}}function uk(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function P5(e,t){var r=t-e;return r?Gf(e,r>180||r<-180?r-360*Math.round(r/360):r):Hl(isNaN(e)?t:e)}function dk(e){return(e=+e)==1?Xf:function(t,r){return r-t?uk(t,r,e):Hl(isNaN(t)?r:t)}}function Xf(e,t){var r=t-e;return r?Gf(e,r):Hl(isNaN(e)?t:e)}const Kc=function e(t){var r=dk(t);function i(s,o){var a=r((s=Kn(s)).r,(o=Kn(o)).r),n=r(s.g,o.g),l=r(s.b,o.b),c=Xf(s.opacity,o.opacity);return function(h){return s.r=a(h),s.g=n(h),s.b=l(h),s.opacity=c(h),s+""}}return i.gamma=e,i}(1);function Rr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Qn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qa=new RegExp(Qn.source,"g");function fk(e){return function(){return e}}function pk(e){return function(t){return e(t)+""}}function gk(e,t){var r=Qn.lastIndex=Qa.lastIndex=0,i,s,o,a=-1,n=[],l=[];for(e=e+"",t=t+"";(i=Qn.exec(e))&&(s=Qa.exec(t));)(o=s.index)>r&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(s=s[0])?n[a]?n[a]+=s:n[++a]=s:(n[++a]=null,l.push({i:a,x:Rr(i,s)})),r=Qa.lastIndex;return r<t.length&&(o=t.slice(r),n[a]?n[a]+=o:n[++a]=o),n.length<2?l[0]?pk(l[0].x):fk(t):(t=l.length,function(c){for(var h=0,u;h<t;++h)n[(u=l[h]).i]=u.x(c);return n.join("")})}var Qc=180/Math.PI,Jn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vf(e,t,r,i,s,o){var a,n,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,l/=n),e*i<t*r&&(e=-e,t=-t,l=-l,a=-a),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*Qc,skewX:Math.atan(l)*Qc,scaleX:a,scaleY:n}}var mo;function mk(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Jn:Vf(t.a,t.b,t.c,t.d,t.e,t.f)}function yk(e){return e==null||(mo||(mo=document.createElementNS("http://www.w3.org/2000/svg","g")),mo.setAttribute("transform",e),!(e=mo.transform.baseVal.consolidate()))?Jn:(e=e.matrix,Vf(e.a,e.b,e.c,e.d,e.e,e.f))}function Zf(e,t,r,i){function s(c){return c.length?c.pop()+" ":""}function o(c,h,u,d,p,y){if(c!==u||h!==d){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:Rr(c,u)},{i:m-2,x:Rr(h,d)})}else(u||d)&&p.push("translate("+u+t+d+r)}function a(c,h,u,d){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),d.push({i:u.push(s(u)+"rotate(",null,i)-2,x:Rr(c,h)})):h&&u.push(s(u)+"rotate("+h+i)}function n(c,h,u,d){c!==h?d.push({i:u.push(s(u)+"skewX(",null,i)-2,x:Rr(c,h)}):h&&u.push(s(u)+"skewX("+h+i)}function l(c,h,u,d,p,y){if(c!==u||h!==d){var m=p.push(s(p)+"scale(",null,",",null,")");y.push({i:m-4,x:Rr(c,u)},{i:m-2,x:Rr(h,d)})}else(u!==1||d!==1)&&p.push(s(p)+"scale("+u+","+d+")")}return function(c,h){var u=[],d=[];return c=e(c),h=e(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,d),a(c.rotate,h.rotate,u,d),n(c.skewX,h.skewX,u,d),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,d),c=h=null,function(p){for(var y=-1,m=d.length,x;++y<m;)u[(x=d[y]).i]=x.x(p);return u.join("")}}}var xk=Zf(mk,"px, ","px)","deg)"),Ck=Zf(yk,", ",")",")"),Qi=0,_s=0,ps=0,Kf=1e3,Go,Ss,Xo=0,ni=0,pa=0,Ys=typeof performance=="object"&&performance.now?performance:Date,Qf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yl(){return ni||(Qf(bk),ni=Ys.now()+pa)}function bk(){ni=0}function Vo(){this._call=this._time=this._next=null}Vo.prototype=Jf.prototype={constructor:Vo,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Yl():+r)+(t==null?0:+t),!this._next&&Ss!==this&&(Ss?Ss._next=this:Go=this,Ss=this),this._call=e,this._time=r,tl()},stop:function(){this._call&&(this._call=null,this._time=1/0,tl())}};function Jf(e,t,r){var i=new Vo;return i.restart(e,t,r),i}function kk(){Yl(),++Qi;for(var e=Go,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Qi}function Jc(){ni=(Xo=Ys.now())+pa,Qi=_s=0;try{kk()}finally{Qi=0,Tk(),ni=0}}function wk(){var e=Ys.now(),t=e-Xo;t>Kf&&(pa-=t,Xo=e)}function Tk(){for(var e,t=Go,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Go=r);Ss=e,tl(i)}function tl(e){if(!Qi){_s&&(_s=clearTimeout(_s));var t=e-ni;t>24?(e<1/0&&(_s=setTimeout(Jc,e-Ys.now()-pa)),ps&&(ps=clearInterval(ps))):(ps||(Xo=Ys.now(),ps=setInterval(wk,Kf)),Qi=1,Qf(Jc))}}function tu(e,t,r){var i=new Vo;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,r),i}var _k=Mf("start","end","cancel","interrupt"),Sk=[],tp=0,eu=1,el=2,Eo=3,ru=4,rl=5,Mo=6;function ga(e,t,r,i,s,o){var a=e.__transition;if(!a)e.__transition={};else if(r in a)return;vk(e,r,{name:t,index:i,group:s,on:_k,tween:Sk,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:tp})}function jl(e,t){var r=Ke(e,t);if(r.state>tp)throw new Error("too late; already scheduled");return r}function pr(e,t){var r=Ke(e,t);if(r.state>Eo)throw new Error("too late; already running");return r}function Ke(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function vk(e,t,r){var i=e.__transition,s;i[t]=r,r.timer=Jf(o,0,r.time);function o(c){r.state=eu,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var h,u,d,p;if(r.state!==eu)return l();for(h in i)if(p=i[h],p.name===r.name){if(p.state===Eo)return tu(a);p.state===ru?(p.state=Mo,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[h]):+h<t&&(p.state=Mo,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[h])}if(tu(function(){r.state===Eo&&(r.state=ru,r.timer.restart(n,r.delay,r.time),n(c))}),r.state=el,r.on.call("start",e,e.__data__,r.index,r.group),r.state===el){for(r.state=Eo,s=new Array(d=r.tween.length),h=0,u=-1;h<d;++h)(p=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(s[++u]=p);s.length=u+1}}function n(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=rl,1),u=-1,d=s.length;++u<d;)s[u].call(e,h);r.state===rl&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Mo,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function Bk(e,t){var r=e.__transition,i,s,o=!0,a;if(r){t=t==null?null:t+"";for(a in r){if((i=r[a]).name!==t){o=!1;continue}s=i.state>el&&i.state<rl,i.state=Mo,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[a]}o&&delete e.__transition}}function Lk(e){return this.each(function(){Bk(this,e)})}function Fk(e,t){var r,i;return function(){var s=pr(this,e),o=s.tween;if(o!==r){i=r=o;for(var a=0,n=i.length;a<n;++a)if(i[a].name===t){i=i.slice(),i.splice(a,1);break}}s.tween=i}}function Ak(e,t,r){var i,s;if(typeof r!="function")throw new Error;return function(){var o=pr(this,e),a=o.tween;if(a!==i){s=(i=a).slice();for(var n={name:t,value:r},l=0,c=s.length;l<c;++l)if(s[l].name===t){s[l]=n;break}l===c&&s.push(n)}o.tween=s}}function Ek(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Ke(this.node(),r).tween,s=0,o=i.length,a;s<o;++s)if((a=i[s]).name===e)return a.value;return null}return this.each((t==null?Fk:Ak)(r,e,t))}function Ul(e,t,r){var i=e._id;return e.each(function(){var s=pr(this,i);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Ke(s,i).value[t]}}function ep(e,t){var r;return(typeof t=="number"?Rr:t instanceof Hs?Kc:(r=Hs(t))?(t=r,Kc):gk)(e,t)}function Mk(e){return function(){this.removeAttribute(e)}}function $k(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ok(e,t,r){var i,s=r+"",o;return function(){var a=this.getAttribute(e);return a===s?null:a===i?o:o=t(i=a,r)}}function Dk(e,t,r){var i,s=r+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===s?null:a===i?o:o=t(i=a,r)}}function Ik(e,t,r){var i,s,o;return function(){var a,n=r(this),l;return n==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=n+"",a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n)))}}function Pk(e,t,r){var i,s,o;return function(){var a,n=r(this),l;return n==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=n+"",a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n)))}}function Rk(e,t){var r=fa(e),i=r==="transform"?Ck:ep;return this.attrTween(e,typeof t=="function"?(r.local?Pk:Ik)(r,i,Ul(this,"attr."+e,t)):t==null?(r.local?$k:Mk)(r):(r.local?Dk:Ok)(r,i,t))}function Nk(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function qk(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function zk(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&qk(e,o)),r}return s._value=t,s}function Wk(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Nk(e,o)),r}return s._value=t,s}function Hk(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=fa(e);return this.tween(r,(i.local?zk:Wk)(i,t))}function Yk(e,t){return function(){jl(this,e).delay=+t.apply(this,arguments)}}function jk(e,t){return t=+t,function(){jl(this,e).delay=t}}function Uk(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Yk:jk)(t,e)):Ke(this.node(),t).delay}function Gk(e,t){return function(){pr(this,e).duration=+t.apply(this,arguments)}}function Xk(e,t){return t=+t,function(){pr(this,e).duration=t}}function Vk(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Gk:Xk)(t,e)):Ke(this.node(),t).duration}function Zk(e,t){if(typeof t!="function")throw new Error;return function(){pr(this,e).ease=t}}function Kk(e){var t=this._id;return arguments.length?this.each(Zk(t,e)):Ke(this.node(),t).ease}function Qk(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,e).ease=r}}function Jk(e){if(typeof e!="function")throw new Error;return this.each(Qk(this._id,e))}function t2(e){typeof e!="function"&&(e=Df(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&n.push(l);return new vr(i,this._parents,this._name,this._id)}function e2(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,s=r.length,o=Math.min(i,s),a=new Array(i),n=0;n<o;++n)for(var l=t[n],c=r[n],h=l.length,u=a[n]=new Array(h),d,p=0;p<h;++p)(d=l[p]||c[p])&&(u[p]=d);for(;n<i;++n)a[n]=t[n];return new vr(a,this._parents,this._name,this._id)}function r2(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function i2(e,t,r){var i,s,o=r2(t)?jl:pr;return function(){var a=o(this,e),n=a.on;n!==i&&(s=(i=n).copy()).on(t,r),a.on=s}}function s2(e,t){var r=this._id;return arguments.length<2?Ke(this.node(),r).on.on(e):this.each(i2(r,e,t))}function o2(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function a2(){return this.on("end.remove",o2(this._id))}function n2(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ql(e));for(var i=this._groups,s=i.length,o=new Array(s),a=0;a<s;++a)for(var n=i[a],l=n.length,c=o[a]=new Array(l),h,u,d=0;d<l;++d)(h=n[d])&&(u=e.call(h,h.__data__,d,n))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u,ga(c[d],t,r,d,c,Ke(h,r)));return new vr(o,this._parents,t,r)}function l2(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Of(e));for(var i=this._groups,s=i.length,o=[],a=[],n=0;n<s;++n)for(var l=i[n],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var d=e.call(h,h.__data__,u,l),p,y=Ke(h,r),m=0,x=d.length;m<x;++m)(p=d[m])&&ga(p,t,r,m,d,y);o.push(d),a.push(h)}return new vr(o,a,t,r)}var h2=to.prototype.constructor;function c2(){return new h2(this._groups,this._parents)}function u2(e,t){var r,i,s;return function(){var o=Ki(this,e),a=(this.style.removeProperty(e),Ki(this,e));return o===a?null:o===r&&a===i?s:s=t(r=o,i=a)}}function rp(e){return function(){this.style.removeProperty(e)}}function d2(e,t,r){var i,s=r+"",o;return function(){var a=Ki(this,e);return a===s?null:a===i?o:o=t(i=a,r)}}function f2(e,t,r){var i,s,o;return function(){var a=Ki(this,e),n=r(this),l=n+"";return n==null&&(l=n=(this.style.removeProperty(e),Ki(this,e))),a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n))}}function p2(e,t){var r,i,s,o="style."+t,a="end."+o,n;return function(){var l=pr(this,e),c=l.on,h=l.value[o]==null?n||(n=rp(t)):void 0;(c!==r||s!==h)&&(i=(r=c).copy()).on(a,s=h),l.on=i}}function g2(e,t,r){var i=(e+="")=="transform"?xk:ep;return t==null?this.styleTween(e,u2(e,i)).on("end.style."+e,rp(e)):typeof t=="function"?this.styleTween(e,f2(e,i,Ul(this,"style."+e,t))).each(p2(this._id,e)):this.styleTween(e,d2(e,i,t),r).on("end.style."+e,null)}function m2(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function y2(e,t,r){var i,s;function o(){var a=t.apply(this,arguments);return a!==s&&(i=(s=a)&&m2(e,a,r)),i}return o._value=t,o}function x2(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,y2(e,t,r??""))}function C2(e){return function(){this.textContent=e}}function b2(e){return function(){var t=e(this);this.textContent=t??""}}function k2(e){return this.tween("text",typeof e=="function"?b2(Ul(this,"text",e)):C2(e==null?"":e+""))}function w2(e){return function(t){this.textContent=e.call(this,t)}}function T2(e){var t,r;function i(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&w2(s)),t}return i._value=e,i}function _2(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,T2(e))}function S2(){for(var e=this._name,t=this._id,r=ip(),i=this._groups,s=i.length,o=0;o<s;++o)for(var a=i[o],n=a.length,l,c=0;c<n;++c)if(l=a[c]){var h=Ke(l,t);ga(l,e,r,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new vr(i,this._parents,e,r)}function v2(){var e,t,r=this,i=r._id,s=r.size();return new Promise(function(o,a){var n={value:a},l={value:function(){--s===0&&o()}};r.each(function(){var c=pr(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(n),t._.interrupt.push(n),t._.end.push(l)),c.on=t}),s===0&&o()})}var B2=0;function vr(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function ip(){return++B2}var br=to.prototype;vr.prototype={constructor:vr,select:n2,selectAll:l2,selectChild:br.selectChild,selectChildren:br.selectChildren,filter:t2,merge:e2,selection:c2,transition:S2,call:br.call,nodes:br.nodes,node:br.node,size:br.size,empty:br.empty,each:br.each,on:s2,attr:Rk,attrTween:Hk,style:g2,styleTween:x2,text:k2,textTween:_2,remove:a2,tween:Ek,delay:Uk,duration:Vk,ease:Kk,easeVarying:Jk,end:v2,[Symbol.iterator]:br[Symbol.iterator]};function L2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var F2={time:null,delay:0,duration:250,ease:L2};function A2(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function E2(e){var t,r;e instanceof vr?(t=e._id,e=e._name):(t=ip(),(r=F2).time=Yl(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,o=0;o<s;++o)for(var a=i[o],n=a.length,l,c=0;c<n;++c)(l=a[c])&&ga(l,e,t,c,a,r||A2(l,t));return new vr(i,this._parents,e,t)}to.prototype.interrupt=Lk;to.prototype.transition=E2;const il=Math.PI,sl=2*il,Qr=1e-6,M2=sl-Qr;function sp(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function $2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return sp;const r=10**t;return function(i){this._+=i[0];for(let s=1,o=i.length;s<o;++s)this._+=Math.round(arguments[s]*r)/r+i[s]}}class O2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?sp:$2(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,s){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,r,i,s,o,a){this._append`C${+t},${+r},${+i},${+s},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,i,s,o){if(t=+t,r=+r,i=+i,s=+s,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,n=this._y1,l=i-t,c=s-r,h=a-t,u=n-r,d=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Qr)if(!(Math.abs(u*l-c*h)>Qr)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let p=i-a,y=s-n,m=l*l+c*c,x=p*p+y*y,C=Math.sqrt(m),k=Math.sqrt(d),T=o*Math.tan((il-Math.acos((m+d-x)/(2*C*k)))/2),S=T/k,v=T/C;Math.abs(S-1)>Qr&&this._append`L${t+S*h},${r+S*u}`,this._append`A${o},${o},0,0,${+(u*p>h*y)},${this._x1=t+v*l},${this._y1=r+v*c}`}}arc(t,r,i,s,o,a){if(t=+t,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let n=i*Math.cos(s),l=i*Math.sin(s),c=t+n,h=r+l,u=1^a,d=a?s-o:o-s;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>Qr||Math.abs(this._y1-h)>Qr)&&this._append`L${c},${h}`,i&&(d<0&&(d=d%sl+sl),d>M2?this._append`A${i},${i},0,1,${u},${t-n},${r-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:d>Qr&&this._append`A${i},${i},0,${+(d>=il)},${u},${this._x1=t+i*Math.cos(o)},${this._y1=r+i*Math.sin(o)}`)}rect(t,r,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function bi(e){return function(){return e}}const R5=Math.abs,N5=Math.atan2,q5=Math.cos,z5=Math.max,W5=Math.min,H5=Math.sin,Y5=Math.sqrt,iu=1e-12,Gl=Math.PI,su=Gl/2,j5=2*Gl;function U5(e){return e>1?0:e<-1?Gl:Math.acos(e)}function G5(e){return e>=1?su:e<=-1?-su:Math.asin(e)}function D2(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new O2(t)}function I2(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function op(e){this._context=e}op.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Is(e){return new op(e)}function P2(e){return e[0]}function R2(e){return e[1]}function N2(e,t){var r=bi(!0),i=null,s=Is,o=null,a=D2(n);e=typeof e=="function"?e:e===void 0?P2:bi(e),t=typeof t=="function"?t:t===void 0?R2:bi(t);function n(l){var c,h=(l=I2(l)).length,u,d=!1,p;for(i==null&&(o=s(p=a())),c=0;c<=h;++c)!(c<h&&r(u=l[c],c,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(u,c,l),+t(u,c,l));if(p)return o=null,p+""||null}return n.x=function(l){return arguments.length?(e=typeof l=="function"?l:bi(+l),n):e},n.y=function(l){return arguments.length?(t=typeof l=="function"?l:bi(+l),n):t},n.defined=function(l){return arguments.length?(r=typeof l=="function"?l:bi(!!l),n):r},n.curve=function(l){return arguments.length?(s=l,i!=null&&(o=s(i)),n):s},n.context=function(l){return arguments.length?(l==null?i=o=null:o=s(i=l),n):i},n}class ap{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function np(e){return new ap(e,!0)}function lp(e){return new ap(e,!1)}function Wr(){}function Zo(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function ma(e){this._context=e}ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Zo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Zo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ol(e){return new ma(e)}function hp(e){this._context=e}hp.prototype={areaStart:Wr,areaEnd:Wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Zo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function q2(e){return new hp(e)}function cp(e){this._context=e}cp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Zo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function z2(e){return new cp(e)}function up(e,t){this._basis=new ma(e),this._beta=t}up.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],s=t[0],o=e[r]-i,a=t[r]-s,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(s+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const W2=function e(t){function r(i){return t===1?new ma(i):new up(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function Ko(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Xl(e,t){this._context=e,this._k=(1-t)/6}Xl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ko(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ko(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dp=function e(t){function r(i){return new Xl(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Vl(e,t){this._context=e,this._k=(1-t)/6}Vl.prototype={areaStart:Wr,areaEnd:Wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ko(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const H2=function e(t){function r(i){return new Vl(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Zl(e,t){this._context=e,this._k=(1-t)/6}Zl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ko(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Y2=function e(t){function r(i){return new Zl(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Kl(e,t,r){var i=e._x1,s=e._y1,o=e._x2,a=e._y2;if(e._l01_a>iu){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,s=(s*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>iu){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/h,a=(a*c+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,s,o,a,e._x2,e._y2)}function fp(e,t){this._context=e,this._alpha=t}fp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Kl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pp=function e(t){function r(i){return t?new fp(i,t):new Xl(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function gp(e,t){this._context=e,this._alpha=t}gp.prototype={areaStart:Wr,areaEnd:Wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Kl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const j2=function e(t){function r(i){return t?new gp(i,t):new Vl(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function mp(e,t){this._context=e,this._alpha=t}mp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const U2=function e(t){function r(i){return t?new mp(i,t):new Zl(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function yp(e){this._context=e}yp.prototype={areaStart:Wr,areaEnd:Wr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function G2(e){return new yp(e)}function ou(e){return e<0?-1:1}function au(e,t,r){var i=e._x1-e._x0,s=t-e._x1,o=(e._y1-e._y0)/(i||s<0&&-0),a=(r-e._y1)/(s||i<0&&-0),n=(o*s+a*i)/(i+s);return(ou(o)+ou(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function nu(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ja(e,t,r){var i=e._x0,s=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,s+n*t,o-n,a-n*r,o,a)}function Qo(e){this._context=e}Qo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ja(this,this._t0,nu(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ja(this,nu(this,r=au(this,e,t)),r);break;default:Ja(this,this._t0,r=au(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function xp(e){this._context=new Cp(e)}(xp.prototype=Object.create(Qo.prototype)).point=function(e,t){Qo.prototype.point.call(this,t,e)};function Cp(e){this._context=e}Cp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,s,o){this._context.bezierCurveTo(t,e,i,r,o,s)}};function bp(e){return new Qo(e)}function kp(e){return new xp(e)}function wp(e){this._context=e}wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=lu(e),s=lu(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(i[0][o],s[0][o],i[1][o],s[1][o],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function lu(e){var t,r=e.length-1,i,s=new Array(r),o=new Array(r),a=new Array(r);for(s[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)s[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(s[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=s[t]/o[t-1],o[t]-=i,a[t]-=i*a[t-1];for(s[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)s[t]=(a[t]-s[t+1])/o[t];for(o[r-1]=(e[r]+s[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-s[t+1];return[s,o]}function Tp(e){return new wp(e)}function ya(e,t){this._context=e,this._t=t}ya.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function _p(e){return new ya(e,.5)}function Sp(e){return new ya(e,0)}function vp(e){return new ya(e,1)}function vs(e,t,r){this.k=e,this.x=t,this.y=r}vs.prototype={constructor:vs,scale:function(e){return e===1?this:new vs(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new vs(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};vs.prototype;var X2=f(e=>{const{securityLevel:t}=Dt();let r=Et("body");if(t==="sandbox"){const o=Et(`#i${e}`).node()?.contentDocument??document;r=Et(o.body)}return r.select(`#${e}`)},"selectSvgElement"),V2=f(e=>{const{handDrawnSeed:t}=Dt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Z2=f(e=>Array.isArray(e)?e:e?e.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),rs=f(e=>{const t=K2([...e.cssCompiledStyles||[],...e.cssStyles||[],...Z2(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),K2=f(e=>{const t=new Map;return e.forEach(r=>{const[i,s]=r.split(":");t.set(i.trim(),s?.trim())}),t},"styles2Map"),Bp=f(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),pt=f(e=>{const{stylesArray:t}=rs(e),r=[],i=[],s=[],o=[];return t.forEach(a=>{const n=a[0];Bp(n)?r.push(a.join(":")+" !important"):(i.push(a.join(":")+" !important"),n.includes("stroke")&&s.push(a.join(":")+" !important"),n==="fill"&&o.push(a.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:s,backgroundStyles:o}},"styles2String"),ht=f((e,t)=>{const{themeVariables:r,handDrawnSeed:i}=Dt(),{nodeBorder:s,mainBkg:o}=r,{stylesMap:a}=rs(e);return Object.assign({roughness:.7,fill:a.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:a.get("stroke")||s,seed:i,strokeWidth:a.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:Q2(a.get("stroke-dasharray"))},t)},"userNodeOverrides"),Q2=f(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const s=isNaN(t[0])?0:t[0];return[s,s]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const J2=Object.freeze({left:0,top:0,width:16,height:16}),Jo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Lp=Object.freeze({...J2,...Jo}),tw=Object.freeze({...Lp,body:"",hidden:!1}),ew=Object.freeze({width:null,height:null}),rw=Object.freeze({...ew,...Jo}),iw=(e,t,r,i="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const n=s.pop(),l=s.pop(),c={provider:s.length>0?s[0]:i,prefix:l,name:n};return tn(c)?c:null}const o=s[0],a=o.split("-");if(a.length>1){const n={provider:i,prefix:a.shift(),name:a.join("-")};return tn(n)?n:null}if(r&&i===""){const n={provider:i,prefix:"",name:o};return tn(n,r)?n:null}return null},tn=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function sw(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function hu(e,t){const r=sw(e,t);for(const i in tw)i in Jo?i in e&&!(i in r)&&(r[i]=Jo[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function ow(e,t){const r=e.icons,i=e.aliases||Object.create(null),s=Object.create(null);function o(a){if(r[a])return s[a]=[];if(!(a in s)){s[a]=null;const n=i[a]&&i[a].parent,l=n&&o(n);l&&(s[a]=[n].concat(l))}return s[a]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(o),s}function cu(e,t,r){const i=e.icons,s=e.aliases||Object.create(null);let o={};function a(n){o=hu(i[n]||s[n],o)}return a(t),r.forEach(a),hu(e,o)}function aw(e,t){if(e.icons[t])return cu(e,t,[]);const r=ow(e,[t])[t];return r?cu(e,t,r):null}const nw=/(-?[0-9.]*[0-9]+[0-9.]*)/g,lw=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function uu(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(nw);if(i===null||!i.length)return e;const s=[];let o=i.shift(),a=lw.test(o);for(;;){if(a){const n=parseFloat(o);isNaN(n)?s.push(o):s.push(Math.ceil(n*t*r)/r)}else s.push(o);if(o=i.shift(),o===void 0)return s.join("");a=!a}}function hw(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const s=e.indexOf(">",i),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const a=e.indexOf(">",o);if(a===-1)break;r+=e.slice(s+1,o).trim(),e=e.slice(0,i).trim()+e.slice(a+1)}return{defs:r,content:e}}function cw(e,t){return e?"<defs>"+e+"</defs>"+t:t}function uw(e,t,r){const i=hw(e);return cw(i.defs,t+i.content+r)}const dw=e=>e==="unset"||e==="undefined"||e==="none";function fw(e,t){const r={...Lp,...e},i={...rw,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,i].forEach(m=>{const x=[],C=m.hFlip,k=m.vFlip;let T=m.rotate;C?k?T+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):k&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let S;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:S=s.height/2+s.top,x.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:S=s.width/2+s.left,x.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}T%2===1&&(s.left!==s.top&&(S=s.left,s.left=s.top,s.top=S),s.width!==s.height&&(S=s.width,s.width=s.height,s.height=S)),x.length&&(o=uw(o,'<g transform="'+x.join(" ")+'">',"</g>"))});const a=i.width,n=i.height,l=s.width,c=s.height;let h,u;a===null?(u=n===null?"1em":n==="auto"?c:n,h=uu(u,l/c)):(h=a==="auto"?l:a,u=n===null?uu(h,c/l):n==="auto"?c:n);const d={},p=(m,x)=>{dw(x)||(d[m]=x.toString())};p("width",h),p("height",u);const y=[s.left,s.top,l,c];return d.viewBox=y.join(" "),{attributes:d,viewBox:y,body:o}}const pw=/\sid="(\S+)"/g,du=new Map;function gw(e){e=e.replace(/[0-9]+$/,"")||"a";const t=du.get(e)||0;return du.set(e,t+1),t?`${e}${t}`:e}function mw(e){const t=[];let r;for(;r=pw.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(s=>{const o=gw(s),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function yw(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}var xw={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},al=new Map,Fp=new Map,Cw=f(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(R.debug("Registering icon pack:",t.name),"loader"in t)Fp.set(t.name,t.loader);else if("icons"in t)al.set(t.name,t.icons);else throw R.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Ap=f(async(e,t)=>{const r=iw(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let s=al.get(i);if(!s){const a=Fp.get(i);if(!a)throw new Error(`Icon set not found: ${r.prefix}`);try{s={...await a(),prefix:i},al.set(i,s)}catch(n){throw R.error(n),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=aw(s,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),bw=f(async e=>{try{return await Ap(e),!0}catch{return!1}},"isIconAvailable"),ro=f(async(e,t,r)=>{let i;try{i=await Ap(e,t?.fallbackPrefix)}catch(a){R.error(a),i=xw}const s=fw(i,t),o=yw(mw(s.body),{...s.attributes,...r});return qe(o,Zt())},"getIconSVG"),Ep={},oe={};Object.defineProperty(oe,"__esModule",{value:!0});oe.BLANK_URL=oe.relativeFirstCharacters=oe.whitespaceEscapeCharsRegex=oe.urlSchemeRegex=oe.ctrlCharactersRegex=oe.htmlCtrlEntityRegex=oe.htmlEntitiesRegex=oe.invalidProtocolRegex=void 0;oe.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;oe.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;oe.htmlCtrlEntityRegex=/&(newline|tab);/gi;oe.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;oe.urlSchemeRegex=/^.+(:|&colon;)/gim;oe.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;oe.relativeFirstCharacters=[".","/"];oe.BLANK_URL="about:blank";Object.defineProperty(Ep,"__esModule",{value:!0});var kw=Ep.sanitizeUrl=Sw,ge=oe;function ww(e){return ge.relativeFirstCharacters.indexOf(e[0])>-1}function Tw(e){var t=e.replace(ge.ctrlCharactersRegex,"");return t.replace(ge.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function _w(e){return URL.canParse(e)}function fu(e){try{return decodeURIComponent(e)}catch{return e}}function Sw(e){if(!e)return ge.BLANK_URL;var t,r=fu(e.trim());do r=Tw(r).replace(ge.htmlCtrlEntityRegex,"").replace(ge.ctrlCharactersRegex,"").replace(ge.whitespaceEscapeCharsRegex,"").trim(),r=fu(r),t=r.match(ge.ctrlCharactersRegex)||r.match(ge.htmlEntitiesRegex)||r.match(ge.htmlCtrlEntityRegex)||r.match(ge.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return ge.BLANK_URL;if(ww(i))return i;var s=i.trimStart(),o=s.match(ge.urlSchemeRegex);if(!o)return i;var a=o[0].toLowerCase().trim();if(ge.invalidProtocolRegex.test(a))return ge.BLANK_URL;var n=s.replace(/\\/g,"/");if(a==="mailto:"||a.includes("://"))return n;if(a==="http:"||a==="https:"){if(!_w(n))return ge.BLANK_URL;var l=new URL(n);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return n}function vw(e){return Number.isSafeInteger(e)&&e>=0}function Mp(e){return e!=null&&typeof e!="function"&&vw(e.length)}function Bw(e){return e==="__proto__"}function Ql(e){return e==null||typeof e!="object"&&typeof e!="function"}function $p(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Jl(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Lw="[object RegExp]",Op="[object String]",Dp="[object Number]",Ip="[object Boolean]",Pp="[object Arguments]",Fw="[object Symbol]",Aw="[object Date]",Ew="[object Map]",Mw="[object Set]",$w="[object Array]",Ow="[object ArrayBuffer]",Rp="[object Object]",Dw="[object DataView]",Iw="[object Uint8Array]",Pw="[object Uint8ClampedArray]",Rw="[object Uint16Array]",Nw="[object Uint32Array]",qw="[object Int8Array]",zw="[object Int16Array]",Ww="[object Int32Array]",Hw="[object Float32Array]",Yw="[object Float64Array]",pu=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}()||Function("return this")();function th(e){return typeof pu.Buffer<"u"&&pu.Buffer.isBuffer(e)}function eh(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jw(e,t){return Li(e,void 0,e,new Map,t)}function Li(e,t,r,i=new Map,s=void 0){const o=s?.(e,t,r,i);if(o!==void 0)return o;if(Ql(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){const a=new Array(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=Li(e[n],n,r,i,s);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){const a=new Map;i.set(e,a);for(const[n,l]of e)a.set(n,Li(l,n,r,i,s));return a}if(e instanceof Set){const a=new Set;i.set(e,a);for(const n of e)a.add(Li(n,void 0,r,i,s));return a}if(th(e))return e.subarray();if(eh(e)){const a=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=Li(e[n],n,r,i,s);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,a),je(a,e,r,i,s),a}if(typeof File<"u"&&e instanceof File){const a=new File([e],e.name,{type:e.type});return i.set(e,a),je(a,e,r,i,s),a}if(typeof Blob<"u"&&e instanceof Blob){const a=new Blob([e],{type:e.type});return i.set(e,a),je(a,e,r,i,s),a}if(e instanceof Error){const a=structuredClone(e);return i.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,a.constructor=e.constructor,je(a,e,r,i,s),a}if(e instanceof Boolean){const a=new Boolean(e.valueOf());return i.set(e,a),je(a,e,r,i,s),a}if(e instanceof Number){const a=new Number(e.valueOf());return i.set(e,a),je(a,e,r,i,s),a}if(e instanceof String){const a=new String(e.valueOf());return i.set(e,a),je(a,e,r,i,s),a}if(typeof e=="object"&&Uw(e)){const a=Object.create(Object.getPrototypeOf(e));return i.set(e,a),je(a,e,r,i,s),a}return e}function je(e,t,r=e,i,s){const o=[...Object.keys(t),...$p(t)];for(let a=0;a<o.length;a++){const n=o[a],l=Object.getOwnPropertyDescriptor(e,n);(l==null||l.writable)&&(e[n]=Li(t[n],n,r,i,s))}}function Uw(e){switch(Jl(e)){case Pp:case $w:case Ow:case Dw:case Ip:case Aw:case Hw:case Yw:case qw:case zw:case Ww:case Ew:case Dp:case Rp:case Lw:case Mw:case Op:case Fw:case Iw:case Pw:case Rw:case Nw:return!0;default:return!1}}function Gw(e,t){return jw(e,(r,i,s,o)=>{if(typeof e=="object"){if(Jl(e)===Rp&&typeof e.constructor!="function"){const a={};return o.set(e,a),je(a,e,s,o),a}switch(Object.prototype.toString.call(e)){case Dp:case Op:case Ip:{const a=new e.constructor(e?.valueOf());return je(a,e),a}case Pp:{const a={};return je(a,e),a.length=e.length,a[Symbol.iterator]=e[Symbol.iterator],a}default:return}}})}function gu(e){return Gw(e)}function nl(e){return e!==null&&typeof e=="object"&&Jl(e)==="[object Arguments]"}function ll(e){return typeof e=="object"&&e!==null}function Xw(e){return ll(e)&&Mp(e)}function io(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");const r=function(...s){const o=t?t.apply(this,s):s[0],a=r.cache;if(a.has(o))return a.get(o);const n=e.apply(this,s);return r.cache=a.set(o,n)||a,n},i=io.Cache||Map;return r.cache=new i,r}io.Cache=Map;function Vw(){}function Zw(e){const t=e?.constructor,r=typeof t=="function"?t.prototype:Object.prototype;return e===r}function $o(e){return eh(e)}function en(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){const r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Kw(e){if(Ql(e))return e;if(Array.isArray(e)||eh(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){const i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){const i=Object.create(t);return Object.assign(i,e)}return e}function Qw(e,...t){const r=t.slice(0,-1),i=t[t.length-1];let s=e;for(let o=0;o<r.length;o++){const a=r[o];s=Oo(s,a,i,new Map)}return s}function Oo(e,t,r,i){if(Ql(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return Kw(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let o=0;o<t.length;o++)t[o]=t[o]??void 0}const s=[...Object.keys(t),...$p(t)];for(let o=0;o<s.length;o++){const a=s[o];if(Bw(a))continue;let n=t[a],l=e[a];if(nl(n)&&(n={...n}),nl(l)&&(l={...l}),th(n)&&(n=gu(n)),Array.isArray(n))if(Array.isArray(l)){const h=[],u=Reflect.ownKeys(l);for(let d=0;d<u.length;d++){const p=u[d];h[p]=l[p]}l=h}else if(Xw(l)){const h=[];for(let u=0;u<l.length;u++)h[u]=l[u];l=h}else l=[];const c=r(l,n,a,e,t,i);c!==void 0?e[a]=c:Array.isArray(n)||ll(l)&&ll(n)&&(en(l)||en(n)||$o(l)||$o(n))?e[a]=Oo(l,n,r,i):l==null&&en(n)?e[a]=Oo({},n,r,i):l==null&&$o(n)?e[a]=gu(n):(l===void 0||n!==void 0)&&(e[a]=n)}return e}function Jw(e,...t){return Qw(e,...t,Vw)}function mu(e){if(e==null)return!0;if(Mp(e))return typeof e.splice!="function"&&typeof e!="string"&&!th(e)&&!$o(e)&&!nl(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return Zw(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var tT="​",eT={curveBasis:ol,curveBasisClosed:q2,curveBasisOpen:z2,curveBumpX:np,curveBumpY:lp,curveBundle:W2,curveCardinalClosed:H2,curveCardinalOpen:Y2,curveCardinal:dp,curveCatmullRomClosed:j2,curveCatmullRomOpen:U2,curveCatmullRom:pp,curveLinear:Is,curveLinearClosed:G2,curveMonotoneX:bp,curveMonotoneY:kp,curveNatural:Tp,curveStep:_p,curveStepAfter:vp,curveStepBefore:Sp},rT=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,iT=f(function(e,t){const r=Np(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const a=r.map(n=>n.args);No(a),i=ae(i,[...a])}else i=r.args;if(!i)return;let s=Ol(e,t);const o="config";return i[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),i[s]=i[o],delete i[o]),i},"detectInit"),Np=f(function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${rT.source})(?=[}][%]{2}).*
129
+ `,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),R.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const s=[];for(;(i=Ds.exec(e))!==null;)if(i.index===Ds.lastIndex&&Ds.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const o=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;s.push({type:o,args:a})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(r){return R.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),sT=f(function(e){return e.replace(Ds,"")},"removeDirectives"),oT=f(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function rh(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return eT[r]??t}f(rh,"interpolateToCurve");function qp(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?kw(r):r}f(qp,"formatUrl");var aT=f((e,...t)=>{const r=e.split("."),i=r.length-1,s=r[i];let o=window;for(let a=0;a<i;a++)if(o=o[r[a]],!o){R.error(`Function name: ${e} not found in window`);return}o[s](...t)},"runFunc");function ih(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}f(ih,"distance");function zp(e){let t,r=0;e.forEach(s=>{r+=ih(s,t),t=s});const i=r/2;return sh(e,i)}f(zp,"traverseEdge");function Wp(e){return e.length===1?e[0]:zp(e)}f(Wp,"calcLabelPosition");var yu=f((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),sh=f((e,t)=>{let r,i=t;for(const s of e){if(r){const o=ih(s,r);if(o===0)return r;if(o<i)i-=o;else{const a=i/o;if(a<=0)return r;if(a>=1)return{x:s.x,y:s.y};if(a>0&&a<1)return{x:yu((1-a)*r.x+a*s.x,5),y:yu((1-a)*r.y+a*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),nT=f((e,t,r)=>{R.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=sh(t,25),o=e?10:5,a=Math.atan2(t[0].y-s.y,t[0].x-s.x),n={x:0,y:0};return n.x=Math.sin(a)*o+(t[0].x+s.x)/2,n.y=-Math.cos(a)*o+(t[0].y+s.y)/2,n},"calcCardinalityPosition");function Hp(e,t,r){const i=structuredClone(r);R.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const s=25+e,o=sh(i,s),a=10+e*.5,n=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(n+Math.PI)*a+(i[0].x+o.x)/2,l.y=-Math.cos(n+Math.PI)*a+(i[0].y+o.y)/2):t==="end_right"?(l.x=Math.sin(n-Math.PI)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(n-Math.PI)*a+(i[0].y+o.y)/2-5):t==="end_left"?(l.x=Math.sin(n)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(n)*a+(i[0].y+o.y)/2-5):(l.x=Math.sin(n)*a+(i[0].x+o.x)/2,l.y=-Math.cos(n)*a+(i[0].y+o.y)/2),l}f(Hp,"calcTerminalLabelPosition");function Yp(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}f(Yp,"getStylesFromArray");var xu=0,lT=f(()=>(xu++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xu),"generateId");function jp(e){let t="";const r="0123456789abcdef",i=r.length;for(let s=0;s<e;s++)t+=r.charAt(Math.floor(Math.random()*i));return t}f(jp,"makeRandomHex");var hT=f(e=>jp(e.length),"random"),cT=f(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),uT=f(function(e,t){const r=t.text.replace(Js.lineBreakRegex," "),[,i]=xa(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",i),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const o=s.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),s},"drawSimpleText"),dT=io((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Js.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),s=[];let o="";return i.forEach((a,n)=>{const l=Br(`${a} `,r),c=Br(o,r);if(l>t){const{hyphenatedStrings:d,remainingWord:p}=fT(a,t,"-",r);s.push(o,...d),o=p}else c+l>=t?(s.push(o),o=a):o=[o,a].filter(Boolean).join(" ");n+1===i.length&&s.push(o)}),s.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),fT=io((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const s=[...e],o=[];let a="";return s.forEach((n,l)=>{const c=`${a}${n}`;if(Br(c,i)>=t){const u=l+1,d=s.length===u,p=`${c}${r}`;o.push(d?c:p),a=""}else a=c}),{hyphenatedStrings:o,remainingWord:a}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Up(e,t){return oh(e,t).height}f(Up,"calculateTextHeight");function Br(e,t){return oh(e,t).width}f(Br,"calculateTextWidth");var oh=io((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=xa(r),a=["sans-serif",i],n=e.split(Js.lineBreakRegex),l=[],c=Et("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const d of a){let p=0;const y={width:0,height:0,lineHeight:0};for(const m of n){const x=cT();x.text=m||tT;const C=uT(h,x).style("font-size",o).style("font-weight",s).style("font-family",d),k=(C._groups||C)[0][0].getBBox();if(k.width===0&&k.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,k.width)),p=Math.round(k.height),y.height+=p,y.lineHeight=Math.round(Math.max(y.lineHeight,p))}l.push(y)}h.remove();const u=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Gi,pT=(Gi=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},f(Gi,"InitIDGenerator"),Gi),yo,gT=f(function(e){return yo=yo||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),yo.innerHTML=e,unescape(yo.textContent)},"entityDecode");function ah(e){return"str"in e}f(ah,"isDetailedError");var mT=f((e,t,r,i)=>{if(!i)return;const s=e.node()?.getBBox();s&&e.append("text").text(i).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-r).attr("class",t)},"insertTitle"),xa=f(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function nh(e,t){return Jw({},e,t)}f(nh,"cleanAndMerge");var ye={assignWithDepth:ae,wrapLabel:dT,calculateTextHeight:Up,calculateTextWidth:Br,calculateTextDimensions:oh,cleanAndMerge:nh,detectInit:iT,detectDirective:Np,isSubstringInArray:oT,interpolateToCurve:rh,calcLabelPosition:Wp,calcCardinalityPosition:nT,calcTerminalLabelPosition:Hp,formatUrl:qp,getStylesFromArray:Yp,generateId:lT,random:hT,runFunc:aT,entityDecode:gT,insertTitle:mT,isLabelCoordinateInPath:Gp,parseFontSize:xa,InitIDGenerator:pT},yT=f(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),Hr=f(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),X5=f((e,t,{counter:r=0,prefix:i,suffix:s},o)=>o||`${i?`${i}_`:""}${e}_${t}_${r}${s?`_${s}`:""}`,"getEdgeId");function re(e){return e??null}f(re,"handleUndefinedAttr");function Gp(e,t){const r=Math.round(e.x),i=Math.round(e.y),s=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return s.includes(r.toString())||s.includes(i.toString())}f(Gp,"isLabelCoordinateInPath");var Xp={exports:{}};(function(e){(function(t){var r=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(h){return setTimeout(h,16)};function s(){var h=this;h.reads=[],h.writes=[],h.raf=i.bind(t)}s.prototype={constructor:s,runTasks:function(h){for(var u;u=h.shift();)u()},measure:function(h,u){var d=u?h.bind(u):h;return this.reads.push(d),o(this),d},mutate:function(h,u){var d=u?h.bind(u):h;return this.writes.push(d),o(this),d},clear:function(h){return n(this.reads,h)||n(this.writes,h)},extend:function(h){if(typeof h!="object")throw new Error("expected object");var u=Object.create(this);return l(u,h),u.fastdom=this,u.initialize&&u.initialize(),u},catch:null};function o(h){h.scheduled||(h.scheduled=!0,h.raf(a.bind(null,h)))}function a(h){var u=h.writes,d=h.reads,p;try{r("flushing reads",d.length),h.runTasks(d),r("flushing writes",u.length),h.runTasks(u)}catch(y){p=y}if(h.scheduled=!1,(d.length||u.length)&&o(h),p)if(r("task errored",p.message),h.catch)h.catch(p);else throw p}function n(h,u){var d=h.indexOf(u);return!!~d&&!!h.splice(d,1)}function l(h,u){for(var d in u)u.hasOwnProperty(d)&&(h[d]=u[d])}var c=t.fastdom=t.fastdom||new s;e.exports=c})(typeof window<"u"?window:typeof zn<"u"?zn:globalThis)})(Xp);var xT=Xp.exports;const CT=Ml(xT);var Vp={exports:{}};(function(e){(function(){var t={initialize:function(){this._tasks=new Map},mutate:function(i,s){return r(this,"mutate",i,s)},measure:function(i,s){return r(this,"measure",i,s)},clear:function(i){var s=this._tasks,o=s.get(i);this.fastdom.clear(o),s.delete(i)}};function r(i,s,o,a){var n=i._tasks,l=i.fastdom,c,h=new Promise(function(u,d){c=l[s](function(){n.delete(h);try{u(a?o.call(a):o())}catch(p){d(p)}},a)});return n.set(h,c),h}e.exports=t})()})(Vp);var bT=Vp.exports;const kT=Ml(bT);function lh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fi=lh();function Zp(e){fi=e}var Ps={exec:()=>null};function Wt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(_e.caret,"$1"),r=r.replace(s,a),i},getRegex:()=>new RegExp(r,t)};return i}var wT=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),_e={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},TT=/^(?:[ \t]*(?:\n|$))+/,_T=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ST=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,so=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vT=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hh=/(?:[*+-]|\d{1,9}[.)])/,Kp=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Qp=Wt(Kp).replace(/bull/g,hh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),BT=Wt(Kp).replace(/bull/g,hh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ch=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,LT=/^[^\n]+/,uh=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,FT=Wt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",uh).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),AT=Wt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hh).getRegex(),Ca="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",dh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ET=Wt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",dh).replace("tag",Ca).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jp=Wt(ch).replace("hr",so).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ca).getRegex(),MT=Wt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Jp).getRegex(),fh={blockquote:MT,code:_T,def:FT,fences:ST,heading:vT,hr:so,html:ET,lheading:Qp,list:AT,newline:TT,paragraph:Jp,table:Ps,text:LT},Cu=Wt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",so).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ca).getRegex(),$T={...fh,lheading:BT,table:Cu,paragraph:Wt(ch).replace("hr",so).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Cu).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ca).getRegex()},OT={...fh,html:Wt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",dh).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ps,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Wt(ch).replace("hr",so).replace("heading",` *#{1,6} *[^
130
+ ]`).replace("lheading",Qp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},DT=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,IT=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,tg=/^( {2,}|\\)\n(?!\s*$)/,PT=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ba=/[\p{P}\p{S}]/u,ph=/[\s\p{P}\p{S}]/u,eg=/[^\s\p{P}\p{S}]/u,RT=Wt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ph).getRegex(),rg=/(?!~)[\p{P}\p{S}]/u,NT=/(?!~)[\s\p{P}\p{S}]/u,qT=/(?:[^\s\p{P}\p{S}]|~)/u,zT=Wt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",wT?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ig=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,WT=Wt(ig,"u").replace(/punct/g,ba).getRegex(),HT=Wt(ig,"u").replace(/punct/g,rg).getRegex(),sg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",YT=Wt(sg,"gu").replace(/notPunctSpace/g,eg).replace(/punctSpace/g,ph).replace(/punct/g,ba).getRegex(),jT=Wt(sg,"gu").replace(/notPunctSpace/g,qT).replace(/punctSpace/g,NT).replace(/punct/g,rg).getRegex(),UT=Wt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,eg).replace(/punctSpace/g,ph).replace(/punct/g,ba).getRegex(),GT=Wt(/\\(punct)/,"gu").replace(/punct/g,ba).getRegex(),XT=Wt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),VT=Wt(dh).replace("(?:-->|$)","-->").getRegex(),ZT=Wt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",VT).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ta=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,KT=Wt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ta).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),og=Wt(/^!?\[(label)\]\[(ref)\]/).replace("label",ta).replace("ref",uh).getRegex(),ag=Wt(/^!?\[(ref)\](?:\[\])?/).replace("ref",uh).getRegex(),QT=Wt("reflink|nolink(?!\\()","g").replace("reflink",og).replace("nolink",ag).getRegex(),bu=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gh={_backpedal:Ps,anyPunctuation:GT,autolink:XT,blockSkip:zT,br:tg,code:IT,del:Ps,emStrongLDelim:WT,emStrongRDelimAst:YT,emStrongRDelimUnd:UT,escape:DT,link:KT,nolink:ag,punctuation:RT,reflink:og,reflinkSearch:QT,tag:ZT,text:PT,url:Ps},JT={...gh,link:Wt(/^!?\[(label)\]\((.*?)\)/).replace("label",ta).getRegex(),reflink:Wt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ta).getRegex()},hl={...gh,emStrongRDelimAst:jT,emStrongLDelim:HT,url:Wt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",bu).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Wt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",bu).getRegex()},t_={...hl,br:Wt(tg).replace("{2,}","*").getRegex(),text:Wt(hl.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xo={normal:fh,gfm:$T,pedantic:OT},gs={normal:gh,gfm:hl,breaks:t_,pedantic:JT},e_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ku=e=>e_[e];function ir(e,t){if(t){if(_e.escapeTest.test(e))return e.replace(_e.escapeReplace,ku)}else if(_e.escapeTestNoEncode.test(e))return e.replace(_e.escapeReplaceNoEncode,ku);return e}function wu(e){try{e=encodeURI(e).replace(_e.percentDecode,"%")}catch{return null}return e}function Tu(e,t){let r=e.replace(_e.findPipe,(o,a,n)=>{let l=!1,c=a;for(;--c>=0&&n[c]==="\\";)l=!l;return l?"|":" |"}),i=r.split(_e.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(_e.slashPipe,"|");return i}function ms(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function r_(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function _u(e,t,r,i,s){let o=t.href,a=t.title||null,n=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:a,text:n,tokens:i.inlineTokens(n)};return i.state.inLink=!1,l}function i_(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
131
+ `).map(o=>{let a=o.match(r.other.beginningSpace);if(a===null)return o;let[n]=a;return n.length>=s.length?o.slice(s.length):o}).join(`
132
+ `)}var ea=class{constructor(t){Ut(this,"options");Ut(this,"rules");Ut(this,"lexer");this.options=t||fi}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:ms(i,`
133
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=i_(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let s=ms(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:ms(r[0],`
134
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=ms(r[0],`
135
+ `).split(`
136
+ `),s="",o="",a=[];for(;i.length>0;){let n=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),n=!0;else if(!n)l.push(i[c]);else break;i=i.slice(c);let h=l.join(`
137
+ `),u=h.replace(this.rules.other.blockquoteSetextReplace,`
138
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
139
+ ${h}`:h,o=o?`${o}
140
+ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=d,i.length===0)break;let p=a.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let y=p,m=y.raw+`
141
+ `+i.join(`
142
+ `),x=this.blockquote(m);a[a.length-1]=x,s=s.substring(0,s.length-y.raw.length)+x.raw,o=o.substring(0,o.length-y.text.length)+x.text;break}else if(p?.type==="list"){let y=p,m=y.raw+`
143
+ `+i.join(`
144
+ `),x=this.list(m);a[a.length-1]=x,s=s.substring(0,s.length-p.raw.length)+x.raw,o=o.substring(0,o.length-y.raw.length)+x.raw,i=m.substring(a.at(-1).raw.length).split(`
145
+ `);continue}}return{type:"blockquote",raw:s,tokens:a,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let a=this.rules.other.listItemRegex(i),n=!1;for(;t;){let c=!1,h="",u="";if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let d=r[2].split(`
146
+ `,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),p=t.split(`
147
+ `,1)[0],y=!d.trim(),m=0;if(this.options.pedantic?(m=2,u=d.trimStart()):y?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=d.slice(m),m+=r[1].length),y&&this.rules.other.blankLine.test(p)&&(h+=p+`
148
+ `,t=t.substring(p.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(m),T=this.rules.other.hrRegex(m),S=this.rules.other.fencesBeginRegex(m),v=this.rules.other.headingBeginRegex(m),L=this.rules.other.htmlBeginRegex(m);for(;t;){let A=t.split(`
149
+ `,1)[0],F;if(p=A,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),F=p):F=p.replace(this.rules.other.tabCharGlobal," "),S.test(p)||v.test(p)||L.test(p)||k.test(p)||T.test(p))break;if(F.search(this.rules.other.nonSpaceChar)>=m||!p.trim())u+=`
150
+ `+F.slice(m);else{if(y||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(d)||v.test(d)||T.test(d))break;u+=`
151
+ `+p}!y&&!p.trim()&&(y=!0),h+=A+`
152
+ `,t=t.substring(A.length+1),d=F.slice(m)}}o.loose||(n?o.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(n=!0));let x=null,C;this.options.gfm&&(x=this.rules.other.listIsTask.exec(u),x&&(C=x[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:h,task:!!x,checked:C,loose:!1,text:u,tokens:[]}),o.raw+=h}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let c=0;c<o.items.length;c++)if(this.lexer.state.top=!1,o.items[c].tokens=this.lexer.blockTokens(o.items[c].text,[]),!o.loose){let h=o.items[c].tokens.filter(d=>d.type==="space"),u=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=u}if(o.loose)for(let c=0;c<o.items.length;c++)o.items[c].loose=!0;return o}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:o}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=Tu(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
153
+ `):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let n of s)this.rules.other.tableAlignRight.test(n)?a.align.push("right"):this.rules.other.tableAlignCenter.test(n)?a.align.push("center"):this.rules.other.tableAlignLeft.test(n)?a.align.push("left"):a.align.push(null);for(let n=0;n<i.length;n++)a.header.push({text:i[n],tokens:this.lexer.inline(i[n]),header:!0,align:a.align[n]});for(let n of o)a.rows.push(Tu(n,a.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[c]})));return a}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
154
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=ms(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=r_(r[2],"()");if(a===-2)return;if(a>-1){let n=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,n).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],o=a[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),_u(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[s.toLowerCase()];if(!o){let a=i[0].charAt(0);return{type:"text",raw:a,text:a}}return _u(i,o,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let o=[...s[0]].length-1,a,n,l=o,c=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+o);(s=h.exec(r))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(n=[...a].length,s[3]||s[4]){l+=n;continue}else if((s[5]||s[6])&&o%3&&!((o+n)%3)){c+=n;continue}if(l-=n,l>0)continue;n=Math.min(n,n+l+c);let u=[...s[0]][0].length,d=t.slice(0,o+s.index+u+n);if(Math.min(o,n)%2){let y=d.slice(1,-1);return{type:"em",raw:d,text:y,tokens:this.lexer.inlineTokens(y)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let i,s;if(r[2]==="@")i=r[0],s="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(o!==r[0]);i=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},Ue=class cl{constructor(t){Ut(this,"tokens");Ut(this,"options");Ut(this,"state");Ut(this,"tokenizer");Ut(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||fi,this.options.tokenizer=this.options.tokenizer||new ea,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:_e,block:xo.normal,inline:gs.normal};this.options.pedantic?(r.block=xo.pedantic,r.inline=gs.pedantic):this.options.gfm&&(r.block=xo.gfm,this.options.breaks?r.inline=gs.breaks:r.inline=gs.gfm),this.tokenizer.rules=r}static get rules(){return{block:xo,inline:gs}}static lex(t,r){return new cl(r).lex(t)}static lexInline(t,r){return new cl(r).inlineTokens(t)}lex(t){t=t.replace(_e.carriageReturn,`
155
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){for(this.options.pedantic&&(t=t.replace(_e.tabCharGlobal," ").replace(_e.spaceLine,""));t;){let s;if(this.options.extensions?.block?.some(a=>(s=a.call({lexer:this},t,r))?(t=t.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let a=r.at(-1);s.raw.length===1&&a!==void 0?a.raw+=`
156
+ `:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
157
+ `)?"":`
158
+ `)+s.raw,a.text+=`
159
+ `+s.text,this.inlineQueue.at(-1).src=a.text):r.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
160
+ `)?"":`
161
+ `)+s.raw,a.text+=`
162
+ `+s.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}let o=t;if(this.options.extensions?.startBlock){let a=1/0,n=t.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},n),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(o))){let a=r.at(-1);i&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
163
+ `)?"":`
164
+ `)+s.raw,a.text+=`
165
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(s),i=o.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
166
+ `)?"":`
167
+ `)+s.raw,a.text+=`
168
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(s);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i=t,s=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)o=s[2]?s[2].length:0,i=i.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,n="";for(;t;){a||(n=""),a=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,i,n)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let c=t;if(this.options.extensions?.startInline){let h=1/0,u=t.slice(1),d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},u),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(c=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(n=l.raw.slice(-1)),a=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},ra=class{constructor(t){Ut(this,"options");Ut(this,"parser");this.options=t||fi}space(t){return""}code({text:t,lang:r,escaped:i}){let s=(r||"").match(_e.notSpaceStart)?.[0],o=t.replace(_e.endingNewline,"")+`
169
+ `;return s?'<pre><code class="language-'+ir(s)+'">'+(i?o:ir(o,!0))+`</code></pre>
170
+ `:"<pre><code>"+(i?o:ir(o,!0))+`</code></pre>
171
+ `}blockquote({tokens:t}){return`<blockquote>
172
+ ${this.parser.parse(t)}</blockquote>
173
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
174
+ `}hr(t){return`<hr>
175
+ `}list(t){let r=t.ordered,i=t.start,s="";for(let n=0;n<t.items.length;n++){let l=t.items[n];s+=this.listitem(l)}let o=r?"ol":"ul",a=r&&i!==1?' start="'+i+'"':"";return"<"+o+a+`>
176
+ `+s+"</"+o+`>
177
+ `}listitem(t){let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+ir(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
178
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
179
+ `}table(t){let r="",i="";for(let o=0;o<t.header.length;o++)i+=this.tablecell(t.header[o]);r+=this.tablerow({text:i});let s="";for(let o=0;o<t.rows.length;o++){let a=t.rows[o];i="";for(let n=0;n<a.length;n++)i+=this.tablecell(a[n]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
180
+ <thead>
181
+ `+r+`</thead>
182
+ `+s+`</table>
183
+ `}tablerow({text:t}){return`<tr>
184
+ ${t}</tr>
185
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
186
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ir(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),o=wu(t);if(o===null)return s;t=o;let a='<a href="'+t+'"';return r&&(a+=' title="'+ir(r)+'"'),a+=">"+s+"</a>",a}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=wu(t);if(o===null)return ir(i);t=o;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${ir(r)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ir(t.text)}},mh=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Ge=class ul{constructor(t){Ut(this,"options");Ut(this,"renderer");Ut(this,"textRenderer");this.options=t||fi,this.options.renderer=this.options.renderer||new ra,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new mh}static parse(t,r){return new ul(r).parse(t)}static parseInline(t,r){return new ul(r).parseInline(t)}parse(t,r=!0){let i="";for(let s=0;s<t.length;s++){let o=t[s];if(this.options.extensions?.renderers?.[o.type]){let n=o,l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(n.type)){i+=l||"";continue}}let a=o;switch(a.type){case"space":{i+=this.renderer.space(a);continue}case"hr":{i+=this.renderer.hr(a);continue}case"heading":{i+=this.renderer.heading(a);continue}case"code":{i+=this.renderer.code(a);continue}case"table":{i+=this.renderer.table(a);continue}case"blockquote":{i+=this.renderer.blockquote(a);continue}case"list":{i+=this.renderer.list(a);continue}case"html":{i+=this.renderer.html(a);continue}case"def":{i+=this.renderer.def(a);continue}case"paragraph":{i+=this.renderer.paragraph(a);continue}case"text":{let n=a,l=this.renderer.text(n);for(;s+1<t.length&&t[s+1].type==="text";)n=t[++s],l+=`
187
+ `+this.renderer.text(n);r?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):i+=l;continue}default:{let n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return i}parseInline(t,r=this.renderer){let i="";for(let s=0;s<t.length;s++){let o=t[s];if(this.options.extensions?.renderers?.[o.type]){let n=this.options.extensions.renderers[o.type].call({parser:this},o);if(n!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=n||"";continue}}let a=o;switch(a.type){case"escape":{i+=r.text(a);break}case"html":{i+=r.html(a);break}case"link":{i+=r.link(a);break}case"image":{i+=r.image(a);break}case"strong":{i+=r.strong(a);break}case"em":{i+=r.em(a);break}case"codespan":{i+=r.codespan(a);break}case"br":{i+=r.br(a);break}case"del":{i+=r.del(a);break}case"text":{i+=r.text(a);break}default:{let n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return i}},Bo,Bs=(Bo=class{constructor(t){Ut(this,"options");Ut(this,"block");this.options=t||fi}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Ue.lex:Ue.lexInline}provideParser(){return this.block?Ge.parse:Ge.parseInline}},Ut(Bo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ut(Bo,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Bo),s_=class{constructor(...t){Ut(this,"defaults",lh());Ut(this,"options",this.setOptions);Ut(this,"parse",this.parseMarkdown(!0));Ut(this,"parseInline",this.parseMarkdown(!1));Ut(this,"Parser",Ge);Ut(this,"Renderer",ra);Ut(this,"TextRenderer",mh);Ut(this,"Lexer",Ue);Ut(this,"Tokenizer",ea);Ut(this,"Hooks",Bs);this.use(...t)}walkTokens(t,r){let i=[];for(let s of t)switch(i=i.concat(r.call(this,s)),s.type){case"table":{let o=s;for(let a of o.header)i=i.concat(this.walkTokens(a.tokens,r));for(let a of o.rows)for(let n of a)i=i.concat(this.walkTokens(n.tokens,r));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,r));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{let n=o[a].flat(1/0);i=i.concat(this.walkTokens(n,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=r.renderers[o.name];a?r.renderers[o.name]=function(...n){let l=o.renderer.apply(this,n);return l===!1&&(l=a.apply(this,n)),l}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[o.level];a?a.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),i.renderer){let o=this.defaults.renderer||new ra(this.defaults);for(let a in i.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let n=a,l=i.renderer[n],c=o[n];o[n]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new ea(this.defaults);for(let a in i.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let n=a,l=i.tokenizer[n],c=o[n];o[n]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Bs;for(let a in i.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let n=a,l=i.hooks[n],c=o[n];Bs.passThroughHooks.has(a)?o[n]=h=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await l.call(o,h);return c.call(o,d)})();let u=l.call(o,h);return c.call(o,u)}:o[n]=(...h)=>{if(this.defaults.async)return(async()=>{let d=await l.apply(o,h);return d===!1&&(d=await c.apply(o,h)),d})();let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,a=i.walkTokens;s.walkTokens=function(n){let l=[];return l.push(a.call(this,n)),o&&(l=l.concat(o.call(this,n))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Ue.lex(t,r??this.defaults)}parser(t,r){return Ge.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},o={...this.defaults,...s},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(r):r,l=await(o.hooks?await o.hooks.provideLexer():t?Ue.lex:Ue.lexInline)(n,o),c=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(c,o.walkTokens));let h=await(o.hooks?await o.hooks.provideParser():t?Ge.parse:Ge.parseInline)(c,o);return o.hooks?await o.hooks.postprocess(h):h})().catch(a);try{o.hooks&&(r=o.hooks.preprocess(r));let n=(o.hooks?o.hooks.provideLexer():t?Ue.lex:Ue.lexInline)(r,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():t?Ge.parse:Ge.parseInline)(n,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(n){return a(n)}}}onError(t,r){return i=>{if(i.message+=`
188
+ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+ir(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},li=new s_;function Yt(e,t){return li.parse(e,t)}Yt.options=Yt.setOptions=function(e){return li.setOptions(e),Yt.defaults=li.defaults,Zp(Yt.defaults),Yt};Yt.getDefaults=lh;Yt.defaults=fi;Yt.use=function(...e){return li.use(...e),Yt.defaults=li.defaults,Zp(Yt.defaults),Yt};Yt.walkTokens=function(e,t){return li.walkTokens(e,t)};Yt.parseInline=li.parseInline;Yt.Parser=Ge;Yt.parser=Ge.parse;Yt.Renderer=ra;Yt.TextRenderer=mh;Yt.Lexer=Ue;Yt.lexer=Ue.lex;Yt.Tokenizer=ea;Yt.Hooks=Bs;Yt.parse=Yt;Yt.options;Yt.setOptions;Yt.use;Yt.walkTokens;Yt.parseInline;Ge.parse;Ue.lex;function ng(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var s=i.reduce(function(n,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?n.concat(c.map(function(h){var u,d;return(d=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0})):n},[]);if(s.length){var o=new RegExp(`
189
+ [ ]{`+Math.min.apply(Math,s)+"}","g");i=i.map(function(n){return n.replace(o,`
190
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return t.forEach(function(n,l){var c=a.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=n;typeof n=="string"&&n.includes(`
191
+ `)&&(u=String(n).split(`
192
+ `).map(function(d,p){return p===0?d:""+h+d}).join(`
193
+ `)),a+=u+i[l+1]}),a}var dl=typeof performance<"u"&&typeof performance.now=="function",ki=f(()=>dl?performance.now():0,"now"),rn="🧜 ",o_="Mermaid render",a_="Mermaid",n_={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},Xi;Xi=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,r){if(!this.enabled)return r();const i=ki();try{return r()}finally{this.buckets[t]=(this.buckets[t]??0)+(ki()-i)}}async tick(t,r){if(!this.enabled)return r();const i=ki();try{return await r()}finally{this.buckets[t]=(this.buckets[t]??0)+(ki()-i)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const t=this.roots.at(-1),r=this.runLabel??t?.name;return t&&(this.records.push({label:r??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,r)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;const r={name:t,start:ki(),duration:-1,children:[]},i=this.stack.at(-1);if(i?i.children.push(r):this.roots.push(r),this.stack.push(r),dl&&typeof performance.mark=="function")try{performance.mark(`${rn}${t} ▶`)}catch{}}end(){if(!this.enabled)return;const t=this.stack.pop();if(!t)return;const r=ki();if(t.duration=r-t.start,dl&&typeof performance.measure=="function")try{performance.measure(`${rn}${t.name}`,{start:t.start,end:r,detail:{devtools:{dataType:"track-entry",track:o_,trackGroup:a_,color:n_[t.name]??"primary",tooltipText:`${t.name} — ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,r){if(!this.enabled)return r();this.begin(t);try{return await r()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),r){if(!t)return;const i=t.duration,s=r&&r!==t.name?`${t.name} [${r}]`:t.name,o=["ms % phase"],a=f((l,c)=>{const h=" ".repeat(c),u=l.duration.toFixed(1).padStart(8),d=i>0?`${(l.duration/i*100).toFixed(0).padStart(3)}%`:" -";o.push(`${u} ${d} ${h}${l.name}`);for(const p of l.children)a(p,c+1);if(l.children.length>0){const p=l.children.reduce((m,x)=>m+x.duration,0),y=l.duration-p;if(y>.5){const m=y.toFixed(1).padStart(8);o.push(`${m} ${h} (self)`)}}},"walk");a(t,0);const n=Object.keys(this.buckets);if(n.length>0){o.push("—— buckets (summed) ——");for(const l of n)o.push(`${this.buckets[l].toFixed(1).padStart(8)} ${l}`)}console.log(`${rn}mermaid render profile · ${s}
194
+ ${o.join(`
195
+ `)}`)}},f(Xi,"Profiler");globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var l_=CT.extend({raf(e){typeof queueMicrotask=="function"?queueMicrotask(e):setTimeout(e,0)}}).extend(kT),hi=l_;function lg(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
196
+ `).replace(/\n{2,}/g,`
197
+ `);return ng(i)}f(lg,"preprocessMarkdown");function hg(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}f(hg,"nonMarkdownToLines");function cg(e,t={}){const r=lg(e,t),i=Yt.lexer(r),s=[[]];let o=0;function a(n,l="normal"){n.type==="text"?n.text.split(`
198
+ `).forEach((h,u)=>{u!==0&&(o++,s.push([])),h.split(" ").forEach(d=>{d=d.replace(/&#39;/g,"'"),d&&s[o].push({content:d,type:l})})}):n.type==="strong"||n.type==="em"?n.tokens.forEach(c=>{a(c,n.type)}):n.type==="html"&&s[o].push({content:n.text,type:"normal"})}return f(a,"processNode"),i.forEach(n=>{n.type==="paragraph"?n.tokens?.forEach(l=>{a(l)}):n.type==="html"?s[o].push({content:n.text,type:"normal"}):s[o].push({content:n.raw,type:"normal"})}),s}f(cg,"markdownToLines");function ug(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}f(ug,"nonMarkdownToHTML");function dg(e,{markdownAutoWrap:t}={}){const r=Yt.lexer(e);function i(s){return s.type==="text"?t===!1?s.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):s.text.replace(/\n */g,"<br/>"):s.type==="strong"?`<strong>${s.tokens?.map(i).join("")}</strong>`:s.type==="em"?`<em>${s.tokens?.map(i).join("")}</em>`:s.type==="paragraph"?`<p>${s.tokens?.map(i).join("")}</p>`:s.type==="space"?"":s.type==="html"?`${s.text}`:s.type==="escape"?s.text:(R.warn(`Unsupported markdown: ${s.type}`),s.raw)}return f(i,"output"),r.map(i).join("")}f(dg,"markdownToHTML");function fg(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}f(fg,"splitTextToChars");function pg(e,t){const r=fg(t.content);return yh(e,[],r,t.type)}f(pg,"splitWordToFitWidth");function yh(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[s,...o]=r,a=[...t,s];return e([{content:a.join(""),type:i}])?yh(e,a,o,i):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}f(yh,"splitWordToFitWidthRecursion");function gg(e,t){if(e.some(({content:r})=>r.includes(`
199
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return ia(e,t)}f(gg,"splitLineToFitWidth");function ia(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},a=[...i];if(s!==""&&a.push({content:s,type:"normal"}),a.push(o),t(a))return ia(e,t,r,a);if(i.length>0)r.push(i),e.unshift(o);else if(o.content){const[n,l]=pg(t,o);r.push([n]),l.content&&e.unshift(l)}return ia(e,t,r)}f(ia,"splitLineToFitWidthRecursion");function fl(e,t){t&&e.attr("style",t)}f(fl,"applyStyle");var Su=16384;async function mg(e,t,r,i,s=!1,o=Zt()){const a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,Su)}px`),a.attr("height",`${Math.min(10*r,Su)}px`);const n=a.append("xhtml:div"),l=qs(t.label)?await Ff(t.label.replace(Js.lineBreakRegex,`
200
+ `),o):qe(t.label,o),c=t.isNode?"nodeLabel":"edgeLabel",h=n.append("span");return h.html(l),fl(h,t.labelStyle),h.attr("class",`${c} ${i}`),fl(n,t.labelStyle),n.style("display","table-cell"),n.style("white-space","nowrap"),n.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(n.style("max-width",r+"px"),n.style("text-align","center")),n.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&n.attr("class","labelBkg"),(await hi.measure(()=>n.node().getBoundingClientRect())).width===r&&(n.style("display","table"),n.style("white-space","break-spaces"),n.style("width",r+"px")),a.node()}f(mg,"addHtmlSpan");function ka(e,t,r,i=!1){const s=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&s.attr("text-anchor","middle"),s}f(ka,"createTspan");function yg(e,t,r){const i=e.append("text"),s=ka(i,1,t);wa(s,r);const o=s.node().getComputedTextLength();return i.remove(),o}f(yg,"computeWidthOfText");function h_(e,t,r){const i=e.append("text"),s=ka(i,1,t);wa(s,[{content:r,type:"normal"}]);const o=s.node()?.getBoundingClientRect();return o&&i.remove(),o}f(h_,"computeDimensionOfText");function xg(e,t,r,i=!1,s=!1){const a=t.append("g"),n=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");s&&l.attr("text-anchor","middle");let c=0;for(const h of r){const u=f(p=>yg(a,1.1,p)<=e,"checkWidth"),d=u(h)?[h]:gg(h,u);for(const p of d){const y=ka(l,c,1.1,s);wa(y,p),c++}}if(i){const h=l.node().getBBox(),u=2;return n.attr("x",h.x-u).attr("y",h.y-u).attr("width",h.width+2*u).attr("height",h.height+2*u),a.node()}else return l.node()}f(xg,"createFormattedText");function pl(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}f(pl,"decodeHTMLEntities");function wa(e,t){e.text(""),t.forEach((r,i)=>{const s=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?s.text(pl(r.content)):s.text(" "+pl(r.content))})}f(wa,"updateTextContentAndStyles");async function Cg(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,o,a)=>(r.push((async()=>{const n=`${o}:${a}`;return await bw(n)?await ro(n,void 0,{class:"label-icon"}):`<i class='${qe(s,t).replace(":"," ")}'></i>`})()),s));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}f(Cg,"replaceIconSubstring");var Qe=f(async(e,t="",{style:r="",isTitle:i=!1,classes:s="",useHtmlLabels:o=!0,markdown:a=!0,isNode:n=!0,width:l=200,addSvgBackground:c=!1}={},h)=>{if(R.debug("XYZ createText",t,r,i,s,o,n,"addSvgBackground: ",c),o){const u=a?dg(t,h):ug(t),d=await Cg(Hr(u),h),p=t.replace(/\\\\/g,"\\"),y={isNode:n,label:qs(t)?p:d,labelStyle:r.replace("fill:","color:")};return await mg(e,y,l,s,c,h)}else{const u=Hr(t.replace(/<br\s*\/?>/g,"<br/>")),d=a?cg(u.replace("<br>","<br/>"),h):hg(u),p=xg(l,e,d,t?c:!1,!n);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Et(p).attr("style",y)}else{const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Et(p).select("rect").attr("style",y.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Et(p).select("text").attr("style",m)}return i?Et(p).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Et(p).selectAll("tspan.text-outer-tspan").classed("row",!0),p}},"createText");function sn(e,t,r){if(e&&e.length){const[i,s]=t,o=Math.PI/180*r,a=Math.cos(o),n=Math.sin(o);for(const l of e){const[c,h]=l;l[0]=(c-i)*a-(h-s)*n+i,l[1]=(c-i)*n+(h-s)*a+s}}}function c_(e,t){return e[0]===t[0]&&e[1]===t[1]}function u_(e,t,r,i=1){const s=r,o=Math.max(t,.1),a=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,n=[0,0];if(s)for(const c of a)sn(c,n,s);const l=function(c,h,u){const d=[];for(const k of c){const T=[...k];c_(T[0],T[T.length-1])||T.push([T[0][0],T[0][1]]),T.length>2&&d.push(T)}const p=[];h=Math.max(h,.1);const y=[];for(const k of d)for(let T=0;T<k.length-1;T++){const S=k[T],v=k[T+1];if(S[1]!==v[1]){const L=Math.min(S[1],v[1]);y.push({ymin:L,ymax:Math.max(S[1],v[1]),x:L===S[1]?S[0]:v[0],islope:(v[0]-S[0])/(v[1]-S[1])})}}if(y.sort((k,T)=>k.ymin<T.ymin?-1:k.ymin>T.ymin?1:k.x<T.x?-1:k.x>T.x?1:k.ymax===T.ymax?0:(k.ymax-T.ymax)/Math.abs(k.ymax-T.ymax)),!y.length)return p;let m=[],x=y[0].ymin,C=0;for(;m.length||y.length;){if(y.length){let k=-1;for(let T=0;T<y.length&&!(y[T].ymin>x);T++)k=T;y.splice(0,k+1).forEach(T=>{m.push({s:x,edge:T})})}if(m=m.filter(k=>!(k.edge.ymax<=x)),m.sort((k,T)=>k.edge.x===T.edge.x?0:(k.edge.x-T.edge.x)/Math.abs(k.edge.x-T.edge.x)),(u!==1||C%h==0)&&m.length>1)for(let k=0;k<m.length;k+=2){const T=k+1;if(T>=m.length)break;const S=m[k].edge,v=m[T].edge;p.push([[Math.round(S.x),x],[Math.round(v.x),x]])}x+=u,m.forEach(k=>{k.edge.x=k.edge.x+u*k.edge.islope}),C++}return p}(a,o,i);if(s){for(const c of a)sn(c,n,-s);(function(c,h,u){const d=[];c.forEach(p=>d.push(...p)),sn(d,h,u)})(l,n,-s)}return l}function oo(e,t){var r;const i=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=s),u_(e,s,i,o||1)}class xh{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=oo(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const s of t)i.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return i}}function Ta(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class d_ extends xh{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const s=oo(t,Object.assign({},r,{hachureGap:i})),o=Math.PI/180*r.hachureAngle,a=[],n=.5*i*Math.cos(o),l=.5*i*Math.sin(o);for(const[c,h]of s)Ta([c,h])&&a.push([[c[0]-n,c[1]+l],[...h]],[[c[0]+n,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,r)}}}class f_ extends xh{fillPolygons(t,r){const i=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,s);return i.ops=i.ops.concat(o.ops),i}}class p_{constructor(t){this.helper=t}fillPolygons(t,r){const i=oo(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let s=r.hachureGap;s<0&&(s=4*r.strokeWidth),s=Math.max(s,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const a=s/4;for(const n of t){const l=Ta(n),c=l/s,h=Math.ceil(c)-1,u=l-h*s,d=(n[0][0]+n[1][0])/2-s/4,p=Math.min(n[0][1],n[1][1]);for(let y=0;y<h;y++){const m=p+u+y*s,x=d-a+2*Math.random()*a,C=m-a+2*Math.random()*a,k=this.helper.ellipse(x,C,o,o,r);i.push(...k.ops)}}return{type:"fillSketch",ops:i}}}class g_{constructor(t){this.helper=t}fillPolygons(t,r){const i=oo(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,s=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return t.forEach(a=>{const n=Ta(a),l=Math.floor(n/(i+s)),c=(n+s-l*(i+s))/2;let h=a[0],u=a[1];h[0]>u[0]&&(h=a[1],u=a[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let p=0;p<l;p++){const y=p*(i+s),m=y+i,x=[h[0]+y*Math.cos(d)+c*Math.cos(d),h[1]+y*Math.sin(d)+c*Math.sin(d)],C=[h[0]+m*Math.cos(d)+c*Math.cos(d),h[1]+m*Math.sin(d)+c*Math.sin(d)];o.push(...this.helper.doubleLineOps(x[0],x[1],C[0],C[1],r))}}),o}}class m_{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,s=r.zigzagOffset<0?i:r.zigzagOffset,o=oo(t,r=Object.assign({},r,{hachureGap:i+s}));return{type:"fillSketch",ops:this.zigzagLines(o,s,r)}}zigzagLines(t,r,i){const s=[];return t.forEach(o=>{const a=Ta(o),n=Math.round(a/(2*r));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<n;u++){const d=2*u*r,p=2*(u+1)*r,y=Math.sqrt(2*Math.pow(r,2)),m=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],x=[l[0]+p*Math.cos(h),l[1]+p*Math.sin(h)],C=[m[0]+y*Math.cos(h+Math.PI/4),m[1]+y*Math.sin(h+Math.PI/4)];s.push(...this.helper.doubleLineOps(m[0],m[1],C[0],C[1],i),...this.helper.doubleLineOps(C[0],C[1],x[0],x[1],i))}}),s}}const Fe={};class y_{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const x_=0,on=1,vu=2,Co={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function an(e,t){return e.type===t}function Ch(e){const t=[],r=function(a){const n=new Array;for(;a!=="";)if(a.match(/^([ \t\r\n,]+)/))a=a.substr(RegExp.$1.length);else if(a.match(/^([aAcChHlLmMqQsStTvVzZ])/))n[n.length]={type:x_,text:RegExp.$1},a=a.substr(RegExp.$1.length);else{if(!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];n[n.length]={type:on,text:`${parseFloat(RegExp.$1)}`},a=a.substr(RegExp.$1.length)}return n[n.length]={type:vu,text:""},n}(e);let i="BOD",s=0,o=r[s];for(;!an(o,vu);){let a=0;const n=[];if(i==="BOD"){if(o.text!=="M"&&o.text!=="m")return Ch("M0,0"+e);s++,a=Co[o.text],i=o.text}else an(o,on)?a=Co[i]:(s++,a=Co[o.text],i=o.text);if(!(s+a<r.length))throw new Error("Path data ended short");for(let l=s;l<s+a;l++){const c=r[l];if(!an(c,on))throw new Error("Param not a number: "+i+","+c.text);n[n.length]=+c.text}if(typeof Co[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:n};t.push(l),s+=a,o=r[s],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function bg(e){let t=0,r=0,i=0,s=0;const o=[];for(const{key:a,data:n}of e)switch(a){case"M":o.push({key:"M",data:[...n]}),[t,r]=n,[i,s]=n;break;case"m":t+=n[0],r+=n[1],o.push({key:"M",data:[t,r]}),i=t,s=r;break;case"L":o.push({key:"L",data:[...n]}),[t,r]=n;break;case"l":t+=n[0],r+=n[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...n]}),t=n[4],r=n[5];break;case"c":{const l=n.map((c,h)=>h%2?c+r:c+t);o.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":o.push({key:"Q",data:[...n]}),t=n[2],r=n[3];break;case"q":{const l=n.map((c,h)=>h%2?c+r:c+t);o.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":o.push({key:"A",data:[...n]}),t=n[5],r=n[6];break;case"a":t+=n[5],r+=n[6],o.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],t,r]});break;case"H":o.push({key:"H",data:[...n]}),t=n[0];break;case"h":t+=n[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...n]}),r=n[0];break;case"v":r+=n[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...n]}),t=n[2],r=n[3];break;case"s":{const l=n.map((c,h)=>h%2?c+r:c+t);o.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":o.push({key:"T",data:[...n]}),t=n[0],r=n[1];break;case"t":t+=n[0],r+=n[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=i,r=s}return o}function kg(e){const t=[];let r="",i=0,s=0,o=0,a=0,n=0,l=0;for(const{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,s]=h,[o,a]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],s=h[5],n=h[2],l=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,s]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,s]});break;case"V":s=h[0],t.push({key:"L",data:[i,s]});break;case"S":{let u=0,d=0;r==="C"||r==="S"?(u=i+(i-n),d=s+(s-l)):(u=i,d=s),t.push({key:"C",data:[u,d,...h]}),n=h[0],l=h[1],i=h[2],s=h[3];break}case"T":{const[u,d]=h;let p=0,y=0;r==="Q"||r==="T"?(p=i+(i-n),y=s+(s-l)):(p=i,y=s);const m=i+2*(p-i)/3,x=s+2*(y-s)/3,C=u+2*(p-u)/3,k=d+2*(y-d)/3;t.push({key:"C",data:[m,x,C,k,u,d]}),n=p,l=y,i=u,s=d;break}case"Q":{const[u,d,p,y]=h,m=i+2*(u-i)/3,x=s+2*(d-s)/3,C=p+2*(u-p)/3,k=y+2*(d-y)/3;t.push({key:"C",data:[m,x,C,k,p,y]}),n=u,l=d,i=p,s=y;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),p=h[2],y=h[3],m=h[4],x=h[5],C=h[6];u===0||d===0?(t.push({key:"C",data:[i,s,x,C,x,C]}),i=x,s=C):(i!==x||s!==C)&&(wg(i,s,x,C,u,d,p,y,m).forEach(function(k){t.push({key:"C",data:k})}),i=x,s=C);break}case"Z":t.push({key:"Z",data:[]}),i=o,s=a}r=c}return t}function ys(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function wg(e,t,r,i,s,o,a,n,l,c){const h=(u=a,Math.PI*u/180);var u;let d=[],p=0,y=0,m=0,x=0;if(c)[p,y,m,x]=c;else{[e,t]=ys(e,t,-h),[r,i]=ys(r,i,-h);const j=(e-r)/2,$=(t-i)/2;let D=j*j/(s*s)+$*$/(o*o);D>1&&(D=Math.sqrt(D),s*=D,o*=D);const B=s*s,q=o*o,I=B*q-B*$*$-q*j*j,it=B*$*$+q*j*j,J=(n===l?-1:1)*Math.sqrt(Math.abs(I/it));m=J*s*$/o+(e+r)/2,x=J*-o*j/s+(t+i)/2,p=Math.asin(parseFloat(((t-x)/o).toFixed(9))),y=Math.asin(parseFloat(((i-x)/o).toFixed(9))),e<m&&(p=Math.PI-p),r<m&&(y=Math.PI-y),p<0&&(p=2*Math.PI+p),y<0&&(y=2*Math.PI+y),l&&p>y&&(p-=2*Math.PI),!l&&y>p&&(y-=2*Math.PI)}let C=y-p;if(Math.abs(C)>120*Math.PI/180){const j=y,$=r,D=i;y=l&&y>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=wg(r=m+s*Math.cos(y),i=x+o*Math.sin(y),$,D,s,o,a,0,l,[y,j,m,x])}C=y-p;const k=Math.cos(p),T=Math.sin(p),S=Math.cos(y),v=Math.sin(y),L=Math.tan(C/4),A=4/3*s*L,F=4/3*o*L,G=[e,t],Y=[e+A*T,t-F*k],N=[r+A*v,i-F*S],st=[r,i];if(Y[0]=2*G[0]-Y[0],Y[1]=2*G[1]-Y[1],c)return[Y,N,st].concat(d);{d=[Y,N,st].concat(d);const j=[];for(let $=0;$<d.length;$+=3){const D=ys(d[$][0],d[$][1],h),B=ys(d[$+1][0],d[$+1][1],h),q=ys(d[$+2][0],d[$+2][1],h);j.push([D[0],D[1],B[0],B[1],q[0],q[1]])}return j}}const C_={randOffset:function(e,t){return St(e,t)},randOffsetWithRange:function(e,t,r){return sa(e,t,r)},ellipse:function(e,t,r,i,s){const o=_g(r,i,s);return gl(e,t,s,o).opset},doubleLineOps:function(e,t,r,i,s){return Yr(e,t,r,i,s,!0)}};function Tg(e,t,r,i,s){return{type:"path",ops:Yr(e,t,r,i,s)}}function Do(e,t,r){const i=(e||[]).length;if(i>2){const s=[];for(let o=0;o<i-1;o++)s.push(...Yr(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&s.push(...Yr(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:s}}return i===2?Tg(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function b_(e,t,r,i,s){return function(o,a){return Do(o,!0,a)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],s)}function Bu(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=bo(r[0],1*(1+.2*t.roughness),t),s=t.disableMultiStroke?[]:bo(r[0],1.5*(1+.22*t.roughness),Au(t));for(let o=1;o<r.length;o++){const a=r[o];if(a.length){const n=bo(a,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:bo(a,1.5*(1+.22*t.roughness),Au(t));for(const c of n)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&s.push(c)}}return{type:"path",ops:i.concat(s)}}return{type:"path",ops:[]}}function _g(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),s=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/s;let a=Math.abs(e/2),n=Math.abs(t/2);const l=1-r.curveFitting;return a+=St(a*l,r),n+=St(n*l,r),{increment:o,rx:a,ry:n}}function gl(e,t,r,i){const[s,o]=Eu(i.increment,e,t,i.rx,i.ry,1,i.increment*sa(.1,sa(.4,1,r),r),r);let a=oa(s,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[n]=Eu(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=oa(n,null,r);a=a.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function Lu(e,t,r,i,s,o,a,n,l){const c=e,h=t;let u=Math.abs(r/2),d=Math.abs(i/2);u+=St(.01*u,l),d+=St(.01*d,l);let p=s,y=o;for(;p<0;)p+=2*Math.PI,y+=2*Math.PI;y-p>2*Math.PI&&(p=0,y=2*Math.PI);const m=2*Math.PI/l.curveStepCount,x=Math.min(m/2,(y-p)/2),C=Mu(x,c,h,u,d,p,y,1,l);if(!l.disableMultiStroke){const k=Mu(x,c,h,u,d,p,y,1.5,l);C.push(...k)}return a&&(n?C.push(...Yr(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l),...Yr(c,h,c+u*Math.cos(y),h+d*Math.sin(y),l)):C.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(p),h+d*Math.sin(p)]})),{type:"path",ops:C}}function Fu(e,t){const r=kg(bg(Ch(e))),i=[];let s=[0,0],o=[0,0];for(const{key:a,data:n}of r)switch(a){case"M":o=[n[0],n[1]],s=[n[0],n[1]];break;case"L":i.push(...Yr(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]];break;case"C":{const[l,c,h,u,d,p]=n;i.push(...k_(l,c,h,u,d,p,o,t)),o=[d,p];break}case"Z":i.push(...Yr(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]]}return{type:"path",ops:i}}function nn(e,t){const r=[];for(const i of e)if(i.length){const s=t.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+St(s,t),i[0][1]+St(s,t)]});for(let a=1;a<o;a++)r.push({op:"lineTo",data:[i[a][0]+St(s,t),i[a][1]+St(s,t)]})}}return{type:"fillPath",ops:r}}function wi(e,t){return function(r,i){let s=r.fillStyle||"hachure";if(!Fe[s])switch(s){case"zigzag":Fe[s]||(Fe[s]=new d_(i));break;case"cross-hatch":Fe[s]||(Fe[s]=new f_(i));break;case"dots":Fe[s]||(Fe[s]=new p_(i));break;case"dashed":Fe[s]||(Fe[s]=new g_(i));break;case"zigzag-line":Fe[s]||(Fe[s]=new m_(i));break;default:s="hachure",Fe[s]||(Fe[s]=new xh(i))}return Fe[s]}(t,C_).fillPolygons(e,t)}function Au(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Sg(e){return e.randomizer||(e.randomizer=new y_(e.seed||0)),e.randomizer.next()}function sa(e,t,r,i=1){return r.roughness*i*(Sg(r)*(t-e)+e)}function St(e,t,r=1){return sa(-e,e,t,r)}function Yr(e,t,r,i,s,o=!1){const a=o?s.disableMultiStrokeFill:s.disableMultiStroke,n=ml(e,t,r,i,s,!0,!1);if(a)return n;const l=ml(e,t,r,i,s,!0,!0);return n.concat(l)}function ml(e,t,r,i,s,o,a){const n=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(n);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=s.maxRandomnessOffset||0;h*h*100>n&&(h=l/10);const u=h/2,d=.2+.2*Sg(s);let p=s.bowing*s.maxRandomnessOffset*(i-t)/200,y=s.bowing*s.maxRandomnessOffset*(e-r)/200;p=St(p,s,c),y=St(y,s,c);const m=[],x=()=>St(u,s,c),C=()=>St(h,s,c),k=s.preserveVertices;return a?m.push({op:"move",data:[e+(k?0:x()),t+(k?0:x())]}):m.push({op:"move",data:[e+(k?0:St(h,s,c)),t+(k?0:St(h,s,c))]}),a?m.push({op:"bcurveTo",data:[p+e+(r-e)*d+x(),y+t+(i-t)*d+x(),p+e+2*(r-e)*d+x(),y+t+2*(i-t)*d+x(),r+(k?0:x()),i+(k?0:x())]}):m.push({op:"bcurveTo",data:[p+e+(r-e)*d+C(),y+t+(i-t)*d+C(),p+e+2*(r-e)*d+C(),y+t+2*(i-t)*d+C(),r+(k?0:C()),i+(k?0:C())]}),m}function bo(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+St(t,r),e[0][1]+St(t,r)]),i.push([e[0][0]+St(t,r),e[0][1]+St(t,r)]);for(let s=1;s<e.length;s++)i.push([e[s][0]+St(t,r),e[s][1]+St(t,r)]),s===e.length-1&&i.push([e[s][0]+St(t,r),e[s][1]+St(t,r)]);return oa(i,null,r)}function oa(e,t,r){const i=e.length,s=[];if(i>3){const o=[],a=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let n=1;n+2<i;n++){const l=e[n];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*e[n+1][0]-a*e[n-1][0])/6,l[1]+(a*e[n+1][1]-a*e[n-1][1])/6],o[2]=[e[n+1][0]+(a*e[n][0]-a*e[n+2][0])/6,e[n+1][1]+(a*e[n][1]-a*e[n+2][1])/6],o[3]=[e[n+1][0],e[n+1][1]],s.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else i===3?(s.push({op:"move",data:[e[1][0],e[1][1]]}),s.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&s.push(...ml(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return s}function Eu(e,t,r,i,s,o,a,n){const l=[],c=[];if(n.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+s*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+s*Math.sin(h)];l.push(u),c.push(u)}c.push([t+i*Math.cos(0),r+s*Math.sin(0)]),c.push([t+i*Math.cos(e),r+s*Math.sin(e)])}else{const h=St(.5,n)-Math.PI/2;c.push([St(o,n)+t+.9*i*Math.cos(h-e),St(o,n)+r+.9*s*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let d=h;d<u;d+=e){const p=[St(o,n)+t+i*Math.cos(d),St(o,n)+r+s*Math.sin(d)];l.push(p),c.push(p)}c.push([St(o,n)+t+i*Math.cos(h+2*Math.PI+.5*a),St(o,n)+r+s*Math.sin(h+2*Math.PI+.5*a)]),c.push([St(o,n)+t+.98*i*Math.cos(h+a),St(o,n)+r+.98*s*Math.sin(h+a)]),c.push([St(o,n)+t+.9*i*Math.cos(h+.5*a),St(o,n)+r+.9*s*Math.sin(h+.5*a)])}return[c,l]}function Mu(e,t,r,i,s,o,a,n,l){const c=o+St(.1,l),h=[];h.push([St(n,l)+t+.9*i*Math.cos(c-e),St(n,l)+r+.9*s*Math.sin(c-e)]);for(let u=c;u<=a;u+=e)h.push([St(n,l)+t+i*Math.cos(u),St(n,l)+r+s*Math.sin(u)]);return h.push([t+i*Math.cos(a),r+s*Math.sin(a)]),h.push([t+i*Math.cos(a),r+s*Math.sin(a)]),oa(h,null,l)}function k_(e,t,r,i,s,o,a,n){const l=[],c=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3];let h=[0,0];const u=n.disableMultiStroke?1:2,d=n.preserveVertices;for(let p=0;p<u;p++)p===0?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:St(c[0],n)),a[1]+(d?0:St(c[0],n))]}),h=d?[s,o]:[s+St(c[p],n),o+St(c[p],n)],l.push({op:"bcurveTo",data:[e+St(c[p],n),t+St(c[p],n),r+St(c[p],n),i+St(c[p],n),h[0],h[1]]});return l}function xs(e){return[...e]}function $u(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(xs(e[0]),xs(e[1]),xs(e[2]),xs(e[2]));else{const s=[];s.push(e[0],e[0]);for(let n=1;n<e.length;n++)s.push(e[n]),n===e.length-1&&s.push(e[n]);const o=[],a=1-t;i.push(xs(s[0]));for(let n=1;n+2<s.length;n++){const l=s[n];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*s[n+1][0]-a*s[n-1][0])/6,l[1]+(a*s[n+1][1]-a*s[n-1][1])/6],o[2]=[s[n+1][0]+(a*s[n][0]-a*s[n+2][0])/6,s[n+1][1]+(a*s[n][1]-a*s[n+2][1])/6],o[3]=[s[n+1][0],s[n+1][1]],i.push(o[1],o[2],o[3])}}return i}function Io(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function w_(e,t,r){const i=Io(t,r);if(i===0)return Io(e,t);let s=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return s=Math.max(0,Math.min(1,s)),Io(e,Jr(t,r,s))}function Jr(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function yl(e,t,r,i){const s=i||[];if(function(n,l){const c=n[l+0],h=n[l+1],u=n[l+2],d=n[l+3];let p=3*h[0]-2*c[0]-d[0];p*=p;let y=3*h[1]-2*c[1]-d[1];y*=y;let m=3*u[0]-2*d[0]-c[0];m*=m;let x=3*u[1]-2*d[1]-c[1];return x*=x,p<m&&(p=m),y<x&&(y=x),p+y}(e,t)<r){const n=e[t+0];s.length?(o=s[s.length-1],a=n,Math.sqrt(Io(o,a))>1&&s.push(n)):s.push(n),s.push(e[t+3])}else{const l=e[t+0],c=e[t+1],h=e[t+2],u=e[t+3],d=Jr(l,c,.5),p=Jr(c,h,.5),y=Jr(h,u,.5),m=Jr(d,p,.5),x=Jr(p,y,.5),C=Jr(m,x,.5);yl([l,d,m,C],0,r,s),yl([C,x,y,u],0,r,s)}var o,a;return s}function T_(e,t){return aa(e,0,e.length,t)}function aa(e,t,r,i,s){const o=s||[],a=e[t],n=e[r-1];let l=0,c=1;for(let h=t+1;h<r-1;++h){const u=w_(e[h],a,n);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(aa(e,t,c+1,i,o),aa(e,c,r,i,o)):(o.length||o.push(a),o.push(n)),o}function ln(e,t=.15,r){const i=[],s=(e.length-1)/3;for(let o=0;o<s;o++)yl(e,3*o,t,i);return r&&r>0?aa(i,0,i.length,r):i}const Ie="none";class na{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,s,o){const a=this._o(o);return this._d("line",[Tg(t,r,i,s,a)],a)}rectangle(t,r,i,s,o){const a=this._o(o),n=[],l=b_(t,r,i,s,a);if(a.fill){const c=[[t,r],[t+i,r],[t+i,r+s],[t,r+s]];a.fillStyle==="solid"?n.push(nn([c],a)):n.push(wi([c],a))}return a.stroke!==Ie&&n.push(l),this._d("rectangle",n,a)}ellipse(t,r,i,s,o){const a=this._o(o),n=[],l=_g(i,s,a),c=gl(t,r,a,l);if(a.fill)if(a.fillStyle==="solid"){const h=gl(t,r,a,l).opset;h.type="fillPath",n.push(h)}else n.push(wi([c.estimatedPoints],a));return a.stroke!==Ie&&n.push(c.opset),this._d("ellipse",n,a)}circle(t,r,i,s){const o=this.ellipse(t,r,i,i,s);return o.shape="circle",o}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[Do(t,!1,i)],i)}arc(t,r,i,s,o,a,n=!1,l){const c=this._o(l),h=[],u=Lu(t,r,i,s,o,a,n,!0,c);if(n&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const p=Lu(t,r,i,s,o,a,!0,!1,d);p.type="fillPath",h.push(p)}else h.push(function(d,p,y,m,x,C,k){const T=d,S=p;let v=Math.abs(y/2),L=Math.abs(m/2);v+=St(.01*v,k),L+=St(.01*L,k);let A=x,F=C;for(;A<0;)A+=2*Math.PI,F+=2*Math.PI;F-A>2*Math.PI&&(A=0,F=2*Math.PI);const G=(F-A)/k.curveStepCount,Y=[];for(let N=A;N<=F;N+=G)Y.push([T+v*Math.cos(N),S+L*Math.sin(N)]);return Y.push([T+v*Math.cos(F),S+L*Math.sin(F)]),Y.push([T,S]),wi([Y],k)}(t,r,i,s,o,a,c));return c.stroke!==Ie&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),s=[],o=Bu(t,i);if(i.fill&&i.fill!==Ie)if(i.fillStyle==="solid"){const a=Bu(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{const a=[],n=t;if(n.length){const l=typeof n[0][0]=="number"?[n]:n;for(const c of l)c.length<3?a.push(...c):c.length===3?a.push(...ln($u([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):a.push(...ln($u(c),10,(1+i.roughness)/2))}a.length&&s.push(wi([a],i))}return i.stroke!==Ie&&s.push(o),this._d("curve",s,i)}polygon(t,r){const i=this._o(r),s=[],o=Do(t,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(nn([t],i)):s.push(wi([t],i))),i.stroke!==Ie&&s.push(o),this._d("polygon",s,i)}path(t,r){const i=this._o(r),s=[];if(!t)return this._d("path",s,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=i.fill&&i.fill!=="transparent"&&i.fill!==Ie,a=i.stroke!==Ie,n=!!(i.simplification&&i.simplification<1),l=function(h,u,d){const p=kg(bg(Ch(h))),y=[];let m=[],x=[0,0],C=[];const k=()=>{C.length>=4&&m.push(...ln(C,u)),C=[]},T=()=>{k(),m.length&&(y.push(m),m=[])};for(const{key:v,data:L}of p)switch(v){case"M":T(),x=[L[0],L[1]],m.push(x);break;case"L":k(),m.push([L[0],L[1]]);break;case"C":if(!C.length){const A=m.length?m[m.length-1]:x;C.push([A[0],A[1]])}C.push([L[0],L[1]]),C.push([L[2],L[3]]),C.push([L[4],L[5]]);break;case"Z":k(),m.push([x[0],x[1]])}if(T(),!d)return y;const S=[];for(const v of y){const L=T_(v,d);L.length&&S.push(L)}return S}(t,1,n?4-4*(i.simplification||1):(1+i.roughness)/2),c=Fu(t,i);if(o)if(i.fillStyle==="solid")if(l.length===1){const h=Fu(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else s.push(nn(l,i));else s.push(wi(l,i));return a&&(n?l.forEach(h=>{s.push(Do(h,!1,i))}):s.push(c)),this._d("path",s,i)}opsToPath(t,r){let i="";for(const s of t.ops){const o=typeof r=="number"&&r>=0?s.data.map(a=>+a.toFixed(r)):s.data;switch(s.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,s=[];for(const o of r){let a=null;switch(o.type){case"path":a={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Ie};break;case"fillPath":a={d:this.opsToPath(o),stroke:Ie,strokeWidth:0,fill:i.fill||Ie};break;case"fillSketch":a=this.fillSketch(o,i)}a&&s.push(a)}return s}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Ie,strokeWidth:i,fill:Ie}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class __{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new na(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const a of r)switch(a.type){case"path":s.save(),s.strokeStyle=i.stroke==="none"?"transparent":i.stroke,s.lineWidth=i.strokeWidth,i.strokeLineDash&&s.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(s.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(s,a,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=i.fill||"";const n=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,a,o,n),s.restore();break}case"fillSketch":this.fillSketch(s,a,i)}}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=s,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,s="nonzero"){t.beginPath();for(const o of r.ops){const a=typeof i=="number"&&i>=0?o.data.map(n=>+n.toFixed(i)):o.data;switch(o.op){case"move":t.moveTo(a[0],a[1]);break;case"bcurveTo":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"lineTo":t.lineTo(a[0],a[1])}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,s,o){const a=this.gen.line(t,r,i,s,o);return this.draw(a),a}rectangle(t,r,i,s,o){const a=this.gen.rectangle(t,r,i,s,o);return this.draw(a),a}ellipse(t,r,i,s,o){const a=this.gen.ellipse(t,r,i,s,o);return this.draw(a),a}circle(t,r,i,s){const o=this.gen.circle(t,r,i,s);return this.draw(o),o}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,s,o,a,n=!1,l){const c=this.gen.arc(t,r,i,s,o,a,n,l);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const ko="http://www.w3.org/2000/svg";class S_{constructor(t,r){this.svg=t,this.gen=new na(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(ko,"g"),a=t.options.fixedDecimalPlaceDigits;for(const n of r){let l=null;switch(n.type){case"path":l=s.createElementNS(ko,"path"),l.setAttribute("d",this.opsToPath(n,a)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=s.createElementNS(ko,"path"),l.setAttribute("d",this.opsToPath(n,a)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(s,n,i)}l&&o.appendChild(l)}return o}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);const o=t.createElementNS(ko,"path");return o.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,s,o){const a=this.gen.line(t,r,i,s,o);return this.draw(a)}rectangle(t,r,i,s,o){const a=this.gen.rectangle(t,r,i,s,o);return this.draw(a)}ellipse(t,r,i,s,o){const a=this.gen.ellipse(t,r,i,s,o);return this.draw(a)}circle(t,r,i,s){const o=this.gen.circle(t,r,i,s);return this.draw(o)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,s,o,a,n=!1,l){const c=this.gen.arc(t,r,i,s,o,a,n,l);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var ct={canvas:(e,t)=>new __(e,t),svg:(e,t)=>new S_(e,t),generator:e=>new na(e),newSeed:()=>na.newSeed()},v_=1,B_=3;async function bh(e){const t=e.getElementsByTagName("img");if(!t||t.length===0)return;const r=!kh(e);await Promise.all([...t].map(i=>new Promise(s=>{function o(){if(i.style.display="flex",i.style.flexDirection="column",r){const a=Dt().fontSize?Dt().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[l=yf.fontSize]=xa(a),c=l*n+"px";i.style.minWidth=c,i.style.maxWidth=c}else i.style.width="100%";s(i)}f(o,"setupImage"),setTimeout(()=>{i.complete&&o()}),i.addEventListener("error",o),i.addEventListener("load",o)})))}f(bh,"configureLabelImages");function kh(e){return e.nodeType===B_?e.textContent?.trim()!=="":e.nodeType!==v_||e.tagName.toLowerCase()==="img"?!1:[...e.childNodes].some(kh)}f(kh,"hasTextBesidesImages");var Ou=3,L_=32,F_=f(async(e,t,r)=>{const i=Dt(),s=e.insert("g").attr("class",r??"node default").attr("id",t.domId||t.id),o=s.insert("g").attr("class","label").attr("style",re(t.labelStyle)),n=[{text:typeof t.label=="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(x=>({text:x,cssClass:"c4-descr"}))].filter(x=>x.text),l=t.width?Math.max(t.width-2*(t.padding??0),L_):Dt().flowchart?.wrappingWidth??200,c=i.wrap?l:Number.POSITIVE_INFINITY,h=await Promise.all(n.map(async x=>{const C=o.append("g").attr("class",x.cssClass),k=await Qe(C,qe(Hr(x.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:c,style:t.labelStyle},i);return Et(k).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),Et(k).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:C,box:C.node().getBBox()}})),u=Math.max(...h.map(({box:x})=>x.width),0);let d=0;for(const{el:x,box:C}of h)x.attr("transform",`translate(${u/2-C.x-C.width/2}, ${d-C.y})`),d+=C.height+Ou;const p=h.length>0?d-Ou:0;o.insert("rect",":first-child"),o.attr("transform",`translate(${-u/2}, ${-p/2})`);const y=o.node().getBBox(),m=(t.padding??0)/2;return{shapeSvg:s,bbox:y,halfPadding:m,label:o}},"c4LabelHelper"),xt=f(async(e,t,r)=>{if(t.stereotype!==void 0)return F_(e,t,r);let i;const s=t.useHtmlLabels||fr(Dt()?.htmlLabels);r?i=r:i="node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),a=o.insert("g").attr("class","label").attr("style",re(t.labelStyle));let n;t.label===void 0?n="":n=typeof t.label=="string"?t.label:t.label[0];const l=!!t.icon||!!t.img,c=t.labelType==="markdown",h=await Qe(a,qe(Hr(n),Dt()),{useHtmlLabels:s,width:t.width||t.wrappingWidth||Dt().flowchart?.wrappingWidth,classes:c?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:c},Dt()),u=(t?.padding??0)/2;let d;if(s){const p=h.children[0],y=Et(h);await bh(p),d=await hi.measure(()=>p.getBoundingClientRect()),y.attr("width",d.width),y.attr("height",d.height)}else d=await hi.measure(()=>h.getBBox());return s?a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):a.attr("transform","translate(0, "+-d.height/2+")"),t.centerLabel&&a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:o,bbox:d,halfPadding:u,label:a}},"labelHelper"),hn=f(async(e,t,r)=>{const i=r.useHtmlLabels??xe(Dt()),s=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await Qe(s,qe(Hr(t),Dt()),{useHtmlLabels:i,width:r.width||Dt()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),a=r.padding/2;let n;if(xe(Dt())){const l=o.children[0],c=Et(o);n=await hi.measure(()=>l.getBoundingClientRect()),c.attr("width",n.width),c.attr("height",n.height)}else n=await hi.measure(()=>o.getBBox());return i?s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):s.attr("transform","translate(0, "+-n.height/2+")"),r.centerLabel&&s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:e,bbox:n,halfPadding:a,label:s}},"insertLabel"),dt=f((e,t,r)=>{if(r){e.width=r.width,e.height=r.height;return}const i=t.node().getBBox();e.width=i.width,e.height=i.height},"updateNodeBounds"),Ct=f((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Rt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}f(Rt,"createPathFromPoints");function jr(e,t,r,i,s,o){const a=[],l=r-e,c=i-t,h=l/o,u=2*Math.PI/h,d=t+c/2;for(let p=0;p<=50;p++){const y=p/50,m=e+y*l,x=d+s*Math.sin(u*(m-e));a.push({x:m,y:x})}return a}f(jr,"generateFullSineWavePoints");function nr(e,t,r,i,s,o){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,p=e+r*Math.cos(d),y=t+r*Math.sin(d);a.push({x:-p,y:-y})}return a}f(nr,"generateCirclePoints");function xl(e){const t=Array.from(e.childNodes).filter(l=>l.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",i);const s=t.find(l=>l.getAttribute("fill")!=="none"),o=t.find(l=>l.getAttribute("stroke")!=="none"),a=f((l,c)=>l?.getAttribute(c)??void 0,"getAttr");if(s){const l={fill:a(s,"fill"),"fill-opacity":a(s,"fill-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}if(o){const l={stroke:a(o,"stroke"),"stroke-width":a(o,"stroke-width")??"1","stroke-opacity":a(o,"stroke-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}const n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}f(xl,"mergePaths");var A_=f((e,t)=>{var r=e.x,i=e.y,s=t.x-r,o=t.y-i,a=e.width/2,n=e.height/2,l,c;return Math.abs(o)*a>Math.abs(s)*n?(o<0&&(n=-n),l=o===0?0:n*s/o,c=n):(s<0&&(a=-a),l=a,c=s===0?0:a*o/s),{x:r+l,y:i+c}},"intersectRect"),pi=A_,We=f((e,t,r,i,s)=>["M",e+s,t,"H",e+r-s,"A",s,s,0,0,1,e+r,t+s,"V",t+i-s,"A",s,s,0,0,1,e+r-s,t+i,"H",e+s,"A",s,s,0,0,1,e,t+i-s,"V",t+s,"A",s,s,0,0,1,e+s,t,"Z"].join(" "),"createRoundedRectPathD"),E_=f(async(e,t,r,i=!1,s=!1)=>{let o=t||"";typeof o=="object"&&(o=o[0]);const a=Dt(),n=xe(a);return await Qe(e,o,{style:r,isTitle:i,useHtmlLabels:n,markdown:!1,isNode:s,width:Number.POSITIVE_INFINITY},a)},"createLabel"),Nr=E_;function vg(e,t){return e.intersect(t)}f(vg,"intersectNode");var M_=vg;function Bg(e,t,r,i){var s=e.x,o=e.y,a=s-i.x,n=o-i.y,l=Math.sqrt(t*t*n*n+r*r*a*a),c=Math.abs(t*r*a/l);i.x<s&&(c=-c);var h=Math.abs(t*r*n/l);return i.y<o&&(h=-h),{x:s+c,y:o+h}}f(Bg,"intersectEllipse");var Lg=Bg;function Fg(e,t,r){return Lg(e,t,t,r)}f(Fg,"intersectCircle");var $_=Fg;function Ag(e,t,r,i){{const s=t.y-e.y,o=e.x-t.x,a=t.x*e.y-e.x*t.y,n=s*r.x+o*r.y+a,l=s*i.x+o*i.y+a,c=1e-6;if(n!==0&&l!==0&&Cl(n,l))return;const h=i.y-r.y,u=r.x-i.x,d=i.x*r.y-r.x*i.y,p=h*e.x+u*e.y+d,y=h*t.x+u*t.y+d;if(Math.abs(p)<c&&Math.abs(y)<c&&Cl(p,y))return;const m=s*u-h*o;if(m===0)return;const x=Math.abs(m/2);let C=o*d-u*a;const k=C<0?(C-x)/m:(C+x)/m;C=h*a-s*d;const T=C<0?(C-x)/m:(C+x)/m;return{x:k,y:T}}}f(Ag,"intersectLine");function Cl(e,t){return e*t>0}f(Cl,"sameSign");var O_=Ag;function Eg(e,t,r){let i=e.x,s=e.y,o=[],a=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){a=Math.min(a,h.x),n=Math.min(n,h.y)}):(a=Math.min(a,t.x),n=Math.min(n,t.y));let l=i-e.width/2-a,c=s-e.height/2-n;for(let h=0;h<t.length;h++){let u=t[h],d=t[h<t.length-1?h+1:0],p=O_(e,r,{x:l+u.x,y:c+u.y},{x:l+d.x,y:c+d.y});p&&o.push(p)}return o.length?(o.length>1&&o.sort(function(h,u){let d=h.x-r.x,p=h.y-r.y,y=Math.sqrt(d*d+p*p),m=u.x-r.x,x=u.y-r.y,C=Math.sqrt(m*m+x*x);return y<C?-1:y===C?0:1}),o[0]):e}f(Eg,"intersectPolygon");var D_=Eg,at={node:M_,circle:$_,ellipse:Lg,polygon:D_,rect:pi};function Mg(e,t){const{labelStyles:r}=pt(t);t.labelStyle=r;const i=Ct(t);let s=i;i||(s="anchor");const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),a=1,{cssStyles:n}=t,l=ct.svg(o),c=ht(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,a*2,c),u=o.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",re(n)),dt(t,u),t.intersect=function(d){return R.info("Circle intersect",t,a,d),at.circle(t,a,d)},o}f(Mg,"anchor");function bl(e,t,r,i,s,o,a){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,d=(i-t)/2,p=u/s,y=d/o,m=Math.sqrt(p**2+y**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const x=Math.sqrt(1-m**2),C=l+x*o*Math.sin(h)*(a?-1:1),k=c-x*s*Math.cos(h)*(a?-1:1),T=Math.atan2((t-k)/o,(e-C)/s);let v=Math.atan2((i-k)/o,(r-C)/s)-T;a&&v<0&&(v+=2*Math.PI),!a&&v>0&&(v-=2*Math.PI);const L=[];for(let A=0;A<20;A++){const F=A/19,G=T+F*v,Y=C+s*Math.cos(G),N=k+o*Math.sin(G);L.push({x:Y,y:N})}return L}f(bl,"generateArcPoints");function $g(e,t,r){const[i,s]=[t,r].sort((o,a)=>a-o);return s*(1-Math.sqrt(1-(e/i/2)**2))}f($g,"calculateArcSagitta");async function Og(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=f(G=>G+a,"calcTotalHeight"),l=f(G=>{const Y=G/2;return[Y/(2.5+G/50),Y]},"calcEllipseRadius"),{shapeSvg:c,bbox:h}=await xt(e,t,Ct(t)),u=n(t?.height?t?.height:h.height),[d,p]=l(u),y=$g(u,d,p),x=(t?.width?t?.width:h.width)+o*2+y-y,C=u,{cssStyles:k}=t,T=[{x:x/2,y:-C/2},{x:-x/2,y:-C/2},...bl(-x/2,-C/2,-x/2,C/2,d,p,!1),{x:x/2,y:C/2},...bl(x/2,C/2,x/2,-C/2,d,p,!0)],S=ct.svg(c),v=ht(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const L=Rt(T),A=S.path(L,v),F=c.insert(()=>A,":first-child");return F.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(${d/2}, 0)`),dt(t,F),t.intersect=function(G){return at.polygon(t,T,G)},c}f(Og,"bowTieRect");async function Dg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=pt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await xt(e,t,Ct(t)),l=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=Math.max(a.width+c*2,t.width??0,80),u=Math.max(Math.min(h*.08,12),5),d=Math.max(a.height+c*2+u,t.height??0),p=-d/2+u,y=d/2,m=h*.72,x=[`M${-h/2},${p}`,`L${-m/2},${y}`,`A${m/2},${u} 0 0 0 ${m/2},${y}`,`L${h/2},${p}`,`A${h/2},${u} 0 0 0 ${-h/2},${p}`,"Z"].join(" "),{cssStyles:C}=t,k=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const F=ct.svg(o).path(x,ht(t,{}));k.node()?.appendChild(F),C&&k.attr("style",C)}else k.append("path").attr("d",x).attr("style",s);k.append("ellipse").attr("cx",0).attr("cy",p).attr("rx",h/2).attr("ry",u).attr("style",`fill:none;stroke:${l};stroke-width:1px`),dt(t,k);const T=p+(y-p)/2;n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${T-a.height/2-(a.y-(a.top??0))})`);const S=12,v=f((A,F,G)=>Array.from({length:S+1},(Y,N)=>{const st=Math.PI-N*Math.PI/S;return{x:A*Math.cos(st),y:F+G*u*Math.sin(st)}}),"arc"),L=[...v(h/2,p,-1),...v(m/2,y,1).reverse()];return t.intersect=function(A){return at.polygon(t,L,A)},o}f(Dg,"bucket");var Du=20,Iu=8,I_=80,cn=8;async function Ig(e,t){const{themeVariables:r}=Dt(),i=r.clusterBkg,s=r.clusterBorder,{nodeStyles:o}=pt(t),{shapeSvg:a,bbox:n}=await xt(e,t,Ct(t)),l=t.padding??8,c=n.height,h=Math.max(n.width+l*2,I_,t?.width??0),u=Math.max(c+Iu+Du+l*2,t?.height??0),d=-h/2,p=-u/2,y=-28/2,m=a.select(".label");m&&(t.useHtmlLabels??xe(Dt())?m.attr("transform",`translate(${-n.width/2}, ${-n.height/2+y})`):m.attr("transform",`translate(0, ${-n.height/2+y})`));let x;if(t.look==="handDrawn"){const v=ct.svg(a),L=ht(t,{fill:i,stroke:s,fillStyle:"solid"}),A=v.path(We(d,p,h,u,cn),L);x=a.insert(()=>A,":first-child"),x.attr("class","basic label-container collapsed-group").attr("style",re(t.cssStyles))}else x=a.insert("rect",":first-child"),x.attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",cn).attr("ry",cn).attr("x",d).attr("y",p).attr("width",h).attr("height",u).attr("fill",i).attr("stroke",s);const C=p+l+c+Iu;a.append("line").attr("class","collapsed-separator").attr("x1",d+8).attr("y1",C).attr("x2",d+h-8).attr("y2",C).attr("stroke",s).attr("stroke-dasharray","3, 3");const k=C+Du/2,T=2.5,S=10;for(let v=-1;v<=1;v++)a.append("circle").attr("class","collapsed-indicator").attr("cx",v*S).attr("cy",k).attr("r",T).attr("fill",s);return dt(t,x),t.calcIntersect=function(v,L){return at.rect(v,L)},t.intersect=function(v){return at.rect(t,v)},a}f(Ig,"collapsedGroup");function gr(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}f(gr,"insertPolygonShape");var P_=["right","left","up","down"],wh="point",R_=f(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),N_=f(e=>P_.filter(t=>e.has(t)).join("|")||wh,"getDirectionKey"),Pu={"right|left|up|down":f(({height:e,midpoint:t,padding:r,width:i})=>[{x:0,y:0},{x:t,y:0},{x:i/2,y:2*r},{x:i-t,y:0},{x:i,y:0},{x:i,y:-e/3},{x:i+2*r,y:-e/2},{x:i,y:-2*e/3},{x:i,y:-e},{x:i-t,y:-e},{x:i/2,y:-e-2*r},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*r,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":f(({height:e,midpoint:t,width:r})=>[{x:t,y:0},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":f(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:t,y:-e},{x:r-t,y:-e},{x:r,y:0}],"right|left|down"),"right|up|down":f(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:r,y:-e+t},{x:0,y:-e}],"right|up|down"),"left|up|down":f(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:r,y:-e}],"left|up|down"),"right|left":f(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":f(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"up|down"),"right|up":f(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:0,y:-e}],"right|up"),"right|down":f(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],"right|down"),"left|up":f(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:r,y:-e}],"left|up"),"left|down":f(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],"left|down"),right:f(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e+r}],"right"),left:f(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"left"),up:f(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r}],"up"),down:f(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"down"),[wh]:()=>[{x:0,y:0}]},q_=f((e,t,r,i)=>{const s=R_(e),o=(r.padding??0)/2,a=t.height+4*o,n=a/2,l=i??t.width+2*n+2*o,c=N_(s);return(Pu[c]??Pu[wh])({height:a,midpoint:n,padding:o,width:l})},"getArrowPoints");async function Pg(e,t){const r=t,{shapeSvg:i,bbox:s}=await xt(e,r,Ct(r)),o=r.padding??0,a=s.height+2*o,n=a/2,l=s.width+2*n+o,c=r.width??0,u=r.positioned&&(r.widthInColumns??1)>1&&c>l?c:l,d=q_(r.directions??[],s,r,u),p=gr(i,u,a,d);return p.attr("style",r.style??null),dt(r,p),r.intersect=function(y){return at.polygon(r,d,y)},i}f(Pg,"block_arrow");async function Rg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=pt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await xt(e,t,Ct(t)),l=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=18,u=12,d=Math.max(a.width+c*2,t.width??0,90),p=Math.max(a.height+c*2+h,t.height??0),y=-p/2,{cssStyles:m}=t,x=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const T=ct.svg(o).path(We(-d/2,y,d,p,u),ht(t,{}));x.node()?.appendChild(T),m&&x.attr("style",m)}else x.append("rect").attr("x",-d/2).attr("y",y).attr("width",d).attr("height",p).attr("rx",u).attr("ry",u).attr("style",s);x.append("line").attr("x1",-d/2).attr("y1",y+h).attr("x2",d/2).attr("y2",y+h).attr("style",`stroke:${l};stroke-width:1px`);for(let k=0;k<3;k++)x.append("circle").attr("cx",-d/2+12+k*9).attr("cy",y+h/2).attr("r",2.5).attr("style",`fill:${l};stroke:none`);x.append("rect").attr("class","browser-address-bar").attr("x",-d/2+44).attr("y",y+4).attr("width",Math.max(d-56,10)).attr("height",h-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${l};stroke-width:1px;opacity:0.6`),dt(t,x);const C=y+h+(p-h)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${C-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(k){return at.rect(t,k)},o}f(Rg,"browser");var wo=12;async function Ng(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?28:s,a=t.look==="neo"?24:s,{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=(t?.width??l.width)+(t.look==="neo"?o*2:o+wo),h=(t?.height??l.height)+(t.look==="neo"?a*2:a),u=0,d=c,p=-h,y=0,m=[{x:u+wo,y:p},{x:d,y:p},{x:d,y},{x:u,y},{x:u,y:p+wo},{x:u+wo,y:p}];let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=ct.svg(n),T=ht(t,{}),S=Rt(m),v=k.path(S,T);x=n.insert(()=>v,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),C&&x.attr("style",C)}else x=gr(n,c,h,m);return i&&x.attr("style",i),dt(t,x),t.intersect=function(k){return at.polygon(t,m,k)},n}f(Ng,"card");function qg(e,t){const{nodeStyles:r}=pt(t);t.label="";const i=e.insert("g").attr("class",Ct(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(28,t.width??0),a=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],n=ct.svg(i),l=ht(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=Rt(a),h=n.path(c,l),u=i.insert(()=>h,":first-child");return s&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",s),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(d){return at.polygon(t,a,d)},i}f(qg,"choice");async function Th(e,t,r){const{labelStyles:i,nodeStyles:s}=pt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,halfPadding:n}=await xt(e,t,Ct(t)),l=16,c=r?.padding??n,h=t.look==="neo"?a.width/2+l*2:a.width/2+c;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=ct.svg(o),y=ht(t,{}),m=p.circle(0,0,h*2,y);u=o.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",re(d))}else u=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",h).attr("cx",0).attr("cy",0);return dt(t,u),t.calcIntersect=function(p,y){const m=p.width/2;return at.circle(p,m,y)},t.intersect=function(p){return R.info("Circle intersect",t,h,p),at.circle(t,h,p)},o}f(Th,"circle");async function zg(e,t){const r=t,i=["node",r.cssClasses,r.class].filter(Boolean).join(" "),{shapeSvg:s,bbox:o,halfPadding:a}=await xt(e,r,i),n=s.insert("rect",":first-child"),l=r.padding??0,c=r.positioned?r.width??0:o.width+l,h=r.positioned?r.height??0:o.height+l,u=r.positioned?-c/2:-o.width/2-a,d=r.positioned?-h/2:-o.height/2-a;return n.attr("class","basic cluster composite label-container").attr("style",r.style??null).attr("rx",r.rx??null).attr("ry",r.ry??null).attr("x",u).attr("y",d).attr("width",c).attr("height",h),dt(r,n),r.intersect=function(p){return at.rect(r,p)},s}f(zg,"composite");async function Wg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=pt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await xt(e,t,Ct(t)),l=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=20,u=12,d=Math.max(a.width+c*2,t.width??0,90),p=Math.max(a.height+c*2+h,t.height??0),y=-p/2,{cssStyles:m}=t,x=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const T=ct.svg(o).path(We(-d/2,y,d,p,u),ht(t,{}));x.node()?.appendChild(T),m&&x.attr("style",m)}else x.append("rect").attr("x",-d/2).attr("y",y).attr("width",d).attr("height",p).attr("rx",u).attr("ry",u).attr("style",s);x.append("text").attr("x",-d/2+12).attr("y",y+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(">_"),dt(t,x);const C=y+h+(p-h)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${C-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(k){return at.rect(t,k)},o}f(Wg,"consoleWindow");function Hg(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,s={x:i/2*t,y:i/2*r},o={x:-(i/2)*t,y:i/2*r},a={x:-(i/2)*t,y:-(i/2)*r},n={x:i/2*t,y:-(i/2)*r};return`M ${o.x},${o.y} L ${n.x},${n.y}
201
+ M ${s.x},${s.y} L ${a.x},${a.y}`}f(Hg,"createLine");function Yg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r,t.label="";const s=e.insert("g").attr("class",Ct(t)).attr("id",t.domId??t.id),o=Math.max(30,t?.width??0),{cssStyles:a}=t,n=ct.svg(s),l=ht(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=n.circle(0,0,o*2,l),h=Hg(o),u=n.path(h,l),d=s.insert(()=>c,":first-child");return d.insert(()=>u),d.attr("class","outer-path"),a&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),dt(t,d),t.intersect=function(p){return R.info("crossedCircle intersect",t,{radius:o,point:p}),at.circle(t,o,p)},s}f(Yg,"crossedCircle");function kr(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,p=e+r*Math.cos(d),y=t+r*Math.sin(d);a.push({x:-p,y:-y})}return a}f(kr,"generateCirclePoints");async function jg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await xt(e,t,Ct(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+n,h=o.height+l,u=Math.max(5,h*.1),{cssStyles:d}=t,p=[...kr(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...kr(c/2+u*2,-u,u,20,-180,-270),...kr(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...kr(c/2,h/2,u,20,0,90)],y=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...kr(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...kr(c/2+c*.1,-u,u,20,-180,-270),...kr(c/2+c*.1,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...kr(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2,y:h/2+u}],m=ct.svg(s),x=ht(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=Rt(p).replace("Z",""),T=m.path(k,x),S=Rt(y),v=m.path(S,{...x}),L=s.insert("g",":first-child");return L.insert(()=>v,":first-child").attr("stroke-opacity",0),L.insert(()=>T,":first-child"),L.attr("class","text"),d&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${u}, 0)`),a.attr("transform",`translate(${-c/2+u-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),dt(t,L),t.intersect=function(A){return at.polygon(t,y,A)},s}f(jg,"curlyBraceLeft");function wr(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,p=e+r*Math.cos(d),y=t+r*Math.sin(d);a.push({x:p,y})}return a}f(wr,"generateCirclePoints");async function Ug(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await xt(e,t,Ct(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+(t.look==="neo"?n*2:n),h=o.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:d}=t,p=[...wr(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...wr(c/2+u*2,-u,u,20,-180,-270),...wr(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...wr(c/2,h/2,u,20,0,90)],y=[{x:-c/2,y:-h/2-u},{x:c/2,y:-h/2-u},...wr(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...wr(c/2+u*2,-u,u,20,-180,-270),...wr(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...wr(c/2,h/2,u,20,0,90),{x:c/2,y:h/2+u},{x:-c/2,y:h/2+u}],m=ct.svg(s),x=ht(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=Rt(p).replace("Z",""),T=m.path(k,x),S=Rt(y),v=m.path(S,{...x}),L=s.insert("g",":first-child");return L.insert(()=>v,":first-child").attr("stroke-opacity",0),L.insert(()=>T,":first-child"),L.attr("class","text"),d&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${-u}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),dt(t,L),t.intersect=function(A){return at.polygon(t,y,A)},s}f(Ug,"curlyBraceRight");function ue(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,p=e+r*Math.cos(d),y=t+r*Math.sin(d);a.push({x:-p,y:-y})}return a}f(ue,"generateCirclePoints");async function Gg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await xt(e,t,Ct(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+(t.look==="neo"?n*2:n),h=o.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:d}=t,p=[...ue(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...ue(c/2+u*2,-u,u,20,-180,-270),...ue(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...ue(c/2,h/2,u,20,0,90)],y=[...ue(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...ue(-c/2-u/2,-u,u,20,0,90),...ue(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...ue(-c/2+u+u/2,h/2,u,30,-180,-270)],m=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...ue(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...ue(c/2+u*2,-u,u,20,-180,-270),...ue(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...ue(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2-u-u/2,y:h/2+u},...ue(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...ue(-c/2-u/2,-u,u,20,0,90),...ue(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...ue(-c/2+u+u/2,h/2,u,30,-180,-270)],x=ct.svg(s),C=ht(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=Rt(p).replace("Z",""),S=x.path(T,C),L=Rt(y).replace("Z",""),A=x.path(L,C),F=Rt(m),G=x.path(F,{...C}),Y=s.insert("g",":first-child");return Y.insert(()=>G,":first-child").attr("stroke-opacity",0),Y.insert(()=>S,":first-child"),Y.insert(()=>A,":first-child"),Y.attr("class","text"),d&&t.look!=="handDrawn"&&Y.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&Y.selectAll("path").attr("style",i),Y.attr("transform",`translate(${u-u/4}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),dt(t,Y),t.intersect=function(N){return at.polygon(t,m,N)},s}f(Gg,"curlyBraces");async function Xg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=20,l=5,{shapeSvg:c,bbox:h}=await xt(e,t,Ct(t)),u=Math.max(n,(h.width+o*2)*1.25,t?.width??0),d=Math.max(l,h.height+a*2,t?.height??0),p=d/2,{cssStyles:y}=t,m=ct.svg(c),x=ht(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=u,k=d,T=C-p,S=k/4,v=[{x:T,y:0},{x:S,y:0},{x:0,y:k/2},{x:S,y:k},{x:T,y:k},...nr(-T,-k/2,p,50,270,90)],L=Rt(v),A=m.path(L,x),F=c.insert(()=>A,":first-child");return F.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&F.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&F.selectChildren("path").attr("style",i),F.attr("transform",`translate(${-u/2}, ${-d/2})`),dt(t,F),t.intersect=function(G){return at.polygon(t,v,G)},c}f(Xg,"curvedTrapezoid");async function Vg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await xt(e,t,Ct(t)),n=t.padding??20,l=Math.max(o.width+n*2,t.width??0,100),c=Math.min(Math.max(l*.23,16),56),h=c*.27,u=Math.max(o.height+n*2,t.height?t.height-(2*c-h):0),d=Math.min(l*.177,u*.45),p=u+2*c-h,y=-p/2,m=y+2*c-h,x=s.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:C}=t;if(t.look==="handDrawn"){const F=ct.svg(s),G=ht(t,{}),Y=F.path(We(-l/2,m,l,u,d),G),N=F.circle(0,y+c,c*2,G);x.insert(()=>N,":first-child"),x.insert(()=>Y,":first-child"),C&&x.attr("style",C)}else x.append("rect").attr("x",-l/2).attr("y",m).attr("width",l).attr("height",u).attr("rx",d).attr("ry",d).attr("style",i),x.append("circle").attr("cx",0).attr("cy",y+c).attr("r",c).attr("style",i);dt(t,x);const k=m+u/2;a.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${k-o.height/2-(o.y-(o.top??0))})`);const T=y+c,S=Math.asin(Math.min(1,(m-T)/c))*180/Math.PI,A=[...nr(0,-T,c,24,180+S,-S),...nr(-(-l/2+d),-(m+d),d,12,90,0),...nr(-(-l/2+d),-(p/2-d),d,12,360,270),...nr(-(l/2-d),-(p/2-d),d,12,270,180),...nr(-(l/2-d),-(m+d),d,12,180,90)];return t.intersect=function(F){return at.polygon(t,A,F)},s}f(Vg,"person");var z_=f((e,t,r,i,s,o)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),W_=f((e,t,r,i,s,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),H_=f((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Ru=8,Nu=8;async function Zg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?24:s,a=t.look==="neo"?24:s,n=t.width??0;if(t.width&&(t.width=t.width-a,t.width<Nu&&(t.width=Nu)),t.height){const k=n/2/(2.5+n/50);t.height=t.height-o-k*3,t.height<Ru&&(t.height=Ru)}const{shapeSvg:l,bbox:c,label:h}=await xt(e,t,Ct(t)),u=Math.max(t.width??0,c.width)+a,d=u/2,p=d/(2.5+u/50),y=Math.max(t.height??0,c.height)+o+p;let m;const{cssStyles:x}=t;if(t.look==="handDrawn"){const C=ct.svg(l),k=W_(0,0,u,y,d,p),T=H_(0,p,u,y,d,p),S=ht(t,{}),v=C.path(k,S),L=C.path(T,ht(t,{fill:"none"}));m=l.insert(()=>L,":first-child"),m=l.insert(()=>v,":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{const C=z_(0,0,u,y,d,p);m=l.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",re(x)).attr("style",i)}return m.attr("label-offset-y",p),m.attr("transform",`translate(${-u/2}, ${-(y/2+p)})`),dt(t,m),h.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+(t.padding??0)/1.5-(c.y-(c.top??0))})`),t.intersect=function(C){const k=at.rect(t,C),T=k.x-(t.x??0);if(d!=0&&(Math.abs(T)<(t.width??0)/2||Math.abs(T)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-p)){let S=p*p*(1-T*T/(d*d));S>0&&(S=Math.sqrt(S)),S=p-S,C.y-(t.y??0)>0&&(S=-S),k.y+=S}return k},l}f(Zg,"cylinder");async function is(e,t,r){const{labelStyles:i,nodeStyles:s}=pt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a}=await xt(e,t,Ct(t)),n=Math.max(a.width+r.labelPaddingX*2,t?.width||0),l=Math.max(a.height+r.labelPaddingY*2,t?.height||0),c=-n/2,h=-l/2;let u,{rx:d,ry:p}=t;const{cssStyles:y}=t;if(r?.rx&&r.ry&&(d=r.rx,p=r.ry),t.look==="handDrawn"){const m=ct.svg(o),x=ht(t,{}),C=d||p?m.path(We(c,h,n,l,d||0),x):m.rectangle(c,h,n,l,x);u=o.insert(()=>C,":first-child"),u.attr("class","basic label-container").attr("style",re(y))}else u=o.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",s).attr("rx",re(d)).attr("ry",re(p)).attr("x",c).attr("y",h).attr("width",n).attr("height",l);return dt(t,u,t.look==="handDrawn"?void 0:{width:n,height:l}),t.calcIntersect=function(m,x){return at.rect(m,x)},t.intersect=function(m){return at.rect(t,m)},o}f(is,"drawRect");async function Kg(e,t){const{cssClasses:r,labelPaddingX:i,labelPaddingY:s,padding:o,width:a,height:n}=t,l={rx:0,ry:0,labelPaddingX:i??(o??0)*2,labelPaddingY:s??o??0},c=await is(e,t,l);if(t.look==="handDrawn"){const p=ct.svg(c),y=ht(t,{}),m=c.select(".basic.label-container > path:nth-child(2)"),x=m.node();if(!x)return c;let C=null;if(x instanceof SVGGraphicsElement)C=x.getBBox();else return c;return c.insert(()=>p.line(C.x,C.y,C.x+C.width,C.y,y),".basic.label-container g.label"),c.insert(()=>p.line(C.x,C.y+C.height,C.x+C.width,C.y+C.height,y),".basic.label-container g.label"),m.remove(),c}const h=c.select(".basic.label-container"),u=(Number(h.attr("width"))||a)??0,d=(Number(h.attr("height"))||n)??0;return u>0&&d>0&&h.attr("stroke-dasharray",`${u} ${d}`),c}f(Kg,"datastore");async function Qg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?16:t.padding??0,{shapeSvg:a,bbox:n,label:l}=await xt(e,t,Ct(t)),c=n.width+s,h=n.height+o,u=h*.2,d=-c/2,p=-h/2-u/2,{cssStyles:y}=t,m=ct.svg(a),x=ht(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:d,y:p+u},{x:-d,y:p+u},{x:-d,y:-p},{x:d,y:-p},{x:d,y:p},{x:-d,y:p},{x:-d,y:p+u}],k=m.polygon(C.map(S=>[S.x,S.y]),x),T=a.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),l.attr("transform",`translate(${d+(t.padding??0)/2-(n.x-(n.left??0))}, ${p+u+(t.padding??0)/2-(n.y-(n.top??0))})`),dt(t,T),t.intersect=function(S){return at.rect(t,S)},a}f(Qg,"dividedRectangle");async function Jg(e,t){const{labelStyles:r,nodeStyles:i}=pt(t),s=t.look==="neo"?12:5;t.labelStyle=r;const o=t.padding??0,a=t.look==="neo"?16:o,{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=(t?.width?t?.width/2:l.width/2)+(a??0),h=c-s;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=ct.svg(n),y=ht(t,{roughness:.2,strokeWidth:2.5}),m=ht(t,{roughness:.2,strokeWidth:1.5}),x=p.circle(0,0,c*2,y),C=p.circle(0,0,h*2,m);u=n.insert("g",":first-child"),u.attr("class",re(t.cssClasses)).attr("style",re(d)),u.node()?.appendChild(x),u.node()?.appendChild(C)}else{u=n.insert("g",":first-child");const p=u.insert("circle",":first-child"),y=u.insert("circle");u.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),y.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return dt(t,u),t.intersect=function(p){return R.info("DoubleCircle intersect",t,c,p),at.circle(t,c,p)},n}f(Jg,"doublecircle");function tm(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=pt(t);t.label="",t.labelStyle=i;const o=e.insert("g").attr("class",Ct(t)).attr("id",t.domId??t.id),a=7,{cssStyles:n}=t,l=ct.svg(o),{nodeBorder:c}=r,h=ht(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=l.circle(0,0,a*2,h),d=o.insert(()=>u,":first-child");return d.selectAll("path").attr("style",`fill: ${c} !important;`),n&&n.length>0&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",n),s&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",s),dt(t,d),t.intersect=function(p){return R.info("filledCircle intersect",t,{radius:a,point:p}),at.circle(t,a,p)},o}f(tm,"filledCircle");var qu=10,zu=10;async function em(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.height=t?.height??0,t.height<qu&&(t.height=qu),t.width=(t?.width??0)-o-o/2,t.width<zu&&(t.width=zu));const{shapeSvg:a,bbox:n,label:l}=await xt(e,t,Ct(t)),c=(t?.width?t?.width:n.width)+(o??0),h=t?.height?t?.height:c+n.height,u=h,d=[{x:0,y:-h},{x:u,y:-h},{x:u/2,y:0}],{cssStyles:p}=t,y=ct.svg(a),m=ht(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=Rt(d),C=y.path(x,m),k=a.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return p&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=c,t.height=h,dt(t,k),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-h/2+(t.padding??0)/2+(n.y-(n.top??0))})`),t.intersect=function(T){return R.info("Triangle intersect",t,d,T),at.polygon(t,d,T)},a}f(em,"flippedTriangle");async function rm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await xt(e,t,Ct(t)),n=t.padding??12,l=Math.max(o.width+n*2,t.width??0,90),c=o.height+n*2,h=Math.max(Math.min(c*.16,14),8),u=Math.max(c+h,t.height??0),d=u-h,p=Math.max(l*.38,28),y=-u/2,m=[{x:-l/2,y},{x:-l/2+p,y},{x:-l/2+p,y:y+h},{x:l/2,y:y+h},{x:l/2,y:u/2},{x:-l/2,y:u/2}],x=[`M${m[0].x},${m[0].y}`,...m.slice(1).map(S=>`L${S.x},${S.y}`),"Z"].join(" "),{cssStyles:C}=t;let k;if(t.look==="handDrawn"){const v=ct.svg(s).path(x,ht(t,{}));k=s.insert(()=>v,":first-child").attr("class","basic label-container"),C&&k.attr("style",C)}else k=s.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",i);t.look==="handDrawn"?dt(t,k):dt(t,k,{width:l,height:u});const T=y+h+d/2;return a.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${T-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(S){return at.polygon(t,m,S)},s}f(rm,"folder");function im(e,t,{dir:r,config:{state:i,themeVariables:s}}){const{nodeStyles:o}=pt(t);t.label="";const a=e.insert("g").attr("class",Ct(t)).attr("id",t.domId??t.id),{cssStyles:n}=t;let l=Math.max(70,t?.width??0),c=Math.max(10,t?.height??0);r==="LR"&&(l=Math.max(10,t?.width??0),c=Math.max(70,t?.height??0));const h=-1*l/2,u=-1*c/2,d=ct.svg(a),p=ht(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=d.rectangle(h,u,l,c,p),m=a.insert(()=>y,":first-child");n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),dt(t,m);const x=i?.padding??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(C){return at.rect(t,C)},a}f(im,"forkJoin");async function sm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=15,o=10,a=t.look==="neo"?16:t.padding??0,n=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-n*2,t.height<o&&(t.height=o),t.width=(t?.width??0)-a*2,t.width<s&&(t.width=s));const{shapeSvg:l,bbox:c}=await xt(e,t,Ct(t)),h=(t?.width?t?.width:Math.max(s,c.width))+a*2,u=(t?.height?t?.height:Math.max(o,c.height))+n*2,d=u/2,{cssStyles:p}=t,y=ct.svg(l),m=ht(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-h/2,y:-u/2},{x:h/2-d,y:-u/2},...nr(-h/2+d,0,d,50,90,270),{x:h/2-d,y:u/2},{x:-h/2,y:u/2}],C=Rt(x),k=y.path(C,m),T=l.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),dt(t,T),t.intersect=function(S){return R.info("Pill intersect",t,{radius:d,point:S}),at.polygon(t,x,S)},l}f(sm,"halfRoundedRectangle");var Y_=f((e,t,r,i,s)=>[`M${e+s},${t}`,`L${e+r-s},${t}`,`L${e+r},${t-i/2}`,`L${e+r-s},${t-i}`,`L${e+s},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function om(e,t){const{labelStyles:r,nodeStyles:i}=pt(t),s=t.look==="neo"?3.5:4;t.labelStyle=r;const o=t.padding??0,a=70,n=32,l=t.look==="neo"?a:o,c=t.look==="neo"?n:o;if(t.width||t.height){const T=(t.height??0)/s;t.width=(t?.width??0)-2*T-c,t.height=(t.height??0)-l}const{shapeSvg:h,bbox:u}=await xt(e,t,Ct(t)),d=(t?.height?t?.height:u.height)+l,p=d/s,y=(t?.width?t?.width:u.width)+2*p+c,m=[{x:p,y:0},{x:y-p,y:0},{x:y,y:-d/2},{x:y-p,y:-d},{x:p,y:-d},{x:0,y:-d/2}];let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=ct.svg(h),T=ht(t,{}),S=Y_(0,0,y,d,p),v=k.path(S,T);x=h.insert(()=>v,":first-child").attr("transform",`translate(${-y/2}, ${d/2})`),C&&x.attr("style",C)}else x=gr(h,y,d,m);return i&&x.attr("style",i),t.width=y,t.height=d,dt(t,x),t.intersect=function(k){return at.polygon(t,m,k)},h}f(om,"hexagon");async function am(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.label="",t.labelStyle=r;const{shapeSvg:s}=await xt(e,t,Ct(t)),o=Math.max(30,t?.width??0),a=Math.max(30,t?.height??0),{cssStyles:n}=t,l=ct.svg(s),c=ht(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const h=[{x:0,y:0},{x:o,y:0},{x:0,y:a},{x:o,y:a}],u=Rt(h),d=l.path(u,c),p=s.insert(()=>d,":first-child");return p.attr("class","basic label-container outer-path"),n&&t.look!=="handDrawn"&&p.selectChildren("path").attr("style",n),i&&t.look!=="handDrawn"&&p.selectChildren("path").attr("style",i),p.attr("transform",`translate(${-o/2}, ${-a/2})`),dt(t,p),t.intersect=function(y){return R.info("Pill intersect",t,{points:h}),at.polygon(t,h,y)},s}f(am,"hourglass");async function nm(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=pt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i?.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,label:u}=await xt(e,t,"icon-shape default"),d=t.pos==="t",p=n,y=n,{nodeBorder:m}=r,{stylesMap:x}=rs(t),C=-y/2,k=-p/2,T=t.label?8:0,S=ct.svg(c),v=ht(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const L=S.rectangle(C,k,y,p,v),A=Math.max(y,h.width),F=p+h.height+T,G=S.rectangle(-A/2,-F/2,A,F,{...v,fill:"transparent",stroke:"none"}),Y=c.insert(()=>L,":first-child"),N=c.insert(()=>G);if(t.icon){const st=c.append("g");st.html(`<g>${await ro(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const j=st.node().getBBox(),$=j.width,D=j.height,B=j.x,q=j.y;st.attr("transform",`translate(${-$/2-B},${d?h.height/2+T/2-D/2-q:-h.height/2-T/2-D/2-q})`),st.attr("style",`color: ${x.get("stroke")??m};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-F/2:F/2-h.height})`),Y.attr("transform",`translate(0,${d?h.height/2+T/2:-h.height/2-T/2})`),dt(t,N),t.intersect=function(st){if(R.info("iconSquare intersect",t,st),!t.label)return at.rect(t,st);const j=t.x??0,$=t.y??0,D=t.height??0;let B=[];return d?B=[{x:j-h.width/2,y:$-D/2},{x:j+h.width/2,y:$-D/2},{x:j+h.width/2,y:$-D/2+h.height+T},{x:j+y/2,y:$-D/2+h.height+T},{x:j+y/2,y:$+D/2},{x:j-y/2,y:$+D/2},{x:j-y/2,y:$-D/2+h.height+T},{x:j-h.width/2,y:$-D/2+h.height+T}]:B=[{x:j-y/2,y:$-D/2},{x:j+y/2,y:$-D/2},{x:j+y/2,y:$-D/2+p},{x:j+h.width/2,y:$-D/2+p},{x:j+h.width/2/2,y:$+D/2},{x:j-h.width/2,y:$+D/2},{x:j-h.width/2,y:$-D/2+p},{x:j-y/2,y:$-D/2+p}],at.polygon(t,B,st)},c}f(nm,"icon");async function lm(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=pt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i?.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,label:u}=await xt(e,t,"icon-shape default"),d=20,p=t.label?8:0,y=t.pos==="t",{nodeBorder:m,mainBkg:x}=r,{stylesMap:C}=rs(t),k=ct.svg(c),T=ht(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const S=C.get("fill");T.stroke=S??x;const v=c.append("g");t.icon&&v.html(`<g>${await ro(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const L=v.node().getBBox(),A=L.width,F=L.height,G=L.x,Y=L.y,N=Math.max(A,F)*Math.SQRT2+d*2,st=k.circle(0,0,N,T),j=Math.max(N,h.width),$=N+h.height+p,D=k.rectangle(-j/2,-$/2,j,$,{...T,fill:"transparent",stroke:"none"}),B=c.insert(()=>st,":first-child"),q=c.insert(()=>D);return v.attr("transform",`translate(${-A/2-G},${y?h.height/2+p/2-F/2-Y:-h.height/2-p/2-F/2-Y})`),v.attr("style",`color: ${C.get("stroke")??m};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${y?-$/2:$/2-h.height})`),B.attr("transform",`translate(0,${y?h.height/2+p/2:-h.height/2-p/2})`),dt(t,q),t.intersect=function(I){return R.info("iconSquare intersect",t,I),at.rect(t,I)},c}f(lm,"iconCircle");async function hm(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=pt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i?.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await xt(e,t,"icon-shape default"),p=t.pos==="t",y=n+u*2,m=n+u*2,{nodeBorder:x,mainBkg:C}=r,{stylesMap:k}=rs(t),T=-m/2,S=-y/2,v=t.label?8:0,L=ct.svg(c),A=ht(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const F=k.get("fill");A.stroke=F??C;const G=L.path(We(T,S,m,y,5),A),Y=Math.max(m,h.width),N=y+h.height+v,st=L.rectangle(-Y/2,-N/2,Y,N,{...A,fill:"transparent",stroke:"none"}),j=c.insert(()=>G,":first-child").attr("class","icon-shape2"),$=c.insert(()=>st);if(t.icon){const D=c.append("g");D.html(`<g>${await ro(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const B=D.node().getBBox(),q=B.width,I=B.height,it=B.x,J=B.y;D.attr("transform",`translate(${-q/2-it},${p?h.height/2+v/2-I/2-J:-h.height/2-v/2-I/2-J})`),D.attr("style",`color: ${k.get("stroke")??x};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-N/2:N/2-h.height})`),j.attr("transform",`translate(0,${p?h.height/2+v/2:-h.height/2-v/2})`),dt(t,$),t.intersect=function(D){if(R.info("iconSquare intersect",t,D),!t.label)return at.rect(t,D);const B=t.x??0,q=t.y??0,I=t.height??0;let it=[];return p?it=[{x:B-h.width/2,y:q-I/2},{x:B+h.width/2,y:q-I/2},{x:B+h.width/2,y:q-I/2+h.height+v},{x:B+m/2,y:q-I/2+h.height+v},{x:B+m/2,y:q+I/2},{x:B-m/2,y:q+I/2},{x:B-m/2,y:q-I/2+h.height+v},{x:B-h.width/2,y:q-I/2+h.height+v}]:it=[{x:B-m/2,y:q-I/2},{x:B+m/2,y:q-I/2},{x:B+m/2,y:q-I/2+y},{x:B+h.width/2,y:q-I/2+y},{x:B+h.width/2/2,y:q+I/2},{x:B-h.width/2,y:q+I/2},{x:B-h.width/2,y:q-I/2+y},{x:B-m/2,y:q-I/2+y}],at.polygon(t,it,D)},c}f(hm,"iconRounded");async function cm(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=pt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i?.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await xt(e,t,"icon-shape default"),p=t.pos==="t",y=n+u*2,m=n+u*2,{nodeBorder:x,mainBkg:C}=r,{stylesMap:k}=rs(t),T=-m/2,S=-y/2,v=t.label?8:0,L=ct.svg(c),A=ht(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const F=k.get("fill");A.stroke=F??C;const G=L.path(We(T,S,m,y,.1),A),Y=Math.max(m,h.width),N=y+h.height+v,st=L.rectangle(-Y/2,-N/2,Y,N,{...A,fill:"transparent",stroke:"none"}),j=c.insert(()=>G,":first-child"),$=c.insert(()=>st);if(t.icon){const D=c.append("g");D.html(`<g>${await ro(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const B=D.node().getBBox(),q=B.width,I=B.height,it=B.x,J=B.y;D.attr("transform",`translate(${-q/2-it},${p?h.height/2+v/2-I/2-J:-h.height/2-v/2-I/2-J})`),D.attr("style",`color: ${k.get("stroke")??x};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-N/2:N/2-h.height})`),j.attr("transform",`translate(0,${p?h.height/2+v/2:-h.height/2-v/2})`),dt(t,$),t.intersect=function(D){if(R.info("iconSquare intersect",t,D),!t.label)return at.rect(t,D);const B=t.x??0,q=t.y??0,I=t.height??0;let it=[];return p?it=[{x:B-h.width/2,y:q-I/2},{x:B+h.width/2,y:q-I/2},{x:B+h.width/2,y:q-I/2+h.height+v},{x:B+m/2,y:q-I/2+h.height+v},{x:B+m/2,y:q+I/2},{x:B-m/2,y:q+I/2},{x:B-m/2,y:q-I/2+h.height+v},{x:B-h.width/2,y:q-I/2+h.height+v}]:it=[{x:B-m/2,y:q-I/2},{x:B+m/2,y:q-I/2},{x:B+m/2,y:q-I/2+y},{x:B+h.width/2,y:q-I/2+y},{x:B+h.width/2/2,y:q+I/2},{x:B-h.width/2,y:q+I/2},{x:B-h.width/2,y:q-I/2+y},{x:B-m/2,y:q-I/2+y}],at.polygon(t,it,D)},c}f(cm,"iconSquare");async function um(e,t,{config:{flowchart:r}}){const i=new Image;i.src=t?.img??"",await i.decode();const s=Number(i.naturalWidth.toString().replace("px","")),o=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=s/o;const{labelStyles:a}=pt(t);t.labelStyle=a;const n=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;const l=Math.max(t.label?n??0:0,t?.assetWidth??s),c=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:t?.assetHeight??o;t.width=Math.max(c,n??0);const{shapeSvg:u,bbox:d,label:p}=await xt(e,t,"image-shape default"),y=t.pos==="t",m=-c/2,x=-h/2,C=t.label?8:0,k=ct.svg(u),T=ht(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const S=k.rectangle(m,x,c,h,T),v=Math.max(c,d.width),L=h+d.height+C,A=k.rectangle(-v/2,-L/2,v,L,{...T,fill:"none",stroke:"none"}),F=u.insert(()=>S,":first-child"),G=u.insert(()=>A);if(t.img){const Y=u.append("image");Y.attr("href",t.img),Y.attr("width",c),Y.attr("height",h),Y.attr("preserveAspectRatio","none"),Y.attr("transform",`translate(${-c/2},${y?L/2-h:-L/2})`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-h/2-d.height/2-C/2:h/2-d.height/2+C/2})`),F.attr("transform",`translate(0,${y?d.height/2+C/2:-d.height/2-C/2})`),dt(t,G),t.intersect=function(Y){if(R.info("iconSquare intersect",t,Y),!t.label)return at.rect(t,Y);const N=t.x??0,st=t.y??0,j=t.height??0;let $=[];return y?$=[{x:N-d.width/2,y:st-j/2},{x:N+d.width/2,y:st-j/2},{x:N+d.width/2,y:st-j/2+d.height+C},{x:N+c/2,y:st-j/2+d.height+C},{x:N+c/2,y:st+j/2},{x:N-c/2,y:st+j/2},{x:N-c/2,y:st-j/2+d.height+C},{x:N-d.width/2,y:st-j/2+d.height+C}]:$=[{x:N-c/2,y:st-j/2},{x:N+c/2,y:st-j/2},{x:N+c/2,y:st-j/2+h},{x:N+d.width/2,y:st-j/2+h},{x:N+d.width/2/2,y:st+j/2},{x:N-d.width/2,y:st+j/2},{x:N-d.width/2,y:st-j/2+h},{x:N-c/2,y:st-j/2+h}],at.polygon(t,$,Y)},u}f(um,"imageSquare");async function dm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=Math.max(l.height+o*2,t.height??0),h=Math.max(l.width+a*2,(t.width??0)-c),u=[{x:0,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:-3*c/6,y:-c}];let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=ct.svg(n),m=ht(t,{}),x=Rt(u),C=y.path(x,m);d=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),p&&d.attr("style",p)}else d=gr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,dt(t,d),t.intersect=function(y){return at.polygon(t,u,y)},n}f(dm,"inv_trapezoid");async function fm(e,t){const{shapeSvg:r,bbox:i,label:s}=await xt(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),dt(t,o),t.intersect=function(l){return at.rect(t,l)},r}f(fm,"labelRect");async function pm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:0,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:-(3*c)/6,y:-c}];let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=ct.svg(n),m=ht(t,{}),x=Rt(u),C=y.path(x,m);d=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),p&&d.attr("style",p)}else d=gr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,dt(t,d),t.intersect=function(y){return at.polygon(t,u,y)},n}f(pm,"lean_left");async function gm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:-3*c/6,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:0,y:-c}];let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=ct.svg(n),m=ht(t,{}),x=Rt(u),C=y.path(x,m);d=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),p&&d.attr("style",p)}else d=gr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,dt(t,d),t.intersect=function(y){return at.polygon(t,u,y)},n}f(gm,"lean_right");function mm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.label="",t.labelStyle=r;const s=e.insert("g").attr("class",Ct(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,a=Math.max(35,t?.width??0),n=Math.max(35,t?.height??0),l=7,c=[{x:a,y:0},{x:0,y:n+l/2},{x:a-2*l,y:n+l/2},{x:0,y:2*n},{x:a,y:n-l/2},{x:2*l,y:n-l/2}],h=ct.svg(s),u=ht(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=Rt(c),p=h.path(d,u),y=s.insert(()=>p,":first-child");return y.attr("class","outer-path"),o&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(-${a/2},${-n})`),dt(t,y),t.intersect=function(m){return R.info("lightningBolt intersect",t,m),at.polygon(t,c,m)},s}f(mm,"lightningBolt");var j_=f((e,t,r,i,s,o,a)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+a}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),U_=f((e,t,r,i,s,o,a)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+a}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),G_=f((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Wu=10,Hu=10;async function ym(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?24:s;if(t.width||t.height){const C=t.width??0;t.width=(t.width??0)-o,t.width<Hu&&(t.width=Hu);const T=C/2/(2.5+C/50);t.height=(t.height??0)-a-T*3,t.height<Wu&&(t.height=Wu)}const{shapeSvg:n,bbox:l,label:c}=await xt(e,t,Ct(t)),h=(t?.width?t?.width:l.width)+o*2,u=h/2,d=u/(2.5+h/50),p=(t?.height?t?.height:l.height)+d+a*2,y=p*.1;let m;const{cssStyles:x}=t;if(t.look==="handDrawn"){const C=ct.svg(n),k=U_(0,0,h,p,u,d,y),T=G_(0,d,h,p,u,d),S=ht(t,{}),v=C.path(k,S),L=C.path(T,S);n.insert(()=>L,":first-child").attr("class","line"),m=n.insert(()=>v,":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{const C=j_(0,0,h,p,u,d,y);m=n.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",re(x)).attr("style",i)}return m.attr("label-offset-y",d),m.attr("transform",`translate(${-h/2}, ${-(p/2+d)})`),dt(t,m),c.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+d-(l.y-(l.top??0))})`),t.intersect=function(C){const k=at.rect(t,C),T=k.x-(t.x??0);if(u!=0&&(Math.abs(T)<(t.width??0)/2||Math.abs(T)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-d)){let S=d*d*(1-T*T/(u*u));S>0&&(S=Math.sqrt(S)),S=d-S,C.y-(t.y??0)>0&&(S=-S),k.y+=S}return k},n}f(ym,"linedCylinder");async function xm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;if(t.width||t.height){const S=t.width;t.width=(S??0)*10/11-o*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10)}const{shapeSvg:n,bbox:l,label:c}=await xt(e,t,Ct(t)),h=(t?.width?t?.width:l.width)+(o??0)*2,u=(t?.height?t?.height:l.height)+(a??0)*2,d=t.look==="neo"?u/4:u/8,p=u+d,{cssStyles:y}=t,m=ct.svg(n),x=ht(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:-h/2-h/2*.1,y:-p/2},{x:-h/2-h/2*.1,y:p/2},...jr(-h/2-h/2*.1,p/2,h/2+h/2*.1,p/2,d,.8),{x:h/2+h/2*.1,y:-p/2},{x:-h/2-h/2*.1,y:-p/2},{x:-h/2,y:-p/2},{x:-h/2,y:p/2*1.1},{x:-h/2,y:-p/2}],k=m.polygon(C.map(S=>[S.x,S.y]),x),T=n.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-d/2})`),c.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)-d/2-(l.y-(l.top??0))})`),dt(t,T),t.intersect=function(S){return at.polygon(t,C,S)},n}f(xm,"linedWaveEdgedRect");async function Cm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2-2*n,10),t.height=Math.max((t?.height??0)-a*2-2*n,10));const{shapeSvg:l,bbox:c,label:h}=await xt(e,t,Ct(t)),u=(t?.width?t?.width:c.width)+o*2+2*n,d=(t?.height?t?.height:c.height)+a*2+2*n,p=u-2*n,y=d-2*n,m=-p/2,x=-y/2,{cssStyles:C}=t,k=ct.svg(l),T=ht(t,{}),S=[{x:m-n,y:x+n},{x:m-n,y:x+y+n},{x:m+p-n,y:x+y+n},{x:m+p-n,y:x+y},{x:m+p,y:x+y},{x:m+p,y:x+y-n},{x:m+p+n,y:x+y-n},{x:m+p+n,y:x-n},{x:m+n,y:x-n},{x:m+n,y:x},{x:m,y:x},{x:m,y:x+n}],v=[{x:m,y:x+n},{x:m+p-n,y:x+n},{x:m+p-n,y:x+y},{x:m+p,y:x+y},{x:m+p,y:x},{x:m,y:x}];t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const L=Rt(S);let A=k.path(L,T);const F=Rt(v);let G=k.path(F,T);t.look!=="handDrawn"&&(A=xl(A),G=xl(G));const Y=l.insert("g",":first-child");return Y.insert(()=>A),Y.insert(()=>G),Y.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&Y.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&Y.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(c.width/2)-n-(c.x-(c.left??0))}, ${-(c.height/2)+n-(c.y-(c.top??0))})`),dt(t,Y),t.intersect=function(N){return at.polygon(t,S,N)},l}f(Cm,"multiRect");async function bm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await xt(e,t,Ct(t)),n=t.padding??0,l=t.look==="neo"?16:n,c=t.look==="neo"?12:n;let h=!0;(t.width||t.height)&&(h=!1,t.width=(t?.width??0)-l*2,t.height=(t?.height??0)-c*3);const u=Math.max(o.width,t?.width??0)+l*2,d=Math.max(o.height,t?.height??0)+c*3,p=t.look==="neo"?d/4:d/8,y=d+(h?p/2:-p/2),m=-u/2,x=-y/2,C=10,{cssStyles:k}=t,T=jr(m-C,x+y+C,m+u-C,x+y+C,p,.8),S=T?.[T.length-1],v=[{x:m-C,y:x+C},{x:m-C,y:x+y+C},...T,{x:m+u-C,y:S.y-C},{x:m+u,y:S.y-C},{x:m+u,y:S.y-2*C},{x:m+u+C,y:S.y-2*C},{x:m+u+C,y:x-C},{x:m+C,y:x-C},{x:m+C,y:x},{x:m,y:x},{x:m,y:x+C}],L=[{x:m,y:x+C},{x:m+u-C,y:x+C},{x:m+u-C,y:S.y-C},{x:m+u,y:S.y-C},{x:m+u,y:x},{x:m,y:x}],A=ct.svg(s),F=ht(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const G=Rt(v),Y=A.path(G,F),N=Rt(L),st=A.path(N,F),j=s.insert(()=>Y,":first-child");return j.insert(()=>st),j.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",i),j.attr("transform",`translate(0,${-p/2})`),a.attr("transform",`translate(${-(o.width/2)-C-(o.x-(o.left??0))}, ${-(o.height/2)+C-p/2-(o.y-(o.top??0))})`),dt(t,j),t.intersect=function($){return at.polygon(t,v,$)},s}f(bm,"multiWaveEdgedRectangle");async function km(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=pt(t);t.labelStyle=i,t.useHtmlLabels||xe(Zt())||(t.centerLabel=!0);const{shapeSvg:a,bbox:n,label:l}=await xt(e,t,Ct(t)),c=Math.max(n.width+(t.padding??0)*2,t?.width??0),h=Math.max(n.height+(t.padding??0)*2,t?.height??0),u=-c/2,d=-h/2,{cssStyles:p}=t,y=ct.svg(a),m=ht(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=y.rectangle(u,d,c,h,m),C=a.insert(()=>x,":first-child");return C.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),p&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",p),s&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",s),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),dt(t,C),t.intersect=function(k){return at.rect(t,k)},a}f(km,"note");var X_=f((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function wm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await xt(e,t,Ct(t)),a=o.width+(t.padding??0),n=o.height+(t.padding??0),l=a+n,c=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=ct.svg(s),y=ht(t,{}),m=X_(0,0,l),x=p.path(m,y);u=s.insert(()=>x,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),d&&u.attr("style",d)}else u=gr(s,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),dt(t,u),t.calcIntersect=function(p,y){const m=p.width,x=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],C=at.polygon(p,x,y);return{x:C.x-.5,y:C.y-.5}},t.intersect=function(p){return this.calcIntersect(t,p)},s}f(wm,"question");async function Tm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?21:s??0,a=t.look==="neo"?12:s??0,{shapeSvg:n,bbox:l,label:c}=await xt(e,t,Ct(t)),h=l.width+(t.look==="neo"?o*2:o),u=Math.max(l.height+(t.look==="neo"?a*2:a),t.height??0),d=u/4,y=-Math.max(h,(t.width??0)-d)/2,m=-u/2,x=m/2,C=[{x:y+x,y:m},{x:y,y:0},{x:y+x,y:-m},{x:-y,y:-m},{x:-y,y:m}],{cssStyles:k}=t,T=ct.svg(n),S=ht(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const v=Rt(C),L=T.path(v,S),A=n.insert(()=>L,":first-child");return A.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${-x/2},0)`),c.attr("transform",`translate(${-x/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),dt(t,A),t.intersect=function(F){return at.polygon(t,C,F)},n}f(Tm,"rect_left_inv_arrow");async function _m(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;let s;t.cssClasses?s="node "+t.cssClasses:s="node default";const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),a=o.insert("g"),n=o.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,h=await Nr(n,c,t.labelStyle,!0,!0);let u={width:0,height:0};if(xe(Dt())){const F=h.children[0],G=Et(h);u=F.getBoundingClientRect(),G.attr("width",u.width),G.attr("height",u.height)}R.info("Text 2",l);const d=l||[],p=h.getBBox(),y=await Nr(n,Array.isArray(d)?d.join("<br/>"):d,t.labelStyle,!0,!0),m=y.children[0],x=Et(y);u=m.getBoundingClientRect(),x.attr("width",u.width),x.attr("height",u.height);const C=(t.padding||0)/2;Et(y).attr("transform","translate( "+(u.width>p.width?0:(p.width-u.width)/2)+", "+(p.height+C+5)+")"),Et(h).attr("transform","translate( "+(u.width<p.width?0:-(p.width-u.width)/2)+", 0)"),u=n.node().getBBox(),n.attr("transform","translate("+-u.width/2+", "+(-u.height/2-C+3)+")");const k=u.width+(t.padding||0),T=u.height+(t.padding||0),S=-u.width/2-C,v=-u.height/2-C;let L,A;if(t.look==="handDrawn"){const F=ct.svg(o),G=ht(t,{}),Y=F.path(We(S,v,k,T,t.rx||0),G),N=F.line(-u.width/2-C,-u.height/2-C+p.height+C,u.width/2+C,-u.height/2-C+p.height+C,G);A=o.insert(()=>(R.debug("Rough node insert CXC",Y),N),":first-child"),L=o.insert(()=>(R.debug("Rough node insert CXC",Y),Y),":first-child")}else L=a.insert("rect",":first-child"),A=a.insert("line"),L.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-C).attr("y",-u.height/2-C).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),A.attr("class","divider").attr("x1",-u.width/2-C).attr("x2",u.width/2+C).attr("y1",-u.height/2-C+p.height+C).attr("y2",-u.height/2-C+p.height+C);return dt(t,L),t.intersect=function(F){return at.rect(t,F)},o}f(_m,"rectWithTitle");async function Sm(e,t,{config:{themeVariables:r}}){const i=r?.radius??5,s={rx:i,ry:i,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return is(e,t,s)}f(Sm,"roundedRect");var Xr=8;async function vm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0,{shapeSvg:a,bbox:n,label:l}=await xt(e,t,Ct(t)),c=(t?.width??n.width)+s*2+(t.look==="neo"?Xr:Xr*2),h=(t?.height??n.height)+o*2,u=c-Xr,d=h,p=Xr-c/2,y=-h/2,{cssStyles:m}=t,x=ct.svg(a),C=ht(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:p,y},{x:p+u,y},{x:p+u,y:y+d},{x:p-Xr,y:y+d},{x:p-Xr,y},{x:p,y},{x:p,y:y+d}],T=x.polygon(k.map(v=>[v.x,v.y]),C),S=a.insert(()=>T,":first-child");return S.attr("class","basic label-container outer-path").attr("style",re(m)),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),m&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),l.attr("transform",`translate(${Xr/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),dt(t,S),t.intersect=function(v){return at.rect(t,v)},a}f(vm,"shadedProcess");async function Bm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2,10),t.height=Math.max((t?.height??0)/1.5-a*2,10));const{shapeSvg:n,bbox:l,label:c}=await xt(e,t,Ct(t)),h=(t?.width?t?.width:l.width)+o*2,u=((t?.height?t?.height:l.height)+a*2)*1.5,d=h,p=u/1.5,y=-d/2,m=-p/2,{cssStyles:x}=t,C=ct.svg(n),k=ht(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=[{x:y,y:m},{x:y,y:m+p},{x:y+d,y:m+p},{x:y+d,y:m-p/2}],S=Rt(T),v=C.path(S,k),L=n.insert(()=>v,":first-child");return L.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&L.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&L.selectChildren("path").attr("style",i),L.attr("transform",`translate(0, ${p/4})`),c.attr("transform",`translate(${-d/2+(t.padding??0)-(l.x-(l.left??0))}, ${-p/4+(t.padding??0)-(l.y-(l.top??0))})`),dt(t,L),t.intersect=function(A){return at.polygon(t,T,A)},n}f(Bm,"slopedRect");async function Lm(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,s=t.look==="neo"?12:r,o={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:s};return is(e,t,o)}f(Lm,"squareRect");async function Fm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?20:s,a=t.look==="neo"?12:s,{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=l.height+(t.look==="neo"?a*2:a),h=l.width+c/4+(t.look==="neo"?o*2:o),u=c/2,{cssStyles:d}=t,p=ct.svg(n),y=ht(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const m=[{x:-h/2+u,y:-c/2},{x:h/2-u,y:-c/2},...nr(-h/2+u,0,u,50,90,270),{x:h/2-u,y:c/2},...nr(h/2-u,0,u,50,270,450)],x=Rt(m),C=p.path(x,y),k=n.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),dt(t,k),t.intersect=function(T){return at.polygon(t,m,T)},n}f(Fm,"stadium");async function Am(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return is(e,t,r)}f(Am,"state");function Em(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=pt(t);t.labelStyle=i;const{cssStyles:o}=t,{lineColor:a,stateBorder:n,nodeBorder:l,nodeShadow:c}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const h=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=ct.svg(h),d=ht(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=u.circle(0,0,t.width,{...d,stroke:a,strokeWidth:2}),y=n??l,m=(t.width??0)*5/14,x=u.circle(0,0,m,{...d,fill:y,stroke:y,strokeWidth:2,fillStyle:"solid"}),C=h.insert(()=>p,":first-child");if(C.insert(()=>x),t.look!=="handDrawn"&&C.attr("class","outer-path"),o&&C.selectAll("path").attr("style",o),s&&C.selectAll("path").attr("style",s),t.width<25&&c&&t.look!=="handDrawn"){const k=e.node()?.ownerSVGElement?.id??"",T=k?`${k}-drop-shadow-small`:"drop-shadow-small";C.attr("style",`filter:url(#${T})`)}return dt(t,C),t.intersect=function(k){return at.circle(t,(t.width??0)/2,k)},h}f(Em,"stateEnd");function Mm(e,t,{config:{themeVariables:r}}){const{lineColor:i,nodeShadow:s}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const o=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const l=ct.svg(o).circle(0,0,t.width,V2(i));a=o.insert(()=>l),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else a=o.insert("circle",":first-child"),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&s&&t.look!=="handDrawn"){const n=e.node()?.ownerSVGElement?.id??"",l=n?`${n}-drop-shadow-small`:"drop-shadow-small";a.attr("style",`filter:url(#${l})`)}return dt(t,a),t.intersect=function(n){return at.circle(t,(t.width??7)/2,n)},o}f(Mm,"stateStart");var Ti=8;async function $m(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t?.padding??8,o=t.look==="neo"?28:s,a=t.look==="neo"?12:s,{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=Math.max(l.width+2*Ti+o,t.width??0),h=Math.max(l.height+a,t.height??0),u=c-2*Ti,d=h,p=-c/2,y=-h/2,m=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-d},{x:-8,y:-d},{x:-8,y:0}];if(t.look==="handDrawn"){const x=ct.svg(n),C=ht(t,{}),k=x.rectangle(p,y,u+16,d,C),T=x.line(p+Ti,y,p+Ti,y+d,C),S=x.line(p+Ti+u,y,p+Ti+u,y+d,C);n.insert(()=>T,":first-child"),n.insert(()=>S,":first-child");const v=n.insert(()=>k,":first-child"),{cssStyles:L}=t;v.attr("class","basic label-container").attr("style",re(L)),dt(t,v)}else{const x=gr(n,u,d,m);i&&x.attr("style",i),dt(t,x)}return t.intersect=function(x){return at.polygon(t,m,x)},n}f($m,"subroutine");var un=.2;async function Om(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-a*2,10),t.width=Math.max((t?.width??0)-o*2-un*(t.height+a*2),10));const{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=(t?.height?t?.height:l.height)+a*2,h=un*c,u=un*c,p=(t?.width?t?.width:l.width)+o*2+h-h,y=c,m=-p/2,x=-y/2,{cssStyles:C}=t,k=ct.svg(n),T=ht(t,{}),S=[{x:m-h/2,y:x},{x:m+p+h/2,y:x},{x:m+p+h/2,y:x+y},{x:m-h/2,y:x+y}],v=[{x:m+p-h/2,y:x+y},{x:m+p+h/2,y:x+y},{x:m+p+h/2,y:x+y-u}];t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const L=Rt(S),A=k.path(L,T),F=Rt(v),G=k.path(F,{...T,fillStyle:"solid"}),Y=n.insert(()=>G,":first-child");return Y.insert(()=>A,":first-child"),Y.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&Y.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&Y.selectAll("path").attr("style",i),dt(t,Y),t.intersect=function(N){return at.polygon(t,S,N)},n}f(Om,"taggedRect");async function Dm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await xt(e,t,Ct(t)),n=Math.max(o.width+(t.padding??0)*2,t?.width??0),l=Math.max(o.height+(t.padding??0)*2,t?.height??0),c=l/8,h=.2*n,u=.2*l,d=l+c,{cssStyles:p}=t,y=ct.svg(s),m=ht(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-n/2-n/2*.1,y:d/2},...jr(-n/2-n/2*.1,d/2,n/2+n/2*.1,d/2,c,.8),{x:n/2+n/2*.1,y:-d/2},{x:-n/2-n/2*.1,y:-d/2}],C=-n/2+n/2*.1,k=-d/2-u*.4,T=[{x:C+n-h,y:(k+l)*1.3},{x:C+n,y:k+l-u},{x:C+n,y:(k+l)*.9},...jr(C+n,(k+l)*1.25,C+n-h,(k+l)*1.3,-l*.02,.5)],S=Rt(x),v=y.path(S,m),L=Rt(T),A=y.path(L,{...m,fillStyle:"solid"}),F=s.insert(()=>A,":first-child");return F.insert(()=>v,":first-child"),F.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-n/2+(t.padding??0)-(o.x-(o.left??0))},${-l/2+(t.padding??0)-c/2-(o.y-(o.top??0))})`),dt(t,F),t.intersect=function(G){return at.polygon(t,x,G)},s}f(Dm,"taggedWaveEdgedRectangle");async function Im(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await xt(e,t,Ct(t)),a=Math.max(o.width+(t.padding??0),t?.width||0),n=Math.max(o.height+(t.padding??0),t?.height||0),l=-a/2,c=-n/2,h=s.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",a).attr("height",n),dt(t,h),t.intersect=function(u){return at.rect(t,u)},s}f(Im,"text");var V_=f((e,t,r,i,s,o)=>`M${e},${t}
202
+ a${s},${o} 0,0,1 0,${-i}
203
+ l${r},0
204
+ a${s},${o} 0,0,1 0,${i}
205
+ M${r},${-i}
206
+ a${s},${o} 0,0,0 0,${i}
207
+ l${-r},0`,"createCylinderPathD"),Z_=f((e,t,r,i,s,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${s},${o} 0,0,0 0,${-i}`,`l${-r},0`,`a${s},${o} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),K_=f((e,t,r,i,s,o)=>[`M${e+r/2},${-i/2}`,`a${s},${o} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),Yu=5,ju=10;async function Pm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?12:s/2,a=t.height??0;if(t.height&&(t.height=t.height-o,t.height<Yu&&(t.height=Yu)),t.width){const C=a/2/(2.5+a/50);t.width=t.width-o-C*3,t.width<ju&&(t.width=ju)}const{shapeSvg:n,bbox:l,label:c}=await xt(e,t,Ct(t)),h=Math.max(t.height??0,l.height)+o,u=h/2,d=u/(2.5+h/50),p=Math.max(t.width??0,l.width)+d+o,{cssStyles:y}=t;let m;if(t.look==="handDrawn"){const x=ct.svg(n),C=Z_(0,0,p,h,d,u),k=K_(0,0,p,h,d,u),T=x.path(C,ht(t,{})),S=x.path(k,ht(t,{fill:"none"}));m=n.insert(()=>S,":first-child"),m=n.insert(()=>T,":first-child"),m.attr("class","basic label-container"),y&&m.attr("style",y)}else{const x=V_(0,0,p,h,d,u);m=n.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",re(y)).attr("style",i),m.attr("class","basic label-container outer-path"),y&&m.selectAll("path").attr("style",y),i&&m.selectAll("path").attr("style",i)}return m.attr("label-offset-x",d),m.attr("transform",`translate(${-p/2}, ${h/2} )`),c.attr("transform",`translate(${-(l.width/2)-d-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),dt(t,m),t.intersect=function(x){const C=at.rect(t,x),k=C.y-(t.y??0);if(u!=0&&(Math.abs(k)<(t.height??0)/2||Math.abs(k)==(t.height??0)/2&&Math.abs(C.x-(t.x??0))>(t.width??0)/2-d)){let T=d*d*(1-k*k/(u*u));T!=0&&(T=Math.sqrt(Math.abs(T))),T=d-T,x.x-(t.x??0)>0&&(T=-T),C.x+=T}return C},n}f(Pm,"tiltedCylinder");async function Rm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=(t.look==="neo",s),a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:-3*c/6,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:0,y:-c}];let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=ct.svg(n),m=ht(t,{}),x=Rt(u),C=y.path(x,m);d=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),p&&d.attr("style",p)}else d=gr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,dt(t,d),t.intersect=function(y){return at.polygon(t,u,y)},n}f(Rm,"trapezoid");async function Nm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=15,l=5;(t.width||t.height)&&(t.height=(t.height??0)-a*2,t.height<l&&(t.height=l),t.width=(t.width??0)-o*2,t.width<n&&(t.width=n));const{shapeSvg:c,bbox:h}=await xt(e,t,Ct(t)),u=(t?.width?t?.width:h.width)+o*2,d=(t?.height?t?.height:h.height)+a*2,{cssStyles:p}=t,y=ct.svg(c),m=ht(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],C=Rt(x),k=y.path(C,m),T=c.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),dt(t,T),t.intersect=function(S){return at.polygon(t,x,S)},c}f(Nm,"trapezoidalPentagon");var Uu=10,Gu=10;async function qm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.width=((t?.width??0)-o)/2,t.width<Gu&&(t.width=Gu),t.height=t?.height??0,t.height<Uu&&(t.height=Uu));const{shapeSvg:a,bbox:n,label:l}=await xt(e,t,Ct(t)),c=fr(Dt().flowchart?.htmlLabels),h=(t?.width?t?.width:n.width)+o,u=t?.height?t?.height:h+n.height,d=u,p=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-u}],{cssStyles:y}=t,m=ct.svg(a),x=ht(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=Rt(p),k=m.path(C,x),T=a.insert(()=>k,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),t.width=h,t.height=u,dt(t,T),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${u/2-(n.height+(t.padding??0)/(c?2:1)-(n.y-(n.top??0)))})`),t.intersect=function(S){return R.info("Triangle intersect",t,p,S),at.polygon(t,p,S)},a}f(qm,"triangle");async function zm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;let n=!0;(t.width||t.height)&&(n=!1,t.width=(t?.width??0)-o*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:c,label:h}=await xt(e,t,Ct(t)),u=(t?.width?t?.width:c.width)+(o??0)*2,d=(t?.height?t?.height:c.height)+(a??0)*2,p=t.look==="neo"?d/4:d/8,y=d+(n?p:-p),{cssStyles:m}=t,C=14-u,k=C>0?C/2:0,T=ct.svg(l),S=ht(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const v=[{x:-u/2-k,y:y/2},...jr(-u/2-k,y/2,u/2+k,y/2,p,.8),{x:u/2+k,y:-y/2},{x:-u/2-k,y:-y/2}],L=Rt(v),A=T.path(L,S),F=l.insert(()=>A,":first-child");return F.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(0,${-p/2})`),h.attr("transform",`translate(${-u/2+(t.padding??0)-(c.x-(c.left??0))},${-d/2+(t.padding??0)-p-(c.y-(c.top??0))})`),dt(t,F),t.intersect=function(G){return at.polygon(t,v,G)},l}f(zm,"waveEdgedRectangle");async function Wm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?20:s;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);const S=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-a-S*(20/9)),t.width=t.width-o*2}const{shapeSvg:n,bbox:l}=await xt(e,t,Ct(t)),c=(t?.width?t?.width:l.width)+o*2,h=(t?.height?t?.height:l.height)+a,u=h/8,d=h+u*2,{cssStyles:p}=t,y=ct.svg(n),m=ht(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-c/2,y:d/2},...jr(-c/2,d/2,c/2,d/2,u,1),{x:c/2,y:-d/2},...jr(c/2,-d/2,-c/2,-d/2,u,-1)],C=Rt(x),k=y.path(C,m),T=n.insert(()=>k,":first-child");return T.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),dt(t,T),t.intersect=function(S){return at.polygon(t,x,S)},n}f(Wm,"waveRectangle");var Qt=10;async function Hm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-s*2-Qt,10),t.height=Math.max((t?.height??0)-o*2-Qt,10));const{shapeSvg:a,bbox:n,label:l}=await xt(e,t,Ct(t)),c=(t?.width?t?.width:n.width)+s*2+Qt,h=(t?.height?t?.height:n.height)+o*2+Qt,u=c-Qt,d=h-Qt,p=-u/2,y=-d/2,{cssStyles:m}=t,x=ct.svg(a),C=ht(t,{}),k=[{x:p-Qt,y:y-Qt},{x:p-Qt,y:y+d},{x:p+u,y:y+d},{x:p+u,y:y-Qt}],T=`M${p-Qt},${y-Qt} L${p+u},${y-Qt} L${p+u},${y+d} L${p-Qt},${y+d} L${p-Qt},${y-Qt}
208
+ M${p-Qt},${y} L${p+u},${y}
209
+ M${p},${y-Qt} L${p},${y+d}`;t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const S=x.path(T,C),v=a.insert(()=>S,":first-child");return v.attr("transform",`translate(${Qt/2}, ${Qt/2})`),v.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(n.width/2)+Qt/2-(n.x-(n.left??0))}, ${-(n.height/2)+Qt/2-(n.y-(n.top??0))})`),dt(t,v),t.intersect=function(L){return at.polygon(t,k,L)},a}f(Hm,"windowPane");var Xu=new Set(["redux-color","redux-dark-color"]),Q_=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function _h(e,t){const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:s}=Zt(),{rowEven:o,rowOdd:a,nodeBorder:n,borderColorArray:l}=s;if(t.look==="handDrawn"){const{themeVariables:gt}=Zt(),{background:wt}=gt,$t={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${wt}`]};await _h(e,$t)}const c=Zt();t.useHtmlLabels=c.htmlLabels;let h=c.er?.diagramPadding??10,u=c.er?.entityPadding??6;const{cssStyles:d}=t,{labelStyles:p,nodeStyles:y}=pt(t);if(r.attributes.length===0&&t.label){const gt={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};Br(t.label,c)+gt.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);const wt=await is(e,t,gt);if(i!=null&&Xu.has(i)){const $t=r.colorIndex??0;wt.attr("data-color-id",`color-${$t%l.length}`)}if(!fr(c.htmlLabels)){const $t=wt.select("text"),Bt=$t.node()?.getBBox();$t.attr("transform",`translate(${-Bt.width/2}, 0)`)}return wt}c.htmlLabels||(h*=1.25,u*=1.25);let m=Ct(t);m||(m="node default");const x=e.insert("g").attr("class",m).attr("id",t.domId||t.id),C=await Si(x,t.label??"",c,0,0,["name"],p);C.height+=u;let k=0;const T=[],S=[];let v=0,L=0,A=0,F=0,G=!0,Y=!0;for(const gt of r.attributes){const wt=await Si(x,gt.type,c,0,k,["attribute-type"],p);v=Math.max(v,wt.width+h);const $t=await Si(x,gt.name,c,0,k,["attribute-name"],p);L=Math.max(L,$t.width+h);const Bt=await Si(x,gt.keys.join(),c,0,k,["attribute-keys"],p);A=Math.max(A,Bt.width+h);const Nt=await Si(x,gt.comment,c,0,k,["attribute-comment"],p);F=Math.max(F,Nt.width+h);const zt=Math.max(wt.height,$t.height,Bt.height,Nt.height)+u;S.push({yOffset:k,rowHeight:zt}),k+=zt}let N=4;A<=h&&(G=!1,A=0,N--),F<=h&&(Y=!1,F=0,N--);const st=x.node().getBBox();if(C.width+h*2-(v+L+A+F)>0){const gt=C.width+h*2-(v+L+A+F);v+=gt/N,L+=gt/N,A>0&&(A+=gt/N),F>0&&(F+=gt/N)}const j=v+L+A+F,$=ct.svg(x),D=ht(t,{});t.look!=="handDrawn"&&(D.roughness=0,D.fillStyle="solid");let B=0;S.length>0&&(B=S.reduce((gt,wt)=>gt+(wt?.rowHeight??0),0));const q=Math.max(st.width+h*2,t?.width||0,j),I=Math.max((B??0)+C.height,t?.height||0),it=-q/2,J=-I/2;if(x.selectAll("g:not(:first-child)").each((gt,wt,$t)=>{const Bt=Et($t[wt]),Nt=Bt.attr("transform");let zt=0,le=0;if(Nt){const It=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Nt);It&&(zt=parseFloat(It[1]),le=parseFloat(It[2]),Bt.attr("class").includes("attribute-name")?zt+=v:Bt.attr("class").includes("attribute-keys")?zt+=v+L:Bt.attr("class").includes("attribute-comment")&&(zt+=v+L+A))}Bt.attr("transform",`translate(${it+h/2+zt}, ${le+J+C.height+u/2})`)}),x.select(".name").attr("transform","translate("+-C.width/2+", "+(J+u/2)+")"),i!=null&&Xu.has(i)){const gt=r.colorIndex??0;x.attr("data-color-id",`color-${gt%l.length}`)}const mt=$.rectangle(it,J,q,I,D),_t=x.insert(()=>mt,":first-child").attr("class","outer-path").attr("style",d.join(""));T.push(0);for(const[gt,wt]of S.entries()){const Bt=(gt+1)%2===0&&wt.yOffset!==0,Nt=$.rectangle(it,C.height+J+wt?.yOffset,q,wt?.rowHeight,{...D,fill:Bt?o:a,stroke:n});x.insert(()=>Nt,"g.label").attr("style",d.join("")).attr("class",`row-rect-${Bt?"even":"odd"}`)}const Tt=1e-4;let ft=vi(it,C.height+J,q+it,C.height+J,Tt),Lt=$.polygon(ft.map(gt=>[gt.x,gt.y]),D);if(x.insert(()=>Lt).attr("class","divider"),ft=vi(v+it,C.height+J,v+it,I+J,Tt),Lt=$.polygon(ft.map(gt=>[gt.x,gt.y]),D),x.insert(()=>Lt).attr("class","divider"),G){const gt=v+L+it;ft=vi(gt,C.height+J,gt,I+J,Tt),Lt=$.polygon(ft.map(wt=>[wt.x,wt.y]),D),x.insert(()=>Lt).attr("class","divider")}if(Y){const gt=v+L+A+it;ft=vi(gt,C.height+J,gt,I+J,Tt),Lt=$.polygon(ft.map(wt=>[wt.x,wt.y]),D),x.insert(()=>Lt).attr("class","divider")}for(const gt of T){const wt=C.height+J+gt;ft=vi(it,wt,q+it,wt,Tt),Lt=$.polygon(ft.map($t=>[$t.x,$t.y]),D),x.insert(()=>Lt).attr("class","divider")}if(dt(t,_t),y&&t.look!=="handDrawn")if(i!=null&&Q_.has(i))x.selectAll("path").attr("style",y);else{const wt=y.split(";")?.filter($t=>$t.includes("stroke"))?.map($t=>`${$t}`).join("; ");x.selectAll("path").attr("style",wt??""),x.selectAll(".row-rect-even path").attr("style",y)}return t.intersect=function(gt){return at.rect(t,gt)},x}f(_h,"erBox");async function Si(e,t,r,i=0,s=0,o=[],a=""){const n=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${i}, ${s})`).attr("style",a);t!==Rc(t)&&(t=Rc(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=n.node().appendChild(await Qe(n,t,{width:Br(t,r)+100,style:a,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();if(fr(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=Et(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}f(Si,"addText");function vi(e,t,r,i,s){return e===r?[{x:e-s/2,y:t},{x:e+s/2,y:t},{x:r+s/2,y:i},{x:r-s/2,y:i}]:[{x:e,y:t-s/2},{x:e,y:t+s/2},{x:r,y:i+s/2},{x:r,y:i-s/2}]}f(vi,"lineToPolygon");async function Ym(e,t,r,i,s=r.class.padding??12){const o=i?0:3,a=e.insert("g").attr("class",Ct(t)).attr("id",t.domId||t.id);let n=null,l=null,c=null,h=null,u=0,d=0,p=0;if(n=a.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const k=t.annotations[0];await Ls(n,{text:`«${k}»`},0),u=n.node().getBBox().height}l=a.insert("g").attr("class","label-group text"),await Ls(l,t,0,["font-weight: bolder"]);const y=l.node().getBBox();d=y.height,c=a.insert("g").attr("class","members-group text");let m=0;for(const k of t.members){const T=await Ls(c,k,m,[k.parseClassifier()]);m+=T+o}p=c.node().getBBox().height,p<=0&&(p=s/2),h=a.insert("g").attr("class","methods-group text");let x=0;for(const k of t.methods){const T=await Ls(h,k,x,[k.parseClassifier()]);x+=T+o}let C=a.node().getBBox();if(n!==null){const k=n.node().getBBox();n.attr("transform",`translate(${-k.width/2})`)}return l.attr("transform",`translate(${-y.width/2}, ${u})`),C=a.node().getBBox(),c.attr("transform",`translate(0, ${u+d+s*2})`),C=a.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(p?p+s*4:s*2)})`),C=a.node().getBBox(),{shapeSvg:a,bbox:C}}f(Ym,"textHelper");async function Ls(e,t,r,i=[]){const s=e.insert("g").attr("class","label").attr("style",i.join("; ")),o=Zt();let a="useHtmlLabels"in t?t.useHtmlLabels:fr(o.htmlLabels)??!0,n="";"text"in t?n=t.text:n=t.label,!a&&n.startsWith("\\")&&(n=n.substring(1)),qs(n)&&(a=!0);const l=await Qe(s,Nl(Hr(n)),{width:Br(n,o)+50,classes:"markdown-node-label",useHtmlLabels:a},o);let c,h=1;if(a){const u=l.children[0],d=Et(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1),await bh(u),c=u.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{i.includes("font-weight: bolder")&&Et(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(u.textContent=n[0]+n.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),n[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return s.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),c.height}f(Ls,"addText");async function jm(e,t){const r=Dt(),{themeVariables:i}=r,{useGradient:s}=i,o=r.class.padding??12,a=o,n=t.useHtmlLabels??fr(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:c,bbox:h}=await Ym(e,t,r,n,a),{labelStyles:u,nodeStyles:d}=pt(t);t.labelStyle=u,t.cssStyles=l.styles||"";const p=l.styles?.join(";")||d||"";t.cssStyles||(t.cssStyles=p.replaceAll("!important","").split(";"));const y=l.members.length===0&&l.methods.length===0&&!r.class?.hideEmptyMembersBox,m=ct.svg(c),x=ht(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=Math.max(t.width??0,h.width);let k=Math.max(t.height??0,h.height);const T=(t.height??0)>h.height;l.members.length===0&&l.methods.length===0?k+=a:l.members.length>0&&l.methods.length===0&&(k+=a*2);const S=-C/2,v=-k/2;let L=y?o*2:l.members.length===0&&l.methods.length===0?-o:0;T&&(L=o*2);const A=m.rectangle(S-o,v-o-(y?o:l.members.length===0&&l.methods.length===0?-o/2:0),C+2*o,k+2*o+L,x),F=c.insert(()=>A,":first-child");F.attr("class","basic label-container outer-path");const G=F.node().getBBox(),Y=c.select(".annotation-group").node().getBBox().height-(y?o/2:0)||0,N=c.select(".label-group").node().getBBox().height-(y?o/2:0)||0,st=c.select(".members-group").node().getBBox().height-(y?o/2:0)||0,j=(Y+N+v+o-(v-o-(y?o:l.members.length===0&&l.methods.length===0?-o/2:0)))/2;if(c.selectAll(".text").each(($,D,B)=>{const q=Et(B[D]),I=q.attr("transform");let it=0;if(I){const Tt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(I);Tt&&(it=parseFloat(Tt[2]))}let J=it+v+o-(y?o:l.members.length===0&&l.methods.length===0?-o/2:0);if(q.attr("class").includes("methods-group")){const _t=Math.max(st,a/2);T?J=Math.max(j,Y+N+_t+v+a*2+o)+a*2:J=Y+N+_t+v+a*4+o}l.members.length===0&&l.methods.length===0&&r.class?.hideEmptyMembersBox&&(l.annotations.length>0?J=it-a:J=it),n||(J-=4);let mt=S;(q.attr("class").includes("label-group")||q.attr("class").includes("annotation-group"))&&(mt=-q.node()?.getBBox().width/2||0,c.selectAll("text").each(function(_t,Tt,ft){window.getComputedStyle(ft[Tt]).textAnchor==="middle"&&(mt=0)})),q.attr("transform",`translate(${mt}, ${J})`)}),l.members.length>0||l.methods.length>0||y){const $=Y+N+v+o,D=m.line(G.x,$,G.x+G.width,$+.001,x);c.insert(()=>D).attr("class",`divider${t.look==="neo"&&!s?" neo-line":""}`).attr("style",p)}if(y||l.members.length>0||l.methods.length>0){const $=Y+N+st+v+a*2+o,D=m.line(G.x,T?Math.max(j,$):$,G.x+G.width,(T?Math.max(j,$):$)+.001,x);c.insert(()=>D).attr("class",`divider${t.look==="neo"&&!s?" neo-line":""}`).attr("style",p)}if(l.look!=="handDrawn"&&c.selectAll("path").attr("style",p),F.select(":nth-child(2)").attr("style",p),c.selectAll(".divider").select("path").attr("style",p),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",p),!n){const $=RegExp(/color\s*:\s*([^;]*)/),D=$.exec(p);if(D){const B=D[0].replace("color","fill");c.selectAll("tspan").attr("style",B)}else if(u){const B=$.exec(u);if(B){const q=B[0].replace("color","fill");c.selectAll("tspan").attr("style",q)}}}return dt(t,F),t.intersect=function($){return at.rect(t,$)},c}f(jm,"classBox");async function Um(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const s=t,o=t,a=20,n=20,l="verifyMethod"in t,c=Ct(t),h=Dt(),{themeVariables:u}=h,{borderColorArray:d,requirementEdgeLabelBackground:p}=u,y=h.layout==="elk"?"start":"center",m=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let x;l?x=await sr(m,`&lt;&lt;${s.type}&gt;&gt;`,0,t.labelStyle):x=await sr(m,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let C=x;const k=await sr(m,s.name,C,t.labelStyle+"; font-weight: bold;");if(C+=k+n,l){const N=await sr(m,`${s.requirementId?`ID: ${s.requirementId}`:""}`,C,t.labelStyle,y);C+=N;const st=await sr(m,`${s.text?`Text: ${s.text}`:""}`,C,t.labelStyle,y);C+=st;const j=await sr(m,`${s.risk?`Risk: ${s.risk}`:""}`,C,t.labelStyle,y);C+=j,await sr(m,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,C,t.labelStyle,y)}else{const N=await sr(m,`${o.type?`Type: ${o.type}`:""}`,C,t.labelStyle,y);C+=N,await sr(m,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,C,t.labelStyle,y)}const T=(m.node()?.getBBox().width??200)+a,S=(m.node()?.getBBox().height??200)+a,v=-T/2,L=-S/2,A=ct.svg(m),F=ht(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const G=A.rectangle(v,L,T,S,F),Y=m.insert(()=>G,":first-child");if(Y.attr("class","basic label-container outer-path").attr("style",i),d?.length){const N=t.colorIndex??0;m.attr("data-color-id",`color-${N%d.length}`)}if(m.selectAll(".label").each((N,st,j)=>{const $=Et(j[st]),D=$.attr("transform");let B=0,q=0;if(D){const mt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(D);mt&&(B=parseFloat(mt[1]),q=parseFloat(mt[2]))}const I=q-S/2;let it=v+a/2;(st===0||st===1)&&(it=B),$.attr("transform",`translate(${it}, ${I+a})`)}),C>x+k+n){const N=L+x+k+n;let st;if(t.look==="neo"){const D=[[v,N],[v+T,N],[v+T,N+.001],[v,N+.001]];st=A.polygon(D,F)}else st=A.line(v,N,v+T,N,F);m.insert(()=>st).attr("class","divider")}return dt(t,Y),t.intersect=function(N){return at.rect(t,N)},i&&t.look!=="handDrawn"&&(p||d?.length)&&m.selectAll("path").attr("style",i),m}f(Um,"requirementBox");async function sr(e,t,r,i="",s="center"){if(t==="")return 0;const o=e.insert("g").attr("class","label").attr("style",i),a=Dt(),n=a.htmlLabels??!0,l=await Qe(o,Nl(Hr(t)),{width:Br(t,a)+50,classes:"markdown-node-label",useHtmlLabels:n,style:i},a);let c;if(n){const h=l.children[0],u=Et(l);s==="start"&&Et(h).style("text-align","left"),c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}else{const h=l.children[0];for(const u of h.children)i&&u.setAttribute("style",i);if(s==="start"){h.setAttribute("text-anchor","start");for(const u of h.children)u.setAttribute("text-anchor","start")}c=l.getBBox(),c.height+=6}return o.attr("transform",`translate(${-c.width/2},${-c.height/2+r})`),c.height}f(sr,"addText");var J_=f(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function Gm(e,t,{config:r}){const{labelStyles:i,nodeStyles:s}=pt(t);t.labelStyle=i||"";const o=10,a=t.width;t.width=(t.width??200)-10;const{shapeSvg:n,bbox:l,label:c}=await xt(e,t,Ct(t)),h=t.padding||10;let u="",d;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(u=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),d=n.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let y,m;d?{label:y,bbox:m}=await hn(d,"ticket"in t&&t.ticket||"",p):{label:y,bbox:m}=await hn(n,"ticket"in t&&t.ticket||"",p);const{label:x,bbox:C}=await hn(n,"assigned"in t&&t.assigned||"",p);t.width=a;const k=10,T=t?.width||0,S=Math.max(m.height,C.height)/2,v=Math.max(l.height+k*2,t?.height||0)+S,L=-T/2,A=-v/2;c.attr("transform","translate("+(h-T/2)+", "+(-S-l.height/2)+")"),y.attr("transform","translate("+(h-T/2)+", "+(-S+l.height/2)+")"),x.attr("transform","translate("+(h+T/2-C.width-2*o)+", "+(-S+l.height/2)+")");let F;const{rx:G,ry:Y}=t,{cssStyles:N}=t;if(t.look==="handDrawn"){const st=ct.svg(n),j=ht(t,{}),$=G||Y?st.path(We(L,A,T,v,G||0),j):st.rectangle(L,A,T,v,j);F=n.insert(()=>$,":first-child"),F.attr("class","basic label-container").attr("style",N||null)}else{F=n.insert("rect",":first-child"),F.attr("class","basic label-container __APA__").attr("style",s).attr("rx",G??5).attr("ry",Y??5).attr("x",L).attr("y",A).attr("width",T).attr("height",v);const st="priority"in t&&t.priority;if(st){const j=n.append("line"),$=L+2,D=A+Math.floor((G??0)/2),B=A+v-Math.floor((G??0)/2);j.attr("x1",$).attr("y1",D).attr("x2",$).attr("y2",B).attr("stroke-width","4").attr("stroke",J_(st))}}return dt(t,F),t.height=v,t.intersect=function(st){return at.rect(t,st)},n}f(Gm,"kanbanItem");async function Xm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await xt(e,t,Ct(t)),l=o.width+10*a,c=o.height+8*a,h=.15*l,{cssStyles:u}=t,d=o.width+20,p=o.height+20,y=Math.max(l,d),m=Math.max(c,p);n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let x;const C=`M0 0
210
+ a${h},${h} 1 0,0 ${y*.25},${-1*m*.1}
211
+ a${h},${h} 1 0,0 ${y*.25},0
212
+ a${h},${h} 1 0,0 ${y*.25},0
213
+ a${h},${h} 1 0,0 ${y*.25},${m*.1}
214
+
215
+ a${h},${h} 1 0,0 ${y*.15},${m*.33}
216
+ a${h*.8},${h*.8} 1 0,0 0,${m*.34}
217
+ a${h},${h} 1 0,0 ${-1*y*.15},${m*.33}
218
+
219
+ a${h},${h} 1 0,0 ${-1*y*.25},${m*.15}
220
+ a${h},${h} 1 0,0 ${-1*y*.25},0
221
+ a${h},${h} 1 0,0 ${-1*y*.25},0
222
+ a${h},${h} 1 0,0 ${-1*y*.25},${-1*m*.15}
223
+
224
+ a${h},${h} 1 0,0 ${-1*y*.1},${-1*m*.33}
225
+ a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34}
226
+ a${h},${h} 1 0,0 ${y*.1},${-1*m*.33}
227
+ H0 V0 Z`;if(t.look==="handDrawn"){const k=ct.svg(s),T=ht(t,{}),S=k.path(C,T);x=s.insert(()=>S,":first-child"),x.attr("class","basic label-container").attr("style",re(u))}else x=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return x.attr("transform",`translate(${-y/2}, ${-m/2})`),dt(t,x),t.calcIntersect=function(k,T){return at.rect(k,T)},t.intersect=function(k){return R.info("Bang intersect",t,k),at.rect(t,k)},s}f(Xm,"bang");async function Vm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await xt(e,t,Ct(t)),l=o.width+2*a,c=o.height+2*a,h=.15*l,u=.25*l,d=.35*l,p=.2*l,{cssStyles:y}=t;let m;const x=`M0 0
228
+ a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
229
+ a${d},${d} 1 0,1 ${l*.4},${-1*l*.1}
230
+ a${u},${u} 1 0,1 ${l*.35},${l*.2}
231
+
232
+ a${h},${h} 1 0,1 ${l*.15},${c*.35}
233
+ a${p},${p} 1 0,1 ${-1*l*.15},${c*.65}
234
+
235
+ a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
236
+ a${d},${d} 1 0,1 ${-1*l*.5},0
237
+ a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
238
+
239
+ a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
240
+ a${p},${p} 1 0,1 ${l*.1},${-1*c*.65}
241
+ H0 V0 Z`;if(t.look==="handDrawn"){const C=ct.svg(s),k=ht(t,{}),T=C.path(x,k);m=s.insert(()=>T,":first-child"),m.attr("class","basic label-container").attr("style",re(y))}else m=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),m.attr("transform",`translate(${-l/2}, ${-c/2})`),dt(t,m),t.calcIntersect=function(C,k){return at.rect(C,k)},t.intersect=function(C){return R.info("Cloud intersect",t,C),at.rect(t,C)},s}f(Vm,"cloud");async function Zm(e,t){const{labelStyles:r,nodeStyles:i}=pt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await xt(e,t,Ct(t)),l=o.width+8*a,c=o.height+2*a,h=5,u=t.look==="neo"?`
242
+ M${-l/2} ${c/2-h}
243
+ v${-c+2*h}
244
+ q0,-${h} ${h},-${h}
245
+ h${l-2*h}
246
+ q${h},0 ${h},${h}
247
+ v${c-h}
248
+ H${-l/2}
249
+ Z
250
+ `:`
251
+ M${-l/2} ${c/2-h}
252
+ v${-c+2*h}
253
+ q0,-${h} ${h},-${h}
254
+ h${l-2*h}
255
+ q${h},0 ${h},${h}
256
+ v${c-2*h}
257
+ q0,${h} ${-h},${h}
258
+ h${-(l-2*h)}
259
+ q${-h},0 ${-h},${-h}
260
+ Z
261
+ `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const d=s.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return s.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),s.append(()=>n.node()),dt(t,d),t.calcIntersect=function(p,y){return at.rect(p,y)},t.intersect=function(p){return at.rect(t,p)},s}f(Zm,"defaultMindmapNode");async function Km(e,t){const r={padding:t.padding??0};return Th(e,t,r)}f(Km,"mindmapCircle");var tS=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Lm},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Sm},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Fm},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:$m},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Zg},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Kg},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:rm},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:Dg},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Wg},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:Rg},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:Vg},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Th},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Xm},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Vm},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:wm},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:om},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:gm},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:pm},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Rm},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:dm},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Jg},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Im},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Ng},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:vm},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Mm},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Em},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:im},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:am},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:jg},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Ug},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Gg},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:mm},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:zm},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:sm},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Pm},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:ym},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Xg},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Qg},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:qm},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Hm},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:tm},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Nm},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:em},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Bm},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:bm},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Cm},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Og},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Yg},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Dm},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Om},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Wm},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Tm},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:xm}],eS=f(()=>{const t=[...Object.entries({state:Am,choice:qg,note:km,composite:zg,rectWithTitle:_m,labelRect:fm,block_arrow:Pg,collapsedGroup:Ig,iconSquare:cm,iconCircle:lm,icon:nm,iconRounded:hm,imageSquare:um,anchor:Mg,kanbanItem:Gm,mindmapCircle:Km,defaultMindmapNode:Zm,classBox:jm,erBox:_h,requirementBox:Um}),...tS.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(s=>[s,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Qm=eS();function rS(e){return e in Qm}f(rS,"isValidShape");var _a=f(({flowchart:e})=>{const t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),Sa=new Map;async function Sh(e,t,r){let i,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?Qm[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let a;r.config.securityLevel==="sandbox"?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a??null),s=await o(i,t,r)}else s=await o(e,t,r),i=s;return i.attr("data-look",re(t.look)),t.tooltip&&s.attr("title",t.tooltip),Sa.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}f(Sh,"insertNode");var t3=f((e,t)=>{Sa.set(t.id,e)},"setNodeElem"),iS=f(()=>{Sa.clear()},"clear"),Vu=f(e=>{const t=Sa.get(e.id);R.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),sS=f(async(e,t)=>{const r=Dt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,n=a,{labelStyles:l,nodeStyles:c,borderStyles:h,backgroundStyles:u}=pt(t),d=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),p=fr(r.flowchart.htmlLabels),y=t.direction==="LR",m=d.insert("g").attr("class","cluster-label swimlane-label"),x=await Qe(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width});let C=x.getBBox();if(p){const j=x.children[0],$=Et(x);C=j.getBoundingClientRect(),$.attr("width",C.width),$.attr("height",C.height)}const k=t.padding??0,T=t.width<=C.width+k?C.width+k:t.width;t.width<=C.width+k?t.diff=(T-t.width)/2-k:t.diff=-k;const S=t.height,v=t.y-S/2,L=t.y+S/2,A=t.x-T/2,F=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:v+S/3,G=y?4:0,Y=C.height+2*G;let N,st;if(y){const j=Math.max(Y,C.height+2*G),$=A+j,D=Math.max(0,T-j);if(t.look==="handDrawn"){const I=ct.svg(d),it=ht(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:s}),J=ht(t,{roughness:.7,fill:"none",stroke:n,seed:s}),mt=I.rectangle(A,v,j,S,it);N=d.insert(()=>mt,":first-child");const _t=I.rectangle($,v,D,S,J);st=d.insert(()=>_t,":first-child"),N.select("path:nth-child(2)").attr("style",h.join(";")),N.select("path").attr("style",u.join(";").replace("fill","stroke"))}else N=d.insert("rect",":first-child"),st=d.insert("rect",":first-child"),N.attr("class","swimlane-title").attr("style",c).attr("x",A).attr("y",v).attr("width",j).attr("height",S).attr("fill",o).attr("stroke",n),st.attr("class","swimlane-body").attr("style",c).attr("x",$).attr("y",v).attr("width",D).attr("height",S).attr("fill","none").attr("stroke",n);const B=A+j/2,q=t.y;m.attr("transform",`translate(${B}, ${q}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{const j=Math.max(0,F-v),$=Math.min(Y,j),D=v+$,B=Math.max(0,L-D),q=t.x-T/2;if(t.look==="handDrawn"){const J=ct.svg(d),mt=ht(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:s}),_t=ht(t,{roughness:.7,fill:"none",stroke:n,seed:s}),Tt=J.rectangle(q,v,T,$,mt);N=d.insert(()=>Tt,":first-child");const ft=J.rectangle(q,D,T,B,_t);st=d.insert(()=>ft,":first-child"),N.select("path:nth-child(2)").attr("style",h.join(";")),N.select("path").attr("style",u.join(";").replace("fill","stroke"))}else N=d.insert("rect",":first-child"),st=d.insert("rect",":first-child"),N.attr("class","swimlane-title").attr("style",c).attr("x",q).attr("y",v).attr("width",T).attr("height",$).attr("fill",o).attr("stroke",n),st.attr("class","swimlane-body").attr("style",c).attr("x",q).attr("y",D).attr("width",T).attr("height",B).attr("fill","none").attr("stroke",n);const I=t.x-C.width/2,it=v+($-C.height)/2;m.attr("transform",`translate(${I}, ${it})`)}if(R.trace("Swimlane data ",t,JSON.stringify(t)),l){const j=m.select("span");j&&j.attr("style",l)}return t.offsetX=0,t.width=T,t.height=S,t.offsetY=C.height-k/2,t.intersect=function(j){return pi(t,j)},{cluster:d,labelBBox:C}},"swimlane"),Jm=f(async(e,t)=>{R.info("Creating subgraph rect for ",t.id,t);const r=Dt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,{labelStyles:n,nodeStyles:l,borderStyles:c,backgroundStyles:h}=pt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=xe(r),p=u.insert("g").attr("class","cluster-label ");let y;t.labelType==="markdown"?y=await Qe(p,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width}):y=await Nr(p,t.label,t.labelStyle||"",!1,!0);let m=y.getBBox();if(xe(r)){const A=y.children[0],F=Et(y);m=A.getBoundingClientRect(),F.attr("width",m.width),F.attr("height",m.height)}const x=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height,k=t.x-x/2,T=t.y-C/2;R.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const A=ct.svg(u),F=ht(t,{roughness:.7,fill:o,stroke:a,fillWeight:3,seed:s}),G=A.path(We(k,T,x,C,0),F);S=u.insert(()=>(R.debug("Rough node insert CXC",G),G),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",h.join(";").replace("fill","stroke"))}else S=u.insert("rect",":first-child"),S.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",T).attr("width",x).attr("height",C);const{subGraphTitleTopMargin:v}=_a(r);if(p.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+v})`),n){const A=p.select("span");A&&A.attr("style",n)}const L=S.node().getBBox();return t.offsetX=0,t.width=L.width,t.height=L.height,t.offsetY=m.height-t.padding/2,t.intersect=function(A){return pi(t,A)},{cluster:u,labelBBox:m}},"rect"),oS=f((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(n){return pi(t,n)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),aS=f(async(e,t)=>{const r=Dt(),{themeVariables:i,handDrawnSeed:s}=r,{altBackground:o,compositeBackground:a,compositeTitleBackground:n,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),h=c.insert("g",":first-child"),u=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const p=await Nr(u,t.label,t.labelStyle,void 0,!0);let y=p.getBBox();if(xe(r)){const G=p.children[0],Y=Et(p);y=G.getBoundingClientRect(),Y.attr("width",y.width),Y.attr("height",y.height)}const m=0*t.padding,x=m/2,C=(t.width<=y.width+t.padding?y.width+t.padding:t.width)+m;t.width<=y.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height+m,T=t.height+m-y.height-6,S=t.x-C/2,v=t.y-k/2;t.width=C;const L=t.y-t.height/2-x+y.height+2;let A;if(t.look==="handDrawn"){const G=t.cssClasses.includes("statediagram-cluster-alt"),Y=ct.svg(c),N=t.rx||t.ry?Y.path(We(S,v,C,k,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:l,seed:s}):Y.rectangle(S,v,C,k,{seed:s});A=c.insert(()=>N,":first-child");const st=Y.rectangle(S,L,C,T,{fill:G?o:a,fillStyle:G?"hachure":"solid",stroke:l,seed:s});A=c.insert(()=>N,":first-child"),d=c.insert(()=>st)}else A=h.insert("rect",":first-child"),A.attr("class","outer").attr("x",S).attr("y",v).attr("width",C).attr("height",k).attr("data-look",t.look),d.attr("class","inner").attr("x",S).attr("y",L).attr("width",C).attr("height",T);u.attr("transform",`translate(${t.x-y.width/2}, ${v+1-(xe(r)?0:3)})`);const F=A.node().getBBox();return t.height=F.height,t.offsetX=0,t.offsetY=y.height-t.padding/2,t.labelBBox=y,t.intersect=function(G){return pi(t,G)},{cluster:c,labelBBox:y}},"roundedWithTitle"),nS=f(async(e,t)=>{R.info("Creating subgraph rect for ",t.id,t);const r=Dt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,{labelStyles:n,nodeStyles:l,borderStyles:c,backgroundStyles:h}=pt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=xe(r),p=u.insert("g").attr("class","cluster-label "),y=await Qe(p,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let m=y.getBBox();if(xe(r)){const A=y.children[0],F=Et(y);m=A.getBoundingClientRect(),F.attr("width",m.width),F.attr("height",m.height)}const x=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height,k=t.x-x/2,T=t.y-C/2;R.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const A=ct.svg(u),F=ht(t,{roughness:.7,fill:o,stroke:a,fillWeight:4,seed:s}),G=A.path(We(k,T,x,C,t.rx),F);S=u.insert(()=>(R.debug("Rough node insert CXC",G),G),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",h.join(";").replace("fill","stroke"))}else S=u.insert("rect",":first-child"),S.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",T).attr("width",x).attr("height",C);const{subGraphTitleTopMargin:v}=_a(r);if(p.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+v})`),n){const A=p.select("span");A&&A.attr("style",n)}const L=S.node().getBBox();return t.offsetX=0,t.width=L.width,t.height=L.height,t.offsetY=m.height-t.padding/2,t.intersect=function(A){return pi(t,A)},{cluster:u,labelBBox:m}},"kanbanSection"),lS=f((e,t)=>{const r=Dt(),{themeVariables:i,handDrawnSeed:s}=r,{nodeBorder:o}=i,a=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),n=a.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const h=t.height+l,u=t.x-c/2,d=t.y-h/2;t.width=c;let p;if(t.look==="handDrawn"){const x=ct.svg(a).rectangle(u,d,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:s});p=a.insert(()=>x,":first-child")}else{p=n.insert("rect",":first-child");let m="outer";t.look,m="divider",p.attr("class",m).attr("x",u).attr("y",d).attr("width",c).attr("height",h).attr("data-look",t.look)}const y=p.node().getBBox();return t.height=y.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return pi(t,m)},{cluster:a,labelBBox:{}}},"divider"),hS=Jm,cS={rect:Jm,squareRect:hS,roundedWithTitle:aS,noteGroup:oS,divider:lS,kanbanSection:nS,swimlane:sS},ty=new Map,ey=f(async(e,t)=>{const r=t.shape||"rect",i=await cS[r](e,t);return ty.set(t.id,i),i},"insertCluster"),uS=f(()=>{ty=new Map},"clear"),Cs=f((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),me={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Zu={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Fs(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Vt(e),t=Vt(t);const[r,i]=[e.x,e.y],[s,o]=[t.x,t.y],a=s-r,n=o-i;return{angle:Math.atan(n/a),deltaX:a,deltaY:n}}f(Fs,"calculateDeltaAndAngle");var Vt=f(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),dS=f(e=>({x:f(function(t,r,i){let s=0;const o=Vt(i[0]).x<Vt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(me,e.arrowTypeStart)){const{angle:p,deltaX:y}=Fs(i[0],i[1]);s=me[e.arrowTypeStart]*Math.cos(p)*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(me,e.arrowTypeEnd)){const{angle:p,deltaX:y}=Fs(i[i.length-1],i[i.length-2]);s=me[e.arrowTypeEnd]*Math.cos(p)*(y>=0?1:-1)}const a=Math.abs(Vt(t).x-Vt(i[i.length-1]).x),n=Math.abs(Vt(t).y-Vt(i[i.length-1]).y),l=Math.abs(Vt(t).x-Vt(i[0]).x),c=Math.abs(Vt(t).y-Vt(i[0]).y),h=me[e.arrowTypeStart],u=me[e.arrowTypeEnd],d=1;if(a<u&&a>0&&n<u){let p=u+d-a;p*=o==="right"?-1:1,s-=p}if(l<h&&l>0&&c<h){let p=h+d-l;p*=o==="right"?-1:1,s+=p}return Vt(t).x+s},"x"),y:f(function(t,r,i){let s=0;const o=Vt(i[0]).y<Vt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(me,e.arrowTypeStart)){const{angle:p,deltaY:y}=Fs(i[0],i[1]);s=me[e.arrowTypeStart]*Math.abs(Math.sin(p))*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(me,e.arrowTypeEnd)){const{angle:p,deltaY:y}=Fs(i[i.length-1],i[i.length-2]);s=me[e.arrowTypeEnd]*Math.abs(Math.sin(p))*(y>=0?1:-1)}const a=Math.abs(Vt(t).y-Vt(i[i.length-1]).y),n=Math.abs(Vt(t).x-Vt(i[i.length-1]).x),l=Math.abs(Vt(t).y-Vt(i[0]).y),c=Math.abs(Vt(t).x-Vt(i[0]).x),h=me[e.arrowTypeStart],u=me[e.arrowTypeEnd],d=1;if(a<u&&a>0&&n<u){let p=u+d-a;p*=o==="up"?-1:1,s-=p}if(l<h&&l>0&&c<h){let p=h+d-l;p*=o==="up"?-1:1,s+=p}return Vt(t).y+s},"y")}),"getLineFunctionsWithOffset"),fS=f((e,t,r,i,s,o=!1,a)=>{t.arrowTypeStart&&Ku(e,"start",t.arrowTypeStart,r,i,s,o,a),t.arrowTypeEnd&&Ku(e,"end",t.arrowTypeEnd,r,i,s,o,a)},"addEdgeMarkers"),pS={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},gS=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Ku=f((e,t,r,i,s,o,a=!1,n)=>{if(!r||r==="none")return;const l=pS[r],c=l&&gS.includes(l.type);if(!l){R.warn(`Unknown arrow type: ${r}`);return}const h=l.type,p=`${s}_${o}-${h}${t==="start"?"Start":"End"}${a&&c?"-margin":""}`;if(n&&n.trim()!==""){const y=n.replace(/[^\dA-Za-z]/g,"_"),m=`${p}_${y}`;if(!document.getElementById(m)){const x=document.getElementById(p);if(x){const C=x.cloneNode(!0);C.id=m,C.querySelectorAll("path, circle, line").forEach(T=>{T.setAttribute("stroke",n),l.fill&&T.setAttribute("fill",n)}),x.parentNode?.appendChild(C)}}e.attr(`marker-${t}`,`url(${i}#${m})`)}else e.attr(`marker-${t}`,`url(${i}#${p})`)},"addEdgeMarker"),mS=f(e=>typeof e=="string"?e:Dt()?.flowchart?.curve,"resolveEdgeCurveType"),Ji=new Map,te=new Map,yS=f(()=>{Ji.clear(),te.clear()},"clear"),ry=f(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),bs=f(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),vh=f(async(e,t)=>{const r=Dt();let i=xe(r);const{labelStyles:s}=pt(t);t.labelStyle=s;const o=e.insert("g").attr("class","edgeLabel"),a=o.insert("g").attr("class","label").attr("data-id",t.id),n=t.labelType==="markdown",c=await Qe(e,t.label,{style:bs(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:n,width:n?void 0:void 0},r);a.node().appendChild(c),R.info("abc82",t,t.labelType);let h,u;if(i){const p=c.children[0],y=Et(c);h=await hi.measure(()=>p.getBoundingClientRect()),u=h,y.attr("width",h.width),y.attr("height",h.height)}else{const p=Et(c).select("text").node();await hi.measure(()=>{h=c.getBBox(),p&&typeof p.getBBox=="function"?u=p.getBBox():u=h})}a.attr("transform",Cs(u,i)),Ji.set(t.id,o),t.width=h.width,t.height=h.height;let d;if(t.startLabelLeft){const p=e.insert("g").attr("class","edgeTerminals"),y=p.insert("g").attr("class","inner"),m=await Nr(y,t.startLabelLeft,bs(t.labelStyle)||"",!1,!1);d=m;let x=m.getBBox();if(i){const C=m.children[0],k=Et(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",Cs(x,i)),te.get(t.id)||te.set(t.id,{}),te.get(t.id).startLeft=p,As(d,t.startLabelLeft)}if(t.startLabelRight){const p=e.insert("g").attr("class","edgeTerminals"),y=p.insert("g").attr("class","inner"),m=await Nr(y,t.startLabelRight,bs(t.labelStyle)||"",!1,!1);d=m;let x=m.getBBox();if(i){const C=m.children[0],k=Et(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",Cs(x,i)),te.get(t.id)||te.set(t.id,{}),te.get(t.id).startRight=p,As(d,t.startLabelRight)}if(t.endLabelLeft){const p=e.insert("g").attr("class","edgeTerminals"),y=p.insert("g").attr("class","inner"),m=await Nr(p,t.endLabelLeft,bs(t.labelStyle)||"",!1,!1);d=m;let x=m.getBBox();if(i){const C=m.children[0],k=Et(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",Cs(x,i)),te.get(t.id)||te.set(t.id,{}),te.get(t.id).endLeft=p,As(d,t.endLabelLeft)}if(t.endLabelRight){const p=e.insert("g").attr("class","edgeTerminals"),y=p.insert("g").attr("class","inner"),m=await Nr(p,t.endLabelRight,bs(t.labelStyle)||"",!1,!1);d=m;let x=m.getBBox();if(i){const C=m.children[0],k=Et(m);x=C.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}y.attr("transform",Cs(x,i)),te.get(t.id)||te.set(t.id,{}),te.get(t.id).endRight=p,As(d,t.endLabelRight)}return c},"insertEdgeLabel");function As(e,t){xe(Dt())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}f(As,"setTerminalWidth");var xS=f((e,t)=>{R.debug("Moving label abc88 ",e.id,e.label,Ji.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Dt(),{subGraphTitleTotalMargin:s}=_a(i);if(e.label){const o=Ji.get(e.id);let a=e.x,n=e.y;if(r){const l=ye.calcLabelPosition(r);R.debug("Moving label "+e.label+" from (",a,",",n,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(a=l.x,n=l.y)}o.attr("transform",`translate(${a}, ${n+s/2})`)}if(e.startLabelLeft){const o=te.get(e.id).startLeft;let a=e.x,n=e.y;if(r){const l=ye.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.startLabelRight){const o=te.get(e.id).startRight;let a=e.x,n=e.y;if(r){const l=ye.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelLeft){const o=te.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const l=ye.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelRight){const o=te.get(e.id).endRight;let a=e.x,n=e.y;if(r){const l=ye.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}},"positionEdgeLabel"),CS=f((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;const[r,i]=t,s=Math.abs(i.x-r.x),o=Math.abs(i.y-r.y);return s<.001||o<.001?t:o>=s?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),bS=f((e,t)=>{const r=e.x,i=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-i),a=e.width/2,n=e.height/2;return s>=a||o>=n},"outsideNode"),kS=f((e,t,r)=>{R.debug(`intersection calc abc89:
262
+ outsidePoint: ${JSON.stringify(t)}
263
+ insidePoint : ${JSON.stringify(r)}
264
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,s=e.y,o=Math.abs(i-r.x),a=e.width/2;let n=r.x<t.x?a-o:a+o;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(s-t.y)*a>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-s:s-l-t.y;n=h*u/c;const d={x:r.x<t.x?r.x+n:r.x-h+n,y:r.y<t.y?r.y+c-u:r.y-c+u};return n===0&&(d.x=t.x,d.y=t.y),h===0&&(d.x=t.x),c===0&&(d.y=t.y),R.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${n}`,d),d}else{r.x<t.x?n=t.x-a-i:n=i-a-t.x;let u=c*n/h,d=r.x<t.x?r.x+h-n:r.x-h+n,p=r.y<t.y?r.y+u:r.y-u;return R.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${n}`,{_x:d,_y:p}),n===0&&(d=t.x,p=t.y),h===0&&(d=t.x),c===0&&(p=t.y),{x:d,y:p}}},"intersection"),Qu=f((e,t)=>{R.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],s=!1;return e.forEach(o=>{if(R.info("abc88 checking point",o,t),!bS(t,o)&&!s){const a=kS(t,i,o);R.debug("abc88 inside",o,i,a),R.debug("abc88 intersection",a,t);let n=!1;r.forEach(l=>{n=n||l.x===a.x&&l.y===a.y}),r.some(l=>l.x===a.x&&l.y===a.y)?R.warn("abc88 no intersect",a,r):r.push(a),s=!0}else R.warn("abc88 outside",o,i),i=o,s||r.push(o)}),R.debug("returning points",r),r},"cutPathAtIntersect");function iy(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const s=e[i-1],o=e[i],a=e[i+1];(s.x===o.x&&o.y===a.y&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-s.y)>5||s.y===o.y&&o.x===a.x&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-a.y)>5)&&(t.push(o),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}f(iy,"extractCornerPoints");var Ju=f(function(e,t,r){const i=t.x-e.x,s=t.y-e.y,o=Math.sqrt(i*i+s*s),a=r/o;return{x:t.x-a*i,y:t.y-a*s}},"findAdjacentPoint"),wS=f(function(e){const{cornerPointPositions:t}=iy(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const s=e[i-1],o=e[i+1],a=e[i],n=Ju(s,a,5),l=Ju(o,a,5),c=l.x-n.x,h=l.y-n.y;r.push(n);const u=Math.sqrt(2)*2;let d={x:a.x,y:a.y};if(Math.abs(o.x-s.x)>10&&Math.abs(o.y-s.y)>=10){R.debug("Corner point fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));const p=5;a.x===n.x?d={x:c<0?n.x-p+u:n.x+p-u,y:h<0?n.y-u:n.y+u}:d={x:c<0?n.x-u:n.x+u,y:h<0?n.y-p+u:n.y+p-u}}else R.debug("Corner point skipping fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));r.push(d,l)}else r.push(e[i]);return r},"fixCorners"),TS=f((e,t,r)=>{const i=e-t-r,s=2,o=2,a=s+o,n=Math.floor(i/a),l=Number.isFinite(n)?Math.max(0,n):0,c=Array(l).fill(`${s} ${o}`).join(" ");return`0 ${t} ${c} ${r}`},"generateDashArray"),sy=f(function(e,t,r,i,s,o,a,n=!1){if(!a)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l,layout:c}=Dt();let h=t.points,u=!1;const d=s;var p=o;const y=[];for(const I in t.cssCompiledStyles)Bp(I)||y.push(t.cssCompiledStyles[I]);if(c==="swimlane"){if(p.intersect&&d.intersect&&Array.isArray(h)&&h.length>=2)if(h.length===2)h=[d.intersect(h[0]),p.intersect(h[1])];else{const I=h.slice(1,-1),it=I[0],J=I[I.length-1],mt=.5,_t=Math.abs(h[h.length-1].x-J.x)<mt&&Math.abs(h[h.length-1].y-J.y)<mt,Tt=d.intersect(it),ft=_t?J:p.intersect(J),Lt=Math.abs(ft.x-J.x)<mt&&Math.abs(ft.y-J.y)<mt,wt=Math.abs(Tt.x-it.x)<mt&&Math.abs(Tt.y-it.y)<mt?[]:[Tt],$t=Lt?[]:[ft];h=[...wt,...I,...$t]}h=CS(t,h)}else p.intersect&&d.intersect&&!n&&(h=h.slice(1,t.points.length-1),h.unshift(d.intersect(h[0])),h.push(p.intersect(h[h.length-1])));const m=btoa(JSON.stringify(h));t.toCluster&&(R.info("to cluster abc88",r.get(t.toCluster)),h=Qu(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(R.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=Qu(h.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let x=h.filter(I=>!Number.isNaN(I.y));const C=mS(t.curve);C!=="rounded"&&(x=wS(x));let k=Is;switch(C){case"linear":k=Is;break;case"basis":k=ol;break;case"cardinal":k=dp;break;case"bumpX":k=np;break;case"bumpY":k=lp;break;case"catmullRom":k=pp;break;case"monotoneX":k=bp;break;case"monotoneY":k=kp;break;case"natural":k=Tp;break;case"step":k=_p;break;case"stepAfter":k=vp;break;case"stepBefore":k=Sp;break;case"rounded":k=Is;break;default:k=ol}const{x:T,y:S}=dS(t),v=N2().x(T).y(S).curve(k);let L;switch(t.thickness){case"normal":L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-invisible";break;default:L="edge-thickness-normal"}switch(t.pattern){case"solid":L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed";break;default:L+=" edge-pattern-solid"}let A,F=C==="rounded"?oy(ay(x,t),5):v(x);const G=Array.isArray(t.style)?t.style:[t.style];let Y=G.find(I=>I?.startsWith("stroke:")),N="";t.animate&&(N="edge-animation-fast"),t.animation&&(N="edge-animation-"+t.animation);let st=!1;if(t.look==="handDrawn"){const I=ct.svg(e);Object.assign([],x);const it=I.path(F,{roughness:.3,seed:l});L+=" transition",A=Et(it).select("path").attr("id",`${a}-${t.id}`).attr("class"," "+L+(t.classes?" "+t.classes:"")+(N?" "+N:"")).attr("style",G?G.reduce((mt,_t)=>mt+";"+_t,""):"");let J=A.attr("d");A.attr("d",J),e.node().appendChild(A.node())}else{const I=y.join(";"),it=G?G.reduce((Lt,gt)=>Lt+gt+";",""):"",J=(I?I+";"+it+";":it)+";"+(G?G.reduce((Lt,gt)=>Lt+";"+gt,""):"");A=e.append("path").attr("d",F).attr("id",`${a}-${t.id}`).attr("class"," "+L+(t.classes?" "+t.classes:"")+(N?" "+N:"")).attr("style",J),Y=J.match(/stroke:([^;]+)/)?.[1],st=t.animate===!0||!!t.animation||I.includes("animation");const mt=A.node(),_t=typeof mt.getTotalLength=="function"?mt.getTotalLength():0,Tt=Zu[t.arrowTypeStart]||0,ft=Zu[t.arrowTypeEnd]||0;if(t.look==="neo"&&!st){const gt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?TS(_t,Tt,ft):`0 ${Tt} ${_t-Tt-ft} ${ft}`}; stroke-dashoffset: 0;`;A.attr("style",gt+A.attr("style"))}}A.attr("data-edge",!0),A.attr("data-et","edge"),A.attr("data-id",t.id),A.attr("data-points",m),A.attr("data-look",re(t.look)),t.showPoints&&x.forEach(I=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",I.x).attr("cy",I.y)});let j="";(Dt().flowchart.arrowMarkerAbsolute||Dt().state.arrowMarkerAbsolute)&&(j=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,j=j.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),R.info("arrowTypeStart",t.arrowTypeStart),R.info("arrowTypeEnd",t.arrowTypeEnd);const $=!st&&t?.look==="neo";fS(A,t,j,a,i,$,Y);const D=Math.floor(h.length/2),B=h[D];ye.isLabelCoordinateInPath(B,A.attr("d"))||(u=!0);let q={};return u&&(q.updatedPath=h),q.originalPath=t.points,q},"insertEdge");function oy(e,t){if(e.length<2)return"";let r="";const i=e.length,s=1e-5;for(let o=0;o<i;o++){const a=e[o],n=e[o-1],l=e[o+1];if(o===0)r+=`M${a.x},${a.y}`;else if(o===i-1)r+=`L${a.x},${a.y}`;else{const c=a.x-n.x,h=a.y-n.y,u=l.x-a.x,d=l.y-a.y,p=Math.hypot(c,h),y=Math.hypot(u,d);if(p<s||y<s){r+=`L${a.x},${a.y}`;continue}const m=c/p,x=h/p,C=u/y,k=d/y,T=m*C+x*k,S=Math.max(-1,Math.min(1,T)),v=Math.acos(S);if(v<s||Math.abs(Math.PI-v)<s){r+=`L${a.x},${a.y}`;continue}const L=Math.min(t/Math.sin(v/2),p/2,y/2),A=a.x-m*L,F=a.y-x*L,G=a.x+C*L,Y=a.y+k*L;r+=`L${A},${F}`,r+=`Q${a.x},${a.y} ${G},${Y}`}}return r}f(oy,"generateRoundedPath");function kl(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}f(kl,"calculateDeltaAndAngle");function ay(e,t){const r=e.map(s=>({...s}));if(e.length>=2&&me[t.arrowTypeStart]){const s=me[t.arrowTypeStart],o=e[0],a=e[1],{angle:n}=kl(o,a),l=s*Math.cos(n),c=s*Math.sin(n);r[0].x=o.x+l,r[0].y=o.y+c}const i=e.length;if(i>=2&&me[t.arrowTypeEnd]){const s=me[t.arrowTypeEnd],o=e[i-1],a=e[i-2],{angle:n}=kl(a,o),l=s*Math.cos(n),c=s*Math.sin(n);r[i-1].x=o.x-l,r[i-1].y=o.y-c}return r}f(ay,"applyMarkerOffsetsToPoints");var _S=f((e,t,r,i)=>{t.forEach(s=>{GS[s](e,r,i)})},"insertMarkers"),SS=f((e,t,r)=>{R.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).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"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),vS=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),BS=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),LS=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),FS=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).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),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).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),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),AS=f((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),ES=f((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).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"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),MS=f((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).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"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),$S=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-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")},"barb"),OS=f((e,t,r)=>{const i=Zt(),{themeVariables:s}=i,{transitionColor:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${o}`)},"barbNeo"),DS=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).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")},"only_one"),IS=f((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),PS=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).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")},"one_or_more"),RS=f((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),NS=f((e,t,r)=>{const i=Zt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${o}`)},"only_one_neo"),qS=f((e,t,r)=>{const i=Zt(),{themeVariables:s}=i,{strokeWidth:o,mainBkg:a}=s,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");n.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),n.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),zS=f((e,t,r)=>{const i=Zt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${o}`)},"one_or_more_neo"),WS=f((e,t,r)=>{const i=Zt(),{themeVariables:s}=i,{strokeWidth:o,mainBkg:a}=s,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");n.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),HS=f((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
265
+ L20,10
266
+ M20,10
267
+ L0,20`)},"requirement_arrow"),YS=f((e,t,r)=>{const i=Zt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
268
+ L20,10
269
+ M20,10
270
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),jS=f((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),US=f((e,t,r)=>{const i=Zt(),{themeVariables:s}=i,{strokeWidth:o}=s,a=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),GS={extension:SS,composition:vS,aggregation:BS,dependency:LS,lollipop:FS,point:AS,circle:ES,cross:MS,barb:$S,barbNeo:OS,only_one:DS,zero_or_one:IS,one_or_more:PS,zero_or_more:RS,only_one_neo:NS,zero_or_one_neo:qS,one_or_more_neo:zS,zero_or_more_neo:WS,requirement_arrow:HS,requirement_contains:jS,requirement_arrow_neo:YS,requirement_contains_neo:US},ny=_S,ly=typeof global=="object"&&global&&global.Object===Object&&global,XS=typeof self=="object"&&self&&self.Object===Object&&self,Fr=ly||XS||Function("return this")(),cr=Fr.Symbol,hy=Object.prototype,VS=hy.hasOwnProperty,ZS=hy.toString,ks=cr?cr.toStringTag:void 0;function KS(e){var t=VS.call(e,ks),r=e[ks];try{e[ks]=void 0;var i=!0}catch{}var s=ZS.call(e);return i&&(t?e[ks]=r:delete e[ks]),s}var QS=Object.prototype,JS=QS.toString;function tv(e){return JS.call(e)}var ev="[object Null]",rv="[object Undefined]",td=cr?cr.toStringTag:void 0;function ss(e){return e==null?e===void 0?rv:ev:td&&td in Object(e)?KS(e):tv(e)}function ci(e){return e!=null&&typeof e=="object"}var iv="[object Symbol]";function Bh(e){return typeof e=="symbol"||ci(e)&&ss(e)==iv}function cy(e,t){for(var r=-1,i=e==null?0:e.length,s=Array(i);++r<i;)s[r]=t(e[r],r,e);return s}var $e=Array.isArray,ed=cr?cr.prototype:void 0,rd=ed?ed.toString:void 0;function uy(e){if(typeof e=="string")return e;if($e(e))return cy(e,uy)+"";if(Bh(e))return rd?rd.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Lh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function va(e){return e}var sv="[object AsyncFunction]",ov="[object Function]",av="[object GeneratorFunction]",nv="[object Proxy]";function la(e){if(!Lh(e))return!1;var t=ss(e);return t==ov||t==av||t==sv||t==nv}var dn=Fr["__core-js_shared__"],id=function(){var e=/[^.]+$/.exec(dn&&dn.keys&&dn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lv(e){return!!id&&id in e}var hv=Function.prototype,cv=hv.toString;function gi(e){if(e!=null){try{return cv.call(e)}catch{}try{return e+""}catch{}}return""}var uv=/[\\^$.*+?()[\]{}|]/g,dv=/^\[object .+?Constructor\]$/,fv=Function.prototype,pv=Object.prototype,gv=fv.toString,mv=pv.hasOwnProperty,yv=RegExp("^"+gv.call(mv).replace(uv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xv(e){if(!Lh(e)||lv(e))return!1;var t=la(e)?yv:dv;return t.test(gi(e))}function Cv(e,t){return e?.[t]}function mi(e,t){var r=Cv(e,t);return xv(r)?r:void 0}var wl=mi(Fr,"WeakMap");function bv(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function kv(){}var wv=800,Tv=16,_v=Date.now;function Sv(e){var t=0,r=0;return function(){var i=_v(),s=Tv-(i-r);if(r=i,s>0){if(++t>=wv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Es(e){return function(){return e}}var sd=function(){try{var e=mi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),vv=sd?function(e,t){return sd(e,"toString",{configurable:!0,enumerable:!1,value:Es(t),writable:!0})}:va,Bv=Sv(vv);function Lv(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}function Fv(e,t,r,i){for(var s=e.length,o=r+-1;++o<s;)if(t(e[o],o,e))return o;return-1}function Av(e){return e!==e}function Ev(e,t,r){for(var i=r-1,s=e.length;++i<s;)if(e[i]===t)return i;return-1}function Mv(e,t,r){return t===t?Ev(e,t,r):Fv(e,Av,r)}function $v(e,t){var r=e==null?0:e.length;return!!r&&Mv(e,t,0)>-1}var Ov=9007199254740991,Dv=/^(?:0|[1-9]\d*)$/;function dy(e,t){var r=typeof e;return t=t??Ov,!!t&&(r=="number"||r!="symbol"&&Dv.test(e))&&e>-1&&e%1==0&&e<t}function fy(e,t){return e===t||e!==e&&t!==t}var od=Math.max;function Iv(e,t,r){return t=od(t===void 0?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=od(i.length-t,0),a=Array(o);++s<o;)a[s]=i[t+s];s=-1;for(var n=Array(t+1);++s<t;)n[s]=i[s];return n[t]=r(a),bv(e,this,n)}}function Pv(e,t){return Bv(Iv(e,t,va),e+"")}var Rv=9007199254740991;function Fh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Rv}function Ba(e){return e!=null&&Fh(e.length)&&!la(e)}var Nv=Object.prototype;function py(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nv;return e===r}function qv(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var zv="[object Arguments]";function ad(e){return ci(e)&&ss(e)==zv}var gy=Object.prototype,Wv=gy.hasOwnProperty,Hv=gy.propertyIsEnumerable,La=ad(function(){return arguments}())?ad:function(e){return ci(e)&&Wv.call(e,"callee")&&!Hv.call(e,"callee")};function Yv(){return!1}var my=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nd=my&&typeof module=="object"&&module&&!module.nodeType&&module,jv=nd&&nd.exports===my,ld=jv?Fr.Buffer:void 0,Uv=ld?ld.isBuffer:void 0,ha=Uv||Yv,Gv="[object Arguments]",Xv="[object Array]",Vv="[object Boolean]",Zv="[object Date]",Kv="[object Error]",Qv="[object Function]",Jv="[object Map]",tB="[object Number]",eB="[object Object]",rB="[object RegExp]",iB="[object Set]",sB="[object String]",oB="[object WeakMap]",aB="[object ArrayBuffer]",nB="[object DataView]",lB="[object Float32Array]",hB="[object Float64Array]",cB="[object Int8Array]",uB="[object Int16Array]",dB="[object Int32Array]",fB="[object Uint8Array]",pB="[object Uint8ClampedArray]",gB="[object Uint16Array]",mB="[object Uint32Array]",Xt={};Xt[lB]=Xt[hB]=Xt[cB]=Xt[uB]=Xt[dB]=Xt[fB]=Xt[pB]=Xt[gB]=Xt[mB]=!0;Xt[Gv]=Xt[Xv]=Xt[aB]=Xt[Vv]=Xt[nB]=Xt[Zv]=Xt[Kv]=Xt[Qv]=Xt[Jv]=Xt[tB]=Xt[eB]=Xt[rB]=Xt[iB]=Xt[sB]=Xt[oB]=!1;function yB(e){return ci(e)&&Fh(e.length)&&!!Xt[ss(e)]}function xB(e){return function(t){return e(t)}}var yy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rs=yy&&typeof module=="object"&&module&&!module.nodeType&&module,CB=Rs&&Rs.exports===yy,fn=CB&&ly.process,hd=function(){try{var e=Rs&&Rs.require&&Rs.require("util").types;return e||fn&&fn.binding&&fn.binding("util")}catch{}}(),cd=hd&&hd.isTypedArray,Ah=cd?xB(cd):yB,bB=Object.prototype,kB=bB.hasOwnProperty;function wB(e,t){var r=$e(e),i=!r&&La(e),s=!r&&!i&&ha(e),o=!r&&!i&&!s&&Ah(e),a=r||i||s||o,n=a?qv(e.length,String):[],l=n.length;for(var c in e)(t||kB.call(e,c))&&!(a&&(c=="length"||s&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||dy(c,l)))&&n.push(c);return n}function TB(e,t){return function(r){return e(t(r))}}var _B=TB(Object.keys,Object),SB=Object.prototype,vB=SB.hasOwnProperty;function xy(e){if(!py(e))return _B(e);var t=[];for(var r in Object(e))vB.call(e,r)&&r!="constructor"&&t.push(r);return t}function ar(e){return Ba(e)?wB(e):xy(e)}var BB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,LB=/^\w*$/;function Eh(e,t){if($e(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Bh(e)?!0:LB.test(e)||!BB.test(e)||t!=null&&e in Object(t)}var js=mi(Object,"create");function FB(){this.__data__=js?js(null):{},this.size=0}function AB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var EB="__lodash_hash_undefined__",MB=Object.prototype,$B=MB.hasOwnProperty;function OB(e){var t=this.__data__;if(js){var r=t[e];return r===EB?void 0:r}return $B.call(t,e)?t[e]:void 0}var DB=Object.prototype,IB=DB.hasOwnProperty;function PB(e){var t=this.__data__;return js?t[e]!==void 0:IB.call(t,e)}var RB="__lodash_hash_undefined__";function NB(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=js&&t===void 0?RB:t,this}function ui(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ui.prototype.clear=FB;ui.prototype.delete=AB;ui.prototype.get=OB;ui.prototype.has=PB;ui.prototype.set=NB;function qB(){this.__data__=[],this.size=0}function Fa(e,t){for(var r=e.length;r--;)if(fy(e[r][0],t))return r;return-1}var zB=Array.prototype,WB=zB.splice;function HB(e){var t=this.__data__,r=Fa(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():WB.call(t,r,1),--this.size,!0}function YB(e){var t=this.__data__,r=Fa(t,e);return r<0?void 0:t[r][1]}function jB(e){return Fa(this.__data__,e)>-1}function UB(e,t){var r=this.__data__,i=Fa(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Ar(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ar.prototype.clear=qB;Ar.prototype.delete=HB;Ar.prototype.get=YB;Ar.prototype.has=jB;Ar.prototype.set=UB;var Us=mi(Fr,"Map");function GB(){this.size=0,this.__data__={hash:new ui,map:new(Us||Ar),string:new ui}}function XB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Aa(e,t){var r=e.__data__;return XB(t)?r[typeof t=="string"?"string":"hash"]:r.map}function VB(e){var t=Aa(this,e).delete(e);return this.size-=t?1:0,t}function ZB(e){return Aa(this,e).get(e)}function KB(e){return Aa(this,e).has(e)}function QB(e,t){var r=Aa(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Er(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Er.prototype.clear=GB;Er.prototype.delete=VB;Er.prototype.get=ZB;Er.prototype.has=KB;Er.prototype.set=QB;var JB="Expected a function";function Mh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(JB);var r=function(){var i=arguments,s=t?t.apply(this,i):i[0],o=r.cache;if(o.has(s))return o.get(s);var a=e.apply(this,i);return r.cache=o.set(s,a)||o,a};return r.cache=new(Mh.Cache||Er),r}Mh.Cache=Er;var tL=500;function eL(e){var t=Mh(e,function(i){return r.size===tL&&r.clear(),i}),r=t.cache;return t}var rL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iL=/\\(\\)?/g,sL=eL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rL,function(r,i,s,o){t.push(s?o.replace(iL,"$1"):i||r)}),t});function oL(e){return e==null?"":uy(e)}function Cy(e,t){return $e(e)?e:Eh(e,t)?[e]:sL(oL(e))}function Ea(e){if(typeof e=="string"||Bh(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function by(e,t){t=Cy(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Ea(t[r++])];return r&&r==i?e:void 0}function aL(e,t,r){var i=e==null?void 0:by(e,t);return i===void 0?r:i}function ky(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}var ud=cr?cr.isConcatSpreadable:void 0;function nL(e){return $e(e)||La(e)||!!(ud&&e&&e[ud])}function lL(e,t,r,i,s){var o=-1,a=e.length;for(r||(r=nL),s||(s=[]);++o<a;){var n=e[o];r(n)?ky(s,n):i||(s[s.length]=n)}return s}function hL(e,t,r,i){var s=-1,o=e==null?0:e.length;for(i&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}function cL(){this.__data__=new Ar,this.size=0}function uL(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function dL(e){return this.__data__.get(e)}function fL(e){return this.__data__.has(e)}var pL=200;function gL(e,t){var r=this.__data__;if(r instanceof Ar){var i=r.__data__;if(!Us||i.length<pL-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Er(i)}return r.set(e,t),this.size=r.size,this}function Sr(e){var t=this.__data__=new Ar(e);this.size=t.size}Sr.prototype.clear=cL;Sr.prototype.delete=uL;Sr.prototype.get=dL;Sr.prototype.has=fL;Sr.prototype.set=gL;function wy(e,t){for(var r=-1,i=e==null?0:e.length,s=0,o=[];++r<i;){var a=e[r];t(a,r,e)&&(o[s++]=a)}return o}function mL(){return[]}var yL=Object.prototype,xL=yL.propertyIsEnumerable,dd=Object.getOwnPropertySymbols,CL=dd?function(e){return e==null?[]:(e=Object(e),wy(dd(e),function(t){return xL.call(e,t)}))}:mL;function bL(e,t,r){var i=t(e);return $e(e)?i:ky(i,r(e))}function fd(e){return bL(e,ar,CL)}var Tl=mi(Fr,"DataView"),_l=mi(Fr,"Promise"),Mi=mi(Fr,"Set"),pd="[object Map]",kL="[object Object]",gd="[object Promise]",md="[object Set]",yd="[object WeakMap]",xd="[object DataView]",wL=gi(Tl),TL=gi(Us),_L=gi(_l),SL=gi(Mi),vL=gi(wl),Tr=ss;(Tl&&Tr(new Tl(new ArrayBuffer(1)))!=xd||Us&&Tr(new Us)!=pd||_l&&Tr(_l.resolve())!=gd||Mi&&Tr(new Mi)!=md||wl&&Tr(new wl)!=yd)&&(Tr=function(e){var t=ss(e),r=t==kL?e.constructor:void 0,i=r?gi(r):"";if(i)switch(i){case wL:return xd;case TL:return pd;case _L:return gd;case SL:return md;case vL:return yd}return t});var Cd=Fr.Uint8Array,BL="__lodash_hash_undefined__";function LL(e){return this.__data__.set(e,BL),this}function FL(e){return this.__data__.has(e)}function Gs(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Er;++t<r;)this.add(e[t])}Gs.prototype.add=Gs.prototype.push=LL;Gs.prototype.has=FL;function AL(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function Ty(e,t){return e.has(t)}var EL=1,ML=2;function _y(e,t,r,i,s,o){var a=r&EL,n=e.length,l=t.length;if(n!=l&&!(a&&l>n))return!1;var c=o.get(e),h=o.get(t);if(c&&h)return c==t&&h==e;var u=-1,d=!0,p=r&ML?new Gs:void 0;for(o.set(e,t),o.set(t,e);++u<n;){var y=e[u],m=t[u];if(i)var x=a?i(m,y,u,t,e,o):i(y,m,u,e,t,o);if(x!==void 0){if(x)continue;d=!1;break}if(p){if(!AL(t,function(C,k){if(!Ty(p,k)&&(y===C||s(y,C,r,i,o)))return p.push(k)})){d=!1;break}}else if(!(y===m||s(y,m,r,i,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function $L(e){var t=-1,r=Array(e.size);return e.forEach(function(i,s){r[++t]=[s,i]}),r}function $h(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var OL=1,DL=2,IL="[object Boolean]",PL="[object Date]",RL="[object Error]",NL="[object Map]",qL="[object Number]",zL="[object RegExp]",WL="[object Set]",HL="[object String]",YL="[object Symbol]",jL="[object ArrayBuffer]",UL="[object DataView]",bd=cr?cr.prototype:void 0,pn=bd?bd.valueOf:void 0;function GL(e,t,r,i,s,o,a){switch(r){case UL:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case jL:return!(e.byteLength!=t.byteLength||!o(new Cd(e),new Cd(t)));case IL:case PL:case qL:return fy(+e,+t);case RL:return e.name==t.name&&e.message==t.message;case zL:case HL:return e==t+"";case NL:var n=$L;case WL:var l=i&OL;if(n||(n=$h),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=DL,a.set(e,t);var h=_y(n(e),n(t),i,s,o,a);return a.delete(e),h;case YL:if(pn)return pn.call(e)==pn.call(t)}return!1}var XL=1,VL=Object.prototype,ZL=VL.hasOwnProperty;function KL(e,t,r,i,s,o){var a=r&XL,n=fd(e),l=n.length,c=fd(t),h=c.length;if(l!=h&&!a)return!1;for(var u=l;u--;){var d=n[u];if(!(a?d in t:ZL.call(t,d)))return!1}var p=o.get(e),y=o.get(t);if(p&&y)return p==t&&y==e;var m=!0;o.set(e,t),o.set(t,e);for(var x=a;++u<l;){d=n[u];var C=e[d],k=t[d];if(i)var T=a?i(k,C,d,t,e,o):i(C,k,d,e,t,o);if(!(T===void 0?C===k||s(C,k,r,i,o):T)){m=!1;break}x||(x=d=="constructor")}if(m&&!x){var S=e.constructor,v=t.constructor;S!=v&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof v=="function"&&v instanceof v)&&(m=!1)}return o.delete(e),o.delete(t),m}var QL=1,kd="[object Arguments]",wd="[object Array]",To="[object Object]",JL=Object.prototype,Td=JL.hasOwnProperty;function tF(e,t,r,i,s,o){var a=$e(e),n=$e(t),l=a?wd:Tr(e),c=n?wd:Tr(t);l=l==kd?To:l,c=c==kd?To:c;var h=l==To,u=c==To,d=l==c;if(d&&ha(e)){if(!ha(t))return!1;a=!0,h=!1}if(d&&!h)return o||(o=new Sr),a||Ah(e)?_y(e,t,r,i,s,o):GL(e,t,l,r,i,s,o);if(!(r&QL)){var p=h&&Td.call(e,"__wrapped__"),y=u&&Td.call(t,"__wrapped__");if(p||y){var m=p?e.value():e,x=y?t.value():t;return o||(o=new Sr),s(m,x,r,i,o)}}return d?(o||(o=new Sr),KL(e,t,r,i,s,o)):!1}function Oh(e,t,r,i,s){return e===t?!0:e==null||t==null||!ci(e)&&!ci(t)?e!==e&&t!==t:tF(e,t,r,i,Oh,s)}var eF=1,rF=2;function iF(e,t,r,i){var s=r.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var a=r[s];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++s<o;){a=r[s];var n=a[0],l=e[n],c=a[1];if(a[2]){if(l===void 0&&!(n in e))return!1}else{var h=new Sr,u;if(!(u===void 0?Oh(c,l,eF|rF,i,h):u))return!1}}return!0}function Sy(e){return e===e&&!Lh(e)}function sF(e){for(var t=ar(e),r=t.length;r--;){var i=t[r],s=e[i];t[r]=[i,s,Sy(s)]}return t}function vy(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function oF(e){var t=sF(e);return t.length==1&&t[0][2]?vy(t[0][0],t[0][1]):function(r){return r===e||iF(r,e,t)}}function aF(e,t){return e!=null&&t in Object(e)}function nF(e,t,r){t=Cy(t,e);for(var i=-1,s=t.length,o=!1;++i<s;){var a=Ea(t[i]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++i!=s?o:(s=e==null?0:e.length,!!s&&Fh(s)&&dy(a,s)&&($e(e)||La(e)))}function lF(e,t){return e!=null&&nF(e,t,aF)}var hF=1,cF=2;function uF(e,t){return Eh(e)&&Sy(t)?vy(Ea(e),t):function(r){var i=aL(r,e);return i===void 0&&i===t?lF(r,e):Oh(t,i,hF|cF)}}function dF(e){return function(t){return t?.[e]}}function fF(e){return function(t){return by(t,e)}}function pF(e){return Eh(e)?dF(Ea(e)):fF(e)}function By(e){return typeof e=="function"?e:e==null?va:typeof e=="object"?$e(e)?uF(e[0],e[1]):oF(e):pF(e)}function gF(e){return function(t,r,i){for(var s=-1,o=Object(t),a=i(t),n=a.length;n--;){var l=a[++s];if(r(o[l],l,o)===!1)break}return t}}var mF=gF();function yF(e,t){return e&&mF(e,t,ar)}function xF(e,t){return function(r,i){if(r==null)return r;if(!Ba(r))return e(r,i);for(var s=r.length,o=-1,a=Object(r);++o<s&&i(a[o],o,a)!==!1;);return r}}var Dh=xF(yF);function CF(e){return ci(e)&&Ba(e)}function bF(e){return typeof e=="function"?e:va}function Vr(e,t){var r=$e(e)?Lv:Dh;return r(e,bF(t))}function kF(e,t){var r=[];return Dh(e,function(i,s,o){t(i,s,o)&&r.push(i)}),r}function _o(e,t){var r=$e(e)?wy:kF;return r(e,By(t))}function wF(e,t){return cy(t,function(r){return e[r]})}function gn(e){return e==null?[]:wF(e,ar(e))}var TF="[object Map]",_F="[object Set]",SF=Object.prototype,vF=SF.hasOwnProperty;function _d(e){if(e==null)return!0;if(Ba(e)&&($e(e)||typeof e=="string"||typeof e.splice=="function"||ha(e)||Ah(e)||La(e)))return!e.length;var t=Tr(e);if(t==TF||t==_F)return!e.size;if(py(e))return!xy(e).length;for(var r in e)if(vF.call(e,r))return!1;return!0}function Bi(e){return e===void 0}function BF(e,t,r,i,s){return s(e,function(o,a,n){r=i?(i=!1,o):t(r,o,a,n)}),r}function LF(e,t,r){var i=$e(e)?hL:BF,s=arguments.length<3;return i(e,By(t),r,s,Dh)}var FF=1/0,AF=Mi&&1/$h(new Mi([,-0]))[1]==FF?function(e){return new Mi(e)}:kv,EF=200;function MF(e,t,r){var i=-1,s=$v,o=e.length,a=!0,n=[],l=n;if(o>=EF){var c=AF(e);if(c)return $h(c);a=!1,s=Ty,l=new Gs}else l=n;t:for(;++i<o;){var h=e[i],u=h;if(h=h!==0?h:0,a&&u===u){for(var d=l.length;d--;)if(l[d]===u)continue t;n.push(h)}else s(l,u,r)||(l!==n&&l.push(u),n.push(h))}return n}var $F=Pv(function(e){return MF(lL(e,1,CF,!0))}),OF="\0",Zr="\0",Sd="";class Ma{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Es(void 0),this._defaultEdgeLabelFn=Es(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[Zr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return la(t)||(t=Es(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return ar(this._nodes)}sources(){var t=this;return _o(this.nodes(),function(r){return _d(t._in[r])})}sinks(){var t=this;return _o(this.nodes(),function(r){return _d(t._out[r])})}setNodes(t,r){var i=arguments,s=this;return Vr(t,function(o){i.length>1?s.setNode(o,r):s.setNode(o)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=Zr,this._children[t]={},this._children[Zr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=i=>this.removeEdge(this._edgeObjs[i]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Vr(this.children(t),i=>{this.setParent(i)}),delete this._children[t]),Vr(ar(this._in[t]),r),delete this._in[t],delete this._preds[t],Vr(ar(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Bi(r))r=Zr;else{r+="";for(var i=r;!Bi(i);i=this.parent(i))if(i===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==Zr)return r}}children(t){if(Bi(t)&&(t=Zr),this._isCompound){var r=this._children[t];if(r)return ar(r)}else{if(t===Zr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return ar(r)}successors(t){var r=this._sucs[t];if(r)return ar(r)}neighbors(t){var r=this.predecessors(t);if(r)return $F(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Vr(this._nodes,function(a,n){t(n)&&r.setNode(n,a)}),Vr(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,i.edge(a))});var s={};function o(a){var n=i.parent(a);return n===void 0||r.hasNode(n)?(s[a]=n,n):n in s?s[n]:o(n)}return this._isCompound&&Vr(r.nodes(),function(a){r.setParent(a,o(a))}),r}setDefaultEdgeLabel(t){return la(t)||(t=Es(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return gn(this._edgeObjs)}setPath(t,r){var i=this,s=arguments;return LF(t,function(o,a){return s.length>1?i.setEdge(o,a,r):i.setEdge(o,a),a}),this}setEdge(){var t,r,i,s,o=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(t=a.v,r=a.w,i=a.name,arguments.length===2&&(s=arguments[1],o=!0)):(t=a,r=arguments[1],i=arguments[3],arguments.length>2&&(s=arguments[2],o=!0)),t=""+t,r=""+r,Bi(i)||(i=""+i);var n=Ms(this._isDirected,t,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n))return o&&(this._edgeLabels[n]=s),this;if(!Bi(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[n]=o?s:this._defaultEdgeLabelFn(t,r,i);var l=DF(this._isDirected,t,r,i);return t=l.v,r=l.w,Object.freeze(l),this._edgeObjs[n]=l,vd(this._preds[r],t),vd(this._sucs[t],r),this._in[r][n]=l,this._out[t][n]=l,this._edgeCount++,this}edge(t,r,i){var s=arguments.length===1?mn(this._isDirected,arguments[0]):Ms(this._isDirected,t,r,i);return this._edgeLabels[s]}hasEdge(t,r,i){var s=arguments.length===1?mn(this._isDirected,arguments[0]):Ms(this._isDirected,t,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,s)}removeEdge(t,r,i){var s=arguments.length===1?mn(this._isDirected,arguments[0]):Ms(this._isDirected,t,r,i),o=this._edgeObjs[s];return o&&(t=o.v,r=o.w,delete this._edgeLabels[s],delete this._edgeObjs[s],Bd(this._preds[r],t),Bd(this._sucs[t],r),delete this._in[r][s],delete this._out[t][s],this._edgeCount--),this}inEdges(t,r){var i=this._in[t];if(i){var s=gn(i);return r?_o(s,function(o){return o.v===r}):s}}outEdges(t,r){var i=this._out[t];if(i){var s=gn(i);return r?_o(s,function(o){return o.w===r}):s}}nodeEdges(t,r){var i=this.inEdges(t,r);if(i)return i.concat(this.outEdges(t,r))}}Ma.prototype._nodeCount=0;Ma.prototype._edgeCount=0;function vd(e,t){e[t]?e[t]++:e[t]=1}function Bd(e,t){--e[t]||delete e[t]}function Ms(e,t,r,i){var s=""+t,o=""+r;if(!e&&s>o){var a=s;s=o,o=a}return s+Sd+o+Sd+(Bi(i)?OF:i)}function DF(e,t,r,i){var s=""+t,o=""+r;if(!e&&s>o){var a=s;s=o,o=a}var n={v:s,w:o};return i&&(n.name=i),n}function mn(e,t){return Ms(e,t.v,t.w,t.name)}function Ly(e,{edgePathsClass:t="edges edgePath"}={}){const r=e.insert("g").attr("class","root"),i=r.insert("g").attr("class","clusters"),s=r.insert("g").attr("class",t),o=r.insert("g").attr("class","edgeLabels"),a=r.insert("g").attr("class","nodes");return{clusters:i,edgePaths:s,edgeLabels:o,nodes:a,rootGroups:r}}f(Ly,"createLayoutElementGroups");async function Fy(e,t){if(t.label){const{shapeSvg:r,bbox:i}=await xt(e,t);t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}f(Fy,"measureGroupLabel");async function Ay(e,t,r){const i=await Sh(e,t,r),s=i.node()?.getBBox()??{width:0,height:0};return t.width=s.width,t.height=s.height,i}f(Ay,"insertMeasuredNode");async function Ey(e,t){const r=new Ma({multigraph:!0,compound:!0}),i=[...t.edges],s=Dt(),o=Ly(e),{edgeLabels:a,nodes:n}=o,l=new Map,c=e.node()!=null;await Promise.all(t.nodes.map(async h=>{if(h.isGroup)c&&await Fy(n,h),r.setNode(h.id,{...h});else{if(c){const u=await Ay(n,h,{config:s,dir:h.dir});l.set(h.id,u)}r.setNode(h.id,{...h})}}));for(const h of i)c&&ry(h)&&await vh(a,h),r.setEdge(h.start,h.end,{...h},h.id),t.edges.some(d=>d.id===h.id)||t.edges.push(h);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:h}=await Mt(async()=>{const{captureNodeSizes:u}=await import("./sizeCapture-X5ZJPWSS-B5G4GDQB.js");return{captureNodeSizes:u}},__vite__mapDeps([2,0,1]));h(e,t)}return{graph:r,groups:o,nodeElements:l}}f(Ey,"createGraphWithElements");var Pt=new Map,ri=new Map,My=new Map,IF=f(()=>{ri.clear(),My.clear(),Pt.clear()},"clear"),Xs=f((e,t)=>{const r=ri.get(t)||[];return R.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),PF=f((e,t)=>{const r=ri.get(t)||[];return R.info("Descendants of ",t," is ",r),R.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||Xs(e.v,t)||Xs(e.w,t)||r.includes(e.w):(R.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),$y=f((e,t,r,i)=>{R.debug("Copying children of ",e,"root",i,"data",t.node(e),i);const s=t.children(e)||[];e!==i&&s.push(e),R.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)$y(o,t,r,i);else{const a=t.node(o);R.info("cp ",o," to ",i," with parent ",e),r.setNode(o,a),i!==t.parent(o)&&(R.debug("Setting parent",o,t.parent(o)),r.setParent(o,t.parent(o))),e!==i&&o!==e?(R.debug("Setting parent",o,e),r.setParent(o,e)):(R.info("In copy ",e,"root",i,"data",t.node(e),i),R.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==i,"node!==clusterId",o!==e));const n=t.edges(o);R.debug("Copying Edges",n),n.forEach(l=>{R.info("Edge",l);const c=t.edge(l.v,l.w,l.name);R.info("Edge data",c,i);try{PF(l,i)?(R.info("Copying as ",l.v,l.w,c,l.name),r.setEdge(l.v,l.w,c,l.name),R.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):R.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",i," clusterId:",e)}catch(h){R.error(h)}})}R.debug("Removing node",o),t.removeNode(o)})},"copy"),Oy=f((e,t)=>{const r=t.children(e);let i=[...r];for(const s of r)My.set(s,e),i=[...i,...Oy(s,t)];return i},"extractDescendants"),RF=f((e,t,r)=>{const i=e.edges().filter(l=>l.v===t||l.w===t),s=e.edges().filter(l=>l.v===r||l.w===r),o=i.map(l=>({v:l.v===t?r:l.v,w:l.w===t?t:l.w})),a=s.map(l=>({v:l.v,w:l.w}));return o.filter(l=>a.some(c=>l.v===c.v&&l.w===c.w))},"findCommonEdges"),ca=f((e,t,r)=>{const i=t.children(e);if(R.trace("Searching children of id ",e,i),i.length<1)return e;let s;for(const o of i){const a=ca(o,t,r),n=RF(t,r,a);if(a)if(n.length>0)s=a;else return a}return s},"findNonClusterChild"),Ld=f(e=>!Pt.has(e)||!Pt.get(e).externalConnections?e:Pt.has(e)?Pt.get(e).id:e,"getAnchorId"),e3=f((e,t)=>{if(!e||t>10){R.debug("Opting out, no graph ");return}else R.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(R.debug("Cluster identified",r," Replacement id in edges: ",ca(r,e,r)),ri.set(r,Oy(r,e)),Pt.set(r,{id:ca(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){const i=e.children(r),s=e.edges();i.length>0?(R.debug("Cluster identified",r,ri),s.forEach(o=>{const a=Xs(o.v,r),n=Xs(o.w,r);a^n&&(R.debug("Edge: ",o," leaves cluster ",r),R.debug("Descendants of XXX ",r,": ",ri.get(r)),Pt.get(r).externalConnections=!0)})):R.debug("Not a cluster ",r,ri)});for(let r of Pt.keys()){const i=Pt.get(r).id,s=e.parent(i);s!==r&&Pt.has(s)&&!Pt.get(s).externalConnections&&(Pt.get(r).id=s);const o=e.edges().some(a=>a.v===r);if(i&&Pt.get(r)?.externalConnections&&o&&Py(e,i,r)){const a=NF(e,r,e.parent(i));a&&(Pt.get(r).id=a)}}e.edges().forEach(function(r){const i=e.edge(r);R.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),R.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let s=r.v,o=r.w;if(R.debug("Fix XXX",Pt,"ids:",r.v,r.w,"Translating: ",Pt.get(r.v)," --- ",Pt.get(r.w)),Pt.get(r.v)||Pt.get(r.w)){if(R.debug("Fixing and trying - removing XXX",r.v,r.w,r.name),s=Ld(r.v),o=Ld(r.w),e.removeEdge(r.v,r.w,r.name),s!==r.v){const a=e.parent(s);Pt.get(a).externalConnections=!0,i.fromCluster=r.v}if(o!==r.w){const a=e.parent(o);Pt.get(a).externalConnections=!0,i.toCluster=r.w}R.debug("Fix Replacing with XXX",s,o,r.name),e.setEdge(s,o,i,r.name)}}),Dy(e,0),R.trace(Pt)},"adjustClustersAndEdges"),Dy=f((e,t)=>{if(t>10){R.error("Bailing out");return}let r=e.nodes(),i=!1;for(const s of r){const o=e.children(s);i=i||o.length>0}if(!i){R.debug("Done, no node has children",e.nodes());return}R.debug("Nodes = ",r,t);for(const s of r)if(R.debug("Extracting node",s,Pt,Pt.has(s)&&!Pt.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!Pt.has(s))R.debug("Not a cluster",s,t);else if(!Pt.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){R.debug("Cluster without external connections, without a parent and with children",s,t);let a=e.graph().rankdir==="TB"?"LR":"TB";Pt.get(s)?.clusterData?.dir&&(a=Pt.get(s).clusterData.dir,R.debug("Fixing dir",Pt.get(s).clusterData.dir,a));const n=new Ma({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});$y(s,e,n,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:Pt.get(s).clusterData,label:Pt.get(s).label,graph:n})}else R.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!Pt.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),R.debug(Pt);r=e.nodes(),R.debug("New list of nodes",r);for(const s of r){const o=e.node(s);R.debug(" Now next level",s,o),o?.clusterNode&&Dy(o.graph,t+1)}},"extractor"),Iy=f((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(i=>{const s=e.children(i),o=Iy(e,s);r=[...r,...o]}),r},"sorter"),r3=f(e=>Iy(e,e.children()),"sortNodesByHierarchy"),Py=f((e,t,r)=>{let i=e.parent(t);for(;i&&i!==r;){const s=Pt.get(i);if(s&&!s.externalConnections)return!0;i=e.parent(i)}return!1},"isNodeInExtractableCluster"),NF=f((e,t,r)=>{const i=e.children(t)??[];for(const s of i){if(s===r||Xs(s,r))continue;const o=ca(s,e,t);if(o&&!Py(e,o,t))return o}return null},"findSafeAnchorNode");function Ry({prepareLayout:e,measureLayout:t,runLayoutCore:r,paintLayout:i,afterPaint:s,paintOptions:o}){const a=t??Ph;return f(async function(l,c,h,u){const d=c.select("g");ny(d,l.markers,l.type,l.diagramId),Ih();const p={element:d,helpers:h,options:u};p.preparedLayout=await e?.(l,p);const y=await a(l,p),m=await r(l,p),x={...p,measure:y};i?await i(l,x,m):await Rh(l,x,o),await s?.(l,x,m)},"render")}f(Ry,"createCommonLayoutRenderer");function Ih(){iS(),yS(),uS(),IF()}f(Ih,"clearLayoutRenderState");async function Ph(e,{element:t}){return await Ey(t,e)}f(Ph,"defaultMeasureLayout");async function Rh(e,t,r={}){const{measure:i}=t,{groups:s}=i;for(const a of r.getNodes?.(e,t)??e.nodes)r.skipNode?.(a,t)||await Ny(s,a,t,r);const o=zy(e.nodes);for(const a of e.edges)Wy(a,r)||await Hy(s,a,o,e,r,t)}f(Rh,"paintLayoutData");async function Ny(e,t,r,i){t.clusterNode?Vu(t):qy(t,r,i)?await ey(e.clusters,t):Vu(t)}f(Ny,"paintLayoutNode");function qy(e,t,r){return e.isGroup===!0&&(r.isCluster?.(e,t)??!0)}f(qy,"shouldPaintAsCluster");function zy(e){const t=new Map;for(const r of e)r?.id&&t.set(r.id,r);return t}f(zy,"buildNodeLookup");function Wy(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}f(Wy,"shouldSkipPaintEdge");async function Hy(e,t,r,i,s,o){const a=sy(e.edgePaths,{...t},s.clusterDb??new Map,i.type,Sl(t.start,t,r,o,s),Sl(t.end,t,r,o,s),i.diagramId,Yy(t,s));ry(t)&&(Ji.has(t.id)||await vh(e.edgeLabels,t),jy(t,a))}f(Hy,"paintLayoutEdge");function Sl(e,t,r,i,s){return s.getEdgeNode?.(e,t,i)??(e?r.get(e)??{}:{})}f(Sl,"getRenderedNode");function Yy(e,t){return typeof t.skipIntersect=="function"?t.skipIntersect(e):t.skipIntersect??!1}f(Yy,"shouldSkipIntersect");function jy(e,t){const r=t?.updatedPath??t?.originalPath,i=Zt(),{subGraphTitleTotalMargin:s}=_a({flowchart:i.flowchart??{}});if(e.label){const o=Ji.get(e.id);let a=e.x,n=e.y;if(r){const l=ye.calcLabelPosition(r);R.debug("Moving label "+e.label+" from (",a,",",n,") to (",l.x,",",l.y,") abc88"),t?.updatedPath&&(a=l.x,n=l.y)}o.attr("transform",`translate(${a}, ${n+s/2})`)}if(e?.startLabelLeft){const o=te.get(e.id).startLeft;let a=e?.x,n=e?.y;if(r){const l=ye.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.startLabelRight){const o=te.get(e.id).startRight;let a=e.x,n=e.y;if(r){const l=ye.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelLeft){const o=te.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const l=ye.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelRight){const o=te.get(e.id).endRight;let a=e.x,n=e.y;if(r){const l=ye.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}}f(jy,"positionRenderedEdgeLabel");function Uy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}f(Uy,"getDefaultExportFromCjs");var de={},So={},Ir={},Fd;function os(){if(Fd)return Ir;Fd=1;function e(a){return typeof a>"u"||a===null}f(e,"isNothing");function t(a){return typeof a=="object"&&a!==null}f(t,"isObject");function r(a){return Array.isArray(a)?a:e(a)?[]:[a]}f(r,"toArray");function i(a,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const u=l[c];a[u]=n[u]}}return a}f(i,"extend");function s(a,n){let l="";for(let c=0;c<n;c+=1)l+=a;return l}f(s,"repeat");function o(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return f(o,"isNegativeZero"),Ir.isNothing=e,Ir.isObject=t,Ir.toArray=r,Ir.repeat=s,Ir.isNegativeZero=o,Ir.extend=i,Ir}f(os,"requireCommon");var yn,Ad;function as(){if(Ad)return yn;Ad=1;function e(r,i){let s="";const o=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(s+='in "'+r.mark.name+'" '),s+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(s+=`
271
+
272
+ `+r.mark.snippet),o+" "+s):o}f(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return f(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=f(function(i){return this.name+": "+e(this,i)},"toString"),yn=t,yn}f(as,"requireException");var xn,Ed;function Gy(){if(Ed)return xn;Ed=1;const e=os();function t(s,o,a,n,l){let c="",h="";const u=Math.floor(l/2)-1;return n-o>u&&(c=" ... ",o=n-u+c.length),a-n>u&&(h=" ...",a=n+u-h.length),{str:c+s.slice(o,a).replace(/\t/g,"→")+h,pos:n-o+c.length}}f(t,"getLine");function r(s,o){return e.repeat(" ",o-s.length)+s}f(r,"padStart");function i(s,o){if(o=Object.create(o||null),!s.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);const a=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=a.exec(s.buffer);)l.push(c.index),n.push(c.index+c[0].length),s.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let u="";const d=Math.min(s.line+o.linesAfter,l.length).toString().length,p=o.maxLength-(o.indent+d+3);for(let m=1;m<=o.linesBefore&&!(h-m<0);m++){const x=t(s.buffer,n[h-m],l[h-m],s.position-(n[h]-n[h-m]),p);u=e.repeat(" ",o.indent)+r((s.line-m+1).toString(),d)+" | "+x.str+`
273
+ `+u}const y=t(s.buffer,n[h],l[h],s.position,p);u+=e.repeat(" ",o.indent)+r((s.line+1).toString(),d)+" | "+y.str+`
274
+ `,u+=e.repeat("-",o.indent+d+3+y.pos)+`^
275
+ `;for(let m=1;m<=o.linesAfter&&!(h+m>=l.length);m++){const x=t(s.buffer,n[h+m],l[h+m],s.position-(n[h]-n[h+m]),p);u+=e.repeat(" ",o.indent)+r((s.line+m+1).toString(),d)+" | "+x.str+`
276
+ `}return u.replace(/\n$/,"")}return f(i,"makeSnippet"),xn=i,xn}f(Gy,"requireSnippet");var Cn,Md;function Ce(){if(Md)return Cn;Md=1;const e=as(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(o){const a={};return o!==null&&Object.keys(o).forEach(function(n){o[n].forEach(function(l){a[String(l)]=n})}),a}f(i,"compileStyleAliases");function s(o,a){if(a=a||{},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e('Unknown option "'+n+'" is met in definition of "'+o+'" YAML type.')}),this.options=a,this.tag=o,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(n){return n},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}return f(s,"Type2"),Cn=s,Cn}f(Ce,"requireType");var bn,$d;function Nh(){if($d)return bn;$d=1;const e=as(),t=Ce();function r(o,a){const n=[];return o[a].forEach(function(l){let c=n.length;n.forEach(function(h,u){h.tag===l.tag&&h.kind===l.kind&&h.multi===l.multi&&(c=u)}),n[c]=l}),n}f(r,"compileList");function i(){const o={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(n){n.multi?(o.multi[n.kind].push(n),o.multi.fallback.push(n)):o[n.kind][n.tag]=o.fallback[n.tag]=n}f(a,"collectType");for(let n=0,l=arguments.length;n<l;n+=1)arguments[n].forEach(a);return o}f(i,"compileMap");function s(o){return this.extend(o)}return f(s,"Schema2"),s.prototype.extend=f(function(a){let n=[],l=[];if(a instanceof t)l.push(a);else if(Array.isArray(a))l=l.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(n=n.concat(a.implicit)),a.explicit&&(l=l.concat(a.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(h){if(!(h instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(h.loadKind&&h.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(h.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(h){if(!(h instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const c=Object.create(s.prototype);return c.implicit=(this.implicit||[]).concat(n),c.explicit=(this.explicit||[]).concat(l),c.compiledImplicit=r(c,"implicit"),c.compiledExplicit=r(c,"explicit"),c.compiledTypeMap=i(c.compiledImplicit,c.compiledExplicit),c},"extend"),bn=s,bn}f(Nh,"requireSchema");var kn,Od;function qh(){if(Od)return kn;Od=1;const e=Ce();return kn=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:f(function(t){return t!==null?t:""},"construct")}),kn}f(qh,"requireStr");var wn,Dd;function zh(){if(Dd)return wn;Dd=1;const e=Ce();return wn=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:f(function(t){return t!==null?t:[]},"construct")}),wn}f(zh,"requireSeq");var Tn,Id;function Wh(){if(Id)return Tn;Id=1;const e=Ce();return Tn=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:f(function(t){return t!==null?t:{}},"construct")}),Tn}f(Wh,"requireMap");var _n,Pd;function Hh(){if(Pd)return _n;Pd=1;const e=Nh();return _n=new e({explicit:[qh(),zh(),Wh()]}),_n}f(Hh,"requireFailsafe");var Sn,Rd;function Yh(){if(Rd)return Sn;Rd=1;const e=Ce();function t(s){if(s===null)return!0;const o=s.length;return o===1&&s==="~"||o===4&&(s==="null"||s==="Null"||s==="NULL")}f(t,"resolveYamlNull");function r(){return null}f(r,"constructYamlNull");function i(s){return s===null}return f(i,"isNull"),Sn=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{canonical:f(function(){return"~"},"canonical"),lowercase:f(function(){return"null"},"lowercase"),uppercase:f(function(){return"NULL"},"uppercase"),camelcase:f(function(){return"Null"},"camelcase"),empty:f(function(){return""},"empty")},defaultStyle:"lowercase"}),Sn}f(Yh,"require_null");var vn,Nd;function jh(){if(Nd)return vn;Nd=1;const e=Ce();function t(s){if(s===null)return!1;const o=s.length;return o===4&&(s==="true"||s==="True"||s==="TRUE")||o===5&&(s==="false"||s==="False"||s==="FALSE")}f(t,"resolveYamlBoolean");function r(s){return s==="true"||s==="True"||s==="TRUE"}f(r,"constructYamlBoolean");function i(s){return Object.prototype.toString.call(s)==="[object Boolean]"}return f(i,"isBoolean"),vn=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{lowercase:f(function(s){return s?"true":"false"},"lowercase"),uppercase:f(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:f(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),vn}f(jh,"requireBool");var Bn,qd;function Uh(){if(qd)return Bn;qd=1;const e=os(),t=Ce();function r(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}f(r,"isHexCode");function i(c){return c>=48&&c<=55}f(i,"isOctCode");function s(c){return c>=48&&c<=57}f(s,"isDecCode");function o(c){if(c===null)return!1;const h=c.length;let u=0,d=!1;if(!h)return!1;let p=c[u];if((p==="-"||p==="+")&&(p=c[++u]),p==="0"){if(u+1===h)return!0;if(p=c[++u],p==="b"){for(u++;u<h;u++){if(p=c[u],p!=="0"&&p!=="1")return!1;d=!0}return d&&isFinite(a(c))}if(p==="x"){for(u++;u<h;u++){if(!r(c.charCodeAt(u)))return!1;d=!0}return d&&isFinite(a(c))}if(p==="o"){for(u++;u<h;u++){if(!i(c.charCodeAt(u)))return!1;d=!0}return d&&isFinite(a(c))}}for(;u<h;u++){if(!s(c.charCodeAt(u)))return!1;d=!0}return d?isFinite(a(c)):!1}f(o,"resolveYamlInteger");function a(c){let h=c,u=1,d=h[0];if((d==="-"||d==="+")&&(d==="-"&&(u=-1),h=h.slice(1),d=h[0]),h==="0")return 0;if(d==="0"){if(h[1]==="b")return u*parseInt(h.slice(2),2);if(h[1]==="x")return u*parseInt(h.slice(2),16);if(h[1]==="o")return u*parseInt(h.slice(2),8)}return u*parseInt(h,10)}f(a,"parseYamlInteger");function n(c){return a(c)}f(n,"constructYamlInteger");function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return f(l,"isInteger"),Bn=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:n,predicate:l,represent:{binary:f(function(c){return c>=0?"0b"+c.toString(2):"-0b"+c.toString(2).slice(1)},"binary"),octal:f(function(c){return c>=0?"0o"+c.toString(8):"-0o"+c.toString(8).slice(1)},"octal"),decimal:f(function(c){return c.toString(10)},"decimal"),hexadecimal:f(function(c){return c>=0?"0x"+c.toString(16).toUpperCase():"-0x"+c.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Bn}f(Uh,"requireInt");var Ln,zd;function Gh(){if(zd)return Ln;zd=1;const e=os(),t=Ce(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(c){return c===null||!r.test(c)?!1:isFinite(parseFloat(c,10))?!0:i.test(c)}f(s,"resolveYamlFloat");function o(c){let h=c.toLowerCase();const u=h[0]==="-"?-1:1;return"+-".indexOf(h[0])>=0&&(h=h.slice(1)),h===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:h===".nan"?NaN:u*parseFloat(h,10)}f(o,"constructYamlFloat");const a=/^[-+]?[0-9]+e/;function n(c,h){if(isNaN(c))switch(h){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(h){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(h){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";const u=c.toString(10);return a.test(u)?u.replace("e",".e"):u}f(n,"representYamlFloat");function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return f(l,"isFloat"),Ln=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:o,predicate:l,represent:n,defaultStyle:"lowercase"}),Ln}f(Gh,"requireFloat");var Fn,Wd;function Xh(){return Wd||(Wd=1,Fn=Hh().extend({implicit:[Yh(),jh(),Uh(),Gh()]})),Fn}f(Xh,"requireJson");var An,Hd;function Vh(){return Hd||(Hd=1,An=Xh()),An}f(Vh,"requireCore");var En,Yd;function Zh(){if(Yd)return En;Yd=1;const e=Ce(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function i(a){return a===null?!1:t.exec(a)!==null||r.exec(a)!==null}f(i,"resolveYamlTimestamp");function s(a){let n=0,l=null,c=t.exec(a);if(c===null&&(c=r.exec(a)),c===null)throw new Error("Date resolve error");const h=+c[1],u=+c[2]-1,d=+c[3];if(!c[4])return new Date(Date.UTC(h,u,d));const p=+c[4],y=+c[5],m=+c[6];if(c[7]){for(n=c[7].slice(0,3);n.length<3;)n+="0";n=+n}if(c[9]){const C=+c[10],k=+(c[11]||0);l=(C*60+k)*6e4,c[9]==="-"&&(l=-l)}const x=new Date(Date.UTC(h,u,d,p,y,m,n));return l&&x.setTime(x.getTime()-l),x}f(s,"constructYamlTimestamp");function o(a){return a.toISOString()}return f(o,"representYamlTimestamp"),En=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:s,instanceOf:Date,represent:o}),En}f(Zh,"requireTimestamp");var Mn,jd;function Kh(){if(jd)return Mn;jd=1;const e=Ce();function t(r){return r==="<<"||r===null}return f(t,"resolveYamlMerge"),Mn=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),Mn}f(Kh,"requireMerge");var $n,Ud;function Qh(){if(Ud)return $n;Ud=1;const e=Ce(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
277
+ \r`;function r(a){if(a===null)return!1;let n=0;const l=a.length,c=t;for(let h=0;h<l;h++){const u=c.indexOf(a.charAt(h));if(!(u>64)){if(u<0)return!1;n+=6}}return n%8===0}f(r,"resolveYamlBinary");function i(a){const n=a.replace(/[\r\n=]/g,""),l=n.length,c=t;let h=0;const u=[];for(let p=0;p<l;p++)p%4===0&&p&&(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)),h=h<<6|c.indexOf(n.charAt(p));const d=l%4*6;return d===0?(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)):d===18?(u.push(h>>10&255),u.push(h>>2&255)):d===12&&u.push(h>>4&255),new Uint8Array(u)}f(i,"constructYamlBinary");function s(a){let n="",l=0;const c=a.length,h=t;for(let d=0;d<c;d++)d%3===0&&d&&(n+=h[l>>18&63],n+=h[l>>12&63],n+=h[l>>6&63],n+=h[l&63]),l=(l<<8)+a[d];const u=c%3;return u===0?(n+=h[l>>18&63],n+=h[l>>12&63],n+=h[l>>6&63],n+=h[l&63]):u===2?(n+=h[l>>10&63],n+=h[l>>4&63],n+=h[l<<2&63],n+=h[64]):u===1&&(n+=h[l>>2&63],n+=h[l<<4&63],n+=h[64],n+=h[64]),n}f(s,"representYamlBinary");function o(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return f(o,"isBinary"),$n=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:s}),$n}f(Qh,"requireBinary");var On,Gd;function Jh(){if(Gd)return On;Gd=1;const e=Ce(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(o){if(o===null)return!0;const a=[],n=o;for(let l=0,c=n.length;l<c;l+=1){const h=n[l];let u=!1;if(r.call(h)!=="[object Object]")return!1;let d;for(d in h)if(t.call(h,d))if(!u)u=!0;else return!1;if(!u)return!1;if(a.indexOf(d)===-1)a.push(d);else return!1}return!0}f(i,"resolveYamlOmap");function s(o){return o!==null?o:[]}return f(s,"constructYamlOmap"),On=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:s}),On}f(Jh,"requireOmap");var Dn,Xd;function tc(){if(Xd)return Dn;Xd=1;const e=Ce(),t=Object.prototype.toString;function r(s){if(s===null)return!0;const o=s,a=new Array(o.length);for(let n=0,l=o.length;n<l;n+=1){const c=o[n];if(t.call(c)!=="[object Object]")return!1;const h=Object.keys(c);if(h.length!==1)return!1;a[n]=[h[0],c[h[0]]]}return!0}f(r,"resolveYamlPairs");function i(s){if(s===null)return[];const o=s,a=new Array(o.length);for(let n=0,l=o.length;n<l;n+=1){const c=o[n],h=Object.keys(c);a[n]=[h[0],c[h[0]]]}return a}return f(i,"constructYamlPairs"),Dn=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),Dn}f(tc,"requirePairs");var In,Vd;function ec(){if(Vd)return In;Vd=1;const e=Ce(),t=Object.prototype.hasOwnProperty;function r(s){if(s===null)return!0;const o=s;for(const a in o)if(t.call(o,a)&&o[a]!==null)return!1;return!0}f(r,"resolveYamlSet");function i(s){return s!==null?s:{}}return f(i,"constructYamlSet"),In=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),In}f(ec,"requireSet");var Pn,Zd;function $a(){return Zd||(Zd=1,Pn=Vh().extend({implicit:[Zh(),Kh()],explicit:[Qh(),Jh(),tc(),ec()]})),Pn}f($a,"require_default");var Kd;function Xy(){if(Kd)return So;Kd=1;const e=os(),t=as(),r=Gy(),i=$a(),s=Object.prototype.hasOwnProperty,o=1,a=2,n=3,l=4,c=1,h=2,u=3,d=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,y=/[,\[\]{}]/,m=/^(?:!|!!|![0-9A-Za-z-]+!)$/,x=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function C(g){return Object.prototype.toString.call(g)}f(C,"_class");function k(g){return g===10||g===13}f(k,"isEol");function T(g){return g===9||g===32}f(T,"isWhiteSpace");function S(g){return g===9||g===32||g===10||g===13}f(S,"isWsOrEol");function v(g){return g===44||g===91||g===93||g===123||g===125}f(v,"isFlowIndicator");function L(g){if(g>=48&&g<=57)return g-48;const M=g|32;return M>=97&&M<=102?M-97+10:-1}f(L,"fromHexCode");function A(g){return g===120?2:g===117?4:g===85?8:0}f(A,"escapedHexLen");function F(g){return g>=48&&g<=57?g-48:-1}f(F,"fromDecimalCode");function G(g){switch(g){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
278
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}f(G,"simpleEscapeSequence");function Y(g){return g<=65535?String.fromCharCode(g):String.fromCharCode((g-65536>>10)+55296,(g-65536&1023)+56320)}f(Y,"charFromCodepoint");function N(g,M,U){M==="__proto__"?Object.defineProperty(g,M,{configurable:!0,enumerable:!0,writable:!0,value:U}):g[M]=U}f(N,"setProperty");const st=new Array(256),j=new Array(256);for(let g=0;g<256;g++)st[g]=G(g)?1:0,j[g]=G(g);function $(g,M){this.input=g,this.filename=M.filename||null,this.schema=M.schema||i,this.onWarning=M.onWarning||null,this.legacy=M.legacy||!1,this.json=M.json||!1,this.listener=M.listener||null,this.maxDepth=typeof M.maxDepth=="number"?M.maxDepth:100,this.maxTotalMergeKeys=typeof M.maxTotalMergeKeys=="number"?M.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=g.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}f($,"State");function D(g,M){const U={name:g.filename,buffer:g.input.slice(0,-1),position:g.position,line:g.line,column:g.position-g.lineStart};return U.snippet=r(U),new t(M,U)}f(D,"generateError");function B(g,M){throw D(g,M)}f(B,"throwError");function q(g,M){g.onWarning&&g.onWarning.call(null,D(g,M))}f(q,"throwWarning");function I(g,M,U){const V=g.anchorMapTransactions;if(V.length!==0){const H=V[V.length-1];s.call(H,M)||(H[M]={existed:s.call(g.anchorMap,M),value:g.anchorMap[M]})}g.anchorMap[M]=U}f(I,"storeAnchor");function it(g){g.anchorMapTransactions.push(Object.create(null))}f(it,"beginAnchorTransaction");function J(g){const M=g.anchorMapTransactions.pop(),U=g.anchorMapTransactions;if(U.length===0)return;const V=U[U.length-1],H=Object.keys(M);for(let rt=0,w=H.length;rt<w;rt+=1){const P=H[rt];s.call(V,P)||(V[P]=M[P])}}f(J,"commitAnchorTransaction");function mt(g){const M=g.anchorMapTransactions.pop(),U=Object.keys(M);for(let V=U.length-1;V>=0;V-=1){const H=M[U[V]];H.existed?g.anchorMap[U[V]]=H.value:delete g.anchorMap[U[V]]}}f(mt,"rollbackAnchorTransaction");function _t(g){return{position:g.position,line:g.line,lineStart:g.lineStart,lineIndent:g.lineIndent,firstTabInLine:g.firstTabInLine,tag:g.tag,anchor:g.anchor,kind:g.kind,result:g.result}}f(_t,"snapshotState");function Tt(g,M){g.position=M.position,g.line=M.line,g.lineStart=M.lineStart,g.lineIndent=M.lineIndent,g.firstTabInLine=M.firstTabInLine,g.tag=M.tag,g.anchor=M.anchor,g.kind=M.kind,g.result=M.result}f(Tt,"restoreState");const ft={YAML:f(function(M,U,V){M.version!==null&&B(M,"duplication of %YAML directive"),V.length!==1&&B(M,"YAML directive accepts exactly one argument");const H=/^([0-9]+)\.([0-9]+)$/.exec(V[0]);H===null&&B(M,"ill-formed argument of the YAML directive");const rt=parseInt(H[1],10),w=parseInt(H[2],10);rt!==1&&B(M,"unacceptable YAML version of the document"),M.version=V[0],M.checkLineBreaks=w<2,w!==1&&w!==2&&q(M,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:f(function(M,U,V){let H;V.length!==2&&B(M,"TAG directive accepts exactly two arguments");const rt=V[0];H=V[1],m.test(rt)||B(M,"ill-formed tag handle (first argument) of the TAG directive"),s.call(M.tagMap,rt)&&B(M,'there is a previously declared suffix for "'+rt+'" tag handle'),x.test(H)||B(M,"ill-formed tag prefix (second argument) of the TAG directive");try{H=decodeURIComponent(H)}catch{B(M,"tag prefix is malformed: "+H)}M.tagMap[rt]=H},"handleTagDirective")};function Lt(g,M,U,V){if(M<U){const H=g.input.slice(M,U);if(V)for(let rt=0,w=H.length;rt<w;rt+=1){const P=H.charCodeAt(rt);P===9||P>=32&&P<=1114111||B(g,"expected valid JSON character")}else d.test(H)&&B(g,"the stream contains non-printable characters");g.result+=H}}f(Lt,"captureSegment");function gt(g,M,U,V){e.isObject(U)||B(g,"cannot merge mappings; the provided source object is unacceptable");const H=Object.keys(U);for(let rt=0,w=H.length;rt<w;rt+=1){const P=H[rt];g.maxTotalMergeKeys!==-1&&++g.totalMergeKeys>g.maxTotalMergeKeys&&B(g,"merge keys exceeded maxTotalMergeKeys ("+g.maxTotalMergeKeys+")"),s.call(M,P)||(N(M,P,U[P]),V[P]=!0)}}f(gt,"mergeMappings");function wt(g,M,U,V,H,rt,w,P,tt){if(Array.isArray(H)){H=Array.prototype.slice.call(H);for(let X=0,Z=H.length;X<Z;X+=1)Array.isArray(H[X])&&B(g,"nested arrays are not supported inside keys"),typeof H=="object"&&C(H[X])==="[object Object]"&&(H[X]="[object Object]")}if(typeof H=="object"&&C(H)==="[object Object]"&&(H="[object Object]"),H=String(H),M===null&&(M={}),V==="tag:yaml.org,2002:merge")if(Array.isArray(rt))for(let X=0,Z=rt.length;X<Z;X+=1)gt(g,M,rt[X],U);else gt(g,M,rt,U);else!g.json&&!s.call(U,H)&&s.call(M,H)&&(g.line=w||g.line,g.lineStart=P||g.lineStart,g.position=tt||g.position,B(g,"duplicated mapping key")),N(M,H,rt),delete U[H];return M}f(wt,"storeMappingPair");function $t(g){const M=g.input.charCodeAt(g.position);M===10?g.position++:M===13?(g.position++,g.input.charCodeAt(g.position)===10&&g.position++):B(g,"a line break is expected"),g.line+=1,g.lineStart=g.position,g.firstTabInLine=-1}f($t,"readLineBreak");function Bt(g,M,U){let V=0,H=g.input.charCodeAt(g.position);for(;H!==0;){for(;T(H);)H===9&&g.firstTabInLine===-1&&(g.firstTabInLine=g.position),H=g.input.charCodeAt(++g.position);if(M&&H===35)do H=g.input.charCodeAt(++g.position);while(H!==10&&H!==13&&H!==0);if(k(H))for($t(g),H=g.input.charCodeAt(g.position),V++,g.lineIndent=0;H===32;)g.lineIndent++,H=g.input.charCodeAt(++g.position);else break}return U!==-1&&V!==0&&g.lineIndent<U&&q(g,"deficient indentation"),V}f(Bt,"skipSeparationSpace");function Nt(g){let M=g.position,U=g.input.charCodeAt(M);return!!((U===45||U===46)&&U===g.input.charCodeAt(M+1)&&U===g.input.charCodeAt(M+2)&&(M+=3,U=g.input.charCodeAt(M),U===0||S(U)))}f(Nt,"testDocumentSeparator");function zt(g,M){M===1?g.result+=" ":M>1&&(g.result+=e.repeat(`
279
+ `,M-1))}f(zt,"writeFoldedLines");function le(g,M,U){let V,H,rt,w,P,tt;const X=g.kind,Z=g.result;let et=g.input.charCodeAt(g.position);if(S(et)||v(et)||et===35||et===38||et===42||et===33||et===124||et===62||et===39||et===34||et===37||et===64||et===96)return!1;if(et===63||et===45){const K=g.input.charCodeAt(g.position+1);if(S(K)||U&&v(K))return!1}for(g.kind="scalar",g.result="",V=H=g.position,rt=!1;et!==0;){if(et===58){const K=g.input.charCodeAt(g.position+1);if(S(K)||U&&v(K))break}else if(et===35){const K=g.input.charCodeAt(g.position-1);if(S(K))break}else{if(g.position===g.lineStart&&Nt(g)||U&&v(et))break;if(k(et))if(w=g.line,P=g.lineStart,tt=g.lineIndent,Bt(g,!1,-1),g.lineIndent>=M){rt=!0,et=g.input.charCodeAt(g.position);continue}else{g.position=H,g.line=w,g.lineStart=P,g.lineIndent=tt;break}}rt&&(Lt(g,V,H,!1),zt(g,g.line-w),V=H=g.position,rt=!1),T(et)||(H=g.position+1),et=g.input.charCodeAt(++g.position)}return Lt(g,V,H,!1),g.result?!0:(g.kind=X,g.result=Z,!1)}f(le,"readPlainScalar");function Se(g,M){let U,V,H=g.input.charCodeAt(g.position);if(H!==39)return!1;for(g.kind="scalar",g.result="",g.position++,U=V=g.position;(H=g.input.charCodeAt(g.position))!==0;)if(H===39)if(Lt(g,U,g.position,!0),H=g.input.charCodeAt(++g.position),H===39)U=g.position,g.position++,V=g.position;else return!0;else k(H)?(Lt(g,U,V,!0),zt(g,Bt(g,!1,M)),U=V=g.position):g.position===g.lineStart&&Nt(g)?B(g,"unexpected end of the document within a single quoted scalar"):(g.position++,T(H)||(V=g.position));B(g,"unexpected end of the stream within a single quoted scalar")}f(Se,"readSingleQuotedScalar");function It(g,M){let U,V,H,rt=g.input.charCodeAt(g.position);if(rt!==34)return!1;for(g.kind="scalar",g.result="",g.position++,U=V=g.position;(rt=g.input.charCodeAt(g.position))!==0;){if(rt===34)return Lt(g,U,g.position,!0),g.position++,!0;if(rt===92){if(Lt(g,U,g.position,!0),rt=g.input.charCodeAt(++g.position),k(rt))Bt(g,!1,M);else if(rt<256&&st[rt])g.result+=j[rt],g.position++;else if((H=A(rt))>0){let w=H,P=0;for(;w>0;w--)rt=g.input.charCodeAt(++g.position),(H=L(rt))>=0?P=(P<<4)+H:B(g,"expected hexadecimal character");g.result+=Y(P),g.position++}else B(g,"unknown escape sequence");U=V=g.position}else k(rt)?(Lt(g,U,V,!0),zt(g,Bt(g,!1,M)),U=V=g.position):g.position===g.lineStart&&Nt(g)?B(g,"unexpected end of the document within a double quoted scalar"):(g.position++,T(rt)||(V=g.position))}B(g,"unexpected end of the stream within a double quoted scalar")}f(It,"readDoubleQuotedScalar");function mr(g,M){let U=!0,V,H,rt;const w=g.tag;let P;const tt=g.anchor;let X,Z,et,K;const lt=Object.create(null);let nt,yt,kt,Ot=g.input.charCodeAt(g.position);if(Ot===91)X=93,K=!1,P=[];else if(Ot===123)X=125,K=!0,P={};else return!1;for(g.anchor!==null&&I(g,g.anchor,P),Ot=g.input.charCodeAt(++g.position);Ot!==0;){if(Bt(g,!0,M),Ot=g.input.charCodeAt(g.position),Ot===X)return g.position++,g.tag=w,g.anchor=tt,g.kind=K?"mapping":"sequence",g.result=P,!0;if(U?Ot===44&&B(g,"expected the node content, but found ','"):B(g,"missed comma between flow collection entries"),yt=nt=kt=null,Z=et=!1,Ot===63){const jt=g.input.charCodeAt(g.position+1);S(jt)&&(Z=et=!0,g.position++,Bt(g,!0,M))}V=g.line,H=g.lineStart,rt=g.position,ke(g,M,o,!1,!0),yt=g.tag,nt=g.result,Bt(g,!0,M),Ot=g.input.charCodeAt(g.position),(et||g.line===V)&&Ot===58&&(Z=!0,Ot=g.input.charCodeAt(++g.position),Bt(g,!0,M),ke(g,M,o,!1,!0),kt=g.result),K?wt(g,P,lt,yt,nt,kt,V,H,rt):Z?P.push(wt(g,null,lt,yt,nt,kt,V,H,rt)):P.push(nt),Bt(g,!0,M),Ot=g.input.charCodeAt(g.position),Ot===44?(U=!0,Ot=g.input.charCodeAt(++g.position)):U=!1}B(g,"unexpected end of the stream within a flow collection")}f(mr,"readFlowCollection");function Ht(g,M){let U,V=c,H=!1,rt=!1,w=M,P=0,tt=!1,X,Z=g.input.charCodeAt(g.position);if(Z===124)U=!1;else if(Z===62)U=!0;else return!1;for(g.kind="scalar",g.result="";Z!==0;)if(Z=g.input.charCodeAt(++g.position),Z===43||Z===45)c===V?V=Z===43?u:h:B(g,"repeat of a chomping mode identifier");else if((X=F(Z))>=0)X===0?B(g,"bad explicit indentation width of a block scalar; it cannot be less than one"):rt?B(g,"repeat of an indentation width identifier"):(w=M+X-1,rt=!0);else break;if(T(Z)){do Z=g.input.charCodeAt(++g.position);while(T(Z));if(Z===35)do Z=g.input.charCodeAt(++g.position);while(!k(Z)&&Z!==0)}for(;Z!==0;){for($t(g),g.lineIndent=0,Z=g.input.charCodeAt(g.position);(!rt||g.lineIndent<w)&&Z===32;)g.lineIndent++,Z=g.input.charCodeAt(++g.position);if(!rt&&g.lineIndent>w&&(w=g.lineIndent),k(Z)){P++;continue}if(!rt&&w===0&&B(g,"missing indentation for block scalar"),g.lineIndent<w){V===u?g.result+=e.repeat(`
280
+ `,H?1+P:P):V===c&&H&&(g.result+=`
281
+ `);break}U?T(Z)?(tt=!0,g.result+=e.repeat(`
282
+ `,H?1+P:P)):tt?(tt=!1,g.result+=e.repeat(`
283
+ `,P+1)):P===0?H&&(g.result+=" "):g.result+=e.repeat(`
284
+ `,P):g.result+=e.repeat(`
285
+ `,H?1+P:P),H=!0,rt=!0,P=0;const et=g.position;for(;!k(Z)&&Z!==0;)Z=g.input.charCodeAt(++g.position);Lt(g,et,g.position,!1)}return!0}f(Ht,"readBlockScalar");function ve(g,M){const U=g.tag,V=g.anchor,H=[];let rt=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&I(g,g.anchor,H);let w=g.input.charCodeAt(g.position);for(;w!==0&&(g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,B(g,"tab characters must not be used in indentation")),w===45);){const P=g.input.charCodeAt(g.position+1);if(!S(P))break;if(rt=!0,g.position++,Bt(g,!0,-1)&&g.lineIndent<=M){H.push(null),w=g.input.charCodeAt(g.position);continue}const tt=g.line;if(ke(g,M,n,!1,!0),H.push(g.result),Bt(g,!0,-1),w=g.input.charCodeAt(g.position),(g.line===tt||g.lineIndent>M)&&w!==0)B(g,"bad indentation of a sequence entry");else if(g.lineIndent<M)break}return rt?(g.tag=U,g.anchor=V,g.kind="sequence",g.result=H,!0):!1}f(ve,"readBlockSequence");function he(g,M,U){let V,H,rt,w;const P=g.tag,tt=g.anchor,X={},Z=Object.create(null);let et=null,K=null,lt=null,nt=!1,yt=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&I(g,g.anchor,X);let kt=g.input.charCodeAt(g.position);for(;kt!==0;){!nt&&g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,B(g,"tab characters must not be used in indentation"));const Ot=g.input.charCodeAt(g.position+1),jt=g.line;if((kt===63||kt===58)&&S(Ot))kt===63?(nt&&(wt(g,X,Z,et,K,null,H,rt,w),et=K=lt=null),yt=!0,nt=!0,V=!0):nt?(nt=!1,V=!0):B(g,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),g.position+=1,kt=Ot;else{if(H=g.line,rt=g.lineStart,w=g.position,!ke(g,U,a,!1,!0))break;if(g.line===jt){for(kt=g.input.charCodeAt(g.position);T(kt);)kt=g.input.charCodeAt(++g.position);if(kt===58)kt=g.input.charCodeAt(++g.position),S(kt)||B(g,"a whitespace character is expected after the key-value separator within a block mapping"),nt&&(wt(g,X,Z,et,K,null,H,rt,w),et=K=lt=null),yt=!0,nt=!1,V=!1,et=g.tag,K=g.result;else if(yt)B(g,"can not read an implicit mapping pair; a colon is missed");else return g.tag=P,g.anchor=tt,!0}else if(yt)B(g,"can not read a block mapping entry; a multiline key may not be an implicit key");else return g.tag=P,g.anchor=tt,!0}if((g.line===jt||g.lineIndent>M)&&(nt&&(H=g.line,rt=g.lineStart,w=g.position),ke(g,M,l,!0,V)&&(nt?K=g.result:lt=g.result),nt||(wt(g,X,Z,et,K,lt,H,rt,w),et=K=lt=null),Bt(g,!0,-1),kt=g.input.charCodeAt(g.position)),(g.line===jt||g.lineIndent>M)&&kt!==0)B(g,"bad indentation of a mapping entry");else if(g.lineIndent<M)break}return nt&&wt(g,X,Z,et,K,null,H,rt,w),yt&&(g.tag=P,g.anchor=tt,g.kind="mapping",g.result=X),yt}f(he,"readBlockMapping");function He(g){let M=!1,U=!1,V,H,rt=g.input.charCodeAt(g.position);if(rt!==33)return!1;g.tag!==null&&B(g,"duplication of a tag property"),rt=g.input.charCodeAt(++g.position),rt===60?(M=!0,rt=g.input.charCodeAt(++g.position)):rt===33?(U=!0,V="!!",rt=g.input.charCodeAt(++g.position)):V="!";let w=g.position;if(M){do rt=g.input.charCodeAt(++g.position);while(rt!==0&&rt!==62);g.position<g.length?(H=g.input.slice(w,g.position),rt=g.input.charCodeAt(++g.position)):B(g,"unexpected end of the stream within a verbatim tag")}else{for(;rt!==0&&!S(rt);)rt===33&&(U?B(g,"tag suffix cannot contain exclamation marks"):(V=g.input.slice(w-1,g.position+1),m.test(V)||B(g,"named tag handle cannot contain such characters"),U=!0,w=g.position+1)),rt=g.input.charCodeAt(++g.position);H=g.input.slice(w,g.position),y.test(H)&&B(g,"tag suffix cannot contain flow indicator characters")}H&&!x.test(H)&&B(g,"tag name cannot contain such characters: "+H);try{H=decodeURIComponent(H)}catch{B(g,"tag name is malformed: "+H)}return M?g.tag=H:s.call(g.tagMap,V)?g.tag=g.tagMap[V]+H:V==="!"?g.tag="!"+H:V==="!!"?g.tag="tag:yaml.org,2002:"+H:B(g,'undeclared tag handle "'+V+'"'),!0}f(He,"readTagProperty");function yr(g){let M=g.input.charCodeAt(g.position);if(M!==38)return!1;g.anchor!==null&&B(g,"duplication of an anchor property"),M=g.input.charCodeAt(++g.position);const U=g.position;for(;M!==0&&!S(M)&&!v(M);)M=g.input.charCodeAt(++g.position);return g.position===U&&B(g,"name of an anchor node must contain at least one character"),g.anchor=g.input.slice(U,g.position),!0}f(yr,"readAnchorProperty");function be(g){let M=g.input.charCodeAt(g.position);if(M!==42)return!1;M=g.input.charCodeAt(++g.position);const U=g.position;for(;M!==0&&!S(M)&&!v(M);)M=g.input.charCodeAt(++g.position);g.position===U&&B(g,"name of an alias node must contain at least one character");const V=g.input.slice(U,g.position);return s.call(g.anchorMap,V)||B(g,'unidentified alias "'+V+'"'),g.result=g.anchorMap[V],Bt(g,!0,-1),!0}f(be,"readAlias");function Mr(g,M,U,V){const H=_t(g);return it(g),Tt(g,M),g.tag=null,g.anchor=null,g.kind=null,g.result=null,he(g,U,V)&&g.kind==="mapping"?(J(g),!0):(mt(g),Tt(g,H),!1)}f(Mr,"tryReadBlockMappingFromProperty");function ke(g,M,U,V,H){let rt,w,P=1,tt=!1,X=!1,Z=null,et,K,lt;g.depth>=g.maxDepth&&B(g,"nesting exceeded maxDepth ("+g.maxDepth+")"),g.depth+=1,g.listener!==null&&g.listener("open",g),g.tag=null,g.anchor=null,g.kind=null,g.result=null;const nt=rt=w=l===U||n===U;if(V&&Bt(g,!0,-1)&&(tt=!0,g.lineIndent>M?P=1:g.lineIndent===M?P=0:g.lineIndent<M&&(P=-1)),P===1)for(;;){const yt=g.input.charCodeAt(g.position),kt=_t(g);if(tt&&(yt===33&&g.tag!==null||yt===38&&g.anchor!==null)||!He(g)&&!yr(g))break;Z===null&&(Z=kt),Bt(g,!0,-1)?(tt=!0,w=nt,g.lineIndent>M?P=1:g.lineIndent===M?P=0:g.lineIndent<M&&(P=-1)):w=!1}if(w&&(w=tt||H),P===1||l===U)if(o===U||a===U?K=M:K=M+1,lt=g.position-g.lineStart,P===1)if(w&&(ve(g,lt)||he(g,lt,K))||mr(g,K))X=!0;else{const yt=g.input.charCodeAt(g.position);Z!==null&&nt&&!w&&yt!==124&&yt!==62&&Mr(g,Z,Z.position-Z.lineStart,K)||rt&&Ht(g,K)||Se(g,K)||It(g,K)?X=!0:be(g)?(X=!0,(g.tag!==null||g.anchor!==null)&&B(g,"alias node should not have any properties")):le(g,K,o===U)&&(X=!0,g.tag===null&&(g.tag="?")),g.anchor!==null&&I(g,g.anchor,g.result)}else P===0&&(X=w&&ve(g,lt));if(g.tag===null)g.anchor!==null&&I(g,g.anchor,g.result);else if(g.tag==="?"){g.result!==null&&g.kind!=="scalar"&&B(g,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+g.kind+'"');for(let yt=0,kt=g.implicitTypes.length;yt<kt;yt+=1)if(et=g.implicitTypes[yt],et.resolve(g.result)){g.result=et.construct(g.result),g.tag=et.tag,g.anchor!==null&&I(g,g.anchor,g.result);break}}else if(g.tag!=="!"){if(s.call(g.typeMap[g.kind||"fallback"],g.tag))et=g.typeMap[g.kind||"fallback"][g.tag];else{et=null;const yt=g.typeMap.multi[g.kind||"fallback"];for(let kt=0,Ot=yt.length;kt<Ot;kt+=1)if(g.tag.slice(0,yt[kt].tag.length)===yt[kt].tag){et=yt[kt];break}}et||B(g,"unknown tag !<"+g.tag+">"),g.result!==null&&et.kind!==g.kind&&B(g,"unacceptable node kind for !<"+g.tag+'> tag; it should be "'+et.kind+'", not "'+g.kind+'"'),et.resolve(g.result,g.tag)?(g.result=et.construct(g.result,g.tag),g.anchor!==null&&I(g,g.anchor,g.result)):B(g,"cannot resolve a node with !<"+g.tag+"> explicit tag")}return g.listener!==null&&g.listener("close",g),g.depth-=1,g.tag!==null||g.anchor!==null||X}f(ke,"composeNode");function $r(g){const M=g.position;let U=!1,V;for(g.version=null,g.checkLineBreaks=g.legacy,g.tagMap=Object.create(null),g.anchorMap=Object.create(null);(V=g.input.charCodeAt(g.position))!==0&&(Bt(g,!0,-1),V=g.input.charCodeAt(g.position),!(g.lineIndent>0||V!==37));){U=!0,V=g.input.charCodeAt(++g.position);let H=g.position;for(;V!==0&&!S(V);)V=g.input.charCodeAt(++g.position);const rt=g.input.slice(H,g.position),w=[];for(rt.length<1&&B(g,"directive name must not be less than one character in length");V!==0;){for(;T(V);)V=g.input.charCodeAt(++g.position);if(V===35){do V=g.input.charCodeAt(++g.position);while(V!==0&&!k(V));break}if(k(V))break;for(H=g.position;V!==0&&!S(V);)V=g.input.charCodeAt(++g.position);w.push(g.input.slice(H,g.position))}V!==0&&$t(g),s.call(ft,rt)?ft[rt](g,rt,w):q(g,'unknown document directive "'+rt+'"')}if(Bt(g,!0,-1),g.lineIndent===0&&g.input.charCodeAt(g.position)===45&&g.input.charCodeAt(g.position+1)===45&&g.input.charCodeAt(g.position+2)===45?(g.position+=3,Bt(g,!0,-1)):U&&B(g,"directives end mark is expected"),ke(g,g.lineIndent-1,l,!1,!0),Bt(g,!0,-1),g.checkLineBreaks&&p.test(g.input.slice(M,g.position))&&q(g,"non-ASCII line breaks are interpreted as content"),g.documents.push(g.result),g.position===g.lineStart&&Nt(g)){g.input.charCodeAt(g.position)===46&&(g.position+=3,Bt(g,!0,-1));return}g.position<g.length-1&&B(g,"end of the stream or a document separator is expected")}f($r,"readDocument");function xr(g,M){g=String(g),M=M||{},g.length!==0&&(g.charCodeAt(g.length-1)!==10&&g.charCodeAt(g.length-1)!==13&&(g+=`
286
+ `),g.charCodeAt(0)===65279&&(g=g.slice(1)));const U=new $(g,M),V=g.indexOf("\0");for(V!==-1&&(U.position=V,B(U,"null byte is not allowed in input")),U.input+="\0";U.input.charCodeAt(U.position)===32;)U.lineIndent+=1,U.position+=1;for(;U.position<U.length-1;)$r(U);return U.documents}f(xr,"loadDocuments");function we(g,M,U){M!==null&&typeof M=="object"&&typeof U>"u"&&(U=M,M=null);const V=xr(g,U);if(typeof M!="function")return V;for(let H=0,rt=V.length;H<rt;H+=1)M(V[H])}f(we,"loadAll2");function Oe(g,M){const U=xr(g,M);if(U.length!==0){if(U.length===1)return U[0];throw new t("expected a single document in the stream, but found more")}}return f(Oe,"load2"),So.loadAll=we,So.load=Oe,So}f(Xy,"requireLoader");var Rn={},Qd;function Vy(){if(Qd)return Rn;Qd=1;const e=os(),t=as(),r=$a(),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=65279,a=9,n=10,l=13,c=32,h=33,u=34,d=35,p=37,y=38,m=39,x=42,C=44,k=45,T=58,S=61,v=62,L=63,A=64,F=91,G=93,Y=96,N=123,st=124,j=125,$={};$[0]="\\0",$[7]="\\a",$[8]="\\b",$[9]="\\t",$[10]="\\n",$[11]="\\v",$[12]="\\f",$[13]="\\r",$[27]="\\e",$[34]='\\"',$[92]="\\\\",$[133]="\\N",$[160]="\\_",$[8232]="\\L",$[8233]="\\P";const D=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],B=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function q(w,P){if(P===null)return{};const tt={},X=Object.keys(P);for(let Z=0,et=X.length;Z<et;Z+=1){let K=X[Z],lt=String(P[K]);K.slice(0,2)==="!!"&&(K="tag:yaml.org,2002:"+K.slice(2));const nt=w.compiledTypeMap.fallback[K];nt&&s.call(nt.styleAliases,lt)&&(lt=nt.styleAliases[lt]),tt[K]=lt}return tt}f(q,"compileStyleMap");function I(w){let P,tt;const X=w.toString(16).toUpperCase();if(w<=255)P="x",tt=2;else if(w<=65535)P="u",tt=4;else if(w<=4294967295)P="U",tt=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+P+e.repeat("0",tt-X.length)+X}f(I,"encodeHex");const it=1,J=2;function mt(w){this.schema=w.schema||r,this.indent=Math.max(1,w.indent||2),this.noArrayIndent=w.noArrayIndent||!1,this.skipInvalid=w.skipInvalid||!1,this.flowLevel=e.isNothing(w.flowLevel)?-1:w.flowLevel,this.styleMap=q(this.schema,w.styles||null),this.sortKeys=w.sortKeys||!1,this.lineWidth=w.lineWidth||80,this.noRefs=w.noRefs||!1,this.noCompatMode=w.noCompatMode||!1,this.condenseFlow=w.condenseFlow||!1,this.quotingType=w.quotingType==='"'?J:it,this.forceQuotes=w.forceQuotes||!1,this.replacer=typeof w.replacer=="function"?w.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}f(mt,"State");function _t(w,P){const tt=e.repeat(" ",P);let X=0,Z="";const et=w.length;for(;X<et;){let K;const lt=w.indexOf(`
287
+ `,X);lt===-1?(K=w.slice(X),X=et):(K=w.slice(X,lt+1),X=lt+1),K.length&&K!==`
288
+ `&&(Z+=tt),Z+=K}return Z}f(_t,"indentString");function Tt(w,P){return`
289
+ `+e.repeat(" ",w.indent*P)}f(Tt,"generateNextLine");function ft(w,P){for(let tt=0,X=w.implicitTypes.length;tt<X;tt+=1)if(w.implicitTypes[tt].resolve(P))return!0;return!1}f(ft,"testImplicitResolving");function Lt(w){return w===c||w===a}f(Lt,"isWhitespace");function gt(w){return w>=32&&w<=126||w>=161&&w<=55295&&w!==8232&&w!==8233||w>=57344&&w<=65533&&w!==o||w>=65536&&w<=1114111}f(gt,"isPrintable");function wt(w){return gt(w)&&w!==o&&w!==l&&w!==n}f(wt,"isNsCharOrWhitespace");function $t(w,P,tt){const X=wt(w),Z=X&&!Lt(w);return(tt?X:X&&w!==C&&w!==F&&w!==G&&w!==N&&w!==j)&&w!==d&&!(P===T&&!Z)||wt(P)&&!Lt(P)&&w===d||P===T&&Z}f($t,"isPlainSafe");function Bt(w){return gt(w)&&w!==o&&!Lt(w)&&w!==k&&w!==L&&w!==T&&w!==C&&w!==F&&w!==G&&w!==N&&w!==j&&w!==d&&w!==y&&w!==x&&w!==h&&w!==st&&w!==S&&w!==v&&w!==m&&w!==u&&w!==p&&w!==A&&w!==Y}f(Bt,"isPlainSafeFirst");function Nt(w){return!Lt(w)&&w!==T}f(Nt,"isPlainSafeLast");function zt(w,P){const tt=w.charCodeAt(P);let X;return tt>=55296&&tt<=56319&&P+1<w.length&&(X=w.charCodeAt(P+1),X>=56320&&X<=57343)?(tt-55296)*1024+X-56320+65536:tt}f(zt,"codePointAt");function le(w){return/^\n* /.test(w)}f(le,"needIndentIndicator");const Se=1,It=2,mr=3,Ht=4,ve=5;function he(w,P,tt,X,Z,et,K,lt){let nt,yt=0,kt=null,Ot=!1,jt=!1;const ls=X!==-1;let Je=-1,tr=Bt(zt(w,0))&&Nt(zt(w,w.length-1));if(P||K)for(nt=0;nt<w.length;yt>=65536?nt+=2:nt++){if(yt=zt(w,nt),!gt(yt))return ve;tr=tr&&$t(yt,kt,lt),kt=yt}else{for(nt=0;nt<w.length;yt>=65536?nt+=2:nt++){if(yt=zt(w,nt),yt===n)Ot=!0,ls&&(jt=jt||nt-Je-1>X&&w[Je+1]!==" ",Je=nt);else if(!gt(yt))return ve;tr=tr&&$t(yt,kt,lt),kt=yt}jt=jt||ls&&nt-Je-1>X&&w[Je+1]!==" "}return!Ot&&!jt?tr&&!K&&!Z(w)?Se:et===J?ve:It:tt>9&&le(w)?ve:K?et===J?ve:It:jt?Ht:mr}f(he,"chooseScalarStyle");function He(w,P,tt,X,Z){w.dump=function(){if(P.length===0)return w.quotingType===J?'""':"''";if(!w.noCompatMode&&(D.indexOf(P)!==-1||B.test(P)))return w.quotingType===J?'"'+P+'"':"'"+P+"'";const et=w.indent*Math.max(1,tt),K=w.lineWidth===-1?-1:Math.max(Math.min(w.lineWidth,40),w.lineWidth-et),lt=X||w.flowLevel>-1&&tt>=w.flowLevel;function nt(yt){return ft(w,yt)}switch(f(nt,"testAmbiguity"),he(P,lt,w.indent,K,nt,w.quotingType,w.forceQuotes&&!X,Z)){case Se:return P;case It:return"'"+P.replace(/'/g,"''")+"'";case mr:return"|"+yr(P,w.indent)+be(_t(P,et));case Ht:return">"+yr(P,w.indent)+be(_t(Mr(P,K),et));case ve:return'"'+$r(P)+'"';default:throw new t("impossible error: invalid scalar style")}}()}f(He,"writeScalar");function yr(w,P){const tt=le(w)?String(P):"",X=w[w.length-1]===`
290
+ `,et=X&&(w[w.length-2]===`
291
+ `||w===`
292
+ `)?"+":X?"":"-";return tt+et+`
293
+ `}f(yr,"blockHeader");function be(w){return w[w.length-1]===`
294
+ `?w.slice(0,-1):w}f(be,"dropEndingNewline");function Mr(w,P){const tt=/(\n+)([^\n]*)/g;let X=function(){let lt=w.indexOf(`
295
+ `);return lt=lt!==-1?lt:w.length,tt.lastIndex=lt,ke(w.slice(0,lt),P)}(),Z=w[0]===`
296
+ `||w[0]===" ",et,K;for(;K=tt.exec(w);){const lt=K[1],nt=K[2];et=nt[0]===" ",X+=lt+(!Z&&!et&&nt!==""?`
297
+ `:"")+ke(nt,P),Z=et}return X}f(Mr,"foldString");function ke(w,P){if(w===""||w[0]===" ")return w;const tt=/ [^ ]/g;let X,Z=0,et,K=0,lt=0,nt="";for(;X=tt.exec(w);)lt=X.index,lt-Z>P&&(et=K>Z?K:lt,nt+=`
298
+ `+w.slice(Z,et),Z=et+1),K=lt;return nt+=`
299
+ `,w.length-Z>P&&K>Z?nt+=w.slice(Z,K)+`
300
+ `+w.slice(K+1):nt+=w.slice(Z),nt.slice(1)}f(ke,"foldLine");function $r(w){let P="",tt=0;for(let X=0;X<w.length;tt>=65536?X+=2:X++){tt=zt(w,X);const Z=$[tt];!Z&&gt(tt)?(P+=w[X],tt>=65536&&(P+=w[X+1])):P+=Z||I(tt)}return P}f($r,"escapeString");function xr(w,P,tt){let X="";const Z=w.tag;for(let et=0,K=tt.length;et<K;et+=1){let lt=tt[et];w.replacer&&(lt=w.replacer.call(tt,String(et),lt)),(U(w,P,lt,!1,!1)||typeof lt>"u"&&U(w,P,null,!1,!1))&&(X!==""&&(X+=","+(w.condenseFlow?"":" ")),X+=w.dump)}w.tag=Z,w.dump="["+X+"]"}f(xr,"writeFlowSequence");function we(w,P,tt,X){let Z="";const et=w.tag;for(let K=0,lt=tt.length;K<lt;K+=1){let nt=tt[K];w.replacer&&(nt=w.replacer.call(tt,String(K),nt)),(U(w,P+1,nt,!0,!0,!1,!0)||typeof nt>"u"&&U(w,P+1,null,!0,!0,!1,!0))&&((!X||Z!=="")&&(Z+=Tt(w,P)),w.dump&&n===w.dump.charCodeAt(0)?Z+="-":Z+="- ",Z+=w.dump)}w.tag=et,w.dump=Z||"[]"}f(we,"writeBlockSequence");function Oe(w,P,tt){let X="";const Z=w.tag,et=Object.keys(tt);for(let K=0,lt=et.length;K<lt;K+=1){let nt="";X!==""&&(nt+=", "),w.condenseFlow&&(nt+='"');const yt=et[K];let kt=tt[yt];w.replacer&&(kt=w.replacer.call(tt,yt,kt)),U(w,P,yt,!1,!1)&&(w.dump.length>1024&&(nt+="? "),nt+=w.dump+(w.condenseFlow?'"':"")+":"+(w.condenseFlow?"":" "),U(w,P,kt,!1,!1)&&(nt+=w.dump,X+=nt))}w.tag=Z,w.dump="{"+X+"}"}f(Oe,"writeFlowMapping");function g(w,P,tt,X){let Z="";const et=w.tag,K=Object.keys(tt);if(w.sortKeys===!0)K.sort();else if(typeof w.sortKeys=="function")K.sort(w.sortKeys);else if(w.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let lt=0,nt=K.length;lt<nt;lt+=1){let yt="";(!X||Z!=="")&&(yt+=Tt(w,P));const kt=K[lt];let Ot=tt[kt];if(w.replacer&&(Ot=w.replacer.call(tt,kt,Ot)),!U(w,P+1,kt,!0,!0,!0))continue;const jt=w.tag!==null&&w.tag!=="?"||w.dump&&w.dump.length>1024;jt&&(w.dump&&n===w.dump.charCodeAt(0)?yt+="?":yt+="? "),yt+=w.dump,jt&&(yt+=Tt(w,P)),U(w,P+1,Ot,!0,jt)&&(w.dump&&n===w.dump.charCodeAt(0)?yt+=":":yt+=": ",yt+=w.dump,Z+=yt)}w.tag=et,w.dump=Z||"{}"}f(g,"writeBlockMapping");function M(w,P,tt){const X=tt?w.explicitTypes:w.implicitTypes;for(let Z=0,et=X.length;Z<et;Z+=1){const K=X[Z];if((K.instanceOf||K.predicate)&&(!K.instanceOf||typeof P=="object"&&P instanceof K.instanceOf)&&(!K.predicate||K.predicate(P))){if(tt?K.multi&&K.representName?w.tag=K.representName(P):w.tag=K.tag:w.tag="?",K.represent){const lt=w.styleMap[K.tag]||K.defaultStyle;let nt;if(i.call(K.represent)==="[object Function]")nt=K.represent(P,lt);else if(s.call(K.represent,lt))nt=K.represent[lt](P,lt);else throw new t("!<"+K.tag+'> tag resolver accepts not "'+lt+'" style');w.dump=nt}return!0}}return!1}f(M,"detectType");function U(w,P,tt,X,Z,et,K){w.tag=null,w.dump=tt,M(w,tt,!1)||M(w,tt,!0);const lt=i.call(w.dump),nt=X;X&&(X=w.flowLevel<0||w.flowLevel>P);const yt=lt==="[object Object]"||lt==="[object Array]";let kt,Ot;if(yt&&(kt=w.duplicates.indexOf(tt),Ot=kt!==-1),(w.tag!==null&&w.tag!=="?"||Ot||w.indent!==2&&P>0)&&(Z=!1),Ot&&w.usedDuplicates[kt])w.dump="*ref_"+kt;else{if(yt&&Ot&&!w.usedDuplicates[kt]&&(w.usedDuplicates[kt]=!0),lt==="[object Object]")X&&Object.keys(w.dump).length!==0?(g(w,P,w.dump,Z),Ot&&(w.dump="&ref_"+kt+w.dump)):(Oe(w,P,w.dump),Ot&&(w.dump="&ref_"+kt+" "+w.dump));else if(lt==="[object Array]")X&&w.dump.length!==0?(w.noArrayIndent&&!K&&P>0?we(w,P-1,w.dump,Z):we(w,P,w.dump,Z),Ot&&(w.dump="&ref_"+kt+w.dump)):(xr(w,P,w.dump),Ot&&(w.dump="&ref_"+kt+" "+w.dump));else if(lt==="[object String]")w.tag!=="?"&&He(w,w.dump,P,et,nt);else{if(lt==="[object Undefined]")return!1;if(w.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+lt)}if(w.tag!==null&&w.tag!=="?"){let jt=encodeURI(w.tag[0]==="!"?w.tag.slice(1):w.tag).replace(/!/g,"%21");w.tag[0]==="!"?jt="!"+jt:jt.slice(0,18)==="tag:yaml.org,2002:"?jt="!!"+jt.slice(18):jt="!<"+jt+">",w.dump=jt+" "+w.dump}}return!0}f(U,"writeNode");function V(w,P){const tt=[],X=[];H(w,tt,X);const Z=X.length;for(let et=0;et<Z;et+=1)P.duplicates.push(tt[X[et]]);P.usedDuplicates=new Array(Z)}f(V,"getDuplicateReferences");function H(w,P,tt){if(w!==null&&typeof w=="object"){const X=P.indexOf(w);if(X!==-1)tt.indexOf(X)===-1&&tt.push(X);else if(P.push(w),Array.isArray(w))for(let Z=0,et=w.length;Z<et;Z+=1)H(w[Z],P,tt);else{const Z=Object.keys(w);for(let et=0,K=Z.length;et<K;et+=1)H(w[Z[et]],P,tt)}}}f(H,"inspectNode");function rt(w,P){P=P||{};const tt=new mt(P);tt.noRefs||V(w,tt);let X=w;return tt.replacer&&(X=tt.replacer.call({"":X},"",X)),U(tt,0,X,!0,!0)?tt.dump+`
301
+ `:""}return f(rt,"dump2"),Rn.dump=rt,Rn}f(Vy,"requireDumper");var Jd;function Zy(){if(Jd)return de;Jd=1;const e=Xy(),t=Vy();function r(i,s){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}return f(r,"renamed"),de.Type=Ce(),de.Schema=Nh(),de.FAILSAFE_SCHEMA=Hh(),de.JSON_SCHEMA=Xh(),de.CORE_SCHEMA=Vh(),de.DEFAULT_SCHEMA=$a(),de.load=e.load,de.loadAll=e.loadAll,de.dump=t.dump,de.YAMLException=as(),de.types={binary:Qh(),float:Gh(),map:Wh(),null:Yh(),pairs:tc(),set:ec(),timestamp:Zh(),bool:jh(),int:Uh(),merge:Kh(),omap:Jh(),seq:zh(),str:qh()},de.safeLoad=r("safeLoad","load"),de.safeLoadAll=r("safeLoadAll","loadAll"),de.safeDump=r("safeDump","dump"),de}f(Zy,"requireJsYaml");var qF=Zy(),zF=Uy(qF),{Type:i3,Schema:s3,FAILSAFE_SCHEMA:o3,JSON_SCHEMA:WF,CORE_SCHEMA:a3,DEFAULT_SCHEMA:n3,load:HF,loadAll:l3,dump:h3,YAMLException:c3,types:u3,safeLoad:d3,safeLoadAll:f3,safeDump:p3}=zF,YF={common:Js,getConfig:Zt,insertCluster:ey,insertEdge:sy,insertEdgeLabel:vh,insertMarkers:ny,insertNode:Sh,interpolateToCurve:rh,labelHelper:xt,log:R,positionEdgeLabel:xS},Vs={},Ky=f(e=>{for(const t of e)Vs[t.name]=t},"registerLayoutLoaders"),jF=f(()=>{Ky([{name:"dagre",loader:f(async()=>await Mt(()=>import("./dagre-3AP2YEHR-C8FA8vJk.js"),__vite__mapDeps([3,4,0,1])),"loader")},{name:"swimlane",loader:f(async()=>await Mt(()=>import("./swimlanes-XN3QIQJK-Bzhcdn87.js"),__vite__mapDeps([5,0,1])),"loader")},{name:"cose-bilkent",loader:f(async()=>await Mt(()=>import("./cose-bilkent-JH36ORCC-DpLc-cdd.js"),__vite__mapDeps([6,7,0,1])),"loader")}])},"registerDefaultLayoutLoaders");jF();var g3=f(async(e,t)=>{if(!(e.layoutAlgorithm in Vs))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const h of e.nodes){const u=h.domId||h.id;h.domId=`${e.diagramId}-${u}`}const r=Vs[e.layoutAlgorithm],i=await r.loader(),{theme:s,themeVariables:o}=e.config,{useGradient:a,gradientStart:n,gradientStop:l}=o,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s?.includes("dark")?"#FFFFFF":"#000000"}`),a){const h=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(e,t,YF,{algorithm:r.algorithm})},"render"),m3=f((e="",{fallback:t="dagre"}={})=>{if(e in Vs)return e;if(t in Vs)return R.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),rc="comm",Qy="rule",Jy="decl",UF="@media",GF="@import",XF="@supports",VF="@namespace",vl="@keyframes",t0="@layer",ZF="@scope",KF=Math.abs,Ns=String.fromCharCode;function e0(e){return e.trim()}function Bl(e,t,r){return e.replace(t,r)}function $i(e,t){return e.charCodeAt(t)|0}function ts(e,t,r){return e.slice(t,r)}function or(e){return e.length}function r0(e){return e.length}function vo(e,t){return t.push(e),e}var Oa=1,es=1,i0=0,ze=0,ee=0,ns="";function ic(e,t,r,i,s,o,a,n){return{value:e,root:t,parent:r,type:i,props:s,children:o,line:Oa,column:es,length:a,return:"",siblings:n}}function QF(){return ee}function JF(){return ee=ze>0?$i(ns,--ze):0,es--,ee===10&&(es=1,Oa--),ee}function Ve(){return ee=ze<i0?$i(ns,ze++):0,es++,ee===10&&(es=1,Oa++),ee}function qr(){return $i(ns,ze)}function Po(){return ze}function Da(e,t){return ts(ns,e,t)}function Zs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tA(e){return Oa=es=1,i0=or(ns=e),ze=0,[]}function eA(e){return ns="",e}function Nn(e){return e0(Da(ze-1,Ll(e===91?e+2:e===40?e+1:e)))}function rA(e){for(;(ee=qr())&&ee<33;)Ve();return Zs(e)>2||Zs(ee)>3?"":" "}function iA(e,t){for(;--t&&Ve()&&!(ee<48||ee>102||ee>57&&ee<65||ee>70&&ee<97););return Da(e,Po()+(t<6&&qr()==32&&Ve()==32))}function Ll(e){for(;Ve();)switch(ee){case e:return ze;case 34:case 39:e!==34&&e!==39&&Ll(ee);break;case 40:e===41&&Ll(e);break;case 92:Ve();break}return ze}function sA(e,t){for(;Ve()&&e+ee!==57;)if(e+ee===84&&qr()===47)break;return"/*"+Da(t,ze-1)+"*"+Ns(e===47?e:Ve())}function oA(e){for(;!Zs(qr());)Ve();return Da(e,ze)}function aA(e){return eA(Ro("",null,null,null,[""],e=tA(e),0,[0],e))}function Ro(e,t,r,i,s,o,a,n,l){for(var c=0,h=0,u=a,d=0,p=0,y=0,m=1,x=1,C=1,k=0,T=0,S="",v=s,L=o,A=i,F=S;x;)switch(y=T,T=Ve()){case 40:y!=108&&$i(F,u-1)==58?(k++,F+="("):F+=Nn(T);break;case 41:k--,F+=")";break;case 34:case 39:case 91:F+=Nn(T);break;case 9:case 10:case 13:case 32:if(k>0){F+=Ns(T);break}F+=rA(y);break;case 92:F+=iA(Po()-1,7);continue;case 47:switch(qr()){case 42:case 47:vo(nA(sA(Ve(),Po()),t,r,l),l),(Zs(y||1)==5||Zs(qr()||1)==5)&&or(F)&&ts(F,-1,void 0)!==" "&&(F+=" ");break;default:F+="/"}break;case 123*m:n[c++]=or(F)*C;case 125*m:case 59:case 0:if(k>0&&T){F+=Ns(T);break}switch(T){case 0:case 125:x=0;case 59+h:C==-1&&(F=Bl(F,/\f/g,"")),p>0&&(or(F)-u||m===0)&&vo(p>32?ef(F+";",i,r,u-1,l):ef(Bl(F," ","")+";",i,r,u-2,l),l);break;case 59:F+=";";default:if(vo(A=tf(F,t,r,c,h,s,n,S,v=[],L=[],u,o),o),T===123)if(h===0)Ro(F,t,A,A,v,o,u,n,L);else{switch(d){case 99:if($i(F,3)===110)break;case 108:if($i(F,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Ro(e,A,A,i&&vo(tf(e,A,A,0,0,s,n,S,s,v=[],u,L),L),s,L,u,n,i?v:L):Ro(F,A,A,A,[""],L,0,n,L)}}c=h=p=0,m=C=1,S=F="",u=a;break;case 58:u=1+or(F),p=y;default:if(m<1){if(T==123)--m;else if(T==125&&m++==0&&JF()==125)continue}switch(F+=Ns(T),T*m){case 38:C=h>0?1:(F+="\f",-1);break;case 44:if(k>0)break;n[c++]=(or(F)-1)*C,C=1;break;case 64:qr()===45&&(F+=Nn(Ve())),d=qr(),h=u=or(S=F+=oA(Po())),T++;break;case 45:y===45&&or(F)==2&&(m=0)}}return o}function tf(e,t,r,i,s,o,a,n,l,c,h,u){for(var d=s-1,p=s===0?o:[""],y=r0(p),m=0,x=0,C=0;m<i;++m)for(var k=0,T=ts(e,d+1,d=KF(x=a[m])),S=e;k<y;++k)(S=e0(x>0?p[k]+" "+T:Bl(T,/&\f/g,p[k])))&&(l[C++]=S);return ic(e,t,r,s===0?Qy:n,l,c,h,u)}function nA(e,t,r,i){return ic(e,t,r,rc,Ns(QF()),ts(e,2,-2),0,i)}function ef(e,t,r,i,s){return ic(e,t,r,Jy,ts(e,0,i),ts(e,i+1,-1),i,s)}function Fl(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function lA(e,t,r,i){switch(e.type){case t0:if(e.children.length)break;case GF:case VF:case Jy:return e.return=e.return||e.value;case rc:return"";case vl:return e.return=e.value+"{"+Fl(e.children,i)+"}";case Qy:if(!or(e.value=e.props.join(",")))return""}return or(r=Fl(e.children,i))?e.return=e.value+"{"+r+"}":""}function hA(e){var t=r0(e);return function(r,i,s,o){for(var a="",n=0;n<t;n++)a+=e[n](r,i,s,o)||"";return a}}var s0="c4",cA=f(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),uA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./c4Diagram-UCG6FXSJ-D21PNMRP.js");return{diagram:t}},__vite__mapDeps([8,9,0,1]));return{id:s0,diagram:e}},"loader"),dA={id:s0,detector:cA,loader:uA},fA=dA,o0="flowchart",pA=f((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),gA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./flowDiagram-A5DVABFB-DU1I_VAI.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([10,11,12,13,9,14]));return{id:o0,diagram:e}},"loader"),mA={id:o0,detector:pA,loader:gA},yA=mA,a0="flowchart-v2",xA=f((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),CA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./flowDiagram-A5DVABFB-DU1I_VAI.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([10,11,12,13,9,14]));return{id:a0,diagram:e}},"loader"),bA={id:a0,detector:xA,loader:CA},kA=bA,n0="swimlane",wA=f(e=>/^\s*swimlane-beta\b/.test(e),"detector"),TA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./swimlanesDiagram-VK2B7HYN-B753mA3E.js");return{diagram:t}},__vite__mapDeps([15,10,11,12,13,9,14,0,1]));return{id:n0,diagram:e}},"loader"),_A={id:n0,detector:wA,loader:TA},SA=_A,l0="er",vA=f(e=>/^\s*erDiagram/.test(e),"detector"),BA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./erDiagram-SSCWMZ5O-l8drddto.js");return{diagram:t}},__vite__mapDeps([16,12,13,14,0,1]));return{id:l0,diagram:e}},"loader"),LA={id:l0,detector:vA,loader:BA},FA=LA,h0="gitGraph",AA=f(e=>/^\s*gitGraph/.test(e),"detector"),EA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-WWUBYQGX-Czg_BkRE.js");return{diagram:t}},__vite__mapDeps([17,18,19,20,0,1]));return{id:h0,diagram:e}},"loader"),MA={id:h0,detector:AA,loader:EA},$A=MA,c0="gantt",OA=f(e=>/^\s*gantt/.test(e),"detector"),DA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./ganttDiagram-EL5Y4UJY-BLRH05uB.js");return{diagram:t}},__vite__mapDeps([21,0,1,22,23,24]));return{id:c0,diagram:e}},"loader"),IA={id:c0,detector:OA,loader:DA},PA=IA,u0="info",RA=f(e=>/^\s*info/.test(e),"detector"),NA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./infoDiagram-RXCK75RN-BpBvjkro.js");return{diagram:t}},__vite__mapDeps([25,20,0,1]));return{id:u0,diagram:e}},"loader"),qA={id:u0,detector:RA,loader:NA},d0="pie",zA=f(e=>/^\s*pie/.test(e),"detector"),WA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./pieDiagram-E7YTZNPT-UC20w9-5.js");return{diagram:t}},__vite__mapDeps([26,19,20,0,1,27,28,23]));return{id:d0,diagram:e}},"loader"),HA={id:d0,detector:zA,loader:WA},f0="quadrantChart",YA=f(e=>/^\s*quadrantChart/.test(e),"detector"),jA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./quadrantDiagram-AXDQQJYC-CQx2Hmk3.js");return{diagram:t}},__vite__mapDeps([29,22,23,24,0,1]));return{id:f0,diagram:e}},"loader"),UA={id:f0,detector:YA,loader:jA},GA=UA,p0="xychart",XA=f(e=>/^\s*xychart(-beta)?/.test(e),"detector"),VA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./xychartDiagram-S5SC5T6Z-j4X1lQKo.js");return{diagram:t}},__vite__mapDeps([30,23,28,22,24,0,1]));return{id:p0,diagram:e}},"loader"),ZA={id:p0,detector:XA,loader:VA},KA=ZA,g0="requirement",QA=f(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),JA=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./requirementDiagram-EFPCY7ZU-DOAJggB4.js");return{diagram:t}},__vite__mapDeps([31,12,13,0,1]));return{id:g0,diagram:e}},"loader"),tE={id:g0,detector:QA,loader:JA},eE=tE,m0="sequence",rE=f(e=>/^\s*sequenceDiagram/.test(e),"detector"),iE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./sequenceDiagram-WJ2MYXX4-DZrZUoCo.js");return{diagram:t}},__vite__mapDeps([32,18,9,0,1]));return{id:m0,diagram:e}},"loader"),sE={id:m0,detector:rE,loader:iE},oE=sE,y0="class",aE=f((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),nE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./classDiagram-DTDB5LWJ-jUH7ADYs.js");return{diagram:t}},__vite__mapDeps([33,34,11,12,13,9,0,1]));return{id:y0,diagram:e}},"loader"),lE={id:y0,detector:aE,loader:nE},hE=lE,x0="classDiagram",cE=f((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),uE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./classDiagram-v2-JRS7N3AN-jUH7ADYs.js");return{diagram:t}},__vite__mapDeps([35,34,11,12,13,9,0,1]));return{id:x0,diagram:e}},"loader"),dE={id:x0,detector:cE,loader:uE},fE=dE,C0="state",pE=f((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),gE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./stateDiagram-HBIQ2CUA-Bn1cT0qF.js");return{diagram:t}},__vite__mapDeps([36,37,12,13,9,4,0,1]));return{id:C0,diagram:e}},"loader"),mE={id:C0,detector:pE,loader:gE},yE=mE,b0="stateDiagram",xE=f((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),CE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4QOOHH4V-BF3xtNvJ.js");return{diagram:t}},__vite__mapDeps([38,37,12,13,9,0,1]));return{id:b0,diagram:e}},"loader"),bE={id:b0,detector:xE,loader:CE},kE=bE,k0="journey",wE=f(e=>/^\s*journey/.test(e),"detector"),TE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./journeyDiagram-EYS64GPL-oY-9LgVS.js");return{diagram:t}},__vite__mapDeps([39,11,9,27,0,1]));return{id:k0,diagram:e}},"loader"),_E={id:k0,detector:wE,loader:TE},SE=_E,vE=f((e,t,r)=>{R.debug(`rendering svg for syntax error
302
+ `);const i=X2(t),s=i.append("g");i.attr("viewBox","0 0 2412 512"),Af(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),w0={draw:vE},BE=w0,LE={db:{},renderer:w0,parser:{parse:f(()=>{},"parse")}},FE=LE,T0="flowchart-elk",AE=f((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),EE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./flowDiagram-A5DVABFB-DU1I_VAI.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([10,11,12,13,9,14]));return{id:T0,diagram:e}},"loader"),ME={id:T0,detector:AE,loader:EE},$E=ME,_0="timeline",OE=f(e=>/^\s*timeline/.test(e),"detector"),DE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./timeline-definition-24CTP7MA-BqZ_3D10.js");return{diagram:t}},__vite__mapDeps([40,27,0,1]));return{id:_0,diagram:e}},"loader"),IE={id:_0,detector:OE,loader:DE},PE=IE,S0="mindmap",RE=f(e=>/^\s*mindmap/.test(e),"detector"),NE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./mindmap-definition-FBJOCRG2-BedUdy_E.js");return{diagram:t}},__vite__mapDeps([41,12,13,0,1]));return{id:S0,diagram:e}},"loader"),qE={id:S0,detector:RE,loader:NE},zE=qE,v0="kanban",WE=f(e=>/^\s*kanban/.test(e),"detector"),HE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./kanban-definition-3QL26DDD-slZoy-sc.js");return{diagram:t}},__vite__mapDeps([42,11,0,1]));return{id:v0,diagram:e}},"loader"),YE={id:v0,detector:WE,loader:HE},jE=YE,B0="sankey",UE=f(e=>/^\s*sankey(-beta)?/.test(e),"detector"),GE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./sankeyDiagram-P5KCCOFB-DnQ_qJo7.js");return{diagram:t}},__vite__mapDeps([43,28,23,0,1]));return{id:B0,diagram:e}},"loader"),XE={id:B0,detector:UE,loader:GE},VE=XE,L0="packet",ZE=f(e=>/^\s*packet(-beta)?/.test(e),"detector"),KE=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./diagram-Z3DM3KII-Cu_OHEhw.js");return{diagram:t}},__vite__mapDeps([44,19,20,0,1]));return{id:L0,diagram:e}},"loader"),QE={id:L0,detector:ZE,loader:KE},F0="radar",JE=f(e=>/^\s*radar-beta/.test(e),"detector"),tM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./diagram-UQ7AKVKN-Bjo09Uts.js");return{diagram:t}},__vite__mapDeps([45,19,20,0,1]));return{id:F0,diagram:e}},"loader"),eM={id:F0,detector:JE,loader:tM},A0="block",rM=f(e=>/^\s*block(-beta)?/.test(e),"detector"),iM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./blockDiagram-NRAW4CY4-DQR82jwr.js");return{diagram:t}},__vite__mapDeps([46,11,14,0,1]));return{id:A0,diagram:e}},"loader"),sM={id:A0,detector:rM,loader:iM},oM=sM,E0="treeView",aM=f(e=>/^\s*treeView-beta/.test(e),"detector"),nM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./diagram-S7CK7UJ4-D-quIUtW.js");return{diagram:t}},__vite__mapDeps([47,18,19,20,0,1]));return{id:E0,diagram:e}},"loader"),lM={id:E0,detector:aM,loader:nM},hM=lM,M0="architecture",cM=f(e=>/^\s*architecture/.test(e),"detector"),uM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./architectureDiagram-5GKGNRK7-C8rCd2KK.js");return{diagram:t}},__vite__mapDeps([48,19,20,0,1,7]));return{id:M0,diagram:e}},"loader"),dM={id:M0,detector:cM,loader:uM},fM=dM,$0="eventmodeling",pM=f(e=>/^\s*eventmodeling/.test(e),"detector"),gM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./diagram-VSXAHHWV-IoI3ttq4.js");return{diagram:t}},__vite__mapDeps([49,19,20,0,1]));return{id:$0,diagram:e}},"loader"),mM={id:$0,detector:pM,loader:gM},yM=mM,O0="ishikawa",xM=f(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),CM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./ishikawaDiagram-5VMMS53U-phy1l3jm.js");return{diagram:t}},__vite__mapDeps([50,0,1]));return{id:O0,diagram:e}},"loader"),bM={id:O0,detector:xM,loader:CM},D0="venn",kM=f(e=>/^\s*venn-beta/.test(e),"detector"),wM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./vennDiagram-4TSXK5OY-z9kw1kmm.js");return{diagram:t}},__vite__mapDeps([51,0,1]));return{id:D0,diagram:e}},"loader"),TM={id:D0,detector:kM,loader:wM},_M=TM,I0="treemap",SM=f(e=>/^\s*treemap/.test(e),"detector"),vM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./diagram-VX7I27RA-BKyOZ5SO.js");return{diagram:t}},__vite__mapDeps([52,19,13,20,0,1,24,28,23]));return{id:I0,diagram:e}},"loader"),BM={id:I0,detector:SM,loader:vM},P0="wardley",LM=f(e=>/^\s*wardley-beta/i.test(e),"detector"),FM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./wardleyDiagram-VM6X3IG4-Cydp1zJW.js");return{diagram:t}},__vite__mapDeps([53,19,20,0,1]));return{id:P0,diagram:e}},"loader"),AM={id:P0,detector:LM,loader:FM},EM=AM,R0="cynefin",MM=f(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),$M=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./cynefinDiagram-5FMLGOSQ-Dl3jfBry.js");return{diagram:t}},__vite__mapDeps([54,19,20,0,1]));return{id:R0,diagram:e}},"loader"),OM={id:R0,detector:MM,loader:$M},N0="railroad",DM=f(e=>/^\s*railroad-beta/i.test(e),"detector"),IM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./railroadDiagram-O6MQD6OU-2UEJe_y-.js");return{diagram:t}},__vite__mapDeps([55,56,19,20,0,1]));return{id:N0,diagram:e}},"loader"),PM={id:N0,detector:DM,loader:IM},q0="railroadEbnf",RM=f(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),NM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./ebnfDiagram-PWID7BFC-UVB-bbPg.js");return{diagram:t}},__vite__mapDeps([57,56,19,20,0,1]));return{id:q0,diagram:e}},"loader"),qM={id:q0,detector:RM,loader:NM},z0="railroadAbnf",zM=f(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),WM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./abnfDiagram-VCTEODGH-S_JCiANq.js");return{diagram:t}},__vite__mapDeps([58,56,19,20,0,1]));return{id:z0,diagram:e}},"loader"),HM={id:z0,detector:zM,loader:WM},W0="railroadPeg",YM=f(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),jM=f(async()=>{const{diagram:e}=await Mt(async()=>{const{diagram:t}=await import("./pegDiagram-XKGWAZYB-DQLRdmxq.js");return{diagram:t}},__vite__mapDeps([59,56,19,20,0,1]));return{id:W0,diagram:e}},"loader"),UM={id:W0,detector:YM,loader:jM},rf=!1,Ia=f(()=>{rf||(rf=!0,Ho("error",FE,e=>e.toLowerCase().trim()==="error"),Ho("---",{db:{clear:f(()=>{},"clear")},styles:{},renderer:{draw:f(()=>{},"draw")},parser:{parse:f(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:f(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),jn($E,zE,fM),jn(fA,jE,fE,hE,FA,PA,qA,HA,eE,oE,SA,kA,yA,PE,$A,kE,yE,SE,GA,VE,QE,KA,oM,yM,hM,eM,bM,BM,PM,qM,HM,UM,_M,EM,OM))},"addDiagrams"),GM=f(async()=>{R.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(ai).map(async([r,{detector:i,loader:s}])=>{if(s)try{Vn(r)}catch{try{const{diagram:o,id:a}=await s();Ho(a,o,i)}catch(o){throw R.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete ai[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){R.error(`Failed to load ${t.length} external diagrams`);for(const r of t)R.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),XM="graphics-document document";function H0(e,t){e.attr("role",XM),t!==""&&e.attr("aria-roledescription",t)}f(H0,"setA11yDiagramInfo");function Y0(e,t,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}f(Y0,"addSVGa11yTitleDescription");var si,Al=(si=class{constructor(t,r,i,s,o){this.type=t,this.text=r,this.db=i,this.parser=s,this.renderer=o}static async fromText(t,r={}){const i=Zt(),s=Ol(t,i);t=yT(t)+`
303
+ `;try{Vn(s)}catch{const c=WC(s);if(!c)throw new _f(`Diagram ${s} not found.`);const{id:h,diagram:u}=await c();Ho(h,u)}const{db:o,parser:a,renderer:n,init:l}=Vn(s);return a.parser&&(a.parser.yy=o),o.clear?.(),l?.(i),r.title&&o.setDiagramTitle?.(r.title),await a.parse(t),new si(s,t,o,a,n)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},f(si,"Diagram"),si),sf=[],VM=f(()=>{sf.forEach(e=>{e()}),sf=[]},"attachFunctions"),ZM=f(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function j0(e){const t=e.match(Tf);if(!t)return{text:e,metadata:{}};const r=t[1],i=r?t[2].split(`
304
+ `).map(a=>a.startsWith(r)?a.slice(r.length):a).join(`
305
+ `):t[2];let s=HF(i,{schema:WF})??{};s=typeof s=="object"&&!Array.isArray(s)?s:{};const o={};return s.displayMode&&(o.displayMode=s.displayMode.toString()),s.title&&(o.title=s.title.toString()),s.config&&(o.config=s.config),{text:e.slice(t[0].length),metadata:o}}f(j0,"extractFrontMatter");var KM=f(e=>e.replace(/\r\n?/g,`
306
+ `).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),QM=f(e=>{const{text:t,metadata:r}=j0(e),{displayMode:i,title:s,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:s,config:o,text:t}},"processFrontmatter"),JM=f(e=>{const t=ye.detectInit(e)??{},r=ye.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:sT(e),directive:t}},"processDirectives");function sc(e){const t=KM(e),r=QM(t),i=JM(r.text),s=nh(r.config,i.directive);return e=ZM(i.text),{code:e,title:r.title,config:s}}f(sc,"preprocessDiagram");function U0(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}f(U0,"toBase64");var t5=5e4,e5="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",r5="sandbox",i5="loose",s5="http://www.w3.org/2000/svg",o5="http://www.w3.org/1999/xlink",a5="http://www.w3.org/1999/xhtml",n5="100%",l5="100%",h5="border:0;margin:0;",c5="margin:0",u5="allow-top-navigation-by-user-activation allow-popups",d5='The "iframe" tag is not supported by your browser.',f5=["foreignobject"],p5=["dominant-baseline"];function oc(e){const t=sc(e);return zo(),RC(t.config??{}),t}f(oc,"processAndSetConfigs");async function G0(e,t){Ia();try{const{code:r,config:i}=oc(e);return{diagramType:(await V0(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}f(G0,"parse");var of=f((e,t,r=[])=>{const i=xf(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),g5=f((e,t=new Map)=>{const r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){const n=xe(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{mu(l.styles)||n.forEach(c=>{r.insertRule(of(l.id,c,l.styles),r.cssRules.length)}),mu(l.textStyles)||r.insertRule(of(l.id,"tspan",(l?.textStyles||[]).map(c=>c.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const s=new CSSStyleSheet;s.replaceSync(e.themeCSS),i=Xn(s)+`
307
+ `}else i+=`${e.themeCSS}
308
+ `;return i+Xn(r)},"createCssStyles"),m5=f((e,t)=>Fl(aA(`${e}{${t}}`),hA([f(function(i,s,o,a){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===vl)return;i.props=i.props.map(n=>n===e&&Array.isArray(i.children)&&i.children.every(c=>c.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(c.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)}else i.type.startsWith("@")&&([...[UF,XF,t0,ZF,"@container","@starting-style"],vl].includes(i.type)||(R.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=rc))},"addNamespace"),lA])),"compileCSS"),y5=f((e,t,r,i)=>{const s=g5(e,r),o=ab(t,s,{...e.themeVariables,theme:e.theme,look:e.look},i);return m5(i,o)},"createUserStyles"),x5=f((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Hr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),C5=f((e="",t)=>{const r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":l5,i=U0(`<body style="${c5}">${e}</body>`);return`<iframe style="width:${n5};height:${r};${h5}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${u5}">
309
+ ${d5}
310
+ </iframe>`},"putIntoIFrame"),af=f((e,t,r,i,s)=>{const o=e.append("div");o.attr("id",r),i&&o.attr("style",i);const a=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",s5);return s&&a.attr("xmlns:xlink",s),a.append("g"),e},"appendDivSvgG");function El(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}f(El,"sandboxedIframe");var b5=f((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),k5=f(async function(e,t,r){Ia();const i=oc(t);t=i.code;const s=Zt();R.debug(s),t.length>(s?.maxTextSize??t5)&&(t=e5);const o=`#${e}`,a="i"+e,n="#"+a,l="d"+e,c="#"+l,h=f(()=>{const $=Et(d?n:c).node();$&&"remove"in $&&$.remove()},"removeTempElements");let u=Et(document.body);const d=s.securityLevel===r5,p=s.securityLevel===i5,y=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),d){const j=El(Et(r),a);u=Et(j.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Et(r);af(u,e,l,`font-family: ${y}`,o5)}else{if(b5(document,e,l,a),d){const j=El(Et(document.body),a);u=Et(j.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Et("body");af(u,e,l)}let m,x;try{m=await Al.fromText(t,{title:i.title})}catch(j){if(s.suppressErrorRendering)throw h(),j;m=await Al.fromText("error"),x=j}const C=u.select(c).node(),k=m.type,T=C.firstChild,S=T.firstChild,v=m.renderer.getClasses?.(t,m),L=y5(s,k,v,o),A=document.createElement("style");A.innerHTML=L,T.insertBefore(A,S);try{await m.renderer.draw(t,e,"11.17.0",m)}catch(j){throw s.suppressErrorRendering?h():BE.draw(t,e,"11.17.0"),j}const F=u.select(`${c} svg`),G=m.db.getAccTitle?.(),Y=m.db.getAccDescription?.();Z0(k,F,G,Y);const st=f(()=>{u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",a5);let j=u.select(c).node().innerHTML;if(R.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),j=x5(j,d,fr(s.arrowMarkerAbsolute)),d){const $=u.select(c+" svg").node();j=C5(j,$)}else p||(j=Vi.sanitize(j,{ADD_TAGS:f5,ADD_ATTR:p5,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return VM(),j},"serializeSvg")();if(x)throw x;return h(),{diagramType:k,svg:st,bindFunctions:m.db.bindFunctions}},"render");function X0(e={}){const t=ae({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),IC(t),t?.theme&&t.theme in _r?t.themeVariables=_r[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=_r.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?DC(t):Cf();$l(r.logLevel),Ia()}f(X0,"initialize");var V0=f((e,t={})=>{const{code:r}=sc(e);return Al.fromText(r,t)},"getDiagramFromText");function Z0(e,t,r,i){H0(t,e),Y0(t,r,i,t.attr("id"))}f(Z0,"addA11yInfo");var di=Object.freeze({render:k5,parse:G0,getDiagramFromText:V0,initialize:X0,getConfig:Zt,setConfig:bf,getSiteConfig:Cf,updateSiteConfig:PC,reset:f(()=>{zo()},"reset"),globalReset:f(()=>{zo(Zi)},"globalReset"),defaultConfig:Zi});$l(Zt().logLevel);zo(Zt());var w5=f((e,t,r)=>{R.warn(e),ah(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),K0=f(async function(e={querySelector:".mermaid"}){try{await T5(e)}catch(t){if(ah(t)&&R.error(t.str),Lr.parseError&&Lr.parseError(t),!e.suppressErrors)throw R.error("Use the suppressErrors option to suppress these errors"),t}},"run"),T5=f(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=di.getConfig();R.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");R.debug(`Found ${s.length} diagrams`),i?.startOnLoad!==void 0&&(R.debug("Start On Load: "+i?.startOnLoad),di.updateSiteConfig({startOnLoad:i?.startOnLoad}));const o=new ye.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let a;const n=[];for(const l of Array.from(s)){if(R.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;a=l.innerHTML,a=ng(ye.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=ye.detectInit(a);h&&R.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:d}=await ex(c,a,l);l.innerHTML=u,e&&await e(c),d&&d(l)}catch(u){w5(u,n,Lr.parseError)}}if(n.length>0)throw n[0]},"runThrowsErrors"),Q0=f(function(e){di.initialize(e)},"initialize"),_5=f(async function(e,t,r){R.warn("mermaid.init is deprecated. Please use run instead."),e&&Q0(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await K0(i)},"init"),S5=f(async(e,{lazyLoad:t=!0}={})=>{Ia(),jn(...e),t===!1&&await GM()},"registerExternalDiagrams"),J0=f(function(){if(Lr.startOnLoad){const{startOnLoad:e}=di.getConfig();e&&Lr.run().catch(t=>R.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",J0,!1);var v5=f(function(e){Lr.parseError=e},"setParseErrorHandler"),ua=[],qn=!1,tx=f(async()=>{if(!qn){for(qn=!0;ua.length>0;){const e=ua.shift();if(e)try{await e()}catch(t){R.error("Error executing queue",t)}}qn=!1}},"executeQueue"),B5=f(async(e,t)=>new Promise((r,i)=>{const s=f(()=>new Promise((o,a)=>{di.parse(e,t).then(n=>{o(n),r(n)},n=>{R.error("Error parsing",n),Lr.parseError?.(n),a(n),i(n)})}),"performCall");ua.push(s),tx().catch(i)}),"parse"),ex=f((e,t,r)=>new Promise((i,s)=>{const o=f(()=>new Promise((a,n)=>{di.render(e,t,r).then(l=>{a(l),i(l)},l=>{R.error("Error parsing",l),Lr.parseError?.(l),n(l),s(l)})}),"performCall");ua.push(o),tx().catch(s)}),"render"),L5=f(()=>Object.keys(ai).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Lr={startOnLoad:!0,mermaidAPI:di,parse:B5,render:ex,init:_5,run:K0,registerExternalDiagrams:S5,registerLayoutLoaders:Ky,initialize:Q0,parseError:void 0,contentLoaded:J0,setParseErrorHandler:v5,detectType:Ol,registerIconPacks:Cw,getRegisteredDiagramsMetadata:L5},F5=Lr;/*! Check if previously processed *//*!
311
+ * Wait for document loaded before starting the execution
312
+ */const y3=Object.freeze(Object.defineProperty({__proto__:null,clearLayoutRenderState:Ih,createCommonLayoutRenderer:Ry,default:F5,defaultMeasureLayout:Ph,paintLayoutData:Rh},Symbol.toStringTag,{value:"Module"}));export{WF as $,Zt as A,gb as B,hr as C,nh as D,yf as E,hT as F,X2 as G,D2 as H,su as I,iu as J,j5 as K,q5 as L,H5 as M,W5 as N,R5 as O,Gl as P,Y5 as Q,N5 as R,bi as S,G5 as T,At as U,U5 as V,z5 as W,gC as X,D5 as Y,HF as Z,f as _,hb as a,$w as a$,qs as a0,O5 as a1,xa as a2,tT as a3,VC as a4,Ff as a5,Vi as a6,Rc as a7,Ma as a8,N2 as a9,xS as aA,me as aB,h_ as aC,Ql as aD,Jl as aE,$o as aF,Ow as aG,Dw as aH,Ip as aI,Dp as aJ,Op as aK,Aw as aL,Lw as aM,Fw as aN,Ew as aO,Mw as aP,Pp as aQ,Nw as aR,Rw as aS,Pw as aT,Iw as aU,Rp as aV,Ww as aW,zw as aX,qw as aY,Yw as aZ,Hw as a_,ol as aa,lT as ab,Ze as ac,z as ad,W as ae,ib as af,Ef as ag,ey as ah,Sh as ai,Vu as aj,ro as ak,Cw as al,oh as am,ct as an,r3 as ao,e3 as ap,Ry as aq,Pt as ar,Ly as as,dt as at,t3 as au,ca as av,Ay as aw,_a as ax,vh as ay,sy as az,lb as b,Cy as b$,ny as b0,Yp as b1,cf as b2,I2 as b3,$5 as b4,Qe as b5,xw as b6,I5 as b7,Hl as b8,Rr as b9,ci as bA,ss as bB,Fr as bC,Cd as bD,cr as bE,Tr as bF,xB as bG,hd as bH,ha as bI,Sr as bJ,Lv as bK,$e as bL,fd as bM,Ah as bN,CF as bO,La as bP,la as bQ,mF as bR,By as bS,ar as bT,Fv as bU,Dh as bV,cy as bW,bF as bX,yF as bY,nF as bZ,va as b_,Hs as ba,Kc as bb,gk as bc,pt as bd,Bp as be,Me as bf,lk as bg,Wl as bh,jf as bi,eo as bj,Xf as bk,P5 as bl,wx as bm,Bh as bn,Lh as bo,sd as bp,fy as bq,Ba as br,dy as bs,Pv as bt,py as bu,wB as bv,lL as bw,Bv as bx,Iv as by,TB as bz,Dt as c,Ea as c0,by as c1,lF as c2,oL as c3,Vr as c4,Es as c5,Bi as c6,_o as c7,gn as c8,LF as c9,rS as ca,y3 as cb,Af as d,ae as e,Br as f,ub as g,Qm as h,qe as i,Et as j,Js as k,R as l,Up as m,Qs as n,kw as o,db as p,fb as q,nb as r,cb as s,X5 as t,zr as u,bx as v,dT as w,m3 as x,g3 as y,ye as z};