for-humanity 0.12.0 → 0.13.1

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