@blueking/ai-blueking 2.1.4-beta.7 → 2.1.4-beta.8

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 (105) hide show
  1. package/dist/standalone/_baseFor-DZ1vnh4H.js +393 -0
  2. package/dist/standalone/arc-WNacHY26.js +80 -0
  3. package/dist/standalone/architecture-YZFGNWBL-pIa_tKdA.js +3 -0
  4. package/dist/standalone/architectureDiagram-Q4EWVU46-Bfam8Fg3.js +4057 -0
  5. package/dist/standalone/array-CWNufkl9.js +6 -0
  6. package/dist/standalone/blockDiagram-DXYQGD6D-vAb9uyF5.js +3033 -0
  7. package/dist/standalone/c4Diagram-AHTNJAMY-BWACU0ER.js +2961 -0
  8. package/dist/standalone/channel-Br5ChI8U.js +5 -0
  9. package/dist/standalone/chunk-2KRD3SAO-Deh6AASy.js +23 -0
  10. package/dist/standalone/chunk-336JU56O-CFKWNcxR.js +49 -0
  11. package/dist/standalone/chunk-426QAEUC-D_wKNd3w.js +9 -0
  12. package/dist/standalone/chunk-4BX2VUAB-DKC_OBWg.js +8 -0
  13. package/dist/standalone/chunk-4TB4RGXK-HiVG7T1A.js +3254 -0
  14. package/dist/standalone/chunk-55IACEB6-DBivnNb2.js +8 -0
  15. package/dist/standalone/chunk-5FUZZQ4R-tiEjqlP4.js +3638 -0
  16. package/dist/standalone/chunk-5PVQY5BW-BCjrVrWB.js +1299 -0
  17. package/dist/standalone/chunk-67CJDMHE-BX09W6oy.js +23 -0
  18. package/dist/standalone/chunk-7N4EOEYR-G144j5Vc.js +35 -0
  19. package/dist/standalone/chunk-AA7GKIK3-Dx9YCoJ-.js +30 -0
  20. package/dist/standalone/chunk-BSJP7CBP-DE8WR0MI.js +82 -0
  21. package/dist/standalone/chunk-CIAEETIT-Bv86XVLB.js +23 -0
  22. package/dist/standalone/chunk-EDXVE4YY-DE9KzYM-.js +25 -0
  23. package/dist/standalone/chunk-ENJZ2VHE-DlxIC-A3.js +560 -0
  24. package/dist/standalone/chunk-FMBD7UC4-DCkBrKFO.js +5 -0
  25. package/dist/standalone/chunk-FOC6F5B3-C7hwrEZJ.js +23 -0
  26. package/dist/standalone/chunk-ICPOFSXX-B9JXAgJU.js +2772 -0
  27. package/dist/standalone/chunk-K5T4RW27-T6hJxJM0.js +16070 -0
  28. package/dist/standalone/chunk-KGLVRYIC-C0JPhrjn.js +23 -0
  29. package/dist/standalone/chunk-LIHQZDEY-CiavnvWh.js +64 -0
  30. package/dist/standalone/chunk-ORNJ4GCN-BtJ79bik.js +31 -0
  31. package/dist/standalone/chunk-OYMX7WX6-D2UHnmfD.js +2014 -0
  32. package/dist/standalone/chunk-QZHKN3VN-DhzThSvb.js +15 -0
  33. package/dist/standalone/chunk-U2HBQHQK-75Isf1R4.js +1896 -0
  34. package/dist/standalone/chunk-WQLz0Won.js +20 -0
  35. package/dist/standalone/chunk-X2U36JSP-DSzducJI.js +67 -0
  36. package/dist/standalone/chunk-XPW4576I-BFhmu0d4.js +1146 -0
  37. package/dist/standalone/chunk-YZCP3GAM-90EaSO-2.js +60 -0
  38. package/dist/standalone/chunk-ZZ45TVLE-DUagTZ9d.js +32 -0
  39. package/dist/standalone/classDiagram-6PBFFD2Q-Bwt78q4N.js +29 -0
  40. package/dist/standalone/classDiagram-v2-HSJHXN6E-B2qI9-xf.js +29 -0
  41. package/dist/standalone/clone-CBw-BHXl.js +8 -0
  42. package/dist/standalone/cose-bilkent-S5V4N54A-DFJ1nlog.js +2250 -0
  43. package/dist/standalone/cytoscape.esm-DdhenceR.js +18103 -0
  44. package/dist/standalone/dagre-KV5264BT-CXTBtAae.js +293 -0
  45. package/dist/standalone/dagre-kfvGmNUa.js +1606 -0
  46. package/dist/standalone/defaultLocale-bckJcYh1.js +201 -0
  47. package/dist/standalone/diagram-5BDNPKRD--gLHDKg-.js +101 -0
  48. package/dist/standalone/diagram-G4DWMVQ6-BwLE9Hsf.js +524 -0
  49. package/dist/standalone/diagram-MMDJMWI5-CoilYxa0.js +213 -0
  50. package/dist/standalone/diagram-TYMM5635-BupwRdr6.js +133 -0
  51. package/dist/standalone/dist-Dlj1jr8W.js +59 -0
  52. package/dist/standalone/erDiagram-SMLLAGMA-tIdn6ZCM.js +1700 -0
  53. package/dist/standalone/flatten-CXxC4cn2.js +40 -0
  54. package/dist/standalone/flowDiagram-DWJPFMVM-C86bLTAY.js +4146 -0
  55. package/dist/standalone/ganttDiagram-T4ZO3ILL-BT23lv_X.js +3077 -0
  56. package/dist/standalone/gitGraph-7Q5UKJZL-C-7nG8PF.js +3 -0
  57. package/dist/standalone/gitGraphDiagram-UUTBAWPF-DT1BGQsP.js +728 -0
  58. package/dist/standalone/graphlib-DrXiQBFg.js +373 -0
  59. package/dist/standalone/index.es.min.js +59705 -0
  60. package/dist/standalone/index.iife.min.js +3502 -0
  61. package/dist/standalone/index.umd.min.js +3502 -0
  62. package/dist/standalone/info-OMHHGYJF-BOS7mrON.js +3 -0
  63. package/dist/standalone/infoDiagram-42DDH7IO-Dx7LFK0B.js +19 -0
  64. package/dist/standalone/init-B75p2clj.js +15 -0
  65. package/dist/standalone/isEmpty-CVG4Bj-P.js +35 -0
  66. package/dist/standalone/ishikawaDiagram-UXIWVN3A-CX4cX3qb.js +718 -0
  67. package/dist/standalone/journeyDiagram-VCZTEJTY-BCvxmmFn.js +883 -0
  68. package/dist/standalone/kanban-definition-6JOO6SKY-SVINWaiM.js +973 -0
  69. package/dist/standalone/katex-CKrw0rbA.js +22016 -0
  70. package/dist/standalone/line-BF1XS-Ng.js +34 -0
  71. package/dist/standalone/linear-DGQDIL28.js +289 -0
  72. package/dist/standalone/mermaid-parser.core-Blz-Qy2h.js +69 -0
  73. package/dist/standalone/mermaid.core-CHTh1JGx.js +944 -0
  74. package/dist/standalone/mindmap-definition-QFDTVHPH-1Trzro3y.js +1009 -0
  75. package/dist/standalone/ordinal-F3U6aXtP.js +65 -0
  76. package/dist/standalone/packet-4T2RLAQJ-ai5Omp1h.js +3 -0
  77. package/dist/standalone/path-Dm3C8WEs.js +85 -0
  78. package/dist/standalone/pie-ZZUOXDRM-Df1rG6QC.js +3 -0
  79. package/dist/standalone/pieDiagram-DEJITSTG-D5Omb898.js +165 -0
  80. package/dist/standalone/purify.es-CZ_RvYUu.js +549 -0
  81. package/dist/standalone/quadrantDiagram-34T5L4WZ-Ct4g9T4o.js +1974 -0
  82. package/dist/standalone/radar-PYXPWWZC-B2t6k6Fg.js +3 -0
  83. package/dist/standalone/reduce-DbMsJ4nx.js +532 -0
  84. package/dist/standalone/requirementDiagram-MS252O5E-CP0BUgnz.js +2221 -0
  85. package/dist/standalone/rough.esm-UCEI3PYn.js +1352 -0
  86. package/dist/standalone/sankeyDiagram-XADWPNL6-D6C7yZ3k.js +920 -0
  87. package/dist/standalone/sequenceDiagram-FGHM5R23-KeodespT.js +4157 -0
  88. package/dist/standalone/src-CFVe5TPD.js +2146 -0
  89. package/dist/standalone/stateDiagram-FHFEXIEX-DAupoS9U.js +217 -0
  90. package/dist/standalone/stateDiagram-v2-QKLJ7IA2-C1Lw_i_z.js +27 -0
  91. package/dist/standalone/style.css +1 -0
  92. package/dist/standalone/timeline-definition-GMOUNBTQ-Cwhj84lX.js +1068 -0
  93. package/dist/standalone/treeView-SZITEDCU-BnoMeJSb.js +3 -0
  94. package/dist/standalone/treemap-W4RFUUIX-B38XFBZF.js +3 -0
  95. package/dist/standalone/vennDiagram-DHZGUBPP-_1PHloeO.js +1858 -0
  96. package/dist/standalone/wardley-RL74JXVD-bB8BBy_Y.js +3 -0
  97. package/dist/standalone/wardleyDiagram-NUSXRM2D-DRLCx-qh.js +578 -0
  98. package/dist/standalone/xychartDiagram-5P7HB3ND-Bz2-4Ufi.js +2044 -0
  99. package/dist/standalone-mount-core.d.ts +34 -0
  100. package/dist/standalone-mount-core.d.ts.map +1 -0
  101. package/dist/standalone-mount.d.ts +14 -0
  102. package/dist/standalone-mount.d.ts.map +1 -0
  103. package/dist/standalone.d.ts +8 -0
  104. package/dist/standalone.d.ts.map +1 -0
  105. package/package.json +12 -3
@@ -0,0 +1,2772 @@
1
+ import { t as e } from "./purify.es-CZ_RvYUu.js";
2
+ import { _ as t, g as n, h as r, m as i } from "./src-CFVe5TPD.js";
3
+ //#region ../../node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.js
4
+ var a = {
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 i = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - i;
40
+ switch (r) {
41
+ case "r": return a.hue2rgb(o, i, e + 1 / 3) * 255;
42
+ case "g": return a.hue2rgb(o, i, e) * 255;
43
+ case "b": return a.hue2rgb(o, i, 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
+ }, o = {
61
+ channel: a,
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
+ }, s = {};
71
+ for (let e = 0; e <= 255; e++) s[e] = o.unit.dec2hex(e);
72
+ var c = {
73
+ ALL: 0,
74
+ RGB: 1,
75
+ HSL: 2
76
+ }, l = class {
77
+ constructor() {
78
+ this.type = c.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 = c.ALL;
89
+ }
90
+ is(e) {
91
+ return this.type === e;
92
+ }
93
+ }, u = new class {
94
+ constructor(e, t) {
95
+ this.color = t, this.changed = !1, this.data = e, this.type = new l();
96
+ }
97
+ set(e, t) {
98
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = c.ALL, this;
99
+ }
100
+ _ensureHSL() {
101
+ let e = this.data, { h: t, s: n, l: r } = e;
102
+ t === void 0 && (e.h = o.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = o.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = o.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 = o.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = o.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = o.channel.hsl2rgb(e, "b"));
107
+ }
108
+ get r() {
109
+ let e = this.data, t = e.r;
110
+ return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "r"));
111
+ }
112
+ get g() {
113
+ let e = this.data, t = e.g;
114
+ return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "g"));
115
+ }
116
+ get b() {
117
+ let e = this.data, t = e.b;
118
+ return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "b"));
119
+ }
120
+ get h() {
121
+ let e = this.data, t = e.h;
122
+ return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "h"));
123
+ }
124
+ get s() {
125
+ let e = this.data, t = e.s;
126
+ return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "s"));
127
+ }
128
+ get l() {
129
+ let e = this.data, t = e.l;
130
+ return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "l"));
131
+ }
132
+ get a() {
133
+ return this.data.a;
134
+ }
135
+ set r(e) {
136
+ this.type.set(c.RGB), this.changed = !0, this.data.r = e;
137
+ }
138
+ set g(e) {
139
+ this.type.set(c.RGB), this.changed = !0, this.data.g = e;
140
+ }
141
+ set b(e) {
142
+ this.type.set(c.RGB), this.changed = !0, this.data.b = e;
143
+ }
144
+ set h(e) {
145
+ this.type.set(c.HSL), this.changed = !0, this.data.h = e;
146
+ }
147
+ set s(e) {
148
+ this.type.set(c.HSL), this.changed = !0, this.data.s = e;
149
+ }
150
+ set l(e) {
151
+ this.type.set(c.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"), d = {
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(d.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, l = a ? 0 : -1, f = o ? 255 : 15;
168
+ return u.set({
169
+ r: (r >> c * (l + 3) & f) * s,
170
+ g: (r >> c * (l + 2) & f) * s,
171
+ b: (r >> c * (l + 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 ? `#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}${s[Math.round(i * 255)]}` : `#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}`;
178
+ }
179
+ }, f = {
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(f.hueRe);
184
+ if (t) {
185
+ let [, e, n] = t;
186
+ switch (n) {
187
+ case "grad": return o.channel.clamp.h(parseFloat(e) * .9);
188
+ case "rad": return o.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
189
+ case "turn": return o.channel.clamp.h(parseFloat(e) * 360);
190
+ }
191
+ }
192
+ return o.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(f.re);
198
+ if (!n) return;
199
+ let [, r, i, a, s, c] = n;
200
+ return u.set({
201
+ h: f._hue2deg(r),
202
+ s: o.channel.clamp.s(parseFloat(i)),
203
+ l: o.channel.clamp.l(parseFloat(a)),
204
+ a: s ? o.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(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%, ${i})` : `hsl(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%)`;
210
+ }
211
+ }, p = {
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 = p.colors[e];
364
+ if (t) return d.parse(t);
365
+ },
366
+ stringify: (e) => {
367
+ let t = d.stringify(e);
368
+ for (let e in p.colors) if (p.colors[e] === t) return e;
369
+ }
370
+ }, m = {
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(m.re);
376
+ if (!n) return;
377
+ let [, r, i, a, s, c, l, d, f] = n;
378
+ return u.set({
379
+ r: o.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
380
+ g: o.channel.clamp.g(s ? parseFloat(a) * 2.55 : parseFloat(a)),
381
+ b: o.channel.clamp.b(l ? parseFloat(c) * 2.55 : parseFloat(c)),
382
+ a: d ? o.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(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)}, ${o.lang.round(i)})` : `rgb(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)})`;
388
+ }
389
+ }, h = {
390
+ format: {
391
+ keyword: p,
392
+ hex: d,
393
+ rgb: m,
394
+ rgba: m,
395
+ hsl: f,
396
+ hsla: f
397
+ },
398
+ parse: (e) => {
399
+ if (typeof e != "string") return e;
400
+ let t = d.parse(e) || m.parse(e) || f.parse(e) || p.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(c.HSL) || e.data.r === void 0 ? f.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? m.stringify(e) : d.stringify(e)
405
+ }, g = (e, t) => {
406
+ let n = h.parse(e);
407
+ for (let e in t) n[e] = o.channel.clamp[e](t[e]);
408
+ return h.stringify(n);
409
+ }, _ = (e, t, n = 0, r = 1) => {
410
+ if (typeof e != "number") return g(e, { a: t });
411
+ let i = u.set({
412
+ r: o.channel.clamp.r(e),
413
+ g: o.channel.clamp.g(t),
414
+ b: o.channel.clamp.b(n),
415
+ a: o.channel.clamp.a(r)
416
+ });
417
+ return h.stringify(i);
418
+ }, ee = (e) => {
419
+ let { r: t, g: n, b: r } = h.parse(e), i = .2126 * o.channel.toLinear(t) + .7152 * o.channel.toLinear(n) + .0722 * o.channel.toLinear(r);
420
+ return o.lang.round(i);
421
+ }, te = (e) => ee(e) >= .5, v = (e) => !te(e), y = (e, t, n) => {
422
+ let r = h.parse(e), i = r[t], a = o.channel.clamp[t](i + n);
423
+ return i !== a && (r[t] = a), h.stringify(r);
424
+ }, b = (e, t) => y(e, "l", t), x = (e, t) => y(e, "l", -t), S = (e, t) => {
425
+ let n = h.parse(e), r = {};
426
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
427
+ return g(e, r);
428
+ }, ne = (e, t, n = 50) => {
429
+ let { r, g: i, b: a, a: o } = h.parse(e), { r: s, g: c, b: l, a: u } = h.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, m = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, g = 1 - m;
430
+ return _(r * m + s * g, i * m + c * g, a * m + l * g, o * d + u * (1 - d));
431
+ }, C = (e, t = 100) => {
432
+ let n = h.parse(e);
433
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
434
+ }, re = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ie = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ae = /\s*%%.*\n/gm, oe = class extends Error {
435
+ static {
436
+ r(this, "UnknownDiagramError");
437
+ }
438
+ constructor(e) {
439
+ super(e), this.name = "UnknownDiagramError";
440
+ }
441
+ }, w = {}, se = /* @__PURE__ */ r(function(e, t) {
442
+ e = e.replace(re, "").replace(ie, "").replace(ae, "\n");
443
+ for (let [n, { detector: r }] of Object.entries(w)) if (r(e, t)) return n;
444
+ throw new oe(`No diagram type detected matching given configuration for text: ${e}`);
445
+ }, "detectType"), ce = /* @__PURE__ */ r((...e) => {
446
+ for (let { id: t, detector: n, loader: r } of e) le(t, n, r);
447
+ }, "registerLazyLoadedDiagrams"), le = /* @__PURE__ */ r((e, t, r) => {
448
+ w[e] && n.warn(`Detector with key ${e} already exists. Overwriting.`), w[e] = {
449
+ detector: t,
450
+ loader: r
451
+ }, n.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
452
+ }, "addDetector"), ue = /* @__PURE__ */ r((e) => w[e].loader, "getDiagramLoader"), T = /* @__PURE__ */ r((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
453
+ let i = {
454
+ depth: n,
455
+ clobber: r
456
+ };
457
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => T(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
458
+ e.includes(t) || e.push(t);
459
+ }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
460
+ typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = T(e[i], t[i], {
461
+ depth: n - 1,
462
+ clobber: r
463
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
464
+ }), e);
465
+ }, "assignWithDepth"), E = T, D = "#ffffff", O = "#f2f2f2", k = /* @__PURE__ */ r((e, t) => t ? S(e, {
466
+ s: -40,
467
+ l: 10
468
+ }) : S(e, {
469
+ s: -40,
470
+ l: -10
471
+ }), "mkBorder"), de = class {
472
+ static {
473
+ r(this, "Theme");
474
+ }
475
+ constructor() {
476
+ 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))";
477
+ }
478
+ updateColors() {
479
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
480
+ h: 180,
481
+ l: 5
482
+ }), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || x(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || x(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || b(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || b(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 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, {
483
+ h: 210,
484
+ l: 150
485
+ }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
486
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
487
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
488
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
489
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
490
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
491
+ let e = this.darkMode ? -4 : -1;
492
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
493
+ h: 180,
494
+ s: -15,
495
+ l: e * (5 + t * 3)
496
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
497
+ h: 180,
498
+ s: -15,
499
+ l: e * (8 + t * 3)
500
+ });
501
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(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 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
502
+ h: 60,
503
+ l: -10
504
+ }), this.pie8 = this.pie8 || S(this.primaryColor, {
505
+ h: -60,
506
+ l: -10
507
+ }), this.pie9 = this.pie9 || S(this.primaryColor, {
508
+ h: 120,
509
+ l: 0
510
+ }), this.pie10 = this.pie10 || S(this.primaryColor, {
511
+ h: 60,
512
+ l: -20
513
+ }), this.pie11 = this.pie11 || S(this.primaryColor, {
514
+ h: -60,
515
+ l: -20
516
+ }), this.pie12 = this.pie12 || S(this.primaryColor, {
517
+ h: 120,
518
+ l: -10
519
+ }), 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 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
520
+ h: 60,
521
+ l: -30
522
+ }), this.venn5 = this.venn5 ?? S(this.primaryColor, {
523
+ h: -60,
524
+ l: -30
525
+ }), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
526
+ h: 60,
527
+ l: -30
528
+ }), this.venn7 = this.venn7 ?? S(this.primaryColor, {
529
+ h: 120,
530
+ l: -30
531
+ }), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
532
+ h: 120,
533
+ l: -30
534
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
535
+ axisColor: this.radar?.axisColor || this.lineColor,
536
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
537
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
538
+ curveOpacity: this.radar?.curveOpacity || .5,
539
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
540
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
541
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
542
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
543
+ legendBoxSize: this.radar?.legendBoxSize || 12,
544
+ legendFontSize: this.radar?.legendFontSize || 12
545
+ }, 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 || S(this.primaryColor, {
546
+ r: 5,
547
+ g: 5,
548
+ b: 5
549
+ }), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
550
+ r: 10,
551
+ g: 10,
552
+ b: 10
553
+ }), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
554
+ r: 15,
555
+ g: 15,
556
+ b: 15
557
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
558
+ r: -5,
559
+ g: -5,
560
+ b: -5
561
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
562
+ r: -10,
563
+ g: -10,
564
+ b: -10
565
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
566
+ r: -15,
567
+ g: -15,
568
+ b: -15
569
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
570
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
571
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
572
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
573
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
574
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
575
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
576
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
577
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
578
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
579
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
580
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
581
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
582
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
583
+ }
584
+ calculate(e) {
585
+ if (typeof e != "object") {
586
+ this.updateColors();
587
+ return;
588
+ }
589
+ let t = Object.keys(e);
590
+ t.forEach((t) => {
591
+ this[t] = e[t];
592
+ }), this.updateColors(), t.forEach((t) => {
593
+ this[t] = e[t];
594
+ });
595
+ }
596
+ }, fe = /* @__PURE__ */ r((e) => {
597
+ let t = new de();
598
+ return t.calculate(e), t;
599
+ }, "getThemeVariables"), pe = class {
600
+ static {
601
+ r(this, "Theme");
602
+ }
603
+ constructor() {
604
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = x("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = x(this.sectionBkgColor, 10), this.taskBorderColor = _(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = _(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 || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || x(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
605
+ }
606
+ updateColors() {
607
+ this.secondBkg = b(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 = b(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = b(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 = C(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 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(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 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 });
608
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
609
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
610
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
611
+ h: 30,
612
+ s: -30,
613
+ l: -(-10 + e * 4)
614
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
615
+ h: 30,
616
+ s: -30,
617
+ l: -(-7 + e * 4)
618
+ });
619
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
620
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
621
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
622
+ 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";
623
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? b(this["cScale" + e], 30);
624
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
625
+ r: 5,
626
+ g: 5,
627
+ b: 5
628
+ }), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
629
+ r: 10,
630
+ g: 10,
631
+ b: 10
632
+ }), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
633
+ r: 15,
634
+ g: 15,
635
+ b: 15
636
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
637
+ r: -5,
638
+ g: -5,
639
+ b: -5
640
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
641
+ r: -10,
642
+ g: -10,
643
+ b: -10
644
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
645
+ r: -15,
646
+ g: -15,
647
+ b: -15
648
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
649
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
650
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
651
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
652
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
653
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
654
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
655
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
656
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
657
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
658
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
659
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
660
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
661
+ }, this.packet = {
662
+ startByteColor: this.primaryTextColor,
663
+ endByteColor: this.primaryTextColor,
664
+ labelColor: this.primaryTextColor,
665
+ titleColor: this.primaryTextColor,
666
+ blockStrokeColor: this.primaryTextColor,
667
+ blockFillColor: this.background
668
+ }, this.radar = {
669
+ axisColor: this.radar?.axisColor || this.lineColor,
670
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
671
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
672
+ curveOpacity: this.radar?.curveOpacity || .5,
673
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
674
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
675
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
676
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
677
+ legendBoxSize: this.radar?.legendBoxSize || 12,
678
+ legendFontSize: this.radar?.legendFontSize || 12
679
+ }, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.secondaryColor, 20), this.git1 = b(this.pie2 || this.secondaryColor, 20), this.git2 = b(this.pie3 || this.tertiaryColor, 20), this.git3 = b(this.pie4 || S(this.primaryColor, { h: -30 }), 20), this.git4 = b(this.pie5 || S(this.primaryColor, { h: -60 }), 20), this.git5 = b(this.pie6 || S(this.primaryColor, { h: -90 }), 10), this.git6 = b(this.pie7 || S(this.primaryColor, { h: 60 }), 10), this.git7 = b(this.pie8 || S(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || b(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || b(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
680
+ }
681
+ calculate(e) {
682
+ if (typeof e != "object") {
683
+ this.updateColors();
684
+ return;
685
+ }
686
+ let t = Object.keys(e);
687
+ t.forEach((t) => {
688
+ this[t] = e[t];
689
+ }), this.updateColors(), t.forEach((t) => {
690
+ this[t] = e[t];
691
+ });
692
+ }
693
+ }, me = /* @__PURE__ */ r((e) => {
694
+ let t = new pe();
695
+ return t.calculate(e), t;
696
+ }, "getThemeVariables"), he = class {
697
+ static {
698
+ r(this, "Theme");
699
+ }
700
+ constructor() {
701
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = S(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = k(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 = _(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();
702
+ }
703
+ updateColors() {
704
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || x(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || x(this.tertiaryColor, 40);
705
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 25);
706
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e], { h: 180 });
707
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
708
+ h: 30,
709
+ l: -(5 + e * 5)
710
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
711
+ h: 30,
712
+ l: -(7 + e * 5)
713
+ });
714
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
715
+ this.cScaleLabel0 = this.cScaleLabel0 || C(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || C(this.labelTextColor);
716
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
717
+ }
718
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || b(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || b(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 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || S(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || S(this.primaryColor, {
719
+ h: 60,
720
+ l: -20
721
+ }), this.pie8 = this.pie8 || S(this.primaryColor, {
722
+ h: -60,
723
+ l: -40
724
+ }), this.pie9 = this.pie9 || S(this.primaryColor, {
725
+ h: 120,
726
+ l: -40
727
+ }), this.pie10 = this.pie10 || S(this.primaryColor, {
728
+ h: 60,
729
+ l: -40
730
+ }), this.pie11 = this.pie11 || S(this.primaryColor, {
731
+ h: -90,
732
+ l: -40
733
+ }), this.pie12 = this.pie12 || S(this.primaryColor, {
734
+ h: 120,
735
+ l: -30
736
+ }), 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 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
737
+ h: 60,
738
+ l: -30
739
+ }), this.venn5 = this.venn5 ?? S(this.primaryColor, {
740
+ h: -60,
741
+ l: -30
742
+ }), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
743
+ h: 60,
744
+ l: -30
745
+ }), this.venn7 = this.venn7 ?? S(this.primaryColor, {
746
+ h: 120,
747
+ l: -30
748
+ }), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
749
+ h: 120,
750
+ l: -30
751
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
752
+ r: 5,
753
+ g: 5,
754
+ b: 5
755
+ }), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
756
+ r: 10,
757
+ g: 10,
758
+ b: 10
759
+ }), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
760
+ r: 15,
761
+ g: 15,
762
+ b: 15
763
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
764
+ r: -5,
765
+ g: -5,
766
+ b: -5
767
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
768
+ r: -10,
769
+ g: -10,
770
+ b: -10
771
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
772
+ r: -15,
773
+ g: -15,
774
+ b: -15
775
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
776
+ axisColor: this.radar?.axisColor || this.lineColor,
777
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
778
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
779
+ curveOpacity: this.radar?.curveOpacity || .5,
780
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
781
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
782
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
783
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
784
+ legendBoxSize: this.radar?.legendBoxSize || 12,
785
+ legendFontSize: this.radar?.legendFontSize || 12
786
+ }, this.xyChart = {
787
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
788
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
789
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
790
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
791
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
792
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
793
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
794
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
795
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
796
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
797
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
798
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
799
+ }, 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 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || x(C(this.git0), 25), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
800
+ }
801
+ calculate(e) {
802
+ if (Object.keys(this).forEach((e) => {
803
+ this[e] === "calculated" && (this[e] = void 0);
804
+ }), typeof e != "object") {
805
+ this.updateColors();
806
+ return;
807
+ }
808
+ let t = Object.keys(e);
809
+ t.forEach((t) => {
810
+ this[t] = e[t];
811
+ }), this.updateColors(), t.forEach((t) => {
812
+ this[t] = e[t];
813
+ });
814
+ }
815
+ }, ge = /* @__PURE__ */ r((e) => {
816
+ let t = new he();
817
+ return t.calculate(e), t;
818
+ }, "getThemeVariables"), _e = class {
819
+ static {
820
+ r(this, "Theme");
821
+ }
822
+ constructor() {
823
+ 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 = b("#cde498", 10), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.primaryColor), this.lineColor = C(this.background), this.textColor = C(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))";
824
+ }
825
+ updateColors() {
826
+ this.actorBorder = x(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || x(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || x(this.tertiaryColor, 40);
827
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 25);
828
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e], { h: 180 });
829
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
830
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
831
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
832
+ h: 30,
833
+ s: -30,
834
+ l: -(5 + e * 5)
835
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
836
+ h: 30,
837
+ s: -30,
838
+ l: -(8 + e * 5)
839
+ });
840
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || b(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || b(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 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(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 || S(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || S(this.tertiaryColor, {
841
+ h: 40,
842
+ l: -40
843
+ }), this.pie7 = this.pie7 || S(this.primaryColor, {
844
+ h: 60,
845
+ l: -10
846
+ }), this.pie8 = this.pie8 || S(this.primaryColor, {
847
+ h: -60,
848
+ l: -10
849
+ }), this.pie9 = this.pie9 || S(this.primaryColor, {
850
+ h: 120,
851
+ l: 0
852
+ }), this.pie10 = this.pie10 || S(this.primaryColor, {
853
+ h: 60,
854
+ l: -50
855
+ }), this.pie11 = this.pie11 || S(this.primaryColor, {
856
+ h: -60,
857
+ l: -50
858
+ }), this.pie12 = this.pie12 || S(this.primaryColor, {
859
+ h: 120,
860
+ l: -50
861
+ }), 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 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
862
+ h: 60,
863
+ l: -30
864
+ }), this.venn5 = this.venn5 ?? S(this.primaryColor, {
865
+ h: -60,
866
+ l: -30
867
+ }), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
868
+ h: 60,
869
+ l: -30
870
+ }), this.venn7 = this.venn7 ?? S(this.primaryColor, {
871
+ h: 120,
872
+ l: -30
873
+ }), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
874
+ h: 120,
875
+ l: -30
876
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
877
+ r: 5,
878
+ g: 5,
879
+ b: 5
880
+ }), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
881
+ r: 10,
882
+ g: 10,
883
+ b: 10
884
+ }), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
885
+ r: 15,
886
+ g: 15,
887
+ b: 15
888
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
889
+ r: -5,
890
+ g: -5,
891
+ b: -5
892
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
893
+ r: -10,
894
+ g: -10,
895
+ b: -10
896
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
897
+ r: -15,
898
+ g: -15,
899
+ b: -15
900
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
901
+ startByteColor: this.primaryTextColor,
902
+ endByteColor: this.primaryTextColor,
903
+ labelColor: this.primaryTextColor,
904
+ titleColor: this.primaryTextColor,
905
+ blockStrokeColor: this.primaryTextColor,
906
+ blockFillColor: this.mainBkg
907
+ }, this.radar = {
908
+ axisColor: this.radar?.axisColor || this.lineColor,
909
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
910
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
911
+ curveOpacity: this.radar?.curveOpacity || .5,
912
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
913
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
914
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
915
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
916
+ legendBoxSize: this.radar?.legendBoxSize || 12,
917
+ legendFontSize: this.radar?.legendFontSize || 12
918
+ }, this.xyChart = {
919
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
920
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
921
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
922
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
923
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
924
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
925
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
926
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
927
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
928
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
929
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
930
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
931
+ }, 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 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
932
+ }
933
+ calculate(e) {
934
+ if (typeof e != "object") {
935
+ this.updateColors();
936
+ return;
937
+ }
938
+ let t = Object.keys(e);
939
+ t.forEach((t) => {
940
+ this[t] = e[t];
941
+ }), this.updateColors(), t.forEach((t) => {
942
+ this[t] = e[t];
943
+ });
944
+ }
945
+ }, ve = /* @__PURE__ */ r((e) => {
946
+ let t = new _e();
947
+ return t.calculate(e), t;
948
+ }, "getThemeVariables"), ye = class {
949
+ static {
950
+ r(this, "Theme");
951
+ }
952
+ constructor() {
953
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = b(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(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 || b(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))";
954
+ }
955
+ updateColors() {
956
+ this.secondBkg = b(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = b(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
957
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
958
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
959
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
960
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
961
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, { l: -(8 + e * 5) });
962
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = b(this.contrast, 30), this.sectionBkgColor2 = b(this.contrast, 30), this.taskBorderColor = x(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = b(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = x(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(this.secondaryColor, { h: 128 });
963
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
964
+ 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";
965
+ for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
966
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
967
+ r: 5,
968
+ g: 5,
969
+ b: 5
970
+ }), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
971
+ r: 10,
972
+ g: 10,
973
+ b: 10
974
+ }), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
975
+ r: 15,
976
+ g: 15,
977
+ b: 15
978
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
979
+ r: -5,
980
+ g: -5,
981
+ b: -5
982
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
983
+ r: -10,
984
+ g: -10,
985
+ b: -10
986
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
987
+ r: -15,
988
+ g: -15,
989
+ b: -15
990
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
991
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
992
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
993
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
994
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
995
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
996
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
997
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
998
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
999
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1000
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1001
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1002
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1003
+ }, this.radar = {
1004
+ axisColor: this.radar?.axisColor || this.lineColor,
1005
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1006
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1007
+ curveOpacity: this.radar?.curveOpacity || .5,
1008
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1009
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1010
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1011
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1012
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1013
+ legendFontSize: this.radar?.legendFontSize || 12
1014
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = x(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || S(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || S(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || S(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || S(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || S(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
1015
+ }
1016
+ calculate(e) {
1017
+ if (typeof e != "object") {
1018
+ this.updateColors();
1019
+ return;
1020
+ }
1021
+ let t = Object.keys(e);
1022
+ t.forEach((t) => {
1023
+ this[t] = e[t];
1024
+ }), this.updateColors(), t.forEach((t) => {
1025
+ this[t] = e[t];
1026
+ });
1027
+ }
1028
+ }, be = /* @__PURE__ */ r((e) => {
1029
+ let t = new ye();
1030
+ return t.calculate(e), t;
1031
+ }, "getThemeVariables"), xe = class {
1032
+ static {
1033
+ r(this, "Theme");
1034
+ }
1035
+ constructor() {
1036
+ 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 = k(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";
1037
+ }
1038
+ updateColors() {
1039
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
1040
+ h: 180,
1041
+ l: 5
1042
+ }), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor);
1043
+ let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
1044
+ h: 180,
1045
+ l: 5
1046
+ });
1047
+ 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 || b(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 || S(e, { h: 30 }), this.cScale4 = this.cScale4 || S(e, { h: 60 }), this.cScale5 = this.cScale5 || S(e, { h: 90 }), this.cScale6 = this.cScale6 || S(e, { h: 120 }), this.cScale7 = this.cScale7 || S(e, { h: 150 }), this.cScale8 = this.cScale8 || S(e, {
1048
+ h: 210,
1049
+ l: 150
1050
+ }), this.cScale9 = this.cScale9 || S(e, { h: 270 }), this.cScale10 = this.cScale10 || S(e, { h: 300 }), this.cScale11 = this.cScale11 || S(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
1051
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
1052
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1053
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
1054
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1055
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1056
+ let r = this.darkMode ? -4 : -1;
1057
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
1058
+ h: 180,
1059
+ s: -15,
1060
+ l: r * (5 + e * 3)
1061
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
1062
+ h: 180,
1063
+ s: -15,
1064
+ l: r * (8 + e * 3)
1065
+ });
1066
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
1067
+ h: 60,
1068
+ l: -10
1069
+ }), this.pie8 = this.pie8 || S(e, {
1070
+ h: -60,
1071
+ l: -10
1072
+ }), this.pie9 = this.pie9 || S(e, {
1073
+ h: 120,
1074
+ l: 0
1075
+ }), this.pie10 = this.pie10 || S(e, {
1076
+ h: 60,
1077
+ l: -20
1078
+ }), this.pie11 = this.pie11 || S(e, {
1079
+ h: -60,
1080
+ l: -20
1081
+ }), this.pie12 = this.pie12 || S(e, {
1082
+ h: 120,
1083
+ l: -10
1084
+ }), 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 || S(e, {
1085
+ r: 5,
1086
+ g: 5,
1087
+ b: 5
1088
+ }), this.quadrant3Fill = this.quadrant3Fill || S(e, {
1089
+ r: 10,
1090
+ g: 10,
1091
+ b: 10
1092
+ }), this.quadrant4Fill = this.quadrant4Fill || S(e, {
1093
+ r: 15,
1094
+ g: 15,
1095
+ b: 15
1096
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
1097
+ r: -5,
1098
+ g: -5,
1099
+ b: -5
1100
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
1101
+ r: -10,
1102
+ g: -10,
1103
+ b: -10
1104
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
1105
+ r: -15,
1106
+ g: -15,
1107
+ b: -15
1108
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1109
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1110
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1111
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1112
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1113
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1114
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1115
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1116
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1117
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1118
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1119
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1120
+ }, 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 ? x(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 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { h: 120 }), this.darkMode ? (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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
1121
+ }
1122
+ calculate(e) {
1123
+ if (typeof e != "object") {
1124
+ this.updateColors();
1125
+ return;
1126
+ }
1127
+ let t = Object.keys(e);
1128
+ t.forEach((t) => {
1129
+ this[t] = e[t];
1130
+ }), this.updateColors(), t.forEach((t) => {
1131
+ this[t] = e[t];
1132
+ });
1133
+ }
1134
+ }, Se = /* @__PURE__ */ r((e) => {
1135
+ let t = new xe();
1136
+ return t.calculate(e), t;
1137
+ }, "getThemeVariables"), Ce = class {
1138
+ static {
1139
+ r(this, "Theme");
1140
+ }
1141
+ constructor() {
1142
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(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";
1143
+ }
1144
+ updateColors() {
1145
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
1146
+ h: 180,
1147
+ l: 5
1148
+ }), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, {
1149
+ h: 210,
1150
+ l: 150
1151
+ }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
1152
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
1153
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1154
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
1155
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1156
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1157
+ let e = this.darkMode ? -4 : -1;
1158
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
1159
+ h: 180,
1160
+ s: -15,
1161
+ l: e * (5 + t * 3)
1162
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
1163
+ h: 180,
1164
+ s: -15,
1165
+ l: e * (8 + t * 3)
1166
+ });
1167
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(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 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
1168
+ h: 60,
1169
+ l: -10
1170
+ }), this.pie8 = this.pie8 || S(this.primaryColor, {
1171
+ h: -60,
1172
+ l: -10
1173
+ }), this.pie9 = this.pie9 || S(this.primaryColor, {
1174
+ h: 120,
1175
+ l: 0
1176
+ }), this.pie10 = this.pie10 || S(this.primaryColor, {
1177
+ h: 60,
1178
+ l: -20
1179
+ }), this.pie11 = this.pie11 || S(this.primaryColor, {
1180
+ h: -60,
1181
+ l: -20
1182
+ }), this.pie12 = this.pie12 || S(this.primaryColor, {
1183
+ h: 120,
1184
+ l: -10
1185
+ }), 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 || S(this.primaryColor, {
1186
+ r: 5,
1187
+ g: 5,
1188
+ b: 5
1189
+ }), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
1190
+ r: 10,
1191
+ g: 10,
1192
+ b: 10
1193
+ }), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
1194
+ r: 15,
1195
+ g: 15,
1196
+ b: 15
1197
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
1198
+ r: -5,
1199
+ g: -5,
1200
+ b: -5
1201
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
1202
+ r: -10,
1203
+ g: -10,
1204
+ b: -10
1205
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
1206
+ r: -15,
1207
+ g: -15,
1208
+ b: -15
1209
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1210
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1211
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1212
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1213
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1214
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1215
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1216
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1217
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1218
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1219
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1220
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1221
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = 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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
1222
+ }
1223
+ calculate(e) {
1224
+ if (typeof e != "object") {
1225
+ this.updateColors();
1226
+ return;
1227
+ }
1228
+ let t = Object.keys(e);
1229
+ t.forEach((t) => {
1230
+ this[t] = e[t];
1231
+ }), this.updateColors(), t.forEach((t) => {
1232
+ this[t] = e[t];
1233
+ });
1234
+ }
1235
+ }, we = /* @__PURE__ */ r((e) => {
1236
+ let t = new Ce();
1237
+ return t.calculate(e), t;
1238
+ }, "getThemeVariables"), Te = class {
1239
+ static {
1240
+ r(this, "Theme");
1241
+ }
1242
+ constructor() {
1243
+ 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 = k("#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";
1244
+ }
1245
+ updateColors() {
1246
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
1247
+ h: 180,
1248
+ l: 5
1249
+ }), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor);
1250
+ let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
1251
+ h: 180,
1252
+ l: 5
1253
+ });
1254
+ 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 || b(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;
1255
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
1256
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
1257
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
1258
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1259
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
1260
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1261
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1262
+ let r = this.darkMode ? -4 : -1;
1263
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
1264
+ h: 180,
1265
+ s: -15,
1266
+ l: r * (5 + e * 3)
1267
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
1268
+ h: 180,
1269
+ s: -15,
1270
+ l: r * (8 + e * 3)
1271
+ });
1272
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
1273
+ h: 60,
1274
+ l: -10
1275
+ }), this.pie8 = this.pie8 || S(e, {
1276
+ h: -60,
1277
+ l: -10
1278
+ }), this.pie9 = this.pie9 || S(e, {
1279
+ h: 120,
1280
+ l: 0
1281
+ }), this.pie10 = this.pie10 || S(e, {
1282
+ h: 60,
1283
+ l: -20
1284
+ }), this.pie11 = this.pie11 || S(e, {
1285
+ h: -60,
1286
+ l: -20
1287
+ }), this.pie12 = this.pie12 || S(e, {
1288
+ h: 120,
1289
+ l: -10
1290
+ }), 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 || S(e, {
1291
+ r: 5,
1292
+ g: 5,
1293
+ b: 5
1294
+ }), this.quadrant3Fill = this.quadrant3Fill || S(e, {
1295
+ r: 10,
1296
+ g: 10,
1297
+ b: 10
1298
+ }), this.quadrant4Fill = this.quadrant4Fill || S(e, {
1299
+ r: 15,
1300
+ g: 15,
1301
+ b: 15
1302
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
1303
+ r: -5,
1304
+ g: -5,
1305
+ b: -5
1306
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
1307
+ r: -10,
1308
+ g: -10,
1309
+ b: -10
1310
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
1311
+ r: -15,
1312
+ g: -15,
1313
+ b: -15
1314
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1315
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1316
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1317
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1318
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1319
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1320
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1321
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1322
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1323
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1324
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1325
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1326
+ }, 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 ? x(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 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { h: 120 }), this.darkMode ? (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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
1327
+ }
1328
+ calculate(e) {
1329
+ if (typeof e != "object") {
1330
+ this.updateColors();
1331
+ return;
1332
+ }
1333
+ let t = Object.keys(e);
1334
+ t.forEach((t) => {
1335
+ this[t] = e[t];
1336
+ }), this.updateColors(), t.forEach((t) => {
1337
+ this[t] = e[t];
1338
+ });
1339
+ }
1340
+ }, Ee = /* @__PURE__ */ r((e) => {
1341
+ let t = new Te();
1342
+ return t.calculate(e), t;
1343
+ }, "getThemeVariables"), De = class {
1344
+ static {
1345
+ r(this, "Theme");
1346
+ }
1347
+ constructor() {
1348
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(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";
1349
+ }
1350
+ updateColors() {
1351
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
1352
+ h: 180,
1353
+ l: 5
1354
+ }), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, {
1355
+ h: 210,
1356
+ l: 150
1357
+ }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
1358
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
1359
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1360
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
1361
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1362
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1363
+ let e = this.darkMode ? -4 : -1;
1364
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
1365
+ h: 180,
1366
+ s: -15,
1367
+ l: e * (5 + t * 3)
1368
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
1369
+ h: 180,
1370
+ s: -15,
1371
+ l: e * (8 + t * 3)
1372
+ });
1373
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(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 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
1374
+ h: 60,
1375
+ l: -10
1376
+ }), this.pie8 = this.pie8 || S(this.primaryColor, {
1377
+ h: -60,
1378
+ l: -10
1379
+ }), this.pie9 = this.pie9 || S(this.primaryColor, {
1380
+ h: 120,
1381
+ l: 0
1382
+ }), this.pie10 = this.pie10 || S(this.primaryColor, {
1383
+ h: 60,
1384
+ l: -20
1385
+ }), this.pie11 = this.pie11 || S(this.primaryColor, {
1386
+ h: -60,
1387
+ l: -20
1388
+ }), this.pie12 = this.pie12 || S(this.primaryColor, {
1389
+ h: 120,
1390
+ l: -10
1391
+ }), 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 || S(this.primaryColor, {
1392
+ r: 5,
1393
+ g: 5,
1394
+ b: 5
1395
+ }), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
1396
+ r: 10,
1397
+ g: 10,
1398
+ b: 10
1399
+ }), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
1400
+ r: 15,
1401
+ g: 15,
1402
+ b: 15
1403
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
1404
+ r: -5,
1405
+ g: -5,
1406
+ b: -5
1407
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
1408
+ r: -10,
1409
+ g: -10,
1410
+ b: -10
1411
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
1412
+ r: -15,
1413
+ g: -15,
1414
+ b: -15
1415
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1416
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1417
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1418
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1419
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1420
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1421
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1422
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1423
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1424
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1425
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1426
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1427
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
1428
+ }
1429
+ calculate(e) {
1430
+ if (typeof e != "object") {
1431
+ this.updateColors();
1432
+ return;
1433
+ }
1434
+ let t = Object.keys(e);
1435
+ t.forEach((t) => {
1436
+ this[t] = e[t];
1437
+ }), this.updateColors(), t.forEach((t) => {
1438
+ this[t] = e[t];
1439
+ });
1440
+ }
1441
+ }, Oe = /* @__PURE__ */ r((e) => {
1442
+ let t = new De();
1443
+ return t.calculate(e), t;
1444
+ }, "getThemeVariables"), ke = class {
1445
+ static {
1446
+ r(this, "Theme");
1447
+ }
1448
+ constructor() {
1449
+ 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 = k(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
1450
+ "#E879F9",
1451
+ "#2DD4BF",
1452
+ "#FB923C",
1453
+ "#22D3EE",
1454
+ "#4ADE80",
1455
+ "#A78BFA",
1456
+ "#F87171",
1457
+ "#FACC15",
1458
+ "#818CF8",
1459
+ "#A3E635 ",
1460
+ "#38BDF8",
1461
+ "#FB7185"
1462
+ ], this.bkgColorArray = [
1463
+ "#FDF4FF",
1464
+ "#F0FDFA",
1465
+ "#FFF7ED",
1466
+ "#ECFEFF",
1467
+ "#F0FDF4",
1468
+ "#F5F3FF",
1469
+ "#FEF2F2",
1470
+ "#FEFCE8",
1471
+ "#EEF2FF",
1472
+ "#F7FEE7",
1473
+ "#F0F9FF",
1474
+ "#FFF1F2"
1475
+ ], this.filterColor = "#000000";
1476
+ }
1477
+ updateColors() {
1478
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
1479
+ h: 180,
1480
+ l: 5
1481
+ }), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor);
1482
+ let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
1483
+ h: 180,
1484
+ l: 5
1485
+ });
1486
+ 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 || b(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
1487
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1488
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
1489
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1490
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1491
+ let r = this.darkMode ? -4 : -1;
1492
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
1493
+ h: 180,
1494
+ s: -15,
1495
+ l: r * (5 + e * 3)
1496
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
1497
+ h: 180,
1498
+ s: -15,
1499
+ l: r * (8 + e * 3)
1500
+ });
1501
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
1502
+ h: 60,
1503
+ l: -10
1504
+ }), this.pie8 = this.pie8 || S(e, {
1505
+ h: -60,
1506
+ l: -10
1507
+ }), this.pie9 = this.pie9 || S(e, {
1508
+ h: 120,
1509
+ l: 0
1510
+ }), this.pie10 = this.pie10 || S(e, {
1511
+ h: 60,
1512
+ l: -20
1513
+ }), this.pie11 = this.pie11 || S(e, {
1514
+ h: -60,
1515
+ l: -20
1516
+ }), this.pie12 = this.pie12 || S(e, {
1517
+ h: 120,
1518
+ l: -10
1519
+ }), 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 || S(e, {
1520
+ r: 5,
1521
+ g: 5,
1522
+ b: 5
1523
+ }), this.quadrant3Fill = this.quadrant3Fill || S(e, {
1524
+ r: 10,
1525
+ g: 10,
1526
+ b: 10
1527
+ }), this.quadrant4Fill = this.quadrant4Fill || S(e, {
1528
+ r: 15,
1529
+ g: 15,
1530
+ b: 15
1531
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
1532
+ r: -5,
1533
+ g: -5,
1534
+ b: -5
1535
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
1536
+ r: -10,
1537
+ g: -10,
1538
+ b: -10
1539
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
1540
+ r: -15,
1541
+ g: -15,
1542
+ b: -15
1543
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1544
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1545
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1546
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1547
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1548
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1549
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1550
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1551
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1552
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1553
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1554
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1555
+ }, 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 ? x(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 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { h: 120 }), this.darkMode ? (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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
1556
+ }
1557
+ calculate(e) {
1558
+ if (typeof e != "object") {
1559
+ this.updateColors();
1560
+ return;
1561
+ }
1562
+ let t = Object.keys(e);
1563
+ t.forEach((t) => {
1564
+ this[t] = e[t];
1565
+ }), this.updateColors(), t.forEach((t) => {
1566
+ this[t] = e[t];
1567
+ });
1568
+ }
1569
+ }, Ae = /* @__PURE__ */ r((e) => {
1570
+ let t = new ke();
1571
+ return t.calculate(e), t;
1572
+ }, "getThemeVariables"), je = class {
1573
+ static {
1574
+ r(this, "Theme");
1575
+ }
1576
+ constructor() {
1577
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(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 = [
1578
+ "#E879F9",
1579
+ "#2DD4BF",
1580
+ "#FB923C",
1581
+ "#22D3EE",
1582
+ "#4ADE80",
1583
+ "#A78BFA",
1584
+ "#F87171",
1585
+ "#FACC15",
1586
+ "#818CF8",
1587
+ "#A3E635 ",
1588
+ "#38BDF8",
1589
+ "#FB7185"
1590
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
1591
+ }
1592
+ updateColors() {
1593
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
1594
+ h: 180,
1595
+ l: 5
1596
+ }), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
1597
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
1598
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
1599
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1600
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = x(this["cScale" + e], 75);
1601
+ let e = this.darkMode ? -4 : -1;
1602
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
1603
+ h: 180,
1604
+ s: -15,
1605
+ l: e * (5 + t * 3)
1606
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
1607
+ h: 180,
1608
+ s: -15,
1609
+ l: e * (8 + t * 3)
1610
+ });
1611
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(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 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
1612
+ h: 60,
1613
+ l: -10
1614
+ }), this.pie8 = this.pie8 || S(this.primaryColor, {
1615
+ h: -60,
1616
+ l: -10
1617
+ }), this.pie9 = this.pie9 || S(this.primaryColor, {
1618
+ h: 120,
1619
+ l: 0
1620
+ }), this.pie10 = this.pie10 || S(this.primaryColor, {
1621
+ h: 60,
1622
+ l: -20
1623
+ }), this.pie11 = this.pie11 || S(this.primaryColor, {
1624
+ h: -60,
1625
+ l: -20
1626
+ }), this.pie12 = this.pie12 || S(this.primaryColor, {
1627
+ h: 120,
1628
+ l: -10
1629
+ }), 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 || S(this.primaryColor, {
1630
+ r: 5,
1631
+ g: 5,
1632
+ b: 5
1633
+ }), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
1634
+ r: 10,
1635
+ g: 10,
1636
+ b: 10
1637
+ }), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
1638
+ r: 15,
1639
+ g: 15,
1640
+ b: 15
1641
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
1642
+ r: -5,
1643
+ g: -5,
1644
+ b: -5
1645
+ }), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
1646
+ r: -10,
1647
+ g: -10,
1648
+ b: -10
1649
+ }), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
1650
+ r: -15,
1651
+ g: -15,
1652
+ b: -15
1653
+ }), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1654
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1655
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1656
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1657
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1658
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1659
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1660
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1661
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1662
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1663
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1664
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1665
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (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.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
1666
+ }
1667
+ calculate(e) {
1668
+ if (typeof e != "object") {
1669
+ this.updateColors();
1670
+ return;
1671
+ }
1672
+ let t = Object.keys(e);
1673
+ t.forEach((t) => {
1674
+ this[t] = e[t];
1675
+ }), this.updateColors(), t.forEach((t) => {
1676
+ this[t] = e[t];
1677
+ });
1678
+ }
1679
+ }, A = {
1680
+ base: { getThemeVariables: fe },
1681
+ dark: { getThemeVariables: me },
1682
+ default: { getThemeVariables: ge },
1683
+ forest: { getThemeVariables: ve },
1684
+ neutral: { getThemeVariables: be },
1685
+ neo: { getThemeVariables: Se },
1686
+ "neo-dark": { getThemeVariables: we },
1687
+ redux: { getThemeVariables: Ee },
1688
+ "redux-dark": { getThemeVariables: Oe },
1689
+ "redux-color": { getThemeVariables: Ae },
1690
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ r((e) => {
1691
+ let t = new je();
1692
+ return t.calculate(e), t;
1693
+ }, "getThemeVariables") }
1694
+ }, j = {
1695
+ flowchart: {
1696
+ useMaxWidth: !0,
1697
+ titleTopMargin: 25,
1698
+ subGraphTitleMargin: {
1699
+ top: 0,
1700
+ bottom: 0
1701
+ },
1702
+ diagramPadding: 8,
1703
+ htmlLabels: null,
1704
+ nodeSpacing: 50,
1705
+ rankSpacing: 50,
1706
+ curve: "basis",
1707
+ padding: 15,
1708
+ defaultRenderer: "dagre-wrapper",
1709
+ wrappingWidth: 200,
1710
+ inheritDir: !1
1711
+ },
1712
+ sequence: {
1713
+ useMaxWidth: !0,
1714
+ hideUnusedParticipants: !1,
1715
+ activationWidth: 10,
1716
+ diagramMarginX: 50,
1717
+ diagramMarginY: 10,
1718
+ actorMargin: 50,
1719
+ width: 150,
1720
+ height: 65,
1721
+ boxMargin: 10,
1722
+ boxTextMargin: 5,
1723
+ noteMargin: 10,
1724
+ messageMargin: 35,
1725
+ messageAlign: "center",
1726
+ mirrorActors: !0,
1727
+ forceMenus: !1,
1728
+ bottomMarginAdj: 1,
1729
+ rightAngles: !1,
1730
+ showSequenceNumbers: !1,
1731
+ actorFontSize: 14,
1732
+ actorFontFamily: "\"Open Sans\", sans-serif",
1733
+ actorFontWeight: 400,
1734
+ noteFontSize: 14,
1735
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1736
+ noteFontWeight: 400,
1737
+ noteAlign: "center",
1738
+ messageFontSize: 16,
1739
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1740
+ messageFontWeight: 400,
1741
+ wrap: !1,
1742
+ wrapPadding: 10,
1743
+ labelBoxWidth: 50,
1744
+ labelBoxHeight: 20
1745
+ },
1746
+ gantt: {
1747
+ useMaxWidth: !0,
1748
+ titleTopMargin: 25,
1749
+ barHeight: 20,
1750
+ barGap: 4,
1751
+ topPadding: 50,
1752
+ rightPadding: 75,
1753
+ leftPadding: 75,
1754
+ gridLineStartPadding: 35,
1755
+ fontSize: 11,
1756
+ sectionFontSize: 11,
1757
+ numberSectionStyles: 4,
1758
+ axisFormat: "%Y-%m-%d",
1759
+ topAxis: !1,
1760
+ displayMode: "",
1761
+ weekday: "sunday"
1762
+ },
1763
+ journey: {
1764
+ useMaxWidth: !0,
1765
+ diagramMarginX: 50,
1766
+ diagramMarginY: 10,
1767
+ leftMargin: 150,
1768
+ maxLabelWidth: 360,
1769
+ width: 150,
1770
+ height: 50,
1771
+ boxMargin: 10,
1772
+ boxTextMargin: 5,
1773
+ noteMargin: 10,
1774
+ messageMargin: 35,
1775
+ messageAlign: "center",
1776
+ bottomMarginAdj: 1,
1777
+ rightAngles: !1,
1778
+ taskFontSize: 14,
1779
+ taskFontFamily: "\"Open Sans\", sans-serif",
1780
+ taskMargin: 50,
1781
+ activationWidth: 10,
1782
+ textPlacement: "fo",
1783
+ actorColours: [
1784
+ "#8FBC8F",
1785
+ "#7CFC00",
1786
+ "#00FFFF",
1787
+ "#20B2AA",
1788
+ "#B0E0E6",
1789
+ "#FFFFE0"
1790
+ ],
1791
+ sectionFills: [
1792
+ "#191970",
1793
+ "#8B008B",
1794
+ "#4B0082",
1795
+ "#2F4F4F",
1796
+ "#800000",
1797
+ "#8B4513",
1798
+ "#00008B"
1799
+ ],
1800
+ sectionColours: ["#fff"],
1801
+ titleColor: "",
1802
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1803
+ titleFontSize: "4ex"
1804
+ },
1805
+ class: {
1806
+ useMaxWidth: !0,
1807
+ titleTopMargin: 25,
1808
+ arrowMarkerAbsolute: !1,
1809
+ dividerMargin: 10,
1810
+ padding: 5,
1811
+ textHeight: 10,
1812
+ defaultRenderer: "dagre-wrapper",
1813
+ htmlLabels: !1,
1814
+ hideEmptyMembersBox: !1
1815
+ },
1816
+ state: {
1817
+ useMaxWidth: !0,
1818
+ titleTopMargin: 25,
1819
+ dividerMargin: 10,
1820
+ sizeUnit: 5,
1821
+ padding: 8,
1822
+ textHeight: 10,
1823
+ titleShift: -15,
1824
+ noteMargin: 10,
1825
+ forkWidth: 70,
1826
+ forkHeight: 7,
1827
+ miniPadding: 2,
1828
+ fontSizeFactor: 5.02,
1829
+ fontSize: 24,
1830
+ labelHeight: 16,
1831
+ edgeLengthFactor: "20",
1832
+ compositTitleSize: 35,
1833
+ radius: 5,
1834
+ defaultRenderer: "dagre-wrapper"
1835
+ },
1836
+ er: {
1837
+ useMaxWidth: !0,
1838
+ titleTopMargin: 25,
1839
+ diagramPadding: 20,
1840
+ layoutDirection: "TB",
1841
+ minEntityWidth: 100,
1842
+ minEntityHeight: 75,
1843
+ entityPadding: 15,
1844
+ nodeSpacing: 140,
1845
+ rankSpacing: 80,
1846
+ stroke: "gray",
1847
+ fill: "honeydew",
1848
+ fontSize: 12
1849
+ },
1850
+ pie: {
1851
+ useMaxWidth: !0,
1852
+ textPosition: .75
1853
+ },
1854
+ quadrantChart: {
1855
+ useMaxWidth: !0,
1856
+ chartWidth: 500,
1857
+ chartHeight: 500,
1858
+ titleFontSize: 20,
1859
+ titlePadding: 10,
1860
+ quadrantPadding: 5,
1861
+ xAxisLabelPadding: 5,
1862
+ yAxisLabelPadding: 5,
1863
+ xAxisLabelFontSize: 16,
1864
+ yAxisLabelFontSize: 16,
1865
+ quadrantLabelFontSize: 16,
1866
+ quadrantTextTopPadding: 5,
1867
+ pointTextPadding: 5,
1868
+ pointLabelFontSize: 12,
1869
+ pointRadius: 5,
1870
+ xAxisPosition: "top",
1871
+ yAxisPosition: "left",
1872
+ quadrantInternalBorderStrokeWidth: 1,
1873
+ quadrantExternalBorderStrokeWidth: 2
1874
+ },
1875
+ xyChart: {
1876
+ useMaxWidth: !0,
1877
+ width: 700,
1878
+ height: 500,
1879
+ titleFontSize: 20,
1880
+ titlePadding: 10,
1881
+ showDataLabel: !1,
1882
+ showDataLabelOutsideBar: !1,
1883
+ showTitle: !0,
1884
+ xAxis: {
1885
+ $ref: "#/$defs/XYChartAxisConfig",
1886
+ showLabel: !0,
1887
+ labelFontSize: 14,
1888
+ labelPadding: 5,
1889
+ showTitle: !0,
1890
+ titleFontSize: 16,
1891
+ titlePadding: 5,
1892
+ showTick: !0,
1893
+ tickLength: 5,
1894
+ tickWidth: 2,
1895
+ showAxisLine: !0,
1896
+ axisLineWidth: 2
1897
+ },
1898
+ yAxis: {
1899
+ $ref: "#/$defs/XYChartAxisConfig",
1900
+ showLabel: !0,
1901
+ labelFontSize: 14,
1902
+ labelPadding: 5,
1903
+ showTitle: !0,
1904
+ titleFontSize: 16,
1905
+ titlePadding: 5,
1906
+ showTick: !0,
1907
+ tickLength: 5,
1908
+ tickWidth: 2,
1909
+ showAxisLine: !0,
1910
+ axisLineWidth: 2
1911
+ },
1912
+ chartOrientation: "vertical",
1913
+ plotReservedSpacePercent: 50
1914
+ },
1915
+ requirement: {
1916
+ useMaxWidth: !0,
1917
+ rect_fill: "#f9f9f9",
1918
+ text_color: "#333",
1919
+ rect_border_size: "0.5px",
1920
+ rect_border_color: "#bbb",
1921
+ rect_min_width: 200,
1922
+ rect_min_height: 200,
1923
+ fontSize: 14,
1924
+ rect_padding: 10,
1925
+ line_height: 20
1926
+ },
1927
+ mindmap: {
1928
+ useMaxWidth: !0,
1929
+ padding: 10,
1930
+ maxNodeWidth: 200,
1931
+ layoutAlgorithm: "cose-bilkent"
1932
+ },
1933
+ ishikawa: {
1934
+ useMaxWidth: !0,
1935
+ diagramPadding: 20
1936
+ },
1937
+ kanban: {
1938
+ useMaxWidth: !0,
1939
+ padding: 8,
1940
+ sectionWidth: 200,
1941
+ ticketBaseUrl: ""
1942
+ },
1943
+ timeline: {
1944
+ useMaxWidth: !0,
1945
+ diagramMarginX: 50,
1946
+ diagramMarginY: 10,
1947
+ leftMargin: 150,
1948
+ width: 150,
1949
+ height: 50,
1950
+ boxMargin: 10,
1951
+ boxTextMargin: 5,
1952
+ noteMargin: 10,
1953
+ messageMargin: 35,
1954
+ messageAlign: "center",
1955
+ bottomMarginAdj: 1,
1956
+ rightAngles: !1,
1957
+ taskFontSize: 14,
1958
+ taskFontFamily: "\"Open Sans\", sans-serif",
1959
+ taskMargin: 50,
1960
+ activationWidth: 10,
1961
+ textPlacement: "fo",
1962
+ actorColours: [
1963
+ "#8FBC8F",
1964
+ "#7CFC00",
1965
+ "#00FFFF",
1966
+ "#20B2AA",
1967
+ "#B0E0E6",
1968
+ "#FFFFE0"
1969
+ ],
1970
+ sectionFills: [
1971
+ "#191970",
1972
+ "#8B008B",
1973
+ "#4B0082",
1974
+ "#2F4F4F",
1975
+ "#800000",
1976
+ "#8B4513",
1977
+ "#00008B"
1978
+ ],
1979
+ sectionColours: ["#fff"],
1980
+ disableMulticolor: !1
1981
+ },
1982
+ gitGraph: {
1983
+ useMaxWidth: !0,
1984
+ titleTopMargin: 25,
1985
+ diagramPadding: 8,
1986
+ nodeLabel: {
1987
+ width: 75,
1988
+ height: 100,
1989
+ x: -25,
1990
+ y: 0
1991
+ },
1992
+ mainBranchName: "main",
1993
+ mainBranchOrder: 0,
1994
+ showCommitLabel: !0,
1995
+ showBranches: !0,
1996
+ rotateCommitLabel: !0,
1997
+ parallelCommits: !1,
1998
+ arrowMarkerAbsolute: !1
1999
+ },
2000
+ c4: {
2001
+ useMaxWidth: !0,
2002
+ diagramMarginX: 50,
2003
+ diagramMarginY: 10,
2004
+ c4ShapeMargin: 50,
2005
+ c4ShapePadding: 20,
2006
+ width: 216,
2007
+ height: 60,
2008
+ boxMargin: 10,
2009
+ c4ShapeInRow: 4,
2010
+ nextLinePaddingX: 0,
2011
+ c4BoundaryInRow: 2,
2012
+ personFontSize: 14,
2013
+ personFontFamily: "\"Open Sans\", sans-serif",
2014
+ personFontWeight: "normal",
2015
+ external_personFontSize: 14,
2016
+ external_personFontFamily: "\"Open Sans\", sans-serif",
2017
+ external_personFontWeight: "normal",
2018
+ systemFontSize: 14,
2019
+ systemFontFamily: "\"Open Sans\", sans-serif",
2020
+ systemFontWeight: "normal",
2021
+ external_systemFontSize: 14,
2022
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
2023
+ external_systemFontWeight: "normal",
2024
+ system_dbFontSize: 14,
2025
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
2026
+ system_dbFontWeight: "normal",
2027
+ external_system_dbFontSize: 14,
2028
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
2029
+ external_system_dbFontWeight: "normal",
2030
+ system_queueFontSize: 14,
2031
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
2032
+ system_queueFontWeight: "normal",
2033
+ external_system_queueFontSize: 14,
2034
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
2035
+ external_system_queueFontWeight: "normal",
2036
+ boundaryFontSize: 14,
2037
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
2038
+ boundaryFontWeight: "normal",
2039
+ messageFontSize: 12,
2040
+ messageFontFamily: "\"Open Sans\", sans-serif",
2041
+ messageFontWeight: "normal",
2042
+ containerFontSize: 14,
2043
+ containerFontFamily: "\"Open Sans\", sans-serif",
2044
+ containerFontWeight: "normal",
2045
+ external_containerFontSize: 14,
2046
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
2047
+ external_containerFontWeight: "normal",
2048
+ container_dbFontSize: 14,
2049
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
2050
+ container_dbFontWeight: "normal",
2051
+ external_container_dbFontSize: 14,
2052
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
2053
+ external_container_dbFontWeight: "normal",
2054
+ container_queueFontSize: 14,
2055
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
2056
+ container_queueFontWeight: "normal",
2057
+ external_container_queueFontSize: 14,
2058
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
2059
+ external_container_queueFontWeight: "normal",
2060
+ componentFontSize: 14,
2061
+ componentFontFamily: "\"Open Sans\", sans-serif",
2062
+ componentFontWeight: "normal",
2063
+ external_componentFontSize: 14,
2064
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
2065
+ external_componentFontWeight: "normal",
2066
+ component_dbFontSize: 14,
2067
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
2068
+ component_dbFontWeight: "normal",
2069
+ external_component_dbFontSize: 14,
2070
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
2071
+ external_component_dbFontWeight: "normal",
2072
+ component_queueFontSize: 14,
2073
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
2074
+ component_queueFontWeight: "normal",
2075
+ external_component_queueFontSize: 14,
2076
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
2077
+ external_component_queueFontWeight: "normal",
2078
+ wrap: !0,
2079
+ wrapPadding: 10,
2080
+ person_bg_color: "#08427B",
2081
+ person_border_color: "#073B6F",
2082
+ external_person_bg_color: "#686868",
2083
+ external_person_border_color: "#8A8A8A",
2084
+ system_bg_color: "#1168BD",
2085
+ system_border_color: "#3C7FC0",
2086
+ system_db_bg_color: "#1168BD",
2087
+ system_db_border_color: "#3C7FC0",
2088
+ system_queue_bg_color: "#1168BD",
2089
+ system_queue_border_color: "#3C7FC0",
2090
+ external_system_bg_color: "#999999",
2091
+ external_system_border_color: "#8A8A8A",
2092
+ external_system_db_bg_color: "#999999",
2093
+ external_system_db_border_color: "#8A8A8A",
2094
+ external_system_queue_bg_color: "#999999",
2095
+ external_system_queue_border_color: "#8A8A8A",
2096
+ container_bg_color: "#438DD5",
2097
+ container_border_color: "#3C7FC0",
2098
+ container_db_bg_color: "#438DD5",
2099
+ container_db_border_color: "#3C7FC0",
2100
+ container_queue_bg_color: "#438DD5",
2101
+ container_queue_border_color: "#3C7FC0",
2102
+ external_container_bg_color: "#B3B3B3",
2103
+ external_container_border_color: "#A6A6A6",
2104
+ external_container_db_bg_color: "#B3B3B3",
2105
+ external_container_db_border_color: "#A6A6A6",
2106
+ external_container_queue_bg_color: "#B3B3B3",
2107
+ external_container_queue_border_color: "#A6A6A6",
2108
+ component_bg_color: "#85BBF0",
2109
+ component_border_color: "#78A8D8",
2110
+ component_db_bg_color: "#85BBF0",
2111
+ component_db_border_color: "#78A8D8",
2112
+ component_queue_bg_color: "#85BBF0",
2113
+ component_queue_border_color: "#78A8D8",
2114
+ external_component_bg_color: "#CCCCCC",
2115
+ external_component_border_color: "#BFBFBF",
2116
+ external_component_db_bg_color: "#CCCCCC",
2117
+ external_component_db_border_color: "#BFBFBF",
2118
+ external_component_queue_bg_color: "#CCCCCC",
2119
+ external_component_queue_border_color: "#BFBFBF"
2120
+ },
2121
+ sankey: {
2122
+ useMaxWidth: !0,
2123
+ width: 600,
2124
+ height: 400,
2125
+ linkColor: "gradient",
2126
+ nodeAlignment: "justify",
2127
+ showValues: !0,
2128
+ prefix: "",
2129
+ suffix: ""
2130
+ },
2131
+ block: {
2132
+ useMaxWidth: !0,
2133
+ padding: 8
2134
+ },
2135
+ packet: {
2136
+ useMaxWidth: !0,
2137
+ rowHeight: 32,
2138
+ bitWidth: 32,
2139
+ bitsPerRow: 32,
2140
+ showBits: !0,
2141
+ paddingX: 5,
2142
+ paddingY: 5
2143
+ },
2144
+ treeView: {
2145
+ useMaxWidth: !0,
2146
+ rowIndent: 10,
2147
+ paddingX: 5,
2148
+ paddingY: 5,
2149
+ lineThickness: 1
2150
+ },
2151
+ architecture: {
2152
+ useMaxWidth: !0,
2153
+ padding: 40,
2154
+ iconSize: 80,
2155
+ fontSize: 16,
2156
+ randomize: !1
2157
+ },
2158
+ radar: {
2159
+ useMaxWidth: !0,
2160
+ width: 600,
2161
+ height: 600,
2162
+ marginTop: 50,
2163
+ marginRight: 50,
2164
+ marginBottom: 50,
2165
+ marginLeft: 50,
2166
+ axisScaleFactor: 1,
2167
+ axisLabelFactor: 1.05,
2168
+ curveTension: .17
2169
+ },
2170
+ venn: {
2171
+ useMaxWidth: !0,
2172
+ width: 800,
2173
+ height: 450,
2174
+ padding: 8,
2175
+ useDebugLayout: !1
2176
+ },
2177
+ theme: "default",
2178
+ look: "classic",
2179
+ handDrawnSeed: 0,
2180
+ layout: "dagre",
2181
+ maxTextSize: 5e4,
2182
+ maxEdges: 500,
2183
+ darkMode: !1,
2184
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
2185
+ logLevel: 5,
2186
+ securityLevel: "strict",
2187
+ startOnLoad: !0,
2188
+ arrowMarkerAbsolute: !1,
2189
+ secure: [
2190
+ "secure",
2191
+ "securityLevel",
2192
+ "startOnLoad",
2193
+ "maxTextSize",
2194
+ "suppressErrorRendering",
2195
+ "maxEdges"
2196
+ ],
2197
+ legacyMathML: !1,
2198
+ forceLegacyMathML: !1,
2199
+ deterministicIds: !1,
2200
+ fontSize: 16,
2201
+ markdownAutoWrap: !0,
2202
+ suppressErrorRendering: !1
2203
+ }, Me = {
2204
+ ...j,
2205
+ deterministicIDSeed: void 0,
2206
+ elk: {
2207
+ mergeEdges: !1,
2208
+ nodePlacementStrategy: "BRANDES_KOEPF",
2209
+ forceNodeModelOrder: !1,
2210
+ considerModelOrder: "NODES_AND_EDGES"
2211
+ },
2212
+ themeCSS: void 0,
2213
+ themeVariables: A.default.getThemeVariables(),
2214
+ sequence: {
2215
+ ...j.sequence,
2216
+ messageFont: /* @__PURE__ */ r(function() {
2217
+ return {
2218
+ fontFamily: this.messageFontFamily,
2219
+ fontSize: this.messageFontSize,
2220
+ fontWeight: this.messageFontWeight
2221
+ };
2222
+ }, "messageFont"),
2223
+ noteFont: /* @__PURE__ */ r(function() {
2224
+ return {
2225
+ fontFamily: this.noteFontFamily,
2226
+ fontSize: this.noteFontSize,
2227
+ fontWeight: this.noteFontWeight
2228
+ };
2229
+ }, "noteFont"),
2230
+ actorFont: /* @__PURE__ */ r(function() {
2231
+ return {
2232
+ fontFamily: this.actorFontFamily,
2233
+ fontSize: this.actorFontSize,
2234
+ fontWeight: this.actorFontWeight
2235
+ };
2236
+ }, "actorFont")
2237
+ },
2238
+ class: { hideEmptyMembersBox: !1 },
2239
+ gantt: {
2240
+ ...j.gantt,
2241
+ tickInterval: void 0,
2242
+ useWidth: void 0
2243
+ },
2244
+ c4: {
2245
+ ...j.c4,
2246
+ useWidth: void 0,
2247
+ personFont: /* @__PURE__ */ r(function() {
2248
+ return {
2249
+ fontFamily: this.personFontFamily,
2250
+ fontSize: this.personFontSize,
2251
+ fontWeight: this.personFontWeight
2252
+ };
2253
+ }, "personFont"),
2254
+ flowchart: {
2255
+ ...j.flowchart,
2256
+ inheritDir: !1
2257
+ },
2258
+ external_personFont: /* @__PURE__ */ r(function() {
2259
+ return {
2260
+ fontFamily: this.external_personFontFamily,
2261
+ fontSize: this.external_personFontSize,
2262
+ fontWeight: this.external_personFontWeight
2263
+ };
2264
+ }, "external_personFont"),
2265
+ systemFont: /* @__PURE__ */ r(function() {
2266
+ return {
2267
+ fontFamily: this.systemFontFamily,
2268
+ fontSize: this.systemFontSize,
2269
+ fontWeight: this.systemFontWeight
2270
+ };
2271
+ }, "systemFont"),
2272
+ external_systemFont: /* @__PURE__ */ r(function() {
2273
+ return {
2274
+ fontFamily: this.external_systemFontFamily,
2275
+ fontSize: this.external_systemFontSize,
2276
+ fontWeight: this.external_systemFontWeight
2277
+ };
2278
+ }, "external_systemFont"),
2279
+ system_dbFont: /* @__PURE__ */ r(function() {
2280
+ return {
2281
+ fontFamily: this.system_dbFontFamily,
2282
+ fontSize: this.system_dbFontSize,
2283
+ fontWeight: this.system_dbFontWeight
2284
+ };
2285
+ }, "system_dbFont"),
2286
+ external_system_dbFont: /* @__PURE__ */ r(function() {
2287
+ return {
2288
+ fontFamily: this.external_system_dbFontFamily,
2289
+ fontSize: this.external_system_dbFontSize,
2290
+ fontWeight: this.external_system_dbFontWeight
2291
+ };
2292
+ }, "external_system_dbFont"),
2293
+ system_queueFont: /* @__PURE__ */ r(function() {
2294
+ return {
2295
+ fontFamily: this.system_queueFontFamily,
2296
+ fontSize: this.system_queueFontSize,
2297
+ fontWeight: this.system_queueFontWeight
2298
+ };
2299
+ }, "system_queueFont"),
2300
+ external_system_queueFont: /* @__PURE__ */ r(function() {
2301
+ return {
2302
+ fontFamily: this.external_system_queueFontFamily,
2303
+ fontSize: this.external_system_queueFontSize,
2304
+ fontWeight: this.external_system_queueFontWeight
2305
+ };
2306
+ }, "external_system_queueFont"),
2307
+ containerFont: /* @__PURE__ */ r(function() {
2308
+ return {
2309
+ fontFamily: this.containerFontFamily,
2310
+ fontSize: this.containerFontSize,
2311
+ fontWeight: this.containerFontWeight
2312
+ };
2313
+ }, "containerFont"),
2314
+ external_containerFont: /* @__PURE__ */ r(function() {
2315
+ return {
2316
+ fontFamily: this.external_containerFontFamily,
2317
+ fontSize: this.external_containerFontSize,
2318
+ fontWeight: this.external_containerFontWeight
2319
+ };
2320
+ }, "external_containerFont"),
2321
+ container_dbFont: /* @__PURE__ */ r(function() {
2322
+ return {
2323
+ fontFamily: this.container_dbFontFamily,
2324
+ fontSize: this.container_dbFontSize,
2325
+ fontWeight: this.container_dbFontWeight
2326
+ };
2327
+ }, "container_dbFont"),
2328
+ external_container_dbFont: /* @__PURE__ */ r(function() {
2329
+ return {
2330
+ fontFamily: this.external_container_dbFontFamily,
2331
+ fontSize: this.external_container_dbFontSize,
2332
+ fontWeight: this.external_container_dbFontWeight
2333
+ };
2334
+ }, "external_container_dbFont"),
2335
+ container_queueFont: /* @__PURE__ */ r(function() {
2336
+ return {
2337
+ fontFamily: this.container_queueFontFamily,
2338
+ fontSize: this.container_queueFontSize,
2339
+ fontWeight: this.container_queueFontWeight
2340
+ };
2341
+ }, "container_queueFont"),
2342
+ external_container_queueFont: /* @__PURE__ */ r(function() {
2343
+ return {
2344
+ fontFamily: this.external_container_queueFontFamily,
2345
+ fontSize: this.external_container_queueFontSize,
2346
+ fontWeight: this.external_container_queueFontWeight
2347
+ };
2348
+ }, "external_container_queueFont"),
2349
+ componentFont: /* @__PURE__ */ r(function() {
2350
+ return {
2351
+ fontFamily: this.componentFontFamily,
2352
+ fontSize: this.componentFontSize,
2353
+ fontWeight: this.componentFontWeight
2354
+ };
2355
+ }, "componentFont"),
2356
+ external_componentFont: /* @__PURE__ */ r(function() {
2357
+ return {
2358
+ fontFamily: this.external_componentFontFamily,
2359
+ fontSize: this.external_componentFontSize,
2360
+ fontWeight: this.external_componentFontWeight
2361
+ };
2362
+ }, "external_componentFont"),
2363
+ component_dbFont: /* @__PURE__ */ r(function() {
2364
+ return {
2365
+ fontFamily: this.component_dbFontFamily,
2366
+ fontSize: this.component_dbFontSize,
2367
+ fontWeight: this.component_dbFontWeight
2368
+ };
2369
+ }, "component_dbFont"),
2370
+ external_component_dbFont: /* @__PURE__ */ r(function() {
2371
+ return {
2372
+ fontFamily: this.external_component_dbFontFamily,
2373
+ fontSize: this.external_component_dbFontSize,
2374
+ fontWeight: this.external_component_dbFontWeight
2375
+ };
2376
+ }, "external_component_dbFont"),
2377
+ component_queueFont: /* @__PURE__ */ r(function() {
2378
+ return {
2379
+ fontFamily: this.component_queueFontFamily,
2380
+ fontSize: this.component_queueFontSize,
2381
+ fontWeight: this.component_queueFontWeight
2382
+ };
2383
+ }, "component_queueFont"),
2384
+ external_component_queueFont: /* @__PURE__ */ r(function() {
2385
+ return {
2386
+ fontFamily: this.external_component_queueFontFamily,
2387
+ fontSize: this.external_component_queueFontSize,
2388
+ fontWeight: this.external_component_queueFontWeight
2389
+ };
2390
+ }, "external_component_queueFont"),
2391
+ boundaryFont: /* @__PURE__ */ r(function() {
2392
+ return {
2393
+ fontFamily: this.boundaryFontFamily,
2394
+ fontSize: this.boundaryFontSize,
2395
+ fontWeight: this.boundaryFontWeight
2396
+ };
2397
+ }, "boundaryFont"),
2398
+ messageFont: /* @__PURE__ */ r(function() {
2399
+ return {
2400
+ fontFamily: this.messageFontFamily,
2401
+ fontSize: this.messageFontSize,
2402
+ fontWeight: this.messageFontWeight
2403
+ };
2404
+ }, "messageFont")
2405
+ },
2406
+ pie: {
2407
+ ...j.pie,
2408
+ useWidth: 984
2409
+ },
2410
+ xyChart: {
2411
+ ...j.xyChart,
2412
+ useWidth: void 0
2413
+ },
2414
+ requirement: {
2415
+ ...j.requirement,
2416
+ useWidth: void 0
2417
+ },
2418
+ packet: { ...j.packet },
2419
+ treeView: {
2420
+ ...j.treeView,
2421
+ useWidth: void 0
2422
+ },
2423
+ radar: { ...j.radar },
2424
+ ishikawa: { ...j.ishikawa },
2425
+ treemap: {
2426
+ useMaxWidth: !0,
2427
+ padding: 10,
2428
+ diagramPadding: 8,
2429
+ showValues: !0,
2430
+ nodeWidth: 100,
2431
+ nodeHeight: 40,
2432
+ borderWidth: 1,
2433
+ valueFontSize: 12,
2434
+ labelFontSize: 14,
2435
+ valueFormat: ","
2436
+ },
2437
+ venn: { ...j.venn }
2438
+ }, Ne = /* @__PURE__ */ r((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2439
+ ...n,
2440
+ t + r,
2441
+ ...Ne(e[r], "")
2442
+ ] : [...n, t + r], []), "keyify"), Pe = new Set(Ne(Me, "")), Fe = Me, M = /* @__PURE__ */ r((e) => {
2443
+ if (n.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2444
+ if (Array.isArray(e)) {
2445
+ e.forEach((e) => M(e));
2446
+ return;
2447
+ }
2448
+ for (let t of Object.keys(e)) {
2449
+ if (n.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Pe.has(t) || e[t] == null) {
2450
+ n.debug("sanitize deleting key: ", t), delete e[t];
2451
+ continue;
2452
+ }
2453
+ if (typeof e[t] == "object") {
2454
+ n.debug("sanitizing object", t), M(e[t]);
2455
+ continue;
2456
+ }
2457
+ for (let r of [
2458
+ "themeCSS",
2459
+ "fontFamily",
2460
+ "altFontFamily"
2461
+ ]) t.includes(r) && (n.debug("sanitizing css option", t), e[t] = Ie(e[t]));
2462
+ }
2463
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
2464
+ let n = e.themeVariables[t];
2465
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
2466
+ }
2467
+ n.debug("After sanitization", e);
2468
+ }
2469
+ }, "sanitizeDirective"), Ie = /* @__PURE__ */ r((e) => {
2470
+ let t = 0, n = 0;
2471
+ for (let r of e) {
2472
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
2473
+ r === "{" ? t++ : r === "}" && n++;
2474
+ }
2475
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
2476
+ }, "sanitizeCss"), N = Object.freeze(Fe), P = /* @__PURE__ */ r((e) => !(e === !1 || [
2477
+ "false",
2478
+ "null",
2479
+ "0"
2480
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), F = E({}, N), I, L = [], R = E({}, N), z = /* @__PURE__ */ r((e, t) => {
2481
+ let n = E({}, e), r = {};
2482
+ for (let e of t) He(e), r = E(r, e);
2483
+ if (n = E(n, r), r.theme && r.theme in A) {
2484
+ let e = E(E({}, I).themeVariables || {}, r.themeVariables);
2485
+ n.theme && n.theme in A && (n.themeVariables = A[n.theme].getThemeVariables(e));
2486
+ }
2487
+ return R = n, Je(R), R;
2488
+ }, "updateCurrentConfig"), Le = /* @__PURE__ */ r((e) => (F = E({}, N), F = E(F, e), e.theme && A[e.theme] && (F.themeVariables = A[e.theme].getThemeVariables(e.themeVariables)), z(F, L), F), "setSiteConfig"), Re = /* @__PURE__ */ r((e) => {
2489
+ I = E({}, e);
2490
+ }, "saveConfigFromInitialize"), ze = /* @__PURE__ */ r((e) => (F = E(F, e), z(F, L), F), "updateSiteConfig"), Be = /* @__PURE__ */ r(() => E({}, F), "getSiteConfig"), Ve = /* @__PURE__ */ r((e) => (Je(e), E(R, e), B()), "setConfig"), B = /* @__PURE__ */ r(() => E({}, R), "getConfig"), He = /* @__PURE__ */ r((e) => {
2491
+ e && (["secure", ...F.secure ?? []].forEach((t) => {
2492
+ Object.hasOwn(e, t) && (n.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
2493
+ }), Object.keys(e).forEach((t) => {
2494
+ t.startsWith("__") && delete e[t];
2495
+ }), Object.keys(e).forEach((t) => {
2496
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && He(e[t]);
2497
+ }));
2498
+ }, "sanitize"), Ue = /* @__PURE__ */ r((e) => {
2499
+ M(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
2500
+ ...e.themeVariables,
2501
+ fontFamily: e.fontFamily
2502
+ }), L.push(e), z(F, L);
2503
+ }, "addDirective"), We = /* @__PURE__ */ r((e = F) => {
2504
+ L = [], z(e, L);
2505
+ }, "reset"), Ge = {
2506
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
2507
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
2508
+ }, Ke = {}, qe = /* @__PURE__ */ r((e) => {
2509
+ Ke[e] || (n.warn(Ge[e]), Ke[e] = !0);
2510
+ }, "issueWarning"), Je = /* @__PURE__ */ r((e) => {
2511
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && qe("LAZY_LOAD_DEPRECATED");
2512
+ }, "checkConfig"), Ye = /* @__PURE__ */ r(() => {
2513
+ let e = {};
2514
+ I && (e = E(e, I));
2515
+ for (let t of L) e = E(e, t);
2516
+ return e;
2517
+ }, "getUserDefinedConfig"), Xe = /* @__PURE__ */ r((e) => (e.flowchart?.htmlLabels != null && qe("FLOWCHART_HTML_LABELS_DEPRECATED"), P(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), V = /<br\s*\/?>/gi, Ze = /* @__PURE__ */ r((e) => e ? ot(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Qe = /* @__PURE__ */ (() => {
2518
+ let e = !1;
2519
+ return () => {
2520
+ e ||= ($e(), !0);
2521
+ };
2522
+ })();
2523
+ function $e() {
2524
+ let t = "data-temp-href-target";
2525
+ e.addHook("beforeSanitizeAttributes", (e) => {
2526
+ e.tagName === "A" && e.hasAttribute("target") && e.setAttribute(t, e.getAttribute("target") ?? "");
2527
+ }), e.addHook("afterSanitizeAttributes", (e) => {
2528
+ e.tagName === "A" && e.hasAttribute(t) && (e.setAttribute("target", e.getAttribute(t) ?? ""), e.removeAttribute(t), e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener"));
2529
+ });
2530
+ }
2531
+ r($e, "setupDompurifyHooks");
2532
+ var et = /* @__PURE__ */ r((t) => (Qe(), e.sanitize(t)), "removeScript"), tt = /* @__PURE__ */ r((e, t) => {
2533
+ if (Xe(t)) {
2534
+ let n = t.securityLevel;
2535
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = et(e) : n !== "loose" && (e = ot(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = at(e));
2536
+ }
2537
+ return e;
2538
+ }, "sanitizeMore"), H = /* @__PURE__ */ r((t, n) => t && (t = n.dompurifyConfig ? e.sanitize(tt(t, n), n.dompurifyConfig).toString() : e.sanitize(tt(t, n), { FORBID_TAGS: ["style"] }).toString(), t), "sanitizeText"), nt = /* @__PURE__ */ r((e, t) => typeof e == "string" ? H(e, t) : e.flat().map((e) => H(e, t)), "sanitizeTextOrArray"), rt = /* @__PURE__ */ r((e) => V.test(e), "hasBreaks"), it = /* @__PURE__ */ r((e) => e.split(V), "splitBreaks"), at = /* @__PURE__ */ r((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), ot = /* @__PURE__ */ r((e) => e.replace(V, "#br#"), "breakToPlaceholder"), st = /* @__PURE__ */ r((e) => {
2539
+ let t = "";
2540
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
2541
+ }, "getUrl"), ct = /* @__PURE__ */ r(function(...e) {
2542
+ let t = e.filter((e) => !isNaN(e));
2543
+ return Math.max(...t);
2544
+ }, "getMax"), lt = /* @__PURE__ */ r(function(...e) {
2545
+ let t = e.filter((e) => !isNaN(e));
2546
+ return Math.min(...t);
2547
+ }, "getMin"), ut = /* @__PURE__ */ r(function(e) {
2548
+ let t = e.split(/(,)/), n = [];
2549
+ for (let e = 0; e < t.length; e++) {
2550
+ let r = t[e];
2551
+ if (r === "," && e > 0 && e + 1 < t.length) {
2552
+ let i = t[e - 1], a = t[e + 1];
2553
+ dt(i, a) && (r = i + "," + a, e++, n.pop());
2554
+ }
2555
+ n.push(ft(r));
2556
+ }
2557
+ return n.join("");
2558
+ }, "parseGenericTypes"), U = /* @__PURE__ */ r((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), dt = /* @__PURE__ */ r((e, t) => {
2559
+ let n = U(e, "~"), r = U(t, "~");
2560
+ return n === 1 && r === 1;
2561
+ }, "shouldCombineSets"), ft = /* @__PURE__ */ r((e) => {
2562
+ let t = U(e, "~"), n = !1;
2563
+ if (t <= 1) return e;
2564
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
2565
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
2566
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
2567
+ return n && r.unshift("~"), r.join("");
2568
+ }, "processSet"), pt = /* @__PURE__ */ r(() => window.MathMLElement !== void 0, "isMathMLSupported"), W = /\$\$(.*)\$\$/g, G = /* @__PURE__ */ r((e) => (e.match(W)?.length ?? 0) > 0, "hasKatex"), mt = /* @__PURE__ */ r(async (e, t) => {
2569
+ let n = document.createElement("div");
2570
+ n.innerHTML = await gt(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
2571
+ let r = {
2572
+ width: n.clientWidth,
2573
+ height: n.clientHeight
2574
+ };
2575
+ return n.remove(), r;
2576
+ }, "calculateMathMLDimensions"), ht = /* @__PURE__ */ r(async (e, t) => {
2577
+ if (!G(e)) return e;
2578
+ if (!(pt() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(W, "MathML is unsupported in this environment.");
2579
+ {
2580
+ let { default: n } = await import("./katex-CKrw0rbA.js").then((e) => e.n), r = t.forceLegacyMathML || !pt() && t.legacyMathML ? "htmlAndMathml" : "mathml";
2581
+ return e.split(V).map((e) => G(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(W, (e, t) => n.renderToString(t, {
2582
+ throwOnError: !0,
2583
+ displayMode: !0,
2584
+ output: r
2585
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
2586
+ }
2587
+ return e.replace(W, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
2588
+ }, "renderKatexUnsanitized"), gt = /* @__PURE__ */ r(async (e, t) => H(await ht(e, t), t), "renderKatexSanitized"), _t = {
2589
+ getRows: Ze,
2590
+ sanitizeText: H,
2591
+ sanitizeTextOrArray: nt,
2592
+ hasBreaks: rt,
2593
+ splitBreaks: it,
2594
+ lineBreakRegex: V,
2595
+ removeScript: et,
2596
+ getUrl: st,
2597
+ evaluate: P,
2598
+ getMax: ct,
2599
+ getMin: lt
2600
+ }, vt = /* @__PURE__ */ r(function(e, t) {
2601
+ for (let n of t) e.attr(n[0], n[1]);
2602
+ }, "d3Attrs"), yt = /* @__PURE__ */ r(function(e, t, n) {
2603
+ let r = /* @__PURE__ */ new Map();
2604
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
2605
+ }, "calculateSvgSizeAttrs"), bt = /* @__PURE__ */ r(function(e, t, n, r) {
2606
+ vt(e, yt(t, n, r));
2607
+ }, "configureSvgSize"), xt = /* @__PURE__ */ r(function(e, t, r, i) {
2608
+ let a = t.node().getBBox(), o = a.width, s = a.height;
2609
+ n.info(`SVG bounds: ${o}x${s}`, a);
2610
+ let c = 0, l = 0;
2611
+ n.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, n.info(`Calculated bounds: ${c}x${l}`), bt(t, l, c, i);
2612
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
2613
+ t.attr("viewBox", u);
2614
+ }, "setupGraphViewbox"), K = {}, St = /* @__PURE__ */ r((e, t, r, i) => {
2615
+ let a = "";
2616
+ return e in K && K[e] ? a = K[e]({
2617
+ ...r,
2618
+ svgId: i
2619
+ }) : n.warn(`No theme found for ${e}`), ` & {
2620
+ font-family: ${r.fontFamily};
2621
+ font-size: ${r.fontSize};
2622
+ fill: ${r.textColor}
2623
+ }
2624
+ @keyframes edge-animation-frame {
2625
+ from {
2626
+ stroke-dashoffset: 0;
2627
+ }
2628
+ }
2629
+ @keyframes dash {
2630
+ to {
2631
+ stroke-dashoffset: 0;
2632
+ }
2633
+ }
2634
+ & .edge-animation-slow {
2635
+ stroke-dasharray: 9,5 !important;
2636
+ stroke-dashoffset: 900;
2637
+ animation: dash 50s linear infinite;
2638
+ stroke-linecap: round;
2639
+ }
2640
+ & .edge-animation-fast {
2641
+ stroke-dasharray: 9,5 !important;
2642
+ stroke-dashoffset: 900;
2643
+ animation: dash 20s linear infinite;
2644
+ stroke-linecap: round;
2645
+ }
2646
+ /* Classes common for multiple diagrams */
2647
+
2648
+ & .error-icon {
2649
+ fill: ${r.errorBkgColor};
2650
+ }
2651
+ & .error-text {
2652
+ fill: ${r.errorTextColor};
2653
+ stroke: ${r.errorTextColor};
2654
+ }
2655
+
2656
+ & .edge-thickness-normal {
2657
+ stroke-width: ${r.strokeWidth ?? 1}px;
2658
+ }
2659
+ & .edge-thickness-thick {
2660
+ stroke-width: 3.5px
2661
+ }
2662
+ & .edge-pattern-solid {
2663
+ stroke-dasharray: 0;
2664
+ }
2665
+ & .edge-thickness-invisible {
2666
+ stroke-width: 0;
2667
+ fill: none;
2668
+ }
2669
+ & .edge-pattern-dashed{
2670
+ stroke-dasharray: 3;
2671
+ }
2672
+ .edge-pattern-dotted {
2673
+ stroke-dasharray: 2;
2674
+ }
2675
+
2676
+ & .marker {
2677
+ fill: ${r.lineColor};
2678
+ stroke: ${r.lineColor};
2679
+ }
2680
+ & .marker.cross {
2681
+ stroke: ${r.lineColor};
2682
+ }
2683
+
2684
+ & svg {
2685
+ font-family: ${r.fontFamily};
2686
+ font-size: ${r.fontSize};
2687
+ }
2688
+ & p {
2689
+ margin: 0
2690
+ }
2691
+
2692
+ ${a}
2693
+ .node .neo-node {
2694
+ stroke: ${r.nodeBorder};
2695
+ }
2696
+
2697
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
2698
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
2699
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
2700
+ }
2701
+
2702
+
2703
+ [data-look="neo"].node path {
2704
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
2705
+ stroke-width: ${r.strokeWidth ?? 1}px;
2706
+ }
2707
+
2708
+ [data-look="neo"].node .outer-path {
2709
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
2710
+ }
2711
+
2712
+ [data-look="neo"].node .neo-line path {
2713
+ stroke: ${r.nodeBorder};
2714
+ filter: none;
2715
+ }
2716
+
2717
+ [data-look="neo"].node circle{
2718
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
2719
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
2720
+ }
2721
+
2722
+ [data-look="neo"].node circle .state-start{
2723
+ fill: #000000;
2724
+ }
2725
+
2726
+ [data-look="neo"].icon-shape .icon {
2727
+ fill: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
2728
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
2729
+ }
2730
+
2731
+ [data-look="neo"].icon-shape .icon-neo path {
2732
+ stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
2733
+ filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
2734
+ }
2735
+
2736
+ ${t}
2737
+ `;
2738
+ }, "getStyles"), Ct = /* @__PURE__ */ r((e, t) => {
2739
+ t !== void 0 && (K[e] = t);
2740
+ }, "addStylesForDiagram"), wt = St, q = {};
2741
+ i(q, {
2742
+ clear: () => Tt,
2743
+ getAccDescription: () => kt,
2744
+ getAccTitle: () => Dt,
2745
+ getDiagramTitle: () => jt,
2746
+ setAccDescription: () => Ot,
2747
+ setAccTitle: () => Et,
2748
+ setDiagramTitle: () => At
2749
+ });
2750
+ var J = "", Y = "", X = "", Z = /* @__PURE__ */ r((e) => H(e, B()), "sanitizeText"), Tt = /* @__PURE__ */ r(() => {
2751
+ J = "", X = "", Y = "";
2752
+ }, "clear"), Et = /* @__PURE__ */ r((e) => {
2753
+ J = Z(e).replace(/^\s+/g, "");
2754
+ }, "setAccTitle"), Dt = /* @__PURE__ */ r(() => J, "getAccTitle"), Ot = /* @__PURE__ */ r((e) => {
2755
+ X = Z(e).replace(/\n\s+/g, "\n");
2756
+ }, "setAccDescription"), kt = /* @__PURE__ */ r(() => X, "getAccDescription"), At = /* @__PURE__ */ r((e) => {
2757
+ Y = Z(e);
2758
+ }, "setDiagramTitle"), jt = /* @__PURE__ */ r(() => Y, "getDiagramTitle"), Mt = n, Nt = t, Q = B, Pt = Ve, Ft = N, It = /* @__PURE__ */ r((e) => H(e, Q()), "sanitizeText"), Lt = xt, Rt = /* @__PURE__ */ r(() => q, "getCommonDb"), $ = {}, zt = /* @__PURE__ */ r((e, t, n) => {
2759
+ $[e] && Mt.warn(`Diagram with id ${e} already registered. Overwriting.`), $[e] = t, n && le(e, n), Ct(e, t.styles), t.injectUtils?.(Mt, Nt, Q, It, Lt, Rt(), () => {});
2760
+ }, "registerDiagram"), Bt = /* @__PURE__ */ r((e) => {
2761
+ if (e in $) return $[e];
2762
+ throw new Vt(e);
2763
+ }, "getDiagram"), Vt = class extends Error {
2764
+ static {
2765
+ r(this, "DiagramNotFoundError");
2766
+ }
2767
+ constructor(e) {
2768
+ super(`Diagram ${e} not found.`);
2769
+ }
2770
+ };
2771
+ //#endregion
2772
+ export { y as $, V as A, Ot as B, jt as C, st as D, ge as E, We as F, Le as G, Ve as H, M as I, wt as J, xt as K, H as L, zt as M, ce as N, Ye as O, gt as P, b as Q, It as R, ue as S, Be as T, Pt as U, Et as V, At as W, ze as X, A as Y, x as Z, kt as _, Tt as a, Q as b, bt as c, Fe as d, v as et, se as f, re as g, P as h, mt as i, ut as j, G as k, N as l, ie as m, Ue as n, h as nt, q as o, w as p, Lt as q, E as r, o as rt, _t as s, oe as t, _ as tt, Ft as u, Dt as v, Xe as w, Bt as x, B as y, Re as z };