@sme.up/ketchup2 2.0.0-alpha.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-u2vgZv3N.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/imageListAssets.d.ts +3 -1
  10. package/dist/assets/imageListAssets.d.ts.map +1 -1
  11. package/dist/assets/svg/chevron_down.svg +1 -0
  12. package/dist/assets/svg/error_outline.svg +1 -0
  13. package/dist/assets/svg/warning_outline.svg +1 -0
  14. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  15. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  16. package/dist/basic-components/list/list-types.d.ts +0 -1
  17. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  18. package/dist/basic-components/list/list.d.ts.map +1 -1
  19. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  20. package/dist/basic-components/select/select.d.ts.map +1 -1
  21. package/dist/basic-components/text-editor/text-editor-utils.d.ts +1 -1
  22. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  23. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  24. package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
  25. package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
  26. package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
  27. package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
  28. package/dist/channel-BY9Lkyz7.cjs +1 -0
  29. package/dist/channel-BqNr2cYO.js +5 -0
  30. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  31. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  32. package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
  33. package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
  34. package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
  35. package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
  36. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  37. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  38. package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
  39. package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
  40. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  41. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  42. package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
  43. package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
  44. package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
  45. package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
  46. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  47. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  48. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  49. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  50. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  51. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  52. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  53. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  54. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  55. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  56. package/dist/chunk-D-IZpNpi.cjs +1 -0
  57. package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
  58. package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
  59. package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
  60. package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
  61. package/dist/{chunk-FMBD7UC4-Bbe5VHO3.cjs → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -2
  62. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  63. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  64. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  65. package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
  66. package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
  67. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  68. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  69. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  70. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  71. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  72. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  73. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  74. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  75. package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
  76. package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
  77. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  78. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  79. package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
  80. package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
  81. package/dist/chunk-WQLz0Won.js +20 -0
  82. package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
  83. package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
  84. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  85. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  86. package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
  87. package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
  88. package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
  89. package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
  90. package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
  91. package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
  92. package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
  93. package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
  94. package/dist/clone-Dn__H8fX.js +8 -0
  95. package/dist/clone-lShkT11Q.cjs +1 -0
  96. package/dist/components/app-bar/app-bar.d.ts.map +1 -1
  97. package/dist/components/box-list/box-list-types.d.ts +1 -0
  98. package/dist/components/box-list/box-list-types.d.ts.map +1 -1
  99. package/dist/components/box-list/box-list.d.ts.map +1 -1
  100. package/dist/components/dash-list/dash-list.d.ts.map +1 -1
  101. package/dist/components/field/field-types.d.ts +1 -1
  102. package/dist/components/field/field-types.d.ts.map +1 -1
  103. package/dist/components/htm/htm-types.d.ts +4 -0
  104. package/dist/components/htm/htm-types.d.ts.map +1 -1
  105. package/dist/components/htm/htm.d.ts.map +1 -1
  106. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  107. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  108. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  109. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  110. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  111. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  112. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  113. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  114. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  115. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  116. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +15 -0
  117. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  119. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  120. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  121. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  122. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  123. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  124. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  125. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  126. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  127. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  128. package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts.map +1 -1
  129. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  130. package/dist/components/image-list/components/strip-child-popup.d.ts.map +1 -1
  131. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/strip-overflow-button.d.ts.map +1 -1
  133. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  134. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  135. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  136. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  137. package/dist/components/image-list/image-list-context.d.ts +5 -2
  138. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  139. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  140. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  141. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  142. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  143. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  144. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  145. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  146. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  147. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  148. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  149. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  150. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  151. package/dist/components/image-list/image-list-types.d.ts +50 -2
  152. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  153. package/dist/components/image-list/image-list-utils.d.ts +54 -2
  154. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  155. package/dist/components/image-list/image-list.d.ts +1 -1
  156. package/dist/components/image-list/image-list.d.ts.map +1 -1
  157. package/dist/components/tooltip/tooltip-assets.d.ts.map +1 -1
  158. package/dist/components/tooltip/tooltip-utils.d.ts.map +1 -1
  159. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  160. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  161. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  162. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  163. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  164. package/dist/dagre-BjnWDdkw.cjs +1 -0
  165. package/dist/dagre-DVLnxd7n.js +1606 -0
  166. package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
  167. package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
  168. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  169. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  170. package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
  171. package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
  172. package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
  173. package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
  174. package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
  175. package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
  176. package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
  177. package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
  178. package/dist/dist-BgvMZbfo.cjs +1 -0
  179. package/dist/dist-DL30VIBI.js +60 -0
  180. package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
  181. package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
  182. package/dist/flatten-BE1bWL-7.js +40 -0
  183. package/dist/flatten-DxvYSoR8.cjs +1 -0
  184. package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
  185. package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
  186. package/dist/functional-components/action/action-types.d.ts +70 -0
  187. package/dist/functional-components/action/action-types.d.ts.map +1 -0
  188. package/dist/functional-components/action/action-utils.d.ts +5 -0
  189. package/dist/functional-components/action/action-utils.d.ts.map +1 -0
  190. package/dist/functional-components/action/action.d.ts +3 -0
  191. package/dist/functional-components/action/action.d.ts.map +1 -0
  192. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  193. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  194. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +1 -1
  195. package/dist/functional-components/gantt/gantt-assets.d.ts +4 -0
  196. package/dist/functional-components/gantt/gantt-assets.d.ts.map +1 -1
  197. package/dist/functional-components/gantt/gantt.d.ts.map +1 -1
  198. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts +17 -0
  199. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  200. package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
  201. package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
  202. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  203. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  204. package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
  205. package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
  206. package/dist/graphlib-Cpifseqb.js +373 -0
  207. package/dist/graphlib-HdfvGLpV.cjs +1 -0
  208. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  209. package/dist/identity-KQSjemTb.cjs +1 -0
  210. package/dist/identity-g0dsMjx7.js +393 -0
  211. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  212. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  213. package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
  214. package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
  215. package/dist/init-B2MubQrj.cjs +1 -0
  216. package/dist/init-BO60vQHJ.js +15 -0
  217. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  218. package/dist/isEmpty-RwX-oIQS.js +35 -0
  219. package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
  220. package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
  221. package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
  222. package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
  223. package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
  224. package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
  225. package/dist/katex-Du5WiYIy.js +22000 -0
  226. package/dist/katex-SAH56fvc.cjs +257 -0
  227. package/dist/ketchup2.cjs.js +190 -1
  228. package/dist/ketchup2.css +2 -1
  229. package/dist/ketchup2.es.js +132419 -52
  230. package/dist/line-BbHmiwbs.cjs +1 -0
  231. package/dist/line-JyRBGWft.js +34 -0
  232. package/dist/linear-BsPvNLJv.js +289 -0
  233. package/dist/linear-CxHa1DsM.cjs +1 -0
  234. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  235. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  236. package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
  237. package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
  238. package/dist/ordinal-C-VoL0XF.js +65 -0
  239. package/dist/ordinal-Civr0hZL.cjs +1 -0
  240. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  241. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  242. package/dist/path-Civic7PQ.cjs +1 -0
  243. package/dist/path-CvfwEr8y.js +85 -0
  244. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  245. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  246. package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
  247. package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
  248. package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
  249. package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
  250. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  251. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  252. package/dist/reduce-B7WW9rkU.cjs +1 -0
  253. package/dist/reduce-DNnkcf3M.js +532 -0
  254. package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
  255. package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
  256. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  257. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  258. package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
  259. package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
  260. package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
  261. package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
  262. package/dist/src-BQiFKP24.js +2146 -0
  263. package/dist/src-DFxq-N5I.cjs +1 -0
  264. package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
  265. package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
  266. package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
  267. package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
  268. package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
  269. package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
  270. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  271. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  272. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  273. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  274. package/dist/utils/translation.d.ts.map +1 -1
  275. package/dist/v4-6yr83DbP.cjs +1 -0
  276. package/dist/v4-BR71w5_q.js +33 -0
  277. package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
  278. package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
  279. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  280. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  281. package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
  282. package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
  283. package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
  284. package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
  285. package/package.json +31 -31
  286. package/dist/_basePickBy-DGJmMScd.cjs +0 -1
  287. package/dist/_basePickBy-PX1Y-d1V.js +0 -151
  288. package/dist/_baseUniq-DcRTQJQN.cjs +0 -1
  289. package/dist/_baseUniq-DwOD2Otm.js +0 -614
  290. package/dist/arc-BsWNnd73.js +0 -83
  291. package/dist/arc-DBV_HLQY.cjs +0 -1
  292. package/dist/architecture-7HQA4BMR-CFSh30qd.js +0 -6
  293. package/dist/architecture-7HQA4BMR-lBVp8HRs.cjs +0 -1
  294. package/dist/architectureDiagram-VXUJARFQ-Bc0s-J3p.cjs +0 -36
  295. package/dist/architectureDiagram-VXUJARFQ-CMUHe_r-.js +0 -4661
  296. package/dist/blockDiagram-VD42YOAC-C_oUXbzO.cjs +0 -122
  297. package/dist/blockDiagram-VD42YOAC-IY9o9LbQ.js +0 -2256
  298. package/dist/c4Diagram-YG6GDRKO-CqZ8ZT08.cjs +0 -10
  299. package/dist/c4Diagram-YG6GDRKO-DJxkbTo5.js +0 -1580
  300. package/dist/channel-BkvCKlJ6.js +0 -5
  301. package/dist/channel-CswPsSpD.cjs +0 -1
  302. package/dist/chunk-4BX2VUAB-CYIF37mc.js +0 -8
  303. package/dist/chunk-4BX2VUAB-gEHSzd7y.cjs +0 -1
  304. package/dist/chunk-55IACEB6-BHAHwp5q.js +0 -8
  305. package/dist/chunk-55IACEB6-_lyvFxBQ.cjs +0 -1
  306. package/dist/chunk-B4BG7PRW-B8r_ephc.js +0 -1375
  307. package/dist/chunk-B4BG7PRW-BS27R9kc.cjs +0 -165
  308. package/dist/chunk-DI55MBZ5-Bm2YZ5i9.cjs +0 -220
  309. package/dist/chunk-DI55MBZ5-hEyGllSh.js +0 -1370
  310. package/dist/chunk-FMBD7UC4-D7nrDShK.js +0 -19
  311. package/dist/chunk-QN33PNHL-BgJe6Xfg.cjs +0 -1
  312. package/dist/chunk-QN33PNHL-rrJh01ga.js +0 -19
  313. package/dist/chunk-QZHKN3VN-BmAbl_2n.js +0 -15
  314. package/dist/chunk-QZHKN3VN-BrAhTHYa.cjs +0 -1
  315. package/dist/chunk-TZMSLE5B-BE-7S1wa.js +0 -64
  316. package/dist/chunk-TZMSLE5B-BHB7-VQp.cjs +0 -1
  317. package/dist/classDiagram-2ON5EDUG-CebcMRVR.cjs +0 -1
  318. package/dist/classDiagram-2ON5EDUG-D3F1RaIQ.js +0 -16
  319. package/dist/classDiagram-v2-WZHVMYZB-CebcMRVR.cjs +0 -1
  320. package/dist/classDiagram-v2-WZHVMYZB-D3F1RaIQ.js +0 -16
  321. package/dist/clone-BDgl72Aq.cjs +0 -1
  322. package/dist/clone-C_aDFxlO.js +0 -8
  323. package/dist/cose-bilkent-S5V4N54A-D3wiY3iN.cjs +0 -1
  324. package/dist/cose-bilkent-S5V4N54A-D5AClp5l.js +0 -2608
  325. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  326. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  327. package/dist/dagre-6UL2VRFP-CypqseiV.cjs +0 -4
  328. package/dist/dagre-6UL2VRFP-DMO4JOci.js +0 -444
  329. package/dist/defaultLocale-D7EN2tov.js +0 -171
  330. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  331. package/dist/diagram-PSM6KHXK-BDoLsIhn.cjs +0 -24
  332. package/dist/diagram-PSM6KHXK-cFCqdUIB.js +0 -531
  333. package/dist/diagram-QEK2KX5R-Cc5PUDIg.cjs +0 -43
  334. package/dist/diagram-QEK2KX5R-Cu_E8La-.js +0 -217
  335. package/dist/diagram-S2PKOQOG-CGnbJJ6_.cjs +0 -24
  336. package/dist/diagram-S2PKOQOG-Cz6p6CDp.js +0 -142
  337. package/dist/erDiagram-Q2GNP2WA-C4LFQCJ0.cjs +0 -60
  338. package/dist/erDiagram-Q2GNP2WA-DvfsJLvg.js +0 -841
  339. package/dist/flowDiagram-NV44I4VS-CeKGu9EW.js +0 -1620
  340. package/dist/flowDiagram-NV44I4VS-D5y8Cy09.cjs +0 -162
  341. package/dist/ganttDiagram-JELNMOA3-BSy5awHh.cjs +0 -267
  342. package/dist/ganttDiagram-JELNMOA3-Dr4U9R4y.js +0 -2670
  343. package/dist/gitGraph-G5XIXVHT-CO3K0I5T.js +0 -6
  344. package/dist/gitGraph-G5XIXVHT-Ca7V3WsM.cjs +0 -1
  345. package/dist/gitGraphDiagram-V2S2FVAM-1QBHZeWE.js +0 -699
  346. package/dist/gitGraphDiagram-V2S2FVAM-OiapaYQL.cjs +0 -65
  347. package/dist/graph-Jks8K00w.cjs +0 -1
  348. package/dist/graph-zNBt93GG.js +0 -247
  349. package/dist/index-D_QdHvga.js +0 -132342
  350. package/dist/index-DrE_PcNC.cjs +0 -390
  351. package/dist/info-VBDWY6EO-0Eh7RJSD.js +0 -6
  352. package/dist/info-VBDWY6EO-BUpod63m.cjs +0 -1
  353. package/dist/infoDiagram-HS3SLOUP-DQPTM4yd.cjs +0 -2
  354. package/dist/infoDiagram-HS3SLOUP-y4B3rGEI.js +0 -24
  355. package/dist/init-CHZsXQcr.cjs +0 -1
  356. package/dist/init-DjUOC4st.js +0 -16
  357. package/dist/journeyDiagram-XKPGCS4Q-BA6dU3fB.js +0 -834
  358. package/dist/journeyDiagram-XKPGCS4Q-CgX1uRWQ.cjs +0 -139
  359. package/dist/kanban-definition-3W4ZIXB7-CCcUvQw2.js +0 -719
  360. package/dist/kanban-definition-3W4ZIXB7-CLsSK820.cjs +0 -89
  361. package/dist/katex-C2g-EhzP.cjs +0 -261
  362. package/dist/katex-CUSbq6rG.js +0 -11692
  363. package/dist/layout-DQY8NU7r.cjs +0 -1
  364. package/dist/layout-DhDJaAGH.js +0 -1335
  365. package/dist/linear-BxHQa2UM.js +0 -259
  366. package/dist/linear-DFPXnk9z.cjs +0 -1
  367. package/dist/mermaid-parser.core-BLQ9Ldcb.cjs +0 -160
  368. package/dist/mermaid-parser.core-Bny4tLBT.js +0 -17907
  369. package/dist/mindmap-definition-VGOIOE7T-Bw0Ttp1K.cjs +0 -68
  370. package/dist/mindmap-definition-VGOIOE7T-DWETxOzy.js +0 -758
  371. package/dist/ordinal-B6-f3MAq.js +0 -61
  372. package/dist/ordinal-CagbB1m8.cjs +0 -1
  373. package/dist/packet-DYOGHKS2-A2xNn9e2.cjs +0 -1
  374. package/dist/packet-DYOGHKS2-C9WC8eNb.js +0 -6
  375. package/dist/pie-VRWISCQL-BafPWeA1.cjs +0 -1
  376. package/dist/pie-VRWISCQL-vKJ8WC8d.js +0 -6
  377. package/dist/pieDiagram-ADFJNKIX-BdsfNh69.js +0 -161
  378. package/dist/pieDiagram-ADFJNKIX-DOZhSj8j.cjs +0 -30
  379. package/dist/quadrantDiagram-AYHSOK5B-BLuxXMra.cjs +0 -7
  380. package/dist/quadrantDiagram-AYHSOK5B-D9KE7HJs.js +0 -1022
  381. package/dist/radar-ZZBFDIW7-BLGCqPHv.js +0 -6
  382. package/dist/radar-ZZBFDIW7-BWxFhKYx.cjs +0 -1
  383. package/dist/requirementDiagram-UZGBJVZJ-BEkU_fE6.js +0 -850
  384. package/dist/requirementDiagram-UZGBJVZJ-DkNufFqc.cjs +0 -64
  385. package/dist/sankeyDiagram-TZEHDZUN-BJD6V_yO.js +0 -810
  386. package/dist/sankeyDiagram-TZEHDZUN-Dt4bjS4w.cjs +0 -10
  387. package/dist/sequenceDiagram-WL72ISMW-CSEM0aqp.cjs +0 -145
  388. package/dist/sequenceDiagram-WL72ISMW-dCDlLWba.js +0 -2511
  389. package/dist/stateDiagram-FKZM4ZOC-BcD9IQHo.cjs +0 -1
  390. package/dist/stateDiagram-FKZM4ZOC-CZ3DL61f.js +0 -263
  391. package/dist/stateDiagram-v2-4FDKWEC3-DGsrmxNL.cjs +0 -1
  392. package/dist/stateDiagram-v2-4FDKWEC3-DON-yX7J.js +0 -16
  393. package/dist/timeline-definition-IT6M3QCI-Bwb7mbiA.js +0 -795
  394. package/dist/timeline-definition-IT6M3QCI-CIbYhaSE.cjs +0 -61
  395. package/dist/treemap-GDKQZRPO-BMq1hkbw.cjs +0 -1
  396. package/dist/treemap-GDKQZRPO-DYOf8KkT.js +0 -6
  397. package/dist/xychartDiagram-PRI3JC2R-DloZDwSO.cjs +0 -7
  398. package/dist/xychartDiagram-PRI3JC2R-er9aZ4EF.js +0 -1340
@@ -0,0 +1,3316 @@
1
+ import { _ as e, g as t, h as n, m as r } from "./src-BQiFKP24.js";
2
+ //#region node_modules/dompurify/dist/purify.es.mjs
3
+ var { entries: i, setPrototypeOf: a, isFrozen: o, getPrototypeOf: s, getOwnPropertyDescriptor: c } = Object, { freeze: l, seal: u, create: d } = Object, { apply: f, construct: ee } = typeof Reflect < "u" && Reflect;
4
+ l ||= function(e) {
5
+ return e;
6
+ }, u ||= function(e) {
7
+ return e;
8
+ }, f ||= function(e, t) {
9
+ var n = [...arguments].slice(2);
10
+ return e.apply(t, n);
11
+ }, ee ||= function(e) {
12
+ return new e(...[...arguments].slice(1));
13
+ };
14
+ var p = g(Array.prototype.forEach), te = g(Array.prototype.lastIndexOf), ne = g(Array.prototype.pop), re = g(Array.prototype.push), ie = g(Array.prototype.splice), ae = g(String.prototype.toLowerCase), oe = g(String.prototype.toString), se = g(String.prototype.match), ce = g(String.prototype.replace), le = g(String.prototype.indexOf), ue = g(String.prototype.trim), m = g(Object.prototype.hasOwnProperty), h = g(RegExp.prototype.test), de = fe(TypeError);
15
+ function g(e) {
16
+ return function(t) {
17
+ t instanceof RegExp && (t.lastIndex = 0);
18
+ var n = [...arguments].slice(1);
19
+ return f(e, t, n);
20
+ };
21
+ }
22
+ function fe(e) {
23
+ return function() {
24
+ return ee(e, [...arguments]);
25
+ };
26
+ }
27
+ function _(e, t) {
28
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
29
+ a && a(e, null);
30
+ let r = t.length;
31
+ for (; r--;) {
32
+ let i = t[r];
33
+ if (typeof i == "string") {
34
+ let e = n(i);
35
+ e !== i && (o(t) || (t[r] = e), i = e);
36
+ }
37
+ e[i] = !0;
38
+ }
39
+ return e;
40
+ }
41
+ function pe(e) {
42
+ for (let t = 0; t < e.length; t++) m(e, t) || (e[t] = null);
43
+ return e;
44
+ }
45
+ function v(e) {
46
+ let t = d(null);
47
+ for (let [n, r] of i(e)) m(e, n) && (Array.isArray(r) ? t[n] = pe(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = v(r) : t[n] = r);
48
+ return t;
49
+ }
50
+ function me(e, t) {
51
+ for (; e !== null;) {
52
+ let n = c(e, t);
53
+ if (n) {
54
+ if (n.get) return g(n.get);
55
+ if (typeof n.value == "function") return g(n.value);
56
+ }
57
+ e = s(e);
58
+ }
59
+ function n() {
60
+ return null;
61
+ }
62
+ return n;
63
+ }
64
+ var he = l(/* @__PURE__ */ "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".split(".")), ge = l(/* @__PURE__ */ "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".split(".")), _e = l([
65
+ "feBlend",
66
+ "feColorMatrix",
67
+ "feComponentTransfer",
68
+ "feComposite",
69
+ "feConvolveMatrix",
70
+ "feDiffuseLighting",
71
+ "feDisplacementMap",
72
+ "feDistantLight",
73
+ "feDropShadow",
74
+ "feFlood",
75
+ "feFuncA",
76
+ "feFuncB",
77
+ "feFuncG",
78
+ "feFuncR",
79
+ "feGaussianBlur",
80
+ "feImage",
81
+ "feMerge",
82
+ "feMergeNode",
83
+ "feMorphology",
84
+ "feOffset",
85
+ "fePointLight",
86
+ "feSpecularLighting",
87
+ "feSpotLight",
88
+ "feTile",
89
+ "feTurbulence"
90
+ ]), ve = l([
91
+ "animate",
92
+ "color-profile",
93
+ "cursor",
94
+ "discard",
95
+ "font-face",
96
+ "font-face-format",
97
+ "font-face-name",
98
+ "font-face-src",
99
+ "font-face-uri",
100
+ "foreignobject",
101
+ "hatch",
102
+ "hatchpath",
103
+ "mesh",
104
+ "meshgradient",
105
+ "meshpatch",
106
+ "meshrow",
107
+ "missing-glyph",
108
+ "script",
109
+ "set",
110
+ "solidcolor",
111
+ "unknown",
112
+ "use"
113
+ ]), ye = l(/* @__PURE__ */ "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".split(".")), be = l([
114
+ "maction",
115
+ "maligngroup",
116
+ "malignmark",
117
+ "mlongdiv",
118
+ "mscarries",
119
+ "mscarry",
120
+ "msgroup",
121
+ "mstack",
122
+ "msline",
123
+ "msrow",
124
+ "semantics",
125
+ "annotation",
126
+ "annotation-xml",
127
+ "mprescripts",
128
+ "none"
129
+ ]), xe = l(["#text"]), Se = l(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.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.slot".split(".")), Ce = l(/* @__PURE__ */ "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.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.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-rendering.textlength.type.u1.u2.unicode.values.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".split(".")), we = l(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.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".split(".")), Te = l([
130
+ "xlink:href",
131
+ "xml:id",
132
+ "xlink:title",
133
+ "xml:space",
134
+ "xmlns:xlink"
135
+ ]), Ee = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), De = u(/<%[\w\W]*|[\w\W]*%>/gm), Oe = u(/\$\{[\w\W]*/gm), ke = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ae = u(/^aria-[\-\w]+$/), je = u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Me = u(/^(?:\w+script|data):/i), y = u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ne = u(/^html$/i), Pe = u(/^[a-z][.\w]*(-[.\w]+)+$/i), Fe = /* @__PURE__ */ Object.freeze({
136
+ __proto__: null,
137
+ ARIA_ATTR: Ae,
138
+ ATTR_WHITESPACE: y,
139
+ CUSTOM_ELEMENT: Pe,
140
+ DATA_ATTR: ke,
141
+ DOCTYPE_NAME: Ne,
142
+ ERB_EXPR: De,
143
+ IS_ALLOWED_URI: je,
144
+ IS_SCRIPT_OR_DATA: Me,
145
+ MUSTACHE_EXPR: Ee,
146
+ TMPLIT_EXPR: Oe
147
+ }), Ie = {
148
+ element: 1,
149
+ attribute: 2,
150
+ text: 3,
151
+ cdataSection: 4,
152
+ entityReference: 5,
153
+ entityNode: 6,
154
+ progressingInstruction: 7,
155
+ comment: 8,
156
+ document: 9,
157
+ documentType: 10,
158
+ documentFragment: 11,
159
+ notation: 12
160
+ }, Le = function() {
161
+ return typeof window > "u" ? null : window;
162
+ }, Re = function(e, t) {
163
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
164
+ let n = null, r = "data-tt-policy-suffix";
165
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
166
+ let i = "dompurify" + (n ? "#" + n : "");
167
+ try {
168
+ return e.createPolicy(i, {
169
+ createHTML(e) {
170
+ return e;
171
+ },
172
+ createScriptURL(e) {
173
+ return e;
174
+ }
175
+ });
176
+ } catch {
177
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
178
+ }
179
+ }, ze = function() {
180
+ return {
181
+ afterSanitizeAttributes: [],
182
+ afterSanitizeElements: [],
183
+ afterSanitizeShadowDOM: [],
184
+ beforeSanitizeAttributes: [],
185
+ beforeSanitizeElements: [],
186
+ beforeSanitizeShadowDOM: [],
187
+ uponSanitizeAttribute: [],
188
+ uponSanitizeElement: [],
189
+ uponSanitizeShadowNode: []
190
+ };
191
+ };
192
+ function Be() {
193
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Le(), t = (e) => Be(e);
194
+ if (t.version = "3.3.3", t.removed = [], !e || !e.document || e.document.nodeType !== Ie.document || !e.Element) return t.isSupported = !1, t;
195
+ let { document: n } = e, r = n, a = r.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: c, Element: u, NodeFilter: f, NamedNodeMap: ee = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: g, DOMParser: fe, trustedTypes: pe } = e, Ee = u.prototype, De = me(Ee, "cloneNode"), Oe = me(Ee, "remove"), ke = me(Ee, "nextSibling"), Ae = me(Ee, "childNodes"), Me = me(Ee, "parentNode");
196
+ if (typeof s == "function") {
197
+ let e = n.createElement("template");
198
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
199
+ }
200
+ let y, Pe = "", { implementation: b, createNodeIterator: Ve, createDocumentFragment: x, getElementsByTagName: S } = n, { importNode: C } = r, w = ze();
201
+ t.isSupported = typeof i == "function" && typeof Me == "function" && b && b.createHTMLDocument !== void 0;
202
+ let { MUSTACHE_EXPR: He, ERB_EXPR: T, TMPLIT_EXPR: E, DATA_ATTR: Ue, ARIA_ATTR: We, IS_SCRIPT_OR_DATA: D, ATTR_WHITESPACE: Ge, CUSTOM_ELEMENT: O } = Fe, { IS_ALLOWED_URI: Ke } = Fe, k = null, A = _({}, [
203
+ ...he,
204
+ ...ge,
205
+ ..._e,
206
+ ...ye,
207
+ ...xe
208
+ ]), j = null, M = _({}, [
209
+ ...Se,
210
+ ...Ce,
211
+ ...we,
212
+ ...Te
213
+ ]), N = Object.seal(d(null, {
214
+ tagNameCheck: {
215
+ writable: !0,
216
+ configurable: !1,
217
+ enumerable: !0,
218
+ value: null
219
+ },
220
+ attributeNameCheck: {
221
+ writable: !0,
222
+ configurable: !1,
223
+ enumerable: !0,
224
+ value: null
225
+ },
226
+ allowCustomizedBuiltInElements: {
227
+ writable: !0,
228
+ configurable: !1,
229
+ enumerable: !0,
230
+ value: !1
231
+ }
232
+ })), P = null, qe = null, F = Object.seal(d(null, {
233
+ tagCheck: {
234
+ writable: !0,
235
+ configurable: !1,
236
+ enumerable: !0,
237
+ value: null
238
+ },
239
+ attributeCheck: {
240
+ writable: !0,
241
+ configurable: !1,
242
+ enumerable: !0,
243
+ value: null
244
+ }
245
+ })), Je = !0, Ye = !0, Xe = !1, Ze = !0, I = !1, Qe = !0, L = !1, $e = !1, et = !1, R = !1, z = !1, B = !1, V = !0, H = !1, tt = !0, nt = !1, U = {}, W = null, rt = _({}, [
246
+ "annotation-xml",
247
+ "audio",
248
+ "colgroup",
249
+ "desc",
250
+ "foreignobject",
251
+ "head",
252
+ "iframe",
253
+ "math",
254
+ "mi",
255
+ "mn",
256
+ "mo",
257
+ "ms",
258
+ "mtext",
259
+ "noembed",
260
+ "noframes",
261
+ "noscript",
262
+ "plaintext",
263
+ "script",
264
+ "style",
265
+ "svg",
266
+ "template",
267
+ "thead",
268
+ "title",
269
+ "video",
270
+ "xmp"
271
+ ]), it = null, at = _({}, [
272
+ "audio",
273
+ "video",
274
+ "img",
275
+ "source",
276
+ "image",
277
+ "track"
278
+ ]), ot = null, st = _({}, [
279
+ "alt",
280
+ "class",
281
+ "for",
282
+ "id",
283
+ "label",
284
+ "name",
285
+ "pattern",
286
+ "placeholder",
287
+ "role",
288
+ "summary",
289
+ "title",
290
+ "value",
291
+ "style",
292
+ "xmlns"
293
+ ]), ct = "http://www.w3.org/1998/Math/MathML", lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", ut = G, dt = !1, ft = null, pt = _({}, [
294
+ ct,
295
+ lt,
296
+ G
297
+ ], oe), mt = _({}, [
298
+ "mi",
299
+ "mo",
300
+ "mn",
301
+ "ms",
302
+ "mtext"
303
+ ]), ht = _({}, ["annotation-xml"]), gt = _({}, [
304
+ "title",
305
+ "style",
306
+ "font",
307
+ "a",
308
+ "script"
309
+ ]), _t = null, vt = ["application/xhtml+xml", "text/html"], K = null, q = null, yt = n.createElement("form"), bt = function(e) {
310
+ return e instanceof RegExp || e instanceof Function;
311
+ }, xt = function() {
312
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
313
+ if (!(q && q === e)) {
314
+ if ((!e || typeof e != "object") && (e = {}), e = v(e), _t = vt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, K = _t === "application/xhtml+xml" ? oe : ae, k = m(e, "ALLOWED_TAGS") ? _({}, e.ALLOWED_TAGS, K) : A, j = m(e, "ALLOWED_ATTR") ? _({}, e.ALLOWED_ATTR, K) : M, ft = m(e, "ALLOWED_NAMESPACES") ? _({}, e.ALLOWED_NAMESPACES, oe) : pt, ot = m(e, "ADD_URI_SAFE_ATTR") ? _(v(st), e.ADD_URI_SAFE_ATTR, K) : st, it = m(e, "ADD_DATA_URI_TAGS") ? _(v(at), e.ADD_DATA_URI_TAGS, K) : at, W = m(e, "FORBID_CONTENTS") ? _({}, e.FORBID_CONTENTS, K) : rt, P = m(e, "FORBID_TAGS") ? _({}, e.FORBID_TAGS, K) : v({}), qe = m(e, "FORBID_ATTR") ? _({}, e.FORBID_ATTR, K) : v({}), U = m(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Je = e.ALLOW_ARIA_ATTR !== !1, Ye = e.ALLOW_DATA_ATTR !== !1, Xe = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, I = e.SAFE_FOR_TEMPLATES || !1, Qe = e.SAFE_FOR_XML !== !1, L = e.WHOLE_DOCUMENT || !1, R = e.RETURN_DOM || !1, z = e.RETURN_DOM_FRAGMENT || !1, B = e.RETURN_TRUSTED_TYPE || !1, et = e.FORCE_BODY || !1, V = e.SANITIZE_DOM !== !1, H = e.SANITIZE_NAMED_PROPS || !1, tt = e.KEEP_CONTENT !== !1, nt = e.IN_PLACE || !1, Ke = e.ALLOWED_URI_REGEXP || je, ut = e.NAMESPACE || G, mt = e.MATHML_TEXT_INTEGRATION_POINTS || mt, ht = e.HTML_INTEGRATION_POINTS || ht, N = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (N.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (N.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), I && (Ye = !1), z && (R = !0), U && (k = _({}, xe), j = d(null), U.html === !0 && (_(k, he), _(j, Se)), U.svg === !0 && (_(k, ge), _(j, Ce), _(j, Te)), U.svgFilters === !0 && (_(k, _e), _(j, Ce), _(j, Te)), U.mathMl === !0 && (_(k, ye), _(j, we), _(j, Te))), m(e, "ADD_TAGS") || (F.tagCheck = null), m(e, "ADD_ATTR") || (F.attributeCheck = null), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? F.tagCheck = e.ADD_TAGS : (k === A && (k = v(k)), _(k, e.ADD_TAGS, K))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? F.attributeCheck = e.ADD_ATTR : (j === M && (j = v(j)), _(j, e.ADD_ATTR, K))), e.ADD_URI_SAFE_ATTR && _(ot, e.ADD_URI_SAFE_ATTR, K), e.FORBID_CONTENTS && (W === rt && (W = v(W)), _(W, e.FORBID_CONTENTS, K)), e.ADD_FORBID_CONTENTS && (W === rt && (W = v(W)), _(W, e.ADD_FORBID_CONTENTS, K)), tt && (k["#text"] = !0), L && _(k, [
315
+ "html",
316
+ "head",
317
+ "body"
318
+ ]), k.table && (_(k, ["tbody"]), delete P.tbody), e.TRUSTED_TYPES_POLICY) {
319
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
320
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
321
+ y = e.TRUSTED_TYPES_POLICY, Pe = y.createHTML("");
322
+ } else y === void 0 && (y = Re(pe, a)), y !== null && typeof Pe == "string" && (Pe = y.createHTML(""));
323
+ l && l(e), q = e;
324
+ }
325
+ }, St = _({}, [
326
+ ...ge,
327
+ ..._e,
328
+ ...ve
329
+ ]), Ct = _({}, [...ye, ...be]), wt = function(e) {
330
+ let t = Me(e);
331
+ (!t || !t.tagName) && (t = {
332
+ namespaceURI: ut,
333
+ tagName: "template"
334
+ });
335
+ let n = ae(e.tagName), r = ae(t.tagName);
336
+ return ft[e.namespaceURI] ? e.namespaceURI === lt ? t.namespaceURI === G ? n === "svg" : t.namespaceURI === ct ? n === "svg" && (r === "annotation-xml" || mt[r]) : !!St[n] : e.namespaceURI === ct ? t.namespaceURI === G ? n === "math" : t.namespaceURI === lt ? n === "math" && ht[r] : !!Ct[n] : e.namespaceURI === G ? t.namespaceURI === lt && !ht[r] || t.namespaceURI === ct && !mt[r] ? !1 : !Ct[n] && (gt[n] || !St[n]) : !!(_t === "application/xhtml+xml" && ft[e.namespaceURI]) : !1;
337
+ }, J = function(e) {
338
+ re(t.removed, { element: e });
339
+ try {
340
+ Me(e).removeChild(e);
341
+ } catch {
342
+ Oe(e);
343
+ }
344
+ }, Y = function(e, n) {
345
+ try {
346
+ re(t.removed, {
347
+ attribute: n.getAttributeNode(e),
348
+ from: n
349
+ });
350
+ } catch {
351
+ re(t.removed, {
352
+ attribute: null,
353
+ from: n
354
+ });
355
+ }
356
+ if (n.removeAttribute(e), e === "is") if (R || z) try {
357
+ J(n);
358
+ } catch {}
359
+ else try {
360
+ n.setAttribute(e, "");
361
+ } catch {}
362
+ }, X = function(e) {
363
+ let t = null, r = null;
364
+ if (et) e = "<remove></remove>" + e;
365
+ else {
366
+ let t = se(e, /^[\r\n\t ]+/);
367
+ r = t && t[0];
368
+ }
369
+ _t === "application/xhtml+xml" && ut === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
370
+ let i = y ? y.createHTML(e) : e;
371
+ if (ut === G) try {
372
+ t = new fe().parseFromString(i, _t);
373
+ } catch {}
374
+ if (!t || !t.documentElement) {
375
+ t = b.createDocument(ut, "template", null);
376
+ try {
377
+ t.documentElement.innerHTML = dt ? Pe : i;
378
+ } catch {}
379
+ }
380
+ let a = t.body || t.documentElement;
381
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), ut === G ? S.call(t, L ? "html" : "body")[0] : L ? t.documentElement : a;
382
+ }, Tt = function(e) {
383
+ return Ve.call(e.ownerDocument || e, e, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
384
+ }, Z = function(e) {
385
+ return e instanceof g && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ee) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
386
+ }, Et = function(e) {
387
+ return typeof c == "function" && e instanceof c;
388
+ };
389
+ function Q(e, n, r) {
390
+ p(e, (e) => {
391
+ e.call(t, n, r, q);
392
+ });
393
+ }
394
+ let Dt = function(e) {
395
+ let n = null;
396
+ if (Q(w.beforeSanitizeElements, e, null), Z(e)) return J(e), !0;
397
+ let r = K(e.nodeName);
398
+ if (Q(w.uponSanitizeElement, e, {
399
+ tagName: r,
400
+ allowedTags: k
401
+ }), Qe && e.hasChildNodes() && !Et(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || e.nodeType === Ie.progressingInstruction || Qe && e.nodeType === Ie.comment && h(/<[/\w]/g, e.data)) return J(e), !0;
402
+ if (!(F.tagCheck instanceof Function && F.tagCheck(r)) && (!k[r] || P[r])) {
403
+ if (!P[r] && kt(r) && (N.tagNameCheck instanceof RegExp && h(N.tagNameCheck, r) || N.tagNameCheck instanceof Function && N.tagNameCheck(r))) return !1;
404
+ if (tt && !W[r]) {
405
+ let t = Me(e) || e.parentNode, n = Ae(e) || e.childNodes;
406
+ if (n && t) {
407
+ let r = n.length;
408
+ for (let i = r - 1; i >= 0; --i) {
409
+ let r = De(n[i], !0);
410
+ r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, ke(e));
411
+ }
412
+ }
413
+ }
414
+ return J(e), !0;
415
+ }
416
+ return e instanceof u && !wt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (J(e), !0) : (I && e.nodeType === Ie.text && (n = e.textContent, p([
417
+ He,
418
+ T,
419
+ E
420
+ ], (e) => {
421
+ n = ce(n, e, " ");
422
+ }), e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(w.afterSanitizeElements, e, null), !1);
423
+ }, Ot = function(e, t, r) {
424
+ if (qe[t] || V && (t === "id" || t === "name") && (r in n || r in yt)) return !1;
425
+ if (!(Ye && !qe[t] && h(Ue, t)) && !(Je && h(We, t)) && !(F.attributeCheck instanceof Function && F.attributeCheck(t, e))) {
426
+ if (!j[t] || qe[t]) {
427
+ if (!(kt(e) && (N.tagNameCheck instanceof RegExp && h(N.tagNameCheck, e) || N.tagNameCheck instanceof Function && N.tagNameCheck(e)) && (N.attributeNameCheck instanceof RegExp && h(N.attributeNameCheck, t) || N.attributeNameCheck instanceof Function && N.attributeNameCheck(t, e)) || t === "is" && N.allowCustomizedBuiltInElements && (N.tagNameCheck instanceof RegExp && h(N.tagNameCheck, r) || N.tagNameCheck instanceof Function && N.tagNameCheck(r)))) return !1;
428
+ } else if (!ot[t] && !h(Ke, ce(r, Ge, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && it[e]) && !(Xe && !h(D, ce(r, Ge, ""))) && r) return !1;
429
+ }
430
+ return !0;
431
+ }, kt = function(e) {
432
+ return e !== "annotation-xml" && se(e, O);
433
+ }, At = function(e) {
434
+ Q(w.beforeSanitizeAttributes, e, null);
435
+ let { attributes: n } = e;
436
+ if (!n || Z(e)) return;
437
+ let r = {
438
+ attrName: "",
439
+ attrValue: "",
440
+ keepAttr: !0,
441
+ allowedAttributes: j,
442
+ forceKeepAttr: void 0
443
+ }, i = n.length;
444
+ for (; i--;) {
445
+ let { name: a, namespaceURI: o, value: s } = n[i], c = K(a), l = s, u = a === "value" ? l : ue(l);
446
+ if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(w.uponSanitizeAttribute, e, r), u = r.attrValue, H && (c === "id" || c === "name") && (Y(a, e), u = "user-content-" + u), Qe && h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
447
+ Y(a, e);
448
+ continue;
449
+ }
450
+ if (c === "attributename" && se(u, "href")) {
451
+ Y(a, e);
452
+ continue;
453
+ }
454
+ if (r.forceKeepAttr) continue;
455
+ if (!r.keepAttr) {
456
+ Y(a, e);
457
+ continue;
458
+ }
459
+ if (!Ze && h(/\/>/i, u)) {
460
+ Y(a, e);
461
+ continue;
462
+ }
463
+ I && p([
464
+ He,
465
+ T,
466
+ E
467
+ ], (e) => {
468
+ u = ce(u, e, " ");
469
+ });
470
+ let d = K(e.nodeName);
471
+ if (!Ot(d, c, u)) {
472
+ Y(a, e);
473
+ continue;
474
+ }
475
+ if (y && typeof pe == "object" && typeof pe.getAttributeType == "function" && !o) switch (pe.getAttributeType(d, c)) {
476
+ case "TrustedHTML":
477
+ u = y.createHTML(u);
478
+ break;
479
+ case "TrustedScriptURL":
480
+ u = y.createScriptURL(u);
481
+ break;
482
+ }
483
+ if (u !== l) try {
484
+ o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Z(e) ? J(e) : ne(t.removed);
485
+ } catch {
486
+ Y(a, e);
487
+ }
488
+ }
489
+ Q(w.afterSanitizeAttributes, e, null);
490
+ }, jt = function e(t) {
491
+ let n = null, r = Tt(t);
492
+ for (Q(w.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) Q(w.uponSanitizeShadowNode, n, null), Dt(n), At(n), n.content instanceof o && e(n.content);
493
+ Q(w.afterSanitizeShadowDOM, t, null);
494
+ };
495
+ return t.sanitize = function(e) {
496
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, s = null, l = null;
497
+ if (dt = !e, dt && (e = "<!-->"), typeof e != "string" && !Et(e)) if (typeof e.toString == "function") {
498
+ if (e = e.toString(), typeof e != "string") throw de("dirty is not a string, aborting");
499
+ } else throw de("toString is not a function");
500
+ if (!t.isSupported) return e;
501
+ if ($e || xt(n), t.removed = [], typeof e == "string" && (nt = !1), nt) {
502
+ if (e.nodeName) {
503
+ let t = K(e.nodeName);
504
+ if (!k[t] || P[t]) throw de("root node is forbidden and cannot be sanitized in-place");
505
+ }
506
+ } else if (e instanceof c) i = X("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === Ie.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a);
507
+ else {
508
+ if (!R && !I && !L && e.indexOf("<") === -1) return y && B ? y.createHTML(e) : e;
509
+ if (i = X(e), !i) return R ? null : B ? Pe : "";
510
+ }
511
+ i && et && J(i.firstChild);
512
+ let u = Tt(nt ? e : i);
513
+ for (; s = u.nextNode();) Dt(s), At(s), s.content instanceof o && jt(s.content);
514
+ if (nt) return e;
515
+ if (R) {
516
+ if (z) for (l = x.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
517
+ else l = i;
518
+ return (j.shadowroot || j.shadowrootmode) && (l = C.call(r, l, !0)), l;
519
+ }
520
+ let d = L ? i.outerHTML : i.innerHTML;
521
+ return L && k["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && h(Ne, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), I && p([
522
+ He,
523
+ T,
524
+ E
525
+ ], (e) => {
526
+ d = ce(d, e, " ");
527
+ }), y && B ? y.createHTML(d) : d;
528
+ }, t.setConfig = function() {
529
+ xt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), $e = !0;
530
+ }, t.clearConfig = function() {
531
+ q = null, $e = !1;
532
+ }, t.isValidAttribute = function(e, t, n) {
533
+ return q || xt({}), Ot(K(e), K(t), n);
534
+ }, t.addHook = function(e, t) {
535
+ typeof t == "function" && re(w[e], t);
536
+ }, t.removeHook = function(e, t) {
537
+ if (t !== void 0) {
538
+ let n = te(w[e], t);
539
+ return n === -1 ? void 0 : ie(w[e], n, 1)[0];
540
+ }
541
+ return ne(w[e]);
542
+ }, t.removeHooks = function(e) {
543
+ w[e] = [];
544
+ }, t.removeAllHooks = function() {
545
+ w = ze();
546
+ }, t;
547
+ }
548
+ var b = Be(), Ve = {
549
+ min: {
550
+ r: 0,
551
+ g: 0,
552
+ b: 0,
553
+ s: 0,
554
+ l: 0,
555
+ a: 0
556
+ },
557
+ max: {
558
+ r: 255,
559
+ g: 255,
560
+ b: 255,
561
+ h: 360,
562
+ s: 100,
563
+ l: 100,
564
+ a: 1
565
+ },
566
+ clamp: {
567
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
568
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
569
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
570
+ h: (e) => e % 360,
571
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
572
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
573
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
574
+ },
575
+ toLinear: (e) => {
576
+ let t = e / 255;
577
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
578
+ },
579
+ hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
580
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
581
+ if (!t) return n * 2.55;
582
+ e /= 360, t /= 100, n /= 100;
583
+ let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
584
+ switch (r) {
585
+ case "r": return Ve.hue2rgb(a, i, e + 1 / 3) * 255;
586
+ case "g": return Ve.hue2rgb(a, i, e) * 255;
587
+ case "b": return Ve.hue2rgb(a, i, e - 1 / 3) * 255;
588
+ }
589
+ },
590
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
591
+ e /= 255, t /= 255, n /= 255;
592
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
593
+ if (r === "l") return o * 100;
594
+ if (i === a) return 0;
595
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
596
+ if (r === "s") return c * 100;
597
+ switch (i) {
598
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
599
+ case t: return ((n - e) / s + 2) * 60;
600
+ case n: return ((e - t) / s + 4) * 60;
601
+ default: return -1;
602
+ }
603
+ }
604
+ }, x = {
605
+ channel: Ve,
606
+ lang: {
607
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
608
+ round: (e) => Math.round(e * 1e10) / 1e10
609
+ },
610
+ unit: { dec2hex: (e) => {
611
+ let t = Math.round(e).toString(16);
612
+ return t.length > 1 ? t : `0${t}`;
613
+ } }
614
+ }, S = {};
615
+ for (let e = 0; e <= 255; e++) S[e] = x.unit.dec2hex(e);
616
+ var C = {
617
+ ALL: 0,
618
+ RGB: 1,
619
+ HSL: 2
620
+ }, w = class {
621
+ constructor() {
622
+ this.type = C.ALL;
623
+ }
624
+ get() {
625
+ return this.type;
626
+ }
627
+ set(e) {
628
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
629
+ this.type = e;
630
+ }
631
+ reset() {
632
+ this.type = C.ALL;
633
+ }
634
+ is(e) {
635
+ return this.type === e;
636
+ }
637
+ }, He = new class {
638
+ constructor(e, t) {
639
+ this.color = t, this.changed = !1, this.data = e, this.type = new w();
640
+ }
641
+ set(e, t) {
642
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = C.ALL, this;
643
+ }
644
+ _ensureHSL() {
645
+ let e = this.data, { h: t, s: n, l: r } = e;
646
+ t === void 0 && (e.h = x.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = x.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = x.channel.rgb2hsl(e, "l"));
647
+ }
648
+ _ensureRGB() {
649
+ let e = this.data, { r: t, g: n, b: r } = e;
650
+ t === void 0 && (e.r = x.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = x.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = x.channel.hsl2rgb(e, "b"));
651
+ }
652
+ get r() {
653
+ let e = this.data, t = e.r;
654
+ return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "r"));
655
+ }
656
+ get g() {
657
+ let e = this.data, t = e.g;
658
+ return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "g"));
659
+ }
660
+ get b() {
661
+ let e = this.data, t = e.b;
662
+ return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "b"));
663
+ }
664
+ get h() {
665
+ let e = this.data, t = e.h;
666
+ return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "h"));
667
+ }
668
+ get s() {
669
+ let e = this.data, t = e.s;
670
+ return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "s"));
671
+ }
672
+ get l() {
673
+ let e = this.data, t = e.l;
674
+ return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "l"));
675
+ }
676
+ get a() {
677
+ return this.data.a;
678
+ }
679
+ set r(e) {
680
+ this.type.set(C.RGB), this.changed = !0, this.data.r = e;
681
+ }
682
+ set g(e) {
683
+ this.type.set(C.RGB), this.changed = !0, this.data.g = e;
684
+ }
685
+ set b(e) {
686
+ this.type.set(C.RGB), this.changed = !0, this.data.b = e;
687
+ }
688
+ set h(e) {
689
+ this.type.set(C.HSL), this.changed = !0, this.data.h = e;
690
+ }
691
+ set s(e) {
692
+ this.type.set(C.HSL), this.changed = !0, this.data.s = e;
693
+ }
694
+ set l(e) {
695
+ this.type.set(C.HSL), this.changed = !0, this.data.l = e;
696
+ }
697
+ set a(e) {
698
+ this.changed = !0, this.data.a = e;
699
+ }
700
+ }({
701
+ r: 0,
702
+ g: 0,
703
+ b: 0,
704
+ a: 0
705
+ }, "transparent"), T = {
706
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
707
+ parse: (e) => {
708
+ if (e.charCodeAt(0) !== 35) return;
709
+ let t = e.match(T.re);
710
+ if (!t) return;
711
+ let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, l = a ? 0 : -1, u = o ? 255 : 15;
712
+ return He.set({
713
+ r: (r >> c * (l + 3) & u) * s,
714
+ g: (r >> c * (l + 2) & u) * s,
715
+ b: (r >> c * (l + 1) & u) * s,
716
+ a: a ? (r & u) * s / 255 : 1
717
+ }, e);
718
+ },
719
+ stringify: (e) => {
720
+ let { r: t, g: n, b: r, a: i } = e;
721
+ return i < 1 ? `#${S[Math.round(t)]}${S[Math.round(n)]}${S[Math.round(r)]}${S[Math.round(i * 255)]}` : `#${S[Math.round(t)]}${S[Math.round(n)]}${S[Math.round(r)]}`;
722
+ }
723
+ }, E = {
724
+ 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,
725
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
726
+ _hue2deg: (e) => {
727
+ let t = e.match(E.hueRe);
728
+ if (t) {
729
+ let [, e, n] = t;
730
+ switch (n) {
731
+ case "grad": return x.channel.clamp.h(parseFloat(e) * .9);
732
+ case "rad": return x.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
733
+ case "turn": return x.channel.clamp.h(parseFloat(e) * 360);
734
+ }
735
+ }
736
+ return x.channel.clamp.h(parseFloat(e));
737
+ },
738
+ parse: (e) => {
739
+ let t = e.charCodeAt(0);
740
+ if (t !== 104 && t !== 72) return;
741
+ let n = e.match(E.re);
742
+ if (!n) return;
743
+ let [, r, i, a, o, s] = n;
744
+ return He.set({
745
+ h: E._hue2deg(r),
746
+ s: x.channel.clamp.s(parseFloat(i)),
747
+ l: x.channel.clamp.l(parseFloat(a)),
748
+ a: o ? x.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
749
+ }, e);
750
+ },
751
+ stringify: (e) => {
752
+ let { h: t, s: n, l: r, a: i } = e;
753
+ return i < 1 ? `hsla(${x.lang.round(t)}, ${x.lang.round(n)}%, ${x.lang.round(r)}%, ${i})` : `hsl(${x.lang.round(t)}, ${x.lang.round(n)}%, ${x.lang.round(r)}%)`;
754
+ }
755
+ }, Ue = {
756
+ colors: {
757
+ aliceblue: "#f0f8ff",
758
+ antiquewhite: "#faebd7",
759
+ aqua: "#00ffff",
760
+ aquamarine: "#7fffd4",
761
+ azure: "#f0ffff",
762
+ beige: "#f5f5dc",
763
+ bisque: "#ffe4c4",
764
+ black: "#000000",
765
+ blanchedalmond: "#ffebcd",
766
+ blue: "#0000ff",
767
+ blueviolet: "#8a2be2",
768
+ brown: "#a52a2a",
769
+ burlywood: "#deb887",
770
+ cadetblue: "#5f9ea0",
771
+ chartreuse: "#7fff00",
772
+ chocolate: "#d2691e",
773
+ coral: "#ff7f50",
774
+ cornflowerblue: "#6495ed",
775
+ cornsilk: "#fff8dc",
776
+ crimson: "#dc143c",
777
+ cyanaqua: "#00ffff",
778
+ darkblue: "#00008b",
779
+ darkcyan: "#008b8b",
780
+ darkgoldenrod: "#b8860b",
781
+ darkgray: "#a9a9a9",
782
+ darkgreen: "#006400",
783
+ darkgrey: "#a9a9a9",
784
+ darkkhaki: "#bdb76b",
785
+ darkmagenta: "#8b008b",
786
+ darkolivegreen: "#556b2f",
787
+ darkorange: "#ff8c00",
788
+ darkorchid: "#9932cc",
789
+ darkred: "#8b0000",
790
+ darksalmon: "#e9967a",
791
+ darkseagreen: "#8fbc8f",
792
+ darkslateblue: "#483d8b",
793
+ darkslategray: "#2f4f4f",
794
+ darkslategrey: "#2f4f4f",
795
+ darkturquoise: "#00ced1",
796
+ darkviolet: "#9400d3",
797
+ deeppink: "#ff1493",
798
+ deepskyblue: "#00bfff",
799
+ dimgray: "#696969",
800
+ dimgrey: "#696969",
801
+ dodgerblue: "#1e90ff",
802
+ firebrick: "#b22222",
803
+ floralwhite: "#fffaf0",
804
+ forestgreen: "#228b22",
805
+ fuchsia: "#ff00ff",
806
+ gainsboro: "#dcdcdc",
807
+ ghostwhite: "#f8f8ff",
808
+ gold: "#ffd700",
809
+ goldenrod: "#daa520",
810
+ gray: "#808080",
811
+ green: "#008000",
812
+ greenyellow: "#adff2f",
813
+ grey: "#808080",
814
+ honeydew: "#f0fff0",
815
+ hotpink: "#ff69b4",
816
+ indianred: "#cd5c5c",
817
+ indigo: "#4b0082",
818
+ ivory: "#fffff0",
819
+ khaki: "#f0e68c",
820
+ lavender: "#e6e6fa",
821
+ lavenderblush: "#fff0f5",
822
+ lawngreen: "#7cfc00",
823
+ lemonchiffon: "#fffacd",
824
+ lightblue: "#add8e6",
825
+ lightcoral: "#f08080",
826
+ lightcyan: "#e0ffff",
827
+ lightgoldenrodyellow: "#fafad2",
828
+ lightgray: "#d3d3d3",
829
+ lightgreen: "#90ee90",
830
+ lightgrey: "#d3d3d3",
831
+ lightpink: "#ffb6c1",
832
+ lightsalmon: "#ffa07a",
833
+ lightseagreen: "#20b2aa",
834
+ lightskyblue: "#87cefa",
835
+ lightslategray: "#778899",
836
+ lightslategrey: "#778899",
837
+ lightsteelblue: "#b0c4de",
838
+ lightyellow: "#ffffe0",
839
+ lime: "#00ff00",
840
+ limegreen: "#32cd32",
841
+ linen: "#faf0e6",
842
+ magenta: "#ff00ff",
843
+ maroon: "#800000",
844
+ mediumaquamarine: "#66cdaa",
845
+ mediumblue: "#0000cd",
846
+ mediumorchid: "#ba55d3",
847
+ mediumpurple: "#9370db",
848
+ mediumseagreen: "#3cb371",
849
+ mediumslateblue: "#7b68ee",
850
+ mediumspringgreen: "#00fa9a",
851
+ mediumturquoise: "#48d1cc",
852
+ mediumvioletred: "#c71585",
853
+ midnightblue: "#191970",
854
+ mintcream: "#f5fffa",
855
+ mistyrose: "#ffe4e1",
856
+ moccasin: "#ffe4b5",
857
+ navajowhite: "#ffdead",
858
+ navy: "#000080",
859
+ oldlace: "#fdf5e6",
860
+ olive: "#808000",
861
+ olivedrab: "#6b8e23",
862
+ orange: "#ffa500",
863
+ orangered: "#ff4500",
864
+ orchid: "#da70d6",
865
+ palegoldenrod: "#eee8aa",
866
+ palegreen: "#98fb98",
867
+ paleturquoise: "#afeeee",
868
+ palevioletred: "#db7093",
869
+ papayawhip: "#ffefd5",
870
+ peachpuff: "#ffdab9",
871
+ peru: "#cd853f",
872
+ pink: "#ffc0cb",
873
+ plum: "#dda0dd",
874
+ powderblue: "#b0e0e6",
875
+ purple: "#800080",
876
+ rebeccapurple: "#663399",
877
+ red: "#ff0000",
878
+ rosybrown: "#bc8f8f",
879
+ royalblue: "#4169e1",
880
+ saddlebrown: "#8b4513",
881
+ salmon: "#fa8072",
882
+ sandybrown: "#f4a460",
883
+ seagreen: "#2e8b57",
884
+ seashell: "#fff5ee",
885
+ sienna: "#a0522d",
886
+ silver: "#c0c0c0",
887
+ skyblue: "#87ceeb",
888
+ slateblue: "#6a5acd",
889
+ slategray: "#708090",
890
+ slategrey: "#708090",
891
+ snow: "#fffafa",
892
+ springgreen: "#00ff7f",
893
+ tan: "#d2b48c",
894
+ teal: "#008080",
895
+ thistle: "#d8bfd8",
896
+ transparent: "#00000000",
897
+ turquoise: "#40e0d0",
898
+ violet: "#ee82ee",
899
+ wheat: "#f5deb3",
900
+ white: "#ffffff",
901
+ whitesmoke: "#f5f5f5",
902
+ yellow: "#ffff00",
903
+ yellowgreen: "#9acd32"
904
+ },
905
+ parse: (e) => {
906
+ e = e.toLowerCase();
907
+ let t = Ue.colors[e];
908
+ if (t) return T.parse(t);
909
+ },
910
+ stringify: (e) => {
911
+ let t = T.stringify(e);
912
+ for (let e in Ue.colors) if (Ue.colors[e] === t) return e;
913
+ }
914
+ }, We = {
915
+ 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,
916
+ parse: (e) => {
917
+ let t = e.charCodeAt(0);
918
+ if (t !== 114 && t !== 82) return;
919
+ let n = e.match(We.re);
920
+ if (!n) return;
921
+ let [, r, i, a, o, s, c, l, u] = n;
922
+ return He.set({
923
+ r: x.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
924
+ g: x.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
925
+ b: x.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
926
+ a: l ? x.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
927
+ }, e);
928
+ },
929
+ stringify: (e) => {
930
+ let { r: t, g: n, b: r, a: i } = e;
931
+ return i < 1 ? `rgba(${x.lang.round(t)}, ${x.lang.round(n)}, ${x.lang.round(r)}, ${x.lang.round(i)})` : `rgb(${x.lang.round(t)}, ${x.lang.round(n)}, ${x.lang.round(r)})`;
932
+ }
933
+ }, D = {
934
+ format: {
935
+ keyword: Ue,
936
+ hex: T,
937
+ rgb: We,
938
+ rgba: We,
939
+ hsl: E,
940
+ hsla: E
941
+ },
942
+ parse: (e) => {
943
+ if (typeof e != "string") return e;
944
+ let t = T.parse(e) || We.parse(e) || E.parse(e) || Ue.parse(e);
945
+ if (t) return t;
946
+ throw Error(`Unsupported color format: "${e}"`);
947
+ },
948
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(C.HSL) || e.data.r === void 0 ? E.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? We.stringify(e) : T.stringify(e)
949
+ }, Ge = (e, t) => {
950
+ let n = D.parse(e);
951
+ for (let e in t) n[e] = x.channel.clamp[e](t[e]);
952
+ return D.stringify(n);
953
+ }, O = (e, t, n = 0, r = 1) => {
954
+ if (typeof e != "number") return Ge(e, { a: t });
955
+ let i = He.set({
956
+ r: x.channel.clamp.r(e),
957
+ g: x.channel.clamp.g(t),
958
+ b: x.channel.clamp.b(n),
959
+ a: x.channel.clamp.a(r)
960
+ });
961
+ return D.stringify(i);
962
+ }, Ke = (e) => {
963
+ let { r: t, g: n, b: r } = D.parse(e), i = .2126 * x.channel.toLinear(t) + .7152 * x.channel.toLinear(n) + .0722 * x.channel.toLinear(r);
964
+ return x.lang.round(i);
965
+ }, k = (e) => Ke(e) >= .5, A = (e) => !k(e), j = (e, t, n) => {
966
+ let r = D.parse(e), i = r[t], a = x.channel.clamp[t](i + n);
967
+ return i !== a && (r[t] = a), D.stringify(r);
968
+ }, M = (e, t) => j(e, "l", t), N = (e, t) => j(e, "l", -t), P = (e, t) => {
969
+ let n = D.parse(e), r = {};
970
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
971
+ return Ge(e, r);
972
+ }, qe = (e, t, n = 50) => {
973
+ let { r, g: i, b: a, a: o } = D.parse(e), { r: s, g: c, b: l, a: u } = D.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, p = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2, te = 1 - p;
974
+ return O(r * p + s * te, i * p + c * te, a * p + l * te, o * d + u * (1 - d));
975
+ }, F = (e, t = 100) => {
976
+ let n = D.parse(e);
977
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, qe(n, e, t);
978
+ }, Je = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Ye = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Xe = /\s*%%.*\n/gm, Ze = class extends Error {
979
+ static {
980
+ n(this, "UnknownDiagramError");
981
+ }
982
+ constructor(e) {
983
+ super(e), this.name = "UnknownDiagramError";
984
+ }
985
+ }, I = {}, Qe = /* @__PURE__ */ n(function(e, t) {
986
+ e = e.replace(Je, "").replace(Ye, "").replace(Xe, "\n");
987
+ for (let [n, { detector: r }] of Object.entries(I)) if (r(e, t)) return n;
988
+ throw new Ze(`No diagram type detected matching given configuration for text: ${e}`);
989
+ }, "detectType"), L = /* @__PURE__ */ n((...e) => {
990
+ for (let { id: t, detector: n, loader: r } of e) $e(t, n, r);
991
+ }, "registerLazyLoadedDiagrams"), $e = /* @__PURE__ */ n((e, n, r) => {
992
+ I[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), I[e] = {
993
+ detector: n,
994
+ loader: r
995
+ }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
996
+ }, "addDetector"), et = /* @__PURE__ */ n((e) => I[e].loader, "getDiagramLoader"), R = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
997
+ let i = {
998
+ depth: n,
999
+ clobber: r
1000
+ };
1001
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => R(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1002
+ e.includes(t) || e.push(t);
1003
+ }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
1004
+ typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = R(e[i], t[i], {
1005
+ depth: n - 1,
1006
+ clobber: r
1007
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1008
+ }), e);
1009
+ }, "assignWithDepth"), z = R, B = "#ffffff", V = "#f2f2f2", H = /* @__PURE__ */ n((e, t) => t ? P(e, {
1010
+ s: -40,
1011
+ l: 10
1012
+ }) : P(e, {
1013
+ s: -40,
1014
+ l: -10
1015
+ }), "mkBorder"), tt = class {
1016
+ static {
1017
+ n(this, "Theme");
1018
+ }
1019
+ constructor() {
1020
+ 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))";
1021
+ }
1022
+ updateColors() {
1023
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
1024
+ h: 180,
1025
+ l: 5
1026
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), 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 || M(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 || N(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || N(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || M(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
1027
+ h: 210,
1028
+ l: 150
1029
+ }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
1030
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1031
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
1032
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
1033
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1034
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1035
+ let e = this.darkMode ? -4 : -1;
1036
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
1037
+ h: 180,
1038
+ s: -15,
1039
+ l: e * (5 + t * 3)
1040
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
1041
+ h: 180,
1042
+ s: -15,
1043
+ l: e * (8 + t * 3)
1044
+ });
1045
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
1046
+ h: 60,
1047
+ l: -10
1048
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1049
+ h: -60,
1050
+ l: -10
1051
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1052
+ h: 120,
1053
+ l: 0
1054
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1055
+ h: 60,
1056
+ l: -20
1057
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1058
+ h: -60,
1059
+ l: -20
1060
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1061
+ h: 120,
1062
+ l: -10
1063
+ }), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
1064
+ h: 60,
1065
+ l: -30
1066
+ }), this.venn5 = this.venn5 ?? P(this.primaryColor, {
1067
+ h: -60,
1068
+ l: -30
1069
+ }), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
1070
+ h: 60,
1071
+ l: -30
1072
+ }), this.venn7 = this.venn7 ?? P(this.primaryColor, {
1073
+ h: 120,
1074
+ l: -30
1075
+ }), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
1076
+ h: 120,
1077
+ l: -30
1078
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
1079
+ axisColor: this.radar?.axisColor || this.lineColor,
1080
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1081
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1082
+ curveOpacity: this.radar?.curveOpacity || .5,
1083
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1084
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1085
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1086
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1087
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1088
+ legendFontSize: this.radar?.legendFontSize || 12
1089
+ }, 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 || P(this.primaryColor, {
1090
+ r: 5,
1091
+ g: 5,
1092
+ b: 5
1093
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1094
+ r: 10,
1095
+ g: 10,
1096
+ b: 10
1097
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1098
+ r: 15,
1099
+ g: 15,
1100
+ b: 15
1101
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1102
+ r: -5,
1103
+ g: -5,
1104
+ b: -5
1105
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1106
+ r: -10,
1107
+ g: -10,
1108
+ b: -10
1109
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1110
+ r: -15,
1111
+ g: -15,
1112
+ b: -15
1113
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1114
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1115
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1116
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1117
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1118
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1119
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1120
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1121
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1122
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1123
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1124
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1125
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1126
+ }, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1127
+ }
1128
+ calculate(e) {
1129
+ if (typeof e != "object") {
1130
+ this.updateColors();
1131
+ return;
1132
+ }
1133
+ let t = Object.keys(e);
1134
+ t.forEach((t) => {
1135
+ this[t] = e[t];
1136
+ }), this.updateColors(), t.forEach((t) => {
1137
+ this[t] = e[t];
1138
+ });
1139
+ }
1140
+ }, nt = /* @__PURE__ */ n((e) => {
1141
+ let t = new tt();
1142
+ return t.calculate(e), t;
1143
+ }, "getThemeVariables"), U = class {
1144
+ static {
1145
+ n(this, "Theme");
1146
+ }
1147
+ constructor() {
1148
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = O(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 = N("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = N(this.sectionBkgColor, 10), this.taskBorderColor = O(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = O(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 || M(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || N(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";
1149
+ }
1150
+ updateColors() {
1151
+ this.secondBkg = M(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 = M(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.altSectionBkgColor = this.background, this.taskBkgColor = M(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 = F(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 });
1152
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
1153
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10);
1154
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1155
+ h: 30,
1156
+ s: -30,
1157
+ l: -(-10 + e * 4)
1158
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1159
+ h: 30,
1160
+ s: -30,
1161
+ l: -(-7 + e * 4)
1162
+ });
1163
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1164
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1165
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1166
+ 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";
1167
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? M(this["cScale" + e], 30);
1168
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
1169
+ r: 5,
1170
+ g: 5,
1171
+ b: 5
1172
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1173
+ r: 10,
1174
+ g: 10,
1175
+ b: 10
1176
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1177
+ r: 15,
1178
+ g: 15,
1179
+ b: 15
1180
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1181
+ r: -5,
1182
+ g: -5,
1183
+ b: -5
1184
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1185
+ r: -10,
1186
+ g: -10,
1187
+ b: -10
1188
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1189
+ r: -15,
1190
+ g: -15,
1191
+ b: -15
1192
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1193
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1194
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1195
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1196
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1197
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1198
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1199
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1200
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1201
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1202
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1203
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1204
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1205
+ }, this.packet = {
1206
+ startByteColor: this.primaryTextColor,
1207
+ endByteColor: this.primaryTextColor,
1208
+ labelColor: this.primaryTextColor,
1209
+ titleColor: this.primaryTextColor,
1210
+ blockStrokeColor: this.primaryTextColor,
1211
+ blockFillColor: this.background
1212
+ }, this.radar = {
1213
+ axisColor: this.radar?.axisColor || this.lineColor,
1214
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1215
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1216
+ curveOpacity: this.radar?.curveOpacity || .5,
1217
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1218
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1219
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1220
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1221
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1222
+ legendFontSize: this.radar?.legendFontSize || 12
1223
+ }, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = M(this.secondaryColor, 20), this.git1 = M(this.pie2 || this.secondaryColor, 20), this.git2 = M(this.pie3 || this.tertiaryColor, 20), this.git3 = M(this.pie4 || P(this.primaryColor, { h: -30 }), 20), this.git4 = M(this.pie5 || P(this.primaryColor, { h: -60 }), 20), this.git5 = M(this.pie6 || P(this.primaryColor, { h: -90 }), 10), this.git6 = M(this.pie7 || P(this.primaryColor, { h: 60 }), 10), this.git7 = M(this.pie8 || P(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || M(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || M(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1224
+ }
1225
+ calculate(e) {
1226
+ if (typeof e != "object") {
1227
+ this.updateColors();
1228
+ return;
1229
+ }
1230
+ let t = Object.keys(e);
1231
+ t.forEach((t) => {
1232
+ this[t] = e[t];
1233
+ }), this.updateColors(), t.forEach((t) => {
1234
+ this[t] = e[t];
1235
+ });
1236
+ }
1237
+ }, W = /* @__PURE__ */ n((e) => {
1238
+ let t = new U();
1239
+ return t.calculate(e), t;
1240
+ }, "getThemeVariables"), rt = class {
1241
+ static {
1242
+ n(this, "Theme");
1243
+ }
1244
+ constructor() {
1245
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = P(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = H(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 = O(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();
1246
+ }
1247
+ updateColors() {
1248
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || N(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || N(this.tertiaryColor, 40);
1249
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 25);
1250
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || P(this["cScale" + e], { h: 180 });
1251
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1252
+ h: 30,
1253
+ l: -(5 + e * 5)
1254
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1255
+ h: 30,
1256
+ l: -(7 + e * 5)
1257
+ });
1258
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1259
+ this.cScaleLabel0 = this.cScaleLabel0 || F(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || F(this.labelTextColor);
1260
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1261
+ }
1262
+ 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.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || M(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || P(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || P(this.primaryColor, {
1263
+ h: 60,
1264
+ l: -20
1265
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1266
+ h: -60,
1267
+ l: -40
1268
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1269
+ h: 120,
1270
+ l: -40
1271
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1272
+ h: 60,
1273
+ l: -40
1274
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1275
+ h: -90,
1276
+ l: -40
1277
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1278
+ h: 120,
1279
+ l: -30
1280
+ }), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
1281
+ h: 60,
1282
+ l: -30
1283
+ }), this.venn5 = this.venn5 ?? P(this.primaryColor, {
1284
+ h: -60,
1285
+ l: -30
1286
+ }), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
1287
+ h: 60,
1288
+ l: -30
1289
+ }), this.venn7 = this.venn7 ?? P(this.primaryColor, {
1290
+ h: 120,
1291
+ l: -30
1292
+ }), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
1293
+ h: 120,
1294
+ l: -30
1295
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
1296
+ r: 5,
1297
+ g: 5,
1298
+ b: 5
1299
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1300
+ r: 10,
1301
+ g: 10,
1302
+ b: 10
1303
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1304
+ r: 15,
1305
+ g: 15,
1306
+ b: 15
1307
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1308
+ r: -5,
1309
+ g: -5,
1310
+ b: -5
1311
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1312
+ r: -10,
1313
+ g: -10,
1314
+ b: -10
1315
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1316
+ r: -15,
1317
+ g: -15,
1318
+ b: -15
1319
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1320
+ axisColor: this.radar?.axisColor || this.lineColor,
1321
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1322
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1323
+ curveOpacity: this.radar?.curveOpacity || .5,
1324
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1325
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1326
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1327
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1328
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1329
+ legendFontSize: this.radar?.legendFontSize || 12
1330
+ }, this.xyChart = {
1331
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1332
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1333
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1334
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1335
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1336
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1337
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1338
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1339
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1340
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1341
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1342
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1343
+ }, 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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || N(F(this.git0), 25), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1344
+ }
1345
+ calculate(e) {
1346
+ if (Object.keys(this).forEach((e) => {
1347
+ this[e] === "calculated" && (this[e] = void 0);
1348
+ }), typeof e != "object") {
1349
+ this.updateColors();
1350
+ return;
1351
+ }
1352
+ let t = Object.keys(e);
1353
+ t.forEach((t) => {
1354
+ this[t] = e[t];
1355
+ }), this.updateColors(), t.forEach((t) => {
1356
+ this[t] = e[t];
1357
+ });
1358
+ }
1359
+ }, it = /* @__PURE__ */ n((e) => {
1360
+ let t = new rt();
1361
+ return t.calculate(e), t;
1362
+ }, "getThemeVariables"), at = class {
1363
+ static {
1364
+ n(this, "Theme");
1365
+ }
1366
+ constructor() {
1367
+ 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 = M("#cde498", 10), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.primaryColor), this.lineColor = F(this.background), this.textColor = F(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))";
1368
+ }
1369
+ updateColors() {
1370
+ this.actorBorder = N(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.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || N(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || N(this.tertiaryColor, 40);
1371
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 25);
1372
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || P(this["cScale" + e], { h: 180 });
1373
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1374
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1375
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1376
+ h: 30,
1377
+ s: -30,
1378
+ l: -(5 + e * 5)
1379
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1380
+ h: 30,
1381
+ s: -30,
1382
+ l: -(8 + e * 5)
1383
+ });
1384
+ 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 || M(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(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 || P(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || P(this.tertiaryColor, {
1385
+ h: 40,
1386
+ l: -40
1387
+ }), this.pie7 = this.pie7 || P(this.primaryColor, {
1388
+ h: 60,
1389
+ l: -10
1390
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1391
+ h: -60,
1392
+ l: -10
1393
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1394
+ h: 120,
1395
+ l: 0
1396
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1397
+ h: 60,
1398
+ l: -50
1399
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1400
+ h: -60,
1401
+ l: -50
1402
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1403
+ h: 120,
1404
+ l: -50
1405
+ }), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
1406
+ h: 60,
1407
+ l: -30
1408
+ }), this.venn5 = this.venn5 ?? P(this.primaryColor, {
1409
+ h: -60,
1410
+ l: -30
1411
+ }), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
1412
+ h: 60,
1413
+ l: -30
1414
+ }), this.venn7 = this.venn7 ?? P(this.primaryColor, {
1415
+ h: 120,
1416
+ l: -30
1417
+ }), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
1418
+ h: 120,
1419
+ l: -30
1420
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
1421
+ r: 5,
1422
+ g: 5,
1423
+ b: 5
1424
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1425
+ r: 10,
1426
+ g: 10,
1427
+ b: 10
1428
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1429
+ r: 15,
1430
+ g: 15,
1431
+ b: 15
1432
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1433
+ r: -5,
1434
+ g: -5,
1435
+ b: -5
1436
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1437
+ r: -10,
1438
+ g: -10,
1439
+ b: -10
1440
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1441
+ r: -15,
1442
+ g: -15,
1443
+ b: -15
1444
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1445
+ startByteColor: this.primaryTextColor,
1446
+ endByteColor: this.primaryTextColor,
1447
+ labelColor: this.primaryTextColor,
1448
+ titleColor: this.primaryTextColor,
1449
+ blockStrokeColor: this.primaryTextColor,
1450
+ blockFillColor: this.mainBkg
1451
+ }, this.radar = {
1452
+ axisColor: this.radar?.axisColor || this.lineColor,
1453
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1454
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1455
+ curveOpacity: this.radar?.curveOpacity || .5,
1456
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1457
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1458
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1459
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1460
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1461
+ legendFontSize: this.radar?.legendFontSize || 12
1462
+ }, this.xyChart = {
1463
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1464
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1465
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1466
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1467
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1468
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1469
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1470
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1471
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1472
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1473
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1474
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1475
+ }, 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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1476
+ }
1477
+ calculate(e) {
1478
+ if (typeof e != "object") {
1479
+ this.updateColors();
1480
+ return;
1481
+ }
1482
+ let t = Object.keys(e);
1483
+ t.forEach((t) => {
1484
+ this[t] = e[t];
1485
+ }), this.updateColors(), t.forEach((t) => {
1486
+ this[t] = e[t];
1487
+ });
1488
+ }
1489
+ }, ot = /* @__PURE__ */ n((e) => {
1490
+ let t = new at();
1491
+ return t.calculate(e), t;
1492
+ }, "getThemeVariables"), st = class {
1493
+ static {
1494
+ n(this, "Theme");
1495
+ }
1496
+ constructor() {
1497
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = M(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(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 || M(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))";
1498
+ }
1499
+ updateColors() {
1500
+ this.secondBkg = M(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = M(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, 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";
1501
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
1502
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
1503
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1504
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1505
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, { l: -(8 + e * 5) });
1506
+ 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 = M(this.contrast, 30), this.sectionBkgColor2 = M(this.contrast, 30), this.taskBorderColor = N(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 = M(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = N(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(this.secondaryColor, { h: 128 });
1507
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1508
+ 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";
1509
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1510
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
1511
+ r: 5,
1512
+ g: 5,
1513
+ b: 5
1514
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1515
+ r: 10,
1516
+ g: 10,
1517
+ b: 10
1518
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1519
+ r: 15,
1520
+ g: 15,
1521
+ b: 15
1522
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1523
+ r: -5,
1524
+ g: -5,
1525
+ b: -5
1526
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1527
+ r: -10,
1528
+ g: -10,
1529
+ b: -10
1530
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1531
+ r: -15,
1532
+ g: -15,
1533
+ b: -15
1534
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1535
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1536
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1537
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1538
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1539
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1540
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1541
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1542
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1543
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1544
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1545
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1546
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1547
+ }, this.radar = {
1548
+ axisColor: this.radar?.axisColor || this.lineColor,
1549
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1550
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1551
+ curveOpacity: this.radar?.curveOpacity || .5,
1552
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1553
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1554
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1555
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1556
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1557
+ legendFontSize: this.radar?.legendFontSize || 12
1558
+ }, 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 = N(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || P(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || P(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || P(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || P(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || P(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1559
+ }
1560
+ calculate(e) {
1561
+ if (typeof e != "object") {
1562
+ this.updateColors();
1563
+ return;
1564
+ }
1565
+ let t = Object.keys(e);
1566
+ t.forEach((t) => {
1567
+ this[t] = e[t];
1568
+ }), this.updateColors(), t.forEach((t) => {
1569
+ this[t] = e[t];
1570
+ });
1571
+ }
1572
+ }, ct = /* @__PURE__ */ n((e) => {
1573
+ let t = new st();
1574
+ return t.calculate(e), t;
1575
+ }, "getThemeVariables"), lt = class {
1576
+ static {
1577
+ n(this, "Theme");
1578
+ }
1579
+ constructor() {
1580
+ 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 = H(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";
1581
+ }
1582
+ updateColors() {
1583
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
1584
+ h: 180,
1585
+ l: 5
1586
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor);
1587
+ let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
1588
+ h: 180,
1589
+ l: 5
1590
+ });
1591
+ if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || M(e, 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 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || P(e, { h: 30 }), this.cScale4 = this.cScale4 || P(e, { h: 60 }), this.cScale5 = this.cScale5 || P(e, { h: 90 }), this.cScale6 = this.cScale6 || P(e, { h: 120 }), this.cScale7 = this.cScale7 || P(e, { h: 150 }), this.cScale8 = this.cScale8 || P(e, {
1592
+ h: 210,
1593
+ l: 150
1594
+ }), this.cScale9 = this.cScale9 || P(e, { h: 270 }), this.cScale10 = this.cScale10 || P(e, { h: 300 }), this.cScale11 = this.cScale11 || P(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
1595
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1596
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
1597
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
1598
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1599
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1600
+ let r = this.darkMode ? -4 : -1;
1601
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1602
+ h: 180,
1603
+ s: -15,
1604
+ l: r * (5 + e * 3)
1605
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1606
+ h: 180,
1607
+ s: -15,
1608
+ l: r * (8 + e * 3)
1609
+ });
1610
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || P(e, { h: 64 }), this.fillType3 = this.fillType3 || P(t, { h: 64 }), this.fillType4 = this.fillType4 || P(e, { h: -64 }), this.fillType5 = this.fillType5 || P(t, { h: -64 }), this.fillType6 = this.fillType6 || P(e, { h: 128 }), this.fillType7 = this.fillType7 || P(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || P(e, { l: -10 }), this.pie5 = this.pie5 || P(t, { l: -10 }), this.pie6 = this.pie6 || P(n, { l: -10 }), this.pie7 = this.pie7 || P(e, {
1611
+ h: 60,
1612
+ l: -10
1613
+ }), this.pie8 = this.pie8 || P(e, {
1614
+ h: -60,
1615
+ l: -10
1616
+ }), this.pie9 = this.pie9 || P(e, {
1617
+ h: 120,
1618
+ l: 0
1619
+ }), this.pie10 = this.pie10 || P(e, {
1620
+ h: 60,
1621
+ l: -20
1622
+ }), this.pie11 = this.pie11 || P(e, {
1623
+ h: -60,
1624
+ l: -20
1625
+ }), this.pie12 = this.pie12 || P(e, {
1626
+ h: 120,
1627
+ l: -10
1628
+ }), 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 || e, this.quadrant2Fill = this.quadrant2Fill || P(e, {
1629
+ r: 5,
1630
+ g: 5,
1631
+ b: 5
1632
+ }), this.quadrant3Fill = this.quadrant3Fill || P(e, {
1633
+ r: 10,
1634
+ g: 10,
1635
+ b: 10
1636
+ }), this.quadrant4Fill = this.quadrant4Fill || P(e, {
1637
+ r: 15,
1638
+ g: 15,
1639
+ b: 15
1640
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1641
+ r: -5,
1642
+ g: -5,
1643
+ b: -5
1644
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1645
+ r: -10,
1646
+ g: -10,
1647
+ b: -10
1648
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1649
+ r: -15,
1650
+ g: -15,
1651
+ b: -15
1652
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1653
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1654
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1655
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1656
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1657
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1658
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1659
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1660
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1661
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1662
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1663
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1664
+ }, this.requirementBackground = this.requirementBackground || e, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1665
+ }
1666
+ calculate(e) {
1667
+ if (typeof e != "object") {
1668
+ this.updateColors();
1669
+ return;
1670
+ }
1671
+ let t = Object.keys(e);
1672
+ t.forEach((t) => {
1673
+ this[t] = e[t];
1674
+ }), this.updateColors(), t.forEach((t) => {
1675
+ this[t] = e[t];
1676
+ });
1677
+ }
1678
+ }, G = /* @__PURE__ */ n((e) => {
1679
+ let t = new lt();
1680
+ return t.calculate(e), t;
1681
+ }, "getThemeVariables"), ut = class {
1682
+ static {
1683
+ n(this, "Theme");
1684
+ }
1685
+ constructor() {
1686
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = O(255, 255, 255, .25), this.arrowheadColor = F(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";
1687
+ }
1688
+ updateColors() {
1689
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
1690
+ h: 180,
1691
+ l: 5
1692
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), 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 || M(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
1693
+ h: 210,
1694
+ l: 150
1695
+ }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
1696
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1697
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
1698
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
1699
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1700
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1701
+ let e = this.darkMode ? -4 : -1;
1702
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
1703
+ h: 180,
1704
+ s: -15,
1705
+ l: e * (5 + t * 3)
1706
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
1707
+ h: 180,
1708
+ s: -15,
1709
+ l: e * (8 + t * 3)
1710
+ });
1711
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
1712
+ h: 60,
1713
+ l: -10
1714
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1715
+ h: -60,
1716
+ l: -10
1717
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1718
+ h: 120,
1719
+ l: 0
1720
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1721
+ h: 60,
1722
+ l: -20
1723
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1724
+ h: -60,
1725
+ l: -20
1726
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1727
+ h: 120,
1728
+ l: -10
1729
+ }), 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 || P(this.primaryColor, {
1730
+ r: 5,
1731
+ g: 5,
1732
+ b: 5
1733
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1734
+ r: 10,
1735
+ g: 10,
1736
+ b: 10
1737
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1738
+ r: 15,
1739
+ g: 15,
1740
+ b: 15
1741
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1742
+ r: -5,
1743
+ g: -5,
1744
+ b: -5
1745
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1746
+ r: -10,
1747
+ g: -10,
1748
+ b: -10
1749
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1750
+ r: -15,
1751
+ g: -15,
1752
+ b: -15
1753
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1754
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1755
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1756
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1757
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1758
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1759
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1760
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1761
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1762
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1763
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1764
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1765
+ }, 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 ? N(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 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1766
+ }
1767
+ calculate(e) {
1768
+ if (typeof e != "object") {
1769
+ this.updateColors();
1770
+ return;
1771
+ }
1772
+ let t = Object.keys(e);
1773
+ t.forEach((t) => {
1774
+ this[t] = e[t];
1775
+ }), this.updateColors(), t.forEach((t) => {
1776
+ this[t] = e[t];
1777
+ });
1778
+ }
1779
+ }, dt = /* @__PURE__ */ n((e) => {
1780
+ let t = new ut();
1781
+ return t.calculate(e), t;
1782
+ }, "getThemeVariables"), ft = class {
1783
+ static {
1784
+ n(this, "Theme");
1785
+ }
1786
+ constructor() {
1787
+ 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 = H("#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";
1788
+ }
1789
+ updateColors() {
1790
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
1791
+ h: 180,
1792
+ l: 5
1793
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor);
1794
+ let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
1795
+ h: 180,
1796
+ l: 5
1797
+ });
1798
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || M(e, 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;
1799
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
1800
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
1801
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1802
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
1803
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
1804
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1805
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1806
+ let r = this.darkMode ? -4 : -1;
1807
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1808
+ h: 180,
1809
+ s: -15,
1810
+ l: r * (5 + e * 3)
1811
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1812
+ h: 180,
1813
+ s: -15,
1814
+ l: r * (8 + e * 3)
1815
+ });
1816
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || P(e, { h: 64 }), this.fillType3 = this.fillType3 || P(t, { h: 64 }), this.fillType4 = this.fillType4 || P(e, { h: -64 }), this.fillType5 = this.fillType5 || P(t, { h: -64 }), this.fillType6 = this.fillType6 || P(e, { h: 128 }), this.fillType7 = this.fillType7 || P(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || P(e, { l: -10 }), this.pie5 = this.pie5 || P(t, { l: -10 }), this.pie6 = this.pie6 || P(n, { l: -10 }), this.pie7 = this.pie7 || P(e, {
1817
+ h: 60,
1818
+ l: -10
1819
+ }), this.pie8 = this.pie8 || P(e, {
1820
+ h: -60,
1821
+ l: -10
1822
+ }), this.pie9 = this.pie9 || P(e, {
1823
+ h: 120,
1824
+ l: 0
1825
+ }), this.pie10 = this.pie10 || P(e, {
1826
+ h: 60,
1827
+ l: -20
1828
+ }), this.pie11 = this.pie11 || P(e, {
1829
+ h: -60,
1830
+ l: -20
1831
+ }), this.pie12 = this.pie12 || P(e, {
1832
+ h: 120,
1833
+ l: -10
1834
+ }), 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 || e, this.quadrant2Fill = this.quadrant2Fill || P(e, {
1835
+ r: 5,
1836
+ g: 5,
1837
+ b: 5
1838
+ }), this.quadrant3Fill = this.quadrant3Fill || P(e, {
1839
+ r: 10,
1840
+ g: 10,
1841
+ b: 10
1842
+ }), this.quadrant4Fill = this.quadrant4Fill || P(e, {
1843
+ r: 15,
1844
+ g: 15,
1845
+ b: 15
1846
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1847
+ r: -5,
1848
+ g: -5,
1849
+ b: -5
1850
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1851
+ r: -10,
1852
+ g: -10,
1853
+ b: -10
1854
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1855
+ r: -15,
1856
+ g: -15,
1857
+ b: -15
1858
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1859
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1860
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1861
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1862
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1863
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1864
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1865
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1866
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1867
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1868
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1869
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1870
+ }, this.requirementBackground = this.requirementBackground || e, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1871
+ }
1872
+ calculate(e) {
1873
+ if (typeof e != "object") {
1874
+ this.updateColors();
1875
+ return;
1876
+ }
1877
+ let t = Object.keys(e);
1878
+ t.forEach((t) => {
1879
+ this[t] = e[t];
1880
+ }), this.updateColors(), t.forEach((t) => {
1881
+ this[t] = e[t];
1882
+ });
1883
+ }
1884
+ }, pt = /* @__PURE__ */ n((e) => {
1885
+ let t = new ft();
1886
+ return t.calculate(e), t;
1887
+ }, "getThemeVariables"), mt = class {
1888
+ static {
1889
+ n(this, "Theme");
1890
+ }
1891
+ constructor() {
1892
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = O(255, 255, 255, .25), this.arrowheadColor = F(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";
1893
+ }
1894
+ updateColors() {
1895
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
1896
+ h: 180,
1897
+ l: 5
1898
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), 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 || M(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
1899
+ h: 210,
1900
+ l: 150
1901
+ }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
1902
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1903
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
1904
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
1905
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1906
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1907
+ let e = this.darkMode ? -4 : -1;
1908
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
1909
+ h: 180,
1910
+ s: -15,
1911
+ l: e * (5 + t * 3)
1912
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
1913
+ h: 180,
1914
+ s: -15,
1915
+ l: e * (8 + t * 3)
1916
+ });
1917
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
1918
+ h: 60,
1919
+ l: -10
1920
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1921
+ h: -60,
1922
+ l: -10
1923
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1924
+ h: 120,
1925
+ l: 0
1926
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1927
+ h: 60,
1928
+ l: -20
1929
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1930
+ h: -60,
1931
+ l: -20
1932
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1933
+ h: 120,
1934
+ l: -10
1935
+ }), 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 || P(this.primaryColor, {
1936
+ r: 5,
1937
+ g: 5,
1938
+ b: 5
1939
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1940
+ r: 10,
1941
+ g: 10,
1942
+ b: 10
1943
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1944
+ r: 15,
1945
+ g: 15,
1946
+ b: 15
1947
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1948
+ r: -5,
1949
+ g: -5,
1950
+ b: -5
1951
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1952
+ r: -10,
1953
+ g: -10,
1954
+ b: -10
1955
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1956
+ r: -15,
1957
+ g: -15,
1958
+ b: -15
1959
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
1960
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1961
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1962
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1963
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1964
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1965
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1966
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1967
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1968
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1969
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1970
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1971
+ }, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1972
+ }
1973
+ calculate(e) {
1974
+ if (typeof e != "object") {
1975
+ this.updateColors();
1976
+ return;
1977
+ }
1978
+ let t = Object.keys(e);
1979
+ t.forEach((t) => {
1980
+ this[t] = e[t];
1981
+ }), this.updateColors(), t.forEach((t) => {
1982
+ this[t] = e[t];
1983
+ });
1984
+ }
1985
+ }, ht = /* @__PURE__ */ n((e) => {
1986
+ let t = new mt();
1987
+ return t.calculate(e), t;
1988
+ }, "getThemeVariables"), gt = class {
1989
+ static {
1990
+ n(this, "Theme");
1991
+ }
1992
+ constructor() {
1993
+ 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 = H(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 = [
1994
+ "#E879F9",
1995
+ "#2DD4BF",
1996
+ "#FB923C",
1997
+ "#22D3EE",
1998
+ "#4ADE80",
1999
+ "#A78BFA",
2000
+ "#F87171",
2001
+ "#FACC15",
2002
+ "#818CF8",
2003
+ "#A3E635 ",
2004
+ "#38BDF8",
2005
+ "#FB7185"
2006
+ ], this.bkgColorArray = [
2007
+ "#FDF4FF",
2008
+ "#F0FDFA",
2009
+ "#FFF7ED",
2010
+ "#ECFEFF",
2011
+ "#F0FDF4",
2012
+ "#F5F3FF",
2013
+ "#FEF2F2",
2014
+ "#FEFCE8",
2015
+ "#EEF2FF",
2016
+ "#F7FEE7",
2017
+ "#F0F9FF",
2018
+ "#FFF1F2"
2019
+ ], this.filterColor = "#000000";
2020
+ }
2021
+ updateColors() {
2022
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
2023
+ h: 180,
2024
+ l: 5
2025
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor);
2026
+ let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
2027
+ h: 180,
2028
+ l: 5
2029
+ });
2030
+ this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || M(e, 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";
2031
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
2032
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
2033
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2034
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2035
+ let r = this.darkMode ? -4 : -1;
2036
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
2037
+ h: 180,
2038
+ s: -15,
2039
+ l: r * (5 + e * 3)
2040
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
2041
+ h: 180,
2042
+ s: -15,
2043
+ l: r * (8 + e * 3)
2044
+ });
2045
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || P(e, { h: 64 }), this.fillType3 = this.fillType3 || P(t, { h: 64 }), this.fillType4 = this.fillType4 || P(e, { h: -64 }), this.fillType5 = this.fillType5 || P(t, { h: -64 }), this.fillType6 = this.fillType6 || P(e, { h: 128 }), this.fillType7 = this.fillType7 || P(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || P(e, { l: -10 }), this.pie5 = this.pie5 || P(t, { l: -10 }), this.pie6 = this.pie6 || P(n, { l: -10 }), this.pie7 = this.pie7 || P(e, {
2046
+ h: 60,
2047
+ l: -10
2048
+ }), this.pie8 = this.pie8 || P(e, {
2049
+ h: -60,
2050
+ l: -10
2051
+ }), this.pie9 = this.pie9 || P(e, {
2052
+ h: 120,
2053
+ l: 0
2054
+ }), this.pie10 = this.pie10 || P(e, {
2055
+ h: 60,
2056
+ l: -20
2057
+ }), this.pie11 = this.pie11 || P(e, {
2058
+ h: -60,
2059
+ l: -20
2060
+ }), this.pie12 = this.pie12 || P(e, {
2061
+ h: 120,
2062
+ l: -10
2063
+ }), 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 || e, this.quadrant2Fill = this.quadrant2Fill || P(e, {
2064
+ r: 5,
2065
+ g: 5,
2066
+ b: 5
2067
+ }), this.quadrant3Fill = this.quadrant3Fill || P(e, {
2068
+ r: 10,
2069
+ g: 10,
2070
+ b: 10
2071
+ }), this.quadrant4Fill = this.quadrant4Fill || P(e, {
2072
+ r: 15,
2073
+ g: 15,
2074
+ b: 15
2075
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
2076
+ r: -5,
2077
+ g: -5,
2078
+ b: -5
2079
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
2080
+ r: -10,
2081
+ g: -10,
2082
+ b: -10
2083
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
2084
+ r: -15,
2085
+ g: -15,
2086
+ b: -15
2087
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
2088
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2089
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2090
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2091
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2092
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2093
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2094
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2095
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2096
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2097
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2098
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2099
+ }, this.requirementBackground = this.requirementBackground || e, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2100
+ }
2101
+ calculate(e) {
2102
+ if (typeof e != "object") {
2103
+ this.updateColors();
2104
+ return;
2105
+ }
2106
+ let t = Object.keys(e);
2107
+ t.forEach((t) => {
2108
+ this[t] = e[t];
2109
+ }), this.updateColors(), t.forEach((t) => {
2110
+ this[t] = e[t];
2111
+ });
2112
+ }
2113
+ }, _t = /* @__PURE__ */ n((e) => {
2114
+ let t = new gt();
2115
+ return t.calculate(e), t;
2116
+ }, "getThemeVariables"), vt = class {
2117
+ static {
2118
+ n(this, "Theme");
2119
+ }
2120
+ constructor() {
2121
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = O(255, 255, 255, .25), this.arrowheadColor = F(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 = [
2122
+ "#E879F9",
2123
+ "#2DD4BF",
2124
+ "#FB923C",
2125
+ "#22D3EE",
2126
+ "#4ADE80",
2127
+ "#A78BFA",
2128
+ "#F87171",
2129
+ "#FACC15",
2130
+ "#818CF8",
2131
+ "#A3E635 ",
2132
+ "#38BDF8",
2133
+ "#FB7185"
2134
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2135
+ }
2136
+ updateColors() {
2137
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
2138
+ h: 180,
2139
+ l: 5
2140
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), 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 || M(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";
2141
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
2142
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
2143
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2144
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = N(this["cScale" + e], 75);
2145
+ let e = this.darkMode ? -4 : -1;
2146
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
2147
+ h: 180,
2148
+ s: -15,
2149
+ l: e * (5 + t * 3)
2150
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
2151
+ h: 180,
2152
+ s: -15,
2153
+ l: e * (8 + t * 3)
2154
+ });
2155
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
2156
+ h: 60,
2157
+ l: -10
2158
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
2159
+ h: -60,
2160
+ l: -10
2161
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
2162
+ h: 120,
2163
+ l: 0
2164
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
2165
+ h: 60,
2166
+ l: -20
2167
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
2168
+ h: -60,
2169
+ l: -20
2170
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
2171
+ h: 120,
2172
+ l: -10
2173
+ }), 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 || P(this.primaryColor, {
2174
+ r: 5,
2175
+ g: 5,
2176
+ b: 5
2177
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
2178
+ r: 10,
2179
+ g: 10,
2180
+ b: 10
2181
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
2182
+ r: 15,
2183
+ g: 15,
2184
+ b: 15
2185
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
2186
+ r: -5,
2187
+ g: -5,
2188
+ b: -5
2189
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
2190
+ r: -10,
2191
+ g: -10,
2192
+ b: -10
2193
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
2194
+ r: -15,
2195
+ g: -15,
2196
+ b: -15
2197
+ }), this.quadrantPointFill = this.quadrantPointFill || A(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
2198
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2199
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2200
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2201
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2202
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2203
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2204
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2205
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2206
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2207
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2208
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2209
+ }, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2210
+ }
2211
+ calculate(e) {
2212
+ if (typeof e != "object") {
2213
+ this.updateColors();
2214
+ return;
2215
+ }
2216
+ let t = Object.keys(e);
2217
+ t.forEach((t) => {
2218
+ this[t] = e[t];
2219
+ }), this.updateColors(), t.forEach((t) => {
2220
+ this[t] = e[t];
2221
+ });
2222
+ }
2223
+ }, K = {
2224
+ base: { getThemeVariables: nt },
2225
+ dark: { getThemeVariables: W },
2226
+ default: { getThemeVariables: it },
2227
+ forest: { getThemeVariables: ot },
2228
+ neutral: { getThemeVariables: ct },
2229
+ neo: { getThemeVariables: G },
2230
+ "neo-dark": { getThemeVariables: dt },
2231
+ redux: { getThemeVariables: pt },
2232
+ "redux-dark": { getThemeVariables: ht },
2233
+ "redux-color": { getThemeVariables: _t },
2234
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2235
+ let t = new vt();
2236
+ return t.calculate(e), t;
2237
+ }, "getThemeVariables") }
2238
+ }, q = {
2239
+ flowchart: {
2240
+ useMaxWidth: !0,
2241
+ titleTopMargin: 25,
2242
+ subGraphTitleMargin: {
2243
+ top: 0,
2244
+ bottom: 0
2245
+ },
2246
+ diagramPadding: 8,
2247
+ htmlLabels: null,
2248
+ nodeSpacing: 50,
2249
+ rankSpacing: 50,
2250
+ curve: "basis",
2251
+ padding: 15,
2252
+ defaultRenderer: "dagre-wrapper",
2253
+ wrappingWidth: 200,
2254
+ inheritDir: !1
2255
+ },
2256
+ sequence: {
2257
+ useMaxWidth: !0,
2258
+ hideUnusedParticipants: !1,
2259
+ activationWidth: 10,
2260
+ diagramMarginX: 50,
2261
+ diagramMarginY: 10,
2262
+ actorMargin: 50,
2263
+ width: 150,
2264
+ height: 65,
2265
+ boxMargin: 10,
2266
+ boxTextMargin: 5,
2267
+ noteMargin: 10,
2268
+ messageMargin: 35,
2269
+ messageAlign: "center",
2270
+ mirrorActors: !0,
2271
+ forceMenus: !1,
2272
+ bottomMarginAdj: 1,
2273
+ rightAngles: !1,
2274
+ showSequenceNumbers: !1,
2275
+ actorFontSize: 14,
2276
+ actorFontFamily: "\"Open Sans\", sans-serif",
2277
+ actorFontWeight: 400,
2278
+ noteFontSize: 14,
2279
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2280
+ noteFontWeight: 400,
2281
+ noteAlign: "center",
2282
+ messageFontSize: 16,
2283
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2284
+ messageFontWeight: 400,
2285
+ wrap: !1,
2286
+ wrapPadding: 10,
2287
+ labelBoxWidth: 50,
2288
+ labelBoxHeight: 20
2289
+ },
2290
+ gantt: {
2291
+ useMaxWidth: !0,
2292
+ titleTopMargin: 25,
2293
+ barHeight: 20,
2294
+ barGap: 4,
2295
+ topPadding: 50,
2296
+ rightPadding: 75,
2297
+ leftPadding: 75,
2298
+ gridLineStartPadding: 35,
2299
+ fontSize: 11,
2300
+ sectionFontSize: 11,
2301
+ numberSectionStyles: 4,
2302
+ axisFormat: "%Y-%m-%d",
2303
+ topAxis: !1,
2304
+ displayMode: "",
2305
+ weekday: "sunday"
2306
+ },
2307
+ journey: {
2308
+ useMaxWidth: !0,
2309
+ diagramMarginX: 50,
2310
+ diagramMarginY: 10,
2311
+ leftMargin: 150,
2312
+ maxLabelWidth: 360,
2313
+ width: 150,
2314
+ height: 50,
2315
+ boxMargin: 10,
2316
+ boxTextMargin: 5,
2317
+ noteMargin: 10,
2318
+ messageMargin: 35,
2319
+ messageAlign: "center",
2320
+ bottomMarginAdj: 1,
2321
+ rightAngles: !1,
2322
+ taskFontSize: 14,
2323
+ taskFontFamily: "\"Open Sans\", sans-serif",
2324
+ taskMargin: 50,
2325
+ activationWidth: 10,
2326
+ textPlacement: "fo",
2327
+ actorColours: [
2328
+ "#8FBC8F",
2329
+ "#7CFC00",
2330
+ "#00FFFF",
2331
+ "#20B2AA",
2332
+ "#B0E0E6",
2333
+ "#FFFFE0"
2334
+ ],
2335
+ sectionFills: [
2336
+ "#191970",
2337
+ "#8B008B",
2338
+ "#4B0082",
2339
+ "#2F4F4F",
2340
+ "#800000",
2341
+ "#8B4513",
2342
+ "#00008B"
2343
+ ],
2344
+ sectionColours: ["#fff"],
2345
+ titleColor: "",
2346
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2347
+ titleFontSize: "4ex"
2348
+ },
2349
+ class: {
2350
+ useMaxWidth: !0,
2351
+ titleTopMargin: 25,
2352
+ arrowMarkerAbsolute: !1,
2353
+ dividerMargin: 10,
2354
+ padding: 5,
2355
+ textHeight: 10,
2356
+ defaultRenderer: "dagre-wrapper",
2357
+ htmlLabels: !1,
2358
+ hideEmptyMembersBox: !1
2359
+ },
2360
+ state: {
2361
+ useMaxWidth: !0,
2362
+ titleTopMargin: 25,
2363
+ dividerMargin: 10,
2364
+ sizeUnit: 5,
2365
+ padding: 8,
2366
+ textHeight: 10,
2367
+ titleShift: -15,
2368
+ noteMargin: 10,
2369
+ forkWidth: 70,
2370
+ forkHeight: 7,
2371
+ miniPadding: 2,
2372
+ fontSizeFactor: 5.02,
2373
+ fontSize: 24,
2374
+ labelHeight: 16,
2375
+ edgeLengthFactor: "20",
2376
+ compositTitleSize: 35,
2377
+ radius: 5,
2378
+ defaultRenderer: "dagre-wrapper"
2379
+ },
2380
+ er: {
2381
+ useMaxWidth: !0,
2382
+ titleTopMargin: 25,
2383
+ diagramPadding: 20,
2384
+ layoutDirection: "TB",
2385
+ minEntityWidth: 100,
2386
+ minEntityHeight: 75,
2387
+ entityPadding: 15,
2388
+ nodeSpacing: 140,
2389
+ rankSpacing: 80,
2390
+ stroke: "gray",
2391
+ fill: "honeydew",
2392
+ fontSize: 12
2393
+ },
2394
+ pie: {
2395
+ useMaxWidth: !0,
2396
+ textPosition: .75
2397
+ },
2398
+ quadrantChart: {
2399
+ useMaxWidth: !0,
2400
+ chartWidth: 500,
2401
+ chartHeight: 500,
2402
+ titleFontSize: 20,
2403
+ titlePadding: 10,
2404
+ quadrantPadding: 5,
2405
+ xAxisLabelPadding: 5,
2406
+ yAxisLabelPadding: 5,
2407
+ xAxisLabelFontSize: 16,
2408
+ yAxisLabelFontSize: 16,
2409
+ quadrantLabelFontSize: 16,
2410
+ quadrantTextTopPadding: 5,
2411
+ pointTextPadding: 5,
2412
+ pointLabelFontSize: 12,
2413
+ pointRadius: 5,
2414
+ xAxisPosition: "top",
2415
+ yAxisPosition: "left",
2416
+ quadrantInternalBorderStrokeWidth: 1,
2417
+ quadrantExternalBorderStrokeWidth: 2
2418
+ },
2419
+ xyChart: {
2420
+ useMaxWidth: !0,
2421
+ width: 700,
2422
+ height: 500,
2423
+ titleFontSize: 20,
2424
+ titlePadding: 10,
2425
+ showDataLabel: !1,
2426
+ showDataLabelOutsideBar: !1,
2427
+ showTitle: !0,
2428
+ xAxis: {
2429
+ $ref: "#/$defs/XYChartAxisConfig",
2430
+ showLabel: !0,
2431
+ labelFontSize: 14,
2432
+ labelPadding: 5,
2433
+ showTitle: !0,
2434
+ titleFontSize: 16,
2435
+ titlePadding: 5,
2436
+ showTick: !0,
2437
+ tickLength: 5,
2438
+ tickWidth: 2,
2439
+ showAxisLine: !0,
2440
+ axisLineWidth: 2
2441
+ },
2442
+ yAxis: {
2443
+ $ref: "#/$defs/XYChartAxisConfig",
2444
+ showLabel: !0,
2445
+ labelFontSize: 14,
2446
+ labelPadding: 5,
2447
+ showTitle: !0,
2448
+ titleFontSize: 16,
2449
+ titlePadding: 5,
2450
+ showTick: !0,
2451
+ tickLength: 5,
2452
+ tickWidth: 2,
2453
+ showAxisLine: !0,
2454
+ axisLineWidth: 2
2455
+ },
2456
+ chartOrientation: "vertical",
2457
+ plotReservedSpacePercent: 50
2458
+ },
2459
+ requirement: {
2460
+ useMaxWidth: !0,
2461
+ rect_fill: "#f9f9f9",
2462
+ text_color: "#333",
2463
+ rect_border_size: "0.5px",
2464
+ rect_border_color: "#bbb",
2465
+ rect_min_width: 200,
2466
+ rect_min_height: 200,
2467
+ fontSize: 14,
2468
+ rect_padding: 10,
2469
+ line_height: 20
2470
+ },
2471
+ mindmap: {
2472
+ useMaxWidth: !0,
2473
+ padding: 10,
2474
+ maxNodeWidth: 200,
2475
+ layoutAlgorithm: "cose-bilkent"
2476
+ },
2477
+ ishikawa: {
2478
+ useMaxWidth: !0,
2479
+ diagramPadding: 20
2480
+ },
2481
+ kanban: {
2482
+ useMaxWidth: !0,
2483
+ padding: 8,
2484
+ sectionWidth: 200,
2485
+ ticketBaseUrl: ""
2486
+ },
2487
+ timeline: {
2488
+ useMaxWidth: !0,
2489
+ diagramMarginX: 50,
2490
+ diagramMarginY: 10,
2491
+ leftMargin: 150,
2492
+ width: 150,
2493
+ height: 50,
2494
+ boxMargin: 10,
2495
+ boxTextMargin: 5,
2496
+ noteMargin: 10,
2497
+ messageMargin: 35,
2498
+ messageAlign: "center",
2499
+ bottomMarginAdj: 1,
2500
+ rightAngles: !1,
2501
+ taskFontSize: 14,
2502
+ taskFontFamily: "\"Open Sans\", sans-serif",
2503
+ taskMargin: 50,
2504
+ activationWidth: 10,
2505
+ textPlacement: "fo",
2506
+ actorColours: [
2507
+ "#8FBC8F",
2508
+ "#7CFC00",
2509
+ "#00FFFF",
2510
+ "#20B2AA",
2511
+ "#B0E0E6",
2512
+ "#FFFFE0"
2513
+ ],
2514
+ sectionFills: [
2515
+ "#191970",
2516
+ "#8B008B",
2517
+ "#4B0082",
2518
+ "#2F4F4F",
2519
+ "#800000",
2520
+ "#8B4513",
2521
+ "#00008B"
2522
+ ],
2523
+ sectionColours: ["#fff"],
2524
+ disableMulticolor: !1
2525
+ },
2526
+ gitGraph: {
2527
+ useMaxWidth: !0,
2528
+ titleTopMargin: 25,
2529
+ diagramPadding: 8,
2530
+ nodeLabel: {
2531
+ width: 75,
2532
+ height: 100,
2533
+ x: -25,
2534
+ y: 0
2535
+ },
2536
+ mainBranchName: "main",
2537
+ mainBranchOrder: 0,
2538
+ showCommitLabel: !0,
2539
+ showBranches: !0,
2540
+ rotateCommitLabel: !0,
2541
+ parallelCommits: !1,
2542
+ arrowMarkerAbsolute: !1
2543
+ },
2544
+ c4: {
2545
+ useMaxWidth: !0,
2546
+ diagramMarginX: 50,
2547
+ diagramMarginY: 10,
2548
+ c4ShapeMargin: 50,
2549
+ c4ShapePadding: 20,
2550
+ width: 216,
2551
+ height: 60,
2552
+ boxMargin: 10,
2553
+ c4ShapeInRow: 4,
2554
+ nextLinePaddingX: 0,
2555
+ c4BoundaryInRow: 2,
2556
+ personFontSize: 14,
2557
+ personFontFamily: "\"Open Sans\", sans-serif",
2558
+ personFontWeight: "normal",
2559
+ external_personFontSize: 14,
2560
+ external_personFontFamily: "\"Open Sans\", sans-serif",
2561
+ external_personFontWeight: "normal",
2562
+ systemFontSize: 14,
2563
+ systemFontFamily: "\"Open Sans\", sans-serif",
2564
+ systemFontWeight: "normal",
2565
+ external_systemFontSize: 14,
2566
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
2567
+ external_systemFontWeight: "normal",
2568
+ system_dbFontSize: 14,
2569
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
2570
+ system_dbFontWeight: "normal",
2571
+ external_system_dbFontSize: 14,
2572
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
2573
+ external_system_dbFontWeight: "normal",
2574
+ system_queueFontSize: 14,
2575
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
2576
+ system_queueFontWeight: "normal",
2577
+ external_system_queueFontSize: 14,
2578
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
2579
+ external_system_queueFontWeight: "normal",
2580
+ boundaryFontSize: 14,
2581
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
2582
+ boundaryFontWeight: "normal",
2583
+ messageFontSize: 12,
2584
+ messageFontFamily: "\"Open Sans\", sans-serif",
2585
+ messageFontWeight: "normal",
2586
+ containerFontSize: 14,
2587
+ containerFontFamily: "\"Open Sans\", sans-serif",
2588
+ containerFontWeight: "normal",
2589
+ external_containerFontSize: 14,
2590
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
2591
+ external_containerFontWeight: "normal",
2592
+ container_dbFontSize: 14,
2593
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
2594
+ container_dbFontWeight: "normal",
2595
+ external_container_dbFontSize: 14,
2596
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
2597
+ external_container_dbFontWeight: "normal",
2598
+ container_queueFontSize: 14,
2599
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
2600
+ container_queueFontWeight: "normal",
2601
+ external_container_queueFontSize: 14,
2602
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
2603
+ external_container_queueFontWeight: "normal",
2604
+ componentFontSize: 14,
2605
+ componentFontFamily: "\"Open Sans\", sans-serif",
2606
+ componentFontWeight: "normal",
2607
+ external_componentFontSize: 14,
2608
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
2609
+ external_componentFontWeight: "normal",
2610
+ component_dbFontSize: 14,
2611
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
2612
+ component_dbFontWeight: "normal",
2613
+ external_component_dbFontSize: 14,
2614
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
2615
+ external_component_dbFontWeight: "normal",
2616
+ component_queueFontSize: 14,
2617
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
2618
+ component_queueFontWeight: "normal",
2619
+ external_component_queueFontSize: 14,
2620
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
2621
+ external_component_queueFontWeight: "normal",
2622
+ wrap: !0,
2623
+ wrapPadding: 10,
2624
+ person_bg_color: "#08427B",
2625
+ person_border_color: "#073B6F",
2626
+ external_person_bg_color: "#686868",
2627
+ external_person_border_color: "#8A8A8A",
2628
+ system_bg_color: "#1168BD",
2629
+ system_border_color: "#3C7FC0",
2630
+ system_db_bg_color: "#1168BD",
2631
+ system_db_border_color: "#3C7FC0",
2632
+ system_queue_bg_color: "#1168BD",
2633
+ system_queue_border_color: "#3C7FC0",
2634
+ external_system_bg_color: "#999999",
2635
+ external_system_border_color: "#8A8A8A",
2636
+ external_system_db_bg_color: "#999999",
2637
+ external_system_db_border_color: "#8A8A8A",
2638
+ external_system_queue_bg_color: "#999999",
2639
+ external_system_queue_border_color: "#8A8A8A",
2640
+ container_bg_color: "#438DD5",
2641
+ container_border_color: "#3C7FC0",
2642
+ container_db_bg_color: "#438DD5",
2643
+ container_db_border_color: "#3C7FC0",
2644
+ container_queue_bg_color: "#438DD5",
2645
+ container_queue_border_color: "#3C7FC0",
2646
+ external_container_bg_color: "#B3B3B3",
2647
+ external_container_border_color: "#A6A6A6",
2648
+ external_container_db_bg_color: "#B3B3B3",
2649
+ external_container_db_border_color: "#A6A6A6",
2650
+ external_container_queue_bg_color: "#B3B3B3",
2651
+ external_container_queue_border_color: "#A6A6A6",
2652
+ component_bg_color: "#85BBF0",
2653
+ component_border_color: "#78A8D8",
2654
+ component_db_bg_color: "#85BBF0",
2655
+ component_db_border_color: "#78A8D8",
2656
+ component_queue_bg_color: "#85BBF0",
2657
+ component_queue_border_color: "#78A8D8",
2658
+ external_component_bg_color: "#CCCCCC",
2659
+ external_component_border_color: "#BFBFBF",
2660
+ external_component_db_bg_color: "#CCCCCC",
2661
+ external_component_db_border_color: "#BFBFBF",
2662
+ external_component_queue_bg_color: "#CCCCCC",
2663
+ external_component_queue_border_color: "#BFBFBF"
2664
+ },
2665
+ sankey: {
2666
+ useMaxWidth: !0,
2667
+ width: 600,
2668
+ height: 400,
2669
+ linkColor: "gradient",
2670
+ nodeAlignment: "justify",
2671
+ showValues: !0,
2672
+ prefix: "",
2673
+ suffix: ""
2674
+ },
2675
+ block: {
2676
+ useMaxWidth: !0,
2677
+ padding: 8
2678
+ },
2679
+ packet: {
2680
+ useMaxWidth: !0,
2681
+ rowHeight: 32,
2682
+ bitWidth: 32,
2683
+ bitsPerRow: 32,
2684
+ showBits: !0,
2685
+ paddingX: 5,
2686
+ paddingY: 5
2687
+ },
2688
+ treeView: {
2689
+ useMaxWidth: !0,
2690
+ rowIndent: 10,
2691
+ paddingX: 5,
2692
+ paddingY: 5,
2693
+ lineThickness: 1
2694
+ },
2695
+ architecture: {
2696
+ useMaxWidth: !0,
2697
+ padding: 40,
2698
+ iconSize: 80,
2699
+ fontSize: 16,
2700
+ randomize: !1
2701
+ },
2702
+ radar: {
2703
+ useMaxWidth: !0,
2704
+ width: 600,
2705
+ height: 600,
2706
+ marginTop: 50,
2707
+ marginRight: 50,
2708
+ marginBottom: 50,
2709
+ marginLeft: 50,
2710
+ axisScaleFactor: 1,
2711
+ axisLabelFactor: 1.05,
2712
+ curveTension: .17
2713
+ },
2714
+ venn: {
2715
+ useMaxWidth: !0,
2716
+ width: 800,
2717
+ height: 450,
2718
+ padding: 8,
2719
+ useDebugLayout: !1
2720
+ },
2721
+ theme: "default",
2722
+ look: "classic",
2723
+ handDrawnSeed: 0,
2724
+ layout: "dagre",
2725
+ maxTextSize: 5e4,
2726
+ maxEdges: 500,
2727
+ darkMode: !1,
2728
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
2729
+ logLevel: 5,
2730
+ securityLevel: "strict",
2731
+ startOnLoad: !0,
2732
+ arrowMarkerAbsolute: !1,
2733
+ secure: [
2734
+ "secure",
2735
+ "securityLevel",
2736
+ "startOnLoad",
2737
+ "maxTextSize",
2738
+ "suppressErrorRendering",
2739
+ "maxEdges"
2740
+ ],
2741
+ legacyMathML: !1,
2742
+ forceLegacyMathML: !1,
2743
+ deterministicIds: !1,
2744
+ fontSize: 16,
2745
+ markdownAutoWrap: !0,
2746
+ suppressErrorRendering: !1
2747
+ }, yt = {
2748
+ ...q,
2749
+ deterministicIDSeed: void 0,
2750
+ elk: {
2751
+ mergeEdges: !1,
2752
+ nodePlacementStrategy: "BRANDES_KOEPF",
2753
+ forceNodeModelOrder: !1,
2754
+ considerModelOrder: "NODES_AND_EDGES"
2755
+ },
2756
+ themeCSS: void 0,
2757
+ themeVariables: K.default.getThemeVariables(),
2758
+ sequence: {
2759
+ ...q.sequence,
2760
+ messageFont: /* @__PURE__ */ n(function() {
2761
+ return {
2762
+ fontFamily: this.messageFontFamily,
2763
+ fontSize: this.messageFontSize,
2764
+ fontWeight: this.messageFontWeight
2765
+ };
2766
+ }, "messageFont"),
2767
+ noteFont: /* @__PURE__ */ n(function() {
2768
+ return {
2769
+ fontFamily: this.noteFontFamily,
2770
+ fontSize: this.noteFontSize,
2771
+ fontWeight: this.noteFontWeight
2772
+ };
2773
+ }, "noteFont"),
2774
+ actorFont: /* @__PURE__ */ n(function() {
2775
+ return {
2776
+ fontFamily: this.actorFontFamily,
2777
+ fontSize: this.actorFontSize,
2778
+ fontWeight: this.actorFontWeight
2779
+ };
2780
+ }, "actorFont")
2781
+ },
2782
+ class: { hideEmptyMembersBox: !1 },
2783
+ gantt: {
2784
+ ...q.gantt,
2785
+ tickInterval: void 0,
2786
+ useWidth: void 0
2787
+ },
2788
+ c4: {
2789
+ ...q.c4,
2790
+ useWidth: void 0,
2791
+ personFont: /* @__PURE__ */ n(function() {
2792
+ return {
2793
+ fontFamily: this.personFontFamily,
2794
+ fontSize: this.personFontSize,
2795
+ fontWeight: this.personFontWeight
2796
+ };
2797
+ }, "personFont"),
2798
+ flowchart: {
2799
+ ...q.flowchart,
2800
+ inheritDir: !1
2801
+ },
2802
+ external_personFont: /* @__PURE__ */ n(function() {
2803
+ return {
2804
+ fontFamily: this.external_personFontFamily,
2805
+ fontSize: this.external_personFontSize,
2806
+ fontWeight: this.external_personFontWeight
2807
+ };
2808
+ }, "external_personFont"),
2809
+ systemFont: /* @__PURE__ */ n(function() {
2810
+ return {
2811
+ fontFamily: this.systemFontFamily,
2812
+ fontSize: this.systemFontSize,
2813
+ fontWeight: this.systemFontWeight
2814
+ };
2815
+ }, "systemFont"),
2816
+ external_systemFont: /* @__PURE__ */ n(function() {
2817
+ return {
2818
+ fontFamily: this.external_systemFontFamily,
2819
+ fontSize: this.external_systemFontSize,
2820
+ fontWeight: this.external_systemFontWeight
2821
+ };
2822
+ }, "external_systemFont"),
2823
+ system_dbFont: /* @__PURE__ */ n(function() {
2824
+ return {
2825
+ fontFamily: this.system_dbFontFamily,
2826
+ fontSize: this.system_dbFontSize,
2827
+ fontWeight: this.system_dbFontWeight
2828
+ };
2829
+ }, "system_dbFont"),
2830
+ external_system_dbFont: /* @__PURE__ */ n(function() {
2831
+ return {
2832
+ fontFamily: this.external_system_dbFontFamily,
2833
+ fontSize: this.external_system_dbFontSize,
2834
+ fontWeight: this.external_system_dbFontWeight
2835
+ };
2836
+ }, "external_system_dbFont"),
2837
+ system_queueFont: /* @__PURE__ */ n(function() {
2838
+ return {
2839
+ fontFamily: this.system_queueFontFamily,
2840
+ fontSize: this.system_queueFontSize,
2841
+ fontWeight: this.system_queueFontWeight
2842
+ };
2843
+ }, "system_queueFont"),
2844
+ external_system_queueFont: /* @__PURE__ */ n(function() {
2845
+ return {
2846
+ fontFamily: this.external_system_queueFontFamily,
2847
+ fontSize: this.external_system_queueFontSize,
2848
+ fontWeight: this.external_system_queueFontWeight
2849
+ };
2850
+ }, "external_system_queueFont"),
2851
+ containerFont: /* @__PURE__ */ n(function() {
2852
+ return {
2853
+ fontFamily: this.containerFontFamily,
2854
+ fontSize: this.containerFontSize,
2855
+ fontWeight: this.containerFontWeight
2856
+ };
2857
+ }, "containerFont"),
2858
+ external_containerFont: /* @__PURE__ */ n(function() {
2859
+ return {
2860
+ fontFamily: this.external_containerFontFamily,
2861
+ fontSize: this.external_containerFontSize,
2862
+ fontWeight: this.external_containerFontWeight
2863
+ };
2864
+ }, "external_containerFont"),
2865
+ container_dbFont: /* @__PURE__ */ n(function() {
2866
+ return {
2867
+ fontFamily: this.container_dbFontFamily,
2868
+ fontSize: this.container_dbFontSize,
2869
+ fontWeight: this.container_dbFontWeight
2870
+ };
2871
+ }, "container_dbFont"),
2872
+ external_container_dbFont: /* @__PURE__ */ n(function() {
2873
+ return {
2874
+ fontFamily: this.external_container_dbFontFamily,
2875
+ fontSize: this.external_container_dbFontSize,
2876
+ fontWeight: this.external_container_dbFontWeight
2877
+ };
2878
+ }, "external_container_dbFont"),
2879
+ container_queueFont: /* @__PURE__ */ n(function() {
2880
+ return {
2881
+ fontFamily: this.container_queueFontFamily,
2882
+ fontSize: this.container_queueFontSize,
2883
+ fontWeight: this.container_queueFontWeight
2884
+ };
2885
+ }, "container_queueFont"),
2886
+ external_container_queueFont: /* @__PURE__ */ n(function() {
2887
+ return {
2888
+ fontFamily: this.external_container_queueFontFamily,
2889
+ fontSize: this.external_container_queueFontSize,
2890
+ fontWeight: this.external_container_queueFontWeight
2891
+ };
2892
+ }, "external_container_queueFont"),
2893
+ componentFont: /* @__PURE__ */ n(function() {
2894
+ return {
2895
+ fontFamily: this.componentFontFamily,
2896
+ fontSize: this.componentFontSize,
2897
+ fontWeight: this.componentFontWeight
2898
+ };
2899
+ }, "componentFont"),
2900
+ external_componentFont: /* @__PURE__ */ n(function() {
2901
+ return {
2902
+ fontFamily: this.external_componentFontFamily,
2903
+ fontSize: this.external_componentFontSize,
2904
+ fontWeight: this.external_componentFontWeight
2905
+ };
2906
+ }, "external_componentFont"),
2907
+ component_dbFont: /* @__PURE__ */ n(function() {
2908
+ return {
2909
+ fontFamily: this.component_dbFontFamily,
2910
+ fontSize: this.component_dbFontSize,
2911
+ fontWeight: this.component_dbFontWeight
2912
+ };
2913
+ }, "component_dbFont"),
2914
+ external_component_dbFont: /* @__PURE__ */ n(function() {
2915
+ return {
2916
+ fontFamily: this.external_component_dbFontFamily,
2917
+ fontSize: this.external_component_dbFontSize,
2918
+ fontWeight: this.external_component_dbFontWeight
2919
+ };
2920
+ }, "external_component_dbFont"),
2921
+ component_queueFont: /* @__PURE__ */ n(function() {
2922
+ return {
2923
+ fontFamily: this.component_queueFontFamily,
2924
+ fontSize: this.component_queueFontSize,
2925
+ fontWeight: this.component_queueFontWeight
2926
+ };
2927
+ }, "component_queueFont"),
2928
+ external_component_queueFont: /* @__PURE__ */ n(function() {
2929
+ return {
2930
+ fontFamily: this.external_component_queueFontFamily,
2931
+ fontSize: this.external_component_queueFontSize,
2932
+ fontWeight: this.external_component_queueFontWeight
2933
+ };
2934
+ }, "external_component_queueFont"),
2935
+ boundaryFont: /* @__PURE__ */ n(function() {
2936
+ return {
2937
+ fontFamily: this.boundaryFontFamily,
2938
+ fontSize: this.boundaryFontSize,
2939
+ fontWeight: this.boundaryFontWeight
2940
+ };
2941
+ }, "boundaryFont"),
2942
+ messageFont: /* @__PURE__ */ n(function() {
2943
+ return {
2944
+ fontFamily: this.messageFontFamily,
2945
+ fontSize: this.messageFontSize,
2946
+ fontWeight: this.messageFontWeight
2947
+ };
2948
+ }, "messageFont")
2949
+ },
2950
+ pie: {
2951
+ ...q.pie,
2952
+ useWidth: 984
2953
+ },
2954
+ xyChart: {
2955
+ ...q.xyChart,
2956
+ useWidth: void 0
2957
+ },
2958
+ requirement: {
2959
+ ...q.requirement,
2960
+ useWidth: void 0
2961
+ },
2962
+ packet: { ...q.packet },
2963
+ treeView: {
2964
+ ...q.treeView,
2965
+ useWidth: void 0
2966
+ },
2967
+ radar: { ...q.radar },
2968
+ ishikawa: { ...q.ishikawa },
2969
+ treemap: {
2970
+ useMaxWidth: !0,
2971
+ padding: 10,
2972
+ diagramPadding: 8,
2973
+ showValues: !0,
2974
+ nodeWidth: 100,
2975
+ nodeHeight: 40,
2976
+ borderWidth: 1,
2977
+ valueFontSize: 12,
2978
+ labelFontSize: 14,
2979
+ valueFormat: ","
2980
+ },
2981
+ venn: { ...q.venn }
2982
+ }, bt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2983
+ ...n,
2984
+ t + r,
2985
+ ...bt(e[r], "")
2986
+ ] : [...n, t + r], []), "keyify"), xt = new Set(bt(yt, "")), St = yt, Ct = /* @__PURE__ */ n((e) => {
2987
+ if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2988
+ if (Array.isArray(e)) {
2989
+ e.forEach((e) => Ct(e));
2990
+ return;
2991
+ }
2992
+ for (let n of Object.keys(e)) {
2993
+ if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !xt.has(n) || e[n] == null) {
2994
+ t.debug("sanitize deleting key: ", n), delete e[n];
2995
+ continue;
2996
+ }
2997
+ if (typeof e[n] == "object") {
2998
+ t.debug("sanitizing object", n), Ct(e[n]);
2999
+ continue;
3000
+ }
3001
+ for (let r of [
3002
+ "themeCSS",
3003
+ "fontFamily",
3004
+ "altFontFamily"
3005
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = wt(e[n]));
3006
+ }
3007
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3008
+ let n = e.themeVariables[t];
3009
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3010
+ }
3011
+ t.debug("After sanitization", e);
3012
+ }
3013
+ }, "sanitizeDirective"), wt = /* @__PURE__ */ n((e) => {
3014
+ let t = 0, n = 0;
3015
+ for (let r of e) {
3016
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3017
+ r === "{" ? t++ : r === "}" && n++;
3018
+ }
3019
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3020
+ }, "sanitizeCss"), J = Object.freeze(St), Y = /* @__PURE__ */ n((e) => !(e === !1 || [
3021
+ "false",
3022
+ "null",
3023
+ "0"
3024
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), X = z({}, J), Tt, Z = [], Et = z({}, J), Q = /* @__PURE__ */ n((e, t) => {
3025
+ let n = z({}, e), r = {};
3026
+ for (let e of t) Nt(e), r = z(r, e);
3027
+ if (n = z(n, r), r.theme && r.theme in K) {
3028
+ let e = z(z({}, Tt).themeVariables || {}, r.themeVariables);
3029
+ n.theme && n.theme in K && (n.themeVariables = K[n.theme].getThemeVariables(e));
3030
+ }
3031
+ return Et = n, zt(Et), Et;
3032
+ }, "updateCurrentConfig"), Dt = /* @__PURE__ */ n((e) => (X = z({}, J), X = z(X, e), e.theme && K[e.theme] && (X.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), Q(X, Z), X), "setSiteConfig"), Ot = /* @__PURE__ */ n((e) => {
3033
+ Tt = z({}, e);
3034
+ }, "saveConfigFromInitialize"), kt = /* @__PURE__ */ n((e) => (X = z(X, e), Q(X, Z), X), "updateSiteConfig"), At = /* @__PURE__ */ n(() => z({}, X), "getSiteConfig"), jt = /* @__PURE__ */ n((e) => (zt(e), z(Et, e), Mt()), "setConfig"), Mt = /* @__PURE__ */ n(() => z({}, Et), "getConfig"), Nt = /* @__PURE__ */ n((e) => {
3035
+ e && (["secure", ...X.secure ?? []].forEach((n) => {
3036
+ Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3037
+ }), Object.keys(e).forEach((t) => {
3038
+ t.startsWith("__") && delete e[t];
3039
+ }), Object.keys(e).forEach((t) => {
3040
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Nt(e[t]);
3041
+ }));
3042
+ }, "sanitize"), Pt = /* @__PURE__ */ n((e) => {
3043
+ Ct(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3044
+ ...e.themeVariables,
3045
+ fontFamily: e.fontFamily
3046
+ }), Z.push(e), Q(X, Z);
3047
+ }, "addDirective"), Ft = /* @__PURE__ */ n((e = X) => {
3048
+ Z = [], Q(e, Z);
3049
+ }, "reset"), It = {
3050
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3051
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3052
+ }, Lt = {}, Rt = /* @__PURE__ */ n((e) => {
3053
+ Lt[e] || (t.warn(It[e]), Lt[e] = !0);
3054
+ }, "issueWarning"), zt = /* @__PURE__ */ n((e) => {
3055
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Rt("LAZY_LOAD_DEPRECATED");
3056
+ }, "checkConfig"), Bt = /* @__PURE__ */ n(() => {
3057
+ let e = {};
3058
+ Tt && (e = z(e, Tt));
3059
+ for (let t of Z) e = z(e, t);
3060
+ return e;
3061
+ }, "getUserDefinedConfig"), Vt = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && Rt("FLOWCHART_HTML_LABELS_DEPRECATED"), Y(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Ht = /<br\s*\/?>/gi, Ut = /* @__PURE__ */ n((e) => e ? Qt(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Wt = /* @__PURE__ */ (() => {
3062
+ let e = !1;
3063
+ return () => {
3064
+ e ||= (Gt(), !0);
3065
+ };
3066
+ })();
3067
+ function Gt() {
3068
+ let e = "data-temp-href-target";
3069
+ b.addHook("beforeSanitizeAttributes", (t) => {
3070
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3071
+ }), b.addHook("afterSanitizeAttributes", (t) => {
3072
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3073
+ });
3074
+ }
3075
+ n(Gt, "setupDompurifyHooks");
3076
+ var Kt = /* @__PURE__ */ n((e) => (Wt(), b.sanitize(e)), "removeScript"), qt = /* @__PURE__ */ n((e, t) => {
3077
+ if (Vt(t)) {
3078
+ let n = t.securityLevel;
3079
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = Kt(e) : n !== "loose" && (e = Qt(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Zt(e));
3080
+ }
3081
+ return e;
3082
+ }, "sanitizeMore"), $ = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? b.sanitize(qt(e, t), t.dompurifyConfig).toString() : b.sanitize(qt(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Jt = /* @__PURE__ */ n((e, t) => typeof e == "string" ? $(e, t) : e.flat().map((e) => $(e, t)), "sanitizeTextOrArray"), Yt = /* @__PURE__ */ n((e) => Ht.test(e), "hasBreaks"), Xt = /* @__PURE__ */ n((e) => e.split(Ht), "splitBreaks"), Zt = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Qt = /* @__PURE__ */ n((e) => e.replace(Ht, "#br#"), "breakToPlaceholder"), $t = /* @__PURE__ */ n((e) => {
3083
+ let t = "";
3084
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3085
+ }, "getUrl"), en = /* @__PURE__ */ n(function(...e) {
3086
+ let t = e.filter((e) => !isNaN(e));
3087
+ return Math.max(...t);
3088
+ }, "getMax"), tn = /* @__PURE__ */ n(function(...e) {
3089
+ let t = e.filter((e) => !isNaN(e));
3090
+ return Math.min(...t);
3091
+ }, "getMin"), nn = /* @__PURE__ */ n(function(e) {
3092
+ let t = e.split(/(,)/), n = [];
3093
+ for (let e = 0; e < t.length; e++) {
3094
+ let r = t[e];
3095
+ if (r === "," && e > 0 && e + 1 < t.length) {
3096
+ let i = t[e - 1], a = t[e + 1];
3097
+ an(i, a) && (r = i + "," + a, e++, n.pop());
3098
+ }
3099
+ n.push(on(r));
3100
+ }
3101
+ return n.join("");
3102
+ }, "parseGenericTypes"), rn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), an = /* @__PURE__ */ n((e, t) => {
3103
+ let n = rn(e, "~"), r = rn(t, "~");
3104
+ return n === 1 && r === 1;
3105
+ }, "shouldCombineSets"), on = /* @__PURE__ */ n((e) => {
3106
+ let t = rn(e, "~"), n = !1;
3107
+ if (t <= 1) return e;
3108
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3109
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3110
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3111
+ return n && r.unshift("~"), r.join("");
3112
+ }, "processSet"), sn = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), cn = /\$\$(.*)\$\$/g, ln = /* @__PURE__ */ n((e) => (e.match(cn)?.length ?? 0) > 0, "hasKatex"), un = /* @__PURE__ */ n(async (e, t) => {
3113
+ let n = document.createElement("div");
3114
+ n.innerHTML = await fn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3115
+ let r = {
3116
+ width: n.clientWidth,
3117
+ height: n.clientHeight
3118
+ };
3119
+ return n.remove(), r;
3120
+ }, "calculateMathMLDimensions"), dn = /* @__PURE__ */ n(async (e, t) => {
3121
+ if (!ln(e)) return e;
3122
+ if (!(sn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(cn, "MathML is unsupported in this environment.");
3123
+ {
3124
+ let { default: n } = await import("./katex-Du5WiYIy.js"), r = t.forceLegacyMathML || !sn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3125
+ return e.split(Ht).map((e) => ln(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(cn, (e, t) => n.renderToString(t, {
3126
+ throwOnError: !0,
3127
+ displayMode: !0,
3128
+ output: r
3129
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3130
+ }
3131
+ return e.replace(cn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3132
+ }, "renderKatexUnsanitized"), fn = /* @__PURE__ */ n(async (e, t) => $(await dn(e, t), t), "renderKatexSanitized"), pn = {
3133
+ getRows: Ut,
3134
+ sanitizeText: $,
3135
+ sanitizeTextOrArray: Jt,
3136
+ hasBreaks: Yt,
3137
+ splitBreaks: Xt,
3138
+ lineBreakRegex: Ht,
3139
+ removeScript: Kt,
3140
+ getUrl: $t,
3141
+ evaluate: Y,
3142
+ getMax: en,
3143
+ getMin: tn
3144
+ }, mn = /* @__PURE__ */ n(function(e, t) {
3145
+ for (let n of t) e.attr(n[0], n[1]);
3146
+ }, "d3Attrs"), hn = /* @__PURE__ */ n(function(e, t, n) {
3147
+ let r = /* @__PURE__ */ new Map();
3148
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3149
+ }, "calculateSvgSizeAttrs"), gn = /* @__PURE__ */ n(function(e, t, n, r) {
3150
+ mn(e, hn(t, n, r));
3151
+ }, "configureSvgSize"), _n = /* @__PURE__ */ n(function(e, n, r, i) {
3152
+ let a = n.node().getBBox(), o = a.width, s = a.height;
3153
+ t.info(`SVG bounds: ${o}x${s}`, a);
3154
+ let c = 0, l = 0;
3155
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), gn(n, l, c, i);
3156
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3157
+ n.attr("viewBox", u);
3158
+ }, "setupGraphViewbox"), vn = {}, yn = /* @__PURE__ */ n((e, n, r, i) => {
3159
+ let a = "";
3160
+ return e in vn && vn[e] ? a = vn[e]({
3161
+ ...r,
3162
+ svgId: i
3163
+ }) : t.warn(`No theme found for ${e}`), ` & {
3164
+ font-family: ${r.fontFamily};
3165
+ font-size: ${r.fontSize};
3166
+ fill: ${r.textColor}
3167
+ }
3168
+ @keyframes edge-animation-frame {
3169
+ from {
3170
+ stroke-dashoffset: 0;
3171
+ }
3172
+ }
3173
+ @keyframes dash {
3174
+ to {
3175
+ stroke-dashoffset: 0;
3176
+ }
3177
+ }
3178
+ & .edge-animation-slow {
3179
+ stroke-dasharray: 9,5 !important;
3180
+ stroke-dashoffset: 900;
3181
+ animation: dash 50s linear infinite;
3182
+ stroke-linecap: round;
3183
+ }
3184
+ & .edge-animation-fast {
3185
+ stroke-dasharray: 9,5 !important;
3186
+ stroke-dashoffset: 900;
3187
+ animation: dash 20s linear infinite;
3188
+ stroke-linecap: round;
3189
+ }
3190
+ /* Classes common for multiple diagrams */
3191
+
3192
+ & .error-icon {
3193
+ fill: ${r.errorBkgColor};
3194
+ }
3195
+ & .error-text {
3196
+ fill: ${r.errorTextColor};
3197
+ stroke: ${r.errorTextColor};
3198
+ }
3199
+
3200
+ & .edge-thickness-normal {
3201
+ stroke-width: ${r.strokeWidth ?? 1}px;
3202
+ }
3203
+ & .edge-thickness-thick {
3204
+ stroke-width: 3.5px
3205
+ }
3206
+ & .edge-pattern-solid {
3207
+ stroke-dasharray: 0;
3208
+ }
3209
+ & .edge-thickness-invisible {
3210
+ stroke-width: 0;
3211
+ fill: none;
3212
+ }
3213
+ & .edge-pattern-dashed{
3214
+ stroke-dasharray: 3;
3215
+ }
3216
+ .edge-pattern-dotted {
3217
+ stroke-dasharray: 2;
3218
+ }
3219
+
3220
+ & .marker {
3221
+ fill: ${r.lineColor};
3222
+ stroke: ${r.lineColor};
3223
+ }
3224
+ & .marker.cross {
3225
+ stroke: ${r.lineColor};
3226
+ }
3227
+
3228
+ & svg {
3229
+ font-family: ${r.fontFamily};
3230
+ font-size: ${r.fontSize};
3231
+ }
3232
+ & p {
3233
+ margin: 0
3234
+ }
3235
+
3236
+ ${a}
3237
+ .node .neo-node {
3238
+ stroke: ${r.nodeBorder};
3239
+ }
3240
+
3241
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3242
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3243
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3244
+ }
3245
+
3246
+
3247
+ [data-look="neo"].node path {
3248
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3249
+ stroke-width: ${r.strokeWidth ?? 1}px;
3250
+ }
3251
+
3252
+ [data-look="neo"].node .outer-path {
3253
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3254
+ }
3255
+
3256
+ [data-look="neo"].node .neo-line path {
3257
+ stroke: ${r.nodeBorder};
3258
+ filter: none;
3259
+ }
3260
+
3261
+ [data-look="neo"].node circle{
3262
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3263
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3264
+ }
3265
+
3266
+ [data-look="neo"].node circle .state-start{
3267
+ fill: #000000;
3268
+ }
3269
+
3270
+ [data-look="neo"].icon-shape .icon {
3271
+ fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3272
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3273
+ }
3274
+
3275
+ [data-look="neo"].icon-shape .icon-neo path {
3276
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3277
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3278
+ }
3279
+
3280
+ ${n}
3281
+ `;
3282
+ }, "getStyles"), bn = /* @__PURE__ */ n((e, t) => {
3283
+ t !== void 0 && (vn[e] = t);
3284
+ }, "addStylesForDiagram"), xn = yn, Sn = {};
3285
+ r(Sn, {
3286
+ clear: () => Dn,
3287
+ getAccDescription: () => jn,
3288
+ getAccTitle: () => kn,
3289
+ getDiagramTitle: () => Nn,
3290
+ setAccDescription: () => An,
3291
+ setAccTitle: () => On,
3292
+ setDiagramTitle: () => Mn
3293
+ });
3294
+ var Cn = "", wn = "", Tn = "", En = /* @__PURE__ */ n((e) => $(e, Mt()), "sanitizeText"), Dn = /* @__PURE__ */ n(() => {
3295
+ Cn = "", Tn = "", wn = "";
3296
+ }, "clear"), On = /* @__PURE__ */ n((e) => {
3297
+ Cn = En(e).replace(/^\s+/g, "");
3298
+ }, "setAccTitle"), kn = /* @__PURE__ */ n(() => Cn, "getAccTitle"), An = /* @__PURE__ */ n((e) => {
3299
+ Tn = En(e).replace(/\n\s+/g, "\n");
3300
+ }, "setAccDescription"), jn = /* @__PURE__ */ n(() => Tn, "getAccDescription"), Mn = /* @__PURE__ */ n((e) => {
3301
+ wn = En(e);
3302
+ }, "setDiagramTitle"), Nn = /* @__PURE__ */ n(() => wn, "getDiagramTitle"), Pn = t, Fn = e, In = Mt, Ln = jt, Rn = J, zn = /* @__PURE__ */ n((e) => $(e, In()), "sanitizeText"), Bn = _n, Vn = /* @__PURE__ */ n(() => Sn, "getCommonDb"), Hn = {}, Un = /* @__PURE__ */ n((e, t, n) => {
3303
+ Hn[e] && Pn.warn(`Diagram with id ${e} already registered. Overwriting.`), Hn[e] = t, n && $e(e, n), bn(e, t.styles), t.injectUtils?.(Pn, Fn, In, zn, Bn, Vn(), () => {});
3304
+ }, "registerDiagram"), Wn = /* @__PURE__ */ n((e) => {
3305
+ if (e in Hn) return Hn[e];
3306
+ throw new Gn(e);
3307
+ }, "getDiagram"), Gn = class extends Error {
3308
+ static {
3309
+ n(this, "DiagramNotFoundError");
3310
+ }
3311
+ constructor(e) {
3312
+ super(`Diagram ${e} not found.`);
3313
+ }
3314
+ };
3315
+ //#endregion
3316
+ export { j as $, Ht as A, An as B, Nn as C, $t as D, it as E, Ft as F, Dt as G, jt as H, Ct as I, xn as J, _n as K, $ as L, Un as M, L as N, Bt as O, fn as P, M as Q, zn as R, et as S, At as T, Ln as U, On as V, Mn as W, kt as X, K as Y, N as Z, jn as _, Dn as a, In as b, gn as c, St as d, A as et, Qe as f, Je as g, Y as h, un as i, b as it, nn as j, ln as k, J as l, Ye as m, Pt as n, D as nt, Sn as o, I as p, Bn as q, z as r, x as rt, pn as s, Ze as t, O as tt, Rn as u, kn as v, Vt as w, Wn as x, Mt as y, Ot as z };