@nxgt/material 1.13.0 → 1.16.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 (150) hide show
  1. package/README.md +4 -0
  2. package/dist/abnfDiagram-O67JEVCF-mm89LXw2.js +89 -0
  3. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
  4. package/dist/architectureDiagram-NJMV4G6O-CGoA5SIv.js +4146 -0
  5. package/dist/array-CApNbSU9.js +6 -0
  6. package/dist/blockDiagram-BEXU5L5S-Dq8gitB4.js +1946 -0
  7. package/dist/c4Diagram-YGBWAQC7-DO_alqIu.js +2990 -0
  8. package/dist/channel-1fT-W0NS.js +5 -0
  9. package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  10. package/dist/chunk-3FUC2YCW-C3yD2fMw.js +364 -0
  11. package/dist/chunk-5DYCD2WN-Dn2jrYde.js +37 -0
  12. package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  13. package/dist/chunk-6AEJRKK7-JyfUnUEu.js +10 -0
  14. package/dist/chunk-742MDFTN-BbWkrtj2.js +275 -0
  15. package/dist/chunk-7INBJB4K-C3x7JNTG.js +4487 -0
  16. package/dist/chunk-7M6MHVWA-Cc7UTu4b.js +4256 -0
  17. package/dist/chunk-7PRAP22T-C8rsGRvH.js +67 -0
  18. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  19. package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
  20. package/dist/chunk-GNY47TPC-d-Bi8r0p.js +75 -0
  21. package/dist/chunk-GTNCS2PH-CTS015lZ.js +490 -0
  22. package/dist/chunk-GWA4HPMP-B4pgM-E1.js +61 -0
  23. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  24. package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  25. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  26. package/dist/chunk-MBY4JIJT-Dg6AeftH.js +1847 -0
  27. package/dist/chunk-NETBCI7D-TXZM0vKz.js +236 -0
  28. package/dist/chunk-O7XYJQB3-md6vjVm4.js +3922 -0
  29. package/dist/chunk-UA2S7LBM-DQTYPe9y.js +363 -0
  30. package/dist/chunk-WEXAMYUT-DmKWJz6y.js +26 -0
  31. package/dist/chunk-XXDRQBXY-C9XIYQdM.js +9 -0
  32. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  33. package/dist/chunk-Z7XXMR3K-BoDf6lxl.js +677 -0
  34. package/dist/chunk-ZIGJFQKS-CP5430fN.js +663 -0
  35. package/dist/classDiagram-v2-NBCMYWYE-6KoTmufe.js +3397 -0
  36. package/dist/components.js +3 -3
  37. package/dist/cose-bilkent-JH36ORCC-CejnZl_t.js +2251 -0
  38. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
  39. package/dist/cynefinDiagram-VND7K2PF-DZnc0dlm.js +349 -0
  40. package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
  41. package/dist/dagre-6A5THRUB-cuS57NO5.js +2192 -0
  42. package/dist/diagram-22UHCM2B-zQSFmH0t.js +5084 -0
  43. package/dist/diagram-3UASUU5V-D45Fgu1j.js +724 -0
  44. package/dist/diagram-ATOU4E4O-YMtQnlqd.js +432 -0
  45. package/dist/diagram-CDSNMT55-DP7UmEW1.js +301 -0
  46. package/dist/diagram-MLGK6HIB-WvSqrTRC.js +134 -0
  47. package/dist/diagram-MPIPVDR6-C2F3__mt.js +214 -0
  48. package/dist/dist-1DdJvBEt.js +50 -0
  49. package/dist/{dist-BGGDEbJ3.js → dist-DppLdkXt.js} +2 -2
  50. package/dist/dnd.js +2 -2
  51. package/dist/ebnfDiagram-ZINNZB2B-BZC6cSiy.js +100 -0
  52. package/dist/elk-276RUBZZ-7DJf1MEV.js +47598 -0
  53. package/dist/erDiagram-OPXOYQCR-YKlEVEF0.js +1970 -0
  54. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
  55. package/dist/flowDiagram-KWPJA3E3-DyLvzIlg.js +17 -0
  56. package/dist/ganttDiagram-FUAMR5RP-KIaOrYOF.js +2928 -0
  57. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
  58. package/dist/gitGraphDiagram-X574FWY7-DpFW-7JE.js +729 -0
  59. package/dist/graphlib-DFaO_iIU.js +372 -0
  60. package/dist/{hooks-DReKyuyc.js → hooks-C5xy0u03.js} +1 -1
  61. package/dist/hooks.js +1 -1
  62. package/dist/{i18n-DtDrodl8.js → i18n-Cech9IAc.js} +314 -841
  63. package/dist/i18n.js +1 -1
  64. package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
  65. package/dist/infoDiagram-VRGFBTTK-H3F-BCnu.js +20 -0
  66. package/dist/init-Buj1GKRa.js +27 -0
  67. package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
  68. package/dist/ishikawaDiagram-OU5B5YK6-DgQDmcF3.js +719 -0
  69. package/dist/journeyDiagram-ZHPQQLJL-CanDOlfn.js +884 -0
  70. package/dist/kanban-definition-PNTS6WVX-DmnUgxgb.js +976 -0
  71. package/dist/katex-BMQ6LGsM.js +21962 -0
  72. package/dist/lib/components/index.d.ts +4 -0
  73. package/dist/lib/components/ui/chat/chat-composer-mentions.d.ts +8 -0
  74. package/dist/lib/components/ui/chat/chat-composer.d.ts +5 -1
  75. package/dist/lib/components/ui/chat/chat-markdown.d.ts +2 -2
  76. package/dist/lib/components/ui/emoji/emoji-list.d.ts +5 -0
  77. package/dist/lib/components/ui/emoji/emoji-picker.d.ts +7 -0
  78. package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
  79. package/dist/lib/components/ui/emoji/emoji.utils.test.d.ts +1 -0
  80. package/dist/lib/components/ui/emoji/index.d.ts +4 -0
  81. package/dist/lib/components/ui/emoji/types.d.ts +6 -0
  82. package/dist/lib/components/ui/entity-header.stories.d.ts +1 -0
  83. package/dist/lib/components/ui/kanban/kanban.stories.d.ts +1 -0
  84. package/dist/lib/components/ui/markdown/index.d.ts +3 -0
  85. package/dist/lib/components/ui/markdown/markdown.d.ts +7 -0
  86. package/dist/lib/components/ui/markdown/markdown.stories.d.ts +14 -0
  87. package/dist/lib/components/ui/markdown/markdown.test.d.ts +1 -0
  88. package/dist/lib/components/ui/markdown/markdown.utils.d.ts +1 -0
  89. package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
  90. package/dist/lib/components/ui/markdown/partials/markdown-code.d.ts +2 -0
  91. package/dist/lib/components/ui/markdown/partials/mermaid-diagram.d.ts +4 -0
  92. package/dist/lib/components/ui/mentions/index.d.ts +3 -0
  93. package/dist/lib/components/ui/mentions/mention-list.d.ts +8 -0
  94. package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
  95. package/dist/lib/components/ui/mentions/mentions.utils.test.d.ts +1 -0
  96. package/dist/lib/components/ui/mentions/types.d.ts +7 -0
  97. package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +12 -1
  98. package/dist/lib/components/ui/terminal/index.d.ts +2 -0
  99. package/dist/lib/components/ui/terminal/terminal.d.ts +11 -0
  100. package/dist/lib/components/ui/terminal/terminal.stories.d.ts +14 -0
  101. package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
  102. package/dist/lib/components/ui/terminal/terminal.utils.test.d.ts +1 -0
  103. package/dist/lib/i18n/resources/en/index.d.ts +7 -0
  104. package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
  105. package/dist/lib/i18n/resources/fr/index.d.ts +7 -0
  106. package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
  107. package/dist/lib/i18n/resources/index.d.ts +14 -0
  108. package/dist/lib/i18n/translator.d.ts +1 -1
  109. package/dist/{lib-CD3tyuc8.js → lib-Bbw5QPoj.js} +472 -471
  110. package/dist/lib.js +2 -2
  111. package/dist/{main-r84Yresa.js → main-BjDU9FDM.js} +59393 -30376
  112. package/dist/main.js +6 -6
  113. package/dist/material.css +1 -1
  114. package/dist/math-C5EhTgJw.js +10 -0
  115. package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
  116. package/dist/mermaid.core-BI1sunfX.js +1096 -0
  117. package/dist/mindmap-definition-NLK3R4M7-DW0BIU_q.js +1008 -0
  118. package/dist/ordinal-DuP05kVQ.js +65 -0
  119. package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
  120. package/dist/path-Cjou0lUh.js +85 -0
  121. package/dist/pegDiagram-GJSIUBJH-CJIx0u4M.js +94 -0
  122. package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
  123. package/dist/pieDiagram-5QR66LMP-zAhv5fKz.js +157 -0
  124. package/dist/quadrantDiagram-O4NWA36T-CO4n_yQo.js +2001 -0
  125. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
  126. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
  127. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
  128. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
  129. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
  130. package/dist/railroadDiagram-XR7U4H2S-B8iV7mfe.js +76 -0
  131. package/dist/requirementDiagram-PLB6GJNP-CGoX1NrW.js +2228 -0
  132. package/dist/rough.esm-rcMoXTJj.js +1352 -0
  133. package/dist/sankeyDiagram-IPEJSGJF-DdSM2wiI.js +962 -0
  134. package/dist/sequenceDiagram-PO4LG4MO-CCRqF5XO.js +4200 -0
  135. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  136. package/dist/src-B4npqWNl.js +1775 -0
  137. package/dist/stateDiagram-v2-GCMORJYK-CQTX5ks8.js +2143 -0
  138. package/dist/step-B6KjpKgN.js +706 -0
  139. package/dist/string-B-ZWXCs2.js +392 -0
  140. package/dist/swimlanes-2SLR337P-C2NNOb5n.js +4763 -0
  141. package/dist/swimlanesDiagram-TC7HE7FX-CPsqPrbP.js +28 -0
  142. package/dist/timeline-definition-EJHVYXUP-DuxGHv-N.js +1073 -0
  143. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
  144. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
  145. package/dist/usecaseDiagram-POWQR4AR-cuAeIBW3.js +9932 -0
  146. package/dist/vennDiagram-UO4OBE2U-DLwBSAnC.js +1880 -0
  147. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
  148. package/dist/wardleyDiagram-VNRHLVJA-D7IZU6vu.js +645 -0
  149. package/dist/xychartDiagram-PMCCYNJV-BDOFv_xK.js +2167 -0
  150. package/package.json +7 -1
@@ -0,0 +1,3922 @@
1
+ import { n as e, r as t } from "./src-B4npqWNl.js";
2
+ import { n, t as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ //#region node_modules/khroma/dist/utils/channel.js
4
+ var i = {
5
+ min: {
6
+ r: 0,
7
+ g: 0,
8
+ b: 0,
9
+ s: 0,
10
+ l: 0,
11
+ a: 0
12
+ },
13
+ max: {
14
+ r: 255,
15
+ g: 255,
16
+ b: 255,
17
+ h: 360,
18
+ s: 100,
19
+ l: 100,
20
+ a: 1
21
+ },
22
+ clamp: {
23
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
26
+ h: (e) => e % 360,
27
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
28
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
29
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
30
+ },
31
+ toLinear: (e) => {
32
+ let t = e / 255;
33
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
34
+ },
35
+ hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
36
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
37
+ if (!t) return n * 2.55;
38
+ e /= 360, t /= 100, n /= 100;
39
+ let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
40
+ switch (r) {
41
+ case "r": return i.hue2rgb(o, a, e + 1 / 3) * 255;
42
+ case "g": return i.hue2rgb(o, a, e) * 255;
43
+ case "b": return i.hue2rgb(o, a, e - 1 / 3) * 255;
44
+ }
45
+ },
46
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
47
+ e /= 255, t /= 255, n /= 255;
48
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
49
+ if (r === "l") return o * 100;
50
+ if (i === a) return 0;
51
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
52
+ if (r === "s") return c * 100;
53
+ switch (i) {
54
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
55
+ case t: return ((n - e) / s + 2) * 60;
56
+ case n: return ((e - t) / s + 4) * 60;
57
+ default: return -1;
58
+ }
59
+ }
60
+ }, a = {
61
+ channel: i,
62
+ lang: {
63
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
64
+ round: (e) => Math.round(e * 1e10) / 1e10
65
+ },
66
+ unit: { dec2hex: (e) => {
67
+ let t = Math.round(e).toString(16);
68
+ return t.length > 1 ? t : `0${t}`;
69
+ } }
70
+ }, o = {};
71
+ for (let e = 0; e <= 255; e++) o[e] = a.unit.dec2hex(e);
72
+ var s = {
73
+ ALL: 0,
74
+ RGB: 1,
75
+ HSL: 2
76
+ }, c = class {
77
+ constructor() {
78
+ this.type = s.ALL;
79
+ }
80
+ get() {
81
+ return this.type;
82
+ }
83
+ set(e) {
84
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
85
+ this.type = e;
86
+ }
87
+ reset() {
88
+ this.type = s.ALL;
89
+ }
90
+ is(e) {
91
+ return this.type === e;
92
+ }
93
+ }, l = new class {
94
+ constructor(e, t) {
95
+ this.color = t, this.changed = !1, this.data = e, this.type = new c();
96
+ }
97
+ set(e, t) {
98
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = s.ALL, this;
99
+ }
100
+ _ensureHSL() {
101
+ let e = this.data, { h: t, s: n, l: r } = e;
102
+ t === void 0 && (e.h = a.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = a.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = a.channel.rgb2hsl(e, "l"));
103
+ }
104
+ _ensureRGB() {
105
+ let e = this.data, { r: t, g: n, b: r } = e;
106
+ t === void 0 && (e.r = a.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = a.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = a.channel.hsl2rgb(e, "b"));
107
+ }
108
+ get r() {
109
+ let e = this.data, t = e.r;
110
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "r"));
111
+ }
112
+ get g() {
113
+ let e = this.data, t = e.g;
114
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "g"));
115
+ }
116
+ get b() {
117
+ let e = this.data, t = e.b;
118
+ return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "b"));
119
+ }
120
+ get h() {
121
+ let e = this.data, t = e.h;
122
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "h"));
123
+ }
124
+ get s() {
125
+ let e = this.data, t = e.s;
126
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "s"));
127
+ }
128
+ get l() {
129
+ let e = this.data, t = e.l;
130
+ return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "l"));
131
+ }
132
+ get a() {
133
+ return this.data.a;
134
+ }
135
+ set r(e) {
136
+ this.type.set(s.RGB), this.changed = !0, this.data.r = e;
137
+ }
138
+ set g(e) {
139
+ this.type.set(s.RGB), this.changed = !0, this.data.g = e;
140
+ }
141
+ set b(e) {
142
+ this.type.set(s.RGB), this.changed = !0, this.data.b = e;
143
+ }
144
+ set h(e) {
145
+ this.type.set(s.HSL), this.changed = !0, this.data.h = e;
146
+ }
147
+ set s(e) {
148
+ this.type.set(s.HSL), this.changed = !0, this.data.s = e;
149
+ }
150
+ set l(e) {
151
+ this.type.set(s.HSL), this.changed = !0, this.data.l = e;
152
+ }
153
+ set a(e) {
154
+ this.changed = !0, this.data.a = e;
155
+ }
156
+ }({
157
+ r: 0,
158
+ g: 0,
159
+ b: 0,
160
+ a: 0
161
+ }, "transparent"), u = {
162
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
163
+ parse: (e) => {
164
+ if (e.charCodeAt(0) !== 35) return;
165
+ let t = e.match(u.re);
166
+ if (!t) return;
167
+ 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, d = a ? 0 : -1, f = o ? 255 : 15;
168
+ return l.set({
169
+ r: (r >> c * (d + 3) & f) * s,
170
+ g: (r >> c * (d + 2) & f) * s,
171
+ b: (r >> c * (d + 1) & f) * s,
172
+ a: a ? (r & f) * s / 255 : 1
173
+ }, e);
174
+ },
175
+ stringify: (e) => {
176
+ let { r: t, g: n, b: r, a: i } = e;
177
+ return i < 1 ? `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}${o[Math.round(i * 255)]}` : `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}`;
178
+ }
179
+ }, d = {
180
+ 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,
181
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
182
+ _hue2deg: (e) => {
183
+ let t = e.match(d.hueRe);
184
+ if (t) {
185
+ let [, e, n] = t;
186
+ switch (n) {
187
+ case "grad": return a.channel.clamp.h(parseFloat(e) * .9);
188
+ case "rad": return a.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
189
+ case "turn": return a.channel.clamp.h(parseFloat(e) * 360);
190
+ }
191
+ }
192
+ return a.channel.clamp.h(parseFloat(e));
193
+ },
194
+ parse: (e) => {
195
+ let t = e.charCodeAt(0);
196
+ if (t !== 104 && t !== 72) return;
197
+ let n = e.match(d.re);
198
+ if (!n) return;
199
+ let [, r, i, o, s, c] = n;
200
+ return l.set({
201
+ h: d._hue2deg(r),
202
+ s: a.channel.clamp.s(parseFloat(i)),
203
+ l: a.channel.clamp.l(parseFloat(o)),
204
+ a: s ? a.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
205
+ }, e);
206
+ },
207
+ stringify: (e) => {
208
+ let { h: t, s: n, l: r, a: i } = e;
209
+ return i < 1 ? `hsla(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%, ${i})` : `hsl(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%)`;
210
+ }
211
+ }, f = {
212
+ colors: {
213
+ aliceblue: "#f0f8ff",
214
+ antiquewhite: "#faebd7",
215
+ aqua: "#00ffff",
216
+ aquamarine: "#7fffd4",
217
+ azure: "#f0ffff",
218
+ beige: "#f5f5dc",
219
+ bisque: "#ffe4c4",
220
+ black: "#000000",
221
+ blanchedalmond: "#ffebcd",
222
+ blue: "#0000ff",
223
+ blueviolet: "#8a2be2",
224
+ brown: "#a52a2a",
225
+ burlywood: "#deb887",
226
+ cadetblue: "#5f9ea0",
227
+ chartreuse: "#7fff00",
228
+ chocolate: "#d2691e",
229
+ coral: "#ff7f50",
230
+ cornflowerblue: "#6495ed",
231
+ cornsilk: "#fff8dc",
232
+ crimson: "#dc143c",
233
+ cyanaqua: "#00ffff",
234
+ darkblue: "#00008b",
235
+ darkcyan: "#008b8b",
236
+ darkgoldenrod: "#b8860b",
237
+ darkgray: "#a9a9a9",
238
+ darkgreen: "#006400",
239
+ darkgrey: "#a9a9a9",
240
+ darkkhaki: "#bdb76b",
241
+ darkmagenta: "#8b008b",
242
+ darkolivegreen: "#556b2f",
243
+ darkorange: "#ff8c00",
244
+ darkorchid: "#9932cc",
245
+ darkred: "#8b0000",
246
+ darksalmon: "#e9967a",
247
+ darkseagreen: "#8fbc8f",
248
+ darkslateblue: "#483d8b",
249
+ darkslategray: "#2f4f4f",
250
+ darkslategrey: "#2f4f4f",
251
+ darkturquoise: "#00ced1",
252
+ darkviolet: "#9400d3",
253
+ deeppink: "#ff1493",
254
+ deepskyblue: "#00bfff",
255
+ dimgray: "#696969",
256
+ dimgrey: "#696969",
257
+ dodgerblue: "#1e90ff",
258
+ firebrick: "#b22222",
259
+ floralwhite: "#fffaf0",
260
+ forestgreen: "#228b22",
261
+ fuchsia: "#ff00ff",
262
+ gainsboro: "#dcdcdc",
263
+ ghostwhite: "#f8f8ff",
264
+ gold: "#ffd700",
265
+ goldenrod: "#daa520",
266
+ gray: "#808080",
267
+ green: "#008000",
268
+ greenyellow: "#adff2f",
269
+ grey: "#808080",
270
+ honeydew: "#f0fff0",
271
+ hotpink: "#ff69b4",
272
+ indianred: "#cd5c5c",
273
+ indigo: "#4b0082",
274
+ ivory: "#fffff0",
275
+ khaki: "#f0e68c",
276
+ lavender: "#e6e6fa",
277
+ lavenderblush: "#fff0f5",
278
+ lawngreen: "#7cfc00",
279
+ lemonchiffon: "#fffacd",
280
+ lightblue: "#add8e6",
281
+ lightcoral: "#f08080",
282
+ lightcyan: "#e0ffff",
283
+ lightgoldenrodyellow: "#fafad2",
284
+ lightgray: "#d3d3d3",
285
+ lightgreen: "#90ee90",
286
+ lightgrey: "#d3d3d3",
287
+ lightpink: "#ffb6c1",
288
+ lightsalmon: "#ffa07a",
289
+ lightseagreen: "#20b2aa",
290
+ lightskyblue: "#87cefa",
291
+ lightslategray: "#778899",
292
+ lightslategrey: "#778899",
293
+ lightsteelblue: "#b0c4de",
294
+ lightyellow: "#ffffe0",
295
+ lime: "#00ff00",
296
+ limegreen: "#32cd32",
297
+ linen: "#faf0e6",
298
+ magenta: "#ff00ff",
299
+ maroon: "#800000",
300
+ mediumaquamarine: "#66cdaa",
301
+ mediumblue: "#0000cd",
302
+ mediumorchid: "#ba55d3",
303
+ mediumpurple: "#9370db",
304
+ mediumseagreen: "#3cb371",
305
+ mediumslateblue: "#7b68ee",
306
+ mediumspringgreen: "#00fa9a",
307
+ mediumturquoise: "#48d1cc",
308
+ mediumvioletred: "#c71585",
309
+ midnightblue: "#191970",
310
+ mintcream: "#f5fffa",
311
+ mistyrose: "#ffe4e1",
312
+ moccasin: "#ffe4b5",
313
+ navajowhite: "#ffdead",
314
+ navy: "#000080",
315
+ oldlace: "#fdf5e6",
316
+ olive: "#808000",
317
+ olivedrab: "#6b8e23",
318
+ orange: "#ffa500",
319
+ orangered: "#ff4500",
320
+ orchid: "#da70d6",
321
+ palegoldenrod: "#eee8aa",
322
+ palegreen: "#98fb98",
323
+ paleturquoise: "#afeeee",
324
+ palevioletred: "#db7093",
325
+ papayawhip: "#ffefd5",
326
+ peachpuff: "#ffdab9",
327
+ peru: "#cd853f",
328
+ pink: "#ffc0cb",
329
+ plum: "#dda0dd",
330
+ powderblue: "#b0e0e6",
331
+ purple: "#800080",
332
+ rebeccapurple: "#663399",
333
+ red: "#ff0000",
334
+ rosybrown: "#bc8f8f",
335
+ royalblue: "#4169e1",
336
+ saddlebrown: "#8b4513",
337
+ salmon: "#fa8072",
338
+ sandybrown: "#f4a460",
339
+ seagreen: "#2e8b57",
340
+ seashell: "#fff5ee",
341
+ sienna: "#a0522d",
342
+ silver: "#c0c0c0",
343
+ skyblue: "#87ceeb",
344
+ slateblue: "#6a5acd",
345
+ slategray: "#708090",
346
+ slategrey: "#708090",
347
+ snow: "#fffafa",
348
+ springgreen: "#00ff7f",
349
+ tan: "#d2b48c",
350
+ teal: "#008080",
351
+ thistle: "#d8bfd8",
352
+ transparent: "#00000000",
353
+ turquoise: "#40e0d0",
354
+ violet: "#ee82ee",
355
+ wheat: "#f5deb3",
356
+ white: "#ffffff",
357
+ whitesmoke: "#f5f5f5",
358
+ yellow: "#ffff00",
359
+ yellowgreen: "#9acd32"
360
+ },
361
+ parse: (e) => {
362
+ e = e.toLowerCase();
363
+ let t = f.colors[e];
364
+ if (t) return u.parse(t);
365
+ },
366
+ stringify: (e) => {
367
+ let t = u.stringify(e);
368
+ for (let e in f.colors) if (f.colors[e] === t) return e;
369
+ }
370
+ }, p = {
371
+ 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,
372
+ parse: (e) => {
373
+ let t = e.charCodeAt(0);
374
+ if (t !== 114 && t !== 82) return;
375
+ let n = e.match(p.re);
376
+ if (!n) return;
377
+ let [, r, i, o, s, c, u, d, f] = n;
378
+ return l.set({
379
+ r: a.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
380
+ g: a.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
381
+ b: a.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
382
+ a: d ? a.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
383
+ }, e);
384
+ },
385
+ stringify: (e) => {
386
+ let { r: t, g: n, b: r, a: i } = e;
387
+ return i < 1 ? `rgba(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)}, ${a.lang.round(i)})` : `rgb(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)})`;
388
+ }
389
+ }, m = {
390
+ format: {
391
+ keyword: f,
392
+ hex: u,
393
+ rgb: p,
394
+ rgba: p,
395
+ hsl: d,
396
+ hsla: d
397
+ },
398
+ parse: (e) => {
399
+ if (typeof e != "string") return e;
400
+ let t = u.parse(e) || p.parse(e) || d.parse(e) || f.parse(e);
401
+ if (t) return t;
402
+ throw Error(`Unsupported color format: "${e}"`);
403
+ },
404
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(s.HSL) || e.data.r === void 0 ? d.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? p.stringify(e) : u.stringify(e)
405
+ }, ee = (e, t) => {
406
+ let n = m.parse(e);
407
+ for (let e in t) n[e] = a.channel.clamp[e](t[e]);
408
+ return m.stringify(n);
409
+ }, h = (e, t, n = 0, r = 1) => {
410
+ if (typeof e != "number") return ee(e, { a: t });
411
+ let i = l.set({
412
+ r: a.channel.clamp.r(e),
413
+ g: a.channel.clamp.g(t),
414
+ b: a.channel.clamp.b(n),
415
+ a: a.channel.clamp.a(r)
416
+ });
417
+ return m.stringify(i);
418
+ }, g = (e) => {
419
+ let { r: t, g: n, b: r } = m.parse(e), i = .2126 * a.channel.toLinear(t) + .7152 * a.channel.toLinear(n) + .0722 * a.channel.toLinear(r);
420
+ return a.lang.round(i);
421
+ }, te = (e) => g(e) >= .5, _ = (e) => !te(e), v = (e, t, n) => {
422
+ let r = m.parse(e), i = r[t], o = a.channel.clamp[t](i + n);
423
+ return i !== o && (r[t] = o), m.stringify(r);
424
+ }, y = (e, t) => v(e, "l", t), b = (e, t) => v(e, "l", -t), x = (e, t) => {
425
+ let n = m.parse(e), r = {};
426
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
427
+ return ee(e, r);
428
+ }, ne = (e, t, n = 50) => {
429
+ let { r, g: i, b: a, a: o } = m.parse(e), { r: s, g: c, b: l, a: u } = m.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, ee = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, g = 1 - ee;
430
+ return h(r * ee + s * g, i * ee + c * g, a * ee + l * g, o * d + u * (1 - d));
431
+ }, S = (e, t = 100) => {
432
+ let n = m.parse(e);
433
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
434
+ };
435
+ //#endregion
436
+ //#region node_modules/dompurify/dist/purify.es.mjs
437
+ function C(e, t) {
438
+ (t == null || t > e.length) && (t = e.length);
439
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
440
+ return r;
441
+ }
442
+ function re(e) {
443
+ if (Array.isArray(e)) return e;
444
+ }
445
+ function ie(e, t) {
446
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
447
+ if (n != null) {
448
+ var r, i, a, o, s = [], c = !0, l = !1;
449
+ try {
450
+ 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);
451
+ } catch (e) {
452
+ l = !0, i = e;
453
+ } finally {
454
+ try {
455
+ if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
456
+ } finally {
457
+ if (l) throw i;
458
+ }
459
+ }
460
+ return s;
461
+ }
462
+ }
463
+ function ae() {
464
+ throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
465
+ }
466
+ function oe(e, t) {
467
+ return re(e) || ie(e, t) || se(e, t) || ae();
468
+ }
469
+ function se(e, t) {
470
+ if (e) {
471
+ if (typeof e == "string") return C(e, t);
472
+ var n = {}.toString.call(e).slice(8, -1);
473
+ 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) ? C(e, t) : void 0;
474
+ }
475
+ }
476
+ var ce = Object.entries, le = Object.setPrototypeOf, ue = Object.isFrozen, de = Object.getPrototypeOf, fe = Object.getOwnPropertyDescriptor, w = Object.freeze, T = Object.seal, pe = Object.create, me = typeof Reflect < "u" && Reflect, he = me.apply, ge = me.construct;
477
+ w ||= function(e) {
478
+ return e;
479
+ }, T ||= function(e) {
480
+ return e;
481
+ }, he ||= function(e, t) {
482
+ var n = [...arguments].slice(2);
483
+ return e.apply(t, n);
484
+ }, ge ||= function(e) {
485
+ return new e(...[...arguments].slice(1));
486
+ };
487
+ var _e = k(Array.prototype.forEach), ve = k(Array.prototype.lastIndexOf), ye = k(Array.prototype.pop), be = k(Array.prototype.push), xe = k(Array.prototype.splice), Se = Array.isArray, Ce = k(String.prototype.toLowerCase), we = k(String.prototype.toString), Te = k(String.prototype.match), Ee = k(String.prototype.replace), De = k(String.prototype.indexOf), Oe = k(String.prototype.trim), ke = k(Number.prototype.toString), E = k(Boolean.prototype.toString), Ae = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), je = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), D = k(Object.prototype.hasOwnProperty), Me = k(Object.prototype.toString), O = k(RegExp.prototype.test), Ne = Pe(TypeError);
488
+ function k(e) {
489
+ return function(t) {
490
+ t instanceof RegExp && (t.lastIndex = 0);
491
+ var n = [...arguments].slice(1);
492
+ return he(e, t, n);
493
+ };
494
+ }
495
+ function Pe(e) {
496
+ return function() {
497
+ return ge(e, [...arguments]);
498
+ };
499
+ }
500
+ function A(e, t) {
501
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ce;
502
+ if (le && le(e, null), !Se(t)) return e;
503
+ let r = t.length;
504
+ for (; r--;) {
505
+ let i = t[r];
506
+ if (typeof i == "string") {
507
+ let e = n(i);
508
+ e !== i && (ue(t) || (t[r] = e), i = e);
509
+ }
510
+ e[i] = !0;
511
+ }
512
+ return e;
513
+ }
514
+ function Fe(e) {
515
+ for (let t = 0; t < e.length; t++) D(e, t) || (e[t] = null);
516
+ return e;
517
+ }
518
+ function j(e) {
519
+ let t = pe(null);
520
+ for (let r of ce(e)) {
521
+ var n = oe(r, 2);
522
+ let i = n[0], a = n[1];
523
+ D(e, i) && (Se(a) ? t[i] = Fe(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = j(a) : t[i] = a);
524
+ }
525
+ return t;
526
+ }
527
+ function Ie(e) {
528
+ switch (typeof e) {
529
+ case "string": return e;
530
+ case "number": return ke(e);
531
+ case "boolean": return E(e);
532
+ case "bigint": return Ae ? Ae(e) : "0";
533
+ case "symbol": return je ? je(e) : "Symbol()";
534
+ case "undefined": return Me(e);
535
+ case "function":
536
+ case "object": {
537
+ if (e === null) return Me(e);
538
+ let t = e, n = M(t, "toString");
539
+ if (typeof n == "function") {
540
+ let e = n(t);
541
+ return typeof e == "string" ? e : Me(e);
542
+ }
543
+ return Me(e);
544
+ }
545
+ default: return Me(e);
546
+ }
547
+ }
548
+ function M(e, t) {
549
+ for (; e !== null;) {
550
+ let n = fe(e, t);
551
+ if (n) {
552
+ if (n.get) return k(n.get);
553
+ if (typeof n.value == "function") return k(n.value);
554
+ }
555
+ e = de(e);
556
+ }
557
+ function n() {
558
+ return null;
559
+ }
560
+ return n;
561
+ }
562
+ function Le(e) {
563
+ try {
564
+ return O(e, ""), !0;
565
+ } catch {
566
+ return !1;
567
+ }
568
+ }
569
+ var Re = w(/* @__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(".")), ze = w(/* @__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(".")), Be = w([
570
+ "feBlend",
571
+ "feColorMatrix",
572
+ "feComponentTransfer",
573
+ "feComposite",
574
+ "feConvolveMatrix",
575
+ "feDiffuseLighting",
576
+ "feDisplacementMap",
577
+ "feDistantLight",
578
+ "feDropShadow",
579
+ "feFlood",
580
+ "feFuncA",
581
+ "feFuncB",
582
+ "feFuncG",
583
+ "feFuncR",
584
+ "feGaussianBlur",
585
+ "feImage",
586
+ "feMerge",
587
+ "feMergeNode",
588
+ "feMorphology",
589
+ "feOffset",
590
+ "fePointLight",
591
+ "feSpecularLighting",
592
+ "feSpotLight",
593
+ "feTile",
594
+ "feTurbulence"
595
+ ]), Ve = w([
596
+ "animate",
597
+ "color-profile",
598
+ "cursor",
599
+ "discard",
600
+ "font-face",
601
+ "font-face-format",
602
+ "font-face-name",
603
+ "font-face-src",
604
+ "font-face-uri",
605
+ "foreignobject",
606
+ "hatch",
607
+ "hatchpath",
608
+ "mesh",
609
+ "meshgradient",
610
+ "meshpatch",
611
+ "meshrow",
612
+ "missing-glyph",
613
+ "script",
614
+ "set",
615
+ "solidcolor",
616
+ "unknown",
617
+ "use"
618
+ ]), He = w(/* @__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(".")), Ue = w([
619
+ "maction",
620
+ "maligngroup",
621
+ "malignmark",
622
+ "mlongdiv",
623
+ "mscarries",
624
+ "mscarry",
625
+ "msgroup",
626
+ "mstack",
627
+ "msline",
628
+ "msrow",
629
+ "semantics",
630
+ "annotation",
631
+ "annotation-xml",
632
+ "mprescripts",
633
+ "none"
634
+ ]), We = w(["#text"]), Ge = w(/* @__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(".")), Ke = w(/* @__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(".")), qe = w(/* @__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(".")), Je = w([
635
+ "xlink:href",
636
+ "xml:id",
637
+ "xlink:title",
638
+ "xml:space",
639
+ "xmlns:xlink"
640
+ ]), Ye = T(/{{[\w\W]*|^[\w\W]*}}/g), Xe = T(/<%[\w\W]*|^[\w\W]*%>/g), Ze = T(/\${[\w\W]*/g), Qe = T(/^data-[\-\w.\u00B7-\uFFFF]+$/), $e = T(/^aria-[\-\w]+$/), et = T(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), tt = T(/^(?:\w+script|data):/i), nt = T(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), rt = T(/^html$/i), it = T(/^[a-z][.\w]*(-[.\w]+)+$/i), at = T(/<[/\w!]/g), ot = T(/<[/\w]/g), st = T(/<\/no(script|embed|frames)/i), ct = T(/\/>/i), N = {
641
+ element: 1,
642
+ attribute: 2,
643
+ text: 3,
644
+ cdataSection: 4,
645
+ entityReference: 5,
646
+ entityNode: 6,
647
+ processingInstruction: 7,
648
+ comment: 8,
649
+ document: 9,
650
+ documentType: 10,
651
+ documentFragment: 11,
652
+ notation: 12
653
+ }, lt = [
654
+ "style",
655
+ "script",
656
+ "xmp",
657
+ "iframe",
658
+ "noembed",
659
+ "noframes",
660
+ "plaintext",
661
+ "noscript"
662
+ ], ut = w(A({}, lt)), dt = function() {
663
+ let e = {};
664
+ return _e(lt, (t) => {
665
+ e[t] = T(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
666
+ }), w(e);
667
+ }(), ft = function() {
668
+ return typeof window > "u" ? null : window;
669
+ }, pt = function(e, t) {
670
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
671
+ let n = null, r = "data-tt-policy-suffix";
672
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
673
+ let i = "dompurify" + (n ? "#" + n : "");
674
+ try {
675
+ return e.createPolicy(i, {
676
+ createHTML(e) {
677
+ return e;
678
+ },
679
+ createScriptURL(e) {
680
+ return e;
681
+ }
682
+ });
683
+ } catch {
684
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
685
+ }
686
+ }, mt = function() {
687
+ return {
688
+ afterSanitizeAttributes: [],
689
+ afterSanitizeElements: [],
690
+ afterSanitizeShadowDOM: [],
691
+ beforeSanitizeAttributes: [],
692
+ beforeSanitizeElements: [],
693
+ beforeSanitizeShadowDOM: [],
694
+ uponSanitizeAttribute: [],
695
+ uponSanitizeElement: [],
696
+ uponSanitizeShadowNode: []
697
+ };
698
+ }, P = function(e, t, n, r) {
699
+ return D(e, t) && Se(e[t]) ? A(r.base ? j(r.base) : {}, e[t], r.transform) : n;
700
+ }, ht = function(e, t, n) {
701
+ let r = D(e, t) ? e[t] : void 0;
702
+ return r && typeof r == "object" ? j(r) : n();
703
+ };
704
+ function gt() {
705
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ft(), t = (e) => gt(e);
706
+ if (t.version = "3.4.15", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
707
+ let n = e.document, r = n, i = r.currentScript;
708
+ e.DocumentFragment;
709
+ let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
710
+ e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
711
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "removeAttributeNode"), ee = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), te = M(d, "shadowRoot"), _ = M(d, "attributes"), v = o && o.prototype ? M(o.prototype, "nodeType") : null, y = o && o.prototype ? M(o.prototype, "nodeName") : null, b = o && o.prototype ? M(o.prototype, "ownerDocument") : null, x = function(e) {
712
+ return v ? v(e) : e.nodeType;
713
+ }, ne = function(e) {
714
+ return y ? y(e) : e.nodeName;
715
+ };
716
+ if (typeof a == "function") {
717
+ let e = n.createElement("template");
718
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
719
+ }
720
+ let S, C = "", re, ie = !1, ae = 0, oe = function() {
721
+ if (ae > 0) throw Ne("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.");
722
+ }, se = function(e) {
723
+ oe(), ae++;
724
+ try {
725
+ return S.createHTML(e);
726
+ } finally {
727
+ ae--;
728
+ }
729
+ }, le = function(e) {
730
+ oe(), ae++;
731
+ try {
732
+ return S.createScriptURL(e);
733
+ } finally {
734
+ ae--;
735
+ }
736
+ }, ue = function() {
737
+ return ie ||= (re = pt(u, i), !0), re;
738
+ }, de = n, fe = de.implementation, me = de.createNodeIterator, he = de.createDocumentFragment, ge = de.getElementsByTagName, ke = r.importNode, E = mt();
739
+ t.isSupported = typeof ce == "function" && typeof g == "function" && fe && fe.createHTMLDocument !== void 0;
740
+ let Ae = Ye, je = Xe, Me = Ze, k = Qe, Pe = $e, Fe = tt, lt = nt, _t = it, vt = et, F = null, yt = A({}, [
741
+ ...Re,
742
+ ...ze,
743
+ ...Be,
744
+ ...He,
745
+ ...We
746
+ ]), I = null, bt = A({}, [
747
+ ...Ge,
748
+ ...Ke,
749
+ ...qe,
750
+ ...Je
751
+ ]), L = Object.seal(pe(null, {
752
+ tagNameCheck: {
753
+ writable: !0,
754
+ configurable: !1,
755
+ enumerable: !0,
756
+ value: null
757
+ },
758
+ attributeNameCheck: {
759
+ writable: !0,
760
+ configurable: !1,
761
+ enumerable: !0,
762
+ value: null
763
+ },
764
+ allowCustomizedBuiltInElements: {
765
+ writable: !0,
766
+ configurable: !1,
767
+ enumerable: !0,
768
+ value: !1
769
+ }
770
+ })), xt = null, St = null, R = Object.seal(pe(null, {
771
+ tagCheck: {
772
+ writable: !0,
773
+ configurable: !1,
774
+ enumerable: !0,
775
+ value: null
776
+ },
777
+ attributeCheck: {
778
+ writable: !0,
779
+ configurable: !1,
780
+ enumerable: !0,
781
+ value: null
782
+ }
783
+ })), Ct = !0, wt = !0, z = !1, B = !0, V = !1, H = !0, U = !1, Tt = !1, Et = null, Dt = null, Ot = !1, W = !1, kt = !1, At = !1, jt = !0, Mt = !1, Nt = "user-content-", Pt = !0, Ft = !1, It = {}, Lt = null, Rt = A({}, /* @__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(".")), zt = null, Bt = A({}, [
784
+ "audio",
785
+ "video",
786
+ "img",
787
+ "source",
788
+ "image",
789
+ "track"
790
+ ]), Vt = null, Ht = A({}, [
791
+ "alt",
792
+ "class",
793
+ "for",
794
+ "id",
795
+ "label",
796
+ "name",
797
+ "pattern",
798
+ "placeholder",
799
+ "role",
800
+ "summary",
801
+ "title",
802
+ "value",
803
+ "style",
804
+ "xmlns"
805
+ ]), Ut = "http://www.w3.org/1998/Math/MathML", G = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, Wt = !1, Gt = null, Kt = A({}, [
806
+ Ut,
807
+ G,
808
+ K
809
+ ], we), qt = w([
810
+ "mi",
811
+ "mo",
812
+ "mn",
813
+ "ms",
814
+ "mtext"
815
+ ]), Jt = A({}, qt), Yt = w(["annotation-xml"]), Xt = A({}, Yt), Zt = A({}, [
816
+ "title",
817
+ "style",
818
+ "font",
819
+ "a",
820
+ "script"
821
+ ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, en = null, tn = n.createElement("form"), nn = function(e) {
822
+ return e instanceof RegExp || e instanceof Function;
823
+ }, rn = function() {
824
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
825
+ if (en && en === e) return;
826
+ (!e || typeof e != "object") && (e = {}), e = j(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? we : Ce, F = P(e, "ALLOWED_TAGS", yt, { transform: J }), I = P(e, "ALLOWED_ATTR", bt, { transform: J }), Gt = P(e, "ALLOWED_NAMESPACES", Kt, { transform: we }), Vt = P(e, "ADD_URI_SAFE_ATTR", Ht, {
827
+ transform: J,
828
+ base: Ht
829
+ }), zt = P(e, "ADD_DATA_URI_TAGS", Bt, {
830
+ transform: J,
831
+ base: Bt
832
+ }), Lt = P(e, "FORBID_CONTENTS", Rt, { transform: J }), xt = P(e, "FORBID_TAGS", j({}), { transform: J }), St = P(e, "FORBID_ATTR", j({}), { transform: J }), It = D(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, Ct = e.ALLOW_ARIA_ATTR !== !1, wt = e.ALLOW_DATA_ATTR !== !1, z = e.ALLOW_UNKNOWN_PROTOCOLS || !1, B = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, W = e.RETURN_DOM || !1, kt = e.RETURN_DOM_FRAGMENT || !1, At = e.RETURN_TRUSTED_TYPE || !1, Ot = e.FORCE_BODY || !1, jt = e.SANITIZE_DOM !== !1, Mt = e.SANITIZE_NAMED_PROPS || !1, Pt = e.KEEP_CONTENT !== !1, Ft = e.IN_PLACE || !1, vt = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Jt = ht(e, "MATHML_TEXT_INTEGRATION_POINTS", () => A({}, qt)), Xt = ht(e, "HTML_INTEGRATION_POINTS", () => A({}, Yt));
833
+ let t = ht(e, "CUSTOM_ELEMENT_HANDLING", () => pe(null));
834
+ if (L = pe(null), D(t, "tagNameCheck") && nn(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), D(t, "attributeNameCheck") && nn(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), D(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), T(L), V && (wt = !1), kt && (W = !0), It && (F = A({}, We), I = pe(null), It.html === !0 && (A(F, Re), A(I, Ge)), It.svg === !0 && (A(F, ze), A(I, Ke), A(I, Je)), It.svgFilters === !0 && (A(F, Be), A(I, Ke), A(I, Je)), It.mathMl === !0 && (A(F, He), A(I, qe), A(I, Je))), R.tagCheck = null, R.attributeCheck = null, D(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? R.tagCheck = e.ADD_TAGS : Se(e.ADD_TAGS) && (F === yt && (F = j(F)), A(F, e.ADD_TAGS, J))), D(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? R.attributeCheck = e.ADD_ATTR : Se(e.ADD_ATTR) && (I === bt && (I = j(I)), A(I, e.ADD_ATTR, J))), D(e, "ADD_FORBID_CONTENTS") && Se(e.ADD_FORBID_CONTENTS) && (Lt === Rt && (Lt = j(Lt)), A(Lt, e.ADD_FORBID_CONTENTS, J)), Pt && (F["#text"] = !0), U && A(F, [
835
+ "html",
836
+ "head",
837
+ "body"
838
+ ]), F.table && (A(F, ["tbody"]), delete xt.tbody), e.TRUSTED_TYPES_POLICY) {
839
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Ne("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
840
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Ne("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
841
+ let t = S;
842
+ S = e.TRUSTED_TYPES_POLICY;
843
+ try {
844
+ C = se("");
845
+ } catch (e) {
846
+ throw S = t, e;
847
+ }
848
+ } else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = ue()), S && typeof C == "string" && (C = se("")));
849
+ w && w(e), en = e;
850
+ }, Y = A({}, [
851
+ ...ze,
852
+ ...Be,
853
+ ...Ve
854
+ ]), an = A({}, [...He, ...Ue]), on = function(e, t, n) {
855
+ return t.namespaceURI === K ? e === "svg" : t.namespaceURI === Ut ? e === "svg" && (n === "annotation-xml" || Jt[n]) : !!Y[e];
856
+ }, X = function(e, t, n) {
857
+ return t.namespaceURI === K ? e === "math" : t.namespaceURI === G ? e === "math" && Xt[n] : !!an[e];
858
+ }, sn = function(e, t, n) {
859
+ return t.namespaceURI === G && !Xt[n] || t.namespaceURI === Ut && !Jt[n] ? !1 : !an[e] && (Zt[e] || !Y[e]);
860
+ }, cn = function(e) {
861
+ let t = g(e);
862
+ (!t || !t.tagName) && (t = {
863
+ namespaceURI: q,
864
+ tagName: "template"
865
+ });
866
+ let n = Ce(e.tagName), r = Ce(t.tagName);
867
+ return Gt[e.namespaceURI] ? e.namespaceURI === G ? on(n, t, r) : e.namespaceURI === Ut ? X(n, t, r) : e.namespaceURI === K ? sn(n, t, r) : !!(Qt === "application/xhtml+xml" && Gt[e.namespaceURI]) : !1;
868
+ }, Z = function(e) {
869
+ be(t.removed, { element: e });
870
+ try {
871
+ g(e).removeChild(e);
872
+ } catch {
873
+ if (p(e), !g(e)) throw Ne("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
874
+ }
875
+ }, Q = function(e, t, n) {
876
+ try {
877
+ m(e, t);
878
+ } catch {
879
+ try {
880
+ e.removeAttribute(n);
881
+ } catch {}
882
+ }
883
+ }, ln = function(e) {
884
+ fn(e);
885
+ let t = h(e);
886
+ if (t) {
887
+ let e = [];
888
+ _e(t, (t) => {
889
+ be(e, t);
890
+ }), _e(e, (e) => {
891
+ try {
892
+ p(e);
893
+ } catch {}
894
+ });
895
+ }
896
+ let n = _(e);
897
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
898
+ let r = n[t], i = r && r.name;
899
+ typeof i == "string" && Q(e, r, i);
900
+ }
901
+ }, un = function(e, n, r) {
902
+ if (!r) try {
903
+ r = n.getAttributeNode(e);
904
+ } catch {
905
+ r = null;
906
+ }
907
+ be(t.removed, {
908
+ attribute: r || null,
909
+ from: n
910
+ });
911
+ try {
912
+ r ? m(n, r) : n.removeAttribute(e);
913
+ } catch {
914
+ try {
915
+ n.removeAttribute(e);
916
+ } catch {}
917
+ }
918
+ if (e === "is") if (W || kt) try {
919
+ Z(n);
920
+ } catch {}
921
+ else try {
922
+ n.setAttribute(e, "");
923
+ } catch {}
924
+ }, dn = function(e) {
925
+ let t = _(e);
926
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
927
+ let r = t[n], i = r && r.name;
928
+ typeof i != "string" || I[J(i)] || Q(e, r, i);
929
+ }
930
+ }, fn = function(e) {
931
+ let t = [e];
932
+ for (; t.length > 0;) {
933
+ let e = t.pop();
934
+ x(e) === N.element && dn(e);
935
+ let n = h(e);
936
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
937
+ }
938
+ }, pn = function(e, t) {
939
+ return H ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
940
+ }, mn = function(e) {
941
+ if (!H) return;
942
+ let t = [e];
943
+ for (; t.length > 0;) {
944
+ let e = t.pop(), n = x(e);
945
+ if (n === N.processingInstruction || n === N.comment && O(ot, e.data)) {
946
+ try {
947
+ p(e);
948
+ } catch {}
949
+ continue;
950
+ }
951
+ if (n === N.element) {
952
+ let t = e, n = J(ne(e));
953
+ try {
954
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && pn("for", n) && t.removeAttribute("for");
955
+ } catch {}
956
+ }
957
+ let r = h(e);
958
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
959
+ }
960
+ }, hn = function(e) {
961
+ let t = null, r = null;
962
+ if (Ot) e = "<remove></remove>" + e;
963
+ else {
964
+ let t = Te(e, /^[\r\n\t ]+/);
965
+ r = t && t[0];
966
+ }
967
+ Qt === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
968
+ let i = S ? se(e) : e;
969
+ if (q === K) try {
970
+ t = new l().parseFromString(i, Qt);
971
+ } catch {}
972
+ if (!t || !t.documentElement) {
973
+ t = fe.createDocument(q, "template", null);
974
+ try {
975
+ t.documentElement.innerHTML = Wt ? C : i;
976
+ } catch {}
977
+ }
978
+ let a = t.body || t.documentElement;
979
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? ge.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
980
+ }, gn = function(e) {
981
+ let t = b ? b(e) : e.ownerDocument;
982
+ return me.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
983
+ }, _n = function(e) {
984
+ return e = Ee(e, Ae, " "), e = Ee(e, je, " "), e = Ee(e, Me, " "), e;
985
+ }, vn = function(e) {
986
+ e.normalize();
987
+ let t = b ? b(e) : e.ownerDocument, n = me.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
988
+ for (; r;) r.data = _n(r.data), r = n.nextNode();
989
+ let i = e.querySelectorAll?.call(e, "template");
990
+ i && _e(i, (e) => {
991
+ bn(e.content) && vn(e.content);
992
+ });
993
+ }, yn = function(e) {
994
+ let t = y ? y(e) : null;
995
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== _(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 !== v(e) || e.childNodes !== h(e);
996
+ }, bn = function(e) {
997
+ if (!v || typeof e != "object" || !e) return !1;
998
+ try {
999
+ return v(e) === N.documentFragment;
1000
+ } catch {
1001
+ return !1;
1002
+ }
1003
+ }, xn = function(e) {
1004
+ if (!v || typeof e != "object" || !e) return !1;
1005
+ try {
1006
+ return typeof v(e) == "number";
1007
+ } catch {
1008
+ return !1;
1009
+ }
1010
+ };
1011
+ function $(e, n, r) {
1012
+ e.length !== 0 && _e(e, (e) => {
1013
+ e.call(t, n, r, en);
1014
+ });
1015
+ }
1016
+ let Sn = function(e, t) {
1017
+ return !!(H && e.hasChildNodes() && !xn(e.firstElementChild) && O(at, e.textContent) && O(at, e.innerHTML) || H && e.namespaceURI === K && ut[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && O(dt[t], e.textContent)) || e.nodeType === N.processingInstruction || H && e.nodeType === N.comment && O(ot, e.data));
1018
+ }, Cn = function(e, t) {
1019
+ return e instanceof RegExp ? O(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
1020
+ }, wn = function(e, t, n) {
1021
+ if (!xt[t] && An(t) && Cn(L.tagNameCheck, t)) return !1;
1022
+ if (Pt && !Lt[t]) {
1023
+ let t = g(e), r = h(e);
1024
+ if (r && t) {
1025
+ let i = r.length;
1026
+ for (let a = i - 1; a >= 0; --a) {
1027
+ let i = e === n ? f(r[a], !0) : r[a];
1028
+ t.insertBefore(i, ee(e));
1029
+ }
1030
+ }
1031
+ }
1032
+ return Z(e), !0;
1033
+ }, Tn = function(e, t, n, r) {
1034
+ return e.length === 0 ? t : t === n || t === r ? j(t) : t;
1035
+ }, En = function(e, t) {
1036
+ return e === t || g(e) !== null ? !1 : (Ft && fn(e), !0);
1037
+ }, Dn = function(e, n) {
1038
+ if ($(E.beforeSanitizeElements, e, null), En(e, n)) return !0;
1039
+ if (yn(e)) return Z(e), !0;
1040
+ let r = J(ne(e));
1041
+ if (F = Tn(E.uponSanitizeElement, F, yt, Et), $(E.uponSanitizeElement, e, {
1042
+ tagName: r,
1043
+ allowedTags: F
1044
+ }), En(e, n)) return !0;
1045
+ if (Sn(e, r)) return Z(e), !0;
1046
+ if (xt[r] || !(R.tagCheck instanceof Function && R.tagCheck(r)) && !F[r]) {
1047
+ let t = wn(e, r, n);
1048
+ return t === !1 && $(E.afterSanitizeElements, e, null), t;
1049
+ }
1050
+ if (x(e) === N.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && O(st, e.innerHTML)) return Z(e), !0;
1051
+ if (V && e.nodeType === N.text) {
1052
+ let n = _n(e.textContent);
1053
+ e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
1054
+ }
1055
+ return $(E.afterSanitizeElements, e, null), !1;
1056
+ }, On = function(e, t, r) {
1057
+ if (St[t] || pn(t, e) || jt && (t === "id" || t === "name") && (r in n || r in tn)) return !1;
1058
+ let i = I[t] || R.attributeCheck instanceof Function && R.attributeCheck(t, e);
1059
+ return wt && O(k, t) || Ct && O(Pe, t) ? !0 : i ? Vt[t] || O(vt, Ee(r, lt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && De(r, "data:") === 0 && zt[e] || z && !O(Fe, Ee(r, lt, "")) ? !0 : !r : An(e) && Cn(L.tagNameCheck, e) && Cn(L.attributeNameCheck, t, e) || t === "is" && L.allowCustomizedBuiltInElements && Cn(L.tagNameCheck, r);
1060
+ }, kn = A({}, [
1061
+ "annotation-xml",
1062
+ "color-profile",
1063
+ "font-face",
1064
+ "font-face-format",
1065
+ "font-face-name",
1066
+ "font-face-src",
1067
+ "font-face-uri",
1068
+ "missing-glyph"
1069
+ ]), An = function(e) {
1070
+ return !kn[Ce(e)] && O(_t, e);
1071
+ }, jn = function(e, t, n, r) {
1072
+ if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1073
+ case "TrustedHTML": return se(r);
1074
+ case "TrustedScriptURL": return le(r);
1075
+ }
1076
+ return r;
1077
+ }, Mn = function(e, t, n, r) {
1078
+ try {
1079
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), yn(e) ? (Z(e), !1) : !0;
1080
+ } catch {
1081
+ return un(t, e), !1;
1082
+ }
1083
+ }, Nn = function(e) {
1084
+ $(E.beforeSanitizeAttributes, e, null);
1085
+ let n = e.attributes;
1086
+ if (!n || yn(e)) return;
1087
+ I = Tn(E.uponSanitizeAttribute, I, bt, Dt);
1088
+ let r = {
1089
+ attrName: "",
1090
+ attrValue: "",
1091
+ keepAttr: !0,
1092
+ allowedAttributes: I,
1093
+ forceKeepAttr: void 0
1094
+ }, i = n.length, a = J(e.nodeName);
1095
+ for (; i--;) {
1096
+ let o = n[i], s = o.name, c = o.namespaceURI, l = o.value, u = J(s), d = l, f = s === "value" ? d : Oe(d), p = !1;
1097
+ if (r.attrName = u, r.attrValue = f, r.keepAttr = !0, r.forceKeepAttr = void 0, $(E.uponSanitizeAttribute, e, r), f = r.attrValue, Mt && (u === "id" || u === "name") && De(f, Nt) !== 0 && (un(s, e, o), f = Nt + f, p = !0), H && O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
1098
+ un(s, e, o);
1099
+ continue;
1100
+ }
1101
+ if (u === "attributename" && Te(f, "href")) {
1102
+ un(s, e, o);
1103
+ continue;
1104
+ }
1105
+ if (!r.forceKeepAttr) {
1106
+ if (!r.keepAttr) {
1107
+ un(s, e, o);
1108
+ continue;
1109
+ }
1110
+ if (!B && O(ct, f)) {
1111
+ un(s, e, o);
1112
+ continue;
1113
+ }
1114
+ if (V && (f = _n(f)), !On(a, u, f)) {
1115
+ un(s, e, o);
1116
+ continue;
1117
+ }
1118
+ f = jn(a, u, c, f), f !== d && Mn(e, s, c, f) && p && ye(t.removed);
1119
+ }
1120
+ }
1121
+ $(E.afterSanitizeAttributes, e, null);
1122
+ }, Pn = function(e) {
1123
+ let t = null, n = gn(e);
1124
+ for ($(E.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(E.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t), bn(t.content) && Pn(t.content), x(t) === N.element) {
1125
+ let e = te(t);
1126
+ bn(e) && (Fn(e), Pn(e));
1127
+ }
1128
+ $(E.afterSanitizeShadowDOM, e, null);
1129
+ }, Fn = function(e) {
1130
+ let t = [{
1131
+ node: e,
1132
+ shadow: null
1133
+ }];
1134
+ for (; t.length > 0;) {
1135
+ let e = t.pop();
1136
+ if (e.shadow) {
1137
+ Pn(e.shadow);
1138
+ continue;
1139
+ }
1140
+ let n = e.node, r = x(n) === N.element, i = h(n);
1141
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1142
+ node: i[e],
1143
+ shadow: null
1144
+ });
1145
+ if (r) {
1146
+ let e = y ? y(n) : null;
1147
+ if (typeof e == "string" && J(e) === "template") {
1148
+ let e = n.content;
1149
+ bn(e) && t.push({
1150
+ node: e,
1151
+ shadow: null
1152
+ });
1153
+ }
1154
+ }
1155
+ if (r) {
1156
+ let e = te(n);
1157
+ bn(e) && t.push({
1158
+ node: null,
1159
+ shadow: e
1160
+ }, {
1161
+ node: e,
1162
+ shadow: null
1163
+ });
1164
+ }
1165
+ }
1166
+ };
1167
+ return t.sanitize = function(e) {
1168
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1169
+ if (Wt = !e, Wt && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = Ie(e), typeof e != "string")) throw Ne("dirty is not a string, aborting");
1170
+ if (!t.isSupported) return e;
1171
+ Tt ? (F = Et, I = Dt) : rn(n), (E.uponSanitizeElement.length > 0 || E.uponSanitizeAttribute.length > 0) && (F = j(F)), E.uponSanitizeAttribute.length > 0 && (I = j(I)), t.removed = [];
1172
+ let c = Ft && typeof e != "string" && xn(e);
1173
+ if (c) {
1174
+ mn(e);
1175
+ let t = ne(e);
1176
+ if (typeof t == "string") {
1177
+ let n = J(t);
1178
+ if (!F[n] || xt[n]) throw ln(e), Ne("root node is forbidden and cannot be sanitized in-place");
1179
+ }
1180
+ if (yn(e)) throw ln(e), Ne("root node is clobbered and cannot be sanitized in-place");
1181
+ try {
1182
+ Fn(e);
1183
+ } catch (t) {
1184
+ throw ln(e), t;
1185
+ }
1186
+ } else if (xn(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
1187
+ else {
1188
+ if (!W && !V && !U && e.indexOf("<") === -1) return S && At ? se(e) : e;
1189
+ if (i = hn(e), !i) return W ? null : At ? C : "";
1190
+ }
1191
+ i && Ot && Z(i.firstChild);
1192
+ let l = c ? e : i;
1193
+ try {
1194
+ let e = gn(l);
1195
+ for (; o = e.nextNode();) Dn(o, l), Nn(o), bn(o.content) && Pn(o.content);
1196
+ } catch (n) {
1197
+ throw c && (ln(e), _e(t.removed, (e) => {
1198
+ e.element && fn(e.element);
1199
+ })), n;
1200
+ }
1201
+ if (c) return _e(t.removed, (e) => {
1202
+ e.element && fn(e.element);
1203
+ }), V && vn(e), e;
1204
+ if (W) {
1205
+ if (V && vn(i), kt) for (s = he.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1206
+ else s = i;
1207
+ return (I.shadowroot || I.shadowrootmode) && (s = ke.call(r, s, !0)), s;
1208
+ }
1209
+ let u = U ? i.outerHTML : i.innerHTML;
1210
+ return U && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && O(rt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), V && (u = _n(u)), S && At ? se(u) : u;
1211
+ }, t.setConfig = function() {
1212
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1213
+ rn(e), Tt = !0, Et = F, Dt = I;
1214
+ }, t.clearConfig = function() {
1215
+ en = null, Tt = !1, Et = null, Dt = null, S = re, C = "";
1216
+ }, t.isValidAttribute = function(e, t, n) {
1217
+ en || rn({});
1218
+ let r = J(e), i = J(t);
1219
+ return On(r, i, n);
1220
+ }, t.addHook = function(e, t) {
1221
+ typeof t == "function" && D(E, e) && be(E[e], t);
1222
+ }, t.removeHook = function(e, t) {
1223
+ if (D(E, e)) {
1224
+ if (t !== void 0) {
1225
+ let n = ve(E[e], t);
1226
+ return n === -1 ? void 0 : xe(E[e], n, 1)[0];
1227
+ }
1228
+ return ye(E[e]);
1229
+ }
1230
+ }, t.removeHooks = function(e) {
1231
+ D(E, e) && (E[e] = []);
1232
+ }, t.removeAllHooks = function() {
1233
+ E = mt();
1234
+ }, t;
1235
+ }
1236
+ var _t = gt(), vt = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, F = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, yt = /\s/, I = /* @__PURE__ */ n((e) => {
1237
+ let t = "", n = 0, r = 0;
1238
+ for (; r < e.length;) {
1239
+ let i = e.indexOf("%%", r);
1240
+ if (i === -1) break;
1241
+ let a = e.indexOf("\n", i);
1242
+ if (a === -1) break;
1243
+ let o = i;
1244
+ for (; o > n && yt.test(e[o - 1]);) o--;
1245
+ t += e.slice(n, o) + "\n", n = a + 1, r = n;
1246
+ }
1247
+ return t + e.slice(n);
1248
+ }, "stripAnyComments"), bt = class extends Error {
1249
+ static {
1250
+ n(this, "UnknownDiagramError");
1251
+ }
1252
+ constructor(e) {
1253
+ super(e), this.name = "UnknownDiagramError";
1254
+ }
1255
+ }, L = {}, xt = /* @__PURE__ */ n(function(e, t) {
1256
+ e = I(e.replace(vt, "").replace(F, ""));
1257
+ for (let [n, { detector: r }] of Object.entries(L)) if (r(e, t)) return n;
1258
+ throw new bt(`No diagram type detected matching given configuration for text: ${e}`);
1259
+ }, "detectType"), St = /* @__PURE__ */ n((...e) => {
1260
+ for (let { id: t, detector: n, loader: r } of e) R(t, n, r);
1261
+ }, "registerLazyLoadedDiagrams"), R = /* @__PURE__ */ n((t, n, r) => {
1262
+ L[t] && e.warn(`Detector with key ${t} already exists. Overwriting.`), L[t] = {
1263
+ detector: n,
1264
+ loader: r
1265
+ }, e.debug(`Detector with key ${t} added${r ? " with loader" : ""}`);
1266
+ }, "addDetector"), Ct = /* @__PURE__ */ n((e) => L[e].loader, "getDiagramLoader"), wt = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
1267
+ let r = { depth: n };
1268
+ if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => wt(e, t, r)), e;
1269
+ if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1270
+ e.includes(t) || e.push(t);
1271
+ }), e;
1272
+ if (e == null || n <= 0) return typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t;
1273
+ if (t != null && typeof e == "object" && typeof t == "object") {
1274
+ let r = e;
1275
+ Object.entries(t).forEach(([t, i]) => {
1276
+ if (typeof i == "object") {
1277
+ if (i === null) return;
1278
+ Object.hasOwn(e, t) || Object.defineProperty(e, t, {
1279
+ value: void 0,
1280
+ writable: !0,
1281
+ enumerable: !0,
1282
+ configurable: !0
1283
+ }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = wt(r[t], i, { depth: n - 1 }));
1284
+ } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1285
+ value: i,
1286
+ writable: !0,
1287
+ enumerable: !0,
1288
+ configurable: !0
1289
+ }));
1290
+ });
1291
+ }
1292
+ return e;
1293
+ }, "assignWithDepth"), z = wt, B = "#ffffff", V = "#f2f2f2", H = /* @__PURE__ */ n((e, t) => t ? x(e, {
1294
+ s: -40,
1295
+ l: 10
1296
+ }) : x(e, {
1297
+ s: -40,
1298
+ l: -10
1299
+ }), "mkBorder"), U = class {
1300
+ static {
1301
+ n(this, "Theme");
1302
+ }
1303
+ constructor() {
1304
+ 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))";
1305
+ }
1306
+ updateColors() {
1307
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1308
+ h: 180,
1309
+ l: 5
1310
+ }), 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 || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(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 || y(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 || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1311
+ h: 210,
1312
+ l: 150
1313
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1314
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1315
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1316
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1317
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1318
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1319
+ let e = this.darkMode ? -4 : -1;
1320
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1321
+ h: 180,
1322
+ s: -15,
1323
+ l: e * (5 + t * 3)
1324
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1325
+ h: 180,
1326
+ s: -15,
1327
+ l: e * (8 + t * 3)
1328
+ });
1329
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1330
+ h: 60,
1331
+ l: -10
1332
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1333
+ h: -60,
1334
+ l: -10
1335
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1336
+ h: 120,
1337
+ l: 0
1338
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1339
+ h: 60,
1340
+ l: -20
1341
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1342
+ h: -60,
1343
+ l: -20
1344
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1345
+ h: 120,
1346
+ l: -10
1347
+ }), 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 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1348
+ h: 60,
1349
+ l: -30
1350
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1351
+ h: -60,
1352
+ l: -30
1353
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1354
+ h: 60,
1355
+ l: -30
1356
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1357
+ h: 120,
1358
+ l: -30
1359
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1360
+ h: 120,
1361
+ l: -30
1362
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1363
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1364
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1365
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1366
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1367
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1368
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1369
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1370
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1371
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1372
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1373
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1374
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1375
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1376
+ textColor: this.cynefin?.textColor || this.textColor,
1377
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1378
+ }, this.radar = {
1379
+ axisColor: this.radar?.axisColor || this.lineColor,
1380
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1381
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1382
+ curveOpacity: this.radar?.curveOpacity || .5,
1383
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1384
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1385
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1386
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1387
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1388
+ legendFontSize: this.radar?.legendFontSize || 12
1389
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1390
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1391
+ axisColor: this.wardley?.axisColor || this.lineColor,
1392
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1393
+ gridColor: this.wardley?.gridColor || this.gridColor,
1394
+ componentFill: this.wardley?.componentFill || this.background,
1395
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1396
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1397
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1398
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1399
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1400
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1401
+ annotationFill: this.wardley?.annotationFill || this.background
1402
+ }, 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 || x(this.primaryColor, {
1403
+ r: 5,
1404
+ g: 5,
1405
+ b: 5
1406
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1407
+ r: 10,
1408
+ g: 10,
1409
+ b: 10
1410
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1411
+ r: 15,
1412
+ g: 15,
1413
+ b: 15
1414
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1415
+ r: -5,
1416
+ g: -5,
1417
+ b: -5
1418
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1419
+ r: -10,
1420
+ g: -10,
1421
+ b: -10
1422
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1423
+ r: -15,
1424
+ g: -15,
1425
+ b: -15
1426
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1427
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1428
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1429
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1430
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1431
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1432
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1433
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1434
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1435
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1436
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1437
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1438
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1439
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1440
+ }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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;
1441
+ }
1442
+ calculate(e) {
1443
+ if (typeof e != "object") {
1444
+ this.updateColors();
1445
+ return;
1446
+ }
1447
+ let t = Object.keys(e);
1448
+ t.forEach((t) => {
1449
+ this[t] = e[t];
1450
+ }), this.updateColors(), t.forEach((t) => {
1451
+ this[t] = e[t];
1452
+ }), Object.hasOwn(e, "nodeBorder") && !Object.hasOwn(e, "useGradient") && (this.useGradient = !1);
1453
+ }
1454
+ }, Tt = /* @__PURE__ */ n((e) => {
1455
+ let t = new U();
1456
+ return t.calculate(e), t;
1457
+ }, "getThemeVariables"), Et = class {
1458
+ static {
1459
+ n(this, "Theme");
1460
+ }
1461
+ constructor() {
1462
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = h(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 = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = h(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = h(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 || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(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";
1463
+ }
1464
+ updateColors() {
1465
+ this.secondBkg = y(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 = y(this.labelBackground, 25), this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 = y(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 = S(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
1466
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1467
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1468
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1469
+ h: 30,
1470
+ s: -30,
1471
+ l: -(-10 + e * 4)
1472
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1473
+ h: 30,
1474
+ s: -30,
1475
+ l: -(-7 + e * 4)
1476
+ });
1477
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1478
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1479
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1480
+ 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";
1481
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? y(this["cScale" + e], 30);
1482
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1483
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1484
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1485
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1486
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1487
+ cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
1488
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1489
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1490
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1491
+ complexBg: this.cynefin?.complexBg || "#1B5E20",
1492
+ complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
1493
+ chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
1494
+ clearBg: this.cynefin?.clearBg || "#F57F17",
1495
+ confusionBg: this.cynefin?.confusionBg || "#4A148C",
1496
+ textColor: this.cynefin?.textColor || this.textColor,
1497
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1498
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1499
+ r: 5,
1500
+ g: 5,
1501
+ b: 5
1502
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1503
+ r: 10,
1504
+ g: 10,
1505
+ b: 10
1506
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1507
+ r: 15,
1508
+ g: 15,
1509
+ b: 15
1510
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1511
+ r: -5,
1512
+ g: -5,
1513
+ b: -5
1514
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1515
+ r: -10,
1516
+ g: -10,
1517
+ b: -10
1518
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1519
+ r: -15,
1520
+ g: -15,
1521
+ b: -15
1522
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1523
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1524
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1525
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1526
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1527
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1528
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1529
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1530
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1531
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1532
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1533
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1534
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1535
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1536
+ }, this.packet = {
1537
+ startByteColor: this.primaryTextColor,
1538
+ endByteColor: this.primaryTextColor,
1539
+ labelColor: this.primaryTextColor,
1540
+ titleColor: this.primaryTextColor,
1541
+ blockStrokeColor: this.primaryTextColor,
1542
+ blockFillColor: this.background
1543
+ }, this.radar = {
1544
+ axisColor: this.radar?.axisColor || this.lineColor,
1545
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1546
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1547
+ curveOpacity: this.radar?.curveOpacity || .5,
1548
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1549
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1550
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1551
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1552
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1553
+ legendFontSize: this.radar?.legendFontSize || 12
1554
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
1555
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1556
+ axisColor: this.wardley?.axisColor || this.lineColor,
1557
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1558
+ gridColor: this.wardley?.gridColor || this.gridColor,
1559
+ componentFill: this.wardley?.componentFill || this.mainBkg,
1560
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1561
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1562
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1563
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1564
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1565
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1566
+ annotationFill: this.wardley?.annotationFill || this.mainBkg
1567
+ }, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = y(this.secondaryColor, 20), this.git1 = y(this.pie2 || this.secondaryColor, 20), this.git2 = y(this.pie3 || this.tertiaryColor, 20), this.git3 = y(this.pie4 || x(this.primaryColor, { h: -30 }), 20), this.git4 = y(this.pie5 || x(this.primaryColor, { h: -60 }), 20), this.git5 = y(this.pie6 || x(this.primaryColor, { h: -90 }), 10), this.git6 = y(this.pie7 || x(this.primaryColor, { h: 60 }), 10), this.git7 = y(this.pie8 || x(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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 || y("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || y("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || y("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || y("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || y(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || y(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || y(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || y(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1568
+ }
1569
+ calculate(e) {
1570
+ if (typeof e != "object") {
1571
+ this.updateColors();
1572
+ return;
1573
+ }
1574
+ let t = Object.keys(e);
1575
+ t.forEach((t) => {
1576
+ this[t] = e[t];
1577
+ }), this.updateColors(), t.forEach((t) => {
1578
+ this[t] = e[t];
1579
+ });
1580
+ }
1581
+ }, Dt = /* @__PURE__ */ n((e) => {
1582
+ let t = new Et();
1583
+ return t.calculate(e), t;
1584
+ }, "getThemeVariables"), Ot = class {
1585
+ static {
1586
+ n(this, "Theme");
1587
+ }
1588
+ constructor() {
1589
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(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 = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(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 = h(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();
1590
+ }
1591
+ updateColors() {
1592
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
1593
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
1594
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1595
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1596
+ h: 30,
1597
+ l: -(5 + e * 5)
1598
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1599
+ h: 30,
1600
+ l: -(7 + e * 5)
1601
+ });
1602
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1603
+ this.cScaleLabel0 = this.cScaleLabel0 || S(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || S(this.labelTextColor);
1604
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1605
+ }
1606
+ 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || y(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || x(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1607
+ h: 60,
1608
+ l: -20
1609
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1610
+ h: -60,
1611
+ l: -40
1612
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1613
+ h: 120,
1614
+ l: -40
1615
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1616
+ h: 60,
1617
+ l: -40
1618
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1619
+ h: -90,
1620
+ l: -40
1621
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1622
+ h: 120,
1623
+ l: -30
1624
+ }), 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 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1625
+ h: 60,
1626
+ l: -30
1627
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1628
+ h: -60,
1629
+ l: -30
1630
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1631
+ h: 60,
1632
+ l: -30
1633
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1634
+ h: 120,
1635
+ l: -30
1636
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1637
+ h: 120,
1638
+ l: -30
1639
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1640
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1641
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1642
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1643
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1644
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1645
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1646
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1647
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1648
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1649
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1650
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1651
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1652
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1653
+ textColor: this.cynefin?.textColor || this.textColor,
1654
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1655
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1656
+ r: 5,
1657
+ g: 5,
1658
+ b: 5
1659
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1660
+ r: 10,
1661
+ g: 10,
1662
+ b: 10
1663
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1664
+ r: 15,
1665
+ g: 15,
1666
+ b: 15
1667
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1668
+ r: -5,
1669
+ g: -5,
1670
+ b: -5
1671
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1672
+ r: -10,
1673
+ g: -10,
1674
+ b: -10
1675
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1676
+ r: -15,
1677
+ g: -15,
1678
+ b: -15
1679
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1680
+ axisColor: this.radar?.axisColor || this.lineColor,
1681
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1682
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1683
+ curveOpacity: this.radar?.curveOpacity || .5,
1684
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1685
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1686
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1687
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1688
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1689
+ legendFontSize: this.radar?.legendFontSize || 12
1690
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1691
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1692
+ axisColor: this.wardley?.axisColor || this.lineColor,
1693
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1694
+ gridColor: this.wardley?.gridColor || this.gridColor,
1695
+ componentFill: this.wardley?.componentFill || this.background,
1696
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1697
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1698
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1699
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1700
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1701
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1702
+ annotationFill: this.wardley?.annotationFill || this.background
1703
+ }, this.xyChart = {
1704
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1705
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1706
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1707
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1708
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1709
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1710
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1711
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1712
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1713
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1714
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1715
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1716
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1717
+ }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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;
1718
+ }
1719
+ calculate(e) {
1720
+ if (Object.keys(this).forEach((e) => {
1721
+ this[e] === "calculated" && (this[e] = void 0);
1722
+ }), typeof e != "object") {
1723
+ this.updateColors();
1724
+ return;
1725
+ }
1726
+ let t = Object.keys(e);
1727
+ t.forEach((t) => {
1728
+ this[t] = e[t];
1729
+ }), this.updateColors(), t.forEach((t) => {
1730
+ this[t] = e[t];
1731
+ });
1732
+ }
1733
+ }, W = /* @__PURE__ */ n((e) => {
1734
+ let t = new Ot();
1735
+ return t.calculate(e), t;
1736
+ }, "getThemeVariables"), kt = class {
1737
+ static {
1738
+ n(this, "Theme");
1739
+ }
1740
+ constructor() {
1741
+ 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 = y("#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 = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(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))";
1742
+ }
1743
+ updateColors() {
1744
+ this.actorBorder = b(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
1745
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
1746
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1747
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1748
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1749
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1750
+ h: 30,
1751
+ s: -30,
1752
+ l: -(5 + e * 5)
1753
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1754
+ h: 30,
1755
+ s: -30,
1756
+ l: -(8 + e * 5)
1757
+ });
1758
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, {
1759
+ h: 40,
1760
+ l: -40
1761
+ }), this.pie7 = this.pie7 || x(this.primaryColor, {
1762
+ h: 60,
1763
+ l: -10
1764
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
1765
+ h: -60,
1766
+ l: -10
1767
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
1768
+ h: 120,
1769
+ l: 0
1770
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
1771
+ h: 60,
1772
+ l: -50
1773
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
1774
+ h: -60,
1775
+ l: -50
1776
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
1777
+ h: 120,
1778
+ l: -50
1779
+ }), 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 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1780
+ h: 60,
1781
+ l: -30
1782
+ }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1783
+ h: -60,
1784
+ l: -30
1785
+ }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1786
+ h: 60,
1787
+ l: -30
1788
+ }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1789
+ h: 120,
1790
+ l: -30
1791
+ }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1792
+ h: 120,
1793
+ l: -30
1794
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1795
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1796
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1797
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1798
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1799
+ cliffColor: this.cynefin?.cliffColor || "#8B4513",
1800
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1801
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1802
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1803
+ complexBg: this.cynefin?.complexBg || "#C8E6C9",
1804
+ complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
1805
+ chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
1806
+ clearBg: this.cynefin?.clearBg || "#FFF9C4",
1807
+ confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
1808
+ textColor: this.cynefin?.textColor || this.textColor,
1809
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1810
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1811
+ r: 5,
1812
+ g: 5,
1813
+ b: 5
1814
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1815
+ r: 10,
1816
+ g: 10,
1817
+ b: 10
1818
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1819
+ r: 15,
1820
+ g: 15,
1821
+ b: 15
1822
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1823
+ r: -5,
1824
+ g: -5,
1825
+ b: -5
1826
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1827
+ r: -10,
1828
+ g: -10,
1829
+ b: -10
1830
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1831
+ r: -15,
1832
+ g: -15,
1833
+ b: -15
1834
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1835
+ startByteColor: this.primaryTextColor,
1836
+ endByteColor: this.primaryTextColor,
1837
+ labelColor: this.primaryTextColor,
1838
+ titleColor: this.primaryTextColor,
1839
+ blockStrokeColor: this.primaryTextColor,
1840
+ blockFillColor: this.mainBkg
1841
+ }, this.radar = {
1842
+ axisColor: this.radar?.axisColor || this.lineColor,
1843
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1844
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1845
+ curveOpacity: this.radar?.curveOpacity || .5,
1846
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1847
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1848
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1849
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1850
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1851
+ legendFontSize: this.radar?.legendFontSize || 12
1852
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1853
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1854
+ axisColor: this.wardley?.axisColor || this.lineColor,
1855
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1856
+ gridColor: this.wardley?.gridColor || this.gridColor,
1857
+ componentFill: this.wardley?.componentFill || this.background,
1858
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1859
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1860
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1861
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1862
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1863
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1864
+ annotationFill: this.wardley?.annotationFill || this.background
1865
+ }, this.xyChart = {
1866
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1867
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1868
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1869
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1870
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1871
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1872
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1873
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1874
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1875
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1876
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1877
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1878
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1879
+ }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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;
1880
+ }
1881
+ calculate(e) {
1882
+ if (typeof e != "object") {
1883
+ this.updateColors();
1884
+ return;
1885
+ }
1886
+ let t = Object.keys(e);
1887
+ t.forEach((t) => {
1888
+ this[t] = e[t];
1889
+ }), this.updateColors(), t.forEach((t) => {
1890
+ this[t] = e[t];
1891
+ });
1892
+ }
1893
+ }, At = /* @__PURE__ */ n((e) => {
1894
+ let t = new kt();
1895
+ return t.calculate(e), t;
1896
+ }, "getThemeVariables"), jt = class {
1897
+ static {
1898
+ n(this, "Theme");
1899
+ }
1900
+ constructor() {
1901
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(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 = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(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 || y(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))";
1902
+ }
1903
+ updateColors() {
1904
+ this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(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";
1905
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1906
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1907
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1908
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1909
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { l: -(8 + e * 5) });
1910
+ 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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, this.sectionBkgColor = y(this.contrast, 30), this.sectionBkgColor2 = y(this.contrast, 30), this.taskBorderColor = b(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 = y(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = b(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 });
1911
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1912
+ 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";
1913
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1914
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1915
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1916
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1917
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1918
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1919
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1920
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1921
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1922
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1923
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1924
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1925
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1926
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1927
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1928
+ textColor: this.cynefin?.textColor || this.textColor,
1929
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1930
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1931
+ r: 5,
1932
+ g: 5,
1933
+ b: 5
1934
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1935
+ r: 10,
1936
+ g: 10,
1937
+ b: 10
1938
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1939
+ r: 15,
1940
+ g: 15,
1941
+ b: 15
1942
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1943
+ r: -5,
1944
+ g: -5,
1945
+ b: -5
1946
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1947
+ r: -10,
1948
+ g: -10,
1949
+ b: -10
1950
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1951
+ r: -15,
1952
+ g: -15,
1953
+ b: -15
1954
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1955
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1956
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1957
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1958
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
1959
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1960
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1961
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1962
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1963
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1964
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1965
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1966
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1967
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1968
+ }, this.radar = {
1969
+ axisColor: this.radar?.axisColor || this.lineColor,
1970
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1971
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1972
+ curveOpacity: this.radar?.curveOpacity || .5,
1973
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1974
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1975
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1976
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1977
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1978
+ legendFontSize: this.radar?.legendFontSize || 12
1979
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1980
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1981
+ axisColor: this.wardley?.axisColor || this.lineColor,
1982
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1983
+ gridColor: this.wardley?.gridColor || this.gridColor,
1984
+ componentFill: this.wardley?.componentFill || this.background,
1985
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
1986
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1987
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
1988
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1989
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1990
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1991
+ annotationFill: this.wardley?.annotationFill || this.background
1992
+ }, 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 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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;
1993
+ }
1994
+ calculate(e) {
1995
+ if (typeof e != "object") {
1996
+ this.updateColors();
1997
+ return;
1998
+ }
1999
+ let t = Object.keys(e);
2000
+ t.forEach((t) => {
2001
+ this[t] = e[t];
2002
+ }), this.updateColors(), t.forEach((t) => {
2003
+ this[t] = e[t];
2004
+ });
2005
+ }
2006
+ }, Mt = /* @__PURE__ */ n((e) => {
2007
+ let t = new jt();
2008
+ return t.calculate(e), t;
2009
+ }, "getThemeVariables"), Nt = class {
2010
+ static {
2011
+ n(this, "Theme");
2012
+ }
2013
+ constructor() {
2014
+ 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";
2015
+ }
2016
+ updateColors() {
2017
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2018
+ h: 180,
2019
+ l: 5
2020
+ }), 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 || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
2021
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2022
+ h: 180,
2023
+ l: 5
2024
+ });
2025
+ 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 || y(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 || x(e, { h: 30 }), this.cScale4 = this.cScale4 || x(e, { h: 60 }), this.cScale5 = this.cScale5 || x(e, { h: 90 }), this.cScale6 = this.cScale6 || x(e, { h: 120 }), this.cScale7 = this.cScale7 || x(e, { h: 150 }), this.cScale8 = this.cScale8 || x(e, {
2026
+ h: 210,
2027
+ l: 150
2028
+ }), this.cScale9 = this.cScale9 || x(e, { h: 270 }), this.cScale10 = this.cScale10 || x(e, { h: 300 }), this.cScale11 = this.cScale11 || x(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2029
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2030
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2031
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2032
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2033
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2034
+ let r = this.darkMode ? -4 : -1;
2035
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2036
+ h: 180,
2037
+ s: -15,
2038
+ l: r * (5 + e * 3)
2039
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2040
+ h: 180,
2041
+ s: -15,
2042
+ l: r * (8 + e * 3)
2043
+ });
2044
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
2045
+ h: 60,
2046
+ l: -10
2047
+ }), this.pie8 = this.pie8 || x(e, {
2048
+ h: -60,
2049
+ l: -10
2050
+ }), this.pie9 = this.pie9 || x(e, {
2051
+ h: 120,
2052
+ l: 0
2053
+ }), this.pie10 = this.pie10 || x(e, {
2054
+ h: 60,
2055
+ l: -20
2056
+ }), this.pie11 = this.pie11 || x(e, {
2057
+ h: -60,
2058
+ l: -20
2059
+ }), this.pie12 = this.pie12 || x(e, {
2060
+ h: 120,
2061
+ l: -10
2062
+ }), 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 || x(e, {
2063
+ r: 5,
2064
+ g: 5,
2065
+ b: 5
2066
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2067
+ r: 10,
2068
+ g: 10,
2069
+ b: 10
2070
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2071
+ r: 15,
2072
+ g: 15,
2073
+ b: 15
2074
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2075
+ r: -5,
2076
+ g: -5,
2077
+ b: -5
2078
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2079
+ r: -10,
2080
+ g: -10,
2081
+ b: -10
2082
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2083
+ r: -15,
2084
+ g: -15,
2085
+ b: -15
2086
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2087
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2088
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2089
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2090
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2091
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2092
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2093
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2094
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2095
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2096
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2097
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2098
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2099
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(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 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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;
2100
+ }
2101
+ calculate(e) {
2102
+ if (typeof e != "object") {
2103
+ this.updateColors();
2104
+ return;
2105
+ }
2106
+ let t = Object.keys(e);
2107
+ t.forEach((t) => {
2108
+ this[t] = e[t];
2109
+ }), this.updateColors(), t.forEach((t) => {
2110
+ this[t] = e[t];
2111
+ });
2112
+ }
2113
+ }, Pt = /* @__PURE__ */ n((e) => {
2114
+ let t = new Nt();
2115
+ return t.calculate(e), t;
2116
+ }, "getThemeVariables"), Ft = class {
2117
+ static {
2118
+ n(this, "Theme");
2119
+ }
2120
+ constructor() {
2121
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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";
2122
+ }
2123
+ updateColors() {
2124
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2125
+ h: 180,
2126
+ l: 5
2127
+ }), 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 || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(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 || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2128
+ h: 210,
2129
+ l: 150
2130
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2131
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2132
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2133
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2134
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2135
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2136
+ let e = this.darkMode ? -4 : -1;
2137
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2138
+ h: 180,
2139
+ s: -15,
2140
+ l: e * (5 + t * 3)
2141
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2142
+ h: 180,
2143
+ s: -15,
2144
+ l: e * (8 + t * 3)
2145
+ });
2146
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2147
+ h: 60,
2148
+ l: -10
2149
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2150
+ h: -60,
2151
+ l: -10
2152
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2153
+ h: 120,
2154
+ l: 0
2155
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2156
+ h: 60,
2157
+ l: -20
2158
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2159
+ h: -60,
2160
+ l: -20
2161
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2162
+ h: 120,
2163
+ l: -10
2164
+ }), 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 || x(this.primaryColor, {
2165
+ r: 5,
2166
+ g: 5,
2167
+ b: 5
2168
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2169
+ r: 10,
2170
+ g: 10,
2171
+ b: 10
2172
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2173
+ r: 15,
2174
+ g: 15,
2175
+ b: 15
2176
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2177
+ r: -5,
2178
+ g: -5,
2179
+ b: -5
2180
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2181
+ r: -10,
2182
+ g: -10,
2183
+ b: -10
2184
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2185
+ r: -15,
2186
+ g: -15,
2187
+ b: -15
2188
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2189
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2190
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2191
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2192
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2193
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2194
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2195
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2196
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2197
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2198
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2199
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2200
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2201
+ }, 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 ? b(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 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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;
2202
+ }
2203
+ calculate(e) {
2204
+ if (typeof e != "object") {
2205
+ this.updateColors();
2206
+ return;
2207
+ }
2208
+ let t = Object.keys(e);
2209
+ t.forEach((t) => {
2210
+ this[t] = e[t];
2211
+ }), this.updateColors(), t.forEach((t) => {
2212
+ this[t] = e[t];
2213
+ });
2214
+ }
2215
+ }, It = /* @__PURE__ */ n((e) => {
2216
+ let t = new Ft();
2217
+ return t.calculate(e), t;
2218
+ }, "getThemeVariables"), Lt = class {
2219
+ static {
2220
+ n(this, "Theme");
2221
+ }
2222
+ constructor() {
2223
+ 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";
2224
+ }
2225
+ updateColors() {
2226
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2227
+ h: 180,
2228
+ l: 5
2229
+ }), 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 || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
2230
+ let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2231
+ h: 180,
2232
+ l: 5
2233
+ });
2234
+ 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 || y(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;
2235
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
2236
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2237
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2238
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2239
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2240
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2241
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2242
+ let r = this.darkMode ? -4 : -1;
2243
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2244
+ h: 180,
2245
+ s: -15,
2246
+ l: r * (5 + e * 3)
2247
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2248
+ h: 180,
2249
+ s: -15,
2250
+ l: r * (8 + e * 3)
2251
+ });
2252
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
2253
+ h: 60,
2254
+ l: -10
2255
+ }), this.pie8 = this.pie8 || x(e, {
2256
+ h: -60,
2257
+ l: -10
2258
+ }), this.pie9 = this.pie9 || x(e, {
2259
+ h: 120,
2260
+ l: 0
2261
+ }), this.pie10 = this.pie10 || x(e, {
2262
+ h: 60,
2263
+ l: -20
2264
+ }), this.pie11 = this.pie11 || x(e, {
2265
+ h: -60,
2266
+ l: -20
2267
+ }), this.pie12 = this.pie12 || x(e, {
2268
+ h: 120,
2269
+ l: -10
2270
+ }), 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 || x(e, {
2271
+ r: 5,
2272
+ g: 5,
2273
+ b: 5
2274
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2275
+ r: 10,
2276
+ g: 10,
2277
+ b: 10
2278
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2279
+ r: 15,
2280
+ g: 15,
2281
+ b: 15
2282
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2283
+ r: -5,
2284
+ g: -5,
2285
+ b: -5
2286
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2287
+ r: -10,
2288
+ g: -10,
2289
+ b: -10
2290
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2291
+ r: -15,
2292
+ g: -15,
2293
+ b: -15
2294
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2295
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2296
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2297
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2298
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2299
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2300
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2301
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2302
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2303
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2304
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2305
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2306
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2307
+ }, 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 ? b(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 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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;
2308
+ }
2309
+ calculate(e) {
2310
+ if (typeof e != "object") {
2311
+ this.updateColors();
2312
+ return;
2313
+ }
2314
+ let t = Object.keys(e);
2315
+ t.forEach((t) => {
2316
+ this[t] = e[t];
2317
+ }), this.updateColors(), t.forEach((t) => {
2318
+ this[t] = e[t];
2319
+ });
2320
+ }
2321
+ }, Rt = /* @__PURE__ */ n((e) => {
2322
+ let t = new Lt();
2323
+ return t.calculate(e), t;
2324
+ }, "getThemeVariables"), zt = class {
2325
+ static {
2326
+ n(this, "Theme");
2327
+ }
2328
+ constructor() {
2329
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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";
2330
+ }
2331
+ updateColors() {
2332
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2333
+ h: 180,
2334
+ l: 5
2335
+ }), 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 || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(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 || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2336
+ h: 210,
2337
+ l: 150
2338
+ }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2339
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2340
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2341
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2342
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2343
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2344
+ let e = this.darkMode ? -4 : -1;
2345
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2346
+ h: 180,
2347
+ s: -15,
2348
+ l: e * (5 + t * 3)
2349
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2350
+ h: 180,
2351
+ s: -15,
2352
+ l: e * (8 + t * 3)
2353
+ });
2354
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2355
+ h: 60,
2356
+ l: -10
2357
+ }), this.pie8 = this.pie8 || x(this.primaryColor, {
2358
+ h: -60,
2359
+ l: -10
2360
+ }), this.pie9 = this.pie9 || x(this.primaryColor, {
2361
+ h: 120,
2362
+ l: 0
2363
+ }), this.pie10 = this.pie10 || x(this.primaryColor, {
2364
+ h: 60,
2365
+ l: -20
2366
+ }), this.pie11 = this.pie11 || x(this.primaryColor, {
2367
+ h: -60,
2368
+ l: -20
2369
+ }), this.pie12 = this.pie12 || x(this.primaryColor, {
2370
+ h: 120,
2371
+ l: -10
2372
+ }), 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 || x(this.primaryColor, {
2373
+ r: 5,
2374
+ g: 5,
2375
+ b: 5
2376
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2377
+ r: 10,
2378
+ g: 10,
2379
+ b: 10
2380
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2381
+ r: 15,
2382
+ g: 15,
2383
+ b: 15
2384
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2385
+ r: -5,
2386
+ g: -5,
2387
+ b: -5
2388
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2389
+ r: -10,
2390
+ g: -10,
2391
+ b: -10
2392
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2393
+ r: -15,
2394
+ g: -15,
2395
+ b: -15
2396
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2397
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2398
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2399
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2400
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2401
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2402
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2403
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2404
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2405
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2406
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2407
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2408
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2409
+ }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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;
2410
+ }
2411
+ calculate(e) {
2412
+ if (typeof e != "object") {
2413
+ this.updateColors();
2414
+ return;
2415
+ }
2416
+ let t = Object.keys(e);
2417
+ t.forEach((t) => {
2418
+ this[t] = e[t];
2419
+ }), this.updateColors(), t.forEach((t) => {
2420
+ this[t] = e[t];
2421
+ });
2422
+ }
2423
+ }, Bt = /* @__PURE__ */ n((e) => {
2424
+ let t = new zt();
2425
+ return t.calculate(e), t;
2426
+ }, "getThemeVariables"), Vt = class {
2427
+ static {
2428
+ n(this, "Theme");
2429
+ }
2430
+ constructor() {
2431
+ 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.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2432
+ "#E879F9",
2433
+ "#2DD4BF",
2434
+ "#FB923C",
2435
+ "#22D3EE",
2436
+ "#4ADE80",
2437
+ "#A78BFA",
2438
+ "#F87171",
2439
+ "#FACC15",
2440
+ "#818CF8",
2441
+ "#A3E635 ",
2442
+ "#38BDF8",
2443
+ "#FB7185"
2444
+ ], this.bkgColorArray = [
2445
+ "#FDF4FF",
2446
+ "#F0FDFA",
2447
+ "#FFF7ED",
2448
+ "#ECFEFF",
2449
+ "#F0FDF4",
2450
+ "#F5F3FF",
2451
+ "#FEF2F2",
2452
+ "#FEFCE8",
2453
+ "#EEF2FF",
2454
+ "#F7FEE7",
2455
+ "#F0F9FF",
2456
+ "#FFF1F2"
2457
+ ], this.usecaseActorBorder = "#A78BFA", this.usecaseActorBkg = "#F5F3FF", this.usecaseBorder = "#2DD4BF", this.usecaseBkg = "#F0FDFA", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseBoundaryBkg = "#FAFAFC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#000000";
2458
+ }
2459
+ updateColors() {
2460
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2461
+ h: 180,
2462
+ l: 5
2463
+ }), 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 || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
2464
+ let e = "#ECECFE", t = x(e, {
2465
+ h: 180,
2466
+ l: 5
2467
+ });
2468
+ 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 || y(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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#FFFFFF", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#F9F9FB", this.compositeTitleBackground = this.compositeTitleBackground || "#F9F9FB", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || "white";
2469
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2470
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2471
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2472
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2473
+ let n = this.darkMode ? -4 : -1;
2474
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2475
+ h: 180,
2476
+ s: -15,
2477
+ l: n * (5 + e * 3)
2478
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2479
+ h: 180,
2480
+ s: -15,
2481
+ l: n * (8 + e * 3)
2482
+ });
2483
+ this.classText = this.classText || this.textColor;
2484
+ for (let e = 0; e < 8; e++) this["fillType" + e] = this["fillType" + e] || this.bkgColorArray[e];
2485
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
2486
+ 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";
2487
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
2488
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2489
+ r: 5,
2490
+ g: 5,
2491
+ b: 5
2492
+ }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2493
+ r: 10,
2494
+ g: 10,
2495
+ b: 10
2496
+ }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2497
+ r: 15,
2498
+ g: 15,
2499
+ b: 15
2500
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2501
+ r: -5,
2502
+ g: -5,
2503
+ b: -5
2504
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2505
+ r: -10,
2506
+ g: -10,
2507
+ b: -10
2508
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2509
+ r: -15,
2510
+ g: -15,
2511
+ b: -15
2512
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2513
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2514
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2515
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2516
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2517
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2518
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2519
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2520
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2521
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2522
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2523
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2524
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2525
+ }, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || "#E9E9F1", this.git2 = this.git2 || t, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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;
2526
+ }
2527
+ calculate(e) {
2528
+ if (typeof e != "object") {
2529
+ this.updateColors();
2530
+ return;
2531
+ }
2532
+ let t = Object.keys(e);
2533
+ t.forEach((t) => {
2534
+ this[t] = e[t];
2535
+ }), this.updateColors(), t.forEach((t) => {
2536
+ this[t] = e[t];
2537
+ });
2538
+ }
2539
+ }, Ht = /* @__PURE__ */ n((e) => {
2540
+ let t = new Vt();
2541
+ return t.calculate(e), t;
2542
+ }, "getThemeVariables"), Ut = class {
2543
+ static {
2544
+ n(this, "Theme");
2545
+ }
2546
+ constructor() {
2547
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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 = [
2548
+ "#E879F9",
2549
+ "#2DD4BF",
2550
+ "#FB923C",
2551
+ "#22D3EE",
2552
+ "#4ADE80",
2553
+ "#A78BFA",
2554
+ "#F87171",
2555
+ "#FACC15",
2556
+ "#818CF8",
2557
+ "#A3E635 ",
2558
+ "#38BDF8",
2559
+ "#FB7185"
2560
+ ], this.bkgColorArray = [], this.usecaseActorBorder = "#A78BFA", this.usecaseBorder = "#2DD4BF", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#FFFFFF";
2561
+ }
2562
+ updateColors() {
2563
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2564
+ h: 180,
2565
+ l: 5
2566
+ }), 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 || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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.secondBkg = this.secondBkg === "calculated" ? y(this.mainBkg, 16) : this.secondBkg, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", 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 || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#16141F", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || "#16141F", this.altBackground = this.altBackground || "#16141F", this.compositeTitleBackground = this.compositeTitleBackground || "#16141F", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || this.background;
2567
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2568
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2569
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2570
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
2571
+ let e = this.darkMode ? -4 : -1;
2572
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2573
+ h: 180,
2574
+ s: -15,
2575
+ l: e * (5 + t * 3)
2576
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2577
+ h: 180,
2578
+ s: -15,
2579
+ l: e * (8 + t * 3)
2580
+ });
2581
+ this.classText = this.classText || this.textColor, [
2582
+ "#701a75",
2583
+ "#134e4a",
2584
+ "#7c2d12",
2585
+ "#581c87",
2586
+ "#14532d",
2587
+ "#4c1d95",
2588
+ "#7f1d1d",
2589
+ "#713f12"
2590
+ ].forEach((e, t) => {
2591
+ this["fillType" + t] = this["fillType" + t] || e;
2592
+ });
2593
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
2594
+ this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || "#28253D", 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";
2595
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
2596
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2597
+ r: 5,
2598
+ g: 5,
2599
+ b: 5
2600
+ }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2601
+ r: 10,
2602
+ g: 10,
2603
+ b: 10
2604
+ }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2605
+ r: 15,
2606
+ g: 15,
2607
+ b: 15
2608
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2609
+ r: -5,
2610
+ g: -5,
2611
+ b: -5
2612
+ }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2613
+ r: -10,
2614
+ g: -10,
2615
+ b: -10
2616
+ }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2617
+ r: -15,
2618
+ g: -15,
2619
+ b: -15
2620
+ }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2621
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2622
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2623
+ legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
2624
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2625
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2626
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2627
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2628
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2629
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2630
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2631
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2632
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2633
+ }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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;
2634
+ }
2635
+ calculate(e) {
2636
+ if (typeof e != "object") {
2637
+ this.updateColors();
2638
+ return;
2639
+ }
2640
+ let t = Object.keys(e);
2641
+ t.forEach((t) => {
2642
+ this[t] = e[t];
2643
+ }), this.updateColors(), t.forEach((t) => {
2644
+ this[t] = e[t];
2645
+ });
2646
+ }
2647
+ }, G = {
2648
+ base: { getThemeVariables: Tt },
2649
+ dark: { getThemeVariables: Dt },
2650
+ default: { getThemeVariables: W },
2651
+ forest: { getThemeVariables: At },
2652
+ neutral: { getThemeVariables: Mt },
2653
+ neo: { getThemeVariables: Pt },
2654
+ "neo-dark": { getThemeVariables: It },
2655
+ redux: { getThemeVariables: Rt },
2656
+ "redux-dark": { getThemeVariables: Bt },
2657
+ "redux-color": { getThemeVariables: Ht },
2658
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
2659
+ let t = new Ut();
2660
+ return t.calculate(e), t;
2661
+ }, "getThemeVariables") }
2662
+ }, K = {
2663
+ flowchart: {
2664
+ useMaxWidth: !0,
2665
+ theme: "redux-color",
2666
+ look: "neo",
2667
+ titleTopMargin: 25,
2668
+ subGraphTitleMargin: {
2669
+ top: 0,
2670
+ bottom: 0
2671
+ },
2672
+ diagramPadding: 8,
2673
+ htmlLabels: null,
2674
+ nodeSpacing: 50,
2675
+ rankSpacing: 50,
2676
+ curve: "basis",
2677
+ padding: 15,
2678
+ wrappingWidth: 120,
2679
+ minNodeWidth: 120,
2680
+ inheritDir: !1
2681
+ },
2682
+ swimlane: {
2683
+ useMaxWidth: !0,
2684
+ theme: "redux-color",
2685
+ look: "neo",
2686
+ layout: "swimlane",
2687
+ lineHops: "arc",
2688
+ ignoreCrossLaneEdges: !0,
2689
+ optimizeRanksByCrossings: !0,
2690
+ automaticLaneOrdering: !1
2691
+ },
2692
+ agentflow: {
2693
+ useMaxWidth: !0,
2694
+ theme: "redux-color",
2695
+ look: "neo",
2696
+ titleTopMargin: 25,
2697
+ diagramPadding: 8,
2698
+ nodeSpacing: 50,
2699
+ rankSpacing: 50,
2700
+ wrappingWidth: 120,
2701
+ minNodeWidth: 120
2702
+ },
2703
+ sequence: {
2704
+ useMaxWidth: !0,
2705
+ theme: "redux-color",
2706
+ look: "neo",
2707
+ hideUnusedParticipants: !1,
2708
+ activationWidth: 10,
2709
+ diagramMarginX: 50,
2710
+ diagramMarginY: 10,
2711
+ actorMargin: 50,
2712
+ width: 150,
2713
+ height: 65,
2714
+ boxMargin: 10,
2715
+ boxTextMargin: 5,
2716
+ noteMargin: 10,
2717
+ messageMargin: 35,
2718
+ messageAlign: "center",
2719
+ mirrorActors: !0,
2720
+ forceMenus: !1,
2721
+ bottomMarginAdj: 1,
2722
+ rightAngles: !1,
2723
+ showSequenceNumbers: !1,
2724
+ actorFontSize: 14,
2725
+ actorFontFamily: "\"Open Sans\", sans-serif",
2726
+ actorFontWeight: 400,
2727
+ noteFontSize: 14,
2728
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2729
+ noteFontWeight: 400,
2730
+ noteAlign: "center",
2731
+ messageFontSize: 16,
2732
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2733
+ messageFontWeight: 400,
2734
+ wrap: !1,
2735
+ wrapPadding: 10,
2736
+ labelBoxWidth: 50,
2737
+ labelBoxHeight: 20
2738
+ },
2739
+ gantt: {
2740
+ useMaxWidth: !0,
2741
+ titleTopMargin: 25,
2742
+ barHeight: 20,
2743
+ barGap: 4,
2744
+ topPadding: 50,
2745
+ rightPadding: 75,
2746
+ leftPadding: 75,
2747
+ gridLineStartPadding: 35,
2748
+ fontSize: 11,
2749
+ sectionFontSize: 11,
2750
+ numberSectionStyles: 4,
2751
+ axisFormat: "%Y-%m-%d",
2752
+ topAxis: !1,
2753
+ displayMode: "",
2754
+ weekday: "sunday"
2755
+ },
2756
+ journey: {
2757
+ useMaxWidth: !0,
2758
+ diagramMarginX: 50,
2759
+ diagramMarginY: 10,
2760
+ leftMargin: 150,
2761
+ maxLabelWidth: 360,
2762
+ width: 150,
2763
+ height: 50,
2764
+ boxMargin: 10,
2765
+ boxTextMargin: 5,
2766
+ noteMargin: 10,
2767
+ messageMargin: 35,
2768
+ messageAlign: "center",
2769
+ bottomMarginAdj: 1,
2770
+ rightAngles: !1,
2771
+ taskFontSize: 14,
2772
+ taskFontFamily: "\"Open Sans\", sans-serif",
2773
+ taskMargin: 50,
2774
+ activationWidth: 10,
2775
+ textPlacement: "fo",
2776
+ actorColours: [
2777
+ "#8FBC8F",
2778
+ "#7CFC00",
2779
+ "#00FFFF",
2780
+ "#20B2AA",
2781
+ "#B0E0E6",
2782
+ "#FFFFE0"
2783
+ ],
2784
+ sectionFills: [
2785
+ "#191970",
2786
+ "#8B008B",
2787
+ "#4B0082",
2788
+ "#2F4F4F",
2789
+ "#800000",
2790
+ "#8B4513",
2791
+ "#00008B"
2792
+ ],
2793
+ sectionColours: ["#fff"],
2794
+ titleColor: "",
2795
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2796
+ titleFontSize: "4ex"
2797
+ },
2798
+ class: {
2799
+ useMaxWidth: !0,
2800
+ theme: "redux-color",
2801
+ look: "neo",
2802
+ titleTopMargin: 25,
2803
+ arrowMarkerAbsolute: !1,
2804
+ dividerMargin: 10,
2805
+ padding: 5,
2806
+ textHeight: 10,
2807
+ htmlLabels: !1,
2808
+ hideEmptyMembersBox: !1,
2809
+ hierarchicalNamespaces: !0
2810
+ },
2811
+ state: {
2812
+ useMaxWidth: !0,
2813
+ theme: "redux-color",
2814
+ look: "neo",
2815
+ layout: "elk",
2816
+ wrappingWidth: 120,
2817
+ minNodeWidth: 120,
2818
+ titleTopMargin: 25,
2819
+ dividerMargin: 10,
2820
+ sizeUnit: 5,
2821
+ padding: 8,
2822
+ textHeight: 10,
2823
+ titleShift: -15,
2824
+ noteMargin: 10,
2825
+ forkWidth: 70,
2826
+ forkHeight: 7,
2827
+ miniPadding: 2,
2828
+ fontSizeFactor: 5.02,
2829
+ fontSize: 24,
2830
+ labelHeight: 16,
2831
+ edgeLengthFactor: "20",
2832
+ compositTitleSize: 35,
2833
+ radius: 5
2834
+ },
2835
+ er: {
2836
+ useMaxWidth: !0,
2837
+ theme: "redux-color",
2838
+ look: "neo",
2839
+ titleTopMargin: 25,
2840
+ diagramPadding: 20,
2841
+ layoutDirection: "TB",
2842
+ minEntityWidth: 100,
2843
+ minEntityHeight: 75,
2844
+ entityPadding: 15,
2845
+ nodeSpacing: 140,
2846
+ rankSpacing: 80,
2847
+ stroke: "gray",
2848
+ fill: "honeydew",
2849
+ fontSize: 12
2850
+ },
2851
+ pie: {
2852
+ useMaxWidth: !0,
2853
+ textPosition: .75,
2854
+ donutHole: 0,
2855
+ legendPosition: "right",
2856
+ highlightSlice: ""
2857
+ },
2858
+ quadrantChart: {
2859
+ useMaxWidth: !0,
2860
+ chartWidth: 500,
2861
+ chartHeight: 500,
2862
+ titleFontSize: 20,
2863
+ titlePadding: 10,
2864
+ quadrantPadding: 5,
2865
+ xAxisLabelPadding: 5,
2866
+ yAxisLabelPadding: 5,
2867
+ xAxisLabelFontSize: 16,
2868
+ yAxisLabelFontSize: 16,
2869
+ quadrantLabelFontSize: 16,
2870
+ quadrantTextTopPadding: 5,
2871
+ pointTextPadding: 5,
2872
+ pointLabelFontSize: 12,
2873
+ pointRadius: 5,
2874
+ xAxisPosition: "top",
2875
+ yAxisPosition: "left",
2876
+ quadrantInternalBorderStrokeWidth: 1,
2877
+ quadrantExternalBorderStrokeWidth: 2
2878
+ },
2879
+ xyChart: {
2880
+ useMaxWidth: !0,
2881
+ width: 700,
2882
+ height: 500,
2883
+ titleFontSize: 20,
2884
+ titlePadding: 10,
2885
+ showDataLabel: !1,
2886
+ showDataLabelOutsideBar: !1,
2887
+ showTitle: !0,
2888
+ showLegend: !0,
2889
+ legendFontSize: 14,
2890
+ legendPadding: 10,
2891
+ xAxis: {
2892
+ $ref: "#/$defs/XYChartAxisConfig",
2893
+ showLabel: !0,
2894
+ labelFontSize: 14,
2895
+ labelPadding: 5,
2896
+ showTitle: !0,
2897
+ titleFontSize: 16,
2898
+ titlePadding: 5,
2899
+ showTick: !0,
2900
+ tickLength: 5,
2901
+ tickWidth: 2,
2902
+ showAxisLine: !0,
2903
+ axisLineWidth: 2,
2904
+ labelRotation: 0
2905
+ },
2906
+ yAxis: {
2907
+ $ref: "#/$defs/XYChartAxisConfig",
2908
+ showLabel: !0,
2909
+ labelFontSize: 14,
2910
+ labelPadding: 5,
2911
+ showTitle: !0,
2912
+ titleFontSize: 16,
2913
+ titlePadding: 5,
2914
+ showTick: !0,
2915
+ tickLength: 5,
2916
+ tickWidth: 2,
2917
+ showAxisLine: !0,
2918
+ axisLineWidth: 2,
2919
+ labelRotation: 0
2920
+ },
2921
+ chartOrientation: "vertical",
2922
+ plotReservedSpacePercent: 50
2923
+ },
2924
+ requirement: {
2925
+ useMaxWidth: !0,
2926
+ theme: "redux-color",
2927
+ look: "neo",
2928
+ rect_fill: "#f9f9f9",
2929
+ text_color: "#333",
2930
+ rect_border_size: "0.5px",
2931
+ rect_border_color: "#bbb",
2932
+ rect_min_width: 200,
2933
+ rect_min_height: 200,
2934
+ fontSize: 14,
2935
+ rect_padding: 10,
2936
+ line_height: 20
2937
+ },
2938
+ mindmap: {
2939
+ useMaxWidth: !0,
2940
+ padding: 10,
2941
+ maxNodeWidth: 200,
2942
+ layoutAlgorithm: "cose-bilkent"
2943
+ },
2944
+ ishikawa: {
2945
+ useMaxWidth: !0,
2946
+ diagramPadding: 20
2947
+ },
2948
+ kanban: {
2949
+ useMaxWidth: !0,
2950
+ padding: 8,
2951
+ sectionWidth: 200,
2952
+ ticketBaseUrl: ""
2953
+ },
2954
+ timeline: {
2955
+ useMaxWidth: !0,
2956
+ diagramMarginX: 50,
2957
+ diagramMarginY: 10,
2958
+ leftMargin: 150,
2959
+ width: 150,
2960
+ height: 50,
2961
+ boxMargin: 10,
2962
+ boxTextMargin: 5,
2963
+ noteMargin: 10,
2964
+ messageMargin: 35,
2965
+ messageAlign: "center",
2966
+ bottomMarginAdj: 1,
2967
+ rightAngles: !1,
2968
+ taskFontSize: 14,
2969
+ taskFontFamily: "\"Open Sans\", sans-serif",
2970
+ taskMargin: 50,
2971
+ activationWidth: 10,
2972
+ textPlacement: "fo",
2973
+ actorColours: [
2974
+ "#8FBC8F",
2975
+ "#7CFC00",
2976
+ "#00FFFF",
2977
+ "#20B2AA",
2978
+ "#B0E0E6",
2979
+ "#FFFFE0"
2980
+ ],
2981
+ sectionFills: [
2982
+ "#191970",
2983
+ "#8B008B",
2984
+ "#4B0082",
2985
+ "#2F4F4F",
2986
+ "#800000",
2987
+ "#8B4513",
2988
+ "#00008B"
2989
+ ],
2990
+ sectionColours: ["#fff"],
2991
+ disableMulticolor: !1
2992
+ },
2993
+ gitGraph: {
2994
+ useMaxWidth: !0,
2995
+ titleTopMargin: 25,
2996
+ diagramPadding: 8,
2997
+ nodeLabel: {
2998
+ width: 75,
2999
+ height: 100,
3000
+ x: -25,
3001
+ y: 0
3002
+ },
3003
+ mainBranchName: "main",
3004
+ mainBranchOrder: 0,
3005
+ showCommitLabel: !0,
3006
+ showBranches: !0,
3007
+ rotateCommitLabel: !0,
3008
+ parallelCommits: !1,
3009
+ arrowMarkerAbsolute: !1
3010
+ },
3011
+ c4: {
3012
+ useMaxWidth: !0,
3013
+ diagramMarginX: 50,
3014
+ diagramMarginY: 10,
3015
+ c4ShapeMargin: 50,
3016
+ c4ShapePadding: 20,
3017
+ width: 216,
3018
+ height: 60,
3019
+ boxMargin: 10,
3020
+ c4ShapeInRow: 4,
3021
+ nextLinePaddingX: 0,
3022
+ c4BoundaryInRow: 2,
3023
+ personFontSize: 14,
3024
+ personFontFamily: "\"Open Sans\", sans-serif",
3025
+ personFontWeight: "normal",
3026
+ external_personFontSize: 14,
3027
+ external_personFontFamily: "\"Open Sans\", sans-serif",
3028
+ external_personFontWeight: "normal",
3029
+ systemFontSize: 14,
3030
+ systemFontFamily: "\"Open Sans\", sans-serif",
3031
+ systemFontWeight: "normal",
3032
+ external_systemFontSize: 14,
3033
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
3034
+ external_systemFontWeight: "normal",
3035
+ system_dbFontSize: 14,
3036
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
3037
+ system_dbFontWeight: "normal",
3038
+ external_system_dbFontSize: 14,
3039
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
3040
+ external_system_dbFontWeight: "normal",
3041
+ system_queueFontSize: 14,
3042
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
3043
+ system_queueFontWeight: "normal",
3044
+ external_system_queueFontSize: 14,
3045
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
3046
+ external_system_queueFontWeight: "normal",
3047
+ boundaryFontSize: 14,
3048
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
3049
+ boundaryFontWeight: "normal",
3050
+ messageFontSize: 12,
3051
+ messageFontFamily: "\"Open Sans\", sans-serif",
3052
+ messageFontWeight: "normal",
3053
+ containerFontSize: 14,
3054
+ containerFontFamily: "\"Open Sans\", sans-serif",
3055
+ containerFontWeight: "normal",
3056
+ external_containerFontSize: 14,
3057
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
3058
+ external_containerFontWeight: "normal",
3059
+ container_dbFontSize: 14,
3060
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
3061
+ container_dbFontWeight: "normal",
3062
+ external_container_dbFontSize: 14,
3063
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
3064
+ external_container_dbFontWeight: "normal",
3065
+ container_queueFontSize: 14,
3066
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
3067
+ container_queueFontWeight: "normal",
3068
+ external_container_queueFontSize: 14,
3069
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
3070
+ external_container_queueFontWeight: "normal",
3071
+ componentFontSize: 14,
3072
+ componentFontFamily: "\"Open Sans\", sans-serif",
3073
+ componentFontWeight: "normal",
3074
+ external_componentFontSize: 14,
3075
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
3076
+ external_componentFontWeight: "normal",
3077
+ component_dbFontSize: 14,
3078
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
3079
+ component_dbFontWeight: "normal",
3080
+ external_component_dbFontSize: 14,
3081
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
3082
+ external_component_dbFontWeight: "normal",
3083
+ component_queueFontSize: 14,
3084
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
3085
+ component_queueFontWeight: "normal",
3086
+ external_component_queueFontSize: 14,
3087
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
3088
+ external_component_queueFontWeight: "normal",
3089
+ wrap: !0,
3090
+ wrapPadding: 10,
3091
+ person_bg_color: "#08427B",
3092
+ person_border_color: "#073B6F",
3093
+ external_person_bg_color: "#686868",
3094
+ external_person_border_color: "#8A8A8A",
3095
+ system_bg_color: "#1168BD",
3096
+ system_border_color: "#3C7FC0",
3097
+ system_db_bg_color: "#1168BD",
3098
+ system_db_border_color: "#3C7FC0",
3099
+ system_queue_bg_color: "#1168BD",
3100
+ system_queue_border_color: "#3C7FC0",
3101
+ external_system_bg_color: "#999999",
3102
+ external_system_border_color: "#8A8A8A",
3103
+ external_system_db_bg_color: "#999999",
3104
+ external_system_db_border_color: "#8A8A8A",
3105
+ external_system_queue_bg_color: "#999999",
3106
+ external_system_queue_border_color: "#8A8A8A",
3107
+ container_bg_color: "#438DD5",
3108
+ container_border_color: "#3C7FC0",
3109
+ container_db_bg_color: "#438DD5",
3110
+ container_db_border_color: "#3C7FC0",
3111
+ container_queue_bg_color: "#438DD5",
3112
+ container_queue_border_color: "#3C7FC0",
3113
+ external_container_bg_color: "#B3B3B3",
3114
+ external_container_border_color: "#A6A6A6",
3115
+ external_container_db_bg_color: "#B3B3B3",
3116
+ external_container_db_border_color: "#A6A6A6",
3117
+ external_container_queue_bg_color: "#B3B3B3",
3118
+ external_container_queue_border_color: "#A6A6A6",
3119
+ component_bg_color: "#85BBF0",
3120
+ component_border_color: "#78A8D8",
3121
+ component_db_bg_color: "#85BBF0",
3122
+ component_db_border_color: "#78A8D8",
3123
+ component_queue_bg_color: "#85BBF0",
3124
+ component_queue_border_color: "#78A8D8",
3125
+ external_component_bg_color: "#CCCCCC",
3126
+ external_component_border_color: "#BFBFBF",
3127
+ external_component_db_bg_color: "#CCCCCC",
3128
+ external_component_db_border_color: "#BFBFBF",
3129
+ external_component_queue_bg_color: "#CCCCCC",
3130
+ external_component_queue_border_color: "#BFBFBF"
3131
+ },
3132
+ sankey: {
3133
+ useMaxWidth: !0,
3134
+ width: 600,
3135
+ height: 400,
3136
+ linkColor: "gradient",
3137
+ nodeAlignment: "justify",
3138
+ showValues: !0,
3139
+ prefix: "",
3140
+ suffix: "",
3141
+ nodeWidth: 10,
3142
+ nodePadding: 12,
3143
+ labelStyle: "legacy"
3144
+ },
3145
+ block: {
3146
+ useMaxWidth: !0,
3147
+ padding: 8
3148
+ },
3149
+ packet: {
3150
+ useMaxWidth: !0,
3151
+ rowHeight: 32,
3152
+ bitWidth: 32,
3153
+ bitsPerRow: 32,
3154
+ showBits: !0,
3155
+ paddingX: 5,
3156
+ paddingY: 5
3157
+ },
3158
+ treeView: {
3159
+ useMaxWidth: !0,
3160
+ rowIndent: 10,
3161
+ paddingX: 5,
3162
+ paddingY: 5,
3163
+ lineThickness: 1,
3164
+ showIcons: !1,
3165
+ defaultIconPack: "",
3166
+ filenameIcons: {},
3167
+ extensionIcons: {}
3168
+ },
3169
+ architecture: {
3170
+ useMaxWidth: !0,
3171
+ padding: 40,
3172
+ iconSize: 80,
3173
+ fontSize: 16,
3174
+ randomize: !1,
3175
+ nodeSeparation: 75,
3176
+ idealEdgeLengthMultiplier: 1.5,
3177
+ edgeElasticity: .45,
3178
+ numIter: 2500,
3179
+ seed: 1
3180
+ },
3181
+ eventmodeling: {
3182
+ useMaxWidth: !0,
3183
+ padding: 30,
3184
+ rowHeight: 32
3185
+ },
3186
+ radar: {
3187
+ useMaxWidth: !0,
3188
+ width: 600,
3189
+ height: 600,
3190
+ marginTop: 50,
3191
+ marginRight: 50,
3192
+ marginBottom: 50,
3193
+ marginLeft: 50,
3194
+ axisScaleFactor: 1,
3195
+ axisLabelFactor: 1.05,
3196
+ curveTension: .17
3197
+ },
3198
+ usecase: {
3199
+ useMaxWidth: !0,
3200
+ theme: "redux-color",
3201
+ look: "neo",
3202
+ wrappingWidth: 120,
3203
+ minNodeWidth: 120,
3204
+ actorFontSize: 14,
3205
+ actorFontFamily: "\"Open Sans\", sans-serif",
3206
+ actorFontWeight: "normal",
3207
+ usecaseFontSize: 12,
3208
+ usecaseFontFamily: "\"Open Sans\", sans-serif",
3209
+ usecaseFontWeight: "normal",
3210
+ nodeSpacing: 50,
3211
+ rankSpacing: 50,
3212
+ diagramPadding: 20,
3213
+ colorScheme: "role"
3214
+ },
3215
+ venn: {
3216
+ useMaxWidth: !0,
3217
+ theme: "redux-color",
3218
+ look: "neo",
3219
+ width: 800,
3220
+ height: 450,
3221
+ padding: 8,
3222
+ useDebugLayout: !1
3223
+ },
3224
+ cynefin: {
3225
+ useMaxWidth: !0,
3226
+ width: 800,
3227
+ height: 600,
3228
+ padding: 40,
3229
+ showDomainDescriptions: !0,
3230
+ boundaryAmplitude: 8,
3231
+ seed: 0
3232
+ },
3233
+ theme: "default",
3234
+ look: "classic",
3235
+ handDrawnSeed: 0,
3236
+ layout: "elk",
3237
+ maxTextSize: 5e4,
3238
+ maxEdges: 500,
3239
+ darkMode: !1,
3240
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
3241
+ logLevel: 5,
3242
+ securityLevel: "strict",
3243
+ startOnLoad: !0,
3244
+ arrowMarkerAbsolute: !1,
3245
+ secure: [
3246
+ "secure",
3247
+ "securityLevel",
3248
+ "startOnLoad",
3249
+ "maxTextSize",
3250
+ "suppressErrorRendering",
3251
+ "maxEdges"
3252
+ ],
3253
+ legacyMathML: !1,
3254
+ forceLegacyMathML: !1,
3255
+ deterministicIds: !1,
3256
+ fontSize: 16,
3257
+ markdownAutoWrap: !0,
3258
+ suppressErrorRendering: !1
3259
+ }, q = {
3260
+ ...K,
3261
+ deterministicIDSeed: void 0,
3262
+ elk: {
3263
+ mergeEdges: !1,
3264
+ straightenEdges: !0,
3265
+ lineHops: !0,
3266
+ preset: "default",
3267
+ nodePlacementStrategy: void 0,
3268
+ layeringStrategy: void 0,
3269
+ cycleBreakingStrategy: void 0,
3270
+ layeringLayerBound: 4,
3271
+ nodePlacementAlignment: void 0,
3272
+ forceNodeModelOrder: !1,
3273
+ considerModelOrder: "NODES_AND_EDGES",
3274
+ keepEntryNodeOnTop: !1
3275
+ },
3276
+ themeCSS: void 0,
3277
+ themeVariables: G.default.getThemeVariables(),
3278
+ sequence: {
3279
+ ...K.sequence,
3280
+ messageFont: /* @__PURE__ */ n(function() {
3281
+ return {
3282
+ fontFamily: this.messageFontFamily,
3283
+ fontSize: this.messageFontSize,
3284
+ fontWeight: this.messageFontWeight
3285
+ };
3286
+ }, "messageFont"),
3287
+ noteFont: /* @__PURE__ */ n(function() {
3288
+ return {
3289
+ fontFamily: this.noteFontFamily,
3290
+ fontSize: this.noteFontSize,
3291
+ fontWeight: this.noteFontWeight
3292
+ };
3293
+ }, "noteFont"),
3294
+ actorFont: /* @__PURE__ */ n(function() {
3295
+ return {
3296
+ fontFamily: this.actorFontFamily,
3297
+ fontSize: this.actorFontSize,
3298
+ fontWeight: this.actorFontWeight
3299
+ };
3300
+ }, "actorFont")
3301
+ },
3302
+ class: {
3303
+ theme: K.class?.theme,
3304
+ look: K.class?.look,
3305
+ layout: K.class?.layout,
3306
+ hideEmptyMembersBox: !1,
3307
+ hierarchicalNamespaces: !0
3308
+ },
3309
+ gantt: {
3310
+ ...K.gantt,
3311
+ tickInterval: void 0,
3312
+ useWidth: void 0
3313
+ },
3314
+ c4: {
3315
+ ...K.c4,
3316
+ useWidth: void 0,
3317
+ personFont: /* @__PURE__ */ n(function() {
3318
+ return {
3319
+ fontFamily: this.personFontFamily,
3320
+ fontSize: this.personFontSize,
3321
+ fontWeight: this.personFontWeight
3322
+ };
3323
+ }, "personFont"),
3324
+ flowchart: {
3325
+ ...K.flowchart,
3326
+ inheritDir: !1
3327
+ },
3328
+ external_personFont: /* @__PURE__ */ n(function() {
3329
+ return {
3330
+ fontFamily: this.external_personFontFamily,
3331
+ fontSize: this.external_personFontSize,
3332
+ fontWeight: this.external_personFontWeight
3333
+ };
3334
+ }, "external_personFont"),
3335
+ systemFont: /* @__PURE__ */ n(function() {
3336
+ return {
3337
+ fontFamily: this.systemFontFamily,
3338
+ fontSize: this.systemFontSize,
3339
+ fontWeight: this.systemFontWeight
3340
+ };
3341
+ }, "systemFont"),
3342
+ external_systemFont: /* @__PURE__ */ n(function() {
3343
+ return {
3344
+ fontFamily: this.external_systemFontFamily,
3345
+ fontSize: this.external_systemFontSize,
3346
+ fontWeight: this.external_systemFontWeight
3347
+ };
3348
+ }, "external_systemFont"),
3349
+ system_dbFont: /* @__PURE__ */ n(function() {
3350
+ return {
3351
+ fontFamily: this.system_dbFontFamily,
3352
+ fontSize: this.system_dbFontSize,
3353
+ fontWeight: this.system_dbFontWeight
3354
+ };
3355
+ }, "system_dbFont"),
3356
+ external_system_dbFont: /* @__PURE__ */ n(function() {
3357
+ return {
3358
+ fontFamily: this.external_system_dbFontFamily,
3359
+ fontSize: this.external_system_dbFontSize,
3360
+ fontWeight: this.external_system_dbFontWeight
3361
+ };
3362
+ }, "external_system_dbFont"),
3363
+ system_queueFont: /* @__PURE__ */ n(function() {
3364
+ return {
3365
+ fontFamily: this.system_queueFontFamily,
3366
+ fontSize: this.system_queueFontSize,
3367
+ fontWeight: this.system_queueFontWeight
3368
+ };
3369
+ }, "system_queueFont"),
3370
+ external_system_queueFont: /* @__PURE__ */ n(function() {
3371
+ return {
3372
+ fontFamily: this.external_system_queueFontFamily,
3373
+ fontSize: this.external_system_queueFontSize,
3374
+ fontWeight: this.external_system_queueFontWeight
3375
+ };
3376
+ }, "external_system_queueFont"),
3377
+ containerFont: /* @__PURE__ */ n(function() {
3378
+ return {
3379
+ fontFamily: this.containerFontFamily,
3380
+ fontSize: this.containerFontSize,
3381
+ fontWeight: this.containerFontWeight
3382
+ };
3383
+ }, "containerFont"),
3384
+ external_containerFont: /* @__PURE__ */ n(function() {
3385
+ return {
3386
+ fontFamily: this.external_containerFontFamily,
3387
+ fontSize: this.external_containerFontSize,
3388
+ fontWeight: this.external_containerFontWeight
3389
+ };
3390
+ }, "external_containerFont"),
3391
+ container_dbFont: /* @__PURE__ */ n(function() {
3392
+ return {
3393
+ fontFamily: this.container_dbFontFamily,
3394
+ fontSize: this.container_dbFontSize,
3395
+ fontWeight: this.container_dbFontWeight
3396
+ };
3397
+ }, "container_dbFont"),
3398
+ external_container_dbFont: /* @__PURE__ */ n(function() {
3399
+ return {
3400
+ fontFamily: this.external_container_dbFontFamily,
3401
+ fontSize: this.external_container_dbFontSize,
3402
+ fontWeight: this.external_container_dbFontWeight
3403
+ };
3404
+ }, "external_container_dbFont"),
3405
+ container_queueFont: /* @__PURE__ */ n(function() {
3406
+ return {
3407
+ fontFamily: this.container_queueFontFamily,
3408
+ fontSize: this.container_queueFontSize,
3409
+ fontWeight: this.container_queueFontWeight
3410
+ };
3411
+ }, "container_queueFont"),
3412
+ external_container_queueFont: /* @__PURE__ */ n(function() {
3413
+ return {
3414
+ fontFamily: this.external_container_queueFontFamily,
3415
+ fontSize: this.external_container_queueFontSize,
3416
+ fontWeight: this.external_container_queueFontWeight
3417
+ };
3418
+ }, "external_container_queueFont"),
3419
+ componentFont: /* @__PURE__ */ n(function() {
3420
+ return {
3421
+ fontFamily: this.componentFontFamily,
3422
+ fontSize: this.componentFontSize,
3423
+ fontWeight: this.componentFontWeight
3424
+ };
3425
+ }, "componentFont"),
3426
+ external_componentFont: /* @__PURE__ */ n(function() {
3427
+ return {
3428
+ fontFamily: this.external_componentFontFamily,
3429
+ fontSize: this.external_componentFontSize,
3430
+ fontWeight: this.external_componentFontWeight
3431
+ };
3432
+ }, "external_componentFont"),
3433
+ component_dbFont: /* @__PURE__ */ n(function() {
3434
+ return {
3435
+ fontFamily: this.component_dbFontFamily,
3436
+ fontSize: this.component_dbFontSize,
3437
+ fontWeight: this.component_dbFontWeight
3438
+ };
3439
+ }, "component_dbFont"),
3440
+ external_component_dbFont: /* @__PURE__ */ n(function() {
3441
+ return {
3442
+ fontFamily: this.external_component_dbFontFamily,
3443
+ fontSize: this.external_component_dbFontSize,
3444
+ fontWeight: this.external_component_dbFontWeight
3445
+ };
3446
+ }, "external_component_dbFont"),
3447
+ component_queueFont: /* @__PURE__ */ n(function() {
3448
+ return {
3449
+ fontFamily: this.component_queueFontFamily,
3450
+ fontSize: this.component_queueFontSize,
3451
+ fontWeight: this.component_queueFontWeight
3452
+ };
3453
+ }, "component_queueFont"),
3454
+ external_component_queueFont: /* @__PURE__ */ n(function() {
3455
+ return {
3456
+ fontFamily: this.external_component_queueFontFamily,
3457
+ fontSize: this.external_component_queueFontSize,
3458
+ fontWeight: this.external_component_queueFontWeight
3459
+ };
3460
+ }, "external_component_queueFont"),
3461
+ boundaryFont: /* @__PURE__ */ n(function() {
3462
+ return {
3463
+ fontFamily: this.boundaryFontFamily,
3464
+ fontSize: this.boundaryFontSize,
3465
+ fontWeight: this.boundaryFontWeight
3466
+ };
3467
+ }, "boundaryFont"),
3468
+ messageFont: /* @__PURE__ */ n(function() {
3469
+ return {
3470
+ fontFamily: this.messageFontFamily,
3471
+ fontSize: this.messageFontSize,
3472
+ fontWeight: this.messageFontWeight
3473
+ };
3474
+ }, "messageFont")
3475
+ },
3476
+ pie: {
3477
+ ...K.pie,
3478
+ useWidth: 984
3479
+ },
3480
+ xyChart: {
3481
+ ...K.xyChart,
3482
+ useWidth: void 0
3483
+ },
3484
+ requirement: {
3485
+ ...K.requirement,
3486
+ useWidth: void 0
3487
+ },
3488
+ packet: { ...K.packet },
3489
+ eventmodeling: { ...K.eventmodeling },
3490
+ treeView: {
3491
+ ...K.treeView,
3492
+ useWidth: void 0
3493
+ },
3494
+ radar: { ...K.radar },
3495
+ usecase: { ...K.usecase },
3496
+ railroad: {
3497
+ ...K.railroad,
3498
+ fontSize: void 0,
3499
+ fontFamily: void 0,
3500
+ terminalFill: void 0,
3501
+ terminalStroke: void 0,
3502
+ terminalTextColor: void 0,
3503
+ nonTerminalFill: void 0,
3504
+ nonTerminalStroke: void 0,
3505
+ nonTerminalTextColor: void 0,
3506
+ lineColor: void 0,
3507
+ markerFill: void 0,
3508
+ commentFill: void 0,
3509
+ commentStroke: void 0,
3510
+ commentTextColor: void 0,
3511
+ specialFill: void 0,
3512
+ specialStroke: void 0,
3513
+ ruleNameColor: void 0
3514
+ },
3515
+ ishikawa: { ...K.ishikawa },
3516
+ sankey: {
3517
+ ...K.sankey,
3518
+ nodeColors: void 0
3519
+ },
3520
+ treemap: {
3521
+ useMaxWidth: !0,
3522
+ padding: 10,
3523
+ diagramPadding: 8,
3524
+ showValues: !0,
3525
+ nodeWidth: 100,
3526
+ nodeHeight: 40,
3527
+ borderWidth: 1,
3528
+ valueFontSize: 12,
3529
+ labelFontSize: 14,
3530
+ valueFormat: ","
3531
+ },
3532
+ venn: { ...K.venn },
3533
+ cynefin: { ...K.cynefin }
3534
+ }, Wt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3535
+ ...n,
3536
+ t + r,
3537
+ ...Wt(e[r], "")
3538
+ ] : [...n, t + r], []), "keyify"), Gt = new Set(Wt(q, "")), Kt = q, qt = {
3539
+ "flowchart-v2": "flowchart",
3540
+ "flowchart-elk": "flowchart",
3541
+ classDiagram: "class",
3542
+ stateDiagram: "state",
3543
+ xychart: "xyChart",
3544
+ railroadAbnf: "railroad",
3545
+ railroadEbnf: "railroad",
3546
+ railroadPeg: "railroad"
3547
+ }, Jt = /* @__PURE__ */ n((e) => qt[e] ?? e, "getDiagramConfigKey"), Yt = {
3548
+ nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3549
+ filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3550
+ extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3551
+ }, Xt = /* @__PURE__ */ n((t, n) => {
3552
+ for (let r of Object.keys(t)) {
3553
+ let i = t[r];
3554
+ (r.startsWith("__") || r.includes("proto") || r.includes("constr") || typeof i != "string" || !n.test(i)) && (e.debug("sanitize deleting dictionary entry:", r, i), delete t[r]);
3555
+ }
3556
+ }, "sanitizeDictionaryConfig"), Zt = /* @__PURE__ */ n((t) => {
3557
+ if (e.debug("sanitizeDirective called with", t), !(typeof t != "object" || !t)) {
3558
+ if (Array.isArray(t)) {
3559
+ t.forEach((e) => Zt(e));
3560
+ return;
3561
+ }
3562
+ for (let n of Object.keys(t)) {
3563
+ if (e.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Gt.has(n) || t[n] == null) {
3564
+ e.debug("sanitize deleting key: ", n), delete t[n];
3565
+ continue;
3566
+ }
3567
+ if (typeof t[n] == "object") {
3568
+ let r = Yt[n];
3569
+ r ? Xt(t[n], r) : (e.debug("sanitizing object", n), Zt(t[n]));
3570
+ continue;
3571
+ }
3572
+ for (let r of [
3573
+ "themeCSS",
3574
+ "fontFamily",
3575
+ "altFontFamily"
3576
+ ]) n.includes(r) && (e.debug("sanitizing css option", n), t[n] = Qt(t[n]));
3577
+ }
3578
+ if (t.themeVariables) for (let e of Object.keys(t.themeVariables)) {
3579
+ let n = t.themeVariables[e];
3580
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (t.themeVariables[e] = "");
3581
+ }
3582
+ e.debug("After sanitization", t);
3583
+ }
3584
+ }, "sanitizeDirective"), Qt = /* @__PURE__ */ n((e) => {
3585
+ let t = 0, n = 0;
3586
+ for (let r of e) {
3587
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3588
+ r === "{" ? t++ : r === "}" && n++;
3589
+ }
3590
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3591
+ }, "sanitizeCss"), $t = Object.freeze(Kt), J = [
3592
+ "theme",
3593
+ "look",
3594
+ "layout"
3595
+ ], en = /* @__PURE__ */ new Set([
3596
+ "classic",
3597
+ "handDrawn",
3598
+ "neo"
3599
+ ]), tn = /* @__PURE__ */ n((e, t) => e === "theme" ? t === "null" || Object.hasOwn(G, t) : e !== "look" || en.has(t), "isUsableAppearance"), nn = /* @__PURE__ */ n((e, t, n) => {
3600
+ if (e) return [e[t]?.[n], e[n]].find((e) => e !== void 0 && tn(n, e));
3601
+ }, "readAppearance"), rn = /* @__PURE__ */ n((e) => !(e === !1 || [
3602
+ "false",
3603
+ "null",
3604
+ "0"
3605
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), Y = z({}, $t), an, on = {}, X = [], sn = z({}, $t), cn, Z = /* @__PURE__ */ n((e, t) => {
3606
+ if (!cn) return;
3607
+ let n = [
3608
+ t,
3609
+ ...[...X].reverse(),
3610
+ on,
3611
+ $t
3612
+ ], r = e[cn];
3613
+ for (let t of J) for (let i of n) {
3614
+ let n = nn(i, cn, t);
3615
+ if (n !== void 0) {
3616
+ e[t] = n, r?.[t] !== void 0 && (r[t] = n);
3617
+ break;
3618
+ }
3619
+ }
3620
+ }, "resolveAppearance"), Q = /* @__PURE__ */ n((e, t) => {
3621
+ let n = z({}, e), r = {};
3622
+ for (let e of t) gn(e), r = z(r, e);
3623
+ if (n = z(n, r), Z(n, r), (r.theme || n.theme !== e.theme) && n.theme && Object.hasOwn(G, n.theme)) {
3624
+ let e = z(z({}, an).themeVariables || {}, r.themeVariables);
3625
+ n.themeVariables = G[n.theme].getThemeVariables(e);
3626
+ }
3627
+ return sn = n, $(sn), sn;
3628
+ }, "updateCurrentConfig"), ln = /* @__PURE__ */ n((e) => {
3629
+ cn = e === void 0 ? void 0 : Jt(e), Q(Y, X);
3630
+ }, "setDiagramConfigScope"), un = /* @__PURE__ */ n((e) => (Y = z({}, $t), Y = z(Y, e), on = z({}, e), e.theme && Object.hasOwn(G, e.theme) && (Y.themeVariables = G[e.theme].getThemeVariables(e.themeVariables)), Q(Y, X), Y), "setSiteConfig"), dn = /* @__PURE__ */ n((e) => {
3631
+ an = z({}, e);
3632
+ }, "saveConfigFromInitialize"), fn = /* @__PURE__ */ n((e) => (Y = z(Y, e), on = z(on, e), Q(Y, X), Y), "updateSiteConfig"), pn = /* @__PURE__ */ n(() => z({}, Y), "getSiteConfig"), mn = /* @__PURE__ */ n((e) => (Q(sn, [e]), hn()), "setConfig"), hn = /* @__PURE__ */ n(() => z({}, sn), "getConfig"), gn = /* @__PURE__ */ n((t) => {
3633
+ t && (["secure", ...Y.secure ?? []].forEach((n) => {
3634
+ Object.hasOwn(t, n) && (e.debug(`Denied attempt to modify a secure key ${n}`, t[n]), delete t[n]);
3635
+ }), Object.keys(t).forEach((e) => {
3636
+ e.startsWith("__") && delete t[e];
3637
+ }), Object.keys(t).forEach((e) => {
3638
+ typeof t[e] == "string" && (t[e].includes("<") || t[e].includes(">") || t[e].includes("url(data:")) && delete t[e], typeof t[e] == "object" && gn(t[e]);
3639
+ }));
3640
+ }, "sanitize"), _n = /* @__PURE__ */ n((e) => {
3641
+ Zt(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3642
+ ...e.themeVariables,
3643
+ fontFamily: e.fontFamily
3644
+ }), X.push(e), Q(Y, X);
3645
+ }, "addDirective"), vn = /* @__PURE__ */ n((e = Y) => {
3646
+ X = [], cn = void 0, Q(e, X);
3647
+ }, "reset"), yn = {
3648
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3649
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3650
+ }, bn = {}, xn = /* @__PURE__ */ n((t) => {
3651
+ bn[t] || (e.warn(yn[t]), bn[t] = !0);
3652
+ }, "issueWarning"), $ = /* @__PURE__ */ n((e) => {
3653
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && xn("LAZY_LOAD_DEPRECATED");
3654
+ }, "checkConfig"), Sn = /* @__PURE__ */ n(() => {
3655
+ let e = {};
3656
+ an && (e = z(e, an));
3657
+ for (let t of X) e = z(e, t);
3658
+ return e;
3659
+ }, "getUserDefinedConfig"), Cn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && xn("FLOWCHART_HTML_LABELS_DEPRECATED"), rn(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), wn = /<\/?br\s*\/?>/gi, Tn = new RegExp(wn.source, "i"), En = /* @__PURE__ */ n((e) => e ? In(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Dn = /* @__PURE__ */ (() => {
3660
+ let e = !1;
3661
+ return () => {
3662
+ e ||= (On(), !0);
3663
+ };
3664
+ })();
3665
+ function On() {
3666
+ let e = "data-temp-href-target";
3667
+ _t.addHook("beforeSanitizeAttributes", (t) => {
3668
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3669
+ }), _t.addHook("afterSanitizeAttributes", (t) => {
3670
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3671
+ });
3672
+ }
3673
+ n(On, "setupDompurifyHooks");
3674
+ var kn = /* @__PURE__ */ n((e) => (Dn(), _t.sanitize(e)), "removeScript"), An = /* @__PURE__ */ n((e, t) => {
3675
+ if (Cn(t)) {
3676
+ let n = t.securityLevel;
3677
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = kn(e) : n !== "loose" && (e = In(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Fn(e));
3678
+ }
3679
+ return e;
3680
+ }, "sanitizeMore"), jn = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? _t.sanitize(An(e, t), t.dompurifyConfig).toString() : _t.sanitize(An(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Mn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? jn(e, t) : e.flat().map((e) => jn(e, t)), "sanitizeTextOrArray"), Nn = /* @__PURE__ */ n((e) => Tn.test(e), "hasBreaks"), Pn = /* @__PURE__ */ n((e) => e.split(wn), "splitBreaks"), Fn = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), In = /* @__PURE__ */ n((e) => e.replace(wn, "#br#"), "breakToPlaceholder"), Ln = /* @__PURE__ */ n((e) => {
3681
+ let t = "";
3682
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3683
+ }, "getUrl"), Rn = /* @__PURE__ */ n(function(...e) {
3684
+ let t = e.filter((e) => !isNaN(e));
3685
+ return Math.max(...t);
3686
+ }, "getMax"), zn = /* @__PURE__ */ n(function(...e) {
3687
+ let t = e.filter((e) => !isNaN(e));
3688
+ return Math.min(...t);
3689
+ }, "getMin"), Bn = /* @__PURE__ */ n(function(e) {
3690
+ let t = e.split(/(,)/), n = [];
3691
+ for (let e = 0; e < t.length; e++) {
3692
+ let r = t[e];
3693
+ if (r === "," && e > 0 && e + 1 < t.length) {
3694
+ let i = t[e - 1], a = t[e + 1];
3695
+ Hn(i, a) && (r = i + "," + a, e++, n.pop());
3696
+ }
3697
+ n.push(Un(r));
3698
+ }
3699
+ return n.join("");
3700
+ }, "parseGenericTypes"), Vn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Hn = /* @__PURE__ */ n((e, t) => {
3701
+ let n = Vn(e, "~"), r = Vn(t, "~");
3702
+ return n === 1 && r === 1;
3703
+ }, "shouldCombineSets"), Un = /* @__PURE__ */ n((e) => {
3704
+ let t = Vn(e, "~"), n = !1;
3705
+ if (t <= 1) return e;
3706
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3707
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3708
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3709
+ return n && r.unshift("~"), r.join("");
3710
+ }, "processSet"), Wn = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Gn = /\$\$(.*?)\$\$/g, Kn = /* @__PURE__ */ n((e) => (e.match(Gn)?.length ?? 0) > 0, "hasKatex"), qn = /* @__PURE__ */ n(async (e, t) => {
3711
+ let n = document.createElement("div");
3712
+ n.innerHTML = await Yn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3713
+ let r = {
3714
+ width: n.clientWidth,
3715
+ height: n.clientHeight
3716
+ };
3717
+ return n.remove(), r;
3718
+ }, "calculateMathMLDimensions"), Jn = /* @__PURE__ */ n(async (e, t) => {
3719
+ if (!Kn(e)) return e;
3720
+ if (!(Wn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Gn, "MathML is unsupported in this environment.");
3721
+ {
3722
+ let { default: n } = await import("./katex-BMQ6LGsM.js"), r = t.forceLegacyMathML || !Wn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3723
+ return e.split(wn).map((e) => Kn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Gn, (e, t) => n.renderToString(t, {
3724
+ throwOnError: !0,
3725
+ displayMode: !0,
3726
+ output: r
3727
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3728
+ }
3729
+ return e.replace(Gn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3730
+ }, "renderKatexUnsanitized"), Yn = /* @__PURE__ */ n(async (e, t) => jn(await Jn(e, t), t), "renderKatexSanitized"), Xn = {
3731
+ getRows: En,
3732
+ sanitizeText: jn,
3733
+ sanitizeTextOrArray: Mn,
3734
+ hasBreaks: Nn,
3735
+ splitBreaks: Pn,
3736
+ lineBreakRegex: wn,
3737
+ removeScript: kn,
3738
+ getUrl: Ln,
3739
+ evaluate: rn,
3740
+ getMax: Rn,
3741
+ getMin: zn
3742
+ }, Zn = /* @__PURE__ */ n(function(e, t) {
3743
+ for (let n of t) e.attr(n[0], n[1]);
3744
+ }, "d3Attrs"), Qn = /* @__PURE__ */ n(function(e, t, n) {
3745
+ let r = /* @__PURE__ */ new Map();
3746
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3747
+ }, "calculateSvgSizeAttrs"), $n = /* @__PURE__ */ n(function(e, t, n, r) {
3748
+ Zn(e, Qn(t, n, r));
3749
+ }, "configureSvgSize"), er = /* @__PURE__ */ n(function(t, n, r, i) {
3750
+ let a = n.node().getBBox(), o = a.width, s = a.height;
3751
+ e.info(`SVG bounds: ${o}x${s}`, a);
3752
+ let c = 0, l = 0;
3753
+ e.info(`Graph bounds: ${c}x${l}`, t), c = o + r * 2, l = s + r * 2, e.info(`Calculated bounds: ${c}x${l}`), $n(n, l, c, i);
3754
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3755
+ n.attr("viewBox", u);
3756
+ }, "setupGraphViewbox"), tr = {};
3757
+ function nr(e) {
3758
+ return [...e.cssRules].map((e) => e.cssText).join("\n");
3759
+ }
3760
+ n(nr, "cssStyleSheetToString");
3761
+ var rr = /* @__PURE__ */ n((t, n, r, i) => {
3762
+ let a = "";
3763
+ return t in tr && tr[t] ? a = tr[t]({
3764
+ ...r,
3765
+ svgId: i
3766
+ }) : e.warn(`No theme found for ${t}`), `& {
3767
+ font-family: ${r.fontFamily};
3768
+ font-size: ${r.fontSize};
3769
+ fill: ${r.textColor}
3770
+ }
3771
+ @keyframes edge-animation-frame {
3772
+ from {
3773
+ stroke-dashoffset: 0;
3774
+ }
3775
+ }
3776
+ @keyframes dash {
3777
+ to {
3778
+ stroke-dashoffset: 0;
3779
+ }
3780
+ }
3781
+ & .edge-animation-slow {
3782
+ stroke-dasharray: 9,5 !important;
3783
+ stroke-dashoffset: 900;
3784
+ animation: dash 50s linear infinite;
3785
+ stroke-linecap: round;
3786
+ }
3787
+ & .edge-animation-fast {
3788
+ stroke-dasharray: 9,5 !important;
3789
+ stroke-dashoffset: 900;
3790
+ animation: dash 20s linear infinite;
3791
+ stroke-linecap: round;
3792
+ }
3793
+ /* Classes common for multiple diagrams */
3794
+
3795
+ & .error-icon {
3796
+ fill: ${r.errorBkgColor};
3797
+ }
3798
+ & .error-text {
3799
+ fill: ${r.errorTextColor};
3800
+ stroke: ${r.errorTextColor};
3801
+ }
3802
+
3803
+ & .edge-thickness-normal {
3804
+ stroke-width: ${r.strokeWidth ?? 1}px;
3805
+ }
3806
+ & .edge-thickness-thick {
3807
+ stroke-width: 3.5px
3808
+ }
3809
+ & .edge-pattern-solid {
3810
+ stroke-dasharray: 0;
3811
+ }
3812
+ & .edge-thickness-invisible {
3813
+ stroke-width: 0;
3814
+ fill: none;
3815
+ }
3816
+ & .edge-pattern-dashed{
3817
+ stroke-dasharray: 3;
3818
+ }
3819
+ .edge-pattern-dotted {
3820
+ stroke-dasharray: 2;
3821
+ }
3822
+
3823
+ & .marker {
3824
+ fill: ${r.lineColor};
3825
+ stroke: ${r.lineColor};
3826
+ }
3827
+ & .marker.cross {
3828
+ stroke: ${r.lineColor};
3829
+ }
3830
+
3831
+ & svg {
3832
+ font-family: ${r.fontFamily};
3833
+ font-size: ${r.fontSize};
3834
+ }
3835
+ & p {
3836
+ margin: 0
3837
+ }
3838
+
3839
+ ${a}
3840
+ .node .neo-node {
3841
+ stroke: ${r.nodeBorder};
3842
+ }
3843
+
3844
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3845
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3846
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3847
+ }
3848
+ [data-look="neo"].swimlane.cluster rect {
3849
+ filter: none;
3850
+ }
3851
+
3852
+
3853
+ [data-look="neo"].node path {
3854
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3855
+ stroke-width: ${r.strokeWidth ?? 1}px;
3856
+ }
3857
+
3858
+ [data-look="neo"].node .outer-path {
3859
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3860
+ }
3861
+
3862
+ [data-look="neo"].node .neo-line path {
3863
+ stroke: ${r.nodeBorder};
3864
+ filter: none;
3865
+ }
3866
+
3867
+ [data-look="neo"].node circle{
3868
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3869
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3870
+ }
3871
+
3872
+ [data-look="neo"].node circle .state-start{
3873
+ fill: #000000;
3874
+ }
3875
+
3876
+ [data-look="neo"].icon-shape .icon {
3877
+ fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3878
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3879
+ }
3880
+
3881
+ [data-look="neo"].icon-shape .icon-neo path {
3882
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
3883
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3884
+ }
3885
+
3886
+ ${n}
3887
+ `;
3888
+ }, "getStyles"), ir = /* @__PURE__ */ n((e, t) => {
3889
+ t !== void 0 && (tr[e] = t);
3890
+ }, "addStylesForDiagram"), ar = rr, or = {};
3891
+ r(or, {
3892
+ clear: () => dr,
3893
+ getAccDescription: () => hr,
3894
+ getAccTitle: () => pr,
3895
+ getDiagramTitle: () => _r,
3896
+ setAccDescription: () => mr,
3897
+ setAccTitle: () => fr,
3898
+ setDiagramTitle: () => gr
3899
+ });
3900
+ var sr = "", cr = "", lr = "", ur = /* @__PURE__ */ n((e) => jn(e, hn()), "sanitizeText"), dr = /* @__PURE__ */ n(() => {
3901
+ sr = "", lr = "", cr = "";
3902
+ }, "clear"), fr = /* @__PURE__ */ n((e) => {
3903
+ sr = ur(e).replace(/^\s+/g, "");
3904
+ }, "setAccTitle"), pr = /* @__PURE__ */ n(() => sr, "getAccTitle"), mr = /* @__PURE__ */ n((e) => {
3905
+ lr = ur(e).replace(/\n\s+/g, "\n");
3906
+ }, "setAccDescription"), hr = /* @__PURE__ */ n(() => lr, "getAccDescription"), gr = /* @__PURE__ */ n((e) => {
3907
+ cr = ur(e);
3908
+ }, "setDiagramTitle"), _r = /* @__PURE__ */ n(() => cr, "getDiagramTitle"), vr = e, yr = t, br = hn, xr = mn, Sr = $t, Cr = /* @__PURE__ */ n((e) => jn(e, br()), "sanitizeText"), wr = er, Tr = /* @__PURE__ */ n(() => or, "getCommonDb"), Er = {}, Dr = /* @__PURE__ */ n((e, t, n) => {
3909
+ Er[e] && vr.warn(`Diagram with id ${e} already registered. Overwriting.`), Er[e] = t, n && R(e, n), ir(e, t.styles), t.injectUtils?.(vr, yr, br, Cr, wr, Tr(), () => {});
3910
+ }, "registerDiagram"), Or = /* @__PURE__ */ n((e) => {
3911
+ if (e in Er) return Er[e];
3912
+ throw new kr(e);
3913
+ }, "getDiagram"), kr = class extends Error {
3914
+ static {
3915
+ n(this, "DiagramNotFoundError");
3916
+ }
3917
+ constructor(e) {
3918
+ super(`Diagram ${e} not found.`);
3919
+ }
3920
+ };
3921
+ //#endregion
3922
+ export { fn as $, Kn as A, Cr as B, Ct as C, W as D, pn as E, Yn as F, xr as G, mr as H, vn as I, un as J, ln as K, Qt as L, Bn as M, Dr as N, Ln as O, St as P, G as Q, Zt as R, Or as S, Cn as T, fr as U, dn as V, mn as W, wr as X, er as Y, ar as Z, vt as _, dr as a, h as at, hn as b, $n as c, Sr as d, _t as et, Kt as f, rn as g, F as h, qn as i, _ as it, wn as j, Sn as k, nr as l, L as m, _n as n, y as nt, or as o, m as ot, xt as p, gr as q, z as r, v as rt, Xn as s, a as st, bt as t, b as tt, $t as u, hr as v, _r as w, br as x, pr as y, jn as z };