@pi-outpost/embed 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
- package/dist/arc-BBnpgwVQ.js +80 -0
- package/dist/arc-DcUn9_NX.cjs +1 -0
- package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
- package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/bash-BLBHkRa_.js +169 -0
- package/dist/bash-DHJu-DNv.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
- package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
- package/dist/c-4QgYfi8K.cjs +1 -0
- package/dist/c-Cw4FsAeJ.js +176 -0
- package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
- package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
- package/dist/channel-DV0ST12Z.js +5 -0
- package/dist/channel-DkMGzfUR.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
- package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
- package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
- package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
- package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
- package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
- package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
- package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
- package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
- package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
- package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
- package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
- package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
- package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
- package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
- package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
- package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
- package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
- package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
- package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
- package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
- package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
- package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
- package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
- package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
- package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
- package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
- package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
- package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
- package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
- package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
- package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
- package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
- package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
- package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
- package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
- package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
- package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
- package/dist/core-2nR1zkKb.cjs +3 -0
- package/dist/core-BO2hTFeF.js +845 -0
- package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
- package/dist/cpp-BUtp-HE2.cjs +1 -0
- package/dist/cpp-CeyO6lBG.js +225 -0
- package/dist/csharp-BJu4kEpt.cjs +1 -0
- package/dist/csharp-Ck6Fet_o.js +260 -0
- package/dist/css-ClSGJRju.js +140 -0
- package/dist/css-DeFr0lev.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
- package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
- package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
- package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
- package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
- package/dist/dagre-BBlCxSvR.cjs +1 -0
- package/dist/dagre-BpqwxFKp.js +1701 -0
- package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
- package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
- package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
- package/dist/defaultLocale-up9-vqhM.js +201 -0
- package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
- package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
- package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
- package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
- package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
- package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
- package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
- package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
- package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
- package/dist/dist-D6LMt8nW.js +59 -0
- package/dist/dist-DNGlMOWd.cjs +1 -0
- package/dist/dockerfile-O4rAswfG.js +34 -0
- package/dist/dockerfile-YBgAWga3.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
- package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
- package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
- package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
- package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
- package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
- package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
- package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
- package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
- package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
- package/dist/go-D-pz-dmd.cjs +1 -0
- package/dist/go-rg7jg1mu.js +140 -0
- package/dist/graphlib-B0GbLif1.js +1267 -0
- package/dist/graphlib-CkkG5MuS.cjs +1 -0
- package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
- package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
- package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
- package/dist/ini-C1q3_1-Q.js +88 -0
- package/dist/ini-nVcUEghj.cjs +1 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-CirqLVcp.js +15 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
- package/dist/java-CUN_usaq.cjs +1 -0
- package/dist/java-HguKEfA2.js +169 -0
- package/dist/javascript-C8NCH8DE.js +436 -0
- package/dist/javascript-UZXSyUuu.cjs +1 -0
- package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
- package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
- package/dist/json-Cp01TR_B.js +36 -0
- package/dist/json-usH_MUzR.cjs +1 -0
- package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
- package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
- package/dist/line-Ca8dE_lT.cjs +1 -0
- package/dist/line-O2xx2vVQ.js +34 -0
- package/dist/linear-CVhyaVzf.js +289 -0
- package/dist/linear-Cl2-QuPP.cjs +1 -0
- package/dist/map-CwPlMWPw.cjs +1 -0
- package/dist/map-DU12fF3s.js +241 -0
- package/dist/markdown-CzgRofaE.js +181 -0
- package/dist/markdown-qeo95R0i.cjs +1 -0
- package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
- package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
- package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
- package/dist/mermaid.core-DQrbAA--.cjs +10 -0
- package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
- package/dist/mount.d.ts +31 -0
- package/dist/ordinal-CCTD6_le.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
- package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/path-mKa7UESy.js +85 -0
- package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
- package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
- package/dist/php-C9FOMGEA.js +294 -0
- package/dist/php-j6EhDZDE.cjs +2 -0
- package/dist/pi-outpost-embed.cjs +305 -0
- package/dist/pi-outpost-embed.js +40942 -0
- package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
- package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
- package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
- package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
- package/dist/plaintext-BYYAHR3Z.js +10 -0
- package/dist/plaintext-DmnjizxG.cjs +1 -0
- package/dist/python-BYJzTRkK.cjs +1 -0
- package/dist/python-DKAazMIE.js +238 -0
- package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
- package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
- package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
- package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
- package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
- package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
- package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
- package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
- package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
- package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
- package/dist/rough.esm-C5XyeDCN.js +1352 -0
- package/dist/rough.esm-r0QOSzHM.cjs +1 -0
- package/dist/ruby-BAUeZQKZ.js +262 -0
- package/dist/ruby-ClR4zp-1.cjs +1 -0
- package/dist/rust-DiTjMjP5.js +169 -0
- package/dist/rust-ghVvEWhm.cjs +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
- package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
- package/dist/scss-CKxh5HRg.cjs +1 -0
- package/dist/scss-CckAvQOx.js +150 -0
- package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
- package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
- package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
- package/dist/sql-B-Rnc2C3.js +118 -0
- package/dist/sql-B7syKcd8.cjs +1 -0
- package/dist/src-CR--T_NF.cjs +1 -0
- package/dist/src-DJ4x3y2O.js +2142 -0
- package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
- package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
- package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
- package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
- package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
- package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
- package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
- package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
- package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
- package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
- package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
- package/dist/typescript-clWeqIBY.cjs +1 -0
- package/dist/typescript-mdYq8uqf.js +521 -0
- package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
- package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
- package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
- package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
- package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
- package/dist/xml-BamqaQOf.cjs +1 -0
- package/dist/xml-DVYfB8uY.js +166 -0
- package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
- package/dist/yaml-_1BORZTQ.js +144 -0
- package/dist/yaml-bAgWofBg.cjs +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,3739 @@
|
|
|
1
|
+
import { n as e, t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
+
import { h as n, m as r } from "./src-DJ4x3y2O.js";
|
|
3
|
+
//#region ../node_modules/khroma/dist/utils/channel.js
|
|
4
|
+
var i = {
|
|
5
|
+
min: {
|
|
6
|
+
r: 0,
|
|
7
|
+
g: 0,
|
|
8
|
+
b: 0,
|
|
9
|
+
s: 0,
|
|
10
|
+
l: 0,
|
|
11
|
+
a: 0
|
|
12
|
+
},
|
|
13
|
+
max: {
|
|
14
|
+
r: 255,
|
|
15
|
+
g: 255,
|
|
16
|
+
b: 255,
|
|
17
|
+
h: 360,
|
|
18
|
+
s: 100,
|
|
19
|
+
l: 100,
|
|
20
|
+
a: 1
|
|
21
|
+
},
|
|
22
|
+
clamp: {
|
|
23
|
+
r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
|
|
24
|
+
g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
|
|
25
|
+
b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
|
|
26
|
+
h: (e) => e % 360,
|
|
27
|
+
s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
|
|
28
|
+
l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
|
|
29
|
+
a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
|
|
30
|
+
},
|
|
31
|
+
toLinear: (e) => {
|
|
32
|
+
let t = e / 255;
|
|
33
|
+
return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
|
|
34
|
+
},
|
|
35
|
+
hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
|
|
36
|
+
hsl2rgb: ({ h: e, s: t, l: n }, r) => {
|
|
37
|
+
if (!t) return n * 2.55;
|
|
38
|
+
e /= 360, t /= 100, n /= 100;
|
|
39
|
+
let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
|
|
40
|
+
switch (r) {
|
|
41
|
+
case "r": return i.hue2rgb(o, a, e + 1 / 3) * 255;
|
|
42
|
+
case "g": return i.hue2rgb(o, a, e) * 255;
|
|
43
|
+
case "b": return i.hue2rgb(o, a, e - 1 / 3) * 255;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
rgb2hsl: ({ r: e, g: t, b: n }, r) => {
|
|
47
|
+
e /= 255, t /= 255, n /= 255;
|
|
48
|
+
let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
|
|
49
|
+
if (r === "l") return o * 100;
|
|
50
|
+
if (i === a) return 0;
|
|
51
|
+
let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
|
|
52
|
+
if (r === "s") return c * 100;
|
|
53
|
+
switch (i) {
|
|
54
|
+
case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
|
|
55
|
+
case t: return ((n - e) / s + 2) * 60;
|
|
56
|
+
case n: return ((e - t) / s + 4) * 60;
|
|
57
|
+
default: return -1;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, a = {
|
|
61
|
+
channel: i,
|
|
62
|
+
lang: {
|
|
63
|
+
clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
|
|
64
|
+
round: (e) => Math.round(e * 1e10) / 1e10
|
|
65
|
+
},
|
|
66
|
+
unit: { dec2hex: (e) => {
|
|
67
|
+
let t = Math.round(e).toString(16);
|
|
68
|
+
return t.length > 1 ? t : `0${t}`;
|
|
69
|
+
} }
|
|
70
|
+
}, o = {};
|
|
71
|
+
for (let e = 0; e <= 255; e++) o[e] = a.unit.dec2hex(e);
|
|
72
|
+
var s = {
|
|
73
|
+
ALL: 0,
|
|
74
|
+
RGB: 1,
|
|
75
|
+
HSL: 2
|
|
76
|
+
}, c = class {
|
|
77
|
+
constructor() {
|
|
78
|
+
this.type = s.ALL;
|
|
79
|
+
}
|
|
80
|
+
get() {
|
|
81
|
+
return this.type;
|
|
82
|
+
}
|
|
83
|
+
set(e) {
|
|
84
|
+
if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
|
|
85
|
+
this.type = e;
|
|
86
|
+
}
|
|
87
|
+
reset() {
|
|
88
|
+
this.type = s.ALL;
|
|
89
|
+
}
|
|
90
|
+
is(e) {
|
|
91
|
+
return this.type === e;
|
|
92
|
+
}
|
|
93
|
+
}, l = new class {
|
|
94
|
+
constructor(e, t) {
|
|
95
|
+
this.color = t, this.changed = !1, this.data = e, this.type = new c();
|
|
96
|
+
}
|
|
97
|
+
set(e, t) {
|
|
98
|
+
return this.color = t, this.changed = !1, this.data = e, this.type.type = s.ALL, this;
|
|
99
|
+
}
|
|
100
|
+
_ensureHSL() {
|
|
101
|
+
let e = this.data, { h: t, s: n, l: r } = e;
|
|
102
|
+
t === void 0 && (e.h = a.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = a.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = a.channel.rgb2hsl(e, "l"));
|
|
103
|
+
}
|
|
104
|
+
_ensureRGB() {
|
|
105
|
+
let e = this.data, { r: t, g: n, b: r } = e;
|
|
106
|
+
t === void 0 && (e.r = a.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = a.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = a.channel.hsl2rgb(e, "b"));
|
|
107
|
+
}
|
|
108
|
+
get r() {
|
|
109
|
+
let e = this.data, t = e.r;
|
|
110
|
+
return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "r"));
|
|
111
|
+
}
|
|
112
|
+
get g() {
|
|
113
|
+
let e = this.data, t = e.g;
|
|
114
|
+
return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "g"));
|
|
115
|
+
}
|
|
116
|
+
get b() {
|
|
117
|
+
let e = this.data, t = e.b;
|
|
118
|
+
return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "b"));
|
|
119
|
+
}
|
|
120
|
+
get h() {
|
|
121
|
+
let e = this.data, t = e.h;
|
|
122
|
+
return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "h"));
|
|
123
|
+
}
|
|
124
|
+
get s() {
|
|
125
|
+
let e = this.data, t = e.s;
|
|
126
|
+
return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "s"));
|
|
127
|
+
}
|
|
128
|
+
get l() {
|
|
129
|
+
let e = this.data, t = e.l;
|
|
130
|
+
return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "l"));
|
|
131
|
+
}
|
|
132
|
+
get a() {
|
|
133
|
+
return this.data.a;
|
|
134
|
+
}
|
|
135
|
+
set r(e) {
|
|
136
|
+
this.type.set(s.RGB), this.changed = !0, this.data.r = e;
|
|
137
|
+
}
|
|
138
|
+
set g(e) {
|
|
139
|
+
this.type.set(s.RGB), this.changed = !0, this.data.g = e;
|
|
140
|
+
}
|
|
141
|
+
set b(e) {
|
|
142
|
+
this.type.set(s.RGB), this.changed = !0, this.data.b = e;
|
|
143
|
+
}
|
|
144
|
+
set h(e) {
|
|
145
|
+
this.type.set(s.HSL), this.changed = !0, this.data.h = e;
|
|
146
|
+
}
|
|
147
|
+
set s(e) {
|
|
148
|
+
this.type.set(s.HSL), this.changed = !0, this.data.s = e;
|
|
149
|
+
}
|
|
150
|
+
set l(e) {
|
|
151
|
+
this.type.set(s.HSL), this.changed = !0, this.data.l = e;
|
|
152
|
+
}
|
|
153
|
+
set a(e) {
|
|
154
|
+
this.changed = !0, this.data.a = e;
|
|
155
|
+
}
|
|
156
|
+
}({
|
|
157
|
+
r: 0,
|
|
158
|
+
g: 0,
|
|
159
|
+
b: 0,
|
|
160
|
+
a: 0
|
|
161
|
+
}, "transparent"), u = {
|
|
162
|
+
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
163
|
+
parse: (e) => {
|
|
164
|
+
if (e.charCodeAt(0) !== 35) return;
|
|
165
|
+
let t = e.match(u.re);
|
|
166
|
+
if (!t) return;
|
|
167
|
+
let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, d = a ? 0 : -1, f = o ? 255 : 15;
|
|
168
|
+
return l.set({
|
|
169
|
+
r: (r >> c * (d + 3) & f) * s,
|
|
170
|
+
g: (r >> c * (d + 2) & f) * s,
|
|
171
|
+
b: (r >> c * (d + 1) & f) * s,
|
|
172
|
+
a: a ? (r & f) * s / 255 : 1
|
|
173
|
+
}, e);
|
|
174
|
+
},
|
|
175
|
+
stringify: (e) => {
|
|
176
|
+
let { r: t, g: n, b: r, a: i } = e;
|
|
177
|
+
return i < 1 ? `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}${o[Math.round(i * 255)]}` : `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}`;
|
|
178
|
+
}
|
|
179
|
+
}, d = {
|
|
180
|
+
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
|
|
181
|
+
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
182
|
+
_hue2deg: (e) => {
|
|
183
|
+
let t = e.match(d.hueRe);
|
|
184
|
+
if (t) {
|
|
185
|
+
let [, e, n] = t;
|
|
186
|
+
switch (n) {
|
|
187
|
+
case "grad": return a.channel.clamp.h(parseFloat(e) * .9);
|
|
188
|
+
case "rad": return a.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
|
|
189
|
+
case "turn": return a.channel.clamp.h(parseFloat(e) * 360);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return a.channel.clamp.h(parseFloat(e));
|
|
193
|
+
},
|
|
194
|
+
parse: (e) => {
|
|
195
|
+
let t = e.charCodeAt(0);
|
|
196
|
+
if (t !== 104 && t !== 72) return;
|
|
197
|
+
let n = e.match(d.re);
|
|
198
|
+
if (!n) return;
|
|
199
|
+
let [, r, i, o, s, c] = n;
|
|
200
|
+
return l.set({
|
|
201
|
+
h: d._hue2deg(r),
|
|
202
|
+
s: a.channel.clamp.s(parseFloat(i)),
|
|
203
|
+
l: a.channel.clamp.l(parseFloat(o)),
|
|
204
|
+
a: s ? a.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
|
|
205
|
+
}, e);
|
|
206
|
+
},
|
|
207
|
+
stringify: (e) => {
|
|
208
|
+
let { h: t, s: n, l: r, a: i } = e;
|
|
209
|
+
return i < 1 ? `hsla(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%, ${i})` : `hsl(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%)`;
|
|
210
|
+
}
|
|
211
|
+
}, f = {
|
|
212
|
+
colors: {
|
|
213
|
+
aliceblue: "#f0f8ff",
|
|
214
|
+
antiquewhite: "#faebd7",
|
|
215
|
+
aqua: "#00ffff",
|
|
216
|
+
aquamarine: "#7fffd4",
|
|
217
|
+
azure: "#f0ffff",
|
|
218
|
+
beige: "#f5f5dc",
|
|
219
|
+
bisque: "#ffe4c4",
|
|
220
|
+
black: "#000000",
|
|
221
|
+
blanchedalmond: "#ffebcd",
|
|
222
|
+
blue: "#0000ff",
|
|
223
|
+
blueviolet: "#8a2be2",
|
|
224
|
+
brown: "#a52a2a",
|
|
225
|
+
burlywood: "#deb887",
|
|
226
|
+
cadetblue: "#5f9ea0",
|
|
227
|
+
chartreuse: "#7fff00",
|
|
228
|
+
chocolate: "#d2691e",
|
|
229
|
+
coral: "#ff7f50",
|
|
230
|
+
cornflowerblue: "#6495ed",
|
|
231
|
+
cornsilk: "#fff8dc",
|
|
232
|
+
crimson: "#dc143c",
|
|
233
|
+
cyanaqua: "#00ffff",
|
|
234
|
+
darkblue: "#00008b",
|
|
235
|
+
darkcyan: "#008b8b",
|
|
236
|
+
darkgoldenrod: "#b8860b",
|
|
237
|
+
darkgray: "#a9a9a9",
|
|
238
|
+
darkgreen: "#006400",
|
|
239
|
+
darkgrey: "#a9a9a9",
|
|
240
|
+
darkkhaki: "#bdb76b",
|
|
241
|
+
darkmagenta: "#8b008b",
|
|
242
|
+
darkolivegreen: "#556b2f",
|
|
243
|
+
darkorange: "#ff8c00",
|
|
244
|
+
darkorchid: "#9932cc",
|
|
245
|
+
darkred: "#8b0000",
|
|
246
|
+
darksalmon: "#e9967a",
|
|
247
|
+
darkseagreen: "#8fbc8f",
|
|
248
|
+
darkslateblue: "#483d8b",
|
|
249
|
+
darkslategray: "#2f4f4f",
|
|
250
|
+
darkslategrey: "#2f4f4f",
|
|
251
|
+
darkturquoise: "#00ced1",
|
|
252
|
+
darkviolet: "#9400d3",
|
|
253
|
+
deeppink: "#ff1493",
|
|
254
|
+
deepskyblue: "#00bfff",
|
|
255
|
+
dimgray: "#696969",
|
|
256
|
+
dimgrey: "#696969",
|
|
257
|
+
dodgerblue: "#1e90ff",
|
|
258
|
+
firebrick: "#b22222",
|
|
259
|
+
floralwhite: "#fffaf0",
|
|
260
|
+
forestgreen: "#228b22",
|
|
261
|
+
fuchsia: "#ff00ff",
|
|
262
|
+
gainsboro: "#dcdcdc",
|
|
263
|
+
ghostwhite: "#f8f8ff",
|
|
264
|
+
gold: "#ffd700",
|
|
265
|
+
goldenrod: "#daa520",
|
|
266
|
+
gray: "#808080",
|
|
267
|
+
green: "#008000",
|
|
268
|
+
greenyellow: "#adff2f",
|
|
269
|
+
grey: "#808080",
|
|
270
|
+
honeydew: "#f0fff0",
|
|
271
|
+
hotpink: "#ff69b4",
|
|
272
|
+
indianred: "#cd5c5c",
|
|
273
|
+
indigo: "#4b0082",
|
|
274
|
+
ivory: "#fffff0",
|
|
275
|
+
khaki: "#f0e68c",
|
|
276
|
+
lavender: "#e6e6fa",
|
|
277
|
+
lavenderblush: "#fff0f5",
|
|
278
|
+
lawngreen: "#7cfc00",
|
|
279
|
+
lemonchiffon: "#fffacd",
|
|
280
|
+
lightblue: "#add8e6",
|
|
281
|
+
lightcoral: "#f08080",
|
|
282
|
+
lightcyan: "#e0ffff",
|
|
283
|
+
lightgoldenrodyellow: "#fafad2",
|
|
284
|
+
lightgray: "#d3d3d3",
|
|
285
|
+
lightgreen: "#90ee90",
|
|
286
|
+
lightgrey: "#d3d3d3",
|
|
287
|
+
lightpink: "#ffb6c1",
|
|
288
|
+
lightsalmon: "#ffa07a",
|
|
289
|
+
lightseagreen: "#20b2aa",
|
|
290
|
+
lightskyblue: "#87cefa",
|
|
291
|
+
lightslategray: "#778899",
|
|
292
|
+
lightslategrey: "#778899",
|
|
293
|
+
lightsteelblue: "#b0c4de",
|
|
294
|
+
lightyellow: "#ffffe0",
|
|
295
|
+
lime: "#00ff00",
|
|
296
|
+
limegreen: "#32cd32",
|
|
297
|
+
linen: "#faf0e6",
|
|
298
|
+
magenta: "#ff00ff",
|
|
299
|
+
maroon: "#800000",
|
|
300
|
+
mediumaquamarine: "#66cdaa",
|
|
301
|
+
mediumblue: "#0000cd",
|
|
302
|
+
mediumorchid: "#ba55d3",
|
|
303
|
+
mediumpurple: "#9370db",
|
|
304
|
+
mediumseagreen: "#3cb371",
|
|
305
|
+
mediumslateblue: "#7b68ee",
|
|
306
|
+
mediumspringgreen: "#00fa9a",
|
|
307
|
+
mediumturquoise: "#48d1cc",
|
|
308
|
+
mediumvioletred: "#c71585",
|
|
309
|
+
midnightblue: "#191970",
|
|
310
|
+
mintcream: "#f5fffa",
|
|
311
|
+
mistyrose: "#ffe4e1",
|
|
312
|
+
moccasin: "#ffe4b5",
|
|
313
|
+
navajowhite: "#ffdead",
|
|
314
|
+
navy: "#000080",
|
|
315
|
+
oldlace: "#fdf5e6",
|
|
316
|
+
olive: "#808000",
|
|
317
|
+
olivedrab: "#6b8e23",
|
|
318
|
+
orange: "#ffa500",
|
|
319
|
+
orangered: "#ff4500",
|
|
320
|
+
orchid: "#da70d6",
|
|
321
|
+
palegoldenrod: "#eee8aa",
|
|
322
|
+
palegreen: "#98fb98",
|
|
323
|
+
paleturquoise: "#afeeee",
|
|
324
|
+
palevioletred: "#db7093",
|
|
325
|
+
papayawhip: "#ffefd5",
|
|
326
|
+
peachpuff: "#ffdab9",
|
|
327
|
+
peru: "#cd853f",
|
|
328
|
+
pink: "#ffc0cb",
|
|
329
|
+
plum: "#dda0dd",
|
|
330
|
+
powderblue: "#b0e0e6",
|
|
331
|
+
purple: "#800080",
|
|
332
|
+
rebeccapurple: "#663399",
|
|
333
|
+
red: "#ff0000",
|
|
334
|
+
rosybrown: "#bc8f8f",
|
|
335
|
+
royalblue: "#4169e1",
|
|
336
|
+
saddlebrown: "#8b4513",
|
|
337
|
+
salmon: "#fa8072",
|
|
338
|
+
sandybrown: "#f4a460",
|
|
339
|
+
seagreen: "#2e8b57",
|
|
340
|
+
seashell: "#fff5ee",
|
|
341
|
+
sienna: "#a0522d",
|
|
342
|
+
silver: "#c0c0c0",
|
|
343
|
+
skyblue: "#87ceeb",
|
|
344
|
+
slateblue: "#6a5acd",
|
|
345
|
+
slategray: "#708090",
|
|
346
|
+
slategrey: "#708090",
|
|
347
|
+
snow: "#fffafa",
|
|
348
|
+
springgreen: "#00ff7f",
|
|
349
|
+
tan: "#d2b48c",
|
|
350
|
+
teal: "#008080",
|
|
351
|
+
thistle: "#d8bfd8",
|
|
352
|
+
transparent: "#00000000",
|
|
353
|
+
turquoise: "#40e0d0",
|
|
354
|
+
violet: "#ee82ee",
|
|
355
|
+
wheat: "#f5deb3",
|
|
356
|
+
white: "#ffffff",
|
|
357
|
+
whitesmoke: "#f5f5f5",
|
|
358
|
+
yellow: "#ffff00",
|
|
359
|
+
yellowgreen: "#9acd32"
|
|
360
|
+
},
|
|
361
|
+
parse: (e) => {
|
|
362
|
+
e = e.toLowerCase();
|
|
363
|
+
let t = f.colors[e];
|
|
364
|
+
if (t) return u.parse(t);
|
|
365
|
+
},
|
|
366
|
+
stringify: (e) => {
|
|
367
|
+
let t = u.stringify(e);
|
|
368
|
+
for (let e in f.colors) if (f.colors[e] === t) return e;
|
|
369
|
+
}
|
|
370
|
+
}, p = {
|
|
371
|
+
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
|
|
372
|
+
parse: (e) => {
|
|
373
|
+
let t = e.charCodeAt(0);
|
|
374
|
+
if (t !== 114 && t !== 82) return;
|
|
375
|
+
let n = e.match(p.re);
|
|
376
|
+
if (!n) return;
|
|
377
|
+
let [, r, i, o, s, c, u, d, f] = n;
|
|
378
|
+
return l.set({
|
|
379
|
+
r: a.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
|
|
380
|
+
g: a.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
|
|
381
|
+
b: a.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
|
|
382
|
+
a: d ? a.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
|
|
383
|
+
}, e);
|
|
384
|
+
},
|
|
385
|
+
stringify: (e) => {
|
|
386
|
+
let { r: t, g: n, b: r, a: i } = e;
|
|
387
|
+
return i < 1 ? `rgba(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)}, ${a.lang.round(i)})` : `rgb(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)})`;
|
|
388
|
+
}
|
|
389
|
+
}, m = {
|
|
390
|
+
format: {
|
|
391
|
+
keyword: f,
|
|
392
|
+
hex: u,
|
|
393
|
+
rgb: p,
|
|
394
|
+
rgba: p,
|
|
395
|
+
hsl: d,
|
|
396
|
+
hsla: d
|
|
397
|
+
},
|
|
398
|
+
parse: (e) => {
|
|
399
|
+
if (typeof e != "string") return e;
|
|
400
|
+
let t = u.parse(e) || p.parse(e) || d.parse(e) || f.parse(e);
|
|
401
|
+
if (t) return t;
|
|
402
|
+
throw Error(`Unsupported color format: "${e}"`);
|
|
403
|
+
},
|
|
404
|
+
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(s.HSL) || e.data.r === void 0 ? d.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? p.stringify(e) : u.stringify(e)
|
|
405
|
+
}, h = (e, t) => {
|
|
406
|
+
let n = m.parse(e);
|
|
407
|
+
for (let e in t) n[e] = a.channel.clamp[e](t[e]);
|
|
408
|
+
return m.stringify(n);
|
|
409
|
+
}, g = (e, t, n = 0, r = 1) => {
|
|
410
|
+
if (typeof e != "number") return h(e, { a: t });
|
|
411
|
+
let i = l.set({
|
|
412
|
+
r: a.channel.clamp.r(e),
|
|
413
|
+
g: a.channel.clamp.g(t),
|
|
414
|
+
b: a.channel.clamp.b(n),
|
|
415
|
+
a: a.channel.clamp.a(r)
|
|
416
|
+
});
|
|
417
|
+
return m.stringify(i);
|
|
418
|
+
}, ee = (e) => {
|
|
419
|
+
let { r: t, g: n, b: r } = m.parse(e), i = .2126 * a.channel.toLinear(t) + .7152 * a.channel.toLinear(n) + .0722 * a.channel.toLinear(r);
|
|
420
|
+
return a.lang.round(i);
|
|
421
|
+
}, te = (e) => ee(e) >= .5, _ = (e) => !te(e), v = (e, t, n) => {
|
|
422
|
+
let r = m.parse(e), i = r[t], o = a.channel.clamp[t](i + n);
|
|
423
|
+
return i !== o && (r[t] = o), m.stringify(r);
|
|
424
|
+
}, y = (e, t) => v(e, "l", t), b = (e, t) => v(e, "l", -t), x = (e, t) => {
|
|
425
|
+
let n = m.parse(e), r = {};
|
|
426
|
+
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
427
|
+
return h(e, r);
|
|
428
|
+
}, ne = (e, t, n = 50) => {
|
|
429
|
+
let { r, g: i, b: a, a: o } = m.parse(e), { r: s, g: c, b: l, a: u } = m.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, h = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, ee = 1 - h;
|
|
430
|
+
return g(r * h + s * ee, i * h + c * ee, a * h + l * ee, o * d + u * (1 - d));
|
|
431
|
+
}, S = (e, t = 100) => {
|
|
432
|
+
let n = m.parse(e);
|
|
433
|
+
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
|
|
434
|
+
};
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region ../node_modules/dompurify/dist/purify.es.mjs
|
|
437
|
+
function re(e, t) {
|
|
438
|
+
(t == null || t > e.length) && (t = e.length);
|
|
439
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
440
|
+
return r;
|
|
441
|
+
}
|
|
442
|
+
function ie(e) {
|
|
443
|
+
if (Array.isArray(e)) return e;
|
|
444
|
+
}
|
|
445
|
+
function ae(e, t) {
|
|
446
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
447
|
+
if (n != null) {
|
|
448
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
449
|
+
try {
|
|
450
|
+
if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
451
|
+
} catch (e) {
|
|
452
|
+
l = !0, i = e;
|
|
453
|
+
} finally {
|
|
454
|
+
try {
|
|
455
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
456
|
+
} finally {
|
|
457
|
+
if (l) throw i;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
return s;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
function oe() {
|
|
464
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
465
|
+
}
|
|
466
|
+
function se(e, t) {
|
|
467
|
+
return ie(e) || ae(e, t) || ce(e, t) || oe();
|
|
468
|
+
}
|
|
469
|
+
function ce(e, t) {
|
|
470
|
+
if (e) {
|
|
471
|
+
if (typeof e == "string") return re(e, t);
|
|
472
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
473
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? re(e, t) : void 0;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
var le = Object.entries, ue = Object.setPrototypeOf, de = Object.isFrozen, fe = Object.getPrototypeOf, pe = Object.getOwnPropertyDescriptor, C = Object.freeze, w = Object.seal, me = Object.create, T = typeof Reflect < "u" && Reflect, he = T.apply, ge = T.construct;
|
|
477
|
+
C ||= function(e) {
|
|
478
|
+
return e;
|
|
479
|
+
}, w ||= function(e) {
|
|
480
|
+
return e;
|
|
481
|
+
}, he ||= function(e, t) {
|
|
482
|
+
var n = [...arguments].slice(2);
|
|
483
|
+
return e.apply(t, n);
|
|
484
|
+
}, ge ||= function(e) {
|
|
485
|
+
return new e(...[...arguments].slice(1));
|
|
486
|
+
};
|
|
487
|
+
var _e = O(Array.prototype.forEach), ve = O(Array.prototype.lastIndexOf), ye = O(Array.prototype.pop), be = O(Array.prototype.push), xe = O(Array.prototype.splice), Se = Array.isArray, Ce = O(String.prototype.toLowerCase), we = O(String.prototype.toString), Te = O(String.prototype.match), Ee = O(String.prototype.replace), De = O(String.prototype.indexOf), Oe = O(String.prototype.trim), ke = O(Number.prototype.toString), Ae = O(Boolean.prototype.toString), je = typeof BigInt > "u" ? null : O(BigInt.prototype.toString), Me = typeof Symbol > "u" ? null : O(Symbol.prototype.toString), E = O(Object.prototype.hasOwnProperty), Ne = O(Object.prototype.toString), D = O(RegExp.prototype.test), Pe = Fe(TypeError);
|
|
488
|
+
function O(e) {
|
|
489
|
+
return function(t) {
|
|
490
|
+
t instanceof RegExp && (t.lastIndex = 0);
|
|
491
|
+
var n = [...arguments].slice(1);
|
|
492
|
+
return he(e, t, n);
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
function Fe(e) {
|
|
496
|
+
return function() {
|
|
497
|
+
return ge(e, [...arguments]);
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
function k(e, t) {
|
|
501
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ce;
|
|
502
|
+
if (ue && ue(e, null), !Se(t)) return e;
|
|
503
|
+
let r = t.length;
|
|
504
|
+
for (; r--;) {
|
|
505
|
+
let i = t[r];
|
|
506
|
+
if (typeof i == "string") {
|
|
507
|
+
let e = n(i);
|
|
508
|
+
e !== i && (de(t) || (t[r] = e), i = e);
|
|
509
|
+
}
|
|
510
|
+
e[i] = !0;
|
|
511
|
+
}
|
|
512
|
+
return e;
|
|
513
|
+
}
|
|
514
|
+
function A(e) {
|
|
515
|
+
for (let t = 0; t < e.length; t++) E(e, t) || (e[t] = null);
|
|
516
|
+
return e;
|
|
517
|
+
}
|
|
518
|
+
function j(e) {
|
|
519
|
+
let t = me(null);
|
|
520
|
+
for (let r of le(e)) {
|
|
521
|
+
var n = se(r, 2);
|
|
522
|
+
let i = n[0], a = n[1];
|
|
523
|
+
E(e, i) && (Se(a) ? t[i] = A(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = j(a) : t[i] = a);
|
|
524
|
+
}
|
|
525
|
+
return t;
|
|
526
|
+
}
|
|
527
|
+
function Ie(e) {
|
|
528
|
+
switch (typeof e) {
|
|
529
|
+
case "string": return e;
|
|
530
|
+
case "number": return ke(e);
|
|
531
|
+
case "boolean": return Ae(e);
|
|
532
|
+
case "bigint": return je ? je(e) : "0";
|
|
533
|
+
case "symbol": return Me ? Me(e) : "Symbol()";
|
|
534
|
+
case "undefined": return Ne(e);
|
|
535
|
+
case "function":
|
|
536
|
+
case "object": {
|
|
537
|
+
if (e === null) return Ne(e);
|
|
538
|
+
let t = e, n = M(t, "toString");
|
|
539
|
+
if (typeof n == "function") {
|
|
540
|
+
let e = n(t);
|
|
541
|
+
return typeof e == "string" ? e : Ne(e);
|
|
542
|
+
}
|
|
543
|
+
return Ne(e);
|
|
544
|
+
}
|
|
545
|
+
default: return Ne(e);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
function M(e, t) {
|
|
549
|
+
for (; e !== null;) {
|
|
550
|
+
let n = pe(e, t);
|
|
551
|
+
if (n) {
|
|
552
|
+
if (n.get) return O(n.get);
|
|
553
|
+
if (typeof n.value == "function") return O(n.value);
|
|
554
|
+
}
|
|
555
|
+
e = fe(e);
|
|
556
|
+
}
|
|
557
|
+
function n() {
|
|
558
|
+
return null;
|
|
559
|
+
}
|
|
560
|
+
return n;
|
|
561
|
+
}
|
|
562
|
+
function Le(e) {
|
|
563
|
+
try {
|
|
564
|
+
return D(e, ""), !0;
|
|
565
|
+
} catch {
|
|
566
|
+
return !1;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), ze = C(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Be = C([
|
|
570
|
+
"feBlend",
|
|
571
|
+
"feColorMatrix",
|
|
572
|
+
"feComponentTransfer",
|
|
573
|
+
"feComposite",
|
|
574
|
+
"feConvolveMatrix",
|
|
575
|
+
"feDiffuseLighting",
|
|
576
|
+
"feDisplacementMap",
|
|
577
|
+
"feDistantLight",
|
|
578
|
+
"feDropShadow",
|
|
579
|
+
"feFlood",
|
|
580
|
+
"feFuncA",
|
|
581
|
+
"feFuncB",
|
|
582
|
+
"feFuncG",
|
|
583
|
+
"feFuncR",
|
|
584
|
+
"feGaussianBlur",
|
|
585
|
+
"feImage",
|
|
586
|
+
"feMerge",
|
|
587
|
+
"feMergeNode",
|
|
588
|
+
"feMorphology",
|
|
589
|
+
"feOffset",
|
|
590
|
+
"fePointLight",
|
|
591
|
+
"feSpecularLighting",
|
|
592
|
+
"feSpotLight",
|
|
593
|
+
"feTile",
|
|
594
|
+
"feTurbulence"
|
|
595
|
+
]), Ve = C([
|
|
596
|
+
"animate",
|
|
597
|
+
"color-profile",
|
|
598
|
+
"cursor",
|
|
599
|
+
"discard",
|
|
600
|
+
"font-face",
|
|
601
|
+
"font-face-format",
|
|
602
|
+
"font-face-name",
|
|
603
|
+
"font-face-src",
|
|
604
|
+
"font-face-uri",
|
|
605
|
+
"foreignobject",
|
|
606
|
+
"hatch",
|
|
607
|
+
"hatchpath",
|
|
608
|
+
"mesh",
|
|
609
|
+
"meshgradient",
|
|
610
|
+
"meshpatch",
|
|
611
|
+
"meshrow",
|
|
612
|
+
"missing-glyph",
|
|
613
|
+
"script",
|
|
614
|
+
"set",
|
|
615
|
+
"solidcolor",
|
|
616
|
+
"unknown",
|
|
617
|
+
"use"
|
|
618
|
+
]), He = C(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ue = C([
|
|
619
|
+
"maction",
|
|
620
|
+
"maligngroup",
|
|
621
|
+
"malignmark",
|
|
622
|
+
"mlongdiv",
|
|
623
|
+
"mscarries",
|
|
624
|
+
"mscarry",
|
|
625
|
+
"msgroup",
|
|
626
|
+
"mstack",
|
|
627
|
+
"msline",
|
|
628
|
+
"msrow",
|
|
629
|
+
"semantics",
|
|
630
|
+
"annotation",
|
|
631
|
+
"annotation-xml",
|
|
632
|
+
"mprescripts",
|
|
633
|
+
"none"
|
|
634
|
+
]), We = C(["#text"]), Ge = C(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ke = C(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), qe = C(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Je = C([
|
|
635
|
+
"xlink:href",
|
|
636
|
+
"xml:id",
|
|
637
|
+
"xlink:title",
|
|
638
|
+
"xml:space",
|
|
639
|
+
"xmlns:xlink"
|
|
640
|
+
]), Ye = w(/{{[\w\W]*|^[\w\W]*}}/g), Xe = w(/<%[\w\W]*|^[\w\W]*%>/g), Ze = w(/\${[\w\W]*/g), Qe = w(/^data-[\-\w.\u00B7-\uFFFF]+$/), $e = w(/^aria-[\-\w]+$/), et = w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), tt = w(/^(?:\w+script|data):/i), nt = w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), rt = w(/^html$/i), it = w(/^[a-z][.\w]*(-[.\w]+)+$/i), at = w(/<[/\w!]/g), ot = w(/<[/\w]/g), st = w(/<\/no(script|embed|frames)/i), ct = w(/\/>/i), N = {
|
|
641
|
+
element: 1,
|
|
642
|
+
attribute: 2,
|
|
643
|
+
text: 3,
|
|
644
|
+
cdataSection: 4,
|
|
645
|
+
entityReference: 5,
|
|
646
|
+
entityNode: 6,
|
|
647
|
+
processingInstruction: 7,
|
|
648
|
+
comment: 8,
|
|
649
|
+
document: 9,
|
|
650
|
+
documentType: 10,
|
|
651
|
+
documentFragment: 11,
|
|
652
|
+
notation: 12
|
|
653
|
+
}, lt = function() {
|
|
654
|
+
return typeof window > "u" ? null : window;
|
|
655
|
+
}, ut = function(e, t) {
|
|
656
|
+
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
657
|
+
let n = null, r = "data-tt-policy-suffix";
|
|
658
|
+
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
659
|
+
let i = "dompurify" + (n ? "#" + n : "");
|
|
660
|
+
try {
|
|
661
|
+
return e.createPolicy(i, {
|
|
662
|
+
createHTML(e) {
|
|
663
|
+
return e;
|
|
664
|
+
},
|
|
665
|
+
createScriptURL(e) {
|
|
666
|
+
return e;
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
} catch {
|
|
670
|
+
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
671
|
+
}
|
|
672
|
+
}, dt = function() {
|
|
673
|
+
return {
|
|
674
|
+
afterSanitizeAttributes: [],
|
|
675
|
+
afterSanitizeElements: [],
|
|
676
|
+
afterSanitizeShadowDOM: [],
|
|
677
|
+
beforeSanitizeAttributes: [],
|
|
678
|
+
beforeSanitizeElements: [],
|
|
679
|
+
beforeSanitizeShadowDOM: [],
|
|
680
|
+
uponSanitizeAttribute: [],
|
|
681
|
+
uponSanitizeElement: [],
|
|
682
|
+
uponSanitizeShadowNode: []
|
|
683
|
+
};
|
|
684
|
+
}, ft = function(e, t, n, r) {
|
|
685
|
+
return E(e, t) && Se(e[t]) ? k(r.base ? j(r.base) : {}, e[t], r.transform) : n;
|
|
686
|
+
};
|
|
687
|
+
function pt() {
|
|
688
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lt(), t = (e) => pt(e);
|
|
689
|
+
if (t.version = "3.4.11", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
|
|
690
|
+
let n = e.document, r = n, i = r.currentScript;
|
|
691
|
+
e.DocumentFragment;
|
|
692
|
+
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
693
|
+
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
694
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), ee = M(d, "shadowRoot"), te = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null;
|
|
695
|
+
if (typeof a == "function") {
|
|
696
|
+
let e = n.createElement("template");
|
|
697
|
+
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
698
|
+
}
|
|
699
|
+
let y, b = "", x, ne = !1, S = 0, re = function() {
|
|
700
|
+
if (S > 0) throw Pe("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
701
|
+
}, ie = function(e) {
|
|
702
|
+
re(), S++;
|
|
703
|
+
try {
|
|
704
|
+
return y.createHTML(e);
|
|
705
|
+
} finally {
|
|
706
|
+
S--;
|
|
707
|
+
}
|
|
708
|
+
}, ae = function(e) {
|
|
709
|
+
re(), S++;
|
|
710
|
+
try {
|
|
711
|
+
return y.createScriptURL(e);
|
|
712
|
+
} finally {
|
|
713
|
+
S--;
|
|
714
|
+
}
|
|
715
|
+
}, oe = function() {
|
|
716
|
+
return ne ||= (x = ut(u, i), !0), x;
|
|
717
|
+
}, se = n, ce = se.implementation, ue = se.createNodeIterator, de = se.createDocumentFragment, fe = se.getElementsByTagName, pe = r.importNode, T = dt();
|
|
718
|
+
t.isSupported = typeof le == "function" && typeof g == "function" && ce && ce.createHTMLDocument !== void 0;
|
|
719
|
+
let he = Ye, ge = Xe, ke = Ze, Ae = Qe, je = $e, Me = tt, Ne = nt, O = it, Fe = et, A = null, P = k({}, [
|
|
720
|
+
...Re,
|
|
721
|
+
...ze,
|
|
722
|
+
...Be,
|
|
723
|
+
...He,
|
|
724
|
+
...We
|
|
725
|
+
]), F = null, I = k({}, [
|
|
726
|
+
...Ge,
|
|
727
|
+
...Ke,
|
|
728
|
+
...qe,
|
|
729
|
+
...Je
|
|
730
|
+
]), L = Object.seal(me(null, {
|
|
731
|
+
tagNameCheck: {
|
|
732
|
+
writable: !0,
|
|
733
|
+
configurable: !1,
|
|
734
|
+
enumerable: !0,
|
|
735
|
+
value: null
|
|
736
|
+
},
|
|
737
|
+
attributeNameCheck: {
|
|
738
|
+
writable: !0,
|
|
739
|
+
configurable: !1,
|
|
740
|
+
enumerable: !0,
|
|
741
|
+
value: null
|
|
742
|
+
},
|
|
743
|
+
allowCustomizedBuiltInElements: {
|
|
744
|
+
writable: !0,
|
|
745
|
+
configurable: !1,
|
|
746
|
+
enumerable: !0,
|
|
747
|
+
value: !1
|
|
748
|
+
}
|
|
749
|
+
})), R = null, z = null, B = Object.seal(me(null, {
|
|
750
|
+
tagCheck: {
|
|
751
|
+
writable: !0,
|
|
752
|
+
configurable: !1,
|
|
753
|
+
enumerable: !0,
|
|
754
|
+
value: null
|
|
755
|
+
},
|
|
756
|
+
attributeCheck: {
|
|
757
|
+
writable: !0,
|
|
758
|
+
configurable: !1,
|
|
759
|
+
enumerable: !0,
|
|
760
|
+
value: null
|
|
761
|
+
}
|
|
762
|
+
})), mt = !0, ht = !0, gt = !1, _t = !0, V = !1, vt = !0, H = !1, yt = !1, bt = null, xt = null, St = !1, Ct = !1, wt = !1, Tt = !1, Et = !0, Dt = !1, Ot = "user-content-", kt = !0, At = !1, jt = {}, U = null, W = k({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Mt = null, Nt = k({}, [
|
|
763
|
+
"audio",
|
|
764
|
+
"video",
|
|
765
|
+
"img",
|
|
766
|
+
"source",
|
|
767
|
+
"image",
|
|
768
|
+
"track"
|
|
769
|
+
]), Pt = null, Ft = k({}, [
|
|
770
|
+
"alt",
|
|
771
|
+
"class",
|
|
772
|
+
"for",
|
|
773
|
+
"id",
|
|
774
|
+
"label",
|
|
775
|
+
"name",
|
|
776
|
+
"pattern",
|
|
777
|
+
"placeholder",
|
|
778
|
+
"role",
|
|
779
|
+
"summary",
|
|
780
|
+
"title",
|
|
781
|
+
"value",
|
|
782
|
+
"style",
|
|
783
|
+
"xmlns"
|
|
784
|
+
]), It = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", Rt = G, zt = !1, Bt = null, K = k({}, [
|
|
785
|
+
It,
|
|
786
|
+
Lt,
|
|
787
|
+
G
|
|
788
|
+
], we), Vt = C([
|
|
789
|
+
"mi",
|
|
790
|
+
"mo",
|
|
791
|
+
"mn",
|
|
792
|
+
"ms",
|
|
793
|
+
"mtext"
|
|
794
|
+
]), q = k({}, Vt), Ht = C(["annotation-xml"]), Ut = k({}, Ht), Wt = k({}, [
|
|
795
|
+
"title",
|
|
796
|
+
"style",
|
|
797
|
+
"font",
|
|
798
|
+
"a",
|
|
799
|
+
"script"
|
|
800
|
+
]), Gt = null, Kt = ["application/xhtml+xml", "text/html"], J = null, qt = null, Jt = n.createElement("form"), Yt = function(e) {
|
|
801
|
+
return e instanceof RegExp || e instanceof Function;
|
|
802
|
+
}, Xt = function() {
|
|
803
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
804
|
+
if (qt && qt === e) return;
|
|
805
|
+
(!e || typeof e != "object") && (e = {}), e = j(e), Gt = Kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Gt === "application/xhtml+xml" ? we : Ce, A = ft(e, "ALLOWED_TAGS", P, { transform: J }), F = ft(e, "ALLOWED_ATTR", I, { transform: J }), Bt = ft(e, "ALLOWED_NAMESPACES", K, { transform: we }), Pt = ft(e, "ADD_URI_SAFE_ATTR", Ft, {
|
|
806
|
+
transform: J,
|
|
807
|
+
base: Ft
|
|
808
|
+
}), Mt = ft(e, "ADD_DATA_URI_TAGS", Nt, {
|
|
809
|
+
transform: J,
|
|
810
|
+
base: Nt
|
|
811
|
+
}), U = ft(e, "FORBID_CONTENTS", W, { transform: J }), R = ft(e, "FORBID_TAGS", j({}), { transform: J }), z = ft(e, "FORBID_ATTR", j({}), { transform: J }), jt = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, mt = e.ALLOW_ARIA_ATTR !== !1, ht = e.ALLOW_DATA_ATTR !== !1, gt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, vt = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, Ct = e.RETURN_DOM || !1, wt = e.RETURN_DOM_FRAGMENT || !1, Tt = e.RETURN_TRUSTED_TYPE || !1, St = e.FORCE_BODY || !1, Et = e.SANITIZE_DOM !== !1, Dt = e.SANITIZE_NAMED_PROPS || !1, kt = e.KEEP_CONTENT !== !1, At = e.IN_PLACE || !1, Fe = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, Rt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, q = E(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? j(e.MATHML_TEXT_INTEGRATION_POINTS) : k({}, Vt), Ut = E(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? j(e.HTML_INTEGRATION_POINTS) : k({}, Ht);
|
|
812
|
+
let t = E(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? j(e.CUSTOM_ELEMENT_HANDLING) : me(null);
|
|
813
|
+
if (L = me(null), E(t, "tagNameCheck") && Yt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && Yt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), w(L), V && (ht = !1), wt && (Ct = !0), jt && (A = k({}, We), F = me(null), jt.html === !0 && (k(A, Re), k(F, Ge)), jt.svg === !0 && (k(A, ze), k(F, Ke), k(F, Je)), jt.svgFilters === !0 && (k(A, Be), k(F, Ke), k(F, Je)), jt.mathMl === !0 && (k(A, He), k(F, qe), k(F, Je))), B.tagCheck = null, B.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : Se(e.ADD_TAGS) && (A === P && (A = j(A)), k(A, e.ADD_TAGS, J))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : Se(e.ADD_ATTR) && (F === I && (F = j(F)), k(F, e.ADD_ATTR, J))), E(e, "ADD_URI_SAFE_ATTR") && Se(e.ADD_URI_SAFE_ATTR) && k(Pt, e.ADD_URI_SAFE_ATTR, J), E(e, "FORBID_CONTENTS") && Se(e.FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.FORBID_CONTENTS, J)), E(e, "ADD_FORBID_CONTENTS") && Se(e.ADD_FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.ADD_FORBID_CONTENTS, J)), kt && (A["#text"] = !0), H && k(A, [
|
|
814
|
+
"html",
|
|
815
|
+
"head",
|
|
816
|
+
"body"
|
|
817
|
+
]), A.table && (k(A, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
818
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Pe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
819
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Pe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
820
|
+
let t = y;
|
|
821
|
+
y = e.TRUSTED_TYPES_POLICY;
|
|
822
|
+
try {
|
|
823
|
+
b = ie("");
|
|
824
|
+
} catch (e) {
|
|
825
|
+
throw y = t, e;
|
|
826
|
+
}
|
|
827
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (y = void 0, b = "") : (y === void 0 && (y = oe()), y && typeof b == "string" && (b = ie("")));
|
|
828
|
+
C && C(e), qt = e;
|
|
829
|
+
}, Zt = k({}, [
|
|
830
|
+
...ze,
|
|
831
|
+
...Be,
|
|
832
|
+
...Ve
|
|
833
|
+
]), Qt = k({}, [...He, ...Ue]), $t = function(e, t, n) {
|
|
834
|
+
return t.namespaceURI === G ? e === "svg" : t.namespaceURI === It ? e === "svg" && (n === "annotation-xml" || q[n]) : !!Zt[e];
|
|
835
|
+
}, en = function(e, t, n) {
|
|
836
|
+
return t.namespaceURI === G ? e === "math" : t.namespaceURI === Lt ? e === "math" && Ut[n] : !!Qt[e];
|
|
837
|
+
}, tn = function(e, t, n) {
|
|
838
|
+
return t.namespaceURI === Lt && !Ut[n] || t.namespaceURI === It && !q[n] ? !1 : !Qt[e] && (Wt[e] || !Zt[e]);
|
|
839
|
+
}, nn = function(e) {
|
|
840
|
+
let t = g(e);
|
|
841
|
+
(!t || !t.tagName) && (t = {
|
|
842
|
+
namespaceURI: Rt,
|
|
843
|
+
tagName: "template"
|
|
844
|
+
});
|
|
845
|
+
let n = Ce(e.tagName), r = Ce(t.tagName);
|
|
846
|
+
return Bt[e.namespaceURI] ? e.namespaceURI === Lt ? $t(n, t, r) : e.namespaceURI === It ? en(n, t, r) : e.namespaceURI === G ? tn(n, t, r) : !!(Gt === "application/xhtml+xml" && Bt[e.namespaceURI]) : !1;
|
|
847
|
+
}, Y = function(e) {
|
|
848
|
+
be(t.removed, { element: e });
|
|
849
|
+
try {
|
|
850
|
+
g(e).removeChild(e);
|
|
851
|
+
} catch {
|
|
852
|
+
if (p(e), !g(e)) throw Pe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
853
|
+
}
|
|
854
|
+
}, rn = function(e) {
|
|
855
|
+
let t = h(e);
|
|
856
|
+
if (t) {
|
|
857
|
+
let e = [];
|
|
858
|
+
_e(t, (t) => {
|
|
859
|
+
be(e, t);
|
|
860
|
+
}), _e(e, (e) => {
|
|
861
|
+
try {
|
|
862
|
+
p(e);
|
|
863
|
+
} catch {}
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
let n = te(e);
|
|
867
|
+
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
868
|
+
let r = n[t], i = r && r.name;
|
|
869
|
+
if (typeof i == "string") try {
|
|
870
|
+
e.removeAttribute(i);
|
|
871
|
+
} catch {}
|
|
872
|
+
}
|
|
873
|
+
}, X = function(e, n) {
|
|
874
|
+
try {
|
|
875
|
+
be(t.removed, {
|
|
876
|
+
attribute: n.getAttributeNode(e),
|
|
877
|
+
from: n
|
|
878
|
+
});
|
|
879
|
+
} catch {
|
|
880
|
+
be(t.removed, {
|
|
881
|
+
attribute: null,
|
|
882
|
+
from: n
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
if (n.removeAttribute(e), e === "is") if (Ct || wt) try {
|
|
886
|
+
Y(n);
|
|
887
|
+
} catch {}
|
|
888
|
+
else try {
|
|
889
|
+
n.setAttribute(e, "");
|
|
890
|
+
} catch {}
|
|
891
|
+
}, an = function(e) {
|
|
892
|
+
let t = te(e);
|
|
893
|
+
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
894
|
+
let r = t[n], i = r && r.name;
|
|
895
|
+
if (!(typeof i != "string" || F[J(i)])) try {
|
|
896
|
+
e.removeAttribute(i);
|
|
897
|
+
} catch {}
|
|
898
|
+
}
|
|
899
|
+
}, on = function(e) {
|
|
900
|
+
let t = [e];
|
|
901
|
+
for (; t.length > 0;) {
|
|
902
|
+
let e = t.pop();
|
|
903
|
+
(_ ? _(e) : e.nodeType) === N.element && an(e);
|
|
904
|
+
let n = h(e);
|
|
905
|
+
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
906
|
+
}
|
|
907
|
+
}, sn = function(e) {
|
|
908
|
+
let t = null, r = null;
|
|
909
|
+
if (St) e = "<remove></remove>" + e;
|
|
910
|
+
else {
|
|
911
|
+
let t = Te(e, /^[\r\n\t ]+/);
|
|
912
|
+
r = t && t[0];
|
|
913
|
+
}
|
|
914
|
+
Gt === "application/xhtml+xml" && Rt === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
915
|
+
let i = y ? ie(e) : e;
|
|
916
|
+
if (Rt === G) try {
|
|
917
|
+
t = new l().parseFromString(i, Gt);
|
|
918
|
+
} catch {}
|
|
919
|
+
if (!t || !t.documentElement) {
|
|
920
|
+
t = ce.createDocument(Rt, "template", null);
|
|
921
|
+
try {
|
|
922
|
+
t.documentElement.innerHTML = zt ? b : i;
|
|
923
|
+
} catch {}
|
|
924
|
+
}
|
|
925
|
+
let a = t.body || t.documentElement;
|
|
926
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Rt === G ? fe.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
|
|
927
|
+
}, cn = function(e) {
|
|
928
|
+
return ue.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
929
|
+
}, ln = function(e) {
|
|
930
|
+
return e = Ee(e, he, " "), e = Ee(e, ge, " "), e = Ee(e, ke, " "), e;
|
|
931
|
+
}, un = function(e) {
|
|
932
|
+
e.normalize();
|
|
933
|
+
let t = ue.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
934
|
+
for (; n;) n.data = ln(n.data), n = t.nextNode();
|
|
935
|
+
let r = e.querySelectorAll?.call(e, "template");
|
|
936
|
+
r && _e(r, (e) => {
|
|
937
|
+
Z(e.content) && un(e.content);
|
|
938
|
+
});
|
|
939
|
+
}, dn = function(e) {
|
|
940
|
+
let t = v ? v(e) : null;
|
|
941
|
+
return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== h(e);
|
|
942
|
+
}, Z = function(e) {
|
|
943
|
+
if (!_ || typeof e != "object" || !e) return !1;
|
|
944
|
+
try {
|
|
945
|
+
return _(e) === N.documentFragment;
|
|
946
|
+
} catch {
|
|
947
|
+
return !1;
|
|
948
|
+
}
|
|
949
|
+
}, fn = function(e) {
|
|
950
|
+
if (!_ || typeof e != "object" || !e) return !1;
|
|
951
|
+
try {
|
|
952
|
+
return typeof _(e) == "number";
|
|
953
|
+
} catch {
|
|
954
|
+
return !1;
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
function Q(e, n, r) {
|
|
958
|
+
e.length !== 0 && _e(e, (e) => {
|
|
959
|
+
e.call(t, n, r, qt);
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
let pn = function(e, t) {
|
|
963
|
+
return !!(vt && e.hasChildNodes() && !fn(e.firstElementChild) && D(at, e.textContent) && D(at, e.innerHTML) || vt && e.namespaceURI === G && t === "style" && fn(e.firstElementChild) || e.nodeType === N.processingInstruction || vt && e.nodeType === N.comment && D(ot, e.data));
|
|
964
|
+
}, mn = function(e, t) {
|
|
965
|
+
if (!R[t] && _n(t) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, t) || L.tagNameCheck instanceof Function && L.tagNameCheck(t))) return !1;
|
|
966
|
+
if (kt && !U[t]) {
|
|
967
|
+
let t = g(e), n = h(e);
|
|
968
|
+
if (n && t) {
|
|
969
|
+
let r = n.length;
|
|
970
|
+
for (let i = r - 1; i >= 0; --i) {
|
|
971
|
+
let r = At ? n[i] : f(n[i], !0);
|
|
972
|
+
t.insertBefore(r, m(e));
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
return Y(e), !0;
|
|
977
|
+
}, hn = function(e) {
|
|
978
|
+
if (Q(T.beforeSanitizeElements, e, null), dn(e)) return Y(e), !0;
|
|
979
|
+
let n = J(v ? v(e) : e.nodeName);
|
|
980
|
+
if (Q(T.uponSanitizeElement, e, {
|
|
981
|
+
tagName: n,
|
|
982
|
+
allowedTags: A
|
|
983
|
+
}), pn(e, n)) return Y(e), !0;
|
|
984
|
+
if (R[n] || !(B.tagCheck instanceof Function && B.tagCheck(n)) && !A[n]) return mn(e, n);
|
|
985
|
+
if ((_ ? _(e) : e.nodeType) === N.element && !nn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && D(st, e.innerHTML)) return Y(e), !0;
|
|
986
|
+
if (V && e.nodeType === N.text) {
|
|
987
|
+
let n = ln(e.textContent);
|
|
988
|
+
e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
989
|
+
}
|
|
990
|
+
return Q(T.afterSanitizeElements, e, null), !1;
|
|
991
|
+
}, $ = function(e, t, r) {
|
|
992
|
+
if (z[t] || Et && (t === "id" || t === "name") && (r in n || r in Jt)) return !1;
|
|
993
|
+
let i = F[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
|
|
994
|
+
if (!(ht && D(Ae, t)) && !(mt && D(je, t))) {
|
|
995
|
+
if (!i) {
|
|
996
|
+
if (!(_n(e) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && D(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
|
|
997
|
+
} else if (!Pt[t] && !D(Fe, Ee(r, Ne, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && De(r, "data:") === 0 && Mt[e]) && !(gt && !D(Me, Ee(r, Ne, ""))) && r) return !1;
|
|
998
|
+
}
|
|
999
|
+
return !0;
|
|
1000
|
+
}, gn = k({}, [
|
|
1001
|
+
"annotation-xml",
|
|
1002
|
+
"color-profile",
|
|
1003
|
+
"font-face",
|
|
1004
|
+
"font-face-format",
|
|
1005
|
+
"font-face-name",
|
|
1006
|
+
"font-face-src",
|
|
1007
|
+
"font-face-uri",
|
|
1008
|
+
"missing-glyph"
|
|
1009
|
+
]), _n = function(e) {
|
|
1010
|
+
return !gn[Ce(e)] && D(O, e);
|
|
1011
|
+
}, vn = function(e, t, n, r) {
|
|
1012
|
+
if (y && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
1013
|
+
case "TrustedHTML": return ie(r);
|
|
1014
|
+
case "TrustedScriptURL": return ae(r);
|
|
1015
|
+
}
|
|
1016
|
+
return r;
|
|
1017
|
+
}, yn = function(e, n, r, i) {
|
|
1018
|
+
try {
|
|
1019
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Y(e) : ye(t.removed);
|
|
1020
|
+
} catch {
|
|
1021
|
+
X(n, e);
|
|
1022
|
+
}
|
|
1023
|
+
}, bn = function(e) {
|
|
1024
|
+
Q(T.beforeSanitizeAttributes, e, null);
|
|
1025
|
+
let t = e.attributes;
|
|
1026
|
+
if (!t || dn(e)) return;
|
|
1027
|
+
let n = {
|
|
1028
|
+
attrName: "",
|
|
1029
|
+
attrValue: "",
|
|
1030
|
+
keepAttr: !0,
|
|
1031
|
+
allowedAttributes: F,
|
|
1032
|
+
forceKeepAttr: void 0
|
|
1033
|
+
}, r = t.length, i = J(e.nodeName);
|
|
1034
|
+
for (; r--;) {
|
|
1035
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : Oe(u);
|
|
1036
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Q(T.uponSanitizeAttribute, e, n), d = n.attrValue, Dt && (l === "id" || l === "name") && De(d, Ot) !== 0 && (X(o, e), d = Ot + d), vt && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
1037
|
+
X(o, e);
|
|
1038
|
+
continue;
|
|
1039
|
+
}
|
|
1040
|
+
if (l === "attributename" && Te(d, "href")) {
|
|
1041
|
+
X(o, e);
|
|
1042
|
+
continue;
|
|
1043
|
+
}
|
|
1044
|
+
if (!n.forceKeepAttr) {
|
|
1045
|
+
if (!n.keepAttr) {
|
|
1046
|
+
X(o, e);
|
|
1047
|
+
continue;
|
|
1048
|
+
}
|
|
1049
|
+
if (!_t && D(ct, d)) {
|
|
1050
|
+
X(o, e);
|
|
1051
|
+
continue;
|
|
1052
|
+
}
|
|
1053
|
+
if (V && (d = ln(d)), !$(i, l, d)) {
|
|
1054
|
+
X(o, e);
|
|
1055
|
+
continue;
|
|
1056
|
+
}
|
|
1057
|
+
d = vn(i, l, s, d), d !== u && yn(e, o, s, d);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
Q(T.afterSanitizeAttributes, e, null);
|
|
1061
|
+
}, xn = function(e) {
|
|
1062
|
+
let t = null, n = cn(e);
|
|
1063
|
+
for (Q(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(T.uponSanitizeShadowNode, t, null), hn(t), bn(t), Z(t.content) && xn(t.content), (_ ? _(t) : t.nodeType) === N.element) {
|
|
1064
|
+
let e = ee(t);
|
|
1065
|
+
Z(e) && (Sn(e), xn(e));
|
|
1066
|
+
}
|
|
1067
|
+
Q(T.afterSanitizeShadowDOM, e, null);
|
|
1068
|
+
}, Sn = function(e) {
|
|
1069
|
+
let t = [{
|
|
1070
|
+
node: e,
|
|
1071
|
+
shadow: null
|
|
1072
|
+
}];
|
|
1073
|
+
for (; t.length > 0;) {
|
|
1074
|
+
let e = t.pop();
|
|
1075
|
+
if (e.shadow) {
|
|
1076
|
+
xn(e.shadow);
|
|
1077
|
+
continue;
|
|
1078
|
+
}
|
|
1079
|
+
let n = e.node, r = (_ ? _(n) : n.nodeType) === N.element, i = h(n);
|
|
1080
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
1081
|
+
node: i[e],
|
|
1082
|
+
shadow: null
|
|
1083
|
+
});
|
|
1084
|
+
if (r) {
|
|
1085
|
+
let e = v ? v(n) : null;
|
|
1086
|
+
if (typeof e == "string" && J(e) === "template") {
|
|
1087
|
+
let e = n.content;
|
|
1088
|
+
Z(e) && t.push({
|
|
1089
|
+
node: e,
|
|
1090
|
+
shadow: null
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
if (r) {
|
|
1095
|
+
let e = ee(n);
|
|
1096
|
+
Z(e) && t.push({
|
|
1097
|
+
node: null,
|
|
1098
|
+
shadow: e
|
|
1099
|
+
}, {
|
|
1100
|
+
node: e,
|
|
1101
|
+
shadow: null
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
};
|
|
1106
|
+
return t.sanitize = function(e) {
|
|
1107
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
1108
|
+
if (zt = !e, zt && (e = "<!-->"), typeof e != "string" && !fn(e) && (e = Ie(e), typeof e != "string")) throw Pe("dirty is not a string, aborting");
|
|
1109
|
+
if (!t.isSupported) return e;
|
|
1110
|
+
yt ? (A = bt, F = xt) : Xt(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (A = j(A)), T.uponSanitizeAttribute.length > 0 && (F = j(F)), t.removed = [];
|
|
1111
|
+
let c = At && typeof e != "string" && fn(e);
|
|
1112
|
+
if (c) {
|
|
1113
|
+
let t = v ? v(e) : e.nodeName;
|
|
1114
|
+
if (typeof t == "string") {
|
|
1115
|
+
let e = J(t);
|
|
1116
|
+
if (!A[e] || R[e]) throw Pe("root node is forbidden and cannot be sanitized in-place");
|
|
1117
|
+
}
|
|
1118
|
+
if (dn(e)) throw Pe("root node is clobbered and cannot be sanitized in-place");
|
|
1119
|
+
try {
|
|
1120
|
+
Sn(e);
|
|
1121
|
+
} catch (t) {
|
|
1122
|
+
throw rn(e), t;
|
|
1123
|
+
}
|
|
1124
|
+
} else if (fn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Sn(a);
|
|
1125
|
+
else {
|
|
1126
|
+
if (!Ct && !V && !H && e.indexOf("<") === -1) return y && Tt ? ie(e) : e;
|
|
1127
|
+
if (i = sn(e), !i) return Ct ? null : Tt ? b : "";
|
|
1128
|
+
}
|
|
1129
|
+
i && St && Y(i.firstChild);
|
|
1130
|
+
let l = cn(c ? e : i);
|
|
1131
|
+
try {
|
|
1132
|
+
for (; o = l.nextNode();) hn(o), bn(o), Z(o.content) && xn(o.content);
|
|
1133
|
+
} catch (t) {
|
|
1134
|
+
throw c && rn(e), t;
|
|
1135
|
+
}
|
|
1136
|
+
if (c) return _e(t.removed, (e) => {
|
|
1137
|
+
e.element && on(e.element);
|
|
1138
|
+
}), V && un(e), e;
|
|
1139
|
+
if (Ct) {
|
|
1140
|
+
if (V && un(i), wt) for (s = de.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
1141
|
+
else s = i;
|
|
1142
|
+
return (F.shadowroot || F.shadowrootmode) && (s = pe.call(r, s, !0)), s;
|
|
1143
|
+
}
|
|
1144
|
+
let u = H ? i.outerHTML : i.innerHTML;
|
|
1145
|
+
return H && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(rt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), V && (u = ln(u)), y && Tt ? ie(u) : u;
|
|
1146
|
+
}, t.setConfig = function() {
|
|
1147
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1148
|
+
Xt(e), yt = !0, bt = A, xt = F;
|
|
1149
|
+
}, t.clearConfig = function() {
|
|
1150
|
+
qt = null, yt = !1, bt = null, xt = null, y = x, b = "";
|
|
1151
|
+
}, t.isValidAttribute = function(e, t, n) {
|
|
1152
|
+
qt || Xt({});
|
|
1153
|
+
let r = J(e), i = J(t);
|
|
1154
|
+
return $(r, i, n);
|
|
1155
|
+
}, t.addHook = function(e, t) {
|
|
1156
|
+
typeof t == "function" && E(T, e) && be(T[e], t);
|
|
1157
|
+
}, t.removeHook = function(e, t) {
|
|
1158
|
+
if (E(T, e)) {
|
|
1159
|
+
if (t !== void 0) {
|
|
1160
|
+
let n = ve(T[e], t);
|
|
1161
|
+
return n === -1 ? void 0 : xe(T[e], n, 1)[0];
|
|
1162
|
+
}
|
|
1163
|
+
return ye(T[e]);
|
|
1164
|
+
}
|
|
1165
|
+
}, t.removeHooks = function(e) {
|
|
1166
|
+
E(T, e) && (T[e] = []);
|
|
1167
|
+
}, t.removeAllHooks = function() {
|
|
1168
|
+
T = dt();
|
|
1169
|
+
}, t;
|
|
1170
|
+
}
|
|
1171
|
+
var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
|
|
1172
|
+
let i = {
|
|
1173
|
+
depth: n,
|
|
1174
|
+
clobber: r
|
|
1175
|
+
};
|
|
1176
|
+
return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => F(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
|
|
1177
|
+
e.includes(t) || e.push(t);
|
|
1178
|
+
}), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
|
|
1179
|
+
typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = F(e[i], t[i], {
|
|
1180
|
+
depth: n - 1,
|
|
1181
|
+
clobber: r
|
|
1182
|
+
})) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
|
|
1183
|
+
}), e);
|
|
1184
|
+
}, "assignWithDepth"), I = F, L = "#ffffff", R = "#f2f2f2", z = /* @__PURE__ */ e((e, t) => t ? x(e, {
|
|
1185
|
+
s: -40,
|
|
1186
|
+
l: 10
|
|
1187
|
+
}) : x(e, {
|
|
1188
|
+
s: -40,
|
|
1189
|
+
l: -10
|
|
1190
|
+
}), "mkBorder"), B = class {
|
|
1191
|
+
static {
|
|
1192
|
+
e(this, "Theme");
|
|
1193
|
+
}
|
|
1194
|
+
constructor() {
|
|
1195
|
+
this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1196
|
+
}
|
|
1197
|
+
updateColors() {
|
|
1198
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
1199
|
+
h: 180,
|
|
1200
|
+
l: 5
|
|
1201
|
+
}), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
1202
|
+
h: 210,
|
|
1203
|
+
l: 150
|
|
1204
|
+
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
1205
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
1206
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
1207
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
1208
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1209
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1210
|
+
let e = this.darkMode ? -4 : -1;
|
|
1211
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
|
|
1212
|
+
h: 180,
|
|
1213
|
+
s: -15,
|
|
1214
|
+
l: e * (5 + t * 3)
|
|
1215
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
|
|
1216
|
+
h: 180,
|
|
1217
|
+
s: -15,
|
|
1218
|
+
l: e * (8 + t * 3)
|
|
1219
|
+
});
|
|
1220
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
|
|
1221
|
+
h: 60,
|
|
1222
|
+
l: -10
|
|
1223
|
+
}), this.pie8 = this.pie8 || x(this.primaryColor, {
|
|
1224
|
+
h: -60,
|
|
1225
|
+
l: -10
|
|
1226
|
+
}), this.pie9 = this.pie9 || x(this.primaryColor, {
|
|
1227
|
+
h: 120,
|
|
1228
|
+
l: 0
|
|
1229
|
+
}), this.pie10 = this.pie10 || x(this.primaryColor, {
|
|
1230
|
+
h: 60,
|
|
1231
|
+
l: -20
|
|
1232
|
+
}), this.pie11 = this.pie11 || x(this.primaryColor, {
|
|
1233
|
+
h: -60,
|
|
1234
|
+
l: -20
|
|
1235
|
+
}), this.pie12 = this.pie12 || x(this.primaryColor, {
|
|
1236
|
+
h: 120,
|
|
1237
|
+
l: -10
|
|
1238
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
|
|
1239
|
+
h: 60,
|
|
1240
|
+
l: -30
|
|
1241
|
+
}), this.venn5 = this.venn5 ?? x(this.primaryColor, {
|
|
1242
|
+
h: -60,
|
|
1243
|
+
l: -30
|
|
1244
|
+
}), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
|
|
1245
|
+
h: 60,
|
|
1246
|
+
l: -30
|
|
1247
|
+
}), this.venn7 = this.venn7 ?? x(this.primaryColor, {
|
|
1248
|
+
h: 120,
|
|
1249
|
+
l: -30
|
|
1250
|
+
}), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
|
|
1251
|
+
h: 120,
|
|
1252
|
+
l: -30
|
|
1253
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1254
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1255
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1256
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1257
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1258
|
+
cliffColor: this.cynefin?.cliffColor || "#8B0000",
|
|
1259
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1260
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1261
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1262
|
+
complexBg: this.cynefin?.complexBg || "#E8F5E9",
|
|
1263
|
+
complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
|
|
1264
|
+
chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
|
|
1265
|
+
clearBg: this.cynefin?.clearBg || "#FFF8E1",
|
|
1266
|
+
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1267
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1268
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1269
|
+
}, this.radar = {
|
|
1270
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1271
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1272
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
1273
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
1274
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
1275
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
1276
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
1277
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1278
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1279
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
1280
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
|
|
1281
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
1282
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
1283
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
1284
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
1285
|
+
componentFill: this.wardley?.componentFill || this.background,
|
|
1286
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
1287
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
1288
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
1289
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
1290
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1291
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1292
|
+
annotationFill: this.wardley?.annotationFill || this.background
|
|
1293
|
+
}, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
|
|
1294
|
+
r: 5,
|
|
1295
|
+
g: 5,
|
|
1296
|
+
b: 5
|
|
1297
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
|
|
1298
|
+
r: 10,
|
|
1299
|
+
g: 10,
|
|
1300
|
+
b: 10
|
|
1301
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
|
|
1302
|
+
r: 15,
|
|
1303
|
+
g: 15,
|
|
1304
|
+
b: 15
|
|
1305
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
1306
|
+
r: -5,
|
|
1307
|
+
g: -5,
|
|
1308
|
+
b: -5
|
|
1309
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
1310
|
+
r: -10,
|
|
1311
|
+
g: -10,
|
|
1312
|
+
b: -10
|
|
1313
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
1314
|
+
r: -15,
|
|
1315
|
+
g: -15,
|
|
1316
|
+
b: -15
|
|
1317
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1318
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1319
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1320
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1321
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1322
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1323
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1324
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1325
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1326
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1327
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1328
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1329
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1330
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1331
|
+
}
|
|
1332
|
+
calculate(e) {
|
|
1333
|
+
if (typeof e != "object") {
|
|
1334
|
+
this.updateColors();
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
let t = Object.keys(e);
|
|
1338
|
+
t.forEach((t) => {
|
|
1339
|
+
this[t] = e[t];
|
|
1340
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1341
|
+
this[t] = e[t];
|
|
1342
|
+
});
|
|
1343
|
+
}
|
|
1344
|
+
}, mt = /* @__PURE__ */ e((e) => {
|
|
1345
|
+
let t = new B();
|
|
1346
|
+
return t.calculate(e), t;
|
|
1347
|
+
}, "getThemeVariables"), ht = class {
|
|
1348
|
+
static {
|
|
1349
|
+
e(this, "Theme");
|
|
1350
|
+
}
|
|
1351
|
+
constructor() {
|
|
1352
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = g(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = g(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
|
|
1353
|
+
}
|
|
1354
|
+
updateColors() {
|
|
1355
|
+
this.secondBkg = y(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = y(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = y(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = S(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
|
|
1356
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
1357
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
|
|
1358
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
|
|
1359
|
+
h: 30,
|
|
1360
|
+
s: -30,
|
|
1361
|
+
l: -(-10 + e * 4)
|
|
1362
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
|
|
1363
|
+
h: 30,
|
|
1364
|
+
s: -30,
|
|
1365
|
+
l: -(-7 + e * 4)
|
|
1366
|
+
});
|
|
1367
|
+
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
|
|
1368
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1369
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1370
|
+
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
|
|
1371
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? y(this["cScale" + e], 30);
|
|
1372
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1373
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1374
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1375
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1376
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1377
|
+
cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
|
|
1378
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1379
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1380
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1381
|
+
complexBg: this.cynefin?.complexBg || "#1B5E20",
|
|
1382
|
+
complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
|
|
1383
|
+
chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
|
|
1384
|
+
clearBg: this.cynefin?.clearBg || "#F57F17",
|
|
1385
|
+
confusionBg: this.cynefin?.confusionBg || "#4A148C",
|
|
1386
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1387
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1388
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
|
|
1389
|
+
r: 5,
|
|
1390
|
+
g: 5,
|
|
1391
|
+
b: 5
|
|
1392
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
|
|
1393
|
+
r: 10,
|
|
1394
|
+
g: 10,
|
|
1395
|
+
b: 10
|
|
1396
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
|
|
1397
|
+
r: 15,
|
|
1398
|
+
g: 15,
|
|
1399
|
+
b: 15
|
|
1400
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
1401
|
+
r: -5,
|
|
1402
|
+
g: -5,
|
|
1403
|
+
b: -5
|
|
1404
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
1405
|
+
r: -10,
|
|
1406
|
+
g: -10,
|
|
1407
|
+
b: -10
|
|
1408
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
1409
|
+
r: -15,
|
|
1410
|
+
g: -15,
|
|
1411
|
+
b: -15
|
|
1412
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1413
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1414
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1415
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1416
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1417
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1418
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1419
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1420
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1421
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1422
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1423
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1424
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
|
|
1425
|
+
}, this.packet = {
|
|
1426
|
+
startByteColor: this.primaryTextColor,
|
|
1427
|
+
endByteColor: this.primaryTextColor,
|
|
1428
|
+
labelColor: this.primaryTextColor,
|
|
1429
|
+
titleColor: this.primaryTextColor,
|
|
1430
|
+
blockStrokeColor: this.primaryTextColor,
|
|
1431
|
+
blockFillColor: this.background
|
|
1432
|
+
}, this.radar = {
|
|
1433
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1434
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1435
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
1436
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
1437
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
1438
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
1439
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
1440
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1441
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1442
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
1443
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
|
|
1444
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
1445
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
1446
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
1447
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
1448
|
+
componentFill: this.wardley?.componentFill || this.mainBkg,
|
|
1449
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
1450
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
1451
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
1452
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
1453
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1454
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1455
|
+
annotationFill: this.wardley?.annotationFill || this.mainBkg
|
|
1456
|
+
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = y(this.secondaryColor, 20), this.git1 = y(this.pie2 || this.secondaryColor, 20), this.git2 = y(this.pie3 || this.tertiaryColor, 20), this.git3 = y(this.pie4 || x(this.primaryColor, { h: -30 }), 20), this.git4 = y(this.pie5 || x(this.primaryColor, { h: -60 }), 20), this.git5 = y(this.pie6 || x(this.primaryColor, { h: -90 }), 10), this.git6 = y(this.pie7 || x(this.primaryColor, { h: 60 }), 10), this.git7 = y(this.pie8 || x(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || y("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || y("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || y("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || y("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || y(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || y(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || y(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || y(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1457
|
+
}
|
|
1458
|
+
calculate(e) {
|
|
1459
|
+
if (typeof e != "object") {
|
|
1460
|
+
this.updateColors();
|
|
1461
|
+
return;
|
|
1462
|
+
}
|
|
1463
|
+
let t = Object.keys(e);
|
|
1464
|
+
t.forEach((t) => {
|
|
1465
|
+
this[t] = e[t];
|
|
1466
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1467
|
+
this[t] = e[t];
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
}, gt = /* @__PURE__ */ e((e) => {
|
|
1471
|
+
let t = new ht();
|
|
1472
|
+
return t.calculate(e), t;
|
|
1473
|
+
}, "getThemeVariables"), _t = class {
|
|
1474
|
+
static {
|
|
1475
|
+
e(this, "Theme");
|
|
1476
|
+
}
|
|
1477
|
+
constructor() {
|
|
1478
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = g(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
|
|
1479
|
+
}
|
|
1480
|
+
updateColors() {
|
|
1481
|
+
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
|
|
1482
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
|
|
1483
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
|
|
1484
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
|
|
1485
|
+
h: 30,
|
|
1486
|
+
l: -(5 + e * 5)
|
|
1487
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
|
|
1488
|
+
h: 30,
|
|
1489
|
+
l: -(7 + e * 5)
|
|
1490
|
+
});
|
|
1491
|
+
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1492
|
+
this.cScaleLabel0 = this.cScaleLabel0 || S(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || S(this.labelTextColor);
|
|
1493
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
1494
|
+
}
|
|
1495
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || y(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || x(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || x(this.primaryColor, {
|
|
1496
|
+
h: 60,
|
|
1497
|
+
l: -20
|
|
1498
|
+
}), this.pie8 = this.pie8 || x(this.primaryColor, {
|
|
1499
|
+
h: -60,
|
|
1500
|
+
l: -40
|
|
1501
|
+
}), this.pie9 = this.pie9 || x(this.primaryColor, {
|
|
1502
|
+
h: 120,
|
|
1503
|
+
l: -40
|
|
1504
|
+
}), this.pie10 = this.pie10 || x(this.primaryColor, {
|
|
1505
|
+
h: 60,
|
|
1506
|
+
l: -40
|
|
1507
|
+
}), this.pie11 = this.pie11 || x(this.primaryColor, {
|
|
1508
|
+
h: -90,
|
|
1509
|
+
l: -40
|
|
1510
|
+
}), this.pie12 = this.pie12 || x(this.primaryColor, {
|
|
1511
|
+
h: 120,
|
|
1512
|
+
l: -30
|
|
1513
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
|
|
1514
|
+
h: 60,
|
|
1515
|
+
l: -30
|
|
1516
|
+
}), this.venn5 = this.venn5 ?? x(this.primaryColor, {
|
|
1517
|
+
h: -60,
|
|
1518
|
+
l: -30
|
|
1519
|
+
}), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
|
|
1520
|
+
h: 60,
|
|
1521
|
+
l: -30
|
|
1522
|
+
}), this.venn7 = this.venn7 ?? x(this.primaryColor, {
|
|
1523
|
+
h: 120,
|
|
1524
|
+
l: -30
|
|
1525
|
+
}), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
|
|
1526
|
+
h: 120,
|
|
1527
|
+
l: -30
|
|
1528
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1529
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1530
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1531
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1532
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1533
|
+
cliffColor: this.cynefin?.cliffColor || "#8B0000",
|
|
1534
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1535
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1536
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1537
|
+
complexBg: this.cynefin?.complexBg || "#E8F5E9",
|
|
1538
|
+
complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
|
|
1539
|
+
chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
|
|
1540
|
+
clearBg: this.cynefin?.clearBg || "#FFF8E1",
|
|
1541
|
+
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1542
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1543
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1544
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
|
|
1545
|
+
r: 5,
|
|
1546
|
+
g: 5,
|
|
1547
|
+
b: 5
|
|
1548
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
|
|
1549
|
+
r: 10,
|
|
1550
|
+
g: 10,
|
|
1551
|
+
b: 10
|
|
1552
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
|
|
1553
|
+
r: 15,
|
|
1554
|
+
g: 15,
|
|
1555
|
+
b: 15
|
|
1556
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
1557
|
+
r: -5,
|
|
1558
|
+
g: -5,
|
|
1559
|
+
b: -5
|
|
1560
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
1561
|
+
r: -10,
|
|
1562
|
+
g: -10,
|
|
1563
|
+
b: -10
|
|
1564
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
1565
|
+
r: -15,
|
|
1566
|
+
g: -15,
|
|
1567
|
+
b: -15
|
|
1568
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
|
|
1569
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1570
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1571
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
1572
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
1573
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
1574
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
1575
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
1576
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1577
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1578
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
1579
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
|
|
1580
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
1581
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
1582
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
1583
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
1584
|
+
componentFill: this.wardley?.componentFill || this.background,
|
|
1585
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
1586
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
1587
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
1588
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
1589
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1590
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1591
|
+
annotationFill: this.wardley?.annotationFill || this.background
|
|
1592
|
+
}, this.xyChart = {
|
|
1593
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1594
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1595
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1596
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1597
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1598
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1599
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1600
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1601
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1602
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1603
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1604
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
1605
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
1606
|
+
}
|
|
1607
|
+
calculate(e) {
|
|
1608
|
+
if (Object.keys(this).forEach((e) => {
|
|
1609
|
+
this[e] === "calculated" && (this[e] = void 0);
|
|
1610
|
+
}), typeof e != "object") {
|
|
1611
|
+
this.updateColors();
|
|
1612
|
+
return;
|
|
1613
|
+
}
|
|
1614
|
+
let t = Object.keys(e);
|
|
1615
|
+
t.forEach((t) => {
|
|
1616
|
+
this[t] = e[t];
|
|
1617
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1618
|
+
this[t] = e[t];
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1621
|
+
}, V = /* @__PURE__ */ e((e) => {
|
|
1622
|
+
let t = new _t();
|
|
1623
|
+
return t.calculate(e), t;
|
|
1624
|
+
}, "getThemeVariables"), vt = class {
|
|
1625
|
+
static {
|
|
1626
|
+
e(this, "Theme");
|
|
1627
|
+
}
|
|
1628
|
+
constructor() {
|
|
1629
|
+
this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = y("#cde498", 10), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
|
|
1630
|
+
}
|
|
1631
|
+
updateColors() {
|
|
1632
|
+
this.actorBorder = b(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
|
|
1633
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
|
|
1634
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
|
|
1635
|
+
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
1636
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1637
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
|
|
1638
|
+
h: 30,
|
|
1639
|
+
s: -30,
|
|
1640
|
+
l: -(5 + e * 5)
|
|
1641
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
|
|
1642
|
+
h: 30,
|
|
1643
|
+
s: -30,
|
|
1644
|
+
l: -(8 + e * 5)
|
|
1645
|
+
});
|
|
1646
|
+
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 || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, {
|
|
1647
|
+
h: 40,
|
|
1648
|
+
l: -40
|
|
1649
|
+
}), this.pie7 = this.pie7 || x(this.primaryColor, {
|
|
1650
|
+
h: 60,
|
|
1651
|
+
l: -10
|
|
1652
|
+
}), this.pie8 = this.pie8 || x(this.primaryColor, {
|
|
1653
|
+
h: -60,
|
|
1654
|
+
l: -10
|
|
1655
|
+
}), this.pie9 = this.pie9 || x(this.primaryColor, {
|
|
1656
|
+
h: 120,
|
|
1657
|
+
l: 0
|
|
1658
|
+
}), this.pie10 = this.pie10 || x(this.primaryColor, {
|
|
1659
|
+
h: 60,
|
|
1660
|
+
l: -50
|
|
1661
|
+
}), this.pie11 = this.pie11 || x(this.primaryColor, {
|
|
1662
|
+
h: -60,
|
|
1663
|
+
l: -50
|
|
1664
|
+
}), this.pie12 = this.pie12 || x(this.primaryColor, {
|
|
1665
|
+
h: 120,
|
|
1666
|
+
l: -50
|
|
1667
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
|
|
1668
|
+
h: 60,
|
|
1669
|
+
l: -30
|
|
1670
|
+
}), this.venn5 = this.venn5 ?? x(this.primaryColor, {
|
|
1671
|
+
h: -60,
|
|
1672
|
+
l: -30
|
|
1673
|
+
}), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
|
|
1674
|
+
h: 60,
|
|
1675
|
+
l: -30
|
|
1676
|
+
}), this.venn7 = this.venn7 ?? x(this.primaryColor, {
|
|
1677
|
+
h: 120,
|
|
1678
|
+
l: -30
|
|
1679
|
+
}), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
|
|
1680
|
+
h: 120,
|
|
1681
|
+
l: -30
|
|
1682
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1683
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1684
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1685
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1686
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1687
|
+
cliffColor: this.cynefin?.cliffColor || "#8B4513",
|
|
1688
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1689
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1690
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1691
|
+
complexBg: this.cynefin?.complexBg || "#C8E6C9",
|
|
1692
|
+
complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
|
|
1693
|
+
chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
|
|
1694
|
+
clearBg: this.cynefin?.clearBg || "#FFF9C4",
|
|
1695
|
+
confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
|
|
1696
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1697
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1698
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
|
|
1699
|
+
r: 5,
|
|
1700
|
+
g: 5,
|
|
1701
|
+
b: 5
|
|
1702
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
|
|
1703
|
+
r: 10,
|
|
1704
|
+
g: 10,
|
|
1705
|
+
b: 10
|
|
1706
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
|
|
1707
|
+
r: 15,
|
|
1708
|
+
g: 15,
|
|
1709
|
+
b: 15
|
|
1710
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
1711
|
+
r: -5,
|
|
1712
|
+
g: -5,
|
|
1713
|
+
b: -5
|
|
1714
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
1715
|
+
r: -10,
|
|
1716
|
+
g: -10,
|
|
1717
|
+
b: -10
|
|
1718
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
1719
|
+
r: -15,
|
|
1720
|
+
g: -15,
|
|
1721
|
+
b: -15
|
|
1722
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
|
|
1723
|
+
startByteColor: this.primaryTextColor,
|
|
1724
|
+
endByteColor: this.primaryTextColor,
|
|
1725
|
+
labelColor: this.primaryTextColor,
|
|
1726
|
+
titleColor: this.primaryTextColor,
|
|
1727
|
+
blockStrokeColor: this.primaryTextColor,
|
|
1728
|
+
blockFillColor: this.mainBkg
|
|
1729
|
+
}, this.radar = {
|
|
1730
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1731
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1732
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
1733
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
1734
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
1735
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
1736
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
1737
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1738
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1739
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
1740
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
|
|
1741
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
1742
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
1743
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
1744
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
1745
|
+
componentFill: this.wardley?.componentFill || this.background,
|
|
1746
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
1747
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
1748
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
1749
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
1750
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1751
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1752
|
+
annotationFill: this.wardley?.annotationFill || this.background
|
|
1753
|
+
}, this.xyChart = {
|
|
1754
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1755
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1756
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1757
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1758
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1759
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1760
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1761
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1762
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1763
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1764
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1765
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
1766
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
1767
|
+
}
|
|
1768
|
+
calculate(e) {
|
|
1769
|
+
if (typeof e != "object") {
|
|
1770
|
+
this.updateColors();
|
|
1771
|
+
return;
|
|
1772
|
+
}
|
|
1773
|
+
let t = Object.keys(e);
|
|
1774
|
+
t.forEach((t) => {
|
|
1775
|
+
this[t] = e[t];
|
|
1776
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1777
|
+
this[t] = e[t];
|
|
1778
|
+
});
|
|
1779
|
+
}
|
|
1780
|
+
}, H = /* @__PURE__ */ e((e) => {
|
|
1781
|
+
let t = new vt();
|
|
1782
|
+
return t.calculate(e), t;
|
|
1783
|
+
}, "getThemeVariables"), yt = class {
|
|
1784
|
+
static {
|
|
1785
|
+
e(this, "Theme");
|
|
1786
|
+
}
|
|
1787
|
+
constructor() {
|
|
1788
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1789
|
+
}
|
|
1790
|
+
updateColors() {
|
|
1791
|
+
this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
|
|
1792
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
1793
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
1794
|
+
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1795
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1796
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { l: -(8 + e * 5) });
|
|
1797
|
+
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 = y(this.contrast, 30), this.sectionBkgColor2 = y(this.contrast, 30), this.taskBorderColor = b(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = y(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = b(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 });
|
|
1798
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1799
|
+
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";
|
|
1800
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
1801
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1802
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1803
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1804
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1805
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1806
|
+
cliffColor: this.cynefin?.cliffColor || "#8B0000",
|
|
1807
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1808
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1809
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1810
|
+
complexBg: this.cynefin?.complexBg || "#E8F5E9",
|
|
1811
|
+
complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
|
|
1812
|
+
chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
|
|
1813
|
+
clearBg: this.cynefin?.clearBg || "#FFF8E1",
|
|
1814
|
+
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1815
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1816
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1817
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
|
|
1818
|
+
r: 5,
|
|
1819
|
+
g: 5,
|
|
1820
|
+
b: 5
|
|
1821
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
|
|
1822
|
+
r: 10,
|
|
1823
|
+
g: 10,
|
|
1824
|
+
b: 10
|
|
1825
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
|
|
1826
|
+
r: 15,
|
|
1827
|
+
g: 15,
|
|
1828
|
+
b: 15
|
|
1829
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
1830
|
+
r: -5,
|
|
1831
|
+
g: -5,
|
|
1832
|
+
b: -5
|
|
1833
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
1834
|
+
r: -10,
|
|
1835
|
+
g: -10,
|
|
1836
|
+
b: -10
|
|
1837
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
1838
|
+
r: -15,
|
|
1839
|
+
g: -15,
|
|
1840
|
+
b: -15
|
|
1841
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1842
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1843
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1844
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1845
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1846
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1847
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1848
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1849
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1850
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1851
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1852
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1853
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
|
|
1854
|
+
}, this.radar = {
|
|
1855
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1856
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1857
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
1858
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
1859
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
1860
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
1861
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
1862
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1863
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1864
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
1865
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
|
|
1866
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
1867
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
1868
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
1869
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
1870
|
+
componentFill: this.wardley?.componentFill || this.background,
|
|
1871
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
1872
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
1873
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
1874
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
1875
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1876
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1877
|
+
annotationFill: this.wardley?.annotationFill || this.background
|
|
1878
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
1879
|
+
}
|
|
1880
|
+
calculate(e) {
|
|
1881
|
+
if (typeof e != "object") {
|
|
1882
|
+
this.updateColors();
|
|
1883
|
+
return;
|
|
1884
|
+
}
|
|
1885
|
+
let t = Object.keys(e);
|
|
1886
|
+
t.forEach((t) => {
|
|
1887
|
+
this[t] = e[t];
|
|
1888
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1889
|
+
this[t] = e[t];
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
}, bt = /* @__PURE__ */ e((e) => {
|
|
1893
|
+
let t = new yt();
|
|
1894
|
+
return t.calculate(e), t;
|
|
1895
|
+
}, "getThemeVariables"), xt = class {
|
|
1896
|
+
static {
|
|
1897
|
+
e(this, "Theme");
|
|
1898
|
+
}
|
|
1899
|
+
constructor() {
|
|
1900
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
1901
|
+
}
|
|
1902
|
+
updateColors() {
|
|
1903
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
1904
|
+
h: 180,
|
|
1905
|
+
l: 5
|
|
1906
|
+
}), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
1907
|
+
let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
|
|
1908
|
+
h: 180,
|
|
1909
|
+
l: 5
|
|
1910
|
+
});
|
|
1911
|
+
if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || x(e, { h: 30 }), this.cScale4 = this.cScale4 || x(e, { h: 60 }), this.cScale5 = this.cScale5 || x(e, { h: 90 }), this.cScale6 = this.cScale6 || x(e, { h: 120 }), this.cScale7 = this.cScale7 || x(e, { h: 150 }), this.cScale8 = this.cScale8 || x(e, {
|
|
1912
|
+
h: 210,
|
|
1913
|
+
l: 150
|
|
1914
|
+
}), this.cScale9 = this.cScale9 || x(e, { h: 270 }), this.cScale10 = this.cScale10 || x(e, { h: 300 }), this.cScale11 = this.cScale11 || x(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
1915
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
1916
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
1917
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
1918
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1919
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1920
|
+
let r = this.darkMode ? -4 : -1;
|
|
1921
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
|
|
1922
|
+
h: 180,
|
|
1923
|
+
s: -15,
|
|
1924
|
+
l: r * (5 + e * 3)
|
|
1925
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
|
|
1926
|
+
h: 180,
|
|
1927
|
+
s: -15,
|
|
1928
|
+
l: r * (8 + e * 3)
|
|
1929
|
+
});
|
|
1930
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
|
|
1931
|
+
h: 60,
|
|
1932
|
+
l: -10
|
|
1933
|
+
}), this.pie8 = this.pie8 || x(e, {
|
|
1934
|
+
h: -60,
|
|
1935
|
+
l: -10
|
|
1936
|
+
}), this.pie9 = this.pie9 || x(e, {
|
|
1937
|
+
h: 120,
|
|
1938
|
+
l: 0
|
|
1939
|
+
}), this.pie10 = this.pie10 || x(e, {
|
|
1940
|
+
h: 60,
|
|
1941
|
+
l: -20
|
|
1942
|
+
}), this.pie11 = this.pie11 || x(e, {
|
|
1943
|
+
h: -60,
|
|
1944
|
+
l: -20
|
|
1945
|
+
}), this.pie12 = this.pie12 || x(e, {
|
|
1946
|
+
h: 120,
|
|
1947
|
+
l: -10
|
|
1948
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
|
|
1949
|
+
r: 5,
|
|
1950
|
+
g: 5,
|
|
1951
|
+
b: 5
|
|
1952
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(e, {
|
|
1953
|
+
r: 10,
|
|
1954
|
+
g: 10,
|
|
1955
|
+
b: 10
|
|
1956
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(e, {
|
|
1957
|
+
r: 15,
|
|
1958
|
+
g: 15,
|
|
1959
|
+
b: 15
|
|
1960
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
1961
|
+
r: -5,
|
|
1962
|
+
g: -5,
|
|
1963
|
+
b: -5
|
|
1964
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
1965
|
+
r: -10,
|
|
1966
|
+
g: -10,
|
|
1967
|
+
b: -10
|
|
1968
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
1969
|
+
r: -15,
|
|
1970
|
+
g: -15,
|
|
1971
|
+
b: -15
|
|
1972
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1973
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1974
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1975
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1976
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1977
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1978
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1979
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1980
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1981
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1982
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1983
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1984
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
1985
|
+
}
|
|
1986
|
+
calculate(e) {
|
|
1987
|
+
if (typeof e != "object") {
|
|
1988
|
+
this.updateColors();
|
|
1989
|
+
return;
|
|
1990
|
+
}
|
|
1991
|
+
let t = Object.keys(e);
|
|
1992
|
+
t.forEach((t) => {
|
|
1993
|
+
this[t] = e[t];
|
|
1994
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1995
|
+
this[t] = e[t];
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
}, St = /* @__PURE__ */ e((e) => {
|
|
1999
|
+
let t = new xt();
|
|
2000
|
+
return t.calculate(e), t;
|
|
2001
|
+
}, "getThemeVariables"), Ct = class {
|
|
2002
|
+
static {
|
|
2003
|
+
e(this, "Theme");
|
|
2004
|
+
}
|
|
2005
|
+
constructor() {
|
|
2006
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
2007
|
+
}
|
|
2008
|
+
updateColors() {
|
|
2009
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2010
|
+
h: 180,
|
|
2011
|
+
l: 5
|
|
2012
|
+
}), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
2013
|
+
h: 210,
|
|
2014
|
+
l: 150
|
|
2015
|
+
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
2016
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
2017
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
2018
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2019
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2020
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2021
|
+
let e = this.darkMode ? -4 : -1;
|
|
2022
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
|
|
2023
|
+
h: 180,
|
|
2024
|
+
s: -15,
|
|
2025
|
+
l: e * (5 + t * 3)
|
|
2026
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
|
|
2027
|
+
h: 180,
|
|
2028
|
+
s: -15,
|
|
2029
|
+
l: e * (8 + t * 3)
|
|
2030
|
+
});
|
|
2031
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
|
|
2032
|
+
h: 60,
|
|
2033
|
+
l: -10
|
|
2034
|
+
}), this.pie8 = this.pie8 || x(this.primaryColor, {
|
|
2035
|
+
h: -60,
|
|
2036
|
+
l: -10
|
|
2037
|
+
}), this.pie9 = this.pie9 || x(this.primaryColor, {
|
|
2038
|
+
h: 120,
|
|
2039
|
+
l: 0
|
|
2040
|
+
}), this.pie10 = this.pie10 || x(this.primaryColor, {
|
|
2041
|
+
h: 60,
|
|
2042
|
+
l: -20
|
|
2043
|
+
}), this.pie11 = this.pie11 || x(this.primaryColor, {
|
|
2044
|
+
h: -60,
|
|
2045
|
+
l: -20
|
|
2046
|
+
}), this.pie12 = this.pie12 || x(this.primaryColor, {
|
|
2047
|
+
h: 120,
|
|
2048
|
+
l: -10
|
|
2049
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
|
|
2050
|
+
r: 5,
|
|
2051
|
+
g: 5,
|
|
2052
|
+
b: 5
|
|
2053
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
|
|
2054
|
+
r: 10,
|
|
2055
|
+
g: 10,
|
|
2056
|
+
b: 10
|
|
2057
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
|
|
2058
|
+
r: 15,
|
|
2059
|
+
g: 15,
|
|
2060
|
+
b: 15
|
|
2061
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
2062
|
+
r: -5,
|
|
2063
|
+
g: -5,
|
|
2064
|
+
b: -5
|
|
2065
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
2066
|
+
r: -10,
|
|
2067
|
+
g: -10,
|
|
2068
|
+
b: -10
|
|
2069
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
2070
|
+
r: -15,
|
|
2071
|
+
g: -15,
|
|
2072
|
+
b: -15
|
|
2073
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2074
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2075
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2076
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2077
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2078
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
2079
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
2080
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
2081
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
2082
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2083
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2084
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2085
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
2086
|
+
}
|
|
2087
|
+
calculate(e) {
|
|
2088
|
+
if (typeof e != "object") {
|
|
2089
|
+
this.updateColors();
|
|
2090
|
+
return;
|
|
2091
|
+
}
|
|
2092
|
+
let t = Object.keys(e);
|
|
2093
|
+
t.forEach((t) => {
|
|
2094
|
+
this[t] = e[t];
|
|
2095
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
2096
|
+
this[t] = e[t];
|
|
2097
|
+
});
|
|
2098
|
+
}
|
|
2099
|
+
}, wt = /* @__PURE__ */ e((e) => {
|
|
2100
|
+
let t = new Ct();
|
|
2101
|
+
return t.calculate(e), t;
|
|
2102
|
+
}, "getThemeVariables"), Tt = class {
|
|
2103
|
+
static {
|
|
2104
|
+
e(this, "Theme");
|
|
2105
|
+
}
|
|
2106
|
+
constructor() {
|
|
2107
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = z("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
|
|
2108
|
+
}
|
|
2109
|
+
updateColors() {
|
|
2110
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2111
|
+
h: 180,
|
|
2112
|
+
l: 5
|
|
2113
|
+
}), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2114
|
+
let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
|
|
2115
|
+
h: 180,
|
|
2116
|
+
l: 5
|
|
2117
|
+
});
|
|
2118
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
|
|
2119
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
2120
|
+
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
2121
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
2122
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
2123
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2124
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2125
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2126
|
+
let r = this.darkMode ? -4 : -1;
|
|
2127
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
|
|
2128
|
+
h: 180,
|
|
2129
|
+
s: -15,
|
|
2130
|
+
l: r * (5 + e * 3)
|
|
2131
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
|
|
2132
|
+
h: 180,
|
|
2133
|
+
s: -15,
|
|
2134
|
+
l: r * (8 + e * 3)
|
|
2135
|
+
});
|
|
2136
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
|
|
2137
|
+
h: 60,
|
|
2138
|
+
l: -10
|
|
2139
|
+
}), this.pie8 = this.pie8 || x(e, {
|
|
2140
|
+
h: -60,
|
|
2141
|
+
l: -10
|
|
2142
|
+
}), this.pie9 = this.pie9 || x(e, {
|
|
2143
|
+
h: 120,
|
|
2144
|
+
l: 0
|
|
2145
|
+
}), this.pie10 = this.pie10 || x(e, {
|
|
2146
|
+
h: 60,
|
|
2147
|
+
l: -20
|
|
2148
|
+
}), this.pie11 = this.pie11 || x(e, {
|
|
2149
|
+
h: -60,
|
|
2150
|
+
l: -20
|
|
2151
|
+
}), this.pie12 = this.pie12 || x(e, {
|
|
2152
|
+
h: 120,
|
|
2153
|
+
l: -10
|
|
2154
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
|
|
2155
|
+
r: 5,
|
|
2156
|
+
g: 5,
|
|
2157
|
+
b: 5
|
|
2158
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(e, {
|
|
2159
|
+
r: 10,
|
|
2160
|
+
g: 10,
|
|
2161
|
+
b: 10
|
|
2162
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(e, {
|
|
2163
|
+
r: 15,
|
|
2164
|
+
g: 15,
|
|
2165
|
+
b: 15
|
|
2166
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
2167
|
+
r: -5,
|
|
2168
|
+
g: -5,
|
|
2169
|
+
b: -5
|
|
2170
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
2171
|
+
r: -10,
|
|
2172
|
+
g: -10,
|
|
2173
|
+
b: -10
|
|
2174
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
2175
|
+
r: -15,
|
|
2176
|
+
g: -15,
|
|
2177
|
+
b: -15
|
|
2178
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2179
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2180
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2181
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2182
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2183
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
2184
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
2185
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
2186
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
2187
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2188
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2189
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2190
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
2191
|
+
}
|
|
2192
|
+
calculate(e) {
|
|
2193
|
+
if (typeof e != "object") {
|
|
2194
|
+
this.updateColors();
|
|
2195
|
+
return;
|
|
2196
|
+
}
|
|
2197
|
+
let t = Object.keys(e);
|
|
2198
|
+
t.forEach((t) => {
|
|
2199
|
+
this[t] = e[t];
|
|
2200
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
2201
|
+
this[t] = e[t];
|
|
2202
|
+
});
|
|
2203
|
+
}
|
|
2204
|
+
}, Et = /* @__PURE__ */ e((e) => {
|
|
2205
|
+
let t = new Tt();
|
|
2206
|
+
return t.calculate(e), t;
|
|
2207
|
+
}, "getThemeVariables"), Dt = class {
|
|
2208
|
+
static {
|
|
2209
|
+
e(this, "Theme");
|
|
2210
|
+
}
|
|
2211
|
+
constructor() {
|
|
2212
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
|
|
2213
|
+
}
|
|
2214
|
+
updateColors() {
|
|
2215
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2216
|
+
h: 180,
|
|
2217
|
+
l: 5
|
|
2218
|
+
}), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
2219
|
+
h: 210,
|
|
2220
|
+
l: 150
|
|
2221
|
+
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
2222
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
2223
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
2224
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2225
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2226
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2227
|
+
let e = this.darkMode ? -4 : -1;
|
|
2228
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
|
|
2229
|
+
h: 180,
|
|
2230
|
+
s: -15,
|
|
2231
|
+
l: e * (5 + t * 3)
|
|
2232
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
|
|
2233
|
+
h: 180,
|
|
2234
|
+
s: -15,
|
|
2235
|
+
l: e * (8 + t * 3)
|
|
2236
|
+
});
|
|
2237
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
|
|
2238
|
+
h: 60,
|
|
2239
|
+
l: -10
|
|
2240
|
+
}), this.pie8 = this.pie8 || x(this.primaryColor, {
|
|
2241
|
+
h: -60,
|
|
2242
|
+
l: -10
|
|
2243
|
+
}), this.pie9 = this.pie9 || x(this.primaryColor, {
|
|
2244
|
+
h: 120,
|
|
2245
|
+
l: 0
|
|
2246
|
+
}), this.pie10 = this.pie10 || x(this.primaryColor, {
|
|
2247
|
+
h: 60,
|
|
2248
|
+
l: -20
|
|
2249
|
+
}), this.pie11 = this.pie11 || x(this.primaryColor, {
|
|
2250
|
+
h: -60,
|
|
2251
|
+
l: -20
|
|
2252
|
+
}), this.pie12 = this.pie12 || x(this.primaryColor, {
|
|
2253
|
+
h: 120,
|
|
2254
|
+
l: -10
|
|
2255
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
|
|
2256
|
+
r: 5,
|
|
2257
|
+
g: 5,
|
|
2258
|
+
b: 5
|
|
2259
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
|
|
2260
|
+
r: 10,
|
|
2261
|
+
g: 10,
|
|
2262
|
+
b: 10
|
|
2263
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
|
|
2264
|
+
r: 15,
|
|
2265
|
+
g: 15,
|
|
2266
|
+
b: 15
|
|
2267
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
2268
|
+
r: -5,
|
|
2269
|
+
g: -5,
|
|
2270
|
+
b: -5
|
|
2271
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
2272
|
+
r: -10,
|
|
2273
|
+
g: -10,
|
|
2274
|
+
b: -10
|
|
2275
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
2276
|
+
r: -15,
|
|
2277
|
+
g: -15,
|
|
2278
|
+
b: -15
|
|
2279
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2280
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2281
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2282
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2283
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2284
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
2285
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
2286
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
2287
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
2288
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2289
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2290
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2291
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
2292
|
+
}
|
|
2293
|
+
calculate(e) {
|
|
2294
|
+
if (typeof e != "object") {
|
|
2295
|
+
this.updateColors();
|
|
2296
|
+
return;
|
|
2297
|
+
}
|
|
2298
|
+
let t = Object.keys(e);
|
|
2299
|
+
t.forEach((t) => {
|
|
2300
|
+
this[t] = e[t];
|
|
2301
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
2302
|
+
this[t] = e[t];
|
|
2303
|
+
});
|
|
2304
|
+
}
|
|
2305
|
+
}, Ot = /* @__PURE__ */ e((e) => {
|
|
2306
|
+
let t = new Dt();
|
|
2307
|
+
return t.calculate(e), t;
|
|
2308
|
+
}, "getThemeVariables"), kt = class {
|
|
2309
|
+
static {
|
|
2310
|
+
e(this, "Theme");
|
|
2311
|
+
}
|
|
2312
|
+
constructor() {
|
|
2313
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
2314
|
+
"#E879F9",
|
|
2315
|
+
"#2DD4BF",
|
|
2316
|
+
"#FB923C",
|
|
2317
|
+
"#22D3EE",
|
|
2318
|
+
"#4ADE80",
|
|
2319
|
+
"#A78BFA",
|
|
2320
|
+
"#F87171",
|
|
2321
|
+
"#FACC15",
|
|
2322
|
+
"#818CF8",
|
|
2323
|
+
"#A3E635 ",
|
|
2324
|
+
"#38BDF8",
|
|
2325
|
+
"#FB7185"
|
|
2326
|
+
], this.bkgColorArray = [
|
|
2327
|
+
"#FDF4FF",
|
|
2328
|
+
"#F0FDFA",
|
|
2329
|
+
"#FFF7ED",
|
|
2330
|
+
"#ECFEFF",
|
|
2331
|
+
"#F0FDF4",
|
|
2332
|
+
"#F5F3FF",
|
|
2333
|
+
"#FEF2F2",
|
|
2334
|
+
"#FEFCE8",
|
|
2335
|
+
"#EEF2FF",
|
|
2336
|
+
"#F7FEE7",
|
|
2337
|
+
"#F0F9FF",
|
|
2338
|
+
"#FFF1F2"
|
|
2339
|
+
], this.filterColor = "#000000";
|
|
2340
|
+
}
|
|
2341
|
+
updateColors() {
|
|
2342
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2343
|
+
h: 180,
|
|
2344
|
+
l: 5
|
|
2345
|
+
}), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2346
|
+
let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
|
|
2347
|
+
h: 180,
|
|
2348
|
+
l: 5
|
|
2349
|
+
});
|
|
2350
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2351
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
2352
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2353
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2354
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2355
|
+
let r = this.darkMode ? -4 : -1;
|
|
2356
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
|
|
2357
|
+
h: 180,
|
|
2358
|
+
s: -15,
|
|
2359
|
+
l: r * (5 + e * 3)
|
|
2360
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
|
|
2361
|
+
h: 180,
|
|
2362
|
+
s: -15,
|
|
2363
|
+
l: r * (8 + e * 3)
|
|
2364
|
+
});
|
|
2365
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
|
|
2366
|
+
h: 60,
|
|
2367
|
+
l: -10
|
|
2368
|
+
}), this.pie8 = this.pie8 || x(e, {
|
|
2369
|
+
h: -60,
|
|
2370
|
+
l: -10
|
|
2371
|
+
}), this.pie9 = this.pie9 || x(e, {
|
|
2372
|
+
h: 120,
|
|
2373
|
+
l: 0
|
|
2374
|
+
}), this.pie10 = this.pie10 || x(e, {
|
|
2375
|
+
h: 60,
|
|
2376
|
+
l: -20
|
|
2377
|
+
}), this.pie11 = this.pie11 || x(e, {
|
|
2378
|
+
h: -60,
|
|
2379
|
+
l: -20
|
|
2380
|
+
}), this.pie12 = this.pie12 || x(e, {
|
|
2381
|
+
h: 120,
|
|
2382
|
+
l: -10
|
|
2383
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
|
|
2384
|
+
r: 5,
|
|
2385
|
+
g: 5,
|
|
2386
|
+
b: 5
|
|
2387
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(e, {
|
|
2388
|
+
r: 10,
|
|
2389
|
+
g: 10,
|
|
2390
|
+
b: 10
|
|
2391
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(e, {
|
|
2392
|
+
r: 15,
|
|
2393
|
+
g: 15,
|
|
2394
|
+
b: 15
|
|
2395
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
2396
|
+
r: -5,
|
|
2397
|
+
g: -5,
|
|
2398
|
+
b: -5
|
|
2399
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
2400
|
+
r: -10,
|
|
2401
|
+
g: -10,
|
|
2402
|
+
b: -10
|
|
2403
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
2404
|
+
r: -15,
|
|
2405
|
+
g: -15,
|
|
2406
|
+
b: -15
|
|
2407
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2408
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2409
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2410
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2411
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2412
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
2413
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
2414
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
2415
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
2416
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2417
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2418
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2419
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
2420
|
+
}
|
|
2421
|
+
calculate(e) {
|
|
2422
|
+
if (typeof e != "object") {
|
|
2423
|
+
this.updateColors();
|
|
2424
|
+
return;
|
|
2425
|
+
}
|
|
2426
|
+
let t = Object.keys(e);
|
|
2427
|
+
t.forEach((t) => {
|
|
2428
|
+
this[t] = e[t];
|
|
2429
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
2430
|
+
this[t] = e[t];
|
|
2431
|
+
});
|
|
2432
|
+
}
|
|
2433
|
+
}, At = /* @__PURE__ */ e((e) => {
|
|
2434
|
+
let t = new kt();
|
|
2435
|
+
return t.calculate(e), t;
|
|
2436
|
+
}, "getThemeVariables"), jt = class {
|
|
2437
|
+
static {
|
|
2438
|
+
e(this, "Theme");
|
|
2439
|
+
}
|
|
2440
|
+
constructor() {
|
|
2441
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
2442
|
+
"#E879F9",
|
|
2443
|
+
"#2DD4BF",
|
|
2444
|
+
"#FB923C",
|
|
2445
|
+
"#22D3EE",
|
|
2446
|
+
"#4ADE80",
|
|
2447
|
+
"#A78BFA",
|
|
2448
|
+
"#F87171",
|
|
2449
|
+
"#FACC15",
|
|
2450
|
+
"#818CF8",
|
|
2451
|
+
"#A3E635 ",
|
|
2452
|
+
"#38BDF8",
|
|
2453
|
+
"#FB7185"
|
|
2454
|
+
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
2455
|
+
}
|
|
2456
|
+
updateColors() {
|
|
2457
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2458
|
+
h: 180,
|
|
2459
|
+
l: 5
|
|
2460
|
+
}), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2461
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
2462
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2463
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2464
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
|
|
2465
|
+
let e = this.darkMode ? -4 : -1;
|
|
2466
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
|
|
2467
|
+
h: 180,
|
|
2468
|
+
s: -15,
|
|
2469
|
+
l: e * (5 + t * 3)
|
|
2470
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
|
|
2471
|
+
h: 180,
|
|
2472
|
+
s: -15,
|
|
2473
|
+
l: e * (8 + t * 3)
|
|
2474
|
+
});
|
|
2475
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
|
|
2476
|
+
h: 60,
|
|
2477
|
+
l: -10
|
|
2478
|
+
}), this.pie8 = this.pie8 || x(this.primaryColor, {
|
|
2479
|
+
h: -60,
|
|
2480
|
+
l: -10
|
|
2481
|
+
}), this.pie9 = this.pie9 || x(this.primaryColor, {
|
|
2482
|
+
h: 120,
|
|
2483
|
+
l: 0
|
|
2484
|
+
}), this.pie10 = this.pie10 || x(this.primaryColor, {
|
|
2485
|
+
h: 60,
|
|
2486
|
+
l: -20
|
|
2487
|
+
}), this.pie11 = this.pie11 || x(this.primaryColor, {
|
|
2488
|
+
h: -60,
|
|
2489
|
+
l: -20
|
|
2490
|
+
}), this.pie12 = this.pie12 || x(this.primaryColor, {
|
|
2491
|
+
h: 120,
|
|
2492
|
+
l: -10
|
|
2493
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
|
|
2494
|
+
r: 5,
|
|
2495
|
+
g: 5,
|
|
2496
|
+
b: 5
|
|
2497
|
+
}), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
|
|
2498
|
+
r: 10,
|
|
2499
|
+
g: 10,
|
|
2500
|
+
b: 10
|
|
2501
|
+
}), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
|
|
2502
|
+
r: 15,
|
|
2503
|
+
g: 15,
|
|
2504
|
+
b: 15
|
|
2505
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
|
|
2506
|
+
r: -5,
|
|
2507
|
+
g: -5,
|
|
2508
|
+
b: -5
|
|
2509
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
|
|
2510
|
+
r: -10,
|
|
2511
|
+
g: -10,
|
|
2512
|
+
b: -10
|
|
2513
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
|
|
2514
|
+
r: -15,
|
|
2515
|
+
g: -15,
|
|
2516
|
+
b: -15
|
|
2517
|
+
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2518
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2519
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2520
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2521
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2522
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
2523
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
2524
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
2525
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
2526
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2527
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2528
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2529
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
|
|
2530
|
+
}
|
|
2531
|
+
calculate(e) {
|
|
2532
|
+
if (typeof e != "object") {
|
|
2533
|
+
this.updateColors();
|
|
2534
|
+
return;
|
|
2535
|
+
}
|
|
2536
|
+
let t = Object.keys(e);
|
|
2537
|
+
t.forEach((t) => {
|
|
2538
|
+
this[t] = e[t];
|
|
2539
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
2540
|
+
this[t] = e[t];
|
|
2541
|
+
});
|
|
2542
|
+
}
|
|
2543
|
+
}, U = {
|
|
2544
|
+
base: { getThemeVariables: mt },
|
|
2545
|
+
dark: { getThemeVariables: gt },
|
|
2546
|
+
default: { getThemeVariables: V },
|
|
2547
|
+
forest: { getThemeVariables: H },
|
|
2548
|
+
neutral: { getThemeVariables: bt },
|
|
2549
|
+
neo: { getThemeVariables: St },
|
|
2550
|
+
"neo-dark": { getThemeVariables: wt },
|
|
2551
|
+
redux: { getThemeVariables: Et },
|
|
2552
|
+
"redux-dark": { getThemeVariables: Ot },
|
|
2553
|
+
"redux-color": { getThemeVariables: At },
|
|
2554
|
+
"redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
|
|
2555
|
+
let t = new jt();
|
|
2556
|
+
return t.calculate(e), t;
|
|
2557
|
+
}, "getThemeVariables") }
|
|
2558
|
+
}, W = {
|
|
2559
|
+
flowchart: {
|
|
2560
|
+
useMaxWidth: !0,
|
|
2561
|
+
titleTopMargin: 25,
|
|
2562
|
+
subGraphTitleMargin: {
|
|
2563
|
+
top: 0,
|
|
2564
|
+
bottom: 0
|
|
2565
|
+
},
|
|
2566
|
+
diagramPadding: 8,
|
|
2567
|
+
htmlLabels: null,
|
|
2568
|
+
nodeSpacing: 50,
|
|
2569
|
+
rankSpacing: 50,
|
|
2570
|
+
curve: "basis",
|
|
2571
|
+
padding: 15,
|
|
2572
|
+
defaultRenderer: "dagre-wrapper",
|
|
2573
|
+
wrappingWidth: 200,
|
|
2574
|
+
inheritDir: !1
|
|
2575
|
+
},
|
|
2576
|
+
swimlane: {
|
|
2577
|
+
useMaxWidth: !0,
|
|
2578
|
+
lineHops: "arc",
|
|
2579
|
+
ignoreCrossLaneEdges: !0,
|
|
2580
|
+
optimizeRanksByCrossings: !0,
|
|
2581
|
+
automaticLaneOrdering: !1
|
|
2582
|
+
},
|
|
2583
|
+
sequence: {
|
|
2584
|
+
useMaxWidth: !0,
|
|
2585
|
+
hideUnusedParticipants: !1,
|
|
2586
|
+
activationWidth: 10,
|
|
2587
|
+
diagramMarginX: 50,
|
|
2588
|
+
diagramMarginY: 10,
|
|
2589
|
+
actorMargin: 50,
|
|
2590
|
+
width: 150,
|
|
2591
|
+
height: 65,
|
|
2592
|
+
boxMargin: 10,
|
|
2593
|
+
boxTextMargin: 5,
|
|
2594
|
+
noteMargin: 10,
|
|
2595
|
+
messageMargin: 35,
|
|
2596
|
+
messageAlign: "center",
|
|
2597
|
+
mirrorActors: !0,
|
|
2598
|
+
forceMenus: !1,
|
|
2599
|
+
bottomMarginAdj: 1,
|
|
2600
|
+
rightAngles: !1,
|
|
2601
|
+
showSequenceNumbers: !1,
|
|
2602
|
+
actorFontSize: 14,
|
|
2603
|
+
actorFontFamily: "\"Open Sans\", sans-serif",
|
|
2604
|
+
actorFontWeight: 400,
|
|
2605
|
+
noteFontSize: 14,
|
|
2606
|
+
noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
2607
|
+
noteFontWeight: 400,
|
|
2608
|
+
noteAlign: "center",
|
|
2609
|
+
messageFontSize: 16,
|
|
2610
|
+
messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
2611
|
+
messageFontWeight: 400,
|
|
2612
|
+
wrap: !1,
|
|
2613
|
+
wrapPadding: 10,
|
|
2614
|
+
labelBoxWidth: 50,
|
|
2615
|
+
labelBoxHeight: 20
|
|
2616
|
+
},
|
|
2617
|
+
gantt: {
|
|
2618
|
+
useMaxWidth: !0,
|
|
2619
|
+
titleTopMargin: 25,
|
|
2620
|
+
barHeight: 20,
|
|
2621
|
+
barGap: 4,
|
|
2622
|
+
topPadding: 50,
|
|
2623
|
+
rightPadding: 75,
|
|
2624
|
+
leftPadding: 75,
|
|
2625
|
+
gridLineStartPadding: 35,
|
|
2626
|
+
fontSize: 11,
|
|
2627
|
+
sectionFontSize: 11,
|
|
2628
|
+
numberSectionStyles: 4,
|
|
2629
|
+
axisFormat: "%Y-%m-%d",
|
|
2630
|
+
topAxis: !1,
|
|
2631
|
+
displayMode: "",
|
|
2632
|
+
weekday: "sunday"
|
|
2633
|
+
},
|
|
2634
|
+
journey: {
|
|
2635
|
+
useMaxWidth: !0,
|
|
2636
|
+
diagramMarginX: 50,
|
|
2637
|
+
diagramMarginY: 10,
|
|
2638
|
+
leftMargin: 150,
|
|
2639
|
+
maxLabelWidth: 360,
|
|
2640
|
+
width: 150,
|
|
2641
|
+
height: 50,
|
|
2642
|
+
boxMargin: 10,
|
|
2643
|
+
boxTextMargin: 5,
|
|
2644
|
+
noteMargin: 10,
|
|
2645
|
+
messageMargin: 35,
|
|
2646
|
+
messageAlign: "center",
|
|
2647
|
+
bottomMarginAdj: 1,
|
|
2648
|
+
rightAngles: !1,
|
|
2649
|
+
taskFontSize: 14,
|
|
2650
|
+
taskFontFamily: "\"Open Sans\", sans-serif",
|
|
2651
|
+
taskMargin: 50,
|
|
2652
|
+
activationWidth: 10,
|
|
2653
|
+
textPlacement: "fo",
|
|
2654
|
+
actorColours: [
|
|
2655
|
+
"#8FBC8F",
|
|
2656
|
+
"#7CFC00",
|
|
2657
|
+
"#00FFFF",
|
|
2658
|
+
"#20B2AA",
|
|
2659
|
+
"#B0E0E6",
|
|
2660
|
+
"#FFFFE0"
|
|
2661
|
+
],
|
|
2662
|
+
sectionFills: [
|
|
2663
|
+
"#191970",
|
|
2664
|
+
"#8B008B",
|
|
2665
|
+
"#4B0082",
|
|
2666
|
+
"#2F4F4F",
|
|
2667
|
+
"#800000",
|
|
2668
|
+
"#8B4513",
|
|
2669
|
+
"#00008B"
|
|
2670
|
+
],
|
|
2671
|
+
sectionColours: ["#fff"],
|
|
2672
|
+
titleColor: "",
|
|
2673
|
+
titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
2674
|
+
titleFontSize: "4ex"
|
|
2675
|
+
},
|
|
2676
|
+
class: {
|
|
2677
|
+
useMaxWidth: !0,
|
|
2678
|
+
titleTopMargin: 25,
|
|
2679
|
+
arrowMarkerAbsolute: !1,
|
|
2680
|
+
dividerMargin: 10,
|
|
2681
|
+
padding: 5,
|
|
2682
|
+
textHeight: 10,
|
|
2683
|
+
defaultRenderer: "dagre-wrapper",
|
|
2684
|
+
htmlLabels: !1,
|
|
2685
|
+
hideEmptyMembersBox: !1,
|
|
2686
|
+
hierarchicalNamespaces: !0
|
|
2687
|
+
},
|
|
2688
|
+
state: {
|
|
2689
|
+
useMaxWidth: !0,
|
|
2690
|
+
titleTopMargin: 25,
|
|
2691
|
+
dividerMargin: 10,
|
|
2692
|
+
sizeUnit: 5,
|
|
2693
|
+
padding: 8,
|
|
2694
|
+
textHeight: 10,
|
|
2695
|
+
titleShift: -15,
|
|
2696
|
+
noteMargin: 10,
|
|
2697
|
+
forkWidth: 70,
|
|
2698
|
+
forkHeight: 7,
|
|
2699
|
+
miniPadding: 2,
|
|
2700
|
+
fontSizeFactor: 5.02,
|
|
2701
|
+
fontSize: 24,
|
|
2702
|
+
labelHeight: 16,
|
|
2703
|
+
edgeLengthFactor: "20",
|
|
2704
|
+
compositTitleSize: 35,
|
|
2705
|
+
radius: 5,
|
|
2706
|
+
defaultRenderer: "dagre-wrapper"
|
|
2707
|
+
},
|
|
2708
|
+
er: {
|
|
2709
|
+
useMaxWidth: !0,
|
|
2710
|
+
titleTopMargin: 25,
|
|
2711
|
+
diagramPadding: 20,
|
|
2712
|
+
layoutDirection: "TB",
|
|
2713
|
+
minEntityWidth: 100,
|
|
2714
|
+
minEntityHeight: 75,
|
|
2715
|
+
entityPadding: 15,
|
|
2716
|
+
nodeSpacing: 140,
|
|
2717
|
+
rankSpacing: 80,
|
|
2718
|
+
stroke: "gray",
|
|
2719
|
+
fill: "honeydew",
|
|
2720
|
+
fontSize: 12
|
|
2721
|
+
},
|
|
2722
|
+
pie: {
|
|
2723
|
+
useMaxWidth: !0,
|
|
2724
|
+
textPosition: .75,
|
|
2725
|
+
donutHole: 0,
|
|
2726
|
+
legendPosition: "right",
|
|
2727
|
+
highlightSlice: ""
|
|
2728
|
+
},
|
|
2729
|
+
quadrantChart: {
|
|
2730
|
+
useMaxWidth: !0,
|
|
2731
|
+
chartWidth: 500,
|
|
2732
|
+
chartHeight: 500,
|
|
2733
|
+
titleFontSize: 20,
|
|
2734
|
+
titlePadding: 10,
|
|
2735
|
+
quadrantPadding: 5,
|
|
2736
|
+
xAxisLabelPadding: 5,
|
|
2737
|
+
yAxisLabelPadding: 5,
|
|
2738
|
+
xAxisLabelFontSize: 16,
|
|
2739
|
+
yAxisLabelFontSize: 16,
|
|
2740
|
+
quadrantLabelFontSize: 16,
|
|
2741
|
+
quadrantTextTopPadding: 5,
|
|
2742
|
+
pointTextPadding: 5,
|
|
2743
|
+
pointLabelFontSize: 12,
|
|
2744
|
+
pointRadius: 5,
|
|
2745
|
+
xAxisPosition: "top",
|
|
2746
|
+
yAxisPosition: "left",
|
|
2747
|
+
quadrantInternalBorderStrokeWidth: 1,
|
|
2748
|
+
quadrantExternalBorderStrokeWidth: 2
|
|
2749
|
+
},
|
|
2750
|
+
xyChart: {
|
|
2751
|
+
useMaxWidth: !0,
|
|
2752
|
+
width: 700,
|
|
2753
|
+
height: 500,
|
|
2754
|
+
titleFontSize: 20,
|
|
2755
|
+
titlePadding: 10,
|
|
2756
|
+
showDataLabel: !1,
|
|
2757
|
+
showDataLabelOutsideBar: !1,
|
|
2758
|
+
showTitle: !0,
|
|
2759
|
+
xAxis: {
|
|
2760
|
+
$ref: "#/$defs/XYChartAxisConfig",
|
|
2761
|
+
showLabel: !0,
|
|
2762
|
+
labelFontSize: 14,
|
|
2763
|
+
labelPadding: 5,
|
|
2764
|
+
showTitle: !0,
|
|
2765
|
+
titleFontSize: 16,
|
|
2766
|
+
titlePadding: 5,
|
|
2767
|
+
showTick: !0,
|
|
2768
|
+
tickLength: 5,
|
|
2769
|
+
tickWidth: 2,
|
|
2770
|
+
showAxisLine: !0,
|
|
2771
|
+
axisLineWidth: 2,
|
|
2772
|
+
labelRotation: 0
|
|
2773
|
+
},
|
|
2774
|
+
yAxis: {
|
|
2775
|
+
$ref: "#/$defs/XYChartAxisConfig",
|
|
2776
|
+
showLabel: !0,
|
|
2777
|
+
labelFontSize: 14,
|
|
2778
|
+
labelPadding: 5,
|
|
2779
|
+
showTitle: !0,
|
|
2780
|
+
titleFontSize: 16,
|
|
2781
|
+
titlePadding: 5,
|
|
2782
|
+
showTick: !0,
|
|
2783
|
+
tickLength: 5,
|
|
2784
|
+
tickWidth: 2,
|
|
2785
|
+
showAxisLine: !0,
|
|
2786
|
+
axisLineWidth: 2,
|
|
2787
|
+
labelRotation: 0
|
|
2788
|
+
},
|
|
2789
|
+
chartOrientation: "vertical",
|
|
2790
|
+
plotReservedSpacePercent: 50
|
|
2791
|
+
},
|
|
2792
|
+
requirement: {
|
|
2793
|
+
useMaxWidth: !0,
|
|
2794
|
+
rect_fill: "#f9f9f9",
|
|
2795
|
+
text_color: "#333",
|
|
2796
|
+
rect_border_size: "0.5px",
|
|
2797
|
+
rect_border_color: "#bbb",
|
|
2798
|
+
rect_min_width: 200,
|
|
2799
|
+
rect_min_height: 200,
|
|
2800
|
+
fontSize: 14,
|
|
2801
|
+
rect_padding: 10,
|
|
2802
|
+
line_height: 20
|
|
2803
|
+
},
|
|
2804
|
+
mindmap: {
|
|
2805
|
+
useMaxWidth: !0,
|
|
2806
|
+
padding: 10,
|
|
2807
|
+
maxNodeWidth: 200,
|
|
2808
|
+
layoutAlgorithm: "cose-bilkent"
|
|
2809
|
+
},
|
|
2810
|
+
ishikawa: {
|
|
2811
|
+
useMaxWidth: !0,
|
|
2812
|
+
diagramPadding: 20
|
|
2813
|
+
},
|
|
2814
|
+
kanban: {
|
|
2815
|
+
useMaxWidth: !0,
|
|
2816
|
+
padding: 8,
|
|
2817
|
+
sectionWidth: 200,
|
|
2818
|
+
ticketBaseUrl: ""
|
|
2819
|
+
},
|
|
2820
|
+
timeline: {
|
|
2821
|
+
useMaxWidth: !0,
|
|
2822
|
+
diagramMarginX: 50,
|
|
2823
|
+
diagramMarginY: 10,
|
|
2824
|
+
leftMargin: 150,
|
|
2825
|
+
width: 150,
|
|
2826
|
+
height: 50,
|
|
2827
|
+
boxMargin: 10,
|
|
2828
|
+
boxTextMargin: 5,
|
|
2829
|
+
noteMargin: 10,
|
|
2830
|
+
messageMargin: 35,
|
|
2831
|
+
messageAlign: "center",
|
|
2832
|
+
bottomMarginAdj: 1,
|
|
2833
|
+
rightAngles: !1,
|
|
2834
|
+
taskFontSize: 14,
|
|
2835
|
+
taskFontFamily: "\"Open Sans\", sans-serif",
|
|
2836
|
+
taskMargin: 50,
|
|
2837
|
+
activationWidth: 10,
|
|
2838
|
+
textPlacement: "fo",
|
|
2839
|
+
actorColours: [
|
|
2840
|
+
"#8FBC8F",
|
|
2841
|
+
"#7CFC00",
|
|
2842
|
+
"#00FFFF",
|
|
2843
|
+
"#20B2AA",
|
|
2844
|
+
"#B0E0E6",
|
|
2845
|
+
"#FFFFE0"
|
|
2846
|
+
],
|
|
2847
|
+
sectionFills: [
|
|
2848
|
+
"#191970",
|
|
2849
|
+
"#8B008B",
|
|
2850
|
+
"#4B0082",
|
|
2851
|
+
"#2F4F4F",
|
|
2852
|
+
"#800000",
|
|
2853
|
+
"#8B4513",
|
|
2854
|
+
"#00008B"
|
|
2855
|
+
],
|
|
2856
|
+
sectionColours: ["#fff"],
|
|
2857
|
+
disableMulticolor: !1
|
|
2858
|
+
},
|
|
2859
|
+
gitGraph: {
|
|
2860
|
+
useMaxWidth: !0,
|
|
2861
|
+
titleTopMargin: 25,
|
|
2862
|
+
diagramPadding: 8,
|
|
2863
|
+
nodeLabel: {
|
|
2864
|
+
width: 75,
|
|
2865
|
+
height: 100,
|
|
2866
|
+
x: -25,
|
|
2867
|
+
y: 0
|
|
2868
|
+
},
|
|
2869
|
+
mainBranchName: "main",
|
|
2870
|
+
mainBranchOrder: 0,
|
|
2871
|
+
showCommitLabel: !0,
|
|
2872
|
+
showBranches: !0,
|
|
2873
|
+
rotateCommitLabel: !0,
|
|
2874
|
+
parallelCommits: !1,
|
|
2875
|
+
arrowMarkerAbsolute: !1
|
|
2876
|
+
},
|
|
2877
|
+
c4: {
|
|
2878
|
+
useMaxWidth: !0,
|
|
2879
|
+
diagramMarginX: 50,
|
|
2880
|
+
diagramMarginY: 10,
|
|
2881
|
+
c4ShapeMargin: 50,
|
|
2882
|
+
c4ShapePadding: 20,
|
|
2883
|
+
width: 216,
|
|
2884
|
+
height: 60,
|
|
2885
|
+
boxMargin: 10,
|
|
2886
|
+
c4ShapeInRow: 4,
|
|
2887
|
+
nextLinePaddingX: 0,
|
|
2888
|
+
c4BoundaryInRow: 2,
|
|
2889
|
+
personFontSize: 14,
|
|
2890
|
+
personFontFamily: "\"Open Sans\", sans-serif",
|
|
2891
|
+
personFontWeight: "normal",
|
|
2892
|
+
external_personFontSize: 14,
|
|
2893
|
+
external_personFontFamily: "\"Open Sans\", sans-serif",
|
|
2894
|
+
external_personFontWeight: "normal",
|
|
2895
|
+
systemFontSize: 14,
|
|
2896
|
+
systemFontFamily: "\"Open Sans\", sans-serif",
|
|
2897
|
+
systemFontWeight: "normal",
|
|
2898
|
+
external_systemFontSize: 14,
|
|
2899
|
+
external_systemFontFamily: "\"Open Sans\", sans-serif",
|
|
2900
|
+
external_systemFontWeight: "normal",
|
|
2901
|
+
system_dbFontSize: 14,
|
|
2902
|
+
system_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2903
|
+
system_dbFontWeight: "normal",
|
|
2904
|
+
external_system_dbFontSize: 14,
|
|
2905
|
+
external_system_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2906
|
+
external_system_dbFontWeight: "normal",
|
|
2907
|
+
system_queueFontSize: 14,
|
|
2908
|
+
system_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2909
|
+
system_queueFontWeight: "normal",
|
|
2910
|
+
external_system_queueFontSize: 14,
|
|
2911
|
+
external_system_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2912
|
+
external_system_queueFontWeight: "normal",
|
|
2913
|
+
boundaryFontSize: 14,
|
|
2914
|
+
boundaryFontFamily: "\"Open Sans\", sans-serif",
|
|
2915
|
+
boundaryFontWeight: "normal",
|
|
2916
|
+
messageFontSize: 12,
|
|
2917
|
+
messageFontFamily: "\"Open Sans\", sans-serif",
|
|
2918
|
+
messageFontWeight: "normal",
|
|
2919
|
+
containerFontSize: 14,
|
|
2920
|
+
containerFontFamily: "\"Open Sans\", sans-serif",
|
|
2921
|
+
containerFontWeight: "normal",
|
|
2922
|
+
external_containerFontSize: 14,
|
|
2923
|
+
external_containerFontFamily: "\"Open Sans\", sans-serif",
|
|
2924
|
+
external_containerFontWeight: "normal",
|
|
2925
|
+
container_dbFontSize: 14,
|
|
2926
|
+
container_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2927
|
+
container_dbFontWeight: "normal",
|
|
2928
|
+
external_container_dbFontSize: 14,
|
|
2929
|
+
external_container_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2930
|
+
external_container_dbFontWeight: "normal",
|
|
2931
|
+
container_queueFontSize: 14,
|
|
2932
|
+
container_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2933
|
+
container_queueFontWeight: "normal",
|
|
2934
|
+
external_container_queueFontSize: 14,
|
|
2935
|
+
external_container_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2936
|
+
external_container_queueFontWeight: "normal",
|
|
2937
|
+
componentFontSize: 14,
|
|
2938
|
+
componentFontFamily: "\"Open Sans\", sans-serif",
|
|
2939
|
+
componentFontWeight: "normal",
|
|
2940
|
+
external_componentFontSize: 14,
|
|
2941
|
+
external_componentFontFamily: "\"Open Sans\", sans-serif",
|
|
2942
|
+
external_componentFontWeight: "normal",
|
|
2943
|
+
component_dbFontSize: 14,
|
|
2944
|
+
component_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2945
|
+
component_dbFontWeight: "normal",
|
|
2946
|
+
external_component_dbFontSize: 14,
|
|
2947
|
+
external_component_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2948
|
+
external_component_dbFontWeight: "normal",
|
|
2949
|
+
component_queueFontSize: 14,
|
|
2950
|
+
component_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2951
|
+
component_queueFontWeight: "normal",
|
|
2952
|
+
external_component_queueFontSize: 14,
|
|
2953
|
+
external_component_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2954
|
+
external_component_queueFontWeight: "normal",
|
|
2955
|
+
wrap: !0,
|
|
2956
|
+
wrapPadding: 10,
|
|
2957
|
+
person_bg_color: "#08427B",
|
|
2958
|
+
person_border_color: "#073B6F",
|
|
2959
|
+
external_person_bg_color: "#686868",
|
|
2960
|
+
external_person_border_color: "#8A8A8A",
|
|
2961
|
+
system_bg_color: "#1168BD",
|
|
2962
|
+
system_border_color: "#3C7FC0",
|
|
2963
|
+
system_db_bg_color: "#1168BD",
|
|
2964
|
+
system_db_border_color: "#3C7FC0",
|
|
2965
|
+
system_queue_bg_color: "#1168BD",
|
|
2966
|
+
system_queue_border_color: "#3C7FC0",
|
|
2967
|
+
external_system_bg_color: "#999999",
|
|
2968
|
+
external_system_border_color: "#8A8A8A",
|
|
2969
|
+
external_system_db_bg_color: "#999999",
|
|
2970
|
+
external_system_db_border_color: "#8A8A8A",
|
|
2971
|
+
external_system_queue_bg_color: "#999999",
|
|
2972
|
+
external_system_queue_border_color: "#8A8A8A",
|
|
2973
|
+
container_bg_color: "#438DD5",
|
|
2974
|
+
container_border_color: "#3C7FC0",
|
|
2975
|
+
container_db_bg_color: "#438DD5",
|
|
2976
|
+
container_db_border_color: "#3C7FC0",
|
|
2977
|
+
container_queue_bg_color: "#438DD5",
|
|
2978
|
+
container_queue_border_color: "#3C7FC0",
|
|
2979
|
+
external_container_bg_color: "#B3B3B3",
|
|
2980
|
+
external_container_border_color: "#A6A6A6",
|
|
2981
|
+
external_container_db_bg_color: "#B3B3B3",
|
|
2982
|
+
external_container_db_border_color: "#A6A6A6",
|
|
2983
|
+
external_container_queue_bg_color: "#B3B3B3",
|
|
2984
|
+
external_container_queue_border_color: "#A6A6A6",
|
|
2985
|
+
component_bg_color: "#85BBF0",
|
|
2986
|
+
component_border_color: "#78A8D8",
|
|
2987
|
+
component_db_bg_color: "#85BBF0",
|
|
2988
|
+
component_db_border_color: "#78A8D8",
|
|
2989
|
+
component_queue_bg_color: "#85BBF0",
|
|
2990
|
+
component_queue_border_color: "#78A8D8",
|
|
2991
|
+
external_component_bg_color: "#CCCCCC",
|
|
2992
|
+
external_component_border_color: "#BFBFBF",
|
|
2993
|
+
external_component_db_bg_color: "#CCCCCC",
|
|
2994
|
+
external_component_db_border_color: "#BFBFBF",
|
|
2995
|
+
external_component_queue_bg_color: "#CCCCCC",
|
|
2996
|
+
external_component_queue_border_color: "#BFBFBF"
|
|
2997
|
+
},
|
|
2998
|
+
sankey: {
|
|
2999
|
+
useMaxWidth: !0,
|
|
3000
|
+
width: 600,
|
|
3001
|
+
height: 400,
|
|
3002
|
+
linkColor: "gradient",
|
|
3003
|
+
nodeAlignment: "justify",
|
|
3004
|
+
showValues: !0,
|
|
3005
|
+
prefix: "",
|
|
3006
|
+
suffix: "",
|
|
3007
|
+
nodeWidth: 10,
|
|
3008
|
+
nodePadding: 12,
|
|
3009
|
+
labelStyle: "legacy"
|
|
3010
|
+
},
|
|
3011
|
+
block: {
|
|
3012
|
+
useMaxWidth: !0,
|
|
3013
|
+
padding: 8
|
|
3014
|
+
},
|
|
3015
|
+
packet: {
|
|
3016
|
+
useMaxWidth: !0,
|
|
3017
|
+
rowHeight: 32,
|
|
3018
|
+
bitWidth: 32,
|
|
3019
|
+
bitsPerRow: 32,
|
|
3020
|
+
showBits: !0,
|
|
3021
|
+
paddingX: 5,
|
|
3022
|
+
paddingY: 5
|
|
3023
|
+
},
|
|
3024
|
+
treeView: {
|
|
3025
|
+
useMaxWidth: !0,
|
|
3026
|
+
rowIndent: 10,
|
|
3027
|
+
paddingX: 5,
|
|
3028
|
+
paddingY: 5,
|
|
3029
|
+
lineThickness: 1,
|
|
3030
|
+
showIcons: !1,
|
|
3031
|
+
defaultIconPack: "",
|
|
3032
|
+
filenameIcons: {},
|
|
3033
|
+
extensionIcons: {}
|
|
3034
|
+
},
|
|
3035
|
+
architecture: {
|
|
3036
|
+
useMaxWidth: !0,
|
|
3037
|
+
padding: 40,
|
|
3038
|
+
iconSize: 80,
|
|
3039
|
+
fontSize: 16,
|
|
3040
|
+
randomize: !1,
|
|
3041
|
+
nodeSeparation: 75,
|
|
3042
|
+
idealEdgeLengthMultiplier: 1.5,
|
|
3043
|
+
edgeElasticity: .45,
|
|
3044
|
+
numIter: 2500,
|
|
3045
|
+
seed: 1
|
|
3046
|
+
},
|
|
3047
|
+
eventmodeling: {
|
|
3048
|
+
useMaxWidth: !0,
|
|
3049
|
+
padding: 30,
|
|
3050
|
+
rowHeight: 32
|
|
3051
|
+
},
|
|
3052
|
+
radar: {
|
|
3053
|
+
useMaxWidth: !0,
|
|
3054
|
+
width: 600,
|
|
3055
|
+
height: 600,
|
|
3056
|
+
marginTop: 50,
|
|
3057
|
+
marginRight: 50,
|
|
3058
|
+
marginBottom: 50,
|
|
3059
|
+
marginLeft: 50,
|
|
3060
|
+
axisScaleFactor: 1,
|
|
3061
|
+
axisLabelFactor: 1.05,
|
|
3062
|
+
curveTension: .17
|
|
3063
|
+
},
|
|
3064
|
+
venn: {
|
|
3065
|
+
useMaxWidth: !0,
|
|
3066
|
+
width: 800,
|
|
3067
|
+
height: 450,
|
|
3068
|
+
padding: 8,
|
|
3069
|
+
useDebugLayout: !1
|
|
3070
|
+
},
|
|
3071
|
+
cynefin: {
|
|
3072
|
+
useMaxWidth: !0,
|
|
3073
|
+
width: 800,
|
|
3074
|
+
height: 600,
|
|
3075
|
+
padding: 40,
|
|
3076
|
+
showDomainDescriptions: !0,
|
|
3077
|
+
boundaryAmplitude: 8,
|
|
3078
|
+
seed: 0
|
|
3079
|
+
},
|
|
3080
|
+
theme: "default",
|
|
3081
|
+
look: "classic",
|
|
3082
|
+
handDrawnSeed: 0,
|
|
3083
|
+
layout: "dagre",
|
|
3084
|
+
maxTextSize: 5e4,
|
|
3085
|
+
maxEdges: 500,
|
|
3086
|
+
darkMode: !1,
|
|
3087
|
+
fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
|
|
3088
|
+
logLevel: 5,
|
|
3089
|
+
securityLevel: "strict",
|
|
3090
|
+
startOnLoad: !0,
|
|
3091
|
+
arrowMarkerAbsolute: !1,
|
|
3092
|
+
secure: [
|
|
3093
|
+
"secure",
|
|
3094
|
+
"securityLevel",
|
|
3095
|
+
"startOnLoad",
|
|
3096
|
+
"maxTextSize",
|
|
3097
|
+
"suppressErrorRendering",
|
|
3098
|
+
"maxEdges"
|
|
3099
|
+
],
|
|
3100
|
+
legacyMathML: !1,
|
|
3101
|
+
forceLegacyMathML: !1,
|
|
3102
|
+
deterministicIds: !1,
|
|
3103
|
+
fontSize: 16,
|
|
3104
|
+
markdownAutoWrap: !0,
|
|
3105
|
+
suppressErrorRendering: !1
|
|
3106
|
+
}, Mt = {
|
|
3107
|
+
...W,
|
|
3108
|
+
deterministicIDSeed: void 0,
|
|
3109
|
+
elk: {
|
|
3110
|
+
mergeEdges: !1,
|
|
3111
|
+
nodePlacementStrategy: "BRANDES_KOEPF",
|
|
3112
|
+
forceNodeModelOrder: !1,
|
|
3113
|
+
considerModelOrder: "NODES_AND_EDGES"
|
|
3114
|
+
},
|
|
3115
|
+
themeCSS: void 0,
|
|
3116
|
+
themeVariables: U.default.getThemeVariables(),
|
|
3117
|
+
sequence: {
|
|
3118
|
+
...W.sequence,
|
|
3119
|
+
messageFont: /* @__PURE__ */ e(function() {
|
|
3120
|
+
return {
|
|
3121
|
+
fontFamily: this.messageFontFamily,
|
|
3122
|
+
fontSize: this.messageFontSize,
|
|
3123
|
+
fontWeight: this.messageFontWeight
|
|
3124
|
+
};
|
|
3125
|
+
}, "messageFont"),
|
|
3126
|
+
noteFont: /* @__PURE__ */ e(function() {
|
|
3127
|
+
return {
|
|
3128
|
+
fontFamily: this.noteFontFamily,
|
|
3129
|
+
fontSize: this.noteFontSize,
|
|
3130
|
+
fontWeight: this.noteFontWeight
|
|
3131
|
+
};
|
|
3132
|
+
}, "noteFont"),
|
|
3133
|
+
actorFont: /* @__PURE__ */ e(function() {
|
|
3134
|
+
return {
|
|
3135
|
+
fontFamily: this.actorFontFamily,
|
|
3136
|
+
fontSize: this.actorFontSize,
|
|
3137
|
+
fontWeight: this.actorFontWeight
|
|
3138
|
+
};
|
|
3139
|
+
}, "actorFont")
|
|
3140
|
+
},
|
|
3141
|
+
class: {
|
|
3142
|
+
hideEmptyMembersBox: !1,
|
|
3143
|
+
hierarchicalNamespaces: !0
|
|
3144
|
+
},
|
|
3145
|
+
gantt: {
|
|
3146
|
+
...W.gantt,
|
|
3147
|
+
tickInterval: void 0,
|
|
3148
|
+
useWidth: void 0
|
|
3149
|
+
},
|
|
3150
|
+
c4: {
|
|
3151
|
+
...W.c4,
|
|
3152
|
+
useWidth: void 0,
|
|
3153
|
+
personFont: /* @__PURE__ */ e(function() {
|
|
3154
|
+
return {
|
|
3155
|
+
fontFamily: this.personFontFamily,
|
|
3156
|
+
fontSize: this.personFontSize,
|
|
3157
|
+
fontWeight: this.personFontWeight
|
|
3158
|
+
};
|
|
3159
|
+
}, "personFont"),
|
|
3160
|
+
flowchart: {
|
|
3161
|
+
...W.flowchart,
|
|
3162
|
+
inheritDir: !1
|
|
3163
|
+
},
|
|
3164
|
+
external_personFont: /* @__PURE__ */ e(function() {
|
|
3165
|
+
return {
|
|
3166
|
+
fontFamily: this.external_personFontFamily,
|
|
3167
|
+
fontSize: this.external_personFontSize,
|
|
3168
|
+
fontWeight: this.external_personFontWeight
|
|
3169
|
+
};
|
|
3170
|
+
}, "external_personFont"),
|
|
3171
|
+
systemFont: /* @__PURE__ */ e(function() {
|
|
3172
|
+
return {
|
|
3173
|
+
fontFamily: this.systemFontFamily,
|
|
3174
|
+
fontSize: this.systemFontSize,
|
|
3175
|
+
fontWeight: this.systemFontWeight
|
|
3176
|
+
};
|
|
3177
|
+
}, "systemFont"),
|
|
3178
|
+
external_systemFont: /* @__PURE__ */ e(function() {
|
|
3179
|
+
return {
|
|
3180
|
+
fontFamily: this.external_systemFontFamily,
|
|
3181
|
+
fontSize: this.external_systemFontSize,
|
|
3182
|
+
fontWeight: this.external_systemFontWeight
|
|
3183
|
+
};
|
|
3184
|
+
}, "external_systemFont"),
|
|
3185
|
+
system_dbFont: /* @__PURE__ */ e(function() {
|
|
3186
|
+
return {
|
|
3187
|
+
fontFamily: this.system_dbFontFamily,
|
|
3188
|
+
fontSize: this.system_dbFontSize,
|
|
3189
|
+
fontWeight: this.system_dbFontWeight
|
|
3190
|
+
};
|
|
3191
|
+
}, "system_dbFont"),
|
|
3192
|
+
external_system_dbFont: /* @__PURE__ */ e(function() {
|
|
3193
|
+
return {
|
|
3194
|
+
fontFamily: this.external_system_dbFontFamily,
|
|
3195
|
+
fontSize: this.external_system_dbFontSize,
|
|
3196
|
+
fontWeight: this.external_system_dbFontWeight
|
|
3197
|
+
};
|
|
3198
|
+
}, "external_system_dbFont"),
|
|
3199
|
+
system_queueFont: /* @__PURE__ */ e(function() {
|
|
3200
|
+
return {
|
|
3201
|
+
fontFamily: this.system_queueFontFamily,
|
|
3202
|
+
fontSize: this.system_queueFontSize,
|
|
3203
|
+
fontWeight: this.system_queueFontWeight
|
|
3204
|
+
};
|
|
3205
|
+
}, "system_queueFont"),
|
|
3206
|
+
external_system_queueFont: /* @__PURE__ */ e(function() {
|
|
3207
|
+
return {
|
|
3208
|
+
fontFamily: this.external_system_queueFontFamily,
|
|
3209
|
+
fontSize: this.external_system_queueFontSize,
|
|
3210
|
+
fontWeight: this.external_system_queueFontWeight
|
|
3211
|
+
};
|
|
3212
|
+
}, "external_system_queueFont"),
|
|
3213
|
+
containerFont: /* @__PURE__ */ e(function() {
|
|
3214
|
+
return {
|
|
3215
|
+
fontFamily: this.containerFontFamily,
|
|
3216
|
+
fontSize: this.containerFontSize,
|
|
3217
|
+
fontWeight: this.containerFontWeight
|
|
3218
|
+
};
|
|
3219
|
+
}, "containerFont"),
|
|
3220
|
+
external_containerFont: /* @__PURE__ */ e(function() {
|
|
3221
|
+
return {
|
|
3222
|
+
fontFamily: this.external_containerFontFamily,
|
|
3223
|
+
fontSize: this.external_containerFontSize,
|
|
3224
|
+
fontWeight: this.external_containerFontWeight
|
|
3225
|
+
};
|
|
3226
|
+
}, "external_containerFont"),
|
|
3227
|
+
container_dbFont: /* @__PURE__ */ e(function() {
|
|
3228
|
+
return {
|
|
3229
|
+
fontFamily: this.container_dbFontFamily,
|
|
3230
|
+
fontSize: this.container_dbFontSize,
|
|
3231
|
+
fontWeight: this.container_dbFontWeight
|
|
3232
|
+
};
|
|
3233
|
+
}, "container_dbFont"),
|
|
3234
|
+
external_container_dbFont: /* @__PURE__ */ e(function() {
|
|
3235
|
+
return {
|
|
3236
|
+
fontFamily: this.external_container_dbFontFamily,
|
|
3237
|
+
fontSize: this.external_container_dbFontSize,
|
|
3238
|
+
fontWeight: this.external_container_dbFontWeight
|
|
3239
|
+
};
|
|
3240
|
+
}, "external_container_dbFont"),
|
|
3241
|
+
container_queueFont: /* @__PURE__ */ e(function() {
|
|
3242
|
+
return {
|
|
3243
|
+
fontFamily: this.container_queueFontFamily,
|
|
3244
|
+
fontSize: this.container_queueFontSize,
|
|
3245
|
+
fontWeight: this.container_queueFontWeight
|
|
3246
|
+
};
|
|
3247
|
+
}, "container_queueFont"),
|
|
3248
|
+
external_container_queueFont: /* @__PURE__ */ e(function() {
|
|
3249
|
+
return {
|
|
3250
|
+
fontFamily: this.external_container_queueFontFamily,
|
|
3251
|
+
fontSize: this.external_container_queueFontSize,
|
|
3252
|
+
fontWeight: this.external_container_queueFontWeight
|
|
3253
|
+
};
|
|
3254
|
+
}, "external_container_queueFont"),
|
|
3255
|
+
componentFont: /* @__PURE__ */ e(function() {
|
|
3256
|
+
return {
|
|
3257
|
+
fontFamily: this.componentFontFamily,
|
|
3258
|
+
fontSize: this.componentFontSize,
|
|
3259
|
+
fontWeight: this.componentFontWeight
|
|
3260
|
+
};
|
|
3261
|
+
}, "componentFont"),
|
|
3262
|
+
external_componentFont: /* @__PURE__ */ e(function() {
|
|
3263
|
+
return {
|
|
3264
|
+
fontFamily: this.external_componentFontFamily,
|
|
3265
|
+
fontSize: this.external_componentFontSize,
|
|
3266
|
+
fontWeight: this.external_componentFontWeight
|
|
3267
|
+
};
|
|
3268
|
+
}, "external_componentFont"),
|
|
3269
|
+
component_dbFont: /* @__PURE__ */ e(function() {
|
|
3270
|
+
return {
|
|
3271
|
+
fontFamily: this.component_dbFontFamily,
|
|
3272
|
+
fontSize: this.component_dbFontSize,
|
|
3273
|
+
fontWeight: this.component_dbFontWeight
|
|
3274
|
+
};
|
|
3275
|
+
}, "component_dbFont"),
|
|
3276
|
+
external_component_dbFont: /* @__PURE__ */ e(function() {
|
|
3277
|
+
return {
|
|
3278
|
+
fontFamily: this.external_component_dbFontFamily,
|
|
3279
|
+
fontSize: this.external_component_dbFontSize,
|
|
3280
|
+
fontWeight: this.external_component_dbFontWeight
|
|
3281
|
+
};
|
|
3282
|
+
}, "external_component_dbFont"),
|
|
3283
|
+
component_queueFont: /* @__PURE__ */ e(function() {
|
|
3284
|
+
return {
|
|
3285
|
+
fontFamily: this.component_queueFontFamily,
|
|
3286
|
+
fontSize: this.component_queueFontSize,
|
|
3287
|
+
fontWeight: this.component_queueFontWeight
|
|
3288
|
+
};
|
|
3289
|
+
}, "component_queueFont"),
|
|
3290
|
+
external_component_queueFont: /* @__PURE__ */ e(function() {
|
|
3291
|
+
return {
|
|
3292
|
+
fontFamily: this.external_component_queueFontFamily,
|
|
3293
|
+
fontSize: this.external_component_queueFontSize,
|
|
3294
|
+
fontWeight: this.external_component_queueFontWeight
|
|
3295
|
+
};
|
|
3296
|
+
}, "external_component_queueFont"),
|
|
3297
|
+
boundaryFont: /* @__PURE__ */ e(function() {
|
|
3298
|
+
return {
|
|
3299
|
+
fontFamily: this.boundaryFontFamily,
|
|
3300
|
+
fontSize: this.boundaryFontSize,
|
|
3301
|
+
fontWeight: this.boundaryFontWeight
|
|
3302
|
+
};
|
|
3303
|
+
}, "boundaryFont"),
|
|
3304
|
+
messageFont: /* @__PURE__ */ e(function() {
|
|
3305
|
+
return {
|
|
3306
|
+
fontFamily: this.messageFontFamily,
|
|
3307
|
+
fontSize: this.messageFontSize,
|
|
3308
|
+
fontWeight: this.messageFontWeight
|
|
3309
|
+
};
|
|
3310
|
+
}, "messageFont")
|
|
3311
|
+
},
|
|
3312
|
+
pie: {
|
|
3313
|
+
...W.pie,
|
|
3314
|
+
useWidth: 984
|
|
3315
|
+
},
|
|
3316
|
+
xyChart: {
|
|
3317
|
+
...W.xyChart,
|
|
3318
|
+
useWidth: void 0
|
|
3319
|
+
},
|
|
3320
|
+
requirement: {
|
|
3321
|
+
...W.requirement,
|
|
3322
|
+
useWidth: void 0
|
|
3323
|
+
},
|
|
3324
|
+
packet: { ...W.packet },
|
|
3325
|
+
eventmodeling: { ...W.eventmodeling },
|
|
3326
|
+
treeView: {
|
|
3327
|
+
...W.treeView,
|
|
3328
|
+
useWidth: void 0
|
|
3329
|
+
},
|
|
3330
|
+
radar: { ...W.radar },
|
|
3331
|
+
railroad: {
|
|
3332
|
+
...W.railroad,
|
|
3333
|
+
fontSize: void 0,
|
|
3334
|
+
fontFamily: void 0,
|
|
3335
|
+
terminalFill: void 0,
|
|
3336
|
+
terminalStroke: void 0,
|
|
3337
|
+
terminalTextColor: void 0,
|
|
3338
|
+
nonTerminalFill: void 0,
|
|
3339
|
+
nonTerminalStroke: void 0,
|
|
3340
|
+
nonTerminalTextColor: void 0,
|
|
3341
|
+
lineColor: void 0,
|
|
3342
|
+
markerFill: void 0,
|
|
3343
|
+
commentFill: void 0,
|
|
3344
|
+
commentStroke: void 0,
|
|
3345
|
+
commentTextColor: void 0,
|
|
3346
|
+
specialFill: void 0,
|
|
3347
|
+
specialStroke: void 0,
|
|
3348
|
+
ruleNameColor: void 0
|
|
3349
|
+
},
|
|
3350
|
+
ishikawa: { ...W.ishikawa },
|
|
3351
|
+
sankey: {
|
|
3352
|
+
...W.sankey,
|
|
3353
|
+
nodeColors: void 0
|
|
3354
|
+
},
|
|
3355
|
+
treemap: {
|
|
3356
|
+
useMaxWidth: !0,
|
|
3357
|
+
padding: 10,
|
|
3358
|
+
diagramPadding: 8,
|
|
3359
|
+
showValues: !0,
|
|
3360
|
+
nodeWidth: 100,
|
|
3361
|
+
nodeHeight: 40,
|
|
3362
|
+
borderWidth: 1,
|
|
3363
|
+
valueFontSize: 12,
|
|
3364
|
+
labelFontSize: 14,
|
|
3365
|
+
valueFormat: ","
|
|
3366
|
+
},
|
|
3367
|
+
venn: { ...W.venn },
|
|
3368
|
+
cynefin: { ...W.cynefin }
|
|
3369
|
+
}, Nt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
3370
|
+
...n,
|
|
3371
|
+
t + r,
|
|
3372
|
+
...Nt(e[r], "")
|
|
3373
|
+
] : [...n, t + r], []), "keyify"), Pt = new Set(Nt(Mt, "")), Ft = Mt, It = {
|
|
3374
|
+
nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
|
|
3375
|
+
filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
|
|
3376
|
+
extensionIcons: /^[\w-]+(?::[\w-]+)?$/
|
|
3377
|
+
}, Lt = /* @__PURE__ */ e((e, t) => {
|
|
3378
|
+
for (let n of Object.keys(e)) {
|
|
3379
|
+
let i = e[n];
|
|
3380
|
+
(n.startsWith("__") || n.includes("proto") || n.includes("constr") || typeof i != "string" || !t.test(i)) && (r.debug("sanitize deleting dictionary entry:", n, i), delete e[n]);
|
|
3381
|
+
}
|
|
3382
|
+
}, "sanitizeDictionaryConfig"), G = /* @__PURE__ */ e((e) => {
|
|
3383
|
+
if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
|
|
3384
|
+
if (Array.isArray(e)) {
|
|
3385
|
+
e.forEach((e) => G(e));
|
|
3386
|
+
return;
|
|
3387
|
+
}
|
|
3388
|
+
for (let t of Object.keys(e)) {
|
|
3389
|
+
if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Pt.has(t) || e[t] == null) {
|
|
3390
|
+
r.debug("sanitize deleting key: ", t), delete e[t];
|
|
3391
|
+
continue;
|
|
3392
|
+
}
|
|
3393
|
+
if (typeof e[t] == "object") {
|
|
3394
|
+
let n = It[t];
|
|
3395
|
+
n ? Lt(e[t], n) : (r.debug("sanitizing object", t), G(e[t]));
|
|
3396
|
+
continue;
|
|
3397
|
+
}
|
|
3398
|
+
for (let n of [
|
|
3399
|
+
"themeCSS",
|
|
3400
|
+
"fontFamily",
|
|
3401
|
+
"altFontFamily"
|
|
3402
|
+
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = Rt(e[t]));
|
|
3403
|
+
}
|
|
3404
|
+
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
3405
|
+
let n = e.themeVariables[t];
|
|
3406
|
+
n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
|
|
3407
|
+
}
|
|
3408
|
+
r.debug("After sanitization", e);
|
|
3409
|
+
}
|
|
3410
|
+
}, "sanitizeDirective"), Rt = /* @__PURE__ */ e((e) => {
|
|
3411
|
+
let t = 0, n = 0;
|
|
3412
|
+
for (let r of e) {
|
|
3413
|
+
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
3414
|
+
r === "{" ? t++ : r === "}" && n++;
|
|
3415
|
+
}
|
|
3416
|
+
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
3417
|
+
}, "sanitizeCss"), zt = Object.freeze(Ft), Bt = /* @__PURE__ */ e((e) => !(e === !1 || [
|
|
3418
|
+
"false",
|
|
3419
|
+
"null",
|
|
3420
|
+
"0"
|
|
3421
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), K = I({}, zt), Vt, q = [], Ht = I({}, zt), Ut = /* @__PURE__ */ e((e, t) => {
|
|
3422
|
+
let n = I({}, e), r = {};
|
|
3423
|
+
for (let e of t) Yt(e), r = I(r, e);
|
|
3424
|
+
if (n = I(n, r), r.theme && r.theme in U) {
|
|
3425
|
+
let e = I(I({}, Vt).themeVariables || {}, r.themeVariables);
|
|
3426
|
+
n.theme && n.theme in U && (n.themeVariables = U[n.theme].getThemeVariables(e));
|
|
3427
|
+
}
|
|
3428
|
+
return Ht = n, tn(Ht), Ht;
|
|
3429
|
+
}, "updateCurrentConfig"), Wt = /* @__PURE__ */ e((e) => (K = I({}, zt), K = I(K, e), e.theme && U[e.theme] && (K.themeVariables = U[e.theme].getThemeVariables(e.themeVariables)), Ut(K, q), K), "setSiteConfig"), Gt = /* @__PURE__ */ e((e) => {
|
|
3430
|
+
Vt = I({}, e);
|
|
3431
|
+
}, "saveConfigFromInitialize"), Kt = /* @__PURE__ */ e((e) => (K = I(K, e), Ut(K, q), K), "updateSiteConfig"), J = /* @__PURE__ */ e(() => I({}, K), "getSiteConfig"), qt = /* @__PURE__ */ e((e) => (tn(e), I(Ht, e), Jt()), "setConfig"), Jt = /* @__PURE__ */ e(() => I({}, Ht), "getConfig"), Yt = /* @__PURE__ */ e((e) => {
|
|
3432
|
+
e && (["secure", ...K.secure ?? []].forEach((t) => {
|
|
3433
|
+
Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
3434
|
+
}), Object.keys(e).forEach((t) => {
|
|
3435
|
+
t.startsWith("__") && delete e[t];
|
|
3436
|
+
}), Object.keys(e).forEach((t) => {
|
|
3437
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Yt(e[t]);
|
|
3438
|
+
}));
|
|
3439
|
+
}, "sanitize"), Xt = /* @__PURE__ */ e((e) => {
|
|
3440
|
+
G(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3441
|
+
...e.themeVariables,
|
|
3442
|
+
fontFamily: e.fontFamily
|
|
3443
|
+
}), q.push(e), Ut(K, q);
|
|
3444
|
+
}, "addDirective"), Zt = /* @__PURE__ */ e((e = K) => {
|
|
3445
|
+
q = [], Ut(e, q);
|
|
3446
|
+
}, "reset"), Qt = {
|
|
3447
|
+
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3448
|
+
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3449
|
+
}, $t = {}, en = /* @__PURE__ */ e((e) => {
|
|
3450
|
+
$t[e] || (r.warn(Qt[e]), $t[e] = !0);
|
|
3451
|
+
}, "issueWarning"), tn = /* @__PURE__ */ e((e) => {
|
|
3452
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && en("LAZY_LOAD_DEPRECATED");
|
|
3453
|
+
}, "checkConfig"), nn = /* @__PURE__ */ e(() => {
|
|
3454
|
+
let e = {};
|
|
3455
|
+
Vt && (e = I(e, Vt));
|
|
3456
|
+
for (let t of q) e = I(e, t);
|
|
3457
|
+
return e;
|
|
3458
|
+
}, "getUserDefinedConfig"), Y = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && en("FLOWCHART_HTML_LABELS_DEPRECATED"), Bt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), rn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, X = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, an = /\s*%%.*\n/gm, on = class extends Error {
|
|
3459
|
+
static {
|
|
3460
|
+
e(this, "UnknownDiagramError");
|
|
3461
|
+
}
|
|
3462
|
+
constructor(e) {
|
|
3463
|
+
super(e), this.name = "UnknownDiagramError";
|
|
3464
|
+
}
|
|
3465
|
+
}, sn = {}, cn = /* @__PURE__ */ e(function(e, t) {
|
|
3466
|
+
e = e.replace(rn, "").replace(X, "").replace(an, "\n");
|
|
3467
|
+
for (let [n, { detector: r }] of Object.entries(sn)) if (r(e, t)) return n;
|
|
3468
|
+
throw new on(`No diagram type detected matching given configuration for text: ${e}`);
|
|
3469
|
+
}, "detectType"), ln = /* @__PURE__ */ e((...e) => {
|
|
3470
|
+
for (let { id: t, detector: n, loader: r } of e) un(t, n, r);
|
|
3471
|
+
}, "registerLazyLoadedDiagrams"), un = /* @__PURE__ */ e((e, t, n) => {
|
|
3472
|
+
sn[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), sn[e] = {
|
|
3473
|
+
detector: t,
|
|
3474
|
+
loader: n
|
|
3475
|
+
}, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
|
|
3476
|
+
}, "addDetector"), dn = /* @__PURE__ */ e((e) => sn[e].loader, "getDiagramLoader"), Z = /<br\s*\/?>/gi, fn = /* @__PURE__ */ e((e) => e ? bn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Q = /* @__PURE__ */ (() => {
|
|
3477
|
+
let e = !1;
|
|
3478
|
+
return () => {
|
|
3479
|
+
e ||= (pn(), !0);
|
|
3480
|
+
};
|
|
3481
|
+
})();
|
|
3482
|
+
function pn() {
|
|
3483
|
+
let e = "data-temp-href-target";
|
|
3484
|
+
P.addHook("beforeSanitizeAttributes", (t) => {
|
|
3485
|
+
t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
|
|
3486
|
+
}), P.addHook("afterSanitizeAttributes", (t) => {
|
|
3487
|
+
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
|
|
3488
|
+
});
|
|
3489
|
+
}
|
|
3490
|
+
e(pn, "setupDompurifyHooks");
|
|
3491
|
+
var mn = /* @__PURE__ */ e((e) => (Q(), P.sanitize(e)), "removeScript"), hn = /* @__PURE__ */ e((e, t) => {
|
|
3492
|
+
if (Y(t)) {
|
|
3493
|
+
let n = t.securityLevel;
|
|
3494
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = mn(e) : n !== "loose" && (e = bn(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = yn(e));
|
|
3495
|
+
}
|
|
3496
|
+
return e;
|
|
3497
|
+
}, "sanitizeMore"), $ = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? P.sanitize(hn(e, t), t.dompurifyConfig).toString() : P.sanitize(hn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), gn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? $(e, t) : e.flat().map((e) => $(e, t)), "sanitizeTextOrArray"), _n = /* @__PURE__ */ e((e) => Z.test(e), "hasBreaks"), vn = /* @__PURE__ */ e((e) => e.split(Z), "splitBreaks"), yn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), bn = /* @__PURE__ */ e((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), xn = /* @__PURE__ */ e((e) => {
|
|
3498
|
+
let t = "";
|
|
3499
|
+
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3500
|
+
}, "getUrl"), Sn = /* @__PURE__ */ e(function(...e) {
|
|
3501
|
+
let t = e.filter((e) => !isNaN(e));
|
|
3502
|
+
return Math.max(...t);
|
|
3503
|
+
}, "getMax"), Cn = /* @__PURE__ */ e(function(...e) {
|
|
3504
|
+
let t = e.filter((e) => !isNaN(e));
|
|
3505
|
+
return Math.min(...t);
|
|
3506
|
+
}, "getMin"), wn = /* @__PURE__ */ e(function(e) {
|
|
3507
|
+
let t = e.split(/(,)/), n = [];
|
|
3508
|
+
for (let e = 0; e < t.length; e++) {
|
|
3509
|
+
let r = t[e];
|
|
3510
|
+
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
3511
|
+
let i = t[e - 1], a = t[e + 1];
|
|
3512
|
+
En(i, a) && (r = i + "," + a, e++, n.pop());
|
|
3513
|
+
}
|
|
3514
|
+
n.push(Dn(r));
|
|
3515
|
+
}
|
|
3516
|
+
return n.join("");
|
|
3517
|
+
}, "parseGenericTypes"), Tn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), En = /* @__PURE__ */ e((e, t) => {
|
|
3518
|
+
let n = Tn(e, "~"), r = Tn(t, "~");
|
|
3519
|
+
return n === 1 && r === 1;
|
|
3520
|
+
}, "shouldCombineSets"), Dn = /* @__PURE__ */ e((e) => {
|
|
3521
|
+
let t = Tn(e, "~"), n = !1;
|
|
3522
|
+
if (t <= 1) return e;
|
|
3523
|
+
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
3524
|
+
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3525
|
+
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3526
|
+
return n && r.unshift("~"), r.join("");
|
|
3527
|
+
}, "processSet"), On = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), kn = /\$\$(.*?)\$\$/g, An = /* @__PURE__ */ e((e) => (e.match(kn)?.length ?? 0) > 0, "hasKatex"), jn = /* @__PURE__ */ e(async (e, t) => {
|
|
3528
|
+
let n = document.createElement("div");
|
|
3529
|
+
n.innerHTML = await Nn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
3530
|
+
let r = {
|
|
3531
|
+
width: n.clientWidth,
|
|
3532
|
+
height: n.clientHeight
|
|
3533
|
+
};
|
|
3534
|
+
return n.remove(), r;
|
|
3535
|
+
}, "calculateMathMLDimensions"), Mn = /* @__PURE__ */ e(async (e, t) => {
|
|
3536
|
+
if (!An(e)) return e;
|
|
3537
|
+
if (!(On() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(kn, "MathML is unsupported in this environment.");
|
|
3538
|
+
{
|
|
3539
|
+
let { default: n } = await import("./pi-outpost-embed.js").then((e) => e.t), r = t.forceLegacyMathML || !On() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
3540
|
+
return e.split(Z).map((e) => An(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(kn, (e, t) => n.renderToString(t, {
|
|
3541
|
+
throwOnError: !0,
|
|
3542
|
+
displayMode: !0,
|
|
3543
|
+
output: r
|
|
3544
|
+
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3545
|
+
}
|
|
3546
|
+
return e.replace(kn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
|
|
3547
|
+
}, "renderKatexUnsanitized"), Nn = /* @__PURE__ */ e(async (e, t) => $(await Mn(e, t), t), "renderKatexSanitized"), Pn = {
|
|
3548
|
+
getRows: fn,
|
|
3549
|
+
sanitizeText: $,
|
|
3550
|
+
sanitizeTextOrArray: gn,
|
|
3551
|
+
hasBreaks: _n,
|
|
3552
|
+
splitBreaks: vn,
|
|
3553
|
+
lineBreakRegex: Z,
|
|
3554
|
+
removeScript: mn,
|
|
3555
|
+
getUrl: xn,
|
|
3556
|
+
evaluate: Bt,
|
|
3557
|
+
getMax: Sn,
|
|
3558
|
+
getMin: Cn
|
|
3559
|
+
}, Fn = /* @__PURE__ */ e(function(e, t) {
|
|
3560
|
+
for (let n of t) e.attr(n[0], n[1]);
|
|
3561
|
+
}, "d3Attrs"), In = /* @__PURE__ */ e(function(e, t, n) {
|
|
3562
|
+
let r = /* @__PURE__ */ new Map();
|
|
3563
|
+
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
3564
|
+
}, "calculateSvgSizeAttrs"), Ln = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
3565
|
+
Fn(e, In(t, n, r));
|
|
3566
|
+
}, "configureSvgSize"), Rn = /* @__PURE__ */ e(function(e, t, n, i) {
|
|
3567
|
+
let a = t.node().getBBox(), o = a.width, s = a.height;
|
|
3568
|
+
r.info(`SVG bounds: ${o}x${s}`, a);
|
|
3569
|
+
let c = 0, l = 0;
|
|
3570
|
+
r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), Ln(t, l, c, i);
|
|
3571
|
+
let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
|
|
3572
|
+
t.attr("viewBox", u);
|
|
3573
|
+
}, "setupGraphViewbox"), zn = {};
|
|
3574
|
+
function Bn(e) {
|
|
3575
|
+
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
3576
|
+
}
|
|
3577
|
+
e(Bn, "cssStyleSheetToString");
|
|
3578
|
+
var Vn = /* @__PURE__ */ e((e, t, n, i) => {
|
|
3579
|
+
let a = "";
|
|
3580
|
+
return e in zn && zn[e] ? a = zn[e]({
|
|
3581
|
+
...n,
|
|
3582
|
+
svgId: i
|
|
3583
|
+
}) : r.warn(`No theme found for ${e}`), ` & {
|
|
3584
|
+
font-family: ${n.fontFamily};
|
|
3585
|
+
font-size: ${n.fontSize};
|
|
3586
|
+
fill: ${n.textColor}
|
|
3587
|
+
}
|
|
3588
|
+
@keyframes edge-animation-frame {
|
|
3589
|
+
from {
|
|
3590
|
+
stroke-dashoffset: 0;
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
@keyframes dash {
|
|
3594
|
+
to {
|
|
3595
|
+
stroke-dashoffset: 0;
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
& .edge-animation-slow {
|
|
3599
|
+
stroke-dasharray: 9,5 !important;
|
|
3600
|
+
stroke-dashoffset: 900;
|
|
3601
|
+
animation: dash 50s linear infinite;
|
|
3602
|
+
stroke-linecap: round;
|
|
3603
|
+
}
|
|
3604
|
+
& .edge-animation-fast {
|
|
3605
|
+
stroke-dasharray: 9,5 !important;
|
|
3606
|
+
stroke-dashoffset: 900;
|
|
3607
|
+
animation: dash 20s linear infinite;
|
|
3608
|
+
stroke-linecap: round;
|
|
3609
|
+
}
|
|
3610
|
+
/* Classes common for multiple diagrams */
|
|
3611
|
+
|
|
3612
|
+
& .error-icon {
|
|
3613
|
+
fill: ${n.errorBkgColor};
|
|
3614
|
+
}
|
|
3615
|
+
& .error-text {
|
|
3616
|
+
fill: ${n.errorTextColor};
|
|
3617
|
+
stroke: ${n.errorTextColor};
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
& .edge-thickness-normal {
|
|
3621
|
+
stroke-width: ${n.strokeWidth ?? 1}px;
|
|
3622
|
+
}
|
|
3623
|
+
& .edge-thickness-thick {
|
|
3624
|
+
stroke-width: 3.5px
|
|
3625
|
+
}
|
|
3626
|
+
& .edge-pattern-solid {
|
|
3627
|
+
stroke-dasharray: 0;
|
|
3628
|
+
}
|
|
3629
|
+
& .edge-thickness-invisible {
|
|
3630
|
+
stroke-width: 0;
|
|
3631
|
+
fill: none;
|
|
3632
|
+
}
|
|
3633
|
+
& .edge-pattern-dashed{
|
|
3634
|
+
stroke-dasharray: 3;
|
|
3635
|
+
}
|
|
3636
|
+
.edge-pattern-dotted {
|
|
3637
|
+
stroke-dasharray: 2;
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
& .marker {
|
|
3641
|
+
fill: ${n.lineColor};
|
|
3642
|
+
stroke: ${n.lineColor};
|
|
3643
|
+
}
|
|
3644
|
+
& .marker.cross {
|
|
3645
|
+
stroke: ${n.lineColor};
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
& svg {
|
|
3649
|
+
font-family: ${n.fontFamily};
|
|
3650
|
+
font-size: ${n.fontSize};
|
|
3651
|
+
}
|
|
3652
|
+
& p {
|
|
3653
|
+
margin: 0
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
${a}
|
|
3657
|
+
.node .neo-node {
|
|
3658
|
+
stroke: ${n.nodeBorder};
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
3662
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3663
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3664
|
+
}
|
|
3665
|
+
[data-look="neo"].swimlane.cluster rect {
|
|
3666
|
+
filter: none;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
|
|
3670
|
+
[data-look="neo"].node path {
|
|
3671
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3672
|
+
stroke-width: ${n.strokeWidth ?? 1}px;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
[data-look="neo"].node .outer-path {
|
|
3676
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
[data-look="neo"].node .neo-line path {
|
|
3680
|
+
stroke: ${n.nodeBorder};
|
|
3681
|
+
filter: none;
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
[data-look="neo"].node circle{
|
|
3685
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3686
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
[data-look="neo"].node circle .state-start{
|
|
3690
|
+
fill: #000000;
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
[data-look="neo"].icon-shape .icon {
|
|
3694
|
+
fill: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3695
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
3699
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3700
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3703
|
+
${t}
|
|
3704
|
+
`;
|
|
3705
|
+
}, "getStyles"), Hn = /* @__PURE__ */ e((e, t) => {
|
|
3706
|
+
t !== void 0 && (zn[e] = t);
|
|
3707
|
+
}, "addStylesForDiagram"), Un = Vn, Wn = {};
|
|
3708
|
+
t(Wn, {
|
|
3709
|
+
clear: () => Yn,
|
|
3710
|
+
getAccDescription: () => $n,
|
|
3711
|
+
getAccTitle: () => Zn,
|
|
3712
|
+
getDiagramTitle: () => tr,
|
|
3713
|
+
setAccDescription: () => Qn,
|
|
3714
|
+
setAccTitle: () => Xn,
|
|
3715
|
+
setDiagramTitle: () => er
|
|
3716
|
+
});
|
|
3717
|
+
var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => $(e, Jt()), "sanitizeText"), Yn = /* @__PURE__ */ e(() => {
|
|
3718
|
+
Gn = "", qn = "", Kn = "";
|
|
3719
|
+
}, "clear"), Xn = /* @__PURE__ */ e((e) => {
|
|
3720
|
+
Gn = Jn(e).replace(/^\s+/g, "");
|
|
3721
|
+
}, "setAccTitle"), Zn = /* @__PURE__ */ e(() => Gn, "getAccTitle"), Qn = /* @__PURE__ */ e((e) => {
|
|
3722
|
+
qn = Jn(e).replace(/\n\s+/g, "\n");
|
|
3723
|
+
}, "setAccDescription"), $n = /* @__PURE__ */ e(() => qn, "getAccDescription"), er = /* @__PURE__ */ e((e) => {
|
|
3724
|
+
Kn = Jn(e);
|
|
3725
|
+
}, "setDiagramTitle"), tr = /* @__PURE__ */ e(() => Kn, "getDiagramTitle"), nr = r, rr = n, ir = Jt, ar = qt, or = zt, sr = /* @__PURE__ */ e((e) => $(e, ir()), "sanitizeText"), cr = Rn, lr = /* @__PURE__ */ e(() => Wn, "getCommonDb"), ur = {}, dr = /* @__PURE__ */ e((e, t, n) => {
|
|
3726
|
+
ur[e] && nr.warn(`Diagram with id ${e} already registered. Overwriting.`), ur[e] = t, n && un(e, n), Hn(e, t.styles), t.injectUtils?.(nr, rr, ir, sr, cr, lr(), () => {});
|
|
3727
|
+
}, "registerDiagram"), fr = /* @__PURE__ */ e((e) => {
|
|
3728
|
+
if (e in ur) return ur[e];
|
|
3729
|
+
throw new pr(e);
|
|
3730
|
+
}, "getDiagram"), pr = class extends Error {
|
|
3731
|
+
static {
|
|
3732
|
+
e(this, "DiagramNotFoundError");
|
|
3733
|
+
}
|
|
3734
|
+
constructor(e) {
|
|
3735
|
+
super(`Diagram ${e} not found.`);
|
|
3736
|
+
}
|
|
3737
|
+
};
|
|
3738
|
+
//#endregion
|
|
3739
|
+
export { P as $, An as A, sr as B, dn as C, V as D, J as E, Nn as F, ar as G, Qn as H, Zt as I, Rn as J, er as K, Rt as L, wn as M, dr as N, xn as O, ln as P, Kt as Q, G as R, fr as S, Y as T, Xn as U, Gt as V, qt as W, Un as X, cr as Y, U as Z, rn as _, Yn as a, m as at, Jt as b, Ln as c, or as d, b as et, Ft as f, Bt as g, X as h, jn as i, g as it, Z as j, nn as k, Bn as l, sn as m, Xt as n, v as nt, Wn as o, a as ot, cn as p, Wt as q, I as r, _ as rt, Pn as s, on as t, y as tt, zt as u, $n as v, tr as w, ir as x, Zn as y, $ as z };
|