@sme.up/ketchup2 2.5.0 → 2.7.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 (379) hide show
  1. package/dist/{arc-D80gVCcI.js → arc-CVbkjF8U.js} +2 -2
  2. package/dist/{arc-MUYNnJxV.cjs → arc-w3BipdfE.cjs} +1 -1
  3. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +1 -0
  4. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +3 -0
  5. package/dist/{architectureDiagram-3BPJPVTR-EFK4DMha.js → architectureDiagram-3BPJPVTR-B6VZAtZU.js} +10 -10
  6. package/dist/{architectureDiagram-3BPJPVTR-BrmPrClJ.cjs → architectureDiagram-3BPJPVTR-DlnXl9d5.cjs} +2 -2
  7. package/dist/array-DZSRzHA_.cjs +1 -0
  8. package/dist/basic-components/autocomplete/autocomplete-types.d.ts +2 -1
  9. package/dist/basic-components/autocomplete/autocomplete-types.d.ts.map +1 -1
  10. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  11. package/dist/basic-components/barcode/barcode.d.ts.map +1 -1
  12. package/dist/basic-components/button/button-utils.d.ts.map +1 -1
  13. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  14. package/dist/basic-components/image/image.d.ts.map +1 -1
  15. package/dist/basic-components/image-cell/image-cell-types.d.ts +4 -0
  16. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  17. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  18. package/dist/basic-components/password/password.d.ts.map +1 -1
  19. package/dist/basic-components/qr-code/qr-code-types.d.ts +9 -2
  20. package/dist/basic-components/qr-code/qr-code-types.d.ts.map +1 -1
  21. package/dist/basic-components/qr-code/qr-code.d.ts.map +1 -1
  22. package/dist/basic-components/textfield/textfield-types.d.ts +1 -0
  23. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  24. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  25. package/dist/{blockDiagram-GPEHLZMM-C3UgY0Z5.js → blockDiagram-GPEHLZMM-BohmRoCC.js} +21 -19
  26. package/dist/{blockDiagram-GPEHLZMM-CuzoKhJT.cjs → blockDiagram-GPEHLZMM-rfyR2Ffl.cjs} +1 -1
  27. package/dist/{c4Diagram-AAUBKEIU-klnmEOUo.js → c4Diagram-AAUBKEIU-CdT8VCbo.js} +5 -5
  28. package/dist/{c4Diagram-AAUBKEIU-DU8uXbgK.cjs → c4Diagram-AAUBKEIU-Du1vqJYZ.cjs} +1 -1
  29. package/dist/{channel-BbRDdbmM.js → channel-C-LAmObA.js} +1 -1
  30. package/dist/channel-DJpMBAs-.cjs +1 -0
  31. package/dist/{chunk-2J33WTMH-EmvF7iYC.js → chunk-2J33WTMH-BMqA-riF.js} +2 -2
  32. package/dist/{chunk-2J33WTMH-PlcpVW8G.cjs → chunk-2J33WTMH-BQs9SXq8.cjs} +1 -1
  33. package/dist/{chunk-3OPIFGDE-CT5oNC5X.cjs → chunk-3OPIFGDE-Bk_ByTBh.cjs} +2 -2
  34. package/dist/{chunk-3OPIFGDE-C7wE5oN7.js → chunk-3OPIFGDE-Bs2mXISw.js} +7 -7
  35. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +1 -0
  36. package/dist/{chunk-4BX2VUAB-BO1KRGb1.js → chunk-4BX2VUAB-zglw1T4d.js} +1 -1
  37. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +1 -0
  38. package/dist/{chunk-55IACEB6-b_Ivgrk-.js → chunk-55IACEB6-CmKDx-YO.js} +1 -1
  39. package/dist/{chunk-5ZQYHXKU-C4uam08j.js → chunk-5ZQYHXKU-B_nOC8-n.js} +3 -3
  40. package/dist/{chunk-5ZQYHXKU-BMnKD7Zq.cjs → chunk-5ZQYHXKU-DMrStm4M.cjs} +2 -2
  41. package/dist/{chunk-727SXJPM-Dof0vDVV.js → chunk-727SXJPM-CDeV7mmg.js} +11 -9
  42. package/dist/{chunk-727SXJPM-DTmqhRKX.cjs → chunk-727SXJPM-Dj8nsm0O.cjs} +3 -3
  43. package/dist/{chunk-AQP2D5EJ-DdWeFQ4O.cjs → chunk-AQP2D5EJ-CYuEYK6i.cjs} +2 -2
  44. package/dist/{chunk-AQP2D5EJ-N9ii4fwJ.js → chunk-AQP2D5EJ-vJ_pitKp.js} +6 -6
  45. package/dist/{chunk-BSJP7CBP-CaeBFqNU.cjs → chunk-BSJP7CBP-CSCICPww.cjs} +1 -1
  46. package/dist/{chunk-BSJP7CBP-Bx5APwBA.js → chunk-BSJP7CBP-YsQACkyC.js} +1 -1
  47. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +124 -0
  48. package/dist/{chunk-CSCIHK7Q-9WKhcDqw.js → chunk-CSCIHK7Q-BEk3YcEH.js} +954 -772
  49. package/dist/{chunk-FMBD7UC4-CiO_59ls.cjs → chunk-FMBD7UC4-BIKI8zae.cjs} +2 -2
  50. package/dist/{chunk-FMBD7UC4-BbggSGOg.js → chunk-FMBD7UC4-BURT0llY.js} +1 -1
  51. package/dist/{chunk-KSCS5N6A-BY1s4eGg.js → chunk-KSCS5N6A-BemQomLE.js} +10 -10
  52. package/dist/{chunk-KSCS5N6A-DO8jEi0y.cjs → chunk-KSCS5N6A-DsN7gJEf.cjs} +2 -2
  53. package/dist/{chunk-L5ZTLDWV-D3UwMopa.js → chunk-L5ZTLDWV-BQCNoMVG.js} +3 -3
  54. package/dist/{chunk-L5ZTLDWV-BE9udiOh.cjs → chunk-L5ZTLDWV-BbLRyKcx.cjs} +1 -1
  55. package/dist/{chunk-LZXEDZCA-KzBFuWPU.js → chunk-LZXEDZCA-J9irjuVP.js} +9 -9
  56. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +1 -0
  57. package/dist/{chunk-ND2GUHAM-DdBSZTft.cjs → chunk-ND2GUHAM-1o9Sjy2_.cjs} +1 -1
  58. package/dist/{chunk-ND2GUHAM-CHTke4K8.js → chunk-ND2GUHAM-Ca12h-m9.js} +3 -3
  59. package/dist/{chunk-NNHCCRGN-D_orSz6n.js → chunk-NNHCCRGN-BB1q5NkR.js} +32 -16
  60. package/dist/{chunk-NNHCCRGN-aKMHXBzL.cjs → chunk-NNHCCRGN-qV8bfiMQ.cjs} +13 -13
  61. package/dist/{chunk-NZK2D7GU-BVOINLmx.js → chunk-NZK2D7GU-CPxdSJTy.js} +2 -2
  62. package/dist/{chunk-NZK2D7GU-_twqedIe.cjs → chunk-NZK2D7GU-CRneGIrP.cjs} +1 -1
  63. package/dist/{chunk-O5CBEL6O-CDvi2oZo.cjs → chunk-O5CBEL6O-Cd4Z5Dy9.cjs} +2 -2
  64. package/dist/{chunk-O5CBEL6O-VsMF4aZB.js → chunk-O5CBEL6O-DbWeP4Au.js} +3 -3
  65. package/dist/{chunk-QZHKN3VN-CHjRGMI2.cjs → chunk-QZHKN3VN-ZJ4hLUIw.cjs} +1 -1
  66. package/dist/{chunk-QZHKN3VN-DCddt14Q.js → chunk-QZHKN3VN-lYfzaOt9.js} +1 -1
  67. package/dist/{chunk-WU5MYG2G-mQn7Wt-i.js → chunk-WU5MYG2G-DuCEb9G-.js} +2 -2
  68. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +1 -0
  69. package/dist/{chunk-XPW4576I-D_mwgMVU.cjs → chunk-XPW4576I-BybfDrup.cjs} +2 -2
  70. package/dist/{chunk-XPW4576I-BCowsgDU.js → chunk-XPW4576I-D3DQ47oC.js} +1 -1
  71. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +29 -0
  72. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +1 -0
  73. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +29 -0
  74. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +1 -0
  75. package/dist/components/box-list/box-list.d.ts.map +1 -1
  76. package/dist/components/data-table/columns/useColumnWidths.d.ts +6 -1
  77. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  78. package/dist/components/data-table/data-table-types.d.ts +56 -3
  79. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  80. package/dist/components/data-table/data-table.d.ts.map +1 -1
  81. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  82. package/dist/components/data-table/header/header-types.d.ts +7 -3
  83. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  84. package/dist/components/data-table/sorting/parseDftSort.d.ts +14 -0
  85. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -0
  86. package/dist/components/data-table/sorting/parseDftSort.test.d.ts +2 -0
  87. package/dist/components/data-table/sorting/parseDftSort.test.d.ts.map +1 -0
  88. package/dist/components/data-table/sorting/sortTable-utils.d.ts +8 -9
  89. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  90. package/dist/components/data-table/sorting/useSortableTable.d.ts +3 -5
  91. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  92. package/dist/components/data-table/state/datatable-state.d.ts +1 -0
  93. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  94. package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
  95. package/dist/components/input-panel/assets/data.d.ts +1 -0
  96. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  97. package/dist/components/input-panel/input-panel-types.d.ts +5 -0
  98. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  99. package/dist/components/input-panel/input-panel-utils.d.ts +1 -0
  100. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  101. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  102. package/dist/components/pdf/pdf-utils.d.ts +1 -1
  103. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  104. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  105. package/dist/components/workflow-designer/workflow-designer-types.d.ts +76 -0
  106. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -0
  107. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +7 -0
  108. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -0
  109. package/dist/components/workflow-designer/workflow-designer.d.ts +14 -0
  110. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -0
  111. package/dist/{cose-bilkent-S5V4N54A-Bfb7U01p.js → cose-bilkent-S5V4N54A-BhA3VnPW.js} +2 -2
  112. package/dist/{cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs → cose-bilkent-S5V4N54A-D7fhWOP4.cjs} +1 -1
  113. package/dist/{cytoscape.esm-VShrX2U1.js → cytoscape.esm-BU21wl3m.js} +17 -17
  114. package/dist/{cytoscape.esm-BzblyxzZ.cjs → cytoscape.esm-CElDUMAx.cjs} +4 -4
  115. package/dist/{dagre-Cg4CV48I.js → dagre-3-RnF0EK.js} +1 -1
  116. package/dist/{dagre-CC68z3y6.cjs → dagre-B2BBwKNb.cjs} +1 -1
  117. package/dist/{dagre-BM42HDAG-D87Rv2R4.js → dagre-BM42HDAG-DfpR5Mml.js} +11 -11
  118. package/dist/{dagre-BM42HDAG-BhbA1R8l.cjs → dagre-BM42HDAG-kORxgFz_.cjs} +1 -1
  119. package/dist/{defaultLocale-Bj_Ndo9V.cjs → defaultLocale-u9yUoUmE.cjs} +1 -1
  120. package/dist/{diagram-2AECGRRQ-OSYCK0tv.js → diagram-2AECGRRQ-23vM90dy.js} +8 -8
  121. package/dist/{diagram-2AECGRRQ-C6vI3yau.cjs → diagram-2AECGRRQ-B0IEGKjr.cjs} +1 -1
  122. package/dist/{diagram-5GNKFQAL-DnquluB9.js → diagram-5GNKFQAL-BEY9x4us.js} +9 -9
  123. package/dist/{diagram-5GNKFQAL-BS9rRMAe.cjs → diagram-5GNKFQAL-vb6e35PR.cjs} +1 -1
  124. package/dist/{diagram-KO2AKTUF-CjA_KTJj.cjs → diagram-KO2AKTUF-9V_zu-2x.cjs} +2 -2
  125. package/dist/{diagram-KO2AKTUF-CFi6eQYd.js → diagram-KO2AKTUF-BEnEQF6b.js} +8 -8
  126. package/dist/{diagram-LMA3HP47-DBwSTp2j.cjs → diagram-LMA3HP47-BN_geiB9.cjs} +1 -1
  127. package/dist/{diagram-LMA3HP47-Cwm5bzeM.js → diagram-LMA3HP47-OWxAHrmz.js} +8 -8
  128. package/dist/{diagram-OG6HWLK6-BdLnbUYy.cjs → diagram-OG6HWLK6-6OnEK9-6.cjs} +1 -1
  129. package/dist/{diagram-OG6HWLK6-DvGk1j55.js → diagram-OG6HWLK6-Cfbv6mIH.js} +12 -12
  130. package/dist/{dist-9MKIBfY4.js → dist-Btd8EZyy.js} +1 -1
  131. package/dist/{dist-DC1YYeHc.cjs → dist-D8RD2QWc.cjs} +1 -1
  132. package/dist/{erDiagram-TEJ5UH35-B17mqgD_.js → erDiagram-TEJ5UH35-6OEXIM6m.js} +13 -13
  133. package/dist/{erDiagram-TEJ5UH35-NlRiP_bX.cjs → erDiagram-TEJ5UH35-CzsOt0l4.cjs} +1 -1
  134. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +1 -0
  135. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +3 -0
  136. package/dist/{flowDiagram-I6XJVG4X-ChI_6giU.cjs → flowDiagram-I6XJVG4X-DR1CMtZZ.cjs} +2 -2
  137. package/dist/{flowDiagram-I6XJVG4X-C2G6Tgw_.js → flowDiagram-I6XJVG4X-DnsxKD0w.js} +16 -16
  138. package/dist/functional-components/action/action-types.d.ts +5 -1
  139. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  140. package/dist/functional-components/action/action-utils.d.ts +1 -2
  141. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  142. package/dist/functional-components/action/action.d.ts.map +1 -1
  143. package/dist/functional-components/action-list/action-list-types.d.ts +0 -7
  144. package/dist/functional-components/action-list/action-list-types.d.ts.map +1 -1
  145. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  146. package/dist/functional-components/badge/badge-assets.d.ts +3 -3
  147. package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
  148. package/dist/functional-components/row/row-types.d.ts +8 -0
  149. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  150. package/dist/functional-components/row/row.d.ts.map +1 -1
  151. package/dist/{ganttDiagram-6RSMTGT7-B0DHqd7u.cjs → ganttDiagram-6RSMTGT7-C5t5_mjf.cjs} +1 -1
  152. package/dist/{ganttDiagram-6RSMTGT7-Bb6bqcaS.js → ganttDiagram-6RSMTGT7-CwbJqdwB.js} +8 -8
  153. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +3 -0
  154. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +1 -0
  155. package/dist/{gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs → gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs} +1 -1
  156. package/dist/{gitGraphDiagram-PVQCEYII-DiJUr7lO.js → gitGraphDiagram-PVQCEYII-mL2WiT98.js} +8 -8
  157. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  158. package/dist/{graphlib-B1zohIOM.js → graphlib-VMWSbyYi.js} +2 -1
  159. package/dist/index.d.ts +3 -3
  160. package/dist/index.d.ts.map +1 -1
  161. package/dist/info-J43DQDTF-DC3N8SoX.js +3 -0
  162. package/dist/info-J43DQDTF-jRjlWVKj.cjs +1 -0
  163. package/dist/{infoDiagram-5YYISTIA-C8P9DHlE.js → infoDiagram-5YYISTIA-BIM8xaiE.js} +4 -4
  164. package/dist/{infoDiagram-5YYISTIA-fhwEAAjF.cjs → infoDiagram-5YYISTIA-CbnHgs-I.cjs} +1 -1
  165. package/dist/{init-CEL65JUo.cjs → init-07zIhv_j.cjs} +1 -1
  166. package/dist/{ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs → ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs} +1 -1
  167. package/dist/{ishikawaDiagram-YF4QCWOH-rqNbTKZp.js → ishikawaDiagram-YF4QCWOH-DGOgWzve.js} +5 -5
  168. package/dist/{journeyDiagram-JHISSGLW-peUJlm3L.js → journeyDiagram-JHISSGLW-CHVTMdrq.js} +5 -5
  169. package/dist/{journeyDiagram-JHISSGLW-BhHdd4y3.cjs → journeyDiagram-JHISSGLW-DfnmJPLn.cjs} +1 -1
  170. package/dist/{kanban-definition-UN3LZRKU-TUg1x5yJ.cjs → kanban-definition-UN3LZRKU-CbeoJJE7.cjs} +1 -1
  171. package/dist/{kanban-definition-UN3LZRKU-DLxDqiQn.js → kanban-definition-UN3LZRKU-upKA3b5x.js} +10 -10
  172. package/dist/ketchup2.cjs.js +398 -108
  173. package/dist/ketchup2.css +1 -1
  174. package/dist/ketchup2.es.js +59533 -36164
  175. package/dist/{line-CpcTW4h-.cjs → line-CzwncDY3.cjs} +1 -1
  176. package/dist/{line-BhAnxCE8.js → line-DIhSUgmA.js} +3 -3
  177. package/dist/{linear-D0eFmsG1.cjs → linear-1lpO_WlJ.cjs} +1 -1
  178. package/dist/{linear-lSeWuvgy.js → linear-DUAteVwl.js} +3 -3
  179. package/dist/locale/en/translation.json.d.ts +9 -0
  180. package/dist/locale/it/translation.json.d.ts +9 -0
  181. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +3 -0
  182. package/dist/mermaid-parser.core-D6xVjl2t.js +373 -0
  183. package/dist/{mindmap-definition-RKZ34NQL-DHkmUkxh.js → mindmap-definition-RKZ34NQL-C3YkCJDi.js} +13 -13
  184. package/dist/{mindmap-definition-RKZ34NQL-D9BOsg5W.cjs → mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs} +1 -1
  185. package/dist/{ordinal-BnUYNBtU.cjs → ordinal-CUPR-p0T.cjs} +1 -1
  186. package/dist/{ordinal-MD9_ORcM.js → ordinal-D_ZgubzR.js} +1 -1
  187. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +1 -0
  188. package/dist/packet-YPE3B663-D2JW2EUF.js +3 -0
  189. package/dist/{path-CRahBUHI.cjs → path-Kklx0M1v.cjs} +1 -1
  190. package/dist/pie-LRSECV5Y-BHyd33ZA.js +3 -0
  191. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +1 -0
  192. package/dist/{pieDiagram-4H26LBE5-ByA7ytZx.js → pieDiagram-4H26LBE5-BvhguaHn.js} +13 -13
  193. package/dist/{pieDiagram-4H26LBE5-CrLJh4L9.cjs → pieDiagram-4H26LBE5-DpDrJBQK.cjs} +1 -1
  194. package/dist/{quadrantDiagram-W4KKPZXB-CHHpmu1l.js → quadrantDiagram-W4KKPZXB-C2oA-eGZ.js} +3 -3
  195. package/dist/{quadrantDiagram-W4KKPZXB-CalC_db_.cjs → quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs} +1 -1
  196. package/dist/radar-GUYGQ44K-BpJWFTCm.js +3 -0
  197. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +1 -0
  198. package/dist/{requirementDiagram-4Y6WPE33-BVcDFSx8.js → requirementDiagram-4Y6WPE33-BEGryahw.js} +12 -12
  199. package/dist/{requirementDiagram-4Y6WPE33-SsePLT8d.cjs → requirementDiagram-4Y6WPE33-GmjmsbiY.cjs} +1 -1
  200. package/dist/{rough.esm-BEA_SCZB.cjs → rough.esm-r0QOSzHM.cjs} +1 -1
  201. package/dist/{sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs → sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs} +1 -1
  202. package/dist/{sankeyDiagram-5OEKKPKP-C-ODz9lV.js → sankeyDiagram-5OEKKPKP-VPzKV4zM.js} +3 -3
  203. package/dist/{sequenceDiagram-3UESZ5HK-Cnc0aDO4.js → sequenceDiagram-3UESZ5HK-Bc30_Cm2.js} +21 -21
  204. package/dist/{sequenceDiagram-3UESZ5HK-DEVLteqD.cjs → sequenceDiagram-3UESZ5HK-D85rpewi.cjs} +2 -2
  205. package/dist/src-DEmZ9bFr.cjs +1 -0
  206. package/dist/{src-v9RrE_4h.js → src-DjDATEq3.js} +7 -4
  207. package/dist/{stateDiagram-AJRCARHV-D_yPvIRw.cjs → stateDiagram-AJRCARHV-Bg4Y3HPa.cjs} +1 -1
  208. package/dist/{stateDiagram-AJRCARHV-CuHe6Iji.js → stateDiagram-AJRCARHV-wqjltbKb.js} +16 -16
  209. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +27 -0
  210. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +1 -0
  211. package/dist/{timeline-definition-PNZ67QCA-Bj1BItRB.js → timeline-definition-PNZ67QCA-1z911Ume.js} +5 -5
  212. package/dist/{timeline-definition-PNZ67QCA-Cynbc96w.cjs → timeline-definition-PNZ67QCA-Dpu3hfhP.cjs} +1 -1
  213. package/dist/treeView-BLDUP644-C9tQMbiq.js +3 -0
  214. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +1 -0
  215. package/dist/treemap-LRROVOQU-2aferAph.cjs +1 -0
  216. package/dist/treemap-LRROVOQU-CBv3oGC3.js +3 -0
  217. package/dist/types/data-structures.d.ts +3 -0
  218. package/dist/types/data-structures.d.ts.map +1 -1
  219. package/dist/types/global.d.ts +1 -1
  220. package/dist/types/global.d.ts.map +1 -1
  221. package/dist/types/translation.d.ts +10 -1
  222. package/dist/types/translation.d.ts.map +1 -1
  223. package/dist/utils/objects.d.ts +2 -0
  224. package/dist/utils/objects.d.ts.map +1 -1
  225. package/dist/{v4-CA8ev9YY.cjs → v4-Dyp-SQ1c.cjs} +1 -1
  226. package/dist/{vennDiagram-CIIHVFJN-Dm4D6omA.cjs → vennDiagram-CIIHVFJN-BLBDqWTG.cjs} +2 -2
  227. package/dist/{vennDiagram-CIIHVFJN-CdmcxixA.js → vennDiagram-CIIHVFJN-BiLcQ0SR.js} +5 -5
  228. package/dist/wardley-L42UT6IY-CIM0_V5T.js +3 -0
  229. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +1 -0
  230. package/dist/{wardleyDiagram-YWT4CUSO-D1o116Wi.js → wardleyDiagram-YWT4CUSO-Bq-BejOl.js} +8 -8
  231. package/dist/{wardleyDiagram-YWT4CUSO-C-DdutxP.cjs → wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs} +1 -1
  232. package/dist/{xychartDiagram-2RQKCTM6-Byw7djcg.js → xychartDiagram-2RQKCTM6-B13zquXC.js} +9 -9
  233. package/dist/{xychartDiagram-2RQKCTM6-D0D4PIQS.cjs → xychartDiagram-2RQKCTM6-DA3O42Dk.cjs} +1 -1
  234. package/package.json +26 -25
  235. package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +0 -3
  236. package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +0 -1
  237. package/dist/array-Cx1JwiGD.cjs +0 -1
  238. package/dist/assets/imageListAssets.d.ts +0 -16
  239. package/dist/assets/imageListAssets.d.ts.map +0 -1
  240. package/dist/channel-intTktDQ.cjs +0 -1
  241. package/dist/chunk-4BX2VUAB-CtDGlaPx.cjs +0 -1
  242. package/dist/chunk-4EGX6M5U-BMVrizoY.js +0 -35
  243. package/dist/chunk-4EGX6M5U-VENLmgBt.cjs +0 -1
  244. package/dist/chunk-55IACEB6-VJP3Osm7.cjs +0 -1
  245. package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +0 -1
  246. package/dist/chunk-5DO6E6H7-QuTLwcim.js +0 -23
  247. package/dist/chunk-BR22UD5L-CS6hURQQ.js +0 -64
  248. package/dist/chunk-BR22UD5L-wI1vkyAT.cjs +0 -1
  249. package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +0 -123
  250. package/dist/chunk-FHYWG6QK-CfRqYwCI.js +0 -23
  251. package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +0 -1
  252. package/dist/chunk-LZXEDZCA-Dpz_wx3M.cjs +0 -1
  253. package/dist/chunk-MPE355IW-4bpROspE.js +0 -23
  254. package/dist/chunk-MPE355IW-CxPw_dPP.cjs +0 -1
  255. package/dist/chunk-MZUSXYTE-DA5mUG5B.js +0 -30
  256. package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +0 -1
  257. package/dist/chunk-N66VUXT2-DSbygtq1.cjs +0 -1
  258. package/dist/chunk-N66VUXT2-pDZ1b-B3.js +0 -54
  259. package/dist/chunk-PUPMXCY4-CKjhJQnN.js +0 -23
  260. package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +0 -1
  261. package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +0 -1
  262. package/dist/chunk-UIBZB4QT-BvFllM0Q.js +0 -23
  263. package/dist/chunk-WCWK7LTN-D_C1as0Y.js +0 -31
  264. package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +0 -1
  265. package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +0 -1
  266. package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +0 -1
  267. package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +0 -29
  268. package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +0 -29
  269. package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +0 -1
  270. package/dist/components/image-list/components/error-boundary.d.ts +0 -16
  271. package/dist/components/image-list/components/error-boundary.d.ts.map +0 -1
  272. package/dist/components/image-list/components/image-list-command-panel.d.ts +0 -15
  273. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +0 -1
  274. package/dist/components/image-list/components/image-list-command-trigger.d.ts +0 -16
  275. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +0 -1
  276. package/dist/components/image-list/components/image-list-drill-down.d.ts +0 -4
  277. package/dist/components/image-list/components/image-list-drill-down.d.ts.map +0 -1
  278. package/dist/components/image-list/components/image-list-filter-picker.d.ts +0 -14
  279. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +0 -1
  280. package/dist/components/image-list/components/image-list-h-strip.d.ts +0 -5
  281. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +0 -1
  282. package/dist/components/image-list/components/image-list-json-viewer.d.ts +0 -11
  283. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +0 -1
  284. package/dist/components/image-list/components/image-list-menu.d.ts +0 -5
  285. package/dist/components/image-list/components/image-list-menu.d.ts.map +0 -1
  286. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +0 -15
  287. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +0 -1
  288. package/dist/components/image-list/components/image-list-sort-picker.d.ts +0 -14
  289. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +0 -1
  290. package/dist/components/image-list/components/image-list-v-strip.d.ts +0 -5
  291. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +0 -1
  292. package/dist/components/image-list/components/items/image-list-card-item.d.ts +0 -5
  293. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +0 -1
  294. package/dist/components/image-list/components/items/image-list-folder-item.d.ts +0 -5
  295. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +0 -1
  296. package/dist/components/image-list/components/items/image-list-item.d.ts +0 -5
  297. package/dist/components/image-list/components/items/image-list-item.d.ts.map +0 -1
  298. package/dist/components/image-list/components/menu-nav-item.d.ts +0 -5
  299. package/dist/components/image-list/components/menu-nav-item.d.ts.map +0 -1
  300. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts +0 -5
  301. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +0 -1
  302. package/dist/components/image-list/components/navigation-modes/image-list-compact.d.ts +0 -5
  303. package/dist/components/image-list/components/navigation-modes/image-list-compact.d.ts.map +0 -1
  304. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts +0 -5
  305. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +0 -1
  306. package/dist/components/image-list/components/navigation-modes/image-list-modal.d.ts +0 -5
  307. package/dist/components/image-list/components/navigation-modes/image-list-modal.d.ts.map +0 -1
  308. package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts +0 -5
  309. package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts.map +0 -1
  310. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts +0 -5
  311. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +0 -1
  312. package/dist/components/image-list/components/strip-child-popup.d.ts +0 -5
  313. package/dist/components/image-list/components/strip-child-popup.d.ts.map +0 -1
  314. package/dist/components/image-list/components/strip-item.d.ts +0 -5
  315. package/dist/components/image-list/components/strip-item.d.ts.map +0 -1
  316. package/dist/components/image-list/components/strip-overflow-button.d.ts +0 -5
  317. package/dist/components/image-list/components/strip-overflow-button.d.ts.map +0 -1
  318. package/dist/components/image-list/hooks/useCommandPickers.d.ts +0 -13
  319. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +0 -1
  320. package/dist/components/image-list/hooks/useNavigation.d.ts +0 -16
  321. package/dist/components/image-list/hooks/useNavigation.d.ts.map +0 -1
  322. package/dist/components/image-list/hooks/useSelection.d.ts +0 -34
  323. package/dist/components/image-list/hooks/useSelection.d.ts.map +0 -1
  324. package/dist/components/image-list/hooks/useStripOverflow.d.ts +0 -17
  325. package/dist/components/image-list/hooks/useStripOverflow.d.ts.map +0 -1
  326. package/dist/components/image-list/image-list-column-utils.d.ts +0 -9
  327. package/dist/components/image-list/image-list-column-utils.d.ts.map +0 -1
  328. package/dist/components/image-list/image-list-context.d.ts +0 -29
  329. package/dist/components/image-list/image-list-context.d.ts.map +0 -1
  330. package/dist/components/image-list/image-list-debug-utils.d.ts +0 -13
  331. package/dist/components/image-list/image-list-debug-utils.d.ts.map +0 -1
  332. package/dist/components/image-list/image-list-filter-context.d.ts +0 -9
  333. package/dist/components/image-list/image-list-filter-context.d.ts.map +0 -1
  334. package/dist/components/image-list/image-list-filter-utils.d.ts +0 -12
  335. package/dist/components/image-list/image-list-filter-utils.d.ts.map +0 -1
  336. package/dist/components/image-list/image-list-sort-context.d.ts +0 -9
  337. package/dist/components/image-list/image-list-sort-context.d.ts.map +0 -1
  338. package/dist/components/image-list/image-list-sort-utils.d.ts +0 -13
  339. package/dist/components/image-list/image-list-sort-utils.d.ts.map +0 -1
  340. package/dist/components/image-list/image-list-state-context.d.ts +0 -5
  341. package/dist/components/image-list/image-list-state-context.d.ts.map +0 -1
  342. package/dist/components/image-list/image-list-types.d.ts +0 -196
  343. package/dist/components/image-list/image-list-types.d.ts.map +0 -1
  344. package/dist/components/image-list/image-list-utils.d.ts +0 -83
  345. package/dist/components/image-list/image-list-utils.d.ts.map +0 -1
  346. package/dist/components/image-list/image-list.d.ts +0 -5
  347. package/dist/components/image-list/image-list.d.ts.map +0 -1
  348. package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +0 -3
  349. package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +0 -1
  350. package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +0 -1
  351. package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +0 -3
  352. package/dist/graphlib-B5AXIZA4.cjs +0 -1
  353. package/dist/info-J43DQDTF-CLRXRK49.js +0 -3
  354. package/dist/info-J43DQDTF-CmpcAuH-.cjs +0 -1
  355. package/dist/mermaid-parser.core-Dz33ts1l.js +0 -74
  356. package/dist/mermaid-parser.core-HQxPJrkY.cjs +0 -3
  357. package/dist/packet-YPE3B663-BwjweAZY.cjs +0 -1
  358. package/dist/packet-YPE3B663-D1Hr9AQm.js +0 -3
  359. package/dist/pie-LRSECV5Y-CpDfN1P0.js +0 -3
  360. package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +0 -1
  361. package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +0 -1
  362. package/dist/radar-GUYGQ44K-ByzrmbOz.js +0 -3
  363. package/dist/src-BgvDIw01.cjs +0 -1
  364. package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +0 -1
  365. package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +0 -27
  366. package/dist/treeView-BLDUP644-CxLhpd93.js +0 -3
  367. package/dist/treeView-BLDUP644-DMwVx0AR.cjs +0 -1
  368. package/dist/treemap-LRROVOQU-BqmiLdFI.js +0 -3
  369. package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +0 -1
  370. package/dist/wardley-L42UT6IY-C7UjBmVh.js +0 -3
  371. package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +0 -1
  372. /package/dist/{array-CBdkHBGa.js → array-CApNbSU9.js} +0 -0
  373. /package/dist/{defaultLocale-dGy1YRID.js → defaultLocale-DnzPsei5.js} +0 -0
  374. /package/dist/{init-B7h4SEX5.js → init-MwSGRDIl.js} +0 -0
  375. /package/dist/{katex-HkVgAsLB.cjs → katex-CkiTumqg.cjs} +0 -0
  376. /package/dist/{katex-DWDh1q_h.js → katex-D-2KeLwt.js} +0 -0
  377. /package/dist/{path-CAXMhBzK.js → path-DGNPZRdx.js} +0 -0
  378. /package/dist/{rough.esm-TWNWL4Us.js → rough.esm-rcMoXTJj.js} +0 -0
  379. /package/dist/{v4-BpDBEhLK.js → v4-BK7K-jy_.js} +0 -0
@@ -1,67 +1,138 @@
1
- import { _ as e, g as t, h as n, m as r } from "./src-v9RrE_4h.js";
1
+ import { _ as e, g as t, h as n, m as r } from "./src-DjDATEq3.js";
2
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) {
3
+ function i(e, t) {
4
+ (t == null || t > e.length) && (t = e.length);
5
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
6
+ return r;
7
+ }
8
+ function a(e) {
9
+ if (Array.isArray(e)) return e;
10
+ }
11
+ function o(e, t) {
12
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
13
+ if (n != null) {
14
+ var r, i, a, o, s = [], c = !0, l = !1;
15
+ try {
16
+ if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
17
+ } catch (e) {
18
+ l = !0, i = e;
19
+ } finally {
20
+ try {
21
+ if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
22
+ } finally {
23
+ if (l) throw i;
24
+ }
25
+ }
26
+ return s;
27
+ }
28
+ }
29
+ function s() {
30
+ throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
31
+ }
32
+ function c(e, t) {
33
+ return a(e) || o(e, t) || l(e, t) || s();
34
+ }
35
+ function l(e, t) {
36
+ if (e) {
37
+ if (typeof e == "string") return i(e, t);
38
+ var n = {}.toString.call(e).slice(8, -1);
39
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(e, t) : void 0;
40
+ }
41
+ }
42
+ var u = Object.entries, d = Object.setPrototypeOf, f = Object.isFrozen, ee = Object.getPrototypeOf, te = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, ne = Object.create, re = typeof Reflect < "u" && Reflect, ie = re.apply, ae = re.construct;
43
+ p ||= function(e) {
5
44
  return e;
6
- }, u ||= function(e) {
45
+ }, m ||= function(e) {
7
46
  return e;
8
- }, f ||= function(e, t) {
47
+ }, ie ||= function(e, t) {
9
48
  var n = [...arguments].slice(2);
10
49
  return e.apply(t, n);
11
- }, ee ||= function(e) {
50
+ }, ae ||= function(e) {
12
51
  return new e(...[...arguments].slice(1));
13
52
  };
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) {
53
+ var oe = b(Array.prototype.forEach), se = b(Array.prototype.lastIndexOf), ce = b(Array.prototype.pop), le = b(Array.prototype.push), ue = b(Array.prototype.splice), de = Array.isArray, fe = b(String.prototype.toLowerCase), pe = b(String.prototype.toString), me = b(String.prototype.match), he = b(String.prototype.replace), ge = b(String.prototype.indexOf), _e = b(String.prototype.trim), ve = b(Number.prototype.toString), ye = b(Boolean.prototype.toString), h = typeof BigInt > "u" ? null : b(BigInt.prototype.toString), g = typeof Symbol > "u" ? null : b(Symbol.prototype.toString), _ = b(Object.prototype.hasOwnProperty), v = b(Object.prototype.toString), y = b(RegExp.prototype.test), be = xe(TypeError);
54
+ function b(e) {
16
55
  return function(t) {
17
56
  t instanceof RegExp && (t.lastIndex = 0);
18
57
  var n = [...arguments].slice(1);
19
- return f(e, t, n);
58
+ return ie(e, t, n);
20
59
  };
21
60
  }
22
- function fe(e) {
61
+ function xe(e) {
23
62
  return function() {
24
- return ee(e, [...arguments]);
63
+ return ae(e, [...arguments]);
25
64
  };
26
65
  }
27
- function _(e, t) {
28
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
29
- a && a(e, null);
66
+ function x(e, t) {
67
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
68
+ if (d && d(e, null), !de(t)) return e;
30
69
  let r = t.length;
31
70
  for (; r--;) {
32
71
  let i = t[r];
33
72
  if (typeof i == "string") {
34
73
  let e = n(i);
35
- e !== i && (o(t) || (t[r] = e), i = e);
74
+ e !== i && (f(t) || (t[r] = e), i = e);
36
75
  }
37
76
  e[i] = !0;
38
77
  }
39
78
  return e;
40
79
  }
41
- function pe(e) {
42
- for (let t = 0; t < e.length; t++) m(e, t) || (e[t] = null);
80
+ function Se(e) {
81
+ for (let t = 0; t < e.length; t++) _(e, t) || (e[t] = null);
43
82
  return e;
44
83
  }
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);
84
+ function S(e) {
85
+ let t = ne(null);
86
+ for (let r of u(e)) {
87
+ var n = c(r, 2);
88
+ let i = n[0], a = n[1];
89
+ _(e, i) && (de(a) ? t[i] = Se(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = S(a) : t[i] = a);
90
+ }
48
91
  return t;
49
92
  }
50
- function me(e, t) {
93
+ function Ce(e) {
94
+ switch (typeof e) {
95
+ case "string": return e;
96
+ case "number": return ve(e);
97
+ case "boolean": return ye(e);
98
+ case "bigint": return h ? h(e) : "0";
99
+ case "symbol": return g ? g(e) : "Symbol()";
100
+ case "undefined": return v(e);
101
+ case "function":
102
+ case "object": {
103
+ if (e === null) return v(e);
104
+ let t = e, n = C(t, "toString");
105
+ if (typeof n == "function") {
106
+ let e = n(t);
107
+ return typeof e == "string" ? e : v(e);
108
+ }
109
+ return v(e);
110
+ }
111
+ default: return v(e);
112
+ }
113
+ }
114
+ function C(e, t) {
51
115
  for (; e !== null;) {
52
- let n = c(e, t);
116
+ let n = te(e, t);
53
117
  if (n) {
54
- if (n.get) return g(n.get);
55
- if (typeof n.value == "function") return g(n.value);
118
+ if (n.get) return b(n.get);
119
+ if (typeof n.value == "function") return b(n.value);
56
120
  }
57
- e = s(e);
121
+ e = ee(e);
58
122
  }
59
123
  function n() {
60
124
  return null;
61
125
  }
62
126
  return n;
63
127
  }
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([
128
+ function we(e) {
129
+ try {
130
+ return y(e, ""), !0;
131
+ } catch {
132
+ return !1;
133
+ }
134
+ }
135
+ var Te = p(/* @__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(".")), Ee = p(/* @__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(".")), De = p([
65
136
  "feBlend",
66
137
  "feColorMatrix",
67
138
  "feComponentTransfer",
@@ -87,7 +158,7 @@ var he = l(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
87
158
  "feSpotLight",
88
159
  "feTile",
89
160
  "feTurbulence"
90
- ]), ve = l([
161
+ ]), Oe = p([
91
162
  "animate",
92
163
  "color-profile",
93
164
  "cursor",
@@ -110,7 +181,7 @@ var he = l(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
110
181
  "solidcolor",
111
182
  "unknown",
112
183
  "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([
184
+ ]), ke = p(/* @__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(".")), Ae = p([
114
185
  "maction",
115
186
  "maligngroup",
116
187
  "malignmark",
@@ -126,33 +197,28 @@ var he = l(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
126
197
  "annotation-xml",
127
198
  "mprescripts",
128
199
  "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.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Te = l([
200
+ ]), je = p(["#text"]), Me = p(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ne = p(/* @__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(".")), Pe = p(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Fe = p([
130
201
  "xlink:href",
131
202
  "xml:id",
132
203
  "xlink:title",
133
204
  "xml:space",
134
205
  "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 = {
206
+ ]), Ie = m(/{{[\w\W]*|^[\w\W]*}}/g), Le = m(/<%[\w\W]*|^[\w\W]*%>/g), Re = m(/\${[\w\W]*/g), ze = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Be = m(/^aria-[\-\w]+$/), Ve = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), He = m(/^(?:\w+script|data):/i), Ue = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), We = m(/^html$/i), Ge = m(/^[a-z][.\w]*(-[.\w]+)+$/i), Ke = m(/<[/\w!]/g), qe = m(/<[/\w]/g), Je = m(/<\/no(script|embed|frames)/i), Ye = m(/\/>/i), w = {
148
207
  element: 1,
208
+ attribute: 2,
149
209
  text: 3,
150
- progressingInstruction: 7,
210
+ cdataSection: 4,
211
+ entityReference: 5,
212
+ entityNode: 6,
213
+ processingInstruction: 7,
151
214
  comment: 8,
152
- document: 9
153
- }, Le = function() {
215
+ document: 9,
216
+ documentType: 10,
217
+ documentFragment: 11,
218
+ notation: 12
219
+ }, Xe = function() {
154
220
  return typeof window > "u" ? null : window;
155
- }, Re = function(e, t) {
221
+ }, Ze = function(e, t) {
156
222
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
157
223
  let n = null, r = "data-tt-policy-suffix";
158
224
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -169,7 +235,7 @@ var he = l(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
169
235
  } catch {
170
236
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
171
237
  }
172
- }, ze = function() {
238
+ }, Qe = function() {
173
239
  return {
174
240
  afterSanitizeAttributes: [],
175
241
  afterSanitizeElements: [],
@@ -181,29 +247,53 @@ var he = l(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
181
247
  uponSanitizeElement: [],
182
248
  uponSanitizeShadowNode: []
183
249
  };
250
+ }, $e = function(e, t, n, r) {
251
+ return _(e, t) && de(e[t]) ? x(r.base ? S(r.base) : {}, e[t], r.transform) : n;
184
252
  };
185
- function Be() {
186
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Le(), t = (e) => Be(e);
187
- if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Ie.document || !e.Element) return t.isSupported = !1, t;
188
- 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");
189
- if (typeof s == "function") {
253
+ function et() {
254
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe(), t = (e) => et(e);
255
+ if (t.version = "3.4.11", t.removed = [], !e || !e.document || e.document.nodeType !== w.document || !e.Element) return t.isSupported = !1, t;
256
+ let n = e.document, r = n, i = r.currentScript;
257
+ e.DocumentFragment;
258
+ let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
259
+ e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
260
+ let l = e.DOMParser, d = e.trustedTypes, f = s.prototype, ee = C(f, "cloneNode"), te = C(f, "remove"), re = C(f, "nextSibling"), ie = C(f, "childNodes"), ae = C(f, "parentNode"), ve = C(f, "shadowRoot"), ye = C(f, "attributes"), h = o && o.prototype ? C(o.prototype, "nodeType") : null, g = o && o.prototype ? C(o.prototype, "nodeName") : null;
261
+ if (typeof a == "function") {
190
262
  let e = n.createElement("template");
191
263
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
192
264
  }
193
- let y, Pe = "", { implementation: b, createNodeIterator: Ve, createDocumentFragment: x, getElementsByTagName: S } = n, { importNode: C } = r, w = ze();
194
- t.isSupported = typeof i == "function" && typeof Me == "function" && b && b.createHTMLDocument !== void 0;
195
- let { MUSTACHE_EXPR: T, ERB_EXPR: E, TMPLIT_EXPR: D, DATA_ATTR: He, ARIA_ATTR: Ue, IS_SCRIPT_OR_DATA: O, ATTR_WHITESPACE: We, CUSTOM_ELEMENT: k } = Fe, { IS_ALLOWED_URI: Ge } = Fe, A = null, j = _({}, [
196
- ...he,
197
- ...ge,
198
- ..._e,
199
- ...ye,
200
- ...xe
201
- ]), M = null, N = _({}, [
202
- ...Se,
203
- ...Ce,
204
- ...we,
205
- ...Te
206
- ]), P = Object.seal(d(null, {
265
+ let v, b = "", xe, Se = !1, T = 0, tt = function() {
266
+ if (T > 0) throw be("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
267
+ }, E = function(e) {
268
+ tt(), T++;
269
+ try {
270
+ return v.createHTML(e);
271
+ } finally {
272
+ T--;
273
+ }
274
+ }, D = function(e) {
275
+ tt(), T++;
276
+ try {
277
+ return v.createScriptURL(e);
278
+ } finally {
279
+ T--;
280
+ }
281
+ }, O = function() {
282
+ return Se ||= (xe = Ze(d, i), !0), xe;
283
+ }, nt = n, rt = nt.implementation, it = nt.createNodeIterator, at = nt.createDocumentFragment, ot = nt.getElementsByTagName, st = r.importNode, k = Qe();
284
+ t.isSupported = typeof u == "function" && typeof ae == "function" && rt && rt.createHTMLDocument !== void 0;
285
+ let ct = Ie, A = Le, lt = Re, ut = ze, j = Be, dt = He, M = Ue, N = Ge, P = Ve, F = null, I = x({}, [
286
+ ...Te,
287
+ ...Ee,
288
+ ...De,
289
+ ...ke,
290
+ ...je
291
+ ]), L = null, ft = x({}, [
292
+ ...Me,
293
+ ...Ne,
294
+ ...Pe,
295
+ ...Fe
296
+ ]), R = Object.seal(ne(null, {
207
297
  tagNameCheck: {
208
298
  writable: !0,
209
299
  configurable: !1,
@@ -222,7 +312,7 @@ function Be() {
222
312
  enumerable: !0,
223
313
  value: !1
224
314
  }
225
- })), F = null, Ke = null, I = Object.seal(d(null, {
315
+ })), pt = null, mt = null, z = Object.seal(ne(null, {
226
316
  tagCheck: {
227
317
  writable: !0,
228
318
  configurable: !1,
@@ -235,40 +325,14 @@ function Be() {
235
325
  enumerable: !0,
236
326
  value: null
237
327
  }
238
- })), qe = !0, Je = !0, Ye = !1, Xe = !0, L = !1, Ze = !0, R = !1, Qe = !1, $e = !1, z = !1, B = !1, V = !1, H = !0, U = !1, et = !0, tt = !1, nt = {}, W = null, rt = _({}, [
239
- "annotation-xml",
240
- "audio",
241
- "colgroup",
242
- "desc",
243
- "foreignobject",
244
- "head",
245
- "iframe",
246
- "math",
247
- "mi",
248
- "mn",
249
- "mo",
250
- "ms",
251
- "mtext",
252
- "noembed",
253
- "noframes",
254
- "noscript",
255
- "plaintext",
256
- "script",
257
- "style",
258
- "svg",
259
- "template",
260
- "thead",
261
- "title",
262
- "video",
263
- "xmp"
264
- ]), it = null, at = _({}, [
328
+ })), ht = !0, gt = !0, _t = !1, vt = !0, B = !1, V = !0, H = !1, U = !1, yt = null, bt = null, xt = !1, St = !1, Ct = !1, wt = !1, Tt = !0, Et = !1, Dt = "user-content-", Ot = !0, kt = !1, At = {}, W = null, jt = x({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Mt = null, Nt = x({}, [
265
329
  "audio",
266
330
  "video",
267
331
  "img",
268
332
  "source",
269
333
  "image",
270
334
  "track"
271
- ]), ot = null, st = _({}, [
335
+ ]), Pt = null, Ft = x({}, [
272
336
  "alt",
273
337
  "class",
274
338
  "for",
@@ -283,273 +347,391 @@ function Be() {
283
347
  "value",
284
348
  "style",
285
349
  "xmlns"
286
- ]), 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 = _({}, [
287
- ct,
288
- lt,
350
+ ]), It = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, q = !1, Rt = null, zt = x({}, [
351
+ It,
352
+ Lt,
289
353
  G
290
- ], oe), mt = _({}, [
354
+ ], pe), Bt = p([
291
355
  "mi",
292
356
  "mo",
293
357
  "mn",
294
358
  "ms",
295
359
  "mtext"
296
- ]), ht = _({}, ["annotation-xml"]), gt = _({}, [
360
+ ]), Vt = x({}, Bt), Ht = p(["annotation-xml"]), Ut = x({}, Ht), Wt = x({}, [
297
361
  "title",
298
362
  "style",
299
363
  "font",
300
364
  "a",
301
365
  "script"
302
- ]), _t = null, vt = ["application/xhtml+xml", "text/html"], K = null, q = null, yt = n.createElement("form"), bt = function(e) {
366
+ ]), Gt = null, J = ["application/xhtml+xml", "text/html"], Y = null, X = null, Kt = n.createElement("form"), qt = function(e) {
303
367
  return e instanceof RegExp || e instanceof Function;
304
- }, xt = function() {
368
+ }, Jt = function() {
305
369
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
306
- if (!(q && q === e)) {
307
- 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, A = m(e, "ALLOWED_TAGS") ? _({}, e.ALLOWED_TAGS, K) : j, M = m(e, "ALLOWED_ATTR") ? _({}, e.ALLOWED_ATTR, K) : N, 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, F = m(e, "FORBID_TAGS") ? _({}, e.FORBID_TAGS, K) : v({}), Ke = m(e, "FORBID_ATTR") ? _({}, e.FORBID_ATTR, K) : v({}), nt = m(e, "USE_PROFILES") ? e.USE_PROFILES : !1, qe = e.ALLOW_ARIA_ATTR !== !1, Je = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, Ze = e.SAFE_FOR_XML !== !1, R = e.WHOLE_DOCUMENT || !1, z = e.RETURN_DOM || !1, B = e.RETURN_DOM_FRAGMENT || !1, V = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, H = e.SANITIZE_DOM !== !1, U = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, tt = e.IN_PLACE || !1, Ge = e.ALLOWED_URI_REGEXP || je, ut = e.NAMESPACE || G, mt = e.MATHML_TEXT_INTEGRATION_POINTS || mt, ht = e.HTML_INTEGRATION_POINTS || ht, P = e.CUSTOM_ELEMENT_HANDLING || d(null), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), L && (Je = !1), B && (z = !0), nt && (A = _({}, xe), M = d(null), nt.html === !0 && (_(A, he), _(M, Se)), nt.svg === !0 && (_(A, ge), _(M, Ce), _(M, Te)), nt.svgFilters === !0 && (_(A, _e), _(M, Ce), _(M, Te)), nt.mathMl === !0 && (_(A, ye), _(M, we), _(M, Te))), I.tagCheck = null, I.attributeCheck = null, e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : (A === j && (A = v(A)), _(A, e.ADD_TAGS, K))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : (M === N && (M = v(M)), _(M, 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)), et && (A["#text"] = !0), R && _(A, [
308
- "html",
309
- "head",
310
- "body"
311
- ]), A.table && (_(A, ["tbody"]), delete F.tbody), e.TRUSTED_TYPES_POLICY) {
312
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
313
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
314
- y = e.TRUSTED_TYPES_POLICY, Pe = y.createHTML("");
315
- } else y === void 0 && (y = Re(pe, a)), y !== null && typeof Pe == "string" && (Pe = y.createHTML(""));
316
- l && l(e), q = e;
317
- }
318
- }, St = _({}, [
319
- ...ge,
320
- ..._e,
321
- ...ve
322
- ]), Ct = _({}, [...ye, ...be]), wt = function(e) {
323
- let t = Me(e);
370
+ if (X && X === e) return;
371
+ (!e || typeof e != "object") && (e = {}), e = S(e), Gt = J.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = Gt === "application/xhtml+xml" ? pe : fe, F = $e(e, "ALLOWED_TAGS", I, { transform: Y }), L = $e(e, "ALLOWED_ATTR", ft, { transform: Y }), Rt = $e(e, "ALLOWED_NAMESPACES", zt, { transform: pe }), Pt = $e(e, "ADD_URI_SAFE_ATTR", Ft, {
372
+ transform: Y,
373
+ base: Ft
374
+ }), Mt = $e(e, "ADD_DATA_URI_TAGS", Nt, {
375
+ transform: Y,
376
+ base: Nt
377
+ }), W = $e(e, "FORBID_CONTENTS", jt, { transform: Y }), pt = $e(e, "FORBID_TAGS", S({}), { transform: Y }), mt = $e(e, "FORBID_ATTR", S({}), { transform: Y }), At = _(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? S(e.USE_PROFILES) : e.USE_PROFILES : !1, ht = e.ALLOW_ARIA_ATTR !== !1, gt = e.ALLOW_DATA_ATTR !== !1, _t = e.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, St = e.RETURN_DOM || !1, Ct = e.RETURN_DOM_FRAGMENT || !1, wt = e.RETURN_TRUSTED_TYPE || !1, xt = e.FORCE_BODY || !1, Tt = e.SANITIZE_DOM !== !1, Et = e.SANITIZE_NAMED_PROPS || !1, Ot = e.KEEP_CONTENT !== !1, kt = e.IN_PLACE || !1, P = we(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ve, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Vt = _(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? S(e.MATHML_TEXT_INTEGRATION_POINTS) : x({}, Bt), Ut = _(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? S(e.HTML_INTEGRATION_POINTS) : x({}, Ht);
378
+ let t = _(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? S(e.CUSTOM_ELEMENT_HANDLING) : ne(null);
379
+ if (R = ne(null), _(t, "tagNameCheck") && qt(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), _(t, "attributeNameCheck") && qt(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), _(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(R), B && (gt = !1), Ct && (St = !0), At && (F = x({}, je), L = ne(null), At.html === !0 && (x(F, Te), x(L, Me)), At.svg === !0 && (x(F, Ee), x(L, Ne), x(L, Fe)), At.svgFilters === !0 && (x(F, De), x(L, Ne), x(L, Fe)), At.mathMl === !0 && (x(F, ke), x(L, Pe), x(L, Fe))), z.tagCheck = null, z.attributeCheck = null, _(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : de(e.ADD_TAGS) && (F === I && (F = S(F)), x(F, e.ADD_TAGS, Y))), _(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : de(e.ADD_ATTR) && (L === ft && (L = S(L)), x(L, e.ADD_ATTR, Y))), _(e, "ADD_URI_SAFE_ATTR") && de(e.ADD_URI_SAFE_ATTR) && x(Pt, e.ADD_URI_SAFE_ATTR, Y), _(e, "FORBID_CONTENTS") && de(e.FORBID_CONTENTS) && (W === jt && (W = S(W)), x(W, e.FORBID_CONTENTS, Y)), _(e, "ADD_FORBID_CONTENTS") && de(e.ADD_FORBID_CONTENTS) && (W === jt && (W = S(W)), x(W, e.ADD_FORBID_CONTENTS, Y)), Ot && (F["#text"] = !0), H && x(F, [
380
+ "html",
381
+ "head",
382
+ "body"
383
+ ]), F.table && (x(F, ["tbody"]), delete pt.tbody), e.TRUSTED_TYPES_POLICY) {
384
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw be("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
385
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw be("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
386
+ let t = v;
387
+ v = e.TRUSTED_TYPES_POLICY;
388
+ try {
389
+ b = E("");
390
+ } catch (e) {
391
+ throw v = t, e;
392
+ }
393
+ } else e.TRUSTED_TYPES_POLICY === null ? (v = void 0, b = "") : (v === void 0 && (v = O()), v && typeof b == "string" && (b = E("")));
394
+ p && p(e), X = e;
395
+ }, Yt = x({}, [
396
+ ...Ee,
397
+ ...De,
398
+ ...Oe
399
+ ]), Xt = x({}, [...ke, ...Ae]), Zt = function(e, t, n) {
400
+ return t.namespaceURI === G ? e === "svg" : t.namespaceURI === It ? e === "svg" && (n === "annotation-xml" || Vt[n]) : !!Yt[e];
401
+ }, Qt = function(e, t, n) {
402
+ return t.namespaceURI === G ? e === "math" : t.namespaceURI === Lt ? e === "math" && Ut[n] : !!Xt[e];
403
+ }, $t = function(e, t, n) {
404
+ return t.namespaceURI === Lt && !Ut[n] || t.namespaceURI === It && !Vt[n] ? !1 : !Xt[e] && (Wt[e] || !Yt[e]);
405
+ }, en = function(e) {
406
+ let t = ae(e);
324
407
  (!t || !t.tagName) && (t = {
325
- namespaceURI: ut,
408
+ namespaceURI: K,
326
409
  tagName: "template"
327
410
  });
328
- let n = ae(e.tagName), r = ae(t.tagName);
329
- 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;
330
- }, J = function(e) {
331
- re(t.removed, { element: e });
411
+ let n = fe(e.tagName), r = fe(t.tagName);
412
+ return Rt[e.namespaceURI] ? e.namespaceURI === Lt ? Zt(n, t, r) : e.namespaceURI === It ? Qt(n, t, r) : e.namespaceURI === G ? $t(n, t, r) : !!(Gt === "application/xhtml+xml" && Rt[e.namespaceURI]) : !1;
413
+ }, tn = function(e) {
414
+ le(t.removed, { element: e });
332
415
  try {
333
- Me(e).removeChild(e);
416
+ ae(e).removeChild(e);
334
417
  } catch {
335
- Oe(e);
418
+ if (te(e), !ae(e)) throw be("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
336
419
  }
337
- }, Y = function(e, n) {
420
+ }, nn = function(e) {
421
+ let t = ie(e);
422
+ if (t) {
423
+ let e = [];
424
+ oe(t, (t) => {
425
+ le(e, t);
426
+ }), oe(e, (e) => {
427
+ try {
428
+ te(e);
429
+ } catch {}
430
+ });
431
+ }
432
+ let n = ye(e);
433
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
434
+ let r = n[t], i = r && r.name;
435
+ if (typeof i == "string") try {
436
+ e.removeAttribute(i);
437
+ } catch {}
438
+ }
439
+ }, rn = function(e, n) {
338
440
  try {
339
- re(t.removed, {
441
+ le(t.removed, {
340
442
  attribute: n.getAttributeNode(e),
341
443
  from: n
342
444
  });
343
445
  } catch {
344
- re(t.removed, {
446
+ le(t.removed, {
345
447
  attribute: null,
346
448
  from: n
347
449
  });
348
450
  }
349
- if (n.removeAttribute(e), e === "is") if (z || B) try {
350
- J(n);
451
+ if (n.removeAttribute(e), e === "is") if (St || Ct) try {
452
+ tn(n);
351
453
  } catch {}
352
454
  else try {
353
455
  n.setAttribute(e, "");
354
456
  } catch {}
355
- }, X = function(e) {
457
+ }, an = function(e) {
458
+ let t = ye(e);
459
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
460
+ let r = t[n], i = r && r.name;
461
+ if (!(typeof i != "string" || L[Y(i)])) try {
462
+ e.removeAttribute(i);
463
+ } catch {}
464
+ }
465
+ }, on = function(e) {
466
+ let t = [e];
467
+ for (; t.length > 0;) {
468
+ let e = t.pop();
469
+ (h ? h(e) : e.nodeType) === w.element && an(e);
470
+ let n = ie(e);
471
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
472
+ }
473
+ }, sn = function(e) {
356
474
  let t = null, r = null;
357
- if ($e) e = "<remove></remove>" + e;
475
+ if (xt) e = "<remove></remove>" + e;
358
476
  else {
359
- let t = se(e, /^[\r\n\t ]+/);
477
+ let t = me(e, /^[\r\n\t ]+/);
360
478
  r = t && t[0];
361
479
  }
362
- _t === "application/xhtml+xml" && ut === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
363
- let i = y ? y.createHTML(e) : e;
364
- if (ut === G) try {
365
- t = new fe().parseFromString(i, _t);
480
+ Gt === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
481
+ let i = v ? E(e) : e;
482
+ if (K === G) try {
483
+ t = new l().parseFromString(i, Gt);
366
484
  } catch {}
367
485
  if (!t || !t.documentElement) {
368
- t = b.createDocument(ut, "template", null);
486
+ t = rt.createDocument(K, "template", null);
369
487
  try {
370
- t.documentElement.innerHTML = dt ? Pe : i;
488
+ t.documentElement.innerHTML = q ? b : i;
371
489
  } catch {}
372
490
  }
373
491
  let a = t.body || t.documentElement;
374
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), ut === G ? S.call(t, R ? "html" : "body")[0] : R ? t.documentElement : a;
375
- }, Tt = function(e) {
376
- 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);
492
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? ot.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
493
+ }, cn = function(e) {
494
+ return it.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
495
+ }, ln = function(e) {
496
+ return e = he(e, ct, " "), e = he(e, A, " "), e = he(e, lt, " "), e;
377
497
  }, Z = function(e) {
378
- 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");
379
- }, Q = function(e) {
380
- return typeof c == "function" && e instanceof c;
498
+ e.normalize();
499
+ let t = it.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
500
+ for (; n;) n.data = ln(n.data), n = t.nextNode();
501
+ let r = e.querySelectorAll?.call(e, "template");
502
+ r && oe(r, (e) => {
503
+ dn(e.content) && Z(e.content);
504
+ });
505
+ }, un = function(e) {
506
+ let t = g ? g(e) : null;
507
+ return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ye(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== h(e) || e.childNodes !== ie(e);
508
+ }, dn = function(e) {
509
+ if (!h || typeof e != "object" || !e) return !1;
510
+ try {
511
+ return h(e) === w.documentFragment;
512
+ } catch {
513
+ return !1;
514
+ }
515
+ }, fn = function(e) {
516
+ if (!h || typeof e != "object" || !e) return !1;
517
+ try {
518
+ return typeof h(e) == "number";
519
+ } catch {
520
+ return !1;
521
+ }
381
522
  };
382
- function $(e, n, r) {
383
- p(e, (e) => {
384
- e.call(t, n, r, q);
523
+ function Q(e, n, r) {
524
+ e.length !== 0 && oe(e, (e) => {
525
+ e.call(t, n, r, X);
385
526
  });
386
527
  }
387
- let Et = function(e) {
388
- let n = null;
389
- if ($(w.beforeSanitizeElements, e, null), Z(e)) return J(e), !0;
390
- let r = K(e.nodeName);
391
- if ($(w.uponSanitizeElement, e, {
392
- tagName: r,
393
- allowedTags: A
394
- }), Ze && e.hasChildNodes() && !Q(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || Ze && e.namespaceURI === G && r === "style" && Q(e.firstElementChild) || e.nodeType === Ie.progressingInstruction || Ze && e.nodeType === Ie.comment && h(/<[/\w]/g, e.data)) return J(e), !0;
395
- if (F[r] || !(I.tagCheck instanceof Function && I.tagCheck(r)) && !A[r]) {
396
- if (!F[r] && Ot(r) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r))) return !1;
397
- if (et && !W[r]) {
398
- let t = Me(e) || e.parentNode, n = Ae(e) || e.childNodes;
399
- if (n && t) {
400
- let r = n.length;
401
- for (let i = r - 1; i >= 0; --i) {
402
- let r = De(n[i], !0);
403
- r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, ke(e));
404
- }
528
+ let pn = function(e, t) {
529
+ return !!(V && e.hasChildNodes() && !fn(e.firstElementChild) && y(Ke, e.textContent) && y(Ke, e.innerHTML) || V && e.namespaceURI === G && t === "style" && fn(e.firstElementChild) || e.nodeType === w.processingInstruction || V && e.nodeType === w.comment && y(qe, e.data));
530
+ }, $ = function(e, t) {
531
+ if (!pt[t] && _n(t) && (R.tagNameCheck instanceof RegExp && y(R.tagNameCheck, t) || R.tagNameCheck instanceof Function && R.tagNameCheck(t))) return !1;
532
+ if (Ot && !W[t]) {
533
+ let t = ae(e), n = ie(e);
534
+ if (n && t) {
535
+ let r = n.length;
536
+ for (let i = r - 1; i >= 0; --i) {
537
+ let r = kt ? n[i] : ee(n[i], !0);
538
+ t.insertBefore(r, re(e));
405
539
  }
406
540
  }
407
- return J(e), !0;
408
541
  }
409
- return e instanceof u && !wt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (J(e), !0) : (L && e.nodeType === Ie.text && (n = e.textContent, p([
410
- T,
411
- E,
412
- D
413
- ], (e) => {
414
- n = ce(n, e, " ");
415
- }), e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(w.afterSanitizeElements, e, null), !1);
416
- }, Dt = function(e, t, r) {
417
- if (Ke[t] || H && (t === "id" || t === "name") && (r in n || r in yt)) return !1;
418
- if (!(Je && !Ke[t] && h(He, t)) && !(qe && h(Ue, t)) && !(I.attributeCheck instanceof Function && I.attributeCheck(t, e))) {
419
- if (!M[t] || Ke[t]) {
420
- if (!(Ot(e) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && h(P.attributeNameCheck, t) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(t, e)) || t === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r)))) return !1;
421
- } else if (!ot[t] && !h(Ge, ce(r, We, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && it[e]) && !(Ye && !h(O, ce(r, We, ""))) && r) return !1;
542
+ return tn(e), !0;
543
+ }, mn = function(e) {
544
+ if (Q(k.beforeSanitizeElements, e, null), un(e)) return tn(e), !0;
545
+ let n = Y(g ? g(e) : e.nodeName);
546
+ if (Q(k.uponSanitizeElement, e, {
547
+ tagName: n,
548
+ allowedTags: F
549
+ }), pn(e, n)) return tn(e), !0;
550
+ if (pt[n] || !(z.tagCheck instanceof Function && z.tagCheck(n)) && !F[n]) return $(e, n);
551
+ if ((h ? h(e) : e.nodeType) === w.element && !en(e) || (n === "noscript" || n === "noembed" || n === "noframes") && y(Je, e.innerHTML)) return tn(e), !0;
552
+ if (B && e.nodeType === w.text) {
553
+ let n = ln(e.textContent);
554
+ e.textContent !== n && (le(t.removed, { element: e.cloneNode() }), e.textContent = n);
555
+ }
556
+ return Q(k.afterSanitizeElements, e, null), !1;
557
+ }, hn = function(e, t, r) {
558
+ if (mt[t] || Tt && (t === "id" || t === "name") && (r in n || r in Kt)) return !1;
559
+ let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
560
+ if (!(gt && y(ut, t)) && !(ht && y(j, t))) {
561
+ if (!i) {
562
+ if (!(_n(e) && (R.tagNameCheck instanceof RegExp && y(R.tagNameCheck, e) || R.tagNameCheck instanceof Function && R.tagNameCheck(e)) && (R.attributeNameCheck instanceof RegExp && y(R.attributeNameCheck, t) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(t, e)) || t === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && y(R.tagNameCheck, r) || R.tagNameCheck instanceof Function && R.tagNameCheck(r)))) return !1;
563
+ } else if (!Pt[t] && !y(P, he(r, M, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ge(r, "data:") === 0 && Mt[e]) && !(_t && !y(dt, he(r, M, ""))) && r) return !1;
422
564
  }
423
565
  return !0;
424
- }, Ot = function(e) {
425
- return e !== "annotation-xml" && se(e, k);
426
- }, kt = function(e) {
427
- $(w.beforeSanitizeAttributes, e, null);
428
- let { attributes: n } = e;
429
- if (!n || Z(e)) return;
430
- let r = {
566
+ }, gn = x({}, [
567
+ "annotation-xml",
568
+ "color-profile",
569
+ "font-face",
570
+ "font-face-format",
571
+ "font-face-name",
572
+ "font-face-src",
573
+ "font-face-uri",
574
+ "missing-glyph"
575
+ ]), _n = function(e) {
576
+ return !gn[fe(e)] && y(N, e);
577
+ }, vn = function(e, t, n, r) {
578
+ if (v && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
579
+ case "TrustedHTML": return E(r);
580
+ case "TrustedScriptURL": return D(r);
581
+ }
582
+ return r;
583
+ }, yn = function(e, n, r, i) {
584
+ try {
585
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), un(e) ? tn(e) : ce(t.removed);
586
+ } catch {
587
+ rn(n, e);
588
+ }
589
+ }, bn = function(e) {
590
+ Q(k.beforeSanitizeAttributes, e, null);
591
+ let t = e.attributes;
592
+ if (!t || un(e)) return;
593
+ let n = {
431
594
  attrName: "",
432
595
  attrValue: "",
433
596
  keepAttr: !0,
434
- allowedAttributes: M,
597
+ allowedAttributes: L,
435
598
  forceKeepAttr: void 0
436
- }, i = n.length;
437
- for (; i--;) {
438
- let { name: a, namespaceURI: o, value: s } = n[i], c = K(a), l = s, u = a === "value" ? l : ue(l);
439
- if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, $(w.uponSanitizeAttribute, e, r), u = r.attrValue, U && (c === "id" || c === "name") && (Y(a, e), u = "user-content-" + u), Ze && h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
440
- Y(a, e);
599
+ }, r = t.length, i = Y(e.nodeName);
600
+ for (; r--;) {
601
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : _e(u);
602
+ if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Q(k.uponSanitizeAttribute, e, n), d = n.attrValue, Et && (l === "id" || l === "name") && ge(d, Dt) !== 0 && (rn(o, e), d = Dt + d), V && y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
603
+ rn(o, e);
441
604
  continue;
442
605
  }
443
- if (c === "attributename" && se(u, "href")) {
444
- Y(a, e);
606
+ if (l === "attributename" && me(d, "href")) {
607
+ rn(o, e);
445
608
  continue;
446
609
  }
447
- if (r.forceKeepAttr) continue;
448
- if (!r.keepAttr) {
449
- Y(a, e);
450
- continue;
610
+ if (!n.forceKeepAttr) {
611
+ if (!n.keepAttr) {
612
+ rn(o, e);
613
+ continue;
614
+ }
615
+ if (!vt && y(Ye, d)) {
616
+ rn(o, e);
617
+ continue;
618
+ }
619
+ if (B && (d = ln(d)), !hn(i, l, d)) {
620
+ rn(o, e);
621
+ continue;
622
+ }
623
+ d = vn(i, l, s, d), d !== u && yn(e, o, s, d);
451
624
  }
452
- if (!Xe && h(/\/>/i, u)) {
453
- Y(a, e);
625
+ }
626
+ Q(k.afterSanitizeAttributes, e, null);
627
+ }, xn = function(e) {
628
+ let t = null, n = cn(e);
629
+ for (Q(k.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(k.uponSanitizeShadowNode, t, null), mn(t), bn(t), dn(t.content) && xn(t.content), (h ? h(t) : t.nodeType) === w.element) {
630
+ let e = ve(t);
631
+ dn(e) && (Sn(e), xn(e));
632
+ }
633
+ Q(k.afterSanitizeShadowDOM, e, null);
634
+ }, Sn = function(e) {
635
+ let t = [{
636
+ node: e,
637
+ shadow: null
638
+ }];
639
+ for (; t.length > 0;) {
640
+ let e = t.pop();
641
+ if (e.shadow) {
642
+ xn(e.shadow);
454
643
  continue;
455
644
  }
456
- L && p([
457
- T,
458
- E,
459
- D
460
- ], (e) => {
461
- u = ce(u, e, " ");
645
+ let n = e.node, r = (h ? h(n) : n.nodeType) === w.element, i = ie(n);
646
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
647
+ node: i[e],
648
+ shadow: null
462
649
  });
463
- let d = K(e.nodeName);
464
- if (!Dt(d, c, u)) {
465
- Y(a, e);
466
- continue;
467
- }
468
- if (y && typeof pe == "object" && typeof pe.getAttributeType == "function" && !o) switch (pe.getAttributeType(d, c)) {
469
- case "TrustedHTML":
470
- u = y.createHTML(u);
471
- break;
472
- case "TrustedScriptURL":
473
- u = y.createScriptURL(u);
474
- break;
650
+ if (r) {
651
+ let e = g ? g(n) : null;
652
+ if (typeof e == "string" && Y(e) === "template") {
653
+ let e = n.content;
654
+ dn(e) && t.push({
655
+ node: e,
656
+ shadow: null
657
+ });
658
+ }
475
659
  }
476
- if (u !== l) try {
477
- o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Z(e) ? J(e) : ne(t.removed);
478
- } catch {
479
- Y(a, e);
660
+ if (r) {
661
+ let e = ve(n);
662
+ dn(e) && t.push({
663
+ node: null,
664
+ shadow: e
665
+ }, {
666
+ node: e,
667
+ shadow: null
668
+ });
480
669
  }
481
670
  }
482
- $(w.afterSanitizeAttributes, e, null);
483
- }, At = function(e) {
484
- let t = null, n = Tt(e);
485
- for ($(w.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(w.uponSanitizeShadowNode, t, null), Et(t), kt(t), t.content instanceof o && At(t.content);
486
- $(w.afterSanitizeShadowDOM, e, null);
487
671
  };
488
672
  return t.sanitize = function(e) {
489
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, s = null, l = null;
490
- if (dt = !e, dt && (e = "<!-->"), typeof e != "string" && !Q(e)) if (typeof e.toString == "function") {
491
- if (e = e.toString(), typeof e != "string") throw de("dirty is not a string, aborting");
492
- } else throw de("toString is not a function");
673
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
674
+ if (q = !e, q && (e = "<!-->"), typeof e != "string" && !fn(e) && (e = Ce(e), typeof e != "string")) throw be("dirty is not a string, aborting");
493
675
  if (!t.isSupported) return e;
494
- if (Qe || xt(n), t.removed = [], typeof e == "string" && (tt = !1), tt) {
495
- if (e.nodeName) {
496
- let t = K(e.nodeName);
497
- if (!A[t] || F[t]) throw de("root node is forbidden and cannot be sanitized in-place");
676
+ U ? (F = yt, L = bt) : Jt(n), (k.uponSanitizeElement.length > 0 || k.uponSanitizeAttribute.length > 0) && (F = S(F)), k.uponSanitizeAttribute.length > 0 && (L = S(L)), t.removed = [];
677
+ let c = kt && typeof e != "string" && fn(e);
678
+ if (c) {
679
+ let t = g ? g(e) : e.nodeName;
680
+ if (typeof t == "string") {
681
+ let e = Y(t);
682
+ if (!F[e] || pt[e]) throw be("root node is forbidden and cannot be sanitized in-place");
683
+ }
684
+ if (un(e)) throw be("root node is clobbered and cannot be sanitized in-place");
685
+ try {
686
+ Sn(e);
687
+ } catch (t) {
688
+ throw nn(e), t;
498
689
  }
499
- } 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);
690
+ } else if (fn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === w.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Sn(a);
500
691
  else {
501
- if (!z && !L && !R && e.indexOf("<") === -1) return y && V ? y.createHTML(e) : e;
502
- if (i = X(e), !i) return z ? null : V ? Pe : "";
692
+ if (!St && !B && !H && e.indexOf("<") === -1) return v && wt ? E(e) : e;
693
+ if (i = sn(e), !i) return St ? null : wt ? b : "";
503
694
  }
504
- i && $e && J(i.firstChild);
505
- let u = Tt(tt ? e : i);
506
- for (; s = u.nextNode();) Et(s), kt(s), s.content instanceof o && At(s.content);
507
- if (tt) return e;
508
- if (z) {
509
- if (L) {
510
- i.normalize();
511
- let e = i.innerHTML;
512
- p([
513
- T,
514
- E,
515
- D
516
- ], (t) => {
517
- e = ce(e, t, " ");
518
- }), i.innerHTML = e;
519
- }
520
- if (B) for (l = x.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
521
- else l = i;
522
- return (M.shadowroot || M.shadowrootmode) && (l = C.call(r, l, !0)), l;
695
+ i && xt && tn(i.firstChild);
696
+ let l = cn(c ? e : i);
697
+ try {
698
+ for (; o = l.nextNode();) mn(o), bn(o), dn(o.content) && xn(o.content);
699
+ } catch (t) {
700
+ throw c && nn(e), t;
523
701
  }
524
- let d = R ? i.outerHTML : i.innerHTML;
525
- return R && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && h(Ne, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), L && p([
526
- T,
527
- E,
528
- D
529
- ], (e) => {
530
- d = ce(d, e, " ");
531
- }), y && V ? y.createHTML(d) : d;
702
+ if (c) return oe(t.removed, (e) => {
703
+ e.element && on(e.element);
704
+ }), B && Z(e), e;
705
+ if (St) {
706
+ if (B && Z(i), Ct) for (s = at.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
707
+ else s = i;
708
+ return (L.shadowroot || L.shadowrootmode) && (s = st.call(r, s, !0)), s;
709
+ }
710
+ let u = H ? i.outerHTML : i.innerHTML;
711
+ return H && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && y(We, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = ln(u)), v && wt ? E(u) : u;
532
712
  }, t.setConfig = function() {
533
- xt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Qe = !0;
713
+ Jt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), U = !0, yt = F, bt = L;
534
714
  }, t.clearConfig = function() {
535
- q = null, Qe = !1;
715
+ X = null, U = !1, yt = null, bt = null, v = xe, b = "";
536
716
  }, t.isValidAttribute = function(e, t, n) {
537
- return q || xt({}), Dt(K(e), K(t), n);
717
+ return X || Jt({}), hn(Y(e), Y(t), n);
538
718
  }, t.addHook = function(e, t) {
539
- typeof t == "function" && re(w[e], t);
719
+ typeof t == "function" && _(k, e) && le(k[e], t);
540
720
  }, t.removeHook = function(e, t) {
541
- if (t !== void 0) {
542
- let n = te(w[e], t);
543
- return n === -1 ? void 0 : ie(w[e], n, 1)[0];
721
+ if (_(k, e)) {
722
+ if (t !== void 0) {
723
+ let n = se(k[e], t);
724
+ return n === -1 ? void 0 : ue(k[e], n, 1)[0];
725
+ }
726
+ return ce(k[e]);
544
727
  }
545
- return ne(w[e]);
546
728
  }, t.removeHooks = function(e) {
547
- w[e] = [];
729
+ _(k, e) && (k[e] = []);
548
730
  }, t.removeAllHooks = function() {
549
- w = ze();
731
+ k = Qe();
550
732
  }, t;
551
733
  }
552
- var b = Be(), Ve = {
734
+ var T = et(), tt = {
553
735
  min: {
554
736
  r: 0,
555
737
  g: 0,
@@ -586,9 +768,9 @@ var b = Be(), Ve = {
586
768
  e /= 360, t /= 100, n /= 100;
587
769
  let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
588
770
  switch (r) {
589
- case "r": return Ve.hue2rgb(a, i, e + 1 / 3) * 255;
590
- case "g": return Ve.hue2rgb(a, i, e) * 255;
591
- case "b": return Ve.hue2rgb(a, i, e - 1 / 3) * 255;
771
+ case "r": return tt.hue2rgb(a, i, e + 1 / 3) * 255;
772
+ case "g": return tt.hue2rgb(a, i, e) * 255;
773
+ case "b": return tt.hue2rgb(a, i, e - 1 / 3) * 255;
592
774
  }
593
775
  },
594
776
  rgb2hsl: ({ r: e, g: t, b: n }, r) => {
@@ -605,8 +787,8 @@ var b = Be(), Ve = {
605
787
  default: return -1;
606
788
  }
607
789
  }
608
- }, x = {
609
- channel: Ve,
790
+ }, E = {
791
+ channel: tt,
610
792
  lang: {
611
793
  clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
612
794
  round: (e) => Math.round(e * 1e10) / 1e10
@@ -615,15 +797,15 @@ var b = Be(), Ve = {
615
797
  let t = Math.round(e).toString(16);
616
798
  return t.length > 1 ? t : `0${t}`;
617
799
  } }
618
- }, S = {};
619
- for (let e = 0; e <= 255; e++) S[e] = x.unit.dec2hex(e);
620
- var C = {
800
+ }, D = {};
801
+ for (let e = 0; e <= 255; e++) D[e] = E.unit.dec2hex(e);
802
+ var O = {
621
803
  ALL: 0,
622
804
  RGB: 1,
623
805
  HSL: 2
624
- }, w = class {
806
+ }, nt = class {
625
807
  constructor() {
626
- this.type = C.ALL;
808
+ this.type = O.ALL;
627
809
  }
628
810
  get() {
629
811
  return this.type;
@@ -633,70 +815,70 @@ var C = {
633
815
  this.type = e;
634
816
  }
635
817
  reset() {
636
- this.type = C.ALL;
818
+ this.type = O.ALL;
637
819
  }
638
820
  is(e) {
639
821
  return this.type === e;
640
822
  }
641
- }, T = new class {
823
+ }, rt = new class {
642
824
  constructor(e, t) {
643
- this.color = t, this.changed = !1, this.data = e, this.type = new w();
825
+ this.color = t, this.changed = !1, this.data = e, this.type = new nt();
644
826
  }
645
827
  set(e, t) {
646
- return this.color = t, this.changed = !1, this.data = e, this.type.type = C.ALL, this;
828
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = O.ALL, this;
647
829
  }
648
830
  _ensureHSL() {
649
831
  let e = this.data, { h: t, s: n, l: r } = e;
650
- 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"));
832
+ t === void 0 && (e.h = E.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = E.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = E.channel.rgb2hsl(e, "l"));
651
833
  }
652
834
  _ensureRGB() {
653
835
  let e = this.data, { r: t, g: n, b: r } = e;
654
- 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"));
836
+ t === void 0 && (e.r = E.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = E.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = E.channel.hsl2rgb(e, "b"));
655
837
  }
656
838
  get r() {
657
839
  let e = this.data, t = e.r;
658
- return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "r"));
840
+ return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), E.channel.hsl2rgb(e, "r"));
659
841
  }
660
842
  get g() {
661
843
  let e = this.data, t = e.g;
662
- return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "g"));
844
+ return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), E.channel.hsl2rgb(e, "g"));
663
845
  }
664
846
  get b() {
665
847
  let e = this.data, t = e.b;
666
- return !this.type.is(C.HSL) && t !== void 0 ? t : (this._ensureHSL(), x.channel.hsl2rgb(e, "b"));
848
+ return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), E.channel.hsl2rgb(e, "b"));
667
849
  }
668
850
  get h() {
669
851
  let e = this.data, t = e.h;
670
- return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "h"));
852
+ return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), E.channel.rgb2hsl(e, "h"));
671
853
  }
672
854
  get s() {
673
855
  let e = this.data, t = e.s;
674
- return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "s"));
856
+ return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), E.channel.rgb2hsl(e, "s"));
675
857
  }
676
858
  get l() {
677
859
  let e = this.data, t = e.l;
678
- return !this.type.is(C.RGB) && t !== void 0 ? t : (this._ensureRGB(), x.channel.rgb2hsl(e, "l"));
860
+ return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), E.channel.rgb2hsl(e, "l"));
679
861
  }
680
862
  get a() {
681
863
  return this.data.a;
682
864
  }
683
865
  set r(e) {
684
- this.type.set(C.RGB), this.changed = !0, this.data.r = e;
866
+ this.type.set(O.RGB), this.changed = !0, this.data.r = e;
685
867
  }
686
868
  set g(e) {
687
- this.type.set(C.RGB), this.changed = !0, this.data.g = e;
869
+ this.type.set(O.RGB), this.changed = !0, this.data.g = e;
688
870
  }
689
871
  set b(e) {
690
- this.type.set(C.RGB), this.changed = !0, this.data.b = e;
872
+ this.type.set(O.RGB), this.changed = !0, this.data.b = e;
691
873
  }
692
874
  set h(e) {
693
- this.type.set(C.HSL), this.changed = !0, this.data.h = e;
875
+ this.type.set(O.HSL), this.changed = !0, this.data.h = e;
694
876
  }
695
877
  set s(e) {
696
- this.type.set(C.HSL), this.changed = !0, this.data.s = e;
878
+ this.type.set(O.HSL), this.changed = !0, this.data.s = e;
697
879
  }
698
880
  set l(e) {
699
- this.type.set(C.HSL), this.changed = !0, this.data.l = e;
881
+ this.type.set(O.HSL), this.changed = !0, this.data.l = e;
700
882
  }
701
883
  set a(e) {
702
884
  this.changed = !0, this.data.a = e;
@@ -706,14 +888,14 @@ var C = {
706
888
  g: 0,
707
889
  b: 0,
708
890
  a: 0
709
- }, "transparent"), E = {
891
+ }, "transparent"), it = {
710
892
  re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
711
893
  parse: (e) => {
712
894
  if (e.charCodeAt(0) !== 35) return;
713
- let t = e.match(E.re);
895
+ let t = e.match(it.re);
714
896
  if (!t) return;
715
897
  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;
716
- return T.set({
898
+ return rt.set({
717
899
  r: (r >> c * (l + 3) & u) * s,
718
900
  g: (r >> c * (l + 2) & u) * s,
719
901
  b: (r >> c * (l + 1) & u) * s,
@@ -722,41 +904,41 @@ var C = {
722
904
  },
723
905
  stringify: (e) => {
724
906
  let { r: t, g: n, b: r, a: i } = e;
725
- 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)]}`;
907
+ return i < 1 ? `#${D[Math.round(t)]}${D[Math.round(n)]}${D[Math.round(r)]}${D[Math.round(i * 255)]}` : `#${D[Math.round(t)]}${D[Math.round(n)]}${D[Math.round(r)]}`;
726
908
  }
727
- }, D = {
909
+ }, at = {
728
910
  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,
729
911
  hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
730
912
  _hue2deg: (e) => {
731
- let t = e.match(D.hueRe);
913
+ let t = e.match(at.hueRe);
732
914
  if (t) {
733
915
  let [, e, n] = t;
734
916
  switch (n) {
735
- case "grad": return x.channel.clamp.h(parseFloat(e) * .9);
736
- case "rad": return x.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
737
- case "turn": return x.channel.clamp.h(parseFloat(e) * 360);
917
+ case "grad": return E.channel.clamp.h(parseFloat(e) * .9);
918
+ case "rad": return E.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
919
+ case "turn": return E.channel.clamp.h(parseFloat(e) * 360);
738
920
  }
739
921
  }
740
- return x.channel.clamp.h(parseFloat(e));
922
+ return E.channel.clamp.h(parseFloat(e));
741
923
  },
742
924
  parse: (e) => {
743
925
  let t = e.charCodeAt(0);
744
926
  if (t !== 104 && t !== 72) return;
745
- let n = e.match(D.re);
927
+ let n = e.match(at.re);
746
928
  if (!n) return;
747
929
  let [, r, i, a, o, s] = n;
748
- return T.set({
749
- h: D._hue2deg(r),
750
- s: x.channel.clamp.s(parseFloat(i)),
751
- l: x.channel.clamp.l(parseFloat(a)),
752
- a: o ? x.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
930
+ return rt.set({
931
+ h: at._hue2deg(r),
932
+ s: E.channel.clamp.s(parseFloat(i)),
933
+ l: E.channel.clamp.l(parseFloat(a)),
934
+ a: o ? E.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
753
935
  }, e);
754
936
  },
755
937
  stringify: (e) => {
756
938
  let { h: t, s: n, l: r, a: i } = e;
757
- 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)}%)`;
939
+ return i < 1 ? `hsla(${E.lang.round(t)}, ${E.lang.round(n)}%, ${E.lang.round(r)}%, ${i})` : `hsl(${E.lang.round(t)}, ${E.lang.round(n)}%, ${E.lang.round(r)}%)`;
758
940
  }
759
- }, He = {
941
+ }, ot = {
760
942
  colors: {
761
943
  aliceblue: "#f0f8ff",
762
944
  antiquewhite: "#faebd7",
@@ -908,115 +1090,115 @@ var C = {
908
1090
  },
909
1091
  parse: (e) => {
910
1092
  e = e.toLowerCase();
911
- let t = He.colors[e];
912
- if (t) return E.parse(t);
1093
+ let t = ot.colors[e];
1094
+ if (t) return it.parse(t);
913
1095
  },
914
1096
  stringify: (e) => {
915
- let t = E.stringify(e);
916
- for (let e in He.colors) if (He.colors[e] === t) return e;
1097
+ let t = it.stringify(e);
1098
+ for (let e in ot.colors) if (ot.colors[e] === t) return e;
917
1099
  }
918
- }, Ue = {
1100
+ }, st = {
919
1101
  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,
920
1102
  parse: (e) => {
921
1103
  let t = e.charCodeAt(0);
922
1104
  if (t !== 114 && t !== 82) return;
923
- let n = e.match(Ue.re);
1105
+ let n = e.match(st.re);
924
1106
  if (!n) return;
925
1107
  let [, r, i, a, o, s, c, l, u] = n;
926
- return T.set({
927
- r: x.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
928
- g: x.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
929
- b: x.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
930
- a: l ? x.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
1108
+ return rt.set({
1109
+ r: E.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
1110
+ g: E.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
1111
+ b: E.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
1112
+ a: l ? E.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
931
1113
  }, e);
932
1114
  },
933
1115
  stringify: (e) => {
934
1116
  let { r: t, g: n, b: r, a: i } = e;
935
- 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)})`;
1117
+ return i < 1 ? `rgba(${E.lang.round(t)}, ${E.lang.round(n)}, ${E.lang.round(r)}, ${E.lang.round(i)})` : `rgb(${E.lang.round(t)}, ${E.lang.round(n)}, ${E.lang.round(r)})`;
936
1118
  }
937
- }, O = {
1119
+ }, k = {
938
1120
  format: {
939
- keyword: He,
940
- hex: E,
941
- rgb: Ue,
942
- rgba: Ue,
943
- hsl: D,
944
- hsla: D
1121
+ keyword: ot,
1122
+ hex: it,
1123
+ rgb: st,
1124
+ rgba: st,
1125
+ hsl: at,
1126
+ hsla: at
945
1127
  },
946
1128
  parse: (e) => {
947
1129
  if (typeof e != "string") return e;
948
- let t = E.parse(e) || Ue.parse(e) || D.parse(e) || He.parse(e);
1130
+ let t = it.parse(e) || st.parse(e) || at.parse(e) || ot.parse(e);
949
1131
  if (t) return t;
950
1132
  throw Error(`Unsupported color format: "${e}"`);
951
1133
  },
952
- stringify: (e) => !e.changed && e.color ? e.color : e.type.is(C.HSL) || e.data.r === void 0 ? D.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? Ue.stringify(e) : E.stringify(e)
953
- }, We = (e, t) => {
954
- let n = O.parse(e);
955
- for (let e in t) n[e] = x.channel.clamp[e](t[e]);
956
- return O.stringify(n);
957
- }, k = (e, t, n = 0, r = 1) => {
958
- if (typeof e != "number") return We(e, { a: t });
959
- let i = T.set({
960
- r: x.channel.clamp.r(e),
961
- g: x.channel.clamp.g(t),
962
- b: x.channel.clamp.b(n),
963
- a: x.channel.clamp.a(r)
1134
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(O.HSL) || e.data.r === void 0 ? at.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? st.stringify(e) : it.stringify(e)
1135
+ }, ct = (e, t) => {
1136
+ let n = k.parse(e);
1137
+ for (let e in t) n[e] = E.channel.clamp[e](t[e]);
1138
+ return k.stringify(n);
1139
+ }, A = (e, t, n = 0, r = 1) => {
1140
+ if (typeof e != "number") return ct(e, { a: t });
1141
+ let i = rt.set({
1142
+ r: E.channel.clamp.r(e),
1143
+ g: E.channel.clamp.g(t),
1144
+ b: E.channel.clamp.b(n),
1145
+ a: E.channel.clamp.a(r)
964
1146
  });
965
- return O.stringify(i);
966
- }, Ge = (e) => {
967
- let { r: t, g: n, b: r } = O.parse(e), i = .2126 * x.channel.toLinear(t) + .7152 * x.channel.toLinear(n) + .0722 * x.channel.toLinear(r);
968
- return x.lang.round(i);
969
- }, A = (e) => Ge(e) >= .5, j = (e) => !A(e), M = (e, t, n) => {
970
- let r = O.parse(e), i = r[t], a = x.channel.clamp[t](i + n);
971
- return i !== a && (r[t] = a), O.stringify(r);
972
- }, N = (e, t) => M(e, "l", t), P = (e, t) => M(e, "l", -t), F = (e, t) => {
973
- let n = O.parse(e), r = {};
1147
+ return k.stringify(i);
1148
+ }, lt = (e) => {
1149
+ let { r: t, g: n, b: r } = k.parse(e), i = .2126 * E.channel.toLinear(t) + .7152 * E.channel.toLinear(n) + .0722 * E.channel.toLinear(r);
1150
+ return E.lang.round(i);
1151
+ }, ut = (e) => lt(e) >= .5, j = (e) => !ut(e), dt = (e, t, n) => {
1152
+ let r = k.parse(e), i = r[t], a = E.channel.clamp[t](i + n);
1153
+ return i !== a && (r[t] = a), k.stringify(r);
1154
+ }, M = (e, t) => dt(e, "l", t), N = (e, t) => dt(e, "l", -t), P = (e, t) => {
1155
+ let n = k.parse(e), r = {};
974
1156
  for (let e in t) t[e] && (r[e] = n[e] + t[e]);
975
- return We(e, r);
976
- }, Ke = (e, t, n = 50) => {
977
- let { r, g: i, b: a, a: o } = O.parse(e), { r: s, g: c, b: l, a: u } = O.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;
978
- return k(r * p + s * te, i * p + c * te, a * p + l * te, o * d + u * (1 - d));
1157
+ return ct(e, r);
1158
+ }, F = (e, t, n = 50) => {
1159
+ let { r, g: i, b: a, a: o } = k.parse(e), { r: s, g: c, b: l, a: u } = k.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, te = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2, p = 1 - te;
1160
+ return A(r * te + s * p, i * te + c * p, a * te + l * p, o * d + u * (1 - d));
979
1161
  }, I = (e, t = 100) => {
980
- let n = O.parse(e);
981
- return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, Ke(n, e, t);
982
- }, qe = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Je = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ye = /\s*%%.*\n/gm, Xe = class extends Error {
1162
+ let n = k.parse(e);
1163
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, F(n, e, t);
1164
+ }, L = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ft = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, R = /\s*%%.*\n/gm, pt = class extends Error {
983
1165
  static {
984
1166
  n(this, "UnknownDiagramError");
985
1167
  }
986
1168
  constructor(e) {
987
1169
  super(e), this.name = "UnknownDiagramError";
988
1170
  }
989
- }, L = {}, Ze = /* @__PURE__ */ n(function(e, t) {
990
- e = e.replace(qe, "").replace(Je, "").replace(Ye, "\n");
991
- for (let [n, { detector: r }] of Object.entries(L)) if (r(e, t)) return n;
992
- throw new Xe(`No diagram type detected matching given configuration for text: ${e}`);
993
- }, "detectType"), R = /* @__PURE__ */ n((...e) => {
994
- for (let { id: t, detector: n, loader: r } of e) Qe(t, n, r);
995
- }, "registerLazyLoadedDiagrams"), Qe = /* @__PURE__ */ n((e, n, r) => {
996
- L[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), L[e] = {
1171
+ }, mt = {}, z = /* @__PURE__ */ n(function(e, t) {
1172
+ e = e.replace(L, "").replace(ft, "").replace(R, "\n");
1173
+ for (let [n, { detector: r }] of Object.entries(mt)) if (r(e, t)) return n;
1174
+ throw new pt(`No diagram type detected matching given configuration for text: ${e}`);
1175
+ }, "detectType"), ht = /* @__PURE__ */ n((...e) => {
1176
+ for (let { id: t, detector: n, loader: r } of e) gt(t, n, r);
1177
+ }, "registerLazyLoadedDiagrams"), gt = /* @__PURE__ */ n((e, n, r) => {
1178
+ mt[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), mt[e] = {
997
1179
  detector: n,
998
1180
  loader: r
999
1181
  }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
1000
- }, "addDetector"), $e = /* @__PURE__ */ n((e) => L[e].loader, "getDiagramLoader"), z = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
1182
+ }, "addDetector"), _t = /* @__PURE__ */ n((e) => mt[e].loader, "getDiagramLoader"), vt = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
1001
1183
  let i = {
1002
1184
  depth: n,
1003
1185
  clobber: r
1004
1186
  };
1005
- return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => z(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1187
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => vt(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1006
1188
  e.includes(t) || e.push(t);
1007
1189
  }), 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) => {
1008
- 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] = z(e[i], t[i], {
1190
+ 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] = vt(e[i], t[i], {
1009
1191
  depth: n - 1,
1010
1192
  clobber: r
1011
1193
  })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1012
1194
  }), e);
1013
- }, "assignWithDepth"), B = z, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ n((e, t) => t ? F(e, {
1195
+ }, "assignWithDepth"), B = vt, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ n((e, t) => t ? P(e, {
1014
1196
  s: -40,
1015
1197
  l: 10
1016
- }) : F(e, {
1198
+ }) : P(e, {
1017
1199
  s: -40,
1018
1200
  l: -10
1019
- }), "mkBorder"), et = class {
1201
+ }), "mkBorder"), yt = class {
1020
1202
  static {
1021
1203
  n(this, "Theme");
1022
1204
  }
@@ -1024,59 +1206,59 @@ var C = {
1024
1206
  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))";
1025
1207
  }
1026
1208
  updateColors() {
1027
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
1209
+ 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, {
1028
1210
  h: 180,
1029
1211
  l: 5
1030
- }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(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 || P(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || P(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || N(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
1212
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? 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 || I(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, {
1031
1213
  h: 210,
1032
1214
  l: 150
1033
- }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1034
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
1215
+ }), 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);
1216
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1035
1217
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1036
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1218
+ 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);
1037
1219
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1038
1220
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1039
1221
  let e = this.darkMode ? -4 : -1;
1040
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
1222
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
1041
1223
  h: 180,
1042
1224
  s: -15,
1043
1225
  l: e * (5 + t * 3)
1044
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
1226
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
1045
1227
  h: 180,
1046
1228
  s: -15,
1047
1229
  l: e * (8 + t * 3)
1048
1230
  });
1049
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
1231
+ 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, {
1050
1232
  h: 60,
1051
1233
  l: -10
1052
- }), this.pie8 = this.pie8 || F(this.primaryColor, {
1234
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1053
1235
  h: -60,
1054
1236
  l: -10
1055
- }), this.pie9 = this.pie9 || F(this.primaryColor, {
1237
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1056
1238
  h: 120,
1057
1239
  l: 0
1058
- }), this.pie10 = this.pie10 || F(this.primaryColor, {
1240
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1059
1241
  h: 60,
1060
1242
  l: -20
1061
- }), this.pie11 = this.pie11 || F(this.primaryColor, {
1243
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1062
1244
  h: -60,
1063
1245
  l: -20
1064
- }), this.pie12 = this.pie12 || F(this.primaryColor, {
1246
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1065
1247
  h: 120,
1066
1248
  l: -10
1067
- }), 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 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
1249
+ }), 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, {
1068
1250
  h: 60,
1069
1251
  l: -30
1070
- }), this.venn5 = this.venn5 ?? F(this.primaryColor, {
1252
+ }), this.venn5 = this.venn5 ?? P(this.primaryColor, {
1071
1253
  h: -60,
1072
1254
  l: -30
1073
- }), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
1255
+ }), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
1074
1256
  h: 60,
1075
1257
  l: -30
1076
- }), this.venn7 = this.venn7 ?? F(this.primaryColor, {
1258
+ }), this.venn7 = this.venn7 ?? P(this.primaryColor, {
1077
1259
  h: 120,
1078
1260
  l: -30
1079
- }), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
1261
+ }), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
1080
1262
  h: 120,
1081
1263
  l: -30
1082
1264
  }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
@@ -1103,31 +1285,31 @@ var C = {
1103
1285
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1104
1286
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1105
1287
  annotationFill: this.wardley?.annotationFill || this.background
1106
- }, 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 || F(this.primaryColor, {
1288
+ }, 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, {
1107
1289
  r: 5,
1108
1290
  g: 5,
1109
1291
  b: 5
1110
- }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1292
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1111
1293
  r: 10,
1112
1294
  g: 10,
1113
1295
  b: 10
1114
- }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1296
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1115
1297
  r: 15,
1116
1298
  g: 15,
1117
1299
  b: 15
1118
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1300
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1119
1301
  r: -5,
1120
1302
  g: -5,
1121
1303
  b: -5
1122
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1304
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1123
1305
  r: -10,
1124
1306
  g: -10,
1125
1307
  b: -10
1126
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1308
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1127
1309
  r: -15,
1128
1310
  g: -15,
1129
1311
  b: -15
1130
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1312
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
1131
1313
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1132
1314
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1133
1315
  dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
@@ -1140,7 +1322,7 @@ var C = {
1140
1322
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1141
1323
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1142
1324
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1143
- }, 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 ? P(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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1325
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1144
1326
  }
1145
1327
  calculate(e) {
1146
1328
  if (typeof e != "object") {
@@ -1154,25 +1336,25 @@ var C = {
1154
1336
  this[t] = e[t];
1155
1337
  });
1156
1338
  }
1157
- }, tt = /* @__PURE__ */ n((e) => {
1158
- let t = new et();
1339
+ }, bt = /* @__PURE__ */ n((e) => {
1340
+ let t = new yt();
1159
1341
  return t.calculate(e), t;
1160
- }, "getThemeVariables"), nt = class {
1342
+ }, "getThemeVariables"), xt = class {
1161
1343
  static {
1162
1344
  n(this, "Theme");
1163
1345
  }
1164
1346
  constructor() {
1165
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = k(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 = P("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = P(this.sectionBkgColor, 10), this.taskBorderColor = k(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = k(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 || N(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || P(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";
1347
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(I("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = A(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 = A(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = A(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";
1166
1348
  }
1167
1349
  updateColors() {
1168
- this.secondBkg = N(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 = N(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 = N(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = I(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 });
1350
+ 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 = I(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = 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 });
1169
1351
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1170
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
1171
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1352
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10);
1353
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1172
1354
  h: 30,
1173
1355
  s: -30,
1174
1356
  l: -(-10 + e * 4)
1175
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1357
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1176
1358
  h: 30,
1177
1359
  s: -30,
1178
1360
  l: -(-7 + e * 4)
@@ -1181,32 +1363,32 @@ var C = {
1181
1363
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1182
1364
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1183
1365
  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";
1184
- for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? N(this["cScale" + e], 30);
1185
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1366
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? M(this["cScale" + e], 30);
1367
+ 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, {
1186
1368
  r: 5,
1187
1369
  g: 5,
1188
1370
  b: 5
1189
- }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1371
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1190
1372
  r: 10,
1191
1373
  g: 10,
1192
1374
  b: 10
1193
- }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1375
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1194
1376
  r: 15,
1195
1377
  g: 15,
1196
1378
  b: 15
1197
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1379
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1198
1380
  r: -5,
1199
1381
  g: -5,
1200
1382
  b: -5
1201
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1383
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1202
1384
  r: -10,
1203
1385
  g: -10,
1204
1386
  b: -10
1205
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1387
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1206
1388
  r: -15,
1207
1389
  g: -15,
1208
1390
  b: -15
1209
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1391
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
1210
1392
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1211
1393
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1212
1394
  dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
@@ -1250,7 +1432,7 @@ var C = {
1250
1432
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1251
1433
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1252
1434
  annotationFill: this.wardley?.annotationFill || this.mainBkg
1253
- }, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = N(this.secondaryColor, 20), this.git1 = N(this.pie2 || this.secondaryColor, 20), this.git2 = N(this.pie3 || this.tertiaryColor, 20), this.git3 = N(this.pie4 || F(this.primaryColor, { h: -30 }), 20), this.git4 = N(this.pie5 || F(this.primaryColor, { h: -60 }), 20), this.git5 = N(this.pie6 || F(this.primaryColor, { h: -90 }), 10), this.git6 = N(this.pie7 || F(this.primaryColor, { h: 60 }), 10), this.git7 = N(this.pie8 || F(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || N("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || N("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || N("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || N("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || N(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || N(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || N(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || N(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1435
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || M("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || M("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || M("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || M("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || M(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || M(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || M(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || M(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1254
1436
  }
1255
1437
  calculate(e) {
1256
1438
  if (typeof e != "object") {
@@ -1264,24 +1446,24 @@ var C = {
1264
1446
  this[t] = e[t];
1265
1447
  });
1266
1448
  }
1267
- }, W = /* @__PURE__ */ n((e) => {
1268
- let t = new nt();
1449
+ }, St = /* @__PURE__ */ n((e) => {
1450
+ let t = new xt();
1269
1451
  return t.calculate(e), t;
1270
- }, "getThemeVariables"), rt = class {
1452
+ }, "getThemeVariables"), Ct = class {
1271
1453
  static {
1272
1454
  n(this, "Theme");
1273
1455
  }
1274
1456
  constructor() {
1275
- this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = F(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = U(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 = k(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();
1457
+ 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 = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = U(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 = A(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();
1276
1458
  }
1277
1459
  updateColors() {
1278
- this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || P(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || P(this.tertiaryColor, 40);
1279
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 25);
1280
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e], { h: 180 });
1281
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1460
+ 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);
1461
+ 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);
1462
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || P(this["cScale" + e], { h: 180 });
1463
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1282
1464
  h: 30,
1283
1465
  l: -(5 + e * 5)
1284
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1466
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1285
1467
  h: 30,
1286
1468
  l: -(7 + e * 5)
1287
1469
  });
@@ -1289,64 +1471,64 @@ var C = {
1289
1471
  this.cScaleLabel0 = this.cScaleLabel0 || I(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || I(this.labelTextColor);
1290
1472
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1291
1473
  }
1292
- 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 || N(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || F(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || F(this.primaryColor, {
1474
+ 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, {
1293
1475
  h: 60,
1294
1476
  l: -20
1295
- }), this.pie8 = this.pie8 || F(this.primaryColor, {
1477
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1296
1478
  h: -60,
1297
1479
  l: -40
1298
- }), this.pie9 = this.pie9 || F(this.primaryColor, {
1480
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1299
1481
  h: 120,
1300
1482
  l: -40
1301
- }), this.pie10 = this.pie10 || F(this.primaryColor, {
1483
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1302
1484
  h: 60,
1303
1485
  l: -40
1304
- }), this.pie11 = this.pie11 || F(this.primaryColor, {
1486
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1305
1487
  h: -90,
1306
1488
  l: -40
1307
- }), this.pie12 = this.pie12 || F(this.primaryColor, {
1489
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1308
1490
  h: 120,
1309
1491
  l: -30
1310
- }), 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 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
1492
+ }), 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, {
1311
1493
  h: 60,
1312
1494
  l: -30
1313
- }), this.venn5 = this.venn5 ?? F(this.primaryColor, {
1495
+ }), this.venn5 = this.venn5 ?? P(this.primaryColor, {
1314
1496
  h: -60,
1315
1497
  l: -30
1316
- }), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
1498
+ }), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
1317
1499
  h: 60,
1318
1500
  l: -30
1319
- }), this.venn7 = this.venn7 ?? F(this.primaryColor, {
1501
+ }), this.venn7 = this.venn7 ?? P(this.primaryColor, {
1320
1502
  h: 120,
1321
1503
  l: -30
1322
- }), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
1504
+ }), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
1323
1505
  h: 120,
1324
1506
  l: -30
1325
- }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1507
+ }), 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, {
1326
1508
  r: 5,
1327
1509
  g: 5,
1328
1510
  b: 5
1329
- }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1511
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1330
1512
  r: 10,
1331
1513
  g: 10,
1332
1514
  b: 10
1333
- }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1515
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1334
1516
  r: 15,
1335
1517
  g: 15,
1336
1518
  b: 15
1337
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1519
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1338
1520
  r: -5,
1339
1521
  g: -5,
1340
1522
  b: -5
1341
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1523
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1342
1524
  r: -10,
1343
1525
  g: -10,
1344
1526
  b: -10
1345
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1527
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1346
1528
  r: -15,
1347
1529
  g: -15,
1348
1530
  b: -15
1349
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1531
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
1350
1532
  axisColor: this.radar?.axisColor || this.lineColor,
1351
1533
  axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1352
1534
  axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
@@ -1383,7 +1565,7 @@ var C = {
1383
1565
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1384
1566
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1385
1567
  plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1386
- }, 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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || P(I(this.git0), 25), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1568
+ }, 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(I(this.git0), 25), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1387
1569
  }
1388
1570
  calculate(e) {
1389
1571
  if (Object.keys(this).forEach((e) => {
@@ -1399,92 +1581,92 @@ var C = {
1399
1581
  this[t] = e[t];
1400
1582
  });
1401
1583
  }
1402
- }, it = /* @__PURE__ */ n((e) => {
1403
- let t = new rt();
1584
+ }, wt = /* @__PURE__ */ n((e) => {
1585
+ let t = new Ct();
1404
1586
  return t.calculate(e), t;
1405
- }, "getThemeVariables"), at = class {
1587
+ }, "getThemeVariables"), Tt = class {
1406
1588
  static {
1407
1589
  n(this, "Theme");
1408
1590
  }
1409
1591
  constructor() {
1410
- 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 = N("#cde498", 10), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.primaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1592
+ 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 = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.primaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1411
1593
  }
1412
1594
  updateColors() {
1413
- this.actorBorder = P(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || P(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || P(this.tertiaryColor, 40);
1414
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 25);
1415
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e], { h: 180 });
1595
+ 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);
1596
+ 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);
1597
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || P(this["cScale" + e], { h: 180 });
1416
1598
  this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1417
1599
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1418
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1600
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1419
1601
  h: 30,
1420
1602
  s: -30,
1421
1603
  l: -(5 + e * 5)
1422
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1604
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1423
1605
  h: 30,
1424
1606
  s: -30,
1425
1607
  l: -(8 + e * 5)
1426
1608
  });
1427
- 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 || N(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(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 || F(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || F(this.tertiaryColor, {
1609
+ 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, {
1428
1610
  h: 40,
1429
1611
  l: -40
1430
- }), this.pie7 = this.pie7 || F(this.primaryColor, {
1612
+ }), this.pie7 = this.pie7 || P(this.primaryColor, {
1431
1613
  h: 60,
1432
1614
  l: -10
1433
- }), this.pie8 = this.pie8 || F(this.primaryColor, {
1615
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1434
1616
  h: -60,
1435
1617
  l: -10
1436
- }), this.pie9 = this.pie9 || F(this.primaryColor, {
1618
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1437
1619
  h: 120,
1438
1620
  l: 0
1439
- }), this.pie10 = this.pie10 || F(this.primaryColor, {
1621
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1440
1622
  h: 60,
1441
1623
  l: -50
1442
- }), this.pie11 = this.pie11 || F(this.primaryColor, {
1624
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1443
1625
  h: -60,
1444
1626
  l: -50
1445
- }), this.pie12 = this.pie12 || F(this.primaryColor, {
1627
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1446
1628
  h: 120,
1447
1629
  l: -50
1448
- }), 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 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
1630
+ }), 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, {
1449
1631
  h: 60,
1450
1632
  l: -30
1451
- }), this.venn5 = this.venn5 ?? F(this.primaryColor, {
1633
+ }), this.venn5 = this.venn5 ?? P(this.primaryColor, {
1452
1634
  h: -60,
1453
1635
  l: -30
1454
- }), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
1636
+ }), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
1455
1637
  h: 60,
1456
1638
  l: -30
1457
- }), this.venn7 = this.venn7 ?? F(this.primaryColor, {
1639
+ }), this.venn7 = this.venn7 ?? P(this.primaryColor, {
1458
1640
  h: 120,
1459
1641
  l: -30
1460
- }), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
1642
+ }), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
1461
1643
  h: 120,
1462
1644
  l: -30
1463
- }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1645
+ }), 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, {
1464
1646
  r: 5,
1465
1647
  g: 5,
1466
1648
  b: 5
1467
- }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1649
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1468
1650
  r: 10,
1469
1651
  g: 10,
1470
1652
  b: 10
1471
- }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1653
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1472
1654
  r: 15,
1473
1655
  g: 15,
1474
1656
  b: 15
1475
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1657
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1476
1658
  r: -5,
1477
1659
  g: -5,
1478
1660
  b: -5
1479
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1661
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1480
1662
  r: -10,
1481
1663
  g: -10,
1482
1664
  b: -10
1483
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1665
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1484
1666
  r: -15,
1485
1667
  g: -15,
1486
1668
  b: -15
1487
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1669
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
1488
1670
  startByteColor: this.primaryTextColor,
1489
1671
  endByteColor: this.primaryTextColor,
1490
1672
  labelColor: this.primaryTextColor,
@@ -1528,7 +1710,7 @@ var C = {
1528
1710
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1529
1711
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1530
1712
  plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1531
- }, 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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1713
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1532
1714
  }
1533
1715
  calculate(e) {
1534
1716
  if (typeof e != "object") {
@@ -1542,52 +1724,52 @@ var C = {
1542
1724
  this[t] = e[t];
1543
1725
  });
1544
1726
  }
1545
- }, ot = /* @__PURE__ */ n((e) => {
1546
- let t = new at();
1727
+ }, Et = /* @__PURE__ */ n((e) => {
1728
+ let t = new Tt();
1547
1729
  return t.calculate(e), t;
1548
- }, "getThemeVariables"), st = class {
1730
+ }, "getThemeVariables"), Dt = class {
1549
1731
  static {
1550
1732
  n(this, "Theme");
1551
1733
  }
1552
1734
  constructor() {
1553
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = N(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || N(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))";
1735
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = M(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || 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))";
1554
1736
  }
1555
1737
  updateColors() {
1556
- this.secondBkg = N(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = N(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";
1738
+ 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";
1557
1739
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1558
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1740
+ 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);
1559
1741
  this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1560
1742
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1561
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, { l: -(8 + e * 5) });
1562
- 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 = N(this.contrast, 30), this.sectionBkgColor2 = N(this.contrast, 30), this.taskBorderColor = P(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 = N(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = P(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(this.secondaryColor, { h: 128 });
1743
+ 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) });
1744
+ 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 });
1563
1745
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1564
1746
  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";
1565
1747
  for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1566
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
1748
+ 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, {
1567
1749
  r: 5,
1568
1750
  g: 5,
1569
1751
  b: 5
1570
- }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1752
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1571
1753
  r: 10,
1572
1754
  g: 10,
1573
1755
  b: 10
1574
- }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1756
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1575
1757
  r: 15,
1576
1758
  g: 15,
1577
1759
  b: 15
1578
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1760
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1579
1761
  r: -5,
1580
1762
  g: -5,
1581
1763
  b: -5
1582
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1764
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1583
1765
  r: -10,
1584
1766
  g: -10,
1585
1767
  b: -10
1586
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1768
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1587
1769
  r: -15,
1588
1770
  g: -15,
1589
1771
  b: -15
1590
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1772
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
1591
1773
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1592
1774
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1593
1775
  dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
@@ -1624,7 +1806,7 @@ var C = {
1624
1806
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1625
1807
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1626
1808
  annotationFill: this.wardley?.annotationFill || this.background
1627
- }, 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 = P(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || F(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || F(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || F(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || F(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || F(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1809
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1628
1810
  }
1629
1811
  calculate(e) {
1630
1812
  if (typeof e != "object") {
@@ -1638,10 +1820,10 @@ var C = {
1638
1820
  this[t] = e[t];
1639
1821
  });
1640
1822
  }
1641
- }, ct = /* @__PURE__ */ n((e) => {
1642
- let t = new st();
1823
+ }, Ot = /* @__PURE__ */ n((e) => {
1824
+ let t = new Dt();
1643
1825
  return t.calculate(e), t;
1644
- }, "getThemeVariables"), lt = class {
1826
+ }, "getThemeVariables"), kt = class {
1645
1827
  static {
1646
1828
  n(this, "Theme");
1647
1829
  }
@@ -1649,76 +1831,76 @@ var C = {
1649
1831
  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 = U(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";
1650
1832
  }
1651
1833
  updateColors() {
1652
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
1834
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
1653
1835
  h: 180,
1654
1836
  l: 5
1655
- }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
1656
- let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
1837
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? 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 || I(this.lineColor);
1838
+ let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
1657
1839
  h: 180,
1658
1840
  l: 5
1659
1841
  });
1660
- 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 || N(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 || F(e, { h: 30 }), this.cScale4 = this.cScale4 || F(e, { h: 60 }), this.cScale5 = this.cScale5 || F(e, { h: 90 }), this.cScale6 = this.cScale6 || F(e, { h: 120 }), this.cScale7 = this.cScale7 || F(e, { h: 150 }), this.cScale8 = this.cScale8 || F(e, {
1842
+ 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, {
1661
1843
  h: 210,
1662
1844
  l: 150
1663
- }), this.cScale9 = this.cScale9 || F(e, { h: 270 }), this.cScale10 = this.cScale10 || F(e, { h: 300 }), this.cScale11 = this.cScale11 || F(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1664
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
1845
+ }), 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);
1846
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1665
1847
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1666
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1848
+ 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);
1667
1849
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1668
1850
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1669
1851
  let r = this.darkMode ? -4 : -1;
1670
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
1852
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1671
1853
  h: 180,
1672
1854
  s: -15,
1673
1855
  l: r * (5 + e * 3)
1674
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
1856
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1675
1857
  h: 180,
1676
1858
  s: -15,
1677
1859
  l: r * (8 + e * 3)
1678
1860
  });
1679
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
1861
+ 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, {
1680
1862
  h: 60,
1681
1863
  l: -10
1682
- }), this.pie8 = this.pie8 || F(e, {
1864
+ }), this.pie8 = this.pie8 || P(e, {
1683
1865
  h: -60,
1684
1866
  l: -10
1685
- }), this.pie9 = this.pie9 || F(e, {
1867
+ }), this.pie9 = this.pie9 || P(e, {
1686
1868
  h: 120,
1687
1869
  l: 0
1688
- }), this.pie10 = this.pie10 || F(e, {
1870
+ }), this.pie10 = this.pie10 || P(e, {
1689
1871
  h: 60,
1690
1872
  l: -20
1691
- }), this.pie11 = this.pie11 || F(e, {
1873
+ }), this.pie11 = this.pie11 || P(e, {
1692
1874
  h: -60,
1693
1875
  l: -20
1694
- }), this.pie12 = this.pie12 || F(e, {
1876
+ }), this.pie12 = this.pie12 || P(e, {
1695
1877
  h: 120,
1696
1878
  l: -10
1697
- }), 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 || F(e, {
1879
+ }), 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, {
1698
1880
  r: 5,
1699
1881
  g: 5,
1700
1882
  b: 5
1701
- }), this.quadrant3Fill = this.quadrant3Fill || F(e, {
1883
+ }), this.quadrant3Fill = this.quadrant3Fill || P(e, {
1702
1884
  r: 10,
1703
1885
  g: 10,
1704
1886
  b: 10
1705
- }), this.quadrant4Fill = this.quadrant4Fill || F(e, {
1887
+ }), this.quadrant4Fill = this.quadrant4Fill || P(e, {
1706
1888
  r: 15,
1707
1889
  g: 15,
1708
1890
  b: 15
1709
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1891
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1710
1892
  r: -5,
1711
1893
  g: -5,
1712
1894
  b: -5
1713
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1895
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1714
1896
  r: -10,
1715
1897
  g: -10,
1716
1898
  b: -10
1717
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
1899
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1718
1900
  r: -15,
1719
1901
  g: -15,
1720
1902
  b: -15
1721
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
1903
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
1722
1904
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1723
1905
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1724
1906
  xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
@@ -1730,7 +1912,7 @@ var C = {
1730
1912
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1731
1913
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1732
1914
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1733
- }, 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 ? P(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 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1915
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1734
1916
  }
1735
1917
  calculate(e) {
1736
1918
  if (typeof e != "object") {
@@ -1744,82 +1926,82 @@ var C = {
1744
1926
  this[t] = e[t];
1745
1927
  });
1746
1928
  }
1747
- }, G = /* @__PURE__ */ n((e) => {
1748
- let t = new lt();
1929
+ }, At = /* @__PURE__ */ n((e) => {
1930
+ let t = new kt();
1749
1931
  return t.calculate(e), t;
1750
- }, "getThemeVariables"), ut = class {
1932
+ }, "getThemeVariables"), W = class {
1751
1933
  static {
1752
1934
  n(this, "Theme");
1753
1935
  }
1754
1936
  constructor() {
1755
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1937
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = A(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1756
1938
  }
1757
1939
  updateColors() {
1758
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
1940
+ 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, {
1759
1941
  h: 180,
1760
1942
  l: 5
1761
- }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
1943
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? 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 || I(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, {
1762
1944
  h: 210,
1763
1945
  l: 150
1764
- }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1765
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
1946
+ }), 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);
1947
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1766
1948
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1767
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1949
+ 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);
1768
1950
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1769
1951
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1770
1952
  let e = this.darkMode ? -4 : -1;
1771
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
1953
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
1772
1954
  h: 180,
1773
1955
  s: -15,
1774
1956
  l: e * (5 + t * 3)
1775
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
1957
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
1776
1958
  h: 180,
1777
1959
  s: -15,
1778
1960
  l: e * (8 + t * 3)
1779
1961
  });
1780
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
1962
+ 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, {
1781
1963
  h: 60,
1782
1964
  l: -10
1783
- }), this.pie8 = this.pie8 || F(this.primaryColor, {
1965
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1784
1966
  h: -60,
1785
1967
  l: -10
1786
- }), this.pie9 = this.pie9 || F(this.primaryColor, {
1968
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1787
1969
  h: 120,
1788
1970
  l: 0
1789
- }), this.pie10 = this.pie10 || F(this.primaryColor, {
1971
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1790
1972
  h: 60,
1791
1973
  l: -20
1792
- }), this.pie11 = this.pie11 || F(this.primaryColor, {
1974
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1793
1975
  h: -60,
1794
1976
  l: -20
1795
- }), this.pie12 = this.pie12 || F(this.primaryColor, {
1977
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
1796
1978
  h: 120,
1797
1979
  l: -10
1798
- }), 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 || F(this.primaryColor, {
1980
+ }), 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, {
1799
1981
  r: 5,
1800
1982
  g: 5,
1801
1983
  b: 5
1802
- }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
1984
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
1803
1985
  r: 10,
1804
1986
  g: 10,
1805
1987
  b: 10
1806
- }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
1988
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
1807
1989
  r: 15,
1808
1990
  g: 15,
1809
1991
  b: 15
1810
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
1992
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1811
1993
  r: -5,
1812
1994
  g: -5,
1813
1995
  b: -5
1814
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
1996
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1815
1997
  r: -10,
1816
1998
  g: -10,
1817
1999
  b: -10
1818
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
2000
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1819
2001
  r: -15,
1820
2002
  g: -15,
1821
2003
  b: -15
1822
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
2004
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
1823
2005
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1824
2006
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1825
2007
  xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
@@ -1831,7 +2013,7 @@ var C = {
1831
2013
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1832
2014
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1833
2015
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1834
- }, 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 ? P(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 = 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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2016
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1835
2017
  }
1836
2018
  calculate(e) {
1837
2019
  if (typeof e != "object") {
@@ -1845,10 +2027,10 @@ var C = {
1845
2027
  this[t] = e[t];
1846
2028
  });
1847
2029
  }
1848
- }, dt = /* @__PURE__ */ n((e) => {
1849
- let t = new ut();
2030
+ }, jt = /* @__PURE__ */ n((e) => {
2031
+ let t = new W();
1850
2032
  return t.calculate(e), t;
1851
- }, "getThemeVariables"), ft = class {
2033
+ }, "getThemeVariables"), Mt = class {
1852
2034
  static {
1853
2035
  n(this, "Theme");
1854
2036
  }
@@ -1856,75 +2038,75 @@ var C = {
1856
2038
  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 = U("#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";
1857
2039
  }
1858
2040
  updateColors() {
1859
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
2041
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
1860
2042
  h: 180,
1861
2043
  l: 5
1862
- }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
1863
- let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
2044
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? 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 || I(this.lineColor);
2045
+ let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
1864
2046
  h: 180,
1865
2047
  l: 5
1866
2048
  });
1867
- 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 || N(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;
2049
+ 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;
1868
2050
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
1869
- if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1870
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
2051
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
2052
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1871
2053
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1872
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
2054
+ 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);
1873
2055
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1874
2056
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1875
2057
  let r = this.darkMode ? -4 : -1;
1876
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
2058
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
1877
2059
  h: 180,
1878
2060
  s: -15,
1879
2061
  l: r * (5 + e * 3)
1880
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
2062
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
1881
2063
  h: 180,
1882
2064
  s: -15,
1883
2065
  l: r * (8 + e * 3)
1884
2066
  });
1885
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
2067
+ 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, {
1886
2068
  h: 60,
1887
2069
  l: -10
1888
- }), this.pie8 = this.pie8 || F(e, {
2070
+ }), this.pie8 = this.pie8 || P(e, {
1889
2071
  h: -60,
1890
2072
  l: -10
1891
- }), this.pie9 = this.pie9 || F(e, {
2073
+ }), this.pie9 = this.pie9 || P(e, {
1892
2074
  h: 120,
1893
2075
  l: 0
1894
- }), this.pie10 = this.pie10 || F(e, {
2076
+ }), this.pie10 = this.pie10 || P(e, {
1895
2077
  h: 60,
1896
2078
  l: -20
1897
- }), this.pie11 = this.pie11 || F(e, {
2079
+ }), this.pie11 = this.pie11 || P(e, {
1898
2080
  h: -60,
1899
2081
  l: -20
1900
- }), this.pie12 = this.pie12 || F(e, {
2082
+ }), this.pie12 = this.pie12 || P(e, {
1901
2083
  h: 120,
1902
2084
  l: -10
1903
- }), 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 || F(e, {
2085
+ }), 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, {
1904
2086
  r: 5,
1905
2087
  g: 5,
1906
2088
  b: 5
1907
- }), this.quadrant3Fill = this.quadrant3Fill || F(e, {
2089
+ }), this.quadrant3Fill = this.quadrant3Fill || P(e, {
1908
2090
  r: 10,
1909
2091
  g: 10,
1910
2092
  b: 10
1911
- }), this.quadrant4Fill = this.quadrant4Fill || F(e, {
2093
+ }), this.quadrant4Fill = this.quadrant4Fill || P(e, {
1912
2094
  r: 15,
1913
2095
  g: 15,
1914
2096
  b: 15
1915
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
2097
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
1916
2098
  r: -5,
1917
2099
  g: -5,
1918
2100
  b: -5
1919
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
2101
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
1920
2102
  r: -10,
1921
2103
  g: -10,
1922
2104
  b: -10
1923
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
2105
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
1924
2106
  r: -15,
1925
2107
  g: -15,
1926
2108
  b: -15
1927
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
2109
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
1928
2110
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1929
2111
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1930
2112
  xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
@@ -1936,7 +2118,7 @@ var C = {
1936
2118
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1937
2119
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1938
2120
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1939
- }, 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 ? P(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 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2121
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
1940
2122
  }
1941
2123
  calculate(e) {
1942
2124
  if (typeof e != "object") {
@@ -1950,82 +2132,82 @@ var C = {
1950
2132
  this[t] = e[t];
1951
2133
  });
1952
2134
  }
1953
- }, pt = /* @__PURE__ */ n((e) => {
1954
- let t = new ft();
2135
+ }, Nt = /* @__PURE__ */ n((e) => {
2136
+ let t = new Mt();
1955
2137
  return t.calculate(e), t;
1956
- }, "getThemeVariables"), mt = class {
2138
+ }, "getThemeVariables"), Pt = class {
1957
2139
  static {
1958
2140
  n(this, "Theme");
1959
2141
  }
1960
2142
  constructor() {
1961
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
2143
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = A(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
1962
2144
  }
1963
2145
  updateColors() {
1964
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
2146
+ 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, {
1965
2147
  h: 180,
1966
2148
  l: 5
1967
- }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
2149
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? 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 || I(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, {
1968
2150
  h: 210,
1969
2151
  l: 150
1970
- }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
1971
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
2152
+ }), 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);
2153
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
1972
2154
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
1973
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
2155
+ 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);
1974
2156
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1975
2157
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1976
2158
  let e = this.darkMode ? -4 : -1;
1977
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
2159
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
1978
2160
  h: 180,
1979
2161
  s: -15,
1980
2162
  l: e * (5 + t * 3)
1981
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
2163
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
1982
2164
  h: 180,
1983
2165
  s: -15,
1984
2166
  l: e * (8 + t * 3)
1985
2167
  });
1986
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
2168
+ 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, {
1987
2169
  h: 60,
1988
2170
  l: -10
1989
- }), this.pie8 = this.pie8 || F(this.primaryColor, {
2171
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
1990
2172
  h: -60,
1991
2173
  l: -10
1992
- }), this.pie9 = this.pie9 || F(this.primaryColor, {
2174
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
1993
2175
  h: 120,
1994
2176
  l: 0
1995
- }), this.pie10 = this.pie10 || F(this.primaryColor, {
2177
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
1996
2178
  h: 60,
1997
2179
  l: -20
1998
- }), this.pie11 = this.pie11 || F(this.primaryColor, {
2180
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
1999
2181
  h: -60,
2000
2182
  l: -20
2001
- }), this.pie12 = this.pie12 || F(this.primaryColor, {
2183
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
2002
2184
  h: 120,
2003
2185
  l: -10
2004
- }), 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 || F(this.primaryColor, {
2186
+ }), 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, {
2005
2187
  r: 5,
2006
2188
  g: 5,
2007
2189
  b: 5
2008
- }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
2190
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
2009
2191
  r: 10,
2010
2192
  g: 10,
2011
2193
  b: 10
2012
- }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
2194
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
2013
2195
  r: 15,
2014
2196
  g: 15,
2015
2197
  b: 15
2016
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
2198
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
2017
2199
  r: -5,
2018
2200
  g: -5,
2019
2201
  b: -5
2020
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
2202
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
2021
2203
  r: -10,
2022
2204
  g: -10,
2023
2205
  b: -10
2024
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
2206
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
2025
2207
  r: -15,
2026
2208
  g: -15,
2027
2209
  b: -15
2028
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
2210
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
2029
2211
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2030
2212
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2031
2213
  xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
@@ -2037,7 +2219,7 @@ var C = {
2037
2219
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2038
2220
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2039
2221
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2040
- }, 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 ? P(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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2222
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2041
2223
  }
2042
2224
  calculate(e) {
2043
2225
  if (typeof e != "object") {
@@ -2051,10 +2233,10 @@ var C = {
2051
2233
  this[t] = e[t];
2052
2234
  });
2053
2235
  }
2054
- }, ht = /* @__PURE__ */ n((e) => {
2055
- let t = new mt();
2236
+ }, Ft = /* @__PURE__ */ n((e) => {
2237
+ let t = new Pt();
2056
2238
  return t.calculate(e), t;
2057
- }, "getThemeVariables"), gt = class {
2239
+ }, "getThemeVariables"), It = class {
2058
2240
  static {
2059
2241
  n(this, "Theme");
2060
2242
  }
@@ -2088,72 +2270,72 @@ var C = {
2088
2270
  ], this.filterColor = "#000000";
2089
2271
  }
2090
2272
  updateColors() {
2091
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
2273
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
2092
2274
  h: 180,
2093
2275
  l: 5
2094
- }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
2095
- let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
2276
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? 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 || I(this.lineColor);
2277
+ let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
2096
2278
  h: 180,
2097
2279
  l: 5
2098
2280
  });
2099
- 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 || N(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";
2281
+ 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";
2100
2282
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
2101
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
2283
+ 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);
2102
2284
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2103
2285
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2104
2286
  let r = this.darkMode ? -4 : -1;
2105
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
2287
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
2106
2288
  h: 180,
2107
2289
  s: -15,
2108
2290
  l: r * (5 + e * 3)
2109
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
2291
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
2110
2292
  h: 180,
2111
2293
  s: -15,
2112
2294
  l: r * (8 + e * 3)
2113
2295
  });
2114
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
2296
+ 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, {
2115
2297
  h: 60,
2116
2298
  l: -10
2117
- }), this.pie8 = this.pie8 || F(e, {
2299
+ }), this.pie8 = this.pie8 || P(e, {
2118
2300
  h: -60,
2119
2301
  l: -10
2120
- }), this.pie9 = this.pie9 || F(e, {
2302
+ }), this.pie9 = this.pie9 || P(e, {
2121
2303
  h: 120,
2122
2304
  l: 0
2123
- }), this.pie10 = this.pie10 || F(e, {
2305
+ }), this.pie10 = this.pie10 || P(e, {
2124
2306
  h: 60,
2125
2307
  l: -20
2126
- }), this.pie11 = this.pie11 || F(e, {
2308
+ }), this.pie11 = this.pie11 || P(e, {
2127
2309
  h: -60,
2128
2310
  l: -20
2129
- }), this.pie12 = this.pie12 || F(e, {
2311
+ }), this.pie12 = this.pie12 || P(e, {
2130
2312
  h: 120,
2131
2313
  l: -10
2132
- }), 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 || F(e, {
2314
+ }), 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, {
2133
2315
  r: 5,
2134
2316
  g: 5,
2135
2317
  b: 5
2136
- }), this.quadrant3Fill = this.quadrant3Fill || F(e, {
2318
+ }), this.quadrant3Fill = this.quadrant3Fill || P(e, {
2137
2319
  r: 10,
2138
2320
  g: 10,
2139
2321
  b: 10
2140
- }), this.quadrant4Fill = this.quadrant4Fill || F(e, {
2322
+ }), this.quadrant4Fill = this.quadrant4Fill || P(e, {
2141
2323
  r: 15,
2142
2324
  g: 15,
2143
2325
  b: 15
2144
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
2326
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
2145
2327
  r: -5,
2146
2328
  g: -5,
2147
2329
  b: -5
2148
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
2330
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
2149
2331
  r: -10,
2150
2332
  g: -10,
2151
2333
  b: -10
2152
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
2334
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
2153
2335
  r: -15,
2154
2336
  g: -15,
2155
2337
  b: -15
2156
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
2338
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
2157
2339
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2158
2340
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2159
2341
  xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
@@ -2165,7 +2347,7 @@ var C = {
2165
2347
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2166
2348
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2167
2349
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2168
- }, 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 ? P(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 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2350
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2169
2351
  }
2170
2352
  calculate(e) {
2171
2353
  if (typeof e != "object") {
@@ -2179,15 +2361,15 @@ var C = {
2179
2361
  this[t] = e[t];
2180
2362
  });
2181
2363
  }
2182
- }, _t = /* @__PURE__ */ n((e) => {
2183
- let t = new gt();
2364
+ }, Lt = /* @__PURE__ */ n((e) => {
2365
+ let t = new It();
2184
2366
  return t.calculate(e), t;
2185
- }, "getThemeVariables"), vt = class {
2367
+ }, "getThemeVariables"), G = class {
2186
2368
  static {
2187
2369
  n(this, "Theme");
2188
2370
  }
2189
2371
  constructor() {
2190
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2372
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = A(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2191
2373
  "#E879F9",
2192
2374
  "#2DD4BF",
2193
2375
  "#FB923C",
@@ -2203,67 +2385,67 @@ var C = {
2203
2385
  ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2204
2386
  }
2205
2387
  updateColors() {
2206
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
2388
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
2207
2389
  h: 180,
2208
2390
  l: 5
2209
- }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(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";
2391
+ }), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? 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 || I(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";
2210
2392
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
2211
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
2393
+ 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);
2212
2394
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2213
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = P(this["cScale" + e], 75);
2395
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = N(this["cScale" + e], 75);
2214
2396
  let e = this.darkMode ? -4 : -1;
2215
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
2397
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
2216
2398
  h: 180,
2217
2399
  s: -15,
2218
2400
  l: e * (5 + t * 3)
2219
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
2401
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
2220
2402
  h: 180,
2221
2403
  s: -15,
2222
2404
  l: e * (8 + t * 3)
2223
2405
  });
2224
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
2406
+ 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, {
2225
2407
  h: 60,
2226
2408
  l: -10
2227
- }), this.pie8 = this.pie8 || F(this.primaryColor, {
2409
+ }), this.pie8 = this.pie8 || P(this.primaryColor, {
2228
2410
  h: -60,
2229
2411
  l: -10
2230
- }), this.pie9 = this.pie9 || F(this.primaryColor, {
2412
+ }), this.pie9 = this.pie9 || P(this.primaryColor, {
2231
2413
  h: 120,
2232
2414
  l: 0
2233
- }), this.pie10 = this.pie10 || F(this.primaryColor, {
2415
+ }), this.pie10 = this.pie10 || P(this.primaryColor, {
2234
2416
  h: 60,
2235
2417
  l: -20
2236
- }), this.pie11 = this.pie11 || F(this.primaryColor, {
2418
+ }), this.pie11 = this.pie11 || P(this.primaryColor, {
2237
2419
  h: -60,
2238
2420
  l: -20
2239
- }), this.pie12 = this.pie12 || F(this.primaryColor, {
2421
+ }), this.pie12 = this.pie12 || P(this.primaryColor, {
2240
2422
  h: 120,
2241
2423
  l: -10
2242
- }), 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 || F(this.primaryColor, {
2424
+ }), 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, {
2243
2425
  r: 5,
2244
2426
  g: 5,
2245
2427
  b: 5
2246
- }), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
2428
+ }), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
2247
2429
  r: 10,
2248
2430
  g: 10,
2249
2431
  b: 10
2250
- }), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
2432
+ }), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
2251
2433
  r: 15,
2252
2434
  g: 15,
2253
2435
  b: 15
2254
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
2436
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
2255
2437
  r: -5,
2256
2438
  g: -5,
2257
2439
  b: -5
2258
- }), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
2440
+ }), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
2259
2441
  r: -10,
2260
2442
  g: -10,
2261
2443
  b: -10
2262
- }), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
2444
+ }), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
2263
2445
  r: -15,
2264
2446
  g: -15,
2265
2447
  b: -15
2266
- }), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
2448
+ }), this.quadrantPointFill = this.quadrantPointFill || j(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 = {
2267
2449
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2268
2450
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2269
2451
  xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
@@ -2275,7 +2457,7 @@ var C = {
2275
2457
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2276
2458
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2277
2459
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2278
- }, 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 ? P(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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2460
+ }, 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 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
2279
2461
  }
2280
2462
  calculate(e) {
2281
2463
  if (typeof e != "object") {
@@ -2290,18 +2472,18 @@ var C = {
2290
2472
  });
2291
2473
  }
2292
2474
  }, K = {
2293
- base: { getThemeVariables: tt },
2294
- dark: { getThemeVariables: W },
2295
- default: { getThemeVariables: it },
2296
- forest: { getThemeVariables: ot },
2297
- neutral: { getThemeVariables: ct },
2298
- neo: { getThemeVariables: G },
2299
- "neo-dark": { getThemeVariables: dt },
2300
- redux: { getThemeVariables: pt },
2301
- "redux-dark": { getThemeVariables: ht },
2302
- "redux-color": { getThemeVariables: _t },
2475
+ base: { getThemeVariables: bt },
2476
+ dark: { getThemeVariables: St },
2477
+ default: { getThemeVariables: wt },
2478
+ forest: { getThemeVariables: Et },
2479
+ neutral: { getThemeVariables: Ot },
2480
+ neo: { getThemeVariables: At },
2481
+ "neo-dark": { getThemeVariables: jt },
2482
+ redux: { getThemeVariables: Nt },
2483
+ "redux-dark": { getThemeVariables: Ft },
2484
+ "redux-color": { getThemeVariables: Lt },
2303
2485
  "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2304
- let t = new vt();
2486
+ let t = new G();
2305
2487
  return t.calculate(e), t;
2306
2488
  }, "getThemeVariables") }
2307
2489
  }, q = {
@@ -2826,7 +3008,7 @@ var C = {
2826
3008
  fontSize: 16,
2827
3009
  markdownAutoWrap: !0,
2828
3010
  suppressErrorRendering: !1
2829
- }, yt = {
3011
+ }, Rt = {
2830
3012
  ...q,
2831
3013
  deterministicIDSeed: void 0,
2832
3014
  elk: {
@@ -3069,18 +3251,18 @@ var C = {
3069
3251
  valueFormat: ","
3070
3252
  },
3071
3253
  venn: { ...q.venn }
3072
- }, bt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3254
+ }, zt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3073
3255
  ...n,
3074
3256
  t + r,
3075
- ...bt(e[r], "")
3076
- ] : [...n, t + r], []), "keyify"), xt = new Set(bt(yt, "")), St = yt, Ct = /* @__PURE__ */ n((e) => {
3257
+ ...zt(e[r], "")
3258
+ ] : [...n, t + r], []), "keyify"), Bt = new Set(zt(Rt, "")), Vt = Rt, Ht = /* @__PURE__ */ n((e) => {
3077
3259
  if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3078
3260
  if (Array.isArray(e)) {
3079
- e.forEach((e) => Ct(e));
3261
+ e.forEach((e) => Ht(e));
3080
3262
  return;
3081
3263
  }
3082
3264
  for (let n of Object.keys(e)) {
3083
- if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !xt.has(n) || e[n] == null) {
3265
+ if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Bt.has(n) || e[n] == null) {
3084
3266
  t.debug("sanitize deleting key: ", n), delete e[n];
3085
3267
  continue;
3086
3268
  }
@@ -3088,14 +3270,14 @@ var C = {
3088
3270
  if (n === "nodeColors") {
3089
3271
  let r = /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;
3090
3272
  for (let i of Object.keys(e[n])) (typeof e[n][i] != "string" || !r.test(e[n][i])) && (t.debug("sanitize deleting invalid color:", i, e[n][i]), delete e[n][i]);
3091
- } else t.debug("sanitizing object", n), Ct(e[n]);
3273
+ } else t.debug("sanitizing object", n), Ht(e[n]);
3092
3274
  continue;
3093
3275
  }
3094
3276
  for (let r of [
3095
3277
  "themeCSS",
3096
3278
  "fontFamily",
3097
3279
  "altFontFamily"
3098
- ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = wt(e[n]));
3280
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = Ut(e[n]));
3099
3281
  }
3100
3282
  if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3101
3283
  let n = e.themeVariables[t];
@@ -3103,159 +3285,159 @@ var C = {
3103
3285
  }
3104
3286
  t.debug("After sanitization", e);
3105
3287
  }
3106
- }, "sanitizeDirective"), wt = /* @__PURE__ */ n((e) => {
3288
+ }, "sanitizeDirective"), Ut = /* @__PURE__ */ n((e) => {
3107
3289
  let t = 0, n = 0;
3108
3290
  for (let r of e) {
3109
3291
  if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3110
3292
  r === "{" ? t++ : r === "}" && n++;
3111
3293
  }
3112
3294
  return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3113
- }, "sanitizeCss"), J = Object.freeze(St), Y = /* @__PURE__ */ n((e) => !(e === !1 || [
3295
+ }, "sanitizeCss"), Wt = Object.freeze(Vt), Gt = /* @__PURE__ */ n((e) => !(e === !1 || [
3114
3296
  "false",
3115
3297
  "null",
3116
3298
  "0"
3117
- ].includes(String(e).trim().toLowerCase())), "evaluate"), X = B({}, J), Tt, Z = [], Q = B({}, J), $ = /* @__PURE__ */ n((e, t) => {
3299
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), J = B({}, Wt), Y, X = [], Kt = B({}, Wt), qt = /* @__PURE__ */ n((e, t) => {
3118
3300
  let n = B({}, e), r = {};
3119
- for (let e of t) Mt(e), r = B(r, e);
3301
+ for (let e of t) en(e), r = B(r, e);
3120
3302
  if (n = B(n, r), r.theme && r.theme in K) {
3121
- let e = B(B({}, Tt).themeVariables || {}, r.themeVariables);
3303
+ let e = B(B({}, Y).themeVariables || {}, r.themeVariables);
3122
3304
  n.theme && n.theme in K && (n.themeVariables = K[n.theme].getThemeVariables(e));
3123
3305
  }
3124
- return Q = n, Rt(Q), Q;
3125
- }, "updateCurrentConfig"), Et = /* @__PURE__ */ n((e) => (X = B({}, J), X = B(X, e), e.theme && K[e.theme] && (X.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), $(X, Z), X), "setSiteConfig"), Dt = /* @__PURE__ */ n((e) => {
3126
- Tt = B({}, e);
3127
- }, "saveConfigFromInitialize"), Ot = /* @__PURE__ */ n((e) => (X = B(X, e), $(X, Z), X), "updateSiteConfig"), kt = /* @__PURE__ */ n(() => B({}, X), "getSiteConfig"), At = /* @__PURE__ */ n((e) => (Rt(e), B(Q, e), jt()), "setConfig"), jt = /* @__PURE__ */ n(() => B({}, Q), "getConfig"), Mt = /* @__PURE__ */ n((e) => {
3128
- e && (["secure", ...X.secure ?? []].forEach((n) => {
3306
+ return Kt = n, sn(Kt), Kt;
3307
+ }, "updateCurrentConfig"), Jt = /* @__PURE__ */ n((e) => (J = B({}, Wt), J = B(J, e), e.theme && K[e.theme] && (J.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), qt(J, X), J), "setSiteConfig"), Yt = /* @__PURE__ */ n((e) => {
3308
+ Y = B({}, e);
3309
+ }, "saveConfigFromInitialize"), Xt = /* @__PURE__ */ n((e) => (J = B(J, e), qt(J, X), J), "updateSiteConfig"), Zt = /* @__PURE__ */ n(() => B({}, J), "getSiteConfig"), Qt = /* @__PURE__ */ n((e) => (sn(e), B(Kt, e), $t()), "setConfig"), $t = /* @__PURE__ */ n(() => B({}, Kt), "getConfig"), en = /* @__PURE__ */ n((e) => {
3310
+ e && (["secure", ...J.secure ?? []].forEach((n) => {
3129
3311
  Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3130
3312
  }), Object.keys(e).forEach((t) => {
3131
3313
  t.startsWith("__") && delete e[t];
3132
3314
  }), Object.keys(e).forEach((t) => {
3133
- typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Mt(e[t]);
3315
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && en(e[t]);
3134
3316
  }));
3135
- }, "sanitize"), Nt = /* @__PURE__ */ n((e) => {
3136
- Ct(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3317
+ }, "sanitize"), tn = /* @__PURE__ */ n((e) => {
3318
+ Ht(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3137
3319
  ...e.themeVariables,
3138
3320
  fontFamily: e.fontFamily
3139
- }), Z.push(e), $(X, Z);
3140
- }, "addDirective"), Pt = /* @__PURE__ */ n((e = X) => {
3141
- Z = [], $(e, Z);
3142
- }, "reset"), Ft = {
3321
+ }), X.push(e), qt(J, X);
3322
+ }, "addDirective"), nn = /* @__PURE__ */ n((e = J) => {
3323
+ X = [], qt(e, X);
3324
+ }, "reset"), rn = {
3143
3325
  LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3144
3326
  FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3145
- }, It = {}, Lt = /* @__PURE__ */ n((e) => {
3146
- It[e] || (t.warn(Ft[e]), It[e] = !0);
3147
- }, "issueWarning"), Rt = /* @__PURE__ */ n((e) => {
3148
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Lt("LAZY_LOAD_DEPRECATED");
3149
- }, "checkConfig"), zt = /* @__PURE__ */ n(() => {
3327
+ }, an = {}, on = /* @__PURE__ */ n((e) => {
3328
+ an[e] || (t.warn(rn[e]), an[e] = !0);
3329
+ }, "issueWarning"), sn = /* @__PURE__ */ n((e) => {
3330
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && on("LAZY_LOAD_DEPRECATED");
3331
+ }, "checkConfig"), cn = /* @__PURE__ */ n(() => {
3150
3332
  let e = {};
3151
- Tt && (e = B(e, Tt));
3152
- for (let t of Z) e = B(e, t);
3333
+ Y && (e = B(e, Y));
3334
+ for (let t of X) e = B(e, t);
3153
3335
  return e;
3154
- }, "getUserDefinedConfig"), Bt = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && Lt("FLOWCHART_HTML_LABELS_DEPRECATED"), Y(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Vt = /<br\s*\/?>/gi, Ht = /* @__PURE__ */ n((e) => e ? Qt(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Ut = /* @__PURE__ */ (() => {
3336
+ }, "getUserDefinedConfig"), ln = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && on("FLOWCHART_HTML_LABELS_DEPRECATED"), Gt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Z = /<br\s*\/?>/gi, un = /* @__PURE__ */ n((e) => e ? vn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), dn = /* @__PURE__ */ (() => {
3155
3337
  let e = !1;
3156
3338
  return () => {
3157
- e ||= (Wt(), !0);
3339
+ e ||= (fn(), !0);
3158
3340
  };
3159
3341
  })();
3160
- function Wt() {
3342
+ function fn() {
3161
3343
  let e = "data-temp-href-target";
3162
- b.addHook("beforeSanitizeAttributes", (t) => {
3344
+ T.addHook("beforeSanitizeAttributes", (t) => {
3163
3345
  t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3164
- }), b.addHook("afterSanitizeAttributes", (t) => {
3346
+ }), T.addHook("afterSanitizeAttributes", (t) => {
3165
3347
  t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3166
3348
  });
3167
3349
  }
3168
- n(Wt, "setupDompurifyHooks");
3169
- var Gt = /* @__PURE__ */ n((e) => (Ut(), b.sanitize(e)), "removeScript"), Kt = /* @__PURE__ */ n((e, t) => {
3170
- if (Bt(t)) {
3350
+ n(fn, "setupDompurifyHooks");
3351
+ var Q = /* @__PURE__ */ n((e) => (dn(), T.sanitize(e)), "removeScript"), pn = /* @__PURE__ */ n((e, t) => {
3352
+ if (ln(t)) {
3171
3353
  let n = t.securityLevel;
3172
- n === "antiscript" || n === "strict" || n === "sandbox" ? e = Gt(e) : n !== "loose" && (e = Qt(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Zt(e));
3354
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = Q(e) : n !== "loose" && (e = vn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = _n(e));
3173
3355
  }
3174
3356
  return e;
3175
- }, "sanitizeMore"), qt = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? b.sanitize(Kt(e, t), t.dompurifyConfig).toString() : b.sanitize(Kt(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Jt = /* @__PURE__ */ n((e, t) => typeof e == "string" ? qt(e, t) : e.flat().map((e) => qt(e, t)), "sanitizeTextOrArray"), Yt = /* @__PURE__ */ n((e) => Vt.test(e), "hasBreaks"), Xt = /* @__PURE__ */ n((e) => e.split(Vt), "splitBreaks"), Zt = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Qt = /* @__PURE__ */ n((e) => e.replace(Vt, "#br#"), "breakToPlaceholder"), $t = /* @__PURE__ */ n((e) => {
3357
+ }, "sanitizeMore"), $ = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? T.sanitize(pn(e, t), t.dompurifyConfig).toString() : T.sanitize(pn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), mn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? $(e, t) : e.flat().map((e) => $(e, t)), "sanitizeTextOrArray"), hn = /* @__PURE__ */ n((e) => Z.test(e), "hasBreaks"), gn = /* @__PURE__ */ n((e) => e.split(Z), "splitBreaks"), _n = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), vn = /* @__PURE__ */ n((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), yn = /* @__PURE__ */ n((e) => {
3176
3358
  let t = "";
3177
3359
  return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3178
- }, "getUrl"), en = /* @__PURE__ */ n(function(...e) {
3360
+ }, "getUrl"), bn = /* @__PURE__ */ n(function(...e) {
3179
3361
  let t = e.filter((e) => !isNaN(e));
3180
3362
  return Math.max(...t);
3181
- }, "getMax"), tn = /* @__PURE__ */ n(function(...e) {
3363
+ }, "getMax"), xn = /* @__PURE__ */ n(function(...e) {
3182
3364
  let t = e.filter((e) => !isNaN(e));
3183
3365
  return Math.min(...t);
3184
- }, "getMin"), nn = /* @__PURE__ */ n(function(e) {
3366
+ }, "getMin"), Sn = /* @__PURE__ */ n(function(e) {
3185
3367
  let t = e.split(/(,)/), n = [];
3186
3368
  for (let e = 0; e < t.length; e++) {
3187
3369
  let r = t[e];
3188
3370
  if (r === "," && e > 0 && e + 1 < t.length) {
3189
3371
  let i = t[e - 1], a = t[e + 1];
3190
- an(i, a) && (r = i + "," + a, e++, n.pop());
3372
+ wn(i, a) && (r = i + "," + a, e++, n.pop());
3191
3373
  }
3192
- n.push(on(r));
3374
+ n.push(Tn(r));
3193
3375
  }
3194
3376
  return n.join("");
3195
- }, "parseGenericTypes"), rn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), an = /* @__PURE__ */ n((e, t) => {
3196
- let n = rn(e, "~"), r = rn(t, "~");
3377
+ }, "parseGenericTypes"), Cn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), wn = /* @__PURE__ */ n((e, t) => {
3378
+ let n = Cn(e, "~"), r = Cn(t, "~");
3197
3379
  return n === 1 && r === 1;
3198
- }, "shouldCombineSets"), on = /* @__PURE__ */ n((e) => {
3199
- let t = rn(e, "~"), n = !1;
3380
+ }, "shouldCombineSets"), Tn = /* @__PURE__ */ n((e) => {
3381
+ let t = Cn(e, "~"), n = !1;
3200
3382
  if (t <= 1) return e;
3201
3383
  t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3202
3384
  let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3203
3385
  for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3204
3386
  return n && r.unshift("~"), r.join("");
3205
- }, "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) => {
3387
+ }, "processSet"), En = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Dn = /\$\$(.*)\$\$/g, On = /* @__PURE__ */ n((e) => (e.match(Dn)?.length ?? 0) > 0, "hasKatex"), kn = /* @__PURE__ */ n(async (e, t) => {
3206
3388
  let n = document.createElement("div");
3207
- 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);
3389
+ n.innerHTML = await jn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3208
3390
  let r = {
3209
3391
  width: n.clientWidth,
3210
3392
  height: n.clientHeight
3211
3393
  };
3212
3394
  return n.remove(), r;
3213
- }, "calculateMathMLDimensions"), dn = /* @__PURE__ */ n(async (e, t) => {
3214
- if (!ln(e)) return e;
3215
- if (!(sn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(cn, "MathML is unsupported in this environment.");
3395
+ }, "calculateMathMLDimensions"), An = /* @__PURE__ */ n(async (e, t) => {
3396
+ if (!On(e)) return e;
3397
+ if (!(En() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Dn, "MathML is unsupported in this environment.");
3216
3398
  {
3217
- let { default: n } = await import("./katex-DWDh1q_h.js"), r = t.forceLegacyMathML || !sn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3218
- return e.split(Vt).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, {
3399
+ let { default: n } = await import("./katex-D-2KeLwt.js"), r = t.forceLegacyMathML || !En() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3400
+ return e.split(Z).map((e) => On(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Dn, (e, t) => n.renderToString(t, {
3219
3401
  throwOnError: !0,
3220
3402
  displayMode: !0,
3221
3403
  output: r
3222
3404
  }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3223
3405
  }
3224
- return e.replace(cn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3225
- }, "renderKatexUnsanitized"), fn = /* @__PURE__ */ n(async (e, t) => qt(await dn(e, t), t), "renderKatexSanitized"), pn = {
3226
- getRows: Ht,
3227
- sanitizeText: qt,
3228
- sanitizeTextOrArray: Jt,
3229
- hasBreaks: Yt,
3230
- splitBreaks: Xt,
3231
- lineBreakRegex: Vt,
3232
- removeScript: Gt,
3233
- getUrl: $t,
3234
- evaluate: Y,
3235
- getMax: en,
3236
- getMin: tn
3237
- }, mn = /* @__PURE__ */ n(function(e, t) {
3406
+ return e.replace(Dn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3407
+ }, "renderKatexUnsanitized"), jn = /* @__PURE__ */ n(async (e, t) => $(await An(e, t), t), "renderKatexSanitized"), Mn = {
3408
+ getRows: un,
3409
+ sanitizeText: $,
3410
+ sanitizeTextOrArray: mn,
3411
+ hasBreaks: hn,
3412
+ splitBreaks: gn,
3413
+ lineBreakRegex: Z,
3414
+ removeScript: Q,
3415
+ getUrl: yn,
3416
+ evaluate: Gt,
3417
+ getMax: bn,
3418
+ getMin: xn
3419
+ }, Nn = /* @__PURE__ */ n(function(e, t) {
3238
3420
  for (let n of t) e.attr(n[0], n[1]);
3239
- }, "d3Attrs"), hn = /* @__PURE__ */ n(function(e, t, n) {
3421
+ }, "d3Attrs"), Pn = /* @__PURE__ */ n(function(e, t, n) {
3240
3422
  let r = /* @__PURE__ */ new Map();
3241
3423
  return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3242
- }, "calculateSvgSizeAttrs"), gn = /* @__PURE__ */ n(function(e, t, n, r) {
3243
- mn(e, hn(t, n, r));
3244
- }, "configureSvgSize"), _n = /* @__PURE__ */ n(function(e, n, r, i) {
3424
+ }, "calculateSvgSizeAttrs"), Fn = /* @__PURE__ */ n(function(e, t, n, r) {
3425
+ Nn(e, Pn(t, n, r));
3426
+ }, "configureSvgSize"), In = /* @__PURE__ */ n(function(e, n, r, i) {
3245
3427
  let a = n.node().getBBox(), o = a.width, s = a.height;
3246
3428
  t.info(`SVG bounds: ${o}x${s}`, a);
3247
3429
  let c = 0, l = 0;
3248
- 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);
3430
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Fn(n, l, c, i);
3249
3431
  let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3250
3432
  n.attr("viewBox", u);
3251
- }, "setupGraphViewbox"), vn = {};
3252
- function yn(e) {
3433
+ }, "setupGraphViewbox"), Ln = {};
3434
+ function Rn(e) {
3253
3435
  return [...e.cssRules].map((e) => e.cssText).join("\n");
3254
3436
  }
3255
- n(yn, "cssStyleSheetToString");
3256
- var bn = /* @__PURE__ */ n((e, n, r, i) => {
3437
+ n(Rn, "cssStyleSheetToString");
3438
+ var zn = /* @__PURE__ */ n((e, n, r, i) => {
3257
3439
  let a = "";
3258
- return e in vn && vn[e] ? a = vn[e]({
3440
+ return e in Ln && Ln[e] ? a = Ln[e]({
3259
3441
  ...r,
3260
3442
  svgId: i
3261
3443
  }) : t.warn(`No theme found for ${e}`), ` & {
@@ -3377,32 +3559,32 @@ var bn = /* @__PURE__ */ n((e, n, r, i) => {
3377
3559
 
3378
3560
  ${n}
3379
3561
  `;
3380
- }, "getStyles"), xn = /* @__PURE__ */ n((e, t) => {
3381
- t !== void 0 && (vn[e] = t);
3382
- }, "addStylesForDiagram"), Sn = bn, Cn = {};
3383
- r(Cn, {
3384
- clear: () => On,
3385
- getAccDescription: () => Mn,
3386
- getAccTitle: () => An,
3387
- getDiagramTitle: () => Pn,
3388
- setAccDescription: () => jn,
3389
- setAccTitle: () => kn,
3390
- setDiagramTitle: () => Nn
3562
+ }, "getStyles"), Bn = /* @__PURE__ */ n((e, t) => {
3563
+ t !== void 0 && (Ln[e] = t);
3564
+ }, "addStylesForDiagram"), Vn = zn, Hn = {};
3565
+ r(Hn, {
3566
+ clear: () => qn,
3567
+ getAccDescription: () => Zn,
3568
+ getAccTitle: () => Yn,
3569
+ getDiagramTitle: () => $n,
3570
+ setAccDescription: () => Xn,
3571
+ setAccTitle: () => Jn,
3572
+ setDiagramTitle: () => Qn
3391
3573
  });
3392
- var wn = "", Tn = "", En = "", Dn = /* @__PURE__ */ n((e) => qt(e, jt()), "sanitizeText"), On = /* @__PURE__ */ n(() => {
3393
- wn = "", En = "", Tn = "";
3394
- }, "clear"), kn = /* @__PURE__ */ n((e) => {
3395
- wn = Dn(e).replace(/^\s+/g, "");
3396
- }, "setAccTitle"), An = /* @__PURE__ */ n(() => wn, "getAccTitle"), jn = /* @__PURE__ */ n((e) => {
3397
- En = Dn(e).replace(/\n\s+/g, "\n");
3398
- }, "setAccDescription"), Mn = /* @__PURE__ */ n(() => En, "getAccDescription"), Nn = /* @__PURE__ */ n((e) => {
3399
- Tn = Dn(e);
3400
- }, "setDiagramTitle"), Pn = /* @__PURE__ */ n(() => Tn, "getDiagramTitle"), Fn = t, In = e, Ln = jt, Rn = At, zn = J, Bn = /* @__PURE__ */ n((e) => qt(e, Ln()), "sanitizeText"), Vn = _n, Hn = /* @__PURE__ */ n(() => Cn, "getCommonDb"), Un = {}, Wn = /* @__PURE__ */ n((e, t, n) => {
3401
- Un[e] && Fn.warn(`Diagram with id ${e} already registered. Overwriting.`), Un[e] = t, n && Qe(e, n), xn(e, t.styles), t.injectUtils?.(Fn, In, Ln, Bn, Vn, Hn(), () => {});
3402
- }, "registerDiagram"), Gn = /* @__PURE__ */ n((e) => {
3403
- if (e in Un) return Un[e];
3404
- throw new Kn(e);
3405
- }, "getDiagram"), Kn = class extends Error {
3574
+ var Un = "", Wn = "", Gn = "", Kn = /* @__PURE__ */ n((e) => $(e, $t()), "sanitizeText"), qn = /* @__PURE__ */ n(() => {
3575
+ Un = "", Gn = "", Wn = "";
3576
+ }, "clear"), Jn = /* @__PURE__ */ n((e) => {
3577
+ Un = Kn(e).replace(/^\s+/g, "");
3578
+ }, "setAccTitle"), Yn = /* @__PURE__ */ n(() => Un, "getAccTitle"), Xn = /* @__PURE__ */ n((e) => {
3579
+ Gn = Kn(e).replace(/\n\s+/g, "\n");
3580
+ }, "setAccDescription"), Zn = /* @__PURE__ */ n(() => Gn, "getAccDescription"), Qn = /* @__PURE__ */ n((e) => {
3581
+ Wn = Kn(e);
3582
+ }, "setDiagramTitle"), $n = /* @__PURE__ */ n(() => Wn, "getDiagramTitle"), er = t, tr = e, nr = $t, rr = Qt, ir = Wt, ar = /* @__PURE__ */ n((e) => $(e, nr()), "sanitizeText"), or = In, sr = /* @__PURE__ */ n(() => Hn, "getCommonDb"), cr = {}, lr = /* @__PURE__ */ n((e, t, n) => {
3583
+ cr[e] && er.warn(`Diagram with id ${e} already registered. Overwriting.`), cr[e] = t, n && gt(e, n), Bn(e, t.styles), t.injectUtils?.(er, tr, nr, ar, or, sr(), () => {});
3584
+ }, "registerDiagram"), ur = /* @__PURE__ */ n((e) => {
3585
+ if (e in cr) return cr[e];
3586
+ throw new dr(e);
3587
+ }, "getDiagram"), dr = class extends Error {
3406
3588
  static {
3407
3589
  n(this, "DiagramNotFoundError");
3408
3590
  }
@@ -3411,4 +3593,4 @@ var wn = "", Tn = "", En = "", Dn = /* @__PURE__ */ n((e) => qt(e, jt()), "sanit
3411
3593
  }
3412
3594
  };
3413
3595
  //#endregion
3414
- export { P as $, ln as A, Bn as B, $e as C, it as D, kt as E, fn as F, Rn as G, jn as H, Pt as I, _n as J, Nn as K, wt as L, nn as M, Wn as N, $t as O, R as P, Ot as Q, Ct as R, Gn as S, Bt as T, kn as U, Dt as V, At as W, Sn as X, Vn as Y, K as Z, qe as _, On as a, x as at, jt as b, gn as c, zn as d, N as et, St as f, Y as g, Je as h, un as i, O as it, Vt as j, zt as k, yn as l, L as m, Nt as n, j as nt, Cn as o, b as ot, Ze as p, Et as q, B as r, k as rt, pn as s, Xe as t, M as tt, J as u, Mn as v, Pn as w, Ln as x, An as y, qt as z };
3596
+ export { N as $, On as A, ar as B, _t as C, wt as D, Zt as E, jn as F, rr as G, Xn as H, nn as I, In as J, Qn as K, Ut as L, Sn as M, lr as N, yn as O, ht as P, Xt as Q, Ht as R, ur as S, ln as T, Jn as U, Yt as V, Qt as W, Vn as X, or as Y, K as Z, L as _, qn as a, E as at, $t as b, Fn as c, ir as d, M as et, Vt as f, Gt as g, ft as h, kn as i, k as it, Z as j, cn as k, Rn as l, mt as m, tn as n, j as nt, Hn as o, T as ot, z as p, Jt as q, B as r, A as rt, Mn as s, pt as t, dt as tt, Wt as u, Zn as v, $n as w, nr as x, Yn as y, $ as z };