@blueking/ai-blueking 2.0.0-dev.2 → 2.0.0-dev.3

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 (183) hide show
  1. package/dist/vue2/_baseFor-DAbrc8SN.js +309 -0
  2. package/dist/vue2/arc-BqlAOiZb.js +78 -0
  3. package/dist/vue2/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
  4. package/dist/vue2/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
  5. package/dist/vue2/array-TB8zN_HT.js +5 -0
  6. package/dist/vue2/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
  7. package/dist/vue2/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
  8. package/dist/vue2/channel-edTl5mpN.js +3 -0
  9. package/dist/vue2/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
  10. package/dist/vue2/chunk-55IACEB6-CTzuTcHv.js +6 -0
  11. package/dist/vue2/chunk-76Q3JFCE-BrJX66ha.js +19 -0
  12. package/dist/vue2/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
  13. package/dist/vue2/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
  14. package/dist/vue2/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
  15. package/dist/vue2/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
  16. package/dist/vue2/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
  17. package/dist/vue2/chunk-DNh5sLlG.js +18 -0
  18. package/dist/vue2/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
  19. package/dist/vue2/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
  20. package/dist/vue2/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
  21. package/dist/vue2/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
  22. package/dist/vue2/chunk-HN2XXSSU-DueSY85P.js +74 -0
  23. package/dist/vue2/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
  24. package/dist/vue2/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
  25. package/dist/vue2/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
  26. package/dist/vue2/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
  27. package/dist/vue2/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
  28. package/dist/vue2/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
  29. package/dist/vue2/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
  30. package/dist/vue2/chunk-QN33PNHL-DsC-XeM9.js +23 -0
  31. package/dist/vue2/chunk-QXUST7PY-DxFRymyS.js +486 -0
  32. package/dist/vue2/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
  33. package/dist/vue2/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
  34. package/dist/vue2/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
  35. package/dist/vue2/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
  36. package/dist/vue2/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
  37. package/dist/vue2/chunk-XAJISQIX-XsDvU4jW.js +135 -0
  38. package/dist/vue2/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
  39. package/dist/vue2/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
  40. package/dist/vue2/clone-Bbr3WSpg.js +7 -0
  41. package/dist/vue2/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
  42. package/dist/vue2/cytoscape.esm-nrcriBSO.js +18100 -0
  43. package/dist/vue2/dagre-6UL2VRFP-CTl_U96l.js +298 -0
  44. package/dist/vue2/dagre-DUjlMe_B.js +1496 -0
  45. package/dist/vue2/defaultLocale-BLATqOV5.js +177 -0
  46. package/dist/vue2/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
  47. package/dist/vue2/diagram-QEK2KX5R-CAeywSxy.js +226 -0
  48. package/dist/vue2/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
  49. package/dist/vue2/dist-xWJvauxf.js +49 -0
  50. package/dist/vue2/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
  51. package/dist/vue2/flatten-CfPhNHUL.js +34 -0
  52. package/dist/vue2/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
  53. package/dist/vue2/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
  54. package/dist/vue2/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
  55. package/dist/vue2/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
  56. package/dist/vue2/graphlib-KDKEjVHX.js +344 -0
  57. package/dist/vue2/index.es.min.js +26703 -786
  58. package/dist/vue2/index.umd.min.js +2796 -9
  59. package/dist/vue2/info-NVLQJR56-DBsOnIKy.js +7 -0
  60. package/dist/vue2/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
  61. package/dist/vue2/init-hAkIK9Bd.js +13 -0
  62. package/dist/vue2/isEmpty-z27q3o-D.js +32 -0
  63. package/dist/vue2/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
  64. package/dist/vue2/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
  65. package/dist/vue2/katex-CEAw-xiA.js +22097 -0
  66. package/dist/vue2/katex-D8o5-F7C.js +2 -0
  67. package/dist/vue2/line-wvheYP7S.js +30 -0
  68. package/dist/vue2/linear-STTevhnH.js +250 -0
  69. package/dist/vue2/math-DF_v6dOl.js +8 -0
  70. package/dist/vue2/mermaid-parser.core-VAa8Vi1g.js +48 -0
  71. package/dist/vue2/mermaid.core-vqI6KB9k.js +895 -0
  72. package/dist/vue2/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
  73. package/dist/vue2/ordinal-DOM6Fa9P.js +61 -0
  74. package/dist/vue2/packet-BFZMPI3H-CG049KmZ.js +7 -0
  75. package/dist/vue2/path-CW_-_Ti7.js +79 -0
  76. package/dist/vue2/pie-7BOR55EZ-BHq0KcLP.js +7 -0
  77. package/dist/vue2/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
  78. package/dist/vue2/purify.es-Cm_tUMzZ.js +547 -0
  79. package/dist/vue2/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
  80. package/dist/vue2/radar-NHE76QYJ-CUoVtrAx.js +7 -0
  81. package/dist/vue2/reduce-BFKSG9Rs.js +451 -0
  82. package/dist/vue2/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
  83. package/dist/vue2/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
  84. package/dist/vue2/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
  85. package/dist/vue2/src-VlKYSsxJ.js +1975 -0
  86. package/dist/vue2/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
  87. package/dist/vue2/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
  88. package/dist/vue2/style.css +1 -1
  89. package/dist/vue2/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
  90. package/dist/vue2/treemap-KMMF4GRG--FdijCcy.js +7 -0
  91. package/dist/vue2/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
  92. package/dist/vue3/_baseFor-DAbrc8SN.js +309 -0
  93. package/dist/vue3/arc-BqlAOiZb.js +78 -0
  94. package/dist/vue3/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
  95. package/dist/vue3/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
  96. package/dist/vue3/array-TB8zN_HT.js +5 -0
  97. package/dist/vue3/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
  98. package/dist/vue3/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
  99. package/dist/vue3/channel-edTl5mpN.js +3 -0
  100. package/dist/vue3/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
  101. package/dist/vue3/chunk-55IACEB6-CTzuTcHv.js +6 -0
  102. package/dist/vue3/chunk-76Q3JFCE-BrJX66ha.js +19 -0
  103. package/dist/vue3/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
  104. package/dist/vue3/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
  105. package/dist/vue3/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
  106. package/dist/vue3/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
  107. package/dist/vue3/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
  108. package/dist/vue3/chunk-DNh5sLlG.js +18 -0
  109. package/dist/vue3/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
  110. package/dist/vue3/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
  111. package/dist/vue3/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
  112. package/dist/vue3/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
  113. package/dist/vue3/chunk-HN2XXSSU-DueSY85P.js +74 -0
  114. package/dist/vue3/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
  115. package/dist/vue3/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
  116. package/dist/vue3/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
  117. package/dist/vue3/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
  118. package/dist/vue3/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
  119. package/dist/vue3/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
  120. package/dist/vue3/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
  121. package/dist/vue3/chunk-QN33PNHL-DsC-XeM9.js +23 -0
  122. package/dist/vue3/chunk-QXUST7PY-DxFRymyS.js +486 -0
  123. package/dist/vue3/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
  124. package/dist/vue3/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
  125. package/dist/vue3/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
  126. package/dist/vue3/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
  127. package/dist/vue3/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
  128. package/dist/vue3/chunk-XAJISQIX-XsDvU4jW.js +135 -0
  129. package/dist/vue3/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
  130. package/dist/vue3/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
  131. package/dist/vue3/clone-Bbr3WSpg.js +7 -0
  132. package/dist/vue3/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
  133. package/dist/vue3/cytoscape.esm-nrcriBSO.js +18100 -0
  134. package/dist/vue3/dagre-6UL2VRFP-CTl_U96l.js +298 -0
  135. package/dist/vue3/dagre-DUjlMe_B.js +1496 -0
  136. package/dist/vue3/defaultLocale-BLATqOV5.js +177 -0
  137. package/dist/vue3/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
  138. package/dist/vue3/diagram-QEK2KX5R-CAeywSxy.js +226 -0
  139. package/dist/vue3/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
  140. package/dist/vue3/dist-xWJvauxf.js +49 -0
  141. package/dist/vue3/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
  142. package/dist/vue3/flatten-CfPhNHUL.js +34 -0
  143. package/dist/vue3/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
  144. package/dist/vue3/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
  145. package/dist/vue3/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
  146. package/dist/vue3/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
  147. package/dist/vue3/graphlib-KDKEjVHX.js +344 -0
  148. package/dist/vue3/index.es.min.js +26730 -813
  149. package/dist/vue3/index.umd.min.js +2796 -9
  150. package/dist/vue3/info-NVLQJR56-DBsOnIKy.js +7 -0
  151. package/dist/vue3/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
  152. package/dist/vue3/init-hAkIK9Bd.js +13 -0
  153. package/dist/vue3/isEmpty-z27q3o-D.js +32 -0
  154. package/dist/vue3/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
  155. package/dist/vue3/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
  156. package/dist/vue3/katex-CEAw-xiA.js +22097 -0
  157. package/dist/vue3/katex-D8o5-F7C.js +2 -0
  158. package/dist/vue3/line-wvheYP7S.js +30 -0
  159. package/dist/vue3/linear-STTevhnH.js +250 -0
  160. package/dist/vue3/math-DF_v6dOl.js +8 -0
  161. package/dist/vue3/mermaid-parser.core-VAa8Vi1g.js +48 -0
  162. package/dist/vue3/mermaid.core-vqI6KB9k.js +895 -0
  163. package/dist/vue3/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
  164. package/dist/vue3/ordinal-DOM6Fa9P.js +61 -0
  165. package/dist/vue3/packet-BFZMPI3H-CG049KmZ.js +7 -0
  166. package/dist/vue3/path-CW_-_Ti7.js +79 -0
  167. package/dist/vue3/pie-7BOR55EZ-BHq0KcLP.js +7 -0
  168. package/dist/vue3/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
  169. package/dist/vue3/purify.es-Cm_tUMzZ.js +547 -0
  170. package/dist/vue3/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
  171. package/dist/vue3/radar-NHE76QYJ-CUoVtrAx.js +7 -0
  172. package/dist/vue3/reduce-BFKSG9Rs.js +451 -0
  173. package/dist/vue3/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
  174. package/dist/vue3/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
  175. package/dist/vue3/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
  176. package/dist/vue3/src-VlKYSsxJ.js +1975 -0
  177. package/dist/vue3/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
  178. package/dist/vue3/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
  179. package/dist/vue3/style.css +1 -1
  180. package/dist/vue3/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
  181. package/dist/vue3/treemap-KMMF4GRG--FdijCcy.js +7 -0
  182. package/dist/vue3/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
  183. package/package.json +1 -1
@@ -0,0 +1,1971 @@
1
+ import { t as purify } from "./purify.es-Cm_tUMzZ.js";
2
+ import { _ as setLogLevel, g as log, h as __name, m as __export } from "./src-VlKYSsxJ.js";
3
+ var Channel = {
4
+ min: {
5
+ r: 0,
6
+ g: 0,
7
+ b: 0,
8
+ s: 0,
9
+ l: 0,
10
+ a: 0
11
+ },
12
+ max: {
13
+ r: 255,
14
+ g: 255,
15
+ b: 255,
16
+ h: 360,
17
+ s: 100,
18
+ l: 100,
19
+ a: 1
20
+ },
21
+ clamp: {
22
+ r: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
23
+ g: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
24
+ b: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
25
+ h: (u) => u % 360,
26
+ s: (u) => u >= 100 ? 100 : u < 0 ? 0 : u,
27
+ l: (u) => u >= 100 ? 100 : u < 0 ? 0 : u,
28
+ a: (u) => u >= 1 ? 1 : u < 0 ? 0 : u
29
+ },
30
+ toLinear: (u) => {
31
+ let z = u / 255;
32
+ return u > .03928 ? ((z + .055) / 1.055) ** 2.4 : z / 12.92;
33
+ },
34
+ hue2rgb: (u, z, B) => (B < 0 && (B += 1), B > 1 && --B, B < 1 / 6 ? u + (z - u) * 6 * B : B < 1 / 2 ? z : B < 2 / 3 ? u + (z - u) * (2 / 3 - B) * 6 : u),
35
+ hsl2rgb: ({ h: u, s: z, l: B }, V) => {
36
+ if (!z) return B * 2.55;
37
+ u /= 360, z /= 100, B /= 100;
38
+ let H = B < .5 ? B * (1 + z) : B + z - B * z, W = 2 * B - H;
39
+ switch (V) {
40
+ case "r": return Channel.hue2rgb(W, H, u + 1 / 3) * 255;
41
+ case "g": return Channel.hue2rgb(W, H, u) * 255;
42
+ case "b": return Channel.hue2rgb(W, H, u - 1 / 3) * 255;
43
+ }
44
+ },
45
+ rgb2hsl: ({ r: u, g: z, b: B }, V) => {
46
+ u /= 255, z /= 255, B /= 255;
47
+ let H = Math.max(u, z, B), U = Math.min(u, z, B), W = (H + U) / 2;
48
+ if (V === "l") return W * 100;
49
+ if (H === U) return 0;
50
+ let G = H - U, K = W > .5 ? G / (2 - H - U) : G / (H + U);
51
+ if (V === "s") return K * 100;
52
+ switch (H) {
53
+ case u: return ((z - B) / G + (z < B ? 6 : 0)) * 60;
54
+ case z: return ((B - u) / G + 2) * 60;
55
+ case B: return ((u - z) / G + 4) * 60;
56
+ default: return -1;
57
+ }
58
+ }
59
+ }, utils_default = {
60
+ channel: Channel,
61
+ lang: {
62
+ clamp: (u, z, B) => z > B ? Math.min(z, Math.max(B, u)) : Math.min(B, Math.max(z, u)),
63
+ round: (u) => Math.round(u * 1e10) / 1e10
64
+ },
65
+ unit: { dec2hex: (u) => {
66
+ let z = Math.round(u).toString(16);
67
+ return z.length > 1 ? z : `0${z}`;
68
+ } }
69
+ }, DEC2HEX = {};
70
+ for (let u = 0; u <= 255; u++) DEC2HEX[u] = utils_default.unit.dec2hex(u);
71
+ var TYPE = {
72
+ ALL: 0,
73
+ RGB: 1,
74
+ HSL: 2
75
+ }, type_default = class {
76
+ constructor() {
77
+ this.type = TYPE.ALL;
78
+ }
79
+ get() {
80
+ return this.type;
81
+ }
82
+ set(u) {
83
+ if (this.type && this.type !== u) throw Error("Cannot change both RGB and HSL channels at the same time");
84
+ this.type = u;
85
+ }
86
+ reset() {
87
+ this.type = TYPE.ALL;
88
+ }
89
+ is(u) {
90
+ return this.type === u;
91
+ }
92
+ }, reusable_default = new class {
93
+ constructor(u, z) {
94
+ this.color = z, this.changed = !1, this.data = u, this.type = new type_default();
95
+ }
96
+ set(u, z) {
97
+ return this.color = z, this.changed = !1, this.data = u, this.type.type = TYPE.ALL, this;
98
+ }
99
+ _ensureHSL() {
100
+ let u = this.data, { h: z, s: B, l: V } = u;
101
+ z === void 0 && (u.h = utils_default.channel.rgb2hsl(u, "h")), B === void 0 && (u.s = utils_default.channel.rgb2hsl(u, "s")), V === void 0 && (u.l = utils_default.channel.rgb2hsl(u, "l"));
102
+ }
103
+ _ensureRGB() {
104
+ let u = this.data, { r: z, g: B, b: V } = u;
105
+ z === void 0 && (u.r = utils_default.channel.hsl2rgb(u, "r")), B === void 0 && (u.g = utils_default.channel.hsl2rgb(u, "g")), V === void 0 && (u.b = utils_default.channel.hsl2rgb(u, "b"));
106
+ }
107
+ get r() {
108
+ let u = this.data, z = u.r;
109
+ return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "r"));
110
+ }
111
+ get g() {
112
+ let u = this.data, z = u.g;
113
+ return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "g"));
114
+ }
115
+ get b() {
116
+ let u = this.data, z = u.b;
117
+ return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "b"));
118
+ }
119
+ get h() {
120
+ let u = this.data, z = u.h;
121
+ return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "h"));
122
+ }
123
+ get s() {
124
+ let u = this.data, z = u.s;
125
+ return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "s"));
126
+ }
127
+ get l() {
128
+ let u = this.data, z = u.l;
129
+ return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "l"));
130
+ }
131
+ get a() {
132
+ return this.data.a;
133
+ }
134
+ set r(u) {
135
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.r = u;
136
+ }
137
+ set g(u) {
138
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.g = u;
139
+ }
140
+ set b(u) {
141
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.b = u;
142
+ }
143
+ set h(u) {
144
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.h = u;
145
+ }
146
+ set s(u) {
147
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.s = u;
148
+ }
149
+ set l(u) {
150
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.l = u;
151
+ }
152
+ set a(u) {
153
+ this.changed = !0, this.data.a = u;
154
+ }
155
+ }({
156
+ r: 0,
157
+ g: 0,
158
+ b: 0,
159
+ a: 0
160
+ }, "transparent"), Hex = {
161
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
162
+ parse: (u) => {
163
+ if (u.charCodeAt(0) !== 35) return;
164
+ let z = u.match(Hex.re);
165
+ if (!z) return;
166
+ let B = z[1], V = parseInt(B, 16), H = B.length, U = H % 4 == 0, W = H > 4, G = W ? 1 : 17, K = W ? 8 : 4, q = U ? 0 : -1, X = W ? 255 : 15;
167
+ return reusable_default.set({
168
+ r: (V >> K * (q + 3) & X) * G,
169
+ g: (V >> K * (q + 2) & X) * G,
170
+ b: (V >> K * (q + 1) & X) * G,
171
+ a: U ? (V & X) * G / 255 : 1
172
+ }, u);
173
+ },
174
+ stringify: (u) => {
175
+ let { r: z, g: B, b: V, a: H } = u;
176
+ return H < 1 ? `#${DEC2HEX[Math.round(z)]}${DEC2HEX[Math.round(B)]}${DEC2HEX[Math.round(V)]}${DEC2HEX[Math.round(H * 255)]}` : `#${DEC2HEX[Math.round(z)]}${DEC2HEX[Math.round(B)]}${DEC2HEX[Math.round(V)]}`;
177
+ }
178
+ }, hex_default = Hex, HSL = {
179
+ 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,
180
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
181
+ _hue2deg: (u) => {
182
+ let z = u.match(HSL.hueRe);
183
+ if (z) {
184
+ let [, u, B] = z;
185
+ switch (B) {
186
+ case "grad": return utils_default.channel.clamp.h(parseFloat(u) * .9);
187
+ case "rad": return utils_default.channel.clamp.h(parseFloat(u) * 180 / Math.PI);
188
+ case "turn": return utils_default.channel.clamp.h(parseFloat(u) * 360);
189
+ }
190
+ }
191
+ return utils_default.channel.clamp.h(parseFloat(u));
192
+ },
193
+ parse: (u) => {
194
+ let z = u.charCodeAt(0);
195
+ if (z !== 104 && z !== 72) return;
196
+ let B = u.match(HSL.re);
197
+ if (!B) return;
198
+ let [, V, H, U, G, K] = B;
199
+ return reusable_default.set({
200
+ h: HSL._hue2deg(V),
201
+ s: utils_default.channel.clamp.s(parseFloat(H)),
202
+ l: utils_default.channel.clamp.l(parseFloat(U)),
203
+ a: G ? utils_default.channel.clamp.a(K ? parseFloat(G) / 100 : parseFloat(G)) : 1
204
+ }, u);
205
+ },
206
+ stringify: (u) => {
207
+ let { h: z, s: B, l: V, a: H } = u;
208
+ return H < 1 ? `hsla(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}%, ${utils_default.lang.round(V)}%, ${H})` : `hsl(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}%, ${utils_default.lang.round(V)}%)`;
209
+ }
210
+ }, hsl_default = HSL, Keyword = {
211
+ colors: {
212
+ aliceblue: "#f0f8ff",
213
+ antiquewhite: "#faebd7",
214
+ aqua: "#00ffff",
215
+ aquamarine: "#7fffd4",
216
+ azure: "#f0ffff",
217
+ beige: "#f5f5dc",
218
+ bisque: "#ffe4c4",
219
+ black: "#000000",
220
+ blanchedalmond: "#ffebcd",
221
+ blue: "#0000ff",
222
+ blueviolet: "#8a2be2",
223
+ brown: "#a52a2a",
224
+ burlywood: "#deb887",
225
+ cadetblue: "#5f9ea0",
226
+ chartreuse: "#7fff00",
227
+ chocolate: "#d2691e",
228
+ coral: "#ff7f50",
229
+ cornflowerblue: "#6495ed",
230
+ cornsilk: "#fff8dc",
231
+ crimson: "#dc143c",
232
+ cyanaqua: "#00ffff",
233
+ darkblue: "#00008b",
234
+ darkcyan: "#008b8b",
235
+ darkgoldenrod: "#b8860b",
236
+ darkgray: "#a9a9a9",
237
+ darkgreen: "#006400",
238
+ darkgrey: "#a9a9a9",
239
+ darkkhaki: "#bdb76b",
240
+ darkmagenta: "#8b008b",
241
+ darkolivegreen: "#556b2f",
242
+ darkorange: "#ff8c00",
243
+ darkorchid: "#9932cc",
244
+ darkred: "#8b0000",
245
+ darksalmon: "#e9967a",
246
+ darkseagreen: "#8fbc8f",
247
+ darkslateblue: "#483d8b",
248
+ darkslategray: "#2f4f4f",
249
+ darkslategrey: "#2f4f4f",
250
+ darkturquoise: "#00ced1",
251
+ darkviolet: "#9400d3",
252
+ deeppink: "#ff1493",
253
+ deepskyblue: "#00bfff",
254
+ dimgray: "#696969",
255
+ dimgrey: "#696969",
256
+ dodgerblue: "#1e90ff",
257
+ firebrick: "#b22222",
258
+ floralwhite: "#fffaf0",
259
+ forestgreen: "#228b22",
260
+ fuchsia: "#ff00ff",
261
+ gainsboro: "#dcdcdc",
262
+ ghostwhite: "#f8f8ff",
263
+ gold: "#ffd700",
264
+ goldenrod: "#daa520",
265
+ gray: "#808080",
266
+ green: "#008000",
267
+ greenyellow: "#adff2f",
268
+ grey: "#808080",
269
+ honeydew: "#f0fff0",
270
+ hotpink: "#ff69b4",
271
+ indianred: "#cd5c5c",
272
+ indigo: "#4b0082",
273
+ ivory: "#fffff0",
274
+ khaki: "#f0e68c",
275
+ lavender: "#e6e6fa",
276
+ lavenderblush: "#fff0f5",
277
+ lawngreen: "#7cfc00",
278
+ lemonchiffon: "#fffacd",
279
+ lightblue: "#add8e6",
280
+ lightcoral: "#f08080",
281
+ lightcyan: "#e0ffff",
282
+ lightgoldenrodyellow: "#fafad2",
283
+ lightgray: "#d3d3d3",
284
+ lightgreen: "#90ee90",
285
+ lightgrey: "#d3d3d3",
286
+ lightpink: "#ffb6c1",
287
+ lightsalmon: "#ffa07a",
288
+ lightseagreen: "#20b2aa",
289
+ lightskyblue: "#87cefa",
290
+ lightslategray: "#778899",
291
+ lightslategrey: "#778899",
292
+ lightsteelblue: "#b0c4de",
293
+ lightyellow: "#ffffe0",
294
+ lime: "#00ff00",
295
+ limegreen: "#32cd32",
296
+ linen: "#faf0e6",
297
+ magenta: "#ff00ff",
298
+ maroon: "#800000",
299
+ mediumaquamarine: "#66cdaa",
300
+ mediumblue: "#0000cd",
301
+ mediumorchid: "#ba55d3",
302
+ mediumpurple: "#9370db",
303
+ mediumseagreen: "#3cb371",
304
+ mediumslateblue: "#7b68ee",
305
+ mediumspringgreen: "#00fa9a",
306
+ mediumturquoise: "#48d1cc",
307
+ mediumvioletred: "#c71585",
308
+ midnightblue: "#191970",
309
+ mintcream: "#f5fffa",
310
+ mistyrose: "#ffe4e1",
311
+ moccasin: "#ffe4b5",
312
+ navajowhite: "#ffdead",
313
+ navy: "#000080",
314
+ oldlace: "#fdf5e6",
315
+ olive: "#808000",
316
+ olivedrab: "#6b8e23",
317
+ orange: "#ffa500",
318
+ orangered: "#ff4500",
319
+ orchid: "#da70d6",
320
+ palegoldenrod: "#eee8aa",
321
+ palegreen: "#98fb98",
322
+ paleturquoise: "#afeeee",
323
+ palevioletred: "#db7093",
324
+ papayawhip: "#ffefd5",
325
+ peachpuff: "#ffdab9",
326
+ peru: "#cd853f",
327
+ pink: "#ffc0cb",
328
+ plum: "#dda0dd",
329
+ powderblue: "#b0e0e6",
330
+ purple: "#800080",
331
+ rebeccapurple: "#663399",
332
+ red: "#ff0000",
333
+ rosybrown: "#bc8f8f",
334
+ royalblue: "#4169e1",
335
+ saddlebrown: "#8b4513",
336
+ salmon: "#fa8072",
337
+ sandybrown: "#f4a460",
338
+ seagreen: "#2e8b57",
339
+ seashell: "#fff5ee",
340
+ sienna: "#a0522d",
341
+ silver: "#c0c0c0",
342
+ skyblue: "#87ceeb",
343
+ slateblue: "#6a5acd",
344
+ slategray: "#708090",
345
+ slategrey: "#708090",
346
+ snow: "#fffafa",
347
+ springgreen: "#00ff7f",
348
+ tan: "#d2b48c",
349
+ teal: "#008080",
350
+ thistle: "#d8bfd8",
351
+ transparent: "#00000000",
352
+ turquoise: "#40e0d0",
353
+ violet: "#ee82ee",
354
+ wheat: "#f5deb3",
355
+ white: "#ffffff",
356
+ whitesmoke: "#f5f5f5",
357
+ yellow: "#ffff00",
358
+ yellowgreen: "#9acd32"
359
+ },
360
+ parse: (u) => {
361
+ u = u.toLowerCase();
362
+ let z = Keyword.colors[u];
363
+ if (z) return hex_default.parse(z);
364
+ },
365
+ stringify: (u) => {
366
+ let z = hex_default.stringify(u);
367
+ for (let u in Keyword.colors) if (Keyword.colors[u] === z) return u;
368
+ }
369
+ }, keyword_default = Keyword, RGB = {
370
+ 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,
371
+ parse: (u) => {
372
+ let z = u.charCodeAt(0);
373
+ if (z !== 114 && z !== 82) return;
374
+ let B = u.match(RGB.re);
375
+ if (!B) return;
376
+ let [, V, H, U, G, K, q, Y, X] = B;
377
+ return reusable_default.set({
378
+ r: utils_default.channel.clamp.r(H ? parseFloat(V) * 2.55 : parseFloat(V)),
379
+ g: utils_default.channel.clamp.g(G ? parseFloat(U) * 2.55 : parseFloat(U)),
380
+ b: utils_default.channel.clamp.b(q ? parseFloat(K) * 2.55 : parseFloat(K)),
381
+ a: Y ? utils_default.channel.clamp.a(X ? parseFloat(Y) / 100 : parseFloat(Y)) : 1
382
+ }, u);
383
+ },
384
+ stringify: (u) => {
385
+ let { r: z, g: B, b: V, a: H } = u;
386
+ return H < 1 ? `rgba(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}, ${utils_default.lang.round(V)}, ${utils_default.lang.round(H)})` : `rgb(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}, ${utils_default.lang.round(V)})`;
387
+ }
388
+ }, rgb_default = RGB, color_default = {
389
+ format: {
390
+ keyword: keyword_default,
391
+ hex: hex_default,
392
+ rgb: rgb_default,
393
+ rgba: rgb_default,
394
+ hsl: hsl_default,
395
+ hsla: hsl_default
396
+ },
397
+ parse: (u) => {
398
+ if (typeof u != "string") return u;
399
+ let z = hex_default.parse(u) || rgb_default.parse(u) || hsl_default.parse(u) || keyword_default.parse(u);
400
+ if (z) return z;
401
+ throw Error(`Unsupported color format: "${u}"`);
402
+ },
403
+ stringify: (u) => !u.changed && u.color ? u.color : u.type.is(TYPE.HSL) || u.data.r === void 0 ? hsl_default.stringify(u) : u.a < 1 || !Number.isInteger(u.r) || !Number.isInteger(u.g) || !Number.isInteger(u.b) ? rgb_default.stringify(u) : hex_default.stringify(u)
404
+ }, change_default = (u, z) => {
405
+ let B = color_default.parse(u);
406
+ for (let u in z) B[u] = utils_default.channel.clamp[u](z[u]);
407
+ return color_default.stringify(B);
408
+ }, rgba_default = (u, z, B = 0, V = 1) => {
409
+ if (typeof u != "number") return change_default(u, { a: z });
410
+ let H = reusable_default.set({
411
+ r: utils_default.channel.clamp.r(u),
412
+ g: utils_default.channel.clamp.g(z),
413
+ b: utils_default.channel.clamp.b(B),
414
+ a: utils_default.channel.clamp.a(V)
415
+ });
416
+ return color_default.stringify(H);
417
+ }, luminance_default = (u) => {
418
+ let { r: z, g: B, b: V } = color_default.parse(u), H = .2126 * utils_default.channel.toLinear(z) + .7152 * utils_default.channel.toLinear(B) + .0722 * utils_default.channel.toLinear(V);
419
+ return utils_default.lang.round(H);
420
+ }, is_light_default = (u) => luminance_default(u) >= .5, is_dark_default = (u) => !is_light_default(u), adjust_channel_default = (u, z, B) => {
421
+ let V = color_default.parse(u), H = V[z], U = utils_default.channel.clamp[z](H + B);
422
+ return H !== U && (V[z] = U), color_default.stringify(V);
423
+ }, lighten_default = (u, z) => adjust_channel_default(u, "l", z), darken_default = (u, z) => adjust_channel_default(u, "l", -z), adjust_default = (u, z) => {
424
+ let B = color_default.parse(u), V = {};
425
+ for (let u in z) z[u] && (V[u] = B[u] + z[u]);
426
+ return change_default(u, V);
427
+ }, mix_default = (u, z, B = 50) => {
428
+ let { r: V, g: H, b: U, a: W } = color_default.parse(u), { r: G, g: K, b: q, a: J } = color_default.parse(z), Y = B / 100, X = Y * 2 - 1, Z = W - J, Q = ((X * Z === -1 ? X : (X + Z) / (1 + X * Z)) + 1) / 2, $ = 1 - Q;
429
+ return rgba_default(V * Q + G * $, H * Q + K * $, U * Q + q * $, W * Y + J * (1 - Y));
430
+ }, invert_default = (u, z = 100) => {
431
+ let B = color_default.parse(u);
432
+ return B.r = 255 - B.r, B.g = 255 - B.g, B.b = 255 - B.b, mix_default(B, u, z);
433
+ }, frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, anyCommentRegex = /\s*%%.*\n/gm, UnknownDiagramError = class extends Error {
434
+ static #e = __name(this, "UnknownDiagramError");
435
+ constructor(u) {
436
+ super(u), this.name = "UnknownDiagramError";
437
+ }
438
+ }, detectors = {}, detectType = /* @__PURE__ */ __name(function(u, z) {
439
+ u = u.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
440
+ for (let [B, { detector: V }] of Object.entries(detectors)) if (V(u, z)) return B;
441
+ throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${u}`);
442
+ }, "detectType"), registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...u) => {
443
+ for (let { id: z, detector: B, loader: V } of u) addDetector(z, B, V);
444
+ }, "registerLazyLoadedDiagrams"), addDetector = /* @__PURE__ */ __name((u, z, V) => {
445
+ detectors[u] && log.warn(`Detector with key ${u} already exists. Overwriting.`), detectors[u] = {
446
+ detector: z,
447
+ loader: V
448
+ }, log.debug(`Detector with key ${u} added${V ? " with loader" : ""}`);
449
+ }, "addDetector"), getDiagramLoader = /* @__PURE__ */ __name((u) => detectors[u].loader, "getDiagramLoader"), assignWithDepth = /* @__PURE__ */ __name((u, z, { depth: B = 2, clobber: V = !1 } = {}) => {
450
+ let H = {
451
+ depth: B,
452
+ clobber: V
453
+ };
454
+ return Array.isArray(z) && !Array.isArray(u) ? (z.forEach((z) => assignWithDepth(u, z, H)), u) : Array.isArray(z) && Array.isArray(u) ? (z.forEach((z) => {
455
+ u.includes(z) || u.push(z);
456
+ }), u) : u === void 0 || B <= 0 ? typeof u == "object" && u && typeof z == "object" ? Object.assign(u, z) : z : (z !== void 0 && typeof u == "object" && typeof z == "object" && Object.keys(z).forEach((H) => {
457
+ typeof z[H] == "object" && (u[H] === void 0 || typeof u[H] == "object") ? (u[H] === void 0 && (u[H] = Array.isArray(z[H]) ? [] : {}), u[H] = assignWithDepth(u[H], z[H], {
458
+ depth: B - 1,
459
+ clobber: V
460
+ })) : (V || typeof u[H] != "object" && typeof z[H] != "object") && (u[H] = z[H]);
461
+ }), u);
462
+ }, "assignWithDepth"), assignWithDepth_default = assignWithDepth, oldAttributeBackgroundColorOdd = "#ffffff", oldAttributeBackgroundColorEven = "#f2f2f2", mkBorder = /* @__PURE__ */ __name((u, z) => z ? adjust_default(u, {
463
+ s: -40,
464
+ l: 10
465
+ }) : adjust_default(u, {
466
+ s: -40,
467
+ l: -10
468
+ }), "mkBorder"), Theme = class {
469
+ static #e = __name(this, "Theme");
470
+ constructor() {
471
+ this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px";
472
+ }
473
+ updateColors() {
474
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
475
+ h: 180,
476
+ l: 5
477
+ }), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || lighten_default(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.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || darken_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
478
+ h: 210,
479
+ l: 150
480
+ }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.darkMode) for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 75);
481
+ else for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 25);
482
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
483
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this.darkMode ? this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10) : this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 10);
484
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
485
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
486
+ let u = this.darkMode ? -4 : -1;
487
+ for (let z = 0; z < 5; z++) this["surface" + z] = this["surface" + z] || adjust_default(this.mainBkg, {
488
+ h: 180,
489
+ s: -15,
490
+ l: u * (5 + z * 3)
491
+ }), this["surfacePeer" + z] = this["surfacePeer" + z] || adjust_default(this.mainBkg, {
492
+ h: 180,
493
+ s: -15,
494
+ l: u * (8 + z * 3)
495
+ });
496
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(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 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
497
+ h: 60,
498
+ l: -10
499
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
500
+ h: -60,
501
+ l: -10
502
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
503
+ h: 120,
504
+ l: 0
505
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
506
+ h: 60,
507
+ l: -20
508
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
509
+ h: -60,
510
+ l: -20
511
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
512
+ h: 120,
513
+ l: -10
514
+ }), 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.radar = {
515
+ axisColor: this.radar?.axisColor || this.lineColor,
516
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
517
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
518
+ curveOpacity: this.radar?.curveOpacity || .5,
519
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
520
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
521
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
522
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
523
+ legendBoxSize: this.radar?.legendBoxSize || 12,
524
+ legendFontSize: this.radar?.legendFontSize || 12
525
+ }, 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 || adjust_default(this.primaryColor, {
526
+ r: 5,
527
+ g: 5,
528
+ b: 5
529
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
530
+ r: 10,
531
+ g: 10,
532
+ b: 10
533
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
534
+ r: 15,
535
+ g: 15,
536
+ b: 15
537
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
538
+ r: -5,
539
+ g: -5,
540
+ b: -5
541
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
542
+ r: -10,
543
+ g: -10,
544
+ b: -10
545
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
546
+ r: -15,
547
+ g: -15,
548
+ b: -15
549
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
550
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
551
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
552
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
553
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
554
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
555
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
556
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
557
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
558
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
559
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
560
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
561
+ }, 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 ? darken_default(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 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
562
+ }
563
+ calculate(u) {
564
+ if (typeof u != "object") {
565
+ this.updateColors();
566
+ return;
567
+ }
568
+ let z = Object.keys(u);
569
+ z.forEach((z) => {
570
+ this[z] = u[z];
571
+ }), this.updateColors(), z.forEach((z) => {
572
+ this[z] = u[z];
573
+ });
574
+ }
575
+ }, getThemeVariables = /* @__PURE__ */ __name((u) => {
576
+ let z = new Theme();
577
+ return z.calculate(u), z;
578
+ }, "getThemeVariables"), Theme2 = class {
579
+ static #e = __name(this, "Theme");
580
+ constructor() {
581
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = rgba_default(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.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.sectionBkgColor = darken_default("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = darken_default(this.sectionBkgColor, 10), this.taskBorderColor = rgba_default(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = rgba_default(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 || lighten_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
582
+ }
583
+ updateColors() {
584
+ this.secondBkg = lighten_default(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 = lighten_default(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = lighten_default(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 = this.darkTextColor, 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 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(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 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 });
585
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
586
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10);
587
+ for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
588
+ h: 30,
589
+ s: -30,
590
+ l: -(-10 + u * 4)
591
+ }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
592
+ h: 30,
593
+ s: -30,
594
+ l: -(-7 + u * 4)
595
+ });
596
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
597
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
598
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["pie" + u] = this["cScale" + u];
599
+ 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.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
600
+ r: 5,
601
+ g: 5,
602
+ b: 5
603
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
604
+ r: 10,
605
+ g: 10,
606
+ b: 10
607
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
608
+ r: 15,
609
+ g: 15,
610
+ b: 15
611
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
612
+ r: -5,
613
+ g: -5,
614
+ b: -5
615
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
616
+ r: -10,
617
+ g: -10,
618
+ b: -10
619
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
620
+ r: -15,
621
+ g: -15,
622
+ b: -15
623
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
624
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
625
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
626
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
627
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
628
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
629
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
630
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
631
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
632
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
633
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
634
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
635
+ }, this.packet = {
636
+ startByteColor: this.primaryTextColor,
637
+ endByteColor: this.primaryTextColor,
638
+ labelColor: this.primaryTextColor,
639
+ titleColor: this.primaryTextColor,
640
+ blockStrokeColor: this.primaryTextColor,
641
+ blockFillColor: this.background
642
+ }, this.radar = {
643
+ axisColor: this.radar?.axisColor || this.lineColor,
644
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
645
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
646
+ curveOpacity: this.radar?.curveOpacity || .5,
647
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
648
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
649
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
650
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
651
+ legendBoxSize: this.radar?.legendBoxSize || 12,
652
+ legendFontSize: this.radar?.legendFontSize || 12
653
+ }, 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 ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = lighten_default(this.secondaryColor, 20), this.git1 = lighten_default(this.pie2 || this.secondaryColor, 20), this.git2 = lighten_default(this.pie3 || this.tertiaryColor, 20), this.git3 = lighten_default(this.pie4 || adjust_default(this.primaryColor, { h: -30 }), 20), this.git4 = lighten_default(this.pie5 || adjust_default(this.primaryColor, { h: -60 }), 20), this.git5 = lighten_default(this.pie6 || adjust_default(this.primaryColor, { h: -90 }), 10), this.git6 = lighten_default(this.pie7 || adjust_default(this.primaryColor, { h: 60 }), 10), this.git7 = lighten_default(this.pie8 || adjust_default(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || lighten_default(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || lighten_default(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
654
+ }
655
+ calculate(u) {
656
+ if (typeof u != "object") {
657
+ this.updateColors();
658
+ return;
659
+ }
660
+ let z = Object.keys(u);
661
+ z.forEach((z) => {
662
+ this[z] = u[z];
663
+ }), this.updateColors(), z.forEach((z) => {
664
+ this[z] = u[z];
665
+ });
666
+ }
667
+ }, getThemeVariables2 = /* @__PURE__ */ __name((u) => {
668
+ let z = new Theme2();
669
+ return z.calculate(u), z;
670
+ }, "getThemeVariables"), Theme3 = class {
671
+ static #e = __name(this, "Theme");
672
+ constructor() {
673
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = adjust_default(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", 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.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.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 = rgba_default(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.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.updateColors();
674
+ }
675
+ updateColors() {
676
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
677
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 10), this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 25);
678
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || adjust_default(this["cScale" + u], { h: 180 });
679
+ for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
680
+ h: 30,
681
+ l: -(5 + u * 5)
682
+ }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
683
+ h: 30,
684
+ l: -(7 + u * 5)
685
+ });
686
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
687
+ this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
688
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.labelTextColor;
689
+ }
690
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || adjust_default(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
691
+ h: 60,
692
+ l: -20
693
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
694
+ h: -60,
695
+ l: -40
696
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
697
+ h: 120,
698
+ l: -40
699
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
700
+ h: 60,
701
+ l: -40
702
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
703
+ h: -90,
704
+ l: -40
705
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
706
+ h: 120,
707
+ l: -30
708
+ }), 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.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
709
+ r: 5,
710
+ g: 5,
711
+ b: 5
712
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
713
+ r: 10,
714
+ g: 10,
715
+ b: 10
716
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
717
+ r: 15,
718
+ g: 15,
719
+ b: 15
720
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
721
+ r: -5,
722
+ g: -5,
723
+ b: -5
724
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
725
+ r: -10,
726
+ g: -10,
727
+ b: -10
728
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
729
+ r: -15,
730
+ g: -15,
731
+ b: -15
732
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
733
+ axisColor: this.radar?.axisColor || this.lineColor,
734
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
735
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
736
+ curveOpacity: this.radar?.curveOpacity || .5,
737
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
738
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
739
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
740
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
741
+ legendBoxSize: this.radar?.legendBoxSize || 12,
742
+ legendFontSize: this.radar?.legendFontSize || 12
743
+ }, this.xyChart = {
744
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
745
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
746
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
747
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
748
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
749
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
750
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
751
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
752
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
753
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
754
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
755
+ }, 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 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || darken_default(invert_default(this.git0), 25), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
756
+ }
757
+ calculate(u) {
758
+ if (Object.keys(this).forEach((u) => {
759
+ this[u] === "calculated" && (this[u] = void 0);
760
+ }), typeof u != "object") {
761
+ this.updateColors();
762
+ return;
763
+ }
764
+ let z = Object.keys(u);
765
+ z.forEach((z) => {
766
+ this[z] = u[z];
767
+ }), this.updateColors(), z.forEach((z) => {
768
+ this[z] = u[z];
769
+ });
770
+ }
771
+ }, getThemeVariables3 = /* @__PURE__ */ __name((u) => {
772
+ let z = new Theme3();
773
+ return z.calculate(u), z;
774
+ }, "getThemeVariables"), Theme4 = class {
775
+ static #e = __name(this, "Theme");
776
+ constructor() {
777
+ 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 = lighten_default("#cde498", 10), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.primaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.THEME_COLOR_LIMIT = 12, 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.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
778
+ }
779
+ updateColors() {
780
+ this.actorBorder = darken_default(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
781
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 10), this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 25);
782
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || adjust_default(this["cScale" + u], { h: 180 });
783
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
784
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
785
+ for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
786
+ h: 30,
787
+ s: -30,
788
+ l: -(5 + u * 5)
789
+ }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
790
+ h: 30,
791
+ s: -30,
792
+ l: -(8 + u * 5)
793
+ });
794
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(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 || adjust_default(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
795
+ h: 40,
796
+ l: -40
797
+ }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
798
+ h: 60,
799
+ l: -10
800
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
801
+ h: -60,
802
+ l: -10
803
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
804
+ h: 120,
805
+ l: 0
806
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
807
+ h: 60,
808
+ l: -50
809
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
810
+ h: -60,
811
+ l: -50
812
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
813
+ h: 120,
814
+ l: -50
815
+ }), 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.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
816
+ r: 5,
817
+ g: 5,
818
+ b: 5
819
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
820
+ r: 10,
821
+ g: 10,
822
+ b: 10
823
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
824
+ r: 15,
825
+ g: 15,
826
+ b: 15
827
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
828
+ r: -5,
829
+ g: -5,
830
+ b: -5
831
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
832
+ r: -10,
833
+ g: -10,
834
+ b: -10
835
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
836
+ r: -15,
837
+ g: -15,
838
+ b: -15
839
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
840
+ startByteColor: this.primaryTextColor,
841
+ endByteColor: this.primaryTextColor,
842
+ labelColor: this.primaryTextColor,
843
+ titleColor: this.primaryTextColor,
844
+ blockStrokeColor: this.primaryTextColor,
845
+ blockFillColor: this.mainBkg
846
+ }, this.radar = {
847
+ axisColor: this.radar?.axisColor || this.lineColor,
848
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
849
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
850
+ curveOpacity: this.radar?.curveOpacity || .5,
851
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
852
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
853
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
854
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
855
+ legendBoxSize: this.radar?.legendBoxSize || 12,
856
+ legendFontSize: this.radar?.legendFontSize || 12
857
+ }, this.xyChart = {
858
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
859
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
860
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
861
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
862
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
863
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
864
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
865
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
866
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
867
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
868
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
869
+ }, 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 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
870
+ }
871
+ calculate(u) {
872
+ if (typeof u != "object") {
873
+ this.updateColors();
874
+ return;
875
+ }
876
+ let z = Object.keys(u);
877
+ z.forEach((z) => {
878
+ this[z] = u[z];
879
+ }), this.updateColors(), z.forEach((z) => {
880
+ this[z] = u[z];
881
+ });
882
+ }
883
+ }, getThemeVariables4 = /* @__PURE__ */ __name((u) => {
884
+ let z = new Theme4();
885
+ return z.calculate(u), z;
886
+ }, "getThemeVariables"), Theme5 = class {
887
+ static #e = __name(this, "Theme");
888
+ constructor() {
889
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = lighten_default(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(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.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.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
890
+ }
891
+ updateColors() {
892
+ this.secondBkg = lighten_default(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
893
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
894
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this.darkMode ? this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10) : this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 10);
895
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
896
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
897
+ for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, { l: -(5 + u * 5) }), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, { l: -(8 + u * 5) });
898
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = lighten_default(this.contrast, 30), this.sectionBkgColor2 = lighten_default(this.contrast, 30), this.taskBorderColor = darken_default(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 = lighten_default(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = darken_default(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 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 });
899
+ for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["pie" + u] = this["cScale" + u];
900
+ 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", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
901
+ r: 5,
902
+ g: 5,
903
+ b: 5
904
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
905
+ r: 10,
906
+ g: 10,
907
+ b: 10
908
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
909
+ r: 15,
910
+ g: 15,
911
+ b: 15
912
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
913
+ r: -5,
914
+ g: -5,
915
+ b: -5
916
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
917
+ r: -10,
918
+ g: -10,
919
+ b: -10
920
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
921
+ r: -15,
922
+ g: -15,
923
+ b: -15
924
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
925
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
926
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
927
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
928
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
929
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
930
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
931
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
932
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
933
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
934
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
935
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
936
+ }, this.radar = {
937
+ axisColor: this.radar?.axisColor || this.lineColor,
938
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
939
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
940
+ curveOpacity: this.radar?.curveOpacity || .5,
941
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
942
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
943
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
944
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
945
+ legendBoxSize: this.radar?.legendBoxSize || 12,
946
+ legendFontSize: this.radar?.legendFontSize || 12
947
+ }, 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 = darken_default(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || adjust_default(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
948
+ }
949
+ calculate(u) {
950
+ if (typeof u != "object") {
951
+ this.updateColors();
952
+ return;
953
+ }
954
+ let z = Object.keys(u);
955
+ z.forEach((z) => {
956
+ this[z] = u[z];
957
+ }), this.updateColors(), z.forEach((z) => {
958
+ this[z] = u[z];
959
+ });
960
+ }
961
+ }, themes_default = {
962
+ base: { getThemeVariables },
963
+ dark: { getThemeVariables: getThemeVariables2 },
964
+ default: { getThemeVariables: getThemeVariables3 },
965
+ forest: { getThemeVariables: getThemeVariables4 },
966
+ neutral: { getThemeVariables: /* @__PURE__ */ __name((u) => {
967
+ let z = new Theme5();
968
+ return z.calculate(u), z;
969
+ }, "getThemeVariables") }
970
+ }, config_schema_default = {
971
+ flowchart: {
972
+ useMaxWidth: !0,
973
+ titleTopMargin: 25,
974
+ subGraphTitleMargin: {
975
+ top: 0,
976
+ bottom: 0
977
+ },
978
+ diagramPadding: 8,
979
+ htmlLabels: !0,
980
+ nodeSpacing: 50,
981
+ rankSpacing: 50,
982
+ curve: "basis",
983
+ padding: 15,
984
+ defaultRenderer: "dagre-wrapper",
985
+ wrappingWidth: 200,
986
+ inheritDir: !1
987
+ },
988
+ sequence: {
989
+ useMaxWidth: !0,
990
+ hideUnusedParticipants: !1,
991
+ activationWidth: 10,
992
+ diagramMarginX: 50,
993
+ diagramMarginY: 10,
994
+ actorMargin: 50,
995
+ width: 150,
996
+ height: 65,
997
+ boxMargin: 10,
998
+ boxTextMargin: 5,
999
+ noteMargin: 10,
1000
+ messageMargin: 35,
1001
+ messageAlign: "center",
1002
+ mirrorActors: !0,
1003
+ forceMenus: !1,
1004
+ bottomMarginAdj: 1,
1005
+ rightAngles: !1,
1006
+ showSequenceNumbers: !1,
1007
+ actorFontSize: 14,
1008
+ actorFontFamily: "\"Open Sans\", sans-serif",
1009
+ actorFontWeight: 400,
1010
+ noteFontSize: 14,
1011
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1012
+ noteFontWeight: 400,
1013
+ noteAlign: "center",
1014
+ messageFontSize: 16,
1015
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1016
+ messageFontWeight: 400,
1017
+ wrap: !1,
1018
+ wrapPadding: 10,
1019
+ labelBoxWidth: 50,
1020
+ labelBoxHeight: 20
1021
+ },
1022
+ gantt: {
1023
+ useMaxWidth: !0,
1024
+ titleTopMargin: 25,
1025
+ barHeight: 20,
1026
+ barGap: 4,
1027
+ topPadding: 50,
1028
+ rightPadding: 75,
1029
+ leftPadding: 75,
1030
+ gridLineStartPadding: 35,
1031
+ fontSize: 11,
1032
+ sectionFontSize: 11,
1033
+ numberSectionStyles: 4,
1034
+ axisFormat: "%Y-%m-%d",
1035
+ topAxis: !1,
1036
+ displayMode: "",
1037
+ weekday: "sunday"
1038
+ },
1039
+ journey: {
1040
+ useMaxWidth: !0,
1041
+ diagramMarginX: 50,
1042
+ diagramMarginY: 10,
1043
+ leftMargin: 150,
1044
+ maxLabelWidth: 360,
1045
+ width: 150,
1046
+ height: 50,
1047
+ boxMargin: 10,
1048
+ boxTextMargin: 5,
1049
+ noteMargin: 10,
1050
+ messageMargin: 35,
1051
+ messageAlign: "center",
1052
+ bottomMarginAdj: 1,
1053
+ rightAngles: !1,
1054
+ taskFontSize: 14,
1055
+ taskFontFamily: "\"Open Sans\", sans-serif",
1056
+ taskMargin: 50,
1057
+ activationWidth: 10,
1058
+ textPlacement: "fo",
1059
+ actorColours: [
1060
+ "#8FBC8F",
1061
+ "#7CFC00",
1062
+ "#00FFFF",
1063
+ "#20B2AA",
1064
+ "#B0E0E6",
1065
+ "#FFFFE0"
1066
+ ],
1067
+ sectionFills: [
1068
+ "#191970",
1069
+ "#8B008B",
1070
+ "#4B0082",
1071
+ "#2F4F4F",
1072
+ "#800000",
1073
+ "#8B4513",
1074
+ "#00008B"
1075
+ ],
1076
+ sectionColours: ["#fff"],
1077
+ titleColor: "",
1078
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1079
+ titleFontSize: "4ex"
1080
+ },
1081
+ class: {
1082
+ useMaxWidth: !0,
1083
+ titleTopMargin: 25,
1084
+ arrowMarkerAbsolute: !1,
1085
+ dividerMargin: 10,
1086
+ padding: 5,
1087
+ textHeight: 10,
1088
+ defaultRenderer: "dagre-wrapper",
1089
+ htmlLabels: !1,
1090
+ hideEmptyMembersBox: !1
1091
+ },
1092
+ state: {
1093
+ useMaxWidth: !0,
1094
+ titleTopMargin: 25,
1095
+ dividerMargin: 10,
1096
+ sizeUnit: 5,
1097
+ padding: 8,
1098
+ textHeight: 10,
1099
+ titleShift: -15,
1100
+ noteMargin: 10,
1101
+ forkWidth: 70,
1102
+ forkHeight: 7,
1103
+ miniPadding: 2,
1104
+ fontSizeFactor: 5.02,
1105
+ fontSize: 24,
1106
+ labelHeight: 16,
1107
+ edgeLengthFactor: "20",
1108
+ compositTitleSize: 35,
1109
+ radius: 5,
1110
+ defaultRenderer: "dagre-wrapper"
1111
+ },
1112
+ er: {
1113
+ useMaxWidth: !0,
1114
+ titleTopMargin: 25,
1115
+ diagramPadding: 20,
1116
+ layoutDirection: "TB",
1117
+ minEntityWidth: 100,
1118
+ minEntityHeight: 75,
1119
+ entityPadding: 15,
1120
+ nodeSpacing: 140,
1121
+ rankSpacing: 80,
1122
+ stroke: "gray",
1123
+ fill: "honeydew",
1124
+ fontSize: 12
1125
+ },
1126
+ pie: {
1127
+ useMaxWidth: !0,
1128
+ textPosition: .75
1129
+ },
1130
+ quadrantChart: {
1131
+ useMaxWidth: !0,
1132
+ chartWidth: 500,
1133
+ chartHeight: 500,
1134
+ titleFontSize: 20,
1135
+ titlePadding: 10,
1136
+ quadrantPadding: 5,
1137
+ xAxisLabelPadding: 5,
1138
+ yAxisLabelPadding: 5,
1139
+ xAxisLabelFontSize: 16,
1140
+ yAxisLabelFontSize: 16,
1141
+ quadrantLabelFontSize: 16,
1142
+ quadrantTextTopPadding: 5,
1143
+ pointTextPadding: 5,
1144
+ pointLabelFontSize: 12,
1145
+ pointRadius: 5,
1146
+ xAxisPosition: "top",
1147
+ yAxisPosition: "left",
1148
+ quadrantInternalBorderStrokeWidth: 1,
1149
+ quadrantExternalBorderStrokeWidth: 2
1150
+ },
1151
+ xyChart: {
1152
+ useMaxWidth: !0,
1153
+ width: 700,
1154
+ height: 500,
1155
+ titleFontSize: 20,
1156
+ titlePadding: 10,
1157
+ showDataLabel: !1,
1158
+ showTitle: !0,
1159
+ xAxis: {
1160
+ $ref: "#/$defs/XYChartAxisConfig",
1161
+ showLabel: !0,
1162
+ labelFontSize: 14,
1163
+ labelPadding: 5,
1164
+ showTitle: !0,
1165
+ titleFontSize: 16,
1166
+ titlePadding: 5,
1167
+ showTick: !0,
1168
+ tickLength: 5,
1169
+ tickWidth: 2,
1170
+ showAxisLine: !0,
1171
+ axisLineWidth: 2
1172
+ },
1173
+ yAxis: {
1174
+ $ref: "#/$defs/XYChartAxisConfig",
1175
+ showLabel: !0,
1176
+ labelFontSize: 14,
1177
+ labelPadding: 5,
1178
+ showTitle: !0,
1179
+ titleFontSize: 16,
1180
+ titlePadding: 5,
1181
+ showTick: !0,
1182
+ tickLength: 5,
1183
+ tickWidth: 2,
1184
+ showAxisLine: !0,
1185
+ axisLineWidth: 2
1186
+ },
1187
+ chartOrientation: "vertical",
1188
+ plotReservedSpacePercent: 50
1189
+ },
1190
+ requirement: {
1191
+ useMaxWidth: !0,
1192
+ rect_fill: "#f9f9f9",
1193
+ text_color: "#333",
1194
+ rect_border_size: "0.5px",
1195
+ rect_border_color: "#bbb",
1196
+ rect_min_width: 200,
1197
+ rect_min_height: 200,
1198
+ fontSize: 14,
1199
+ rect_padding: 10,
1200
+ line_height: 20
1201
+ },
1202
+ mindmap: {
1203
+ useMaxWidth: !0,
1204
+ padding: 10,
1205
+ maxNodeWidth: 200,
1206
+ layoutAlgorithm: "cose-bilkent"
1207
+ },
1208
+ kanban: {
1209
+ useMaxWidth: !0,
1210
+ padding: 8,
1211
+ sectionWidth: 200,
1212
+ ticketBaseUrl: ""
1213
+ },
1214
+ timeline: {
1215
+ useMaxWidth: !0,
1216
+ diagramMarginX: 50,
1217
+ diagramMarginY: 10,
1218
+ leftMargin: 150,
1219
+ width: 150,
1220
+ height: 50,
1221
+ boxMargin: 10,
1222
+ boxTextMargin: 5,
1223
+ noteMargin: 10,
1224
+ messageMargin: 35,
1225
+ messageAlign: "center",
1226
+ bottomMarginAdj: 1,
1227
+ rightAngles: !1,
1228
+ taskFontSize: 14,
1229
+ taskFontFamily: "\"Open Sans\", sans-serif",
1230
+ taskMargin: 50,
1231
+ activationWidth: 10,
1232
+ textPlacement: "fo",
1233
+ actorColours: [
1234
+ "#8FBC8F",
1235
+ "#7CFC00",
1236
+ "#00FFFF",
1237
+ "#20B2AA",
1238
+ "#B0E0E6",
1239
+ "#FFFFE0"
1240
+ ],
1241
+ sectionFills: [
1242
+ "#191970",
1243
+ "#8B008B",
1244
+ "#4B0082",
1245
+ "#2F4F4F",
1246
+ "#800000",
1247
+ "#8B4513",
1248
+ "#00008B"
1249
+ ],
1250
+ sectionColours: ["#fff"],
1251
+ disableMulticolor: !1
1252
+ },
1253
+ gitGraph: {
1254
+ useMaxWidth: !0,
1255
+ titleTopMargin: 25,
1256
+ diagramPadding: 8,
1257
+ nodeLabel: {
1258
+ width: 75,
1259
+ height: 100,
1260
+ x: -25,
1261
+ y: 0
1262
+ },
1263
+ mainBranchName: "main",
1264
+ mainBranchOrder: 0,
1265
+ showCommitLabel: !0,
1266
+ showBranches: !0,
1267
+ rotateCommitLabel: !0,
1268
+ parallelCommits: !1,
1269
+ arrowMarkerAbsolute: !1
1270
+ },
1271
+ c4: {
1272
+ useMaxWidth: !0,
1273
+ diagramMarginX: 50,
1274
+ diagramMarginY: 10,
1275
+ c4ShapeMargin: 50,
1276
+ c4ShapePadding: 20,
1277
+ width: 216,
1278
+ height: 60,
1279
+ boxMargin: 10,
1280
+ c4ShapeInRow: 4,
1281
+ nextLinePaddingX: 0,
1282
+ c4BoundaryInRow: 2,
1283
+ personFontSize: 14,
1284
+ personFontFamily: "\"Open Sans\", sans-serif",
1285
+ personFontWeight: "normal",
1286
+ external_personFontSize: 14,
1287
+ external_personFontFamily: "\"Open Sans\", sans-serif",
1288
+ external_personFontWeight: "normal",
1289
+ systemFontSize: 14,
1290
+ systemFontFamily: "\"Open Sans\", sans-serif",
1291
+ systemFontWeight: "normal",
1292
+ external_systemFontSize: 14,
1293
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
1294
+ external_systemFontWeight: "normal",
1295
+ system_dbFontSize: 14,
1296
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
1297
+ system_dbFontWeight: "normal",
1298
+ external_system_dbFontSize: 14,
1299
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
1300
+ external_system_dbFontWeight: "normal",
1301
+ system_queueFontSize: 14,
1302
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
1303
+ system_queueFontWeight: "normal",
1304
+ external_system_queueFontSize: 14,
1305
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
1306
+ external_system_queueFontWeight: "normal",
1307
+ boundaryFontSize: 14,
1308
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
1309
+ boundaryFontWeight: "normal",
1310
+ messageFontSize: 12,
1311
+ messageFontFamily: "\"Open Sans\", sans-serif",
1312
+ messageFontWeight: "normal",
1313
+ containerFontSize: 14,
1314
+ containerFontFamily: "\"Open Sans\", sans-serif",
1315
+ containerFontWeight: "normal",
1316
+ external_containerFontSize: 14,
1317
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
1318
+ external_containerFontWeight: "normal",
1319
+ container_dbFontSize: 14,
1320
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
1321
+ container_dbFontWeight: "normal",
1322
+ external_container_dbFontSize: 14,
1323
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
1324
+ external_container_dbFontWeight: "normal",
1325
+ container_queueFontSize: 14,
1326
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
1327
+ container_queueFontWeight: "normal",
1328
+ external_container_queueFontSize: 14,
1329
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
1330
+ external_container_queueFontWeight: "normal",
1331
+ componentFontSize: 14,
1332
+ componentFontFamily: "\"Open Sans\", sans-serif",
1333
+ componentFontWeight: "normal",
1334
+ external_componentFontSize: 14,
1335
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
1336
+ external_componentFontWeight: "normal",
1337
+ component_dbFontSize: 14,
1338
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
1339
+ component_dbFontWeight: "normal",
1340
+ external_component_dbFontSize: 14,
1341
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
1342
+ external_component_dbFontWeight: "normal",
1343
+ component_queueFontSize: 14,
1344
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
1345
+ component_queueFontWeight: "normal",
1346
+ external_component_queueFontSize: 14,
1347
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
1348
+ external_component_queueFontWeight: "normal",
1349
+ wrap: !0,
1350
+ wrapPadding: 10,
1351
+ person_bg_color: "#08427B",
1352
+ person_border_color: "#073B6F",
1353
+ external_person_bg_color: "#686868",
1354
+ external_person_border_color: "#8A8A8A",
1355
+ system_bg_color: "#1168BD",
1356
+ system_border_color: "#3C7FC0",
1357
+ system_db_bg_color: "#1168BD",
1358
+ system_db_border_color: "#3C7FC0",
1359
+ system_queue_bg_color: "#1168BD",
1360
+ system_queue_border_color: "#3C7FC0",
1361
+ external_system_bg_color: "#999999",
1362
+ external_system_border_color: "#8A8A8A",
1363
+ external_system_db_bg_color: "#999999",
1364
+ external_system_db_border_color: "#8A8A8A",
1365
+ external_system_queue_bg_color: "#999999",
1366
+ external_system_queue_border_color: "#8A8A8A",
1367
+ container_bg_color: "#438DD5",
1368
+ container_border_color: "#3C7FC0",
1369
+ container_db_bg_color: "#438DD5",
1370
+ container_db_border_color: "#3C7FC0",
1371
+ container_queue_bg_color: "#438DD5",
1372
+ container_queue_border_color: "#3C7FC0",
1373
+ external_container_bg_color: "#B3B3B3",
1374
+ external_container_border_color: "#A6A6A6",
1375
+ external_container_db_bg_color: "#B3B3B3",
1376
+ external_container_db_border_color: "#A6A6A6",
1377
+ external_container_queue_bg_color: "#B3B3B3",
1378
+ external_container_queue_border_color: "#A6A6A6",
1379
+ component_bg_color: "#85BBF0",
1380
+ component_border_color: "#78A8D8",
1381
+ component_db_bg_color: "#85BBF0",
1382
+ component_db_border_color: "#78A8D8",
1383
+ component_queue_bg_color: "#85BBF0",
1384
+ component_queue_border_color: "#78A8D8",
1385
+ external_component_bg_color: "#CCCCCC",
1386
+ external_component_border_color: "#BFBFBF",
1387
+ external_component_db_bg_color: "#CCCCCC",
1388
+ external_component_db_border_color: "#BFBFBF",
1389
+ external_component_queue_bg_color: "#CCCCCC",
1390
+ external_component_queue_border_color: "#BFBFBF"
1391
+ },
1392
+ sankey: {
1393
+ useMaxWidth: !0,
1394
+ width: 600,
1395
+ height: 400,
1396
+ linkColor: "gradient",
1397
+ nodeAlignment: "justify",
1398
+ showValues: !0,
1399
+ prefix: "",
1400
+ suffix: ""
1401
+ },
1402
+ block: {
1403
+ useMaxWidth: !0,
1404
+ padding: 8
1405
+ },
1406
+ packet: {
1407
+ useMaxWidth: !0,
1408
+ rowHeight: 32,
1409
+ bitWidth: 32,
1410
+ bitsPerRow: 32,
1411
+ showBits: !0,
1412
+ paddingX: 5,
1413
+ paddingY: 5
1414
+ },
1415
+ architecture: {
1416
+ useMaxWidth: !0,
1417
+ padding: 40,
1418
+ iconSize: 80,
1419
+ fontSize: 16
1420
+ },
1421
+ radar: {
1422
+ useMaxWidth: !0,
1423
+ width: 600,
1424
+ height: 600,
1425
+ marginTop: 50,
1426
+ marginRight: 50,
1427
+ marginBottom: 50,
1428
+ marginLeft: 50,
1429
+ axisScaleFactor: 1,
1430
+ axisLabelFactor: 1.05,
1431
+ curveTension: .17
1432
+ },
1433
+ theme: "default",
1434
+ look: "classic",
1435
+ handDrawnSeed: 0,
1436
+ layout: "dagre",
1437
+ maxTextSize: 5e4,
1438
+ maxEdges: 500,
1439
+ darkMode: !1,
1440
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
1441
+ logLevel: 5,
1442
+ securityLevel: "strict",
1443
+ startOnLoad: !0,
1444
+ arrowMarkerAbsolute: !1,
1445
+ secure: [
1446
+ "secure",
1447
+ "securityLevel",
1448
+ "startOnLoad",
1449
+ "maxTextSize",
1450
+ "suppressErrorRendering",
1451
+ "maxEdges"
1452
+ ],
1453
+ legacyMathML: !1,
1454
+ forceLegacyMathML: !1,
1455
+ deterministicIds: !1,
1456
+ fontSize: 16,
1457
+ markdownAutoWrap: !0,
1458
+ suppressErrorRendering: !1
1459
+ }, config = {
1460
+ ...config_schema_default,
1461
+ deterministicIDSeed: void 0,
1462
+ elk: {
1463
+ mergeEdges: !1,
1464
+ nodePlacementStrategy: "BRANDES_KOEPF",
1465
+ forceNodeModelOrder: !1,
1466
+ considerModelOrder: "NODES_AND_EDGES"
1467
+ },
1468
+ themeCSS: void 0,
1469
+ themeVariables: themes_default.default.getThemeVariables(),
1470
+ sequence: {
1471
+ ...config_schema_default.sequence,
1472
+ messageFont: /* @__PURE__ */ __name(function() {
1473
+ return {
1474
+ fontFamily: this.messageFontFamily,
1475
+ fontSize: this.messageFontSize,
1476
+ fontWeight: this.messageFontWeight
1477
+ };
1478
+ }, "messageFont"),
1479
+ noteFont: /* @__PURE__ */ __name(function() {
1480
+ return {
1481
+ fontFamily: this.noteFontFamily,
1482
+ fontSize: this.noteFontSize,
1483
+ fontWeight: this.noteFontWeight
1484
+ };
1485
+ }, "noteFont"),
1486
+ actorFont: /* @__PURE__ */ __name(function() {
1487
+ return {
1488
+ fontFamily: this.actorFontFamily,
1489
+ fontSize: this.actorFontSize,
1490
+ fontWeight: this.actorFontWeight
1491
+ };
1492
+ }, "actorFont")
1493
+ },
1494
+ class: { hideEmptyMembersBox: !1 },
1495
+ gantt: {
1496
+ ...config_schema_default.gantt,
1497
+ tickInterval: void 0,
1498
+ useWidth: void 0
1499
+ },
1500
+ c4: {
1501
+ ...config_schema_default.c4,
1502
+ useWidth: void 0,
1503
+ personFont: /* @__PURE__ */ __name(function() {
1504
+ return {
1505
+ fontFamily: this.personFontFamily,
1506
+ fontSize: this.personFontSize,
1507
+ fontWeight: this.personFontWeight
1508
+ };
1509
+ }, "personFont"),
1510
+ flowchart: {
1511
+ ...config_schema_default.flowchart,
1512
+ inheritDir: !1
1513
+ },
1514
+ external_personFont: /* @__PURE__ */ __name(function() {
1515
+ return {
1516
+ fontFamily: this.external_personFontFamily,
1517
+ fontSize: this.external_personFontSize,
1518
+ fontWeight: this.external_personFontWeight
1519
+ };
1520
+ }, "external_personFont"),
1521
+ systemFont: /* @__PURE__ */ __name(function() {
1522
+ return {
1523
+ fontFamily: this.systemFontFamily,
1524
+ fontSize: this.systemFontSize,
1525
+ fontWeight: this.systemFontWeight
1526
+ };
1527
+ }, "systemFont"),
1528
+ external_systemFont: /* @__PURE__ */ __name(function() {
1529
+ return {
1530
+ fontFamily: this.external_systemFontFamily,
1531
+ fontSize: this.external_systemFontSize,
1532
+ fontWeight: this.external_systemFontWeight
1533
+ };
1534
+ }, "external_systemFont"),
1535
+ system_dbFont: /* @__PURE__ */ __name(function() {
1536
+ return {
1537
+ fontFamily: this.system_dbFontFamily,
1538
+ fontSize: this.system_dbFontSize,
1539
+ fontWeight: this.system_dbFontWeight
1540
+ };
1541
+ }, "system_dbFont"),
1542
+ external_system_dbFont: /* @__PURE__ */ __name(function() {
1543
+ return {
1544
+ fontFamily: this.external_system_dbFontFamily,
1545
+ fontSize: this.external_system_dbFontSize,
1546
+ fontWeight: this.external_system_dbFontWeight
1547
+ };
1548
+ }, "external_system_dbFont"),
1549
+ system_queueFont: /* @__PURE__ */ __name(function() {
1550
+ return {
1551
+ fontFamily: this.system_queueFontFamily,
1552
+ fontSize: this.system_queueFontSize,
1553
+ fontWeight: this.system_queueFontWeight
1554
+ };
1555
+ }, "system_queueFont"),
1556
+ external_system_queueFont: /* @__PURE__ */ __name(function() {
1557
+ return {
1558
+ fontFamily: this.external_system_queueFontFamily,
1559
+ fontSize: this.external_system_queueFontSize,
1560
+ fontWeight: this.external_system_queueFontWeight
1561
+ };
1562
+ }, "external_system_queueFont"),
1563
+ containerFont: /* @__PURE__ */ __name(function() {
1564
+ return {
1565
+ fontFamily: this.containerFontFamily,
1566
+ fontSize: this.containerFontSize,
1567
+ fontWeight: this.containerFontWeight
1568
+ };
1569
+ }, "containerFont"),
1570
+ external_containerFont: /* @__PURE__ */ __name(function() {
1571
+ return {
1572
+ fontFamily: this.external_containerFontFamily,
1573
+ fontSize: this.external_containerFontSize,
1574
+ fontWeight: this.external_containerFontWeight
1575
+ };
1576
+ }, "external_containerFont"),
1577
+ container_dbFont: /* @__PURE__ */ __name(function() {
1578
+ return {
1579
+ fontFamily: this.container_dbFontFamily,
1580
+ fontSize: this.container_dbFontSize,
1581
+ fontWeight: this.container_dbFontWeight
1582
+ };
1583
+ }, "container_dbFont"),
1584
+ external_container_dbFont: /* @__PURE__ */ __name(function() {
1585
+ return {
1586
+ fontFamily: this.external_container_dbFontFamily,
1587
+ fontSize: this.external_container_dbFontSize,
1588
+ fontWeight: this.external_container_dbFontWeight
1589
+ };
1590
+ }, "external_container_dbFont"),
1591
+ container_queueFont: /* @__PURE__ */ __name(function() {
1592
+ return {
1593
+ fontFamily: this.container_queueFontFamily,
1594
+ fontSize: this.container_queueFontSize,
1595
+ fontWeight: this.container_queueFontWeight
1596
+ };
1597
+ }, "container_queueFont"),
1598
+ external_container_queueFont: /* @__PURE__ */ __name(function() {
1599
+ return {
1600
+ fontFamily: this.external_container_queueFontFamily,
1601
+ fontSize: this.external_container_queueFontSize,
1602
+ fontWeight: this.external_container_queueFontWeight
1603
+ };
1604
+ }, "external_container_queueFont"),
1605
+ componentFont: /* @__PURE__ */ __name(function() {
1606
+ return {
1607
+ fontFamily: this.componentFontFamily,
1608
+ fontSize: this.componentFontSize,
1609
+ fontWeight: this.componentFontWeight
1610
+ };
1611
+ }, "componentFont"),
1612
+ external_componentFont: /* @__PURE__ */ __name(function() {
1613
+ return {
1614
+ fontFamily: this.external_componentFontFamily,
1615
+ fontSize: this.external_componentFontSize,
1616
+ fontWeight: this.external_componentFontWeight
1617
+ };
1618
+ }, "external_componentFont"),
1619
+ component_dbFont: /* @__PURE__ */ __name(function() {
1620
+ return {
1621
+ fontFamily: this.component_dbFontFamily,
1622
+ fontSize: this.component_dbFontSize,
1623
+ fontWeight: this.component_dbFontWeight
1624
+ };
1625
+ }, "component_dbFont"),
1626
+ external_component_dbFont: /* @__PURE__ */ __name(function() {
1627
+ return {
1628
+ fontFamily: this.external_component_dbFontFamily,
1629
+ fontSize: this.external_component_dbFontSize,
1630
+ fontWeight: this.external_component_dbFontWeight
1631
+ };
1632
+ }, "external_component_dbFont"),
1633
+ component_queueFont: /* @__PURE__ */ __name(function() {
1634
+ return {
1635
+ fontFamily: this.component_queueFontFamily,
1636
+ fontSize: this.component_queueFontSize,
1637
+ fontWeight: this.component_queueFontWeight
1638
+ };
1639
+ }, "component_queueFont"),
1640
+ external_component_queueFont: /* @__PURE__ */ __name(function() {
1641
+ return {
1642
+ fontFamily: this.external_component_queueFontFamily,
1643
+ fontSize: this.external_component_queueFontSize,
1644
+ fontWeight: this.external_component_queueFontWeight
1645
+ };
1646
+ }, "external_component_queueFont"),
1647
+ boundaryFont: /* @__PURE__ */ __name(function() {
1648
+ return {
1649
+ fontFamily: this.boundaryFontFamily,
1650
+ fontSize: this.boundaryFontSize,
1651
+ fontWeight: this.boundaryFontWeight
1652
+ };
1653
+ }, "boundaryFont"),
1654
+ messageFont: /* @__PURE__ */ __name(function() {
1655
+ return {
1656
+ fontFamily: this.messageFontFamily,
1657
+ fontSize: this.messageFontSize,
1658
+ fontWeight: this.messageFontWeight
1659
+ };
1660
+ }, "messageFont")
1661
+ },
1662
+ pie: {
1663
+ ...config_schema_default.pie,
1664
+ useWidth: 984
1665
+ },
1666
+ xyChart: {
1667
+ ...config_schema_default.xyChart,
1668
+ useWidth: void 0
1669
+ },
1670
+ requirement: {
1671
+ ...config_schema_default.requirement,
1672
+ useWidth: void 0
1673
+ },
1674
+ packet: { ...config_schema_default.packet },
1675
+ radar: { ...config_schema_default.radar },
1676
+ treemap: {
1677
+ useMaxWidth: !0,
1678
+ padding: 10,
1679
+ diagramPadding: 8,
1680
+ showValues: !0,
1681
+ nodeWidth: 100,
1682
+ nodeHeight: 40,
1683
+ borderWidth: 1,
1684
+ valueFontSize: 12,
1685
+ labelFontSize: 14,
1686
+ valueFormat: ","
1687
+ }
1688
+ }, keyify = /* @__PURE__ */ __name((u, z = "") => Object.keys(u).reduce((B, V) => Array.isArray(u[V]) ? B : typeof u[V] == "object" && u[V] !== null ? [
1689
+ ...B,
1690
+ z + V,
1691
+ ...keyify(u[V], "")
1692
+ ] : [...B, z + V], []), "keyify"), configKeys = new Set(keyify(config, "")), defaultConfig_default = config, sanitizeDirective = /* @__PURE__ */ __name((u) => {
1693
+ if (log.debug("sanitizeDirective called with", u), !(typeof u != "object" || !u)) {
1694
+ if (Array.isArray(u)) {
1695
+ u.forEach((u) => sanitizeDirective(u));
1696
+ return;
1697
+ }
1698
+ for (let z of Object.keys(u)) {
1699
+ if (log.debug("Checking key", z), z.startsWith("__") || z.includes("proto") || z.includes("constr") || !configKeys.has(z) || u[z] == null) {
1700
+ log.debug("sanitize deleting key: ", z), delete u[z];
1701
+ continue;
1702
+ }
1703
+ if (typeof u[z] == "object") {
1704
+ log.debug("sanitizing object", z), sanitizeDirective(u[z]);
1705
+ continue;
1706
+ }
1707
+ for (let V of [
1708
+ "themeCSS",
1709
+ "fontFamily",
1710
+ "altFontFamily"
1711
+ ]) z.includes(V) && (log.debug("sanitizing css option", z), u[z] = sanitizeCss(u[z]));
1712
+ }
1713
+ if (u.themeVariables) for (let z of Object.keys(u.themeVariables)) {
1714
+ let B = u.themeVariables[z];
1715
+ B?.match && !B.match(/^[\d "#%(),.;A-Za-z]+$/) && (u.themeVariables[z] = "");
1716
+ }
1717
+ log.debug("After sanitization", u);
1718
+ }
1719
+ }, "sanitizeDirective"), sanitizeCss = /* @__PURE__ */ __name((u) => {
1720
+ let z = 0, B = 0;
1721
+ for (let V of u) {
1722
+ if (z < B) return "{ /* ERROR: Unbalanced CSS */ }";
1723
+ V === "{" ? z++ : V === "}" && B++;
1724
+ }
1725
+ return z === B ? u : "{ /* ERROR: Unbalanced CSS */ }";
1726
+ }, "sanitizeCss"), defaultConfig = Object.freeze(defaultConfig_default), siteConfig = assignWithDepth_default({}, defaultConfig), configFromInitialize, directives = [], currentConfig = assignWithDepth_default({}, defaultConfig), updateCurrentConfig = /* @__PURE__ */ __name((u, z) => {
1727
+ let B = assignWithDepth_default({}, u), V = {};
1728
+ for (let u of z) sanitize(u), V = assignWithDepth_default(V, u);
1729
+ if (B = assignWithDepth_default(B, V), V.theme && V.theme in themes_default) {
1730
+ let u = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, V.themeVariables);
1731
+ B.theme && B.theme in themes_default && (B.themeVariables = themes_default[B.theme].getThemeVariables(u));
1732
+ }
1733
+ return currentConfig = B, checkConfig(currentConfig), currentConfig;
1734
+ }, "updateCurrentConfig"), setSiteConfig = /* @__PURE__ */ __name((u) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, u), u.theme && themes_default[u.theme] && (siteConfig.themeVariables = themes_default[u.theme].getThemeVariables(u.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig"), saveConfigFromInitialize = /* @__PURE__ */ __name((u) => {
1735
+ configFromInitialize = assignWithDepth_default({}, u);
1736
+ }, "saveConfigFromInitialize"), updateSiteConfig = /* @__PURE__ */ __name((u) => (siteConfig = assignWithDepth_default(siteConfig, u), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig"), getSiteConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig"), setConfig = /* @__PURE__ */ __name((u) => (checkConfig(u), assignWithDepth_default(currentConfig, u), getConfig()), "setConfig"), getConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, currentConfig), "getConfig"), sanitize = /* @__PURE__ */ __name((u) => {
1737
+ u && (["secure", ...siteConfig.secure ?? []].forEach((z) => {
1738
+ Object.hasOwn(u, z) && (log.debug(`Denied attempt to modify a secure key ${z}`, u[z]), delete u[z]);
1739
+ }), Object.keys(u).forEach((z) => {
1740
+ z.startsWith("__") && delete u[z];
1741
+ }), Object.keys(u).forEach((z) => {
1742
+ typeof u[z] == "string" && (u[z].includes("<") || u[z].includes(">") || u[z].includes("url(data:")) && delete u[z], typeof u[z] == "object" && sanitize(u[z]);
1743
+ }));
1744
+ }, "sanitize"), addDirective = /* @__PURE__ */ __name((u) => {
1745
+ sanitizeDirective(u), u.fontFamily && !u.themeVariables?.fontFamily && (u.themeVariables = {
1746
+ ...u.themeVariables,
1747
+ fontFamily: u.fontFamily
1748
+ }), directives.push(u), updateCurrentConfig(siteConfig, directives);
1749
+ }, "addDirective"), reset = /* @__PURE__ */ __name((u = siteConfig) => {
1750
+ directives = [], updateCurrentConfig(u, directives);
1751
+ }, "reset"), ConfigWarning = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." }, issuedWarnings = {}, issueWarning = /* @__PURE__ */ __name((u) => {
1752
+ issuedWarnings[u] || (log.warn(ConfigWarning[u]), issuedWarnings[u] = !0);
1753
+ }, "issueWarning"), checkConfig = /* @__PURE__ */ __name((u) => {
1754
+ u && (u.lazyLoadedDiagrams || u.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
1755
+ }, "checkConfig"), getUserDefinedConfig = /* @__PURE__ */ __name(() => {
1756
+ let u = {};
1757
+ configFromInitialize && (u = assignWithDepth_default(u, configFromInitialize));
1758
+ for (let z of directives) u = assignWithDepth_default(u, z);
1759
+ return u;
1760
+ }, "getUserDefinedConfig"), lineBreakRegex = /<br\s*\/?>/gi, getRows = /* @__PURE__ */ __name((u) => u ? breakToPlaceholder(u).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
1761
+ let u = !1;
1762
+ return () => {
1763
+ u ||= (setupDompurifyHooks(), !0);
1764
+ };
1765
+ })();
1766
+ function setupDompurifyHooks() {
1767
+ let z = "data-temp-href-target";
1768
+ purify.addHook("beforeSanitizeAttributes", (u) => {
1769
+ u.tagName === "A" && u.hasAttribute("target") && u.setAttribute(z, u.getAttribute("target") ?? "");
1770
+ }), purify.addHook("afterSanitizeAttributes", (u) => {
1771
+ u.tagName === "A" && u.hasAttribute(z) && (u.setAttribute("target", u.getAttribute(z) ?? ""), u.removeAttribute(z), u.getAttribute("target") === "_blank" && u.setAttribute("rel", "noopener"));
1772
+ });
1773
+ }
1774
+ __name(setupDompurifyHooks, "setupDompurifyHooks");
1775
+ var removeScript = /* @__PURE__ */ __name((z) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(z)), "removeScript"), sanitizeMore = /* @__PURE__ */ __name((u, z) => {
1776
+ if (z.flowchart?.htmlLabels !== !1) {
1777
+ let B = z.securityLevel;
1778
+ B === "antiscript" || B === "strict" ? u = removeScript(u) : B !== "loose" && (u = breakToPlaceholder(u), u = u.replace(/</g, "&lt;").replace(/>/g, "&gt;"), u = u.replace(/=/g, "&equals;"), u = placeholderToBreak(u));
1779
+ }
1780
+ return u;
1781
+ }, "sanitizeMore"), sanitizeText = /* @__PURE__ */ __name((z, B) => z && (z = B.dompurifyConfig ? purify.sanitize(sanitizeMore(z, B), B.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(z, B), { FORBID_TAGS: ["style"] }).toString(), z), "sanitizeText"), sanitizeTextOrArray = /* @__PURE__ */ __name((u, z) => typeof u == "string" ? sanitizeText(u, z) : u.flat().map((u) => sanitizeText(u, z)), "sanitizeTextOrArray"), hasBreaks = /* @__PURE__ */ __name((u) => lineBreakRegex.test(u), "hasBreaks"), splitBreaks = /* @__PURE__ */ __name((u) => u.split(lineBreakRegex), "splitBreaks"), placeholderToBreak = /* @__PURE__ */ __name((u) => u.replace(/#br#/g, "<br/>"), "placeholderToBreak"), breakToPlaceholder = /* @__PURE__ */ __name((u) => u.replace(lineBreakRegex, "#br#"), "breakToPlaceholder"), getUrl = /* @__PURE__ */ __name((u) => {
1782
+ let z = "";
1783
+ return u && (z = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, z = CSS.escape(z)), z;
1784
+ }, "getUrl"), evaluate = /* @__PURE__ */ __name((u) => !(u === !1 || [
1785
+ "false",
1786
+ "null",
1787
+ "0"
1788
+ ].includes(String(u).trim().toLowerCase())), "evaluate"), getMax = /* @__PURE__ */ __name(function(...u) {
1789
+ let z = u.filter((u) => !isNaN(u));
1790
+ return Math.max(...z);
1791
+ }, "getMax"), getMin = /* @__PURE__ */ __name(function(...u) {
1792
+ let z = u.filter((u) => !isNaN(u));
1793
+ return Math.min(...z);
1794
+ }, "getMin"), parseGenericTypes = /* @__PURE__ */ __name(function(u) {
1795
+ let z = u.split(/(,)/), B = [];
1796
+ for (let u = 0; u < z.length; u++) {
1797
+ let V = z[u];
1798
+ if (V === "," && u > 0 && u + 1 < z.length) {
1799
+ let H = z[u - 1], U = z[u + 1];
1800
+ shouldCombineSets(H, U) && (V = H + "," + U, u++, B.pop());
1801
+ }
1802
+ B.push(processSet(V));
1803
+ }
1804
+ return B.join("");
1805
+ }, "parseGenericTypes"), countOccurrence = /* @__PURE__ */ __name((u, z) => Math.max(0, u.split(z).length - 1), "countOccurrence"), shouldCombineSets = /* @__PURE__ */ __name((u, z) => {
1806
+ let B = countOccurrence(u, "~"), V = countOccurrence(z, "~");
1807
+ return B === 1 && V === 1;
1808
+ }, "shouldCombineSets"), processSet = /* @__PURE__ */ __name((u) => {
1809
+ let z = countOccurrence(u, "~"), B = !1;
1810
+ if (z <= 1) return u;
1811
+ z % 2 != 0 && u.startsWith("~") && (u = u.substring(1), B = !0);
1812
+ let V = [...u], H = V.indexOf("~"), U = V.lastIndexOf("~");
1813
+ for (; H !== -1 && U !== -1 && H !== U;) V[H] = "<", V[U] = ">", H = V.indexOf("~"), U = V.lastIndexOf("~");
1814
+ return B && V.unshift("~"), V.join("");
1815
+ }, "processSet"), isMathMLSupported = /* @__PURE__ */ __name(() => window.MathMLElement !== void 0, "isMathMLSupported"), katexRegex = /\$\$(.*)\$\$/g, hasKatex = /* @__PURE__ */ __name((u) => (u.match(katexRegex)?.length ?? 0) > 0, "hasKatex"), calculateMathMLDimensions = /* @__PURE__ */ __name(async (u, z) => {
1816
+ let B = document.createElement("div");
1817
+ B.innerHTML = await renderKatexSanitized(u, z), B.id = "katex-temp", B.style.visibility = "hidden", B.style.position = "absolute", B.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", B);
1818
+ let V = {
1819
+ width: B.clientWidth,
1820
+ height: B.clientHeight
1821
+ };
1822
+ return B.remove(), V;
1823
+ }, "calculateMathMLDimensions"), renderKatexUnsanitized = /* @__PURE__ */ __name(async (u, z) => {
1824
+ if (!hasKatex(u)) return u;
1825
+ if (!(isMathMLSupported() || z.legacyMathML || z.forceLegacyMathML)) return u.replace(katexRegex, "MathML is unsupported in this environment.");
1826
+ {
1827
+ let { default: B } = await import("./katex-D8o5-F7C.js"), V = z.forceLegacyMathML || !isMathMLSupported() && z.legacyMathML ? "htmlAndMathml" : "mathml";
1828
+ return u.split(lineBreakRegex).map((u) => hasKatex(u) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${u}</div>` : `<div>${u}</div>`).join("").replace(katexRegex, (u, z) => B.renderToString(z, {
1829
+ throwOnError: !0,
1830
+ displayMode: !0,
1831
+ output: V
1832
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
1833
+ }
1834
+ return u.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
1835
+ }, "renderKatexUnsanitized"), renderKatexSanitized = /* @__PURE__ */ __name(async (u, z) => sanitizeText(await renderKatexUnsanitized(u, z), z), "renderKatexSanitized"), common_default = {
1836
+ getRows,
1837
+ sanitizeText,
1838
+ sanitizeTextOrArray,
1839
+ hasBreaks,
1840
+ splitBreaks,
1841
+ lineBreakRegex,
1842
+ removeScript,
1843
+ getUrl,
1844
+ evaluate,
1845
+ getMax,
1846
+ getMin
1847
+ }, d3Attrs = /* @__PURE__ */ __name(function(u, z) {
1848
+ for (let B of z) u.attr(B[0], B[1]);
1849
+ }, "d3Attrs"), calculateSvgSizeAttrs = /* @__PURE__ */ __name(function(u, z, B) {
1850
+ let V = /* @__PURE__ */ new Map();
1851
+ return B ? (V.set("width", "100%"), V.set("style", `max-width: ${z}px;`)) : (V.set("height", u), V.set("width", z)), V;
1852
+ }, "calculateSvgSizeAttrs"), configureSvgSize = /* @__PURE__ */ __name(function(u, z, B, V) {
1853
+ d3Attrs(u, calculateSvgSizeAttrs(z, B, V));
1854
+ }, "configureSvgSize"), setupGraphViewbox = /* @__PURE__ */ __name(function(u, z, V, H) {
1855
+ let U = z.node().getBBox(), W = U.width, G = U.height;
1856
+ log.info(`SVG bounds: ${W}x${G}`, U);
1857
+ let K = 0, q = 0;
1858
+ log.info(`Graph bounds: ${K}x${q}`, u), K = W + V * 2, q = G + V * 2, log.info(`Calculated bounds: ${K}x${q}`), configureSvgSize(z, q, K, H);
1859
+ let J = `${U.x - V} ${U.y - V} ${U.width + 2 * V} ${U.height + 2 * V}`;
1860
+ z.attr("viewBox", J);
1861
+ }, "setupGraphViewbox"), themes = {}, getStyles = /* @__PURE__ */ __name((u, z, V) => {
1862
+ let H = "";
1863
+ return u in themes && themes[u] ? H = themes[u](V) : log.warn(`No theme found for ${u}`), ` & {
1864
+ font-family: ${V.fontFamily};
1865
+ font-size: ${V.fontSize};
1866
+ fill: ${V.textColor}
1867
+ }
1868
+ @keyframes edge-animation-frame {
1869
+ from {
1870
+ stroke-dashoffset: 0;
1871
+ }
1872
+ }
1873
+ @keyframes dash {
1874
+ to {
1875
+ stroke-dashoffset: 0;
1876
+ }
1877
+ }
1878
+ & .edge-animation-slow {
1879
+ stroke-dasharray: 9,5 !important;
1880
+ stroke-dashoffset: 900;
1881
+ animation: dash 50s linear infinite;
1882
+ stroke-linecap: round;
1883
+ }
1884
+ & .edge-animation-fast {
1885
+ stroke-dasharray: 9,5 !important;
1886
+ stroke-dashoffset: 900;
1887
+ animation: dash 20s linear infinite;
1888
+ stroke-linecap: round;
1889
+ }
1890
+ /* Classes common for multiple diagrams */
1891
+
1892
+ & .error-icon {
1893
+ fill: ${V.errorBkgColor};
1894
+ }
1895
+ & .error-text {
1896
+ fill: ${V.errorTextColor};
1897
+ stroke: ${V.errorTextColor};
1898
+ }
1899
+
1900
+ & .edge-thickness-normal {
1901
+ stroke-width: 1px;
1902
+ }
1903
+ & .edge-thickness-thick {
1904
+ stroke-width: 3.5px
1905
+ }
1906
+ & .edge-pattern-solid {
1907
+ stroke-dasharray: 0;
1908
+ }
1909
+ & .edge-thickness-invisible {
1910
+ stroke-width: 0;
1911
+ fill: none;
1912
+ }
1913
+ & .edge-pattern-dashed{
1914
+ stroke-dasharray: 3;
1915
+ }
1916
+ .edge-pattern-dotted {
1917
+ stroke-dasharray: 2;
1918
+ }
1919
+
1920
+ & .marker {
1921
+ fill: ${V.lineColor};
1922
+ stroke: ${V.lineColor};
1923
+ }
1924
+ & .marker.cross {
1925
+ stroke: ${V.lineColor};
1926
+ }
1927
+
1928
+ & svg {
1929
+ font-family: ${V.fontFamily};
1930
+ font-size: ${V.fontSize};
1931
+ }
1932
+ & p {
1933
+ margin: 0
1934
+ }
1935
+
1936
+ ${H}
1937
+
1938
+ ${z}
1939
+ `;
1940
+ }, "getStyles"), addStylesForDiagram = /* @__PURE__ */ __name((u, z) => {
1941
+ z !== void 0 && (themes[u] = z);
1942
+ }, "addStylesForDiagram"), styles_default = getStyles, commonDb_exports = {};
1943
+ __export(commonDb_exports, {
1944
+ clear: () => clear,
1945
+ getAccDescription: () => getAccDescription,
1946
+ getAccTitle: () => getAccTitle,
1947
+ getDiagramTitle: () => getDiagramTitle,
1948
+ setAccDescription: () => setAccDescription,
1949
+ setAccTitle: () => setAccTitle,
1950
+ setDiagramTitle: () => setDiagramTitle
1951
+ });
1952
+ var accTitle = "", diagramTitle = "", accDescription = "", sanitizeText2 = /* @__PURE__ */ __name((u) => sanitizeText(u, getConfig()), "sanitizeText"), clear = /* @__PURE__ */ __name(() => {
1953
+ accTitle = "", accDescription = "", diagramTitle = "";
1954
+ }, "clear"), setAccTitle = /* @__PURE__ */ __name((u) => {
1955
+ accTitle = sanitizeText2(u).replace(/^\s+/g, "");
1956
+ }, "setAccTitle"), getAccTitle = /* @__PURE__ */ __name(() => accTitle, "getAccTitle"), setAccDescription = /* @__PURE__ */ __name((u) => {
1957
+ accDescription = sanitizeText2(u).replace(/\n\s+/g, "\n");
1958
+ }, "setAccDescription"), getAccDescription = /* @__PURE__ */ __name(() => accDescription, "getAccDescription"), setDiagramTitle = /* @__PURE__ */ __name((u) => {
1959
+ diagramTitle = sanitizeText2(u);
1960
+ }, "setDiagramTitle"), getDiagramTitle = /* @__PURE__ */ __name(() => diagramTitle, "getDiagramTitle"), log2 = log, setLogLevel2 = setLogLevel, getConfig2 = getConfig, setConfig2 = setConfig, defaultConfig2 = defaultConfig, sanitizeText3 = /* @__PURE__ */ __name((u) => sanitizeText(u, getConfig2()), "sanitizeText"), setupGraphViewbox2 = setupGraphViewbox, getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), diagrams = {}, registerDiagram = /* @__PURE__ */ __name((u, z, B) => {
1961
+ diagrams[u] && log2.warn(`Diagram with id ${u} already registered. Overwriting.`), diagrams[u] = z, B && addDetector(u, B), addStylesForDiagram(u, z.styles), z.injectUtils?.(log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {});
1962
+ }, "registerDiagram"), getDiagram = /* @__PURE__ */ __name((u) => {
1963
+ if (u in diagrams) return diagrams[u];
1964
+ throw new DiagramNotFoundError(u);
1965
+ }, "getDiagram"), DiagramNotFoundError = class extends Error {
1966
+ static #e = __name(this, "DiagramNotFoundError");
1967
+ constructor(u) {
1968
+ super(`Diagram ${u} not found.`);
1969
+ }
1970
+ };
1971
+ export { rgba_default as $, parseGenericTypes as A, setAccTitle as B, getDiagramTitle as C, getUserDefinedConfig as D, getUrl as E, sanitizeDirective as F, setupGraphViewbox as G, setConfig2 as H, sanitizeText as I, themes_default as J, setupGraphViewbox2 as K, sanitizeText3 as L, registerLazyLoadedDiagrams as M, renderKatexSanitized as N, hasKatex as O, reset as P, is_dark_default as Q, saveConfigFromInitialize as R, getDiagramLoader as S, getThemeVariables3 as T, setDiagramTitle as U, setConfig as V, setSiteConfig as W, darken_default as X, updateSiteConfig as Y, lighten_default as Z, getAccDescription as _, clear as a, getConfig2 as b, configureSvgSize as c, defaultConfig_default as d, color_default as et, detectType as f, frontMatterRegex as g, evaluate as h, calculateMathMLDimensions as i, registerDiagram as j, lineBreakRegex as k, defaultConfig as l, directiveRegex as m, addDirective as n, commonDb_exports as o, detectors as p, styles_default as q, assignWithDepth_default as r, common_default as s, UnknownDiagramError as t, utils_default as tt, defaultConfig2 as u, getAccTitle as v, getSiteConfig as w, getDiagram as x, getConfig as y, setAccDescription as z };