pi-webapp 0.1.31-alpha.2 → 0.1.31-alpha.4

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 (399) hide show
  1. package/assets/diagrams-NOTICES.txt +703 -0
  2. package/dist/extension.js +34 -34
  3. package/docs/diagrams.md +72 -0
  4. package/package.json +14 -2
  5. package/web/dist/.vite/manifest.json +1689 -111
  6. package/web/dist/.vite/static-assets.json +1 -0
  7. package/web/dist/assets/Assistant-Bold.woff2 +0 -0
  8. package/web/dist/assets/Assistant-Medium.woff2 +0 -0
  9. package/web/dist/assets/Assistant-Regular.woff2 +0 -0
  10. package/web/dist/assets/Assistant-SemiBold.woff2 +0 -0
  11. package/web/dist/assets/abnfDiagram-VCTEODGH-DOPlOkUJ.js +1 -0
  12. package/web/dist/assets/{app-C7KbyTww.js → app-gCk-2TDF.js} +104 -104
  13. package/web/dist/assets/{style.css → app.css} +1 -32
  14. package/web/dist/assets/app.js +5 -4
  15. package/web/dist/assets/ar-SA-G6X2FPQ2-DZfey2lT.js +10 -0
  16. package/web/dist/assets/arc-DG_vwUrU.js +1 -0
  17. package/web/dist/assets/architectureDiagram-5GKGNRK7-ECpwUvbT.js +36 -0
  18. package/web/dist/assets/az-AZ-76LH7QW2-DWGJksfR.js +1 -0
  19. package/web/dist/assets/bg-BG-XCXSNQG7-ZxUgqtcs.js +5 -0
  20. package/web/dist/assets/blockDiagram-I7D4REHJ-s2II5Siy.js +129 -0
  21. package/web/dist/assets/bn-BD-2XOGV67Q-Db0cVQ4Y.js +5 -0
  22. package/web/dist/assets/c4Diagram-7LVT6UL2-B3dXdnJP.js +38 -0
  23. package/web/dist/assets/ca-ES-6MX7JW3Y-DnTHsp9g.js +8 -0
  24. package/web/dist/assets/channel-BNmt9r9T.js +1 -0
  25. package/web/dist/assets/chunk-2Q5K7J3B-4JenjRP2.js +1 -0
  26. package/web/dist/assets/chunk-5VM5RSS4-DcZaSc8t.js +15 -0
  27. package/web/dist/assets/chunk-F27PBJKO-DT--4dNr.js +1 -0
  28. package/web/dist/assets/chunk-IMKFNOWR-DkcD9Q04.js +231 -0
  29. package/web/dist/assets/chunk-JWPE2WC7-DcfbcRY9.js +1 -0
  30. package/web/dist/assets/chunk-POPQ4Y6H-BGw17ABw.js +1 -0
  31. package/web/dist/assets/chunk-SVP7TREG-CdlJhbkL.js +88 -0
  32. package/web/dist/assets/chunk-TICWLB2K-B30eF_rg.js +206 -0
  33. package/web/dist/assets/chunk-XXDRQBXY-D8lcfHi6.js +1 -0
  34. package/web/dist/assets/classDiagram-ZZMXUADV-CYExlNpU.js +1 -0
  35. package/web/dist/assets/classDiagram-v2-VYDZK3BY-BOCqfMKB.js +1 -0
  36. package/web/dist/assets/cose-bilkent-JH36ORCC-DeCM8oGs.js +1 -0
  37. package/web/dist/assets/{cpp-WTsyTmWk.js → cpp-DMGWgsSz.js} +1 -1
  38. package/web/dist/assets/cs-CZ-2BRQDIVT-DuMpkIPQ.js +11 -0
  39. package/web/dist/assets/cynefin-OW5HDTMX-Cd2IdigE.js +178 -0
  40. package/web/dist/assets/cynefinDiagram-5FMLGOSQ-CHHc8NfT.js +62 -0
  41. package/web/dist/assets/cytoscape.esm-D53fhQAk.js +331 -0
  42. package/web/dist/assets/da-DK-5WZEPLOC-D3x0whDi.js +5 -0
  43. package/web/dist/assets/dagre-GXQ25YYZ-BlnSzJm3.js +4 -0
  44. package/web/dist/assets/de-DE-XR44H4JA-PvFlf9-o.js +8 -0
  45. package/web/dist/assets/defaultLocale-DJbf9fPl.js +1 -0
  46. package/web/dist/assets/diagram-S7CK7UJ4-C8cpqu4g.js +30 -0
  47. package/web/dist/assets/diagram-UQ7AKVKN-CiE5Y0hF.js +41 -0
  48. package/web/dist/assets/diagram-VSXAHHWV-wFDYB5SE.js +3 -0
  49. package/web/dist/assets/diagram-VX7I27RA-BJB4bQJ8.js +24 -0
  50. package/web/dist/assets/diagram-Z3DM3KII-DDfhenF6.js +24 -0
  51. package/web/dist/assets/directory-open-01563666-CIgzoJPA.js +1 -0
  52. package/web/dist/assets/directory-open-4ed118d0-CnVxIWxR.js +1 -0
  53. package/web/dist/assets/ebnfDiagram-PWID7BFC-CKfU0hGL.js +1 -0
  54. package/web/dist/assets/el-GR-BZB4AONW-CSxYW7dT.js +10 -0
  55. package/web/dist/assets/{elixir-R3IvWmT5.js → elixir-sVOXZpgC.js} +1 -1
  56. package/web/dist/assets/erDiagram-RLTQ6QDP-DPjb8P7m.js +99 -0
  57. package/web/dist/assets/{erlang-NGps-vi9.js → erlang-C4_gHZ2S.js} +1 -1
  58. package/web/dist/assets/es-ES-U4NZUMDT-Bt1KalfH.js +9 -0
  59. package/web/dist/assets/eu-ES-A7QVB2H4-l87AYtlV.js +11 -0
  60. package/web/dist/assets/excalidraw/fonts/Assistant/Assistant-Bold.woff2 +0 -0
  61. package/web/dist/assets/excalidraw/fonts/Assistant/Assistant-Medium.woff2 +0 -0
  62. package/web/dist/assets/excalidraw/fonts/Assistant/Assistant-Regular.woff2 +0 -0
  63. package/web/dist/assets/excalidraw/fonts/Assistant/Assistant-SemiBold.woff2 +0 -0
  64. package/web/dist/assets/excalidraw/fonts/Cascadia/CascadiaCode-Regular.woff2 +0 -0
  65. package/web/dist/assets/excalidraw/fonts/ComicShanns/ComicShanns-Regular-279a7b317d12eb88de06167bd672b4b4.woff2 +0 -0
  66. package/web/dist/assets/excalidraw/fonts/ComicShanns/ComicShanns-Regular-6e066e8de2ac57ea9283adb9c24d7f0c.woff2 +0 -0
  67. package/web/dist/assets/excalidraw/fonts/ComicShanns/ComicShanns-Regular-dc6a8806fa96795d7b3be5026f989a17.woff2 +0 -0
  68. package/web/dist/assets/excalidraw/fonts/ComicShanns/ComicShanns-Regular-fcb0fc02dcbee4c9846b3e2508668039.woff2 +0 -0
  69. package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2 +0 -0
  70. package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2 +0 -0
  71. package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2 +0 -0
  72. package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2 +0 -0
  73. package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 +0 -0
  74. package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2 +0 -0
  75. package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2 +0 -0
  76. package/web/dist/assets/excalidraw/fonts/Liberation/LiberationSans-Regular.woff2 +0 -0
  77. package/web/dist/assets/excalidraw/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
  78. package/web/dist/assets/excalidraw/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
  79. package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
  80. package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
  81. package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
  82. package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
  83. package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
  84. package/web/dist/assets/excalidraw/fonts/Virgil/Virgil-Regular.woff2 +0 -0
  85. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-019d66dcad46dc156b162d267f981c20.woff2 +0 -0
  86. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-04b718e5623574919c8b0dea5f301444.woff2 +0 -0
  87. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-069e77aac84590e2e991d0a0176d34f2.woff2 +0 -0
  88. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-06c77b8c66e51ed6c63ccb502dd8b8af.woff2 +0 -0
  89. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-08e0dc436ad0ad61ba5558db0674d762.woff2 +0 -0
  90. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-093b9ef39a46ceae95a1df18a0a3a326.woff2 +0 -0
  91. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-095c169f3314805276f603a362766abd.woff2 +0 -0
  92. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-09850c4077f3fffe707905872e0e2460.woff2 +0 -0
  93. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0986d134c05864f5025962eef9f994a0.woff2 +0 -0
  94. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0b5d723fdc4e249c140f0909e87d03b4.woff2 +0 -0
  95. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0f626226ba1272e832aea87bafd9720e.woff2 +0 -0
  96. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0f7fb1e0d5015bb1371343153ecf7ce3.woff2 +0 -0
  97. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0fa55a080fcd0f9dc2e0b0058b793df8.woff2 +0 -0
  98. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0facdf1ea213ba40261022f5d5ed4493.woff2 +0 -0
  99. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-10a7ae9a371830a80c3d844acf1c02d7.woff2 +0 -0
  100. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-112c051027b2d766c19a519f6ee1f4f7.woff2 +0 -0
  101. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-11c345711937f0ba4b8f7b6b919c8440.woff2 +0 -0
  102. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-12b52b58eb3df36804b9a654ec9ee194.woff2 +0 -0
  103. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-13ae07ed2e272d26d59bc0691cd7117a.woff2 +0 -0
  104. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-13d2887ec8ee73c43acdabc52a05af7b.woff2 +0 -0
  105. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-145aa02cdd91946e67dc934e1acffe75.woff2 +0 -0
  106. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-15dc6d811c9cd078f9086a740d5a1038.woff2 +0 -0
  107. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-173945821411c09f70c95f98d590e697.woff2 +0 -0
  108. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-1b611157cd46bb184d4fa4dae2d6a2b8.woff2 +0 -0
  109. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-1e6fd68f1f3902ce48ce8c69df385622.woff2 +0 -0
  110. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-1ee544f0f1dac422545c505baa788992.woff2 +0 -0
  111. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-1fdc0c67ed57263a80fd108c1f6ccf24.woff2 +0 -0
  112. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-203b0e569e3b14aac86a003dc3fa523e.woff2 +0 -0
  113. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-20cc1bbf50e7efb442756cb605672c1f.woff2 +0 -0
  114. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-20e7bf72fa05de9adf7dbcc7bf51dde6.woff2 +0 -0
  115. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-21430ee05a1248901da8d0de08744d47.woff2 +0 -0
  116. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-23686f7f29da6e8008c36dd3a80c83d6.woff2 +0 -0
  117. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-23ad2d71b280f00b1363b95b7bea94eb.woff2 +0 -0
  118. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-23f228f3999c01983860012330e4be08.woff2 +0 -0
  119. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-24476a126f129212beb33f66853ea151.woff2 +0 -0
  120. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-24a21c1e4449222e8d1898d69ff3a404.woff2 +0 -0
  121. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-25b7f38e18f035f96cb5e547bd2bd08c.woff2 +0 -0
  122. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-29cec36cd205b211da97acabaa62f055.woff2 +0 -0
  123. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2a26d20a23b00898ce82f09d2ee47c3f.woff2 +0 -0
  124. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2adbc89c11e65905393d3dfc468b9d5b.woff2 +0 -0
  125. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2b7441d46298788ac94e610ffcc709b6.woff2 +0 -0
  126. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2b77e8ebfb2367ab2662396a60e7d320.woff2 +0 -0
  127. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2cf96d082d35ea3d8106851223ad0d16.woff2 +0 -0
  128. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2d43040e86ff03ba677f6f9c04cd0805.woff2 +0 -0
  129. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2e33e8dc771ef5e1d9127d60a6b73679.woff2 +0 -0
  130. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-33432927cd87d40cfe393c7482bf221f.woff2 +0 -0
  131. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-353f33792a8f60dc69323ddf635a269e.woff2 +0 -0
  132. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-36925dfe329a45086cbb7fc5c20d45ac.woff2 +0 -0
  133. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3717077e38f98d89eae729b6c14e56dc.woff2 +0 -0
  134. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3756e81d3e149cf6099163ee79944fec.woff2 +0 -0
  135. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-395c35dd584b56b0789f58a0559beaf1.woff2 +0 -0
  136. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3c9de2ae0ea4bc91a510942dfa4be8d2.woff2 +0 -0
  137. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3cc70dbb64df5b21f1326cc24dee2195.woff2 +0 -0
  138. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3e1f8f654357353bf0e04ba5c34b5f7f.woff2 +0 -0
  139. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3e63ed8162808a9e425ed80a8bc79114.woff2 +0 -0
  140. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3eaa538115d76932653c21d8dc28f207.woff2 +0 -0
  141. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4095eb84ef3874e2600247bee0b04026.woff2 +0 -0
  142. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-41521fade99856108931b4768b1b2648.woff2 +0 -0
  143. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-450da755d5bcb70906e1295e559b9602.woff2 +0 -0
  144. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-452225341522a7942f0f6aab1a5c91a3.woff2 +0 -0
  145. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4535823663ad81405188a528d8f2b1a2.woff2 +0 -0
  146. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4806e761d750087c2d734fc64596eaff.woff2 +0 -0
  147. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4a0fdb40036e87b40aa08dd30584cb85.woff2 +0 -0
  148. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4a38cc3e9cf104e69ba246d37f8cf135.woff2 +0 -0
  149. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4aca6a43e59aceee2166b0c7e4e85ef1.woff2 +0 -0
  150. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4bfaa8ffa64c5ee560aa2daba7c9cbd3.woff2 +0 -0
  151. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4dc6d5f188d5c96d44815cd1e81aa885.woff2 +0 -0
  152. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4ddc14ed3eb0c3e46364317dfc0144a3.woff2 +0 -0
  153. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4ee10ae43505e2e0bc62656ced49c0fa.woff2 +0 -0
  154. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4f50e5136e136527280bc902c5817561.woff2 +0 -0
  155. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-51502f1206be09c565f1547c406e9558.woff2 +0 -0
  156. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-51a0e808bbc8361236ac521a119758a3.woff2 +0 -0
  157. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-52a84a22fd1369bffeaf21da2d6158dc.woff2 +0 -0
  158. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5330a2119a716e4e7224ed108b085dac.woff2 +0 -0
  159. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-543fa46ace099a7099dad69123399400.woff2 +0 -0
  160. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-544fc28abe2c5c30e62383fd4dac255f.woff2 +0 -0
  161. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-54acdfc2166ad7fcbd074f75fd4a56ba.woff2 +0 -0
  162. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5572b3513ba8df57a3d5d7303ee6b11b.woff2 +0 -0
  163. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-56467a5c8840c4d23a60b2f935114848.woff2 +0 -0
  164. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-56a32a7689abd0326e57c10c6c069bb4.woff2 +0 -0
  165. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-57862b464a55b18c7bf234ce22907d73.woff2 +0 -0
  166. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-583d166e56ba0de4b77eabb47ef67839.woff2 +0 -0
  167. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5882ffa04f32584d26109137e2da4352.woff2 +0 -0
  168. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-58fd02350d0bc52cf1ca3bb32ce9766e.woff2 +0 -0
  169. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5935a5775af3d5c6307ac667bd9ae74e.woff2 +0 -0
  170. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-59e9ff77b0efaf684bc09274fb6908c9.woff2 +0 -0
  171. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5a1ce3117cfe90c48e8fb4a9a00f694d.woff2 +0 -0
  172. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5a45d991244d4c7140217e1e5f5ca4f4.woff2 +0 -0
  173. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5a7fac4b8b23a6e4e5ba0c9bf1756c91.woff2 +0 -0
  174. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5b0ed6971aaab9c8ad563230bd5471a7.woff2 +0 -0
  175. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5d2898fbc097a7e24c6f38d80587621e.woff2 +0 -0
  176. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-603aefd23e350ba7eb124273e3c9bcf1.woff2 +0 -0
  177. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-60a3089806700d379f11827ee9843b6b.woff2 +0 -0
  178. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-60a41c7e1c68f22424e6d22df544bc82.woff2 +0 -0
  179. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-642b26e2e5f5fb780b51b593dbc8c851.woff2 +0 -0
  180. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-66493ba5a8367f2928812f446f47b56a.woff2 +0 -0
  181. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-670ba603758d94268e8606f240a42e12.woff2 +0 -0
  182. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-671a2c20b1eb9e4ef8a192833940e319.woff2 +0 -0
  183. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-684d65f1793cac449dde5d59cb3c47fb.woff2 +0 -0
  184. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-69c09cc5fa3e55c74fc4821f76909cc3.woff2 +0 -0
  185. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-6ae5b42180ad70b971c91e7eefb8eba2.woff2 +0 -0
  186. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-6e092f71c1e634059ada0e52abadce67.woff2 +0 -0
  187. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-6f3256af8454371776bc46670d33cc65.woff2 +0 -0
  188. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-6fe5c5973cc06f74b2387a631ea36b88.woff2 +0 -0
  189. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-70c2eb8d64e71a42a834eb857ea9df51.woff2 +0 -0
  190. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-70e811fd7994e61f408c923de6ddd078.woff2 +0 -0
  191. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7197d6fda6cba7c3874c53d6381ca239.woff2 +0 -0
  192. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-72252d73220fa3cd856677888cee1635.woff2 +0 -0
  193. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-72536a3d71b694a0d53dd90ddceae41e.woff2 +0 -0
  194. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-726303e0774b4e678bff8c2deb6ca603.woff2 +0 -0
  195. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-733171b4ffcd17ea1fe1c0ba627173bf.woff2 +0 -0
  196. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-739bc1a567439c7cffcd1614644593d2.woff2 +0 -0
  197. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-73e309718fd16cea44b4d54a33581811.woff2 +0 -0
  198. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7494dc504ae00ee9cd0505f990f88c5d.woff2 +0 -0
  199. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-74e2263a91439c25b91d5132ce9f4d62.woff2 +0 -0
  200. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-761d05e3cd968cf574166867998ef06a.woff2 +0 -0
  201. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7718fe60986d8b42b1be9c5ace5ccf25.woff2 +0 -0
  202. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-774d4f764a1299da5d28ec2f2ffe0d69.woff2 +0 -0
  203. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-79d494361ae093b69e74ee9dbe65bfd4.woff2 +0 -0
  204. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-79f007c1c6d07557120982951ea67998.woff2 +0 -0
  205. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7a07ddc0f0c0f5f4a9bad6ee3dda66b5.woff2 +0 -0
  206. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7ab2bed91166a9dca83a5ebfbe2a7f38.woff2 +0 -0
  207. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7ccce86603f80a099ddb0cb21d4ae3e3.woff2 +0 -0
  208. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7e4bde7e9c7f84cd34d8a845e384c746.woff2 +0 -0
  209. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7e929f262f30c8ee78bf398150b1a7cd.woff2 +0 -0
  210. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7eb9fffd1aa890d07d0f88cc82e6cfe4.woff2 +0 -0
  211. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7f855356ab893b0d2b9c1c83b8116f0e.woff2 +0 -0
  212. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-829615148e6357d826b9242eb7fbbd1e.woff2 +0 -0
  213. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-866fa7613df6b3fd272bcfd4530c0bb9.woff2 +0 -0
  214. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-87599f94b6cc129d505b375798d0d751.woff2 +0 -0
  215. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8c2f33cee3993174f7e87c28e4bf42ee.woff2 +0 -0
  216. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8d3bcabb847b56243b16afe62adaaf21.woff2 +0 -0
  217. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8de5b863cb50dfefdd07cb11c774d579.woff2 +0 -0
  218. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8e9f97f01034820170065b2921b4fb5e.woff2 +0 -0
  219. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8f476c4c99813d57cbe6eca4727388ad.woff2 +0 -0
  220. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-903bb6865f3452e2fda42e3a25547bc5.woff2 +0 -0
  221. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-91ddb2969bf2d31ba02ad82998d1314c.woff2 +0 -0
  222. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-938d90c10ff8c20386af7f242c05d6b0.woff2 +0 -0
  223. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-93fc8f28a33234bcadf1527cafabd502.woff2 +0 -0
  224. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-95429962233afd82db1c27df1500a28c.woff2 +0 -0
  225. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9544732d2e62d1a429674f8ee41b5d3a.woff2 +0 -0
  226. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9592bfc861f07bcb8d75c196b370e548.woff2 +0 -0
  227. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-95bfd249da4902577b4b7d76ebdd0b44.woff2 +0 -0
  228. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-968cffdc8ee679da094e77ebf50f58ef.woff2 +0 -0
  229. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-97f7f48ce90c9429bf32ae51469db74d.woff2 +0 -0
  230. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-982b630266d87db93d2539affb1275c6.woff2 +0 -0
  231. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-98f2ad84457de7f3740d9920b8fa8667.woff2 +0 -0
  232. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-99a16ef6a64934d5781933dbd9c46b2e.woff2 +0 -0
  233. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9cfb2a77a4e45025105ad29a1748b90d.woff2 +0 -0
  234. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9d81066dd2b337c938df6e90380a00dc.woff2 +0 -0
  235. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9eb5a99df4e76ac3363453ac9ca288b1.woff2 +0 -0
  236. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a004ddfcb26e67bd6e678c8ed19e25ce.woff2 +0 -0
  237. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a0ca5df4258213d7fc9fce80f65ce760.woff2 +0 -0
  238. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a1f916d6039285c4ffb900cd654e418f.woff2 +0 -0
  239. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a203b91dad570bf05a58c3c3ddb529bf.woff2 +0 -0
  240. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a365e82ed54697a52f27adcea1315fe8.woff2 +0 -0
  241. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a4c34be6d42152e64b0df90bc4607f64.woff2 +0 -0
  242. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a7accba310e821da5505f71c03b76bdb.woff2 +0 -0
  243. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-aa0d470430e6391eca720c7cfa44446f.woff2 +0 -0
  244. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-aa5c9ca6cf4fba00433b7aa3fa10671a.woff2 +0 -0
  245. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ac9ceb44437becc3e9c4dbfebab7fc2d.woff2 +0 -0
  246. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b1220a3c61f85cc0408deedb4c5f57a2.woff2 +0 -0
  247. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b358f7a51ece39a3247942b1feabdb29.woff2 +0 -0
  248. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b57aaedfd8ebdf3931f25119dc6a5eb2.woff2 +0 -0
  249. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b5c1596551c256e0e9cf02028595b092.woff2 +0 -0
  250. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b6d128682ee29e471486354d486a1b90.woff2 +0 -0
  251. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b6fd38ca30869792244804b04bc058da.woff2 +0 -0
  252. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b7d203b051eff504ff59ddca7576b6a9.woff2 +0 -0
  253. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b96d9226ce77ec94ceca043d712182e6.woff2 +0 -0
  254. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ba3de316d63c7e339987b16f41a0b879.woff2 +0 -0
  255. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-bafff7a14c27403dcc6cf1432e8ea836.woff2 +0 -0
  256. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-bd77e3c7f9e0b072d96af37f73d1aa32.woff2 +0 -0
  257. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-be549ab72f0719d606a5c01e2c0219b6.woff2 +0 -0
  258. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c16ed9740b85badf16e86ea782a3062f.woff2 +0 -0
  259. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c1f94158256bb1f3bf665b053d895af9.woff2 +0 -0
  260. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c40533fdf4cc57177b12803598af7e59.woff2 +0 -0
  261. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c4a687ac4f0c2766eefc9f77ed99cddf.woff2 +0 -0
  262. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c69f61a4ab18d0488c8d1fc12e7028e8.woff2 +0 -0
  263. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c8b71798409ccc126ee264a00aadcf21.woff2 +0 -0
  264. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c99eda15fc26a2941579560f76c3a5cf.woff2 +0 -0
  265. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cb17fc3db95f6d139afc9d31a8e93293.woff2 +0 -0
  266. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cbaaefaaf326668277aa24dfa93c4d28.woff2 +0 -0
  267. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cd145ce4a0ea18469358df53c207bc1b.woff2 +0 -0
  268. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cdbce89e82cc1ab53a2decbf5819278f.woff2 +0 -0
  269. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ce4884f96f11589608b76b726a755803.woff2 +0 -0
  270. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cf2cc71752631e579e35b0e423bf2638.woff2 +0 -0
  271. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cf6ff4e0f491ca0cf3038187a997b9b4.woff2 +0 -0
  272. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cfb211578629b7e8153b37240de6a9d5.woff2 +0 -0
  273. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-d0cf73942fea1c74edbdf0b3011f4656.woff2 +0 -0
  274. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-d2666cbed13462c5dc36fa2f15c202ca.woff2 +0 -0
  275. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-d3716376641d615e2995605b29bca7b6.woff2 +0 -0
  276. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-dac48066b5883d8b4551fc584f0c2a3e.woff2 +0 -0
  277. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-dbea1af6dcd9860be40c3d18254338f5.woff2 +0 -0
  278. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e11567fd2accf9957cd0d3c2be937d87.woff2 +0 -0
  279. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e2ead7ea7da0437f085f42ffc05f8d13.woff2 +0 -0
  280. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e3fcf5180fd466c8915c4e8069491054.woff2 +0 -0
  281. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e480d9c614742d05f0e78f274f1e69e6.woff2 +0 -0
  282. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e4bca6cfa53e499cae0a6be4894a90e9.woff2 +0 -0
  283. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e51ef413167c6e14e0c0fdcc585f2fc9.woff2 +0 -0
  284. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e5f453bb04da18eed01675eeebd88bf8.woff2 +0 -0
  285. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e656f091b9dc4709722c9f4b84d3c797.woff2 +0 -0
  286. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ec181b795ac1fb5a50d700b6e996d745.woff2 +0 -0
  287. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ee8bae97908d5147b423f77ad0d3c1bb.woff2 +0 -0
  288. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f0f13b5c60e0af5553bd359f5513be1b.woff2 +0 -0
  289. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f2b54d4e7be0eaefe1c2c56836fa5368.woff2 +0 -0
  290. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f56414bf9bced67990def8660e306759.woff2 +0 -0
  291. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f5d079153c99a25b9be5b8583c4cc8a7.woff2 +0 -0
  292. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f6032fc06eb20480f096199713f70885.woff2 +0 -0
  293. package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f8ee5d36068a42b51d0e4a1116cfcec1.woff2 +0 -0
  294. package/web/dist/assets/fa-IR-HGAKTJCU-DIaro9Hx.js +8 -0
  295. package/web/dist/assets/fi-FI-Z5N7JZ37-COLyTVSp.js +6 -0
  296. package/web/dist/assets/file-open-002ab408-Cy0lZgj6.js +1 -0
  297. package/web/dist/assets/file-open-7c801643-DbefhMI_.js +1 -0
  298. package/web/dist/assets/file-save-3189631c-BPCcZ2YS.js +1 -0
  299. package/web/dist/assets/file-save-745eba88-C1L7DNUT.js +1 -0
  300. package/web/dist/assets/flowDiagram-HODETNUW-CBEJA9iU.js +168 -0
  301. package/web/dist/assets/fr-FR-RHASNOE6-Dqi638pn.js +9 -0
  302. package/web/dist/assets/{fsharp-BOBx9XdV.js → fsharp-Cv5ra58w.js} +1 -1
  303. package/web/dist/assets/ganttDiagram-EL5Y4UJY-vAHRozpM.js +292 -0
  304. package/web/dist/assets/gitGraphDiagram-WWUBYQGX-DCXKE3o8.js +106 -0
  305. package/web/dist/assets/gl-ES-HMX3MZ6V-Dfcw_231.js +10 -0
  306. package/web/dist/assets/{graphql-Cx0exbAy.js → graphql-B_h7z8QF.js} +1 -1
  307. package/web/dist/assets/he-IL-6SHJWFNN-BSAgg49S.js +10 -0
  308. package/web/dist/assets/hi-IN-IWLTKZ5I-BqI-UNou.js +4 -0
  309. package/web/dist/assets/{html-COcRjUs1.js → html-BQzGhNSS.js} +1 -1
  310. package/web/dist/assets/{html-derivative-C2Epw9Yg.js → html-derivative-Bhd9D5yb.js} +1 -1
  311. package/web/dist/assets/{http-CKiiwQak.js → http-D8BvZbjX.js} +1 -1
  312. package/web/dist/assets/hu-HU-A5ZG7DT2-B16ap7C1.js +7 -0
  313. package/web/dist/assets/id-ID-SAP4L64H-BUqRAxnn.js +10 -0
  314. package/web/dist/assets/image-blob-reduce.esm-BusboIaP.js +7 -0
  315. package/web/dist/assets/index-jgQcOxOn.js +330 -0
  316. package/web/dist/assets/infoDiagram-27XIBGKW-vfG1s0OL.js +2 -0
  317. package/web/dist/assets/init-DJLlxTyT.js +1 -0
  318. package/web/dist/assets/ishikawaDiagram-5VMMS53U-Bci9k7OW.js +70 -0
  319. package/web/dist/assets/it-IT-JPQ66NNP-BWRN1Ku9.js +11 -0
  320. package/web/dist/assets/ja-JP-DBVTYXUO-No6piD4d.js +8 -0
  321. package/web/dist/assets/journeyDiagram-3NMN7TZE-DPaDQjfX.js +139 -0
  322. package/web/dist/assets/{julia-yApUWuwQ.js → julia-DGlqHGmw.js} +1 -1
  323. package/web/dist/assets/kaa-6HZHGXH3-DdHIcOCS.js +1 -0
  324. package/web/dist/assets/kab-KAB-ZGHBKWFO-2wPJRIz0.js +8 -0
  325. package/web/dist/assets/kanban-definition-UXKFOSKX-COZcNcrM.js +89 -0
  326. package/web/dist/assets/kk-KZ-P5N5QNE5-BnVddHiG.js +1 -0
  327. package/web/dist/assets/km-KH-HSX4SM5Z-CaQh_1Zz.js +11 -0
  328. package/web/dist/assets/ko-KR-MTYHY66A-BiAIKUW_.js +9 -0
  329. package/web/dist/assets/ku-TR-6OUDTVRD-Cmqyx_qg.js +9 -0
  330. package/web/dist/assets/layout-D1ZAr34W.js +1 -0
  331. package/web/dist/assets/linear-CMBY9Ynj.js +1 -0
  332. package/web/dist/assets/lt-LT-XHIRWOB4-FPPi26PI.js +3 -0
  333. package/web/dist/assets/{lua-DyIUvKwX.js → lua-KeJfiUHt.js} +1 -1
  334. package/web/dist/assets/lv-LV-5QDEKY6T-CdfhNxb4.js +7 -0
  335. package/web/dist/assets/mindmap-definition-YA3MSWOX-DO_oVGmk.js +96 -0
  336. package/web/dist/assets/mr-IN-CRQNXWMA-D5Mv5ubd.js +13 -0
  337. package/web/dist/assets/my-MM-5M5IBNSE-CG_XcsDc.js +1 -0
  338. package/web/dist/assets/nb-NO-T6EIAALU-ButcGDIE.js +10 -0
  339. package/web/dist/assets/nl-NL-IS3SIHDZ-B4RCIW6U.js +8 -0
  340. package/web/dist/assets/nn-NO-6E72VCQL-Xesywhmp.js +8 -0
  341. package/web/dist/assets/oc-FR-POXYY2M6-DScPx0Ux.js +8 -0
  342. package/web/dist/assets/ordinal-DwN7YuHj.js +1 -0
  343. package/web/dist/assets/pa-IN-N4M65BXN-VndNSoj5.js +4 -0
  344. package/web/dist/assets/pegDiagram-XKGWAZYB-DDMhIEdn.js +1 -0
  345. package/web/dist/assets/percentages-BXMCSKIN-VuFdtdZF.js +215 -0
  346. package/web/dist/assets/percentages-BXMCSKIN.css +1 -0
  347. package/web/dist/assets/{perl-CpGQZpC_.js → perl-D7MbmVge.js} +1 -1
  348. package/web/dist/assets/{php-oZYo-vlq.js → php-JejPRwzT.js} +1 -1
  349. package/web/dist/assets/pica-GNj3eWcB.js +7 -0
  350. package/web/dist/assets/pieDiagram-E7YTZNPT-CV4Axk4E.js +39 -0
  351. package/web/dist/assets/pl-PL-T2D74RX3-B2jYVPHk.js +9 -0
  352. package/web/dist/assets/{plugin-BEgYgb9_.js → plugin-B4TCKNbA.js} +3 -3
  353. package/web/dist/assets/plugin-BAyOcS28.js +3 -0
  354. package/web/dist/assets/{plugin-DNZOW4q0.js → plugin-DtO0gZBn.js} +1 -1
  355. package/web/dist/assets/{plugin-CRwdqOAZ.js → plugin-Dtwg42bN.js} +1 -1
  356. package/web/dist/assets/plugin.css +32 -0
  357. package/web/dist/assets/plugin2.css +1 -0
  358. package/web/dist/assets/plugin3.css +1 -0
  359. package/web/dist/assets/pt-BR-5N22H2LF-cpUpSu3B.js +9 -0
  360. package/web/dist/assets/pt-PT-UZXXM6DQ-Bm5o1aNS.js +9 -0
  361. package/web/dist/assets/quadrantDiagram-AXDQQJYC-BrOice72.js +7 -0
  362. package/web/dist/assets/railroadDiagram-O6MQD6OU-CkIA7mzY.js +1 -0
  363. package/web/dist/assets/requirementDiagram-BXWQKSXE-BLZfWa3W.js +84 -0
  364. package/web/dist/assets/ro-RO-JPDTUUEW-D5ewbr8v.js +11 -0
  365. package/web/dist/assets/roundRect-lnpiQ-4W.js +1 -0
  366. package/web/dist/assets/{rst-4RX8FB4F.js → rst-Bz1_glFI.js} +1 -1
  367. package/web/dist/assets/ru-RU-B4JR7IUQ-BM4UrPha.js +9 -0
  368. package/web/dist/assets/{ruby-C6pSrahs.js → ruby-oizq67Sq.js} +1 -1
  369. package/web/dist/assets/sankeyDiagram-P5KCCOFB-yD9hxLJX.js +40 -0
  370. package/web/dist/assets/{scss-Ce0Xtdy1.js → scss-DMeWdmPn.js} +1 -1
  371. package/web/dist/assets/sequenceDiagram-WJ2MYXX4-CVqyJvFC.js +162 -0
  372. package/web/dist/assets/si-LK-N5RQ5JYF-BnIjQwpQ.js +1 -0
  373. package/web/dist/assets/sizeCapture-INFHLROL-CkvfPyS2.js +1 -0
  374. package/web/dist/assets/sk-SK-C5VTKIMK-C0h1qdby.js +6 -0
  375. package/web/dist/assets/sl-SI-NN7IZMDC-DNV45ffS.js +6 -0
  376. package/web/dist/assets/stateDiagram-D77RDMKH-Nh0i53vT.js +1 -0
  377. package/web/dist/assets/stateDiagram-v2-MP3YSRHH-BM-K9bmc.js +1 -0
  378. package/web/dist/assets/subset-shared.chunk-TuA1fSFQ.js +84 -0
  379. package/web/dist/assets/subset-worker.chunk-BTM-pM_r.js +1 -0
  380. package/web/dist/assets/sv-SE-XGPEYMSR-uosawlJJ.js +10 -0
  381. package/web/dist/assets/{svelte-CYHu_FL1.js → svelte-BEhn2A1K.js} +1 -1
  382. package/web/dist/assets/swimlanes-42K2YHIH-CrScVzJe.js +1 -0
  383. package/web/dist/assets/swimlanesDiagram-VR7AAH4N-BSX45RRS.js +8 -0
  384. package/web/dist/assets/ta-IN-2NMHFXQM-Dt9s5QjW.js +9 -0
  385. package/web/dist/assets/{telemetry-client-CBQBug9X.js → telemetry-client-Cvi2eILd.js} +1 -1
  386. package/web/dist/assets/th-TH-HPSO5L25-BxufhAju.js +2 -0
  387. package/web/dist/assets/timeline-definition-24CTP7MA-CJbJt2dR.js +120 -0
  388. package/web/dist/assets/tr-TR-DEFEU3FU-BIQE9Xm7.js +7 -0
  389. package/web/dist/assets/uk-UA-QMV73CPH-DhyX8oOD.js +6 -0
  390. package/web/dist/assets/vennDiagram-4TSXK5OY-Dvn1Sbov.js +34 -0
  391. package/web/dist/assets/vi-VN-M7AON7JQ-BCPc5pcG.js +5 -0
  392. package/web/dist/assets/{vue-BuaLwbxG.js → vue-C1O1jwon.js} +1 -1
  393. package/web/dist/assets/wardleyDiagram-VM6X3IG4-D6lZMm5T.js +78 -0
  394. package/web/dist/assets/{xml-DCBoxqhY.js → xml-Db5pMVNY.js} +1 -1
  395. package/web/dist/assets/xychartDiagram-S5SC5T6Z-h2UKcCAm.js +7 -0
  396. package/web/dist/assets/zh-CN-LNUGB5OW-n8E34oE-.js +10 -0
  397. package/web/dist/assets/zh-HK-E62DVLB3-BaW9jv7O.js +1 -0
  398. package/web/dist/assets/zh-TW-RAJ6MFWO-Ba9nSPFU.js +9 -0
  399. package/web/dist/index.html +0 -1
@@ -0,0 +1,330 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-gCk-2TDF.js","assets/app.js","assets/app.css","assets/sizeCapture-INFHLROL-CkvfPyS2.js","assets/dagre-GXQ25YYZ-BlnSzJm3.js","assets/layout-D1ZAr34W.js","assets/swimlanes-42K2YHIH-CrScVzJe.js","assets/cose-bilkent-JH36ORCC-DeCM8oGs.js","assets/cytoscape.esm-D53fhQAk.js","assets/c4Diagram-7LVT6UL2-B3dXdnJP.js","assets/chunk-F27PBJKO-DT--4dNr.js","assets/flowDiagram-HODETNUW-CBEJA9iU.js","assets/chunk-5VM5RSS4-DcZaSc8t.js","assets/chunk-XXDRQBXY-D8lcfHi6.js","assets/chunk-POPQ4Y6H-BGw17ABw.js","assets/channel-BNmt9r9T.js","assets/swimlanesDiagram-VR7AAH4N-BSX45RRS.js","assets/erDiagram-RLTQ6QDP-DPjb8P7m.js","assets/gitGraphDiagram-WWUBYQGX-DCXKE3o8.js","assets/chunk-2Q5K7J3B-4JenjRP2.js","assets/chunk-JWPE2WC7-DcfbcRY9.js","assets/cynefin-OW5HDTMX-Cd2IdigE.js","assets/ganttDiagram-EL5Y4UJY-vAHRozpM.js","assets/linear-CMBY9Ynj.js","assets/init-DJLlxTyT.js","assets/defaultLocale-DJbf9fPl.js","assets/infoDiagram-27XIBGKW-vfG1s0OL.js","assets/pieDiagram-E7YTZNPT-CV4Axk4E.js","assets/arc-DG_vwUrU.js","assets/ordinal-DwN7YuHj.js","assets/quadrantDiagram-AXDQQJYC-BrOice72.js","assets/xychartDiagram-S5SC5T6Z-h2UKcCAm.js","assets/requirementDiagram-BXWQKSXE-BLZfWa3W.js","assets/sequenceDiagram-WJ2MYXX4-CVqyJvFC.js","assets/classDiagram-ZZMXUADV-CYExlNpU.js","assets/chunk-TICWLB2K-B30eF_rg.js","assets/classDiagram-v2-VYDZK3BY-BOCqfMKB.js","assets/stateDiagram-D77RDMKH-Nh0i53vT.js","assets/chunk-IMKFNOWR-DkcD9Q04.js","assets/stateDiagram-v2-MP3YSRHH-BM-K9bmc.js","assets/journeyDiagram-3NMN7TZE-DPaDQjfX.js","assets/timeline-definition-24CTP7MA-CJbJt2dR.js","assets/mindmap-definition-YA3MSWOX-DO_oVGmk.js","assets/kanban-definition-UXKFOSKX-COZcNcrM.js","assets/sankeyDiagram-P5KCCOFB-yD9hxLJX.js","assets/diagram-Z3DM3KII-DDfhenF6.js","assets/diagram-UQ7AKVKN-CiE5Y0hF.js","assets/blockDiagram-I7D4REHJ-s2II5Siy.js","assets/diagram-S7CK7UJ4-C8cpqu4g.js","assets/architectureDiagram-5GKGNRK7-ECpwUvbT.js","assets/diagram-VSXAHHWV-wFDYB5SE.js","assets/ishikawaDiagram-5VMMS53U-Bci9k7OW.js","assets/vennDiagram-4TSXK5OY-Dvn1Sbov.js","assets/diagram-VX7I27RA-BJB4bQJ8.js","assets/wardleyDiagram-VM6X3IG4-D6lZMm5T.js","assets/cynefinDiagram-5FMLGOSQ-CHHc8NfT.js","assets/railroadDiagram-O6MQD6OU-CkIA7mzY.js","assets/chunk-SVP7TREG-CdlJhbkL.js","assets/ebnfDiagram-PWID7BFC-CKfU0hGL.js","assets/abnfDiagram-VCTEODGH-DOPlOkUJ.js","assets/pegDiagram-XKGWAZYB-DDMhIEdn.js"])))=>i.map(i=>d[i]);
2
+ var bb=Object.defineProperty;var kb=(e,t,r)=>t in e?bb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Jt=(e,t,r)=>kb(e,typeof t!="symbol"?t+"":t,r);import{_ as Rt}from"./app.js";import{g as Oh}from"./app-gCk-2TDF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="555eac6e-b77e-434c-a13a-0eddd35b6dc8",e._sentryDebugIdIdentifier="sentry-dbid-555eac6e-b77e-434c-a13a-0eddd35b6dc8")}catch{}})();const _o=20,wb={rect:"rectangle",circle:"ellipse"},qo={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${_o}px`},maxEdges:500,maxTextSize:5e4};class ws{constructor({converter:t}){this.convert=(r,i)=>this.converter(r,{...i,fontSize:i.fontSize||_o}),this.converter=t}}var Zr;(function(e){e.ROUND="round",e.STADIUM="stadium",e.DOUBLECIRCLE="doublecircle",e.CIRCLE="circle",e.DIAMOND="diamond",e.CYLINDER="cylinder"})(Zr||(Zr={}));var Le;(function(e){e.COLOR="color"})(Le||(Le={}));var Gt;(function(e){e.FILL="fill",e.STROKE="stroke",e.STROKE_WIDTH="stroke-width",e.STROKE_DASHARRAY="stroke-dasharray"})(Gt||(Gt={}));var $s={},Mu;function Sb(){if(Mu)return $s;Mu=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.removeMarkdown=void 0;var e=function(t,r){r===void 0&&(r={listUnicodeChar:""}),r=r||{},r.listUnicodeChar=r.hasOwnProperty("listUnicodeChar")?r.listUnicodeChar:!1,r.stripListLeaders=r.hasOwnProperty("stripListLeaders")?r.stripListLeaders:!0,r.gfm=r.hasOwnProperty("gfm")?r.gfm:!0,r.useImgAltText=r.hasOwnProperty("useImgAltText")?r.useImgAltText:!0,r.preserveLinks=r.hasOwnProperty("preserveLinks")?r.preserveLinks:!1;var i=t||"";i=i.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{r.stripListLeaders&&(r.listUnicodeChar?i=i.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,r.listUnicodeChar+" $1"):i=i.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),r.gfm&&(i=i.replace(/\n={2,}/g,`
3
+ `).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),r.preserveLinks&&(i=i.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),i=i.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,r.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,`
4
+
5
+ `).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,`
6
+
7
+ `)}catch(s){return console.error(s),t}return i};return $s.removeMarkdown=e,$s}var Tb=Sb();const _b={arrow_circle:{endArrowhead:"circle"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"circle",startArrowhead:"circle"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},vb=e=>_b[e],In=e=>{let t=e.text;return e.labelType==="markdown"&&(t=Tb.removeMarkdown(e.text)),Bb(t)},Bb=e=>{const t=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return e.replace(t,"")},uo=e=>{const t={};return Object.keys(e).forEach(r=>{var i;switch(r){case Gt.FILL:{t.backgroundColor=e[r],t.fillStyle="solid";break}case Gt.STROKE:{t.strokeColor=e[r];break}case Gt.STROKE_WIDTH:{t.strokeWidth=Number((i=e[r])==null?void 0:i.split("px")[0]);break}case Gt.STROKE_DASHARRAY:{t.strokeStyle="dashed";break}}}),t},Nl=e=>{const t={};return Object.keys(e).forEach(r=>{switch(r){case Le.COLOR:{t.strokeColor=e[r];break}}}),t},Lb=(e,t)=>[e,t],Ab=32,Wp=.62,Eb=12,Fb=12,Hp=(e,t)=>Math.max(20,Math.ceil(e.length*t*Wp)),Mb=(e,t,r,i)=>{const s=i||_o;if(e!==Zr.CYLINDER||!t||t.includes(`
8
+ `))return s;const o=Math.max(20,r-Eb);return Hp(t,s)<=o?s:Math.max(Fb,Math.floor(o/(t.length*Wp)))},$b=e=>{const t={};e.subGraphs.map(i=>{i.nodeIds.forEach(s=>{t[i.id]={id:i.id,parent:null,isLeaf:!1},t[s]={id:s,parent:i.id,isLeaf:e.vertices[s]!==void 0}})});const r={};return[...Object.keys(e.vertices),...e.subGraphs.map(i=>i.id)].forEach(i=>{if(!t[i])return;let s=t[i];const o=[];for(s.isLeaf||o.push(`subgraph_group_${s.id}`);s.parent;)o.push(`subgraph_group_${s.parent}`),s=t[s.parent];r[i]=o}),{getGroupIds:i=>r[i]||[],getParentId:i=>t[i]?t[i].parent:null}},Ob=new ws({converter:(e,t)=>{const r=[],i=t.fontSize,{getGroupIds:s,getParentId:o}=$b(e);return e.subGraphs.reverse().forEach(a=>{const n=s(a.id),l=In(a),u=Hp(l,i||16)+Ab*2,d=Math.max(a.width,u),f=a.x-(d-a.width)/2,p=uo(a.containerStyle),y=Nl(a.labelStyle),C={id:a.id,type:"rectangle",groupIds:n,x:f,y:a.y,width:d,height:a.height,label:{groupIds:n,text:l,fontSize:i,verticalAlign:"top",...y},...p};r.push(C)}),Object.values(e.vertices).forEach(a=>{if(!a)return;const n=s(a.id),l=In(a),c=Mb(a.type,l,a.width,i),h=uo(a.containerStyle),u=Nl(a.labelStyle);let d={id:a.id,type:"rectangle",groupIds:n,x:a.x,y:a.y,width:a.width,height:a.height,strokeWidth:2,label:{groupIds:n,text:l,fontSize:c,...u},link:a.link||null,...h};switch(a.type){case Zr.STADIUM:{d={...d,roundness:{type:3}};break}case Zr.ROUND:{d={...d,roundness:{type:3}};break}case Zr.DOUBLECIRCLE:{n.push(`doublecircle_${a.id}}`);const p={type:"ellipse",groupIds:n,x:a.x+5,y:a.y+5,width:a.width-10,height:a.height-10,strokeWidth:2,roundness:{type:3},label:{groupIds:n,text:l,fontSize:c,...u}};d={...d,groupIds:n,type:"ellipse"},r.push(p);break}case Zr.CIRCLE:{d.type="ellipse";break}case Zr.DIAMOND:{d.type="diamond";break}}r.push(d)}),e.edges.forEach(a=>{let n=[];const l=o(a.start),c=o(a.end);l&&l===c&&(n=s(l));const{startX:h,startY:u,reflectionPoints:d}=a,f=d.map(k=>Lb(k.x-d[0].x,k.y-d[0].y)),p=vb(a.type||"arrow_point"),y=r.find(k=>k.id===a.start),C=r.find(k=>k.id===a.end);if(!y||!C)return;const b={id:`${a.start}_${a.end}`,type:"arrow",groupIds:n,x:h,y:u,strokeWidth:a.stroke==="thick"?4:2,strokeStyle:a.stroke==="dotted"?"dashed":void 0,points:f,...a.text?{label:{text:In(a),fontSize:i,groupIds:n}}:{},roundness:{type:2},...p,start:{id:y.id||""},end:{id:C.id||""}};r.push(b)}),{elements:r}}});let Ib="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ue=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Ib[r[e]&63];return t};const Db=new ws({converter:e=>{const t=Ue(),{width:r,height:i}=e,s={type:"image",x:0,y:0,width:r,height:i,status:"saved",fileId:t};return{files:{[t]:{id:t,mimeType:e.mimeType,dataURL:e.dataURL}},elements:[s]}}}),io=(e,t)=>[e,t],Ih=e=>e.replace(/\\n/g,`
9
+ `),gi=e=>{const t={type:"line",x:e.startX,y:e.startY,points:[io(0,0),io(e.endX-e.startX,e.endY-e.startY)],width:e.endX-e.startX,height:e.endY-e.startY,strokeStyle:e.strokeStyle||"solid",strokeColor:e.strokeColor||"#000",strokeWidth:e.strokeWidth||1};return e.groupId&&Object.assign(t,{groupIds:[e.groupId]}),e.id&&Object.assign(t,{id:e.id}),t},mi=e=>{const t={type:"text",x:e.x,y:e.y,width:e.width,height:e.height,text:Ih(e.text)||"",fontSize:e.fontSize,verticalAlign:"top",strokeColor:e.color};return e.groupId&&Object.assign(t,{groupIds:[e.groupId]}),e.id&&Object.assign(t,{id:e.id}),t},ji=e=>{var s,o,a,n,l;const t={text:Ih(((s=e==null?void 0:e.label)==null?void 0:s.text)||""),fontSize:(o=e==null?void 0:e.label)==null?void 0:o.fontSize,textAlign:(a=e.label)==null?void 0:a.textAlign,verticalAlign:((n=e.label)==null?void 0:n.verticalAlign)||"middle",strokeColor:((l=e.label)==null?void 0:l.color)||"#000",...e.groupId?{groupIds:[e.groupId]}:{}};let r={};e.type==="rectangle"&&e.subtype==="activation"&&(r={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:e.id,type:e.type,x:e.x,y:e.y,width:e.width,height:e.height,label:t,strokeStyle:e==null?void 0:e.strokeStyle,strokeWidth:e==null?void 0:e.strokeWidth,strokeColor:e==null?void 0:e.strokeColor,backgroundColor:e==null?void 0:e.bgColor,fillStyle:"solid",...r};return e.groupId&&Object.assign(i,{groupIds:[e.groupId]}),i},Dh=e=>{var r,i,s,o;const t={type:"arrow",x:e.startX,y:e.startY,points:((r=e.points)==null?void 0:r.map(([a,n])=>io(a,n)))||[io(0,0),io(e.endX-e.startX,e.endY-e.startY)],width:e.endX-e.startX,height:e.endY-e.startY,strokeStyle:(e==null?void 0:e.strokeStyle)||"solid",endArrowhead:(e==null?void 0:e.endArrowhead)||null,startArrowhead:(e==null?void 0:e.startArrowhead)||null,label:{text:Ih(((i=e==null?void 0:e.label)==null?void 0:i.text)||""),fontSize:16,textAlign:(s=e==null?void 0:e.label)==null?void 0:s.textAlign,verticalAlign:(o=e==null?void 0:e.label)==null?void 0:o.verticalAlign},roundness:{type:2},start:e.start,end:e.end};return e.groupId&&Object.assign(t,{groupIds:[e.groupId]}),t},zo=10,Dn=16,Pb=24,Rb=4,Nb=e=>{if(!e)return!0;const t=e.trim().toLowerCase();return t==="transparent"||t==="none"||t==="rgba(0,0,0,0)"||t==="rgba(0, 0, 0, 0)"},qb=(e,t)=>Math.max(20,Math.round(e.length*t*.6)),$u=(e,t,r=!0)=>{const i=e,s=i.groupIds??[];if(s.includes(t)||(i.groupIds=[...s,t]),!r||!i.label)return;const o=i.label.groupIds??[];o.includes(t)||(i.label.groupIds=[...o,t])},zb=new ws({converter:e=>{const t=[],r=[];if(Object.values(e.nodes).forEach(i=>{!i||!i.length||i.forEach(s=>{let o;switch(s.type){case"line":o=gi(s);break;case"rectangle":case"ellipse":o=ji(s);break;case"text":o=mi(s);break;default:throw`unknown type ${s.type}`}s.type==="rectangle"&&(s==null?void 0:s.subtype)==="activation"?r.push(o):t.push(o)})}),Object.values(e.lines).forEach(i=>{i&&t.push(gi(i))}),Object.values(e.arrows).forEach(i=>{i&&(t.push(Dh(i)),i.sequenceNumber&&t.push(ji(i.sequenceNumber)))}),t.push(...r),e.loops){const{lines:i,texts:s,nodes:o}=e.loops;i.forEach(a=>{t.push(gi(a))}),s.forEach(a=>{t.push(mi(a))}),o.forEach(a=>{t.push(ji(a))})}return e.groups&&e.groups.forEach(i=>{const{actorKeys:s,name:o}=i;let a=1/0,n=1/0,l=0,c=0;if(!s.length)return;const h=t.filter(b=>{if(b.id){const k=b.id.indexOf("-"),T=b.id.substring(0,k);return s.includes(T)}return!1});if(!h.length||(h.forEach(b=>{b.x===void 0||b.y===void 0||b.width===void 0||b.height===void 0||(a=Math.min(a,b.x),n=Math.min(n,b.y),l=Math.max(l,b.x+b.width),c=Math.max(c,b.y+b.height))}),!Number.isFinite(a)||!Number.isFinite(n)||!Number.isFinite(l)||!Number.isFinite(c)))return;const u=a-zo,d=n-zo,f=l-a+zo*2,p=c-n+zo*2,y=Ue(),C=Ue(),x=ji({type:"rectangle",x:u,y:d,width:f,height:p,bgColor:Nb(i.fill)?void 0:i.fill,strokeColor:"#1f1f1f",strokeWidth:1,id:y,groupId:C});if(t.unshift(x),t.forEach(b=>{b.id!==y&&(b.x===void 0||b.y===void 0||b.width===void 0||b.height===void 0||b.x>=a&&b.x+b.width<=l&&b.y>=n&&b.y+b.height<=c&&$u(b,C))}),o){const b=mi({id:Ue(),text:o,x:u+Rb,y:d-Pb,width:qb(o,Dn),height:Dn+8,fontSize:Dn,color:"#1f1f1f",groupId:C});$u(b,C,!1),t.push(b)}}),{elements:t}}}),Wb=new ws({converter:e=>{const t=[];return e.nodes.forEach(r=>{!r||!r.length||r.forEach(i=>{let s;switch(i.type){case"line":s=gi(i);break;case"rectangle":case"ellipse":s=ji(i);break;case"text":s=mi(i);break;default:throw`unknown type ${i.type}`}t.push(s)})}),Object.values(e.lines).forEach(r=>{r&&t.push(gi(r))}),Object.values(e.arrows).forEach(r=>{if(!r)return;const i=Dh(r);t.push(i)}),Object.values(e.text).forEach(r=>{const i=mi(r);t.push(i)}),Object.values(e.namespaces).forEach(r=>{const i=Object.keys(r.classes),s=[...i],o=[...e.lines,...e.arrows,...e.text];i.forEach(n=>{const l=o.filter(c=>c.metadata&&c.metadata.classId===n).map(c=>c.id);l.length&&s.push(...l)});const a={type:"frame",id:Ue(),name:r.id,children:s};t.push(a)}),{elements:t}}}),Hb=new ws({converter:e=>{const t=[];return e.nodes.forEach(r=>{!r||!r.length||r.forEach(i=>{let s;switch(i.type){case"line":s=gi(i);break;case"rectangle":case"ellipse":s=ji(i);break;case"text":s=mi(i);break;default:throw`unknown type ${i.type}`}t.push(s)})}),e.lines.forEach(r=>{t.push(gi(r))}),e.arrows.forEach(r=>{t.push(Dh(r))}),e.text.forEach(r=>{t.push(mi(r))}),{elements:t}}}),xa=(e,t)=>[e,t],js=16,Yp=14,Yb=1,ql="#000000",Up=5,Ub=Up*2,jb=Up*2,Xb=1.25,jp=new Set(["choice","fork","join","stateStart","stateEnd","divider"]),zl=e=>e.shape==="stateEnd"?[`state_end_group_${e.id}`]:void 0,Xp=e=>e.shape==="rectWithTitle"&&e.description.length?[e.text,...e.description].join(`
10
+ `):e.text;let oi;const Gb=()=>{if(oi!==void 0)return oi;if(typeof document>"u")return oi=null,oi;try{oi=document.createElement("canvas").getContext("2d")}catch{oi=null}return oi},ps=(e,t)=>{const r=Gb();return r?(r.font=`${t}px Excalifont, sans-serif`,r.measureText(e).width):e.length*t*.6},Vb=(e,t,r)=>{if(ps(e,t)<=r)return[e];const i=[];let s="";for(const o of e){const a=`${s}${o}`;if(s&&ps(a,t)>r){i.push(s),s=o;continue}s=a}return s&&i.push(s),i},Kb=(e,t,r)=>{if(!e.trim()||ps(e,t)<=r)return e;const i=e.split(/\s+/).filter(Boolean),s=[];let o="";for(const a of i){const n=Vb(a,t,r);for(const[l,c]of n.entries()){const u=o?`${o}${o&&l===0?" ":""}${c}`:c;if(ps(u,t)<=r){o=u;continue}o&&s.push(o),o=c}n.length>1}return s.push(o),s.join(`
11
+ `)},Zb=(e,t,r)=>{const s=e.map(n=>Kb(n,t,r)).join(`
12
+ `).split(`
13
+ `),o=Math.max(...s.map(n=>ps(n,t))),a=s.length*t*Xb;return{width:o,height:a}},Qb=(e,t,r,i)=>{const s=e.split(`
14
+ `);for(let o=js;o>=Yp;o-=Yb){const{height:a}=Zb(s,o,t);if(a<=r)return o}return i},Jb=e=>{const t=Xp(e);if(!t||jp.has(e.shape))return js;const r=Math.max(1,e.width-Ub),i=Math.max(1,e.height-jb),s=t.split(`
15
+ `);return s.length>1&&Math.max(...s.map(a=>ps(a,js)))<=r?js:Qb(t,r,i,s.length===1?js:Yp)},t1=e=>{if(jp.has(e.shape))return;const t=Xp(e);if(t)return{text:t,fontSize:Jb(e),verticalAlign:e.shape==="rectWithTitle"||e.shape==="roundedWithTitle"?"top":"middle",...Nl(e.labelStyle)}},e1=e=>{const t=uo(e.containerStyle),r=t1(e),i=e.shape==="choice"?"diamond":e.shape==="stateStart"||e.shape==="stateEnd"?"ellipse":"rectangle",s=e.shape==="rect"||e.shape==="rectWithTitle"||e.shape==="roundedWithTitle",o=e.shape==="stateStart"||e.shape==="fork"||e.shape==="join",a=t.backgroundColor||t.strokeColor||ql,n=t.strokeColor||t.backgroundColor||ql;return{id:e.id,type:i,...zl(e)?{groupIds:zl(e)}:{},x:e.x,y:e.y,width:e.width,height:e.height,...r?{label:r}:{},...t,...s?{roundness:{type:3}}:{},...o?{backgroundColor:a,strokeColor:n,fillStyle:"solid"}:{}}},r1=e=>{if(!e.dividerLine)return null;const t=uo(e.containerStyle);return{id:`${e.id}__divider`,type:"line",x:e.dividerLine.startX,y:e.dividerLine.startY,width:e.dividerLine.endX-e.dividerLine.startX,height:e.dividerLine.endY-e.dividerLine.startY,points:[xa(0,0),xa(e.dividerLine.endX-e.dividerLine.startX,e.dividerLine.endY-e.dividerLine.startY)],strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1}},i1=e=>{const t=uo(e.containerStyle),r=Math.max(2,Math.min(e.width,e.height)*.32),i=e.endInnerColor||t.strokeColor||t.backgroundColor||ql;return{id:`${e.id}__inner`,type:"ellipse",groupIds:zl(e),x:e.x+r,y:e.y+r,width:Math.max(1,e.width-r*2),height:Math.max(1,e.height-r*2),backgroundColor:i,strokeColor:i,fillStyle:"solid",strokeWidth:1}},s1=e=>{const t=e.reflectionPoints.map((r,i,s)=>{const o=s[0];return i===0?xa(0,0):xa(r.x-o.x,r.y-o.y)});return{id:e.id,type:"arrow",x:e.startX,y:e.startY,width:e.endX-e.startX,height:e.endY-e.startY,points:t,strokeColor:e.strokeColor||"#000",strokeWidth:e.strokeWidth||2,strokeStyle:e.strokeStyle||"solid",endArrowhead:e.isNoteEdge?null:"triangle",roundness:{type:2},start:{id:e.start},end:{id:e.end},...e.text?{label:{text:e.text,fontSize:16}}:{}}},o1=new ws({converter:e=>{const t=[];return e.nodes.forEach(r=>{if(!r.isRenderable)return;const i=e1(r);t.push(i);const s=r1(r);s&&t.push(s),r.shape==="stateEnd"&&t.push(i1(r))}),e.edges.forEach(r=>{t.push(s1(r))}),{elements:t}}}),De=e=>{e=n1(e);const t=e.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),r=document.createElement("textarea");return r.innerHTML=t,r.value},yi=e=>{const t=e.getAttribute("transform"),r=t==null?void 0:t.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let i=0,s=0;return r&&(i=Number(r[1]),s=Number(r[2])),{transformX:i,transformY:s}},a1=e=>{let t=e;return t=t.replace(/style.*:\S*#.*;/g,r=>r.substring(0,r.length-1)),t=t.replace(/classDef.*:\S*#.*;/g,r=>r.substring(0,r.length-1)),t=t.replace(/#\w+;/g,r=>{const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?`fl°°${i}¶ß`:`fl°${i}¶ß`}),t},n1=function(e){return e.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},l1=.5,Ph=(e,t=l1)=>{const r=[];return e.forEach(i=>{const s=r[r.length-1];if(!s){r.push(i);return}Math.hypot(i[0]-s[0],i[1]-s[1])<=t||r.push(i)}),r},Rh=e=>{const t=e.getAttribute("d");if(!t)return null;const r=Array.from(t.matchAll(/-?\d*\.?\d+(?:e[-+]?\d+)?/gi),i=>Number(i[0]));return r.length<4?null:{startX:r[0],startY:r[1],endX:r[r.length-2],endY:r[r.length-1]}},Gp=e=>{const t=e.getAttribute("data-points");if(!t){const r=Rh(e);return r?[{x:r.startX,y:r.startY},{x:r.endX,y:r.endY}]:[]}try{const r=atob(t),i=JSON.parse(r);return Array.isArray(i)?i.filter(s=>s&&typeof s.x=="number"&&typeof s.y=="number"&&Number.isFinite(s.x)&&Number.isFinite(s.y)):[]}catch{return[]}},Vp=(e,t={x:0,y:0},r="LM")=>{if(e.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${e.tagName}`);const i=e.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const s=i.split(new RegExp(`(?=[${r}])`)),o=s[0].substring(1).split(",").map(l=>parseFloat(l)),a=s[s.length-1].substring(1).split(",").map(l=>parseFloat(l)),n=s.map(l=>{const c=l[0],h=l.substring(1).split(",").map(u=>parseFloat(u));return c==="C"?{x:h[4],y:h[5],command:c}:{x:h[0],y:h[1],command:c}}).filter((l,c,h)=>{if(c===0||c===h.length-1)return!0;if(l.x===h[c-1].x&&l.y===h[c-1].y||c===h.length-2&&l.command==="C")return!1;if(c===h.length-2&&(h[c-1].x===l.x||h[c-1].y===l.y)){const u=h[h.length-1];return Math.hypot(u.x-l.x,u.y-l.y)>20}return l.x!==h[c-1].x||l.y!==h[c-1].y}).map(l=>({x:l.x+t.x,y:l.y+t.y}));return{startX:o[0]+t.x,startY:o[1]+t.y,endX:a[0]+t.x,endY:a[1]+t.y,reflectionPoints:n}},h1=e=>({...e,elements:e.elements.map(t=>{if(!("points"in t)||!Array.isArray(t.points))return t;const r=t.points;if(r.length<2)return t;const i=Ph(r);return i.length===r.length?t:{...t,points:i}})}),c1=(e,t={})=>{const r=(()=>{switch(e.type){case"graphImage":return Db.convert(e,t);case"flowchart":return Ob.convert(e,t);case"sequence":return zb.convert(e,t);case"class":return Wb.convert(e,t);case"erd":return Hb.convert(e,t);case"state":return o1.convert(e,t);default:throw new Error(`graphToExcalidraw: unknown graph type "${e.type}, only flowcharts are supported!"`)}})();return h1(r)};var Kp=Object.defineProperty,g=(e,t)=>Kp(e,"name",{value:t,configurable:!0}),u1=(e,t)=>{for(var r in t)Kp(e,r,{get:t[r],enumerable:!0})},oa={exports:{}},d1=oa.exports,Ou;function f1(){return Ou||(Ou=1,(function(e,t){(function(r,i){e.exports=i()})(d1,(function(){var r=1e3,i=6e4,s=36e5,o="millisecond",a="second",n="minute",l="hour",c="day",h="week",u="month",d="quarter",f="year",p="date",y="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,b={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(O){var $=["th","st","nd","rd"],B=O%100;return"["+O+($[(B-20)%10]||$[B]||$[0])+"]"}},k=function(O,$,B){var N=String(O);return!N||N.length>=$?O:""+Array($+1-N.length).join(B)+O},T={s:k,z:function(O){var $=-O.utcOffset(),B=Math.abs($),N=Math.floor(B/60),F=B%60;return($<=0?"+":"-")+k(N,2,"0")+":"+k(F,2,"0")},m:function O($,B){if($.date()<B.date())return-O(B,$);var N=12*(B.year()-$.year())+(B.month()-$.month()),F=$.clone().add(N,u),D=B-F<0,K=$.clone().add(N+(D?-1:1),u);return+(-(N+(B-F)/(D?F-K:K-F))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:u,y:f,w:h,d:c,D:p,h:l,m:n,s:a,ms:o,Q:d}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},v="en",E={};E[v]=b;var L="$isDayjsObject",A=function(O){return O instanceof ot||!(!O||!O[L])},H=function O($,B,N){var F;if(!$)return v;if(typeof $=="string"){var D=$.toLowerCase();E[D]&&(F=D),B&&(E[D]=B,F=D);var K=$.split("-");if(!F&&K.length>1)return O(K[0])}else{var lt=$.name;E[lt]=$,F=lt}return!N&&F&&(v=F),F||!N&&v},q=function(O,$){if(A(O))return O.clone();var B=typeof $=="object"?$:{};return B.date=O,B.args=arguments,new ot(B)},R=T;R.l=H,R.i=A,R.w=function(O,$){return q(O,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var ot=(function(){function O(B){this.$L=H(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[L]=!0}var $=O.prototype;return $.parse=function(B){this.$d=(function(N){var F=N.date,D=N.utc;if(F===null)return new Date(NaN);if(R.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var K=F.match(C);if(K){var lt=K[2]-1||0,ht=(K[7]||"0").substring(0,3);return D?new Date(Date.UTC(K[1],lt,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ht)):new Date(K[1],lt,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ht)}}return new Date(F)})(B),this.init()},$.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()},$.$utils=function(){return R},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(B,N){var F=q(B);return this.startOf(N)<=F&&F<=this.endOf(N)},$.isAfter=function(B,N){return q(B)<this.startOf(N)},$.isBefore=function(B,N){return this.endOf(N)<q(B)},$.$g=function(B,N,F){return R.u(B)?this[N]:this.set(F,B)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(B,N){var F=this,D=!!R.u(N)||N,K=R.p(B),lt=function(Et,ut){var bt=R.w(F.$u?Date.UTC(F.$y,ut,Et):new Date(F.$y,ut,Et),F);return D?bt:bt.endOf(c)},ht=function(Et,ut){return R.w(F.toDate()[Et].apply(F.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ut)),F)},mt=this.$W,ft=this.$M,pt=this.$D,ct="set"+(this.$u?"UTC":"");switch(K){case f:return D?lt(1,0):lt(31,11);case u:return D?lt(1,ft):lt(0,ft+1);case h:var _t=this.$locale().weekStart||0,qt=(mt<_t?mt+7:mt)-_t;return lt(D?pt-qt:pt+(6-qt),ft);case c:case p:return ht(ct+"Hours",0);case l:return ht(ct+"Minutes",1);case n:return ht(ct+"Seconds",2);case a:return ht(ct+"Milliseconds",3);default:return this.clone()}},$.endOf=function(B){return this.startOf(B,!1)},$.$set=function(B,N){var F,D=R.p(B),K="set"+(this.$u?"UTC":""),lt=(F={},F[c]=K+"Date",F[p]=K+"Date",F[u]=K+"Month",F[f]=K+"FullYear",F[l]=K+"Hours",F[n]=K+"Minutes",F[a]=K+"Seconds",F[o]=K+"Milliseconds",F)[D],ht=D===c?this.$D+(N-this.$W):N;if(D===u||D===f){var mt=this.clone().set(p,1);mt.$d[lt](ht),mt.init(),this.$d=mt.set(p,Math.min(this.$D,mt.daysInMonth())).$d}else lt&&this.$d[lt](ht);return this.init(),this},$.set=function(B,N){return this.clone().$set(B,N)},$.get=function(B){return this[R.p(B)]()},$.add=function(B,N){var F,D=this;B=Number(B);var K=R.p(N),lt=function(ft){var pt=q(D);return R.w(pt.date(pt.date()+Math.round(ft*B)),D)};if(K===u)return this.set(u,this.$M+B);if(K===f)return this.set(f,this.$y+B);if(K===c)return lt(1);if(K===h)return lt(7);var ht=(F={},F[n]=i,F[l]=s,F[a]=r,F)[K]||1,mt=this.$d.getTime()+B*ht;return R.w(mt,this)},$.subtract=function(B,N){return this.add(-1*B,N)},$.format=function(B){var N=this,F=this.$locale();if(!this.isValid())return F.invalidDate||y;var D=B||"YYYY-MM-DDTHH:mm:ssZ",K=R.z(this),lt=this.$H,ht=this.$m,mt=this.$M,ft=F.weekdays,pt=F.months,ct=F.meridiem,_t=function(ut,bt,Ft,Nt){return ut&&(ut[bt]||ut(N,D))||Ft[bt].slice(0,Nt)},qt=function(ut){return R.s(lt%12||12,ut,"0")},Et=ct||function(ut,bt,Ft){var Nt=ut<12?"AM":"PM";return Ft?Nt.toLowerCase():Nt};return D.replace(x,(function(ut,bt){return bt||(function(Ft){switch(Ft){case"YY":return String(N.$y).slice(-2);case"YYYY":return R.s(N.$y,4,"0");case"M":return mt+1;case"MM":return R.s(mt+1,2,"0");case"MMM":return _t(F.monthsShort,mt,pt,3);case"MMMM":return _t(pt,mt);case"D":return N.$D;case"DD":return R.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return _t(F.weekdaysMin,N.$W,ft,2);case"ddd":return _t(F.weekdaysShort,N.$W,ft,3);case"dddd":return ft[N.$W];case"H":return String(lt);case"HH":return R.s(lt,2,"0");case"h":return qt(1);case"hh":return qt(2);case"a":return Et(lt,ht,!0);case"A":return Et(lt,ht,!1);case"m":return String(ht);case"mm":return R.s(ht,2,"0");case"s":return String(N.$s);case"ss":return R.s(N.$s,2,"0");case"SSS":return R.s(N.$ms,3,"0");case"Z":return K}return null})(ut)||K.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(B,N,F){var D,K=this,lt=R.p(N),ht=q(B),mt=(ht.utcOffset()-this.utcOffset())*i,ft=this-ht,pt=function(){return R.m(K,ht)};switch(lt){case f:D=pt()/12;break;case u:D=pt();break;case d:D=pt()/3;break;case h:D=(ft-mt)/6048e5;break;case c:D=(ft-mt)/864e5;break;case l:D=ft/s;break;case n:D=ft/i;break;case a:D=ft/r;break;default:D=ft}return F?D:R.a(D)},$.daysInMonth=function(){return this.endOf(u).$D},$.$locale=function(){return E[this.$L]},$.locale=function(B,N){if(!B)return this.$L;var F=this.clone(),D=H(B,N,!0);return D&&(F.$L=D),F},$.clone=function(){return R.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},O})(),U=ot.prototype;return q.prototype=U,[["$ms",o],["$s",a],["$m",n],["$H",l],["$W",c],["$M",u],["$y",f],["$D",p]].forEach((function(O){U[O[1]]=function($){return this.$g($,O[0],O[1])}})),q.extend=function(O,$){return O.$i||(O($,ot,q),O.$i=!0),q},q.locale=H,q.isDayjs=A,q.unix=function(O){return q(1e3*O)},q.en=E[v],q.Ls=E,q.p={},q}))})(oa)),oa.exports}var p1=f1();const g1=Oh(p1);var vr={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},W={trace:g((...e)=>{},"trace"),debug:g((...e)=>{},"debug"),info:g((...e)=>{},"info"),warn:g((...e)=>{},"warn"),error:g((...e)=>{},"error"),fatal:g((...e)=>{},"fatal")},Nh=g(function(e="fatal"){let t=vr.fatal;typeof e=="string"?e.toLowerCase()in vr&&(t=vr[e]):typeof e=="number"&&(t=e),W.trace=()=>{},W.debug=()=>{},W.info=()=>{},W.warn=()=>{},W.error=()=>{},W.fatal=()=>{},t<=vr.fatal&&(W.fatal=console.error?console.error.bind(console,He("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",He("FATAL"))),t<=vr.error&&(W.error=console.error?console.error.bind(console,He("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",He("ERROR"))),t<=vr.warn&&(W.warn=console.warn?console.warn.bind(console,He("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",He("WARN"))),t<=vr.info&&(W.info=console.info?console.info.bind(console,He("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",He("INFO"))),t<=vr.debug&&(W.debug=console.debug?console.debug.bind(console,He("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",He("DEBUG"))),t<=vr.trace&&(W.trace=console.debug?console.debug.bind(console,He("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",He("TRACE")))},"setLogLevel"),He=g(e=>`%c${g1().format("ss.SSS")} : ${e} : `,"format");const aa={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 aa.hue2rgb(o,s,e+1/3)*255;case"g":return aa.hue2rgb(o,s,e)*255;case"b":return aa.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}}},m1={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},y1={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},It={channel:aa,lang:m1,unit:y1},Vr={};for(let e=0;e<=255;e++)Vr[e]=It.unit.dec2hex(e);const ke={ALL:0,RGB:1,HSL:2};let x1=class{constructor(){this.type=ke.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=ke.ALL}is(t){return this.type===t}};class C1{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new x1}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=ke.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:s}=t;r===void 0&&(t.h=It.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=It.channel.rgb2hsl(t,"s")),s===void 0&&(t.l=It.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:s}=t;r===void 0&&(t.r=It.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=It.channel.hsl2rgb(t,"g")),s===void 0&&(t.b=It.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(ke.HSL)&&r!==void 0?r:(this._ensureHSL(),It.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(ke.HSL)&&r!==void 0?r:(this._ensureHSL(),It.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(ke.HSL)&&r!==void 0?r:(this._ensureHSL(),It.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(ke.RGB)&&r!==void 0?r:(this._ensureRGB(),It.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(ke.RGB)&&r!==void 0?r:(this._ensureRGB(),It.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(ke.RGB)&&r!==void 0?r:(this._ensureRGB(),It.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ke.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ke.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ke.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ke.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ke.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ke.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Va=new C1({r:0,g:0,b:0,a:0},"transparent"),Gi={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Gi.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 Va.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?`#${Vr[Math.round(t)]}${Vr[Math.round(r)]}${Vr[Math.round(i)]}${Vr[Math.round(s*255)]}`:`#${Vr[Math.round(t)]}${Vr[Math.round(r)]}${Vr[Math.round(i)]}`}},di={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(di.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return It.channel.clamp.h(parseFloat(r)*.9);case"rad":return It.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return It.channel.clamp.h(parseFloat(r)*360)}}return It.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(di.re);if(!r)return;const[,i,s,o,a,n]=r;return Va.set({h:di._hue2deg(i),s:It.channel.clamp.s(parseFloat(s)),l:It.channel.clamp.l(parseFloat(o)),a:a?It.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(${It.lang.round(t)}, ${It.lang.round(r)}%, ${It.lang.round(i)}%, ${s})`:`hsl(${It.lang.round(t)}, ${It.lang.round(r)}%, ${It.lang.round(i)}%)`}},so={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=so.colors[e];if(t)return Gi.parse(t)},stringify:e=>{const t=Gi.stringify(e);for(const r in so.colors)if(so.colors[r]===t)return r}},Xs={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(Xs.re);if(!r)return;const[,i,s,o,a,n,l,c,h]=r;return Va.set({r:It.channel.clamp.r(s?parseFloat(i)*2.55:parseFloat(i)),g:It.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:It.channel.clamp.b(l?parseFloat(n)*2.55:parseFloat(n)),a:c?It.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(${It.lang.round(t)}, ${It.lang.round(r)}, ${It.lang.round(i)}, ${It.lang.round(s)})`:`rgb(${It.lang.round(t)}, ${It.lang.round(r)}, ${It.lang.round(i)})`}},mr={format:{keyword:so,hex:Gi,rgb:Xs,rgba:Xs,hsl:di,hsla:di},parse:e=>{if(typeof e!="string")return e;const t=Gi.parse(e)||Xs.parse(e)||di.parse(e)||so.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ke.HSL)||e.data.r===void 0?di.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Xs.stringify(e):Gi.stringify(e)},Zp=(e,t)=>{const r=mr.parse(e);for(const i in t)r[i]=It.channel.clamp[i](t[i]);return mr.stringify(r)},ti=(e,t,r=0,i=1)=>{if(typeof e!="number")return Zp(e,{a:t});const s=Va.set({r:It.channel.clamp.r(e),g:It.channel.clamp.g(t),b:It.channel.clamp.b(r),a:It.channel.clamp.a(i)});return mr.stringify(s)},b1=e=>{const{r:t,g:r,b:i}=mr.parse(e),s=.2126*It.channel.toLinear(t)+.7152*It.channel.toLinear(r)+.0722*It.channel.toLinear(i);return It.lang.round(s)},k1=e=>b1(e)>=.5,ir=e=>!k1(e),Qp=(e,t,r)=>{const i=mr.parse(e),s=i[t],o=It.channel.clamp[t](s+r);return s!==o&&(i[t]=o),mr.stringify(i)},j=(e,t)=>Qp(e,"l",t),X=(e,t)=>Qp(e,"l",-t),w=(e,t)=>{const r=mr.parse(e),i={};for(const s in t)t[s]&&(i[s]=r[s]+t[s]);return Zp(e,i)},w1=(e,t,r=50)=>{const{r:i,g:s,b:o,a}=mr.parse(e),{r:n,g:l,b:c,a:h}=mr.parse(t),u=r/100,d=u*2-1,f=a-h,y=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,C=1-y,x=i*y+n*C,b=s*y+l*C,k=o*y+c*C,T=a*u+h*(1-u);return ti(x,b,k,T)},I=(e,t=100)=>{const r=mr.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,w1(r,e,t)};/*! @license DOMPurify 3.4.17 | (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.17/LICENSE */function Iu(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 S1(e){if(Array.isArray(e))return e}function T1(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 _1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function v1(e,t){return S1(e)||T1(e,t)||B1(e,t)||_1()}function B1(e,t){if(e){if(typeof e=="string")return Iu(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)?Iu(e,t):void 0}}const Jp=Object.entries,Du=Object.setPrototypeOf,L1=Object.isFrozen,tg=Object.getPrototypeOf,eg=Object.getOwnPropertyDescriptor;let pe=Object.freeze,Ce=Object.seal,Wi=Object.create,rg=typeof Reflect<"u"&&Reflect,Wl=rg.apply,Hl=rg.construct;pe||(pe=function(t){return t});Ce||(Ce=function(t){return t});Wl||(Wl=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)});Hl||(Hl=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 Br=ie(Array.prototype.forEach),A1=ie(Array.prototype.lastIndexOf),Pu=ie(Array.prototype.pop),Os=ie(Array.prototype.push),E1=ie(Array.prototype.slice),F1=ie(Array.prototype.splice),Vi=Array.isArray,Pn=ig(Set),Rn=ie(Set.prototype.add),Is=ie(Set.prototype.has),hi=ie(String.prototype.toLowerCase),Nn=ie(String.prototype.toString),Ru=ie(String.prototype.match),Ds=ie(String.prototype.replace),Nu=ie(String.prototype.indexOf),M1=ie(String.prototype.trim),$1=ie(Number.prototype.toString),O1=ie(Boolean.prototype.toString),qu=typeof BigInt>"u"?null:ie(BigInt.prototype.toString),zu=typeof Symbol>"u"?null:ie(Symbol.prototype.toString),$e=ie(Object.prototype.hasOwnProperty),Ps=ie(Object.prototype.toString),ye=ie(RegExp.prototype.test),Lr=ig(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 Wl(e,t,i)}}function ig(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Hl(e,r)}}function Xt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hi;if(Du&&Du(e,null),!Vi(t))return e;let i=t.length;for(;i--;){let s=t[i];if(typeof s=="string"){const o=r(s);o!==s&&(L1(t)||(t[i]=o),s=o)}e[s]=!0}return e}function I1(e){for(let t=0;t<e.length;t++)$e(e,t)||(e[t]=null);return e}function Ne(e){const t=Wi(null);for(const i of Jp(e)){var r=v1(i,2);const s=r[0],o=r[1];$e(e,s)&&(Vi(o)?t[s]=I1(o):o&&typeof o=="object"&&o.constructor===Object?t[s]=Ne(o):t[s]=o)}return t}function D1(e){switch(typeof e){case"string":return e;case"number":return $1(e);case"boolean":return O1(e);case"bigint":return qu?qu(e):"0";case"symbol":return zu?zu(e):"Symbol()";case"undefined":return Ps(e);case"function":case"object":{if(e===null)return Ps(e);const t=e,r=Ye(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:Ps(i)}return Ps(e)}default:return Ps(e)}}function Ye(e,t){for(;e!==null;){const i=eg(e,t);if(i){if(i.get)return ie(i.get);if(typeof i.value=="function")return ie(i.value)}e=tg(e)}function r(){return null}return r}function P1(e,t){for(;e!==null;){const r=eg(e,t);if(r)return r.get?ie(r.get):null;e=tg(e)}return null}function R1(e){try{return ye(e,""),!0}catch{return!1}}const Wu=pe(["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"]),qn=pe(["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"]),zn=pe(["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"]),N1=pe(["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"]),Wn=pe(["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"]),q1=pe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hu=pe(["#text"]),Yu=pe(["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"]),Hn=pe(["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"]),Uu=pe(["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"]),Wo=pe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z1=Ce(/{{[\w\W]*|^[\w\W]*}}/g),W1=Ce(/<%[\w\W]*|^[\w\W]*%>/g),H1=Ce(/\${[\w\W]*/g),Y1=Ce(/^data-[\-\w.\u00B7-\uFFFF]+$/),U1=Ce(/^aria-[\-\w]+$/),ju=Ce(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j1=Ce(/^(?:\w+script|data):/i),X1=Ce(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G1=Ce(/^html$/i),V1=Ce(/^[a-z][.\w]*(-[.\w]+)+$/i),Yn=Ce(/<[/\w!]/g),Xu=Ce(/<[/\w]/g),K1=Ce(/<\/no(script|embed|frames)/i),Gu=Ce(/\/>/i),le={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Z1=pe(Xt({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Q1=function(){return typeof window>"u"?null:window},J1=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}},Vu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Xr=function(t,r,i,s){return $e(t,r)&&Vi(t[r])?Xt(s.base?Ne(s.base):{},t[r],s.transform):i},Un=function(t,r,i){const s=$e(t,r)?t[r]:void 0;return s&&typeof s=="object"?Ne(s):i()};function sg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q1();const t=st=>sg(st);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==le.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;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,h=e.trustedTypes,u=n.prototype,d=Ye(u,"cloneNode"),f=Ye(u,"remove"),p=Ye(u,"removeAttributeNode"),y=Ye(u,"nextSibling"),C=Ye(u,"childNodes"),x=Ye(u,"parentNode"),b=Ye(u,"shadowRoot"),k=Ye(u,"attributes"),T=a&&a.prototype?Ye(a.prototype,"nodeType"):null,v=a&&a.prototype?Ye(a.prototype,"nodeName"):null,E=a&&a.prototype?Ye(a.prototype,"ownerDocument"):null,L=function(_){return T?T(_):_.nodeType},A=function(_){return v?v(_):_.nodeName},H=P1(u,"namespaceURI"),q=function(_){return H?H(_):_.namespaceURI};if(typeof o=="function"){const st=r.createElement("template");st.content&&st.content.ownerDocument&&(r=st.content.ownerDocument)}let R,ot="",U,O=!1,$=0;const B=function(){if($>0)throw Lr('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.')},N=function(_){B(),$++;try{return R.createHTML(_)}finally{$--}},F=function(_){B(),$++;try{return R.createScriptURL(_)}finally{$--}},D=function(){return O||(U=J1(h,s),O=!0),U},K=r,lt=K.implementation,ht=K.createNodeIterator,mt=K.createDocumentFragment,ft=K.getElementsByTagName,pt=i.importNode;let ct=Vu();t.isSupported=typeof Jp=="function"&&typeof x=="function"&&lt&&lt.createHTMLDocument!==void 0;const _t=z1,qt=W1,Et=H1,ut=Y1,bt=U1,Ft=j1,Nt=X1,Kt=V1;let Y=ju,xt=null;const ve=Xt({},[...Wu,...qn,...zn,...Wn,...Hu]);let Yt=null;const Sr=Xt({},[...Yu,...Hn,...Uu,...Wo]);let ge=Object.seal(Wi(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}})),We=null,zr=null;const ne=Object.seal(Wi(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Wr=!0,ar=!0,Tr=!1,_r=!0,m=!1,P=!0,V=!1,Q=!1,G=null,nt=null,S=!1,z=!1,rt=!1,Z=!1,J=!0,at=!1;const it="user-content-";let kt=!0,gt=!1,Tt=null,vt={},Pt=null;const Qt=Xt({},["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 As=null;const Hr=Xt({},["audio","video","img","source","image","track"]);let Yr=null;const gu=Xt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Io="http://www.w3.org/1998/Math/MathML",Do="http://www.w3.org/2000/svg",nr="http://www.w3.org/1999/xhtml";let $i=nr,kn=!1,wn=null;const tb=Xt({},[Io,Do,nr],Nn),mu=pe(["mi","mo","mn","ms","mtext"]);let Sn=Xt({},mu);const yu=pe(["annotation-xml"]);let Tn=Xt({},yu);const eb=Xt({},["title","style","font","a","script"]);let Es=null;const rb=["application/xhtml+xml","text/html"],ib="text/html";let oe=null,Oi=null;const sb=r.createElement("form"),xu=function(_){return _ instanceof RegExp||_ instanceof Function},_n=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Oi&&Oi===_)return;(!_||typeof _!="object")&&(_={}),_=Ne(_),Es=rb.indexOf(_.PARSER_MEDIA_TYPE)===-1?ib:_.PARSER_MEDIA_TYPE,oe=Es==="application/xhtml+xml"?Nn:hi,xt=Xr(_,"ALLOWED_TAGS",ve,{transform:oe}),Yt=Xr(_,"ALLOWED_ATTR",Sr,{transform:oe}),wn=Xr(_,"ALLOWED_NAMESPACES",tb,{transform:Nn}),Yr=Xr(_,"ADD_URI_SAFE_ATTR",gu,{transform:oe,base:gu}),As=Xr(_,"ADD_DATA_URI_TAGS",Hr,{transform:oe,base:Hr}),Pt=Xr(_,"FORBID_CONTENTS",Qt,{transform:oe}),We=Xr(_,"FORBID_TAGS",Ne({}),{transform:oe}),zr=Xr(_,"FORBID_ATTR",Ne({}),{transform:oe}),vt=$e(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?Ne(_.USE_PROFILES):_.USE_PROFILES:!1,Wr=_.ALLOW_ARIA_ATTR!==!1,ar=_.ALLOW_DATA_ATTR!==!1,Tr=_.ALLOW_UNKNOWN_PROTOCOLS||!1,_r=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,m=_.SAFE_FOR_TEMPLATES||!1,P=_.SAFE_FOR_XML!==!1,V=_.WHOLE_DOCUMENT||!1,z=_.RETURN_DOM||!1,rt=_.RETURN_DOM_FRAGMENT||!1,Z=_.RETURN_TRUSTED_TYPE||!1,S=_.FORCE_BODY||!1,J=_.SANITIZE_DOM!==!1,at=_.SANITIZE_NAMED_PROPS||!1,kt=_.KEEP_CONTENT!==!1,gt=_.IN_PLACE||!1,Y=R1(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:ju,$i=typeof _.NAMESPACE=="string"?_.NAMESPACE:nr,Sn=Un(_,"MATHML_TEXT_INTEGRATION_POINTS",()=>Xt({},mu)),Tn=Un(_,"HTML_INTEGRATION_POINTS",()=>Xt({},yu));const M=Un(_,"CUSTOM_ELEMENT_HANDLING",()=>Wi(null));if(ge=Wi(null),$e(M,"tagNameCheck")&&xu(M.tagNameCheck)&&(ge.tagNameCheck=M.tagNameCheck),$e(M,"attributeNameCheck")&&xu(M.attributeNameCheck)&&(ge.attributeNameCheck=M.attributeNameCheck),$e(M,"allowCustomizedBuiltInElements")&&typeof M.allowCustomizedBuiltInElements=="boolean"&&(ge.allowCustomizedBuiltInElements=M.allowCustomizedBuiltInElements),Ce(ge),m&&(ar=!1),rt&&(z=!0),vt&&(xt=Xt({},Hu),Yt=Wi(null),vt.html===!0&&(Xt(xt,Wu),Xt(Yt,Yu)),vt.svg===!0&&(Xt(xt,qn),Xt(Yt,Hn),Xt(Yt,Wo)),vt.svgFilters===!0&&(Xt(xt,zn),Xt(Yt,Hn),Xt(Yt,Wo)),vt.mathMl===!0&&(Xt(xt,Wn),Xt(Yt,Uu),Xt(Yt,Wo))),ne.tagCheck=null,ne.attributeCheck=null,$e(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?ne.tagCheck=_.ADD_TAGS:Vi(_.ADD_TAGS)&&(xt===ve&&(xt=Ne(xt)),Xt(xt,_.ADD_TAGS,oe))),$e(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?ne.attributeCheck=_.ADD_ATTR:Vi(_.ADD_ATTR)&&(Yt===Sr&&(Yt=Ne(Yt)),Xt(Yt,_.ADD_ATTR,oe))),$e(_,"ADD_FORBID_CONTENTS")&&Vi(_.ADD_FORBID_CONTENTS)&&(Pt===Qt&&(Pt=Ne(Pt)),Xt(Pt,_.ADD_FORBID_CONTENTS,oe)),kt&&(xt["#text"]=!0),V&&Xt(xt,["html","head","body"]),xt.table&&(Xt(xt,["tbody"]),delete We.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const tt=R;R=_.TRUSTED_TYPES_POLICY;try{ot=N("")}catch(et){throw R=tt,et}}else _.TRUSTED_TYPES_POLICY===null?(R=void 0,ot=""):(R===void 0&&(R=D()),R&&typeof ot=="string"&&(ot=N("")));pe&&pe(_),Oi=_},Cu=Xt({},[...qn,...zn,...N1]),bu=Xt({},[...Wn,...q1]),ob=function(_,M,tt){return M.namespaceURI===nr?_==="svg":M.namespaceURI===Io?_==="svg"&&(tt==="annotation-xml"||Sn[tt]):!!Cu[_]},ab=function(_,M,tt){return M.namespaceURI===nr?_==="math":M.namespaceURI===Do?_==="math"&&Tn[tt]:!!bu[_]},nb=function(_,M,tt){return M.namespaceURI===Do&&!Tn[tt]||M.namespaceURI===Io&&!Sn[tt]?!1:!bu[_]&&(eb[_]||!Cu[_])},lb=function(_){const M=q(_),tt=hi(A(_)),et=x(_);let At,Ot;return et&&L(et)===le.element?(At={namespaceURI:q(et)},Ot=hi(A(et))):(At={namespaceURI:$i},Ot="template"),wn[M]?M===Do?ob(tt,At,Ot):M===Io?ab(tt,At,Ot):M===nr?nb(tt,At,Ot):!!(Es==="application/xhtml+xml"&&wn[M]):!1},Ur=function(_){Os(t.removed,{element:_});try{x(_).removeChild(_)}catch{if(f(_),!x(_))throw Lr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ku=function(_,M,tt){try{p(_,M)}catch{try{_.removeAttribute(tt)}catch{}}},vn=function(_){Ln(_);const M=C(_);M&&Br(E1(M),et=>{try{f(et)}catch{}});const tt=L(_)===le.element?k(_):null;if(tt)for(let et=tt.length-1;et>=0;--et){const At=tt[et],Ot=At&&At.name;typeof Ot=="string"&&ku(_,At,Ot)}},Ii=function(_,M,tt){if(!tt)try{tt=M.getAttributeNode(_)}catch{tt=null}Os(t.removed,{attribute:tt||null,from:M});try{tt?p(M,tt):M.removeAttribute(_)}catch{try{M.removeAttribute(_)}catch{}}if(_==="is")if(z||rt)try{Ur(M)}catch{}else try{M.setAttribute(_,"")}catch{}},wu=function(_){const M=k(_);if(M)for(let tt=M.length-1;tt>=0;--tt){const et=M[tt],At=et&&et.name;typeof At!="string"||Yt[oe(At)]||ku(_,et,At)}},Bn=function(_,M){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const et=[_];for(;et.length>0;){const At=et.pop();if(M(At)===!1)continue;if(tt&&L(At)===le.element){const Wt=b(At);jr(Wt)&&et.push(Wt)}const Ot=C(At);if(Ot)for(let Wt=Ot.length-1;Wt>=0;--Wt)et.push(Ot[Wt])}},Ln=function(_){Bn(_,M=>{L(M)===le.element&&wu(M)})},An=function(_){const M=[];return Bn(_,tt=>{M.push(tt)},!0),M},hb=function(_,M){const tt=Pn();Br(An(_),et=>{L(et)===le.element&&Rn(tt,et)}),Br(M,et=>{L(et)===le.element&&!Is(tt,et)&&wu(et)})},Su=function(_,M){let tt=!1;return Br(t.removed,et=>{et.element&&(tt=tt||et.element===_,Ln(et.element))}),hb(_,M),tt},cb=8,ub=function(_,M){const tt=Tt;let et=null;const At=()=>(et||(et=Pn(),Br(M,Ot=>{Rn(et,Ot)})),et);for(let Ot=0;;Ot++){const Wt=An(_),ue=[_];let lr=!1;if(Br(Wt,Be=>{L(Be)===le.documentFragment?Os(ue,Be):!lr&&!Is(tt,Be)&&(lr=Is(At(),Be))}),!lr)return;if(Ot>=cb)throw Lr("the tree kept changing during in-place sanitization; refusing to return it");Br(ue,(Be,Ee)=>{db(Be,Ee>0,_,At())})}},db=function(_,M,tt,et){const At=En(_);let Ot;for(;Ot=At.nextNode();)!Is(et,Ot)||Is(Tt,Ot)||(M&&Ze(ct.uponSanitizeShadowNode,Ot,null),Mn(Ot,tt),$n(Ot,tt),jr(Ot.content)&&Ms(Ot.content))},fb=function(_){Tt&&Rn(Tt,_)},Tu=function(_,M){return P?_==="patchsrc"?!0:_==="for"&&M!=="label"&&M!=="output":!1},pb=function(_){P&&Bn(_,M=>{const tt=L(M);if(tt===le.processingInstruction||tt===le.comment&&ye(Xu,M.data)){try{f(M)}catch{}return!1}if(tt===le.element){const et=M,At=oe(A(M));try{et.hasAttribute&&et.hasAttribute("patchsrc")&&et.removeAttribute("patchsrc"),et.hasAttribute&&et.hasAttribute("for")&&Tu("for",At)&&et.removeAttribute("for")}catch{}}return!0})},_u=function(_){let M=null,tt=null;if(S)_="<remove></remove>"+_;else{const Ot=Ru(_,/^[\r\n\t ]+/);tt=Ot&&Ot[0]}Es==="application/xhtml+xml"&&$i===nr&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const et=R?N(_):_;if($i===nr)try{M=new c().parseFromString(et,Es)}catch{}if(!M||!M.documentElement){M=lt.createDocument($i,"template",null);try{M.documentElement.innerHTML=kn?ot:et}catch{}}const At=M.body||M.documentElement;return _&&tt&&At.insertBefore(r.createTextNode(tt),At.childNodes[0]||null),$i===nr?ft.call(M,V?"html":"body")[0]:V?M.documentElement:At},En=function(_){const M=E?E(_):_.ownerDocument;return ht.call(M||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Po=function(_){return _=Ds(_,_t," "),_=Ds(_,qt," "),_=Ds(_,Et," "),_},Fn=function(_){var M;vu(_);const tt=(M=_.querySelectorAll)===null||M===void 0?void 0:M.call(_,"template");tt&&Br(tt,et=>{jr(et.content)&&Fn(et.content)})},vu=function(_){_.normalize();const M=E?E(_):_.ownerDocument,tt=ht.call(M||_,_,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let et=tt.nextNode();for(;et;)et.data=Po(et.data),et=tt.nextNode()},Ro=function(_){const M=v?v(_):null;return typeof M!="string"||oe(M)!=="form"?!1:typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||_.attributes!==k(_)||typeof _.removeAttribute!="function"||typeof _.removeAttributeNode!="function"||typeof _.getAttributeNode!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function"||_.nodeType!==T(_)||_.childNodes!==C(_)},jr=function(_){if(!T||typeof _!="object"||_===null)return!1;try{return T(_)===le.documentFragment}catch{return!1}},Fs=function(_){if(!T||typeof _!="object"||_===null)return!1;try{return typeof T(_)=="number"}catch{return!1}};function Ze(st,_,M){st.length!==0&&Br(st,tt=>{tt.call(t,_,M,Oi)})}const gb=function(_,M){return!!(P&&_.hasChildNodes()&&!Fs(_.firstElementChild)&&ye(Yn,_.textContent)&&ye(Yn,_.innerHTML)||P&&Z1[M]&&L(_)===le.element&&q(_)===nr&&(Fs(_.firstElementChild)||typeof _.textContent=="string"&&ye(Yn,_.textContent))||_.nodeType===le.processingInstruction||P&&_.nodeType===le.comment&&ye(Xu,_.data))},No=function(_,M){if(_ instanceof RegExp)return ye(_,M);if(_ instanceof Function){for(var tt=arguments.length,et=new Array(tt>2?tt-2:0),At=2;At<tt;At++)et[At-2]=arguments[At];return!!_(M,...et)}return!1},mb=function(_,M,tt){if(!We[M]&&Au(M)&&No(ge.tagNameCheck,M))return!1;if(kt&&!Pt[M]&&!Pt[hi(M)]){const et=x(_),At=C(_);if(At&&et){const Ot=At.length;for(let Wt=Ot-1;Wt>=0;--Wt){const ue=_===tt?d(At[Wt],!0):At[Wt];et.insertBefore(ue,y(_))}}}return Ur(_),!0},Bu=function(_,M,tt,et){return _.length===0?M:M===tt||M===et?Ne(M):M},Di=function(_,M){return _===M||x(_)!==null?!1:(gt&&Ln(_),!0)},Mn=function(_,M){if(fb(_),Ze(ct.beforeSanitizeElements,_,null),Di(_,M))return!0;if(Ro(_))return Ur(_),!0;const tt=oe(A(_));if(xt=Bu(ct.uponSanitizeElement,xt,ve,G),Ze(ct.uponSanitizeElement,_,{tagName:tt,allowedTags:xt}),Di(_,M))return!0;if(gb(_,tt))return Ur(_),!0;if(We[tt]||!(ne.tagCheck instanceof Function&&ne.tagCheck(tt))&&!xt[tt]){const et=mb(_,tt,M);return et===!1&&(Ze(ct.afterSanitizeElements,_,null),Di(_,M))?!0:et}if(L(_)===le.element&&!lb(_)||(tt==="noscript"||tt==="noembed"||tt==="noframes")&&ye(K1,_.innerHTML))return Ur(_),!0;if(m&&_.nodeType===le.text){const et=Po(_.textContent);_.textContent!==et&&(Os(t.removed,{element:_.cloneNode()}),_.textContent=et)}return Ze(ct.afterSanitizeElements,_,null),Di(_,M)},Lu=function(_,M,tt){if(zr[M]||Tu(M,_)||J&&(M==="id"||M==="name")&&(tt in r||tt in sb))return!1;const et=Yt[M]||ne.attributeCheck instanceof Function&&ne.attributeCheck(M,_);return ar&&ye(ut,M)||Wr&&ye(bt,M)?!0:et?Yr[M]||ye(Y,Ds(tt,Nt,""))||(M==="src"||M==="xlink:href"||M==="href")&&_!=="script"&&Nu(tt,"data:")===0&&As[_]||Tr&&!ye(Ft,Ds(tt,Nt,""))?!0:!tt:Au(_)&&No(ge.tagNameCheck,_)&&No(ge.attributeNameCheck,M,_)||M==="is"&&ge.allowCustomizedBuiltInElements&&No(ge.tagNameCheck,tt)},yb=Xt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Au=function(_){return!yb[hi(_)]&&ye(Kt,_)},xb=function(_,M,tt,et){if(R&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!tt)switch(h.getAttributeType(_,M)){case"TrustedHTML":return N(et);case"TrustedScriptURL":return F(et)}return et},Cb=function(_,M,tt,et){try{return tt?_.setAttributeNS(tt,M,et):_.setAttribute(M,et),Ro(_)?(Ur(_),!1):!0}catch{return Ii(M,_),!1}},Eu=function(_,M){return P&&ye(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,M)?!0:hi(_)==="attributename"&&Ru(M,"href")!==null},$n=function(_,M){if(Ze(ct.beforeSanitizeAttributes,_,null),Di(_,M))return;const tt=_.attributes;if(!tt||Ro(_))return;Yt=Bu(ct.uponSanitizeAttribute,Yt,Sr,nt);const et={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Yt,forceKeepAttr:void 0};let At=tt.length;const Ot=oe(_.nodeName);for(;At--;){const Wt=tt[At],ue=Wt.name,lr=Wt.namespaceURI,Be=Wt.value,Ee=oe(ue),Pi=Be;let Fe=ue==="value"?Pi:M1(Pi),Fu=!1;if(et.attrName=Ee,et.attrValue=Fe,et.keepAttr=!0,et.forceKeepAttr=void 0,Ze(ct.uponSanitizeAttribute,_,et),Fe=et.attrValue,at&&(Ee==="id"||Ee==="name")&&Nu(Fe,it)!==0&&(Ii(ue,_,Wt),Fe=it+Fe,Fu=!0),Eu(ue,Fe)){Ii(ue,_,Wt);continue}if(!et.forceKeepAttr){if(!et.keepAttr){Ii(ue,_,Wt);continue}if(!_r&&ye(Gu,Fe)){Ii(ue,_,Wt);continue}if(m&&(Fe=Po(Fe)),!Lu(Ot,Ee,Fe)){Ii(ue,_,Wt);continue}Fe=xb(Ot,Ee,lr,Fe),Fe!==Pi&&Cb(_,ue,lr,Fe)&&Fu&&Pu(t.removed)}}Ze(ct.afterSanitizeAttributes,_,null),Di(_,M)},Ms=function(_){let M=null;const tt=En(_);for(Ze(ct.beforeSanitizeShadowDOM,_,null);M=tt.nextNode();)if(Ze(ct.uponSanitizeShadowNode,M,null),Mn(M,_),$n(M,_),jr(M.content)&&Ms(M.content),L(M)===le.element){const et=b(M);jr(et)&&(On(et),Ms(et))}m&&vu(_),Ze(ct.afterSanitizeShadowDOM,_,null)},On=function(_){const M=[{node:_,shadow:null}];for(;M.length>0;){const tt=M.pop();if(tt.shadow){Ms(tt.shadow);continue}const et=tt.node,At=L(et)===le.element,Ot=C(et);if(Ot)for(let Wt=Ot.length-1;Wt>=0;--Wt)M.push({node:Ot[Wt],shadow:null});if(At){const Wt=v?v(et):null;if(typeof Wt=="string"&&oe(Wt)==="template"){const ue=et.content;jr(ue)&&M.push({node:ue,shadow:null})}}if(At){const Wt=b(et);jr(Wt)&&M.push({node:null,shadow:Wt},{node:Wt,shadow:null})}}};return t.sanitize=function(st){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,tt=null,et=null,At=null;if(kn=!st,kn&&(st="<!-->"),typeof st!="string"&&!Fs(st)&&(st=D1(st),typeof st!="string"))throw Lr("dirty is not a string, aborting");if(!t.isSupported)return st;Q?(xt=G,Yt=nt):_n(_),(ct.uponSanitizeElement.length>0||ct.uponSanitizeAttribute.length>0)&&(xt=Ne(xt)),ct.uponSanitizeAttribute.length>0&&(Yt=Ne(Yt)),t.removed=[];const Ot=gt&&typeof st!="string"&&Fs(st);let Wt=[];const ue=Tt;if(Ot){pb(st);const Ee=A(st);if(typeof Ee=="string"){const Pi=oe(Ee);if(!xt[Pi]||We[Pi])throw vn(st),Lr("root node is forbidden and cannot be sanitized in-place")}if(Ro(st))throw vn(st),Lr("root node is clobbered and cannot be sanitized in-place");Wt=An(st),Tt=Pn()}else if(Fs(st))M=_u("<!---->"),tt=M.ownerDocument.importNode(st,!0),tt.nodeType===le.element&&tt.nodeName==="BODY"||tt.nodeName==="HTML"?M=tt:M.appendChild(tt),On(M);else{if(!z&&!m&&!V&&st.indexOf("<")===-1)return R&&Z?N(st):st;if(M=_u(st),!M)return z?null:Z?ot:""}M&&S&&Ur(M.firstChild);const lr=Ot?st:M;try{Ot&&On(st);const Ee=En(lr);for(;et=Ee.nextNode();)Mn(et,lr),$n(et,lr),jr(et.content)&&Ms(et.content);Ot&&ub(st,Wt)}catch(Ee){throw Ot&&(vn(st),Su(st,Wt)),Ee}finally{Tt=ue}if(Ot){if(Su(st,Wt))throw Lr("a node selected for removal could not be safely returned; refusing to sanitize in place");return m&&Fn(st),st}if(z){if(m&&Fn(M),rt)for(At=mt.call(M.ownerDocument);M.firstChild;)At.appendChild(M.firstChild);else At=M;return(Yt.shadowroot||Yt.shadowrootmode)&&(At=pt.call(i,At,!0)),At}let Be=V?M.outerHTML:M.innerHTML;return V&&xt["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&ye(G1,M.ownerDocument.doctype.name)&&(Be="<!DOCTYPE "+M.ownerDocument.doctype.name+`>
17
+ `+Be),m&&(Be=Po(Be)),R&&Z?N(Be):Be},t.setConfig=function(){let st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_n(st),Q=!0,G=xt,nt=Yt},t.clearConfig=function(){Oi=null,Q=!1,G=null,nt=null,R=U,ot=""},t.isValidAttribute=function(st,_,M){Oi||_n({});const tt=oe(st),et=oe(_);return typeof M=="string"&&(Eu(_,M)||!_r&&ye(Gu,M))?!1:Lu(tt,et,M)},t.addHook=function(st,_){typeof _=="function"&&$e(ct,st)&&Os(ct[st],_)},t.removeHook=function(st,_){if($e(ct,st)){if(_!==void 0){const M=A1(ct[st],_);return M===-1?void 0:F1(ct[st],M,1)[0]}return Pu(ct[st])}},t.removeHooks=function(st){$e(ct,st)&&(ct[st]=[])},t.removeAllHooks=function(){ct=Vu()},t}var gs=sg(),Yl=g((e,t,{depth:r=2}={})=>{const i={depth:r};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(s=>Yl(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]=Yl(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"),fe=Yl,xr="#ffffff",Cr="#f2f2f2",$t=g((e,t)=>t?w(e,{s:-40,l:10}):w(e,{s:-40,l:-10}),"mkBorder"),Ji,tk=(Ji=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(){var r,i,s,o,a,n,l,c,h,u,d,f,p,y,C,x,b,k,T,v,E,L,A,H,q,R,ot,U,O,$,B,N,F,D,K,lt,ht,mt,ft,pt,ct,_t,qt,Et,ut,bt,Ft,Nt,Kt,Y;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||I(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||I(this.tertiaryColor),this.lineColor=this.lineColor||I(this.background),this.arrowheadColor=this.arrowheadColor||I(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?X(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||X(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||I(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||j(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||X(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||X(this.mainBkg,10)):(this.rowOdd=this.rowOdd||j(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||j(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||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.darkMode)for(let xt=0;xt<this.THEME_COLOR_LIMIT;xt++)this["cScale"+xt]=X(this["cScale"+xt],75);else for(let xt=0;xt<this.THEME_COLOR_LIMIT;xt++)this["cScale"+xt]=X(this["cScale"+xt],25);for(let xt=0;xt<this.THEME_COLOR_LIMIT;xt++)this["cScaleInv"+xt]=this["cScaleInv"+xt]||I(this["cScale"+xt]);for(let xt=0;xt<this.THEME_COLOR_LIMIT;xt++)this.darkMode?this["cScalePeer"+xt]=this["cScalePeer"+xt]||j(this["cScale"+xt],10):this["cScalePeer"+xt]=this["cScalePeer"+xt]||X(this["cScale"+xt],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let xt=0;xt<this.THEME_COLOR_LIMIT;xt++)this["cScaleLabel"+xt]=this["cScaleLabel"+xt]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let xt=0;xt<5;xt++)this["surface"+xt]=this["surface"+xt]||w(this.mainBkg,{h:180,s:-15,l:t*(5+xt*3)}),this["surfacePeer"+xt]=this["surfacePeer"+xt]||w(this.mainBkg,{h:180,s:-15,l:t*(8+xt*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||w(this.primaryColor,{h:64}),this.fillType3=this.fillType3||w(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||w(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||w(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||w(this.primaryColor,{h:128}),this.fillType7=this.fillType7||w(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||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-10}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||w(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??w(this.primaryColor,{l:-30}),this.venn2=this.venn2??w(this.secondaryColor,{l:-30}),this.venn3=this.venn3??w(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??w(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??w(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??w(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??w(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??w(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((r=this.cynefin)==null?void 0:r.domainFontSize)||16,itemFontSize:((i=this.cynefin)==null?void 0:i.itemFontSize)||12,boundaryColor:((s=this.cynefin)==null?void 0:s.boundaryColor)||this.lineColor,boundaryWidth:((o=this.cynefin)==null?void 0:o.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((n=this.cynefin)==null?void 0:n.cliffWidth)||4,arrowColor:((l=this.cynefin)==null?void 0:l.arrowColor)||this.lineColor,arrowWidth:((c=this.cynefin)==null?void 0:c.arrowWidth)||2,complexBg:((h=this.cynefin)==null?void 0:h.complexBg)||"#E8F5E9",complicatedBg:((u=this.cynefin)==null?void 0:u.complicatedBg)||"#E3F2FD",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((p=this.cynefin)==null?void 0:p.confusionBg)||"#F3E5F5",textColor:((y=this.cynefin)==null?void 0:y.textColor)||this.textColor,labelColor:((C=this.cynefin)==null?void 0:C.labelColor)||this.primaryTextColor},this.radar={axisColor:((x=this.radar)==null?void 0:x.axisColor)||this.lineColor,axisStrokeWidth:((b=this.radar)==null?void 0:b.axisStrokeWidth)||2,axisLabelFontSize:((k=this.radar)==null?void 0:k.axisLabelFontSize)||12,curveOpacity:((T=this.radar)==null?void 0:T.curveOpacity)||.5,curveStrokeWidth:((v=this.radar)==null?void 0:v.curveStrokeWidth)||2,graticuleColor:((E=this.radar)==null?void 0:E.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((L=this.radar)==null?void 0:L.graticuleStrokeWidth)||1,graticuleOpacity:((A=this.radar)==null?void 0:A.graticuleOpacity)||.3,legendBoxSize:((H=this.radar)==null?void 0:H.legendBoxSize)||12,legendFontSize:((q=this.radar)==null?void 0:q.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((R=this.wardley)==null?void 0:R.backgroundColor)||this.background,axisColor:((ot=this.wardley)==null?void 0:ot.axisColor)||this.lineColor,axisTextColor:((U=this.wardley)==null?void 0:U.axisTextColor)||this.primaryTextColor,gridColor:((O=this.wardley)==null?void 0:O.gridColor)||this.gridColor,componentFill:(($=this.wardley)==null?void 0:$.componentFill)||this.background,componentStroke:((B=this.wardley)==null?void 0:B.componentStroke)||this.lineColor,componentLabelColor:((N=this.wardley)==null?void 0:N.componentLabelColor)||this.primaryTextColor,linkStroke:((F=this.wardley)==null?void 0:F.linkStroke)||this.lineColor,evolutionStroke:((D=this.wardley)==null?void 0:D.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((K=this.wardley)==null?void 0:K.annotationStroke)||this.lineColor,annotationTextColor:((lt=this.wardley)==null?void 0:lt.annotationTextColor)||this.primaryTextColor,annotationFill:((ht=this.wardley)==null?void 0:ht.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||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((mt=this.xyChart)==null?void 0:mt.backgroundColor)||this.background,titleColor:((ft=this.xyChart)==null?void 0:ft.titleColor)||this.primaryTextColor,dataLabelColor:((pt=this.xyChart)==null?void 0:pt.dataLabelColor)||this.primaryTextColor,legendTextColor:((ct=this.xyChart)==null?void 0:ct.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((_t=this.xyChart)==null?void 0:_t.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((qt=this.xyChart)==null?void 0:qt.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((Et=this.xyChart)==null?void 0:Et.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((ut=this.xyChart)==null?void 0:ut.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((bt=this.xyChart)==null?void 0:bt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((Ft=this.xyChart)==null?void 0:Ft.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Nt=this.xyChart)==null?void 0:Nt.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Kt=this.xyChart)==null?void 0:Kt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Y=this.xyChart)==null?void 0:Y.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?X(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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr,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]})}},g(Ji,"Theme"),Ji),ek=g(e=>{const t=new tk;return t.calculate(e),t},"getThemeVariables"),ts,rk=(ts=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=j(this.primaryColor,16),this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=I(this.background),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.lineColor=I(this.background),this.textColor=I(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=j(I("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=ti(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=X("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=X(this.sectionBkgColor,10),this.taskBorderColor=ti(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ti(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||j(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||X(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(){var t,r,i,s,o,a,n,l,c,h,u,d,f,p,y,C,x,b,k,T,v,E,L,A,H,q,R,ot,U,O,$,B,N,F,D,K,lt,ht,mt,ft,pt,ct,_t,qt,Et,ut,bt,Ft,Nt,Kt;this.secondBkg=j(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=j(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=j(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=I(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=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(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||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330});for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleInv"+Y]=this["cScaleInv"+Y]||I(this["cScale"+Y]);for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScalePeer"+Y]=this["cScalePeer"+Y]||j(this["cScale"+Y],10);for(let Y=0;Y<5;Y++)this["surface"+Y]=this["surface"+Y]||w(this.mainBkg,{h:30,s:-30,l:-(-10+Y*4)}),this["surfacePeer"+Y]=this["surfacePeer"+Y]||w(this.mainBkg,{h:30,s:-30,l:-(-7+Y*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleLabel"+Y]=this["cScaleLabel"+Y]||this.scaleLabelColor;for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["pie"+Y]=this["cScale"+Y];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 Y=0;Y<8;Y++)this["venn"+(Y+1)]=this["venn"+(Y+1)]??j(this["cScale"+Y],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#FF6B6B",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#1B5E20",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#0D47A1",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#BF360C",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#F57F17",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#4A148C",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((C=this.xyChart)==null?void 0:C.backgroundColor)||this.background,titleColor:((x=this.xyChart)==null?void 0:x.titleColor)||this.primaryTextColor,dataLabelColor:((b=this.xyChart)==null?void 0:b.dataLabelColor)||this.primaryTextColor,legendTextColor:((k=this.xyChart)==null?void 0:k.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((T=this.xyChart)==null?void 0:T.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((v=this.xyChart)==null?void 0:v.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((E=this.xyChart)==null?void 0:E.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((L=this.xyChart)==null?void 0:L.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((A=this.xyChart)==null?void 0:A.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((H=this.xyChart)==null?void 0:H.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((q=this.xyChart)==null?void 0:q.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((R=this.xyChart)==null?void 0:R.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((ot=this.xyChart)==null?void 0:ot.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:((U=this.radar)==null?void 0:U.axisColor)||this.lineColor,axisStrokeWidth:((O=this.radar)==null?void 0:O.axisStrokeWidth)||2,axisLabelFontSize:(($=this.radar)==null?void 0:$.axisLabelFontSize)||12,curveOpacity:((B=this.radar)==null?void 0:B.curveOpacity)||.5,curveStrokeWidth:((N=this.radar)==null?void 0:N.curveStrokeWidth)||2,graticuleColor:((F=this.radar)==null?void 0:F.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((D=this.radar)==null?void 0:D.graticuleStrokeWidth)||1,graticuleOpacity:((K=this.radar)==null?void 0:K.graticuleOpacity)||.3,legendBoxSize:((lt=this.radar)==null?void 0:lt.legendBoxSize)||12,legendFontSize:((ht=this.radar)==null?void 0:ht.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((mt=this.wardley)==null?void 0:mt.backgroundColor)||this.background,axisColor:((ft=this.wardley)==null?void 0:ft.axisColor)||this.lineColor,axisTextColor:((pt=this.wardley)==null?void 0:pt.axisTextColor)||this.primaryTextColor,gridColor:((ct=this.wardley)==null?void 0:ct.gridColor)||this.gridColor,componentFill:((_t=this.wardley)==null?void 0:_t.componentFill)||this.mainBkg,componentStroke:((qt=this.wardley)==null?void 0:qt.componentStroke)||this.lineColor,componentLabelColor:((Et=this.wardley)==null?void 0:Et.componentLabelColor)||this.primaryTextColor,linkStroke:((ut=this.wardley)==null?void 0:ut.linkStroke)||this.lineColor,evolutionStroke:((bt=this.wardley)==null?void 0:bt.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((Ft=this.wardley)==null?void 0:Ft.annotationStroke)||this.lineColor,annotationTextColor:((Nt=this.wardley)==null?void 0:Nt.annotationTextColor)||this.primaryTextColor,annotationFill:((Kt=this.wardley)==null?void 0:Kt.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?X(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=j(this.secondaryColor,20),this.git1=j(this.pie2||this.secondaryColor,20),this.git2=j(this.pie3||this.tertiaryColor,20),this.git3=j(this.pie4||w(this.primaryColor,{h:-30}),20),this.git4=j(this.pie5||w(this.primaryColor,{h:-60}),20),this.git5=j(this.pie6||w(this.primaryColor,{h:-90}),10),this.git6=j(this.pie7||w(this.primaryColor,{h:60}),10),this.git7=j(this.pie8||w(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||I(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||I(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||j("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||j("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||j("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||j("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||j(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||j(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||j(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||j(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]})}},g(ts,"Theme"),ts),ik=g(e=>{const t=new rk;return t.calculate(e),t},"getThemeVariables"),es,sk=(es=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=w(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.lineColor=I(this.background),this.textColor=I(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=$t(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=ti(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(){var t,r,i,s,o,a,n,l,c,h,u,d,f,p,y,C,x,b,k,T,v,E,L,A,H,q,R,ot,U,O,$,B,N,F,D,K,lt,ht,mt,ft,pt,ct,_t,qt,Et,ut,bt,Ft,Nt,Kt;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||X(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||X(this.tertiaryColor,40);for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScale"+Y]=X(this["cScale"+Y],10),this["cScalePeer"+Y]=this["cScalePeer"+Y]||X(this["cScale"+Y],25);for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleInv"+Y]=this["cScaleInv"+Y]||w(this["cScale"+Y],{h:180});for(let Y=0;Y<5;Y++)this["surface"+Y]=this["surface"+Y]||w(this.mainBkg,{h:30,l:-(5+Y*5)}),this["surfacePeer"+Y]=this["surfacePeer"+Y]||w(this.mainBkg,{h:30,l:-(7+Y*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||I(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||I(this.labelTextColor);for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleLabel"+Y]=this["cScaleLabel"+Y]||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||j(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||j(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=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||w(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-30}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||w(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||w(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??w(this.primaryColor,{l:-30}),this.venn2=this.venn2??w(this.secondaryColor,{l:-30}),this.venn3=this.venn3??w(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??w(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??w(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??w(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??w(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??w(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B0000",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FBE9E7",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF8E1",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#F3E5F5",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((C=this.radar)==null?void 0:C.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((k=this.radar)==null?void 0:k.curveOpacity)||.5,curveStrokeWidth:((T=this.radar)==null?void 0:T.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((E=this.radar)==null?void 0:E.graticuleStrokeWidth)||1,graticuleOpacity:((L=this.radar)==null?void 0:L.graticuleOpacity)||.3,legendBoxSize:((A=this.radar)==null?void 0:A.legendBoxSize)||12,legendFontSize:((H=this.radar)==null?void 0:H.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((q=this.wardley)==null?void 0:q.backgroundColor)||this.background,axisColor:((R=this.wardley)==null?void 0:R.axisColor)||this.lineColor,axisTextColor:((ot=this.wardley)==null?void 0:ot.axisTextColor)||this.primaryTextColor,gridColor:((U=this.wardley)==null?void 0:U.gridColor)||this.gridColor,componentFill:((O=this.wardley)==null?void 0:O.componentFill)||this.background,componentStroke:(($=this.wardley)==null?void 0:$.componentStroke)||this.lineColor,componentLabelColor:((B=this.wardley)==null?void 0:B.componentLabelColor)||this.primaryTextColor,linkStroke:((N=this.wardley)==null?void 0:N.linkStroke)||this.lineColor,evolutionStroke:((F=this.wardley)==null?void 0:F.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((D=this.wardley)==null?void 0:D.annotationStroke)||this.lineColor,annotationTextColor:((K=this.wardley)==null?void 0:K.annotationTextColor)||this.primaryTextColor,annotationFill:((lt=this.wardley)==null?void 0:lt.annotationFill)||this.background},this.xyChart={backgroundColor:((ht=this.xyChart)==null?void 0:ht.backgroundColor)||this.background,titleColor:((mt=this.xyChart)==null?void 0:mt.titleColor)||this.primaryTextColor,dataLabelColor:((ft=this.xyChart)==null?void 0:ft.dataLabelColor)||this.primaryTextColor,legendTextColor:((pt=this.xyChart)==null?void 0:pt.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((ct=this.xyChart)==null?void 0:ct.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_t=this.xyChart)==null?void 0:_t.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((qt=this.xyChart)==null?void 0:qt.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Et=this.xyChart)==null?void 0:Et.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((ut=this.xyChart)==null?void 0:ut.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((bt=this.xyChart)==null?void 0:bt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Ft=this.xyChart)==null?void 0:Ft.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Nt=this.xyChart)==null?void 0:Nt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Kt=this.xyChart)==null?void 0:Kt.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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||X(I(this.git0),25),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||I(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(es,"Theme"),es),ok=g(e=>{const t=new sk;return t.calculate(e),t},"getThemeVariables"),rs,ak=(rs=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=j("#cde498",10),this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.primaryColor),this.lineColor=I(this.background),this.textColor=I(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(){var t,r,i,s,o,a,n,l,c,h,u,d,f,p,y,C,x,b,k,T,v,E,L,A,H,q,R,ot,U,O,$,B,N,F,D,K,lt,ht,mt,ft,pt,ct,_t,qt,Et,ut,bt,Ft,Nt,Kt;this.actorBorder=X(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||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||X(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||X(this.tertiaryColor,40);for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScale"+Y]=X(this["cScale"+Y],10),this["cScalePeer"+Y]=this["cScalePeer"+Y]||X(this["cScale"+Y],25);for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleInv"+Y]=this["cScaleInv"+Y]||w(this["cScale"+Y],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleLabel"+Y]=this["cScaleLabel"+Y]||this.scaleLabelColor;for(let Y=0;Y<5;Y++)this["surface"+Y]=this["surface"+Y]||w(this.mainBkg,{h:30,s:-30,l:-(5+Y*5)}),this["surfacePeer"+Y]=this["surfacePeer"+Y]||w(this.mainBkg,{h:30,s:-30,l:-(8+Y*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||j(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||j(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=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(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||w(this.primaryColor,{l:-30}),this.pie5=this.pie5||w(this.secondaryColor,{l:-30}),this.pie6=this.pie6||w(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||w(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??w(this.primaryColor,{l:-30}),this.venn2=this.venn2??w(this.secondaryColor,{l:-30}),this.venn3=this.venn3??w(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??w(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??w(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??w(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??w(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??w(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B4513",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#C8E6C9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#DCEDC8",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FFE0B2",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF9C4",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#D7CCC8",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((C=this.radar)==null?void 0:C.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((k=this.radar)==null?void 0:k.curveOpacity)||.5,curveStrokeWidth:((T=this.radar)==null?void 0:T.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((E=this.radar)==null?void 0:E.graticuleStrokeWidth)||1,graticuleOpacity:((L=this.radar)==null?void 0:L.graticuleOpacity)||.3,legendBoxSize:((A=this.radar)==null?void 0:A.legendBoxSize)||12,legendFontSize:((H=this.radar)==null?void 0:H.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((q=this.wardley)==null?void 0:q.backgroundColor)||this.background,axisColor:((R=this.wardley)==null?void 0:R.axisColor)||this.lineColor,axisTextColor:((ot=this.wardley)==null?void 0:ot.axisTextColor)||this.primaryTextColor,gridColor:((U=this.wardley)==null?void 0:U.gridColor)||this.gridColor,componentFill:((O=this.wardley)==null?void 0:O.componentFill)||this.background,componentStroke:(($=this.wardley)==null?void 0:$.componentStroke)||this.lineColor,componentLabelColor:((B=this.wardley)==null?void 0:B.componentLabelColor)||this.primaryTextColor,linkStroke:((N=this.wardley)==null?void 0:N.linkStroke)||this.lineColor,evolutionStroke:((F=this.wardley)==null?void 0:F.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((D=this.wardley)==null?void 0:D.annotationStroke)||this.lineColor,annotationTextColor:((K=this.wardley)==null?void 0:K.annotationTextColor)||this.primaryTextColor,annotationFill:((lt=this.wardley)==null?void 0:lt.annotationFill)||this.background},this.xyChart={backgroundColor:((ht=this.xyChart)==null?void 0:ht.backgroundColor)||this.background,titleColor:((mt=this.xyChart)==null?void 0:mt.titleColor)||this.primaryTextColor,dataLabelColor:((ft=this.xyChart)==null?void 0:ft.dataLabelColor)||this.primaryTextColor,legendTextColor:((pt=this.xyChart)==null?void 0:pt.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((ct=this.xyChart)==null?void 0:ct.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_t=this.xyChart)==null?void 0:_t.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((qt=this.xyChart)==null?void 0:qt.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Et=this.xyChart)==null?void 0:Et.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((ut=this.xyChart)==null?void 0:ut.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((bt=this.xyChart)==null?void 0:bt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Ft=this.xyChart)==null?void 0:Ft.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Nt=this.xyChart)==null?void 0:Nt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Kt=this.xyChart)==null?void 0:Kt.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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||I(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(rs,"Theme"),rs),nk=g(e=>{const t=new ak;return t.calculate(e),t},"getThemeVariables"),is,lk=(is=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=j(this.contrast,55),this.background="#ffffff",this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.lineColor=I(this.background),this.textColor=I(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||j(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(){var t,r,i,s,o,a,n,l,c,h,u,d,f,p,y,C,x,b,k,T,v,E,L,A,H,q,R,ot,U,O,$,B,N,F,D,K,lt,ht,mt,ft,pt,ct,_t,qt,Et,ut,bt,Ft,Nt,Kt;this.secondBkg=j(this.contrast,55),this.border2=this.contrast,this.actorBorder=j(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 Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleInv"+Y]=this["cScaleInv"+Y]||I(this["cScale"+Y]);for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this.darkMode?this["cScalePeer"+Y]=this["cScalePeer"+Y]||j(this["cScale"+Y],10):this["cScalePeer"+Y]=this["cScalePeer"+Y]||X(this["cScale"+Y],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleLabel"+Y]=this["cScaleLabel"+Y]||this.scaleLabelColor;for(let Y=0;Y<5;Y++)this["surface"+Y]=this["surface"+Y]||w(this.mainBkg,{l:-(5+Y*5)}),this["surfacePeer"+Y]=this["surfacePeer"+Y]||w(this.mainBkg,{l:-(8+Y*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=j(this.contrast,30),this.sectionBkgColor2=j(this.contrast,30),this.taskBorderColor=X(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=j(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=X(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=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128});for(let Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["pie"+Y]=this["cScale"+Y];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 Y=0;Y<8;Y++)this["venn"+(Y+1)]=this["venn"+(Y+1)]??this["cScale"+Y];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B0000",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FBE9E7",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF8E1",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#F3E5F5",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((C=this.xyChart)==null?void 0:C.backgroundColor)||this.background,titleColor:((x=this.xyChart)==null?void 0:x.titleColor)||this.primaryTextColor,dataLabelColor:((b=this.xyChart)==null?void 0:b.dataLabelColor)||this.primaryTextColor,legendTextColor:((k=this.xyChart)==null?void 0:k.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((T=this.xyChart)==null?void 0:T.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((v=this.xyChart)==null?void 0:v.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((E=this.xyChart)==null?void 0:E.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((L=this.xyChart)==null?void 0:L.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((A=this.xyChart)==null?void 0:A.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((H=this.xyChart)==null?void 0:H.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((q=this.xyChart)==null?void 0:q.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((R=this.xyChart)==null?void 0:R.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((ot=this.xyChart)==null?void 0:ot.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((U=this.radar)==null?void 0:U.axisColor)||this.lineColor,axisStrokeWidth:((O=this.radar)==null?void 0:O.axisStrokeWidth)||2,axisLabelFontSize:(($=this.radar)==null?void 0:$.axisLabelFontSize)||12,curveOpacity:((B=this.radar)==null?void 0:B.curveOpacity)||.5,curveStrokeWidth:((N=this.radar)==null?void 0:N.curveStrokeWidth)||2,graticuleColor:((F=this.radar)==null?void 0:F.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((D=this.radar)==null?void 0:D.graticuleStrokeWidth)||1,graticuleOpacity:((K=this.radar)==null?void 0:K.graticuleOpacity)||.3,legendBoxSize:((lt=this.radar)==null?void 0:lt.legendBoxSize)||12,legendFontSize:((ht=this.radar)==null?void 0:ht.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((mt=this.wardley)==null?void 0:mt.backgroundColor)||this.background,axisColor:((ft=this.wardley)==null?void 0:ft.axisColor)||this.lineColor,axisTextColor:((pt=this.wardley)==null?void 0:pt.axisTextColor)||this.primaryTextColor,gridColor:((ct=this.wardley)==null?void 0:ct.gridColor)||this.gridColor,componentFill:((_t=this.wardley)==null?void 0:_t.componentFill)||this.background,componentStroke:((qt=this.wardley)==null?void 0:qt.componentStroke)||this.lineColor,componentLabelColor:((Et=this.wardley)==null?void 0:Et.componentLabelColor)||this.primaryTextColor,linkStroke:((ut=this.wardley)==null?void 0:ut.linkStroke)||this.lineColor,evolutionStroke:((bt=this.wardley)==null?void 0:bt.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((Ft=this.wardley)==null?void 0:Ft.annotationStroke)||this.lineColor,annotationTextColor:((Nt=this.wardley)==null?void 0:Nt.annotationTextColor)||this.primaryTextColor,annotationFill:((Kt=this.wardley)==null?void 0:Kt.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=X(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||w(this.primaryColor,{h:-30}),this.git4=this.pie5||w(this.primaryColor,{h:-60}),this.git5=this.pie6||w(this.primaryColor,{h:-90}),this.git6=this.pie7||w(this.primaryColor,{h:60}),this.git7=this.pie8||w(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(is,"Theme"),is),hk=g(e=>{const t=new lk;return t.calculate(e),t},"getThemeVariables"),ss,ck=(ss=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=$t(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(){var o,a,n,l,c,h,u,d,f,p,y,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||I(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||I(this.tertiaryColor),this.lineColor=this.lineColor||I(this.background),this.arrowheadColor=this.arrowheadColor||I(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?X(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||X(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||I(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=w(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||j(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||w(t,{h:30}),this.cScale4=this.cScale4||w(t,{h:60}),this.cScale5=this.cScale5||w(t,{h:90}),this.cScale6=this.cScale6||w(t,{h:120}),this.cScale7=this.cScale7||w(t,{h:150}),this.cScale8=this.cScale8||w(t,{h:210,l:150}),this.cScale9=this.cScale9||w(t,{h:270}),this.cScale10=this.cScale10||w(t,{h:300}),this.cScale11=this.cScale11||w(t,{h:330}),this.darkMode)for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=X(this["cScale"+x],75);else for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=X(this["cScale"+x],25);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||I(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||j(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||X(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||w(this.mainBkg,{h:180,s:-15,l:s*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||w(this.mainBkg,{h:180,s:-15,l:s*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||w(t,{h:64}),this.fillType3=this.fillType3||w(r,{h:64}),this.fillType4=this.fillType4||w(t,{h:-64}),this.fillType5=this.fillType5||w(r,{h:-64}),this.fillType6=this.fillType6||w(t,{h:128}),this.fillType7=this.fillType7||w(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||w(t,{l:-10}),this.pie5=this.pie5||w(r,{l:-10}),this.pie6=this.pie6||w(i,{l:-10}),this.pie7=this.pie7||w(t,{h:60,l:-10}),this.pie8=this.pie8||w(t,{h:-60,l:-10}),this.pie9=this.pie9||w(t,{h:120,l:0}),this.pie10=this.pie10||w(t,{h:60,l:-20}),this.pie11=this.pie11||w(t,{h:-60,l:-20}),this.pie12=this.pie12||w(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||w(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((c=this.xyChart)==null?void 0:c.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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?X(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||w(t,{h:-30}),this.git4=this.git4||w(t,{h:-60}),this.git5=this.git5||w(t,{h:-90}),this.git6=this.git6||w(t,{h:60}),this.git7=this.git7||w(t,{h:120}),this.darkMode?(this.git0=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(ss,"Theme"),ss),uk=g(e=>{const t=new ck;return t.calculate(e),t},"getThemeVariables"),os,dk=(os=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=j(this.primaryColor,16),this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=I(this.background),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=j(I("#323D47"),10),this.border1="#ccc",this.border2=ti(255,255,255,.25),this.arrowheadColor=I(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(){var r,i,s,o,a,n,l,c,h,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||I(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||I(this.tertiaryColor),this.lineColor=this.lineColor||I(this.background),this.arrowheadColor=this.arrowheadColor||I(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?X(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||X(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||I(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||j(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||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=X(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=X(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||I(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||j(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||X(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||w(this.mainBkg,{h:180,s:-15,l:t*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||w(this.mainBkg,{h:180,s:-15,l:t*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||w(this.primaryColor,{h:64}),this.fillType3=this.fillType3||w(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||w(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||w(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||w(this.primaryColor,{h:128}),this.fillType7=this.fillType7||w(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||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-10}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||w(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||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?X(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=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(os,"Theme"),os),fk=g(e=>{const t=new dk;return t.calculate(e),t},"getThemeVariables"),as,pk=(as=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=$t("#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(){var o,a,n,l,c,h,u,d,f,p,y,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||I(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||I(this.tertiaryColor),this.lineColor=this.lineColor||I(this.background),this.arrowheadColor=this.arrowheadColor||I(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?X(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||X(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||I(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=w(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||j(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 x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=this.mainBkg;if(this.darkMode)for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=X(this["cScale"+x],75);else for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=X(this["cScale"+x],25);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||I(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||j(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||X(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||w(this.mainBkg,{h:180,s:-15,l:s*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||w(this.mainBkg,{h:180,s:-15,l:s*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||w(t,{h:64}),this.fillType3=this.fillType3||w(r,{h:64}),this.fillType4=this.fillType4||w(t,{h:-64}),this.fillType5=this.fillType5||w(r,{h:-64}),this.fillType6=this.fillType6||w(t,{h:128}),this.fillType7=this.fillType7||w(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||w(t,{l:-10}),this.pie5=this.pie5||w(r,{l:-10}),this.pie6=this.pie6||w(i,{l:-10}),this.pie7=this.pie7||w(t,{h:60,l:-10}),this.pie8=this.pie8||w(t,{h:-60,l:-10}),this.pie9=this.pie9||w(t,{h:120,l:0}),this.pie10=this.pie10||w(t,{h:60,l:-20}),this.pie11=this.pie11||w(t,{h:-60,l:-20}),this.pie12=this.pie12||w(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||w(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((c=this.xyChart)==null?void 0:c.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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?X(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||w(t,{h:-30}),this.git4=this.git4||w(t,{h:-60}),this.git5=this.git5||w(t,{h:-90}),this.git6=this.git6||w(t,{h:60}),this.git7=this.git7||w(t,{h:120}),this.darkMode?(this.git0=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(as,"Theme"),as),gk=g(e=>{const t=new pk;return t.calculate(e),t},"getThemeVariables"),ns,mk=(ns=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=j(this.primaryColor,16),this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=I(this.background),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=j(I("#323D47"),10),this.border1="#ccc",this.border2=ti(255,255,255,.25),this.arrowheadColor=I(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(){var r,i,s,o,a,n,l,c,h,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||I(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||I(this.tertiaryColor),this.lineColor=this.lineColor||I(this.background),this.arrowheadColor=this.arrowheadColor||I(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?X(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||X(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||I(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||j(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||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=X(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=X(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||I(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||j(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||X(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||w(this.mainBkg,{h:180,s:-15,l:t*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||w(this.mainBkg,{h:180,s:-15,l:t*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||w(this.primaryColor,{h:64}),this.fillType3=this.fillType3||w(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||w(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||w(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||w(this.primaryColor,{h:128}),this.fillType7=this.fillType7||w(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||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-10}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||w(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||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?X(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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(ns,"Theme"),ns),yk=g(e=>{const t=new mk;return t.calculate(e),t},"getThemeVariables"),ls,xk=(ls=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=$t(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(){var o,a,n,l,c,h,u,d,f,p,y,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||I(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||I(this.tertiaryColor),this.lineColor=this.lineColor||I(this.background),this.arrowheadColor=this.arrowheadColor||I(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?X(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||X(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||I(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=w(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||j(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 x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||I(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||j(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||X(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||w(this.mainBkg,{h:180,s:-15,l:s*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||w(this.mainBkg,{h:180,s:-15,l:s*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||w(t,{h:64}),this.fillType3=this.fillType3||w(r,{h:64}),this.fillType4=this.fillType4||w(t,{h:-64}),this.fillType5=this.fillType5||w(r,{h:-64}),this.fillType6=this.fillType6||w(t,{h:128}),this.fillType7=this.fillType7||w(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||w(t,{l:-10}),this.pie5=this.pie5||w(r,{l:-10}),this.pie6=this.pie6||w(i,{l:-10}),this.pie7=this.pie7||w(t,{h:60,l:-10}),this.pie8=this.pie8||w(t,{h:-60,l:-10}),this.pie9=this.pie9||w(t,{h:120,l:0}),this.pie10=this.pie10||w(t,{h:60,l:-20}),this.pie11=this.pie11||w(t,{h:-60,l:-20}),this.pie12=this.pie12||w(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||w(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((c=this.xyChart)==null?void 0:c.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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?X(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||w(t,{h:-30}),this.git4=this.git4||w(t,{h:-60}),this.git5=this.git5||w(t,{h:-90}),this.git6=this.git6||w(t,{h:60}),this.git7=this.git7||w(t,{h:120}),this.darkMode?(this.git0=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(ls,"Theme"),ls),Ck=g(e=>{const t=new xk;return t.calculate(e),t},"getThemeVariables"),hs,bk=(hs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=j(this.primaryColor,16),this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=I(this.background),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=I(this.primaryColor),this.secondaryTextColor=I(this.secondaryColor),this.tertiaryTextColor=I(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=j(I("#323D47"),10),this.border1="#ccc",this.border2=ti(255,255,255,.25),this.arrowheadColor=I(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(){var r,i,s,o,a,n,l,c,h,u,d,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||I(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||I(this.tertiaryColor),this.lineColor=this.lineColor||I(this.background),this.arrowheadColor=this.arrowheadColor||I(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?X(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||X(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||I(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||j(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 p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||I(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||j(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||X(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=X(this["cScale"+p],75);const t=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||w(this.mainBkg,{h:180,s:-15,l:t*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||w(this.mainBkg,{h:180,s:-15,l:t*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||w(this.primaryColor,{h:64}),this.fillType3=this.fillType3||w(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||w(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||w(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||w(this.primaryColor,{h:128}),this.fillType7=this.fillType7||w(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||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-10}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||w(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||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ir(this.quadrant1Fill)?j(this.quadrant1Fill):X(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?X(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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=j(this.git0,25),this.git1=j(this.git1,25),this.git2=j(this.git2,25),this.git3=j(this.git3,25),this.git4=j(this.git4,25),this.git5=j(this.git5,25),this.git6=j(this.git6,25),this.git7=j(this.git7,25)):(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)),this.gitInv0=this.gitInv0||I(this.git0),this.gitInv1=this.gitInv1||I(this.git1),this.gitInv2=this.gitInv2||I(this.git2),this.gitInv3=this.gitInv3||I(this.git3),this.gitInv4=this.gitInv4||I(this.git4),this.gitInv5=this.gitInv5||I(this.git5),this.gitInv6=this.gitInv6||I(this.git6),this.gitInv7=this.gitInv7||I(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||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cr}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]})}},g(hs,"Theme"),hs),kk=g(e=>{const t=new bk;return t.calculate(e),t},"getThemeVariables"),$r={base:{getThemeVariables:ek},dark:{getThemeVariables:ik},default:{getThemeVariables:ok},forest:{getThemeVariables:nk},neutral:{getThemeVariables:hk},neo:{getThemeVariables:uk},"neo-dark":{getThemeVariables:fk},redux:{getThemeVariables:gk},"redux-dark":{getThemeVariables:yk},"redux-color":{getThemeVariables:Ck},"redux-dark-color":{getThemeVariables:kk}},me={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},og={...me,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:{...me.sequence,messageFont:g(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:g(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:g(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...me.gantt,tickInterval:void 0,useWidth:void 0},c4:{...me.c4,useWidth:void 0,personFont:g(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...me.flowchart,inheritDir:!1},external_personFont:g(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:g(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:g(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:g(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:g(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:g(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:g(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:g(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:g(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:g(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:g(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:g(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:g(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:g(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:g(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:g(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:g(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:g(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:g(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:g(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:g(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...me.pie,useWidth:984},xyChart:{...me.xyChart,useWidth:void 0},requirement:{...me.requirement,useWidth:void 0},packet:{...me.packet},eventmodeling:{...me.eventmodeling},treeView:{...me.treeView,useWidth:void 0},radar:{...me.radar},railroad:{...me.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:{...me.ishikawa},sankey:{...me.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:{...me.venn},cynefin:{...me.cynefin}},ag=g((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...ag(e[i],"")]:[...r,t+i],[]),"keyify"),wk=new Set(ag(og,"")),ng=og,Sk={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Tk=g((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))&&(W.debug("sanitize deleting dictionary entry:",r,i),delete e[r])}},"sanitizeDictionaryConfig"),Ca=g(e=>{if(W.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Ca(t));return}for(const t of Object.keys(e)){if(W.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!wk.has(t)||e[t]==null){W.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){const i=Sk[t];i?Tk(e[t],i):(W.debug("sanitizing object",t),Ca(e[t]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(W.debug("sanitizing css option",t),e[t]=lg(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}W.debug("After sanitization",e)}},"sanitizeDirective"),lg=g(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"),ms=Object.freeze(ng),br=g(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Oe=fe({},ms),ba,bi=[],oo=fe({},ms),vo=g((e,t)=>{let r=fe({},e),i={};for(const s of t)ug(s),i=fe(i,s);if(r=fe(r,i),i.theme&&i.theme in $r){const s=fe({},ba),o=fe(s.themeVariables||{},i.themeVariables);r.theme&&r.theme in $r&&(r.themeVariables=$r[r.theme].getThemeVariables(o))}return oo=r,Ek(oo),oo},"updateCurrentConfig"),_k=g(e=>(Oe=fe({},ms),Oe=fe(Oe,e),e.theme&&$r[e.theme]&&(Oe.themeVariables=$r[e.theme].getThemeVariables(e.themeVariables)),vo(Oe,bi),Oe),"setSiteConfig"),vk=g(e=>{ba=fe({},e)},"saveConfigFromInitialize"),Bk=g(e=>(Oe=fe(Oe,e),vo(Oe,bi),Oe),"updateSiteConfig"),hg=g(()=>fe({},Oe),"getSiteConfig"),cg=g(e=>(vo(oo,[e]),re()),"setConfig"),re=g(()=>fe({},oo),"getConfig"),ug=g(e=>{e&&(["secure",...Oe.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(W.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"&&ug(e[t])}))},"sanitize"),Lk=g(e=>{var t;Ca(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),bi.push(e),vo(Oe,bi)},"addDirective"),ka=g((e=Oe)=>{bi=[],vo(e,bi)},"reset"),Ak={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."},Ku={},dg=g(e=>{Ku[e]||(W.warn(Ak[e]),Ku[e]=!0)},"issueWarning"),Ek=g(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&dg("LAZY_LOAD_DEPRECATED")},"checkConfig"),II=g(()=>{let e={};ba&&(e=fe(e,ba));for(const t of bi)e=fe(e,t);return e},"getUserDefinedConfig"),Te=g(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&dg("FLOWCHART_HTML_LABELS_DEPRECATED"),br(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),fg=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,ao=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Fk=/\s*%%.*\n/gm,cs,pg=(cs=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},g(cs,"UnknownDiagramError"),cs),ki={},qh=g(function(e,t){e=e.replace(fg,"").replace(ao,"").replace(Fk,`
18
+ `);for(const[r,{detector:i}]of Object.entries(ki))if(i(e,t))return r;throw new pg(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Ul=g((...e)=>{for(const{id:t,detector:r,loader:i}of e)gg(t,r,i)},"registerLazyLoadedDiagrams"),gg=g((e,t,r)=>{ki[e]&&W.warn(`Detector with key ${e} already exists. Overwriting.`),ki[e]={detector:t,loader:r},W.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),Mk=g(e=>ki[e].loader,"getDiagramLoader"),Bo=/<br\s*\/?>/gi,$k=g(e=>e?xg(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Ok=(()=>{let e=!1;return()=>{e||(mg(),e=!0)}})();function mg(){const e="data-temp-href-target";gs.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),gs.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"))})}g(mg,"setupDompurifyHooks");var yg=g(e=>(Ok(),gs.sanitize(e)),"removeScript"),Zu=g((e,t)=>{if(Te(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=yg(e):r!=="loose"&&(e=xg(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=Rk(e))}return e},"sanitizeMore"),je=g((e,t)=>e&&(t.dompurifyConfig?e=gs.sanitize(Zu(e,t),t.dompurifyConfig).toString():e=gs.sanitize(Zu(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Ik=g((e,t)=>typeof e=="string"?je(e,t):e.flat().map(r=>je(r,t)),"sanitizeTextOrArray"),Dk=g(e=>Bo.test(e),"hasBreaks"),Pk=g(e=>e.split(Bo),"splitBreaks"),Rk=g(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),xg=g(e=>e.replace(Bo,"#br#"),"breakToPlaceholder"),Nk=g(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),qk=g(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),zk=g(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),Qu=g(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];Wk(o,a)&&(s=o+","+a,i++,r.pop())}r.push(Hk(s))}return r.join("")},"parseGenericTypes"),jl=g((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Wk=g((e,t)=>{const r=jl(e,"~"),i=jl(t,"~");return r===1&&i===1},"shouldCombineSets"),Hk=g(e=>{const t=jl(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"),Ju=g(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Xl=/\$\$(.*?)\$\$/g,fo=g(e=>{var t;return(((t=e.match(Xl))==null?void 0:t.length)??0)>0},"hasKatex"),DI=g(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await Cg(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),Yk=g(async(e,t)=>{if(!fo(e))return e;if(!(Ju()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Xl,"MathML is unsupported in this environment.");{const{default:r}=await Rt(async()=>{const{default:s}=await import("./app-gCk-2TDF.js").then(o=>o.z);return{default:s}},__vite__mapDeps([0,1,2])),i=t.forceLegacyMathML||!Ju()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Bo).map(s=>fo(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(Xl,(s,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Cg=g(async(e,t)=>je(await Yk(e,t),t),"renderKatexSanitized"),Lo={getRows:$k,sanitizeText:je,sanitizeTextOrArray:Ik,hasBreaks:Dk,splitBreaks:Pk,lineBreakRegex:Bo,removeScript:yg,getUrl:Nk,evaluate:br,getMax:qk,getMin:zk},Uk=g(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),jk=g(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"),bg=g(function(e,t,r,i){const s=jk(t,r,i);Uk(e,s)},"configureSvgSize"),Xk=g(function(e,t,r,i){const s=t.node().getBBox(),o=s.width,a=s.height;W.info(`SVG bounds: ${o}x${a}`,s);let n=0,l=0;W.info(`Graph bounds: ${n}x${l}`,e),n=o+r*2,l=a+r*2,W.info(`Calculated bounds: ${n}x${l}`),bg(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"),na={};function Gl(e){return[...e.cssRules].map(t=>t.cssText).join(`
19
+ `)}g(Gl,"cssStyleSheetToString");var Gk=g((e,t,r,i)=>{let s="";return e in na&&na[e]?s=na[e]({...r,svgId:i}):W.warn(`No theme found for ${e}`),`& {
20
+ font-family: ${r.fontFamily};
21
+ font-size: ${r.fontSize};
22
+ fill: ${r.textColor}
23
+ }
24
+ @keyframes edge-animation-frame {
25
+ from {
26
+ stroke-dashoffset: 0;
27
+ }
28
+ }
29
+ @keyframes dash {
30
+ to {
31
+ stroke-dashoffset: 0;
32
+ }
33
+ }
34
+ & .edge-animation-slow {
35
+ stroke-dasharray: 9,5 !important;
36
+ stroke-dashoffset: 900;
37
+ animation: dash 50s linear infinite;
38
+ stroke-linecap: round;
39
+ }
40
+ & .edge-animation-fast {
41
+ stroke-dasharray: 9,5 !important;
42
+ stroke-dashoffset: 900;
43
+ animation: dash 20s linear infinite;
44
+ stroke-linecap: round;
45
+ }
46
+ /* Classes common for multiple diagrams */
47
+
48
+ & .error-icon {
49
+ fill: ${r.errorBkgColor};
50
+ }
51
+ & .error-text {
52
+ fill: ${r.errorTextColor};
53
+ stroke: ${r.errorTextColor};
54
+ }
55
+
56
+ & .edge-thickness-normal {
57
+ stroke-width: ${r.strokeWidth??1}px;
58
+ }
59
+ & .edge-thickness-thick {
60
+ stroke-width: 3.5px
61
+ }
62
+ & .edge-pattern-solid {
63
+ stroke-dasharray: 0;
64
+ }
65
+ & .edge-thickness-invisible {
66
+ stroke-width: 0;
67
+ fill: none;
68
+ }
69
+ & .edge-pattern-dashed{
70
+ stroke-dasharray: 3;
71
+ }
72
+ .edge-pattern-dotted {
73
+ stroke-dasharray: 2;
74
+ }
75
+
76
+ & .marker {
77
+ fill: ${r.lineColor};
78
+ stroke: ${r.lineColor};
79
+ }
80
+ & .marker.cross {
81
+ stroke: ${r.lineColor};
82
+ }
83
+
84
+ & svg {
85
+ font-family: ${r.fontFamily};
86
+ font-size: ${r.fontSize};
87
+ }
88
+ & p {
89
+ margin: 0
90
+ }
91
+
92
+ ${s}
93
+ .node .neo-node {
94
+ stroke: ${r.nodeBorder};
95
+ }
96
+
97
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
98
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
99
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
100
+ }
101
+ [data-look="neo"].swimlane.cluster rect {
102
+ filter: none;
103
+ }
104
+
105
+
106
+ [data-look="neo"].node path {
107
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
108
+ stroke-width: ${r.strokeWidth??1}px;
109
+ }
110
+
111
+ [data-look="neo"].node .outer-path {
112
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
113
+ }
114
+
115
+ [data-look="neo"].node .neo-line path {
116
+ stroke: ${r.nodeBorder};
117
+ filter: none;
118
+ }
119
+
120
+ [data-look="neo"].node circle{
121
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
122
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
123
+ }
124
+
125
+ [data-look="neo"].node circle .state-start{
126
+ fill: #000000;
127
+ }
128
+
129
+ [data-look="neo"].icon-shape .icon {
130
+ fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
131
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
132
+ }
133
+
134
+ [data-look="neo"].icon-shape .icon-neo path {
135
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
136
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
137
+ }
138
+
139
+ ${t}
140
+ `},"getStyles"),Vk=g((e,t)=>{t!==void 0&&(na[e]=t)},"addStylesForDiagram"),Kk=Gk,kg={};u1(kg,{clear:()=>Zk,getAccDescription:()=>e2,getAccTitle:()=>Jk,getDiagramTitle:()=>i2,setAccDescription:()=>t2,setAccTitle:()=>Qk,setDiagramTitle:()=>r2});var zh="",Wh="",Hh="",Yh=g(e=>je(e,re()),"sanitizeText"),Zk=g(()=>{zh="",Hh="",Wh=""},"clear"),Qk=g(e=>{zh=Yh(e).replace(/^\s+/g,"")},"setAccTitle"),Jk=g(()=>zh,"getAccTitle"),t2=g(e=>{Hh=Yh(e).replace(/\n\s+/g,`
141
+ `)},"setAccDescription"),e2=g(()=>Hh,"getAccDescription"),r2=g(e=>{Wh=Yh(e)},"setDiagramTitle"),i2=g(()=>Wh,"getDiagramTitle"),td=W,s2=Nh,Ht=re,PI=cg,RI=ms,Uh=g(e=>je(e,Ht()),"sanitizeText"),o2=Xk,a2=g(()=>kg,"getCommonDb"),wa={},Sa=g((e,t,r)=>{var i;wa[e]&&td.warn(`Diagram with id ${e} already registered. Overwriting.`),wa[e]=t,r&&gg(e,r),Vk(e,t.styles),(i=t.injectUtils)==null||i.call(t,td,s2,Ht,Uh,o2,a2(),()=>{})},"registerDiagram"),Vl=g(e=>{if(e in wa)return wa[e];throw new n2(e)},"getDiagram"),us,n2=(us=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},g(us,"DiagramNotFoundError"),us),l2={value:()=>{}};function wg(){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 la(r)}function la(e){this._=e}function h2(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}})}la.prototype=wg.prototype={constructor:la,on:function(e,t){var r=this._,i=h2(e+"",r),s,o=-1,a=i.length;if(arguments.length<2){for(;++o<a;)if((s=(e=i[o]).type)&&(s=c2(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]=ed(r[s],e.name,t);else if(t==null)for(s in r)r[s]=ed(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 la(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 c2(e,t){for(var r=0,i=e.length,s;r<i;++r)if((s=e[r]).name===t)return s.value}function ed(e,t,r){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=l2,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Kl="http://www.w3.org/1999/xhtml";const rd={svg:"http://www.w3.org/2000/svg",xhtml:Kl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ka(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),rd.hasOwnProperty(t)?{space:rd[t],local:e}:e}function u2(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Kl&&t.documentElement.namespaceURI===Kl?t.createElement(e):t.createElementNS(r,e)}}function d2(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Sg(e){var t=Ka(e);return(t.local?d2:u2)(t)}function f2(){}function jh(e){return e==null?f2:function(){return this.querySelector(e)}}function p2(e){typeof e!="function"&&(e=jh(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 ze(i,this._parents)}function g2(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function m2(){return[]}function Tg(e){return e==null?m2:function(){return this.querySelectorAll(e)}}function y2(e){return function(){return g2(e.apply(this,arguments))}}function x2(e){typeof e=="function"?e=y2(e):e=Tg(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 ze(i,s)}function _g(e){return function(){return this.matches(e)}}function vg(e){return function(t){return t.matches(e)}}var C2=Array.prototype.find;function b2(e){return function(){return C2.call(this.children,e)}}function k2(){return this.firstElementChild}function w2(e){return this.select(e==null?k2:b2(typeof e=="function"?e:vg(e)))}var S2=Array.prototype.filter;function T2(){return Array.from(this.children)}function _2(e){return function(){return S2.call(this.children,e)}}function v2(e){return this.selectAll(e==null?T2:_2(typeof e=="function"?e:vg(e)))}function B2(e){typeof e!="function"&&(e=_g(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 ze(i,this._parents)}function Bg(e){return new Array(e.length)}function L2(){return new ze(this._enter||this._groups.map(Bg),this._parents)}function Ta(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ta.prototype={constructor:Ta,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 A2(e){return function(){return e}}function E2(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 Ta(e,o[a]);for(;a<l;++a)(n=t[a])&&(s[a]=n)}function F2(e,t,r,i,s,o,a){var n,l,c=new Map,h=t.length,u=o.length,d=new Array(h),f;for(n=0;n<h;++n)(l=t[n])&&(d[n]=f=a.call(l,l.__data__,n,t)+"",c.has(f)?s[n]=l:c.set(f,l));for(n=0;n<u;++n)f=a.call(e,o[n],n,o)+"",(l=c.get(f))?(i[n]=l,l.__data__=o[n],c.delete(f)):r[n]=new Ta(e,o[n]);for(n=0;n<h;++n)(l=t[n])&&c.get(d[n])===l&&(s[n]=l)}function M2(e){return e.__data__}function $2(e,t){if(!arguments.length)return Array.from(this,M2);var r=t?F2:E2,i=this._parents,s=this._groups;typeof e!="function"&&(e=A2(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,f=O2(e.call(h,h&&h.__data__,c,i)),p=f.length,y=n[c]=new Array(p),C=a[c]=new Array(p),x=l[c]=new Array(d);r(h,u,y,C,x,f,t);for(var b=0,k=0,T,v;b<p;++b)if(T=y[b]){for(b>=k&&(k=b+1);!(v=C[k])&&++k<p;);T._next=v||null}}return a=new ze(a,i),a._enter=n,a._exit=l,a}function O2(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function I2(){return new ze(this._exit||this._groups.map(Bg),this._parents)}function D2(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 P2(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),f,p=0;p<u;++p)(f=c[p]||h[p])&&(d[p]=f);for(;l<s;++l)n[l]=r[l];return new ze(n,this._parents)}function R2(){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 N2(e){e||(e=q2);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 ze(s,this._parents).order()}function q2(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function z2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function W2(){return Array.from(this)}function H2(){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 Y2(){let e=0;for(const t of this)++e;return e}function U2(){return!this.node()}function j2(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 X2(e){return function(){this.removeAttribute(e)}}function G2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function V2(e,t){return function(){this.setAttribute(e,t)}}function K2(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Z2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Q2(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 J2(e,t){var r=Ka(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?G2:X2:typeof t=="function"?r.local?Q2:Z2:r.local?K2:V2)(r,t))}function Lg(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function tw(e){return function(){this.style.removeProperty(e)}}function ew(e,t,r){return function(){this.style.setProperty(e,t,r)}}function rw(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function iw(e,t,r){return arguments.length>1?this.each((t==null?tw:typeof t=="function"?rw:ew)(e,t,r??"")):ys(this.node(),e)}function ys(e,t){return e.style.getPropertyValue(t)||Lg(e).getComputedStyle(e,null).getPropertyValue(t)}function sw(e){return function(){delete this[e]}}function ow(e,t){return function(){this[e]=t}}function aw(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function nw(e,t){return arguments.length>1?this.each((t==null?sw:typeof t=="function"?aw:ow)(e,t)):this.node()[e]}function Ag(e){return e.trim().split(/^|\s+/)}function Xh(e){return e.classList||new Eg(e)}function Eg(e){this._node=e,this._names=Ag(e.getAttribute("class")||"")}Eg.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 Fg(e,t){for(var r=Xh(e),i=-1,s=t.length;++i<s;)r.add(t[i])}function Mg(e,t){for(var r=Xh(e),i=-1,s=t.length;++i<s;)r.remove(t[i])}function lw(e){return function(){Fg(this,e)}}function hw(e){return function(){Mg(this,e)}}function cw(e,t){return function(){(t.apply(this,arguments)?Fg:Mg)(this,e)}}function uw(e,t){var r=Ag(e+"");if(arguments.length<2){for(var i=Xh(this.node()),s=-1,o=r.length;++s<o;)if(!i.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?cw:t?lw:hw)(r,t))}function dw(){this.textContent=""}function fw(e){return function(){this.textContent=e}}function pw(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function gw(e){return arguments.length?this.each(e==null?dw:(typeof e=="function"?pw:fw)(e)):this.node().textContent}function mw(){this.innerHTML=""}function yw(e){return function(){this.innerHTML=e}}function xw(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Cw(e){return arguments.length?this.each(e==null?mw:(typeof e=="function"?xw:yw)(e)):this.node().innerHTML}function bw(){this.nextSibling&&this.parentNode.appendChild(this)}function kw(){return this.each(bw)}function ww(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Sw(){return this.each(ww)}function Tw(e){var t=typeof e=="function"?e:Sg(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function _w(){return null}function vw(e,t){var r=typeof e=="function"?e:Sg(e),i=t==null?_w:typeof t=="function"?t:jh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Bw(){var e=this.parentNode;e&&e.removeChild(this)}function Lw(){return this.each(Bw)}function Aw(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ew(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Fw(e){return this.select(e?Ew:Aw)}function Mw(e){return arguments.length?this.property("__data__",e):this.node().__data__}function $w(e){return function(t){e.call(this,t,this.__data__)}}function Ow(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 Iw(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 Dw(e,t,r){return function(){var i=this.__on,s,o=$w(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 Pw(e,t,r){var i=Ow(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?Dw:Iw,s=0;s<o;++s)this.each(n(i[s],t,r));return this}function $g(e,t,r){var i=Lg(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 Rw(e,t){return function(){return $g(this,e,t)}}function Nw(e,t){return function(){return $g(this,e,t.apply(this,arguments))}}function qw(e,t){return this.each((typeof t=="function"?Nw:Rw)(e,t))}function*zw(){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 Og=[null];function ze(e,t){this._groups=e,this._parents=t}function Ao(){return new ze([[document.documentElement]],Og)}function Ww(){return this}ze.prototype=Ao.prototype={constructor:ze,select:p2,selectAll:x2,selectChild:w2,selectChildren:v2,filter:B2,data:$2,enter:L2,exit:I2,join:D2,merge:P2,selection:Ww,order:R2,sort:N2,call:z2,nodes:W2,node:H2,size:Y2,empty:U2,each:j2,attr:J2,style:iw,property:nw,classed:uw,text:gw,html:Cw,raise:kw,lower:Sw,append:Tw,insert:vw,remove:Lw,clone:Fw,datum:Mw,on:Pw,dispatch:qw,[Symbol.iterator]:zw};function Dt(e){return typeof e=="string"?new ze([[document.querySelector(e)]],[document.documentElement]):new ze([[e]],Og)}function Gh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ig(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Eo(){}var po=.7,_a=1/po,Ki="\\s*([+-]?\\d+)\\s*",go="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hw=/^#([0-9a-f]{3,8})$/,Yw=new RegExp(`^rgb\\(${Ki},${Ki},${Ki}\\)$`),Uw=new RegExp(`^rgb\\(${gr},${gr},${gr}\\)$`),jw=new RegExp(`^rgba\\(${Ki},${Ki},${Ki},${go}\\)$`),Xw=new RegExp(`^rgba\\(${gr},${gr},${gr},${go}\\)$`),Gw=new RegExp(`^hsl\\(${go},${gr},${gr}\\)$`),Vw=new RegExp(`^hsla\\(${go},${gr},${gr},${go}\\)$`),id={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};Gh(Eo,mo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sd,formatHex:sd,formatHex8:Kw,formatHsl:Zw,formatRgb:od,toString:od});function sd(){return this.rgb().formatHex()}function Kw(){return this.rgb().formatHex8()}function Zw(){return Dg(this).formatHsl()}function od(){return this.rgb().formatRgb()}function mo(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Hw.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ad(t):r===3?new Ie(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ho(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ho(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=Yw.exec(e))?new Ie(t[1],t[2],t[3],1):(t=Uw.exec(e))?new Ie(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jw.exec(e))?Ho(t[1],t[2],t[3],t[4]):(t=Xw.exec(e))?Ho(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gw.exec(e))?hd(t[1],t[2]/100,t[3]/100,1):(t=Vw.exec(e))?hd(t[1],t[2]/100,t[3]/100,t[4]):id.hasOwnProperty(e)?ad(id[e]):e==="transparent"?new Ie(NaN,NaN,NaN,0):null}function ad(e){return new Ie(e>>16&255,e>>8&255,e&255,1)}function Ho(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ie(e,t,r,i)}function Qw(e){return e instanceof Eo||(e=mo(e)),e?(e=e.rgb(),new Ie(e.r,e.g,e.b,e.opacity)):new Ie}function Zl(e,t,r,i){return arguments.length===1?Qw(e):new Ie(e,t,r,i??1)}function Ie(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Gh(Ie,Zl,Ig(Eo,{brighter(e){return e=e==null?_a:Math.pow(_a,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?po:Math.pow(po,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(xi(this.r),xi(this.g),xi(this.b),va(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:nd,formatHex:nd,formatHex8:Jw,formatRgb:ld,toString:ld}));function nd(){return`#${fi(this.r)}${fi(this.g)}${fi(this.b)}`}function Jw(){return`#${fi(this.r)}${fi(this.g)}${fi(this.b)}${fi((isNaN(this.opacity)?1:this.opacity)*255)}`}function ld(){const e=va(this.opacity);return`${e===1?"rgb(":"rgba("}${xi(this.r)}, ${xi(this.g)}, ${xi(this.b)}${e===1?")":`, ${e})`}`}function va(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fi(e){return e=xi(e),(e<16?"0":"")+e.toString(16)}function hd(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new er(e,t,r,i)}function Dg(e){if(e instanceof er)return new er(e.h,e.s,e.l,e.opacity);if(e instanceof Eo||(e=mo(e)),!e)return new er;if(e instanceof er)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 er(a,n,l,e.opacity)}function tS(e,t,r,i){return arguments.length===1?Dg(e):new er(e,t,r,i??1)}function er(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Gh(er,tS,Ig(Eo,{brighter(e){return e=e==null?_a:Math.pow(_a,e),new er(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?po:Math.pow(po,e),new er(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 Ie(jn(e>=240?e-240:e+120,s,i),jn(e,s,i),jn(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new er(cd(this.h),Yo(this.s),Yo(this.l),va(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=va(this.opacity);return`${e===1?"hsl(":"hsla("}${cd(this.h)}, ${Yo(this.s)*100}%, ${Yo(this.l)*100}%${e===1?")":`, ${e})`}`}}));function cd(e){return e=(e||0)%360,e<0?e+360:e}function Yo(e){return Math.max(0,Math.min(1,e||0))}function jn(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 Vh=e=>()=>e;function Pg(e,t){return function(r){return e+r*t}}function eS(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 NI(e,t){var r=t-e;return r?Pg(e,r>180||r<-180?r-360*Math.round(r/360):r):Vh(isNaN(e)?t:e)}function rS(e){return(e=+e)==1?Rg:function(t,r){return r-t?eS(t,r,e):Vh(isNaN(t)?r:t)}}function Rg(e,t){var r=t-e;return r?Pg(e,r):Vh(isNaN(e)?t:e)}const ud=(function e(t){var r=rS(t);function i(s,o){var a=r((s=Zl(s)).r,(o=Zl(o)).r),n=r(s.g,o.g),l=r(s.b,o.b),c=Rg(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 Kr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Ql=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xn=new RegExp(Ql.source,"g");function iS(e){return function(){return e}}function sS(e){return function(t){return e(t)+""}}function oS(e,t){var r=Ql.lastIndex=Xn.lastIndex=0,i,s,o,a=-1,n=[],l=[];for(e=e+"",t=t+"";(i=Ql.exec(e))&&(s=Xn.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:Kr(i,s)})),r=Xn.lastIndex;return r<t.length&&(o=t.slice(r),n[a]?n[a]+=o:n[++a]=o),n.length<2?l[0]?sS(l[0].x):iS(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 dd=180/Math.PI,Jl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ng(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)*dd,skewX:Math.atan(l)*dd,scaleX:a,scaleY:n}}var Uo;function aS(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Jl:Ng(t.a,t.b,t.c,t.d,t.e,t.f)}function nS(e){return e==null||(Uo||(Uo=document.createElementNS("http://www.w3.org/2000/svg","g")),Uo.setAttribute("transform",e),!(e=Uo.transform.baseVal.consolidate()))?Jl:(e=e.matrix,Ng(e.a,e.b,e.c,e.d,e.e,e.f))}function qg(e,t,r,i){function s(c){return c.length?c.pop()+" ":""}function o(c,h,u,d,f,p){if(c!==u||h!==d){var y=f.push("translate(",null,t,null,r);p.push({i:y-4,x:Kr(c,u)},{i:y-2,x:Kr(h,d)})}else(u||d)&&f.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:Kr(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:Kr(c,h)}):h&&u.push(s(u)+"skewX("+h+i)}function l(c,h,u,d,f,p){if(c!==u||h!==d){var y=f.push(s(f)+"scale(",null,",",null,")");p.push({i:y-4,x:Kr(c,u)},{i:y-2,x:Kr(h,d)})}else(u!==1||d!==1)&&f.push(s(f)+"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(f){for(var p=-1,y=d.length,C;++p<y;)u[(C=d[p]).i]=C.x(f);return u.join("")}}}var lS=qg(aS,"px, ","px)","deg)"),hS=qg(nS,", ",")",")"),xs=0,Gs=0,Rs=0,zg=1e3,Ba,Vs,La=0,wi=0,Za=0,yo=typeof performance=="object"&&performance.now?performance:Date,Wg=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Kh(){return wi||(Wg(cS),wi=yo.now()+Za)}function cS(){wi=0}function Aa(){this._call=this._time=this._next=null}Aa.prototype=Hg.prototype={constructor:Aa,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Kh():+r)+(t==null?0:+t),!this._next&&Vs!==this&&(Vs?Vs._next=this:Ba=this,Vs=this),this._call=e,this._time=r,th()},stop:function(){this._call&&(this._call=null,this._time=1/0,th())}};function Hg(e,t,r){var i=new Aa;return i.restart(e,t,r),i}function uS(){Kh(),++xs;for(var e=Ba,t;e;)(t=wi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xs}function fd(){wi=(La=yo.now())+Za,xs=Gs=0;try{uS()}finally{xs=0,fS(),wi=0}}function dS(){var e=yo.now(),t=e-La;t>zg&&(Za-=t,La=e)}function fS(){for(var e,t=Ba,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:Ba=r);Vs=e,th(i)}function th(e){if(!xs){Gs&&(Gs=clearTimeout(Gs));var t=e-wi;t>24?(e<1/0&&(Gs=setTimeout(fd,e-yo.now()-Za)),Rs&&(Rs=clearInterval(Rs))):(Rs||(La=yo.now(),Rs=setInterval(dS,zg)),xs=1,Wg(fd))}}function pd(e,t,r){var i=new Aa;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,r),i}var pS=wg("start","end","cancel","interrupt"),gS=[],Yg=0,gd=1,eh=2,ha=3,md=4,rh=5,ca=6;function Qa(e,t,r,i,s,o){var a=e.__transition;if(!a)e.__transition={};else if(r in a)return;mS(e,r,{name:t,index:i,group:s,on:pS,tween:gS,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Yg})}function Zh(e,t){var r=sr(e,t);if(r.state>Yg)throw new Error("too late; already scheduled");return r}function kr(e,t){var r=sr(e,t);if(r.state>ha)throw new Error("too late; already running");return r}function sr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function mS(e,t,r){var i=e.__transition,s;i[t]=r,r.timer=Hg(o,0,r.time);function o(c){r.state=gd,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var h,u,d,f;if(r.state!==gd)return l();for(h in i)if(f=i[h],f.name===r.name){if(f.state===ha)return pd(a);f.state===md?(f.state=ca,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[h]):+h<t&&(f.state=ca,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[h])}if(pd(function(){r.state===ha&&(r.state=md,r.timer.restart(n,r.delay,r.time),n(c))}),r.state=eh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===eh){for(r.state=ha,s=new Array(d=r.tween.length),h=0,u=-1;h<d;++h)(f=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(s[++u]=f);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=rh,1),u=-1,d=s.length;++u<d;)s[u].call(e,h);r.state===rh&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=ca,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function yS(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>eh&&i.state<rh,i.state=ca,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[a]}o&&delete e.__transition}}function xS(e){return this.each(function(){yS(this,e)})}function CS(e,t){var r,i;return function(){var s=kr(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 bS(e,t,r){var i,s;if(typeof r!="function")throw new Error;return function(){var o=kr(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 kS(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=sr(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?CS:bS)(r,e,t))}function Qh(e,t,r){var i=e._id;return e.each(function(){var s=kr(this,i);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return sr(s,i).value[t]}}function Ug(e,t){var r;return(typeof t=="number"?Kr:t instanceof mo?ud:(r=mo(t))?(t=r,ud):oS)(e,t)}function wS(e){return function(){this.removeAttribute(e)}}function SS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function TS(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 _S(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 vS(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 BS(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 LS(e,t){var r=Ka(e),i=r==="transform"?hS:Ug;return this.attrTween(e,typeof t=="function"?(r.local?BS:vS)(r,i,Qh(this,"attr."+e,t)):t==null?(r.local?SS:wS)(r):(r.local?_S:TS)(r,i,t))}function AS(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function ES(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function FS(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&ES(e,o)),r}return s._value=t,s}function MS(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&AS(e,o)),r}return s._value=t,s}function $S(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=Ka(e);return this.tween(r,(i.local?FS:MS)(i,t))}function OS(e,t){return function(){Zh(this,e).delay=+t.apply(this,arguments)}}function IS(e,t){return t=+t,function(){Zh(this,e).delay=t}}function DS(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?OS:IS)(t,e)):sr(this.node(),t).delay}function PS(e,t){return function(){kr(this,e).duration=+t.apply(this,arguments)}}function RS(e,t){return t=+t,function(){kr(this,e).duration=t}}function NS(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?PS:RS)(t,e)):sr(this.node(),t).duration}function qS(e,t){if(typeof t!="function")throw new Error;return function(){kr(this,e).ease=t}}function zS(e){var t=this._id;return arguments.length?this.each(qS(t,e)):sr(this.node(),t).ease}function WS(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;kr(this,e).ease=r}}function HS(e){if(typeof e!="function")throw new Error;return this.each(WS(this._id,e))}function YS(e){typeof e!="function"&&(e=_g(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 Ir(i,this._parents,this._name,this._id)}function US(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,f=0;f<h;++f)(d=l[f]||c[f])&&(u[f]=d);for(;n<i;++n)a[n]=t[n];return new Ir(a,this._parents,this._name,this._id)}function jS(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 XS(e,t,r){var i,s,o=jS(t)?Zh:kr;return function(){var a=o(this,e),n=a.on;n!==i&&(s=(i=n).copy()).on(t,r),a.on=s}}function GS(e,t){var r=this._id;return arguments.length<2?sr(this.node(),r).on.on(e):this.each(XS(r,e,t))}function VS(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function KS(){return this.on("end.remove",VS(this._id))}function ZS(e){var t=this._name,r=this._id;typeof e!="function"&&(e=jh(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,Qa(c[d],t,r,d,c,sr(h,r)));return new Ir(o,this._parents,t,r)}function QS(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Tg(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),f,p=sr(h,r),y=0,C=d.length;y<C;++y)(f=d[y])&&Qa(f,t,r,y,d,p);o.push(d),a.push(h)}return new Ir(o,a,t,r)}var JS=Ao.prototype.constructor;function tT(){return new JS(this._groups,this._parents)}function eT(e,t){var r,i,s;return function(){var o=ys(this,e),a=(this.style.removeProperty(e),ys(this,e));return o===a?null:o===r&&a===i?s:s=t(r=o,i=a)}}function jg(e){return function(){this.style.removeProperty(e)}}function rT(e,t,r){var i,s=r+"",o;return function(){var a=ys(this,e);return a===s?null:a===i?o:o=t(i=a,r)}}function iT(e,t,r){var i,s,o;return function(){var a=ys(this,e),n=r(this),l=n+"";return n==null&&(l=n=(this.style.removeProperty(e),ys(this,e))),a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n))}}function sT(e,t){var r,i,s,o="style."+t,a="end."+o,n;return function(){var l=kr(this,e),c=l.on,h=l.value[o]==null?n||(n=jg(t)):void 0;(c!==r||s!==h)&&(i=(r=c).copy()).on(a,s=h),l.on=i}}function oT(e,t,r){var i=(e+="")=="transform"?lS:Ug;return t==null?this.styleTween(e,eT(e,i)).on("end.style."+e,jg(e)):typeof t=="function"?this.styleTween(e,iT(e,i,Qh(this,"style."+e,t))).each(sT(this._id,e)):this.styleTween(e,rT(e,i,t),r).on("end.style."+e,null)}function aT(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function nT(e,t,r){var i,s;function o(){var a=t.apply(this,arguments);return a!==s&&(i=(s=a)&&aT(e,a,r)),i}return o._value=t,o}function lT(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,nT(e,t,r??""))}function hT(e){return function(){this.textContent=e}}function cT(e){return function(){var t=e(this);this.textContent=t??""}}function uT(e){return this.tween("text",typeof e=="function"?cT(Qh(this,"text",e)):hT(e==null?"":e+""))}function dT(e){return function(t){this.textContent=e.call(this,t)}}function fT(e){var t,r;function i(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&dT(s)),t}return i._value=e,i}function pT(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,fT(e))}function gT(){for(var e=this._name,t=this._id,r=Xg(),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=sr(l,t);Qa(l,e,r,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ir(i,this._parents,e,r)}function mT(){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=kr(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 yT=0;function Ir(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function Xg(){return++yT}var Ar=Ao.prototype;Ir.prototype={constructor:Ir,select:ZS,selectAll:QS,selectChild:Ar.selectChild,selectChildren:Ar.selectChildren,filter:YS,merge:US,selection:tT,transition:gT,call:Ar.call,nodes:Ar.nodes,node:Ar.node,size:Ar.size,empty:Ar.empty,each:Ar.each,on:GS,attr:LS,attrTween:$S,style:oT,styleTween:lT,text:uT,textTween:pT,remove:KS,tween:kS,delay:DS,duration:NS,ease:zS,easeVarying:HS,end:mT,[Symbol.iterator]:Ar[Symbol.iterator]};function xT(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var CT={time:null,delay:0,duration:250,ease:xT};function bT(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 kT(e){var t,r;e instanceof Ir?(t=e._id,e=e._name):(t=Xg(),(r=CT).time=Kh(),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])&&Qa(l,e,t,c,a,r||bT(l,t));return new Ir(i,this._parents,e,t)}Ao.prototype.interrupt=xS;Ao.prototype.transition=kT;const ih=Math.PI,sh=2*ih,ci=1e-6,wT=sh-ci;function Gg(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function ST(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Gg;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 TT{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Gg:ST(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>ci)if(!(Math.abs(u*l-c*h)>ci)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let f=i-a,p=s-n,y=l*l+c*c,C=f*f+p*p,x=Math.sqrt(y),b=Math.sqrt(d),k=o*Math.tan((ih-Math.acos((y+d-C)/(2*x*b)))/2),T=k/b,v=k/x;Math.abs(T-1)>ci&&this._append`L${t+T*h},${r+T*u}`,this._append`A${o},${o},0,0,${+(u*f>h*p)},${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)>ci||Math.abs(this._y1-h)>ci)&&this._append`L${c},${h}`,i&&(d<0&&(d=d%sh+sh),d>wT?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>ci&&this._append`A${i},${i},0,${+(d>=ih)},${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 Ri(e){return function(){return e}}const qI=Math.abs,zI=Math.atan2,WI=Math.cos,HI=Math.max,YI=Math.min,UI=Math.sin,jI=Math.sqrt,yd=1e-12,Jh=Math.PI,xd=Jh/2,XI=2*Jh;function GI(e){return e>1?0:e<-1?Jh:Math.acos(e)}function VI(e){return e>=1?xd:e<=-1?-xd:Math.asin(e)}function _T(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 TT(t)}function vT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Vg(e){this._context=e}Vg.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 no(e){return new Vg(e)}function BT(e){return e[0]}function LT(e){return e[1]}function AT(e,t){var r=Ri(!0),i=null,s=no,o=null,a=_T(n);e=typeof e=="function"?e:e===void 0?BT:Ri(e),t=typeof t=="function"?t:t===void 0?LT:Ri(t);function n(l){var c,h=(l=vT(l)).length,u,d=!1,f;for(i==null&&(o=s(f=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(f)return o=null,f+""||null}return n.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ri(+l),n):e},n.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ri(+l),n):t},n.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ri(!!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 Kg{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 Zg(e){return new Kg(e,!0)}function Qg(e){return new Kg(e,!1)}function ei(){}function Ea(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 Ja(e){this._context=e}Ja.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:Ea(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:Ea(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oh(e){return new Ja(e)}function Jg(e){this._context=e}Jg.prototype={areaStart:ei,areaEnd:ei,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:Ea(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ET(e){return new Jg(e)}function tm(e){this._context=e}tm.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:Ea(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FT(e){return new tm(e)}function em(e,t){this._basis=new Ja(e),this._beta=t}em.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 MT=(function e(t){function r(i){return t===1?new Ja(i):new em(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function Fa(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 tc(e,t){this._context=e,this._k=(1-t)/6}tc.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:Fa(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:Fa(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 rm=(function e(t){function r(i){return new tc(i,t)}return r.tension=function(i){return e(+i)},r})(0);function ec(e,t){this._context=e,this._k=(1-t)/6}ec.prototype={areaStart:ei,areaEnd:ei,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:Fa(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 $T=(function e(t){function r(i){return new ec(i,t)}return r.tension=function(i){return e(+i)},r})(0);function rc(e,t){this._context=e,this._k=(1-t)/6}rc.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:Fa(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 OT=(function e(t){function r(i){return new rc(i,t)}return r.tension=function(i){return e(+i)},r})(0);function ic(e,t,r){var i=e._x1,s=e._y1,o=e._x2,a=e._y2;if(e._l01_a>yd){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>yd){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 im(e,t){this._context=e,this._alpha=t}im.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:ic(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 sm=(function e(t){function r(i){return t?new im(i,t):new tc(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function om(e,t){this._context=e,this._alpha=t}om.prototype={areaStart:ei,areaEnd:ei,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:ic(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 IT=(function e(t){function r(i){return t?new om(i,t):new ec(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function am(e,t){this._context=e,this._alpha=t}am.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:ic(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 DT=(function e(t){function r(i){return t?new am(i,t):new rc(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function nm(e){this._context=e}nm.prototype={areaStart:ei,areaEnd:ei,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 PT(e){return new nm(e)}function Cd(e){return e<0?-1:1}function bd(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(Cd(o)+Cd(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function kd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Gn(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 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=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Gn(this,this._t0,kd(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,Gn(this,kd(this,r=bd(this,e,t)),r);break;default:Gn(this,this._t0,r=bd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function lm(e){this._context=new hm(e)}(lm.prototype=Object.create(Ma.prototype)).point=function(e,t){Ma.prototype.point.call(this,t,e)};function hm(e){this._context=e}hm.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 cm(e){return new Ma(e)}function um(e){return new lm(e)}function dm(e){this._context=e}dm.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=wd(e),s=wd(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 wd(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 fm(e){return new dm(e)}function tn(e,t){this._context=e,this._t=t}tn.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 pm(e){return new tn(e,.5)}function gm(e){return new tn(e,0)}function mm(e){return new tn(e,1)}function Ks(e,t,r){this.k=e,this.x=t,this.y=r}Ks.prototype={constructor:Ks,scale:function(e){return e===1?this:new Ks(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ks(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+")"}};Ks.prototype;var RT=g(e=>{var s;const{securityLevel:t}=Ht();let r=Dt("body");if(t==="sandbox"){const a=((s=Dt(`#i${e}`).node())==null?void 0:s.contentDocument)??document;r=Dt(a.body)}return r.select(`#${e}`)},"selectSvgElement"),NT=g(e=>{const{handDrawnSeed:t}=Ht();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),qT=g(e=>Array.isArray(e)?e:e?e.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),Ss=g(e=>{const t=zT([...e.cssCompiledStyles||[],...e.cssStyles||[],...qT(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),zT=g(e=>{const t=new Map;return e.forEach(r=>{const[i,s]=r.split(":");t.set(i.trim(),s==null?void 0:s.trim())}),t},"styles2Map"),ym=g(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"),St=g(e=>{const{stylesArray:t}=Ss(e),r=[],i=[],s=[],o=[];return t.forEach(a=>{const n=a[0];ym(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"),yt=g((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=Ht(),{nodeBorder:s,mainBkg:o}=r,{stylesMap:a}=Ss(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:((l=a.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:WT(a.get("stroke-dasharray"))},t)},"userNodeOverrides"),WT=g(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 HT=Object.freeze({left:0,top:0,width:16,height:16}),$a=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xm=Object.freeze({...HT,...$a}),YT=Object.freeze({...xm,body:"",hidden:!1}),UT=Object.freeze({width:null,height:null}),jT=Object.freeze({...UT,...$a}),XT=(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 Vn(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 Vn(n)?n:null}if(r&&i===""){const n={provider:i,prefix:"",name:o};return Vn(n,r)?n:null}return null},Vn=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function GT(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 Sd(e,t){const r=GT(e,t);for(const i in YT)i in $a?i in e&&!(i in r)&&(r[i]=$a[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function VT(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 Td(e,t,r){const i=e.icons,s=e.aliases||Object.create(null);let o={};function a(n){o=Sd(i[n]||s[n],o)}return a(t),r.forEach(a),Sd(e,o)}function KT(e,t){if(e.icons[t])return Td(e,t,[]);const r=VT(e,[t])[t];return r?Td(e,t,r):null}const ZT=/(-?[0-9.]*[0-9]+[0-9.]*)/g,QT=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function _d(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(ZT);if(i===null||!i.length)return e;const s=[];let o=i.shift(),a=QT.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 JT(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 t_(e,t){return e?"<defs>"+e+"</defs>"+t:t}function e_(e,t,r){const i=JT(e);return t_(i.defs,t+i.content+r)}const r_=e=>e==="unset"||e==="undefined"||e==="none";function i_(e,t){const r={...xm,...e},i={...jT,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,i].forEach(y=>{const C=[],x=y.hFlip,b=y.vFlip;let k=y.rotate;x?b?k+=2:(C.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),C.push("scale(-1 1)"),s.top=s.left=0):b&&(C.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),C.push("scale(1 -1)"),s.top=s.left=0);let T;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:T=s.height/2+s.top,C.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:C.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:T=s.width/2+s.left,C.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")")}k%2===1&&(s.left!==s.top&&(T=s.left,s.left=s.top,s.top=T),s.width!==s.height&&(T=s.width,s.width=s.height,s.height=T)),C.length&&(o=e_(o,'<g transform="'+C.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=_d(u,l/c)):(h=a==="auto"?l:a,u=n===null?_d(h,c/l):n==="auto"?c:n);const d={},f=(y,C)=>{r_(C)||(d[y]=C.toString())};f("width",h),f("height",u);const p=[s.left,s.top,l,c];return d.viewBox=p.join(" "),{attributes:d,viewBox:p,body:o}}const s_=/\sid="(\S+)"/g,vd=new Map;function o_(e){e=e.replace(/[0-9]+$/,"")||"a";const t=vd.get(e)||0;return vd.set(e,t+1),t?`${e}${t}`:e}function a_(e){const t=[];let r;for(;r=s_.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=o_(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 n_(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 l_={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},ah=new Map,Cm=new Map,h_=g(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(W.debug("Registering icon pack:",t.name),"loader"in t)Cm.set(t.name,t.loader);else if("icons"in t)ah.set(t.name,t.icons);else throw W.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),bm=g(async(e,t)=>{const r=XT(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=ah.get(i);if(!s){const a=Cm.get(i);if(!a)throw new Error(`Icon set not found: ${r.prefix}`);try{s={...await a(),prefix:i},ah.set(i,s)}catch(n){throw W.error(n),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=KT(s,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),c_=g(async e=>{try{return await bm(e),!0}catch{return!1}},"isIconAvailable"),Fo=g(async(e,t,r)=>{let i;try{i=await bm(e,t==null?void 0:t.fallbackPrefix)}catch(a){W.error(a),i=l_}const s=i_(i,t),o=n_(a_(s.body),{...s.attributes,...r});return je(o,re())},"getIconSVG"),jo={},de={},Bd;function u_(){return Bd||(Bd=1,Object.defineProperty(de,"__esModule",{value:!0}),de.BLANK_URL=de.relativeFirstCharacters=de.whitespaceEscapeCharsRegex=de.urlSchemeRegex=de.ctrlCharactersRegex=de.htmlCtrlEntityRegex=de.htmlEntitiesRegex=de.invalidProtocolRegex=void 0,de.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,de.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,de.htmlCtrlEntityRegex=/&(newline|tab);/gi,de.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,de.urlSchemeRegex=/^.+(:|&colon;)/gim,de.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,de.relativeFirstCharacters=[".","/"],de.BLANK_URL="about:blank"),de}var Ld;function d_(){if(Ld)return jo;Ld=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.sanitizeUrl=o;var e=u_();function t(a){return e.relativeFirstCharacters.indexOf(a[0])>-1}function r(a){var n=a.replace(e.ctrlCharactersRegex,"");return n.replace(e.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function i(a){return URL.canParse(a)}function s(a){try{return decodeURIComponent(a)}catch{return a}}function o(a){if(!a)return e.BLANK_URL;var n,l=s(a.trim());do l=r(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=s(l),n=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(n&&n.length>0);var c=l;if(!c)return e.BLANK_URL;if(t(c))return c;var h=c.trimStart(),u=h.match(e.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(d))return e.BLANK_URL;var f=h.replace(/\\/g,"/");if(d==="mailto:"||d.includes("://"))return f;if(d==="http:"||d==="https:"){if(!i(f))return e.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}return jo}var f_=d_();function Kn(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){const i=e[Symbol.toStringTag];return i==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${i}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function p_(){}function km(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function sc(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const g_="[object RegExp]",wm="[object String]",Sm="[object Number]",Tm="[object Boolean]",_m="[object Arguments]",m_="[object Symbol]",y_="[object Date]",x_="[object Map]",C_="[object Set]",b_="[object Array]",k_="[object ArrayBuffer]",w_="[object Object]",S_="[object DataView]",T_="[object Uint8Array]",__="[object Uint8ClampedArray]",v_="[object Uint16Array]",B_="[object Uint32Array]",L_="[object Int8Array]",A_="[object Int16Array]",E_="[object Int32Array]",F_="[object Float32Array]",M_="[object Float64Array]",Ad=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function oc(e){return typeof Ad.Buffer<"u"&&Ad.Buffer.isBuffer(e)}function $_(e){return Number.isSafeInteger(e)&&e>=0}function vm(e){return e!=null&&typeof e!="function"&&$_(e.length)}function O_(e){return e==="__proto__"}function ac(e){return e==null||typeof e!="object"&&typeof e!="function"}function nc(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function I_(e,t){return Xi(e,void 0,e,new Map,t)}function Xi(e,t,r,i=new Map,s=void 0){const o=s==null?void 0:s(e,t,r,i);if(o!==void 0)return o;if(ac(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]=Xi(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,Xi(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(Xi(n,void 0,r,i,s));return a}if(oc(e))return e.subarray();if(nc(e)){const a=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=Xi(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),Qe(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),Qe(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),Qe(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,Qe(a,e,r,i,s),a}if(e instanceof Boolean){const a=new Boolean(e.valueOf());return i.set(e,a),Qe(a,e,r,i,s),a}if(e instanceof Number){const a=new Number(e.valueOf());return i.set(e,a),Qe(a,e,r,i,s),a}if(e instanceof String){const a=new String(e.valueOf());return i.set(e,a),Qe(a,e,r,i,s),a}if(typeof e=="object"&&D_(e)){const a=Object.create(Object.getPrototypeOf(e));return i.set(e,a),Qe(a,e,r,i,s),a}return e}function Qe(e,t,r=e,i,s){const o=[...Object.keys(t),...km(t)];for(let a=0;a<o.length;a++){const n=o[a],l=Object.getOwnPropertyDescriptor(e,n);(l==null||l.writable)&&(e[n]=Xi(t[n],n,r,i,s))}}function D_(e){switch(sc(e)){case _m:case b_:case k_:case S_:case Tm:case y_:case F_:case M_:case L_:case A_:case E_:case x_:case Sm:case w_:case g_:case C_:case wm:case m_:case T_:case __:case v_:case B_:return!0;default:return!1}}function P_(e,t){return I_(e,(r,i,s,o)=>{if(typeof e=="object"){if(sc(e)==="[object Object]"&&typeof e.constructor!="function"){const a={};return o.set(e,a),Qe(a,e,s,o),a}switch(Object.prototype.toString.call(e)){case Sm:case wm:case Tm:{const a=new e.constructor(e==null?void 0:e.valueOf());return Qe(a,e),a}case _m:{const a={};return Qe(a,e),a.length=e.length,a[Symbol.iterator]=e[Symbol.iterator],a}default:return}}})}function Ed(e){return P_(e)}function nh(e){return e!==null&&typeof e=="object"&&sc(e)==="[object Arguments]"}function lh(e){return typeof e=="object"&&e!==null}function R_(e){return lh(e)&&vm(e)}function ua(e){return nc(e)}function N_(e){const t=e==null?void 0:e.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}function Mo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");const r=function(...i){const s=t?t.apply(this,i):i[0],o=r.cache;if(o.has(s))return o.get(s);const a=e.apply(this,i);return r.cache=o.set(s,a)||o,a};return r.cache=new(Mo.Cache||Map),r}Mo.Cache=Map;function q_(e){if(ac(e))return e;if(Array.isArray(e)||nc(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}return typeof File<"u"&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e=="object"?Object.assign(Object.create(t),e):e}function z_(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=da(s,a,i,new Map)}return s}function da(e,t,r,i){if(ac(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return q_(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let o=0;o<t.length;o++)o in t||(t[o]=void 0)}const s=[...Object.keys(t),...km(t)];for(let o=0;o<s.length;o++){const a=s[o];if(O_(a))continue;let n=t[a],l=e[a];if(nh(n)&&(n={...n}),nh(l)&&(l={...l}),oc(n)&&(n=Ed(n)),Array.isArray(n))if(Array.isArray(l)){const h=[],u=Reflect.ownKeys(l);for(let d=0;d<u.length;d++){const f=u[d];h[f]=l[f]}l=h}else if(R_(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)||lh(l)&&lh(n)&&(Kn(l)||Kn(n)||ua(l)||ua(n))?e[a]=da(l,n,r,i):l==null&&Kn(n)?e[a]=da({},n,r,i):l==null&&ua(n)?e[a]=Ed(n):(l===void 0||n!==void 0)&&(e[a]=n)}return e}function W_(e,...t){return z_(e,...t,p_)}function Fd(e){if(e==null)return!0;if(vm(e))return typeof e.splice!="function"&&typeof e!="string"&&!oc(e)&&!ua(e)&&!nh(e)?!1:e.length===0;if(typeof e=="object"||typeof e=="function"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return N_(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var H_="​",Y_={curveBasis:oh,curveBasisClosed:ET,curveBasisOpen:FT,curveBumpX:Zg,curveBumpY:Qg,curveBundle:MT,curveCardinalClosed:$T,curveCardinalOpen:OT,curveCardinal:rm,curveCatmullRomClosed:IT,curveCatmullRomOpen:DT,curveCatmullRom:sm,curveLinear:no,curveLinearClosed:PT,curveMonotoneX:cm,curveMonotoneY:um,curveNatural:fm,curveStep:pm,curveStepAfter:mm,curveStepBefore:gm},U_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,j_=g(function(e,t){const r=Bm(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const a=r.map(n=>n.args);Ca(a),i=fe(i,[...a])}else i=r.args;if(!i)return;let s=qh(e,t);const o="config";return i[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),i[s]=i[o],delete i[o]),i},"detectInit"),Bm=g(function(e,t=null){var r,i;try{const s=new RegExp(`[%]{2}(?![{]${U_.source})(?=[}][%]{2}).*
142
+ `,"ig");e=e.trim().replace(s,"").replace(/'/gm,'"'),W.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let o;const a=[];for(;(o=ao.exec(e))!==null;)if(o.index===ao.lastIndex&&ao.lastIndex++,o&&!t||t&&((r=o[1])!=null&&r.match(t))||t&&((i=o[2])!=null&&i.match(t))){const n=o[1]?o[1]:o[2],l=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;a.push({type:n,args:l})}return a.length===0?{type:e,args:null}:a.length===1?a[0]:a}catch(s){return W.error(`ERROR: ${s.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),X_=g(function(e){return e.replace(ao,"")},"removeDirectives"),G_=g(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function lc(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Y_[r]??t}g(lc,"interpolateToCurve");function Lm(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?f_.sanitizeUrl(r):r}g(Lm,"formatUrl");var V_=g((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){W.error(`Function name: ${e} not found in window`);return}o[s](...t)},"runFunc");function hc(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}g(hc,"distance");function Am(e){let t,r=0;e.forEach(s=>{r+=hc(s,t),t=s});const i=r/2;return cc(e,i)}g(Am,"traverseEdge");function Em(e){return e.length===1?e[0]:Am(e)}g(Em,"calcLabelPosition");var Md=g((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),cc=g((e,t)=>{let r,i=t;for(const s of e){if(r){const o=hc(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:Md((1-a)*r.x+a*s.x,5),y:Md((1-a)*r.y+a*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),K_=g((e,t,r)=>{W.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=cc(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 Fm(e,t,r){const i=structuredClone(r);W.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const s=25+e,o=cc(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}g(Fm,"calcTerminalLabelPosition");function Mm(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}}g(Mm,"getStylesFromArray");var $d=0,Z_=g(()=>($d++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$d),"generateId");function $m(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}g($m,"makeRandomHex");var Q_=g(e=>$m(e.length),"random"),J_=g(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"),tv=g(function(e,t){const r=t.text.replace(Lo.lineBreakRegex," "),[,i]=en(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"),ev=Mo((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Lo.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),s=[];let o="";return i.forEach((a,n)=>{const l=Dr(`${a} `,r),c=Dr(o,r);if(l>t){const{hyphenatedStrings:d,remainingWord:f}=rv(a,t,"-",r);s.push(o,...d),o=f}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}`),rv=Mo((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(Dr(c,i)>=t){const u=l+1,d=s.length===u,f=`${c}${r}`;o.push(d?c:f),a=""}else a=c}),{hyphenatedStrings:o,remainingWord:a}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Om(e,t){return uc(e,t).height}g(Om,"calculateTextHeight");function Dr(e,t){return uc(e,t).width}g(Dr,"calculateTextWidth");var uc=Mo((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=en(r),a=["sans-serif",i],n=e.split(Lo.lineBreakRegex),l=[],c=Dt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const d of a){let f=0;const p={width:0,height:0,lineHeight:0};for(const y of n){const C=J_();C.text=y||H_;const x=tv(h,C).style("font-size",o).style("font-weight",s).style("font-family",d),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,b.width)),f=Math.round(b.height),p.height+=f,p.lineHeight=Math.round(Math.max(p.lineHeight,f))}l.push(p)}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}`),ds,iv=(ds=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},g(ds,"InitIDGenerator"),ds),Xo,sv=g(function(e){return Xo=Xo||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Xo.innerHTML=e,unescape(Xo.textContent)},"entityDecode");function dc(e){return"str"in e}g(dc,"isDetailedError");var ov=g((e,t,r,i)=>{var o;if(!i)return;const s=(o=e.node())==null?void 0:o.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"),en=g(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 fc(e,t){return W_({},e,t)}g(fc,"cleanAndMerge");var Se={assignWithDepth:fe,wrapLabel:ev,calculateTextHeight:Om,calculateTextWidth:Dr,calculateTextDimensions:uc,cleanAndMerge:fc,detectInit:j_,detectDirective:Bm,isSubstringInArray:G_,interpolateToCurve:lc,calcLabelPosition:Em,calcCardinalityPosition:K_,calcTerminalLabelPosition:Fm,formatUrl:Lm,getStylesFromArray:Mm,generateId:Z_,random:Q_,runFunc:V_,entityDecode:sv,insertTitle:ov,isLabelCoordinateInPath:Im,parseFontSize:en,InitIDGenerator:iv},av=g(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"),ri=g(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),KI=g((e,t,{counter:r=0,prefix:i,suffix:s},o)=>o||`${i?`${i}_`:""}${e}_${t}_${r}${s?`_${s}`:""}`,"getEdgeId");function ce(e){return e??null}g(ce,"handleUndefinedAttr");function Im(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())}g(Im,"isLabelCoordinateInPath");var fa={exports:{}},Od=fa.exports,Id;function nv(){return Id||(Id=1,(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,f;try{r("flushing reads",d.length),h.runTasks(d),r("flushing writes",u.length),h.runTasks(u)}catch(p){f=p}if(h.scheduled=!1,(d.length||u.length)&&o(h),f)if(r("task errored",f.message),h.catch)h.catch(f);else throw f}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 Od<"u"?Od:globalThis)})(fa)),fa.exports}var lv=nv();const hv=Oh(lv);var Zn={exports:{}},Dd;function cv(){return Dd||(Dd=1,(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(f){d(f)}},a)});return n.set(h,c),h}e.exports=t})()})(Zn)),Zn.exports}var uv=cv();const dv=Oh(uv);function pc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ai=pc();function Dm(e){Ai=e}var lo={exec:()=>null};function Vt(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(Ae.caret,"$1"),r=r.replace(s,a),i},getRegex:()=>new RegExp(r,t)};return i}var fv=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ae={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")},pv=/^(?:[ \t]*(?:\n|$))+/,gv=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$o=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,yv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gc=/(?:[*+-]|\d{1,9}[.)])/,Pm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Rm=Vt(Pm).replace(/bull/g,gc).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(),xv=Vt(Pm).replace(/bull/g,gc).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(),mc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Cv=/^[^\n]+/,yc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bv=Vt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),kv=Vt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gc).getRegex(),rn="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",xc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wv=Vt("^ {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",xc).replace("tag",rn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Nm=Vt(mc).replace("hr",$o).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",rn).getRegex(),Sv=Vt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Nm).getRegex(),Cc={blockquote:Sv,code:gv,def:bv,fences:mv,heading:yv,hr:$o,html:wv,lheading:Rm,list:kv,newline:pv,paragraph:Nm,table:lo,text:Cv},Pd=Vt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$o).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",rn).getRegex(),Tv={...Cc,lheading:xv,table:Pd,paragraph:Vt(mc).replace("hr",$o).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pd).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",rn).getRegex()},_v={...Cc,html:Vt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xc).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:lo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Vt(mc).replace("hr",$o).replace("heading",` *#{1,6} *[^
143
+ ]`).replace("lheading",Rm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Bv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qm=/^( {2,}|\\)\n(?!\s*$)/,Lv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,sn=/[\p{P}\p{S}]/u,bc=/[\s\p{P}\p{S}]/u,zm=/[^\s\p{P}\p{S}]/u,Av=Vt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,bc).getRegex(),Wm=/(?!~)[\p{P}\p{S}]/u,Ev=/(?!~)[\s\p{P}\p{S}]/u,Fv=/(?:[^\s\p{P}\p{S}]|~)/u,Mv=Vt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",fv?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Hm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$v=Vt(Hm,"u").replace(/punct/g,sn).getRegex(),Ov=Vt(Hm,"u").replace(/punct/g,Wm).getRegex(),Ym="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Iv=Vt(Ym,"gu").replace(/notPunctSpace/g,zm).replace(/punctSpace/g,bc).replace(/punct/g,sn).getRegex(),Dv=Vt(Ym,"gu").replace(/notPunctSpace/g,Fv).replace(/punctSpace/g,Ev).replace(/punct/g,Wm).getRegex(),Pv=Vt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zm).replace(/punctSpace/g,bc).replace(/punct/g,sn).getRegex(),Rv=Vt(/\\(punct)/,"gu").replace(/punct/g,sn).getRegex(),Nv=Vt(/^<(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(),qv=Vt(xc).replace("(?:-->|$)","-->").getRegex(),zv=Vt("^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",qv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Oa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Wv=Vt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Oa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Um=Vt(/^!?\[(label)\]\[(ref)\]/).replace("label",Oa).replace("ref",yc).getRegex(),jm=Vt(/^!?\[(ref)\](?:\[\])?/).replace("ref",yc).getRegex(),Hv=Vt("reflink|nolink(?!\\()","g").replace("reflink",Um).replace("nolink",jm).getRegex(),Rd=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,kc={_backpedal:lo,anyPunctuation:Rv,autolink:Nv,blockSkip:Mv,br:qm,code:Bv,del:lo,emStrongLDelim:$v,emStrongRDelimAst:Iv,emStrongRDelimUnd:Pv,escape:vv,link:Wv,nolink:jm,punctuation:Av,reflink:Um,reflinkSearch:Hv,tag:zv,text:Lv,url:lo},Yv={...kc,link:Vt(/^!?\[(label)\]\((.*?)\)/).replace("label",Oa).getRegex(),reflink:Vt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Oa).getRegex()},hh={...kc,emStrongRDelimAst:Dv,emStrongLDelim:Ov,url:Vt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Rd).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:Vt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Rd).getRegex()},Uv={...hh,br:Vt(qm).replace("{2,}","*").getRegex(),text:Vt(hh.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Go={normal:Cc,gfm:Tv,pedantic:_v},Ns={normal:kc,gfm:hh,breaks:Uv,pedantic:Yv},jv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Nd=e=>jv[e];function hr(e,t){if(t){if(Ae.escapeTest.test(e))return e.replace(Ae.escapeReplace,Nd)}else if(Ae.escapeTestNoEncode.test(e))return e.replace(Ae.escapeReplaceNoEncode,Nd);return e}function qd(e){try{e=encodeURI(e).replace(Ae.percentDecode,"%")}catch{return null}return e}function zd(e,t){var o;let r=e.replace(Ae.findPipe,(a,n,l)=>{let c=!1,h=n;for(;--h>=0&&l[h]==="\\";)c=!c;return c?"|":" |"}),i=r.split(Ae.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((o=i.at(-1))!=null&&o.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(Ae.slashPipe,"|");return i}function qs(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 Xv(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 Wd(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 Gv(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
144
+ `).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(`
145
+ `)}var Ia=class{constructor(t){Jt(this,"options");Jt(this,"rules");Jt(this,"lexer");this.options=t||Ai}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:qs(i,`
146
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=Gv(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=qs(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:qs(r[0],`
147
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=qs(r[0],`
148
+ `).split(`
149
+ `),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(`
150
+ `),u=h.replace(this.rules.other.blockquoteSetextReplace,`
151
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
152
+ ${h}`:h,o=o?`${o}
153
+ ${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 f=a.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let p=f,y=p.raw+`
154
+ `+i.join(`
155
+ `),C=this.blockquote(y);a[a.length-1]=C,s=s.substring(0,s.length-p.raw.length)+C.raw,o=o.substring(0,o.length-p.text.length)+C.text;break}else if((f==null?void 0:f.type)==="list"){let p=f,y=p.raw+`
156
+ `+i.join(`
157
+ `),C=this.list(y);a[a.length-1]=C,s=s.substring(0,s.length-f.raw.length)+C.raw,o=o.substring(0,o.length-p.raw.length)+C.raw,i=y.substring(a.at(-1).raw.length).split(`
158
+ `);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(`
159
+ `,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),f=t.split(`
160
+ `,1)[0],p=!d.trim(),y=0;if(this.options.pedantic?(y=2,u=d.trimStart()):p?y=r[1].length+1:(y=r[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,u=d.slice(y),y+=r[1].length),p&&this.rules.other.blankLine.test(f)&&(h+=f+`
161
+ `,t=t.substring(f.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(y),k=this.rules.other.hrRegex(y),T=this.rules.other.fencesBeginRegex(y),v=this.rules.other.headingBeginRegex(y),E=this.rules.other.htmlBeginRegex(y);for(;t;){let L=t.split(`
162
+ `,1)[0],A;if(f=L,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),A=f):A=f.replace(this.rules.other.tabCharGlobal," "),T.test(f)||v.test(f)||E.test(f)||b.test(f)||k.test(f))break;if(A.search(this.rules.other.nonSpaceChar)>=y||!f.trim())u+=`
163
+ `+A.slice(y);else{if(p||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(d)||v.test(d)||k.test(d))break;u+=`
164
+ `+f}!p&&!f.trim()&&(p=!0),h+=L+`
165
+ `,t=t.substring(L.length+1),d=A.slice(y)}}o.loose||(n?o.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(n=!0));let C=null,x;this.options.gfm&&(C=this.rules.other.listIsTask.exec(u),C&&(x=C[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:h,task:!!C,checked:x,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){var n;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=zd(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(n=r[3])!=null&&n.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
166
+ `):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<i.length;l++)a.header.push({text:i[l],tokens:this.lexer.inline(i[l]),header:!0,align:a.align[l]});for(let l of o)a.rows.push(zd(l,a.header.length).map((c,h)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:a.align[h]})));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)===`
167
+ `?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=qs(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=Xv(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)),Wd(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 Wd(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 p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}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){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,o;if(r[2]==="@")s=r[0],o="mailto:"+s;else{let a;do a=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(a!==r[0]);s=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}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}}}},Je=class ch{constructor(t){Jt(this,"tokens");Jt(this,"options");Jt(this,"state");Jt(this,"tokenizer");Jt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ai,this.options.tokenizer=this.options.tokenizer||new Ia,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:Ae,block:Go.normal,inline:Ns.normal};this.options.pedantic?(r.block=Go.pedantic,r.inline=Ns.pedantic):this.options.gfm&&(r.block=Go.gfm,this.options.breaks?r.inline=Ns.breaks:r.inline=Ns.gfm),this.tokenizer.rules=r}static get rules(){return{block:Go,inline:Ns}}static lex(t,r){return new ch(r).lex(t)}static lexInline(t,r){return new ch(r).inlineTokens(t)}lex(t){t=t.replace(Ae.carriageReturn,`
168
+ `),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){var s,o,a;for(this.options.pedantic&&(t=t.replace(Ae.tabCharGlobal," ").replace(Ae.spaceLine,""));t;){let n;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(c=>(n=c.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let c=r.at(-1);n.raw.length===1&&c!==void 0?c.raw+=`
169
+ `:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
170
+ `)?"":`
171
+ `)+n.raw,c.text+=`
172
+ `+n.text,this.inlineQueue.at(-1).src=c.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
173
+ `)?"":`
174
+ `)+n.raw,c.text+=`
175
+ `+n.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}let l=t;if((a=this.options.extensions)!=null&&a.startBlock){let c=1/0,h=t.slice(1),u;this.options.extensions.startBlock.forEach(d=>{u=d.call({lexer:this},h),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(n=this.tokenizer.paragraph(l))){let c=r.at(-1);i&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
176
+ `)?"":`
177
+ `)+n.raw,c.text+=`
178
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(n),i=l.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
179
+ `)?"":`
180
+ `)+n.raw,c.text+=`
181
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(n);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,c,h,u,d;let i=t,s=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)f.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=((c=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:c.call({lexer:this},i))??i;let a=!1,n="";for(;t;){a||(n=""),a=!1;let f;if((u=(h=this.options.extensions)==null?void 0:h.inline)!=null&&u.some(y=>(f=y.call({lexer:this},t,r))?(t=t.substring(f.raw.length),r.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let y=r.at(-1);f.type==="text"&&(y==null?void 0:y.type)==="text"?(y.raw+=f.raw,y.text+=f.text):r.push(f);continue}if(f=this.tokenizer.emStrong(t,i,n)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),r.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),r.push(f);continue}let p=t;if((d=this.options.extensions)!=null&&d.startInline){let y=1/0,C=t.slice(1),x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},C),typeof x=="number"&&x>=0&&(y=Math.min(y,x))}),y<1/0&&y>=0&&(p=t.substring(0,y+1))}if(f=this.tokenizer.inlineText(p)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(n=f.raw.slice(-1)),a=!0;let y=r.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=f.raw,y.text+=f.text):r.push(f);continue}if(t){let y="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return r}},Da=class{constructor(t){Jt(this,"options");Jt(this,"parser");this.options=t||Ai}space(t){return""}code({text:t,lang:r,escaped:i}){var a;let s=(a=(r||"").match(Ae.notSpaceStart))==null?void 0:a[0],o=t.replace(Ae.endingNewline,"")+`
182
+ `;return s?'<pre><code class="language-'+hr(s)+'">'+(i?o:hr(o,!0))+`</code></pre>
183
+ `:"<pre><code>"+(i?o:hr(o,!0))+`</code></pre>
184
+ `}blockquote({tokens:t}){return`<blockquote>
185
+ ${this.parser.parse(t)}</blockquote>
186
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
187
+ `}hr(t){return`<hr>
188
+ `}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+`>
189
+ `+s+"</"+o+`>
190
+ `}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+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=s+" "+hr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
191
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
192
+ `}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>
193
+ <thead>
194
+ `+r+`</thead>
195
+ `+s+`</table>
196
+ `}tablerow({text:t}){return`<tr>
197
+ ${t}</tr>
198
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
199
+ `}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>${hr(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=qd(t);if(o===null)return s;t=o;let a='<a href="'+t+'"';return r&&(a+=' title="'+hr(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=qd(t);if(o===null)return hr(i);t=o;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${hr(r)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:hr(t.text)}},wc=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""}},tr=class uh{constructor(t){Jt(this,"options");Jt(this,"renderer");Jt(this,"textRenderer");this.options=t||Ai,this.options.renderer=this.options.renderer||new Da,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new wc}static parse(t,r){return new uh(r).parse(t)}static parseInline(t,r){return new uh(r).parseInline(t)}parse(t,r=!0){var s,o;let i="";for(let a=0;a<t.length;a++){let n=t[a];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[n.type]){let c=n,h=this.options.extensions.renderers[c.type].call({parser:this},c);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=h||"";continue}}let l=n;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"def":{i+=this.renderer.def(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let c=l,h=this.renderer.text(c);for(;a+1<t.length&&t[a+1].type==="text";)c=t[++a],h+=`
200
+ `+this.renderer.text(c);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}parseInline(t,r=this.renderer){var s,o;let i="";for(let a=0;a<t.length;a++){let n=t[a];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[n.type]){let c=this.options.extensions.renderers[n.type].call({parser:this},n);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=c||"";continue}}let l=n;switch(l.type){case"escape":{i+=r.text(l);break}case"html":{i+=r.html(l);break}case"link":{i+=r.link(l);break}case"image":{i+=r.image(l);break}case"strong":{i+=r.strong(l);break}case"em":{i+=r.em(l);break}case"codespan":{i+=r.codespan(l);break}case"br":{i+=r.br(l);break}case"del":{i+=r.del(l);break}case"text":{i+=r.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}},sa,Zs=(sa=class{constructor(t){Jt(this,"options");Jt(this,"block");this.options=t||Ai}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Je.lex:Je.lexInline}provideParser(){return this.block?tr.parse:tr.parseInline}},Jt(sa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Jt(sa,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),sa),Vv=class{constructor(...t){Jt(this,"defaults",pc());Jt(this,"options",this.setOptions);Jt(this,"parse",this.parseMarkdown(!0));Jt(this,"parseInline",this.parseMarkdown(!1));Jt(this,"Parser",tr);Jt(this,"Renderer",Da);Jt(this,"TextRenderer",wc);Jt(this,"Lexer",Je);Jt(this,"Tokenizer",Ia);Jt(this,"Hooks",Zs);this.use(...t)}walkTokens(t,r){var s,o;let i=[];for(let a of t)switch(i=i.concat(r.call(this,a)),a.type){case"table":{let n=a;for(let l of n.header)i=i.concat(this.walkTokens(l.tokens,r));for(let l of n.rows)for(let c of l)i=i.concat(this.walkTokens(c.tokens,r));break}case"list":{let n=a;i=i.concat(this.walkTokens(n.items,r));break}default:{let n=a;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[n.type]?this.defaults.extensions.childTokens[n.type].forEach(l=>{let c=n[l].flat(1/0);i=i.concat(this.walkTokens(c,r))}):n.tokens&&(i=i.concat(this.walkTokens(n.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 Da(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 Ia(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 Zs;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];Zs.passThroughHooks.has(a)?o[n]=h=>{if(this.defaults.async&&Zs.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 Je.lex(t,r??this.defaults)}parser(t,r){return tr.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?Je.lex:Je.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?tr.parse:tr.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?Je.lex:Je.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?tr.parse:tr.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+=`
201
+ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+hr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Si=new Vv;function Zt(e,t){return Si.parse(e,t)}Zt.options=Zt.setOptions=function(e){return Si.setOptions(e),Zt.defaults=Si.defaults,Dm(Zt.defaults),Zt};Zt.getDefaults=pc;Zt.defaults=Ai;Zt.use=function(...e){return Si.use(...e),Zt.defaults=Si.defaults,Dm(Zt.defaults),Zt};Zt.walkTokens=function(e,t){return Si.walkTokens(e,t)};Zt.parseInline=Si.parseInline;Zt.Parser=tr;Zt.parser=tr.parse;Zt.Renderer=Da;Zt.TextRenderer=wc;Zt.Lexer=Je;Zt.lexer=Je.lex;Zt.Tokenizer=Ia;Zt.Hooks=Zs;Zt.parse=Zt;Zt.options;Zt.setOptions;Zt.use;Zt.walkTokens;Zt.parseInline;tr.parse;Je.lex;function Xm(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(`
202
+ [ ]{`.concat(Math.min.apply(Math,s),"}"),"g");i=i.map(function(n){return n.replace(o,`
203
+ `)})}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(`
204
+ `)&&(u=String(n).split(`
205
+ `).map(function(d,f){return f===0?d:"".concat(h).concat(d)}).join(`
206
+ `)),a+=u+i[l+1]}),a}var dh=typeof performance<"u"&&typeof performance.now=="function",Ni=g(()=>dh?performance.now():0,"now"),Qn="🧜 ",Kv="Mermaid render",Zv="Mermaid",Qv={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},fs;fs=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=Ni();try{return r()}finally{this.buckets[t]=(this.buckets[t]??0)+(Ni()-i)}}async tick(t,r){if(!this.enabled)return r();const i=Ni();try{return await r()}finally{this.buckets[t]=(this.buckets[t]??0)+(Ni()-i)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const t=this.roots.at(-1),r=this.runLabel??(t==null?void 0: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:Ni(),duration:-1,children:[]},i=this.stack.at(-1);if(i?i.children.push(r):this.roots.push(r),this.stack.push(r),dh&&typeof performance.mark=="function")try{performance.mark(`${Qn}${t} ▶`)}catch{}}end(){if(!this.enabled)return;const t=this.stack.pop();if(!t)return;const r=Ni();if(t.duration=r-t.start,dh&&typeof performance.measure=="function")try{performance.measure(`${Qn}${t.name}`,{start:t.start,end:r,detail:{devtools:{dataType:"track-entry",track:Kv,trackGroup:Zv,color:Qv[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(){var t;return((t=this.records.at(-1))==null?void 0:t.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=g((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 f of l.children)a(f,c+1);if(l.children.length>0){const f=l.children.reduce((y,C)=>y+C.duration,0),p=l.duration-f;if(p>.5){const y=p.toFixed(1).padStart(8);o.push(`${y} ${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(`${Qn}mermaid render profile · ${s}
207
+ ${o.join(`
208
+ `)}`)}},g(fs,"Profiler");globalThis.injected??(globalThis.injected={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"});var Jv=hv.extend({raf(e){typeof queueMicrotask=="function"?queueMicrotask(e):setTimeout(e,0)}}).extend(dv),Ti=Jv;function Gm(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
209
+ `).replace(/\n{2,}/g,`
210
+ `);return Xm(i)}g(Gm,"preprocessMarkdown");function Vm(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}g(Vm,"nonMarkdownToLines");function Km(e,t={}){const r=Gm(e,t),i=Zt.lexer(r),s=[[]];let o=0;function a(n,l="normal"){n.type==="text"?n.text.split(`
211
+ `).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 g(a,"processNode"),i.forEach(n=>{var l;n.type==="paragraph"?(l=n.tokens)==null||l.forEach(c=>{a(c)}):n.type==="html"?s[o].push({content:n.text,type:"normal"}):s[o].push({content:n.raw,type:"normal"})}),s}g(Km,"markdownToLines");function Zm(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}g(Zm,"nonMarkdownToHTML");function Qm(e,{markdownAutoWrap:t}={}){const r=Zt.lexer(e);function i(s){var o,a,n;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>${(o=s.tokens)==null?void 0:o.map(i).join("")}</strong>`:s.type==="em"?`<em>${(a=s.tokens)==null?void 0:a.map(i).join("")}</em>`:s.type==="paragraph"?`<p>${(n=s.tokens)==null?void 0:n.map(i).join("")}</p>`:s.type==="space"?"":s.type==="html"?`${s.text}`:s.type==="escape"?s.text:(W.warn(`Unsupported markdown: ${s.type}`),s.raw)}return g(i,"output"),r.map(i).join("")}g(Qm,"markdownToHTML");function Jm(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}g(Jm,"splitTextToChars");function ty(e,t){const r=Jm(t.content);return Sc(e,[],r,t.type)}g(ty,"splitWordToFitWidth");function Sc(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}])?Sc(e,a,o,i):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}g(Sc,"splitWordToFitWidthRecursion");function ey(e,t){if(e.some(({content:r})=>r.includes(`
212
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Pa(e,t)}g(ey,"splitLineToFitWidth");function Pa(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 Pa(e,t,r,a);if(i.length>0)r.push(i),e.unshift(o);else if(o.content){const[n,l]=ty(t,o);r.push([n]),l.content&&e.unshift(l)}return Pa(e,t,r)}g(Pa,"splitLineToFitWidthRecursion");function fh(e,t){t&&e.attr("style",t)}g(fh,"applyStyle");var Hd=16384;async function ry(e,t,r,i,s=!1,o=re()){const a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,Hd)}px`),a.attr("height",`${Math.min(10*r,Hd)}px`);const n=a.append("xhtml:div"),l=fo(t.label)?await Cg(t.label.replace(Lo.lineBreakRegex,`
213
+ `),o):je(t.label,o),c=t.isNode?"nodeLabel":"edgeLabel",h=n.append("span");return h.html(l),fh(h,t.labelStyle),h.attr("class",`${c} ${i}`),fh(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 Ti.measure(()=>n.node().getBoundingClientRect())).width===r&&(n.style("display","table"),n.style("white-space","break-spaces"),n.style("width",r+"px")),a.node()}g(ry,"addHtmlSpan");function on(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}g(on,"createTspan");function iy(e,t,r){const i=e.append("text"),s=on(i,1,t);an(s,r);const o=s.node().getComputedTextLength();return i.remove(),o}g(iy,"computeWidthOfText");function tB(e,t,r){var a;const i=e.append("text"),s=on(i,1,t);an(s,[{content:r,type:"normal"}]);const o=(a=s.node())==null?void 0:a.getBoundingClientRect();return o&&i.remove(),o}g(tB,"computeDimensionOfText");function sy(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=g(f=>iy(a,1.1,f)<=e,"checkWidth"),d=u(h)?[h]:ey(h,u);for(const f of d){const p=on(l,c,1.1,s);an(p,f),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()}g(sy,"createFormattedText");function ph(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}})}g(ph,"decodeHTMLEntities");function an(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(ph(r.content)):s.text(" "+ph(r.content))})}g(an,"updateTextContentAndStyles");async function oy(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,o,a)=>(r.push((async()=>{const n=`${o}:${a}`;return await c_(n)?await Fo(n,void 0,{class:"label-icon"}):`<i class='${je(s,t).replace(":"," ")}'></i>`})()),s));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}g(oy,"replaceIconSubstring");var or=g(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(W.debug("XYZ createText",t,r,i,s,o,n,"addSvgBackground: ",c),o){const u=a?Qm(t,h):Zm(t),d=await oy(ri(u),h),f=t.replace(/\\\\/g,"\\"),p={isNode:n,label:fo(t)?f:d,labelStyle:r.replace("fill:","color:")};return await ry(e,p,l,s,c,h)}else{const u=ri(t.replace(/<br\s*\/?>/g,"<br/>")),d=a?Km(u.replace("<br>","<br/>"),h):Vm(u),f=sy(l,e,d,t?c:!1,!n);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Dt(f).attr("style",p)}else{const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Dt(f).select("rect").attr("style",p.replace(/background:/g,"fill:"));const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Dt(f).select("text").attr("style",y)}return i?Dt(f).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Dt(f).selectAll("tspan.text-outer-tspan").classed("row",!0),f}},"createText");function Jn(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 eB(e,t){return e[0]===t[0]&&e[1]===t[1]}function rB(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)Jn(c,n,s);const l=(function(c,h,u){const d=[];for(const b of c){const k=[...b];eB(k[0],k[k.length-1])||k.push([k[0][0],k[0][1]]),k.length>2&&d.push(k)}const f=[];h=Math.max(h,.1);const p=[];for(const b of d)for(let k=0;k<b.length-1;k++){const T=b[k],v=b[k+1];if(T[1]!==v[1]){const E=Math.min(T[1],v[1]);p.push({ymin:E,ymax:Math.max(T[1],v[1]),x:E===T[1]?T[0]:v[0],islope:(v[0]-T[0])/(v[1]-T[1])})}}if(p.sort(((b,k)=>b.ymin<k.ymin?-1:b.ymin>k.ymin?1:b.x<k.x?-1:b.x>k.x?1:b.ymax===k.ymax?0:(b.ymax-k.ymax)/Math.abs(b.ymax-k.ymax))),!p.length)return f;let y=[],C=p[0].ymin,x=0;for(;y.length||p.length;){if(p.length){let b=-1;for(let k=0;k<p.length&&!(p[k].ymin>C);k++)b=k;p.splice(0,b+1).forEach((k=>{y.push({s:C,edge:k})}))}if(y=y.filter((b=>!(b.edge.ymax<=C))),y.sort(((b,k)=>b.edge.x===k.edge.x?0:(b.edge.x-k.edge.x)/Math.abs(b.edge.x-k.edge.x))),(u!==1||x%h==0)&&y.length>1)for(let b=0;b<y.length;b+=2){const k=b+1;if(k>=y.length)break;const T=y[b].edge,v=y[k].edge;f.push([[Math.round(T.x),C],[Math.round(v.x),C]])}C+=u,y.forEach((b=>{b.edge.x=b.edge.x+u*b.edge.islope})),x++}return f})(a,o,i);if(s){for(const c of a)Jn(c,n,-s);(function(c,h,u){const d=[];c.forEach((f=>d.push(...f))),Jn(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),rB(e,s,i,o||1)}class Tc{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 nn(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 iB extends Tc{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)nn([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 sB extends Tc{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 oB{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=nn(n),c=l/s,h=Math.ceil(c)-1,u=l-h*s,d=(n[0][0]+n[1][0])/2-s/4,f=Math.min(n[0][1],n[1][1]);for(let p=0;p<h;p++){const y=f+u+p*s,C=d-a+2*Math.random()*a,x=y-a+2*Math.random()*a,b=this.helper.ellipse(C,x,o,o,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class aB{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=nn(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 f=0;f<l;f++){const p=f*(i+s),y=p+i,C=[h[0]+p*Math.cos(d)+c*Math.cos(d),h[1]+p*Math.sin(d)+c*Math.sin(d)],x=[h[0]+y*Math.cos(d)+c*Math.cos(d),h[1]+y*Math.sin(d)+c*Math.sin(d)];o.push(...this.helper.doubleLineOps(C[0],C[1],x[0],x[1],r))}})),o}}class nB{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=nn(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,f=2*(u+1)*r,p=Math.sqrt(2*Math.pow(r,2)),y=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],C=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],x=[y[0]+p*Math.cos(h+Math.PI/4),y[1]+p*Math.sin(h+Math.PI/4)];s.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],i),...this.helper.doubleLineOps(x[0],x[1],C[0],C[1],i))}})),s}}const Me={};class lB{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const hB=0,tl=1,Yd=2,Vo={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 el(e,t){return e.type===t}function _c(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:hB,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:tl,text:`${parseFloat(RegExp.$1)}`},a=a.substr(RegExp.$1.length)}return n[n.length]={type:Yd,text:""},n})(e);let i="BOD",s=0,o=r[s];for(;!el(o,Yd);){let a=0;const n=[];if(i==="BOD"){if(o.text!=="M"&&o.text!=="m")return _c("M0,0"+e);s++,a=Vo[o.text],i=o.text}else el(o,tl)?a=Vo[i]:(s++,a=Vo[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(!el(c,tl))throw new Error("Param not a number: "+i+","+c.text);n[n.length]=+c.text}if(typeof Vo[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 ay(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 ny(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 f=0,p=0;r==="Q"||r==="T"?(f=i+(i-n),p=s+(s-l)):(f=i,p=s);const y=i+2*(f-i)/3,C=s+2*(p-s)/3,x=u+2*(f-u)/3,b=d+2*(p-d)/3;t.push({key:"C",data:[y,C,x,b,u,d]}),n=f,l=p,i=u,s=d;break}case"Q":{const[u,d,f,p]=h,y=i+2*(u-i)/3,C=s+2*(d-s)/3,x=f+2*(u-f)/3,b=p+2*(d-p)/3;t.push({key:"C",data:[y,C,x,b,f,p]}),n=u,l=d,i=f,s=p;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),f=h[2],p=h[3],y=h[4],C=h[5],x=h[6];u===0||d===0?(t.push({key:"C",data:[i,s,C,x,C,x]}),i=C,s=x):(i!==C||s!==x)&&(ly(i,s,C,x,u,d,f,p,y).forEach((function(b){t.push({key:"C",data:b})})),i=C,s=x);break}case"Z":t.push({key:"Z",data:[]}),i=o,s=a}r=c}return t}function zs(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function ly(e,t,r,i,s,o,a,n,l,c){const h=(u=a,Math.PI*u/180);var u;let d=[],f=0,p=0,y=0,C=0;if(c)[f,p,y,C]=c;else{[e,t]=zs(e,t,-h),[r,i]=zs(r,i,-h);const U=(e-r)/2,O=(t-i)/2;let $=U*U/(s*s)+O*O/(o*o);$>1&&($=Math.sqrt($),s*=$,o*=$);const B=s*s,N=o*o,F=B*N-B*O*O-N*U*U,D=B*O*O+N*U*U,K=(n===l?-1:1)*Math.sqrt(Math.abs(F/D));y=K*s*O/o+(e+r)/2,C=K*-o*U/s+(t+i)/2,f=Math.asin(parseFloat(((t-C)/o).toFixed(9))),p=Math.asin(parseFloat(((i-C)/o).toFixed(9))),e<y&&(f=Math.PI-f),r<y&&(p=Math.PI-p),f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),l&&f>p&&(f-=2*Math.PI),!l&&p>f&&(p-=2*Math.PI)}let x=p-f;if(Math.abs(x)>120*Math.PI/180){const U=p,O=r,$=i;p=l&&p>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,d=ly(r=y+s*Math.cos(p),i=C+o*Math.sin(p),O,$,s,o,a,0,l,[p,U,y,C])}x=p-f;const b=Math.cos(f),k=Math.sin(f),T=Math.cos(p),v=Math.sin(p),E=Math.tan(x/4),L=4/3*s*E,A=4/3*o*E,H=[e,t],q=[e+L*k,t-A*b],R=[r+L*v,i-A*T],ot=[r,i];if(q[0]=2*H[0]-q[0],q[1]=2*H[1]-q[1],c)return[q,R,ot].concat(d);{d=[q,R,ot].concat(d);const U=[];for(let O=0;O<d.length;O+=3){const $=zs(d[O][0],d[O][1],h),B=zs(d[O+1][0],d[O+1][1],h),N=zs(d[O+2][0],d[O+2][1],h);U.push([$[0],$[1],B[0],B[1],N[0],N[1]])}return U}}const cB={randOffset:function(e,t){return Mt(e,t)},randOffsetWithRange:function(e,t,r){return Ra(e,t,r)},ellipse:function(e,t,r,i,s){const o=cy(r,i,s);return gh(e,t,s,o).opset},doubleLineOps:function(e,t,r,i,s){return ii(e,t,r,i,s,!0)}};function hy(e,t,r,i,s){return{type:"path",ops:ii(e,t,r,i,s)}}function pa(e,t,r){const i=(e||[]).length;if(i>2){const s=[];for(let o=0;o<i-1;o++)s.push(...ii(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&s.push(...ii(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:s}}return i===2?hy(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function uB(e,t,r,i,s){return(function(o,a){return pa(o,!0,a)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],s)}function Ud(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Ko(r[0],1*(1+.2*t.roughness),t),s=t.disableMultiStroke?[]:Ko(r[0],1.5*(1+.22*t.roughness),Gd(t));for(let o=1;o<r.length;o++){const a=r[o];if(a.length){const n=Ko(a,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:Ko(a,1.5*(1+.22*t.roughness),Gd(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 cy(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+=Mt(a*l,r),n+=Mt(n*l,r),{increment:o,rx:a,ry:n}}function gh(e,t,r,i){const[s,o]=Vd(i.increment,e,t,i.rx,i.ry,1,i.increment*Ra(.1,Ra(.4,1,r),r),r);let a=Na(s,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[n]=Vd(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=Na(n,null,r);a=a.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function jd(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+=Mt(.01*u,l),d+=Mt(.01*d,l);let f=s,p=o;for(;f<0;)f+=2*Math.PI,p+=2*Math.PI;p-f>2*Math.PI&&(f=0,p=2*Math.PI);const y=2*Math.PI/l.curveStepCount,C=Math.min(y/2,(p-f)/2),x=Kd(C,c,h,u,d,f,p,1,l);if(!l.disableMultiStroke){const b=Kd(C,c,h,u,d,f,p,1.5,l);x.push(...b)}return a&&(n?x.push(...ii(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),...ii(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l)):x.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:x}}function Xd(e,t){const r=ny(ay(_c(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(...ii(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]];break;case"C":{const[l,c,h,u,d,f]=n;i.push(...dB(l,c,h,u,d,f,o,t)),o=[d,f];break}case"Z":i.push(...ii(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]]}return{type:"path",ops:i}}function rl(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]+Mt(s,t),i[0][1]+Mt(s,t)]});for(let a=1;a<o;a++)r.push({op:"lineTo",data:[i[a][0]+Mt(s,t),i[a][1]+Mt(s,t)]})}}return{type:"fillPath",ops:r}}function qi(e,t){return(function(r,i){let s=r.fillStyle||"hachure";if(!Me[s])switch(s){case"zigzag":Me[s]||(Me[s]=new iB(i));break;case"cross-hatch":Me[s]||(Me[s]=new sB(i));break;case"dots":Me[s]||(Me[s]=new oB(i));break;case"dashed":Me[s]||(Me[s]=new aB(i));break;case"zigzag-line":Me[s]||(Me[s]=new nB(i));break;default:s="hachure",Me[s]||(Me[s]=new Tc(i))}return Me[s]})(t,cB).fillPolygons(e,t)}function Gd(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function uy(e){return e.randomizer||(e.randomizer=new lB(e.seed||0)),e.randomizer.next()}function Ra(e,t,r,i=1){return r.roughness*i*(uy(r)*(t-e)+e)}function Mt(e,t,r=1){return Ra(-e,e,t,r)}function ii(e,t,r,i,s,o=!1){const a=o?s.disableMultiStrokeFill:s.disableMultiStroke,n=mh(e,t,r,i,s,!0,!1);if(a)return n;const l=mh(e,t,r,i,s,!0,!0);return n.concat(l)}function mh(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*uy(s);let f=s.bowing*s.maxRandomnessOffset*(i-t)/200,p=s.bowing*s.maxRandomnessOffset*(e-r)/200;f=Mt(f,s,c),p=Mt(p,s,c);const y=[],C=()=>Mt(u,s,c),x=()=>Mt(h,s,c),b=s.preserveVertices;return a?y.push({op:"move",data:[e+(b?0:C()),t+(b?0:C())]}):y.push({op:"move",data:[e+(b?0:Mt(h,s,c)),t+(b?0:Mt(h,s,c))]}),a?y.push({op:"bcurveTo",data:[f+e+(r-e)*d+C(),p+t+(i-t)*d+C(),f+e+2*(r-e)*d+C(),p+t+2*(i-t)*d+C(),r+(b?0:C()),i+(b?0:C())]}):y.push({op:"bcurveTo",data:[f+e+(r-e)*d+x(),p+t+(i-t)*d+x(),f+e+2*(r-e)*d+x(),p+t+2*(i-t)*d+x(),r+(b?0:x()),i+(b?0:x())]}),y}function Ko(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+Mt(t,r),e[0][1]+Mt(t,r)]),i.push([e[0][0]+Mt(t,r),e[0][1]+Mt(t,r)]);for(let s=1;s<e.length;s++)i.push([e[s][0]+Mt(t,r),e[s][1]+Mt(t,r)]),s===e.length-1&&i.push([e[s][0]+Mt(t,r),e[s][1]+Mt(t,r)]);return Na(i,null,r)}function Na(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(...mh(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return s}function Vd(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=Mt(.5,n)-Math.PI/2;c.push([Mt(o,n)+t+.9*i*Math.cos(h-e),Mt(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 f=[Mt(o,n)+t+i*Math.cos(d),Mt(o,n)+r+s*Math.sin(d)];l.push(f),c.push(f)}c.push([Mt(o,n)+t+i*Math.cos(h+2*Math.PI+.5*a),Mt(o,n)+r+s*Math.sin(h+2*Math.PI+.5*a)]),c.push([Mt(o,n)+t+.98*i*Math.cos(h+a),Mt(o,n)+r+.98*s*Math.sin(h+a)]),c.push([Mt(o,n)+t+.9*i*Math.cos(h+.5*a),Mt(o,n)+r+.9*s*Math.sin(h+.5*a)])}return[c,l]}function Kd(e,t,r,i,s,o,a,n,l){const c=o+Mt(.1,l),h=[];h.push([Mt(n,l)+t+.9*i*Math.cos(c-e),Mt(n,l)+r+.9*s*Math.sin(c-e)]);for(let u=c;u<=a;u+=e)h.push([Mt(n,l)+t+i*Math.cos(u),Mt(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)]),Na(h,null,l)}function dB(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 f=0;f<u;f++)f===0?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:Mt(c[0],n)),a[1]+(d?0:Mt(c[0],n))]}),h=d?[s,o]:[s+Mt(c[f],n),o+Mt(c[f],n)],l.push({op:"bcurveTo",data:[e+Mt(c[f],n),t+Mt(c[f],n),r+Mt(c[f],n),i+Mt(c[f],n),h[0],h[1]]});return l}function Ws(e){return[...e]}function Zd(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(Ws(e[0]),Ws(e[1]),Ws(e[2]),Ws(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(Ws(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 ga(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function fB(e,t,r){const i=ga(t,r);if(i===0)return ga(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)),ga(e,ui(t,r,s))}function ui(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function yh(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 f=3*h[0]-2*c[0]-d[0];f*=f;let p=3*h[1]-2*c[1]-d[1];p*=p;let y=3*u[0]-2*d[0]-c[0];y*=y;let C=3*u[1]-2*d[1]-c[1];return C*=C,f<y&&(f=y),p<C&&(p=C),f+p})(e,t)<r){const n=e[t+0];s.length?(o=s[s.length-1],a=n,Math.sqrt(ga(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=ui(l,c,.5),f=ui(c,h,.5),p=ui(h,u,.5),y=ui(d,f,.5),C=ui(f,p,.5),x=ui(y,C,.5);yh([l,d,y,x],0,r,s),yh([x,C,p,u],0,r,s)}var o,a;return s}function pB(e,t){return qa(e,0,e.length,t)}function qa(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=fB(e[h],a,n);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(qa(e,t,c+1,i,o),qa(e,c,r,i,o)):(o.length||o.push(a),o.push(n)),o}function il(e,t=.15,r){const i=[],s=(e.length-1)/3;for(let o=0;o<s;o++)yh(e,3*o,t,i);return r&&r>0?qa(i,0,i.length,r):i}const Re="none";class za{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",[hy(t,r,i,s,a)],a)}rectangle(t,r,i,s,o){const a=this._o(o),n=[],l=uB(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(rl([c],a)):n.push(qi([c],a))}return a.stroke!==Re&&n.push(l),this._d("rectangle",n,a)}ellipse(t,r,i,s,o){const a=this._o(o),n=[],l=cy(i,s,a),c=gh(t,r,a,l);if(a.fill)if(a.fillStyle==="solid"){const h=gh(t,r,a,l).opset;h.type="fillPath",n.push(h)}else n.push(qi([c.estimatedPoints],a));return a.stroke!==Re&&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",[pa(t,!1,i)],i)}arc(t,r,i,s,o,a,n=!1,l){const c=this._o(l),h=[],u=jd(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 f=jd(t,r,i,s,o,a,!0,!1,d);f.type="fillPath",h.push(f)}else h.push((function(d,f,p,y,C,x,b){const k=d,T=f;let v=Math.abs(p/2),E=Math.abs(y/2);v+=Mt(.01*v,b),E+=Mt(.01*E,b);let L=C,A=x;for(;L<0;)L+=2*Math.PI,A+=2*Math.PI;A-L>2*Math.PI&&(L=0,A=2*Math.PI);const H=(A-L)/b.curveStepCount,q=[];for(let R=L;R<=A;R+=H)q.push([k+v*Math.cos(R),T+E*Math.sin(R)]);return q.push([k+v*Math.cos(A),T+E*Math.sin(A)]),q.push([k,T]),qi([q],b)})(t,r,i,s,o,a,c));return c.stroke!==Re&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),s=[],o=Ud(t,i);if(i.fill&&i.fill!==Re)if(i.fillStyle==="solid"){const a=Ud(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(...il(Zd([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):a.push(...il(Zd(c),10,(1+i.roughness)/2))}a.length&&s.push(qi([a],i))}return i.stroke!==Re&&s.push(o),this._d("curve",s,i)}polygon(t,r){const i=this._o(r),s=[],o=pa(t,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(rl([t],i)):s.push(qi([t],i))),i.stroke!==Re&&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!==Re,a=i.stroke!==Re,n=!!(i.simplification&&i.simplification<1),l=(function(h,u,d){const f=ny(ay(_c(h))),p=[];let y=[],C=[0,0],x=[];const b=()=>{x.length>=4&&y.push(...il(x,u)),x=[]},k=()=>{b(),y.length&&(p.push(y),y=[])};for(const{key:v,data:E}of f)switch(v){case"M":k(),C=[E[0],E[1]],y.push(C);break;case"L":b(),y.push([E[0],E[1]]);break;case"C":if(!x.length){const L=y.length?y[y.length-1]:C;x.push([L[0],L[1]])}x.push([E[0],E[1]]),x.push([E[2],E[3]]),x.push([E[4],E[5]]);break;case"Z":b(),y.push([C[0],C[1]])}if(k(),!d)return p;const T=[];for(const v of p){const E=pB(v,d);E.length&&T.push(E)}return T})(t,1,n?4-4*(i.simplification||1):(1+i.roughness)/2),c=Xd(t,i);if(o)if(i.fillStyle==="solid")if(l.length===1){const h=Xd(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(rl(l,i));else s.push(qi(l,i));return a&&(n?l.forEach((h=>{s.push(pa(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:Re};break;case"fillPath":a={d:this.opsToPath(o),stroke:Re,strokeWidth:0,fill:i.fill||Re};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||Re,strokeWidth:i,fill:Re}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class gB{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new za(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 Zo="http://www.w3.org/2000/svg";class mB{constructor(t,r){this.svg=t,this.gen=new za(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(Zo,"g"),a=t.options.fixedDecimalPlaceDigits;for(const n of r){let l=null;switch(n.type){case"path":l=s.createElementNS(Zo,"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(Zo,"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(Zo,"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 gB(e,t),svg:(e,t)=>new mB(e,t),generator:e=>new za(e),newSeed:()=>za.newSeed()},yB=1,xB=3;async function vc(e){const t=e.getElementsByTagName("img");if(!t||t.length===0)return;const r=!Bc(e);await Promise.all([...t].map(i=>new Promise(s=>{function o(){if(i.style.display="flex",i.style.flexDirection="column",r){const a=Ht().fontSize?Ht().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[l=ng.fontSize]=en(a),c=l*n+"px";i.style.minWidth=c,i.style.maxWidth=c}else i.style.width="100%";s(i)}g(o,"setupImage"),setTimeout(()=>{i.complete&&o()}),i.addEventListener("error",o),i.addEventListener("load",o)})))}g(vc,"configureLabelImages");function Bc(e){var r;return e.nodeType===xB?((r=e.textContent)==null?void 0:r.trim())!=="":e.nodeType!==yB||e.tagName.toLowerCase()==="img"?!1:[...e.childNodes].some(Bc)}g(Bc,"hasTextBesidesImages");var Qd=3,CB=32,bB=g(async(e,t,r)=>{var x,b,k;const i=Ht(),s=e.insert("g").attr("class",r??"node default").attr("id",t.domId||t.id),o=s.insert("g").attr("class","label").attr("style",ce(t.labelStyle)),n=[{text:typeof t.label=="string"?t.label:((x=t.label)==null?void 0:x[0])??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(T=>({text:T,cssClass:"c4-descr"}))].filter(T=>T.text),l=t.width?Math.max(t.width-2*(t.padding??0),CB):((b=Ht().flowchart)==null?void 0:b.wrappingWidth)??200,h=((k=i.c4)==null?void 0:k.wrap)??!0?l:Number.POSITIVE_INFINITY,u=await Promise.all(n.map(async T=>{const v=o.append("g").attr("class",T.cssClass),E=await or(v,je(ri(T.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:h,style:t.labelStyle},i);return Dt(E).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),Dt(E).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:v,box:v.node().getBBox()}})),d=Math.max(...u.map(({box:T})=>T.width),0);let f=0;for(const{el:T,box:v}of u)T.attr("transform",`translate(${d/2-v.x-v.width/2}, ${f-v.y})`),f+=v.height+Qd;const p=u.length>0?f-Qd:0;o.insert("rect",":first-child"),o.attr("transform",`translate(${-d/2}, ${-p/2})`);const y=o.node().getBBox(),C=(t.padding??0)/2;return{shapeSvg:s,bbox:y,halfPadding:C,label:o}},"c4LabelHelper"),Bt=g(async(e,t,r)=>{var f,p;if(t.stereotype!==void 0)return bB(e,t,r);let i;const s=t.useHtmlLabels||br((f=Ht())==null?void 0:f.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",ce(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 or(a,je(ri(n),Ht()),{useHtmlLabels:s,width:t.width||t.wrappingWidth||((p=Ht().flowchart)==null?void 0:p.wrappingWidth),classes:c?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:c},Ht()),u=((t==null?void 0:t.padding)??0)/2;let d;if(s){const y=h.children[0],C=Dt(h);await vc(y),d=await Ti.measure(()=>y.getBoundingClientRect()),C.attr("width",d.width),C.attr("height",d.height)}else d=await Ti.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"),sl=g(async(e,t,r)=>{var l,c;const i=r.useHtmlLabels??Te(Ht()),s=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await or(s,je(ri(t),Ht()),{useHtmlLabels:i,width:r.width||((c=(l=Ht())==null?void 0:l.flowchart)==null?void 0:c.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),a=r.padding/2;let n;if(Te(Ht())){const h=o.children[0],u=Dt(o);n=await Ti.measure(()=>h.getBoundingClientRect()),u.attr("width",n.width),u.attr("height",n.height)}else n=await Ti.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"),wt=g((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"),Lt=g((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function jt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}g(jt,"createPathFromPoints");function si(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 f=0;f<=50;f++){const p=f/50,y=e+p*l,C=d+s*Math.sin(u*(y-e));a.push({x:y,y:C})}return a}g(si,"generateFullSineWavePoints");function pr(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,f=e+r*Math.cos(d),p=t+r*Math.sin(d);a.push({x:-f,y:-p})}return a}g(pr,"generateCirclePoints");function xh(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=g((l,c)=>(l==null?void 0: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}g(xh,"mergePaths");var kB=g((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"),Ei=kB,Ke=g((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"),wB=g(async(e,t,r,i=!1,s=!1)=>{let o=t||"";typeof o=="object"&&(o=o[0]);const a=Ht(),n=Te(a);return await or(e,o,{style:r,isTitle:i,useHtmlLabels:n,markdown:!1,isNode:s,width:Number.POSITIVE_INFINITY},a)},"createLabel"),Qr=wB;function dy(e,t){return e.intersect(t)}g(dy,"intersectNode");var SB=dy;function fy(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}}g(fy,"intersectEllipse");var py=fy;function gy(e,t,r){return py(e,t,t,r)}g(gy,"intersectCircle");var TB=gy;function my(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&&Ch(n,l))return;const h=i.y-r.y,u=r.x-i.x,d=i.x*r.y-r.x*i.y,f=h*e.x+u*e.y+d,p=h*t.x+u*t.y+d;if(Math.abs(f)<c&&Math.abs(p)<c&&Ch(f,p))return;const y=s*u-h*o;if(y===0)return;const C=Math.abs(y/2);let x=o*d-u*a;const b=x<0?(x-C)/y:(x+C)/y;x=h*a-s*d;const k=x<0?(x-C)/y:(x+C)/y;return{x:b,y:k}}}g(my,"intersectLine");function Ch(e,t){return e*t>0}g(Ch,"sameSign");var _B=my;function yy(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],f=_B(e,r,{x:l+u.x,y:c+u.y},{x:l+d.x,y:c+d.y});f&&o.push(f)}return o.length?(o.length>1&&o.sort(function(h,u){let d=h.x-r.x,f=h.y-r.y,p=Math.sqrt(d*d+f*f),y=u.x-r.x,C=u.y-r.y,x=Math.sqrt(y*y+C*C);return p<x?-1:p===x?0:1}),o[0]):e}g(yy,"intersectPolygon");var vB=yy,dt={node:SB,circle:TB,ellipse:py,polygon:vB,rect:Ei};function xy(e,t){const{labelStyles:r}=St(t);t.labelStyle=r;const i=Lt(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=yt(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",ce(n)),wt(t,u),t.intersect=function(d){return W.info("Circle intersect",t,a,d),dt.circle(t,a,d)},o}g(xy,"anchor");function bh(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,f=u/s,p=d/o,y=Math.sqrt(f**2+p**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");const C=Math.sqrt(1-y**2),x=l+C*o*Math.sin(h)*(a?-1:1),b=c-C*s*Math.cos(h)*(a?-1:1),k=Math.atan2((t-b)/o,(e-x)/s);let v=Math.atan2((i-b)/o,(r-x)/s)-k;a&&v<0&&(v+=2*Math.PI),!a&&v>0&&(v-=2*Math.PI);const E=[];for(let L=0;L<20;L++){const A=L/19,H=k+A*v,q=x+s*Math.cos(H),R=b+o*Math.sin(H);E.push({x:q,y:R})}return E}g(bh,"generateArcPoints");function Cy(e,t,r){const[i,s]=[t,r].sort((o,a)=>a-o);return s*(1-Math.sqrt(1-(e/i/2)**2))}g(Cy,"calculateArcSagitta");async function by(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=g(H=>H+a,"calcTotalHeight"),l=g(H=>{const q=H/2;return[q/(2.5+H/50),q]},"calcEllipseRadius"),{shapeSvg:c,bbox:h}=await Bt(e,t,Lt(t)),u=n(t!=null&&t.height?t==null?void 0:t.height:h.height),[d,f]=l(u),p=Cy(u,d,f),C=(t!=null&&t.width?t==null?void 0:t.width:h.width)+o*2+p-p,x=u,{cssStyles:b}=t,k=[{x:C/2,y:-x/2},{x:-C/2,y:-x/2},...bh(-C/2,-x/2,-C/2,x/2,d,f,!1),{x:C/2,y:x/2},...bh(C/2,x/2,C/2,-x/2,d,f,!0)],T=Ct.svg(c),v=yt(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const E=jt(k),L=T.path(E,v),A=c.insert(()=>L,":first-child");return A.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${d/2}, 0)`),wt(t,A),t.intersect=function(H){return dt.polygon(t,k,H)},c}g(by,"bowTieRect");async function ky(e,t,{config:{themeVariables:r}}){var L;const{labelStyles:i,nodeStyles:s}=St(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await Bt(e,t,Lt(t)),l=(r==null?void 0:r.nodeBorder)??(r==null?void 0: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),f=-d/2+u,p=d/2,y=h*.72,C=[`M${-h/2},${f}`,`L${-y/2},${p}`,`A${y/2},${u} 0 0 0 ${y/2},${p}`,`L${h/2},${f}`,`A${h/2},${u} 0 0 0 ${-h/2},${f}`,"Z"].join(" "),{cssStyles:x}=t,b=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const H=Ct.svg(o).path(C,yt(t,{}));(L=b.node())==null||L.appendChild(H),x&&b.attr("style",x)}else b.append("path").attr("d",C).attr("style",s);b.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",h/2).attr("ry",u).attr("style",`fill:none;stroke:${l};stroke-width:1px`),wt(t,b);const k=f+(p-f)/2;n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${k-a.height/2-(a.y-(a.top??0))})`);const T=12,v=g((A,H,q)=>Array.from({length:T+1},(R,ot)=>{const U=Math.PI-ot*Math.PI/T;return{x:A*Math.cos(U),y:H+q*u*Math.sin(U)}}),"arc"),E=[...v(h/2,f,-1),...v(y/2,p,1).reverse()];return t.intersect=function(A){return dt.polygon(t,E,A)},o}g(ky,"bucket");var Jd=20,tf=8,BB=80,ol=8;async function wy(e,t){const{themeVariables:r}=Ht(),i=r.clusterBkg,s=r.clusterBorder,{nodeStyles:o}=St(t),{shapeSvg:a,bbox:n}=await Bt(e,t,Lt(t)),l=t.padding??8,c=n.height,h=Math.max(n.width+l*2,BB,(t==null?void 0:t.width)??0),u=Math.max(c+tf+Jd+l*2,(t==null?void 0:t.height)??0),d=-h/2,f=-u/2,p=-28/2,y=a.select(".label");y&&(t.useHtmlLabels??Te(Ht())?y.attr("transform",`translate(${-n.width/2}, ${-n.height/2+p})`):y.attr("transform",`translate(0, ${-n.height/2+p})`));let C;if(t.look==="handDrawn"){const v=Ct.svg(a),E=yt(t,{fill:i,stroke:s,fillStyle:"solid"}),L=v.path(Ke(d,f,h,u,ol),E);C=a.insert(()=>L,":first-child"),C.attr("class","basic label-container collapsed-group").attr("style",ce(t.cssStyles))}else C=a.insert("rect",":first-child"),C.attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",ol).attr("ry",ol).attr("x",d).attr("y",f).attr("width",h).attr("height",u).attr("fill",i).attr("stroke",s);const x=f+l+c+tf;a.append("line").attr("class","collapsed-separator").attr("x1",d+8).attr("y1",x).attr("x2",d+h-8).attr("y2",x).attr("stroke",s).attr("stroke-dasharray","3, 3");const b=x+Jd/2,k=2.5,T=10;for(let v=-1;v<=1;v++)a.append("circle").attr("class","collapsed-indicator").attr("cx",v*T).attr("cy",b).attr("r",k).attr("fill",s);return wt(t,C),t.calcIntersect=function(v,E){return dt.rect(v,E)},t.intersect=function(v){return dt.rect(t,v)},a}g(wy,"collapsedGroup");function wr(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+")")}g(wr,"insertPolygonShape");var LB=["right","left","up","down"],Lc="point",AB=g(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"),EB=g(e=>LB.filter(t=>e.has(t)).join("|")||Lc,"getDirectionKey"),ef={"right|left|up|down":g(({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":g(({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":g(({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":g(({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":g(({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":g(({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":g(({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":g(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:0,y:-e}],"right|up"),"right|down":g(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],"right|down"),"left|up":g(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:r,y:-e}],"left|up"),"left|down":g(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],"left|down"),right:g(({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:g(({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:g(({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:g(({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"),[Lc]:()=>[{x:0,y:0}]},FB=g((e,t,r,i)=>{const s=AB(e),o=(r.padding??0)/2,a=t.height+4*o,n=a/2,l=i??t.width+2*n+2*o,c=EB(s);return(ef[c]??ef[Lc])({height:a,midpoint:n,padding:o,width:l})},"getArrowPoints");async function Sy(e,t){const r=t,{shapeSvg:i,bbox:s}=await Bt(e,r,Lt(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=FB(r.directions??[],s,r,u),f=wr(i,u,a,d);return f.attr("style",r.style??null),wt(r,f),r.intersect=function(p){return dt.polygon(r,d,p)},i}g(Sy,"block_arrow");async function Ty(e,t,{config:{themeVariables:r}}){var b;const{labelStyles:i,nodeStyles:s}=St(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await Bt(e,t,Lt(t)),l=(r==null?void 0:r.nodeBorder)??(r==null?void 0:r.lineColor)??"currentColor",c=t.padding??12,h=18,u=12,d=Math.max(a.width+c*2,t.width??0,90),f=Math.max(a.height+c*2+h,t.height??0),p=-f/2,{cssStyles:y}=t,C=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const T=Ct.svg(o).path(Ke(-d/2,p,d,f,u),yt(t,{}));(b=C.node())==null||b.appendChild(T),y&&C.attr("style",y)}else C.append("rect").attr("x",-d/2).attr("y",p).attr("width",d).attr("height",f).attr("rx",u).attr("ry",u).attr("style",s);C.append("line").attr("x1",-d/2).attr("y1",p+h).attr("x2",d/2).attr("y2",p+h).attr("style",`stroke:${l};stroke-width:1px`);for(let k=0;k<3;k++)C.append("circle").attr("cx",-d/2+12+k*9).attr("cy",p+h/2).attr("r",2.5).attr("style",`fill:${l};stroke:none`);C.append("rect").attr("class","browser-address-bar").attr("x",-d/2+44).attr("y",p+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`),wt(t,C);const x=p+h+(f-h)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${x-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(k){return dt.rect(t,k)},o}g(Ty,"browser");var Qo=12;async function _y(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(t)),c=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?o*2:o+Qo),h=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?a*2:a),u=0,d=c,f=-h,p=0,y=[{x:u+Qo,y:f},{x:d,y:f},{x:d,y:p},{x:u,y:p},{x:u,y:f+Qo},{x:u+Qo,y:f}];let C;const{cssStyles:x}=t;if(t.look==="handDrawn"){const b=Ct.svg(n),k=yt(t,{}),T=jt(y),v=b.path(T,k);C=n.insert(()=>v,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),x&&C.attr("style",x)}else C=wr(n,c,h,y);return i&&C.attr("style",i),wt(t,C),t.intersect=function(b){return dt.polygon(t,y,b)},n}g(_y,"card");function vy(e,t){const{nodeStyles:r}=St(t);t.label="";const i=e.insert("g").attr("class",Lt(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=yt(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=jt(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 dt.polygon(t,a,d)},i}g(vy,"choice");async function Ac(e,t,r){const{labelStyles:i,nodeStyles:s}=St(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,halfPadding:n}=await Bt(e,t,Lt(t)),l=16,c=(r==null?void 0: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 f=Ct.svg(o),p=yt(t,{}),y=f.circle(0,0,h*2,p);u=o.insert(()=>y,":first-child"),u.attr("class","basic label-container").attr("style",ce(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 wt(t,u),t.calcIntersect=function(f,p){const y=f.width/2;return dt.circle(f,y,p)},t.intersect=function(f){return W.info("Circle intersect",t,h,f),dt.circle(t,h,f)},o}g(Ac,"circle");async function By(e,t){const r=t,i=["node",r.cssClasses,r.class].filter(Boolean).join(" "),{shapeSvg:s,bbox:o,halfPadding:a}=await Bt(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),wt(r,n),r.intersect=function(f){return dt.rect(r,f)},s}g(By,"composite");async function Ly(e,t,{config:{themeVariables:r}}){var b;const{labelStyles:i,nodeStyles:s}=St(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await Bt(e,t,Lt(t)),l=(r==null?void 0:r.nodeBorder)??(r==null?void 0:r.lineColor)??"currentColor",c=t.padding??12,h=20,u=12,d=Math.max(a.width+c*2,t.width??0,90),f=Math.max(a.height+c*2+h,t.height??0),p=-f/2,{cssStyles:y}=t,C=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const T=Ct.svg(o).path(Ke(-d/2,p,d,f,u),yt(t,{}));(b=C.node())==null||b.appendChild(T),y&&C.attr("style",y)}else C.append("rect").attr("x",-d/2).attr("y",p).attr("width",d).attr("height",f).attr("rx",u).attr("ry",u).attr("style",s);C.append("text").attr("x",-d/2+12).attr("y",p+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(">_"),wt(t,C);const x=p+h+(f-h)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${x-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(k){return dt.rect(t,k)},o}g(Ly,"consoleWindow");function Ay(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}
214
+ M ${s.x},${s.y} L ${a.x},${a.y}`}g(Ay,"createLine");function Ey(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r,t.label="";const s=e.insert("g").attr("class",Lt(t)).attr("id",t.domId??t.id),o=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:a}=t,n=Ct.svg(s),l=yt(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=n.circle(0,0,o*2,l),h=Ay(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),wt(t,d),t.intersect=function(f){return W.info("crossedCircle intersect",t,{radius:o,point:f}),dt.circle(t,o,f)},s}g(Ey,"crossedCircle");function Er(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,f=e+r*Math.cos(d),p=t+r*Math.sin(d);a.push({x:-f,y:-p})}return a}g(Er,"generateCirclePoints");async function Fy(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Bt(e,t,Lt(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,f=[...Er(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...Er(c/2+u*2,-u,u,20,-180,-270),...Er(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...Er(c/2,h/2,u,20,0,90)],p=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...Er(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...Er(c/2+c*.1,-u,u,20,-180,-270),...Er(c/2+c*.1,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...Er(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2,y:h/2+u}],y=Ct.svg(s),C=yt(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const b=jt(f).replace("Z",""),k=y.path(b,C),T=jt(p),v=y.path(T,{...C}),E=s.insert("g",":first-child");return E.insert(()=>v,":first-child").attr("stroke-opacity",0),E.insert(()=>k,":first-child"),E.attr("class","text"),d&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",i),E.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))})`),wt(t,E),t.intersect=function(L){return dt.polygon(t,p,L)},s}g(Fy,"curlyBraceLeft");function Fr(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,f=e+r*Math.cos(d),p=t+r*Math.sin(d);a.push({x:f,y:p})}return a}g(Fr,"generateCirclePoints");async function My(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Bt(e,t,Lt(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,f=[...Fr(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...Fr(c/2+u*2,-u,u,20,-180,-270),...Fr(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...Fr(c/2,h/2,u,20,0,90)],p=[{x:-c/2,y:-h/2-u},{x:c/2,y:-h/2-u},...Fr(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...Fr(c/2+u*2,-u,u,20,-180,-270),...Fr(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...Fr(c/2,h/2,u,20,0,90),{x:c/2,y:h/2+u},{x:-c/2,y:h/2+u}],y=Ct.svg(s),C=yt(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const b=jt(f).replace("Z",""),k=y.path(b,C),T=jt(p),v=y.path(T,{...C}),E=s.insert("g",":first-child");return E.insert(()=>v,":first-child").attr("stroke-opacity",0),E.insert(()=>k,":first-child"),E.attr("class","text"),d&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",i),E.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))})`),wt(t,E),t.intersect=function(L){return dt.polygon(t,p,L)},s}g(My,"curlyBraceRight");function xe(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,f=e+r*Math.cos(d),p=t+r*Math.sin(d);a.push({x:-f,y:-p})}return a}g(xe,"generateCirclePoints");async function $y(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Bt(e,t,Lt(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,f=[...xe(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...xe(c/2+u*2,-u,u,20,-180,-270),...xe(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...xe(c/2,h/2,u,20,0,90)],p=[...xe(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...xe(-c/2-u/2,-u,u,20,0,90),...xe(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...xe(-c/2+u+u/2,h/2,u,30,-180,-270)],y=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...xe(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...xe(c/2+u*2,-u,u,20,-180,-270),...xe(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...xe(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},...xe(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...xe(-c/2-u/2,-u,u,20,0,90),...xe(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...xe(-c/2+u+u/2,h/2,u,30,-180,-270)],C=Ct.svg(s),x=yt(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=jt(f).replace("Z",""),T=C.path(k,x),E=jt(p).replace("Z",""),L=C.path(E,x),A=jt(y),H=C.path(A,{...x}),q=s.insert("g",":first-child");return q.insert(()=>H,":first-child").attr("stroke-opacity",0),q.insert(()=>T,":first-child"),q.insert(()=>L,":first-child"),q.attr("class","text"),d&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",i),q.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))})`),wt(t,q),t.intersect=function(R){return dt.polygon(t,y,R)},s}g($y,"curlyBraces");async function Oy(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(t)),u=Math.max(n,(h.width+o*2)*1.25,(t==null?void 0:t.width)??0),d=Math.max(l,h.height+a*2,(t==null?void 0:t.height)??0),f=d/2,{cssStyles:p}=t,y=Ct.svg(c),C=yt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=u,b=d,k=x-f,T=b/4,v=[{x:k,y:0},{x:T,y:0},{x:0,y:b/2},{x:T,y:b},{x:k,y:b},...pr(-k,-b/2,f,50,270,90)],E=jt(v),L=y.path(E,C),A=c.insert(()=>L,":first-child");return A.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",i),A.attr("transform",`translate(${-u/2}, ${-d/2})`),wt(t,A),t.intersect=function(H){return dt.polygon(t,v,H)},c}g(Oy,"curvedTrapezoid");async function Iy(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Bt(e,t,Lt(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),f=u+2*c-h,p=-f/2,y=p+2*c-h,C=s.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:x}=t;if(t.look==="handDrawn"){const A=Ct.svg(s),H=yt(t,{}),q=A.path(Ke(-l/2,y,l,u,d),H),R=A.circle(0,p+c,c*2,H);C.insert(()=>R,":first-child"),C.insert(()=>q,":first-child"),x&&C.attr("style",x)}else C.append("rect").attr("x",-l/2).attr("y",y).attr("width",l).attr("height",u).attr("rx",d).attr("ry",d).attr("style",i),C.append("circle").attr("cx",0).attr("cy",p+c).attr("r",c).attr("style",i);wt(t,C);const b=y+u/2;a.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${b-o.height/2-(o.y-(o.top??0))})`);const k=p+c,T=Math.asin(Math.min(1,(y-k)/c))*180/Math.PI,L=[...pr(0,-k,c,24,180+T,-T),...pr(-(-l/2+d),-(y+d),d,12,90,0),...pr(-(-l/2+d),-(f/2-d),d,12,360,270),...pr(-(l/2-d),-(f/2-d),d,12,270,180),...pr(-(l/2-d),-(y+d),d,12,180,90)];return t.intersect=function(A){return dt.polygon(t,L,A)},s}g(Iy,"person");var MB=g((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"),$B=g((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"),OB=g((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),rf=8,sf=8;async function Dy(e,t){const{labelStyles:r,nodeStyles:i}=St(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<sf&&(t.width=sf)),t.height){const b=n/2/(2.5+n/50);t.height=t.height-o-b*3,t.height<rf&&(t.height=rf)}const{shapeSvg:l,bbox:c,label:h}=await Bt(e,t,Lt(t)),u=Math.max(t.width??0,c.width)+a,d=u/2,f=d/(2.5+u/50),p=Math.max(t.height??0,c.height)+o+f;let y;const{cssStyles:C}=t;if(t.look==="handDrawn"){const x=Ct.svg(l),b=$B(0,0,u,p,d,f),k=OB(0,f,u,p,d,f),T=yt(t,{}),v=x.path(b,T),E=x.path(k,yt(t,{fill:"none"}));y=l.insert(()=>E,":first-child"),y=l.insert(()=>v,":first-child"),y.attr("class","basic label-container"),C&&y.attr("style",C)}else{const x=MB(0,0,u,p,d,f);y=l.insert("path",":first-child").attr("d",x).attr("class","basic label-container outer-path").attr("style",ce(C)).attr("style",i)}return y.attr("label-offset-y",f),y.attr("transform",`translate(${-u/2}, ${-(p/2+f)})`),wt(t,y),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(x){const b=dt.rect(t,x),k=b.x-(t.x??0);if(d!=0&&(Math.abs(k)<(t.width??0)/2||Math.abs(k)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-f)){let T=f*f*(1-k*k/(d*d));T>0&&(T=Math.sqrt(T)),T=f-T,x.y-(t.y??0)>0&&(T=-T),b.y+=T}return b},l}g(Dy,"cylinder");async function Ts(e,t,r){const{labelStyles:i,nodeStyles:s}=St(t);t.labelStyle=i;const{shapeSvg:o,bbox:a}=await Bt(e,t,Lt(t)),n=Math.max(a.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(a.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-n/2,h=-l/2;let u,{rx:d,ry:f}=t;const{cssStyles:p}=t;if(r!=null&&r.rx&&r.ry&&(d=r.rx,f=r.ry),t.look==="handDrawn"){const y=Ct.svg(o),C=yt(t,{}),x=d||f?y.path(Ke(c,h,n,l,d||0),C):y.rectangle(c,h,n,l,C);u=o.insert(()=>x,":first-child"),u.attr("class","basic label-container").attr("style",ce(p))}else u=o.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",s).attr("rx",ce(d)).attr("ry",ce(f)).attr("x",c).attr("y",h).attr("width",n).attr("height",l);return wt(t,u,t.look==="handDrawn"?void 0:{width:n,height:l}),t.calcIntersect=function(y,C){return dt.rect(y,C)},t.intersect=function(y){return dt.rect(t,y)},o}g(Ts,"drawRect");async function Py(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 Ts(e,t,l);if(t.look==="handDrawn"){const f=Ct.svg(c),p=yt(t,{}),y=c.select(".basic.label-container > path:nth-child(2)"),C=y.node();if(!C)return c;let x=null;if(C instanceof SVGGraphicsElement)x=C.getBBox();else return c;return c.insert(()=>f.line(x.x,x.y,x.x+x.width,x.y,p),".basic.label-container g.label"),c.insert(()=>f.line(x.x,x.y+x.height,x.x+x.width,x.y+x.height,p),".basic.label-container g.label"),y.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}g(Py,"datastore");async function Ry(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(t)),c=n.width+s,h=n.height+o,u=h*.2,d=-c/2,f=-h/2-u/2,{cssStyles:p}=t,y=Ct.svg(a),C=yt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=[{x:d,y:f+u},{x:-d,y:f+u},{x:-d,y:-f},{x:d,y:-f},{x:d,y:f},{x:-d,y:f},{x:-d,y:f+u}],b=y.polygon(x.map(T=>[T.x,T.y]),C),k=a.insert(()=>b,":first-child");return k.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),l.attr("transform",`translate(${d+(t.padding??0)/2-(n.x-(n.left??0))}, ${f+u+(t.padding??0)/2-(n.y-(n.top??0))})`),wt(t,k),t.intersect=function(T){return dt.rect(t,T)},a}g(Ry,"dividedRectangle");async function Ny(e,t){var f,p;const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(t)),c=(t!=null&&t.width?(t==null?void 0:t.width)/2:l.width/2)+(a??0),h=c-s;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const y=Ct.svg(n),C=yt(t,{roughness:.2,strokeWidth:2.5}),x=yt(t,{roughness:.2,strokeWidth:1.5}),b=y.circle(0,0,c*2,C),k=y.circle(0,0,h*2,x);u=n.insert("g",":first-child"),u.attr("class",ce(t.cssClasses)).attr("style",ce(d)),(f=u.node())==null||f.appendChild(b),(p=u.node())==null||p.appendChild(k)}else{u=n.insert("g",":first-child");const y=u.insert("circle",":first-child"),C=u.insert("circle");u.attr("class","basic label-container").attr("style",i),y.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),C.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return wt(t,u),t.intersect=function(y){return W.info("DoubleCircle intersect",t,c,y),dt.circle(t,c,y)},n}g(Ny,"doublecircle");function qy(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=St(t);t.label="",t.labelStyle=i;const o=e.insert("g").attr("class",Lt(t)).attr("id",t.domId??t.id),a=7,{cssStyles:n}=t,l=Ct.svg(o),{nodeBorder:c}=r,h=yt(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),wt(t,d),t.intersect=function(f){return W.info("filledCircle intersect",t,{radius:a,point:f}),dt.circle(t,a,f)},o}g(qy,"filledCircle");var of=10,af=10;async function zy(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<of&&(t.height=of),t.width=((t==null?void 0:t.width)??0)-o-o/2,t.width<af&&(t.width=af));const{shapeSvg:a,bbox:n,label:l}=await Bt(e,t,Lt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:n.width)+(o??0),h=t!=null&&t.height?t==null?void 0:t.height:c+n.height,u=h,d=[{x:0,y:-h},{x:u,y:-h},{x:u/2,y:0}],{cssStyles:f}=t,p=Ct.svg(a),y=yt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=jt(d),x=p.path(C,y),b=a.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return f&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),t.width=c,t.height=h,wt(t,b),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(k){return W.info("Triangle intersect",t,d,k),dt.polygon(t,d,k)},a}g(zy,"flippedTriangle");async function Wy(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Bt(e,t,Lt(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,f=Math.max(l*.38,28),p=-u/2,y=[{x:-l/2,y:p},{x:-l/2+f,y:p},{x:-l/2+f,y:p+h},{x:l/2,y:p+h},{x:l/2,y:u/2},{x:-l/2,y:u/2}],C=[`M${y[0].x},${y[0].y}`,...y.slice(1).map(T=>`L${T.x},${T.y}`),"Z"].join(" "),{cssStyles:x}=t;let b;if(t.look==="handDrawn"){const v=Ct.svg(s).path(C,yt(t,{}));b=s.insert(()=>v,":first-child").attr("class","basic label-container"),x&&b.attr("style",x)}else b=s.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",i);t.look==="handDrawn"?wt(t,b):wt(t,b,{width:l,height:u});const k=p+h+d/2;return a.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${k-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(T){return dt.polygon(t,y,T)},s}g(Wy,"folder");function Hy(e,t,{dir:r,config:{state:i,themeVariables:s}}){const{nodeStyles:o}=St(t);t.label="";const a=e.insert("g").attr("class",Lt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const h=-1*l/2,u=-1*c/2,d=Ct.svg(a),f=yt(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=d.rectangle(h,u,l,c,f),y=a.insert(()=>p,":first-child");n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),o&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",o),wt(t,y);const C=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=C/2||0,t.height+=C/2||0),t.intersect=function(x){return dt.rect(t,x)},a}g(Hy,"forkJoin");async function Yy(e,t){const{labelStyles:r,nodeStyles:i}=St(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==null?void 0:t.height)??0)-n*2,t.height<o&&(t.height=o),t.width=((t==null?void 0:t.width)??0)-a*2,t.width<s&&(t.width=s));const{shapeSvg:l,bbox:c}=await Bt(e,t,Lt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:Math.max(s,c.width))+a*2,u=(t!=null&&t.height?t==null?void 0:t.height:Math.max(o,c.height))+n*2,d=u/2,{cssStyles:f}=t,p=Ct.svg(l),y=yt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:-h/2,y:-u/2},{x:h/2-d,y:-u/2},...pr(-h/2+d,0,d,50,90,270),{x:h/2-d,y:u/2},{x:-h/2,y:u/2}],x=jt(C),b=p.path(x,y),k=l.insert(()=>b,":first-child");return k.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),wt(t,k),t.intersect=function(T){return W.info("Pill intersect",t,{radius:d,point:T}),dt.polygon(t,C,T)},l}g(Yy,"halfRoundedRectangle");var IB=g((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 Uy(e,t){const{labelStyles:r,nodeStyles:i}=St(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 k=(t.height??0)/s;t.width=((t==null?void 0:t.width)??0)-2*k-c,t.height=(t.height??0)-l}const{shapeSvg:h,bbox:u}=await Bt(e,t,Lt(t)),d=(t!=null&&t.height?t==null?void 0:t.height:u.height)+l,f=d/s,p=(t!=null&&t.width?t==null?void 0:t.width:u.width)+2*f+c,y=[{x:f,y:0},{x:p-f,y:0},{x:p,y:-d/2},{x:p-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}];let C;const{cssStyles:x}=t;if(t.look==="handDrawn"){const b=Ct.svg(h),k=yt(t,{}),T=IB(0,0,p,d,f),v=b.path(T,k);C=h.insert(()=>v,":first-child").attr("transform",`translate(${-p/2}, ${d/2})`),x&&C.attr("style",x)}else C=wr(h,p,d,y);return i&&C.attr("style",i),t.width=p,t.height=d,wt(t,C),t.intersect=function(b){return dt.polygon(t,y,b)},h}g(Uy,"hexagon");async function jy(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.label="",t.labelStyle=r;const{shapeSvg:s}=await Bt(e,t,Lt(t)),o=Math.max(30,(t==null?void 0:t.width)??0),a=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:n}=t,l=Ct.svg(s),c=yt(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=jt(h),d=l.path(u,c),f=s.insert(()=>d,":first-child");return f.attr("class","basic label-container outer-path"),n&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",n),i&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",i),f.attr("transform",`translate(${-o/2}, ${-a/2})`),wt(t,f),t.intersect=function(p){return W.info("Pill intersect",t,{points:h}),dt.polygon(t,h,p)},s}g(jy,"hourglass");async function Xy(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=St(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,label:u}=await Bt(e,t,"icon-shape default"),d=t.pos==="t",f=n,p=n,{nodeBorder:y}=r,{stylesMap:C}=Ss(t),x=-p/2,b=-f/2,k=t.label?8:0,T=Ct.svg(c),v=yt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const E=T.rectangle(x,b,p,f,v),L=Math.max(p,h.width),A=f+h.height+k,H=T.rectangle(-L/2,-A/2,L,A,{...v,fill:"transparent",stroke:"none"}),q=c.insert(()=>E,":first-child"),R=c.insert(()=>H);if(t.icon){const ot=c.append("g");ot.html(`<g>${await Fo(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const U=ot.node().getBBox(),O=U.width,$=U.height,B=U.x,N=U.y;ot.attr("transform",`translate(${-O/2-B},${d?h.height/2+k/2-$/2-N:-h.height/2-k/2-$/2-N})`),ot.attr("style",`color: ${C.get("stroke")??y};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-A/2:A/2-h.height})`),q.attr("transform",`translate(0,${d?h.height/2+k/2:-h.height/2-k/2})`),wt(t,R),t.intersect=function(ot){if(W.info("iconSquare intersect",t,ot),!t.label)return dt.rect(t,ot);const U=t.x??0,O=t.y??0,$=t.height??0;let B=[];return d?B=[{x:U-h.width/2,y:O-$/2},{x:U+h.width/2,y:O-$/2},{x:U+h.width/2,y:O-$/2+h.height+k},{x:U+p/2,y:O-$/2+h.height+k},{x:U+p/2,y:O+$/2},{x:U-p/2,y:O+$/2},{x:U-p/2,y:O-$/2+h.height+k},{x:U-h.width/2,y:O-$/2+h.height+k}]:B=[{x:U-p/2,y:O-$/2},{x:U+p/2,y:O-$/2},{x:U+p/2,y:O-$/2+f},{x:U+h.width/2,y:O-$/2+f},{x:U+h.width/2/2,y:O+$/2},{x:U-h.width/2,y:O+$/2},{x:U-h.width/2,y:O-$/2+f},{x:U-p/2,y:O-$/2+f}],dt.polygon(t,B,ot)},c}g(Xy,"icon");async function Gy(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=St(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,label:u}=await Bt(e,t,"icon-shape default"),d=20,f=t.label?8:0,p=t.pos==="t",{nodeBorder:y,mainBkg:C}=r,{stylesMap:x}=Ss(t),b=Ct.svg(c),k=yt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=x.get("fill");k.stroke=T??C;const v=c.append("g");t.icon&&v.html(`<g>${await Fo(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const E=v.node().getBBox(),L=E.width,A=E.height,H=E.x,q=E.y,R=Math.max(L,A)*Math.SQRT2+d*2,ot=b.circle(0,0,R,k),U=Math.max(R,h.width),O=R+h.height+f,$=b.rectangle(-U/2,-O/2,U,O,{...k,fill:"transparent",stroke:"none"}),B=c.insert(()=>ot,":first-child"),N=c.insert(()=>$);return v.attr("transform",`translate(${-L/2-H},${p?h.height/2+f/2-A/2-q:-h.height/2-f/2-A/2-q})`),v.attr("style",`color: ${x.get("stroke")??y};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-O/2:O/2-h.height})`),B.attr("transform",`translate(0,${p?h.height/2+f/2:-h.height/2-f/2})`),wt(t,N),t.intersect=function(F){return W.info("iconSquare intersect",t,F),dt.rect(t,F)},c}g(Gy,"iconCircle");async function Vy(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=St(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await Bt(e,t,"icon-shape default"),f=t.pos==="t",p=n+u*2,y=n+u*2,{nodeBorder:C,mainBkg:x}=r,{stylesMap:b}=Ss(t),k=-y/2,T=-p/2,v=t.label?8:0,E=Ct.svg(c),L=yt(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const A=b.get("fill");L.stroke=A??x;const H=E.path(Ke(k,T,y,p,5),L),q=Math.max(y,h.width),R=p+h.height+v,ot=E.rectangle(-q/2,-R/2,q,R,{...L,fill:"transparent",stroke:"none"}),U=c.insert(()=>H,":first-child").attr("class","icon-shape2"),O=c.insert(()=>ot);if(t.icon){const $=c.append("g");$.html(`<g>${await Fo(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const B=$.node().getBBox(),N=B.width,F=B.height,D=B.x,K=B.y;$.attr("transform",`translate(${-N/2-D},${f?h.height/2+v/2-F/2-K:-h.height/2-v/2-F/2-K})`),$.attr("style",`color: ${b.get("stroke")??C};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-R/2:R/2-h.height})`),U.attr("transform",`translate(0,${f?h.height/2+v/2:-h.height/2-v/2})`),wt(t,O),t.intersect=function($){if(W.info("iconSquare intersect",t,$),!t.label)return dt.rect(t,$);const B=t.x??0,N=t.y??0,F=t.height??0;let D=[];return f?D=[{x:B-h.width/2,y:N-F/2},{x:B+h.width/2,y:N-F/2},{x:B+h.width/2,y:N-F/2+h.height+v},{x:B+y/2,y:N-F/2+h.height+v},{x:B+y/2,y:N+F/2},{x:B-y/2,y:N+F/2},{x:B-y/2,y:N-F/2+h.height+v},{x:B-h.width/2,y:N-F/2+h.height+v}]:D=[{x:B-y/2,y:N-F/2},{x:B+y/2,y:N-F/2},{x:B+y/2,y:N-F/2+p},{x:B+h.width/2,y:N-F/2+p},{x:B+h.width/2/2,y:N+F/2},{x:B-h.width/2,y:N+F/2},{x:B-h.width/2,y:N-F/2+p},{x:B-y/2,y:N-F/2+p}],dt.polygon(t,D,$)},c}g(Vy,"iconRounded");async function Ky(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=St(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await Bt(e,t,"icon-shape default"),f=t.pos==="t",p=n+u*2,y=n+u*2,{nodeBorder:C,mainBkg:x}=r,{stylesMap:b}=Ss(t),k=-y/2,T=-p/2,v=t.label?8:0,E=Ct.svg(c),L=yt(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const A=b.get("fill");L.stroke=A??x;const H=E.path(Ke(k,T,y,p,.1),L),q=Math.max(y,h.width),R=p+h.height+v,ot=E.rectangle(-q/2,-R/2,q,R,{...L,fill:"transparent",stroke:"none"}),U=c.insert(()=>H,":first-child"),O=c.insert(()=>ot);if(t.icon){const $=c.append("g");$.html(`<g>${await Fo(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const B=$.node().getBBox(),N=B.width,F=B.height,D=B.x,K=B.y;$.attr("transform",`translate(${-N/2-D},${f?h.height/2+v/2-F/2-K:-h.height/2-v/2-F/2-K})`),$.attr("style",`color: ${b.get("stroke")??C};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-R/2:R/2-h.height})`),U.attr("transform",`translate(0,${f?h.height/2+v/2:-h.height/2-v/2})`),wt(t,O),t.intersect=function($){if(W.info("iconSquare intersect",t,$),!t.label)return dt.rect(t,$);const B=t.x??0,N=t.y??0,F=t.height??0;let D=[];return f?D=[{x:B-h.width/2,y:N-F/2},{x:B+h.width/2,y:N-F/2},{x:B+h.width/2,y:N-F/2+h.height+v},{x:B+y/2,y:N-F/2+h.height+v},{x:B+y/2,y:N+F/2},{x:B-y/2,y:N+F/2},{x:B-y/2,y:N-F/2+h.height+v},{x:B-h.width/2,y:N-F/2+h.height+v}]:D=[{x:B-y/2,y:N-F/2},{x:B+y/2,y:N-F/2},{x:B+y/2,y:N-F/2+p},{x:B+h.width/2,y:N-F/2+p},{x:B+h.width/2/2,y:N+F/2},{x:B-h.width/2,y:N+F/2},{x:B-h.width/2,y:N-F/2+p},{x:B-y/2,y:N-F/2+p}],dt.polygon(t,D,$)},c}g(Ky,"iconSquare");async function Zy(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0: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}=St(t);t.labelStyle=a;const n=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?n??0:0,(t==null?void 0:t.assetWidth)??s),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??o;t.width=Math.max(c,n??0);const{shapeSvg:u,bbox:d,label:f}=await Bt(e,t,"image-shape default"),p=t.pos==="t",y=-c/2,C=-h/2,x=t.label?8:0,b=Ct.svg(u),k=yt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=b.rectangle(y,C,c,h,k),v=Math.max(c,d.width),E=h+d.height+x,L=b.rectangle(-v/2,-E/2,v,E,{...k,fill:"none",stroke:"none"}),A=u.insert(()=>T,":first-child"),H=u.insert(()=>L);if(t.img){const q=u.append("image");q.attr("href",t.img),q.attr("width",c),q.attr("height",h),q.attr("preserveAspectRatio","none"),q.attr("transform",`translate(${-c/2},${p?E/2-h:-E/2})`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-h/2-d.height/2-x/2:h/2-d.height/2+x/2})`),A.attr("transform",`translate(0,${p?d.height/2+x/2:-d.height/2-x/2})`),wt(t,H),t.intersect=function(q){if(W.info("iconSquare intersect",t,q),!t.label)return dt.rect(t,q);const R=t.x??0,ot=t.y??0,U=t.height??0;let O=[];return p?O=[{x:R-d.width/2,y:ot-U/2},{x:R+d.width/2,y:ot-U/2},{x:R+d.width/2,y:ot-U/2+d.height+x},{x:R+c/2,y:ot-U/2+d.height+x},{x:R+c/2,y:ot+U/2},{x:R-c/2,y:ot+U/2},{x:R-c/2,y:ot-U/2+d.height+x},{x:R-d.width/2,y:ot-U/2+d.height+x}]:O=[{x:R-c/2,y:ot-U/2},{x:R+c/2,y:ot-U/2},{x:R+c/2,y:ot-U/2+h},{x:R+d.width/2,y:ot-U/2+h},{x:R+d.width/2/2,y:ot+U/2},{x:R-d.width/2,y:ot+U/2},{x:R-d.width/2,y:ot-U/2+h},{x:R-c/2,y:ot-U/2+h}],dt.polygon(t,O,q)},u}g(Zy,"imageSquare");async function Qy(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await Bt(e,t,Lt(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:f}=t;if(t.look==="handDrawn"){const p=Ct.svg(n),y=yt(t,{}),C=jt(u),x=p.path(C,y);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=wr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,wt(t,d),t.intersect=function(p){return dt.polygon(t,u,p)},n}g(Qy,"inv_trapezoid");async function Jy(e,t){const{shapeSvg:r,bbox:i,label:s}=await Bt(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))})`),wt(t,o),t.intersect=function(l){return dt.rect(t,l)},r}g(Jy,"labelRect");async function t0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await Bt(e,t,Lt(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:f}=t;if(t.look==="handDrawn"){const p=Ct.svg(n),y=yt(t,{}),C=jt(u),x=p.path(C,y);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=wr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,wt(t,d),t.intersect=function(p){return dt.polygon(t,u,p)},n}g(t0,"lean_left");async function e0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await Bt(e,t,Lt(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:f}=t;if(t.look==="handDrawn"){const p=Ct.svg(n),y=yt(t,{}),C=jt(u),x=p.path(C,y);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=wr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,wt(t,d),t.intersect=function(p){return dt.polygon(t,u,p)},n}g(e0,"lean_right");function r0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.label="",t.labelStyle=r;const s=e.insert("g").attr("class",Lt(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,a=Math.max(35,(t==null?void 0:t.width)??0),n=Math.max(35,(t==null?void 0: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=yt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=jt(c),f=h.path(d,u),p=s.insert(()=>f,":first-child");return p.attr("class","outer-path"),o&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${a/2},${-n})`),wt(t,p),t.intersect=function(y){return W.info("lightningBolt intersect",t,y),dt.polygon(t,c,y)},s}g(r0,"lightningBolt");var DB=g((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"),PB=g((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"),RB=g((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),nf=10,lf=10;async function i0(e,t){const{labelStyles:r,nodeStyles:i}=St(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 x=t.width??0;t.width=(t.width??0)-o,t.width<lf&&(t.width=lf);const k=x/2/(2.5+x/50);t.height=(t.height??0)-a-k*3,t.height<nf&&(t.height=nf)}const{shapeSvg:n,bbox:l,label:c}=await Bt(e,t,Lt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,u=h/2,d=u/(2.5+h/50),f=(t!=null&&t.height?t==null?void 0:t.height:l.height)+d+a*2,p=f*.1;let y;const{cssStyles:C}=t;if(t.look==="handDrawn"){const x=Ct.svg(n),b=PB(0,0,h,f,u,d,p),k=RB(0,d,h,f,u,d),T=yt(t,{}),v=x.path(b,T),E=x.path(k,T);n.insert(()=>E,":first-child").attr("class","line"),y=n.insert(()=>v,":first-child"),y.attr("class","basic label-container"),C&&y.attr("style",C)}else{const x=DB(0,0,h,f,u,d,p);y=n.insert("path",":first-child").attr("d",x).attr("class","basic label-container outer-path").attr("style",ce(C)).attr("style",i)}return y.attr("label-offset-y",d),y.attr("transform",`translate(${-h/2}, ${-(f/2+d)})`),wt(t,y),c.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+d-(l.y-(l.top??0))})`),t.intersect=function(x){const b=dt.rect(t,x),k=b.x-(t.x??0);if(u!=0&&(Math.abs(k)<(t.width??0)/2||Math.abs(k)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-d)){let T=d*d*(1-k*k/(u*u));T>0&&(T=Math.sqrt(T)),T=d-T,x.y-(t.y??0)>0&&(T=-T),b.y+=T}return b},n}g(i0,"linedCylinder");async function s0(e,t){const{labelStyles:r,nodeStyles:i}=St(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 T=t.width;t.width=(T??0)*10/11-o*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-a*2,t.height<10&&(t.height=10)}const{shapeSvg:n,bbox:l,label:c}=await Bt(e,t,Lt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(o??0)*2,u=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(a??0)*2,d=t.look==="neo"?u/4:u/8,f=u+d,{cssStyles:p}=t,y=Ct.svg(n),C=yt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=[{x:-h/2-h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:f/2},...si(-h/2-h/2*.1,f/2,h/2+h/2*.1,f/2,d,.8),{x:h/2+h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:-f/2},{x:-h/2,y:-f/2},{x:-h/2,y:f/2*1.1},{x:-h/2,y:-f/2}],b=y.polygon(x.map(T=>[T.x,T.y]),C),k=n.insert(()=>b,":first-child");return k.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.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))})`),wt(t,k),t.intersect=function(T){return dt.polygon(t,x,T)},n}g(s0,"linedWaveEdgedRect");async function o0(e,t){const{labelStyles:r,nodeStyles:i}=St(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==null?void 0:t.width)??0)-o*2-2*n,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2-2*n,10));const{shapeSvg:l,bbox:c,label:h}=await Bt(e,t,Lt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+o*2+2*n,d=(t!=null&&t.height?t==null?void 0:t.height:c.height)+a*2+2*n,f=u-2*n,p=d-2*n,y=-f/2,C=-p/2,{cssStyles:x}=t,b=Ct.svg(l),k=yt(t,{}),T=[{x:y-n,y:C+n},{x:y-n,y:C+p+n},{x:y+f-n,y:C+p+n},{x:y+f-n,y:C+p},{x:y+f,y:C+p},{x:y+f,y:C+p-n},{x:y+f+n,y:C+p-n},{x:y+f+n,y:C-n},{x:y+n,y:C-n},{x:y+n,y:C},{x:y,y:C},{x:y,y:C+n}],v=[{x:y,y:C+n},{x:y+f-n,y:C+n},{x:y+f-n,y:C+p},{x:y+f,y:C+p},{x:y+f,y:C},{x:y,y:C}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const E=jt(T);let L=b.path(E,k);const A=jt(v);let H=b.path(A,k);t.look!=="handDrawn"&&(L=xh(L),H=xh(H));const q=l.insert("g",":first-child");return q.insert(()=>L),q.insert(()=>H),q.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&q.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))})`),wt(t,q),t.intersect=function(R){return dt.polygon(t,T,R)},l}g(o0,"multiRect");async function a0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Bt(e,t,Lt(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==null?void 0:t.width)??0)-l*2,t.height=((t==null?void 0:t.height)??0)-c*3);const u=Math.max(o.width,(t==null?void 0:t.width)??0)+l*2,d=Math.max(o.height,(t==null?void 0:t.height)??0)+c*3,f=t.look==="neo"?d/4:d/8,p=d+(h?f/2:-f/2),y=-u/2,C=-p/2,x=10,{cssStyles:b}=t,k=si(y-x,C+p+x,y+u-x,C+p+x,f,.8),T=k==null?void 0:k[k.length-1],v=[{x:y-x,y:C+x},{x:y-x,y:C+p+x},...k,{x:y+u-x,y:T.y-x},{x:y+u,y:T.y-x},{x:y+u,y:T.y-2*x},{x:y+u+x,y:T.y-2*x},{x:y+u+x,y:C-x},{x:y+x,y:C-x},{x:y+x,y:C},{x:y,y:C},{x:y,y:C+x}],E=[{x:y,y:C+x},{x:y+u-x,y:C+x},{x:y+u-x,y:T.y-x},{x:y+u,y:T.y-x},{x:y+u,y:C},{x:y,y:C}],L=Ct.svg(s),A=yt(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const H=jt(v),q=L.path(H,A),R=jt(E),ot=L.path(R,A),U=s.insert(()=>q,":first-child");return U.insert(()=>ot),U.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",i),U.attr("transform",`translate(0,${-f/2})`),a.attr("transform",`translate(${-(o.width/2)-x-(o.x-(o.left??0))}, ${-(o.height/2)+x-f/2-(o.y-(o.top??0))})`),wt(t,U),t.intersect=function(O){return dt.polygon(t,v,O)},s}g(a0,"multiWaveEdgedRectangle");async function n0(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=St(t);t.labelStyle=i,t.useHtmlLabels||Te(re())||(t.centerLabel=!0);const{shapeSvg:a,bbox:n,label:l}=await Bt(e,t,Lt(t)),c=Math.max(n.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(n.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-c/2,d=-h/2,{cssStyles:f}=t,p=Ct.svg(a),y=yt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=p.rectangle(u,d,c,h,y),x=a.insert(()=>C,":first-child");return x.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),s&&t.look!=="handDrawn"&&x.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))})`),wt(t,x),t.intersect=function(b){return dt.rect(t,b)},a}g(n0,"note");var NB=g((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 l0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Bt(e,t,Lt(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 f=Ct.svg(s),p=yt(t,{}),y=NB(0,0,l),C=f.path(y,p);u=s.insert(()=>C,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),d&&u.attr("style",d)}else u=wr(s,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),wt(t,u),t.calcIntersect=function(f,p){const y=f.width,C=[{x:y/2,y:0},{x:y,y:-y/2},{x:y/2,y:-y},{x:0,y:-y/2}],x=dt.polygon(f,C,p);return{x:x.x-.5,y:x.y-.5}},t.intersect=function(f){return this.calcIntersect(t,f)},s}g(l0,"question");async function h0(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(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,p=-Math.max(h,(t.width??0)-d)/2,y=-u/2,C=y/2,x=[{x:p+C,y},{x:p,y:0},{x:p+C,y:-y},{x:-p,y:-y},{x:-p,y}],{cssStyles:b}=t,k=Ct.svg(n),T=yt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const v=jt(x),E=k.path(v,T),L=n.insert(()=>E,":first-child");return L.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${-C/2},0)`),c.attr("transform",`translate(${-C/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),wt(t,L),t.intersect=function(A){return dt.polygon(t,x,A)},n}g(h0,"rect_left_inv_arrow");async function c0(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Qr(n,c,t.labelStyle,!0,!0);let u={width:0,height:0};if(Te(Ht())){const A=h.children[0],H=Dt(h);u=A.getBoundingClientRect(),H.attr("width",u.width),H.attr("height",u.height)}W.info("Text 2",l);const d=l||[],f=h.getBBox(),p=await Qr(n,Array.isArray(d)?d.join("<br/>"):d,t.labelStyle,!0,!0),y=p.children[0],C=Dt(p);u=y.getBoundingClientRect(),C.attr("width",u.width),C.attr("height",u.height);const x=(t.padding||0)/2;Dt(p).attr("transform","translate( "+(u.width>f.width?0:(f.width-u.width)/2)+", "+(f.height+x+5)+")"),Dt(h).attr("transform","translate( "+(u.width<f.width?0:-(f.width-u.width)/2)+", 0)"),u=n.node().getBBox(),n.attr("transform","translate("+-u.width/2+", "+(-u.height/2-x+3)+")");const b=u.width+(t.padding||0),k=u.height+(t.padding||0),T=-u.width/2-x,v=-u.height/2-x;let E,L;if(t.look==="handDrawn"){const A=Ct.svg(o),H=yt(t,{}),q=A.path(Ke(T,v,b,k,t.rx||0),H),R=A.line(-u.width/2-x,-u.height/2-x+f.height+x,u.width/2+x,-u.height/2-x+f.height+x,H);L=o.insert(()=>(W.debug("Rough node insert CXC",q),R),":first-child"),E=o.insert(()=>(W.debug("Rough node insert CXC",q),q),":first-child")}else E=a.insert("rect",":first-child"),L=a.insert("line"),E.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-x).attr("y",-u.height/2-x).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),L.attr("class","divider").attr("x1",-u.width/2-x).attr("x2",u.width/2+x).attr("y1",-u.height/2-x+f.height+x).attr("y2",-u.height/2-x+f.height+x);return wt(t,E),t.intersect=function(A){return dt.rect(t,A)},o}g(c0,"rectWithTitle");async function u0(e,t,{config:{themeVariables:r}}){const i=(r==null?void 0:r.radius)??5,s={rx:i,ry:i,labelPaddingX:((t==null?void 0:t.padding)??0)*1,labelPaddingY:((t==null?void 0:t.padding)??0)*1};return Ts(e,t,s)}g(u0,"roundedRect");var ai=8;async function d0(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(t)),c=((t==null?void 0:t.width)??n.width)+s*2+(t.look==="neo"?ai:ai*2),h=((t==null?void 0:t.height)??n.height)+o*2,u=c-ai,d=h,f=ai-c/2,p=-h/2,{cssStyles:y}=t,C=Ct.svg(a),x=yt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const b=[{x:f,y:p},{x:f+u,y:p},{x:f+u,y:p+d},{x:f-ai,y:p+d},{x:f-ai,y:p},{x:f,y:p},{x:f,y:p+d}],k=C.polygon(b.map(v=>[v.x,v.y]),x),T=a.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path").attr("style",ce(y)),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),y&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),l.attr("transform",`translate(${ai/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),wt(t,T),t.intersect=function(v){return dt.rect(t,v)},a}g(d0,"shadedProcess");async function f0(e,t){const{labelStyles:r,nodeStyles:i}=St(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==null?void 0:t.width)??0)-o*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-a*2,10));const{shapeSvg:n,bbox:l,label:c}=await Bt(e,t,Lt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,u=((t!=null&&t.height?t==null?void 0:t.height:l.height)+a*2)*1.5,d=h,f=u/1.5,p=-d/2,y=-f/2,{cssStyles:C}=t,x=Ct.svg(n),b=yt(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const k=[{x:p,y},{x:p,y:y+f},{x:p+d,y:y+f},{x:p+d,y:y-f/2}],T=jt(k),v=x.path(T,b),E=n.insert(()=>v,":first-child");return E.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",C),i&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",i),E.attr("transform",`translate(0, ${f/4})`),c.attr("transform",`translate(${-d/2+(t.padding??0)-(l.x-(l.left??0))}, ${-f/4+(t.padding??0)-(l.y-(l.top??0))})`),wt(t,E),t.intersect=function(L){return dt.polygon(t,k,L)},n}g(f0,"slopedRect");async function p0(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 Ts(e,t,o)}g(p0,"squareRect");async function g0(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(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,f=Ct.svg(n),p=yt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=[{x:-h/2+u,y:-c/2},{x:h/2-u,y:-c/2},...pr(-h/2+u,0,u,50,90,270),{x:h/2-u,y:c/2},...pr(h/2-u,0,u,50,270,450)],C=jt(y),x=f.path(C,p),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),wt(t,b),t.intersect=function(k){return dt.polygon(t,y,k)},n}g(g0,"stadium");async function m0(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return Ts(e,t,r)}g(m0,"state");function y0(e,t,{config:{themeVariables:r}}){var b,k;const{labelStyles:i,nodeStyles:s}=St(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=yt(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const f=u.circle(0,0,t.width,{...d,stroke:a,strokeWidth:2}),p=n??l,y=(t.width??0)*5/14,C=u.circle(0,0,y,{...d,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),x=h.insert(()=>f,":first-child");if(x.insert(()=>C),t.look!=="handDrawn"&&x.attr("class","outer-path"),o&&x.selectAll("path").attr("style",o),s&&x.selectAll("path").attr("style",s),t.width<25&&c&&t.look!=="handDrawn"){const T=((k=(b=e.node())==null?void 0:b.ownerSVGElement)==null?void 0:k.id)??"",v=T?`${T}-drop-shadow-small`:"drop-shadow-small";x.attr("style",`filter:url(#${v})`)}return wt(t,x),t.intersect=function(T){return dt.circle(t,(t.width??0)/2,T)},h}g(y0,"stateEnd");function x0(e,t,{config:{themeVariables:r}}){var n,l;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 h=Ct.svg(o).circle(0,0,t.width,NT(i));a=o.insert(()=>h),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 c=((l=(n=e.node())==null?void 0:n.ownerSVGElement)==null?void 0:l.id)??"",h=c?`${c}-drop-shadow-small`:"drop-shadow-small";a.attr("style",`filter:url(#${h})`)}return wt(t,a),t.intersect=function(c){return dt.circle(t,(t.width??7)/2,c)},o}g(x0,"stateStart");var zi=8;async function C0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const s=(t==null?void 0:t.padding)??8,o=t.look==="neo"?28:s,a=t.look==="neo"?12:s,{shapeSvg:n,bbox:l}=await Bt(e,t,Lt(t)),c=Math.max(l.width+2*zi+o,t.width??0),h=Math.max(l.height+a,t.height??0),u=c-2*zi,d=h,f=-c/2,p=-h/2,y=[{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 C=Ct.svg(n),x=yt(t,{}),b=C.rectangle(f,p,u+16,d,x),k=C.line(f+zi,p,f+zi,p+d,x),T=C.line(f+zi+u,p,f+zi+u,p+d,x);n.insert(()=>k,":first-child"),n.insert(()=>T,":first-child");const v=n.insert(()=>b,":first-child"),{cssStyles:E}=t;v.attr("class","basic label-container").attr("style",ce(E)),wt(t,v)}else{const C=wr(n,u,d,y);i&&C.attr("style",i),wt(t,C)}return t.intersect=function(C){return dt.polygon(t,y,C)},n}g(C0,"subroutine");var al=.2;async function b0(e,t){const{labelStyles:r,nodeStyles:i}=St(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==null?void 0:t.height)??0)-a*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-o*2-al*(t.height+a*2),10));const{shapeSvg:n,bbox:l}=await Bt(e,t,Lt(t)),c=(t!=null&&t.height?t==null?void 0:t.height:l.height)+a*2,h=al*c,u=al*c,f=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2+h-h,p=c,y=-f/2,C=-p/2,{cssStyles:x}=t,b=Ct.svg(n),k=yt(t,{}),T=[{x:y-h/2,y:C},{x:y+f+h/2,y:C},{x:y+f+h/2,y:C+p},{x:y-h/2,y:C+p}],v=[{x:y+f-h/2,y:C+p},{x:y+f+h/2,y:C+p},{x:y+f+h/2,y:C+p-u}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const E=jt(T),L=b.path(E,k),A=jt(v),H=b.path(A,{...k,fillStyle:"solid"}),q=n.insert(()=>H,":first-child");return q.insert(()=>L,":first-child"),q.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",i),wt(t,q),t.intersect=function(R){return dt.polygon(t,T,R)},n}g(b0,"taggedRect");async function k0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Bt(e,t,Lt(t)),n=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/8,h=.2*n,u=.2*l,d=l+c,{cssStyles:f}=t,p=Ct.svg(s),y=yt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:-n/2-n/2*.1,y:d/2},...si(-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}],x=-n/2+n/2*.1,b=-d/2-u*.4,k=[{x:x+n-h,y:(b+l)*1.3},{x:x+n,y:b+l-u},{x:x+n,y:(b+l)*.9},...si(x+n,(b+l)*1.25,x+n-h,(b+l)*1.3,-l*.02,.5)],T=jt(C),v=p.path(T,y),E=jt(k),L=p.path(E,{...y,fillStyle:"solid"}),A=s.insert(()=>L,":first-child");return A.insert(()=>v,":first-child"),A.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.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))})`),wt(t,A),t.intersect=function(H){return dt.polygon(t,C,H)},s}g(k0,"taggedWaveEdgedRectangle");async function w0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Bt(e,t,Lt(t)),a=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)||0),n=Math.max(o.height+(t.padding??0),(t==null?void 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),wt(t,h),t.intersect=function(u){return dt.rect(t,u)},s}g(w0,"text");var qB=g((e,t,r,i,s,o)=>`M${e},${t}
215
+ a${s},${o} 0,0,1 0,${-i}
216
+ l${r},0
217
+ a${s},${o} 0,0,1 0,${i}
218
+ M${r},${-i}
219
+ a${s},${o} 0,0,0 0,${i}
220
+ l${-r},0`,"createCylinderPathD"),zB=g((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"),WB=g((e,t,r,i,s,o)=>[`M${e+r/2},${-i/2}`,`a${s},${o} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),hf=5,cf=10;async function S0(e,t){const{labelStyles:r,nodeStyles:i}=St(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<hf&&(t.height=hf)),t.width){const x=a/2/(2.5+a/50);t.width=t.width-o-x*3,t.width<cf&&(t.width=cf)}const{shapeSvg:n,bbox:l,label:c}=await Bt(e,t,Lt(t)),h=Math.max(t.height??0,l.height)+o,u=h/2,d=u/(2.5+h/50),f=Math.max(t.width??0,l.width)+d+o,{cssStyles:p}=t;let y;if(t.look==="handDrawn"){const C=Ct.svg(n),x=zB(0,0,f,h,d,u),b=WB(0,0,f,h,d,u),k=C.path(x,yt(t,{})),T=C.path(b,yt(t,{fill:"none"}));y=n.insert(()=>T,":first-child"),y=n.insert(()=>k,":first-child"),y.attr("class","basic label-container"),p&&y.attr("style",p)}else{const C=qB(0,0,f,h,d,u);y=n.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",ce(p)).attr("style",i),y.attr("class","basic label-container outer-path"),p&&y.selectAll("path").attr("style",p),i&&y.selectAll("path").attr("style",i)}return y.attr("label-offset-x",d),y.attr("transform",`translate(${-f/2}, ${h/2} )`),c.attr("transform",`translate(${-(l.width/2)-d-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),wt(t,y),t.intersect=function(C){const x=dt.rect(t,C),b=x.y-(t.y??0);if(u!=0&&(Math.abs(b)<(t.height??0)/2||Math.abs(b)==(t.height??0)/2&&Math.abs(x.x-(t.x??0))>(t.width??0)/2-d)){let k=d*d*(1-b*b/(u*u));k!=0&&(k=Math.sqrt(Math.abs(k))),k=d-k,C.x-(t.x??0)>0&&(k=-k),x.x+=k}return x},n}g(S0,"tiltedCylinder");async function T0(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(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:f}=t;if(t.look==="handDrawn"){const p=Ct.svg(n),y=yt(t,{}),C=jt(u),x=p.path(C,y);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=wr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,wt(t,d),t.intersect=function(p){return dt.polygon(t,u,p)},n}g(T0,"trapezoid");async function _0(e,t){const{labelStyles:r,nodeStyles:i}=St(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 Bt(e,t,Lt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+o*2,d=(t!=null&&t.height?t==null?void 0:t.height:h.height)+a*2,{cssStyles:f}=t,p=Ct.svg(c),y=yt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{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}],x=jt(C),b=p.path(x,y),k=c.insert(()=>b,":first-child");return k.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),wt(t,k),t.intersect=function(T){return dt.polygon(t,C,T)},c}g(_0,"trapezoidalPentagon");var uf=10,df=10;async function v0(e,t){var T;const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-o)/2,t.width<df&&(t.width=df),t.height=(t==null?void 0:t.height)??0,t.height<uf&&(t.height=uf));const{shapeSvg:a,bbox:n,label:l}=await Bt(e,t,Lt(t)),c=br((T=Ht().flowchart)==null?void 0:T.htmlLabels),h=(t!=null&&t.width?t==null?void 0:t.width:n.width)+o,u=t!=null&&t.height?t==null?void 0:t.height:h+n.height,d=u,f=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-u}],{cssStyles:p}=t,y=Ct.svg(a),C=yt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=jt(f),b=y.path(x,C),k=a.insert(()=>b,":first-child").attr("transform",`translate(${-u/2}, ${u/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=h,t.height=u,wt(t,k),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(v){return W.info("Triangle intersect",t,f,v),dt.polygon(t,f,v)},a}g(v0,"triangle");async function B0(e,t){const{labelStyles:r,nodeStyles:i}=St(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==null?void 0:t.width)??0)-o*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-a*2,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:c,label:h}=await Bt(e,t,Lt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+(o??0)*2,d=(t!=null&&t.height?t==null?void 0:t.height:c.height)+(a??0)*2,f=t.look==="neo"?d/4:d/8,p=d+(n?f:-f),{cssStyles:y}=t,x=14-u,b=x>0?x/2:0,k=Ct.svg(l),T=yt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const v=[{x:-u/2-b,y:p/2},...si(-u/2-b,p/2,u/2+b,p/2,f,.8),{x:u/2+b,y:-p/2},{x:-u/2-b,y:-p/2}],E=jt(v),L=k.path(E,T),A=l.insert(()=>L,":first-child");return A.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(0,${-f/2})`),h.attr("transform",`translate(${-u/2+(t.padding??0)-(c.x-(c.left??0))},${-d/2+(t.padding??0)-f-(c.y-(c.top??0))})`),wt(t,A),t.intersect=function(H){return dt.polygon(t,v,H)},l}g(B0,"waveEdgedRectangle");async function L0(e,t){const{labelStyles:r,nodeStyles:i}=St(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==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const T=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-a-T*(20/9)),t.width=t.width-o*2}const{shapeSvg:n,bbox:l}=await Bt(e,t,Lt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,h=(t!=null&&t.height?t==null?void 0:t.height:l.height)+a,u=h/8,d=h+u*2,{cssStyles:f}=t,p=Ct.svg(n),y=yt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:-c/2,y:d/2},...si(-c/2,d/2,c/2,d/2,u,1),{x:c/2,y:-d/2},...si(c/2,-d/2,-c/2,-d/2,u,-1)],x=jt(C),b=p.path(x,y),k=n.insert(()=>b,":first-child");return k.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),wt(t,k),t.intersect=function(T){return dt.polygon(t,C,T)},n}g(L0,"waveRectangle");var se=10;async function A0(e,t){const{labelStyles:r,nodeStyles:i}=St(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==null?void 0:t.width)??0)-s*2-se,10),t.height=Math.max(((t==null?void 0:t.height)??0)-o*2-se,10));const{shapeSvg:a,bbox:n,label:l}=await Bt(e,t,Lt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2+se,h=(t!=null&&t.height?t==null?void 0:t.height:n.height)+o*2+se,u=c-se,d=h-se,f=-u/2,p=-d/2,{cssStyles:y}=t,C=Ct.svg(a),x=yt(t,{}),b=[{x:f-se,y:p-se},{x:f-se,y:p+d},{x:f+u,y:p+d},{x:f+u,y:p-se}],k=`M${f-se},${p-se} L${f+u},${p-se} L${f+u},${p+d} L${f-se},${p+d} L${f-se},${p-se}
221
+ M${f-se},${p} L${f+u},${p}
222
+ M${f},${p-se} L${f},${p+d}`;t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const T=C.path(k,x),v=a.insert(()=>T,":first-child");return v.attr("transform",`translate(${se/2}, ${se/2})`),v.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(n.width/2)+se/2-(n.x-(n.left??0))}, ${-(n.height/2)+se/2-(n.y-(n.top??0))})`),wt(t,v),t.intersect=function(E){return dt.polygon(t,b,E)},a}g(A0,"windowPane");var ff=new Set(["redux-color","redux-dark-color"]),HB=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Ec(e,t){var ct,_t,qt,Et;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:s}=re(),{rowEven:o,rowOdd:a,nodeBorder:n,borderColorArray:l}=s;if(t.look==="handDrawn"){const{themeVariables:ut}=re(),{background:bt}=ut,Ft={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${bt}`]};await Ec(e,Ft)}const c=re();t.useHtmlLabels=c.htmlLabels;let h=((ct=c.er)==null?void 0:ct.diagramPadding)??10,u=((_t=c.er)==null?void 0:_t.entityPadding)??6;const{cssStyles:d}=t,{labelStyles:f,nodeStyles:p}=St(t);if(r.attributes.length===0&&t.label){const ut={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};Dr(t.label,c)+ut.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);const bt=await Ts(e,t,ut);if(i!=null&&ff.has(i)){const Ft=r.colorIndex??0;bt.attr("data-color-id",`color-${Ft%l.length}`)}if(!br(c.htmlLabels)){const Ft=bt.select("text"),Nt=(qt=Ft.node())==null?void 0:qt.getBBox();Ft.attr("transform",`translate(${-Nt.width/2}, 0)`)}return bt}c.htmlLabels||(h*=1.25,u*=1.25);let y=Lt(t);y||(y="node default");const C=e.insert("g").attr("class",y).attr("id",t.domId||t.id),x=await Hi(C,t.label??"",c,0,0,["name"],f);x.height+=u;let b=0;const k=[],T=[];let v=0,E=0,L=0,A=0,H=!0,q=!0;for(const ut of r.attributes){const bt=await Hi(C,ut.type,c,0,b,["attribute-type"],f);v=Math.max(v,bt.width+h);const Ft=await Hi(C,ut.name,c,0,b,["attribute-name"],f);E=Math.max(E,Ft.width+h);const Nt=await Hi(C,ut.keys.join(),c,0,b,["attribute-keys"],f);L=Math.max(L,Nt.width+h);const Kt=await Hi(C,ut.comment,c,0,b,["attribute-comment"],f);A=Math.max(A,Kt.width+h);const Y=Math.max(bt.height,Ft.height,Nt.height,Kt.height)+u;T.push({yOffset:b,rowHeight:Y}),b+=Y}let R=4;L<=h&&(H=!1,L=0,R--),A<=h&&(q=!1,A=0,R--);const ot=C.node().getBBox();if(x.width+h*2-(v+E+L+A)>0){const ut=x.width+h*2-(v+E+L+A);v+=ut/R,E+=ut/R,L>0&&(L+=ut/R),A>0&&(A+=ut/R)}const U=v+E+L+A,O=Ct.svg(C),$=yt(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let B=0;T.length>0&&(B=T.reduce((ut,bt)=>ut+((bt==null?void 0:bt.rowHeight)??0),0));const N=Math.max(ot.width+h*2,(t==null?void 0:t.width)||0,U),F=Math.max((B??0)+x.height,(t==null?void 0:t.height)||0),D=-N/2,K=-F/2;if(C.selectAll("g:not(:first-child)").each((ut,bt,Ft)=>{const Nt=Dt(Ft[bt]),Kt=Nt.attr("transform");let Y=0,xt=0;if(Kt){const Yt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Kt);Yt&&(Y=parseFloat(Yt[1]),xt=parseFloat(Yt[2]),Nt.attr("class").includes("attribute-name")?Y+=v:Nt.attr("class").includes("attribute-keys")?Y+=v+E:Nt.attr("class").includes("attribute-comment")&&(Y+=v+E+L))}Nt.attr("transform",`translate(${D+h/2+Y}, ${xt+K+x.height+u/2})`)}),C.select(".name").attr("transform","translate("+-x.width/2+", "+(K+u/2)+")"),i!=null&&ff.has(i)){const ut=r.colorIndex??0;C.attr("data-color-id",`color-${ut%l.length}`)}const lt=O.rectangle(D,K,N,F,$),ht=C.insert(()=>lt,":first-child").attr("class","outer-path").attr("style",d.join(""));k.push(0);for(const[ut,bt]of T.entries()){const Nt=(ut+1)%2===0&&bt.yOffset!==0,Kt=O.rectangle(D,x.height+K+(bt==null?void 0:bt.yOffset),N,bt==null?void 0:bt.rowHeight,{...$,fill:Nt?o:a,stroke:n});C.insert(()=>Kt,"g.label").attr("style",d.join("")).attr("class",`row-rect-${Nt?"even":"odd"}`)}const mt=1e-4;let ft=Yi(D,x.height+K,N+D,x.height+K,mt),pt=O.polygon(ft.map(ut=>[ut.x,ut.y]),$);if(C.insert(()=>pt).attr("class","divider"),ft=Yi(v+D,x.height+K,v+D,F+K,mt),pt=O.polygon(ft.map(ut=>[ut.x,ut.y]),$),C.insert(()=>pt).attr("class","divider"),H){const ut=v+E+D;ft=Yi(ut,x.height+K,ut,F+K,mt),pt=O.polygon(ft.map(bt=>[bt.x,bt.y]),$),C.insert(()=>pt).attr("class","divider")}if(q){const ut=v+E+L+D;ft=Yi(ut,x.height+K,ut,F+K,mt),pt=O.polygon(ft.map(bt=>[bt.x,bt.y]),$),C.insert(()=>pt).attr("class","divider")}for(const ut of k){const bt=x.height+K+ut;ft=Yi(D,bt,N+D,bt,mt),pt=O.polygon(ft.map(Ft=>[Ft.x,Ft.y]),$),C.insert(()=>pt).attr("class","divider")}if(wt(t,ht),p&&t.look!=="handDrawn")if(i!=null&&HB.has(i))C.selectAll("path").attr("style",p);else{const ut=p.split(";"),bt=(Et=ut==null?void 0:ut.filter(Ft=>Ft.includes("stroke")))==null?void 0:Et.map(Ft=>`${Ft}`).join("; ");C.selectAll("path").attr("style",bt??""),C.selectAll(".row-rect-even path").attr("style",p)}return t.intersect=function(ut){return dt.rect(t,ut)},C}g(Ec,"erBox");async function Hi(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!==Qu(t)&&(t=Qu(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=n.node().appendChild(await or(n,t,{width:Dr(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(br(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=Dt(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}g(Hi,"addText");function Yi(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}]}g(Yi,"lineToPolygon");async function E0(e,t,r,i,s=r.class.padding??12){const o=i?0:3,a=e.insert("g").attr("class",Lt(t)).attr("id",t.domId||t.id);let n=null,l=null,c=null,h=null,u=0,d=0,f=0;if(n=a.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await Qs(n,{text:`«${b}»`},0),u=n.node().getBBox().height}l=a.insert("g").attr("class","label-group text"),await Qs(l,t,0,["font-weight: bolder"]);const p=l.node().getBBox();d=p.height,c=a.insert("g").attr("class","members-group text");let y=0;for(const b of t.members){const k=await Qs(c,b,y,[b.parseClassifier()]);y+=k+o}f=c.node().getBBox().height,f<=0&&(f=s/2),h=a.insert("g").attr("class","methods-group text");let C=0;for(const b of t.methods){const k=await Qs(h,b,C,[b.parseClassifier()]);C+=k+o}let x=a.node().getBBox();if(n!==null){const b=n.node().getBBox();n.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-p.width/2}, ${u})`),x=a.node().getBBox(),c.attr("transform",`translate(0, ${u+d+s*2})`),x=a.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(f?f+s*4:s*2)})`),x=a.node().getBBox(),{shapeSvg:a,bbox:x}}g(E0,"textHelper");async function Qs(e,t,r,i=[]){const s=e.insert("g").attr("class","label").attr("style",i.join("; ")),o=re();let a="useHtmlLabels"in t?t.useHtmlLabels:br(o.htmlLabels)??!0,n="";"text"in t?n=t.text:n=t.label,!a&&n.startsWith("\\")&&(n=n.substring(1)),fo(n)&&(a=!0);const l=await or(s,Uh(ri(n)),{width:Dr(n,o)+50,classes:"markdown-node-label",useHtmlLabels:a},o);let c,h=1;if(a){const u=l.children[0],d=Dt(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1),await vc(u),c=u.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{i.includes("font-weight: bolder")&&Dt(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}g(Qs,"addText");async function F0(e,t){var O,$;const r=Ht(),{themeVariables:i}=r,{useGradient:s}=i,o=r.class.padding??12,a=o,n=t.useHtmlLabels??br(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:c,bbox:h}=await E0(e,t,r,n,a),{labelStyles:u,nodeStyles:d}=St(t);t.labelStyle=u,t.cssStyles=l.styles||"";const f=((O=l.styles)==null?void 0:O.join(";"))||d||"";t.cssStyles||(t.cssStyles=f.replaceAll("!important","").split(";"));const p=l.members.length===0&&l.methods.length===0&&!(($=r.class)!=null&&$.hideEmptyMembersBox),y=Ct.svg(c),C=yt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=Math.max(t.width??0,h.width);let b=Math.max(t.height??0,h.height);const k=(t.height??0)>h.height;l.members.length===0&&l.methods.length===0?b+=a:l.members.length>0&&l.methods.length===0&&(b+=a*2);const T=-x/2,v=-b/2;let E=p?o*2:l.members.length===0&&l.methods.length===0?-o:0;k&&(E=o*2);const L=y.rectangle(T-o,v-o-(p?o:l.members.length===0&&l.methods.length===0?-o/2:0),x+2*o,b+2*o+E,C),A=c.insert(()=>L,":first-child");A.attr("class","basic label-container outer-path");const H=A.node().getBBox(),q=c.select(".annotation-group").node().getBBox().height-(p?o/2:0)||0,R=c.select(".label-group").node().getBBox().height-(p?o/2:0)||0,ot=c.select(".members-group").node().getBBox().height-(p?o/2:0)||0,U=(q+R+v+o-(v-o-(p?o:l.members.length===0&&l.methods.length===0?-o/2:0)))/2;if(c.selectAll(".text").each((B,N,F)=>{var ft,pt;const D=Dt(F[N]),K=D.attr("transform");let lt=0;if(K){const _t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(K);_t&&(lt=parseFloat(_t[2]))}let ht=lt+v+o-(p?o:l.members.length===0&&l.methods.length===0?-o/2:0);if(D.attr("class").includes("methods-group")){const ct=Math.max(ot,a/2);k?ht=Math.max(U,q+R+ct+v+a*2+o)+a*2:ht=q+R+ct+v+a*4+o}l.members.length===0&&l.methods.length===0&&((ft=r.class)!=null&&ft.hideEmptyMembersBox)&&(l.annotations.length>0?ht=lt-a:ht=lt),n||(ht-=4);let mt=T;(D.attr("class").includes("label-group")||D.attr("class").includes("annotation-group"))&&(mt=-((pt=D.node())==null?void 0:pt.getBBox().width)/2||0,c.selectAll("text").each(function(ct,_t,qt){window.getComputedStyle(qt[_t]).textAnchor==="middle"&&(mt=0)})),D.attr("transform",`translate(${mt}, ${ht})`)}),l.members.length>0||l.methods.length>0||p){const B=q+R+v+o,N=y.line(H.x,B,H.x+H.width,B+.001,C);c.insert(()=>N).attr("class",`divider${t.look==="neo"&&!s?" neo-line":""}`).attr("style",f)}if(p||l.members.length>0||l.methods.length>0){const B=q+R+ot+v+a*2+o,N=y.line(H.x,k?Math.max(U,B):B,H.x+H.width,(k?Math.max(U,B):B)+.001,C);c.insert(()=>N).attr("class",`divider${t.look==="neo"&&!s?" neo-line":""}`).attr("style",f)}if(l.look!=="handDrawn"&&c.selectAll("path").attr("style",f),A.select(":nth-child(2)").attr("style",f),c.selectAll(".divider").select("path").attr("style",f),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",f),!n){const B=RegExp(/color\s*:\s*([^;]*)/),N=B.exec(f);if(N){const F=N[0].replace("color","fill");c.selectAll("tspan").attr("style",F)}else if(u){const F=B.exec(u);if(F){const D=F[0].replace("color","fill");c.selectAll("tspan").attr("style",D)}}}return wt(t,A),t.intersect=function(B){return dt.rect(t,B)},c}g(F0,"classBox");async function M0(e,t){var R,ot;const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const s=t,o=t,a=20,n=20,l="verifyMethod"in t,c=Lt(t),h=Ht(),{themeVariables:u}=h,{borderColorArray:d,requirementEdgeLabelBackground:f}=u,p=h.layout==="elk"?"start":"center",y=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let C;l?C=await cr(y,`&lt;&lt;${s.type}&gt;&gt;`,0,t.labelStyle):C=await cr(y,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let x=C;const b=await cr(y,s.name,x,t.labelStyle+"; font-weight: bold;");if(x+=b+n,l){const U=await cr(y,`${s.requirementId?`ID: ${s.requirementId}`:""}`,x,t.labelStyle,p);x+=U;const O=await cr(y,`${s.text?`Text: ${s.text}`:""}`,x,t.labelStyle,p);x+=O;const $=await cr(y,`${s.risk?`Risk: ${s.risk}`:""}`,x,t.labelStyle,p);x+=$,await cr(y,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,x,t.labelStyle,p)}else{const U=await cr(y,`${o.type?`Type: ${o.type}`:""}`,x,t.labelStyle,p);x+=U,await cr(y,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,x,t.labelStyle,p)}const k=(((R=y.node())==null?void 0:R.getBBox().width)??200)+a,T=(((ot=y.node())==null?void 0:ot.getBBox().height)??200)+a,v=-k/2,E=-T/2,L=Ct.svg(y),A=yt(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const H=L.rectangle(v,E,k,T,A),q=y.insert(()=>H,":first-child");if(q.attr("class","basic label-container outer-path").attr("style",i),d!=null&&d.length){const U=t.colorIndex??0;y.attr("data-color-id",`color-${U%d.length}`)}if(y.selectAll(".label").each((U,O,$)=>{const B=Dt($[O]),N=B.attr("transform");let F=0,D=0;if(N){const mt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(N);mt&&(F=parseFloat(mt[1]),D=parseFloat(mt[2]))}const K=D-T/2;let lt=v+a/2;(O===0||O===1)&&(lt=F),B.attr("transform",`translate(${lt}, ${K+a})`)}),x>C+b+n){const U=E+C+b+n;let O;if(t.look==="neo"){const N=[[v,U],[v+k,U],[v+k,U+.001],[v,U+.001]];O=L.polygon(N,A)}else O=L.line(v,U,v+k,U,A);y.insert(()=>O).attr("class","divider")}return wt(t,q),t.intersect=function(U){return dt.rect(t,U)},i&&t.look!=="handDrawn"&&(f||d!=null&&d.length)&&y.selectAll("path").attr("style",i),y}g(M0,"requirementBox");async function cr(e,t,r,i="",s="center"){if(t==="")return 0;const o=e.insert("g").attr("class","label").attr("style",i),a=Ht(),n=a.htmlLabels??!0,l=await or(o,Uh(ri(t)),{width:Dr(t,a)+50,classes:"markdown-node-label",useHtmlLabels:n,style:i},a);let c;if(n){const h=l.children[0],u=Dt(l);s==="start"&&Dt(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}g(cr,"addText");var YB=g(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 $0(e,t,{config:r}){var ot,U;const{labelStyles:i,nodeStyles:s}=St(t);t.labelStyle=i||"";const o=10,a=t.width;t.width=(t.width??200)-10;const{shapeSvg:n,bbox:l,label:c}=await Bt(e,t,Lt(t)),h=t.padding||10;let u="",d;"ticket"in t&&t.ticket&&((ot=r==null?void 0:r.kanban)!=null&&ot.ticketBaseUrl)&&(u=(U=r==null?void 0:r.kanban)==null?void 0:U.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 f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let p,y;d?{label:p,bbox:y}=await sl(d,"ticket"in t&&t.ticket||"",f):{label:p,bbox:y}=await sl(n,"ticket"in t&&t.ticket||"",f);const{label:C,bbox:x}=await sl(n,"assigned"in t&&t.assigned||"",f);t.width=a;const b=10,k=(t==null?void 0:t.width)||0,T=Math.max(y.height,x.height)/2,v=Math.max(l.height+b*2,(t==null?void 0:t.height)||0)+T,E=-k/2,L=-v/2;c.attr("transform","translate("+(h-k/2)+", "+(-T-l.height/2)+")"),p.attr("transform","translate("+(h-k/2)+", "+(-T+l.height/2)+")"),C.attr("transform","translate("+(h+k/2-x.width-2*o)+", "+(-T+l.height/2)+")");let A;const{rx:H,ry:q}=t,{cssStyles:R}=t;if(t.look==="handDrawn"){const O=Ct.svg(n),$=yt(t,{}),B=H||q?O.path(Ke(E,L,k,v,H||0),$):O.rectangle(E,L,k,v,$);A=n.insert(()=>B,":first-child"),A.attr("class","basic label-container").attr("style",R||null)}else{A=n.insert("rect",":first-child"),A.attr("class","basic label-container __APA__").attr("style",s).attr("rx",H??5).attr("ry",q??5).attr("x",E).attr("y",L).attr("width",k).attr("height",v);const O="priority"in t&&t.priority;if(O){const $=n.append("line"),B=E+2,N=L+Math.floor((H??0)/2),F=L+v-Math.floor((H??0)/2);$.attr("x1",B).attr("y1",N).attr("x2",B).attr("y2",F).attr("stroke-width","4").attr("stroke",YB(O))}}return wt(t,A),t.height=v,t.intersect=function(O){return dt.rect(t,O)},n}g($0,"kanbanItem");async function O0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await Bt(e,t,Lt(t)),l=o.width+10*a,c=o.height+8*a,h=.15*l,{cssStyles:u}=t,d=o.width+20,f=o.height+20,p=Math.max(l,d),y=Math.max(c,f);n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let C;const x=`M0 0
223
+ a${h},${h} 1 0,0 ${p*.25},${-1*y*.1}
224
+ a${h},${h} 1 0,0 ${p*.25},0
225
+ a${h},${h} 1 0,0 ${p*.25},0
226
+ a${h},${h} 1 0,0 ${p*.25},${y*.1}
227
+
228
+ a${h},${h} 1 0,0 ${p*.15},${y*.33}
229
+ a${h*.8},${h*.8} 1 0,0 0,${y*.34}
230
+ a${h},${h} 1 0,0 ${-1*p*.15},${y*.33}
231
+
232
+ a${h},${h} 1 0,0 ${-1*p*.25},${y*.15}
233
+ a${h},${h} 1 0,0 ${-1*p*.25},0
234
+ a${h},${h} 1 0,0 ${-1*p*.25},0
235
+ a${h},${h} 1 0,0 ${-1*p*.25},${-1*y*.15}
236
+
237
+ a${h},${h} 1 0,0 ${-1*p*.1},${-1*y*.33}
238
+ a${h*.8},${h*.8} 1 0,0 0,${-1*y*.34}
239
+ a${h},${h} 1 0,0 ${p*.1},${-1*y*.33}
240
+ H0 V0 Z`;if(t.look==="handDrawn"){const b=Ct.svg(s),k=yt(t,{}),T=b.path(x,k);C=s.insert(()=>T,":first-child"),C.attr("class","basic label-container").attr("style",ce(u))}else C=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return C.attr("transform",`translate(${-p/2}, ${-y/2})`),wt(t,C),t.calcIntersect=function(b,k){return dt.rect(b,k)},t.intersect=function(b){return W.info("Bang intersect",t,b),dt.rect(t,b)},s}g(O0,"bang");async function I0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await Bt(e,t,Lt(t)),l=o.width+2*a,c=o.height+2*a,h=.15*l,u=.25*l,d=.35*l,f=.2*l,{cssStyles:p}=t;let y;const C=`M0 0
241
+ a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
242
+ a${d},${d} 1 0,1 ${l*.4},${-1*l*.1}
243
+ a${u},${u} 1 0,1 ${l*.35},${l*.2}
244
+
245
+ a${h},${h} 1 0,1 ${l*.15},${c*.35}
246
+ a${f},${f} 1 0,1 ${-1*l*.15},${c*.65}
247
+
248
+ a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
249
+ a${d},${d} 1 0,1 ${-1*l*.5},0
250
+ a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
251
+
252
+ a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
253
+ a${f},${f} 1 0,1 ${l*.1},${-1*c*.65}
254
+ H0 V0 Z`;if(t.look==="handDrawn"){const x=Ct.svg(s),b=yt(t,{}),k=x.path(C,b);y=s.insert(()=>k,":first-child"),y.attr("class","basic label-container").attr("style",ce(p))}else y=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),y.attr("transform",`translate(${-l/2}, ${-c/2})`),wt(t,y),t.calcIntersect=function(x,b){return dt.rect(x,b)},t.intersect=function(x){return W.info("Cloud intersect",t,x),dt.rect(t,x)},s}g(I0,"cloud");async function D0(e,t){const{labelStyles:r,nodeStyles:i}=St(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await Bt(e,t,Lt(t)),l=o.width+8*a,c=o.height+2*a,h=5,u=t.look==="neo"?`
255
+ M${-l/2} ${c/2-h}
256
+ v${-c+2*h}
257
+ q0,-${h} ${h},-${h}
258
+ h${l-2*h}
259
+ q${h},0 ${h},${h}
260
+ v${c-h}
261
+ H${-l/2}
262
+ Z
263
+ `:`
264
+ M${-l/2} ${c/2-h}
265
+ v${-c+2*h}
266
+ q0,-${h} ${h},-${h}
267
+ h${l-2*h}
268
+ q${h},0 ${h},${h}
269
+ v${c-2*h}
270
+ q0,${h} ${-h},${h}
271
+ h${-(l-2*h)}
272
+ q${-h},0 ${-h},${-h}
273
+ Z
274
+ `;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()),wt(t,d),t.calcIntersect=function(f,p){return dt.rect(f,p)},t.intersect=function(f){return dt.rect(t,f)},s}g(D0,"defaultMindmapNode");async function P0(e,t){const r={padding:t.padding??0};return Ac(e,t,r)}g(P0,"mindmapCircle");var UB=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:p0},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:u0},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:g0},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:C0},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Dy},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Py},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Wy},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:ky},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Ly},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:Ty},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:Iy},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Ac},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:O0},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:I0},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:l0},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Uy},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:e0},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:t0},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:T0},{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:Qy},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Ny},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:w0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:_y},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:d0},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:x0},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:y0},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Hy},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:jy},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Fy},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:My},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:$y},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:r0},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:B0},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Yy},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:S0},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:i0},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Oy},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Ry},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:v0},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:A0},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:qy},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:_0},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:zy},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:f0},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:a0},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:o0},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:by},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Ey},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:k0},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:b0},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:L0},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:h0},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:s0}],jB=g(()=>{const t=[...Object.entries({state:m0,choice:vy,note:n0,composite:By,rectWithTitle:c0,labelRect:Jy,block_arrow:Sy,collapsedGroup:wy,iconSquare:Ky,iconCircle:Gy,icon:Xy,iconRounded:Vy,imageSquare:Zy,anchor:xy,kanbanItem:$0,mindmapCircle:P0,defaultMindmapNode:D0,classBox:F0,erBox:Ec,requirementBox:M0}),...UB.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(s=>[s,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),R0=jB();function XB(e){return e in R0}g(XB,"isValidShape");var ln=g(({flowchart:e})=>{var s,o;const t=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.top)??0,r=((o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),hn=new Map;async function Fc(e,t,r){let i,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?R0[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",ce(t.look)),t.tooltip&&s.attr("title",t.tooltip),hn.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}g(Fc,"insertNode");var rD=g((e,t)=>{hn.set(t.id,e)},"setNodeElem"),GB=g(()=>{hn.clear()},"clear"),pf=g(e=>{const t=hn.get(e.id);W.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"),VB=g(async(e,t)=>{const r=Ht(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,n=a,{labelStyles:l,nodeStyles:c,borderStyles:h,backgroundStyles:u}=St(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),f=br(r.flowchart.htmlLabels),p=t.direction==="LR",y=d.insert("g").attr("class","cluster-label swimlane-label"),C=await or(y,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let x=C.getBBox();if(f){const U=C.children[0],O=Dt(C);x=U.getBoundingClientRect(),O.attr("width",x.width),O.attr("height",x.height)}const b=t.padding??0,k=t.width<=x.width+b?x.width+b:t.width;t.width<=x.width+b?t.diff=(k-t.width)/2-b:t.diff=-b;const T=t.height,v=t.y-T/2,E=t.y+T/2,L=t.x-k/2,A=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:v+T/3,H=p?4:0,q=x.height+2*H;let R,ot;if(p){const U=Math.max(q,x.height+2*H),O=L+U,$=Math.max(0,k-U);if(t.look==="handDrawn"){const F=Ct.svg(d),D=yt(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:s}),K=yt(t,{roughness:.7,fill:"none",stroke:n,seed:s}),lt=F.rectangle(L,v,U,T,D);R=d.insert(()=>lt,":first-child");const ht=F.rectangle(O,v,$,T,K);ot=d.insert(()=>ht,":first-child"),R.select("path:nth-child(2)").attr("style",h.join(";")),R.select("path").attr("style",u.join(";").replace("fill","stroke"))}else R=d.insert("rect",":first-child"),ot=d.insert("rect",":first-child"),R.attr("class","swimlane-title").attr("style",c).attr("x",L).attr("y",v).attr("width",U).attr("height",T).attr("fill",o).attr("stroke",n),ot.attr("class","swimlane-body").attr("style",c).attr("x",O).attr("y",v).attr("width",$).attr("height",T).attr("fill","none").attr("stroke",n);const B=L+U/2,N=t.y;y.attr("transform",`translate(${B}, ${N}) rotate(-90) translate(${-x.width/2}, ${-x.height/2})`)}else{const U=Math.max(0,A-v),O=Math.min(q,U),$=v+O,B=Math.max(0,E-$),N=t.x-k/2;if(t.look==="handDrawn"){const K=Ct.svg(d),lt=yt(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:s}),ht=yt(t,{roughness:.7,fill:"none",stroke:n,seed:s}),mt=K.rectangle(N,v,k,O,lt);R=d.insert(()=>mt,":first-child");const ft=K.rectangle(N,$,k,B,ht);ot=d.insert(()=>ft,":first-child"),R.select("path:nth-child(2)").attr("style",h.join(";")),R.select("path").attr("style",u.join(";").replace("fill","stroke"))}else R=d.insert("rect",":first-child"),ot=d.insert("rect",":first-child"),R.attr("class","swimlane-title").attr("style",c).attr("x",N).attr("y",v).attr("width",k).attr("height",O).attr("fill",o).attr("stroke",n),ot.attr("class","swimlane-body").attr("style",c).attr("x",N).attr("y",$).attr("width",k).attr("height",B).attr("fill","none").attr("stroke",n);const F=t.x-x.width/2,D=v+(O-x.height)/2;y.attr("transform",`translate(${F}, ${D})`)}if(W.trace("Swimlane data ",t,JSON.stringify(t)),l){const U=y.select("span");U&&U.attr("style",l)}return t.offsetX=0,t.width=k,t.height=T,t.offsetY=x.height-b/2,t.intersect=function(U){return Ei(t,U)},{cluster:d,labelBBox:x}},"swimlane"),N0=g(async(e,t)=>{W.info("Creating subgraph rect for ",t.id,t);const r=Ht(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,{labelStyles:n,nodeStyles:l,borderStyles:c,backgroundStyles:h}=St(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=Te(r),f=u.insert("g").attr("class","cluster-label ");let p;t.labelType==="markdown"?p=await or(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width}):p=await Qr(f,t.label,t.labelStyle||"",!1,!0);let y=p.getBBox();if(Te(r)){const L=p.children[0],A=Dt(p);y=L.getBoundingClientRect(),A.attr("width",y.width),A.attr("height",y.height)}const C=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-C/2,k=t.y-x/2;W.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const L=Ct.svg(u),A=yt(t,{roughness:.7,fill:o,stroke:a,fillWeight:3,seed:s}),H=L.path(Ke(b,k,C,x,0),A);T=u.insert(()=>(W.debug("Rough node insert CXC",H),H),":first-child"),T.select("path:nth-child(2)").attr("style",c.join(";")),T.select("path").attr("style",h.join(";").replace("fill","stroke"))}else T=u.insert("rect",":first-child"),T.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",k).attr("width",C).attr("height",x);const{subGraphTitleTopMargin:v}=ln(r);if(f.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+v})`),n){const L=f.select("span");L&&L.attr("style",n)}const E=T.node().getBBox();return t.offsetX=0,t.width=E.width,t.height=E.height,t.offsetY=y.height-t.padding/2,t.intersect=function(L){return Ei(t,L)},{cluster:u,labelBBox:y}},"rect"),KB=g((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 Ei(t,n)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),ZB=g(async(e,t)=>{const r=Ht(),{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 f=await Qr(u,t.label,t.labelStyle,void 0,!0);let p=f.getBBox();if(Te(r)){const H=f.children[0],q=Dt(f);p=H.getBoundingClientRect(),q.attr("width",p.width),q.attr("height",p.height)}const y=0*t.padding,C=y/2,x=(t.width<=p.width+t.padding?p.width+t.padding:t.width)+y;t.width<=p.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+y,k=t.height+y-p.height-6,T=t.x-x/2,v=t.y-b/2;t.width=x;const E=t.y-t.height/2-C+p.height+2;let L;if(t.look==="handDrawn"){const H=t.cssClasses.includes("statediagram-cluster-alt"),q=Ct.svg(c),R=t.rx||t.ry?q.path(Ke(T,v,x,b,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:l,seed:s}):q.rectangle(T,v,x,b,{seed:s});L=c.insert(()=>R,":first-child");const ot=q.rectangle(T,E,x,k,{fill:H?o:a,fillStyle:H?"hachure":"solid",stroke:l,seed:s});L=c.insert(()=>R,":first-child"),d=c.insert(()=>ot)}else L=h.insert("rect",":first-child"),L.attr("class","outer").attr("x",T).attr("y",v).attr("width",x).attr("height",b).attr("data-look",t.look),d.attr("class","inner").attr("x",T).attr("y",E).attr("width",x).attr("height",k);u.attr("transform",`translate(${t.x-p.width/2}, ${v+1-(Te(r)?0:3)})`);const A=L.node().getBBox();return t.height=A.height,t.offsetX=0,t.offsetY=p.height-t.padding/2,t.labelBBox=p,t.intersect=function(H){return Ei(t,H)},{cluster:c,labelBBox:p}},"roundedWithTitle"),QB=g(async(e,t)=>{W.info("Creating subgraph rect for ",t.id,t);const r=Ht(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,{labelStyles:n,nodeStyles:l,borderStyles:c,backgroundStyles:h}=St(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=Te(r),f=u.insert("g").attr("class","cluster-label "),p=await or(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let y=p.getBBox();if(Te(r)){const L=p.children[0],A=Dt(p);y=L.getBoundingClientRect(),A.attr("width",y.width),A.attr("height",y.height)}const C=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-C/2,k=t.y-x/2;W.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const L=Ct.svg(u),A=yt(t,{roughness:.7,fill:o,stroke:a,fillWeight:4,seed:s}),H=L.path(Ke(b,k,C,x,t.rx),A);T=u.insert(()=>(W.debug("Rough node insert CXC",H),H),":first-child"),T.select("path:nth-child(2)").attr("style",c.join(";")),T.select("path").attr("style",h.join(";").replace("fill","stroke"))}else T=u.insert("rect",":first-child"),T.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",k).attr("width",C).attr("height",x);const{subGraphTitleTopMargin:v}=ln(r);if(f.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+v})`),n){const L=f.select("span");L&&L.attr("style",n)}const E=T.node().getBBox();return t.offsetX=0,t.width=E.width,t.height=E.height,t.offsetY=y.height-t.padding/2,t.intersect=function(L){return Ei(t,L)},{cluster:u,labelBBox:y}},"kanbanSection"),JB=g((e,t)=>{const r=Ht(),{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 f;if(t.look==="handDrawn"){const C=Ct.svg(a).rectangle(u,d,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:s});f=a.insert(()=>C,":first-child")}else{f=n.insert("rect",":first-child");let y="outer";t.look,y="divider",f.attr("class",y).attr("x",u).attr("y",d).attr("width",c).attr("height",h).attr("data-look",t.look)}const p=f.node().getBBox();return t.height=p.height,t.offsetX=0,t.offsetY=0,t.intersect=function(y){return Ei(t,y)},{cluster:a,labelBBox:{}}},"divider"),tL=N0,eL={rect:N0,squareRect:tL,roundedWithTitle:ZB,noteGroup:KB,divider:JB,kanbanSection:QB,swimlane:VB},q0=new Map,z0=g(async(e,t)=>{const r=t.shape||"rect",i=await eL[r](e,t);return q0.set(t.id,i),i},"insertCluster"),rL=g(()=>{q0=new Map},"clear"),Hs=g((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"),we={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},gf={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Js(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=ee(e),t=ee(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}}g(Js,"calculateDeltaAndAngle");var ee=g(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),iL=g(e=>({x:g(function(t,r,i){let s=0;const o=ee(i[0]).x<ee(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(we,e.arrowTypeStart)){const{angle:f,deltaX:p}=Js(i[0],i[1]);s=we[e.arrowTypeStart]*Math.cos(f)*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(we,e.arrowTypeEnd)){const{angle:f,deltaX:p}=Js(i[i.length-1],i[i.length-2]);s=we[e.arrowTypeEnd]*Math.cos(f)*(p>=0?1:-1)}const a=Math.abs(ee(t).x-ee(i[i.length-1]).x),n=Math.abs(ee(t).y-ee(i[i.length-1]).y),l=Math.abs(ee(t).x-ee(i[0]).x),c=Math.abs(ee(t).y-ee(i[0]).y),h=we[e.arrowTypeStart],u=we[e.arrowTypeEnd],d=1;if(a<u&&a>0&&n<u){let f=u+d-a;f*=o==="right"?-1:1,s-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=o==="right"?-1:1,s+=f}return ee(t).x+s},"x"),y:g(function(t,r,i){let s=0;const o=ee(i[0]).y<ee(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(we,e.arrowTypeStart)){const{angle:f,deltaY:p}=Js(i[0],i[1]);s=we[e.arrowTypeStart]*Math.abs(Math.sin(f))*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(we,e.arrowTypeEnd)){const{angle:f,deltaY:p}=Js(i[i.length-1],i[i.length-2]);s=we[e.arrowTypeEnd]*Math.abs(Math.sin(f))*(p>=0?1:-1)}const a=Math.abs(ee(t).y-ee(i[i.length-1]).y),n=Math.abs(ee(t).x-ee(i[i.length-1]).x),l=Math.abs(ee(t).y-ee(i[0]).y),c=Math.abs(ee(t).x-ee(i[0]).x),h=we[e.arrowTypeStart],u=we[e.arrowTypeEnd],d=1;if(a<u&&a>0&&n<u){let f=u+d-a;f*=o==="up"?-1:1,s-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=o==="up"?-1:1,s+=f}return ee(t).y+s},"y")}),"getLineFunctionsWithOffset"),sL=g((e,t,r,i,s,o=!1,a)=>{t.arrowTypeStart&&mf(e,"start",t.arrowTypeStart,r,i,s,o,a),t.arrowTypeEnd&&mf(e,"end",t.arrowTypeEnd,r,i,s,o,a)},"addEdgeMarkers"),oL={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}},aL=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],mf=g((e,t,r,i,s,o,a=!1,n)=>{var p;if(!r||r==="none")return;const l=oL[r],c=l&&aL.includes(l.type);if(!l){W.warn(`Unknown arrow type: ${r}`);return}const h=l.type,f=`${s}_${o}-${h}${t==="start"?"Start":"End"}${a&&c?"-margin":""}`;if(n&&n.trim()!==""){const y=n.replace(/[^\dA-Za-z]/g,"_"),C=`${f}_${y}`;if(!document.getElementById(C)){const x=document.getElementById(f);if(x){const b=x.cloneNode(!0);b.id=C,b.querySelectorAll("path, circle, line").forEach(T=>{T.setAttribute("stroke",n),l.fill&&T.setAttribute("fill",n)}),(p=x.parentNode)==null||p.appendChild(b)}}e.attr(`marker-${t}`,`url(${i}#${C})`)}else e.attr(`marker-${t}`,`url(${i}#${f})`)},"addEdgeMarker"),nL=g(e=>{var t,r;return typeof e=="string"?e:(r=(t=Ht())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),Cs=new Map,ae=new Map,lL=g(()=>{Cs.clear(),ae.clear()},"clear"),W0=g(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),Ys=g(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),Mc=g(async(e,t)=>{const r=Ht();let i=Te(r);const{labelStyles:s}=St(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 or(e,t.label,{style:Ys(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:n,width:n?void 0:void 0},r);a.node().appendChild(c),W.info("abc82",t,t.labelType);let h,u;if(i){const f=c.children[0],p=Dt(c);h=await Ti.measure(()=>f.getBoundingClientRect()),u=h,p.attr("width",h.width),p.attr("height",h.height)}else{const f=Dt(c).select("text").node();await Ti.measure(()=>{h=c.getBBox(),f&&typeof f.getBBox=="function"?u=f.getBBox():u=h})}a.attr("transform",Hs(u,i)),Cs.set(t.id,o),t.width=h.width,t.height=h.height;let d;if(t.startLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),p=f.insert("g").attr("class","inner"),y=await Qr(p,t.startLabelLeft,Ys(t.labelStyle)||"",!1,!1);d=y;let C=y.getBBox();if(i){const x=y.children[0],b=Dt(y);C=x.getBoundingClientRect(),b.attr("width",C.width),b.attr("height",C.height)}p.attr("transform",Hs(C,i)),ae.get(t.id)||ae.set(t.id,{}),ae.get(t.id).startLeft=f,to(d,t.startLabelLeft)}if(t.startLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),p=f.insert("g").attr("class","inner"),y=await Qr(p,t.startLabelRight,Ys(t.labelStyle)||"",!1,!1);d=y;let C=y.getBBox();if(i){const x=y.children[0],b=Dt(y);C=x.getBoundingClientRect(),b.attr("width",C.width),b.attr("height",C.height)}p.attr("transform",Hs(C,i)),ae.get(t.id)||ae.set(t.id,{}),ae.get(t.id).startRight=f,to(d,t.startLabelRight)}if(t.endLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),p=f.insert("g").attr("class","inner"),y=await Qr(f,t.endLabelLeft,Ys(t.labelStyle)||"",!1,!1);d=y;let C=y.getBBox();if(i){const x=y.children[0],b=Dt(y);C=x.getBoundingClientRect(),b.attr("width",C.width),b.attr("height",C.height)}p.attr("transform",Hs(C,i)),ae.get(t.id)||ae.set(t.id,{}),ae.get(t.id).endLeft=f,to(d,t.endLabelLeft)}if(t.endLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),p=f.insert("g").attr("class","inner"),y=await Qr(f,t.endLabelRight,Ys(t.labelStyle)||"",!1,!1);d=y;let C=y.getBBox();if(i){const x=y.children[0],b=Dt(y);C=x.getBoundingClientRect(),b.attr("width",C.width),b.attr("height",C.height)}p.attr("transform",Hs(C,i)),ae.get(t.id)||ae.set(t.id,{}),ae.get(t.id).endRight=f,to(d,t.endLabelRight)}return c},"insertEdgeLabel");function to(e,t){Te(Ht())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}g(to,"setTerminalWidth");var hL=g((e,t)=>{W.debug("Moving label abc88 ",e.id,e.label,Cs.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Ht(),{subGraphTitleTotalMargin:s}=ln(i);if(e.label){const o=Cs.get(e.id);let a=e.x,n=e.y;if(r){const l=Se.calcLabelPosition(r);W.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=ae.get(e.id).startLeft;let a=e.x,n=e.y;if(r){const l=Se.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=ae.get(e.id).startRight;let a=e.x,n=e.y;if(r){const l=Se.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=ae.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const l=Se.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=ae.get(e.id).endRight;let a=e.x,n=e.y;if(r){const l=Se.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}},"positionEdgeLabel"),cL=g((e,t)=>{var a;if(!(e!=null&&e.isLabelEdge)||!((a=e==null?void 0:e.id)!=null&&a.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"),uL=g((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"),dL=g((e,t,r)=>{W.debug(`intersection calc abc89:
275
+ outsidePoint: ${JSON.stringify(t)}
276
+ insidePoint : ${JSON.stringify(r)}
277
+ 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),W.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,f=r.y<t.y?r.y+u:r.y-u;return W.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${n}`,{_x:d,_y:f}),n===0&&(d=t.x,f=t.y),h===0&&(d=t.x),c===0&&(f=t.y),{x:d,y:f}}},"intersection"),yf=g((e,t)=>{W.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],s=!1;return e.forEach(o=>{if(W.info("abc88 checking point",o,t),!uL(t,o)&&!s){const a=dL(t,i,o);W.debug("abc88 inside",o,i,a),W.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)?W.warn("abc88 no intersect",a,r):r.push(a),s=!0}else W.warn("abc88 outside",o,i),i=o,s||r.push(o)}),W.debug("returning points",r),r},"cutPathAtIntersect");function H0(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}}g(H0,"extractCornerPoints");var xf=g(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"),fL=g(function(e){const{cornerPointPositions:t}=H0(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=xf(s,a,5),l=xf(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){W.debug("Corner point fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));const f=5;a.x===n.x?d={x:c<0?n.x-f+u:n.x+f-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-f+u:n.y+f-u}}else W.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"),pL=g((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"),Y0=g(function(e,t,r,i,s,o,a,n=!1){var F;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}=Ht();let h=t.points,u=!1;const d=s;var f=o;const p=[];for(const D in t.cssCompiledStyles)ym(D)||p.push(t.cssCompiledStyles[D]);if(c==="swimlane"){if(f.intersect&&d.intersect&&Array.isArray(h)&&h.length>=2)if(h.length===2)h=[d.intersect(h[0]),f.intersect(h[1])];else{const D=h.slice(1,-1),K=D[0],lt=D[D.length-1],ht=.5,mt=Math.abs(h[h.length-1].x-lt.x)<ht&&Math.abs(h[h.length-1].y-lt.y)<ht,ft=d.intersect(K),pt=mt?lt:f.intersect(lt),ct=Math.abs(pt.x-lt.x)<ht&&Math.abs(pt.y-lt.y)<ht,qt=Math.abs(ft.x-K.x)<ht&&Math.abs(ft.y-K.y)<ht?[]:[ft],Et=ct?[]:[pt];h=[...qt,...D,...Et]}h=cL(t,h)}else f.intersect&&d.intersect&&!n&&(h=h.slice(1,t.points.length-1),h.unshift(d.intersect(h[0])),h.push(f.intersect(h[h.length-1])));const y=btoa(JSON.stringify(h));t.toCluster&&(W.info("to cluster abc88",r.get(t.toCluster)),h=yf(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(W.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=yf(h.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let C=h.filter(D=>!Number.isNaN(D.y));const x=nL(t.curve);x!=="rounded"&&(C=fL(C));let b=no;switch(x){case"linear":b=no;break;case"basis":b=oh;break;case"cardinal":b=rm;break;case"bumpX":b=Zg;break;case"bumpY":b=Qg;break;case"catmullRom":b=sm;break;case"monotoneX":b=cm;break;case"monotoneY":b=um;break;case"natural":b=fm;break;case"step":b=pm;break;case"stepAfter":b=mm;break;case"stepBefore":b=gm;break;case"rounded":b=no;break;default:b=oh}const{x:k,y:T}=iL(t),v=AT().x(k).y(T).curve(b);let E;switch(t.thickness){case"normal":E="edge-thickness-normal";break;case"thick":E="edge-thickness-thick";break;case"invisible":E="edge-thickness-invisible";break;default:E="edge-thickness-normal"}switch(t.pattern){case"solid":E+=" edge-pattern-solid";break;case"dotted":E+=" edge-pattern-dotted";break;case"dashed":E+=" edge-pattern-dashed";break;default:E+=" edge-pattern-solid"}let L,A=x==="rounded"?U0(j0(C,t),5):v(C);const H=Array.isArray(t.style)?t.style:[t.style];let q=H.find(D=>D==null?void 0:D.startsWith("stroke:")),R="";t.animate&&(R="edge-animation-fast"),t.animation&&(R="edge-animation-"+t.animation);let ot=!1;if(t.look==="handDrawn"){const D=Ct.svg(e);Object.assign([],C);const K=D.path(A,{roughness:.3,seed:l});E+=" transition",L=Dt(K).select("path").attr("id",`${a}-${t.id}`).attr("class"," "+E+(t.classes?" "+t.classes:"")+(R?" "+R:"")).attr("style",H?H.reduce((ht,mt)=>ht+";"+mt,""):"");let lt=L.attr("d");L.attr("d",lt),e.node().appendChild(L.node())}else{const D=p.join(";"),K=H?H.reduce((ct,_t)=>ct+_t+";",""):"",lt=(D?D+";"+K+";":K)+";"+(H?H.reduce((ct,_t)=>ct+";"+_t,""):"");L=e.append("path").attr("d",A).attr("id",`${a}-${t.id}`).attr("class"," "+E+(t.classes?" "+t.classes:"")+(R?" "+R:"")).attr("style",lt),q=(F=lt.match(/stroke:([^;]+)/))==null?void 0:F[1],ot=t.animate===!0||!!t.animation||D.includes("animation");const ht=L.node(),mt=typeof ht.getTotalLength=="function"?ht.getTotalLength():0,ft=gf[t.arrowTypeStart]||0,pt=gf[t.arrowTypeEnd]||0;if(t.look==="neo"&&!ot){const _t=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?pL(mt,ft,pt):`0 ${ft} ${mt-ft-pt} ${pt}`}; stroke-dashoffset: 0;`;L.attr("style",_t+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",y),L.attr("data-look",ce(t.look)),t.showPoints&&C.forEach(D=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",D.x).attr("cy",D.y)});let U="";(Ht().flowchart.arrowMarkerAbsolute||Ht().state.arrowMarkerAbsolute)&&(U=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,U=U.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),W.info("arrowTypeStart",t.arrowTypeStart),W.info("arrowTypeEnd",t.arrowTypeEnd);const O=!ot&&(t==null?void 0:t.look)==="neo";sL(L,t,U,a,i,O,q);const $=Math.floor(h.length/2),B=h[$];Se.isLabelCoordinateInPath(B,L.attr("d"))||(u=!0);let N={};return u&&(N.updatedPath=h),N.originalPath=t.points,N},"insertEdge");function U0(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,f=Math.hypot(c,h),p=Math.hypot(u,d);if(f<s||p<s){r+=`L${a.x},${a.y}`;continue}const y=c/f,C=h/f,x=u/p,b=d/p,k=y*x+C*b,T=Math.max(-1,Math.min(1,k)),v=Math.acos(T);if(v<s||Math.abs(Math.PI-v)<s){r+=`L${a.x},${a.y}`;continue}const E=Math.min(t/Math.sin(v/2),f/2,p/2),L=a.x-y*E,A=a.y-C*E,H=a.x+x*E,q=a.y+b*E;r+=`L${L},${A}`,r+=`Q${a.x},${a.y} ${H},${q}`}}return r}g(U0,"generateRoundedPath");function kh(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}}g(kh,"calculateDeltaAndAngle");function j0(e,t){const r=e.map(s=>({...s}));if(e.length>=2&&we[t.arrowTypeStart]){const s=we[t.arrowTypeStart],o=e[0],a=e[1],{angle:n}=kh(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&&we[t.arrowTypeEnd]){const s=we[t.arrowTypeEnd],o=e[i-1],a=e[i-2],{angle:n}=kh(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}g(j0,"applyMarkerOffsetsToPoints");var gL=g((e,t,r,i)=>{t.forEach(s=>{RL[s](e,r,i)})},"insertMarkers"),mL=g((e,t,r)=>{W.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").attr("markerUnits","userSpaceOnUse").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"),yL=g((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").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"),xL=g((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").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"),CL=g((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").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"),bL=g((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").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"),kL=g((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"),wL=g((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"),SL=g((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"),TL=g((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"),_L=g((e,t,r)=>{const i=re(),{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"),vL=g((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"),BL=g((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"),LL=g((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"),AL=g((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"),EL=g((e,t,r)=>{const i=re(),{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"),FL=g((e,t,r)=>{const i=re(),{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"),ML=g((e,t,r)=>{const i=re(),{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"),$L=g((e,t,r)=>{const i=re(),{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"),OL=g((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
278
+ L20,10
279
+ M20,10
280
+ L0,20`)},"requirement_arrow"),IL=g((e,t,r)=>{const i=re(),{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
281
+ L20,10
282
+ M20,10
283
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),DL=g((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"),PL=g((e,t,r)=>{const i=re(),{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"),RL={extension:mL,composition:yL,aggregation:xL,dependency:CL,lollipop:bL,point:kL,circle:wL,cross:SL,barb:TL,barbNeo:_L,only_one:vL,zero_or_one:BL,one_or_more:LL,zero_or_more:AL,only_one_neo:EL,zero_or_one_neo:FL,one_or_more_neo:ML,zero_or_more_neo:$L,requirement_arrow:OL,requirement_contains:DL,requirement_arrow_neo:IL,requirement_contains_neo:PL},X0=gL,G0=typeof global=="object"&&global&&global.Object===Object&&global,NL=typeof self=="object"&&self&&self.Object===Object&&self,Rr=G0||NL||Function("return this")(),yr=Rr.Symbol,V0=Object.prototype,qL=V0.hasOwnProperty,zL=V0.toString,Us=yr?yr.toStringTag:void 0;function WL(e){var t=qL.call(e,Us),r=e[Us];try{e[Us]=void 0;var i=!0}catch{}var s=zL.call(e);return i&&(t?e[Us]=r:delete e[Us]),s}var HL=Object.prototype,YL=HL.toString;function UL(e){return YL.call(e)}var jL="[object Null]",XL="[object Undefined]",Cf=yr?yr.toStringTag:void 0;function _s(e){return e==null?e===void 0?XL:jL:Cf&&Cf in Object(e)?WL(e):UL(e)}function _i(e){return e!=null&&typeof e=="object"}var GL="[object Symbol]";function $c(e){return typeof e=="symbol"||_i(e)&&_s(e)==GL}function K0(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 Pe=Array.isArray,bf=yr?yr.prototype:void 0,kf=bf?bf.toString:void 0;function Z0(e){if(typeof e=="string")return e;if(Pe(e))return K0(e,Z0)+"";if($c(e))return kf?kf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Oc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function cn(e){return e}var VL="[object AsyncFunction]",KL="[object Function]",ZL="[object GeneratorFunction]",QL="[object Proxy]";function Wa(e){if(!Oc(e))return!1;var t=_s(e);return t==KL||t==ZL||t==VL||t==QL}var nl=Rr["__core-js_shared__"],wf=(function(){var e=/[^.]+$/.exec(nl&&nl.keys&&nl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function JL(e){return!!wf&&wf in e}var tA=Function.prototype,eA=tA.toString;function Fi(e){if(e!=null){try{return eA.call(e)}catch{}try{return e+""}catch{}}return""}var rA=/[\\^$.*+?()[\]{}|]/g,iA=/^\[object .+?Constructor\]$/,sA=Function.prototype,oA=Object.prototype,aA=sA.toString,nA=oA.hasOwnProperty,lA=RegExp("^"+aA.call(nA).replace(rA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hA(e){if(!Oc(e)||JL(e))return!1;var t=Wa(e)?lA:iA;return t.test(Fi(e))}function cA(e,t){return e==null?void 0:e[t]}function Mi(e,t){var r=cA(e,t);return hA(r)?r:void 0}var wh=Mi(Rr,"WeakMap");function uA(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 dA(){}var fA=800,pA=16,gA=Date.now;function mA(e){var t=0,r=0;return function(){var i=gA(),s=pA-(i-r);if(r=i,s>0){if(++t>=fA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function eo(e){return function(){return e}}var Sf=(function(){try{var e=Mi(Object,"defineProperty");return e({},"",{}),e}catch{}})(),yA=Sf?function(e,t){return Sf(e,"toString",{configurable:!0,enumerable:!1,value:eo(t),writable:!0})}:cn,xA=mA(yA);function CA(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}function bA(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 kA(e){return e!==e}function wA(e,t,r){for(var i=r-1,s=e.length;++i<s;)if(e[i]===t)return i;return-1}function SA(e,t,r){return t===t?wA(e,t,r):bA(e,kA,r)}function TA(e,t){var r=e==null?0:e.length;return!!r&&SA(e,t,0)>-1}var _A=9007199254740991,vA=/^(?:0|[1-9]\d*)$/;function Q0(e,t){var r=typeof e;return t=t??_A,!!t&&(r=="number"||r!="symbol"&&vA.test(e))&&e>-1&&e%1==0&&e<t}function J0(e,t){return e===t||e!==e&&t!==t}var Tf=Math.max;function BA(e,t,r){return t=Tf(t===void 0?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=Tf(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),uA(e,this,n)}}function LA(e,t){return xA(BA(e,t,cn),e+"")}var AA=9007199254740991;function Ic(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=AA}function un(e){return e!=null&&Ic(e.length)&&!Wa(e)}var EA=Object.prototype;function tx(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||EA;return e===r}function FA(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var MA="[object Arguments]";function _f(e){return _i(e)&&_s(e)==MA}var ex=Object.prototype,$A=ex.hasOwnProperty,OA=ex.propertyIsEnumerable,dn=_f((function(){return arguments})())?_f:function(e){return _i(e)&&$A.call(e,"callee")&&!OA.call(e,"callee")};function IA(){return!1}var rx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vf=rx&&typeof module=="object"&&module&&!module.nodeType&&module,DA=vf&&vf.exports===rx,Bf=DA?Rr.Buffer:void 0,PA=Bf?Bf.isBuffer:void 0,Ha=PA||IA,RA="[object Arguments]",NA="[object Array]",qA="[object Boolean]",zA="[object Date]",WA="[object Error]",HA="[object Function]",YA="[object Map]",UA="[object Number]",jA="[object Object]",XA="[object RegExp]",GA="[object Set]",VA="[object String]",KA="[object WeakMap]",ZA="[object ArrayBuffer]",QA="[object DataView]",JA="[object Float32Array]",tE="[object Float64Array]",eE="[object Int8Array]",rE="[object Int16Array]",iE="[object Int32Array]",sE="[object Uint8Array]",oE="[object Uint8ClampedArray]",aE="[object Uint16Array]",nE="[object Uint32Array]",te={};te[JA]=te[tE]=te[eE]=te[rE]=te[iE]=te[sE]=te[oE]=te[aE]=te[nE]=!0;te[RA]=te[NA]=te[ZA]=te[qA]=te[QA]=te[zA]=te[WA]=te[HA]=te[YA]=te[UA]=te[jA]=te[XA]=te[GA]=te[VA]=te[KA]=!1;function lE(e){return _i(e)&&Ic(e.length)&&!!te[_s(e)]}function hE(e){return function(t){return e(t)}}var ix=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ho=ix&&typeof module=="object"&&module&&!module.nodeType&&module,cE=ho&&ho.exports===ix,ll=cE&&G0.process,Lf=(function(){try{var e=ho&&ho.require&&ho.require("util").types;return e||ll&&ll.binding&&ll.binding("util")}catch{}})(),Af=Lf&&Lf.isTypedArray,Dc=Af?hE(Af):lE,uE=Object.prototype,dE=uE.hasOwnProperty;function fE(e,t){var r=Pe(e),i=!r&&dn(e),s=!r&&!i&&Ha(e),o=!r&&!i&&!s&&Dc(e),a=r||i||s||o,n=a?FA(e.length,String):[],l=n.length;for(var c in e)(t||dE.call(e,c))&&!(a&&(c=="length"||s&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Q0(c,l)))&&n.push(c);return n}function pE(e,t){return function(r){return e(t(r))}}var gE=pE(Object.keys,Object),mE=Object.prototype,yE=mE.hasOwnProperty;function sx(e){if(!tx(e))return gE(e);var t=[];for(var r in Object(e))yE.call(e,r)&&r!="constructor"&&t.push(r);return t}function fr(e){return un(e)?fE(e):sx(e)}var xE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CE=/^\w*$/;function Pc(e,t){if(Pe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||$c(e)?!0:CE.test(e)||!xE.test(e)||t!=null&&e in Object(t)}var xo=Mi(Object,"create");function bE(){this.__data__=xo?xo(null):{},this.size=0}function kE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wE="__lodash_hash_undefined__",SE=Object.prototype,TE=SE.hasOwnProperty;function _E(e){var t=this.__data__;if(xo){var r=t[e];return r===wE?void 0:r}return TE.call(t,e)?t[e]:void 0}var vE=Object.prototype,BE=vE.hasOwnProperty;function LE(e){var t=this.__data__;return xo?t[e]!==void 0:BE.call(t,e)}var AE="__lodash_hash_undefined__";function EE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xo&&t===void 0?AE:t,this}function vi(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])}}vi.prototype.clear=bE;vi.prototype.delete=kE;vi.prototype.get=_E;vi.prototype.has=LE;vi.prototype.set=EE;function FE(){this.__data__=[],this.size=0}function fn(e,t){for(var r=e.length;r--;)if(J0(e[r][0],t))return r;return-1}var ME=Array.prototype,$E=ME.splice;function OE(e){var t=this.__data__,r=fn(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():$E.call(t,r,1),--this.size,!0}function IE(e){var t=this.__data__,r=fn(t,e);return r<0?void 0:t[r][1]}function DE(e){return fn(this.__data__,e)>-1}function PE(e,t){var r=this.__data__,i=fn(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Nr(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])}}Nr.prototype.clear=FE;Nr.prototype.delete=OE;Nr.prototype.get=IE;Nr.prototype.has=DE;Nr.prototype.set=PE;var Co=Mi(Rr,"Map");function RE(){this.size=0,this.__data__={hash:new vi,map:new(Co||Nr),string:new vi}}function NE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pn(e,t){var r=e.__data__;return NE(t)?r[typeof t=="string"?"string":"hash"]:r.map}function qE(e){var t=pn(this,e).delete(e);return this.size-=t?1:0,t}function zE(e){return pn(this,e).get(e)}function WE(e){return pn(this,e).has(e)}function HE(e,t){var r=pn(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function qr(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])}}qr.prototype.clear=RE;qr.prototype.delete=qE;qr.prototype.get=zE;qr.prototype.has=WE;qr.prototype.set=HE;var YE="Expected a function";function Rc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(YE);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(Rc.Cache||qr),r}Rc.Cache=qr;var UE=500;function jE(e){var t=Rc(e,function(i){return r.size===UE&&r.clear(),i}),r=t.cache;return t}var XE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GE=/\\(\\)?/g,VE=jE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XE,function(r,i,s,o){t.push(s?o.replace(GE,"$1"):i||r)}),t});function KE(e){return e==null?"":Z0(e)}function ox(e,t){return Pe(e)?e:Pc(e,t)?[e]:VE(KE(e))}function gn(e){if(typeof e=="string"||$c(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ax(e,t){t=ox(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[gn(t[r++])];return r&&r==i?e:void 0}function ZE(e,t,r){var i=e==null?void 0:ax(e,t);return i===void 0?r:i}function nx(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}var Ef=yr?yr.isConcatSpreadable:void 0;function QE(e){return Pe(e)||dn(e)||!!(Ef&&e&&e[Ef])}function JE(e,t,r,i,s){var o=-1,a=e.length;for(r||(r=QE),s||(s=[]);++o<a;){var n=e[o];r(n)?nx(s,n):i||(s[s.length]=n)}return s}function tF(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 eF(){this.__data__=new Nr,this.size=0}function rF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function iF(e){return this.__data__.get(e)}function sF(e){return this.__data__.has(e)}var oF=200;function aF(e,t){var r=this.__data__;if(r instanceof Nr){var i=r.__data__;if(!Co||i.length<oF-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new qr(i)}return r.set(e,t),this.size=r.size,this}function Or(e){var t=this.__data__=new Nr(e);this.size=t.size}Or.prototype.clear=eF;Or.prototype.delete=rF;Or.prototype.get=iF;Or.prototype.has=sF;Or.prototype.set=aF;function lx(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 nF(){return[]}var lF=Object.prototype,hF=lF.propertyIsEnumerable,Ff=Object.getOwnPropertySymbols,cF=Ff?function(e){return e==null?[]:(e=Object(e),lx(Ff(e),function(t){return hF.call(e,t)}))}:nF;function uF(e,t,r){var i=t(e);return Pe(e)?i:nx(i,r(e))}function Mf(e){return uF(e,fr,cF)}var Sh=Mi(Rr,"DataView"),Th=Mi(Rr,"Promise"),Zi=Mi(Rr,"Set"),$f="[object Map]",dF="[object Object]",Of="[object Promise]",If="[object Set]",Df="[object WeakMap]",Pf="[object DataView]",fF=Fi(Sh),pF=Fi(Co),gF=Fi(Th),mF=Fi(Zi),yF=Fi(wh),Mr=_s;(Sh&&Mr(new Sh(new ArrayBuffer(1)))!=Pf||Co&&Mr(new Co)!=$f||Th&&Mr(Th.resolve())!=Of||Zi&&Mr(new Zi)!=If||wh&&Mr(new wh)!=Df)&&(Mr=function(e){var t=_s(e),r=t==dF?e.constructor:void 0,i=r?Fi(r):"";if(i)switch(i){case fF:return Pf;case pF:return $f;case gF:return Of;case mF:return If;case yF:return Df}return t});var Rf=Rr.Uint8Array,xF="__lodash_hash_undefined__";function CF(e){return this.__data__.set(e,xF),this}function bF(e){return this.__data__.has(e)}function bo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new qr;++t<r;)this.add(e[t])}bo.prototype.add=bo.prototype.push=CF;bo.prototype.has=bF;function kF(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 hx(e,t){return e.has(t)}var wF=1,SF=2;function cx(e,t,r,i,s,o){var a=r&wF,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,f=r&SF?new bo:void 0;for(o.set(e,t),o.set(t,e);++u<n;){var p=e[u],y=t[u];if(i)var C=a?i(y,p,u,t,e,o):i(p,y,u,e,t,o);if(C!==void 0){if(C)continue;d=!1;break}if(f){if(!kF(t,function(x,b){if(!hx(f,b)&&(p===x||s(p,x,r,i,o)))return f.push(b)})){d=!1;break}}else if(!(p===y||s(p,y,r,i,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function TF(e){var t=-1,r=Array(e.size);return e.forEach(function(i,s){r[++t]=[s,i]}),r}function Nc(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var _F=1,vF=2,BF="[object Boolean]",LF="[object Date]",AF="[object Error]",EF="[object Map]",FF="[object Number]",MF="[object RegExp]",$F="[object Set]",OF="[object String]",IF="[object Symbol]",DF="[object ArrayBuffer]",PF="[object DataView]",Nf=yr?yr.prototype:void 0,hl=Nf?Nf.valueOf:void 0;function RF(e,t,r,i,s,o,a){switch(r){case PF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case DF:return!(e.byteLength!=t.byteLength||!o(new Rf(e),new Rf(t)));case BF:case LF:case FF:return J0(+e,+t);case AF:return e.name==t.name&&e.message==t.message;case MF:case OF:return e==t+"";case EF:var n=TF;case $F:var l=i&_F;if(n||(n=Nc),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=vF,a.set(e,t);var h=cx(n(e),n(t),i,s,o,a);return a.delete(e),h;case IF:if(hl)return hl.call(e)==hl.call(t)}return!1}var NF=1,qF=Object.prototype,zF=qF.hasOwnProperty;function WF(e,t,r,i,s,o){var a=r&NF,n=Mf(e),l=n.length,c=Mf(t),h=c.length;if(l!=h&&!a)return!1;for(var u=l;u--;){var d=n[u];if(!(a?d in t:zF.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var y=!0;o.set(e,t),o.set(t,e);for(var C=a;++u<l;){d=n[u];var x=e[d],b=t[d];if(i)var k=a?i(b,x,d,t,e,o):i(x,b,d,e,t,o);if(!(k===void 0?x===b||s(x,b,r,i,o):k)){y=!1;break}C||(C=d=="constructor")}if(y&&!C){var T=e.constructor,v=t.constructor;T!=v&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof v=="function"&&v instanceof v)&&(y=!1)}return o.delete(e),o.delete(t),y}var HF=1,qf="[object Arguments]",zf="[object Array]",Jo="[object Object]",YF=Object.prototype,Wf=YF.hasOwnProperty;function UF(e,t,r,i,s,o){var a=Pe(e),n=Pe(t),l=a?zf:Mr(e),c=n?zf:Mr(t);l=l==qf?Jo:l,c=c==qf?Jo:c;var h=l==Jo,u=c==Jo,d=l==c;if(d&&Ha(e)){if(!Ha(t))return!1;a=!0,h=!1}if(d&&!h)return o||(o=new Or),a||Dc(e)?cx(e,t,r,i,s,o):RF(e,t,l,r,i,s,o);if(!(r&HF)){var f=h&&Wf.call(e,"__wrapped__"),p=u&&Wf.call(t,"__wrapped__");if(f||p){var y=f?e.value():e,C=p?t.value():t;return o||(o=new Or),s(y,C,r,i,o)}}return d?(o||(o=new Or),WF(e,t,r,i,s,o)):!1}function qc(e,t,r,i,s){return e===t?!0:e==null||t==null||!_i(e)&&!_i(t)?e!==e&&t!==t:UF(e,t,r,i,qc,s)}var jF=1,XF=2;function GF(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 Or,u;if(!(u===void 0?qc(c,l,jF|XF,i,h):u))return!1}}return!0}function ux(e){return e===e&&!Oc(e)}function VF(e){for(var t=fr(e),r=t.length;r--;){var i=t[r],s=e[i];t[r]=[i,s,ux(s)]}return t}function dx(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function KF(e){var t=VF(e);return t.length==1&&t[0][2]?dx(t[0][0],t[0][1]):function(r){return r===e||GF(r,e,t)}}function ZF(e,t){return e!=null&&t in Object(e)}function QF(e,t,r){t=ox(t,e);for(var i=-1,s=t.length,o=!1;++i<s;){var a=gn(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&&Ic(s)&&Q0(a,s)&&(Pe(e)||dn(e)))}function JF(e,t){return e!=null&&QF(e,t,ZF)}var tM=1,eM=2;function rM(e,t){return Pc(e)&&ux(t)?dx(gn(e),t):function(r){var i=ZE(r,e);return i===void 0&&i===t?JF(r,e):qc(t,i,tM|eM)}}function iM(e){return function(t){return t==null?void 0:t[e]}}function sM(e){return function(t){return ax(t,e)}}function oM(e){return Pc(e)?iM(gn(e)):sM(e)}function fx(e){return typeof e=="function"?e:e==null?cn:typeof e=="object"?Pe(e)?rM(e[0],e[1]):KF(e):oM(e)}function aM(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 nM=aM();function lM(e,t){return e&&nM(e,t,fr)}function hM(e,t){return function(r,i){if(r==null)return r;if(!un(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 zc=hM(lM);function cM(e){return _i(e)&&un(e)}function uM(e){return typeof e=="function"?e:cn}function ni(e,t){var r=Pe(e)?CA:zc;return r(e,uM(t))}function dM(e,t){var r=[];return zc(e,function(i,s,o){t(i,s,o)&&r.push(i)}),r}function ta(e,t){var r=Pe(e)?lx:dM;return r(e,fx(t))}function fM(e,t){return K0(t,function(r){return e[r]})}function cl(e){return e==null?[]:fM(e,fr(e))}var pM="[object Map]",gM="[object Set]",mM=Object.prototype,yM=mM.hasOwnProperty;function Hf(e){if(e==null)return!0;if(un(e)&&(Pe(e)||typeof e=="string"||typeof e.splice=="function"||Ha(e)||Dc(e)||dn(e)))return!e.length;var t=Mr(e);if(t==pM||t==gM)return!e.size;if(tx(e))return!sx(e).length;for(var r in e)if(yM.call(e,r))return!1;return!0}function Ui(e){return e===void 0}function xM(e,t,r,i,s){return s(e,function(o,a,n){r=i?(i=!1,o):t(r,o,a,n)}),r}function CM(e,t,r){var i=Pe(e)?tF:xM,s=arguments.length<3;return i(e,fx(t),r,s,zc)}var bM=1/0,kM=Zi&&1/Nc(new Zi([,-0]))[1]==bM?function(e){return new Zi(e)}:dA,wM=200;function SM(e,t,r){var i=-1,s=TA,o=e.length,a=!0,n=[],l=n;if(o>=wM){var c=kM(e);if(c)return Nc(c);a=!1,s=hx,l=new bo}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 TM=LA(function(e){return SM(JE(e,1,cM,!0))}),_M="\0",li="\0",Yf="";class mn{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=eo(void 0),this._defaultEdgeLabelFn=eo(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[li]={}),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 Wa(t)||(t=eo(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return fr(this._nodes)}sources(){var t=this;return ta(this.nodes(),function(r){return Hf(t._in[r])})}sinks(){var t=this;return ta(this.nodes(),function(r){return Hf(t._out[r])})}setNodes(t,r){var i=arguments,s=this;return ni(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]=li,this._children[t]={},this._children[li][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],ni(this.children(t),i=>{this.setParent(i)}),delete this._children[t]),ni(fr(this._in[t]),r),delete this._in[t],delete this._preds[t],ni(fr(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(Ui(r))r=li;else{r+="";for(var i=r;!Ui(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!==li)return r}}children(t){if(Ui(t)&&(t=li),this._isCompound){var r=this._children[t];if(r)return fr(r)}else{if(t===li)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return fr(r)}successors(t){var r=this._sucs[t];if(r)return fr(r)}neighbors(t){var r=this.predecessors(t);if(r)return TM(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;ni(this._nodes,function(a,n){t(n)&&r.setNode(n,a)}),ni(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&&ni(r.nodes(),function(a){r.setParent(a,o(a))}),r}setDefaultEdgeLabel(t){return Wa(t)||(t=eo(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return cl(this._edgeObjs)}setPath(t,r){var i=this,s=arguments;return CM(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,Ui(i)||(i=""+i);var n=ro(this._isDirected,t,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n))return o&&(this._edgeLabels[n]=s),this;if(!Ui(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=vM(this._isDirected,t,r,i);return t=l.v,r=l.w,Object.freeze(l),this._edgeObjs[n]=l,Uf(this._preds[r],t),Uf(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?ul(this._isDirected,arguments[0]):ro(this._isDirected,t,r,i);return this._edgeLabels[s]}hasEdge(t,r,i){var s=arguments.length===1?ul(this._isDirected,arguments[0]):ro(this._isDirected,t,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,s)}removeEdge(t,r,i){var s=arguments.length===1?ul(this._isDirected,arguments[0]):ro(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],jf(this._preds[r],t),jf(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=cl(i);return r?ta(s,function(o){return o.v===r}):s}}outEdges(t,r){var i=this._out[t];if(i){var s=cl(i);return r?ta(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))}}mn.prototype._nodeCount=0;mn.prototype._edgeCount=0;function Uf(e,t){e[t]?e[t]++:e[t]=1}function jf(e,t){--e[t]||delete e[t]}function ro(e,t,r,i){var s=""+t,o=""+r;if(!e&&s>o){var a=s;s=o,o=a}return s+Yf+o+Yf+(Ui(i)?_M:i)}function vM(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 ul(e,t){return ro(e,t.v,t.w,t.name)}function px(e,{edgePathsClass:t="edges edgePaths"}={}){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}}g(px,"createLayoutElementGroups");async function gx(e,t){if(t.label){const{shapeSvg:r,bbox:i}=await Bt(e,t);t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}g(gx,"measureGroupLabel");async function mx(e,t,r){var o;const i=await Fc(e,t,r),s=((o=i.node())==null?void 0:o.getBBox())??{width:0,height:0};return t.width=s.width,t.height=s.height,i}g(mx,"insertMeasuredNode");async function yx(e,t){const r=new mn({multigraph:!0,compound:!0}),i=[...t.edges],s=Ht(),o=px(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 gx(n,h),r.setNode(h.id,{...h});else{if(c){const u=await mx(n,h,{config:s,dir:h.dir});l.set(h.id,u)}r.setNode(h.id,{...h})}}));for(const h of i)c&&W0(h)&&await Mc(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 Rt(async()=>{const{captureNodeSizes:u}=await import("./sizeCapture-INFHLROL-CkvfPyS2.js");return{captureNodeSizes:u}},__vite__mapDeps([3,1,0,2]));h(e,t)}return{graph:r,groups:o,nodeElements:l}}g(yx,"createGraphWithElements");var Ut=new Map,pi=new Map,xx=new Map,BM=g(()=>{pi.clear(),xx.clear(),Ut.clear()},"clear"),ko=g((e,t)=>{const r=pi.get(t)||[];return W.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),LM=g((e,t)=>{const r=pi.get(t)||[];return W.info("Descendants of ",t," is ",r),W.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||ko(e.v,t)||ko(e.w,t)||r.includes(e.w):(W.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),Cx=g((e,t,r,i)=>{W.debug("Copying children of ",e,"root",i,"data",t.node(e),i);const s=t.children(e)||[];e!==i&&s.push(e),W.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)Cx(o,t,r,i);else{const a=t.node(o);W.info("cp ",o," to ",i," with parent ",e),r.setNode(o,a),i!==t.parent(o)&&(W.debug("Setting parent",o,t.parent(o)),r.setParent(o,t.parent(o))),e!==i&&o!==e?(W.debug("Setting parent",o,e),r.setParent(o,e)):(W.info("In copy ",e,"root",i,"data",t.node(e),i),W.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==i,"node!==clusterId",o!==e));const n=t.edges(o);W.debug("Copying Edges",n),n.forEach(l=>{W.info("Edge",l);const c=t.edge(l.v,l.w,l.name);W.info("Edge data",c,i);try{LM(l,i)?(W.info("Copying as ",l.v,l.w,c,l.name),r.setEdge(l.v,l.w,c,l.name),W.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):W.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",i," clusterId:",e)}catch(h){W.error(h)}})}W.debug("Removing node",o),t.removeNode(o)})},"copy"),bx=g((e,t)=>{const r=t.children(e);let i=[...r];for(const s of r)xx.set(s,e),i=[...i,...bx(s,t)];return i},"extractDescendants"),AM=g((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"),Ya=g((e,t,r)=>{const i=t.children(e);if(W.trace("Searching children of id ",e,i),i.length<1)return e;let s;for(const o of i){const a=Ya(o,t,r),n=AM(t,r,a);if(a)if(n.length>0)s=a;else return a}return s},"findNonClusterChild"),Xf=g(e=>!Ut.has(e)||!Ut.get(e).externalConnections?e:Ut.has(e)?Ut.get(e).id:e,"getAnchorId"),iD=g((e,t)=>{var r;if(!e||t>10){W.debug("Opting out, no graph ");return}else W.debug("Opting in, graph ");e.nodes().forEach(function(i){e.children(i).length>0&&(W.debug("Cluster identified",i," Replacement id in edges: ",Ya(i,e,i)),pi.set(i,bx(i,e)),Ut.set(i,{id:Ya(i,e,i),clusterData:e.node(i)}))}),e.nodes().forEach(function(i){const s=e.children(i),o=e.edges();s.length>0?(W.debug("Cluster identified",i,pi),o.forEach(a=>{const n=ko(a.v,i),l=ko(a.w,i);n^l&&(W.debug("Edge: ",a," leaves cluster ",i),W.debug("Descendants of XXX ",i,": ",pi.get(i)),Ut.get(i).externalConnections=!0)})):W.debug("Not a cluster ",i,pi)});for(let i of Ut.keys()){const s=Ut.get(i).id,o=e.parent(s);o!==i&&Ut.has(o)&&!Ut.get(o).externalConnections&&(Ut.get(i).id=o);const a=e.edges().some(n=>n.v===i);if(s&&((r=Ut.get(i))!=null&&r.externalConnections)&&a&&Sx(e,s,i)){const n=EM(e,i,e.parent(s));n&&(Ut.get(i).id=n)}}e.edges().forEach(function(i){const s=e.edge(i);W.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),W.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(e.edge(i)));let o=i.v,a=i.w;if(W.debug("Fix XXX",Ut,"ids:",i.v,i.w,"Translating: ",Ut.get(i.v)," --- ",Ut.get(i.w)),Ut.get(i.v)||Ut.get(i.w)){if(W.debug("Fixing and trying - removing XXX",i.v,i.w,i.name),o=Xf(i.v),a=Xf(i.w),e.removeEdge(i.v,i.w,i.name),o!==i.v){const n=e.parent(o);Ut.get(n).externalConnections=!0,s.fromCluster=i.v}if(a!==i.w){const n=e.parent(a);Ut.get(n).externalConnections=!0,s.toCluster=i.w}W.debug("Fix Replacing with XXX",o,a,i.name),e.setEdge(o,a,s,i.name)}}),kx(e,0),W.trace(Ut)},"adjustClustersAndEdges"),kx=g((e,t)=>{var s,o;if(t>10){W.error("Bailing out");return}let r=e.nodes(),i=!1;for(const a of r){const n=e.children(a);i=i||n.length>0}if(!i){W.debug("Done, no node has children",e.nodes());return}W.debug("Nodes = ",r,t);for(const a of r)if(W.debug("Extracting node",a,Ut,Ut.has(a)&&!Ut.get(a).externalConnections,!e.parent(a),e.node(a),e.children("D")," Depth ",t),!Ut.has(a))W.debug("Not a cluster",a,t);else if(!Ut.get(a).externalConnections&&e.children(a)&&e.children(a).length>0){W.debug("Cluster without external connections, without a parent and with children",a,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(o=(s=Ut.get(a))==null?void 0:s.clusterData)!=null&&o.dir&&(l=Ut.get(a).clusterData.dir,W.debug("Fixing dir",Ut.get(a).clusterData.dir,l));const c=new mn({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Cx(a,e,c,a),e.setNode(a,{clusterNode:!0,id:a,clusterData:Ut.get(a).clusterData,label:Ut.get(a).label,graph:c})}else W.debug("Cluster ** ",a," **not meeting the criteria !externalConnections:",!Ut.get(a).externalConnections," no parent: ",!e.parent(a)," children ",e.children(a)&&e.children(a).length>0,e.children("D"),t),W.debug(Ut);r=e.nodes(),W.debug("New list of nodes",r);for(const a of r){const n=e.node(a);W.debug(" Now next level",a,n),n!=null&&n.clusterNode&&kx(n.graph,t+1)}},"extractor"),wx=g((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(i=>{const s=e.children(i),o=wx(e,s);r=[...r,...o]}),r},"sorter"),sD=g(e=>wx(e,e.children()),"sortNodesByHierarchy"),Sx=g((e,t,r)=>{let i=e.parent(t);for(;i&&i!==r;){const s=Ut.get(i);if(s&&!s.externalConnections)return!0;i=e.parent(i)}return!1},"isNodeInExtractableCluster"),EM=g((e,t,r)=>{const i=e.children(t)??[];for(const s of i){if(s===r||ko(s,r))continue;const o=Ya(s,e,t);if(o&&!Sx(e,o,t))return o}return null},"findSafeAnchorNode");function FM({prepareLayout:e,measureLayout:t,runLayoutCore:r,paintLayout:i,afterPaint:s,paintOptions:o}){const a=t??_x;return g(async function(l,c,h,u){const d=c.select("g");((h==null?void 0:h.insertMarkers)??X0)(d,l.markers,l.type,l.diagramId),Tx();const f={element:d,helpers:h,options:u};f.preparedLayout=await(e==null?void 0:e(l,f));const p=await a(l,f),y=await r(l,f),C={...f,measure:p};i?await i(l,C,y):await vx(l,C,o),await(s==null?void 0:s(l,C,y))},"render")}g(FM,"createCommonLayoutRenderer");function Tx(){GB(),lL(),rL(),BM()}g(Tx,"clearLayoutRenderState");async function _x(e,{element:t}){return await yx(t,e)}g(_x,"defaultMeasureLayout");async function vx(e,t,r={}){var a,n;const{measure:i}=t,{groups:s}=i;for(const l of((a=r.getNodes)==null?void 0:a.call(r,e,t))??e.nodes)(n=r.skipNode)!=null&&n.call(r,l,t)||await Bx(s,l,t,r);const o=Ax(e.nodes);for(const l of e.edges)Ex(l,r)||await Fx(s,l,o,e,r,t)}g(vx,"paintLayoutData");async function Bx(e,t,r,i){t.clusterNode?pf(t):Lx(t,r,i)?await z0(e.clusters,t):pf(t)}g(Bx,"paintLayoutNode");function Lx(e,t,r){var i;return e.isGroup===!0&&(((i=r.isCluster)==null?void 0:i.call(r,e,t))??!0)}g(Lx,"shouldPaintAsCluster");function Ax(e){const t=new Map;for(const r of e)r!=null&&r.id&&t.set(r.id,r);return t}g(Ax,"buildNodeLookup");function Ex(e,t){var r;return e.isLayoutOnly||!!((r=t.skipEdge)!=null&&r.call(t,e))}g(Ex,"shouldSkipPaintEdge");async function Fx(e,t,r,i,s,o){const a=Y0(e.edgePaths,{...t},s.clusterDb??new Map,i.type,_h(t.start,t,r,o,s),_h(t.end,t,r,o,s),i.diagramId,Mx(t,s));W0(t)&&(Cs.has(t.id)||await Mc(e.edgeLabels,t),$x(t,a))}g(Fx,"paintLayoutEdge");function _h(e,t,r,i,s){var o;return((o=s.getEdgeNode)==null?void 0:o.call(s,e,t,i))??(e?r.get(e)??{}:{})}g(_h,"getRenderedNode");function Mx(e,t){return typeof t.skipIntersect=="function"?t.skipIntersect(e):t.skipIntersect??!1}g(Mx,"shouldSkipIntersect");function $x(e,t){const r=(t==null?void 0:t.updatedPath)??(t==null?void 0:t.originalPath),i=re(),{subGraphTitleTotalMargin:s}=ln({flowchart:i.flowchart??{}});if(e.label){const o=Cs.get(e.id);let a=e.x,n=e.y;if(r){const l=Se.calcLabelPosition(r);W.debug("Moving label "+e.label+" from (",a,",",n,") to (",l.x,",",l.y,") abc88"),t!=null&&t.updatedPath&&(a=l.x,n=l.y)}o.attr("transform",`translate(${a}, ${n+s/2})`)}if(e!=null&&e.startLabelLeft){const o=ae.get(e.id).startLeft;let a=e==null?void 0:e.x,n=e==null?void 0:e.y;if(r){const l=Se.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=ae.get(e.id).startRight;let a=e.x,n=e.y;if(r){const l=Se.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=ae.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const l=Se.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=ae.get(e.id).endRight;let a=e.x,n=e.y;if(r){const l=Se.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}}g($x,"positionRenderedEdgeLabel");function Ox(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}g(Ox,"getDefaultExportFromCjs");var be={},ea={},Gr={},Gf;function vs(){if(Gf)return Gr;Gf=1;function e(a){return typeof a>"u"||a===null}g(e,"isNothing");function t(a){return typeof a=="object"&&a!==null}g(t,"isObject");function r(a){return Array.isArray(a)?a:e(a)?[]:[a]}g(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}g(i,"extend");function s(a,n){let l="";for(let c=0;c<n;c+=1)l+=a;return l}g(s,"repeat");function o(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return g(o,"isNegativeZero"),Gr.isNothing=e,Gr.isObject=t,Gr.toArray=r,Gr.repeat=s,Gr.isNegativeZero=o,Gr.extend=i,Gr}g(vs,"requireCommon");var dl,Vf;function Bs(){if(Vf)return dl;Vf=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+=`
284
+
285
+ `+r.mark.snippet),o+" "+s):o}g(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 g(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=g(function(i){return this.name+": "+e(this,i)},"toString"),dl=t,dl}g(Bs,"requireException");var fl,Kf;function Ix(){if(Kf)return fl;Kf=1;const e=vs();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}}g(t,"getLine");function r(s,o){return e.repeat(" ",o-s.length)+s}g(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,f=o.maxLength-(o.indent+d+3);for(let y=1;y<=o.linesBefore&&!(h-y<0);y++){const C=t(s.buffer,n[h-y],l[h-y],s.position-(n[h]-n[h-y]),f);u=e.repeat(" ",o.indent)+r((s.line-y+1).toString(),d)+" | "+C.str+`
286
+ `+u}const p=t(s.buffer,n[h],l[h],s.position,f);u+=e.repeat(" ",o.indent)+r((s.line+1).toString(),d)+" | "+p.str+`
287
+ `,u+=e.repeat("-",o.indent+d+3+p.pos)+`^
288
+ `;for(let y=1;y<=o.linesAfter&&!(h+y>=l.length);y++){const C=t(s.buffer,n[h+y],l[h+y],s.position-(n[h]-n[h+y]),f);u+=e.repeat(" ",o.indent)+r((s.line+y+1).toString(),d)+" | "+C.str+`
289
+ `}return u.replace(/\n$/,"")}return g(i,"makeSnippet"),fl=i,fl}g(Ix,"requireSnippet");var pl,Zf;function _e(){if(Zf)return pl;Zf=1;const e=Bs(),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}g(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 g(s,"Type2"),pl=s,pl}g(_e,"requireType");var gl,Qf;function Wc(){if(Qf)return gl;Qf=1;const e=Bs(),t=_e();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}g(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}g(a,"collectType");for(let n=0,l=arguments.length;n<l;n+=1)arguments[n].forEach(a);return o}g(i,"compileMap");function s(o){return this.extend(o)}return g(s,"Schema2"),s.prototype.extend=g(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"),gl=s,gl}g(Wc,"requireSchema");var ml,Jf;function Hc(){if(Jf)return ml;Jf=1;const e=_e();return ml=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:g(function(t){return t!==null?t:""},"construct")}),ml}g(Hc,"requireStr");var yl,tp;function Yc(){if(tp)return yl;tp=1;const e=_e();return yl=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:g(function(t){return t!==null?t:[]},"construct")}),yl}g(Yc,"requireSeq");var xl,ep;function Uc(){if(ep)return xl;ep=1;const e=_e();return xl=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:g(function(t){return t!==null?t:{}},"construct")}),xl}g(Uc,"requireMap");var Cl,rp;function jc(){if(rp)return Cl;rp=1;const e=Wc();return Cl=new e({explicit:[Hc(),Yc(),Uc()]}),Cl}g(jc,"requireFailsafe");var bl,ip;function Xc(){if(ip)return bl;ip=1;const e=_e();function t(s){if(s===null)return!0;const o=s.length;return o===1&&s==="~"||o===4&&(s==="null"||s==="Null"||s==="NULL")}g(t,"resolveYamlNull");function r(){return null}g(r,"constructYamlNull");function i(s){return s===null}return g(i,"isNull"),bl=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{canonical:g(function(){return"~"},"canonical"),lowercase:g(function(){return"null"},"lowercase"),uppercase:g(function(){return"NULL"},"uppercase"),camelcase:g(function(){return"Null"},"camelcase"),empty:g(function(){return""},"empty")},defaultStyle:"lowercase"}),bl}g(Xc,"require_null");var kl,sp;function Gc(){if(sp)return kl;sp=1;const e=_e();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")}g(t,"resolveYamlBoolean");function r(s){return s==="true"||s==="True"||s==="TRUE"}g(r,"constructYamlBoolean");function i(s){return Object.prototype.toString.call(s)==="[object Boolean]"}return g(i,"isBoolean"),kl=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{lowercase:g(function(s){return s?"true":"false"},"lowercase"),uppercase:g(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:g(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),kl}g(Gc,"requireBool");var wl,op;function Vc(){if(op)return wl;op=1;const e=vs(),t=_e();function r(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}g(r,"isHexCode");function i(c){return c>=48&&c<=55}g(i,"isOctCode");function s(c){return c>=48&&c<=57}g(s,"isDecCode");function o(c){if(c===null)return!1;const h=c.length;let u=0,d=!1;if(!h)return!1;let f=c[u];if((f==="-"||f==="+")&&(f=c[++u]),f==="0"){if(u+1===h)return!0;if(f=c[++u],f==="b"){for(u++;u<h;u++){if(f=c[u],f!=="0"&&f!=="1")return!1;d=!0}return d&&isFinite(a(c))}if(f==="x"){for(u++;u<h;u++){if(!r(c.charCodeAt(u)))return!1;d=!0}return d&&isFinite(a(c))}if(f==="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}g(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)}g(a,"parseYamlInteger");function n(c){return a(c)}g(n,"constructYamlInteger");function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return g(l,"isInteger"),wl=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:n,predicate:l,represent:{binary:g(function(c){return c>=0?"0b"+c.toString(2):"-0b"+c.toString(2).slice(1)},"binary"),octal:g(function(c){return c>=0?"0o"+c.toString(8):"-0o"+c.toString(8).slice(1)},"octal"),decimal:g(function(c){return c.toString(10)},"decimal"),hexadecimal:g(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"]}}),wl}g(Vc,"requireInt");var Sl,ap;function Kc(){if(ap)return Sl;ap=1;const e=vs(),t=_e(),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)}g(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)}g(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}g(n,"representYamlFloat");function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return g(l,"isFloat"),Sl=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:o,predicate:l,represent:n,defaultStyle:"lowercase"}),Sl}g(Kc,"requireFloat");var Tl,np;function Zc(){return np||(np=1,Tl=jc().extend({implicit:[Xc(),Gc(),Vc(),Kc()]})),Tl}g(Zc,"requireJson");var _l,lp;function Qc(){return lp||(lp=1,_l=Zc()),_l}g(Qc,"requireCore");var vl,hp;function Jc(){if(hp)return vl;hp=1;const e=_e(),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}g(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 f=+c[4],p=+c[5],y=+c[6];if(c[7]){for(n=c[7].slice(0,3);n.length<3;)n+="0";n=+n}if(c[9]){const x=+c[10],b=+(c[11]||0);l=(x*60+b)*6e4,c[9]==="-"&&(l=-l)}const C=new Date(Date.UTC(h,u,d,f,p,y,n));return l&&C.setTime(C.getTime()-l),C}g(s,"constructYamlTimestamp");function o(a){return a.toISOString()}return g(o,"representYamlTimestamp"),vl=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:s,instanceOf:Date,represent:o}),vl}g(Jc,"requireTimestamp");var Bl,cp;function tu(){if(cp)return Bl;cp=1;const e=_e();function t(r){return r==="<<"||r===null}return g(t,"resolveYamlMerge"),Bl=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),Bl}g(tu,"requireMerge");var Ll,up;function eu(){if(up)return Ll;up=1;const e=_e(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
290
+ \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}g(r,"resolveYamlBinary");function i(a){const n=a.replace(/[\r\n=]/g,""),l=n.length,c=t;let h=0;const u=[];for(let f=0;f<l;f++)f%4===0&&f&&(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)),h=h<<6|c.indexOf(n.charAt(f));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)}g(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}g(s,"representYamlBinary");function o(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return g(o,"isBinary"),Ll=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:s}),Ll}g(eu,"requireBinary");var Al,dp;function ru(){if(dp)return Al;dp=1;const e=_e(),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}g(i,"resolveYamlOmap");function s(o){return o!==null?o:[]}return g(s,"constructYamlOmap"),Al=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:s}),Al}g(ru,"requireOmap");var El,fp;function iu(){if(fp)return El;fp=1;const e=_e(),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}g(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 g(i,"constructYamlPairs"),El=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),El}g(iu,"requirePairs");var Fl,pp;function su(){if(pp)return Fl;pp=1;const e=_e(),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}g(r,"resolveYamlSet");function i(s){return s!==null?s:{}}return g(i,"constructYamlSet"),Fl=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),Fl}g(su,"requireSet");var Ml,gp;function yn(){return gp||(gp=1,Ml=Qc().extend({implicit:[Jc(),tu()],explicit:[eu(),ru(),iu(),su()]})),Ml}g(yn,"require_default");var mp;function Dx(){if(mp)return ea;mp=1;const e=vs(),t=Bs(),r=Ix(),i=yn(),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]/,f=/[\x85\u2028\u2029]/,p=/[,\[\]{}]/,y=/^(?:!|!!|![0-9A-Za-z-]+!)$/,C=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function x(m){return Object.prototype.toString.call(m)}g(x,"_class");function b(m){return m===10||m===13}g(b,"isEol");function k(m){return m===9||m===32}g(k,"isWhiteSpace");function T(m){return m===9||m===32||m===10||m===13}g(T,"isWsOrEol");function v(m){return m===44||m===91||m===93||m===123||m===125}g(v,"isFlowIndicator");function E(m){if(m>=48&&m<=57)return m-48;const P=m|32;return P>=97&&P<=102?P-97+10:-1}g(E,"fromHexCode");function L(m){return m===120?2:m===117?4:m===85?8:0}g(L,"escapedHexLen");function A(m){return m>=48&&m<=57?m-48:-1}g(A,"fromDecimalCode");function H(m){switch(m){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
291
+ `;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""}}g(H,"simpleEscapeSequence");function q(m){return m<=65535?String.fromCharCode(m):String.fromCharCode((m-65536>>10)+55296,(m-65536&1023)+56320)}g(q,"charFromCodepoint");function R(m,P,V){P==="__proto__"?Object.defineProperty(m,P,{configurable:!0,enumerable:!0,writable:!0,value:V}):m[P]=V}g(R,"setProperty");const ot=new Array(256),U=new Array(256);for(let m=0;m<256;m++)ot[m]=H(m)?1:0,U[m]=H(m);function O(m,P){this.input=m,this.filename=P.filename||null,this.schema=P.schema||i,this.onWarning=P.onWarning||null,this.legacy=P.legacy||!1,this.json=P.json||!1,this.listener=P.listener||null,this.maxDepth=typeof P.maxDepth=="number"?P.maxDepth:100,this.maxTotalMergeKeys=typeof P.maxTotalMergeKeys=="number"?P.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=m.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=[]}g(O,"State");function $(m,P){const V={name:m.filename,buffer:m.input.slice(0,-1),position:m.position,line:m.line,column:m.position-m.lineStart};return V.snippet=r(V),new t(P,V)}g($,"generateError");function B(m,P){throw $(m,P)}g(B,"throwError");function N(m,P){m.onWarning&&m.onWarning.call(null,$(m,P))}g(N,"throwWarning");function F(m,P,V){const Q=m.anchorMapTransactions;if(Q.length!==0){const G=Q[Q.length-1];s.call(G,P)||(G[P]={existed:s.call(m.anchorMap,P),value:m.anchorMap[P]})}m.anchorMap[P]=V}g(F,"storeAnchor");function D(m){m.anchorMapTransactions.push(Object.create(null))}g(D,"beginAnchorTransaction");function K(m){const P=m.anchorMapTransactions.pop(),V=m.anchorMapTransactions;if(V.length===0)return;const Q=V[V.length-1],G=Object.keys(P);for(let nt=0,S=G.length;nt<S;nt+=1){const z=G[nt];s.call(Q,z)||(Q[z]=P[z])}}g(K,"commitAnchorTransaction");function lt(m){const P=m.anchorMapTransactions.pop(),V=Object.keys(P);for(let Q=V.length-1;Q>=0;Q-=1){const G=P[V[Q]];G.existed?m.anchorMap[V[Q]]=G.value:delete m.anchorMap[V[Q]]}}g(lt,"rollbackAnchorTransaction");function ht(m){return{position:m.position,line:m.line,lineStart:m.lineStart,lineIndent:m.lineIndent,firstTabInLine:m.firstTabInLine,tag:m.tag,anchor:m.anchor,kind:m.kind,result:m.result}}g(ht,"snapshotState");function mt(m,P){m.position=P.position,m.line=P.line,m.lineStart=P.lineStart,m.lineIndent=P.lineIndent,m.firstTabInLine=P.firstTabInLine,m.tag=P.tag,m.anchor=P.anchor,m.kind=P.kind,m.result=P.result}g(mt,"restoreState");const ft={YAML:g(function(P,V,Q){P.version!==null&&B(P,"duplication of %YAML directive"),Q.length!==1&&B(P,"YAML directive accepts exactly one argument");const G=/^([0-9]+)\.([0-9]+)$/.exec(Q[0]);G===null&&B(P,"ill-formed argument of the YAML directive");const nt=parseInt(G[1],10),S=parseInt(G[2],10);nt!==1&&B(P,"unacceptable YAML version of the document"),P.version=Q[0],P.checkLineBreaks=S<2,S!==1&&S!==2&&N(P,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:g(function(P,V,Q){let G;Q.length!==2&&B(P,"TAG directive accepts exactly two arguments");const nt=Q[0];G=Q[1],y.test(nt)||B(P,"ill-formed tag handle (first argument) of the TAG directive"),s.call(P.tagMap,nt)&&B(P,'there is a previously declared suffix for "'+nt+'" tag handle'),C.test(G)||B(P,"ill-formed tag prefix (second argument) of the TAG directive");try{G=decodeURIComponent(G)}catch{B(P,"tag prefix is malformed: "+G)}P.tagMap[nt]=G},"handleTagDirective")};function pt(m,P,V,Q){if(P<V){const G=m.input.slice(P,V);if(Q)for(let nt=0,S=G.length;nt<S;nt+=1){const z=G.charCodeAt(nt);z===9||z>=32&&z<=1114111||B(m,"expected valid JSON character")}else d.test(G)&&B(m,"the stream contains non-printable characters");m.result+=G}}g(pt,"captureSegment");function ct(m,P,V,Q){e.isObject(V)||B(m,"cannot merge mappings; the provided source object is unacceptable");const G=Object.keys(V);for(let nt=0,S=G.length;nt<S;nt+=1){const z=G[nt];m.maxTotalMergeKeys!==-1&&++m.totalMergeKeys>m.maxTotalMergeKeys&&B(m,"merge keys exceeded maxTotalMergeKeys ("+m.maxTotalMergeKeys+")"),s.call(P,z)||(R(P,z,V[z]),Q[z]=!0)}}g(ct,"mergeMappings");function _t(m,P,V,Q,G,nt,S,z,rt){if(Array.isArray(G)){G=Array.prototype.slice.call(G);for(let Z=0,J=G.length;Z<J;Z+=1)Array.isArray(G[Z])&&B(m,"nested arrays are not supported inside keys"),typeof G=="object"&&x(G[Z])==="[object Object]"&&(G[Z]="[object Object]")}if(typeof G=="object"&&x(G)==="[object Object]"&&(G="[object Object]"),G=String(G),P===null&&(P={}),Q==="tag:yaml.org,2002:merge")if(Array.isArray(nt))for(let Z=0,J=nt.length;Z<J;Z+=1)ct(m,P,nt[Z],V);else ct(m,P,nt,V);else!m.json&&!s.call(V,G)&&s.call(P,G)&&(m.line=S||m.line,m.lineStart=z||m.lineStart,m.position=rt||m.position,B(m,"duplicated mapping key")),R(P,G,nt),delete V[G];return P}g(_t,"storeMappingPair");function qt(m){const P=m.input.charCodeAt(m.position);P===10?m.position++:P===13?(m.position++,m.input.charCodeAt(m.position)===10&&m.position++):B(m,"a line break is expected"),m.line+=1,m.lineStart=m.position,m.firstTabInLine=-1}g(qt,"readLineBreak");function Et(m,P,V){let Q=0,G=m.input.charCodeAt(m.position);for(;G!==0;){for(;k(G);)G===9&&m.firstTabInLine===-1&&(m.firstTabInLine=m.position),G=m.input.charCodeAt(++m.position);if(P&&G===35)do G=m.input.charCodeAt(++m.position);while(G!==10&&G!==13&&G!==0);if(b(G))for(qt(m),G=m.input.charCodeAt(m.position),Q++,m.lineIndent=0;G===32;)m.lineIndent++,G=m.input.charCodeAt(++m.position);else break}return V!==-1&&Q!==0&&m.lineIndent<V&&N(m,"deficient indentation"),Q}g(Et,"skipSeparationSpace");function ut(m){let P=m.position,V=m.input.charCodeAt(P);return!!((V===45||V===46)&&V===m.input.charCodeAt(P+1)&&V===m.input.charCodeAt(P+2)&&(P+=3,V=m.input.charCodeAt(P),V===0||T(V)))}g(ut,"testDocumentSeparator");function bt(m,P){P===1?m.result+=" ":P>1&&(m.result+=e.repeat(`
292
+ `,P-1))}g(bt,"writeFoldedLines");function Ft(m,P,V){let Q,G,nt,S,z,rt;const Z=m.kind,J=m.result;let at=m.input.charCodeAt(m.position);if(T(at)||v(at)||at===35||at===38||at===42||at===33||at===124||at===62||at===39||at===34||at===37||at===64||at===96)return!1;if(at===63||at===45){const it=m.input.charCodeAt(m.position+1);if(T(it)||V&&v(it))return!1}for(m.kind="scalar",m.result="",Q=G=m.position,nt=!1;at!==0;){if(at===58){const it=m.input.charCodeAt(m.position+1);if(T(it)||V&&v(it))break}else if(at===35){const it=m.input.charCodeAt(m.position-1);if(T(it))break}else{if(m.position===m.lineStart&&ut(m)||V&&v(at))break;if(b(at))if(S=m.line,z=m.lineStart,rt=m.lineIndent,Et(m,!1,-1),m.lineIndent>=P){nt=!0,at=m.input.charCodeAt(m.position);continue}else{m.position=G,m.line=S,m.lineStart=z,m.lineIndent=rt;break}}nt&&(pt(m,Q,G,!1),bt(m,m.line-S),Q=G=m.position,nt=!1),k(at)||(G=m.position+1),at=m.input.charCodeAt(++m.position)}return pt(m,Q,G,!1),m.result?!0:(m.kind=Z,m.result=J,!1)}g(Ft,"readPlainScalar");function Nt(m,P){let V,Q,G=m.input.charCodeAt(m.position);if(G!==39)return!1;for(m.kind="scalar",m.result="",m.position++,V=Q=m.position;(G=m.input.charCodeAt(m.position))!==0;)if(G===39)if(pt(m,V,m.position,!0),G=m.input.charCodeAt(++m.position),G===39)V=m.position,m.position++,Q=m.position;else return!0;else b(G)?(pt(m,V,Q,!0),bt(m,Et(m,!1,P)),V=Q=m.position):m.position===m.lineStart&&ut(m)?B(m,"unexpected end of the document within a single quoted scalar"):(m.position++,k(G)||(Q=m.position));B(m,"unexpected end of the stream within a single quoted scalar")}g(Nt,"readSingleQuotedScalar");function Kt(m,P){let V,Q,G,nt=m.input.charCodeAt(m.position);if(nt!==34)return!1;for(m.kind="scalar",m.result="",m.position++,V=Q=m.position;(nt=m.input.charCodeAt(m.position))!==0;){if(nt===34)return pt(m,V,m.position,!0),m.position++,!0;if(nt===92){if(pt(m,V,m.position,!0),nt=m.input.charCodeAt(++m.position),b(nt))Et(m,!1,P);else if(nt<256&&ot[nt])m.result+=U[nt],m.position++;else if((G=L(nt))>0){let S=G,z=0;for(;S>0;S--)nt=m.input.charCodeAt(++m.position),(G=E(nt))>=0?z=(z<<4)+G:B(m,"expected hexadecimal character");m.result+=q(z),m.position++}else B(m,"unknown escape sequence");V=Q=m.position}else b(nt)?(pt(m,V,Q,!0),bt(m,Et(m,!1,P)),V=Q=m.position):m.position===m.lineStart&&ut(m)?B(m,"unexpected end of the document within a double quoted scalar"):(m.position++,k(nt)||(Q=m.position))}B(m,"unexpected end of the stream within a double quoted scalar")}g(Kt,"readDoubleQuotedScalar");function Y(m,P){let V=!0,Q,G,nt;const S=m.tag;let z;const rt=m.anchor;let Z,J,at,it;const kt=Object.create(null);let gt,Tt,vt,Pt=m.input.charCodeAt(m.position);if(Pt===91)Z=93,it=!1,z=[];else if(Pt===123)Z=125,it=!0,z={};else return!1;for(m.anchor!==null&&F(m,m.anchor,z),Pt=m.input.charCodeAt(++m.position);Pt!==0;){if(Et(m,!0,P),Pt=m.input.charCodeAt(m.position),Pt===Z)return m.position++,m.tag=S,m.anchor=rt,m.kind=it?"mapping":"sequence",m.result=z,!0;if(V?Pt===44&&B(m,"expected the node content, but found ','"):B(m,"missed comma between flow collection entries"),Tt=gt=vt=null,J=at=!1,Pt===63){const Qt=m.input.charCodeAt(m.position+1);T(Qt)&&(J=at=!0,m.position++,Et(m,!0,P))}Q=m.line,G=m.lineStart,nt=m.position,ne(m,P,o,!1,!0),Tt=m.tag,gt=m.result,Et(m,!0,P),Pt=m.input.charCodeAt(m.position),(at||m.line===Q)&&Pt===58&&(J=!0,Pt=m.input.charCodeAt(++m.position),Et(m,!0,P),ne(m,P,o,!1,!0),vt=m.result),it?_t(m,z,kt,Tt,gt,vt,Q,G,nt):J?z.push(_t(m,null,kt,Tt,gt,vt,Q,G,nt)):z.push(gt),Et(m,!0,P),Pt=m.input.charCodeAt(m.position),Pt===44?(V=!0,Pt=m.input.charCodeAt(++m.position)):V=!1}B(m,"unexpected end of the stream within a flow collection")}g(Y,"readFlowCollection");function xt(m,P){let V,Q=c,G=!1,nt=!1,S=P,z=0,rt=!1,Z,J=m.input.charCodeAt(m.position);if(J===124)V=!1;else if(J===62)V=!0;else return!1;for(m.kind="scalar",m.result="";J!==0;)if(J=m.input.charCodeAt(++m.position),J===43||J===45)c===Q?Q=J===43?u:h:B(m,"repeat of a chomping mode identifier");else if((Z=A(J))>=0)Z===0?B(m,"bad explicit indentation width of a block scalar; it cannot be less than one"):nt?B(m,"repeat of an indentation width identifier"):(S=P+Z-1,nt=!0);else break;if(k(J)){do J=m.input.charCodeAt(++m.position);while(k(J));if(J===35)do J=m.input.charCodeAt(++m.position);while(!b(J)&&J!==0)}for(;J!==0;){for(qt(m),m.lineIndent=0,J=m.input.charCodeAt(m.position);(!nt||m.lineIndent<S)&&J===32;)m.lineIndent++,J=m.input.charCodeAt(++m.position);if(!nt&&m.lineIndent>S&&(S=m.lineIndent),b(J)){z++;continue}if(!nt&&S===0&&B(m,"missing indentation for block scalar"),m.lineIndent<S){Q===u?m.result+=e.repeat(`
293
+ `,G?1+z:z):Q===c&&G&&(m.result+=`
294
+ `);break}V?k(J)?(rt=!0,m.result+=e.repeat(`
295
+ `,G?1+z:z)):rt?(rt=!1,m.result+=e.repeat(`
296
+ `,z+1)):z===0?G&&(m.result+=" "):m.result+=e.repeat(`
297
+ `,z):m.result+=e.repeat(`
298
+ `,G?1+z:z),G=!0,nt=!0,z=0;const at=m.position;for(;!b(J)&&J!==0;)J=m.input.charCodeAt(++m.position);pt(m,at,m.position,!1)}return!0}g(xt,"readBlockScalar");function ve(m,P){const V=m.tag,Q=m.anchor,G=[];let nt=!1;if(m.firstTabInLine!==-1)return!1;m.anchor!==null&&F(m,m.anchor,G);let S=m.input.charCodeAt(m.position);for(;S!==0&&(m.firstTabInLine!==-1&&(m.position=m.firstTabInLine,B(m,"tab characters must not be used in indentation")),S===45);){const z=m.input.charCodeAt(m.position+1);if(!T(z))break;if(nt=!0,m.position++,Et(m,!0,-1)&&m.lineIndent<=P){G.push(null),S=m.input.charCodeAt(m.position);continue}const rt=m.line;if(ne(m,P,n,!1,!0),G.push(m.result),Et(m,!0,-1),S=m.input.charCodeAt(m.position),(m.line===rt||m.lineIndent>P)&&S!==0)B(m,"bad indentation of a sequence entry");else if(m.lineIndent<P)break}return nt?(m.tag=V,m.anchor=Q,m.kind="sequence",m.result=G,!0):!1}g(ve,"readBlockSequence");function Yt(m,P,V){let Q,G,nt,S;const z=m.tag,rt=m.anchor,Z={},J=Object.create(null);let at=null,it=null,kt=null,gt=!1,Tt=!1;if(m.firstTabInLine!==-1)return!1;m.anchor!==null&&F(m,m.anchor,Z);let vt=m.input.charCodeAt(m.position);for(;vt!==0;){!gt&&m.firstTabInLine!==-1&&(m.position=m.firstTabInLine,B(m,"tab characters must not be used in indentation"));const Pt=m.input.charCodeAt(m.position+1),Qt=m.line;if((vt===63||vt===58)&&T(Pt))vt===63?(gt&&(_t(m,Z,J,at,it,null,G,nt,S),at=it=kt=null),Tt=!0,gt=!0,Q=!0):gt?(gt=!1,Q=!0):B(m,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),m.position+=1,vt=Pt;else{if(G=m.line,nt=m.lineStart,S=m.position,!ne(m,V,a,!1,!0))break;if(m.line===Qt){for(vt=m.input.charCodeAt(m.position);k(vt);)vt=m.input.charCodeAt(++m.position);if(vt===58)vt=m.input.charCodeAt(++m.position),T(vt)||B(m,"a whitespace character is expected after the key-value separator within a block mapping"),gt&&(_t(m,Z,J,at,it,null,G,nt,S),at=it=kt=null),Tt=!0,gt=!1,Q=!1,at=m.tag,it=m.result;else if(Tt)B(m,"can not read an implicit mapping pair; a colon is missed");else return m.tag=z,m.anchor=rt,!0}else if(Tt)B(m,"can not read a block mapping entry; a multiline key may not be an implicit key");else return m.tag=z,m.anchor=rt,!0}if((m.line===Qt||m.lineIndent>P)&&(gt&&(G=m.line,nt=m.lineStart,S=m.position),ne(m,P,l,!0,Q)&&(gt?it=m.result:kt=m.result),gt||(_t(m,Z,J,at,it,kt,G,nt,S),at=it=kt=null),Et(m,!0,-1),vt=m.input.charCodeAt(m.position)),(m.line===Qt||m.lineIndent>P)&&vt!==0)B(m,"bad indentation of a mapping entry");else if(m.lineIndent<P)break}return gt&&_t(m,Z,J,at,it,null,G,nt,S),Tt&&(m.tag=z,m.anchor=rt,m.kind="mapping",m.result=Z),Tt}g(Yt,"readBlockMapping");function Sr(m){let P=!1,V=!1,Q,G,nt=m.input.charCodeAt(m.position);if(nt!==33)return!1;m.tag!==null&&B(m,"duplication of a tag property"),nt=m.input.charCodeAt(++m.position),nt===60?(P=!0,nt=m.input.charCodeAt(++m.position)):nt===33?(V=!0,Q="!!",nt=m.input.charCodeAt(++m.position)):Q="!";let S=m.position;if(P){do nt=m.input.charCodeAt(++m.position);while(nt!==0&&nt!==62);m.position<m.length?(G=m.input.slice(S,m.position),nt=m.input.charCodeAt(++m.position)):B(m,"unexpected end of the stream within a verbatim tag")}else{for(;nt!==0&&!T(nt);)nt===33&&(V?B(m,"tag suffix cannot contain exclamation marks"):(Q=m.input.slice(S-1,m.position+1),y.test(Q)||B(m,"named tag handle cannot contain such characters"),V=!0,S=m.position+1)),nt=m.input.charCodeAt(++m.position);G=m.input.slice(S,m.position),p.test(G)&&B(m,"tag suffix cannot contain flow indicator characters")}G&&!C.test(G)&&B(m,"tag name cannot contain such characters: "+G);try{G=decodeURIComponent(G)}catch{B(m,"tag name is malformed: "+G)}return P?m.tag=G:s.call(m.tagMap,Q)?m.tag=m.tagMap[Q]+G:Q==="!"?m.tag="!"+G:Q==="!!"?m.tag="tag:yaml.org,2002:"+G:B(m,'undeclared tag handle "'+Q+'"'),!0}g(Sr,"readTagProperty");function ge(m){let P=m.input.charCodeAt(m.position);if(P!==38)return!1;m.anchor!==null&&B(m,"duplication of an anchor property"),P=m.input.charCodeAt(++m.position);const V=m.position;for(;P!==0&&!T(P)&&!v(P);)P=m.input.charCodeAt(++m.position);return m.position===V&&B(m,"name of an anchor node must contain at least one character"),m.anchor=m.input.slice(V,m.position),!0}g(ge,"readAnchorProperty");function We(m){let P=m.input.charCodeAt(m.position);if(P!==42)return!1;P=m.input.charCodeAt(++m.position);const V=m.position;for(;P!==0&&!T(P)&&!v(P);)P=m.input.charCodeAt(++m.position);m.position===V&&B(m,"name of an alias node must contain at least one character");const Q=m.input.slice(V,m.position);return s.call(m.anchorMap,Q)||B(m,'unidentified alias "'+Q+'"'),m.result=m.anchorMap[Q],Et(m,!0,-1),!0}g(We,"readAlias");function zr(m,P,V,Q){const G=ht(m);return D(m),mt(m,P),m.tag=null,m.anchor=null,m.kind=null,m.result=null,Yt(m,V,Q)&&m.kind==="mapping"?(K(m),!0):(lt(m),mt(m,G),!1)}g(zr,"tryReadBlockMappingFromProperty");function ne(m,P,V,Q,G){let nt,S,z=1,rt=!1,Z=!1,J=null,at,it,kt;m.depth>=m.maxDepth&&B(m,"nesting exceeded maxDepth ("+m.maxDepth+")"),m.depth+=1,m.listener!==null&&m.listener("open",m),m.tag=null,m.anchor=null,m.kind=null,m.result=null;const gt=nt=S=l===V||n===V;if(Q&&Et(m,!0,-1)&&(rt=!0,m.lineIndent>P?z=1:m.lineIndent===P?z=0:m.lineIndent<P&&(z=-1)),z===1)for(;;){const Tt=m.input.charCodeAt(m.position),vt=ht(m);if(rt&&(Tt===33&&m.tag!==null||Tt===38&&m.anchor!==null)||!Sr(m)&&!ge(m))break;J===null&&(J=vt),Et(m,!0,-1)?(rt=!0,S=gt,m.lineIndent>P?z=1:m.lineIndent===P?z=0:m.lineIndent<P&&(z=-1)):S=!1}if(S&&(S=rt||G),z===1||l===V)if(o===V||a===V?it=P:it=P+1,kt=m.position-m.lineStart,z===1)if(S&&(ve(m,kt)||Yt(m,kt,it))||Y(m,it))Z=!0;else{const Tt=m.input.charCodeAt(m.position);J!==null&&gt&&!S&&Tt!==124&&Tt!==62&&zr(m,J,J.position-J.lineStart,it)||nt&&xt(m,it)||Nt(m,it)||Kt(m,it)?Z=!0:We(m)?(Z=!0,(m.tag!==null||m.anchor!==null)&&B(m,"alias node should not have any properties")):Ft(m,it,o===V)&&(Z=!0,m.tag===null&&(m.tag="?")),m.anchor!==null&&F(m,m.anchor,m.result)}else z===0&&(Z=S&&ve(m,kt));if(m.tag===null)m.anchor!==null&&F(m,m.anchor,m.result);else if(m.tag==="?"){m.result!==null&&m.kind!=="scalar"&&B(m,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+m.kind+'"');for(let Tt=0,vt=m.implicitTypes.length;Tt<vt;Tt+=1)if(at=m.implicitTypes[Tt],at.resolve(m.result)){m.result=at.construct(m.result),m.tag=at.tag,m.anchor!==null&&F(m,m.anchor,m.result);break}}else if(m.tag!=="!"){if(s.call(m.typeMap[m.kind||"fallback"],m.tag))at=m.typeMap[m.kind||"fallback"][m.tag];else{at=null;const Tt=m.typeMap.multi[m.kind||"fallback"];for(let vt=0,Pt=Tt.length;vt<Pt;vt+=1)if(m.tag.slice(0,Tt[vt].tag.length)===Tt[vt].tag){at=Tt[vt];break}}at||B(m,"unknown tag !<"+m.tag+">"),m.result!==null&&at.kind!==m.kind&&B(m,"unacceptable node kind for !<"+m.tag+'> tag; it should be "'+at.kind+'", not "'+m.kind+'"'),at.resolve(m.result,m.tag)?(m.result=at.construct(m.result,m.tag),m.anchor!==null&&F(m,m.anchor,m.result)):B(m,"cannot resolve a node with !<"+m.tag+"> explicit tag")}return m.listener!==null&&m.listener("close",m),m.depth-=1,m.tag!==null||m.anchor!==null||Z}g(ne,"composeNode");function Wr(m){const P=m.position;let V=!1,Q;for(m.version=null,m.checkLineBreaks=m.legacy,m.tagMap=Object.create(null),m.anchorMap=Object.create(null);(Q=m.input.charCodeAt(m.position))!==0&&(Et(m,!0,-1),Q=m.input.charCodeAt(m.position),!(m.lineIndent>0||Q!==37));){V=!0,Q=m.input.charCodeAt(++m.position);let G=m.position;for(;Q!==0&&!T(Q);)Q=m.input.charCodeAt(++m.position);const nt=m.input.slice(G,m.position),S=[];for(nt.length<1&&B(m,"directive name must not be less than one character in length");Q!==0;){for(;k(Q);)Q=m.input.charCodeAt(++m.position);if(Q===35){do Q=m.input.charCodeAt(++m.position);while(Q!==0&&!b(Q));break}if(b(Q))break;for(G=m.position;Q!==0&&!T(Q);)Q=m.input.charCodeAt(++m.position);S.push(m.input.slice(G,m.position))}Q!==0&&qt(m),s.call(ft,nt)?ft[nt](m,nt,S):N(m,'unknown document directive "'+nt+'"')}if(Et(m,!0,-1),m.lineIndent===0&&m.input.charCodeAt(m.position)===45&&m.input.charCodeAt(m.position+1)===45&&m.input.charCodeAt(m.position+2)===45?(m.position+=3,Et(m,!0,-1)):V&&B(m,"directives end mark is expected"),ne(m,m.lineIndent-1,l,!1,!0),Et(m,!0,-1),m.checkLineBreaks&&f.test(m.input.slice(P,m.position))&&N(m,"non-ASCII line breaks are interpreted as content"),m.documents.push(m.result),m.position===m.lineStart&&ut(m)){m.input.charCodeAt(m.position)===46&&(m.position+=3,Et(m,!0,-1));return}m.position<m.length-1&&B(m,"end of the stream or a document separator is expected")}g(Wr,"readDocument");function ar(m,P){m=String(m),P=P||{},m.length!==0&&(m.charCodeAt(m.length-1)!==10&&m.charCodeAt(m.length-1)!==13&&(m+=`
299
+ `),m.charCodeAt(0)===65279&&(m=m.slice(1)));const V=new O(m,P),Q=m.indexOf("\0");for(Q!==-1&&(V.position=Q,B(V,"null byte is not allowed in input")),V.input+="\0";V.input.charCodeAt(V.position)===32;)V.lineIndent+=1,V.position+=1;for(;V.position<V.length-1;)Wr(V);return V.documents}g(ar,"loadDocuments");function Tr(m,P,V){P!==null&&typeof P=="object"&&typeof V>"u"&&(V=P,P=null);const Q=ar(m,V);if(typeof P!="function")return Q;for(let G=0,nt=Q.length;G<nt;G+=1)P(Q[G])}g(Tr,"loadAll2");function _r(m,P){const V=ar(m,P);if(V.length!==0){if(V.length===1)return V[0];throw new t("expected a single document in the stream, but found more")}}return g(_r,"load2"),ea.loadAll=Tr,ea.load=_r,ea}g(Dx,"requireLoader");var $l={},yp;function Px(){if(yp)return $l;yp=1;const e=vs(),t=Bs(),r=yn(),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=65279,a=9,n=10,l=13,c=32,h=33,u=34,d=35,f=37,p=38,y=39,C=42,x=44,b=45,k=58,T=61,v=62,E=63,L=64,A=91,H=93,q=96,R=123,ot=124,U=125,O={};O[0]="\\0",O[7]="\\a",O[8]="\\b",O[9]="\\t",O[10]="\\n",O[11]="\\v",O[12]="\\f",O[13]="\\r",O[27]="\\e",O[34]='\\"',O[92]="\\\\",O[133]="\\N",O[160]="\\_",O[8232]="\\L",O[8233]="\\P";const $=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],B=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function N(S,z){if(z===null)return{};const rt={},Z=Object.keys(z);for(let J=0,at=Z.length;J<at;J+=1){let it=Z[J],kt=String(z[it]);it.slice(0,2)==="!!"&&(it="tag:yaml.org,2002:"+it.slice(2));const gt=S.compiledTypeMap.fallback[it];gt&&s.call(gt.styleAliases,kt)&&(kt=gt.styleAliases[kt]),rt[it]=kt}return rt}g(N,"compileStyleMap");function F(S){let z,rt;const Z=S.toString(16).toUpperCase();if(S<=255)z="x",rt=2;else if(S<=65535)z="u",rt=4;else if(S<=4294967295)z="U",rt=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+z+e.repeat("0",rt-Z.length)+Z}g(F,"encodeHex");const D=1,K=2;function lt(S){this.schema=S.schema||r,this.indent=Math.max(1,S.indent||2),this.noArrayIndent=S.noArrayIndent||!1,this.skipInvalid=S.skipInvalid||!1,this.flowLevel=e.isNothing(S.flowLevel)?-1:S.flowLevel,this.styleMap=N(this.schema,S.styles||null),this.sortKeys=S.sortKeys||!1,this.lineWidth=S.lineWidth||80,this.noRefs=S.noRefs||!1,this.noCompatMode=S.noCompatMode||!1,this.condenseFlow=S.condenseFlow||!1,this.quotingType=S.quotingType==='"'?K:D,this.forceQuotes=S.forceQuotes||!1,this.replacer=typeof S.replacer=="function"?S.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}g(lt,"State");function ht(S,z){const rt=e.repeat(" ",z);let Z=0,J="";const at=S.length;for(;Z<at;){let it;const kt=S.indexOf(`
300
+ `,Z);kt===-1?(it=S.slice(Z),Z=at):(it=S.slice(Z,kt+1),Z=kt+1),it.length&&it!==`
301
+ `&&(J+=rt),J+=it}return J}g(ht,"indentString");function mt(S,z){return`
302
+ `+e.repeat(" ",S.indent*z)}g(mt,"generateNextLine");function ft(S,z){for(let rt=0,Z=S.implicitTypes.length;rt<Z;rt+=1)if(S.implicitTypes[rt].resolve(z))return!0;return!1}g(ft,"testImplicitResolving");function pt(S){return S===c||S===a}g(pt,"isWhitespace");function ct(S){return S>=32&&S<=126||S>=161&&S<=55295&&S!==8232&&S!==8233||S>=57344&&S<=65533&&S!==o||S>=65536&&S<=1114111}g(ct,"isPrintable");function _t(S){return ct(S)&&S!==o&&S!==l&&S!==n}g(_t,"isNsCharOrWhitespace");function qt(S,z,rt){const Z=_t(S),J=Z&&!pt(S);return(rt?Z:Z&&S!==x&&S!==A&&S!==H&&S!==R&&S!==U)&&S!==d&&!(z===k&&!J)||_t(z)&&!pt(z)&&S===d||z===k&&J}g(qt,"isPlainSafe");function Et(S){return ct(S)&&S!==o&&!pt(S)&&S!==b&&S!==E&&S!==k&&S!==x&&S!==A&&S!==H&&S!==R&&S!==U&&S!==d&&S!==p&&S!==C&&S!==h&&S!==ot&&S!==T&&S!==v&&S!==y&&S!==u&&S!==f&&S!==L&&S!==q}g(Et,"isPlainSafeFirst");function ut(S){return!pt(S)&&S!==k}g(ut,"isPlainSafeLast");function bt(S,z){const rt=S.charCodeAt(z);let Z;return rt>=55296&&rt<=56319&&z+1<S.length&&(Z=S.charCodeAt(z+1),Z>=56320&&Z<=57343)?(rt-55296)*1024+Z-56320+65536:rt}g(bt,"codePointAt");function Ft(S){return/^\n* /.test(S)}g(Ft,"needIndentIndicator");const Nt=1,Kt=2,Y=3,xt=4,ve=5;function Yt(S,z,rt,Z,J,at,it,kt){let gt,Tt=0,vt=null,Pt=!1,Qt=!1;const As=Z!==-1;let Hr=-1,Yr=Et(bt(S,0))&&ut(bt(S,S.length-1));if(z||it)for(gt=0;gt<S.length;Tt>=65536?gt+=2:gt++){if(Tt=bt(S,gt),!ct(Tt))return ve;Yr=Yr&&qt(Tt,vt,kt),vt=Tt}else{for(gt=0;gt<S.length;Tt>=65536?gt+=2:gt++){if(Tt=bt(S,gt),Tt===n)Pt=!0,As&&(Qt=Qt||gt-Hr-1>Z&&S[Hr+1]!==" ",Hr=gt);else if(!ct(Tt))return ve;Yr=Yr&&qt(Tt,vt,kt),vt=Tt}Qt=Qt||As&&gt-Hr-1>Z&&S[Hr+1]!==" "}return!Pt&&!Qt?Yr&&!it&&!J(S)?Nt:at===K?ve:Kt:rt>9&&Ft(S)?ve:it?at===K?ve:Kt:Qt?xt:Y}g(Yt,"chooseScalarStyle");function Sr(S,z,rt,Z,J){S.dump=(function(){if(z.length===0)return S.quotingType===K?'""':"''";if(!S.noCompatMode&&($.indexOf(z)!==-1||B.test(z)))return S.quotingType===K?'"'+z+'"':"'"+z+"'";const at=S.indent*Math.max(1,rt),it=S.lineWidth===-1?-1:Math.max(Math.min(S.lineWidth,40),S.lineWidth-at),kt=Z||S.flowLevel>-1&&rt>=S.flowLevel;function gt(Tt){return ft(S,Tt)}switch(g(gt,"testAmbiguity"),Yt(z,kt,S.indent,it,gt,S.quotingType,S.forceQuotes&&!Z,J)){case Nt:return z;case Kt:return"'"+z.replace(/'/g,"''")+"'";case Y:return"|"+ge(z,S.indent)+We(ht(z,at));case xt:return">"+ge(z,S.indent)+We(ht(zr(z,it),at));case ve:return'"'+Wr(z)+'"';default:throw new t("impossible error: invalid scalar style")}})()}g(Sr,"writeScalar");function ge(S,z){const rt=Ft(S)?String(z):"",Z=S[S.length-1]===`
303
+ `,at=Z&&(S[S.length-2]===`
304
+ `||S===`
305
+ `)?"+":Z?"":"-";return rt+at+`
306
+ `}g(ge,"blockHeader");function We(S){return S[S.length-1]===`
307
+ `?S.slice(0,-1):S}g(We,"dropEndingNewline");function zr(S,z){const rt=/(\n+)([^\n]*)/g;let Z=(function(){let kt=S.indexOf(`
308
+ `);return kt=kt!==-1?kt:S.length,rt.lastIndex=kt,ne(S.slice(0,kt),z)})(),J=S[0]===`
309
+ `||S[0]===" ",at,it;for(;it=rt.exec(S);){const kt=it[1],gt=it[2];at=gt[0]===" ",Z+=kt+(!J&&!at&&gt!==""?`
310
+ `:"")+ne(gt,z),J=at}return Z}g(zr,"foldString");function ne(S,z){if(S===""||S[0]===" ")return S;const rt=/ [^ ]/g;let Z,J=0,at,it=0,kt=0,gt="";for(;Z=rt.exec(S);)kt=Z.index,kt-J>z&&(at=it>J?it:kt,gt+=`
311
+ `+S.slice(J,at),J=at+1),it=kt;return gt+=`
312
+ `,S.length-J>z&&it>J?gt+=S.slice(J,it)+`
313
+ `+S.slice(it+1):gt+=S.slice(J),gt.slice(1)}g(ne,"foldLine");function Wr(S){let z="",rt=0;for(let Z=0;Z<S.length;rt>=65536?Z+=2:Z++){rt=bt(S,Z);const J=O[rt];!J&&ct(rt)?(z+=S[Z],rt>=65536&&(z+=S[Z+1])):z+=J||F(rt)}return z}g(Wr,"escapeString");function ar(S,z,rt){let Z="";const J=S.tag;for(let at=0,it=rt.length;at<it;at+=1){let kt=rt[at];S.replacer&&(kt=S.replacer.call(rt,String(at),kt)),(V(S,z,kt,!1,!1)||typeof kt>"u"&&V(S,z,null,!1,!1))&&(Z!==""&&(Z+=","+(S.condenseFlow?"":" ")),Z+=S.dump)}S.tag=J,S.dump="["+Z+"]"}g(ar,"writeFlowSequence");function Tr(S,z,rt,Z){let J="";const at=S.tag;for(let it=0,kt=rt.length;it<kt;it+=1){let gt=rt[it];S.replacer&&(gt=S.replacer.call(rt,String(it),gt)),(V(S,z+1,gt,!0,!0,!1,!0)||typeof gt>"u"&&V(S,z+1,null,!0,!0,!1,!0))&&((!Z||J!=="")&&(J+=mt(S,z)),S.dump&&n===S.dump.charCodeAt(0)?J+="-":J+="- ",J+=S.dump)}S.tag=at,S.dump=J||"[]"}g(Tr,"writeBlockSequence");function _r(S,z,rt){let Z="";const J=S.tag,at=Object.keys(rt);for(let it=0,kt=at.length;it<kt;it+=1){let gt="";Z!==""&&(gt+=", "),S.condenseFlow&&(gt+='"');const Tt=at[it];let vt=rt[Tt];S.replacer&&(vt=S.replacer.call(rt,Tt,vt)),V(S,z,Tt,!1,!1)&&(S.dump.length>1024&&(gt+="? "),gt+=S.dump+(S.condenseFlow?'"':"")+":"+(S.condenseFlow?"":" "),V(S,z,vt,!1,!1)&&(gt+=S.dump,Z+=gt))}S.tag=J,S.dump="{"+Z+"}"}g(_r,"writeFlowMapping");function m(S,z,rt,Z){let J="";const at=S.tag,it=Object.keys(rt);if(S.sortKeys===!0)it.sort();else if(typeof S.sortKeys=="function")it.sort(S.sortKeys);else if(S.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let kt=0,gt=it.length;kt<gt;kt+=1){let Tt="";(!Z||J!=="")&&(Tt+=mt(S,z));const vt=it[kt];let Pt=rt[vt];if(S.replacer&&(Pt=S.replacer.call(rt,vt,Pt)),!V(S,z+1,vt,!0,!0,!0))continue;const Qt=S.tag!==null&&S.tag!=="?"||S.dump&&S.dump.length>1024;Qt&&(S.dump&&n===S.dump.charCodeAt(0)?Tt+="?":Tt+="? "),Tt+=S.dump,Qt&&(Tt+=mt(S,z)),V(S,z+1,Pt,!0,Qt)&&(S.dump&&n===S.dump.charCodeAt(0)?Tt+=":":Tt+=": ",Tt+=S.dump,J+=Tt)}S.tag=at,S.dump=J||"{}"}g(m,"writeBlockMapping");function P(S,z,rt){const Z=rt?S.explicitTypes:S.implicitTypes;for(let J=0,at=Z.length;J<at;J+=1){const it=Z[J];if((it.instanceOf||it.predicate)&&(!it.instanceOf||typeof z=="object"&&z instanceof it.instanceOf)&&(!it.predicate||it.predicate(z))){if(rt?it.multi&&it.representName?S.tag=it.representName(z):S.tag=it.tag:S.tag="?",it.represent){const kt=S.styleMap[it.tag]||it.defaultStyle;let gt;if(i.call(it.represent)==="[object Function]")gt=it.represent(z,kt);else if(s.call(it.represent,kt))gt=it.represent[kt](z,kt);else throw new t("!<"+it.tag+'> tag resolver accepts not "'+kt+'" style');S.dump=gt}return!0}}return!1}g(P,"detectType");function V(S,z,rt,Z,J,at,it){S.tag=null,S.dump=rt,P(S,rt,!1)||P(S,rt,!0);const kt=i.call(S.dump),gt=Z;Z&&(Z=S.flowLevel<0||S.flowLevel>z);const Tt=kt==="[object Object]"||kt==="[object Array]";let vt,Pt;if(Tt&&(vt=S.duplicates.indexOf(rt),Pt=vt!==-1),(S.tag!==null&&S.tag!=="?"||Pt||S.indent!==2&&z>0)&&(J=!1),Pt&&S.usedDuplicates[vt])S.dump="*ref_"+vt;else{if(Tt&&Pt&&!S.usedDuplicates[vt]&&(S.usedDuplicates[vt]=!0),kt==="[object Object]")Z&&Object.keys(S.dump).length!==0?(m(S,z,S.dump,J),Pt&&(S.dump="&ref_"+vt+S.dump)):(_r(S,z,S.dump),Pt&&(S.dump="&ref_"+vt+" "+S.dump));else if(kt==="[object Array]")Z&&S.dump.length!==0?(S.noArrayIndent&&!it&&z>0?Tr(S,z-1,S.dump,J):Tr(S,z,S.dump,J),Pt&&(S.dump="&ref_"+vt+S.dump)):(ar(S,z,S.dump),Pt&&(S.dump="&ref_"+vt+" "+S.dump));else if(kt==="[object String]")S.tag!=="?"&&Sr(S,S.dump,z,at,gt);else{if(kt==="[object Undefined]")return!1;if(S.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+kt)}if(S.tag!==null&&S.tag!=="?"){let Qt=encodeURI(S.tag[0]==="!"?S.tag.slice(1):S.tag).replace(/!/g,"%21");S.tag[0]==="!"?Qt="!"+Qt:Qt.slice(0,18)==="tag:yaml.org,2002:"?Qt="!!"+Qt.slice(18):Qt="!<"+Qt+">",S.dump=Qt+" "+S.dump}}return!0}g(V,"writeNode");function Q(S,z){const rt=[],Z=[];G(S,rt,Z);const J=Z.length;for(let at=0;at<J;at+=1)z.duplicates.push(rt[Z[at]]);z.usedDuplicates=new Array(J)}g(Q,"getDuplicateReferences");function G(S,z,rt){if(S!==null&&typeof S=="object"){const Z=z.indexOf(S);if(Z!==-1)rt.indexOf(Z)===-1&&rt.push(Z);else if(z.push(S),Array.isArray(S))for(let J=0,at=S.length;J<at;J+=1)G(S[J],z,rt);else{const J=Object.keys(S);for(let at=0,it=J.length;at<it;at+=1)G(S[J[at]],z,rt)}}}g(G,"inspectNode");function nt(S,z){z=z||{};const rt=new lt(z);rt.noRefs||Q(S,rt);let Z=S;return rt.replacer&&(Z=rt.replacer.call({"":Z},"",Z)),V(rt,0,Z,!0,!0)?rt.dump+`
314
+ `:""}return g(nt,"dump2"),$l.dump=nt,$l}g(Px,"requireDumper");var xp;function Rx(){if(xp)return be;xp=1;const e=Dx(),t=Px();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 g(r,"renamed"),be.Type=_e(),be.Schema=Wc(),be.FAILSAFE_SCHEMA=jc(),be.JSON_SCHEMA=Zc(),be.CORE_SCHEMA=Qc(),be.DEFAULT_SCHEMA=yn(),be.load=e.load,be.loadAll=e.loadAll,be.dump=t.dump,be.YAMLException=Bs(),be.types={binary:eu(),float:Kc(),map:Uc(),null:Xc(),pairs:iu(),set:su(),timestamp:Jc(),bool:Gc(),int:Vc(),merge:tu(),omap:ru(),seq:Yc(),str:Hc()},be.safeLoad=r("safeLoad","load"),be.safeLoadAll=r("safeLoadAll","loadAll"),be.safeDump=r("safeDump","dump"),be}g(Rx,"requireJsYaml");var MM=Rx(),$M=Ox(MM),{Type:oD,Schema:aD,FAILSAFE_SCHEMA:nD,JSON_SCHEMA:OM,CORE_SCHEMA:lD,DEFAULT_SCHEMA:hD,load:IM,loadAll:cD,dump:uD,YAMLException:dD,types:fD,safeLoad:pD,safeLoadAll:gD,safeDump:mD}=$M,DM={common:Lo,getConfig:re,insertCluster:z0,insertEdge:Y0,insertEdgeLabel:Mc,insertMarkers:X0,insertNode:Fc,interpolateToCurve:lc,labelHelper:Bt,log:W,positionEdgeLabel:hL},wo={},Nx=g(e=>{for(const t of e)wo[t.name]=t},"registerLayoutLoaders"),PM=g(()=>{Nx([{name:"dagre",loader:g(async()=>await Rt(()=>import("./dagre-GXQ25YYZ-BlnSzJm3.js"),__vite__mapDeps([4,5,1,0,2])),"loader")},{name:"swimlane",loader:g(async()=>await Rt(()=>import("./swimlanes-42K2YHIH-CrScVzJe.js"),__vite__mapDeps([6,1,0,2])),"loader")},{name:"cose-bilkent",loader:g(async()=>await Rt(()=>import("./cose-bilkent-JH36ORCC-DeCM8oGs.js"),__vite__mapDeps([7,8,0,1,2])),"loader")}])},"registerDefaultLayoutLoaders");PM();var yD=g(async(e,t)=>{if(!(e.layoutAlgorithm in wo))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=wo[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!=null&&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!=null&&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,DM,{algorithm:r.algorithm})},"render"),xD=g((e="",{fallback:t="dagre"}={})=>{if(e in wo)return e;if(t in wo)return W.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"),ou="comm",qx="rule",zx="decl",RM="@media",NM="@import",qM="@supports",zM="@namespace",vh="@keyframes",Wx="@layer",WM="@scope",HM=Math.abs,co=String.fromCharCode;function Hx(e){return e.trim()}function Bh(e,t,r){return e.replace(t,r)}function Qi(e,t){return e.charCodeAt(t)|0}function bs(e,t,r){return e.slice(t,r)}function dr(e){return e.length}function Yx(e){return e.length}function ra(e,t){return t.push(e),e}var xn=1,ks=1,Ux=0,Xe=0,he=0,Ls="";function au(e,t,r,i,s,o,a,n){return{value:e,root:t,parent:r,type:i,props:s,children:o,line:xn,column:ks,length:a,return:"",siblings:n}}function YM(){return he}function UM(){return he=Xe>0?Qi(Ls,--Xe):0,ks--,he===10&&(ks=1,xn--),he}function rr(){return he=Xe<Ux?Qi(Ls,Xe++):0,ks++,he===10&&(ks=1,xn++),he}function Jr(){return Qi(Ls,Xe)}function ma(){return Xe}function Cn(e,t){return bs(Ls,e,t)}function So(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 jM(e){return xn=ks=1,Ux=dr(Ls=e),Xe=0,[]}function XM(e){return Ls="",e}function Ol(e){return Hx(Cn(Xe-1,Lh(e===91?e+2:e===40?e+1:e)))}function GM(e){for(;(he=Jr())&&he<33;)rr();return So(e)>2||So(he)>3?"":" "}function VM(e,t){for(;--t&&rr()&&!(he<48||he>102||he>57&&he<65||he>70&&he<97););return Cn(e,ma()+(t<6&&Jr()==32&&rr()==32))}function Lh(e){for(;rr();)switch(he){case e:return Xe;case 34:case 39:e!==34&&e!==39&&Lh(he);break;case 40:e===41&&Lh(e);break;case 92:rr();break}return Xe}function KM(e,t){for(;rr()&&e+he!==57;)if(e+he===84&&Jr()===47)break;return"/*"+Cn(t,Xe-1)+"*"+co(e===47?e:rr())}function ZM(e){for(;!So(Jr());)rr();return Cn(e,Xe)}function QM(e){return XM(ya("",null,null,null,[""],e=jM(e),0,[0],e))}function ya(e,t,r,i,s,o,a,n,l){for(var c=0,h=0,u=a,d=0,f=0,p=0,y=1,C=1,x=1,b=0,k=0,T="",v=s,E=o,L=i,A=T;C;)switch(p=k,k=rr()){case 40:p!=108&&Qi(A,u-1)==58?(b++,A+="("):A+=Ol(k);break;case 41:b--,A+=")";break;case 34:case 39:case 91:A+=Ol(k);break;case 9:case 10:case 13:case 32:if(b>0){A+=co(k);break}A+=GM(p);break;case 92:A+=VM(ma()-1,7);continue;case 47:switch(Jr()){case 42:case 47:ra(JM(KM(rr(),ma()),t,r,l),l),(So(p||1)==5||So(Jr()||1)==5)&&dr(A)&&bs(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*y:n[c++]=dr(A)*x;case 125*y:case 59:case 0:if(b>0&&k){A+=co(k);break}switch(k){case 0:case 125:C=0;case 59+h:x==-1&&(A=Bh(A,/\f/g,"")),f>0&&(dr(A)-u||y===0)&&ra(f>32?bp(A+";",i,r,u-1,l):bp(Bh(A," ","")+";",i,r,u-2,l),l);break;case 59:A+=";";default:if(ra(L=Cp(A,t,r,c,h,s,n,T,v=[],E=[],u,o),o),k===123)if(h===0)ya(A,t,L,L,v,o,u,n,E);else{switch(d){case 99:if(Qi(A,3)===110)break;case 108:if(Qi(A,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ya(e,L,L,i&&ra(Cp(e,L,L,0,0,s,n,T,s,v=[],u,E),E),s,E,u,n,i?v:E):ya(A,L,L,L,[""],E,0,n,E)}}c=h=f=0,y=x=1,T=A="",u=a;break;case 58:u=1+dr(A),f=p;default:if(y<1){if(k==123)--y;else if(k==125&&y++==0&&UM()==125)continue}switch(A+=co(k),k*y){case 38:x=h>0?1:(A+="\f",-1);break;case 44:if(b>0)break;n[c++]=(dr(A)-1)*x,x=1;break;case 64:Jr()===45&&(A+=Ol(rr())),d=Jr(),h=u=dr(T=A+=ZM(ma())),k++;break;case 45:p===45&&dr(A)==2&&(y=0)}}return o}function Cp(e,t,r,i,s,o,a,n,l,c,h,u){for(var d=s-1,f=s===0?o:[""],p=Yx(f),y=0,C=0,x=0;y<i;++y)for(var b=0,k=bs(e,d+1,d=HM(C=a[y])),T=e;b<p;++b)(T=Hx(C>0?f[b]+" "+k:Bh(k,/&\f/g,f[b])))&&(l[x++]=T);return au(e,t,r,s===0?qx:n,l,c,h,u)}function JM(e,t,r,i){return au(e,t,r,ou,co(YM()),bs(e,2,-2),0,i)}function bp(e,t,r,i,s){return au(e,t,r,zx,bs(e,0,i),bs(e,i+1,-1),i,s)}function Ah(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function t5(e,t,r,i){switch(e.type){case Wx:if(e.children.length)break;case NM:case zM:case zx:return e.return=e.return||e.value;case ou:return"";case vh:return e.return=e.value+"{"+Ah(e.children,i)+"}";case qx:if(!dr(e.value=e.props.join(",")))return""}return dr(r=Ah(e.children,i))?e.return=e.value+"{"+r+"}":""}function e5(e){var t=Yx(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 jx="c4",r5=g(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),i5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./c4Diagram-7LVT6UL2-B3dXdnJP.js");return{diagram:t}},__vite__mapDeps([9,10,1,0,2]));return{id:jx,diagram:e}},"loader"),s5={id:jx,detector:r5,loader:i5},o5=s5,Xx="flowchart",a5=g((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),n5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./flowDiagram-HODETNUW-CBEJA9iU.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([11,12,13,14,10,15]));return{id:Xx,diagram:e}},"loader"),l5={id:Xx,detector:a5,loader:n5},h5=l5,Gx="flowchart-v2",c5=g((e,t)=>{var r,i,s;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((s=t==null?void 0:t.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),u5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./flowDiagram-HODETNUW-CBEJA9iU.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([11,12,13,14,10,15]));return{id:Gx,diagram:e}},"loader"),d5={id:Gx,detector:c5,loader:u5},f5=d5,Vx="swimlane",p5=g(e=>/^\s*swimlane-beta\b/.test(e),"detector"),g5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./swimlanesDiagram-VR7AAH4N-BSX45RRS.js");return{diagram:t}},__vite__mapDeps([16,11,12,13,14,10,15,1,0,2]));return{id:Vx,diagram:e}},"loader"),m5={id:Vx,detector:p5,loader:g5},y5=m5,Kx="er",x5=g(e=>/^\s*erDiagram/.test(e),"detector"),C5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./erDiagram-RLTQ6QDP-DPjb8P7m.js");return{diagram:t}},__vite__mapDeps([17,13,14,15,1,0,2]));return{id:Kx,diagram:e}},"loader"),b5={id:Kx,detector:x5,loader:C5},k5=b5,Zx="gitGraph",w5=g(e=>/^\s*gitGraph/.test(e),"detector"),S5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-WWUBYQGX-DCXKE3o8.js");return{diagram:t}},__vite__mapDeps([18,19,20,21,1,0,2]));return{id:Zx,diagram:e}},"loader"),T5={id:Zx,detector:w5,loader:S5},_5=T5,Qx="gantt",v5=g(e=>/^\s*gantt/.test(e),"detector"),B5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./ganttDiagram-EL5Y4UJY-vAHRozpM.js");return{diagram:t}},__vite__mapDeps([22,0,1,2,23,24,25]));return{id:Qx,diagram:e}},"loader"),L5={id:Qx,detector:v5,loader:B5},A5=L5,Jx="info",E5=g(e=>/^\s*info/.test(e),"detector"),F5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./infoDiagram-27XIBGKW-vfG1s0OL.js");return{diagram:t}},__vite__mapDeps([26,21,1,0,2]));return{id:Jx,diagram:e}},"loader"),M5={id:Jx,detector:E5,loader:F5},tC="pie",$5=g(e=>/^\s*pie/.test(e),"detector"),O5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./pieDiagram-E7YTZNPT-CV4Axk4E.js");return{diagram:t}},__vite__mapDeps([27,20,21,1,28,29,24,0,2]));return{id:tC,diagram:e}},"loader"),I5={id:tC,detector:$5,loader:O5},eC="quadrantChart",D5=g(e=>/^\s*quadrantChart/.test(e),"detector"),P5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./quadrantDiagram-AXDQQJYC-BrOice72.js");return{diagram:t}},__vite__mapDeps([30,23,24,25,1,0,2]));return{id:eC,diagram:e}},"loader"),R5={id:eC,detector:D5,loader:P5},N5=R5,rC="xychart",q5=g(e=>/^\s*xychart(-beta)?/.test(e),"detector"),z5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./xychartDiagram-S5SC5T6Z-h2UKcCAm.js");return{diagram:t}},__vite__mapDeps([31,24,29,23,25,1,0,2]));return{id:rC,diagram:e}},"loader"),W5={id:rC,detector:q5,loader:z5},H5=W5,iC="requirement",Y5=g(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),U5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./requirementDiagram-BXWQKSXE-BLZfWa3W.js");return{diagram:t}},__vite__mapDeps([32,13,14,1,0,2]));return{id:iC,diagram:e}},"loader"),j5={id:iC,detector:Y5,loader:U5},X5=j5,sC="sequence",G5=g(e=>/^\s*sequenceDiagram/.test(e),"detector"),V5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./sequenceDiagram-WJ2MYXX4-CVqyJvFC.js");return{diagram:t}},__vite__mapDeps([33,19,10,1,0,2]));return{id:sC,diagram:e}},"loader"),K5={id:sC,detector:G5,loader:V5},Z5=K5,oC="class",Q5=g((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),J5=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./classDiagram-ZZMXUADV-CYExlNpU.js");return{diagram:t}},__vite__mapDeps([34,35,12,13,14,10,1,0,2]));return{id:oC,diagram:e}},"loader"),t$={id:oC,detector:Q5,loader:J5},e$=t$,aC="classDiagram",r$=g((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),i$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./classDiagram-v2-VYDZK3BY-BOCqfMKB.js");return{diagram:t}},__vite__mapDeps([36,35,12,13,14,10,1,0,2]));return{id:aC,diagram:e}},"loader"),s$={id:aC,detector:r$,loader:i$},o$=s$,nC="state",a$=g((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),n$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./stateDiagram-D77RDMKH-Nh0i53vT.js");return{diagram:t}},__vite__mapDeps([37,38,13,14,10,5,1,0,2]));return{id:nC,diagram:e}},"loader"),l$={id:nC,detector:a$,loader:n$},h$=l$,lC="stateDiagram",c$=g((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),u$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-MP3YSRHH-BM-K9bmc.js");return{diagram:t}},__vite__mapDeps([39,38,13,14,10,1,0,2]));return{id:lC,diagram:e}},"loader"),d$={id:lC,detector:c$,loader:u$},f$=d$,hC="journey",p$=g(e=>/^\s*journey/.test(e),"detector"),g$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./journeyDiagram-3NMN7TZE-DPaDQjfX.js");return{diagram:t}},__vite__mapDeps([40,12,10,28,1,0,2]));return{id:hC,diagram:e}},"loader"),m$={id:hC,detector:p$,loader:g$},y$=m$,x$=g((e,t,r)=>{W.debug(`rendering svg for syntax error
315
+ `);const i=RT(t),s=i.append("g");i.attr("viewBox","0 0 2412 512"),bg(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"),cC={draw:x$},C$=cC,b$={db:{},renderer:cC,parser:{parse:g(()=>{},"parse")}},k$=b$,uC="flowchart-elk",w$=g((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),S$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./flowDiagram-HODETNUW-CBEJA9iU.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([11,12,13,14,10,15]));return{id:uC,diagram:e}},"loader"),T$={id:uC,detector:w$,loader:S$},_$=T$,dC="timeline",v$=g(e=>/^\s*timeline/.test(e),"detector"),B$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./timeline-definition-24CTP7MA-CJbJt2dR.js");return{diagram:t}},__vite__mapDeps([41,28,1,0,2]));return{id:dC,diagram:e}},"loader"),L$={id:dC,detector:v$,loader:B$},A$=L$,fC="mindmap",E$=g(e=>/^\s*mindmap/.test(e),"detector"),F$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./mindmap-definition-YA3MSWOX-DO_oVGmk.js");return{diagram:t}},__vite__mapDeps([42,13,14,1,0,2]));return{id:fC,diagram:e}},"loader"),M$={id:fC,detector:E$,loader:F$},$$=M$,pC="kanban",O$=g(e=>/^\s*kanban/.test(e),"detector"),I$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./kanban-definition-UXKFOSKX-COZcNcrM.js");return{diagram:t}},__vite__mapDeps([43,12,1,0,2]));return{id:pC,diagram:e}},"loader"),D$={id:pC,detector:O$,loader:I$},P$=D$,gC="sankey",R$=g(e=>/^\s*sankey(-beta)?/.test(e),"detector"),N$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./sankeyDiagram-P5KCCOFB-yD9hxLJX.js");return{diagram:t}},__vite__mapDeps([44,29,24,1,0,2]));return{id:gC,diagram:e}},"loader"),q$={id:gC,detector:R$,loader:N$},z$=q$,mC="packet",W$=g(e=>/^\s*packet(-beta)?/.test(e),"detector"),H$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./diagram-Z3DM3KII-DDfhenF6.js");return{diagram:t}},__vite__mapDeps([45,20,21,1,0,2]));return{id:mC,diagram:e}},"loader"),Y$={id:mC,detector:W$,loader:H$},yC="radar",U$=g(e=>/^\s*radar-beta/.test(e),"detector"),j$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./diagram-UQ7AKVKN-CiE5Y0hF.js");return{diagram:t}},__vite__mapDeps([46,20,21,1,0,2]));return{id:yC,diagram:e}},"loader"),X$={id:yC,detector:U$,loader:j$},xC="block",G$=g(e=>/^\s*block(-beta)?/.test(e),"detector"),V$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./blockDiagram-I7D4REHJ-s2II5Siy.js");return{diagram:t}},__vite__mapDeps([47,12,15,1,0,2]));return{id:xC,diagram:e}},"loader"),K$={id:xC,detector:G$,loader:V$},Z$=K$,CC="treeView",Q$=g(e=>/^\s*treeView-beta/.test(e),"detector"),J$=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./diagram-S7CK7UJ4-C8cpqu4g.js");return{diagram:t}},__vite__mapDeps([48,19,20,21,1,0,2]));return{id:CC,diagram:e}},"loader"),tO={id:CC,detector:Q$,loader:J$},eO=tO,bC="architecture",rO=g(e=>/^\s*architecture/.test(e),"detector"),iO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./architectureDiagram-5GKGNRK7-ECpwUvbT.js");return{diagram:t}},__vite__mapDeps([49,20,21,1,8,0,2]));return{id:bC,diagram:e}},"loader"),sO={id:bC,detector:rO,loader:iO},oO=sO,kC="eventmodeling",aO=g(e=>/^\s*eventmodeling/.test(e),"detector"),nO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./diagram-VSXAHHWV-wFDYB5SE.js");return{diagram:t}},__vite__mapDeps([50,20,21,1,0,2]));return{id:kC,diagram:e}},"loader"),lO={id:kC,detector:aO,loader:nO},hO=lO,wC="ishikawa",cO=g(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),uO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./ishikawaDiagram-5VMMS53U-Bci9k7OW.js");return{diagram:t}},__vite__mapDeps([51,1,0,2]));return{id:wC,diagram:e}},"loader"),dO={id:wC,detector:cO,loader:uO},SC="venn",fO=g(e=>/^\s*venn-beta/.test(e),"detector"),pO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./vennDiagram-4TSXK5OY-Dvn1Sbov.js");return{diagram:t}},__vite__mapDeps([52,1,0,2]));return{id:SC,diagram:e}},"loader"),gO={id:SC,detector:fO,loader:pO},mO=gO,TC="treemap",yO=g(e=>/^\s*treemap/.test(e),"detector"),xO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./diagram-VX7I27RA-BJB4bQJ8.js");return{diagram:t}},__vite__mapDeps([53,20,14,21,1,25,29,24,0,2]));return{id:TC,diagram:e}},"loader"),CO={id:TC,detector:yO,loader:xO},_C="wardley",bO=g(e=>/^\s*wardley-beta/i.test(e),"detector"),kO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./wardleyDiagram-VM6X3IG4-D6lZMm5T.js");return{diagram:t}},__vite__mapDeps([54,20,21,1,0,2]));return{id:_C,diagram:e}},"loader"),wO={id:_C,detector:bO,loader:kO},SO=wO,vC="cynefin",TO=g(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),_O=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./cynefinDiagram-5FMLGOSQ-CHHc8NfT.js");return{diagram:t}},__vite__mapDeps([55,20,21,1,0,2]));return{id:vC,diagram:e}},"loader"),vO={id:vC,detector:TO,loader:_O},BC="railroad",BO=g(e=>/^\s*railroad-beta/i.test(e),"detector"),LO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./railroadDiagram-O6MQD6OU-CkIA7mzY.js");return{diagram:t}},__vite__mapDeps([56,57,20,21,1,0,2]));return{id:BC,diagram:e}},"loader"),AO={id:BC,detector:BO,loader:LO},LC="railroadEbnf",EO=g(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),FO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./ebnfDiagram-PWID7BFC-CKfU0hGL.js");return{diagram:t}},__vite__mapDeps([58,57,20,21,1,0,2]));return{id:LC,diagram:e}},"loader"),MO={id:LC,detector:EO,loader:FO},AC="railroadAbnf",$O=g(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),OO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./abnfDiagram-VCTEODGH-DOPlOkUJ.js");return{diagram:t}},__vite__mapDeps([59,57,20,21,1,0,2]));return{id:AC,diagram:e}},"loader"),IO={id:AC,detector:$O,loader:OO},EC="railroadPeg",DO=g(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),PO=g(async()=>{const{diagram:e}=await Rt(async()=>{const{diagram:t}=await import("./pegDiagram-XKGWAZYB-DDMhIEdn.js");return{diagram:t}},__vite__mapDeps([60,57,20,21,1,0,2]));return{id:EC,diagram:e}},"loader"),RO={id:EC,detector:DO,loader:PO},kp=!1,bn=g(()=>{kp||(kp=!0,Sa("error",k$,e=>e.toLowerCase().trim()==="error"),Sa("---",{db:{clear:g(()=>{},"clear")},styles:{},renderer:{draw:g(()=>{},"draw")},parser:{parse:g(()=>{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:g(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Ul(_$,$$,oO),Ul(o5,P$,o$,e$,k5,A5,M5,I5,X5,Z5,y5,f5,h5,A$,_5,f$,h$,y$,N5,z$,Y$,H5,Z$,hO,eO,X$,dO,CO,AO,MO,IO,RO,mO,SO,vO))},"addDiagrams"),NO=g(async()=>{W.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(ki).map(async([r,{detector:i,loader:s}])=>{if(s)try{Vl(r)}catch{try{const{diagram:o,id:a}=await s();Sa(a,o,i)}catch(o){throw W.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete ki[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){W.error(`Failed to load ${t.length} external diagrams`);for(const r of t)W.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),qO="graphics-document document";function FC(e,t){e.attr("role",qO),t!==""&&e.attr("aria-roledescription",t)}g(FC,"setA11yDiagramInfo");function MC(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)}}}g(MC,"addSVGa11yTitleDescription");var Ci,Eh=(Ci=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={}){var c,h;const i=re(),s=qh(t,i);t=av(t)+`
316
+ `;try{Vl(s)}catch{const u=Mk(s);if(!u)throw new pg(`Diagram ${s} not found.`);const{id:d,diagram:f}=await u();Sa(d,f)}const{db:o,parser:a,renderer:n,init:l}=Vl(s);return a.parser&&(a.parser.yy=o),(c=o.clear)==null||c.call(o),l==null||l(i),r.title&&((h=o.setDiagramTitle)==null||h.call(o,r.title)),await a.parse(t),new Ci(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}},g(Ci,"Diagram"),Ci),wp=[],zO=g(()=>{wp.forEach(e=>{e()}),wp=[]},"attachFunctions"),WO=g(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function $C(e){const t=e.match(fg);if(!t)return{text:e,metadata:{}};const r=t[1],i=r?t[2].split(`
317
+ `).map(a=>a.startsWith(r)?a.slice(r.length):a).join(`
318
+ `):t[2];let s=IM(i,{schema:OM})??{};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}}g($C,"extractFrontMatter");var HO=g(e=>e.replace(/\r\n?/g,`
319
+ `).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),YO=g(e=>{const{text:t,metadata:r}=$C(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"),UO=g(e=>{const t=Se.detectInit(e)??{},r=Se.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:X_(e),directive:t}},"processDirectives");function nu(e){const t=HO(e),r=YO(t),i=UO(r.text),s=fc(r.config,i.directive);return e=WO(i.text),{code:e,title:r.title,config:s}}g(nu,"preprocessDiagram");function OC(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}g(OC,"toBase64");var jO=5e4,XO="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",GO="sandbox",VO="loose",KO="http://www.w3.org/2000/svg",ZO="http://www.w3.org/1999/xlink",QO="http://www.w3.org/1999/xhtml",JO="100%",t3="100%",e3="border:0;margin:0;",r3="margin:0",i3="allow-top-navigation-by-user-activation allow-popups",s3='The "iframe" tag is not supported by your browser.',o3=["foreignobject"],a3=["dominant-baseline"];function lu(e){const t=nu(e);return ka(),Lk(t.config??{}),t}g(lu,"processAndSetConfigs");async function IC(e,t){bn();try{const{code:r,config:i}=lu(e);return{diagramType:(await PC(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}g(IC,"parse");var Sp=g((e,t,r=[])=>{const i=lg(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),n3=g((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=Te(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{Fd(l.styles)||n.forEach(c=>{r.insertRule(Sp(l.id,c,l.styles),r.cssRules.length)}),Fd(l.textStyles)||r.insertRule(Sp(l.id,"tspan",((l==null?void 0: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=Gl(s)+`
320
+ `}else i+=`${e.themeCSS}
321
+ `;return i+Gl(r)},"createCssStyles"),l3=g((e,t)=>Ah(QM(`${e}{${t}}`),e5([g(function(i,s,o,a){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===vh)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("@")&&([...[RM,qM,Wx,WM,"@container","@starting-style"],vh].includes(i.type)||(W.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=ou))},"addNamespace"),t5])),"compileCSS"),h3=g((e,t,r,i)=>{const s=n3(e,r),o=Kk(t,s,{...e.themeVariables,theme:e.theme,look:e.look},i);return l3(i,o)},"createUserStyles"),c3=g((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=ri(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),u3=g((e="",t)=>{var s,o;const r=(o=(s=t==null?void 0:t.viewBox)==null?void 0:s.baseVal)!=null&&o.height?t.viewBox.baseVal.height+"px":t3,i=OC(`<body style="${r3}">${e}</body>`);return`<iframe style="width:${JO};height:${r};${e3}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${i3}">
322
+ ${s3}
323
+ </iframe>`},"putIntoIFrame"),Tp=g((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",KO);return s&&a.attr("xmlns:xlink",s),a.append("g"),e},"appendDivSvgG");function Fh(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}g(Fh,"sandboxedIframe");var d3=g((e,t,r,i)=>{var s,o,a;(s=e.getElementById(t))==null||s.remove(),(o=e.getElementById(r))==null||o.remove(),(a=e.getElementById(i))==null||a.remove()},"removeExistingElements"),f3=g(async function(e,t,r){var U,O,$,B,N,F;bn();const i=lu(t);t=i.code;const s=re();W.debug(s),t.length>((s==null?void 0:s.maxTextSize)??jO)&&(t=XO);const o=`#${e}`,a="i"+e,n="#"+a,l="d"+e,c="#"+l,h=g(()=>{const K=Dt(d?n:c).node();K&&"remove"in K&&K.remove()},"removeTempElements");let u=Dt(document.body);const d=s.securityLevel===GO,f=s.securityLevel===VO,p=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),d){const D=Fh(Dt(r),a);u=Dt(D.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Dt(r);Tp(u,e,l,`font-family: ${p}`,ZO)}else{if(d3(document,e,l,a),d){const D=Fh(Dt(document.body),a);u=Dt(D.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Dt("body");Tp(u,e,l)}let y,C;try{y=await Eh.fromText(t,{title:i.title})}catch(D){if(s.suppressErrorRendering)throw h(),D;y=await Eh.fromText("error"),C=D}const x=u.select(c).node(),b=y.type,k=x.firstChild,T=k.firstChild,v=(O=(U=y.renderer).getClasses)==null?void 0:O.call(U,t,y),E=h3(s,b,v,o),L=document.createElement("style");L.innerHTML=E,k.insertBefore(L,T);try{await y.renderer.draw(t,e,"11.17.2",y)}catch(D){throw s.suppressErrorRendering?h():C$.draw(t,e,"11.17.2"),D}const A=u.select(`${c} svg`),H=(B=($=y.db).getAccTitle)==null?void 0:B.call($),q=(F=(N=y.db).getAccDescription)==null?void 0:F.call(N);RC(b,A,H,q);const ot=g(()=>{u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",QO);let D=u.select(c).node().innerHTML;if(W.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),D=c3(D,d,br(s.arrowMarkerAbsolute)),d){const K=u.select(c+" svg").node();D=u3(D,K)}else f||(D=gs.sanitize(D,{ADD_TAGS:o3,ADD_ATTR:a3,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return zO(),D},"serializeSvg")();if(C)throw C;return h(),{diagramType:b,svg:ot,bindFunctions:y.db.bindFunctions}},"render");function DC(e={}){var i;const t=fe({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),vk(t),t!=null&&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"?_k(t):hg();Nh(r.logLevel),bn()}g(DC,"initialize");var PC=g((e,t={})=>{const{code:r}=nu(e);return Eh.fromText(r,t)},"getDiagramFromText");function RC(e,t,r,i){FC(t,e),MC(t,r,i,t.attr("id"))}g(RC,"addA11yInfo");var Bi=Object.freeze({render:f3,parse:IC,getDiagramFromText:PC,initialize:DC,getConfig:re,setConfig:cg,getSiteConfig:hg,updateSiteConfig:Bk,reset:g(()=>{ka()},"reset"),globalReset:g(()=>{ka(ms)},"globalReset"),defaultConfig:ms});Nh(re().logLevel);ka(re());var p3=g((e,t,r)=>{W.warn(e),dc(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"),NC=g(async function(e={querySelector:".mermaid"}){try{await g3(e)}catch(t){if(dc(t)&&W.error(t.str),qe.parseError&&qe.parseError(t),!e.suppressErrors)throw W.error("Use the suppressErrors option to suppress these errors"),t}},"run"),g3=g(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Bi.getConfig();W.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");W.debug(`Found ${s.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(W.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Bi.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const o=new Se.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let a;const n=[];for(const l of Array.from(s)){if(W.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;a=l.innerHTML,a=Xm(Se.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Se.detectInit(a);h&&W.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:d}=await HC(c,a,l);l.innerHTML=u,e&&await e(c),d&&d(l)}catch(u){p3(u,n,qe.parseError)}}if(n.length>0)throw n[0]},"runThrowsErrors"),qC=g(function(e){Bi.initialize(e)},"initialize"),m3=g(async function(e,t,r){W.warn("mermaid.init is deprecated. Please use run instead."),e&&qC(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await NC(i)},"init"),y3=g(async(e,{lazyLoad:t=!0}={})=>{bn(),Ul(...e),t===!1&&await NO()},"registerExternalDiagrams"),zC=g(function(){if(qe.startOnLoad){const{startOnLoad:e}=Bi.getConfig();e&&qe.run().catch(t=>W.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",zC,!1);var x3=g(function(e){qe.parseError=e},"setParseErrorHandler"),Ua=[],Il=!1,WC=g(async()=>{if(!Il){for(Il=!0;Ua.length>0;){const e=Ua.shift();if(e)try{await e()}catch(t){W.error("Error executing queue",t)}}Il=!1}},"executeQueue"),C3=g(async(e,t)=>new Promise((r,i)=>{const s=g(()=>new Promise((o,a)=>{Bi.parse(e,t).then(n=>{o(n),r(n)},n=>{var l;W.error("Error parsing",n),(l=qe.parseError)==null||l.call(qe,n),a(n),i(n)})}),"performCall");Ua.push(s),WC().catch(i)}),"parse"),HC=g((e,t,r)=>new Promise((i,s)=>{const o=g(()=>new Promise((a,n)=>{Bi.render(e,t,r).then(l=>{a(l),i(l)},l=>{var c;W.error("Error parsing",l),(c=qe.parseError)==null||c.call(qe,l),n(l),s(l)})}),"performCall");Ua.push(o),WC().catch(s)}),"render"),b3=g(()=>Object.keys(ki).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),qe={startOnLoad:!0,mermaidAPI:Bi,parse:C3,render:HC,init:m3,run:NC,registerExternalDiagrams:y3,registerLayoutLoaders:Nx,initialize:qC,parseError:void 0,contentLoaded:zC,setParseErrorHandler:x3,detectType:qh,registerIconPacks:h_,getRegisteredDiagramsMetadata:b3},Dl=qe;/*! Check if previously processed *//*!
324
+ * Wait for document loaded before starting the execution
325
+ */const zt=e=>e.replace(/\s*!important\s*$/i,"").trim(),k3=(e,t)=>{let r=t;for(;r<e.length&&/\s/.test(e[r]);)r+=1;const i=r;for(;r<e.length&&/[a-z-]/i.test(e[r]);)r+=1;if(r===i)return!1;for(;r<e.length&&/\s/.test(e[r]);)r+=1;return e[r]===":"},Ge=e=>{const t=[];let r=0;for(;r<e.length;){for(;r<e.length&&/[\s;,]/.test(e[r]);)r+=1;if(r>=e.length)break;const i=r;for(;r<e.length&&e[r]!==":"&&!(e[r]===";"||e[r]===",");)r+=1;if(r>=e.length||e[r]!==":")break;const s=e.substring(i,r).trim().toLowerCase();r+=1;const o=r;let a=0,n=null;for(;r<e.length;){const c=e[r];if(n){c===n&&e[r-1]!=="\\"&&(n=null),r+=1;continue}if(c==='"'||c==="'"){n=c,r+=1;continue}if(c==="("){a+=1,r+=1;continue}if(c===")"){a=Math.max(0,a-1),r+=1;continue}if(a===0&&(c===";"||c===","||/\s/.test(c)&&k3(e,r)))break;r+=1}const l=zt(e.substring(o,r));s&&l&&t.push({property:s,value:l}),r<e.length&&(e[r]===";"||e[r]===",")&&(r+=1)}return t},Ve=e=>{const t=zt(e);if(!t)return!1;if(typeof CSS<"u"&&typeof CSS.supports=="function")return CSS.supports("color",t);if(typeof document<"u"){const r=document.createElement("div");return r.style.color="",r.style.color=t,r.style.color!==""}return!1},_p=(e,t)=>{var i;const r=e.getAttribute("style");return r&&((i=Ge(r).find(s=>s.property===t))==null?void 0:i.value)||""},Pl=(...e)=>{for(const t of e){const r=zt(t||"");if(Ve(r))return r}},hu=(e,t)=>{var a,n,l,c;const r=e.querySelector("text, foreignObject, div, span, p")||e,i=Pl((a=r.getAttribute)==null?void 0:a.call(r,"fill"),_p(r,"fill"),(n=r.style)==null?void 0:n.fill);if(i)return i;const s=Pl((l=r.getAttribute)==null?void 0:l.call(r,"color"),_p(r,"color"),(c=r.style)==null?void 0:c.color);if(s)return s;const o=Pl(t);if(o)return o},cu=(e,t,r)=>{switch(t){case Gt.FILL:case Gt.STROKE:Ve(r)&&(e[t]=r);break;case Gt.STROKE_WIDTH:case Gt.STROKE_DASHARRAY:e[t]=r;break}},ja=(e,t,r)=>{t===Le.COLOR&&Ve(r)&&(e[Le.COLOR]=r)},Xa=(e,t,r)=>{e&&Ge(e).forEach(({property:i,value:s})=>{cu(t,i,s),ja(r,i,s)})},YC=(e,t)=>{e&&Ge(e).forEach(({property:r,value:i})=>{if(r==="fill"&&Ve(i)){t[Le.COLOR]=i;return}ja(t,r,i)})},UC=(e,t)=>{if(!e)return;[[Gt.FILL,e.getAttribute("fill")],[Gt.STROKE,e.getAttribute("stroke")],[Gt.STROKE_WIDTH,e.getAttribute("stroke-width")],[Gt.STROKE_DASHARRAY,e.getAttribute("stroke-dasharray")]].forEach(([i,s])=>{const o=zt(s||"");o&&cu(t,i,o)})},jC=(e,t)=>{if(!e)return;const r=e.getAttribute("fill")||e.getAttribute("color"),i=zt(r||"");Ve(i)&&(t[Le.COLOR]=i)},Mh=(e,t,r,i)=>{var o,a;if(!(t instanceof Map))return;const s=t.get(e);s&&((o=s.styles)==null||o.forEach(n=>{Ge(n).forEach(({property:l,value:c})=>{cu(r,l,c),ja(i,l,c)})}),(a=s.textStyles)==null||a.forEach(n=>{Ge(n).forEach(({property:l,value:c})=>{ja(i,l,c)})}))},w3=(e,t,r)=>{var d;const i=e.nodes.map(f=>f.startsWith("flowchart-")?f.split("-")[1]:f),s=t.querySelector(`[id='${e.id}']`);if(!s)throw new Error("SubGraph element not found");const o=uu(s,t),a=s.getBBox(),n={width:a.width,height:a.height},l={},c={},h=s.querySelector(":scope > rect, :scope > path, :scope > polygon, :scope > ellipse")||s.querySelector(".cluster > rect, .cluster > path, .cluster > polygon, .cluster > ellipse")||s.querySelector("rect, path, polygon, ellipse");Xa(s.getAttribute("style"),l,c),Xa(h==null?void 0:h.getAttribute("style"),l,c),UC(h,l);const u=s.querySelector(".cluster-label text, .cluster-label tspan")||s.querySelector("text");return YC(u==null?void 0:u.getAttribute("style"),c),jC(u,c),Mh(e.id,r,l,c),(d=e.classes)==null||d.forEach(f=>{Mh(f,r,l,c)}),{id:e.id,nodeIds:i,text:De(e.title),labelType:"text",...o,...n,containerStyle:l,labelStyle:c}},vp=(e,t,r)=>{var d,f;const i=t.querySelector(`[id*="${e.domId}"]`);if(!i)return;let s;((d=i.parentElement)==null?void 0:d.tagName.toLowerCase())==="a"&&(s=i.parentElement.getAttribute("xlink:href"));const o=uu(s?i.parentElement:i,t),a=i.getBBox(),n={width:a.width,height:a.height},l={},c={};e.classes&&r instanceof Map&&(Array.isArray(e.classes)?e.classes:[e.classes]).forEach(p=>{Mh(p,r,l,c)}),(f=e.styles)==null||f.forEach(p=>{Xa(p,l,c)});const h=i.querySelector(".label-container");return Xa(h==null?void 0:h.getAttribute("style"),l,c),UC(h,l),Array.from(i.querySelectorAll(".label, .nodeLabel, .label text, .label tspan, .label span, .label div")).forEach(p=>{YC(p.getAttribute("style"),c),jC(p,c)}),{id:e.id,labelType:e.labelType,text:De(e.text||""),type:e.type,link:s||void 0,...o,...n,containerStyle:l,labelStyle:c}},S3=(e,t,r)=>{const i=r.querySelector(`[id*="${e.id}"]`);if(!i)throw new Error("Edge element not found");const s=uu(i,r),o=Vp(i,s);return e.length=void 0,{...e,...o,text:De(e.text)}},uu=(e,t)=>{var l;if(!e)throw new Error("Element not found");let r=(l=e.parentElement)==null?void 0:l.parentElement;const i=e.childNodes[0];let s={x:0,y:0};if(i){const{transformX:c,transformY:h}=yi(i),u=i.getBBox();s={x:Number(i.getAttribute("x"))||c+u.x||0,y:Number(i.getAttribute("y"))||h+u.y||0}}const{transformX:o,transformY:a}=yi(e),n={x:o+s.x,y:a+s.y};for(;r&&r.id!==t.id;){if(r.classList.value==="root"&&r.hasAttribute("transform")){const{transformX:c,transformY:h}=yi(r);n.x+=c,n.y+=h}r=r.parentElement}return n},T3=(e,t)=>{const r=e.getVertices(),i=e.getEdges(),s=e.getSubGraphs(),o=e.getClasses(),a={},n=o instanceof Map?o:{};r instanceof Map?r.forEach((u,d)=>{a[d]=vp(u,t,n)}):typeof r=="object"&&r!==null&&Object.entries(r).forEach(([u,d])=>{a[u]=vp(d,t,n)});const l=new Map,c=(Array.isArray(i)?i:[]).map(u=>{if(!t.querySelector(`[id*="${u.id}"]`))return null;const d=`${u.start}-${u.end}`,f=l.get(d)||0;return l.set(d,f+1),S3(u,f,t)}).filter(u=>u!==null&&u.reflectionPoints.length>1);return{type:"flowchart",subGraphs:(Array.isArray(s)?s:[]).map(u=>w3(u,t,n)),vertices:a,edges:c}},_3=(e,t)=>{const r={};t!=null&&t.label&&(r.label={text:De(t.label),fontSize:16});const i=e.tagName;if(i==="line")r.startX=Number(e.getAttribute("x1")),r.startY=Number(e.getAttribute("y1")),r.endX=Number(e.getAttribute("x2")),r.endY=Number(e.getAttribute("y2"));else if(i==="path"){const a=e.getAttribute("d");if(!a)throw new Error('Path element does not contain a "d" attribute');const n=a.split(/(?=[LC])/),l=n[0].substring(1).split(",").map(u=>parseFloat(u)),c=[];n.forEach(u=>{const d=u.substring(1).trim().split(" ").map(f=>{const[p,y]=f.split(",");return[parseFloat(p)-l[0],parseFloat(y)-l[1]]});c.push(...d)});const h=c[c.length-1];r.startX=l[0],r.startY=l[1],r.endX=h[0],r.endY=h[1],r.points=c}t!=null&&t.label&&(r.startY=r.startY-10,r.endY=r.endY-10);const s=e.getAttribute("stroke"),o=(s&&s!=="none"?s:"")||getComputedStyle(e).stroke||"";return r.strokeColor=o?zt(o):null,r.strokeWidth=Number(e.getAttribute("stroke-width")),r.type="arrow",r.strokeStyle=(t==null?void 0:t.strokeStyle)||"solid",r.startArrowhead=(t==null?void 0:t.startArrowhead)||null,r.endArrowhead=(t==null?void 0:t.endArrowhead)||null,r},du=(e,t,r,i,s)=>{const o={};return o.type="arrow",o.startX=e,o.startY=t,o.endX=r,o.endY=i,Object.assign(o,{...s}),o},Ga=(e,t,r,i)=>({type:"text",x:e,y:t,text:r,width:(i==null?void 0:i.width)||20,height:(i==null?void 0:i.height)||20,fontSize:(i==null?void 0:i.fontSize)||_o,id:i==null?void 0:i.id,color:i==null?void 0:i.color,groupId:i==null?void 0:i.groupId,metadata:i==null?void 0:i.metadata}),XC=(e,t,r)=>{const i={},s=Number(e.getAttribute("x")),o=Number(e.getAttribute("y"));i.type="text",i.text=De(t),r!=null&&r.id&&(i.id=r.id),r!=null&&r.groupId&&(i.groupId=r.groupId);const a=e.getBBox();i.width=a.width,i.height=a.height,i.x=s-a.width/2,i.y=o;const n=parseInt(getComputedStyle(e).fontSize);return i.fontSize=n,i.color=hu(e),i},Pr=(e,t,r={})=>{const i={};i.type=t;const{label:s,subtype:o,id:a,groupId:n}=r;i.id=a,n&&(i.groupId=n),s&&(i.label={text:De(s.text),fontSize:16,textAlign:s==null?void 0:s.textAlign,verticalAlign:s==null?void 0:s.verticalAlign});const l=e.getBBox();switch(i.x=l.x,i.y=l.y,i.width=l.width,i.height=l.height,i.subtype=o,o){case"highlight":const c=e.getAttribute("fill");c&&(i.bgColor=zt(c));break;case"note":i.strokeStyle="dashed";break}return i},To=(e,t,r,i,s,o)=>{const a={};a.startX=t,a.startY=r,a.endX=i,o!=null&&o.groupId&&(a.groupId=o.groupId),o!=null&&o.id&&(a.id=o.id),a.endY=s;const n=e.getAttribute("stroke");return a.strokeColor=n?zt(n):null,a.strokeWidth=Number(e.getAttribute("stroke-width")),a.type="line",a},Bp={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},ur={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},v3=e=>{let t;switch(e){case ur.SOLID:case ur.SOLID_CROSS:case ur.SOLID_OPEN:case ur.SOLID_POINT:t="solid";break;case ur.DOTTED:case ur.DOTTED_CROSS:case ur.DOTTED_OPEN:case ur.DOTTED_POINT:t="dotted";break;default:t="solid";break}return t},B3=(e,t)=>{var i,s;if(!!((i=e.nextElementSibling)!=null&&i.classList.contains("sequenceNumber"))){const o=(s=e.nextElementSibling)==null?void 0:s.textContent;if(!o)throw new Error("sequence number not present");const a=30,n=a/2,c={type:"rectangle",x:t.startX-10,y:t.startY-n,label:{text:o,fontSize:14},bgColor:"#e9ecef",height:a,subtype:"sequence"};Object.assign(t,{sequenceNumber:c})}},Lp=(e,t,r)=>{if(!e)throw"root node not found";const i=Ue(),s=Array.from(e.children),o=[];return s.forEach((a,n)=>{const l=`${r==null?void 0:r.id}-${n}`;let c;switch(a.tagName){case"line":const h=Number(a.getAttribute("x1")),u=Number(a.getAttribute("y1")),d=Number(a.getAttribute("x2")),f=Number(a.getAttribute("y2"));c=To(a,h,u,d,f,{groupId:i,id:l});break;case"text":c=XC(a,t,{groupId:i,id:l});break;case"circle":c=Pr(a,"ellipse",{label:a.textContent?{text:a.textContent}:void 0,groupId:i,id:l});default:c=Pr(a,wb[a.tagName],{label:a.textContent?{text:a.textContent}:void 0,groupId:i,id:l})}o.push(c)}),o},Ap=(e,t)=>{const r=t.getAttribute("fill"),i=t.getAttribute("stroke"),s=t.getAttribute("stroke-width"),o=t.getAttribute("stroke-dasharray");r&&r!=="none"&&(e.bgColor=zt(r)),i&&i!=="none"&&(e.strokeColor=zt(i)),s&&(e.strokeWidth=Number(s)),o&&o.trim()&&(e.strokeStyle="dashed")},L3=(e,t)=>{const r=Array.from(t.querySelectorAll(".actor-top")),i=Array.from(t.querySelectorAll(".actor-bottom")),s=[],o=[],a={},n=e instanceof Map?Array.from(e.values()):Object.values(e),l=Array.from(t.querySelectorAll(".actor-line")),c=(h,u)=>{var y;const d=h.name,f=l.find(C=>C.getAttribute("name")===d);if(f)return f;const p=h.type==="participant"?(y=u.parentElement)==null?void 0:y.previousElementSibling:u.previousElementSibling;return p?p.tagName==="line"?p:p.querySelector("line"):null};return n.forEach(h=>{const u=r.find(p=>p.getAttribute("name")===h.name),d=i.find(p=>p.getAttribute("name")===h.name);if(!u||!d)throw"root not found";const f=h.description;if(h.type==="participant"){const p=Pr(u,"rectangle",{id:`${h.name}-top`,label:{text:f},subtype:"actor"});if(Ap(p,u),!p)throw"Top Node element not found!";s.push([p]);const y=Pr(d,"rectangle",{id:`${h.name}-bottom`,label:{text:f},subtype:"actor"});a[h.name]={topId:`${h.name}-top`,bottomId:`${h.name}-bottom`,bindType:"rectangle"},Ap(y,d),s.push([y]);const C=c(h,u);if((C==null?void 0:C.tagName)!=="line")throw"Line not found";const x=Number(C.getAttribute("x1"));if(!p.height)throw"Top node element height is null";const b=p.y+p.height,k=y.y,T=Number(C.getAttribute("x2")),v=To(C,x,b,T,k);o.push(v)}else if(h.type==="actor"){const p=Lp(u,f,{id:`${h.name}-top`});s.push(p);const y=Lp(d,f,{id:`${h.name}-bottom`});s.push(y);const C=c(h,u);if((C==null?void 0:C.tagName)!=="line")throw"Line not found";const x=Number(C.getAttribute("x1")),b=Number(C.getAttribute("y1")),k=Number(C.getAttribute("x2")),T=y.find(L=>L.type==="ellipse");if(T){const L=T.y,A=To(C,x,b,k,L);o.push(A)}const v=p.find(L=>L.type==="ellipse"),E=y.find(L=>L.type==="ellipse");v!=null&&v.id&&(E!=null&&E.id)&&(a[h.name]={topId:v.id,bottomId:E.id,bindType:"ellipse"})}}),{nodes:s,lines:o,actorMap:a}},A3=(e,t,r)=>{const i=[],s=Array.from(t.querySelectorAll('[class*="messageLine"]')),o=Object.keys(Bp),a=e.filter(n=>o.includes(n.type.toString()));return s.forEach((n,l)=>{const c=a[l],h=Bp[c.type],u=_3(n,{label:c==null?void 0:c.message,strokeStyle:v3(c.type),endArrowhead:h==="SOLID_OPEN"||h==="DOTTED_OPEN"?null:"arrow"}),d=r[c.from],f=r[c.to];d!=null&&d.topId&&(f!=null&&f.topId)&&(u.start={type:d.bindType||"rectangle",id:d.topId},u.end={type:f.bindType||"rectangle",id:f.topId}),B3(n,u),i.push(u)}),i},E3=(e,t)=>{const r=Array.from(t.querySelectorAll(".note")).map(o=>o.parentElement),i=e.filter(o=>o.type===ur.NOTE),s=[];return r.forEach((o,a)=>{if(!o)return;const n=o.firstChild,l=i[a].message,c=Pr(n,"rectangle",{label:{text:l},subtype:"note"}),h=n.getAttribute("fill"),u=n.getAttribute("stroke"),d=n.getAttribute("stroke-width"),f=n.getAttribute("stroke-dasharray");h&&h!=="none"&&(c.bgColor=zt(h)),u&&u!=="none"&&(c.strokeColor=zt(u)),d&&(c.strokeWidth=Number(d)),f&&f.trim()&&(c.strokeStyle="dashed"),s.push(c)}),s},F3=e=>{const t=Array.from(e.querySelectorAll("[class*=activation]")),r=[];return t.forEach(i=>{const s=Pr(i,"rectangle",{label:{text:""},subtype:"activation"});(()=>{const a=i.getAttribute("fill"),n=i.getAttribute("stroke"),l=i.getAttribute("stroke-width"),c=i.getAttribute("stroke-dasharray");a&&a!=="none"&&(s.bgColor=zt(a)),n&&n!=="none"&&(s.strokeColor=zt(n)),l&&(s.strokeWidth=Number(l)),c&&c.trim()&&(s.strokeStyle="dashed")})(),r.push(s)}),r},M3=(e,t)=>{const r=Array.from(t.querySelectorAll(".loopLine")),i=[],s=[],o=[];r.forEach(h=>{const u=Number(h.getAttribute("x1")),d=Number(h.getAttribute("y1")),f=Number(h.getAttribute("x2")),p=Number(h.getAttribute("y2")),y=To(h,u,d,f,p);y.strokeStyle="dotted",y.strokeColor="#adb5bd",y.strokeWidth=2,i.push(y)});const a=Array.from(t.querySelectorAll(".loopText")),n=e.filter(h=>h.type===ur.CRITICAL_START).map(h=>h.message);a.forEach(h=>{var y;const u=h.textContent||"",d=XC(h,u),f=((y=u.match(/\[(.*?)\]/))==null?void 0:y[1])||"";n.includes(f)&&(d.x+=16),s.push(d)});const l=Array.from(t==null?void 0:t.querySelectorAll(".labelBox")),c=Array.from(t==null?void 0:t.querySelectorAll(".labelText"));return l.forEach((h,u)=>{var p;const d=((p=c[u])==null?void 0:p.textContent)||"",f=Pr(h,"rectangle",{label:{text:d}});f.strokeColor="#adb5bd",f.bgColor="#e9ecef",f.width=void 0,o.push(f)}),{lines:i,texts:s,nodes:o}},$3=e=>{const t=Array.from(e.querySelectorAll(".rect")).filter(i=>{var s;return((s=i.parentElement)==null?void 0:s.tagName)!=="g"}),r=[];return t.forEach(i=>{const s=Pr(i,"rectangle",{label:{text:""},subtype:"highlight"});r.push(s)}),r},O3=(e,t)=>{const r=e.db,i=[],o=r.getBoxes().map(C=>({...C,fill:zt(C.fill||"")})),a=$3(t),n=r.getActors(),{nodes:l,lines:c,actorMap:h}=L3(n,t),u=r.getMessages(),d=A3(u,t,h),f=E3(u,t),p=F3(t),y=M3(u,t);return i.push(a),i.push(...l),i.push(f),i.push(p),{type:"sequence",lines:c,arrows:d,nodes:i,loops:y,groups:o}},I3=e=>{const t={};return e&&e.forEach(r=>{Ge(r).forEach(({property:i,value:s})=>{i&&s&&(t[i]=zt(s))})}),t},ia={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Ep={LINE:0,DOTTED_LINE:1},Fp=16,D3=e=>{let t;switch(e){case Ep.LINE:t="solid";break;case Ep.DOTTED_LINE:t="dotted";break;default:t="solid"}return t},Mp=e=>{let t;switch(e){case ia.AGGREGATION:t="diamond_outline";break;case ia.COMPOSITION:t="diamond";break;case ia.EXTENSION:t="triangle_outline";break;case"none":t=null;break;case ia.DEPENDENCY:default:t="arrow";break}return t},Rl=(e,t)=>{let r=0,i=0,s=e;for(;s&&s!==t;){const{transformX:o,transformY:a}=yi(s);r+=o,i+=a,s=s.parentElement}return{tx:r,ty:i}},$p=new Set(["triangle_outline","diamond","diamond_outline"]),GC=(e,t=.5)=>{if(e.length<=2)return[...e];const r=[e[0]];for(let i=1;i<e.length-1;i++){const s=r[r.length-1],o=e[i],a=e[i+1],n=a.x-s.x,l=a.y-s.y,c=Math.hypot(n,l);if(!c)continue;const u=Math.abs(n*(o.y-s.y)-l*(o.x-s.x))/c,d=((o.x-s.x)*n+(o.y-s.y)*l)/(c*c);u<=t&&d>=-t&&d<=1+t||r.push(o)}return r.push(e[e.length-1]),r},VC=e=>{const t=Ph(Gp(e).map(i=>[i.x,i.y])).map(([i,s])=>({x:i,y:s})),r=Rh(e);return r&&t.length>=2&&(t[0]={x:r.startX,y:r.startY},t[t.length-1]={x:r.endX,y:r.endY}),GC(t)},Op=(e,t,r)=>{const i=e.x-t.x,s=e.y-t.y,o=Math.hypot(i,s);return o?{x:e.x+i/o*r,y:e.y+s/o*r}:e},P3=(e,t)=>{const r=Ph(t.map(o=>[o.x,o.y])).map(([o,a])=>({x:o,y:a}));if(r.length<2)throw new Error("Arrow route must contain at least two points");const i=r[0],s=r[r.length-1];e.startX=i.x,e.startY=i.y,e.endX=s.x,e.endY=s.y,e.points=r.map(o=>[o.x-i.x,o.y-i.y])},R3=e=>{var o;const t=(o=e.points)==null?void 0:o.map(([a,n])=>({x:e.startX+a,y:e.startY+n})).filter(a=>Number.isFinite(a.x)&&Number.isFinite(a.y));if(!t||t.length<2)return e;const r=[...t],i=!!e.startArrowhead&&$p.has(e.startArrowhead),s=!!e.endArrowhead&&$p.has(e.endArrowhead);if(!i&&!s)return e;if(i&&(r[0]=Op(r[0],r[1],Fp)),s){const a=r.length-1;r[a]=Op(r[a],r[a-1],Fp)}return P3(e,r),e},N3=(e,t)=>{const r=zt(e.getAttribute("stroke")||getComputedStyle(e).stroke||""),i=parseFloat(e.getAttribute("stroke-width")||getComputedStyle(e).strokeWidth||"1");Ve(r)&&r!=="none"&&(t.strokeColor=r),Number.isFinite(i)&&i>0&&(t.strokeWidth=i)},q3=e=>{const t=[];return e.forEach(r=>{VC(r).forEach(i=>{const s=t[t.length-1];s&&s.x===i.x&&s.y===i.y||t.push(i)})}),GC(t)},KC=(e,t,r)=>{if(e.length<2)throw new Error(`Class diagram edge ${(t==null?void 0:t.id)||"<unknown>"} is missing usable path points`);const i=e[0],s=e[e.length-1],o=du(i.x,i.y,s.x,s.y,{id:(t==null?void 0:t.getAttribute("data-id"))||(t==null?void 0:t.id)||void 0,...r,points:e.map(a=>[a.x-i.x,a.y-i.y])});return t&&N3(t,o),R3(o)},ZC=(e,t)=>KC(q3(e),e[0],t),z3=(e,t)=>{const r=VC(e);return KC([r[0],r[r.length-1]],e,t)},W3=(e,t)=>ZC([e],t),H3=(e,t)=>[`${e}-cyclic-special-1`,`${e}-cyclic-special-mid`,`${e}-cyclic-special-2`].map(i=>t.querySelector(`path[id="${i}"][data-edge="true"]`)).filter(i=>i!==null),Y3=e=>{var t;return((t=e.points)==null?void 0:t.map(([r,i])=>({x:e.startX+r,y:e.startY+i})).filter(r=>Number.isFinite(r.x)&&Number.isFinite(r.y)))||[]},Ip=(e,t)=>{const r=Y3(e);if(r.length<2)return null;const i=t==="start",s=i?r[0]:r[r.length-1],o=i?r[1]:r[r.length-2],a=o.x===s.x?i?-1:1:Math.sign(o.x-s.x),n=o.y===s.y?1:Math.sign(o.y-s.y);return{x:s.x+a*20,y:s.y+(n>=0?12:-28)}},U3=(e,t)=>{let r=e;for(;r&&r!==t;){if(r.classList.contains("annotation-group")||r.classList.contains("label-group"))return"header";if(r.classList.contains("members-group"))return"members";if(r.classList.contains("methods-group"))return"methods";r=r.parentElement}return"other"},j3=(e,t,r)=>{const i=[],s=[],o=[];return Object.values(e).forEach(a=>{var N;const{domId:n,id:l}=a,c=Ue(),h=I3(a.styles||a.cssStyles);let u;try{u=r?r(l):void 0}catch{u=void 0}const d=F=>{const D=new RegExp(`^classId-${F}(?:-|$)`);return Array.from(t.querySelectorAll("[id]")).filter(lt=>D.test(lt.id))[0]},f=u&&t.querySelector(`#${u}`)||t.querySelector(`#${n}`)||t.querySelector(`[data-id='${l}']`)||d(l);if(!f)throw Error(`DOM Node with id ${n} not found`);const p=f.querySelector("rect")||f,y=p.getBBox(),{tx:C,ty:x}=Rl(p,t),b={type:"rectangle",id:l,groupId:c,x:y.x+C,y:y.y+x,width:y.width,height:y.height,metadata:{classId:l}},k=p.getAttribute("fill"),T=p.getAttribute("stroke"),v=p.getAttribute("stroke-width"),E=p.getAttribute("stroke-dasharray"),L=getComputedStyle(p),A=zt(k||h.fill||(k?L.fill:"")),H=zt(T||h.stroke||(T?L.stroke:"")),q=v||h["stroke-width"]||(v?L.strokeWidth:""),R=E||h["stroke-dasharray"]||(E?L.strokeDasharray==="none"?"":L.strokeDasharray:""),ot=F=>{if(!F||!Ve(F))return!1;const D=F.toLowerCase();return!(D==="none"||D==="transparent"||D==="rgba(0, 0, 0, 0)"||D==="black"||D==="#000"||D==="#000000"||D==="rgb(0, 0, 0)"||D==="rgba(0, 0, 0, 1)")};ot(A)?b.bgColor=A:b.bgColor=void 0,ot(H)?b.strokeColor=H:b.strokeColor=void 0,q?b.strokeWidth=Number(q):b.strokeWidth=void 0,R&&R.trim().length>0?b.strokeStyle="dashed":b.strokeStyle=void 0,i.push(b),[...Array.from(f.querySelectorAll("line")),...Array.from(f.querySelectorAll("g.divider path"))].forEach(F=>{const{tx:D,ty:K}=Rl(F,t);let lt,ht,mt,ft;if(F.tagName.toLowerCase()==="line")lt=Number(F.getAttribute("x1"))+D,ht=Number(F.getAttribute("y1"))+K,mt=Number(F.getAttribute("x2"))+D,ft=Number(F.getAttribute("y2"))+K;else{const ct=F.getBBox();lt=ct.x+D,mt=ct.x+ct.width+D;const _t=ct.y+ct.height/2+K;ht=_t,ft=_t}if(lt===mt&&ht===ft)return;const pt=To(F,lt,ht,mt,ft,{groupId:c,id:Ue()});b.strokeColor?pt.strokeColor=b.strokeColor:pt.strokeColor=void 0,b.strokeWidth!==void 0?pt.strokeWidth=b.strokeWidth:pt.strokeWidth=void 0,b.strokeStyle?pt.strokeStyle=b.strokeStyle:pt.strokeStyle=void 0,pt.metadata={classId:l},s.push(pt)});const O=Array.from(f.querySelectorAll("text, foreignObject")),$=[];O.forEach(F=>{var ct;const D=F.tagName.toLowerCase()==="foreignobject",K=D?[]:Array.from(F.querySelectorAll("tspan")),lt=K.length?K.map(_t=>{var qt;return(qt=_t.textContent)==null?void 0:qt.trim()}).filter(Boolean).join(`
326
+ `):((ct=F.textContent)==null?void 0:ct.trim())||"";if(!lt)return;const ht=F.getBBox(),{ty:mt}=Rl(F,t);let ft=parseFloat(getComputedStyle(F).fontSize||"");if(D&&(!Number.isFinite(ft)||!ft)){const _t=F.querySelector("div, span, p");_t&&(ft=parseFloat(getComputedStyle(_t).fontSize||""))}(!Number.isFinite(ft)||ft<=0)&&(ft=Math.max(12,ht.height*.6)),ft=ft*.9;const pt=hu(F,h.color);$.push({section:U3(F,f),text:De(lt),x:ht.x,y:ht.y+mt,width:b&&b.width?Math.max(b.width-8,ht.width):ht.width,height:ht.height,fontSize:ft,color:pt})});const B=$.filter(F=>F.section==="header").sort((F,D)=>F.y-D.y||F.x-D.x);if(!b.label){const F=B.length===0&&$.length===1?$:B;F.length>0&&(b.label={text:F.map(D=>D.text).join(`
327
+ `),fontSize:Math.max(...F.map(D=>D.fontSize)),color:(N=F.find(D=>D.color))==null?void 0:N.color,verticalAlign:"top"})}$.filter(F=>B.length>0?F.section!=="header":!(b.label&&$.length===1)).forEach(F=>{const D=Ga(((b==null?void 0:b.x)||0)+4,F.y,F.text,{width:F.width,height:F.height,fontSize:F.fontSize,color:F.color,id:Ue(),groupId:c,metadata:{classId:l}});o.push(D)})}),{nodes:i,lines:s,text:o}},X3=(e,t,r,i)=>{const s=Array.from(r.querySelectorAll('.edgePaths path[data-edge="true"]:not([id^="edgeNote"]):not([id*="-cyclic-special-"])'));if(e.length===0)return{arrows:[],text:[]};const o=[],a=[];let n=0;return e.forEach(l=>{const{id1:c,id2:h,relation:u}=l,d=t.find(q=>q.id===c),f=t.find(q=>q.id===h);if(!d)throw new Error(`parseRelations: Cannot find node with id ${c}`);if(!f)throw new Error(`parseRelations: Cannot find node with id ${h}`);const p=D3(u.lineType),y=Mp(u.type1),C=Mp(u.type2);let x;if(c===h){const q=H3(c,r);if(!q.length)throw new Error(`parseRelations: Cannot find rendered SVG edge for relation ${c} -> ${h}`);x=ZC(q,{strokeStyle:p,startArrowhead:y,endArrowhead:C,label:l.title?{text:l.title}:void 0,start:{type:"rectangle",id:d.id},end:{type:"rectangle",id:f.id}})}else{const q=s[n];if(!q)throw new Error(`parseRelations: Cannot find rendered SVG edge for relation ${c} -> ${h}`);n+=1,x=z3(q,{strokeStyle:p,startArrowhead:y,endArrowhead:C,label:l.title?{text:l.title}:void 0,start:{type:"rectangle",id:d.id},end:{type:"rectangle",id:f.id}})}o.push(x);const{relationTitle1:b,relationTitle2:k}=l,T=c===h,v=20,E=15,L=15;let A,H;if(b&&b!=="none"){if(T){const R=Ip(x,"start");R&&(A=R.x,H=R.y)}else switch(i){case"TB":A=x.startX-v,x.endX<x.startX&&(A-=L),H=x.startY+E;break;case"BT":A=x.startX+v,x.endX>x.startX&&(A+=L),H=x.startY-E;break;case"LR":A=x.startX+v,H=x.startY+E,x.endY>x.startY&&(H+=L);break;case"RL":A=x.startX-v,H=x.startY-E,x.startY>x.endY&&(H-=L);break;default:A=x.startX-v,H=x.startY+E}A??(A=x.startX-v),H??(H=x.startY+E);const q=Ga(A,H,b,{fontSize:16});a.push(q)}if(k&&k!=="none"){if(T){const R=Ip(x,"end");R&&(A=R.x,H=R.y)}else switch(i){case"TB":A=x.endX+v,x.endX<x.startX&&(A+=L),H=x.endY-E;break;case"BT":A=x.endX-v,x.endX>x.startX&&(A-=L),H=x.endY+E;break;case"LR":A=x.endX-v,H=x.endY-E,x.endY>x.startY&&(H-=L);break;case"RL":A=x.endX+v,H=x.endY+E,x.startY>x.endY&&(H+=L);break;default:A=x.endX+v,H=x.endY-E}A??(A=x.endX+v),H??(H=x.endY+E);const q=Ga(A,H,k,{fontSize:16});a.push(q)}}),{arrows:o,text:a}},G3=(e,t,r)=>{const i=[],s=[];return e.forEach((o,a)=>{const{id:n,text:l,class:c}=o,h=t.querySelector(`#${n}`);if(!h)throw new Error(`Node with id ${n} not found!`);const{transformX:u,transformY:d}=yi(h),f=h.firstChild,p=Pr(f,"rectangle",{id:n,subtype:"note",label:{text:l}});if(Object.assign(p,{x:p.x+u,y:p.y+d}),i.push(p),c){const y=r.find(E=>E.id===c);if(!y)throw new Error(`class node with id ${c} not found!`);const C=t.querySelector(`path[id="edgeNote${a+1}"][data-edge="true"]`);if(C){s.push(W3(C,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:p.id,type:"rectangle"},end:{id:y.id,type:"rectangle"}}));return}const x=p.x+(p.width||0)/2,b=p.y+(p.height||0),k=x,T=y.y,v=du(x,b,k,T,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:p.id,type:"rectangle"},end:{id:y.id,type:"rectangle"}});s.push(v)}}),{notes:i,connectors:s}},V3=(e,t)=>{var x,b,k,T,v;const r=e.db,i=((x=r.getDirection)==null?void 0:x.call(r))||"TB",s=[],o=[],a=[],n=[],l=((b=r.getNamespaces)==null?void 0:b.call(r))||[],c=((k=r.getClasses)==null?void 0:k.call(r))||{},h=c instanceof Map?Object.fromEntries(c):c;if(h&&Object.keys(h).length){const E=typeof r.lookUpDomId=="function"?r.lookUpDomId.bind(r):void 0,L=j3(h,t,E);s.push(L.nodes),o.push(...L.lines),a.push(...L.text),n.push(...L.nodes)}const u=((T=r.getRelations)==null?void 0:T.call(r))||[],{arrows:d,text:f}=X3(u,n,t,i),p=((v=r.getNotes)==null?void 0:v.call(r))||[],{notes:y,connectors:C}=G3(p,t,n);return s.push(y),d.push(...C),a.push(...f),{type:"class",nodes:s,lines:o,arrows:d,text:a,namespaces:l}},Dp=18,K3=e=>{const t={};return e&&e.forEach(r=>{Ge(r).forEach(({property:i,value:s})=>{i&&s&&(t[i]=zt(s))})}),t},Z3=e=>{if(e==null||e==="")return;const t=typeof e=="number"?e:parseFloat(zt(e));if(!(!Number.isFinite(t)||t<=0))return t},fu=(e,t)=>{let r=0,i=0,s=e;for(;s&&s!==t;){const{transformX:o,transformY:a}=yi(s);r+=o,i+=a,s=s.parentElement}return{tx:r,ty:i}},Q3=e=>{var i;const t=Array.from(e.querySelectorAll("tspan")),r=t.length?t.map(s=>{var o;return(o=s.textContent)==null?void 0:o.trim()}).filter(Boolean).join(`
328
+ `):((i=e.textContent)==null?void 0:i.trim())||"";return De(r)},J3=e=>{const t=e.querySelector("text, foreignObject, div, span, p")||e;let r=parseFloat(getComputedStyle(t).fontSize||"");return(!Number.isFinite(r)||r<=0)&&(r=Math.max(12,e.getBBox().height*.75)),r},tI=(e,t,r)=>{const i=Q3(e);if(!i)return null;const s=e.getBBox(),{tx:o,ty:a}=fu(e,t);return{className:e.getAttribute("class")||"",text:i,x:s.x+o,y:s.y+a,width:s.width,height:s.height,fontSize:J3(e),color:hu(e,r)}},eI=(e,t,r,i,s,o,a)=>{const{tx:n,ty:l}=fu(e,t);let c=0,h=0,u=0,d=0;if(e.tagName.toLowerCase()==="line")c=Number(e.getAttribute("x1"))+n,h=Number(e.getAttribute("y1"))+l,u=Number(e.getAttribute("x2"))+n,d=Number(e.getAttribute("y2"))+l;else{const p=Rh(e);if(!p)return null;c=p.startX+n,h=p.startY+l,u=p.endX+n,d=p.endY+l}const f={type:"line",id:Ue(),groupId:r,startX:c,startY:h,endX:u,endY:d,metadata:{entityId:i}};return s&&Ve(s)&&s!=="none"&&(f.strokeColor=s),o!==void 0&&(f.strokeWidth=o),a&&(f.strokeStyle=a),f},Pp=e=>{switch(e==null?void 0:e.toLowerCase()){case"one":return"cardinality_one";case"many":return"cardinality_many";case"only_one":return"cardinality_exactly_one";case"one_or_more":return"cardinality_one_or_many";case"zero_or_one":return"cardinality_zero_or_one";case"zero_or_more":return"cardinality_zero_or_many";default:return null}},rI=e=>{switch(e){case"dotted":return"dotted";case"dashed":return"dashed";default:return"solid"}},iI=(e,t)=>{const r=t.querySelector(`path[id="${e.id}"][data-edge="true"]`);return r?[r]:e.start!==e.end?[]:[`${e.start}-cyclic-special-1`,`${e.start}-cyclic-special-mid`,`${e.start}-cyclic-special-2`].map(s=>t.querySelector(`path[id="${s}"][data-edge="true"]`)).filter(s=>s!==null)},sI=e=>{const t=[];return e.forEach(r=>{Gp(r).forEach(i=>{const s=t[t.length-1];s&&s.x===i.x&&s.y===i.y||t.push(i)})}),t},oI=(e,t)=>{const r=t.querySelector(`[id="${e.id}"]`);if(!r)throw new Error(`ER entity ${e.id} not found in rendered SVG`);const i=e.attributes.length?Ue():void 0,s=r.getBBox(),{tx:o,ty:a}=fu(r,t),n=K3([...e.cssStyles||[],...e.cssCompiledStyles||[]]),l=zt(n.fill||""),c=zt(n.stroke||""),h=Z3(n["stroke-width"]),u=zt(n["stroke-dasharray"]||""),d=Array.from(r.querySelectorAll("g.label")).map(k=>tI(k,t,n.color)).filter(k=>k!==null),f=d.find(k=>k.className.includes("name"))||d[0],p=d.filter(k=>k!==f),y=(f==null?void 0:f.text)||De(e.alias||e.label||""),C={type:"rectangle",id:e.id,groupId:i,x:s.x+o,y:s.y+a,width:s.width,height:s.height,label:{text:y,fontSize:e.attributes.length?Dp:(f==null?void 0:f.fontSize)||16,color:f==null?void 0:f.color,textAlign:"center",verticalAlign:e.attributes.length?"top":"middle"},metadata:{entityId:e.id,entityLabel:e.label,entityAlias:e.alias}};Ve(l)&&l!=="none"&&(C.bgColor=l),Ve(c)&&c!=="none"&&(C.strokeColor=c),h&&Number.isFinite(h)&&h>0&&(C.strokeWidth=h),u&&u!=="none"&&(C.strokeStyle="dashed");const x=Array.from(r.querySelectorAll(".divider path, path.divider, line.divider")).map(k=>eI(k,t,i,e.id,C.strokeColor,C.strokeWidth,C.strokeStyle)).filter(k=>k!==null),b=p.map(k=>Ga(k.x,k.y,k.text,{id:Ue(),groupId:i,width:k.width,height:k.height,fontSize:Dp,color:k.color,metadata:{entityId:e.id}}));return{container:C,lines:x,text:b}},aI=(e,t)=>{const r=iI(e,t);if(!r.length)throw new Error(`ER relationship ${e.id} not found in rendered SVG`);const i=sI(r);if(i.length<2)throw new Error(`ER relationship ${e.id} is missing usable path points`);const s=i[0],o=i[i.length-1],a=r[0],n=zt(a.getAttribute("stroke")||getComputedStyle(a).stroke||""),l=Number(a.getAttribute("stroke-width")||getComputedStyle(a).strokeWidth||1),c=du(s.x,s.y,o.x,o.y,{id:e.id,label:e.label?{text:De(e.label),fontSize:16,textAlign:"center"}:void 0,strokeStyle:rI(e.pattern),startArrowhead:Pp(e.arrowTypeStart),endArrowhead:Pp(e.arrowTypeEnd),start:{type:"rectangle",id:e.start},end:{type:"rectangle",id:e.end},points:i.map(h=>[h.x-s.x,h.y-s.y])});return Ve(n)&&n!=="none"&&(c.strokeColor=n),Number.isFinite(l)&&l>0&&(c.strokeWidth=l),c},nI=(e,t)=>{const r=e.getData(),i=r.nodes,s=r.edges,o=[],a=[],n=[];i.forEach(c=>{const h=oI(c,t);o.push(h.container),a.push(...h.lines),n.push(...h.text)});const l=s.map(c=>aI(c,t));return{type:"erd",nodes:[o],lines:a,arrows:l,text:n}},Li=e=>{const t=zt(e||"");return!t||t==="none"||t==="transparent"||t==="rgba(0, 0, 0, 0)"||t==="rgba(0,0,0,0)"?!1:Ve(t)},QC=(e,t,r)=>{switch(t){case Gt.FILL:case Gt.STROKE:Li(r)&&(e[t]=zt(r));break;case Gt.STROKE_WIDTH:case Gt.STROKE_DASHARRAY:zt(r)&&(e[t]=zt(r));break}},JC=(e,t,r)=>{t===Le.COLOR&&Li(r)&&(e[Le.COLOR]=zt(r))},lI=(e,t,r)=>{e&&Ge(e).forEach(({property:i,value:s})=>{QC(t,i,s),JC(r,i,s)})},hI=(e,t)=>{e&&Ge(e).forEach(({property:r,value:i})=>{if(r===Gt.FILL&&Li(i)){t[Le.COLOR]=zt(i);return}JC(t,r,i)})},cI=e=>{const t=new Set;return e.filter(Boolean).forEach(r=>{Ge(r||"").forEach(({property:i})=>{t.add(i)})}),t},uI=(e,t,r)=>{if(!e)return;[[Gt.FILL,e.getAttribute("fill")],[Gt.STROKE,e.getAttribute("stroke")],[Gt.STROKE_WIDTH,e.getAttribute("stroke-width")],[Gt.STROKE_DASHARRAY,e.getAttribute("stroke-dasharray")]].forEach(([s,o])=>{if(!r.has(s)||t[s])return;const a=zt(o||"");a&&QC(t,s,a)})},dI=(e,t,r)=>{if(!e)return;const i=[e,...Array.from(e.querySelectorAll("text, foreignObject, div, span, p"))];for(const s of i){if(t[Le.COLOR]||(r.has(Le.COLOR)||r.has(Gt.FILL))&&(hI(s.getAttribute("style"),t),t[Le.COLOR]))break;const o=zt(s.getAttribute("fill")||s.getAttribute("color")||"");(r.has(Le.COLOR)||r.has(Gt.FILL))&&Li(o)&&(t[Le.COLOR]=o)}},pu=(e,t)=>{let r=0,i=0,s=e;for(;s&&s!==t;){const{transformX:o,transformY:a}=yi(s);r+=o,i+=a,s=s.parentElement}return{tx:r,ty:i}},fI=(e,t)=>{const r=e.getBBox(),{tx:i,ty:s}=pu(e,t);return{x:r.x+i,y:r.y+s,width:r.width,height:r.height}},pI=(e,t)=>{const r=e.querySelector("line.divider");if(!r)return;const{tx:i,ty:s}=pu(r,t);return{startX:Number(r.getAttribute("x1"))+i,startY:Number(r.getAttribute("y1"))+s,endX:Number(r.getAttribute("x2"))+i,endY:Number(r.getAttribute("y2"))+s}},gI=e=>{const t=e.getBBox();return Math.abs(t.width*t.height)},Rp=(e,t)=>{const r=e.getAttribute("style");if(!r)return;const i=Ge(r).find(s=>s.property===t);if(i)return zt(i.value)},$h=(e,t)=>{const r=e.map(s=>({element:s,area:gI(s)})).filter(({area:s})=>Number.isFinite(s)&&s>0);return r.length===0?null:r.sort((s,o)=>t==="largest"?o.area-s.area:s.area-o.area)[0].element},mI=(e,t)=>{if(!e||!t.has(Gt.FILL)&&!t.has(Gt.STROKE))return;const r=zt(e.getAttribute("fill")||Rp(e,Gt.FILL)||""),i=zt(e.getAttribute("stroke")||Rp(e,Gt.STROKE)||"");if(Li(r))return r;if(Li(i))return i},yI=(e,t)=>{const r=Array.from(e.querySelectorAll("circle, ellipse, path")),i=$h(r,"smallest");return mI(i,t)},xI=e=>{if(e.length<2)return e;const t=e.slice(1),r=t.filter(i=>i.trim().length>0).reduce((i,s)=>{var a;const o=((a=s.match(/^\s*/))==null?void 0:a[0].length)??0;return Math.min(i,o)},Number.POSITIVE_INFINITY);return!Number.isFinite(r)||r<=0?e.map(i=>i.trimEnd()):[e[0].trimEnd(),...t.map(i=>i.replace(new RegExp(`^\\s{0,${r}}`),"").trimEnd())]},CI=e=>{const t=Array.isArray(e.label)?e.label.map(i=>De(i)):De(e.label||"").split(`
329
+ `);return xI(t).join(`
330
+ `)},bI=e=>e.description?(Array.isArray(e.description)?e.description:[e.description]).map(r=>De(r)).filter(r=>r.length>0):[],kI=e=>{const t=new Set,r=s=>(s&&t.add(s),s),i=s=>{const o=s.find(a=>!t.has(a));return r(o||null)};return s=>{const o=[`[id='${s.domId}']`,`[id='${s.id}']`,`[data-id='${s.id}']`];for(const a of o){const n=e.querySelector(a);if(n)return r(n)}switch(s.shape){case"divider":return i(Array.from(e.querySelectorAll("g.statediagram-cluster-alt")));case"stateStart":return i(Array.from(e.querySelectorAll("g.node.default")).filter(a=>a.querySelector("circle.state-start")));case"stateEnd":return i(Array.from(e.querySelectorAll("g.node.default")).filter(a=>!a.querySelector("circle.state-start")));default:return null}}},wI=(e,t)=>{switch(t){case"roundedWithTitle":return e.querySelector("rect.outer")||e.querySelector("rect")||e;case"divider":return e.querySelector("rect.divider")||e.querySelector("rect")||e;case"rectWithTitle":return e.querySelector("rect.outer")||e.querySelector("rect")||e;case"stateStart":return $h(Array.from(e.querySelectorAll("circle, ellipse, path")),"largest")||e;case"stateEnd":return $h(Array.from(e.querySelectorAll("circle, ellipse, path")),"largest")||e;case"choice":case"fork":case"join":case"note":case"rect":default:return e.querySelector("rect, path, circle, ellipse, polygon")||e}},SI=(e,t,r)=>{const i=r(e);if(!i)throw new Error(`State node element not found for "${e.id}"`);const s=wI(i,e.shape),o={},a={},n=[e.labelStyle,...e.cssCompiledStyles||[],...e.cssStyles||[]],l=cI(n);n.filter(Boolean).forEach(h=>{lI(h,o,a)}),uI(s,o,l),dI(i,a,l);const c=fI(s,t);return{id:e.id,shape:e.shape,text:CI(e),description:bI(e),x:c.x,y:c.y,width:c.width,height:c.height,parentId:e.parentId,position:e.position,containerStyle:o,labelStyle:a,dividerLine:e.shape==="rectWithTitle"?pI(i,t):void 0,endInnerColor:e.shape==="stateEnd"?yI(i,l):void 0,isRenderable:e.shape!=="noteGroup"}},TI=(e,t)=>{var c;const r=t.querySelector(`[id='${e.id}']`);if(!r)return null;const{tx:i,ty:s}=pu(r,t),o=Vp(r,{x:i,y:s},"MCL");if(o.reflectionPoints.length<2)return null;const a={},n=(h,u)=>{switch(h){case Gt.STROKE:Li(u)&&(a.strokeColor=zt(u));break;case Gt.STROKE_WIDTH:{const d=parseFloat(zt(u));Number.isFinite(d)&&d>0&&(a.strokeWidth=d);break}case Gt.STROKE_DASHARRAY:zt(u)&&(a.strokeStyle="dashed");break}};[e.style].filter(Boolean).forEach(h=>{Ge(h||"").forEach(({property:u,value:d})=>{n(u,d)})});const l=e.arrowhead==="none"||((c=e.classes)==null?void 0:c.includes("note-edge"));return{id:e.id,start:e.start,end:e.end,text:De(e.label||""),...o,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth,strokeStyle:l?"dashed":a.strokeStyle,isNoteEdge:l}},_I=(e,t)=>{const{nodes:r,edges:i}=e.getData(),s=kI(t);return{type:"state",nodes:r.map(o=>SI(o,t,s)),edges:i.map(o=>TI(o,t)).filter(o=>o!==null)}};let Np=Promise.resolve();const vI=e=>{const t=Np.then(e,e);return Np=t.then(()=>{},()=>{}),t};let qp=null,BI=0;const LI=e=>JSON.stringify(e),zp=e=>{const t=e.querySelector("svg");if(!t)throw new Error("SVG element not found");const r=t.getBoundingClientRect(),i=r.width,s=r.height;t.setAttribute("width",`${i}`),t.setAttribute("height",`${s}`);const o="image/svg+xml",a=unescape(encodeURIComponent(t.outerHTML)),l=`data:image/svg+xml;base64,${btoa(a)}`;return{type:"graphImage",mimeType:o,dataURL:l,width:i,height:s}},AI=async(e,t=qo)=>vI(async()=>{var c,h;const r=((c=t.themeVariables)==null?void 0:c.fontSize)??qo.themeVariables.fontSize,i={...qo,...t,fontSize:r,themeVariables:{...qo.themeVariables,...t.themeVariables,fontSize:r}},s=LI(i);s!==qp&&(Dl.initialize(i),qp=s);const o=await Dl.mermaidAPI.getDiagramFromText(a1(e)),a=`mermaid-to-excalidraw-${BI++}`,n=document.createElement("div");n.setAttribute("style","opacity: 0; position: fixed; z-index: -1; left: -99999px; top: -99999px;");const l=`${a}-container`;n.id=l,(h=document.getElementById(l))==null||h.remove(),document.body.appendChild(n);try{const{svg:u}=await Dl.render(a,e,n);n.innerHTML=u;let d;try{switch(o.type){case"flowchart-v2":case"graph":{d=T3(o.db,n);break}case"sequence":{d=O3(o,n);break}case"class":case"classDiagram":{d=V3(o,n);break}case"er":{d=nI(o.db,n);break}case"state":case"stateDiagram":{d=_I(o.db,n);break}default:d=zp(n)}}catch(f){console.error("Error processing Mermaid diagram:",f),d=zp(n)}return d}finally{n.remove()}}),EI=async(e,t)=>{var a;const r=t||{},i=parseInt(((a=r.themeVariables)==null?void 0:a.fontSize)??"")||_o,s=await AI(e,{...r,themeVariables:{...r.themeVariables}});return c1(s,{fontSize:i})},CD=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:EI},Symbol.toStringTag,{value:"Module"}));export{OM as $,re as A,o2 as B,mr as C,fc as D,ng as E,Q_ as F,RT as G,_T as H,xd as I,yd as J,XI as K,WI as L,UI as M,YI as N,qI as O,Jh as P,jI as Q,zI as R,Ri as S,VI as T,It as U,GI as V,HI as W,ok as X,PI as Y,IM as Z,g as _,Jk as a,_m as a$,fo as a0,DI as a1,en as a2,H_ as a3,Nk as a4,Cg as a5,gs as a6,Qu as a7,mn as a8,AT as a9,hL as aA,we as aB,tB as aC,ac as aD,sc as aE,ua as aF,B_ as aG,v_ as aH,__ as aI,T_ as aJ,m_ as aK,wm as aL,C_ as aM,g_ as aN,w_ as aO,Sm as aP,x_ as aQ,E_ as aR,A_ as aS,L_ as aT,M_ as aU,F_ as aV,y_ as aW,Tm as aX,S_ as aY,k_ as aZ,b_ as a_,oh as aa,Z_ as ab,ir as ac,j as ad,X as ae,Xk as af,kg as ag,z0 as ah,Fc as ai,pf as aj,Fo as ak,h_ as al,uc as am,Ct as an,sD as ao,iD as ap,FM as aq,Ut as ar,px as as,wt as at,rD as au,Ya as av,mx as aw,ln as ax,Mc as ay,Y0 as az,Qk as b,ox as b$,X0 as b0,Mm as b1,Qp as b2,vT as b3,II as b4,or as b5,l_ as b6,RI as b7,Vh as b8,Kr as b9,_i as bA,_s as bB,Rr as bC,Rf as bD,yr as bE,Mr as bF,hE as bG,Lf as bH,Ha as bI,Or as bJ,CA as bK,Pe as bL,Mf as bM,Dc as bN,cM as bO,dn as bP,Wa as bQ,nM as bR,fx as bS,fr as bT,bA as bU,zc as bV,K0 as bW,uM as bX,lM as bY,QF as bZ,cn as b_,mo as ba,ud as bb,oS as bc,St as bd,ym as be,Ie as bf,Qw as bg,Gh as bh,Ig as bi,Eo as bj,Rg as bk,NI as bl,g1 as bm,$c as bn,Oc as bo,Sf as bp,J0 as bq,un as br,Q0 as bs,LA as bt,tx as bu,fE as bv,JE as bw,xA as bx,BA as by,pE as bz,Ht as c,gn as c0,ax as c1,JF as c2,KE as c3,ni as c4,eo as c5,Ui as c6,ta as c7,cl as c8,CM as c9,XB as ca,CD as cb,bg as d,fe as e,Dr as f,e2 as g,R0 as h,je as i,Dt as j,Lo as k,W as l,Om as m,Bo as n,f_ as o,r2 as p,i2 as q,Zk as r,t2 as s,KI as t,ti as u,u1 as v,ev as w,xD as x,yD as y,Se as z};