@sme.up/ketchup2 2.8.2 → 2.10.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 (212) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-VCTEODGH-jIDWUpNo.js} +3 -3
  2. package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-5GKGNRK7-C1xA1c3c.js} +5 -5
  3. package/dist/assets/img/calendar.png +0 -0
  4. package/dist/basic-components/button/button-types.d.ts +2 -2
  5. package/dist/basic-components/cell/cell-types.d.ts +7 -6
  6. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  7. package/dist/basic-components/cell/cell-utils.d.ts +10 -4
  8. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  9. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  10. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  11. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  12. package/dist/basic-components/date-picker/date-picker-types.d.ts +2 -2
  13. package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
  14. package/dist/basic-components/file-upload/file-upload-types.d.ts +6 -3
  15. package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
  16. package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
  17. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  18. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  19. package/dist/basic-components/radio/radio.d.ts.map +1 -1
  20. package/dist/basic-components/slider/slider.d.ts.map +1 -1
  21. package/dist/basic-components/text/text-types.d.ts +3 -1
  22. package/dist/basic-components/text/text-types.d.ts.map +1 -1
  23. package/dist/basic-components/text/text.d.ts.map +1 -1
  24. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  25. package/dist/basic-components/textfield/textfield-types.d.ts +3 -3
  26. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  27. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  28. package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
  29. package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-I7D4REHJ-C0hlmHW8.js} +9 -9
  30. package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-7LVT6UL2-DwTMAxzR.js} +7 -7
  31. package/dist/{channel-CuEby436.js → channel-BD0NTdCR.js} +1 -1
  32. package/dist/{chunk-2E4U76K2-ComA5SPA.js → chunk-2E4U76K2-CMCSmJ5_.js} +6 -6
  33. package/dist/{chunk-4HAMMTFA-CZgIgrp_.js → chunk-4HAMMTFA-DBtV-sHy.js} +5 -5
  34. package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-75Z2AOVW-CLjRECiG.js} +1 -1
  35. package/dist/{chunk-CLGD4ZFX-CLGio9rD.js → chunk-CLGD4ZFX-DdntjE3C.js} +1 -1
  36. package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DU6HZSFF-D9v_2L4Z.js} +950 -860
  37. package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-F27PBJKO-DPhiW07t.js} +1 -1
  38. package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-GMAD6QVW-Cnp61Cie.js} +3 -3
  39. package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-GVQU2GXP-BJ9OHC7T.js} +2 -2
  40. package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → chunk-IMKFNOWR-yyUcHorm.js} +5 -5
  41. package/dist/{chunk-L3NEJ4N5-qPot4t6M.js → chunk-L3NEJ4N5-Dd1FmxFn.js} +5 -5
  42. package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-OSK3NFVY-qg1q5TTI.js} +7 -7
  43. package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-P2QGCYS3-667SFjNY.js} +1 -1
  44. package/dist/{chunk-POPQ4Y6H-CU9oz17Z.js → chunk-POPQ4Y6H-YFNrkrJW.js} +1 -1
  45. package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-PWAF6VOD-z0rQy52m.js} +1 -1
  46. package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-SHT3W25Y-aBBFlrSX.js} +7 -7
  47. package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-SVP7TREG-f53BROgh.js} +2 -2
  48. package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → chunk-TICWLB2K-DzrOz9kL.js} +5 -5
  49. package/dist/{chunk-TLUHSLCS-BdsLNXjt.js → chunk-TLUHSLCS-Drk6ApJR.js} +8 -8
  50. package/dist/classDiagram-ZZMXUADV-CaI6YU6r.js +30 -0
  51. package/dist/classDiagram-v2-VYDZK3BY-ClCVTcLo.js +30 -0
  52. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
  53. package/dist/components/box-list/box-list.d.ts.map +1 -1
  54. package/dist/components/calendar/calendar-types.d.ts +37 -1
  55. package/dist/components/calendar/calendar-types.d.ts.map +1 -1
  56. package/dist/components/calendar/calendar-utils.d.ts +99 -9
  57. package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
  58. package/dist/components/calendar/calendar.d.ts.map +1 -1
  59. package/dist/components/calendar/views/calendar-event-text.d.ts +12 -0
  60. package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
  61. package/dist/components/calendar/views/calendar-month-grid.d.ts +11 -2
  62. package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
  63. package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
  64. package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
  65. package/dist/components/calendar/views/calendar-time-grid.d.ts +12 -2
  66. package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
  67. package/dist/components/data-table/data-table-types.d.ts +16 -1
  68. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  69. package/dist/components/data-table/data-table.d.ts.map +1 -1
  70. package/dist/components/data-table/fixed/fixed-utils.d.ts +63 -0
  71. package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
  72. package/dist/components/data-table/footer/footer-types.d.ts +3 -0
  73. package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
  74. package/dist/components/data-table/footer/footer.d.ts.map +1 -1
  75. package/dist/components/data-table/graphic-cell/graphic-cell-data.d.ts +3 -0
  76. package/dist/components/data-table/graphic-cell/graphic-cell-data.d.ts.map +1 -0
  77. package/dist/components/data-table/group-row/group-row-types.d.ts +9 -0
  78. package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
  79. package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
  80. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +9 -0
  81. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
  82. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  83. package/dist/components/data-table/header/header-types.d.ts +5 -0
  84. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  85. package/dist/components/data-table/state/datatable-state.d.ts +1 -1
  86. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  87. package/dist/components/drawer/drawer.d.ts.map +1 -1
  88. package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts +14 -0
  89. package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts.map +1 -0
  90. package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts +11 -0
  91. package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts.map +1 -0
  92. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
  93. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
  94. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
  95. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
  96. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
  97. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
  98. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
  99. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
  100. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
  101. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
  102. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
  103. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
  104. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
  105. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
  106. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
  107. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
  108. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
  109. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
  110. package/dist/components/echarts-graph/echarts-graph-types.d.ts +210 -0
  111. package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
  112. package/dist/components/echarts-graph/echarts-graph.d.ts +15 -0
  113. package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
  114. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
  115. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
  116. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
  117. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
  118. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
  119. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
  120. package/dist/components/field/field.d.ts.map +1 -1
  121. package/dist/components/input-panel/assets/data.d.ts +1 -0
  122. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  123. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  124. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  125. package/dist/components/pdf/pdf-types.d.ts +32 -1
  126. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  127. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  128. package/dist/components/pdf/pdf.d.ts.map +1 -1
  129. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  130. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
  131. package/dist/context/interaction-context.d.ts +16 -0
  132. package/dist/context/interaction-context.d.ts.map +1 -0
  133. package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-5FMLGOSQ-3SByb22K.js} +3 -3
  134. package/dist/{dagre-GXQ25YYZ-Bg7xf6xn.js → dagre-GXQ25YYZ--Qf92cTs.js} +10 -10
  135. package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-S7CK7UJ4-IhyDbKSO.js} +4 -4
  136. package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-UQ7AKVKN-CPDZJAkA.js} +3 -3
  137. package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-VSXAHHWV-CdX3XaQX.js} +2 -2
  138. package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-VX7I27RA-DX39g4aO.js} +5 -5
  139. package/dist/{diagram-Z3DM3KII-B6BrLhP0.js → diagram-Z3DM3KII-DECfAI1l.js} +3 -3
  140. package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-PWID7BFC-D0cmYo-k.js} +3 -3
  141. package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-RLTQ6QDP-C-nlwQZa.js} +12 -12
  142. package/dist/flowDiagram-HODETNUW-LRjksS-j.js +17 -0
  143. package/dist/functional-components/badge/badge-assets.d.ts +1 -0
  144. package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
  145. package/dist/functional-components/badge/badge-utils.d.ts +5 -0
  146. package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
  147. package/dist/functional-components/badge/badge.d.ts.map +1 -1
  148. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -0
  149. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  150. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  151. package/dist/functional-components/row/row-types.d.ts +23 -0
  152. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  153. package/dist/functional-components/row/row.d.ts.map +1 -1
  154. package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-EL5Y4UJY-qQkBgEV6.js} +2 -2
  155. package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-WWUBYQGX-D8cZBZXB.js} +2 -2
  156. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
  157. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
  158. package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
  159. package/dist/hooks/useFloating.d.ts.map +1 -1
  160. package/dist/hooks/useVirtualListScroll.d.ts +8 -1
  161. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  162. package/dist/index.d.ts +8 -3
  163. package/dist/index.d.ts.map +1 -1
  164. package/dist/{infoDiagram-27XIBGKW-Je4heBlk.js → infoDiagram-27XIBGKW-DXO97_PJ.js} +2 -2
  165. package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-5VMMS53U-B0RvuZyG.js} +3 -3
  166. package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-3NMN7TZE-Dh8_Vc4e.js} +2 -2
  167. package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-UXKFOSKX-C99A4PsR.js} +9 -9
  168. package/dist/ketchup2.css +1 -1
  169. package/dist/ketchup2.es.js +33764 -31209
  170. package/dist/{line-DTqYMLoX.js → line-CkNoVxEr.js} +1 -1
  171. package/dist/locale/en/translation.json.d.ts +5 -0
  172. package/dist/locale/it/translation.json.d.ts +5 -0
  173. package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-YA3MSWOX-D0ULN6M8.js} +11 -11
  174. package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-XKGWAZYB-BThnA3Uk.js} +3 -3
  175. package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-E7YTZNPT-CJ4LPitY.js} +3 -3
  176. package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-AXDQQJYC-nEwzg95_.js} +1 -1
  177. package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-O6MQD6OU-D_9gvx5m.js} +3 -3
  178. package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-BXWQKSXE-BU3gTMjQ.js} +11 -11
  179. package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-P5KCCOFB-BmNN-6y3.js} +1 -1
  180. package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-WJ2MYXX4-QYJxbuz_.js} +3 -3
  181. package/dist/{stateDiagram-D77RDMKH-YfzmviNY.js → stateDiagram-D77RDMKH-0Jasv70t.js} +14 -14
  182. package/dist/stateDiagram-v2-MP3YSRHH-JMSv8IGL.js +30 -0
  183. package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-42K2YHIH-DkMzBkx7.js} +10 -10
  184. package/dist/swimlanesDiagram-VR7AAH4N-DtnUyaK5.js +31 -0
  185. package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-24CTP7MA-AvgVPsM_.js} +3 -3
  186. package/dist/types/data-structures.d.ts +7 -1
  187. package/dist/types/data-structures.d.ts.map +1 -1
  188. package/dist/types/generic.d.ts +1 -0
  189. package/dist/types/generic.d.ts.map +1 -1
  190. package/dist/types/translation.d.ts +6 -1
  191. package/dist/types/translation.d.ts.map +1 -1
  192. package/dist/utils/floating-layer.d.ts +11 -0
  193. package/dist/utils/floating-layer.d.ts.map +1 -0
  194. package/dist/utils/legacy.d.ts +7 -0
  195. package/dist/utils/legacy.d.ts.map +1 -1
  196. package/dist/utils/objects.d.ts +20 -1
  197. package/dist/utils/objects.d.ts.map +1 -1
  198. package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-4TSXK5OY-DBz_EnfL.js} +3 -3
  199. package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-VM6X3IG4-D4U_E7xl.js} +3 -3
  200. package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-S5SC5T6Z-aHqeFP13.js} +6 -6
  201. package/package.json +4 -2
  202. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
  203. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
  204. package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
  205. package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
  206. package/dist/components/echarts/echarts-graph.d.ts +0 -4
  207. package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
  208. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
  209. package/dist/hooks/useClickOutside.d.ts.map +0 -1
  210. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
  211. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
  212. /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
@@ -2,19 +2,25 @@ import { h as e, m as t } from "./src-DQoflmwT.js";
2
2
  import { n, t as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
3
  //#region node_modules/dompurify/dist/purify.es.mjs
4
4
  function i(e, t) {
5
+ this.v = e, this.k = t;
6
+ }
7
+ function a(e, t) {
5
8
  (t == null || t > e.length) && (t = e.length);
6
9
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
7
10
  return r;
8
11
  }
9
- function a(e) {
12
+ function o(e) {
10
13
  if (Array.isArray(e)) return e;
11
14
  }
12
- function o(e, t) {
15
+ function s(e, t) {
13
16
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14
17
  if (n != null) {
15
18
  var r, i, a, o, s = [], c = !0, l = !1;
16
19
  try {
17
- 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);
20
+ if (a = (n = n.call(e)).next, t === 0) {
21
+ if (Object(n) !== n) return;
22
+ c = !1;
23
+ } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
18
24
  } catch (e) {
19
25
  l = !0, i = e;
20
26
  } finally {
@@ -27,113 +33,170 @@ function o(e, t) {
27
33
  return s;
28
34
  }
29
35
  }
30
- function s() {
36
+ function c() {
31
37
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
32
38
  }
33
- function c(e, t) {
34
- return a(e) || o(e, t) || l(e, t) || s();
35
- }
36
39
  function l(e, t) {
40
+ return o(e) || s(e, t) || u(e, t) || c();
41
+ }
42
+ function u(e, t) {
37
43
  if (e) {
38
- if (typeof e == "string") return i(e, t);
44
+ if (typeof e == "string") return a(e, t);
39
45
  var n = {}.toString.call(e).slice(8, -1);
40
- 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;
46
+ 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) ? a(e, t) : void 0;
47
+ }
48
+ }
49
+ function d(e) {
50
+ var t, n;
51
+ function r(t, n) {
52
+ try {
53
+ var o = e[t](n), s = o.value, c = s instanceof i;
54
+ Promise.resolve(c ? s.v : s).then(function(n) {
55
+ if (c) {
56
+ var i = t === "return" && s.k ? t : "next";
57
+ if (!s.k || n.done) return r(i, n);
58
+ n = e[i](n).value;
59
+ }
60
+ a(!!o.done, n);
61
+ }, function(e) {
62
+ r("throw", e);
63
+ });
64
+ } catch (e) {
65
+ a(2, e);
66
+ }
41
67
  }
68
+ function a(e, i) {
69
+ e === 2 ? t.reject(i) : t.resolve({
70
+ value: i,
71
+ done: e
72
+ }), (t = t.next) ? r(t.key, t.arg) : n = null;
73
+ }
74
+ this._invoke = function(e, i) {
75
+ return new Promise(function(a, o) {
76
+ var s = {
77
+ key: e,
78
+ arg: i,
79
+ resolve: a,
80
+ reject: o,
81
+ next: null
82
+ };
83
+ n ? n = n.next = s : (t = n = s, r(e, i));
84
+ });
85
+ }, typeof e.return != "function" && (this.return = void 0);
42
86
  }
43
- 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;
87
+ d.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
88
+ return this;
89
+ }, d.prototype.next = function(e) {
90
+ return this._invoke("next", e);
91
+ }, d.prototype.throw = function(e) {
92
+ return this._invoke("throw", e);
93
+ }, d.prototype.return = function(e) {
94
+ return this._invoke("return", e);
95
+ };
96
+ var f = Object.entries, ee = Object.setPrototypeOf, te = Object.isFrozen, ne = Object.getPrototypeOf, re = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, ie = Object.create, ae = typeof Reflect < "u" && Reflect, oe = ae.apply, se = ae.construct;
44
97
  p ||= function(e) {
45
98
  return e;
46
99
  }, m ||= function(e) {
47
100
  return e;
48
- }, ie ||= function(e, t) {
101
+ }, oe ||= function(e, t) {
49
102
  var n = [...arguments].slice(2);
50
103
  return e.apply(t, n);
51
- }, ae ||= function(e) {
104
+ }, se ||= function(e) {
52
105
  return new e(...[...arguments].slice(1));
53
106
  };
54
- var oe = v(Array.prototype.forEach), se = v(Array.prototype.lastIndexOf), ce = v(Array.prototype.pop), le = v(Array.prototype.push), ue = v(Array.prototype.splice), de = Array.isArray, fe = v(String.prototype.toLowerCase), pe = v(String.prototype.toString), me = v(String.prototype.match), he = v(String.prototype.replace), ge = v(String.prototype.indexOf), _e = v(String.prototype.trim), ve = v(Number.prototype.toString), ye = v(Boolean.prototype.toString), h = typeof BigInt > "u" ? null : v(BigInt.prototype.toString), be = typeof Symbol > "u" ? null : v(Symbol.prototype.toString), g = v(Object.prototype.hasOwnProperty), xe = v(Object.prototype.toString), _ = v(RegExp.prototype.test), Se = Ce(TypeError);
55
- function v(e) {
107
+ var h = b(Array.prototype.forEach);
108
+ Array.prototype.indexOf;
109
+ var ce = b(Array.prototype.lastIndexOf), le = b(Array.prototype.pop), ue = b(Array.prototype.push), de = b(Array.prototype.slice), fe = b(Array.prototype.splice), pe = Array.isArray, me = De(Set), he = b(Set.prototype.add), ge = b(Set.prototype.has), _e = b(String.prototype.toLowerCase), ve = b(String.prototype.toString), ye = b(String.prototype.match), be = b(String.prototype.replace), xe = b(String.prototype.indexOf), Se = b(String.prototype.trim), Ce = b(Number.prototype.toString), we = b(Boolean.prototype.toString), Te = typeof BigInt > "u" ? null : b(BigInt.prototype.toString), Ee = typeof Symbol > "u" ? null : b(Symbol.prototype.toString), g = b(Object.prototype.hasOwnProperty), _ = b(Object.prototype.toString), v = b(RegExp.prototype.test), y = De(TypeError);
110
+ function b(e) {
56
111
  return function(t) {
57
112
  t instanceof RegExp && (t.lastIndex = 0);
58
113
  var n = [...arguments].slice(1);
59
- return ie(e, t, n);
114
+ return oe(e, t, n);
60
115
  };
61
116
  }
62
- function Ce(e) {
117
+ function De(e) {
63
118
  return function() {
64
- return ae(e, [...arguments]);
119
+ return se(e, [...arguments]);
65
120
  };
66
121
  }
67
- function y(e, t) {
68
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
69
- if (d && d(e, null), !de(t)) return e;
122
+ function x(e, t) {
123
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _e;
124
+ if (ee && ee(e, null), !pe(t)) return e;
70
125
  let r = t.length;
71
126
  for (; r--;) {
72
127
  let i = t[r];
73
128
  if (typeof i == "string") {
74
129
  let e = n(i);
75
- e !== i && (f(t) || (t[r] = e), i = e);
130
+ e !== i && (te(t) || (t[r] = e), i = e);
76
131
  }
77
132
  e[i] = !0;
78
133
  }
79
134
  return e;
80
135
  }
81
- function b(e) {
136
+ function Oe(e) {
82
137
  for (let t = 0; t < e.length; t++) g(e, t) || (e[t] = null);
83
138
  return e;
84
139
  }
85
- function x(e) {
86
- let t = ne(null);
87
- for (let r of u(e)) {
88
- var n = c(r, 2);
140
+ function S(e) {
141
+ let t = ie(null);
142
+ for (let r of f(e)) {
143
+ var n = l(r, 2);
89
144
  let i = n[0], a = n[1];
90
- g(e, i) && (t[i] = de(a) ? b(a) : a && typeof a == "object" && a.constructor === Object ? x(a) : a);
145
+ g(e, i) && (t[i] = pe(a) ? Oe(a) : a && typeof a == "object" && a.constructor === Object ? S(a) : a);
91
146
  }
92
147
  return t;
93
148
  }
94
- function we(e) {
149
+ function ke(e) {
95
150
  switch (typeof e) {
96
151
  case "string": return e;
97
- case "number": return ve(e);
98
- case "boolean": return ye(e);
99
- case "bigint": return h ? h(e) : "0";
100
- case "symbol": return be ? be(e) : "Symbol()";
101
- case "undefined": return xe(e);
152
+ case "number": return Ce(e);
153
+ case "boolean": return we(e);
154
+ case "bigint": return Te ? Te(e) : "0";
155
+ case "symbol": return Ee ? Ee(e) : "Symbol()";
156
+ case "undefined": return _(e);
102
157
  case "function":
103
158
  case "object": {
104
- if (e === null) return xe(e);
105
- let t = e, n = S(t, "toString");
159
+ if (e === null) return _(e);
160
+ let t = e, n = C(t, "toString");
106
161
  if (typeof n == "function") {
107
162
  let e = n(t);
108
- return typeof e == "string" ? e : xe(e);
163
+ return typeof e == "string" ? e : _(e);
109
164
  }
110
- return xe(e);
165
+ return _(e);
111
166
  }
112
- default: return xe(e);
167
+ default: return _(e);
113
168
  }
114
169
  }
115
- function S(e, t) {
170
+ function C(e, t) {
116
171
  for (; e !== null;) {
117
- let n = te(e, t);
172
+ let n = re(e, t);
118
173
  if (n) {
119
- if (n.get) return v(n.get);
120
- if (typeof n.value == "function") return v(n.value);
174
+ if (n.get) return b(n.get);
175
+ if (typeof n.value == "function") return b(n.value);
121
176
  }
122
- e = ee(e);
177
+ e = ne(e);
123
178
  }
124
179
  function n() {
125
180
  return null;
126
181
  }
127
182
  return n;
128
183
  }
129
- function Te(e) {
184
+ function Ae(e, t) {
185
+ for (; e !== null;) {
186
+ let n = re(e, t);
187
+ if (n) return n.get ? b(n.get) : null;
188
+ e = ne(e);
189
+ }
190
+ return null;
191
+ }
192
+ function je(e) {
130
193
  try {
131
- return _(e, ""), !0;
194
+ return v(e, ""), !0;
132
195
  } catch {
133
196
  return !1;
134
197
  }
135
198
  }
136
- var Ee = 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(".")), De = 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(".")), Oe = p([
199
+ var Me = 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(".")), Ne = 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(".")), Pe = p([
137
200
  "feBlend",
138
201
  "feColorMatrix",
139
202
  "feComponentTransfer",
@@ -159,7 +222,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
159
222
  "feSpotLight",
160
223
  "feTile",
161
224
  "feTurbulence"
162
- ]), ke = p([
225
+ ]), Fe = p([
163
226
  "animate",
164
227
  "color-profile",
165
228
  "cursor",
@@ -182,7 +245,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
182
245
  "solidcolor",
183
246
  "unknown",
184
247
  "use"
185
- ]), Ae = 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(".")), je = p([
248
+ ]), Ie = 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(".")), Le = p([
186
249
  "maction",
187
250
  "maligngroup",
188
251
  "malignmark",
@@ -198,13 +261,13 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
198
261
  "annotation-xml",
199
262
  "mprescripts",
200
263
  "none"
201
- ]), Me = p(["#text"]), Ne = 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(".")), Pe = 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.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Fe = 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(".")), Ie = p([
264
+ ]), Re = p(["#text"]), ze = 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(".")), Be = 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.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Ve = 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(".")), He = p([
202
265
  "xlink:href",
203
266
  "xml:id",
204
267
  "xlink:title",
205
268
  "xml:space",
206
269
  "xmlns:xlink"
207
- ]), Le = m(/{{[\w\W]*|^[\w\W]*}}/g), Re = m(/<%[\w\W]*|^[\w\W]*%>/g), ze = m(/\${[\w\W]*/g), Be = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ve = m(/^aria-[\-\w]+$/), He = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ue = m(/^(?:\w+script|data):/i), We = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ge = m(/^html$/i), Ke = m(/^[a-z][.\w]*(-[.\w]+)+$/i), qe = m(/<[/\w!]/g), Je = m(/<[/\w]/g), Ye = m(/<\/no(script|embed|frames)/i), Xe = m(/\/>/i), C = {
270
+ ]), Ue = m(/{{[\w\W]*|^[\w\W]*}}/g), We = m(/<%[\w\W]*|^[\w\W]*%>/g), Ge = m(/\${[\w\W]*/g), Ke = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), qe = m(/^aria-[\-\w]+$/), Je = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ye = m(/^(?:\w+script|data):/i), Xe = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ze = m(/^html$/i), Qe = m(/^[a-z][.\w]*(-[.\w]+)+$/i), $e = m(/<[/\w!]/g), et = m(/<[/\w]/g), tt = m(/<\/no(script|embed|frames)/i), nt = m(/\/>/i), w = {
208
271
  element: 1,
209
272
  attribute: 2,
210
273
  text: 3,
@@ -217,7 +280,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
217
280
  documentType: 10,
218
281
  documentFragment: 11,
219
282
  notation: 12
220
- }, w = [
283
+ }, rt = p(x({}, [
221
284
  "style",
222
285
  "script",
223
286
  "xmp",
@@ -226,14 +289,9 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
226
289
  "noframes",
227
290
  "plaintext",
228
291
  "noscript"
229
- ], Ze = p(y({}, w)), Qe = function() {
230
- let e = {};
231
- return oe(w, (t) => {
232
- e[t] = m(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
233
- }), p(e);
234
- }(), $e = function() {
292
+ ])), it = function() {
235
293
  return typeof window > "u" ? null : window;
236
- }, et = function(e, t) {
294
+ }, at = function(e, t) {
237
295
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
238
296
  let n = null, r = "data-tt-policy-suffix";
239
297
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -250,7 +308,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
250
308
  } catch {
251
309
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
252
310
  }
253
- }, tt = function() {
311
+ }, ot = function() {
254
312
  return {
255
313
  afterSanitizeAttributes: [],
256
314
  afterSanitizeElements: [],
@@ -262,60 +320,62 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
262
320
  uponSanitizeElement: [],
263
321
  uponSanitizeShadowNode: []
264
322
  };
265
- }, nt = function(e, t, n, r) {
266
- return g(e, t) && de(e[t]) ? y(r.base ? x(r.base) : {}, e[t], r.transform) : n;
267
- }, rt = function(e, t, n) {
323
+ }, st = function(e, t, n, r) {
324
+ return g(e, t) && pe(e[t]) ? x(r.base ? S(r.base) : {}, e[t], r.transform) : n;
325
+ }, ct = function(e, t, n) {
268
326
  let r = g(e, t) ? e[t] : void 0;
269
- return r && typeof r == "object" ? x(r) : n();
327
+ return r && typeof r == "object" ? S(r) : n();
270
328
  };
271
- function it() {
272
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $e(), t = (e) => it(e);
273
- if (t.version = "3.4.14", t.removed = [], !e || !e.document || e.document.nodeType !== C.document || !e.Element) return t.isSupported = !1, t;
329
+ function lt() {
330
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it(), t = (e) => lt(e);
331
+ if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== w.document || !e.Element) return t.isSupported = !1, t;
274
332
  let n = e.document, r = n, i = r.currentScript;
275
333
  e.DocumentFragment;
276
334
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
277
335
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
278
- let l = e.DOMParser, d = e.trustedTypes, f = s.prototype, ee = S(f, "cloneNode"), te = S(f, "remove"), re = S(f, "nextSibling"), ie = S(f, "childNodes"), ae = S(f, "parentNode"), ve = S(f, "shadowRoot"), ye = S(f, "attributes"), h = o && o.prototype ? S(o.prototype, "nodeType") : null, be = o && o.prototype ? S(o.prototype, "nodeName") : null, xe = o && o.prototype ? S(o.prototype, "ownerDocument") : null, v = function(e) {
279
- return h ? h(e) : e.nodeType;
280
- }, Ce = function(e) {
281
- return be ? be(e) : e.nodeName;
336
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = C(d, "cloneNode"), te = C(d, "remove"), ne = C(d, "removeAttributeNode"), re = C(d, "nextSibling"), ae = C(d, "childNodes"), oe = C(d, "parentNode"), se = C(d, "shadowRoot"), Ce = C(d, "attributes"), we = o && o.prototype ? C(o.prototype, "nodeType") : null, Te = o && o.prototype ? C(o.prototype, "nodeName") : null, Ee = o && o.prototype ? C(o.prototype, "ownerDocument") : null, _ = function(e) {
337
+ return we ? we(e) : e.nodeType;
338
+ }, b = function(e) {
339
+ return Te ? Te(e) : e.nodeName;
340
+ }, De = Ae(d, "namespaceURI"), Oe = function(e) {
341
+ return De ? De(e) : e.namespaceURI;
282
342
  };
283
343
  if (typeof a == "function") {
284
344
  let e = n.createElement("template");
285
345
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
286
346
  }
287
- let b, w = "", T, at = !1, E = 0, D = function() {
288
- if (E > 0) throw Se("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.");
289
- }, O = function(e) {
290
- D(), E++;
347
+ let T, E = "", D, ut = !1, O = 0, dt = function() {
348
+ if (O > 0) throw y("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.");
349
+ }, k = function(e) {
350
+ dt(), O++;
291
351
  try {
292
- return b.createHTML(e);
352
+ return T.createHTML(e);
293
353
  } finally {
294
- E--;
354
+ O--;
295
355
  }
296
- }, ot = function(e) {
297
- D(), E++;
356
+ }, ft = function(e) {
357
+ dt(), O++;
298
358
  try {
299
- return b.createScriptURL(e);
359
+ return T.createScriptURL(e);
300
360
  } finally {
301
- E--;
361
+ O--;
302
362
  }
303
- }, st = function() {
304
- return at ||= (T = et(d, i), !0), T;
305
- }, k = n, A = k.implementation, ct = k.createNodeIterator, lt = k.createDocumentFragment, j = k.getElementsByTagName, ut = r.importNode, M = tt();
306
- t.isSupported = typeof u == "function" && typeof ae == "function" && A && A.createHTMLDocument !== void 0;
307
- let dt = Le, ft = Re, N = ze, pt = Be, P = Ve, F = Ue, I = We, mt = Ke, L = He, R = null, z = y({}, [
308
- ...Ee,
309
- ...De,
310
- ...Oe,
311
- ...Ae,
312
- ...Me
313
- ]), B = null, V = y({}, [
363
+ }, pt = function() {
364
+ return ut ||= (D = at(u, i), !0), D;
365
+ }, A = n, mt = A.implementation, j = A.createNodeIterator, ht = A.createDocumentFragment, M = A.getElementsByTagName, gt = r.importNode, N = ot();
366
+ t.isSupported = typeof f == "function" && typeof oe == "function" && mt && mt.createHTMLDocument !== void 0;
367
+ let P = Ue, _t = We, F = Ge, I = Ke, L = qe, vt = Ye, R = Xe, yt = Qe, z = Je, B = null, V = x({}, [
368
+ ...Me,
314
369
  ...Ne,
315
370
  ...Pe,
316
- ...Fe,
317
- ...Ie
318
- ]), H = Object.seal(ne(null, {
371
+ ...Ie,
372
+ ...Re
373
+ ]), H = null, bt = x({}, [
374
+ ...ze,
375
+ ...Be,
376
+ ...Ve,
377
+ ...He
378
+ ]), U = Object.seal(ie(null, {
319
379
  tagNameCheck: {
320
380
  writable: !0,
321
381
  configurable: !1,
@@ -334,7 +394,7 @@ function it() {
334
394
  enumerable: !0,
335
395
  value: !1
336
396
  }
337
- })), ht = null, gt = null, _t = Object.seal(ne(null, {
397
+ })), xt = null, St = null, W = Object.seal(ie(null, {
338
398
  tagCheck: {
339
399
  writable: !0,
340
400
  configurable: !1,
@@ -347,14 +407,14 @@ function it() {
347
407
  enumerable: !0,
348
408
  value: null
349
409
  }
350
- })), vt = !0, yt = !0, bt = !1, xt = !0, U = !1, St = !0, Ct = !1, wt = !1, Tt = null, Et = null, Dt = !1, Ot = !1, kt = !1, At = !1, jt = !0, Mt = !1, Nt = "user-content-", Pt = !0, W = !1, G = {}, Ft = null, It = y({}, /* @__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(".")), Lt = null, Rt = y({}, [
410
+ })), Ct = !0, wt = !0, Tt = !1, Et = !0, G = !1, Dt = !0, Ot = !1, kt = !1, At = null, jt = null, Mt = !1, Nt = !1, Pt = !1, Ft = !1, It = !0, Lt = !1, Rt = "user-content-", K = !0, zt = !1, Bt = null, Vt = {}, Ht = null, Ut = 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(".")), Wt = null, Gt = x({}, [
351
411
  "audio",
352
412
  "video",
353
413
  "img",
354
414
  "source",
355
415
  "image",
356
416
  "track"
357
- ]), zt = null, Bt = y({}, [
417
+ ]), Kt = null, qt = x({}, [
358
418
  "alt",
359
419
  "class",
360
420
  "for",
@@ -369,227 +429,260 @@ function it() {
369
429
  "value",
370
430
  "style",
371
431
  "xmlns"
372
- ]), Vt = "http://www.w3.org/1998/Math/MathML", Ht = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, J = !1, Ut = null, Wt = y({}, [
373
- Vt,
374
- Ht,
375
- K
376
- ], pe), Gt = p([
432
+ ]), Jt = "http://www.w3.org/1998/Math/MathML", q = "http://www.w3.org/2000/svg", J = "http://www.w3.org/1999/xhtml", Y = J, Yt = !1, Xt = null, Zt = x({}, [
433
+ Jt,
434
+ q,
435
+ J
436
+ ], ve), Qt = p([
377
437
  "mi",
378
438
  "mo",
379
439
  "mn",
380
440
  "ms",
381
441
  "mtext"
382
- ]), Kt = y({}, Gt), qt = p(["annotation-xml"]), Jt = y({}, qt), Yt = y({}, [
442
+ ]), $t = x({}, Qt), en = p(["annotation-xml"]), tn = x({}, en), nn = x({}, [
383
443
  "title",
384
444
  "style",
385
445
  "font",
386
446
  "a",
387
447
  "script"
388
- ]), Xt = null, Zt = ["application/xhtml+xml", "text/html"], Y = null, Qt = null, $t = n.createElement("form"), en = function(e) {
448
+ ]), rn = null, an = ["application/xhtml+xml", "text/html"], X = null, on = null, sn = n.createElement("form"), cn = function(e) {
389
449
  return e instanceof RegExp || e instanceof Function;
390
- }, tn = function() {
450
+ }, ln = function() {
391
451
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
392
- if (Qt && Qt === e) return;
393
- (!e || typeof e != "object") && (e = {}), e = x(e), Xt = Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = Xt === "application/xhtml+xml" ? pe : fe, R = nt(e, "ALLOWED_TAGS", z, { transform: Y }), B = nt(e, "ALLOWED_ATTR", V, { transform: Y }), Ut = nt(e, "ALLOWED_NAMESPACES", Wt, { transform: pe }), zt = nt(e, "ADD_URI_SAFE_ATTR", Bt, {
394
- transform: Y,
395
- base: Bt
396
- }), Lt = nt(e, "ADD_DATA_URI_TAGS", Rt, {
397
- transform: Y,
398
- base: Rt
399
- }), Ft = nt(e, "FORBID_CONTENTS", It, { transform: Y }), ht = nt(e, "FORBID_TAGS", x({}), { transform: Y }), gt = nt(e, "FORBID_ATTR", x({}), { transform: Y }), G = g(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? x(e.USE_PROFILES) : e.USE_PROFILES : !1, vt = e.ALLOW_ARIA_ATTR !== !1, yt = e.ALLOW_DATA_ATTR !== !1, bt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, xt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, St = e.SAFE_FOR_XML !== !1, Ct = e.WHOLE_DOCUMENT || !1, Ot = e.RETURN_DOM || !1, kt = e.RETURN_DOM_FRAGMENT || !1, At = e.RETURN_TRUSTED_TYPE || !1, Dt = e.FORCE_BODY || !1, jt = e.SANITIZE_DOM !== !1, Mt = e.SANITIZE_NAMED_PROPS || !1, Pt = e.KEEP_CONTENT !== !1, W = e.IN_PLACE || !1, L = Te(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : He, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Kt = rt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => y({}, Gt)), Jt = rt(e, "HTML_INTEGRATION_POINTS", () => y({}, qt));
400
- let t = rt(e, "CUSTOM_ELEMENT_HANDLING", () => ne(null));
401
- if (H = ne(null), g(t, "tagNameCheck") && en(t.tagNameCheck) && (H.tagNameCheck = t.tagNameCheck), g(t, "attributeNameCheck") && en(t.attributeNameCheck) && (H.attributeNameCheck = t.attributeNameCheck), g(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(H), U && (yt = !1), kt && (Ot = !0), G && (R = y({}, Me), B = ne(null), G.html === !0 && (y(R, Ee), y(B, Ne)), G.svg === !0 && (y(R, De), y(B, Pe), y(B, Ie)), G.svgFilters === !0 && (y(R, Oe), y(B, Pe), y(B, Ie)), G.mathMl === !0 && (y(R, Ae), y(B, Fe), y(B, Ie))), _t.tagCheck = null, _t.attributeCheck = null, g(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? _t.tagCheck = e.ADD_TAGS : de(e.ADD_TAGS) && (R === z && (R = x(R)), y(R, e.ADD_TAGS, Y))), g(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? _t.attributeCheck = e.ADD_ATTR : de(e.ADD_ATTR) && (B === V && (B = x(B)), y(B, e.ADD_ATTR, Y))), g(e, "ADD_FORBID_CONTENTS") && de(e.ADD_FORBID_CONTENTS) && (Ft === It && (Ft = x(Ft)), y(Ft, e.ADD_FORBID_CONTENTS, Y)), Pt && (R["#text"] = !0), Ct && y(R, [
452
+ if (on && on === e) return;
453
+ (!e || typeof e != "object") && (e = {}), e = S(e), rn = an.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = rn === "application/xhtml+xml" ? ve : _e, B = st(e, "ALLOWED_TAGS", V, { transform: X }), H = st(e, "ALLOWED_ATTR", bt, { transform: X }), Xt = st(e, "ALLOWED_NAMESPACES", Zt, { transform: ve }), Kt = st(e, "ADD_URI_SAFE_ATTR", qt, {
454
+ transform: X,
455
+ base: qt
456
+ }), Wt = st(e, "ADD_DATA_URI_TAGS", Gt, {
457
+ transform: X,
458
+ base: Gt
459
+ }), Ht = st(e, "FORBID_CONTENTS", Ut, { transform: X }), xt = st(e, "FORBID_TAGS", S({}), { transform: X }), St = st(e, "FORBID_ATTR", S({}), { transform: X }), Vt = g(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? S(e.USE_PROFILES) : e.USE_PROFILES : !1, Ct = e.ALLOW_ARIA_ATTR !== !1, wt = e.ALLOW_DATA_ATTR !== !1, Tt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Et = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = e.SAFE_FOR_TEMPLATES || !1, Dt = e.SAFE_FOR_XML !== !1, Ot = e.WHOLE_DOCUMENT || !1, Nt = e.RETURN_DOM || !1, Pt = e.RETURN_DOM_FRAGMENT || !1, Ft = e.RETURN_TRUSTED_TYPE || !1, Mt = e.FORCE_BODY || !1, It = e.SANITIZE_DOM !== !1, Lt = e.SANITIZE_NAMED_PROPS || !1, K = e.KEEP_CONTENT !== !1, zt = e.IN_PLACE || !1, z = je(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Je, Y = typeof e.NAMESPACE == "string" ? e.NAMESPACE : J, $t = ct(e, "MATHML_TEXT_INTEGRATION_POINTS", () => x({}, Qt)), tn = ct(e, "HTML_INTEGRATION_POINTS", () => x({}, en));
460
+ let t = ct(e, "CUSTOM_ELEMENT_HANDLING", () => ie(null));
461
+ if (U = ie(null), g(t, "tagNameCheck") && cn(t.tagNameCheck) && (U.tagNameCheck = t.tagNameCheck), g(t, "attributeNameCheck") && cn(t.attributeNameCheck) && (U.attributeNameCheck = t.attributeNameCheck), g(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(U), G && (wt = !1), Pt && (Nt = !0), Vt && (B = x({}, Re), H = ie(null), Vt.html === !0 && (x(B, Me), x(H, ze)), Vt.svg === !0 && (x(B, Ne), x(H, Be), x(H, He)), Vt.svgFilters === !0 && (x(B, Pe), x(H, Be), x(H, He)), Vt.mathMl === !0 && (x(B, Ie), x(H, Ve), x(H, He))), W.tagCheck = null, W.attributeCheck = null, g(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? W.tagCheck = e.ADD_TAGS : pe(e.ADD_TAGS) && (B === V && (B = S(B)), x(B, e.ADD_TAGS, X))), g(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? W.attributeCheck = e.ADD_ATTR : pe(e.ADD_ATTR) && (H === bt && (H = S(H)), x(H, e.ADD_ATTR, X))), g(e, "ADD_FORBID_CONTENTS") && pe(e.ADD_FORBID_CONTENTS) && (Ht === Ut && (Ht = S(Ht)), x(Ht, e.ADD_FORBID_CONTENTS, X)), K && (B["#text"] = !0), Ot && x(B, [
402
462
  "html",
403
463
  "head",
404
464
  "body"
405
- ]), R.table && (y(R, ["tbody"]), delete ht.tbody), e.TRUSTED_TYPES_POLICY) {
406
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Se("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
407
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Se("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
408
- let t = b;
409
- b = e.TRUSTED_TYPES_POLICY;
465
+ ]), B.table && (x(B, ["tbody"]), delete xt.tbody), e.TRUSTED_TYPES_POLICY) {
466
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw y("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
467
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw y("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
468
+ let t = T;
469
+ T = e.TRUSTED_TYPES_POLICY;
410
470
  try {
411
- w = O("");
471
+ E = k("");
412
472
  } catch (e) {
413
- throw b = t, e;
473
+ throw T = t, e;
414
474
  }
415
- } else e.TRUSTED_TYPES_POLICY === null ? (b = void 0, w = "") : (b === void 0 && (b = st()), b && typeof w == "string" && (w = O("")));
416
- p && p(e), Qt = e;
417
- }, nn = y({}, [
418
- ...De,
419
- ...Oe,
420
- ...ke
421
- ]), rn = y({}, [...Ae, ...je]), an = function(e, t, n) {
422
- return t.namespaceURI === K ? e === "svg" : t.namespaceURI === Vt ? e === "svg" && (n === "annotation-xml" || Kt[n]) : !!nn[e];
423
- }, on = function(e, t, n) {
424
- return t.namespaceURI === K ? e === "math" : t.namespaceURI === Ht ? e === "math" && Jt[n] : !!rn[e];
425
- }, sn = function(e, t, n) {
426
- return t.namespaceURI === Ht && !Jt[n] || t.namespaceURI === Vt && !Kt[n] ? !1 : !rn[e] && (Yt[e] || !nn[e]);
427
- }, cn = function(e) {
428
- let t = ae(e);
429
- (!t || !t.tagName) && (t = {
430
- namespaceURI: q,
431
- tagName: "template"
432
- });
433
- let n = fe(e.tagName), r = fe(t.tagName);
434
- return Ut[e.namespaceURI] ? e.namespaceURI === Ht ? an(n, t, r) : e.namespaceURI === Vt ? on(n, t, r) : e.namespaceURI === K ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
435
- }, X = function(e) {
436
- le(t.removed, { element: e });
475
+ } else e.TRUSTED_TYPES_POLICY === null ? (T = void 0, E = "") : (T === void 0 && (T = pt()), T && typeof E == "string" && (E = k("")));
476
+ p && p(e), on = e;
477
+ }, un = x({}, [
478
+ ...Ne,
479
+ ...Pe,
480
+ ...Fe
481
+ ]), dn = x({}, [...Ie, ...Le]), fn = function(e, t, n) {
482
+ return t.namespaceURI === J ? e === "svg" : t.namespaceURI === Jt ? e === "svg" && (n === "annotation-xml" || $t[n]) : !!un[e];
483
+ }, pn = function(e, t, n) {
484
+ return t.namespaceURI === J ? e === "math" : t.namespaceURI === q ? e === "math" && tn[n] : !!dn[e];
485
+ }, mn = function(e, t, n) {
486
+ return t.namespaceURI === q && !tn[n] || t.namespaceURI === Jt && !$t[n] ? !1 : !dn[e] && (nn[e] || !un[e]);
487
+ }, hn = function(e) {
488
+ let t = Oe(e), n = _e(b(e)), r = oe(e), i, a;
489
+ return r && _(r) === w.element ? (i = { namespaceURI: Oe(r) }, a = _e(b(r))) : (i = { namespaceURI: Y }, a = "template"), Xt[t] ? t === q ? fn(n, i, a) : t === Jt ? pn(n, i, a) : t === J ? mn(n, i, a) : !!(rn === "application/xhtml+xml" && Xt[t]) : !1;
490
+ }, Z = function(e) {
491
+ ue(t.removed, { element: e });
437
492
  try {
438
- ae(e).removeChild(e);
493
+ oe(e).removeChild(e);
439
494
  } catch {
440
- if (te(e), !ae(e)) throw Se("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
495
+ if (te(e), !oe(e)) throw y("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
441
496
  }
442
- }, ln = function(e, t, n) {
497
+ }, gn = function(e, t, n) {
443
498
  try {
444
- e.removeAttributeNode(t);
499
+ ne(e, t);
445
500
  } catch {
446
501
  try {
447
502
  e.removeAttribute(n);
448
503
  } catch {}
449
504
  }
450
- }, un = function(e) {
451
- fn(e);
452
- let t = ie(e);
453
- if (t) {
454
- let e = [];
455
- oe(t, (t) => {
456
- le(e, t);
457
- }), oe(e, (e) => {
458
- try {
459
- te(e);
460
- } catch {}
461
- });
462
- }
463
- let n = ye(e);
505
+ }, _n = function(e) {
506
+ xn(e);
507
+ let t = ae(e);
508
+ t && h(de(t), (e) => {
509
+ try {
510
+ te(e);
511
+ } catch {}
512
+ });
513
+ let n = _(e) === w.element ? Ce(e) : null;
464
514
  if (n) for (let t = n.length - 1; t >= 0; --t) {
465
515
  let r = n[t], i = r && r.name;
466
- typeof i == "string" && ln(e, r, i);
516
+ typeof i == "string" && gn(e, r, i);
467
517
  }
468
- }, Z = function(e, n, r) {
518
+ }, vn = function(e, n, r) {
469
519
  if (!r) try {
470
520
  r = n.getAttributeNode(e);
471
521
  } catch {
472
522
  r = null;
473
523
  }
474
- le(t.removed, {
524
+ ue(t.removed, {
475
525
  attribute: r || null,
476
526
  from: n
477
527
  });
478
528
  try {
479
- r ? n.removeAttributeNode(r) : n.removeAttribute(e);
529
+ r ? ne(n, r) : n.removeAttribute(e);
480
530
  } catch {
481
531
  try {
482
532
  n.removeAttribute(e);
483
533
  } catch {}
484
534
  }
485
535
  if (e === "is") {
486
- if (Ot || kt) try {
487
- X(n);
536
+ if (Nt || Pt) try {
537
+ Z(n);
488
538
  } catch {}
489
539
  else try {
490
540
  n.setAttribute(e, "");
491
541
  } catch {}
492
542
  }
493
- }, dn = function(e) {
494
- let t = ye(e);
543
+ }, yn = function(e) {
544
+ let t = Ce(e);
495
545
  if (t) for (let n = t.length - 1; n >= 0; --n) {
496
546
  let r = t[n], i = r && r.name;
497
- typeof i != "string" || B[Y(i)] || ln(e, r, i);
547
+ typeof i != "string" || H[X(i)] || gn(e, r, i);
498
548
  }
499
- }, fn = function(e) {
500
- let t = [e];
501
- for (; t.length > 0;) {
502
- let e = t.pop();
503
- v(e) === C.element && dn(e);
504
- let n = ie(e);
505
- if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
549
+ }, bn = function(e, t) {
550
+ let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
551
+ for (; r.length > 0;) {
552
+ let e = r.pop();
553
+ if (t(e) === !1) continue;
554
+ if (n && _(e) === w.element) {
555
+ let t = se(e);
556
+ Q(t) && r.push(t);
557
+ }
558
+ let i = ae(e);
559
+ if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
506
560
  }
507
- }, pn = function(e, t) {
508
- return St ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
509
- }, mn = function(e) {
510
- if (!St) return;
511
- let t = [e];
512
- for (; t.length > 0;) {
513
- let e = t.pop(), n = v(e);
514
- if (n === C.processingInstruction || n === C.comment && _(Je, e.data)) {
561
+ }, xn = function(e) {
562
+ bn(e, (e) => {
563
+ _(e) === w.element && yn(e);
564
+ });
565
+ }, Sn = function(e) {
566
+ let t = [];
567
+ return bn(e, (e) => {
568
+ t.push(e);
569
+ }, !0), t;
570
+ }, Cn = function(e, t) {
571
+ let n = me();
572
+ h(Sn(e), (e) => {
573
+ _(e) === w.element && he(n, e);
574
+ }), h(t, (e) => {
575
+ _(e) === w.element && !ge(n, e) && yn(e);
576
+ });
577
+ }, wn = function(e, n) {
578
+ let r = !1;
579
+ return h(t.removed, (t) => {
580
+ t.element && (r ||= t.element === e, xn(t.element));
581
+ }), Cn(e, n), r;
582
+ }, Tn = function(e, t) {
583
+ let n = Bt, r = null, i = () => (r || (r = me(), h(t, (e) => {
584
+ he(r, e);
585
+ })), r);
586
+ for (let t = 0;; t++) {
587
+ let r = Sn(e), a = [e], o = !1;
588
+ if (h(r, (e) => {
589
+ _(e) === w.documentFragment ? ue(a, e) : !o && !ge(n, e) && (o = ge(i(), e));
590
+ }), !o) return;
591
+ if (t >= 8) throw y("the tree kept changing during in-place sanitization; refusing to return it");
592
+ h(a, (t, n) => {
593
+ En(t, n > 0, e, i());
594
+ });
595
+ }
596
+ }, En = function(e, t, n, r) {
597
+ let i = jn(e), a;
598
+ for (; a = i.nextNode();) !ge(r, a) || ge(Bt, a) || (t && $(N.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Q(a.content) && Xn(a.content));
599
+ }, Dn = function(e) {
600
+ Bt && he(Bt, e);
601
+ }, On = function(e, t) {
602
+ return Dt ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
603
+ }, kn = function(e) {
604
+ Dt && bn(e, (e) => {
605
+ let t = _(e);
606
+ if (t === w.processingInstruction || t === w.comment && v(et, e.data)) {
515
607
  try {
516
608
  te(e);
517
609
  } catch {}
518
- continue;
610
+ return !1;
519
611
  }
520
- if (n === C.element) {
521
- let t = e, n = Y(Ce(e));
612
+ if (t === w.element) {
613
+ let t = e, n = X(b(e));
522
614
  try {
523
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && pn("for", n) && t.removeAttribute("for");
615
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
524
616
  } catch {}
525
617
  }
526
- let r = ie(e);
527
- if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
528
- }
529
- }, hn = function(e) {
618
+ return !0;
619
+ });
620
+ }, An = function(e) {
530
621
  let t = null, r = null;
531
- if (Dt) e = "<remove></remove>" + e;
622
+ if (Mt) e = "<remove></remove>" + e;
532
623
  else {
533
- let t = me(e, /^[\r\n\t ]+/);
624
+ let t = ye(e, /^[\r\n\t ]+/);
534
625
  r = t && t[0];
535
626
  }
536
- Xt === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
537
- let i = b ? O(e) : e;
538
- if (q === K) try {
539
- t = new l().parseFromString(i, Xt);
627
+ rn === "application/xhtml+xml" && Y === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
628
+ let i = T ? k(e) : e;
629
+ if (Y === J) try {
630
+ t = new l().parseFromString(i, rn);
540
631
  } catch {}
541
632
  if (!t || !t.documentElement) {
542
- t = A.createDocument(q, "template", null);
633
+ t = mt.createDocument(Y, "template", null);
543
634
  try {
544
- t.documentElement.innerHTML = J ? w : i;
635
+ t.documentElement.innerHTML = Yt ? E : i;
545
636
  } catch {}
546
637
  }
547
638
  let a = t.body || t.documentElement;
548
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? j.call(t, Ct ? "html" : "body")[0] : Ct ? t.documentElement : a;
549
- }, gn = function(e) {
550
- let t = xe ? xe(e) : e.ownerDocument;
551
- return ct.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
552
- }, _n = function(e) {
553
- return e = he(e, dt, " "), e = he(e, ft, " "), e = he(e, N, " "), e;
554
- }, vn = function(e) {
555
- e.normalize();
556
- let t = xe ? xe(e) : e.ownerDocument, n = ct.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
557
- for (; r;) r.data = _n(r.data), r = n.nextNode();
558
- let i = e.querySelectorAll?.call(e, "template");
559
- i && oe(i, (e) => {
560
- bn(e.content) && vn(e.content);
639
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Y === J ? M.call(t, Ot ? "html" : "body")[0] : Ot ? t.documentElement : a;
640
+ }, jn = function(e) {
641
+ let t = Ee ? Ee(e) : e.ownerDocument;
642
+ return j.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
643
+ }, Mn = function(e) {
644
+ return e = be(e, P, " "), e = be(e, _t, " "), e = be(e, F, " "), e;
645
+ }, Nn = function(e) {
646
+ Pn(e);
647
+ let t = e.querySelectorAll?.call(e, "template");
648
+ t && h(t, (e) => {
649
+ Q(e.content) && Nn(e.content);
561
650
  });
562
- }, yn = function(e) {
563
- let t = be ? be(e) : null;
564
- 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);
565
- }, bn = function(e) {
566
- if (!h || typeof e != "object" || !e) return !1;
651
+ }, Pn = function(e) {
652
+ e.normalize();
653
+ let t = Ee ? Ee(e) : e.ownerDocument, n = j.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
654
+ for (; r;) r.data = Mn(r.data), r = n.nextNode();
655
+ }, Fn = function(e) {
656
+ let t = Te ? Te(e) : null;
657
+ return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== Ce(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== we(e) || e.childNodes !== ae(e);
658
+ }, Q = function(e) {
659
+ if (!we || typeof e != "object" || !e) return !1;
567
660
  try {
568
- return h(e) === C.documentFragment;
661
+ return we(e) === w.documentFragment;
569
662
  } catch {
570
663
  return !1;
571
664
  }
572
- }, Q = function(e) {
573
- if (!h || typeof e != "object" || !e) return !1;
665
+ }, In = function(e) {
666
+ if (!we || typeof e != "object" || !e) return !1;
574
667
  try {
575
- return typeof h(e) == "number";
668
+ return typeof we(e) == "number";
576
669
  } catch {
577
670
  return !1;
578
671
  }
579
672
  };
580
673
  function $(e, n, r) {
581
- e.length !== 0 && oe(e, (e) => {
582
- e.call(t, n, r, Qt);
674
+ e.length !== 0 && h(e, (e) => {
675
+ e.call(t, n, r, on);
583
676
  });
584
677
  }
585
- let xn = function(e, t) {
586
- return !!(St && e.hasChildNodes() && !Q(e.firstElementChild) && _(qe, e.textContent) && _(qe, e.innerHTML) || St && e.namespaceURI === K && Ze[t] && (Q(e.firstElementChild) || typeof e.textContent == "string" && _(Qe[t], e.textContent)) || e.nodeType === C.processingInstruction || St && e.nodeType === C.comment && _(Je, e.data));
587
- }, Sn = function(e, t) {
588
- return e instanceof RegExp ? _(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
589
- }, Cn = function(e, t, n) {
590
- if (!ht[t] && kn(t) && Sn(H.tagNameCheck, t)) return !1;
591
- if (Pt && !Ft[t]) {
592
- let t = ae(e), r = ie(e);
678
+ let Ln = function(e, t) {
679
+ return !!(Dt && e.hasChildNodes() && !In(e.firstElementChild) && v($e, e.textContent) && v($e, e.innerHTML) || Dt && rt[t] && _(e) === w.element && Oe(e) === J && (In(e.firstElementChild) || typeof e.textContent == "string" && v($e, e.textContent)) || e.nodeType === w.processingInstruction || Dt && e.nodeType === w.comment && v(et, e.data));
680
+ }, Rn = function(e, t) {
681
+ return e instanceof RegExp ? v(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
682
+ }, zn = function(e, t, n) {
683
+ if (!xt[t] && Gn(t) && Rn(U.tagNameCheck, t)) return !1;
684
+ if (K && !Ht[t] && !Ht[_e(t)]) {
685
+ let t = oe(e), r = ae(e);
593
686
  if (r && t) {
594
687
  let i = r.length;
595
688
  for (let a = i - 1; a >= 0; --a) {
@@ -598,35 +691,35 @@ function it() {
598
691
  }
599
692
  }
600
693
  }
601
- return X(e), !0;
602
- }, wn = function(e, t, n, r) {
603
- return e.length === 0 ? t : t === n || t === r ? x(t) : t;
604
- }, Tn = function(e, t) {
605
- return e === t || ae(e) !== null ? !1 : (W && fn(e), !0);
606
- }, En = function(e, n) {
607
- if ($(M.beforeSanitizeElements, e, null), Tn(e, n)) return !0;
608
- if (yn(e)) return X(e), !0;
609
- let r = Y(Ce(e));
610
- if (R = wn(M.uponSanitizeElement, R, z, Tt), $(M.uponSanitizeElement, e, {
694
+ return Z(e), !0;
695
+ }, Bn = function(e, t, n, r) {
696
+ return e.length === 0 ? t : t === n || t === r ? S(t) : t;
697
+ }, Vn = function(e, t) {
698
+ return e === t || oe(e) !== null ? !1 : (zt && xn(e), !0);
699
+ }, Hn = function(e, n) {
700
+ if (Dn(e), $(N.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
701
+ if (Fn(e)) return Z(e), !0;
702
+ let r = X(b(e));
703
+ if (B = Bn(N.uponSanitizeElement, B, V, At), $(N.uponSanitizeElement, e, {
611
704
  tagName: r,
612
- allowedTags: R
613
- }), Tn(e, n)) return !0;
614
- if (xn(e, r)) return X(e), !0;
615
- if (ht[r] || !(_t.tagCheck instanceof Function && _t.tagCheck(r)) && !R[r]) {
616
- let t = Cn(e, r, n);
617
- return t === !1 && $(M.afterSanitizeElements, e, null), t;
705
+ allowedTags: B
706
+ }), Vn(e, n)) return !0;
707
+ if (Ln(e, r)) return Z(e), !0;
708
+ if (xt[r] || !(W.tagCheck instanceof Function && W.tagCheck(r)) && !B[r]) {
709
+ let t = zn(e, r, n);
710
+ return t === !1 && ($(N.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
618
711
  }
619
- if (v(e) === C.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && _(Ye, e.innerHTML)) return X(e), !0;
620
- if (U && e.nodeType === C.text) {
621
- let n = _n(e.textContent);
622
- e.textContent !== n && (le(t.removed, { element: e.cloneNode() }), e.textContent = n);
712
+ if (_(e) === w.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && v(tt, e.innerHTML)) return Z(e), !0;
713
+ if (G && e.nodeType === w.text) {
714
+ let n = Mn(e.textContent);
715
+ e.textContent !== n && (ue(t.removed, { element: e.cloneNode() }), e.textContent = n);
623
716
  }
624
- return $(M.afterSanitizeElements, e, null), !1;
625
- }, Dn = function(e, t, r) {
626
- if (gt[t] || pn(t, e) || jt && (t === "id" || t === "name") && (r in n || r in $t)) return !1;
627
- let i = B[t] || _t.attributeCheck instanceof Function && _t.attributeCheck(t, e);
628
- return yt && _(pt, t) || vt && _(P, t) ? !0 : i ? zt[t] || _(L, he(r, I, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ge(r, "data:") === 0 && Lt[e] || bt && !_(F, he(r, I, "")) ? !0 : !r : kn(e) && Sn(H.tagNameCheck, e) && Sn(H.attributeNameCheck, t, e) || t === "is" && H.allowCustomizedBuiltInElements && Sn(H.tagNameCheck, r);
629
- }, On = y({}, [
717
+ return $(N.afterSanitizeElements, e, null), Vn(e, n);
718
+ }, Un = function(e, t, r) {
719
+ if (St[t] || On(t, e) || It && (t === "id" || t === "name") && (r in n || r in sn)) return !1;
720
+ let i = H[t] || W.attributeCheck instanceof Function && W.attributeCheck(t, e);
721
+ return wt && v(I, t) || Ct && v(L, t) ? !0 : i ? Kt[t] || v(z, be(r, R, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && xe(r, "data:") === 0 && Wt[e] || Tt && !v(vt, be(r, R, "")) ? !0 : !r : Gn(e) && Rn(U.tagNameCheck, e) && Rn(U.attributeNameCheck, t, e) || t === "is" && U.allowCustomizedBuiltInElements && Rn(U.tagNameCheck, r);
722
+ }, Wn = x({}, [
630
723
  "annotation-xml",
631
724
  "color-profile",
632
725
  "font-face",
@@ -635,67 +728,65 @@ function it() {
635
728
  "font-face-src",
636
729
  "font-face-uri",
637
730
  "missing-glyph"
638
- ]), kn = function(e) {
639
- return !On[fe(e)] && _(mt, e);
640
- }, An = function(e, t, n, r) {
641
- if (b && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
642
- case "TrustedHTML": return O(r);
643
- case "TrustedScriptURL": return ot(r);
731
+ ]), Gn = function(e) {
732
+ return !Wn[_e(e)] && v(yt, e);
733
+ }, Kn = function(e, t, n, r) {
734
+ if (T && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
735
+ case "TrustedHTML": return k(r);
736
+ case "TrustedScriptURL": return ft(r);
644
737
  }
645
738
  return r;
646
- }, jn = function(e, n, r, i) {
739
+ }, qn = function(e, t, n, r) {
647
740
  try {
648
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), yn(e) ? X(e) : ce(t.removed);
741
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (Z(e), !1);
649
742
  } catch {
650
- Z(n, e);
743
+ return vn(t, e), !1;
651
744
  }
652
- }, Mn = function(e) {
653
- $(M.beforeSanitizeAttributes, e, null);
654
- let t = e.attributes;
655
- if (!t || yn(e)) return;
656
- B = wn(M.uponSanitizeAttribute, B, V, Et);
657
- let n = {
745
+ }, Jn = function(e, t) {
746
+ return Dt && v(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : _e(e) === "attributename" && ye(t, "href") !== null;
747
+ }, Yn = function(e, n) {
748
+ if ($(N.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
749
+ let r = e.attributes;
750
+ if (!r || Fn(e)) return;
751
+ H = Bn(N.uponSanitizeAttribute, H, bt, jt);
752
+ let i = {
658
753
  attrName: "",
659
754
  attrValue: "",
660
755
  keepAttr: !0,
661
- allowedAttributes: B,
756
+ allowedAttributes: H,
662
757
  forceKeepAttr: void 0
663
- }, r = t.length, i = Y(e.nodeName);
664
- for (; r--;) {
665
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : _e(u);
666
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(M.uponSanitizeAttribute, e, n), d = n.attrValue, Mt && (l === "id" || l === "name") && ge(d, Nt) !== 0 && (Z(o, e, a), d = Nt + d), St && _(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
667
- Z(o, e, a);
668
- continue;
669
- }
670
- if (l === "attributename" && me(d, "href")) {
671
- Z(o, e, a);
758
+ }, a = r.length, o = X(e.nodeName);
759
+ for (; a--;) {
760
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = X(s), d = l, f = s === "value" ? d : Se(d), ee = !1;
761
+ if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(N.uponSanitizeAttribute, e, i), f = i.attrValue, Lt && (u === "id" || u === "name") && xe(f, Rt) !== 0 && (vn(s, e, n), f = Rt + f, ee = !0), Jn(s, f)) {
762
+ vn(s, e, n);
672
763
  continue;
673
764
  }
674
- if (!n.forceKeepAttr) {
675
- if (!n.keepAttr) {
676
- Z(o, e, a);
765
+ if (!i.forceKeepAttr) {
766
+ if (!i.keepAttr) {
767
+ vn(s, e, n);
677
768
  continue;
678
769
  }
679
- if (!xt && _(Xe, d)) {
680
- Z(o, e, a);
770
+ if (!Et && v(nt, f)) {
771
+ vn(s, e, n);
681
772
  continue;
682
773
  }
683
- if (U && (d = _n(d)), !Dn(i, l, d)) {
684
- Z(o, e, a);
774
+ if (G && (f = Mn(f)), !Un(o, u, f)) {
775
+ vn(s, e, n);
685
776
  continue;
686
777
  }
687
- d = An(i, l, s, d), d !== u && jn(e, o, s, d);
778
+ f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && ee && le(t.removed);
688
779
  }
689
780
  }
690
- $(M.afterSanitizeAttributes, e, null);
691
- }, Nn = function(e) {
692
- let t = null, n = gn(e);
693
- for ($(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(M.uponSanitizeShadowNode, t, null), En(t, e), Mn(t), bn(t.content) && Nn(t.content), v(t) === C.element) {
694
- let e = ve(t);
695
- bn(e) && (Pn(e), Nn(e));
781
+ $(N.afterSanitizeAttributes, e, null), Vn(e, n);
782
+ }, Xn = function(e) {
783
+ let t = null, n = jn(e);
784
+ for ($(N.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(N.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Q(t.content) && Xn(t.content), _(t) === w.element) {
785
+ let e = se(t);
786
+ Q(e) && (Zn(e), Xn(e));
696
787
  }
697
- $(M.afterSanitizeShadowDOM, e, null);
698
- }, Pn = function(e) {
788
+ G && Pn(e), $(N.afterSanitizeShadowDOM, e, null);
789
+ }, Zn = function(e) {
699
790
  let t = [{
700
791
  node: e,
701
792
  shadow: null
@@ -703,27 +794,27 @@ function it() {
703
794
  for (; t.length > 0;) {
704
795
  let e = t.pop();
705
796
  if (e.shadow) {
706
- Nn(e.shadow);
797
+ Xn(e.shadow);
707
798
  continue;
708
799
  }
709
- let n = e.node, r = v(n) === C.element, i = ie(n);
800
+ let n = e.node, r = _(n) === w.element, i = ae(n);
710
801
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
711
802
  node: i[e],
712
803
  shadow: null
713
804
  });
714
805
  if (r) {
715
- let e = be ? be(n) : null;
716
- if (typeof e == "string" && Y(e) === "template") {
806
+ let e = Te ? Te(n) : null;
807
+ if (typeof e == "string" && X(e) === "template") {
717
808
  let e = n.content;
718
- bn(e) && t.push({
809
+ Q(e) && t.push({
719
810
  node: e,
720
811
  shadow: null
721
812
  });
722
813
  }
723
814
  }
724
815
  if (r) {
725
- let e = ve(n);
726
- bn(e) && t.push({
816
+ let e = se(n);
817
+ Q(e) && t.push({
727
818
  node: null,
728
819
  shadow: e
729
820
  }, {
@@ -735,74 +826,73 @@ function it() {
735
826
  };
736
827
  return t.sanitize = function(e) {
737
828
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
738
- if (J = !e, J && (e = "<!-->"), typeof e != "string" && !Q(e) && (e = we(e), typeof e != "string")) throw Se("dirty is not a string, aborting");
829
+ if (Yt = !e, Yt && (e = "<!-->"), typeof e != "string" && !In(e) && (e = ke(e), typeof e != "string")) throw y("dirty is not a string, aborting");
739
830
  if (!t.isSupported) return e;
740
- wt ? (R = Tt, B = Et) : tn(n), (M.uponSanitizeElement.length > 0 || M.uponSanitizeAttribute.length > 0) && (R = x(R)), M.uponSanitizeAttribute.length > 0 && (B = x(B)), t.removed = [];
741
- let c = W && typeof e != "string" && Q(e);
831
+ kt ? (B = At, H = jt) : ln(n), (N.uponSanitizeElement.length > 0 || N.uponSanitizeAttribute.length > 0) && (B = S(B)), N.uponSanitizeAttribute.length > 0 && (H = S(H)), t.removed = [];
832
+ let c = zt && typeof e != "string" && In(e), l = [], u = Bt;
742
833
  if (c) {
743
- mn(e);
744
- let t = Ce(e);
834
+ kn(e);
835
+ let t = b(e);
745
836
  if (typeof t == "string") {
746
- let n = Y(t);
747
- if (!R[n] || ht[n]) throw un(e), Se("root node is forbidden and cannot be sanitized in-place");
837
+ let n = X(t);
838
+ if (!B[n] || xt[n]) throw _n(e), y("root node is forbidden and cannot be sanitized in-place");
748
839
  }
749
- if (yn(e)) throw un(e), Se("root node is clobbered and cannot be sanitized in-place");
750
- try {
751
- Pn(e);
752
- } catch (t) {
753
- throw un(e), t;
754
- }
755
- } else if (Q(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === C.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Pn(a);
840
+ if (Fn(e)) throw _n(e), y("root node is clobbered and cannot be sanitized in-place");
841
+ l = Sn(e), Bt = me();
842
+ } else if (In(e)) i = An("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === w.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
756
843
  else {
757
- if (!Ot && !U && !Ct && e.indexOf("<") === -1) return b && At ? O(e) : e;
758
- if (i = hn(e), !i) return Ot ? null : At ? w : "";
844
+ if (!Nt && !G && !Ot && e.indexOf("<") === -1) return T && Ft ? k(e) : e;
845
+ if (i = An(e), !i) return Nt ? null : Ft ? E : "";
759
846
  }
760
- i && Dt && X(i.firstChild);
761
- let l = c ? e : i;
847
+ i && Mt && Z(i.firstChild);
848
+ let d = c ? e : i;
762
849
  try {
763
- let e = gn(l);
764
- for (; o = e.nextNode();) En(o, l), Mn(o), bn(o.content) && Nn(o.content);
765
- } catch (n) {
766
- throw c && (un(e), oe(t.removed, (e) => {
767
- e.element && fn(e.element);
768
- })), n;
850
+ c && Zn(e);
851
+ let t = jn(d);
852
+ for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
853
+ c && Tn(e, l);
854
+ } catch (t) {
855
+ throw c && (_n(e), wn(e, l)), t;
856
+ } finally {
857
+ Bt = u;
769
858
  }
770
- if (c) return oe(t.removed, (e) => {
771
- e.element && fn(e.element);
772
- }), U && vn(e), e;
773
- if (Ot) {
774
- if (U && vn(i), kt) for (s = lt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
859
+ if (c) {
860
+ if (wn(e, l)) throw y("a node selected for removal could not be safely returned; refusing to sanitize in place");
861
+ return G && Nn(e), e;
862
+ }
863
+ if (Nt) {
864
+ if (G && Nn(i), Pt) for (s = ht.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
775
865
  else s = i;
776
- return (B.shadowroot || B.shadowrootmode) && (s = ut.call(r, s, !0)), s;
866
+ return (H.shadowroot || H.shadowrootmode) && (s = gt.call(r, s, !0)), s;
777
867
  }
778
- let u = Ct ? i.outerHTML : i.innerHTML;
779
- return Ct && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && _(Ge, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), U && (u = _n(u)), b && At ? O(u) : u;
868
+ let f = Ot ? i.outerHTML : i.innerHTML;
869
+ return Ot && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && v(Ze, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), G && (f = Mn(f)), T && Ft ? k(f) : f;
780
870
  }, t.setConfig = function() {
781
871
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
782
- tn(e), wt = !0, Tt = R, Et = B;
872
+ ln(e), kt = !0, At = B, jt = H;
783
873
  }, t.clearConfig = function() {
784
- Qt = null, wt = !1, Tt = null, Et = null, b = T, w = "";
874
+ on = null, kt = !1, At = null, jt = null, T = D, E = "";
785
875
  }, t.isValidAttribute = function(e, t, n) {
786
- Qt || tn({});
787
- let r = Y(e), i = Y(t);
788
- return Dn(r, i, n);
876
+ on || ln({});
877
+ let r = X(e), i = X(t);
878
+ return typeof n == "string" && (Jn(t, n) || !Et && v(nt, n)) ? !1 : Un(r, i, n);
789
879
  }, t.addHook = function(e, t) {
790
- typeof t == "function" && g(M, e) && le(M[e], t);
880
+ typeof t == "function" && g(N, e) && ue(N[e], t);
791
881
  }, t.removeHook = function(e, t) {
792
- if (g(M, e)) {
882
+ if (g(N, e)) {
793
883
  if (t !== void 0) {
794
- let n = se(M[e], t);
795
- return n === -1 ? void 0 : ue(M[e], n, 1)[0];
884
+ let n = ce(N[e], t);
885
+ return n === -1 ? void 0 : fe(N[e], n, 1)[0];
796
886
  }
797
- return ce(M[e]);
887
+ return le(N[e]);
798
888
  }
799
889
  }, t.removeHooks = function(e) {
800
- g(M, e) && (M[e] = []);
890
+ g(N, e) && (N[e] = []);
801
891
  }, t.removeAllHooks = function() {
802
- M = tt();
892
+ N = ot();
803
893
  }, t;
804
894
  }
805
- var T = it(), at = {
895
+ var T = lt(), E = {
806
896
  min: {
807
897
  r: 0,
808
898
  g: 0,
@@ -839,9 +929,9 @@ var T = it(), at = {
839
929
  e /= 360, t /= 100, n /= 100;
840
930
  let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
841
931
  switch (r) {
842
- case "r": return at.hue2rgb(a, i, e + 1 / 3) * 255;
843
- case "g": return at.hue2rgb(a, i, e) * 255;
844
- case "b": return at.hue2rgb(a, i, e - 1 / 3) * 255;
932
+ case "r": return E.hue2rgb(a, i, e + 1 / 3) * 255;
933
+ case "g": return E.hue2rgb(a, i, e) * 255;
934
+ case "b": return E.hue2rgb(a, i, e - 1 / 3) * 255;
845
935
  }
846
936
  },
847
937
  rgb2hsl: ({ r: e, g: t, b: n }, r) => {
@@ -858,8 +948,8 @@ var T = it(), at = {
858
948
  default: return -1;
859
949
  }
860
950
  }
861
- }, E = {
862
- channel: at,
951
+ }, D = {
952
+ channel: E,
863
953
  lang: {
864
954
  clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
865
955
  round: (e) => Math.round(e * 1e10) / 1e10
@@ -868,13 +958,13 @@ var T = it(), at = {
868
958
  let t = Math.round(e).toString(16);
869
959
  return t.length > 1 ? t : `0${t}`;
870
960
  } }
871
- }, D = {};
872
- for (let e = 0; e <= 255; e++) D[e] = E.unit.dec2hex(e);
961
+ }, ut = {};
962
+ for (let e = 0; e <= 255; e++) ut[e] = D.unit.dec2hex(e);
873
963
  var O = {
874
964
  ALL: 0,
875
965
  RGB: 1,
876
966
  HSL: 2
877
- }, ot = class {
967
+ }, dt = class {
878
968
  constructor() {
879
969
  this.type = O.ALL;
880
970
  }
@@ -891,44 +981,44 @@ var O = {
891
981
  is(e) {
892
982
  return this.type === e;
893
983
  }
894
- }, st = new class {
984
+ }, k = new class {
895
985
  constructor(e, t) {
896
- this.color = t, this.changed = !1, this.data = e, this.type = new ot();
986
+ this.color = t, this.changed = !1, this.data = e, this.type = new dt();
897
987
  }
898
988
  set(e, t) {
899
989
  return this.color = t, this.changed = !1, this.data = e, this.type.type = O.ALL, this;
900
990
  }
901
991
  _ensureHSL() {
902
992
  let e = this.data, { h: t, s: n, l: r } = e;
903
- 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"));
993
+ t === void 0 && (e.h = D.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = D.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = D.channel.rgb2hsl(e, "l"));
904
994
  }
905
995
  _ensureRGB() {
906
996
  let e = this.data, { r: t, g: n, b: r } = e;
907
- 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"));
997
+ t === void 0 && (e.r = D.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = D.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = D.channel.hsl2rgb(e, "b"));
908
998
  }
909
999
  get r() {
910
1000
  let e = this.data, t = e.r;
911
- return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), E.channel.hsl2rgb(e, "r"));
1001
+ return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), D.channel.hsl2rgb(e, "r"));
912
1002
  }
913
1003
  get g() {
914
1004
  let e = this.data, t = e.g;
915
- return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), E.channel.hsl2rgb(e, "g"));
1005
+ return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), D.channel.hsl2rgb(e, "g"));
916
1006
  }
917
1007
  get b() {
918
1008
  let e = this.data, t = e.b;
919
- return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), E.channel.hsl2rgb(e, "b"));
1009
+ return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), D.channel.hsl2rgb(e, "b"));
920
1010
  }
921
1011
  get h() {
922
1012
  let e = this.data, t = e.h;
923
- return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), E.channel.rgb2hsl(e, "h"));
1013
+ return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), D.channel.rgb2hsl(e, "h"));
924
1014
  }
925
1015
  get s() {
926
1016
  let e = this.data, t = e.s;
927
- return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), E.channel.rgb2hsl(e, "s"));
1017
+ return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), D.channel.rgb2hsl(e, "s"));
928
1018
  }
929
1019
  get l() {
930
1020
  let e = this.data, t = e.l;
931
- return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), E.channel.rgb2hsl(e, "l"));
1021
+ return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), D.channel.rgb2hsl(e, "l"));
932
1022
  }
933
1023
  get a() {
934
1024
  return this.data.a;
@@ -959,14 +1049,14 @@ var O = {
959
1049
  g: 0,
960
1050
  b: 0,
961
1051
  a: 0
962
- }, "transparent"), k = {
1052
+ }, "transparent"), ft = {
963
1053
  re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
964
1054
  parse: (e) => {
965
1055
  if (e.charCodeAt(0) !== 35) return;
966
- let t = e.match(k.re);
1056
+ let t = e.match(ft.re);
967
1057
  if (!t) return;
968
1058
  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;
969
- return st.set({
1059
+ return k.set({
970
1060
  r: (r >> c * (l + 3) & u) * s,
971
1061
  g: (r >> c * (l + 2) & u) * s,
972
1062
  b: (r >> c * (l + 1) & u) * s,
@@ -975,41 +1065,41 @@ var O = {
975
1065
  },
976
1066
  stringify: (e) => {
977
1067
  let { r: t, g: n, b: r, a: i } = e;
978
- 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)]}`;
1068
+ return i < 1 ? `#${ut[Math.round(t)]}${ut[Math.round(n)]}${ut[Math.round(r)]}${ut[Math.round(i * 255)]}` : `#${ut[Math.round(t)]}${ut[Math.round(n)]}${ut[Math.round(r)]}`;
979
1069
  }
980
- }, A = {
1070
+ }, pt = {
981
1071
  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,
982
1072
  hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
983
1073
  _hue2deg: (e) => {
984
- let t = e.match(A.hueRe);
1074
+ let t = e.match(pt.hueRe);
985
1075
  if (t) {
986
1076
  let [, e, n] = t;
987
1077
  switch (n) {
988
- case "grad": return E.channel.clamp.h(parseFloat(e) * .9);
989
- case "rad": return E.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
990
- case "turn": return E.channel.clamp.h(parseFloat(e) * 360);
1078
+ case "grad": return D.channel.clamp.h(parseFloat(e) * .9);
1079
+ case "rad": return D.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
1080
+ case "turn": return D.channel.clamp.h(parseFloat(e) * 360);
991
1081
  }
992
1082
  }
993
- return E.channel.clamp.h(parseFloat(e));
1083
+ return D.channel.clamp.h(parseFloat(e));
994
1084
  },
995
1085
  parse: (e) => {
996
1086
  let t = e.charCodeAt(0);
997
1087
  if (t !== 104 && t !== 72) return;
998
- let n = e.match(A.re);
1088
+ let n = e.match(pt.re);
999
1089
  if (!n) return;
1000
1090
  let [, r, i, a, o, s] = n;
1001
- return st.set({
1002
- h: A._hue2deg(r),
1003
- s: E.channel.clamp.s(parseFloat(i)),
1004
- l: E.channel.clamp.l(parseFloat(a)),
1005
- a: o ? E.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
1091
+ return k.set({
1092
+ h: pt._hue2deg(r),
1093
+ s: D.channel.clamp.s(parseFloat(i)),
1094
+ l: D.channel.clamp.l(parseFloat(a)),
1095
+ a: o ? D.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
1006
1096
  }, e);
1007
1097
  },
1008
1098
  stringify: (e) => {
1009
1099
  let { h: t, s: n, l: r, a: i } = e;
1010
- 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)}%)`;
1100
+ return i < 1 ? `hsla(${D.lang.round(t)}, ${D.lang.round(n)}%, ${D.lang.round(r)}%, ${i})` : `hsl(${D.lang.round(t)}, ${D.lang.round(n)}%, ${D.lang.round(r)}%)`;
1011
1101
  }
1012
- }, ct = {
1102
+ }, A = {
1013
1103
  colors: {
1014
1104
  aliceblue: "#f0f8ff",
1015
1105
  antiquewhite: "#faebd7",
@@ -1161,80 +1251,80 @@ var O = {
1161
1251
  },
1162
1252
  parse: (e) => {
1163
1253
  e = e.toLowerCase();
1164
- let t = ct.colors[e];
1165
- if (t) return k.parse(t);
1254
+ let t = A.colors[e];
1255
+ if (t) return ft.parse(t);
1166
1256
  },
1167
1257
  stringify: (e) => {
1168
- let t = k.stringify(e);
1169
- for (let e in ct.colors) if (ct.colors[e] === t) return e;
1258
+ let t = ft.stringify(e);
1259
+ for (let e in A.colors) if (A.colors[e] === t) return e;
1170
1260
  }
1171
- }, lt = {
1261
+ }, mt = {
1172
1262
  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,
1173
1263
  parse: (e) => {
1174
1264
  let t = e.charCodeAt(0);
1175
1265
  if (t !== 114 && t !== 82) return;
1176
- let n = e.match(lt.re);
1266
+ let n = e.match(mt.re);
1177
1267
  if (!n) return;
1178
1268
  let [, r, i, a, o, s, c, l, u] = n;
1179
- return st.set({
1180
- r: E.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
1181
- g: E.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
1182
- b: E.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
1183
- a: l ? E.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
1269
+ return k.set({
1270
+ r: D.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
1271
+ g: D.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
1272
+ b: D.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
1273
+ a: l ? D.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
1184
1274
  }, e);
1185
1275
  },
1186
1276
  stringify: (e) => {
1187
1277
  let { r: t, g: n, b: r, a: i } = e;
1188
- 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)})`;
1278
+ return i < 1 ? `rgba(${D.lang.round(t)}, ${D.lang.round(n)}, ${D.lang.round(r)}, ${D.lang.round(i)})` : `rgb(${D.lang.round(t)}, ${D.lang.round(n)}, ${D.lang.round(r)})`;
1189
1279
  }
1190
1280
  }, j = {
1191
1281
  format: {
1192
- keyword: ct,
1193
- hex: k,
1194
- rgb: lt,
1195
- rgba: lt,
1196
- hsl: A,
1197
- hsla: A
1282
+ keyword: A,
1283
+ hex: ft,
1284
+ rgb: mt,
1285
+ rgba: mt,
1286
+ hsl: pt,
1287
+ hsla: pt
1198
1288
  },
1199
1289
  parse: (e) => {
1200
1290
  if (typeof e != "string") return e;
1201
- let t = k.parse(e) || lt.parse(e) || A.parse(e) || ct.parse(e);
1291
+ let t = ft.parse(e) || mt.parse(e) || pt.parse(e) || A.parse(e);
1202
1292
  if (t) return t;
1203
1293
  throw Error(`Unsupported color format: "${e}"`);
1204
1294
  },
1205
- stringify: (e) => !e.changed && e.color ? e.color : e.type.is(O.HSL) || e.data.r === void 0 ? A.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? lt.stringify(e) : k.stringify(e)
1206
- }, ut = (e, t) => {
1295
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(O.HSL) || e.data.r === void 0 ? pt.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? mt.stringify(e) : ft.stringify(e)
1296
+ }, ht = (e, t) => {
1207
1297
  let n = j.parse(e);
1208
- for (let e in t) n[e] = E.channel.clamp[e](t[e]);
1298
+ for (let e in t) n[e] = D.channel.clamp[e](t[e]);
1209
1299
  return j.stringify(n);
1210
1300
  }, M = (e, t, n = 0, r = 1) => {
1211
- if (typeof e != "number") return ut(e, { a: t });
1212
- let i = st.set({
1213
- r: E.channel.clamp.r(e),
1214
- g: E.channel.clamp.g(t),
1215
- b: E.channel.clamp.b(n),
1216
- a: E.channel.clamp.a(r)
1301
+ if (typeof e != "number") return ht(e, { a: t });
1302
+ let i = k.set({
1303
+ r: D.channel.clamp.r(e),
1304
+ g: D.channel.clamp.g(t),
1305
+ b: D.channel.clamp.b(n),
1306
+ a: D.channel.clamp.a(r)
1217
1307
  });
1218
1308
  return j.stringify(i);
1219
- }, dt = (e) => {
1220
- let { r: t, g: n, b: r } = j.parse(e), i = .2126 * E.channel.toLinear(t) + .7152 * E.channel.toLinear(n) + .0722 * E.channel.toLinear(r);
1221
- return E.lang.round(i);
1222
- }, ft = (e) => dt(e) >= .5, N = (e) => !ft(e), pt = (e, t, n) => {
1223
- let r = j.parse(e), i = r[t], a = E.channel.clamp[t](i + n);
1309
+ }, gt = (e) => {
1310
+ let { r: t, g: n, b: r } = j.parse(e), i = .2126 * D.channel.toLinear(t) + .7152 * D.channel.toLinear(n) + .0722 * D.channel.toLinear(r);
1311
+ return D.lang.round(i);
1312
+ }, N = (e) => gt(e) >= .5, P = (e) => !N(e), _t = (e, t, n) => {
1313
+ let r = j.parse(e), i = r[t], a = D.channel.clamp[t](i + n);
1224
1314
  return i !== a && (r[t] = a), j.stringify(r);
1225
- }, P = (e, t) => pt(e, "l", t), F = (e, t) => pt(e, "l", -t), I = (e, t) => {
1315
+ }, F = (e, t) => _t(e, "l", t), I = (e, t) => _t(e, "l", -t), L = (e, t) => {
1226
1316
  let n = j.parse(e), r = {};
1227
1317
  for (let e in t) t[e] && (r[e] = n[e] + t[e]);
1228
- return ut(e, r);
1229
- }, mt = (e, t, n = 50) => {
1230
- let { r, g: i, b: a, a: o } = j.parse(e), { r: s, g: c, b: l, a: u } = j.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;
1231
- return M(r * te + s * p, i * te + c * p, a * te + l * p, o * d + u * (1 - d));
1232
- }, L = (e, t = 100) => {
1318
+ return ht(e, r);
1319
+ }, vt = (e, t, n = 50) => {
1320
+ let { r, g: i, b: a, a: o } = j.parse(e), { r: s, g: c, b: l, a: u } = j.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, te = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2, ne = 1 - te;
1321
+ return M(r * te + s * ne, i * te + c * ne, a * te + l * ne, o * d + u * (1 - d));
1322
+ }, R = (e, t = 100) => {
1233
1323
  let n = j.parse(e);
1234
- return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, mt(n, e, t);
1235
- }, R = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1324
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, vt(n, e, t);
1325
+ }, yt = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1236
1326
  let r = { depth: n };
1237
- if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => R(e, t, r)), e;
1327
+ if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => yt(e, t, r)), e;
1238
1328
  if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1239
1329
  e.includes(t) || e.push(t);
1240
1330
  }), e;
@@ -1249,7 +1339,7 @@ var O = {
1249
1339
  writable: !0,
1250
1340
  enumerable: !0,
1251
1341
  configurable: !0
1252
- }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = R(r[t], i, { depth: n - 1 }));
1342
+ }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = yt(r[t], i, { depth: n - 1 }));
1253
1343
  } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1254
1344
  value: i,
1255
1345
  writable: !0,
@@ -1259,13 +1349,13 @@ var O = {
1259
1349
  });
1260
1350
  }
1261
1351
  return e;
1262
- }, "assignWithDepth"), z = R, B = "#ffffff", V = "#f2f2f2", H = /* @__PURE__ */ n((e, t) => t ? I(e, {
1352
+ }, "assignWithDepth"), z = yt, B = "#ffffff", V = "#f2f2f2", H = /* @__PURE__ */ n((e, t) => t ? L(e, {
1263
1353
  s: -40,
1264
1354
  l: 10
1265
- }) : I(e, {
1355
+ }) : L(e, {
1266
1356
  s: -40,
1267
1357
  l: -10
1268
- }), "mkBorder"), ht = class {
1358
+ }), "mkBorder"), bt = class {
1269
1359
  static {
1270
1360
  n(this, "Theme");
1271
1361
  }
@@ -1273,59 +1363,59 @@ var O = {
1273
1363
  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))";
1274
1364
  }
1275
1365
  updateColors() {
1276
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
1366
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
1277
1367
  h: 180,
1278
1368
  l: 5
1279
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(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 ? F(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 || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || P(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 || F(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || F(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || P(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || P(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 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, {
1369
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || F(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 || I(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || I(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || F(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || F(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, {
1280
1370
  h: 210,
1281
1371
  l: 150
1282
- }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
1283
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
1284
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
1285
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
1372
+ }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
1373
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
1374
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
1375
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
1286
1376
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1287
1377
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1288
1378
  let e = this.darkMode ? -4 : -1;
1289
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || I(this.mainBkg, {
1379
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || L(this.mainBkg, {
1290
1380
  h: 180,
1291
1381
  s: -15,
1292
1382
  l: e * (5 + t * 3)
1293
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || I(this.mainBkg, {
1383
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || L(this.mainBkg, {
1294
1384
  h: 180,
1295
1385
  s: -15,
1296
1386
  l: e * (8 + t * 3)
1297
1387
  });
1298
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || I(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || I(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || I(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || I(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || I(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || I(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 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || I(this.primaryColor, {
1388
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || L(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || L(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || L(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || L(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || L(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || L(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 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || L(this.primaryColor, {
1299
1389
  h: 60,
1300
1390
  l: -10
1301
- }), this.pie8 = this.pie8 || I(this.primaryColor, {
1391
+ }), this.pie8 = this.pie8 || L(this.primaryColor, {
1302
1392
  h: -60,
1303
1393
  l: -10
1304
- }), this.pie9 = this.pie9 || I(this.primaryColor, {
1394
+ }), this.pie9 = this.pie9 || L(this.primaryColor, {
1305
1395
  h: 120,
1306
1396
  l: 0
1307
- }), this.pie10 = this.pie10 || I(this.primaryColor, {
1397
+ }), this.pie10 = this.pie10 || L(this.primaryColor, {
1308
1398
  h: 60,
1309
1399
  l: -20
1310
- }), this.pie11 = this.pie11 || I(this.primaryColor, {
1400
+ }), this.pie11 = this.pie11 || L(this.primaryColor, {
1311
1401
  h: -60,
1312
1402
  l: -20
1313
- }), this.pie12 = this.pie12 || I(this.primaryColor, {
1403
+ }), this.pie12 = this.pie12 || L(this.primaryColor, {
1314
1404
  h: 120,
1315
1405
  l: -10
1316
- }), 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 ?? I(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? I(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? I(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? I(this.primaryColor, {
1406
+ }), 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 ?? L(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? L(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? L(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? L(this.primaryColor, {
1317
1407
  h: 60,
1318
1408
  l: -30
1319
- }), this.venn5 = this.venn5 ?? I(this.primaryColor, {
1409
+ }), this.venn5 = this.venn5 ?? L(this.primaryColor, {
1320
1410
  h: -60,
1321
1411
  l: -30
1322
- }), this.venn6 = this.venn6 ?? I(this.secondaryColor, {
1412
+ }), this.venn6 = this.venn6 ?? L(this.secondaryColor, {
1323
1413
  h: 60,
1324
1414
  l: -30
1325
- }), this.venn7 = this.venn7 ?? I(this.primaryColor, {
1415
+ }), this.venn7 = this.venn7 ?? L(this.primaryColor, {
1326
1416
  h: 120,
1327
1417
  l: -30
1328
- }), this.venn8 = this.venn8 ?? I(this.secondaryColor, {
1418
+ }), this.venn8 = this.venn8 ?? L(this.secondaryColor, {
1329
1419
  h: 120,
1330
1420
  l: -30
1331
1421
  }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
@@ -1368,31 +1458,31 @@ var O = {
1368
1458
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1369
1459
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1370
1460
  annotationFill: this.wardley?.annotationFill || this.background
1371
- }, 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 || I(this.primaryColor, {
1461
+ }, 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 || L(this.primaryColor, {
1372
1462
  r: 5,
1373
1463
  g: 5,
1374
1464
  b: 5
1375
- }), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
1465
+ }), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
1376
1466
  r: 10,
1377
1467
  g: 10,
1378
1468
  b: 10
1379
- }), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
1469
+ }), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
1380
1470
  r: 15,
1381
1471
  g: 15,
1382
1472
  b: 15
1383
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
1473
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
1384
1474
  r: -5,
1385
1475
  g: -5,
1386
1476
  b: -5
1387
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
1477
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
1388
1478
  r: -10,
1389
1479
  g: -10,
1390
1480
  b: -10
1391
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
1481
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
1392
1482
  r: -15,
1393
1483
  g: -15,
1394
1484
  b: -15
1395
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
1485
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
1396
1486
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1397
1487
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1398
1488
  dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
@@ -1406,7 +1496,7 @@ var O = {
1406
1496
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1407
1497
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1408
1498
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1409
- }, 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 ? F(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 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1499
+ }, 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 ? I(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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1410
1500
  }
1411
1501
  calculate(e) {
1412
1502
  if (typeof e != "object") {
@@ -1420,25 +1510,25 @@ var O = {
1420
1510
  this[t] = e[t];
1421
1511
  });
1422
1512
  }
1423
- }, gt = /* @__PURE__ */ n((e) => {
1424
- let t = new ht();
1513
+ }, U = /* @__PURE__ */ n((e) => {
1514
+ let t = new bt();
1425
1515
  return t.calculate(e), t;
1426
- }, "getThemeVariables"), _t = class {
1516
+ }, "getThemeVariables"), xt = class {
1427
1517
  static {
1428
1518
  n(this, "Theme");
1429
1519
  }
1430
1520
  constructor() {
1431
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = P(this.primaryColor, 16), this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = L(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.lineColor = L(this.background), this.textColor = L(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = P(L("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = M(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 = F("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = F(this.sectionBkgColor, 10), this.taskBorderColor = M(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = M(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 || P(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || F(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";
1521
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.lineColor = R(this.background), this.textColor = R(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(R("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = M(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 = I("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = I(this.sectionBkgColor, 10), this.taskBorderColor = M(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = M(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 || F(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || I(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";
1432
1522
  }
1433
1523
  updateColors() {
1434
- this.secondBkg = P(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 = P(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = P(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 = L(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 = I(this.primaryColor, { h: 64 }), this.fillType3 = I(this.secondaryColor, { h: 64 }), this.fillType4 = I(this.primaryColor, { h: -64 }), this.fillType5 = I(this.secondaryColor, { h: -64 }), this.fillType6 = I(this.primaryColor, { h: 128 }), this.fillType7 = I(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 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 });
1435
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
1436
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
1437
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
1524
+ this.secondBkg = F(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 = F(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = F(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 = R(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 = L(this.primaryColor, { h: 64 }), this.fillType3 = L(this.secondaryColor, { h: 64 }), this.fillType4 = L(this.primaryColor, { h: -64 }), this.fillType5 = L(this.secondaryColor, { h: -64 }), this.fillType6 = L(this.primaryColor, { h: 128 }), this.fillType7 = L(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 });
1525
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
1526
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
1527
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
1438
1528
  h: 30,
1439
1529
  s: -30,
1440
1530
  l: -(-10 + e * 4)
1441
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
1531
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
1442
1532
  h: 30,
1443
1533
  s: -30,
1444
1534
  l: -(-7 + e * 4)
@@ -1447,7 +1537,7 @@ var O = {
1447
1537
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1448
1538
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1449
1539
  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";
1450
- for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? P(this["cScale" + e], 30);
1540
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? F(this["cScale" + e], 30);
1451
1541
  this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1452
1542
  domainFontSize: this.cynefin?.domainFontSize || 16,
1453
1543
  itemFontSize: this.cynefin?.itemFontSize || 12,
@@ -1464,31 +1554,31 @@ var O = {
1464
1554
  confusionBg: this.cynefin?.confusionBg || "#4A148C",
1465
1555
  textColor: this.cynefin?.textColor || this.textColor,
1466
1556
  labelColor: this.cynefin?.labelColor || this.primaryTextColor
1467
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
1557
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
1468
1558
  r: 5,
1469
1559
  g: 5,
1470
1560
  b: 5
1471
- }), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
1561
+ }), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
1472
1562
  r: 10,
1473
1563
  g: 10,
1474
1564
  b: 10
1475
- }), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
1565
+ }), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
1476
1566
  r: 15,
1477
1567
  g: 15,
1478
1568
  b: 15
1479
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
1569
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
1480
1570
  r: -5,
1481
1571
  g: -5,
1482
1572
  b: -5
1483
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
1573
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
1484
1574
  r: -10,
1485
1575
  g: -10,
1486
1576
  b: -10
1487
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
1577
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
1488
1578
  r: -15,
1489
1579
  g: -15,
1490
1580
  b: -15
1491
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
1581
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
1492
1582
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1493
1583
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1494
1584
  dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
@@ -1533,7 +1623,7 @@ var O = {
1533
1623
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1534
1624
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1535
1625
  annotationFill: this.wardley?.annotationFill || this.mainBkg
1536
- }, 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 ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = P(this.secondaryColor, 20), this.git1 = P(this.pie2 || this.secondaryColor, 20), this.git2 = P(this.pie3 || this.tertiaryColor, 20), this.git3 = P(this.pie4 || I(this.primaryColor, { h: -30 }), 20), this.git4 = P(this.pie5 || I(this.primaryColor, { h: -60 }), 20), this.git5 = P(this.pie6 || I(this.primaryColor, { h: -90 }), 10), this.git6 = P(this.pie7 || I(this.primaryColor, { h: 60 }), 10), this.git7 = P(this.pie8 || I(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || L(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || L(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 || P("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || P("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || P("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || P("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || P(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || P(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || P(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || P(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1626
+ }, 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 ? I(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = F(this.secondaryColor, 20), this.git1 = F(this.pie2 || this.secondaryColor, 20), this.git2 = F(this.pie3 || this.tertiaryColor, 20), this.git3 = F(this.pie4 || L(this.primaryColor, { h: -30 }), 20), this.git4 = F(this.pie5 || L(this.primaryColor, { h: -60 }), 20), this.git5 = F(this.pie6 || L(this.primaryColor, { h: -90 }), 10), this.git6 = F(this.pie7 || L(this.primaryColor, { h: 60 }), 10), this.git7 = F(this.pie8 || L(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || R(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || R(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 || F("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || F("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || F("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || F("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || F(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || F(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || F(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || F(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1537
1627
  }
1538
1628
  calculate(e) {
1539
1629
  if (typeof e != "object") {
@@ -1547,62 +1637,62 @@ var O = {
1547
1637
  this[t] = e[t];
1548
1638
  });
1549
1639
  }
1550
- }, vt = /* @__PURE__ */ n((e) => {
1551
- let t = new _t();
1640
+ }, St = /* @__PURE__ */ n((e) => {
1641
+ let t = new xt();
1552
1642
  return t.calculate(e), t;
1553
- }, "getThemeVariables"), yt = class {
1643
+ }, "getThemeVariables"), W = class {
1554
1644
  static {
1555
1645
  n(this, "Theme");
1556
1646
  }
1557
1647
  constructor() {
1558
- this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = I(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.lineColor = L(this.background), this.textColor = L(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = M(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();
1648
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = L(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.lineColor = R(this.background), this.textColor = R(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = M(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();
1559
1649
  }
1560
1650
  updateColors() {
1561
- this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || F(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || F(this.tertiaryColor, 40);
1562
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 25);
1563
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e], { h: 180 });
1564
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
1651
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || I(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || I(this.tertiaryColor, 40);
1652
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 25);
1653
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e], { h: 180 });
1654
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
1565
1655
  h: 30,
1566
1656
  l: -(5 + e * 5)
1567
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
1657
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
1568
1658
  h: 30,
1569
1659
  l: -(7 + e * 5)
1570
1660
  });
1571
1661
  if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1572
- this.cScaleLabel0 = this.cScaleLabel0 || L(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || L(this.labelTextColor);
1662
+ this.cScaleLabel0 = this.cScaleLabel0 || R(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || R(this.labelTextColor);
1573
1663
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1574
1664
  }
1575
- this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || P(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || P(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 = I(this.primaryColor, { h: 64 }), this.fillType3 = I(this.secondaryColor, { h: 64 }), this.fillType4 = I(this.primaryColor, { h: -64 }), this.fillType5 = I(this.secondaryColor, { h: -64 }), this.fillType6 = I(this.primaryColor, { h: 128 }), this.fillType7 = I(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || I(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || I(this.primaryColor, {
1665
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || F(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || F(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 = L(this.primaryColor, { h: 64 }), this.fillType3 = L(this.secondaryColor, { h: 64 }), this.fillType4 = L(this.primaryColor, { h: -64 }), this.fillType5 = L(this.secondaryColor, { h: -64 }), this.fillType6 = L(this.primaryColor, { h: 128 }), this.fillType7 = L(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || L(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || L(this.primaryColor, {
1576
1666
  h: 60,
1577
1667
  l: -20
1578
- }), this.pie8 = this.pie8 || I(this.primaryColor, {
1668
+ }), this.pie8 = this.pie8 || L(this.primaryColor, {
1579
1669
  h: -60,
1580
1670
  l: -40
1581
- }), this.pie9 = this.pie9 || I(this.primaryColor, {
1671
+ }), this.pie9 = this.pie9 || L(this.primaryColor, {
1582
1672
  h: 120,
1583
1673
  l: -40
1584
- }), this.pie10 = this.pie10 || I(this.primaryColor, {
1674
+ }), this.pie10 = this.pie10 || L(this.primaryColor, {
1585
1675
  h: 60,
1586
1676
  l: -40
1587
- }), this.pie11 = this.pie11 || I(this.primaryColor, {
1677
+ }), this.pie11 = this.pie11 || L(this.primaryColor, {
1588
1678
  h: -90,
1589
1679
  l: -40
1590
- }), this.pie12 = this.pie12 || I(this.primaryColor, {
1680
+ }), this.pie12 = this.pie12 || L(this.primaryColor, {
1591
1681
  h: 120,
1592
1682
  l: -30
1593
- }), 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 ?? I(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? I(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? I(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? I(this.primaryColor, {
1683
+ }), 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 ?? L(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? L(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? L(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? L(this.primaryColor, {
1594
1684
  h: 60,
1595
1685
  l: -30
1596
- }), this.venn5 = this.venn5 ?? I(this.primaryColor, {
1686
+ }), this.venn5 = this.venn5 ?? L(this.primaryColor, {
1597
1687
  h: -60,
1598
1688
  l: -30
1599
- }), this.venn6 = this.venn6 ?? I(this.secondaryColor, {
1689
+ }), this.venn6 = this.venn6 ?? L(this.secondaryColor, {
1600
1690
  h: 60,
1601
1691
  l: -30
1602
- }), this.venn7 = this.venn7 ?? I(this.primaryColor, {
1692
+ }), this.venn7 = this.venn7 ?? L(this.primaryColor, {
1603
1693
  h: 120,
1604
1694
  l: -30
1605
- }), this.venn8 = this.venn8 ?? I(this.secondaryColor, {
1695
+ }), this.venn8 = this.venn8 ?? L(this.secondaryColor, {
1606
1696
  h: 120,
1607
1697
  l: -30
1608
1698
  }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
@@ -1621,31 +1711,31 @@ var O = {
1621
1711
  confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1622
1712
  textColor: this.cynefin?.textColor || this.textColor,
1623
1713
  labelColor: this.cynefin?.labelColor || this.primaryTextColor
1624
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
1714
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
1625
1715
  r: 5,
1626
1716
  g: 5,
1627
1717
  b: 5
1628
- }), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
1718
+ }), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
1629
1719
  r: 10,
1630
1720
  g: 10,
1631
1721
  b: 10
1632
- }), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
1722
+ }), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
1633
1723
  r: 15,
1634
1724
  g: 15,
1635
1725
  b: 15
1636
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
1726
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
1637
1727
  r: -5,
1638
1728
  g: -5,
1639
1729
  b: -5
1640
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
1730
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
1641
1731
  r: -10,
1642
1732
  g: -10,
1643
1733
  b: -10
1644
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
1734
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
1645
1735
  r: -15,
1646
1736
  g: -15,
1647
1737
  b: -15
1648
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
1738
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
1649
1739
  axisColor: this.radar?.axisColor || this.lineColor,
1650
1740
  axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1651
1741
  axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
@@ -1683,7 +1773,7 @@ var O = {
1683
1773
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1684
1774
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1685
1775
  plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1686
- }, 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 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(L(this.git0), 25), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || L(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || L(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1776
+ }, 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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(R(this.git0), 25), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || R(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1687
1777
  }
1688
1778
  calculate(e) {
1689
1779
  if (Object.keys(this).forEach((e) => {
@@ -1699,65 +1789,65 @@ var O = {
1699
1789
  this[t] = e[t];
1700
1790
  });
1701
1791
  }
1702
- }, bt = /* @__PURE__ */ n((e) => {
1703
- let t = new yt();
1792
+ }, Ct = /* @__PURE__ */ n((e) => {
1793
+ let t = new W();
1704
1794
  return t.calculate(e), t;
1705
- }, "getThemeVariables"), xt = class {
1795
+ }, "getThemeVariables"), wt = class {
1706
1796
  static {
1707
1797
  n(this, "Theme");
1708
1798
  }
1709
1799
  constructor() {
1710
- 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 = P("#cde498", 10), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.primaryColor), this.lineColor = L(this.background), this.textColor = L(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))";
1800
+ 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 = F("#cde498", 10), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.primaryColor), this.lineColor = R(this.background), this.textColor = R(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))";
1711
1801
  }
1712
1802
  updateColors() {
1713
- this.actorBorder = F(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || F(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || F(this.tertiaryColor, 40);
1714
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 25);
1715
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e], { h: 180 });
1803
+ this.actorBorder = I(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || I(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || I(this.tertiaryColor, 40);
1804
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 25);
1805
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e], { h: 180 });
1716
1806
  this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1717
1807
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1718
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
1808
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
1719
1809
  h: 30,
1720
1810
  s: -30,
1721
1811
  l: -(5 + e * 5)
1722
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
1812
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
1723
1813
  h: 30,
1724
1814
  s: -30,
1725
1815
  l: -(8 + e * 5)
1726
1816
  });
1727
- 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 || P(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || P(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 = I(this.primaryColor, { h: 64 }), this.fillType3 = I(this.secondaryColor, { h: 64 }), this.fillType4 = I(this.primaryColor, { h: -64 }), this.fillType5 = I(this.secondaryColor, { h: -64 }), this.fillType6 = I(this.primaryColor, { h: 128 }), this.fillType7 = I(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 || I(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || I(this.tertiaryColor, {
1817
+ 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 || F(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || F(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 = L(this.primaryColor, { h: 64 }), this.fillType3 = L(this.secondaryColor, { h: 64 }), this.fillType4 = L(this.primaryColor, { h: -64 }), this.fillType5 = L(this.secondaryColor, { h: -64 }), this.fillType6 = L(this.primaryColor, { h: 128 }), this.fillType7 = L(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 || L(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || L(this.tertiaryColor, {
1728
1818
  h: 40,
1729
1819
  l: -40
1730
- }), this.pie7 = this.pie7 || I(this.primaryColor, {
1820
+ }), this.pie7 = this.pie7 || L(this.primaryColor, {
1731
1821
  h: 60,
1732
1822
  l: -10
1733
- }), this.pie8 = this.pie8 || I(this.primaryColor, {
1823
+ }), this.pie8 = this.pie8 || L(this.primaryColor, {
1734
1824
  h: -60,
1735
1825
  l: -10
1736
- }), this.pie9 = this.pie9 || I(this.primaryColor, {
1826
+ }), this.pie9 = this.pie9 || L(this.primaryColor, {
1737
1827
  h: 120,
1738
1828
  l: 0
1739
- }), this.pie10 = this.pie10 || I(this.primaryColor, {
1829
+ }), this.pie10 = this.pie10 || L(this.primaryColor, {
1740
1830
  h: 60,
1741
1831
  l: -50
1742
- }), this.pie11 = this.pie11 || I(this.primaryColor, {
1832
+ }), this.pie11 = this.pie11 || L(this.primaryColor, {
1743
1833
  h: -60,
1744
1834
  l: -50
1745
- }), this.pie12 = this.pie12 || I(this.primaryColor, {
1835
+ }), this.pie12 = this.pie12 || L(this.primaryColor, {
1746
1836
  h: 120,
1747
1837
  l: -50
1748
- }), 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 ?? I(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? I(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? I(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? I(this.primaryColor, {
1838
+ }), 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 ?? L(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? L(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? L(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? L(this.primaryColor, {
1749
1839
  h: 60,
1750
1840
  l: -30
1751
- }), this.venn5 = this.venn5 ?? I(this.primaryColor, {
1841
+ }), this.venn5 = this.venn5 ?? L(this.primaryColor, {
1752
1842
  h: -60,
1753
1843
  l: -30
1754
- }), this.venn6 = this.venn6 ?? I(this.secondaryColor, {
1844
+ }), this.venn6 = this.venn6 ?? L(this.secondaryColor, {
1755
1845
  h: 60,
1756
1846
  l: -30
1757
- }), this.venn7 = this.venn7 ?? I(this.primaryColor, {
1847
+ }), this.venn7 = this.venn7 ?? L(this.primaryColor, {
1758
1848
  h: 120,
1759
1849
  l: -30
1760
- }), this.venn8 = this.venn8 ?? I(this.secondaryColor, {
1850
+ }), this.venn8 = this.venn8 ?? L(this.secondaryColor, {
1761
1851
  h: 120,
1762
1852
  l: -30
1763
1853
  }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
@@ -1776,31 +1866,31 @@ var O = {
1776
1866
  confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
1777
1867
  textColor: this.cynefin?.textColor || this.textColor,
1778
1868
  labelColor: this.cynefin?.labelColor || this.primaryTextColor
1779
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
1869
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
1780
1870
  r: 5,
1781
1871
  g: 5,
1782
1872
  b: 5
1783
- }), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
1873
+ }), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
1784
1874
  r: 10,
1785
1875
  g: 10,
1786
1876
  b: 10
1787
- }), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
1877
+ }), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
1788
1878
  r: 15,
1789
1879
  g: 15,
1790
1880
  b: 15
1791
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
1881
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
1792
1882
  r: -5,
1793
1883
  g: -5,
1794
1884
  b: -5
1795
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
1885
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
1796
1886
  r: -10,
1797
1887
  g: -10,
1798
1888
  b: -10
1799
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
1889
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
1800
1890
  r: -15,
1801
1891
  g: -15,
1802
1892
  b: -15
1803
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
1893
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
1804
1894
  startByteColor: this.primaryTextColor,
1805
1895
  endByteColor: this.primaryTextColor,
1806
1896
  labelColor: this.primaryTextColor,
@@ -1845,7 +1935,7 @@ var O = {
1845
1935
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1846
1936
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1847
1937
  plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1848
- }, 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 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || L(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || L(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1938
+ }, 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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || R(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1849
1939
  }
1850
1940
  calculate(e) {
1851
1941
  if (typeof e != "object") {
@@ -1859,24 +1949,24 @@ var O = {
1859
1949
  this[t] = e[t];
1860
1950
  });
1861
1951
  }
1862
- }, U = /* @__PURE__ */ n((e) => {
1863
- let t = new xt();
1952
+ }, Tt = /* @__PURE__ */ n((e) => {
1953
+ let t = new wt();
1864
1954
  return t.calculate(e), t;
1865
- }, "getThemeVariables"), St = class {
1955
+ }, "getThemeVariables"), Et = class {
1866
1956
  static {
1867
1957
  n(this, "Theme");
1868
1958
  }
1869
1959
  constructor() {
1870
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = P(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.lineColor = L(this.background), this.textColor = L(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 || P(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))";
1960
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = F(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.lineColor = R(this.background), this.textColor = R(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 || F(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))";
1871
1961
  }
1872
1962
  updateColors() {
1873
- this.secondBkg = P(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = P(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
1874
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
1875
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
1963
+ this.secondBkg = F(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = F(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
1964
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
1965
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
1876
1966
  this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1877
1967
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1878
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, { l: -(8 + e * 5) });
1879
- 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 = P(this.contrast, 30), this.sectionBkgColor2 = P(this.contrast, 30), this.taskBorderColor = F(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 = P(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = F(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 = I(this.primaryColor, { h: 64 }), this.fillType3 = I(this.secondaryColor, { h: 64 }), this.fillType4 = I(this.primaryColor, { h: -64 }), this.fillType5 = I(this.secondaryColor, { h: -64 }), this.fillType6 = I(this.primaryColor, { h: 128 }), this.fillType7 = I(this.secondaryColor, { h: 128 });
1968
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, { l: -(8 + e * 5) });
1969
+ 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 = F(this.contrast, 30), this.sectionBkgColor2 = F(this.contrast, 30), this.taskBorderColor = I(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 = F(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = I(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 = L(this.primaryColor, { h: 64 }), this.fillType3 = L(this.secondaryColor, { h: 64 }), this.fillType4 = L(this.primaryColor, { h: -64 }), this.fillType5 = L(this.secondaryColor, { h: -64 }), this.fillType6 = L(this.primaryColor, { h: 128 }), this.fillType7 = L(this.secondaryColor, { h: 128 });
1880
1970
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1881
1971
  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";
1882
1972
  for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
@@ -1896,31 +1986,31 @@ var O = {
1896
1986
  confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1897
1987
  textColor: this.cynefin?.textColor || this.textColor,
1898
1988
  labelColor: this.cynefin?.labelColor || this.primaryTextColor
1899
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
1989
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
1900
1990
  r: 5,
1901
1991
  g: 5,
1902
1992
  b: 5
1903
- }), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
1993
+ }), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
1904
1994
  r: 10,
1905
1995
  g: 10,
1906
1996
  b: 10
1907
- }), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
1997
+ }), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
1908
1998
  r: 15,
1909
1999
  g: 15,
1910
2000
  b: 15
1911
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
2001
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
1912
2002
  r: -5,
1913
2003
  g: -5,
1914
2004
  b: -5
1915
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
2005
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
1916
2006
  r: -10,
1917
2007
  g: -10,
1918
2008
  b: -10
1919
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
2009
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
1920
2010
  r: -15,
1921
2011
  g: -15,
1922
2012
  b: -15
1923
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
2013
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
1924
2014
  backgroundColor: this.xyChart?.backgroundColor || this.background,
1925
2015
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1926
2016
  dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
@@ -1958,7 +2048,7 @@ var O = {
1958
2048
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1959
2049
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1960
2050
  annotationFill: this.wardley?.annotationFill || this.background
1961
- }, 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 = F(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || I(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || I(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || I(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || I(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || I(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2051
+ }, 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 = I(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || L(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || L(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || L(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || L(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || L(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
1962
2052
  }
1963
2053
  calculate(e) {
1964
2054
  if (typeof e != "object") {
@@ -1972,10 +2062,10 @@ var O = {
1972
2062
  this[t] = e[t];
1973
2063
  });
1974
2064
  }
1975
- }, Ct = /* @__PURE__ */ n((e) => {
1976
- let t = new St();
2065
+ }, G = /* @__PURE__ */ n((e) => {
2066
+ let t = new Et();
1977
2067
  return t.calculate(e), t;
1978
- }, "getThemeVariables"), wt = class {
2068
+ }, "getThemeVariables"), Dt = class {
1979
2069
  static {
1980
2070
  n(this, "Theme");
1981
2071
  }
@@ -1983,76 +2073,76 @@ var O = {
1983
2073
  this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1984
2074
  }
1985
2075
  updateColors() {
1986
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
2076
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
1987
2077
  h: 180,
1988
2078
  l: 5
1989
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(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 ? F(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 || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
1990
- let e = "#ECECFE", t = "#E9E9F1", n = I(e, {
2079
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2080
+ let e = "#ECECFE", t = "#E9E9F1", n = L(e, {
1991
2081
  h: 180,
1992
2082
  l: 5
1993
2083
  });
1994
- 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 || P(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 || I(e, { h: 30 }), this.cScale4 = this.cScale4 || I(e, { h: 60 }), this.cScale5 = this.cScale5 || I(e, { h: 90 }), this.cScale6 = this.cScale6 || I(e, { h: 120 }), this.cScale7 = this.cScale7 || I(e, { h: 150 }), this.cScale8 = this.cScale8 || I(e, {
2084
+ 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 || F(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 || L(e, { h: 30 }), this.cScale4 = this.cScale4 || L(e, { h: 60 }), this.cScale5 = this.cScale5 || L(e, { h: 90 }), this.cScale6 = this.cScale6 || L(e, { h: 120 }), this.cScale7 = this.cScale7 || L(e, { h: 150 }), this.cScale8 = this.cScale8 || L(e, {
1995
2085
  h: 210,
1996
2086
  l: 150
1997
- }), this.cScale9 = this.cScale9 || I(e, { h: 270 }), this.cScale10 = this.cScale10 || I(e, { h: 300 }), this.cScale11 = this.cScale11 || I(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
1998
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
1999
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
2000
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
2087
+ }), this.cScale9 = this.cScale9 || L(e, { h: 270 }), this.cScale10 = this.cScale10 || L(e, { h: 300 }), this.cScale11 = this.cScale11 || L(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
2088
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
2089
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
2090
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
2001
2091
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2002
2092
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2003
2093
  let r = this.darkMode ? -4 : -1;
2004
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
2094
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
2005
2095
  h: 180,
2006
2096
  s: -15,
2007
2097
  l: r * (5 + e * 3)
2008
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
2098
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
2009
2099
  h: 180,
2010
2100
  s: -15,
2011
2101
  l: r * (8 + e * 3)
2012
2102
  });
2013
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || I(e, { h: 64 }), this.fillType3 = this.fillType3 || I(t, { h: 64 }), this.fillType4 = this.fillType4 || I(e, { h: -64 }), this.fillType5 = this.fillType5 || I(t, { h: -64 }), this.fillType6 = this.fillType6 || I(e, { h: 128 }), this.fillType7 = this.fillType7 || I(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || I(e, { l: -10 }), this.pie5 = this.pie5 || I(t, { l: -10 }), this.pie6 = this.pie6 || I(n, { l: -10 }), this.pie7 = this.pie7 || I(e, {
2103
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || L(e, { h: 64 }), this.fillType3 = this.fillType3 || L(t, { h: 64 }), this.fillType4 = this.fillType4 || L(e, { h: -64 }), this.fillType5 = this.fillType5 || L(t, { h: -64 }), this.fillType6 = this.fillType6 || L(e, { h: 128 }), this.fillType7 = this.fillType7 || L(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || L(e, { l: -10 }), this.pie5 = this.pie5 || L(t, { l: -10 }), this.pie6 = this.pie6 || L(n, { l: -10 }), this.pie7 = this.pie7 || L(e, {
2014
2104
  h: 60,
2015
2105
  l: -10
2016
- }), this.pie8 = this.pie8 || I(e, {
2106
+ }), this.pie8 = this.pie8 || L(e, {
2017
2107
  h: -60,
2018
2108
  l: -10
2019
- }), this.pie9 = this.pie9 || I(e, {
2109
+ }), this.pie9 = this.pie9 || L(e, {
2020
2110
  h: 120,
2021
2111
  l: 0
2022
- }), this.pie10 = this.pie10 || I(e, {
2112
+ }), this.pie10 = this.pie10 || L(e, {
2023
2113
  h: 60,
2024
2114
  l: -20
2025
- }), this.pie11 = this.pie11 || I(e, {
2115
+ }), this.pie11 = this.pie11 || L(e, {
2026
2116
  h: -60,
2027
2117
  l: -20
2028
- }), this.pie12 = this.pie12 || I(e, {
2118
+ }), this.pie12 = this.pie12 || L(e, {
2029
2119
  h: 120,
2030
2120
  l: -10
2031
- }), 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 || I(e, {
2121
+ }), 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 || L(e, {
2032
2122
  r: 5,
2033
2123
  g: 5,
2034
2124
  b: 5
2035
- }), this.quadrant3Fill = this.quadrant3Fill || I(e, {
2125
+ }), this.quadrant3Fill = this.quadrant3Fill || L(e, {
2036
2126
  r: 10,
2037
2127
  g: 10,
2038
2128
  b: 10
2039
- }), this.quadrant4Fill = this.quadrant4Fill || I(e, {
2129
+ }), this.quadrant4Fill = this.quadrant4Fill || L(e, {
2040
2130
  r: 15,
2041
2131
  g: 15,
2042
2132
  b: 15
2043
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
2133
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
2044
2134
  r: -5,
2045
2135
  g: -5,
2046
2136
  b: -5
2047
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
2137
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
2048
2138
  r: -10,
2049
2139
  g: -10,
2050
2140
  b: -10
2051
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
2141
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
2052
2142
  r: -15,
2053
2143
  g: -15,
2054
2144
  b: -15
2055
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
2145
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
2056
2146
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2057
2147
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2058
2148
  legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
@@ -2065,7 +2155,7 @@ var O = {
2065
2155
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2066
2156
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2067
2157
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2068
- }, 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 ? F(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 || I(e, { h: -30 }), this.git4 = this.git4 || I(e, { h: -60 }), this.git5 = this.git5 || I(e, { h: -90 }), this.git6 = this.git6 || I(e, { h: 60 }), this.git7 = this.git7 || I(e, { h: 120 }), this.darkMode ? (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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2158
+ }, 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 ? I(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 || L(e, { h: -30 }), this.git4 = this.git4 || L(e, { h: -60 }), this.git5 = this.git5 || L(e, { h: -90 }), this.git6 = this.git6 || L(e, { h: 60 }), this.git7 = this.git7 || L(e, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2069
2159
  }
2070
2160
  calculate(e) {
2071
2161
  if (typeof e != "object") {
@@ -2079,82 +2169,82 @@ var O = {
2079
2169
  this[t] = e[t];
2080
2170
  });
2081
2171
  }
2082
- }, Tt = /* @__PURE__ */ n((e) => {
2083
- let t = new wt();
2172
+ }, Ot = /* @__PURE__ */ n((e) => {
2173
+ let t = new Dt();
2084
2174
  return t.calculate(e), t;
2085
- }, "getThemeVariables"), Et = class {
2175
+ }, "getThemeVariables"), kt = class {
2086
2176
  static {
2087
2177
  n(this, "Theme");
2088
2178
  }
2089
2179
  constructor() {
2090
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = P(this.primaryColor, 16), this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = L(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = P(L("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = L(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";
2180
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(R("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = R(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";
2091
2181
  }
2092
2182
  updateColors() {
2093
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
2183
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
2094
2184
  h: 180,
2095
2185
  l: 5
2096
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(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 ? F(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 || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || P(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 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, {
2186
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || F(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, {
2097
2187
  h: 210,
2098
2188
  l: 150
2099
- }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
2100
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
2101
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
2102
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
2189
+ }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
2190
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
2191
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
2192
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
2103
2193
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2104
2194
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2105
2195
  let e = this.darkMode ? -4 : -1;
2106
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || I(this.mainBkg, {
2196
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || L(this.mainBkg, {
2107
2197
  h: 180,
2108
2198
  s: -15,
2109
2199
  l: e * (5 + t * 3)
2110
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || I(this.mainBkg, {
2200
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || L(this.mainBkg, {
2111
2201
  h: 180,
2112
2202
  s: -15,
2113
2203
  l: e * (8 + t * 3)
2114
2204
  });
2115
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || I(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || I(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || I(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || I(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || I(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || I(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 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || I(this.primaryColor, {
2205
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || L(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || L(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || L(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || L(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || L(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || L(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 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || L(this.primaryColor, {
2116
2206
  h: 60,
2117
2207
  l: -10
2118
- }), this.pie8 = this.pie8 || I(this.primaryColor, {
2208
+ }), this.pie8 = this.pie8 || L(this.primaryColor, {
2119
2209
  h: -60,
2120
2210
  l: -10
2121
- }), this.pie9 = this.pie9 || I(this.primaryColor, {
2211
+ }), this.pie9 = this.pie9 || L(this.primaryColor, {
2122
2212
  h: 120,
2123
2213
  l: 0
2124
- }), this.pie10 = this.pie10 || I(this.primaryColor, {
2214
+ }), this.pie10 = this.pie10 || L(this.primaryColor, {
2125
2215
  h: 60,
2126
2216
  l: -20
2127
- }), this.pie11 = this.pie11 || I(this.primaryColor, {
2217
+ }), this.pie11 = this.pie11 || L(this.primaryColor, {
2128
2218
  h: -60,
2129
2219
  l: -20
2130
- }), this.pie12 = this.pie12 || I(this.primaryColor, {
2220
+ }), this.pie12 = this.pie12 || L(this.primaryColor, {
2131
2221
  h: 120,
2132
2222
  l: -10
2133
- }), 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 || I(this.primaryColor, {
2223
+ }), 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 || L(this.primaryColor, {
2134
2224
  r: 5,
2135
2225
  g: 5,
2136
2226
  b: 5
2137
- }), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
2227
+ }), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
2138
2228
  r: 10,
2139
2229
  g: 10,
2140
2230
  b: 10
2141
- }), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
2231
+ }), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
2142
2232
  r: 15,
2143
2233
  g: 15,
2144
2234
  b: 15
2145
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
2235
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
2146
2236
  r: -5,
2147
2237
  g: -5,
2148
2238
  b: -5
2149
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
2239
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
2150
2240
  r: -10,
2151
2241
  g: -10,
2152
2242
  b: -10
2153
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
2243
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
2154
2244
  r: -15,
2155
2245
  g: -15,
2156
2246
  b: -15
2157
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
2247
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
2158
2248
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2159
2249
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2160
2250
  legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
@@ -2167,7 +2257,7 @@ var O = {
2167
2257
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2168
2258
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2169
2259
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2170
- }, 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 ? F(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 = 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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2260
+ }, 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 ? I(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 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2171
2261
  }
2172
2262
  calculate(e) {
2173
2263
  if (typeof e != "object") {
@@ -2181,10 +2271,10 @@ var O = {
2181
2271
  this[t] = e[t];
2182
2272
  });
2183
2273
  }
2184
- }, Dt = /* @__PURE__ */ n((e) => {
2185
- let t = new Et();
2274
+ }, At = /* @__PURE__ */ n((e) => {
2275
+ let t = new kt();
2186
2276
  return t.calculate(e), t;
2187
- }, "getThemeVariables"), Ot = class {
2277
+ }, "getThemeVariables"), jt = class {
2188
2278
  static {
2189
2279
  n(this, "Theme");
2190
2280
  }
@@ -2192,75 +2282,75 @@ var O = {
2192
2282
  this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = H("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
2193
2283
  }
2194
2284
  updateColors() {
2195
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
2285
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
2196
2286
  h: 180,
2197
2287
  l: 5
2198
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(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 ? F(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 || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2199
- let e = "#ECECFE", t = "#E9E9F1", n = I(e, {
2288
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2289
+ let e = "#ECECFE", t = "#E9E9F1", n = L(e, {
2200
2290
  h: 180,
2201
2291
  l: 5
2202
2292
  });
2203
- 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 || P(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;
2293
+ 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 || F(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;
2204
2294
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
2205
- if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
2206
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
2207
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
2208
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
2295
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
2296
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
2297
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
2298
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
2209
2299
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2210
2300
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2211
2301
  let r = this.darkMode ? -4 : -1;
2212
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
2302
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
2213
2303
  h: 180,
2214
2304
  s: -15,
2215
2305
  l: r * (5 + e * 3)
2216
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
2306
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
2217
2307
  h: 180,
2218
2308
  s: -15,
2219
2309
  l: r * (8 + e * 3)
2220
2310
  });
2221
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || I(e, { h: 64 }), this.fillType3 = this.fillType3 || I(t, { h: 64 }), this.fillType4 = this.fillType4 || I(e, { h: -64 }), this.fillType5 = this.fillType5 || I(t, { h: -64 }), this.fillType6 = this.fillType6 || I(e, { h: 128 }), this.fillType7 = this.fillType7 || I(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || I(e, { l: -10 }), this.pie5 = this.pie5 || I(t, { l: -10 }), this.pie6 = this.pie6 || I(n, { l: -10 }), this.pie7 = this.pie7 || I(e, {
2311
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || L(e, { h: 64 }), this.fillType3 = this.fillType3 || L(t, { h: 64 }), this.fillType4 = this.fillType4 || L(e, { h: -64 }), this.fillType5 = this.fillType5 || L(t, { h: -64 }), this.fillType6 = this.fillType6 || L(e, { h: 128 }), this.fillType7 = this.fillType7 || L(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || L(e, { l: -10 }), this.pie5 = this.pie5 || L(t, { l: -10 }), this.pie6 = this.pie6 || L(n, { l: -10 }), this.pie7 = this.pie7 || L(e, {
2222
2312
  h: 60,
2223
2313
  l: -10
2224
- }), this.pie8 = this.pie8 || I(e, {
2314
+ }), this.pie8 = this.pie8 || L(e, {
2225
2315
  h: -60,
2226
2316
  l: -10
2227
- }), this.pie9 = this.pie9 || I(e, {
2317
+ }), this.pie9 = this.pie9 || L(e, {
2228
2318
  h: 120,
2229
2319
  l: 0
2230
- }), this.pie10 = this.pie10 || I(e, {
2320
+ }), this.pie10 = this.pie10 || L(e, {
2231
2321
  h: 60,
2232
2322
  l: -20
2233
- }), this.pie11 = this.pie11 || I(e, {
2323
+ }), this.pie11 = this.pie11 || L(e, {
2234
2324
  h: -60,
2235
2325
  l: -20
2236
- }), this.pie12 = this.pie12 || I(e, {
2326
+ }), this.pie12 = this.pie12 || L(e, {
2237
2327
  h: 120,
2238
2328
  l: -10
2239
- }), 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 || I(e, {
2329
+ }), 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 || L(e, {
2240
2330
  r: 5,
2241
2331
  g: 5,
2242
2332
  b: 5
2243
- }), this.quadrant3Fill = this.quadrant3Fill || I(e, {
2333
+ }), this.quadrant3Fill = this.quadrant3Fill || L(e, {
2244
2334
  r: 10,
2245
2335
  g: 10,
2246
2336
  b: 10
2247
- }), this.quadrant4Fill = this.quadrant4Fill || I(e, {
2337
+ }), this.quadrant4Fill = this.quadrant4Fill || L(e, {
2248
2338
  r: 15,
2249
2339
  g: 15,
2250
2340
  b: 15
2251
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
2341
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
2252
2342
  r: -5,
2253
2343
  g: -5,
2254
2344
  b: -5
2255
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
2345
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
2256
2346
  r: -10,
2257
2347
  g: -10,
2258
2348
  b: -10
2259
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
2349
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
2260
2350
  r: -15,
2261
2351
  g: -15,
2262
2352
  b: -15
2263
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
2353
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
2264
2354
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2265
2355
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2266
2356
  legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
@@ -2273,7 +2363,7 @@ var O = {
2273
2363
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2274
2364
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2275
2365
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2276
- }, 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 ? F(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 || I(e, { h: -30 }), this.git4 = this.git4 || I(e, { h: -60 }), this.git5 = this.git5 || I(e, { h: -90 }), this.git6 = this.git6 || I(e, { h: 60 }), this.git7 = this.git7 || I(e, { h: 120 }), this.darkMode ? (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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2366
+ }, 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 ? I(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 || L(e, { h: -30 }), this.git4 = this.git4 || L(e, { h: -60 }), this.git5 = this.git5 || L(e, { h: -90 }), this.git6 = this.git6 || L(e, { h: 60 }), this.git7 = this.git7 || L(e, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2277
2367
  }
2278
2368
  calculate(e) {
2279
2369
  if (typeof e != "object") {
@@ -2287,82 +2377,82 @@ var O = {
2287
2377
  this[t] = e[t];
2288
2378
  });
2289
2379
  }
2290
- }, kt = /* @__PURE__ */ n((e) => {
2291
- let t = new Ot();
2380
+ }, Mt = /* @__PURE__ */ n((e) => {
2381
+ let t = new jt();
2292
2382
  return t.calculate(e), t;
2293
- }, "getThemeVariables"), At = class {
2383
+ }, "getThemeVariables"), Nt = class {
2294
2384
  static {
2295
2385
  n(this, "Theme");
2296
2386
  }
2297
2387
  constructor() {
2298
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = P(this.primaryColor, 16), this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = L(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = P(L("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = L(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";
2388
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(R("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = R(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";
2299
2389
  }
2300
2390
  updateColors() {
2301
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
2391
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
2302
2392
  h: 180,
2303
2393
  l: 5
2304
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(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 ? F(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 || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || P(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 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, {
2394
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || F(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, {
2305
2395
  h: 210,
2306
2396
  l: 150
2307
- }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
2308
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
2309
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
2310
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
2397
+ }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
2398
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
2399
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
2400
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
2311
2401
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2312
2402
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2313
2403
  let e = this.darkMode ? -4 : -1;
2314
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || I(this.mainBkg, {
2404
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || L(this.mainBkg, {
2315
2405
  h: 180,
2316
2406
  s: -15,
2317
2407
  l: e * (5 + t * 3)
2318
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || I(this.mainBkg, {
2408
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || L(this.mainBkg, {
2319
2409
  h: 180,
2320
2410
  s: -15,
2321
2411
  l: e * (8 + t * 3)
2322
2412
  });
2323
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || I(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || I(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || I(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || I(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || I(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || I(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 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || I(this.primaryColor, {
2413
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || L(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || L(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || L(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || L(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || L(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || L(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 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || L(this.primaryColor, {
2324
2414
  h: 60,
2325
2415
  l: -10
2326
- }), this.pie8 = this.pie8 || I(this.primaryColor, {
2416
+ }), this.pie8 = this.pie8 || L(this.primaryColor, {
2327
2417
  h: -60,
2328
2418
  l: -10
2329
- }), this.pie9 = this.pie9 || I(this.primaryColor, {
2419
+ }), this.pie9 = this.pie9 || L(this.primaryColor, {
2330
2420
  h: 120,
2331
2421
  l: 0
2332
- }), this.pie10 = this.pie10 || I(this.primaryColor, {
2422
+ }), this.pie10 = this.pie10 || L(this.primaryColor, {
2333
2423
  h: 60,
2334
2424
  l: -20
2335
- }), this.pie11 = this.pie11 || I(this.primaryColor, {
2425
+ }), this.pie11 = this.pie11 || L(this.primaryColor, {
2336
2426
  h: -60,
2337
2427
  l: -20
2338
- }), this.pie12 = this.pie12 || I(this.primaryColor, {
2428
+ }), this.pie12 = this.pie12 || L(this.primaryColor, {
2339
2429
  h: 120,
2340
2430
  l: -10
2341
- }), 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 || I(this.primaryColor, {
2431
+ }), 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 || L(this.primaryColor, {
2342
2432
  r: 5,
2343
2433
  g: 5,
2344
2434
  b: 5
2345
- }), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
2435
+ }), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
2346
2436
  r: 10,
2347
2437
  g: 10,
2348
2438
  b: 10
2349
- }), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
2439
+ }), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
2350
2440
  r: 15,
2351
2441
  g: 15,
2352
2442
  b: 15
2353
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
2443
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
2354
2444
  r: -5,
2355
2445
  g: -5,
2356
2446
  b: -5
2357
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
2447
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
2358
2448
  r: -10,
2359
2449
  g: -10,
2360
2450
  b: -10
2361
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
2451
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
2362
2452
  r: -15,
2363
2453
  g: -15,
2364
2454
  b: -15
2365
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
2455
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
2366
2456
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2367
2457
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2368
2458
  legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
@@ -2375,7 +2465,7 @@ var O = {
2375
2465
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2376
2466
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2377
2467
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2378
- }, 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 ? F(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 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2468
+ }, 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 ? I(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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2379
2469
  }
2380
2470
  calculate(e) {
2381
2471
  if (typeof e != "object") {
@@ -2389,10 +2479,10 @@ var O = {
2389
2479
  this[t] = e[t];
2390
2480
  });
2391
2481
  }
2392
- }, jt = /* @__PURE__ */ n((e) => {
2393
- let t = new At();
2482
+ }, Pt = /* @__PURE__ */ n((e) => {
2483
+ let t = new Nt();
2394
2484
  return t.calculate(e), t;
2395
- }, "getThemeVariables"), Mt = class {
2485
+ }, "getThemeVariables"), Ft = class {
2396
2486
  static {
2397
2487
  n(this, "Theme");
2398
2488
  }
@@ -2426,72 +2516,72 @@ var O = {
2426
2516
  ], this.filterColor = "#000000";
2427
2517
  }
2428
2518
  updateColors() {
2429
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
2519
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
2430
2520
  h: 180,
2431
2521
  l: 5
2432
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(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 ? F(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 || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2433
- let e = "#ECECFE", t = "#E9E9F1", n = I(e, {
2522
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2523
+ let e = "#ECECFE", t = "#E9E9F1", n = L(e, {
2434
2524
  h: 180,
2435
2525
  l: 5
2436
2526
  });
2437
- 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 || P(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";
2438
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
2439
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
2527
+ 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 || F(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";
2528
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
2529
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
2440
2530
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2441
2531
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2442
2532
  let r = this.darkMode ? -4 : -1;
2443
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
2533
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
2444
2534
  h: 180,
2445
2535
  s: -15,
2446
2536
  l: r * (5 + e * 3)
2447
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
2537
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
2448
2538
  h: 180,
2449
2539
  s: -15,
2450
2540
  l: r * (8 + e * 3)
2451
2541
  });
2452
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || I(e, { h: 64 }), this.fillType3 = this.fillType3 || I(t, { h: 64 }), this.fillType4 = this.fillType4 || I(e, { h: -64 }), this.fillType5 = this.fillType5 || I(t, { h: -64 }), this.fillType6 = this.fillType6 || I(e, { h: 128 }), this.fillType7 = this.fillType7 || I(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || I(e, { l: -10 }), this.pie5 = this.pie5 || I(t, { l: -10 }), this.pie6 = this.pie6 || I(n, { l: -10 }), this.pie7 = this.pie7 || I(e, {
2542
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || L(e, { h: 64 }), this.fillType3 = this.fillType3 || L(t, { h: 64 }), this.fillType4 = this.fillType4 || L(e, { h: -64 }), this.fillType5 = this.fillType5 || L(t, { h: -64 }), this.fillType6 = this.fillType6 || L(e, { h: 128 }), this.fillType7 = this.fillType7 || L(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || L(e, { l: -10 }), this.pie5 = this.pie5 || L(t, { l: -10 }), this.pie6 = this.pie6 || L(n, { l: -10 }), this.pie7 = this.pie7 || L(e, {
2453
2543
  h: 60,
2454
2544
  l: -10
2455
- }), this.pie8 = this.pie8 || I(e, {
2545
+ }), this.pie8 = this.pie8 || L(e, {
2456
2546
  h: -60,
2457
2547
  l: -10
2458
- }), this.pie9 = this.pie9 || I(e, {
2548
+ }), this.pie9 = this.pie9 || L(e, {
2459
2549
  h: 120,
2460
2550
  l: 0
2461
- }), this.pie10 = this.pie10 || I(e, {
2551
+ }), this.pie10 = this.pie10 || L(e, {
2462
2552
  h: 60,
2463
2553
  l: -20
2464
- }), this.pie11 = this.pie11 || I(e, {
2554
+ }), this.pie11 = this.pie11 || L(e, {
2465
2555
  h: -60,
2466
2556
  l: -20
2467
- }), this.pie12 = this.pie12 || I(e, {
2557
+ }), this.pie12 = this.pie12 || L(e, {
2468
2558
  h: 120,
2469
2559
  l: -10
2470
- }), 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 || I(e, {
2560
+ }), 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 || L(e, {
2471
2561
  r: 5,
2472
2562
  g: 5,
2473
2563
  b: 5
2474
- }), this.quadrant3Fill = this.quadrant3Fill || I(e, {
2564
+ }), this.quadrant3Fill = this.quadrant3Fill || L(e, {
2475
2565
  r: 10,
2476
2566
  g: 10,
2477
2567
  b: 10
2478
- }), this.quadrant4Fill = this.quadrant4Fill || I(e, {
2568
+ }), this.quadrant4Fill = this.quadrant4Fill || L(e, {
2479
2569
  r: 15,
2480
2570
  g: 15,
2481
2571
  b: 15
2482
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
2572
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
2483
2573
  r: -5,
2484
2574
  g: -5,
2485
2575
  b: -5
2486
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
2576
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
2487
2577
  r: -10,
2488
2578
  g: -10,
2489
2579
  b: -10
2490
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
2580
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
2491
2581
  r: -15,
2492
2582
  g: -15,
2493
2583
  b: -15
2494
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
2584
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
2495
2585
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2496
2586
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2497
2587
  legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
@@ -2504,7 +2594,7 @@ var O = {
2504
2594
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2505
2595
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2506
2596
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2507
- }, 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 ? F(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 || I(e, { h: -30 }), this.git4 = this.git4 || I(e, { h: -60 }), this.git5 = this.git5 || I(e, { h: -90 }), this.git6 = this.git6 || I(e, { h: 60 }), this.git7 = this.git7 || I(e, { h: 120 }), this.darkMode ? (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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2597
+ }, 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 ? I(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 || L(e, { h: -30 }), this.git4 = this.git4 || L(e, { h: -60 }), this.git5 = this.git5 || L(e, { h: -90 }), this.git6 = this.git6 || L(e, { h: 60 }), this.git7 = this.git7 || L(e, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2508
2598
  }
2509
2599
  calculate(e) {
2510
2600
  if (typeof e != "object") {
@@ -2518,15 +2608,15 @@ var O = {
2518
2608
  this[t] = e[t];
2519
2609
  });
2520
2610
  }
2521
- }, Nt = /* @__PURE__ */ n((e) => {
2522
- let t = new Mt();
2611
+ }, It = /* @__PURE__ */ n((e) => {
2612
+ let t = new Ft();
2523
2613
  return t.calculate(e), t;
2524
- }, "getThemeVariables"), Pt = class {
2614
+ }, "getThemeVariables"), Lt = class {
2525
2615
  static {
2526
2616
  n(this, "Theme");
2527
2617
  }
2528
2618
  constructor() {
2529
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = P(this.primaryColor, 16), this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = L(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = P(L("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = L(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 = [
2619
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(R("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = R(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 = [
2530
2620
  "#E879F9",
2531
2621
  "#2DD4BF",
2532
2622
  "#FB923C",
@@ -2542,67 +2632,67 @@ var O = {
2542
2632
  ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2543
2633
  }
2544
2634
  updateColors() {
2545
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
2635
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
2546
2636
  h: 180,
2547
2637
  l: 5
2548
- }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(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 ? F(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 || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || P(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";
2549
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
2550
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
2638
+ }), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || F(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";
2639
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
2640
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
2551
2641
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2552
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = F(this["cScale" + e], 75);
2642
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = I(this["cScale" + e], 75);
2553
2643
  let e = this.darkMode ? -4 : -1;
2554
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || I(this.mainBkg, {
2644
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || L(this.mainBkg, {
2555
2645
  h: 180,
2556
2646
  s: -15,
2557
2647
  l: e * (5 + t * 3)
2558
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || I(this.mainBkg, {
2648
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || L(this.mainBkg, {
2559
2649
  h: 180,
2560
2650
  s: -15,
2561
2651
  l: e * (8 + t * 3)
2562
2652
  });
2563
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || I(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || I(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || I(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || I(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || I(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || I(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 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || I(this.primaryColor, {
2653
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || L(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || L(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || L(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || L(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || L(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || L(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 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || L(this.primaryColor, {
2564
2654
  h: 60,
2565
2655
  l: -10
2566
- }), this.pie8 = this.pie8 || I(this.primaryColor, {
2656
+ }), this.pie8 = this.pie8 || L(this.primaryColor, {
2567
2657
  h: -60,
2568
2658
  l: -10
2569
- }), this.pie9 = this.pie9 || I(this.primaryColor, {
2659
+ }), this.pie9 = this.pie9 || L(this.primaryColor, {
2570
2660
  h: 120,
2571
2661
  l: 0
2572
- }), this.pie10 = this.pie10 || I(this.primaryColor, {
2662
+ }), this.pie10 = this.pie10 || L(this.primaryColor, {
2573
2663
  h: 60,
2574
2664
  l: -20
2575
- }), this.pie11 = this.pie11 || I(this.primaryColor, {
2665
+ }), this.pie11 = this.pie11 || L(this.primaryColor, {
2576
2666
  h: -60,
2577
2667
  l: -20
2578
- }), this.pie12 = this.pie12 || I(this.primaryColor, {
2668
+ }), this.pie12 = this.pie12 || L(this.primaryColor, {
2579
2669
  h: 120,
2580
2670
  l: -10
2581
- }), 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 || I(this.primaryColor, {
2671
+ }), 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 || L(this.primaryColor, {
2582
2672
  r: 5,
2583
2673
  g: 5,
2584
2674
  b: 5
2585
- }), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
2675
+ }), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
2586
2676
  r: 10,
2587
2677
  g: 10,
2588
2678
  b: 10
2589
- }), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
2679
+ }), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
2590
2680
  r: 15,
2591
2681
  g: 15,
2592
2682
  b: 15
2593
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
2683
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
2594
2684
  r: -5,
2595
2685
  g: -5,
2596
2686
  b: -5
2597
- }), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
2687
+ }), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
2598
2688
  r: -10,
2599
2689
  g: -10,
2600
2690
  b: -10
2601
- }), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
2691
+ }), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
2602
2692
  r: -15,
2603
2693
  g: -15,
2604
2694
  b: -15
2605
- }), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(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 = {
2695
+ }), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(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 = {
2606
2696
  backgroundColor: this.xyChart?.backgroundColor || this.background,
2607
2697
  titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2608
2698
  legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
@@ -2615,7 +2705,7 @@ var O = {
2615
2705
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2616
2706
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2617
2707
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2618
- }, 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 ? F(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 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2708
+ }, 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 ? I(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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
2619
2709
  }
2620
2710
  calculate(e) {
2621
2711
  if (typeof e != "object") {
@@ -2629,22 +2719,22 @@ var O = {
2629
2719
  this[t] = e[t];
2630
2720
  });
2631
2721
  }
2632
- }, W = {
2633
- base: { getThemeVariables: gt },
2634
- dark: { getThemeVariables: vt },
2635
- default: { getThemeVariables: bt },
2636
- forest: { getThemeVariables: U },
2637
- neutral: { getThemeVariables: Ct },
2638
- neo: { getThemeVariables: Tt },
2639
- "neo-dark": { getThemeVariables: Dt },
2640
- redux: { getThemeVariables: kt },
2641
- "redux-dark": { getThemeVariables: jt },
2642
- "redux-color": { getThemeVariables: Nt },
2722
+ }, Rt = {
2723
+ base: { getThemeVariables: U },
2724
+ dark: { getThemeVariables: St },
2725
+ default: { getThemeVariables: Ct },
2726
+ forest: { getThemeVariables: Tt },
2727
+ neutral: { getThemeVariables: G },
2728
+ neo: { getThemeVariables: Ot },
2729
+ "neo-dark": { getThemeVariables: At },
2730
+ redux: { getThemeVariables: Mt },
2731
+ "redux-dark": { getThemeVariables: Pt },
2732
+ "redux-color": { getThemeVariables: It },
2643
2733
  "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2644
- let t = new Pt();
2734
+ let t = new Lt();
2645
2735
  return t.calculate(e), t;
2646
2736
  }, "getThemeVariables") }
2647
- }, G = {
2737
+ }, K = {
2648
2738
  flowchart: {
2649
2739
  useMaxWidth: !0,
2650
2740
  titleTopMargin: 25,
@@ -3195,8 +3285,8 @@ var O = {
3195
3285
  fontSize: 16,
3196
3286
  markdownAutoWrap: !0,
3197
3287
  suppressErrorRendering: !1
3198
- }, Ft = {
3199
- ...G,
3288
+ }, zt = {
3289
+ ...K,
3200
3290
  deterministicIDSeed: void 0,
3201
3291
  elk: {
3202
3292
  mergeEdges: !1,
@@ -3207,9 +3297,9 @@ var O = {
3207
3297
  keepEntryNodeOnTop: !1
3208
3298
  },
3209
3299
  themeCSS: void 0,
3210
- themeVariables: W.default.getThemeVariables(),
3300
+ themeVariables: Rt.default.getThemeVariables(),
3211
3301
  sequence: {
3212
- ...G.sequence,
3302
+ ...K.sequence,
3213
3303
  messageFont: /* @__PURE__ */ n(function() {
3214
3304
  return {
3215
3305
  fontFamily: this.messageFontFamily,
@@ -3238,12 +3328,12 @@ var O = {
3238
3328
  hierarchicalNamespaces: !0
3239
3329
  },
3240
3330
  gantt: {
3241
- ...G.gantt,
3331
+ ...K.gantt,
3242
3332
  tickInterval: void 0,
3243
3333
  useWidth: void 0
3244
3334
  },
3245
3335
  c4: {
3246
- ...G.c4,
3336
+ ...K.c4,
3247
3337
  useWidth: void 0,
3248
3338
  personFont: /* @__PURE__ */ n(function() {
3249
3339
  return {
@@ -3253,7 +3343,7 @@ var O = {
3253
3343
  };
3254
3344
  }, "personFont"),
3255
3345
  flowchart: {
3256
- ...G.flowchart,
3346
+ ...K.flowchart,
3257
3347
  inheritDir: !1
3258
3348
  },
3259
3349
  external_personFont: /* @__PURE__ */ n(function() {
@@ -3405,26 +3495,26 @@ var O = {
3405
3495
  }, "messageFont")
3406
3496
  },
3407
3497
  pie: {
3408
- ...G.pie,
3498
+ ...K.pie,
3409
3499
  useWidth: 984
3410
3500
  },
3411
3501
  xyChart: {
3412
- ...G.xyChart,
3502
+ ...K.xyChart,
3413
3503
  useWidth: void 0
3414
3504
  },
3415
3505
  requirement: {
3416
- ...G.requirement,
3506
+ ...K.requirement,
3417
3507
  useWidth: void 0
3418
3508
  },
3419
- packet: { ...G.packet },
3420
- eventmodeling: { ...G.eventmodeling },
3509
+ packet: { ...K.packet },
3510
+ eventmodeling: { ...K.eventmodeling },
3421
3511
  treeView: {
3422
- ...G.treeView,
3512
+ ...K.treeView,
3423
3513
  useWidth: void 0
3424
3514
  },
3425
- radar: { ...G.radar },
3515
+ radar: { ...K.radar },
3426
3516
  railroad: {
3427
- ...G.railroad,
3517
+ ...K.railroad,
3428
3518
  fontSize: void 0,
3429
3519
  fontFamily: void 0,
3430
3520
  terminalFill: void 0,
@@ -3442,9 +3532,9 @@ var O = {
3442
3532
  specialStroke: void 0,
3443
3533
  ruleNameColor: void 0
3444
3534
  },
3445
- ishikawa: { ...G.ishikawa },
3535
+ ishikawa: { ...K.ishikawa },
3446
3536
  sankey: {
3447
- ...G.sankey,
3537
+ ...K.sankey,
3448
3538
  nodeColors: void 0
3449
3539
  },
3450
3540
  treemap: {
@@ -3459,42 +3549,42 @@ var O = {
3459
3549
  labelFontSize: 14,
3460
3550
  valueFormat: ","
3461
3551
  },
3462
- venn: { ...G.venn },
3463
- cynefin: { ...G.cynefin }
3464
- }, It = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3552
+ venn: { ...K.venn },
3553
+ cynefin: { ...K.cynefin }
3554
+ }, Bt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3465
3555
  ...n,
3466
3556
  t + r,
3467
- ...It(e[r], "")
3468
- ] : [...n, t + r], []), "keyify"), Lt = new Set(It(Ft, "")), Rt = Ft, zt = {
3557
+ ...Bt(e[r], "")
3558
+ ] : [...n, t + r], []), "keyify"), Vt = new Set(Bt(zt, "")), Ht = zt, Ut = {
3469
3559
  nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3470
3560
  filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3471
3561
  extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3472
- }, Bt = /* @__PURE__ */ n((e, n) => {
3562
+ }, Wt = /* @__PURE__ */ n((e, n) => {
3473
3563
  for (let r of Object.keys(e)) {
3474
3564
  let i = e[r];
3475
3565
  (r.startsWith("__") || r.includes("proto") || r.includes("constr") || typeof i != "string" || !n.test(i)) && (t.debug("sanitize deleting dictionary entry:", r, i), delete e[r]);
3476
3566
  }
3477
- }, "sanitizeDictionaryConfig"), Vt = /* @__PURE__ */ n((e) => {
3567
+ }, "sanitizeDictionaryConfig"), Gt = /* @__PURE__ */ n((e) => {
3478
3568
  if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3479
3569
  if (Array.isArray(e)) {
3480
- e.forEach((e) => Vt(e));
3570
+ e.forEach((e) => Gt(e));
3481
3571
  return;
3482
3572
  }
3483
3573
  for (let n of Object.keys(e)) {
3484
- if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Lt.has(n) || e[n] == null) {
3574
+ if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Vt.has(n) || e[n] == null) {
3485
3575
  t.debug("sanitize deleting key: ", n), delete e[n];
3486
3576
  continue;
3487
3577
  }
3488
3578
  if (typeof e[n] == "object") {
3489
- let r = zt[n];
3490
- r ? Bt(e[n], r) : (t.debug("sanitizing object", n), Vt(e[n]));
3579
+ let r = Ut[n];
3580
+ r ? Wt(e[n], r) : (t.debug("sanitizing object", n), Gt(e[n]));
3491
3581
  continue;
3492
3582
  }
3493
3583
  for (let r of [
3494
3584
  "themeCSS",
3495
3585
  "fontFamily",
3496
3586
  "altFontFamily"
3497
- ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = Ht(e[n]));
3587
+ ]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = Kt(e[n]));
3498
3588
  }
3499
3589
  if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3500
3590
  let n = e.themeVariables[t];
@@ -3502,79 +3592,79 @@ var O = {
3502
3592
  }
3503
3593
  t.debug("After sanitization", e);
3504
3594
  }
3505
- }, "sanitizeDirective"), Ht = /* @__PURE__ */ n((e) => {
3595
+ }, "sanitizeDirective"), Kt = /* @__PURE__ */ n((e) => {
3506
3596
  let t = 0, n = 0;
3507
3597
  for (let r of e) {
3508
3598
  if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3509
3599
  r === "{" ? t++ : r === "}" && n++;
3510
3600
  }
3511
3601
  return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3512
- }, "sanitizeCss"), K = Object.freeze(Rt), q = /* @__PURE__ */ n((e) => !(e === !1 || [
3602
+ }, "sanitizeCss"), qt = Object.freeze(Ht), Jt = /* @__PURE__ */ n((e) => !(e === !1 || [
3513
3603
  "false",
3514
3604
  "null",
3515
3605
  "0"
3516
- ].includes(String(e).trim().toLowerCase())), "evaluate"), J = z({}, K), Ut, Wt = [], Gt = z({}, K), Kt = /* @__PURE__ */ n((e, t) => {
3606
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), q = z({}, qt), J, Y = [], Yt = z({}, qt), Xt = /* @__PURE__ */ n((e, t) => {
3517
3607
  let n = z({}, e), r = {};
3518
- for (let e of t) Qt(e), r = z(r, e);
3519
- if (n = z(n, r), r.theme && r.theme in W) {
3520
- let e = z(z({}, Ut).themeVariables || {}, r.themeVariables);
3521
- n.theme && n.theme in W && (n.themeVariables = W[n.theme].getThemeVariables(e));
3522
- }
3523
- return Gt = n, an(Gt), Gt;
3524
- }, "updateCurrentConfig"), qt = /* @__PURE__ */ n((e) => (J = z({}, K), J = z(J, e), e.theme && W[e.theme] && (J.themeVariables = W[e.theme].getThemeVariables(e.themeVariables)), Kt(J, Wt), J), "setSiteConfig"), Jt = /* @__PURE__ */ n((e) => {
3525
- Ut = z({}, e);
3526
- }, "saveConfigFromInitialize"), Yt = /* @__PURE__ */ n((e) => (J = z(J, e), Kt(J, Wt), J), "updateSiteConfig"), Xt = /* @__PURE__ */ n(() => z({}, J), "getSiteConfig"), Zt = /* @__PURE__ */ n((e) => (Kt(Gt, [e]), Y()), "setConfig"), Y = /* @__PURE__ */ n(() => z({}, Gt), "getConfig"), Qt = /* @__PURE__ */ n((e) => {
3527
- e && (["secure", ...J.secure ?? []].forEach((n) => {
3608
+ for (let e of t) rn(e), r = z(r, e);
3609
+ if (n = z(n, r), r.theme && r.theme in Rt) {
3610
+ let e = z(z({}, J).themeVariables || {}, r.themeVariables);
3611
+ n.theme && n.theme in Rt && (n.themeVariables = Rt[n.theme].getThemeVariables(e));
3612
+ }
3613
+ return Yt = n, ln(Yt), Yt;
3614
+ }, "updateCurrentConfig"), Zt = /* @__PURE__ */ n((e) => (q = z({}, qt), q = z(q, e), e.theme && Rt[e.theme] && (q.themeVariables = Rt[e.theme].getThemeVariables(e.themeVariables)), Xt(q, Y), q), "setSiteConfig"), Qt = /* @__PURE__ */ n((e) => {
3615
+ J = z({}, e);
3616
+ }, "saveConfigFromInitialize"), $t = /* @__PURE__ */ n((e) => (q = z(q, e), Xt(q, Y), q), "updateSiteConfig"), en = /* @__PURE__ */ n(() => z({}, q), "getSiteConfig"), tn = /* @__PURE__ */ n((e) => (Xt(Yt, [e]), nn()), "setConfig"), nn = /* @__PURE__ */ n(() => z({}, Yt), "getConfig"), rn = /* @__PURE__ */ n((e) => {
3617
+ e && (["secure", ...q.secure ?? []].forEach((n) => {
3528
3618
  Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
3529
3619
  }), Object.keys(e).forEach((t) => {
3530
3620
  t.startsWith("__") && delete e[t];
3531
3621
  }), Object.keys(e).forEach((t) => {
3532
- typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Qt(e[t]);
3622
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && rn(e[t]);
3533
3623
  }));
3534
- }, "sanitize"), $t = /* @__PURE__ */ n((e) => {
3535
- Vt(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3624
+ }, "sanitize"), an = /* @__PURE__ */ n((e) => {
3625
+ Gt(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3536
3626
  ...e.themeVariables,
3537
3627
  fontFamily: e.fontFamily
3538
- }), Wt.push(e), Kt(J, Wt);
3539
- }, "addDirective"), en = /* @__PURE__ */ n((e = J) => {
3540
- Wt = [], Kt(e, Wt);
3541
- }, "reset"), tn = {
3628
+ }), Y.push(e), Xt(q, Y);
3629
+ }, "addDirective"), X = /* @__PURE__ */ n((e = q) => {
3630
+ Y = [], Xt(e, Y);
3631
+ }, "reset"), on = {
3542
3632
  LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3543
3633
  FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3544
- }, nn = {}, rn = /* @__PURE__ */ n((e) => {
3545
- nn[e] || (t.warn(tn[e]), nn[e] = !0);
3546
- }, "issueWarning"), an = /* @__PURE__ */ n((e) => {
3547
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && rn("LAZY_LOAD_DEPRECATED");
3548
- }, "checkConfig"), on = /* @__PURE__ */ n(() => {
3634
+ }, sn = {}, cn = /* @__PURE__ */ n((e) => {
3635
+ sn[e] || (t.warn(on[e]), sn[e] = !0);
3636
+ }, "issueWarning"), ln = /* @__PURE__ */ n((e) => {
3637
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && cn("LAZY_LOAD_DEPRECATED");
3638
+ }, "checkConfig"), un = /* @__PURE__ */ n(() => {
3549
3639
  let e = {};
3550
- Ut && (e = z(e, Ut));
3551
- for (let t of Wt) e = z(e, t);
3640
+ J && (e = z(e, J));
3641
+ for (let t of Y) e = z(e, t);
3552
3642
  return e;
3553
- }, "getUserDefinedConfig"), sn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && rn("FLOWCHART_HTML_LABELS_DEPRECATED"), q(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), cn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, X = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ln = /\s*%%.*\n/gm, un = class extends Error {
3643
+ }, "getUserDefinedConfig"), dn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && cn("FLOWCHART_HTML_LABELS_DEPRECATED"), Jt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), fn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, pn = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, mn = /\s*%%.*\n/gm, hn = class extends Error {
3554
3644
  static {
3555
3645
  n(this, "UnknownDiagramError");
3556
3646
  }
3557
3647
  constructor(e) {
3558
3648
  super(e), this.name = "UnknownDiagramError";
3559
3649
  }
3560
- }, Z = {}, dn = /* @__PURE__ */ n(function(e, t) {
3561
- e = e.replace(cn, "").replace(X, "").replace(ln, "\n");
3650
+ }, Z = {}, gn = /* @__PURE__ */ n(function(e, t) {
3651
+ e = e.replace(fn, "").replace(pn, "").replace(mn, "\n");
3562
3652
  for (let [n, { detector: r }] of Object.entries(Z)) if (r(e, t)) return n;
3563
- throw new un(`No diagram type detected matching given configuration for text: ${e}`);
3564
- }, "detectType"), fn = /* @__PURE__ */ n((...e) => {
3565
- for (let { id: t, detector: n, loader: r } of e) pn(t, n, r);
3566
- }, "registerLazyLoadedDiagrams"), pn = /* @__PURE__ */ n((e, n, r) => {
3653
+ throw new hn(`No diagram type detected matching given configuration for text: ${e}`);
3654
+ }, "detectType"), _n = /* @__PURE__ */ n((...e) => {
3655
+ for (let { id: t, detector: n, loader: r } of e) vn(t, n, r);
3656
+ }, "registerLazyLoadedDiagrams"), vn = /* @__PURE__ */ n((e, n, r) => {
3567
3657
  Z[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), Z[e] = {
3568
3658
  detector: n,
3569
3659
  loader: r
3570
3660
  }, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
3571
- }, "addDetector"), mn = /* @__PURE__ */ n((e) => Z[e].loader, "getDiagramLoader"), hn = /<br\s*\/?>/gi, gn = /* @__PURE__ */ n((e) => e ? wn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), _n = /* @__PURE__ */ (() => {
3661
+ }, "addDetector"), yn = /* @__PURE__ */ n((e) => Z[e].loader, "getDiagramLoader"), bn = /<br\s*\/?>/gi, xn = /* @__PURE__ */ n((e) => e ? jn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Sn = /* @__PURE__ */ (() => {
3572
3662
  let e = !1;
3573
3663
  return () => {
3574
- e ||= (vn(), !0);
3664
+ e ||= (Cn(), !0);
3575
3665
  };
3576
3666
  })();
3577
- function vn() {
3667
+ function Cn() {
3578
3668
  let e = "data-temp-href-target";
3579
3669
  T.addHook("beforeSanitizeAttributes", (t) => {
3580
3670
  t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
@@ -3582,96 +3672,96 @@ function vn() {
3582
3672
  t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3583
3673
  });
3584
3674
  }
3585
- n(vn, "setupDompurifyHooks");
3586
- var yn = /* @__PURE__ */ n((e) => (_n(), T.sanitize(e)), "removeScript"), bn = /* @__PURE__ */ n((e, t) => {
3587
- if (sn(t)) {
3675
+ n(Cn, "setupDompurifyHooks");
3676
+ var wn = /* @__PURE__ */ n((e) => (Sn(), T.sanitize(e)), "removeScript"), Tn = /* @__PURE__ */ n((e, t) => {
3677
+ if (dn(t)) {
3588
3678
  let n = t.securityLevel;
3589
- n === "antiscript" || n === "strict" || n === "sandbox" ? e = yn(e) : n !== "loose" && (e = wn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Cn(e));
3679
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = wn(e) : n !== "loose" && (e = jn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = An(e));
3590
3680
  }
3591
3681
  return e;
3592
- }, "sanitizeMore"), Q = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? T.sanitize(bn(e, t), t.dompurifyConfig).toString() : T.sanitize(bn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), $ = /* @__PURE__ */ n((e, t) => typeof e == "string" ? Q(e, t) : e.flat().map((e) => Q(e, t)), "sanitizeTextOrArray"), xn = /* @__PURE__ */ n((e) => hn.test(e), "hasBreaks"), Sn = /* @__PURE__ */ n((e) => e.split(hn), "splitBreaks"), Cn = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), wn = /* @__PURE__ */ n((e) => e.replace(hn, "#br#"), "breakToPlaceholder"), Tn = /* @__PURE__ */ n((e) => {
3682
+ }, "sanitizeMore"), En = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? T.sanitize(Tn(e, t), t.dompurifyConfig).toString() : T.sanitize(Tn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Dn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? En(e, t) : e.flat().map((e) => En(e, t)), "sanitizeTextOrArray"), On = /* @__PURE__ */ n((e) => bn.test(e), "hasBreaks"), kn = /* @__PURE__ */ n((e) => e.split(bn), "splitBreaks"), An = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), jn = /* @__PURE__ */ n((e) => e.replace(bn, "#br#"), "breakToPlaceholder"), Mn = /* @__PURE__ */ n((e) => {
3593
3683
  let t = "";
3594
3684
  return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3595
- }, "getUrl"), En = /* @__PURE__ */ n(function(...e) {
3685
+ }, "getUrl"), Nn = /* @__PURE__ */ n(function(...e) {
3596
3686
  let t = e.filter((e) => !isNaN(e));
3597
3687
  return Math.max(...t);
3598
- }, "getMax"), Dn = /* @__PURE__ */ n(function(...e) {
3688
+ }, "getMax"), Pn = /* @__PURE__ */ n(function(...e) {
3599
3689
  let t = e.filter((e) => !isNaN(e));
3600
3690
  return Math.min(...t);
3601
- }, "getMin"), On = /* @__PURE__ */ n(function(e) {
3691
+ }, "getMin"), Fn = /* @__PURE__ */ n(function(e) {
3602
3692
  let t = e.split(/(,)/), n = [];
3603
3693
  for (let e = 0; e < t.length; e++) {
3604
3694
  let r = t[e];
3605
3695
  if (r === "," && e > 0 && e + 1 < t.length) {
3606
3696
  let i = t[e - 1], a = t[e + 1];
3607
- An(i, a) && (r = i + "," + a, e++, n.pop());
3697
+ In(i, a) && (r = i + "," + a, e++, n.pop());
3608
3698
  }
3609
- n.push(jn(r));
3699
+ n.push($(r));
3610
3700
  }
3611
3701
  return n.join("");
3612
- }, "parseGenericTypes"), kn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), An = /* @__PURE__ */ n((e, t) => {
3613
- let n = kn(e, "~"), r = kn(t, "~");
3702
+ }, "parseGenericTypes"), Q = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), In = /* @__PURE__ */ n((e, t) => {
3703
+ let n = Q(e, "~"), r = Q(t, "~");
3614
3704
  return n === 1 && r === 1;
3615
- }, "shouldCombineSets"), jn = /* @__PURE__ */ n((e) => {
3616
- let t = kn(e, "~"), n = !1;
3705
+ }, "shouldCombineSets"), $ = /* @__PURE__ */ n((e) => {
3706
+ let t = Q(e, "~"), n = !1;
3617
3707
  if (t <= 1) return e;
3618
3708
  t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3619
3709
  let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3620
3710
  for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3621
3711
  return n && r.unshift("~"), r.join("");
3622
- }, "processSet"), Mn = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Nn = /\$\$(.*?)\$\$/g, Pn = /* @__PURE__ */ n((e) => (e.match(Nn)?.length ?? 0) > 0, "hasKatex"), Fn = /* @__PURE__ */ n(async (e, t) => {
3712
+ }, "processSet"), Ln = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Rn = /\$\$(.*?)\$\$/g, zn = /* @__PURE__ */ n((e) => (e.match(Rn)?.length ?? 0) > 0, "hasKatex"), Bn = /* @__PURE__ */ n(async (e, t) => {
3623
3713
  let n = document.createElement("div");
3624
- n.innerHTML = await Ln(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3714
+ n.innerHTML = await Hn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3625
3715
  let r = {
3626
3716
  width: n.clientWidth,
3627
3717
  height: n.clientHeight
3628
3718
  };
3629
3719
  return n.remove(), r;
3630
- }, "calculateMathMLDimensions"), In = /* @__PURE__ */ n(async (e, t) => {
3631
- if (!Pn(e)) return e;
3632
- if (!(Mn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Nn, "MathML is unsupported in this environment.");
3720
+ }, "calculateMathMLDimensions"), Vn = /* @__PURE__ */ n(async (e, t) => {
3721
+ if (!zn(e)) return e;
3722
+ if (!(Ln() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Rn, "MathML is unsupported in this environment.");
3633
3723
  {
3634
- let { default: n } = await import("./katex-CT2p8LXT.js"), r = t.forceLegacyMathML || !Mn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3635
- return e.split(hn).map((e) => Pn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Nn, (e, t) => n.renderToString(t, {
3724
+ let { default: n } = await import("./katex-CT2p8LXT.js"), r = t.forceLegacyMathML || !Ln() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3725
+ return e.split(bn).map((e) => zn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Rn, (e, t) => n.renderToString(t, {
3636
3726
  throwOnError: !0,
3637
3727
  displayMode: !0,
3638
3728
  output: r
3639
3729
  }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3640
3730
  }
3641
- }, "renderKatexUnsanitized"), Ln = /* @__PURE__ */ n(async (e, t) => Q(await In(e, t), t), "renderKatexSanitized"), Rn = {
3642
- getRows: gn,
3643
- sanitizeText: Q,
3644
- sanitizeTextOrArray: $,
3645
- hasBreaks: xn,
3646
- splitBreaks: Sn,
3647
- lineBreakRegex: hn,
3648
- removeScript: yn,
3649
- getUrl: Tn,
3650
- evaluate: q,
3651
- getMax: En,
3652
- getMin: Dn
3653
- }, zn = /* @__PURE__ */ n(function(e, t) {
3731
+ }, "renderKatexUnsanitized"), Hn = /* @__PURE__ */ n(async (e, t) => En(await Vn(e, t), t), "renderKatexSanitized"), Un = {
3732
+ getRows: xn,
3733
+ sanitizeText: En,
3734
+ sanitizeTextOrArray: Dn,
3735
+ hasBreaks: On,
3736
+ splitBreaks: kn,
3737
+ lineBreakRegex: bn,
3738
+ removeScript: wn,
3739
+ getUrl: Mn,
3740
+ evaluate: Jt,
3741
+ getMax: Nn,
3742
+ getMin: Pn
3743
+ }, Wn = /* @__PURE__ */ n(function(e, t) {
3654
3744
  for (let n of t) e.attr(n[0], n[1]);
3655
- }, "d3Attrs"), Bn = /* @__PURE__ */ n(function(e, t, n) {
3745
+ }, "d3Attrs"), Gn = /* @__PURE__ */ n(function(e, t, n) {
3656
3746
  let r = /* @__PURE__ */ new Map();
3657
3747
  return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3658
- }, "calculateSvgSizeAttrs"), Vn = /* @__PURE__ */ n(function(e, t, n, r) {
3659
- zn(e, Bn(t, n, r));
3660
- }, "configureSvgSize"), Hn = /* @__PURE__ */ n(function(e, n, r, i) {
3748
+ }, "calculateSvgSizeAttrs"), Kn = /* @__PURE__ */ n(function(e, t, n, r) {
3749
+ Wn(e, Gn(t, n, r));
3750
+ }, "configureSvgSize"), qn = /* @__PURE__ */ n(function(e, n, r, i) {
3661
3751
  let a = n.node().getBBox(), o = a.width, s = a.height;
3662
3752
  t.info(`SVG bounds: ${o}x${s}`, a);
3663
3753
  let c = 0, l = 0;
3664
- t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Vn(n, l, c, i);
3754
+ t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Kn(n, l, c, i);
3665
3755
  let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3666
3756
  n.attr("viewBox", u);
3667
- }, "setupGraphViewbox"), Un = {};
3668
- function Wn(e) {
3757
+ }, "setupGraphViewbox"), Jn = {};
3758
+ function Yn(e) {
3669
3759
  return [...e.cssRules].map((e) => e.cssText).join("\n");
3670
3760
  }
3671
- n(Wn, "cssStyleSheetToString");
3672
- var Gn = /* @__PURE__ */ n((e, n, r, i) => {
3761
+ n(Yn, "cssStyleSheetToString");
3762
+ var Xn = /* @__PURE__ */ n((e, n, r, i) => {
3673
3763
  let a = "";
3674
- return e in Un && Un[e] ? a = Un[e]({
3764
+ return e in Jn && Jn[e] ? a = Jn[e]({
3675
3765
  ...r,
3676
3766
  svgId: i
3677
3767
  }) : t.warn(`No theme found for ${e}`), `& {
@@ -3796,32 +3886,32 @@ var Gn = /* @__PURE__ */ n((e, n, r, i) => {
3796
3886
 
3797
3887
  ${n}
3798
3888
  `;
3799
- }, "getStyles"), Kn = /* @__PURE__ */ n((e, t) => {
3800
- t !== void 0 && (Un[e] = t);
3801
- }, "addStylesForDiagram"), qn = Gn, Jn = {};
3802
- r(Jn, {
3803
- clear: () => $n,
3804
- getAccDescription: () => rr,
3805
- getAccTitle: () => tr,
3806
- getDiagramTitle: () => ar,
3807
- setAccDescription: () => nr,
3808
- setAccTitle: () => er,
3809
- setDiagramTitle: () => ir
3889
+ }, "getStyles"), Zn = /* @__PURE__ */ n((e, t) => {
3890
+ t !== void 0 && (Jn[e] = t);
3891
+ }, "addStylesForDiagram"), Qn = Xn, $n = {};
3892
+ r($n, {
3893
+ clear: () => ir,
3894
+ getAccDescription: () => cr,
3895
+ getAccTitle: () => or,
3896
+ getDiagramTitle: () => ur,
3897
+ setAccDescription: () => sr,
3898
+ setAccTitle: () => ar,
3899
+ setDiagramTitle: () => lr
3810
3900
  });
3811
- var Yn = "", Xn = "", Zn = "", Qn = /* @__PURE__ */ n((e) => Q(e, Y()), "sanitizeText"), $n = /* @__PURE__ */ n(() => {
3812
- Yn = "", Zn = "", Xn = "";
3813
- }, "clear"), er = /* @__PURE__ */ n((e) => {
3814
- Yn = Qn(e).replace(/^\s+/g, "");
3815
- }, "setAccTitle"), tr = /* @__PURE__ */ n(() => Yn, "getAccTitle"), nr = /* @__PURE__ */ n((e) => {
3816
- Zn = Qn(e).replace(/\n\s+/g, "\n");
3817
- }, "setAccDescription"), rr = /* @__PURE__ */ n(() => Zn, "getAccDescription"), ir = /* @__PURE__ */ n((e) => {
3818
- Xn = Qn(e);
3819
- }, "setDiagramTitle"), ar = /* @__PURE__ */ n(() => Xn, "getDiagramTitle"), or = t, sr = e, cr = Y, lr = Zt, ur = K, dr = /* @__PURE__ */ n((e) => Q(e, cr()), "sanitizeText"), fr = Hn, pr = /* @__PURE__ */ n(() => Jn, "getCommonDb"), mr = {}, hr = /* @__PURE__ */ n((e, t, n) => {
3820
- mr[e] && or.warn(`Diagram with id ${e} already registered. Overwriting.`), mr[e] = t, n && pn(e, n), Kn(e, t.styles), t.injectUtils?.(or, sr, cr, dr, fr, pr(), () => {});
3821
- }, "registerDiagram"), gr = /* @__PURE__ */ n((e) => {
3822
- if (e in mr) return mr[e];
3823
- throw new _r(e);
3824
- }, "getDiagram"), _r = class extends Error {
3901
+ var er = "", tr = "", nr = "", rr = /* @__PURE__ */ n((e) => En(e, nn()), "sanitizeText"), ir = /* @__PURE__ */ n(() => {
3902
+ er = "", nr = "", tr = "";
3903
+ }, "clear"), ar = /* @__PURE__ */ n((e) => {
3904
+ er = rr(e).replace(/^\s+/g, "");
3905
+ }, "setAccTitle"), or = /* @__PURE__ */ n(() => er, "getAccTitle"), sr = /* @__PURE__ */ n((e) => {
3906
+ nr = rr(e).replace(/\n\s+/g, "\n");
3907
+ }, "setAccDescription"), cr = /* @__PURE__ */ n(() => nr, "getAccDescription"), lr = /* @__PURE__ */ n((e) => {
3908
+ tr = rr(e);
3909
+ }, "setDiagramTitle"), ur = /* @__PURE__ */ n(() => tr, "getDiagramTitle"), dr = t, fr = e, pr = nn, mr = tn, hr = qt, gr = /* @__PURE__ */ n((e) => En(e, pr()), "sanitizeText"), _r = qn, vr = /* @__PURE__ */ n(() => $n, "getCommonDb"), yr = {}, br = /* @__PURE__ */ n((e, t, n) => {
3910
+ yr[e] && dr.warn(`Diagram with id ${e} already registered. Overwriting.`), yr[e] = t, n && vn(e, n), Zn(e, t.styles), t.injectUtils?.(dr, fr, pr, gr, _r, vr(), () => {});
3911
+ }, "registerDiagram"), xr = /* @__PURE__ */ n((e) => {
3912
+ if (e in yr) return yr[e];
3913
+ throw new Sr(e);
3914
+ }, "getDiagram"), Sr = class extends Error {
3825
3915
  static {
3826
3916
  n(this, "DiagramNotFoundError");
3827
3917
  }
@@ -3830,4 +3920,4 @@ var Yn = "", Xn = "", Zn = "", Qn = /* @__PURE__ */ n((e) => Q(e, Y()), "sanitiz
3830
3920
  }
3831
3921
  };
3832
3922
  //#endregion
3833
- export { F as $, Pn as A, dr as B, mn as C, bt as D, Xt as E, Ln as F, lr as G, nr as H, en as I, Hn as J, ir as K, Ht as L, On as M, hr as N, Tn as O, fn as P, Yt as Q, Vt as R, gr as S, sn as T, er as U, Jt as V, Zt as W, qn as X, fr as Y, W as Z, cn as _, $n as a, E as at, Y as b, Vn as c, ur as d, P as et, Rt as f, q as g, X as h, Fn as i, j as it, hn as j, on as k, Wn as l, Z as m, $t as n, N as nt, Jn as o, T as ot, dn as p, qt as q, z as r, M as rt, Rn as s, un as t, pt as tt, K as u, rr as v, ar as w, cr as x, tr as y, Q as z };
3923
+ export { I as $, zn as A, gr as B, yn as C, Ct as D, en as E, Hn as F, mr as G, sr as H, X as I, qn as J, lr as K, Kt as L, Fn as M, br as N, Mn as O, _n as P, $t as Q, Gt as R, xr as S, dn as T, ar as U, Qt as V, tn as W, Qn as X, _r as Y, Rt as Z, fn as _, ir as a, D as at, nn as b, Kn as c, hr as d, F as et, Ht as f, Jt as g, pn as h, Bn as i, j as it, bn as j, un as k, Yn as l, Z as m, an as n, P as nt, $n as o, T as ot, gn as p, Zt as q, z as r, M as rt, Un as s, hn as t, _t as tt, qt as u, cr as v, ur as w, pr as x, or as y, En as z };